potatejs 1.0.0-beta.2 → 1.0.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,232 @@
1
+ import { createRequire } from 'module';const require = createRequire(import.meta.url);
2
+ import{a as Cr,b as zr,c as cu,d as s,e as u,f as x,g as w,h as F,i as $S}from"./chunk-QRCR45N4.js";var tg=zr(Oy=>{"use strict";Oy.removeLeadingAndTrailingHTTPWhitespace=l=>l.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");Oy.removeTrailingHTTPWhitespace=l=>l.replace(/[ \t\n\r]+$/u,"");Oy.isHTTPWhitespaceChar=l=>l===" "||l===" "||l===`
3
+ `||l==="\r";Oy.solelyContainsHTTPTokenCodePoints=l=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(l);Oy.soleyContainsHTTPQuotedStringTokenCodePoints=l=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(l);Oy.asciiLowercase=l=>l.replace(/[A-Z]/ug,e=>e.toLowerCase());Oy.collectAnHTTPQuotedString=(l,e)=>{let t="";for(e++;;){for(;e<l.length&&l[e]!=='"'&&l[e]!=="\\";)t+=l[e],++e;if(e>=l.length)break;let r=l[e];if(++e,r==="\\"){if(e>=l.length){t+="\\";break}t+=l[e],++e}else break}return[t,e]}});var oC=zr((yrt,rC)=>{"use strict";var{asciiLowercase:ES,solelyContainsHTTPTokenCodePoints:Q2,soleyContainsHTTPQuotedStringTokenCodePoints:tB}=tg();rC.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=ES(String(e)),this._map.get(e)}has(e){return e=ES(String(e)),this._map.has(e)}set(e,t){if(e=ES(String(e)),t=String(t),!Q2(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!tB(t))throw new Error(`Invalid MIME type parameter value "${t}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,t)}clear(){this._map.clear()}delete(e){return e=ES(String(e)),this._map.delete(e)}forEach(e,t){this._map.forEach(e,t)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var nC=zr((mrt,sC)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:eB,removeTrailingHTTPWhitespace:iC,isHTTPWhitespaceChar:rB,solelyContainsHTTPTokenCodePoints:bw,soleyContainsHTTPQuotedStringTokenCodePoints:oB,asciiLowercase:gw,collectAnHTTPQuotedString:iB}=tg();sC.exports=l=>{l=eB(l);let e=0,t="";for(;e<l.length&&l[e]!=="/";)t+=l[e],++e;if(t.length===0||!bw(t)||e>=l.length)return null;++e;let r="";for(;e<l.length&&l[e]!==";";)r+=l[e],++e;if(r=iC(r),r.length===0||!bw(r))return null;let o={type:gw(t),subtype:gw(r),parameters:new Map};for(;e<l.length;){for(++e;rB(l[e]);)++e;let i="";for(;e<l.length&&l[e]!==";"&&l[e]!=="=";)i+=l[e],++e;if(i=gw(i),e<l.length){if(l[e]===";")continue;++e}let n=null;if(l[e]==='"')for([n,e]=iB(l,e);e<l.length&&l[e]!==";";)++e;else{for(n="";e<l.length&&l[e]!==";";)n+=l[e],++e;if(n=iC(n),n==="")continue}i.length>0&&bw(i)&&oB(n)&&!o.parameters.has(i)&&o.parameters.set(i,n)}return o}});var aC=zr((urt,lC)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:sB}=tg();lC.exports=l=>{let e=`${l.type}/${l.subtype}`;if(l.parameters.size===0)return e;for(let[t,r]of l.parameters)e+=";",e+=t,e+="=",(!sB(r)||r.length===0)&&(r=r.replace(/(["\\])/ug,"\\$1"),r=`"${r}"`),e+=r;return e}});var pC=zr((hrt,uC)=>{"use strict";var nB=oC(),lB=nC(),aB=aC(),{asciiLowercase:yC,solelyContainsHTTPTokenCodePoints:mC}=tg();uC.exports=class{constructor(e){e=String(e);let t=lB(e);if(t===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=t.type,this._subtype=t.subtype,this._parameters=new nB(t.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=yC(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!mC(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=yC(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!mC(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return aB(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var ra=zr((Irt,vC)=>{"use strict";var xC=["nodebuffer","arraybuffer","fragments"],EC=typeof Blob<"u";EC&&xC.push("blob");vC.exports={BINARY_TYPES:xC,CLOSE_TIMEOUT:3e4,EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",hasBlob:EC,kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}});var ig=zr((Frt,vS)=>{"use strict";var{EMPTY_BUFFER:hB}=ra(),Ew=Buffer[Symbol.species];function cB(l,e){if(l.length===0)return hB;if(l.length===1)return l[0];let t=Buffer.allocUnsafe(e),r=0;for(let o=0;o<l.length;o++){let i=l[o];t.set(i,r),r+=i.length}return r<e?new Ew(t.buffer,t.byteOffset,r):t}function AC(l,e,t,r,o){for(let i=0;i<o;i++)t[r+i]=l[i]^e[i&3]}function TC(l,e){for(let t=0;t<l.length;t++)l[t]^=e[t&3]}function dB(l){return l.length===l.buffer.byteLength?l.buffer:l.buffer.slice(l.byteOffset,l.byteOffset+l.length)}function vw(l){if(vw.readOnly=!0,Buffer.isBuffer(l))return l;let e;return l instanceof ArrayBuffer?e=new Ew(l):ArrayBuffer.isView(l)?e=new Ew(l.buffer,l.byteOffset,l.byteLength):(e=Buffer.from(l),vw.readOnly=!1),e}vS.exports={concat:cB,mask:AC,toArrayBuffer:dB,toBuffer:vw,unmask:TC};if(!process.env.WS_NO_BUFFER_UTIL)try{let l=Cr("bufferutil");vS.exports.mask=function(e,t,r,o,i){i<48?AC(e,t,r,o,i):l.mask(e,t,r,o,i)},vS.exports.unmask=function(e,t){e.length<32?TC(e,t):l.unmask(e,t)}}catch{}});var CC=zr((Drt,LC)=>{"use strict";var NC=Symbol("kDone"),Aw=Symbol("kRun"),Tw=class{constructor(e){this[NC]=()=>{this.pending--,this[Aw]()},this.concurrency=e||1/0,this.jobs=[],this.pending=0}add(e){this.jobs.push(e),this[Aw]()}[Aw](){if(this.pending!==this.concurrency&&this.jobs.length){let e=this.jobs.shift();this.pending++,e(this[NC])}}};LC.exports=Tw});var ng=zr((_rt,OC)=>{"use strict";var sg=Cr("zlib"),kC=ig(),bB=CC(),{kStatusCode:MC}=ra(),gB=Buffer[Symbol.species],fB=Buffer.from([0,0,255,255]),TS=Symbol("permessage-deflate"),oa=Symbol("total-length"),Dh=Symbol("callback"),Fy=Symbol("buffers"),_h=Symbol("error"),AS,Nw=class{constructor(e,t,r){if(this._maxPayload=r|0,this._options=e||{},this._threshold=this._options.threshold!==void 0?this._options.threshold:1024,this._isServer=!!t,this._deflate=null,this._inflate=null,this.params=null,!AS){let o=this._options.concurrencyLimit!==void 0?this._options.concurrencyLimit:10;AS=new bB(o)}}static get extensionName(){return"permessage-deflate"}offer(){let e={};return this._options.serverNoContextTakeover&&(e.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(e.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(e.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?e.client_max_window_bits=this._options.clientMaxWindowBits:this._options.clientMaxWindowBits==null&&(e.client_max_window_bits=!0),e}accept(e){return e=this.normalizeParams(e),this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e),this.params}cleanup(){if(this._inflate&&(this._inflate.close(),this._inflate=null),this._deflate){let e=this._deflate[Dh];this._deflate.close(),this._deflate=null,e&&e(new Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(e){let t=this._options,r=e.find(o=>!(t.serverNoContextTakeover===!1&&o.server_no_context_takeover||o.server_max_window_bits&&(t.serverMaxWindowBits===!1||typeof t.serverMaxWindowBits=="number"&&t.serverMaxWindowBits>o.server_max_window_bits)||typeof t.clientMaxWindowBits=="number"&&!o.client_max_window_bits));if(!r)throw new Error("None of the extension offers can be accepted");return t.serverNoContextTakeover&&(r.server_no_context_takeover=!0),t.clientNoContextTakeover&&(r.client_no_context_takeover=!0),typeof t.serverMaxWindowBits=="number"&&(r.server_max_window_bits=t.serverMaxWindowBits),typeof t.clientMaxWindowBits=="number"?r.client_max_window_bits=t.clientMaxWindowBits:(r.client_max_window_bits===!0||t.clientMaxWindowBits===!1)&&delete r.client_max_window_bits,r}acceptAsClient(e){let t=e[0];if(this._options.clientNoContextTakeover===!1&&t.client_no_context_takeover)throw new Error('Unexpected parameter "client_no_context_takeover"');if(!t.client_max_window_bits)typeof this._options.clientMaxWindowBits=="number"&&(t.client_max_window_bits=this._options.clientMaxWindowBits);else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits=="number"&&t.client_max_window_bits>this._options.clientMaxWindowBits)throw new Error('Unexpected or invalid parameter "client_max_window_bits"');return t}normalizeParams(e){return e.forEach(t=>{Object.keys(t).forEach(r=>{let o=t[r];if(o.length>1)throw new Error(`Parameter "${r}" must have only a single value`);if(o=o[0],r==="client_max_window_bits"){if(o!==!0){let i=+o;if(!Number.isInteger(i)||i<8||i>15)throw new TypeError(`Invalid value for parameter "${r}": ${o}`);o=i}else if(!this._isServer)throw new TypeError(`Invalid value for parameter "${r}": ${o}`)}else if(r==="server_max_window_bits"){let i=+o;if(!Number.isInteger(i)||i<8||i>15)throw new TypeError(`Invalid value for parameter "${r}": ${o}`);o=i}else if(r==="client_no_context_takeover"||r==="server_no_context_takeover"){if(o!==!0)throw new TypeError(`Invalid value for parameter "${r}": ${o}`)}else throw new Error(`Unknown parameter "${r}"`);t[r]=o})}),e}decompress(e,t,r){AS.add(o=>{this._decompress(e,t,(i,n)=>{o(),r(i,n)})})}compress(e,t,r){AS.add(o=>{this._compress(e,t,(i,n)=>{o(),r(i,n)})})}_decompress(e,t,r){let o=this._isServer?"client":"server";if(!this._inflate){let i=`${o}_max_window_bits`,n=typeof this.params[i]!="number"?sg.Z_DEFAULT_WINDOWBITS:this.params[i];this._inflate=sg.createInflateRaw({...this._options.zlibInflateOptions,windowBits:n}),this._inflate[TS]=this,this._inflate[oa]=0,this._inflate[Fy]=[],this._inflate.on("error",PB),this._inflate.on("data",RC)}this._inflate[Dh]=r,this._inflate.write(e),t&&this._inflate.write(fB),this._inflate.flush(()=>{let i=this._inflate[_h];if(i){this._inflate.close(),this._inflate=null,r(i);return}let n=kC.concat(this._inflate[Fy],this._inflate[oa]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[oa]=0,this._inflate[Fy]=[],t&&this.params[`${o}_no_context_takeover`]&&this._inflate.reset()),r(null,n)})}_compress(e,t,r){let o=this._isServer?"server":"client";if(!this._deflate){let i=`${o}_max_window_bits`,n=typeof this.params[i]!="number"?sg.Z_DEFAULT_WINDOWBITS:this.params[i];this._deflate=sg.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:n}),this._deflate[oa]=0,this._deflate[Fy]=[],this._deflate.on("data",SB)}this._deflate[Dh]=r,this._deflate.write(e),this._deflate.flush(sg.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let i=kC.concat(this._deflate[Fy],this._deflate[oa]);t&&(i=new gB(i.buffer,i.byteOffset,i.length-4)),this._deflate[Dh]=null,this._deflate[oa]=0,this._deflate[Fy]=[],t&&this.params[`${o}_no_context_takeover`]&&this._deflate.reset(),r(null,i)})}};OC.exports=Nw;function SB(l){this[Fy].push(l),this[oa]+=l.length}function RC(l){if(this[oa]+=l.length,this[TS]._maxPayload<1||this[oa]<=this[TS]._maxPayload){this[Fy].push(l);return}this[_h]=new RangeError("Max payload size exceeded"),this[_h].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[_h][MC]=1009,this.removeListener("data",RC),this.reset()}function PB(l){if(this[TS]._inflate=null,this[_h]){this[Dh](this[_h]);return}l[MC]=1007,this[Dh](l)}});var Bh=zr((Brt,NS)=>{"use strict";var{isUtf8:VC}=Cr("buffer"),{hasBlob:wB}=ra(),xB=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function EB(l){return l>=1e3&&l<=1014&&l!==1004&&l!==1005&&l!==1006||l>=3e3&&l<=4999}function Lw(l){let e=l.length,t=0;for(;t<e;)if((l[t]&128)===0)t++;else if((l[t]&224)===192){if(t+1===e||(l[t+1]&192)!==128||(l[t]&254)===192)return!1;t+=2}else if((l[t]&240)===224){if(t+2>=e||(l[t+1]&192)!==128||(l[t+2]&192)!==128||l[t]===224&&(l[t+1]&224)===128||l[t]===237&&(l[t+1]&224)===160)return!1;t+=3}else if((l[t]&248)===240){if(t+3>=e||(l[t+1]&192)!==128||(l[t+2]&192)!==128||(l[t+3]&192)!==128||l[t]===240&&(l[t+1]&240)===128||l[t]===244&&l[t+1]>143||l[t]>244)return!1;t+=4}else return!1;return!0}function vB(l){return wB&&typeof l=="object"&&typeof l.arrayBuffer=="function"&&typeof l.type=="string"&&typeof l.stream=="function"&&(l[Symbol.toStringTag]==="Blob"||l[Symbol.toStringTag]==="File")}NS.exports={isBlob:vB,isValidStatusCode:EB,isValidUTF8:Lw,tokenChars:xB};if(VC)NS.exports.isValidUTF8=function(l){return l.length<24?Lw(l):VC(l)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let l=Cr("utf-8-validate");NS.exports.isValidUTF8=function(e){return e.length<32?Lw(e):l(e)}}catch{}});var Ow=zr((Urt,GC)=>{"use strict";var{Writable:AB}=Cr("stream"),IC=ng(),{BINARY_TYPES:TB,EMPTY_BUFFER:FC,kStatusCode:NB,kWebSocket:LB}=ra(),{concat:Cw,toArrayBuffer:CB,unmask:kB}=ig(),{isValidStatusCode:MB,isValidUTF8:DC}=Bh(),LS=Buffer[Symbol.species],ls=0,_C=1,BC=2,UC=3,kw=4,Mw=5,CS=6,Rw=class extends AB{constructor(e={}){super(),this._allowSynchronousEvents=e.allowSynchronousEvents!==void 0?e.allowSynchronousEvents:!0,this._binaryType=e.binaryType||TB[0],this._extensions=e.extensions||{},this._isServer=!!e.isServer,this._maxPayload=e.maxPayload|0,this._skipUTF8Validation=!!e.skipUTF8Validation,this[LB]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=ls}_write(e,t,r){if(this._opcode===8&&this._state==ls)return r();this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(r)}consume(e){if(this._bufferedBytes-=e,e===this._buffers[0].length)return this._buffers.shift();if(e<this._buffers[0].length){let r=this._buffers[0];return this._buffers[0]=new LS(r.buffer,r.byteOffset+e,r.length-e),new LS(r.buffer,r.byteOffset,e)}let t=Buffer.allocUnsafe(e);do{let r=this._buffers[0],o=t.length-e;e>=r.length?t.set(this._buffers.shift(),o):(t.set(new Uint8Array(r.buffer,r.byteOffset,e),o),this._buffers[0]=new LS(r.buffer,r.byteOffset+e,r.length-e)),e-=r.length}while(e>0);return t}startLoop(e){this._loop=!0;do switch(this._state){case ls:this.getInfo(e);break;case _C:this.getPayloadLength16(e);break;case BC:this.getPayloadLength64(e);break;case UC:this.getMask();break;case kw:this.getData(e);break;case Mw:case CS:this._loop=!1;return}while(this._loop);this._errored||e()}getInfo(e){if(this._bufferedBytes<2){this._loop=!1;return}let t=this.consume(2);if((t[0]&48)!==0){let o=this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3");e(o);return}let r=(t[0]&64)===64;if(r&&!this._extensions[IC.extensionName]){let o=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(o);return}if(this._fin=(t[0]&128)===128,this._opcode=t[0]&15,this._payloadLength=t[1]&127,this._opcode===0){if(r){let o=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(o);return}if(!this._fragmented){let o=this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE");e(o);return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){let o=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");e(o);return}this._compressed=r}else if(this._opcode>7&&this._opcode<11){if(!this._fin){let o=this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN");e(o);return}if(r){let o=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(o);return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){let o=this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");e(o);return}}else{let o=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");e(o);return}if(!this._fin&&!this._fragmented&&(this._fragmented=this._opcode),this._masked=(t[1]&128)===128,this._isServer){if(!this._masked){let o=this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK");e(o);return}}else if(this._masked){let o=this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK");e(o);return}this._payloadLength===126?this._state=_C:this._payloadLength===127?this._state=BC:this.haveLength(e)}getPayloadLength16(e){if(this._bufferedBytes<2){this._loop=!1;return}this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(e)}getPayloadLength64(e){if(this._bufferedBytes<8){this._loop=!1;return}let t=this.consume(8),r=t.readUInt32BE(0);if(r>Math.pow(2,21)-1){let o=this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH");e(o);return}this._payloadLength=r*Math.pow(2,32)+t.readUInt32BE(4),this.haveLength(e)}haveLength(e){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)){let t=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");e(t);return}this._masked?this._state=UC:this._state=kw}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=kw}getData(e){let t=FC;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=!1;return}t=this.consume(this._payloadLength),this._masked&&(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])!==0&&kB(t,this._mask)}if(this._opcode>7){this.controlMessage(t,e);return}if(this._compressed){this._state=Mw,this.decompress(t,e);return}t.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(t)),this.dataMessage(e)}decompress(e,t){this._extensions[IC.extensionName].decompress(e,this._fin,(o,i)=>{if(o)return t(o);if(i.length){if(this._messageLength+=i.length,this._messageLength>this._maxPayload&&this._maxPayload>0){let n=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");t(n);return}this._fragments.push(i)}this.dataMessage(t),this._state===ls&&this.startLoop(t)})}dataMessage(e){if(!this._fin){this._state=ls;return}let t=this._messageLength,r=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],this._opcode===2){let o;this._binaryType==="nodebuffer"?o=Cw(r,t):this._binaryType==="arraybuffer"?o=CB(Cw(r,t)):this._binaryType==="blob"?o=new Blob(r):o=r,this._allowSynchronousEvents?(this.emit("message",o,!0),this._state=ls):(this._state=CS,setImmediate(()=>{this.emit("message",o,!0),this._state=ls,this.startLoop(e)}))}else{let o=Cw(r,t);if(!this._skipUTF8Validation&&!DC(o)){let i=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");e(i);return}this._state===Mw||this._allowSynchronousEvents?(this.emit("message",o,!1),this._state=ls):(this._state=CS,setImmediate(()=>{this.emit("message",o,!1),this._state=ls,this.startLoop(e)}))}}controlMessage(e,t){if(this._opcode===8){if(e.length===0)this._loop=!1,this.emit("conclude",1005,FC),this.end();else{let r=e.readUInt16BE(0);if(!MB(r)){let i=this.createError(RangeError,`invalid status code ${r}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");t(i);return}let o=new LS(e.buffer,e.byteOffset+2,e.length-2);if(!this._skipUTF8Validation&&!DC(o)){let i=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");t(i);return}this._loop=!1,this.emit("conclude",r,o),this.end()}this._state=ls;return}this._allowSynchronousEvents?(this.emit(this._opcode===9?"ping":"pong",e),this._state=ls):(this._state=CS,setImmediate(()=>{this.emit(this._opcode===9?"ping":"pong",e),this._state=ls,this.startLoop(t)}))}createError(e,t,r,o,i){this._loop=!1,this._errored=!0;let n=new e(r?`Invalid WebSocket frame: ${t}`:t);return Error.captureStackTrace(n,this.createError),n.code=i,n[NB]=o,n}};GC.exports=Rw});var Fw=zr((Hrt,qC)=>{"use strict";var{Duplex:Grt}=Cr("stream"),{randomFillSync:RB}=Cr("crypto"),HC=ng(),{EMPTY_BUFFER:OB,kWebSocket:VB,NOOP:IB}=ra(),{isBlob:Uh,isValidStatusCode:FB}=Bh(),{mask:$C,toBuffer:Jm}=ig(),as=Symbol("kByteLength"),DB=Buffer.alloc(4),kS=8*1024,Zm,Gh=kS,Gs=0,_B=1,BB=2,Vw=class l{constructor(e,t,r){this._extensions=t||{},r&&(this._generateMask=r,this._maskBuffer=Buffer.alloc(4)),this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=Gs,this.onerror=IB,this[VB]=void 0}static frame(e,t){let r,o=!1,i=2,n=!1;t.mask&&(r=t.maskBuffer||DB,t.generateMask?t.generateMask(r):(Gh===kS&&(Zm===void 0&&(Zm=Buffer.alloc(kS)),RB(Zm,0,kS),Gh=0),r[0]=Zm[Gh++],r[1]=Zm[Gh++],r[2]=Zm[Gh++],r[3]=Zm[Gh++]),n=(r[0]|r[1]|r[2]|r[3])===0,i=6);let a;typeof e=="string"?(!t.mask||n)&&t[as]!==void 0?a=t[as]:(e=Buffer.from(e),a=e.length):(a=e.length,o=t.mask&&t.readOnly&&!n);let m=a;a>=65536?(i+=8,m=127):a>125&&(i+=2,m=126);let p=Buffer.allocUnsafe(o?a+i:i);return p[0]=t.fin?t.opcode|128:t.opcode,t.rsv1&&(p[0]|=64),p[1]=m,m===126?p.writeUInt16BE(a,2):m===127&&(p[2]=p[3]=0,p.writeUIntBE(a,4,6)),t.mask?(p[1]|=128,p[i-4]=r[0],p[i-3]=r[1],p[i-2]=r[2],p[i-1]=r[3],n?[p,e]:o?($C(e,r,p,i,a),[p]):($C(e,r,e,0,a),[p,e])):[p,e]}close(e,t,r,o){let i;if(e===void 0)i=OB;else{if(typeof e!="number"||!FB(e))throw new TypeError("First argument must be a valid error code number");if(t===void 0||!t.length)i=Buffer.allocUnsafe(2),i.writeUInt16BE(e,0);else{let a=Buffer.byteLength(t);if(a>123)throw new RangeError("The message must not be greater than 123 bytes");i=Buffer.allocUnsafe(2+a),i.writeUInt16BE(e,0),typeof t=="string"?i.write(t,2):i.set(t,2)}}let n={[as]:i.length,fin:!0,generateMask:this._generateMask,mask:r,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};this._state!==Gs?this.enqueue([this.dispatch,i,!1,n,o]):this.sendFrame(l.frame(i,n),o)}ping(e,t,r){let o,i;if(typeof e=="string"?(o=Buffer.byteLength(e),i=!1):Uh(e)?(o=e.size,i=!1):(e=Jm(e),o=e.length,i=Jm.readOnly),o>125)throw new RangeError("The data size must not be greater than 125 bytes");let n={[as]:o,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:9,readOnly:i,rsv1:!1};Uh(e)?this._state!==Gs?this.enqueue([this.getBlobData,e,!1,n,r]):this.getBlobData(e,!1,n,r):this._state!==Gs?this.enqueue([this.dispatch,e,!1,n,r]):this.sendFrame(l.frame(e,n),r)}pong(e,t,r){let o,i;if(typeof e=="string"?(o=Buffer.byteLength(e),i=!1):Uh(e)?(o=e.size,i=!1):(e=Jm(e),o=e.length,i=Jm.readOnly),o>125)throw new RangeError("The data size must not be greater than 125 bytes");let n={[as]:o,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:10,readOnly:i,rsv1:!1};Uh(e)?this._state!==Gs?this.enqueue([this.getBlobData,e,!1,n,r]):this.getBlobData(e,!1,n,r):this._state!==Gs?this.enqueue([this.dispatch,e,!1,n,r]):this.sendFrame(l.frame(e,n),r)}send(e,t,r){let o=this._extensions[HC.extensionName],i=t.binary?2:1,n=t.compress,a,m;typeof e=="string"?(a=Buffer.byteLength(e),m=!1):Uh(e)?(a=e.size,m=!1):(e=Jm(e),a=e.length,m=Jm.readOnly),this._firstFragment?(this._firstFragment=!1,n&&o&&o.params[o._isServer?"server_no_context_takeover":"client_no_context_takeover"]&&(n=a>=o._threshold),this._compress=n):(n=!1,i=0),t.fin&&(this._firstFragment=!0);let p={[as]:a,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:i,readOnly:m,rsv1:n};Uh(e)?this._state!==Gs?this.enqueue([this.getBlobData,e,this._compress,p,r]):this.getBlobData(e,this._compress,p,r):this._state!==Gs?this.enqueue([this.dispatch,e,this._compress,p,r]):this.dispatch(e,this._compress,p,r)}getBlobData(e,t,r,o){this._bufferedBytes+=r[as],this._state=BB,e.arrayBuffer().then(i=>{if(this._socket.destroyed){let a=new Error("The socket was closed while the blob was being read");process.nextTick(Iw,this,a,o);return}this._bufferedBytes-=r[as];let n=Jm(i);t?this.dispatch(n,t,r,o):(this._state=Gs,this.sendFrame(l.frame(n,r),o),this.dequeue())}).catch(i=>{process.nextTick(UB,this,i,o)})}dispatch(e,t,r,o){if(!t){this.sendFrame(l.frame(e,r),o);return}let i=this._extensions[HC.extensionName];this._bufferedBytes+=r[as],this._state=_B,i.compress(e,r.fin,(n,a)=>{if(this._socket.destroyed){let m=new Error("The socket was closed while data was being compressed");Iw(this,m,o);return}this._bufferedBytes-=r[as],this._state=Gs,r.readOnly=!1,this.sendFrame(l.frame(a,r),o),this.dequeue()})}dequeue(){for(;this._state===Gs&&this._queue.length;){let e=this._queue.shift();this._bufferedBytes-=e[3][as],Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[3][as],this._queue.push(e)}sendFrame(e,t){e.length===2?(this._socket.cork(),this._socket.write(e[0]),this._socket.write(e[1],t),this._socket.uncork()):this._socket.write(e[0],t)}};qC.exports=Vw;function Iw(l,e,t){typeof t=="function"&&t(e);for(let r=0;r<l._queue.length;r++){let o=l._queue[r],i=o[o.length-1];typeof i=="function"&&i(e)}}function UB(l,e,t){Iw(l,e,t),l.onerror(e)}});var QC=zr(($rt,ZC)=>{"use strict";var{kForOnEventAttribute:lg,kListener:Dw}=ra(),WC=Symbol("kCode"),jC=Symbol("kData"),zC=Symbol("kError"),XC=Symbol("kMessage"),YC=Symbol("kReason"),Hh=Symbol("kTarget"),KC=Symbol("kType"),JC=Symbol("kWasClean"),ia=class{constructor(e){this[Hh]=null,this[KC]=e}get target(){return this[Hh]}get type(){return this[KC]}};Object.defineProperty(ia.prototype,"target",{enumerable:!0});Object.defineProperty(ia.prototype,"type",{enumerable:!0});var Qm=class extends ia{constructor(e,t={}){super(e),this[WC]=t.code===void 0?0:t.code,this[YC]=t.reason===void 0?"":t.reason,this[JC]=t.wasClean===void 0?!1:t.wasClean}get code(){return this[WC]}get reason(){return this[YC]}get wasClean(){return this[JC]}};Object.defineProperty(Qm.prototype,"code",{enumerable:!0});Object.defineProperty(Qm.prototype,"reason",{enumerable:!0});Object.defineProperty(Qm.prototype,"wasClean",{enumerable:!0});var $h=class extends ia{constructor(e,t={}){super(e),this[zC]=t.error===void 0?null:t.error,this[XC]=t.message===void 0?"":t.message}get error(){return this[zC]}get message(){return this[XC]}};Object.defineProperty($h.prototype,"error",{enumerable:!0});Object.defineProperty($h.prototype,"message",{enumerable:!0});var ag=class extends ia{constructor(e,t={}){super(e),this[jC]=t.data===void 0?null:t.data}get data(){return this[jC]}};Object.defineProperty(ag.prototype,"data",{enumerable:!0});var GB={addEventListener(l,e,t={}){for(let o of this.listeners(l))if(!t[lg]&&o[Dw]===e&&!o[lg])return;let r;if(l==="message")r=function(i,n){let a=new ag("message",{data:n?i:i.toString()});a[Hh]=this,MS(e,this,a)};else if(l==="close")r=function(i,n){let a=new Qm("close",{code:i,reason:n.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});a[Hh]=this,MS(e,this,a)};else if(l==="error")r=function(i){let n=new $h("error",{error:i,message:i.message});n[Hh]=this,MS(e,this,n)};else if(l==="open")r=function(){let i=new ia("open");i[Hh]=this,MS(e,this,i)};else return;r[lg]=!!t[lg],r[Dw]=e,t.once?this.once(l,r):this.on(l,r)},removeEventListener(l,e){for(let t of this.listeners(l))if(t[Dw]===e&&!t[lg]){this.removeListener(l,t);break}}};ZC.exports={CloseEvent:Qm,ErrorEvent:$h,Event:ia,EventTarget:GB,MessageEvent:ag};function MS(l,e,t){typeof l=="object"&&l.handleEvent?l.handleEvent.call(l,t):l.call(e,t)}});var _w=zr((qrt,t0)=>{"use strict";var{tokenChars:yg}=Bh();function Jn(l,e,t){l[e]===void 0?l[e]=[t]:l[e].push(t)}function HB(l){let e=Object.create(null),t=Object.create(null),r=!1,o=!1,i=!1,n,a,m=-1,p=-1,b=-1,d=0;for(;d<l.length;d++)if(p=l.charCodeAt(d),n===void 0)if(b===-1&&yg[p]===1)m===-1&&(m=d);else if(d!==0&&(p===32||p===9))b===-1&&m!==-1&&(b=d);else if(p===59||p===44){if(m===-1)throw new SyntaxError(`Unexpected character at index ${d}`);b===-1&&(b=d);let v=l.slice(m,b);p===44?(Jn(e,v,t),t=Object.create(null)):n=v,m=b=-1}else throw new SyntaxError(`Unexpected character at index ${d}`);else if(a===void 0)if(b===-1&&yg[p]===1)m===-1&&(m=d);else if(p===32||p===9)b===-1&&m!==-1&&(b=d);else if(p===59||p===44){if(m===-1)throw new SyntaxError(`Unexpected character at index ${d}`);b===-1&&(b=d),Jn(t,l.slice(m,b),!0),p===44&&(Jn(e,n,t),t=Object.create(null),n=void 0),m=b=-1}else if(p===61&&m!==-1&&b===-1)a=l.slice(m,d),m=b=-1;else throw new SyntaxError(`Unexpected character at index ${d}`);else if(o){if(yg[p]!==1)throw new SyntaxError(`Unexpected character at index ${d}`);m===-1?m=d:r||(r=!0),o=!1}else if(i)if(yg[p]===1)m===-1&&(m=d);else if(p===34&&m!==-1)i=!1,b=d;else if(p===92)o=!0;else throw new SyntaxError(`Unexpected character at index ${d}`);else if(p===34&&l.charCodeAt(d-1)===61)i=!0;else if(b===-1&&yg[p]===1)m===-1&&(m=d);else if(m!==-1&&(p===32||p===9))b===-1&&(b=d);else if(p===59||p===44){if(m===-1)throw new SyntaxError(`Unexpected character at index ${d}`);b===-1&&(b=d);let v=l.slice(m,b);r&&(v=v.replace(/\\/g,""),r=!1),Jn(t,a,v),p===44&&(Jn(e,n,t),t=Object.create(null),n=void 0),a=void 0,m=b=-1}else throw new SyntaxError(`Unexpected character at index ${d}`);if(m===-1||i||p===32||p===9)throw new SyntaxError("Unexpected end of input");b===-1&&(b=d);let f=l.slice(m,b);return n===void 0?Jn(e,f,t):(a===void 0?Jn(t,f,!0):r?Jn(t,a,f.replace(/\\/g,"")):Jn(t,a,f),Jn(e,n,t)),e}function $B(l){return Object.keys(l).map(e=>{let t=l[e];return Array.isArray(t)||(t=[t]),t.map(r=>[e].concat(Object.keys(r).map(o=>{let i=r[o];return Array.isArray(i)||(i=[i]),i.map(n=>n===!0?o:`${o}=${n}`).join("; ")})).join("; ")).join(", ")}).join(", ")}t0.exports={format:$B,parse:HB}});var IS=zr((zrt,p0)=>{"use strict";var qB=Cr("events"),WB=Cr("https"),jB=Cr("http"),o0=Cr("net"),zB=Cr("tls"),{randomBytes:XB,createHash:YB}=Cr("crypto"),{Duplex:Wrt,Readable:jrt}=Cr("stream"),{URL:Bw}=Cr("url"),Dy=ng(),KB=Ow(),JB=Fw(),{isBlob:ZB}=Bh(),{BINARY_TYPES:e0,CLOSE_TIMEOUT:QB,EMPTY_BUFFER:RS,GUID:tU,kForOnEventAttribute:Uw,kListener:eU,kStatusCode:rU,kWebSocket:io,NOOP:i0}=ra(),{EventTarget:{addEventListener:oU,removeEventListener:iU}}=QC(),{format:sU,parse:nU}=_w(),{toBuffer:lU}=ig(),s0=Symbol("kAborted"),Gw=[8,13],sa=["CONNECTING","OPEN","CLOSING","CLOSED"],aU=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/,tr=class l extends qB{constructor(e,t,r){super(),this._binaryType=e0[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=RS,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol="",this._readyState=l.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,e!==null?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,t===void 0?t=[]:Array.isArray(t)||(typeof t=="object"&&t!==null?(r=t,t=[]):t=[t]),n0(this,e,t,r)):(this._autoPong=r.autoPong,this._closeTimeout=r.closeTimeout,this._isServer=!0)}get binaryType(){return this._binaryType}set binaryType(e){e0.includes(e)&&(this._binaryType=e,this._receiver&&(this._receiver._binaryType=e))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(e,t,r){let o=new KB({allowSynchronousEvents:r.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:r.maxPayload,skipUTF8Validation:r.skipUTF8Validation}),i=new JB(e,this._extensions,r.generateMask);this._receiver=o,this._sender=i,this._socket=e,o[io]=this,i[io]=this,e[io]=this,o.on("conclude",uU),o.on("drain",pU),o.on("error",hU),o.on("message",cU),o.on("ping",dU),o.on("pong",bU),i.onerror=gU,e.setTimeout&&e.setTimeout(0),e.setNoDelay&&e.setNoDelay(),t.length>0&&e.unshift(t),e.on("close",y0),e.on("data",VS),e.on("end",m0),e.on("error",u0),this._readyState=l.OPEN,this.emit("open")}emitClose(){if(!this._socket){this._readyState=l.CLOSED,this.emit("close",this._closeCode,this._closeMessage);return}this._extensions[Dy.extensionName]&&this._extensions[Dy.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=l.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(e,t){if(this.readyState!==l.CLOSED){if(this.readyState===l.CONNECTING){Di(this,this._req,"WebSocket was closed before the connection was established");return}if(this.readyState===l.CLOSING){this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end();return}this._readyState=l.CLOSING,this._sender.close(e,t,!this._isServer,r=>{r||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())}),a0(this)}}pause(){this.readyState===l.CONNECTING||this.readyState===l.CLOSED||(this._paused=!0,this._socket.pause())}ping(e,t,r){if(this.readyState===l.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof e=="function"?(r=e,e=t=void 0):typeof t=="function"&&(r=t,t=void 0),typeof e=="number"&&(e=e.toString()),this.readyState!==l.OPEN){Hw(this,e,r);return}t===void 0&&(t=!this._isServer),this._sender.ping(e||RS,t,r)}pong(e,t,r){if(this.readyState===l.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof e=="function"?(r=e,e=t=void 0):typeof t=="function"&&(r=t,t=void 0),typeof e=="number"&&(e=e.toString()),this.readyState!==l.OPEN){Hw(this,e,r);return}t===void 0&&(t=!this._isServer),this._sender.pong(e||RS,t,r)}resume(){this.readyState===l.CONNECTING||this.readyState===l.CLOSED||(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume())}send(e,t,r){if(this.readyState===l.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof t=="function"&&(r=t,t={}),typeof e=="number"&&(e=e.toString()),this.readyState!==l.OPEN){Hw(this,e,r);return}let o={binary:typeof e!="string",mask:!this._isServer,compress:!0,fin:!0,...t};this._extensions[Dy.extensionName]||(o.compress=!1),this._sender.send(e||RS,o,r)}terminate(){if(this.readyState!==l.CLOSED){if(this.readyState===l.CONNECTING){Di(this,this._req,"WebSocket was closed before the connection was established");return}this._socket&&(this._readyState=l.CLOSING,this._socket.destroy())}}};Object.defineProperty(tr,"CONNECTING",{enumerable:!0,value:sa.indexOf("CONNECTING")});Object.defineProperty(tr.prototype,"CONNECTING",{enumerable:!0,value:sa.indexOf("CONNECTING")});Object.defineProperty(tr,"OPEN",{enumerable:!0,value:sa.indexOf("OPEN")});Object.defineProperty(tr.prototype,"OPEN",{enumerable:!0,value:sa.indexOf("OPEN")});Object.defineProperty(tr,"CLOSING",{enumerable:!0,value:sa.indexOf("CLOSING")});Object.defineProperty(tr.prototype,"CLOSING",{enumerable:!0,value:sa.indexOf("CLOSING")});Object.defineProperty(tr,"CLOSED",{enumerable:!0,value:sa.indexOf("CLOSED")});Object.defineProperty(tr.prototype,"CLOSED",{enumerable:!0,value:sa.indexOf("CLOSED")});["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach(l=>{Object.defineProperty(tr.prototype,l,{enumerable:!0})});["open","error","close","message"].forEach(l=>{Object.defineProperty(tr.prototype,`on${l}`,{enumerable:!0,get(){for(let e of this.listeners(l))if(e[Uw])return e[eU];return null},set(e){for(let t of this.listeners(l))if(t[Uw]){this.removeListener(l,t);break}typeof e=="function"&&this.addEventListener(l,e,{[Uw]:!0})}})});tr.prototype.addEventListener=oU;tr.prototype.removeEventListener=iU;p0.exports=tr;function n0(l,e,t,r){let o={allowSynchronousEvents:!0,autoPong:!0,closeTimeout:QB,protocolVersion:Gw[1],maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...r,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if(l._autoPong=o.autoPong,l._closeTimeout=o.closeTimeout,!Gw.includes(o.protocolVersion))throw new RangeError(`Unsupported protocol version: ${o.protocolVersion} (supported versions: ${Gw.join(", ")})`);let i;if(e instanceof Bw)i=e;else try{i=new Bw(e)}catch{throw new SyntaxError(`Invalid URL: ${e}`)}i.protocol==="http:"?i.protocol="ws:":i.protocol==="https:"&&(i.protocol="wss:"),l._url=i.href;let n=i.protocol==="wss:",a=i.protocol==="ws+unix:",m;if(i.protocol!=="ws:"&&!n&&!a?m=`The URL's protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"`:a&&!i.pathname?m="The URL's pathname is empty":i.hash&&(m="The URL contains a fragment identifier"),m){let C=new SyntaxError(m);if(l._redirects===0)throw C;OS(l,C);return}let p=n?443:80,b=XB(16).toString("base64"),d=n?WB.request:jB.request,f=new Set,v;if(o.createConnection=o.createConnection||(n?mU:yU),o.defaultPort=o.defaultPort||p,o.port=i.port||p,o.host=i.hostname.startsWith("[")?i.hostname.slice(1,-1):i.hostname,o.headers={...o.headers,"Sec-WebSocket-Version":o.protocolVersion,"Sec-WebSocket-Key":b,Connection:"Upgrade",Upgrade:"websocket"},o.path=i.pathname+i.search,o.timeout=o.handshakeTimeout,o.perMessageDeflate&&(v=new Dy(o.perMessageDeflate!==!0?o.perMessageDeflate:{},!1,o.maxPayload),o.headers["Sec-WebSocket-Extensions"]=sU({[Dy.extensionName]:v.offer()})),t.length){for(let C of t){if(typeof C!="string"||!aU.test(C)||f.has(C))throw new SyntaxError("An invalid or duplicated subprotocol was specified");f.add(C)}o.headers["Sec-WebSocket-Protocol"]=t.join(",")}if(o.origin&&(o.protocolVersion<13?o.headers["Sec-WebSocket-Origin"]=o.origin:o.headers.Origin=o.origin),(i.username||i.password)&&(o.auth=`${i.username}:${i.password}`),a){let C=o.path.split(":");o.socketPath=C[0],o.path=C[1]}let L;if(o.followRedirects){if(l._redirects===0){l._originalIpc=a,l._originalSecure=n,l._originalHostOrSocketPath=a?o.socketPath:i.host;let C=r&&r.headers;if(r={...r,headers:{}},C)for(let[X,lt]of Object.entries(C))r.headers[X.toLowerCase()]=lt}else if(l.listenerCount("redirect")===0){let C=a?l._originalIpc?o.socketPath===l._originalHostOrSocketPath:!1:l._originalIpc?!1:i.host===l._originalHostOrSocketPath;(!C||l._originalSecure&&!n)&&(delete o.headers.authorization,delete o.headers.cookie,C||delete o.headers.host,o.auth=void 0)}o.auth&&!r.headers.authorization&&(r.headers.authorization="Basic "+Buffer.from(o.auth).toString("base64")),L=l._req=d(o),l._redirects&&l.emit("redirect",l.url,L)}else L=l._req=d(o);o.timeout&&L.on("timeout",()=>{Di(l,L,"Opening handshake has timed out")}),L.on("error",C=>{L===null||L[s0]||(L=l._req=null,OS(l,C))}),L.on("response",C=>{let X=C.headers.location,lt=C.statusCode;if(X&&o.followRedirects&&lt>=300&&lt<400){if(++l._redirects>o.maxRedirects){Di(l,L,"Maximum redirects exceeded");return}L.abort();let Q;try{Q=new Bw(X,e)}catch{let qt=new SyntaxError(`Invalid URL: ${X}`);OS(l,qt);return}n0(l,Q,t,r)}else l.emit("unexpected-response",L,C)||Di(l,L,`Unexpected server response: ${C.statusCode}`)}),L.on("upgrade",(C,X,lt)=>{if(l.emit("upgrade",C),l.readyState!==tr.CONNECTING)return;L=l._req=null;let Q=C.headers.upgrade;if(Q===void 0||Q.toLowerCase()!=="websocket"){Di(l,X,"Invalid Upgrade header");return}let ct=YB("sha1").update(b+tU).digest("base64");if(C.headers["sec-websocket-accept"]!==ct){Di(l,X,"Invalid Sec-WebSocket-Accept header");return}let qt=C.headers["sec-websocket-protocol"],Nt;if(qt!==void 0?f.size?f.has(qt)||(Nt="Server sent an invalid subprotocol"):Nt="Server sent a subprotocol but none was requested":f.size&&(Nt="Server sent no subprotocol"),Nt){Di(l,X,Nt);return}qt&&(l._protocol=qt);let te=C.headers["sec-websocket-extensions"];if(te!==void 0){if(!v){Di(l,X,"Server sent a Sec-WebSocket-Extensions header but no extension was requested");return}let Lt;try{Lt=nU(te)}catch{Di(l,X,"Invalid Sec-WebSocket-Extensions header");return}let er=Object.keys(Lt);if(er.length!==1||er[0]!==Dy.extensionName){Di(l,X,"Server indicated an extension that was not requested");return}try{v.accept(Lt[Dy.extensionName])}catch{Di(l,X,"Invalid Sec-WebSocket-Extensions header");return}l._extensions[Dy.extensionName]=v}l.setSocket(X,lt,{allowSynchronousEvents:o.allowSynchronousEvents,generateMask:o.generateMask,maxPayload:o.maxPayload,skipUTF8Validation:o.skipUTF8Validation})}),o.finishRequest?o.finishRequest(L,l):L.end()}function OS(l,e){l._readyState=tr.CLOSING,l._errorEmitted=!0,l.emit("error",e),l.emitClose()}function yU(l){return l.path=l.socketPath,o0.connect(l)}function mU(l){return l.path=void 0,!l.servername&&l.servername!==""&&(l.servername=o0.isIP(l.host)?"":l.host),zB.connect(l)}function Di(l,e,t){l._readyState=tr.CLOSING;let r=new Error(t);Error.captureStackTrace(r,Di),e.setHeader?(e[s0]=!0,e.abort(),e.socket&&!e.socket.destroyed&&e.socket.destroy(),process.nextTick(OS,l,r)):(e.destroy(r),e.once("error",l.emit.bind(l,"error")),e.once("close",l.emitClose.bind(l)))}function Hw(l,e,t){if(e){let r=ZB(e)?e.size:lU(e).length;l._socket?l._sender._bufferedBytes+=r:l._bufferedAmount+=r}if(t){let r=new Error(`WebSocket is not open: readyState ${l.readyState} (${sa[l.readyState]})`);process.nextTick(t,r)}}function uU(l,e){let t=this[io];t._closeFrameReceived=!0,t._closeMessage=e,t._closeCode=l,t._socket[io]!==void 0&&(t._socket.removeListener("data",VS),process.nextTick(l0,t._socket),l===1005?t.close():t.close(l,e))}function pU(){let l=this[io];l.isPaused||l._socket.resume()}function hU(l){let e=this[io];e._socket[io]!==void 0&&(e._socket.removeListener("data",VS),process.nextTick(l0,e._socket),e.close(l[rU])),e._errorEmitted||(e._errorEmitted=!0,e.emit("error",l))}function r0(){this[io].emitClose()}function cU(l,e){this[io].emit("message",l,e)}function dU(l){let e=this[io];e._autoPong&&e.pong(l,!this._isServer,i0),e.emit("ping",l)}function bU(l){this[io].emit("pong",l)}function l0(l){l.resume()}function gU(l){let e=this[io];e.readyState!==tr.CLOSED&&(e.readyState===tr.OPEN&&(e._readyState=tr.CLOSING,a0(e)),this._socket.end(),e._errorEmitted||(e._errorEmitted=!0,e.emit("error",l)))}function a0(l){l._closeTimer=setTimeout(l._socket.destroy.bind(l._socket),l._closeTimeout)}function y0(){let l=this[io];if(this.removeListener("close",y0),this.removeListener("data",VS),this.removeListener("end",m0),l._readyState=tr.CLOSING,!this._readableState.endEmitted&&!l._closeFrameReceived&&!l._receiver._writableState.errorEmitted&&this._readableState.length!==0){let e=this.read(this._readableState.length);l._receiver.write(e)}l._receiver.end(),this[io]=void 0,clearTimeout(l._closeTimer),l._receiver._writableState.finished||l._receiver._writableState.errorEmitted?l.emitClose():(l._receiver.on("error",r0),l._receiver.on("finish",r0))}function VS(l){this[io]._receiver.write(l)||this.pause()}function m0(){let l=this[io];l._readyState=tr.CLOSING,l._receiver.end(),this.end()}function u0(){let l=this[io];this.removeListener("error",u0),this.on("error",i0),l&&(l._readyState=tr.CLOSING,this.destroy())}});var b0=zr((Yrt,d0)=>{"use strict";var Xrt=IS(),{Duplex:fU}=Cr("stream");function h0(l){l.emit("close")}function SU(){!this.destroyed&&this._writableState.finished&&this.destroy()}function c0(l){this.removeListener("error",c0),this.destroy(),this.listenerCount("error")===0&&this.emit("error",l)}function PU(l,e){let t=!0,r=new fU({...e,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return l.on("message",function(i,n){let a=!n&&r._readableState.objectMode?i.toString():i;r.push(a)||l.pause()}),l.once("error",function(i){r.destroyed||(t=!1,r.destroy(i))}),l.once("close",function(){r.destroyed||r.push(null)}),r._destroy=function(o,i){if(l.readyState===l.CLOSED){i(o),process.nextTick(h0,r);return}let n=!1;l.once("error",function(m){n=!0,i(m)}),l.once("close",function(){n||i(o),process.nextTick(h0,r)}),t&&l.terminate()},r._final=function(o){if(l.readyState===l.CONNECTING){l.once("open",function(){r._final(o)});return}l._socket!==null&&(l._socket._writableState.finished?(o(),r._readableState.endEmitted&&r.destroy()):(l._socket.once("finish",function(){o()}),l.close()))},r._read=function(){l.isPaused&&l.resume()},r._write=function(o,i,n){if(l.readyState===l.CONNECTING){l.once("open",function(){r._write(o,i,n)});return}l.send(o,n)},r.on("end",SU),r.on("error",c0),r}d0.exports=PU});var f0=zr((Krt,g0)=>{"use strict";var{tokenChars:wU}=Bh();function xU(l){let e=new Set,t=-1,r=-1,o=0;for(o;o<l.length;o++){let n=l.charCodeAt(o);if(r===-1&&wU[n]===1)t===-1&&(t=o);else if(o!==0&&(n===32||n===9))r===-1&&t!==-1&&(r=o);else if(n===44){if(t===-1)throw new SyntaxError(`Unexpected character at index ${o}`);r===-1&&(r=o);let a=l.slice(t,r);if(e.has(a))throw new SyntaxError(`The "${a}" subprotocol is duplicated`);e.add(a),t=r=-1}else throw new SyntaxError(`Unexpected character at index ${o}`)}if(t===-1||r!==-1)throw new SyntaxError("Unexpected end of input");let i=l.slice(t,o);if(e.has(i))throw new SyntaxError(`The "${i}" subprotocol is duplicated`);return e.add(i),e}g0.exports={parse:xU}});var A0=zr((Zrt,v0)=>{"use strict";var EU=Cr("events"),FS=Cr("http"),{Duplex:Jrt}=Cr("stream"),{createHash:vU}=Cr("crypto"),S0=_w(),tu=ng(),AU=f0(),TU=IS(),{CLOSE_TIMEOUT:NU,GUID:LU,kWebSocket:CU}=ra(),kU=/^[+/0-9A-Za-z]{22}==$/,P0=0,w0=1,E0=2,$w=class extends EU{constructor(e,t){if(super(),e={allowSynchronousEvents:!0,autoPong:!0,maxPayload:100*1024*1024,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,closeTimeout:NU,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:TU,...e},e.port==null&&!e.server&&!e.noServer||e.port!=null&&(e.server||e.noServer)||e.server&&e.noServer)throw new TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(e.port!=null?(this._server=FS.createServer((r,o)=>{let i=FS.STATUS_CODES[426];o.writeHead(426,{"Content-Length":i.length,"Content-Type":"text/plain"}),o.end(i)}),this._server.listen(e.port,e.host,e.backlog,t)):e.server&&(this._server=e.server),this._server){let r=this.emit.bind(this,"connection");this._removeListeners=MU(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(o,i,n)=>{this.handleUpgrade(o,i,n,r)}})}e.perMessageDeflate===!0&&(e.perMessageDeflate={}),e.clientTracking&&(this.clients=new Set,this._shouldEmitClose=!1),this.options=e,this._state=P0}address(){if(this.options.noServer)throw new Error('The server is operating in "noServer" mode');return this._server?this._server.address():null}close(e){if(this._state===E0){e&&this.once("close",()=>{e(new Error("The server is not running"))}),process.nextTick(mg,this);return}if(e&&this.once("close",e),this._state!==w0)if(this._state=w0,this.options.noServer||this.options.server)this._server&&(this._removeListeners(),this._removeListeners=this._server=null),this.clients?this.clients.size?this._shouldEmitClose=!0:process.nextTick(mg,this):process.nextTick(mg,this);else{let t=this._server;this._removeListeners(),this._removeListeners=this._server=null,t.close(()=>{mg(this)})}}shouldHandle(e){if(this.options.path){let t=e.url.indexOf("?");if((t!==-1?e.url.slice(0,t):e.url)!==this.options.path)return!1}return!0}handleUpgrade(e,t,r,o){t.on("error",x0);let i=e.headers["sec-websocket-key"],n=e.headers.upgrade,a=+e.headers["sec-websocket-version"];if(e.method!=="GET"){eu(this,e,t,405,"Invalid HTTP method");return}if(n===void 0||n.toLowerCase()!=="websocket"){eu(this,e,t,400,"Invalid Upgrade header");return}if(i===void 0||!kU.test(i)){eu(this,e,t,400,"Missing or invalid Sec-WebSocket-Key header");return}if(a!==13&&a!==8){eu(this,e,t,400,"Missing or invalid Sec-WebSocket-Version header",{"Sec-WebSocket-Version":"13, 8"});return}if(!this.shouldHandle(e)){ug(t,400);return}let m=e.headers["sec-websocket-protocol"],p=new Set;if(m!==void 0)try{p=AU.parse(m)}catch{eu(this,e,t,400,"Invalid Sec-WebSocket-Protocol header");return}let b=e.headers["sec-websocket-extensions"],d={};if(this.options.perMessageDeflate&&b!==void 0){let f=new tu(this.options.perMessageDeflate,!0,this.options.maxPayload);try{let v=S0.parse(b);v[tu.extensionName]&&(f.accept(v[tu.extensionName]),d[tu.extensionName]=f)}catch{eu(this,e,t,400,"Invalid or unacceptable Sec-WebSocket-Extensions header");return}}if(this.options.verifyClient){let f={origin:e.headers[`${a===8?"sec-websocket-origin":"origin"}`],secure:!!(e.socket.authorized||e.socket.encrypted),req:e};if(this.options.verifyClient.length===2){this.options.verifyClient(f,(v,L,C,X)=>{if(!v)return ug(t,L||401,C,X);this.completeUpgrade(d,i,p,e,t,r,o)});return}if(!this.options.verifyClient(f))return ug(t,401)}this.completeUpgrade(d,i,p,e,t,r,o)}completeUpgrade(e,t,r,o,i,n,a){if(!i.readable||!i.writable)return i.destroy();if(i[CU])throw new Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>P0)return ug(i,503);let p=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${vU("sha1").update(t+LU).digest("base64")}`],b=new this.options.WebSocket(null,void 0,this.options);if(r.size){let d=this.options.handleProtocols?this.options.handleProtocols(r,o):r.values().next().value;d&&(p.push(`Sec-WebSocket-Protocol: ${d}`),b._protocol=d)}if(e[tu.extensionName]){let d=e[tu.extensionName].params,f=S0.format({[tu.extensionName]:[d]});p.push(`Sec-WebSocket-Extensions: ${f}`),b._extensions=e}this.emit("headers",p,o),i.write(p.concat(`\r
4
+ `).join(`\r
5
+ `)),i.removeListener("error",x0),b.setSocket(i,n,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(b),b.on("close",()=>{this.clients.delete(b),this._shouldEmitClose&&!this.clients.size&&process.nextTick(mg,this)})),a(b,o)}};v0.exports=$w;function MU(l,e){for(let t of Object.keys(e))l.on(t,e[t]);return function(){for(let r of Object.keys(e))l.removeListener(r,e[r])}}function mg(l){l._state=E0,l.emit("close")}function x0(){this.destroy()}function ug(l,e,t,r){t=t||FS.STATUS_CODES[e],r={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(t),...r},l.once("finish",l.destroy),l.end(`HTTP/1.1 ${e} ${FS.STATUS_CODES[e]}\r
6
+ `+Object.keys(r).map(o=>`${o}: ${r[o]}`).join(`\r
7
+ `)+`\r
8
+ \r
9
+ `+t)}function eu(l,e,t,r,o,i){if(l.listenerCount("wsClientError")){let n=new Error(o);Error.captureStackTrace(n,eu),l.emit("wsClientError",n,t,e)}else ug(t,r,o,i)}});var cs,du=class{constructor(e){x(this,cs);w(this,cs,e)}get settings(){return u(this,cs).page.context.browser.settings}get virtualConsolePrinter(){return u(this,cs).page.virtualConsolePrinter}waitUntilComplete(){return u(this,cs).waitUntilComplete()}whenAsyncComplete(){return this.waitUntilComplete()}abort(){return u(this,cs).abort()}cancelAsync(){return this.abort()}close(){return u(this,cs).page.close()}setURL(e){u(this,cs).url=e}setViewport(e){u(this,cs).page.setViewport(e)}setWindowSize(e){this.setViewport({width:e?.width,height:e?.height})}setInnerWidth(e){this.setViewport({width:e})}setInnerHeight(e){this.setViewport({height:e})}};cs=new WeakMap;import{Buffer as zU}from"buffer";import{webcrypto as XU}from"crypto";import{TextEncoder as YU,TextDecoder as KU}from"util";import PD from"stream";import{ReadableStream as JU}from"stream/web";import{URLSearchParams as ZU}from"url";import Jw from"vm";var ds=Symbol("abort"),$e=Symbol("activeElement"),bt=Symbol("asyncTaskManager"),bs=Symbol("bodyBuffer"),Ct=Symbol("buffer"),$i=Symbol("cachedResponse"),gs=Symbol("callbacks"),ca=Symbol("checked"),nl=Symbol("childNodes"),Xr=Symbol("children"),uc=Symbol("classList"),To=Symbol("connectedToNode"),Js=Symbol("disconnectedFromNode"),kr=Symbol("connectedToDocument"),Mr=Symbol("disconnectedFromDocument"),Ky=Symbol("contentLength"),Oe=Symbol("contentType"),Yr=Symbol("cssText"),qi=Symbol("currentScript"),vi=Symbol("currentTarget"),le=Symbol("data"),fo=Symbol("defaultView"),ye=Symbol("destroy"),da=Symbol("dirtyness"),j=Symbol("end"),Sr=Symbol("entries");var Wi=Symbol("evaluateScript"),_r=Symbol("exceptionObserver"),Bt=Symbol("formNode"),ba=Symbol("internalId"),D=Symbol("height"),ga=Symbol("immediatePropagationStopped"),fa=Symbol("indeterminate"),Zs=Symbol("isFirstWrite"),Qs=Symbol("isFirstWriteAfterOpen"),bu=Symbol("isInPassiveEventListener"),No=Symbol("isValue"),ll=Symbol("listenerOptions"),ge=Symbol("listeners"),oi=Symbol("itemsByName"),Sa=Symbol("nextActiveElement"),Jy=Symbol("observeMutations"),ii=Symbol("mutationListeners"),T=Symbol("ownerDocument"),At=Symbol("ownerElement"),Pa=Symbol("propagationStopped"),si=Symbol("readyStateManager"),Kr=Symbol("referrer"),fs=Symbol("registry"),Lo=Symbol("relList"),gu=Symbol("resetSelection"),Ve=Symbol("rootNode"),qe=Symbol("selectNode"),Jr=Symbol("selectedness"),Zy=Symbol("selection"),pc=Symbol("setupVMContext"),Le=Symbol("shadowRoot"),G=Symbol("start"),Ee=Symbol("style"),Zr=Symbol("target"),Pr=Symbol("textAreaNode"),fu=Symbol("unobserveMutations"),tn=Symbol("reportMutation"),wa=Symbol("updateSelectedness"),Ce=Symbol("url"),J=Symbol("value"),_=Symbol("width"),y=Symbol("window"),Cf=Symbol("windowResizeListener"),xa=Symbol("mutationObservers"),So=Symbol("openerFrame"),ji=Symbol("openerWindow"),al=Symbol("popup"),st=Symbol("isConnected"),W=Symbol("parentNode"),U=Symbol("nodeType"),tt=Symbol("tagName"),Vt=Symbol("prefix"),qS=Symbol("scrollHeight"),WS=Symbol("scrollWidth"),kf=Symbol("scrollTop"),Mf=Symbol("scrollLeft"),St=Symbol("attributes"),hc=Symbol("attributesProxy"),et=Symbol("namespaceURI"),Su=Symbol("accessKey");var jS=Symbol("offsetHeight"),zS=Symbol("offsetWidth"),XS=Symbol("offsetLeft"),YS=Symbol("offsetTop"),KS=Symbol("clientHeight"),JS=Symbol("clientWidth"),ZS=Symbol("clientLeft"),QS=Symbol("clientTop"),nt=Symbol("name"),cc=Symbol("specified"),Ea=Symbol("adoptedStyleSheets"),Rf=Symbol("implementation"),va=Symbol("readyState"),yl=Symbol("publicId"),ml=Symbol("systemId"),Ue=Symbol("validationMessage"),mr=Symbol("validity"),Of=Symbol("returnValue"),en=Symbol("elements");var tP=Symbol("complete"),eP=Symbol("naturalHeight"),rP=Symbol("naturalWidth"),ox=Symbol("loading"),O=Symbol("x"),V=Symbol("y");var zi=Symbol("files"),ur=Symbol("sheet"),Vf=Symbol("volume"),Qy=Symbol("paused"),If=Symbol("currentTime"),Ff=Symbol("playbackRate"),Df=Symbol("defaultPlaybackRate"),Pu=Symbol("muted"),tm=Symbol("defaultMuted"),_f=Symbol("preservesPitch"),oP=Symbol("buffered"),iP=Symbol("duration"),pr=Symbol("error"),sP=Symbol("ended"),nP=Symbol("networkState"),Bf=Symbol("textTracks"),lP=Symbol("seeking"),aP=Symbol("seekable"),yP=Symbol("played"),rn=Symbol("options"),Co=Symbol("content"),ke=Symbol("mode"),Aa=Symbol("host"),no=Symbol("setURL"),dt=Symbol("localName"),wu=Symbol("classRegistry"),dc=Symbol("nodeStream"),ni=Symbol("location"),We=Symbol("history"),Uf=Symbol("navigator"),Gf=Symbol("screen"),Hf=Symbol("sessionStorage"),$f=Symbol("localStorage"),bc=Symbol("sandbox"),ht=Symbol("cloneNode"),Et=Symbol("appendChild"),Rr=Symbol("removeChild"),lo=Symbol("insertBefore"),xu=Symbol("replaceChild"),Ss=Symbol("tracks"),Eu=Symbol("constraints"),Ps=Symbol("capabilities"),Ta=Symbol("settings");var ul=Symbol("removeNamedItem"),Y=Symbol("items"),Na=Symbol("selectedOptions"),Br=Symbol("styleNode"),La=Symbol("updateSheet"),ao=Symbol("clearCache"),je=Symbol("onSetAttribute"),Ur=Symbol("onRemoveAttribute"),q=Symbol("nodeArray"),gt=Symbol("elementArray"),$=Symbol("cache"),rr=Symbol("affectsCache"),gc=Symbol("forms"),ws=Symbol("affectsComputedStyleCache"),em=Symbol("query"),vu=Symbol("computedStyle"),ko=Symbol("getFormControlItems"),fc=Symbol("getFormControlNamedItem"),mP=Symbol("dataset");var pl=Symbol("itemsByNamespaceURI"),Gt=Symbol("proxy"),Xi=Symbol("setNamedItem"),Qr=Symbol("getTokenList"),hl=Symbol("attributeName"),Ai=Symbol("selectedIndex"),Ca=Symbol("self"),Mo=Symbol("parent"),Yi=Symbol("top"),Sc=Symbol("areas"),Ro=Symbol("defaultValue"),on=Symbol("elementIdMap"),ka=Symbol("clonable"),rm=Symbol("delegatesFocus"),sn=Symbol("serializable"),xs=Symbol("slotAssignment"),nn=Symbol("assignedNodes"),Ki=Symbol("assignedToSlot"),Pc=Symbol("cells"),wc=Symbol("rows"),qf=Symbol("headers"),xc=Symbol("tBodies"),Au=Symbol("track"),Ec=Symbol("controlsList"),Wf=Symbol("mediaKeys"),uP=Symbol("remote"),jf=Symbol("sinkId"),zf=Symbol("srcObject"),om=Symbol("cues"),pP=Symbol("activeCues"),li=Symbol("kind"),cl=Symbol("label"),im=Symbol("language"),vc=Symbol("id"),h=Symbol("illegalConstructor"),hP=Symbol("state"),Ac=Symbol("canvas"),Ma=Symbol("popoverTargetElement"),Tc=Symbol("composed"),dl=Symbol("bubbles"),ln=Symbol("cancelable"),Gr=Symbol("defaultPrevented"),to=Symbol("eventPhase"),cP=Symbol("timeStamp"),Xt=Symbol("type"),Nc=Symbol("detail");var Lc=Symbol("destroyed"),we=Symbol("aborted"),Cc=Symbol("browserFrames"),Xf=Symbol("windowInternalId"),z=Symbol("getItemList"),an=Symbol("requiredExtensions"),yn=Symbol("systemLanguage"),kc=Symbol("transform"),ue=Symbol("baseVal"),pe=Symbol("animVal"),Mc=Symbol("pathLength");var mn=Symbol("viewBox"),Rc=Symbol("markerUnits"),Oc=Symbol("markerWidth"),Vc=Symbol("markerHeight"),wr=Symbol("values"),Ic=Symbol("orientType"),Fc=Symbol("orientAngle"),Dc=Symbol("refX"),_c=Symbol("refY"),K=Symbol("readOnly"),Or=Symbol("preserveAspectRatio"),un=Symbol("animatedPoints"),pn=Symbol("points"),hn=Symbol("rx"),cn=Symbol("ry"),Oo=Symbol("cx"),Vo=Symbol("cy"),dn=Symbol("r"),Bc=Symbol("clipPathUnits"),Uc=Symbol("maskUnits"),Gc=Symbol("maskContentUnits"),Hc=Symbol("filterUnits"),$c=Symbol("primitiveUnits"),kt=Symbol("href"),bn=Symbol("x1"),gn=Symbol("y1"),fn=Symbol("x2"),Sn=Symbol("y2"),qc=Symbol("gradientUnits"),Wc=Symbol("gradientTransform"),jc=Symbol("spreadMethod"),zc=Symbol("patternUnits"),Xc=Symbol("patternContentUnits"),Yc=Symbol("patternTransform"),Kc=Symbol("fx"),Jc=Symbol("fy"),Pn=Symbol("offset"),Ra=Symbol("disabled"),Zc=Symbol("textLength"),Qc=Symbol("lengthAdjust"),N=Symbol("getAttribute"),E=Symbol("setAttribute"),yo=Symbol("z"),sm=Symbol("w"),td=Symbol("toArray"),nm=Symbol("fromString"),ai=Symbol("fromArray");var Mt=Symbol("m11"),It=Symbol("m12"),re=Symbol("m13"),oe=Symbol("m14"),Rt=Symbol("m21"),Ft=Symbol("m22"),ie=Symbol("m23"),se=Symbol("m24"),Wt=Symbol("m31"),Yt=Symbol("m32"),Kt=Symbol("m33"),jt=Symbol("m34"),Ot=Symbol("m41"),Dt=Symbol("m42"),Jt=Symbol("m43"),Zt=Symbol("m44"),Tu=Symbol("setMatrixValue"),yi=Symbol("translateSelf"),bl=Symbol("rotateSelf"),gl=Symbol("rotateAxisAngleSelf"),wn=Symbol("scaleSelf"),ed=Symbol("scale3dSelf"),rd=Symbol("scaleNonUniformSelf"),lm=Symbol("skewXSelf"),am=Symbol("skewYSelf"),mi=Symbol("multiplySelf"),fl=Symbol("matrix");var Ge=Symbol("getDOMMatrix"),Hr=Symbol("setDOMMatrix"),I=Symbol("attributeValue"),od=Symbol("startOffset"),Sl=Symbol("method"),id=Symbol("spacing"),mt=Symbol("in1"),Io=Symbol("in2"),rt=Symbol("result"),sd=Symbol("bias"),nd=Symbol("divisor"),xn=Symbol("edgeMode"),ld=Symbol("kernelMatrix"),Fo=Symbol("kernelUnitLengthX"),Do=Symbol("kernelUnitLengthY"),ad=Symbol("orderX"),yd=Symbol("orderY"),md=Symbol("preserveAlpha"),ud=Symbol("targetX"),pd=Symbol("targetY"),hd=Symbol("diffuseConstant"),En=Symbol("surfaceScale"),cd=Symbol("scale"),dd=Symbol("xChannelSelector"),bd=Symbol("yChannelSelector"),gd=Symbol("azimuth"),fd=Symbol("elevation"),_o=Symbol("dx"),Bo=Symbol("dy"),vn=Symbol("stdDeviationX"),An=Symbol("stdDeviationY"),Sd=Symbol("tableValues"),Pd=Symbol("slope"),wd=Symbol("intercept"),xd=Symbol("amplitude"),Ed=Symbol("exponent"),ix=Symbol("crossOrigin"),vd=Symbol("operator"),Ad=Symbol("radiusX"),Td=Symbol("radiusY"),Nd=Symbol("specularConstant"),Tn=Symbol("specularExponent"),Ld=Symbol("pointsAtX"),Cd=Symbol("pointsAtY"),kd=Symbol("pointsAtZ"),Md=Symbol("limitingConeAngle"),Rd=Symbol("baseFrequencyX"),Od=Symbol("baseFrequencyY"),Vd=Symbol("numOctaves"),Id=Symbol("seed"),Fd=Symbol("stitchTiles"),Dd=Symbol("rotateFromVectorSelf"),_d=Symbol("flipXSelf"),Bd=Symbol("flipYSelf"),Ud=Symbol("invertSelf"),dP=Symbol("getLength"),Yf=Symbol("currentScale"),Gd=Symbol("rotate"),bP=Symbol("bindMethods"),ym=Symbol("xmlProcessingInstruction");var Ti=Symbol("filterNode"),Oa=Symbol("customElementReactionStack"),Va=Symbol("dispatching"),Nn=Symbol("modules"),Po=Symbol("preloads"),Kf=Symbol("body"),Jf=Symbol("redirect"),Nu=Symbol("referrerPolicy"),Zf=Symbol("signal"),Es=Symbol("bodyUsed"),Qf=Symbol("credentials"),Hd=Symbol("blocking"),mm=Symbol("moduleImportMap"),he=Symbol("dispatchError"),tS=Symbol("supports"),ui=Symbol("reason"),c=Symbol("propertyEventListeners"),or=Symbol("cssRules"),Pl=Symbol("parentRule"),pi=Symbol("parentStyleSheet"),Uo=Symbol("conditionText"),Ln=Symbol("keyText"),gP=Symbol("media"),$d=Symbol("styleMap"),um=Symbol("selectorText"),pm=Symbol("cssParser"),wl=Symbol("cssRule"),mo=Symbol("rulePrefix"),wo=Symbol("virtualServerFile"),fP=Symbol("frames"),xl=Symbol("disableEvaluation"),SP=Symbol("validateJavaScriptExecutionEnvironment");var Ia=Symbol("openWebSockets"),eo=Symbol("webSocket");var PP;(function(l){l.invalidStateError="InvalidStateError",l.indexSizeError="IndexSizeError",l.syntaxError="SyntaxError",l.hierarchyRequestError="HierarchyRequestError",l.notSupportedError="NotSupportedError",l.wrongDocumentError="WrongDocumentError",l.invalidNodeTypeError="InvalidNodeTypeError",l.invalidCharacterError="InvalidCharacterError",l.notFoundError="NotFoundError",l.securityError="SecurityError",l.networkError="NetworkError",l.domException="DOMException",l.invalidAccessError="InvalidAccessError",l.unknownError="UnknownError",l.abortError="AbortError",l.timeoutError="TimeoutError",l.encodingError="EncodingError",l.uriMismatchError="URIMismatchError",l.inUseAttributeError="InUseAttributeError",l.namespaceError="NamespaceError"})(PP||(PP={}));var A=PP;var Ht=class extends Error{constructor(e,t=null){super(e),this.name=t||A.domException}};var sx="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Lu=class{static btoa(e){let t=e.toString();if(/[^\u0000-\u00ff]/.test(t))throw new Ht("Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.",A.invalidCharacterError);let r="",o=-6,i=0,n=0,a=0,m;for(;n<t.length||o>-6;)o<0&&(n<t.length?(m=t.charCodeAt(n++),a+=8):m=0,i=(i&255)<<8|m&255,o+=8),r+=sx.charAt(a>0?i>>o&63:64),o-=6,a-=6;return r}static atob(e){let t=e.toString();if(/[^\u0000-\u00ff]/.test(t))throw new Ht("Failed to execute 'atob' on 'Window': The string to be decoded contains characters outside of the Latin1 range.",A.invalidCharacterError);if(/[^A-Za-z\d+/=]/.test(t)||t.length%4==1)throw new Ht("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.",A.invalidCharacterError);let r="",o=-8,i=0,n,a;for(let m=0;m<t.length;m++)(n=sx.indexOf(t.charAt(m)))<0||(i=i<<6|n&63,(o+=6)>=0&&(a=i>>o&255,n!==64&&(r+=String.fromCharCode(a)),i&=63,o-=8));return r}};var wP;(function(l){l.tryAndCatch="tryAndCatch",l.processLevel="processLevel",l.disabled="disabled"})(wP||(wP={}));var me=wP;import{Buffer as qd}from"buffer";import{ReadableStream as KD}from"stream/web";var nx;nx=Ct;var eS=class eS{constructor(e,t){s(this,"type","");s(this,nx);let r=[];if(e)for(let o of e){let i;o instanceof ArrayBuffer?i=qd.from(new Uint8Array(o)):o instanceof eS?i=o[Ct]:o instanceof qd?i=o:ArrayBuffer.isView(o)?i=qd.from(new Uint8Array(o.buffer,o.byteOffset,o.byteLength)):i=qd.from(typeof o=="string"?o:String(o)),r.push(i)}this[Ct]=qd.concat(r),t&&t.type&&t.type.match(/^[\u0020-\u007E]*$/)&&(this.type=String(t.type).toLowerCase())}get size(){return this[Ct].length}slice(e=0,t=null,r=""){let o=this.size,i,n,a;e===void 0?i=0:e<0?i=Math.max(o+e,0):i=Math.min(e,o),t===null?n=o:t<0?n=Math.max(o+t,0):n=Math.min(t,o),r===void 0?a="":a=r;let m=Math.max(n-i,0),b=this[Ct].slice(i,i+m),d=new eS([],{type:a});return d[Ct]=b,d}async arrayBuffer(){return new Uint8Array(this[Ct]).buffer}async text(){return this[Ct].toString()}stream(){let e=this[Ct];return new KD({start(t){t.enqueue(e),t.close()}})}toString(){return"[object Blob]"}},ce=eS;var Ni,hm,Fa=class{constructor(e){x(this,Ni);x(this,hm,[]);if(!e)throw new TypeError("Illegal constructor");w(this,Ni,e)}async read(){if((await u(this,Ni).navigator.permissions.query({name:"clipboard-read"})).state==="denied")throw new(u(this,Ni)).DOMException("Failed to execute 'read' on 'Clipboard': The request is not allowed");return u(this,hm)}async readText(){if((await u(this,Ni).navigator.permissions.query({name:"clipboard-read"})).state==="denied")throw new(u(this,Ni)).DOMException("Failed to execute 'readText' on 'Clipboard': The request is not allowed");let t="";for(let r of u(this,hm))if(r.types.includes("text/plain")){let o=await r.getType("text/plain");typeof o=="string"?t+=o:t+=await o.text()}return t}async write(e){if((await u(this,Ni).navigator.permissions.query({name:"clipboard-write"})).state==="denied")throw new(u(this,Ni)).DOMException("Failed to execute 'write' on 'Clipboard': The request is not allowed");w(this,hm,e)}async writeText(e){if((await u(this,Ni).navigator.permissions.query({name:"clipboard-write"})).state==="denied")throw new(u(this,Ni)).DOMException("Failed to execute 'writeText' on 'Clipboard': The request is not allowed");w(this,hm,[new(u(this,Ni)).ClipboardItem({"text/plain":new ce([e],{type:"text/plain"})})])}};Ni=new WeakMap,hm=new WeakMap;var El,Cu=class{constructor(e,t){s(this,"presentationStyle","unspecified");x(this,El);w(this,El,e),t?.presentationStyle&&(this.presentationStyle=t.presentationStyle)}get types(){return Object.keys(u(this,El))}async getType(e){if(!u(this,El)[e])throw new Ht(`Failed to execute 'getType' on 'ClipboardItem': The type '${e}' was not found`);return u(this,El)[e]instanceof ce?u(this,El)[e]:new ce([await u(this,El)[e]],{type:e})}};El=new WeakMap;var Wd=class{static escape(e){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let t=String(e),r=t.length,o=-1,i,n="",a=t.charCodeAt(0);if(r==1&&a==45)return"\\"+t;for(;++o<r;){if(i=t.charCodeAt(o),i==0){n+="\uFFFD";continue}if(i>=1&&i<=31||i==127||o==0&&i>=48&&i<=57||o==1&&i>=48&&i<=57&&a==45){n+="\\"+i.toString(16)+" ";continue}if(i>=128||i==45||i==95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){n+=t.charAt(o);continue}n+="\\"+t.charAt(o)}return n}};var lx=["Hz","Q","ch","cm","deg","dpcm","dpi","dppx","em","ex","fr","grad","in","kHz","mm","ms","number","pc","percent","pt","px","rad","rem","s","turn","vh","vmax","vmin","vw"];var de=class{constructor(e,t){s(this,"unit");s(this,"value");if(typeof e!="number")throw new TypeError("The provided double value is non-finite");if(!lx.includes(t))throw new TypeError("Invalid unit: "+t);this.value=e,this.unit=t}};var jd=class{constructor(){s(this,"Hz",e=>new de(e,"Hz"));s(this,"Q",e=>new de(e,"Q"));s(this,"ch",e=>new de(e,"ch"));s(this,"cm",e=>new de(e,"cm"));s(this,"deg",e=>new de(e,"deg"));s(this,"dpcm",e=>new de(e,"dpcm"));s(this,"dpi",e=>new de(e,"dpi"));s(this,"dppx",e=>new de(e,"dppx"));s(this,"em",e=>new de(e,"em"));s(this,"ex",e=>new de(e,"ex"));s(this,"fr",e=>new de(e,"fr"));s(this,"grad",e=>new de(e,"grad"));s(this,"in",e=>new de(e,"in"));s(this,"kHz",e=>new de(e,"kHz"));s(this,"mm",e=>new de(e,"mm"));s(this,"ms",e=>new de(e,"ms"));s(this,"number",e=>new de(e,"number"));s(this,"pc",e=>new de(e,"pc"));s(this,"percent",e=>new de(e,"percent"));s(this,"pt",e=>new de(e,"pt"));s(this,"px",e=>new de(e,"px"));s(this,"rad",e=>new de(e,"rad"));s(this,"rem",e=>new de(e,"rem"));s(this,"s",e=>new de(e,"s"));s(this,"turn",e=>new de(e,"turn"));s(this,"vh",e=>new de(e,"vh"));s(this,"vmax",e=>new de(e,"vmax"));s(this,"vmin",e=>new de(e,"vmin"));s(this,"vw",e=>new de(e,"vw"))}supports(e,t){return!0}escape(e){return Wd.escape(e)}};var xP;(function(l){l[l.containerRule=0]="containerRule",l[l.styleRule=1]="styleRule",l[l.importRule=3]="importRule",l[l.mediaRule=4]="mediaRule",l[l.fontFaceRule=5]="fontFaceRule",l[l.pageRule=6]="pageRule",l[l.keyframesRule=7]="keyframesRule",l[l.keyframeRule=8]="keyframeRule",l[l.namespaceRule=10]="namespaceRule",l[l.counterStyleRule=11]="counterStyleRule",l[l.supportsRule=12]="supportsRule",l[l.documentRule=13]="documentRule",l[l.fontFeatureValuesRule=14]="fontFeatureValuesRule",l[l.regionStyleRule=16]="regionStyleRule"})(xP||(xP={}));var pt=xP;var ax,yx,mx,ux;ux=y,mx=pm,yx=Pl,ax=pi;var Me=class{constructor(e,t,r){s(this,ux);s(this,mx);s(this,yx,null);s(this,ax,null);if(e!==h)throw new TypeError("Illegal constructor");this[y]=t,this[pm]=r}get parentRule(){return this[Pl]}get parentStyleSheet(){return this[pi]}};s(Me,"CONTAINER_RULE",pt.containerRule),s(Me,"STYLE_RULE",pt.styleRule),s(Me,"IMPORT_RULE",pt.importRule),s(Me,"MEDIA_RULE",pt.mediaRule),s(Me,"FONT_FACE_RULE",pt.fontFaceRule),s(Me,"PAGE_RULE",pt.pageRule),s(Me,"KEYFRAMES_RULE",pt.keyframesRule),s(Me,"KEYFRAME_RULE",pt.keyframeRule),s(Me,"NAMESPACE_RULE",pt.namespaceRule),s(Me,"COUNTER_STYLE_RULE",pt.counterStyleRule),s(Me,"SUPPORTS_RULE",pt.supportsRule),s(Me,"DOCUMENT_RULE",pt.documentRule),s(Me,"FONT_FEATURE_VALUES_RULE",pt.fontFeatureValuesRule),s(Me,"REGION_STYLE_RULE",pt.regionStyleRule);var JD=/^#([0-9a-fA-F]{3,4}){1,2}$|^rgb\(([^)]*)\)$|^rgba\(([^)]*)\)$|^hsla?\(\s*(-?\d+|-?\d*.\d+)\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)%\s*(,\s*(-?\d+|-?\d*.\d+)\s*)?\)|(?:(rgba?|hsla?)\((var\(\s*(--[^)\s]+)\))\))/,ZD=/^(0|[-+]?[0-9]*\.?[0-9]+)(in|cm|em|mm|pt|pc|px|ex|rem|vh|vw|ch|vw|vh|vmin|vmax|Q)$/,QD=/^[-+]?[0-9]*\.?[0-9]+%$/,t_=/^[0-9]+deg$/,e_=/^url\(\s*([^)]*)\s*\)$/,r_=/^[0-9]+$/,o_=/^[0-9.]+$/,i_=/^calc\([^^)]+\)$/,s_=/^var\(\s*(--[^)\s]+)\)$/,n_=/^fit-content\([^^)]+\)$/,l_=/^((repeating-linear|linear|radial|repeating-radial|conic|repeating-conic)-gradient)\(([^)]+)\)$/,px=["inherit","initial","unset","revert"],a_=["none","currentcolor","transparent","silver","gray","white","maroon","red","purple","fuchsia","green","lime","olive","yellow","navy","blue","teal","aliceblue","aqua","antiquewhite","aquamarine","azure","beige","bisque","black","blanchedalmond","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","magenta","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","rebeccapurple","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen"],g=class{static getLength(e){if(e==="0")return"0px";let t=e.match(ZD);if(t){let r=parseFloat(t[1]);if(isNaN(r))return null;let o=t[2];return`${Math.round(r*1e6)/1e6}${o}`}return null}static getPercentage(e){return e==="0"?"0%":QD.test(e)?e:null}static getDegree(e){return e==="0"?"0deg":t_.test(e)?e:null}static getCalc(e){return i_.test(e)?e:null}static getFitContent(e){let t=e.toLowerCase();return t==="auto"||t==="max-content"||t==="min-content"||t==="fit-content"||n_.test(t)?t:null}static getMeasurement(e){return this.getLength(e)||this.getPercentage(e)||this.getCalc(e)}static getContentMeasurement(e){return this.getFitContent(e)||this.getMeasurement(e)}static getAutoMeasurement(e){return e.toLocaleLowerCase()==="auto"?"auto":this.getMeasurement(e)}static getInteger(e){return r_.test(e)?e:null}static getFloat(e){if(o_.test(e)){let t=parseFloat(e);return isNaN(t)?null:String(Math.round(t*1e6)/1e6)}return null}static getGradient(e){let t=e.match(l_);return t?`${t[1]}(${t[3].trim().split(/\s*,\s*/).join(", ")})`:null}static getColor(e){let t=e.toLowerCase();return a_.includes(t)?t:JD.test(e)?e.replace(/,([^ ])/g,", $1"):null}static getURL(e){if(!e)return null;if(e.toLowerCase()==="none")return"none";let t=e_.exec(e);if(!t)return null;let r=t[1].trim();if((r[0]==='"'||r[0]==="'")&&r[0]!==r[r.length-1])return null;(r[0]==='"'||r[0]==="'")&&(r=r.substring(1,r.length-1));for(let o=0;o<r.length;o++)switch(r[o]){case"(":case")":case" ":case" ":case`
10
+ `:case"'":case'"':return null;case"\\":o++;break}return`url("${r}")`}static getInitial(e){return e.toLowerCase()==="initial"?"initial":null}static getVariable(e){let t=e.match(s_);return t?`var(${t[1]})`:null}static getGlobal(e){let t=e.toLowerCase();return px.includes(t)?t:null}static getGlobalExceptInitial(e){let t=e.toLowerCase();return t!=="initial"&&px.includes(t)?t:null}};var y_=/^rect\((.*)\)$/i,zd=/,(?=(?:(?:(?!\))[\s\S])*\()|[^\(\)]*$)/,ir=/\s+(?=(?:(?:(?!\))[\s\S])*\()|[^\(\)]*$)/,m_=/\s+/gm,Xd=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"],Yd=["thin","medium","thick"],u_=["separate","collapse"],p_=["repeat","repeat-x","repeat-y","no-repeat"],h_=["border-box","padding-box","content-box"],c_=["border-box","padding-box","content-box"],d_=["scroll","fixed"],b_=["auto","fill","content"],g_=["none","left","right","both"],f_=["none","left","right","inline-start","inline-end"],S_=["caption","icon","menu","message-box","small-caption","status-bar"],P_=["normal","bold","bolder","lighter"],w_=["normal","italic","oblique"],x_=["xx-small","x-small","small","medium","large","x-large","xx-large","xxx-large","smaller","larger"],E_=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],v_=["block","inline","inline-block","flex","inline-flex","grid","inline-grid","flow-root","none","contents","block flow","inline flow","inline flow-root","block flex","inline flex","block grid","inline grid","block flow-root","table","table-row","list-item"],A_=["stretch","repeat","round","space"],T_=["capitalize","uppercase","lowercase","none","full-width","full-size-kana"],N_=["visible","hidden","collapse"],Z=class{static getBorderCollapse(e,t){let r=g.getVariable(e);if(r)return{"border-collapse":{value:r,important:t}};let o=e.toLowerCase();return g.getGlobal(o)||u_.includes(o)?{"border-collapse":{value:o,important:t}}:null}static getDisplay(e,t){let r=g.getVariable(e);if(r)return{display:{value:r,important:t}};let o=e.toLowerCase();return g.getGlobal(o)||v_.includes(o)?{display:{value:o,important:t}}:null}static getDirection(e,t){let r=g.getVariable(e);if(r)return{direction:{value:r,important:t}};let o=e.toLowerCase();return g.getGlobal(o)||o==="ltr"||o==="rtl"?{direction:{value:o,important:t}}:null}static getLetterSpacing(e,t){let r=g.getVariable(e)||g.getGlobal(e)||g.getContentMeasurement(e);return r?{"letter-spacing":{value:r,important:t}}:null}static getWordSpacing(e,t){let r=g.getVariable(e)||g.getGlobal(e)||g.getContentMeasurement(e);return r?{"word-spacing":{value:r,important:t}}:null}static getTextIndent(e,t){let r=g.getVariable(e)||g.getGlobal(e)||g.getContentMeasurement(e);return r?{"text-indent":{value:r,important:t}}:null}static getWidth(e,t){let r=g.getVariable(e)||g.getGlobal(e)||g.getContentMeasurement(e);return r?{width:{value:r,important:t}}:null}static getHeight(e,t){let r=g.getVariable(e)||g.getGlobal(e)||g.getContentMeasurement(e);return r?{height:{value:r,important:t}}:null}static getTop(e,t){let r=g.getVariable(e)||g.getGlobal(e)||g.getContentMeasurement(e);return r?{top:{value:r,important:t}}:null}static getRight(e,t){let r=g.getVariable(e)||g.getGlobal(e)||g.getContentMeasurement(e);return r?{right:{value:r,important:t}}:null}static getBottom(e,t){let r=g.getVariable(e)||g.getGlobal(e)||g.getContentMeasurement(e);return r?{bottom:{value:r,important:t}}:null}static getLeft(e,t){let r=g.getVariable(e)||g.getGlobal(e)||g.getContentMeasurement(e);return r?{left:{value:r,important:t}}:null}static getClear(e,t){let r=g.getVariable(e);if(r)return{clear:{value:r,important:t}};let o=e.toLowerCase();return g.getGlobal(o)||g_.includes(o)?{clear:{value:o,important:t}}:null}static getClip(e,t){let r=g.getVariable(e);if(r)return{clip:{value:r,important:t}};let o=e.toLowerCase();if(g.getGlobal(o)||o==="auto")return{clip:{value:o,important:t}};let i=o.match(y_);if(!i)return null;let n=i[1].split(/\s*,\s*/);if(n.length!==4)return null;for(let a of n)if(!g.getMeasurement(a))return null;return{clip:{value:e,important:t}}}static getFloat(e,t){let r=g.getVariable(e);if(r)return{float:{value:r,important:t}};let o=e.toLowerCase();return g.getGlobal(o)||f_.includes(o)?{float:{value:o,important:t}}:null}static getCSSFloat(e,t){let r=g.getVariable(e);if(r)return{"css-float":{value:r,important:t}};let o=this.getFloat(e,t);return o?{"css-float":o.float}:null}static getOutline(e,t){let r=g.getVariable(e);if(r)return{outline:{value:r,important:t}};let o=g.getGlobal(e);if(o)return{...this.getOutlineColor(o,t),...this.getOutlineStyle(o,t),...this.getOutlineWidth(o,t)};let i={...this.getOutlineColor("initial",t),...this.getOutlineStyle("initial",t),...this.getOutlineWidth("initial",t)},n=e.split(ir);for(let a of n){let m=this.getOutlineWidth(a,t),p=this.getOutlineStyle(a,t),b=this.getOutlineColor(a,t);if(m===null&&p===null&&b===null)return null;Object.assign(i,m,p,b)}return i}static getOutlineColor(e,t){let r=g.getVariable(e)||g.getGlobal(e)||g.getColor(e);return r?{"outline-color":{value:r,important:t}}:null}static getOutlineOffset(e,t){let r=g.getVariable(e)||g.getLength(e);return r?{"outline-offset":{value:r,important:t}}:null}static getOutlineStyle(e,t){let r=g.getVariable(e);if(r)return{"outline-style":{value:r,important:t}};let o=e.toLowerCase();return g.getGlobal(o)||Xd.includes(o)?{"outline-style":{value:o,important:t}}:null}static getOutlineWidth(e,t){let r=g.getVariable(e);if(r)return{"outline-width":{value:r,important:t}};let o=e.toLowerCase(),i=Yd.includes(o)||g.getGlobal(o)?o:g.getLength(e);return i?{"outline-width":{value:i,important:t}}:null}static getBorder(e,t){let r=g.getVariable(e);if(r)return{border:{value:r,important:t}};let o=g.getGlobal(e);if(o)return{...this.getBorderWidth(o,t),...this.getBorderStyle(o,t),...this.getBorderColor(o,t),...this.getBorderImage(o,t)};let i={...this.getBorderWidth("initial",t),...this.getBorderStyle("initial",t),...this.getBorderColor("initial",t),...this.getBorderImage("initial",t)},n=e.replace(/\s*,\s*/g,",").split(ir);for(let a of n){let m=this.getBorderWidth(a,t),p=this.getBorderStyle(a,t),b=this.getBorderColor(a,t);if(m===null&&p===null&&b===null)return null;Object.assign(i,m,p,b)}return i}static getBorderWidth(e,t){let r=g.getVariable(e);if(r)return{"border-width":{value:r,important:t}};let o=g.getGlobal(e);if(o)return{...this.getBorderTopWidth(o,t),...this.getBorderRightWidth(o,t),...this.getBorderBottomWidth(o,t),...this.getBorderLeftWidth(o,t)};let i=e.split(ir),n=this.getBorderTopWidth(i[0],t),a=this.getBorderRightWidth(i[1]||i[0],t),m=this.getBorderBottomWidth(i[2]||i[0],t),p=this.getBorderLeftWidth(i[3]||i[1]||i[0],t);return!n||!a||!m||!p?null:{...n,...a,...m,...p}}static getBorderStyle(e,t){let r=g.getVariable(e);if(r)return{"border-style":{value:r,important:t}};let o=g.getGlobal(e);if(o)return{...this.getBorderTopStyle(o,t),...this.getBorderRightStyle(o,t),...this.getBorderBottomStyle(o,t),...this.getBorderLeftStyle(o,t)};let i=e.split(ir),n=this.getBorderTopStyle(i[0],t),a=this.getBorderRightStyle(i[1]||i[0],t),m=this.getBorderBottomStyle(i[2]||i[0],t),p=this.getBorderLeftStyle(i[3]||i[1]||i[0],t);return!n||!a||!m||!p?null:{...n,...a,...m,...p}}static getBorderColor(e,t){let r=g.getVariable(e);if(r)return{"border-color":{value:r,important:t}};let o=g.getGlobal(e);if(o)return{...this.getBorderTopColor(o,t),...this.getBorderRightColor(o,t),...this.getBorderBottomColor(o,t),...this.getBorderLeftColor(o,t)};let i=e.split(ir),n=this.getBorderTopColor(i[0],t),a=this.getBorderRightColor(i[1]||i[0],t),m=this.getBorderBottomColor(i[2]||i[0],t),p=this.getBorderLeftColor(i[3]||i[1]||i[0],t);return!n||!a||!m||!p?null:{...n,...a,...m,...p}}static getBorderImage(e,t){let r=g.getVariable(e);if(r)return{"border-image":{value:r,important:t}};let o=g.getGlobal(e);if(o)return{...this.getBorderImageSource(o,t),...this.getBorderImageSlice(o,t),...this.getBorderImageWidth(o,t),...this.getBorderImageOutset(o,t),...this.getBorderImageRepeat(o,t)};let i=e.replace(/\s\/\s/g,"/"),n=i.match(/\s*([a-zA-Z-]+\([^)]*\))\s*/);n&&(i=i.replace(n[0],""));let a=i.split(ir);n&&a.push(n[1]);let m={...this.getBorderImageSource("none",t),...this.getBorderImageSlice("100%",t),...this.getBorderImageWidth("1",t),...this.getBorderImageOutset("0",t),...this.getBorderImageRepeat("stretch",t)};for(let p=0,b=a.length;p<b;p++){let d=a[p],f=p>0?a[p-1]:"";if(!d.startsWith("url")&&d.includes("/")){let[v,L,C]=d.split("/"),X=this.getBorderImageSlice(`${f} ${v}`,t)||this.getBorderImageSlice(v,t),lt=this.getBorderImageWidth(L,t),Q=C&&this.getBorderImageOutset(C,t);if(!X||!lt||Q===null)return null;Object.assign(m,X,lt,Q)}else{let v=this.getBorderImageSlice(`${f} ${d}`,t)||this.getBorderImageSlice(d,t),L=this.getBorderImageSource(d,t),C=this.getBorderImageRepeat(d,t);if(!v&&!L&&!C)return null;Object.assign(m,v,L,C)}}return m}static getBorderImageSource(e,t){let r=g.getVariable(e);if(r)return{"border-image-source":{value:r,important:t}};let o=e.toLowerCase();if(g.getGlobal(o)||o==="none")return{"border-image-source":{important:t,value:o}};let i=g.getURL(e)||g.getGradient(e);return i?{"border-image-source":{important:t,value:i}}:null}static getBorderImageSlice(e,t){let r=g.getVariable(e);if(r)return{"border-image-slice":{value:r,important:t}};let o=e.toLowerCase();if(g.getGlobal(o))return{"border-image-slice":{important:t,value:o}};if(o!==o.trim())return null;let i=/(fill)|(calc\([^^)]+\))|([0-9]+%)|([0-9]+)/g,n=[],a;for(;a=i.exec(o);){let m=o[a.index-1],p=o[a.index+a[0].length];if(m&&m!==" "||p&&p!==" ")return null;let b=a[1]&&"fill",d=a[2]&&g.getCalc(a[2]),f=a[3]&&g.getPercentage(a[3]),v=a[4]&&g.getInteger(a[4]);if(!b&&!d&&!f&&!v)return null;n.push(b||d||f||v)}return!n.length||n.length>4?null:{"border-image-slice":{important:t,value:n.join(" ")}}}static getBorderImageWidth(e,t){let r=g.getVariable(e);if(r)return{"border-image-width":{value:r,important:t}};let o=e.toLowerCase();if(g.getGlobal(o))return{"border-image-width":{important:t,value:o}};let i=o.split(ir);if(i.length>4)return null;for(let n of i)if(!g.getInteger(n)&&!g.getAutoMeasurement(n))return null;return{"border-image-width":{important:t,value:e}}}static getBorderImageOutset(e,t){if(e==="0")return{"border-image-outset":{important:t,value:e}};let r=g.getVariable(e);if(r)return{"border-image-outset":{value:r,important:t}};let o=e.toLowerCase();if(g.getGlobal(o))return{"border-image-outset":{important:t,value:o}};let i=e.split(ir);if(i.length>4)return null;let n=[];for(let a of i){let m=g.getLength(a)||g.getFloat(a);if(!m)return null;n.push(m==="0px"?"0":m)}return{"border-image-outset":{important:t,value:n.join(" ")}}}static getBorderImageRepeat(e,t){let r=g.getVariable(e);if(r)return{"border-image-repeat":{value:r,important:t}};let o=e.toLowerCase();if(g.getGlobal(o))return{"border-image-repeat":{important:t,value:o}};let i=o.split(ir);if(i.length>2)return null;for(let n of i)if(!A_.includes(n))return null;return{"border-image-repeat":{important:t,value:e}}}static getBorderTopWidth(e,t){let r=g.getVariable(e);if(r)return{"border-top-width":{value:r,important:t}};let o=e.toLowerCase(),i=Yd.includes(o)||g.getGlobal(o)?o:g.getLength(e);return i?{"border-top-width":{value:i,important:t}}:null}static getBorderRightWidth(e,t){let r=g.getVariable(e);if(r)return{"border-right-width":{value:r,important:t}};let o=e.toLowerCase(),i=Yd.includes(o)||g.getGlobal(o)?o:g.getLength(e);return i?{"border-right-width":{value:i,important:t}}:null}static getBorderBottomWidth(e,t){let r=g.getVariable(e);if(r)return{"border-bottom-width":{value:r,important:t}};let o=e.toLowerCase(),i=Yd.includes(o)||g.getGlobal(o)?o:g.getLength(e);return i?{"border-bottom-width":{value:i,important:t}}:null}static getBorderLeftWidth(e,t){let r=g.getVariable(e);if(r)return{"border-left-width":{value:r,important:t}};let o=e.toLowerCase(),i=Yd.includes(o)||g.getGlobal(o)?o:g.getLength(e);return i?{"border-left-width":{value:i,important:t}}:null}static getBorderTopStyle(e,t){let r=g.getVariable(e);if(r)return{"border-top-style":{value:r,important:t}};let o=e.toLowerCase();return g.getGlobal(o)||Xd.includes(o)?{"border-top-style":{value:o,important:t}}:null}static getBorderRightStyle(e,t){let r=g.getVariable(e);if(r)return{"border-right-style":{value:r,important:t}};let o=e.toLowerCase();return g.getGlobal(o)||Xd.includes(o)?{"border-right-style":{value:o,important:t}}:null}static getBorderBottomStyle(e,t){let r=g.getVariable(e);if(r)return{"border-bottom-style":{value:r,important:t}};let o=e.toLowerCase();return g.getGlobal(o)||Xd.includes(o)?{"border-bottom-style":{value:o,important:t}}:null}static getBorderLeftStyle(e,t){let r=g.getVariable(e);if(r)return{"border-left-style":{value:r,important:t}};let o=e.toLowerCase();return g.getGlobal(o)||Xd.includes(o)?{"border-left-style":{value:o,important:t}}:null}static getBorderTopColor(e,t){let r=g.getVariable(e);if(r)return{"border-top-color":{value:r,important:t}};let o=g.getGlobal(e)||g.getColor(e);return o?{"border-top-color":{value:o,important:t}}:null}static getBorderRightColor(e,t){let r=g.getVariable(e);if(r)return{"border-right-color":{value:r,important:t}};let o=g.getGlobal(e)||g.getColor(e);return o?{"border-right-color":{value:o,important:t}}:null}static getBorderBottomColor(e,t){let r=g.getVariable(e);if(r)return{"border-bottom-color":{value:r,important:t}};let o=g.getGlobal(e)||g.getColor(e);return o?{"border-bottom-color":{value:o,important:t}}:null}static getBorderLeftColor(e,t){let r=g.getVariable(e);if(r)return{"border-left-color":{value:r,important:t}};let o=g.getGlobal(e)||g.getColor(e);return o?{"border-left-color":{value:o,important:t}}:null}static getBorderRadius(e,t){let r=g.getVariable(e);if(r)return{"border-radius":{value:r,important:t}};let o=g.getGlobal(e);if(o)return{...this.getBorderTopLeftRadius(o,t),...this.getBorderTopRightRadius(o,t),...this.getBorderBottomRightRadius(o,t),...this.getBorderBottomLeftRadius(o,t)};let i=e.split(ir),n=this.getBorderTopLeftRadius(i[0],t),a=this.getBorderTopRightRadius(i[1]||i[0],t),m=this.getBorderBottomRightRadius(i[2]||i[0],t),p=this.getBorderBottomLeftRadius(i[3]||i[1]||i[0],t);return!n||!a||!m||!p?null:{...n,...a,...m,...p}}static getBorderTopLeftRadius(e,t){let r=g.getVariable(e);if(r)return{"border-top-left-radius":{value:r,important:t}};let o=g.getGlobal(e)||g.getMeasurement(e);return o?{"border-top-left-radius":{important:t,value:o}}:null}static getBorderTopRightRadius(e,t){let r=g.getVariable(e);if(r)return{"border-top-right-radius":{value:r,important:t}};let o=g.getGlobal(e)||g.getMeasurement(e);return o?{"border-top-right-radius":{important:t,value:o}}:null}static getBorderBottomRightRadius(e,t){let r=g.getVariable(e);if(r)return{"border-bottom-right-radius":{value:r,important:t}};let o=g.getGlobal(e)||g.getMeasurement(e);return o?{"border-bottom-right-radius":{important:t,value:o}}:null}static getBorderBottomLeftRadius(e,t){let r=g.getVariable(e);if(r)return{"border-bottom-left-radius":{value:r,important:t}};let o=g.getGlobal(e)||g.getMeasurement(e);return o?{"border-bottom-left-radius":{important:t,value:o}}:null}static getBorderTop(e,t){let r=g.getVariable(e);if(r)return{"border-top":{value:r,important:t}};let o=g.getGlobal(e);if(o)return{...this.getBorderTopWidth(o,t),...this.getBorderTopStyle(o,t),...this.getBorderTopColor(o,t)};let i={...this.getBorderTopWidth("initial",t),...this.getBorderTopStyle("initial",t),...this.getBorderTopColor("initial",t)},n=e.split(ir);for(let a of n){let m=this.getBorderTopWidth(a,t),p=this.getBorderTopStyle(a,t),b=this.getBorderTopColor(a,t);if(m===null&&p===null&&b===null)return null;Object.assign(i,m,p,b)}return i}static getBorderRight(e,t){let r=g.getVariable(e);if(r)return{"border-right":{value:r,important:t}};let o=g.getGlobal(e);if(o)return{...this.getBorderRightWidth(o,t),...this.getBorderRightStyle(o,t),...this.getBorderRightColor(o,t)};let i={...this.getBorderRightWidth("initial",t),...this.getBorderRightStyle("initial",t),...this.getBorderRightColor("initial",t)},n=e.split(ir);for(let a of n){let m=this.getBorderRightWidth(a,t),p=this.getBorderRightStyle(a,t),b=this.getBorderRightColor(a,t);if(m===null&&p===null&&b===null)return null;Object.assign(i,m,p,b)}return i}static getBorderBottom(e,t){let r=g.getVariable(e);if(r)return{"border-bottom":{value:r,important:t}};let o=g.getGlobal(e);if(o)return{...this.getBorderBottomWidth(o,t),...this.getBorderBottomStyle(o,t),...this.getBorderBottomColor(o,t)};let i={...this.getBorderBottomWidth("initial",t),...this.getBorderBottomStyle("initial",t),...this.getBorderBottomColor("initial",t)},n=e.split(ir);for(let a of n){let m=this.getBorderBottomWidth(a,t),p=this.getBorderBottomStyle(a,t),b=this.getBorderBottomColor(a,t);if(m===null&&p===null&&b===null)return null;Object.assign(i,m,p,b)}return i}static getBorderLeft(e,t){let r=g.getVariable(e);if(r)return{"border-left":{value:r,important:t}};let o=g.getGlobal(e);if(o)return{...this.getBorderLeftWidth(o,t),...this.getBorderLeftStyle(o,t),...this.getBorderLeftColor(o,t)};let i={...this.getBorderLeftWidth("initial",t),...this.getBorderLeftStyle("initial",t),...this.getBorderLeftColor("initial",t)},n=e.split(ir);for(let a of n){let m=this.getBorderLeftWidth(a,t),p=this.getBorderLeftStyle(a,t),b=this.getBorderLeftColor(a,t);if(m===null&&p===null&&b===null)return null;Object.assign(i,m,p,b)}return i}static getPadding(e,t){let r=g.getVariable(e);if(r)return{padding:{value:r,important:t}};let o=g.getGlobal(e);if(o)return{...this.getPaddingTop(o,t),...this.getPaddingRight(o,t),...this.getPaddingBottom(o,t),...this.getPaddingLeft(o,t)};let i=e.split(ir),n=this.getPaddingTop(i[0],t),a=this.getPaddingRight(i[1]||i[0],t),m=this.getPaddingBottom(i[2]||i[0],t),p=this.getPaddingLeft(i[3]||i[1]||i[0],t);return!n||!a||!m||!p?null:{...n,...a,...m,...p}}static getPaddingTop(e,t){let r=g.getVariable(e);if(r)return{"padding-top":{value:r,important:t}};let o=g.getGlobal(e)||g.getMeasurement(e);return o?{"padding-top":{value:o,important:t}}:null}static getPaddingRight(e,t){let r=g.getVariable(e);if(r)return{"padding-right":{value:r,important:t}};let o=g.getGlobal(e)||g.getMeasurement(e);return o?{"padding-right":{value:o,important:t}}:null}static getPaddingBottom(e,t){let r=g.getVariable(e);if(r)return{"padding-bottom":{value:r,important:t}};let o=g.getGlobal(e)||g.getMeasurement(e);return o?{"padding-bottom":{value:o,important:t}}:null}static getPaddingLeft(e,t){let r=g.getVariable(e);if(r)return{"padding-left":{value:r,important:t}};let o=g.getGlobal(e)||g.getMeasurement(e);return o?{"padding-left":{value:o,important:t}}:null}static getMargin(e,t){let r=g.getVariable(e);if(r)return{margin:{value:r,important:t}};let o=g.getGlobal(e);if(o)return{...this.getMarginTop(o,t),...this.getMarginRight(o,t),...this.getMarginBottom(o,t),...this.getMarginLeft(o,t)};let i=e.split(ir),n=this.getMarginTop(i[0],t),a=this.getMarginRight(i[1]||i[0],t),m=this.getMarginBottom(i[2]||i[0],t),p=this.getMarginLeft(i[3]||i[1]||i[0],t);return!n||!a||!m||!p?null:{...n,...a,...m,...p}}static getMarginTop(e,t){let r=g.getVariable(e);if(r)return{"margin-top":{value:r,important:t}};let o=g.getGlobal(e)||g.getAutoMeasurement(e);return o?{"margin-top":{value:o,important:t}}:null}static getMarginRight(e,t){let r=g.getVariable(e);if(r)return{"margin-right":{value:r,important:t}};let o=g.getGlobal(e)||g.getAutoMeasurement(e);return o?{"margin-right":{value:o,important:t}}:null}static getMarginBottom(e,t){let r=g.getVariable(e);if(r)return{"margin-bottom":{value:r,important:t}};let o=g.getGlobal(e)||g.getAutoMeasurement(e);return o?{"margin-bottom":{value:o,important:t}}:null}static getMarginLeft(e,t){let r=g.getVariable(e);if(r)return{"margin-left":{value:r,important:t}};let o=g.getGlobal(e)||g.getAutoMeasurement(e);return o?{"margin-left":{value:o,important:t}}:null}static getFlex(e,t){let r=g.getVariable(e);if(r)return{flex:{value:r,important:t}};let o=e.trim().toLowerCase(),i=g.getGlobal(e);if(i)return{...this.getFlexGrow(i,t),...this.getFlexShrink(i,t),...this.getFlexBasis(i,t)};switch(o){case"none":return{...this.getFlexGrow("0",t),...this.getFlexShrink("0",t),...this.getFlexBasis("auto",t)};case"auto":return{...this.getFlexGrow("1",t),...this.getFlexShrink("1",t),...this.getFlexBasis("auto",t)}}let n=g.getContentMeasurement(o);if(n)return{...this.getFlexGrow("1",t),...this.getFlexShrink("1",t),...this.getFlexBasis(n,t)};let a=e.split(ir),m=this.getFlexGrow(a[0],t),p=this.getFlexShrink(a[1]||"1",t),b=this.getFlexBasis(a[2]||"0%",t);return!m||!p||!b?null:{...m,...p,...b}}static getFlexBasis(e,t){let r=g.getVariable(e);if(r)return{"flex-basis":{value:r,important:t}};let o=e.toLowerCase();if(g.getGlobal(o)||b_.includes(o))return{"flex-basis":{value:o,important:t}};let i=g.getContentMeasurement(o);return i?{"flex-basis":{value:i,important:t}}:null}static getFlexShrink(e,t){let r=g.getVariable(e);if(r)return{"flex-shrink":{value:r,important:t}};let o=g.getGlobal(e)||g.getFloat(e);return o?{"flex-shrink":{value:o,important:t}}:null}static getFlexGrow(e,t){let r=g.getVariable(e);if(r)return{"flex-grow":{value:r,important:t}};let o=g.getGlobal(e)||g.getFloat(e);return o?{"flex-grow":{value:o,important:t}}:null}static getBackground(e,t){let r=g.getVariable(e);if(r)return{background:{value:r,important:t}};let o=g.getGlobal(e);if(o)return{...this.getBackgroundImage(o,t),...this.getBackgroundPosition(o,t),...this.getBackgroundSize(o,t),...this.getBackgroundRepeat(o,t),...this.getBackgroundAttachment(o,t),...this.getBackgroundOrigin(o,t),...this.getBackgroundClip(o,t),...this.getBackgroundColor(o,t)};let i={...this.getBackgroundImage("initial",t),...this.getBackgroundPosition("initial",t),...this.getBackgroundSize("initial",t),...this.getBackgroundRepeat("initial",t),...this.getBackgroundAttachment("initial",t),...this.getBackgroundOrigin("initial",t),...this.getBackgroundClip("initial",t),...this.getBackgroundColor("initial",t)},n=e.replace(/\s,\s/g,",").replace(/\s\/\s/g,"/").split(ir),a=[];for(let m of n)if(!m.startsWith("url")&&m.includes("/")){let[p,b]=m.split("/"),d=this.getBackgroundPositionX(p,t),f=this.getBackgroundPositionY(p,t),v=this.getBackgroundSize(b,t);if(!d&&!f||!v)return null;f?a.push(f["background-position-y"].value):d&&a.push(d["background-position-x"].value),Object.assign(i,v)}else{let p=this.getBackgroundImage(m,t),b=this.getBackgroundRepeat(m,t),d=this.getBackgroundAttachment(m,t),f=this.getBackgroundPositionX(m,t),v=this.getBackgroundPositionY(m,t),L=this.getBackgroundColor(m,t),C=this.getBackgroundOrigin(m,t),X=this.getBackgroundClip(m,t);if(!p&&!b&&!d&&!f&&!v&&!L&&!C&&!X)return null;f?a.push(f["background-position-x"].value):v&&a.push(v["background-position-y"].value),Object.assign(i,p,b,d,L,C,X)}return a.length&&Object.assign(i,this.getBackgroundPosition(a.join(" "),t)),i}static getBackgroundSize(e,t){let r=g.getVariable(e);if(r)return{"background-size":{value:r,important:t}};let o=e.toLowerCase();if(g.getGlobal(o))return{"background-size":{value:o,important:t}};let i=o.split(zd),n=[];for(let a of i){let m=a.trim().split(" ");if(m.length!==1&&m.length!==2)return null;if(m.length===1){if(m[0]!=="cover"&&m[0]!=="contain"&&!g.getAutoMeasurement(m[0]))return null;n.push(m[0])}else{if(!g.getAutoMeasurement(m[0])||!g.getAutoMeasurement(m[1]))return null;n.push(`${m[0]} ${m[1]}`)}}return n.length===1?{"background-size":{value:n.join(", "),important:t}}:null}static getBackgroundOrigin(e,t){let r=g.getVariable(e);if(r)return{"background-origin":{value:r,important:t}};let o=e.toLowerCase();return g.getGlobal(o)||h_.includes(o)?{"background-origin":{value:o,important:t}}:null}static getBackgroundClip(e,t){let r=g.getVariable(e);if(r)return{"background-clip":{value:r,important:t}};let o=e.toLowerCase();return g.getGlobal(o)||c_.includes(o)?{"background-clip":{value:o,important:t}}:null}static getBackgroundRepeat(e,t){let r=g.getVariable(e);if(r)return{"background-repeat":{value:r,important:t}};let o=e.toLowerCase();return g.getGlobal(o)||p_.includes(o)?{"background-repeat":{value:o,important:t}}:null}static getBackgroundAttachment(e,t){let r=g.getVariable(e);if(r)return{"background-attachment":{value:r,important:t}};let o=e.toLowerCase();return g.getGlobal(o)||d_.includes(o)?{"background-attachment":{value:o,important:t}}:null}static getBackgroundPosition(e,t){let r=g.getVariable(e);if(r)return{"background-position":{value:r,important:t}};let o=g.getGlobal(e);if(o)return{...this.getBackgroundPositionX(o,t),...this.getBackgroundPositionY(o,t)};let i=e.split(zd),n="",a="";for(let b of i){let d=b.trim().split(ir);switch(n&&(n+=",",a+=","),d.length){case 1:d[0]==="top"||d[0]==="bottom"?(n+="center",a+=d[0]):d[0]==="left"||d[0]==="right"?(n+=d[0],a+="center"):d[0]==="center"&&(n+="center",a+="center");break;case 2:n+=d[0]==="top"||d[0]==="bottom"?d[1]:d[0],a+=d[0]==="top"||d[0]==="bottom"?d[0]:d[1];break;case 3:d[0]==="top"||d[0]==="bottom"||d[1]==="left"||d[1]==="right"||d[2]==="left"||d[2]==="right"?g.getMeasurement(d[1])?(n+=d[2],a+=`${d[0]} ${d[1]}`):(n+=`${d[1]} ${d[2]}`,a+=d[0]):g.getMeasurement(d[1])?(n+=`${d[0]} ${d[1]}`,a+=d[2]):(n+=d[0],a+=`${d[1]} ${d[2]}`);break;case 4:n+=d[0]==="top"||d[0]==="bottom"||d[1]==="top"||d[1]==="bottom"?`${d[2]} ${d[3]}`:`${d[0]} ${d[1]}`,a+=d[0]==="top"||d[0]==="bottom"||d[1]==="top"||d[1]==="bottom"?`${d[0]} ${d[1]}`:`${d[2]} ${d[3]}`;break;default:return null}}let m=this.getBackgroundPositionX(n,t),p=this.getBackgroundPositionY(a,t);return m&&p?{...m,...p}:null}static getBackgroundPositionX(e,t){let r=g.getVariable(e);if(r)return{"background-position-x":{value:r,important:t}};let o=e.toLowerCase();if(g.getGlobal(o))return{"background-position-x":{value:o,important:t}};let i=o.split(zd),n="";for(let a of i){let m=a.trim().split(ir);n&&(n+=",");for(let p of m){let b=g.getMeasurement(p);if(!b&&p!=="left"&&p!=="right"&&p!=="center")return null;n&&(n+=" "),n+=b||p}}return{"background-position-x":{value:n,important:t}}}static getBackgroundPositionY(e,t){let r=g.getVariable(e);if(r)return{"background-position-y":{value:r,important:t}};let o=e.toLowerCase();if(g.getGlobal(o))return{"background-position-y":{value:o,important:t}};let i=o.split(zd),n="";for(let a of i){let m=a.trim().split(ir);n&&(n+=",");for(let p of m){let b=g.getMeasurement(p);if(!b&&p!=="top"&&p!=="bottom"&&p!=="center")return null;n&&(n+=" "),n+=b||p}}return{"background-position-y":{value:n,important:t}}}static getBackgroundColor(e,t){let r=g.getVariable(e);if(r)return{"background-color":{value:r,important:t}};let o=g.getGlobal(e)||g.getColor(e);return o?{"background-color":{important:t,value:o}}:null}static getBackgroundImage(e,t){let r=g.getVariable(e);if(r)return{"background-image":{value:r,important:t}};let o=e.toLowerCase();if(g.getGlobal(o)||o==="none")return{"background-image":{value:o,important:t}};let i=e.split(zd),n=[];for(let a of i){let m=g.getURL(a.trim())||g.getGradient(a.trim());if(!m)return null;n.push(m)}return n.length?{"background-image":{value:n.join(", "),important:t}}:null}static getColor(e,t){let r=g.getVariable(e);if(r)return{color:{value:r,important:t}};let o=g.getGlobal(e)||g.getColor(e);return o?{color:{important:t,value:o}}:null}static getFloodColor(e,t){let r=g.getVariable(e);if(r)return{"flood-color":{value:r,important:t}};let o=g.getGlobal(e)||g.getColor(e);return o?{"flood-color":{important:t,value:o}}:null}static getFont(e,t){let r=g.getVariable(e);if(r)return{font:{value:r,important:t}};let o=e.toLowerCase();if(g.getGlobal(o))return{...this.getFontStyle(o,t),...this.getFontVariant(o,t),...this.getFontWeight(o,t),...this.getFontStretch(o,t),...this.getFontSize(o,t),...this.getLineHeight(o,t),...this.getFontFamily(o,t)};if(S_.includes(o))return{font:{value:o,important:t}};let i={...this.getFontStyle("normal",t),...this.getFontVariant("normal",t),...this.getFontWeight("normal",t),...this.getFontStretch("normal",t),...this.getLineHeight("normal",t)},n=e.replace(/\s*\/\s*/g,"/").split(ir);for(let a=0,m=n.length;a<m;a++){let p=n[a];if(p.includes("/")){let[b,d]=p.split("/"),f=this.getFontSize(b,t),v=this.getLineHeight(d,t);if(!f||!v)return null;Object.assign(i,f,v)}else{let b=this.getFontStyle(p,t),d=this.getFontVariant(p,t),f=this.getFontWeight(p,t),v=this.getFontSize(p,t),L=this.getFontStretch(p,t);if(b)Object.assign(i,b);else if(d)Object.assign(i,d);else if(f)Object.assign(i,f);else if(v)Object.assign(i,v);else if(L)Object.assign(i,L);else{let C=n.slice(a).join(" "),X=this.getFontFamily(C,t);if(!X)return null;Object.assign(i,X);break}}}return i}static getFontStyle(e,t){let r=g.getVariable(e);if(r)return{"font-style":{value:r,important:t}};let o=e.toLowerCase();if(g.getGlobal(o)||w_.includes(o))return{"font-style":{value:o,important:t}};let i=e.split(ir);return i.length===2&&i[0]==="oblique"&&g.getDegree(i[1])?{"font-style":{value:o,important:t}}:null}static getFontVariant(e,t){let r=g.getVariable(e);if(r)return{"font-variant":{value:r,important:t}};let o=e.toLowerCase();return g.getGlobal(o)||o==="normal"||o==="small-caps"?{"font-variant":{value:o,important:t}}:null}static getFontStretch(e,t){let r=g.getVariable(e);if(r)return{"font-stretch":{value:r,important:t}};let o=e.toLowerCase();if(g.getGlobal(o)||E_.includes(o))return{"font-stretch":{value:o,important:t}};let i=g.getPercentage(e);return i?{"font-stretch":{value:i,important:t}}:null}static getFontWeight(e,t){let r=g.getVariable(e);if(r)return{"font-weight":{value:r,important:t}};let o=e.toLowerCase();if(g.getGlobal(o)||P_.includes(o))return{"font-weight":{value:o,important:t}};let i=g.getInteger(e);return i?{"font-weight":{value:i,important:t}}:null}static getFontSize(e,t){let r=g.getVariable(e);if(r)return{"font-size":{value:r,important:t}};let o=e.toLowerCase();if(g.getGlobal(o)||x_.includes(o))return{"font-size":{value:o,important:t}};let i=g.getMeasurement(e);return i?{"font-size":{value:i,important:t}}:null}static getLineHeight(e,t){let r=g.getVariable(e);if(r)return{"line-height":{value:r,important:t}};let o=e.toLowerCase();if(g.getGlobal(o)||o==="normal")return{"line-height":{value:o,important:t}};let i=g.getFloat(e)||g.getMeasurement(e);return i?{"line-height":{value:i,important:t}}:null}static getFontFamily(e,t){let r=g.getVariable(e);if(r)return{"font-family":{value:r,important:t}};let o=g.getGlobal(e);if(o)return{"font-family":{value:o,important:t}};let i=e.split(","),n="",a=!1;for(let m=0,p=i.length;m<p;m++){let b=i[m].trim().replace(/'/g,'"');if(!b)return null;if(b.includes(" ")){let d=(b.match(/"/g)||[]).length;if((b[0]!=='"'||m!==0)&&d!==2&&d!==0)return null;b[0]==='"'&&b[b.length-1]!=='"'?a=!0:b[0]!=='"'&&b[b.length-1]!=='"'&&(b=`"${b}"`)}else b=b.replace(/"/g,"");m>0&&(n+=", "),n+=b}return a&&(n+='"'),n?{"font-family":{important:t,value:n}}:null}static getTextTransform(e,t){let r=g.getVariable(e);if(r)return{"text-transform":{value:r,important:t}};let o=e.toLowerCase(),i=g.getGlobal(o)||T_.includes(o)&&o;return i?{"text-transform":{value:i,important:t}}:null}static getVisibility(e,t){let r=g.getVariable(e);if(r)return{visibility:{value:r,important:t}};let o=e.toLowerCase(),i=g.getGlobal(o)||N_.includes(o)&&o;return i?{visibility:{value:i,important:t}}:null}static getAspectRatio(e,t){let r=g.getVariable(e);if(r)return{"aspect-ratio":{value:r,important:t}};let o=e.toLowerCase();if(g.getGlobal(o))return{"aspect-ratio":{value:o,important:t}};let i=e,n=i.includes("auto");if(n&&(i=i.replace("auto","")),i=i.replace(m_,""),!i)return{"aspect-ratio":{value:"auto",important:t}};let a=i.split("/");if(a.length>3)return null;let m=Number(a[0]),p=a[1]?Number(a[1]):1;return isNaN(m)||isNaN(p)?null:n?{"aspect-ratio":{value:`auto ${m} / ${p}`,important:t}}:{"aspect-ratio":{value:`${m} / ${p}`,important:t}}}};var xr=class{static getMargin(e){return this.getPaddingLikeProperty(["margin-top","margin-right","margin-bottom","margin-left"],e)}static getPadding(e){return this.getPaddingLikeProperty(["padding-top","padding-right","padding-bottom","padding-left"],e)}static getOutline(e){if(!e["outline-color"]?.value||!e["outline-style"]?.value||!e["outline-width"]?.value)return null;let t=e["outline-color"].important&&e["outline-style"].important&&e["outline-width"].important;if(g.getGlobalExceptInitial(e["outline-width"].value)&&e["outline-width"].value===e["outline-style"].value&&e["outline-width"].value===e["outline-color"].value)return{important:t,value:e["outline-width"].value};let r=[];return g.getInitial(e["outline-color"]?.value)||r.push(e["outline-color"].value),g.getInitial(e["outline-style"]?.value)||r.push(e["outline-style"].value),g.getInitial(e["outline-width"].value)||r.push(e["outline-width"].value),{important:t,value:r.join(" ")}}static getBorder(e){if(!e["border-top-width"]?.value||e["border-top-width"]?.value!==e["border-right-width"]?.value||e["border-top-width"]?.value!==e["border-bottom-width"]?.value||e["border-top-width"]?.value!==e["border-left-width"]?.value||!e["border-top-style"]?.value||e["border-top-style"]?.value!==e["border-right-style"]?.value||e["border-top-style"]?.value!==e["border-bottom-style"]?.value||e["border-top-style"]?.value!==e["border-left-style"]?.value||!e["border-top-color"]?.value||e["border-top-color"]?.value!==e["border-right-color"]?.value||e["border-top-color"]?.value!==e["border-bottom-color"]?.value||e["border-top-color"]?.value!==e["border-left-color"]?.value||!e["border-image-source"]?.value||!e["border-image-slice"]?.value||!e["border-image-width"]?.value||!e["border-image-outset"]?.value||!e["border-image-repeat"]?.value)return null;let t=e["border-top-width"].important&&e["border-right-width"].important&&e["border-bottom-width"].important&&e["border-left-width"].important&&e["border-top-style"].important&&e["border-right-style"].important&&e["border-bottom-style"].important&&e["border-left-style"].important&&e["border-top-color"].important&&e["border-right-color"].important&&e["border-bottom-color"].important&&e["border-left-color"].important&&e["border-image-source"].important&&e["border-image-slice"].important&&e["border-image-width"].important&&e["border-image-outset"].important&&e["border-image-repeat"].important;if(g.getGlobalExceptInitial(e["border-top-width"].value)||g.getGlobalExceptInitial(e["border-top-style"].value)||g.getGlobalExceptInitial(e["border-top-color"].value)||g.getGlobalExceptInitial(e["border-image-source"].value)||g.getGlobalExceptInitial(e["border-image-slice"].value)||g.getGlobalExceptInitial(e["border-image-width"].value)||g.getGlobalExceptInitial(e["border-image-outset"].value)||g.getGlobalExceptInitial(e["border-image-repeat"].value))return e["border-top-width"].value!==e["border-top-style"].value||e["border-top-width"].value!==e["border-top-color"].value||e["border-top-width"].value!==e["border-image-source"].value||e["border-top-width"].value!==e["border-image-slice"].value||e["border-top-width"].value!==e["border-image-width"].value||e["border-top-width"].value!==e["border-image-outset"].value||e["border-top-width"].value!==e["border-image-repeat"].value?null:{important:t,value:e["border-top-width"].value};let r=[];return g.getInitial(e["border-top-width"].value)||r.push(e["border-top-width"].value),g.getInitial(e["border-top-style"].value)||r.push(e["border-top-style"].value),g.getInitial(e["border-top-color"].value)||r.push(e["border-top-color"].value),{important:t,value:r.join(" ")}}static getBorderTop(e){return this.getBorderTopRightBottomLeft("top",e)}static getBorderRight(e){return this.getBorderTopRightBottomLeft("right",e)}static getBorderBottom(e){return this.getBorderTopRightBottomLeft("bottom",e)}static getBorderLeft(e){return this.getBorderTopRightBottomLeft("left",e)}static getBorderColor(e){return this.getPaddingLikeProperty(["border-top-color","border-right-color","border-bottom-color","border-left-color"],e)}static getBorderWidth(e){return this.getPaddingLikeProperty(["border-top-width","border-right-width","border-bottom-width","border-left-width"],e)}static getBorderStyle(e){return this.getPaddingLikeProperty(["border-top-style","border-right-style","border-bottom-style","border-left-style"],e)}static getBorderRadius(e){return this.getPaddingLikeProperty(["border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius"],e)}static getBorderImage(e){if(!e["border-image-source"]?.value||!e["border-image-slice"]?.value||!e["border-image-width"]?.value||!e["border-image-outset"]?.value||!e["border-image-repeat"]?.value)return null;let t=e["border-image-source"].important&&e["border-image-slice"].important&&e["border-image-width"].important&&e["border-image-outset"].important&&e["border-image-repeat"].important;return g.getGlobal(e["border-image-source"].value)||g.getGlobal(e["border-image-slice"].value)||g.getGlobal(e["border-image-width"].value)||g.getGlobal(e["border-image-outset"].value)||g.getGlobal(e["border-image-repeat"].value)?e["border-image-source"].value!==e["border-image-slice"].value||e["border-image-source"].value!==e["border-image-width"].value||e["border-image-source"].value!==e["border-image-outset"].value||e["border-image-source"].value!==e["border-image-repeat"].value?null:{important:t,value:e["border-image-source"].value}:{important:t,value:`${e["border-image-source"].value} ${e["border-image-slice"].value} / ${e["border-image-width"].value} / ${e["border-image-outset"].value} ${e["border-image-repeat"].value}`}}static getBackground(e){if(!e["background-image"]?.value||!e["background-repeat"]?.value||!e["background-attachment"]?.value||!e["background-position-x"]?.value||!e["background-position-y"]?.value||!e["background-color"]?.value||!e["background-size"]?.value||!e["background-origin"]?.value||!e["background-clip"]?.value)return null;let t=e["background-image"].important&&e["background-repeat"].important&&e["background-attachment"].important&&e["background-position-x"].important&&e["background-position-y"].important&&e["background-color"].important&&e["background-size"].important&&e["background-origin"].important&&e["background-clip"].important;if(g.getGlobalExceptInitial(e["background-image"].value)||g.getGlobalExceptInitial(e["background-repeat"].value)||g.getGlobalExceptInitial(e["background-attachment"].value)||g.getGlobalExceptInitial(e["background-position-x"].value)||g.getGlobalExceptInitial(e["background-position-y"].value)||g.getGlobalExceptInitial(e["background-color"].value)||g.getGlobalExceptInitial(e["background-size"].value)||g.getGlobalExceptInitial(e["background-origin"].value)||g.getGlobalExceptInitial(e["background-clip"].value))return e["background-image"].value!==e["background-repeat"].value||e["background-image"].value!==e["background-attachment"].value||e["background-image"].value!==e["background-position-x"].value||e["background-image"].value!==e["background-position-y"].value||e["background-image"].value!==e["background-color"].value||e["background-image"].value!==e["background-size"].value||e["background-image"].value!==e["background-origin"].value||e["background-image"].value!==e["background-clip"].value?null:{important:t,value:e["background-image"].value};let r=[];return g.getInitial(e["background-image"].value)||r.push(e["background-image"].value),!g.getInitial(e["background-position-x"].value)&&!g.getInitial(e["background-position-y"].value)&&!g.getInitial(e["background-size"].value)?r.push(`${e["background-position-x"].value} ${e["background-position-y"].value} / ${e["background-size"].value}`):!g.getInitial(e["background-position-x"].value)&&!g.getInitial(e["background-position-y"].value)&&r.push(`${e["background-position-x"].value} ${e["background-position-y"].value}`),g.getInitial(e["background-repeat"].value)||r.push(e["background-repeat"].value),g.getInitial(e["background-attachment"].value)||r.push(e["background-attachment"].value),g.getInitial(e["background-origin"].value)||r.push(e["background-origin"].value),g.getInitial(e["background-clip"].value)||r.push(e["background-clip"].value),g.getInitial(e["background-color"].value)||r.push(e["background-color"].value),{important:t,value:r.join(" ")}}static getBackgroundPosition(e){if(!e["background-position-x"]?.value||!e["background-position-y"]?.value)return null;let t=e["background-position-x"].important&&e["background-position-y"].important;if(g.getGlobal(e["background-position-x"].value)||g.getGlobal(e["background-position-y"].value))return e["background-position-x"].value!==e["background-position-y"].value?null:{important:t,value:e["background-position-x"].value};let r=e["background-position-x"].value.replace(/ *, */g,",").split(","),o=e["background-position-y"].value.replace(/ *, */g,",").split(","),i=[];for(let n=0;n<r.length;n++)i.push(`${r[n]} ${o[n]}`);return{important:t,value:i.join(", ")}}static getFlex(e){if(!e["flex-grow"]?.value||!e["flex-shrink"]?.value||!e["flex-basis"]?.value)return null;let t=e["flex-grow"].important&&e["flex-shrink"].important&&e["flex-basis"].important;return g.getGlobal(e["flex-grow"].value)||g.getGlobal(e["flex-shrink"].value)||g.getGlobal(e["flex-basis"].value)?e["flex-grow"].value!==e["flex-shrink"].value||e["flex-grow"].value!==e["flex-basis"].value?null:{important:t,value:e["flex-grow"].value}:{important:t,value:`${e["flex-grow"].value} ${e["flex-shrink"].value} ${e["flex-basis"].value}`}}static getFont(e){if(!e["font-size"]?.value||!e["font-family"]?.value||!e["font-weight"]?.value||!e["font-style"]?.value||!e["font-variant"]?.value||!e["font-stretch"]?.value||!e["line-height"]?.value)return null;let t=e["font-size"].important&&e["font-family"].important&&e["font-weight"].important&&e["font-style"].important&&e["font-variant"].important&&e["font-stretch"].important&&e["line-height"].important;if(g.getGlobal(e["font-size"].value)||g.getGlobal(e["font-family"].value)||g.getGlobal(e["font-weight"].value)||g.getGlobal(e["font-style"].value)||g.getGlobal(e["font-variant"].value)||g.getGlobal(e["font-stretch"].value)||g.getGlobal(e["line-height"].value))return e["font-size"].value!==e["font-family"].value||e["font-size"].value!==e["font-weight"].value||e["font-size"].value!==e["font-style"].value||e["font-size"].value!==e["font-variant"].value||e["font-size"].value!==e["font-stretch"].value||e["font-size"].value!==e["line-height"].value?null:{important:t,value:e["font-size"].value};let r=[];return e["font-style"].value!=="normal"&&r.push(e["font-style"].value),e["font-variant"].value!=="normal"&&r.push(e["font-variant"].value),e["font-weight"].value!=="normal"&&r.push(e["font-weight"].value),e["font-stretch"].value!=="normal"&&r.push(e["font-stretch"].value),e["line-height"].value!=="normal"?r.push(`${e["font-size"].value} / ${e["line-height"].value}`):r.push(e["font-size"].value),r.push(e["font-family"].value),{important:t,value:r.join(" ")}}static getBorderTopRightBottomLeft(e,t){if(!t[`border-${e}-width`]?.value||!t[`border-${e}-style`]?.value||!t[`border-${e}-color`]?.value)return null;let r=t[`border-${e}-width`].important&&t[`border-${e}-style`].important&&t[`border-${e}-color`].important;if(g.getGlobalExceptInitial(t[`border-${e}-width`].value)&&t[`border-${e}-width`].value===t[`border-${e}-style`].value&&t[`border-${e}-width`].value===t[`border-${e}-color`].value)return{important:r,value:t[`border-${e}-width`].value};let o=[];return g.getInitial(t[`border-${e}-width`].value)||o.push(t[`border-${e}-width`].value),g.getInitial(t[`border-${e}-style`]?.value)||o.push(t[`border-${e}-style`].value),g.getInitial(t[`border-${e}-color`]?.value)||o.push(t[`border-${e}-color`].value),{important:r,value:o.join(" ")}}static getPaddingLikeProperty(e,t){if(!t[e[0]]?.value||!t[e[1]]?.value||!t[e[2]]?.value||!t[e[3]]?.value)return null;let r=t[e[0]].important&&t[e[1]].important&&t[e[2]].important&&t[e[3]].important;if(g.getGlobal(t[e[0]].value)||g.getGlobal(t[e[1]].value)||g.getGlobal(t[e[2]].value)||g.getGlobal(t[e[3]].value))return t[e[0]].value!==t[e[1]].value||t[e[0]].value!==t[e[2]].value||t[e[0]].value!==t[e[3]].value?null:{important:r,value:t[e[0]].value};let o=[t[e[0]].value];return(t[e[1]].value!==t[e[0]].value||t[e[2]].value!==t[e[0]].value||t[e[3]].value!==t[e[1]].value)&&o.push(t[e[1]].value),(t[e[2]].value!==t[e[0]].value||t[e[3]].value!==t[e[1]].value)&&o.push(t[e[2]].value),t[e[3]].value!==t[e[1]].value&&o.push(t[e[3]].value),{important:r,value:o.join(" ")}}};var L_=/\s*([^:;]+?)\s*:\s*((?:[^(;]*?(?:\([^)]*\))?)*?)\s*(!important)?\s*(?:$|;)/g,cm=class{static parse(e){let t={},r=[],o=new RegExp(L_),i;for(;i=o.exec(e);){let n=(i[1]??"").trim(),a=(i[2]??"").trim(),m=!!i[3];n&&a&&(n.startsWith("--")&&(t[n]=a),r.push({name:n,value:a,important:m}))}return{rules:r,properties:t}}};var C_=[["margin"],["padding"],["border",["border-width","border-style","border-color","border-image"]],["border-radius"],["background","background-position"],["font"]],vs=class{constructor(e){s(this,"properties",{});s(this,"definedPropertyNames",{});if(e?.cssText){let{rules:t}=cm.parse(e.cssText);for(let r of t)(r.important||!this.get(r.name)?.important)&&this.set(r.name,r.value,r.important)}}get(e){if(this.properties[e])return this.properties[e];switch(e){case"margin":return xr.getMargin(this.properties);case"padding":return xr.getPadding(this.properties);case"border":return xr.getBorder(this.properties);case"border-top":return xr.getBorderTop(this.properties);case"border-right":return xr.getBorderRight(this.properties);case"border-bottom":return xr.getBorderBottom(this.properties);case"border-left":return xr.getBorderLeft(this.properties);case"border-color":return xr.getBorderColor(this.properties);case"border-style":return xr.getBorderStyle(this.properties);case"border-width":return xr.getBorderWidth(this.properties);case"border-radius":return xr.getBorderRadius(this.properties);case"border-image":return xr.getBorderImage(this.properties);case"outline":return xr.getOutline(this.properties);case"background":return xr.getBackground(this.properties);case"background-position":return xr.getBackgroundPosition(this.properties);case"flex":return xr.getFlex(this.properties);case"font":return xr.getFont(this.properties)}return this.properties[e]||null}remove(e){switch(delete this.properties[e],delete this.definedPropertyNames[e],e){case"border":delete this.properties["border-top-width"],delete this.properties["border-right-width"],delete this.properties["border-bottom-width"],delete this.properties["border-left-width"],delete this.properties["border-top-style"],delete this.properties["border-right-style"],delete this.properties["border-bottom-style"],delete this.properties["border-left-style"],delete this.properties["border-top-color"],delete this.properties["border-right-color"],delete this.properties["border-bottom-color"],delete this.properties["border-left-color"],delete this.properties["border-image-source"],delete this.properties["border-image-slice"],delete this.properties["border-image-width"],delete this.properties["border-image-outset"],delete this.properties["border-image-repeat"];break;case"border-top":delete this.properties["border-top-width"],delete this.properties["border-top-style"],delete this.properties["border-top-color"],delete this.properties["border-image-source"],delete this.properties["border-image-slice"],delete this.properties["border-image-width"],delete this.properties["border-image-outset"],delete this.properties["border-image-repeat"];break;case"border-right":delete this.properties["border-right-width"],delete this.properties["border-right-style"],delete this.properties["border-right-color"],delete this.properties["border-image-source"],delete this.properties["border-image-slice"],delete this.properties["border-image-width"],delete this.properties["border-image-outset"],delete this.properties["border-image-repeat"];break;case"border-bottom":delete this.properties["border-bottom-width"],delete this.properties["border-bottom-style"],delete this.properties["border-bottom-color"],delete this.properties["border-image-source"],delete this.properties["border-image-slice"],delete this.properties["border-image-width"],delete this.properties["border-image-outset"],delete this.properties["border-image-repeat"];break;case"border-left":delete this.properties["border-left-width"],delete this.properties["border-left-style"],delete this.properties["border-left-color"],delete this.properties["border-image-source"],delete this.properties["border-image-slice"],delete this.properties["border-image-width"],delete this.properties["border-image-outset"],delete this.properties["border-image-repeat"];break;case"border-width":delete this.properties["border-top-width"],delete this.properties["border-right-width"],delete this.properties["border-bottom-width"],delete this.properties["border-left-width"];break;case"border-style":delete this.properties["border-top-style"],delete this.properties["border-right-style"],delete this.properties["border-bottom-style"],delete this.properties["border-left-style"];break;case"border-color":delete this.properties["border-top-color"],delete this.properties["border-right-color"],delete this.properties["border-bottom-color"],delete this.properties["border-left-color"];break;case"border-image":delete this.properties["border-image-source"],delete this.properties["border-image-slice"],delete this.properties["border-image-width"],delete this.properties["border-image-outset"],delete this.properties["border-image-repeat"];break;case"border-radius":delete this.properties["border-top-left-radius"],delete this.properties["border-top-right-radius"],delete this.properties["border-bottom-right-radius"],delete this.properties["border-bottom-left-radius"];break;case"outline":delete this.properties["outline-color"],delete this.properties["outline-style"],delete this.properties["outline-width"];break;case"background":delete this.properties["background-color"],delete this.properties["background-image"],delete this.properties["background-repeat"],delete this.properties["background-attachment"],delete this.properties["background-position-x"],delete this.properties["background-position-y"],delete this.properties["background-size"],delete this.properties["background-origin"],delete this.properties["background-clip"];break;case"background-position":delete this.properties["background-position-x"],delete this.properties["background-position-y"];break;case"flex":delete this.properties["flex-grow"],delete this.properties["flex-shrink"],delete this.properties["flex-basis"];break;case"font":delete this.properties["font-style"],delete this.properties["font-variant"],delete this.properties["font-weight"],delete this.properties["font-stretch"],delete this.properties["font-size"],delete this.properties["line-height"],delete this.properties["font-family"];break;case"padding":delete this.properties["padding-top"],delete this.properties["padding-right"],delete this.properties["padding-bottom"],delete this.properties["padding-left"];break;case"margin":delete this.properties["margin-top"],delete this.properties["margin-right"],delete this.properties["margin-bottom"],delete this.properties["margin-left"];break}}set(e,t,r){if(t===null){this.remove(e);return}let o=null;switch(e){case"border":o=Z.getBorder(t,r);break;case"border-top":o=Z.getBorderTop(t,r);break;case"border-right":o=Z.getBorderRight(t,r);break;case"border-bottom":o=Z.getBorderBottom(t,r);break;case"border-left":o=Z.getBorderLeft(t,r);break;case"border-width":o=Z.getBorderWidth(t,r);break;case"border-style":o=Z.getBorderStyle(t,r);break;case"border-color":o=Z.getBorderColor(t,r);break;case"border-image":o=Z.getBorderImage(t,r);break;case"border-image-source":o=Z.getBorderImageSource(t,r);break;case"border-image-slice":o=Z.getBorderImageSlice(t,r);break;case"border-image-width":o=Z.getBorderImageWidth(t,r);break;case"border-image-outset":o=Z.getBorderImageOutset(t,r);break;case"border-image-repeat":o=Z.getBorderImageRepeat(t,r);break;case"border-top-width":o=Z.getBorderTopWidth(t,r);break;case"border-right-width":o=Z.getBorderRightWidth(t,r);break;case"border-bottom-width":o=Z.getBorderBottomWidth(t,r);break;case"border-left-width":o=Z.getBorderLeftWidth(t,r);break;case"border-top-color":o=Z.getBorderTopColor(t,r);break;case"border-right-color":o=Z.getBorderRightColor(t,r);break;case"border-bottom-color":o=Z.getBorderBottomColor(t,r);break;case"border-left-color":o=Z.getBorderLeftColor(t,r);break;case"border-top-style":o=Z.getBorderTopStyle(t,r);break;case"border-right-style":o=Z.getBorderRightStyle(t,r);break;case"border-bottom-style":o=Z.getBorderBottomStyle(t,r);break;case"border-left-style":o=Z.getBorderLeftStyle(t,r);break;case"border-radius":o=Z.getBorderRadius(t,r);break;case"border-top-left-radius":o=Z.getBorderTopLeftRadius(t,r);break;case"border-top-right-radius":o=Z.getBorderTopRightRadius(t,r);break;case"border-bottom-right-radius":o=Z.getBorderBottomRightRadius(t,r);break;case"border-bottom-left-radius":o=Z.getBorderBottomLeftRadius(t,r);break;case"border-collapse":o=Z.getBorderCollapse(t,r);break;case"outline":o=Z.getOutline(t,r);break;case"outline-width":o=Z.getOutlineWidth(t,r);break;case"outline-style":o=Z.getOutlineStyle(t,r);break;case"outline-color":o=Z.getOutlineColor(t,r);break;case"letter-spacing":o=Z.getLetterSpacing(t,r);break;case"word-spacing":o=Z.getWordSpacing(t,r);break;case"clear":o=Z.getClear(t,r);break;case"clip":o=Z.getClip(t,r);break;case"css-float":o=Z.getCSSFloat(t,r);break;case"float":o=Z.getFloat(t,r);break;case"display":o=Z.getDisplay(t,r);break;case"direction":o=Z.getDirection(t,r);break;case"flex":o=Z.getFlex(t,r);break;case"flex-shrink":o=Z.getFlexShrink(t,r);break;case"flex-grow":o=Z.getFlexGrow(t,r);break;case"flex-basis":o=Z.getFlexBasis(t,r);break;case"padding":o=Z.getPadding(t,r);break;case"padding-top":o=Z.getPaddingTop(t,r);break;case"padding-right":o=Z.getPaddingRight(t,r);break;case"padding-bottom":o=Z.getPaddingBottom(t,r);break;case"padding-left":o=Z.getPaddingLeft(t,r);break;case"margin":o=Z.getMargin(t,r);break;case"margin-top":o=Z.getMarginTop(t,r);break;case"margin-right":o=Z.getMarginRight(t,r);break;case"margin-bottom":o=Z.getMarginBottom(t,r);break;case"margin-left":o=Z.getMarginLeft(t,r);break;case"background":o=Z.getBackground(t,r);break;case"background-image":o=Z.getBackgroundImage(t,r);break;case"background-color":o=Z.getBackgroundColor(t,r);break;case"background-repeat":o=Z.getBackgroundRepeat(t,r);break;case"background-attachment":o=Z.getBackgroundAttachment(t,r);break;case"background-position":o=Z.getBackgroundPosition(t,r);break;case"width":o=Z.getWidth(t,r);break;case"height":o=Z.getHeight(t,r);break;case"top":o=Z.getTop(t,r);break;case"right":o=Z.getRight(t,r);break;case"bottom":o=Z.getBottom(t,r);break;case"left":o=Z.getLeft(t,r);break;case"font":o=Z.getFont(t,r);break;case"font-style":o=Z.getFontStyle(t,r);break;case"font-variant":o=Z.getFontVariant(t,r);break;case"font-weight":o=Z.getFontWeight(t,r);break;case"font-stretch":o=Z.getFontStretch(t,r);break;case"font-size":o=Z.getFontSize(t,r);break;case"line-height":o=Z.getLineHeight(t,r);break;case"text-indent":o=Z.getTextIndent(t,r);break;case"font-family":o=Z.getFontFamily(t,r);break;case"color":o=Z.getColor(t,r);break;case"flood-color":o=Z.getFloodColor(t,r);break;case"text-transform":o=Z.getTextTransform(t,r);break;case"visibility":o=Z.getVisibility(t,r);break;case"aspect-ratio":o=Z.getAspectRatio(t,r);break;default:let i=t.trim();if(i){let n=g.getGlobal(i);o={[e]:{value:n||i,important:r}}}break}o!==null&&Object.keys(o).length>0&&(this.definedPropertyNames[e]=!0,Object.assign(this.properties,o))}clone(){let e=this.constructor,t=new e;return t.properties=JSON.parse(JSON.stringify(this.properties)),t.definedPropertyNames=Object.assign({},this.definedPropertyNames),t}size(){return Object.keys(this.properties).length}item(e){return Object.keys(this.properties)[e]||""}toString(){let e=[],t=this.clone(),r={};for(let o of C_)for(let i of o)if(Array.isArray(i)){let n=!1;for(let a of i){let m=t.get(a);m&&(r[a]=m,t.remove(a),n=!0)}if(n)break}else{let n=t.get(i);if(n){r[i]=n,t.remove(i);break}}for(let o of Object.keys(t.properties))r[o]=t.get(o);for(let o of Object.keys(this.definedPropertyNames)){let i=r[o];i&&(e.push(`${o}: ${i.value}${i.important?" !important":""};`),delete r[o])}for(let o of Object.keys(r)){let i=r[o];i&&e.push(`${o}: ${i.value}${i.important?" !important":""};`)}return e.join(" ")}};var EP;(function(l){l[l.elementNode=1]="elementNode",l[l.attributeNode=2]="attributeNode",l[l.textNode=3]="textNode",l[l.cdataSectionNode=4]="cdataSectionNode",l[l.commentNode=8]="commentNode",l[l.documentNode=9]="documentNode",l[l.documentTypeNode=10]="documentTypeNode",l[l.documentFragmentNode=11]="documentFragmentNode",l[l.processingInstructionNode=7]="processingInstructionNode"})(EP||(EP={}));var M=EP;var hx={default:"display: inline;",A:"",ABBR:"",ADDRESS:"display: block;",AREA:"",ARTICLE:"display: block;",ASIDE:"display: block;",AUDIO:"display: none;",B:"",BASE:"display: none;",BDI:"",BDO:"",BLOCKQUAOTE:"",BODY:"display: block;",TEMPLATE:"display: none;",FORM:"display: block;",INPUT:"display: inline-block;",TEXTAREA:"display: inline-block;",SCRIPT:"display: none;",IMG:"",LINK:"display: none;",STYLE:"display: none;",LABEL:"",SLOT:"display: contents;",SVG:"",CIRCLE:"",ELLIPSE:"",LINE:"",PATH:"",POLYGON:"",POLYLINE:"",RECT:"",STOP:"",USE:"",META:"display: none;",BLOCKQUOTE:"display: block;",BR:"",BUTTON:"display: inline-block;",CANVAS:"",CAPTION:"display: table-caption;",CITE:"",CODE:"",COL:"display: table-column;",COLGROUP:"display: table-column-group;",DATA:"",DATALIST:"display: none;",DD:"display: block;",DEL:"",DETAILS:"display: block;",DFN:"",DIALOG:{default:"display: none;",open:"display: block;"},DIV:"display: block;",DL:"display: block;",DT:"display: block;",EM:"",EMBED:"",FIELDSET:"display: block;",FIGCAPTION:"display: block;",FIGURE:"display: block;",FOOTER:"display: block;",H1:"display: block;",H2:"display: block;",H3:"display: block;",H4:"display: block;",H5:"display: block;",H6:"display: block;",HEAD:"display: none;",HEADER:"display: block;",HGROUP:"display: block;",HR:"display: block;",HTML:'display: block;direction: ltr;font: 16px "Times New Roman";',I:"",IFRAME:"",INS:"",KBD:"",LEGEND:"display: block;",LI:"display: list-item;",MAIN:"display: block;",MAP:"",MARK:"",MATH:"",MENU:"display: block;",MENUITEM:"",METER:"display: inline-block;",NAV:"display: block;",NOSCRIPT:"",OBJECT:"",OL:"display: block;",OPTGROUP:"display: block;",OPTION:"display: block;",OUTPUT:"unicode-bidi: isolate;",P:"display: block;",PARAM:"display: none;",PICTURE:"",PRE:"display: block;",PROGRESS:"display: inline-block;",Q:"",RB:"",RP:"display: none;",RT:"",RTC:"",RUBY:"",S:"",SAMP:"",SECTION:"display: block;",SELECT:"display: inline-block;",SMALL:"",SOURCE:"",SPAN:"",STRONG:"",SUB:"",SUMMARY:"display: block;",SUP:"",TABLE:"display: table;",TBODY:"display: table-row-group;",TD:"display: table-cell;",TFOOT:"display: table-footer-group;",TH:"display: table-cell;",THEAD:"display: table-header-group;",TIME:"",TITLE:"display: none;",TR:"display: table-row;",TRACK:"",U:"",UL:"display: block;",VAR:"",VIDEO:"",WBR:""};var cx={"border-collapse":!0,"border-spacing":!0,"caption-side":!0,color:!0,cursor:!0,direction:!0,"empty-cells":!0,"font-family":!0,"font-size":!0,"font-style":!0,"font-variant":!0,"font-weight":!0,"font-size-adjust":!0,"font-stretch":!0,font:!0,"letter-spacing":!0,"line-height":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,"list-style":!0,orphans:!0,quotes:!0,"tab-size":!0,"text-align":!0,"text-align-last":!0,"text-decoration-color":!0,"text-indent":!0,"text-justify":!0,"text-shadow":!0,"text-transform":!0,visibility:!0,"white-space":!0,widows:!0,"word-break":!0,"word-spacing":!0,"word-wrap":!0};var dx=["background-position-x","background-position-y","background-size","border-image-outset","border-top-width","border-right-width","border-bottom-width","border-left-width","border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius","border-image-width","clip","font-size","padding-top","padding-right","padding-bottom","padding-left","margin-top","margin-right","margin-bottom","margin-left","width","height","min-width","min-height","max-width","max-height","top","right","bottom","left","outline-width","outline-offset","letter-spacing","word-spacing","text-indent","line-height"];var xe=class{constructor(e,t){s(this,"target");s(this,"classes");s(this,"cache",new Map);this.target=e,this.classes=t}bind(e){if(this.cache.has(e)||e===Symbol.iterator||e==="constructor")return;this.cache.set(e,!0);let t=this.target;if(e in t)for(let r of this.classes){let o=Object.getOwnPropertyDescriptor(r.prototype,e);if(o){if(typeof o.value=="function"){if(o.value.toString().startsWith("class "))return;Object.defineProperty(t,e,{...o,value:o.value.bind(t)})}else o.get!==void 0&&Object.defineProperty(t,e,{...o,get:o.get?.bind(t),set:o.set?.bind(t)});return}}}preventBinding(e){this.cache.set(e,!0)}};var bx,gx,vP=class l{constructor(e,t){s(this,gx);s(this,bx);if(e!==h)throw new TypeError("Illegal constructor");this[Y]=t;let r=new xe(this,this.constructor!==l?[this.constructor,l]:[l]),o=new Proxy(this,{get:(i,n)=>{if(n==="length")return t.length;if(n in i||typeof n=="symbol")return r.bind(n),i[n];if(n==="")return;let a=Number(n);if(!isNaN(a))return t[a]},set(i,n,a){if(r.bind(n),typeof n=="symbol")return i[n]=a,!0;let m=Number(n);return isNaN(m)&&(i[n]=a),!0},deleteProperty(i,n){if(typeof n=="symbol")return delete i[n],!0;let a=Number(n);return isNaN(a)&&delete i[n],!0},ownKeys(){return Object.keys(t)},has(i,n){if(n in i)return!0;if(typeof n=="symbol")return!1;let a=Number(n);return!isNaN(a)&&a>=0&&a<t.length},defineProperty(i,n,a){return r.preventBinding(n),n in i?(Object.defineProperty(i,n,a),!0):!1},getOwnPropertyDescriptor(i,n){if(n in i||typeof n=="symbol")return;let a=Number(n);if(!isNaN(a)&&t[a])return{value:t[a],writable:!1,enumerable:!0,configurable:!0}}});return this[Gt]=o,o}get length(){return this[Y].length}get[(gx=Y,bx=Gt,Symbol.toStringTag)](){return"NodeList"}toLocaleString(){return"[object NodeList]"}toString(){return"[object NodeList]"}item(e){let t=this[Y];return e>=0&&t[e]?t[e]:null}[Symbol.iterator](){return this[Y][Symbol.iterator]()}values(){return this[Y].values()}entries(){return this[Y].entries()}forEach(e,t){let r=this[Y],o=this[Gt]??this;for(let i=0,n=r.length;i<n;i++){let a=r[i];e.call(t??a[y],a,i,o)}}keys(){return this[Y].keys()}},Li=vP;var AP;(function(l){l.descendant="descendant",l.child="child",l.adjacentSibling="adjacentSibling",l.subsequentSibling="subsequentSibling"})(AP||(AP={}));var ze=AP;var hi=class{constructor(e){s(this,"root");s(this,"scope");s(this,"tagName");s(this,"id");s(this,"classNames");s(this,"attributes");s(this,"pseudos");s(this,"isPseudoElement");s(this,"combinator");s(this,"ignoreErrors");this.root=e?.scope?e.scope[T].documentElement:null,this.scope=e?.scope||null,this.tagName=e?.tagName||null,this.id=e?.id||null,this.classNames=e?.classNames||null,this.attributes=e?.attributes||null,this.pseudos=e?.pseudos||null,this.isPseudoElement=e?.isPseudoElement||!1,this.combinator=e?.combinator||ze.descendant,this.ignoreErrors=e?.ignoreErrors||!1}match(e){let t=0;if(this.isPseudoElement)return null;if(this.tagName){if(this.tagName!=="*"&&this.tagName!==e[tt].toUpperCase())return null;t+=1}if(this.id){if(this.id!==e.id)return null;t+=100}if(this.classNames){let r=this.matchClass(e);if(!r)return null;t+=r.priorityWeight}if(this.attributes){let r=this.matchAttributes(e);if(!r)return null;t+=r.priorityWeight}if(this.pseudos){let r=this.matchPseudo(e);if(!r)return null;t+=r.priorityWeight}return{priorityWeight:t}}matchPseudo(e){let t=e[W],r=e[W]?e[W][gt]:[];if(!this.pseudos)return{priorityWeight:0};let o=0;for(let i of this.pseudos){switch(i.name){case"not":case"nth-child":case"nth-of-type":case"nth-last-child":case"nth-last-of-type":case"is":case"where":if(!i.arguments){if(this.ignoreErrors)return null;throw new e[y].DOMException(`Failed to execute 'matches' on '${e.constructor.name}': '${this.getSelectorString()}' is not a valid selector.`)}break}if(!t)switch(i.name){case"first-child":case"last-child":case"only-child":case"first-of-type":case"last-of-type":case"only-of-type":case"nth-child":case"nth-of-type":case"nth-last-child":case"nth-last-of-type":return null}let n=this.matchPseudoItem(e,r,i);if(!n)return null;o+=n.priorityWeight}return{priorityWeight:o}}matchPseudoItem(e,t,r){switch(r.name){case"first-child":return t[0]===e?{priorityWeight:10}:null;case"last-child":return t.length&&t[t.length-1]===e?{priorityWeight:10}:null;case"only-child":return t.length===1&&t[0]===e?{priorityWeight:10}:null;case"first-of-type":for(let f of t)if(f[tt]===e[tt])return f===e?{priorityWeight:10}:null;return null;case"last-of-type":for(let f=t.length-1;f>=0;f--){let v=t[f];if(v[tt]===e[tt])return v===e?{priorityWeight:10}:null}return null;case"only-of-type":let o=!1;for(let f of t)if(f[tt]===e[tt]){if(o||f!==e)return null;o=!0}return o?{priorityWeight:10}:null;case"checked":return e[tt]==="INPUT"&&e.checked?{priorityWeight:10}:null;case"disabled":return"disabled"in e&&e.hasAttribute("disabled")?{priorityWeight:10}:null;case"empty":return e[gt].length?null:{priorityWeight:10};case"root":return this.root&&e===this.root?{priorityWeight:10}:null;case"not":for(let f of r.selectorItems)if(f.match(e))return null;return{priorityWeight:10};case"nth-child":let i=-1;if(r.selectorItems?.[0]&&!r.selectorItems[0].match(e))return null;for(let f=0,v=t.length;f<v;f++)if((!r.selectorItems?.[0]||r.selectorItems[0].match(t[f]))&&i++,t[f]===e)return i!==-1&&r.nthFunction(i+1)?{priorityWeight:10}:null;return null;case"nth-of-type":let n=-1;for(let f=0,v=t.length;f<v;f++)if(t[f][tt]===e[tt]&&n++,t[f]===e)return n!==-1&&r.nthFunction(n+1)?{priorityWeight:10}:null;return null;case"nth-last-child":let a=-1;if(r.selectorItems?.[0]&&!r.selectorItems[0].match(e))return null;for(let f=t.length-1;f>=0;f--)if((!r.selectorItems?.[0]||r.selectorItems[0].match(t[f]))&&a++,t[f]===e)return a!==-1&&r.nthFunction(a+1)?{priorityWeight:10}:null;return null;case"nth-last-of-type":let m=-1;for(let f=t.length-1;f>=0;f--)if(t[f][tt]===e[tt]&&m++,t[f]===e)return m!==-1&&r.nthFunction(m+1)?{priorityWeight:10}:null;return null;case"target":let p=e[T].location.hash;return p&&e.isConnected&&e.id===p.slice(1)?{priorityWeight:10}:null;case"is":let b=0;if(!r.selectorItems)return null;for(let f of r.selectorItems){let v=f.match(e);v&&b<v.priorityWeight&&(b=v.priorityWeight)}return b?{priorityWeight:b}:null;case"where":if(!r.selectorItems)return null;for(let f of r.selectorItems)if(f.match(e))return{priorityWeight:0};return null;case"has":let d=0;if(r.arguments&&r.selectorItems)if(r.arguments[0]==="+"){let f=e.nextElementSibling;if(!f)return null;for(let v of r.selectorItems){let L=v.match(f);L&&d<L.priorityWeight&&(d=L.priorityWeight)}}else if(r.arguments[0]===">")for(let f of r.selectorItems)for(let v of e[gt]){let L=f.match(v);if(L&&d<L.priorityWeight){d=L.priorityWeight;break}}else for(let f of r.selectorItems){let v=this.matchChildOfElement(f,e);v&&d<v.priorityWeight&&(d=v.priorityWeight)}return d?{priorityWeight:d}:null;case"focus":case"focus-visible":return e[T].activeElement===e?{priorityWeight:10}:null;case"scope":return this.scope&&this.scope===e?{priorityWeight:10}:null;default:return null}}matchAttributes(e){if(!this.attributes)return null;let t=0;for(let r of this.attributes){let o=e[St].getNamedItem(r.name);if(!o||(t+=10,r.value!==null&&(o[J]===null||r.regExp&&!r.regExp.test(o[J])||!r.regExp&&r.value!==o[J])))return null}return{priorityWeight:t}}matchClass(e){if(!this.classNames)return null;let t=0;for(let r of this.classNames){if(!e.classList.contains(r))return null;t+=10}return{priorityWeight:t}}matchChildOfElement(e,t){for(let r of t[gt]){let o=e.match(r);if(o)return o;let i=this.matchChildOfElement(e,r);if(i)return i}return null}getSelectorString(){return`${this.tagName?this.tagName.toLowerCase():""}${this.id?`#${this.id}`:""}${this.classNames?`.${this.classNames.join(".")}`:""}${this.attributes?this.attributes.map(e=>`[${e.name}${e.value?`${e.operator||""}="${e.value}"`:""}]`).join(""):""}${this.pseudos?this.pseudos.map(e=>`:${e.name}${e.arguments?`(${e.arguments})`:""}`).join(""):""}`}};var k_=/(\*)|([a-zA-Z0-9-]+)|#((?:[a-zA-Z0-9-_«»]|\\.)+)|\.((?:[a-zA-Z0-9-_«»]|\\.)+)|\[([a-zA-Z0-9-_\\:]+)\]|\[([a-zA-Z0-9-_\\:]+)\s*([~|^$*]{0,1})\s*=\s*["']{1}([^"']*)["']{1}\s*(s|i){0,1}\]|\[([a-zA-Z0-9-_]+)\s*([~|^$*]{0,1})\s*=\s*([^\]]*)\]|:([a-zA-Z-]+)\s*\(((?:[^()]|\[[^\]]*\]|\([^()]*\))*)\){0,1}|:([a-zA-Z-]+)|::([a-zA-Z-]+)|([\s,+>~]*)/gm,rS=/\\/g,M_=/[.*+?^${}()|[\]\\]/g,fx={odd:l=>(l+1)%2===0,even:l=>(l+1)%2!==0,alwaysFalse:()=>!1},R_=/ /g,O_=/(^[a-zA-Z0-9-]+$)|(^\.[a-zA-Z0-9-_.]+$)|(^#[a-zA-Z0-9-_]+$)/,vl=class{static getSelectorItem(e,t){return this.getSelectorGroups(e,t)[0][0]}static getSelectorGroups(e,t){e=e.trim();let r=t?.ignoreErrors,o=t?.scope;if(e==="*")return[[new hi({scope:o,tagName:"*",ignoreErrors:r})]];let i=e.match(O_);if(i){if(i[1])return[[new hi({scope:o,tagName:e.toUpperCase(),ignoreErrors:r})]];if(i[2])return[[new hi({scope:o,classNames:e.replace(".","").split("."),ignoreErrors:r})]];if(i[3])return[[new hi({scope:o,id:e.replace("#",""),ignoreErrors:r})]]}let n=new RegExp(k_),a=new hi({scope:o,combinator:ze.descendant,ignoreErrors:r}),m=[a],p=[m],b=!1,d;for(;(d=n.exec(e))&&d[0];)if(b=!0,d[1])a.tagName="*";else if(d[2])a.tagName=d[2].toUpperCase();else if(d[3])a.id=d[3].replace(rS,"");else if(d[4])a.classNames=a.classNames||[],a.classNames.push(d[4].replace(rS,""));else if(d[5])a.attributes=a.attributes||[],a.attributes.push({name:d[5].toLowerCase(),operator:null,value:null,modifier:null,regExp:null});else if(d[6]&&d[8]!==void 0)a.attributes=a.attributes||[],a.attributes.push({name:d[6].toLowerCase(),operator:d[7]||null,value:d[8].replace(rS,""),modifier:d[9]||null,regExp:this.getAttributeRegExp({operator:d[7],value:d[8],modifier:d[9]})});else if(d[10]&&d[12]!==void 0)a.attributes=a.attributes||[],a.attributes.push({name:d[10].toLowerCase(),operator:d[11]||null,value:d[12].replace(rS,""),modifier:null,regExp:this.getAttributeRegExp({operator:d[11],value:d[12]})});else if(d[13]&&d[14])a.pseudos=a.pseudos||[],a.pseudos.push(this.getPseudo(d[13],d[14],t));else if(d[15])a.pseudos=a.pseudos||[],a.pseudos.push(this.getPseudo(d[15],null,t));else if(d[16])a.isPseudoElement=!0;else if(d[17])switch(d[17].trim()){case",":a=new hi({scope:o,combinator:ze.descendant,ignoreErrors:r}),m=[a],p.push(m);break;case">":a=new hi({scope:o,combinator:ze.child,ignoreErrors:r}),m.push(a);break;case"+":a=new hi({scope:o,combinator:ze.adjacentSibling,ignoreErrors:r}),m.push(a);break;case"~":a=new hi({scope:o,combinator:ze.subsequentSibling,ignoreErrors:r}),m.push(a);break;case"":a=new hi({scope:o,combinator:ze.descendant,ignoreErrors:r}),m.push(a);break}if(!b){if(t?.ignoreErrors)return[];throw new Ht(`Invalid selector: "${e}"`)}return p}static getAttributeRegExp(e){let t=e.modifier==="i"?"i":"";if(!e.operator||!e.value)return null;let r=e.value.replace(M_,"\\$&");switch(e.operator){case"~":return new RegExp(`[- ]${r}|${r}[- ]|^${r}$`,t);case"|":return new RegExp(`^${r}[- ]|^${r}$`,t);case"^":return new RegExp(`^${r}`,t);case"$":return new RegExp(`${r}$`,t);case"*":return new RegExp(`${r}`,t);default:return null}}static getPseudo(e,t,r){let o=e.toLowerCase();if(t&&(t=t.trim()),!t)return{name:o,arguments:null,selectorItems:null,nthFunction:null};switch(o){case"nth-last-child":case"nth-child":let i=t.indexOf(" of "),n=i!==-1?t.substring(0,i):t,a=i!==-1?this.getSelectorItem(t.substring(i+4).trim(),r):null;return{name:o,arguments:t,selectorItems:a?[a]:null,nthFunction:this.getPseudoNthFunction(n)};case"nth-of-type":case"nth-last-of-type":return{name:o,arguments:t,selectorItems:null,nthFunction:this.getPseudoNthFunction(t)};case"not":let m=[];for(let d of this.getSelectorGroups(t,r))m.push(d[0]);return{name:o,arguments:t,selectorItems:m,nthFunction:null};case"is":case"where":let p=[];for(let d of this.getSelectorGroups(t,r))p.push(d[0]);return{name:o,arguments:t,selectorItems:p,nthFunction:null};case"has":let b=[];if(!t.includes(":has(")){let d=t;t[0]==="+"?d=t.replace("+",""):t[0]===">"&&(d=t.replace(">",""));for(let f of this.getSelectorGroups(d,r))b.push(f[0])}return{name:o,arguments:t||"",selectorItems:b,nthFunction:null};default:return{name:o,arguments:t,selectorItems:null,nthFunction:null}}}static getPseudoNthFunction(e){if(!e)return null;if(e==="odd")return fx.odd;if(e==="even")return fx.even;let t=e.replace(R_,"").split("n"),r=parseInt(t[0],10)||0;if(t[0]=="-"&&(r=-1),t.length===1)return i=>i==r;let o=parseInt(t[1],10)||0;return t[0]=="+"&&(o=1),r>=1||r<=-1?r>=1?Math.abs(r)===1?i=>i>o-1:i=>i>o-1&&(i+-1*o)%r===0:Math.abs(r)===1?i=>i<o+1:i=>i<o+1&&(i+-1*o)%r===0:t[0]?i=>i===o:i=>i>o-1}};var TP=/^[.#\[]?\d|[.#]$/,yt=class{static querySelectorAll(e,t){let r=e[y];if(t==="")throw new r.DOMException(`Failed to execute 'querySelectorAll' on '${e.constructor.name}': The provided selector is empty.`);if(typeof t=="function")throw new r.DOMException(`Failed to execute 'querySelectorAll' on '${e.constructor.name}': '${t}' is not a valid selector.`);if(typeof t=="symbol")throw new r.TypeError(`Failed to execute 'querySelectorAll' on '${e.constructor.name}': Cannot convert a Symbol value to a string`);if(t=String(t),TP.test(t))throw new r.DOMException(`Failed to execute 'querySelectorAll' on '${e.constructor.name}': '${t}' is not a valid selector.`);let i=e[$].querySelectorAll.get(t);if(i?.result){let L=i.result.deref();if(L)return L}let n=e[U]===M.documentNode?e.documentElement:e,a=vl.getSelectorGroups(t,{scope:n}),m=[],p=new Li(h,m),b=new Map,d=[],f={result:new WeakRef(p)};e[$].querySelectorAll.set(t,f),e[st]&&(e[T]||e)[rr].push(f);for(let L of a){let C=e[U]===M.elementNode?this.findAll(e,[e],L,f):this.findAll(null,e[gt],L,f);for(let X of C)b.has(X.documentPosition)||(b.set(X.documentPosition,X.element),d.push(X.documentPosition))}let v=d.sort();for(let L=0,C=v.length;L<C;L++)m.push(b.get(v[L]));return p}static querySelector(e,t){let r=e[y];if(t==="")throw new r.DOMException(`Failed to execute 'querySelector' on '${e.constructor.name}': The provided selector is empty.`);if(typeof t=="function")throw new r.DOMException(`Failed to execute 'querySelector' on '${e.constructor.name}': '${t}' is not a valid selector.`);if(typeof t=="symbol")throw new r.TypeError(`Failed to execute 'querySelector' on '${e.constructor.name}': Cannot convert a Symbol value to a string`);if(t=String(t),TP.test(t))throw new r.DOMException(`Failed to execute 'querySelector' on '${e.constructor.name}': '${t}' is not a valid selector.`);let o=e[$].querySelector.get(t);if(o){if(o.result===!1)return null;if(o.result){let b=o.result.deref();if(b)return b}}let i={result:{deref:()=>null}};e[$].querySelector.set(t,i),e[st]&&(e[T]||e)[rr].push(i);let n=null,a=new Map,m=e[U]===M.documentNode?e.documentElement:e;for(let b of vl.getSelectorGroups(t,{scope:m})){let d=e[U]===M.elementNode?this.findFirst(e,[e],b,i):this.findFirst(null,e[gt],b,i);d&&!a.has(d.documentPosition)&&(a.set(d.documentPosition,!0),(!n||d.documentPosition<n.documentPosition)&&(n=d))}let p=n?.element||null;return i.result=p?new WeakRef(p):!1,p}static matches(e,t,r){let o=r?.ignoreErrors,i=e[y];if(t==="*")return{priorityWeight:1};if(t===""){if(o)return null;throw new i.DOMException(`Failed to execute 'matches' on '${e.constructor.name}': The provided selector is empty.`)}if(typeof t=="function"){if(o)return null;throw new i.DOMException(`Failed to execute 'matches' on '${e.constructor.name}': '${t}' is not a valid selector.`)}if(typeof t=="symbol"){if(o)return null;throw new i.TypeError("Cannot convert a Symbol value to a string")}if(t=String(t),TP.test(t)){if(o)return null;throw new i.DOMException(`Failed to execute 'matches' on '${e.constructor.name}': '${t}' is not a valid selector.`)}let n=e[$].matches.get(t);if(n?.result)return n.result.match;let a={result:{match:null}};e[$].matches.set(t,a),e[st]&&(e[T]||e)[rr].push(a);let m=r?.scope||e,p=m[U]===M.documentNode?m.documentElement:m;for(let b of vl.getSelectorGroups(t,{...r,scope:p})){let d=this.matchSelector(e,b.reverse(),a);if(d)return a.result.match=d,d}return null}static matchSelector(e,t,r,o=null,i=0){let n=t[0],a=n.match(e);if(a){if(t.length===1)return{priorityWeight:i+a.priorityWeight};switch(n.combinator){case ze.adjacentSibling:let m=e.previousElementSibling;if(m){m[rr].push(r);let d=this.matchSelector(m,t.slice(1),r,n,i+a.priorityWeight);if(d)return d}break;case ze.child:case ze.descendant:let p=e.parentElement;if(p){p[rr].push(r);let d=this.matchSelector(p,t.slice(1),r,n,i+a.priorityWeight);if(d)return d}break;case ze.subsequentSibling:let b=e.parentElement;if(b){let d=b[gt],f=d.indexOf(e);b[rr].push(r);for(let v=f-1;v>=0;v--){let L=d[v];L[rr].push(r);let C=this.matchSelector(L,t.slice(1),r,n,i+a.priorityWeight);if(C)return C}}break}}if(o?.combinator===ze.descendant){let m=e.parentElement;if(m)return this.matchSelector(m,t,r,o,i)}return null}static findAll(e,t,r,o,i){let n=r[0],a=r[1],m=[];for(let p=0,b=t.length;p<b;p++){let d=t[p],f=d[gt],v=(i?i+">":"")+String.fromCharCode(p);if(d[rr].push(o),n.match(d))if(!a)e!==d&&m.push({documentPosition:v,element:d});else switch(a.combinator){case ze.adjacentSibling:let L=d.nextElementSibling;L&&(m=m.concat(this.findAll(e,[L],r.slice(1),o,v)));break;case ze.descendant:case ze.child:m=m.concat(this.findAll(e,f,r.slice(1),o,v));break;case ze.subsequentSibling:let C=t.indexOf(d);for(let X=C+1;X<t.length;X++){let lt=t[X];m=m.concat(this.findAll(e,[lt],r.slice(1),o,v))}break}n.combinator===ze.descendant&&f.length&&(m=m.concat(this.findAll(e,f,r,o,v)))}return m}static findFirst(e,t,r,o,i){let n=r[0],a=r[1];for(let m=0,p=t.length;m<p;m++){let b=t[m],d=b[gt],f=(i?i+">":"")+String.fromCharCode(m);if(b[rr].push(o),n.match(b)){if(a)switch(a.combinator){case ze.adjacentSibling:let v=b.nextElementSibling;if(v){let X=this.findFirst(e,[v],r.slice(1),o,f);if(X)return X}break;case ze.descendant:case ze.child:let L=this.findFirst(e,d,r.slice(1),o,f);if(L)return L;break;case ze.subsequentSibling:let C=t.indexOf(b);for(let X=C+1;X<t.length;X++){let lt=t[X],Q=this.findFirst(e,[lt],r.slice(1),o,f);if(Q)return Q}break}else if(e!==b)return{documentPosition:f,element:b}}if(n.combinator===ze.descendant&&d.length){let v=this.findFirst(e,d,r,o,f);if(v)return v}}return null}};var Da=class{static toPixels(e){let t=parseFloat(e.value),r=e.value.replace(t.toString(),"");if(isNaN(t))return null;switch(r){case"px":return t;case"rem":return this.round(t*parseFloat(e.rootFontSize));case"em":return this.round(t*parseFloat(e.parentFontSize));case"vw":return this.round(t*e.window.innerWidth/100);case"vh":return this.round(t*e.window.innerHeight/100);case"%":return e.parentSize!==void 0&&e.parentSize!==null?this.round(t*parseFloat(e.parentSize)/100):null;case"vmin":return this.round(t*Math.min(e.window.innerWidth,e.window.innerHeight)/100);case"vmax":return t*Math.max(e.window.innerWidth,e.window.innerHeight)/100;case"cm":return this.round(t*37.7812);case"mm":return this.round(t*3.7781);case"in":return this.round(t*96);case"pt":return this.round(t*1.3281);case"pc":return this.round(t*16);case"Q":return this.round(t*.945);default:return null}}static round(e){return Math.round(e*1e4)/1e4}};var NP;(function(l){l[l.none=0]="none",l[l.capturing=1]="capturing",l[l.atTarget=2]="atTarget",l[l.bubbling=3]="bubbling"})(NP||(NP={}));var be=NP;var Sx,Px,ku;Px=Cc,Sx=Xf;var ot=class{constructor(e){x(this,ku);w(this,ku,e)}getSettings(){return this.getBrowserFrame()?.page.context.browser.settings||null}getBrowser(){return this.getBrowserFrame()?.page.context.browser||null}getBrowserPage(){return this.getBrowserFrame()?.page||null}getBrowserContext(){return this.getBrowserFrame()?.page.context||null}getBrowserFrame(){return u(this,ku)&&this.constructor[Cc].get(u(this,ku)[ba])||null}getAsyncTaskManager(){return this.getBrowserFrame()?.[bt]||null}static setWindowBrowserFrameRelation(e,t){let r=this[Cc];e[ba]===-1&&(e[ba]=this[Xf],this[Xf]++),r.set(e[ba],t)}static removeWindowBrowserFrameRelation(e){this[Cc].delete(e[ba])}};ku=new WeakMap,s(ot,Px,new Map),s(ot,Sx,0);var wx,xx,Mu,Ex,vx,_t=class{constructor(){x(this,Mu);s(this,xx,{capturing:new Map,bubbling:new Map});s(this,wx,{capturing:new Map,bubbling:new Map})}get[(xx=ge,wx=ll,Symbol.toStringTag)](){return"EventTarget"}addEventListener(e,t,r){r=typeof r=="boolean"?{capture:r}:r||{};let o=r.capture?"capturing":"bubbling",i=this[ge][o].get(e),n;i?n=this[ll][o].get(e):(i=[],n=[],this[ge][o].set(e,i),this[ll][o].set(e,n)),!i.includes(t)&&(i.push(t),n.push(r),r.signal&&!r.signal.aborted&&r.signal.addEventListener("abort",()=>{this.removeEventListener(e,t)}))}removeEventListener(e,t){let r=this[ge].bubbling.get(e);if(r){let i=r.indexOf(t);if(i!==-1){r.splice(i,1),this[ll].bubbling.get(e).splice(i,1);return}}let o=this[ge].capturing.get(e);if(o){let i=o.indexOf(t);i!==-1&&(o.splice(i,1),this[ll].capturing.get(e).splice(i,1))}}dispatchEvent(e){return!e[Va]&&(e[Xt]!=="load"||!e[Zr])?(e[Va]=!0,e[Zr]=this[Gt]||this,F(this,Mu,Ex).call(this,e),e[Va]=!1,!(e[ln]&&e[Gr])):(F(this,Mu,vx).call(this,e),!(e[ln]&&e[Gr]))}attachEvent(e,t){this.addEventListener(e.replace("on",""),t)}detachEvent(e,t){this.removeEventListener(e.replace("on",""),t)}[ye](){this[ge].capturing.clear(),this[ge].bubbling.clear(),this[ll].capturing.clear(),this[ll].bubbling.clear()}};Mu=new WeakSet,Ex=function(e){let t=e.composedPath();e[to]=be.capturing;for(let r=t.length-1;r>=0;r--)if(e[vi]=t[r],t[r].dispatchEvent(e),e[Pa]||e[ga]){e[to]=be.none,e[vi]=null;return}if(e[to]=be.atTarget,e[vi]=this[Gt]||this,e[Zr].dispatchEvent(e),e[to]=be.bubbling,e[dl]&&!e[Pa]&&!e[ga]){for(let r=1,o=t.length;r<o;r++)if(e[vi]=t[r],t[r].dispatchEvent(e),e[Pa]||e[ga]){e[to]=be.none,e[vi]=null;return}}e[to]=be.none,e[vi]=null},vx=function(e){let t=this[y],r=t?new ot(t).getSettings():null,o=e.eventPhase===be.capturing?"capturing":"bubbling",i=this[ge][o].get(e.type)?.slice();if(i&&i.length){let n=this[ll][o].get(e.type).slice();for(let a=0,m=i.length;a<m;a++){let p=i[a],b=n[a];if(b?.passive&&(e[bu]=!0),t&&(this!==t||e.type!=="error")&&!r?.disableErrorCapturing&&r?.errorCapture===me.tryAndCatch)if(p.handleEvent){let d;try{d=p.handleEvent.call(p,e)}catch(f){t[he](f)}d instanceof Promise&&d.catch(f=>t[he](f))}else{let d;try{d=p.call(this,e)}catch(f){t[he](f)}d instanceof Promise&&d.catch(f=>t[he](f))}else p.handleEvent?p.handleEvent.call(p,e):p.call(this,e);if(e[bu]=!1,b?.once&&(i.splice(a,1),n.splice(a,1),this.removeEventListener(e.type,p),a--,m--),e[ga])return}}if(e.eventPhase!==be.capturing){let n="on"+e.type.toLowerCase(),a=this[n];if(typeof a=="function")if(t&&(this!==t||e.type!=="error")&&!r?.disableErrorCapturing&&r?.errorCapture===me.tryAndCatch){let m;try{m=a(e)}catch(p){t[he](p)}m instanceof Promise&&m.catch(p=>t[he](p))}else a(e)}};var Ax,Tx,Nx,Lx,Cx,kx,Mx,Rx,Ox,Vx,Ix,Fx,Dx;Dx=Tc,Fx=dl,Ix=ln,Vx=Gr,Ox=to,Rx=cP,Mx=Xt,kx=Va,Cx=ga,Lx=Pa,Nx=Zr,Tx=vi,Ax=bu;var Cn=class Cn{constructor(e,t=null){s(this,"NONE",Cn.NONE);s(this,"CAPTURING_PHASE",Cn.CAPTURING_PHASE);s(this,"AT_TARGET",Cn.AT_TARGET);s(this,"BUBBLING_PHASE",Cn.BUBBLING_PHASE);s(this,Dx,!1);s(this,Fx,!1);s(this,Ix,!1);s(this,Vx,!1);s(this,Ox,be.none);s(this,Rx,performance.now());s(this,Mx);s(this,kx,!1);s(this,Cx,!1);s(this,Lx,!1);s(this,Nx,null);s(this,Tx,null);s(this,Ax,!1);this[Xt]=e,this[dl]=t?.bubbles??!1,this[ln]=t?.cancelable??!1,this[Tc]=t?.composed??!1}get composed(){return this[Tc]}get bubbles(){return this[dl]}get cancelable(){return this[ln]}get defaultPrevented(){return this[Gr]}get eventPhase(){return this[to]}get timeStamp(){return this[cP]}get type(){return this[Xt]}get target(){return this[Zr]}get currentTarget(){return this[vi]}get cancelBubble(){return this[Pa]}composedPath(){if(!this[Zr])return[];let e=[],t=this[Zr];for(;t;)if(e.push(t),t.parentNode)t=t.parentNode;else if(this[Tc]&&t[U]===M.documentFragmentNode&&t.host)t=t.host;else if(t[U]===M.documentNode&&this[Xt]!=="load")t=t[y];else break;return e}initEvent(e,t=!1,r=!1){this[Xt]=e,this[dl]=t,this[ln]=r}preventDefault(){!this[bu]&&this.cancelable&&(this[Gr]=!0)}stopImmediatePropagation(){this[ga]=!0}stopPropagation(){this[Pa]=!0}};s(Cn,"NONE",be.none),s(Cn,"CAPTURING_PHASE",be.capturing),s(Cn,"AT_TARGET",be.atTarget),s(Cn,"BUBBLING_PHASE",be.bubbling);var R=Cn;var _a=class extends R{constructor(t,r=null){super(t,r);s(this,"matches");s(this,"media");this.matches=r?.matches??!1,this.media=r?.media??""}};var LP;(function(l){l.all="all",l.print="print",l.screen="screen"})(LP||(LP={}));var oS=LP;var dm=class{constructor(e){s(this,"mediaTypes");s(this,"not");s(this,"rules");s(this,"ranges");s(this,"rootFontSize",null);s(this,"window");this.window=e.window,this.rootFontSize=e.rootFontSize||null,this.mediaTypes=e.mediaTypes||[],this.not=e.not||!1,this.rules=e.rules||[],this.ranges=e.ranges||[]}toString(){return`${this.not?"not ":""}${this.mediaTypes.join(", ")}${(this.not||this.mediaTypes.length>0)&&this.ranges.length?" and ":""}${this.ranges.map(e=>`(${e.before?`${e.before.value} ${e.before.operator} `:""}${e.type}${e.after?` ${e.after.operator} ${e.after.value}`:""})`).join(" and ")}${(this.not||this.mediaTypes.length>0)&&this.rules.length?" and ":""}${this.rules.map(e=>e.value?`(${e.name}: ${e.value})`:`(${e.name})`).join(" and ")}`}matches(){return this.not?!this.matchesAll():this.matchesAll()}matchesAll(){if(this.mediaTypes.length){let e=!1;for(let t of this.mediaTypes)if(this.matchesMediaType(t)){e=!0;break}if(!e)return!1}for(let e of this.rules)if(!this.matchesRule(e))return!1;for(let e of this.ranges)if(!this.matchesRange(e))return!1;return!0}matchesMediaType(e){return e===oS.all?!0:e===new ot(this.window).getSettings()?.device.mediaType}matchesRange(e){let t=e.type==="width"?this.window.innerWidth:this.window.innerHeight;if(e.before){let r=this.toPixels(e.before.value);if(r===null)return!1;switch(e.before.operator){case"<":if(r>=t)return!1;break;case"<=":if(r>t)return!1;break;case">":if(r<=t)return!1;break;case">=":if(r<t)return!1;break}}if(e.after){let r=this.toPixels(e.after.value);if(r===null)return!1;switch(e.after.operator){case"<":if(t>=r)return!1;break;case"<=":if(t>r)return!1;break;case">":if(t<=r)return!1;break;case">=":if(t<r)return!1;break}}return!0}matchesRule(e){let t=new ot(this.window).getSettings();if(!t)return!1;if(!e.value){switch(e.name){case"min-width":case"max-width":case"min-height":case"max-height":case"width":case"height":case"orientation":case"prefers-color-scheme":case"hover":case"any-hover":case"any-pointer":case"pointer":case"display-mode":case"min-aspect-ratio":case"max-aspect-ratio":case"aspect-ratio":return!0;case"prefers-reduced-motion":return t.device.prefersReducedMotion==="reduce";case"forced-colors":return t.device.forcedColors==="active"}return!1}switch(e.name){case"min-width":let r=this.toPixels(e.value);return r!==null&&this.window.innerWidth>=r;case"max-width":let o=this.toPixels(e.value);return o!==null&&this.window.innerWidth<=o;case"min-height":let i=this.toPixels(e.value);return i!==null&&this.window.innerHeight>=i;case"max-height":let n=this.toPixels(e.value);return n!==null&&this.window.innerHeight<=n;case"width":let a=this.toPixels(e.value);return a!==null&&this.window.innerWidth===a;case"height":let m=this.toPixels(e.value);return m!==null&&this.window.innerHeight===m;case"orientation":return e.value==="landscape"?this.window.innerWidth>this.window.innerHeight:this.window.innerWidth<this.window.innerHeight;case"prefers-color-scheme":return e.value===t.device.prefersColorScheme;case"prefers-reduced-motion":return e.value===t.device.prefersReducedMotion;case"forced-colors":return(e.value==="none"||e.value==="active")&&e.value===t.device.forcedColors;case"any-hover":case"hover":return e.value==="none"?this.window.navigator.maxTouchPoints>0:e.value==="hover"?this.window.navigator.maxTouchPoints===0:!1;case"any-pointer":case"pointer":return e.value==="none"?!1:e.value==="coarse"?this.window.navigator.maxTouchPoints>0:e.value==="fine"?this.window.navigator.maxTouchPoints===0:!1;case"display-mode":return e.value==="browser";case"min-aspect-ratio":case"max-aspect-ratio":case"aspect-ratio":let p=e.value.split("/"),b=parseInt(p[0],10),d=parseInt(p[1],10);if(isNaN(b)||isNaN(d))return!1;switch(e.name){case"min-aspect-ratio":return b/d<=this.window.innerWidth/this.window.innerHeight;case"max-aspect-ratio":return b/d>=this.window.innerWidth/this.window.innerHeight;case"aspect-ratio":return b/d===this.window.innerWidth/this.window.innerHeight}}return!1}toPixels(e){return!new ot(this.window).getSettings()?.disableComputedStyleRendering&&e.endsWith("em")?(this.rootFontSize=this.rootFontSize||parseFloat(this.window.getComputedStyle(this.window.document.documentElement).fontSize),Da.toPixels({window:this.window,value:e,rootFontSize:this.rootFontSize,parentFontSize:this.rootFontSize})):Da.toPixels({window:this.window,value:e,rootFontSize:16,parentFontSize:16})}};var V_=/(not|only|all|screen|print)|\(([^\)]+)(\)){0,1}|(,)| +(or|and) +/g,I_=/[<>]/,F_=/(?:([0-9]+[a-z]+) *(<|<=|>|>=)){0,1} *(width|height) *(?:(<|<=|>|>=) *([0-9]+[a-z]+)){0,1}/,Ru=class{static parse(e){let t=new dm({window:e.window,rootFontSize:e.rootFontSize}),r=[t],o=new RegExp(V_),i=null;for(;i=o.exec(e.mediaQuery.toLowerCase());)if(i[4]===","||i[5]==="or")t=new dm({window:e.window,rootFontSize:e.rootFontSize}),r.push(t);else if(i[1]==="all"||i[1]==="screen"||i[1]==="print")t.mediaTypes.push(i[1]);else if(i[1]==="not")t.not=!0;else if(i[2]){let n=I_.test(i[2])?i[2].match(F_):null;if(n&&(n[1]||n[5]))t.ranges.push({before:n[1]?{value:n[1],operator:n[2]}:null,type:n[3],after:n[5]?{value:n[5],operator:n[4]}:null});else{let[a,m]=i[2].split(":"),p=m?m.trim():null;if(!p&&!i[3])return[new dm({window:e.window,rootFontSize:e.rootFontSize,not:!0,mediaTypes:[oS.all]})];t.rules.push({name:a.trim(),value:p})}}return r}};var Ba,Al,Ou,Vu,bm=class extends _t{constructor(t){super();s(this,"onchange",null);x(this,Ba);x(this,Al,null);x(this,Ou);x(this,Vu,null);w(this,Ba,t.window),w(this,Ou,t.media),w(this,Vu,t.rootFontSize||null)}get media(){return w(this,Al,u(this,Al)||Ru.parse({window:u(this,Ba),mediaQuery:u(this,Ou),rootFontSize:u(this,Vu)})),u(this,Al).map(t=>t.toString()).join(", ")}get matches(){w(this,Al,u(this,Al)||Ru.parse({window:u(this,Ba),mediaQuery:u(this,Ou),rootFontSize:u(this,Vu)}));for(let t of u(this,Al))if(!t.matches())return!1;return!0}addListener(t){this.addEventListener("change",t)}removeListener(t){this.removeEventListener("change",t)}addEventListener(t,r){if(super.addEventListener(t,r),t==="change"){let o=!1,i=()=>{let n=this.matches;n!==o&&(o=n,this.dispatchEvent(new _a("change",{matches:n,media:this.media})))};r[Cf]=i,u(this,Ba).addEventListener("resize",i)}}removeEventListener(t,r){super.removeEventListener(t,r),t==="change"&&r[Cf]&&u(this,Ba).removeEventListener("resize",r[Cf])}};Ba=new WeakMap,Al=new WeakMap,Ou=new WeakMap,Vu=new WeakMap;var _x,Bx,Ji=class extends(Bx=Me,_x=or,Bx){constructor(){super(...arguments);s(this,_x,[])}get cssRules(){return this[or]}insertRule(t,r){if(arguments.length===0)throw new this[y].TypeError(`Failed to execute 'insertRule' on '${this.constructor.name}': 1 argument required, but only 0 present.`);let o=this[pm].parseFromString(t);if(o.length===0||o.length>1)throw new this[y].DOMException(`Failed to execute 'insertRule' on '${this.constructor.name}': Failed to parse the rule '${t}'.`,A.syntaxError);if(r!==void 0){if(r=Number(r),isNaN(r)||r>this.cssRules.length)throw new this[y].DOMException(`Failed to execute 'insertRule' on '${this.constructor.name}': The index provided (${r}) is larger than the maximum index (${this.cssRules.length}).`,A.indexSizeError);return this.cssRules.splice(r,0,o[0]),r}let i=this.cssRules.length;return this.cssRules.unshift(o[0]),i}deleteRule(t){if(arguments.length===0)throw new this[y].TypeError(`Failed to execute 'deleteRule' on '${this.constructor.name}': 1 argument required, but only 0 present.`);if(t=Number(t),isNaN(t)||t<0||t>=this.cssRules.length)throw new this[y].DOMException(`Failed to execute 'deleteRule' on '${this.constructor.name}': the index (${t}) is greater than the length of the rule list.`,A.indexSizeError);this.cssRules.splice(t,1)}};var Ux,Gx,Hx,$x,kn=class extends($x=Ji,Hx=G,Gx=j,Ux=mo,$x){constructor(){super(...arguments);s(this,Hx,"");s(this,Gx,"");s(this,Ux,"")}get type(){return pt.containerRule}get cssText(){let t="";for(let r of this[or])t+=`
11
+ `+r.cssText;return t+=`
12
+ `,`@${this[mo]}scope${this[G]?` (${this[G]})`:""}${this[j]?` to (${this[j]})`:""} {${t}}`}get start(){return this[G]}get end(){return this[j]}};var D_=/[0-9.]+(px|rem|em|vw|vh|%|vmin|vmax|cm|mm|in|pt|pc|Q)/g,qx=/:host\s*\(([^)]+)\)|:host-context\s*\(([^)]+)\)/,__=/var\( *(--[^), ]+)\)/,B_=/var\( *(--[^), ]+), *([^), ]+)\)/,Kd=class{constructor(e){s(this,"element");this.element=e}getComputedStyle(){let e=[],t=[],r={element:this.element,cssTexts:[]},o=[],i=[];if(!this.element[st])return new vs;let n=this.element[$].computedStyle;if(n?.result){let v=n.result.deref();if(v)return v}for(;r.element;)if(r.element[U]===M.elementNode&&(r.element.getRootNode()[U]===M.documentNode?e.unshift(r):o.unshift(r),r.element.shadowRoot&&i.push(r),t.unshift(r)),r.element===this.element[T]){let v=this.getStyleSheets(this.element[T]);for(let L of v)this.parseCSSRules({elements:e,cssRules:L.cssRules});for(let L of i){let C=this.getStyleSheets(L.element.shadowRoot);for(let X of C)this.parseCSSRules({elements:[],cssRules:X.cssRules,hostElement:L})}r={element:null,cssTexts:[]}}else if(r.element[U]===M.documentFragmentNode&&r.element.host){let v=r.element,L=this.getStyleSheets(v);r={element:v.host,cssTexts:[]};for(let C of L)this.parseCSSRules({elements:o,cssRules:C.cssRules,hostElement:r});for(let C of i){let X=this.getStyleSheets(C.element.shadowRoot);for(let lt of X)this.parseCSSRules({elements:[],cssRules:lt.cssRules,hostElement:C})}i=[],o=[]}else r={element:r.element[W],cssTexts:[]};let a=t[t.length-1],m=new vs,p={},b=16,d=16;for(let v of t){v.cssTexts.sort((ct,qt)=>ct.priorityWeight-qt.priorityWeight);let L=hx[v.element[tt]],C="";if(L)if(typeof L=="string")C+=L;else for(let ct of Object.keys(L))(ct==="default"||v.element[ct])&&(C+=L[ct]);for(let ct of v.cssTexts)C+=ct.cssText;let X=v.element.getAttribute("style");X&&(C+=X);let lt=cm.parse(C),Q=lt.rules;Object.assign(p,lt.properties);for(let{name:ct,value:qt,important:Nt}of Q)if(cx[ct]||v===a){let te=this.parseCSSVariablesInValue(qt.trim(),p);if(te&&(!m.get(ct)?.important||Nt)&&(m.set(ct,te,Nt),ct==="font"||ct==="font-size")){let Lt=m.properties["font-size"];if(Lt!==null){let er=this.parseMeasurementsInValue({value:Lt.value,rootFontSize:b,parentFontSize:d,parentSize:d});v.element[tt]==="HTML"?b=er:v!==a&&(d=er)}}}}for(let v of dx){let L=m.properties[v];L&&(L.value=this.parseMeasurementsInValue({value:L.value,rootFontSize:b,parentFontSize:d,parentSize:v==="font-size"?d:null}))}let f={result:new WeakRef(m)};return this.element[$].computedStyle=f,this.element[T][ws].push(f),m}getStyleSheets(e){if(!e)return[];let t=e.querySelectorAll('style,link[rel="stylesheet"]'),r=[];for(let o of t){let i=o.sheet;i&&r.push(i)}return e.adoptedStyleSheets&&(r=r.concat(e.adoptedStyleSheets)),r}parseCSSRules(e){if(!e.hostElement&&!e.elements.length)return;let t=this.element[y];for(let r of e.cssRules)if(r.type===pt.styleRule){let o=r.selectorText;if(o)if(o[0]===":"&&o.startsWith(":host")){if(e.hostElement){let i=!0;if(o!==":host"){let n=o.match(qx);if(n)if(yt.matches(e.hostElement.element,n[1]||n[2],{ignoreErrors:!0,scope:e.scopeElement?.element})){let m=o?.replace(qx,"").trim();if(m&&m[0]!==":"){i=!1;for(let p of e.elements){let b=yt.matches(p.element,m,{ignoreErrors:!0,scope:e.scopeElement?.element});b&&p.cssTexts.push({cssText:r[Yr],priorityWeight:10+b.priorityWeight})}}}else i=!1}i&&e.hostElement.cssTexts.push({cssText:r[Yr],priorityWeight:10})}}else for(let i of e.elements){let n=yt.matches(i.element,o,{ignoreErrors:!0,scope:e.scopeElement?.element});n&&i.cssTexts.push({cssText:r[Yr],priorityWeight:n.priorityWeight})}}else if(r.type===pt.mediaRule&&new bm({window:t,media:r.conditionText,rootFontSize:this.element[tt]==="HTML"?16:null}).matches)this.parseCSSRules({elements:e.elements,cssRules:r.cssRules,hostElement:e.hostElement,scopeElement:e.scopeElement});else if(r.type===pt.supportsRule)t.CSS.supports(r.conditionText)&&this.parseCSSRules({elements:e.elements,cssRules:r.cssRules,hostElement:e.hostElement,scopeElement:e.scopeElement});else if(r.type===pt.containerRule&&r instanceof kn){let o=[],i=null;for(let n of e.elements)if(i){if(r[j]&&yt.matches(n.element,r[j],{ignoreErrors:!0,scope:i.element}))break;o.push(n)}else yt.matches(n.element,r[G]||":root",{ignoreErrors:!0})&&(i=n,o.push(n));o.length&&this.parseCSSRules({elements:o,cssRules:r.cssRules,hostElement:e.hostElement,scopeElement:i})}}parseCSSVariablesInValue(e,t){let r=e,o;for(;(o=r.match(__))!=null;)r=r.replace(o[0],t[o[1]]||"");for(;(o=r.match(B_))!==null;)r=r.replace(o[0],t[o[1]]||o[2]);return r}parseMeasurementsInValue(e){if(new ot(this.element[y]).getSettings()?.disableComputedStyleRendering)return e.value;let t=new RegExp(D_),r=e.value,o;for(;(o=t.exec(e.value))!==null;)if(o[1]!=="px"){let i=Da.toPixels({window:this.element[y],value:o[0],rootFontSize:e.rootFontSize,parentFontSize:e.parentFontSize,parentSize:e.parentSize});i!==null&&(r=r.replace(o[0],i+"px"))}return r}};var Wx,ci,Tl,di,Mn,Ua;Wx=y;var uo=class{constructor(e,t,r){x(this,Mn);s(this,"parentRule",null);s(this,Wx);x(this,ci);x(this,Tl);x(this,di,{attributeValue:null,propertyManager:null});if(e!==h)throw new TypeError("Illegal constructor");this[y]=t,w(this,ci,r?.element||null),w(this,Tl,r?.element?!!r?.computed:!1)}get 0(){return this.item(0)||void 0}get 1(){return this.item(1)||void 0}get 2(){return this.item(2)||void 0}get 3(){return this.item(3)||void 0}get 4(){return this.item(4)||void 0}get 5(){return this.item(5)||void 0}get 6(){return this.item(6)||void 0}get 7(){return this.item(7)||void 0}get 8(){return this.item(8)||void 0}get 9(){return this.item(9)||void 0}get 10(){return this.item(10)||void 0}get 11(){return this.item(11)||void 0}get 12(){return this.item(12)||void 0}get 13(){return this.item(13)||void 0}get 14(){return this.item(14)||void 0}get 15(){return this.item(15)||void 0}get 16(){return this.item(16)||void 0}get 17(){return this.item(17)||void 0}get 18(){return this.item(18)||void 0}get 19(){return this.item(19)||void 0}get 20(){return this.item(20)||void 0}get 21(){return this.item(21)||void 0}get 22(){return this.item(22)||void 0}get 23(){return this.item(23)||void 0}get 24(){return this.item(24)||void 0}get 25(){return this.item(25)||void 0}get 26(){return this.item(26)||void 0}get 27(){return this.item(27)||void 0}get 28(){return this.item(28)||void 0}get 29(){return this.item(29)||void 0}get 30(){return this.item(30)||void 0}get 31(){return this.item(31)||void 0}get 32(){return this.item(32)||void 0}get 33(){return this.item(33)||void 0}get 34(){return this.item(34)||void 0}get 35(){return this.item(35)||void 0}get 36(){return this.item(36)||void 0}get 37(){return this.item(37)||void 0}get 38(){return this.item(38)||void 0}get 39(){return this.item(39)||void 0}get 40(){return this.item(40)||void 0}get 41(){return this.item(41)||void 0}get 42(){return this.item(42)||void 0}get 43(){return this.item(43)||void 0}get 44(){return this.item(44)||void 0}get 45(){return this.item(45)||void 0}get 46(){return this.item(46)||void 0}get 47(){return this.item(47)||void 0}get 48(){return this.item(48)||void 0}get 49(){return this.item(49)||void 0}get 50(){return this.item(50)||void 0}get 51(){return this.item(51)||void 0}get 52(){return this.item(52)||void 0}get 53(){return this.item(53)||void 0}get 54(){return this.item(54)||void 0}get 55(){return this.item(55)||void 0}get 56(){return this.item(56)||void 0}get 57(){return this.item(57)||void 0}get 58(){return this.item(58)||void 0}get 59(){return this.item(59)||void 0}get 60(){return this.item(60)||void 0}get 61(){return this.item(61)||void 0}get 62(){return this.item(62)||void 0}get 63(){return this.item(63)||void 0}get 64(){return this.item(64)||void 0}get 65(){return this.item(65)||void 0}get 66(){return this.item(66)||void 0}get 67(){return this.item(67)||void 0}get 68(){return this.item(68)||void 0}get 69(){return this.item(69)||void 0}get 70(){return this.item(70)||void 0}get 71(){return this.item(71)||void 0}get 72(){return this.item(72)||void 0}get 73(){return this.item(73)||void 0}get 74(){return this.item(74)||void 0}get 75(){return this.item(75)||void 0}get 76(){return this.item(76)||void 0}get 77(){return this.item(77)||void 0}get 78(){return this.item(78)||void 0}get 79(){return this.item(79)||void 0}get 80(){return this.item(80)||void 0}get 81(){return this.item(81)||void 0}get 82(){return this.item(82)||void 0}get 83(){return this.item(83)||void 0}get 84(){return this.item(84)||void 0}get 85(){return this.item(85)||void 0}get 86(){return this.item(86)||void 0}get 87(){return this.item(87)||void 0}get 88(){return this.item(88)||void 0}get 89(){return this.item(89)||void 0}get 90(){return this.item(90)||void 0}get 91(){return this.item(91)||void 0}get 92(){return this.item(92)||void 0}get 93(){return this.item(93)||void 0}get 94(){return this.item(94)||void 0}get 95(){return this.item(95)||void 0}get 96(){return this.item(96)||void 0}get 97(){return this.item(97)||void 0}get 98(){return this.item(98)||void 0}get 99(){return this.item(99)||void 0}get 100(){return this.item(100)||void 0}get 101(){return this.item(101)||void 0}get 102(){return this.item(102)||void 0}get 103(){return this.item(103)||void 0}get 104(){return this.item(104)||void 0}get 105(){return this.item(105)||void 0}get 106(){return this.item(106)||void 0}get 107(){return this.item(107)||void 0}get 108(){return this.item(108)||void 0}get 109(){return this.item(109)||void 0}get 110(){return this.item(110)||void 0}get 111(){return this.item(111)||void 0}get 112(){return this.item(112)||void 0}get 113(){return this.item(113)||void 0}get 114(){return this.item(114)||void 0}get 115(){return this.item(115)||void 0}get 116(){return this.item(116)||void 0}get 117(){return this.item(117)||void 0}get 118(){return this.item(118)||void 0}get 119(){return this.item(119)||void 0}get 120(){return this.item(120)||void 0}get 121(){return this.item(121)||void 0}get 122(){return this.item(122)||void 0}get 123(){return this.item(123)||void 0}get 124(){return this.item(124)||void 0}get 125(){return this.item(125)||void 0}get 126(){return this.item(126)||void 0}get 127(){return this.item(127)||void 0}get 128(){return this.item(128)||void 0}get 129(){return this.item(129)||void 0}get 130(){return this.item(130)||void 0}get 131(){return this.item(131)||void 0}get 132(){return this.item(132)||void 0}get 133(){return this.item(133)||void 0}get 134(){return this.item(134)||void 0}get 135(){return this.item(135)||void 0}get 136(){return this.item(136)||void 0}get 137(){return this.item(137)||void 0}get 138(){return this.item(138)||void 0}get 139(){return this.item(139)||void 0}get 140(){return this.item(140)||void 0}get 141(){return this.item(141)||void 0}get 142(){return this.item(142)||void 0}get 143(){return this.item(143)||void 0}get 144(){return this.item(144)||void 0}get 145(){return this.item(145)||void 0}get 146(){return this.item(146)||void 0}get 147(){return this.item(147)||void 0}get 148(){return this.item(148)||void 0}get 149(){return this.item(149)||void 0}get 150(){return this.item(150)||void 0}get 151(){return this.item(151)||void 0}get 152(){return this.item(152)||void 0}get 153(){return this.item(153)||void 0}get 154(){return this.item(154)||void 0}get 155(){return this.item(155)||void 0}get 156(){return this.item(156)||void 0}get 157(){return this.item(157)||void 0}get 158(){return this.item(158)||void 0}get 159(){return this.item(159)||void 0}get 160(){return this.item(160)||void 0}get 161(){return this.item(161)||void 0}get 162(){return this.item(162)||void 0}get 163(){return this.item(163)||void 0}get 164(){return this.item(164)||void 0}get 165(){return this.item(165)||void 0}get 166(){return this.item(166)||void 0}get 167(){return this.item(167)||void 0}get 168(){return this.item(168)||void 0}get 169(){return this.item(169)||void 0}get 170(){return this.item(170)||void 0}get 171(){return this.item(171)||void 0}get 172(){return this.item(172)||void 0}get 173(){return this.item(173)||void 0}get 174(){return this.item(174)||void 0}get 175(){return this.item(175)||void 0}get 176(){return this.item(176)||void 0}get 177(){return this.item(177)||void 0}get 178(){return this.item(178)||void 0}get 179(){return this.item(179)||void 0}get 180(){return this.item(180)||void 0}get 181(){return this.item(181)||void 0}get 182(){return this.item(182)||void 0}get 183(){return this.item(183)||void 0}get 184(){return this.item(184)||void 0}get 185(){return this.item(185)||void 0}get 186(){return this.item(186)||void 0}get 187(){return this.item(187)||void 0}get 188(){return this.item(188)||void 0}get 189(){return this.item(189)||void 0}get 190(){return this.item(190)||void 0}get 191(){return this.item(191)||void 0}get 192(){return this.item(192)||void 0}get 193(){return this.item(193)||void 0}get 194(){return this.item(194)||void 0}get 195(){return this.item(195)||void 0}get 196(){return this.item(196)||void 0}get 197(){return this.item(197)||void 0}get 198(){return this.item(198)||void 0}get 199(){return this.item(199)||void 0}get 200(){return this.item(200)||void 0}get 201(){return this.item(201)||void 0}get 202(){return this.item(202)||void 0}get 203(){return this.item(203)||void 0}get 204(){return this.item(204)||void 0}get 205(){return this.item(205)||void 0}get 206(){return this.item(206)||void 0}get 207(){return this.item(207)||void 0}get 208(){return this.item(208)||void 0}get 209(){return this.item(209)||void 0}get 210(){return this.item(210)||void 0}get 211(){return this.item(211)||void 0}get 212(){return this.item(212)||void 0}get 213(){return this.item(213)||void 0}get 214(){return this.item(214)||void 0}get 215(){return this.item(215)||void 0}get 216(){return this.item(216)||void 0}get 217(){return this.item(217)||void 0}get 218(){return this.item(218)||void 0}get 219(){return this.item(219)||void 0}get 220(){return this.item(220)||void 0}get 221(){return this.item(221)||void 0}get 222(){return this.item(222)||void 0}get 223(){return this.item(223)||void 0}get 224(){return this.item(224)||void 0}get 225(){return this.item(225)||void 0}get 226(){return this.item(226)||void 0}get 227(){return this.item(227)||void 0}get 228(){return this.item(228)||void 0}get 229(){return this.item(229)||void 0}get 230(){return this.item(230)||void 0}get 231(){return this.item(231)||void 0}get 232(){return this.item(232)||void 0}get 233(){return this.item(233)||void 0}get 234(){return this.item(234)||void 0}get 235(){return this.item(235)||void 0}get 236(){return this.item(236)||void 0}get 237(){return this.item(237)||void 0}get 238(){return this.item(238)||void 0}get 239(){return this.item(239)||void 0}get 240(){return this.item(240)||void 0}get 241(){return this.item(241)||void 0}get 242(){return this.item(242)||void 0}get 243(){return this.item(243)||void 0}get 244(){return this.item(244)||void 0}get 245(){return this.item(245)||void 0}get 246(){return this.item(246)||void 0}get 247(){return this.item(247)||void 0}get 248(){return this.item(248)||void 0}get 249(){return this.item(249)||void 0}get 250(){return this.item(250)||void 0}get 251(){return this.item(251)||void 0}get 252(){return this.item(252)||void 0}get 253(){return this.item(253)||void 0}get 254(){return this.item(254)||void 0}get 255(){return this.item(255)||void 0}get 256(){return this.item(256)||void 0}get 257(){return this.item(257)||void 0}get 258(){return this.item(258)||void 0}get 259(){return this.item(259)||void 0}get 260(){return this.item(260)||void 0}get 261(){return this.item(261)||void 0}get 262(){return this.item(262)||void 0}get 263(){return this.item(263)||void 0}get 264(){return this.item(264)||void 0}get 265(){return this.item(265)||void 0}get 266(){return this.item(266)||void 0}get 267(){return this.item(267)||void 0}get 268(){return this.item(268)||void 0}get 269(){return this.item(269)||void 0}get 270(){return this.item(270)||void 0}get 271(){return this.item(271)||void 0}get 272(){return this.item(272)||void 0}get 273(){return this.item(273)||void 0}get 274(){return this.item(274)||void 0}get 275(){return this.item(275)||void 0}get 276(){return this.item(276)||void 0}get 277(){return this.item(277)||void 0}get 278(){return this.item(278)||void 0}get 279(){return this.item(279)||void 0}get 280(){return this.item(280)||void 0}get 281(){return this.item(281)||void 0}get 282(){return this.item(282)||void 0}get 283(){return this.item(283)||void 0}get 284(){return this.item(284)||void 0}get 285(){return this.item(285)||void 0}get 286(){return this.item(286)||void 0}get 287(){return this.item(287)||void 0}get 288(){return this.item(288)||void 0}get 289(){return this.item(289)||void 0}get 290(){return this.item(290)||void 0}get 291(){return this.item(291)||void 0}get 292(){return this.item(292)||void 0}get 293(){return this.item(293)||void 0}get 294(){return this.item(294)||void 0}get 295(){return this.item(295)||void 0}get 296(){return this.item(296)||void 0}get 297(){return this.item(297)||void 0}get 298(){return this.item(298)||void 0}get 299(){return this.item(299)||void 0}get 300(){return this.item(300)||void 0}get 301(){return this.item(301)||void 0}get 302(){return this.item(302)||void 0}get 303(){return this.item(303)||void 0}get 304(){return this.item(304)||void 0}get 305(){return this.item(305)||void 0}get 306(){return this.item(306)||void 0}get 307(){return this.item(307)||void 0}get 308(){return this.item(308)||void 0}get 309(){return this.item(309)||void 0}get 310(){return this.item(310)||void 0}get 311(){return this.item(311)||void 0}get 312(){return this.item(312)||void 0}get 313(){return this.item(313)||void 0}get 314(){return this.item(314)||void 0}get 315(){return this.item(315)||void 0}get 316(){return this.item(316)||void 0}get 317(){return this.item(317)||void 0}get 318(){return this.item(318)||void 0}get 319(){return this.item(319)||void 0}get 320(){return this.item(320)||void 0}get 321(){return this.item(321)||void 0}get 322(){return this.item(322)||void 0}get 323(){return this.item(323)||void 0}get 324(){return this.item(324)||void 0}get 325(){return this.item(325)||void 0}get 326(){return this.item(326)||void 0}get 327(){return this.item(327)||void 0}get 328(){return this.item(328)||void 0}get 329(){return this.item(329)||void 0}get 330(){return this.item(330)||void 0}get 331(){return this.item(331)||void 0}get 332(){return this.item(332)||void 0}get 333(){return this.item(333)||void 0}get 334(){return this.item(334)||void 0}get 335(){return this.item(335)||void 0}get 336(){return this.item(336)||void 0}get 337(){return this.item(337)||void 0}get 338(){return this.item(338)||void 0}get 339(){return this.item(339)||void 0}get 340(){return this.item(340)||void 0}get 341(){return this.item(341)||void 0}get 342(){return this.item(342)||void 0}get 343(){return this.item(343)||void 0}get 344(){return this.item(344)||void 0}get 345(){return this.item(345)||void 0}get 346(){return this.item(346)||void 0}get 347(){return this.item(347)||void 0}get 348(){return this.item(348)||void 0}get 349(){return this.item(349)||void 0}get 350(){return this.item(350)||void 0}get 351(){return this.item(351)||void 0}get 352(){return this.item(352)||void 0}get 353(){return this.item(353)||void 0}get 354(){return this.item(354)||void 0}get 355(){return this.item(355)||void 0}get 356(){return this.item(356)||void 0}get 357(){return this.item(357)||void 0}get 358(){return this.item(358)||void 0}get 359(){return this.item(359)||void 0}get 360(){return this.item(360)||void 0}get 361(){return this.item(361)||void 0}get 362(){return this.item(362)||void 0}get 363(){return this.item(363)||void 0}get 364(){return this.item(364)||void 0}get 365(){return this.item(365)||void 0}get 366(){return this.item(366)||void 0}get 367(){return this.item(367)||void 0}get 368(){return this.item(368)||void 0}get 369(){return this.item(369)||void 0}get 370(){return this.item(370)||void 0}get 371(){return this.item(371)||void 0}get 372(){return this.item(372)||void 0}get 373(){return this.item(373)||void 0}get 374(){return this.item(374)||void 0}get 375(){return this.item(375)||void 0}get 376(){return this.item(376)||void 0}get 377(){return this.item(377)||void 0}get 378(){return this.item(378)||void 0}get 379(){return this.item(379)||void 0}get 380(){return this.item(380)||void 0}get 381(){return this.item(381)||void 0}get 382(){return this.item(382)||void 0}get 383(){return this.item(383)||void 0}get 384(){return this.item(384)||void 0}get 385(){return this.item(385)||void 0}get 386(){return this.item(386)||void 0}get 387(){return this.item(387)||void 0}get 388(){return this.item(388)||void 0}get 389(){return this.item(389)||void 0}get 390(){return this.item(390)||void 0}get 391(){return this.item(391)||void 0}get 392(){return this.item(392)||void 0}get 393(){return this.item(393)||void 0}get accentColor(){return this.getPropertyValue("accent-color")}set accentColor(e){this.setProperty("accent-color",e)}get appRegion(){return this.getPropertyValue("app-region")}set appRegion(e){this.setProperty("app-region",e)}get alignContent(){return this.getPropertyValue("align-content")}set alignContent(e){this.setProperty("align-content",e)}get alignItems(){return this.getPropertyValue("align-items")}set alignItems(e){this.setProperty("align-items",e)}get alignSelf(){return this.getPropertyValue("align-self")}set alignSelf(e){this.setProperty("align-self",e)}get alignmentBaseline(){return this.getPropertyValue("alignment-baseline")}set alignmentBaseline(e){this.setProperty("alignment-baseline",e)}get all(){return this.getPropertyValue("all")}set all(e){this.setProperty("all",e)}get animation(){return this.getPropertyValue("animation")}set animation(e){this.setProperty("animation",e)}get animationDelay(){return this.getPropertyValue("animation-delay")}set animationDelay(e){this.setProperty("animation-delay",e)}get animationDirection(){return this.getPropertyValue("animation-direction")}set animationDirection(e){this.setProperty("animation-direction",e)}get animationDuration(){return this.getPropertyValue("animation-duration")}set animationDuration(e){this.setProperty("animation-duration",e)}get animationFillMode(){return this.getPropertyValue("animation-fill-mode")}set animationFillMode(e){this.setProperty("animation-fill-mode",e)}get animationIterationCount(){return this.getPropertyValue("animation-iteration-count")}set animationIterationCount(e){this.setProperty("animation-iteration-count",e)}get animationName(){return this.getPropertyValue("animation-name")}set animationName(e){this.setProperty("animation-name",e)}get animationPlayState(){return this.getPropertyValue("animation-play-state")}set animationPlayState(e){this.setProperty("animation-play-state",e)}get animationTimingFunction(){return this.getPropertyValue("animation-timing-function")}set animationTimingFunction(e){this.setProperty("animation-timing-function",e)}get appearance(){return this.getPropertyValue("appearance")}set appearance(e){this.setProperty("appearance",e)}get backdropFilter(){return this.getPropertyValue("backdrop-filter")}set backdropFilter(e){this.setProperty("backdrop-filter",e)}get backfaceVisibility(){return this.getPropertyValue("backface-visibility")}set backfaceVisibility(e){this.setProperty("backface-visibility",e)}get background(){return this.getPropertyValue("background")}set background(e){this.setProperty("background",e)}get backgroundAttachment(){return this.getPropertyValue("background-attachment")}set backgroundAttachment(e){this.setProperty("background-attachment",e)}get backgroundBlendMode(){return this.getPropertyValue("background-blend-mode")}set backgroundBlendMode(e){this.setProperty("background-blend-mode",e)}get backgroundClip(){return this.getPropertyValue("background-clip")}set backgroundClip(e){this.setProperty("background-clip",e)}get backgroundColor(){return this.getPropertyValue("background-color")}set backgroundColor(e){this.setProperty("background-color",e)}get backgroundImage(){return this.getPropertyValue("background-image")}set backgroundImage(e){this.setProperty("background-image",e)}get backgroundOrigin(){return this.getPropertyValue("background-origin")}set backgroundOrigin(e){this.setProperty("background-origin",e)}get backgroundPosition(){return this.getPropertyValue("background-position")}set backgroundPosition(e){this.setProperty("background-position",e)}get backgroundPositionX(){return this.getPropertyValue("background-position-x")}set backgroundPositionX(e){this.setProperty("background-position-x",e)}get backgroundPositionY(){return this.getPropertyValue("background-position-y")}set backgroundPositionY(e){this.setProperty("background-position-y",e)}get backgroundRepeat(){return this.getPropertyValue("background-repeat")}set backgroundRepeat(e){this.setProperty("background-repeat",e)}get backgroundRepeatX(){return this.getPropertyValue("background-repeat-x")}set backgroundRepeatX(e){this.setProperty("background-repeat-x",e)}get backgroundRepeatY(){return this.getPropertyValue("background-repeat-y")}set backgroundRepeatY(e){this.setProperty("background-repeat-y",e)}get backgroundSize(){return this.getPropertyValue("background-size")}set backgroundSize(e){this.setProperty("background-size",e)}get baselineShift(){return this.getPropertyValue("baseline-shift")}set baselineShift(e){this.setProperty("baseline-shift",e)}get blockSize(){return this.getPropertyValue("block-size")}set blockSize(e){this.setProperty("block-size",e)}get border(){return this.getPropertyValue("border")}set border(e){this.setProperty("border",e)}get borderBlockEnd(){return this.getPropertyValue("border-block-end")}set borderBlockEnd(e){this.setProperty("border-block-end",e)}get borderBlockEndColor(){return this.getPropertyValue("border-block-end-color")}set borderBlockEndColor(e){this.setProperty("border-block-end-color",e)}get borderBlockEndStyle(){return this.getPropertyValue("border-block-end-style")}set borderBlockEndStyle(e){this.setProperty("border-block-end-style",e)}get borderBlockEndWidth(){return this.getPropertyValue("border-block-end-width")}set borderBlockEndWidth(e){this.setProperty("border-block-end-width",e)}get borderBlockStart(){return this.getPropertyValue("border-block-start")}set borderBlockStart(e){this.setProperty("border-block-start",e)}get borderBlockStartColor(){return this.getPropertyValue("border-block-start-color")}set borderBlockStartColor(e){this.setProperty("border-block-start-color",e)}get borderBlockStartStyle(){return this.getPropertyValue("border-block-start-style")}set borderBlockStartStyle(e){this.setProperty("border-block-start-style",e)}get borderBlockStartWidth(){return this.getPropertyValue("border-block-start-width")}set borderBlockStartWidth(e){this.setProperty("border-block-start-width",e)}get borderBottom(){return this.getPropertyValue("border-bottom")}set borderBottom(e){this.setProperty("border-bottom",e)}get borderBottomColor(){return this.getPropertyValue("border-bottom-color")}set borderBottomColor(e){this.setProperty("border-bottom-color",e)}get borderBottomLeftRadius(){return this.getPropertyValue("border-bottom-left-radius")}set borderBottomLeftRadius(e){this.setProperty("border-bottom-left-radius",e)}get borderBottomRightRadius(){return this.getPropertyValue("border-bottom-right-radius")}set borderBottomRightRadius(e){this.setProperty("border-bottom-right-radius",e)}get borderBottomStyle(){return this.getPropertyValue("border-bottom-style")}set borderBottomStyle(e){this.setProperty("border-bottom-style",e)}get borderBottomWidth(){return this.getPropertyValue("border-bottom-width")}set borderBottomWidth(e){this.setProperty("border-bottom-width",e)}get borderCollapse(){return this.getPropertyValue("border-collapse")}set borderCollapse(e){this.setProperty("border-collapse",e)}get borderColor(){return this.getPropertyValue("border-color")}set borderColor(e){this.setProperty("border-color",e)}get borderImage(){return this.getPropertyValue("border-image")}set borderImage(e){this.setProperty("border-image",e)}get borderImageOutset(){return this.getPropertyValue("border-image-outset")}set borderImageOutset(e){this.setProperty("border-image-outset",e)}get borderImageRepeat(){return this.getPropertyValue("border-image-repeat")}set borderImageRepeat(e){this.setProperty("border-image-repeat",e)}get borderImageSlice(){return this.getPropertyValue("border-image-slice")}set borderImageSlice(e){this.setProperty("border-image-slice",e)}get borderImageSource(){return this.getPropertyValue("border-image-source")}set borderImageSource(e){this.setProperty("border-image-source",e)}get borderImageWidth(){return this.getPropertyValue("border-image-width")}set borderImageWidth(e){this.setProperty("border-image-width",e)}get borderInlineEnd(){return this.getPropertyValue("border-inline-end")}set borderInlineEnd(e){this.setProperty("border-inline-end",e)}get borderInlineEndColor(){return this.getPropertyValue("border-inline-end-color")}set borderInlineEndColor(e){this.setProperty("border-inline-end-color",e)}get borderInlineEndStyle(){return this.getPropertyValue("border-inline-end-style")}set borderInlineEndStyle(e){this.setProperty("border-inline-end-style",e)}get borderInlineEndWidth(){return this.getPropertyValue("border-inline-end-width")}set borderInlineEndWidth(e){this.setProperty("border-inline-end-width",e)}get borderInlineStart(){return this.getPropertyValue("border-inline-start")}set borderInlineStart(e){this.setProperty("border-inline-start",e)}get borderInlineStartColor(){return this.getPropertyValue("border-inline-start-color")}set borderInlineStartColor(e){this.setProperty("border-inline-start-color",e)}get borderInlineStartStyle(){return this.getPropertyValue("border-inline-start-style")}set borderInlineStartStyle(e){this.setProperty("border-inline-start-style",e)}get borderInlineStartWidth(){return this.getPropertyValue("border-inline-start-width")}set borderInlineStartWidth(e){this.setProperty("border-inline-start-width",e)}get borderLeft(){return this.getPropertyValue("border-left")}set borderLeft(e){this.setProperty("border-left",e)}get borderLeftColor(){return this.getPropertyValue("border-left-color")}set borderLeftColor(e){this.setProperty("border-left-color",e)}get borderLeftStyle(){return this.getPropertyValue("border-left-style")}set borderLeftStyle(e){this.setProperty("border-left-style",e)}get borderLeftWidth(){return this.getPropertyValue("border-left-width")}set borderLeftWidth(e){this.setProperty("border-left-width",e)}get borderRadius(){return this.getPropertyValue("border-radius")}set borderRadius(e){this.setProperty("border-radius",e)}get borderRight(){return this.getPropertyValue("border-right")}set borderRight(e){this.setProperty("border-right",e)}get borderRightColor(){return this.getPropertyValue("border-right-color")}set borderRightColor(e){this.setProperty("border-right-color",e)}get borderRightStyle(){return this.getPropertyValue("border-right-style")}set borderRightStyle(e){this.setProperty("border-right-style",e)}get borderRightWidth(){return this.getPropertyValue("border-right-width")}set borderRightWidth(e){this.setProperty("border-right-width",e)}get borderSpacing(){return this.getPropertyValue("border-spacing")}set borderSpacing(e){this.setProperty("border-spacing",e)}get borderStyle(){return this.getPropertyValue("border-style")}set borderStyle(e){this.setProperty("border-style",e)}get borderTop(){return this.getPropertyValue("border-top")}set borderTop(e){this.setProperty("border-top",e)}get borderTopColor(){return this.getPropertyValue("border-top-color")}set borderTopColor(e){this.setProperty("border-top-color",e)}get borderTopLeftRadius(){return this.getPropertyValue("border-top-left-radius")}set borderTopLeftRadius(e){this.setProperty("border-top-left-radius",e)}get borderTopRightRadius(){return this.getPropertyValue("border-top-right-radius")}set borderTopRightRadius(e){this.setProperty("border-top-right-radius",e)}get borderTopStyle(){return this.getPropertyValue("border-top-style")}set borderTopStyle(e){this.setProperty("border-top-style",e)}get borderTopWidth(){return this.getPropertyValue("border-top-width")}set borderTopWidth(e){this.setProperty("border-top-width",e)}get borderWidth(){return this.getPropertyValue("border-width")}set borderWidth(e){this.setProperty("border-width",e)}get borderEndEndRadius(){return this.getPropertyValue("border-end-end-radius")}set borderEndEndRadius(e){this.setProperty("border-end-end-radius",e)}get borderEndStartRadius(){return this.getPropertyValue("border-end-start-radius")}set borderEndStartRadius(e){this.setProperty("border-end-start-radius",e)}get borderStartEndRadius(){return this.getPropertyValue("border-start-end-radius")}set borderStartEndRadius(e){this.setProperty("border-start-end-radius",e)}get borderStartStartRadius(){return this.getPropertyValue("border-start-start-radius")}set borderStartStartRadius(e){this.setProperty("border-start-start-radius",e)}get bottom(){return this.getPropertyValue("bottom")}set bottom(e){this.setProperty("bottom",e)}get boxShadow(){return this.getPropertyValue("box-shadow")}set boxShadow(e){this.setProperty("box-shadow",e)}get boxSizing(){return this.getPropertyValue("box-sizing")}set boxSizing(e){this.setProperty("box-sizing",e)}get breakAfter(){return this.getPropertyValue("break-after")}set breakAfter(e){this.setProperty("break-after",e)}get breakBefore(){return this.getPropertyValue("break-before")}set breakBefore(e){this.setProperty("break-before",e)}get breakInside(){return this.getPropertyValue("break-inside")}set breakInside(e){this.setProperty("break-inside",e)}get bufferedRendering(){return this.getPropertyValue("buffered-rendering")}set bufferedRendering(e){this.setProperty("buffered-rendering",e)}get captionSide(){return this.getPropertyValue("caption-side")}set captionSide(e){this.setProperty("caption-side",e)}get caretColor(){return this.getPropertyValue("caret-color")}set caretColor(e){this.setProperty("caret-color",e)}get clear(){return this.getPropertyValue("clear")}set clear(e){this.setProperty("clear",e)}get clip(){return this.getPropertyValue("clip")}set clip(e){this.setProperty("clip",e)}get clipPath(){return this.getPropertyValue("clip-path")}set clipPath(e){this.setProperty("clip-path",e)}get clipRule(){return this.getPropertyValue("clip-rule")}set clipRule(e){this.setProperty("clip-rule",e)}get color(){return this.getPropertyValue("color")}set color(e){this.setProperty("color",e)}get colorInterpolation(){return this.getPropertyValue("color-interpolation")}set colorInterpolation(e){this.setProperty("color-interpolation",e)}get colorInterpolationFilters(){return this.getPropertyValue("color-interpolation-filters")}set colorInterpolationFilters(e){this.setProperty("color-interpolation-filters",e)}get colorRendering(){return this.getPropertyValue("color-rendering")}set colorRendering(e){this.setProperty("color-rendering",e)}get colorScheme(){return this.getPropertyValue("color-scheme")}set colorScheme(e){this.setProperty("color-scheme",e)}get columnCount(){return this.getPropertyValue("column-count")}set columnCount(e){this.setProperty("column-count",e)}get columnFill(){return this.getPropertyValue("column-fill")}set columnFill(e){this.setProperty("column-fill",e)}get columnGap(){return this.getPropertyValue("column-gap")}set columnGap(e){this.setProperty("column-gap",e)}get columnRule(){return this.getPropertyValue("column-rule")}set columnRule(e){this.setProperty("column-rule",e)}get columnRuleColor(){return this.getPropertyValue("column-rule-color")}set columnRuleColor(e){this.setProperty("column-rule-color",e)}get columnRuleStyle(){return this.getPropertyValue("column-rule-style")}set columnRuleStyle(e){this.setProperty("column-rule-style",e)}get columnRuleWidth(){return this.getPropertyValue("column-rule-width")}set columnRuleWidth(e){this.setProperty("column-rule-width",e)}get columnSpan(){return this.getPropertyValue("column-span")}set columnSpan(e){this.setProperty("column-span",e)}get columnWidth(){return this.getPropertyValue("column-width")}set columnWidth(e){this.setProperty("column-width",e)}get columns(){return this.getPropertyValue("columns")}set columns(e){this.setProperty("columns",e)}get contain(){return this.getPropertyValue("contain")}set contain(e){this.setProperty("contain",e)}get containIntrinsicSize(){return this.getPropertyValue("contain-intrinsic-size")}set containIntrinsicSize(e){this.setProperty("contain-intrinsic-size",e)}get content(){return this.getPropertyValue("content")}set content(e){this.setProperty("content",e)}get contentVisibility(){return this.getPropertyValue("content-visibility")}set contentVisibility(e){this.setProperty("content-visibility",e)}get counterIncrement(){return this.getPropertyValue("counter-increment")}set counterIncrement(e){this.setProperty("counter-increment",e)}get counterReset(){return this.getPropertyValue("counter-reset")}set counterReset(e){this.setProperty("counter-reset",e)}get counterSet(){return this.getPropertyValue("counter-set")}set counterSet(e){this.setProperty("counter-set",e)}get containIntrinsicBlockSize(){return this.getPropertyValue("contain-intrinsic-block-size")}set containIntrinsicBlockSize(e){this.setProperty("contain-intrinsic-block-size",e)}get containIntrinsicHeight(){return this.getPropertyValue("contain-intrinsic-height")}set containIntrinsicHeight(e){this.setProperty("contain-intrinsic-height",e)}get containIntrinsicInlineSize(){return this.getPropertyValue("contain-intrinsic-inline-size")}set containIntrinsicInlineSize(e){this.setProperty("contain-intrinsic-inline-size",e)}get containIntrinsicWidth(){return this.getPropertyValue("contain-intrinsic-width")}set containIntrinsicWidth(e){this.setProperty("contain-intrinsic-width",e)}get cssFloat(){return this.getPropertyValue("css-float")}set cssFloat(e){this.setProperty("css-float",e)}get cursor(){return this.getPropertyValue("cursor")}set cursor(e){this.setProperty("cursor",e)}get cx(){return this.getPropertyValue("cx")}set cx(e){this.setProperty("cx",e)}get cy(){return this.getPropertyValue("cy")}set cy(e){this.setProperty("cy",e)}get d(){return this.getPropertyValue("d")}set d(e){this.setProperty("d",e)}get direction(){return this.getPropertyValue("direction")}set direction(e){this.setProperty("direction",e)}get display(){return this.getPropertyValue("display")}set display(e){this.setProperty("display",e)}get dominantBaseline(){return this.getPropertyValue("dominant-baseline")}set dominantBaseline(e){this.setProperty("dominant-baseline",e)}get emptyCells(){return this.getPropertyValue("empty-cells")}set emptyCells(e){this.setProperty("empty-cells",e)}get fill(){return this.getPropertyValue("fill")}set fill(e){this.setProperty("fill",e)}get fillOpacity(){return this.getPropertyValue("fill-opacity")}set fillOpacity(e){this.setProperty("fill-opacity",e)}get fillRule(){return this.getPropertyValue("fill-rule")}set fillRule(e){this.setProperty("fill-rule",e)}get filter(){return this.getPropertyValue("filter")}set filter(e){this.setProperty("filter",e)}get flex(){return this.getPropertyValue("flex")}set flex(e){this.setProperty("flex",e)}get flexBasis(){return this.getPropertyValue("flex-basis")}set flexBasis(e){this.setProperty("flex-basis",e)}get flexDirection(){return this.getPropertyValue("flex-direction")}set flexDirection(e){this.setProperty("flex-direction",e)}get flexFlow(){return this.getPropertyValue("flex-flow")}set flexFlow(e){this.setProperty("flex-flow",e)}get flexGrow(){return this.getPropertyValue("flex-grow")}set flexGrow(e){this.setProperty("flex-grow",e)}get flexShrink(){return this.getPropertyValue("flex-shrink")}set flexShrink(e){this.setProperty("flex-shrink",e)}get flexWrap(){return this.getPropertyValue("flex-wrap")}set flexWrap(e){this.setProperty("flex-wrap",e)}get float(){return this.getPropertyValue("float")}set float(e){this.setProperty("float",e)}get floodColor(){return this.getPropertyValue("flood-color")}set floodColor(e){this.setProperty("flood-color",e)}get floodOpacity(){return this.getPropertyValue("flood-opacity")}set floodOpacity(e){this.setProperty("flood-opacity",e)}get font(){return this.getPropertyValue("font")}set font(e){this.setProperty("font",e)}get fontDisplay(){return this.getPropertyValue("font-display")}set fontDisplay(e){this.setProperty("font-display",e)}get fontFamily(){return this.getPropertyValue("font-family")}set fontFamily(e){this.setProperty("font-family",e)}get fontFeatureSettings(){return this.getPropertyValue("font-feature-settings")}set fontFeatureSettings(e){this.setProperty("font-feature-settings",e)}get fontKerning(){return this.getPropertyValue("font-kerning")}set fontKerning(e){this.setProperty("font-kerning",e)}get fontOpticalSizing(){return this.getPropertyValue("font-optical-sizing")}set fontOpticalSizing(e){this.setProperty("font-optical-sizing",e)}get fontSize(){return this.getPropertyValue("font-size")}set fontSize(e){this.setProperty("font-size",e)}get fontStretch(){return this.getPropertyValue("font-stretch")}set fontStretch(e){this.setProperty("font-stretch",e)}get fontStyle(){return this.getPropertyValue("font-style")}set fontStyle(e){this.setProperty("font-style",e)}get fontVariant(){return this.getPropertyValue("font-variant")}set fontVariant(e){this.setProperty("font-variant",e)}get fontVariantCaps(){return this.getPropertyValue("font-variant-caps")}set fontVariantCaps(e){this.setProperty("font-variant-caps",e)}get fontVariantEastAsian(){return this.getPropertyValue("font-variant-east-asian")}set fontVariantEastAsian(e){this.setProperty("font-variant-east-asian",e)}get fontVariantLigatures(){return this.getPropertyValue("font-variant-ligatures")}set fontVariantLigatures(e){this.setProperty("font-variant-ligatures",e)}get fontVariantNumeric(){return this.getPropertyValue("font-variant-numeric")}set fontVariantNumeric(e){this.setProperty("font-variant-numeric",e)}get fontVariationSettings(){return this.getPropertyValue("font-variation-settings")}set fontVariationSettings(e){this.setProperty("font-variation-settings",e)}get fontPalette(){return this.getPropertyValue("font-palette")}set fontPalette(e){this.setProperty("font-palette",e)}get fontSynthesisSmallCaps(){return this.getPropertyValue("font-synthesis-small-caps")}set fontSynthesisSmallCaps(e){this.setProperty("font-synthesis-small-caps",e)}get fontSynthesisStyle(){return this.getPropertyValue("font-synthesis-style")}set fontSynthesisStyle(e){this.setProperty("font-synthesis-style",e)}get fontSynthesisWeight(){return this.getPropertyValue("font-synthesis-weight")}set fontSynthesisWeight(e){this.setProperty("font-synthesis-weight",e)}get fontWeight(){return this.getPropertyValue("font-weight")}set fontWeight(e){this.setProperty("font-weight",e)}get gap(){return this.getPropertyValue("gap")}set gap(e){this.setProperty("gap",e)}get grid(){return this.getPropertyValue("grid")}set grid(e){this.setProperty("grid",e)}get gridArea(){return this.getPropertyValue("grid-area")}set gridArea(e){this.setProperty("grid-area",e)}get gridAutoColumns(){return this.getPropertyValue("grid-auto-columns")}set gridAutoColumns(e){this.setProperty("grid-auto-columns",e)}get gridAutoFlow(){return this.getPropertyValue("grid-auto-flow")}set gridAutoFlow(e){this.setProperty("grid-auto-flow",e)}get gridAutoRows(){return this.getPropertyValue("grid-auto-rows")}set gridAutoRows(e){this.setProperty("grid-auto-rows",e)}get gridColumn(){return this.getPropertyValue("grid-column")}set gridColumn(e){this.setProperty("grid-column",e)}get gridColumnEnd(){return this.getPropertyValue("grid-column-end")}set gridColumnEnd(e){this.setProperty("grid-column-end",e)}get gridColumnGap(){return this.getPropertyValue("grid-column-gap")}set gridColumnGap(e){this.setProperty("grid-column-gap",e)}get gridColumnStart(){return this.getPropertyValue("grid-column-start")}set gridColumnStart(e){this.setProperty("grid-column-start",e)}get gridGap(){return this.getPropertyValue("grid-gap")}set gridGap(e){this.setProperty("grid-gap",e)}get gridRow(){return this.getPropertyValue("grid-row")}set gridRow(e){this.setProperty("grid-row",e)}get gridRowEnd(){return this.getPropertyValue("grid-row-end")}set gridRowEnd(e){this.setProperty("grid-row-end",e)}get gridRowGap(){return this.getPropertyValue("grid-row-gap")}set gridRowGap(e){this.setProperty("grid-row-gap",e)}get gridRowStart(){return this.getPropertyValue("grid-row-start")}set gridRowStart(e){this.setProperty("grid-row-start",e)}get gridTemplate(){return this.getPropertyValue("grid-template")}set gridTemplate(e){this.setProperty("grid-template",e)}get gridTemplateAreas(){return this.getPropertyValue("grid-template-areas")}set gridTemplateAreas(e){this.setProperty("grid-template-areas",e)}get gridTemplateColumns(){return this.getPropertyValue("grid-template-columns")}set gridTemplateColumns(e){this.setProperty("grid-template-columns",e)}get gridTemplateRows(){return this.getPropertyValue("grid-template-rows")}set gridTemplateRows(e){this.setProperty("grid-template-rows",e)}get height(){return this.getPropertyValue("height")}set height(e){this.setProperty("height",e)}get hyphens(){return this.getPropertyValue("hyphens")}set hyphens(e){this.setProperty("hyphens",e)}get imageOrientation(){return this.getPropertyValue("image-orientation")}set imageOrientation(e){this.setProperty("image-orientation",e)}get imageRendering(){return this.getPropertyValue("image-rendering")}set imageRendering(e){this.setProperty("image-rendering",e)}get inherits(){return this.getPropertyValue("inherits")}set inherits(e){this.setProperty("inherits",e)}get initialValue(){return this.getPropertyValue("initial-value")}set initialValue(e){this.setProperty("initial-value",e)}get inlineSize(){return this.getPropertyValue("inline-size")}set inlineSize(e){this.setProperty("inline-size",e)}get isolation(){return this.getPropertyValue("isolation")}set isolation(e){this.setProperty("isolation",e)}get insetBlockEnd(){return this.getPropertyValue("inset-block-end")}set insetBlockEnd(e){this.setProperty("inset-block-end",e)}get insetBlockStart(){return this.getPropertyValue("inset-block-start")}set insetBlockStart(e){this.setProperty("inset-block-start",e)}get insetInlineEnd(){return this.getPropertyValue("inset-inline-end")}set insetInlineEnd(e){this.setProperty("inset-inline-end",e)}get insetInlineStart(){return this.getPropertyValue("inset-inline-start")}set insetInlineStart(e){this.setProperty("inset-inline-start",e)}get justifyContent(){return this.getPropertyValue("justify-content")}set justifyContent(e){this.setProperty("justify-content",e)}get justifyItems(){return this.getPropertyValue("justify-items")}set justifyItems(e){this.setProperty("justify-items",e)}get justifySelf(){return this.getPropertyValue("justify-self")}set justifySelf(e){this.setProperty("justify-self",e)}get left(){return this.getPropertyValue("left")}set left(e){this.setProperty("left",e)}get letterSpacing(){return this.getPropertyValue("letter-spacing")}set letterSpacing(e){this.setProperty("letter-spacing",e)}get lightingColor(){return this.getPropertyValue("lighting-color")}set lightingColor(e){this.setProperty("lighting-color",e)}get lineBreak(){return this.getPropertyValue("line-break")}set lineBreak(e){this.setProperty("line-break",e)}get lineHeight(){return this.getPropertyValue("line-height")}set lineHeight(e){this.setProperty("line-height",e)}get listStyle(){return this.getPropertyValue("list-style")}set listStyle(e){this.setProperty("list-style",e)}get listStyleImage(){return this.getPropertyValue("list-style-image")}set listStyleImage(e){this.setProperty("list-style-image",e)}get listStylePosition(){return this.getPropertyValue("list-style-position")}set listStylePosition(e){this.setProperty("list-style-position",e)}get listStyleType(){return this.getPropertyValue("list-style-type")}set listStyleType(e){this.setProperty("list-style-type",e)}get margin(){return this.getPropertyValue("margin")}set margin(e){this.setProperty("margin",e)}get marginBlockEnd(){return this.getPropertyValue("margin-block-end")}set marginBlockEnd(e){this.setProperty("margin-block-end",e)}get marginBlockStart(){return this.getPropertyValue("margin-block-start")}set marginBlockStart(e){this.setProperty("margin-block-start",e)}get marginBottom(){return this.getPropertyValue("margin-bottom")}set marginBottom(e){this.setProperty("margin-bottom",e)}get marginInlineEnd(){return this.getPropertyValue("margin-inline-end")}set marginInlineEnd(e){this.setProperty("margin-inline-end",e)}get marginInlineStart(){return this.getPropertyValue("margin-inline-start")}set marginInlineStart(e){this.setProperty("margin-inline-start",e)}get marginLeft(){return this.getPropertyValue("margin-left")}set marginLeft(e){this.setProperty("margin-left",e)}get marginRight(){return this.getPropertyValue("margin-right")}set marginRight(e){this.setProperty("margin-right",e)}get marginTop(){return this.getPropertyValue("margin-top")}set marginTop(e){this.setProperty("margin-top",e)}get marker(){return this.getPropertyValue("marker")}set marker(e){this.setProperty("marker",e)}get markerEnd(){return this.getPropertyValue("marker-end")}set markerEnd(e){this.setProperty("marker-end",e)}get markerMid(){return this.getPropertyValue("marker-mid")}set markerMid(e){this.setProperty("marker-mid",e)}get markerStart(){return this.getPropertyValue("marker-start")}set markerStart(e){this.setProperty("marker-start",e)}get mask(){return this.getPropertyValue("mask")}set mask(e){this.setProperty("mask",e)}get maskType(){return this.getPropertyValue("mask-type")}set maskType(e){this.setProperty("mask-type",e)}get maxBlockSize(){return this.getPropertyValue("max-block-size")}set maxBlockSize(e){this.setProperty("max-block-size",e)}get maxHeight(){return this.getPropertyValue("max-height")}set maxHeight(e){this.setProperty("max-height",e)}get maxInlineSize(){return this.getPropertyValue("max-inline-size")}set maxInlineSize(e){this.setProperty("max-inline-size",e)}get maxWidth(){return this.getPropertyValue("max-width")}set maxWidth(e){this.setProperty("max-width",e)}get maxZoom(){return this.getPropertyValue("max-zoom")}set maxZoom(e){this.setProperty("max-zoom",e)}get minBlockSize(){return this.getPropertyValue("min-block-size")}set minBlockSize(e){this.setProperty("min-block-size",e)}get minHeight(){return this.getPropertyValue("min-height")}set minHeight(e){this.setProperty("min-height",e)}get minInlineSize(){return this.getPropertyValue("min-inline-size")}set minInlineSize(e){this.setProperty("min-inline-size",e)}get minWidth(){return this.getPropertyValue("min-width")}set minWidth(e){this.setProperty("min-width",e)}get minZoom(){return this.getPropertyValue("min-zoom")}set minZoom(e){this.setProperty("min-zoom",e)}get mixBlendMode(){return this.getPropertyValue("mix-blend-mode")}set mixBlendMode(e){this.setProperty("mix-blend-mode",e)}get objectFit(){return this.getPropertyValue("object-fit")}set objectFit(e){this.setProperty("object-fit",e)}get objectPosition(){return this.getPropertyValue("object-position")}set objectPosition(e){this.setProperty("object-position",e)}get offset(){return this.getPropertyValue("offset")}set offset(e){this.setProperty("offset",e)}get offsetDistance(){return this.getPropertyValue("offset-distance")}set offsetDistance(e){this.setProperty("offset-distance",e)}get offsetPath(){return this.getPropertyValue("offset-path")}set offsetPath(e){this.setProperty("offset-path",e)}get offsetRotate(){return this.getPropertyValue("offset-rotate")}set offsetRotate(e){this.setProperty("offset-rotate",e)}get opacity(){return this.getPropertyValue("opacity")}set opacity(e){this.setProperty("opacity",e)}get order(){return this.getPropertyValue("order")}set order(e){this.setProperty("order",e)}get orientation(){return this.getPropertyValue("orientation")}set orientation(e){this.setProperty("orientation",e)}get orphans(){return this.getPropertyValue("orphans")}set orphans(e){this.setProperty("orphans",e)}get outline(){return this.getPropertyValue("outline")}set outline(e){this.setProperty("outline",e)}get outlineColor(){return this.getPropertyValue("outline-color")}set outlineColor(e){this.setProperty("outline-color",e)}get outlineOffset(){return this.getPropertyValue("outline-offset")}set outlineOffset(e){this.setProperty("outline-offset",e)}get outlineStyle(){return this.getPropertyValue("outline-style")}set outlineStyle(e){this.setProperty("outline-style",e)}get outlineWidth(){return this.getPropertyValue("outline-width")}set outlineWidth(e){this.setProperty("outline-width",e)}get overflow(){return this.getPropertyValue("overflow")}set overflow(e){this.setProperty("overflow",e)}get overflowAnchor(){return this.getPropertyValue("overflow-anchor")}set overflowAnchor(e){this.setProperty("overflow-anchor",e)}get overflowWrap(){return this.getPropertyValue("overflow-wrap")}set overflowWrap(e){this.setProperty("overflow-wrap",e)}get overflowX(){return this.getPropertyValue("overflow-x")}set overflowX(e){this.setProperty("overflow-x",e)}get overflowY(){return this.getPropertyValue("overflow-y")}set overflowY(e){this.setProperty("overflow-y",e)}get overscrollBehavior(){return this.getPropertyValue("overscroll-behavior")}set overscrollBehavior(e){this.setProperty("overscroll-behavior",e)}get overscrollBehaviorBlock(){return this.getPropertyValue("overscroll-behavior-block")}set overscrollBehaviorBlock(e){this.setProperty("overscroll-behavior-block",e)}get overscrollBehaviorInline(){return this.getPropertyValue("overscroll-behavior-inline")}set overscrollBehaviorInline(e){this.setProperty("overscroll-behavior-inline",e)}get overscrollBehaviorX(){return this.getPropertyValue("overscroll-behavior-x")}set overscrollBehaviorX(e){this.setProperty("overscroll-behavior-x",e)}get overscrollBehaviorY(){return this.getPropertyValue("overscroll-behavior-y")}set overscrollBehaviorY(e){this.setProperty("overscroll-behavior-y",e)}get overflowClipMargin(){return this.getPropertyValue("overflow-clip-margin")}set overflowClipMargin(e){this.setProperty("overflow-clip-margin",e)}get padding(){return this.getPropertyValue("padding")}set padding(e){this.setProperty("padding",e)}get paddingBlockEnd(){return this.getPropertyValue("padding-block-end")}set paddingBlockEnd(e){this.setProperty("padding-block-end",e)}get paddingBlockStart(){return this.getPropertyValue("padding-block-start")}set paddingBlockStart(e){this.setProperty("padding-block-start",e)}get paddingBottom(){return this.getPropertyValue("padding-bottom")}set paddingBottom(e){this.setProperty("padding-bottom",e)}get paddingInlineEnd(){return this.getPropertyValue("padding-inline-end")}set paddingInlineEnd(e){this.setProperty("padding-inline-end",e)}get paddingInlineStart(){return this.getPropertyValue("padding-inline-start")}set paddingInlineStart(e){this.setProperty("padding-inline-start",e)}get paddingLeft(){return this.getPropertyValue("padding-left")}set paddingLeft(e){this.setProperty("padding-left",e)}get paddingRight(){return this.getPropertyValue("padding-right")}set paddingRight(e){this.setProperty("padding-right",e)}get paddingTop(){return this.getPropertyValue("padding-top")}set paddingTop(e){this.setProperty("padding-top",e)}get page(){return this.getPropertyValue("page")}set page(e){this.setProperty("page",e)}get pageBreakAfter(){return this.getPropertyValue("page-break-after")}set pageBreakAfter(e){this.setProperty("page-break-after",e)}get pageBreakBefore(){return this.getPropertyValue("page-break-before")}set pageBreakBefore(e){this.setProperty("page-break-before",e)}get pageBreakInside(){return this.getPropertyValue("page-break-inside")}set pageBreakInside(e){this.setProperty("page-break-inside",e)}get pageOrientation(){return this.getPropertyValue("page-orientation")}set pageOrientation(e){this.setProperty("page-orientation",e)}get paintOrder(){return this.getPropertyValue("paint-order")}set paintOrder(e){this.setProperty("paint-order",e)}get perspective(){return this.getPropertyValue("perspective")}set perspective(e){this.setProperty("perspective",e)}get perspectiveOrigin(){return this.getPropertyValue("perspective-origin")}set perspectiveOrigin(e){this.setProperty("perspective-origin",e)}get placeContent(){return this.getPropertyValue("place-content")}set placeContent(e){this.setProperty("place-content",e)}get placeItems(){return this.getPropertyValue("place-items")}set placeItems(e){this.setProperty("place-items",e)}get placeSelf(){return this.getPropertyValue("place-self")}set placeSelf(e){this.setProperty("place-self",e)}get pointerEvents(){return this.getPropertyValue("pointer-events")}set pointerEvents(e){this.setProperty("pointer-events",e)}get position(){return this.getPropertyValue("position")}set position(e){this.setProperty("position",e)}get quotes(){return this.getPropertyValue("quotes")}set quotes(e){this.setProperty("quotes",e)}get r(){return this.getPropertyValue("r")}set r(e){this.setProperty("r",e)}get resize(){return this.getPropertyValue("resize")}set resize(e){this.setProperty("resize",e)}get right(){return this.getPropertyValue("right")}set right(e){this.setProperty("right",e)}get rowGap(){return this.getPropertyValue("row-gap")}set rowGap(e){this.setProperty("row-gap",e)}get rubyPosition(){return this.getPropertyValue("ruby-position")}set rubyPosition(e){this.setProperty("ruby-position",e)}get rx(){return this.getPropertyValue("rx")}set rx(e){this.setProperty("rx",e)}get ry(){return this.getPropertyValue("ry")}set ry(e){this.setProperty("ry",e)}get scrollBehavior(){return this.getPropertyValue("scroll-behavior")}set scrollBehavior(e){this.setProperty("scroll-behavior",e)}get scrollMargin(){return this.getPropertyValue("scroll-margin")}set scrollMargin(e){this.setProperty("scroll-margin",e)}get scrollMarginBlock(){return this.getPropertyValue("scroll-margin-block")}set scrollMarginBlock(e){this.setProperty("scroll-margin-block",e)}get scrollMarginBlockEnd(){return this.getPropertyValue("scroll-margin-block-end")}set scrollMarginBlockEnd(e){this.setProperty("scroll-margin-block-end",e)}get scrollMarginBlockStart(){return this.getPropertyValue("scroll-margin-block-start")}set scrollMarginBlockStart(e){this.setProperty("scroll-margin-block-start",e)}get scrollMarginBottom(){return this.getPropertyValue("scroll-margin-bottom")}set scrollMarginBottom(e){this.setProperty("scroll-margin-bottom",e)}get scrollMarginInline(){return this.getPropertyValue("scroll-margin-inline")}set scrollMarginInline(e){this.setProperty("scroll-margin-inline",e)}get scrollMarginInlineEnd(){return this.getPropertyValue("scroll-margin-inline-end")}set scrollMarginInlineEnd(e){this.setProperty("scroll-margin-inline-end",e)}get scrollMarginInlineStart(){return this.getPropertyValue("scroll-margin-inline-start")}set scrollMarginInlineStart(e){this.setProperty("scroll-margin-inline-start",e)}get scrollMarginLeft(){return this.getPropertyValue("scroll-margin-left")}set scrollMarginLeft(e){this.setProperty("scroll-margin-left",e)}get scrollMarginRight(){return this.getPropertyValue("scroll-margin-right")}set scrollMarginRight(e){this.setProperty("scroll-margin-right",e)}get scrollMarginTop(){return this.getPropertyValue("scroll-margin-top")}set scrollMarginTop(e){this.setProperty("scroll-margin-top",e)}get scrollPadding(){return this.getPropertyValue("scroll-padding")}set scrollPadding(e){this.setProperty("scroll-padding",e)}get scrollPaddingBlock(){return this.getPropertyValue("scroll-padding-block")}set scrollPaddingBlock(e){this.setProperty("scroll-padding-block",e)}get scrollPaddingBlockEnd(){return this.getPropertyValue("scroll-padding-block-end")}set scrollPaddingBlockEnd(e){this.setProperty("scroll-padding-block-end",e)}get scrollPaddingBlockStart(){return this.getPropertyValue("scroll-padding-block-start")}set scrollPaddingBlockStart(e){this.setProperty("scroll-padding-block-start",e)}get scrollPaddingBottom(){return this.getPropertyValue("scroll-padding-bottom")}set scrollPaddingBottom(e){this.setProperty("scroll-padding-bottom",e)}get scrollPaddingInline(){return this.getPropertyValue("scroll-padding-inline")}set scrollPaddingInline(e){this.setProperty("scroll-padding-inline",e)}get scrollPaddingInlineEnd(){return this.getPropertyValue("scroll-padding-inline-end")}set scrollPaddingInlineEnd(e){this.setProperty("scroll-padding-inline-end",e)}get scrollPaddingInlineStart(){return this.getPropertyValue("scroll-padding-inline-start")}set scrollPaddingInlineStart(e){this.setProperty("scroll-padding-inline-start",e)}get scrollPaddingLeft(){return this.getPropertyValue("scroll-padding-left")}set scrollPaddingLeft(e){this.setProperty("scroll-padding-left",e)}get scrollPaddingRight(){return this.getPropertyValue("scroll-padding-right")}set scrollPaddingRight(e){this.setProperty("scroll-padding-right",e)}get scrollPaddingTop(){return this.getPropertyValue("scroll-padding-top")}set scrollPaddingTop(e){this.setProperty("scroll-padding-top",e)}get scrollSnapAlign(){return this.getPropertyValue("scroll-snap-align")}set scrollSnapAlign(e){this.setProperty("scroll-snap-align",e)}get scrollSnapStop(){return this.getPropertyValue("scroll-snap-stop")}set scrollSnapStop(e){this.setProperty("scroll-snap-stop",e)}get scrollSnapType(){return this.getPropertyValue("scroll-snap-type")}set scrollSnapType(e){this.setProperty("scroll-snap-type",e)}get shapeImageThreshold(){return this.getPropertyValue("shape-image-threshold")}set shapeImageThreshold(e){this.setProperty("shape-image-threshold",e)}get shapeMargin(){return this.getPropertyValue("shape-margin")}set shapeMargin(e){this.setProperty("shape-margin",e)}get shapeOutside(){return this.getPropertyValue("shape-outside")}set shapeOutside(e){this.setProperty("shape-outside",e)}get shapeRendering(){return this.getPropertyValue("shape-rendering")}set shapeRendering(e){this.setProperty("shape-rendering",e)}get size(){return this.getPropertyValue("size")}set size(e){this.setProperty("size",e)}get speak(){return this.getPropertyValue("speak")}set speak(e){this.setProperty("speak",e)}get src(){return this.getPropertyValue("src")}set src(e){this.setProperty("src",e)}get stopColor(){return this.getPropertyValue("stop-color")}set stopColor(e){this.setProperty("stop-color",e)}get stopOpacity(){return this.getPropertyValue("stop-opacity")}set stopOpacity(e){this.setProperty("stop-opacity",e)}get stroke(){return this.getPropertyValue("stroke")}set stroke(e){this.setProperty("stroke",e)}get strokeDasharray(){return this.getPropertyValue("stroke-dasharray")}set strokeDasharray(e){this.setProperty("stroke-dasharray",e)}get strokeDashoffset(){return this.getPropertyValue("stroke-dashoffset")}set strokeDashoffset(e){this.setProperty("stroke-dashoffset",e)}get strokeLinecap(){return this.getPropertyValue("stroke-linecap")}set strokeLinecap(e){this.setProperty("stroke-linecap",e)}get strokeLinejoin(){return this.getPropertyValue("stroke-linejoin")}set strokeLinejoin(e){this.setProperty("stroke-linejoin",e)}get strokeMiterlimit(){return this.getPropertyValue("stroke-miterlimit")}set strokeMiterlimit(e){this.setProperty("stroke-miterlimit",e)}get strokeOpacity(){return this.getPropertyValue("stroke-opacity")}set strokeOpacity(e){this.setProperty("stroke-opacity",e)}get strokeWidth(){return this.getPropertyValue("stroke-width")}set strokeWidth(e){this.setProperty("stroke-width",e)}get syntax(){return this.getPropertyValue("syntax")}set syntax(e){this.setProperty("syntax",e)}get scrollbarGutter(){return this.getPropertyValue("scrollbar-gutter")}set scrollbarGutter(e){this.setProperty("scrollbar-gutter",e)}get tabSize(){return this.getPropertyValue("tab-size")}set tabSize(e){this.setProperty("tab-size",e)}get tableLayout(){return this.getPropertyValue("table-layout")}set tableLayout(e){this.setProperty("table-layout",e)}get textAlign(){return this.getPropertyValue("text-align")}set textAlign(e){this.setProperty("text-align",e)}get textAlignLast(){return this.getPropertyValue("text-align-last")}set textAlignLast(e){this.setProperty("text-align-last",e)}get textAnchor(){return this.getPropertyValue("text-anchor")}set textAnchor(e){this.setProperty("text-anchor",e)}get textCombineUpright(){return this.getPropertyValue("text-combine-upright")}set textCombineUpright(e){this.setProperty("text-combine-upright",e)}get textDecoration(){return this.getPropertyValue("text-decoration")}set textDecoration(e){this.setProperty("text-decoration",e)}get textDecorationColor(){return this.getPropertyValue("text-decoration-color")}set textDecorationColor(e){this.setProperty("text-decoration-color",e)}get textDecorationLine(){return this.getPropertyValue("text-decoration-line")}set textDecorationLine(e){this.setProperty("text-decoration-line",e)}get textDecorationSkipInk(){return this.getPropertyValue("text-decoration-skip-ink")}set textDecorationSkipInk(e){this.setProperty("text-decoration-skip-ink",e)}get textDecorationStyle(){return this.getPropertyValue("text-decoration-style")}set textDecorationStyle(e){this.setProperty("text-decoration-style",e)}get textIndent(){return this.getPropertyValue("text-indent")}set textIndent(e){this.setProperty("text-indent",e)}get textOrientation(){return this.getPropertyValue("text-orientation")}set textOrientation(e){this.setProperty("text-orientation",e)}get textOverflow(){return this.getPropertyValue("text-overflow")}set textOverflow(e){this.setProperty("text-overflow",e)}get textRendering(){return this.getPropertyValue("text-rendering")}set textRendering(e){this.setProperty("text-rendering",e)}get textShadow(){return this.getPropertyValue("text-shadow")}set textShadow(e){this.setProperty("text-shadow",e)}get textSizeAdjust(){return this.getPropertyValue("text-size-adjust")}set textSizeAdjust(e){this.setProperty("text-size-adjust",e)}get textTransform(){return this.getPropertyValue("text-transform")}set textTransform(e){this.setProperty("text-transform",e)}get textUnderlinePosition(){return this.getPropertyValue("text-underline-position")}set textUnderlinePosition(e){this.setProperty("text-underline-position",e)}get top(){return this.getPropertyValue("top")}set top(e){this.setProperty("top",e)}get touchAction(){return this.getPropertyValue("touch-action")}set touchAction(e){this.setProperty("touch-action",e)}get transform(){return this.getPropertyValue("transform")}set transform(e){this.setProperty("transform",e)}get transformBox(){return this.getPropertyValue("transform-box")}set transformBox(e){this.setProperty("transform-box",e)}get transformOrigin(){return this.getPropertyValue("transform-origin")}set transformOrigin(e){this.setProperty("transform-origin",e)}get transformStyle(){return this.getPropertyValue("transform-style")}set transformStyle(e){this.setProperty("transform-style",e)}get transition(){return this.getPropertyValue("transition")}set transition(e){this.setProperty("transition",e)}get transitionDelay(){return this.getPropertyValue("transition-delay")}set transitionDelay(e){this.setProperty("transition-delay",e)}get transitionDuration(){return this.getPropertyValue("transition-duration")}set transitionDuration(e){this.setProperty("transition-duration",e)}get transitionProperty(){return this.getPropertyValue("transition-property")}set transitionProperty(e){this.setProperty("transition-property",e)}get transitionTimingFunction(){return this.getPropertyValue("transition-timing-function")}set transitionTimingFunction(e){this.setProperty("transition-timing-function",e)}get textEmphasisColor(){return this.getPropertyValue("text-emphasis-color")}set textEmphasisColor(e){this.setProperty("text-emphasis-color",e)}get textEmphasisPosition(){return this.getPropertyValue("text-emphasis-position")}set textEmphasisPosition(e){this.setProperty("text-emphasis-position",e)}get textEmphasisStyle(){return this.getPropertyValue("text-emphasis-style")}set textEmphasisStyle(e){this.setProperty("text-emphasis-style",e)}get unicodeBidi(){return this.getPropertyValue("unicode-bidi")}set unicodeBidi(e){this.setProperty("unicode-bidi",e)}get unicodeRange(){return this.getPropertyValue("unicode-range")}set unicodeRange(e){this.setProperty("unicode-range",e)}get userSelect(){return this.getPropertyValue("user-select")}set userSelect(e){this.setProperty("user-select",e)}get userZoom(){return this.getPropertyValue("user-zoom")}set userZoom(e){this.setProperty("user-zoom",e)}get vectorEffect(){return this.getPropertyValue("vector-effect")}set vectorEffect(e){this.setProperty("vector-effect",e)}get verticalAlign(){return this.getPropertyValue("vertical-align")}set verticalAlign(e){this.setProperty("vertical-align",e)}get visibility(){return this.getPropertyValue("visibility")}set visibility(e){this.setProperty("visibility",e)}get whiteSpace(){return this.getPropertyValue("white-space")}set whiteSpace(e){this.setProperty("white-space",e)}get widows(){return this.getPropertyValue("widows")}set widows(e){this.setProperty("widows",e)}get width(){return this.getPropertyValue("width")}set width(e){this.setProperty("width",e)}get willChange(){return this.getPropertyValue("will-change")}set willChange(e){this.setProperty("will-change",e)}get wordBreak(){return this.getPropertyValue("word-break")}set wordBreak(e){this.setProperty("word-break",e)}get wordSpacing(){return this.getPropertyValue("word-spacing")}set wordSpacing(e){this.setProperty("word-spacing",e)}get wordWrap(){return this.getPropertyValue("word-wrap")}set wordWrap(e){this.setProperty("word-wrap",e)}get writingMode(){return this.getPropertyValue("writing-mode")}set writingMode(e){this.setProperty("writing-mode",e)}get x(){return this.getPropertyValue("x")}set x(e){this.setProperty("x",e)}get y(){return this.getPropertyValue("y")}set y(e){this.setProperty("y",e)}get zIndex(){return this.getPropertyValue("z-index")}set zIndex(e){this.setProperty("z-index",e)}get zoom(){return this.getPropertyValue("zoom")}set zoom(e){this.setProperty("zoom",e)}get containerType(){return this.getPropertyValue("container-type")}set containerType(e){this.setProperty("container-type",e)}get containerName(){return this.getPropertyValue("container-name")}set containerName(e){this.setProperty("container-name",e)}get aspectRatio(){return this.getPropertyValue("aspect-ratio")}set aspectRatio(e){this.setProperty("aspect-ratio",e)}get length(){return F(this,Mn,Ua).call(this).size()}get cssText(){return u(this,ci)&&u(this,Tl)?"":F(this,Mn,Ua).call(this).toString()}set cssText(e){if(u(this,Tl))throw new this[y].DOMException("Failed to execute 'cssText' on 'CSSStyleDeclaration': These styles are computed, and the properties are therefore read-only.",A.domException);u(this,ci)?(u(this,di).propertyManager=new vs({cssText:e}),u(this,di).attributeValue=e,u(this,ci).setAttribute("style",u(this,di).propertyManager.toString())):u(this,di).propertyManager=new vs({cssText:e})}item(e){return F(this,Mn,Ua).call(this).item(e)}setProperty(e,t,r){if(u(this,Tl))throw new this[y].DOMException(`Failed to execute 'setProperty' on 'CSSStyleDeclaration': These styles are computed, and therefore the '${e}' property is read-only.`,A.domException);if(r!==""&&r!==void 0&&r!=="important")return;let o=String(t).trim(),i=F(this,Mn,Ua).call(this);o?i.set(e,o,!!r):i.remove(e),u(this,ci)&&(u(this,di).attributeValue=i.toString(),u(this,di).attributeValue?u(this,ci).setAttribute("style",u(this,di).attributeValue):u(this,ci).removeAttribute("style"))}removeProperty(e){if(u(this,Tl))throw new this[y].DOMException(`Failed to execute 'removeProperty' on 'CSSStyleDeclaration': These styles are computed, and therefore the '${e}' property is read-only.`,A.domException);let t=F(this,Mn,Ua).call(this);t.remove(e),u(this,ci)&&(u(this,di).attributeValue=t.toString(),u(this,di).attributeValue?u(this,ci).setAttribute("style",u(this,di).attributeValue):u(this,ci).removeAttribute("style"))}getPropertyValue(e){return F(this,Mn,Ua).call(this).get(e)?.value||""}getPropertyPriority(e){return F(this,Mn,Ua).call(this).get(e)?.important?"important":""}};ci=new WeakMap,Tl=new WeakMap,di=new WeakMap,Mn=new WeakSet,Ua=function(){let e=u(this,ci),t=u(this,di);if(!e)return t.propertyManager||(t.propertyManager=new vs),t.propertyManager;if(u(this,Tl))return new Kd(e).getComputedStyle();let r=e.getAttribute("style")||"";return t.attributeValue!==r&&(t.propertyManager=new vs({cssText:r})),t.propertyManager};var jx,zx,Zi=class extends(zx=Ji,jx=Uo,zx){constructor(){super(...arguments);s(this,jx,"")}get conditionText(){return this[Uo]}};var Xx,Yx,Kx,Ga=class extends(Kx=Zi,Yx=Xt,Xx=mo,Kx){constructor(){super(...arguments);s(this,Yx,pt.containerRule);s(this,Xx,"")}get type(){return pt.containerRule}get cssText(){let t="";for(let r of this[or])t+=`
13
+ `+r.cssText;return t+=`
14
+ `,`@${this[mo]}container ${this[Uo]} {${t}}`}};var Jx,Zx,Ha,$a=class extends(Zx=Me,Jx=Yr,Zx){constructor(){super(...arguments);s(this,Jx,"");x(this,Ha,null)}get type(){return pt.fontFaceRule}get cssText(){return`@font-face { ${this.style.cssText} }`}get style(){return u(this,Ha)||(w(this,Ha,new uo(h,this[y])),u(this,Ha).parentRule=this,u(this,Ha).cssText=this[Yr]),u(this,Ha)}};Ha=new WeakMap;var Qx,tE,eE,qa,Rn=class extends(eE=Me,tE=Ln,Qx=Yr,eE){constructor(){super(...arguments);s(this,tE,"");s(this,Qx,"");x(this,qa,null)}get type(){return pt.keyframeRule}get cssText(){return`${this[Ln]} { ${this.style.cssText} }`}get style(){return u(this,qa)||(w(this,qa,new uo(h,this[y])),u(this,qa).parentRule=this,u(this,qa).cssText=this[Yr]),u(this,qa)}get keyText(){return this[Ln]}};qa=new WeakMap;var U_=/^(from|to|[0-9]{1,3}%)\s*{([^}]*)}$/,rE,oE,iE,sE,Wa=class extends(sE=Me,iE=or,oE=nt,rE=mo,sE){constructor(){super(...arguments);s(this,iE,[]);s(this,oE,"");s(this,rE,"")}get type(){return pt.keyframesRule}get cssText(){let t="";for(let r of this[or])t+=`
15
+ `+r.cssText;return t+=`
16
+ `,`@${this[mo]}keyframes ${this[nt]} { ${t}}`}get cssRules(){return this[or]}get name(){return this[nt]}get length(){return this[or].length}appendRule(t){if(arguments.length===0)throw new this[y].TypeError("Failed to execute 'appendRule' on 'CSSKeyframesRule': 1 argument required, but only 0 present.");let r=String(t).trim().match(U_);if(!r)throw new this[y].DOMException("Invalid or unexpected token",A.syntaxError);let o=new Rn(h,this[y],this[pm]),i=r[1].trim();i==="from"?i="0%":i==="to"&&(i="100%"),o[Pl]=this,o[Ln]=i,o[Yr]=r[2].trim(),this[or].push(o)}deleteRule(t){if(arguments.length===0)throw new this[y].TypeError("Failed to execute 'deleteRule' on 'CSSKeyframesRule': 1 argument required, but only 0 present.");for(let r=0,o=this[or].length;r<o;r++)if(this[or][r][Ln]===t){this[or].splice(r,1);return}}findRule(t){if(arguments.length===0)throw new this[y].TypeError("Failed to execute 'findRule' on 'CSSKeyframesRule': 1 argument required, but only 0 present.");for(let r=0,o=this[or].length;r<o;r++)if(this[or][r][Ln]===t)return this[or][r];return null}};var nE=/\s*,\s*/,lE,ja=class l{constructor(e,t){s(this,lE);if(e!==h)throw new TypeError("Illegal constructor");this[wl]=t;let r=new xe(this,[l]);return new Proxy(this,{get:(o,i)=>{if(i in o||typeof i=="symbol")return r.bind(i),o[i];let n=Number(i);if(!isNaN(n))return o[z]()[n]},set(o,i,n){return r.bind(i),(i in o||typeof i=="symbol")&&(o[i]=n),!0},deleteProperty(o,i){return(i in o||typeof i=="symbol")&&delete o[i],!0},ownKeys(o){return Object.keys(o[z]())},has(o,i){if(typeof i=="symbol")return!1;if(i in o)return!0;let n=Number(i);return!isNaN(n)&&n>=0&&n<o[z]().length},defineProperty(o,i,n){return r.preventBinding(i),i in o?(Object.defineProperty(o,i,n),!0):!1},getOwnPropertyDescriptor(o,i){if(i in o||typeof i=="symbol")return;let n=Number(i),a=o[z]();if(!isNaN(n)&&a[n])return{value:a[n],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[z]().length}get mediaText(){return this[wl][Uo]}set mediaText(e){this[wl][Uo]=e===null?"":String(e).split(nE).join(", ")}item(e){return this[z]()[Number(e)]||null}appendMedium(e){let t=this[z]();t.indexOf(e)===-1&&(t.push(e),this[wl][Uo]=t.join(", "))}deleteMedium(e){let t=this[z](),r=t.indexOf(e);r!==-1&&(t.splice(r,1),this[wl][Uo]=t.join(", "))}[(lE=wl,z)](){return this[wl][Uo].trim()?this[wl][Uo].split(nE):[]}};var aE,yE,za=class extends(yE=Zi,aE=gP,yE){constructor(){super(...arguments);s(this,aE,new ja(h,this))}get type(){return pt.mediaRule}get cssText(){let t="";for(let r of this[or])t+=`
17
+ `+r.cssText;return t+=t?`
18
+ `:" ",`@media ${this.conditionText} {${t}}`}get media(){return this[gP]}get conditionText(){return this.media.mediaText}};var Iu,Nl=class{constructor(e){x(this,Iu);w(this,Iu,e)}get value(){return u(this,Iu)}set value(e){w(this,Iu,e)}};Iu=new WeakMap;var Jd,Zd,Ll=class{constructor(e,t,r){x(this,Jd);x(this,Zd);if(e!==h)throw new TypeError("Illegal constructor");w(this,Jd,t),w(this,Zd,r)}toString(){return u(this,Jd).getPropertyValue(u(this,Zd))}};Jd=new WeakMap,Zd=new WeakMap;var mE,Xa=class{constructor(e,t){s(this,mE);if(e!==h)throw new TypeError("Illegal constructor");this[Ee]=t}get size(){return this[Ee].length}[(mE=Ee,Symbol.iterator)](){return this.entries()}entries(){let e=this[Ee].length,t=new Array(e);for(let r=0;r<e;r++){let o=this[Ee][r];t[r]=[o,[new Nl(this[Ee].getPropertyValue(o))]]}return t.values()}values(){let e=this[Ee].length,t=new Array(e);for(let r=0;r<e;r++){let o=this[Ee][r];t[r]=[new Nl(this[Ee].getPropertyValue(o))]}return t.values()}keys(){let e=this[Ee].length,t=new Array(e);for(let r=0;r<e;r++)t[r]=this[Ee][r];return t.values()}get(e){return new Ll(h,this[Ee],e)}getAll(e){return[new Ll(h,this[Ee],e)]}has(e){return!!this[Ee].getPropertyValue(e)}};var Ya=class extends Xa{append(e,t){this[Ee].setProperty(e,t)}clear(){this[Ee].cssText=""}delete(e){this[Ee].removeProperty(e)}set(e,t){this[Ee].setProperty(e,t)}};var uE,pE,hE,cE,Ka,On=class extends(cE=Ji,hE=$d,pE=um,uE=Yr,cE){constructor(){super(...arguments);s(this,hE,null);s(this,pE,"");s(this,uE,"");x(this,Ka,null)}get type(){return pt.styleRule}get cssText(){return`${this[um]} { ${this.style.cssText} }`}get styleMap(){return this[$d]||(this[$d]=new Ya(h,this.style)),this[$d]}get selectorText(){return this[um]}get style(){return u(this,Ka)||(w(this,Ka,new uo(h,this[y])),u(this,Ka).parentRule=this,u(this,Ka).cssText=this[Yr]),u(this,Ka)}};Ka=new WeakMap;var dE,bE,gE,Ja=class extends(gE=Zi,bE=Xt,dE=mo,gE){constructor(){super(...arguments);s(this,bE,pt.supportsRule);s(this,dE,"")}get type(){return pt.supportsRule}get cssText(){let t="";for(let r of this[or])t+=`
19
+ `+r.cssText;return t+=`
20
+ `,`@${this[mo]}supports ${this.conditionText} {${t}}`}};var $t={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg",mathML:"http://www.w3.org/1998/Math/MathML",xml:"http://www.w3.org/XML/1998/namespace",xlink:"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"};var fE=new Map,SE=new Map,G_=/[A-Z]/g,H_=/[a-z]/g,ro=class{static asciiLowerCase(e){let t=fE.get(e);if(t)return t;let r=e.replace(G_,o=>String.fromCharCode(o.charCodeAt(0)+32));return fE.set(e,r),r}static asciiUpperCase(e){let t=SE.get(e);if(t)return t;let r=e.replace(H_,o=>String.fromCharCode(o.charCodeAt(0)-32));return SE.set(e,r),r}};var PE="[-_.]|[0-9]|[a-z]|\xB7|[\xC0-\xD6]|[\xD8-\xF6]|[\xF8-\u037D]|[\u037F-\u1FFF]|[\u200C-\u200D]|[\u203F-\u2040]|[\u2070-\u218F]|[\u2C00-\u2FEF]|[\u3001-\uD7FF]|[\uF900-\uFDCF]|[\uFDF0-\uFFFD]|[\u{10000}-\u{EFFFF}]",$_=new RegExp(`^[a-z](${PE})*-(${PE})*$`,"u"),q_=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"],Fu=class{static isValidCustomElementName(e){return $_.test(e)&&!q_.includes(e)}};var wE,xE,EE,vE,As,gm=class{constructor(e){s(this,vE,new Map);s(this,EE,new Map);s(this,xE,new Map);s(this,wE,!1);x(this,As);if(!e)throw new TypeError("Illegal constructor");w(this,As,e)}define(e,t,r){if(this[Lc])return;if(!Fu.isValidCustomElementName(e))throw new(u(this,As)).DOMException(`Failed to execute 'define' on 'CustomElementRegistry': "${e}" is not a valid custom element name`);if(this[fs].has(e))throw new(u(this,As)).DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${e}" has already been used with this registry`);if(this[wu].has(t))throw new(u(this,As)).DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let o=ro.asciiUpperCase(e);t.prototype[y]=u(this,As),t.prototype[T]=u(this,As).document,t.prototype[tt]=o,t.prototype[dt]=e,t.prototype[et]=$t.html;let i=new Set,n=t.observedAttributes;if(Array.isArray(n))for(let m of n)i.add(String(m).toLowerCase());this[fs].set(e,{elementClass:t,extends:r&&r.extends?r.extends.toLowerCase():null,observedAttributes:i,livecycleCallbacks:{connectedCallback:t.prototype.connectedCallback,disconnectedCallback:t.prototype.disconnectedCallback,attributeChangedCallback:t.prototype.attributeChangedCallback}}),this[wu].set(t,e);let a=this[gs].get(e);if(a){this[gs].delete(e);for(let m of a)m()}}get(e){return this[fs].get(e)?.elementClass}upgrade(e){}whenDefined(e){return this[Lc]?Promise.reject(new(u(this,As)).DOMException("Failed to execute 'whenDefined' on 'CustomElementRegistry': The custom element registry has been destroyed.")):Fu.isValidCustomElementName(e)?this.get(e)?Promise.resolve():new Promise(t=>{let r=this[gs].get(e);r?r.push(t):this[gs].set(e,[t])}):Promise.reject(new(u(this,As)).DOMException(`Failed to execute 'whenDefined' on 'CustomElementRegistry': Invalid custom element name: "${e}"`))}getName(e){return this[wu].get(e)||null}[(vE=fs,EE=wu,xE=gs,wE=Lc,ye)](){this[Lc]=!0;for(let e of this[fs].values())e.elementClass.prototype[y]=null,e.elementClass.prototype[T]=null,e.elementClass.prototype[tt]=null,e.elementClass.prototype[dt]=null,e.elementClass.prototype[et]=null;this[fs]=new Map,this[wu]=new Map,this[gs]=new Map}};As=new WeakMap;var Du,Ts=class{constructor(e,t=""){s(this,"kind");s(this,"type");x(this,Du,null);this.kind=typeof e=="string"?"string":"file",this.type=this.kind==="string"?t:e.type,w(this,Du,e)}getAsFile(){return this.kind==="string"?null:u(this,Du)}getAsString(e){this.kind,e(u(this,Du))}};Du=new WeakMap;var Go=class extends ce{constructor(t,r,o){if(arguments.length<2)throw new TypeError("Failed to construct 'File': 2 arguments required, but only "+arguments.length+" present.");super(t,o);s(this,"lastModified");s(this,"name");this.name=r,this.lastModified=o&&o.lastModified?o.lastModified:Date.now()}};var Za=class extends Array{add(e,t){if(e instanceof Go){this.push(new Ts(e));return}if(!t)throw new TypeError("Failed to execute 'add' on 'DataTransferItemList': parameter 1 is not of type 'File'.");this.push(new Ts(e,t))}remove(e){this.splice(e,1)}clear(){for(;this.length;)this.pop()}};var _u=class{constructor(){s(this,"dropEffect","none");s(this,"effectAllowed","none");s(this,"items",new Za)}get files(){let e=[];for(let t of this.items)if(t.kind==="file"){let r=t.getAsFile();r&&e.push(r)}return e}get types(){return this.items.map(e=>e.type)}clearData(){this.items.clear()}setData(e,t){for(let r=0,o=this.items.length;r<o;r++)if(this.items[r].type===e){this.items[r]=new Ts(t,e);return}this.items.add(t,e)}getData(e){for(let t=0,r=this.items.length;t<r;t++)if(this.items[t].type===e){let o="";return this.items[t].getAsString(i=>o=i),o}return""}setDragImage(){throw new Error("Not implemented.")}};var Bu=class{constructor(e){s(this,"identifier");s(this,"target");s(this,"clientX");s(this,"clientY");s(this,"screenX");s(this,"screenY");s(this,"pageX");s(this,"pageY");s(this,"radiusX");s(this,"radiusY");s(this,"rotationAngle");s(this,"force");this.identifier=e.identifier,this.target=e.target,this.clientX=e.clientX??0,this.clientY=e.clientY??0,this.screenX=e.screenX??0,this.screenY=e.screenY??0,this.pageX=e.pageX??0,this.pageY=e.pageY??0,this.radiusX=e.radiusX??0,this.radiusY=e.radiusY??0,this.rotationAngle=e.rotationAngle??0,this.force=e.force??0}};var Ye=class extends R{constructor(t,r=null){super(t,r);s(this,"detail");s(this,"layerX",0);s(this,"layerY",0);s(this,"pageX",0);s(this,"pageY",0);s(this,"view");this.detail=r?.detail??0,this.view=r?.view??null}};s(Ye,"NONE",0),s(Ye,"CAPTURING_PHASE",1),s(Ye,"AT_TARGET",2),s(Ye,"BUBBLING_PHASE",3);var Uu=class extends R{constructor(t,r=null){super(t,r);s(this,"animationName");s(this,"elapsedTime");s(this,"pseudoElement");this.animationName=r?.animationName??"",this.elapsedTime=r?.elapsedTime??0,this.pseudoElement=r?.pseudoElement??""}};var Gu=class extends R{constructor(t,r=null){super(t,r);s(this,"clipboardData");this.clipboardData=r?.clipboardData??null}};var AE,TE,Hu=class extends(TE=R,AE=Nc,TE){constructor(t,r=null){super(t,r);s(this,AE);this[Nc]=r?.detail??null}get detail(){return this[Nc]}initCustomEvent(t,r=!1,o=!1,i=null){this[Xt]=t,this[dl]=r,this[ln]=o,this[Nc]=i}};var Vn=class extends Ye{constructor(t,r=null){super(t,r);s(this,"message");s(this,"filename");s(this,"lineno");s(this,"colno");s(this,"error");this.message=r?.message??"",this.filename=r?.filename??"",this.lineno=r?.lineno??0,this.colno=r?.colno??0,this.error=r?.error??null}};var Ns=class extends Ye{constructor(t,r=null){super(t,r);s(this,"relatedTarget");this.relatedTarget=r?.relatedTarget??null}};var Qa=class extends R{constructor(t,r=null){super(t,r);s(this,"newURL");s(this,"oldURL");this.newURL=r?.newURL??"",this.oldURL=r?.oldURL??""}};var $u=class extends Ye{constructor(t,r=null){super(t,r);s(this,"data");s(this,"dataTransfer");s(this,"inputType");s(this,"isComposing");this.data=r?.data??"",this.dataTransfer=r?.dataTransfer??null,this.inputType=r?.inputType??"",this.isComposing=r?.isComposing??!1}};var In=class extends Ye{constructor(t,r=null){super(t,r);s(this,"altKey");s(this,"code");s(this,"ctrlKey");s(this,"isComposing");s(this,"key");s(this,"location");s(this,"metaKey");s(this,"repeat");s(this,"shiftKey");s(this,"keyCode");this.altKey=r?.altKey??!1,this.code=r?.code??"",this.ctrlKey=r?.ctrlKey??!1,this.isComposing=r?.isComposing??!1,this.key=r?.key??"",this.location=r?.location??0,this.metaKey=r?.metaKey??!1,this.repeat=r?.repeat??!1,this.shiftKey=r?.shiftKey??!1,this.keyCode=r?.keyCode??0}getModifierState(t){if(arguments.length<1)throw new TypeError("Failed to execute 'getModifierState' on 'KeyboardEvent': 1 argument required, but only 0 present.");switch(String(t).toLowerCase()){case"alt":case"altgraph":return this.altKey;case"control":return this.ctrlKey;case"meta":return this.metaKey;case"shift":return this.shiftKey;default:return!1}}};s(In,"DOM_KEY_LOCATION_STANDARD",0),s(In,"DOM_KEY_LOCATION_LEFT",1),s(In,"DOM_KEY_LOCATION_RIGHT",2),s(In,"DOM_KEY_LOCATION_NUMPAD",3);var qu=class extends R{constructor(t,r=null){super(t,r);s(this,"data");s(this,"origin");s(this,"lastEventId");s(this,"source");s(this,"ports");this.data=r?.data??null,this.origin=r?.origin??"",this.lastEventId=r?.lastEventId??"",this.source=r?.source??null,this.ports=r?.ports??[]}};var sr=class extends Ye{constructor(t,r=null){super(t,r);s(this,"altKey");s(this,"button");s(this,"buttons");s(this,"clientX");s(this,"clientY");s(this,"ctrlKey");s(this,"metaKey");s(this,"movementX");s(this,"movementY");s(this,"offsetX");s(this,"offsetY");s(this,"region");s(this,"relatedTarget");s(this,"screenX");s(this,"screenY");s(this,"shiftKey");this.altKey=r?.altKey??!1,this.button=r?.button??0,this.buttons=r?.buttons??0,this.clientX=r?.clientX??0,this.clientY=r?.clientY??0,this.ctrlKey=r?.ctrlKey??!1,this.metaKey=r?.metaKey??!1,this.movementX=r?.movementX??0,this.movementY=r?.movementY??0,this.offsetX=r?.offsetX??0,this.offsetY=r?.offsetY??0,this.region=r?.region??"",this.relatedTarget=r?.relatedTarget??null,this.screenX=r?.screenX??0,this.screenY=r?.screenY??0,this.shiftKey=r?.shiftKey??!1}};var ty=class extends sr{constructor(t,r=null){super(t,r);s(this,"pointerId");s(this,"width");s(this,"height");s(this,"pressure");s(this,"tangentialPressure");s(this,"tiltX");s(this,"tiltY");s(this,"twist");s(this,"altitudeAngle");s(this,"azimuthAngle");s(this,"pointerType");s(this,"isPrimary");s(this,"coalescedEvents");s(this,"predictedEvents");s(this,"getCoalescedEvents",()=>this.coalescedEvents);s(this,"getPredictedEvents",()=>this.predictedEvents);this.pointerId=r?.pointerId??0,this.width=r?.width??1,this.height=r?.height??1,this.pressure=r?.pressure??0,this.tangentialPressure=r?.tangentialPressure??0,this.tiltX=r?.tiltX??0,this.tiltY=r?.tiltY??0,this.twist=r?.twist??0,this.altitudeAngle=r?.altitudeAngle??0,this.azimuthAngle=r?.azimuthAngle??0,this.pointerType=r?.pointerType??"",this.isPrimary=r?.isPrimary??!1,this.coalescedEvents=r?.coalescedEvents??[],this.predictedEvents=r?.predictedEvents??[]}};var Ho=class extends R{constructor(t,r=null){super(t);s(this,"lengthComputable");s(this,"loaded");s(this,"total");this.lengthComputable=r?.lengthComputable??!1,this.loaded=r?.loaded??0,this.total=r?.total??0}};var Qd=class extends R{constructor(t,r=null){super(t);s(this,"key");s(this,"oldValue");s(this,"newValue");s(this,"url");s(this,"storageArea");this.key=r?.key??null,this.oldValue=r?.oldValue??null,this.newValue=r?.newValue??null,this.url=r?.url??"",this.storageArea=r?.storageArea??null}};var ey=class extends R{constructor(t,r=null){super(t,r);s(this,"submitter");this.submitter=r?.submitter??null}};var Wu=class extends Ye{constructor(t,r=null){super(t,r);s(this,"altKey");s(this,"changedTouches");s(this,"ctrlKey");s(this,"metaKey");s(this,"shiftKey");s(this,"targetTouches");s(this,"touches");this.altKey=r?.altKey??!1,this.changedTouches=r?.changedTouches??[],this.ctrlKey=r?.ctrlKey??!1,this.metaKey=r?.metaKey??!1,this.shiftKey=r?.shiftKey??!1,this.targetTouches=r?.targetTouches??[],this.touches=r?.touches??[]}};var Cl=class extends Ye{constructor(t,r=null){super(t,r);s(this,"deltaX");s(this,"deltaY");s(this,"deltaZ");s(this,"deltaMode");this.deltaX=r?.deltaX??0,this.deltaY=r?.deltaY??0,this.deltaZ=r?.deltaZ??0,this.deltaMode=r?.deltaMode??0}};s(Cl,"DOM_DELTA_PIXEL",0),s(Cl,"DOM_DELTA_LINE",1),s(Cl,"DOM_DELTA_PAGE",2);import{URL as W_}from"url";import{Blob as j_}from"buffer";var Ie=class extends W_{constructor(e,t){try{super(e,t)}catch(r){throw super("about:blank"),this[y]?new this[y].TypeError("Invalid URL"):r}}static createObjectURL(e){if(e instanceof ce){let t=new j_([e[Ct]],{type:e.type});return super.createObjectURL(t)}return super.createObjectURL(e)}};import{isIP as z_}from"net";var X_=/^(about|blob|data):$/,Y_=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"],Ls=class{static prepareRequest(e,t){t.referrerPolicy||(t[Nu]="strict-origin-when-cross-origin"),t.referrer&&t.referrer!=="no-referrer"?t[Kr]=this.getSentReferrer(e,t):t[Kr]="no-referrer"}static getInitialReferrer(e,t){if(t===""||t==="no-referrer"||t==="client")return t;if(t){let r=t instanceof Ie?t:new Ie(t,e.location.href);return r.origin===e.location.origin?r:"client"}return"client"}static getReferrerPolicyFromHeader(e){let t=e.get("Referrer-Policy");if(!t)return"";let r=t.split(/[,\s]+/),o="";for(let i of r)i&&Y_.includes(i)&&(o=i);return o}static getSentReferrer(e,t){if(t.referrer==="about:client"&&e.origin==="null")return"no-referrer";let r=new Ie(t.url),o=t.referrer==="about:client"?new Ie(e.href):new Ie(t.referrer);if(X_.test(o.protocol))return"no-referrer";switch(o.username="",o.password="",o.hash="",t.referrerPolicy){case"no-referrer":return"no-referrer";case"origin":return new Ie(o.origin);case"unsafe-url":return o;case"strict-origin":return this.isURLPotentiallyTrustWorthy(o)&&!this.isURLPotentiallyTrustWorthy(r)?"no-referrer":new Ie(o.origin);case"strict-origin-when-cross-origin":return o.origin===r.origin?o:this.isURLPotentiallyTrustWorthy(o)&&!this.isURLPotentiallyTrustWorthy(r)?"no-referrer":new Ie(o.origin);case"same-origin":return o.origin===r.origin?o:"no-referrer";case"origin-when-cross-origin":return o.origin===r.origin?o:new Ie(o.origin);case"no-referrer-when-downgrade":return this.isURLPotentiallyTrustWorthy(o)&&!this.isURLPotentiallyTrustWorthy(r)?"no-referrer":o}return"no-referrer"}static isURLPotentiallyTrustWorthy(e){return/^about:(blank|srcdoc)$/.test(e.href)||e.protocol==="data:"||/^(blob|filesystem):$/.test(e.protocol)?!0:this.isOriginPotentiallyTrustWorthy(e)}static isOriginPotentiallyTrustWorthy(e){if(/^(http|ws)s:$/.test(e.protocol))return!0;let t=e.host.replace(/(^\[)|(]$)/g,""),r=z_(t);return r===4&&/^127\./.test(t)||r===6&&/^(((0+:){7})|(::(0+:){0,6}))0*1$/.test(t)?!0:e.host==="localhost"||e.host.endsWith(".localhost")?!1:e.protocol==="file:"}};import a2 from"http";import y2 from"https";import Xu from"zlib";import{URL as lS}from"url";import QE from"fs";import m2 from"path";import Ol from"stream";var fm=class{static parse(e){if(!/^data:/i.test(e))throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');e=e.replace(/\r?\n/g,"");let t=e.indexOf(",");if(t===-1||t<=4)throw new TypeError("malformed data: URI");let r=e.substring(5,t).split(";"),o="",i=!1,n=r[0]||"text/plain";for(let b=1;b<r.length;b++)r[b]==="base64"?i=!0:r[b]&&(n+=`;${r[b]}`,r[b].indexOf("charset=")===0&&(o=r[b].substring(8)));!r[0]&&!o.length&&(n+=";charset=US-ASCII",o="US-ASCII");let a=i?"base64":"ascii",m=unescape(e.substring(t+1)),p=Buffer.from(m,a);return{type:n,charset:o,buffer:p}}};import{URL as NE}from"url";var Ci=class{static isCORS(e,t){return e=typeof e=="string"?new NE(e):e,t=typeof t=="string"?new NE(t):t,t.protocol==="about:"||t.protocol==="javascript:"?!1:e.hostname!==t.hostname&&!e.hostname.endsWith(t.hostname)||e.protocol!==t.protocol}};import{URL as MP}from"url";import{ReadableStream as K_}from"stream/web";var Qi;(function(l){l[l.boundary=0]="boundary",l[l.headerStart=2]="headerStart",l[l.header=3]="header",l[l.data=5]="data"})(Qi||(Qi={}));var iS={lf:10,cr:13},tb=class{constructor(e,t){s(this,"formData");s(this,"boundary");s(this,"boundaryIndex",0);s(this,"state",Qi.boundary);s(this,"data",{contentDisposition:null,value:[],contentType:null,header:""});let r=`--${t}`;this.boundary=new Uint8Array(r.length),this.formData=new e.FormData;for(let o=0,i=r.length;o<i;o++)this.boundary[o]=r.charCodeAt(o)}write(e){let t,r;for(let o=0,i=e.length;o<i;o++)switch(t=e[o],r=e[o+1],this.state){case Qi.boundary:t===this.boundary[this.boundaryIndex]?this.boundaryIndex++:this.boundaryIndex=0,this.boundaryIndex===this.boundary.length&&(this.state=Qi.headerStart,this.boundaryIndex=0);break;case Qi.headerStart:r!==iS.cr&&r!==iS.lf&&(this.data.header="",this.state=e[o-2]===iS.lf?Qi.data:Qi.header);break;case Qi.header:if(t===iS.cr){if(this.data.header){let n=this.data.header.split(":");if(n.length>1){let a=n[0].toLowerCase(),m=n[1].trim();switch(a){case"content-disposition":this.data.contentDisposition=this.getContentDisposition(m);break;case"content-type":this.data.contentType=m;break}}}this.state=Qi.headerStart}else this.data.header+=String.fromCharCode(t);break;case Qi.data:t===this.boundary[this.boundaryIndex]?this.boundaryIndex++:this.boundaryIndex=0,this.boundaryIndex===this.boundary.length?(this.state=Qi.headerStart,this.data.value.length&&(this.appendFormData(this.data.contentDisposition.name,Buffer.from(this.data.value.slice(0,-(this.boundary.length+1))),this.data.contentDisposition.filename,this.data.contentType),this.data.value=[],this.data.contentDisposition=null,this.data.contentType=null),this.boundaryIndex=0):this.data.value.push(t);break}}end(){return this.data.contentDisposition&&this.data.value.length&&this.appendFormData(this.data.contentDisposition.name,Buffer.from(this.data.value.slice(0,-2)),this.data.contentDisposition.filename,this.data.contentType),this.formData}appendFormData(e,t,r,o){t.length&&(r?this.formData.append(e,new Go([t],r,{type:o})):this.formData.append(e,t.toString()))}getContentDisposition(e){let t=/([a-z]+) *= *"([^"]+)"/g,r={},o;for(;o=t.exec(e);)r[o[1]]=o[2];return r}};import{Buffer as Sm}from"buffer";var kl=class{static async streamToFormData(e,t,r){if(!/multipart/i.test(r))throw new e.DOMException(`Failed to build FormData object: The "content-type" header isn't of type "multipart/form-data".`,A.invalidStateError);let o=t.body;if(!o)throw new e.DOMException("Failed to build FormData object: The response body is null.",A.invalidStateError);let i=r.match(/boundary=(?:"([^"]+)"|([^;]+))/i);if(!i)throw new e.DOMException(`Failed to build FormData object: The "content-type" header doesn't contain any multipart boundary.`,A.invalidStateError);let n=o.getReader(),a=new tb(e,i[1]||i[2]),m=[],p,b=0,d=await n.read();for(;!d.done;){if(t[pr])throw t[pr];if(t[we])throw new e.DOMException("Failed to read response body: The stream was aborted.",A.abortError);a.write(d.value),d=await n.read()}try{p=typeof m[0]=="string"?Sm.from(m.join("")):Sm.concat(m,b)}catch(f){throw new e.DOMException(`Could not create Buffer from response body. Error: ${f.message}.`,A.invalidStateError)}return{formData:a.end(),buffer:p}}static formDataToStream(e){let t="----HappyDOMFormDataBoundary"+Math.random().toString(36),r=[],o=`--${t}\r
21
+ Content-Disposition: form-data; name="`;for(let[n,a]of e)typeof a=="string"?r.push(Sm.from(`${o}${this.escapeName(n)}"\r
22
+ \r
23
+ ${a.replace(/\r(?!\n)|(?<!\r)\n/g,`\r
24
+ `)}\r
25
+ `)):(r.push(Sm.from(`${o}${this.escapeName(n)}"; filename="${this.escapeName(a.name,!0)}"\r
26
+ Content-Type: ${a.type||"application/octet-stream"}\r
27
+ \r
28
+ `)),r.push(a[Ct]),r.push(Sm.from(`\r
29
+ `)));r.push(Sm.from(`--${t}--\r
30
+ `));let i=Sm.concat(r);return{contentType:`multipart/form-data; boundary=${t}`,contentLength:i.length,buffer:i,stream:new K_({start(n){n.enqueue(i),n.close()}})}}static escapeName(e,t=!1){return(t?e:e.replace(/\r?\n|\r/g,`\r
31
+ `)).replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22")}};import{ReadableStream as sS}from"stream/web";import{URLSearchParams as J_}from"url";var $o,eb,CP,ry=class{constructor(e,t){x(this,eb);x(this,$o,[]);if(!e)return;if(t){let o=e[Gt]?e[Gt]:e;if(t.form!==o)throw new this[y].DOMException("The specified element is not owned by this form element",A.notFoundError);if(!(t[tt]==="INPUT"&&(t.type==="submit"||t.type==="image")||t[tt]==="BUTTON"&&t.type==="submit"))throw new this[y].TypeError("The specified element is not a submit button")}let r=e[ko]();for(let o of r){let i=o.name;if(i)switch(o[tt]){case"INPUT":if(o.disabled)break;switch(o.type){case"file":if(o[zi].length===0)this.append(i,new Go([],"",{type:"application/octet-stream"}));else for(let n of o[zi])this.append(i,n);break;case"checkbox":case"radio":o.checked&&this.append(i,o.value);break;case"submit":case"reset":case"button":o===t&&o.value&&this.append(i,o.value);break;default:this.append(i,o.value);break}break;case"BUTTON":o===t&&o.value&&this.append(i,o.value);break;case"TEXTAREA":case"SELECT":this.append(i,o.value);break}}}forEach(e,t){for(let r of u(this,$o))e.call(t,r.value,r.name,this)}append(e,t,r){if(r&&!(t instanceof ce))throw new this[y].TypeError('Failed to execute "append" on "FormData": parameter 2 is not of type "Blob".');u(this,$o).push({name:e,value:F(this,eb,CP).call(this,t,r)})}delete(e){let t=[];for(let r of u(this,$o))r.name!==e&&t.push(r);w(this,$o,t)}get(e){for(let t of u(this,$o))if(t.name===e)return t.value;return null}getAll(e){let t=[];for(let r of u(this,$o))r.name===e&&t.push(r.value);return t}has(e){for(let t of u(this,$o))if(t.name===e)return!0;return!1}set(e,t,r){for(let o of u(this,$o))if(o.name===e){o.value=F(this,eb,CP).call(this,t,r);return}this.append(e,t)}*keys(){for(let e of u(this,$o))yield e.name}*values(){for(let e of u(this,$o))yield e.value}*entries(){for(let e of u(this,$o))yield[e.name,e.value]}*[Symbol.iterator](){for(let e of u(this,$o))yield[e.name,e.value]}};$o=new WeakMap,eb=new WeakSet,CP=function(e,t){if(e instanceof Go){if(t){let r=new Go([],t,{type:e.type,lastModified:e.lastModified});return r[Ct]=e[Ct],r}return e}if(e instanceof ce){let r=new Go([],"blob",{type:e.type});return r[Ct]=e[Ct],r}return String(e)};import{Buffer as oy}from"buffer";import LE from"stream";var hr=class{static getBodyStream(e){if(e==null)return{stream:null,buffer:null,contentType:null,contentLength:null};if(e instanceof J_){let r=oy.from(e.toString());return{buffer:r,stream:this.toReadableStream(r),contentType:"application/x-www-form-urlencoded;charset=UTF-8",contentLength:r.length}}else if(e instanceof ce){let r=e[Ct];return{buffer:r,stream:this.toReadableStream(r),contentType:e.type,contentLength:e.size}}else{if(oy.isBuffer(e))return{buffer:e,stream:this.toReadableStream(e),contentType:null,contentLength:e.length};if(e instanceof ArrayBuffer){let r=oy.from(e);return{buffer:r,stream:this.toReadableStream(r),contentType:null,contentLength:e.byteLength}}else if(ArrayBuffer.isView(e)){let r=oy.from(e.buffer,e.byteOffset,e.byteLength);return{buffer:r,stream:this.toReadableStream(r),contentType:null,contentLength:e.byteLength}}else{if(e instanceof sS)return{buffer:null,stream:e,contentType:null,contentLength:null};if(e instanceof ry)return kl.formDataToStream(e)}}let t=oy.from(String(e));return{buffer:t,stream:this.toReadableStream(t),contentType:"text/plain;charset=UTF-8",contentLength:t.length}}static cloneBodyStream(e,t){if(t.bodyUsed)throw new e.DOMException("Failed to clone body stream of request: Request body is already used.",A.invalidStateError);if(t.body===null||t.body===void 0)return null;if(t[Ct])return this.toReadableStream(t[Ct]);if(t.body[dc]){let i=new LE.PassThrough,n=new LE.PassThrough;return t.body[dc].pipe(i),t.body[dc].pipe(n),t.body=this.nodeToWebStream(i),this.nodeToWebStream(n)}let[r,o]=t.body.tee();return t.body=r,o}static async consumeBodyStream(e,t){let r=t.body;if(r===null||!(r instanceof sS))return oy.alloc(0);if(t[pr])throw t[pr];let o=r.getReader(),i=[],n=0;try{let a=await o.read();for(;!a.done;){if(t[pr])throw t[pr];if(t[we])throw new e.DOMException("Failed to read response body: The stream was aborted.",A.abortError);let m=a.value;n+=m.length,i.push(m),a=await o.read()}}catch(a){throw a instanceof Ht?a:new e.DOMException(`Failed to read response body. Error: ${a.message}.`,A.encodingError)}try{return typeof i[0]=="string"?oy.from(i.join("")):oy.concat(i,n)}catch(a){throw new e.DOMException(`Could not create Buffer from response body. Error: ${a.message}.`,A.invalidStateError)}}static toReadableStream(e){return new sS({start(t){t.enqueue(e),t.close()}})}static nodeToWebStream(e){let t=new sS({start(r){e.on("data",o=>{r.enqueue(o)}),e.on("end",()=>{r.close()}),e.on("error",o=>{r.error(o)})}});return t[dc]=e,t}};var Z_=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"],Q_=["error","manual","follow"],t2=["data:","http:","https:"],e2=["TRACE","TRACK","CONNECT"],r2=/^[A-Z]+$/,ki=class{static validateMethod(e){if(!e.method||e2.includes(e.method))throw new Ht(`'${e.method||""}' is not a valid HTTP method.`,A.invalidStateError);if(!r2.test(e.method))throw new Ht(`'${e.method}' HTTP method is unsupported.`,A.invalidStateError)}static validateBody(e){if(e.body&&(e.method==="GET"||e.method==="HEAD"))throw new Ht("Request with GET/HEAD method cannot have body.",A.invalidStateError)}static validateURL(e){if(e.username!==""||e.password!=="")throw new Ht(`${e} is an url with embedded credentials.`,A.notSupportedError)}static validateReferrerPolicy(e){if(!Z_.includes(e))throw new Ht(`Invalid referrer policy "${e}".`,A.syntaxError)}static validateRedirect(e){if(!Q_.includes(e))throw new Ht(`Invalid redirect "${e}".`,A.syntaxError)}static validateSchema(e){if(!t2.includes(e[Ce].protocol))throw new Ht(`Failed to fetch from "${e.url}": URL scheme "${e[Ce].protocol.replace(/:$/,"")}" is not supported.`,A.notSupportedError)}};var kP;(function(l){l.strict="Strict",l.lax="Lax",l.none="None"})(kP||(kP={}));var Ml=kP;var nS={key:null,originURL:null,value:null,domain:"",path:"",expires:null,httpOnly:!1,secure:!1,sameSite:Ml.lax};var Mi=class{static stringToCookie(e,t){let r=t.split(";"),o=r.shift();if(!o)return null;let i=o.indexOf("="),n=i!==-1?o.slice(0,i).trim():o.trim(),a=i!==-1?o.slice(i+1).trim():null,m=Object.assign({},nS,{key:n,value:a,originURL:e});if(!m.key)return null;for(let b of r){let d=b.indexOf("="),f=d!==-1?b.slice(0,d).trim().toLowerCase():b.trim().toLowerCase(),v=d!==-1?b.slice(d+1).trim():"";switch(f){case"expires":m.expires=new Date(v);break;case"max-age":m.expires=new Date(parseInt(v,10)*1e3+Date.now());break;case"domain":m.domain=v;break;case"path":m.path=v[0]==="/"?v:`/${v}`;break;case"httponly":m.httpOnly=!0;break;case"secure":m.secure=!0;break;case"samesite":switch(v.toLowerCase()){case"strict":m.sameSite=Ml.strict;break;case"lax":m.sameSite=Ml.lax;break;case"none":m.sameSite=Ml.none}break}}let p=m.key.toLowerCase();return p.startsWith("__secure-")&&!m.secure||p.startsWith("__host-")&&(!m.secure||m.path!=="/"||m.domain)?null:m}static cookiesToString(e){let t=[];for(let r of e)r.value!==null?t.push(`${r.key}=${r.value}`):t.push(r.key);return t.join("; ")}};import{URL as CE}from"url";var kE=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","content-transfer-encoding","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"],Cs=class{static removeForbiddenHeaders(e){for(let t of Object.keys(e[Sr]))(kE.includes(t)||t.startsWith("proxy-")||t.startsWith("sec-"))&&delete e[Sr][t]}static isHeaderForbidden(e){return kE.includes(e.toLowerCase())}static getRequestHeaders(e){let t=new e.window.Headers(e.baseHeaders);e.request.headers.forEach((n,a)=>{t.set(a,n)});let r=new CE(e.window.location.href),o=Ci.isCORS(r,e.request[Ce]);if(t.set("Accept-Encoding","gzip, deflate, br"),t.set("Connection","close"),t.has("User-Agent")||t.set("User-Agent",e.window.navigator.userAgent),e.request[Kr]instanceof CE&&t.set("Referer",e.request[Kr].href),e.request.credentials==="include"||e.request.credentials==="same-origin"&&!o){let n=e.browserFrame.page.context.cookieContainer.getCookies(r,!1);n.length>0&&t.set("Cookie",Mi.cookiesToString(n))}else t.delete("Cookie"),t.delete("Cookie2");t.has("Accept")||t.set("Accept","*/*"),!t.has("Content-Length")&&e.request[Ky]!==null&&t.set("Content-Length",String(e.request[Ky])),!t.has("Content-Type")&&e.request[Oe]&&t.set("Content-Type",e.request[Oe]),o&&t.set("Origin",r.origin);let i={};for(let n of Object.values(t[Sr]))i[n.name]=n.value.join(", ");return i}};var ME,RE,OE,VE,IE,FE,DE,_E,BE,UE,GE,HE,$E,qE,WE,jE,iy=class l{constructor(e,t){s(this,jE);s(this,WE);s(this,qE,"cors");s(this,$E);s(this,HE);s(this,GE);s(this,UE);s(this,BE,!1);s(this,_E);s(this,DE,!1);s(this,FE,null);s(this,IE,null);s(this,VE,null);s(this,OE,"client");s(this,RE);s(this,ME);let r=this[y];if(!r)throw new TypeError("Failed to construct 'Request': 'Request' was constructed outside a Window context.");if(typeof e!="string"&&!e)throw new r.TypeError("Failed to contruct 'Request': 1 argument required, only 0 present.");if(this[Sl]=(t?.method||e.method||"GET").toUpperCase(),t?.mode)switch(t.mode){case"navigate":case"websocket":throw new r.DOMException(`Failed to construct 'Request': Cannot construct a Request with a RequestInit whose mode member is set as '${t.mode}'.`,A.securityError);case"same-origin":case"no-cors":case"cors":this[ke]=t.mode;break;default:throw new r.DOMException(`Failed to construct 'Request': The provided value '${t.mode}' is not a valid enum value of type RequestMode.`,A.syntaxError)}else e instanceof l&&(this[ke]=e.mode);let{stream:o,buffer:i,contentType:n,contentLength:a}=hr.getBodyStream(e instanceof l&&(e[bs]||e.body)?e[bs]||hr.cloneBodyStream(r,e):t?.body??null);if(this[bs]=i,this[Kf]=o,this[Qf]=t?.credentials||e.credentials||"same-origin",this[qf]=new this[y].Headers(t?.headers||e.headers||{}),Cs.removeForbiddenHeaders(this.headers),a?this[Ky]=a:!this.body&&(this.method==="POST"||this.method==="PUT")&&(this[Ky]=0),n?(this.headers.has("Content-Type")||this.headers.set("Content-Type",n),this[Oe]=n):e instanceof l&&e[Oe]&&(this[Oe]=e[Oe]),this[Jf]=t?.redirect||e.redirect||"follow",this[Nu]=(t?.referrerPolicy||e.referrerPolicy||"").toLowerCase(),this[Zf]=t?.signal||e.signal||new r.AbortSignal,this[Kr]=Ls.getInitialReferrer(r,t?.referrer!==null&&t?.referrer!==void 0?t?.referrer:e.referrer),e instanceof MP)this[Ce]=e;else try{e instanceof l&&e.url?this[Ce]=new MP(e.url,r.location.href):this[Ce]=new MP(e,r.location.href)}catch{throw new r.DOMException(`Failed to construct 'Request': Invalid URL "${e}" on document location '${r.location}'.${r.location.origin==="null"?" Relative URLs are not permitted on current document location.":""}`,A.notSupportedError)}ki.validateMethod(this),ki.validateBody(this),ki.validateURL(this[Ce]),ki.validateReferrerPolicy(this.referrerPolicy),ki.validateRedirect(this.redirect)}get method(){return this[Sl]}get body(){return this[Kf]}get mode(){return this[ke]}get headers(){return this[qf]}get redirect(){return this[Jf]}get referrerPolicy(){return this[Nu]}get signal(){return this[Zf]}get bodyUsed(){return this[Es]}get credentials(){return this[Qf]}get referrer(){return!this[Kr]||this[Kr]==="no-referrer"?"":this[Kr]==="client"?"about:client":this[Kr].toString()}get url(){return this[Ce].href}get[(jE=Sl,WE=Kf,qE=ke,$E=qf,HE=Jf,GE=Nu,UE=Zf,BE=Es,_E=Qf,DE=we,FE=pr,IE=Ky,VE=Oe,OE=Kr,RE=Ce,ME=bs,Symbol.toStringTag)](){return"Request"}async arrayBuffer(){let e=this[y];if(this[Es])throw new e.DOMException(`Body has already been used for "${this.url}".`,A.invalidStateError);let t=new ot(e).getAsyncTaskManager();this[Es]=!0;let r=t.startTask(()=>{this[we]=!0,this.signal[ds]()}),o;try{o=await hr.consumeBodyStream(e,this)}catch(i){throw t.endTask(r),i}return t.endTask(r),o.buffer.slice(o.byteOffset,o.byteOffset+o.byteLength)}async blob(){let e=this.headers.get("Content-Type")||"",t=await this.arrayBuffer();return new ce([t],{type:e})}async buffer(){let e=this[y];if(this[Es])throw new e.DOMException(`Body has already been used for "${this.url}".`,A.invalidStateError);let t=new ot(e).getAsyncTaskManager();this[Es]=!0;let r=t.startTask(()=>{this[we]=!0,this.signal[ds]()}),o;try{o=await hr.consumeBodyStream(e,this)}catch(i){throw t.endTask(r),i}return t.endTask(r),o}async text(){let e=this[y];if(this[Es])throw new e.DOMException(`Body has already been used for "${this.url}".`,A.invalidStateError);let t=new ot(e).getAsyncTaskManager();this[Es]=!0;let r=t.startTask(()=>{this[we]=!0,this.signal[ds]()}),o;try{o=await hr.consumeBodyStream(e,this)}catch(i){throw t.endTask(r),i}return t.endTask(r),new TextDecoder().decode(o)}async json(){let e=await this.text();return JSON.parse(e)}async formData(){let e=this[y],t=new ot(e).getAsyncTaskManager(),r=this[Oe];if(this.body&&r&&/multipart/i.test(r)){if(this[Es])throw new e.DOMException(`Body has already been used for "${this.url}".`,A.invalidStateError);this[Es]=!0;let o=t.startTask(()=>{this[we]=!0,this.signal[ds]()}),i;try{i=(await kl.streamToFormData(e,this,r)).formData}catch(n){throw t.endTask(o),n}return t.endTask(o),i}if(r?.startsWith("application/x-www-form-urlencoded")){let o=new URLSearchParams(await this.text()),i=new e.FormData;for(let[n,a]of o)i.append(n,a);return i}throw new e.DOMException('Failed to construct FormData object: The "content-type" header is neither "application/x-www-form-urlencoded" nor "multipart/form-data".',A.invalidStateError)}clone(){return new this[y].Request(this)}};import{URLSearchParams as o2}from"url";import{Buffer as i2}from"buffer";var s2=[301,302,303,307,308],zE,XE,YE,KE,JE,Pm,rb,qo=class{constructor(e,t){x(this,Pm);s(this,"body",null);s(this,"bodyUsed",!1);s(this,"redirected",!1);s(this,"type","basic");s(this,"url","");s(this,"status");s(this,"statusText");s(this,"ok");s(this,"headers");s(this,JE,null);s(this,KE,null);s(this,YE,null);s(this,XE,!1);s(this,zE,null);if(!this[y])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);if(this.status=t?.status!==void 0?t.status:200,this.statusText=t?.statusText||"",this.ok=this.status>=200&&this.status<300,this.headers=new this[y].Headers(t?.headers),this.headers.delete("Set-Cookie"),this.headers.delete("Set-Cookie2"),e){let{stream:r,buffer:o,contentType:i}=hr.getBodyStream(e);this.body=r,o&&(this[Ct]=o),i&&!this.headers.has("Content-Type")&&this.headers.set("Content-Type",i)}}get[(JE=$i,KE=Ct,YE=wo,XE=we,zE=pr,Symbol.toStringTag)](){return"Response"}async arrayBuffer(){let e=this[y];if(this.bodyUsed)throw new e.DOMException(`Body has already been used for "${this.url}".`,A.invalidStateError);let t=new ot(e).getBrowserFrame();if(!t)return new ArrayBuffer(0);let r=t[bt];this.bodyUsed=!0;let o=this[Ct];if(!o){let i=r.startTask(()=>{this[we]=!0});try{o=await hr.consumeBodyStream(e,this)}catch(n){throw r.endTask(i),n}r.endTask(i)}return F(this,Pm,rb).call(this,o),o.buffer.slice(o.byteOffset,o.byteOffset+o.byteLength)}async blob(){let e=this.headers.get("Content-Type")||"",t=await this.arrayBuffer();return new ce([t],{type:e})}async buffer(){let e=this[y];if(this.bodyUsed)throw new e.DOMException(`Body has already been used for "${this.url}".`,A.invalidStateError);let t=new ot(e).getBrowserFrame();if(!t)return i2.alloc(0);let r=t[bt];this.bodyUsed=!0;let o=this[Ct];if(!o){let i=r.startTask(()=>{this[we]=!0});try{o=await hr.consumeBodyStream(e,this)}catch(n){throw r.endTask(i),n}r.endTask(i)}return F(this,Pm,rb).call(this,o),o}async text(){let e=this[y];if(this.bodyUsed)throw new e.DOMException(`Body has already been used for "${this.url}".`,A.invalidStateError);let t=new ot(e).getBrowserFrame();if(!t)return"";let r=t[bt];this.bodyUsed=!0;let o=this[Ct];if(!o){let i=r.startTask(()=>{this[we]=!0});try{o=await hr.consumeBodyStream(e,this)}catch(n){throw r.endTask(i),n}r.endTask(i)}return F(this,Pm,rb).call(this,o),new TextDecoder().decode(o)}async json(){let e=await this.text();return JSON.parse(e)}async formData(){let e=this[y],t=new ot(e).getBrowserFrame();if(!t)return new e.FormData;let r=t[bt],o=this.headers.get("Content-Type");if(o&&this.body&&/multipart/i.test(o)){if(this.bodyUsed)throw new e.DOMException(`Body has already been used for "${this.url}".`,A.invalidStateError);this.bodyUsed=!0;let i=t[bt].startTask(()=>{this[we]=!0}),n,a;try{let m=await kl.streamToFormData(e,this,o);n=m.formData,a=m.buffer}catch(m){throw r.endTask(i),m}return F(this,Pm,rb).call(this,a),r.endTask(i),n}if(o?.startsWith("application/x-www-form-urlencoded")){let i=new o2(await this.text()),n=new e.FormData;for(let[a,m]of i)n.append(a,m);return n}throw new e.DOMException('Failed to build FormData object: The "content-type" header is neither "application/x-www-form-urlencoded" nor "multipart/form-data".',A.invalidStateError)}clone(){let e=this[y],t=hr.cloneBodyStream(e,this),r=new e.Response(t,{status:this.status,statusText:this.statusText,headers:this.headers});return r[$i]=this[$i],r[Ct]=this[Ct],r.ok=this.ok,r.redirected=this.redirected,r.type=this.type,r.url=this.url,r}static redirect(e,t=302){let r=this[y];if(!s2.includes(t))throw new r.DOMException("Failed to create redirect response: Invalid redirect status code.",A.invalidStateError);return new r.Response(null,{headers:{location:new Ie(e).toString()},status:t})}static error(){let e=new this[y].Response(null,{status:0,statusText:""});return e.type="error",e}static json(e,t){let r=this[y],o=JSON.stringify(e);if(o===void 0)throw new r.TypeError("data is not JSON serializable");let i=new r.Headers(t&&t.headers);return i.has("Content-Type")||i.set("Content-Type","application/json"),new r.Response(o,{status:200,...t,headers:i})}};Pm=new WeakSet,rb=function(e){this[Ct]=e,this[$i]?.response?.waitingForBody&&(this[$i].response.body=e,this[$i].response.waitingForBody=!1)};var RP;(function(l){l.fresh="fresh",l.stale="stale"})(RP||(RP={}));var sy=RP;var n2=[301,302,303,307,308],l2=20,Rl=class{static isRedirect(e){return n2.includes(e)}static isMaxRedirectsReached(e){return e>=l2}};var wm=class{static parseResponseHeaders(e){let t=new e.browserFrame.window.Headers,r=null;for(let o of e.rawHeaders)if(!r)r=o;else{let i=r.toLowerCase();if(i==="set-cookie"||i==="set-cookie2"){let n=Mi.stringToCookie(e.requestURL,o);n&&e.browserFrame.page.context.cookieContainer.addCookies([n])}else t.append(r,o);r=null}return t}};var ju={cert:`-----BEGIN CERTIFICATE-----
32
+ MIIDYzCCAkugAwIBAgIUJRKB/H66hpet1VfUlm0CiXqePA4wDQYJKoZIhvcNAQEL
33
+ BQAwQTELMAkGA1UEBhMCU0UxDjAMBgNVBAgMBVNrYW5lMQ4wDAYDVQQHDAVNYWxt
34
+ bzESMBAGA1UECgwJSGFwcHkgRE9NMB4XDTIyMTAxMTIyMDM0OVoXDTMyMTAwODIy
35
+ MDM0OVowQTELMAkGA1UEBhMCU0UxDjAMBgNVBAgMBVNrYW5lMQ4wDAYDVQQHDAVN
36
+ YWxtbzESMBAGA1UECgwJSGFwcHkgRE9NMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A
37
+ MIIBCgKCAQEAqerQSQEg/SxVxRiwlItithr5e5EMZo1nsqt/xOxagbmpW3IEmt0j
38
+ bpbH7iEF4DDEo7KAOwUCOwVWeFxRoag8lG2ax48wrgjlCna45XDn0Xeg1ARajL04
39
+ gs46HZ0VrzIloVGfln0zgt/Vum5BNqs9Oc5fQoBmoP3cAn3dn4ZVcP0AKthtcyPl
40
+ q2DuNRN0PV0D2RtMSiAy9l1Ko6N5x+sAeClDyOL+sTDLngZBVeZyOKt9Id15S8Zt
41
+ XtA6VMgHnnF3jChn7pag77rsd/y5iANAVNZYqRl+Eg7xaDcsvbgH46UBOrBcB39Q
42
+ tTh5Mtjoxep5e3ZDFG+kQ1HUE+iz5O5n0wIDAQABo1MwUTAdBgNVHQ4EFgQU69s9
43
+ YSobG/m2SN4L/7zTaF7iDbwwHwYDVR0jBBgwFoAU69s9YSobG/m2SN4L/7zTaF7i
44
+ DbwwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAi/WUXx2oal8L
45
+ YnPlIuKfh49n/K18wXSYG//oFYwxfVxqpYH8hUiXVm/GUcXCxS++hUkaKLqXmH9q
46
+ MKJiCrZr3vS+2nsBKopkICu/TLdROl0sAI9lByfnEbfSAzjxe1IWJdK8NdY0y5m5
47
+ 9pEr/URVIAp/CxrneyASb4q0Jg5To3FR7vYc+2X6wZn0MundKMg6Dp9/A37jiF3l
48
+ Tt/EJp299YZcsUzh+LnRuggRjnoOVu1aLcLFlaUiwZfy9m8mLG6B/mdW/qNzNMh9
49
+ Oqvg1zfGdpz/4D/2UUUBn6pq1vbsoAaF3OesoA3mfDcegDf/H9woJlpT0Wql+e68
50
+ Y3FblSokcA==
51
+ -----END CERTIFICATE-----`,key:`-----BEGIN PRIVATE KEY-----
52
+ MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCp6tBJASD9LFXF
53
+ GLCUi2K2Gvl7kQxmjWeyq3/E7FqBualbcgSa3SNulsfuIQXgMMSjsoA7BQI7BVZ4
54
+ XFGhqDyUbZrHjzCuCOUKdrjlcOfRd6DUBFqMvTiCzjodnRWvMiWhUZ+WfTOC39W6
55
+ bkE2qz05zl9CgGag/dwCfd2fhlVw/QAq2G1zI+WrYO41E3Q9XQPZG0xKIDL2XUqj
56
+ o3nH6wB4KUPI4v6xMMueBkFV5nI4q30h3XlLxm1e0DpUyAeecXeMKGfulqDvuux3
57
+ /LmIA0BU1lipGX4SDvFoNyy9uAfjpQE6sFwHf1C1OHky2OjF6nl7dkMUb6RDUdQT
58
+ 6LPk7mfTAgMBAAECggEAKkwTkTjAt4UjzK56tl+EMQTB+ep/hb/JgoaChci4Nva6
59
+ m9LkJpDJ0yuhlTuPNOGu8XjrxsVWas7HWarRf0Zb3i7yip6wZYI9Ub+AA015x4DZ
60
+ /i0fRU2NFbK0cM67qSL4jxG8gj+kZP3HPGNZxHwX/53JxMolwgmvjMc8NgvAlSFd
61
+ NnV9h4xtbhUh1NGS5zmP3iU2rwnE8JrIEzwy6axLom7nekAgkdcbAr0UoBs8gcgH
62
+ aYNhU4Gz3tGcZZ0IXAfT/bJIH1Ko8AGv4pssWc3BXcmmNdm/+kzvHIxEIV7Qegmo
63
+ XG1ZyZCyD/0b4/3e8ySDBEDqwR+HeyTW2isWG2agAQKBgQDp44aTwr3dkIXY30xv
64
+ FPfUOipg/B49dWnffYJ9MWc1FT9ijNPAngWSk0EIiEQIazICcUBI4Yji6/KeyqLJ
65
+ GdLpDi1CkKqtyh73mjELinYp3EUQgEa77aQogGa2+nMOVfu+O5CtloUrv/A18jX3
66
+ +VEyaEASK0fWmnSI0OdlxQHIAQKBgQC5+xOls2F3MlKASvWRLlnW1wHqlDTtVoYg
67
+ 5Nh8syZH4Ci2UH8tON3A5/7SWNM0t1cgV6Cw4zW8Z2spgIT/W0iYYrQ4hHL1xdCu
68
+ +CxL1km4Gy8Uwpsd+KdFahFqF/XTmLzW0HXLxWSK0fTwmdV0SFrKF3MXfTCU2AeZ
69
+ jJoMFb6P0wKBgQC3Odw6s0vkYAzLGhuZxfZkVvDOK5RRF0NKpttr0iEFL9EJFkPo
70
+ 2KKK8jr3QTDy229BBJGUxsJi6u6VwS8HlehpVQbV59kd7oKV/EBBx0XMg1fDlopT
71
+ PNbmN7i/zbIG4AsoOyebJZjL7kBzMn1e9vzKHWtcEHXlw/hZGja8vjooAQKBgAeg
72
+ xK2HLfg1mCyq5meN/yFQsENu0LzrT5UJzddPgcJw7zqLEqxIKNBAs7Ls8by3yFsL
73
+ PQwERa/0jfCl1M6kb9XQNpQa2pw6ANUsWKTDpUJn2wZ+9N3F1RaDwzMWyH5lRVmK
74
+ M0qoTfdjpSg5Jwgd75taWt4bxGJWeflSSv8z5R0BAoGAWL8c527AbeBvx2tOYKkD
75
+ 2TFranvANNcoMrbeviZSkkGvMNDP3p8b6juJwXOIeWNr8q4vFgCzLmq6d1/9gYm2
76
+ 3XJwwyD0LKlqzkBrrKU47qrnmMosUrIRlrAzd3HbShOptxc6Iz2apSaUDKGKXkaw
77
+ gl5OpEjeliU7Mus0BVS858g=
78
+ -----END PRIVATE KEY-----`};import{Buffer as aS}from"buffer";import zu from"path";var ZE="<html><head><title>Happy DOM Virtual Server - 404 Not Found</title></head><body><h1>Happy DOM Virtual Server - 404 Not Found</h1></body></html>",ks=class{static getFilepath(e,t){let r=new ot(e).getSettings();if(!r||!r.fetch.virtualServers&&!r.module.resolveNodeModules)return null;if(r.fetch.virtualServers)for(let o of r.fetch.virtualServers){let i=null;if(typeof o.url=="string"){let n=new URL(o.url[o.url.length-1]==="/"?o.url.slice(0,-1):o.url,e.location.origin);t.startsWith(n.href)&&(i=n)}else if(o.url instanceof RegExp){let n=t.match(o.url);n&&(i=new URL(n[0][n[0].length-1]==="/"?n[0].slice(0,-1):n[0],e.location.origin))}if(i){let n=t.slice(i.href.length).split("?")[0].split("#")[0];return zu.join(zu.resolve(o.directory),n.replaceAll("/",zu.sep))}}if(r.module.resolveNodeModules){let o=r.module.resolveNodeModules.url,i=new URL(o[o.length-1]==="/"?o.slice(0,-1):o,e.location.origin);if(t.startsWith(i.href)){let n=t.slice(i.href.length).split("?")[0].split("#")[0];return zu.join(zu.resolve(r.module.resolveNodeModules.directory),n.replaceAll("/",zu.sep))}}return null}static getNotFoundResponse(e){return new e.Response(ZE,{status:404,statusText:"Not Found",headers:{"Content-Type":"text/html"}})}static getNotFoundSyncResponse(e,t){return{status:404,statusText:"Not Found",ok:!1,url:t,redirected:!1,headers:new e.Headers({"Content-Type":"text/html"}),body:Buffer.from(ZE),[wo]:null}}};var Fn=class{static getKey(e){return JSON.stringify({url:e.url,destination:e.destination,mode:e.mode,credentialsMode:e.credentialsMode})}};var OP=aS.from(`0\r
79
+ \r
80
+ `),ae,wt,ib,ob=class ob{constructor(e){s(this,"reject",null);s(this,"resolve",null);s(this,"listeners",{onSignalAbort:this.onSignalAbort.bind(this)});s(this,"isChunkedTransfer",!1);s(this,"isProperLastChunkReceived",!1);s(this,"previousChunk",null);s(this,"nodeRequest",null);s(this,"nodeResponse",null);s(this,"response",null);s(this,"responseHeaders",null);s(this,"interceptor");s(this,"requestHeaders");s(this,"request");s(this,"redirectCount",0);s(this,"disableCache");s(this,"disableSameOriginPolicy");s(this,"disablePreload");x(this,ae);x(this,wt);x(this,ib,null);w(this,ae,e.browserFrame),w(this,wt,e.window),w(this,ib,e.unfilteredHeaders??null),this.request=typeof e.url=="string"||e.url instanceof lS?new e.window.Request(e.url,e.init):e.url,e.contentType&&(this.request[Oe]=e.contentType),this.redirectCount=e.redirectCount??0,this.disableCache=e.disableCache??!1,this.disableSameOriginPolicy=e.disableSameOriginPolicy??u(this,ae).page.context.browser.settings.fetch.disableSameOriginPolicy??!1,this.interceptor=u(this,ae).page.context.browser.settings.fetch.interceptor,this.requestHeaders=u(this,ae).page.context.browser.settings.fetch.requestHeaders,this.disablePreload=e.disablePreload??!1}async send(){if(!(this.request instanceof iy)||!(this.request[Ce]instanceof lS))throw new(u(this,wt)).DOMException("Unknown request object. Request object must be an instance of Request.",A.invalidStateError);if(Ls.prepareRequest(new lS(u(this,wt).location.href),this.request),this.requestHeaders){for(let t of this.requestHeaders)if(!t.url||(typeof t.url=="string"?t.url.startsWith(this.request.url):this.request.url.match(t.url)))for(let[r,o]of Object.entries(t.headers))this.request.headers.set(r,o)}if(this.interceptor?.beforeAsyncRequest){let t=u(this,ae)[bt].startTask(),r=await this.interceptor.beforeAsyncRequest({request:this.request,window:u(this,wt)});if(u(this,ae)[bt].endTask(t),r instanceof qo)return r}if(ki.validateSchema(this.request),this.request.signal[we])throw this.request.signal[ui]!==void 0?this.request.signal[ui]:new(u(this,wt)).DOMException("signal is aborted without reason",A.abortError);if(this.request[Ce].protocol==="data:"){let t=fm.parse(this.request.url);this.response=new(u(this,wt)).Response(t.buffer,{headers:{"Content-Type":t.type}});let r=this.interceptor?.afterAsyncResponse?await this.interceptor.afterAsyncResponse({window:u(this,wt),response:this.response,request:this.request}):void 0;return r instanceof qo?r:this.response}if(this.request[Ce].protocol==="http:"&&u(this,wt).location.protocol==="https:")throw new(u(this,wt)).DOMException(`Mixed Content: The page at '${u(this,wt).location.href}' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint '${this.request.url}'. This request has been blocked; the content must be served over HTTPS.`,A.securityError);if(!this.disableCache){let t=await this.getCachedResponse();if(t)return t}if(!this.disablePreload){let t=Fn.getKey({url:this.request.url,destination:"fetch",mode:this.request.mode,credentialsMode:this.request.credentials}),r=u(this,wt).document[Po].get(t);if(r){if(u(this,wt).document[Po].delete(t),r.response)return r.response;let o=u(this,ae)[bt].startTask(),i=await r.onResponseAvailable();return u(this,ae)[bt].endTask(o),i}}let e=await this.getVirtualServerResponse();if(e)return e;if(!this.disableSameOriginPolicy&&!await this.compliesWithCrossOriginPolicy())throw u(this,ae).page.console.warn(`Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at "${this.request.url}".`),new(u(this,wt)).DOMException(`Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at "${this.request.url}".`,A.networkError);return await this.sendRequest()}async getCachedResponse(){if(this.disableCache)return null;let e=u(this,ae).page.context.responseCache.get(this.request);if(!e||e.response.waitingForBody)return null;if(e.state===sy.stale){let r=new(u(this,wt)).Headers(e.request.headers);if(e.etag)r.set("If-None-Match",e.etag);else{if(!e.lastModified)return null;r.set("If-Modified-Since",new Date(e.lastModified).toUTCString())}let o=new ob({browserFrame:u(this,ae),window:u(this,wt),url:this.request.url,init:{headers:r,method:e.request.method},disableCache:!0,disableSameOriginPolicy:!0});if(e.etag||!e.staleWhileRevalidate){let i=await o.send(),n=i.status!==304?await i.buffer():null;if(e=u(this,ae).page.context.responseCache.add(this.request,{...i,body:n,waitingForBody:!1}),i.status!==304){let a=new(u(this,wt)).Response(n,{status:i.status,statusText:i.statusText,headers:i.headers});return a.url=i.url,a[$i]=e,a}}else o.send().then(i=>{i.buffer().then(n=>{u(this,ae).page.context.responseCache.add(this.request,{...i,body:n,waitingForBody:!1})})})}if(!e||e.response.waitingForBody)return null;let t=new(u(this,wt)).Response(e.response.body,{status:e.response.status,statusText:e.response.statusText,headers:e.response.headers});return t.url=e.response.url,t[$i]=e,t}async getVirtualServerResponse(){let e=ks.getFilepath(u(this,wt),this.request.url);if(!e)return null;let t=u(this,ae)[bt].startTask();if(this.request.method!=="GET"){u(this,ae).page.console.error(`${this.request.method} ${this.request.url} 404 (Not Found)`);let p=ks.getNotFoundResponse(u(this,wt)),b=this.interceptor?.afterAsyncResponse?await this.interceptor.afterAsyncResponse({window:u(this,wt),response:await p,request:this.request}):void 0;return u(this,ae)[bt].endTask(t),b instanceof qo?b:p}let r;try{e=(await QE.promises.stat(e)).isDirectory()?m2.join(e,"index.html"):e,r=await QE.promises.readFile(e)}catch{u(this,ae).page.console.error(`${this.request.method} ${this.request.url} 404 (Not Found)`);let b=ks.getNotFoundResponse(u(this,wt)),d=this.interceptor?.afterAsyncResponse?await this.interceptor.afterAsyncResponse({window:u(this,wt),response:await b,request:this.request}):void 0;return u(this,ae)[bt].endTask(t),d instanceof qo?d:b}let o=new(u(this,wt)).ReadableStream({start(p){setTimeout(()=>{p.enqueue(r),p.close()})}}),i=new(u(this,wt)).Response(o);i[Ct]=r,i[wo]=e,i.url=this.request.url;let n=this.interceptor?.afterAsyncResponse?await this.interceptor.afterAsyncResponse({window:u(this,wt),response:await i,request:this.request}):void 0;u(this,ae)[bt].endTask(t);let a=n instanceof qo?n:i,m={...a,body:r,waitingForBody:!1,virtual:!0};return i[$i]=u(this,ae).page.context.responseCache.add(this.request,m),a}async compliesWithCrossOriginPolicy(){if(this.disableSameOriginPolicy||!Ci.isCORS(u(this,wt).location.href,this.request[Ce]))return!0;let e=u(this,ae).page.context.preflightResponseCache.get(this.request);if(e)return!(e.allowOrigin!=="*"&&e.allowOrigin!==u(this,wt).location.origin||e.allowMethods.length!==0&&!e.allowMethods.includes(this.request.method));let t=[];for(let[m]of this.request.headers)t.push(m.toLowerCase());let r=new(u(this,wt)).Headers({"Access-Control-Request-Method":this.request.method,Origin:u(this,wt).location.origin});t.length>0&&r.set("Access-Control-Request-Headers",t.slice().sort().join(","));let i=await new ob({browserFrame:u(this,ae),window:u(this,wt),url:this.request.url,init:{method:"OPTIONS"},disableCache:!0,disableSameOriginPolicy:!0,unfilteredHeaders:r}).send();if(!i.ok)return!1;let n=i.headers.get("Access-Control-Allow-Origin");if(!n||n!=="*"&&n!==u(this,wt).location.origin)return!1;let a=[];if(i.headers.has("Access-Control-Allow-Methods")){let m=i.headers.get("Access-Control-Allow-Methods");if(m!=="*")for(let p of m.split(","))a.push(p.trim().toUpperCase())}return!(a.length!==0&&!a.includes(this.request.method))}sendRequest(){return new Promise((e,t)=>{let r=u(this,ae)[bt].startTask(()=>this.onAsyncTaskManagerAbort());if(this.resolve)throw new(u(this,wt)).Error("Fetch already sent.");this.resolve=async i=>{!this.disableCache&&i instanceof qo&&u(this,ae).page&&u(this,ae).page.context&&(i[$i]=u(this,ae).page.context.responseCache.add(this.request,{...i,headers:this.responseHeaders,body:i[Ct],waitingForBody:!i[Ct]&&!!i.body}));let n=this.interceptor?.afterAsyncResponse?await this.interceptor.afterAsyncResponse({window:u(this,wt),response:await i,request:this.request}):void 0;u(this,ae)[bt].endTask(r);let a=n instanceof qo?n:i;a instanceof qo&&!a.ok&&u(this,ae).page.console.error(`${this.request.method} ${this.request.url} ${a.status} (${a.statusText})`),e(a)},this.reject=i=>{u(this,ae)[bt].endTask(r),t(i)},this.request.signal.addEventListener("abort",this.listeners.onSignalAbort);let o=(this.request[Ce].protocol==="https:"?y2:a2).request;this.nodeRequest=o(this.request[Ce].href,{method:this.request.method,headers:Cs.getRequestHeaders({browserFrame:u(this,ae),window:u(this,wt),request:this.request,baseHeaders:u(this,ib)}),agent:!1,rejectUnauthorized:!u(this,ae).page.context.browser.settings.fetch.disableStrictSSL,key:this.request[Ce].protocol==="https:"?ju.key:void 0,cert:this.request[Ce].protocol==="https:"?ju.cert:void 0}),this.nodeRequest.on("error",this.onError.bind(this)),this.nodeRequest.on("socket",this.onSocket.bind(this)),this.nodeRequest.on("response",this.onResponse.bind(this)),this.request.body===null?this.nodeRequest.end():Ol.pipeline(this.request.body,this.nodeRequest,i=>{i&&this.onError(i)})})}onSocket(e){let t=()=>{if(this.isChunkedTransfer&&!this.isProperLastChunkReceived){let o=new(u(this,wt)).DOMException("Premature close.",A.networkError);this.request[pr]=o,this.response&&(this.response[pr]=o,this.response.body&&!this.response.body.locked&&this.response.body.cancel(o))}},r=o=>{this.isProperLastChunkReceived=aS.compare(o.slice(-5),OP)===0,!this.isProperLastChunkReceived&&this.previousChunk&&(this.isProperLastChunkReceived=aS.compare(this.previousChunk.slice(-3),OP.slice(0,3))===0&&aS.compare(o.slice(-2),OP.slice(3))===0),this.previousChunk=o};e.prependListener("close",t),e.on("data",r),this.nodeRequest.on("close",()=>{e.removeListener("close",t),e.removeListener("data",r)})}onSignalAbort(e){this.finalizeRequest(),this.abort(e.target?.reason)}onError(e){this.finalizeRequest(),u(this,ae).page.console.error(e),this.reject(new(u(this,wt)).DOMException(`Failed to execute "fetch()" on "Window" with URL "${this.request.url}": ${e.message}`,A.networkError))}onAsyncTaskManagerAbort(){let e=new(u(this,wt)).DOMException("The operation was aborted.",A.abortError);this.request[we]=!0,this.request[pr]=e,this.response&&(this.response[we]=!0,this.response[pr]=e),this.listeners.onSignalAbort&&this.request.signal.removeEventListener("abort",this.listeners.onSignalAbort),this.nodeRequest&&!this.nodeRequest.destroyed&&this.nodeRequest.destroy(e),this.nodeResponse&&!this.nodeResponse.destroyed&&this.nodeResponse.destroy(e),this.response&&this.response.body&&(this.response.body.locked||this.response.body.cancel(e))}onResponse(e){if(this.isChunkedTransfer=e.headers["transfer-encoding"]==="chunked"&&!e.headers["content-length"],this.nodeRequest.setTimeout(0),this.responseHeaders=wm.parseResponseHeaders({browserFrame:u(this,ae),requestURL:this.request[Ce],rawHeaders:e.rawHeaders}),this.handleRedirectResponse(e,this.responseHeaders))return;e.once("end",()=>this.request.signal.removeEventListener("abort",this.listeners.onSignalAbort));let t=Ol.pipeline(e,new Ol.PassThrough,i=>{}),r={status:e.statusCode,statusText:e.statusMessage,headers:this.responseHeaders},o=this.responseHeaders.get("Content-Encoding");if(this.request.method==="HEAD"||o===null||e.statusCode===204||e.statusCode===304){this.response=new(u(this,wt)).Response(hr.nodeToWebStream(t),r),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response);return}if(o==="gzip"||o==="x-gzip"){let i={flush:Xu.constants.Z_SYNC_FLUSH,finishFlush:Xu.constants.Z_SYNC_FLUSH};t=Ol.pipeline(t,Xu.createGunzip(i),n=>{}),this.response=new(u(this,wt)).Response(hr.nodeToWebStream(t),r),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response);return}if(o==="deflate"||o==="x-deflate"){let i=Ol.pipeline(e,new Ol.PassThrough,n=>{});i.on("data",n=>{(n[0]&15)===8?t=Ol.pipeline(t,Xu.createInflate(),a=>{}):t=Ol.pipeline(t,Xu.createInflateRaw(),a=>{}),this.response=new(u(this,wt)).Response(hr.nodeToWebStream(t),r),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response)}),i.on("end",()=>{this.response||(this.response=new(u(this,wt)).Response(hr.nodeToWebStream(t),r),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response))});return}if(o==="br"){t=Ol.pipeline(t,Xu.createBrotliDecompress(),i=>{}),this.response=new(u(this,wt)).Response(hr.nodeToWebStream(t),r),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response);return}this.response=new(u(this,wt)).Response(hr.nodeToWebStream(t),r),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response)}handleRedirectResponse(e,t){if(!Rl.isRedirect(e.statusCode))return!1;switch(this.request.redirect){case"error":return this.finalizeRequest(),this.reject(new(u(this,wt)).DOMException(`URI requested responds with a redirect, redirect mode is set to "error": ${this.request.url}`,A.abortError)),!0;case"manual":return!1;case"follow":let r=t.get("Location"),o=e.statusCode===303||(e.statusCode===301||e.statusCode===302)&&this.request.method==="POST",i=null;if(r!==null)try{i=new lS(r,this.request.url)}catch{return this.finalizeRequest(),this.reject(new(u(this,wt)).DOMException(`URI requested responds with an invalid redirect URL: ${r}`,A.uriMismatchError)),!0}if(i===null)return!1;if(Rl.isMaxRedirectsReached(this.redirectCount))return this.finalizeRequest(),this.reject(new(u(this,wt)).DOMException(`Maximum redirects reached at: ${this.request.url}`,A.networkError)),!0;let n=new(u(this,wt)).Headers(this.request.headers),a={method:this.request.method,signal:this.request.signal,referrer:this.request.referrer,referrerPolicy:this.request.referrerPolicy,credentials:this.request.credentials,headers:n,body:this.request[bs]};if((this.request.credentials==="omit"||this.request.credentials==="same-origin"&&Ci.isCORS(u(this,wt).location.href,i))&&(n.delete("cookie"),n.delete("cookie2")),this.request.signal[we])return this.abort(this.request.signal[ui]),!0;o&&(a.method="GET",a.body=void 0,n.delete("Content-Length"),n.delete("Content-Type"));let m=Ls.getReferrerPolicyFromHeader(n);m&&(a.referrerPolicy=m);let p=new ob({browserFrame:u(this,ae),window:u(this,wt),url:i,init:a,redirectCount:this.redirectCount+1,disableSameOriginPolicy:this.disableSameOriginPolicy,contentType:o?null:this.request[Oe]});return this.finalizeRequest(),p.send().then(b=>this.resolve(b)).catch(b=>this.reject(b)),!0;default:return this.finalizeRequest(),this.reject(new(u(this,wt)).DOMException(`Redirect option '${this.request.redirect}' is not a valid value of IRequestRedirect`)),!0}}finalizeRequest(){this.request.signal.removeEventListener("abort",this.listeners.onSignalAbort),this.nodeRequest?.destroy()}abort(e){let t=new(u(this,wt)).DOMException("The operation was aborted."+(e?" "+e.toString():""),A.abortError);this.request[we]=!0,this.request[pr]=t,this.response&&(this.response[we]=!0,this.response[pr]=t),this.nodeRequest&&!this.nodeRequest.destroyed&&this.nodeRequest.destroy(t),this.nodeResponse&&!this.nodeResponse.destroyed&&this.nodeResponse.destroy(t),this.response&&this.response.body&&(this.response.body.locked||this.response.body.cancel(t)),this.reject&&this.reject(e!==void 0?e:t)}};ae=new WeakMap,wt=new WeakMap,ib=new WeakMap;var Wo=ob;var VP;(function(l){l.auto="auto",l.manual="manual"})(VP||(VP={}));var ts=VP;import{URL as IP}from"url";var xo=class{static getRelativeURL(e,t){if(t=t?String(t):"about:blank",t.startsWith("about:")||t.startsWith("javascript:"))return new IP(t);try{return new IP(t,e.window.location.href)}catch{return new IP("about:blank")}}};var Vr,po,xm=class{constructor(e,t){x(this,Vr);x(this,po);if(!e)throw new TypeError("Illegal constructor");w(this,Vr,e),w(this,po,t)}get length(){return u(this,Vr)?.[We].items.length||0}get state(){return u(this,Vr)?.[We].currentItem.state||null}get scrollRestoration(){return u(this,Vr)?.[We].currentItem.scrollRestoration||ts.auto}set scrollRestoration(e){switch(e){case ts.auto:case ts.manual:let t=u(this,Vr)?.[We].currentItem;t&&(t.scrollRestoration=e);break}}back(){u(this,po).closed||u(this,Vr)?.goBack()}forward(){u(this,po).closed||u(this,Vr)?.goForward()}go(e){u(this,po).closed||u(this,Vr)?.goSteps(e)}pushState(e,t,r){if(!u(this,Vr)||u(this,po).closed)return;let o=u(this,Vr)?.[We];if(!o)return;if(arguments.length<2)throw new(u(this,po)).TypeError(`Failed to execute 'pushState' on 'History': 2 arguments required, but only ${arguments.length} present.`);let i=u(this,po)[ni],n=r?xo.getRelativeURL(u(this,Vr),r):i;if(r&&n.origin!==i.origin)throw new(u(this,po)).DOMException(`Failed to execute 'pushState' on 'History': A history state object with URL '${r.toString()}' cannot be created in a document with origin '${i.origin}' and URL '${i.href}'.`,A.securityError);o.currentItem.popState=!0,o.push({title:u(this,po).document.title,href:n.href,state:e,popState:!0,scrollRestoration:o.currentItem.scrollRestoration,method:o.currentItem.method||"GET",formData:o.currentItem.formData||null}),i[no](u(this,Vr),o.currentItem.href)}replaceState(e,t,r){if(!u(this,Vr)||u(this,po).closed)return;let o=u(this,Vr)?.[We];if(!o)return;if(arguments.length<2)throw new(u(this,po)).TypeError(`Failed to execute 'pushState' on 'History': 2 arguments required, but only ${arguments.length} present.`);let i=u(this,po)[ni],n=r?xo.getRelativeURL(u(this,Vr),r):i;if(r&&n.origin!==i.origin)throw new(u(this,po)).DOMException(`Failed to execute 'pushState' on 'History': A history state object with URL '${r.toString()}' cannot be created in a document with origin '${i.origin}' and URL '${i.href}'.`,A.securityError);o.replace({title:u(this,po).document.title,href:n.href,state:e,popState:o.currentItem.popState,scrollRestoration:o.currentItem.scrollRestoration,method:o.currentItem.method,formData:o.currentItem.formData}),r&&i[no](u(this,Vr),o.currentItem.href)}[ye](){w(this,Vr,null)}};Vr=new WeakMap,po=new WeakMap;var yS,mS,Yu=class{constructor(e,t){x(this,yS);x(this,mS);w(this,yS,e),w(this,mS,t||{})}observe(e){}disconnect(){}unobserve(e){}takeRecords(){return[]}};yS=new WeakMap,mS=new WeakMap;var Ku=class{constructor(e){s(this,"boundingClientRect",null);s(this,"intersectionRatio",0);s(this,"intersectionRect",null);s(this,"isIntersecting",!1);s(this,"rootBounds",null);s(this,"target",null);s(this,"time",0);Object.assign(this,e)}};var tv,nr,Fe,ny,Ju,Em=class{constructor(e,t){s(this,tv,"Location");x(this,nr);x(this,Fe);x(this,ny,null);x(this,Ju,[]);if(!e)throw new TypeError("Illegal constructor");w(this,nr,e),w(this,Fe,new URL(t))}get hash(){return u(this,Fe).hash}set hash(e){let t=u(this,nr)?.[We];if(!t||!u(this,nr))return;let r=new URL(u(this,Fe).href),o=u(this,Fe).hash;r.hash=e,r.hash!==o&&(t.currentItem.popState=!0,t.push({title:"",href:r.href,state:t.currentItem.state,popState:!0,scrollRestoration:ts.manual,method:t.currentItem.method,formData:t.currentItem.formData||null}),this[no](u(this,nr),r.href))}get host(){return u(this,Fe).host}set host(e){let t=new URL(u(this,Fe).href);t.host=e,this.href=t.href}get hostname(){return u(this,Fe).hostname}set hostname(e){let t=new URL(u(this,Fe).href);t.hostname=e,this.href=t.href}get href(){return u(this,Fe).href}set href(e){u(this,nr)&&u(this,nr).goto(e).catch(t=>{if(u(this,nr)?.page?.console)u(this,nr).page.console.error(t);else throw t})}get origin(){return u(this,Fe).origin}get pathname(){return u(this,Fe).pathname}set pathname(e){let t=new URL(u(this,Fe).href);t.pathname=e,this.href=t.href}get port(){return u(this,Fe).port}set port(e){let t=new URL(u(this,Fe).href);t.port=e,this.href=t.href}get protocol(){return u(this,Fe).protocol}set protocol(e){let t=new URL(u(this,Fe).href);t.protocol=e,this.href=t.href}get search(){return u(this,Fe).search}set search(e){let t=new URL(u(this,Fe).href);t.search=e,this.href=t.href}replace(e){this.href=String(e)}assign(e){this.href=String(e)}reload(){u(this,nr)&&u(this,nr).goto(this.href).catch(e=>{if(u(this,nr)?.page.console)u(this,nr).page.console.error(e);else throw e})}[(tv=Symbol.toStringTag,no)](e,t){if(!u(this,nr))return;if(u(this,nr)!==e)throw new Error("Failed to set URL. Browser frame mismatch.");let r=u(this,Fe).href,o=u(this,Fe).hash;if(u(this,Fe).href=t,u(this,Fe).hash!==o){let i=u(this,Fe).href;u(this,Ju).push(new Qa("hashchange",{oldURL:r,newURL:i})),u(this,nr)?.window?.document?.[ao](),u(this,ny)&&u(this,nr).window?.clearTimeout(u(this,ny)),w(this,ny,u(this,nr).window?.setTimeout(()=>{let n=u(this,Ju);w(this,Ju,[]);for(let a of n)u(this,nr)?.window?.dispatchEvent(a)}))}}[ye](){u(this,ny)&&u(this,nr)?.window?.clearTimeout(u(this,ny)),w(this,nr,null)}toString(){return u(this,Fe).toString()}};nr=new WeakMap,Fe=new WeakMap,ny=new WeakMap,Ju=new WeakMap;var jo=class{constructor(e){s(this,"type");s(this,"target");s(this,"addedNodes");s(this,"removedNodes");s(this,"previousSibling");s(this,"nextSibling");s(this,"attributeName");s(this,"attributeNamespace");s(this,"oldValue");this.type=e.type,this.target=e.target,this.addedNodes=e.addedNodes||[],this.removedNodes=e.removedNodes||[],this.previousSibling=e.previousSibling||null,this.nextSibling=e.nextSibling||null,this.attributeName=e.attributeName||null,this.attributeNamespace=e.attributeNamespace||null,this.oldValue=e.oldValue||null}};var sb=class{constructor(e,t,r,o){s(this,"description");s(this,"enabledPlugin");s(this,"suffixes");s(this,"type");this.description=e,this.enabledPlugin=t,this.suffixes=r,this.type=o}toString(){return"[object MimeType]"}};var vm=class{constructor(e){s(this,"length");for(let t=0,r=e.length;t<r;t++)this[t]=e[t],this[e[t].type]=e[t];this.length=e.length}item(e){return this[e]||null}namedItem(e){return this[e]||null}toString(){return"[object MimeTypeArray]"}};var Am=class{constructor(e){s(this,"length");for(let t=0,r=e.length;t<r;t++)this[t]=e[t],this[e[t].name]=e[t];this.length=e.length}item(e){return this[e]||null}namedItem(e){return this[e]||null}refresh(){}toString(){return"[object PluginArray]"}};var FP;(function(l){l.geolocation="geolocation",l.notifications="notifications",l.push="push",l.midi="midi",l.camera="camera",l.microphone="microphone",l.backgroundFetch="background-fetch",l.backgroundSync="background-sync",l.persistentStorage="persistent-storage",l.ambientLightSensor="ambient-light-sensor",l.accelerometer="accelerometer",l.gyroscope="gyroscope",l.magnetometer="magnetometer",l.screenWakeLock="screen-wake-lock",l.nfc="nfc",l.displayCapture="display-capture",l.accessibilityEvents="accessibility-events",l.clipboardRead="clipboard-read",l.clipboardWrite="clipboard-write",l.paymentHandler="payment-handler",l.idleDetection="idle-detection",l.periodicBackgroundSync="periodic-background-sync",l.systemWakeLock="system-wake-lock",l.storageAccess="storage-access",l.windowManagement="window-management",l.windowPlacement="window-placement",l.localFonts="local-fonts",l.topLevelStorageAccess="top-level-storage-access"})(FP||(FP={}));var ev=FP;var Tm,nb,ly=class{constructor(e){x(this,Tm,{});x(this,nb);e?.document||new TypeError("Invalid constructor"),w(this,nb,e)}async query(e){let t=e?.name;if(t&&u(this,Tm)[t])return u(this,Tm)[t];if(!Object.values(ev).includes(t))throw new Error(`Failed to execute 'query' on 'Permissions': Failed to read the 'name' property from 'PermissionDescriptor': The provided value '${t}' is not a valid enum value of type PermissionName.`);return u(this,Tm)[t]=new(u(this,nb)).PermissionStatus("granted"),u(this,Tm)[t]}};Tm=new WeakMap,nb=new WeakMap;var Nm,lb,ab,Zu=class{constructor(e){x(this,Nm);x(this,lb);x(this,ab);if(!e)throw new TypeError("Invalid constructor");w(this,Nm,e),w(this,lb,new Fa(e)),w(this,ab,new ly(e))}get cookieEnabled(){return!0}get credentials(){return null}get geolocation(){return null}get language(){return"en-US"}get languages(){return["en-US","en"]}get locks(){return null}get maxTouchPoints(){return new ot(u(this,Nm)).getSettings()?.navigator.maxTouchPoints||0}get hardwareConcurrency(){return 8}get appCodeName(){return"Mozilla"}get appName(){return"Netscape"}get appVersion(){let e=this.userAgent,t=e.indexOf("/");return t>-1?e.substring(t+1):""}get platform(){let e=this.userAgent,t=e.indexOf("("),r=e.indexOf(")");return t>-1&&r>-1?e.substring(t+1,r):""}get product(){return"Gecko"}get productSub(){return"20100101"}get vendor(){return""}get vendorSub(){return""}get userAgent(){return new ot(u(this,Nm)).getSettings()?.navigator.userAgent||""}get onLine(){return!0}get permissions(){return u(this,ab)}get clipboard(){return u(this,lb)}get webdriver(){return!0}get doNotTrack(){return"unspecified"}get mimeTypes(){return new vm([])}get plugins(){return new Am([])}sendBeacon(e,t){return u(this,Nm).fetch(e,{method:"POST",body:t}),!0}toString(){return"[object Navigator]"}};Nm=new WeakMap,lb=new WeakMap,ab=new WeakMap;var yb=class{constructor(e,t,r,o){s(this,"length",0);s(this,"description");s(this,"filename");s(this,"name");this.description=t,this.filename=r,this.name=o;for(let i=0,n=e.length;i<n;i++)this[i]=e[i],this[e[i].type]=e[i];this.length=e.length}item(e){return this[e]||null}namedItem(e){return this[e]||null}toString(){return"[object Plugin]"}};var DP;(function(l){l[l.disconnect=1]="disconnect",l[l.preceding=2]="preceding",l[l.following=4]="following",l[l.contains=8]="contains",l[l.containedBy=16]="containedBy",l[l.implementationSpecific=32]="implementationSpecific"})(DP||(DP={}));var Ri=DP;var Pt=class l{static isTextNode(e){return e?.[U]===M.textNode}static isInclusiveAncestor(e,t,r=!1){if(e===null||t===null)return!1;if(e===t)return!0;if(!e[q].length||r&&t[st]!==e[st])return!1;if(r&&e===t[T]&&t[st])return!0;let o=t[W];for(;o;){if(e===o)return!0;o=o[W]?o[W]:r&&o.host?o.host:null}return!1}static isFollowing(e,t){if(e===t)return!1;let r=t;for(;r;)if(r=this.following(r),r===e)return!0;return!1}static getNodeLength(e){switch(e[U]){case M.documentTypeNode:return 0;case M.textNode:case M.processingInstructionNode:case M.commentNode:return e.data.length;default:return e[q].length}}static following(e,t){let r=e.firstChild;if(r)return r;let o=e;for(;o;){if(o===t)return null;let i=o.nextSibling;if(i)return i;o=o[W]}return null}static nextDescendantNode(e){for(;e&&!e.nextSibling;)e=e[W];return e?e.nextSibling:null}static attributeListsEqual(e,t){let r=Array.from(e[St][Y].values()),o=Array.from(t[St][Y].values());for(let i of r){let n=!1;for(let a of o)if(i[et]===a[et]&&i.localName===a.localName&&i[J]===a[J]){n=!0;break}if(!n)return!1}return!0}static isEqualNode(e,t){if(e[U]!==t[U])return!1;switch(e[U]){case M.documentTypeNode:let r=e,o=t;if(r.name!==o.name||r.publicId!==o.publicId||r.systemId!==o.systemId)return!1;break;case M.elementNode:let i=e,n=t;if(i[et]!==n[et]||i[Vt]!==n[Vt]||i[dt]!==n[dt]||i[St][Y].size!==n[St][Y].size)return!1;break;case M.attributeNode:let a=e,m=t;if(a[et]!==m[et]||a.localName!==m.localName||a[J]!==m[J])return!1;break;case M.processingInstructionNode:let p=e,b=t;if(p.target!==b.target||p.data!==b.data)return!1;break;case M.textNode:case M.commentNode:let d=e,f=t;if(d.data!==f.data)return!1;break}if(e[U]===M.elementNode&&!l.attributeListsEqual(e,t)||e[q].length!==t[q].length)return!1;for(let r=0;r<e[q].length;r++){let o=e[q][r],i=t[q][r];if(!l.isEqualNode(o,i))return!1}return!0}};var _P;(function(l){l.attributes="attributes",l.characterData="characterData",l.childList="childList"})(_P||(_P={}));var es=_P;var De=class{static createNode(e,t,...r){return t.prototype[y]||this.ownerDocuments.push(e),new t(...r)}static pullOwnerDocument(){return this.ownerDocuments.pop()||null}};s(De,"ownerDocuments",[]);var rv,ov,iv,sv,nv,lv,av,yv,mv,uv,pv,hv,cv,dv,ve=class ve extends _t{constructor(){super();s(this,dv,!1);s(this,cv,null);s(this,hv,null);s(this,pv,null);s(this,uv,null);s(this,mv,null);s(this,yv,null);s(this,av,[]);s(this,lv,[]);s(this,nv,[]);s(this,sv,null);s(this,iv,null);s(this,ov,{querySelector:new Map,querySelectorAll:new Map,matches:new Map,elementsByTagName:new Map,elementsByTagNameNS:new Map,elementByTagName:new Map,elementById:new Map,computedStyle:null});s(this,rv,[]);if(this[y])this[T]=this[y].document;else{let t=De.pullOwnerDocument();if(!t)throw new TypeError("Illegal constructor");this[T]=t,this[y]=t[y]}}get[(dv=st,cv=W,hv=Ve,pv=Br,uv=Pr,mv=Bt,yv=qe,av=ii,lv=q,nv=gt,sv=nl,iv=Ki,ov=$,rv=rr,Symbol.toStringTag)](){return this.constructor.name}get isConnected(){return this[st]}get ownerDocument(){return this[T]}get parentNode(){return this[W]}get nodeType(){return this[U]}get childNodes(){return this[nl]||(this[nl]=new Li(h,this[q])),this[nl]}get textContent(){return""}set textContent(t){}get nodeValue(){return null}set nodeValue(t){}get nodeName(){return""}get previousSibling(){if(this[W]){let t=this[W][q],r=t.indexOf(this[Gt]||this);if(r>0)return t[r-1]}return null}get nextSibling(){if(this[W]){let t=this[W][q],r=t.indexOf(this[Gt]||this);if(r>-1&&r+1<t.length)return t[r+1]}return null}get firstChild(){let t=this[q];return t.length>0?t[0]:null}get lastChild(){let t=this[q];return t.length>0?t[t.length-1]:null}get parentElement(){let t=this[W];for(;t&&t[U]!==M.elementNode;)t=t[W];return t}get baseURI(){let t=this[T].querySelector("base");return t?t.href:this[y].location.href}hasChildNodes(){return this[q].length>0}contains(t){return t===void 0?!1:Pt.isInclusiveAncestor(this,t)}getRootNode(t){return this[st]?this[Ve]&&!t?.composed?this[Ve]:this[T]:this}cloneNode(t=!1){return this[ht](t)}appendChild(t){if(arguments.length<1)throw new this[y].TypeError("Failed to execute 'appendChild' on 'Node': 1 argument required, but only 0 present");return this[Et](t)}removeChild(t){if(arguments.length<1)throw new this[y].TypeError("Failed to execute 'removeChild' on 'Node': 1 argument required, but only 0 present");return this[Rr](t)}insertBefore(t,r){if(arguments.length<2)throw new this[y].TypeError(`Failed to execute 'insertBefore' on 'Node': 2 arguments required, but only ${arguments.length} present.`);return this[lo](t,r)}replaceChild(t,r){if(arguments.length<2)throw new this[y].TypeError(`Failed to execute 'replaceChild' on 'Node': 2 arguments required, but only ${arguments.length} present.`);return this[xu](t,r)}[ht](t=!1){let r=De.createNode(this[T],this.constructor);if(r[q].length){let o=r[q];for(;o.length;)r.removeChild(o[0])}if(t)for(let o of this[q]){let i=o.cloneNode(!0);i[W]=r,r[q].push(i),i[U]===M.elementNode&&r[gt].push(i)}return r}[Et](t,r=!1){t[Gt]&&(t=t[Gt]);let o=this[Gt]||this;if(!r){if(t===o)throw new this[y].DOMException("Failed to execute 'appendChild' on 'Node': Not possible to append a node as a child of itself.");if(Pt.isInclusiveAncestor(t,o,!0))throw new this[y].DOMException("Failed to execute 'appendChild' on 'Node': The new node is a parent of the node to insert to.",A.domException)}if(t[U]===M.documentFragmentNode){let i=t[q];for(;i.length;)this.appendChild(i[0]);return t}t[W]&&t[W][Rr](t),t[W]=o,t[ao](),this[q].push(t),t[U]===M.elementNode&&this[gt].push(t),t[To]();for(let i of this[ii])i.options?.subtree&&i.callback.deref()&&t[Jy](i);return this[tn](new jo({target:o,type:es.childList,addedNodes:[t]})),t}[Rr](t){t[Gt]&&(t=t[Gt]);let r=this[q].indexOf(t);if(r===-1)throw new this[y].DOMException("Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.");let o=t.previousSibling,i=t.nextSibling;if(t[W]=null,t[ao](),this[q].splice(r,1),t[U]===M.elementNode){let n=this[gt].indexOf(t);n!==-1&&this[gt].splice(n,1)}if(t[Ki]){let n=t[Ki][nn].indexOf(t);n!==-1&&t[Ki][nn].splice(n,1),t[Ki]=null}t[Js]();for(let n of this[ii])n.options?.subtree&&n.callback.deref()&&t[fu](n);return this[tn](new jo({target:this[Gt]||this,type:es.childList,removedNodes:[t],previousSibling:o,nextSibling:i})),t}[lo](t,r,o=!1){if(t[Gt]&&(t=t[Gt]),r&&r[Gt]&&(r=r[Gt]),t===r)return t;let i=this[Gt]||this;if(!o){if(t===i)throw new this[y].DOMException("Failed to execute 'insertBefore' on 'Node': Not possible to insert a node as a child of itself.");if(Pt.isInclusiveAncestor(t,i,!0))throw new this[y].DOMException("Failed to execute 'insertBefore' on 'Node': The new node is a parent of the node to insert to.",A.domException)}if(t[U]===M.documentFragmentNode){let m=t[q];for(;m.length>0;)this[lo](m[0],r,!0);return t}if(!r)return this[Et](t,!0),t;let n=this[q];if(!n.includes(r))throw new this[y].DOMException("Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.");t[W]&&t[W][Rr](t),t[W]=i,t[ao]();let a=n.indexOf(r);if(t[U]===M.elementNode){let m=this[gt];if(r[U]===M.elementNode)m.splice(m.indexOf(r),0,t);else{let p=!1;for(let b=a,d=n.length;b<d;b++)if(n[b][U]===M.elementNode){m.splice(m.indexOf(n[b]),0,t),p=!0;break}p||m.push(t)}}n.splice(a,0,t),t[To]();for(let m of this[ii])m.options?.subtree&&m.callback.deref()&&t[Jy](m);return this[tn](new jo({target:i,type:es.childList,addedNodes:[t]})),t}[xu](t,r){return this.insertBefore(t,r),this.removeChild(r),r}isEqualNode(t){return Pt.isEqualNode(this,t)}toString(){return`[object ${this.constructor.name}]`}[Jy](t){if(this[ii].push(t),t.options.subtree)for(let r of this[q])r[Jy](t)}[fu](t){let r=this[ii].indexOf(t);if(r!==-1&&this[ii].splice(r,1),t.options.subtree)for(let o of this[q])o[fu](t)}[tn](t){this[ao]();let r=this[ii];if(r.length)for(let o=0,i=r.length;o<i;o++){let n=r[o],a=n.callback.deref();if(a)switch(t.type){case es.childList:n.options.childList&&a(t);break;case es.attributes:n.options.attributes&&(!n.options.attributeFilter||n.options.attributeFilter.includes(t.attributeName))&&a(t);break;case es.characterData:n.options?.characterData&&a(t);break}else r.splice(o,1),o--,i--}}[ao](){let t=this[$];if(t.querySelector.size){for(let i of t.querySelector.values())i.result&&(i.result=null);t.querySelector=new Map}if(t.querySelectorAll.size){for(let i of t.querySelectorAll.values())i.result&&(i.result=null);t.querySelectorAll=new Map}if(t.matches.size){for(let i of t.matches.values())i.result&&(i.result=null);t.matches=new Map}if(t.elementsByTagName.size){for(let i of t.elementsByTagName.values())i.result&&(i.result=null);t.elementsByTagName=new Map}if(t.elementsByTagNameNS.size){for(let i of t.elementsByTagNameNS.values())i.result&&(i.result=null);t.elementsByTagNameNS=new Map}if(t.elementByTagName.size){for(let i of t.elementByTagName.values())i.result&&(i.result=null);t.elementByTagName=new Map}if(t.elementById.size){for(let i of t.elementById.values())i.result&&(i.result=null);t.elementById=new Map}let r=this[rr];if(r.length){for(let i of r)i.result=null;this[rr]=[]}let o=this[T];if(o&&o[ws].length){for(let i of o[ws])i.result=null;o[ws]=[]}}[To](){let t=this[W],r=t||this[Aa],o=!1,i=!1;if(!this[st]&&r[st]?(this[st]=!0,o=!0):this[st]&&!r[st]&&(this[st]=!1,i=!0),this[T]=r[T]||r,this[y]=r[y]||r[fo],t){this[U]!==M.documentFragmentNode&&(this[Ve]=t[Ve]);let a=this[tt];t[Br]&&a!=="STYLE"&&(this[Br]=t[Br]),t[Pr]&&a!=="TEXTAREA"&&(this[Pr]=t[Pr]),t[Bt]&&a!=="FORM"&&(this[Bt]=t[Bt]),t[qe]&&a!=="SELECT"&&(this[qe]=t[qe])}let n=this[q];for(let a=0,m=n.length;a<m;a++)n[a][W]=this,n[a][To]();this[Le]&&this[Le][To](),o?this[kr]():i&&this[Mr]()}[Js](){this[U]!==M.documentFragmentNode&&(this[Ve]=null);let t=this[tt];t!=="STYLE"&&(this[Br]=null),t!=="TEXTAREA"&&(this[Pr]=null),t!=="FORM"&&(this[Bt]=null),t!=="SELECT"&&(this[qe]=null),this[st]&&(this[st]=!1,this[Mr]());let r=this[q];for(let o=0,i=r.length;o<i;o++)r[o][To]();this[Le]&&this[Le][Js]()}[kr](){this[Le]&&this[Le][kr]()}[Mr](){this[T][$e]===this&&(this[T][ao](),this[T][$e]=null),this[Le]&&this[Le][Mr]()}[ye](){for(super[ye](),this[st]=!1;this[q].length>0;){let t=this[q][this[q].length-1];t.disconnectedCallback&&delete t.disconnectedCallback,this[Rr](t),t[ye]()}this[W]=null,this[Ve]=null,this[Br]=null,this[Pr]=null,this[Bt]=null,this[qe]=null,this[ii]=[],this[q]=[],this[gt]=[],this[nl]=null,this[Ki]=null,this[ao]()}compareDocumentPosition(t){if(this===t)return 0;let r=t,o=this[Gt]||this,i=null,n=null;if(r[U]===M.attributeNode&&(i=r,r=i[At]),o[U]===M.attributeNode&&(n=o,o=n[At],i!==null&&r!==null&&o===r))for(let te of o[St][Y].values()){if(Pt.isEqualNode(te,i))return ve.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|ve.DOCUMENT_POSITION_PRECEDING;if(Pt.isEqualNode(te,n))return ve.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|ve.DOCUMENT_POSITION_FOLLOWING}let a=[],m=o;for(;m;){if(m===r)return ve.DOCUMENT_POSITION_CONTAINS|ve.DOCUMENT_POSITION_PRECEDING;a.push(m),m=m[W]}let p=[],b=r;for(;b;){if(b===o)return ve.DOCUMENT_POSITION_CONTAINED_BY|ve.DOCUMENT_POSITION_FOLLOWING;p.push(b),b=b[W]}let d=(te,Lt)=>te[te.length-1-Lt],f=d(a,0);if(!f||f!==d(p,0))return ve.DOCUMENT_POSITION_DISCONNECTED|ve.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|ve.DOCUMENT_POSITION_FOLLOWING;let v=0,L=Math.min(a.length,p.length);for(let te=0;te<L;++te){let Lt=d(a,te),er=d(p,te);if(Lt!==er)break;v=te}let C=d(a,v),X=0,lt=-1,Q=-1,ct=d(a,v+1),qt=d(p,v+1),Nt=te=>{for(let Lt of te){if(Nt(Lt[q]),Lt===ct?lt=X:Lt===qt&&(Q=X),lt!==-1&&Q!==-1)break;X++}};return Nt(C[q]),Q<lt?ve.DOCUMENT_POSITION_PRECEDING:ve.DOCUMENT_POSITION_FOLLOWING}normalize(){let t=this.firstChild;for(;t;){if(Pt.isTextNode(t)){for(;Pt.isTextNode(t.nextSibling);)t.data+=t.nextSibling.data,t.nextSibling.remove();if(!t.data.length){let r=t;t=t.nextSibling,r.remove();continue}}else t.normalize();t=t.nextSibling}}isSameNode(t){return this===t}};s(ve,"ELEMENT_NODE",M.elementNode),s(ve,"ATTRIBUTE_NODE",M.attributeNode),s(ve,"TEXT_NODE",M.textNode),s(ve,"CDATA_SECTION_NODE",M.cdataSectionNode),s(ve,"COMMENT_NODE",M.commentNode),s(ve,"DOCUMENT_NODE",M.documentNode),s(ve,"DOCUMENT_TYPE_NODE",M.documentTypeNode),s(ve,"DOCUMENT_FRAGMENT_NODE",M.documentFragmentNode),s(ve,"PROCESSING_INSTRUCTION_NODE",M.processingInstructionNode),s(ve,"DOCUMENT_POSITION_CONTAINED_BY",Ri.containedBy),s(ve,"DOCUMENT_POSITION_CONTAINS",Ri.contains),s(ve,"DOCUMENT_POSITION_DISCONNECTED",Ri.disconnect),s(ve,"DOCUMENT_POSITION_FOLLOWING",Ri.following),s(ve,"DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC",Ri.implementationSpecific),s(ve,"DOCUMENT_POSITION_PRECEDING",Ri.preceding);var ft=ve;ft.prototype.ELEMENT_NODE=M.elementNode;ft.prototype.ATTRIBUTE_NODE=M.attributeNode;ft.prototype.TEXT_NODE=M.textNode;ft.prototype.CDATA_SECTION_NODE=M.cdataSectionNode;ft.prototype.COMMENT_NODE=M.commentNode;ft.prototype.DOCUMENT_NODE=M.documentNode;ft.prototype.DOCUMENT_TYPE_NODE=M.documentTypeNode;ft.prototype.DOCUMENT_FRAGMENT_NODE=M.documentFragmentNode;ft.prototype.PROCESSING_INSTRUCTION_NODE=M.processingInstructionNode;ft.prototype.DOCUMENT_POSITION_CONTAINED_BY=Ri.containedBy;ft.prototype.DOCUMENT_POSITION_CONTAINS=Ri.contains;ft.prototype.DOCUMENT_POSITION_DISCONNECTED=Ri.disconnect;ft.prototype.DOCUMENT_POSITION_FOLLOWING=Ri.following;ft.prototype.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=Ri.implementationSpecific;ft.prototype.DOCUMENT_POSITION_PRECEDING=Ri.preceding;var bv,gv,fv,Sv,Pv,wv,xv,Ev,Qu=class extends ft{constructor(){super(...arguments);s(this,Ev,M.attributeNode);s(this,xv,null);s(this,wv,null);s(this,Pv,null);s(this,Sv,null);s(this,fv,null);s(this,gv,!0);s(this,bv,null)}get specified(){return this[cc]}get ownerElement(){return this[At]}get value(){return this[J]}set value(t){this[J]=t}get name(){return this[nt]||""}get localName(){return this[dt]||""}get prefix(){return this[Vt]}get textContent(){return this[J]||""}get namespaceURI(){return this[et]}[(Ev=U,xv=et,wv=nt,Pv=dt,Sv=Vt,fv=J,gv=cc,bv=At,ht)](t=!1){let r=super[ht](t);return r[et]=this[et],r[nt]=this[nt],r[dt]=this[dt],r[Vt]=this[Vt],r[J]=this[J],r[cc]=this[cc],r}};var Vl=class{static appendData(e,t){e.data+=t}static deleteData(e,t,r){e.data=e.data.substring(0,t)+e.data.substring(t+r)}static insertData(e,t,r){e.data=e.data.substring(0,t)+r+e.data.substring(t)}static replaceData(e,t,r,o){e.data=e.data.substring(0,t)+o+e.data.substring(t+r)}static substringData(e,t,r){return e.data.substring(t,t+r)}};var Il=class{static previousElementSibling(e){let t=e.previousSibling;for(;t&&t[U]!==M.elementNode;)t=t.previousSibling;return t}static nextElementSibling(e){let t=e.nextSibling;for(;t&&t[U]!==M.elementNode;)t=t.nextSibling;return t}};var Oi=class{static remove(e){e[W]&&e[W].removeChild(e)}static replaceWith(e,...t){let r=e[W];if(!r)throw new Ht("This element has no parent node.");for(let o of t)o instanceof ft?r.insertBefore(o,e):r.insertBefore(r[T].createTextNode(String(o)),e);r.removeChild(e)}static before(e,...t){let r=e[W];if(r)for(let o of t)o instanceof ft?r.insertBefore(o,e):r.insertBefore(r[T].createTextNode(String(o)),e)}static after(e,...t){let r=e[W];if(!r)return;let o=e.nextSibling;for(let i of t){let n=i instanceof ft?i:r[T].createTextNode(String(i));o?r.insertBefore(n,o):r.appendChild(n)}}};var vv,Ms=class extends ft{constructor(t){super();s(this,vv,"");this[le]=t!==void 0?String(t):""}get length(){return this[le].length}get data(){return this[le]}set data(t){let r=this[le];this[le]=String(t),this[tn](new jo({target:this,type:es.characterData,oldValue:r}))}get textContent(){return this[le]}set textContent(t){this.data=t}get nodeValue(){return this[le]}set nodeValue(t){this.textContent=t}get previousElementSibling(){return Il.previousElementSibling(this)}get nextElementSibling(){return Il.nextElementSibling(this)}appendData(t){Vl.appendData(this,t)}deleteData(t,r){Vl.deleteData(this,t,r)}insertData(t,r){Vl.insertData(this,t,r)}replaceData(t,r,o){Vl.replaceData(this,t,r,o)}substringData(t,r){return Vl.substringData(this,t,r)}remove(){Oi.remove(this)}replaceWith(...t){Oi.replaceWith(this,...t)}before(...t){Oi.before(this,...t)}after(...t){Oi.after(this,...t)}[(vv=le,ht)](t=!1){let r=super[ht](t);return r[le]=this[le],r}};var Av,Tv,Nv,Lv,Dn=class extends ft{constructor(){super(...arguments);s(this,Lv,M.documentTypeNode);s(this,Nv,"");s(this,Tv,"");s(this,Av,"")}get name(){return this[nt]}get publicId(){return this[yl]}get systemId(){return this[ml]}get nodeName(){return this.name}toString(){return"[object DocumentType]"}[(Lv=U,Nv=nt,Tv=yl,Av=ml,ht)](t=!1){let r=super[ht](t);return r[nt]=this[nt],r[yl]=this[yl],r[ml]=this[ml],r}};var BP;(function(l){l.loading="loading",l.interactive="interactive",l.complete="complete"})(BP||(BP={}));var uS=BP;var Lm=class extends Error{constructor(e){super(e),this.name="AsyncTaskManagerDebugError"}};var bi={setTimeout:globalThis.setTimeout.bind(globalThis),clearTimeout:globalThis.clearTimeout.bind(globalThis),clearImmediate:globalThis.clearImmediate.bind(globalThis)},ay,rs,os=class{constructor(e){s(this,"runningTasks",{});s(this,"runningTaskCount",0);s(this,"runningTimers",[]);s(this,"runningImmediates",[]);s(this,"debugTrace",new Map);s(this,"waitUntilCompleteTimer",null);s(this,"waitUntilCompleteResolvers",[]);s(this,"destroyed",!1);x(this,ay,null);x(this,rs);w(this,rs,e)}waitUntilComplete(){return new Promise((e,t)=>{this.waitUntilCompleteResolvers.push({resolve:e,reject:t}),this.resolveWhenComplete()})}abort(){return this.destroyed?new Promise((e,t)=>{this.waitUntilCompleteResolvers.push({resolve:e,reject:t}),this.resolveWhenComplete()}):this.abortAll(!1)}destroy(){return this.destroyed?new Promise((e,t)=>{this.waitUntilCompleteResolvers.push({resolve:e,reject:t}),this.resolveWhenComplete()}):this.abortAll(!0)}startTimer(e){if(this.destroyed){bi.clearTimeout(e);return}this.waitUntilCompleteTimer&&(bi.clearTimeout(this.waitUntilCompleteTimer),this.waitUntilCompleteTimer=null),this.runningTimers.push(e),u(this,rs).page.context.browser.settings.debug.traceWaitUntilComplete>0&&this.debugTrace.set(e,new Lm().stack)}endTimer(e){if(this.destroyed){bi.clearTimeout(e);return}let t=this.runningTimers.indexOf(e);t!==-1&&(this.runningTimers.splice(t,1),this.resolveWhenComplete()),u(this,rs).page.context.browser.settings.debug.traceWaitUntilComplete>0&&this.debugTrace.delete(e)}startImmediate(e){if(this.destroyed){bi.clearImmediate(e);return}this.waitUntilCompleteTimer&&(bi.clearTimeout(this.waitUntilCompleteTimer),this.waitUntilCompleteTimer=null),this.runningImmediates.push(e),u(this,rs).page?.context?.browser?.settings?.debug?.traceWaitUntilComplete>0&&this.debugTrace.set(e,new Lm().stack)}endImmediate(e){if(this.destroyed){bi.clearImmediate(e);return}let t=this.runningImmediates.indexOf(e);t!==-1&&(this.runningImmediates.splice(t,1),this.resolveWhenComplete()),u(this,rs).page.context.browser.settings.debug.traceWaitUntilComplete>0&&this.debugTrace.delete(e)}startTask(e){if(this.destroyed)throw e&&e(this.destroyed),new(u(this,rs)).window.Error("Failed to execute 'startTask()' on 'AsyncTaskManager': The asynchronous task manager has been destroyed. This error can be thrown if scripts continue to run while a browser frame is closed.");this.waitUntilCompleteTimer&&(bi.clearTimeout(this.waitUntilCompleteTimer),this.waitUntilCompleteTimer=null);let t=this.newTaskID();return this.runningTasks[t]=e||(()=>{}),this.runningTaskCount++,u(this,rs).page.context.browser.settings.debug.traceWaitUntilComplete>0&&this.debugTrace.set(t,new Lm().stack),t}endTask(e){this.destroyed||(this.runningTasks[e]&&(delete this.runningTasks[e],this.runningTaskCount--,this.resolveWhenComplete()),u(this,rs).page.context.browser.settings.debug.traceWaitUntilComplete>0&&this.debugTrace.delete(e))}getTaskCount(){return this.runningTaskCount}newTaskID(){return this.constructor.taskID++,this.constructor.taskID}resolveWhenComplete(){this.applyDebugging(),!(this.runningTaskCount||this.runningTimers.length||this.runningImmediates.length)&&(this.waitUntilCompleteTimer&&(bi.clearTimeout(this.waitUntilCompleteTimer),this.waitUntilCompleteTimer=null),this.waitUntilCompleteTimer=bi.setTimeout(()=>{if(this.waitUntilCompleteTimer=null,!this.runningTaskCount&&!this.runningTimers.length&&!this.runningImmediates.length){u(this,ay)&&bi.clearTimeout(u(this,ay));let e=this.waitUntilCompleteResolvers;this.waitUntilCompleteResolvers=[];for(let t of e)t.resolve();this.destroyed=!1}else this.applyDebugging()},1))}applyDebugging(){let e=u(this,rs).page.context.browser.settings.debug;!e?.traceWaitUntilComplete||e.traceWaitUntilComplete<1||u(this,ay)||w(this,ay,bi.setTimeout(()=>{w(this,ay,null);let t=`The maximum time was reached for "waitUntilComplete()".
81
+
82
+ ${this.debugTrace.size} task${this.debugTrace.size===1?"":"s"} did not end in time.
83
+
84
+ The following traces were recorded:
85
+
86
+ `,r=1;for(let[i,n]of this.debugTrace.entries())t+=`${typeof i=="number"?"Task":"Timer"} #${r}
87
+ \u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E\u203E${n.replace(/AsyncTaskManagerDebugError:{0,1}/,"").replace(/\s+at /gm,`
88
+ > `)}
89
+
90
+ `,r++;let o=new Error(t);for(let i of this.waitUntilCompleteResolvers)i.reject(o);this.abortAll(!0)},e.traceWaitUntilComplete))}abortAll(e){let t=this.runningTimers,r=this.runningImmediates,o=this.runningTasks;e&&(this.destroyed=!0),this.runningTasks={},this.runningTaskCount=0,this.runningImmediates=[],this.runningTimers=[],this.debugTrace=new Map,this.waitUntilCompleteTimer&&(bi.clearTimeout(this.waitUntilCompleteTimer),this.waitUntilCompleteTimer=null);for(let i of r)bi.clearImmediate(i);for(let i of t)bi.clearTimeout(i);for(let i of Object.keys(o))o[i](e);return new Promise((i,n)=>{this.waitUntilCompleteResolvers.push({resolve:i,reject:n}),this.resolveWhenComplete()})}};ay=new WeakMap,rs=new WeakMap,s(os,"taskID",0);var yy,mb=class{constructor(e){x(this,yy);w(this,yy,new os(e))}waitUntilComplete(){return u(this,yy).waitUntilComplete()}startTask(){return u(this,yy).startTask()}endTask(e){u(this,yy).endTask(e)}destroy(){return u(this,yy).destroy()}};yy=new WeakMap;var Cv,kv,Mv,Rv;Rv=O,Mv=V,kv=_,Cv=D;var UP=class UP{constructor(e,t,r,o){s(this,Rv,0);s(this,Mv,0);s(this,kv,0);s(this,Cv,0);this[O]=e!=null?Number(e):0,this[V]=t!=null?Number(t):0,this[_]=r!=null?Number(r):0,this[D]=o!=null?Number(o):0}get x(){return this[O]}get y(){return this[V]}get width(){return this[_]}get height(){return this[D]}get top(){return Math.min(this[V],this[V]+this[D])}get right(){return Math.max(this[O],this[O]+this[_])}get bottom(){return Math.max(this[V],this[V]+this[D])}get left(){return Math.min(this[O],this[O]+this[_])}toJSON(){return{x:this.x,y:this.y,width:this.width,height:this.height,top:this.top,right:this.right,bottom:this.bottom,left:this.left}}static fromRect(e){return new UP(e.x,e.y,e.width,e.height)}},my=UP;var is=class l extends my{set x(e){this[O]=e}get x(){return this[O]}set y(e){this[V]=e}get y(){return this[V]}set width(e){this[_]=e}get width(){return this[_]}set height(e){this[D]=e}get height(){return this[D]}static fromRect(e){return new l(e.x,e.y,e.width,e.height)}};var u2=/[\t\f\n\r ]+/,Ov,Vv,Iv,Fv,Dv,ho=class l{constructor(e,t,r,o){s(this,Dv);s(this,Fv);s(this,Iv,{items:[],attributeValue:""});s(this,Vv);s(this,Ov);if(e!==h)throw new TypeError("Illegal constructor");this[At]=t,this[hl]=r,this[tS]=o||[];let i=new xe(this,[l]),n=new Proxy(this,{get:(a,m)=>{if(m==="length")return a[Qr]().length;if(m in a||typeof m=="symbol")return i.bind(m),a[m];let p=Number(m);if(!isNaN(p))return a[Qr]()[p]},set(a,m,p){if(i.bind(m),typeof m=="symbol")return a[m]=p,!0;let b=Number(m);return isNaN(b)&&(a[m]=p),!0},deleteProperty(a,m){if(typeof m=="symbol")return delete a[m],!0;let p=Number(m);return isNaN(p)&&delete a[m],!0},ownKeys(a){return Object.keys(a[Qr]())},has(a,m){if(m in a)return!0;if(typeof m=="symbol")return!1;let p=Number(m);return!isNaN(p)&&p>=0&&p<a[Qr]().length},defineProperty(a,m,p){return i.preventBinding(m),m in a?(Object.defineProperty(a,m,p),!0):!1},getOwnPropertyDescriptor(a,m){if(m in a||typeof m=="symbol")return;let p=Number(m),b=a[Qr]();if(!isNaN(p)&&b[p])return{value:b[p],writable:!1,enumerable:!0,configurable:!0}}});return this[Gt]=n,n}get length(){return this[Qr]().length}set value(e){this[At].setAttribute(this[hl],e)}get value(){return this[At].getAttribute(this[hl])||""}[(Dv=At,Fv=hl,Iv=$,Vv=tS,Ov=Gt,Symbol.iterator)](){return this[Qr]().values()}item(e){let t=this[Qr]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),t[e]?t[e]:null}replace(e,t){let r=this[Qr]().slice(),o=r.indexOf(e);return o===-1?!1:(r[o]=t,this[At].setAttribute(this[hl],r.join(" ")),!0)}supports(e){return this[tS].includes(e)}values(){return this[Qr]().values()}entries(){return this[Qr]().entries()}forEach(e,t){let r=t??this[At][y],o=this[Qr](),i=this[Gt]??this;for(let n=0,a=o.length;n<a;n++)e.call(r,o[n],n,i)}keys(){return this[Qr]().keys()}add(...e){let t=this[Qr]().slice();for(let r of e)t.indexOf(r)===-1&&t.push(r);this[At].setAttribute(this[hl],t.join(" "))}remove(...e){let t=this[Qr]().slice();for(let r of e){let o=t.indexOf(r);o!==-1&&t.splice(o,1)}this[At].setAttribute(this[hl],t.join(" "))}contains(e){return this[Qr]().includes(e)}toggle(e,t){let r;return t!==void 0?r=t:r=!this.contains(e),r?(this.add(e),!0):(this.remove(e),!1)}[Qr](){let e=this[At].getAttribute(this[hl])??"",t=this[$];if(t.attributeValue===e)return t.items;let r=[],o=e.trim();if(o)for(let i of o.split(u2))r.includes(i)||r.push(i);return t.attributeValue=e,t.items=r,r}toString(){return this.value||""}};var fe={FILTER_ACCEPT:1,FILTER_REJECT:2,FILTER_SKIP:3,SHOW_ALL:-1,SHOW_ELEMENT:1,SHOW_ATTRIBUTE:2,SHOW_TEXT:4,SHOW_CDATA_SECTION:8,SHOW_ENTITY_REFERENCE:16,SHOW_ENTITY:32,SHOW_PROCESSING_INSTRUCTION:64,SHOW_COMMENT:128,SHOW_DOCUMENT:256,SHOW_DOCUMENT_TYPE:512,SHOW_DOCUMENT_FRAGMENT:1024,SHOW_NOTATION:2048};var _v={1:fe.SHOW_ELEMENT,2:fe.SHOW_ATTRIBUTE,3:fe.SHOW_TEXT,4:fe.SHOW_CDATA_SECTION,5:fe.SHOW_ENTITY_REFERENCE,6:fe.SHOW_PROCESSING_INSTRUCTION,7:fe.SHOW_PROCESSING_INSTRUCTION,8:fe.SHOW_COMMENT,9:fe.SHOW_DOCUMENT,10:fe.SHOW_DOCUMENT_TYPE,11:fe.SHOW_DOCUMENT_FRAGMENT,12:fe.SHOW_NOTATION};var Cm;(function(l){l.first="first",l.last="last"})(Cm||(Cm={}));var km;(function(l){l.next="next",l.previous="previous"})(km||(km={}));var Ir,uy,GP,HP,_n=class{constructor(e,t=-1,r=null){x(this,uy);s(this,"root");s(this,"whatToShow",-1);s(this,"filter",null);x(this,Ir,null);if(!(e instanceof ft))throw new Ht("Parameter 1 was not of type Node.");this.root=e,this.whatToShow=t,this.filter=r,w(this,Ir,e)}get currentNode(){return u(this,Ir)}set currentNode(e){if(!(e instanceof ft))throw new this.root[y].TypeError("Failed to set the 'currentNode' property on 'TreeWalker': Failed to convert value to 'Node'.");w(this,Ir,e)}parentNode(){let e=u(this,Ir);for(;e!==null&&e!==this.root;)if(e=e.parentNode,e!==null&&this[Ti](e)===fe.FILTER_ACCEPT)return w(this,Ir,e),u(this,Ir);return null}firstChild(){return F(this,uy,GP).call(this,Cm.first)}lastChild(){return F(this,uy,GP).call(this,Cm.last)}nextSibling(){return F(this,uy,HP).call(this,km.next)}previousSibling(){return F(this,uy,HP).call(this,km.previous)}previousNode(){let e=u(this,Ir);for(;e!==this.root;){let t=e?.previousSibling||null;for(;t!==null;){let r=t,o=this[Ti](r);for(;o!==fe.FILTER_REJECT&&r[q].length;)r=r.lastChild,o=this[Ti](r);if(o===fe.FILTER_ACCEPT)return w(this,Ir,r),r;t=r.previousSibling}if(e===this.root||e.parentNode===null)return null;if(e=e.parentNode,this[Ti](e)===fe.FILTER_ACCEPT)return w(this,Ir,e),e}return null}nextNode(){let e=u(this,Ir),t=fe.FILTER_ACCEPT;if(e===null)return null;for(;;){for(;t!==fe.FILTER_REJECT&&e[q].length;)if(e=e.firstChild,t=this[Ti](e),t===fe.FILTER_ACCEPT)return w(this,Ir,e),e;for(;e!==null;){if(e===this.root)return null;let r=e.nextSibling;if(r!==null){e=r;break}e=e.parentNode}if(e===null)return null;if(t=this[Ti](e),t===fe.FILTER_ACCEPT)return w(this,Ir,e),e}}[Ti](e){let t=_v[e.nodeType];return t&&(this.whatToShow&t)==0?fe.FILTER_SKIP:typeof this.filter=="function"?this.filter(e):this.filter?this.filter.acceptNode(e):fe.FILTER_ACCEPT}};Ir=new WeakMap,uy=new WeakSet,GP=function(e){let t=u(this,Ir);if(!t)return null;for(t=e===Cm.first?t.firstChild:t.lastChild;t!==null;){let r=this[Ti](t);if(r===fe.FILTER_ACCEPT)return w(this,Ir,t),t;if(r===fe.FILTER_SKIP){let o=e===Cm.first?t.firstChild:t.lastChild;if(o!==null){t=o;continue}}for(;t!==null;){let o=e===Cm.first?t.nextSibling:t.previousSibling;if(o!==null){t=o;break}let i=t.parentNode;if(i===null||i===this.root||i===u(this,Ir))return null;t=i}}return null},HP=function(e){let t=u(this,Ir);if(!t||t===this.root)return null;for(;;){let r=e===km.next?t.nextSibling:t.previousSibling;for(;r!==null;){let o=r,i=this[Ti](o);if(i===fe.FILTER_ACCEPT)return w(this,Ir,o),o;r=e===km.next?o.firstChild:o.lastChild,(i===fe.FILTER_REJECT||r===null)&&(r=e===km.next?o.nextSibling:o.previousSibling)}if(t=t.parentNode,t===null||t===this.root||this[Ti](t)===fe.FILTER_ACCEPT)return null}};var Mm,ub,pb,py,hb,hy=class{constructor(e,t=-1,r=null){x(this,Mm);x(this,ub,-1);x(this,pb,null);x(this,py);x(this,hb,!0);w(this,Mm,e),w(this,ub,t),w(this,pb,r),w(this,py,new _n(e,t,r))}get root(){return u(this,Mm)}get whatToShow(){return u(this,ub)}get filter(){return u(this,pb)}nextNode(){return u(this,hb)?(w(this,hb,!1),u(this,py)[Ti](u(this,Mm))!==fe.FILTER_ACCEPT?u(this,py).nextNode():u(this,Mm)):u(this,py).nextNode()}previousNode(){return u(this,py).previousNode()}};Mm=new WeakMap,ub=new WeakMap,pb=new WeakMap,py=new WeakMap,hb=new WeakMap;var Rm,cb=class{constructor(e){x(this,Rm);w(this,Rm,e)}createDocument(e,t,r){return new(u(this,Rm))[y].HTMLDocument}createHTMLDocument(){return new(u(this,Rm))[y].HTMLDocument}createDocumentType(e,t,r){let o=De.createNode(u(this,Rm),Dn);return o[nt]=e,o[yl]=t,o[ml]=r,o}};Rm=new WeakMap;var Bv,Ae=class l{constructor(e,t){s(this,Bv);if(e!==h)throw new TypeError("Illegal constructor");this[em]=t;let r=new xe(this,this.constructor!==l?[this.constructor,l]:[l]);return new Proxy(this,{get:(o,i)=>{if(i==="length")return t().length;if(i in o||typeof i=="symbol")return r.bind(i),o[i];let n=Number(i);return isNaN(n)?o.namedItem(i)||void 0:t()[n]},set(o,i,n){if(r.bind(i),typeof i=="symbol")return o[i]=n,!0;let a=Number(i);return isNaN(a)&&(o[i]=n),!0},deleteProperty(o,i){if(typeof i=="symbol")return delete o[i],!0;let n=Number(i);return isNaN(n)&&delete o[i],!0},ownKeys(){let o=[],i=t();for(let n=0;n<i.length;n++){let a=i[n],m=a.getAttribute("id")||a.getAttribute("name");o.push(String(n)),m&&o.push(m)}return o},has(o,i){if(i in o)return!0;let n=t(),a=Number(i);if(!isNaN(a)&&a>=0&&a<n.length)return!0;i=String(i);for(let m=0;m<n.length;m++){let p=n[m],b=p.getAttribute("id")||p.getAttribute("name");if(b&&b===i)return!0}return!1},defineProperty(o,i,n){return r.preventBinding(i),i in o?(Object.defineProperty(o,i,n),!0):!1},getOwnPropertyDescriptor(o,i){if(i in o||typeof i=="symbol")return;let n=t(),a=Number(i);if(!isNaN(a)&&a>=0&&a<n.length)return{value:n[a],writable:!1,enumerable:!0,configurable:!0};for(let m=0;m<n.length;m++){let p=n[m],b=p.getAttribute("id")||p.getAttribute("name");if(b&&b===i)return{value:p,writable:!1,enumerable:!0,configurable:!0}}}})}get length(){return this[em]().length}get[(Bv=em,Symbol.toStringTag)](){return this.constructor.name}toLocaleString(){return`[object ${this.constructor.name}]`}toString(){return`[object ${this.constructor.name}]`}item(e){let t=this[em]();return e>=0&&t[e]?t[e]:null}[Symbol.iterator](){return this[em]()[Symbol.iterator]()}namedItem(e){let t=this[em]();e=String(e);for(let r of t)if(r.getAttribute("id")===e||r.getAttribute("name")===e)return r;return null}};var Se=class{static compareBoundaryPointsPosition(e,t){if(e.node===t.node)return e.offset===t.offset?0:e.offset<t.offset?-1:1;if(Pt.isFollowing(e.node,t.node))return this.compareBoundaryPointsPosition(t,e)===-1?1:-1;if(Pt.isInclusiveAncestor(e.node,t.node)){let r=t.node;for(;r[W]!==e.node;)r=r[W];if(r[W][q].indexOf(r)<e.offset)return 1}return-1}static validateBoundaryPoint(e){if(e.node[U]===M.documentTypeNode)throw new Ht("DocumentType Node can't be used as boundary point.",A.invalidNodeTypeError);if(e.offset>Pt.getNodeLength(e.node))throw new Ht("Offset out of bound.",A.indexSizeError)}static isContained(e,t){return this.compareBoundaryPointsPosition({node:e,offset:0},{node:t.startContainer,offset:t.startOffset})===1&&this.compareBoundaryPointsPosition({node:e,offset:Pt.getNodeLength(e)},{node:t.endContainer,offset:t.endOffset})===-1}static isPartiallyContained(e,t){return Pt.isInclusiveAncestor(e,t.startContainer)&&!Pt.isInclusiveAncestor(e,t.endContainer)||!Pt.isInclusiveAncestor(e,t.startContainer)&&Pt.isInclusiveAncestor(e,t.endContainer)}};var $P;(function(l){l[l.forwards=1]="forwards",l[l.backwards=-1]="backwards",l[l.directionless=0]="directionless"})($P||($P={}));var Bn=$P;var Re,Pe,cy,ss,Un,dy=class{constructor(e){x(this,ss);x(this,Re);x(this,Pe,null);x(this,cy,Bn.directionless);w(this,Re,e)}get rangeCount(){return u(this,Pe)?1:0}get isCollapsed(){return u(this,Pe)===null||u(this,Pe).collapsed}get type(){if(u(this,Pe)){if(u(this,Pe).collapsed)return"Caret"}else return"None";return"Range"}get anchorNode(){return u(this,Pe)?u(this,cy)===Bn.forwards?u(this,Pe).startContainer:u(this,Pe).endContainer:null}get anchorOffset(){return u(this,Pe)?u(this,cy)===Bn.forwards?u(this,Pe).startOffset:u(this,Pe).endOffset:0}get baseNode(){return this.anchorNode}get baseOffset(){return this.anchorOffset}get focusNode(){return this.anchorNode}get focusOffset(){return this.anchorOffset}get extentNode(){return this.focusNode}get extentOffset(){return this.focusOffset}addRange(e){if(!e)throw new(u(this,Re))[y].TypeError("Failed to execute addRange on Selection. Parameter 1 is not of type Range.");!u(this,Pe)&&e[T]===u(this,Re)&&F(this,ss,Un).call(this,e)}getRangeAt(e){if(!u(this,Pe)||e!==0)throw new(u(this,Re))[y].DOMException("Invalid range index.",A.indexSizeError);return u(this,Pe)}removeRange(e){if(u(this,Pe)!==e)throw new(u(this,Re))[y].DOMException("Invalid range.",A.notFoundError);F(this,ss,Un).call(this,null)}removeAllRanges(){F(this,ss,Un).call(this,null)}empty(){this.removeAllRanges()}collapse(e,t){if(e===null){this.removeAllRanges();return}if(e[U]===M.documentTypeNode)throw new(u(this,Re))[y].DOMException("DocumentType Node can't be used as boundary point.",A.invalidNodeTypeError);if(t>Pt.getNodeLength(e))throw new(u(this,Re))[y].DOMException("Invalid range index.",A.indexSizeError);if(e[T]!==u(this,Re))return;let r=new(u(this,Re))[y].Range;r[G].node=e,r[G].offset=t,r[j].node=e,r[j].offset=t,F(this,ss,Un).call(this,r)}setPosition(e,t){this.collapse(e,t)}collapseToEnd(){if(u(this,Pe)===null)throw new(u(this,Re))[y].DOMException("There is no selection to collapse.",A.invalidStateError);let{node:e,offset:t}=u(this,Pe)[j],r=new(u(this,Re))[y].Range;r[G].node=e,r[G].offset=t,r[j].node=e,r[j].offset=t,F(this,ss,Un).call(this,r)}collapseToStart(){if(!u(this,Pe))throw new(u(this,Re))[y].DOMException("There is no selection to collapse.",A.invalidStateError);let{node:e,offset:t}=u(this,Pe)[G],r=new(u(this,Re))[y].Range;r[G].node=e,r[G].offset=t,r[j].node=e,r[j].offset=t,F(this,ss,Un).call(this,r)}containsNode(e,t=!1){if(!u(this,Pe)||e[T]!==u(this,Re))return!1;let r=Se.compareBoundaryPointsPosition(u(this,Pe)[G],{node:e,offset:0})===-1,o=Se.compareBoundaryPointsPosition(u(this,Pe)[j],{node:e,offset:Pt.getNodeLength(e)})===1;return t?r||o:r&&o}deleteFromDocument(){u(this,Pe)&&u(this,Pe).deleteContents()}extend(e,t){if(e[T]!==u(this,Re))return;if(!u(this,Pe))throw new(u(this,Re))[y].DOMException("There is no selection to extend.",A.invalidStateError);let r=this.anchorNode,o=this.anchorOffset,i=new(u(this,Re))[y].Range;i[G].node=e,i[G].offset=0,i[j].node=e,i[j].offset=0,e[T]!==u(this,Pe)[T]?(i[G].offset=t,i[j].offset=t):Se.compareBoundaryPointsPosition({node:r,offset:o},{node:e,offset:t})<=0?(i[G].node=r,i[G].offset=o,i[j].node=e,i[j].offset=t):(i[G].node=e,i[G].offset=t,i[j].node=r,i[j].offset=o),F(this,ss,Un).call(this,i),w(this,cy,Se.compareBoundaryPointsPosition({node:e,offset:t},{node:r,offset:o})===-1?Bn.backwards:Bn.forwards)}selectAllChildren(e){if(e[U]===M.documentTypeNode)throw new(u(this,Re))[y].DOMException("DocumentType Node can't be used as boundary point.",A.invalidNodeTypeError);if(e[T]!==u(this,Re))return;let t=e[q].length,r=new(u(this,Re))[y].Range;r[G].node=e,r[G].offset=0,r[j].node=e,r[j].offset=t,F(this,ss,Un).call(this,r)}setBaseAndExtent(e,t,r,o){if(t>Pt.getNodeLength(e)||o>Pt.getNodeLength(r))throw new(u(this,Re))[y].DOMException("Invalid anchor or focus offset.",A.indexSizeError);if(e[T]!==u(this,Re)||r[T]!==u(this,Re))return;let i={node:e,offset:t},n={node:r,offset:o},a=new(u(this,Re))[y].Range;Se.compareBoundaryPointsPosition(i,n)===-1?(a[G]=i,a[j]=n):(a[G]=n,a[j]=i),F(this,ss,Un).call(this,a),w(this,cy,Se.compareBoundaryPointsPosition(n,i)===-1?Bn.backwards:Bn.forwards)}toString(){return u(this,Pe)?u(this,Pe).toString():""}};Re=new WeakMap,Pe=new WeakMap,cy=new WeakMap,ss=new WeakSet,Un=function(e){let t=u(this,Pe);w(this,Pe,e),w(this,cy,e===null?Bn.directionless:Bn.forwards),t!==u(this,Pe)&&u(this,Re).dispatchEvent(new R("selectionchange"))};var qP;(function(l){l.hidden="hidden",l.visible="visible",l.prerender="prerender"})(qP||(qP={}));var WP=qP;var jP;(function(l){l.rawText="rawText",l.noSelfDescendants="noSelfDescendants",l.noFirstLevelSelfDescendants="noFirstLevelSelfDescendants",l.noForbiddenFirstLevelDescendants="noForbiddenFirstLevelDescendants",l.noDescendants="noDescendants",l.permittedDescendants="permittedDescendants",l.textOrComments="textOrComments",l.anyDescendants="anyDescendants"})(jP||(jP={}));var H=jP;var cr={a:{className:"HTMLAnchorElement",contentModel:H.noSelfDescendants},abbr:{className:"HTMLElement",contentModel:H.anyDescendants},address:{className:"HTMLElement",contentModel:H.anyDescendants},area:{className:"HTMLAreaElement",contentModel:H.noDescendants},article:{className:"HTMLElement",contentModel:H.anyDescendants},aside:{className:"HTMLElement",contentModel:H.anyDescendants},audio:{className:"HTMLAudioElement",contentModel:H.anyDescendants},b:{className:"HTMLElement",contentModel:H.anyDescendants},base:{className:"HTMLBaseElement",contentModel:H.noDescendants},bdi:{className:"HTMLElement",contentModel:H.anyDescendants},bdo:{className:"HTMLElement",contentModel:H.anyDescendants},body:{className:"HTMLBodyElement",contentModel:H.anyDescendants},template:{className:"HTMLTemplateElement",contentModel:H.anyDescendants},form:{className:"HTMLFormElement",contentModel:H.anyDescendants},input:{className:"HTMLInputElement",contentModel:H.noDescendants},textarea:{className:"HTMLTextAreaElement",contentModel:H.anyDescendants},script:{className:"HTMLScriptElement",contentModel:H.rawText},img:{className:"HTMLImageElement",contentModel:H.noDescendants},link:{className:"HTMLLinkElement",contentModel:H.noDescendants},style:{className:"HTMLStyleElement",contentModel:H.rawText},label:{className:"HTMLLabelElement",contentModel:H.anyDescendants},slot:{className:"HTMLSlotElement",contentModel:H.anyDescendants},meta:{className:"HTMLMetaElement",contentModel:H.noDescendants},blockquote:{className:"HTMLQuoteElement",contentModel:H.anyDescendants},br:{className:"HTMLBRElement",contentModel:H.noDescendants},button:{className:"HTMLButtonElement",contentModel:H.anyDescendants},canvas:{className:"HTMLCanvasElement",contentModel:H.anyDescendants},caption:{className:"HTMLTableCaptionElement",contentModel:H.textOrComments},cite:{className:"HTMLElement",contentModel:H.anyDescendants},code:{className:"HTMLElement",contentModel:H.anyDescendants},col:{className:"HTMLTableColElement",contentModel:H.noDescendants,permittedParents:["colgroup"]},colgroup:{className:"HTMLTableColElement",contentModel:H.permittedDescendants,permittedDescendants:["col"]},data:{className:"HTMLDataElement",contentModel:H.anyDescendants},datalist:{className:"HTMLDataListElement",contentModel:H.anyDescendants},dd:{className:"HTMLElement",contentModel:H.noForbiddenFirstLevelDescendants,forbiddenDescendants:["dt","dd"]},del:{className:"HTMLModElement",contentModel:H.anyDescendants},details:{className:"HTMLDetailsElement",contentModel:H.anyDescendants},dfn:{className:"HTMLElement",contentModel:H.anyDescendants},dialog:{className:"HTMLDialogElement",contentModel:H.anyDescendants},div:{className:"HTMLDivElement",contentModel:H.anyDescendants},dl:{className:"HTMLDListElement",contentModel:H.anyDescendants},dt:{className:"HTMLElement",contentModel:H.noForbiddenFirstLevelDescendants,forbiddenDescendants:["dt","dd"]},em:{className:"HTMLElement",contentModel:H.anyDescendants},embed:{className:"HTMLEmbedElement",contentModel:H.noDescendants},fieldset:{className:"HTMLFieldSetElement",contentModel:H.anyDescendants},figcaption:{className:"HTMLElement",contentModel:H.anyDescendants},figure:{className:"HTMLElement",contentModel:H.anyDescendants},footer:{className:"HTMLElement",contentModel:H.anyDescendants},h1:{className:"HTMLHeadingElement",contentModel:H.noFirstLevelSelfDescendants},h2:{className:"HTMLHeadingElement",contentModel:H.noFirstLevelSelfDescendants},h3:{className:"HTMLHeadingElement",contentModel:H.noFirstLevelSelfDescendants},h4:{className:"HTMLHeadingElement",contentModel:H.noFirstLevelSelfDescendants},h5:{className:"HTMLHeadingElement",contentModel:H.noFirstLevelSelfDescendants},h6:{className:"HTMLHeadingElement",contentModel:H.noFirstLevelSelfDescendants},head:{className:"HTMLHeadElement",contentModel:H.anyDescendants},header:{className:"HTMLElement",contentModel:H.anyDescendants},hgroup:{className:"HTMLElement",contentModel:H.anyDescendants},hr:{className:"HTMLHRElement",contentModel:H.noDescendants},html:{className:"HTMLHtmlElement",contentModel:H.anyDescendants},i:{className:"HTMLElement",contentModel:H.anyDescendants},iframe:{className:"HTMLIFrameElement",contentModel:H.anyDescendants},ins:{className:"HTMLModElement",contentModel:H.anyDescendants},kbd:{className:"HTMLElement",contentModel:H.anyDescendants},legend:{className:"HTMLLegendElement",contentModel:H.anyDescendants},li:{className:"HTMLLIElement",contentModel:H.noFirstLevelSelfDescendants},main:{className:"HTMLElement",contentModel:H.anyDescendants},map:{className:"HTMLMapElement",contentModel:H.anyDescendants},mark:{className:"HTMLElement",contentModel:H.anyDescendants},menu:{className:"HTMLMenuElement",contentModel:H.anyDescendants},meter:{className:"HTMLMeterElement",contentModel:H.anyDescendants},nav:{className:"HTMLElement",contentModel:H.anyDescendants},noscript:{className:"HTMLElement",contentModel:H.anyDescendants},object:{className:"HTMLObjectElement",contentModel:H.anyDescendants},ol:{className:"HTMLOListElement",contentModel:H.anyDescendants},optgroup:{className:"HTMLOptGroupElement",contentModel:H.noFirstLevelSelfDescendants},option:{className:"HTMLOptionElement",contentModel:H.noForbiddenFirstLevelDescendants,forbiddenDescendants:["option","optgroup"]},output:{className:"HTMLOutputElement",contentModel:H.anyDescendants},p:{className:"HTMLParagraphElement",contentModel:H.anyDescendants},param:{className:"HTMLParamElement",contentModel:H.noDescendants},picture:{className:"HTMLPictureElement",contentModel:H.anyDescendants},pre:{className:"HTMLPreElement",contentModel:H.anyDescendants},progress:{className:"HTMLProgressElement",contentModel:H.anyDescendants},q:{className:"HTMLQuoteElement",contentModel:H.anyDescendants},rb:{className:"HTMLElement",contentModel:H.anyDescendants},rp:{className:"HTMLElement",contentModel:H.noForbiddenFirstLevelDescendants,forbiddenDescendants:["rp","rt"]},rt:{className:"HTMLElement",contentModel:H.noForbiddenFirstLevelDescendants,forbiddenDescendants:["rp","rt"]},rtc:{className:"HTMLElement",contentModel:H.anyDescendants},ruby:{className:"HTMLElement",contentModel:H.anyDescendants},s:{className:"HTMLElement",contentModel:H.anyDescendants},samp:{className:"HTMLElement",contentModel:H.anyDescendants},section:{className:"HTMLElement",contentModel:H.anyDescendants},select:{className:"HTMLSelectElement",contentModel:H.anyDescendants},small:{className:"HTMLElement",contentModel:H.anyDescendants},source:{className:"HTMLSourceElement",contentModel:H.noDescendants},span:{className:"HTMLSpanElement",contentModel:H.anyDescendants},strong:{className:"HTMLElement",contentModel:H.anyDescendants},sub:{className:"HTMLElement",contentModel:H.anyDescendants},summary:{className:"HTMLElement",contentModel:H.anyDescendants},sup:{className:"HTMLElement",contentModel:H.anyDescendants},table:{className:"HTMLTableElement",contentModel:H.permittedDescendants,permittedDescendants:["caption","colgroup","thead","tfoot","tbody"],moveForbiddenDescendant:{exclude:[]}},tbody:{className:"HTMLTableSectionElement",contentModel:H.permittedDescendants,permittedDescendants:["tr"],permittedParents:["table"],moveForbiddenDescendant:{exclude:["caption","colgroup","thead","tfoot","tbody"]}},td:{className:"HTMLTableCellElement",contentModel:H.noForbiddenFirstLevelDescendants,forbiddenDescendants:["td","th","tr","tbody","tfoot","thead"],permittedParents:["tr"]},tfoot:{className:"HTMLTableSectionElement",contentModel:H.permittedDescendants,permittedDescendants:["tr"],permittedParents:["table"],moveForbiddenDescendant:{exclude:["caption","colgroup","thead","tfoot","tbody"]}},th:{className:"HTMLTableCellElement",contentModel:H.noForbiddenFirstLevelDescendants,forbiddenDescendants:["td","th","tr","tbody","tfoot","thead"],permittedParents:["tr"]},thead:{className:"HTMLTableSectionElement",contentModel:H.permittedDescendants,permittedDescendants:["tr"],permittedParents:["table"],moveForbiddenDescendant:{exclude:["caption","colgroup","thead","tfoot","tbody"]}},time:{className:"HTMLTimeElement",contentModel:H.anyDescendants},title:{className:"HTMLTitleElement",contentModel:H.anyDescendants},tr:{className:"HTMLTableRowElement",contentModel:H.permittedDescendants,permittedDescendants:["td","th"],permittedParents:["tbody","tfoot","thead"],addPermittedParent:"tbody",moveForbiddenDescendant:{exclude:["caption","colgroup","thead","tfoot","tbody","tr"]}},track:{className:"HTMLTrackElement",contentModel:H.noDescendants},u:{className:"HTMLElement",contentModel:H.anyDescendants},ul:{className:"HTMLUListElement",contentModel:H.anyDescendants},var:{className:"HTMLElement",contentModel:H.anyDescendants},video:{className:"HTMLVideoElement",contentModel:H.anyDescendants},wbr:{className:"HTMLElement",contentModel:H.noDescendants}};var db={svg:{localName:"svg",className:"SVGSVGElement"},animate:{localName:"animate",className:"SVGAnimateElement"},animatemotion:{localName:"animateMotion",className:"SVGAnimateMotionElement"},animatetransform:{localName:"animateTransform",className:"SVGAnimateTransformElement"},circle:{localName:"circle",className:"SVGCircleElement"},clippath:{localName:"clipPath",className:"SVGClipPathElement"},defs:{localName:"defs",className:"SVGDefsElement"},desc:{localName:"desc",className:"SVGDescElement"},ellipse:{localName:"ellipse",className:"SVGEllipseElement"},feblend:{localName:"feBlend",className:"SVGFEBlendElement"},fecolormatrix:{localName:"feColorMatrix",className:"SVGFEColorMatrixElement"},fecomponenttransfer:{localName:"feComponentTransfer",className:"SVGFEComponentTransferElement"},fecomposite:{localName:"feComposite",className:"SVGFECompositeElement"},feconvolvematrix:{localName:"feConvolveMatrix",className:"SVGFEConvolveMatrixElement"},fediffuselighting:{localName:"feDiffuseLighting",className:"SVGFEDiffuseLightingElement"},fedisplacementmap:{localName:"feDisplacementMap",className:"SVGFEDisplacementMapElement"},fedistantlight:{localName:"feDistantLight",className:"SVGFEDistantLightElement"},fedropshadow:{localName:"feDropShadow",className:"SVGFEDropShadowElement"},feflood:{localName:"feFlood",className:"SVGFEFloodElement"},fefunca:{localName:"feFuncA",className:"SVGFEFuncAElement"},fefuncb:{localName:"feFuncB",className:"SVGFEFuncBElement"},fefuncg:{localName:"feFuncG",className:"SVGFEFuncGElement"},fefuncr:{localName:"feFuncR",className:"SVGFEFuncRElement"},fegaussianblur:{localName:"feGaussianBlur",className:"SVGFEGaussianBlurElement"},feimage:{localName:"feImage",className:"SVGFEImageElement"},femerge:{localName:"feMerge",className:"SVGFEMergeElement"},femergenode:{localName:"feMergeNode",className:"SVGFEMergeNodeElement"},femorphology:{localName:"feMorphology",className:"SVGFEMorphologyElement"},feoffset:{localName:"feOffset",className:"SVGFEOffsetElement"},fepointlight:{localName:"fePointLight",className:"SVGFEPointLightElement"},fespecularlighting:{localName:"feSpecularLighting",className:"SVGFESpecularLightingElement"},fespotlight:{localName:"feSpotLight",className:"SVGFESpotLightElement"},fetile:{localName:"feTile",className:"SVGFETileElement"},feturbulence:{localName:"feTurbulence",className:"SVGFETurbulenceElement"},filter:{localName:"filter",className:"SVGFilterElement"},foreignobject:{localName:"foreignObject",className:"SVGForeignObjectElement"},g:{localName:"g",className:"SVGGElement"},image:{localName:"image",className:"SVGImageElement"},line:{localName:"line",className:"SVGLineElement"},lineargradient:{localName:"linearGradient",className:"SVGLinearGradientElement"},marker:{localName:"marker",className:"SVGMarkerElement"},mask:{localName:"mask",className:"SVGMaskElement"},metadata:{localName:"metadata",className:"SVGMetadataElement"},mpath:{localName:"mpath",className:"SVGMPathElement"},path:{localName:"path",className:"SVGPathElement"},pattern:{localName:"pattern",className:"SVGPatternElement"},polygon:{localName:"polygon",className:"SVGPolygonElement"},polyline:{localName:"polyline",className:"SVGPolylineElement"},radialgradient:{localName:"radialGradient",className:"SVGRadialGradientElement"},rect:{localName:"rect",className:"SVGRectElement"},script:{localName:"script",className:"SVGScriptElement"},set:{localName:"set",className:"SVGSetElement"},stop:{localName:"stop",className:"SVGStopElement"},style:{localName:"style",className:"SVGStyleElement"},switch:{localName:"switch",className:"SVGSwitchElement"},symbol:{localName:"symbol",className:"SVGSymbolElement"},text:{localName:"text",className:"SVGTextElement"},textpath:{localName:"textPath",className:"SVGTextPathElement"},title:{localName:"title",className:"SVGTitleElement"},tspan:{localName:"tspan",className:"SVGTSpanElement"},use:{localName:"use",className:"SVGUseElement"},view:{localName:"view",className:"SVGViewElement"}};var He=class{static encodeXMLAttributeValue(e){return e===null?"":e.replace(/&/gu,"&amp;").replace(/"/gu,"&quot;").replace(/</gu,"&lt;").replace(/>/gu,"&gt;").replace(/\t/gu,"&#x9;").replace(/\n/gu,"&#xA;").replace(/\r/gu,"&#xD;")}static decodeXMLAttributeValue(e){return e===null?"":e.replace(/&quot;/gu,'"').replace(/&lt;/gu,"<").replace(/&gt;/gu,">").replace(/&#x9;/gu," ").replace(/&#xA;/gu,`
91
+ `).replace(/&#xD;/gu,"\r").replace(/&amp;/gu,"&")}static encodeHTMLAttributeValue(e){return e===null?"":e.replace(/&/gu,"&amp;").replace(/"/gu,"&quot;")}static decodeHTMLAttributeValue(e){return e===null?"":e.replace(/&quot;/gu,'"').replace(/&amp;/gu,"&")}static encodeTextContent(e){return e===null?"":e.replace(/&/gu,"&amp;").replace(/\xA0/gu,"&nbsp;").replace(/</gu,"&lt;").replace(/>/gu,"&gt;")}static decodeTextContent(e){return e===null?"":e.replace(/&nbsp;/gu,"\xA0").replace(/&lt;/gu,"<").replace(/&gt;/gu,">").replace(/&amp;/gu,"&")}static decodeHTMLEntities(e){return e===null?"":e.replace(/&lt;/gu,"<").replace(/&gt;/gu,">").replace(/&nbsp;/gu,"\xA0").replace(/&quot;/gu,'"').replace(/&apos;/gu,"'").replace(/&#(\d+);/gu,(t,r)=>String.fromCharCode(parseInt(r,10))).replace(/&#x([A-Fa-f\d]+);/gu,(t,r)=>String.fromCharCode(parseInt(r,16))).replace(/&amp;/gu,"&")}static decodeXMLEntities(e){return e===null?"":e.replace(/&lt;/gu,"<").replace(/&gt;/gu,">").replace(/&quot;/gu,'"').replace(/&apos;/gu,"'").replace(/&#(\d+);/gu,(t,r)=>String.fromCharCode(parseInt(r,10))).replace(/&#x([A-Fa-f\d]+);/gu,(t,r)=>String.fromCharCode(parseInt(r,16))).replace(/&amp;/gu,"&")}};var p2=/<([^\s/!>?]+)|<\/([^\s/!>?]+)\s*>|(<!--)|(-->|--!>)|(<!)|(<\?)|(\/>)|(>)/gm,h2=/\s*([a-zA-Z0-9-_:.$@?\\<\[\]]+)\s*=\s*([^"'=<>\\`\s]+)|\s*([a-zA-Z0-9-_:.$@?\\<\[\]]+)\s*=\s*"([^"]*)("{0,1})|\s*([a-zA-Z0-9-_:.$@?\\<\[\]]+)\s*=\s*'([^']*)('{0,1})|\s*([a-zA-Z0-9-_:.$@?\\<\[\]]+)/gm,c2=/"([^"]+)"/gm,d2=/\s+/,b2=/^\s+/,Ke;(function(l){l.any="any",l.startTag="startTag",l.comment="comment",l.documentType="documentType",l.processingInstruction="processingInstruction",l.rawTextElement="rawTextElement"})(Ke||(Ke={}));var _e;(function(l){l[l.root=0]="root",l[l.doctype=1]="doctype",l[l.documentElement=2]="documentElement",l[l.head=3]="head",l[l.additionalHeadWithoutBody=4]="additionalHeadWithoutBody",l[l.body=5]="body",l[l.afterBody=6]="afterBody"})(_e||(_e={}));var $r=class{constructor(e,t){s(this,"window");s(this,"evaluateScripts",!1);s(this,"isTemplateDocumentFragment",!1);s(this,"rootNode",null);s(this,"rootDocument",null);s(this,"nodeStack",[]);s(this,"tagNameStack",[]);s(this,"documentStructure",null);s(this,"startTagIndex",0);s(this,"markupRegExp",null);s(this,"nextElement",null);s(this,"currentNode",null);s(this,"readState",Ke.any);this.window=e,t?.evaluateScripts&&(this.evaluateScripts=!0),t?.isTemplateDocumentFragment&&(this.isTemplateDocumentFragment=!0)}parse(e,t){if(this.rootNode=t||this.window.document.createDocumentFragment(),this.rootDocument=this.rootNode instanceof zo?this.rootNode:this.window.document,this.nodeStack=[this.rootNode],this.tagNameStack=[null],this.currentNode=this.rootNode,this.readState=Ke.any,this.documentStructure=null,this.startTagIndex=0,this.markupRegExp=new RegExp(p2,"gm"),this.rootNode instanceof zo){let{doctype:i,documentElement:n,head:a,body:m}=this.rootNode;if(!n||!a||!m)throw new Error(`Failed to parse HTML: The root node must have "documentElement", "head" and "body".
92
+
93
+ We should not end up here and it is therefore a bug in Happy DOM. Please report this issue.`);this.documentStructure={nodes:{doctype:i||null,documentElement:n,head:a,body:m},level:_e.root}}if(this.rootNode instanceof this.window.HTMLHtmlElement){let i=this.rootDocument.createElement("head"),n=this.rootDocument.createElement("body");for(;this.rootNode[q].length>0;)this.rootNode[Rr](this.rootNode[q][this.rootNode[q].length-1]);this.rootNode[Et](i),this.rootNode[Et](n),this.documentStructure={nodes:{doctype:null,documentElement:this.rootNode,head:i,body:n},level:_e.documentElement}}let r,o=0;for(e=String(e);r=this.markupRegExp.exec(e);){switch(this.readState){case Ke.any:r.index!==o&&(r[1]||r[2]||r[3]||r[4]||r[5]!==void 0||r[6])&&this.parsePlainText(e.substring(o,r.index)),r[1]?(this.nextElement=this.getStartTagElement(r[1]),this.startTagIndex=this.markupRegExp.lastIndex,this.readState=Ke.startTag):r[2]?this.parseEndTag(r[2]):r[3]?(this.startTagIndex=this.markupRegExp.lastIndex,this.readState=Ke.comment):r[5]!==void 0?(this.startTagIndex=this.markupRegExp.lastIndex,this.readState=Ke.documentType):r[6]?(this.startTagIndex=this.markupRegExp.lastIndex,this.readState=Ke.processingInstruction):this.parsePlainText(e.substring(o,this.markupRegExp.lastIndex));break;case Ke.startTag:if(r[7]||r[8]||r[2])if(this.nextElement){let i=e.substring(this.startTagIndex,r[2]?this.markupRegExp.lastIndex-1:r.index),n=!!r[7];this.parseEndOfStartTag(i,n)}else this.readState=Ke.any;break;case Ke.comment:r[4]&&this.parseComment(e.substring(this.startTagIndex,r.index));break;case Ke.documentType:(r[7]||r[8])&&this.parseDocumentType(e.substring(this.startTagIndex,r.index));break;case Ke.processingInstruction:(r[7]||r[8])&&this.parseComment("?"+e.substring(this.startTagIndex,r.index));break;case Ke.rawTextElement:r[2]&&this.parseRawTextElementContent(r[2],e.substring(this.startTagIndex,r.index));break}o=this.markupRegExp.lastIndex}return o!==e.length&&this.currentNode&&this.parsePlainText(e.substring(o)),this.rootNode}parsePlainText(e){if(this.documentStructure){let t=this.documentStructure.level,{documentElement:r,head:o,body:i}=this.documentStructure.nodes,n=(this.currentNode===this.rootNode||this.currentNode===r)&&t<_e.head&&i[gt].length===0?e.replace(b2,""):e;if(n){let a=this.rootDocument.createTextNode(He.decodeHTMLEntities(n));this.currentNode===o&&t===_e.additionalHeadWithoutBody?r[lo](a,i,!0):this.currentNode===this.rootNode||this.currentNode===r||this.currentNode===o&&t>=_e.body?t===_e.head?r[lo](a,i,!0):i.lastChild?.[U]===M.textNode?i.lastChild[le]+=e:i[Et](a,!0):this.currentNode[Et](a,!0)}}else{let t=this.rootDocument.createTextNode(He.decodeHTMLEntities(e));this.currentNode[Et](t,!0)}}parseEndOfStartTag(e,t){if(e&&(!this.documentStructure||this.nextElement!==this.documentStructure.nodes.head||this.documentStructure.level<_e.body)){let a=new RegExp(h2,"gm"),m;for(;m=a.exec(e);)if(m[1]&&m[2]||m[3]&&m[5]==='"'||m[6]&&m[8]==="'"||m[9]){let p=m[1]||m[3]||m[6]||m[9]||"",b=m[2]||m[4]||m[7]||"",d=b?He.decodeHTMLAttributeValue(b):"",f=this.nextElement[St];if(this.nextElement[et]===$t.svg){let v=p.split(":"),L=null;switch(v[0]){case"xmlns":L=!v[1]||v[1]==="xlink"?$t.xmlns:null;break;case"xlink":L=$t.xlink;break}if(!f.getNamedItemNS(L,v[1]??p)){let C=De.createNode(this.rootDocument,this.window.Attr);C[et]=L,C[nt]=p,C[dt]=L&&v[1]?v[1]:p,C[Vt]=L&&v[1]?v[0]:null,C[J]=d,f[Xi](C)}}else if(!f.getNamedItem(p)){let v=this.rootDocument.createAttribute(p);v[J]=d,f[Xi](v)}this.startTagIndex+=m[0].length}else if(!m[1]&&(m[3]&&!m[5]||m[6]&&!m[8]))return}let r=this.nextElement[tt],o=r.toLowerCase(),i=cr[o],n=null;for(;n!==this.rootNode;){let a=this.currentNode[tt]?.toLowerCase(),m=a?cr[a]:null;if(n===this.currentNode)throw new Error("Failed to parse HTML: The parser is stuck in an infinite loop. Please report this issue.");if(n=this.currentNode,i?.contentModel===H.noFirstLevelSelfDescendants&&this.tagNameStack[this.tagNameStack.length-1]===r||m?.contentModel===H.textOrComments||m?.contentModel===H.noForbiddenFirstLevelDescendants&&m?.forbiddenDescendants?.includes(o)||m?.contentModel===H.permittedDescendants&&!m?.permittedDescendants?.includes(o)&&(!i||!i.addPermittedParent||cr[i.addPermittedParent].permittedParents&&!cr[i.addPermittedParent].permittedParents.includes(a)||cr[i.addPermittedParent].permittedDescendants&&!cr[i.addPermittedParent].permittedDescendants.includes(o))){if(m?.contentModel===H.permittedDescendants&&m.moveForbiddenDescendant&&!m.moveForbiddenDescendant.exclude.includes(o)){let p=this.currentNode;for(;p&&!(!p.parentNode||!cr[p.parentNode[dt]]?.permittedDescendants||cr[p.parentNode[dt]]?.permittedDescendants?.includes(o));)p=p.parentNode;p&&p.parentNode?p.parentNode.insertBefore(this.nextElement,p):p.appendChild(this.nextElement),this.startTagIndex=this.markupRegExp.lastIndex,this.readState=Ke.any;return}this.nodeStack.pop(),this.tagNameStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode}else if(i?.contentModel===H.noSelfDescendants&&this.tagNameStack.includes(r))for(;this.currentNode!==this.rootNode;){if(this.currentNode[tt]===r){this.nodeStack.pop(),this.tagNameStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode;break}this.nodeStack.pop(),this.tagNameStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode}else if(!this.isTemplateDocumentFragment&&i?.permittedParents&&!i.permittedParents.includes(a)){if(!i.addPermittedParent||cr[i.addPermittedParent].permittedParents&&!cr[i.addPermittedParent].permittedParents.includes(a)||cr[i.addPermittedParent].permittedDescendants&&!cr[i.addPermittedParent].permittedDescendants.includes(o)){this.readState=Ke.any,this.startTagIndex=this.markupRegExp.lastIndex;return}let p=this.rootDocument.createElement(i.addPermittedParent);this.currentNode[Et](p,!0),this.nodeStack.push(p),this.tagNameStack.push(p[tt]),this.currentNode=p}else break}if(this.documentStructure){let{documentElement:a,head:m,body:p}=this.documentStructure.nodes,b=this.documentStructure.level;(!i||i.contentModel!==H.rawText)&&this.nextElement!==a&&this.nextElement!==m&&this.nextElement!==p&&(a&&(this.currentNode===this.rootNode||this.currentNode===a||this.currentNode===m&&b>=_e.body)?(b<_e.body&&(this.documentStructure.level=_e.afterBody),p[Et](this.nextElement,!0)):this.currentNode[Et](this.nextElement,!0))}else this.currentNode[Et](this.nextElement,!0);!this.documentStructure||this.nextElement!==this.documentStructure.nodes.body||this.documentStructure.level<=_e.body?(this.currentNode=this.nextElement,this.nodeStack.push(this.currentNode),this.tagNameStack.push(r),this.documentStructure&&this.nextElement===this.documentStructure.nodes.body&&(this.documentStructure.level=_e.afterBody),i?.contentModel===H.noDescendants||t&&this.currentNode[et]===$t.svg?(this.nodeStack.pop(),this.tagNameStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode,this.readState=Ke.any):this.readState=i?.contentModel===H.rawText?Ke.rawTextElement:Ke.any):this.readState=Ke.any,this.startTagIndex=this.markupRegExp.lastIndex}parseEndTag(e){let t=this.currentNode[et]===$t.html?ro.asciiUpperCase(e):db[ro.asciiLowerCase(e)]?.localName||e,r=this.tagNameStack.lastIndexOf(t);r!==-1&&(this.nodeStack.splice(r,this.nodeStack.length-r),this.tagNameStack.splice(r,this.tagNameStack.length-r),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode)}parseComment(e){let t=this.rootDocument.createComment(He.decodeHTMLEntities(e));if(this.documentStructure){let r=this.documentStructure.level,{documentElement:o,head:i,body:n}=this.documentStructure.nodes,a=null;this.currentNode===this.rootNode&&r===_e.root?a=o:this.currentNode===o&&r===_e.documentElement?a=i:this.currentNode===o&&r===_e.head&&(a=n),this.currentNode[lo](t,a,!0)}else this.currentNode[Et](t,!0);this.readState=Ke.any}parseDocumentType(e){let t=He.decodeHTMLEntities(e);if(this.documentStructure){let{doctype:r}=this.documentStructure.nodes,o=this.getDocumentType(t);o?this.currentNode===this.rootNode&&this.documentStructure.level===_e.root&&(r?(r[nt]=o.name,r[yl]=o.publicId,r[ml]=o.systemId):(r=this.rootNode.implementation.createDocumentType(o.name,o.publicId,o.systemId),this.rootNode.insertBefore(r,this.rootNode.documentElement)),this.documentStructure.level=_e.doctype):this.parseComment(t)}else this.getDocumentType(t)||this.parseComment(t);this.readState=Ke.any}parseRawTextElementContent(e,t){let r=ro.asciiUpperCase(e);if(r!==this.currentNode[tt])return;r==="SCRIPT"?this.currentNode[xl]=!this.evaluateScripts:r==="LINK"&&(this.currentNode[xl]=!this.evaluateScripts),this.currentNode[Et](this.rootDocument.createTextNode(t),!0);let o=this.currentNode;if(this.nodeStack.pop(),this.tagNameStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode,this.readState=Ke.any,this.documentStructure){let{documentElement:i,body:n}=this.documentStructure.nodes;i&&(this.currentNode===this.rootNode||this.currentNode===i)?n[Et](o,!0):this.currentNode[Et](o,!0)}else this.currentNode[Et](o,!0)}getStartTagElement(e){let t=ro.asciiLowerCase(e),r=this.currentNode[et];if(t==="svg")return this.rootDocument.createElementNS($t.svg,"svg");if(r===$t.svg)return this.rootDocument.createElementNS($t.svg,db[t]?.localName||e);switch(t){case"html":return this.documentStructure?(this.documentStructure.level<_e.documentElement&&(this.documentStructure.level=_e.documentElement),this.documentStructure.nodes.documentElement??null):null;case"head":return this.documentStructure?(this.documentStructure.level<_e.head?this.documentStructure.level=_e.head:this.documentStructure.level===_e.head&&(this.documentStructure.level=_e.additionalHeadWithoutBody),this.documentStructure.nodes.head??null):null;case"body":return this.documentStructure?(this.documentStructure.level<_e.body&&(this.documentStructure.level=_e.body),this.documentStructure.nodes.body??null):null;default:return this.rootDocument.createElementNS($t.html,t)}}getDocumentType(e){if(!e.toUpperCase().startsWith("DOCTYPE"))return null;let t=e.split(d2);if(t.length<=1)return null;let r=t.slice(1).join(" "),o=[],i=new RegExp(c2,"gm"),n=r.toUpperCase().includes("PUBLIC"),a;for(;a=i.exec(r);)o.push(a[1]);let m=n&&o[0]||"",p=n?o[1]||"":o[0]||"";return{name:t[1].toLowerCase(),publicId:m,systemId:p}}};var g2=/^[a-z][a-z0-9-]+$/,Uv,Gv,Hv,$v,qv,Wv,jv,zv,Xv,Yv,Kv,Jv,Zv,Qv,tA,eA,rA,oA,iA,sA,nA,lA,aA,yA,bb,zP,zo=class extends(yA=ft,aA=Xr,lA=$e,nA=Sa,sA=qi,iA=Ve,oA=Zs,rA=Qs,eA=U,tA=st,Qv=Ea,Zv=Rf,Jv=va,Kv=Kr,Yv=fo,Xv=gc,zv=ws,jv=T,Wv=on,qv=Oe,$v=ym,Hv=Po,Gv=c,Uv=Zy,yA){constructor(){super(...arguments);x(this,bb);s(this,aA,null);s(this,lA,null);s(this,nA,null);s(this,sA,null);s(this,iA,this);s(this,oA,!0);s(this,rA,!1);s(this,eA,M.documentNode);s(this,tA,!0);s(this,Qv,[]);s(this,Zv,new cb(this));s(this,Jv,uS.interactive);s(this,Kv,"");s(this,Yv,null);s(this,Xv,null);s(this,zv,[]);s(this,jv,null);s(this,Wv,new Map);s(this,qv,"text/html");s(this,$v,null);s(this,Hv,new Map);s(this,Gv,new Map);s(this,Uv,null)}get onreadystatechange(){return this[c].get("onreadystatechange")??null}set onreadystatechange(t){this[c].set("onreadystatechange",t)}get onpointerlockchange(){return this[c].get("onpointerlockchange")??null}set onpointerlockchange(t){this[c].set("onpointerlockchange",t)}get onpointerlockerror(){return this[c].get("onpointerlockerror")??null}set onpointerlockerror(t){this[c].set("onpointerlockerror",t)}get onbeforecopy(){return this[c].get("onbeforecopy")??null}set onbeforecopy(t){this[c].set("onbeforecopy",t)}get onbeforecut(){return this[c].get("onbeforecut")??null}set onbeforecut(t){this[c].set("onbeforecut",t)}get onbeforepaste(){return this[c].get("onbeforepaste")??null}set onbeforepaste(t){this[c].set("onbeforepaste",t)}get onfreeze(){return this[c].get("onfreeze")??null}set onfreeze(t){this[c].set("onfreeze",t)}get onprerenderingchange(){return this[c].get("onprerenderingchange")??null}set onprerenderingchange(t){this[c].set("onprerenderingchange",t)}get onresume(){return this[c].get("onresume")??null}set onresume(t){this[c].set("onresume",t)}get onsearch(){return this[c].get("onsearch")??null}set onsearch(t){this[c].set("onsearch",t)}get onvisibilitychange(){return this[c].get("onvisibilitychange")??null}set onvisibilitychange(t){this[c].set("onvisibilitychange",t)}get onfullscreenchange(){return this[c].get("onfullscreenchange")??null}set onfullscreenchange(t){this[c].set("onfullscreenchange",t)}get onfullscreenerror(){return this[c].get("onfullscreenerror")??null}set onfullscreenerror(t){this[c].set("onfullscreenerror",t)}get onwebkitfullscreenchange(){return this[c].get("onwebkitfullscreenchange")??null}set onwebkitfullscreenchange(t){this[c].set("onwebkitfullscreenchange",t)}get onwebkitfullscreenerror(){return this[c].get("onwebkitfullscreenerror")??null}set onwebkitfullscreenerror(t){this[c].set("onwebkitfullscreenerror",t)}get onbeforexrselect(){return this[c].get("onbeforexrselect")??null}set onbeforexrselect(t){this[c].set("onbeforexrselect",t)}get onabort(){return this[c].get("onabort")??null}set onabort(t){this[c].set("onabort",t)}get onbeforeinput(){return this[c].get("onbeforeinput")??null}set onbeforeinput(t){this[c].set("onbeforeinput",t)}get onbeforematch(){return this[c].get("onbeforematch")??null}set onbeforematch(t){this[c].set("onbeforematch",t)}get onbeforetoggle(){return this[c].get("onbeforetoggle")??null}set onbeforetoggle(t){this[c].set("onbeforetoggle",t)}get onblur(){return this[c].get("onblur")??null}set onblur(t){this[c].set("onblur",t)}get oncancel(){return this[c].get("oncancel")??null}set oncancel(t){this[c].set("oncancel",t)}get oncanplay(){return this[c].get("oncanplay")??null}set oncanplay(t){this[c].set("oncanplay",t)}get oncanplaythrough(){return this[c].get("oncanplaythrough")??null}set oncanplaythrough(t){this[c].set("oncanplaythrough",t)}get onchange(){return this[c].get("onchange")??null}set onchange(t){this[c].set("onchange",t)}get onclick(){return this[c].get("onclick")??null}set onclick(t){this[c].set("onclick",t)}get onclose(){return this[c].get("onclose")??null}set onclose(t){this[c].set("onclose",t)}get oncontentvisibilityautostatechange(){return this[c].get("oncontentvisibilityautostatechange")??null}set oncontentvisibilityautostatechange(t){this[c].set("oncontentvisibilityautostatechange",t)}get oncontextlost(){return this[c].get("oncontextlost")??null}set oncontextlost(t){this[c].set("oncontextlost",t)}get oncontextmenu(){return this[c].get("oncontextmenu")??null}set oncontextmenu(t){this[c].set("oncontextmenu",t)}get oncontextrestored(){return this[c].get("oncontextrestored")??null}set oncontextrestored(t){this[c].set("oncontextrestored",t)}get oncuechange(){return this[c].get("oncuechange")??null}set oncuechange(t){this[c].set("oncuechange",t)}get ondblclick(){return this[c].get("ondblclick")??null}set ondblclick(t){this[c].set("ondblclick",t)}get ondrag(){return this[c].get("ondrag")??null}set ondrag(t){this[c].set("ondrag",t)}get ondragend(){return this[c].get("ondragend")??null}set ondragend(t){this[c].set("ondragend",t)}get ondragenter(){return this[c].get("ondragenter")??null}set ondragenter(t){this[c].set("ondragenter",t)}get ondragleave(){return this[c].get("ondragleave")??null}set ondragleave(t){this[c].set("ondragleave",t)}get ondragover(){return this[c].get("ondragover")??null}set ondragover(t){this[c].set("ondragover",t)}get ondragstart(){return this[c].get("ondragstart")??null}set ondragstart(t){this[c].set("ondragstart",t)}get ondrop(){return this[c].get("ondrop")??null}set ondrop(t){this[c].set("ondrop",t)}get ondurationchange(){return this[c].get("ondurationchange")??null}set ondurationchange(t){this[c].set("ondurationchange",t)}get onemptied(){return this[c].get("onemptied")??null}set onemptied(t){this[c].set("onemptied",t)}get onended(){return this[c].get("onended")??null}set onended(t){this[c].set("onended",t)}get onerror(){return this[c].get("onerror")??null}set onerror(t){this[c].set("onerror",t)}get onfocus(){return this[c].get("onfocus")??null}set onfocus(t){this[c].set("onfocus",t)}get onformdata(){return this[c].get("onformdata")??null}set onformdata(t){this[c].set("onformdata",t)}get oninput(){return this[c].get("oninput")??null}set oninput(t){this[c].set("oninput",t)}get oninvalid(){return this[c].get("oninvalid")??null}set oninvalid(t){this[c].set("oninvalid",t)}get onkeydown(){return this[c].get("onkeydown")??null}set onkeydown(t){this[c].set("onkeydown",t)}get onkeypress(){return this[c].get("onkeypress")??null}set onkeypress(t){this[c].set("onkeypress",t)}get onkeyup(){return this[c].get("onkeyup")??null}set onkeyup(t){this[c].set("onkeyup",t)}get onload(){return this[c].get("onload")??null}set onload(t){this[c].set("onload",t)}get onloadeddata(){return this[c].get("onloadeddata")??null}set onloadeddata(t){this[c].set("onloadeddata",t)}get onloadedmetadata(){return this[c].get("onloadedmetadata")??null}set onloadedmetadata(t){this[c].set("onloadedmetadata",t)}get onloadstart(){return this[c].get("onloadstart")??null}set onloadstart(t){this[c].set("onloadstart",t)}get onmousedown(){return this[c].get("onmousedown")??null}set onmousedown(t){this[c].set("onmousedown",t)}get onmouseenter(){return this[c].get("onmouseenter")??null}set onmouseenter(t){this[c].set("onmouseenter",t)}get onmouseleave(){return this[c].get("onmouseleave")??null}set onmouseleave(t){this[c].set("onmouseleave",t)}get onmousemove(){return this[c].get("onmousemove")??null}set onmousemove(t){this[c].set("onmousemove",t)}get onmouseout(){return this[c].get("onmouseout")??null}set onmouseout(t){this[c].set("onmouseout",t)}get onmouseover(){return this[c].get("onmouseover")??null}set onmouseover(t){this[c].set("onmouseover",t)}get onmouseup(){return this[c].get("onmouseup")??null}set onmouseup(t){this[c].set("onmouseup",t)}get onmousewheel(){return this[c].get("onmousewheel")??null}set onmousewheel(t){this[c].set("onmousewheel",t)}get onpause(){return this[c].get("onpause")??null}set onpause(t){this[c].set("onpause",t)}get onplay(){return this[c].get("onplay")??null}set onplay(t){this[c].set("onplay",t)}get onplaying(){return this[c].get("onplaying")??null}set onplaying(t){this[c].set("onplaying",t)}get onprogress(){return this[c].get("onprogress")??null}set onprogress(t){this[c].set("onprogress",t)}get onratechange(){return this[c].get("onratechange")??null}set onratechange(t){this[c].set("onratechange",t)}get onreset(){return this[c].get("onreset")??null}set onreset(t){this[c].set("onreset",t)}get onresize(){return this[c].get("onresize")??null}set onresize(t){this[c].set("onresize",t)}get onscroll(){return this[c].get("onscroll")??null}set onscroll(t){this[c].set("onscroll",t)}get onsecuritypolicyviolation(){return this[c].get("onsecuritypolicyviolation")??null}set onsecuritypolicyviolation(t){this[c].set("onsecuritypolicyviolation",t)}get onseeked(){return this[c].get("onseeked")??null}set onseeked(t){this[c].set("onseeked",t)}get onseeking(){return this[c].get("onseeking")??null}set onseeking(t){this[c].set("onseeking",t)}get onselect(){return this[c].get("onselect")??null}set onselect(t){this[c].set("onselect",t)}get onslotchange(){return this[c].get("onslotchange")??null}set onslotchange(t){this[c].set("onslotchange",t)}get onstalled(){return this[c].get("onstalled")??null}set onstalled(t){this[c].set("onstalled",t)}get onsubmit(){return this[c].get("onsubmit")??null}set onsubmit(t){this[c].set("onsubmit",t)}get onsuspend(){return this[c].get("onsuspend")??null}set onsuspend(t){this[c].set("onsuspend",t)}get ontimeupdate(){return this[c].get("ontimeupdate")??null}set ontimeupdate(t){this[c].set("ontimeupdate",t)}get ontoggle(){return this[c].get("ontoggle")??null}set ontoggle(t){this[c].set("ontoggle",t)}get onvolumechange(){return this[c].get("onvolumechange")??null}set onvolumechange(t){this[c].set("onvolumechange",t)}get onwaiting(){return this[c].get("onwaiting")??null}set onwaiting(t){this[c].set("onwaiting",t)}get onwebkitanimationend(){return this[c].get("onwebkitanimationend")??null}set onwebkitanimationend(t){this[c].set("onwebkitanimationend",t)}get onwebkitanimationiteration(){return this[c].get("onwebkitanimationiteration")??null}set onwebkitanimationiteration(t){this[c].set("onwebkitanimationiteration",t)}get onwebkitanimationstart(){return this[c].get("onwebkitanimationstart")??null}set onwebkitanimationstart(t){this[c].set("onwebkitanimationstart",t)}get onwebkittransitionend(){return this[c].get("onwebkittransitionend")??null}set onwebkittransitionend(t){this[c].set("onwebkittransitionend",t)}get onwheel(){return this[c].get("onwheel")??null}set onwheel(t){this[c].set("onwheel",t)}get onauxclick(){return this[c].get("onauxclick")??null}set onauxclick(t){this[c].set("onauxclick",t)}get ongotpointercapture(){return this[c].get("ongotpointercapture")??null}set ongotpointercapture(t){this[c].set("ongotpointercapture",t)}get onlostpointercapture(){return this[c].get("onlostpointercapture")??null}set onlostpointercapture(t){this[c].set("onlostpointercapture",t)}get onpointerdown(){return this[c].get("onpointerdown")??null}set onpointerdown(t){this[c].set("onpointerdown",t)}get onpointermove(){return this[c].get("onpointermove")??null}set onpointermove(t){this[c].set("onpointermove",t)}get onpointerrawupdate(){return this[c].get("onpointerrawupdate")??null}set onpointerrawupdate(t){this[c].set("onpointerrawupdate",t)}get onpointerup(){return this[c].get("onpointerup")??null}set onpointerup(t){this[c].set("onpointerup",t)}get onpointercancel(){return this[c].get("onpointercancel")??null}set onpointercancel(t){this[c].set("onpointercancel",t)}get onpointerover(){return this[c].get("onpointerover")??null}set onpointerover(t){this[c].set("onpointerover",t)}get onpointerout(){return this[c].get("onpointerout")??null}set onpointerout(t){this[c].set("onpointerout",t)}get onpointerenter(){return this[c].get("onpointerenter")??null}set onpointerenter(t){this[c].set("onpointerenter",t)}get onpointerleave(){return this[c].get("onpointerleave")??null}set onpointerleave(t){this[c].set("onpointerleave",t)}get onselectstart(){return this[c].get("onselectstart")??null}set onselectstart(t){this[c].set("onselectstart",t)}get onselectionchange(){return this[c].get("onselectionchange")??null}set onselectionchange(t){this[c].set("onselectionchange",t)}get onanimationend(){return this[c].get("onanimationend")??null}set onanimationend(t){this[c].set("onanimationend",t)}get onanimationiteration(){return this[c].get("onanimationiteration")??null}set onanimationiteration(t){this[c].set("onanimationiteration",t)}get onanimationstart(){return this[c].get("onanimationstart")??null}set onanimationstart(t){this[c].set("onanimationstart",t)}get ontransitionrun(){return this[c].get("ontransitionrun")??null}set ontransitionrun(t){this[c].set("ontransitionrun",t)}get ontransitionstart(){return this[c].get("ontransitionstart")??null}set ontransitionstart(t){this[c].set("ontransitionstart",t)}get ontransitionend(){return this[c].get("ontransitionend")??null}set ontransitionend(t){this[c].set("ontransitionend",t)}get ontransitioncancel(){return this[c].get("ontransitioncancel")??null}set ontransitioncancel(t){this[c].set("ontransitioncancel",t)}get oncopy(){return this[c].get("oncopy")??null}set oncopy(t){this[c].set("oncopy",t)}get oncut(){return this[c].get("oncut")??null}set oncut(t){this[c].set("oncut",t)}get onpaste(){return this[c].get("onpaste")??null}set onpaste(t){this[c].set("onpaste",t)}get onscrollend(){return this[c].get("onscrollend")??null}set onscrollend(t){this[c].set("onscrollend",t)}get onscrollsnapchange(){return this[c].get("onscrollsnapchange")??null}set onscrollsnapchange(t){this[c].set("onscrollsnapchange",t)}get onscrollsnapchanging(){return this[c].get("onscrollsnapchanging")??null}set onscrollsnapchanging(t){this[c].set("onscrollsnapchanging",t)}get adoptedStyleSheets(){return this[Ea]}set adoptedStyleSheets(t){this[Ea]=t}get implementation(){return this[Rf]}get readyState(){return this[va]}get referrer(){return this[Kr]}get defaultView(){return this[fo]}get children(){if(!this[Xr]){let t=this[gt];this[Xr]=new Ae(h,()=>t)}return this[Xr]}get charset(){return this.characterSet}get characterSet(){let t=yt.querySelector(this,"meta[charset]")?.getAttributeNS(null,"charset");return t||"UTF-8"}get title(){let t=ne.getElementByTagName(this,"title");return t?t.text.trim():""}set title(t){let r=ne.getElementByTagName(this,"title");if(r)r.textContent=t;else{let o=this.createElement("title");o.textContent=t,this.head.appendChild(o)}}get links(){return yt.querySelectorAll(this,"a[href],area[href]")}get forms(){return this[gc]||(this[gc]=ne.getElementsByTagName(this,"form")),this[gc]}get childElementCount(){return this[gt].length}get firstElementChild(){return this[gt][0]??null}get lastElementChild(){let t=this[gt];return t[t.length-1]??null}get cookie(){let t=new ot(this[y]).getBrowserFrame();return t?Mi.cookiesToString(t.page.context.cookieContainer.getCookies(this[y].location,!0)):""}set cookie(t){let r=new ot(this[y]).getBrowserFrame();if(!r)return;let o=Mi.stringToCookie(this[y].location,t);o&&r.page.context.cookieContainer.addCookies([o])}get nodeName(){return"#document"}get documentElement(){return this[gt][0]??null}get doctype(){for(let t of this[q])if(t instanceof Dn)return t;return null}get body(){let t=this.documentElement;return t?ne.getElementByTagName(t,"body"):null}get head(){let t=this.documentElement;return t?ne.getElementByTagName(t,"head"):null}get styleSheets(){let t=yt.querySelectorAll(this,'link[rel="stylesheet"][href],style'),r=[];for(let o of t){let i=o.sheet;i&&r.push(i)}return r}get activeElement(){if(this[$e]&&!this[$e][st]&&(this[$e]=null),this[$e]&&this[$e]instanceof dr){let t=this[$e].getRootNode(),r=this[$e];for(;t!==this;)r=t.host,t=r?r.getRootNode():this;return r}return this[$e]||this.body||this.documentElement||null}get scrollingElement(){return this.documentElement}get location(){return this[y].location}get scripts(){return this.getElementsByTagName("script")}get baseURI(){let t=ne.getElementByTagName(this,"base");return t?t.href:this[y].location.href}get URL(){return this[y].location.href}get documentURI(){return this.URL}get domain(){return this[y].location.hostname}get visibilityState(){return this.defaultView?WP.visible:WP.hidden}get hidden(){return!this.defaultView}get currentScript(){return this[qi]}get contentType(){return this[Oe]}append(...t){ne.append(this,...t)}prepend(...t){ne.prepend(this,...t)}replaceChildren(...t){ne.replaceChildren(this,...t)}querySelectorAll(t){return yt.querySelectorAll(this,t)}querySelector(t){return yt.querySelector(this,t)}queryCommandSupported(t){if(!arguments.length)throw new this[y].TypeError("Failed to execute 'queryCommandSupported' on 'Document': 1 argument required, but only 0 present.");return!0}getElementsByClassName(t){return ne.getElementsByClassName(this,t)}getElementsByTagName(t){return ne.getElementsByTagName(this,t)}getElementsByTagNameNS(t,r){return ne.getElementsByTagNameNS(this,t,r)}getElementById(t){return ne.getElementById(this,t)}getElementsByName(t){return yt.querySelectorAll(this,`[name="${t}"]`)}write(t){if(this[Zs]||this[Qs]){this[Zs]&&(this[Qs]||this.open(),this[Zs]=!1);let{documentElement:r,head:o,body:i}=this;(!r||!o||!i)&&this.open(),this[Zs]=!1,this[Qs]=!1,new $r(this[y],{evaluateScripts:!0}).parse(t,this)}else new $r(this[y],{evaluateScripts:!0}).parse(t,this.body)}open(){this[Qs]=!0;for(let a of this[ge].bubbling.keys()){let m=this[ge].bubbling.get(a);if(m)for(let p of m)this.removeEventListener(a,p)}for(let a of this[ge].capturing.keys()){let m=this[ge].capturing.get(a);if(m)for(let p of m)this.removeEventListener(a,p)}let t=this[q];for(;t.length;)this.removeChild(t[0]);let r=this[Rf].createDocumentType("html","",""),o=this.createElement("html"),i=this.createElement("body"),n=this.createElement("head");return this.appendChild(r),this.appendChild(o),o.appendChild(n),o.appendChild(i),this}close(){}createElement(t,r){return this.createElementNS($t.html,ro.asciiLowerCase(String(t)),r)}createElementNS(t,r,o){let i=this[y];if(r=String(r),!r)throw new i.DOMException("Failed to execute 'createElementNS' on 'Document': The qualified name provided is empty.");let n=r.split(":"),a=n[1]??n[0],m=n[1]?n[0]:null;switch(t){case $t.svg:let p=db[r.toLowerCase()],b=p&&p.localName===r?i[p.className]:i.SVGElement,d=De.createNode(this,b);return d[tt]=r,d[dt]=a,d[Vt]=m,d[et]=t,d[No]=o&&o.is?String(o.is):null,d;case $t.html:let f=i.customElements[fs]?.get(o&&o.is?String(o.is):r);if(f){let lt=new f.elementClass;return lt[tt]=ro.asciiUpperCase(r),lt[dt]=a,lt[Vt]=m,lt[et]=t,lt[No]=o&&o.is?String(o.is):null,lt}let v=cr[r]?i[cr[r].className]:null;if(v){let lt=De.createNode(this,v);return lt[tt]=ro.asciiUpperCase(r),lt[dt]=a,lt[Vt]=m,lt[et]=t,lt[No]=o&&o.is?String(o.is):null,lt}let L=r.includes("-")?i.HTMLElement:i.HTMLUnknownElement,C=De.createNode(this,L);return C[tt]=ro.asciiUpperCase(r),C[dt]=a,C[Vt]=m,C[et]=t,C[No]=o&&o.is?String(o.is):null,C;default:let X=De.createNode(this,dr);return X[tt]=r,X[dt]=a,X[Vt]=m,X[et]=t,X[No]=o&&o.is?String(o.is):null,X}}createTextNode(t){if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'createTextNode' on 'Document': 1 argument required, but only ${arguments.length} present.`);return De.createNode(this,this[y].Text,String(t))}createComment(t){if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'createComment' on 'Document': 1 argument required, but only ${arguments.length} present.`);return De.createNode(this,this[y].Comment,String(t))}createDocumentFragment(){return De.createNode(this,this[y].DocumentFragment)}createNodeIterator(t,r=-1,o=null){return new hy(t,r,o)}createTreeWalker(t,r=-1,o=null){return new _n(t,r,o)}createEvent(t){return typeof this[y][t]=="function"?new this[y][t]("init"):new R("init")}createAttribute(t){let r=De.createNode(this,this[y].Attr),o=ro.asciiLowerCase(t),i=o.split(":");return r[nt]=o,r[dt]=i[1]??o,r[Vt]=i[1]?i[0]:null,r}createAttributeNS(t,r){let o=De.createNode(this,this[y].Attr),i=r.split(":");if(o[et]=t,o[nt]=r,o[dt]=i[1]??r,o[Vt]=i[1]?i[0]:null,!t&&o[Vt])throw new this[y].DOMException(`Failed to execute 'createAttributeNS' on 'Document': The namespace URI provided ('${t||""}') is not valid for the qualified name provided ('${r}').`,A.namespaceError);return o}importNode(t,r=!1){if(!(t instanceof ft))throw new this[y].DOMException("Parameter 1 was not of type Node.");let o=t.cloneNode(r);return F(this,bb,zP).call(this,o),o}createRange(){return new this[y].Range}adoptNode(t){if(!(t instanceof ft))throw new this[y].DOMException("Parameter 1 was not of type Node.");let r=t[W]?t[W].removeChild(t):t;return Object.defineProperty(r,"ownerDocument",{value:this}),r}getSelection(){return this[Zy]||(this[Zy]=new dy(this)),this[Zy]}hasFocus(){return!!this.activeElement}createProcessingInstruction(t,r){if(arguments.length<2)throw new this[y].TypeError(`Failed to execute 'createProcessingInstruction' on 'Document': 2 arguments required, but only ${arguments.length} present.`);if(t=String(t),r=String(r),!t||!g2.test(t))throw new this[y].DOMException(`Failed to execute 'createProcessingInstruction' on 'Document': The target provided ('${t}') is not a valid name.`);if(r.includes("?>"))throw new this[y].DOMException("Failed to execute 'createProcessingInstruction' on 'Document': The data provided ('?>') contains '?>'");let o=De.createNode(this,this[y].ProcessingInstruction);return o[le]=r,o[Zr]=t,o}elementFromPoint(t,r){return null}};bb=new WeakSet,zP=function(t){t[T]=this;for(let r of t[q])F(this,bb,zP).call(this,r)};var ne=class{static append(e,...t){for(let r of t)r instanceof ft?e.appendChild(r):e.appendChild(e[T].createTextNode(String(r)))}static prepend(e,...t){let r=e.firstChild;for(let o of t)o instanceof ft?e.insertBefore(o,r):e.insertBefore(e[T].createTextNode(String(o)),r)}static replaceChildren(e,...t){let r=e[q];for(;r.length;)e.removeChild(r[0]);this.append(e,...t)}static getElementsByClassName(e,t){return new Ae(h,()=>yt.querySelectorAll(e,`.${t.replace(/\s+/gm,".")}`)[Y])}static getElementsByTagName(e,t){let r=t.toUpperCase(),o=t==="*",i=(a,m)=>{let p=[];for(let b of a[gt]){(o||b[tt].toUpperCase()===r)&&p.push(b),b[rr].push(m);for(let d of i(b,m))p.push(d)}return p},n=()=>{let a=e[$].elementsByTagName,m=a.get(t);if(m?.result){let d=m.result.deref();if(d)return d}let p={result:null},b=i(e,p);return p.result=new WeakRef(b),a.set(t,p),b};return new Ae(h,n)}static getElementsByTagNameNS(e,t,r){let o=t===$t.html&&e[T][Oe]==="text/html"?r.toUpperCase():r,i=r==="*",n=(m,p)=>{let b=[];for(let d of m[gt]){(i||d[tt]===o)&&d[et]===t&&b.push(d),d[rr].push(p);for(let f of n(d,p))b.push(f)}return b},a=()=>{let m=e[$].elementsByTagNameNS,p=m.get(r);if(p?.result){let f=p.result.deref();if(f)return f}let b={result:null},d=n(e,b);return b.result=new WeakRef(d),m.set(r,b),d};return new Ae(h,a)}static getElementByTagName(e,t){let r=t.toUpperCase(),o=(p,b)=>{for(let d of p[gt]){if(d[rr].push(b),d[tt]===r)return d;let f=o(d,b);if(f)return f}return null},i=e[$].elementByTagName,n=i.get(t);if(n?.result){let p=n.result.deref();if(p)return p}let a={result:null},m=o(e,a);return a.result=m?new WeakRef(m):{deref:()=>null},i.set(t,a),m}static getElementById(e,t){if(t=String(t),e instanceof zo){let m=e[on].get(t);return m&&m.elements.length>0?m.elements[0]:null}let r=(m,p)=>{for(let b of m[gt]){if(b[rr].push(p),b.getAttribute("id")===t)return b;let d=r(b,p);if(d)return d}return null},o=e[$].elementById,i=o.get(t);if(i?.result){let m=i.result.deref();if(m)return m}let n={result:null},a=r(e,n);return n.result=a?new WeakRef(a):{deref:()=>null},o.set(t,n),a}};var Om=class extends Array{constructor(e){if(super(),e!==1&&e!==h)throw new TypeError("Illegal constructor")}item(e){return this[e]??null}};var mA,uA,pA,Gn=class{constructor(e){s(this,pA,new Map);s(this,uA,new Map);s(this,mA,new Map);this[At]=e}get length(){return this[Y].size}get[(pA=pl,uA=oi,mA=Y,Symbol.toStringTag)](){return"NamedNodeMap"}toString(){return"[object NamedNodeMap]"}[Symbol.iterator](){return this[Y].values()}item(e){let t=Array.from(this[Y].values());return e>=0&&t[e]?t[e]:null}getNamedItem(e){return e=String(e),this[At][et]===$t.html&&this[At][T][Oe]==="text/html"?this[oi].get(ro.asciiLowerCase(e))?.[0]||null:this[oi].get(e)?.[0]||null}getNamedItemNS(e,t){let r=this[pl].get(`${e||""}:${t}`);return r&&(!r[Vt]||r[et])?r:null}setNamedItem(e){return this[Xi](e)}setNamedItemNS(e){return this[Xi](e)}removeNamedItem(e){let t=this.getNamedItem(e);if(!t)throw new this[At][y].DOMException(`Failed to execute 'removeNamedItem' on 'NamedNodeMap': No item with name '${e}' was found.`,A.notFoundError);return this[ul](t),t}removeNamedItemNS(e,t){let r=this.getNamedItemNS(e,t);if(!r)throw new this[At][y].DOMException(`Failed to execute 'removeNamedItemNS' on 'NamedNodeMap': No item with name '${t}' in namespace '${e}' was found.`,A.notFoundError);return this[ul](r),r}[Xi](e,t=!1){if(e[At]!==null&&e[At]!==this[At])throw new this[At][y].DOMException("The attribute is in use.",A.inUseAttributeError);e[At]=this[At];let r=this.getNamedItemNS(e[et],e[dt])||null,o=this[oi].get(e[nt]);if(r===e)return e;if(this[pl].set(`${e[et]||""}:${e[dt]}`,e),this[Y].set(`${e[et]||""}:${e[nt]}`,e),!o?.length)this[oi].set(e[nt],[e]);else{let i=o.indexOf(r);i!==-1&&o.splice(i,1),o.push(e)}return t||this[At][je](e,r),r}[ul](e,t=!1){e[At]=null,this[pl].delete(`${e[et]||""}:${e[dt]}`),this[Y].delete(`${e[et]||""}:${e[nt]}`);let r=this[oi].get(e[nt]);if(r?.length){let o=r.indexOf(e);o!==-1&&r.splice(o,1),r.length||this[oi].delete(e[nt])}t||this[At][Ur](e)}};var gb=class{static createProxy(e){let t=new xe(this,[Gn]);return new Proxy(e,{get:(r,o)=>{if(o==="length")return e[Y].size;if(o in r||typeof o=="symbol")return t.bind(o),r[o];let i=Number(o);return isNaN(i)?r.getNamedItem(o)||void 0:r.item(i)},set(r,o,i){if(t.bind(o),typeof o=="symbol")return r[o]=i,!0;let n=Number(o);return isNaN(n)&&(r[o]=i),!0},deleteProperty(r,o){if(typeof o=="symbol")return delete r[o],!0;let i=Number(o);return isNaN(i)&&delete r[o],!0},ownKeys(){let r=Array.from(e[Y].keys());for(let o=0,i=e[Y].size;o<i;o++)r.push(String(o));return r},has(r,o){if(typeof o=="symbol")return!1;if(o in r||e[Y].has(o))return!0;let i=Number(o);return!isNaN(i)&&i>=0&&i<e[Y].size},defineProperty(r,o,i){return t.preventBinding(o),o in r?(Object.defineProperty(r,o,i),!0):!1},getOwnPropertyDescriptor(r,o){if(o in r||typeof o=="symbol")return;let i=Number(o);if(!isNaN(i)){if(i>=0){let a=r.item(i);if(a)return{value:a,writable:!1,enumerable:!0,configurable:!0}}return}let n=e[Y].get(o);if(n)return{value:n,writable:!1,enumerable:!0,configurable:!0}}})}};var Vi=class{constructor(e){s(this,"options",{serializableShadowRoots:!1,shadowRoots:null,allShadowRoots:!1,excludeShadowRootTags:null});e&&(e.serializableShadowRoots&&(this.options.serializableShadowRoots=e.serializableShadowRoots),e.shadowRoots&&(this.options.shadowRoots=e.shadowRoots),e.allShadowRoots&&(this.options.allShadowRoots=e.allShadowRoots),e.excludeShadowRootTags&&(this.options.excludeShadowRootTags=e.excludeShadowRootTags))}serializeToString(e){switch(e[U]){case M.elementNode:let t=e,r=t[Vt],o=t[dt],i=cr[t[dt]],n=r?`${r}:${o}`:o;if(i?.contentModel===H.noDescendants)return`<${n}${this.getAttributes(t)}>`;let a="";if(t.shadowRoot&&(this.options.allShadowRoots||this.options.serializableShadowRoots&&t.shadowRoot[sn]||this.options.shadowRoots?.includes(t.shadowRoot))&&(!this.options.excludeShadowRootTags||!this.options.excludeShadowRootTags.includes(n))){a+=`<template shadowrootmode="${t.shadowRoot[ke]}"${t.shadowRoot[sn]?' shadowrootserializable=""':""}>`;for(let C of t.shadowRoot[q])a+=this.serializeToString(C);a+="</template>"}let m=n==="template"?e.content[q]:e[q];for(let C of m)a+=this.serializeToString(C);return`<${n}${this.getAttributes(t)}>${a}</${n}>`;case ft.DOCUMENT_FRAGMENT_NODE:case ft.DOCUMENT_NODE:let p="";for(let C of e[q])p+=this.serializeToString(C);return p;case M.commentNode:return`<!--${e.textContent}-->`;case M.processingInstructionNode:return`<!--?${e.target} ${e.textContent}?-->`;case M.textNode:let b=e.parentElement;return b&&cr[b[dt]]?.contentModel===H.rawText?e.textContent:He.encodeTextContent(e.textContent);case M.documentTypeNode:let d=e,f=d.publicId?" PUBLIC":d.systemId?" SYSTEM":"",v=d.publicId?` "${d.publicId}"`:"",L=d.systemId?` "${d.systemId}"`:"";return`<!DOCTYPE ${d.name}${f}${v}${L}>`}return""}getAttributes(e){let t="",r=e[St][Y];!r.has(":is")&&e[No]&&(t+=' is="'+He.encodeHTMLAttributeValue(e[No])+'"');for(let o of r.values()){let i=He.encodeHTMLAttributeValue(o[J]);t+=" "+o[nt]+'="'+i+'"'}return t}};var f2=/[\x00-\x1F\x7F\x80-\x9F "\'><=\/\uFDD0-\uFDEF\uFFFE\uFFFF\u1FFFE\u1FFFF\u2FFFE\u2FFFF\u3FFFE\u3FFFF\u4FFFE\u4FFFF\u5FFFE\u5FFFF\u6FFFE\u6FFFF\u7FFFE\u7FFFF\u8FFFE\u8FFFF\u9FFFE\u9FFFF\uAFFFE\uAFFFF\uBFFFE\uBFFFF\uCFFFE\uCFFFF\uDFFFE\uDFFFF\uEFFFE\uEFFFF\uFFFFE\uFFFFF\u10FFFE\u10FFFF]/,pS=class{static validateAttributeName(e,t,r){let{method:o,instance:i}=r;if(t==="text/html"){let n=String(e).toLowerCase();if(f2.test(n)||n.length===0||n[0]==="-")throw new Ht(`Uncaught InvalidCharacterError: Failed to execute '${o}' on '${i}': '${e}' is not a valid attribute name.`,A.invalidCharacterError)}}};var S=class{static getEventListener(e,t){let r=e[c].get(t);if(r)return r;let o=e[T][fo];if(!o)return null;let i=new ot(o).getSettings();if(!i||!i.enableJavaScriptEvaluation)return null;let n=e.getAttribute(t);if(!n)return null;let a="(function anonymous($happy_dom, event) {";i&&!i.disableErrorCapturing&&i.errorCapture===me.tryAndCatch&&(a+=`try {
94
+ `),a+=n,i&&!i.disableErrorCapturing&&i.errorCapture===me.tryAndCatch&&(a+="} catch(e) { $happy_dom.dispatchError(e); }"),a+="})";let m=null;try{m=o[Wi](a,{filename:o.location.href}).bind(e,{dispatchError:o[he].bind(o)})}catch(p){let b=new o.SyntaxError(`Failed to read the '${t}' property from '${e.constructor.name}': ${p.message}`);if(i.disableErrorCapturing||i.errorCapture!==me.tryAndCatch)throw b;return o[he](b),null}return m&&e[c].set(t,m),m}};var hA,cA,dA,bA,gA,fA,SA,PA,wA,xA,EA,vA,AA,TA,NA,LA,CA,gi,XP,hS,fb,dr=class extends ft{constructor(){super();x(this,gi);s(this,TA,null);s(this,AA,null);s(this,vA,M.elementNode);s(this,EA,null);s(this,xA,null);s(this,wA,0);s(this,PA,0);s(this,SA,0);s(this,fA,0);s(this,gA,new Gn(this));s(this,bA,null);s(this,dA,null);s(this,cA,null);s(this,hA,new Map);this[tt]||(this[tt]=null),this[dt]||(this[dt]=null),this[et]||(this[et]=null)}get onfullscreenerror(){return S.getEventListener(this,"onfullscreenerror")}set onfullscreenerror(t){this[c].set("onfullscreenerror",t)}get onfullscreenchange(){return S.getEventListener(this,"onfullscreenchange")}set onfullscreenchange(t){this[c].set("onfullscreenchange",t)}get onbeforecopy(){return S.getEventListener(this,"onbeforecopy")}set onbeforecopy(t){this[c].set("onbeforecopy",t)}get onbeforecut(){return S.getEventListener(this,"onbeforecut")}set onbeforecut(t){this[c].set("onbeforecut",t)}get onbeforepaste(){return S.getEventListener(this,"onbeforepaste")}set onbeforepaste(t){this[c].set("onbeforepaste",t)}get onsearch(){return S.getEventListener(this,"onsearch")}set onsearch(t){this[c].set("onsearch",t)}get tagName(){return this[tt]}get prefix(){return this[Vt]}get shadowRoot(){let t=this[Le];return t&&t[ke]==="open"?t:null}get scrollHeight(){return this[qS]}get scrollWidth(){return this[WS]}get scrollTop(){return this[kf]}set scrollTop(t){this[kf]=t}get scrollLeft(){return this[Mf]}set scrollLeft(t){this[Mf]=t}get attributes(){return this[hc]||(this[hc]=gb.createProxy(this[St])),this[hc]}get namespaceURI(){return this[et]}get children(){if(!this[Xr]){let t=this[gt];this[Xr]=new Ae(h,()=>t)}return this[Xr]}get classList(){return this[uc]||(this[uc]=new ho(h,this,"class")),this[uc]}set classList(t){this.setAttribute("class",t)}get id(){return this.getAttribute("id")||""}set id(t){this.setAttribute("id",t)}get className(){return this.getAttribute("class")||""}set className(t){this.setAttribute("class",t)}get nodeName(){return this[tt]}get localName(){return this[dt]}get role(){return this.getAttribute("role")||""}set role(t){this.setAttribute("role",t)}get previousElementSibling(){return Il.previousElementSibling(this)}get nextElementSibling(){return Il.nextElementSibling(this)}get textContent(){let t="";for(let r of this[q])(r[U]===M.elementNode||r[U]===M.textNode)&&(t+=r.textContent);return t}set textContent(t){let r=this[q];for(;r.length;)this.removeChild(r[0]);t&&this.appendChild(this[T].createTextNode(t))}get innerHTML(){return this.getHTML()}set innerHTML(t){let r=this[q];for(;r.length;)this.removeChild(r[0]);new $r(this[y]).parse(t,this)}get outerHTML(){return new Vi().serializeToString(this)}set outerHTML(t){let r=new $r(this[y]).parse(t)[q];this.replaceWith(...r)}get childElementCount(){return this[gt].length}get firstElementChild(){return this[gt][0]??null}get lastElementChild(){let t=this[gt];return t[t.length-1]??null}get slot(){return this.getAttributeNS(null,"slot")||""}set slot(t){this.setAttribute("slot",t)}getInnerHTML(t){let r=new Vi({allShadowRoots:!!t?.includeShadowRoots}),o="";for(let i of this[q])o+=r.serializeToString(i);return o}getHTML(t){let r=new Vi({serializableShadowRoots:!!t?.serializableShadowRoots,shadowRoots:t?.shadowRoots??null}),o="";for(let i of this[q])o+=r.serializeToString(i);return o}[(CA=tt,LA=dt,NA=et,TA=uc,AA=No,vA=U,EA=Vt,xA=Le,wA=qS,PA=WS,SA=kf,fA=Mf,gA=St,bA=hc,dA=Xr,cA=vu,hA=c,ht)](t=!1){let r=super[ht](t);r[tt]=this[tt],r[dt]=this[dt],r[et]=this[et],this[Le]?.[ka]&&(r[Le]=this[Le].cloneNode(t),r[Le][Aa]=r),r[St]=new Gn(r);for(let o of this[St][Y].values())r[St].setNamedItem(o.cloneNode(t));return r}remove(){Oi.remove(this)}replaceWith(...t){Oi.replaceWith(this,...t)}before(...t){Oi.before(this,...t)}after(...t){Oi.after(this,...t)}append(...t){ne.append(this,...t)}prepend(...t){ne.prepend(this,...t)}replaceChildren(...t){ne.replaceChildren(this,...t)}insertAdjacentElement(t,r){if(t==="beforebegin"){if(!this.parentElement)return null;this.parentElement.insertBefore(r,this)}else if(t==="afterbegin")this.insertBefore(r,this.firstChild);else if(t==="beforeend")this.appendChild(r);else if(t==="afterend"){if(!this.parentElement)return null;this.parentElement.insertBefore(r,this.nextSibling)}return r}insertAdjacentHTML(t,r){let o=new $r(this[y]).parse(r)[q];for(;o.length;)this.insertAdjacentElement(t,o[0])}insertAdjacentText(t,r){if(!r)return;let o=this[T].createTextNode(r);this.insertAdjacentElement(t,o)}setAttribute(t,r){if(pS.validateAttributeName(t,this[T][Oe],{method:"setAttribute",instance:"Element"}),t=String(t),this[et]===$t.html){let i=this[T].createAttribute(t);i[J]=String(r),this[St][Xi](i)}else{let i=t.split(":"),n=null;switch(i[0]){case"xmlns":n=!i[1]||i[1]==="xlink"?$t.xmlns:null;break;case"xlink":n=$t.xlink;break}let a=De.createNode(this[T],this[y].Attr);a[et]=n,a[nt]=t,a[dt]=n&&i[1]?i[1]:t,a[Vt]=n&&i[1]?i[0]:null,a[J]=String(r),this[St][Xi](a)}}setAttributeNS(t,r,o){let i=this[T].createAttributeNS(t,r);if(!t&&i[Vt])throw new this[y].DOMException("Failed to execute 'setAttributeNS' on 'Element': '' is an invalid namespace for attributes.",A.namespaceError);i[J]=String(o),this[St].setNamedItemNS(i)}getAttributeNames(){let t=[];for(let r of this[St][Y].values())t.push(r[nt]);return t}getAttribute(t){let r=this[St].getNamedItem(t);return r?r[J]:null}toggleAttribute(t,r){t=t.toLowerCase();let o=this[St].getNamedItem(t);return o?r===!0?!0:(this[St][ul](o),!1):r===!1?!1:(this.setAttribute(t,""),!0)}getAttributeNS(t,r){let o=this.getAttributeNodeNS(t,r);return o?o[J]:null}hasAttribute(t){return!!this.getAttributeNode(t)}hasAttributeNS(t,r){return this[St].getNamedItemNS(t,r)!==null}hasAttributes(){return this[St][Y].size>0}removeAttribute(t){let r=this[St].getNamedItem(t);r&&this[St][ul](r)}removeAttributeNS(t,r){let o=this[St].getNamedItemNS(t,r);o&&this[St][ul](o)}attachShadow(t){let r=this[y];if(!t)throw new r.TypeError("Failed to execute 'attachShadow' on 'Element': 1 argument required, but only 0 present.");if(!t.mode)throw new r.TypeError("Failed to execute 'attachShadow' on 'Element': Failed to read the 'mode' property from 'ShadowRootInit': Required member is undefined.");if(t.mode!=="open"&&t.mode!=="closed")throw new r.TypeError(`Failed to execute 'attachShadow' on 'Element': Failed to read the 'mode' property from 'ShadowRootInit': The provided value '${t.mode}' is not a valid enum value of type ShadowRootMode.`);if(this[Le])throw new r.DOMException("Failed to execute 'attachShadow' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree.");let o=De.createNode(this[T],this[y].ShadowRoot);return this[Le]=o,o[Aa]=this,o[ke]=t.mode,o[ka]=!!t.clonable,o[rm]=!!t.delegateFocus,o[sn]=!!t.serializable,o[xs]=t.slotAssignment==="manual"?"manual":"named",o[To](),this[Le]}toString(){return this.outerHTML}getBoundingClientRect(){return new is}getClientRects(){let t=new Om(h);return t.push(this.getBoundingClientRect()),t}matches(t){return!!yt.matches(this,t)}closest(t){let r=this;for(;r;){if(yt.matches(r,t))return r;r=r.parentElement}return null}querySelectorAll(t){return yt.querySelectorAll(this,t)}querySelector(t){return yt.querySelector(this,t)}getElementsByClassName(t){return ne.getElementsByClassName(this,t)}getElementsByTagName(t){return ne.getElementsByTagName(this,t)}getElementsByTagNameNS(t,r){return ne.getElementsByTagNameNS(this,t,r)}setAttributeNode(t){return this[St].setNamedItem(t)}setAttributeNodeNS(t){return this[St].setNamedItemNS(t)}getAttributeNode(t){return this[St].getNamedItem(t)}getAttributeNodeNS(t,r){return this[St].getNamedItemNS(t,r)}removeAttributeNode(t){if(t[At]!==this)throw new this[y].DOMException("Failed to execute 'removeAttributeNode' on 'Element': The node provided is owned by another element.");return this[St][ul](t),t}scroll(t,r){if(typeof t!="object"&&arguments.length===1)throw new this[y].TypeError("Failed to execute 'scroll' on 'Element': The provided value is not of type 'ScrollToOptions'.");let o=typeof t=="object"?t:{left:t,top:r};if(o.behavior==="smooth")this[y].setTimeout(()=>{if(o.top!==void 0){let i=Number(o.top);this.scrollTop=isNaN(i)?0:i}if(o.left!==void 0){let i=Number(o.left);this.scrollLeft=isNaN(i)?0:i}});else{if(o.top!==void 0){let i=Number(o.top);this.scrollTop=isNaN(i)?0:i}if(o.left!==void 0){let i=Number(o.left);this.scrollLeft=isNaN(i)?0:i}}}scrollTo(t,r){if(typeof t!="object"&&arguments.length===1)throw new this[y].TypeError("Failed to execute 'scrollTo' on 'Element': The provided value is not of type 'ScrollToOptions'.");this.scroll(t,r)}scrollBy(t,r){if(typeof t!="object"&&arguments.length===1)throw new this[y].TypeError("Failed to execute 'scrollBy' on 'Element': The provided value is not of type 'ScrollToOptions'.");let o=typeof t=="object"?t:{left:t,top:r};this.scroll({left:this.scrollLeft+(o.left??0),top:this.scrollTop+(o.top??0),behavior:o.behavior})}scrollIntoView(t){}[Et](t,r=!1){let o=super[Et](t,r);return F(this,gi,fb).call(this,t),o}[Rr](t){let r=super[Rr](t);return F(this,gi,fb).call(this,t),r}[lo](t,r,o=!1){let i=super[lo](t,r,o);return F(this,gi,fb).call(this,t),i}[je](t,r){if(!t[nt])return;let o=r?r[J]:null;if(t[nt]==="slot"&&this[W]&&this[W][Le]){let i=this[W][Le];if(i&&t[J]!==o){if(o!==null&&r){let a=i.querySelector(`slot[name="${r[J]}"]`);a&&a.dispatchEvent(new R("slotchange",{bubbles:!0}))}else{let a=i.querySelector("slot:not([name])");a&&a.dispatchEvent(new R("slotchange",{bubbles:!0}))}let n=i.querySelector(`slot[name="${t[J]}"]`);n&&n.dispatchEvent(new R("slotchange",{bubbles:!0}))}}this[t[nt]]!==void 0&&t[nt][0]==="o"&&t[nt][1]==="n"&&this[c].delete(t[nt]),t[nt]==="id"&&this[st]&&(r?.[J]&&F(this,gi,hS).call(this,r[J]),F(this,gi,XP).call(this,t[J])),this[tn](new jo({type:es.attributes,target:this,attributeName:t[nt],oldValue:o}))}[Ur](t){if(t[nt]==="slot"&&this[W]&&this[W][Le]){let r=this[W][Le],o=r.querySelector(`slot[name="${t[J]}"]`),i=r.querySelector("slot:not([name])");o&&o.dispatchEvent(new R("slotchange",{bubbles:!0})),i&&i.dispatchEvent(new R("slotchange",{bubbles:!0}))}t[nt]==="id"&&this[st]&&F(this,gi,hS).call(this,t[J]),this[tn](new jo({type:es.attributes,target:this,attributeName:t[nt],oldValue:t[J]}))}[kr](){let t=this.getAttribute("id");if(t&&F(this,gi,XP).call(this,t),super[kr](),this[y][Oa].enqueueReaction(this,"connectedCallback"),this[Le])for(let r of this[q])F(this,gi,fb).call(this,r)}[Mr](){super[Mr]();let t=this.getAttribute("id");t&&F(this,gi,hS).call(this,t),this[y][Oa].enqueueReaction(this,"disconnectedCallback")}};gi=new WeakSet,XP=function(t){if(!t)return;let r=this[T],o=this[y];if(this[Ve]&&this[Ve]!==r)return;r[on].has(t)||r[on].set(t,{elements:[],htmlCollection:null});let i=r[on].get(t);if(!i)return;let n=this[Gt]||this;i.elements.push(n),i.elements.length>1?(i.htmlCollection||(i.htmlCollection=new Ae(h,()=>i.elements)),(!(t in o)||o[t]===i.elements[0])&&(o[t]=i.htmlCollection)):(!(t in o)||i.htmlCollection!==null&&o[t]===i.htmlCollection)&&(o[t]=n)},hS=function(t){if(!t)return;let r=this[T],o=this[y];if(this[Ve]&&this[Ve]!==r)return;let i=r[on].get(t);if(!i)return;let n=this[Gt]||this,a=i.elements.indexOf(n);a!==-1&&i.elements.splice(a,1),i.elements.length===1?(o[t]===i.htmlCollection&&(o[t]=i.elements[0]),i.htmlCollection=null):i.elements.length||(r[on].delete(t),(o[t]===n||o[t]===i.htmlCollection)&&delete o[t])},fb=function(t){let r=this[Le];if(!r||!this[st])return;let o=t.getAttribute?t.getAttribute("slot"):null;if(o){let i=r.querySelector(`slot[name="${o}"]`);i&&i.dispatchEvent(new R("slotchange",{bubbles:!0}))}else if(t[U]!==M.commentNode){let i=r.querySelector("slot:not([name])");i&&i.dispatchEvent(new R("slotchange",{bubbles:!0}))}},s(dr,CA,null),s(dr,LA,null),s(dr,NA,null);var Fl=class{static blur(e){let t=e[Gt]||e,r=t[T];if(r[$e]!==t||!t[st]||t.disabled)return;let o=r[Sa]??null;r[$e]=null,r[ao](),t.dispatchEvent(new Ns("blur",{relatedTarget:o,bubbles:!1,composed:!0,cancelable:!0})),t.dispatchEvent(new Ns("focusout",{relatedTarget:o,bubbles:!0,composed:!0,cancelable:!0}))}static focus(e){let t=e[Gt]||e,r=t[T];if(r[$e]===t||!t[st]||t.disabled)return;r[Sa]=t;let o=r[$e];r[$e]!==null&&r[$e].blur(),r[Sa]=null,r[$e]=t,r[ao](),t.dispatchEvent(new Ns("focus",{relatedTarget:o,bubbles:!1,composed:!0})),t.dispatchEvent(new Ns("focusin",{relatedTarget:o,bubbles:!0,composed:!0}))}};var Rs=class{static kebabToCamelCase(e){let t=e.split("-");for(let r=0,o=t.length;r<o;r++)t[r]=r>0?t[r].charAt(0).toUpperCase()+t[r].slice(1):t[r];return t.join("")}static camelCaseToKebab(e){return e.toString().replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,r)=>(r?"-":"")+t.toLowerCase())}};var Vm=class{constructor(e,t){if(e!==h)throw new TypeError("Illegal constructor");return new Proxy(this,{get(r,o){let i=t.getAttribute("data-"+Rs.camelCaseToKebab(o));if(i!==null)return i},set(r,o,i){return t.setAttribute("data-"+Rs.camelCaseToKebab(o),i),!0},deleteProperty(r,o){return t.removeAttribute("data-"+Rs.camelCaseToKebab(o)),!0},ownKeys(r){let o=[];for(let i of t[St][oi].values())i[0][nt].startsWith("data-")&&o.push(Rs.kebabToCamelCase(i[0][nt].replace("data-","")));return o},has(r,o){return t.hasAttribute("data-"+Rs.camelCaseToKebab(o))},defineProperty(r,o,i){return i.value===void 0?!1:(t.setAttribute("data-"+Rs.camelCaseToKebab(o),i.value),!0)},getOwnPropertyDescriptor(r,o){let i=t.getAttribute("data-"+Rs.camelCaseToKebab(o));if(i)return{value:i,writable:!0,enumerable:!0,configurable:!0}}})}};var kA,MA,RA,OA,VA,IA,FA,DA,_A,BA,UA,Os,cS,GA,B=class extends dr{constructor(){super(...arguments);x(this,cS);s(this,UA,"");s(this,BA,0);s(this,_A,0);s(this,DA,0);s(this,FA,0);s(this,IA,0);s(this,VA,0);s(this,OA,0);s(this,RA,0);s(this,MA,null);s(this,kA,null);x(this,Os,null)}get oncancel(){return S.getEventListener(this,"oncancel")}set oncancel(t){this[c].set("oncancel",t)}get onerror(){return S.getEventListener(this,"onerror")}set onerror(t){this[c].set("onerror",t)}get onscroll(){return S.getEventListener(this,"onscroll")}set onscroll(t){this[c].set("onscroll",t)}get onselect(){return S.getEventListener(this,"onselect")}set onselect(t){this[c].set("onselect",t)}get onwheel(){return S.getEventListener(this,"onwheel")}set onwheel(t){this[c].set("onwheel",t)}get oncopy(){return S.getEventListener(this,"oncopy")}set oncopy(t){this[c].set("oncopy",t)}get oncut(){return S.getEventListener(this,"oncut")}set oncut(t){this[c].set("oncut",t)}get onpaste(){return S.getEventListener(this,"onpaste")}set onpaste(t){this[c].set("onpaste",t)}get oncompositionend(){return S.getEventListener(this,"oncompositionend")}set oncompositionend(t){this[c].set("oncompositionend",t)}get oncompositionstart(){return S.getEventListener(this,"oncompositionstart")}set oncompositionstart(t){this[c].set("oncompositionstart",t)}get oncompositionupdate(){return S.getEventListener(this,"oncompositionupdate")}set oncompositionupdate(t){this[c].set("oncompositionupdate",t)}get onblur(){return S.getEventListener(this,"onblur")}set onblur(t){this[c].set("onblur",t)}get onfocus(){return S.getEventListener(this,"onfocus")}set onfocus(t){this[c].set("onfocus",t)}get onfocusin(){return S.getEventListener(this,"onfocusin")}set onfocusin(t){this[c].set("onfocusin",t)}get onfocusout(){return S.getEventListener(this,"onfocusout")}set onfocusout(t){this[c].set("onfocusout",t)}get onkeydown(){return S.getEventListener(this,"onkeydown")}set onkeydown(t){this[c].set("onkeydown",t)}get onkeyup(){return S.getEventListener(this,"onkeyup")}set onkeyup(t){this[c].set("onkeyup",t)}get onauxclick(){return S.getEventListener(this,"onauxclick")}set onauxclick(t){this[c].set("onauxclick",t)}get onclick(){return S.getEventListener(this,"onclick")}set onclick(t){this[c].set("onclick",t)}get oncontextmenu(){return S.getEventListener(this,"oncontextmenu")}set oncontextmenu(t){this[c].set("oncontextmenu",t)}get ondblclick(){return S.getEventListener(this,"ondblclick")}set ondblclick(t){this[c].set("ondblclick",t)}get onmousedown(){return S.getEventListener(this,"onmousedown")}set onmousedown(t){this[c].set("onmousedown",t)}get onmouseenter(){return S.getEventListener(this,"onmouseenter")}set onmouseenter(t){this[c].set("onmouseenter",t)}get onmouseleave(){return S.getEventListener(this,"onmouseleave")}set onmouseleave(t){this[c].set("onmouseleave",t)}get onmousemove(){return S.getEventListener(this,"onmousemove")}set onmousemove(t){this[c].set("onmousemove",t)}get onmouseout(){return S.getEventListener(this,"onmouseout")}set onmouseout(t){this[c].set("onmouseout",t)}get onmouseover(){return S.getEventListener(this,"onmouseover")}set onmouseover(t){this[c].set("onmouseover",t)}get onmouseup(){return S.getEventListener(this,"onmouseup")}set onmouseup(t){this[c].set("onmouseup",t)}get ontouchcancel(){return S.getEventListener(this,"ontouchcancel")}set ontouchcancel(t){this[c].set("ontouchcancel",t)}get ontouchend(){return S.getEventListener(this,"ontouchend")}set ontouchend(t){this[c].set("ontouchend",t)}get ontouchmove(){return S.getEventListener(this,"ontouchmove")}set ontouchmove(t){this[c].set("ontouchmove",t)}get ontouchstart(){return S.getEventListener(this,"ontouchstart")}set ontouchstart(t){this[c].set("ontouchstart",t)}get oninvalid(){return S.getEventListener(this,"oninvalid")}set oninvalid(t){this[c].set("oninvalid",t)}get onanimationcancel(){return S.getEventListener(this,"onanimationcancel")}set onanimationcancel(t){this[c].set("onanimationcancel",t)}get onanimationend(){return S.getEventListener(this,"onanimationend")}set onanimationend(t){this[c].set("onanimationend",t)}get onanimationiteration(){return S.getEventListener(this,"onanimationiteration")}set onanimationiteration(t){this[c].set("onanimationiteration",t)}get onanimationstart(){return S.getEventListener(this,"onanimationstart")}set onanimationstart(t){this[c].set("onanimationstart",t)}get onbeforeinput(){return S.getEventListener(this,"onbeforeinput")}set onbeforeinput(t){this[c].set("onbeforeinput",t)}get oninput(){return S.getEventListener(this,"oninput")}set oninput(t){this[c].set("oninput",t)}get onchange(){return S.getEventListener(this,"onchange")}set onchange(t){this[c].set("onchange",t)}get ongotpointercapture(){return S.getEventListener(this,"ongotpointercapture")}set ongotpointercapture(t){this[c].set("ongotpointercapture",t)}get onlostpointercapture(){return S.getEventListener(this,"onlostpointercapture")}set onlostpointercapture(t){this[c].set("onlostpointercapture",t)}get onpointercancel(){return S.getEventListener(this,"onpointercancel")}set onpointercancel(t){this[c].set("onpointercancel",t)}get onpointerdown(){return S.getEventListener(this,"onpointerdown")}set onpointerdown(t){this[c].set("onpointerdown",t)}get onpointerenter(){return S.getEventListener(this,"onpointerenter")}set onpointerenter(t){this[c].set("onpointerenter",t)}get onpointerleave(){return S.getEventListener(this,"onpointerleave")}set onpointerleave(t){this[c].set("onpointerleave",t)}get onpointermove(){return S.getEventListener(this,"onpointermove")}set onpointermove(t){this[c].set("onpointermove",t)}get onpointerout(){return S.getEventListener(this,"onpointerout")}set onpointerout(t){this[c].set("onpointerout",t)}get onpointerover(){return S.getEventListener(this,"onpointerover")}set onpointerover(t){this[c].set("onpointerover",t)}get onpointerup(){return S.getEventListener(this,"onpointerup")}set onpointerup(t){this[c].set("onpointerup",t)}get ontransitioncancel(){return S.getEventListener(this,"ontransitioncancel")}set ontransitioncancel(t){this[c].set("ontransitioncancel",t)}get ontransitionend(){return S.getEventListener(this,"ontransitionend")}set ontransitionend(t){this[c].set("ontransitionend",t)}get ontransitionrun(){return S.getEventListener(this,"ontransitionrun")}set ontransitionrun(t){this[c].set("ontransitionrun",t)}get ontransitionstart(){return S.getEventListener(this,"ontransitionstart")}set ontransitionstart(t){this[c].set("ontransitionstart",t)}get accessKey(){return this[Su]}set accessKey(t){this[Su]=t}get contentEditable(){let t=String(this.getAttribute("contentEditable")).toLowerCase();switch(t){case"false":case"true":case"plaintext-only":return t;default:return"inherit"}}set contentEditable(t){switch(t=String(t).toLowerCase(),t){case"false":case"true":case"plaintext-only":case"inherit":this.setAttribute("contentEditable",t);break;default:throw new this[y].SyntaxError(`Failed to set the 'contentEditable' property on 'HTMLElement': The value provided ('${t}') is not one of 'true', 'false', 'plaintext-only', or 'inherit'.`)}}get isContentEditable(){let t=this.contentEditable;return t==="true"||t==="plaintext-only"?!0:t==="inherit"?this[W]?.isContentEditable??!1:!1}get offsetHeight(){return this[jS]}get offsetWidth(){return this[zS]}get offsetLeft(){return this[XS]}get offsetTop(){return this[YS]}get clientHeight(){return this[KS]}get clientWidth(){return this[JS]}get clientLeft(){return this[ZS]}get clientTop(){return this[QS]}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let r=Number(t);return isNaN(r)?-1:r}return-1}set tabIndex(t){let r=Number(t);isNaN(r)?this.setAttribute("tabindex","0"):this.setAttribute("tabindex",String(r))}get innerText(){if(!this[st])return this.textContent;let t="";for(let r of this[q])if(r[U]===M.elementNode){let o=r,i=this[y].getComputedStyle(o);if(o[tt]!=="SCRIPT"&&o[tt]!=="STYLE"&&o[tt]!=="svg"){let n=i.display;if(n!=="none"){let a=i.textTransform,m=o.innerText;(n==="block"||n==="flex")&&t&&m&&(t+=`
95
+ `);let p=m;switch(a){case"uppercase":p=p.toUpperCase();break;case"lowercase":p=p.toLowerCase();break;case"capitalize":p=p.replace(/(^|\s)\S/g,b=>b.toUpperCase());break}t+=p}}}else r[U]===M.textNode&&(t+=r.textContent.replace(/[\n\r]/,""));return t}set innerText(t){let r=this[q];for(;r.length;)this.removeChild(r[0]);let o=t.split(/[\n\r]/),i=this[T];for(let n=0,a=o.length;n<a;n++)n!==0&&this.appendChild(i.createElement("br")),this.appendChild(i.createTextNode(o[n]))}get outerText(){return this.innerText}set outerText(t){if(!this[W])throw new this[y].DOMException("Failed to set the 'outerHTML' property on 'Element': This element has no parent node.");let r=t.split(/[\n\r]/);for(let o=0,i=r.length;o<i;o++)o!==0&&this[W].insertBefore(this[T].createElement("br"),this),this[W].insertBefore(this[T].createTextNode(r[o]),this);this[W].removeChild(this)}get style(){return this[Ee]||(this[Ee]=new uo(h,this[y],{element:this})),this[Ee]}set style(t){this.style.cssText=typeof t=="string"?t:""}get dataset(){var t;return this[t=mP]??(this[t]=new Vm(h,this))}get dir(){return this.getAttribute("dir")||""}set dir(t){this.setAttribute("dir",t)}get hidden(){return this.getAttribute("hidden")!==null}set hidden(t){t?this.setAttribute("hidden",""):this.removeAttribute("hidden")}get inert(){return this.getAttribute("inert")!==null}set inert(t){t?this.setAttribute("inert",""):this.removeAttribute("inert")}get lang(){return this.getAttribute("lang")||""}set lang(t){this.setAttribute("lang",t)}get title(){return this.getAttribute("title")||""}set title(t){this.setAttribute("title",t)}get popover(){switch(this.getAttribute("popover")){case null:return null;case"":case"auto":return"auto";case"manual":return"manual";default:return"manual"}}set popover(t){if(t===null){this.removeAttribute("popover");return}this.setAttribute("popover",t)}click(){this.dispatchEvent(new ty("click",{bubbles:!0,composed:!0,cancelable:!0}))}blur(){Fl.blur(this)}focus(){Fl.focus(this)}[(UA=Su,BA=jS,_A=zS,DA=XS,FA=YS,IA=KS,VA=JS,OA=ZS,RA=QS,MA=Ee,kA=mP,ht)](t=!1){let r=super[ht](t);return r[Su]=this[Su],r}[kr](){let t=this[y],r=this[dt],o=t.customElements[gs];if(this.constructor===t.HTMLElement&&r.includes("-")&&o&&!u(this,Os)){let i=F(this,cS,GA).bind(this),n=o.get(r);n?n.unshift(i):o.set(r,[i]),w(this,Os,i)}super[kr]()}[Mr](){let t=this[y],r=this[dt],o=t.customElements[gs];if(this.constructor===t.HTMLElement&&r.includes("-")&&o){let i=o.get(r);if(i&&u(this,Os)){let n=i.indexOf(u(this,Os));n!==-1&&i.splice(n,1),i.length||o.delete(r),w(this,Os,null)}}super[Mr]()}[je](t,r){super[je](t,r),this[y][Oa].enqueueReaction(this,"attributeChangedCallback",[t.name,r?.value??null,t.value])}[Ur](t){super[Ur](t),this[y][Oa].enqueueReaction(this,"attributeChangedCallback",[t.name,t.value,null])}};Os=new WeakMap,cS=new WeakSet,GA=function(){if(!this[W])return;let t=this[y],r=this[dt],o=this[T].createElement(r),i=o[$];o[q]=this[q],o[gt]=this[gt],o[nl]=null,o[Xr]=null,o[st]=this[st],o[Ve]=this[Ve],o[Bt]=this[Bt],o[W]=this[W],o[qe]=this[qe],o[Pr]=this[Pr],o[ii]=this[ii],o[No]=this[No],o[$]=this[$],o[rr]=this[rr],o[St][pl]=this[St][pl],o[St][oi]=this[St][oi],o[St][Y]=this[St][Y];for(let b of o[St][Y].values())b[At]=o;this[ao](),this[q]=[],this[gt]=[],this[nl]=null,this[Xr]=null,this[W]=null,this[Ve]=null,this[Bt]=null,this[qe]=null,this[Pr]=null,this[ii]=[],this[No]=null,this[$]=i,this[rr]=[],this[St][pl]=new Map,this[St][oi]=new Map,this[St][Y]=new Map;for(let b of o[q])b[W]=o;let n=o[W][q],a=o[W][gt];n[n.indexOf(this)]=o,a[a.indexOf(this)]=o;let m=t.customElements[gs],p=m.get(r);if(p&&u(this,Os)){let b=p.indexOf(u(this,Os));b!==-1&&p.splice(b,1),p.length||m.delete(r),w(this,Os,null)}o[st]&&(o[Le]&&(o[Le][st]=!0),o[kr]())},s(B,"observedAttributes");var Im=class{constructor(e){s(this,"element");this.element=e}getOrigin(){try{return new URL(this.getHref()).origin}catch{return""}}getHref(){if(!this.element.hasAttribute("href"))return"";try{return new URL(this.element.getAttribute("href"),this.element[T].location.href).href}catch{return this.element.getAttribute("href")}}setHref(e){this.element.setAttribute("href",e)}getProtocol(){try{return new URL(this.getHref()).protocol}catch{return""}}setProtocol(e){let t;try{t=new URL(this.getHref())}catch{return}t.protocol=e,this.element.setAttribute("href",t.href)}getUsername(){try{return new URL(this.getHref()).username}catch{return""}}setUsername(e){let t;try{t=new URL(this.getHref())}catch{return}t.username=e,this.element.setAttribute("href",t.href)}getPassword(){try{return new URL(this.getHref()).password}catch{return""}}setPassword(e){let t;try{t=new URL(this.getHref())}catch{return}t.password=e,this.element.setAttribute("href",t.href)}getHost(){try{return new URL(this.getHref()).host}catch{return""}}setHost(e){let t;try{t=new URL(this.getHref())}catch{return}t.host=e,this.element.setAttribute("href",t.href)}getHostname(){try{return new URL(this.getHref()).hostname}catch{return""}}setHostname(e){let t;try{t=new URL(this.getHref())}catch{return}t.hostname=e,this.element.setAttribute("href",t.href)}getPort(){try{return new URL(this.getHref()).port}catch{return""}}setPort(e){let t;try{t=new URL(this.getHref())}catch{return}t.port=e,this.element.setAttribute("href",t.href)}getPathname(){try{return new URL(this.getHref()).pathname}catch{return""}}setPathname(e){let t;try{t=new URL(this.getHref())}catch{return}t.pathname=e,this.element.setAttribute("href",t.href)}getSearch(){try{return new URL(this.getHref()).search}catch{return""}}setSearch(e){let t;try{t=new URL(this.getHref())}catch{return}t.search=e,this.element.setAttribute("href",t.href)}getHash(){let e=this.element.getAttribute("href");if(e?.[0]==="#")return e;let t;try{t=new URL(this.getHref())}catch{return""}return t.hash}setHash(e){let t;try{t=new URL(this.getHref())}catch{return}t.hash=e,this.element.setAttribute("href",t.href)}};var HA,$A,Je,tp=class extends($A=B,HA=Lo,$A){constructor(){super(...arguments);s(this,HA,null);x(this,Je,new Im(this))}get download(){return this.getAttribute("download")||""}set download(t){this.setAttribute("download",t)}get hash(){return u(this,Je).getHash()}set hash(t){u(this,Je).setHash(t)}get href(){return u(this,Je).getHref()}set href(t){u(this,Je).setHref(t)}get hreflang(){return this.getAttribute("hreflang")||""}set hreflang(t){this.setAttribute("hreflang",t)}get origin(){return u(this,Je).getOrigin()}get ping(){return this.getAttribute("ping")||""}set ping(t){this.setAttribute("ping",t)}get protocol(){return u(this,Je).getProtocol()}set protocol(t){u(this,Je).setProtocol(t)}get username(){return u(this,Je).getUsername()}set username(t){u(this,Je).setUsername(t)}get password(){return u(this,Je).getPassword()}set password(t){u(this,Je).setPassword(t)}get pathname(){return u(this,Je).getPathname()}set pathname(t){u(this,Je).setPathname(t)}get port(){return u(this,Je).getPort()}set port(t){u(this,Je).setPort(t)}get host(){return u(this,Je).getHost()}set host(t){u(this,Je).setHost(t)}get hostname(){return u(this,Je).getHostname()}set hostname(t){u(this,Je).setHostname(t)}get referrerPolicy(){return this.getAttribute("referrerPolicy")||""}set referrerPolicy(t){this.setAttribute("referrerPolicy",t)}get rel(){return this.getAttribute("rel")||""}set rel(t){this.setAttribute("rel",t)}get relList(){return this[Lo]||(this[Lo]=new ho(h,this,"rel")),this[Lo]}set relList(t){this.setAttribute("rel",t)}get search(){return u(this,Je).getSearch()}set search(t){u(this,Je).setSearch(t)}get target(){return this.getAttribute("target")||""}set target(t){this.setAttribute("target",t)}get text(){return this.textContent}set text(t){this.textContent=t}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t)}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let r=Number(t);return isNaN(r)?0:r}return 0}set tabIndex(t){super.tabIndex=t}toString(){return this.href}dispatchEvent(t){let r=super.dispatchEvent(t);if(!t[Gr]&&t.type==="click"&&t instanceof sr&&(t.eventPhase===be.none||t.eventPhase===be.bubbling)){let o=this.href;if(o){let i=[];this.relList.contains("noreferrer")&&i.push("noreferrer"),this.relList.contains("noopener")&&i.push("noopener"),this[y].open(o,this.target||"_self",i.join(",")),this[y].closed&&t.stopImmediatePropagation()}}return r}};Je=new WeakMap;var qA,WA,Ze,ep=class extends(WA=B,qA=Lo,WA){constructor(){super(...arguments);s(this,qA,null);x(this,Ze,new Im(this))}get alt(){return this.getAttribute("alt")||""}set alt(t){this.setAttribute("alt",t)}get coords(){return this.getAttribute("coords")||""}set coords(t){this.setAttribute("coords",t)}get shape(){return this.getAttribute("shape")||""}set shape(t){this.setAttribute("shape",t)}get download(){return this.getAttribute("download")||""}set download(t){this.setAttribute("download",t)}get referrerPolicy(){return this.getAttribute("referrerPolicy")||""}set referrerPolicy(t){this.setAttribute("referrerPolicy",t)}get ping(){return this.getAttribute("ping")||""}set ping(t){this.setAttribute("ping",t)}get rel(){return this.getAttribute("rel")||""}set rel(t){this.setAttribute("rel",t)}get relList(){return this[Lo]||(this[Lo]=new ho(h,this,"rel")),this[Lo]}set relList(t){this.setAttribute("rel",t)}get target(){return this.getAttribute("target")||""}set target(t){this.setAttribute("target",t)}get origin(){return u(this,Ze).getOrigin()}get href(){return u(this,Ze).getHref()}set href(t){u(this,Ze).setHref(t)}get protocol(){return u(this,Ze).getProtocol()}set protocol(t){u(this,Ze).setProtocol(t)}get username(){return u(this,Ze).getUsername()}set username(t){u(this,Ze).setUsername(t)}get password(){return u(this,Ze).getPassword()}set password(t){u(this,Ze).setPassword(t)}get host(){return u(this,Ze).getHost()}set host(t){u(this,Ze).setHost(t)}get hostname(){return u(this,Ze).getHostname()}set hostname(t){u(this,Ze).setHostname(t)}get port(){return u(this,Ze).getPort()}set port(t){u(this,Ze).setPort(t)}get pathname(){return u(this,Ze).getPathname()}set pathname(t){u(this,Ze).setPathname(t)}get search(){return u(this,Ze).getSearch()}set search(t){u(this,Ze).setSearch(t)}get hash(){return u(this,Ze).getHash()}set hash(t){u(this,Ze).setHash(t)}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let r=Number(t);return isNaN(r)?0:r}return 0}set tabIndex(t){super.tabIndex=t}toString(){return this.href}dispatchEvent(t){let r=super.dispatchEvent(t);if(!t[Gr]&&t[Xt]==="click"&&t[to]===be.none&&t instanceof sr){let o=this.href;o&&(this[y].open(o,this.target||"_self"),this[y].closed&&t.stopImmediatePropagation())}return r}};Ze=new WeakMap;var Dl=class{constructor(e){if(e!==h)throw new TypeError("Illegal constructor")}get length(){return 0}get[Symbol.toStringTag](){return"TimeRanges"}toLocaleString(){return"[object TimeRanges]"}toString(){return"[object TimeRanges]"}start(e){return 0}end(e){return 0}};import S2 from"crypto";var rp=class extends R{constructor(t,r=null){super(t,r);s(this,"track");this.track=r?.track??null}};var jA,zA,by=class l extends(zA=_t,jA=Ss,zA){constructor(t){super();s(this,"active",!0);s(this,"id",S2.randomUUID());s(this,"onaddtrack",null);s(this,"onremovetrack",null);s(this,jA,[]);if(!this[y])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);t!==void 0&&(this[Ss]=t instanceof l?t[Ss].slice():t)}addTrack(t){this[Ss].includes(t)||(this[Ss].push(t),this.dispatchEvent(new rp("addtrack",{track:t})))}clone(){return new this.constructor(this)}getAudioTracks(){return this[Ss].filter(t=>t.kind==="audio")}getTrackById(t){for(let r of this[Ss])if(r.id===t)return r;return null}getVideoTracks(){return this[Ss].filter(t=>t.kind==="video")}removeTrack(t){let r=this[Ss].indexOf(t);r!==-1&&(this[Ss].splice(r,1),this.dispatchEvent(new rp("removetrack",{track:t})))}};var YP;(function(l){l.subtitles="subtitles",l.captions="captions",l.descriptions="descriptions",l.chapters="chapters",l.metadata="metadata"})(YP||(YP={}));var Hn=YP;var XA,YA,KA,JA,ZA,QA,tT,eT,rT,oT,iT,sT,nT,lT,aT,yT,mT,uT,pT,hT,cT,dT,bT,$n=class extends B{constructor(){super(...arguments);s(this,bT,1);s(this,dT,!0);s(this,cT,0);s(this,hT,1);s(this,pT,1);s(this,uT,!1);s(this,mT,!1);s(this,yT,!0);s(this,aT,new Dl(h));s(this,lT,NaN);s(this,nT,null);s(this,sT,!1);s(this,iT,0);s(this,oT,0);s(this,rT,!1);s(this,eT,new Dl(h));s(this,tT,"");s(this,QA,new Dl(h));s(this,ZA,new this[y].RemotePlayback);s(this,JA,null);s(this,KA,null);s(this,YA,null);s(this,XA,[])}get onabort(){return S.getEventListener(this,"onabort")}set onabort(t){this[c].set("onabort",t)}get oncanplay(){return S.getEventListener(this,"oncanplay")}set oncanplay(t){this[c].set("oncanplay",t)}get oncanplaythrough(){return S.getEventListener(this,"oncanplaythrough")}set oncanplaythrough(t){this[c].set("oncanplaythrough",t)}get ondurationchange(){return S.getEventListener(this,"ondurationchange")}set ondurationchange(t){this[c].set("ondurationchange",t)}get onemptied(){return S.getEventListener(this,"onemptied")}set onemptied(t){this[c].set("onemptied",t)}get onended(){return S.getEventListener(this,"onended")}set onended(t){this[c].set("onended",t)}get onloadeddata(){return S.getEventListener(this,"onloadeddata")}set onloadeddata(t){this[c].set("onloadeddata",t)}get onloadedmetadata(){return S.getEventListener(this,"onloadedmetadata")}set onloadedmetadata(t){this[c].set("onloadedmetadata",t)}get onloadstart(){return S.getEventListener(this,"onloadstart")}set onloadstart(t){this[c].set("onloadstart",t)}get onpause(){return S.getEventListener(this,"onpause")}set onpause(t){this[c].set("onpause",t)}get onplay(){return S.getEventListener(this,"onplay")}set onplay(t){this[c].set("onplay",t)}get onplaying(){return S.getEventListener(this,"onplaying")}set onplaying(t){this[c].set("onplaying",t)}get onprogress(){return S.getEventListener(this,"onprogress")}set onprogress(t){this[c].set("onprogress",t)}get onratechange(){return S.getEventListener(this,"onratechange")}set onratechange(t){this[c].set("onratechange",t)}get onresize(){return S.getEventListener(this,"onresize")}set onresize(t){this[c].set("onresize",t)}get onseeked(){return S.getEventListener(this,"onseeked")}set onseeked(t){this[c].set("onseeked",t)}get onseeking(){return S.getEventListener(this,"onseeking")}set onseeking(t){this[c].set("onseeking",t)}get onstalled(){return S.getEventListener(this,"onstalled")}set onstalled(t){this[c].set("onstalled",t)}get onsuspend(){return S.getEventListener(this,"onsuspend")}set onsuspend(t){this[c].set("onsuspend",t)}get ontimeupdate(){return S.getEventListener(this,"ontimeupdate")}set ontimeupdate(t){this[c].set("ontimeupdate",t)}get onvolumechange(){return S.getEventListener(this,"onvolumechange")}set onvolumechange(t){this[c].set("onvolumechange",t)}get onwaiting(){return S.getEventListener(this,"onwaiting")}set onwaiting(t){this[c].set("onwaiting",t)}get buffered(){return this[oP]}get duration(){return this[iP]}get error(){return this[pr]}get ended(){return this[sP]}get networkState(){return this[nP]}get readyState(){return this[va]}get remote(){return this[uP]}get seeking(){return this[lP]}get seekable(){return this[aP]}get sinkId(){return this[jf]}get played(){return this[yP]}get autoplay(){return this.getAttribute("autoplay")!==null}set autoplay(t){t?this.setAttribute("autoplay",""):this.removeAttribute("autoplay")}get controls(){return this.getAttribute("controls")!==null}set controls(t){t?this.setAttribute("controls",""):this.removeAttribute("controls")}get loop(){return this.getAttribute("loop")!==null}set loop(t){t?this.setAttribute("loop",""):this.removeAttribute("loop")}get preload(){return this.getAttribute("preload")||"auto"}set preload(t){this.setAttribute("preload",t)}get src(){if(!this.hasAttribute("src"))return"";try{return new URL(this.getAttribute("src"),this[T].location.href).href}catch{return this.getAttribute("src")}}set src(t){this.setAttribute("src",t),t&&(this.dispatchEvent(new R("canplay",{bubbles:!1,cancelable:!1})),this.dispatchEvent(new R("durationchange",{bubbles:!1,cancelable:!1})))}get controlsList(){return this[Ec]===null&&(this[Ec]=new ho(h,this,"controlslist")),this[Ec]}set controlsList(t){this.setAttribute("controlslist",t)}get mediaKeys(){return this[Wf]}get muted(){return this[Pu]?this[Pu]:this[tm]?!1:this.getAttribute("muted")!==null}set muted(t){this[Pu]=!!t,!t&&!this[tm]?this.removeAttribute("muted"):this.setAttribute("muted","")}get defaultMuted(){return this[tm]}set defaultMuted(t){this[tm]=!!t,!this[tm]&&!this[Pu]?this.removeAttribute("muted"):this.setAttribute("muted","")}get disableRemotePlayback(){return this.getAttribute("disableremoteplayback")!==null}set disableRemotePlayback(t){t?this.setAttribute("disableremoteplayback",""):this.removeAttribute("disableremoteplayback")}get srcObject(){return this[zf]}set srcObject(t){if(t!==null&&!(t instanceof by))throw new this[y].TypeError("Failed to set the 'srcObject' property on 'HTMLMediaElement': The provided value is not of type 'MediaStream'.");this[zf]=t}get textTracks(){let t=[];for(let r of this[Bf])t.push(r);for(let r of this.querySelectorAll("track")[Y])t.push(r.track);return new this[y].TextTrackList(h,t)}get currentSrc(){let t=this.src;if(t)return t;let r=this.querySelector("source");return r?r.src:""}get volume(){return this[Vf]}set volume(t){let r=Number(t);if(isNaN(r))throw new this[y].TypeError("Failed to set the 'volume' property on 'HTMLMediaElement': The provided double value is non-finite.");if(r<0||r>1)throw new this[y].DOMException(`Failed to set the 'volume' property on 'HTMLMediaElement': The volume provided (${r}) is outside the range [0, 1].`,A.indexSizeError);this[Vf]=r}get crossOrigin(){let t=this.getAttribute("crossorigin");return t==="use-credentials"?"use-credentials":t!==null?"anonymous":null}set crossOrigin(t){this.setAttribute("crossorigin",t)}get currentTime(){return this[If]}set currentTime(t){let r=Number(t);if(isNaN(r))throw new this[y].TypeError("Failed to set the 'currentTime' property on 'HTMLMediaElement': The provided double value is non-finite.");this[If]=r}get playbackRate(){return this[Ff]}set playbackRate(t){let r=Number(t);if(isNaN(r))throw new this[y].TypeError("Failed to set the 'playbackRate' property on 'HTMLMediaElement': The provided double value is non-finite.");this[Ff]=r}get defaultPlaybackRate(){return this[Df]}set defaultPlaybackRate(t){let r=Number(t);if(isNaN(r))throw new this[y].TypeError("Failed to set the 'defaultPlaybackRate' property on 'HTMLMediaElement': The provided double value is non-finite.");this[Df]=r}get preservesPitch(){return this[_f]}set preservesPitch(t){this[_f]=!!t}get paused(){return this[Qy]}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let r=Number(t);return isNaN(r)?0:r}return 0}set tabIndex(t){super.tabIndex=t}addTextTrack(t,r,o){let i=this[y];if(arguments.length===0)throw new i.TypeError("Failed to execute 'addTextTrack' on 'HTMLMediaElement': 1 argument required, but only 0 present.");if(!Hn[t])throw new i.TypeError(`Failed to execute 'addTextTrack' on 'HTMLMediaElement': The provided value '${t}' is not a valid enum value of type TextTrackKind.`);let n=new i.TextTrack(h);return n[li]=t,n[cl]=r||"",n[im]=o||"",this[Bf].push(n),n}pause(){this[Qy]||(this[Qy]=!0,this.dispatchEvent(new R("pause",{bubbles:!1,cancelable:!1})))}async play(){this[Qy]&&(this[Qy]=!1,this.dispatchEvent(new R("play",{bubbles:!1,cancelable:!1})),this.dispatchEvent(new R("playing",{bubbles:!1,cancelable:!1})))}canPlayType(t){return""}fastSeek(t){}load(){this.dispatchEvent(new R("emptied",{bubbles:!1,cancelable:!1}))}async setMediaKeys(t){this[Wf]=t}async setSinkId(t){this[jf]=t}captureStream(){return new this[y].MediaStream}[(bT=Vf,dT=Qy,cT=If,hT=Ff,pT=Df,uT=Pu,mT=tm,yT=_f,aT=oP,lT=iP,nT=pr,sT=sP,iT=nP,oT=va,rT=lP,eT=aP,tT=jf,QA=yP,ZA=uP,JA=Ec,KA=Wf,YA=zf,XA=Bf,ht)](t=!1){return super[ht](t)}};var gy=class extends $n{};var op=class extends B{get href(){if(!this.hasAttribute("href"))return this[T].location.href;try{return new URL(this.getAttribute("href"),this[T].location.href).href}catch{return this.getAttribute("href")}}set href(e){this.setAttribute("href",e)}get target(){return this.getAttribute("target")||""}set target(e){this.setAttribute("target",e)}[ht](e=!1){return super[ht](e)}};var ip=class extends B{get onafterprint(){return S.getEventListener(this,"onafterprint")}set onafterprint(e){this[c].set("onafterprint",e)}get onbeforeprint(){return S.getEventListener(this,"onbeforeprint")}set onbeforeprint(e){this[c].set("onbeforeprint",e)}get onbeforeunload(){return S.getEventListener(this,"onbeforeunload")}set onbeforeunload(e){this[c].set("onbeforeunload",e)}get ongamepadconnected(){return S.getEventListener(this,"ongamepadconnected")}set ongamepadconnected(e){this[c].set("ongamepadconnected",e)}get ongamepaddisconnected(){return S.getEventListener(this,"ongamepaddisconnected")}set ongamepaddisconnected(e){this[c].set("ongamepaddisconnected",e)}get onhashchange(){return S.getEventListener(this,"onhashchange")}set onhashchange(e){this[c].set("onhashchange",e)}get onlanguagechange(){return S.getEventListener(this,"onlanguagechange")}set onlanguagechange(e){this[c].set("onlanguagechange",e)}get onmessage(){return S.getEventListener(this,"onmessage")}set onmessage(e){this[c].set("onmessage",e)}get onmessageerror(){return S.getEventListener(this,"onmessageerror")}set onmessageerror(e){this[c].set("onmessageerror",e)}get onoffline(){return S.getEventListener(this,"onoffline")}set onoffline(e){this[c].set("onoffline",e)}get ononline(){return S.getEventListener(this,"ononline")}set ononline(e){this[c].set("ononline",e)}get onpagehide(){return S.getEventListener(this,"onpagehide")}set onpagehide(e){this[c].set("onpagehide",e)}get onpageshow(){return S.getEventListener(this,"onpageshow")}set onpageshow(e){this[c].set("onpageshow",e)}get onpopstate(){return S.getEventListener(this,"onpopstate")}set onpopstate(e){this[c].set("onpopstate",e)}get onrejectionhandled(){return S.getEventListener(this,"onrejectionhandled")}set onrejectionhandled(e){this[c].set("onrejectionhandled",e)}get onstorage(){return S.getEventListener(this,"onstorage")}set onstorage(e){this[c].set("onstorage",e)}get onunhandledrejection(){return S.getEventListener(this,"onunhandledrejection")}set onunhandledrejection(e){this[c].set("onunhandledrejection",e)}get onunload(){return S.getEventListener(this,"onunload")}set onunload(e){this[c].set("onunload",e)}};var sp=class extends B{};var KP=/[\n\r]/gm,dS=l=>l.map(e=>parseInt(e,10)),np=class{static sanitize(e,t){switch(e.type){case"password":case"search":case"tel":case"text":return t.replace(KP,"");case"color":return/^#[a-fA-F\d]{6}$/.test(t)?t.toLowerCase():"#000000";case"email":return e.multiple?t.split(",").map(r=>r.trim()).join(","):t.trim().replace(KP,"");case"number":return isNaN(Number.parseFloat(t))?"":t;case"range":{let r=Number.parseFloat(t),o=parseFloat(e.min)||0,i=parseFloat(e.max)||100;return isNaN(r)?i<o?String(o):String((o+i)/2):r<o?String(o):r>i?String(i):t}case"url":return t.trim().replace(KP,"");case"date":return this.sanitizeDate(t);case"datetime-local":{let r=t.match(/^(\d\d\d\d)-(\d\d)-(\d\d)[T ](\d\d):(\d\d)(?::(\d\d)(?:\.(\d{1,3}))?)?$/);if(!r)return"";let o=this.sanitizeDate(t.slice(0,10)),i=this.sanitizeTime(t.slice(11));return o&&i?(r[6]!==void 0&&(i.indexOf(".")!==-1&&(i=i.replace(/(?:\.0*|(\.\d+?)0+)$/,"$1")),i=i.replace(/(\d\d:\d\d)(:00)$/,"$1")),o+"T"+i):""}case"month":return t.match(/^(\d\d\d\d)-(\d\d)$/)&&this.parseMonthComponent(t)&&this.checkBoundaries(t,e.min,e.max)?t:"";case"time":return t=this.sanitizeTime(t),t&&this.checkBoundaries(t,e.min,e.max)?t:"";case"week":{let r=t.match(/^(\d\d\d\d)-W(\d\d)$/);if(!r)return"";let[o,i]=dS(r.slice(1,3));if(o<=0||i<1||i>53)return"";let n=this.lastIsoWeekOfYear(o);return i<1||i>52+n||!this.checkBoundaries(t,e.min,e.max)?"":t}}return t}static checkBoundaries(e,t,r){return t&&t>e?!1:!(r&&r<e)}static parseMonthComponent(e){let[t,r]=e.split("-"),[o,i]=dS([t,r]);return isNaN(o)||isNaN(i)||o<=0||i<1||i>12?"":e}static sanitizeDate(e){let t=e.match(/^(\d{4})-(\d{2})-(\d{2})$/);if(!t||!this.parseMonthComponent(e.slice(0,7)))return"";let[o,i,n]=dS(t.slice(1,4));if(n<1||n>31)return"";let a=new Date(o,i,0).getDate();return n>a?"":e}static sanitizeTime(e){let t=e.match(/^(\d{2}):(\d{2})(?::(\d{2}(?:\.(\d{1,3}))?))?$/);if(!t)return"";let[r,o]=dS(t.slice(1,3)),i=parseFloat(t[3]||"0")*1e3;return r>23||o>59||i>59999?"":i===0?`${t[1]}:${t[2]}`:`${t[1]}:${t[2]}${i>=1e4?`:${i/1e3}`:`:0${i/1e3}`}`}};s(np,"lastIsoWeekOfYear",e=>{let t=new Date(+e,11,31),r=(t.getDay()+6)%7;t.setDate(t.getDate()-r+3);let o=t.getTime();return t.setMonth(0,1),t.getDay()!==4&&t.setMonth(0,1+(4-t.getDay()+7)%7),1+Math.ceil((o-t.getTime())/6048e5)});var JP;(function(l){l.preserve="preserve",l.select="select",l.start="start",l.end="end"})(JP||(JP={}));var qn=JP;var ZP;(function(l){l.none="none",l.forward="forward",l.backward="backward"})(ZP||(ZP={}));var Xo=ZP;var lp=class{static step(e,t,r,o){switch(e){case"number":return String(Number(t)+(o!==void 0?o*r:r));case"date":case"month":case"week":case"time":case"datetime-local":case"range":return null;default:throw new Ht("This form element is not steppable.")}}};var _l=class extends Array{constructor(){super(0)}get[Symbol.toStringTag](){return this.constructor.name}item(e){return this[e]||null}};var Fm=class{static dateIsoWeek(e){e=typeof e=="number"?new Date(e):e,e=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())),e.setUTCDate(e.getUTCDate()+4-(e.getUTCDay()||7));let t=new Date(Date.UTC(e.getUTCFullYear(),0,1)),r=Math.ceil(((e-t)/864e5+1)/7);return`${e.getUTCFullYear()}-W${r<10?"0":""}${r}`}static isoWeekDate(e){let[,t,r]=e.match(/^(\d{4})-W(\d{2})$/)||[];if(!t||!r||Number(r)>53||Number(r)<1)return new Date("x");let o=new Date(`${t}-01-01T00:00Z`),n=(new Date(`${t}-01-04T00:00Z`).getUTCDay()+6)%7,a=1+(Number(r)-1)*7-n+3;return o.setUTCDate(a),o.getUTCFullYear()>Number(t)?new Date("x"):o}};var co=class{static getAssociatedLabelElements(e){let t=e.id,r;t&&e[st]?r=(e[Ve]||e[T]).querySelectorAll(`label[for="${t}"]`)[Y]:r=[];let o=e[W];for(;o;){if(o.tagName==="LABEL"){r.push(o);break}o=o[W]}return new Li(h,r)}};import{URL as P2}from"url";var gT,fT,ST,PT,wT,xT,ET,vT,AT,TT,Ii,fi,Vs,Eo,Wn,bS,vo=class extends B{constructor(){super(...arguments);x(this,Eo);s(this,TT,null);s(this,AT,0);s(this,vT,0);s(this,ET,null);s(this,xT,"");s(this,wT,new bo(this));s(this,PT,new _l);s(this,ST,!1);s(this,fT,null);s(this,gT,null);x(this,Ii,null);x(this,fi,null);x(this,Vs,Xo.none)}get oninput(){return S.getEventListener(this,"oninput")}set oninput(t){this[c].set("oninput",t)}get oninvalid(){return S.getEventListener(this,"oninvalid")}set oninvalid(t){this[c].set("oninvalid",t)}get onselectionchange(){return S.getEventListener(this,"onselectionchange")}set onselectionchange(t){this[c].set("onselectionchange",t)}get defaultChecked(){return this.hasAttribute("checked")}set defaultChecked(t){t?this.setAttribute("checked",""):this.removeAttribute("checked")}get files(){return this[zi]}set files(t){this[zi]=t}get formAction(){if(!this.hasAttribute("formaction"))return this[T].location.href;try{return new P2(this.getAttribute("formaction"),this[T].location.href).href}catch{return""}}set formAction(t){this.setAttribute("formaction",t)}get formEnctype(){return this.getAttribute("formenctype")||""}set formEnctype(t){this.setAttribute("formenctype",t)}get formMethod(){return this.getAttribute("formmethod")||""}set formMethod(t){this.setAttribute("formmethod",t)}get formNoValidate(){return this.getAttribute("formnovalidate")!==null}set formNoValidate(t){t?this.setAttribute("formnovalidate",""):this.removeAttribute("formnovalidate")}get formTarget(){return this.getAttribute("formtarget")||""}set formTarget(t){this.setAttribute("formtarget",t)}get form(){if(this[Bt])return this[Bt];let t=this.getAttribute("form");return!t||!this[st]?null:this[T].getElementById(t)}get validationMessage(){return this[Ue]}get validity(){return this[mr]}get height(){return this[D]}set height(t){this[D]=t,this.setAttribute("height",String(t))}get width(){return this[_]}set width(t){this[_]=t,this.setAttribute("width",String(t))}get size(){let t=this.getAttribute("size");return t!==null?parseInt(t):20}set size(t){this.setAttribute("size",String(t))}get minLength(){let t=this.getAttribute("minlength");return t!==null?parseInt(t):-1}set minLength(t){this.setAttribute("minlength",String(t))}get maxLength(){let t=this.getAttribute("maxlength");return t!==null?parseInt(t):-1}set maxLength(t){this.setAttribute("maxlength",String(t))}get type(){return this.getAttribute("type")||"text"}set type(t){this.setAttribute("type",t.toLowerCase())}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get alt(){return this.getAttribute("alt")||""}set alt(t){this.setAttribute("alt",t)}get min(){return this.getAttribute("min")||""}set min(t){this.setAttribute("min",t)}get max(){return this.getAttribute("max")||""}set max(t){this.setAttribute("max",t)}get pattern(){return this.getAttribute("pattern")||""}set pattern(t){this.setAttribute("pattern",t)}get placeholder(){return this.getAttribute("placeholder")||""}set placeholder(t){this.setAttribute("placeholder",t)}get step(){return this.getAttribute("step")||""}set step(t){this.setAttribute("step",t)}get inputMode(){return this.getAttribute("inputmode")||""}set inputMode(t){this.setAttribute("inputmode",t)}get accept(){return this.getAttribute("accept")||""}set accept(t){this.setAttribute("accept",t)}get allowdirs(){return this.getAttribute("allowdirs")||""}set allowdirs(t){this.setAttribute("allowdirs",t)}get autocomplete(){return this.getAttribute("autocomplete")||""}set autocomplete(t){this.setAttribute("autocomplete",t)}get src(){return this.getAttribute("src")||""}set src(t){this.setAttribute("src",t)}get defaultValue(){return this.getAttribute("value")||""}set defaultValue(t){this.setAttribute("value",t)}get readOnly(){return this.getAttribute("readonly")!==null}set readOnly(t){t?this.setAttribute("readonly",""):this.removeAttribute("readonly")}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled")}get autofocus(){return this.getAttribute("autofocus")!==null}set autofocus(t){t?this.setAttribute("autofocus",""):this.removeAttribute("autofocus")}get required(){return this.getAttribute("required")!==null}set required(t){t?this.setAttribute("required",""):this.removeAttribute("required")}get indeterminate(){return this[fa]}set indeterminate(t){this[fa]=!!t}get multiple(){return this.getAttribute("multiple")!==null}set multiple(t){t?this.setAttribute("multiple",""):this.removeAttribute("multiple")}get checked(){return this[ca]!==null?this[ca]:this.getAttribute("checked")!==null}set checked(t){F(this,Eo,bS).call(this,t)}get value(){switch(this.type){case"hidden":case"submit":case"image":case"reset":case"button":return this.getAttribute("value")||"";case"checkbox":case"radio":let t=this.getAttribute("value");return t!==null?t:"on";case"file":return this[zi].length>0?"/fake/path/"+this[zi][0].name:""}return this[J]===null?this.getAttribute("value")||"":this[J]}set value(t){switch(t=t===null?"":String(t),this.type){case"hidden":case"submit":case"image":case"reset":case"button":case"checkbox":case"radio":this.setAttribute("value",t);break;case"file":if(t!==null&&t!=="")throw new this[y].DOMException('Input elements of type "file" may only programmatically set the value to empty string.',A.invalidStateError);this[zi]=new _l;break;default:let r=this.value;this[J]=np.sanitize(this,t),r!==this[J]&&(w(this,Ii,this[J].length),w(this,fi,this[J].length),w(this,Vs,Xo.none));break}}get selectionStart(){return F(this,Eo,Wn).call(this)?u(this,Ii)===null?this.value.length:u(this,Ii):null}set selectionStart(t){if(!F(this,Eo,Wn).call(this))throw new this[y].DOMException(`The input element's type (${this.type}) does not support selection.`,A.invalidStateError);this.setSelectionRange(t,Math.max(t,this.selectionEnd),u(this,Vs))}get selectionEnd(){return F(this,Eo,Wn).call(this)?u(this,fi)===null?this.value.length:u(this,fi):null}set selectionEnd(t){if(!F(this,Eo,Wn).call(this))throw new this[y].DOMException(`The input element's type (${this.type}) does not support selection.`,A.invalidStateError);this.setSelectionRange(this.selectionStart,t,u(this,Vs))}get selectionDirection(){return F(this,Eo,Wn).call(this)?u(this,Vs):null}set selectionDirection(t){if(!F(this,Eo,Wn).call(this))throw new this[y].DOMException(`The input element's type (${this.type}) does not support selection.`,A.invalidStateError);this.setSelectionRange(u(this,Ii),u(this,fi),t)}get willValidate(){return this.type!=="hidden"&&this.type!=="reset"&&this.type!=="button"&&!this.disabled&&!this.readOnly}get valueAsDate(){switch(this.type){case"date":case"month":return isNaN(new Date(String(this.value)).getTime())?null:new Date(this.value);case"week":{let t=Fm.isoWeekDate(this.value);return isNaN(t.getTime())?null:t}case"time":{let t=new Date(`1970-01-01T${this.value}Z`);return isNaN(t.getTime())?null:t}default:return null}}set valueAsDate(t){if(!["date","month","time","week"].includes(this.type))throw new this[y].DOMException("Failed to set the 'valueAsDate' property on 'HTMLInputElement': This input element does not support Date values.",A.invalidStateError);if(typeof t!="object")throw new this[y].TypeError("Failed to set the 'valueAsDate' property on 'HTMLInputElement': Failed to convert value to 'object'.");if(t&&!(t instanceof Date))throw new this[y].TypeError("Failed to set the 'valueAsDate' property on 'HTMLInputElement': The provided value is not a Date.");if(t===null||isNaN(t.getTime())){this.value="";return}switch(this.type){case"date":this.value=t.toISOString().split("T")[0];break;case"month":this.value=t.toISOString().split("T")[0].slice(0,-3);break;case"time":this.value=t.toISOString().split("T")[1].slice(0,5);break;case"week":this.value=Fm.dateIsoWeek(t);break}}get valueAsNumber(){let t=this.value;if(!this.type.match(/^(range|number|date|datetime-local|month|time|week)$/)||!t)return NaN;switch(this.type){case"number":return parseFloat(t);case"range":{let r=parseFloat(t),o=parseFloat(this.min)||0,i=parseFloat(this.max)||100;return isNaN(r)?i<o?o:(o+i)/2:r<o?o:r>i?i:r}case"date":return new Date(t).getTime();case"datetime-local":return new Date(t).getTime()-new Date(t).getTimezoneOffset()*6e4;case"month":return(new Date(t).getUTCFullYear()-1970)*12+new Date(t).getUTCMonth();case"time":return new Date("1970-01-01T"+t).getTime()-new Date("1970-01-01T00:00:00").getTime();case"week":{let r=t.match(/^(\d{4})-W(\d{2})$/);if(!r)return NaN;let o=new Date(Date.UTC(parseInt(r[1],10),0)),i=o.getUTCDay(),n=((i===0?-6:1)-i)*864e5+parseInt(r[2],10)*6048e5;return o.getTime()+n}default:return NaN}}set valueAsNumber(t){switch(this.type){case"number":case"range":this.value=Number(t).toString();break;case"date":case"datetime-local":{let r=new Date(Number(t));if(isNaN(r.getTime())){this.value="";break}this.type=="date"?this.value=r.toISOString().slice(0,10):this.value=r.toISOString().slice(0,-1);break}case"month":!Number.isInteger(t)||t<0?this.value="":this.value=new Date(Date.UTC(1970,Number(t))).toISOString().slice(0,7);break;case"time":!Number.isInteger(t)||t<0?this.value="":this.value=new Date(Number(t)).toISOString().slice(11,-1);break;case"week":{let r=new Date(Number(t));this.value=isNaN(r.getTime())?"":Fm.dateIsoWeek(r);break}default:throw new this[y].DOMException("Failed to set the 'valueAsNumber' property on 'HTMLInputElement': This input element does not support Number values.",A.invalidStateError)}}get labels(){return co.getAssociatedLabelElements(this)}get list(){let t=this.getAttribute("list");return t?(this[Ve]||this[T]).querySelector(`datalist#${t}`):null}get popoverTargetElement(){return this[Ma]}set popoverTargetElement(t){if(t!==null&&!(t instanceof B))throw new this[y].TypeError("Failed to set the 'popoverTargetElement' property on 'HTMLInputElement': Failed to convert value to 'Element'.");this[Ma]=t}get popoverTargetAction(){let t=this.getAttribute("popovertargetaction");return t===null||t!=="hide"&&t!=="show"&&t!=="toggle"?"toggle":t}set popoverTargetAction(t){this.setAttribute("popovertargetaction",t)}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let r=Number(t);return isNaN(r)?0:r}return 0}set tabIndex(t){super.tabIndex=t}setCustomValidity(t){this[Ue]=String(t)}select(){F(this,Eo,Wn).call(this)&&(w(this,Ii,0),w(this,fi,this.value.length),w(this,Vs,Xo.none),this.dispatchEvent(new R("select",{bubbles:!0,cancelable:!1})))}setSelectionRange(t,r,o="none"){if(!F(this,Eo,Wn).call(this))throw new this[y].DOMException(`The input element's type (${this.type}) does not support selection.`,A.invalidStateError);w(this,fi,Math.min(r,this.value.length)),w(this,Ii,Math.min(t,u(this,fi))),w(this,Vs,o===Xo.forward||o===Xo.backward?o:Xo.none),this.dispatchEvent(new R("select",{bubbles:!0,cancelable:!1}))}setRangeText(t,r=null,o=null,i=qn.preserve){if(!F(this,Eo,Wn).call(this))throw new this[y].DOMException(`The input element's type (${this.type}) does not support selection.`,A.invalidStateError);if(r===null&&(r=u(this,Ii)),o===null&&(o=u(this,fi)),r>o)throw new this[y].DOMException("The index is not in the allowed range.",A.invalidStateError);r=Math.min(r,this.value.length),o=Math.min(o,this.value.length);let n=this.value,a=u(this,Ii),m=u(this,fi);this.value=n.slice(0,r)+t+n.slice(o);let p=r+this.value.length;switch(i){case qn.select:this.setSelectionRange(r,p);break;case qn.start:this.setSelectionRange(r,r);break;case qn.end:this.setSelectionRange(p,p);break;default:let b=t.length-(o-r);a>o?a+=b:a>r&&(a=r),m>o?m+=b:m>r&&(m=p),this.setSelectionRange(a,m);break}}checkValidity(){let t=this.disabled||this.readOnly||this.type==="hidden"||this.type==="reset"||this.type==="button"||this[mr].valid;return t||this.dispatchEvent(new R("invalid",{bubbles:!0,cancelable:!0})),t}reportValidity(){return this.checkValidity()}stepUp(t){let r=lp.step(this.type,this.value,1,t);r!==null&&(this.value=r)}stepDown(t){let r=lp.step(this.type,this.value,-1,t);r!==null&&(this.value=r)}[(TT=J,AT=D,vT=_,ET=ca,xT=Ue,wT=mr,PT=zi,ST=fa,fT=Bt,gT=Ma,ht)](t=!1){let r=super[ht](t);return r[J]=this[J],r[D]=this[D],r[_]=this[_],r[zi]=this[zi].slice(),w(r,Ii,u(this,Ii)),w(r,fi,u(this,fi)),w(r,Vs,u(this,Vs)),r}dispatchEvent(t){if(t[Xt]!=="click"||t[to]!==be.none||!(t instanceof sr))return super.dispatchEvent(t);if(this.disabled)return!1;let r=null,o=this[fa],i=this.type;(i==="checkbox"||i==="radio")&&(r=this.checked,F(this,Eo,bS).call(this,i==="checkbox"?!r:!0),i==="checkbox"&&(o=this[fa],this[fa]=!1));let n=super.dispatchEvent(t);if(t[Xt]!=="click"||t[to]!==be.none||!(t instanceof sr))return n;if(t[Gr])r!==null&&(F(this,Eo,bS).call(this,r),this[fa]=o);else{let a=this.type;if(a==="checkbox"&&this[st])this.dispatchEvent(new R("input",{bubbles:!0,cancelable:!0})),this.dispatchEvent(new R("change",{bubbles:!0,cancelable:!0}));else if(a==="radio"&&!r&&this[st])this.dispatchEvent(new R("input",{bubbles:!0,cancelable:!0})),this.dispatchEvent(new R("change",{bubbles:!0,cancelable:!0}));else if(a==="submit"||a==="reset"){let m=this.form;m&&(a==="submit"&&this[st]?m.requestSubmit(this):a==="reset"&&m.reset())}}return n}};Ii=new WeakMap,fi=new WeakMap,Vs=new WeakMap,Eo=new WeakSet,Wn=function(){let t=this.type;return t==="text"||t==="search"||t==="url"||t==="tel"||t==="password"},bS=function(t){if(this[ca]=t,this[ao](),t&&this.type==="radio"&&this.name){let o=(this[Bt]||this.getRootNode()).querySelectorAll(`input[type="radio"][name="${this.name}"]`);for(let i of o)i!==this&&(i[ca]=!1)}};var NT,LT,CT,kT,MT,Yo,Ko,ns,Bl=class extends B{constructor(){super(...arguments);s(this,"type","textarea");s(this,MT,"");s(this,kT,new bo(this));s(this,CT,null);s(this,LT,this);s(this,NT,null);x(this,Yo,null);x(this,Ko,null);x(this,ns,Xo.none)}get oninput(){return S.getEventListener(this,"oninput")}set oninput(t){this[c].set("oninput",t)}get onselectionchange(){return S.getEventListener(this,"onselectionchange")}set onselectionchange(t){this[c].set("onselectionchange",t)}get validationMessage(){return this[Ue]}get validity(){return this[mr]}get defaultValue(){return this.textContent}set defaultValue(t){this.textContent=t}get minLength(){let t=this.getAttribute("minlength");return t!==null?parseInt(t):-1}set minLength(t){this.setAttribute("minlength",String(t))}get maxLength(){let t=this.getAttribute("maxlength");return t!==null?parseInt(t):-1}set maxLength(t){this.setAttribute("maxlength",String(t))}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get placeholder(){return this.getAttribute("placeholder")||""}set placeholder(t){this.setAttribute("placeholder",t)}get inputMode(){return this.getAttribute("inputmode")||""}set inputMode(t){this.setAttribute("inputmode",t)}get cols(){return this.getAttribute("cols")||""}set cols(t){this.setAttribute("cols",t)}get rows(){return this.getAttribute("rows")||""}set rows(t){this.setAttribute("rows",t)}get autocomplete(){return this.getAttribute("autocomplete")||""}set autocomplete(t){this.setAttribute("autocomplete",t)}get readOnly(){return this.getAttribute("readonly")!==null}set readOnly(t){t?this.setAttribute("readonly",""):this.removeAttribute("readonly")}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled")}get autofocus(){return this.getAttribute("autofocus")!==null}set autofocus(t){t?this.setAttribute("autofocus",""):this.removeAttribute("autofocus")}get required(){return this.getAttribute("required")!==null}set required(t){t?this.setAttribute("required",""):this.removeAttribute("required")}get value(){return this[J]===null?this.textContent:this[J]}set value(t){let r=this[J];this[J]=t,r!==this[J]&&(w(this,Yo,this[J].length),w(this,Ko,this[J].length),w(this,ns,Xo.none))}get selectionStart(){return u(this,Yo)===null?this.value.length:u(this,Yo)}set selectionStart(t){this.setSelectionRange(t,Math.max(t,this.selectionEnd),u(this,ns))}get selectionEnd(){return u(this,Ko)===null?this.value.length:u(this,Ko)}set selectionEnd(t){this.setSelectionRange(this.selectionStart,t,u(this,ns))}get selectionDirection(){return u(this,ns)}set selectionDirection(t){this.setSelectionRange(this.selectionStart,this.selectionEnd,t)}get form(){if(this[Bt])return this[Bt];let t=this.getAttribute("form");return!t||!this[st]?null:this[T].getElementById(t)}get textLength(){return this.value.length}get labels(){return co.getAssociatedLabelElements(this)}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let r=Number(t);return isNaN(r)?0:r}return 0}set tabIndex(t){super.tabIndex=t}select(){w(this,Yo,0),w(this,Ko,this.value.length),w(this,ns,Xo.none),this.dispatchEvent(new R("select",{bubbles:!0,cancelable:!1}))}setSelectionRange(t,r,o="none"){w(this,Ko,Math.min(r,this.value.length)),w(this,Yo,Math.min(t,this.selectionEnd)),w(this,ns,o===Xo.forward||o===Xo.backward?o:Xo.none),this.dispatchEvent(new R("select",{bubbles:!0,cancelable:!1}))}setRangeText(t,r=null,o=null,i=qn.preserve){if(r===null&&(r=u(this,Yo)!==null?u(this,Yo):0),o===null&&(o=u(this,Ko)!==null?u(this,Ko):this.value.length),r>o)throw new this[y].DOMException("The index is not in the allowed range.",A.invalidStateError);r=Math.min(r,this.value.length),o=Math.min(o,this.value.length);let n=this.value,a=u(this,Yo)!==null?u(this,Yo):0,m=u(this,Ko)!==null?u(this,Ko):this.value.length;this.value=n.slice(0,r)+t+n.slice(o);let p=r+this.value.length;switch(i){case qn.select:this.setSelectionRange(r,p);break;case qn.start:this.setSelectionRange(r,r);break;case qn.end:this.setSelectionRange(p,p);break;default:let b=t.length-(o-r);a>o?a+=b:a>r&&(a=r),m>o?m+=b:m>r&&(m=p),this.setSelectionRange(a,m);break}}setCustomValidity(t){this[Ue]=String(t)}checkValidity(){let t=this.disabled||this.readOnly||this[mr].valid;return t||this.dispatchEvent(new R("invalid",{bubbles:!0,cancelable:!0})),t}reportValidity(){return this.checkValidity()}[(MT=Ue,kT=mr,CT=J,LT=Pr,NT=Bt,ht)](t=!1){let r=super[ht](t);return r[J]=this[J],w(r,Yo,u(this,Yo)),w(r,Ko,u(this,Ko)),w(r,ns,u(this,ns)),r}[gu](){this[J]===null&&(w(this,Yo,null),w(this,Ko,null),w(this,ns,Xo.none))}};Yo=new WeakMap,Ko=new WeakMap,ns=new WeakMap;var RT,OT,VT,IT,fy=class extends(IT=B,VT=Bt,OT=Ue,RT=mr,IT){constructor(){super(...arguments);s(this,VT,null);s(this,OT,"");s(this,RT,new bo(this))}get contentDocument(){return null}get contentWindow(){return null}get data(){if(!this.hasAttribute("data"))return"";try{return new URL(this.getAttribute("data"),this[T].location.href).href}catch{return this.getAttribute("data")}}set data(t){this.setAttribute("data",t)}get form(){if(this[Bt])return this[Bt];let t=this.getAttribute("form");return!t||!this[st]?null:this[T].getElementById(t)}get height(){return this.getAttribute("height")||""}set height(t){this.setAttribute("height",t)}get width(){return this.getAttribute("width")||""}set width(t){this.setAttribute("width",t)}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t)}get validationMessage(){return this[Ue]}get validity(){return this[mr]}get willValidate(){return!1}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let r=Number(t);return isNaN(r)?0:r}return 0}set tabIndex(t){super.tabIndex=t}checkValidity(){return!0}reportValidity(){return this.checkValidity()}setCustomValidity(t){this[Ue]=String(t)}};var FT,DT,_T,BT,UT,Sy=class extends(UT=B,BT=Bt,_T=Ue,DT=mr,FT=Ro,UT){constructor(){super(...arguments);s(this,BT,null);s(this,_T,"");s(this,DT,new bo(this));s(this,FT,"")}get defaultValue(){return this[Ro]}set defaultValue(t){this[Ro]=t}get form(){if(this[Bt])return this[Bt];let t=this.getAttribute("form");return!t||!this[st]?null:this[T].getElementById(t)}get htmlFor(){return this.getAttribute("for")||""}set htmlFor(t){this.setAttribute("for",t)}get labels(){return co.getAssociatedLabelElements(this)}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get value(){return this.textContent||""}set value(t){this.textContent=t}get type(){return"output"}get validationMessage(){return this[Ue]}get validity(){return this[mr]}get willValidate(){return!1}checkValidity(){return!0}reportValidity(){return this.checkValidity()}setCustomValidity(t){this[Ue]=String(t)}};var w2=/^([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22))*\x40([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d))*$/,x2=/^(?:(?:https?|HTTPS?|ftp|FTP):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-zA-Z\u00a1-\uffff0-9]-*)*[a-zA-Z\u00a1-\uffff0-9]+)(?:\.(?:[a-zA-Z\u00a1-\uffff0-9]-*)*[a-zA-Z\u00a1-\uffff0-9]+)*)(?::\d{2,5})?(?:[\/?#]\S*)?$/,bo=class{constructor(e){s(this,"element");this.element=e}get badInput(){return this.element instanceof vo&&(this.element.type==="number"||this.element.type==="range")&&this.element.value.length>0&&!/^[-+]?(?:\d+|\d*[.,]\d+)$/.test(this.element.value)}get customError(){return this.element[Ue].length>0}get patternMismatch(){return this.element instanceof vo&&this.element.hasAttribute("pattern")&&this.element.value.length>0&&this.element.value.replace(new RegExp(this.element.getAttribute("pattern")),"").length>0}get rangeOverflow(){return this.element instanceof vo&&this.element.hasAttribute("max")&&(this.element.type==="number"||this.element.type==="range")&&this.element.value.length>0&&Number(this.element.value)>Number(this.element.getAttribute("max"))}get rangeUnderflow(){return this.element instanceof vo&&this.element.hasAttribute("min")&&(this.element.type==="number"||this.element.type==="range")&&this.element.value.length>0&&Number(this.element.value)<Number(this.element.getAttribute("min"))}get stepMismatch(){return this.element instanceof vo&&(this.element.type==="number"||this.element.type==="range")&&(this.element.hasAttribute("step")&&this.element.getAttribute("step")!=="any"&&Number(this.element.value)%Number(this.element.getAttribute("step"))!==0||!this.element.hasAttribute("step")&&Number(this.element.value)%1!==0)}get tooLong(){return(this.element instanceof vo||this.element instanceof Bl)&&this.element.maxLength>0&&this.element.value.length>this.element.maxLength}get tooShort(){return(this.element instanceof vo||this.element instanceof Bl)&&this.element.minLength>0&&this.element.value.length>0&&this.element.value.length<this.element.minLength}get typeMismatch(){return this.element instanceof vo&&this.element.value.length>0&&(this.element.type==="email"&&!w2.test(this.element.value)||this.element.type==="url"&&!x2.test(this.element.value))}get valueMissing(){if(!this.element.required||this.element instanceof fy||this.element instanceof Sy)return!1;if(this.element instanceof vo){if(this.element.type==="checkbox")return!this.element.checked;if(this.element.type==="radio"){if(this.element.checked)return!1;if(!this.element.name)return!0;let e=this.element[Bt]||this.element.getRootNode();return!e||!e.querySelector(`input[name="${this.element.name}"]:checked`)}}return this.element.value.length===0}get valid(){return!this.badInput&&!this.customError&&!this.patternMismatch&&!this.rangeOverflow&&!this.rangeUnderflow&&!this.stepMismatch&&!this.tooLong&&!this.tooShort&&!this.typeMismatch&&!this.valueMissing}};import{URL as E2}from"url";var v2=["submit","reset","button","menu"],GT,HT,$T,qT,WT,ap=class extends(WT=B,qT=Ue,$T=mr,HT=Bt,GT=Ma,WT){constructor(){super(...arguments);s(this,qT,"");s(this,$T,new bo(this));s(this,HT,null);s(this,GT,null)}get validationMessage(){return this[Ue]}get validity(){return this[mr]}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get value(){return this.getAttribute("value")||""}set value(t){this.setAttribute("value",t)}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled")}get type(){let t=this.getAttribute("type");return t===null||!v2.includes(t)?"submit":t}set type(t){this.setAttribute("type",t)}get formAction(){if(!this.hasAttribute("formaction"))return this[T].location.href;try{return new E2(this.getAttribute("formaction"),this[T].location.href).href}catch{return""}}set formAction(t){this.setAttribute("formaction",t)}get formEnctype(){return this.getAttribute("formenctype")||""}set formEnctype(t){this.setAttribute("formenctype",t)}get formMethod(){return this.getAttribute("formmethod")||""}set formMethod(t){this.setAttribute("formmethod",t)}get formNoValidate(){return this.getAttribute("formnovalidate")!==null}set formNoValidate(t){t?this.setAttribute("formnovalidate",""):this.removeAttribute("formnovalidate")}get formTarget(){return this.getAttribute("formtarget")||""}set formTarget(t){this.setAttribute("formtarget",t)}get form(){if(this[Bt])return this[Bt];let t=this.getAttribute("form");return!t||!this[st]?null:this[T].getElementById(t)}get labels(){return co.getAssociatedLabelElements(this)}get popoverTargetElement(){return this[Ma]}set popoverTargetElement(t){if(t!==null&&!(t instanceof B))throw new this[y].TypeError("Failed to set the 'popoverTargetElement' property on 'HTMLInputElement': Failed to convert value to 'Element'.");this[Ma]=t}get popoverTargetAction(){let t=this.getAttribute("popovertargetaction");return t===null||t!=="hide"&&t!=="show"&&t!=="toggle"?"toggle":t}set popoverTargetAction(t){this.setAttribute("popovertargetaction",t)}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let r=Number(t);return isNaN(r)?0:r}return 0}set tabIndex(t){super.tabIndex=t}checkValidity(){let t=this.disabled||this.type==="reset"||this.type==="button"||this[mr].valid;return t||this.dispatchEvent(new R("invalid",{bubbles:!0,cancelable:!0})),t}reportValidity(){return this.checkValidity()}setCustomValidity(t){this[Ue]=String(t)}dispatchEvent(t){if(t.type==="click"&&t instanceof sr&&t.eventPhase===be.none&&this.disabled)return!1;let r=super.dispatchEvent(t);if(!t[Gr]&&t.type==="click"&&t.eventPhase===be.none&&t instanceof sr){let o=this.type;if(o==="submit"||o==="reset"){let i=this.form;i&&(o==="submit"&&this[st]?i.requestSubmit(this):o==="reset"&&i.reset())}}return r}};var Sb=class{constructor(e,t){s(this,"height");s(this,"width");this.width=e,this.height=t}close(){}};var Pb=class{constructor(e,t){s(this,"width");s(this,"height");this.width=e,this.height=t}getContext(e,t){return null}async convertToBlob(e){return new ce([])}transferToImageBitmap(){return new Sb(this.width,this.height)}};var jT="S3F/aBCdEfGHIjKlMnOpQRStUvWxYz1234567890+1AbC2DEf2GHi3jK34le+ab12C3+1aBCdEf==",yp=class extends B{get oncontextlost(){return S.getEventListener(this,"oncontextlost")}set oncontextlost(e){this[c].set("oncontextlost",e)}get oncontextrestored(){return S.getEventListener(this,"oncontextrestored")}set oncontextrestored(e){this[c].set("oncontextrestored",e)}get onwebglcontextcreationerror(){return S.getEventListener(this,"onwebglcontextcreationerror")}set onwebglcontextcreationerror(e){this[c].set("onwebglcontextcreationerror",e)}get onwebglcontextlost(){return S.getEventListener(this,"onwebglcontextlost")}set onwebglcontextlost(e){this[c].set("onwebglcontextlost",e)}get onwebglcontextrestored(){return S.getEventListener(this,"onwebglcontextrestored")}set onwebglcontextrestored(e){this[c].set("onwebglcontextrestored",e)}get width(){let e=this.getAttribute("width");return e!==null?Number(e):300}set width(e){this.setAttribute("width",String(e))}get height(){let e=this.getAttribute("height");return e!==null?Number(e):150}set height(e){this.setAttribute("height",String(e))}captureStream(e){let t=new this[y].MediaStream,r=new this[y].CanvasCaptureMediaStreamTrack(h,this);return r[li]="video",r[Ps].deviceId=jT,r[Ps].aspectRatio.max=this.width,r[Ps].height.max=this.height,r[Ps].width.max=this.width,r[Ta].deviceId=jT,e!==void 0&&(r[Ps].frameRate.max=e,r[Ta].frameRate=e),t.addTrack(r),t}getContext(e,t){return null}toDataURL(e,t){return""}toBlob(e,t,r){e(new ce([]))}transferControlToOffscreen(){return new Pb(this.width,this.height)}};var mp=class extends B{};var up=class extends B{get value(){return this.getAttribute("value")||""}set value(e){this.setAttribute("value",e)}};var zT,XT,pp=class extends(XT=B,zT=rn,XT){constructor(){super(...arguments);s(this,zT,null)}get options(){return this[rn]||(this[rn]=ne.getElementsByTagName(this,"OPTION")),this[rn]}};var hp=class extends B{get ontoggle(){return S.getEventListener(this,"ontoggle")}set ontoggle(e){this[c].set("ontoggle",e)}get open(){return this.getAttribute("open")!==null}set open(e){e?this.setAttribute("open",""):this.removeAttribute("open")}[je](e,t){super[je](e,t),e[nt]==="open"&&e[J]!==t?.[J]&&this.dispatchEvent(new R("toggle"))}[Ur](e){super[Ur](e),e&&e[nt]==="open"&&this.dispatchEvent(new R("toggle"))}dispatchEvent(e){let t=super.dispatchEvent(e);return!e[Gr]&&e[Zr]?.[dt]==="summary"&&e.type==="click"&&e.eventPhase===be.bubbling&&e instanceof sr&&(this.open=!this.open),t}};var YT,KT,cp=class extends(KT=B,YT=Of,KT){constructor(){super(...arguments);s(this,YT,"")}get oncancel(){return S.getEventListener(this,"oncancel")}set oncancel(t){this[c].set("oncancel",t)}get onclose(){return S.getEventListener(this,"onclose")}set onclose(t){this[c].set("onclose",t)}get returnValue(){return this[Of]}set returnValue(t){this[Of]=String(t)}set open(t){t?this.setAttribute("open",""):this.removeAttribute("open")}get open(){return this.getAttribute("open")!==null}close(t){let r=this.open;this.removeAttribute("open"),this.returnValue=t!==void 0?String(t):"",r&&this.dispatchEvent(new R("close"))}showModal(){this.setAttribute("open","")}show(){this.setAttribute("open","")}};var dp=class extends B{};var bp=class extends B{get height(){return this.getAttribute("height")||""}set height(e){this.setAttribute("height",e)}get width(){return this.getAttribute("width")||""}set width(e){this.setAttribute("width",e)}get src(){if(!this.hasAttribute("src"))return"";try{return new URL(this.getAttribute("src"),this[T].location.href).href}catch{return this.getAttribute("src")}}set src(e){this.setAttribute("src",e)}get type(){return this.getAttribute("type")||""}set type(e){this.setAttribute("type",e)}};var JT,ZT,QT,Py=class extends(QT=B,ZT=en,JT=Bt,QT){constructor(){super(...arguments);s(this,ZT,null);s(this,JT,null)}get elements(){return this[en]||(this[en]=new Ae(h,()=>yt.querySelectorAll(this,"input,button,textarea,select")[Y])),this[en]}get form(){if(this[Bt])return this[Bt];let t=this.getAttribute("form");return!t||!this[st]?null:this[T].getElementById(t)}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get type(){return"fieldset"}get validationMessage(){return""}get willValidate(){return!1}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled")}checkValidity(){return!0}reportValidity(){return!0}setCustomValidity(t){}};var wy=class extends Ae{constructor(e,t){super(e,()=>t[ko]()),this[At]=t}namedItem(e){return this[At][fc](e)}};var Is=class{static createChildFrame(e){let t=new e.constructor(e.page);return t.parentFrame=e,e.childFrames.push(t),t}static destroyFrame(e){let t=e.page.context.browser[_r];return e.closed?Promise.resolve():(e.closed=!0,new Promise((r,o)=>{if(!e.window){r();return}if(e.parentFrame){let i=e.parentFrame.childFrames.indexOf(e);i!==-1&&e.parentFrame.childFrames.splice(i,1)}if(!e.childFrames.length){e[bt].destroy().then(()=>{t&&e.window&&t.disconnect(e.window),e.window={closed:!0},e[So]=null,e[ji]=null,e[ge]&&(e[ge].navigation=[]),r()}).catch(i=>o(i)),e.window&&e.window[ye]();return}Promise.all(e.childFrames.slice().map(i=>this.destroyFrame(i))).then(()=>{e[bt].destroy().then(()=>{t&&e.window&&t.disconnect(e.window),e.window={closed:!0},e[So]=null,e[ji]=null,e[ge]&&(e[ge].navigation=[]),r()}).catch(i=>o(i)),e.window&&e.window[ye]()}).catch(i=>o(i))}))}};var QP;(function(l){l.anyOrigin="anyOrigin",l.sameOrigin="sameOrigin",l.strictOrigin="strictOrigin"})(QP||(QP={}));var gp=QP;var wb,xb,Dm,_m=class{constructor(e){s(this,"url");x(this,wb);x(this,xb);x(this,Dm,null);w(this,wb,e.window),this.url=e.url,w(this,xb,e.source)}async evaluate(){if(u(this,Dm))return u(this,Dm);let e=new(u(this,wb)).CSSStyleSheet;return e.replaceSync(u(this,xb)),w(this,Dm,{default:e}),u(this,Dm)}async preload(){await this.evaluate()}};wb=new WeakMap,xb=new WeakMap,Dm=new WeakMap;import{URL as F2}from"url";import{URL as gS}from"url";import Eb from"path";import fS from"fs";var A2=["module","main"],T2=[".js",".mjs"],Fs=class{static getURL(e,t,r){let o=typeof t=="string"?t:t.href,i=e[mm],n=this.resolveURL(e,o,r);if(!i)return new gS(n,o);if(i.scopes.length){for(let a of i.scopes)if(o.includes(a.scope)){for(let m of a.rules)if(n.startsWith(m.from))return new gS(m.to+n.replace(m.from,""),o)}}if(i.imports.length){for(let a of i.imports)if(n.startsWith(a.from))return new gS(a.to+n.replace(a.from,""),o)}return new gS(n,o)}static clearCache(){this.nodeModuleResolveCache.clear(),this.packageJsonCache.clear()}static resolveURL(e,t,r){let o=new ot(e).getSettings();if(!o)return r;let i=r;return o.module.resolveNodeModules&&(i=this.resolveNodeModuleURL(o.module.resolveNodeModules,r)),o.module.urlResolver&&(i=o.module.urlResolver({url:i,parentURL:t,window:e})),i}static resolveNodeModuleURL(e,t){if(t[0]==="."||t[0]==="/"||t.startsWith("http://")||t.startsWith("https://"))return t;let r=e.url[e.url.length-1]==="/"?"":"/",o=`${e.url}${r}`,i=Eb.resolve(e.directory),n=t.split("/"),a=this.nodeModuleResolveCache.get(t);if(a)return a;let m=t[0]==="@"?`${n[0]}/${n[1]}`:n[0],p=this.packageJsonCache.get(m);if(!p)try{p=JSON.parse(fS.readFileSync(Eb.join(i,m,"package.json"),"utf-8")),this.packageJsonCache.set(m,p)}catch{return t}if(t[0]==="@"&&n.length===2||n.length===1){if(p.exports?.["."]?.import){let f=`${o}${m}/${p.exports["."].import.replace("./","")}`;return this.nodeModuleResolveCache.set(t,f),f}let d=e.mainFields||A2;for(let f of d)if(p[f]&&fS.existsSync(Eb.join(i,m,p[f]))){let v=`${o}${t}/${p[f]}`;return this.nodeModuleResolveCache.set(t,v),v}return t}let b=n.slice(t[0]==="@"?2:1).join("/");if(p.exports)for(let d of Object.keys(p.exports)){let f=Array.isArray(p.exports[d].import)?p.exports[d].import[0]:p.exports[d].import;if(f){let v=new RegExp(`^${d.replace("./","").replace(/\./g,"\\.").replace(/\*/g,"(.*)")}$`),L=b.match(v);if(L){let C=f.replace("./","").replace("*",L[1]),X=`${o}${m}/${C}`;return this.nodeModuleResolveCache.set(t,X),X}}}if(!t.endsWith(".js")&&!t.endsWith(".mjs")){for(let d of T2)if(fS.existsSync(Eb.join(i,`${t}${d}`))){let f=`${o}${t}${d}`;return this.nodeModuleResolveCache.set(t,f),f}}else if(fS.existsSync(Eb.join(i,t))){let d=`${o}${t}`;return this.nodeModuleResolveCache.set(t,d),d}return t}};s(Fs,"nodeModuleResolveCache",new Map),s(Fs,"packageJsonCache",new Map);var N2=/import\.meta\.([a-zA-Z]+)|import\s*["']([^"']+)["'];{0,1}|import\s*\(([^)]+)\)|(import[\s{])|[\s}]from\s*["']([^"']+)["'](\s+with\s*{\s*type\s*:\s*["']([^"']+)["']\s*}){0,1}([;\s]*)|export(\s+[a-zA-Z0-9-_$]+\s+|\s+\*\s+|\s+\*\s+as\s+["'a-zA-Z0-9-_$]+\s+|\s*{[^}]+}\s*)from\s*["']([^"']+)["']|export\s*(default\s+){0,1}(async\s+){0,1}(function\*{0,1}|class)\s*([^({\s]+)|(export\s*default\s*)|export\s*{([^}]+)}|export\s+(var|let|const)\s+([^=;]+)(=|;)/gm,L2=/(\/)|(\(|\))|({|})|(\[|\])|(\${)|(`)|(')|(")|(\n)/gm,C2=/{([^}]+)}|\*\s+as\s+([a-zA-Z0-9-_$]+)|([a-zA-Z0-9-_$]+)/gm,Ul=/['"`(){}\s;=><\[\]+-,:&]/,k2=/['"`({};=><\[+-,:&]/,M2=/\/\*|\*\//gm,SS=/export\s*/,R2=/export\s*default\s*/,O2=/;\s*$/,vb=class{constructor(e){s(this,"window");s(this,"debug",!1);s(this,"count",{comment:0,singleLineComment:0,parentheses:0,curlyBraces:0,squareBrackets:0,regExp:0,regExpSquareBrackets:0,escapeTemplateString:0,simpleString:0,doubleString:0});s(this,"debugCount",{comment:[],singleLineComment:[],parentheses:[],curlyBraces:[],squareBrackets:[],regExp:[],regExpSquareBrackets:[],escapeTemplateString:[],simpleString:[],doubleString:[]});s(this,"templateString",[]);this.window=e}compile(e,t,r=null){let o=new ot(this.window).getSettings();if(!o)return{imports:[],execute:async()=>{}};this.reset();let i=new RegExp(N2),n=[],a=[],m=this.count,p="",b="",d="",f=null,v,L,C=!0,X=0,lt=-1;for(;f=i.exec(t);){if(v=t[f.index-1]||" ",L=t.substring(X,f.index),this.parseSyntax(L,X),lt===-1&&(p+=L),C=m.comment===0&&m.singleLineComment===0&&m.parentheses===0&&m.curlyBraces===0&&m.squareBrackets===0&&m.regExp===0&&m.simpleString===0&&m.doubleString===0&&this.templateString.length===0,f[1]&&m.simpleString===0&&m.doubleString===0&&m.comment===0&&m.singleLineComment===0&&m.regExp===0&&(this.templateString.length===0||this.templateString[0]>0)&&Ul.test(this.getNonSpacePrecedingToken(t,f.index)))p+=`$happy_dom.importMeta.${f[1]}`;else if(f[2]&&C&&Ul.test(v))n.push({url:Fs.getURL(this.window,e,f[2]).href,type:"esm"});else if(f[3]&&m.simpleString===0&&m.doubleString===0&&m.comment===0&&m.singleLineComment===0&&m.regExp===0&&(this.templateString.length===0||this.templateString[0]>0)&&Ul.test(v))p+=`$happy_dom.dynamicImport(${f[3]})`;else if(f[4]&&C&&Ul.test(v)){if(lt!==-1)throw new this.window.TypeError(`Failed to parse module: Unexpected import statement in "${e}"`);lt=f.index+f[0].length-1}else if(f[5]&&C&&lt!==-1){let Q=Fs.getURL(this.window,e,f[5]).href,ct=t.substring(lt,f.index+1),qt=new RegExp(C2),Nt=null;for(;Nt=qt.exec(ct);)if(Nt[1]){let te=this.removeMultilineComments(Nt[1]).split(/\s*,\s*/),Lt=[];for(let er of te){let Dr=er.trim().split(/\s+as\s+/),hs=(Dr[1]||Dr[0]).replace(/["']/g,""),Gi=Dr[0].replace(/["']/g,"");hs&&Gi&&(Gi===hs?Lt.push({name:Gi}):Lt.push({name:Gi,alias:hs}))}(!f[7]||f[7]==="esm")&&a.push({url:Q,properties:Lt}),b+=`let {${Lt.map(er=>er.alias?`"${er.name}": ${er.alias}`:er.name).join(", ")}} = $happy_dom.imports.get('${Q}')${f[8]}`}else Nt[2]?b+=`const ${Nt[2]} = $happy_dom.imports.get('${Q}')${f[8]}`:Nt[3]&&((!f[7]||f[7]==="esm")&&a.push({url:Q,properties:[{name:"default",alias:Nt[3]}]}),b+=`let ${Nt[3]} = $happy_dom.imports.get('${Q}').default${f[8]}`);lt=-1,n.push({url:Q,type:f[7]||"esm"})}else if(f[9]&&f[10]&&C&&Ul.test(v)){let Q=Fs.getURL(this.window,e,f[10]).href,ct=f[9].trim();if(ct==="*")p+=`Object.assign($happy_dom.exports, $happy_dom.imports.get('${Q}'))`,n.push({url:Q,type:"esm"});else if(ct[0]==="*"){let qt=ct.split(/\s+as\s+/);if(qt.length===2){let Nt=qt[1].replace(/["']/g,"");p+=`$happy_dom.exports['${Nt}'] = $happy_dom.imports.get('${Q}')`,n.push({url:Q,type:"esm"})}}else if(ct[0]==="{"){let qt=this.removeMultilineComments(ct).slice(1,-1).split(/\s*,\s*/),Nt=[];for(let te of qt){let Lt=te.trim().split(/\s+as\s+/),er=(Lt[1]||Lt[0]).replace(/["']/g,""),Dr=Lt[0].replace(/["']/g,"");er&&Dr&&Nt.push(`$happy_dom.exports['${er}'] = $happy_dom.imports.get('${Q}')['${Dr}']`)}p+=Nt.join(`;
96
+ `),n.push({url:Q,type:"esm"})}}else if(f[13]&&f[14]&&C&&Ul.test(v)){let Q=f[14].replace("*","");if(Q)f[11]?(p+=f[0].replace(R2,""),d+=`$happy_dom.exports.default = ${Q};
97
+ `):(p+=f[0].replace(SS,""),d+=`$happy_dom.exports['${Q}'] = ${Q};
98
+ `);else if(f[11])p+=`$happy_dom.exports.default = ${f[12]||""}${f[13]}${Q?" ":""}${f[14]}`;else throw new this.window.SyntaxError(`Failed to parse module: Missing function or class name in export statement in "${e}"`)}else if(f[15]&&C&&Ul.test(v))p+="$happy_dom.exports.default = ";else if(f[16]&&C&&Ul.test(v)){let Q=this.removeMultilineComments(f[16]).split(/\s*,\s*/),ct=[];for(let qt of Q){let Nt=qt.trim().split(/\s+as\s+/),te=(Nt[1]||Nt[0]).replace(/["']/g,""),Lt=Nt[0].replace(/["']/g,"");te&&Lt&&ct.push(`$happy_dom.exports['${te}'] = ${Lt}`)}p+=ct.join(`;
99
+ `)}else if(f[17]&&C&&Ul.test(v))if(f[19]==="="){let Q=this.removeMultilineComments(f[18]).trim();if(Q[0]==="{"&&Q[Q.length-1]==="}"||Q[0]==="["&&Q[Q.length-1]==="]"){let ct=Q.slice(1,-1).split(/\s*,\s*/);for(let qt of ct){let Nt=qt.trim().split(/\s*:\s*/),te=(Nt[1]||Nt[0]).replace(/["']/g,"");te&&(d+=`$happy_dom.exports['${te}'] = ${te};
100
+ `)}p+=f[0].replace(SS,"")}else p+=f[0].replace(SS,""),d+=`$happy_dom.exports['${Q}'] = ${Q};
101
+ `}else{p+=f[0].replace(SS,"");let Q=this.removeMultilineComments(f[18]).split(",");for(let ct of Q){let qt=ct.trim();d+=`$happy_dom.exports['${qt}'] = ${qt};
102
+ `}}else if(lt!==-1){let Q=t.substring(lt,f.index+1);p+=Q,this.parseSyntax(Q,lt)}else p+=f[0],this.parseSyntax(f[0],f.index);X=i.lastIndex}if(this.debug)return{imports:n,execute:async()=>{}};if(b&&!O2.test(b)&&(b=`
103
+ ${b};`),!o.disableErrorCapturing&&o.errorCapture===me.tryAndCatch?b="(async function anonymous($happy_dom) { try {"+b:b="(async function anonymous($happy_dom) {"+b,p=b+p,X===0?p+=t:p+=t.substring(X),p+=`
104
+ `+d,a.length>0){p+=`$happy_dom.addCircularImportResolver(() => {
105
+ `;for(let Q of a)for(let ct of Q.properties)ct.alias?p+=`${ct.alias} = $happy_dom.imports.get('${Q.url}')['${ct.name}'];
106
+ `:p+=`${ct.name} = $happy_dom.imports.get('${Q.url}')['${ct.name}'];
107
+ `;p+="});"}!o.disableErrorCapturing&&o.errorCapture===me.tryAndCatch&&(p+="} catch(e) { $happy_dom.dispatchError(e); }"),p+="})";try{return{imports:n,execute:this.window[Wi](p,{filename:r||e})}}catch(Q){let ct=this.getError(e,t,r),qt=ct?new this.window.SyntaxError(`Failed to parse module in '${e}'. Execution error: ${Q.message}. Compile error: ${ct}`):Q;if(Q.message=`Failed to parse module in '${r}': ${qt.message}`,o.disableErrorCapturing||o.errorCapture!==me.tryAndCatch)throw qt;return this.window[he](qt),{imports:n,execute:async()=>{}}}}parseSyntax(e,t){let r=new RegExp(L2),o=this.count,i=this.debug,n=this.debugCount,a=null,m,p;for(t++;a=r.exec(e);)m=e[a.index-1]||" ",p=m==="\\"&&e[a.index-2]!=="\\",a[1]?o.simpleString===0&&o.doubleString===0&&o.singleLineComment===0&&o.regExpSquareBrackets===0&&(this.templateString.length===0||this.templateString[0]>0)&&(o.comment===1?m==="*"&&(o.comment=0,i&&(n.comment.length=0)):o.regExp===0?e[a.index+1]==="*"?(o.comment=1,i&&(n.comment=[t+a.index])):e[a.index+1]==="/"?(o.singleLineComment=1,i&&(n.singleLineComment=[t+a.index])):k2.test(this.getNonSpacePrecedingToken(e,a.index))&&(o.regExp=1,i&&(n.regExp=[t+a.index])):p||(o.regExp=0,i&&(n.regExp.length=0))):a[2]?o.simpleString===0&&o.doubleString===0&&o.regExp===0&&o.comment===0&&o.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)&&(a[2]==="("?(o.parentheses++,i&&n.parentheses.push(t+a.index)):a[2]===")"&&o.parentheses>0&&(o.parentheses--,i&&n.parentheses.pop())):a[3]?o.simpleString===0&&o.doubleString===0&&o.regExp===0&&o.comment===0&&o.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)&&(a[3]==="{"?(this.templateString.length&&this.templateString[0]++,o.curlyBraces++,i&&n.curlyBraces.push(t+a.index)):a[3]==="}"&&(this.templateString.length&&this.templateString[0]>0&&this.templateString[0]--,o.curlyBraces>0&&(o.curlyBraces--,i&&n.curlyBraces.pop()))):a[4]?o.simpleString===0&&o.doubleString===0&&o.comment===0&&o.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)&&(o.regExp===1?p||(a[4]==="["&&o.regExpSquareBrackets===0?(o.regExpSquareBrackets=1,i&&(n.regExpSquareBrackets=[t+a.index])):a[4]==="]"&&o.regExpSquareBrackets===1&&(o.regExpSquareBrackets=0,i&&(n.regExpSquareBrackets.length=0))):a[4]==="["?(o.squareBrackets++,i&&n.squareBrackets.push(t+a.index)):a[4]==="]"&&o.squareBrackets>0&&(o.squareBrackets--,i&&n.squareBrackets.pop())):a[5]?o.simpleString===0&&o.doubleString===0&&o.comment===0&&o.singleLineComment===0&&o.regExp===0&&!p&&this.templateString[0]===0&&(this.templateString[0]=1,o.curlyBraces++,i&&n.curlyBraces.push(t+a.index)):a[6]?o.simpleString===0&&o.doubleString===0&&o.comment===0&&o.singleLineComment===0&&o.regExp===0&&!p&&(this.templateString?.[0]===0?this.templateString.shift():this.templateString.unshift(0)):a[7]?o.doubleString===0&&o.comment===0&&o.singleLineComment===0&&o.regExp===0&&!p&&(this.templateString.length===0||this.templateString[0]>0)&&(o.simpleString===0?(o.simpleString=1,i&&(n.simpleString=[t+a.index])):(o.simpleString=0,i&&(n.simpleString.length=0))):a[8]?o.simpleString===0&&o.comment===0&&o.singleLineComment===0&&o.regExp===0&&!p&&(this.templateString.length===0||this.templateString[0]>0)&&(o.doubleString===0?(o.doubleString=1,i&&(n.doubleString=[t+a.index])):(o.doubleString=0,i&&(n.doubleString.length=0))):a[9]&&(o.singleLineComment=0,i&&(n.singleLineComment.length=0))}getError(e,t,r){if(this.count.comment===0&&this.count.singleLineComment===0&&this.count.parentheses===0&&this.count.curlyBraces===0&&this.count.squareBrackets===0&&this.count.regExp===0&&this.count.regExpSquareBrackets===0&&this.count.simpleString===0&&this.count.doubleString===0)return null;this.debug||(this.debug=!0,this.compile(e,t,r));let o=this.debugCount;if(o.comment.length>0){let{line:i,column:n}=this.getLineAndColumn(t,o.comment[0]);return`Missing end of comment on line ${i} and column ${n}`}else if(o.regExp.length>0){let{line:i,column:n}=this.getLineAndColumn(t,o.regExp[0]);return`Missing end of regular expression on line ${i} and column ${n}`}else if(o.regExpSquareBrackets.length>0){let{line:i,column:n}=this.getLineAndColumn(t,o.regExpSquareBrackets[0]);return`Missing end of regular expression square brackets on line ${i} and column ${n}`}else if(o.simpleString.length>0){let{line:i,column:n}=this.getLineAndColumn(t,o.simpleString[0]);return`Missing end of single quote string on line ${i} and column ${n}`}else if(o.doubleString.length>0){let{line:i,column:n}=this.getLineAndColumn(t,o.doubleString[0]);return`Missing end of double quote string on line ${i} and column ${n}`}else if(o.parentheses.length>0){let{line:i,column:n}=this.getLineAndColumn(t,o.parentheses[0]);return`Missing end of parentheses on line ${i} and column ${n}`}else if(o.curlyBraces.length>0){let{line:i,column:n}=this.getLineAndColumn(t,o.curlyBraces[0]);return`Missing end of curly braces on line ${i} and column ${n}`}else if(o.squareBrackets.length>0){let{line:i,column:n}=this.getLineAndColumn(t,o.squareBrackets[0]);return`Missing end of square brackets on line ${i} and column ${n}`}else if(o.escapeTemplateString.length>0){let{line:i,column:n}=this.getLineAndColumn(t,o.escapeTemplateString[0]);return`Missing end of escaped template string on line ${i} and column ${n}`}return null}getLineAndColumn(e,t){let r=e.substring(0,t).split(`
108
+ `),o=r.length,i=r[r.length-1].length;return{line:o,column:i}}getNonSpacePrecedingToken(e,t){t--;let r=e[t];for(;r===" "||r===`
109
+ `||r===" ";)t--,r=e[t];return r||";"}removeMultilineComments(e){let t=new RegExp(M2),r,o=0,i=0,n="";for(;r=t.exec(e);)o===0&&(n+=e.substring(i,r.index)),r[0]==="/*"?o++:r[0]==="*/"&&o>0&&o--,i=t.lastIndex;return n+=e.substring(i),n}reset(){this.count={comment:0,singleLineComment:0,parentheses:0,curlyBraces:0,squareBrackets:0,regExp:0,regExpSquareBrackets:0,escapeTemplateString:0,simpleString:0,doubleString:0},this.debugCount={comment:[],singleLineComment:[],parentheses:[],curlyBraces:[],squareBrackets:[],regExp:[],regExpSquareBrackets:[],escapeTemplateString:[],simpleString:[],doubleString:[]},this.templateString=[]}};var Ab,Tb,Bm,Um=class{constructor(e){s(this,"url");x(this,Ab);x(this,Tb);x(this,Bm,null);w(this,Ab,e.window),this.url=e.url,w(this,Tb,e.source)}async evaluate(){if(u(this,Bm))return u(this,Bm);let e;try{e=JSON.parse(u(this,Tb))}catch(t){throw new(u(this,Ab)).TypeError(`Failed to parse module "${this.url.href}": ${t.message}`)}return w(this,Bm,{default:e}),u(this,Bm)}async preload(){await this.evaluate()}};Ab=new WeakMap,Tb=new WeakMap,Bm=new WeakMap;var fp,Nb,Sp,Pp=class{constructor(e){s(this,"url");x(this,fp);x(this,Nb,[]);x(this,Sp,null);w(this,fp,e.window),this.url=e.url}async evaluate(){throw new(u(this,fp)).TypeError("Unresolved module. We should never end up here.")}async preload(){throw new(u(this,fp)).TypeError("Unresolved module. We should never end up here.")}addResolveListener(e,t){if(u(this,Sp)){t(u(this,Sp));return}u(this,Nb).push({resolve:e,reject:t})}resolve(e){e&&w(this,Sp,e);for(let t of u(this,Nb))e?t.reject(e):t.resolve(null)}};fp=new WeakMap,Nb=new WeakMap,Sp=new WeakMap;import tN from"fs";import V2 from"path";import I2 from"child_process";var Lb=class{static getScript(e){let t={},r=Object.keys(e.headers).sort();for(let o of r)t[o]=e.headers[o];return`
110
+ const sendRequest = require('http${e.url.protocol==="https:"?"s":""}').request;
111
+ const options = ${JSON.stringify({method:e.method,headers:t,agent:!1,rejectUnauthorized:!e.disableStrictSSL,key:e.url.protocol==="https:"?ju.key:void 0,cert:e.url.protocol==="https:"?ju.cert:void 0},null,4)};
112
+ const request = sendRequest(${JSON.stringify(e.url.href)}, options, (incomingMessage) => {
113
+ let data = Buffer.alloc(0);
114
+ incomingMessage.on('data', (chunk) => {
115
+ data = Buffer.concat([data, Buffer.from(chunk)]);
116
+ });
117
+ incomingMessage.on('end', () => {
118
+ console.log(JSON.stringify({
119
+ error: null,
120
+ incomingMessage: {
121
+ statusCode: incomingMessage.statusCode,
122
+ statusMessage: incomingMessage.statusMessage,
123
+ rawHeaders: incomingMessage.rawHeaders,
124
+ data: data.toString('base64')
125
+ }
126
+ }));
127
+ });
128
+ incomingMessage.on('error', (error) => {
129
+ console.log(JSON.stringify({ error: error.message, incomingMessage: null }));
130
+ });
131
+ });
132
+ request.write(Buffer.from('${e.body?e.body.toString("base64"):""}', 'base64'));
133
+ request.end();
134
+ `}};import Cb from"zlib";var lr,Ut,Mb,kb=class kb{constructor(e){s(this,"request");s(this,"redirectCount",0);s(this,"disableCache");s(this,"disableSameOriginPolicy");s(this,"interceptor");s(this,"requestHeaders");x(this,lr);x(this,Ut);x(this,Mb,null);w(this,lr,e.browserFrame),w(this,Ut,e.window),w(this,Mb,e.unfilteredHeaders??null),this.request=typeof e.url=="string"||e.url instanceof Ie?new e.window.Request(e.url,e.init):e.url,e.contentType&&(this.request[Oe]=e.contentType),this.redirectCount=e.redirectCount??0,this.disableCache=e.disableCache??!1,this.disableSameOriginPolicy=e.disableSameOriginPolicy??u(this,lr).page.context.browser.settings.fetch.disableSameOriginPolicy??!1,this.interceptor=u(this,lr).page.context.browser.settings.fetch.interceptor,this.requestHeaders=u(this,lr).page.context.browser.settings.fetch.requestHeaders}send(){if(Ls.prepareRequest(new Ie(u(this,Ut).location.href),this.request),this.requestHeaders){for(let r of this.requestHeaders)if(!r.url||(typeof r.url=="string"?r.url.startsWith(this.request.url):this.request.url.match(r.url)))for(let[o,i]of Object.entries(r.headers))this.request.headers.set(o,i)}if(this.interceptor?.beforeSyncRequest){let r=this.interceptor.beforeSyncRequest({request:this.request,window:u(this,Ut)});if(typeof r=="object")return r}if(ki.validateSchema(this.request),this.request.signal[we])throw this.request.signal[ui]!==void 0?this.request.signal[ui]:new(u(this,Ut)).DOMException("signal is aborted without reason",A.abortError);if(this.request[Ce].protocol==="data:"){let r=fm.parse(this.request.url),o={status:200,statusText:"OK",ok:!0,url:this.request.url,redirected:!1,headers:new(u(this,Ut)).Headers({"Content-Type":r.type}),body:r.buffer,[wo]:null},i=this.interceptor?.afterSyncResponse?this.interceptor.afterSyncResponse({window:u(this,Ut),response:o,request:this.request}):void 0;return typeof i=="object"?i:o}if(this.request[Ce].protocol==="http:"&&u(this,Ut).location.protocol==="https:")throw new(u(this,Ut)).DOMException(`Mixed Content: The page at '${u(this,Ut).location.href}' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint '${this.request.url}'. This request has been blocked; the content must be served over HTTPS.`,A.securityError);let e=this.getCachedResponse();if(e)return e;let t=this.getVirtualServerResponse();if(t)return t;if(!this.compliesWithCrossOriginPolicy())throw u(this,Ut).console.warn(`Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at "${this.request.url}".`),new(u(this,Ut)).DOMException(`Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at "${this.request.url}".`,A.networkError);return this.sendRequest()}getCachedResponse(){if(this.disableCache)return null;let e=u(this,lr).page.context.responseCache.get(this.request);if(!e||e.response.waitingForBody)return null;if(e.state===sy.stale){let t=new(u(this,Ut)).Headers(e.request.headers);if(e.etag)t.set("If-None-Match",e.etag);else{if(!e.lastModified)return null;t.set("If-Modified-Since",new Date(e.lastModified).toUTCString())}if(e.etag||!e.staleWhileRevalidate){let o=new kb({browserFrame:u(this,lr),window:u(this,Ut),url:this.request.url,init:{headers:t,method:e.request.method},disableCache:!0,disableSameOriginPolicy:!0}).send(),i=o.status!==304?o.body:null;if(e=u(this,lr).page.context.responseCache.add(this.request,{...o,body:i,waitingForBody:!1}),o.status!==304)return o}else new Wo({browserFrame:u(this,lr),window:u(this,Ut),url:this.request.url,init:{headers:t,method:e.request.method},disableCache:!0,disableSameOriginPolicy:!0}).send().then(o=>{o.buffer().then(i=>{u(this,lr).page.context.responseCache.add(this.request,{...o,body:i,waitingForBody:!1})})})}return!e||e.response.waitingForBody?null:{status:e.response.status,statusText:e.response.statusText,ok:!0,url:e.response.url,redirected:!1,headers:e.response.headers,body:e.response.body,[wo]:e.response[wo]||null}}getVirtualServerResponse(){let e=ks.getFilepath(u(this,Ut),this.request.url);if(!e)return null;if(this.request.method!=="GET"){u(this,lr).page.console.error(`${this.request.method} ${this.request.url} 404 (Not Found)`);let n=ks.getNotFoundSyncResponse(u(this,Ut),this.request.url),a=this.interceptor?.afterSyncResponse?this.interceptor.afterSyncResponse({window:u(this,Ut),response:n,request:this.request}):void 0;return typeof a=="object"?a:n}let t;try{e=tN.statSync(e).isDirectory()?V2.join(e,"index.html"):e,t=tN.readFileSync(e)}catch{u(this,lr).page.console.error(`${this.request.method} ${this.request.url} 404 (Not Found)`);let n=ks.getNotFoundSyncResponse(u(this,Ut),this.request.url),a=this.interceptor?.afterSyncResponse?this.interceptor.afterSyncResponse({window:u(this,Ut),response:n,request:this.request}):void 0;return typeof a=="object"?a:n}let r={status:200,statusText:"",ok:!0,url:this.request.url,redirected:!1,headers:new(u(this,Ut)).Headers,body:t,[wo]:e},o=this.interceptor?.afterSyncResponse?this.interceptor.afterSyncResponse({window:u(this,Ut),response:r,request:this.request}):void 0,i=typeof o=="object"?o:r;return u(this,lr).page.context.responseCache.add(this.request,{...i,waitingForBody:!1,virtual:!0}),i}compliesWithCrossOriginPolicy(){if(this.disableSameOriginPolicy||!Ci.isCORS(u(this,Ut).location.href,this.request[Ce]))return!0;let e=u(this,lr).page.context.preflightResponseCache.get(this.request);if(e)return!(e.allowOrigin!=="*"&&e.allowOrigin!==u(this,Ut).location.origin||e.allowMethods.length!==0&&!e.allowMethods.includes(this.request.method));let t=[];for(let[m]of this.request.headers)t.push(m.toLowerCase());let r=new(u(this,Ut)).Headers({"Access-Control-Request-Method":this.request.method,Origin:u(this,Ut).location.origin});t.length>0&&r.set("Access-Control-Request-Headers",t.slice().sort().join(","));let i=new kb({browserFrame:u(this,lr),window:u(this,Ut),url:this.request.url,init:{method:"OPTIONS"},disableCache:!0,disableSameOriginPolicy:!0,unfilteredHeaders:r}).send();if(!i.ok)return!1;let n=i.headers.get("Access-Control-Allow-Origin");if(!n||n!=="*"&&n!==u(this,Ut).location.origin)return!1;let a=[];if(i.headers.has("Access-Control-Allow-Methods")){let m=i.headers.get("Access-Control-Allow-Methods");if(m!=="*")for(let p of m.split(","))a.push(p.trim().toUpperCase())}return!(a.length!==0&&!a.includes(this.request.method))}sendRequest(){if(!this.request[bs]&&this.request.body)throw new(u(this,Ut)).DOMException("Streams are not supported as request body for synchronous requests.",A.notSupportedError);let e=Lb.getScript({url:this.request[Ce],method:this.request.method,headers:Cs.getRequestHeaders({browserFrame:u(this,lr),window:u(this,Ut),request:this.request,baseHeaders:u(this,Mb)}),disableStrictSSL:u(this,lr).page.context.browser.settings.fetch.disableStrictSSL,body:this.request[bs]}),t=I2.execFileSync(process.argv[0],["-e",e],{encoding:"buffer",maxBuffer:1024*1024*1024});if(!t.length)throw new(u(this,Ut)).DOMException(`Synchronous fetch to "${this.request.url}" failed.`,A.networkError);let{error:r,incomingMessage:o}=JSON.parse(t.toString());if(r)throw new(u(this,Ut)).DOMException(`Synchronous fetch to "${this.request.url}" failed. Error: ${r}`,A.networkError);let i=wm.parseResponseHeaders({browserFrame:u(this,lr),requestURL:this.request[Ce],rawHeaders:o.rawHeaders}),n={status:o.statusCode,statusText:o.statusMessage,ok:o.statusCode>=200&&o.statusCode<300,url:this.request.url,redirected:this.redirectCount>0,headers:i,body:this.parseIResponseBody({headers:i,status:o.statusCode,body:Buffer.from(o.data,"base64")})},a=this.handleRedirectResponse(n)||n;!this.disableCache&&!a.redirected&&u(this,lr).page.context.responseCache.add(this.request,{status:a.status,statusText:a.statusText,url:a.url,headers:a.headers,body:a.body,waitingForBody:!1});let m=this.interceptor?.afterSyncResponse?this.interceptor.afterSyncResponse({window:u(this,Ut),response:a,request:this.request}):void 0,p=typeof m=="object"?m:a;return p.ok||u(this,lr).page.console.error(`${this.request.method} ${this.request.url} ${p.status} (${p.statusText})`),p}parseIResponseBody(e){let t=e.headers.get("Content-Encoding");if(this.request.method==="HEAD"||t===null||e.status===204||e.status===304)return e.body;try{if(t==="gzip"||t==="x-gzip")return Cb.gunzipSync(e.body,{flush:Cb.constants.Z_SYNC_FLUSH,finishFlush:Cb.constants.Z_SYNC_FLUSH});if(t==="deflate"||t==="x-deflate")return Cb.inflateSync(e.body);if(t==="br")return Cb.brotliDecompressSync(e.body)}catch(r){throw new(u(this,Ut)).DOMException(`Failed to read response body. Error: ${r.message}.`,A.encodingError)}return e.body}handleRedirectResponse(e){if(!Rl.isRedirect(e.status))return null;switch(this.request.redirect){case"error":throw new(u(this,Ut)).DOMException(`URI requested responds with a redirect, redirect mode is set to "error": ${this.request.url}`,A.abortError);case"manual":return null;case"follow":let t=e.headers.get("Location"),r=e.status===303||(e.status===301||e.status===302)&&this.request.method==="POST",o=null;if(t!==null)try{o=new Ie(t,this.request.url)}catch{throw new(u(this,Ut)).DOMException(`URI requested responds with an invalid redirect URL: ${t}`,A.uriMismatchError)}if(o===null)return null;if(Rl.isMaxRedirectsReached(this.redirectCount))throw new(u(this,Ut)).DOMException(`Maximum redirects reached at: ${this.request.url}`,A.networkError);let i=new(u(this,Ut)).Headers(this.request.headers),n={method:this.request.method,signal:this.request.signal,referrer:this.request.referrer,referrerPolicy:this.request.referrerPolicy,credentials:this.request.credentials,headers:i,body:this.request[bs]};(this.request.credentials==="omit"||this.request.credentials==="same-origin"&&Ci.isCORS(u(this,Ut).location.href,o))&&(i.delete("cookie"),i.delete("cookie2")),r&&(n.method="GET",n.body=void 0,i.delete("Content-Length"),i.delete("Content-Type"));let a=Ls.getReferrerPolicyFromHeader(i);return a&&(n.referrerPolicy=a),new kb({browserFrame:u(this,lr),window:u(this,Ut),url:o,init:n,redirectCount:this.redirectCount+1,contentType:r?null:this.request[Oe]}).send();default:throw new(u(this,Ut)).DOMException(`Redirect option '${this.request.redirect}' is not a valid value of IRequestRedirect`)}}};lr=new WeakMap,Ut=new WeakMap,Mb=new WeakMap;var Gm=kb;var Gl=class{constructor(e){s(this,"window");this.window=e}async fetch(e,t,r){let o=new ot(this.window).getBrowserFrame();if(!o)return{content:"",virtualServerFile:null};if(t==="script"||t==="style"){let a=Fn.getKey({url:String(e),destination:t,mode:"cors",credentialsMode:r?.credentials||"same-origin"}),m=this.window.document[Po].get(a);if(m){this.window.document[Po].delete(a);let p=m.response||await m.onResponseAvailable();if(p&&!p.ok)throw new this.window.DOMException(`Failed to perform request to "${new Ie(e,this.window.location.href).href}". Status ${m.response?.status||"0"} ${m.response?.statusText||"Unknown"}.`);return{content:m.response?.[Ct]?.toString()||"",virtualServerFile:m.response?.[wo]||null}}}let n=await new Wo({browserFrame:o,window:this.window,url:e,disableSameOriginPolicy:t==="script"||t==="style",disablePreload:!0,init:{credentials:r?.credentials,referrerPolicy:r?.referrerPolicy}}).send();if(!n.ok)throw new this.window.DOMException(`Failed to perform request to "${new Ie(e,this.window.location.href).href}". Status ${n.status} ${n.statusText}.`);return{content:await n.text(),virtualServerFile:n[wo]||null}}fetchSync(e,t,r){let o=new ot(this.window).getBrowserFrame();if(!o)return{content:"",virtualServerFile:null};if(t==="script"||t==="style"){let a=Fn.getKey({url:String(e),destination:t,mode:"cors",credentialsMode:r?.credentials||"same-origin"}),m=this.window.document[Po].get(a);if(m&&m.response){if(this.window.document[Po].delete(a),!m.response.ok)throw new this.window.DOMException(`Failed to perform request to "${new Ie(e,this.window.location.href).href}". Status ${m.response.status} ${m.response.statusText}.`);return{content:m.response?.[Ct]?.toString()||"",virtualServerFile:m.response?.[wo]||null}}}let n=new Gm({browserFrame:o,window:this.window,url:e,disableSameOriginPolicy:!0,init:{credentials:r?.credentials,referrerPolicy:r?.referrerPolicy}}).send();if(!n.ok)throw new this.window.DOMException(`Failed to perform request to "${new Ie(e,this.window.location.href).href}". Status ${n.status} ${n.statusText}.`);return{content:n.body?.toString()||"",virtualServerFile:n[wo]||null}}};var Si=class{constructor(e,t){s(this,"window");s(this,"parentURL");this.window=e,this.parentURL=t}async getModule(e,t){let r=this.window,o=this.parentURL,i=Fs.getURL(r,o,e),n=i.href,a=t?.with?.type||"esm";if(a!=="esm"&&a!=="css"&&a!=="json")throw new r.TypeError(`Failed to import module "${i}" from "${o}": Unknown type "${a}"`);let m=r[Nn][a].get(n);if(m)return m instanceof Pp?(await new Promise((X,lt)=>{m.addResolveListener(X,lt)}),r[Nn][a].get(n)):m;if(!new ot(r).getBrowserFrame())throw new r.TypeError(`Failed to import module "${i}" from "${o}": Window is closed and is no longer attached to a frame`);let b=new Pp({window:r,url:i}),d=r[si],f=d.startTask();r[Nn][a].set(n,b);let v=new Gl(r),L;try{L=await v.fetch(i,"module")}catch(X){throw d.endTask(f),b.resolve(X),X}d.endTask(f);let C;switch(a){case"json":C=new Um({window:r,url:i,source:L.content});break;case"css":C=new _m({window:r,url:i,source:L.content});break;case"esm":C=new Hl({window:r,url:i,source:L.content,sourceURL:L.virtualServerFile});break}return r[Nn][a].set(n,C),b.resolve(),C}async importModule(e,t){let r=new ot(this.window).getBrowserFrame();if(!r)return{};let o=r[bt],i=o?.startTask(),a=await(await this.getModule(e,t)).evaluate();return o.endTask(i),a}};var D2={imports:[],execute:async()=>{}},eN,Rb,Ob,Vb,xy,Hm,$l,Ib,tw;eN=y;var ew=class ew{constructor(e){x(this,Ib);s(this,"url");s(this,eN);x(this,Rb);x(this,Ob);x(this,Vb,!1);x(this,xy,null);x(this,Hm,null);x(this,$l,null);this[y]=e.window,this.url=e.url,w(this,Rb,e.source),w(this,Ob,e.sourceURL||null)}async evaluate(e=[],t=null){if(u(this,$l))return e.includes(this.url.href)?(t&&u(this,$l).push(t),u(this,Hm)):new Promise(L=>{u(this,$l).push(L)});if(u(this,Hm))return u(this,Hm);let r=F(this,Ib,tw).call(this),o=[],i=this[y],n=new ot(i).getBrowserFrame(),a=new Si(i,this.url);if(!n)return{};let m={};w(this,Hm,m),w(this,$l,[]);for(let L of r.imports)o.push(a.getModule(L.url,{with:{type:L.type}}));let p=new Map,b=null,d=()=>{b&&b()};if(o.length){let L=await Promise.all(o),C=[...e,this.url.href];for(let X of L)if(X instanceof ew){let lt=await X.evaluate(C,d);p.set(X.url.href,lt)}else{let lt=await X.evaluate();p.set(X.url.href,lt)}}let f=this.url.href;r.execute({dispatchError:i[he].bind(i),dynamicImport:a.importModule.bind(a),importMeta:{url:f,resolve:L=>new F2(L,f).href},imports:p,exports:m,addCircularImportResolver:L=>b=L});let v=u(this,$l);w(this,$l,null);for(let L of v)L(m);return m}async preload(){if(u(this,Vb))return;w(this,Vb,!0);let e=F(this,Ib,tw).call(this),t=[],r=this[y],o=new ot(r).getBrowserFrame(),i=new Si(r,this.url);if(!o)return;for(let m of e.imports)t.push(i.getModule(m.url,{with:{type:m.type}}));let n=await Promise.all(t),a=[];for(let m of n)a.push(m.preload());await Promise.all(a)}};Rb=new WeakMap,Ob=new WeakMap,Vb=new WeakMap,xy=new WeakMap,Hm=new WeakMap,$l=new WeakMap,Ib=new WeakSet,tw=function(){if(u(this,xy))return u(this,xy);w(this,xy,D2);let e=new vb(this[y]);return w(this,xy,e.compile(this.url.href,u(this,Rb),u(this,Ob))),u(this,xy)};var Hl=ew;import{Script as _2}from"vm";var ql=class{static evaluate(e,t){if(!e.window)throw new Error('The frame has been destroyed, the "window" property is not set.');return t=typeof t=="string"?new _2(t):t,t.runInContext(e.window)}static async evaluateModule(e,t){if(!e.window)throw new Error('The frame has been destroyed, the "window" property is not set.');let r=e.window;if(t?.code){let o=t.url?new URL(t.url,r.location.href):r.location,i=t.code;switch(t?.type||"esm"){case"esm":return await new Hl({window:r,url:o,source:i}).evaluate();case"json":return await new Um({window:r,url:o,source:i}).evaluate();case"css":return await new _m({window:r,url:o,source:i}).evaluate()}}return t?.url?await(await new Si(r,r.location).getModule(t.url,{with:{type:t.type||"esm"}})).evaluate():{}}};var $m=class{constructor(){s(this,"currentItem",{title:"",href:"about:blank",state:null,popState:!1,scrollRestoration:ts.auto,method:"GET",formData:null});s(this,"items",[this.currentItem])}push(e){let t=this.items.indexOf(this.currentItem);t!==this.items.length-1&&(this.items.length=t+1),this.items.push(e),this.currentItem=e}replace(e){let t=this.items.indexOf(this.currentItem);if(t!==this.items.length-1&&(this.items.length=t+1),t===-1)throw new Error("Current history item not found");this.currentItem=e,this.items[t]=e}clear(){this.items.length=0,this.currentItem={title:"",href:"about:blank",state:null,popState:!1,scrollRestoration:ts.auto,method:"GET",formData:null},this.items.push(this.currentItem)}};var rN,oN,iN,sN,nN,lN;lN=bt,nN=ge,sN=So,iN=ji,oN=al,rN=We;var Ey=class{constructor(e){s(this,"childFrames",[]);s(this,"parentFrame",null);s(this,"page");s(this,"closed",!1);s(this,lN,new os(this));s(this,nN,{navigation:[]});s(this,sN,null);s(this,iN,null);s(this,oN,!1);s(this,rN,new $m);this.page=e,e.context.browser.contexts[0]?.pages[0]?.mainFrame&&(this.window=new this.page.context.browser.windowClass(this),e.context.browser[_r]&&e.context.browser[_r].observe(this.window))}get content(){if(!this.window)throw new Error('The frame has been destroyed, the "window" property is not set.');return this.window.document.documentElement.outerHTML}set content(e){if(!this.window)throw new Error('The frame has been destroyed, the "window" property is not set.');this.window.document[Zs]=!0,this.window.document[Qs]=!1,this.window.document.open(),this.window.document.write(e)}get url(){if(!this.window)throw new Error('The frame has been destroyed, the "window" property is not set.');return this.window.location.href}set url(e){if(!this.window)throw new Error('The frame has been destroyed, the "window" property is not set.');this.window[ni][no](this,xo.getRelativeURL(this,e).href)}get document(){return this.window?.document??null}async waitUntilComplete(){await Promise.all([this[bt].waitUntilComplete(),...this.childFrames.map(e=>e.waitUntilComplete())])}waitForNavigation(){return new Promise(e=>this[ge].navigation.push(e))}abort(){return this.childFrames.length?new Promise((e,t)=>{Promise.all(this.childFrames.map(r=>r.abort()).concat([this[bt].abort()])).then(()=>e()).catch(t)}):this[bt].abort()}evaluate(e){return ql.evaluate(this,e)}evaluateModule(e){return ql.evaluateModule(this,e)}goto(e,t){return oo.navigate({windowClass:this.page.context.browser.windowClass,frame:this,url:e,goToOptions:t})}goBack(e){return oo.navigateBack({windowClass:this.page.context.browser.windowClass,frame:this,goToOptions:e})}goForward(e){return oo.navigateForward({windowClass:this.page.context.browser.windowClass,frame:this,goToOptions:e})}goSteps(e,t){return oo.navigateSteps({windowClass:this.page.context.browser.windowClass,frame:this,steps:e,goToOptions:t})}reload(e){return oo.reload({windowClass:this.page.context.browser.windowClass,frame:this,goToOptions:e})}};var wp=class{static validateCrossOriginPolicy(e,t){let r=e.page.context.browser.settings,o=e.page.mainFrame.window.location;return e[So]?o=e[So].window.location:e.parentFrame&&(o=e.parentFrame.window.location),!(r.navigation.crossOriginPolicy===gp.sameOrigin&&o.protocol!=="about:"&&t.protocol!=="about:"&&t.protocol!=="javascript:"&&o.origin!==t.origin||r.navigation.crossOriginPolicy===gp.strictOrigin&&o.protocol==="https:"&&t.protocol==="http:")}static validateFrameNavigation(e){let t=e.page.context.browser.settings;return!(e instanceof Ey&&e.page.context===e.page.context.browser.defaultContext&&e.page.context.pages[0]===e.page&&e.page.mainFrame===e||t.navigation.disableMainFrameNavigation&&e.page.mainFrame===e||t.navigation.disableChildFrameNavigation&&e.page.mainFrame!==e||t.navigation.disableChildPageNavigation&&e[So])}};var oo=class l{static async navigate(e){let{windowClass:t,frame:r,url:o,formData:i,method:n,goToOptions:a,disableHistory:m}=e,p=r.page.context.browser[_r],b=a?.referrer||r.window.location.origin,d=xo.getRelativeURL(r,o),f=new URL(d.href.split("#")[0]),v=new URL(r.url.split("#")[0]),L=()=>{let yr=r[ge].navigation;r[ge].navigation=[];for(let ri of yr)ri()};if(!r.window)throw new Error('The frame has been destroyed, the "window" property is not set.');if(f.href===v.href&&d.hash&&d.hash!==r.window?.location.hash){let yr=r[We];return m||(yr.currentItem.popState=!0,yr.push({title:"",href:d.href,state:null,popState:!0,scrollRestoration:ts.manual,method:n||(i?"POST":"GET"),formData:i||null})),r.window.location[no](r,d.href),null}if(d.protocol==="javascript:"){if(r&&r.page.context.browser.settings.enableJavaScriptEvaluation){let yr=r.window[si],ri=r[bt],ha=yr.startTask(),Lf=d.href.replace("javascript:","");await new Promise(ee=>{r.window.requestAnimationFrame(()=>{let XD=setImmediate(()=>{ri.endTask(YD),ee(null)}),YD=ri.startTask(()=>()=>{clearImmediate(XD),ee(null)});r.window[Wi](Lf,{filename:r.url})})}),yr.endTask(ha),L()}return null}if(!wp.validateCrossOriginPolicy(r,d))return null;if(!wp.validateFrameNavigation(r))return r.page.context.browser.settings.navigation.disableFallbackToSetURL||r.window.location[no](r,d.href),null;m||r[We].push({title:"",href:d.href,state:null,popState:!1,scrollRestoration:ts.auto,method:n||(i?"POST":"GET"),formData:i||null});let C=r.window,X=r[bt],lt=C.innerWidth,Q=C.innerHeight,ct=C.devicePixelRatio,qt=r.parentFrame?r.parentFrame.window:r.page.mainFrame.window,Nt=r.page.mainFrame.window;r[bt]=new os(r),r.window=new t(r,{url:d.href,width:lt,height:Q}),r.window[Mo]=qt,r.window[Yi]=Nt,r.window.devicePixelRatio=ct,p&&p.observe(r.window),b&&(r.window.document[Kr]=b);let te=r[bt].startTask(),Lt=()=>{X.destroy().then(()=>{p&&p.disconnect(C),r[bt].endTask(te)}),C[ye]()};if(r.childFrames.length?Promise.all(r.childFrames.map(yr=>Is.destroyFrame(yr))).then(Lt):Lt(),d.protocol==="about:")return a?.beforeContentCallback&&a.beforeContentCallback(r.window),r.page.context.browser.settings.navigation.beforeContentCallback&&r.page.context.browser.settings.navigation.beforeContentCallback(r.window),await new Promise(yr=>r.page.mainFrame.window.requestAnimationFrame(yr)),L(),null;let er=r.window[si],Dr=r[bt],hs=new r.window.AbortController,Gi=setTimeout(()=>{Dr.endTimer(Gi),hs.abort(new r.window.DOMException("The operation was aborted. Request timed out.",A.timeoutError))},a?.timeout??3e4);Dr.startTimer(Gi);let Tf=er.startTask(),ac=()=>{clearTimeout(Gi),Dr.endTimer(Gi),er.endTask(Tf),L()},yc=new r.window.Headers(a?.headers),Hi,mc;a?.hard&&yc.set("Cache-Control","no-cache");let Nf=new Wo({browserFrame:r,window:r.window,url:d.href,disableSameOriginPolicy:!0,init:{referrer:b,referrerPolicy:a?.referrerPolicy||"origin",signal:hs.signal,method:n||(i?"POST":"GET"),headers:yc,body:i}});try{if(Hi=await Nf.send(),r.parentFrame){let yr=r.parentFrame.window.location,ri=Hi.headers?.get("X-Frame-Options")?.toLowerCase(),ha=yr.origin===d.origin||d.origin==="null";if(ri==="deny"||ri==="sameorigin"&&!ha)throw new Error(`Refused to display '${o}' in a frame because it set 'X-Frame-Options' to '${ri}'.`)}mc=await Hi.text()}catch(yr){throw ac(),yr}return r.window?(Hi.url&&r.window[ni][no](r,Hi.url),Hi.ok||r.page.console.error(`GET ${d.href} ${Hi.status} (${Hi.statusText})`),a?.beforeContentCallback&&a.beforeContentCallback(r.window),r.page.context.browser.settings.navigation.beforeContentCallback&&r.page.context.browser.settings.navigation.beforeContentCallback(r.window),await new Promise(yr=>{r.window.requestAnimationFrame(()=>{let ri,ha=Dr.startTask(()=>()=>{clearImmediate(ri),yr(null)});ri=setImmediate(()=>{Dr.endTask(ha),yr(null)}),r.content=mc})}),ac(),Hi):null}static navigateBack(e){let{windowClass:t,frame:r,goToOptions:o}=e,i=r[We],n=i.items[i.items.indexOf(i.currentItem)-1];if(!n)return new Promise(p=>{r.window.requestAnimationFrame(()=>{let b=r[ge].navigation;r[ge].navigation=[];for(let d of b)d();p(null)})});let a=new URL(i.currentItem.href).origin,m=new URL(n.href).origin;return i.currentItem=n,!n.popState||a!==m?l.navigate({windowClass:t,frame:r,goToOptions:{...o,referrer:r.url},url:n.href,method:n.method,formData:n.formData,disableHistory:!0}):(r.window.location[no](r,n.href),r.window.dispatchEvent(new r.window.PopStateEvent("popstate",{state:n.state,hasUAVisualTransition:!1})),Promise.resolve(null))}static navigateForward(e){let{windowClass:t,frame:r,goToOptions:o}=e,i=r[We],n=i.items[i.items.indexOf(i.currentItem)+1];if(!n)return new Promise(p=>{r.window.requestAnimationFrame(()=>{let b=r[ge].navigation;r[ge].navigation=[];for(let d of b)d();p(null)})});let a=new URL(i.currentItem.href).origin,m=new URL(n.href).origin;return i.currentItem=n,!n.popState||a!==m?l.navigate({windowClass:t,frame:r,goToOptions:{...o,referrer:r.url},url:n.href,method:n.method,formData:n.formData,disableHistory:!0}):(r.window.location[no](r,n.href),r.window.dispatchEvent(new r.window.PopStateEvent("popstate",{state:n.state,hasUAVisualTransition:!1})),Promise.resolve(null))}static navigateSteps(e){if(!e.steps)return this.reload(e);let{windowClass:t,frame:r,goToOptions:o,steps:i}=e,n=r[We],a=n.items.indexOf(n.currentItem),m=a+i,p=n.items[m];if(!p)return new Promise(f=>{r.window.requestAnimationFrame(()=>{let v=r[ge].navigation;r[ge].navigation=[];for(let L of v)L();f(null)})});let b=new URL(n.currentItem.href).origin,d=!0;if(i<0){for(let f=a;f>m;f--)if(!n.items[f].popState||b!==new URL(n.items[f].href).origin){d=!1;break}}else for(let f=a;f<m;f++)if(!n.items[f].popState||b!==new URL(n.items[f].href).origin){d=!1;break}return n.currentItem=p,d?(r.window.location[no](r,p.href),r.window.dispatchEvent(new r.window.PopStateEvent("popstate",{state:p.state,hasUAVisualTransition:!1})),Promise.resolve(null)):l.navigate({windowClass:t,frame:r,goToOptions:{...o,referrer:r.url},url:p.href,method:p.method,formData:p.formData,disableHistory:!0})}static reload(e){let{windowClass:t,frame:r,goToOptions:o}=e,i=r[We];return l.navigate({windowClass:t,frame:r,goToOptions:{...o,referrer:r.url},url:i.currentItem.href,method:i.currentItem.method,formData:i.currentItem.formData,disableHistory:!0})}};var qm=class extends Li{get value(){for(let e of this[Y])if(e.checked)return e.value;return null}};var aN,yN,Fb,rw,ow=class ow extends B{constructor(){super();x(this,Fb);s(this,yN,null);s(this,aN);let t=new xe(this,[ow,B,dr,ft,_t]),r=new Proxy(this,{get:(o,i)=>{if(i==="length")return o[ko]().length;if(i in o||typeof i=="symbol")return t.bind(i),o[i];let n=Number(i);return isNaN(n)?o[fc](i)||void 0:o[ko]()[n]},set(o,i,n){if(t.bind(i),typeof i=="symbol")return o[i]=n,!0;let a=Number(i);return isNaN(a)&&(o[i]=n),!0},deleteProperty(o,i){if(typeof i=="symbol")return delete o[i],!0;let n=Number(i);return isNaN(n)&&delete o[i],!0},ownKeys(o){return Object.keys(o[ko]())},has(o,i){if(i in o)return!0;if(typeof i=="symbol")return!1;let n=o[ko](),a=Number(i);if(!isNaN(a)&&a>=0&&a<n.length)return!0;i=String(i);for(let m=0;m<n.length;m++){let p=n[m],b=p.getAttribute("id")||p.getAttribute("name");if(b&&b===i)return!0}return!1},defineProperty(o,i,n){if(t.preventBinding(i),!n.value)return Object.defineProperty(o,i,n),!0;let a=Number(n.value);return isNaN(a)?(Object.defineProperty(o,i,n),!0):!1},getOwnPropertyDescriptor(o,i){if(i in o)return Object.getOwnPropertyDescriptor(o,i);let n=o[ko](),a=Number(i);if(!isNaN(a)&&a>=0&&a<n.length)return{value:n[a],writable:!1,enumerable:!0,configurable:!0};for(let m=0;m<n.length;m++){let p=n[m],b=p.getAttribute("id")||p.getAttribute("name");if(b&&b===i)return{value:p,writable:!1,enumerable:!0,configurable:!0}}}});return this[Gt]=r,this[Bt]=r,r}get onformdata(){return S.getEventListener(this,"onformdata")}set onformdata(t){this[c].set("onformdata",t)}get onreset(){return S.getEventListener(this,"onreset")}set onreset(t){this[c].set("onreset",t)}get onsubmit(){return S.getEventListener(this,"onsubmit")}set onsubmit(t){this[c].set("onsubmit",t)}get elements(){return this[en]||(this[en]=new wy(h,this)),this[en]}get length(){return this[ko]().length}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get method(){return this.getAttribute("method")||"get"}set method(t){this.setAttribute("method",t)}get target(){return this.getAttribute("target")||""}set target(t){this.setAttribute("target",t)}get action(){if(!this.hasAttribute("action"))return this[T].location.href;try{return new URL(this.getAttribute("action"),this[T].location.href).href}catch{return""}}set action(t){this.setAttribute("action",t)}get encoding(){return this.getAttribute("encoding")||""}set encoding(t){this.setAttribute("encoding",t)}get enctype(){return this.getAttribute("enctype")||""}set enctype(t){this.setAttribute("enctype",t)}get autocomplete(){return this.getAttribute("autocomplete")||""}set autocomplete(t){this.setAttribute("autocomplete",t)}get acceptCharset(){return this.getAttribute("acceptcharset")||""}set acceptCharset(t){this.setAttribute("acceptcharset",t)}get noValidate(){return this.getAttribute("novalidate")!==null}set noValidate(t){t?this.setAttribute("novalidate",""):this.removeAttribute("novalidate")}submit(){F(this,Fb,rw).call(this)}requestSubmit(t){if(t?.formNoValidate||this.noValidate||this.checkValidity()){let o=new ey("submit",{bubbles:!0,cancelable:!0,submitter:t||this[Gt]});this.dispatchEvent(o),o.defaultPrevented||F(this,Fb,rw).call(this,t)}}reset(){for(let t of this[ko]())switch(t[tt]){case"TEXTAREA":t[J]=null;break;case"INPUT":t[J]=null,t[ca]=null;break;case"OUTPUT":t.textContent=t[Ro];break;case"SELECT":let r=!1;for(let o of t.options)if(o.hasAttribute("selected")){r=!0,o.selected=!0;break}!r&&t.options.length>0&&(t.options[0].selected=!0);break}this.dispatchEvent(new R("reset",{bubbles:!0,cancelable:!0}))}checkValidity(){let t={},r=!0;for(let o of this[ko]())o[tt]==="INPUT"&&o.type==="radio"&&o.name?t[o.name]||(t[o.name]=!0,o.checkValidity()||(r=!1)):o.checkValidity()||(r=!1);return r}reportValidity(){return this.checkValidity()}[(yN=en,aN=Gt,ht)](t=!1){return super[ht](t)}[ko](){let t=yt.querySelectorAll(this,"input,select,textarea,button,fieldset,object,output")[Y].slice();if(this[st]){let r=this.getAttribute("id");if(r)for(let o of yt.querySelectorAll(this[T],`input[form="${r}"],select[form="${r}"],textarea[form="${r}"],button[form="${r}"],fieldset[form="${r}"],object[form="${r}"],output[form="${r}"]`)[Y])t.includes(o)||t.push(o)}return t}[fc](t){let r=this[ko](),o=[];t=String(t);for(let i of r)(i.getAttribute("id")===t||i.getAttribute("name")===t)&&o.push(i);return o.length?o.length===1?o[0]:new qm(h,o):null}};Fb=new WeakSet,rw=function(t){let r=t?.formMethod||this.method;if(r==="dialog"){let m=null,p=this;for(;p;){if(p[tt]==="DIALOG"){m=p;break}p=p.parentElement}if(m){m.close(t?.value);return}}let o=t?.hasAttribute("formaction")?t?.formAction||this.action:this.action,i=new ot(this[y]).getBrowserFrame();if(!i)return;if(!o){this[T].location.hash="#blocked";return}let n=new this[y].FormData(this,t),a;switch(t?.formTarget||this.target){default:case"_self":a=i;break;case"_top":a=i.page.mainFrame;break;case"_parent":a=i.parentFrame??i;break;case"_blank":a=i.page.context.newPage().mainFrame,a[So]=i;break}if(r==="get"){let m=new URL(o);m.search="";for(let[p,b]of n)typeof b=="string"&&m.searchParams.append(p,b);oo.navigate({windowClass:this[T][fo]?.constructor,frame:a,url:m.href,goToOptions:{referrer:i.page.mainFrame.window.location.origin}});return}oo.navigate({windowClass:this[T][fo]?.constructor,frame:a,method:r,url:o,formData:n,goToOptions:{referrer:i.page.mainFrame.window.location.origin}})};var xp=ow;var Ep=class extends B{};var vp=class extends B{};var Ap=class extends B{};var Tp=class extends B{};var mN,uN,jn,Wl=class extends(uN=_t,mN=Ca,uN){constructor(t,r){super();s(this,"window",this);s(this,"location");s(this,mN,this);x(this,jn);this[Mo]=r??this,this[Yi]=r??this,this.location=new Proxy({},{get:()=>{throw new Ht(`Blocked a frame with origin "${this.parent.location.origin}" from accessing a cross-origin frame.`,A.securityError)},set:()=>{throw new Ht(`Blocked a frame with origin "${this.parent.location.origin}" from accessing a cross-origin frame.`,A.securityError)}}),w(this,jn,t)}get self(){return this[Ca]}set self(t){this[Ca]=t}get top(){return this[Yi]}get parent(){return this[Mo]}set parent(t){this[Mo]=t}get opener(){return u(this,jn).opener}get closed(){return u(this,jn).closed}blur(){u(this,jn).blur()}focus(){u(this,jn).focus()}close(){u(this,jn).close()}postMessage(t,r="*",o){u(this,jn).postMessage(t,r,o)}};jn=new WeakMap;var B2=["allow-downloads","allow-forms","allow-modals","allow-orientation-lock","allow-pointer-lock","allow-popups","allow-popups-to-escape-sandbox","allow-presentation","allow-same-origin","allow-scripts","allow-top-navigation","allow-top-navigation-by-user-activation","allow-top-navigation-to-custom-protocols"],pN,vy,br,Wm,Pi,hN,Db,_b,Np=class extends B{constructor(){super(...arguments);x(this,Pi);s(this,pN,null);x(this,vy,{window:null});x(this,br,null);x(this,Wm,null)}get onload(){return S.getEventListener(this,"onload")}set onload(t){this[c].set("onload",t)}get onerror(){return S.getEventListener(this,"onerror")}set onerror(t){this[c].set("onerror",t)}get src(){if(!this.hasAttribute("src"))return"";try{return new URL(this.getAttribute("src"),this[T].location.href).href}catch{return this.getAttribute("src")}}set src(t){this.setAttribute("src",t)}get allow(){return this.getAttribute("allow")||""}set allow(t){this.setAttribute("allow",t)}get height(){return this.getAttribute("height")||""}set height(t){this.setAttribute("height",t)}get width(){return this.getAttribute("width")||""}set width(t){this.setAttribute("width",t)}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get sandbox(){return this[bc]||(this[bc]=new ho(h,this,"sandbox")),this[bc]}set sandbox(t){this.setAttribute("sandbox",t)}get srcdoc(){return this.getAttribute("srcdoc")||""}set srcdoc(t){this.setAttribute("srcdoc",t)}get referrerPolicy(){return this.getAttribute("referrerpolicy")||""}set referrerPolicy(t){this.setAttribute("referrerpolicy",t)}get contentDocument(){return u(this,vy).window?.document??null}get contentWindow(){return u(this,vy).window}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let r=Number(t);return isNaN(r)?0:r}return 0}set tabIndex(t){super.tabIndex=t}[(pN=bc,kr)](){super[kr](),F(this,Pi,Db).call(this)}[Mr](){super[Mr](),F(this,Pi,_b).call(this)}[ht](t=!1){return super[ht](t)}[je](t,r){super[je](t,r),t[nt]==="srcdoc"&&F(this,Pi,Db).call(this),t[nt]==="src"&&t[J]&&!this.hasAttribute("srcdoc")&&t[J]!==r?.[J]&&F(this,Pi,Db).call(this),t[nt]==="sandbox"&&F(this,Pi,hN).call(this)}[Ur](t){super[Ur](t),(t[nt]==="srcdoc"||t[nt]==="src")&&F(this,Pi,Db).call(this)}};vy=new WeakMap,br=new WeakMap,Wm=new WeakMap,Pi=new WeakSet,hN=function(){let t=this[y],r=[];for(let o of this.sandbox)B2.includes(o)||r.push(o);r.length===1?t.console.error(`Error while parsing the 'sandbox' attribute: '${r[0]}' is an invalid sandbox flag.`):r.length>1&&t.console.error(`Error while parsing the 'sandbox' attribute: '${r.join("', '")}' are invalid sandbox flags.`)},Db=function(){if(!this[st]){F(this,Pi,_b).call(this);return}let t=this.getAttribute("srcdoc"),r=this[y],o=new ot(r).getBrowserFrame();if(!o)return;if(t!==null){if(u(this,Wm)===t)return;F(this,Pi,_b).call(this),w(this,br,Is.createChildFrame(o)),u(this,br).url="about:srcdoc",u(this,vy).window=u(this,br).window,u(this,br).window[Yi]=o.window.top,u(this,br).window[Mo]=o.window,u(this,br).window.document.open(),u(this,br).window.document.write(t),w(this,Wm,t),this[y].requestAnimationFrame(()=>this.dispatchEvent(new R("load")));return}u(this,Wm)!==null&&F(this,Pi,_b).call(this);let i=o.window.location,n=xo.getRelativeURL(o,this.src);if(u(this,br)&&u(this,br).window.location.href===n.href)return;if(o.page.context.browser.settings.disableIframePageLoading){let p=new r.DOMException(`Failed to load iframe page "${n.href}". Iframe page loading is disabled.`,A.notSupportedError);o.page.console.error(p),this.dispatchEvent(new R("error"));return}let a=i.origin===n.origin||n.origin==="null",m=a?r:new Wl(r);w(this,br,u(this,br)??Is.createChildFrame(o)),u(this,br).window[Yi]=m,u(this,br).window[Mo]=m,u(this,br).goto(n.href,{referrer:i.origin,referrerPolicy:this.referrerPolicy}).then(()=>this.dispatchEvent(new R("load"))).catch(p=>{o.page.console.error(p),this.dispatchEvent(new R("error"))}),u(this,vy).window=a?u(this,br).window:new Wl(u(this,br).window,r)},_b=function(){u(this,br)&&(Is.destroyFrame(u(this,br)),w(this,br,null)),u(this,vy).window=null,w(this,Wm,null)};var cN,dN,bN,gN,fN,SN,PN,Ay=class extends B{constructor(){super(...arguments);s(this,PN,"IMG");s(this,SN,!1);s(this,fN,0);s(this,gN,0);s(this,bN,"auto");s(this,dN,0);s(this,cN,0)}get complete(){return this[tP]}get naturalHeight(){return this[eP]}get naturalWidth(){return this[rP]}get loading(){let t=this.getAttribute("loading");return t==="eager"||t==="lazy"?t:"auto"}set loading(t){this.setAttribute("loading",t)}get x(){return this[O]}get y(){return this[V]}get decoding(){return this.getAttribute("decoding")||"auto"}set decoding(t){this.setAttribute("decoding",t)}get crossOrigin(){return this.getAttribute("crossOrigin")}set crossOrigin(t){(t==="anonymous"||t==="use-credentials")&&this.setAttribute("crossOrigin",t)}get alt(){return this.getAttribute("alt")||""}set alt(t){this.setAttribute("alt",t)}get currentSrc(){return this.src}get width(){let t=this.getAttribute("width");return t!==null?Number(t):0}set width(t){this.setAttribute("width",String(t))}get height(){let t=this.getAttribute("height");return t!==null?Number(t):0}set height(t){this.setAttribute("height",String(t))}get isMap(){return this.getAttribute("ismap")!==null}set isMap(t){t?this.setAttribute("ismap",""):this.removeAttribute("ismap")}get referrerPolicy(){return this.getAttribute("referrerpolicy")||""}set referrerPolicy(t){this.setAttribute("referrerpolicy",t)}get sizes(){return this.getAttribute("sizes")||""}set sizes(t){this.setAttribute("sizes",t)}get src(){if(!this.hasAttribute("src"))return"";try{return new URL(this.getAttribute("src"),this[T].location.href).href}catch{return this.getAttribute("src")}}set src(t){this.setAttribute("src",t)}get srcset(){return this.getAttribute("srcset")||""}set srcset(t){this.setAttribute("srcset",t)}get useMap(){return this.getAttribute("usemap")||""}set useMap(t){this.setAttribute("usemap",t)}decode(){return Promise.resolve()}[(PN=tt,SN=tP,fN=eP,gN=rP,bN=ox,dN=O,cN=V,ht)](t=!1){return super[ht](t)}};var Lp=class extends B{get htmlFor(){let e=this.getAttribute("for");return e!==null||e!==null?e:""}set htmlFor(e){this.setAttribute("for",e)}get control(){let e=this.getAttribute("for");if(e!==null){if(!e||!this[st])return null;let t=this[Ve].getElementById(e);if(t)switch(t[tt]){case"INPUT":return t.type!=="hidden"?t:null;case"BUTTON":case"METER":case"OUTPUT":case"PROGRESS":case"SELECT":case"TEXTAREA":return t;default:return null}}return this.querySelector('button,input:not([type="hidden"]),meter,output,progress,select,textarea')}get form(){return this.control?.form||null}[ht](e=!1){return super[ht](e)}dispatchEvent(e){let t=super.dispatchEvent(e);if(!e[Gr]&&e.type==="click"&&(e.eventPhase===be.atTarget||e.eventPhase===be.bubbling)&&e instanceof sr){let r=this.control;r&&e.target!==r&&r.dispatchEvent(new sr("click",{bubbles:!0,cancelable:!0}))}return t}};var Cp=class extends B{get form(){let e=this;for(;e;){if(e instanceof Py)return e.form;e=e.parentNode}return null}};var kp=class extends B{get value(){if(!this.hasAttribute("value"))return 0;let e=Number(this.getAttribute("value"));return isNaN(e)?0:e}set value(e){let t=Number(e);this.setAttribute("value",isNaN(t)?"0":String(t))}};var Ty,Bb=class{constructor(){s(this,"integrityMetadata",null);s(this,"response",null);s(this,"error",null);x(this,Ty,null)}onResponseAvailable(){return new Promise((e,t)=>{w(this,Ty,{resolve:e,reject:t})})}responseAvailable(e,t){this.response=t,this.error=e,u(this,Ty)&&(e?u(this,Ty).reject(e):t?u(this,Ty).resolve(t):u(this,Ty).reject(new Error("Response is null")))}};Ty=new WeakMap;var wN,xN,EN,Ub,Ds,iw,sw,nw,Mp=class extends B{constructor(){super(...arguments);x(this,Ds);s(this,EN,null);s(this,xN,!1);s(this,wN,null);x(this,Ub,null)}get onerror(){return S.getEventListener(this,"onerror")}set onerror(t){this[c].set("onerror",t)}get onload(){return S.getEventListener(this,"onload")}set onload(t){this[c].set("onload",t)}get sheet(){return this[ur]}get relList(){return this[Lo]||(this[Lo]=new ho(h,this,"rel",["stylesheet","modulepreload","preload"])),this[Lo]}set relList(t){this.setAttribute("rel",t)}get as(){return this.getAttribute("as")||""}set as(t){this.setAttribute("as",t)}get crossOrigin(){return this.getAttribute("crossorigin")||""}set crossOrigin(t){this.setAttribute("crossorigin",t)}get href(){if(!this.hasAttribute("href"))return"";try{return new URL(this.getAttribute("href"),this[T].location.href).href}catch{return this.getAttribute("href")}}set href(t){this.setAttribute("href",t)}get hreflang(){return this.getAttribute("hreflang")||""}set hreflang(t){this.setAttribute("hreflang",t)}get media(){return this.getAttribute("media")||""}set media(t){this.setAttribute("media",t)}get referrerPolicy(){return this.getAttribute("referrerPolicy")||""}set referrerPolicy(t){this.setAttribute("referrerPolicy",t)}get rel(){return this.getAttribute("rel")||""}set rel(t){this.setAttribute("rel",t)}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t)}[(EN=ur,xN=xl,wN=Lo,kr)](){super[kr]();let t=this.getAttribute("rel"),r=this.getAttribute("href");if(t&&r)switch(t){case"stylesheet":F(this,Ds,nw).call(this,r);break;case"modulepreload":F(this,Ds,iw).call(this,r);break;case"preload":F(this,Ds,sw).call(this,r);break}}[je](t,r){if(super[je](t,r),t[nt]==="rel"||t[nt]==="href"){let o=this.getAttribute("rel"),i=this.getAttribute("href");if(o&&i)switch(o){case"stylesheet":F(this,Ds,nw).call(this,i);break;case"modulepreload":F(this,Ds,iw).call(this,i);break;case"preload":F(this,Ds,sw).call(this,i);break}}}};Ub=new WeakMap,Ds=new WeakSet,iw=async function(t){let r=this[y],o=new ot(r).getBrowserFrame(),i=new ot(r).getSettings();if(!o||!i||!this[st]||i.disableJavaScriptFileLoading||!i.enableJavaScriptEvaluation)return;let n=new Si(r,r.location);if(i.disableErrorCapturing||i.errorCapture!==me.tryAndCatch)await(await n.getModule(t)).preload();else try{await(await n.getModule(t)).preload()}catch(a){o.page.console.error(a),r[he](a);return}},sw=async function(t){let r=this[y],o=new ot(r).getBrowserFrame(),i=this.as;if(!o||!this[st]||i!=="script"&&i!=="style"&&i!=="fetch")return;let n=o.page.context.browser.settings;if(i==="script"&&(n.disableJavaScriptFileLoading||!n.enableJavaScriptEvaluation)||i==="style"&&n.disableCSSFileLoading)return;let a=new URL(t,r.location.href).href,m=Fn.getKey({url:a,destination:i,mode:"cors",credentialsMode:this.crossOrigin==="use-credentials"?"include":"same-origin"});if(r.document[Po].has(m))return;let p=new Bb;r.document[Po].set(m,p);let b=new Wo({browserFrame:o,window:r,url:a,disableSameOriginPolicy:i==="script"||i==="style",disablePreload:!0,init:{credentials:this.crossOrigin==="use-credentials"?"include":"same-origin"}});try{let d=await b.send();d[Ct]||await d.buffer(),p.responseAvailable(null,d)}catch(d){p.responseAvailable(d,null),r.document[Po].delete(m),o.page.console.error(`Failed to preload resource "${a}": ${d.message}`)}},nw=async function(t){let r=this[y],o=new ot(r).getBrowserFrame();if(!o||t===null)return;let i=o.page.context.browser.settings;if(this[xl]||!this[st])return;let n;try{n=new URL(t,r.location.href).href}catch{return}if(u(this,Ub)===n)return;if(i&&i.disableCSSFileLoading){if(i.handleDisabledFileLoadingAsSuccess)this.dispatchEvent(new R("load"));else{let f=new r.DOMException(`Failed to load external stylesheet "${n}". CSS file loading is disabled.`,A.notSupportedError);o.page.console.error(f),this.dispatchEvent(new R("error"))}return}let a=new Gl(r),m=r[si];w(this,Ub,n);let p=m.startTask(),b=null,d=null;try{b=await a.fetch(n,"style",{credentials:this.crossOrigin==="use-credentials"?"include":"same-origin"})}catch(f){d=f}if(m.endTask(p),d)o.page.console.error(d),this.dispatchEvent(new R("error"));else{let f=new this[T][y].CSSStyleSheet;f.replaceSync(b.content),this[ur]=f;let v=this[T];if(v){for(let L of v[ws])L.result=null;v[ws]=[]}this.dispatchEvent(new R("load"))}};var vN,AN,Rp=class extends(AN=B,vN=Sc,AN){constructor(){super(...arguments);s(this,vN,null)}get areas(){return this[Sc]||(this[Sc]=ne.getElementsByTagName(this,"area")),this[Sc]}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}};var jl=class extends Array{constructor(e){if(super(),e!==1&&e!==h)throw new TypeError("Illegal constructor")}getCueById(e){for(let t of this)if(t.id===e)return t;return null}};var Op=class extends B{};var Vp=class extends B{get content(){return this.getAttribute("content")||""}set content(e){this.setAttribute("content",e)}get httpEquiv(){return this.getAttribute("http-equiv")||""}set httpEquiv(e){this.setAttribute("http-equiv",e)}get name(){return this.getAttribute("name")||""}set name(e){this.setAttribute("name",e)}get scheme(){return this.getAttribute("scheme")||""}set scheme(e){this.setAttribute("scheme",e)}};var Ip=class extends B{get high(){if(!this.hasAttribute("high"))return 1;let e=parseFloat(this.getAttribute("high")||"");return isNaN(e)||e>1?1:e<0?0:e}set high(e){if(e=typeof e!="number"?Number(e):e,isNaN(e))throw new this[y].TypeError("Failed to set the 'high' property on 'HTMLMeterElement': The provided double value is non-finite.");this.setAttribute("high",String(e))}get low(){if(!this.hasAttribute("low"))return 0;let e=parseFloat(this.getAttribute("low")||"");return isNaN(e)||e<0?0:e>1?1:e}set low(e){if(e=typeof e!="number"?Number(e):e,isNaN(e))throw new this[y].TypeError("Failed to set the 'low' property on 'HTMLMeterElement': The provided double value is non-finite.");this.setAttribute("low",String(e))}get max(){if(!this.hasAttribute("max"))return 1;let e=parseFloat(this.getAttribute("max")||"");return isNaN(e)||e>1?1:e<0?0:e}set max(e){if(e=typeof e!="number"?Number(e):e,isNaN(e))throw new this[y].TypeError("Failed to set the 'max' property on 'HTMLMeterElement': The provided double value is non-finite.");this.setAttribute("max",String(e))}get min(){if(!this.hasAttribute("min"))return 0;let e=parseFloat(this.getAttribute("min")||"");return isNaN(e)||e<0?0:e>1?1:e}set min(e){if(e=typeof e!="number"?Number(e):e,isNaN(e))throw new this[y].TypeError("Failed to set the 'min' property on 'HTMLMeterElement': The provided double value is non-finite.");this.setAttribute("min",String(e))}get optimum(){if(!this.hasAttribute("optimum"))return .5;let e=parseFloat(this.getAttribute("optimum")||"");return isNaN(e)?.5:e<0?0:e>1?1:e}set optimum(e){if(e=typeof e!="number"?Number(e):e,isNaN(e))throw new this[y].TypeError("Failed to set the 'optimum' property on 'HTMLMeterElement': The provided double value is non-finite.");this.setAttribute("optimum",String(e))}get value(){if(!this.hasAttribute("value"))return 0;let e=parseFloat(this.getAttribute("value")||"");return isNaN(e)||e<0?0:e>1?1:e}set value(e){if(e=typeof e!="number"?Number(e):e,isNaN(e))throw new this[y].TypeError("Failed to set the 'value' property on 'HTMLMeterElement': The provided double value is non-finite.");this.setAttribute("value",String(e))}get labels(){return co.getAssociatedLabelElements(this)}};var Fp=class extends B{get cite(){if(!this.hasAttribute("cite"))return"";try{return new URL(this.getAttribute("cite"),this[T].location.href).href}catch{return this.getAttribute("cite")}}set cite(e){this.setAttribute("cite",e)}get dateTime(){return this.getAttribute("datetime")||""}set dateTime(e){this.setAttribute("datetime",e)}};var Dp=class extends B{get reversed(){return this.getAttribute("reversed")!==null}set reversed(e){e?this.setAttribute("reversed",""):this.removeAttribute("reversed")}get start(){if(!this.hasAttribute("start"))return 1;let e=Number(this.getAttribute("start")||"");return isNaN(e)?1:e}set start(e){typeof e!="number"&&(e=Number(e)),isNaN(e)&&(e=0),this.setAttribute("start",String(e))}get type(){return this.getAttribute("type")||""}set type(e){this.setAttribute("type",e)}};var _p=class extends B{get label(){return this.getAttribute("label")||""}set label(e){e?this.setAttribute("label",e):this.removeAttribute("label")}get disabled(){return this.getAttribute("disabled")!==null}set disabled(e){e?this.setAttribute("disabled",""):this.removeAttribute("disabled")}};var TN,NN,LN,zn=class extends B{constructor(){super(...arguments);s(this,LN,!1);s(this,NN,!1);s(this,TN,null)}get text(){return this.innerText}set text(t){this.innerText=t}get index(){return this[qe]?yt.querySelectorAll(this[qe],"option")[Y].indexOf(this):0}get form(){return this[qe]?.form||null}get selected(){return this[Jr]}set selected(t){let r=this[qe];this[da]=!0,this[Jr]=!!t,r&&r[wa](this[Jr]?this:null)}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled")}get value(){return this.getAttribute("value")??this.textContent}set value(t){this.setAttribute("value",t)}[(LN=Jr,NN=da,TN=qe,je)](t,r){if(super[je](t,r),!this[da]&&t[nt]==="selected"&&r?.[J]!==t[J]){let o=this[qe];this[Jr]=!0,o&&o[wa](this)}}[Ur](t){if(super[Ur](t),t&&!this[da]&&t[nt]==="selected"){let r=this[qe];this[Jr]=!1,r&&r[wa]()}}[To](){super[To](),this[qe]&&this[qe][wa]()}[Js](){this[qe]&&this[qe][wa](),super[Js]()}};var Bp=class extends B{};var Up=class extends B{};var Gp=class extends B{};var Hp=class extends B{};var $p=class extends B{get max(){if(!this.hasAttribute("max"))return 1;let e=parseFloat(this.getAttribute("max")||"");return isNaN(e)||e<0?1:e}set max(e){if(e=typeof e!="number"?Number(e):e,isNaN(e))throw new this[y].TypeError("Failed to set the 'max' property on 'HTMLProgressElement': The provided double value is non-finite.");this.setAttribute("max",e<0?"1":String(e))}get value(){if(!this.hasAttribute("value"))return 0;let e=parseFloat(this.getAttribute("value")||"");return isNaN(e)||e<0?0:e}set value(e){if(e=typeof e!="number"?Number(e):e,isNaN(e))throw new this[y].TypeError("Failed to set the 'value' property on 'HTMLProgressElement': The provided double value is non-finite.");this.setAttribute("value",e<0?"0":String(e))}get position(){return this.hasAttribute("value")?this.value/this.max:-1}get labels(){return co.getAssociatedLabelElements(this)}};var qp=class extends B{get cite(){if(!this.hasAttribute("cite"))return"";try{return new URL(this.getAttribute("cite"),this[T].location.href).href}catch{return this.getAttribute("cite")}}set cite(e){this.setAttribute("cite",e)}};var U2=/import\s*\(([^)]+)\)/gm,G2=/(\/)|(\(|\))|({|})|(\[|\])|(\${)|(`)|(')|(")|(\n)/gm,H2=/['"`(){}\s;=><\[\]+-,:&]/,$2=/['"`({};=><\[+-,:&]/,Wp=class{constructor(e){s(this,"window");s(this,"count",{comment:0,singleLineComment:0,parentheses:0,curlyBraces:0,squareBrackets:0,regExp:0,regExpSquareBrackets:0,escapeTemplateString:0,simpleString:0,doubleString:0});s(this,"templateString",[]);this.window=e}compile(e,t){let r=new ot(this.window).getSettings();if(!r)return{execute:()=>{}};let o=new RegExp(U2),i=this.count,n="(function anonymous($happy_dom) {",a=null,m,p,b=0,d=-1;for(!r.disableErrorCapturing&&r.errorCapture===me.tryAndCatch&&(n+="try {");a=o.exec(t);)m=t[a.index-1]||" ",p=t.substring(b,a.index),this.parseSyntax(p,b),d===-1&&(n+=p),a[1]&&i.simpleString===0&&i.doubleString===0&&i.comment===0&&i.singleLineComment===0&&i.regExp===0&&(this.templateString.length===0||this.templateString[0]>0)&&H2.test(m)?n+=`$happy_dom.dynamicImport(${a[1]})`:(n+=a[0],this.parseSyntax(a[0],a.index)),b=o.lastIndex;b===0?n+=t:n+=t.substring(b),!r.disableErrorCapturing&&r.errorCapture===me.tryAndCatch&&(n+="} catch (error) { $happy_dom.dispatchError(error); }"),n+="})";try{return{execute:this.window[Wi](n,{filename:e})}}catch(f){if(f.message=`Failed to parse JavaScript in '${e}': ${f.message}`,r.disableErrorCapturing||r.errorCapture!==me.tryAndCatch)throw f;return this.window[he](f),{execute:()=>{}}}}parseSyntax(e,t){let r=new RegExp(G2),o=this.count,i=null,n,a;for(t++;i=r.exec(e);)n=e[i.index-1]||" ",a=n==="\\"&&e[i.index-2]!=="\\",i[1]?o.simpleString===0&&o.doubleString===0&&o.singleLineComment===0&&o.regExpSquareBrackets===0&&(this.templateString.length===0||this.templateString[0]>0)&&(o.comment===1?n==="*"&&(o.comment=0):o.regExp===0?e[i.index+1]==="*"?o.comment=1:e[i.index+1]==="/"?o.singleLineComment=1:$2.test(this.getNonSpacePrecedingToken(e,i.index))&&(o.regExp=1):a||(o.regExp=0)):i[2]?o.simpleString===0&&o.doubleString===0&&o.regExp===0&&o.comment===0&&o.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)&&(i[2]==="("?o.parentheses++:i[2]===")"&&o.parentheses>0&&o.parentheses--):i[3]?o.simpleString===0&&o.doubleString===0&&o.regExp===0&&o.comment===0&&o.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)&&(i[3]==="{"?(this.templateString.length&&this.templateString[0]++,o.curlyBraces++):i[3]==="}"&&(this.templateString.length&&this.templateString[0]>0&&this.templateString[0]--,o.curlyBraces>0&&o.curlyBraces--)):i[4]?o.simpleString===0&&o.doubleString===0&&o.comment===0&&o.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)&&(o.regExp===1?a||(i[4]==="["&&o.regExpSquareBrackets===0?o.regExpSquareBrackets=1:i[4]==="]"&&o.regExpSquareBrackets===1&&(o.regExpSquareBrackets=0)):i[4]==="["?o.squareBrackets++:i[4]==="]"&&o.squareBrackets>0&&o.squareBrackets--):i[5]?o.simpleString===0&&o.doubleString===0&&o.comment===0&&o.singleLineComment===0&&o.regExp===0&&!a&&this.templateString[0]===0&&(this.templateString[0]=1,o.curlyBraces++):i[6]?o.simpleString===0&&o.doubleString===0&&o.comment===0&&o.singleLineComment===0&&o.regExp===0&&!a&&(this.templateString?.[0]===0?this.templateString.shift():this.templateString.unshift(0)):i[7]?o.doubleString===0&&o.comment===0&&o.singleLineComment===0&&o.regExp===0&&!a&&(this.templateString.length===0||this.templateString[0]>0)&&(o.simpleString===0?o.simpleString=1:o.simpleString=0):i[8]?o.simpleString===0&&o.comment===0&&o.singleLineComment===0&&o.regExp===0&&!a&&(this.templateString.length===0||this.templateString[0]>0)&&(o.doubleString===0?o.doubleString=1:o.doubleString=0):i[9]&&(o.singleLineComment=0)}getNonSpacePrecedingToken(e,t){t--;let r=e[t];for(;r===" "||r===`
135
+ `||r===" ";)t--,r=e[t];return r||";"}};var CN,kN,Gb,wi,MN,RN,ON,lw,aw,jp=class extends B{constructor(){super(...arguments);x(this,wi);s(this,kN,!1);s(this,CN,null);x(this,Gb,null)}get onerror(){return S.getEventListener(this,"onerror")}set onerror(t){this[c].set("onerror",t)}get onload(){return S.getEventListener(this,"onload")}set onload(t){this[c].set("onload",t)}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t)}get blocking(){return this[Hd]||(this[Hd]=new ho(h,this,"blocking")),this[Hd]}set blocking(t){this.setAttribute("blocking",t)}get crossOrigin(){return this.getAttribute("crossorigin")||""}set crossOrigin(t){this.setAttribute("crossorigin",t)}get fetchPriority(){let t=this.getAttribute("fetchpriority");switch(t){case"high":case"low":case"normal":return t;default:return"auto"}}set fetchPriority(t){this.setAttribute("fetchpriority",t)}get noModule(){return this.getAttribute("nomodule")!==null}set noModule(t){t?this.setAttribute("nomodule",""):this.removeAttribute("nomodule")}get integrity(){return this.getAttribute("integrity")||""}set integrity(t){this.setAttribute("integrity",t)}get referrerPolicy(){let t=this.getAttribute("referrerpolicy");switch(t){case"no-referrer":case"no-referrer-when-downgrade":case"same-origin":case"origin":case"strict-origin":case"origin-when-cross-origin":case"strict-origin-when-cross-origin":case"unsafe-url":return t;default:return""}}set referrerPolicy(t){this.setAttribute("referrerpolicy",t)}get src(){if(!this.hasAttribute("src"))return"";try{return new URL(this.getAttribute("src"),this[T].location.href).href}catch{return this.getAttribute("src")}}set src(t){this.setAttribute("src",t)}get charset(){return this.getAttribute("charset")||""}set charset(t){this.setAttribute("charset",t)}get lang(){return this.getAttribute("lang")||""}set lang(t){this.setAttribute("lang",t)}get async(){return this.getAttribute("async")!==null}set async(t){t?this.setAttribute("async",""):this.removeAttribute("async")}get defer(){return this.getAttribute("defer")!==null}set defer(t){t?this.setAttribute("defer",""):this.removeAttribute("defer")}get text(){return this.textContent}set text(t){this.textContent=t}[(kN=xl,CN=Hd,ht)](t=!1){return super[ht](t)}[kr](){let t=new ot(this[y]).getSettings();if(super[kr](),this[xl])return;let r=this.getAttribute("src");if(r!==null)this.getAttribute("type")==="module"?F(this,wi,lw).call(this,r):F(this,wi,aw).call(this,r);else if(t&&t.enableJavaScriptEvaluation){let o=this.textContent,i=this.getAttribute("type");o&&(i==="module"?F(this,wi,MN).call(this,o):i==="importmap"?F(this,wi,RN).call(this,o):(i===null||i==="application/x-ecmascript"||i==="application/x-javascript"||i.startsWith("text/javascript"))&&F(this,wi,ON).call(this,o))}}[je](t,r){super[je](t,r),t[nt]==="src"&&t[J]!==null&&this[st]&&(this.getAttribute("type")==="module"?F(this,wi,lw).call(this,t[J]):F(this,wi,aw).call(this,t[J]))}static supports(t){switch(t){case"classic":case"module":case"importmap":return!0;default:return!1}}};Gb=new WeakMap,wi=new WeakSet,MN=function(t){let r=this[T].location,o=this[y],i=new ot(o).getSettings();if(!new ot(o).getBrowserFrame()||!i||!i.enableJavaScriptEvaluation)return;this[T][qi]=this;let a=new Hl({window:o,url:r,source:t});i.disableErrorCapturing||i.errorCapture!==me.tryAndCatch?a.evaluate():a.evaluate().catch(m=>{o[he](m)}),this[T][qi]=null,this.dispatchEvent(new R("load"))},RN=async function(t){let r=this[y],o=new ot(r).getSettings();if(!new ot(r).getBrowserFrame()||!o||r[mm]||!o.enableJavaScriptEvaluation)return;let n;if(o.disableErrorCapturing||o.errorCapture!==me.tryAndCatch)n=JSON.parse(t);else try{n=JSON.parse(t)}catch(a){r[he](a);return}if(n.imports||n.scopes){let a={imports:[],scopes:[]};if(n.imports)for(let m of Object.keys(n.imports))a.imports.push({from:m,to:n.imports[m]});if(n.scopes)for(let m of Object.keys(n.scopes)){let p={scope:m,rules:[]};for(let b of Object.keys(n.scopes[m])){let d=n.scopes[m][b];p.rules.push({from:b,to:d})}a.scopes.push(p)}r[mm]=a}},ON=function(t){let r=this[y];if(!new ot(r).getSettings())return;this[T][qi]=this;let n=new Wp(r).compile(r.location.href,t),a=new Si(r,r.location);n.execute({dynamicImport:a.importModule.bind(a),dispatchError:r[he].bind(r)}),this[T][qi]=null},lw=async function(t){let r=this[y],o=new ot(r).getBrowserFrame(),i=new ot(r).getSettings();if(!o||!i||!t||!this[st]||this.getAttribute("type")!=="module")return;if(i&&(i.disableJavaScriptFileLoading||!i.enableJavaScriptEvaluation)){if(i.handleDisabledFileLoadingAsSuccess)this.dispatchEvent(new R("load"));else{let a=new r.DOMException(`Failed to load module "${t}". JavaScript file loading is disabled.`,A.notSupportedError);o.page.console.error(a),this.dispatchEvent(new R("error"))}return}let n=new Si(r,r.location);if(i.disableErrorCapturing||i.errorCapture!==me.tryAndCatch)await(await n.getModule(t)).evaluate();else try{await(await n.getModule(t)).evaluate()}catch(a){o.page.console.error(a),this.dispatchEvent(new R("error"));return}this.dispatchEvent(new R("load"))},aw=async function(t){let r=this[y],o=new ot(r).getBrowserFrame();if(!o)return;let i=o.page.context.browser.settings,n=this.getAttribute("type");if(!t||!this[st]||n!==null&&n!=="application/x-ecmascript"&&n!=="application/x-javascript"&&!n.startsWith("text/javascript"))return;let a;try{a=new URL(t,r.location.href)}catch{return}let m=a.toString();if(u(this,Gb)===m)return;if(i&&(i.disableJavaScriptFileLoading||!i.enableJavaScriptEvaluation)){if(i.handleDisabledFileLoadingAsSuccess)this.dispatchEvent(new R("load"));else{let C=new r.DOMException(`Failed to load script "${a}". JavaScript file loading is disabled.`,A.notSupportedError);o.page.console.error(C),this.dispatchEvent(new R("error"))}return}w(this,Gb,m);let p=new Gl(r),b=this.getAttribute("async")!==null||this.getAttribute("defer")!==null,d=null;if(b){let C=r[si],X=C.startTask();try{d=await p.fetch(m,"script",{credentials:this.crossOrigin==="use-credentials"?"include":"same-origin",referrerPolicy:this.referrerPolicy})}catch(lt){o.page.console.error(lt),this.dispatchEvent(new R("error")),C.endTask(X);return}C.endTask(X)}else try{d=p.fetchSync(m,"script",{credentials:this.crossOrigin==="use-credentials"?"include":"same-origin",referrerPolicy:this.referrerPolicy})}catch(C){o.page.console.error(C),this.dispatchEvent(new R("error"));return}this[T][qi]=this;let v=new Wp(r).compile(d.virtualServerFile||m,d.content),L=new Si(r,r.location);v.execute({dynamicImport:L.importModule.bind(L),dispatchError:r[he].bind(r)}),this[T][qi]=null,this.dispatchEvent(new R("load"))};var jm=class extends Ae{constructor(e,t){super(e,()=>yt.querySelectorAll(t,"option")[Y]),this[At]=t}get selectedIndex(){return this[At].selectedIndex}set selectedIndex(e){this[At].selectedIndex=e}add(e,t){this[At].add(e,t)}remove(e){this[At].remove(e)}};var VN,IN,FN,DN,_N,BN,PS,UN,yw=class yw extends B{constructor(){super();x(this,PS);s(this,BN,"");s(this,_N,new bo(this));s(this,DN,null);s(this,FN,null);s(this,IN,-1);s(this,VN);let t=new xe(this,[yw,B,dr,ft,_t]),r=new Proxy(this,{get:(o,i)=>{if(i in o||typeof i=="symbol")return t.bind(i),o[i];let n=Number(i);if(!isNaN(n))return yt.querySelectorAll(o,"option")[Y][n]},set(o,i,n){if(t.bind(i),typeof i=="symbol")return o[i]=n,!0;let a=Number(i);if(isNaN(a))return o[i]=n,!0;if(!n||!(n instanceof zn))throw new o[y].Error(`TypeError: Failed to set an indexed property [${a}] on 'HTMLSelectElement': parameter 2 is not of type 'HTMLOptionElement'.`);let m=yt.querySelectorAll(o,"option")[Y],p=o[q];for(;p.length;)o[Rr](p[0]);for(let b=0;b<=a;b++)b===a?o[Et](n):m[b]?o[Et](m[b]):o[Et](o[T].createElement("option"));return!0},deleteProperty(o,i){if(typeof i=="symbol")return delete o[i],!0;let n=Number(i);return isNaN(n)&&delete o[i],!0},ownKeys(o){return Object.keys(yt.querySelectorAll(o,"option")[Y])},has(o,i){if(i in o)return!0;if(typeof i=="symbol")return!1;let n=Number(i);return isNaN(n)?!1:!!yt.querySelectorAll(o,"option")[Y][n]},defineProperty(o,i,n){t.preventBinding(i);let a=Number(i);if(isNaN(a))return Object.defineProperty(o,i,n),!0;if(!n.value||!(n.value instanceof zn))throw new o[y].Error(`TypeError: Failed to set an indexed property [${a}] on 'HTMLSelectElement': parameter 2 is not of type 'HTMLOptionElement'.`);let m=yt.querySelectorAll(o,"option")[Y],p=o[q];for(;p.length;)o[Rr](p[0]);for(let b=0;b<=a;b++)b===a?o[Et](n.value):m[b]?o[Et](m[b]):o[Et](o[T].createElement("option"));return!0},getOwnPropertyDescriptor(o,i){if(i in o)return Object.getOwnPropertyDescriptor(o,i);let n=Number(i);if(isNaN(n))return;let a=yt.querySelectorAll(o,"option")[Y];if(a[n])return{value:a[n],writable:!0,enumerable:!0,configurable:!0}}});return this[Gt]=r,this[qe]=r,r}get onchange(){return S.getEventListener(this,"onchange")}set onchange(t){this[c].set("onchange",t)}get oninput(){return S.getEventListener(this,"oninput")}set oninput(t){this[c].set("oninput",t)}get length(){return yt.querySelectorAll(this,"option")[Y].length}get options(){return this[rn]||(this[rn]=new jm(h,this)),this[rn]}get validationMessage(){return this[Ue]}get validity(){return this[mr]}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}get disabled(){return this.getAttribute("disabled")!==null}set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled")}get multiple(){return this.getAttribute("multiple")!==null}set multiple(t){t?this.setAttribute("multiple",""):this.removeAttribute("multiple")}get autofocus(){return this.getAttribute("autofocus")!==null}set autofocus(t){t?this.setAttribute("autofocus",""):this.removeAttribute("autofocus")}get required(){return this.getAttribute("required")!==null}set required(t){t?this.setAttribute("required",""):this.removeAttribute("required")}get type(){return this.hasAttributeNS(null,"multiple")?"select-multiple":"select-one"}get value(){let t=yt.querySelectorAll(this,"option")[Y];for(let r=0,o=t.length;r<o;r++){let i=t[r];if(i[Jr])return i.value}return""}set value(t){let r=yt.querySelectorAll(this,"option")[Y];this[Ai]=-1;for(let o=0,i=r.length;o<i;o++){let n=r[o];n.value===t?(n[Jr]=!0,n[da]=!0,this[Ai]=o):n[Jr]=!1}}get selectedIndex(){return this[Ai]}set selectedIndex(t){if(t=Number(t),isNaN(t))return;let r=yt.querySelectorAll(this,"option")[Y];if(this[Ai]=-1,typeof t=="number"&&!isNaN(t)){for(let i=0,n=r.length;i<n;i++)r[i][Jr]=!1;let o=r[t];o&&(o[Jr]=!0,o[da]=!0,this[Ai]=t)}}get selectedOptions(){return this[Na]||(this[Na]=new Ae(h,()=>{let t=yt.querySelectorAll(this,"option")[Y];if(t[Na])return t[Na];let r=[];for(let o=0,i=t.length;o<i;o++){let n=t[o];n[Jr]&&r.push(n)}return t[Na]=r,r})),this[Na]}get labels(){return co.getAssociatedLabelElements(this)}get form(){if(this[Bt])return this[Bt];let t=this.getAttribute("form");return!t||!this[st]?null:this[T].getElementById(t)}get willValidate(){return this.type!=="hidden"&&this.type!=="reset"&&this.type!=="button"&&!this.disabled}get tabIndex(){let t=this.getAttribute("tabindex");if(t!==null){let r=Number(t);return isNaN(r)?0:r}return 0}set tabIndex(t){super.tabIndex=t}item(t){return this.options.item(t)}add(t,r){let o=yt.querySelectorAll(this,"option")[Y];if(!r&&r!==0){let m=this[q];for(;m.length;)this[Rr](m[0]);for(let p of o)this[Et](p);this[Et](t);return}let i=this[y];if(typeof r!="number"){if(!(r instanceof zn))throw new i.DOMException("Failed to execute 'add' on 'HTMLFormElement': The node before which the new node is to be inserted before is not an 'HTMLOptionElement'.");r=o.indexOf(r)}if(!o[r])throw new i.DOMException("Failed to execute 'add' on 'HTMLFormElement': The node before which the new node is to be inserted before is not a child of this node.");let a=this[q];for(;a.length;)this[Rr](a[0]);for(let m=0,p=o.length;m<p;m++)m===r&&this[Et](t),this[Et](o[m])}remove(t){if(typeof t=="number"){let r=yt.querySelectorAll(this,"option")[Y];if(!r[t])return;let o=this[q];for(;o.length;)this[Rr](o[0]);for(let i=0,n=r.length;i<n;i++)i!==t&&this[Et](r[i])}else super.remove()}setCustomValidity(t){this[Ue]=String(t)}checkValidity(){let t=this.disabled||this[mr].valid;return t||this.dispatchEvent(new R("invalid",{bubbles:!0,cancelable:!0})),t}reportValidity(){return this.checkValidity()}[(BN=Ue,_N=mr,DN=rn,FN=Na,IN=Ai,VN=Gt,wa)](t){let r=this.hasAttribute("multiple"),o=yt.querySelectorAll(this,"option")[Y],i=[];if(t&&(this[Ai]=-1),!r)for(let a=0,m=o.length;a<m;a++){let p=o[a];t&&(p[Jr]=p===t,p===t&&(this[Ai]=a)),p[Jr]&&i.push(p)}if(F(this,PS,UN).call(this)===1&&!i.length){this[Ai]=-1;for(let a=0,m=o.length;a<m;a++){let p=o[a],b=p[W],d=p.hasAttributeNS(null,"disabled");if(b&&b[U]===M.elementNode&&b[tt]==="OPTGROUP"&&b.hasAttributeNS(null,"disabled")&&(d=!0),!d){p[Jr]=!0,this[Ai]=a;break}}}else if(i.length>=2){this[Ai]=-1;for(let a=0,m=o.length;a<m;a++)o[a][Jr]=a===i.length-1,a===i.length-1&&(this[Ai]=a)}}};PS=new WeakSet,UN=function(){if(this.hasAttributeNS(null,"size")){let t=parseInt(this.getAttribute("size"));if(!isNaN(t)&&t>=0)return t}return this.hasAttributeNS(null,"multiple")?4:1};var zp=yw;var mw,GN,zl,Hb,HN,wS=class extends B{constructor(){super(...arguments);x(this,zl);s(this,GN,[])}get onslotchange(){return S.getEventListener(this,"onslotchange")}set onslotchange(t){this[c].set("onslotchange",t)}get name(){return this.getAttribute("name")||""}set name(t){this.setAttribute("name",t)}assign(...t){let r=this.getRootNode();if(r?.[xs]!=="manual")return;let o=r.host;if(o){for(let i of t)if(i instanceof ft&&o[q].includes(i)&&i[U]!==M.commentNode){if(i[Ki]){let n=i[Ki][nn].indexOf(i);n!==-1&&i[Ki][nn].splice(n,1)}i[Ki]=this,this[nn].push(i)}}}assignedNodes(t){return F(this,zl,Hb).call(this,this.name,t)}assignedElements(t){return F(this,zl,HN).call(this,this.name,t)}[(GN=nn,ht)](t=!1){return super[ht](t)}[je](t,r){if(super[je](t,r),t[nt]==="name"&&t[J]!==r?.[J]){let o=F(this,zl,Hb).call(this,r?.[J]),i=F(this,zl,Hb).call(this,t.value);if(o.length!==i.length)this.dispatchEvent(new R("slotchange",{bubbles:!0}));else for(let n=0,a=i.length;n<a;n++)if(o[n]!==i[n]){this.dispatchEvent(new R("slotchange",{bubbles:!0}));break}}}[Ur](t){super[Ur](t),t[nt]==="name"&&t[J]&&F(this,zl,Hb).call(this,t.value).length>0&&this.dispatchEvent(new R("slotchange",{bubbles:!0}))}};zl=new WeakSet,Hb=function(t,r){let o=this.getRootNode();if(!o?.host)return[];if(o[xs]==="manual")return this[nn];let i=o.host,n=!!r?.flatten,a=[];for(let m of i[q]){let p=m.slot;if(t&&p&&p===t||!t&&!p)if(n&&m instanceof mw)for(let b of m.assignedNodes(r))a.push(b);else a.push(m)}return a},HN=function(t,r){let o=this.getRootNode();if(!o?.host)return[];if(o[xs]==="manual"){let m=[];for(let p of this[nn])p instanceof dr&&m.push(p);return m}let i=o.host,n=!!r?.flatten,a=[];for(let m of i[gt]){let p=m.slot;if(t&&p===t||!t&&!p)if(n&&m instanceof mw)for(let b of m.assignedElements(r))a.push(b);else a.push(m)}return a};mw=wS;var uw=wS;var Xp=class extends B{get height(){let e=Number(this.getAttribute("height"));return isNaN(e)||e<0?0:e}set height(e){let t=Number(e);this.setAttribute("height",isNaN(t)||t<0?"0":String(t))}get width(){let e=Number(this.getAttribute("width"));return isNaN(e)||e<0?0:e}set width(e){let t=Number(e);this.setAttribute("width",isNaN(t)||t<0?"0":String(t))}get media(){return this.getAttribute("media")||""}set media(e){this.setAttribute("media",e)}get sizes(){return this.getAttribute("sizes")||""}set sizes(e){this.setAttribute("sizes",e)}get src(){if(!this.hasAttribute("src"))return"";try{return new URL(this.getAttribute("src"),this[T].location.href).href}catch{return this.getAttribute("src")||""}}set src(e){this.setAttribute("src",e)}get srcset(){return this.getAttribute("srcset")||""}set srcset(e){this.setAttribute("srcset",e)}get type(){return this.getAttribute("type")||""}set type(e){this.setAttribute("type",e)}};var Yp=class extends B{};var $N,qN,WN,Kp=class extends B{constructor(){super(...arguments);s(this,WN,null);s(this,qN,this);s(this,$N,!1)}get media(){return this.getAttribute("media")||""}set media(t){this.setAttribute("media",t)}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t)}get disabled(){return this[Ra]}set disabled(t){this[Ra]=!!t}get sheet(){return this[st]?(this[ur]||(this[ur]=new this[T][y].CSSStyleSheet,this[ur].replaceSync(this.textContent)),this[ur]):null}[(WN=ur,qN=Br,$N=Ra,Mr)](){super[Mr](),this[ur]=null}[La](){this[ur]&&this[ur].replaceSync(this.textContent)}};var Ny=class extends B{};var Jp=class extends B{get abbr(){return this.getAttribute("abbr")||""}set abbr(e){this.setAttribute("abbr",e)}get cellIndex(){let e=this.parentNode;for(;e;){if(e[tt]==="TR")return yt.querySelectorAll(e,"td,th")[Y].indexOf(this);e=e.parentNode}return-1}get colSpan(){let e=Number(this.getAttribute("colspan"));return isNaN(e)||e<1?1:e}set colSpan(e){let t=Number(e);this.setAttribute("colspan",isNaN(t)||t<1?"1":String(t))}get headers(){return this.getAttribute("headers")||""}set headers(e){this.setAttribute("headers",String(e))}get rowSpan(){let e=Number(this.getAttribute("rowspan"));return isNaN(e)||e<1?1:e}set rowSpan(e){let t=Number(e);this.setAttribute("rowspan",isNaN(t)||t<1?"1":String(t))}get scope(){return this.getAttribute("scope")||""}set scope(e){this.setAttribute("scope",e)}};var Zp=class extends B{};var _s=class extends B{insertRow(e=-1){typeof e!="number"&&(e=-1);let t=yt.querySelectorAll(this,"tr")[Y];if(e<-1)throw new this[y].DOMException(`Failed to execute 'insertRow' on 'HTMLTableSectionElement': The index provided (${e}) is less than -1.`,A.indexSizeError);if(e>t.length)throw new this[y].DOMException(`Failed to execute 'insertRow' on 'HTMLTableSectionElement': The index provided (${e}) is greater than the number of rows (${t.length}).`,A.indexSizeError);let r=this[T].createElement("tr");return e===-1||e===t.length?this.appendChild(r):this.insertBefore(r,t[e]),r}deleteRow(e){if(arguments.length===0)throw new this[y].TypeError("Failed to execute 'deleteRow' on 'HTMLTableSectionElement': 1 argument required, but only 0 present.");if(typeof e!="number"&&(e=-1),e<-1)throw new this[y].DOMException(`Failed to execute 'deleteRow' on 'HTMLTableSectionElement': The index provided (${e}) is less than -1.`,A.indexSizeError);let t=yt.querySelectorAll(this,"tr")[Y];if(e>=t.length)throw new this[y].DOMException(`Failed to execute 'deleteRow' on 'HTMLTableSectionElement': The index provided (${e}) is greater than the number of rows in the table (${t.length}).`,A.indexSizeError);e===-1&&(e=t.length-1),t[e].remove()}};var jN,zN,XN,Qp=class extends(XN=B,zN=wc,jN=xc,XN){constructor(){super(...arguments);s(this,zN,null);s(this,jN,null)}get caption(){return yt.querySelector(this,"caption")}set caption(t){if(t){if(!(t instanceof Ny))throw new this[y].TypeError("Failed to set the 'caption' property on 'HTMLTableElement': Failed to convert value to 'HTMLTableCaptionElement'.");this.caption?.remove(),this.insertBefore(t,this.firstChild)}else this.caption?.remove()}get tHead(){return yt.querySelector(this,"thead")}set tHead(t){if(t){if(!(t instanceof _s))throw new this[y].TypeError("Failed to set the 'tHead' property on 'HTMLTableElement': Failed to convert value to 'HTMLTableSectionElement'.");this.tHead?.remove();let r=!1;for(let o of this[gt])if(o[tt]!=="CAPTION"&&o[tt]!=="COLGROUP"){this.insertBefore(t,o),r=!0;break}r||this.appendChild(t)}else this.tHead?.remove()}get tFoot(){return yt.querySelector(this,"tfoot")}set tFoot(t){if(t){if(!(t instanceof _s))throw new this[y].TypeError("Failed to set the 'tFoot' property on 'HTMLTableElement': Failed to convert value to 'HTMLTableSectionElement'.");this.tFoot?.remove();let r=!1;for(let o of this[gt])if(o[tt]!=="CAPTION"&&o[tt]!=="COLGROUP"&&o[tt]!=="THEAD"){this.insertBefore(t,o),r=!0;break}r||this.appendChild(t)}else this.tFoot?.remove()}get rows(){return this[wc]||(this[wc]=new Ae(h,()=>yt.querySelectorAll(this,"tr")[Y])),this[wc]}get tBodies(){return this[xc]||(this[xc]=new Ae(h,()=>yt.querySelectorAll(this,"tbody")[Y])),this[xc]}createTHead(){let t=this.tHead;if(t)return t;let r=this[T].createElement("thead");return this.tHead=r,r}deleteTHead(){this.tHead=null}createTFoot(){let t=this.tFoot;if(t)return t;let r=this[T].createElement("tfoot");return this.tFoot=r,r}deleteTFoot(){this.tFoot=null}createTBody(){let t=yt.querySelectorAll(this,"tbody")[Y],r=this[T].createElement("tbody");if(t.length>0){let o=t[t.length-1];return o.parentNode?.insertBefore(r,o.nextSibling),r}return this.appendChild(r),r}createCaption(){let t=this.caption;if(t)return t;let r=this[T].createElement("caption");return this.caption=r,r}deleteCaption(){this.caption=null}insertRow(t=-1){typeof t!="number"&&(t=-1);let r=yt.querySelectorAll(this,"tr")[Y];if(t<-1)throw new this[y].DOMException(`Failed to execute 'insertRow' on 'HTMLTableElement': The index provided (${t}) is less than -1.`,A.indexSizeError);if(t>r.length)throw new this[y].DOMException(`Failed to execute 'insertRow' on 'HTMLTableElement': The index provided (${t}) is greater than the number of rows (${r.length}).`,A.indexSizeError);let o=this[T].createElement("tr");if(t===-1||t===r.length){let i=yt.querySelector(this,"tbody");if(i)i.appendChild(o);else{let n=this[T].createElement("tbody");n.appendChild(o),this.appendChild(n)}return o}return r[t].parentNode?.insertBefore(o,r[t]),o}deleteRow(t){if(arguments.length===0)throw new this[y].TypeError("Failed to execute 'deleteRow' on 'HTMLTableElement': 1 argument required, but only 0 present.");if(typeof t!="number"&&(t=-1),t<-1)throw new this[y].DOMException(`Failed to execute 'deleteRow' on 'HTMLTableElement': The index provided (${t}) is less than -1.`,A.indexSizeError);let r=yt.querySelectorAll(this,"tr")[Y];if(t>=r.length)throw new this[y].DOMException(`Failed to execute 'deleteRow' on 'HTMLTableElement': The index provided (${t}) is greater than the number of rows in the table (${r.length}).`,A.indexSizeError);t===-1&&(t=r.length-1),r[t].remove()}};var YN,KN,th=class extends(KN=B,YN=Pc,KN){constructor(){super(...arguments);s(this,YN,null)}get cells(){return this[Pc]||(this[Pc]=new Ae(h,()=>yt.querySelectorAll(this,"td,th")[Y])),this[Pc]}get rowIndex(){let t=this.parentNode;for(;t;){if(t[tt]==="TABLE")return yt.querySelectorAll(t,"tr")[Y].indexOf(this);t=t.parentNode}return-1}get sectionRowIndex(){let t=this.parentNode;for(;t;){if(t instanceof _s)return yt.querySelectorAll(t,"tr")[Y].indexOf(this);t=t.parentNode}return-1}insertCell(t=-1){typeof t!="number"&&(t=-1);let r=yt.querySelectorAll(this,"td,th")[Y];if(t<-1)throw new this[y].DOMException(`Failed to execute 'insertCell' on 'HTMLTableRowElement': The index provided (${t}) is less than -1.`,A.indexSizeError);if(t>r.length)throw new this[y].DOMException(`Failed to execute 'insertCell' on 'HTMLTableRowElement': The index provided (${t}) is greater than the number of cells (${r.length}).`,A.indexSizeError);let o=this[T].createElement("td");return t===-1||t===r.length?(this.appendChild(o),o):(r[t].parentNode?.insertBefore(o,r[t]),o)}deleteCell(t){if(arguments.length===0)throw new this[y].TypeError("Failed to execute 'deleteCell' on 'HTMLTableRowElement': 1 argument required, but only 0 present.");if(typeof t!="number"&&(t=-1),t<-1)throw new this[y].DOMException(`Failed to execute 'deleteCell' on 'HTMLTableRowElement': The index provided (${t}) is less than -1.`,A.indexSizeError);let r=yt.querySelectorAll(this,"td,th")[Y];if(t>=r.length)throw new this[y].DOMException(`Failed to execute 'deleteCell' on 'HTMLTableRowElement': The index provided (${t}) is greater than the number of cells in the row (${r.length}).`,A.indexSizeError);t===-1&&(t=r.length-1),r[t].remove()}};var JN,eh=class extends B{constructor(){super(...arguments);s(this,JN,this[T].createDocumentFragment())}get content(){return this[Co]}get innerHTML(){return this.getHTML()}set innerHTML(t){let r=this[Co],o=r[q];for(;o.length;)r.removeChild(o[0]);new $r(this[y],{isTemplateDocumentFragment:!0}).parse(t,this[Co])}get firstChild(){return this[Co].firstChild}get lastChild(){return this[Co].lastChild}getInnerHTML(t){let r=new Vi,o=this[Co],i="";for(let n of o[q])i+=r.serializeToString(n);return i}getHTML(t){let r=new Vi,o=this[Co],i="";for(let n of o[q])i+=r.serializeToString(n);return i}[(JN=Co,Et)](t,r=!1){return this[Co][Et](t,r)}[Rr](t){return this[Co][Rr](t)}[lo](t,r,o=!1){return this[Co][lo](t,r,o)}[xu](t,r){return this[Co][xu](t,r)}[ht](t=!1){let r=super[ht](t);return r[Co]=this[Co].cloneNode(t),r}};var rh=class extends B{get dateTime(){return this.getAttribute("dateTime")||""}set dateTime(e){this.setAttribute("dateTime",e)}};var oh=class extends B{get text(){let e="";for(let t of this[q])t[U]===M.textNode&&(e+=t.textContent);return e}set text(e){this.textContent=e}get innerHTML(){return this.getHTML()}set innerHTML(e){this.textContent=e}};var ih=class extends B{get oncuechange(){return S.getEventListener(this,"oncuechange")}set oncuechange(e){this[c].set("oncuechange",e)}get kind(){let e=this.getAttribute("kind");return e===null?Hn.subtitles:Hn[e]?e:Hn.metadata}set kind(e){Hn[e]||(e=Hn.metadata),this.setAttribute("kind",e)}get src(){if(!this.hasAttribute("src"))return"";try{return new URL(this.getAttribute("src"),this[T].location.href).href}catch{return this.getAttribute("src")||""}}set src(e){this.setAttribute("src",e)}get srclang(){return this.getAttribute("srclang")||""}set srclang(e){this.setAttribute("srclang",e)}get label(){return this.getAttribute("label")||""}set label(e){this.setAttribute("label",e)}get default(){return this.hasAttribute("default")}set default(e){e?this.setAttribute("default",""):this.removeAttribute("default")}get readyState(){return 0}get track(){let e=new this[y].TextTrack(h);return e[li]=this.kind,e[cl]=this.label,e[im]=this.srclang,e[ke]=this.default?"showing":"disabled",e[vc]=this.id,e}};var sh=class extends B{};var nh=class extends B{};var lh=class extends $n{};var ZN,QN,tL,ah=class extends(tL=Ms,QN=U,ZN=Zr,tL){constructor(){super(...arguments);s(this,QN,M.processingInstructionNode);s(this,ZN,"")}get target(){return this[Zr]}};var eL,rL,oL,iL,Ly=class extends(iL=ft,oL=Xr,rL=Ve,eL=U,iL){constructor(){super(...arguments);s(this,oL,null);s(this,rL,this);s(this,eL,M.documentFragmentNode)}get children(){if(!this[Xr]){let t=this[gt];this[Xr]=new Ae(h,()=>t)}return this[Xr]}get childElementCount(){return this[gt].length}get firstElementChild(){return this[gt][0]??null}get lastElementChild(){let t=this[gt];return t[t.length-1]??null}get textContent(){let t="";for(let r of this[q])(r[U]===M.elementNode||r[U]===M.textNode)&&(t+=r.textContent);return t}set textContent(t){let r=this[q];for(;r.length;)this.removeChild(r[0]);t&&this.appendChild(this[T].createTextNode(t))}append(...t){ne.append(this,...t)}prepend(...t){ne.prepend(this,...t)}replaceChildren(...t){ne.replaceChildren(this,...t)}querySelectorAll(t){return yt.querySelectorAll(this,t)}querySelector(t){return yt.querySelector(this,t)}getElementById(t){return ne.getElementById(this,t)}};var sL,nL,lL,aL,yL,mL,uL,pL,yh=class extends Ly{constructor(){super(...arguments);s(this,pL,[]);s(this,uL,"open");s(this,mL,null);s(this,yL,!1);s(this,aL,!1);s(this,lL,!1);s(this,nL,"named");s(this,sL,new Map)}get onslotchange(){return this[c].get("onslotchange")??null}set onslotchange(t){this[c].set("onslotchange",t)}get mode(){return this[ke]}get host(){return this[Aa]}get clonable(){return this[ka]}get delegatesFocus(){return this[rm]}get serializable(){return this[sn]}get slotAssignment(){return this[xs]}get fullscreenElement(){return null}get pictureInPictureElement(){return null}get pointerLockElement(){return null}get innerHTML(){let t=new Vi,r="";for(let o of this[q])r+=t.serializeToString(o);return r}set innerHTML(t){let r=this[q];for(;r.length;)this.removeChild(r[0]);new $r(this[y]).parse(t,this)}get adoptedStyleSheets(){return this[Ea]}set adoptedStyleSheets(t){this[Ea]=t}get activeElement(){let t=this[T][$e],r=t?.getRootNode();if(!r||r===this[T])return null;if(r===this)return t;for(;r&&r!==this;)t=r.host,r=t.getRootNode();return t}getAnimations(){return[]}setHTMLUnsafe(t){let r=this[q];for(;r.length;)this.removeChild(r[0]);new $r(this[y]).parse(t,this)}toString(){return this.innerHTML}[(pL=Ea,uL=ke,mL=Aa,yL=ka,aL=rm,lL=sn,nL=xs,sL=c,ht)](t=!1){let r=super[ht](t);return r[ke]=this[ke],r[ka]=this[ka],r[rm]=this[rm],r[sn]=this[sn],r[xs]=this[xs],r}};var hL,cL,xS,it=class extends(cL=dr,hL=Ee,cL){constructor(){super(...arguments);s(this,hL,null);x(this,xS,null)}get onabort(){return S.getEventListener(this,"onabort")}set onabort(t){this[c].set("onabort",t)}get onanimationend(){return S.getEventListener(this,"onanimationend")}set onanimationend(t){this[c].set("onanimationend",t)}get onanimationiteration(){return S.getEventListener(this,"onanimationiteration")}set onanimationiteration(t){this[c].set("onanimationiteration",t)}get onanimationstart(){return S.getEventListener(this,"onanimationstart")}set onanimationstart(t){this[c].set("onanimationstart",t)}get onauxclick(){return S.getEventListener(this,"onauxclick")}set onauxclick(t){this[c].set("onauxclick",t)}get onblur(){return S.getEventListener(this,"onblur")}set onblur(t){this[c].set("onblur",t)}get oncancel(){return S.getEventListener(this,"oncancel")}set oncancel(t){this[c].set("oncancel",t)}get oncanplay(){return S.getEventListener(this,"oncanplay")}set oncanplay(t){this[c].set("oncanplay",t)}get oncanplaythrough(){return S.getEventListener(this,"oncanplaythrough")}set oncanplaythrough(t){this[c].set("oncanplaythrough",t)}get onchange(){return S.getEventListener(this,"onchange")}set onchange(t){this[c].set("onchange",t)}get onclick(){return S.getEventListener(this,"onclick")}set onclick(t){this[c].set("onclick",t)}get onclose(){return S.getEventListener(this,"onclose")}set onclose(t){this[c].set("onclose",t)}get oncontextmenu(){return S.getEventListener(this,"oncontextmenu")}set oncontextmenu(t){this[c].set("oncontextmenu",t)}get oncopy(){return S.getEventListener(this,"oncopy")}set oncopy(t){this[c].set("oncopy",t)}get oncuechange(){return S.getEventListener(this,"oncuechange")}set oncuechange(t){this[c].set("oncuechange",t)}get oncut(){return S.getEventListener(this,"oncut")}set oncut(t){this[c].set("oncut",t)}get ondblclick(){return S.getEventListener(this,"ondblclick")}set ondblclick(t){this[c].set("ondblclick",t)}get ondrag(){return S.getEventListener(this,"ondrag")}set ondrag(t){this[c].set("ondrag",t)}get ondragend(){return S.getEventListener(this,"ondragend")}set ondragend(t){this[c].set("ondragend",t)}get ondragenter(){return S.getEventListener(this,"ondragenter")}set ondragenter(t){this[c].set("ondragenter",t)}get ondragleave(){return S.getEventListener(this,"ondragleave")}set ondragleave(t){this[c].set("ondragleave",t)}get ondragover(){return S.getEventListener(this,"ondragover")}set ondragover(t){this[c].set("ondragover",t)}get ondragstart(){return S.getEventListener(this,"ondragstart")}set ondragstart(t){this[c].set("ondragstart",t)}get ondrop(){return S.getEventListener(this,"ondrop")}set ondrop(t){this[c].set("ondrop",t)}get ondurationchange(){return S.getEventListener(this,"ondurationchange")}set ondurationchange(t){this[c].set("ondurationchange",t)}get onemptied(){return S.getEventListener(this,"onemptied")}set onemptied(t){this[c].set("onemptied",t)}get onended(){return S.getEventListener(this,"onended")}set onended(t){this[c].set("onended",t)}get onerror(){return S.getEventListener(this,"onerror")}set onerror(t){this[c].set("onerror",t)}get onfocus(){return S.getEventListener(this,"onfocus")}set onfocus(t){this[c].set("onfocus",t)}get onformdata(){return S.getEventListener(this,"onformdata")}set onformdata(t){this[c].set("onformdata",t)}get ongotpointercapture(){return S.getEventListener(this,"ongotpointercapture")}set ongotpointercapture(t){this[c].set("ongotpointercapture",t)}get oninput(){return S.getEventListener(this,"oninput")}set oninput(t){this[c].set("oninput",t)}get oninvalid(){return S.getEventListener(this,"oninvalid")}set oninvalid(t){this[c].set("oninvalid",t)}get onkeydown(){return S.getEventListener(this,"onkeydown")}set onkeydown(t){this[c].set("onkeydown",t)}get onkeypress(){return S.getEventListener(this,"onkeypress")}set onkeypress(t){this[c].set("onkeypress",t)}get onkeyup(){return S.getEventListener(this,"onkeyup")}set onkeyup(t){this[c].set("onkeyup",t)}get onload(){return S.getEventListener(this,"onload")}set onload(t){this[c].set("onload",t)}get onloadeddata(){return S.getEventListener(this,"onloadeddata")}set onloadeddata(t){this[c].set("onloadeddata",t)}get onloadedmetadata(){return S.getEventListener(this,"onloadedmetadata")}set onloadedmetadata(t){this[c].set("onloadedmetadata",t)}get onloadstart(){return S.getEventListener(this,"onloadstart")}set onloadstart(t){this[c].set("onloadstart",t)}get onlostpointercapture(){return S.getEventListener(this,"onlostpointercapture")}set onlostpointercapture(t){this[c].set("onlostpointercapture",t)}get onmousedown(){return S.getEventListener(this,"onmousedown")}set onmousedown(t){this[c].set("onmousedown",t)}get onmouseenter(){return S.getEventListener(this,"onmouseenter")}set onmouseenter(t){this[c].set("onmouseenter",t)}get onmouseleave(){return S.getEventListener(this,"onmouseleave")}set onmouseleave(t){this[c].set("onmouseleave",t)}get onmousemove(){return S.getEventListener(this,"onmousemove")}set onmousemove(t){this[c].set("onmousemove",t)}get onmouseout(){return S.getEventListener(this,"onmouseout")}set onmouseout(t){this[c].set("onmouseout",t)}get onmouseover(){return S.getEventListener(this,"onmouseover")}set onmouseover(t){this[c].set("onmouseover",t)}get onmouseup(){return S.getEventListener(this,"onmouseup")}set onmouseup(t){this[c].set("onmouseup",t)}get onmousewheel(){return S.getEventListener(this,"onmousewheel")}set onmousewheel(t){this[c].set("onmousewheel",t)}get onpaste(){return S.getEventListener(this,"onpaste")}set onpaste(t){this[c].set("onpaste",t)}get onpause(){return S.getEventListener(this,"onpause")}set onpause(t){this[c].set("onpause",t)}get onplay(){return S.getEventListener(this,"onplay")}set onplay(t){this[c].set("onplay",t)}get onplaying(){return S.getEventListener(this,"onplaying")}set onplaying(t){this[c].set("onplaying",t)}get onpointercancel(){return S.getEventListener(this,"onpointercancel")}set onpointercancel(t){this[c].set("onpointercancel",t)}get onpointerdown(){return S.getEventListener(this,"onpointerdown")}set onpointerdown(t){this[c].set("onpointerdown",t)}get onpointerenter(){return S.getEventListener(this,"onpointerenter")}set onpointerenter(t){this[c].set("onpointerenter",t)}get onpointerleave(){return S.getEventListener(this,"onpointerleave")}set onpointerleave(t){this[c].set("onpointerleave",t)}get onpointermove(){return S.getEventListener(this,"onpointermove")}set onpointermove(t){this[c].set("onpointermove",t)}get onpointerout(){return S.getEventListener(this,"onpointerout")}set onpointerout(t){this[c].set("onpointerout",t)}get onpointerover(){return S.getEventListener(this,"onpointerover")}set onpointerover(t){this[c].set("onpointerover",t)}get onpointerrawupdate(){return S.getEventListener(this,"onpointerrawupdate")}set onpointerrawupdate(t){this[c].set("onpointerrawupdate",t)}get onpointerup(){return S.getEventListener(this,"onpointerup")}set onpointerup(t){this[c].set("onpointerup",t)}get onprogress(){return S.getEventListener(this,"onprogress")}set onprogress(t){this[c].set("onprogress",t)}get onratechange(){return S.getEventListener(this,"onratechange")}set onratechange(t){this[c].set("onratechange",t)}get onreset(){return S.getEventListener(this,"onreset")}set onreset(t){this[c].set("onreset",t)}get onresize(){return S.getEventListener(this,"onresize")}set onresize(t){this[c].set("onresize",t)}get onscroll(){return S.getEventListener(this,"onscroll")}set onscroll(t){this[c].set("onscroll",t)}get onscrollend(){return S.getEventListener(this,"onscrollend")}set onscrollend(t){this[c].set("onscrollend",t)}get onscrollsnapchange(){return S.getEventListener(this,"onscrollsnapchange")}set onscrollsnapchange(t){this[c].set("onscrollsnapchange",t)}get onscrollsnapchanging(){return S.getEventListener(this,"onscrollsnapchanging")}set onscrollsnapchanging(t){this[c].set("onscrollsnapchanging",t)}get onsecuritypolicyviolation(){return S.getEventListener(this,"onsecuritypolicyviolation")}set onsecuritypolicyviolation(t){this[c].set("onsecuritypolicyviolation",t)}get onseeked(){return S.getEventListener(this,"onseeked")}set onseeked(t){this[c].set("onseeked",t)}get onseeking(){return S.getEventListener(this,"onseeking")}set onseeking(t){this[c].set("onseeking",t)}get onselect(){return S.getEventListener(this,"onselect")}set onselect(t){this[c].set("onselect",t)}get onselectionchange(){return S.getEventListener(this,"onselectionchange")}set onselectionchange(t){this[c].set("onselectionchange",t)}get onselectstart(){return S.getEventListener(this,"onselectstart")}set onselectstart(t){this[c].set("onselectstart",t)}get onslotchange(){return S.getEventListener(this,"onslotchange")}set onslotchange(t){this[c].set("onslotchange",t)}get onstalled(){return S.getEventListener(this,"onstalled")}set onstalled(t){this[c].set("onstalled",t)}get onsubmit(){return S.getEventListener(this,"onsubmit")}set onsubmit(t){this[c].set("onsubmit",t)}get onsuspend(){return S.getEventListener(this,"onsuspend")}set onsuspend(t){this[c].set("onsuspend",t)}get ontimeupdate(){return S.getEventListener(this,"ontimeupdate")}set ontimeupdate(t){this[c].set("ontimeupdate",t)}get ontoggle(){return S.getEventListener(this,"ontoggle")}set ontoggle(t){this[c].set("ontoggle",t)}get ontransitioncancel(){return S.getEventListener(this,"ontransitioncancel")}set ontransitioncancel(t){this[c].set("ontransitioncancel",t)}get ontransitionend(){return S.getEventListener(this,"ontransitionend")}set ontransitionend(t){this[c].set("ontransitionend",t)}get ontransitionrun(){return S.getEventListener(this,"ontransitionrun")}set ontransitionrun(t){this[c].set("ontransitionrun",t)}get ontransitionstart(){return S.getEventListener(this,"ontransitionstart")}set ontransitionstart(t){this[c].set("ontransitionstart",t)}get onvolumechange(){return S.getEventListener(this,"onvolumechange")}set onvolumechange(t){this[c].set("onvolumechange",t)}get onwaiting(){return S.getEventListener(this,"onwaiting")}set onwaiting(t){this[c].set("onwaiting",t)}get onwheel(){return S.getEventListener(this,"onwheel")}set onwheel(t){this[c].set("onwheel",t)}get ownerSVGElement(){let t=this[W];for(;t;){if(t[dt]==="svg")return t;t=t[W]}return null}get viewportElement(){return this.ownerSVGElement}get dataset(){return u(this,xS)??w(this,xS,new Vm(h,this))}get style(){return this[Ee]||(this[Ee]=new uo(h,this[y],{element:this})),this[Ee]}get tabIndex(){let t=this.getAttribute("tabindex");return t!==null?Number(t):-1}set tabIndex(t){t===-1?this.removeAttribute("tabindex"):this.setAttribute("tabindex",String(t))}blur(){Fl.blur(this)}focus(){Fl.focus(this)}};xS=new WeakMap;var mh=class{observe(){}unobserve(){}disconnect(){}};var zm=class{constructor(){s(this,"width",1024);s(this,"height",768);s(this,"availWidth",1024);s(this,"availHeight",768);s(this,"colorDepth",24);s(this,"pixelDepth",24)}};var dL;dL=le;var pw=class pw{constructor(){s(this,dL,{});let e=this[le],t=new xe(this,[pw]);return new Proxy(this,{get:(r,o)=>{if(o in r||typeof o=="symbol")return t.bind(o),r[o];if(o in e)return e[o]},set(r,o,i){return t.bind(o),o in r||typeof o=="symbol"||(e[String(o)]=String(i)),!0},deleteProperty(r,o){return o in e?(delete e[String(o)],!0):!1},ownKeys(){return Object.keys(e)},has(r,o){return o in r||o in e},defineProperty(r,o,i){return t.preventBinding(o),o in r?(Object.defineProperty(r,o,i),!0):i.value!==void 0?(e[String(o)]=String(i.value),!0):!1},getOwnPropertyDescriptor(r,o){if(o in r)return;let i=e[String(o)];if(i!==void 0)return{value:i,writable:!0,enumerable:!0,configurable:!0}}})}get length(){return Object.keys(this[le]).length}key(e){let t=Object.keys(this[le])[e];return t!==void 0?t:null}setItem(e,t){this[le][e]=String(t)}getItem(e){return this[le][e]!==void 0?this[le][e]:null}removeItem(e){delete this[le][e]}clear(){let e=this[le];for(let t of Object.keys(e))delete e[t]}},Cy=pw;var Fi,$b,bL,gL,fL,uh=class{constructor(){x(this,Fi)}serializeToString(e){return F(this,Fi,$b).call(this,e)}};Fi=new WeakSet,$b=function(e,t=null,r=null){switch(e[U]){case M.elementNode:let o=e,i=o[dt],n="",a=F(this,Fi,bL).call(this,o,r),m=o[et]===$t.html?o[Vt]:F(this,Fi,gL).call(this,o,a),p=`${m?m+":":""}${i}`,b=m?t:o[et]||t,d=F(this,Fi,fL).call(this,o,m,t,r),f=b===$t.html&&i==="template"?e.content[q]:e[q];for(let ct of f)n+=F(this,Fi,$b).call(this,ct,b,a);return!n&&b===$t.html&&cr[i.toLowerCase()]?.contentModel===H.noDescendants?`<${p}${d} />`:!n&&b!==$t.html?`<${p}${d}/>`:`<${p}${d}>${n}</${p}>`;case ft.DOCUMENT_FRAGMENT_NODE:case ft.DOCUMENT_NODE:let v="";e[ym]&&(v+=F(this,Fi,$b).call(this,e[ym],t,new Map(r)));for(let ct of e[q])v+=F(this,Fi,$b).call(this,ct,t,new Map(r));return v;case M.commentNode:return`<!--${e.textContent}-->`;case M.processingInstructionNode:return`<?${e.target} ${e.textContent}?>`;case M.textNode:let L=e.parentElement;return L&&cr[L[dt]]?.contentModel===H.rawText?e.textContent:He.encodeTextContent(e.textContent);case M.documentTypeNode:let C=e,X=C.publicId?" PUBLIC":C.systemId?" SYSTEM":"",lt=C.publicId?` "${C.publicId}"`:"",Q=C.systemId?` "${C.systemId}"`:"";return`<!DOCTYPE ${C.name}${X}${lt}${Q}>`}return""},bL=function(e,t){let r=new Map(t);for(let o of e[St][Y].values())o[et]===$t.xmlns&&o[Vt]&&r.set(o[J],o[dt]);return r},gL=function(e,t){if(e[Vt]&&!e[et])throw new Error("Element has a prefix but no namespace.");if(!e[Vt]||!t)return null;let r=t.get(e[et]);if(r)return r;let o=new Set(t.values());if(o.has(e[Vt])){let i=1;for(;o.has("n"+i);)i++;return t.set(e[et],"n"+i),"n"+i}return t.set(e[et],e[Vt]),e[Vt]},fL=function(e,t,r,o){let i="",n="",a=new Set;for(let m of e[St][Y].values())m[et]===$t.xmlns?t&&m[dt]===t&&e[et]?(n+=` xmlns:${t}="${He.encodeXMLAttributeValue(e[et])}"`,a.add(e[et])):!t&&m[nt]==="xmlns"&&e[et]?(n+=` xmlns="${He.encodeXMLAttributeValue(e[et])}"`,a.add(e[et])):(n+=` ${m[nt]}="${He.encodeXMLAttributeValue(m[J])}"`,a.add(m[J])):i+=` ${m[nt]}="${He.encodeXMLAttributeValue(m[J])}"`;return e[et]&&r!==e[et]&&!a.has(e[et])&&(t&&!o?.has(e[et])?n+=` xmlns:${t}="${He.encodeXMLAttributeValue(e[et])}"`:!t&&r!==e[et]&&(n+=` xmlns="${He.encodeXMLAttributeValue(e[et])}"`)),n+i};import{Script as q2}from"vm";var SL=new q2(`
136
+ this.ArrayBuffer = globalThis.ArrayBuffer;
137
+ this.Boolean = globalThis.Boolean;
138
+ this.DataView = globalThis.DataView;
139
+ this.Date = globalThis.Date;
140
+ this.Error = globalThis.Error;
141
+ this.EvalError = globalThis.EvalError;
142
+ this.Float32Array = globalThis.Float32Array;
143
+ this.Float64Array = globalThis.Float64Array;
144
+ this.GLOBAL = globalThis.GLOBAL;
145
+ this.Infinity = globalThis.Infinity;
146
+ this.Int16Array = globalThis.Int16Array;
147
+ this.Int32Array = globalThis.Int32Array;
148
+ this.Int8Array = globalThis.Int8Array;
149
+ this.Intl = globalThis.Intl;
150
+ this.JSON = globalThis.JSON;
151
+ this.Map = globalThis.Map;
152
+ this.Math = globalThis.Math;
153
+ this.NaN = globalThis.NaN;
154
+ this.Number = globalThis.Number;
155
+ this.Promise = globalThis.Promise;
156
+ this.RangeError = globalThis.RangeError;
157
+ this.ReferenceError = globalThis.ReferenceError;
158
+ this.RegExp = globalThis.RegExp;
159
+ this.Reflect = globalThis.Reflect;
160
+ this.Set = globalThis.Set;
161
+ this.Symbol = globalThis.Symbol;
162
+ this.SyntaxError = globalThis.SyntaxError;
163
+ this.String = globalThis.String;
164
+ this.TypeError = globalThis.TypeError;
165
+ this.URIError = globalThis.URIError;
166
+ this.Uint16Array = globalThis.Uint16Array;
167
+ this.Uint32Array = globalThis.Uint32Array;
168
+ this.Uint8Array = globalThis.Uint8Array;
169
+ this.Uint8ClampedArray = globalThis.Uint8ClampedArray;
170
+ this.WeakMap = globalThis.WeakMap;
171
+ this.WeakSet = globalThis.WeakSet;
172
+ this.decodeURI = globalThis.decodeURI;
173
+ this.decodeURIComponent = globalThis.decodeURIComponent;
174
+ this.encodeURI = globalThis.encodeURI;
175
+ this.encodeURIComponent = globalThis.encodeURIComponent;
176
+ this.eval = globalThis.eval;
177
+ this.escape = globalThis.escape;
178
+ this.global = globalThis.global;
179
+ this.isFinite = globalThis.isFinite;
180
+ this.isNaN = globalThis.isNaN;
181
+ this.parseFloat = globalThis.parseFloat;
182
+ this.parseInt = globalThis.parseInt;
183
+ this.root = globalThis.root;
184
+ this.undefined = globalThis.undefined;
185
+ this.unescape = globalThis.unescape;
186
+ this.AbortController = globalThis.AbortController;
187
+ this.AbortSignal = globalThis.AbortSignal;
188
+ this.Array = globalThis.Array;
189
+ this.Object = globalThis.Object;
190
+ this.Function = globalThis.Function;
191
+ `);import{URL as W2}from"url";var qb=class{static openPage(e,t){let r=this.getWindowFeatures(t?.features||""),o=t?.target!==void 0?String(t.target):null,i=new W2(e.window.location.href),n=xo.getRelativeURL(e,t?.url),a=e.window,m;if(e.window!==a)return null;switch(o){case"_self":m=e;break;case"_top":m=e.page.mainFrame;break;case"_parent":m=e.parentFrame??e;break;default:m=e.page.context.newPage().mainFrame,m[So]=e;break}if(m.goto(n.href,{referrer:r.noreferrer?void 0:e.window.location.origin,referrerPolicy:r.noreferrer?"no-referrer":void 0}).catch(b=>{m.page.console.error(b)}),n.protocol==="javascript:")return m.window;if(m===e&&e.window===a)return null;r.popup&&o!=="_self"&&o!=="_top"&&o!=="_parent"&&(m[al]=!0,(r?.width||r?.height)&&m.page.setViewport({width:r?.width,height:r?.height}),r?.left&&(m.window.screenLeft=r.left,m.window.screenX=r.left),r?.top&&(m.window.screenTop=r.top,m.window.screenY=r.top)),o&&o!=="_self"&&o!=="_top"&&o!=="_parent"&&o!=="_blank"&&(m.window.name=o);let p=Ci.isCORS(i,m.url);return!r.noopener&&!r.noreferrer&&e.window&&m[So]&&m.window!==e.window&&(m[ji]=p?new Wl(e.window):e.window),r.noopener||r.noreferrer?null:p?new Wl(m.window,e.window):m.window}static getWindowFeatures(e){let t=e.split(","),r={popup:!1,width:0,height:0,left:0,top:0,noopener:!1,noreferrer:!1};for(let o of t){let[i,n]=o.split("=");switch(i){case"popup":r.popup=!n||n==="yes"||n==="1"||n==="true";break;case"width":case"innerWidth":r.width=parseInt(n,10);break;case"height":case"innerHeight":r.height=parseInt(n,10);break;case"left":case"screenX":r.left=parseInt(n,10);break;case"top":case"screenY":r.top=parseInt(n,10);break;case"noopener":r.noopener=!0;break;case"noreferrer":r.noreferrer=!0;break}}return r}};import{PerformanceObserver as QU,PerformanceEntry as t3}from"node:perf_hooks";var ph=class extends zo{constructor(){super();let e=this.createElement("html"),t=this.createElement("body"),r=this.createElement("head");this.appendChild(e),e.appendChild(r),e.appendChild(t)}[Et](e,t=!1){if(e[U]===M.textNode)throw new this[y].Error("Failed to execute 'appendChild' on 'Node': Nodes of type '#text' may not be inserted inside nodes of type '#document'.");if(e[U]===M.documentFragmentNode)return e;if(e[U]===M.elementNode&&this[gt].length!==0)throw new this[y].Error("Failed to execute 'appendChild' on 'Node': Only one element on document allowed.");return super[Et](e,t)}[lo](e,t,r=!1){if(e[U]===M.textNode)throw new this[y].Error("Failed to execute 'insertBefore' on 'Node': Nodes of type '#text' may not be inserted inside nodes of type '#document'.");if(e[U]===M.documentFragmentNode)return e;if(e[U]===M.elementNode&&this[gt].length!==0)throw new this[y].Error("Failed to execute 'insertBefore' on 'Node': Only one element on document allowed.");return super[lo](e,t,r)}};var PL,wL,hh=class extends(wL=zo,PL=Oe,wL){constructor(){super(...arguments);s(this,PL,"application/xml")}};var xL,EL,vL,ch=class extends Ms{constructor(){super(...arguments);s(this,vL,M.textNode);s(this,EL,null);s(this,xL,null)}get nodeName(){return"#text"}get data(){return this[le]}set data(t){super.data=t,this[Pr]&&this[Pr][gu](),this[Br]&&this[Br][La]()}splitText(t){let r=this[le].length;if(t<0||t>r)throw new this[y].DOMException("The index is not in the allowed range.",A.indexSizeError);let o=r-t,i=this.substringData(t,o),n=this[T].createTextNode(i);return this[W]!==null&&this[W].insertBefore(n,this.nextSibling),this.replaceData(t,o,""),n}toString(){return"[object Text]"}[(vL=U,EL=Pr,xL=Br,ht)](t=!1){return super[ht](t)}[To](){super[To](),this[Pr]&&this[Pr][gu](),this[Br]&&this[le]&&this[Br][La]()}[Js](){this[Pr]&&this[Pr][gu](),this[Br]&&this[le]&&this[Br][La](),super[Js]()}};var AL,dh=class extends Ms{constructor(){super(...arguments);s(this,AL,M.commentNode)}get nodeName(){return"#comment"}toString(){return"[object Comment]"}[(AL=U,ht)](t=!1){return super[ht](t)}};var TL,NL,LL,CL,bh=class extends(CL=Ay,LL=tt,NL=dt,TL=et,CL){constructor(t=null,r=null){super();s(this,LL,"IMG");s(this,NL,"img");s(this,TL,$t.html);t!==null&&(this.width=t),r!==null&&(this.height=r)}};var kL,ML,RL,OL,Wb=class extends(OL=gy,RL=tt,ML=dt,kL=et,OL){constructor(t=null){super();s(this,RL,"AUDIO");s(this,ML,"audio");s(this,kL,$t.html);t!==null&&(this.src=t)}};var Xl,gh,fh,Yl,ky,Bs,jb=class{constructor(e){s(this,"target");s(this,"options");s(this,"mutationListener");x(this,Xl);x(this,gh);x(this,fh);x(this,Yl,[]);x(this,ky,!1);x(this,Bs,null);this.options=e.options,this.target=e.target,this.mutationListener={options:e.options,callback:new WeakRef(t=>this.report(t))},w(this,Xl,e.window),w(this,gh,e.observer),w(this,fh,e.callback)}report(e){u(this,ky)||(u(this,Yl).push(e),u(this,Bs)&&u(this,Xl).clearTimeout(u(this,Bs)),w(this,Bs,u(this,Xl).setTimeout(()=>{if(u(this,ky))return;let t=u(this,Yl);t?.length>0&&(w(this,Yl,[]),u(this,fh).call(this,t,u(this,gh)))})))}takeRecords(){if(u(this,Bs)&&u(this,Xl).clearTimeout(u(this,Bs)),u(this,ky))return[];let e=u(this,Yl);return w(this,Yl,[]),e}destroy(){u(this,ky)||(u(this,Bs)&&u(this,Xl).clearTimeout(u(this,Bs)),w(this,ky,!0),this.options=null,this.target=null,this.mutationListener=null,w(this,Xl,null),w(this,gh,null),w(this,fh,null),w(this,Bs,null),w(this,Yl,null))}};Xl=new WeakMap,gh=new WeakMap,fh=new WeakMap,Yl=new WeakMap,ky=new WeakMap,Bs=new WeakMap;var zb,Kl,Xb,Sh=class{constructor(e){x(this,zb);x(this,Kl,[]);x(this,Xb,!1);if(!this[y])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);w(this,zb,e)}observe(e,t){if(u(this,Xb))return;if(!e)throw new this[y].TypeError(`Failed to execute 'observe' on 'MutationObserver': The first parameter "target" should be of type "Node".`);if(t&&(t.attributeFilter||t.attributeOldValue)){if(t.attributes===void 0&&(t=Object.assign({},t,{attributes:!0,attributeFilter:t.attributeFilter,attributeOldValue:t.attributeOldValue})),!t.attributes&&t.attributeOldValue)throw new this[y].TypeError("Failed to execute 'observe' on 'MutationObserver': The options object may only set 'attributeOldValue' to true when 'attributes' is true or not present.");if(!t.attributes&&t.attributeFilter)throw new this[y].TypeError("Failed to execute 'observe' on 'MutationObserver': The options object may only set 'attributeFilter' when 'attributes' is true or not present.")}if(t&&t.characterDataOldValue&&(t.characterData===void 0&&(t=Object.assign({},t,{characterData:!0,characterDataOldValue:t.characterDataOldValue})),!t.characterData&&t.characterDataOldValue))throw new this[y].TypeError("Failed to execute 'observe' on 'MutationObserver': The options object may only set 'characterDataOldValue' to true when 'characterData' is true or not present.");if(!t||!t.childList&&!t.attributes&&!t.characterData)throw new this[y].TypeError("Failed to execute 'observe' on 'MutationObserver': The options object must set at least one of 'attributes', 'characterData', or 'childList' to true.");t=Object.assign({},t,{attributeFilter:t.attributeFilter?t.attributeFilter.map(o=>o.toLowerCase()):null});for(let o of u(this,Kl))if(o.target===e){o.options=t;return}let r=new jb({window:this[y],options:t,callback:u(this,zb).bind(this),observer:this,target:e});u(this,Kl).push(r),this[y][xa].includes(this)||this[y][xa].push(this),e[Jy](r.mutationListener)}disconnect(){if(u(this,Kl).length===0)return;for(let r of u(this,Kl))r.target[fu](r.mutationListener),r.destroy();w(this,Kl,[]);let e=this[y][xa],t=e.indexOf(this);t!==-1&&e.splice(t,1)}takeRecords(){let e=[];for(let t of u(this,Kl))e=e.concat(t.takeRecords());return e}[ye](){w(this,Xb,!0),this.disconnect()}};zb=new WeakMap,Kl=new WeakMap,Xb=new WeakMap;var Yb=class extends _t{postMessage(e,t){}start(){}close(){}};var j2=/\/\*[\s\S]*?\*\//gm,Kb,Ph=class{constructor(e){x(this,Kb);w(this,Kb,e)}parseFromString(e){let t=u(this,Kb),r=t[y],o=e.replace(j2,""),i=[],n=/{|}/gm,a=[],m=null,p=0,b;for(;b=n.exec(o);){if(b[0]==="{"){let d=o.substring(p,b.index).trim();if(d[0]==="@"){let f=d.split(" "),v=f[0],L=f.slice(1).join(" ").trim();switch(v){case"@keyframes":case"@-webkit-keyframes":let C=new Wa(h,r,this);C[mo]=v==="@-webkit-keyframes"?"-webkit-":"",C[nt]=L,C[pi]=t,m?(m.type===pt.mediaRule||m.type===pt.containerRule||m.type===pt.supportsRule)&&m.cssRules.push(C):i.push(C),m=C;break;case"@media":let X=L.split(","),lt=new za(h,r,this);for(let Lt of X)lt.media.appendMedium(Lt.trim());lt[pi]=t,m?(m.type===pt.mediaRule||m.type===pt.containerRule||m.type===pt.supportsRule)&&m.cssRules.push(lt):i.push(lt),m=lt;break;case"@container":case"@-webkit-container":let Q=new Ga(h,r,this);Q[mo]=v==="@-webkit-container"?"-webkit-":"",Q[Uo]=L,Q[pi]=t,m?(m.type===pt.mediaRule||m.type===pt.containerRule||m.type===pt.supportsRule)&&m.cssRules.push(Q):i.push(Q),m=Q;break;case"@supports":case"@-webkit-supports":let ct=new Ja(h,r,this);ct[mo]=v==="@-webkit-supports"?"-webkit-":"",ct[Uo]=L,ct[pi]=t,m?(m.type===pt.mediaRule||m.type===pt.containerRule||m.type===pt.supportsRule)&&m.cssRules.push(ct):i.push(ct),m=ct;break;case"@font-face":let qt=new $a(h,r,this);qt[Yr]=L,qt[pi]=t,m?(m.type===pt.mediaRule||m.type===pt.containerRule||m.type===pt.supportsRule)&&m.cssRules.push(qt):i.push(qt),m=qt;break;case"@scope":case"@-webkit-scope":let Nt=new kn(h,r,this);if(Nt[mo]=v==="@-webkit-scope"?"-webkit-":"",Nt[pi]=t,L){let Lt=L.split(/\s+to\s+/);Lt[0]&&Lt[0][0]==="("&&Lt[0][Lt[0].length-1]===")"&&(Nt[G]=Lt[0].slice(1,-1)),Lt[1]&&Lt[1][0]==="("&&Lt[1][Lt[1].length-1]===")"&&(Nt[j]=Lt[1].slice(1,-1))}m?(m.type===pt.mediaRule||m.type===pt.containerRule||m.type===pt.supportsRule)&&m.cssRules.push(Nt):i.push(Nt),m=Nt;break;default:let te=new On(h,r,this);te[pi]=t,m=te;break}}else if(m&&m.type===pt.keyframesRule){let f=new Rn(h,r,this),v=d.trim();v==="from"?v="0%":v==="to"&&(v="100%"),f[Ln]=v,f[pi]=t,f[Pl]=m,m.cssRules.push(f),m=f}else if(m&&(m.type===pt.mediaRule||m.type===pt.containerRule||m.type===pt.supportsRule)){if(this.validateSelectorText(d)){let f=new On(h,r,this);f[um]=d,f[pi]=t,f[Pl]=m,m.cssRules.push(f),m=f}}else if(this.validateSelectorText(d)){let f=new On(h,r,this);f[um]=d,f[pi]=t,f[Pl]=m,m||i.push(f),m=f}m&&a.push(m)}else{if(m){let d=o.substring(p,b.index).trim().replace(/([^;])$/,"$1;");switch(m.type){case pt.fontFaceRule:case pt.keyframeRule:case pt.styleRule:m[Yr]=d;break}}a.pop(),m=a[a.length-1]||null}p=b.index+1}return i}validateSelectorText(e){try{vl.getSelectorGroups(e)}catch{return!1}return!0}};Kb=new WeakMap;var Jb,wh=class{constructor(e){s(this,"cssRules",[]);s(this,"media");s(this,"title");s(this,"alternate");s(this,"disabled");x(this,Jb,null);this.media=e&&e.media?e.media:"",this.title=e&&e.title?e.title:"",this.alternate=e&&e.alternate?e.alternate:!1,this.disabled=e&&e.disabled?e.disabled:!1}insertRule(e,t){if(arguments.length===0)throw new this[y].TypeError("Failed to execute 'insertRule' on 'CSSStyleSheet': 1 argument required, but only 0 present.");let o=new Ph(this).parseFromString(e);if(o.length===0||o.length>1)throw new this[y].DOMException(`Failed to execute 'insertRule' on 'CSSStyleSheet': Failed to parse the rule '${e}'.`,A.syntaxError);if(t!==void 0){if(t>this.cssRules.length)throw new this[y].DOMException(`Failed to execute 'insertRule' on 'CSSStyleSheet': The index provided (${t}) is larger than the maximum index (${this.cssRules.length-1}).`,A.indexSizeError);return this.cssRules.splice(t,0,o[0]),t}let i=this.cssRules.length;return this.cssRules.push(o[0]),i}deleteRule(e){if(arguments.length===0)throw new this[y].TypeError("Failed to execute 'deleteRule' on 'CSSStyleSheet': 1 argument required, but only 0 present.");this.cssRules.splice(e,1)}async replace(e){if(arguments.length===0)throw new this[y].TypeError("Failed to execute 'replace' on 'CSSStyleSheet': 1 argument required, but only 0 present.");this.replaceSync(e)}replaceSync(e){if(arguments.length===0)throw new this[y].TypeError("Failed to execute 'replaceSync' on 'CSSStyleSheet': 1 argument required, but only 0 present.");u(this,Jb)!==e&&(w(this,Jb,e),this.cssRules=new Ph(this).parseFromString(e))}};Jb=new WeakMap;var VL,Us=class l{constructor(e){s(this,VL,{});if(e)if(e instanceof l)this[Sr]=JSON.parse(JSON.stringify(e[Sr]));else if(Array.isArray(e))for(let t of e){if(t.length!==2)throw new Ht('Failed to construct "Headers": The provided init is not a valid array.',A.invalidStateError);this.append(t[0],t[1])}else for(let t of Object.keys(e))this.set(t,e[t])}append(e,t){let r=e.toLowerCase();this[Sr][r]?this[Sr][r].value.push(t):this[Sr][r]={name:e,value:[t]}}delete(e){delete this[Sr][e.toLowerCase()]}get(e){return this[Sr][e.toLowerCase()]?.value.join(", ")??null}set(e,t){this[Sr][e.toLowerCase()]={name:e,value:[t]}}getSetCookie(){let e=this[Sr]["set-cookie"];return e?e.value:[]}has(e){return!!this[Sr][e.toLowerCase()]}forEach(e,t){let r=t??this[y];for(let o of Object.values(this[Sr]))e.call(r,o.value.join(", "),o.name,this)}*keys(){for(let e of Object.values(this[Sr]))yield e.name}*values(){for(let e of Object.values(this[Sr]))yield e.value.join(", ")}*entries(){for(let e of Object.values(this[Sr]))yield[e.name,e.value.join(", ")]}*[(VL=Sr,Symbol.iterator)](){for(let e of Object.values(this[Sr]))yield[e.name,e.value.join(", ")]}};var Jl=class extends _t{constructor(){super(...arguments);s(this,"onloadstart",null);s(this,"onprogress",null);s(this,"onabort",null);s(this,"onerror",null);s(this,"onload",null);s(this,"ontimeout",null);s(this,"onloadend",null)}};var Zb=class extends Jl{};var xh=class{constructor(){s(this,"signal",new this[y].AbortSignal)}abort(e){this.signal[ds](e)}};var IL,FL,Eh=class extends _t{constructor(){super();s(this,FL,!1);s(this,IL);s(this,"onabort",null);if(!this[y])throw new TypeError("Failed to construct 'AbortSignal': Illegal constructor")}get[(FL=we,IL=ui,Symbol.toStringTag)](){return"AbortSignal"}get aborted(){return this[we]}set aborted(t){}get reason(){return this[ui]}set reason(t){}[ds](t){this.aborted||(this[ui]=t!==void 0?t:new this[y].DOMException("signal is aborted without reason",A.abortError),this[we]=!0,this.dispatchEvent(new R("abort")))}throwIfAborted(){if(this.aborted)throw this.reason}static abort(t){let r=new this;return r[ui]=t!==void 0?t:new this[y].DOMException("signal is aborted without reason",A.abortError),r[we]=!0,r}static timeout(t){let r=this[y],o=new this;return r.setTimeout(()=>{o[ds](new r.DOMException("signal timed out",A.timeoutError))},t),o}static any(t){for(let n of t)if(n[we])return this.abort(n[ui]);let r=new this,o=new Map,i=()=>{for(let n of t)n.removeEventListener("abort",o.get(n))};for(let n of t){let a=()=>{i(),r[ds](n[ui])};o.set(n,a),n.addEventListener("abort",a)}return r}};var vh=class extends _t{constructor(t="granted"){super();s(this,"state");s(this,"onchange",null);this.state=t}};var hw;(function(l){l[l.unsent=0]="unsent",l[l.opened=1]="opened",l[l.headersReceived=2]="headersReceived",l[l.loading=3]="loading",l[l.done=4]="done"})(hw||(hw={}));var Qe=hw;var cw;(function(l){l.arraybuffer="arraybuffer",l.blob="blob",l.document="document",l.json="json",l.text="text"})(cw||(cw={}));var Xn=cw;var Ah=class{static parse(e){if(!e.data)return"";switch(e.responseType){case Xn.arraybuffer:let t=new ArrayBuffer(e.data.length),r=new Uint8Array(t);return r.set(e.data),r;case Xn.blob:try{return new e.window.Blob([new Uint8Array(e.data)],{type:e.contentType||""})}catch{}return null;case Xn.document:let o=e.window,i=new o.DOMParser;try{return i.parseFromString(e.data.toString(),"application/xml")}catch{}return null;case Xn.json:try{return JSON.parse(e.data.toString())}catch{}return null;case Xn.text:default:return e.data.toString()}}};var Th,Zl,My,vr,qr,Xm,Ql,Jo,Nh,Be,DL,_L,Er,Yn=class extends Jl{constructor(){super();x(this,Be);s(this,"upload",new this[y].XMLHttpRequestUpload);s(this,"withCredentials",!1);x(this,Th,!0);x(this,Zl,null);x(this,My,!1);x(this,vr,null);x(this,qr,null);x(this,Xm,"");x(this,Ql,null);x(this,Jo,Qe.unsent);x(this,Nh,null);if(!this[y])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get status(){return u(this,qr)?.status||0}get statusText(){return u(this,qr)?.statusText||""}get response(){return u(this,qr)?u(this,Ql):""}get responseText(){if(this.responseType!==Xn.text&&this.responseType!=="")throw new this[y].DOMException(`Failed to read the 'responseText' property from 'XMLHttpRequest': The value is only accessible if the object's 'responseType' is '' or 'text' (was '${this.responseType}').`,A.invalidStateError);return u(this,Ql)??""}get responseXML(){if(this.responseType!==Xn.document&&this.responseType!=="")throw new this[y].DOMException(`Failed to read the 'responseXML' property from 'XMLHttpRequest': The value is only accessible if the object's 'responseType' is '' or 'document' (was '${this.responseType}').`,A.invalidStateError);return this.responseType===""?null:u(this,Ql)}get responseURL(){return u(this,qr)?.url||""}get readyState(){return u(this,Jo)}set responseType(t){if(this.readyState!==Qe.opened&&this.readyState!==Qe.unsent)throw new this[y].DOMException("Failed to set the 'responseType' property on 'XMLHttpRequest': The object's state must be OPENED or UNSENT.",A.invalidStateError);if(!u(this,Th))throw new this[y].DOMException("Failed to set the 'responseType' property on 'XMLHttpRequest': The response type cannot be changed for synchronous requests made from a document.",A.invalidStateError);w(this,Xm,t)}get responseType(){return u(this,Xm)}open(t,r,o=!0,i,n){let a=this[y];if(!o&&this.responseType&&this.responseType!==Xn.text)throw new a.DOMException("Failed to execute 'open' on 'XMLHttpRequest': Synchronous requests from a document must not set a response type.",A.invalidAccessError);let m=new this[y].Headers;if(i){let p=Buffer.from(`${i}:${n||""}`);m.set("Authorization","Basic "+p.toString("base64"))}w(this,Th,o),w(this,My,!1),w(this,qr,null),w(this,Ql,null),w(this,Zl,new a.AbortController),w(this,vr,new a.Request(r,{method:t,headers:m,signal:u(this,Zl).signal,credentials:this.withCredentials?"include":"same-origin"})),w(this,Jo,Qe.opened)}setRequestHeader(t,r){if(this.readyState!==Qe.opened)throw new this[y].DOMException("Failed to execute 'setRequestHeader' on 'XMLHttpRequest': The object's state must be OPENED.",A.invalidStateError);return Cs.isHeaderForbidden(t)?!1:(u(this,vr).headers.set(t,r),!0)}getResponseHeader(t){return u(this,qr)?.headers.get(t)??null}getAllResponseHeaders(){if(!u(this,qr))return"";let t=[];for(let[r,o]of u(this,qr)?.headers){let i=r.toLowerCase();i!=="set-cookie"&&i!=="set-cookie2"&&t.push(`${r}: ${o}`)}return t.join(`\r
192
+ `)}send(t){let r=this[y];if(this.readyState!=Qe.opened)throw new this[y].DOMException("Failed to execute 'send' on 'XMLHttpRequest': Connection must be opened before send() is called.",A.invalidStateError);typeof t=="object"&&t!==null&&t[U]===M.documentNode&&(t=new r.XMLSerializer().serializeToString(t)),u(this,Th)?F(this,Be,DL).call(this,t).catch(o=>{throw o}):F(this,Be,_L).call(this,t)}abort(){u(this,My)||(w(this,My,!0),u(this,Zl).abort())}overrideMimeType(t){if(this.readyState===Qe.loading||this.readyState===Qe.done)throw new this[y].DOMException("Failed to execute 'overrideMimeType' on 'XMLHttpRequest': MIME type cannot be overridden when the request state is LOADING or DONE.",A.invalidStateError);w(this,Nh,t)}};Th=new WeakMap,Zl=new WeakMap,My=new WeakMap,vr=new WeakMap,qr=new WeakMap,Xm=new WeakMap,Ql=new WeakMap,Jo=new WeakMap,Nh=new WeakMap,Be=new WeakSet,DL=async function(t){let r=this[y],o=new ot(r).getBrowserFrame();if(!o)return;let i=o[bt],n=i.startTask(()=>this.abort());w(this,Jo,Qe.loading),F(this,Be,Er).call(this,new R("readystatechange")),F(this,Be,Er).call(this,new R("loadstart")),t&&w(this,vr,new r.Request(u(this,vr).url,{method:u(this,vr).method,headers:u(this,vr).headers,signal:u(this,Zl).signal,credentials:u(this,vr).credentials,body:t})),u(this,Zl).signal.addEventListener("abort",()=>{w(this,My,!0),w(this,Jo,Qe.unsent),F(this,Be,Er).call(this,new R("abort")),F(this,Be,Er).call(this,new R("loadend")),F(this,Be,Er).call(this,new R("readystatechange")),i.endTask(n)});let a=v=>{if(v instanceof Ht&&v.name===A.abortError){if(u(this,My))return;w(this,Jo,Qe.unsent),F(this,Be,Er).call(this,new R("abort"))}else w(this,Jo,Qe.done),F(this,Be,Er).call(this,new Vn("error",{error:v,message:v.message}));F(this,Be,Er).call(this,new R("loadend")),F(this,Be,Er).call(this,new R("readystatechange")),i.endTask(n)},m=new Wo({browserFrame:o,window:r,url:u(this,vr).url,init:u(this,vr)});try{w(this,qr,await m.send())}catch(v){a(v);return}w(this,Jo,Qe.headersReceived),F(this,Be,Er).call(this,new R("readystatechange"));let p=u(this,qr).headers.get("Content-Length"),b=p!==null&&!isNaN(Number(p))?Number(p):null,d=0,f=Buffer.from([]);if(u(this,qr).body){let v;try{for await(let L of u(this,qr).body){f=Buffer.concat([f,typeof L=="string"?Buffer.from(L):L]),d+=L.length;try{F(this,Be,Er).call(this,new Ho("progress",{lengthComputable:b!==null,loaded:d,total:b!==null?b:0}))}catch(C){throw v=C,C}}}catch(L){if(L===v)throw L;a(L);return}}w(this,Ql,Ah.parse({window:r,responseType:u(this,Xm),data:f,contentType:u(this,Nh)||u(this,qr).headers.get("Content-Type")||u(this,vr).headers.get("Content-Type")})),w(this,Jo,Qe.done),i.endTask(n),F(this,Be,Er).call(this,new R("readystatechange")),F(this,Be,Er).call(this,new R("load")),F(this,Be,Er).call(this,new R("loadend"))},_L=function(t){let r=this[y],o=new ot(r).getBrowserFrame();if(!o)return;t&&w(this,vr,new r.Request(u(this,vr).url,{method:u(this,vr).method,headers:u(this,vr).headers,signal:u(this,Zl).signal,credentials:u(this,vr).credentials,body:t})),w(this,Jo,Qe.loading);let i=new Gm({browserFrame:o,window:r,url:u(this,vr).url,init:u(this,vr)});try{w(this,qr,i.send())}catch(n){w(this,Jo,Qe.done),F(this,Be,Er).call(this,new Vn("error",{error:n,message:n.message})),F(this,Be,Er).call(this,new R("loadend")),F(this,Be,Er).call(this,new R("readystatechange"));return}w(this,Jo,Qe.headersReceived),w(this,Ql,Ah.parse({window:r,responseType:u(this,Xm),data:u(this,qr).body,contentType:u(this,Nh)||u(this,qr).headers.get("Content-Type")||u(this,vr).headers.get("Content-Type")})),w(this,Jo,Qe.done),F(this,Be,Er).call(this,new R("readystatechange")),F(this,Be,Er).call(this,new R("load")),F(this,Be,Er).call(this,new R("loadend"))},Er=function(t){let r=new ot(this[y]).getBrowserFrame();if(!r?.page?.context?.browser?.settings?.errorCapture)return;let o=r.page.context.browser.settings,i=o.errorCapture;o.errorCapture=me.tryAndCatch,this.dispatchEvent(t),o.errorCapture=i},s(Yn,"UNSENT",Qe.unsent),s(Yn,"OPENED",Qe.opened),s(Yn,"HEADERS_RECEIVED",Qe.headersReceived),s(Yn,"LOADING",Qe.loading),s(Yn,"DONE",Qe.done);var z2=/<([^\s/!>?]+)|<\/([^\s/!>?]+)\s*>|(<!--)|(-->)|(<!)|(<\?)|(\/>)|(>)/gm,X2=/\s*([a-zA-Z0-9-_:]+)\s*=\s*"([^"]*)("{0,1})|\s*([a-zA-Z0-9-_:]+)\s*=\s*'([^']*)('{0,1})/gm,BL=/^\s*([a-zA-Z0-9-_:]+)$/,Y2=/version="[^"]+"/,K2=/"([^"]+)"/gm,Qb=/\s+/,J2=/\n/g,zt;(function(l){l.any="any",l.startTag="startTag",l.comment="comment",l.documentType="documentType",l.processingInstruction="processingInstruction",l.error="error"})(zt||(zt={}));var Z2=Object.values($t),Lh=class{constructor(e){s(this,"window");s(this,"rootNode",null);s(this,"nodeStack",[]);s(this,"tagNameStack",[]);s(this,"defaultNamespaceStack",null);s(this,"namespacePrefixStack",null);s(this,"startTagIndex",0);s(this,"markupRegExp",null);s(this,"lastIndex",0);s(this,"errorIndex",0);s(this,"nextElement",null);s(this,"nextTagName",null);s(this,"currentNode",null);s(this,"readState",zt.any);s(this,"errorMessage",null);this.window=e}parse(e){this.rootNode=new this.window.XMLDocument,this.nodeStack=[this.rootNode],this.tagNameStack=[null],this.currentNode=this.rootNode,this.readState=zt.any,this.defaultNamespaceStack=[null],this.namespacePrefixStack=[null],this.startTagIndex=0,this.errorIndex=0,this.errorMessage=null,this.markupRegExp=new RegExp(z2,"gm"),this.lastIndex=0;let t;for(this.rootNode[fo]=this.window,e=String(e);t=this.markupRegExp.exec(e);){switch(this.readState){case zt.any:t.index!==this.lastIndex&&(t[1]||t[2]||t[3]||t[4]||t[5]!==void 0||t[6])&&this.parsePlainText(e.substring(this.lastIndex,t.index)),t[1]?this.parseStartTag(t[1]):t[2]?this.parseEndTag(t[2])||(this.errorMessage=`Opening and ending tag mismatch: ${this.tagNameStack[this.tagNameStack.length-1]} line ${e.substring(0,this.startTagIndex).split(`
193
+ `).length} and ${t[2]}
194
+ `,this.errorIndex=this.markupRegExp.lastIndex,this.readState=zt.error,this.removeOverflowingTextNodes()):t[3]?(this.startTagIndex=this.markupRegExp.lastIndex,this.readState=zt.comment):t[5]!==void 0?(this.startTagIndex=this.markupRegExp.lastIndex,this.readState=zt.documentType):t[6]?(this.startTagIndex=this.markupRegExp.lastIndex,this.readState=zt.processingInstruction):this.parsePlainText(e.substring(this.lastIndex,this.markupRegExp.lastIndex));break;case zt.startTag:if(t[7]||t[8]){let r=e.substring(this.startTagIndex,t[2]?this.markupRegExp.lastIndex-1:t.index),o=!!t[7];this.parseEndOfStartTag(r,o)}else this.errorMessage=t[2]&&this.lastIndex!==this.startTagIndex?`Unescaped '&lt;' not allowed in attributes values
195
+ `:`error parsing attribute name
196
+ `,this.errorIndex=t.index,this.readState=zt.error,this.removeOverflowingTextNodes();break;case zt.comment:t[4]&&this.parseComment(e.substring(this.startTagIndex,t.index));break;case zt.documentType:(t[7]||t[8])&&this.parseDocumentType(e.substring(this.startTagIndex,t.index));break;case zt.processingInstruction:(t[7]||t[8])&&this.parseProcessingInstruction(e.substring(this.startTagIndex,t.index));break;case zt.error:return this.parseError(e.slice(0,this.errorIndex),this.errorMessage),this.rootNode}this.lastIndex=this.markupRegExp.lastIndex}return this.readState===zt.error?(this.parseError(e.slice(0,this.errorIndex),this.errorMessage),this.rootNode):this.readState===zt.comment?(this.parseError(e,`Comment not terminated
197
+ `),this.removeOverflowingTextNodes(),this.rootNode):this.rootNode[gt].length===0?(this.parseError("","Start tag expected, '&lt;' not found"),this.rootNode):(this.lastIndex!==e.length&&this.currentNode&&this.parsePlainText(e.substring(this.lastIndex)),this.nodeStack.length!==1?(this.parseError(e,this.nextElement?`attributes construct error
198
+ `:`Premature end of data in tag article line 1
199
+ `),this.rootNode):this.rootNode)}parsePlainText(e){this.currentNode===this.rootNode?e.replace(Qb,"")&&(this.errorMessage=`Extra content at the end of the document
200
+ `,this.errorIndex=this.lastIndex,this.readState=zt.error):e.includes("&nbsp;")?(this.errorMessage=`Entity 'nbsp' not defined
201
+ `,this.errorIndex=this.lastIndex+e.indexOf("&nbsp;")+6,this.readState=zt.error):this.currentNode[Et](this.rootNode.createTextNode(He.decodeXMLEntities(e)),!0)}parseProcessingInstruction(e){let t=this.markupRegExp,r=e.split(Qb),o=e[e.length-1]==="?";if(r[0]==="xml")if(this.currentNode!==this.rootNode||this.rootNode[q].length!==0||r.length===1)this.errorMessage=`XML declaration allowed only at the start of the document
202
+ `,this.errorIndex=t.lastIndex-e.length+2,this.readState=zt.error,this.removeOverflowingTextNodes();else if(!Y2.test(r[1]))this.errorMessage=`Malformed declaration expecting version
203
+ `,this.errorIndex=t.lastIndex-e.length+3,this.readState=zt.error;else if(!o)this.errorMessage=`Blank needed here
204
+ `,this.errorIndex=t.lastIndex-1,this.readState=zt.error;else{let i=r[0],n=r.slice(1).join(" ").slice(0,-1);this.rootNode[ym]=this.rootNode.createProcessingInstruction(i,n),this.readState=zt.any}else if(r.length===1&&!o)this.errorMessage=`ParsePI: PI processing-instruction space expected
205
+ `,this.errorIndex=t.lastIndex-1,this.readState=zt.error;else if(r.length>1&&!o)this.errorMessage=`ParsePI: PI processing-instruction never end ...
206
+ `,this.errorIndex=t.lastIndex-1,this.readState=zt.error;else{let i=r[0],n=r.slice(1).join(" ").slice(0,-1);this.currentNode[Et](this.rootNode.createProcessingInstruction(i,n),!0),this.readState=zt.any}}parseComment(e){this.currentNode!==this.rootNode&&this.currentNode[Et](this.rootNode.createComment(He.decodeXMLEntities(e)),!0),this.readState=zt.any}parseDocumentType(e){let t=this.markupRegExp;if(this.currentNode===this.rootNode&&this.rootNode[q].length===0){let r=this.getDocumentType(He.decodeXMLEntities(e));r?.name?(this.rootNode[Et](this.window.document.implementation.createDocumentType(r.name,r.publicId,r.systemId),!0),this.readState=zt.any):r?(this.errorMessage=`xmlParseDocTypeDecl : no DOCTYPE name
207
+ `,this.errorIndex=t.lastIndex-e.length-2,this.readState=zt.error):(this.errorMessage=`StartTag: invalid element name
208
+ `,this.errorIndex=t.lastIndex-e.length-2,this.readState=zt.error)}else this.currentNode===this.rootNode&&this.rootNode[gt].length===1?(this.errorMessage=`Extra content at the end of the document
209
+ `,this.errorIndex=t.lastIndex-e.length-2,this.readState=zt.error):(this.errorMessage=`StartTag: invalid element name
210
+ `,this.errorIndex=t.lastIndex-e.length-2,this.readState=zt.error)}parseStartTag(e){let t=e.split(":"),r=this.namespacePrefixStack,o=this.defaultNamespaceStack;t.length>1?this.nextElement=this.rootNode.createElementNS(r[r.length-1]?.get(t[0])||null,e):this.nextElement=this.rootNode.createElementNS(o[o.length-1]||null,e),r.push(new Map(r[r.length-1])),this.nextTagName=e,this.startTagIndex=this.markupRegExp.lastIndex,this.readState=zt.startTag}parseEndOfStartTag(e,t){let r=this.namespacePrefixStack[this.namespacePrefixStack.length-1];if(e){let o=new RegExp(X2,"gm"),i,n=0;for(;i=o.exec(e);){let m=e.substring(n,i.index).replace(Qb,"");if(m.length){let p=m.match(BL);this.errorMessage=p?`Specification mandates value for attribute ${p[1]}
211
+ `:`attributes construct error
212
+ `,this.errorIndex=this.startTagIndex,this.readState=zt.error,this.removeOverflowingTextNodes();return}if(i[1]&&i[3]==='"'||i[4]&&i[6]==="'"){let p=i[1]??i[4],b=i[2]??i[5],d=b?He.decodeXMLAttributeValue(b.replace(J2," ")):"",f=this.nextElement[St],v=p.split(":");if(v.length>2||v.length===2&&(!v[0]||!v[1])){this.errorMessage=`Failed to parse QName '${p}'
213
+ `,this.errorIndex=this.startTagIndex+i.index+i[0].split("=")[0].length,this.readState=zt.error;return}let L=null;switch(v[0]){case"xmlns":L=$t.xmlns;break;case"xlink":L=$t.xlink;break}if(f.getNamedItemNS(L,v[1]??p))this.errorMessage=`Attribute ${p} redefined
214
+ `,this.errorIndex=this.startTagIndex,this.readState=zt.error;else{let C=De.createNode(this.rootNode,this.window.Attr);if(C[et]=L,C[nt]=p,C[dt]=L&&v[1]?v[1]:p,C[Vt]=L&&v[1]?v[0]:null,C[J]=d,f[Xi](C),C[Vt]==="xmlns")r.set(C[dt],d),this.nextElement[Vt]===C[dt]&&(this.nextElement[et]=d);else if(p==="xmlns"&&!this.nextElement[Vt])if(Z2.includes(d)){this.nextElement=this.rootNode.createElementNS(d,this.nextElement[tt]),this.nextElement[St]=f,f[At]=this.nextElement;for(let X of f[Y].values())X[At]=this.nextElement}else this.nextElement[et]=d}this.startTagIndex+=i[0].length}else if(i[1]&&i[3]!=='"'||i[4]&&i[6]!=="'")return;n=o.lastIndex}let a=e.substring(n).replace(Qb,"");if(a.length){let m=a.match(BL);m?(this.errorMessage=`Specification mandates value for attribute ${m[1]}
215
+ `,this.errorIndex=this.markupRegExp.lastIndex-2):(this.errorMessage=`attributes construct error
216
+ `,this.errorIndex=this.startTagIndex),this.readState=zt.error,this.removeOverflowingTextNodes();return}}if(this.nextElement[Vt]&&!this.nextElement[et]){this.errorMessage=`Namespace prefix ${this.nextElement[Vt]} on name is not defined
217
+ `,this.errorIndex=this.lastIndex,this.readState=zt.error;return}if(this.currentNode===this.rootNode&&this.rootNode[gt].length!==0){this.errorMessage=`Extra content at the end of the document
218
+ `,this.errorIndex=this.lastIndex-this.nextElement[tt].length-1,this.readState=zt.error;return}this.currentNode[Et](this.nextElement,!0),t||(this.currentNode=this.nextElement,this.nodeStack.push(this.currentNode),this.tagNameStack.push(this.nextTagName),this.currentNode[et]&&!this.currentNode[Vt]?this.defaultNamespaceStack.push(this.currentNode[et]):this.defaultNamespaceStack.push(this.defaultNamespaceStack[this.defaultNamespaceStack.length-1])),this.nextElement=null,this.nextTagName=null,this.readState=zt.any,this.startTagIndex=this.markupRegExp.lastIndex}parseEndTag(e){return this.tagNameStack[this.tagNameStack.length-1]===e?(this.nodeStack.pop(),this.tagNameStack.pop(),this.namespacePrefixStack.pop(),this.defaultNamespaceStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode,!0):!1}parseError(e,t){let r=this.rootNode.documentElement;if(!r){let m=this.rootNode.createElementNS($t.html,"html"),p=this.rootNode.createElementNS($t.html,"body");m.appendChild(p),r=p,this.rootNode[Et](m,!0)}let o=e.split(`
219
+ `),i=o[o.length-1].length+1,n=`error on line ${o.length} at column ${i}: ${t||"Unknown error"}`,a=this.rootNode.createElementNS($t.html,"parsererror");a.setAttribute("style","display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color: black"),a.innerHTML=`<h3>This page contains the following errors:</h3><div style="font-family:monospace;font-size:12px">${n}</div><h3>Below is a rendering of the page up to the first error.</h3>`,r.insertBefore(a,r.firstChild)}removeOverflowingTextNodes(){if(this.currentNode&&this.currentNode!==this.rootNode)for(;this.currentNode.lastChild?.[U]===ft.TEXT_NODE;)this.currentNode.removeChild(this.currentNode.lastChild)}getDocumentType(e){if(!e.toUpperCase().startsWith("DOCTYPE"))return null;let t=e.split(Qb);if(t.length<=1)return null;let r=t.slice(1).join(" "),o=[],i=new RegExp(K2,"gm"),n=r.toUpperCase().includes("PUBLIC"),a;for(;a=i.exec(r);)o.push(a[1]);let m=n&&o[0]||"",p=n?o[1]||"":o[0]||"";return{name:t[1].toLowerCase(),publicId:m,systemId:p}}};var Ch=class{parseFromString(e,t){if(!t)throw new this[y].DOMException('Second parameter "mimeType" is mandatory.');let r=this[y];switch(t){case"text/html":let o=new r.HTMLDocument;return o[fo]=r,new $r(this[y]).parse(e,o);case"image/svg+xml":case"text/xml":case"application/xml":case"application/xhtml+xml":return new Lh(this[y]).parse(e);default:throw new r.DOMException(`Unknown mime type "${t}".`)}}};var dw;(function(l){l[l.endToEnd=2]="endToEnd",l[l.endToStart=3]="endToStart",l[l.startToEnd=1]="startToEnd",l[l.startToStart=0]="startToStart"})(dw||(dw={}));var Ar=dw;var UL,GL,HL;HL=G,GL=j,UL=T;var Kn=class{constructor(){s(this,"END_TO_END",Ar.endToEnd);s(this,"END_TO_START",Ar.endToStart);s(this,"START_TO_END",Ar.startToEnd);s(this,"START_TO_START",Ar.startToStart);s(this,HL);s(this,GL);s(this,UL);let e=this[y];if(!e)throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);this[T]=e.document,this[G]={node:e.document,offset:0},this[j]={node:e.document,offset:0}}get startContainer(){return this[G].node}get endContainer(){return this[j].node}get startOffset(){if(this[G].offset>0){let e=Pt.getNodeLength(this[G].node);this[G].offset>e&&(this[G].offset=e)}return this[G].offset}get endOffset(){if(this[j].offset>0){let e=Pt.getNodeLength(this[j].node);this[j].offset>e&&(this[j].offset=e)}return this[j].offset}get collapsed(){return this[G].node===this[j].node&&this.startOffset===this.endOffset}get commonAncestorContainer(){let e=this[G].node;for(;e;){if(Pt.isInclusiveAncestor(e,this[j].node))return e;e=e[W]}return null}collapse(e=!1){e?this[j]=Object.assign({},this[G]):this[G]=Object.assign({},this[j])}compareBoundaryPoints(e,t){if(e!==Ar.startToStart&&e!==Ar.startToEnd&&e!==Ar.endToEnd&&e!==Ar.endToStart)throw new this[y].DOMException(`The comparison method provided must be one of '${Ar.startToStart}', '${Ar.startToEnd}', '${Ar.endToEnd}' or '${Ar.endToStart}'.`,A.notSupportedError);if(this[T]!==t[T])throw new this[y].DOMException("The two Ranges are not in the same tree.",A.wrongDocumentError);let r={node:null,offset:0},o={node:null,offset:0};switch(e){case Ar.startToStart:r.node=this[G].node,r.offset=this.startOffset,o.node=t[G].node,o.offset=t.startOffset;break;case Ar.startToEnd:r.node=this[j].node,r.offset=this.endOffset,o.node=t[G].node,o.offset=t.startOffset;break;case Ar.endToEnd:r.node=this[j].node,r.offset=this.endOffset,o.node=t[j].node,o.offset=t.endOffset;break;case Ar.endToStart:r.node=this[G].node,r.offset=this.startOffset,o.node=t[j].node,o.offset=t.endOffset;break}return Se.compareBoundaryPointsPosition(r,o)}comparePoint(e,t){if(e[T]!==this[T])throw new this[y].DOMException("The two Ranges are not in the same tree.",A.wrongDocumentError);Se.validateBoundaryPoint({node:e,offset:t});let r={node:e,offset:t};return Se.compareBoundaryPointsPosition(r,{node:this[G].node,offset:this.startOffset})===-1?-1:Se.compareBoundaryPointsPosition(r,{node:this[j].node,offset:this.endOffset})===1?1:0}cloneContents(){let e=this[y],t=this[T].createDocumentFragment(),r=this.startOffset,o=this.endOffset;if(this.collapsed)return t;if(this[G].node===this[j].node&&(this[G].node[U]===M.textNode||this[G].node[U]===M.processingInstructionNode||this[G].node[U]===M.commentNode)){let p=this[G].node.cloneNode(!1);return p[le]=p.substringData(r,o-r),t.appendChild(p),t}let i=this[G].node;for(;!Pt.isInclusiveAncestor(i,this[j].node);)i=i[W];let n=null;if(!Pt.isInclusiveAncestor(this[G].node,this[j].node)){let p=i.firstChild;for(;!n;)Se.isPartiallyContained(p,this)&&(n=p),p=p.nextSibling}let a=null;if(!Pt.isInclusiveAncestor(this[j].node,this[G].node)){let p=i.lastChild;for(;!a;)Se.isPartiallyContained(p,this)&&(a=p),p=p.previousSibling}let m=[];for(let p of i[q])if(Se.isContained(p,this)){if(p[U]===M.documentTypeNode)throw new e.DOMException("Invalid document type element.",A.hierarchyRequestError);m.push(p)}if(n!==null&&(n[U]===M.textNode||n[U]===M.processingInstructionNode||n[U]===M.commentNode)){let p=this[G].node.cloneNode(!1);p[le]=p.substringData(r,Pt.getNodeLength(this[G].node)-r),t.appendChild(p)}else if(n!==null){let p=n.cloneNode();t.appendChild(p);let b=new e.Range;b[G].node=this[G].node,b[G].offset=r,b[j].node=n,b[j].offset=Pt.getNodeLength(n);let d=b.cloneContents();p.appendChild(d)}for(let p of m){let b=p.cloneNode(!0);t.appendChild(b)}if(a!==null&&(a[U]===M.textNode||a[U]===M.processingInstructionNode||a[U]===M.commentNode)){let p=this[j].node.cloneNode(!1);p[le]=p.substringData(0,o),t.appendChild(p)}else if(a!==null){let p=a.cloneNode(!1);t.appendChild(p);let b=new e.Range;b[G].node=a,b[G].offset=0,b[j].node=this[j].node,b[j].offset=o;let d=b.cloneContents();p.appendChild(d)}return t}cloneRange(){let e=new this[y].Range;return e[G].node=this[G].node,e[G].offset=this[G].offset,e[j].node=this[j].node,e[j].offset=this[j].offset,e}createContextualFragment(e){return new $r(this[y]).parse(e)}deleteContents(){let e=this.startOffset,t=this.endOffset;if(this.collapsed)return;if(this[G].node===this[j].node&&(this[G].node[U]===M.textNode||this[G].node[U]===M.processingInstructionNode||this[G].node[U]===M.commentNode)){this[G].node.replaceData(e,t-e,"");return}let r=[],o=this[G].node,i=Pt.nextDescendantNode(this[j].node);for(;o&&o!==i;)Se.isContained(o,this)&&!Se.isContained(o[W],this)&&r.push(o),o=Pt.following(o);let n,a;if(Pt.isInclusiveAncestor(this[G].node,this[j].node))n=this[G].node,a=e;else{let m=this[G].node;for(;m&&!Pt.isInclusiveAncestor(m[W],this[j].node);)m=m[W];n=m[W],a=m[W][q].indexOf(m)+1}(this[G].node[U]===M.textNode||this[G].node[U]===M.processingInstructionNode||this[G].node[U]===M.commentNode)&&this[G].node.replaceData(this.startOffset,Pt.getNodeLength(this[G].node)-this.startOffset,"");for(let m of r)m[W].removeChild(m);(this[j].node[U]===M.textNode||this[j].node[U]===M.processingInstructionNode||this[j].node[U]===M.commentNode)&&this[j].node.replaceData(0,t,""),this[G].node=n,this[G].offset=a,this[j].node=n,this[j].offset=a}detach(){}extractContents(){let e=this[y],t=this[T].createDocumentFragment(),r=this.startOffset,o=this.endOffset;if(this.collapsed)return t;if(this[G].node===this[j].node&&(this[G].node[U]===M.textNode||this[G].node[U]===M.processingInstructionNode||this[G].node[U]===M.commentNode)){let d=this[G].node.cloneNode(!1);return d[le]=d.substringData(r,o-r),t.appendChild(d),this[G].node.replaceData(r,o-r,""),t}let i=this[G].node;for(;!Pt.isInclusiveAncestor(i,this[j].node);)i=i[W];let n=null;if(!Pt.isInclusiveAncestor(this[G].node,this[j].node)){let d=i.firstChild;for(;!n;)Se.isPartiallyContained(d,this)&&(n=d),d=d.nextSibling}let a=null;if(!Pt.isInclusiveAncestor(this[j].node,this[G].node)){let d=i.lastChild;for(;!a;)Se.isPartiallyContained(d,this)&&(a=d),d=d.previousSibling}let m=[];for(let d of i[q])if(Se.isContained(d,this)){if(d[U]===M.documentTypeNode)throw new this[y].DOMException("Invalid document type element.",A.hierarchyRequestError);m.push(d)}let p,b;if(Pt.isInclusiveAncestor(this[G].node,this[j].node))p=this[G].node,b=r;else{let d=this[G].node;for(;d&&!Pt.isInclusiveAncestor(d[W],this[j].node);)d=d[W];p=d[W],b=d[W][q].indexOf(d)+1}if(n!==null&&(n[U]===M.textNode||n[U]===M.processingInstructionNode||n[U]===M.commentNode)){let d=this[G].node.cloneNode(!1);d[le]=d.substringData(r,Pt.getNodeLength(this[G].node)-r),t.appendChild(d),this[G].node.replaceData(r,Pt.getNodeLength(this[G].node)-r,"")}else if(n!==null){let d=n.cloneNode(!1);t.appendChild(d);let f=new e.Range;f[G].node=this[G].node,f[G].offset=r,f[j].node=n,f[j].offset=Pt.getNodeLength(n);let v=f.extractContents();d.appendChild(v)}for(let d of m)t.appendChild(d);if(a!==null&&(a[U]===M.textNode||a[U]===M.processingInstructionNode||a[U]===M.commentNode)){let d=this[j].node.cloneNode(!1);d[le]=d.substringData(0,o),t.appendChild(d),this[j].node.replaceData(0,o,"")}else if(a!==null){let d=a.cloneNode(!1);t.appendChild(d);let f=new e.Range;f[G].node=a,f[G].offset=0,f[j].node=this[j].node,f[j].offset=o;let v=f.extractContents();d.appendChild(v)}return this[G].node=p,this[G].offset=b,this[j].node=p,this[j].offset=b,t}getBoundingClientRect(){return new is}getClientRects(){return new Om(h)}isPointInRange(e,t=0){if(e[T]!==this[T])return!1;let r={node:e,offset:t};return Se.validateBoundaryPoint(r),!(Se.compareBoundaryPointsPosition(r,{node:this[G].node,offset:this.startOffset})===-1||Se.compareBoundaryPointsPosition(r,{node:this[j].node,offset:this.endOffset})===1)}insertNode(e){if(this[G].node[U]===M.processingInstructionNode||this[G].node[U]===M.commentNode||this[G].node[U]===M.textNode&&!this[G].node[W]||e===this[G].node)throw new this[y].DOMException("Invalid start node.",A.hierarchyRequestError);let t=this[G].node[U]===M.textNode?this[G].node:this[G].node[q][this.startOffset]||null,r=t?t[W]:this[G].node;this[G].node[U]===M.textNode&&(t=this[G].node.splitText(this.startOffset)),e===t&&(t=t.nextSibling);let o=e[W];o&&o.removeChild(e);let i=t?t[W][q].indexOf(t):Pt.getNodeLength(r);i+=e[U]===M.documentFragmentNode?Pt.getNodeLength(e):1,r.insertBefore(e,t),this.collapsed&&(this[j].node=r,this[j].offset=i)}intersectsNode(e){if(e[T]!==this[T])return!1;let t=e[W];if(!t)return!0;let r=t[q].indexOf(e);return Se.compareBoundaryPointsPosition({node:t,offset:r},{node:this[j].node,offset:this.endOffset})===-1&&Se.compareBoundaryPointsPosition({node:t,offset:r+1},{node:this[G].node,offset:this.startOffset})===1}selectNode(e){if(!e[W])throw new this[y].DOMException("The given Node has no parent.",A.invalidNodeTypeError);let t=e[W][q].indexOf(e);this[G].node=e[W],this[G].offset=t,this[j].node=e[W],this[j].offset=t+1}selectNodeContents(e){if(e[U]===M.documentTypeNode)throw new this[y].DOMException("DocumentType Node can't be used as boundary point.",A.invalidNodeTypeError);this[G].node=e,this[G].offset=0,this[j].node=e,this[j].offset=Pt.getNodeLength(e)}setEnd(e,t=0){Se.validateBoundaryPoint({node:e,offset:t});let r={node:e,offset:t};(e[T]!==this[T]||Se.compareBoundaryPointsPosition(r,{node:this[G].node,offset:this.startOffset})===-1)&&(this[G].node=e,this[G].offset=t),this[j].node=e,this[j].offset=t}setStart(e,t=0){Se.validateBoundaryPoint({node:e,offset:t});let r={node:e,offset:t};(e[T]!==this[T]||Se.compareBoundaryPointsPosition(r,{node:this[j].node,offset:this.endOffset})===1)&&(this[j].node=e,this[j].offset=t),this[G].node=e,this[G].offset=t}setEndAfter(e){if(!e[W])throw new this[y].DOMException("The given Node has no parent.",A.invalidNodeTypeError);this.setEnd(e[W],e[W][q].indexOf(e)+1)}setEndBefore(e){if(!e[W])throw new this[y].DOMException("The given Node has no parent.",A.invalidNodeTypeError);this.setEnd(e[W],e[W][q].indexOf(e))}setStartAfter(e){if(!e[W])throw new this[y].DOMException("The given Node has no parent.",A.invalidNodeTypeError);this.setStart(e[W],e[W][q].indexOf(e)+1)}setStartBefore(e){if(!e[W])throw new this[y].DOMException("The given Node has no parent.",A.invalidNodeTypeError);this.setStart(e[W],e[W][q].indexOf(e))}surroundContents(e){let t=this.commonAncestorContainer;if(!t)return;let r=Pt.nextDescendantNode(t);for(;t&&t!==r;){if(t[U]!==M.textNode&&Se.isPartiallyContained(t,this))throw new this[y].DOMException("The Range has partially contains a non-Text node.",A.invalidStateError);t=Pt.following(t)}if(e[U]===M.documentNode||e[U]===M.documentTypeNode||e[U]===M.documentFragmentNode)throw new this[y].DOMException("Invalid element type.",A.invalidNodeTypeError);let o=this.extractContents();for(;e.firstChild;)e.removeChild(e.firstChild);this.insertNode(e),e.appendChild(o),this.selectNode(e)}toString(){let e=this.startOffset,t=this.endOffset,r="";if(this[G].node===this[j].node&&this[G].node[U]===M.textNode)return this[G].node.data.slice(e,t);this[G].node[U]===M.textNode&&(r+=this[G].node.data.slice(e));let o=Pt.nextDescendantNode(this[j].node),i=this[G].node;for(;i&&i!==o;)i[U]===M.textNode&&Se.isContained(i,this)&&(r+=i.data),i=Pt.following(i);return this[j].node[U]===M.textNode&&(r+=this[j].node.data.slice(0,t)),r}};s(Kn,"END_TO_END",Ar.endToEnd),s(Kn,"END_TO_START",Ar.endToStart),s(Kn,"START_TO_END",Ar.startToEnd),s(Kn,"START_TO_START",Ar.startToStart);var $L,qL,Ry=class extends(qL=_t,$L=Au,qL){constructor(t){super();s(this,"id","");s(this,"startTime",0);s(this,"endTime",0);s(this,"pauseOnExit",!1);s(this,$L,null);s(this,"onenter",null);s(this,"onexit",null);if(t!==h)throw new TypeError("Illegal constructor");if(!this[y])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get track(){return this[Au]}};var kh=class extends Ry{constructor(t,r,o){super(h);s(this,"region",null);s(this,"vertical","");s(this,"snapToLines",!0);s(this,"line",0);s(this,"lineAlign","");s(this,"position","auto");s(this,"positionAlign","auto");s(this,"size",100);s(this,"align","");s(this,"text","");let i=this[y],n=0;if(t!==void 0&&n++,r!==void 0&&n++,o!==void 0&&n++,n<3)throw new i.TypeError(`Failed to construct 'VTTCue': 3 arguments required, but only ${n} present.`);if(t=Number(t),r=Number(r),isNaN(t)||isNaN(r))throw new i.TypeError("Failed to construct 'VTTCue': The provided double value is non-finite.");this.startTime=t,this.endTime=r,this.text=String(o)}getCueAsHTML(){let t=this[y],r=t.document.createDocumentFragment();return r.appendChild(t.document.createTextNode(this.text)),r}};var WL,jL,zL,XL,YL,KL,JL,ZL,Mh=class extends(ZL=_t,JL=li,KL=cl,YL=im,XL=vc,zL=ke,jL=om,WL=pP,ZL){constructor(t){super();s(this,JL,Hn.subtitles);s(this,KL,"");s(this,YL,"");s(this,XL,"");s(this,zL,"disabled");s(this,jL,new jl(h));s(this,WL,new jl(h));s(this,"oncuechange",null);if(t!==h)throw new TypeError("Illegal constructor");if(!this[y])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get kind(){return this[li]}get label(){return this[cl]}get language(){return this[im]}get id(){return this[vc]}get mode(){return this[ke]}set mode(t){t!=="disabled"&&t!=="showing"||(this[ke]=t)}get cues(){return this[ke]==="disabled"?null:this[om]}get activeCues(){return this[ke]==="disabled"?null:this[pP]}addCue(t){this[om].includes(t)||(t[Au]=this,this[om].push(t))}removeCue(t){let r=this[om].indexOf(t);r!==-1&&(t[Au]=null,this[om].splice(r,1))}};var QL,Rh=class l extends _t{constructor(t,r){super();s(this,QL,[]);s(this,"onaddtrack",null);s(this,"onchange",null);s(this,"onremovetrack",null);if(t!==h)throw new TypeError("Illegal constructor");this[Y]=r;let o=new xe(this,[l,_t]);return new Proxy(this,{get:(i,n)=>{if(n==="length")return r.length;if(n in i||typeof n=="symbol")return o.bind(n),i[n];let a=Number(n);if(!isNaN(a))return r[a]},set(i,n,a){if(o.bind(n),typeof n=="symbol")return i[n]=a,!0;let m=Number(n);return isNaN(m)&&(i[n]=a),!0},deleteProperty(i,n){if(typeof n=="symbol")return delete i[n],!0;let a=Number(n);return isNaN(a)&&delete i[n],!0},ownKeys(){return Object.keys(r)},has(i,n){if(n in i)return!0;if(typeof n=="symbol")return!1;let a=Number(n);return!isNaN(a)&&a>=0&&a<r.length},defineProperty(i,n,a){return o.preventBinding(n),n in i?(Object.defineProperty(i,n,a),!0):!1},getOwnPropertyDescriptor(i,n){if(n in i||typeof n=="symbol")return;let a=Number(n);if(!isNaN(a)&&r[a])return{value:r[a],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[Y].length}get[(QL=Y,Symbol.toStringTag)](){return"TextTrackList"}toLocaleString(){return"[object TextTrackList]"}toString(){return"[object TextTrackList]"}[Symbol.iterator](){return this[Y][Symbol.iterator]()}getTrackById(t){for(let r of this[Y])if(r.id===t)return r;return null}};var tC,eC,Oh=class extends(eC=_t,tC=hP,eC){constructor(){super(...arguments);s(this,tC,"disconnected");s(this,"onconnecting",null);s(this,"onconnect",null);s(this,"ondisconnect",null)}get state(){return this[hP]}async watchAvailability(){}cancelWatchAvailability(){}prompt(){}};var hC=cu(pC(),1);var fw;(function(l){l[l.empty=0]="empty",l[l.loading=1]="loading",l[l.done=2]="done"})(fw||(fw={}));var ta=fw;var Sw;(function(l){l.buffer="buffer",l.binaryString="binaryString",l.dataURL="dataURL",l.text="text"})(Sw||(Sw={}));var ea=Sw;var Pw;(function(l){l.abort="abort",l.error="error",l.load="load",l.loadstart="loadstart",l.loadend="loadend",l.progress="progress"})(Pw||(Pw={}));var Ym=Pw;import{Buffer as yB}from"buffer";var Vy,Vh,Ih,Km,eg,Fh=class extends _t{constructor(){super();x(this,Km);s(this,"error",null);s(this,"result",null);s(this,"readyState",ta.empty);s(this,"onabort",null);s(this,"onerror",null);s(this,"onload",null);s(this,"onloadstart",null);s(this,"onloadend",null);s(this,"onprogress",null);x(this,Vy,!1);x(this,Vh,null);x(this,Ih,null);if(!this[y])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}readAsArrayBuffer(t){if(!(t instanceof ce))throw new this[y].TypeError("Failed to execute 'readAsArrayBuffer' on 'FileReader': parameter 1 is not of type 'Blob'.");F(this,Km,eg).call(this,t,ea.buffer)}readAsBinaryString(t){if(!(t instanceof ce))throw new this[y].TypeError("Failed to execute 'readAsBinaryString' on 'FileReader': parameter 1 is not of type 'Blob'.");F(this,Km,eg).call(this,t,ea.binaryString)}readAsDataURL(t){if(!(t instanceof ce))throw new this[y].TypeError("Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'.");F(this,Km,eg).call(this,t,ea.dataURL)}readAsText(t,r=null){if(!(t instanceof ce))throw new this[y].TypeError("Failed to execute 'readAsText' on 'FileReader': parameter 1 is not of type 'Blob'.");F(this,Km,eg).call(this,t,ea.text,r||"UTF-8")}abort(){let t=this[y];if(u(this,Vh)&&t.clearTimeout(u(this,Vh)),u(this,Ih)&&t.clearTimeout(u(this,Ih)),this.readyState===ta.empty||this.readyState===ta.done){this.result=null;return}this.readyState===ta.loading&&(this.readyState=ta.done,this.result=null),w(this,Vy,!0),this.dispatchEvent(new Ho(Ym.abort)),this.dispatchEvent(new Ho(Ym.loadend))}};Vy=new WeakMap,Vh=new WeakMap,Ih=new WeakMap,Km=new WeakSet,eg=function(t,r,o=null){let i=this[y];if(this.readyState===ta.loading)throw new i.DOMException("The object is in an invalid state.",A.invalidStateError);this.readyState=ta.loading,w(this,Vh,i.setTimeout(()=>{if(u(this,Vy)){w(this,Vy,!1);return}this.dispatchEvent(new Ho(Ym.loadstart));let n=t[Ct];n||(n=yB.alloc(0)),this.dispatchEvent(new Ho(Ym.loadstart,{lengthComputable:!isNaN(t.size),total:t.size,loaded:n.length})),w(this,Ih,i.setTimeout(()=>{if(u(this,Vy)){w(this,Vy,!1);return}switch(r){default:case ea.buffer:{this.result=new Uint8Array(n).buffer;break}case ea.binaryString:{this.result=n.toString("binary");break}case ea.dataURL:{let a=hC.default.parse(t.type)||"application/octet-stream";this.result=`data:${a};base64,${n.toString("base64")}`;break}case ea.text:{this.result=new TextDecoder(o||"UTF-8").decode(n);break}}this.readyState=ta.done,this.dispatchEvent(new Ho(Ym.load)),this.dispatchEvent(new Ho(Ym.loadend))}))}))};import mB from"crypto";var uB={aspectRatio:{max:300,min:.006666666666666667},deviceId:"",facingMode:[],frameRate:{max:60,min:0},height:{max:150,min:1},resizeMode:["none","crop-and-scale"],width:{max:300,min:1}},pB={deviceId:"",frameRate:60,resizeMode:"none"},cC,dC,bC,gC,fC,SC,rg,ww,Iy=class extends(SC=_t,fC=cl,gC=li,bC=Eu,dC=Ps,cC=Ta,SC){constructor(t){super();x(this,rg);s(this,"contentHint","");s(this,"enabled",!0);s(this,"id",mB.randomUUID());s(this,"muted",!1);s(this,"readyState","live");s(this,"label","");s(this,fC,"");s(this,gC,"video");s(this,bC,{});s(this,dC,JSON.parse(JSON.stringify(uB)));s(this,cC,JSON.parse(JSON.stringify(pB)));s(this,"onended",null);s(this,"onmute",null);s(this,"onunmute",null);if(t!==h)throw new TypeError("Illegal constructor");if(!this[y])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get kind(){return this[li]}async applyConstraints(t){F(this,rg,ww).call(this,this[Eu],t)}getConstraints(){return this[Eu]}getCapabilities(){return this[Ps]}getSettings(){return this[Ta]}clone(){let t=new this.constructor(h);return t[li]=this[li],t[Eu]=this[Eu],t[Ps]=this[Ps],t[Ta]=this[Ta],t.contentHint=this.contentHint,t.enabled=this.enabled,t.label=this.label,t.muted=this.muted,t.readyState=this.readyState,t}stop(){this.readyState="ended"}};rg=new WeakSet,ww=function(t,r){for(let o in r)r[o]!==null&&typeof r[o]=="object"&&!Array.isArray(r[o])?(typeof t[o]!="object"&&(t[o]={}),F(this,rg,ww).call(this,t[o],r[o])):t[o]=r[o]};var PC,wC,og=class extends(wC=Iy,PC=Ac,wC){constructor(t,r){super(t);s(this,PC);this[Ac]=r}get canvas(){return this[Ac]}requestFrame(){}clone(){let t=super.clone();return t[Ac]=this.canvas,t}};var xw;(function(l){l[l.connecting=0]="connecting",l[l.open=1]="open",l[l.closing=2]="closing",l[l.closed=3]="closed"})(xw||(xw={}));var Zo=xw;var RU=cu(b0(),1),OU=cu(Ow(),1),VU=cu(Fw(),1),T0=cu(IS(),1),IU=cu(A0(),1);var N0=T0.default;var FU=/^[!#$%&'*+\-.^_`|~\dA-Za-z]+$/,L0,Hs,pg,hg,cg,qh,so,C0,qw,k0,M0,R0,Ww,O0,Zn=class extends _t{constructor(t,r){super();x(this,so);x(this,Hs,Zo.closed);x(this,pg,"");x(this,hg,"blob");x(this,cg,null);x(this,qh);s(this,L0,null);let o=this[y],i;try{i=new URL(t)}catch{throw new o.DOMException(`The URL '${t}' is invalid.`,A.syntaxError)}if(i.protocol!=="ws:"&&i.protocol!=="wss:")throw new o.DOMException(`The URL's protocol must be either 'ws' or 'wss'. '${i.protocol}' is not allowed.`,A.syntaxError);if(i.pathname.length>1)throw new o.DOMException(`The URL contains a path name ('${i.pathname}'). Paths are not allowed in WebSocket URLs.`,A.syntaxError);let n=new Set,a=r!==void 0?Array.isArray(r)?r:[r]:[];for(let m of a){if(!F(this,so,O0).call(this,m))throw new o.DOMException(`The subprotocol '${m}' is invalid.`,A.syntaxError);if(n.has(m))throw new o.DOMException(`The subprotocol '${m}' is duplicated.`,A.syntaxError);n.add(m)}w(this,qh,i),F(this,so,C0).call(this,i,a)}get readyState(){return u(this,Hs)}get extensions(){return u(this,pg)}get binaryType(){return u(this,hg)}set binaryType(t){t!=="blob"&&t!=="arraybuffer"||w(this,hg,t)}get protocol(){return this[eo]?.protocol||""}get url(){return u(this,qh).href}close(t,r){let o=this[y];if(t!==void 0&&t!==1e3&&!(t>=3e3&&t<=4999))throw new o.DOMException(`The code must be either 1000, or between 3000 and 4999. ${t} is neither.`,A.invalidAccessError);if(r!==void 0&&Buffer.byteLength(r,"utf8")>123)throw new o.DOMException("The message must not be greater than 123 bytes.",A.syntaxError);F(this,so,qw).call(this,t,r?Buffer.from(r):void 0)}send(t){let r=this[y];if(u(this,Hs)===Zo.connecting)throw new r.DOMException("Still in CONNECTING state.",A.invalidStateError);if(u(this,Hs)!==Zo.open)return;if(typeof t=="string"){this[eo]?.send(t,{binary:!1});return}let o;t instanceof ArrayBuffer?o=Buffer.from(new Uint8Array(t)):t instanceof ce?o=t[Ct]:t instanceof Buffer?o=t:ArrayBuffer.isView(t)?o=Buffer.from(new Uint8Array(t.buffer,t.byteOffset,t.byteLength)):o=Buffer.from(String(t)),this[eo]?.send(o,{binary:!0})}[(L0=eo,ye)](){super[ye](),F(this,so,qw).call(this,1001)}};Hs=new WeakMap,pg=new WeakMap,hg=new WeakMap,cg=new WeakMap,qh=new WeakMap,so=new WeakSet,C0=function(t,r){let o=this[y],i=new ot(o).getBrowserContext();if(!i)return;let n=new URL(o.location.href),a=i.cookieContainer.getCookies(n,!1);w(this,Hs,Zo.connecting),this[eo]=new N0(t,r,{headers:{"user-agent":o.navigator.userAgent,cookie:Mi.cookiesToString(a),origin:n.origin},rejectUnauthorized:!i.browser.settings.fetch.disableStrictSSL}),this[eo].once("open",()=>{F(this,so,k0).call(this)}),this[eo].on("message",F(this,so,R0).bind(this)),this[eo].once("close",(m,p)=>{F(this,so,M0).call(this,m,p)}),this[eo].once("upgrade",({headers:m})=>{if(m["set-cookie"]!==void 0){let p=Array.isArray(m["set-cookie"])?m["set-cookie"]:[m["set-cookie"]];for(let b of p){let d=Mi.stringToCookie(n,b);d&&i.cookieContainer.addCookies([d])}}}),this[eo].once("error",m=>{w(this,cg,m)}),o[Ia].push(this)},qw=function(t,r){this.readyState===Zo.connecting?this[eo]?this[eo].terminate():w(this,Hs,Zo.closing):this[eo]&&this.readyState===Zo.open&&this[eo].close(t,r),this[eo]=null},k0=function(){this[eo]?.extensions&&w(this,pg,Object.keys(this[eo].extensions).join(", ")),w(this,Hs,Zo.open),this.dispatchEvent(new this[y].Event("open"))},M0=function(t,r){let o=this[y],i=o[Ia].indexOf(this);i!==-1&&o[Ia].splice(i,1),w(this,Hs,Zo.closed),this.dispatchEvent(new this[y].CloseEvent("close",{wasClean:u(this,cg)===null,code:t,reason:r.toString()}))},R0=function(t,r){if(u(this,Hs)!==Zo.open)return;let o=this[y],i;r?this.binaryType==="arraybuffer"?t instanceof o.ArrayBuffer?i=t:Array.isArray(t)?i=F(this,so,Ww).call(this,Buffer.concat(t)):i=F(this,so,Ww).call(this,t):(Array.isArray(t)||(t=[t]),i=new o.Blob(t)):i=String(t),this.dispatchEvent(new o.MessageEvent("message",{data:i,origin:u(this,qh).origin}))},Ww=function(t){let r=this[y],o=new r.ArrayBuffer(t.byteLength);return new Uint8Array(o).set(t),o},O0=function(t){return FU.test(t)},s(Zn,"CONNECTING",Zo.connecting),s(Zn,"OPEN",Zo.open),s(Zn,"CLOSING",Zo.closing),s(Zn,"CLOSED",Zo.closed);var dg=class{static extendClasses(e){class t extends zo{}t.prototype[y]=e,e.Document=t;class r extends ph{}r.prototype[y]=e,e.HTMLDocument=r;class o extends hh{}o.prototype[y]=e,e.XMLDocument=o;class i extends Ly{}i.prototype[y]=e,e.DocumentFragment=i;class n extends ch{}n.prototype[y]=e,e.Text=n;class a extends dh{}a.prototype[y]=e,e.Comment=a;class m extends bh{}m.prototype[y]=e,e.Image=m;class p extends Wb{}p.prototype[y]=e,e.Audio=p;class b extends Sh{}b.prototype[y]=e,e.MutationObserver=b;class d extends Yb{}d.prototype[y]=e,e.MessagePort=d;class f extends wh{}f.prototype[y]=e,e.CSSStyleSheet=f;class v extends Ht{}e.DOMException=v;class L extends Us{}L.prototype[y]=e,e.Headers=L;class C extends iy{}C.prototype[y]=e,e.Request=C;class X extends qo{}X.prototype[y]=e,X[y]=e,e.Response=X;class lt extends _t{}lt.prototype[y]=e,e.EventTarget=lt;class Q extends Zb{}Q.prototype[y]=e,e.XMLHttpRequestUpload=Q;class ct extends Jl{}ct.prototype[y]=e,e.XMLHttpRequestEventTarget=ct;class qt extends xh{}qt.prototype[y]=e,e.AbortController=qt;class Nt extends Eh{}Nt.prototype[y]=e,Nt[y]=e,e.AbortSignal=Nt;class te extends ry{}te.prototype[y]=e,e.FormData=te;class Lt extends vh{}Lt.prototype[y]=e,e.PermissionStatus=Lt;class er extends Yn{}er.prototype[y]=e,e.XMLHttpRequest=er;class Dr extends Ch{}Dr.prototype[y]=e,e.DOMParser=Dr;class hs extends Kn{}hs.prototype[y]=e,e.Range=hs;class Gi extends kh{}Gi.prototype[y]=e,e.VTTCue=Gi;class Tf extends Mh{}Tf.prototype[y]=e,e.TextTrack=Tf;class ac extends Rh{}ac.prototype[y]=e,e.TextTrackList=ac;class yc extends Ry{}yc.prototype[y]=e,e.TextTrackCue=yc;class Hi extends Oh{}Hi.prototype[y]=e,e.RemotePlayback=Hi;class mc extends Fh{}mc.prototype[y]=e,e.FileReader=mc;class Nf extends by{}Nf.prototype[y]=e,e.MediaStream=Nf;class yr extends Iy{}yr.prototype[y]=e,e.MediaStreamTrack=yr;class ri extends og{}ri.prototype[y]=e,e.CanvasCaptureMediaStreamTrack=ri;class ha extends Ie{}ha.prototype[y]=e,e.URL=ha;class Lf extends Zn{}Lf.prototype[y]=e,e.WebSocket=Lf}};var V0,I0,F0,D0;D0=O,F0=V,I0=yo,V0=sm;var bg=class{constructor(e,t,r,o){s(this,D0,0);s(this,F0,0);s(this,I0,0);s(this,V0,1);this[O]=e!=null?Number(e):0,this[V]=t!=null?Number(t):0,this[yo]=r!=null?Number(r):0,this[sm]=o!=null?Number(o):1}get x(){return this[O]}get y(){return this[V]}get z(){return this[yo]}get w(){return this[sm]}toJSON(){return{x:this.x,y:this.y,z:this.z,w:this.w}}static fromPoint(e){return e?new this(e.x??null,e.y??null,e.z??null,e.w??null):new this}};var ru=class extends bg{set x(e){this[O]=e}get x(){return this[O]}set y(e){this[V]=e}get y(){return this[V]}set z(e){this[yo]=e}get z(){return this[yo]}set w(e){this[sm]=e}get w(){return this[sm]}};var Wh={a:1,b:0,c:0,d:1,e:0,f:0,m11:1,m12:0,m13:0,m14:0,m21:0,m22:1,m23:0,m24:0,m31:0,m32:0,m33:1,m34:0,m41:0,m42:0,m43:0,m44:1,is2D:!0,isIdentity:!0},DU=/([a-zA-Z0-9]+)\(([^)]+)\)/gm,_U=/[\s,]+/,_0,B0,U0,G0,H0,$0,q0,W0,j0,z0,X0,Y0,K0,J0,Z0,Q0,DS,tk,_S=class _S{constructor(e){x(this,DS);s(this,Q0,1);s(this,Z0,0);s(this,J0,0);s(this,K0,0);s(this,Y0,0);s(this,X0,1);s(this,z0,0);s(this,j0,0);s(this,W0,0);s(this,q0,0);s(this,$0,1);s(this,H0,0);s(this,G0,0);s(this,U0,0);s(this,B0,0);s(this,_0,1);e&&this[Tu](e)}get a(){return this[Mt]}get b(){return this[It]}get c(){return this[Rt]}get d(){return this[Ft]}get e(){return this[Ot]}get f(){return this[Dt]}get m11(){return this[Mt]}get m12(){return this[It]}get m13(){return this[re]}get m14(){return this[oe]}get m21(){return this[Rt]}get m22(){return this[Ft]}get m23(){return this[ie]}get m24(){return this[se]}get m31(){return this[Wt]}get m32(){return this[Yt]}get m33(){return this[Kt]}get m34(){return this[jt]}get m41(){return this[Ot]}get m42(){return this[Dt]}get m43(){return this[Jt]}get m44(){return this[Zt]}get isIdentity(){return this[Mt]===1&&this[It]===0&&this[re]===0&&this[oe]===0&&this[Rt]===0&&this[Ft]===1&&this[ie]===0&&this[se]===0&&this[Wt]===0&&this[Yt]===0&&this[Kt]===1&&this[jt]===0&&this[Ot]===0&&this[Dt]===0&&this[Jt]===0&&this[Zt]===1}get is2D(){return this[Wt]===0&&this[Yt]===0&&this[Kt]===1&&this[jt]===0&&this[Jt]===0&&this[Zt]===1}toFloat32Array(e){return Float32Array.from(this[td](e))}toFloat64Array(e){return Float64Array.from(this[td](e))}toString(){let e=this.is2D,t=this[td](e).join(", ");return`${e?"matrix":"matrix3d"}(${t})`}toJSON(){let{is2D:e,isIdentity:t}=this;return{m11:this[Mt],m12:this[It],m13:this[re],m14:this[oe],m21:this[Rt],m22:this[Ft],m23:this[ie],m24:this[se],m31:this[Wt],m32:this[Yt],m33:this[Kt],m34:this[jt],m41:this[Ot],m42:this[Dt],m43:this[Jt],m44:this[Zt],a:this[Mt],b:this[It],c:this[Rt],d:this[Ft],e:this[Ot],f:this[Dt],is2D:e,isIdentity:t}}multiply(e){let t=new this.constructor(this);return t[mi](e),t}translate(e=0,t=0,r=0){let o=new this.constructor(this);return o[yi](e,t,r),o}scale(e,t,r=1,o=0,i=0,n=0){let a=new this.constructor(this);return a[wn](e,t,r,o,i,n),a}scale3d(e=1,t=0,r=0,o=0){let i=new this.constructor(this);return i[ed](e,t,r,o),i}scaleNonUniform(e=1,t=1){let r=new this.constructor(this);return r[rd](e,t),r}rotateAxisAngle(e=0,t=0,r=0,o=0){let i=new this.constructor(this);return i[gl](e,t,r,o),i}rotate(e=0,t,r){let o=new this.constructor(this);return o[bl](e,t,r),o}rotateFromVector(e=0,t=0){let r=new this.constructor(this);return r[Dd](e,t),r}skewX(e){let t=new this.constructor(this);return t[lm](e),t}skewY(e){let t=new this.constructor(this);return t[am](e),t}flipX(){let e=new this.constructor(this);return e[_d](),e}flipY(){let e=new this.constructor(this);return e[Bd](),e}inverse(){let e=new this.constructor(this);return e[Ud](),e}transformPoint(e){let t=e.x??0,r=e.y??0,o=e.z??0,i=e.w??1,n=this[Mt]*t+this[Rt]*r+this[Wt]*o+this[Ot]*i,a=this[It]*t+this[Ft]*r+this[Yt]*o+this[Dt]*i,m=this[re]*t+this[ie]*r+this[Kt]*o+this[Jt]*i,p=this[oe]*t+this[se]*r+this[jt]*o+this[Zt]*i;return new ru(n,a,m,p)}[(Q0=Mt,Z0=It,J0=re,K0=oe,Y0=Rt,X0=Ft,z0=ie,j0=se,W0=Wt,q0=Yt,$0=Kt,H0=jt,G0=Ot,U0=Dt,B0=Jt,_0=Zt,Tu)](e){let t=null;if(typeof e=="string"&&e.length&&e!=="none")t=this.constructor[nm](e);else if(Array.isArray(e)||e instanceof Float64Array||e instanceof Float32Array)t=this.constructor[ai](e);else if(typeof e=="object")t=this.constructor.fromMatrix(e);else return;this[Mt]=t[Mt],this[It]=t[It],this[re]=t[re],this[oe]=t[oe],this[Rt]=t[Rt],this[Ft]=t[Ft],this[ie]=t[ie],this[se]=t[se],this[Wt]=t[Wt],this[Yt]=t[Yt],this[Kt]=t[Kt],this[jt]=t[jt],this[Ot]=t[Ot],this[Dt]=t[Dt],this[Jt]=t[Jt],this[Zt]=t[Zt]}[mi](e){let t=e;t instanceof _S||(t?.m11===void 0&&t?.a!==void 0?(t=Object.assign({},Wh,t),t.m11=t.a,t.m12=t.b,t.m21=t.c,t.m22=t.d,t.m41=t.e,t.m42=t.f):t=Object.assign({},Wh,t));let r=this[Mt]*t.m11+this[Rt]*t.m12+this[Wt]*t.m13+this[Ot]*t.m14,o=this[Mt]*t.m21+this[Rt]*t.m22+this[Wt]*t.m23+this[Ot]*t.m24,i=this[Mt]*t.m31+this[Rt]*t.m32+this[Wt]*t.m33+this[Ot]*t.m34,n=this[Mt]*t.m41+this[Rt]*t.m42+this[Wt]*t.m43+this[Ot]*t.m44,a=this[It]*t.m11+this[Ft]*t.m12+this[Yt]*t.m13+this[Dt]*t.m14,m=this[It]*t.m21+this[Ft]*t.m22+this[Yt]*t.m23+this[Dt]*t.m24,p=this[It]*t.m31+this[Ft]*t.m32+this[Yt]*t.m33+this[Dt]*t.m34,b=this[It]*t.m41+this[Ft]*t.m42+this[Yt]*t.m43+this[Dt]*t.m44,d=this[re]*t.m11+this[ie]*t.m12+this[Kt]*t.m13+this[Jt]*t.m14,f=this[re]*t.m21+this[ie]*t.m22+this[Kt]*t.m23+this[Jt]*t.m24,v=this[re]*t.m31+this[ie]*t.m32+this[Kt]*t.m33+this[Jt]*t.m34,L=this[re]*t.m41+this[ie]*t.m42+this[Kt]*t.m43+this[Jt]*t.m44,C=this[oe]*t.m11+this[se]*t.m12+this[jt]*t.m13+this[Zt]*t.m14,X=this[oe]*t.m21+this[se]*t.m22+this[jt]*t.m23+this[Zt]*t.m24,lt=this[oe]*t.m31+this[se]*t.m32+this[jt]*t.m33+this[Zt]*t.m34,Q=this[oe]*t.m41+this[se]*t.m42+this[jt]*t.m43+this[Zt]*t.m44;this[Mt]=r,this[It]=a,this[re]=d,this[oe]=C,this[Rt]=o,this[Ft]=m,this[ie]=f,this[se]=X,this[Wt]=i,this[Yt]=p,this[Kt]=v,this[jt]=lt,this[Ot]=n,this[Dt]=b,this[Jt]=L,this[Zt]=Q}[yi](e=0,t=0,r=0){let o=this.constructor[ai]([1,0,0,0,0,1,0,0,0,0,1,0,e,t,r,1]);this[mi](o)}[wn](e,t,r=1,o=0,i=0,n=0){e=e===void 0?1:Number(e),t=t===void 0?e:Number(t),(o!==0||i!==0||n!==0)&&this[yi](o,i,n),(e!==1||t!==1||r!==1)&&this[mi](this.constructor[ai]([e,0,0,0,0,t,0,0,0,0,r,0,0,0,0,1])),(o!==0||i!==0||n!==0)&&this[yi](-o,-i,-n)}[ed](e=1,t=0,r=0,o=0){(t!==0||r!==0||o!==0)&&this[yi](t,r,o),e!==1&&this[mi](this.constructor[ai]([e,0,0,0,0,e,0,0,0,0,e,0,0,0,0,1])),(t!==0||r!==0||o!==0)&&this[yi](-t,-r,-o)}[rd](e=1,t=1){e===1&&t===1||this[mi](this.constructor[ai]([e,0,0,0,0,t,0,0,0,0,1,0,0,0,0,1]))}[gl](e=0,t=0,r=0,o=0){if(e=Number(e),t=Number(t),r=Number(r),o=Number(o),isNaN(e)||isNaN(t)||isNaN(r)||isNaN(o))throw new TypeError("Failed to execute 'rotateAxisAngleSelf' on 'DOMMatrix': The arguments must be numbers.");let i=Math.hypot(e,t,r);if(i===0)return;i!==1&&(e/=i,t/=i,r/=i);let n=-(o*Math.PI/360),a=F(this,DS,tk),m=Math.sin(n)*Math.cos(n),p=Math.sin(n)*Math.sin(n),b=a(1-2*(t*t+r*r)*p),d=a(2*(e*t*p+r*m)),f=a(2*(e*r*p-t*m)),v=a(2*(e*t*p-r*m)),L=a(1-2*(e*e+r*r)*p),C=a(2*(t*r*p+e*m)),X=a(2*(e*r*p+t*m)),lt=a(2*(t*r*p-e*m)),Q=a(1-2*(e*e+t*t)*p),ct=this.constructor[ai]([b,v,X,0,d,L,lt,0,f,C,Q,0,0,0,0,1]);this[mi](ct)}[bl](e=0,t,r){if(t===void 0&&r===void 0&&(r=e,e=0,t=0),t===void 0&&(t=0),r===void 0&&(r=0),e=Number(e),t=Number(t),r=Number(r),isNaN(e)||isNaN(t)||isNaN(r))throw new TypeError("Failed to execute 'rotateSelf' on 'DOMMatrix': The arguments must be numbers.");r!==0&&this[gl](0,0,1,r),t!==0&&this[gl](0,1,0,t),e!==0&&this[gl](1,0,0,e)}[Dd](e=0,t=0){e===0&&t===0||this[bl](Math.atan2(t,e)*180/Math.PI)}[lm](e){let t=Object.assign({},Wh),r=Math.tan(e*Math.PI/180);t.m21=r,t.c=r,this[mi](t)}[am](e){let t=Object.assign({},Wh),r=Math.tan(e*Math.PI/180);t.m12=r,t.b=r,this[mi](t)}[_d](){let e=this.constructor[ai]([-1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);this[mi](e)}[Bd](){let e=this.constructor[ai]([1,0,0,0,0,-1,0,0,0,0,1,0,0,0,0,1]);this[mi](e)}[Ud](){let e=this[Ft]*this[Kt]*this[Zt]-this[Ft]*this[jt]*this[Jt]-this[Yt]*this[ie]*this[Zt]+this[Yt]*this[se]*this[Jt]+this[Dt]*this[ie]*this[jt]-this[Dt]*this[se]*this[Kt],t=-this[It]*this[Kt]*this[Zt]+this[It]*this[jt]*this[Jt]+this[Yt]*this[re]*this[Zt]-this[Yt]*this[oe]*this[Jt]-this[Dt]*this[re]*this[jt]+this[Dt]*this[oe]*this[Kt],r=this[It]*this[ie]*this[Zt]-this[It]*this[se]*this[Jt]-this[Ft]*this[re]*this[Zt]+this[Ft]*this[oe]*this[Jt]+this[Dt]*this[re]*this[se]-this[Dt]*this[oe]*this[ie],o=-this[It]*this[ie]*this[jt]+this[It]*this[se]*this[Kt]+this[Ft]*this[re]*this[jt]-this[Ft]*this[oe]*this[Kt]-this[Yt]*this[re]*this[se]+this[Yt]*this[oe]*this[ie],i=this[Mt]*e+this[Rt]*t+this[Wt]*r+this[Ot]*o;if(i===0){this[Mt]=NaN,this[It]=NaN,this[re]=NaN,this[oe]=NaN,this[Rt]=NaN,this[Ft]=NaN,this[ie]=NaN,this[se]=NaN,this[Wt]=NaN,this[Yt]=NaN,this[Kt]=NaN,this[jt]=NaN,this[Ot]=NaN,this[Dt]=NaN,this[Jt]=NaN,this[Zt]=NaN;return}let n=-this[Rt]*this[Kt]*this[Zt]+this[Rt]*this[jt]*this[Jt]+this[Wt]*this[ie]*this[Zt]-this[Wt]*this[se]*this[Jt]-this[Ot]*this[ie]*this[jt]+this[Ot]*this[se]*this[Kt],a=this[Mt]*this[Kt]*this[Zt]-this[Mt]*this[jt]*this[Jt]-this[Wt]*this[re]*this[Zt]+this[Wt]*this[oe]*this[Jt]+this[Ot]*this[re]*this[jt]-this[Ot]*this[oe]*this[Kt],m=-this[Mt]*this[ie]*this[Zt]+this[Mt]*this[se]*this[Jt]+this[Rt]*this[re]*this[Zt]-this[Rt]*this[oe]*this[Jt]-this[Ot]*this[re]*this[se]+this[Ot]*this[oe]*this[ie],p=this[Mt]*this[ie]*this[jt]-this[Mt]*this[se]*this[Kt]-this[Rt]*this[re]*this[jt]+this[Rt]*this[oe]*this[Kt]+this[Wt]*this[re]*this[se]-this[Wt]*this[oe]*this[ie],b=this[Rt]*this[Yt]*this[Zt]-this[Rt]*this[jt]*this[Dt]-this[Wt]*this[Ft]*this[Zt]+this[Wt]*this[se]*this[Dt]+this[Ot]*this[Ft]*this[jt]-this[Ot]*this[se]*this[Yt],d=-this[Mt]*this[Yt]*this[Zt]+this[Mt]*this[jt]*this[Dt]+this[Wt]*this[It]*this[Zt]-this[Wt]*this[oe]*this[Dt]-this[Ot]*this[It]*this[jt]+this[Ot]*this[oe]*this[Yt],f=this[Mt]*this[Ft]*this[Zt]-this[Mt]*this[se]*this[Dt]-this[Rt]*this[It]*this[Zt]+this[Rt]*this[oe]*this[Dt]+this[Ot]*this[It]*this[se]-this[Ot]*this[oe]*this[Ft],v=-this[Mt]*this[Ft]*this[jt]+this[Mt]*this[se]*this[Yt]+this[Rt]*this[It]*this[jt]-this[Rt]*this[oe]*this[Yt]-this[Wt]*this[It]*this[se]+this[Wt]*this[oe]*this[Ft],L=-this[Rt]*this[Yt]*this[Jt]+this[Rt]*this[Kt]*this[Dt]+this[Wt]*this[Ft]*this[Jt]-this[Wt]*this[ie]*this[Dt]-this[Ot]*this[Ft]*this[Kt]+this[Ot]*this[ie]*this[Yt],C=this[Mt]*this[Yt]*this[Jt]-this[Mt]*this[Kt]*this[Dt]-this[Wt]*this[It]*this[Jt]+this[Wt]*this[re]*this[Dt]+this[Ot]*this[It]*this[Kt]-this[Ot]*this[re]*this[Yt],X=-this[Mt]*this[Ft]*this[Jt]+this[Mt]*this[ie]*this[Dt]+this[Rt]*this[It]*this[Jt]-this[Rt]*this[re]*this[Dt]-this[Ot]*this[It]*this[ie]+this[Ot]*this[re]*this[Ft],lt=this[Mt]*this[Ft]*this[Kt]-this[Mt]*this[ie]*this[Yt]-this[Rt]*this[It]*this[Kt]+this[Rt]*this[re]*this[Yt]+this[Wt]*this[It]*this[ie]-this[Wt]*this[re]*this[Ft];this[Mt]=e/i||0,this[It]=t/i||0,this[re]=r/i||0,this[oe]=o/i||0,this[Rt]=n/i||0,this[Ft]=a/i||0,this[ie]=m/i||0,this[se]=p/i||0,this[Wt]=b/i||0,this[Yt]=d/i||0,this[Kt]=f/i||0,this[jt]=v/i||0,this[Ot]=L/i||0,this[Dt]=C/i||0,this[Jt]=X/i||0,this[Zt]=lt/i||0}[td](e=!1){return e?[this[Mt],this[It],this[Rt],this[Ft],this[Ot],this[Dt]]:[this[Mt],this[It],this[re],this[oe],this[Rt],this[Ft],this[ie],this[se],this[Wt],this[Yt],this[Kt],this[jt],this[Ot],this[Dt],this[Jt],this[Zt]]}static fromMatrix(e){return e instanceof _S||(e?.m11===void 0&&e?.a!==void 0?(e=Object.assign({},Wh,e),e.m11=e.a,e.m12=e.b,e.m21=e.c,e.m22=e.d,e.m41=e.e,e.m42=e.f):e=Object.assign({},Wh,e)),this[ai]([e.m11,e.m12,e.m13,e.m14,e.m21,e.m22,e.m23,e.m24,e.m31,e.m32,e.m33,e.m34,e.m41,e.m42,e.m43,e.m44])}static fromFloat32Array(e){return this[ai](e)}static fromFloat64Array(e){return this[ai](e)}static[ai](e){if(!(e instanceof Float64Array||e instanceof Float32Array||Array.isArray(e))||e.length!==6&&e.length!==16)throw TypeError(`Failed to execute 'fromArray' on '${this.name}': '${String(e)}' is not a compatible array.`);let t=new this;if(e.length===16){let[r,o,i,n,a,m,p,b,d,f,v,L,C,X,lt,Q]=e;t[Mt]=r,t[It]=o,t[re]=i,t[oe]=n,t[Rt]=a,t[Ft]=m,t[ie]=p,t[se]=b,t[Wt]=d,t[Yt]=f,t[Kt]=v,t[jt]=L,t[Ot]=C,t[Dt]=X,t[Jt]=lt,t[Zt]=Q}else if(e.length===6){let[r,o,i,n,a,m]=e;t[Mt]=r,t[It]=o,t[Rt]=i,t[Ft]=n,t[Ot]=a,t[Dt]=m}return t}static[nm](e){if(typeof e!="string")throw TypeError(`Failed to execute 'setMatrixValue' on '${this.name}': Expected '${String(e)}' to be a string.`);let t=new this,r=new RegExp(DU),o;for(;o=r.exec(e);){let i=o[1],n=o[2].split(_U);for(let d=0,f=n.length;d<f;d++)n[d]=this[dP](n[d]);let[a,m,p,b]=n;switch(i){case"perspective":!isNaN(a)&&a!==0&&m===void 0&&p===void 0&&(t[jt]=-1/a);break;case"translate":!isNaN(a)&&p===void 0&&t[yi](a,m||0,0);break;case"translate3d":!isNaN(a)&&!isNaN(m)&&!isNaN(p)&&t[yi](a,m,p);break;case"translateX":!isNaN(a)&&m===void 0&&p===void 0&&t[yi](a);break;case"translateY":!isNaN(a)&&m===void 0&&p===void 0&&t[yi](0,a);break;case"translateZ":!isNaN(a)&&m===void 0&&p===void 0&&t[yi](0,0,a);break;case"matrix":case"matrix3d":(n.length===6||n.length===16)&&t[Tu](this[ai](n));break;case"rotate":case"rotateZ":!isNaN(a)&&m===void 0&&p===void 0&&t[bl](0,0,a);break;case"rotateX":!isNaN(a)&&m===void 0&&p===void 0&&t[bl](a,0,0);break;case"rotateY":!isNaN(a)&&m===void 0&&p===void 0&&t[bl](0,a,0);case"rotate3d":!isNaN(a)&&!isNaN(m)&&!isNaN(p)&&!isNaN(b)&&t[gl](a,m,p,b);break;case"scale":!isNaN(a)&&a!==1&&p===void 0&&t[wn](a,isNaN(m)?a:m);break;case"scale3d":!isNaN(a)&&!isNaN(m)&&!isNaN(p)&&t[wn](a,m,p);break;case"scaleX":!isNaN(a)&&m===void 0&&p===void 0&&t[wn](a,1,1);break;case"scaleY":!isNaN(a)&&m===void 0&&p===void 0&&t[wn](1,a,1);break;case"scaleZ":!isNaN(a)&&m===void 0&&p===void 0&&t[wn](1,1,a);break;case"skew":isNaN(a)||t[lm](a),isNaN(m)||t[am](m);break;case"skewX":!isNaN(a)&&m===void 0&&t[lm](a);break;case"skewY":!isNaN(a)&&m===void 0&&t[am](a);break;default:throw TypeError(`Failed to execute 'setMatrixValue' on '${this.name}': Unknown transform function '${o[1]}'.`)}}return t}static[dP](e){let t=parseFloat(e);switch(e.replace(t.toString(),"")){case"rem":case"em":case"vw":case"vh":case"%":case"vmin":case"vmax":throw new SyntaxError(`Failed to construct '${this.name}': Lengths must be absolute, not relative`);case"rad":return t*(180/Math.PI);case"turn":return t*360;case"px":return t;case"cm":return t*37.7812;case"mm":return t*3.7781;case"in":return t*96;case"pt":return t*1.3281;case"pc":return t*16;case"Q":return t*.945;default:return t}}};DS=new WeakSet,tk=function(e,t=1e15){return Math.round(e*t)/t};var ou=_S;var Ao=class extends ou{get a(){return this[Mt]}set a(e){this[Mt]=e}get b(){return this[It]}set b(e){this[It]=e}get c(){return this[Rt]}set c(e){this[Rt]=e}get d(){return this[Ft]}set d(e){this[Ft]=e}get e(){return this[Ot]}set e(e){this[Ot]=e}get f(){return this[Dt]}set f(e){this[Dt]=e}get m11(){return this[Mt]}set m11(e){this[Mt]=e}get m12(){return this[It]}set m12(e){this[It]=e}get m13(){return this[re]}set m13(e){this[re]=e}get m14(){return this[oe]}set m14(e){this[oe]=e}get m21(){return this[Rt]}set m21(e){this[Rt]=e}get m22(){return this[Ft]}set m22(e){this[Ft]=e}get m23(){return this[ie]}set m23(e){this[ie]=e}get m24(){return this[se]}set m24(e){this[se]=e}get m31(){return this[Wt]}set m31(e){this[Wt]=e}get m32(){return this[Yt]}set m32(e){this[Yt]=e}get m33(){return this[Kt]}set m33(e){this[Kt]=e}get m34(){return this[jt]}set m34(e){this[jt]=e}get m41(){return this[Ot]}set m41(e){this[Ot]=e}get m42(){return this[Dt]}set m42(e){this[Dt]=e}get m43(){return this[Jt]}set m43(e){this[Jt]=e}get m44(){return this[Zt]}set m44(e){this[Zt]=e}setMatrixValue(e){return this[Tu](e),this}multiplySelf(e){return this[mi](e),this}translateSelf(e=0,t=0,r=0){return this[yi](e,t,r),this}scaleSelf(e,t,r=1,o=0,i=0,n=0){return this[wn](e,t,r,o,i,n),this}scale3dSelf(e=1,t=0,r=0,o=0){return this[ed](e,t,r,o),this}scaleNonUniformSelf(e=1,t=1){return this[rd](e,t),this}rotateAxisAngleSelf(e=0,t=0,r=0,o=0){return this[gl](e,t,r,o),this}rotateSelf(e=0,t,r){return this[bl](e,t,r),this}rotateFromVectorSelf(e=0,t=0){return this[Dd](e,t),this}skewXSelf(e){return this[lm](e),this}skewYSelf(e){return this[am](e),this}flipXSelf(){return this[_d](),this}flipYSelf(){return this[Bd](),this}invertSelf(){return this[Ud](),this}};var BU=/[\t\f\n\r ,]+/,ek,rk,ok,ik,sk,$s=class l{constructor(e,t,r){s(this,sk);s(this,ik);s(this,ok);s(this,rk,!1);s(this,ek,{items:[],attributeValue:""});if(e!==h)throw new TypeError("Illegal constructor");if(this[y]=t,this[K]=!!r.readOnly,this[N]=r.getAttribute,this[E]=r.setAttribute,e!==h)throw new TypeError("Illegal constructor");let o=new xe(this,[l]);return new Proxy(this,{get:(i,n)=>{if(n==="length"||n==="numberOfItems")return i[z]().length;if(n in i||typeof n=="symbol")return o.bind(n),i[n];let a=Number(n);if(!isNaN(a))return i[z]()[a]},set(i,n,a){if(o.bind(n),typeof n=="symbol")return i[n]=a,!0;let m=Number(n);return isNaN(m)&&(i[n]=a),!0},deleteProperty(i,n){if(typeof n=="symbol")return delete i[n],!0;let a=Number(n);return isNaN(a)&&delete i[n],!0},ownKeys(i){return Object.keys(i[z]())},has(i,n){if(n in i)return!0;if(typeof n=="symbol")return!1;let a=Number(n);return!isNaN(a)&&a>=0&&a<i[z]().length},defineProperty(i,n,a){return o.preventBinding(n),n in i?(Object.defineProperty(i,n,a),!0):!1},getOwnPropertyDescriptor(i,n){if(n in i||typeof n=="symbol")return;let a=Number(n),m=i[z]();if(!isNaN(a)&&m[a])return{value:m[a],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[z]().length}get numberOfItems(){return this[z]().length}[(sk=y,ik=N,ok=E,rk=K,ek=$,Symbol.iterator)](){return this[z]().values()}clear(){this[$].attributeValue="",this[$].items=[],this[E]("")}initialize(e){if(this[K])throw new this[y].TypeError("Failed to execute 'initialize' on 'SVGStringList': The object is read-only.");if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'initialize' on 'SVGStringList': 1 arguments required, but only ${arguments.length} present.`);if(e=String(e),!e){this.clear();return}return this[E](e),e}getItem(e){let t=this[z]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),t[e]?t[e]:null}insertItemBefore(e,t){if(this[K])throw new this[y].TypeError("Failed to execute 'insertItemBefore' on 'SVGStringList': The object is read-only.");if(arguments.length<2)throw new this[y].TypeError(`Failed to execute 'insertItemBefore' on 'SVGStringList': 2 arguments required, but only ${arguments.length} present.`);if(e=String(e),!e)return e;let r=this[z](),o=r.indexOf(e);return o!==-1&&r.splice(o,1),t<0?t=0:t>r.length&&(t=r.length),r.splice(t,0,e),this[E](r.join(" ")),e}replaceItem(e,t){if(this[K])throw new this[y].TypeError("Failed to execute 'replaceItem' on 'SVGStringList': The object is read-only.");if(arguments.length<2)throw new this[y].TypeError(`Failed to execute 'replaceItem' on 'SVGStringList': 2 arguments required, but only ${arguments.length} present.`);if(e=String(e),!e)return this.removeItem(t);let r=this[z]();t<0?t=0:t>=r.length&&(t=r.length-1);let o=r[t];return r[t]=e,this[E](r.join(" ")),o}removeItem(e){if(this[K])throw new this[y].TypeError("Failed to execute 'removeItem' on 'SVGStringList': The object is read-only.");if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'removeItem' on 'SVGStringList': 1 argument required, but only ${arguments.length} present.`);let t=this[z]();if(e=Number(e),isNaN(e)&&(e=0),e>=t.length)throw new this[y].DOMException(`Failed to execute 'removeItem' on 'SVGStringList': The index provided (${e}) is greater than the maximum bound.`,A.indexSizeError);if(e<0)throw new this[y].DOMException(`Failed to execute 'removeItem' on 'SVGStringList': The index provided (${e}) is negative.`,A.indexSizeError);let r=t[e];return t.splice(e,1),this[E](t.join(" ")),r}appendItem(e){if(this[K])throw new this[y].TypeError("Failed to execute 'appendItem' on 'SVGStringList': The object is read-only.");if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'appendItem' on 'SVGStringList': 1 argument required, but only ${arguments.length} present.`);if(e=String(e),!e)return e;let t=this[z](),r=t.indexOf(e);return r!==-1&&t.splice(r,1),t.push(e),this[E](t.join(" ")),e}[z](){let e=this[N]()??"",t=this[$];if(t.attributeValue===e)return t.items;let r=[],o=e.trim();if(o)for(let i of o.split(BU))r.includes(i)||r.push(i);return t.attributeValue=e,t.items=r,r}};var UU=/([a-zA-Z0-9]+)\(([^)]+)\)/,GU=/[\s,]+/,nk,lk,ak,yk,mk,Qn=class l{constructor(e,t,r){s(this,mk);s(this,yk,null);s(this,ak,null);s(this,lk,null);s(this,nk,!1);if(e!==h)throw new TypeError("Illegal constructor");this[y]=t,r&&(this[K]=!!r.readOnly,this[N]=r.getAttribute||null,this[E]=r.setAttribute||null)}get a(){return this[Ge]().a}set a(e){if(this[K])return;let t=this[Ge]();t.a=e,this[Hr](t)}get b(){return this[Ge]().b}set b(e){if(this[K])return;let t=this[Ge]();t.b=e,this[Hr](t)}get c(){return this[Ge]().c}set c(e){if(this[K])return;let t=this[Ge]();t.c=e,this[Hr](t)}get d(){return this[Ge]().d}set d(e){if(this[K])return;let t=this[Ge]();t.d=e,this[Hr](t)}get e(){return this[Ge]().e}set e(e){if(this[K])return;let t=this[Ge]();t.e=e,this[Hr](t)}get f(){return this[Ge]().f}set f(e){if(this[K])return;let t=this[Ge]();t.f=e,this[Hr](t)}multiply(e){if(!(e instanceof l))throw new this[y].TypeError("Failed to execute 'multiply' on 'SVGMatrix': parameter 1 is not of type 'SVGMatrix'.");let t=this[Ge](),r=new l(h,this[y]);return t.multiplySelf(e[Ge]()),r[Hr](t),r}translate(e=0,t=0){let r=this[Ge](),o=new l(h,this[y]);return r.translateSelf(e,t),o[Hr](r),o}scale(e){let t=this[Ge](),r=new l(h,this[y]);return t.scaleSelf(e),r[Hr](t),r}scaleNonUniform(e=1,t=1){let r=this[Ge](),o=new l(h,this[y]);return r.scaleNonUniformSelf(e,t),o[Hr](r),o}rotate(e){let t=this[Ge](),r=new l(h,this[y]);return t.rotateSelf(e),r[Hr](t),r}rotateFromVector(e=0,t=0){let r=this[Ge](),o=new l(h,this[y]);return r.rotateFromVectorSelf(e,t),o[Hr](r),o}skewX(e){let t=this[Ge](),r=new l(h,this[y]);return t.skewXSelf(e),r[Hr](t),r}skewY(e){let t=this[Ge](),r=new l(h,this[y]);return t.skewYSelf(e),r[Hr](t),r}flipX(){let e=this[Ge](),t=new l(h,this[y]);return e.flipXSelf(),t[Hr](e),t}flipY(){let e=this[Ge](),t=new l(h,this[y]);return e.flipYSelf(),t[Hr](e),t}inverse(){let e=this[Ge](),t=new l(h,this[y]);return e.invertSelf(),t[Hr](e),t}[(mk=y,yk=N,ak=E,lk=I,nk=K,Ge)](){let e=this[N]?this[N]():this[I];if(!e)return new Ao;let t=e.match(UU);if(!t)return new Ao;let r=[];for(let o of t[2].trim().split(GU)){let i=Number(o);if(isNaN(i))throw new this[y].TypeError(`Failed to parse transform attribute: Expected number, but got "${o}" in "${e}".`);r.push(i)}switch(t[1]){case"matrix":if(r.length!==6)throw new this[y].TypeError(`Failed to parse transform attribute: Expected 6 parameters in "${e}".`);return Ao[nm](e);case"scale":case"translate":if(r.length!==1&&r.length!==2)throw new this[y].TypeError(`Failed to parse transform attribute: Expected 1 or 2 parameters in "${e}".`);return Ao[nm](e);case"skewY":case"skewX":if(r.length!==1)throw new this[y].TypeError(`Failed to parse transform attribute: Expected 1 parameter in "${e}".`);return Ao[nm](e);case"rotate":let o=new Ao;if(r.length!==1&&r.length!==3)throw new this[y].TypeError(`Failed to parse transform attribute: Expected 1 or 3 parameters in "${e}".`);let[i,n,a]=r;(n||a)&&o.translateSelf(n,a);let m=i*Math.PI/180;return o.multiplySelf(new Ao([Math.cos(m),Math.sin(m),-Math.sin(m),Math.cos(m),0,0])),(n||a)&&o.translateSelf(-n,-a),o;default:throw new this[y].TypeError(`Failed to parse transform attribute: Unknown transformation "${e}".`)}}[Hr](e){this[I]=e.toString().replace(/, /g," "),this[E]&&this[E](this[I])}};var jw;(function(l){l[l.unknown=0]="unknown",l[l.matrix=1]="matrix",l[l.translate=2]="translate",l[l.scale=3]="scale",l[l.rotate=4]="rotate",l[l.skewX=5]="skewX",l[l.skewY=6]="skewY"})(jw||(jw={}));var Qo=jw;var uk=/([a-zA-Z0-9]+)\(([^)]+)\)/,HU=/[\s,]+/,pk,hk,ck,dk,bk,gk;gk=y,bk=N,dk=E,ck=I,hk=K,pk=fl;var Tr=class{constructor(e,t,r){s(this,gk);s(this,bk,null);s(this,dk,null);s(this,ck,null);s(this,hk,!1);s(this,pk,null);if(e!==h)throw new TypeError("Illegal constructor");this[y]=t,r&&(this[K]=!!r.readOnly,this[N]=r.getAttribute||null,this[E]=r.setAttribute||null)}get type(){let t=(this[N]?this[N]():this[I])?.match(uk);if(!t)return Qo.unknown;switch(t[1]){case"matrix":return Qo.matrix;case"translate":return Qo.translate;case"rotate":return Qo.rotate;case"scale":return Qo.scale;case"skewX":return Qo.skewX;case"skewY":return Qo.skewY}return 0}get angle(){let t=(this[N]?this[N]():this[I])?.match(uk);if(!t)return 0;let r=parseFloat(t[2].trim().split(HU)[0]);if(isNaN(r))return 0;switch(t[1]){case"rotate":case"skewX":case"skewY":return r}return 0}get matrix(){return this[fl]||(this[fl]=new Qn(h,this[y],{readOnly:this[K],getAttribute:()=>this[N]?this[N]():this[I],setAttribute:e=>{if(this[I]=e,this[E]){this[E](e);return}}})),this[fl]}setMatrix(e){if(!(e instanceof Qn))throw new TypeError('Failed to set the "matrix" property on "SVGTransform": The provided value is not of type "SVGMatrix".');this[K]||(this[fl]&&(this[fl][N]=null,this[fl][E]=null),e[N]=()=>this[N]?this[N]():this[I],e[E]=t=>{if(this[I]=t,this[E]){this[E](t);return}},this[fl]=e,e[I]!==this[I]&&(this[I]=e[I],this[E]&&this[E](this[I]||"")))}setTranslate(e,t){if(arguments.length<2)throw new TypeError(`Failed to execute 'setTranslate' on 'SVGTransform': 2 arguments required, but only ${arguments.length} present.`);if(e=Number(e),t=Number(t),isNaN(e)||isNaN(t))throw new TypeError("Failed to execute 'setTranslate' on 'SVGTransform': The provided float value is non-finite.");this[K]||(this[I]=`translate(${e} ${t})`,this[E]&&this[E](this[I]))}setScale(e,t){if(arguments.length<2)throw new TypeError(`Failed to execute 'setScale' on 'SVGTransform': 2 arguments required, but only ${arguments.length} present.`);if(e=Number(e),t=Number(t),isNaN(e)||isNaN(t))throw new TypeError("Failed to execute 'setScale' on 'SVGTransform': The provided float value is non-finite.");this[K]||(this[I]=`scale(${e} ${t})`,this[E]&&this[E](this[I]))}setRotate(e,t,r){if(arguments.length<3)throw new TypeError(`Failed to execute 'setRotate' on 'SVGTransform': 3 arguments required, but only ${arguments.length} present.`);if(e=Number(e),t=Number(t),r=Number(r),isNaN(e)||isNaN(t)||isNaN(r))throw new TypeError("Failed to execute 'setRotate' on 'SVGTransform': The provided float value is non-finite.");this[K]||(this[I]=`rotate(${e} ${t} ${r})`,this[E]&&this[E](this[I]))}setSkewX(e){if(arguments.length<1)throw new TypeError(`Failed to execute 'setSkewX' on 'SVGTransform': 1 arguments required, but only ${arguments.length} present.`);if(e=Number(e),isNaN(e))throw new TypeError("Failed to execute 'setSkewX' on 'SVGTransform': The provided float value is non-finite.");this[K]||(this[I]=`skewX(${e})`,this[E]&&this[E](this[I]))}setSkewY(e){if(arguments.length<1)throw new TypeError(`Failed to execute 'setSkewY' on 'SVGTransform': 1 arguments required, but only ${arguments.length} present.`);if(e=Number(e),isNaN(e))throw new TypeError("Failed to execute 'setSkewY' on 'SVGTransform': The provided float value is non-finite.");this[K]||(this[I]=`skewY(${e})`,this[E]&&this[E](this[I]))}};s(Tr,"SVG_TRANSFORM_UNKNOWN",Qo.unknown),s(Tr,"SVG_TRANSFORM_MATRIX",Qo.matrix),s(Tr,"SVG_TRANSFORM_TRANSLATE",Qo.translate),s(Tr,"SVG_TRANSFORM_SCALE",Qo.scale),s(Tr,"SVG_TRANSFORM_ROTATE",Qo.rotate),s(Tr,"SVG_TRANSFORM_SKEWX",Qo.skewX),s(Tr,"SVG_TRANSFORM_SKEWY",Qo.skewY);var $U=/([a-zA-Z0-9]+)\(([^)]+)\)/gm,na="matrix(1 0 0 1 0 0)",fk,Sk,Pk,wk,xk,_y=class l{constructor(e,t,r){s(this,xk);s(this,wk);s(this,Pk);s(this,Sk,!1);s(this,fk,{items:[],attributeValue:""});if(e!==h)throw new TypeError("Illegal constructor");this[y]=t,this[K]=!!r.readOnly,this[N]=r.getAttribute,this[E]=r.setAttribute;let o=new xe(this,[l]);return new Proxy(this,{get:(i,n)=>{if(n==="length"||n==="numberOfItems")return i[z]().length;if(n in i||typeof n=="symbol")return o.bind(n),i[n];let a=Number(n);if(!isNaN(a))return i[z]()[a]},set(i,n,a){if(o.bind(n),typeof n=="symbol")return i[n]=a,!0;let m=Number(n);return isNaN(m)&&(i[n]=a),!0},deleteProperty(i,n){if(typeof n=="symbol")return delete i[n],!0;let a=Number(n);return isNaN(a)&&delete i[n],!0},ownKeys(i){return Object.keys(i[z]())},has(i,n){if(n in i)return!0;if(typeof n=="symbol")return!1;let a=Number(n);return!isNaN(a)&&a>=0&&a<i[z]().length},defineProperty(i,n,a){return o.preventBinding(n),n in i?(Object.defineProperty(i,n,a),!0):!1},getOwnPropertyDescriptor(i,n){if(n in i||typeof n=="symbol")return;let a=Number(n),m=i[z]();if(!isNaN(a)&&m[a])return{value:m[a],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[z]().length}get numberOfItems(){return this[z]().length}[(xk=y,wk=N,Pk=E,Sk=K,fk=$,Symbol.iterator)](){return this[z]().values()}clear(){if(this[K])throw new this[y].TypeError("Failed to execute 'clear' on 'SVGTransformList': The object is read-only.");for(let e of this[$].items)e[N]=null,e[E]=null;this[$].items=[],this[$].attributeValue="",this[E]("")}initialize(e){if(this[K])throw new this[y].TypeError("Failed to execute 'initialize' on 'SVGTransformList': The object is read-only.");if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'initialize' on 'SVGTransformList': 1 arguments required, but only ${arguments.length} present.`);if(!(e instanceof Tr))throw new this[y].TypeError("Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");for(let t of this[$].items)t[N]=null,t[E]=null;return e[N]=()=>e[I],e[E]=()=>{this[$].attributeValue=this[z]().map(t=>t[I]||na).join(" "),this[E](this[$].attributeValue)},this[$].items=[e],this[$].attributeValue=e[I],this[E](e[I]||""),e}getItem(e){let t=this[z]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),t[e]?t[e]:null}insertItemBefore(e,t){if(this[K])throw new this[y].TypeError("Failed to execute 'insertItemBefore' on 'SVGTransformList': The object is read-only.");if(arguments.length<2)throw new this[y].TypeError(`Failed to execute 'insertItemBefore' on 'SVGTransformList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof Tr))throw new this[y].TypeError("Failed to execute 'insertItemBefore' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let r=this[z](),o=r.indexOf(e);return o!==-1&&r.splice(o,1),t<0?t=0:t>r.length&&(t=r.length),r.splice(t,0,e),e[N]=()=>e[I],e[E]=()=>{this[$].attributeValue=this[z]().map(i=>i[I]||na).join(" "),this[E](this[$].attributeValue)},this[$].attributeValue=r.map(i=>i[I]||na).join(" "),this[E](this[$].attributeValue),e}replaceItem(e,t){if(this[K])throw new this[y].TypeError("Failed to execute 'replaceItem' on 'SVGTransformList': The object is read-only.");if(arguments.length<2)throw new this[y].TypeError(`Failed to execute 'replaceItem' on 'SVGTransformList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof Tr))throw new this[y].TypeError("Failed to execute 'replaceItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let r=this[z](),o=r.indexOf(e);if(o===t)return e;o!==-1&&r.splice(o,1),t<0?t=0:t>=r.length&&(t=r.length-1),r[t]&&(r[t][N]=null,r[t][E]=null);let i=r[t];return r[t]=e,e[N]=()=>e[I],e[E]=()=>{this[$].attributeValue=this[z]().map(n=>n[I]||na).join(" "),this[E](this[$].attributeValue)},this[$].attributeValue=r.map(n=>n[I]||na).join(" "),this[E](this[$].attributeValue),i}removeItem(e){if(this[K])throw new this[y].TypeError("Failed to execute 'removeItem' on 'SVGTransformList': The object is read-only.");if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'removeItem' on 'SVGTransformList': 1 argument required, but only ${arguments.length} present.`);let t=this[z]();if(e=Number(e),isNaN(e)&&(e=0),e>=t.length)throw new this[y].DOMException(`Failed to execute 'removeItem' on 'SVGTransformList': The index provided (${e}) is greater than the maximum bound.`,A.indexSizeError);if(e<0)throw new this[y].DOMException(`Failed to execute 'removeItem' on 'SVGTransformList': The index provided (${e}) is negative.`,A.indexSizeError);let r=t[e];return r&&(r[N]=null,r[E]=null),t.splice(e,1),this[$].attributeValue=t.map(o=>o[I]||na).join(" "),this[E](this[$].attributeValue),r}appendItem(e){if(this[K])throw new this[y].TypeError("Failed to execute 'appendItem' on 'SVGTransformList': The object is read-only.");if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'appendItem' on 'SVGTransformList': 1 argument required, but only ${arguments.length} present.`);if(!(e instanceof Tr))throw new this[y].TypeError("Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let t=this[z](),r=t.indexOf(e);return r!==-1&&t.splice(r,1),t.push(e),e[N]=()=>e[I],e[E]=()=>{this[$].attributeValue=this[z]().map(o=>o[I]||na).join(" "),this[E](this[$].attributeValue)},this[$].attributeValue=t.map(o=>o[I]||na).join(" "),this[E](this[$].attributeValue),e}[z](){let e=this[N]()??"",t=this[$];if(t.attributeValue===e)return t.items;if(t.items.length)for(let i of t.items)i[N]=null,i[E]=null;let r=[],o=e.trim();if(o){let i=new RegExp($U),n;for(;n=i.exec(o);){let a=new Tr(h,this[y],{readOnly:this[K],getAttribute:()=>a[I],setAttribute:()=>{this[$].attributeValue=this[z]().map(m=>m[I]||na).join(" "),this[E](this[$].attributeValue)}});a[I]=`${n[1]}(${n[2]})`,r.push(a)}}return t.attributeValue=e,t.items=r,r}};var Ek,vk,Ak,Tk,Nk;Nk=y,Tk=N,Ak=E,vk=ue,Ek=pe;var qs=class{constructor(e,t,r){s(this,Nk);s(this,Tk);s(this,Ak);s(this,vk,null);s(this,Ek,null);if(e!==h)throw new TypeError("Illegal constructor");this[y]=t,this[N]=r.getAttribute,this[E]=r.setAttribute}get animVal(){return this[pe]||(this[pe]=new _y(h,this[y],{readOnly:!0,getAttribute:this[N],setAttribute:()=>{}})),this[pe]}set animVal(e){}get baseVal(){return this[ue]||(this[ue]=new _y(h,this[y],{getAttribute:this[N],setAttribute:this[E]})),this[ue]}set baseVal(e){}};var Lk,Ck,kk,Mk,Te=class extends(Mk=it,kk=an,Ck=yn,Lk=kc,Mk){constructor(){super(...arguments);s(this,kk,null);s(this,Ck,null);s(this,Lk,null)}get oncopy(){return S.getEventListener(this,"oncopy")}set oncopy(t){this[c].set("oncopy",t)}get oncut(){return S.getEventListener(this,"oncut")}set oncut(t){this[c].set("oncut",t)}get onpaste(){return S.getEventListener(this,"onpaste")}set onpaste(t){this[c].set("onpaste",t)}get requiredExtensions(){return this[an]||(this[an]=new $s(h,this[y],{getAttribute:()=>this.getAttribute("requiredExtensions"),setAttribute:t=>this.setAttribute("requiredExtensions",t)})),this[an]}get systemLanguage(){return this[yn]||(this[yn]=new $s(h,this[y],{getAttribute:()=>this.getAttribute("systemLanguage"),setAttribute:t=>this.setAttribute("systemLanguage",t)})),this[yn]}get transform(){return this[kc]||(this[kc]=new qs(h,this[y],{getAttribute:()=>this.getAttribute("transform"),setAttribute:t=>this.setAttribute("transform",t)})),this[kc]}getBBox(){return new is}getCTM(){return new Ao}getScreenCTM(){return new Ao}};var Rk,Ok,Vk,Ik,Fk;Fk=y,Ik=N,Vk=E,Ok=I,Rk=K;var ys=class{constructor(e,t,r){s(this,Fk);s(this,Ik,null);s(this,Vk,null);s(this,Ok,null);s(this,Rk,!1);if(e!==h)throw new TypeError("Illegal constructor");this[y]=t,r&&(this[K]=!!r.readOnly,this[N]=r.getAttribute||null,this[E]=r.setAttribute||null)}get x(){let e=this[N]?this[N]():this[I];if(!e)return 0;let t=e.split(/\s+/),r=Number(t[0]);return isNaN(r)?0:r}set x(e){if(this[K])throw new this[y].TypeError("Failed to set the 'x' property on 'SVGRect': The object is read-only.");this[I]=`${String(typeof e=="number"?e:parseFloat(e))} ${this.y} ${this.width} ${this.height}`,this[E]&&this[E](this[I])}get y(){let e=this[N]?this[N]():this[I];if(!e)return 0;let t=e.split(/\s+/),r=Number(t[1]);return isNaN(r)?0:r}set y(e){if(this[K])throw new this[y].TypeError("Failed to set the 'y' property on 'SVGRect': The object is read-only.");this[I]=`${this.x} ${String(typeof e=="number"?e:parseFloat(e))} ${this.width} ${this.height}`,this[E]&&this[E](this[I])}get width(){let e=this[N]?this[N]():this[I];if(!e)return 0;let t=e.split(/\s+/),r=Number(t[2]);return isNaN(r)?0:r}set width(e){if(this[K])throw new this[y].TypeError("Failed to set the 'width' property on 'SVGRect': The object is read-only.");this[I]=`${this.x} ${this.y} ${String(typeof e=="number"?e:parseFloat(e))} ${this.height}`,this[E]&&this[E](this[I])}get height(){let e=this[N]?this[N]():this[I];if(!e)return 0;let t=e.split(/\s+/),r=Number(t[3]);return isNaN(r)?0:r}set height(e){if(this[K])throw new this[y].TypeError("Failed to set the 'height' property on 'SVGRect': The object is read-only.");this[I]=`${this.x} ${this.y} ${this.width} ${String(typeof e=="number"?e:parseFloat(e))}`,this[E]&&this[E](this[I])}};var Dk=/[\t\f\n\r, ]+/,_k,Bk,Uk,Gk,Hk;Hk=y,Gk=N,Uk=E,Bk=I,_k=K;var Nr=class{constructor(e,t,r){s(this,Hk);s(this,Gk,null);s(this,Uk,null);s(this,Bk,null);s(this,_k,!1);if(e!==h)throw new TypeError("Illegal constructor");this[y]=t,r&&(this[K]=!!r.readOnly,this[N]=r.getAttribute||null,this[E]=r.setAttribute||null)}get x(){let t=((this[N]?this[N]():this[I])||"").split(Dk);return t[0]?parseFloat(t[0]):0}set x(e){if(this[K])throw new this[y].TypeError("Failed to set the 'x' property on 'SVGPoint': The object is read-only.");this[I]=`${e} ${this.y}`,this[E]&&this[E](this[I])}get y(){let t=((this[N]?this[N]():this[I])||"").split(Dk);return t[1]?parseFloat(t[1]):0}set y(e){if(this[K])throw new this[y].TypeError("Failed to set the 'y' property on 'SVGPoint': The object is read-only.");this[I]=`${this.x} ${e}`,this[E]&&this[E](this[I])}};var zw;(function(l){l[l.unknown=0]="unknown",l[l.number=1]="number",l[l.percentage=2]="percentage",l[l.ems=3]="ems",l[l.exs=4]="exs",l[l.px=5]="px",l[l.cm=6]="cm",l[l.mm=7]="mm",l[l.in=8]="in",l[l.pt=9]="pt",l[l.pc=10]="pc"})(zw||(zw={}));var xt=zw;var $k=/^(\d+|\d+\.\d+)(px|em|ex|cm|mm|in|pt|pc|%|)$/,qk,Wk,jk,zk,Xk;Xk=y,zk=N,jk=E,Wk=I,qk=K;var ar=class{constructor(e,t,r){s(this,Xk);s(this,zk,null);s(this,jk,null);s(this,Wk,null);s(this,qk,!1);if(e!==h)throw new TypeError("Illegal constructor");this[y]=t,r&&(this[K]=!!r.readOnly,this[N]=r.getAttribute||null,this[E]=r.setAttribute||null)}get unitType(){let t=(this[N]?this[N]()||"":this[I]||"").match($k);if(!t)return xt.unknown;if(isNaN(parseFloat(t[1])))return xt.unknown;switch(t[2]){case"":return xt.number;case"px":return xt.px;case"cm":return xt.cm;case"mm":return xt.mm;case"in":return xt.in;case"pt":return xt.pt;case"pc":return xt.pc;case"em":case"ex":case"%":throw new this[y].TypeError("Failed to execute 'value' on 'SVGLength': Could not resolve relative length.");default:return xt.unknown}}get value(){let t=(this[N]?this[N]()||"":this[I]||"").match($k);if(!t)return 0;let r=parseFloat(t[1]);if(isNaN(r))return 0;switch(t[2]){case"":return r;case"px":return r;case"cm":return r/2.54*96;case"mm":return r/25.4*96;case"in":return r*96;case"pt":return r*72;case"pc":return r*6;case"em":case"ex":case"%":throw new this[y].TypeError("Failed to execute 'value' on 'SVGLength': Could not resolve relative length.");default:return 0}}set value(e){if(this[K])throw new this[y].TypeError("Failed to set the 'value' property on 'SVGLength': The object is read-only.");if(e=typeof e!="number"?parseFloat(String(e)):e,isNaN(e))throw new this[y].TypeError("Failed to set the 'value' property on 'SVGLength': The provided float value is non-finite.");let t="",r=e;switch(this.unitType){case xt.number:r=e,t="";break;case xt.px:r=e,t="px";break;case xt.cm:r=e/96*2.54,t="cm";break;case xt.mm:r=e/96*25.4,t="mm";break;case xt.in:r=e/96,t="in";break;case xt.pt:r=e/72,t="pt";break;case xt.pc:r=e/6,t="pc";break;case xt.percentage:case xt.ems:case xt.exs:throw new this[y].TypeError("Failed to set the 'value' property on 'SVGLength': Could not resolve relative length.");default:break}this[I]=String(r)+t,this[E]&&this[E](this[I])}get valueAsString(){return this[N]?this[N]()||"0":this[I]||"0"}get valueInSpecifiedUnits(){let e=this.valueAsString;return parseFloat(e)||0}newValueSpecifiedUnits(e,t){if(this[K])throw new this[y].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': The object is read-only.");if(typeof e!="number")throw new this[y].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': parameter 1 ('unitType') is not of type 'number'.");if(t=typeof t!="number"?parseFloat(String(t)):t,isNaN(t))throw new this[y].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': The provided float value is non-finite.");let r="";switch(e){case xt.number:r="";break;case xt.px:r="px";break;case xt.cm:r="cm";break;case xt.mm:r="mm";break;case xt.in:r="in";break;case xt.pt:r="pt";break;case xt.pc:r="pc";break;case xt.ems:case xt.exs:case xt.percentage:throw new this[y].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': Could not resolve relative length.");default:break}this[I]=String(t)+r,this[E]&&this[E](this[I])}convertToSpecifiedUnits(e){if(this[K])throw new this[y].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': The object is read-only.");if(typeof e!="number")throw new this[y].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': parameter 1 ('unitType') is not of type 'number'.");let t=this.value,r="";switch(e){case xt.number:r="";break;case xt.px:r="px";break;case xt.cm:t=t/96*2.54,r="cm";break;case xt.mm:t=t/96*25.4,r="mm";break;case xt.in:t=t/96,r="in";break;case xt.pt:t=t/72,r="pt";break;case xt.pc:t=t/6,r="pc";break;case xt.percentage:case xt.ems:case xt.exs:throw new this[y].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': Could not resolve relative length.");default:break}this[I]=String(t)+r,this[E]&&this[E](this[I])}};s(ar,"SVG_LENGTHTYPE_UNKNOWN",xt.unknown),s(ar,"SVG_LENGTHTYPE_NUMBER",xt.number),s(ar,"SVG_LENGTHTYPE_PERCENTAGE",xt.percentage),s(ar,"SVG_LENGTHTYPE_EMS",xt.ems),s(ar,"SVG_LENGTHTYPE_EXS",xt.exs),s(ar,"SVG_LENGTHTYPE_PX",xt.px),s(ar,"SVG_LENGTHTYPE_CM",xt.cm),s(ar,"SVG_LENGTHTYPE_MM",xt.mm),s(ar,"SVG_LENGTHTYPE_IN",xt.in),s(ar,"SVG_LENGTHTYPE_PT",xt.pt),s(ar,"SVG_LENGTHTYPE_PC",xt.pc);var Xw;(function(l){l[l.unknown=0]="unknown",l[l.unspecified=1]="unspecified",l[l.deg=2]="deg",l[l.rad=3]="rad",l[l.grad=4]="grad"})(Xw||(Xw={}));var Ne=Xw;var Yk=/^(\d+|\d+\.\d+)(deg|rad|grad|turn|)$/,Kk,Jk,Zk,Qk,t1;t1=y,Qk=N,Zk=E,Jk=I,Kk=K;var ti=class{constructor(e,t,r){s(this,t1);s(this,Qk,null);s(this,Zk,null);s(this,Jk,"");s(this,Kk,!1);if(e!==h)throw new TypeError("Illegal constructor");this[y]=t,r&&(this[K]=!!r.readOnly,this[N]=r.getAttribute||null,this[E]=r.setAttribute||null)}get unitType(){let t=(this[N]?this[N]():this[I])?.match(Yk);if(!t)return Ne.unknown;if(isNaN(parseFloat(t[1])))return Ne.unknown;switch(t[2]){case"":return Ne.unspecified;case"deg":return Ne.deg;case"rad":return Ne.rad;case"grad":return Ne.grad;case"turn":return Ne.unknown;default:return Ne.unspecified}}get value(){let t=(this[N]?this[N]():this[I])?.match(Yk);if(!t)return 0;let r=parseFloat(t[1]);if(isNaN(r))return 0;switch(t[2]){case"":return r;case"deg":return r;case"rad":return r*(180/Math.PI);case"grad":return r*(180/200);case"turn":return r*360;default:return r}}set value(e){if(this[K])throw new this[y].TypeError("Failed to set the 'value' property on 'SVGAngle': The object is read-only.");if(e=typeof e!="number"?parseFloat(String(e)):e,isNaN(e))throw new this[y].TypeError("Failed to set the 'value' property on 'SVGAngle': The provided float value is non-finite.");let t="",r=e;switch(this.unitType){case Ne.unspecified:r=e,t="";break;case Ne.deg:r=e,t="deg";break;case Ne.rad:r=e/(180/Math.PI),t="rad";break;case Ne.grad:r=e/(180/200),t="grad";break;case Ne.unknown:r=e/360,t="turn";default:break}this[I]=String(r)+t,this[E]&&this[E](this[I])}get valueAsString(){return this[N]?this[N]()||"0":this[I]||"0"}get valueInSpecifiedUnits(){let e=this.valueAsString;return parseFloat(e)||0}newValueSpecifiedUnits(e,t){if(this[K])throw new this[y].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': The object is read-only.");if(typeof e!="number")throw new this[y].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': parameter 1 ('unitType') is not of type 'number'.");if(t=typeof t!="number"?parseFloat(t):t,isNaN(t))throw new this[y].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': The provided float value is non-finite.");let r="";switch(e){case Ne.unspecified:r="";break;case Ne.deg:r="deg";break;case Ne.rad:r="rad";break;case Ne.grad:r="grad";break;case Ne.unknown:r="turn";break;default:break}this[I]=String(t)+r,this[E]&&this[E](this[I])}convertToSpecifiedUnits(e){if(this[K])throw new this[y].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGAngle': The object is read-only.");if(typeof e!="number")throw new this[y].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGAngle': parameter 1 ('unitType') is not of type 'number'.");let t=this.value,r="";switch(e){case Ne.unspecified:r="";break;case Ne.deg:r="deg";break;case Ne.rad:r="rad",t=t/(180/Math.PI);break;case Ne.grad:r="grad",t=t/(180/200);break;case Ne.unknown:r="turn",t=t/360;break;default:break}this[I]=String(t)+r,this[E]&&this[E](this[I])}};s(ti,"SVG_ANGLETYPE_UNKNOWN",Ne.unknown),s(ti,"SVG_ANGLETYPE_UNSPECIFIED",Ne.unspecified),s(ti,"SVG_ANGLETYPE_DEG",Ne.deg),s(ti,"SVG_ANGLETYPE_RAD",Ne.rad),s(ti,"SVG_ANGLETYPE_GRAD",Ne.grad);var e1,r1,o1,i1,s1;s1=y,i1=N,o1=E,r1=I,e1=K;var ms=class{constructor(e,t,r){s(this,s1);s(this,i1,null);s(this,o1,null);s(this,r1,null);s(this,e1,!1);if(e!==h)throw new TypeError("Illegal constructor");this[y]=t,r&&(this[K]=!!r.readOnly,this[N]=r.getAttribute||null,this[E]=r.setAttribute||null)}get value(){let e=this[N]?this[N]():this[I];return parseFloat(e||"0")}set value(e){if(this[K])throw new TypeError("Failed to set the 'value' property on 'SVGNumber': The object is read-only.");let t=typeof e!="number"?parseFloat(String(e)):e;if(isNaN(t))throw new TypeError("Failed to set the 'value' property on 'SVGNumber': The provided value is not a number.");this[I]=String(e),this[E]&&this[E](this[I]||"")}};var n1,l1,a1,y1,m1;m1=y,y1=N,a1=E,l1=ue,n1=pe;var la=class{constructor(e,t,r){s(this,m1);s(this,y1);s(this,a1);s(this,l1,null);s(this,n1,null);if(e!==h)throw new TypeError("Illegal constructor");this[y]=t,this[N]=r.getAttribute,this[E]=r.setAttribute}get animVal(){return this[pe]||(this[pe]=new ys(h,this[y],{readOnly:!0,getAttribute:this[N]})),this[pe]}set animVal(e){}get baseVal(){return this[ue]||(this[ue]=new ys(h,this[y],{getAttribute:this[N],setAttribute:this[E]})),this[ue]}set baseVal(e){}};var Yw;(function(l){l[l.unknown=0]="unknown",l[l.meet=1]="meet",l[l.slice=2]="slice"})(Yw||(Yw={}));var aa=Yw;var Kw;(function(l){l[l.unknown=0]="unknown",l[l.none=1]="none",l[l.xMinYMin=2]="xMinYMin",l[l.xMidYMin=3]="xMidYMin",l[l.xMaxYMin=4]="xMaxYMin",l[l.xMinYMid=5]="xMinYMid",l[l.xMidYMid=6]="xMidYMid",l[l.xMaxYMid=7]="xMaxYMid",l[l.xMinYMax=8]="xMinYMax",l[l.xMidYMax=9]="xMidYMax",l[l.xMaxYMax=10]="xMaxYMax"})(Kw||(Kw={}));var go=Kw;var gg=Object.values(go);gg.length=gg.indexOf(0);var BS=Object.values(aa);BS.length=BS.indexOf(0);var u1,p1,h1,c1,d1;d1=y,c1=N,h1=E,p1=I,u1=K;var gr=class{constructor(e,t,r){s(this,d1);s(this,c1,null);s(this,h1,null);s(this,p1,null);s(this,u1,!1);if(e!==h)throw new TypeError("Illegal constructor");this[y]=t,r&&(this[K]=!!r.readOnly,this[N]=r.getAttribute||null,this[E]=r.setAttribute||null)}get align(){let e=this[N]?this[N]():this[I];if(!e)return go.xMidYMid;let t=e.split(/\s+/)[0];return go[t]===void 0?go.xMidYMid:go[t]}set align(e){if(this[K])throw new this[y].TypeError("Failed to set the 'align' property on 'SVGPreserveAspectRatio': The object is read-only.");let t=Number(e);if(isNaN(t)||t<1||t>gg.length)throw new this[y].TypeError("Failed to set the 'align' property on 'SVGPreserveAspectRatio': The alignment provided is invalid.");this[I]=`${gg[t]} ${BS[this.meetOrSlice]}`,this[E]&&this[E](this[I])}get meetOrSlice(){let e=this[N]?this[N]():this[I];if(!e)return aa.meet;let t=e.split(/\s+/)[1];return!t||aa[t]===void 0?aa.meet:aa[t]}set meetOrSlice(e){if(this[K])throw new this[y].TypeError("Failed to set the 'meetOrSlice' property on 'SVGPreserveAspectRatio': The object is read-only.");let t=Number(e);if(isNaN(t)||t<1||t>2)throw new this[y].TypeError("Failed to set the 'meetOrSlice' property on 'SVGPreserveAspectRatio': The meetOrSlice provided is invalid.");this[I]=`${gg[this.align]} ${BS[t]}`,this[E]&&this[E](this[I])}};s(gr,"SVG_MEETORSLICE_UNKNOWN",aa.unknown),s(gr,"SVG_MEETORSLICE_MEET",aa.meet),s(gr,"SVG_MEETORSLICE_SLICE",aa.slice),s(gr,"SVG_PRESERVEASPECTRATIO_UNKNOWN",go.unknown),s(gr,"SVG_PRESERVEASPECTRATIO_NONE",go.none),s(gr,"SVG_PRESERVEASPECTRATIO_XMINYMIN",go.xMinYMin),s(gr,"SVG_PRESERVEASPECTRATIO_XMIDYMIN",go.xMidYMin),s(gr,"SVG_PRESERVEASPECTRATIO_XMAXYMIN",go.xMaxYMin),s(gr,"SVG_PRESERVEASPECTRATIO_XMINYMID",go.xMinYMid),s(gr,"SVG_PRESERVEASPECTRATIO_XMIDYMID",go.xMidYMid),s(gr,"SVG_PRESERVEASPECTRATIO_XMAXYMID",go.xMaxYMid),s(gr,"SVG_PRESERVEASPECTRATIO_XMINYMAX",go.xMinYMax),s(gr,"SVG_PRESERVEASPECTRATIO_XMIDYMAX",go.xMidYMax),s(gr,"SVG_PRESERVEASPECTRATIO_XMAXYMAX",go.xMaxYMax);var b1,g1,f1,S1,P1;P1=y,S1=N,f1=E,g1=ue,b1=pe;var _i=class{constructor(e,t,r){s(this,P1);s(this,S1);s(this,f1);s(this,g1,null);s(this,b1,null);if(e!==h)throw new TypeError("Illegal constructor");this[y]=t,this[N]=r.getAttribute,this[E]=r.setAttribute}get animVal(){return this[pe]||(this[pe]=new gr(h,this[y],{readOnly:!0,getAttribute:this[N]})),this[pe]}set animVal(e){}get baseVal(){return this[ue]||(this[ue]=new gr(h,this[y],{getAttribute:this[N],setAttribute:this[E]})),this[ue]}set baseVal(e){}};var w1,x1,E1,v1,A1;A1=y,v1=N,E1=E,x1=ue,w1=pe;var k=class{constructor(e,t,r){s(this,A1);s(this,v1);s(this,E1);s(this,x1,null);s(this,w1,null);if(e!==h)throw new TypeError("Illegal constructor");this[y]=t,this[N]=r.getAttribute,this[E]=r.setAttribute}get animVal(){return this[pe]||(this[pe]=new ar(h,this[y],{readOnly:!0,getAttribute:this[N]})),this[pe]}set animVal(e){}get baseVal(){return this[ue]||(this[ue]=new ar(h,this[y],{getAttribute:this[N],setAttribute:this[E]})),this[ue]}set baseVal(e){}};var T1,N1,L1,C1,k1,M1,R1,jh=class extends Te{constructor(){super(...arguments);s(this,R1,null);s(this,M1,null);s(this,k1,null);s(this,C1,null);s(this,L1,null);s(this,N1,1);s(this,T1,null)}get onafterprint(){return S.getEventListener(this,"onafterprint")}set onafterprint(t){this[c].set("onafterprint",t)}get onbeforeprint(){return S.getEventListener(this,"onbeforeprint")}set onbeforeprint(t){this[c].set("onbeforeprint",t)}get onbeforeunload(){return S.getEventListener(this,"onbeforeunload")}set onbeforeunload(t){this[c].set("onbeforeunload",t)}get ongamepadconnected(){return S.getEventListener(this,"ongamepadconnected")}set ongamepadconnected(t){this[c].set("ongamepadconnected",t)}get ongamepaddisconnected(){return S.getEventListener(this,"ongamepaddisconnected")}set ongamepaddisconnected(t){this[c].set("ongamepaddisconnected",t)}get onhashchange(){return S.getEventListener(this,"onhashchange")}set onhashchange(t){this[c].set("onhashchange",t)}get onlanguagechange(){return S.getEventListener(this,"onlanguagechange")}set onlanguagechange(t){this[c].set("onlanguagechange",t)}get onmessage(){return S.getEventListener(this,"onmessage")}set onmessage(t){this[c].set("onmessage",t)}get onmessageerror(){return S.getEventListener(this,"onmessageerror")}set onmessageerror(t){this[c].set("onmessageerror",t)}get onoffline(){return S.getEventListener(this,"onoffline")}set onoffline(t){this[c].set("onoffline",t)}get ononline(){return S.getEventListener(this,"ononline")}set ononline(t){this[c].set("ononline",t)}get onpagehide(){return S.getEventListener(this,"onpagehide")}set onpagehide(t){this[c].set("onpagehide",t)}get onpageshow(){return S.getEventListener(this,"onpageshow")}set onpageshow(t){this[c].set("onpageshow",t)}get onpopstate(){return S.getEventListener(this,"onpopstate")}set onpopstate(t){this[c].set("onpopstate",t)}get onrejectionhandled(){return S.getEventListener(this,"onrejectionhandled")}set onrejectionhandled(t){this[c].set("onrejectionhandled",t)}get onstorage(){return S.getEventListener(this,"onstorage")}set onstorage(t){this[c].set("onstorage",t)}get onunhandledrejection(){return S.getEventListener(this,"onunhandledrejection")}set onunhandledrejection(t){this[c].set("onunhandledrejection",t)}get onunload(){return S.getEventListener(this,"onunload")}set onunload(t){this[c].set("onunload",t)}get preserveAspectRatio(){return this[Or]||(this[Or]=new _i(h,this[y],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:t=>this.setAttribute("preserveAspectRatio",t)})),this[Or]}get height(){return this[D]||(this[D]=new k(h,this[y],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[D]}get width(){return this[_]||(this[_]=new k(h,this[y],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[_]}get x(){return this[O]||(this[O]=new k(h,this[y],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[O]}get y(){return this[V]||(this[V]=new k(h,this[y],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[V]}get currentScale(){return this[Yf]}set currentScale(t){let r=typeof t!="number"?parseFloat(String(t)):t;if(isNaN(r))throw this[y].TypeError("Failed to set the 'currentScale' property on 'SVGSVGElement': The provided float value is non-finite.");r<1||(this[Yf]=r)}get currentTranslate(){return new Nr(h,this[y])}get viewBox(){return this[mn]||(this[mn]=new la(h,this[y],{getAttribute:()=>this.getAttribute("viewBox"),setAttribute:t=>this.setAttribute("viewBox",t)})),this[mn]}pauseAnimations(){}unpauseAnimations(){}animationsPaused(){return!1}getCurrentTime(){return 0}setCurrentTime(t){}getIntersectionList(t,r){return new Li(h,[])}getEnclosureList(t,r){return new Li(h,[])}checkIntersection(t,r){return!1}checkEnclosure(t,r){return!1}deselectAll(){}createSVGNumber(){return new ms(h,this[y])}createSVGLength(){return new ar(h,this[y])}createSVGAngle(){return new ti(h,this[y])}createSVGPoint(){return new Nr(h,this[y])}createSVGMatrix(){return new Qn(h,this[y])}createSVGRect(){return new ys(h,this[y])}createSVGTransform(){return new Tr(h,this[y])}createSVGTransformFromMatrix(t){let r=new Tr(h,this[y]);return r.setMatrix(t),r}getElementsByClassName(t){return ne.getElementsByClassName(this,t)}getElementsByTagName(t){return ne.getElementsByTagName(this,t)}getElementsByTagNameNS(t,r){return ne.getElementsByTagNameNS(this,t,r)}getElementById(t){return ne.getElementById(this,t)}[(R1=Or,M1=O,k1=V,C1=_,L1=D,N1=Yf,T1=mn,ht)](t=!1){return super[ht](t)}};var O1,V1,I1,Bi=class extends(I1=it,V1=an,O1=yn,I1){constructor(){super(...arguments);s(this,V1,null);s(this,O1,null)}get onbegin(){return S.getEventListener(this,"onbegin")}set onbegin(t){this[c].set("onbegin",t)}get onend(){return S.getEventListener(this,"onend")}set onend(t){this[c].set("onend",t)}get onrepeat(){return S.getEventListener(this,"onrepeat")}set onrepeat(t){this[c].set("onrepeat",t)}get requiredExtensions(){return this[an]||(this[an]=new $s(h,this[y],{getAttribute:()=>this.getAttribute("requiredExtensions"),setAttribute:t=>this.setAttribute("requiredExtensions",t)})),this[an]}get systemLanguage(){return this[yn]||(this[yn]=new $s(h,this[y],{getAttribute:()=>this.getAttribute("systemLanguage"),setAttribute:t=>this.setAttribute("systemLanguage",t)})),this[yn]}get targetElement(){return null}};var fg=class extends Bi{};var Sg=class extends Bi{};var Pg=class extends Bi{};var F1,D1,_1,B1;B1=y,_1=N,D1=E,F1=Ro;var ut=class{constructor(e,t,r){s(this,B1);s(this,_1);s(this,D1);s(this,F1,0);if(e!==h)throw new TypeError("Illegal constructor");this[y]=t,this[N]=r.getAttribute,this[E]=r.setAttribute,this[Ro]=r.defaultValue||0}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[N]();if(!e)return this[Ro];let t=parseFloat(e);return isNaN(t)?this[Ro]:t}set baseVal(e){let t=typeof e!="number"?parseFloat(e):e;if(isNaN(t))throw new this[y].TypeError("TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedNumber': The provided float value is non-finite.");this[E](String(t))}};var U1,G1,Wr=class extends(G1=Te,U1=Mc,G1){constructor(){super(...arguments);s(this,U1,null)}get pathLength(){return this[Mc]||(this[Mc]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("pathLength"),setAttribute:t=>this.setAttribute("pathLength",t)})),this[Mc]}isPointInFill(t){if(!(t instanceof Nr))throw new TypeError("Failed to execute 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'.");return!1}isPointInStroke(t){if(!(t instanceof Nr))throw new TypeError("Failed to execute 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'.");return!1}getTotalLength(){return 0}getPointAtLength(t){return new Nr(h,this[y])}};var H1,$1,q1,W1,wg=class extends(W1=Wr,q1=Oo,$1=Vo,H1=dn,W1){constructor(){super(...arguments);s(this,q1,null);s(this,$1,null);s(this,H1,null)}get cx(){return this[Oo]||(this[Oo]=new k(h,this[y],{getAttribute:()=>this.getAttribute("cx"),setAttribute:t=>this.setAttribute("cx",t)})),this[Oo]}get cy(){return this[Vo]||(this[Vo]=new k(h,this[y],{getAttribute:()=>this.getAttribute("cy"),setAttribute:t=>this.setAttribute("cy",t)})),this[Vo]}get r(){return this[dn]||(this[dn]=new k(h,this[y],{getAttribute:()=>this.getAttribute("r"),setAttribute:t=>this.setAttribute("r",t)})),this[dn]}};var j1,z1,X1,Y1,K1;K1=y,Y1=N,X1=E,z1=wr,j1=Ro;var Tt=class{constructor(e,t,r){s(this,K1);s(this,Y1);s(this,X1);s(this,z1);s(this,j1);if(e!==h)throw new TypeError("Illegal constructor");this[y]=t,this[N]=r.getAttribute,this[E]=r.setAttribute,this[wr]=r.values,this[Ro]=r.defaultValue}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[N]();if(!e)return this[wr].indexOf(this[Ro])+1;let t=this[wr].indexOf(e);if(t===-1){let r=this[wr].indexOf(null);return r!==-1?r+1:0}return t+1}set baseVal(e){let t=Number(e);if(isNaN(t)&&(t=0),t<1)throw new TypeError(`Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provided is ${t}, which is not settable.`);if(t>this[wr].length)throw new TypeError(`Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provided (${t}) is larger than the largest allowed value (${this[wr].length}).`);let r=this[N](),o=this[wr][t-1]===null,i=o?"0":this[wr][t-1];(!r||o&&this[wr].includes(r)||!o&&r!==i)&&this[E](i||"")}};var J1,Z1,xg=class extends(Z1=it,J1=Bc,Z1){constructor(){super(...arguments);s(this,J1,null)}get clipPathUnits(){return this[Bc]||(this[Bc]=new Tt(h,this[y],{getAttribute:()=>this.getAttribute("clipPathUnits"),setAttribute:t=>this.setAttribute("clipPathUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[Bc]}};var Eg=class extends Te{};var vg=class extends it{};var Q1,tM,eM,rM,oM,Ag=class extends(oM=Wr,rM=Oo,eM=Vo,tM=hn,Q1=cn,oM){constructor(){super(...arguments);s(this,rM,null);s(this,eM,null);s(this,tM,null);s(this,Q1,null)}get cx(){return this[Oo]||(this[Oo]=new k(h,this[y],{getAttribute:()=>this.getAttribute("cx"),setAttribute:t=>this.setAttribute("cx",t)})),this[Oo]}get cy(){return this[Vo]||(this[Vo]=new k(h,this[y],{getAttribute:()=>this.getAttribute("cy"),setAttribute:t=>this.setAttribute("cy",t)})),this[Vo]}get rx(){return this[hn]||(this[hn]=new k(h,this[y],{getAttribute:()=>this.getAttribute("rx"),setAttribute:t=>this.setAttribute("rx",t)})),this[hn]}get ry(){return this[cn]||(this[cn]=new k(h,this[y],{getAttribute:()=>this.getAttribute("ry"),setAttribute:t=>this.setAttribute("ry",t)})),this[cn]}};var iM,sM,nM;nM=y,sM=N,iM=E;var at=class{constructor(e,t,r){s(this,nM);s(this,sM);s(this,iM);if(e!==h)throw new TypeError("Illegal constructor");this[y]=t,this[N]=r.getAttribute,this[E]=r.setAttribute}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[N]();return e||""}set baseVal(e){this[E](String(e))}};var lM,aM,yM,mM,uM,pM,hM,cM,fr=class extends(cM=it,hM=D,pM=mt,uM=Io,mM=ke,yM=O,aM=V,lM=_,cM){constructor(){super(...arguments);s(this,hM,null);s(this,pM,null);s(this,uM,null);s(this,mM,null);s(this,yM,null);s(this,aM,null);s(this,lM,null)}get height(){return this[D]||(this[D]=new k(h,this[y],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[D]}get in1(){return this[mt]||(this[mt]=new at(h,this[y],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[mt]}get in2(){return this[Io]||(this[Io]=new at(h,this[y],{getAttribute:()=>this.getAttribute("in2"),setAttribute:t=>this.setAttribute("in2",t)})),this[Io]}get mode(){return this[ke]||(this[ke]=new Tt(h,this[y],{getAttribute:()=>this.getAttribute("mode"),setAttribute:t=>this.setAttribute("mode",t),values:["normal","multiply","screen","darken","lighten","overlay","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],defaultValue:"normal"})),this[ke]}get width(){return this[_]||(this[_]=new k(h,this[y],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[_]}get x(){return this[O]||(this[O]=new k(h,this[y],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[O]}get y(){return this[V]||(this[V]=new k(h,this[y],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[V]}};s(fr,"SVG_FEBLEND_MODE_UNKNOWN",0),s(fr,"SVG_FEBLEND_MODE_NORMAL",1),s(fr,"SVG_FEBLEND_MODE_MULTIPLY",2),s(fr,"SVG_FEBLEND_MODE_SCREEN",3),s(fr,"SVG_FEBLEND_MODE_DARKEN",4),s(fr,"SVG_FEBLEND_MODE_LIGHTEN",5),s(fr,"SVG_FEBLEND_MODE_OVERLAY",6),s(fr,"SVG_FEBLEND_MODE_COLOR_DODGE",7),s(fr,"SVG_FEBLEND_MODE_COLOR_BURN",8),s(fr,"SVG_FEBLEND_MODE_HARD_LIGHT",9),s(fr,"SVG_FEBLEND_MODE_SOFT_LIGHT",10),s(fr,"SVG_FEBLEND_MODE_DIFFERENCE",11),s(fr,"SVG_FEBLEND_MODE_EXCLUSION",12),s(fr,"SVG_FEBLEND_MODE_HUE",13),s(fr,"SVG_FEBLEND_MODE_SATURATION",14),s(fr,"SVG_FEBLEND_MODE_COLOR",15),s(fr,"SVG_FEBLEND_MODE_LUMINOSITY",16);var qU=/[\t\f\n\r, ]+/,dM,bM,gM,fM,SM,By=class l{constructor(e,t,r){s(this,SM);s(this,fM);s(this,gM);s(this,bM,!1);s(this,dM,{items:[],attributeValue:""});if(e!==h)throw new TypeError("Illegal constructor");if(this[y]=t,this[K]=!!r.readOnly,this[N]=r.getAttribute,this[E]=r.setAttribute,e!==h)throw new TypeError("Illegal constructor");let o=new xe(this,[l]);return new Proxy(this,{get:(i,n)=>{if(n==="length"||n==="numberOfItems")return i[z]().length;if(n in i||typeof n=="symbol")return o.bind(n),i[n];let a=Number(n);if(!isNaN(a))return i[z]()[a]},set(i,n,a){if(o.bind(n),typeof n=="symbol")return i[n]=a,!0;let m=Number(n);return isNaN(m)&&(i[n]=a),!0},deleteProperty(i,n){if(typeof n=="symbol")return delete i[n],!0;let a=Number(n);return isNaN(a)&&delete i[n],!0},ownKeys(i){return Object.keys(i[z]())},has(i,n){if(n in i)return!0;if(typeof n=="symbol")return!1;let a=Number(n);return!isNaN(a)&&a>=0&&a<i[z]().length},defineProperty(i,n,a){return o.preventBinding(n),n in i?(Object.defineProperty(i,n,a),!0):!1},getOwnPropertyDescriptor(i,n){if(n in i||typeof n=="symbol")return;let a=Number(n),m=i[z]();if(!isNaN(a)&&m[a])return{value:m[a],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[z]().length}get numberOfItems(){return this[z]().length}[(SM=y,fM=N,gM=E,bM=K,dM=$,Symbol.iterator)](){return this[z]().values()}clear(){if(this[K])throw new this[y].TypeError("Failed to execute 'clear' on 'SVGNumberList': The object is read-only.");for(let e of this[$].items)e[N]=null,e[E]=null;this[$].items=[],this[$].attributeValue="",this[E]("")}initialize(e){if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'initialize' on 'SVGNumberList': 1 arguments required, but only ${arguments.length} present.`);if(this[K])throw new this[y].TypeError("Failed to execute 'initialize' on 'SVGNumberList': The object is read-only.");for(let t of this[$].items)t[N]=null,t[E]=null;return e[N]=()=>e[I],e[E]=()=>{this[$].attributeValue=this[z]().map(t=>t[I]||"0").join(" "),this[E](this[$].attributeValue)},this[$].items=[e],this[$].attributeValue=e[I],this[E](e[I]||""),e}getItem(e){let t=this[z]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),t[e]?t[e]:null}insertItemBefore(e,t){if(this[K])throw new this[y].TypeError("Failed to execute 'insertItemBefore' on 'SVGNumberList': The object is read-only.");if(arguments.length<2)throw new this[y].TypeError(`Failed to execute 'insertItemBefore' on 'SVGNumberList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof ms))throw new this[y].TypeError("Failed to execute 'insertItemBefore' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let r=this[z](),o=r.indexOf(e);return o!==-1&&r.splice(o,1),t<0?t=0:t>r.length&&(t=r.length),r.splice(t,0,e),e[N]=()=>e[I],e[E]=()=>{this[$].attributeValue=this[z]().map(i=>i[I]||"0").join(" "),this[E](this[$].attributeValue)},this[$].attributeValue=r.map(i=>i[I]||"0").join(" "),this[E](this[$].attributeValue),e}replaceItem(e,t){if(this[K])throw new this[y].TypeError("Failed to execute 'replaceItem' on 'SVGNumberList': The object is read-only.");if(arguments.length<2)throw new this[y].TypeError(`Failed to execute 'replaceItem' on 'SVGNumberList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof ms))throw new this[y].TypeError("Failed to execute 'replaceItem' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let r=this[z](),o=r.indexOf(e);if(o===t)return e;o!==-1&&r.splice(o,1),t<0?t=0:t>=r.length&&(t=r.length-1),r[t]&&(r[t][N]=null,r[t][E]=null);let i=r[t];return r[t]=e,e[N]=()=>e[I],e[E]=()=>{this[$].attributeValue=this[z]().map(n=>n[I]||"0").join(" "),this[E](this[$].attributeValue)},this[$].attributeValue=r.map(n=>n[I]||"0").join(" "),this[E](this[$].attributeValue),i}removeItem(e){if(this[K])throw new this[y].TypeError("Failed to execute 'removeItem' on 'SVGNumberList': The object is read-only.");if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'removeItem' on 'SVGNumberList': 1 argument required, but only ${arguments.length} present.`);let t=this[z]();if(e=Number(e),isNaN(e)&&(e=0),e>=t.length)throw new this[y].DOMException(`Failed to execute 'removeItem' on 'SVGNumberList': The index provided (${e}) is greater than the maximum bound.`,A.indexSizeError);if(e<0)throw new this[y].DOMException(`Failed to execute 'removeItem' on 'SVGNumberList': The index provided (${e}) is negative.`,A.indexSizeError);let r=t[e];return r&&(r[N]=null,r[E]=null),t.splice(e,1),this[E](t.map(o=>o[I]||"0").join(" ")),r}appendItem(e){if(this[K])throw new this[y].TypeError("Failed to execute 'appendItem' on 'SVGNumberList': The object is read-only.");if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'appendItem' on 'SVGNumberList': 1 argument required, but only ${arguments.length} present.`);if(!(e instanceof ms))throw new this[y].TypeError("Failed to execute 'appendItem' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let t=this[z](),r=t.indexOf(e);return r!==-1&&t.splice(r,1),t.push(e),e[N]=()=>e[I],e[E]=()=>{this[$].attributeValue=this[z]().map(o=>o[I]||"0").join(" "),this[E](this[$].attributeValue)},this[$].attributeValue=t.map(o=>o[I]||"0").join(" "),this[E](this[$].attributeValue),e}[z](){let e=this[N]()??"",t=this[$];if(t.attributeValue===e)return t.items;if(t.items.length)for(let i of t.items)i[N]=null,i[E]=null;let r=[],o=e.trim();if(o){let i=o.split(qU);for(let n=0,a=i.length;n<a;n++){let m=new ms(h,this[y],{readOnly:this[K],getAttribute:()=>m[I],setAttribute:()=>{this[$].attributeValue=this[z]().map(p=>p[I]||"0").join(" "),this[E](this[$].attributeValue)}});m[I]=String(parseFloat(i[n])),r.push(m)}}return t.attributeValue=e,t.items=r,r}};var PM,wM,xM,EM,vM;vM=y,EM=N,xM=E,wM=ue,PM=pe;var ei=class{constructor(e,t,r){s(this,vM);s(this,EM);s(this,xM);s(this,wM,null);s(this,PM,null);if(e!==h)throw new TypeError("Illegal constructor");this[y]=t,this[N]=r.getAttribute,this[E]=r.setAttribute}get animVal(){return this[pe]||(this[pe]=new By(h,this[y],{readOnly:!0,getAttribute:this[N],setAttribute:()=>{}})),this[pe]}set animVal(e){}get baseVal(){return this[ue]||(this[ue]=new By(h,this[y],{getAttribute:this[N],setAttribute:this[E]})),this[ue]}set baseVal(e){}};var AM,TM,NM,LM,CM,kM,MM,RM,OM,VM,tl=class extends(VM=it,OM=D,RM=mt,MM=Io,kM=rt,CM=Xt,LM=wr,NM=O,TM=V,AM=_,VM){constructor(){super(...arguments);s(this,OM,null);s(this,RM,null);s(this,MM,null);s(this,kM,null);s(this,CM,null);s(this,LM,null);s(this,NM,null);s(this,TM,null);s(this,AM,null)}get height(){return this[D]||(this[D]=new k(h,this[y],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[D]}get in1(){return this[mt]||(this[mt]=new at(h,this[y],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[mt]}get in2(){return this[Io]||(this[Io]=new at(h,this[y],{getAttribute:()=>this.getAttribute("in2"),setAttribute:t=>this.setAttribute("in2",t)})),this[Io]}get result(){return this[rt]||(this[rt]=new at(h,this[y],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[rt]}get type(){return this[Xt]||(this[Xt]=new Tt(h,this[y],{getAttribute:()=>this.getAttribute("type"),setAttribute:t=>this.setAttribute("type",t),values:["matrix","saturate","huerotate","luminancetoalpha"],defaultValue:"matrix"})),this[Xt]}get values(){return this[wr]||(this[wr]=new ei(h,this[y],{getAttribute:()=>this.getAttribute("values"),setAttribute:t=>this.setAttribute("values",t)})),this[wr]}get width(){return this[_]||(this[_]=new k(h,this[y],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[_]}get x(){return this[O]||(this[O]=new k(h,this[y],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[O]}get y(){return this[V]||(this[V]=new k(h,this[y],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[V]}};s(tl,"SVG_FEBLEND_TYPE_UNKNOWN",0),s(tl,"SVG_FEBLEND_TYPE_MATRIX",1),s(tl,"SVG_FEBLEND_TYPE_SATURATE",2),s(tl,"SVG_FEBLEND_TYPE_HUEROTATE",3),s(tl,"SVG_FEBLEND_TYPE_LUMINANCETOALPHA",4);var IM,FM,DM,_M,BM,UM,GM,Tg=class extends(GM=it,UM=D,BM=mt,_M=rt,DM=O,FM=V,IM=_,GM){constructor(){super(...arguments);s(this,UM,null);s(this,BM,null);s(this,_M,null);s(this,DM,null);s(this,FM,null);s(this,IM,null)}get height(){return this[D]||(this[D]=new k(h,this[y],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[D]}get in1(){return this[mt]||(this[mt]=new at(h,this[y],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[mt]}get result(){return this[rt]||(this[rt]=new at(h,this[y],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[rt]}get width(){return this[_]||(this[_]=new k(h,this[y],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[_]}get x(){return this[O]||(this[O]=new k(h,this[y],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[O]}get y(){return this[V]||(this[V]=new k(h,this[y],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[V]}};var HM,$M,qM,WM,jM,zM,XM,YM,KM,us=class extends(KM=it,YM=D,XM=mt,zM=rt,jM=Xt,WM=wr,qM=O,$M=V,HM=_,KM){constructor(){super(...arguments);s(this,YM,null);s(this,XM,null);s(this,zM,null);s(this,jM,null);s(this,WM,null);s(this,qM,null);s(this,$M,null);s(this,HM,null)}get height(){return this[D]||(this[D]=new k(h,this[y],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[D]}get in1(){return this[mt]||(this[mt]=new at(h,this[y],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[mt]}get result(){return this[rt]||(this[rt]=new at(h,this[y],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[rt]}get type(){return this[Xt]||(this[Xt]=new Tt(h,this[y],{getAttribute:()=>this.getAttribute("type"),setAttribute:t=>this.setAttribute("type",t),values:["over","in","out","atop","xor","arithmetic"],defaultValue:"over"})),this[Xt]}get values(){return this[wr]||(this[wr]=new ei(h,this[y],{getAttribute:()=>this.getAttribute("values"),setAttribute:t=>this.setAttribute("values",t)})),this[wr]}get width(){return this[_]||(this[_]=new k(h,this[y],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[_]}get x(){return this[O]||(this[O]=new k(h,this[y],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[O]}get y(){return this[V]||(this[V]=new k(h,this[y],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[V]}};s(us,"SVG_FECOMPOSITE_OPERATOR_UNKNOWN",0),s(us,"SVG_FECOMPOSITE_OPERATOR_OVER",1),s(us,"SVG_FECOMPOSITE_OPERATOR_IN",2),s(us,"SVG_FECOMPOSITE_OPERATOR_OUT",3),s(us,"SVG_FECOMPOSITE_OPERATOR_ATOP",4),s(us,"SVG_FECOMPOSITE_OPERATOR_XOR",5),s(us,"SVG_FECOMPOSITE_OPERATOR_ARITHMETIC",6);var JM,ZM,QM;QM=y,ZM=N,JM=E;var iu=class{constructor(e,t,r){s(this,QM);s(this,ZM);s(this,JM);if(e!==h)throw new TypeError("Illegal constructor");this[y]=t,this[N]=r.getAttribute,this[E]=r.setAttribute}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){return this[N]()==="true"}set baseVal(e){this[E](String(typeof e!="boolean"?!!e:e))}};var tR,eR,rR;rR=y,eR=N,tR=E;var ps=class{constructor(e,t,r){s(this,rR);s(this,eR);s(this,tR);if(e!==h)throw new TypeError("Illegal constructor");this[y]=t,this[N]=r.getAttribute,this[E]=r.setAttribute}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[N]();if(!e)return 0;let t=parseInt(e);return isNaN(t)?0:t}set baseVal(e){let t=parseInt(String(e));if(isNaN(t))throw new this[y].TypeError("TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedInteger': The provided float value is non-finite.");this[E](String(t))}};var oR,iR,sR,nR,lR,aR,yR,mR,uR,pR,hR,cR,dR,bR,gR,fR,SR,PR,ya=class extends(PR=it,SR=sd,fR=nd,gR=xn,bR=D,dR=mt,cR=ld,hR=Fo,pR=Do,uR=ad,mR=yd,yR=md,aR=rt,lR=ud,nR=pd,sR=_,iR=O,oR=V,PR){constructor(){super(...arguments);s(this,SR,null);s(this,fR,null);s(this,gR,null);s(this,bR,null);s(this,dR,null);s(this,cR,null);s(this,hR,null);s(this,pR,null);s(this,uR,null);s(this,mR,null);s(this,yR,null);s(this,aR,null);s(this,lR,null);s(this,nR,null);s(this,sR,null);s(this,iR,null);s(this,oR,null)}get bias(){return this[sd]||(this[sd]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("bias"),setAttribute:t=>this.setAttribute("bias",t)})),this[sd]}get divisor(){return this[nd]||(this[nd]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("divisor"),setAttribute:t=>this.setAttribute("divisor",t)})),this[nd]}get edgeMode(){return this[xn]||(this[xn]=new Tt(h,this[y],{getAttribute:()=>this.getAttribute("edgeMode"),setAttribute:t=>this.setAttribute("edgeMode",t),values:["duplicate","wrap","none"],defaultValue:"duplicate"})),this[xn]}get height(){return this[D]||(this[D]=new k(h,this[y],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[D]}get in1(){return this[mt]||(this[mt]=new at(h,this[y],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[mt]}get kernelMatrix(){return this[ld]||(this[ld]=new ei(h,this[y],{getAttribute:()=>this.getAttribute("kernelMatrix"),setAttribute:t=>this.setAttribute("kernelMatrix",t)})),this[ld]}get kernelUnitLengthX(){return this[Fo]||(this[Fo]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:t=>this.setAttribute("kernelUnitLengthX",t)})),this[Fo]}get kernelUnitLengthY(){return this[Do]||(this[Do]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:t=>this.setAttribute("kernelUnitLengthY",t)})),this[Do]}get orderX(){return this[ad]||(this[ad]=new ps(h,this[y],{getAttribute:()=>this.getAttribute("orderX"),setAttribute:t=>this.setAttribute("orderX",t)})),this[ad]}get orderY(){return this[yd]||(this[yd]=new ps(h,this[y],{getAttribute:()=>this.getAttribute("orderY"),setAttribute:t=>this.setAttribute("orderY",t)})),this[yd]}get preserveAlpha(){return this[md]||(this[md]=new iu(h,this[y],{getAttribute:()=>this.getAttribute("preserveAlpha"),setAttribute:t=>this.setAttribute("preserveAlpha",t)})),this[md]}get result(){return this[rt]||(this[rt]=new at(h,this[y],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[rt]}get targetX(){return this[ud]||(this[ud]=new ps(h,this[y],{getAttribute:()=>this.getAttribute("targetX"),setAttribute:t=>this.setAttribute("targetX",t)})),this[ud]}get targetY(){return this[pd]||(this[pd]=new ps(h,this[y],{getAttribute:()=>this.getAttribute("targetY"),setAttribute:t=>this.setAttribute("targetY",t)})),this[pd]}get width(){return this[_]||(this[_]=new k(h,this[y],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[_]}get x(){return this[O]||(this[O]=new k(h,this[y],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[O]}get y(){return this[V]||(this[V]=new k(h,this[y],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[V]}};s(ya,"SVG_EDGEMODE_UNKNOWN",0),s(ya,"SVG_EDGEMODE_DUPLICATE",1),s(ya,"SVG_EDGEMODE_WRAP",2),s(ya,"SVG_EDGEMODE_NONE",3);var wR,xR,ER,vR,AR,TR,NR,LR,CR,kR,MR,Ng=class extends(MR=it,kR=hd,CR=D,LR=mt,NR=Fo,TR=Do,AR=rt,vR=En,ER=_,xR=O,wR=V,MR){constructor(){super(...arguments);s(this,kR,null);s(this,CR,null);s(this,LR,null);s(this,NR,null);s(this,TR,null);s(this,AR,null);s(this,vR,null);s(this,ER,null);s(this,xR,null);s(this,wR,null)}get diffuseConstant(){return this[hd]||(this[hd]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("diffuseConstant"),setAttribute:t=>this.setAttribute("diffuseConstant",t)})),this[hd]}get height(){return this[D]||(this[D]=new k(h,this[y],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[D]}get in1(){return this[mt]||(this[mt]=new at(h,this[y],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[mt]}get kernelUnitLengthX(){return this[Fo]||(this[Fo]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:t=>this.setAttribute("kernelUnitLengthX",t)})),this[Fo]}get kernelUnitLengthY(){return this[Do]||(this[Do]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:t=>this.setAttribute("kernelUnitLengthY",t)})),this[Do]}get result(){return this[rt]||(this[rt]=new at(h,this[y],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[rt]}get surfaceScale(){return this[En]||(this[En]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("surfaceScale"),setAttribute:t=>this.setAttribute("surfaceScale",t)})),this[En]}get width(){return this[_]||(this[_]=new k(h,this[y],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[_]}get x(){return this[O]||(this[O]=new k(h,this[y],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[O]}get y(){return this[V]||(this[V]=new k(h,this[y],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[V]}};var RR,OR,VR,IR,FR,DR,_R,BR,UR,GR,HR,el=class extends(HR=it,GR=D,UR=mt,BR=Io,_R=rt,DR=cd,FR=_,IR=O,VR=dd,OR=V,RR=bd,HR){constructor(){super(...arguments);s(this,GR,null);s(this,UR,null);s(this,BR,null);s(this,_R,null);s(this,DR,null);s(this,FR,null);s(this,IR,null);s(this,VR,null);s(this,OR,null);s(this,RR,null)}get height(){return this[D]||(this[D]=new k(h,this[y],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[D]}get in1(){return this[mt]||(this[mt]=new at(h,this[y],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[mt]}get in2(){return this[Io]||(this[Io]=new at(h,this[y],{getAttribute:()=>this.getAttribute("in2"),setAttribute:t=>this.setAttribute("in2",t)})),this[Io]}get result(){return this[rt]||(this[rt]=new at(h,this[y],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[rt]}get scale(){return this[cd]||(this[cd]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("scale"),setAttribute:t=>this.setAttribute("scale",t)})),this[cd]}get width(){return this[_]||(this[_]=new k(h,this[y],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[_]}get x(){return this[O]||(this[O]=new k(h,this[y],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[O]}get xChannelSelector(){return this[dd]||(this[dd]=new Tt(h,this[y],{getAttribute:()=>this.getAttribute("xChannelSelector"),setAttribute:t=>this.setAttribute("xChannelSelector",t),values:["r","g","b","a"],defaultValue:"r"})),this[dd]}get y(){return this[V]||(this[V]=new k(h,this[y],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[V]}get yChannelSelector(){return this[bd]||(this[bd]=new Tt(h,this[y],{getAttribute:()=>this.getAttribute("yChannelSelector"),setAttribute:t=>this.setAttribute("yChannelSelector",t),values:["r","g","b","a"],defaultValue:"r"})),this[bd]}};s(el,"SVG_CHANNEL_UNKNOWN",0),s(el,"SVG_CHANNEL_R",1),s(el,"SVG_CHANNEL_G",2),s(el,"SVG_CHANNEL_B",3),s(el,"SVG_CHANNEL_A",4);var $R,qR,WR,Lg=class extends(WR=it,qR=gd,$R=fd,WR){constructor(){super(...arguments);s(this,qR,null);s(this,$R,null)}get azimuth(){return this[gd]||(this[gd]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("azimuth"),setAttribute:t=>this.setAttribute("azimuth",t)})),this[gd]}get elevation(){return this[fd]||(this[fd]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("elevation"),setAttribute:t=>this.setAttribute("elevation",t)})),this[fd]}};var jR,zR,XR,YR,KR,JR,ZR,QR,tO,eO,rO,Cg=class extends(rO=it,eO=_o,tO=Bo,QR=D,ZR=mt,JR=rt,KR=vn,YR=An,XR=_,zR=O,jR=V,rO){constructor(){super(...arguments);s(this,eO,null);s(this,tO,null);s(this,QR,null);s(this,ZR,null);s(this,JR,null);s(this,KR,null);s(this,YR,null);s(this,XR,null);s(this,zR,null);s(this,jR,null)}get dx(){return this[_o]||(this[_o]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("dx"),setAttribute:t=>this.setAttribute("dx",t)})),this[_o]}get dy(){return this[Bo]||(this[Bo]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("dy"),setAttribute:t=>this.setAttribute("dy",t)})),this[Bo]}get height(){return this[D]||(this[D]=new k(h,this[y],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[D]}get in1(){return this[mt]||(this[mt]=new at(h,this[y],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[mt]}get result(){return this[rt]||(this[rt]=new at(h,this[y],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[rt]}get stdDeviationX(){return this[vn]||(this[vn]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("stdDeviationX"),setAttribute:t=>this.setAttribute("stdDeviationX",t),defaultValue:2})),this[vn]}get stdDeviationY(){return this[An]||(this[An]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("stdDeviationY"),setAttribute:t=>this.setAttribute("stdDeviationY",t),defaultValue:2})),this[An]}get width(){return this[_]||(this[_]=new k(h,this[y],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[_]}get x(){return this[O]||(this[O]=new k(h,this[y],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[O]}get y(){return this[V]||(this[V]=new k(h,this[y],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[V]}setStdDeviation(t,r){this.stdDeviationX.baseVal=t,this.stdDeviationY.baseVal=r}};var oO,iO,sO,nO,lO,aO,kg=class extends(aO=it,lO=D,nO=rt,sO=_,iO=O,oO=V,aO){constructor(){super(...arguments);s(this,lO,null);s(this,nO,null);s(this,sO,null);s(this,iO,null);s(this,oO,null)}get height(){return this[D]||(this[D]=new k(h,this[y],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[D]}get result(){return this[rt]||(this[rt]=new at(h,this[y],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[rt]}get width(){return this[_]||(this[_]=new k(h,this[y],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[_]}get x(){return this[O]||(this[O]=new k(h,this[y],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[O]}get y(){return this[V]||(this[V]=new k(h,this[y],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[V]}};var yO,mO,uO,pO,hO,cO,dO,bO,jr=class extends(bO=it,dO=Xt,cO=Sd,hO=Pd,pO=wd,uO=xd,mO=Ed,yO=Pn,bO){constructor(){super(...arguments);s(this,dO,null);s(this,cO,null);s(this,hO,null);s(this,pO,null);s(this,uO,null);s(this,mO,null);s(this,yO,null)}get type(){return this[Xt]||(this[Xt]=new Tt(h,this[y],{getAttribute:()=>this.getAttribute("type"),setAttribute:t=>this.setAttribute("type",t),values:["identity","table","discrete","linear","gamma"],defaultValue:"identity"})),this[Xt]}get tableValues(){return this[Sd]||(this[Sd]=new ei(h,this[y],{getAttribute:()=>this.getAttribute("tableValues"),setAttribute:t=>this.setAttribute("tableValues",t)})),this[Sd]}get slope(){return this[Pd]||(this[Pd]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("slope"),setAttribute:t=>this.setAttribute("slope",t),defaultValue:1})),this[Pd]}get intercept(){return this[wd]||(this[wd]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("intercept"),setAttribute:t=>this.setAttribute("intercept",t)})),this[wd]}get amplitude(){return this[xd]||(this[xd]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("amplitude"),setAttribute:t=>this.setAttribute("amplitude",t),defaultValue:1})),this[xd]}get exponent(){return this[Ed]||(this[Ed]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("exponent"),setAttribute:t=>this.setAttribute("exponent",t),defaultValue:1})),this[Ed]}get offset(){return this[Pn]||(this[Pn]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("offset"),setAttribute:t=>this.setAttribute("offset",t)})),this[Pn]}};s(jr,"SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN",0),s(jr,"SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY",1),s(jr,"SVG_FECOMPONENTTRANSFER_TYPE_TABLE",2),s(jr,"SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE",3),s(jr,"SVG_FECOMPONENTTRANSFER_TYPE_LINEAR",4),s(jr,"SVG_FECOMPONENTTRANSFER_TYPE_GAMMA",5);var Mg=class extends jr{};var Rg=class extends jr{};var Og=class extends jr{};var Vg=class extends jr{};var gO,fO,SO,PO,wO,xO,EO,vO,AO,TO,ma=class extends(TO=it,AO=xn,vO=D,EO=mt,xO=rt,wO=vn,PO=An,SO=_,fO=O,gO=V,TO){constructor(){super(...arguments);s(this,AO,null);s(this,vO,null);s(this,EO,null);s(this,xO,null);s(this,wO,null);s(this,PO,null);s(this,SO,null);s(this,fO,null);s(this,gO,null)}get edgeMode(){return this[xn]||(this[xn]=new Tt(h,this[y],{getAttribute:()=>this.getAttribute("edgeMode"),setAttribute:t=>this.setAttribute("edgeMode",t),values:["duplicate","wrap","none"],defaultValue:"duplicate"})),this[xn]}get height(){return this[D]||(this[D]=new k(h,this[y],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[D]}get in1(){return this[mt]||(this[mt]=new at(h,this[y],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[mt]}get result(){return this[rt]||(this[rt]=new at(h,this[y],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[rt]}get stdDeviationX(){return this[vn]||(this[vn]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("stdDeviationX")||"2",setAttribute:t=>this.setAttribute("stdDeviationX",t)})),this[vn]}get stdDeviationY(){return this[An]||(this[An]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("stdDeviationY")||"2",setAttribute:t=>this.setAttribute("stdDeviationY",t)})),this[An]}get width(){return this[_]||(this[_]=new k(h,this[y],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[_]}get x(){return this[O]||(this[O]=new k(h,this[y],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[O]}get y(){return this[V]||(this[V]=new k(h,this[y],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[V]}setStdDeviation(t,r){this.stdDeviationX.baseVal=t,this.stdDeviationY.baseVal=r}};s(ma,"SVG_EDGEMODE_UNKNOWN",0),s(ma,"SVG_EDGEMODE_DUPLICATE",1),s(ma,"SVG_EDGEMODE_WRAP",2),s(ma,"SVG_EDGEMODE_NONE",3);var NO,LO,CO,kO,MO,RO,OO,VO,IO,Ig=class extends(IO=it,VO=ix,OO=D,RO=kt,MO=Or,kO=rt,CO=_,LO=O,NO=V,IO){constructor(){super(...arguments);s(this,VO,null);s(this,OO,null);s(this,RO,null);s(this,MO,null);s(this,kO,null);s(this,CO,null);s(this,LO,null);s(this,NO,null)}get crossOrigin(){return this.getAttribute("crossorigin")}set crossOrigin(t){this.setAttribute("crossorigin",t)}get height(){return this[D]||(this[D]=new k(h,this[y],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[D]}get href(){return this[kt]||(this[kt]=new at(h,this[y],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[kt]}get preserveAspectRatio(){return this[Or]||(this[Or]=new _i(h,this[y],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:t=>this.setAttribute("preserveAspectRatio",t)})),this[Or]}get result(){return this[rt]||(this[rt]=new at(h,this[y],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[rt]}get width(){return this[_]||(this[_]=new k(h,this[y],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[_]}get x(){return this[O]||(this[O]=new k(h,this[y],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[O]}get y(){return this[V]||(this[V]=new k(h,this[y],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[V]}};var FO,DO,_O,BO,UO,GO,Fg=class extends(GO=it,UO=D,BO=rt,_O=_,DO=O,FO=V,GO){constructor(){super(...arguments);s(this,UO,null);s(this,BO,null);s(this,_O,null);s(this,DO,null);s(this,FO,null)}get height(){return this[D]||(this[D]=new k(h,this[y],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[D]}get result(){return this[rt]||(this[rt]=new at(h,this[y],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[rt]}get width(){return this[_]||(this[_]=new k(h,this[y],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[_]}get x(){return this[O]||(this[O]=new k(h,this[y],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[O]}get y(){return this[V]||(this[V]=new k(h,this[y],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[V]}};var HO,$O,Dg=class extends($O=it,HO=mt,$O){constructor(){super(...arguments);s(this,HO,null)}get in1(){return this[mt]||(this[mt]=new at(h,this[y],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[mt]}};var qO,WO,jO,zO,XO,YO,KO,JO,ZO,QO,Uy=class extends(QO=it,ZO=D,JO=mt,KO=vd,YO=Ad,XO=Td,zO=rt,jO=_,WO=O,qO=V,QO){constructor(){super(...arguments);s(this,ZO,null);s(this,JO,null);s(this,KO,null);s(this,YO,null);s(this,XO,null);s(this,zO,null);s(this,jO,null);s(this,WO,null);s(this,qO,null)}get height(){return this[D]||(this[D]=new k(h,this[y],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[D]}get in1(){return this[mt]||(this[mt]=new at(h,this[y],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[mt]}get operator(){return this[vd]||(this[vd]=new Tt(h,this[y],{getAttribute:()=>this.getAttribute("operator"),setAttribute:t=>this.setAttribute("operator",t),values:["erode","dilate"],defaultValue:"erode"})),this[vd]}get radiusX(){return this[Ad]||(this[Ad]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("radiusX"),setAttribute:t=>this.setAttribute("radiusX",t)})),this[Ad]}get radiusY(){return this[Td]||(this[Td]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("radiusY"),setAttribute:t=>this.setAttribute("radiusY",t)})),this[Td]}get result(){return this[rt]||(this[rt]=new at(h,this[y],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[rt]}get width(){return this[_]||(this[_]=new k(h,this[y],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[_]}get x(){return this[O]||(this[O]=new k(h,this[y],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[O]}get y(){return this[V]||(this[V]=new k(h,this[y],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[V]}};s(Uy,"SVG_MORPHOLOGY_OPERATOR_UNKNOWN",0),s(Uy,"SVG_MORPHOLOGY_OPERATOR_ERODE",1),s(Uy,"SVG_MORPHOLOGY_OPERATOR_DILATE",2);var tV,eV,rV,oV,iV,sV,nV,lV,aV,_g=class extends(aV=it,lV=D,nV=mt,sV=_o,iV=Bo,oV=rt,rV=_,eV=O,tV=V,aV){constructor(){super(...arguments);s(this,lV,null);s(this,nV,null);s(this,sV,null);s(this,iV,null);s(this,oV,null);s(this,rV,null);s(this,eV,null);s(this,tV,null)}get height(){return this[D]||(this[D]=new k(h,this[y],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[D]}get in1(){return this[mt]||(this[mt]=new at(h,this[y],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[mt]}get dx(){return this[_o]||(this[_o]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("dx"),setAttribute:t=>this.setAttribute("dx",t)})),this[_o]}get dy(){return this[Bo]||(this[Bo]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("dy"),setAttribute:t=>this.setAttribute("dy",t)})),this[Bo]}get result(){return this[rt]||(this[rt]=new at(h,this[y],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[rt]}get width(){return this[_]||(this[_]=new k(h,this[y],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[_]}get x(){return this[O]||(this[O]=new k(h,this[y],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[O]}get y(){return this[V]||(this[V]=new k(h,this[y],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[V]}};var yV,mV,uV,pV,Bg=class extends(pV=it,uV=O,mV=V,yV=yo,pV){constructor(){super(...arguments);s(this,uV,null);s(this,mV,null);s(this,yV,null)}get x(){return this[O]||(this[O]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[O]}get y(){return this[V]||(this[V]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[V]}get z(){return this[yo]||(this[yo]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("z"),setAttribute:t=>this.setAttribute("z",t)})),this[yo]}};var hV,cV,dV,bV,gV,fV,SV,PV,wV,xV,EV,vV,Ug=class extends(vV=it,EV=D,xV=mt,wV=Fo,PV=Do,SV=rt,fV=Nd,gV=Tn,bV=En,dV=_,cV=O,hV=V,vV){constructor(){super(...arguments);s(this,EV,null);s(this,xV,null);s(this,wV,null);s(this,PV,null);s(this,SV,null);s(this,fV,null);s(this,gV,null);s(this,bV,null);s(this,dV,null);s(this,cV,null);s(this,hV,null)}get height(){return this[D]||(this[D]=new k(h,this[y],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[D]}get in1(){return this[mt]||(this[mt]=new at(h,this[y],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[mt]}get kernelUnitLengthX(){return this[Fo]||(this[Fo]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:t=>this.setAttribute("kernelUnitLengthX",t)})),this[Fo]}get kernelUnitLengthY(){return this[Do]||(this[Do]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:t=>this.setAttribute("kernelUnitLengthY",t)})),this[Do]}get result(){return this[rt]||(this[rt]=new at(h,this[y],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[rt]}get specularConstant(){return this[Nd]||(this[Nd]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("specularConstant"),setAttribute:t=>this.setAttribute("specularConstant",t),defaultValue:1})),this[Nd]}get specularExponent(){return this[Tn]||(this[Tn]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("specularExponent"),setAttribute:t=>this.setAttribute("specularExponent",t),defaultValue:1})),this[Tn]}get surfaceScale(){return this[En]||(this[En]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("surfaceScale"),setAttribute:t=>this.setAttribute("surfaceScale",t),defaultValue:1})),this[En]}get width(){return this[_]||(this[_]=new k(h,this[y],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[_]}get x(){return this[O]||(this[O]=new k(h,this[y],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[O]}get y(){return this[V]||(this[V]=new k(h,this[y],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[V]}};var AV,TV,NV,LV,CV,kV,MV,RV,OV,Gg=class extends(OV=it,RV=O,MV=V,kV=yo,CV=Ld,LV=Cd,NV=kd,TV=Tn,AV=Md,OV){constructor(){super(...arguments);s(this,RV,null);s(this,MV,null);s(this,kV,null);s(this,CV,null);s(this,LV,null);s(this,NV,null);s(this,TV,null);s(this,AV,null)}get x(){return this[O]||(this[O]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[O]}get y(){return this[V]||(this[V]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[V]}get z(){return this[yo]||(this[yo]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("z"),setAttribute:t=>this.setAttribute("z",t)})),this[yo]}get pointsAtX(){return this[Ld]||(this[Ld]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("pointsAtX"),setAttribute:t=>this.setAttribute("pointsAtX",t)})),this[Ld]}get pointsAtY(){return this[Cd]||(this[Cd]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("pointsAtY"),setAttribute:t=>this.setAttribute("pointsAtY",t)})),this[Cd]}get pointsAtZ(){return this[kd]||(this[kd]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("pointsAtZ"),setAttribute:t=>this.setAttribute("pointsAtZ",t)})),this[kd]}get specularExponent(){return this[Tn]||(this[Tn]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("specularExponent"),setAttribute:t=>this.setAttribute("specularExponent",t),defaultValue:1})),this[Tn]}get limitingConeAngle(){return this[Md]||(this[Md]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("limitingConeAngle"),setAttribute:t=>this.setAttribute("limitingConeAngle",t)})),this[Md]}};var VV,IV,FV,DV,_V,BV,UV,Hg=class extends(UV=it,BV=D,_V=mt,DV=rt,FV=_,IV=O,VV=V,UV){constructor(){super(...arguments);s(this,BV,null);s(this,_V,null);s(this,DV,null);s(this,FV,null);s(this,IV,null);s(this,VV,null)}get height(){return this[D]||(this[D]=new k(h,this[y],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[D]}get in1(){return this[mt]||(this[mt]=new at(h,this[y],{getAttribute:()=>this.getAttribute("in"),setAttribute:t=>this.setAttribute("in",t)})),this[mt]}get result(){return this[rt]||(this[rt]=new at(h,this[y],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[rt]}get width(){return this[_]||(this[_]=new k(h,this[y],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[_]}get x(){return this[O]||(this[O]=new k(h,this[y],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[O]}get y(){return this[V]||(this[V]=new k(h,this[y],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[V]}};var GV,HV,$V,qV,WV,jV,zV,XV,YV,KV,JV,ZV,Ws=class extends(ZV=it,JV=Rd,KV=Od,YV=D,XV=Vd,zV=rt,jV=Id,WV=Fd,qV=Xt,$V=_,HV=O,GV=V,ZV){constructor(){super(...arguments);s(this,JV,null);s(this,KV,null);s(this,YV,null);s(this,XV,null);s(this,zV,null);s(this,jV,null);s(this,WV,null);s(this,qV,null);s(this,$V,null);s(this,HV,null);s(this,GV,null)}get baseFrequencyX(){return this[Rd]||(this[Rd]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("baseFrequencyX"),setAttribute:t=>this.setAttribute("baseFrequencyX",t)})),this[Rd]}get baseFrequencyY(){return this[Od]||(this[Od]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("baseFrequencyY"),setAttribute:t=>this.setAttribute("baseFrequencyY",t)})),this[Od]}get height(){return this[D]||(this[D]=new k(h,this[y],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[D]}get numOctaves(){return this[Vd]||(this[Vd]=new ps(h,this[y],{getAttribute:()=>this.getAttribute("numOctaves"),setAttribute:t=>this.setAttribute("numOctaves",t)})),this[Vd]}get result(){return this[rt]||(this[rt]=new at(h,this[y],{getAttribute:()=>this.getAttribute("result"),setAttribute:t=>this.setAttribute("result",t)})),this[rt]}get seed(){return this[Id]||(this[Id]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("seed"),setAttribute:t=>this.setAttribute("seed",t)})),this[Id]}get stitchTiles(){return this[Fd]||(this[Fd]=new Tt(h,this[y],{getAttribute:()=>this.getAttribute("stitchTiles"),setAttribute:t=>this.setAttribute("stitchTiles",t),values:["stitch","noStitch"],defaultValue:"stitch"})),this[Fd]}get type(){return this[Xt]||(this[Xt]=new Tt(h,this[y],{getAttribute:()=>this.getAttribute("type"),setAttribute:t=>this.setAttribute("type",t),values:["fractalNoise","turbulence"],defaultValue:"turbulence"})),this[Xt]}get width(){return this[_]||(this[_]=new k(h,this[y],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[_]}get x(){return this[O]||(this[O]=new k(h,this[y],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[O]}get y(){return this[V]||(this[V]=new k(h,this[y],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[V]}};s(Ws,"SVG_TURBULENCE_TYPE_UNKNOWN",0),s(Ws,"SVG_TURBULENCE_TYPE_FRACTALNOISE",1),s(Ws,"SVG_TURBULENCE_TYPE_TURBULENCE",2),s(Ws,"SVG_STITCHTYPE_UNKNOWN",0),s(Ws,"SVG_STITCHTYPE_STITCH",1),s(Ws,"SVG_STITCHTYPE_NOSTITCH",2);var QV,tI,eI,rI,oI,iI,sI,nI,$g=class extends(nI=it,sI=kt,iI=Hc,oI=$c,rI=O,eI=V,tI=_,QV=D,nI){constructor(){super(...arguments);s(this,sI,null);s(this,iI,null);s(this,oI,null);s(this,rI,null);s(this,eI,null);s(this,tI,null);s(this,QV,null)}get href(){return this[kt]||(this[kt]=new at(h,this[y],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[kt]}get filterUnits(){return this[Hc]||(this[Hc]=new Tt(h,this[y],{getAttribute:()=>this.getAttribute("filterUnits"),setAttribute:t=>this.setAttribute("filterUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[Hc]}get primitiveUnits(){return this[$c]||(this[$c]=new Tt(h,this[y],{getAttribute:()=>this.getAttribute("primitiveUnits"),setAttribute:t=>this.setAttribute("primitiveUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[$c]}get height(){return this[D]||(this[D]=new k(h,this[y],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[D]}get width(){return this[_]||(this[_]=new k(h,this[y],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[_]}get x(){return this[O]||(this[O]=new k(h,this[y],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[O]}get y(){return this[V]||(this[V]=new k(h,this[y],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[V]}};var lI,aI,yI,mI,uI,qg=class extends(uI=Te,mI=O,yI=V,aI=_,lI=D,uI){constructor(){super(...arguments);s(this,mI,null);s(this,yI,null);s(this,aI,null);s(this,lI,null)}get height(){return this[D]||(this[D]=new k(h,this[y],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[D]}get width(){return this[_]||(this[_]=new k(h,this[y],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[_]}get x(){return this[O]||(this[O]=new k(h,this[y],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[O]}get y(){return this[V]||(this[V]=new k(h,this[y],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[V]}};var Wg=class extends Te{};var pI,hI,cI,dI,bI,gI,fI,jg=class extends(fI=Te,gI=kt,bI=Or,dI=O,cI=V,hI=_,pI=D,fI){constructor(){super(...arguments);s(this,gI,null);s(this,bI,null);s(this,dI,null);s(this,cI,null);s(this,hI,null);s(this,pI,null)}get crossOrigin(){return this.getAttribute("crossorigin")}set crossOrigin(t){this.setAttribute("crossorigin",t)}get href(){return this[kt]||(this[kt]=new at(h,this[y],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[kt]}get decoding(){let t=this.getAttribute("decoding");switch(t){case"sync":case"async":case"auto":return t;default:return"auto"}}set decoding(t){this.setAttribute("decoding",t)}get preserveAspectRatio(){return this[Or]||(this[Or]=new _i(h,this[y],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:t=>this.setAttribute("preserveAspectRatio",t)})),this[Or]}get height(){return this[D]||(this[D]=new k(h,this[y],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[D]}get width(){return this[_]||(this[_]=new k(h,this[y],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[_]}get x(){return this[O]||(this[O]=new k(h,this[y],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[O]}get y(){return this[V]||(this[V]=new k(h,this[y],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[V]}decode(){return Promise.resolve()}};var SI,PI,wI,xI,EI,zg=class extends(EI=Wr,xI=bn,wI=gn,PI=fn,SI=Sn,EI){constructor(){super(...arguments);s(this,xI,null);s(this,wI,null);s(this,PI,null);s(this,SI,null)}get x1(){return this[bn]||(this[bn]=new k(h,this[y],{getAttribute:()=>this.getAttribute("x1"),setAttribute:t=>this.setAttribute("x1",t)})),this[bn]}get y1(){return this[gn]||(this[gn]=new k(h,this[y],{getAttribute:()=>this.getAttribute("y1"),setAttribute:t=>this.setAttribute("y1",t)})),this[gn]}get x2(){return this[fn]||(this[fn]=new k(h,this[y],{getAttribute:()=>this.getAttribute("x2"),setAttribute:t=>this.setAttribute("x2",t)})),this[fn]}get y2(){return this[Sn]||(this[Sn]=new k(h,this[y],{getAttribute:()=>this.getAttribute("y2"),setAttribute:t=>this.setAttribute("y2",t)})),this[Sn]}};var vI,AI,TI,NI,LI,Ui=class extends(LI=Te,NI=kt,TI=qc,AI=Wc,vI=jc,LI){constructor(){super(...arguments);s(this,NI,null);s(this,TI,null);s(this,AI,null);s(this,vI,null)}get href(){return this[kt]||(this[kt]=new at(h,this[y],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[kt]}get gradientUnits(){return this[qc]||(this[qc]=new Tt(h,this[y],{getAttribute:()=>this.getAttribute("gradientUnits"),setAttribute:t=>this.setAttribute("gradientUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"objectBoundingBox"})),this[qc]}get gradientTransform(){return this[Wc]||(this[Wc]=new qs(h,this[y],{getAttribute:()=>this.getAttribute("gradientTransform"),setAttribute:t=>this.setAttribute("gradientTransform",t)})),this[Wc]}get spreadMethod(){return this[jc]||(this[jc]=new Tt(h,this[y],{getAttribute:()=>this.getAttribute("spreadMethod"),setAttribute:t=>this.setAttribute("spreadMethod",t),values:["pad","reflect","repeat"],defaultValue:"pad"})),this[jc]}};s(Ui,"SVG_SPREADMETHOD_UNKNOWN",0),s(Ui,"SVG_SPREADMETHOD_PAD",1),s(Ui,"SVG_SPREADMETHOD_REFLECT",2),s(Ui,"SVG_SPREADMETHOD_REPEAT",3);var CI,kI,MI,RI,OI,Xg=class extends(OI=Ui,RI=bn,MI=gn,kI=fn,CI=Sn,OI){constructor(){super(...arguments);s(this,RI,null);s(this,MI,null);s(this,kI,null);s(this,CI,null)}get x1(){return this[bn]||(this[bn]=new k(h,this[y],{getAttribute:()=>this.getAttribute("x1"),setAttribute:t=>this.setAttribute("x1",t)})),this[bn]}get y1(){return this[gn]||(this[gn]=new k(h,this[y],{getAttribute:()=>this.getAttribute("y1"),setAttribute:t=>this.setAttribute("y1",t)})),this[gn]}get x2(){return this[fn]||(this[fn]=new k(h,this[y],{getAttribute:()=>this.getAttribute("x2"),setAttribute:t=>this.setAttribute("x2",t)})),this[fn]}get y2(){return this[Sn]||(this[Sn]=new k(h,this[y],{getAttribute:()=>this.getAttribute("y2"),setAttribute:t=>this.setAttribute("y2",t)})),this[Sn]}};var VI,II,FI,DI,_I;_I=y,DI=N,FI=E,II=ue,VI=pe;var su=class{constructor(e,t,r){s(this,_I);s(this,DI);s(this,FI);s(this,II,null);s(this,VI,null);if(e!==h)throw new TypeError("Illegal constructor");this[y]=t,this[N]=r.getAttribute,this[E]=r.setAttribute}get animVal(){return this[pe]||(this[pe]=new ti(h,this[y],{readOnly:!0,getAttribute:this[N]})),this[pe]}set animVal(e){}get baseVal(){return this[ue]||(this[ue]=new ti(h,this[y],{getAttribute:this[N],setAttribute:this[E]})),this[ue]}set baseVal(e){}};var BI,UI,GI,HI,$I,qI,WI,jI,zI,XI,js=class extends(XI=it,zI=Rc,jI=Oc,WI=Vc,qI=Ic,$I=Fc,HI=Dc,GI=_c,UI=mn,BI=Or,XI){constructor(){super(...arguments);s(this,"SVG_MARKER_ORIENT_UNKNOWN",0);s(this,"SVG_MARKER_ORIENT_AUTO",1);s(this,"SVG_MARKER_ORIENT_ANGLE",2);s(this,zI,null);s(this,jI,null);s(this,WI,null);s(this,qI,null);s(this,$I,null);s(this,HI,null);s(this,GI,null);s(this,UI,null);s(this,BI,null)}get markerUnits(){return this[Rc]||(this[Rc]=new Tt(h,this[y],{getAttribute:()=>this.getAttribute("markerUnits"),setAttribute:t=>this.setAttribute("markerUnits",t),values:["userSpaceOnUse","strokeWidth"],defaultValue:"strokeWidth"})),this[Rc]}get markerWidth(){return this[Oc]||(this[Oc]=new k(h,this[y],{getAttribute:()=>this.getAttribute("markerWidth"),setAttribute:t=>this.setAttribute("markerWidth",t)})),this[Oc]}get markerHeight(){return this[Vc]||(this[Vc]=new k(h,this[y],{getAttribute:()=>this.getAttribute("markerHeight"),setAttribute:t=>this.setAttribute("markerHeight",t)})),this[Vc]}get orientType(){return this[Ic]||(this[Ic]=new Tt(h,this[y],{getAttribute:()=>this.getAttribute("orient"),setAttribute:t=>this.setAttribute("orient",t),values:["auto",null],defaultValue:"auto"})),this[Ic]}get orientAngle(){return this[Fc]||(this[Fc]=new su(h,this[y],{getAttribute:()=>this.getAttribute("orient"),setAttribute:t=>this.setAttribute("orient",t)})),this[Fc]}get refX(){return this[Dc]||(this[Dc]=new k(h,this[y],{getAttribute:()=>this.getAttribute("refX"),setAttribute:t=>this.setAttribute("refX",t)})),this[Dc]}get refY(){return this[_c]||(this[_c]=new k(h,this[y],{getAttribute:()=>this.getAttribute("refY"),setAttribute:t=>this.setAttribute("refY",t)})),this[_c]}get viewBox(){return this[mn]||(this[mn]=new la(h,this[y],{getAttribute:()=>this.getAttribute("viewBox"),setAttribute:t=>this.setAttribute("viewBox",t)})),this[mn]}get preserveAspectRatio(){return this[Or]||(this[Or]=new _i(h,this[y],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:t=>this.setAttribute("preserveAspectRatio",t)})),this[Or]}setOrientToAuto(){this.setAttribute("orient","auto")}setOrientToAngle(t){this.setAttribute("orient",t.valueAsString)}};s(js,"SVG_MARKER_ORIENT_UNKNOWN",0),s(js,"SVG_MARKER_ORIENT_AUTO",1),s(js,"SVG_MARKER_ORIENT_ANGLE",2),s(js,"SVG_MARKERUNITS_UNKNOWN",0),s(js,"SVG_MARKERUNITS_USERSPACEONUSE",1),s(js,"SVG_MARKERUNITS_STROKEWIDTH",2);var YI,KI,JI,ZI,QI,tF,eF,Yg=class extends(eF=it,tF=Uc,QI=Gc,ZI=O,JI=V,KI=_,YI=D,eF){constructor(){super(...arguments);s(this,tF,null);s(this,QI,null);s(this,ZI,null);s(this,JI,null);s(this,KI,null);s(this,YI,null)}get maskUnits(){return this[Uc]||(this[Uc]=new Tt(h,this[y],{getAttribute:()=>this.getAttribute("maskUnits"),setAttribute:t=>this.setAttribute("maskUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[Uc]}get maskContentUnits(){return this[Gc]||(this[Gc]=new Tt(h,this[y],{getAttribute:()=>this.getAttribute("maskContentUnits"),setAttribute:t=>this.setAttribute("maskContentUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[Gc]}get width(){return this[_]||(this[_]=new k(h,this[y],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[_]}get height(){return this[D]||(this[D]=new k(h,this[y],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[D]}get x(){return this[O]||(this[O]=new k(h,this[y],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[O]}get y(){return this[V]||(this[V]=new k(h,this[y],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[V]}};var Kg=class extends it{};var rF,oF,Jg=class extends(oF=it,rF=kt,oF){constructor(){super(...arguments);s(this,rF,null)}get href(){return this[kt]||(this[kt]=new at(h,this[y],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[kt]}};var Zg=class extends Wr{};var iF,sF,nF,lF,aF,yF,mF,uF,pF,Qg=class extends(pF=it,uF=kt,mF=zc,yF=Xc,aF=Yc,lF=O,nF=V,sF=_,iF=D,pF){constructor(){super(...arguments);s(this,uF,null);s(this,mF,null);s(this,yF,null);s(this,aF,null);s(this,lF,null);s(this,nF,null);s(this,sF,null);s(this,iF,null)}get href(){return this[kt]||(this[kt]=new at(h,this[y],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[kt]}get patternUnits(){return this[zc]||(this[zc]=new Tt(h,this[y],{getAttribute:()=>this.getAttribute("patternUnits"),setAttribute:t=>this.setAttribute("patternUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"objectBoundingBox"})),this[zc]}get patternContentUnits(){return this[Xc]||(this[Xc]=new Tt(h,this[y],{getAttribute:()=>this.getAttribute("patternContentUnits"),setAttribute:t=>this.setAttribute("patternContentUnits",t),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[Xc]}get patternTransform(){return this[Yc]||(this[Yc]=new qs(h,this[y],{getAttribute:()=>this.getAttribute("patternTransform"),setAttribute:t=>this.setAttribute("patternTransform",t)})),this[Yc]}get width(){return this[_]||(this[_]=new k(h,this[y],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[_]}get height(){return this[D]||(this[D]=new k(h,this[y],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[D]}get x(){return this[O]||(this[O]=new k(h,this[y],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[O]}get y(){return this[V]||(this[V]=new k(h,this[y],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[V]}};var WU=/[\t\f\n\r, ]+/,hF,cF,dF,bF,gF,zs=class l{constructor(e,t,r){s(this,gF);s(this,bF);s(this,dF);s(this,cF,!1);s(this,hF,{items:[],attributeValue:""});if(e!==h)throw new TypeError("Illegal constructor");this[y]=t,this[K]=!!r.readOnly,this[N]=r.getAttribute,this[E]=r.setAttribute;let o=new xe(this,[l]);return new Proxy(this,{get:(i,n)=>{if(n==="length"||n==="numberOfItems")return i[z]().length;if(n in i||typeof n=="symbol")return o.bind(n),i[n];let a=Number(n);if(!isNaN(a))return i[z]()[a]},set(i,n,a){if(o.bind(n),typeof n=="symbol")return i[n]=a,!0;let m=Number(n);return isNaN(m)&&(i[n]=a),!0},deleteProperty(i,n){if(typeof n=="symbol")return delete i[n],!0;let a=Number(n);return isNaN(a)&&delete i[n],!0},ownKeys(i){return Object.keys(i[z]())},has(i,n){if(n in i)return!0;if(typeof n=="symbol")return!1;let a=Number(n);return!isNaN(a)&&a>=0&&a<i[z]().length},defineProperty(i,n,a){return o.preventBinding(n),n in i?(Object.defineProperty(i,n,a),!0):!1},getOwnPropertyDescriptor(i,n){if(n in i||typeof n=="symbol")return;let a=Number(n),m=i[z]();if(!isNaN(a)&&m[a])return{value:m[a],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[z]().length}get numberOfItems(){return this[z]().length}[(gF=y,bF=N,dF=E,cF=K,hF=$,Symbol.iterator)](){return this[z]().values()}clear(){if(this[K])throw new this[y].TypeError("Failed to execute 'clear' on 'SVGPointList': The object is read-only.");for(let e of this[$].items)e[N]=null,e[E]=null;this[$].items=[],this[$].attributeValue="",this[E]("")}initialize(e){if(this[K])throw new this[y].TypeError("Failed to execute 'initialize' on 'SVGPointList': The object is read-only.");if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'initialize' on 'SVGPointList': 1 arguments required, but only ${arguments.length} present.`);if(!(e instanceof Nr))throw new this[y].TypeError("Failed to execute 'appendItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");for(let t of this[$].items)t[N]=null,t[E]=null;return e[N]=()=>e[I],e[E]=()=>{this[$].attributeValue=this[z]().map(t=>t[I]||"0 0").join(" "),this[E](this[$].attributeValue)},this[$].items=[e],this[$].attributeValue=e[I],this[E](e[I]||""),e}getItem(e){let t=this[z]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),t[e]?t[e]:null}insertItemBefore(e,t){if(this[K])throw new this[y].TypeError("Failed to execute 'insertItemBefore' on 'SVGPointList': The object is read-only.");if(arguments.length<2)throw new this[y].TypeError(`Failed to execute 'insertItemBefore' on 'SVGPointList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof Nr))throw new this[y].TypeError("Failed to execute 'insertItemBefore' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let r=this[z](),o=r.indexOf(e);return o!==-1&&r.splice(o,1),t<0?t=0:t>r.length&&(t=r.length),r.splice(t,0,e),e[N]=()=>e[I],e[E]=()=>{this[$].attributeValue=this[z]().map(i=>i[I]||"0 0").join(" "),this[E](this[$].attributeValue)},this[$].attributeValue=r.map(i=>i[I]||"0 0").join(" "),this[E](this[$].attributeValue),e}replaceItem(e,t){if(this[K])throw new this[y].TypeError("Failed to execute 'replaceItem' on 'SVGPointList': The object is read-only.");if(arguments.length<2)throw new this[y].TypeError(`Failed to execute 'replaceItem' on 'SVGPointList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof Nr))throw new this[y].TypeError("Failed to execute 'replaceItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let r=this[z](),o=r.indexOf(e);if(o===t)return e;o!==-1&&r.splice(o,1),t<0?t=0:t>=r.length&&(t=r.length-1),r[t]&&(r[t][N]=null,r[t][E]=null);let i=r[t];return r[t]=e,e[N]=()=>e[I],e[E]=()=>{this[$].attributeValue=this[z]().map(n=>n[I]||"0 0").join(" "),this[E](this[$].attributeValue)},this[$].attributeValue=r.map(n=>n[I]||"0 0").join(" "),this[E](this[$].attributeValue),i}removeItem(e){if(this[K])throw new this[y].TypeError("Failed to execute 'removeItem' on 'SVGPointList': The object is read-only.");if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'removeItem' on 'SVGPointList': 1 argument required, but only ${arguments.length} present.`);let t=this[z]();if(e=Number(e),isNaN(e)&&(e=0),e>=t.length)throw new this[y].DOMException(`Failed to execute 'removeItem' on 'SVGPointList': The index provided (${e}) is greater than the maximum bound.`,A.indexSizeError);if(e<0)throw new this[y].DOMException(`Failed to execute 'removeItem' on 'SVGPointList': The index provided (${e}) is negative.`,A.indexSizeError);let r=t[e];return r&&(r[N]=null,r[E]=null),t.splice(e,1),this[E](t.map(o=>o[I]||"0 0").join(" ")),r}appendItem(e){if(this[K])throw new this[y].TypeError("Failed to execute 'appendItem' on 'SVGPointList': The object is read-only.");if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'appendItem' on 'SVGPointList': 1 argument required, but only ${arguments.length} present.`);if(!(e instanceof Nr))throw new this[y].TypeError("Failed to execute 'appendItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let t=this[z](),r=t.indexOf(e);return r!==-1&&t.splice(r,1),t.push(e),e[N]=()=>e[I],e[E]=()=>{this[$].attributeValue=this[z]().map(o=>o[I]||"0 0").join(" "),this[E](this[$].attributeValue)},this[$].attributeValue=t.map(o=>o[I]||"0 0").join(" "),this[E](this[$].attributeValue),e}[z](){let e=this[N]()??"",t=this[$];if(t.attributeValue===e)return t.items;if(t.items.length)for(let i of t.items)i[N]=null,i[E]=null;let r=[],o=e.trim();if(o){let i=o.split(WU);for(let n=0,a=i.length;n<a;n+=2){let m=parseFloat(i[n]),p=i[n+1]!==void 0?" "+parseFloat(i[n+1]):"",b=new Nr(h,this[y],{readOnly:this[K],getAttribute:()=>b[I],setAttribute:()=>{this[$].attributeValue=this[z]().map(d=>d[I]||"0 0").join(" "),this[E](this[$].attributeValue)}});b[I]=`${m}${p}`,r.push(b)}}return t.attributeValue=e,t.items=r,r}};var fF,SF,PF,tf=class extends(PF=Wr,SF=un,fF=pn,PF){constructor(){super(...arguments);s(this,SF,null);s(this,fF,null)}get animatedPoints(){return this[un]||(this[un]=new zs(h,this[y],{readOnly:!0,getAttribute:()=>this.getAttribute("points"),setAttribute:()=>{}})),this[un]}get points(){return this[pn]||(this[pn]=new zs(h,this[y],{getAttribute:()=>this.getAttribute("points"),setAttribute:t=>this.setAttribute("points",t)})),this[pn]}};var wF,xF,EF,ef=class extends(EF=Wr,xF=un,wF=pn,EF){constructor(){super(...arguments);s(this,xF,null);s(this,wF,null)}get animatedPoints(){return this[un]||(this[un]=new zs(h,this[y],{readOnly:!0,getAttribute:()=>this.getAttribute("points"),setAttribute:()=>{}})),this[un]}get points(){return this[pn]||(this[pn]=new zs(h,this[y],{getAttribute:()=>this.getAttribute("points"),setAttribute:t=>this.setAttribute("points",t)})),this[pn]}};var vF,AF,TF,NF,LF,CF,rf=class extends(CF=Ui,LF=Oo,NF=Vo,TF=dn,AF=Kc,vF=Jc,CF){constructor(){super(...arguments);s(this,LF,null);s(this,NF,null);s(this,TF,null);s(this,AF,null);s(this,vF,null)}get cx(){return this[Oo]||(this[Oo]=new k(h,this[y],{getAttribute:()=>this.getAttribute("cx"),setAttribute:t=>this.setAttribute("cx",t)})),this[Oo]}get cy(){return this[Vo]||(this[Vo]=new k(h,this[y],{getAttribute:()=>this.getAttribute("cy"),setAttribute:t=>this.setAttribute("cy",t)})),this[Vo]}get r(){return this[dn]||(this[dn]=new k(h,this[y],{getAttribute:()=>this.getAttribute("r"),setAttribute:t=>this.setAttribute("r",t)})),this[dn]}get fx(){return this[Kc]||(this[Kc]=new k(h,this[y],{getAttribute:()=>this.getAttribute("fx"),setAttribute:t=>this.setAttribute("fx",t)})),this[Kc]}get fy(){return this[Jc]||(this[Jc]=new k(h,this[y],{getAttribute:()=>this.getAttribute("fy"),setAttribute:t=>this.setAttribute("fy",t)})),this[Jc]}};var kF,MF,RF,OF,VF,IF,FF,of=class extends(FF=Wr,IF=O,VF=V,OF=_,RF=D,MF=hn,kF=cn,FF){constructor(){super(...arguments);s(this,IF,null);s(this,VF,null);s(this,OF,null);s(this,RF,null);s(this,MF,null);s(this,kF,null)}get x(){return this[O]||(this[O]=new k(h,this[y],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[O]}get y(){return this[V]||(this[V]=new k(h,this[y],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[V]}get height(){return this[D]||(this[D]=new k(h,this[y],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[D]}get width(){return this[_]||(this[_]=new k(h,this[y],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[_]}get rx(){return this[hn]||(this[hn]=new k(h,this[y],{getAttribute:()=>this.getAttribute("rx"),setAttribute:t=>this.setAttribute("rx",t)})),this[hn]}get ry(){return this[cn]||(this[cn]=new k(h,this[y],{getAttribute:()=>this.getAttribute("ry"),setAttribute:t=>this.setAttribute("ry",t)})),this[cn]}};var DF,_F,sf=class extends(_F=Te,DF=kt,_F){constructor(){super(...arguments);s(this,DF,null)}get href(){return this[kt]||(this[kt]=new at(h,this[y],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[kt]}get type(){return this.getAttribute("type")||""}set type(t){this.setAttribute("type",t)}};var nf=class extends Bi{};var BF,UF,lf=class extends(UF=it,BF=Pn,UF){constructor(){super(...arguments);s(this,BF,null)}get offset(){return this[Pn]||(this[Pn]=new ut(h,this[y],{getAttribute:()=>this.getAttribute("offset"),setAttribute:t=>this.setAttribute("offset",t)})),this[Pn]}};var GF,HF,$F,af=class extends it{constructor(){super(...arguments);s(this,$F,null);s(this,HF,this);s(this,GF,!1)}get media(){return this.getAttribute("media")||"all"}set media(t){this.setAttribute("media",t)}get type(){return this.getAttribute("type")||"text/css"}set type(t){this.setAttribute("type",t)}get title(){return this.getAttribute("title")||""}set title(t){this.setAttribute("title",t)}get disabled(){return this[Ra]}set disabled(t){this[Ra]=!!t}get sheet(){return this[st]?(this[ur]||(this[ur]=new this[T][y].CSSStyleSheet,this[ur].replaceSync(this.textContent)),this[ur]):null}[($F=ur,HF=Br,GF=Ra,Mr)](){super[Mr](),this[ur]=null}[La](){this[ur]&&this[ur].replaceSync(this.textContent)}};var yf=class extends Te{};var mf=class extends Te{};var qF,WF,jF,rl=class extends(jF=Te,WF=Zc,qF=Qc,jF){constructor(){super(...arguments);s(this,WF,null);s(this,qF,null)}get textLength(){return this[Zc]||(this[Zc]=new k(h,this[y],{getAttribute:()=>this.getAttribute("textLength"),setAttribute:t=>this.setAttribute("textLength",t)})),this[Zc]}get lengthAdjust(){return this[Qc]||(this[Qc]=new Tt(h,this[y],{getAttribute:()=>this.getAttribute("lengthAdjust"),setAttribute:t=>this.setAttribute("lengthAdjust",t),values:["spacing","spacingAndGlyphs"],defaultValue:"spacing"})),this[Qc]}getNumberOfChars(){return 0}getComputedTextLength(){return 0}getSubStringLength(t,r){return 0}getStartPositionOfChar(t){return new Nr(h,this[y])}getEndPositionOfChar(t){return new Nr(h,this[y])}getExtentOfChar(t){return new ys(h,this[y])}getRotationOfChar(t){return 0}getCharNumAtPosition(t){return 0}};s(rl,"LENGTHADJUST_UNKNOWN",0),s(rl,"LENGTHADJUST_SPACING",1),s(rl,"LENGTHADJUST_SPACINGANDGLYPHS",2);var jU=/[\t\f\n\r, ]+/,zF,XF,YF,KF,JF,Gy=class l{constructor(e,t,r){s(this,JF);s(this,KF);s(this,YF);s(this,XF,!1);s(this,zF,{items:[],attributeValue:""});if(e!==h)throw new TypeError("Illegal constructor");this[y]=t,this[K]=!!r.readOnly,this[N]=r.getAttribute,this[E]=r.setAttribute;let o=new xe(this,[l]);return new Proxy(this,{get:(i,n)=>{if(n==="length"||n==="numberOfItems")return i[z]().length;if(n in i||typeof n=="symbol")return o.bind(n),i[n];let a=Number(n);if(!isNaN(a))return i[z]()[a]},set(i,n,a){if(o.bind(n),typeof n=="symbol")return i[n]=a,!0;let m=Number(n);return isNaN(m)&&(i[n]=a),!0},deleteProperty(i,n){if(typeof n=="symbol")return delete i[n],!0;let a=Number(n);return isNaN(a)&&delete i[n],!0},ownKeys(i){return Object.keys(i[z]())},has(i,n){if(n in i)return!0;if(typeof n=="symbol")return!1;let a=Number(n);return!isNaN(a)&&a>=0&&a<i[z]().length},defineProperty(i,n,a){return o.preventBinding(n),n in i?(Object.defineProperty(i,n,a),!0):!1},getOwnPropertyDescriptor(i,n){if(n in i||typeof n=="symbol")return;let a=Number(n),m=i[z]();if(!isNaN(a)&&m[a])return{value:m[a],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[z]().length}get numberOfItems(){return this[z]().length}[(JF=y,KF=N,YF=E,XF=K,zF=$,Symbol.iterator)](){return this[z]().values()}clear(){this[E]("")}initialize(e){if(this[K])throw new this[y].TypeError("Failed to execute 'initialize' on 'SVGLengthList': The object is read-only.");if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'initialize' on 'SVGLengthList': 1 arguments required, but only ${arguments.length} present.`);for(let t of this[$].items)t[N]=null,t[E]=null;return e[N]=()=>e[I],e[E]=()=>{this[$].attributeValue=this[z]().map(t=>t[I]??"0").join(" "),this[E](this[$].attributeValue)},this[$].items=[e],this[$].attributeValue=e[I],this[E](e[I]||""),e}getItem(e){let t=this[z]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),t[e]?t[e]:null}insertItemBefore(e,t){if(this[K])throw new this[y].TypeError("Failed to execute 'insertItemBefore' on 'SVGLengthList': The object is read-only.");if(arguments.length<2)throw new this[y].TypeError(`Failed to execute 'insertItemBefore' on 'SVGLengthList': 2 arguments required, but only ${arguments.length} present.`);let r=this[z](),o=r.indexOf(e);return o!==-1&&r.splice(o,1),t<0?t=0:t>r.length&&(t=r.length),r.splice(t,0,e),e[N]=()=>e[I],e[E]=()=>{this[$].attributeValue=this[z]().map(i=>i[I]??"0").join(" "),this[E](this[$].attributeValue)},this[$].attributeValue=r.map(i=>i[I]??"0").join(" "),this[E](this[$].attributeValue),e}replaceItem(e,t){if(this[K])throw new this[y].TypeError("Failed to execute 'replaceItem' on 'SVGLengthList': The object is read-only.");if(arguments.length<2)throw new this[y].TypeError(`Failed to execute 'replaceItem' on 'SVGLengthList': 2 arguments required, but only ${arguments.length} present.`);let r=this[z](),o=r.indexOf(e);if(o===t)return e;o!==-1&&r.splice(o,1),t<0?t=0:t>=r.length&&(t=r.length-1),r[t]&&(r[t][N]=null,r[t][E]=null);let i=r[t];return r[t]=e,e[N]=()=>e[I],e[E]=()=>{this[$].attributeValue=this[z]().map(n=>n[I]??"0").join(" "),this[E](this[$].attributeValue)},this[$].attributeValue=r.map(n=>n[I]??"0").join(" "),this[E](this[$].attributeValue),i}removeItem(e){if(this[K])throw new this[y].TypeError("Failed to execute 'removeItem' on 'SVGLengthList': The object is read-only.");if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'removeItem' on 'SVGLengthList': 1 argument required, but only ${arguments.length} present.`);let t=this[z]();if(e=Number(e),isNaN(e)&&(e=0),e>=t.length)throw new this[y].DOMException(`Failed to execute 'removeItem' on 'SVGLengthList': The index provided (${e}) is greater than the maximum bound.`,A.indexSizeError);if(e<0)throw new this[y].DOMException(`Failed to execute 'removeItem' on 'SVGLengthList': The index provided (${e}) is negative.`,A.indexSizeError);let r=t[e];return r&&(r[N]=null,r[E]=null),t.splice(e,1),this[E](t.map(o=>o[I]??"0").join(" ")),r}appendItem(e){if(this[K])throw new this[y].TypeError("Failed to execute 'appendItem' on 'SVGLengthList': The object is read-only.");if(arguments.length<1)throw new this[y].TypeError(`Failed to execute 'appendItem' on 'SVGLengthList': 1 argument required, but only ${arguments.length} present.`);let t=this[z](),r=t.indexOf(e);return r!==-1&&t.splice(r,1),t.push(e),e[N]=()=>e[I],e[E]=()=>{this[$].attributeValue=this[z]().map(o=>o[I]??"0").join(" "),this[E](this[$].attributeValue)},this[$].attributeValue=t.map(o=>o[I]??"0").join(" "),this[E](this[$].attributeValue),e}[z](){let e=this[N]()??"",t=this[$];if(t.attributeValue===e)return t.items;if(t.items.length)for(let i of t.items)i[N]=null,i[E]=null;let r=[],o=e.trim();if(o){let i=o.split(jU);for(let n=0,a=i.length;n<a;n++){let m=new ar(h,this[y],{readOnly:this[K],getAttribute:()=>m[I],setAttribute:p=>{m[I]=p;let b=r.map(d=>d[I]??"0").join(" ");t.attributeValue=b,this[E](b)}});m[I]=i[n],r.push(m)}}return t.attributeValue=e,t.items=r,r}};var ZF,QF,tD,eD,rD;rD=y,eD=N,tD=E,QF=ue,ZF=pe;var ol=class{constructor(e,t,r){s(this,rD);s(this,eD);s(this,tD);s(this,QF,null);s(this,ZF,null);if(e!==h)throw new TypeError("Illegal constructor");this[y]=t,this[N]=r.getAttribute,this[E]=r.setAttribute}get animVal(){return this[pe]||(this[pe]=new Gy(h,this[y],{readOnly:!0,getAttribute:this[N],setAttribute:this[E]})),this[pe]}set animVal(e){}get baseVal(){return this[ue]||(this[ue]=new Gy(h,this[y],{getAttribute:this[N],setAttribute:this[E]})),this[ue]}set baseVal(e){}};var oD,iD,sD,nD,lD,aD,ua=class extends(aD=rl,lD=O,nD=V,sD=_o,iD=Bo,oD=Gd,aD){constructor(){super(...arguments);s(this,lD,null);s(this,nD,null);s(this,sD,null);s(this,iD,null);s(this,oD,null)}get x(){return this[O]||(this[O]=new ol(h,this[y],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[O]}get y(){return this[V]||(this[V]=new ol(h,this[y],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[V]}get dx(){return this[_o]||(this[_o]=new ol(h,this[y],{getAttribute:()=>this.getAttribute("dx"),setAttribute:t=>this.setAttribute("dx",t)})),this[_o]}get dy(){return this[Bo]||(this[Bo]=new ol(h,this[y],{getAttribute:()=>this.getAttribute("dy"),setAttribute:t=>this.setAttribute("dy",t)})),this[Bo]}get rotate(){return this[Gd]||(this[Gd]=new ei(h,this[y],{getAttribute:()=>this.getAttribute("rotate"),setAttribute:t=>this.setAttribute("rotate",t)})),this[Gd]}};var uf=class extends ua{};var yD,mD,uD,pD,hD,Xs=class extends(hD=rl,pD=kt,uD=od,mD=Sl,yD=id,hD){constructor(){super(...arguments);s(this,pD,null);s(this,uD,null);s(this,mD,null);s(this,yD,null)}get href(){return this[kt]||(this[kt]=new at(h,this[y],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[kt]}get startOffset(){return this[od]||(this[od]=new k(h,this[y],{getAttribute:()=>this.getAttribute("startOffset"),setAttribute:t=>this.setAttribute("startOffset",t)})),this[od]}get method(){return this[Sl]||(this[Sl]=new Tt(h,this[y],{getAttribute:()=>this.getAttribute("method"),setAttribute:t=>this.setAttribute("method",t),values:["align","stretch"],defaultValue:"align"})),this[Sl]}get spacing(){return this[id]||(this[id]=new Tt(h,this[y],{getAttribute:()=>this.getAttribute("spacing"),setAttribute:t=>this.setAttribute("spacing",t),values:["auto","exact"],defaultValue:"exact"})),this[id]}};s(Xs,"TEXTPATH_METHODTYPE_UNKNOWN",0),s(Xs,"TEXTPATH_METHODTYPE_ALIGN",1),s(Xs,"TEXTPATH_METHODTYPE_STRETCH",2),s(Xs,"TEXTPATH_SPACINGTYPE_UNKNOWN",0),s(Xs,"TEXTPATH_SPACINGTYPE_AUTO",1),s(Xs,"TEXTPATH_SPACINGTYPE_EXACT",2);var pf=class extends it{};var hf=class extends ua{};var cD,dD,bD,gD,fD,SD,cf=class extends(SD=Te,fD=kt,gD=O,bD=V,dD=_,cD=D,SD){constructor(){super(...arguments);s(this,fD,null);s(this,gD,null);s(this,bD,null);s(this,dD,null);s(this,cD,null)}get href(){return this[kt]||(this[kt]=new at(h,this[y],{getAttribute:()=>this.getAttribute("href"),setAttribute:t=>this.setAttribute("href",t)})),this[kt]}get x(){return this[O]||(this[O]=new k(h,this[y],{getAttribute:()=>this.getAttribute("x"),setAttribute:t=>this.setAttribute("x",t)})),this[O]}get y(){return this[V]||(this[V]=new k(h,this[y],{getAttribute:()=>this.getAttribute("y"),setAttribute:t=>this.setAttribute("y",t)})),this[V]}get width(){return this[_]||(this[_]=new k(h,this[y],{getAttribute:()=>this.getAttribute("width"),setAttribute:t=>this.setAttribute("width",t)})),this[_]}get height(){return this[D]||(this[D]=new k(h,this[y],{getAttribute:()=>this.getAttribute("height"),setAttribute:t=>this.setAttribute("height",t)})),this[D]}};var df=class extends it{};var Hy=class{constructor(e){s(this,"SVG_UNIT_TYPE_UNKNOWN",0);s(this,"SVG_UNIT_TYPE_USERSPACEONUSE",1);s(this,"SVG_UNIT_TYPE_OBJECTBOUNDINGBOX",2);if(e!==h)throw new TypeError("Illegal constructor")}};s(Hy,"SVG_UNIT_TYPE_UNKNOWN",0),s(Hy,"SVG_UNIT_TYPE_USERSPACEONUSE",1),s(Hy,"SVG_UNIT_TYPE_OBJECTBOUNDINGBOX",2);var bf=class{constructor(e){s(this,"window");this.window=e}enqueueReaction(e,t,r){let o=this.window.customElements[fs]?.get(e.localName);if(o&&e[T]===this.window.document)switch(t){case"connectedCallback":if(o.livecycleCallbacks.connectedCallback){let i=o.livecycleCallbacks.connectedCallback?.call(e);if(i instanceof Promise){let n=new ot(this.window).getAsyncTaskManager();if(n){let a=n.startTask();i.then(()=>n.endTask(a)).catch(()=>n.endTask(a))}}}break;case"disconnectedCallback":o.livecycleCallbacks.disconnectedCallback&&o.livecycleCallbacks.disconnectedCallback.call(e);break;case"attributeChangedCallback":o.livecycleCallbacks.attributeChangedCallback&&r?.length&&o.observedAttributes.has(r[0])&&o.livecycleCallbacks.attributeChangedCallback.apply(e,r);break}}};var zh=class extends R{constructor(t,r=null){super(t);s(this,"state");s(this,"hasUAVisualTransition");this.state=r?.state??null,this.hasUAVisualTransition=r?.hasUAVisualTransition??!1}};var gf=class extends R{constructor(t,r=null){super(t,r);s(this,"code");s(this,"reason");s(this,"wasClean");this.code=r?.code??0,this.reason=r?.reason??"",this.wasClean=r?.wasClean??!1}};var $y={setTimeout:globalThis.setTimeout.bind(globalThis),clearTimeout:globalThis.clearTimeout.bind(globalThis),setInterval:globalThis.setInterval.bind(globalThis),clearInterval:globalThis.clearInterval.bind(globalThis),queueMicrotask:globalThis.queueMicrotask.bind(globalThis),setImmediate:globalThis.setImmediate.bind(globalThis),clearImmediate:globalThis.clearImmediate.bind(globalThis)},Zw=setTimeout.toString().includes("new Timeout"),e3=(()=>{try{return new Function("return true;")(),!0}catch{return!1}})(),r3=(()=>{try{return globalThis.Function.$UNFROZEN$=!0,delete globalThis.Function.$UNFROZEN$,!0}catch{return!1}})(),Qw=class{constructor(){throw new TypeError("Illegal constructor")}},US=class{constructor(e){s(this,"callback");this.callback=e}},wD,xD,ED,vD,AD,TD,ND,LD,CD,kD,MD,RD,OD,VD,ID,FD,DD,_D,vt,Xh,Yh,Kh,Jh,Zh,ff,Sf,Pf,tx=class tx extends _t{constructor(t,r){super();s(this,"Node",ft);s(this,"Attr",Qu);s(this,"ShadowRoot",yh);s(this,"ProcessingInstruction",ah);s(this,"Element",dr);s(this,"CharacterData",Ms);s(this,"DocumentType",Dn);s(this,"HTMLAnchorElement",tp);s(this,"HTMLButtonElement",ap);s(this,"HTMLOptGroupElement",_p);s(this,"HTMLOptionElement",zn);s(this,"HTMLElement",B);s(this,"HTMLUnknownElement",nh);s(this,"HTMLTemplateElement",eh);s(this,"HTMLInputElement",vo);s(this,"HTMLSelectElement",zp);s(this,"HTMLTextAreaElement",Bl);s(this,"HTMLImageElement",Ay);s(this,"HTMLStyleElement",Kp);s(this,"HTMLLabelElement",Lp);s(this,"HTMLSlotElement",uw);s(this,"HTMLMetaElement",Vp);s(this,"HTMLMediaElement",$n);s(this,"HTMLAudioElement",gy);s(this,"HTMLVideoElement",lh);s(this,"HTMLBaseElement",op);s(this,"HTMLDialogElement",cp);s(this,"HTMLScriptElement",jp);s(this,"HTMLLinkElement",Mp);s(this,"HTMLIFrameElement",Np);s(this,"HTMLFormElement",xp);s(this,"HTMLUListElement",sh);s(this,"HTMLTrackElement",ih);s(this,"HTMLTableRowElement",th);s(this,"HTMLTitleElement",oh);s(this,"HTMLTimeElement",rh);s(this,"HTMLTableSectionElement",_s);s(this,"HTMLTableCellElement",Jp);s(this,"HTMLTableElement",Qp);s(this,"HTMLSpanElement",Yp);s(this,"HTMLSourceElement",Xp);s(this,"HTMLQuoteElement",qp);s(this,"HTMLProgressElement",$p);s(this,"HTMLPreElement",Hp);s(this,"HTMLPictureElement",Gp);s(this,"HTMLParamElement",Up);s(this,"HTMLParagraphElement",Bp);s(this,"HTMLOutputElement",Sy);s(this,"HTMLOListElement",Dp);s(this,"HTMLObjectElement",fy);s(this,"HTMLMeterElement",Ip);s(this,"HTMLMenuElement",Op);s(this,"HTMLMapElement",Rp);s(this,"HTMLLIElement",kp);s(this,"HTMLLegendElement",Cp);s(this,"HTMLModElement",Fp);s(this,"HTMLHtmlElement",Tp);s(this,"HTMLHRElement",Ap);s(this,"HTMLHeadElement",Ep);s(this,"HTMLHeadingElement",vp);s(this,"HTMLFieldSetElement",Py);s(this,"HTMLEmbedElement",bp);s(this,"HTMLDListElement",mp);s(this,"HTMLDivElement",dp);s(this,"HTMLDetailsElement",hp);s(this,"HTMLDataListElement",pp);s(this,"HTMLDataElement",up);s(this,"HTMLTableColElement",Zp);s(this,"HTMLTableCaptionElement",Ny);s(this,"HTMLCanvasElement",yp);s(this,"HTMLBRElement",sp);s(this,"HTMLBodyElement",ip);s(this,"HTMLAreaElement",ep);s(this,"SVGSVGElement",jh);s(this,"SVGAnimateElement",fg);s(this,"SVGAnimateMotionElement",Sg);s(this,"SVGAnimateTransformElement",Pg);s(this,"SVGCircleElement",wg);s(this,"SVGClipPathElement",xg);s(this,"SVGDefsElement",Eg);s(this,"SVGDescElement",vg);s(this,"SVGEllipseElement",Ag);s(this,"SVGFEBlendElement",fr);s(this,"SVGFEColorMatrixElement",tl);s(this,"SVGFEComponentTransferElement",Tg);s(this,"SVGFECompositeElement",us);s(this,"SVGFEConvolveMatrixElement",ya);s(this,"SVGFEDiffuseLightingElement",Ng);s(this,"SVGFEDisplacementMapElement",el);s(this,"SVGFEDistantLightElement",Lg);s(this,"SVGFEDropShadowElement",Cg);s(this,"SVGFEFloodElement",kg);s(this,"SVGFEFuncAElement",Mg);s(this,"SVGFEFuncBElement",Rg);s(this,"SVGFEFuncGElement",Og);s(this,"SVGFEFuncRElement",Vg);s(this,"SVGFEGaussianBlurElement",ma);s(this,"SVGFEImageElement",Ig);s(this,"SVGFEMergeElement",Fg);s(this,"SVGFEMergeNodeElement",Dg);s(this,"SVGFEMorphologyElement",Uy);s(this,"SVGFEOffsetElement",_g);s(this,"SVGFEPointLightElement",Bg);s(this,"SVGFESpecularLightingElement",Ug);s(this,"SVGFESpotLightElement",Gg);s(this,"SVGFETileElement",Hg);s(this,"SVGFETurbulenceElement",Ws);s(this,"SVGFilterElement",$g);s(this,"SVGForeignObjectElement",qg);s(this,"SVGGElement",Wg);s(this,"SVGImageElement",jg);s(this,"SVGLineElement",zg);s(this,"SVGLinearGradientElement",Xg);s(this,"SVGMarkerElement",js);s(this,"SVGMaskElement",Yg);s(this,"SVGMetadataElement",Kg);s(this,"SVGMPathElement",Jg);s(this,"SVGPathElement",Zg);s(this,"SVGPatternElement",Qg);s(this,"SVGPolygonElement",tf);s(this,"SVGPolylineElement",ef);s(this,"SVGRadialGradientElement",rf);s(this,"SVGRectElement",of);s(this,"SVGScriptElement",sf);s(this,"SVGSetElement",nf);s(this,"SVGStopElement",lf);s(this,"SVGStyleElement",af);s(this,"SVGSwitchElement",yf);s(this,"SVGSymbolElement",mf);s(this,"SVGTextElement",uf);s(this,"SVGTextPathElement",Xs);s(this,"SVGTitleElement",pf);s(this,"SVGTSpanElement",hf);s(this,"SVGUseElement",cf);s(this,"SVGViewElement",df);s(this,"SVGElement",it);s(this,"SVGAnimationElement",Bi);s(this,"SVGComponentTransferFunctionElement",jr);s(this,"SVGGeometryElement",Wr);s(this,"SVGGradientElement",Ui);s(this,"SVGTextPositioningElement",ua);s(this,"SVGGraphicsElement",Te);s(this,"Event",R);s(this,"UIEvent",Ye);s(this,"CustomEvent",Hu);s(this,"CloseEvent",gf);s(this,"AnimationEvent",Uu);s(this,"KeyboardEvent",In);s(this,"MessageEvent",qu);s(this,"MouseEvent",sr);s(this,"PointerEvent",ty);s(this,"FocusEvent",Ns);s(this,"WheelEvent",Cl);s(this,"InputEvent",$u);s(this,"ErrorEvent",Vn);s(this,"StorageEvent",Qd);s(this,"SubmitEvent",ey);s(this,"ProgressEvent",Ho);s(this,"MediaQueryListEvent",_a);s(this,"HashChangeEvent",Qa);s(this,"ClipboardEvent",Gu);s(this,"TouchEvent",Wu);s(this,"PopStateEvent",zh);s(this,"Touch",Bu);s(this,"AudioProcessingEvent",R);s(this,"BeforeInputEvent",R);s(this,"BeforeUnloadEvent",R);s(this,"BlobEvent",R);s(this,"CompositionEvent",R);s(this,"CSSFontFaceLoadEvent",R);s(this,"DeviceLightEvent",R);s(this,"DeviceMotionEvent",R);s(this,"DeviceOrientationEvent",R);s(this,"DeviceProximityEvent",R);s(this,"DOMTransactionEvent",R);s(this,"DragEvent",R);s(this,"EditingBeforeInputEvent",R);s(this,"FetchEvent",R);s(this,"GamepadEvent",R);s(this,"IDBVersionChangeEvent",R);s(this,"MediaStreamEvent",R);s(this,"MutationEvent",R);s(this,"OfflineAudioCompletionEvent",R);s(this,"OverconstrainedError",R);s(this,"PageTransitionEvent",R);s(this,"PaymentRequestUpdateEvent",R);s(this,"RelatedEvent",R);s(this,"RTCDataChannelEvent",R);s(this,"RTCIdentityErrorEvent",R);s(this,"RTCIdentityEvent",R);s(this,"RTCPeerConnectionIceEvent",R);s(this,"SensorEvent",R);s(this,"SVGEvent",R);s(this,"SVGZoomEvent",R);s(this,"TimeEvent",R);s(this,"TrackEvent",R);s(this,"TransitionEvent",R);s(this,"UserProximityEvent",R);s(this,"WebGLContextEvent",R);s(this,"TextEvent",R);s(this,"Permissions",ly);s(this,"History",xm);s(this,"Navigator",Zu);s(this,"Clipboard",Fa);s(this,"TimeRanges",Dl);s(this,"TextTrackCueList",jl);s(this,"ValidityState",bo);s(this,"MutationRecord",jo);s(this,"IntersectionObserver",Yu);s(this,"IntersectionObserverEntry",Ku);s(this,"CSSStyleDeclaration",uo);s(this,"CSSRule",Me);s(this,"CSSContainerRule",Ga);s(this,"CSSFontFaceRule",$a);s(this,"CSSKeyframeRule",Rn);s(this,"CSSKeyframesRule",Wa);s(this,"CSSMediaRule",za);s(this,"CSSStyleRule",On);s(this,"CSSSupportsRule",Ja);s(this,"CSSConditionRule",Zi);s(this,"CSSGroupingRule",Ji);s(this,"CSSScopeRule",kn);s(this,"DOMRect",is);s(this,"DOMRectReadOnly",my);s(this,"Plugin",yb);s(this,"PluginArray",Am);s(this,"Location",Em);s(this,"CustomElementRegistry",gm);s(this,"ResizeObserver",mh);s(this,"Blob",ce);s(this,"File",Go);s(this,"Storage",Cy);s(this,"MimeType",sb);s(this,"MimeTypeArray",vm);s(this,"NodeFilter",fe);s(this,"HTMLCollection",Ae);s(this,"HTMLFormControlCollection",wy);s(this,"HTMLOptionsCollection",jm);s(this,"NodeList",Li);s(this,"RadioNodeList",qm);s(this,"FileList",_l);s(this,"Screen",zm);s(this,"DOMMatrixReadOnly",ou);s(this,"DOMMatrix",Ao);s(this,"NamedNodeMap",Gn);s(this,"TreeWalker",_n);s(this,"NodeIterator",hy);s(this,"DataTransfer",_u);s(this,"DataTransferItem",Ts);s(this,"DataTransferItemList",Za);s(this,"XMLSerializer",uh);s(this,"ClipboardItem",Cu);s(this,"Selection",dy);s(this,"CSSUnitValue",de);s(this,"SVGAngle",ti);s(this,"SVGAnimatedAngle",su);s(this,"SVGAnimatedBoolean",iu);s(this,"SVGAnimatedEnumeration",Tt);s(this,"SVGAnimatedInteger",ps);s(this,"SVGAnimatedLength",k);s(this,"SVGAnimatedNumber",ut);s(this,"SVGAnimatedNumberList",ei);s(this,"SVGAnimatedPreserveAspectRatio",_i);s(this,"SVGAnimatedRect",la);s(this,"SVGAnimatedString",at);s(this,"SVGAnimatedTransformList",qs);s(this,"SVGLength",ar);s(this,"SVGLengthList",Gy);s(this,"SVGMatrix",Qn);s(this,"SVGNumber",ms);s(this,"SVGNumberList",By);s(this,"SVGPoint",Nr);s(this,"SVGPointList",zs);s(this,"SVGPreserveAspectRatio",gr);s(this,"SVGRect",ys);s(this,"SVGStringList",$s);s(this,"SVGTransform",Tr);s(this,"SVGTransformList",_y);s(this,"SVGAnimatedLengthList",ol);s(this,"SVGUnitTypes",Hy);s(this,"DOMPoint",ru);s(this,"StylePropertyMap",Ya);s(this,"StylePropertyMapReadOnly",Xa);s(this,"MediaList",ja);s(this,"CSSKeywordValue",Nl);s(this,"CSSStyleValue",Ll);s(this,"Window",this.constructor);s(this,"URLSearchParams",ZU);s(this,"WritableStream",PD.Writable);s(this,"ReadableStream",JU);s(this,"TransformStream",PD.Transform);s(this,"PerformanceObserver",QU);s(this,"PerformanceEntry",t3);s(this,"PerformanceObserverEntryList",Qw);s(this,"onload",null);s(this,"onerror",null);s(this,"document");s(this,"customElements",new gm(this));s(this,"window",this);s(this,"globalThis",this);s(this,"performance",performance);s(this,"screenLeft",0);s(this,"screenTop",0);s(this,"screenX",0);s(this,"screenY",0);s(this,"crypto",XU);s(this,"TextEncoder",YU);s(this,"TextDecoder",KU);s(this,"closed",!1);s(this,"console");s(this,"name","");s(this,"Buffer",zU);s(this,_D,[]);s(this,DD);s(this,FD);s(this,ID);s(this,VD);s(this,OD);s(this,RD);s(this,MD);s(this,kD,this);s(this,CD,this);s(this,LD,this);s(this,ND,this);s(this,TD,this);s(this,AD,-1);s(this,vD,new bf(this));s(this,ED,{json:new Map,css:new Map,esm:new Map});s(this,xD,null);s(this,wD,[]);x(this,vt);x(this,Xh,null);x(this,Yh,null);x(this,Kh,null);x(this,Jh,null);x(this,Zh,null);x(this,ff,{timeouts:null});x(this,Sf,[]);x(this,Pf,[]);w(this,vt,t),this[SP](),this.console=t.page.console,this[si]=new mb(t),this[Uf]=new Zu(this),this[Gf]=new zm,this[Hf]=new Cy,this[$f]=new Cy,this[ni]=new Em(u(this,vt),r?.url??"about:blank"),this[We]=new xm(u(this,vt),this),t[We].currentItem.href=r?.url??"about:blank",ot.setWindowBrowserFrameRelation(this,u(this,vt)),this[pc](),dg.extendClasses(this),this.document=new this.HTMLDocument,this.document[fo]=this;let o=t[bt].startTask(()=>this[si].destroy());this[si].waitUntilComplete().then(()=>{t[bt].endTask(o),this.document[va]=uS.complete,this.document.dispatchEvent(new R("readystatechange"));let i=new R("load");i[vi]=this,i[Zr]=this.document,i[to]=be.atTarget,this.dispatchEvent(i),i[vi]=null,i[to]=be.none,i[Va]=!1}),this[bP]()}get self(){return this[Ca]}set self(t){this[Ca]=t}get top(){return this[Yi]}get parent(){return this[Mo]}set parent(t){this[Mo]=t}get frames(){return this[fP]}set frames(t){this[Mo]=t}get location(){return this[ni]}set location(t){this[ni].href=t}get history(){return this[We]}get navigator(){return this[Uf]}get screen(){return this[Gf]}get sessionStorage(){return this[Hf]}get localStorage(){return this[$f]}get opener(){return u(this,vt)[ji]}get scrollX(){return this.document?.documentElement?.scrollLeft??0}get pageXOffset(){return this.scrollX}get scrollY(){return this.document?.documentElement?.scrollTop??0}get pageYOffset(){return this.scrollY}get CSS(){return new jd}get innerWidth(){return u(this,Xh)===null?u(this,vt).page.viewport.width:u(this,Xh)}set innerWidth(t){w(this,Xh,t)}get innerHeight(){return u(this,Yh)===null?u(this,vt).page.viewport.height:u(this,Yh)}set innerHeight(t){w(this,Yh,t)}get outerWidth(){return u(this,Kh)===null?u(this,vt).page.viewport.width:u(this,Kh)}set outerWidth(t){w(this,Kh,t)}get outerHeight(){return u(this,Jh)===null?u(this,vt).page.viewport.height:u(this,Jh)}set outerHeight(t){w(this,Jh,t)}get devicePixelRatio(){return u(this,Zh)===null?u(this,vt).page.viewport.devicePixelRatio:u(this,Zh)}set devicePixelRatio(t){w(this,Zh,t)}getComputedStyle(t){return t[vu]=t[vu]||new uo(h,this,{element:t,computed:!0}),t[vu]}getSelection(){return this.document.getSelection()}scroll(t,r){if(typeof t!="object"&&arguments.length===1)throw new this.TypeError("Failed to execute 'scroll' on 'Window': The provided value is not of type 'ScrollToOptions'.");let o=typeof t=="object"?t:{left:t,top:r};if(o.behavior==="smooth")this.setTimeout(()=>{if(o.top!==void 0){let i=Number(o.top);this.document.documentElement.scrollTop=isNaN(i)?0:i}if(o.left!==void 0){let i=Number(o.left);this.document.documentElement.scrollLeft=isNaN(i)?0:i}});else{if(o.top!==void 0){let i=Number(o.top);this.document.documentElement.scrollTop=isNaN(i)?0:i}if(o.left!==void 0){let i=Number(o.left);this.document.documentElement.scrollLeft=isNaN(i)?0:i}}}scrollTo(t,r){if(typeof t!="object"&&arguments.length===1)throw new this.TypeError("Failed to execute 'scrollTo' on 'Window': The provided value is not of type 'ScrollToOptions'.");this.scroll(t,r)}scrollBy(t,r){if(typeof t!="object"&&arguments.length===1)throw new this.TypeError("Failed to execute 'scrollBy' on 'Window': The provided value is not of type 'ScrollToOptions'.");let o=typeof t=="object"?t:{left:t,top:r};this.scroll({left:this.document.documentElement.scrollLeft+(o.left??0),top:this.document.documentElement.scrollTop+(o.top??0),behavior:o.behavior})}blur(){}focus(){}open(t,r,o){return qb.openPage(u(this,vt),{url:t,target:r,features:o})}close(){u(this,vt).page.mainFrame===u(this,vt)&&u(this,vt)[ji]&&(this[ye](),u(this,vt).page.close())}matchMedia(t){return new bm({window:this,media:t})}setTimeout(t,r=0,...o){if(this.closed)return{};let i=u(this,vt).page.context.browser.settings;if(i.timer.preventTimerLoops){let m=new Error().stack,p=u(this,Sf),b=u(this,Pf),d=p.indexOf(m);if(d!==-1){if(b[d].timeout++,b[d].timeout>=(i.timer.preventTimerLoops===!0?1:i.timer.preventTimerLoops.timeout??1))return{}}else p.push(m),b.push({timeout:0,requestAnimationFrame:0})}if(!r){let m=u(this,ff);if(!m.timeouts){let b=!i||!i.disableErrorCapturing&&i.errorCapture===me.tryAndCatch,d=$y.setTimeout(()=>{u(this,vt)[bt].endTimer(d);let f=m.timeouts;m.timeouts=null;for(let v of f)if(b){let L;try{L=v.callback()}catch(C){this[he](C)}L instanceof Promise&&L.catch(C=>this[he](C))}else v.callback()},0);m.timeouts=[],u(this,vt)[bt].startTimer(d)}let p=new US(()=>t(...o));return m.timeouts.push(p),p}let n=!i||!i.disableErrorCapturing&&i.errorCapture===me.tryAndCatch,a=$y.setTimeout(()=>{if(u(this,vt)[bt].endTimer(a),n){let m;try{m=t(...o)}catch(p){this[he](p)}m instanceof Promise&&m.catch(p=>this[he](p))}else t(...o)},i?.timer.maxTimeout!==-1&&r&&r>i?.timer.maxTimeout?i?.timer.maxTimeout:r);return u(this,vt)[bt].startTimer(a),a}clearTimeout(t){if(t&&t instanceof US){let r=u(this,ff);if(!r.timeouts)return;let o=r.timeouts.indexOf(t);o!==-1&&r.timeouts.splice(o,1);return}Zw&&(!t||t.constructor.name!=="Timeout")||($y.clearTimeout(t),u(this,vt)[bt].endTimer(t))}setInterval(t,r=0,...o){if(this.closed)return{};let i=u(this,vt).page.context.browser.settings,n=!i||!i.disableErrorCapturing&&i.errorCapture===me.tryAndCatch,a=0,m=$y.setInterval(()=>{if(n){let p;try{p=t(...o)}catch(b){this.clearInterval(m),this[he](b)}p instanceof Promise&&p.catch(b=>{this.clearInterval(m),this[he](b)})}else t(...o);i?.timer.maxIntervalIterations!==-1&&(a>=i?.timer.maxIntervalIterations&&this.clearInterval(m),a++)},i?.timer.maxIntervalTime!==-1&&r&&r>i?.timer.maxIntervalTime?i?.timer.maxIntervalTime:r);return u(this,vt)[bt].startTimer(m),m}clearInterval(t){Zw&&(!t||t.constructor.name!=="Timeout")||($y.clearInterval(t),u(this,vt)[bt].endTimer(t))}requestAnimationFrame(t){if(this.closed)return{};let r=u(this,vt).page.context.browser.settings;if(r.timer.preventTimerLoops){let n=new Error().stack,a=u(this,Sf),m=u(this,Pf),p=a.indexOf(n);if(p!==-1){if(m[p].requestAnimationFrame++,m[p].requestAnimationFrame>=(r.timer.preventTimerLoops===!0?1:r.timer.preventTimerLoops.requestAnimationFrame??1))return{}}else a.push(n),m.push({timeout:0,requestAnimationFrame:0})}let o=!r||!r.disableErrorCapturing&&r.errorCapture===me.tryAndCatch,i=$y.setImmediate(()=>{if(u(this,vt)[bt].endImmediate(i),o){let n;try{n=t(this.performance.now())}catch(a){this[he](a)}n instanceof Promise&&n.catch(a=>this[he](a))}else t(this.performance.now())});return u(this,vt)[bt].startImmediate(i),i}cancelAnimationFrame(t){Zw&&(!t||t.constructor.name!=="Immediate")||($y.clearImmediate(t),u(this,vt)[bt].endImmediate(t))}queueMicrotask(t){if(this.closed)return;let r=!1,o=u(this,vt)[bt].startTask(()=>r=!0),i=u(this,vt).page.context.browser.settings,n=!i||!i.disableErrorCapturing&&i.errorCapture===me.tryAndCatch;$y.queueMicrotask(()=>{if(!r)if(u(this,vt)[bt].endTask(o),n){let a;try{a=t()}catch(m){this[he](m)}a instanceof Promise&&a.catch(m=>this[he](m))}else t()})}async fetch(t,r){return this.closed?Promise.reject(new this.DOMException("Failed to execute 'fetch' on 'Window': The window is closed.",A.invalidStateError)):await new Wo({browserFrame:u(this,vt),window:this,url:t,init:r}).send()}btoa(t){return Lu.btoa(t)}atob(t){return Lu.atob(t)}postMessage(t,r="*",o){if(!this.closed){if(r&&r!=="*"&&this.location.origin!==r)throw new this.DOMException(`Failed to execute 'postMessage' on 'Window': The target origin provided ('${r}') does not match the recipient window's origin ('${this.location.origin}').`,A.securityError);try{JSON.stringify(t)}catch{throw new this.DOMException("Failed to execute 'postMessage' on 'Window': The provided message cannot be serialized.",A.invalidStateError)}this.setTimeout(()=>this.dispatchEvent(new qu("message",{data:t,origin:u(this,vt).parentFrame?u(this,vt).parentFrame.window.location.origin:u(this,vt).window.location.origin,source:u(this,vt).parentFrame?u(this,vt).parentFrame.window:u(this,vt).window,lastEventId:""})))}}resizeTo(t,r){if(!this.closed){if(!t||!r)throw new this.DOMException(`Failed to execute 'resizeTo' on 'Window': 2 arguments required, but only ${arguments.length} present.`);u(this,vt)[al]&&u(this,vt).page.setViewport({width:t,height:r})}}resizeBy(t,r){if(!this.closed){if(!t||!r)throw new this.DOMException(`Failed to execute 'resizeBy' on 'Window': 2 arguments required, but only ${arguments.length} present.`);if(u(this,vt)[al]){let o=u(this,vt).page.viewport;u(this,vt).page.setViewport({width:o.width+t,height:o.height+r})}}}[(_D=xa,DD=si,FD=ni,ID=We,VD=Uf,OD=Gf,RD=Hf,MD=$f,kD=Ca,CD=Yi,LD=Mo,ND=y,TD=fP,AD=ba,vD=Oa,ED=Nn,xD=mm,wD=Ia,he)](t){u(this,vt).page.console.error(t),this.dispatchEvent(new Vn("error",{message:t.message,error:t}))}[Wi](t,r){return new Jw.Script(t,r).runInContext(this)}[pc](){Jw.isContext(this)||(Jw.createContext(this),SL.runInContext(this))}[SP](){let t=u(this,vt);(e3||r3)&&t.page.context.browser.settings.enableJavaScriptEvaluation&&!t.page.context.browser.settings.suppressInsecureJavaScriptEnvironmentWarning&&!t.page.context.browser.settings.suppressCodeGenerationFromStringsWarning&&console.warn(`
220
+ Warning! Happy DOM has JavaScript evaluation enabled and is running in an insecure environment.
221
+
222
+ A VM Context is not an isolated environment, and if you run untrusted code you are at risk of RCE (Remote Code Execution) attacks. The attacker can escape the VM and run code at process level.
223
+
224
+ It is recommended to disable code generation and freeze all builtins at process level by running node with the flags "--disallow-code-generation-from-strings" and "--frozen-intrinsics". You can suppress this warning by setting "suppressInsecureJavaScriptEnvironmentWarning" to "true" at your own risk.
225
+
226
+ For more information, see https://github.com/capricorn86/happy-dom/wiki/JavaScript-Evaluation-Warning
227
+
228
+ `)}[ye](){if(this.closed)return;super[ye](),this.closed=!0;let t=this[xa];for(let n of t)n[ye]&&n[ye]();this[xa]=[];for(let n of this[Ia])n[ye]();this[Ia]=[],this.document[ye]();let r=this.document.createElement("html"),o=this.document.createElement("head"),i=this.document.createElement("body");r.appendChild(o),r.appendChild(i),this.document[Et](r),this.location[ye]&&this.location[ye](),this.customElements[ye]&&this.customElements[ye](),this.history[ye]&&this.history[ye](),this[Nn].json.clear(),this[Nn].css.clear(),this[Nn].esm.clear(),this.document[Po].clear(),this.document[$e]=null,this.document[Sa]=null,this.document[qi]=null,this.document[Zy]=null,this[Mo]=null,this[Yi]=null,ot.removeWindowBrowserFrameRelation(this)}[bP](){for(let t of[tx,_t]){let r=Object.getOwnPropertyDescriptors(t.prototype),o=Object.keys(r);for(let i of o){let n=r[i];n.get||n.set?Object.defineProperty(this,i,{...n,get:n.get?.bind(this),set:n.set?.bind(this)}):i!=="constructor"&&typeof n.value=="function"&&!n.value.toString().startsWith("class ")&&Object.defineProperty(this,i,{...n,value:n.value.bind(this)})}}}};vt=new WeakMap,Xh=new WeakMap,Yh=new WeakMap,Kh=new WeakMap,Jh=new WeakMap,Zh=new WeakMap,ff=new WeakMap,Sf=new WeakMap,Pf=new WeakMap;var xi=tx;var ex;(function(l){l[l.log=0]="log",l[l.info=1]="info",l[l.warn=2]="warn",l[l.error=3]="error"})(ex||(ex={}));var Fr=ex;var rx;(function(l){l.log="log",l.table="table",l.trace="trace",l.dir="dir",l.dirxml="dirxml",l.group="group",l.groupCollapsed="groupCollapsed",l.debug="debug",l.timeLog="timeLog",l.info="info",l.count="count",l.timeEnd="timeEnd",l.warn="warn",l.countReset="countReset",l.error="error",l.assert="assert"})(rx||(rx={}));var Xe=rx;var wf=class{static toString(e){if(this.isLogEntryCollapsed(e))return"";let t=this.getLogEntryGroupTabbing(e),r=t;for(let o of e.message)if(r+=r!==""&&r!==t?" ":"",typeof o=="object"&&(o===null||o.constructor.name==="Object"||Array.isArray(o)))try{r+=JSON.stringify(o)}catch{r+=new Error("Failed to JSON stringify object in log entry.").stack.replace(/\n at/gm,`
229
+ `+t+"at")}else typeof o=="object"&&o.message&&o.stack?r+=o.stack.replace(/\n at/gm,`
230
+ `+t+"at"):r+=this.getLogEntryIcon(e)+String(o);return r+`
231
+ `}static getLogEntryIcon(e){switch(e.type){case Xe.group:return"\u25BC ";case Xe.groupCollapsed:return"\u25B6 "}return""}static getLogEntryGroupTabbing(e){let t="",r=e.type===Xe.group||e.type===Xe.groupCollapsed?e.group?.parent:e.group;for(;r;)t+=" ",r=r.parent;return t}static isLogEntryCollapsed(e){let t=e.type===Xe.group||e.type===Xe.groupCollapsed?e.group?.parent:e.group;for(;t;){if(t.collapsed)return!0;t=t.parent}return!1}};var qy,il,Ys,Wy=class{constructor(){x(this,qy,[]);x(this,il,{print:[],clear:[]});x(this,Ys,!1)}get closed(){return u(this,Ys)}print(e){u(this,Ys)||(u(this,qy).push(e),this.dispatchEvent(new R("print")))}clear(){u(this,Ys)||(w(this,qy,[]),this.dispatchEvent(new R("clear")))}close(){u(this,Ys)||(w(this,qy,[]),w(this,il,{print:[],clear:[]}),w(this,Ys,!0))}addEventListener(e,t){if(!u(this,Ys)){if(!u(this,il)[e])throw new Error(`Event type "${e}" is not supported.`);u(this,il)[e].push(t)}}removeEventListener(e,t){if(u(this,Ys))return;if(!u(this,il)[e])throw new Error(`Event type "${e}" is not supported.`);let r=u(this,il)[e].indexOf(t);r!==-1&&u(this,il)[e].splice(r,1)}dispatchEvent(e){if(!u(this,Ys))switch(e.type){case"print":case"clear":for(let t of u(this,il)[e.type])t(e);break;default:throw new Error(`Event type "${e.type}" is not supported.`)}}read(){let e=u(this,qy);return w(this,qy,[]),e}readAsString(e=Fr.log){let t=this.read(),r="";for(let o of t)o.level>=e&&(r+=wf.toString(o));return r}};qy=new WeakMap,il=new WeakMap,Ys=new WeakMap;var Lr,jy,Qh,nu,Qt,zy=class{constructor(e){x(this,Lr);x(this,jy,{});x(this,Qh,{});x(this,nu,0);x(this,Qt,[]);w(this,Lr,e)}assert(e,t,...r){e||u(this,Lr).print({type:Xe.assert,level:Fr.error,message:["Assertion failed:",...t?[t,...r]:r],group:u(this,Qt)[u(this,Qt).length-1]||null})}clear(){u(this,Lr).clear()}count(e="default"){u(this,jy)[e]||(u(this,jy)[e]=0),u(this,jy)[e]++,u(this,Lr).print({type:Xe.count,level:Fr.info,message:[`${e}: ${u(this,jy)[e]}`],group:u(this,Qt)[u(this,Qt).length-1]||null})}countReset(e="default"){delete u(this,jy)[e],u(this,Lr).print({type:Xe.countReset,level:Fr.warn,message:[`${e}: 0`],group:u(this,Qt)[u(this,Qt).length-1]||null})}debug(e,...t){u(this,Lr).print({type:Xe.debug,level:Fr.log,message:e?[e,...t]:t,group:u(this,Qt)[u(this,Qt).length-1]||null})}dir(e){u(this,Lr).print({type:Xe.dir,level:Fr.log,message:[e],group:u(this,Qt)[u(this,Qt).length-1]||null})}dirxml(e){u(this,Lr).print({type:Xe.dirxml,level:Fr.log,message:[e],group:u(this,Qt)[u(this,Qt).length-1]||null})}error(e,...t){u(this,Lr).print({type:Xe.error,level:Fr.error,message:e?[e,...t]:t,group:u(this,Qt)[u(this,Qt).length-1]||null})}exception(...e){this.error(...e)}group(e){$S(this,nu)._++;let t={id:u(this,nu),label:e||"default",collapsed:!1,parent:u(this,Qt)[u(this,Qt).length-1]||null};u(this,Qt).push(t),u(this,Lr).print({type:Xe.group,level:Fr.log,message:[e||"default"],group:t})}groupCollapsed(e){$S(this,nu)._++;let t={id:u(this,nu),label:e||"default",collapsed:!0,parent:u(this,Qt)[u(this,Qt).length-1]||null};u(this,Qt).push(t),u(this,Lr).print({type:Xe.groupCollapsed,level:Fr.log,message:[e||"default"],group:t})}groupEnd(){u(this,Qt).length!==0&&u(this,Qt).pop()}info(e,...t){u(this,Lr).print({type:Xe.info,level:Fr.info,message:e?[e,...t]:t,group:u(this,Qt)[u(this,Qt).length-1]||null})}log(e,...t){u(this,Lr).print({type:Xe.log,level:Fr.log,message:e?[e,...t]:t,group:u(this,Qt)[u(this,Qt).length-1]||null})}profile(){throw new Error("Method not implemented.")}profileEnd(){throw new Error("Method not implemented.")}table(e){u(this,Lr).print({type:Xe.table,level:Fr.log,message:[e],group:u(this,Qt)[u(this,Qt).length-1]||null})}time(e="default"){u(this,Qh)[e]=performance.now()}timeEnd(e="default"){let t=u(this,Qh)[e];if(t){let r=performance.now()-t;u(this,Lr).print({type:Xe.timeEnd,level:Fr.info,message:[`${e}: ${r}ms - timer ended`],group:u(this,Qt)[u(this,Qt).length-1]||null})}}timeLog(e="default",...t){let r=u(this,Qh)[e];if(r){let o=performance.now()-r;u(this,Lr).print({type:Xe.timeLog,level:Fr.info,message:[`${e}: ${o}ms`,...t],group:u(this,Qt)[u(this,Qt).length-1]||null})}}timeStamp(){throw new Error("Method not implemented.")}trace(e,...t){u(this,Lr).print({type:Xe.trace,level:Fr.log,message:[...e?[e,...t]:t,new Error("stack").stack.replace("Error: stack","")],group:u(this,Qt)[u(this,Qt).length-1]||null})}warn(e,...t){u(this,Lr).print({type:Xe.warn,level:Fr.warn,message:e?[e,...t]:t,group:u(this,Qt)[u(this,Qt).length-1]||null})}};Lr=new WeakMap,jy=new WeakMap,Qh=new WeakMap,nu=new WeakMap,Qt=new WeakMap;var pa=class{static getFrames(e){return this.findFrames(e.mainFrame)}static closePage(e){if(e.closed)return Promise.resolve();e.closed=!0;let t=e.context.pages.indexOf(e);return t!==-1&&e.context.pages.splice(t,1),e.virtualConsolePrinter.close(),Is.destroyFrame(e.mainFrame)}static findFrames(e){let t=[e];for(let r of e.childFrames)t=t.concat(this.findFrames(r));return t}};var lu=class{constructor(e){s(this,"virtualConsolePrinter",new Wy);s(this,"mainFrame");s(this,"context");s(this,"console");s(this,"viewport");s(this,"closed",!1);this.context=e,this.console=e.browser.console??new zy(this.virtualConsolePrinter),this.mainFrame=new Ey(this),this.viewport={width:e.browser.settings.viewport.width,height:e.browser.settings.viewport.height,devicePixelRatio:e.browser.settings.viewport.devicePixelRatio}}get frames(){return pa.getFrames(this)}get content(){return this.mainFrame.content}set content(e){this.mainFrame.content=e}get url(){return this.mainFrame.url}set url(e){this.mainFrame.url=e}close(){return new Promise((e,t)=>{let r=this.context;pa.closePage(this).then(()=>{r.pages[0]===this?r.browser.close().then(e).catch(t):e()}).catch(t)})}waitUntilComplete(){return this.mainFrame.waitUntilComplete()}waitForNavigation(){return this.mainFrame.waitForNavigation()}abort(){return this.mainFrame.abort()}evaluate(e){return this.mainFrame.evaluate(e)}evaluateModule(e){return this.mainFrame.evaluateModule(e)}setViewport(e){let t=Object.assign({},this.viewport);Object.assign(this.viewport,e),(t.width!==this.viewport.width||t.height!==this.viewport.height||t.devicePixelRatio!==this.viewport.devicePixelRatio)&&this.mainFrame.window.dispatchEvent(new R("resize"))}goto(e,t){return this.mainFrame.goto(e,t)}goBack(e){return this.mainFrame.goBack(e)}goForward(e){return this.mainFrame.goForward(e)}goSteps(e,t){return this.mainFrame.goSteps(e,t)}reload(e){return this.mainFrame.reload(e)}};var tc=class{static hasExpired(e){return e.expires&&e.expires.getTime()<Date.now()}};var xf=class{static cookieMatchesURL(e,t){let r=t.hostname==="localhost"||t.hostname.endsWith(".localhost");return(!e.secure||t.protocol==="https:"||r)&&(!e.domain||t.hostname.endsWith(e.domain))&&(!e.path||t.pathname.startsWith(e.path))&&(e.sameSite===Ml.none&&e.secure||e.originURL.hostname===t.hostname)}};var sl,au=class{constructor(){x(this,sl,[])}addCookies(e){let t=new Map,r=o=>`${o.key}-${o.originURL.hostname}-${o.path}-${typeof o.value}`;for(let o=0,i=u(this,sl).length;o<i;o++)t.set(r(u(this,sl)[o]),o);for(let o of e){let i=Object.assign({},nS,o);if(i&&i.key&&i.originURL){let n=t.get(r(i));n!==void 0&&u(this,sl).splice(n,1),tc.hasExpired(i)||(t.set(r(i),u(this,sl).length),u(this,sl).push(i))}}}getCookies(e=null,t=!1){let r=[];for(let o of u(this,sl))!tc.hasExpired(o)&&(!t||!o.httpOnly)&&(!e||xf.cookieMatchesURL(o,e||o.originURL))&&r.push(o);return r}clearCookies(){w(this,sl,[])}};sl=new WeakMap;import ec from"fs";import rc from"path";import o3 from"crypto";var vf,Af,yu,Ef=class{constructor(e){x(this,vf,new Set);x(this,Af,new Set);x(this,yu);w(this,yu,e)}async load(e){if(!e)throw new Error("Failed to execute 'load' on 'ResponseCacheFileSystem': Directory is not specified.");let t=rc.resolve(e),r=[];try{r=await ec.promises.readdir(t)}catch{return}let o=[],i=u(this,yu);for(let n of r)n.endsWith(".json")&&o.push(ec.promises.readFile(rc.join(t,n),"utf8").then(a=>{let m=JSON.parse(a);if(m.response&&m.request&&!m.virtual)return m.response.headers=new Us(m.response.headers),m.request.headers=new Us(m.request.headers),ec.promises.readFile(rc.join(t,n.split(".")[0]+".data")).then(p=>{m.response.body=p;let b=i.get(m.response.url);b||(b=[],i.set(m.response.url,b)),b.push(m)}).catch(()=>{let p=i.get(m.response.url);p||(p=[],i.set(m.response.url,p)),p.push(m)})}).catch(()=>{}));await Promise.all(o)}async save(e){if(!e)throw new Error("Failed to execute 'store' on 'ResponseCacheFileSystem': Directory is not specified.");if(!u(this,yu).size)return;let t=rc.resolve(e);if(!u(this,vf).has(t)){u(this,vf).add(t);try{await ec.promises.mkdir(t,{recursive:!0})}catch{}}let o=u(this,yu),i=[];for(let n of o.values())for(let a of n)if(!a.virtual){let m={},p={};for(let[v,L]of a.response.headers.entries())m[v]=L;for(let[v,L]of a.request.headers.entries())p[v]=L;let b={...a,response:{...a.response,headers:m,body:null},request:{...a.request,headers:p}},d=JSON.stringify(b,null,3),f=o3.createHash("md5").update(d).digest("hex");u(this,Af).has(f)||(u(this,Af).add(f),i.push(ec.promises.writeFile(rc.join(t,`${f}.json`),d)),a.response.body&&i.push(ec.promises.writeFile(rc.join(t,`${f}.data`),a.response.body)))}await Promise.all(i)}};vf=new WeakMap,Af=new WeakMap,yu=new WeakMap;var i3=["Cache-Control","Last-Modified","Vary","ETag"],Ei,mu=class{constructor(){s(this,"fileSystem");x(this,Ei,new Map);this.fileSystem=new Ef(u(this,Ei))}get(e){if(e.headers.get("Cache-Control")?.includes("no-cache"))return null;let t=e.url,r=u(this,Ei).get(t);if(r)for(let o=0,i=r.length;o<i;o++){let n=r[o],a=n.request.method===e.method;if(a)for(let m of Object.keys(n.vary)){let p=e.headers.get(m);if(p!==null&&n.vary[m]!==p){a=!1;break}}if(a){if(n.expires&&n.expires<Date.now()){if(n.lastModified)n.state=sy.stale;else if(!n.etag)return r.splice(o,1),null}return n}}return null}add(e,t){if(e.method!=="GET"&&e.method!=="HEAD"||e.headers.get("Cache-Control")?.includes("no-cache"))return null;let r=e.url,o=this.get(e);if(t.status===304){if(!o)throw new Error("ResponseCache: Cached response not found.");for(let i of i3)t.headers.has(i)&&o.response.headers.set(i,t.headers.get(i));o.cacheUpdateTime=Date.now(),o.state=sy.fresh}else{if(o){let n=u(this,Ei).get(r);if(n){let a=n.indexOf(o);a!==-1&&n.splice(a,1)}}o={response:{status:t.status,statusText:t.statusText,url:t.url,headers:new Us(t.headers),waitingForBody:t.waitingForBody,body:t.body??null},request:{headers:e.headers,method:e.method},vary:{},expires:null,etag:null,cacheUpdateTime:Date.now(),lastModified:null,mustRevalidate:!1,staleWhileRevalidate:!1,state:sy.fresh,virtual:t.virtual??!1};let i=u(this,Ei).get(r);i||(i=[],u(this,Ei).set(r,i)),i.push(o)}if(t.headers.has("Cache-Control")){let i=t.headers.get("Age");for(let n of t.headers.get("Cache-Control").split(",")){let[a,m]=n.trim().split("=");switch(a){case"max-age":o.expires=Date.now()+parseInt(m)*1e3-(i?parseInt(i)*1e3:0);break;case"no-cache":case"no-store":let p=u(this,Ei).get(r);if(p){let b=p.indexOf(o);b!==-1&&p.splice(b,1)}return null;case"must-revalidate":o.mustRevalidate=!0;break;case"stale-while-revalidate":o.staleWhileRevalidate=!0;break}}}if(t.headers.has("Last-Modified")&&(o.lastModified=Date.parse(t.headers.get("Last-Modified"))),t.headers.has("Vary"))for(let i of t.headers.get("Vary").split(",")){let n=i.trim(),a=e.headers.get(n);a&&(o.vary[n]=a)}if(t.headers.has("ETag")&&(o.etag=t.headers.get("ETag")),!o.expires){let i=t.headers.get("Expires");i&&(o.expires=Date.parse(i))}if(!o.etag&&(!o.expires||o.expires<Date.now())){let i=u(this,Ei).get(r);if(i){let n=i.indexOf(o);n!==-1&&i.splice(n,1)}return null}return o}clear(e){if(e)if(e.toTime)for(let t of e.url?[e.url]:u(this,Ei).keys()){let r=u(this,Ei).get(t);if(r)for(let o=0,i=r.length;o<i;o++)r[o].cacheUpdateTime<e.toTime&&(r.splice(o,1),o--,i--)}else e.url&&u(this,Ei).delete(e.url);else u(this,Ei).clear()}};Ei=new WeakMap;var Xy,uu=class{constructor(){x(this,Xy,new Map)}get(e){let t=u(this,Xy).get(e.url);return t?t.expires<Date.now()?(u(this,Xy).delete(e.url),null):t:null}add(e,t){if(u(this,Xy).delete(e.url),e.headers.get("Cache-Control")?.includes("no-cache")||t.status<200||t.status>=300)return null;let r=t.headers.get("Access-Control-Max-Age"),o=t.headers.get("Access-Control-Allow-Origin");if(!r||!o)return null;let i=[];if(t.headers.has("Access-Control-Allow-Methods")&&t.headers.get("Access-Control-Allow-Methods")!=="*")for(let m of t.headers.get("Access-Control-Allow-Methods").split(","))i.push(m.trim().toUpperCase());let n={allowOrigin:o,allowMethods:i,expires:Date.now()+parseInt(r)*1e3};return isNaN(n.expires)||n.expires<Date.now()?null:(u(this,Xy).set(e.url,n),n)}clear(){u(this,Xy).clear()}};Xy=new WeakMap;var oc=class{constructor(e){s(this,"pages");s(this,"browser");s(this,"cookieContainer",new au);s(this,"responseCache",new mu);s(this,"preflightResponseCache",new uu);s(this,"closed",!1);this.browser=e,this.pages=[],this.pages.push(new lu(this))}async close(){if(this.closed)return;if(this.browser.contexts[0]===this)throw new Error("Cannot close the default context. Use `browser.close()` to close the browser instead.");this.closed=!0,await Promise.all(this.pages.slice().map(r=>r.close()));let e=this.browser,t=e.contexts.indexOf(this);t!==-1&&e.contexts.splice(t,1),this.pages=[],this.cookieContainer.clearCookies(),this.responseCache.clear(),this.preflightResponseCache.clear()}async waitUntilComplete(){await Promise.all(this.pages.map(e=>e.waitUntilComplete()))}abort(){return new Promise((e,t)=>{if(!this.pages.length){e();return}Promise.all(this.pages.slice().map(r=>r.abort())).then(()=>e()).catch(r=>t(r))})}newPage(){let e=new lu(this);return this.pages.push(e),e}};var BD={version:"20.3.0"};var Ks={disableJavaScriptEvaluation:!1,enableJavaScriptEvaluation:!1,disableJavaScriptFileLoading:!1,disableCSSFileLoading:!1,disableIframePageLoading:!1,disableComputedStyleRendering:!1,handleDisabledFileLoadingAsSuccess:!1,disableErrorCapturing:!1,errorCapture:me.tryAndCatch,enableFileSystemHttpRequests:!1,suppressCodeGenerationFromStringsWarning:!1,suppressInsecureJavaScriptEnvironmentWarning:!1,timer:{maxTimeout:-1,maxIntervalTime:-1,maxIntervalIterations:-1,preventTimerLoops:!1},fetch:{disableSameOriginPolicy:!1,disableStrictSSL:!1,interceptor:null,requestHeaders:null,virtualServers:null},module:{resolveNodeModules:null,urlResolver:null},navigation:{disableMainFrameNavigation:!1,disableChildFrameNavigation:!1,disableChildPageNavigation:!1,disableFallbackToSetURL:!1,crossOriginPolicy:gp.anyOrigin,beforeContentCallback:null},navigator:{userAgent:`Mozilla/5.0 (X11; ${process.platform.charAt(0).toUpperCase()+process.platform.slice(1)+" "+process.arch}) AppleWebKit/537.36 (KHTML, like Gecko) HappyDOM/${BD.version}`,maxTouchPoints:0},device:{prefersColorScheme:"light",prefersReducedMotion:"no-preference",mediaType:"screen",forcedColors:"none"},debug:{traceWaitUntilComplete:-1},viewport:{width:1024,height:768,devicePixelRatio:1}};var pu=class{static createSettings(e){return e&&this.validate(Ks,e),{...Ks,...e,navigation:{...Ks.navigation,...e?.navigation},navigator:{...Ks.navigator,...e?.navigator},timer:{...Ks.timer,...e?.timer},fetch:{...Ks.fetch,...e?.fetch},module:{...Ks.module,...e?.module},device:{...Ks.device,...e?.device},debug:{...Ks.debug,...e?.debug},viewport:{...Ks.viewport,...e?.viewport}}}static validate(e,t,r){for(let o of Object.keys(t)){if(e[o]===void 0){let i=r?r+"."+o:o;throw new Error(`Unknown browser setting "${i}"`)}if(typeof e[o]=="object"&&!Array.isArray(e[o])&&e[o]!==null){let i=r?r+"."+o:o;if(typeof t[o]!="object"||Array.isArray(t[o])||t[o]===null)throw new Error(`Browser setting "${i}" cannot be null`);this.validate(e[o],t[o],i)}else if((typeof e[o]=="boolean"||typeof e[o]=="number"||typeof e[o]=="string")&&typeof t[o]!=typeof e[o]&&!(o==="preventTimerLoops"&&typeof t[o]=="object"&&t[o]!==null)){let n=r?r+"."+o:o;throw new Error(`Browser setting "${n}" must be of type "${typeof e[o]}"`)}}}};var Yy=class{constructor(){s(this,"observedWindows",[]);s(this,"uncaughtExceptionListener",null);s(this,"uncaughtRejectionListener",null)}observe(e){if(this.observedWindows.includes(e))throw new Error("Browser window is already being observed.");this.observedWindows.push(e),!this.uncaughtExceptionListener&&(this.uncaughtExceptionListener=(t,r)=>{if(r==="unhandledRejection")return;let o=null;for(let i of this.observedWindows)if(t instanceof i.Error||t instanceof i.DOMException){o=i;break}o?(o.console.error(t),o.dispatchEvent(new o.ErrorEvent("error",{error:t,message:t.message}))):process.listenerCount("uncaughtException")===this.constructor.listenerCount&&(console.error(t),process.exit(1))},this.uncaughtRejectionListener=t=>{let r=null;for(let o of this.observedWindows)if(t instanceof o.Error||t instanceof o.DOMException){r=o;break}r?(r.console.error(t),r.dispatchEvent(new r.ErrorEvent("error",{error:t,message:t.message}))):process.listenerCount("unhandledRejection")===this.constructor.listenerCount&&(console.error(t),process.exit(1))},this.constructor.listenerCount++,process.on("uncaughtException",this.uncaughtExceptionListener),process.on("unhandledRejection",this.uncaughtRejectionListener))}disconnect(e){let t=this.observedWindows.indexOf(e);t!==-1&&(this.observedWindows.splice(t,1),this.observedWindows.length===0&&this.uncaughtExceptionListener&&(this.constructor.listenerCount--,process.off("uncaughtException",this.uncaughtExceptionListener),this.uncaughtRejectionListener&&process.off("unhandledRejection",this.uncaughtRejectionListener),this.uncaughtExceptionListener=null,this.uncaughtRejectionListener=null))}};s(Yy,"listenerCount",0);var UD;UD=_r;var ic=class{constructor(e,t){s(this,"contexts");s(this,"settings");s(this,"console");s(this,"windowClass");s(this,UD,null);this.windowClass=e,this.console=t?.console||null,this.settings=pu.createSettings(t?.settings),this.settings.errorCapture===me.processLevel&&(this[_r]=new Yy),this.contexts=[],this.contexts.push(new oc(this))}get closed(){return this.contexts.length===0}get defaultContext(){if(this.contexts.length===0)throw new Error("No default context. The browser has been closed.");return this.contexts[0]}async close(){if(this.contexts.length===0)return;let e=this.contexts;this.contexts=[],await Promise.all(e.map(t=>t.close()))}async waitUntilComplete(){await Promise.all(this.contexts.map(e=>e.waitUntilComplete()))}abort(){return new Promise((e,t)=>{if(!this.contexts.length){e();return}Promise.all(this.contexts.slice().map(r=>r.abort())).then(()=>e()).catch(r=>t(r))})}newIncognitoContext(){throw new Error("Not possible to create a new context on a detached browser.")}newPage(){if(this.contexts.length===0)throw new Error("No default context. The browser has been closed.");return this.contexts[0].newPage()}};var sc=class extends xi{constructor(t){let o=new ic(xi,{console:t?.console,settings:t?.settings}).defaultContext.pages[0],i=o.mainFrame;t&&(t.width||t.height||t.innerWidth||t.innerHeight)&&Object.assign(o.viewport,{width:t.width||t.innerWidth||o.viewport.width,height:t.height||t.innerHeight||o.viewport.height});super(i,{url:t?.url});s(this,"happyDOM");i.window=this,i.page.context.browser[_r]&&i.page.context.browser[_r].observe(this),this.happyDOM=new du(i)}};var GD,HD,$D,qD,WD,jD;jD=bt,WD=ge,qD=So,$D=ji,HD=al,GD=We;var nc=class{constructor(e){s(this,"childFrames",[]);s(this,"parentFrame",null);s(this,"page");s(this,"window");s(this,"closed",!1);s(this,jD,new os(this));s(this,WD,{navigation:[]});s(this,qD,null);s(this,$D,null);s(this,HD,!1);s(this,GD,new $m);this.page=e,this.window=new xi(this),e.context.browser[_r]&&e.context.browser[_r].observe(this.window)}get content(){return this.window.document.documentElement.outerHTML}set content(e){this.window.document[Zs]=!0,this.window.document[Qs]=!1,this.window.document.open(),this.window.document.write(e)}get url(){return this.window.location.href}set url(e){this.window[ni][no](this,xo.getRelativeURL(this,e).href)}get document(){return this.window?.document??null}async waitUntilComplete(){await Promise.all([this[bt].waitUntilComplete(),...this.childFrames.map(e=>e.waitUntilComplete())])}waitForNavigation(){return new Promise(e=>this[ge].navigation.push(e))}abort(){return this.childFrames.length?new Promise((e,t)=>{Promise.all(this.childFrames.map(r=>r.abort()).concat([this[bt].abort()])).then(()=>e()).catch(t)}):this[bt].abort()}evaluate(e){return ql.evaluate(this,e)}evaluateModule(e){return ql.evaluateModule(this,e)}goto(e,t){return oo.navigate({windowClass:xi,frame:this,url:e,goToOptions:t})}goBack(e){return oo.navigateBack({windowClass:xi,frame:this,goToOptions:e})}goForward(e){return oo.navigateForward({windowClass:xi,frame:this,goToOptions:e})}goSteps(e,t){return oo.navigateSteps({windowClass:xi,frame:this,steps:e,goToOptions:t})}reload(e){return oo.reload({windowClass:xi,frame:this,goToOptions:e})}};var lc=class{constructor(e){s(this,"virtualConsolePrinter",new Wy);s(this,"mainFrame");s(this,"context");s(this,"console");s(this,"viewport");s(this,"closed",!1);this.context=e,this.console=e.browser.console??new zy(this.virtualConsolePrinter),this.mainFrame=new nc(this),this.viewport={width:e.browser.settings.viewport.width,height:e.browser.settings.viewport.height,devicePixelRatio:e.browser.settings.viewport.devicePixelRatio}}get frames(){return pa.getFrames(this)}get content(){return this.mainFrame.content}set content(e){this.mainFrame.content=e}get url(){return this.mainFrame.url}set url(e){this.mainFrame.url=e}close(){return pa.closePage(this)}waitUntilComplete(){return this.mainFrame.waitUntilComplete()}waitForNavigation(){return this.mainFrame.waitForNavigation()}abort(){return this.mainFrame.abort()}evaluate(e){return this.mainFrame.evaluate(e)}evaluateModule(e){return this.mainFrame.evaluateModule(e)}setViewport(e){let t=Object.assign({},this.viewport);Object.assign(this.viewport,e),(t.width!==this.viewport.width||t.height!==this.viewport.height||t.devicePixelRatio!==this.viewport.devicePixelRatio)&&this.mainFrame.window.dispatchEvent(new R("resize"))}goto(e,t){return this.mainFrame.goto(e,t)}goBack(e){return this.mainFrame.goBack(e)}goForward(e){return this.mainFrame.goForward(e)}goSteps(e,t){return this.mainFrame.goSteps(e,t)}reload(e){return this.mainFrame.reload(e)}};var hu=class{constructor(e){s(this,"pages",[]);s(this,"browser");s(this,"cookieContainer",new au);s(this,"responseCache",new mu);s(this,"preflightResponseCache",new uu);s(this,"closed",!1);this.browser=e}async close(){if(this.closed)return;if(this.browser.contexts[0]===this)throw new Error("Cannot close the default context. Use `browser.close()` to close the browser instead.");this.closed=!0,await Promise.all(this.pages.slice().map(r=>r.close()));let e=this.browser,t=e.contexts.indexOf(this);t!==-1&&e.contexts.splice(t,1),this.pages=[],this.cookieContainer.clearCookies(),this.responseCache.clear(),this.preflightResponseCache.clear()}async waitUntilComplete(){await Promise.all(this.pages.map(e=>e.waitUntilComplete()))}abort(){return new Promise((e,t)=>{if(!this.pages.length){e();return}Promise.all(this.pages.slice().map(r=>r.abort())).then(()=>e()).catch(r=>t(r))})}newPage(){let e=new lc(this);return this.pages.push(e),e}};var zD;zD=_r;var GS=class{constructor(e){s(this,"contexts");s(this,"settings");s(this,"console");s(this,zD,null);this.console=e?.console||null,this.settings=pu.createSettings(e?.settings),this.settings.errorCapture===me.processLevel&&(this[_r]=new Yy),this.contexts=[new hu(this)]}get closed(){return this.contexts.length===0}get defaultContext(){if(this.contexts.length===0)throw new Error("No default context. The browser has been closed.");return this.contexts[0]}async close(){if(this.contexts.length===0)return;let e=this.contexts;this.contexts=[],await Promise.all(e.map(t=>t.close()))}async waitUntilComplete(){if(this.contexts.length===0)throw new Error("No default context. The browser has been closed.");await Promise.all(this.contexts.map(e=>e.waitUntilComplete()))}abort(){return new Promise((e,t)=>{if(!this.contexts.length){e();return}Promise.all(this.contexts.slice().map(r=>r.abort())).then(()=>e()).catch(r=>t(r))})}newIncognitoContext(){if(this.contexts.length===0)throw new Error("No default context. The browser has been closed.");let e=new hu(this);return this.contexts.push(e),e}newPage(){if(this.contexts.length===0)throw new Error("No default context. The browser has been closed.");return this.contexts[0].newPage()}};import{Buffer as s3}from"buffer";var HS=class extends sc{constructor(){super(...arguments);s(this,"Array",globalThis.Array);s(this,"ArrayBuffer",globalThis.ArrayBuffer);s(this,"Boolean",globalThis.Boolean);s(this,"Buffer",s3);s(this,"DataView",globalThis.DataView);s(this,"Date",globalThis.Date);s(this,"Error",globalThis.Error);s(this,"EvalError",globalThis.EvalError);s(this,"Float32Array",globalThis.Float32Array);s(this,"Float64Array",globalThis.Float64Array);s(this,"Function",globalThis.Function);s(this,"Infinity",globalThis.Infinity);s(this,"Int16Array",globalThis.Int16Array);s(this,"Int32Array",globalThis.Int32Array);s(this,"Int8Array",globalThis.Int8Array);s(this,"Intl",globalThis.Intl);s(this,"JSON",globalThis.JSON);s(this,"Map",globalThis.Map);s(this,"Math",globalThis.Math);s(this,"NaN",globalThis.NaN);s(this,"Number",globalThis.Number);s(this,"Object",globalThis.Object);s(this,"Promise",globalThis.Promise);s(this,"RangeError",globalThis.RangeError);s(this,"ReferenceError",globalThis.ReferenceError);s(this,"RegExp",globalThis.RegExp);s(this,"Set",globalThis.Set);s(this,"String",globalThis.String);s(this,"Symbol",globalThis.Symbol);s(this,"SyntaxError",globalThis.SyntaxError);s(this,"TypeError",globalThis.TypeError);s(this,"URIError",globalThis.URIError);s(this,"Uint16Array",globalThis.Uint16Array);s(this,"Uint32Array",globalThis.Uint32Array);s(this,"Uint8Array",globalThis.Uint8Array);s(this,"Uint8ClampedArray",globalThis.Uint8ClampedArray);s(this,"WeakMap",globalThis.WeakMap);s(this,"WeakSet",globalThis.WeakSet);s(this,"decodeURI",globalThis.decodeURI);s(this,"decodeURIComponent",globalThis.decodeURIComponent);s(this,"encodeURI",globalThis.encodeURI);s(this,"encodeURIComponent",globalThis.encodeURIComponent);s(this,"eval",globalThis.eval);s(this,"escape",globalThis.escape);s(this,"global",globalThis);s(this,"isFinite",globalThis.isFinite);s(this,"isNaN",globalThis.isNaN);s(this,"parseFloat",globalThis.parseFloat);s(this,"parseInt",globalThis.parseInt);s(this,"undefined",globalThis.undefined);s(this,"unescape",globalThis.unescape)}[Wi](t,r){return r?.filename?this.eval(`${t}
232
+ //# sourceURL=${r.filename}`):this.eval(t)}[pc](){}};export{sc as a};