@github/copilot 0.0.338-6 → 0.0.338-7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/sdk/index.js CHANGED
@@ -924,7 +924,7 @@ this.Function = globalThis.Function;
924
924
  `,this.errorIndex=this.startTagIndex),this.readState=it.error,this.removeOverflowingTextNodes();return}}if(this.nextElement[DI]&&!this.nextElement[ve]){this.errorMessage=`Namespace prefix ${this.nextElement[DI]} on name is not defined
925
925
  `,this.errorIndex=this.lastIndex,this.readState=it.error;return}if(this.currentNode===this.rootNode&&this.rootNode[iI].length!==0){this.errorMessage=`Extra content at the end of the document
926
926
  `,this.errorIndex=this.lastIndex-this.nextElement[Ee].length-1,this.readState=it.error;return}this.currentNode[QI](this.nextElement,!0),I||(this.currentNode=this.nextElement,this.nodeStack.push(this.currentNode),this.tagNameStack.push(this.nextTagName),this.currentNode[ve]&&!this.currentNode[DI]?this.defaultNamespaceStack.push(this.currentNode[ve]):this.defaultNamespaceStack.push(this.defaultNamespaceStack[this.defaultNamespaceStack.length-1])),this.nextElement=null,this.nextTagName=null,this.readState=it.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,I){let l=this.rootNode.documentElement;if(!l){let r=this.rootNode.createElementNS(lt.html,"html"),o=this.rootNode.createElementNS(lt.html,"body");r.appendChild(o),l=o,this.rootNode[QI](r,!0)}let n=e.split(`
927
- `),c=n[n.length-1].length+1,a=`error on line ${n.length} at column ${c}: ${I||"Unknown error"}`,s=this.rootNode.createElementNS(lt.html,"parsererror");s.setAttribute("style","display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color: black"),s.innerHTML=`<h3>This page contains the following errors:</h3><div style="font-family:monospace;font-size:12px">${a}</div><h3>Below is a rendering of the page up to the first error.</h3>`,l.insertBefore(s,l.firstChild)}removeOverflowingTextNodes(){if(this.currentNode&&this.currentNode!==this.rootNode)for(;this.currentNode.lastChild?.[se]===bI.TEXT_NODE;)this.currentNode.removeChild(this.currentNode.lastChild)}getDocumentType(e){if(!e.toUpperCase().startsWith("DOCTYPE"))return null;let I=e.split(Tk);if(I.length<=1)return null;let l=I.slice(1).join(" "),n=[],c=new RegExp(X4I,"gm"),a=l.toUpperCase().includes("PUBLIC"),s;for(;s=c.exec(l);)n.push(s[1]);let r=a&&n[0]||"",o=a?n[1]||"":n[0]||"";return{name:I[1].toLowerCase(),publicId:r,systemId:o}}};var SH=class{parseFromString(e,I){if(!I)throw new this[W].DOMException('Second parameter "mimeType" is mandatory.');let l=this[W];switch(I){case"text/html":let n=new l.HTMLDocument;return n[fs]=l,new ca(this[W]).parse(e,n);case"image/svg+xml":case"text/xml":case"application/xml":case"application/xhtml+xml":return new UH(this[W]).parse(e);default:throw new l.DOMException(`Unknown mime type "${I}".`)}}};G();G();var kie;(function(t){t[t.endToEnd=2]="endToEnd",t[t.endToStart=3]="endToStart",t[t.startToEnd=1]="startToEnd",t[t.startToStart=0]="startToStart"})(kie||(kie={}));var Fc=kie;var OH=class{static END_TO_END=Fc.endToEnd;static END_TO_START=Fc.endToStart;static START_TO_END=Fc.startToEnd;static START_TO_START=Fc.startToStart;END_TO_END=Fc.endToEnd;END_TO_START=Fc.endToStart;START_TO_END=Fc.startToEnd;START_TO_START=Fc.startToStart;[re];[We];[S];constructor(){let e=this[W];if(!e)throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);this[S]=e.document,this[re]={node:e.document,offset:0},this[We]={node:e.document,offset:0}}get startContainer(){return this[re].node}get endContainer(){return this[We].node}get startOffset(){if(this[re].offset>0){let e=uI.getNodeLength(this[re].node);this[re].offset>e&&(this[re].offset=e)}return this[re].offset}get endOffset(){if(this[We].offset>0){let e=uI.getNodeLength(this[We].node);this[We].offset>e&&(this[We].offset=e)}return this[We].offset}get collapsed(){return this[re].node===this[We].node&&this.startOffset===this.endOffset}get commonAncestorContainer(){let e=this[re].node;for(;e;){if(uI.isInclusiveAncestor(e,this[We].node))return e;e=e[he]}return null}collapse(e=!1){e?this[We]=Object.assign({},this[re]):this[re]=Object.assign({},this[We])}compareBoundaryPoints(e,I){if(e!==Fc.startToStart&&e!==Fc.startToEnd&&e!==Fc.endToEnd&&e!==Fc.endToStart)throw new this[W].DOMException(`The comparison method provided must be one of '${Fc.startToStart}', '${Fc.startToEnd}', '${Fc.endToEnd}' or '${Fc.endToStart}'.`,x.notSupportedError);if(this[S]!==I[S])throw new this[W].DOMException("The two Ranges are not in the same tree.",x.wrongDocumentError);let l={node:null,offset:0},n={node:null,offset:0};switch(e){case Fc.startToStart:l.node=this[re].node,l.offset=this.startOffset,n.node=I[re].node,n.offset=I.startOffset;break;case Fc.startToEnd:l.node=this[We].node,l.offset=this.endOffset,n.node=I[re].node,n.offset=I.startOffset;break;case Fc.endToEnd:l.node=this[We].node,l.offset=this.endOffset,n.node=I[We].node,n.offset=I.endOffset;break;case Fc.endToStart:l.node=this[re].node,l.offset=this.startOffset,n.node=I[We].node,n.offset=I.endOffset;break}return nl.compareBoundaryPointsPosition(l,n)}comparePoint(e,I){if(e[S]!==this[S])throw new this[W].DOMException("The two Ranges are not in the same tree.",x.wrongDocumentError);nl.validateBoundaryPoint({node:e,offset:I});let l={node:e,offset:I};return nl.compareBoundaryPointsPosition(l,{node:this[re].node,offset:this.startOffset})===-1?-1:nl.compareBoundaryPointsPosition(l,{node:this[We].node,offset:this.endOffset})===1?1:0}cloneContents(){let e=this[W],I=this[S].createDocumentFragment(),l=this.startOffset,n=this.endOffset;if(this.collapsed)return I;if(this[re].node===this[We].node&&(this[re].node[se]===D.textNode||this[re].node[se]===D.processingInstructionNode||this[re].node[se]===D.commentNode)){let o=this[re].node.cloneNode(!1);return o[ft]=o.substringData(l,n-l),I.appendChild(o),I}let c=this[re].node;for(;!uI.isInclusiveAncestor(c,this[We].node);)c=c[he];let a=null;if(!uI.isInclusiveAncestor(this[re].node,this[We].node)){let o=c.firstChild;for(;!a;)nl.isPartiallyContained(o,this)&&(a=o),o=o.nextSibling}let s=null;if(!uI.isInclusiveAncestor(this[We].node,this[re].node)){let o=c.lastChild;for(;!s;)nl.isPartiallyContained(o,this)&&(s=o),o=o.previousSibling}let r=[];for(let o of c[be])if(nl.isContained(o,this)){if(o[se]===D.documentTypeNode)throw new e.DOMException("Invalid document type element.",x.hierarchyRequestError);r.push(o)}if(a!==null&&(a[se]===D.textNode||a[se]===D.processingInstructionNode||a[se]===D.commentNode)){let o=this[re].node.cloneNode(!1);o[ft]=o.substringData(l,uI.getNodeLength(this[re].node)-l),I.appendChild(o)}else if(a!==null){let o=a.cloneNode();I.appendChild(o);let d=new e.Range;d[re].node=this[re].node,d[re].offset=l,d[We].node=a,d[We].offset=uI.getNodeLength(a);let i=d.cloneContents();o.appendChild(i)}for(let o of r){let d=o.cloneNode(!0);I.appendChild(d)}if(s!==null&&(s[se]===D.textNode||s[se]===D.processingInstructionNode||s[se]===D.commentNode)){let o=this[We].node.cloneNode(!1);o[ft]=o.substringData(0,n),I.appendChild(o)}else if(s!==null){let o=s.cloneNode(!1);I.appendChild(o);let d=new e.Range;d[re].node=s,d[re].offset=0,d[We].node=this[We].node,d[We].offset=n;let i=d.cloneContents();o.appendChild(i)}return I}cloneRange(){let e=new this[W].Range;return e[re].node=this[re].node,e[re].offset=this[re].offset,e[We].node=this[We].node,e[We].offset=this[We].offset,e}createContextualFragment(e){return new ca(this[W]).parse(e)}deleteContents(){let e=this.startOffset,I=this.endOffset;if(this.collapsed)return;if(this[re].node===this[We].node&&(this[re].node[se]===D.textNode||this[re].node[se]===D.processingInstructionNode||this[re].node[se]===D.commentNode)){this[re].node.replaceData(e,I-e,"");return}let l=[],n=this[re].node,c=uI.nextDescendantNode(this[We].node);for(;n&&n!==c;)nl.isContained(n,this)&&!nl.isContained(n[he],this)&&l.push(n),n=uI.following(n);let a,s;if(uI.isInclusiveAncestor(this[re].node,this[We].node))a=this[re].node,s=e;else{let r=this[re].node;for(;r&&!uI.isInclusiveAncestor(r[he],this[We].node);)r=r[he];a=r[he],s=r[he][be].indexOf(r)+1}(this[re].node[se]===D.textNode||this[re].node[se]===D.processingInstructionNode||this[re].node[se]===D.commentNode)&&this[re].node.replaceData(this.startOffset,uI.getNodeLength(this[re].node)-this.startOffset,"");for(let r of l)r[he].removeChild(r);(this[We].node[se]===D.textNode||this[We].node[se]===D.processingInstructionNode||this[We].node[se]===D.commentNode)&&this[We].node.replaceData(0,I,""),this[re].node=a,this[re].offset=s,this[We].node=a,this[We].offset=s}detach(){}extractContents(){let e=this[W],I=this[S].createDocumentFragment(),l=this.startOffset,n=this.endOffset;if(this.collapsed)return I;if(this[re].node===this[We].node&&(this[re].node[se]===D.textNode||this[re].node[se]===D.processingInstructionNode||this[re].node[se]===D.commentNode)){let i=this[re].node.cloneNode(!1);return i[ft]=i.substringData(l,n-l),I.appendChild(i),this[re].node.replaceData(l,n-l,""),I}let c=this[re].node;for(;!uI.isInclusiveAncestor(c,this[We].node);)c=c[he];let a=null;if(!uI.isInclusiveAncestor(this[re].node,this[We].node)){let i=c.firstChild;for(;!a;)nl.isPartiallyContained(i,this)&&(a=i),i=i.nextSibling}let s=null;if(!uI.isInclusiveAncestor(this[We].node,this[re].node)){let i=c.lastChild;for(;!s;)nl.isPartiallyContained(i,this)&&(s=i),i=i.previousSibling}let r=[];for(let i of c[be])if(nl.isContained(i,this)){if(i[se]===D.documentTypeNode)throw new this[W].DOMException("Invalid document type element.",x.hierarchyRequestError);r.push(i)}let o,d;if(uI.isInclusiveAncestor(this[re].node,this[We].node))o=this[re].node,d=l;else{let i=this[re].node;for(;i&&!uI.isInclusiveAncestor(i[he],this[We].node);)i=i[he];o=i[he],d=i[he][be].indexOf(i)+1}if(a!==null&&(a[se]===D.textNode||a[se]===D.processingInstructionNode||a[se]===D.commentNode)){let i=this[re].node.cloneNode(!1);i[ft]=i.substringData(l,uI.getNodeLength(this[re].node)-l),I.appendChild(i),this[re].node.replaceData(l,uI.getNodeLength(this[re].node)-l,"")}else if(a!==null){let i=a.cloneNode(!1);I.appendChild(i);let h=new e.Range;h[re].node=this[re].node,h[re].offset=l,h[We].node=a,h[We].offset=uI.getNodeLength(a);let p=h.extractContents();i.appendChild(p)}for(let i of r)I.appendChild(i);if(s!==null&&(s[se]===D.textNode||s[se]===D.processingInstructionNode||s[se]===D.commentNode)){let i=this[We].node.cloneNode(!1);i[ft]=i.substringData(0,n),I.appendChild(i),this[We].node.replaceData(0,n,"")}else if(s!==null){let i=s.cloneNode(!1);I.appendChild(i);let h=new e.Range;h[re].node=s,h[re].offset=0,h[We].node=this[We].node,h[We].offset=n;let p=h.extractContents();i.appendChild(p)}return this[re].node=o,this[re].offset=d,this[We].node=o,this[We].offset=d,I}getBoundingClientRect(){return new Kd}getClientRects(){return new n0(V)}isPointInRange(e,I=0){if(e[S]!==this[S])return!1;let l={node:e,offset:I};return nl.validateBoundaryPoint(l),!(nl.compareBoundaryPointsPosition(l,{node:this[re].node,offset:this.startOffset})===-1||nl.compareBoundaryPointsPosition(l,{node:this[We].node,offset:this.endOffset})===1)}insertNode(e){if(this[re].node[se]===D.processingInstructionNode||this[re].node[se]===D.commentNode||this[re].node[se]===D.textNode&&!this[re].node[he]||e===this[re].node)throw new this[W].DOMException("Invalid start node.",x.hierarchyRequestError);let I=this[re].node[se]===D.textNode?this[re].node:this[re].node[be][this.startOffset]||null,l=I?I[he]:this[re].node;this[re].node[se]===D.textNode&&(I=this[re].node.splitText(this.startOffset)),e===I&&(I=I.nextSibling);let n=e[he];n&&n.removeChild(e);let c=I?I[he][be].indexOf(I):uI.getNodeLength(l);c+=e[se]===D.documentFragmentNode?uI.getNodeLength(e):1,l.insertBefore(e,I),this.collapsed&&(this[We].node=l,this[We].offset=c)}intersectsNode(e){if(e[S]!==this[S])return!1;let I=e[he];if(!I)return!0;let l=I[be].indexOf(e);return nl.compareBoundaryPointsPosition({node:I,offset:l},{node:this[We].node,offset:this.endOffset})===-1&&nl.compareBoundaryPointsPosition({node:I,offset:l+1},{node:this[re].node,offset:this.startOffset})===1}selectNode(e){if(!e[he])throw new this[W].DOMException("The given Node has no parent.",x.invalidNodeTypeError);let I=e[he][be].indexOf(e);this[re].node=e[he],this[re].offset=I,this[We].node=e[he],this[We].offset=I+1}selectNodeContents(e){if(e[se]===D.documentTypeNode)throw new this[W].DOMException("DocumentType Node can't be used as boundary point.",x.invalidNodeTypeError);this[re].node=e,this[re].offset=0,this[We].node=e,this[We].offset=uI.getNodeLength(e)}setEnd(e,I=0){nl.validateBoundaryPoint({node:e,offset:I});let l={node:e,offset:I};(e[S]!==this[S]||nl.compareBoundaryPointsPosition(l,{node:this[re].node,offset:this.startOffset})===-1)&&(this[re].node=e,this[re].offset=I),this[We].node=e,this[We].offset=I}setStart(e,I=0){nl.validateBoundaryPoint({node:e,offset:I});let l={node:e,offset:I};(e[S]!==this[S]||nl.compareBoundaryPointsPosition(l,{node:this[We].node,offset:this.endOffset})===1)&&(this[We].node=e,this[We].offset=I),this[re].node=e,this[re].offset=I}setEndAfter(e){if(!e[he])throw new this[W].DOMException("The given Node has no parent.",x.invalidNodeTypeError);this.setEnd(e[he],e[he][be].indexOf(e)+1)}setEndBefore(e){if(!e[he])throw new this[W].DOMException("The given Node has no parent.",x.invalidNodeTypeError);this.setEnd(e[he],e[he][be].indexOf(e))}setStartAfter(e){if(!e[he])throw new this[W].DOMException("The given Node has no parent.",x.invalidNodeTypeError);this.setStart(e[he],e[he][be].indexOf(e)+1)}setStartBefore(e){if(!e[he])throw new this[W].DOMException("The given Node has no parent.",x.invalidNodeTypeError);this.setStart(e[he],e[he][be].indexOf(e))}surroundContents(e){let I=this.commonAncestorContainer;if(!I)return;let l=uI.nextDescendantNode(I);for(;I&&I!==l;){if(I[se]!==D.textNode&&nl.isPartiallyContained(I,this))throw new this[W].DOMException("The Range has partially contains a non-Text node.",x.invalidStateError);I=uI.following(I)}if(e[se]===D.documentNode||e[se]===D.documentTypeNode||e[se]===D.documentFragmentNode)throw new this[W].DOMException("Invalid element type.",x.invalidNodeTypeError);let n=this.extractContents();for(;e.firstChild;)e.removeChild(e.firstChild);this.insertNode(e),e.appendChild(n),this.selectNode(e)}toString(){let e=this.startOffset,I=this.endOffset,l="";if(this[re].node===this[We].node&&this[re].node[se]===D.textNode)return this[re].node.data.slice(e,I);this[re].node[se]===D.textNode&&(l+=this[re].node.data.slice(e));let n=uI.nextDescendantNode(this[We].node),c=this[re].node;for(;c&&c!==n;)c[se]===D.textNode&&nl.isContained(c,this)&&(l+=c.data),c=uI.following(c);return this[We].node[se]===D.textNode&&(l+=this[We].node.data.slice(0,I)),l}};G();G();var jY=class extends tt{id="";startTime=0;endTime=0;pauseOnExit=!1;[Pw]=null;onenter=null;onexit=null;constructor(e){if(super(),e!==V)throw new TypeError("Illegal constructor");if(!this[W])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get track(){return this[Pw]}};var MH=class extends jY{region=null;vertical="";snapToLines=!0;line=0;lineAlign="";position="auto";positionAlign="auto";size=100;align="";text="";constructor(e,I,l){super(V);let n=this[W],c=0;if(e!==void 0&&c++,I!==void 0&&c++,l!==void 0&&c++,c<3)throw new n.TypeError(`Failed to construct 'VTTCue': 3 arguments required, but only ${c} present.`);if(e=Number(e),I=Number(I),isNaN(e)||isNaN(I))throw new n.TypeError("Failed to construct 'VTTCue': The provided double value is non-finite.");this.startTime=e,this.endTime=I,this.text=String(l)}getCueAsHTML(){let e=this[W],I=e.document.createDocumentFragment();return I.appendChild(e.document.createTextNode(this.text)),I}};G();var TH=class extends tt{[EG]=kh.subtitles;[zZ]="";[Cy]="";[jL]="";[Bl]="disabled";[vy]=new iu(V);[Dde]=new iu(V);oncuechange=null;constructor(e){if(super(),e!==V)throw new TypeError("Illegal constructor");if(!this[W])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get kind(){return this[EG]}get label(){return this[zZ]}get language(){return this[Cy]}get id(){return this[jL]}get mode(){return this[Bl]}set mode(e){e!=="disabled"&&e!=="showing"||(this[Bl]=e)}get cues(){return this[Bl]==="disabled"?null:this[vy]}get activeCues(){return this[Bl]==="disabled"?null:this[Dde]}addCue(e){this[vy].includes(e)||(e[Pw]=this,this[vy].push(e))}removeCue(e){let I=this[vy].indexOf(e);I!==-1&&(e[Pw]=null,this[vy].splice(I,1))}};G();var jH=class t extends tt{[Ye]=[];onaddtrack=null;onchange=null;onremovetrack=null;constructor(e,I){if(super(),e!==V)throw new TypeError("Illegal constructor");this[Ye]=I;let l=new Zl(this,[t,tt]);return new Proxy(this,{get:(n,c)=>{if(c==="length")return I.length;if(c in n||typeof c=="symbol")return l.bind(c),n[c];let a=Number(c);if(!isNaN(a))return I[a]},set(n,c,a){if(l.bind(c),typeof c=="symbol")return n[c]=a,!0;let s=Number(c);return isNaN(s)&&(n[c]=a),!0},deleteProperty(n,c){if(typeof c=="symbol")return delete n[c],!0;let a=Number(c);return isNaN(a)&&delete n[c],!0},ownKeys(){return Object.keys(I)},has(n,c){if(c in n)return!0;if(typeof c=="symbol")return!1;let a=Number(c);return!isNaN(a)&&a>=0&&a<I.length},defineProperty(n,c,a){return l.preventBinding(c),c in n?(Object.defineProperty(n,c,a),!0):!1},getOwnPropertyDescriptor(n,c){if(c in n||typeof c=="symbol")return;let a=Number(c);if(!isNaN(a)&&I[a])return{value:I[a],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[Ye].length}get[Symbol.toStringTag](){return"TextTrackList"}toLocaleString(){return"[object TextTrackList]"}toString(){return"[object TextTrackList]"}[Symbol.iterator](){return this[Ye][Symbol.iterator]()}getTrackById(e){for(let I of this[Ye])if(I.id===e)return I;return null}};G();var DH=class extends tt{[Kde]="disconnected";onconnecting=null;onconnect=null;ondisconnect=null;get state(){return this[Kde]}async watchAvailability(){}cancelWatchAvailability(){}prompt(){}};G();var Lze=rn(Jze(),1);G();var Bie;(function(t){t[t.empty=0]="empty",t[t.loading=1]="loading",t[t.done=2]="done"})(Bie||(Bie={}));var mu=Bie;G();var zie;(function(t){t.buffer="buffer",t.binaryString="binaryString",t.dataURL="dataURL",t.text="text"})(zie||(zie={}));var hu=zie;G();var Uie;(function(t){t.abort="abort",t.error="error",t.load="load",t.loadstart="loadstart",t.loadend="loadend",t.progress="progress"})(Uie||(Uie={}));var p0=Uie;import{Buffer as S4I}from"buffer";var KH=class extends tt{error=null;result=null;readyState=mu.empty;onabort=null;onerror=null;onload=null;onloadstart=null;onloadend=null;onprogress=null;#e=!1;#I=null;#t=null;constructor(){if(super(),!this[W])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}readAsArrayBuffer(e){if(!(e instanceof sl))throw new this[W].TypeError("Failed to execute 'readAsArrayBuffer' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#l(e,hu.buffer)}readAsBinaryString(e){if(!(e instanceof sl))throw new this[W].TypeError("Failed to execute 'readAsBinaryString' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#l(e,hu.binaryString)}readAsDataURL(e){if(!(e instanceof sl))throw new this[W].TypeError("Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#l(e,hu.dataURL)}readAsText(e,I=null){if(!(e instanceof sl))throw new this[W].TypeError("Failed to execute 'readAsText' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#l(e,hu.text,I||"UTF-8")}abort(){let e=this[W];if(this.#I&&e.clearTimeout(this.#I),this.#t&&e.clearTimeout(this.#t),this.readyState===mu.empty||this.readyState===mu.done){this.result=null;return}this.readyState===mu.loading&&(this.readyState=mu.done,this.result=null),this.#e=!0,this.dispatchEvent(new fr(p0.abort)),this.dispatchEvent(new fr(p0.loadend))}#l(e,I,l=null){let n=this[W];if(this.readyState===mu.loading)throw new n.DOMException("The object is in an invalid state.",x.invalidStateError);this.readyState=mu.loading,this.#I=n.setTimeout(()=>{if(this.#e){this.#e=!1;return}this.dispatchEvent(new fr(p0.loadstart));let c=e[$I];c||(c=S4I.alloc(0)),this.dispatchEvent(new fr(p0.loadstart,{lengthComputable:!isNaN(e.size),total:e.size,loaded:c.length})),this.#t=n.setTimeout(()=>{if(this.#e){this.#e=!1;return}switch(I){default:case hu.buffer:{this.result=new Uint8Array(c).buffer;break}case hu.binaryString:{this.result=c.toString("binary");break}case hu.dataURL:{let a=Lze.default.parse(e.type)||"application/octet-stream";this.result=`data:${a};base64,${c.toString("base64")}`;break}case hu.text:{this.result=new TextDecoder(l||"UTF-8").decode(c);break}}this.readyState=mu.done,this.dispatchEvent(new fr(p0.load)),this.dispatchEvent(new fr(p0.loadend))})})}};G();import O4I from"crypto";var M4I={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}},T4I={deviceId:"",frameRate:60,resizeMode:"none"},KY=class extends tt{contentHint="";enabled=!0;id=O4I.randomUUID();muted=!1;readyState="live";label="";[zZ]="";[EG]="video";[Dw]={};[cb]=JSON.parse(JSON.stringify(M4I));[lY]=JSON.parse(JSON.stringify(T4I));onended=null;onmute=null;onunmute=null;constructor(e){if(super(),e!==V)throw new TypeError("Illegal constructor");if(!this[W])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get kind(){return this[EG]}async applyConstraints(e){this.#e(this[Dw],e)}getConstraints(){return this[Dw]}getCapabilities(){return this[cb]}getSettings(){return this[lY]}clone(){let e=new this.constructor(V);return e[EG]=this[EG],e[Dw]=this[Dw],e[cb]=this[cb],e[lY]=this[lY],e.contentHint=this.contentHint,e.enabled=this.enabled,e.label=this.label,e.muted=this.muted,e.readyState=this.readyState,e}stop(){this.readyState="ended"}#e(e,I){for(let l in I)I[l]!==null&&typeof I[l]=="object"&&!Array.isArray(I[l])?(typeof e[l]!="object"&&(e[l]={}),this.#e(e[l],I[l])):e[l]=I[l]}};G();var Dk=class extends KY{[DL];constructor(e,I){super(e),this[DL]=I}get canvas(){return this[DL]}requestFrame(){}clone(){let e=super.clone();return e[DL]=this.canvas,e}};var Kk=class{static extendClasses(e){class I extends Ur{}I.prototype[W]=e,e.Document=I;class l extends XH{}l.prototype[W]=e,e.HTMLDocument=l;class n extends HH{}n.prototype[W]=e,e.XMLDocument=n;class c extends MY{}c.prototype[W]=e,e.DocumentFragment=c;class a extends EH{}a.prototype[W]=e,e.Text=a;class s extends vH{}s.prototype[W]=e,e.Comment=s;class r extends CH{}r.prototype[W]=e,e.Image=r;class o extends zk{}o.prototype[W]=e,e.Audio=o;class d extends JH{}d.prototype[W]=e,e.MutationObserver=d;class i extends Sk{}i.prototype[W]=e,e.MessagePort=i;class h extends kH{}h.prototype[W]=e,e.CSSStyleSheet=h;class p extends It{}e.DOMException=p;class Z extends HY{}Z.prototype[W]=e,e.Request=Z;class u extends xr{}u.prototype[W]=e,u[W]=e,e.Response=u;class N extends tt{}N.prototype[W]=e,e.EventTarget=N;class Y extends Ok{}Y.prototype[W]=e,e.XMLHttpRequestUpload=Y;class y extends bu{}y.prototype[W]=e,e.XMLHttpRequestEventTarget=y;class Q extends fH{}Q.prototype[W]=e,e.AbortController=Q;class A extends xH{}A.prototype[W]=e,A[W]=e,e.AbortSignal=A;class w extends wY{}w.prototype[W]=e,e.FormData=w;class f extends BH{}f.prototype[W]=e,e.PermissionStatus=f;class J extends Mk{}J.prototype[W]=e,e.XMLHttpRequest=J;class H extends SH{}H.prototype[W]=e,e.DOMParser=H;class v extends OH{}v.prototype[W]=e,e.Range=v;class U extends MH{}U.prototype[W]=e,e.VTTCue=U;class O extends TH{}O.prototype[W]=e,e.TextTrack=O;class ce extends jH{}ce.prototype[W]=e,e.TextTrackList=ce;class Fe extends jY{}Fe.prototype[W]=e,e.TextTrackCue=Fe;class ye extends DH{}ye.prototype[W]=e,e.RemotePlayback=ye;class Xe extends KH{}Xe.prototype[W]=e,e.FileReader=Xe;class He extends LY{}He.prototype[W]=e,e.MediaStream=He;class ie extends KY{}ie.prototype[W]=e,e.MediaStreamTrack=ie;class Ze extends Dk{}Ze.prototype[W]=e,e.CanvasCaptureMediaStreamTrack=Ze;class II extends Kl{}II.prototype[W]=e,e.URL=II}};G();G();G();G();G();G();var Pk=class{[P]=0;[q]=0;[ss]=0;[Jy]=1;constructor(e,I,l,n){this[P]=e!=null?Number(e):0,this[q]=I!=null?Number(I):0,this[ss]=l!=null?Number(l):0,this[Jy]=n!=null?Number(n):1}get x(){return this[P]}get y(){return this[q]}get z(){return this[ss]}get w(){return this[Jy]}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 Z0=class extends Pk{set x(e){this[P]=e}get x(){return this[P]}set y(e){this[q]=e}get y(){return this[q]}set z(e){this[ss]=e}get z(){return this[ss]}set w(e){this[Jy]=e}get w(){return this[Jy]}};var PH={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},j4I=/([a-zA-Z0-9]+)\(([^)]+)\)/gm,D4I=/[\s,]+/,u0=class t{[MI]=1;[KI]=0;[At]=0;[wt]=0;[TI]=0;[PI]=1;[Xt]=0;[Ht]=0;[ot]=0;[Nt]=0;[Yt]=1;[dt]=0;[jI]=0;[qI]=0;[Vt]=0;[Rt]=1;constructor(e){e&&this[qw](e)}get a(){return this[MI]}get b(){return this[KI]}get c(){return this[TI]}get d(){return this[PI]}get e(){return this[jI]}get f(){return this[qI]}get m11(){return this[MI]}get m12(){return this[KI]}get m13(){return this[At]}get m14(){return this[wt]}get m21(){return this[TI]}get m22(){return this[PI]}get m23(){return this[Xt]}get m24(){return this[Ht]}get m31(){return this[ot]}get m32(){return this[Nt]}get m33(){return this[Yt]}get m34(){return this[dt]}get m41(){return this[jI]}get m42(){return this[qI]}get m43(){return this[Vt]}get m44(){return this[Rt]}get isIdentity(){return this[MI]===1&&this[KI]===0&&this[At]===0&&this[wt]===0&&this[TI]===0&&this[PI]===1&&this[Xt]===0&&this[Ht]===0&&this[ot]===0&&this[Nt]===0&&this[Yt]===1&&this[dt]===0&&this[jI]===0&&this[qI]===0&&this[Vt]===0&&this[Rt]===1}get is2D(){return this[ot]===0&&this[Nt]===0&&this[Yt]===1&&this[dt]===0&&this[Vt]===0&&this[Rt]===1}toFloat32Array(e){return Float32Array.from(this[R3](e))}toFloat64Array(e){return Float64Array.from(this[R3](e))}toString(){let e=this.is2D,I=this[R3](e).join(", ");return`${e?"matrix":"matrix3d"}(${I})`}toJSON(){let{is2D:e,isIdentity:I}=this;return{m11:this[MI],m12:this[KI],m13:this[At],m14:this[wt],m21:this[TI],m22:this[PI],m23:this[Xt],m24:this[Ht],m31:this[ot],m32:this[Nt],m33:this[Yt],m34:this[dt],m41:this[jI],m42:this[qI],m43:this[Vt],m44:this[Rt],a:this[MI],b:this[KI],c:this[TI],d:this[PI],e:this[jI],f:this[qI],is2D:e,isIdentity:I}}multiply(e){let I=new this.constructor(this);return I[JG](e),I}translate(e=0,I=0,l=0){let n=new this.constructor(this);return n[CG](e,I,l),n}scale(e,I,l=1,n=0,c=0,a=0){let s=new this.constructor(this);return s[Wh](e,I,l,n,c,a),s}scale3d(e=1,I=0,l=0,n=0){let c=new this.constructor(this);return c[y3](e,I,l,n),c}scaleNonUniform(e=1,I=1){let l=new this.constructor(this);return l[F3](e,I),l}rotateAxisAngle(e=0,I=0,l=0,n=0){let c=new this.constructor(this);return c[OZ](e,I,l,n),c}rotate(e=0,I,l){let n=new this.constructor(this);return n[SZ](e,I,l),n}rotateFromVector(e=0,I=0){let l=new this.constructor(this);return l[ak](e,I),l}skewX(e){let I=new this.constructor(this);return I[ky](e),I}skewY(e){let I=new this.constructor(this);return I[fy](e),I}flipX(){let e=new this.constructor(this);return e[sk](),e}flipY(){let e=new this.constructor(this);return e[rk](),e}inverse(){let e=new this.constructor(this);return e[Gk](),e}transformPoint(e){let I=e.x??0,l=e.y??0,n=e.z??0,c=e.w??1,a=this[MI]*I+this[TI]*l+this[ot]*n+this[jI]*c,s=this[KI]*I+this[PI]*l+this[Nt]*n+this[qI]*c,r=this[At]*I+this[Xt]*l+this[Yt]*n+this[Vt]*c,o=this[wt]*I+this[Ht]*l+this[dt]*n+this[Rt]*c;return new Z0(a,s,r,o)}[qw](e){let I=null;if(typeof e=="string"&&e.length&&e!=="none")I=this.constructor[Ly](e);else if(Array.isArray(e)||e instanceof Float64Array||e instanceof Float32Array)I=this.constructor[vG](e);else if(typeof e=="object")I=this.constructor.fromMatrix(e);else return;this[MI]=I[MI],this[KI]=I[KI],this[At]=I[At],this[wt]=I[wt],this[TI]=I[TI],this[PI]=I[PI],this[Xt]=I[Xt],this[Ht]=I[Ht],this[ot]=I[ot],this[Nt]=I[Nt],this[Yt]=I[Yt],this[dt]=I[dt],this[jI]=I[jI],this[qI]=I[qI],this[Vt]=I[Vt],this[Rt]=I[Rt]}[JG](e){let I=e;I instanceof t||(I?.m11===void 0&&I?.a!==void 0?(I=Object.assign({},PH,I),I.m11=I.a,I.m12=I.b,I.m21=I.c,I.m22=I.d,I.m41=I.e,I.m42=I.f):I=Object.assign({},PH,I));let l=this[MI]*I.m11+this[TI]*I.m12+this[ot]*I.m13+this[jI]*I.m14,n=this[MI]*I.m21+this[TI]*I.m22+this[ot]*I.m23+this[jI]*I.m24,c=this[MI]*I.m31+this[TI]*I.m32+this[ot]*I.m33+this[jI]*I.m34,a=this[MI]*I.m41+this[TI]*I.m42+this[ot]*I.m43+this[jI]*I.m44,s=this[KI]*I.m11+this[PI]*I.m12+this[Nt]*I.m13+this[qI]*I.m14,r=this[KI]*I.m21+this[PI]*I.m22+this[Nt]*I.m23+this[qI]*I.m24,o=this[KI]*I.m31+this[PI]*I.m32+this[Nt]*I.m33+this[qI]*I.m34,d=this[KI]*I.m41+this[PI]*I.m42+this[Nt]*I.m43+this[qI]*I.m44,i=this[At]*I.m11+this[Xt]*I.m12+this[Yt]*I.m13+this[Vt]*I.m14,h=this[At]*I.m21+this[Xt]*I.m22+this[Yt]*I.m23+this[Vt]*I.m24,p=this[At]*I.m31+this[Xt]*I.m32+this[Yt]*I.m33+this[Vt]*I.m34,Z=this[At]*I.m41+this[Xt]*I.m42+this[Yt]*I.m43+this[Vt]*I.m44,u=this[wt]*I.m11+this[Ht]*I.m12+this[dt]*I.m13+this[Rt]*I.m14,N=this[wt]*I.m21+this[Ht]*I.m22+this[dt]*I.m23+this[Rt]*I.m24,Y=this[wt]*I.m31+this[Ht]*I.m32+this[dt]*I.m33+this[Rt]*I.m34,y=this[wt]*I.m41+this[Ht]*I.m42+this[dt]*I.m43+this[Rt]*I.m44;this[MI]=l,this[KI]=s,this[At]=i,this[wt]=u,this[TI]=n,this[PI]=r,this[Xt]=h,this[Ht]=N,this[ot]=c,this[Nt]=o,this[Yt]=p,this[dt]=Y,this[jI]=a,this[qI]=d,this[Vt]=Z,this[Rt]=y}[CG](e=0,I=0,l=0){let n=this.constructor[vG]([1,0,0,0,0,1,0,0,0,0,1,0,e,I,l,1]);this[JG](n)}[Wh](e,I,l=1,n=0,c=0,a=0){e=e===void 0?1:Number(e),I=I===void 0?e:Number(I),(n!==0||c!==0||a!==0)&&this[CG](n,c,a),(e!==1||I!==1||l!==1)&&this[JG](this.constructor[vG]([e,0,0,0,0,I,0,0,0,0,l,0,0,0,0,1])),(n!==0||c!==0||a!==0)&&this[CG](-n,-c,-a)}[y3](e=1,I=0,l=0,n=0){(I!==0||l!==0||n!==0)&&this[CG](I,l,n),e!==1&&this[JG](this.constructor[vG]([e,0,0,0,0,e,0,0,0,0,e,0,0,0,0,1])),(I!==0||l!==0||n!==0)&&this[CG](-I,-l,-n)}[F3](e=1,I=1){e===1&&I===1||this[JG](this.constructor[vG]([e,0,0,0,0,I,0,0,0,0,1,0,0,0,0,1]))}[OZ](e=0,I=0,l=0,n=0){if(e=Number(e),I=Number(I),l=Number(l),n=Number(n),isNaN(e)||isNaN(I)||isNaN(l)||isNaN(n))throw new TypeError("Failed to execute 'rotateAxisAngleSelf' on 'DOMMatrix': The arguments must be numbers.");let c=Math.hypot(e,I,l);if(c===0)return;c!==1&&(e/=c,I/=c,l/=c);let a=-(n*Math.PI/360),s=this.#e,r=Math.sin(a)*Math.cos(a),o=Math.sin(a)*Math.sin(a),d=s(1-2*(I*I+l*l)*o),i=s(2*(e*I*o+l*r)),h=s(2*(e*l*o-I*r)),p=s(2*(e*I*o-l*r)),Z=s(1-2*(e*e+l*l)*o),u=s(2*(I*l*o+e*r)),N=s(2*(e*l*o+I*r)),Y=s(2*(I*l*o-e*r)),y=s(1-2*(e*e+I*I)*o),Q=this.constructor[vG]([d,p,N,0,i,Z,Y,0,h,u,y,0,0,0,0,1]);this[JG](Q)}[SZ](e=0,I,l){if(I===void 0&&l===void 0&&(l=e,e=0,I=0),I===void 0&&(I=0),l===void 0&&(l=0),e=Number(e),I=Number(I),l=Number(l),isNaN(e)||isNaN(I)||isNaN(l))throw new TypeError("Failed to execute 'rotateSelf' on 'DOMMatrix': The arguments must be numbers.");l!==0&&this[OZ](0,0,1,l),I!==0&&this[OZ](0,1,0,I),e!==0&&this[OZ](1,0,0,e)}[ak](e=0,I=0){e===0&&I===0||this[SZ](Math.atan2(I,e)*180/Math.PI)}[ky](e){let I=Object.assign({},PH),l=Math.tan(e*Math.PI/180);I.m21=l,I.c=l,this[JG](I)}[fy](e){let I=Object.assign({},PH),l=Math.tan(e*Math.PI/180);I.m12=l,I.b=l,this[JG](I)}[sk](){let e=this.constructor[vG]([-1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);this[JG](e)}[rk](){let e=this.constructor[vG]([1,0,0,0,0,-1,0,0,0,0,1,0,0,0,0,1]);this[JG](e)}[Gk](){let e=this[PI]*this[Yt]*this[Rt]-this[PI]*this[dt]*this[Vt]-this[Nt]*this[Xt]*this[Rt]+this[Nt]*this[Ht]*this[Vt]+this[qI]*this[Xt]*this[dt]-this[qI]*this[Ht]*this[Yt],I=-this[KI]*this[Yt]*this[Rt]+this[KI]*this[dt]*this[Vt]+this[Nt]*this[At]*this[Rt]-this[Nt]*this[wt]*this[Vt]-this[qI]*this[At]*this[dt]+this[qI]*this[wt]*this[Yt],l=this[KI]*this[Xt]*this[Rt]-this[KI]*this[Ht]*this[Vt]-this[PI]*this[At]*this[Rt]+this[PI]*this[wt]*this[Vt]+this[qI]*this[At]*this[Ht]-this[qI]*this[wt]*this[Xt],n=-this[KI]*this[Xt]*this[dt]+this[KI]*this[Ht]*this[Yt]+this[PI]*this[At]*this[dt]-this[PI]*this[wt]*this[Yt]-this[Nt]*this[At]*this[Ht]+this[Nt]*this[wt]*this[Xt],c=this[MI]*e+this[TI]*I+this[ot]*l+this[jI]*n;if(c===0){this[MI]=NaN,this[KI]=NaN,this[At]=NaN,this[wt]=NaN,this[TI]=NaN,this[PI]=NaN,this[Xt]=NaN,this[Ht]=NaN,this[ot]=NaN,this[Nt]=NaN,this[Yt]=NaN,this[dt]=NaN,this[jI]=NaN,this[qI]=NaN,this[Vt]=NaN,this[Rt]=NaN;return}let a=-this[TI]*this[Yt]*this[Rt]+this[TI]*this[dt]*this[Vt]+this[ot]*this[Xt]*this[Rt]-this[ot]*this[Ht]*this[Vt]-this[jI]*this[Xt]*this[dt]+this[jI]*this[Ht]*this[Yt],s=this[MI]*this[Yt]*this[Rt]-this[MI]*this[dt]*this[Vt]-this[ot]*this[At]*this[Rt]+this[ot]*this[wt]*this[Vt]+this[jI]*this[At]*this[dt]-this[jI]*this[wt]*this[Yt],r=-this[MI]*this[Xt]*this[Rt]+this[MI]*this[Ht]*this[Vt]+this[TI]*this[At]*this[Rt]-this[TI]*this[wt]*this[Vt]-this[jI]*this[At]*this[Ht]+this[jI]*this[wt]*this[Xt],o=this[MI]*this[Xt]*this[dt]-this[MI]*this[Ht]*this[Yt]-this[TI]*this[At]*this[dt]+this[TI]*this[wt]*this[Yt]+this[ot]*this[At]*this[Ht]-this[ot]*this[wt]*this[Xt],d=this[TI]*this[Nt]*this[Rt]-this[TI]*this[dt]*this[qI]-this[ot]*this[PI]*this[Rt]+this[ot]*this[Ht]*this[qI]+this[jI]*this[PI]*this[dt]-this[jI]*this[Ht]*this[Nt],i=-this[MI]*this[Nt]*this[Rt]+this[MI]*this[dt]*this[qI]+this[ot]*this[KI]*this[Rt]-this[ot]*this[wt]*this[qI]-this[jI]*this[KI]*this[dt]+this[jI]*this[wt]*this[Nt],h=this[MI]*this[PI]*this[Rt]-this[MI]*this[Ht]*this[qI]-this[TI]*this[KI]*this[Rt]+this[TI]*this[wt]*this[qI]+this[jI]*this[KI]*this[Ht]-this[jI]*this[wt]*this[PI],p=-this[MI]*this[PI]*this[dt]+this[MI]*this[Ht]*this[Nt]+this[TI]*this[KI]*this[dt]-this[TI]*this[wt]*this[Nt]-this[ot]*this[KI]*this[Ht]+this[ot]*this[wt]*this[PI],Z=-this[TI]*this[Nt]*this[Vt]+this[TI]*this[Yt]*this[qI]+this[ot]*this[PI]*this[Vt]-this[ot]*this[Xt]*this[qI]-this[jI]*this[PI]*this[Yt]+this[jI]*this[Xt]*this[Nt],u=this[MI]*this[Nt]*this[Vt]-this[MI]*this[Yt]*this[qI]-this[ot]*this[KI]*this[Vt]+this[ot]*this[At]*this[qI]+this[jI]*this[KI]*this[Yt]-this[jI]*this[At]*this[Nt],N=-this[MI]*this[PI]*this[Vt]+this[MI]*this[Xt]*this[qI]+this[TI]*this[KI]*this[Vt]-this[TI]*this[At]*this[qI]-this[jI]*this[KI]*this[Xt]+this[jI]*this[At]*this[PI],Y=this[MI]*this[PI]*this[Yt]-this[MI]*this[Xt]*this[Nt]-this[TI]*this[KI]*this[Yt]+this[TI]*this[At]*this[Nt]+this[ot]*this[KI]*this[Xt]-this[ot]*this[At]*this[PI];this[MI]=e/c||0,this[KI]=I/c||0,this[At]=l/c||0,this[wt]=n/c||0,this[TI]=a/c||0,this[PI]=s/c||0,this[Xt]=r/c||0,this[Ht]=o/c||0,this[ot]=d/c||0,this[Nt]=i/c||0,this[Yt]=h/c||0,this[dt]=p/c||0,this[jI]=Z/c||0,this[qI]=u/c||0,this[Vt]=N/c||0,this[Rt]=Y/c||0}[R3](e=!1){return e?[this[MI],this[KI],this[TI],this[PI],this[jI],this[qI]]:[this[MI],this[KI],this[At],this[wt],this[TI],this[PI],this[Xt],this[Ht],this[ot],this[Nt],this[Yt],this[dt],this[jI],this[qI],this[Vt],this[Rt]]}#e(e,I=1e15){return Math.round(e*I)/I}static fromMatrix(e){return e instanceof t||(e?.m11===void 0&&e?.a!==void 0?(e=Object.assign({},PH,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({},PH,e)),this[vG]([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[vG](e)}static fromFloat64Array(e){return this[vG](e)}static[vG](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 I=new this;if(e.length===16){let[l,n,c,a,s,r,o,d,i,h,p,Z,u,N,Y,y]=e;I[MI]=l,I[KI]=n,I[At]=c,I[wt]=a,I[TI]=s,I[PI]=r,I[Xt]=o,I[Ht]=d,I[ot]=i,I[Nt]=h,I[Yt]=p,I[dt]=Z,I[jI]=u,I[qI]=N,I[Vt]=Y,I[Rt]=y}else if(e.length===6){let[l,n,c,a,s,r]=e;I[MI]=l,I[KI]=n,I[TI]=c,I[PI]=a,I[jI]=s,I[qI]=r}return I}static[Ly](e){if(typeof e!="string")throw TypeError(`Failed to execute 'setMatrixValue' on '${this.name}': Expected '${String(e)}' to be a string.`);let I=new this,l=new RegExp(j4I),n;for(;n=l.exec(e);){let c=n[1],a=n[2].split(D4I);for(let i=0,h=a.length;i<h;i++)a[i]=this[qde](a[i]);let[s,r,o,d]=a;switch(c){case"perspective":!isNaN(s)&&s!==0&&r===void 0&&o===void 0&&(I[dt]=-1/s);break;case"translate":!isNaN(s)&&o===void 0&&I[CG](s,r||0,0);break;case"translate3d":!isNaN(s)&&!isNaN(r)&&!isNaN(o)&&I[CG](s,r,o);break;case"translateX":!isNaN(s)&&r===void 0&&o===void 0&&I[CG](s);break;case"translateY":!isNaN(s)&&r===void 0&&o===void 0&&I[CG](0,s);break;case"translateZ":!isNaN(s)&&r===void 0&&o===void 0&&I[CG](0,0,s);break;case"matrix":case"matrix3d":(a.length===6||a.length===16)&&I[qw](this[vG](a));break;case"rotate":case"rotateZ":!isNaN(s)&&r===void 0&&o===void 0&&I[SZ](0,0,s);break;case"rotateX":!isNaN(s)&&r===void 0&&o===void 0&&I[SZ](s,0,0);break;case"rotateY":!isNaN(s)&&r===void 0&&o===void 0&&I[SZ](0,s,0);case"rotate3d":!isNaN(s)&&!isNaN(r)&&!isNaN(o)&&!isNaN(d)&&I[OZ](s,r,o,d);break;case"scale":!isNaN(s)&&s!==1&&o===void 0&&I[Wh](s,isNaN(r)?s:r);break;case"scale3d":!isNaN(s)&&!isNaN(r)&&!isNaN(o)&&I[Wh](s,r,o);break;case"scaleX":!isNaN(s)&&r===void 0&&o===void 0&&I[Wh](s,1,1);break;case"scaleY":!isNaN(s)&&r===void 0&&o===void 0&&I[Wh](1,s,1);break;case"scaleZ":!isNaN(s)&&r===void 0&&o===void 0&&I[Wh](1,1,s);break;case"skew":isNaN(s)||I[ky](s),isNaN(r)||I[fy](r);break;case"skewX":!isNaN(s)&&r===void 0&&I[ky](s);break;case"skewY":!isNaN(s)&&r===void 0&&I[fy](s);break;default:throw TypeError(`Failed to execute 'setMatrixValue' on '${this.name}': Unknown transform function '${n[1]}'.`)}}return I}static[qde](e){let I=parseFloat(e);switch(e.replace(I.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 I*(180/Math.PI);case"turn":return I*360;case"px":return I;case"cm":return I*37.7812;case"mm":return I*3.7781;case"in":return I*96;case"pt":return I*1.3281;case"pc":return I*16;case"Q":return I*.945;default:return I}}};var Ms=class extends u0{get a(){return this[MI]}set a(e){this[MI]=e}get b(){return this[KI]}set b(e){this[KI]=e}get c(){return this[TI]}set c(e){this[TI]=e}get d(){return this[PI]}set d(e){this[PI]=e}get e(){return this[jI]}set e(e){this[jI]=e}get f(){return this[qI]}set f(e){this[qI]=e}get m11(){return this[MI]}set m11(e){this[MI]=e}get m12(){return this[KI]}set m12(e){this[KI]=e}get m13(){return this[At]}set m13(e){this[At]=e}get m14(){return this[wt]}set m14(e){this[wt]=e}get m21(){return this[TI]}set m21(e){this[TI]=e}get m22(){return this[PI]}set m22(e){this[PI]=e}get m23(){return this[Xt]}set m23(e){this[Xt]=e}get m24(){return this[Ht]}set m24(e){this[Ht]=e}get m31(){return this[ot]}set m31(e){this[ot]=e}get m32(){return this[Nt]}set m32(e){this[Nt]=e}get m33(){return this[Yt]}set m33(e){this[Yt]=e}get m34(){return this[dt]}set m34(e){this[dt]=e}get m41(){return this[jI]}set m41(e){this[jI]=e}get m42(){return this[qI]}set m42(e){this[qI]=e}get m43(){return this[Vt]}set m43(e){this[Vt]=e}get m44(){return this[Rt]}set m44(e){this[Rt]=e}setMatrixValue(e){return this[qw](e),this}multiplySelf(e){return this[JG](e),this}translateSelf(e=0,I=0,l=0){return this[CG](e,I,l),this}scaleSelf(e,I,l=1,n=0,c=0,a=0){return this[Wh](e,I,l,n,c,a),this}scale3dSelf(e=1,I=0,l=0,n=0){return this[y3](e,I,l,n),this}scaleNonUniformSelf(e=1,I=1){return this[F3](e,I),this}rotateAxisAngleSelf(e=0,I=0,l=0,n=0){return this[OZ](e,I,l,n),this}rotateSelf(e=0,I,l){return this[SZ](e,I,l),this}rotateFromVectorSelf(e=0,I=0){return this[ak](e,I),this}skewXSelf(e){return this[ky](e),this}skewYSelf(e){return this[fy](e),this}flipXSelf(){return this[sk](),this}flipYSelf(){return this[rk](),this}invertSelf(){return this[Gk](),this}};G();var K4I=/[\t\f\n\r ,]+/,Vb=class t{[W];[M];[L];[Ve]=!1;[oe]={items:[],attributeValue:""};constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");if(this[W]=I,this[Ve]=!!l.readOnly,this[M]=l.getAttribute,this[L]=l.setAttribute,e!==V)throw new TypeError("Illegal constructor");let n=new Zl(this,[t]);return new Proxy(this,{get:(c,a)=>{if(a==="length"||a==="numberOfItems")return c[Ne]().length;if(a in c||typeof a=="symbol")return n.bind(a),c[a];let s=Number(a);if(!isNaN(s))return c[Ne]()[s]},set(c,a,s){if(n.bind(a),typeof a=="symbol")return c[a]=s,!0;let r=Number(a);return isNaN(r)&&(c[a]=s),!0},deleteProperty(c,a){if(typeof a=="symbol")return delete c[a],!0;let s=Number(a);return isNaN(s)&&delete c[a],!0},ownKeys(c){return Object.keys(c[Ne]())},has(c,a){if(a in c)return!0;if(typeof a=="symbol")return!1;let s=Number(a);return!isNaN(s)&&s>=0&&s<c[Ne]().length},defineProperty(c,a,s){return n.preventBinding(a),a in c?(Object.defineProperty(c,a,s),!0):!1},getOwnPropertyDescriptor(c,a){if(a in c||typeof a=="symbol")return;let s=Number(a),r=c[Ne]();if(!isNaN(s)&&r[s])return{value:r[s],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[Ne]().length}get numberOfItems(){return this[Ne]().length}[Symbol.iterator](){return this[Ne]().values()}clear(){this[oe].attributeValue="",this[oe].items=[],this[L]("")}initialize(e){if(this[Ve])throw new this[W].TypeError("Failed to execute 'initialize' on 'SVGStringList': The object is read-only.");if(arguments.length<1)throw new this[W].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[L](e),e}getItem(e){let I=this[Ne]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),I[e]?I[e]:null}insertItemBefore(e,I){if(this[Ve])throw new this[W].TypeError("Failed to execute 'insertItemBefore' on 'SVGStringList': The object is read-only.");if(arguments.length<2)throw new this[W].TypeError(`Failed to execute 'insertItemBefore' on 'SVGStringList': 2 arguments required, but only ${arguments.length} present.`);if(e=String(e),!e)return e;let l=this[Ne](),n=l.indexOf(e);return n!==-1&&l.splice(n,1),I<0?I=0:I>l.length&&(I=l.length),l.splice(I,0,e),this[L](l.join(" ")),e}replaceItem(e,I){if(this[Ve])throw new this[W].TypeError("Failed to execute 'replaceItem' on 'SVGStringList': The object is read-only.");if(arguments.length<2)throw new this[W].TypeError(`Failed to execute 'replaceItem' on 'SVGStringList': 2 arguments required, but only ${arguments.length} present.`);if(e=String(e),!e)return this.removeItem(I);let l=this[Ne]();I<0?I=0:I>=l.length&&(I=l.length-1);let n=l[I];return l[I]=e,this[L](l.join(" ")),n}removeItem(e){if(this[Ve])throw new this[W].TypeError("Failed to execute 'removeItem' on 'SVGStringList': The object is read-only.");if(arguments.length<1)throw new this[W].TypeError(`Failed to execute 'removeItem' on 'SVGStringList': 1 argument required, but only ${arguments.length} present.`);let I=this[Ne]();if(e=Number(e),isNaN(e)&&(e=0),e>=I.length)throw new this[W].DOMException(`Failed to execute 'removeItem' on 'SVGStringList': The index provided (${e}) is greater than the maximum bound.`,x.indexSizeError);if(e<0)throw new this[W].DOMException(`Failed to execute 'removeItem' on 'SVGStringList': The index provided (${e}) is negative.`,x.indexSizeError);let l=I[e];return I.splice(e,1),this[L](I.join(" ")),l}appendItem(e){if(this[Ve])throw new this[W].TypeError("Failed to execute 'appendItem' on 'SVGStringList': The object is read-only.");if(arguments.length<1)throw new this[W].TypeError(`Failed to execute 'appendItem' on 'SVGStringList': 1 argument required, but only ${arguments.length} present.`);if(e=String(e),!e)return e;let I=this[Ne](),l=I.indexOf(e);return l!==-1&&I.splice(l,1),I.push(e),this[L](I.join(" ")),e}[Ne](){let e=this[M]()??"",I=this[oe];if(I.attributeValue===e)return I.items;let l=[],n=e.trim();if(n)for(let c of n.split(K4I))l.includes(c)||l.push(c);return I.attributeValue=e,I.items=l,l}};G();G();G();G();var P4I=/([a-zA-Z0-9]+)\(([^)]+)\)/,q4I=/[\s,]+/,Uh=class t{[W];[M]=null;[L]=null;[$]=null;[Ve]=!1;constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,l&&(this[Ve]=!!l.readOnly,this[M]=l.getAttribute||null,this[L]=l.setAttribute||null)}get a(){return this[cn]().a}set a(e){if(this[Ve])return;let I=this[cn]();I.a=e,this[na](I)}get b(){return this[cn]().b}set b(e){if(this[Ve])return;let I=this[cn]();I.b=e,this[na](I)}get c(){return this[cn]().c}set c(e){if(this[Ve])return;let I=this[cn]();I.c=e,this[na](I)}get d(){return this[cn]().d}set d(e){if(this[Ve])return;let I=this[cn]();I.d=e,this[na](I)}get e(){return this[cn]().e}set e(e){if(this[Ve])return;let I=this[cn]();I.e=e,this[na](I)}get f(){return this[cn]().f}set f(e){if(this[Ve])return;let I=this[cn]();I.f=e,this[na](I)}multiply(e){if(!(e instanceof t))throw new this[W].TypeError("Failed to execute 'multiply' on 'SVGMatrix': parameter 1 is not of type 'SVGMatrix'.");let I=this[cn](),l=new t(V,this[W]);return I.multiplySelf(e[cn]()),l[na](I),l}translate(e=0,I=0){let l=this[cn](),n=new t(V,this[W]);return l.translateSelf(e,I),n[na](l),n}scale(e){let I=this[cn](),l=new t(V,this[W]);return I.scaleSelf(e),l[na](I),l}scaleNonUniform(e=1,I=1){let l=this[cn](),n=new t(V,this[W]);return l.scaleNonUniformSelf(e,I),n[na](l),n}rotate(e){let I=this[cn](),l=new t(V,this[W]);return I.rotateSelf(e),l[na](I),l}rotateFromVector(e=0,I=0){let l=this[cn](),n=new t(V,this[W]);return l.rotateFromVectorSelf(e,I),n[na](l),n}skewX(e){let I=this[cn](),l=new t(V,this[W]);return I.skewXSelf(e),l[na](I),l}skewY(e){let I=this[cn](),l=new t(V,this[W]);return I.skewYSelf(e),l[na](I),l}flipX(){let e=this[cn](),I=new t(V,this[W]);return e.flipXSelf(),I[na](e),I}flipY(){let e=this[cn](),I=new t(V,this[W]);return e.flipYSelf(),I[na](e),I}inverse(){let e=this[cn](),I=new t(V,this[W]);return e.invertSelf(),I[na](e),I}[cn](){let e=this[M]?this[M]():this[$];if(!e)return new Ms;let I=e.match(P4I);if(!I)return new Ms;let l=[];for(let n of I[2].trim().split(q4I)){let c=Number(n);if(isNaN(c))throw new this[W].TypeError(`Failed to parse transform attribute: Expected number, but got "${n}" in "${e}".`);l.push(c)}switch(I[1]){case"matrix":if(l.length!==6)throw new this[W].TypeError(`Failed to parse transform attribute: Expected 6 parameters in "${e}".`);return Ms[Ly](e);case"scale":case"translate":if(l.length!==1&&l.length!==2)throw new this[W].TypeError(`Failed to parse transform attribute: Expected 1 or 2 parameters in "${e}".`);return Ms[Ly](e);case"skewY":case"skewX":if(l.length!==1)throw new this[W].TypeError(`Failed to parse transform attribute: Expected 1 parameter in "${e}".`);return Ms[Ly](e);case"rotate":let n=new Ms;if(l.length!==1&&l.length!==3)throw new this[W].TypeError(`Failed to parse transform attribute: Expected 1 or 3 parameters in "${e}".`);let[c,a,s]=l;(a||s)&&n.translateSelf(a,s);let r=c*Math.PI/180;return n.multiplySelf(new Ms([Math.cos(r),Math.sin(r),-Math.sin(r),Math.cos(r),0,0])),(a||s)&&n.translateSelf(-a,-s),n;default:throw new this[W].TypeError(`Failed to parse transform attribute: Unknown transformation "${e}".`)}}[na](e){this[$]=e.toString().replace(/, /g," "),this[L]&&this[L](this[$])}};G();var Sie;(function(t){t[t.unknown=0]="unknown",t[t.matrix=1]="matrix",t[t.translate=2]="translate",t[t.scale=3]="scale",t[t.rotate=4]="rotate",t[t.skewX=5]="skewX",t[t.skewY=6]="skewY"})(Sie||(Sie={}));var Or=Sie;var kze=/([a-zA-Z0-9]+)\(([^)]+)\)/,_4I=/[\s,]+/,zG=class{static SVG_TRANSFORM_UNKNOWN=Or.unknown;static SVG_TRANSFORM_MATRIX=Or.matrix;static SVG_TRANSFORM_TRANSLATE=Or.translate;static SVG_TRANSFORM_SCALE=Or.scale;static SVG_TRANSFORM_ROTATE=Or.rotate;static SVG_TRANSFORM_SKEWX=Or.skewX;static SVG_TRANSFORM_SKEWY=Or.skewY;[W];[M]=null;[L]=null;[$]=null;[Ve]=!1;[MZ]=null;constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,l&&(this[Ve]=!!l.readOnly,this[M]=l.getAttribute||null,this[L]=l.setAttribute||null)}get type(){let I=(this[M]?this[M]():this[$])?.match(kze);if(!I)return Or.unknown;switch(I[1]){case"matrix":return Or.matrix;case"translate":return Or.translate;case"rotate":return Or.rotate;case"scale":return Or.scale;case"skewX":return Or.skewX;case"skewY":return Or.skewY}return 0}get angle(){let I=(this[M]?this[M]():this[$])?.match(kze);if(!I)return 0;let l=parseFloat(I[2].trim().split(_4I)[0]);if(isNaN(l))return 0;switch(I[1]){case"rotate":case"skewX":case"skewY":return l}return 0}get matrix(){return this[MZ]||(this[MZ]=new Uh(V,this[W],{readOnly:this[Ve],getAttribute:()=>this[M]?this[M]():this[$],setAttribute:e=>{if(this[$]=e,this[L]){this[L](e);return}}})),this[MZ]}setMatrix(e){if(!(e instanceof Uh))throw new TypeError('Failed to set the "matrix" property on "SVGTransform": The provided value is not of type "SVGMatrix".');this[Ve]||(this[MZ]&&(this[MZ][M]=null,this[MZ][L]=null),e[M]=()=>this[M]?this[M]():this[$],e[L]=I=>{if(this[$]=I,this[L]){this[L](I);return}},this[MZ]=e,e[$]!==this[$]&&(this[$]=e[$],this[L]&&this[L](this[$]||"")))}setTranslate(e,I){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),I=Number(I),isNaN(e)||isNaN(I))throw new TypeError("Failed to execute 'setTranslate' on 'SVGTransform': The provided float value is non-finite.");this[Ve]||(this[$]=`translate(${e} ${I})`,this[L]&&this[L](this[$]))}setScale(e,I){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),I=Number(I),isNaN(e)||isNaN(I))throw new TypeError("Failed to execute 'setScale' on 'SVGTransform': The provided float value is non-finite.");this[Ve]||(this[$]=`scale(${e} ${I})`,this[L]&&this[L](this[$]))}setRotate(e,I,l){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),I=Number(I),l=Number(l),isNaN(e)||isNaN(I)||isNaN(l))throw new TypeError("Failed to execute 'setRotate' on 'SVGTransform': The provided float value is non-finite.");this[Ve]||(this[$]=`rotate(${e} ${I} ${l})`,this[L]&&this[L](this[$]))}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[Ve]||(this[$]=`skewX(${e})`,this[L]&&this[L](this[$]))}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[Ve]||(this[$]=`skewY(${e})`,this[L]&&this[L](this[$]))}};var $4I=/([a-zA-Z0-9]+)\(([^)]+)\)/gm,pu="matrix(1 0 0 1 0 0)",PY=class t{[W];[M];[L];[Ve]=!1;[oe]={items:[],attributeValue:""};constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,this[Ve]=!!l.readOnly,this[M]=l.getAttribute,this[L]=l.setAttribute;let n=new Zl(this,[t]);return new Proxy(this,{get:(c,a)=>{if(a==="length"||a==="numberOfItems")return c[Ne]().length;if(a in c||typeof a=="symbol")return n.bind(a),c[a];let s=Number(a);if(!isNaN(s))return c[Ne]()[s]},set(c,a,s){if(n.bind(a),typeof a=="symbol")return c[a]=s,!0;let r=Number(a);return isNaN(r)&&(c[a]=s),!0},deleteProperty(c,a){if(typeof a=="symbol")return delete c[a],!0;let s=Number(a);return isNaN(s)&&delete c[a],!0},ownKeys(c){return Object.keys(c[Ne]())},has(c,a){if(a in c)return!0;if(typeof a=="symbol")return!1;let s=Number(a);return!isNaN(s)&&s>=0&&s<c[Ne]().length},defineProperty(c,a,s){return n.preventBinding(a),a in c?(Object.defineProperty(c,a,s),!0):!1},getOwnPropertyDescriptor(c,a){if(a in c||typeof a=="symbol")return;let s=Number(a),r=c[Ne]();if(!isNaN(s)&&r[s])return{value:r[s],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[Ne]().length}get numberOfItems(){return this[Ne]().length}[Symbol.iterator](){return this[Ne]().values()}clear(){if(this[Ve])throw new this[W].TypeError("Failed to execute 'clear' on 'SVGTransformList': The object is read-only.");for(let e of this[oe].items)e[M]=null,e[L]=null;this[oe].items=[],this[oe].attributeValue="",this[L]("")}initialize(e){if(this[Ve])throw new this[W].TypeError("Failed to execute 'initialize' on 'SVGTransformList': The object is read-only.");if(arguments.length<1)throw new this[W].TypeError(`Failed to execute 'initialize' on 'SVGTransformList': 1 arguments required, but only ${arguments.length} present.`);if(!(e instanceof zG))throw new this[W].TypeError("Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");for(let I of this[oe].items)I[M]=null,I[L]=null;return e[M]=()=>e[$],e[L]=()=>{this[oe].attributeValue=this[Ne]().map(I=>I[$]||pu).join(" "),this[L](this[oe].attributeValue)},this[oe].items=[e],this[oe].attributeValue=e[$],this[L](e[$]||""),e}getItem(e){let I=this[Ne]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),I[e]?I[e]:null}insertItemBefore(e,I){if(this[Ve])throw new this[W].TypeError("Failed to execute 'insertItemBefore' on 'SVGTransformList': The object is read-only.");if(arguments.length<2)throw new this[W].TypeError(`Failed to execute 'insertItemBefore' on 'SVGTransformList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof zG))throw new this[W].TypeError("Failed to execute 'insertItemBefore' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let l=this[Ne](),n=l.indexOf(e);return n!==-1&&l.splice(n,1),I<0?I=0:I>l.length&&(I=l.length),l.splice(I,0,e),e[M]=()=>e[$],e[L]=()=>{this[oe].attributeValue=this[Ne]().map(c=>c[$]||pu).join(" "),this[L](this[oe].attributeValue)},this[oe].attributeValue=l.map(c=>c[$]||pu).join(" "),this[L](this[oe].attributeValue),e}replaceItem(e,I){if(this[Ve])throw new this[W].TypeError("Failed to execute 'replaceItem' on 'SVGTransformList': The object is read-only.");if(arguments.length<2)throw new this[W].TypeError(`Failed to execute 'replaceItem' on 'SVGTransformList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof zG))throw new this[W].TypeError("Failed to execute 'replaceItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let l=this[Ne](),n=l.indexOf(e);if(n===I)return e;n!==-1&&l.splice(n,1),I<0?I=0:I>=l.length&&(I=l.length-1),l[I]&&(l[I][M]=null,l[I][L]=null);let c=l[I];return l[I]=e,e[M]=()=>e[$],e[L]=()=>{this[oe].attributeValue=this[Ne]().map(a=>a[$]||pu).join(" "),this[L](this[oe].attributeValue)},this[oe].attributeValue=l.map(a=>a[$]||pu).join(" "),this[L](this[oe].attributeValue),c}removeItem(e){if(this[Ve])throw new this[W].TypeError("Failed to execute 'removeItem' on 'SVGTransformList': The object is read-only.");if(arguments.length<1)throw new this[W].TypeError(`Failed to execute 'removeItem' on 'SVGTransformList': 1 argument required, but only ${arguments.length} present.`);let I=this[Ne]();if(e=Number(e),isNaN(e)&&(e=0),e>=I.length)throw new this[W].DOMException(`Failed to execute 'removeItem' on 'SVGTransformList': The index provided (${e}) is greater than the maximum bound.`,x.indexSizeError);if(e<0)throw new this[W].DOMException(`Failed to execute 'removeItem' on 'SVGTransformList': The index provided (${e}) is negative.`,x.indexSizeError);let l=I[e];return l&&(l[M]=null,l[L]=null),I.splice(e,1),this[oe].attributeValue=I.map(n=>n[$]||pu).join(" "),this[L](this[oe].attributeValue),l}appendItem(e){if(this[Ve])throw new this[W].TypeError("Failed to execute 'appendItem' on 'SVGTransformList': The object is read-only.");if(arguments.length<1)throw new this[W].TypeError(`Failed to execute 'appendItem' on 'SVGTransformList': 1 argument required, but only ${arguments.length} present.`);if(!(e instanceof zG))throw new this[W].TypeError("Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let I=this[Ne](),l=I.indexOf(e);return l!==-1&&I.splice(l,1),I.push(e),e[M]=()=>e[$],e[L]=()=>{this[oe].attributeValue=this[Ne]().map(n=>n[$]||pu).join(" "),this[L](this[oe].attributeValue)},this[oe].attributeValue=I.map(n=>n[$]||pu).join(" "),this[L](this[oe].attributeValue),e}[Ne](){let e=this[M]()??"",I=this[oe];if(I.attributeValue===e)return I.items;if(I.items.length)for(let c of I.items)c[M]=null,c[L]=null;let l=[],n=e.trim();if(n){let c=new RegExp($4I),a;for(;a=c.exec(n);){let s=new zG(V,this[W],{readOnly:this[Ve],getAttribute:()=>s[$],setAttribute:()=>{this[oe].attributeValue=this[Ne]().map(r=>r[$]||pu).join(" "),this[L](this[oe].attributeValue)}});s[$]=`${a[1]}(${a[2]})`,l.push(s)}}return I.attributeValue=e,I.items=l,l}};var Rb=class{[W];[M];[L];[Tt]=null;[jt]=null;constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,this[M]=l.getAttribute,this[L]=l.setAttribute}get animVal(){return this[jt]||(this[jt]=new PY(V,this[W],{readOnly:!0,getAttribute:this[M],setAttribute:()=>{}})),this[jt]}set animVal(e){}get baseVal(){return this[Tt]||(this[Tt]=new PY(V,this[W],{getAttribute:this[M],setAttribute:this[L]})),this[Tt]}set baseVal(e){}};var Al=class extends ke{[ah]=null;[sh]=null;[$L]=null;get oncopy(){return E.getEventListener(this,"oncopy")}set oncopy(e){this[F].set("oncopy",e)}get oncut(){return E.getEventListener(this,"oncut")}set oncut(e){this[F].set("oncut",e)}get onpaste(){return E.getEventListener(this,"onpaste")}set onpaste(e){this[F].set("onpaste",e)}get requiredExtensions(){return this[ah]||(this[ah]=new Vb(V,this[W],{getAttribute:()=>this.getAttribute("requiredExtensions"),setAttribute:e=>this.setAttribute("requiredExtensions",e)})),this[ah]}get systemLanguage(){return this[sh]||(this[sh]=new Vb(V,this[W],{getAttribute:()=>this.getAttribute("systemLanguage"),setAttribute:e=>this.setAttribute("systemLanguage",e)})),this[sh]}get transform(){return this[$L]||(this[$L]=new Rb(V,this[W],{getAttribute:()=>this.getAttribute("transform"),setAttribute:e=>this.setAttribute("transform",e)})),this[$L]}getBBox(){return new Kd}getCTM(){return new Ms}getScreenCTM(){return new Ms}};G();var qd=class{[W];[M]=null;[L]=null;[$]=null;[Ve]=!1;constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,l&&(this[Ve]=!!l.readOnly,this[M]=l.getAttribute||null,this[L]=l.setAttribute||null)}get x(){let e=this[M]?this[M]():this[$];if(!e)return 0;let I=e.split(/\s+/),l=Number(I[0]);return isNaN(l)?0:l}set x(e){if(this[Ve])throw new this[W].TypeError("Failed to set the 'x' property on 'SVGRect': The object is read-only.");this[$]=`${String(typeof e=="number"?e:parseFloat(e))} ${this.y} ${this.width} ${this.height}`,this[L]&&this[L](this[$])}get y(){let e=this[M]?this[M]():this[$];if(!e)return 0;let I=e.split(/\s+/),l=Number(I[1]);return isNaN(l)?0:l}set y(e){if(this[Ve])throw new this[W].TypeError("Failed to set the 'y' property on 'SVGRect': The object is read-only.");this[$]=`${this.x} ${String(typeof e=="number"?e:parseFloat(e))} ${this.width} ${this.height}`,this[L]&&this[L](this[$])}get width(){let e=this[M]?this[M]():this[$];if(!e)return 0;let I=e.split(/\s+/),l=Number(I[2]);return isNaN(l)?0:l}set width(e){if(this[Ve])throw new this[W].TypeError("Failed to set the 'width' property on 'SVGRect': The object is read-only.");this[$]=`${this.x} ${this.y} ${String(typeof e=="number"?e:parseFloat(e))} ${this.height}`,this[L]&&this[L](this[$])}get height(){let e=this[M]?this[M]():this[$];if(!e)return 0;let I=e.split(/\s+/),l=Number(I[3]);return isNaN(l)?0:l}set height(e){if(this[Ve])throw new this[W].TypeError("Failed to set the 'height' property on 'SVGRect': The object is read-only.");this[$]=`${this.x} ${this.y} ${this.width} ${String(typeof e=="number"?e:parseFloat(e))}`,this[L]&&this[L](this[$])}};G();var fze=/[\t\f\n\r, ]+/,gc=class{[W];[M]=null;[L]=null;[$]=null;[Ve]=!1;constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,l&&(this[Ve]=!!l.readOnly,this[M]=l.getAttribute||null,this[L]=l.setAttribute||null)}get x(){let I=((this[M]?this[M]():this[$])||"").split(fze);return I[0]?parseFloat(I[0]):0}set x(e){if(this[Ve])throw new this[W].TypeError("Failed to set the 'x' property on 'SVGPoint': The object is read-only.");this[$]=`${e} ${this.y}`,this[L]&&this[L](this[$])}get y(){let I=((this[M]?this[M]():this[$])||"").split(fze);return I[1]?parseFloat(I[1]):0}set y(e){if(this[Ve])throw new this[W].TypeError("Failed to set the 'y' property on 'SVGPoint': The object is read-only.");this[$]=`${this.x} ${e}`,this[L]&&this[L](this[$])}};G();G();var Oie;(function(t){t[t.unknown=0]="unknown",t[t.number=1]="number",t[t.percentage=2]="percentage",t[t.ems=3]="ems",t[t.exs=4]="exs",t[t.px=5]="px",t[t.cm=6]="cm",t[t.mm=7]="mm",t[t.in=8]="in",t[t.pt=9]="pt",t[t.pc=10]="pc"})(Oie||(Oie={}));var yI=Oie;var xze=/^(\d+|\d+\.\d+)(px|em|ex|cm|mm|in|pt|pc|%|)$/,_d=class{static SVG_LENGTHTYPE_UNKNOWN=yI.unknown;static SVG_LENGTHTYPE_NUMBER=yI.number;static SVG_LENGTHTYPE_PERCENTAGE=yI.percentage;static SVG_LENGTHTYPE_EMS=yI.ems;static SVG_LENGTHTYPE_EXS=yI.exs;static SVG_LENGTHTYPE_PX=yI.px;static SVG_LENGTHTYPE_CM=yI.cm;static SVG_LENGTHTYPE_MM=yI.mm;static SVG_LENGTHTYPE_IN=yI.in;static SVG_LENGTHTYPE_PT=yI.pt;static SVG_LENGTHTYPE_PC=yI.pc;[W];[M]=null;[L]=null;[$]=null;[Ve]=!1;constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,l&&(this[Ve]=!!l.readOnly,this[M]=l.getAttribute||null,this[L]=l.setAttribute||null)}get unitType(){let I=(this[M]?this[M]()||"":this[$]||"").match(xze);if(!I)return yI.unknown;if(isNaN(parseFloat(I[1])))return yI.unknown;switch(I[2]){case"":return yI.number;case"px":return yI.px;case"cm":return yI.cm;case"mm":return yI.mm;case"in":return yI.in;case"pt":return yI.pt;case"pc":return yI.pc;case"em":case"ex":case"%":throw new this[W].TypeError("Failed to execute 'value' on 'SVGLength': Could not resolve relative length.");default:return yI.unknown}}get value(){let I=(this[M]?this[M]()||"":this[$]||"").match(xze);if(!I)return 0;let l=parseFloat(I[1]);if(isNaN(l))return 0;switch(I[2]){case"":return l;case"px":return l;case"cm":return l/2.54*96;case"mm":return l/25.4*96;case"in":return l*96;case"pt":return l*72;case"pc":return l*6;case"em":case"ex":case"%":throw new this[W].TypeError("Failed to execute 'value' on 'SVGLength': Could not resolve relative length.");default:return 0}}set value(e){if(this[Ve])throw new this[W].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[W].TypeError("Failed to set the 'value' property on 'SVGLength': The provided float value is non-finite.");let I="",l=e;switch(this.unitType){case yI.number:l=e,I="";break;case yI.px:l=e,I="px";break;case yI.cm:l=e/96*2.54,I="cm";break;case yI.mm:l=e/96*25.4,I="mm";break;case yI.in:l=e/96,I="in";break;case yI.pt:l=e/72,I="pt";break;case yI.pc:l=e/6,I="pc";break;case yI.percentage:case yI.ems:case yI.exs:throw new this[W].TypeError("Failed to set the 'value' property on 'SVGLength': Could not resolve relative length.");default:break}this[$]=String(l)+I,this[L]&&this[L](this[$])}get valueAsString(){return this[M]?this[M]()||"0":this[$]||"0"}get valueInSpecifiedUnits(){let e=this.valueAsString;return parseFloat(e)||0}newValueSpecifiedUnits(e,I){if(this[Ve])throw new this[W].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': The object is read-only.");if(typeof e!="number")throw new this[W].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': parameter 1 ('unitType') is not of type 'number'.");if(I=typeof I!="number"?parseFloat(String(I)):I,isNaN(I))throw new this[W].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': The provided float value is non-finite.");let l="";switch(e){case yI.number:l="";break;case yI.px:l="px";break;case yI.cm:l="cm";break;case yI.mm:l="mm";break;case yI.in:l="in";break;case yI.pt:l="pt";break;case yI.pc:l="pc";break;case yI.ems:case yI.exs:case yI.percentage:throw new this[W].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': Could not resolve relative length.");default:break}this[$]=String(I)+l,this[L]&&this[L](this[$])}convertToSpecifiedUnits(e){if(this[Ve])throw new this[W].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': The object is read-only.");if(typeof e!="number")throw new this[W].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': parameter 1 ('unitType') is not of type 'number'.");let I=this.value,l="";switch(e){case yI.number:l="";break;case yI.px:l="px";break;case yI.cm:I=I/96*2.54,l="cm";break;case yI.mm:I=I/96*25.4,l="mm";break;case yI.in:I=I/96,l="in";break;case yI.pt:I=I/72,l="pt";break;case yI.pc:I=I/6,l="pc";break;case yI.percentage:case yI.ems:case yI.exs:throw new this[W].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': Could not resolve relative length.");default:break}this[$]=String(I)+l,this[L]&&this[L](this[$])}};G();G();var Mie;(function(t){t[t.unknown=0]="unknown",t[t.unspecified=1]="unspecified",t[t.deg=2]="deg",t[t.rad=3]="rad",t[t.grad=4]="grad"})(Mie||(Mie={}));var El=Mie;var Bze=/^(\d+|\d+\.\d+)(deg|rad|grad|turn|)$/,Sh=class{static SVG_ANGLETYPE_UNKNOWN=El.unknown;static SVG_ANGLETYPE_UNSPECIFIED=El.unspecified;static SVG_ANGLETYPE_DEG=El.deg;static SVG_ANGLETYPE_RAD=El.rad;static SVG_ANGLETYPE_GRAD=El.grad;[W];[M]=null;[L]=null;[$]="";[Ve]=!1;constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,l&&(this[Ve]=!!l.readOnly,this[M]=l.getAttribute||null,this[L]=l.setAttribute||null)}get unitType(){let I=(this[M]?this[M]():this[$])?.match(Bze);if(!I)return El.unknown;if(isNaN(parseFloat(I[1])))return El.unknown;switch(I[2]){case"":return El.unspecified;case"deg":return El.deg;case"rad":return El.rad;case"grad":return El.grad;case"turn":return El.unknown;default:return El.unspecified}}get value(){let I=(this[M]?this[M]():this[$])?.match(Bze);if(!I)return 0;let l=parseFloat(I[1]);if(isNaN(l))return 0;switch(I[2]){case"":return l;case"deg":return l;case"rad":return l*(180/Math.PI);case"grad":return l*(180/200);case"turn":return l*360;default:return l}}set value(e){if(this[Ve])throw new this[W].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[W].TypeError("Failed to set the 'value' property on 'SVGAngle': The provided float value is non-finite.");let I="",l=e;switch(this.unitType){case El.unspecified:l=e,I="";break;case El.deg:l=e,I="deg";break;case El.rad:l=e/(180/Math.PI),I="rad";break;case El.grad:l=e/(180/200),I="grad";break;case El.unknown:l=e/360,I="turn";default:break}this[$]=String(l)+I,this[L]&&this[L](this[$])}get valueAsString(){return this[M]?this[M]()||"0":this[$]||"0"}get valueInSpecifiedUnits(){let e=this.valueAsString;return parseFloat(e)||0}newValueSpecifiedUnits(e,I){if(this[Ve])throw new this[W].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': The object is read-only.");if(typeof e!="number")throw new this[W].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': parameter 1 ('unitType') is not of type 'number'.");if(I=typeof I!="number"?parseFloat(I):I,isNaN(I))throw new this[W].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': The provided float value is non-finite.");let l="";switch(e){case El.unspecified:l="";break;case El.deg:l="deg";break;case El.rad:l="rad";break;case El.grad:l="grad";break;case El.unknown:l="turn";break;default:break}this[$]=String(I)+l,this[L]&&this[L](this[$])}convertToSpecifiedUnits(e){if(this[Ve])throw new this[W].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGAngle': The object is read-only.");if(typeof e!="number")throw new this[W].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGAngle': parameter 1 ('unitType') is not of type 'number'.");let I=this.value,l="";switch(e){case El.unspecified:l="";break;case El.deg:l="deg";break;case El.rad:l="rad",I=I/(180/Math.PI);break;case El.grad:l="grad",I=I/(180/200);break;case El.unknown:l="turn",I=I/360;break;default:break}this[$]=String(I)+l,this[L]&&this[L](this[$])}};G();var $d=class{[W];[M]=null;[L]=null;[$]=null;[Ve]=!1;constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,l&&(this[Ve]=!!l.readOnly,this[M]=l.getAttribute||null,this[L]=l.setAttribute||null)}get value(){let e=this[M]?this[M]():this[$];return parseFloat(e||"0")}set value(e){if(this[Ve])throw new TypeError("Failed to set the 'value' property on 'SVGNumber': The object is read-only.");let I=typeof e!="number"?parseFloat(String(e)):e;if(isNaN(I))throw new TypeError("Failed to set the 'value' property on 'SVGNumber': The provided value is not a number.");this[$]=String(e),this[L]&&this[L](this[$]||"")}};G();var Zu=class{[W];[M];[L];[Tt]=null;[jt]=null;constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,this[M]=l.getAttribute,this[L]=l.setAttribute}get animVal(){return this[jt]||(this[jt]=new qd(V,this[W],{readOnly:!0,getAttribute:this[M]})),this[jt]}set animVal(e){}get baseVal(){return this[Tt]||(this[Tt]=new qd(V,this[W],{getAttribute:this[M],setAttribute:this[L]})),this[Tt]}set baseVal(e){}};G();G();G();var Tie;(function(t){t[t.unknown=0]="unknown",t[t.meet=1]="meet",t[t.slice=2]="slice"})(Tie||(Tie={}));var uu=Tie;G();var jie;(function(t){t[t.unknown=0]="unknown",t[t.none=1]="none",t[t.xMinYMin=2]="xMinYMin",t[t.xMidYMin=3]="xMidYMin",t[t.xMaxYMin=4]="xMaxYMin",t[t.xMinYMid=5]="xMinYMid",t[t.xMidYMid=6]="xMidYMid",t[t.xMaxYMid=7]="xMaxYMid",t[t.xMinYMax=8]="xMinYMax",t[t.xMidYMax=9]="xMidYMax",t[t.xMaxYMax=10]="xMaxYMax"})(jie||(jie={}));var bs=jie;var qk=Object.values(bs);qk.length=qk.indexOf(0);var yP=Object.values(uu);yP.length=yP.indexOf(0);var qY=class{static SVG_MEETORSLICE_UNKNOWN=uu.unknown;static SVG_MEETORSLICE_MEET=uu.meet;static SVG_MEETORSLICE_SLICE=uu.slice;static SVG_PRESERVEASPECTRATIO_UNKNOWN=bs.unknown;static SVG_PRESERVEASPECTRATIO_NONE=bs.none;static SVG_PRESERVEASPECTRATIO_XMINYMIN=bs.xMinYMin;static SVG_PRESERVEASPECTRATIO_XMIDYMIN=bs.xMidYMin;static SVG_PRESERVEASPECTRATIO_XMAXYMIN=bs.xMaxYMin;static SVG_PRESERVEASPECTRATIO_XMINYMID=bs.xMinYMid;static SVG_PRESERVEASPECTRATIO_XMIDYMID=bs.xMidYMid;static SVG_PRESERVEASPECTRATIO_XMAXYMID=bs.xMaxYMid;static SVG_PRESERVEASPECTRATIO_XMINYMAX=bs.xMinYMax;static SVG_PRESERVEASPECTRATIO_XMIDYMAX=bs.xMidYMax;static SVG_PRESERVEASPECTRATIO_XMAXYMAX=bs.xMaxYMax;[W];[M]=null;[L]=null;[$]=null;[Ve]=!1;constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,l&&(this[Ve]=!!l.readOnly,this[M]=l.getAttribute||null,this[L]=l.setAttribute||null)}get align(){let e=this[M]?this[M]():this[$];if(!e)return bs.xMidYMid;let I=e.split(/\s+/)[0];return bs[I]===void 0?bs.xMidYMid:bs[I]}set align(e){if(this[Ve])throw new this[W].TypeError("Failed to set the 'align' property on 'SVGPreserveAspectRatio': The object is read-only.");let I=Number(e);if(isNaN(I)||I<1||I>qk.length)throw new this[W].TypeError("Failed to set the 'align' property on 'SVGPreserveAspectRatio': The alignment provided is invalid.");this[$]=`${qk[I]} ${yP[this.meetOrSlice]}`,this[L]&&this[L](this[$])}get meetOrSlice(){let e=this[M]?this[M]():this[$];if(!e)return uu.meet;let I=e.split(/\s+/)[1];return!I||uu[I]===void 0?uu.meet:uu[I]}set meetOrSlice(e){if(this[Ve])throw new this[W].TypeError("Failed to set the 'meetOrSlice' property on 'SVGPreserveAspectRatio': The object is read-only.");let I=Number(e);if(isNaN(I)||I<1||I>2)throw new this[W].TypeError("Failed to set the 'meetOrSlice' property on 'SVGPreserveAspectRatio': The meetOrSlice provided is invalid.");this[$]=`${qk[this.align]} ${yP[I]}`,this[L]&&this[L](this[$])}};var Po=class{[W];[M];[L];[Tt]=null;[jt]=null;constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,this[M]=l.getAttribute,this[L]=l.setAttribute}get animVal(){return this[jt]||(this[jt]=new qY(V,this[W],{readOnly:!0,getAttribute:this[M]})),this[jt]}set animVal(e){}get baseVal(){return this[Tt]||(this[Tt]=new qY(V,this[W],{getAttribute:this[M],setAttribute:this[L]})),this[Tt]}set baseVal(e){}};G();var T=class{[W];[M];[L];[Tt]=null;[jt]=null;constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,this[M]=l.getAttribute,this[L]=l.setAttribute}get animVal(){return this[jt]||(this[jt]=new _d(V,this[W],{readOnly:!0,getAttribute:this[M]})),this[jt]}set animVal(e){}get baseVal(){return this[Tt]||(this[Tt]=new _d(V,this[W],{getAttribute:this[M],setAttribute:this[L]})),this[Tt]}set baseVal(e){}};var qH=class extends Al{[Bc]=null;[P]=null;[q]=null;[ne]=null;[le]=null;[cP]=1;[rh]=null;get onafterprint(){return E.getEventListener(this,"onafterprint")}set onafterprint(e){this[F].set("onafterprint",e)}get onbeforeprint(){return E.getEventListener(this,"onbeforeprint")}set onbeforeprint(e){this[F].set("onbeforeprint",e)}get onbeforeunload(){return E.getEventListener(this,"onbeforeunload")}set onbeforeunload(e){this[F].set("onbeforeunload",e)}get ongamepadconnected(){return E.getEventListener(this,"ongamepadconnected")}set ongamepadconnected(e){this[F].set("ongamepadconnected",e)}get ongamepaddisconnected(){return E.getEventListener(this,"ongamepaddisconnected")}set ongamepaddisconnected(e){this[F].set("ongamepaddisconnected",e)}get onhashchange(){return E.getEventListener(this,"onhashchange")}set onhashchange(e){this[F].set("onhashchange",e)}get onlanguagechange(){return E.getEventListener(this,"onlanguagechange")}set onlanguagechange(e){this[F].set("onlanguagechange",e)}get onmessage(){return E.getEventListener(this,"onmessage")}set onmessage(e){this[F].set("onmessage",e)}get onmessageerror(){return E.getEventListener(this,"onmessageerror")}set onmessageerror(e){this[F].set("onmessageerror",e)}get onoffline(){return E.getEventListener(this,"onoffline")}set onoffline(e){this[F].set("onoffline",e)}get ononline(){return E.getEventListener(this,"ononline")}set ononline(e){this[F].set("ononline",e)}get onpagehide(){return E.getEventListener(this,"onpagehide")}set onpagehide(e){this[F].set("onpagehide",e)}get onpageshow(){return E.getEventListener(this,"onpageshow")}set onpageshow(e){this[F].set("onpageshow",e)}get onpopstate(){return E.getEventListener(this,"onpopstate")}set onpopstate(e){this[F].set("onpopstate",e)}get onrejectionhandled(){return E.getEventListener(this,"onrejectionhandled")}set onrejectionhandled(e){this[F].set("onrejectionhandled",e)}get onstorage(){return E.getEventListener(this,"onstorage")}set onstorage(e){this[F].set("onstorage",e)}get onunhandledrejection(){return E.getEventListener(this,"onunhandledrejection")}set onunhandledrejection(e){this[F].set("onunhandledrejection",e)}get onunload(){return E.getEventListener(this,"onunload")}set onunload(e){this[F].set("onunload",e)}get preserveAspectRatio(){return this[Bc]||(this[Bc]=new Po(V,this[W],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:e=>this.setAttribute("preserveAspectRatio",e)})),this[Bc]}get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}get currentScale(){return this[cP]}set currentScale(e){let I=typeof e!="number"?parseFloat(String(e)):e;if(isNaN(I))throw this[W].TypeError("Failed to set the 'currentScale' property on 'SVGSVGElement': The provided float value is non-finite.");I<1||(this[cP]=I)}get currentTranslate(){return new gc(V,this[W])}get viewBox(){return this[rh]||(this[rh]=new Zu(V,this[W],{getAttribute:()=>this.getAttribute("viewBox"),setAttribute:e=>this.setAttribute("viewBox",e)})),this[rh]}pauseAnimations(){}unpauseAnimations(){}animationsPaused(){return!1}getCurrentTime(){return 0}setCurrentTime(e){}getIntersectionList(e,I){return new Oo(V,[])}getEnclosureList(e,I){return new Oo(V,[])}checkIntersection(e,I){return!1}checkEnclosure(e,I){return!1}deselectAll(){}createSVGNumber(){return new $d(V,this[W])}createSVGLength(){return new _d(V,this[W])}createSVGAngle(){return new Sh(V,this[W])}createSVGPoint(){return new gc(V,this[W])}createSVGMatrix(){return new Uh(V,this[W])}createSVGRect(){return new qd(V,this[W])}createSVGTransform(){return new zG(V,this[W])}createSVGTransformFromMatrix(e){let I=new zG(V,this[W]);return I.setMatrix(e),I}getElementsByClassName(e){return Et.getElementsByClassName(this,e)}getElementsByTagName(e){return Et.getElementsByTagName(this,e)}getElementsByTagNameNS(e,I){return Et.getElementsByTagNameNS(this,e,I)}getElementById(e){return Et.getElementById(this,e)}[aI](e=!1){return super[aI](e)}};G();G();var qo=class extends ke{[ah]=null;[sh]=null;get onbegin(){return E.getEventListener(this,"onbegin")}set onbegin(e){this[F].set("onbegin",e)}get onend(){return E.getEventListener(this,"onend")}set onend(e){this[F].set("onend",e)}get onrepeat(){return E.getEventListener(this,"onrepeat")}set onrepeat(e){this[F].set("onrepeat",e)}get requiredExtensions(){return this[ah]||(this[ah]=new Vb(V,this[W],{getAttribute:()=>this.getAttribute("requiredExtensions"),setAttribute:e=>this.setAttribute("requiredExtensions",e)})),this[ah]}get systemLanguage(){return this[sh]||(this[sh]=new Vb(V,this[W],{getAttribute:()=>this.getAttribute("systemLanguage"),setAttribute:e=>this.setAttribute("systemLanguage",e)})),this[sh]}get targetElement(){return null}};var _k=class extends qo{};G();var $k=class extends qo{};G();var ef=class extends qo{};G();G();G();var eI=class{[W];[M];[L];[Ar]=0;constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,this[M]=l.getAttribute,this[L]=l.setAttribute,this[Ar]=l.defaultValue||0}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[M]();if(!e)return this[Ar];let I=parseFloat(e);return isNaN(I)?this[Ar]:I}set baseVal(e){let I=typeof e!="number"?parseFloat(e):e;if(isNaN(I))throw new this[W].TypeError("TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedNumber': The provided float value is non-finite.");this[L](String(I))}};var sa=class extends Al{[e3]=null;get pathLength(){return this[e3]||(this[e3]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("pathLength"),setAttribute:e=>this.setAttribute("pathLength",e)})),this[e3]}isPointInFill(e){if(!(e instanceof gc))throw new TypeError("Failed to execute 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'.");return!1}isPointInStroke(e){if(!(e instanceof gc))throw new TypeError("Failed to execute 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'.");return!1}getTotalLength(){return 0}getPointAtLength(e){return new gc(V,this[W])}};var If=class extends sa{[wr]=null;[Xr]=null;[bh]=null;get cx(){return this[wr]||(this[wr]=new T(V,this[W],{getAttribute:()=>this.getAttribute("cx"),setAttribute:e=>this.setAttribute("cx",e)})),this[wr]}get cy(){return this[Xr]||(this[Xr]=new T(V,this[W],{getAttribute:()=>this.getAttribute("cy"),setAttribute:e=>this.setAttribute("cy",e)})),this[Xr]}get r(){return this[bh]||(this[bh]=new T(V,this[W],{getAttribute:()=>this.getAttribute("r"),setAttribute:e=>this.setAttribute("r",e)})),this[bh]}};G();G();var CI=class{[W];[M];[L];[Rc];[Ar];constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,this[M]=l.getAttribute,this[L]=l.setAttribute,this[Rc]=l.values,this[Ar]=l.defaultValue}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[M]();if(!e)return this[Rc].indexOf(this[Ar])+1;let I=this[Rc].indexOf(e);if(I===-1){let l=this[Rc].indexOf(null);return l!==-1?l+1:0}return I+1}set baseVal(e){let I=Number(e);if(isNaN(I)&&(I=0),I<1)throw new TypeError(`Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provided is ${I}, which is not settable.`);if(I>this[Rc].length)throw new TypeError(`Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provided (${I}) is larger than the largest allowed value (${this[Rc].length}).`);let l=this[M](),n=this[Rc][I-1]===null,c=n?"0":this[Rc][I-1];(!l||n&&this[Rc].includes(l)||!n&&l!==c)&&this[L](c||"")}};var tf=class extends ke{[r3]=null;get clipPathUnits(){return this[r3]||(this[r3]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("clipPathUnits"),setAttribute:e=>this.setAttribute("clipPathUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[r3]}};G();var lf=class extends Al{};G();var nf=class extends ke{};G();var cf=class extends sa{[wr]=null;[Xr]=null;[dh]=null;[ih]=null;get cx(){return this[wr]||(this[wr]=new T(V,this[W],{getAttribute:()=>this.getAttribute("cx"),setAttribute:e=>this.setAttribute("cx",e)})),this[wr]}get cy(){return this[Xr]||(this[Xr]=new T(V,this[W],{getAttribute:()=>this.getAttribute("cy"),setAttribute:e=>this.setAttribute("cy",e)})),this[Xr]}get rx(){return this[dh]||(this[dh]=new T(V,this[W],{getAttribute:()=>this.getAttribute("rx"),setAttribute:e=>this.setAttribute("rx",e)})),this[dh]}get ry(){return this[ih]||(this[ih]=new T(V,this[W],{getAttribute:()=>this.getAttribute("ry"),setAttribute:e=>this.setAttribute("ry",e)})),this[ih]}};G();G();var Me=class{[W];[M];[L];constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,this[M]=l.getAttribute,this[L]=l.setAttribute}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[M]();return e||""}set baseVal(e){this[L](String(e))}};var af=class extends ke{static SVG_FEBLEND_MODE_UNKNOWN=0;static SVG_FEBLEND_MODE_NORMAL=1;static SVG_FEBLEND_MODE_MULTIPLY=2;static SVG_FEBLEND_MODE_SCREEN=3;static SVG_FEBLEND_MODE_DARKEN=4;static SVG_FEBLEND_MODE_LIGHTEN=5;static SVG_FEBLEND_MODE_OVERLAY=6;static SVG_FEBLEND_MODE_COLOR_DODGE=7;static SVG_FEBLEND_MODE_COLOR_BURN=8;static SVG_FEBLEND_MODE_HARD_LIGHT=9;static SVG_FEBLEND_MODE_SOFT_LIGHT=10;static SVG_FEBLEND_MODE_DIFFERENCE=11;static SVG_FEBLEND_MODE_EXCLUSION=12;static SVG_FEBLEND_MODE_HUE=13;static SVG_FEBLEND_MODE_SATURATION=14;static SVG_FEBLEND_MODE_COLOR=15;static SVG_FEBLEND_MODE_LUMINOSITY=16;[le]=null;[Ke]=null;[Hr]=null;[Bl]=null;[P]=null;[q]=null;[ne]=null;get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get in1(){return this[Ke]||(this[Ke]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Ke]}get in2(){return this[Hr]||(this[Hr]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("in2"),setAttribute:e=>this.setAttribute("in2",e)})),this[Hr]}get mode(){return this[Bl]||(this[Bl]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("mode"),setAttribute:e=>this.setAttribute("mode",e),values:["normal","multiply","screen","darken","lighten","overlay","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],defaultValue:"normal"})),this[Bl]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}};G();G();G();var eLI=/[\t\f\n\r, ]+/,_Y=class t{[W];[M];[L];[Ve]=!1;[oe]={items:[],attributeValue:""};constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");if(this[W]=I,this[Ve]=!!l.readOnly,this[M]=l.getAttribute,this[L]=l.setAttribute,e!==V)throw new TypeError("Illegal constructor");let n=new Zl(this,[t]);return new Proxy(this,{get:(c,a)=>{if(a==="length"||a==="numberOfItems")return c[Ne]().length;if(a in c||typeof a=="symbol")return n.bind(a),c[a];let s=Number(a);if(!isNaN(s))return c[Ne]()[s]},set(c,a,s){if(n.bind(a),typeof a=="symbol")return c[a]=s,!0;let r=Number(a);return isNaN(r)&&(c[a]=s),!0},deleteProperty(c,a){if(typeof a=="symbol")return delete c[a],!0;let s=Number(a);return isNaN(s)&&delete c[a],!0},ownKeys(c){return Object.keys(c[Ne]())},has(c,a){if(a in c)return!0;if(typeof a=="symbol")return!1;let s=Number(a);return!isNaN(s)&&s>=0&&s<c[Ne]().length},defineProperty(c,a,s){return n.preventBinding(a),a in c?(Object.defineProperty(c,a,s),!0):!1},getOwnPropertyDescriptor(c,a){if(a in c||typeof a=="symbol")return;let s=Number(a),r=c[Ne]();if(!isNaN(s)&&r[s])return{value:r[s],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[Ne]().length}get numberOfItems(){return this[Ne]().length}[Symbol.iterator](){return this[Ne]().values()}clear(){if(this[Ve])throw new this[W].TypeError("Failed to execute 'clear' on 'SVGNumberList': The object is read-only.");for(let e of this[oe].items)e[M]=null,e[L]=null;this[oe].items=[],this[oe].attributeValue="",this[L]("")}initialize(e){if(arguments.length<1)throw new this[W].TypeError(`Failed to execute 'initialize' on 'SVGNumberList': 1 arguments required, but only ${arguments.length} present.`);if(this[Ve])throw new this[W].TypeError("Failed to execute 'initialize' on 'SVGNumberList': The object is read-only.");for(let I of this[oe].items)I[M]=null,I[L]=null;return e[M]=()=>e[$],e[L]=()=>{this[oe].attributeValue=this[Ne]().map(I=>I[$]||"0").join(" "),this[L](this[oe].attributeValue)},this[oe].items=[e],this[oe].attributeValue=e[$],this[L](e[$]||""),e}getItem(e){let I=this[Ne]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),I[e]?I[e]:null}insertItemBefore(e,I){if(this[Ve])throw new this[W].TypeError("Failed to execute 'insertItemBefore' on 'SVGNumberList': The object is read-only.");if(arguments.length<2)throw new this[W].TypeError(`Failed to execute 'insertItemBefore' on 'SVGNumberList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof $d))throw new this[W].TypeError("Failed to execute 'insertItemBefore' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let l=this[Ne](),n=l.indexOf(e);return n!==-1&&l.splice(n,1),I<0?I=0:I>l.length&&(I=l.length),l.splice(I,0,e),e[M]=()=>e[$],e[L]=()=>{this[oe].attributeValue=this[Ne]().map(c=>c[$]||"0").join(" "),this[L](this[oe].attributeValue)},this[oe].attributeValue=l.map(c=>c[$]||"0").join(" "),this[L](this[oe].attributeValue),e}replaceItem(e,I){if(this[Ve])throw new this[W].TypeError("Failed to execute 'replaceItem' on 'SVGNumberList': The object is read-only.");if(arguments.length<2)throw new this[W].TypeError(`Failed to execute 'replaceItem' on 'SVGNumberList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof $d))throw new this[W].TypeError("Failed to execute 'replaceItem' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let l=this[Ne](),n=l.indexOf(e);if(n===I)return e;n!==-1&&l.splice(n,1),I<0?I=0:I>=l.length&&(I=l.length-1),l[I]&&(l[I][M]=null,l[I][L]=null);let c=l[I];return l[I]=e,e[M]=()=>e[$],e[L]=()=>{this[oe].attributeValue=this[Ne]().map(a=>a[$]||"0").join(" "),this[L](this[oe].attributeValue)},this[oe].attributeValue=l.map(a=>a[$]||"0").join(" "),this[L](this[oe].attributeValue),c}removeItem(e){if(this[Ve])throw new this[W].TypeError("Failed to execute 'removeItem' on 'SVGNumberList': The object is read-only.");if(arguments.length<1)throw new this[W].TypeError(`Failed to execute 'removeItem' on 'SVGNumberList': 1 argument required, but only ${arguments.length} present.`);let I=this[Ne]();if(e=Number(e),isNaN(e)&&(e=0),e>=I.length)throw new this[W].DOMException(`Failed to execute 'removeItem' on 'SVGNumberList': The index provided (${e}) is greater than the maximum bound.`,x.indexSizeError);if(e<0)throw new this[W].DOMException(`Failed to execute 'removeItem' on 'SVGNumberList': The index provided (${e}) is negative.`,x.indexSizeError);let l=I[e];return l&&(l[M]=null,l[L]=null),I.splice(e,1),this[L](I.map(n=>n[$]||"0").join(" ")),l}appendItem(e){if(this[Ve])throw new this[W].TypeError("Failed to execute 'appendItem' on 'SVGNumberList': The object is read-only.");if(arguments.length<1)throw new this[W].TypeError(`Failed to execute 'appendItem' on 'SVGNumberList': 1 argument required, but only ${arguments.length} present.`);if(!(e instanceof $d))throw new this[W].TypeError("Failed to execute 'appendItem' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let I=this[Ne](),l=I.indexOf(e);return l!==-1&&I.splice(l,1),I.push(e),e[M]=()=>e[$],e[L]=()=>{this[oe].attributeValue=this[Ne]().map(n=>n[$]||"0").join(" "),this[L](this[oe].attributeValue)},this[oe].attributeValue=I.map(n=>n[$]||"0").join(" "),this[L](this[oe].attributeValue),e}[Ne](){let e=this[M]()??"",I=this[oe];if(I.attributeValue===e)return I.items;if(I.items.length)for(let c of I.items)c[M]=null,c[L]=null;let l=[],n=e.trim();if(n){let c=n.split(eLI);for(let a=0,s=c.length;a<s;a++){let r=new $d(V,this[W],{readOnly:this[Ve],getAttribute:()=>r[$],setAttribute:()=>{this[oe].attributeValue=this[Ne]().map(o=>o[$]||"0").join(" "),this[L](this[oe].attributeValue)}});r[$]=String(parseFloat(c[a])),l.push(r)}}return I.attributeValue=e,I.items=l,l}};var Mr=class{[W];[M];[L];[Tt]=null;[jt]=null;constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,this[M]=l.getAttribute,this[L]=l.setAttribute}get animVal(){return this[jt]||(this[jt]=new _Y(V,this[W],{readOnly:!0,getAttribute:this[M],setAttribute:()=>{}})),this[jt]}set animVal(e){}get baseVal(){return this[Tt]||(this[Tt]=new _Y(V,this[W],{getAttribute:this[M],setAttribute:this[L]})),this[Tt]}set baseVal(e){}};var sf=class extends ke{static SVG_FEBLEND_TYPE_UNKNOWN=0;static SVG_FEBLEND_TYPE_MATRIX=1;static SVG_FEBLEND_TYPE_SATURATE=2;static SVG_FEBLEND_TYPE_HUEROTATE=3;static SVG_FEBLEND_TYPE_LUMINANCETOALPHA=4;[le]=null;[Ke]=null;[Hr]=null;[Ce]=null;[Wt]=null;[Rc]=null;[P]=null;[q]=null;[ne]=null;get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get in1(){return this[Ke]||(this[Ke]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Ke]}get in2(){return this[Hr]||(this[Hr]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("in2"),setAttribute:e=>this.setAttribute("in2",e)})),this[Hr]}get result(){return this[Ce]||(this[Ce]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[Ce]}get type(){return this[Wt]||(this[Wt]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("type"),setAttribute:e=>this.setAttribute("type",e),values:["matrix","saturate","huerotate","luminancetoalpha"],defaultValue:"matrix"})),this[Wt]}get values(){return this[Rc]||(this[Rc]=new Mr(V,this[W],{getAttribute:()=>this.getAttribute("values"),setAttribute:e=>this.setAttribute("values",e)})),this[Rc]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}};G();var rf=class extends ke{[le]=null;[Ke]=null;[Ce]=null;[P]=null;[q]=null;[ne]=null;get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get in1(){return this[Ke]||(this[Ke]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Ke]}get result(){return this[Ce]||(this[Ce]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[Ce]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}};G();var Gf=class extends ke{static SVG_FECOMPOSITE_OPERATOR_UNKNOWN=0;static SVG_FECOMPOSITE_OPERATOR_OVER=1;static SVG_FECOMPOSITE_OPERATOR_IN=2;static SVG_FECOMPOSITE_OPERATOR_OUT=3;static SVG_FECOMPOSITE_OPERATOR_ATOP=4;static SVG_FECOMPOSITE_OPERATOR_XOR=5;static SVG_FECOMPOSITE_OPERATOR_ARITHMETIC=6;[le]=null;[Ke]=null;[Ce]=null;[Wt]=null;[Rc]=null;[P]=null;[q]=null;[ne]=null;get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get in1(){return this[Ke]||(this[Ke]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Ke]}get result(){return this[Ce]||(this[Ce]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[Ce]}get type(){return this[Wt]||(this[Wt]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("type"),setAttribute:e=>this.setAttribute("type",e),values:["over","in","out","atop","xor","arithmetic"],defaultValue:"over"})),this[Wt]}get values(){return this[Rc]||(this[Rc]=new Mr(V,this[W],{getAttribute:()=>this.getAttribute("values"),setAttribute:e=>this.setAttribute("values",e)})),this[Rc]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}};G();G();var W0=class{[W];[M];[L];constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,this[M]=l.getAttribute,this[L]=l.setAttribute}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){return this[M]()==="true"}set baseVal(e){this[L](String(typeof e!="boolean"?!!e:e))}};G();var ei=class{[W];[M];[L];constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,this[M]=l.getAttribute,this[L]=l.setAttribute}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[M]();if(!e)return 0;let I=parseInt(e);return isNaN(I)?0:I}set baseVal(e){let I=parseInt(String(e));if(isNaN(I))throw new this[W].TypeError("TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedInteger': The provided float value is non-finite.");this[L](String(I))}};var of=class extends ke{static SVG_EDGEMODE_UNKNOWN=0;static SVG_EDGEMODE_DUPLICATE=1;static SVG_EDGEMODE_WRAP=2;static SVG_EDGEMODE_NONE=3;[A3]=null;[w3]=null;[Nh]=null;[le]=null;[Ke]=null;[X3]=null;[Er]=null;[vr]=null;[H3]=null;[E3]=null;[v3]=null;[Ce]=null;[C3]=null;[J3]=null;[ne]=null;[P]=null;[q]=null;get bias(){return this[A3]||(this[A3]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("bias"),setAttribute:e=>this.setAttribute("bias",e)})),this[A3]}get divisor(){return this[w3]||(this[w3]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("divisor"),setAttribute:e=>this.setAttribute("divisor",e)})),this[w3]}get edgeMode(){return this[Nh]||(this[Nh]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("edgeMode"),setAttribute:e=>this.setAttribute("edgeMode",e),values:["duplicate","wrap","none"],defaultValue:"duplicate"})),this[Nh]}get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get in1(){return this[Ke]||(this[Ke]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Ke]}get kernelMatrix(){return this[X3]||(this[X3]=new Mr(V,this[W],{getAttribute:()=>this.getAttribute("kernelMatrix"),setAttribute:e=>this.setAttribute("kernelMatrix",e)})),this[X3]}get kernelUnitLengthX(){return this[Er]||(this[Er]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:e=>this.setAttribute("kernelUnitLengthX",e)})),this[Er]}get kernelUnitLengthY(){return this[vr]||(this[vr]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:e=>this.setAttribute("kernelUnitLengthY",e)})),this[vr]}get orderX(){return this[H3]||(this[H3]=new ei(V,this[W],{getAttribute:()=>this.getAttribute("orderX"),setAttribute:e=>this.setAttribute("orderX",e)})),this[H3]}get orderY(){return this[E3]||(this[E3]=new ei(V,this[W],{getAttribute:()=>this.getAttribute("orderY"),setAttribute:e=>this.setAttribute("orderY",e)})),this[E3]}get preserveAlpha(){return this[v3]||(this[v3]=new W0(V,this[W],{getAttribute:()=>this.getAttribute("preserveAlpha"),setAttribute:e=>this.setAttribute("preserveAlpha",e)})),this[v3]}get result(){return this[Ce]||(this[Ce]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[Ce]}get targetX(){return this[C3]||(this[C3]=new ei(V,this[W],{getAttribute:()=>this.getAttribute("targetX"),setAttribute:e=>this.setAttribute("targetX",e)})),this[C3]}get targetY(){return this[J3]||(this[J3]=new ei(V,this[W],{getAttribute:()=>this.getAttribute("targetY"),setAttribute:e=>this.setAttribute("targetY",e)})),this[J3]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}};G();var df=class extends ke{[L3]=null;[le]=null;[Ke]=null;[Er]=null;[vr]=null;[Ce]=null;[Yh]=null;[ne]=null;[P]=null;[q]=null;get diffuseConstant(){return this[L3]||(this[L3]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("diffuseConstant"),setAttribute:e=>this.setAttribute("diffuseConstant",e)})),this[L3]}get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get in1(){return this[Ke]||(this[Ke]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Ke]}get kernelUnitLengthX(){return this[Er]||(this[Er]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:e=>this.setAttribute("kernelUnitLengthX",e)})),this[Er]}get kernelUnitLengthY(){return this[vr]||(this[vr]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:e=>this.setAttribute("kernelUnitLengthY",e)})),this[vr]}get result(){return this[Ce]||(this[Ce]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[Ce]}get surfaceScale(){return this[Yh]||(this[Yh]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("surfaceScale"),setAttribute:e=>this.setAttribute("surfaceScale",e)})),this[Yh]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}};G();var bf=class extends ke{static SVG_CHANNEL_UNKNOWN=0;static SVG_CHANNEL_R=1;static SVG_CHANNEL_G=2;static SVG_CHANNEL_B=3;static SVG_CHANNEL_A=4;[le]=null;[Ke]=null;[Hr]=null;[Ce]=null;[k3]=null;[ne]=null;[P]=null;[f3]=null;[q]=null;[x3]=null;get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get in1(){return this[Ke]||(this[Ke]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Ke]}get in2(){return this[Hr]||(this[Hr]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("in2"),setAttribute:e=>this.setAttribute("in2",e)})),this[Hr]}get result(){return this[Ce]||(this[Ce]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[Ce]}get scale(){return this[k3]||(this[k3]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("scale"),setAttribute:e=>this.setAttribute("scale",e)})),this[k3]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get xChannelSelector(){return this[f3]||(this[f3]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("xChannelSelector"),setAttribute:e=>this.setAttribute("xChannelSelector",e),values:["r","g","b","a"],defaultValue:"r"})),this[f3]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}get yChannelSelector(){return this[x3]||(this[x3]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("yChannelSelector"),setAttribute:e=>this.setAttribute("yChannelSelector",e),values:["r","g","b","a"],defaultValue:"r"})),this[x3]}};G();var mf=class extends ke{[B3]=null;[z3]=null;get azimuth(){return this[B3]||(this[B3]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("azimuth"),setAttribute:e=>this.setAttribute("azimuth",e)})),this[B3]}get elevation(){return this[z3]||(this[z3]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("elevation"),setAttribute:e=>this.setAttribute("elevation",e)})),this[z3]}};G();var hf=class extends ke{[Cr]=null;[Jr]=null;[le]=null;[Ke]=null;[Ce]=null;[Vh]=null;[Rh]=null;[ne]=null;[P]=null;[q]=null;get dx(){return this[Cr]||(this[Cr]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("dx"),setAttribute:e=>this.setAttribute("dx",e)})),this[Cr]}get dy(){return this[Jr]||(this[Jr]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("dy"),setAttribute:e=>this.setAttribute("dy",e)})),this[Jr]}get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get in1(){return this[Ke]||(this[Ke]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Ke]}get result(){return this[Ce]||(this[Ce]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[Ce]}get stdDeviationX(){return this[Vh]||(this[Vh]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("stdDeviationX"),setAttribute:e=>this.setAttribute("stdDeviationX",e),defaultValue:2})),this[Vh]}get stdDeviationY(){return this[Rh]||(this[Rh]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("stdDeviationY"),setAttribute:e=>this.setAttribute("stdDeviationY",e),defaultValue:2})),this[Rh]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}setStdDeviation(e,I){this.stdDeviationX.baseVal=e,this.stdDeviationY.baseVal=I}};G();var pf=class extends ke{[le]=null;[Ce]=null;[ne]=null;[P]=null;[q]=null;get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get result(){return this[Ce]||(this[Ce]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[Ce]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}};G();G();var _o=class extends ke{static SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN=0;static SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY=1;static SVG_FECOMPONENTTRANSFER_TYPE_TABLE=2;static SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE=3;static SVG_FECOMPONENTTRANSFER_TYPE_LINEAR=4;static SVG_FECOMPONENTTRANSFER_TYPE_GAMMA=5;[Wt]=null;[U3]=null;[S3]=null;[O3]=null;[M3]=null;[T3]=null;[uh]=null;get type(){return this[Wt]||(this[Wt]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("type"),setAttribute:e=>this.setAttribute("type",e),values:["identity","table","discrete","linear","gamma"],defaultValue:"identity"})),this[Wt]}get tableValues(){return this[U3]||(this[U3]=new Mr(V,this[W],{getAttribute:()=>this.getAttribute("tableValues"),setAttribute:e=>this.setAttribute("tableValues",e)})),this[U3]}get slope(){return this[S3]||(this[S3]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("slope"),setAttribute:e=>this.setAttribute("slope",e),defaultValue:1})),this[S3]}get intercept(){return this[O3]||(this[O3]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("intercept"),setAttribute:e=>this.setAttribute("intercept",e)})),this[O3]}get amplitude(){return this[M3]||(this[M3]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("amplitude"),setAttribute:e=>this.setAttribute("amplitude",e),defaultValue:1})),this[M3]}get exponent(){return this[T3]||(this[T3]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("exponent"),setAttribute:e=>this.setAttribute("exponent",e),defaultValue:1})),this[T3]}get offset(){return this[uh]||(this[uh]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("offset"),setAttribute:e=>this.setAttribute("offset",e)})),this[uh]}};var Zf=class extends _o{};G();var uf=class extends _o{};G();var Wf=class extends _o{};G();var Nf=class extends _o{};G();var Yf=class extends ke{static SVG_EDGEMODE_UNKNOWN=0;static SVG_EDGEMODE_DUPLICATE=1;static SVG_EDGEMODE_WRAP=2;static SVG_EDGEMODE_NONE=3;[Nh]=null;[le]=null;[Ke]=null;[Ce]=null;[Vh]=null;[Rh]=null;[ne]=null;[P]=null;[q]=null;get edgeMode(){return this[Nh]||(this[Nh]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("edgeMode"),setAttribute:e=>this.setAttribute("edgeMode",e),values:["duplicate","wrap","none"],defaultValue:"duplicate"})),this[Nh]}get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get in1(){return this[Ke]||(this[Ke]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Ke]}get result(){return this[Ce]||(this[Ce]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[Ce]}get stdDeviationX(){return this[Vh]||(this[Vh]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("stdDeviationX")||"2",setAttribute:e=>this.setAttribute("stdDeviationX",e)})),this[Vh]}get stdDeviationY(){return this[Rh]||(this[Rh]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("stdDeviationY")||"2",setAttribute:e=>this.setAttribute("stdDeviationY",e)})),this[Rh]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}setStdDeviation(e,I){this.stdDeviationX.baseVal=e,this.stdDeviationY.baseVal=I}};G();var Vf=class extends ke{[eze]=null;[le]=null;[OI]=null;[Bc]=null;[Ce]=null;[ne]=null;[P]=null;[q]=null;get crossOrigin(){return this.getAttribute("crossorigin")}set crossOrigin(e){this.setAttribute("crossorigin",e)}get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get href(){return this[OI]||(this[OI]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[OI]}get preserveAspectRatio(){return this[Bc]||(this[Bc]=new Po(V,this[W],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:e=>this.setAttribute("preserveAspectRatio",e)})),this[Bc]}get result(){return this[Ce]||(this[Ce]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[Ce]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}};G();var Rf=class extends ke{[le]=null;[Ce]=null;[ne]=null;[P]=null;[q]=null;get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get result(){return this[Ce]||(this[Ce]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[Ce]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}};G();var yf=class extends ke{[Ke]=null;get in1(){return this[Ke]||(this[Ke]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Ke]}};G();var Ff=class extends ke{static SVG_MORPHOLOGY_OPERATOR_UNKNOWN=0;static SVG_MORPHOLOGY_OPERATOR_ERODE=1;static SVG_MORPHOLOGY_OPERATOR_DILATE=2;[le]=null;[Ke]=null;[j3]=null;[D3]=null;[K3]=null;[Ce]=null;[ne]=null;[P]=null;[q]=null;get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get in1(){return this[Ke]||(this[Ke]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Ke]}get operator(){return this[j3]||(this[j3]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("operator"),setAttribute:e=>this.setAttribute("operator",e),values:["erode","dilate"],defaultValue:"erode"})),this[j3]}get radiusX(){return this[D3]||(this[D3]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("radiusX"),setAttribute:e=>this.setAttribute("radiusX",e)})),this[D3]}get radiusY(){return this[K3]||(this[K3]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("radiusY"),setAttribute:e=>this.setAttribute("radiusY",e)})),this[K3]}get result(){return this[Ce]||(this[Ce]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[Ce]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}};G();var gf=class extends ke{[le]=null;[Ke]=null;[Cr]=null;[Jr]=null;[Ce]=null;[ne]=null;[P]=null;[q]=null;get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get in1(){return this[Ke]||(this[Ke]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Ke]}get dx(){return this[Cr]||(this[Cr]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("dx"),setAttribute:e=>this.setAttribute("dx",e)})),this[Cr]}get dy(){return this[Jr]||(this[Jr]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("dy"),setAttribute:e=>this.setAttribute("dy",e)})),this[Jr]}get result(){return this[Ce]||(this[Ce]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[Ce]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}};G();var Qf=class extends ke{[P]=null;[q]=null;[ss]=null;get x(){return this[P]||(this[P]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}get z(){return this[ss]||(this[ss]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("z"),setAttribute:e=>this.setAttribute("z",e)})),this[ss]}};G();var Af=class extends ke{[le]=null;[Ke]=null;[Er]=null;[vr]=null;[Ce]=null;[P3]=null;[yh]=null;[Yh]=null;[ne]=null;[P]=null;[q]=null;get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get in1(){return this[Ke]||(this[Ke]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Ke]}get kernelUnitLengthX(){return this[Er]||(this[Er]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:e=>this.setAttribute("kernelUnitLengthX",e)})),this[Er]}get kernelUnitLengthY(){return this[vr]||(this[vr]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:e=>this.setAttribute("kernelUnitLengthY",e)})),this[vr]}get result(){return this[Ce]||(this[Ce]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[Ce]}get specularConstant(){return this[P3]||(this[P3]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("specularConstant"),setAttribute:e=>this.setAttribute("specularConstant",e),defaultValue:1})),this[P3]}get specularExponent(){return this[yh]||(this[yh]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("specularExponent"),setAttribute:e=>this.setAttribute("specularExponent",e),defaultValue:1})),this[yh]}get surfaceScale(){return this[Yh]||(this[Yh]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("surfaceScale"),setAttribute:e=>this.setAttribute("surfaceScale",e),defaultValue:1})),this[Yh]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}};G();var wf=class extends ke{[P]=null;[q]=null;[ss]=null;[q3]=null;[_3]=null;[$3]=null;[yh]=null;[ek]=null;get x(){return this[P]||(this[P]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}get z(){return this[ss]||(this[ss]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("z"),setAttribute:e=>this.setAttribute("z",e)})),this[ss]}get pointsAtX(){return this[q3]||(this[q3]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("pointsAtX"),setAttribute:e=>this.setAttribute("pointsAtX",e)})),this[q3]}get pointsAtY(){return this[_3]||(this[_3]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("pointsAtY"),setAttribute:e=>this.setAttribute("pointsAtY",e)})),this[_3]}get pointsAtZ(){return this[$3]||(this[$3]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("pointsAtZ"),setAttribute:e=>this.setAttribute("pointsAtZ",e)})),this[$3]}get specularExponent(){return this[yh]||(this[yh]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("specularExponent"),setAttribute:e=>this.setAttribute("specularExponent",e),defaultValue:1})),this[yh]}get limitingConeAngle(){return this[ek]||(this[ek]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("limitingConeAngle"),setAttribute:e=>this.setAttribute("limitingConeAngle",e)})),this[ek]}};G();var Xf=class extends ke{[le]=null;[Ke]=null;[Ce]=null;[ne]=null;[P]=null;[q]=null;get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get in1(){return this[Ke]||(this[Ke]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Ke]}get result(){return this[Ce]||(this[Ce]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[Ce]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}};G();var Hf=class extends ke{static SVG_TURBULENCE_TYPE_UNKNOWN=0;static SVG_TURBULENCE_TYPE_FRACTALNOISE=1;static SVG_TURBULENCE_TYPE_TURBULENCE=2;static SVG_STITCHTYPE_UNKNOWN=0;static SVG_STITCHTYPE_STITCH=1;static SVG_STITCHTYPE_NOSTITCH=2;[Ik]=null;[tk]=null;[le]=null;[lk]=null;[Ce]=null;[nk]=null;[ck]=null;[Wt]=null;[ne]=null;[P]=null;[q]=null;get baseFrequencyX(){return this[Ik]||(this[Ik]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("baseFrequencyX"),setAttribute:e=>this.setAttribute("baseFrequencyX",e)})),this[Ik]}get baseFrequencyY(){return this[tk]||(this[tk]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("baseFrequencyY"),setAttribute:e=>this.setAttribute("baseFrequencyY",e)})),this[tk]}get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get numOctaves(){return this[lk]||(this[lk]=new ei(V,this[W],{getAttribute:()=>this.getAttribute("numOctaves"),setAttribute:e=>this.setAttribute("numOctaves",e)})),this[lk]}get result(){return this[Ce]||(this[Ce]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[Ce]}get seed(){return this[nk]||(this[nk]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("seed"),setAttribute:e=>this.setAttribute("seed",e)})),this[nk]}get stitchTiles(){return this[ck]||(this[ck]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("stitchTiles"),setAttribute:e=>this.setAttribute("stitchTiles",e),values:["stitch","noStitch"],defaultValue:"stitch"})),this[ck]}get type(){return this[Wt]||(this[Wt]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("type"),setAttribute:e=>this.setAttribute("type",e),values:["fractalNoise","turbulence"],defaultValue:"turbulence"})),this[Wt]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}};G();var Ef=class extends ke{[OI]=null;[d3]=null;[i3]=null;[P]=null;[q]=null;[ne]=null;[le]=null;get href(){return this[OI]||(this[OI]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[OI]}get filterUnits(){return this[d3]||(this[d3]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("filterUnits"),setAttribute:e=>this.setAttribute("filterUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[d3]}get primitiveUnits(){return this[i3]||(this[i3]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("primitiveUnits"),setAttribute:e=>this.setAttribute("primitiveUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[i3]}get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}};G();var vf=class extends Al{[P]=null;[q]=null;[ne]=null;[le]=null;get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}};G();var Cf=class extends Al{};G();var Jf=class extends Al{[OI]=null;[Bc]=null;[P]=null;[q]=null;[ne]=null;[le]=null;get crossOrigin(){return this.getAttribute("crossorigin")}set crossOrigin(e){this.setAttribute("crossorigin",e)}get href(){return this[OI]||(this[OI]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[OI]}get decoding(){let e=this.getAttribute("decoding");switch(e){case"sync":case"async":case"auto":return e;default:return"auto"}}set decoding(e){this.setAttribute("decoding",e)}get preserveAspectRatio(){return this[Bc]||(this[Bc]=new Po(V,this[W],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:e=>this.setAttribute("preserveAspectRatio",e)})),this[Bc]}get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}decode(){return Promise.resolve()}};G();var Lf=class extends sa{[mh]=null;[hh]=null;[ph]=null;[Zh]=null;get x1(){return this[mh]||(this[mh]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x1"),setAttribute:e=>this.setAttribute("x1",e)})),this[mh]}get y1(){return this[hh]||(this[hh]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y1"),setAttribute:e=>this.setAttribute("y1",e)})),this[hh]}get x2(){return this[ph]||(this[ph]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x2"),setAttribute:e=>this.setAttribute("x2",e)})),this[ph]}get y2(){return this[Zh]||(this[Zh]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y2"),setAttribute:e=>this.setAttribute("y2",e)})),this[Zh]}};G();G();var Wu=class extends Al{static SVG_SPREADMETHOD_UNKNOWN=0;static SVG_SPREADMETHOD_PAD=1;static SVG_SPREADMETHOD_REFLECT=2;static SVG_SPREADMETHOD_REPEAT=3;[OI]=null;[b3]=null;[m3]=null;[h3]=null;get href(){return this[OI]||(this[OI]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[OI]}get gradientUnits(){return this[b3]||(this[b3]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("gradientUnits"),setAttribute:e=>this.setAttribute("gradientUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"objectBoundingBox"})),this[b3]}get gradientTransform(){return this[m3]||(this[m3]=new Rb(V,this[W],{getAttribute:()=>this.getAttribute("gradientTransform"),setAttribute:e=>this.setAttribute("gradientTransform",e)})),this[m3]}get spreadMethod(){return this[h3]||(this[h3]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("spreadMethod"),setAttribute:e=>this.setAttribute("spreadMethod",e),values:["pad","reflect","repeat"],defaultValue:"pad"})),this[h3]}};var kf=class extends Wu{[mh]=null;[hh]=null;[ph]=null;[Zh]=null;get x1(){return this[mh]||(this[mh]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x1"),setAttribute:e=>this.setAttribute("x1",e)})),this[mh]}get y1(){return this[hh]||(this[hh]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y1"),setAttribute:e=>this.setAttribute("y1",e)})),this[hh]}get x2(){return this[ph]||(this[ph]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x2"),setAttribute:e=>this.setAttribute("x2",e)})),this[ph]}get y2(){return this[Zh]||(this[Zh]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y2"),setAttribute:e=>this.setAttribute("y2",e)})),this[Zh]}};G();G();var N0=class{[W];[M];[L];[Tt]=null;[jt]=null;constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,this[M]=l.getAttribute,this[L]=l.setAttribute}get animVal(){return this[jt]||(this[jt]=new Sh(V,this[W],{readOnly:!0,getAttribute:this[M]})),this[jt]}set animVal(e){}get baseVal(){return this[Tt]||(this[Tt]=new Sh(V,this[W],{getAttribute:this[M],setAttribute:this[L]})),this[Tt]}set baseVal(e){}};var ff=class extends ke{static SVG_MARKER_ORIENT_UNKNOWN=0;static SVG_MARKER_ORIENT_AUTO=1;static SVG_MARKER_ORIENT_ANGLE=2;static SVG_MARKERUNITS_UNKNOWN=0;static SVG_MARKERUNITS_USERSPACEONUSE=1;static SVG_MARKERUNITS_STROKEWIDTH=2;SVG_MARKER_ORIENT_UNKNOWN=0;SVG_MARKER_ORIENT_AUTO=1;SVG_MARKER_ORIENT_ANGLE=2;[I3]=null;[t3]=null;[l3]=null;[n3]=null;[c3]=null;[a3]=null;[s3]=null;[rh]=null;[Bc]=null;get markerUnits(){return this[I3]||(this[I3]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("markerUnits"),setAttribute:e=>this.setAttribute("markerUnits",e),values:["userSpaceOnUse","strokeWidth"],defaultValue:"strokeWidth"})),this[I3]}get markerWidth(){return this[t3]||(this[t3]=new T(V,this[W],{getAttribute:()=>this.getAttribute("markerWidth"),setAttribute:e=>this.setAttribute("markerWidth",e)})),this[t3]}get markerHeight(){return this[l3]||(this[l3]=new T(V,this[W],{getAttribute:()=>this.getAttribute("markerHeight"),setAttribute:e=>this.setAttribute("markerHeight",e)})),this[l3]}get orientType(){return this[n3]||(this[n3]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("orient"),setAttribute:e=>this.setAttribute("orient",e),values:["auto",null],defaultValue:"auto"})),this[n3]}get orientAngle(){return this[c3]||(this[c3]=new N0(V,this[W],{getAttribute:()=>this.getAttribute("orient"),setAttribute:e=>this.setAttribute("orient",e)})),this[c3]}get refX(){return this[a3]||(this[a3]=new T(V,this[W],{getAttribute:()=>this.getAttribute("refX"),setAttribute:e=>this.setAttribute("refX",e)})),this[a3]}get refY(){return this[s3]||(this[s3]=new T(V,this[W],{getAttribute:()=>this.getAttribute("refY"),setAttribute:e=>this.setAttribute("refY",e)})),this[s3]}get viewBox(){return this[rh]||(this[rh]=new Zu(V,this[W],{getAttribute:()=>this.getAttribute("viewBox"),setAttribute:e=>this.setAttribute("viewBox",e)})),this[rh]}get preserveAspectRatio(){return this[Bc]||(this[Bc]=new Po(V,this[W],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:e=>this.setAttribute("preserveAspectRatio",e)})),this[Bc]}setOrientToAuto(){this.setAttribute("orient","auto")}setOrientToAngle(e){this.setAttribute("orient",e.valueAsString)}};G();var xf=class extends ke{[G3]=null;[o3]=null;[P]=null;[q]=null;[ne]=null;[le]=null;get maskUnits(){return this[G3]||(this[G3]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("maskUnits"),setAttribute:e=>this.setAttribute("maskUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[G3]}get maskContentUnits(){return this[o3]||(this[o3]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("maskContentUnits"),setAttribute:e=>this.setAttribute("maskContentUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[o3]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}};G();var Bf=class extends ke{};G();var zf=class extends ke{[OI]=null;get href(){return this[OI]||(this[OI]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[OI]}};G();var Uf=class extends sa{};G();var Sf=class extends ke{[OI]=null;[p3]=null;[Z3]=null;[u3]=null;[P]=null;[q]=null;[ne]=null;[le]=null;get href(){return this[OI]||(this[OI]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[OI]}get patternUnits(){return this[p3]||(this[p3]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("patternUnits"),setAttribute:e=>this.setAttribute("patternUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"objectBoundingBox"})),this[p3]}get patternContentUnits(){return this[Z3]||(this[Z3]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("patternContentUnits"),setAttribute:e=>this.setAttribute("patternContentUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[Z3]}get patternTransform(){return this[u3]||(this[u3]=new Rb(V,this[W],{getAttribute:()=>this.getAttribute("patternTransform"),setAttribute:e=>this.setAttribute("patternTransform",e)})),this[u3]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}};G();G();var ILI=/[\t\f\n\r, ]+/,yb=class t{[W];[M];[L];[Ve]=!1;[oe]={items:[],attributeValue:""};constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,this[Ve]=!!l.readOnly,this[M]=l.getAttribute,this[L]=l.setAttribute;let n=new Zl(this,[t]);return new Proxy(this,{get:(c,a)=>{if(a==="length"||a==="numberOfItems")return c[Ne]().length;if(a in c||typeof a=="symbol")return n.bind(a),c[a];let s=Number(a);if(!isNaN(s))return c[Ne]()[s]},set(c,a,s){if(n.bind(a),typeof a=="symbol")return c[a]=s,!0;let r=Number(a);return isNaN(r)&&(c[a]=s),!0},deleteProperty(c,a){if(typeof a=="symbol")return delete c[a],!0;let s=Number(a);return isNaN(s)&&delete c[a],!0},ownKeys(c){return Object.keys(c[Ne]())},has(c,a){if(a in c)return!0;if(typeof a=="symbol")return!1;let s=Number(a);return!isNaN(s)&&s>=0&&s<c[Ne]().length},defineProperty(c,a,s){return n.preventBinding(a),a in c?(Object.defineProperty(c,a,s),!0):!1},getOwnPropertyDescriptor(c,a){if(a in c||typeof a=="symbol")return;let s=Number(a),r=c[Ne]();if(!isNaN(s)&&r[s])return{value:r[s],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[Ne]().length}get numberOfItems(){return this[Ne]().length}[Symbol.iterator](){return this[Ne]().values()}clear(){if(this[Ve])throw new this[W].TypeError("Failed to execute 'clear' on 'SVGPointList': The object is read-only.");for(let e of this[oe].items)e[M]=null,e[L]=null;this[oe].items=[],this[oe].attributeValue="",this[L]("")}initialize(e){if(this[Ve])throw new this[W].TypeError("Failed to execute 'initialize' on 'SVGPointList': The object is read-only.");if(arguments.length<1)throw new this[W].TypeError(`Failed to execute 'initialize' on 'SVGPointList': 1 arguments required, but only ${arguments.length} present.`);if(!(e instanceof gc))throw new this[W].TypeError("Failed to execute 'appendItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");for(let I of this[oe].items)I[M]=null,I[L]=null;return e[M]=()=>e[$],e[L]=()=>{this[oe].attributeValue=this[Ne]().map(I=>I[$]||"0 0").join(" "),this[L](this[oe].attributeValue)},this[oe].items=[e],this[oe].attributeValue=e[$],this[L](e[$]||""),e}getItem(e){let I=this[Ne]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),I[e]?I[e]:null}insertItemBefore(e,I){if(this[Ve])throw new this[W].TypeError("Failed to execute 'insertItemBefore' on 'SVGPointList': The object is read-only.");if(arguments.length<2)throw new this[W].TypeError(`Failed to execute 'insertItemBefore' on 'SVGPointList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof gc))throw new this[W].TypeError("Failed to execute 'insertItemBefore' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let l=this[Ne](),n=l.indexOf(e);return n!==-1&&l.splice(n,1),I<0?I=0:I>l.length&&(I=l.length),l.splice(I,0,e),e[M]=()=>e[$],e[L]=()=>{this[oe].attributeValue=this[Ne]().map(c=>c[$]||"0 0").join(" "),this[L](this[oe].attributeValue)},this[oe].attributeValue=l.map(c=>c[$]||"0 0").join(" "),this[L](this[oe].attributeValue),e}replaceItem(e,I){if(this[Ve])throw new this[W].TypeError("Failed to execute 'replaceItem' on 'SVGPointList': The object is read-only.");if(arguments.length<2)throw new this[W].TypeError(`Failed to execute 'replaceItem' on 'SVGPointList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof gc))throw new this[W].TypeError("Failed to execute 'replaceItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let l=this[Ne](),n=l.indexOf(e);if(n===I)return e;n!==-1&&l.splice(n,1),I<0?I=0:I>=l.length&&(I=l.length-1),l[I]&&(l[I][M]=null,l[I][L]=null);let c=l[I];return l[I]=e,e[M]=()=>e[$],e[L]=()=>{this[oe].attributeValue=this[Ne]().map(a=>a[$]||"0 0").join(" "),this[L](this[oe].attributeValue)},this[oe].attributeValue=l.map(a=>a[$]||"0 0").join(" "),this[L](this[oe].attributeValue),c}removeItem(e){if(this[Ve])throw new this[W].TypeError("Failed to execute 'removeItem' on 'SVGPointList': The object is read-only.");if(arguments.length<1)throw new this[W].TypeError(`Failed to execute 'removeItem' on 'SVGPointList': 1 argument required, but only ${arguments.length} present.`);let I=this[Ne]();if(e=Number(e),isNaN(e)&&(e=0),e>=I.length)throw new this[W].DOMException(`Failed to execute 'removeItem' on 'SVGPointList': The index provided (${e}) is greater than the maximum bound.`,x.indexSizeError);if(e<0)throw new this[W].DOMException(`Failed to execute 'removeItem' on 'SVGPointList': The index provided (${e}) is negative.`,x.indexSizeError);let l=I[e];return l&&(l[M]=null,l[L]=null),I.splice(e,1),this[L](I.map(n=>n[$]||"0 0").join(" ")),l}appendItem(e){if(this[Ve])throw new this[W].TypeError("Failed to execute 'appendItem' on 'SVGPointList': The object is read-only.");if(arguments.length<1)throw new this[W].TypeError(`Failed to execute 'appendItem' on 'SVGPointList': 1 argument required, but only ${arguments.length} present.`);if(!(e instanceof gc))throw new this[W].TypeError("Failed to execute 'appendItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let I=this[Ne](),l=I.indexOf(e);return l!==-1&&I.splice(l,1),I.push(e),e[M]=()=>e[$],e[L]=()=>{this[oe].attributeValue=this[Ne]().map(n=>n[$]||"0 0").join(" "),this[L](this[oe].attributeValue)},this[oe].attributeValue=I.map(n=>n[$]||"0 0").join(" "),this[L](this[oe].attributeValue),e}[Ne](){let e=this[M]()??"",I=this[oe];if(I.attributeValue===e)return I.items;if(I.items.length)for(let c of I.items)c[M]=null,c[L]=null;let l=[],n=e.trim();if(n){let c=n.split(ILI);for(let a=0,s=c.length;a<s;a+=2){let r=parseFloat(c[a]),o=c[a+1]!==void 0?" "+parseFloat(c[a+1]):"",d=new gc(V,this[W],{readOnly:this[Ve],getAttribute:()=>d[$],setAttribute:()=>{this[oe].attributeValue=this[Ne]().map(i=>i[$]||"0 0").join(" "),this[L](this[oe].attributeValue)}});d[$]=`${r}${o}`,l.push(d)}}return I.attributeValue=e,I.items=l,l}};var Of=class extends sa{[Gh]=null;[oh]=null;get animatedPoints(){return this[Gh]||(this[Gh]=new yb(V,this[W],{readOnly:!0,getAttribute:()=>this.getAttribute("points"),setAttribute:()=>{}})),this[Gh]}get points(){return this[oh]||(this[oh]=new yb(V,this[W],{getAttribute:()=>this.getAttribute("points"),setAttribute:e=>this.setAttribute("points",e)})),this[oh]}};G();var Mf=class extends sa{[Gh]=null;[oh]=null;get animatedPoints(){return this[Gh]||(this[Gh]=new yb(V,this[W],{readOnly:!0,getAttribute:()=>this.getAttribute("points"),setAttribute:()=>{}})),this[Gh]}get points(){return this[oh]||(this[oh]=new yb(V,this[W],{getAttribute:()=>this.getAttribute("points"),setAttribute:e=>this.setAttribute("points",e)})),this[oh]}};G();var Tf=class extends Wu{[wr]=null;[Xr]=null;[bh]=null;[W3]=null;[N3]=null;get cx(){return this[wr]||(this[wr]=new T(V,this[W],{getAttribute:()=>this.getAttribute("cx"),setAttribute:e=>this.setAttribute("cx",e)})),this[wr]}get cy(){return this[Xr]||(this[Xr]=new T(V,this[W],{getAttribute:()=>this.getAttribute("cy"),setAttribute:e=>this.setAttribute("cy",e)})),this[Xr]}get r(){return this[bh]||(this[bh]=new T(V,this[W],{getAttribute:()=>this.getAttribute("r"),setAttribute:e=>this.setAttribute("r",e)})),this[bh]}get fx(){return this[W3]||(this[W3]=new T(V,this[W],{getAttribute:()=>this.getAttribute("fx"),setAttribute:e=>this.setAttribute("fx",e)})),this[W3]}get fy(){return this[N3]||(this[N3]=new T(V,this[W],{getAttribute:()=>this.getAttribute("fy"),setAttribute:e=>this.setAttribute("fy",e)})),this[N3]}};G();var jf=class extends sa{[P]=null;[q]=null;[ne]=null;[le]=null;[dh]=null;[ih]=null;get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get rx(){return this[dh]||(this[dh]=new T(V,this[W],{getAttribute:()=>this.getAttribute("rx"),setAttribute:e=>this.setAttribute("rx",e)})),this[dh]}get ry(){return this[ih]||(this[ih]=new T(V,this[W],{getAttribute:()=>this.getAttribute("ry"),setAttribute:e=>this.setAttribute("ry",e)})),this[ih]}};G();var Df=class extends Al{[OI]=null;get href(){return this[OI]||(this[OI]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[OI]}get type(){return this.getAttribute("type")||""}set type(e){this.setAttribute("type",e)}};G();var Kf=class extends qo{};G();var Pf=class extends ke{[uh]=null;get offset(){return this[uh]||(this[uh]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("offset"),setAttribute:e=>this.setAttribute("offset",e)})),this[uh]}};G();var qf=class extends ke{[ac]=null;[Ja]=this;[GY]=!1;get media(){return this.getAttribute("media")||"all"}set media(e){this.setAttribute("media",e)}get type(){return this.getAttribute("type")||"text/css"}set type(e){this.setAttribute("type",e)}get title(){return this.getAttribute("title")||""}set title(e){this.setAttribute("title",e)}get disabled(){return this[GY]}set disabled(e){this[GY]=!!e}get sheet(){return this[fe]?(this[ac]||(this[ac]=new this[S][W].CSSStyleSheet,this[ac].replaceSync(this.textContent)),this[ac]):null}[ns](){super[ns](),this[ac]=null}[cY](){this[ac]&&this[ac].replaceSync(this.textContent)}};G();var _f=class extends Al{};G();var $f=class extends Al{};G();G();G();var Y0=class extends Al{static LENGTHADJUST_UNKNOWN=0;static LENGTHADJUST_SPACING=1;static LENGTHADJUST_SPACINGANDGLYPHS=2;[Y3]=null;[V3]=null;get textLength(){return this[Y3]||(this[Y3]=new T(V,this[W],{getAttribute:()=>this.getAttribute("textLength"),setAttribute:e=>this.setAttribute("textLength",e)})),this[Y3]}get lengthAdjust(){return this[V3]||(this[V3]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("lengthAdjust"),setAttribute:e=>this.setAttribute("lengthAdjust",e),values:["spacing","spacingAndGlyphs"],defaultValue:"spacing"})),this[V3]}getNumberOfChars(){return 0}getComputedTextLength(){return 0}getSubStringLength(e,I){return 0}getStartPositionOfChar(e){return new gc(V,this[W])}getEndPositionOfChar(e){return new gc(V,this[W])}getExtentOfChar(e){return new qd(V,this[W])}getRotationOfChar(e){return 0}getCharNumAtPosition(e){return 0}};G();G();var tLI=/[\t\f\n\r, ]+/,$Y=class t{[W];[M];[L];[Ve]=!1;[oe]={items:[],attributeValue:""};constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,this[Ve]=!!l.readOnly,this[M]=l.getAttribute,this[L]=l.setAttribute;let n=new Zl(this,[t]);return new Proxy(this,{get:(c,a)=>{if(a==="length"||a==="numberOfItems")return c[Ne]().length;if(a in c||typeof a=="symbol")return n.bind(a),c[a];let s=Number(a);if(!isNaN(s))return c[Ne]()[s]},set(c,a,s){if(n.bind(a),typeof a=="symbol")return c[a]=s,!0;let r=Number(a);return isNaN(r)&&(c[a]=s),!0},deleteProperty(c,a){if(typeof a=="symbol")return delete c[a],!0;let s=Number(a);return isNaN(s)&&delete c[a],!0},ownKeys(c){return Object.keys(c[Ne]())},has(c,a){if(a in c)return!0;if(typeof a=="symbol")return!1;let s=Number(a);return!isNaN(s)&&s>=0&&s<c[Ne]().length},defineProperty(c,a,s){return n.preventBinding(a),a in c?(Object.defineProperty(c,a,s),!0):!1},getOwnPropertyDescriptor(c,a){if(a in c||typeof a=="symbol")return;let s=Number(a),r=c[Ne]();if(!isNaN(s)&&r[s])return{value:r[s],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[Ne]().length}get numberOfItems(){return this[Ne]().length}[Symbol.iterator](){return this[Ne]().values()}clear(){this[L]("")}initialize(e){if(this[Ve])throw new this[W].TypeError("Failed to execute 'initialize' on 'SVGLengthList': The object is read-only.");if(arguments.length<1)throw new this[W].TypeError(`Failed to execute 'initialize' on 'SVGLengthList': 1 arguments required, but only ${arguments.length} present.`);for(let I of this[oe].items)I[M]=null,I[L]=null;return e[M]=()=>e[$],e[L]=()=>{this[oe].attributeValue=this[Ne]().map(I=>I[$]??"0").join(" "),this[L](this[oe].attributeValue)},this[oe].items=[e],this[oe].attributeValue=e[$],this[L](e[$]||""),e}getItem(e){let I=this[Ne]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),I[e]?I[e]:null}insertItemBefore(e,I){if(this[Ve])throw new this[W].TypeError("Failed to execute 'insertItemBefore' on 'SVGLengthList': The object is read-only.");if(arguments.length<2)throw new this[W].TypeError(`Failed to execute 'insertItemBefore' on 'SVGLengthList': 2 arguments required, but only ${arguments.length} present.`);let l=this[Ne](),n=l.indexOf(e);return n!==-1&&l.splice(n,1),I<0?I=0:I>l.length&&(I=l.length),l.splice(I,0,e),e[M]=()=>e[$],e[L]=()=>{this[oe].attributeValue=this[Ne]().map(c=>c[$]??"0").join(" "),this[L](this[oe].attributeValue)},this[oe].attributeValue=l.map(c=>c[$]??"0").join(" "),this[L](this[oe].attributeValue),e}replaceItem(e,I){if(this[Ve])throw new this[W].TypeError("Failed to execute 'replaceItem' on 'SVGLengthList': The object is read-only.");if(arguments.length<2)throw new this[W].TypeError(`Failed to execute 'replaceItem' on 'SVGLengthList': 2 arguments required, but only ${arguments.length} present.`);let l=this[Ne](),n=l.indexOf(e);if(n===I)return e;n!==-1&&l.splice(n,1),I<0?I=0:I>=l.length&&(I=l.length-1),l[I]&&(l[I][M]=null,l[I][L]=null);let c=l[I];return l[I]=e,e[M]=()=>e[$],e[L]=()=>{this[oe].attributeValue=this[Ne]().map(a=>a[$]??"0").join(" "),this[L](this[oe].attributeValue)},this[oe].attributeValue=l.map(a=>a[$]??"0").join(" "),this[L](this[oe].attributeValue),c}removeItem(e){if(this[Ve])throw new this[W].TypeError("Failed to execute 'removeItem' on 'SVGLengthList': The object is read-only.");if(arguments.length<1)throw new this[W].TypeError(`Failed to execute 'removeItem' on 'SVGLengthList': 1 argument required, but only ${arguments.length} present.`);let I=this[Ne]();if(e=Number(e),isNaN(e)&&(e=0),e>=I.length)throw new this[W].DOMException(`Failed to execute 'removeItem' on 'SVGLengthList': The index provided (${e}) is greater than the maximum bound.`,x.indexSizeError);if(e<0)throw new this[W].DOMException(`Failed to execute 'removeItem' on 'SVGLengthList': The index provided (${e}) is negative.`,x.indexSizeError);let l=I[e];return l&&(l[M]=null,l[L]=null),I.splice(e,1),this[L](I.map(n=>n[$]??"0").join(" ")),l}appendItem(e){if(this[Ve])throw new this[W].TypeError("Failed to execute 'appendItem' on 'SVGLengthList': The object is read-only.");if(arguments.length<1)throw new this[W].TypeError(`Failed to execute 'appendItem' on 'SVGLengthList': 1 argument required, but only ${arguments.length} present.`);let I=this[Ne](),l=I.indexOf(e);return l!==-1&&I.splice(l,1),I.push(e),e[M]=()=>e[$],e[L]=()=>{this[oe].attributeValue=this[Ne]().map(n=>n[$]??"0").join(" "),this[L](this[oe].attributeValue)},this[oe].attributeValue=I.map(n=>n[$]??"0").join(" "),this[L](this[oe].attributeValue),e}[Ne](){let e=this[M]()??"",I=this[oe];if(I.attributeValue===e)return I.items;if(I.items.length)for(let c of I.items)c[M]=null,c[L]=null;let l=[],n=e.trim();if(n){let c=n.split(tLI);for(let a=0,s=c.length;a<s;a++){let r=new _d(V,this[W],{readOnly:this[Ve],getAttribute:()=>r[$],setAttribute:o=>{r[$]=o;let d=l.map(i=>i[$]??"0").join(" ");I.attributeValue=d,this[L](d)}});r[$]=c[a],l.push(r)}}return I.attributeValue=e,I.items=l,l}};var Oh=class{[W];[M];[L];[Tt]=null;[jt]=null;constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,this[M]=l.getAttribute,this[L]=l.setAttribute}get animVal(){return this[jt]||(this[jt]=new $Y(V,this[W],{readOnly:!0,getAttribute:this[M],setAttribute:this[L]})),this[jt]}set animVal(e){}get baseVal(){return this[Tt]||(this[Tt]=new $Y(V,this[W],{getAttribute:this[M],setAttribute:this[L]})),this[Tt]}set baseVal(e){}};var Nu=class extends Y0{[P]=null;[q]=null;[Cr]=null;[Jr]=null;[ok]=null;get x(){return this[P]||(this[P]=new Oh(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new Oh(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}get dx(){return this[Cr]||(this[Cr]=new Oh(V,this[W],{getAttribute:()=>this.getAttribute("dx"),setAttribute:e=>this.setAttribute("dx",e)})),this[Cr]}get dy(){return this[Jr]||(this[Jr]=new Oh(V,this[W],{getAttribute:()=>this.getAttribute("dy"),setAttribute:e=>this.setAttribute("dy",e)})),this[Jr]}get rotate(){return this[ok]||(this[ok]=new Mr(V,this[W],{getAttribute:()=>this.getAttribute("rotate"),setAttribute:e=>this.setAttribute("rotate",e)})),this[ok]}};var e9=class extends Nu{};G();var I9=class extends Y0{static TEXTPATH_METHODTYPE_UNKNOWN=0;static TEXTPATH_METHODTYPE_ALIGN=1;static TEXTPATH_METHODTYPE_STRETCH=2;static TEXTPATH_SPACINGTYPE_UNKNOWN=0;static TEXTPATH_SPACINGTYPE_AUTO=1;static TEXTPATH_SPACINGTYPE_EXACT=2;[OI]=null;[g3]=null;[TZ]=null;[Q3]=null;get href(){return this[OI]||(this[OI]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[OI]}get startOffset(){return this[g3]||(this[g3]=new T(V,this[W],{getAttribute:()=>this.getAttribute("startOffset"),setAttribute:e=>this.setAttribute("startOffset",e)})),this[g3]}get method(){return this[TZ]||(this[TZ]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("method"),setAttribute:e=>this.setAttribute("method",e),values:["align","stretch"],defaultValue:"align"})),this[TZ]}get spacing(){return this[Q3]||(this[Q3]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("spacing"),setAttribute:e=>this.setAttribute("spacing",e),values:["auto","exact"],defaultValue:"exact"})),this[Q3]}};G();var t9=class extends ke{};G();var l9=class extends Nu{};G();var n9=class extends Al{[OI]=null;[P]=null;[q]=null;[ne]=null;[le]=null;get href(){return this[OI]||(this[OI]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[OI]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}};G();var c9=class extends ke{};G();var a9=class{static SVG_UNIT_TYPE_UNKNOWN=0;static SVG_UNIT_TYPE_USERSPACEONUSE=1;static SVG_UNIT_TYPE_OBJECTBOUNDINGBOX=2;SVG_UNIT_TYPE_UNKNOWN=0;SVG_UNIT_TYPE_USERSPACEONUSE=1;SVG_UNIT_TYPE_OBJECTBOUNDINGBOX=2;constructor(e){if(e!==V)throw new TypeError("Illegal constructor")}};G();var s9=class{window;constructor(e){this.window=e}enqueueReaction(e,I,l){let n=this.window.customElements[lb]?.get(e.localName);if(n&&e[S]===this.window.document)switch(I){case"connectedCallback":if(n.livecycleCallbacks.connectedCallback){let c=n.livecycleCallbacks.connectedCallback?.call(e);if(c instanceof Promise){let a=new Pe(this.window).getAsyncTaskManager();if(a){let s=a.startTask();c.then(()=>a.endTask(s)).catch(()=>a.endTask(s))}}}break;case"disconnectedCallback":n.livecycleCallbacks.disconnectedCallback&&n.livecycleCallbacks.disconnectedCallback.call(e);break;case"attributeChangedCallback":n.livecycleCallbacks.attributeChangedCallback&&l?.length&&n.observedAttributes.has(l[0])&&n.livecycleCallbacks.attributeChangedCallback.apply(e,l);break}}};G();var _H=class extends K{state;hasUAVisualTransition;constructor(e,I=null){super(e),this.state=I?.state??null,this.hasUAVisualTransition=I?.hasUAVisualTransition??!1}};var eV={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)},Die=setTimeout.toString().includes("new Timeout"),Kie=class{constructor(){throw new TypeError("Illegal constructor")}},FP=class{callback;constructor(e){this.callback=e}},UG=class t extends tt{Node=bI;Attr=YX;ShadowRoot=QH;ProcessingInstruction=gH;Element=aa;CharacterData=ub;DocumentType=vh;HTMLAnchorElement=VX;HTMLButtonElement=wX;HTMLOptGroupElement=lH;HTMLOptionElement=Bh;HTMLElement=ae;HTMLUnknownElement=yH;HTMLTemplateElement=WH;HTMLInputElement=Os;HTMLSelectElement=dH;HTMLTextAreaElement=ru;HTMLImageElement=SY;HTMLStyleElement=mH;HTMLLabelElement=TX;HTMLSlotElement=Cie;HTMLMetaElement=$X;HTMLMediaElement=fh;HTMLAudioElement=kY;HTMLVideoElement=FH;HTMLBaseElement=FX;HTMLDialogElement=JX;HTMLScriptElement=oH;HTMLLinkElement=PX;HTMLIFrameElement=MX;HTMLFormElement=BX;HTMLUListElement=RH;HTMLTrackElement=VH;HTMLTableRowElement=uH;HTMLTitleElement=YH;HTMLTimeElement=NH;HTMLTableSectionElement=Yb;HTMLTableCellElement=hH;HTMLTableElement=ZH;HTMLSpanElement=bH;HTMLSourceElement=iH;HTMLQuoteElement=GH;HTMLProgressElement=rH;HTMLPreElement=sH;HTMLPictureElement=aH;HTMLParamElement=cH;HTMLParagraphElement=nH;HTMLOutputElement=xY;HTMLOListElement=tH;HTMLObjectElement=fY;HTMLMeterElement=eH;HTMLMenuElement=_X;HTMLMapElement=qX;HTMLLIElement=DX;HTMLLegendElement=jX;HTMLModElement=IH;HTMLHtmlElement=OX;HTMLHRElement=SX;HTMLHeadElement=zX;HTMLHeadingElement=UX;HTMLFieldSetElement=BY;HTMLEmbedElement=kX;HTMLDListElement=HX;HTMLDivElement=LX;HTMLDetailsElement=CX;HTMLDataListElement=vX;HTMLDataElement=EX;HTMLTableColElement=pH;HTMLTableCaptionElement=OY;HTMLCanvasElement=XX;HTMLBRElement=QX;HTMLBodyElement=gX;HTMLAreaElement=RX;SVGSVGElement=qH;SVGAnimateElement=_k;SVGAnimateMotionElement=$k;SVGAnimateTransformElement=ef;SVGCircleElement=If;SVGClipPathElement=tf;SVGDefsElement=lf;SVGDescElement=nf;SVGEllipseElement=cf;SVGFEBlendElement=af;SVGFEColorMatrixElement=sf;SVGFEComponentTransferElement=rf;SVGFECompositeElement=Gf;SVGFEConvolveMatrixElement=of;SVGFEDiffuseLightingElement=df;SVGFEDisplacementMapElement=bf;SVGFEDistantLightElement=mf;SVGFEDropShadowElement=hf;SVGFEFloodElement=pf;SVGFEFuncAElement=Zf;SVGFEFuncBElement=uf;SVGFEFuncGElement=Wf;SVGFEFuncRElement=Nf;SVGFEGaussianBlurElement=Yf;SVGFEImageElement=Vf;SVGFEMergeElement=Rf;SVGFEMergeNodeElement=yf;SVGFEMorphologyElement=Ff;SVGFEOffsetElement=gf;SVGFEPointLightElement=Qf;SVGFESpecularLightingElement=Af;SVGFESpotLightElement=wf;SVGFETileElement=Xf;SVGFETurbulenceElement=Hf;SVGFilterElement=Ef;SVGForeignObjectElement=vf;SVGGElement=Cf;SVGImageElement=Jf;SVGLineElement=Lf;SVGLinearGradientElement=kf;SVGMarkerElement=ff;SVGMaskElement=xf;SVGMetadataElement=Bf;SVGMPathElement=zf;SVGPathElement=Uf;SVGPatternElement=Sf;SVGPolygonElement=Of;SVGPolylineElement=Mf;SVGRadialGradientElement=Tf;SVGRectElement=jf;SVGScriptElement=Df;SVGSetElement=Kf;SVGStopElement=Pf;SVGStyleElement=qf;SVGSwitchElement=_f;SVGSymbolElement=$f;SVGTextElement=e9;SVGTextPathElement=I9;SVGTitleElement=t9;SVGTSpanElement=l9;SVGUseElement=n9;SVGViewElement=c9;SVGElement=ke;SVGAnimationElement=qo;SVGComponentTransferFunctionElement=_o;SVGGeometryElement=sa;SVGGradientElement=Wu;SVGTextPositioningElement=Nu;SVGGraphicsElement=Al;Event=K;UIEvent=Uc;CustomEvent=oX;AnimationEvent=rX;KeyboardEvent=iX;MessageEvent=bX;MouseEvent=Mn;PointerEvent=QY;FocusEvent=mb;WheelEvent=hX;InputEvent=dX;ErrorEvent=Xh;StorageEvent=Rk;SubmitEvent=AY;ProgressEvent=fr;MediaQueryListEvent=pY;HashChangeEvent=gY;ClipboardEvent=GX;TouchEvent=mX;PopStateEvent=_H;Touch=sX;AudioProcessingEvent=K;BeforeInputEvent=K;BeforeUnloadEvent=K;BlobEvent=K;CloseEvent=K;CompositionEvent=K;CSSFontFaceLoadEvent=K;DeviceLightEvent=K;DeviceMotionEvent=K;DeviceOrientationEvent=K;DeviceProximityEvent=K;DOMTransactionEvent=K;DragEvent=K;EditingBeforeInputEvent=K;FetchEvent=K;GamepadEvent=K;IDBVersionChangeEvent=K;MediaStreamEvent=K;MutationEvent=K;OfflineAudioCompletionEvent=K;OverconstrainedError=K;PageTransitionEvent=K;PaymentRequestUpdateEvent=K;RelatedEvent=K;RTCDataChannelEvent=K;RTCIdentityErrorEvent=K;RTCIdentityEvent=K;RTCPeerConnectionIceEvent=K;SensorEvent=K;SVGEvent=K;SVGZoomEvent=K;TimeEvent=K;TrackEvent=K;TransitionEvent=K;UserProximityEvent=K;WebGLContextEvent=K;TextEvent=K;Permissions=EY;History=_y;Navigator=NX;Clipboard=mY;TimeRanges=au;TextTrackCueList=iu;ValidityState=is;MutationRecord=zr;IntersectionObserver=uX;IntersectionObserverEntry=WX;CSSStyleDeclaration=Gs;CSSRule=xG;CSSContainerRule=ZY;CSSFontFaceRule=uY;CSSKeyframeRule=Ah;CSSKeyframesRule=WY;CSSMediaRule=YY;CSSStyleRule=wh;CSSSupportsRule=yY;CSSConditionRule=Md;CSSGroupingRule=Od;CSSScopeRule=Qh;DOMRect=Kd;DOMRectReadOnly=vY;Plugin=gk;PluginArray=I0;Location=$y;CustomElementRegistry=Dy;ResizeObserver=AH;Blob=sl;File=kr;Storage=TY;MimeType=Fk;MimeTypeArray=e0;NodeFilter=ll;HTMLCollection=Ql;HTMLFormControlCollection=zY;HTMLOptionsCollection=m0;NodeList=Oo;RadioNodeList=o0;FileList=su;Screen=h0;DOMMatrixReadOnly=u0;DOMMatrix=Ms;NamedNodeMap=Lh;TreeWalker=Ch;NodeIterator=CY;DataTransfer=aX;DataTransferItem=bb;DataTransferItemList=FY;Headers=gl;XMLSerializer=wH;ClipboardItem=lX;Selection=JY;CSSUnitValue=Kt;SVGAngle=Sh;SVGAnimatedAngle=N0;SVGAnimatedBoolean=W0;SVGAnimatedEnumeration=CI;SVGAnimatedInteger=ei;SVGAnimatedLength=T;SVGAnimatedNumber=eI;SVGAnimatedNumberList=Mr;SVGAnimatedPreserveAspectRatio=Po;SVGAnimatedRect=Zu;SVGAnimatedString=Me;SVGAnimatedTransformList=Rb;SVGLength=_d;SVGLengthList=$Y;SVGMatrix=Uh;SVGNumber=$d;SVGNumberList=_Y;SVGPoint=gc;SVGPointList=yb;SVGPreserveAspectRatio=qY;SVGRect=qd;SVGStringList=Vb;SVGTransform=zG;SVGTransformList=PY;SVGAnimatedLengthList=Oh;SVGUnitTypes=a9;DOMPoint=Z0;StylePropertyMap=RY;StylePropertyMapReadOnly=VY;MediaList=NY;CSSKeywordValue=_Z;CSSStyleValue=$Z;Window=this.constructor;URLSearchParams=rLI;WritableStream=zze.Writable;ReadableStream=sLI;TransformStream=zze.Transform;PerformanceObserver=GLI;PerformanceEntry=oLI;PerformanceObserverEntryList=Kie;onload=null;onerror=null;document;customElements=new Dy(this);window=this;globalThis=this;performance=performance;screenLeft=0;screenTop=0;screenX=0;screenY=0;crypto=nLI;TextEncoder=cLI;TextDecoder=aLI;closed=!1;console;name="";Buffer=lLI;[$N]=[];[wG];[XG];[Nn];[PK];[qK];[_K];[$K];[aY]=this;[sb]=this;[HG]=this;[W]=this;[eie]=this;[jN]=-1;[oY]=new s9(this);[Fh]={json:new Map,css:new Map,esm:new Map};[jZ]=null;#e;#I=null;#t=null;#l=null;#n=null;#a=null;#G={timeouts:null};#s=[];#o=[];constructor(e,I){super(),this.#e=e,this.console=e.page.console,this[wG]=new Qk(e),this[PK]=new NX(this),this[qK]=new h0,this[_K]=new TY,this[$K]=new TY,this[XG]=new $y(this.#e,I?.url??"about:blank"),this[Nn]=new _y(this.#e,this),e[Nn].currentItem.href=I?.url??"about:blank",Pe.setWindowBrowserFrameRelation(this,this.#e),this[JL](),Kk.extendClasses(this),this.document=new this.HTMLDocument,this.document[fs]=this;let l=e[dI].startTask(()=>this[wG].destroy());this[wG].waitUntilComplete().then(()=>{e[dI].endTask(l),this.document[IY]=uP.complete,this.document.dispatchEvent(new K("readystatechange"));let n=new K("load");n[Bo]=this,n[Ca]=this.document,n[ka]=Dt.atTarget,this.dispatchEvent(n),n[Bo]=null,n[ka]=Dt.none,n[dY]=!1}),this[_de]()}get self(){return this[aY]}set self(e){this[aY]=e}get top(){return this[sb]}get parent(){return this[HG]}set parent(e){this[HG]=e}get frames(){return this[eie]}set frames(e){this[HG]=e}get location(){return this[XG]}set location(e){this[XG].href=e}get history(){return this[Nn]}get navigator(){return this[PK]}get screen(){return this[qK]}get sessionStorage(){return this[_K]}get localStorage(){return this[$K]}get opener(){return this.#e[zd]}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 uk}get innerWidth(){return this.#I===null?this.#e.page.viewport.width:this.#I}set innerWidth(e){this.#I=e}get innerHeight(){return this.#t===null?this.#e.page.viewport.height:this.#t}set innerHeight(e){this.#t=e}get outerWidth(){return this.#l===null?this.#e.page.viewport.width:this.#l}set outerWidth(e){this.#l=e}get outerHeight(){return this.#n===null?this.#e.page.viewport.height:this.#n}set outerHeight(e){this.#n=e}get devicePixelRatio(){return this.#a===null?this.#e.page.viewport.devicePixelRatio:this.#a}set devicePixelRatio(e){this.#a=e}getComputedStyle(e){return e[Kw]=e[Kw]||new Gs(V,this,{element:e,computed:!0}),e[Kw]}getSelection(){return this.document.getSelection()}scroll(e,I){if(typeof e!="object"&&arguments.length===1)throw new this.TypeError("Failed to execute 'scroll' on 'Window': The provided value is not of type 'ScrollToOptions'.");let l=typeof e=="object"?e:{left:e,top:I};if(l.behavior==="smooth")this.setTimeout(()=>{if(l.top!==void 0){let n=Number(l.top);this.document.documentElement.scrollTop=isNaN(n)?0:n}if(l.left!==void 0){let n=Number(l.left);this.document.documentElement.scrollLeft=isNaN(n)?0:n}});else{if(l.top!==void 0){let n=Number(l.top);this.document.documentElement.scrollTop=isNaN(n)?0:n}if(l.left!==void 0){let n=Number(l.left);this.document.documentElement.scrollLeft=isNaN(n)?0:n}}}scrollTo(e,I){if(typeof e!="object"&&arguments.length===1)throw new this.TypeError("Failed to execute 'scrollTo' on 'Window': The provided value is not of type 'ScrollToOptions'.");this.scroll(e,I)}scrollBy(e,I){if(typeof e!="object"&&arguments.length===1)throw new this.TypeError("Failed to execute 'scrollBy' on 'Window': The provided value is not of type 'ScrollToOptions'.");let l=typeof e=="object"?e:{left:e,top:I};this.scroll({left:this.document.documentElement.scrollLeft+(l.left??0),top:this.document.documentElement.scrollTop+(l.top??0),behavior:l.behavior})}blur(){}focus(){}open(e,I,l){return Bk.openPage(this.#e,{url:e,target:I,features:l})}close(){this.#e.page.mainFrame===this.#e&&this.#e[zd]&&(this[Hn](),this.#e.page.close())}matchMedia(e){return new jy({window:this,media:e})}setTimeout(e,I=0,...l){if(this.closed)return{};let n=this.#e.page.context.browser.settings;if(n.timer.preventTimerLoops){let s=new Error().stack,r=this.#s,o=this.#o,d=r.indexOf(s);if(d!==-1){if(o[d].timeout++,o[d].timeout>=(n.timer.preventTimerLoops===!0?1:n.timer.preventTimerLoops.timeout??1))return{}}else r.push(s),o.push({timeout:0,requestAnimationFrame:0})}if(!I){let s=this.#G;if(!s.timeouts){let o=!n||!n.disableErrorCapturing&&n.errorCapture===tl.tryAndCatch,d=eV.setTimeout(()=>{this.#e[dI].endTimer(d);let i=s.timeouts;s.timeouts=null;for(let h of i)if(o){let p;try{p=h.callback()}catch(Z){this[al](Z)}p instanceof Promise&&p.catch(Z=>this[al](Z))}else h.callback()},0);s.timeouts=[],this.#e[dI].startTimer(d)}let r=new FP(()=>e(...l));return s.timeouts.push(r),r}let c=!n||!n.disableErrorCapturing&&n.errorCapture===tl.tryAndCatch,a=eV.setTimeout(()=>{if(this.#e[dI].endTimer(a),c){let s;try{s=e(...l)}catch(r){this[al](r)}s instanceof Promise&&s.catch(r=>this[al](r))}else e(...l)},n?.timer.maxTimeout!==-1&&I&&I>n?.timer.maxTimeout?n?.timer.maxTimeout:I);return this.#e[dI].startTimer(a),a}clearTimeout(e){if(e&&e instanceof FP){let I=this.#G;if(!I.timeouts)return;let l=I.timeouts.indexOf(e);l!==-1&&I.timeouts.splice(l,1);return}Die&&(!e||e.constructor.name!=="Timeout")||(eV.clearTimeout(e),this.#e[dI].endTimer(e))}setInterval(e,I=0,...l){if(this.closed)return{};let n=this.#e.page.context.browser.settings,c=!n||!n.disableErrorCapturing&&n.errorCapture===tl.tryAndCatch,a=0,s=eV.setInterval(()=>{if(c){let r;try{r=e(...l)}catch(o){this.clearInterval(s),this[al](o)}r instanceof Promise&&r.catch(o=>{this.clearInterval(s),this[al](o)})}else e(...l);n?.timer.maxIntervalIterations!==-1&&(a>=n?.timer.maxIntervalIterations&&this.clearInterval(s),a++)},n?.timer.maxIntervalTime!==-1&&I&&I>n?.timer.maxIntervalTime?n?.timer.maxIntervalTime:I);return this.#e[dI].startTimer(s),s}clearInterval(e){Die&&(!e||e.constructor.name!=="Timeout")||(eV.clearInterval(e),this.#e[dI].endTimer(e))}requestAnimationFrame(e){if(this.closed)return{};let I=this.#e.page.context.browser.settings;if(I.timer.preventTimerLoops){let c=new Error().stack,a=this.#s,s=this.#o,r=a.indexOf(c);if(r!==-1){if(s[r].requestAnimationFrame++,s[r].requestAnimationFrame>=(I.timer.preventTimerLoops===!0?1:I.timer.preventTimerLoops.requestAnimationFrame??1))return{}}else a.push(c),s.push({timeout:0,requestAnimationFrame:0})}let l=!I||!I.disableErrorCapturing&&I.errorCapture===tl.tryAndCatch,n=eV.setImmediate(()=>{if(this.#e[dI].endImmediate(n),l){let c;try{c=e(this.performance.now())}catch(a){this[al](a)}c instanceof Promise&&c.catch(a=>this[al](a))}else e(this.performance.now())});return this.#e[dI].startImmediate(n),n}cancelAnimationFrame(e){Die&&(!e||e.constructor.name!=="Immediate")||(eV.clearImmediate(e),this.#e[dI].endImmediate(e))}queueMicrotask(e){if(this.closed)return;let I=!1,l=this.#e[dI].startTask(()=>I=!0),n=this.#e.page.context.browser.settings,c=!n||!n.disableErrorCapturing&&n.errorCapture===tl.tryAndCatch;eV.queueMicrotask(()=>{if(!I)if(this.#e[dI].endTask(l),c){let a;try{a=e()}catch(s){this[al](s)}a instanceof Promise&&a.catch(s=>this[al](s))}else e()})}async fetch(e,I){return this.closed?Promise.reject(new this.DOMException("Failed to execute 'fetch' on 'Window': The window is closed.",x.invalidStateError)):await new Br({browserFrame:this.#e,window:this,url:e,init:I}).send()}btoa(e){return tX.btoa(e)}atob(e){return tX.atob(e)}postMessage(e,I="*",l){if(!this.closed){if(I&&I!=="*"&&this.location.origin!==I)throw new this.DOMException(`Failed to execute 'postMessage' on 'Window': The target origin provided ('${I}') does not match the recipient window's origin ('${this.location.origin}').`,x.securityError);try{JSON.stringify(e)}catch{throw new this.DOMException("Failed to execute 'postMessage' on 'Window': The provided message cannot be serialized.",x.invalidStateError)}this.setTimeout(()=>this.dispatchEvent(new bX("message",{data:e,origin:this.#e.parentFrame?this.#e.parentFrame.window.location.origin:this.#e.window.location.origin,source:this.#e.parentFrame?this.#e.parentFrame.window:this.#e.window,lastEventId:""})))}}resizeTo(e,I){if(!this.closed){if(!e||!I)throw new this.DOMException(`Failed to execute 'resizeTo' on 'Window': 2 arguments required, but only ${arguments.length} present.`);this.#e[JZ]&&this.#e.page.setViewport({width:e,height:I})}}resizeBy(e,I){if(!this.closed){if(!e||!I)throw new this.DOMException(`Failed to execute 'resizeBy' on 'Window': 2 arguments required, but only ${arguments.length} present.`);if(this.#e[JZ]){let l=this.#e.page.viewport;this.#e.page.setViewport({width:l.width+e,height:l.height+I})}}}[al](e){this.#e.page.console.error(e),this.dispatchEvent(new Xh("error",{message:e.message,error:e}))}[JL](){Uze.isContext(this)||(Uze.createContext(this),Rze.runInContext(this))}[Hn](){if(this.closed)return;this.closed=!0;let e=this[$N];for(let a of e)a[Hn]&&a[Hn]();this[$N]=[];let I=this.document[be];for(;I.length>0;)I[0].disconnectedCallback&&delete I[0].disconnectedCallback,this.document[Vc](I[0]);let l=this.document.createElement("html"),n=this.document.createElement("head"),c=this.document.createElement("body");l.appendChild(n),l.appendChild(c),this.document[QI](l),this.location[Hn]&&this.location[Hn](),this.customElements[Hn]&&this.customElements[Hn](),this.history[Hn]&&this.history[Hn](),this[Fh].json.clear(),this[Fh].css.clear(),this[Fh].esm.clear(),this.document[zs].clear(),this.document[Wn]=null,this.document[PN]=null,this.document[tb]=null,this.document[Ay]=null,Pe.removeWindowBrowserFrameRelation(this)}[_de](){for(let e of[t,tt]){let I=Object.getOwnPropertyDescriptors(e.prototype),l=Object.keys(I);for(let n of l){let c=I[n];c.get||c.set?Object.defineProperty(this,n,{...c,get:c.get?.bind(this),set:c.set?.bind(this)}):n!=="constructor"&&typeof c.value=="function"&&!c.value.toString().startsWith("class ")&&Object.defineProperty(this,n,{...c,value:c.value.bind(this)})}}}};var $H=class{childFrames=[];parentFrame=null;page;window;closed=!1;[dI]=new db(this);[Dl]={navigation:[]};[xs]=null;[zd]=null;[JZ]=!1;[Nn]=new G0;constructor(e){this.page=e,this.window=new UG(this),e.context.browser[Ia]&&e.context.browser[Ia].observe(this.window)}get content(){return this.window.document.documentElement.outerHTML}set content(e){this.window.document[qm]=!0,this.window.document[_m]=!1,this.window.document.open(),this.window.document.write(e)}get url(){return this.window.location.href}set url(e){this.window[XG][cs](this,Ss.getRelativeURL(this,e).href)}get document(){return this.window?.document??null}async waitUntilComplete(){await Promise.all([this[dI].waitUntilComplete(),...this.childFrames.map(e=>e.waitUntilComplete())])}waitForNavigation(){return new Promise(e=>this[Dl].navigation.push(e))}abort(){return this.childFrames.length?new Promise((e,I)=>{Promise.all(this.childFrames.map(l=>l.abort()).concat([this[dI].abort()])).then(()=>e()).catch(I)}):this[dI].abort()}evaluate(e){return r0.evaluate(this,e)}goto(e,I){return xa.navigate({windowClass:UG,frame:this,url:e,goToOptions:I})}goBack(e){return xa.navigateBack({windowClass:UG,frame:this,goToOptions:e})}goForward(e){return xa.navigateForward({windowClass:UG,frame:this,goToOptions:e})}goSteps(e,I){return xa.navigateSteps({windowClass:UG,frame:this,steps:e,goToOptions:I})}reload(e){return xa.reload({windowClass:UG,frame:this,goToOptions:e})}};G();var IV=class{#e;#I={};#t={};#l=0;#n=[];constructor(e){this.#e=e}assert(e,I,...l){e||this.#e.print({type:Vn.assert,level:zc.error,message:["Assertion failed:",...I?[I,...l]:l],group:this.#n[this.#n.length-1]||null})}clear(){this.#e.clear()}count(e="default"){this.#I[e]||(this.#I[e]=0),this.#I[e]++,this.#e.print({type:Vn.count,level:zc.info,message:[`${e}: ${this.#I[e]}`],group:this.#n[this.#n.length-1]||null})}countReset(e="default"){delete this.#I[e],this.#e.print({type:Vn.countReset,level:zc.warn,message:[`${e}: 0`],group:this.#n[this.#n.length-1]||null})}debug(e,...I){this.#e.print({type:Vn.debug,level:zc.log,message:e?[e,...I]:I,group:this.#n[this.#n.length-1]||null})}dir(e){this.#e.print({type:Vn.dir,level:zc.log,message:[e],group:this.#n[this.#n.length-1]||null})}dirxml(e){this.#e.print({type:Vn.dirxml,level:zc.log,message:[e],group:this.#n[this.#n.length-1]||null})}error(e,...I){this.#e.print({type:Vn.error,level:zc.error,message:e?[e,...I]:I,group:this.#n[this.#n.length-1]||null})}exception(...e){this.error(...e)}group(e){this.#l++;let I={id:this.#l,label:e||"default",collapsed:!1,parent:this.#n[this.#n.length-1]||null};this.#n.push(I),this.#e.print({type:Vn.group,level:zc.log,message:[e||"default"],group:I})}groupCollapsed(e){this.#l++;let I={id:this.#l,label:e||"default",collapsed:!0,parent:this.#n[this.#n.length-1]||null};this.#n.push(I),this.#e.print({type:Vn.groupCollapsed,level:zc.log,message:[e||"default"],group:I})}groupEnd(){this.#n.length!==0&&this.#n.pop()}info(e,...I){this.#e.print({type:Vn.info,level:zc.info,message:e?[e,...I]:I,group:this.#n[this.#n.length-1]||null})}log(e,...I){this.#e.print({type:Vn.log,level:zc.log,message:e?[e,...I]:I,group:this.#n[this.#n.length-1]||null})}profile(){throw new Error("Method not implemented.")}profileEnd(){throw new Error("Method not implemented.")}table(e){this.#e.print({type:Vn.table,level:zc.log,message:[e],group:this.#n[this.#n.length-1]||null})}time(e="default"){this.#t[e]=performance.now()}timeEnd(e="default"){let I=this.#t[e];if(I){let l=performance.now()-I;this.#e.print({type:Vn.timeEnd,level:zc.info,message:[`${e}: ${l}ms - timer ended`],group:this.#n[this.#n.length-1]||null})}}timeLog(e="default",...I){let l=this.#t[e];if(l){let n=performance.now()-l;this.#e.print({type:Vn.timeLog,level:zc.info,message:[`${e}: ${n}ms`,...I],group:this.#n[this.#n.length-1]||null})}}timeStamp(){throw new Error("Method not implemented.")}trace(e,...I){this.#e.print({type:Vn.trace,level:zc.log,message:[...e?[e,...I]:I,new Error("stack").stack.replace("Error: stack","")],group:this.#n[this.#n.length-1]||null})}warn(e,...I){this.#e.print({type:Vn.warn,level:zc.warn,message:e?[e,...I]:I,group:this.#n[this.#n.length-1]||null})}};G();var Yu=class{static getFrames(e){return this.findFrames(e.mainFrame)}static closePage(e){if(e.closed)return Promise.resolve();e.closed=!0;let I=e.context.pages.indexOf(e);return I!==-1&&e.context.pages.splice(I,1),e.virtualConsolePrinter.close(),Nb.destroyFrame(e.mainFrame)}static findFrames(e){let I=[e];for(let l of e.childFrames)I=I.concat(this.findFrames(l));return I}};var eE=class{virtualConsolePrinter=new bY;mainFrame;context;console;viewport;closed=!1;constructor(e){this.context=e,this.console=e.browser.console??new IV(this.virtualConsolePrinter),this.mainFrame=new $H(this),this.viewport={width:e.browser.settings.viewport.width,height:e.browser.settings.viewport.height,devicePixelRatio:e.browser.settings.viewport.devicePixelRatio}}get frames(){return Yu.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 Yu.closePage(this)}waitUntilComplete(){return this.mainFrame.waitUntilComplete()}waitForNavigation(){return this.mainFrame.waitForNavigation()}abort(){return this.mainFrame.abort()}evaluate(e){return this.mainFrame.evaluate(e)}setViewport(e){let I=Object.assign({},this.viewport);Object.assign(this.viewport,e),(I.width!==this.viewport.width||I.height!==this.viewport.height||I.devicePixelRatio!==this.viewport.devicePixelRatio)&&this.mainFrame.window.dispatchEvent(new K("resize"))}goto(e,I){return this.mainFrame.goto(e,I)}goBack(e){return this.mainFrame.goBack(e)}goForward(e){return this.mainFrame.goForward(e)}goSteps(e,I){return this.mainFrame.goSteps(e,I)}reload(e){return this.mainFrame.reload(e)}};G();var V0=class{#e=new Map;get(e){let I=this.#e.get(e.url);return I?I.expires<Date.now()?(this.#e.delete(e.url),null):I:null}add(e,I){if(this.#e.delete(e.url),e.headers.get("Cache-Control")?.includes("no-cache")||I.status<200||I.status>=300)return null;let l=I.headers.get("Access-Control-Max-Age"),n=I.headers.get("Access-Control-Allow-Origin");if(!l||!n)return null;let c=[];if(I.headers.has("Access-Control-Allow-Methods")&&I.headers.get("Access-Control-Allow-Methods")!=="*")for(let r of I.headers.get("Access-Control-Allow-Methods").split(","))c.push(r.trim().toUpperCase());let a={allowOrigin:n,allowMethods:c,expires:Date.now()+parseInt(l)*1e3};return isNaN(a.expires)||a.expires<Date.now()?null:(this.#e.set(e.url,a),a)}clear(){this.#e.clear()}};var R0=class{pages=[];browser;cookieContainer=new Uy;responseCache=new Sy;preflightResponseCache=new V0;closed=!1;constructor(e){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(l=>l.close()));let e=this.browser,I=e.contexts.indexOf(this);I!==-1&&e.contexts.splice(I,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,I)=>{if(!this.pages.length){e();return}Promise.all(this.pages.slice().map(l=>l.abort())).then(()=>e()).catch(l=>I(l))})}newPage(){let e=new eE(this);return this.pages.push(e),e}};G();G();G();var Sze={version:"19.0.2"};var Mh={disableJavaScriptEvaluation:!1,disableJavaScriptFileLoading:!1,disableCSSFileLoading:!1,disableIframePageLoading:!1,disableComputedStyleRendering:!1,handleDisabledFileLoadingAsSuccess:!1,disableErrorCapturing:!1,errorCapture:tl.tryAndCatch,enableFileSystemHttpRequests:!1,timer:{maxTimeout:-1,maxIntervalTime:-1,maxIntervalIterations:-1,preventTimerLoops:!1},fetch:{disableSameOriginPolicy:!1,disableStrictSSL:!1,interceptor:null,requestHeaders:null,virtualServers:null},navigation:{disableMainFrameNavigation:!1,disableChildFrameNavigation:!1,disableChildPageNavigation:!1,disableFallbackToSetURL:!1,crossOriginPolicy:fX.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/${Sze.version}`,maxTouchPoints:0},device:{prefersColorScheme:"light",prefersReducedMotion:"no-preference",mediaType:"screen",forcedColors:"none"},debug:{traceWaitUntilComplete:-1},viewport:{width:1024,height:768,devicePixelRatio:1}};var y0=class{static createSettings(e){return e&&this.validate(Mh,e),{...Mh,...e,navigation:{...Mh.navigation,...e?.navigation},navigator:{...Mh.navigator,...e?.navigator},timer:{...Mh.timer,...e?.timer},fetch:{...Mh.fetch,...e?.fetch},device:{...Mh.device,...e?.device},debug:{...Mh.debug,...e?.debug},viewport:{...Mh.viewport,...e?.viewport}}}static validate(e,I,l){for(let n of Object.keys(I)){if(e[n]===void 0){let c=l?l+"."+n:n;throw new Error(`Unknown browser setting "${c}"`)}if(typeof e[n]=="object"&&!Array.isArray(e[n])&&e[n]!==null){let c=l?l+"."+n:n;if(typeof I[n]!="object"||Array.isArray(I[n])||I[n]===null)throw new Error(`Browser setting "${c}" cannot be null`);this.validate(e[n],I[n],c)}else if((typeof e[n]=="boolean"||typeof e[n]=="number"||typeof e[n]=="string")&&typeof I[n]!=typeof e[n]&&!(n==="preventTimerLoops"&&typeof I[n]=="object"&&I[n]!==null)){let a=l?l+"."+n:n;throw new Error(`Browser setting "${a}" must be of type "${typeof e[n]}"`)}}}};G();var F0=class{static listenerCount=0;observedWindows=[];uncaughtExceptionListener=null;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=(I,l)=>{if(l==="unhandledRejection")return;let n=null;for(let c of this.observedWindows)if(I instanceof c.Error||I instanceof c.DOMException){n=c;break}n?(n.console.error(I),n.dispatchEvent(new n.ErrorEvent("error",{error:I,message:I.message}))):process.listenerCount("uncaughtException")===this.constructor.listenerCount&&(console.error(I),process.exit(1))},this.uncaughtRejectionListener=I=>{let l=null;for(let n of this.observedWindows)if(I instanceof n.Error||I instanceof n.DOMException){l=n;break}l?(l.console.error(I),l.dispatchEvent(new l.ErrorEvent("error",{error:I,message:I.message}))):process.listenerCount("unhandledRejection")===this.constructor.listenerCount&&(console.error(I),process.exit(1))},this.constructor.listenerCount++,process.on("uncaughtException",this.uncaughtExceptionListener),process.on("unhandledRejection",this.uncaughtRejectionListener))}disconnect(e){let I=this.observedWindows.indexOf(e);I!==-1&&(this.observedWindows.splice(I,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))}};var gP=class{contexts;settings;console;[Ia]=null;constructor(e){this.console=e?.console||null,this.settings=y0.createSettings(e?.settings),this.settings.errorCapture===tl.processLevel&&(this[Ia]=new F0),this.contexts=[new R0(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(I=>I.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,I)=>{if(!this.contexts.length){e();return}Promise.all(this.contexts.slice().map(l=>l.abort())).then(()=>e()).catch(l=>I(l))})}newIncognitoContext(){if(this.contexts.length===0)throw new Error("No default context. The browser has been closed.");let e=new R0(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()}};G();G();G();var g0=class{virtualConsolePrinter=new bY;mainFrame;context;console;viewport;closed=!1;constructor(e){this.context=e,this.console=e.browser.console??new IV(this.virtualConsolePrinter),this.mainFrame=new UY(this),this.viewport={width:e.browser.settings.viewport.width,height:e.browser.settings.viewport.height,devicePixelRatio:e.browser.settings.viewport.devicePixelRatio}}get frames(){return Yu.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,I)=>{let l=this.context;Yu.closePage(this).then(()=>{l.pages[0]===this?l.browser.close().then(e).catch(I):e()}).catch(I)})}waitUntilComplete(){return this.mainFrame.waitUntilComplete()}waitForNavigation(){return this.mainFrame.waitForNavigation()}abort(){return this.mainFrame.abort()}evaluate(e){return this.mainFrame.evaluate(e)}setViewport(e){let I=Object.assign({},this.viewport);Object.assign(this.viewport,e),(I.width!==this.viewport.width||I.height!==this.viewport.height||I.devicePixelRatio!==this.viewport.devicePixelRatio)&&this.mainFrame.window.dispatchEvent(new K("resize"))}goto(e,I){return this.mainFrame.goto(e,I)}goBack(e){return this.mainFrame.goBack(e)}goForward(e){return this.mainFrame.goForward(e)}goSteps(e,I){return this.mainFrame.goSteps(e,I)}reload(e){return this.mainFrame.reload(e)}};var IE=class{pages;browser;cookieContainer=new Uy;responseCache=new Sy;preflightResponseCache=new V0;closed=!1;constructor(e){this.browser=e,this.pages=[],this.pages.push(new g0(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(l=>l.close()));let e=this.browser,I=e.contexts.indexOf(this);I!==-1&&e.contexts.splice(I,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,I)=>{if(!this.pages.length){e();return}Promise.all(this.pages.slice().map(l=>l.abort())).then(()=>e()).catch(l=>I(l))})}newPage(){let e=new g0(this);return this.pages.push(e),e}};var tE=class{contexts;settings;console;windowClass;[Ia]=null;constructor(e,I){this.windowClass=e,this.console=I?.console||null,this.settings=y0.createSettings(I?.settings),this.settings.errorCapture===tl.processLevel&&(this[Ia]=new F0),this.contexts=[],this.contexts.push(new IE(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(I=>I.close()))}async waitUntilComplete(){await Promise.all(this.contexts.map(e=>e.waitUntilComplete()))}abort(){return new Promise((e,I)=>{if(!this.contexts.length){e();return}Promise.all(this.contexts.slice().map(l=>l.abort())).then(()=>e()).catch(l=>I(l))})}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()}};G();var lE=class{#e;constructor(e){this.#e=e}get settings(){return this.#e.page.context.browser.settings}get virtualConsolePrinter(){return this.#e.page.virtualConsolePrinter}waitUntilComplete(){return this.#e.waitUntilComplete()}whenAsyncComplete(){return this.waitUntilComplete()}abort(){return this.#e.abort()}cancelAsync(){return this.abort()}close(){return this.#e.page.close()}setURL(e){this.#e.url=e}setViewport(e){this.#e.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})}};G();G();var tV=class extends UG{happyDOM;constructor(e){let l=new tE(UG,{console:e?.console,settings:e?.settings}).defaultContext.pages[0],n=l.mainFrame;e&&(e.width||e.height||e.innerWidth||e.innerHeight)&&Object.assign(l.viewport,{width:e.width||e.innerWidth||l.viewport.width,height:e.height||e.innerHeight||l.viewport.height}),super(n,{url:e?.url}),n.window=this,n.page.context.browser[Ia]&&n.page.context.browser[Ia].observe(this),this.happyDOM=new lE(n)}};import{Buffer as dLI}from"buffer";var QP=class extends tV{Array=globalThis.Array;ArrayBuffer=globalThis.ArrayBuffer;Boolean=globalThis.Boolean;Buffer=dLI;DataView=globalThis.DataView;Date=globalThis.Date;Error=globalThis.Error;EvalError=globalThis.EvalError;Float32Array=globalThis.Float32Array;Float64Array=globalThis.Float64Array;Function=globalThis.Function;Infinity=globalThis.Infinity;Int16Array=globalThis.Int16Array;Int32Array=globalThis.Int32Array;Int8Array=globalThis.Int8Array;Intl=globalThis.Intl;JSON=globalThis.JSON;Map=globalThis.Map;Math=globalThis.Math;NaN=globalThis.NaN;Number=globalThis.Number;Object=globalThis.Object;Promise=globalThis.Promise;RangeError=globalThis.RangeError;ReferenceError=globalThis.ReferenceError;RegExp=globalThis.RegExp;Set=globalThis.Set;String=globalThis.String;Symbol=globalThis.Symbol;SyntaxError=globalThis.SyntaxError;TypeError=globalThis.TypeError;URIError=globalThis.URIError;Uint16Array=globalThis.Uint16Array;Uint32Array=globalThis.Uint32Array;Uint8Array=globalThis.Uint8Array;Uint8ClampedArray=globalThis.Uint8ClampedArray;WeakMap=globalThis.WeakMap;WeakSet=globalThis.WeakSet;decodeURI=globalThis.decodeURI;decodeURIComponent=globalThis.decodeURIComponent;encodeURI=globalThis.encodeURI;encodeURIComponent=globalThis.encodeURIComponent;eval=globalThis.eval;escape=globalThis.escape;global=globalThis;isFinite=globalThis.isFinite;isNaN=globalThis.isNaN;parseFloat=globalThis.parseFloat;parseInt=globalThis.parseInt;undefined=globalThis.undefined;unescape=globalThis.unescape;[JL](){}};var Oze=5e3,iLI,bLI=["b","blockquote","br","code","em","h1","h2","h3","h4","h5","h6","hr","i","li","ol","p","pre","strong","sub","sup","table","tbody","td","th","thead","tr","ul","img","a","#text"],mLI=["href","src"],Mze={img:["src"],a:["href"]};var hLI=new tV,pLI={ALLOWED_TAGS:bLI,ALLOW_DATA_ATTR:!1,ALLOWED_ATTR:mLI,KEEP_CONTENT:!1,RETURN_DOM:!1,RETURN_DOM_FRAGMENT:!1,WHOLE_DOCUMENT:!1,SANITIZE_DOM:!0,SAFE_FOR_TEMPLATES:!1,SAFE_FOR_XML:!0,RETURN_TRUSTED_TYPE:!1,USE_PROFILES:!1};function ZLI(t,e,I){let l=t.tagName.toLowerCase();if(!(l in Mze)){e.forceKeepAttr=!1,e.keepAttr=!1;return}let n=Mze[l],c=e.attrName.toLowerCase();if(!n.includes(c)){e.forceKeepAttr=!1,e.keepAttr=!1;return}if(l==="img"&&c==="src"||l==="a"&&c==="href"){try{let a=URL.parse(e.attrValue);if(a&&(a.protocol==="http:"||a.protocol==="https:"))return}catch{}e.forceKeepAttr=!1,e.keepAttr=!1}}function Pie(t,e){if(!t)return t;try{return Tze(t,e)}catch(I){throw new Error(`Failed to apply content filter: ${I}`)}}function qie(t){switch(t.toLowerCase()){case"none":return"none";case"markdown":return"markdown";case"hidden_characters":return"hidden_characters";default:return"hidden_characters"}}function _ie(t,e){if(t===null||typeof t!="object")return t;for(let[I,l]of Object.entries(t))if(typeof l=="string"){let n=Pie(l,e);t[I]=n}else typeof l=="object"&&l!==null&&(t[I]=_ie(l,e));return t}function Tze(t,e,I=[]){if(!t||e==="none")return t;switch(e||(e="markdown"),e){case"markdown":return Vu(t,I);case"hidden_characters":return jze(t);default:throw new Error(`Unknown filter mode: ${e}`)}}function Vu(t,e=[]){if(!t)return t;let I=jze(t),l=/(```.*?\n[\s\S\n]+?\n```)|(`[\s\S\n]+?`)/gm,n="",c=0,a=new Map,s=0;for(let r of I.matchAll(l)){let o=r[0],d=r.index,i=d+o.length;n+=I.slice(c,d);let h=`*****__CODE_BLOCK_${s}__*****`;n+=h,a.set(h,o),c=i,s++}n+=I.slice(c),n=n.replace(/!\[(.*?)\]\((\S+?)(?:\s+"[^"]*")?\)/g,'<img src="$2">').replace(/\[(.*?)\]\((\S+?)(?:\s+"[^"]*")?\)/g,'<a href="$2">$1</a>').replace(/<(https:\/\/.+)>/g,'<a href="$1">$1</a>'),n=uLI(n,e);for(let[r,o]of a)n=n.replaceAll(r,o);return n}function uLI(t,e=[]){let I=_Be(hLI);I.addHook("uponSanitizeAttribute",ZLI),I.setConfig({...pLI,ADD_TAGS:e});let l=!1,n="<__filter_complete__></__filter_complete__>",c=setTimeout(()=>{l=!0},Oze),a=I.sanitize(t+n);for(;!l&&a.endsWith(n);)a=I.sanitize(a);return l&&(iLI?.error(`Content filtering timed out after ${Oze}ms. Returning partially filtered content.`),a=a.slice(0,a.length-n.length)),clearTimeout(c),a}function jze(t){let e=t.normalize("NFD"),I="";do I=e,e=e.replaceAll(/[\u{E0001}\u{E0020}-\u{E007F}\u{2066}-\u{2069}\u{202A}-\u{202E}\u{200B}\u{200C}\u{200E}\u{200F}\u{00AD}\u{FEFF}\u{180E}\u{2060}-\u{2064}]/gu,"");while(e!==I);return e.normalize("NFC")}G();import*as ni from"fs";import{existsSync as nV}from"fs";G();G();G();G();var $ie=(t,e,I)=>{let l=t instanceof RegExp?Dze(t,I):t,n=e instanceof RegExp?Dze(e,I):e,c=l!==null&&n!=null&&WLI(l,n,I);return c&&{start:c[0],end:c[1],pre:I.slice(0,c[0]),body:I.slice(c[0]+l.length,c[1]),post:I.slice(c[1]+n.length)}},Dze=(t,e)=>{let I=e.match(t);return I?I[0]:null},WLI=(t,e,I)=>{let l,n,c,a,s,r=I.indexOf(t),o=I.indexOf(e,r+1),d=r;if(r>=0&&o>0){if(t===e)return[r,o];for(l=[],c=I.length;d>=0&&!s;){if(d===r)l.push(d),r=I.indexOf(t,d+1);else if(l.length===1){let i=l.pop();i!==void 0&&(s=[i,o])}else n=l.pop(),n!==void 0&&n<c&&(c=n,a=o),o=I.indexOf(e,d+1);d=r<o&&r>=0?r:o}l.length&&a!==void 0&&(s=[c,a])}return s};var Kze="\0SLASH"+Math.random()+"\0",Pze="\0OPEN"+Math.random()+"\0",Ibe="\0CLOSE"+Math.random()+"\0",qze="\0COMMA"+Math.random()+"\0",_ze="\0PERIOD"+Math.random()+"\0",NLI=new RegExp(Kze,"g"),YLI=new RegExp(Pze,"g"),VLI=new RegExp(Ibe,"g"),RLI=new RegExp(qze,"g"),yLI=new RegExp(_ze,"g"),FLI=/\\\\/g,gLI=/\\{/g,QLI=/\\}/g,ALI=/\\,/g,wLI=/\\./g;function ebe(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}function XLI(t){return t.replace(FLI,Kze).replace(gLI,Pze).replace(QLI,Ibe).replace(ALI,qze).replace(wLI,_ze)}function HLI(t){return t.replace(NLI,"\\").replace(YLI,"{").replace(VLI,"}").replace(RLI,",").replace(yLI,".")}function $ze(t){if(!t)return[""];let e=[],I=$ie("{","}",t);if(!I)return t.split(",");let{pre:l,body:n,post:c}=I,a=l.split(",");a[a.length-1]+="{"+n+"}";let s=$ze(c);return c.length&&(a[a.length-1]+=s.shift(),a.push.apply(a,s)),e.push.apply(e,a),e}function eUe(t){return t?(t.slice(0,2)==="{}"&&(t="\\{\\}"+t.slice(2)),r9(XLI(t),!0).map(HLI)):[]}function ELI(t){return"{"+t+"}"}function vLI(t){return/^-?0\d/.test(t)}function CLI(t,e){return t<=e}function JLI(t,e){return t>=e}function r9(t,e){let I=[],l=$ie("{","}",t);if(!l)return[t];let n=l.pre,c=l.post.length?r9(l.post,!1):[""];if(/\$$/.test(l.pre))for(let a=0;a<c.length;a++){let s=n+"{"+l.body+"}"+c[a];I.push(s)}else{let a=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(l.body),s=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(l.body),r=a||s,o=l.body.indexOf(",")>=0;if(!r&&!o)return l.post.match(/,(?!,).*\}/)?(t=l.pre+"{"+l.body+Ibe+l.post,r9(t)):[t];let d;if(r)d=l.body.split(/\.\./);else if(d=$ze(l.body),d.length===1&&d[0]!==void 0&&(d=r9(d[0],!1).map(ELI),d.length===1))return c.map(h=>l.pre+d[0]+h);let i;if(r&&d[0]!==void 0&&d[1]!==void 0){let h=ebe(d[0]),p=ebe(d[1]),Z=Math.max(d[0].length,d[1].length),u=d.length===3&&d[2]!==void 0?Math.abs(ebe(d[2])):1,N=CLI;p<h&&(u*=-1,N=JLI);let y=d.some(vLI);i=[];for(let Q=h;N(Q,p);Q+=u){let A;if(s)A=String.fromCharCode(Q),A==="\\"&&(A="");else if(A=String(Q),y){let w=Z-A.length;if(w>0){let f=new Array(w+1).join("0");Q<0?A="-"+f+A.slice(1):A=f+A}}i.push(A)}}else{i=[];for(let h=0;h<d.length;h++)i.push.apply(i,r9(d[h],!1))}for(let h=0;h<i.length;h++)for(let p=0;p<c.length;p++){let Z=n+i[h]+c[p];(!e||r||Z)&&I.push(Z)}}return I}G();var G9=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")};G();G();var LLI={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},o9=t=>t.replace(/[[\]\\-]/g,"\\$&"),kLI=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),IUe=t=>t.join(""),tUe=(t,e)=>{let I=e;if(t.charAt(I)!=="[")throw new Error("not in a brace expression");let l=[],n=[],c=I+1,a=!1,s=!1,r=!1,o=!1,d=I,i="";e:for(;c<t.length;){let u=t.charAt(c);if((u==="!"||u==="^")&&c===I+1){o=!0,c++;continue}if(u==="]"&&a&&!r){d=c+1;break}if(a=!0,u==="\\"&&!r){r=!0,c++;continue}if(u==="["&&!r){for(let[N,[Y,y,Q]]of Object.entries(LLI))if(t.startsWith(N,c)){if(i)return["$.",!1,t.length-I,!0];c+=N.length,Q?n.push(Y):l.push(Y),s=s||y;continue e}}if(r=!1,i){u>i?l.push(o9(i)+"-"+o9(u)):u===i&&l.push(o9(u)),i="",c++;continue}if(t.startsWith("-]",c+1)){l.push(o9(u+"-")),c+=2;continue}if(t.startsWith("-",c+1)){i=u,c+=2;continue}l.push(o9(u)),c++}if(d<c)return["",!1,0,!1];if(!l.length&&!n.length)return["$.",!1,t.length-I,!0];if(n.length===0&&l.length===1&&/^\\?.$/.test(l[0])&&!o){let u=l[0].length===2?l[0].slice(-1):l[0];return[kLI(u),!1,d-I,!1]}let h="["+(o?"^":"")+IUe(l)+"]",p="["+(o?"":"^")+IUe(n)+"]";return[l.length&&n.length?"("+h+"|"+p+")":l.length?h:p,s,d-I,!0]};G();var Fb=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");var fLI=new Set(["!","?","+","*","@"]),lUe=t=>fLI.has(t),xLI="(?!(?:^|/)\\.\\.?(?:$|/))",AP="(?!\\.)",BLI=new Set(["[","."]),zLI=new Set(["..","."]),ULI=new Set("().*{}+?[]^$\\!"),SLI=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),tbe="[^/]",nUe=tbe+"*?",cUe=tbe+"+?",nE=class t{type;#e;#I;#t=!1;#l=[];#n;#a;#G;#s=!1;#o;#d;#i=!1;constructor(e,I,l={}){this.type=e,e&&(this.#I=!0),this.#n=I,this.#e=this.#n?this.#n.#e:this,this.#o=this.#e===this?l:this.#e.#o,this.#G=this.#e===this?[]:this.#e.#G,e==="!"&&!this.#e.#s&&this.#G.push(this),this.#a=this.#n?this.#n.#l.length:0}get hasMagic(){if(this.#I!==void 0)return this.#I;for(let e of this.#l)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#I=!0;return this.#I}toString(){return this.#d!==void 0?this.#d:this.type?this.#d=this.type+"("+this.#l.map(e=>String(e)).join("|")+")":this.#d=this.#l.map(e=>String(e)).join("")}#c(){if(this!==this.#e)throw new Error("should only call on root");if(this.#s)return this;this.toString(),this.#s=!0;let e;for(;e=this.#G.pop();){if(e.type!=="!")continue;let I=e,l=I.#n;for(;l;){for(let n=I.#a+1;!l.type&&n<l.#l.length;n++)for(let c of e.#l){if(typeof c=="string")throw new Error("string part in extglob AST??");c.copyIn(l.#l[n])}I=l,l=I.#n}}return this}push(...e){for(let I of e)if(I!==""){if(typeof I!="string"&&!(I instanceof t&&I.#n===this))throw new Error("invalid part: "+I);this.#l.push(I)}}toJSON(){let e=this.type===null?this.#l.slice().map(I=>typeof I=="string"?I:I.toJSON()):[this.type,...this.#l.map(I=>I.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#s&&this.#n?.type==="!")&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#n?.isStart())return!1;if(this.#a===0)return!0;let e=this.#n;for(let I=0;I<this.#a;I++){let l=e.#l[I];if(!(l instanceof t&&l.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#n?.type==="!")return!0;if(!this.#n?.isEnd())return!1;if(!this.type)return this.#n?.isEnd();let e=this.#n?this.#n.#l.length:0;return this.#a===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let I=new t(this.type,e);for(let l of this.#l)I.copyIn(l);return I}static#m(e,I,l,n){let c=!1,a=!1,s=-1,r=!1;if(I.type===null){let p=l,Z="";for(;p<e.length;){let u=e.charAt(p++);if(c||u==="\\"){c=!c,Z+=u;continue}if(a){p===s+1?(u==="^"||u==="!")&&(r=!0):u==="]"&&!(p===s+2&&r)&&(a=!1),Z+=u;continue}else if(u==="["){a=!0,s=p,r=!1,Z+=u;continue}if(!n.noext&&lUe(u)&&e.charAt(p)==="("){I.push(Z),Z="";let N=new t(u,I);p=t.#m(e,N,p,n),I.push(N);continue}Z+=u}return I.push(Z),p}let o=l+1,d=new t(null,I),i=[],h="";for(;o<e.length;){let p=e.charAt(o++);if(c||p==="\\"){c=!c,h+=p;continue}if(a){o===s+1?(p==="^"||p==="!")&&(r=!0):p==="]"&&!(o===s+2&&r)&&(a=!1),h+=p;continue}else if(p==="["){a=!0,s=o,r=!1,h+=p;continue}if(lUe(p)&&e.charAt(o)==="("){d.push(h),h="";let Z=new t(p,d);d.push(Z),o=t.#m(e,Z,o,n);continue}if(p==="|"){d.push(h),h="",i.push(d),d=new t(null,I);continue}if(p===")")return h===""&&I.#l.length===0&&(I.#i=!0),d.push(h),h="",I.push(...i,d),o;h+=p}return I.type=null,I.#I=void 0,I.#l=[e.substring(l-1)],o}static fromGlob(e,I={}){let l=new t(null,void 0,I);return t.#m(e,l,0,I),l}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[I,l,n,c]=this.toRegExpSource();if(!(n||this.#I||this.#o.nocase&&!this.#o.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return l;let s=(this.#o.nocase?"i":"")+(c?"u":"");return Object.assign(new RegExp(`^${I}$`,s),{_src:I,_glob:e})}get options(){return this.#o}toRegExpSource(e){let I=e??!!this.#o.dot;if(this.#e===this&&this.#c(),!this.type){let r=this.isStart()&&this.isEnd(),o=this.#l.map(p=>{let[Z,u,N,Y]=typeof p=="string"?t.#p(p,this.#I,r):p.toRegExpSource(e);return this.#I=this.#I||N,this.#t=this.#t||Y,Z}).join(""),d="";if(this.isStart()&&typeof this.#l[0]=="string"&&!(this.#l.length===1&&zLI.has(this.#l[0]))){let Z=BLI,u=I&&Z.has(o.charAt(0))||o.startsWith("\\.")&&Z.has(o.charAt(2))||o.startsWith("\\.\\.")&&Z.has(o.charAt(4)),N=!I&&!e&&Z.has(o.charAt(0));d=u?xLI:N?AP:""}let i="";return this.isEnd()&&this.#e.#s&&this.#n?.type==="!"&&(i="(?:$|\\/)"),[d+o+i,Fb(o),this.#I=!!this.#I,this.#t]}let l=this.type==="*"||this.type==="+",n=this.type==="!"?"(?:(?!(?:":"(?:",c=this.#W(I);if(this.isStart()&&this.isEnd()&&!c&&this.type!=="!"){let r=this.toString();return this.#l=[r],this.type=null,this.#I=void 0,[r,Fb(this.toString()),!1,!1]}let a=!l||e||I||!AP?"":this.#W(!0);a===c&&(a=""),a&&(c=`(?:${c})(?:${a})*?`);let s="";if(this.type==="!"&&this.#i)s=(this.isStart()&&!I?AP:"")+cUe;else{let r=this.type==="!"?"))"+(this.isStart()&&!I&&!e?AP:"")+nUe+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`;s=n+c+r}return[s,Fb(c),this.#I=!!this.#I,this.#t]}#W(e){return this.#l.map(I=>{if(typeof I=="string")throw new Error("string type in extglob ast??");let[l,n,c,a]=I.toRegExpSource(e);return this.#t=this.#t||a,l}).filter(I=>!(this.isStart()&&this.isEnd())||!!I).join("|")}static#p(e,I,l=!1){let n=!1,c="",a=!1;for(let s=0;s<e.length;s++){let r=e.charAt(s);if(n){n=!1,c+=(ULI.has(r)?"\\":"")+r;continue}if(r==="\\"){s===e.length-1?c+="\\\\":n=!0;continue}if(r==="["){let[o,d,i,h]=tUe(e,s);if(i){c+=o,a=a||d,s+=i-1,I=I||h;continue}}if(r==="*"){l&&e==="*"?c+=cUe:c+=nUe,I=!0;continue}if(r==="?"){c+=tbe,I=!0;continue}c+=SLI(r)}return[c,Fb(e),!!I,a]}};G();var cE=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&");var Tr=(t,e,I={})=>(G9(e),!I.nocomment&&e.charAt(0)==="#"?!1:new $o(e,I).match(t)),OLI=/^\*+([^+@!?\*\[\(]*)$/,MLI=t=>e=>!e.startsWith(".")&&e.endsWith(t),TLI=t=>e=>e.endsWith(t),jLI=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),DLI=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),KLI=/^\*+\.\*+$/,PLI=t=>!t.startsWith(".")&&t.includes("."),qLI=t=>t!=="."&&t!==".."&&t.includes("."),_LI=/^\.\*+$/,$LI=t=>t!=="."&&t!==".."&&t.startsWith("."),e3I=/^\*+$/,I3I=t=>t.length!==0&&!t.startsWith("."),t3I=t=>t.length!==0&&t!=="."&&t!=="..",l3I=/^\?+([^+@!?\*\[\(]*)?$/,n3I=([t,e=""])=>{let I=rUe([t]);return e?(e=e.toLowerCase(),l=>I(l)&&l.toLowerCase().endsWith(e)):I},c3I=([t,e=""])=>{let I=GUe([t]);return e?(e=e.toLowerCase(),l=>I(l)&&l.toLowerCase().endsWith(e)):I},a3I=([t,e=""])=>{let I=GUe([t]);return e?l=>I(l)&&l.endsWith(e):I},s3I=([t,e=""])=>{let I=rUe([t]);return e?l=>I(l)&&l.endsWith(e):I},rUe=([t])=>{let e=t.length;return I=>I.length===e&&!I.startsWith(".")},GUe=([t])=>{let e=t.length;return I=>I.length===e&&I!=="."&&I!==".."},oUe=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",aUe={win32:{sep:"\\"},posix:{sep:"/"}},r3I=oUe==="win32"?aUe.win32.sep:aUe.posix.sep;Tr.sep=r3I;var ms=Symbol("globstar **");Tr.GLOBSTAR=ms;var G3I="[^/]",o3I=G3I+"*?",d3I="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",i3I="(?:(?!(?:\\/|^)\\.).)*?",b3I=(t,e={})=>I=>Tr(I,t,e);Tr.filter=b3I;var Ii=(t,e={})=>Object.assign({},t,e),m3I=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return Tr;let e=Tr;return Object.assign((l,n,c={})=>e(l,n,Ii(t,c)),{Minimatch:class extends e.Minimatch{constructor(n,c={}){super(n,Ii(t,c))}static defaults(n){return e.defaults(Ii(t,n)).Minimatch}},AST:class extends e.AST{constructor(n,c,a={}){super(n,c,Ii(t,a))}static fromGlob(n,c={}){return e.AST.fromGlob(n,Ii(t,c))}},unescape:(l,n={})=>e.unescape(l,Ii(t,n)),escape:(l,n={})=>e.escape(l,Ii(t,n)),filter:(l,n={})=>e.filter(l,Ii(t,n)),defaults:l=>e.defaults(Ii(t,l)),makeRe:(l,n={})=>e.makeRe(l,Ii(t,n)),braceExpand:(l,n={})=>e.braceExpand(l,Ii(t,n)),match:(l,n,c={})=>e.match(l,n,Ii(t,c)),sep:e.sep,GLOBSTAR:ms})};Tr.defaults=m3I;var dUe=(t,e={})=>(G9(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:eUe(t));Tr.braceExpand=dUe;var h3I=(t,e={})=>new $o(t,e).makeRe();Tr.makeRe=h3I;var p3I=(t,e,I={})=>{let l=new $o(e,I);return t=t.filter(n=>l.match(n)),l.options.nonull&&!t.length&&t.push(e),t};Tr.match=p3I;var sUe=/[?*]|[+@!]\(.*?\)|\[|\]/,Z3I=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),$o=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(e,I={}){G9(e),I=I||{},this.options=I,this.pattern=e,this.platform=I.platform||oUe,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!I.windowsPathsNoEscape||I.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!I.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!I.nonegate,this.comment=!1,this.empty=!1,this.partial=!!I.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=I.windowsNoMagicRoot!==void 0?I.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let I of e)if(typeof I!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,I=this.options;if(!I.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],I.debug&&(this.debug=(...c)=>console.error(...c)),this.debug(this.pattern,this.globSet);let l=this.globSet.map(c=>this.slashSplit(c));this.globParts=this.preprocess(l),this.debug(this.pattern,this.globParts);let n=this.globParts.map((c,a,s)=>{if(this.isWindows&&this.windowsNoMagicRoot){let r=c[0]===""&&c[1]===""&&(c[2]==="?"||!sUe.test(c[2]))&&!sUe.test(c[3]),o=/^[a-z]:/i.test(c[0]);if(r)return[...c.slice(0,4),...c.slice(4).map(d=>this.parse(d))];if(o)return[c[0],...c.slice(1).map(d=>this.parse(d))]}return c.map(r=>this.parse(r))});if(this.debug(this.pattern,n),this.set=n.filter(c=>c.indexOf(!1)===-1),this.isWindows)for(let c=0;c<this.set.length;c++){let a=this.set[c];a[0]===""&&a[1]===""&&this.globParts[c][2]==="?"&&typeof a[3]=="string"&&/^[a-z]:$/i.test(a[3])&&(a[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let l=0;l<e.length;l++)for(let n=0;n<e[l].length;n++)e[l][n]==="**"&&(e[l][n]="*");let{optimizationLevel:I=1}=this.options;return I>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):I>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(I=>{let l=-1;for(;(l=I.indexOf("**",l+1))!==-1;){let n=l;for(;I[n+1]==="**";)n++;n!==l&&I.splice(l,n-l)}return I})}levelOneOptimize(e){return e.map(I=>(I=I.reduce((l,n)=>{let c=l[l.length-1];return n==="**"&&c==="**"?l:n===".."&&c&&c!==".."&&c!=="."&&c!=="**"?(l.pop(),l):(l.push(n),l)},[]),I.length===0?[""]:I))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let I=!1;do{if(I=!1,!this.preserveMultipleSlashes){for(let n=1;n<e.length-1;n++){let c=e[n];n===1&&c===""&&e[0]===""||(c==="."||c==="")&&(I=!0,e.splice(n,1),n--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(I=!0,e.pop())}let l=0;for(;(l=e.indexOf("..",l+1))!==-1;){let n=e[l-1];n&&n!=="."&&n!==".."&&n!=="**"&&(I=!0,e.splice(l-1,2),l-=2)}}while(I);return e.length===0?[""]:e}firstPhasePreProcess(e){let I=!1;do{I=!1;for(let l of e){let n=-1;for(;(n=l.indexOf("**",n+1))!==-1;){let a=n;for(;l[a+1]==="**";)a++;a>n&&l.splice(n+1,a-n);let s=l[n+1],r=l[n+2],o=l[n+3];if(s!==".."||!r||r==="."||r===".."||!o||o==="."||o==="..")continue;I=!0,l.splice(n,1);let d=l.slice(0);d[n]="**",e.push(d),n--}if(!this.preserveMultipleSlashes){for(let a=1;a<l.length-1;a++){let s=l[a];a===1&&s===""&&l[0]===""||(s==="."||s==="")&&(I=!0,l.splice(a,1),a--)}l[0]==="."&&l.length===2&&(l[1]==="."||l[1]==="")&&(I=!0,l.pop())}let c=0;for(;(c=l.indexOf("..",c+1))!==-1;){let a=l[c-1];if(a&&a!=="."&&a!==".."&&a!=="**"){I=!0;let r=c===1&&l[c+1]==="**"?["."]:[];l.splice(c-1,2,...r),l.length===0&&l.push(""),c-=2}}}}while(I);return e}secondPhasePreProcess(e){for(let I=0;I<e.length-1;I++)for(let l=I+1;l<e.length;l++){let n=this.partsMatch(e[I],e[l],!this.preserveMultipleSlashes);if(n){e[I]=[],e[l]=n;break}}return e.filter(I=>I.length)}partsMatch(e,I,l=!1){let n=0,c=0,a=[],s="";for(;n<e.length&&c<I.length;)if(e[n]===I[c])a.push(s==="b"?I[c]:e[n]),n++,c++;else if(l&&e[n]==="**"&&I[c]===e[n+1])a.push(e[n]),n++;else if(l&&I[c]==="**"&&e[n]===I[c+1])a.push(I[c]),c++;else if(e[n]==="*"&&I[c]&&(this.options.dot||!I[c].startsWith("."))&&I[c]!=="**"){if(s==="b")return!1;s="a",a.push(e[n]),n++,c++}else if(I[c]==="*"&&e[n]&&(this.options.dot||!e[n].startsWith("."))&&e[n]!=="**"){if(s==="a")return!1;s="b",a.push(I[c]),n++,c++}else return!1;return e.length===I.length&&a}parseNegate(){if(this.nonegate)return;let e=this.pattern,I=!1,l=0;for(let n=0;n<e.length&&e.charAt(n)==="!";n++)I=!I,l++;l&&(this.pattern=e.slice(l)),this.negate=I}matchOne(e,I,l=!1){let n=this.options;if(this.isWindows){let u=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),N=!u&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),Y=typeof I[0]=="string"&&/^[a-z]:$/i.test(I[0]),y=!Y&&I[0]===""&&I[1]===""&&I[2]==="?"&&typeof I[3]=="string"&&/^[a-z]:$/i.test(I[3]),Q=N?3:u?0:void 0,A=y?3:Y?0:void 0;if(typeof Q=="number"&&typeof A=="number"){let[w,f]=[e[Q],I[A]];w.toLowerCase()===f.toLowerCase()&&(I[A]=w,A>Q?I=I.slice(A):Q>A&&(e=e.slice(Q)))}}let{optimizationLevel:c=1}=this.options;c>=2&&(e=this.levelTwoFileOptimize(e)),this.debug("matchOne",this,{file:e,pattern:I}),this.debug("matchOne",e.length,I.length);for(var a=0,s=0,r=e.length,o=I.length;a<r&&s<o;a++,s++){this.debug("matchOne loop");var d=I[s],i=e[a];if(this.debug(I,d,i),d===!1)return!1;if(d===ms){this.debug("GLOBSTAR",[I,d,i]);var h=a,p=s+1;if(p===o){for(this.debug("** at the end");a<r;a++)if(e[a]==="."||e[a]===".."||!n.dot&&e[a].charAt(0)===".")return!1;return!0}for(;h<r;){var Z=e[h];if(this.debug(`
927
+ `),c=n[n.length-1].length+1,a=`error on line ${n.length} at column ${c}: ${I||"Unknown error"}`,s=this.rootNode.createElementNS(lt.html,"parsererror");s.setAttribute("style","display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color: black"),s.innerHTML=`<h3>This page contains the following errors:</h3><div style="font-family:monospace;font-size:12px">${a}</div><h3>Below is a rendering of the page up to the first error.</h3>`,l.insertBefore(s,l.firstChild)}removeOverflowingTextNodes(){if(this.currentNode&&this.currentNode!==this.rootNode)for(;this.currentNode.lastChild?.[se]===bI.TEXT_NODE;)this.currentNode.removeChild(this.currentNode.lastChild)}getDocumentType(e){if(!e.toUpperCase().startsWith("DOCTYPE"))return null;let I=e.split(Tk);if(I.length<=1)return null;let l=I.slice(1).join(" "),n=[],c=new RegExp(X4I,"gm"),a=l.toUpperCase().includes("PUBLIC"),s;for(;s=c.exec(l);)n.push(s[1]);let r=a&&n[0]||"",o=a?n[1]||"":n[0]||"";return{name:I[1].toLowerCase(),publicId:r,systemId:o}}};var SH=class{parseFromString(e,I){if(!I)throw new this[W].DOMException('Second parameter "mimeType" is mandatory.');let l=this[W];switch(I){case"text/html":let n=new l.HTMLDocument;return n[fs]=l,new ca(this[W]).parse(e,n);case"image/svg+xml":case"text/xml":case"application/xml":case"application/xhtml+xml":return new UH(this[W]).parse(e);default:throw new l.DOMException(`Unknown mime type "${I}".`)}}};G();G();var kie;(function(t){t[t.endToEnd=2]="endToEnd",t[t.endToStart=3]="endToStart",t[t.startToEnd=1]="startToEnd",t[t.startToStart=0]="startToStart"})(kie||(kie={}));var Fc=kie;var OH=class{static END_TO_END=Fc.endToEnd;static END_TO_START=Fc.endToStart;static START_TO_END=Fc.startToEnd;static START_TO_START=Fc.startToStart;END_TO_END=Fc.endToEnd;END_TO_START=Fc.endToStart;START_TO_END=Fc.startToEnd;START_TO_START=Fc.startToStart;[re];[We];[S];constructor(){let e=this[W];if(!e)throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);this[S]=e.document,this[re]={node:e.document,offset:0},this[We]={node:e.document,offset:0}}get startContainer(){return this[re].node}get endContainer(){return this[We].node}get startOffset(){if(this[re].offset>0){let e=uI.getNodeLength(this[re].node);this[re].offset>e&&(this[re].offset=e)}return this[re].offset}get endOffset(){if(this[We].offset>0){let e=uI.getNodeLength(this[We].node);this[We].offset>e&&(this[We].offset=e)}return this[We].offset}get collapsed(){return this[re].node===this[We].node&&this.startOffset===this.endOffset}get commonAncestorContainer(){let e=this[re].node;for(;e;){if(uI.isInclusiveAncestor(e,this[We].node))return e;e=e[he]}return null}collapse(e=!1){e?this[We]=Object.assign({},this[re]):this[re]=Object.assign({},this[We])}compareBoundaryPoints(e,I){if(e!==Fc.startToStart&&e!==Fc.startToEnd&&e!==Fc.endToEnd&&e!==Fc.endToStart)throw new this[W].DOMException(`The comparison method provided must be one of '${Fc.startToStart}', '${Fc.startToEnd}', '${Fc.endToEnd}' or '${Fc.endToStart}'.`,x.notSupportedError);if(this[S]!==I[S])throw new this[W].DOMException("The two Ranges are not in the same tree.",x.wrongDocumentError);let l={node:null,offset:0},n={node:null,offset:0};switch(e){case Fc.startToStart:l.node=this[re].node,l.offset=this.startOffset,n.node=I[re].node,n.offset=I.startOffset;break;case Fc.startToEnd:l.node=this[We].node,l.offset=this.endOffset,n.node=I[re].node,n.offset=I.startOffset;break;case Fc.endToEnd:l.node=this[We].node,l.offset=this.endOffset,n.node=I[We].node,n.offset=I.endOffset;break;case Fc.endToStart:l.node=this[re].node,l.offset=this.startOffset,n.node=I[We].node,n.offset=I.endOffset;break}return nl.compareBoundaryPointsPosition(l,n)}comparePoint(e,I){if(e[S]!==this[S])throw new this[W].DOMException("The two Ranges are not in the same tree.",x.wrongDocumentError);nl.validateBoundaryPoint({node:e,offset:I});let l={node:e,offset:I};return nl.compareBoundaryPointsPosition(l,{node:this[re].node,offset:this.startOffset})===-1?-1:nl.compareBoundaryPointsPosition(l,{node:this[We].node,offset:this.endOffset})===1?1:0}cloneContents(){let e=this[W],I=this[S].createDocumentFragment(),l=this.startOffset,n=this.endOffset;if(this.collapsed)return I;if(this[re].node===this[We].node&&(this[re].node[se]===D.textNode||this[re].node[se]===D.processingInstructionNode||this[re].node[se]===D.commentNode)){let o=this[re].node.cloneNode(!1);return o[ft]=o.substringData(l,n-l),I.appendChild(o),I}let c=this[re].node;for(;!uI.isInclusiveAncestor(c,this[We].node);)c=c[he];let a=null;if(!uI.isInclusiveAncestor(this[re].node,this[We].node)){let o=c.firstChild;for(;!a;)nl.isPartiallyContained(o,this)&&(a=o),o=o.nextSibling}let s=null;if(!uI.isInclusiveAncestor(this[We].node,this[re].node)){let o=c.lastChild;for(;!s;)nl.isPartiallyContained(o,this)&&(s=o),o=o.previousSibling}let r=[];for(let o of c[be])if(nl.isContained(o,this)){if(o[se]===D.documentTypeNode)throw new e.DOMException("Invalid document type element.",x.hierarchyRequestError);r.push(o)}if(a!==null&&(a[se]===D.textNode||a[se]===D.processingInstructionNode||a[se]===D.commentNode)){let o=this[re].node.cloneNode(!1);o[ft]=o.substringData(l,uI.getNodeLength(this[re].node)-l),I.appendChild(o)}else if(a!==null){let o=a.cloneNode();I.appendChild(o);let d=new e.Range;d[re].node=this[re].node,d[re].offset=l,d[We].node=a,d[We].offset=uI.getNodeLength(a);let i=d.cloneContents();o.appendChild(i)}for(let o of r){let d=o.cloneNode(!0);I.appendChild(d)}if(s!==null&&(s[se]===D.textNode||s[se]===D.processingInstructionNode||s[se]===D.commentNode)){let o=this[We].node.cloneNode(!1);o[ft]=o.substringData(0,n),I.appendChild(o)}else if(s!==null){let o=s.cloneNode(!1);I.appendChild(o);let d=new e.Range;d[re].node=s,d[re].offset=0,d[We].node=this[We].node,d[We].offset=n;let i=d.cloneContents();o.appendChild(i)}return I}cloneRange(){let e=new this[W].Range;return e[re].node=this[re].node,e[re].offset=this[re].offset,e[We].node=this[We].node,e[We].offset=this[We].offset,e}createContextualFragment(e){return new ca(this[W]).parse(e)}deleteContents(){let e=this.startOffset,I=this.endOffset;if(this.collapsed)return;if(this[re].node===this[We].node&&(this[re].node[se]===D.textNode||this[re].node[se]===D.processingInstructionNode||this[re].node[se]===D.commentNode)){this[re].node.replaceData(e,I-e,"");return}let l=[],n=this[re].node,c=uI.nextDescendantNode(this[We].node);for(;n&&n!==c;)nl.isContained(n,this)&&!nl.isContained(n[he],this)&&l.push(n),n=uI.following(n);let a,s;if(uI.isInclusiveAncestor(this[re].node,this[We].node))a=this[re].node,s=e;else{let r=this[re].node;for(;r&&!uI.isInclusiveAncestor(r[he],this[We].node);)r=r[he];a=r[he],s=r[he][be].indexOf(r)+1}(this[re].node[se]===D.textNode||this[re].node[se]===D.processingInstructionNode||this[re].node[se]===D.commentNode)&&this[re].node.replaceData(this.startOffset,uI.getNodeLength(this[re].node)-this.startOffset,"");for(let r of l)r[he].removeChild(r);(this[We].node[se]===D.textNode||this[We].node[se]===D.processingInstructionNode||this[We].node[se]===D.commentNode)&&this[We].node.replaceData(0,I,""),this[re].node=a,this[re].offset=s,this[We].node=a,this[We].offset=s}detach(){}extractContents(){let e=this[W],I=this[S].createDocumentFragment(),l=this.startOffset,n=this.endOffset;if(this.collapsed)return I;if(this[re].node===this[We].node&&(this[re].node[se]===D.textNode||this[re].node[se]===D.processingInstructionNode||this[re].node[se]===D.commentNode)){let i=this[re].node.cloneNode(!1);return i[ft]=i.substringData(l,n-l),I.appendChild(i),this[re].node.replaceData(l,n-l,""),I}let c=this[re].node;for(;!uI.isInclusiveAncestor(c,this[We].node);)c=c[he];let a=null;if(!uI.isInclusiveAncestor(this[re].node,this[We].node)){let i=c.firstChild;for(;!a;)nl.isPartiallyContained(i,this)&&(a=i),i=i.nextSibling}let s=null;if(!uI.isInclusiveAncestor(this[We].node,this[re].node)){let i=c.lastChild;for(;!s;)nl.isPartiallyContained(i,this)&&(s=i),i=i.previousSibling}let r=[];for(let i of c[be])if(nl.isContained(i,this)){if(i[se]===D.documentTypeNode)throw new this[W].DOMException("Invalid document type element.",x.hierarchyRequestError);r.push(i)}let o,d;if(uI.isInclusiveAncestor(this[re].node,this[We].node))o=this[re].node,d=l;else{let i=this[re].node;for(;i&&!uI.isInclusiveAncestor(i[he],this[We].node);)i=i[he];o=i[he],d=i[he][be].indexOf(i)+1}if(a!==null&&(a[se]===D.textNode||a[se]===D.processingInstructionNode||a[se]===D.commentNode)){let i=this[re].node.cloneNode(!1);i[ft]=i.substringData(l,uI.getNodeLength(this[re].node)-l),I.appendChild(i),this[re].node.replaceData(l,uI.getNodeLength(this[re].node)-l,"")}else if(a!==null){let i=a.cloneNode(!1);I.appendChild(i);let h=new e.Range;h[re].node=this[re].node,h[re].offset=l,h[We].node=a,h[We].offset=uI.getNodeLength(a);let p=h.extractContents();i.appendChild(p)}for(let i of r)I.appendChild(i);if(s!==null&&(s[se]===D.textNode||s[se]===D.processingInstructionNode||s[se]===D.commentNode)){let i=this[We].node.cloneNode(!1);i[ft]=i.substringData(0,n),I.appendChild(i),this[We].node.replaceData(0,n,"")}else if(s!==null){let i=s.cloneNode(!1);I.appendChild(i);let h=new e.Range;h[re].node=s,h[re].offset=0,h[We].node=this[We].node,h[We].offset=n;let p=h.extractContents();i.appendChild(p)}return this[re].node=o,this[re].offset=d,this[We].node=o,this[We].offset=d,I}getBoundingClientRect(){return new Kd}getClientRects(){return new n0(V)}isPointInRange(e,I=0){if(e[S]!==this[S])return!1;let l={node:e,offset:I};return nl.validateBoundaryPoint(l),!(nl.compareBoundaryPointsPosition(l,{node:this[re].node,offset:this.startOffset})===-1||nl.compareBoundaryPointsPosition(l,{node:this[We].node,offset:this.endOffset})===1)}insertNode(e){if(this[re].node[se]===D.processingInstructionNode||this[re].node[se]===D.commentNode||this[re].node[se]===D.textNode&&!this[re].node[he]||e===this[re].node)throw new this[W].DOMException("Invalid start node.",x.hierarchyRequestError);let I=this[re].node[se]===D.textNode?this[re].node:this[re].node[be][this.startOffset]||null,l=I?I[he]:this[re].node;this[re].node[se]===D.textNode&&(I=this[re].node.splitText(this.startOffset)),e===I&&(I=I.nextSibling);let n=e[he];n&&n.removeChild(e);let c=I?I[he][be].indexOf(I):uI.getNodeLength(l);c+=e[se]===D.documentFragmentNode?uI.getNodeLength(e):1,l.insertBefore(e,I),this.collapsed&&(this[We].node=l,this[We].offset=c)}intersectsNode(e){if(e[S]!==this[S])return!1;let I=e[he];if(!I)return!0;let l=I[be].indexOf(e);return nl.compareBoundaryPointsPosition({node:I,offset:l},{node:this[We].node,offset:this.endOffset})===-1&&nl.compareBoundaryPointsPosition({node:I,offset:l+1},{node:this[re].node,offset:this.startOffset})===1}selectNode(e){if(!e[he])throw new this[W].DOMException("The given Node has no parent.",x.invalidNodeTypeError);let I=e[he][be].indexOf(e);this[re].node=e[he],this[re].offset=I,this[We].node=e[he],this[We].offset=I+1}selectNodeContents(e){if(e[se]===D.documentTypeNode)throw new this[W].DOMException("DocumentType Node can't be used as boundary point.",x.invalidNodeTypeError);this[re].node=e,this[re].offset=0,this[We].node=e,this[We].offset=uI.getNodeLength(e)}setEnd(e,I=0){nl.validateBoundaryPoint({node:e,offset:I});let l={node:e,offset:I};(e[S]!==this[S]||nl.compareBoundaryPointsPosition(l,{node:this[re].node,offset:this.startOffset})===-1)&&(this[re].node=e,this[re].offset=I),this[We].node=e,this[We].offset=I}setStart(e,I=0){nl.validateBoundaryPoint({node:e,offset:I});let l={node:e,offset:I};(e[S]!==this[S]||nl.compareBoundaryPointsPosition(l,{node:this[We].node,offset:this.endOffset})===1)&&(this[We].node=e,this[We].offset=I),this[re].node=e,this[re].offset=I}setEndAfter(e){if(!e[he])throw new this[W].DOMException("The given Node has no parent.",x.invalidNodeTypeError);this.setEnd(e[he],e[he][be].indexOf(e)+1)}setEndBefore(e){if(!e[he])throw new this[W].DOMException("The given Node has no parent.",x.invalidNodeTypeError);this.setEnd(e[he],e[he][be].indexOf(e))}setStartAfter(e){if(!e[he])throw new this[W].DOMException("The given Node has no parent.",x.invalidNodeTypeError);this.setStart(e[he],e[he][be].indexOf(e)+1)}setStartBefore(e){if(!e[he])throw new this[W].DOMException("The given Node has no parent.",x.invalidNodeTypeError);this.setStart(e[he],e[he][be].indexOf(e))}surroundContents(e){let I=this.commonAncestorContainer;if(!I)return;let l=uI.nextDescendantNode(I);for(;I&&I!==l;){if(I[se]!==D.textNode&&nl.isPartiallyContained(I,this))throw new this[W].DOMException("The Range has partially contains a non-Text node.",x.invalidStateError);I=uI.following(I)}if(e[se]===D.documentNode||e[se]===D.documentTypeNode||e[se]===D.documentFragmentNode)throw new this[W].DOMException("Invalid element type.",x.invalidNodeTypeError);let n=this.extractContents();for(;e.firstChild;)e.removeChild(e.firstChild);this.insertNode(e),e.appendChild(n),this.selectNode(e)}toString(){let e=this.startOffset,I=this.endOffset,l="";if(this[re].node===this[We].node&&this[re].node[se]===D.textNode)return this[re].node.data.slice(e,I);this[re].node[se]===D.textNode&&(l+=this[re].node.data.slice(e));let n=uI.nextDescendantNode(this[We].node),c=this[re].node;for(;c&&c!==n;)c[se]===D.textNode&&nl.isContained(c,this)&&(l+=c.data),c=uI.following(c);return this[We].node[se]===D.textNode&&(l+=this[We].node.data.slice(0,I)),l}};G();G();var jY=class extends tt{id="";startTime=0;endTime=0;pauseOnExit=!1;[Pw]=null;onenter=null;onexit=null;constructor(e){if(super(),e!==V)throw new TypeError("Illegal constructor");if(!this[W])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get track(){return this[Pw]}};var MH=class extends jY{region=null;vertical="";snapToLines=!0;line=0;lineAlign="";position="auto";positionAlign="auto";size=100;align="";text="";constructor(e,I,l){super(V);let n=this[W],c=0;if(e!==void 0&&c++,I!==void 0&&c++,l!==void 0&&c++,c<3)throw new n.TypeError(`Failed to construct 'VTTCue': 3 arguments required, but only ${c} present.`);if(e=Number(e),I=Number(I),isNaN(e)||isNaN(I))throw new n.TypeError("Failed to construct 'VTTCue': The provided double value is non-finite.");this.startTime=e,this.endTime=I,this.text=String(l)}getCueAsHTML(){let e=this[W],I=e.document.createDocumentFragment();return I.appendChild(e.document.createTextNode(this.text)),I}};G();var TH=class extends tt{[EG]=kh.subtitles;[zZ]="";[Cy]="";[jL]="";[Bl]="disabled";[vy]=new iu(V);[Dde]=new iu(V);oncuechange=null;constructor(e){if(super(),e!==V)throw new TypeError("Illegal constructor");if(!this[W])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get kind(){return this[EG]}get label(){return this[zZ]}get language(){return this[Cy]}get id(){return this[jL]}get mode(){return this[Bl]}set mode(e){e!=="disabled"&&e!=="showing"||(this[Bl]=e)}get cues(){return this[Bl]==="disabled"?null:this[vy]}get activeCues(){return this[Bl]==="disabled"?null:this[Dde]}addCue(e){this[vy].includes(e)||(e[Pw]=this,this[vy].push(e))}removeCue(e){let I=this[vy].indexOf(e);I!==-1&&(e[Pw]=null,this[vy].splice(I,1))}};G();var jH=class t extends tt{[Ye]=[];onaddtrack=null;onchange=null;onremovetrack=null;constructor(e,I){if(super(),e!==V)throw new TypeError("Illegal constructor");this[Ye]=I;let l=new Zl(this,[t,tt]);return new Proxy(this,{get:(n,c)=>{if(c==="length")return I.length;if(c in n||typeof c=="symbol")return l.bind(c),n[c];let a=Number(c);if(!isNaN(a))return I[a]},set(n,c,a){if(l.bind(c),typeof c=="symbol")return n[c]=a,!0;let s=Number(c);return isNaN(s)&&(n[c]=a),!0},deleteProperty(n,c){if(typeof c=="symbol")return delete n[c],!0;let a=Number(c);return isNaN(a)&&delete n[c],!0},ownKeys(){return Object.keys(I)},has(n,c){if(c in n)return!0;if(typeof c=="symbol")return!1;let a=Number(c);return!isNaN(a)&&a>=0&&a<I.length},defineProperty(n,c,a){return l.preventBinding(c),c in n?(Object.defineProperty(n,c,a),!0):!1},getOwnPropertyDescriptor(n,c){if(c in n||typeof c=="symbol")return;let a=Number(c);if(!isNaN(a)&&I[a])return{value:I[a],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[Ye].length}get[Symbol.toStringTag](){return"TextTrackList"}toLocaleString(){return"[object TextTrackList]"}toString(){return"[object TextTrackList]"}[Symbol.iterator](){return this[Ye][Symbol.iterator]()}getTrackById(e){for(let I of this[Ye])if(I.id===e)return I;return null}};G();var DH=class extends tt{[Kde]="disconnected";onconnecting=null;onconnect=null;ondisconnect=null;get state(){return this[Kde]}async watchAvailability(){}cancelWatchAvailability(){}prompt(){}};G();var Lze=rn(Jze(),1);G();var Bie;(function(t){t[t.empty=0]="empty",t[t.loading=1]="loading",t[t.done=2]="done"})(Bie||(Bie={}));var mu=Bie;G();var zie;(function(t){t.buffer="buffer",t.binaryString="binaryString",t.dataURL="dataURL",t.text="text"})(zie||(zie={}));var hu=zie;G();var Uie;(function(t){t.abort="abort",t.error="error",t.load="load",t.loadstart="loadstart",t.loadend="loadend",t.progress="progress"})(Uie||(Uie={}));var p0=Uie;import{Buffer as S4I}from"buffer";var KH=class extends tt{error=null;result=null;readyState=mu.empty;onabort=null;onerror=null;onload=null;onloadstart=null;onloadend=null;onprogress=null;#e=!1;#I=null;#t=null;constructor(){if(super(),!this[W])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}readAsArrayBuffer(e){if(!(e instanceof sl))throw new this[W].TypeError("Failed to execute 'readAsArrayBuffer' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#l(e,hu.buffer)}readAsBinaryString(e){if(!(e instanceof sl))throw new this[W].TypeError("Failed to execute 'readAsBinaryString' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#l(e,hu.binaryString)}readAsDataURL(e){if(!(e instanceof sl))throw new this[W].TypeError("Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#l(e,hu.dataURL)}readAsText(e,I=null){if(!(e instanceof sl))throw new this[W].TypeError("Failed to execute 'readAsText' on 'FileReader': parameter 1 is not of type 'Blob'.");this.#l(e,hu.text,I||"UTF-8")}abort(){let e=this[W];if(this.#I&&e.clearTimeout(this.#I),this.#t&&e.clearTimeout(this.#t),this.readyState===mu.empty||this.readyState===mu.done){this.result=null;return}this.readyState===mu.loading&&(this.readyState=mu.done,this.result=null),this.#e=!0,this.dispatchEvent(new fr(p0.abort)),this.dispatchEvent(new fr(p0.loadend))}#l(e,I,l=null){let n=this[W];if(this.readyState===mu.loading)throw new n.DOMException("The object is in an invalid state.",x.invalidStateError);this.readyState=mu.loading,this.#I=n.setTimeout(()=>{if(this.#e){this.#e=!1;return}this.dispatchEvent(new fr(p0.loadstart));let c=e[$I];c||(c=S4I.alloc(0)),this.dispatchEvent(new fr(p0.loadstart,{lengthComputable:!isNaN(e.size),total:e.size,loaded:c.length})),this.#t=n.setTimeout(()=>{if(this.#e){this.#e=!1;return}switch(I){default:case hu.buffer:{this.result=new Uint8Array(c).buffer;break}case hu.binaryString:{this.result=c.toString("binary");break}case hu.dataURL:{let a=Lze.default.parse(e.type)||"application/octet-stream";this.result=`data:${a};base64,${c.toString("base64")}`;break}case hu.text:{this.result=new TextDecoder(l||"UTF-8").decode(c);break}}this.readyState=mu.done,this.dispatchEvent(new fr(p0.load)),this.dispatchEvent(new fr(p0.loadend))})})}};G();import O4I from"crypto";var M4I={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}},T4I={deviceId:"",frameRate:60,resizeMode:"none"},KY=class extends tt{contentHint="";enabled=!0;id=O4I.randomUUID();muted=!1;readyState="live";label="";[zZ]="";[EG]="video";[Dw]={};[cb]=JSON.parse(JSON.stringify(M4I));[lY]=JSON.parse(JSON.stringify(T4I));onended=null;onmute=null;onunmute=null;constructor(e){if(super(),e!==V)throw new TypeError("Illegal constructor");if(!this[W])throw new TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get kind(){return this[EG]}async applyConstraints(e){this.#e(this[Dw],e)}getConstraints(){return this[Dw]}getCapabilities(){return this[cb]}getSettings(){return this[lY]}clone(){let e=new this.constructor(V);return e[EG]=this[EG],e[Dw]=this[Dw],e[cb]=this[cb],e[lY]=this[lY],e.contentHint=this.contentHint,e.enabled=this.enabled,e.label=this.label,e.muted=this.muted,e.readyState=this.readyState,e}stop(){this.readyState="ended"}#e(e,I){for(let l in I)I[l]!==null&&typeof I[l]=="object"&&!Array.isArray(I[l])?(typeof e[l]!="object"&&(e[l]={}),this.#e(e[l],I[l])):e[l]=I[l]}};G();var Dk=class extends KY{[DL];constructor(e,I){super(e),this[DL]=I}get canvas(){return this[DL]}requestFrame(){}clone(){let e=super.clone();return e[DL]=this.canvas,e}};var Kk=class{static extendClasses(e){class I extends Ur{}I.prototype[W]=e,e.Document=I;class l extends XH{}l.prototype[W]=e,e.HTMLDocument=l;class n extends HH{}n.prototype[W]=e,e.XMLDocument=n;class c extends MY{}c.prototype[W]=e,e.DocumentFragment=c;class a extends EH{}a.prototype[W]=e,e.Text=a;class s extends vH{}s.prototype[W]=e,e.Comment=s;class r extends CH{}r.prototype[W]=e,e.Image=r;class o extends zk{}o.prototype[W]=e,e.Audio=o;class d extends JH{}d.prototype[W]=e,e.MutationObserver=d;class i extends Sk{}i.prototype[W]=e,e.MessagePort=i;class h extends kH{}h.prototype[W]=e,e.CSSStyleSheet=h;class p extends It{}e.DOMException=p;class Z extends HY{}Z.prototype[W]=e,e.Request=Z;class u extends xr{}u.prototype[W]=e,u[W]=e,e.Response=u;class N extends tt{}N.prototype[W]=e,e.EventTarget=N;class Y extends Ok{}Y.prototype[W]=e,e.XMLHttpRequestUpload=Y;class y extends bu{}y.prototype[W]=e,e.XMLHttpRequestEventTarget=y;class Q extends fH{}Q.prototype[W]=e,e.AbortController=Q;class A extends xH{}A.prototype[W]=e,A[W]=e,e.AbortSignal=A;class w extends wY{}w.prototype[W]=e,e.FormData=w;class f extends BH{}f.prototype[W]=e,e.PermissionStatus=f;class J extends Mk{}J.prototype[W]=e,e.XMLHttpRequest=J;class H extends SH{}H.prototype[W]=e,e.DOMParser=H;class v extends OH{}v.prototype[W]=e,e.Range=v;class U extends MH{}U.prototype[W]=e,e.VTTCue=U;class O extends TH{}O.prototype[W]=e,e.TextTrack=O;class ce extends jH{}ce.prototype[W]=e,e.TextTrackList=ce;class Fe extends jY{}Fe.prototype[W]=e,e.TextTrackCue=Fe;class ye extends DH{}ye.prototype[W]=e,e.RemotePlayback=ye;class Xe extends KH{}Xe.prototype[W]=e,e.FileReader=Xe;class He extends LY{}He.prototype[W]=e,e.MediaStream=He;class ie extends KY{}ie.prototype[W]=e,e.MediaStreamTrack=ie;class Ze extends Dk{}Ze.prototype[W]=e,e.CanvasCaptureMediaStreamTrack=Ze;class II extends Kl{}II.prototype[W]=e,e.URL=II}};G();G();G();G();G();G();var Pk=class{[P]=0;[q]=0;[ss]=0;[Jy]=1;constructor(e,I,l,n){this[P]=e!=null?Number(e):0,this[q]=I!=null?Number(I):0,this[ss]=l!=null?Number(l):0,this[Jy]=n!=null?Number(n):1}get x(){return this[P]}get y(){return this[q]}get z(){return this[ss]}get w(){return this[Jy]}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 Z0=class extends Pk{set x(e){this[P]=e}get x(){return this[P]}set y(e){this[q]=e}get y(){return this[q]}set z(e){this[ss]=e}get z(){return this[ss]}set w(e){this[Jy]=e}get w(){return this[Jy]}};var PH={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},j4I=/([a-zA-Z0-9]+)\(([^)]+)\)/gm,D4I=/[\s,]+/,u0=class t{[MI]=1;[KI]=0;[At]=0;[wt]=0;[TI]=0;[PI]=1;[Xt]=0;[Ht]=0;[ot]=0;[Nt]=0;[Yt]=1;[dt]=0;[jI]=0;[qI]=0;[Vt]=0;[Rt]=1;constructor(e){e&&this[qw](e)}get a(){return this[MI]}get b(){return this[KI]}get c(){return this[TI]}get d(){return this[PI]}get e(){return this[jI]}get f(){return this[qI]}get m11(){return this[MI]}get m12(){return this[KI]}get m13(){return this[At]}get m14(){return this[wt]}get m21(){return this[TI]}get m22(){return this[PI]}get m23(){return this[Xt]}get m24(){return this[Ht]}get m31(){return this[ot]}get m32(){return this[Nt]}get m33(){return this[Yt]}get m34(){return this[dt]}get m41(){return this[jI]}get m42(){return this[qI]}get m43(){return this[Vt]}get m44(){return this[Rt]}get isIdentity(){return this[MI]===1&&this[KI]===0&&this[At]===0&&this[wt]===0&&this[TI]===0&&this[PI]===1&&this[Xt]===0&&this[Ht]===0&&this[ot]===0&&this[Nt]===0&&this[Yt]===1&&this[dt]===0&&this[jI]===0&&this[qI]===0&&this[Vt]===0&&this[Rt]===1}get is2D(){return this[ot]===0&&this[Nt]===0&&this[Yt]===1&&this[dt]===0&&this[Vt]===0&&this[Rt]===1}toFloat32Array(e){return Float32Array.from(this[R3](e))}toFloat64Array(e){return Float64Array.from(this[R3](e))}toString(){let e=this.is2D,I=this[R3](e).join(", ");return`${e?"matrix":"matrix3d"}(${I})`}toJSON(){let{is2D:e,isIdentity:I}=this;return{m11:this[MI],m12:this[KI],m13:this[At],m14:this[wt],m21:this[TI],m22:this[PI],m23:this[Xt],m24:this[Ht],m31:this[ot],m32:this[Nt],m33:this[Yt],m34:this[dt],m41:this[jI],m42:this[qI],m43:this[Vt],m44:this[Rt],a:this[MI],b:this[KI],c:this[TI],d:this[PI],e:this[jI],f:this[qI],is2D:e,isIdentity:I}}multiply(e){let I=new this.constructor(this);return I[JG](e),I}translate(e=0,I=0,l=0){let n=new this.constructor(this);return n[CG](e,I,l),n}scale(e,I,l=1,n=0,c=0,a=0){let s=new this.constructor(this);return s[Wh](e,I,l,n,c,a),s}scale3d(e=1,I=0,l=0,n=0){let c=new this.constructor(this);return c[y3](e,I,l,n),c}scaleNonUniform(e=1,I=1){let l=new this.constructor(this);return l[F3](e,I),l}rotateAxisAngle(e=0,I=0,l=0,n=0){let c=new this.constructor(this);return c[OZ](e,I,l,n),c}rotate(e=0,I,l){let n=new this.constructor(this);return n[SZ](e,I,l),n}rotateFromVector(e=0,I=0){let l=new this.constructor(this);return l[ak](e,I),l}skewX(e){let I=new this.constructor(this);return I[ky](e),I}skewY(e){let I=new this.constructor(this);return I[fy](e),I}flipX(){let e=new this.constructor(this);return e[sk](),e}flipY(){let e=new this.constructor(this);return e[rk](),e}inverse(){let e=new this.constructor(this);return e[Gk](),e}transformPoint(e){let I=e.x??0,l=e.y??0,n=e.z??0,c=e.w??1,a=this[MI]*I+this[TI]*l+this[ot]*n+this[jI]*c,s=this[KI]*I+this[PI]*l+this[Nt]*n+this[qI]*c,r=this[At]*I+this[Xt]*l+this[Yt]*n+this[Vt]*c,o=this[wt]*I+this[Ht]*l+this[dt]*n+this[Rt]*c;return new Z0(a,s,r,o)}[qw](e){let I=null;if(typeof e=="string"&&e.length&&e!=="none")I=this.constructor[Ly](e);else if(Array.isArray(e)||e instanceof Float64Array||e instanceof Float32Array)I=this.constructor[vG](e);else if(typeof e=="object")I=this.constructor.fromMatrix(e);else return;this[MI]=I[MI],this[KI]=I[KI],this[At]=I[At],this[wt]=I[wt],this[TI]=I[TI],this[PI]=I[PI],this[Xt]=I[Xt],this[Ht]=I[Ht],this[ot]=I[ot],this[Nt]=I[Nt],this[Yt]=I[Yt],this[dt]=I[dt],this[jI]=I[jI],this[qI]=I[qI],this[Vt]=I[Vt],this[Rt]=I[Rt]}[JG](e){let I=e;I instanceof t||(I?.m11===void 0&&I?.a!==void 0?(I=Object.assign({},PH,I),I.m11=I.a,I.m12=I.b,I.m21=I.c,I.m22=I.d,I.m41=I.e,I.m42=I.f):I=Object.assign({},PH,I));let l=this[MI]*I.m11+this[TI]*I.m12+this[ot]*I.m13+this[jI]*I.m14,n=this[MI]*I.m21+this[TI]*I.m22+this[ot]*I.m23+this[jI]*I.m24,c=this[MI]*I.m31+this[TI]*I.m32+this[ot]*I.m33+this[jI]*I.m34,a=this[MI]*I.m41+this[TI]*I.m42+this[ot]*I.m43+this[jI]*I.m44,s=this[KI]*I.m11+this[PI]*I.m12+this[Nt]*I.m13+this[qI]*I.m14,r=this[KI]*I.m21+this[PI]*I.m22+this[Nt]*I.m23+this[qI]*I.m24,o=this[KI]*I.m31+this[PI]*I.m32+this[Nt]*I.m33+this[qI]*I.m34,d=this[KI]*I.m41+this[PI]*I.m42+this[Nt]*I.m43+this[qI]*I.m44,i=this[At]*I.m11+this[Xt]*I.m12+this[Yt]*I.m13+this[Vt]*I.m14,h=this[At]*I.m21+this[Xt]*I.m22+this[Yt]*I.m23+this[Vt]*I.m24,p=this[At]*I.m31+this[Xt]*I.m32+this[Yt]*I.m33+this[Vt]*I.m34,Z=this[At]*I.m41+this[Xt]*I.m42+this[Yt]*I.m43+this[Vt]*I.m44,u=this[wt]*I.m11+this[Ht]*I.m12+this[dt]*I.m13+this[Rt]*I.m14,N=this[wt]*I.m21+this[Ht]*I.m22+this[dt]*I.m23+this[Rt]*I.m24,Y=this[wt]*I.m31+this[Ht]*I.m32+this[dt]*I.m33+this[Rt]*I.m34,y=this[wt]*I.m41+this[Ht]*I.m42+this[dt]*I.m43+this[Rt]*I.m44;this[MI]=l,this[KI]=s,this[At]=i,this[wt]=u,this[TI]=n,this[PI]=r,this[Xt]=h,this[Ht]=N,this[ot]=c,this[Nt]=o,this[Yt]=p,this[dt]=Y,this[jI]=a,this[qI]=d,this[Vt]=Z,this[Rt]=y}[CG](e=0,I=0,l=0){let n=this.constructor[vG]([1,0,0,0,0,1,0,0,0,0,1,0,e,I,l,1]);this[JG](n)}[Wh](e,I,l=1,n=0,c=0,a=0){e=e===void 0?1:Number(e),I=I===void 0?e:Number(I),(n!==0||c!==0||a!==0)&&this[CG](n,c,a),(e!==1||I!==1||l!==1)&&this[JG](this.constructor[vG]([e,0,0,0,0,I,0,0,0,0,l,0,0,0,0,1])),(n!==0||c!==0||a!==0)&&this[CG](-n,-c,-a)}[y3](e=1,I=0,l=0,n=0){(I!==0||l!==0||n!==0)&&this[CG](I,l,n),e!==1&&this[JG](this.constructor[vG]([e,0,0,0,0,e,0,0,0,0,e,0,0,0,0,1])),(I!==0||l!==0||n!==0)&&this[CG](-I,-l,-n)}[F3](e=1,I=1){e===1&&I===1||this[JG](this.constructor[vG]([e,0,0,0,0,I,0,0,0,0,1,0,0,0,0,1]))}[OZ](e=0,I=0,l=0,n=0){if(e=Number(e),I=Number(I),l=Number(l),n=Number(n),isNaN(e)||isNaN(I)||isNaN(l)||isNaN(n))throw new TypeError("Failed to execute 'rotateAxisAngleSelf' on 'DOMMatrix': The arguments must be numbers.");let c=Math.hypot(e,I,l);if(c===0)return;c!==1&&(e/=c,I/=c,l/=c);let a=-(n*Math.PI/360),s=this.#e,r=Math.sin(a)*Math.cos(a),o=Math.sin(a)*Math.sin(a),d=s(1-2*(I*I+l*l)*o),i=s(2*(e*I*o+l*r)),h=s(2*(e*l*o-I*r)),p=s(2*(e*I*o-l*r)),Z=s(1-2*(e*e+l*l)*o),u=s(2*(I*l*o+e*r)),N=s(2*(e*l*o+I*r)),Y=s(2*(I*l*o-e*r)),y=s(1-2*(e*e+I*I)*o),Q=this.constructor[vG]([d,p,N,0,i,Z,Y,0,h,u,y,0,0,0,0,1]);this[JG](Q)}[SZ](e=0,I,l){if(I===void 0&&l===void 0&&(l=e,e=0,I=0),I===void 0&&(I=0),l===void 0&&(l=0),e=Number(e),I=Number(I),l=Number(l),isNaN(e)||isNaN(I)||isNaN(l))throw new TypeError("Failed to execute 'rotateSelf' on 'DOMMatrix': The arguments must be numbers.");l!==0&&this[OZ](0,0,1,l),I!==0&&this[OZ](0,1,0,I),e!==0&&this[OZ](1,0,0,e)}[ak](e=0,I=0){e===0&&I===0||this[SZ](Math.atan2(I,e)*180/Math.PI)}[ky](e){let I=Object.assign({},PH),l=Math.tan(e*Math.PI/180);I.m21=l,I.c=l,this[JG](I)}[fy](e){let I=Object.assign({},PH),l=Math.tan(e*Math.PI/180);I.m12=l,I.b=l,this[JG](I)}[sk](){let e=this.constructor[vG]([-1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);this[JG](e)}[rk](){let e=this.constructor[vG]([1,0,0,0,0,-1,0,0,0,0,1,0,0,0,0,1]);this[JG](e)}[Gk](){let e=this[PI]*this[Yt]*this[Rt]-this[PI]*this[dt]*this[Vt]-this[Nt]*this[Xt]*this[Rt]+this[Nt]*this[Ht]*this[Vt]+this[qI]*this[Xt]*this[dt]-this[qI]*this[Ht]*this[Yt],I=-this[KI]*this[Yt]*this[Rt]+this[KI]*this[dt]*this[Vt]+this[Nt]*this[At]*this[Rt]-this[Nt]*this[wt]*this[Vt]-this[qI]*this[At]*this[dt]+this[qI]*this[wt]*this[Yt],l=this[KI]*this[Xt]*this[Rt]-this[KI]*this[Ht]*this[Vt]-this[PI]*this[At]*this[Rt]+this[PI]*this[wt]*this[Vt]+this[qI]*this[At]*this[Ht]-this[qI]*this[wt]*this[Xt],n=-this[KI]*this[Xt]*this[dt]+this[KI]*this[Ht]*this[Yt]+this[PI]*this[At]*this[dt]-this[PI]*this[wt]*this[Yt]-this[Nt]*this[At]*this[Ht]+this[Nt]*this[wt]*this[Xt],c=this[MI]*e+this[TI]*I+this[ot]*l+this[jI]*n;if(c===0){this[MI]=NaN,this[KI]=NaN,this[At]=NaN,this[wt]=NaN,this[TI]=NaN,this[PI]=NaN,this[Xt]=NaN,this[Ht]=NaN,this[ot]=NaN,this[Nt]=NaN,this[Yt]=NaN,this[dt]=NaN,this[jI]=NaN,this[qI]=NaN,this[Vt]=NaN,this[Rt]=NaN;return}let a=-this[TI]*this[Yt]*this[Rt]+this[TI]*this[dt]*this[Vt]+this[ot]*this[Xt]*this[Rt]-this[ot]*this[Ht]*this[Vt]-this[jI]*this[Xt]*this[dt]+this[jI]*this[Ht]*this[Yt],s=this[MI]*this[Yt]*this[Rt]-this[MI]*this[dt]*this[Vt]-this[ot]*this[At]*this[Rt]+this[ot]*this[wt]*this[Vt]+this[jI]*this[At]*this[dt]-this[jI]*this[wt]*this[Yt],r=-this[MI]*this[Xt]*this[Rt]+this[MI]*this[Ht]*this[Vt]+this[TI]*this[At]*this[Rt]-this[TI]*this[wt]*this[Vt]-this[jI]*this[At]*this[Ht]+this[jI]*this[wt]*this[Xt],o=this[MI]*this[Xt]*this[dt]-this[MI]*this[Ht]*this[Yt]-this[TI]*this[At]*this[dt]+this[TI]*this[wt]*this[Yt]+this[ot]*this[At]*this[Ht]-this[ot]*this[wt]*this[Xt],d=this[TI]*this[Nt]*this[Rt]-this[TI]*this[dt]*this[qI]-this[ot]*this[PI]*this[Rt]+this[ot]*this[Ht]*this[qI]+this[jI]*this[PI]*this[dt]-this[jI]*this[Ht]*this[Nt],i=-this[MI]*this[Nt]*this[Rt]+this[MI]*this[dt]*this[qI]+this[ot]*this[KI]*this[Rt]-this[ot]*this[wt]*this[qI]-this[jI]*this[KI]*this[dt]+this[jI]*this[wt]*this[Nt],h=this[MI]*this[PI]*this[Rt]-this[MI]*this[Ht]*this[qI]-this[TI]*this[KI]*this[Rt]+this[TI]*this[wt]*this[qI]+this[jI]*this[KI]*this[Ht]-this[jI]*this[wt]*this[PI],p=-this[MI]*this[PI]*this[dt]+this[MI]*this[Ht]*this[Nt]+this[TI]*this[KI]*this[dt]-this[TI]*this[wt]*this[Nt]-this[ot]*this[KI]*this[Ht]+this[ot]*this[wt]*this[PI],Z=-this[TI]*this[Nt]*this[Vt]+this[TI]*this[Yt]*this[qI]+this[ot]*this[PI]*this[Vt]-this[ot]*this[Xt]*this[qI]-this[jI]*this[PI]*this[Yt]+this[jI]*this[Xt]*this[Nt],u=this[MI]*this[Nt]*this[Vt]-this[MI]*this[Yt]*this[qI]-this[ot]*this[KI]*this[Vt]+this[ot]*this[At]*this[qI]+this[jI]*this[KI]*this[Yt]-this[jI]*this[At]*this[Nt],N=-this[MI]*this[PI]*this[Vt]+this[MI]*this[Xt]*this[qI]+this[TI]*this[KI]*this[Vt]-this[TI]*this[At]*this[qI]-this[jI]*this[KI]*this[Xt]+this[jI]*this[At]*this[PI],Y=this[MI]*this[PI]*this[Yt]-this[MI]*this[Xt]*this[Nt]-this[TI]*this[KI]*this[Yt]+this[TI]*this[At]*this[Nt]+this[ot]*this[KI]*this[Xt]-this[ot]*this[At]*this[PI];this[MI]=e/c||0,this[KI]=I/c||0,this[At]=l/c||0,this[wt]=n/c||0,this[TI]=a/c||0,this[PI]=s/c||0,this[Xt]=r/c||0,this[Ht]=o/c||0,this[ot]=d/c||0,this[Nt]=i/c||0,this[Yt]=h/c||0,this[dt]=p/c||0,this[jI]=Z/c||0,this[qI]=u/c||0,this[Vt]=N/c||0,this[Rt]=Y/c||0}[R3](e=!1){return e?[this[MI],this[KI],this[TI],this[PI],this[jI],this[qI]]:[this[MI],this[KI],this[At],this[wt],this[TI],this[PI],this[Xt],this[Ht],this[ot],this[Nt],this[Yt],this[dt],this[jI],this[qI],this[Vt],this[Rt]]}#e(e,I=1e15){return Math.round(e*I)/I}static fromMatrix(e){return e instanceof t||(e?.m11===void 0&&e?.a!==void 0?(e=Object.assign({},PH,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({},PH,e)),this[vG]([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[vG](e)}static fromFloat64Array(e){return this[vG](e)}static[vG](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 I=new this;if(e.length===16){let[l,n,c,a,s,r,o,d,i,h,p,Z,u,N,Y,y]=e;I[MI]=l,I[KI]=n,I[At]=c,I[wt]=a,I[TI]=s,I[PI]=r,I[Xt]=o,I[Ht]=d,I[ot]=i,I[Nt]=h,I[Yt]=p,I[dt]=Z,I[jI]=u,I[qI]=N,I[Vt]=Y,I[Rt]=y}else if(e.length===6){let[l,n,c,a,s,r]=e;I[MI]=l,I[KI]=n,I[TI]=c,I[PI]=a,I[jI]=s,I[qI]=r}return I}static[Ly](e){if(typeof e!="string")throw TypeError(`Failed to execute 'setMatrixValue' on '${this.name}': Expected '${String(e)}' to be a string.`);let I=new this,l=new RegExp(j4I),n;for(;n=l.exec(e);){let c=n[1],a=n[2].split(D4I);for(let i=0,h=a.length;i<h;i++)a[i]=this[qde](a[i]);let[s,r,o,d]=a;switch(c){case"perspective":!isNaN(s)&&s!==0&&r===void 0&&o===void 0&&(I[dt]=-1/s);break;case"translate":!isNaN(s)&&o===void 0&&I[CG](s,r||0,0);break;case"translate3d":!isNaN(s)&&!isNaN(r)&&!isNaN(o)&&I[CG](s,r,o);break;case"translateX":!isNaN(s)&&r===void 0&&o===void 0&&I[CG](s);break;case"translateY":!isNaN(s)&&r===void 0&&o===void 0&&I[CG](0,s);break;case"translateZ":!isNaN(s)&&r===void 0&&o===void 0&&I[CG](0,0,s);break;case"matrix":case"matrix3d":(a.length===6||a.length===16)&&I[qw](this[vG](a));break;case"rotate":case"rotateZ":!isNaN(s)&&r===void 0&&o===void 0&&I[SZ](0,0,s);break;case"rotateX":!isNaN(s)&&r===void 0&&o===void 0&&I[SZ](s,0,0);break;case"rotateY":!isNaN(s)&&r===void 0&&o===void 0&&I[SZ](0,s,0);case"rotate3d":!isNaN(s)&&!isNaN(r)&&!isNaN(o)&&!isNaN(d)&&I[OZ](s,r,o,d);break;case"scale":!isNaN(s)&&s!==1&&o===void 0&&I[Wh](s,isNaN(r)?s:r);break;case"scale3d":!isNaN(s)&&!isNaN(r)&&!isNaN(o)&&I[Wh](s,r,o);break;case"scaleX":!isNaN(s)&&r===void 0&&o===void 0&&I[Wh](s,1,1);break;case"scaleY":!isNaN(s)&&r===void 0&&o===void 0&&I[Wh](1,s,1);break;case"scaleZ":!isNaN(s)&&r===void 0&&o===void 0&&I[Wh](1,1,s);break;case"skew":isNaN(s)||I[ky](s),isNaN(r)||I[fy](r);break;case"skewX":!isNaN(s)&&r===void 0&&I[ky](s);break;case"skewY":!isNaN(s)&&r===void 0&&I[fy](s);break;default:throw TypeError(`Failed to execute 'setMatrixValue' on '${this.name}': Unknown transform function '${n[1]}'.`)}}return I}static[qde](e){let I=parseFloat(e);switch(e.replace(I.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 I*(180/Math.PI);case"turn":return I*360;case"px":return I;case"cm":return I*37.7812;case"mm":return I*3.7781;case"in":return I*96;case"pt":return I*1.3281;case"pc":return I*16;case"Q":return I*.945;default:return I}}};var Ms=class extends u0{get a(){return this[MI]}set a(e){this[MI]=e}get b(){return this[KI]}set b(e){this[KI]=e}get c(){return this[TI]}set c(e){this[TI]=e}get d(){return this[PI]}set d(e){this[PI]=e}get e(){return this[jI]}set e(e){this[jI]=e}get f(){return this[qI]}set f(e){this[qI]=e}get m11(){return this[MI]}set m11(e){this[MI]=e}get m12(){return this[KI]}set m12(e){this[KI]=e}get m13(){return this[At]}set m13(e){this[At]=e}get m14(){return this[wt]}set m14(e){this[wt]=e}get m21(){return this[TI]}set m21(e){this[TI]=e}get m22(){return this[PI]}set m22(e){this[PI]=e}get m23(){return this[Xt]}set m23(e){this[Xt]=e}get m24(){return this[Ht]}set m24(e){this[Ht]=e}get m31(){return this[ot]}set m31(e){this[ot]=e}get m32(){return this[Nt]}set m32(e){this[Nt]=e}get m33(){return this[Yt]}set m33(e){this[Yt]=e}get m34(){return this[dt]}set m34(e){this[dt]=e}get m41(){return this[jI]}set m41(e){this[jI]=e}get m42(){return this[qI]}set m42(e){this[qI]=e}get m43(){return this[Vt]}set m43(e){this[Vt]=e}get m44(){return this[Rt]}set m44(e){this[Rt]=e}setMatrixValue(e){return this[qw](e),this}multiplySelf(e){return this[JG](e),this}translateSelf(e=0,I=0,l=0){return this[CG](e,I,l),this}scaleSelf(e,I,l=1,n=0,c=0,a=0){return this[Wh](e,I,l,n,c,a),this}scale3dSelf(e=1,I=0,l=0,n=0){return this[y3](e,I,l,n),this}scaleNonUniformSelf(e=1,I=1){return this[F3](e,I),this}rotateAxisAngleSelf(e=0,I=0,l=0,n=0){return this[OZ](e,I,l,n),this}rotateSelf(e=0,I,l){return this[SZ](e,I,l),this}rotateFromVectorSelf(e=0,I=0){return this[ak](e,I),this}skewXSelf(e){return this[ky](e),this}skewYSelf(e){return this[fy](e),this}flipXSelf(){return this[sk](),this}flipYSelf(){return this[rk](),this}invertSelf(){return this[Gk](),this}};G();var K4I=/[\t\f\n\r ,]+/,Vb=class t{[W];[M];[L];[Ve]=!1;[oe]={items:[],attributeValue:""};constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");if(this[W]=I,this[Ve]=!!l.readOnly,this[M]=l.getAttribute,this[L]=l.setAttribute,e!==V)throw new TypeError("Illegal constructor");let n=new Zl(this,[t]);return new Proxy(this,{get:(c,a)=>{if(a==="length"||a==="numberOfItems")return c[Ne]().length;if(a in c||typeof a=="symbol")return n.bind(a),c[a];let s=Number(a);if(!isNaN(s))return c[Ne]()[s]},set(c,a,s){if(n.bind(a),typeof a=="symbol")return c[a]=s,!0;let r=Number(a);return isNaN(r)&&(c[a]=s),!0},deleteProperty(c,a){if(typeof a=="symbol")return delete c[a],!0;let s=Number(a);return isNaN(s)&&delete c[a],!0},ownKeys(c){return Object.keys(c[Ne]())},has(c,a){if(a in c)return!0;if(typeof a=="symbol")return!1;let s=Number(a);return!isNaN(s)&&s>=0&&s<c[Ne]().length},defineProperty(c,a,s){return n.preventBinding(a),a in c?(Object.defineProperty(c,a,s),!0):!1},getOwnPropertyDescriptor(c,a){if(a in c||typeof a=="symbol")return;let s=Number(a),r=c[Ne]();if(!isNaN(s)&&r[s])return{value:r[s],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[Ne]().length}get numberOfItems(){return this[Ne]().length}[Symbol.iterator](){return this[Ne]().values()}clear(){this[oe].attributeValue="",this[oe].items=[],this[L]("")}initialize(e){if(this[Ve])throw new this[W].TypeError("Failed to execute 'initialize' on 'SVGStringList': The object is read-only.");if(arguments.length<1)throw new this[W].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[L](e),e}getItem(e){let I=this[Ne]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),I[e]?I[e]:null}insertItemBefore(e,I){if(this[Ve])throw new this[W].TypeError("Failed to execute 'insertItemBefore' on 'SVGStringList': The object is read-only.");if(arguments.length<2)throw new this[W].TypeError(`Failed to execute 'insertItemBefore' on 'SVGStringList': 2 arguments required, but only ${arguments.length} present.`);if(e=String(e),!e)return e;let l=this[Ne](),n=l.indexOf(e);return n!==-1&&l.splice(n,1),I<0?I=0:I>l.length&&(I=l.length),l.splice(I,0,e),this[L](l.join(" ")),e}replaceItem(e,I){if(this[Ve])throw new this[W].TypeError("Failed to execute 'replaceItem' on 'SVGStringList': The object is read-only.");if(arguments.length<2)throw new this[W].TypeError(`Failed to execute 'replaceItem' on 'SVGStringList': 2 arguments required, but only ${arguments.length} present.`);if(e=String(e),!e)return this.removeItem(I);let l=this[Ne]();I<0?I=0:I>=l.length&&(I=l.length-1);let n=l[I];return l[I]=e,this[L](l.join(" ")),n}removeItem(e){if(this[Ve])throw new this[W].TypeError("Failed to execute 'removeItem' on 'SVGStringList': The object is read-only.");if(arguments.length<1)throw new this[W].TypeError(`Failed to execute 'removeItem' on 'SVGStringList': 1 argument required, but only ${arguments.length} present.`);let I=this[Ne]();if(e=Number(e),isNaN(e)&&(e=0),e>=I.length)throw new this[W].DOMException(`Failed to execute 'removeItem' on 'SVGStringList': The index provided (${e}) is greater than the maximum bound.`,x.indexSizeError);if(e<0)throw new this[W].DOMException(`Failed to execute 'removeItem' on 'SVGStringList': The index provided (${e}) is negative.`,x.indexSizeError);let l=I[e];return I.splice(e,1),this[L](I.join(" ")),l}appendItem(e){if(this[Ve])throw new this[W].TypeError("Failed to execute 'appendItem' on 'SVGStringList': The object is read-only.");if(arguments.length<1)throw new this[W].TypeError(`Failed to execute 'appendItem' on 'SVGStringList': 1 argument required, but only ${arguments.length} present.`);if(e=String(e),!e)return e;let I=this[Ne](),l=I.indexOf(e);return l!==-1&&I.splice(l,1),I.push(e),this[L](I.join(" ")),e}[Ne](){let e=this[M]()??"",I=this[oe];if(I.attributeValue===e)return I.items;let l=[],n=e.trim();if(n)for(let c of n.split(K4I))l.includes(c)||l.push(c);return I.attributeValue=e,I.items=l,l}};G();G();G();G();var P4I=/([a-zA-Z0-9]+)\(([^)]+)\)/,q4I=/[\s,]+/,Uh=class t{[W];[M]=null;[L]=null;[$]=null;[Ve]=!1;constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,l&&(this[Ve]=!!l.readOnly,this[M]=l.getAttribute||null,this[L]=l.setAttribute||null)}get a(){return this[cn]().a}set a(e){if(this[Ve])return;let I=this[cn]();I.a=e,this[na](I)}get b(){return this[cn]().b}set b(e){if(this[Ve])return;let I=this[cn]();I.b=e,this[na](I)}get c(){return this[cn]().c}set c(e){if(this[Ve])return;let I=this[cn]();I.c=e,this[na](I)}get d(){return this[cn]().d}set d(e){if(this[Ve])return;let I=this[cn]();I.d=e,this[na](I)}get e(){return this[cn]().e}set e(e){if(this[Ve])return;let I=this[cn]();I.e=e,this[na](I)}get f(){return this[cn]().f}set f(e){if(this[Ve])return;let I=this[cn]();I.f=e,this[na](I)}multiply(e){if(!(e instanceof t))throw new this[W].TypeError("Failed to execute 'multiply' on 'SVGMatrix': parameter 1 is not of type 'SVGMatrix'.");let I=this[cn](),l=new t(V,this[W]);return I.multiplySelf(e[cn]()),l[na](I),l}translate(e=0,I=0){let l=this[cn](),n=new t(V,this[W]);return l.translateSelf(e,I),n[na](l),n}scale(e){let I=this[cn](),l=new t(V,this[W]);return I.scaleSelf(e),l[na](I),l}scaleNonUniform(e=1,I=1){let l=this[cn](),n=new t(V,this[W]);return l.scaleNonUniformSelf(e,I),n[na](l),n}rotate(e){let I=this[cn](),l=new t(V,this[W]);return I.rotateSelf(e),l[na](I),l}rotateFromVector(e=0,I=0){let l=this[cn](),n=new t(V,this[W]);return l.rotateFromVectorSelf(e,I),n[na](l),n}skewX(e){let I=this[cn](),l=new t(V,this[W]);return I.skewXSelf(e),l[na](I),l}skewY(e){let I=this[cn](),l=new t(V,this[W]);return I.skewYSelf(e),l[na](I),l}flipX(){let e=this[cn](),I=new t(V,this[W]);return e.flipXSelf(),I[na](e),I}flipY(){let e=this[cn](),I=new t(V,this[W]);return e.flipYSelf(),I[na](e),I}inverse(){let e=this[cn](),I=new t(V,this[W]);return e.invertSelf(),I[na](e),I}[cn](){let e=this[M]?this[M]():this[$];if(!e)return new Ms;let I=e.match(P4I);if(!I)return new Ms;let l=[];for(let n of I[2].trim().split(q4I)){let c=Number(n);if(isNaN(c))throw new this[W].TypeError(`Failed to parse transform attribute: Expected number, but got "${n}" in "${e}".`);l.push(c)}switch(I[1]){case"matrix":if(l.length!==6)throw new this[W].TypeError(`Failed to parse transform attribute: Expected 6 parameters in "${e}".`);return Ms[Ly](e);case"scale":case"translate":if(l.length!==1&&l.length!==2)throw new this[W].TypeError(`Failed to parse transform attribute: Expected 1 or 2 parameters in "${e}".`);return Ms[Ly](e);case"skewY":case"skewX":if(l.length!==1)throw new this[W].TypeError(`Failed to parse transform attribute: Expected 1 parameter in "${e}".`);return Ms[Ly](e);case"rotate":let n=new Ms;if(l.length!==1&&l.length!==3)throw new this[W].TypeError(`Failed to parse transform attribute: Expected 1 or 3 parameters in "${e}".`);let[c,a,s]=l;(a||s)&&n.translateSelf(a,s);let r=c*Math.PI/180;return n.multiplySelf(new Ms([Math.cos(r),Math.sin(r),-Math.sin(r),Math.cos(r),0,0])),(a||s)&&n.translateSelf(-a,-s),n;default:throw new this[W].TypeError(`Failed to parse transform attribute: Unknown transformation "${e}".`)}}[na](e){this[$]=e.toString().replace(/, /g," "),this[L]&&this[L](this[$])}};G();var Sie;(function(t){t[t.unknown=0]="unknown",t[t.matrix=1]="matrix",t[t.translate=2]="translate",t[t.scale=3]="scale",t[t.rotate=4]="rotate",t[t.skewX=5]="skewX",t[t.skewY=6]="skewY"})(Sie||(Sie={}));var Or=Sie;var kze=/([a-zA-Z0-9]+)\(([^)]+)\)/,_4I=/[\s,]+/,zG=class{static SVG_TRANSFORM_UNKNOWN=Or.unknown;static SVG_TRANSFORM_MATRIX=Or.matrix;static SVG_TRANSFORM_TRANSLATE=Or.translate;static SVG_TRANSFORM_SCALE=Or.scale;static SVG_TRANSFORM_ROTATE=Or.rotate;static SVG_TRANSFORM_SKEWX=Or.skewX;static SVG_TRANSFORM_SKEWY=Or.skewY;[W];[M]=null;[L]=null;[$]=null;[Ve]=!1;[MZ]=null;constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,l&&(this[Ve]=!!l.readOnly,this[M]=l.getAttribute||null,this[L]=l.setAttribute||null)}get type(){let I=(this[M]?this[M]():this[$])?.match(kze);if(!I)return Or.unknown;switch(I[1]){case"matrix":return Or.matrix;case"translate":return Or.translate;case"rotate":return Or.rotate;case"scale":return Or.scale;case"skewX":return Or.skewX;case"skewY":return Or.skewY}return 0}get angle(){let I=(this[M]?this[M]():this[$])?.match(kze);if(!I)return 0;let l=parseFloat(I[2].trim().split(_4I)[0]);if(isNaN(l))return 0;switch(I[1]){case"rotate":case"skewX":case"skewY":return l}return 0}get matrix(){return this[MZ]||(this[MZ]=new Uh(V,this[W],{readOnly:this[Ve],getAttribute:()=>this[M]?this[M]():this[$],setAttribute:e=>{if(this[$]=e,this[L]){this[L](e);return}}})),this[MZ]}setMatrix(e){if(!(e instanceof Uh))throw new TypeError('Failed to set the "matrix" property on "SVGTransform": The provided value is not of type "SVGMatrix".');this[Ve]||(this[MZ]&&(this[MZ][M]=null,this[MZ][L]=null),e[M]=()=>this[M]?this[M]():this[$],e[L]=I=>{if(this[$]=I,this[L]){this[L](I);return}},this[MZ]=e,e[$]!==this[$]&&(this[$]=e[$],this[L]&&this[L](this[$]||"")))}setTranslate(e,I){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),I=Number(I),isNaN(e)||isNaN(I))throw new TypeError("Failed to execute 'setTranslate' on 'SVGTransform': The provided float value is non-finite.");this[Ve]||(this[$]=`translate(${e} ${I})`,this[L]&&this[L](this[$]))}setScale(e,I){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),I=Number(I),isNaN(e)||isNaN(I))throw new TypeError("Failed to execute 'setScale' on 'SVGTransform': The provided float value is non-finite.");this[Ve]||(this[$]=`scale(${e} ${I})`,this[L]&&this[L](this[$]))}setRotate(e,I,l){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),I=Number(I),l=Number(l),isNaN(e)||isNaN(I)||isNaN(l))throw new TypeError("Failed to execute 'setRotate' on 'SVGTransform': The provided float value is non-finite.");this[Ve]||(this[$]=`rotate(${e} ${I} ${l})`,this[L]&&this[L](this[$]))}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[Ve]||(this[$]=`skewX(${e})`,this[L]&&this[L](this[$]))}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[Ve]||(this[$]=`skewY(${e})`,this[L]&&this[L](this[$]))}};var $4I=/([a-zA-Z0-9]+)\(([^)]+)\)/gm,pu="matrix(1 0 0 1 0 0)",PY=class t{[W];[M];[L];[Ve]=!1;[oe]={items:[],attributeValue:""};constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,this[Ve]=!!l.readOnly,this[M]=l.getAttribute,this[L]=l.setAttribute;let n=new Zl(this,[t]);return new Proxy(this,{get:(c,a)=>{if(a==="length"||a==="numberOfItems")return c[Ne]().length;if(a in c||typeof a=="symbol")return n.bind(a),c[a];let s=Number(a);if(!isNaN(s))return c[Ne]()[s]},set(c,a,s){if(n.bind(a),typeof a=="symbol")return c[a]=s,!0;let r=Number(a);return isNaN(r)&&(c[a]=s),!0},deleteProperty(c,a){if(typeof a=="symbol")return delete c[a],!0;let s=Number(a);return isNaN(s)&&delete c[a],!0},ownKeys(c){return Object.keys(c[Ne]())},has(c,a){if(a in c)return!0;if(typeof a=="symbol")return!1;let s=Number(a);return!isNaN(s)&&s>=0&&s<c[Ne]().length},defineProperty(c,a,s){return n.preventBinding(a),a in c?(Object.defineProperty(c,a,s),!0):!1},getOwnPropertyDescriptor(c,a){if(a in c||typeof a=="symbol")return;let s=Number(a),r=c[Ne]();if(!isNaN(s)&&r[s])return{value:r[s],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[Ne]().length}get numberOfItems(){return this[Ne]().length}[Symbol.iterator](){return this[Ne]().values()}clear(){if(this[Ve])throw new this[W].TypeError("Failed to execute 'clear' on 'SVGTransformList': The object is read-only.");for(let e of this[oe].items)e[M]=null,e[L]=null;this[oe].items=[],this[oe].attributeValue="",this[L]("")}initialize(e){if(this[Ve])throw new this[W].TypeError("Failed to execute 'initialize' on 'SVGTransformList': The object is read-only.");if(arguments.length<1)throw new this[W].TypeError(`Failed to execute 'initialize' on 'SVGTransformList': 1 arguments required, but only ${arguments.length} present.`);if(!(e instanceof zG))throw new this[W].TypeError("Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");for(let I of this[oe].items)I[M]=null,I[L]=null;return e[M]=()=>e[$],e[L]=()=>{this[oe].attributeValue=this[Ne]().map(I=>I[$]||pu).join(" "),this[L](this[oe].attributeValue)},this[oe].items=[e],this[oe].attributeValue=e[$],this[L](e[$]||""),e}getItem(e){let I=this[Ne]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),I[e]?I[e]:null}insertItemBefore(e,I){if(this[Ve])throw new this[W].TypeError("Failed to execute 'insertItemBefore' on 'SVGTransformList': The object is read-only.");if(arguments.length<2)throw new this[W].TypeError(`Failed to execute 'insertItemBefore' on 'SVGTransformList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof zG))throw new this[W].TypeError("Failed to execute 'insertItemBefore' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let l=this[Ne](),n=l.indexOf(e);return n!==-1&&l.splice(n,1),I<0?I=0:I>l.length&&(I=l.length),l.splice(I,0,e),e[M]=()=>e[$],e[L]=()=>{this[oe].attributeValue=this[Ne]().map(c=>c[$]||pu).join(" "),this[L](this[oe].attributeValue)},this[oe].attributeValue=l.map(c=>c[$]||pu).join(" "),this[L](this[oe].attributeValue),e}replaceItem(e,I){if(this[Ve])throw new this[W].TypeError("Failed to execute 'replaceItem' on 'SVGTransformList': The object is read-only.");if(arguments.length<2)throw new this[W].TypeError(`Failed to execute 'replaceItem' on 'SVGTransformList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof zG))throw new this[W].TypeError("Failed to execute 'replaceItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let l=this[Ne](),n=l.indexOf(e);if(n===I)return e;n!==-1&&l.splice(n,1),I<0?I=0:I>=l.length&&(I=l.length-1),l[I]&&(l[I][M]=null,l[I][L]=null);let c=l[I];return l[I]=e,e[M]=()=>e[$],e[L]=()=>{this[oe].attributeValue=this[Ne]().map(a=>a[$]||pu).join(" "),this[L](this[oe].attributeValue)},this[oe].attributeValue=l.map(a=>a[$]||pu).join(" "),this[L](this[oe].attributeValue),c}removeItem(e){if(this[Ve])throw new this[W].TypeError("Failed to execute 'removeItem' on 'SVGTransformList': The object is read-only.");if(arguments.length<1)throw new this[W].TypeError(`Failed to execute 'removeItem' on 'SVGTransformList': 1 argument required, but only ${arguments.length} present.`);let I=this[Ne]();if(e=Number(e),isNaN(e)&&(e=0),e>=I.length)throw new this[W].DOMException(`Failed to execute 'removeItem' on 'SVGTransformList': The index provided (${e}) is greater than the maximum bound.`,x.indexSizeError);if(e<0)throw new this[W].DOMException(`Failed to execute 'removeItem' on 'SVGTransformList': The index provided (${e}) is negative.`,x.indexSizeError);let l=I[e];return l&&(l[M]=null,l[L]=null),I.splice(e,1),this[oe].attributeValue=I.map(n=>n[$]||pu).join(" "),this[L](this[oe].attributeValue),l}appendItem(e){if(this[Ve])throw new this[W].TypeError("Failed to execute 'appendItem' on 'SVGTransformList': The object is read-only.");if(arguments.length<1)throw new this[W].TypeError(`Failed to execute 'appendItem' on 'SVGTransformList': 1 argument required, but only ${arguments.length} present.`);if(!(e instanceof zG))throw new this[W].TypeError("Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.");let I=this[Ne](),l=I.indexOf(e);return l!==-1&&I.splice(l,1),I.push(e),e[M]=()=>e[$],e[L]=()=>{this[oe].attributeValue=this[Ne]().map(n=>n[$]||pu).join(" "),this[L](this[oe].attributeValue)},this[oe].attributeValue=I.map(n=>n[$]||pu).join(" "),this[L](this[oe].attributeValue),e}[Ne](){let e=this[M]()??"",I=this[oe];if(I.attributeValue===e)return I.items;if(I.items.length)for(let c of I.items)c[M]=null,c[L]=null;let l=[],n=e.trim();if(n){let c=new RegExp($4I),a;for(;a=c.exec(n);){let s=new zG(V,this[W],{readOnly:this[Ve],getAttribute:()=>s[$],setAttribute:()=>{this[oe].attributeValue=this[Ne]().map(r=>r[$]||pu).join(" "),this[L](this[oe].attributeValue)}});s[$]=`${a[1]}(${a[2]})`,l.push(s)}}return I.attributeValue=e,I.items=l,l}};var Rb=class{[W];[M];[L];[Tt]=null;[jt]=null;constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,this[M]=l.getAttribute,this[L]=l.setAttribute}get animVal(){return this[jt]||(this[jt]=new PY(V,this[W],{readOnly:!0,getAttribute:this[M],setAttribute:()=>{}})),this[jt]}set animVal(e){}get baseVal(){return this[Tt]||(this[Tt]=new PY(V,this[W],{getAttribute:this[M],setAttribute:this[L]})),this[Tt]}set baseVal(e){}};var Al=class extends ke{[ah]=null;[sh]=null;[$L]=null;get oncopy(){return E.getEventListener(this,"oncopy")}set oncopy(e){this[F].set("oncopy",e)}get oncut(){return E.getEventListener(this,"oncut")}set oncut(e){this[F].set("oncut",e)}get onpaste(){return E.getEventListener(this,"onpaste")}set onpaste(e){this[F].set("onpaste",e)}get requiredExtensions(){return this[ah]||(this[ah]=new Vb(V,this[W],{getAttribute:()=>this.getAttribute("requiredExtensions"),setAttribute:e=>this.setAttribute("requiredExtensions",e)})),this[ah]}get systemLanguage(){return this[sh]||(this[sh]=new Vb(V,this[W],{getAttribute:()=>this.getAttribute("systemLanguage"),setAttribute:e=>this.setAttribute("systemLanguage",e)})),this[sh]}get transform(){return this[$L]||(this[$L]=new Rb(V,this[W],{getAttribute:()=>this.getAttribute("transform"),setAttribute:e=>this.setAttribute("transform",e)})),this[$L]}getBBox(){return new Kd}getCTM(){return new Ms}getScreenCTM(){return new Ms}};G();var qd=class{[W];[M]=null;[L]=null;[$]=null;[Ve]=!1;constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,l&&(this[Ve]=!!l.readOnly,this[M]=l.getAttribute||null,this[L]=l.setAttribute||null)}get x(){let e=this[M]?this[M]():this[$];if(!e)return 0;let I=e.split(/\s+/),l=Number(I[0]);return isNaN(l)?0:l}set x(e){if(this[Ve])throw new this[W].TypeError("Failed to set the 'x' property on 'SVGRect': The object is read-only.");this[$]=`${String(typeof e=="number"?e:parseFloat(e))} ${this.y} ${this.width} ${this.height}`,this[L]&&this[L](this[$])}get y(){let e=this[M]?this[M]():this[$];if(!e)return 0;let I=e.split(/\s+/),l=Number(I[1]);return isNaN(l)?0:l}set y(e){if(this[Ve])throw new this[W].TypeError("Failed to set the 'y' property on 'SVGRect': The object is read-only.");this[$]=`${this.x} ${String(typeof e=="number"?e:parseFloat(e))} ${this.width} ${this.height}`,this[L]&&this[L](this[$])}get width(){let e=this[M]?this[M]():this[$];if(!e)return 0;let I=e.split(/\s+/),l=Number(I[2]);return isNaN(l)?0:l}set width(e){if(this[Ve])throw new this[W].TypeError("Failed to set the 'width' property on 'SVGRect': The object is read-only.");this[$]=`${this.x} ${this.y} ${String(typeof e=="number"?e:parseFloat(e))} ${this.height}`,this[L]&&this[L](this[$])}get height(){let e=this[M]?this[M]():this[$];if(!e)return 0;let I=e.split(/\s+/),l=Number(I[3]);return isNaN(l)?0:l}set height(e){if(this[Ve])throw new this[W].TypeError("Failed to set the 'height' property on 'SVGRect': The object is read-only.");this[$]=`${this.x} ${this.y} ${this.width} ${String(typeof e=="number"?e:parseFloat(e))}`,this[L]&&this[L](this[$])}};G();var fze=/[\t\f\n\r, ]+/,gc=class{[W];[M]=null;[L]=null;[$]=null;[Ve]=!1;constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,l&&(this[Ve]=!!l.readOnly,this[M]=l.getAttribute||null,this[L]=l.setAttribute||null)}get x(){let I=((this[M]?this[M]():this[$])||"").split(fze);return I[0]?parseFloat(I[0]):0}set x(e){if(this[Ve])throw new this[W].TypeError("Failed to set the 'x' property on 'SVGPoint': The object is read-only.");this[$]=`${e} ${this.y}`,this[L]&&this[L](this[$])}get y(){let I=((this[M]?this[M]():this[$])||"").split(fze);return I[1]?parseFloat(I[1]):0}set y(e){if(this[Ve])throw new this[W].TypeError("Failed to set the 'y' property on 'SVGPoint': The object is read-only.");this[$]=`${this.x} ${e}`,this[L]&&this[L](this[$])}};G();G();var Oie;(function(t){t[t.unknown=0]="unknown",t[t.number=1]="number",t[t.percentage=2]="percentage",t[t.ems=3]="ems",t[t.exs=4]="exs",t[t.px=5]="px",t[t.cm=6]="cm",t[t.mm=7]="mm",t[t.in=8]="in",t[t.pt=9]="pt",t[t.pc=10]="pc"})(Oie||(Oie={}));var yI=Oie;var xze=/^(\d+|\d+\.\d+)(px|em|ex|cm|mm|in|pt|pc|%|)$/,_d=class{static SVG_LENGTHTYPE_UNKNOWN=yI.unknown;static SVG_LENGTHTYPE_NUMBER=yI.number;static SVG_LENGTHTYPE_PERCENTAGE=yI.percentage;static SVG_LENGTHTYPE_EMS=yI.ems;static SVG_LENGTHTYPE_EXS=yI.exs;static SVG_LENGTHTYPE_PX=yI.px;static SVG_LENGTHTYPE_CM=yI.cm;static SVG_LENGTHTYPE_MM=yI.mm;static SVG_LENGTHTYPE_IN=yI.in;static SVG_LENGTHTYPE_PT=yI.pt;static SVG_LENGTHTYPE_PC=yI.pc;[W];[M]=null;[L]=null;[$]=null;[Ve]=!1;constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,l&&(this[Ve]=!!l.readOnly,this[M]=l.getAttribute||null,this[L]=l.setAttribute||null)}get unitType(){let I=(this[M]?this[M]()||"":this[$]||"").match(xze);if(!I)return yI.unknown;if(isNaN(parseFloat(I[1])))return yI.unknown;switch(I[2]){case"":return yI.number;case"px":return yI.px;case"cm":return yI.cm;case"mm":return yI.mm;case"in":return yI.in;case"pt":return yI.pt;case"pc":return yI.pc;case"em":case"ex":case"%":throw new this[W].TypeError("Failed to execute 'value' on 'SVGLength': Could not resolve relative length.");default:return yI.unknown}}get value(){let I=(this[M]?this[M]()||"":this[$]||"").match(xze);if(!I)return 0;let l=parseFloat(I[1]);if(isNaN(l))return 0;switch(I[2]){case"":return l;case"px":return l;case"cm":return l/2.54*96;case"mm":return l/25.4*96;case"in":return l*96;case"pt":return l*72;case"pc":return l*6;case"em":case"ex":case"%":throw new this[W].TypeError("Failed to execute 'value' on 'SVGLength': Could not resolve relative length.");default:return 0}}set value(e){if(this[Ve])throw new this[W].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[W].TypeError("Failed to set the 'value' property on 'SVGLength': The provided float value is non-finite.");let I="",l=e;switch(this.unitType){case yI.number:l=e,I="";break;case yI.px:l=e,I="px";break;case yI.cm:l=e/96*2.54,I="cm";break;case yI.mm:l=e/96*25.4,I="mm";break;case yI.in:l=e/96,I="in";break;case yI.pt:l=e/72,I="pt";break;case yI.pc:l=e/6,I="pc";break;case yI.percentage:case yI.ems:case yI.exs:throw new this[W].TypeError("Failed to set the 'value' property on 'SVGLength': Could not resolve relative length.");default:break}this[$]=String(l)+I,this[L]&&this[L](this[$])}get valueAsString(){return this[M]?this[M]()||"0":this[$]||"0"}get valueInSpecifiedUnits(){let e=this.valueAsString;return parseFloat(e)||0}newValueSpecifiedUnits(e,I){if(this[Ve])throw new this[W].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': The object is read-only.");if(typeof e!="number")throw new this[W].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': parameter 1 ('unitType') is not of type 'number'.");if(I=typeof I!="number"?parseFloat(String(I)):I,isNaN(I))throw new this[W].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': The provided float value is non-finite.");let l="";switch(e){case yI.number:l="";break;case yI.px:l="px";break;case yI.cm:l="cm";break;case yI.mm:l="mm";break;case yI.in:l="in";break;case yI.pt:l="pt";break;case yI.pc:l="pc";break;case yI.ems:case yI.exs:case yI.percentage:throw new this[W].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': Could not resolve relative length.");default:break}this[$]=String(I)+l,this[L]&&this[L](this[$])}convertToSpecifiedUnits(e){if(this[Ve])throw new this[W].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': The object is read-only.");if(typeof e!="number")throw new this[W].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': parameter 1 ('unitType') is not of type 'number'.");let I=this.value,l="";switch(e){case yI.number:l="";break;case yI.px:l="px";break;case yI.cm:I=I/96*2.54,l="cm";break;case yI.mm:I=I/96*25.4,l="mm";break;case yI.in:I=I/96,l="in";break;case yI.pt:I=I/72,l="pt";break;case yI.pc:I=I/6,l="pc";break;case yI.percentage:case yI.ems:case yI.exs:throw new this[W].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': Could not resolve relative length.");default:break}this[$]=String(I)+l,this[L]&&this[L](this[$])}};G();G();var Mie;(function(t){t[t.unknown=0]="unknown",t[t.unspecified=1]="unspecified",t[t.deg=2]="deg",t[t.rad=3]="rad",t[t.grad=4]="grad"})(Mie||(Mie={}));var El=Mie;var Bze=/^(\d+|\d+\.\d+)(deg|rad|grad|turn|)$/,Sh=class{static SVG_ANGLETYPE_UNKNOWN=El.unknown;static SVG_ANGLETYPE_UNSPECIFIED=El.unspecified;static SVG_ANGLETYPE_DEG=El.deg;static SVG_ANGLETYPE_RAD=El.rad;static SVG_ANGLETYPE_GRAD=El.grad;[W];[M]=null;[L]=null;[$]="";[Ve]=!1;constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,l&&(this[Ve]=!!l.readOnly,this[M]=l.getAttribute||null,this[L]=l.setAttribute||null)}get unitType(){let I=(this[M]?this[M]():this[$])?.match(Bze);if(!I)return El.unknown;if(isNaN(parseFloat(I[1])))return El.unknown;switch(I[2]){case"":return El.unspecified;case"deg":return El.deg;case"rad":return El.rad;case"grad":return El.grad;case"turn":return El.unknown;default:return El.unspecified}}get value(){let I=(this[M]?this[M]():this[$])?.match(Bze);if(!I)return 0;let l=parseFloat(I[1]);if(isNaN(l))return 0;switch(I[2]){case"":return l;case"deg":return l;case"rad":return l*(180/Math.PI);case"grad":return l*(180/200);case"turn":return l*360;default:return l}}set value(e){if(this[Ve])throw new this[W].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[W].TypeError("Failed to set the 'value' property on 'SVGAngle': The provided float value is non-finite.");let I="",l=e;switch(this.unitType){case El.unspecified:l=e,I="";break;case El.deg:l=e,I="deg";break;case El.rad:l=e/(180/Math.PI),I="rad";break;case El.grad:l=e/(180/200),I="grad";break;case El.unknown:l=e/360,I="turn";default:break}this[$]=String(l)+I,this[L]&&this[L](this[$])}get valueAsString(){return this[M]?this[M]()||"0":this[$]||"0"}get valueInSpecifiedUnits(){let e=this.valueAsString;return parseFloat(e)||0}newValueSpecifiedUnits(e,I){if(this[Ve])throw new this[W].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': The object is read-only.");if(typeof e!="number")throw new this[W].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': parameter 1 ('unitType') is not of type 'number'.");if(I=typeof I!="number"?parseFloat(I):I,isNaN(I))throw new this[W].TypeError("Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': The provided float value is non-finite.");let l="";switch(e){case El.unspecified:l="";break;case El.deg:l="deg";break;case El.rad:l="rad";break;case El.grad:l="grad";break;case El.unknown:l="turn";break;default:break}this[$]=String(I)+l,this[L]&&this[L](this[$])}convertToSpecifiedUnits(e){if(this[Ve])throw new this[W].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGAngle': The object is read-only.");if(typeof e!="number")throw new this[W].TypeError("Failed to execute 'convertToSpecifiedUnits' on 'SVGAngle': parameter 1 ('unitType') is not of type 'number'.");let I=this.value,l="";switch(e){case El.unspecified:l="";break;case El.deg:l="deg";break;case El.rad:l="rad",I=I/(180/Math.PI);break;case El.grad:l="grad",I=I/(180/200);break;case El.unknown:l="turn",I=I/360;break;default:break}this[$]=String(I)+l,this[L]&&this[L](this[$])}};G();var $d=class{[W];[M]=null;[L]=null;[$]=null;[Ve]=!1;constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,l&&(this[Ve]=!!l.readOnly,this[M]=l.getAttribute||null,this[L]=l.setAttribute||null)}get value(){let e=this[M]?this[M]():this[$];return parseFloat(e||"0")}set value(e){if(this[Ve])throw new TypeError("Failed to set the 'value' property on 'SVGNumber': The object is read-only.");let I=typeof e!="number"?parseFloat(String(e)):e;if(isNaN(I))throw new TypeError("Failed to set the 'value' property on 'SVGNumber': The provided value is not a number.");this[$]=String(e),this[L]&&this[L](this[$]||"")}};G();var Zu=class{[W];[M];[L];[Tt]=null;[jt]=null;constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,this[M]=l.getAttribute,this[L]=l.setAttribute}get animVal(){return this[jt]||(this[jt]=new qd(V,this[W],{readOnly:!0,getAttribute:this[M]})),this[jt]}set animVal(e){}get baseVal(){return this[Tt]||(this[Tt]=new qd(V,this[W],{getAttribute:this[M],setAttribute:this[L]})),this[Tt]}set baseVal(e){}};G();G();G();var Tie;(function(t){t[t.unknown=0]="unknown",t[t.meet=1]="meet",t[t.slice=2]="slice"})(Tie||(Tie={}));var uu=Tie;G();var jie;(function(t){t[t.unknown=0]="unknown",t[t.none=1]="none",t[t.xMinYMin=2]="xMinYMin",t[t.xMidYMin=3]="xMidYMin",t[t.xMaxYMin=4]="xMaxYMin",t[t.xMinYMid=5]="xMinYMid",t[t.xMidYMid=6]="xMidYMid",t[t.xMaxYMid=7]="xMaxYMid",t[t.xMinYMax=8]="xMinYMax",t[t.xMidYMax=9]="xMidYMax",t[t.xMaxYMax=10]="xMaxYMax"})(jie||(jie={}));var bs=jie;var qk=Object.values(bs);qk.length=qk.indexOf(0);var yP=Object.values(uu);yP.length=yP.indexOf(0);var qY=class{static SVG_MEETORSLICE_UNKNOWN=uu.unknown;static SVG_MEETORSLICE_MEET=uu.meet;static SVG_MEETORSLICE_SLICE=uu.slice;static SVG_PRESERVEASPECTRATIO_UNKNOWN=bs.unknown;static SVG_PRESERVEASPECTRATIO_NONE=bs.none;static SVG_PRESERVEASPECTRATIO_XMINYMIN=bs.xMinYMin;static SVG_PRESERVEASPECTRATIO_XMIDYMIN=bs.xMidYMin;static SVG_PRESERVEASPECTRATIO_XMAXYMIN=bs.xMaxYMin;static SVG_PRESERVEASPECTRATIO_XMINYMID=bs.xMinYMid;static SVG_PRESERVEASPECTRATIO_XMIDYMID=bs.xMidYMid;static SVG_PRESERVEASPECTRATIO_XMAXYMID=bs.xMaxYMid;static SVG_PRESERVEASPECTRATIO_XMINYMAX=bs.xMinYMax;static SVG_PRESERVEASPECTRATIO_XMIDYMAX=bs.xMidYMax;static SVG_PRESERVEASPECTRATIO_XMAXYMAX=bs.xMaxYMax;[W];[M]=null;[L]=null;[$]=null;[Ve]=!1;constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,l&&(this[Ve]=!!l.readOnly,this[M]=l.getAttribute||null,this[L]=l.setAttribute||null)}get align(){let e=this[M]?this[M]():this[$];if(!e)return bs.xMidYMid;let I=e.split(/\s+/)[0];return bs[I]===void 0?bs.xMidYMid:bs[I]}set align(e){if(this[Ve])throw new this[W].TypeError("Failed to set the 'align' property on 'SVGPreserveAspectRatio': The object is read-only.");let I=Number(e);if(isNaN(I)||I<1||I>qk.length)throw new this[W].TypeError("Failed to set the 'align' property on 'SVGPreserveAspectRatio': The alignment provided is invalid.");this[$]=`${qk[I]} ${yP[this.meetOrSlice]}`,this[L]&&this[L](this[$])}get meetOrSlice(){let e=this[M]?this[M]():this[$];if(!e)return uu.meet;let I=e.split(/\s+/)[1];return!I||uu[I]===void 0?uu.meet:uu[I]}set meetOrSlice(e){if(this[Ve])throw new this[W].TypeError("Failed to set the 'meetOrSlice' property on 'SVGPreserveAspectRatio': The object is read-only.");let I=Number(e);if(isNaN(I)||I<1||I>2)throw new this[W].TypeError("Failed to set the 'meetOrSlice' property on 'SVGPreserveAspectRatio': The meetOrSlice provided is invalid.");this[$]=`${qk[this.align]} ${yP[I]}`,this[L]&&this[L](this[$])}};var Po=class{[W];[M];[L];[Tt]=null;[jt]=null;constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,this[M]=l.getAttribute,this[L]=l.setAttribute}get animVal(){return this[jt]||(this[jt]=new qY(V,this[W],{readOnly:!0,getAttribute:this[M]})),this[jt]}set animVal(e){}get baseVal(){return this[Tt]||(this[Tt]=new qY(V,this[W],{getAttribute:this[M],setAttribute:this[L]})),this[Tt]}set baseVal(e){}};G();var T=class{[W];[M];[L];[Tt]=null;[jt]=null;constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,this[M]=l.getAttribute,this[L]=l.setAttribute}get animVal(){return this[jt]||(this[jt]=new _d(V,this[W],{readOnly:!0,getAttribute:this[M]})),this[jt]}set animVal(e){}get baseVal(){return this[Tt]||(this[Tt]=new _d(V,this[W],{getAttribute:this[M],setAttribute:this[L]})),this[Tt]}set baseVal(e){}};var qH=class extends Al{[Bc]=null;[P]=null;[q]=null;[ne]=null;[le]=null;[cP]=1;[rh]=null;get onafterprint(){return E.getEventListener(this,"onafterprint")}set onafterprint(e){this[F].set("onafterprint",e)}get onbeforeprint(){return E.getEventListener(this,"onbeforeprint")}set onbeforeprint(e){this[F].set("onbeforeprint",e)}get onbeforeunload(){return E.getEventListener(this,"onbeforeunload")}set onbeforeunload(e){this[F].set("onbeforeunload",e)}get ongamepadconnected(){return E.getEventListener(this,"ongamepadconnected")}set ongamepadconnected(e){this[F].set("ongamepadconnected",e)}get ongamepaddisconnected(){return E.getEventListener(this,"ongamepaddisconnected")}set ongamepaddisconnected(e){this[F].set("ongamepaddisconnected",e)}get onhashchange(){return E.getEventListener(this,"onhashchange")}set onhashchange(e){this[F].set("onhashchange",e)}get onlanguagechange(){return E.getEventListener(this,"onlanguagechange")}set onlanguagechange(e){this[F].set("onlanguagechange",e)}get onmessage(){return E.getEventListener(this,"onmessage")}set onmessage(e){this[F].set("onmessage",e)}get onmessageerror(){return E.getEventListener(this,"onmessageerror")}set onmessageerror(e){this[F].set("onmessageerror",e)}get onoffline(){return E.getEventListener(this,"onoffline")}set onoffline(e){this[F].set("onoffline",e)}get ononline(){return E.getEventListener(this,"ononline")}set ononline(e){this[F].set("ononline",e)}get onpagehide(){return E.getEventListener(this,"onpagehide")}set onpagehide(e){this[F].set("onpagehide",e)}get onpageshow(){return E.getEventListener(this,"onpageshow")}set onpageshow(e){this[F].set("onpageshow",e)}get onpopstate(){return E.getEventListener(this,"onpopstate")}set onpopstate(e){this[F].set("onpopstate",e)}get onrejectionhandled(){return E.getEventListener(this,"onrejectionhandled")}set onrejectionhandled(e){this[F].set("onrejectionhandled",e)}get onstorage(){return E.getEventListener(this,"onstorage")}set onstorage(e){this[F].set("onstorage",e)}get onunhandledrejection(){return E.getEventListener(this,"onunhandledrejection")}set onunhandledrejection(e){this[F].set("onunhandledrejection",e)}get onunload(){return E.getEventListener(this,"onunload")}set onunload(e){this[F].set("onunload",e)}get preserveAspectRatio(){return this[Bc]||(this[Bc]=new Po(V,this[W],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:e=>this.setAttribute("preserveAspectRatio",e)})),this[Bc]}get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}get currentScale(){return this[cP]}set currentScale(e){let I=typeof e!="number"?parseFloat(String(e)):e;if(isNaN(I))throw this[W].TypeError("Failed to set the 'currentScale' property on 'SVGSVGElement': The provided float value is non-finite.");I<1||(this[cP]=I)}get currentTranslate(){return new gc(V,this[W])}get viewBox(){return this[rh]||(this[rh]=new Zu(V,this[W],{getAttribute:()=>this.getAttribute("viewBox"),setAttribute:e=>this.setAttribute("viewBox",e)})),this[rh]}pauseAnimations(){}unpauseAnimations(){}animationsPaused(){return!1}getCurrentTime(){return 0}setCurrentTime(e){}getIntersectionList(e,I){return new Oo(V,[])}getEnclosureList(e,I){return new Oo(V,[])}checkIntersection(e,I){return!1}checkEnclosure(e,I){return!1}deselectAll(){}createSVGNumber(){return new $d(V,this[W])}createSVGLength(){return new _d(V,this[W])}createSVGAngle(){return new Sh(V,this[W])}createSVGPoint(){return new gc(V,this[W])}createSVGMatrix(){return new Uh(V,this[W])}createSVGRect(){return new qd(V,this[W])}createSVGTransform(){return new zG(V,this[W])}createSVGTransformFromMatrix(e){let I=new zG(V,this[W]);return I.setMatrix(e),I}getElementsByClassName(e){return Et.getElementsByClassName(this,e)}getElementsByTagName(e){return Et.getElementsByTagName(this,e)}getElementsByTagNameNS(e,I){return Et.getElementsByTagNameNS(this,e,I)}getElementById(e){return Et.getElementById(this,e)}[aI](e=!1){return super[aI](e)}};G();G();var qo=class extends ke{[ah]=null;[sh]=null;get onbegin(){return E.getEventListener(this,"onbegin")}set onbegin(e){this[F].set("onbegin",e)}get onend(){return E.getEventListener(this,"onend")}set onend(e){this[F].set("onend",e)}get onrepeat(){return E.getEventListener(this,"onrepeat")}set onrepeat(e){this[F].set("onrepeat",e)}get requiredExtensions(){return this[ah]||(this[ah]=new Vb(V,this[W],{getAttribute:()=>this.getAttribute("requiredExtensions"),setAttribute:e=>this.setAttribute("requiredExtensions",e)})),this[ah]}get systemLanguage(){return this[sh]||(this[sh]=new Vb(V,this[W],{getAttribute:()=>this.getAttribute("systemLanguage"),setAttribute:e=>this.setAttribute("systemLanguage",e)})),this[sh]}get targetElement(){return null}};var _k=class extends qo{};G();var $k=class extends qo{};G();var ef=class extends qo{};G();G();G();var eI=class{[W];[M];[L];[Ar]=0;constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,this[M]=l.getAttribute,this[L]=l.setAttribute,this[Ar]=l.defaultValue||0}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[M]();if(!e)return this[Ar];let I=parseFloat(e);return isNaN(I)?this[Ar]:I}set baseVal(e){let I=typeof e!="number"?parseFloat(e):e;if(isNaN(I))throw new this[W].TypeError("TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedNumber': The provided float value is non-finite.");this[L](String(I))}};var sa=class extends Al{[e3]=null;get pathLength(){return this[e3]||(this[e3]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("pathLength"),setAttribute:e=>this.setAttribute("pathLength",e)})),this[e3]}isPointInFill(e){if(!(e instanceof gc))throw new TypeError("Failed to execute 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'.");return!1}isPointInStroke(e){if(!(e instanceof gc))throw new TypeError("Failed to execute 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'.");return!1}getTotalLength(){return 0}getPointAtLength(e){return new gc(V,this[W])}};var If=class extends sa{[wr]=null;[Xr]=null;[bh]=null;get cx(){return this[wr]||(this[wr]=new T(V,this[W],{getAttribute:()=>this.getAttribute("cx"),setAttribute:e=>this.setAttribute("cx",e)})),this[wr]}get cy(){return this[Xr]||(this[Xr]=new T(V,this[W],{getAttribute:()=>this.getAttribute("cy"),setAttribute:e=>this.setAttribute("cy",e)})),this[Xr]}get r(){return this[bh]||(this[bh]=new T(V,this[W],{getAttribute:()=>this.getAttribute("r"),setAttribute:e=>this.setAttribute("r",e)})),this[bh]}};G();G();var CI=class{[W];[M];[L];[Rc];[Ar];constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,this[M]=l.getAttribute,this[L]=l.setAttribute,this[Rc]=l.values,this[Ar]=l.defaultValue}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[M]();if(!e)return this[Rc].indexOf(this[Ar])+1;let I=this[Rc].indexOf(e);if(I===-1){let l=this[Rc].indexOf(null);return l!==-1?l+1:0}return I+1}set baseVal(e){let I=Number(e);if(isNaN(I)&&(I=0),I<1)throw new TypeError(`Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provided is ${I}, which is not settable.`);if(I>this[Rc].length)throw new TypeError(`Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provided (${I}) is larger than the largest allowed value (${this[Rc].length}).`);let l=this[M](),n=this[Rc][I-1]===null,c=n?"0":this[Rc][I-1];(!l||n&&this[Rc].includes(l)||!n&&l!==c)&&this[L](c||"")}};var tf=class extends ke{[r3]=null;get clipPathUnits(){return this[r3]||(this[r3]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("clipPathUnits"),setAttribute:e=>this.setAttribute("clipPathUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[r3]}};G();var lf=class extends Al{};G();var nf=class extends ke{};G();var cf=class extends sa{[wr]=null;[Xr]=null;[dh]=null;[ih]=null;get cx(){return this[wr]||(this[wr]=new T(V,this[W],{getAttribute:()=>this.getAttribute("cx"),setAttribute:e=>this.setAttribute("cx",e)})),this[wr]}get cy(){return this[Xr]||(this[Xr]=new T(V,this[W],{getAttribute:()=>this.getAttribute("cy"),setAttribute:e=>this.setAttribute("cy",e)})),this[Xr]}get rx(){return this[dh]||(this[dh]=new T(V,this[W],{getAttribute:()=>this.getAttribute("rx"),setAttribute:e=>this.setAttribute("rx",e)})),this[dh]}get ry(){return this[ih]||(this[ih]=new T(V,this[W],{getAttribute:()=>this.getAttribute("ry"),setAttribute:e=>this.setAttribute("ry",e)})),this[ih]}};G();G();var Me=class{[W];[M];[L];constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,this[M]=l.getAttribute,this[L]=l.setAttribute}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[M]();return e||""}set baseVal(e){this[L](String(e))}};var af=class extends ke{static SVG_FEBLEND_MODE_UNKNOWN=0;static SVG_FEBLEND_MODE_NORMAL=1;static SVG_FEBLEND_MODE_MULTIPLY=2;static SVG_FEBLEND_MODE_SCREEN=3;static SVG_FEBLEND_MODE_DARKEN=4;static SVG_FEBLEND_MODE_LIGHTEN=5;static SVG_FEBLEND_MODE_OVERLAY=6;static SVG_FEBLEND_MODE_COLOR_DODGE=7;static SVG_FEBLEND_MODE_COLOR_BURN=8;static SVG_FEBLEND_MODE_HARD_LIGHT=9;static SVG_FEBLEND_MODE_SOFT_LIGHT=10;static SVG_FEBLEND_MODE_DIFFERENCE=11;static SVG_FEBLEND_MODE_EXCLUSION=12;static SVG_FEBLEND_MODE_HUE=13;static SVG_FEBLEND_MODE_SATURATION=14;static SVG_FEBLEND_MODE_COLOR=15;static SVG_FEBLEND_MODE_LUMINOSITY=16;[le]=null;[Ke]=null;[Hr]=null;[Bl]=null;[P]=null;[q]=null;[ne]=null;get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get in1(){return this[Ke]||(this[Ke]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Ke]}get in2(){return this[Hr]||(this[Hr]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("in2"),setAttribute:e=>this.setAttribute("in2",e)})),this[Hr]}get mode(){return this[Bl]||(this[Bl]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("mode"),setAttribute:e=>this.setAttribute("mode",e),values:["normal","multiply","screen","darken","lighten","overlay","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],defaultValue:"normal"})),this[Bl]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}};G();G();G();var eLI=/[\t\f\n\r, ]+/,_Y=class t{[W];[M];[L];[Ve]=!1;[oe]={items:[],attributeValue:""};constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");if(this[W]=I,this[Ve]=!!l.readOnly,this[M]=l.getAttribute,this[L]=l.setAttribute,e!==V)throw new TypeError("Illegal constructor");let n=new Zl(this,[t]);return new Proxy(this,{get:(c,a)=>{if(a==="length"||a==="numberOfItems")return c[Ne]().length;if(a in c||typeof a=="symbol")return n.bind(a),c[a];let s=Number(a);if(!isNaN(s))return c[Ne]()[s]},set(c,a,s){if(n.bind(a),typeof a=="symbol")return c[a]=s,!0;let r=Number(a);return isNaN(r)&&(c[a]=s),!0},deleteProperty(c,a){if(typeof a=="symbol")return delete c[a],!0;let s=Number(a);return isNaN(s)&&delete c[a],!0},ownKeys(c){return Object.keys(c[Ne]())},has(c,a){if(a in c)return!0;if(typeof a=="symbol")return!1;let s=Number(a);return!isNaN(s)&&s>=0&&s<c[Ne]().length},defineProperty(c,a,s){return n.preventBinding(a),a in c?(Object.defineProperty(c,a,s),!0):!1},getOwnPropertyDescriptor(c,a){if(a in c||typeof a=="symbol")return;let s=Number(a),r=c[Ne]();if(!isNaN(s)&&r[s])return{value:r[s],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[Ne]().length}get numberOfItems(){return this[Ne]().length}[Symbol.iterator](){return this[Ne]().values()}clear(){if(this[Ve])throw new this[W].TypeError("Failed to execute 'clear' on 'SVGNumberList': The object is read-only.");for(let e of this[oe].items)e[M]=null,e[L]=null;this[oe].items=[],this[oe].attributeValue="",this[L]("")}initialize(e){if(arguments.length<1)throw new this[W].TypeError(`Failed to execute 'initialize' on 'SVGNumberList': 1 arguments required, but only ${arguments.length} present.`);if(this[Ve])throw new this[W].TypeError("Failed to execute 'initialize' on 'SVGNumberList': The object is read-only.");for(let I of this[oe].items)I[M]=null,I[L]=null;return e[M]=()=>e[$],e[L]=()=>{this[oe].attributeValue=this[Ne]().map(I=>I[$]||"0").join(" "),this[L](this[oe].attributeValue)},this[oe].items=[e],this[oe].attributeValue=e[$],this[L](e[$]||""),e}getItem(e){let I=this[Ne]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),I[e]?I[e]:null}insertItemBefore(e,I){if(this[Ve])throw new this[W].TypeError("Failed to execute 'insertItemBefore' on 'SVGNumberList': The object is read-only.");if(arguments.length<2)throw new this[W].TypeError(`Failed to execute 'insertItemBefore' on 'SVGNumberList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof $d))throw new this[W].TypeError("Failed to execute 'insertItemBefore' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let l=this[Ne](),n=l.indexOf(e);return n!==-1&&l.splice(n,1),I<0?I=0:I>l.length&&(I=l.length),l.splice(I,0,e),e[M]=()=>e[$],e[L]=()=>{this[oe].attributeValue=this[Ne]().map(c=>c[$]||"0").join(" "),this[L](this[oe].attributeValue)},this[oe].attributeValue=l.map(c=>c[$]||"0").join(" "),this[L](this[oe].attributeValue),e}replaceItem(e,I){if(this[Ve])throw new this[W].TypeError("Failed to execute 'replaceItem' on 'SVGNumberList': The object is read-only.");if(arguments.length<2)throw new this[W].TypeError(`Failed to execute 'replaceItem' on 'SVGNumberList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof $d))throw new this[W].TypeError("Failed to execute 'replaceItem' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let l=this[Ne](),n=l.indexOf(e);if(n===I)return e;n!==-1&&l.splice(n,1),I<0?I=0:I>=l.length&&(I=l.length-1),l[I]&&(l[I][M]=null,l[I][L]=null);let c=l[I];return l[I]=e,e[M]=()=>e[$],e[L]=()=>{this[oe].attributeValue=this[Ne]().map(a=>a[$]||"0").join(" "),this[L](this[oe].attributeValue)},this[oe].attributeValue=l.map(a=>a[$]||"0").join(" "),this[L](this[oe].attributeValue),c}removeItem(e){if(this[Ve])throw new this[W].TypeError("Failed to execute 'removeItem' on 'SVGNumberList': The object is read-only.");if(arguments.length<1)throw new this[W].TypeError(`Failed to execute 'removeItem' on 'SVGNumberList': 1 argument required, but only ${arguments.length} present.`);let I=this[Ne]();if(e=Number(e),isNaN(e)&&(e=0),e>=I.length)throw new this[W].DOMException(`Failed to execute 'removeItem' on 'SVGNumberList': The index provided (${e}) is greater than the maximum bound.`,x.indexSizeError);if(e<0)throw new this[W].DOMException(`Failed to execute 'removeItem' on 'SVGNumberList': The index provided (${e}) is negative.`,x.indexSizeError);let l=I[e];return l&&(l[M]=null,l[L]=null),I.splice(e,1),this[L](I.map(n=>n[$]||"0").join(" ")),l}appendItem(e){if(this[Ve])throw new this[W].TypeError("Failed to execute 'appendItem' on 'SVGNumberList': The object is read-only.");if(arguments.length<1)throw new this[W].TypeError(`Failed to execute 'appendItem' on 'SVGNumberList': 1 argument required, but only ${arguments.length} present.`);if(!(e instanceof $d))throw new this[W].TypeError("Failed to execute 'appendItem' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.");let I=this[Ne](),l=I.indexOf(e);return l!==-1&&I.splice(l,1),I.push(e),e[M]=()=>e[$],e[L]=()=>{this[oe].attributeValue=this[Ne]().map(n=>n[$]||"0").join(" "),this[L](this[oe].attributeValue)},this[oe].attributeValue=I.map(n=>n[$]||"0").join(" "),this[L](this[oe].attributeValue),e}[Ne](){let e=this[M]()??"",I=this[oe];if(I.attributeValue===e)return I.items;if(I.items.length)for(let c of I.items)c[M]=null,c[L]=null;let l=[],n=e.trim();if(n){let c=n.split(eLI);for(let a=0,s=c.length;a<s;a++){let r=new $d(V,this[W],{readOnly:this[Ve],getAttribute:()=>r[$],setAttribute:()=>{this[oe].attributeValue=this[Ne]().map(o=>o[$]||"0").join(" "),this[L](this[oe].attributeValue)}});r[$]=String(parseFloat(c[a])),l.push(r)}}return I.attributeValue=e,I.items=l,l}};var Mr=class{[W];[M];[L];[Tt]=null;[jt]=null;constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,this[M]=l.getAttribute,this[L]=l.setAttribute}get animVal(){return this[jt]||(this[jt]=new _Y(V,this[W],{readOnly:!0,getAttribute:this[M],setAttribute:()=>{}})),this[jt]}set animVal(e){}get baseVal(){return this[Tt]||(this[Tt]=new _Y(V,this[W],{getAttribute:this[M],setAttribute:this[L]})),this[Tt]}set baseVal(e){}};var sf=class extends ke{static SVG_FEBLEND_TYPE_UNKNOWN=0;static SVG_FEBLEND_TYPE_MATRIX=1;static SVG_FEBLEND_TYPE_SATURATE=2;static SVG_FEBLEND_TYPE_HUEROTATE=3;static SVG_FEBLEND_TYPE_LUMINANCETOALPHA=4;[le]=null;[Ke]=null;[Hr]=null;[Ce]=null;[Wt]=null;[Rc]=null;[P]=null;[q]=null;[ne]=null;get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get in1(){return this[Ke]||(this[Ke]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Ke]}get in2(){return this[Hr]||(this[Hr]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("in2"),setAttribute:e=>this.setAttribute("in2",e)})),this[Hr]}get result(){return this[Ce]||(this[Ce]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[Ce]}get type(){return this[Wt]||(this[Wt]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("type"),setAttribute:e=>this.setAttribute("type",e),values:["matrix","saturate","huerotate","luminancetoalpha"],defaultValue:"matrix"})),this[Wt]}get values(){return this[Rc]||(this[Rc]=new Mr(V,this[W],{getAttribute:()=>this.getAttribute("values"),setAttribute:e=>this.setAttribute("values",e)})),this[Rc]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}};G();var rf=class extends ke{[le]=null;[Ke]=null;[Ce]=null;[P]=null;[q]=null;[ne]=null;get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get in1(){return this[Ke]||(this[Ke]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Ke]}get result(){return this[Ce]||(this[Ce]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[Ce]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}};G();var Gf=class extends ke{static SVG_FECOMPOSITE_OPERATOR_UNKNOWN=0;static SVG_FECOMPOSITE_OPERATOR_OVER=1;static SVG_FECOMPOSITE_OPERATOR_IN=2;static SVG_FECOMPOSITE_OPERATOR_OUT=3;static SVG_FECOMPOSITE_OPERATOR_ATOP=4;static SVG_FECOMPOSITE_OPERATOR_XOR=5;static SVG_FECOMPOSITE_OPERATOR_ARITHMETIC=6;[le]=null;[Ke]=null;[Ce]=null;[Wt]=null;[Rc]=null;[P]=null;[q]=null;[ne]=null;get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get in1(){return this[Ke]||(this[Ke]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Ke]}get result(){return this[Ce]||(this[Ce]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[Ce]}get type(){return this[Wt]||(this[Wt]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("type"),setAttribute:e=>this.setAttribute("type",e),values:["over","in","out","atop","xor","arithmetic"],defaultValue:"over"})),this[Wt]}get values(){return this[Rc]||(this[Rc]=new Mr(V,this[W],{getAttribute:()=>this.getAttribute("values"),setAttribute:e=>this.setAttribute("values",e)})),this[Rc]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}};G();G();var W0=class{[W];[M];[L];constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,this[M]=l.getAttribute,this[L]=l.setAttribute}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){return this[M]()==="true"}set baseVal(e){this[L](String(typeof e!="boolean"?!!e:e))}};G();var ei=class{[W];[M];[L];constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,this[M]=l.getAttribute,this[L]=l.setAttribute}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[M]();if(!e)return 0;let I=parseInt(e);return isNaN(I)?0:I}set baseVal(e){let I=parseInt(String(e));if(isNaN(I))throw new this[W].TypeError("TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedInteger': The provided float value is non-finite.");this[L](String(I))}};var of=class extends ke{static SVG_EDGEMODE_UNKNOWN=0;static SVG_EDGEMODE_DUPLICATE=1;static SVG_EDGEMODE_WRAP=2;static SVG_EDGEMODE_NONE=3;[A3]=null;[w3]=null;[Nh]=null;[le]=null;[Ke]=null;[X3]=null;[Er]=null;[vr]=null;[H3]=null;[E3]=null;[v3]=null;[Ce]=null;[C3]=null;[J3]=null;[ne]=null;[P]=null;[q]=null;get bias(){return this[A3]||(this[A3]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("bias"),setAttribute:e=>this.setAttribute("bias",e)})),this[A3]}get divisor(){return this[w3]||(this[w3]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("divisor"),setAttribute:e=>this.setAttribute("divisor",e)})),this[w3]}get edgeMode(){return this[Nh]||(this[Nh]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("edgeMode"),setAttribute:e=>this.setAttribute("edgeMode",e),values:["duplicate","wrap","none"],defaultValue:"duplicate"})),this[Nh]}get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get in1(){return this[Ke]||(this[Ke]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Ke]}get kernelMatrix(){return this[X3]||(this[X3]=new Mr(V,this[W],{getAttribute:()=>this.getAttribute("kernelMatrix"),setAttribute:e=>this.setAttribute("kernelMatrix",e)})),this[X3]}get kernelUnitLengthX(){return this[Er]||(this[Er]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:e=>this.setAttribute("kernelUnitLengthX",e)})),this[Er]}get kernelUnitLengthY(){return this[vr]||(this[vr]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:e=>this.setAttribute("kernelUnitLengthY",e)})),this[vr]}get orderX(){return this[H3]||(this[H3]=new ei(V,this[W],{getAttribute:()=>this.getAttribute("orderX"),setAttribute:e=>this.setAttribute("orderX",e)})),this[H3]}get orderY(){return this[E3]||(this[E3]=new ei(V,this[W],{getAttribute:()=>this.getAttribute("orderY"),setAttribute:e=>this.setAttribute("orderY",e)})),this[E3]}get preserveAlpha(){return this[v3]||(this[v3]=new W0(V,this[W],{getAttribute:()=>this.getAttribute("preserveAlpha"),setAttribute:e=>this.setAttribute("preserveAlpha",e)})),this[v3]}get result(){return this[Ce]||(this[Ce]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[Ce]}get targetX(){return this[C3]||(this[C3]=new ei(V,this[W],{getAttribute:()=>this.getAttribute("targetX"),setAttribute:e=>this.setAttribute("targetX",e)})),this[C3]}get targetY(){return this[J3]||(this[J3]=new ei(V,this[W],{getAttribute:()=>this.getAttribute("targetY"),setAttribute:e=>this.setAttribute("targetY",e)})),this[J3]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}};G();var df=class extends ke{[L3]=null;[le]=null;[Ke]=null;[Er]=null;[vr]=null;[Ce]=null;[Yh]=null;[ne]=null;[P]=null;[q]=null;get diffuseConstant(){return this[L3]||(this[L3]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("diffuseConstant"),setAttribute:e=>this.setAttribute("diffuseConstant",e)})),this[L3]}get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get in1(){return this[Ke]||(this[Ke]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Ke]}get kernelUnitLengthX(){return this[Er]||(this[Er]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:e=>this.setAttribute("kernelUnitLengthX",e)})),this[Er]}get kernelUnitLengthY(){return this[vr]||(this[vr]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:e=>this.setAttribute("kernelUnitLengthY",e)})),this[vr]}get result(){return this[Ce]||(this[Ce]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[Ce]}get surfaceScale(){return this[Yh]||(this[Yh]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("surfaceScale"),setAttribute:e=>this.setAttribute("surfaceScale",e)})),this[Yh]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}};G();var bf=class extends ke{static SVG_CHANNEL_UNKNOWN=0;static SVG_CHANNEL_R=1;static SVG_CHANNEL_G=2;static SVG_CHANNEL_B=3;static SVG_CHANNEL_A=4;[le]=null;[Ke]=null;[Hr]=null;[Ce]=null;[k3]=null;[ne]=null;[P]=null;[f3]=null;[q]=null;[x3]=null;get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get in1(){return this[Ke]||(this[Ke]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Ke]}get in2(){return this[Hr]||(this[Hr]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("in2"),setAttribute:e=>this.setAttribute("in2",e)})),this[Hr]}get result(){return this[Ce]||(this[Ce]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[Ce]}get scale(){return this[k3]||(this[k3]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("scale"),setAttribute:e=>this.setAttribute("scale",e)})),this[k3]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get xChannelSelector(){return this[f3]||(this[f3]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("xChannelSelector"),setAttribute:e=>this.setAttribute("xChannelSelector",e),values:["r","g","b","a"],defaultValue:"r"})),this[f3]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}get yChannelSelector(){return this[x3]||(this[x3]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("yChannelSelector"),setAttribute:e=>this.setAttribute("yChannelSelector",e),values:["r","g","b","a"],defaultValue:"r"})),this[x3]}};G();var mf=class extends ke{[B3]=null;[z3]=null;get azimuth(){return this[B3]||(this[B3]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("azimuth"),setAttribute:e=>this.setAttribute("azimuth",e)})),this[B3]}get elevation(){return this[z3]||(this[z3]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("elevation"),setAttribute:e=>this.setAttribute("elevation",e)})),this[z3]}};G();var hf=class extends ke{[Cr]=null;[Jr]=null;[le]=null;[Ke]=null;[Ce]=null;[Vh]=null;[Rh]=null;[ne]=null;[P]=null;[q]=null;get dx(){return this[Cr]||(this[Cr]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("dx"),setAttribute:e=>this.setAttribute("dx",e)})),this[Cr]}get dy(){return this[Jr]||(this[Jr]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("dy"),setAttribute:e=>this.setAttribute("dy",e)})),this[Jr]}get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get in1(){return this[Ke]||(this[Ke]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Ke]}get result(){return this[Ce]||(this[Ce]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[Ce]}get stdDeviationX(){return this[Vh]||(this[Vh]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("stdDeviationX"),setAttribute:e=>this.setAttribute("stdDeviationX",e),defaultValue:2})),this[Vh]}get stdDeviationY(){return this[Rh]||(this[Rh]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("stdDeviationY"),setAttribute:e=>this.setAttribute("stdDeviationY",e),defaultValue:2})),this[Rh]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}setStdDeviation(e,I){this.stdDeviationX.baseVal=e,this.stdDeviationY.baseVal=I}};G();var pf=class extends ke{[le]=null;[Ce]=null;[ne]=null;[P]=null;[q]=null;get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get result(){return this[Ce]||(this[Ce]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[Ce]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}};G();G();var _o=class extends ke{static SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN=0;static SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY=1;static SVG_FECOMPONENTTRANSFER_TYPE_TABLE=2;static SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE=3;static SVG_FECOMPONENTTRANSFER_TYPE_LINEAR=4;static SVG_FECOMPONENTTRANSFER_TYPE_GAMMA=5;[Wt]=null;[U3]=null;[S3]=null;[O3]=null;[M3]=null;[T3]=null;[uh]=null;get type(){return this[Wt]||(this[Wt]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("type"),setAttribute:e=>this.setAttribute("type",e),values:["identity","table","discrete","linear","gamma"],defaultValue:"identity"})),this[Wt]}get tableValues(){return this[U3]||(this[U3]=new Mr(V,this[W],{getAttribute:()=>this.getAttribute("tableValues"),setAttribute:e=>this.setAttribute("tableValues",e)})),this[U3]}get slope(){return this[S3]||(this[S3]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("slope"),setAttribute:e=>this.setAttribute("slope",e),defaultValue:1})),this[S3]}get intercept(){return this[O3]||(this[O3]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("intercept"),setAttribute:e=>this.setAttribute("intercept",e)})),this[O3]}get amplitude(){return this[M3]||(this[M3]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("amplitude"),setAttribute:e=>this.setAttribute("amplitude",e),defaultValue:1})),this[M3]}get exponent(){return this[T3]||(this[T3]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("exponent"),setAttribute:e=>this.setAttribute("exponent",e),defaultValue:1})),this[T3]}get offset(){return this[uh]||(this[uh]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("offset"),setAttribute:e=>this.setAttribute("offset",e)})),this[uh]}};var Zf=class extends _o{};G();var uf=class extends _o{};G();var Wf=class extends _o{};G();var Nf=class extends _o{};G();var Yf=class extends ke{static SVG_EDGEMODE_UNKNOWN=0;static SVG_EDGEMODE_DUPLICATE=1;static SVG_EDGEMODE_WRAP=2;static SVG_EDGEMODE_NONE=3;[Nh]=null;[le]=null;[Ke]=null;[Ce]=null;[Vh]=null;[Rh]=null;[ne]=null;[P]=null;[q]=null;get edgeMode(){return this[Nh]||(this[Nh]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("edgeMode"),setAttribute:e=>this.setAttribute("edgeMode",e),values:["duplicate","wrap","none"],defaultValue:"duplicate"})),this[Nh]}get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get in1(){return this[Ke]||(this[Ke]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Ke]}get result(){return this[Ce]||(this[Ce]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[Ce]}get stdDeviationX(){return this[Vh]||(this[Vh]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("stdDeviationX")||"2",setAttribute:e=>this.setAttribute("stdDeviationX",e)})),this[Vh]}get stdDeviationY(){return this[Rh]||(this[Rh]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("stdDeviationY")||"2",setAttribute:e=>this.setAttribute("stdDeviationY",e)})),this[Rh]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}setStdDeviation(e,I){this.stdDeviationX.baseVal=e,this.stdDeviationY.baseVal=I}};G();var Vf=class extends ke{[eze]=null;[le]=null;[OI]=null;[Bc]=null;[Ce]=null;[ne]=null;[P]=null;[q]=null;get crossOrigin(){return this.getAttribute("crossorigin")}set crossOrigin(e){this.setAttribute("crossorigin",e)}get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get href(){return this[OI]||(this[OI]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[OI]}get preserveAspectRatio(){return this[Bc]||(this[Bc]=new Po(V,this[W],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:e=>this.setAttribute("preserveAspectRatio",e)})),this[Bc]}get result(){return this[Ce]||(this[Ce]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[Ce]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}};G();var Rf=class extends ke{[le]=null;[Ce]=null;[ne]=null;[P]=null;[q]=null;get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get result(){return this[Ce]||(this[Ce]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[Ce]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}};G();var yf=class extends ke{[Ke]=null;get in1(){return this[Ke]||(this[Ke]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Ke]}};G();var Ff=class extends ke{static SVG_MORPHOLOGY_OPERATOR_UNKNOWN=0;static SVG_MORPHOLOGY_OPERATOR_ERODE=1;static SVG_MORPHOLOGY_OPERATOR_DILATE=2;[le]=null;[Ke]=null;[j3]=null;[D3]=null;[K3]=null;[Ce]=null;[ne]=null;[P]=null;[q]=null;get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get in1(){return this[Ke]||(this[Ke]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Ke]}get operator(){return this[j3]||(this[j3]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("operator"),setAttribute:e=>this.setAttribute("operator",e),values:["erode","dilate"],defaultValue:"erode"})),this[j3]}get radiusX(){return this[D3]||(this[D3]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("radiusX"),setAttribute:e=>this.setAttribute("radiusX",e)})),this[D3]}get radiusY(){return this[K3]||(this[K3]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("radiusY"),setAttribute:e=>this.setAttribute("radiusY",e)})),this[K3]}get result(){return this[Ce]||(this[Ce]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[Ce]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}};G();var gf=class extends ke{[le]=null;[Ke]=null;[Cr]=null;[Jr]=null;[Ce]=null;[ne]=null;[P]=null;[q]=null;get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get in1(){return this[Ke]||(this[Ke]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Ke]}get dx(){return this[Cr]||(this[Cr]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("dx"),setAttribute:e=>this.setAttribute("dx",e)})),this[Cr]}get dy(){return this[Jr]||(this[Jr]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("dy"),setAttribute:e=>this.setAttribute("dy",e)})),this[Jr]}get result(){return this[Ce]||(this[Ce]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[Ce]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}};G();var Qf=class extends ke{[P]=null;[q]=null;[ss]=null;get x(){return this[P]||(this[P]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}get z(){return this[ss]||(this[ss]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("z"),setAttribute:e=>this.setAttribute("z",e)})),this[ss]}};G();var Af=class extends ke{[le]=null;[Ke]=null;[Er]=null;[vr]=null;[Ce]=null;[P3]=null;[yh]=null;[Yh]=null;[ne]=null;[P]=null;[q]=null;get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get in1(){return this[Ke]||(this[Ke]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Ke]}get kernelUnitLengthX(){return this[Er]||(this[Er]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("kernelUnitLengthX"),setAttribute:e=>this.setAttribute("kernelUnitLengthX",e)})),this[Er]}get kernelUnitLengthY(){return this[vr]||(this[vr]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("kernelUnitLengthY"),setAttribute:e=>this.setAttribute("kernelUnitLengthY",e)})),this[vr]}get result(){return this[Ce]||(this[Ce]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[Ce]}get specularConstant(){return this[P3]||(this[P3]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("specularConstant"),setAttribute:e=>this.setAttribute("specularConstant",e),defaultValue:1})),this[P3]}get specularExponent(){return this[yh]||(this[yh]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("specularExponent"),setAttribute:e=>this.setAttribute("specularExponent",e),defaultValue:1})),this[yh]}get surfaceScale(){return this[Yh]||(this[Yh]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("surfaceScale"),setAttribute:e=>this.setAttribute("surfaceScale",e),defaultValue:1})),this[Yh]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}};G();var wf=class extends ke{[P]=null;[q]=null;[ss]=null;[q3]=null;[_3]=null;[$3]=null;[yh]=null;[ek]=null;get x(){return this[P]||(this[P]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}get z(){return this[ss]||(this[ss]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("z"),setAttribute:e=>this.setAttribute("z",e)})),this[ss]}get pointsAtX(){return this[q3]||(this[q3]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("pointsAtX"),setAttribute:e=>this.setAttribute("pointsAtX",e)})),this[q3]}get pointsAtY(){return this[_3]||(this[_3]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("pointsAtY"),setAttribute:e=>this.setAttribute("pointsAtY",e)})),this[_3]}get pointsAtZ(){return this[$3]||(this[$3]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("pointsAtZ"),setAttribute:e=>this.setAttribute("pointsAtZ",e)})),this[$3]}get specularExponent(){return this[yh]||(this[yh]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("specularExponent"),setAttribute:e=>this.setAttribute("specularExponent",e),defaultValue:1})),this[yh]}get limitingConeAngle(){return this[ek]||(this[ek]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("limitingConeAngle"),setAttribute:e=>this.setAttribute("limitingConeAngle",e)})),this[ek]}};G();var Xf=class extends ke{[le]=null;[Ke]=null;[Ce]=null;[ne]=null;[P]=null;[q]=null;get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get in1(){return this[Ke]||(this[Ke]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("in"),setAttribute:e=>this.setAttribute("in",e)})),this[Ke]}get result(){return this[Ce]||(this[Ce]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[Ce]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}};G();var Hf=class extends ke{static SVG_TURBULENCE_TYPE_UNKNOWN=0;static SVG_TURBULENCE_TYPE_FRACTALNOISE=1;static SVG_TURBULENCE_TYPE_TURBULENCE=2;static SVG_STITCHTYPE_UNKNOWN=0;static SVG_STITCHTYPE_STITCH=1;static SVG_STITCHTYPE_NOSTITCH=2;[Ik]=null;[tk]=null;[le]=null;[lk]=null;[Ce]=null;[nk]=null;[ck]=null;[Wt]=null;[ne]=null;[P]=null;[q]=null;get baseFrequencyX(){return this[Ik]||(this[Ik]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("baseFrequencyX"),setAttribute:e=>this.setAttribute("baseFrequencyX",e)})),this[Ik]}get baseFrequencyY(){return this[tk]||(this[tk]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("baseFrequencyY"),setAttribute:e=>this.setAttribute("baseFrequencyY",e)})),this[tk]}get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get numOctaves(){return this[lk]||(this[lk]=new ei(V,this[W],{getAttribute:()=>this.getAttribute("numOctaves"),setAttribute:e=>this.setAttribute("numOctaves",e)})),this[lk]}get result(){return this[Ce]||(this[Ce]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("result"),setAttribute:e=>this.setAttribute("result",e)})),this[Ce]}get seed(){return this[nk]||(this[nk]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("seed"),setAttribute:e=>this.setAttribute("seed",e)})),this[nk]}get stitchTiles(){return this[ck]||(this[ck]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("stitchTiles"),setAttribute:e=>this.setAttribute("stitchTiles",e),values:["stitch","noStitch"],defaultValue:"stitch"})),this[ck]}get type(){return this[Wt]||(this[Wt]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("type"),setAttribute:e=>this.setAttribute("type",e),values:["fractalNoise","turbulence"],defaultValue:"turbulence"})),this[Wt]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}};G();var Ef=class extends ke{[OI]=null;[d3]=null;[i3]=null;[P]=null;[q]=null;[ne]=null;[le]=null;get href(){return this[OI]||(this[OI]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[OI]}get filterUnits(){return this[d3]||(this[d3]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("filterUnits"),setAttribute:e=>this.setAttribute("filterUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[d3]}get primitiveUnits(){return this[i3]||(this[i3]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("primitiveUnits"),setAttribute:e=>this.setAttribute("primitiveUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[i3]}get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}};G();var vf=class extends Al{[P]=null;[q]=null;[ne]=null;[le]=null;get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}};G();var Cf=class extends Al{};G();var Jf=class extends Al{[OI]=null;[Bc]=null;[P]=null;[q]=null;[ne]=null;[le]=null;get crossOrigin(){return this.getAttribute("crossorigin")}set crossOrigin(e){this.setAttribute("crossorigin",e)}get href(){return this[OI]||(this[OI]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[OI]}get decoding(){let e=this.getAttribute("decoding");switch(e){case"sync":case"async":case"auto":return e;default:return"auto"}}set decoding(e){this.setAttribute("decoding",e)}get preserveAspectRatio(){return this[Bc]||(this[Bc]=new Po(V,this[W],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:e=>this.setAttribute("preserveAspectRatio",e)})),this[Bc]}get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}decode(){return Promise.resolve()}};G();var Lf=class extends sa{[mh]=null;[hh]=null;[ph]=null;[Zh]=null;get x1(){return this[mh]||(this[mh]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x1"),setAttribute:e=>this.setAttribute("x1",e)})),this[mh]}get y1(){return this[hh]||(this[hh]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y1"),setAttribute:e=>this.setAttribute("y1",e)})),this[hh]}get x2(){return this[ph]||(this[ph]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x2"),setAttribute:e=>this.setAttribute("x2",e)})),this[ph]}get y2(){return this[Zh]||(this[Zh]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y2"),setAttribute:e=>this.setAttribute("y2",e)})),this[Zh]}};G();G();var Wu=class extends Al{static SVG_SPREADMETHOD_UNKNOWN=0;static SVG_SPREADMETHOD_PAD=1;static SVG_SPREADMETHOD_REFLECT=2;static SVG_SPREADMETHOD_REPEAT=3;[OI]=null;[b3]=null;[m3]=null;[h3]=null;get href(){return this[OI]||(this[OI]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[OI]}get gradientUnits(){return this[b3]||(this[b3]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("gradientUnits"),setAttribute:e=>this.setAttribute("gradientUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"objectBoundingBox"})),this[b3]}get gradientTransform(){return this[m3]||(this[m3]=new Rb(V,this[W],{getAttribute:()=>this.getAttribute("gradientTransform"),setAttribute:e=>this.setAttribute("gradientTransform",e)})),this[m3]}get spreadMethod(){return this[h3]||(this[h3]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("spreadMethod"),setAttribute:e=>this.setAttribute("spreadMethod",e),values:["pad","reflect","repeat"],defaultValue:"pad"})),this[h3]}};var kf=class extends Wu{[mh]=null;[hh]=null;[ph]=null;[Zh]=null;get x1(){return this[mh]||(this[mh]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x1"),setAttribute:e=>this.setAttribute("x1",e)})),this[mh]}get y1(){return this[hh]||(this[hh]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y1"),setAttribute:e=>this.setAttribute("y1",e)})),this[hh]}get x2(){return this[ph]||(this[ph]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x2"),setAttribute:e=>this.setAttribute("x2",e)})),this[ph]}get y2(){return this[Zh]||(this[Zh]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y2"),setAttribute:e=>this.setAttribute("y2",e)})),this[Zh]}};G();G();var N0=class{[W];[M];[L];[Tt]=null;[jt]=null;constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,this[M]=l.getAttribute,this[L]=l.setAttribute}get animVal(){return this[jt]||(this[jt]=new Sh(V,this[W],{readOnly:!0,getAttribute:this[M]})),this[jt]}set animVal(e){}get baseVal(){return this[Tt]||(this[Tt]=new Sh(V,this[W],{getAttribute:this[M],setAttribute:this[L]})),this[Tt]}set baseVal(e){}};var ff=class extends ke{static SVG_MARKER_ORIENT_UNKNOWN=0;static SVG_MARKER_ORIENT_AUTO=1;static SVG_MARKER_ORIENT_ANGLE=2;static SVG_MARKERUNITS_UNKNOWN=0;static SVG_MARKERUNITS_USERSPACEONUSE=1;static SVG_MARKERUNITS_STROKEWIDTH=2;SVG_MARKER_ORIENT_UNKNOWN=0;SVG_MARKER_ORIENT_AUTO=1;SVG_MARKER_ORIENT_ANGLE=2;[I3]=null;[t3]=null;[l3]=null;[n3]=null;[c3]=null;[a3]=null;[s3]=null;[rh]=null;[Bc]=null;get markerUnits(){return this[I3]||(this[I3]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("markerUnits"),setAttribute:e=>this.setAttribute("markerUnits",e),values:["userSpaceOnUse","strokeWidth"],defaultValue:"strokeWidth"})),this[I3]}get markerWidth(){return this[t3]||(this[t3]=new T(V,this[W],{getAttribute:()=>this.getAttribute("markerWidth"),setAttribute:e=>this.setAttribute("markerWidth",e)})),this[t3]}get markerHeight(){return this[l3]||(this[l3]=new T(V,this[W],{getAttribute:()=>this.getAttribute("markerHeight"),setAttribute:e=>this.setAttribute("markerHeight",e)})),this[l3]}get orientType(){return this[n3]||(this[n3]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("orient"),setAttribute:e=>this.setAttribute("orient",e),values:["auto",null],defaultValue:"auto"})),this[n3]}get orientAngle(){return this[c3]||(this[c3]=new N0(V,this[W],{getAttribute:()=>this.getAttribute("orient"),setAttribute:e=>this.setAttribute("orient",e)})),this[c3]}get refX(){return this[a3]||(this[a3]=new T(V,this[W],{getAttribute:()=>this.getAttribute("refX"),setAttribute:e=>this.setAttribute("refX",e)})),this[a3]}get refY(){return this[s3]||(this[s3]=new T(V,this[W],{getAttribute:()=>this.getAttribute("refY"),setAttribute:e=>this.setAttribute("refY",e)})),this[s3]}get viewBox(){return this[rh]||(this[rh]=new Zu(V,this[W],{getAttribute:()=>this.getAttribute("viewBox"),setAttribute:e=>this.setAttribute("viewBox",e)})),this[rh]}get preserveAspectRatio(){return this[Bc]||(this[Bc]=new Po(V,this[W],{getAttribute:()=>this.getAttribute("preserveAspectRatio"),setAttribute:e=>this.setAttribute("preserveAspectRatio",e)})),this[Bc]}setOrientToAuto(){this.setAttribute("orient","auto")}setOrientToAngle(e){this.setAttribute("orient",e.valueAsString)}};G();var xf=class extends ke{[G3]=null;[o3]=null;[P]=null;[q]=null;[ne]=null;[le]=null;get maskUnits(){return this[G3]||(this[G3]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("maskUnits"),setAttribute:e=>this.setAttribute("maskUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[G3]}get maskContentUnits(){return this[o3]||(this[o3]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("maskContentUnits"),setAttribute:e=>this.setAttribute("maskContentUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[o3]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}};G();var Bf=class extends ke{};G();var zf=class extends ke{[OI]=null;get href(){return this[OI]||(this[OI]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[OI]}};G();var Uf=class extends sa{};G();var Sf=class extends ke{[OI]=null;[p3]=null;[Z3]=null;[u3]=null;[P]=null;[q]=null;[ne]=null;[le]=null;get href(){return this[OI]||(this[OI]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[OI]}get patternUnits(){return this[p3]||(this[p3]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("patternUnits"),setAttribute:e=>this.setAttribute("patternUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"objectBoundingBox"})),this[p3]}get patternContentUnits(){return this[Z3]||(this[Z3]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("patternContentUnits"),setAttribute:e=>this.setAttribute("patternContentUnits",e),values:["userSpaceOnUse","objectBoundingBox"],defaultValue:"userSpaceOnUse"})),this[Z3]}get patternTransform(){return this[u3]||(this[u3]=new Rb(V,this[W],{getAttribute:()=>this.getAttribute("patternTransform"),setAttribute:e=>this.setAttribute("patternTransform",e)})),this[u3]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}};G();G();var ILI=/[\t\f\n\r, ]+/,yb=class t{[W];[M];[L];[Ve]=!1;[oe]={items:[],attributeValue:""};constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,this[Ve]=!!l.readOnly,this[M]=l.getAttribute,this[L]=l.setAttribute;let n=new Zl(this,[t]);return new Proxy(this,{get:(c,a)=>{if(a==="length"||a==="numberOfItems")return c[Ne]().length;if(a in c||typeof a=="symbol")return n.bind(a),c[a];let s=Number(a);if(!isNaN(s))return c[Ne]()[s]},set(c,a,s){if(n.bind(a),typeof a=="symbol")return c[a]=s,!0;let r=Number(a);return isNaN(r)&&(c[a]=s),!0},deleteProperty(c,a){if(typeof a=="symbol")return delete c[a],!0;let s=Number(a);return isNaN(s)&&delete c[a],!0},ownKeys(c){return Object.keys(c[Ne]())},has(c,a){if(a in c)return!0;if(typeof a=="symbol")return!1;let s=Number(a);return!isNaN(s)&&s>=0&&s<c[Ne]().length},defineProperty(c,a,s){return n.preventBinding(a),a in c?(Object.defineProperty(c,a,s),!0):!1},getOwnPropertyDescriptor(c,a){if(a in c||typeof a=="symbol")return;let s=Number(a),r=c[Ne]();if(!isNaN(s)&&r[s])return{value:r[s],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[Ne]().length}get numberOfItems(){return this[Ne]().length}[Symbol.iterator](){return this[Ne]().values()}clear(){if(this[Ve])throw new this[W].TypeError("Failed to execute 'clear' on 'SVGPointList': The object is read-only.");for(let e of this[oe].items)e[M]=null,e[L]=null;this[oe].items=[],this[oe].attributeValue="",this[L]("")}initialize(e){if(this[Ve])throw new this[W].TypeError("Failed to execute 'initialize' on 'SVGPointList': The object is read-only.");if(arguments.length<1)throw new this[W].TypeError(`Failed to execute 'initialize' on 'SVGPointList': 1 arguments required, but only ${arguments.length} present.`);if(!(e instanceof gc))throw new this[W].TypeError("Failed to execute 'appendItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");for(let I of this[oe].items)I[M]=null,I[L]=null;return e[M]=()=>e[$],e[L]=()=>{this[oe].attributeValue=this[Ne]().map(I=>I[$]||"0 0").join(" "),this[L](this[oe].attributeValue)},this[oe].items=[e],this[oe].attributeValue=e[$],this[L](e[$]||""),e}getItem(e){let I=this[Ne]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),I[e]?I[e]:null}insertItemBefore(e,I){if(this[Ve])throw new this[W].TypeError("Failed to execute 'insertItemBefore' on 'SVGPointList': The object is read-only.");if(arguments.length<2)throw new this[W].TypeError(`Failed to execute 'insertItemBefore' on 'SVGPointList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof gc))throw new this[W].TypeError("Failed to execute 'insertItemBefore' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let l=this[Ne](),n=l.indexOf(e);return n!==-1&&l.splice(n,1),I<0?I=0:I>l.length&&(I=l.length),l.splice(I,0,e),e[M]=()=>e[$],e[L]=()=>{this[oe].attributeValue=this[Ne]().map(c=>c[$]||"0 0").join(" "),this[L](this[oe].attributeValue)},this[oe].attributeValue=l.map(c=>c[$]||"0 0").join(" "),this[L](this[oe].attributeValue),e}replaceItem(e,I){if(this[Ve])throw new this[W].TypeError("Failed to execute 'replaceItem' on 'SVGPointList': The object is read-only.");if(arguments.length<2)throw new this[W].TypeError(`Failed to execute 'replaceItem' on 'SVGPointList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof gc))throw new this[W].TypeError("Failed to execute 'replaceItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let l=this[Ne](),n=l.indexOf(e);if(n===I)return e;n!==-1&&l.splice(n,1),I<0?I=0:I>=l.length&&(I=l.length-1),l[I]&&(l[I][M]=null,l[I][L]=null);let c=l[I];return l[I]=e,e[M]=()=>e[$],e[L]=()=>{this[oe].attributeValue=this[Ne]().map(a=>a[$]||"0 0").join(" "),this[L](this[oe].attributeValue)},this[oe].attributeValue=l.map(a=>a[$]||"0 0").join(" "),this[L](this[oe].attributeValue),c}removeItem(e){if(this[Ve])throw new this[W].TypeError("Failed to execute 'removeItem' on 'SVGPointList': The object is read-only.");if(arguments.length<1)throw new this[W].TypeError(`Failed to execute 'removeItem' on 'SVGPointList': 1 argument required, but only ${arguments.length} present.`);let I=this[Ne]();if(e=Number(e),isNaN(e)&&(e=0),e>=I.length)throw new this[W].DOMException(`Failed to execute 'removeItem' on 'SVGPointList': The index provided (${e}) is greater than the maximum bound.`,x.indexSizeError);if(e<0)throw new this[W].DOMException(`Failed to execute 'removeItem' on 'SVGPointList': The index provided (${e}) is negative.`,x.indexSizeError);let l=I[e];return l&&(l[M]=null,l[L]=null),I.splice(e,1),this[L](I.map(n=>n[$]||"0 0").join(" ")),l}appendItem(e){if(this[Ve])throw new this[W].TypeError("Failed to execute 'appendItem' on 'SVGPointList': The object is read-only.");if(arguments.length<1)throw new this[W].TypeError(`Failed to execute 'appendItem' on 'SVGPointList': 1 argument required, but only ${arguments.length} present.`);if(!(e instanceof gc))throw new this[W].TypeError("Failed to execute 'appendItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.");let I=this[Ne](),l=I.indexOf(e);return l!==-1&&I.splice(l,1),I.push(e),e[M]=()=>e[$],e[L]=()=>{this[oe].attributeValue=this[Ne]().map(n=>n[$]||"0 0").join(" "),this[L](this[oe].attributeValue)},this[oe].attributeValue=I.map(n=>n[$]||"0 0").join(" "),this[L](this[oe].attributeValue),e}[Ne](){let e=this[M]()??"",I=this[oe];if(I.attributeValue===e)return I.items;if(I.items.length)for(let c of I.items)c[M]=null,c[L]=null;let l=[],n=e.trim();if(n){let c=n.split(ILI);for(let a=0,s=c.length;a<s;a+=2){let r=parseFloat(c[a]),o=c[a+1]!==void 0?" "+parseFloat(c[a+1]):"",d=new gc(V,this[W],{readOnly:this[Ve],getAttribute:()=>d[$],setAttribute:()=>{this[oe].attributeValue=this[Ne]().map(i=>i[$]||"0 0").join(" "),this[L](this[oe].attributeValue)}});d[$]=`${r}${o}`,l.push(d)}}return I.attributeValue=e,I.items=l,l}};var Of=class extends sa{[Gh]=null;[oh]=null;get animatedPoints(){return this[Gh]||(this[Gh]=new yb(V,this[W],{readOnly:!0,getAttribute:()=>this.getAttribute("points"),setAttribute:()=>{}})),this[Gh]}get points(){return this[oh]||(this[oh]=new yb(V,this[W],{getAttribute:()=>this.getAttribute("points"),setAttribute:e=>this.setAttribute("points",e)})),this[oh]}};G();var Mf=class extends sa{[Gh]=null;[oh]=null;get animatedPoints(){return this[Gh]||(this[Gh]=new yb(V,this[W],{readOnly:!0,getAttribute:()=>this.getAttribute("points"),setAttribute:()=>{}})),this[Gh]}get points(){return this[oh]||(this[oh]=new yb(V,this[W],{getAttribute:()=>this.getAttribute("points"),setAttribute:e=>this.setAttribute("points",e)})),this[oh]}};G();var Tf=class extends Wu{[wr]=null;[Xr]=null;[bh]=null;[W3]=null;[N3]=null;get cx(){return this[wr]||(this[wr]=new T(V,this[W],{getAttribute:()=>this.getAttribute("cx"),setAttribute:e=>this.setAttribute("cx",e)})),this[wr]}get cy(){return this[Xr]||(this[Xr]=new T(V,this[W],{getAttribute:()=>this.getAttribute("cy"),setAttribute:e=>this.setAttribute("cy",e)})),this[Xr]}get r(){return this[bh]||(this[bh]=new T(V,this[W],{getAttribute:()=>this.getAttribute("r"),setAttribute:e=>this.setAttribute("r",e)})),this[bh]}get fx(){return this[W3]||(this[W3]=new T(V,this[W],{getAttribute:()=>this.getAttribute("fx"),setAttribute:e=>this.setAttribute("fx",e)})),this[W3]}get fy(){return this[N3]||(this[N3]=new T(V,this[W],{getAttribute:()=>this.getAttribute("fy"),setAttribute:e=>this.setAttribute("fy",e)})),this[N3]}};G();var jf=class extends sa{[P]=null;[q]=null;[ne]=null;[le]=null;[dh]=null;[ih]=null;get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get rx(){return this[dh]||(this[dh]=new T(V,this[W],{getAttribute:()=>this.getAttribute("rx"),setAttribute:e=>this.setAttribute("rx",e)})),this[dh]}get ry(){return this[ih]||(this[ih]=new T(V,this[W],{getAttribute:()=>this.getAttribute("ry"),setAttribute:e=>this.setAttribute("ry",e)})),this[ih]}};G();var Df=class extends Al{[OI]=null;get href(){return this[OI]||(this[OI]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[OI]}get type(){return this.getAttribute("type")||""}set type(e){this.setAttribute("type",e)}};G();var Kf=class extends qo{};G();var Pf=class extends ke{[uh]=null;get offset(){return this[uh]||(this[uh]=new eI(V,this[W],{getAttribute:()=>this.getAttribute("offset"),setAttribute:e=>this.setAttribute("offset",e)})),this[uh]}};G();var qf=class extends ke{[ac]=null;[Ja]=this;[GY]=!1;get media(){return this.getAttribute("media")||"all"}set media(e){this.setAttribute("media",e)}get type(){return this.getAttribute("type")||"text/css"}set type(e){this.setAttribute("type",e)}get title(){return this.getAttribute("title")||""}set title(e){this.setAttribute("title",e)}get disabled(){return this[GY]}set disabled(e){this[GY]=!!e}get sheet(){return this[fe]?(this[ac]||(this[ac]=new this[S][W].CSSStyleSheet,this[ac].replaceSync(this.textContent)),this[ac]):null}[ns](){super[ns](),this[ac]=null}[cY](){this[ac]&&this[ac].replaceSync(this.textContent)}};G();var _f=class extends Al{};G();var $f=class extends Al{};G();G();G();var Y0=class extends Al{static LENGTHADJUST_UNKNOWN=0;static LENGTHADJUST_SPACING=1;static LENGTHADJUST_SPACINGANDGLYPHS=2;[Y3]=null;[V3]=null;get textLength(){return this[Y3]||(this[Y3]=new T(V,this[W],{getAttribute:()=>this.getAttribute("textLength"),setAttribute:e=>this.setAttribute("textLength",e)})),this[Y3]}get lengthAdjust(){return this[V3]||(this[V3]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("lengthAdjust"),setAttribute:e=>this.setAttribute("lengthAdjust",e),values:["spacing","spacingAndGlyphs"],defaultValue:"spacing"})),this[V3]}getNumberOfChars(){return 0}getComputedTextLength(){return 0}getSubStringLength(e,I){return 0}getStartPositionOfChar(e){return new gc(V,this[W])}getEndPositionOfChar(e){return new gc(V,this[W])}getExtentOfChar(e){return new qd(V,this[W])}getRotationOfChar(e){return 0}getCharNumAtPosition(e){return 0}};G();G();var tLI=/[\t\f\n\r, ]+/,$Y=class t{[W];[M];[L];[Ve]=!1;[oe]={items:[],attributeValue:""};constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,this[Ve]=!!l.readOnly,this[M]=l.getAttribute,this[L]=l.setAttribute;let n=new Zl(this,[t]);return new Proxy(this,{get:(c,a)=>{if(a==="length"||a==="numberOfItems")return c[Ne]().length;if(a in c||typeof a=="symbol")return n.bind(a),c[a];let s=Number(a);if(!isNaN(s))return c[Ne]()[s]},set(c,a,s){if(n.bind(a),typeof a=="symbol")return c[a]=s,!0;let r=Number(a);return isNaN(r)&&(c[a]=s),!0},deleteProperty(c,a){if(typeof a=="symbol")return delete c[a],!0;let s=Number(a);return isNaN(s)&&delete c[a],!0},ownKeys(c){return Object.keys(c[Ne]())},has(c,a){if(a in c)return!0;if(typeof a=="symbol")return!1;let s=Number(a);return!isNaN(s)&&s>=0&&s<c[Ne]().length},defineProperty(c,a,s){return n.preventBinding(a),a in c?(Object.defineProperty(c,a,s),!0):!1},getOwnPropertyDescriptor(c,a){if(a in c||typeof a=="symbol")return;let s=Number(a),r=c[Ne]();if(!isNaN(s)&&r[s])return{value:r[s],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[Ne]().length}get numberOfItems(){return this[Ne]().length}[Symbol.iterator](){return this[Ne]().values()}clear(){this[L]("")}initialize(e){if(this[Ve])throw new this[W].TypeError("Failed to execute 'initialize' on 'SVGLengthList': The object is read-only.");if(arguments.length<1)throw new this[W].TypeError(`Failed to execute 'initialize' on 'SVGLengthList': 1 arguments required, but only ${arguments.length} present.`);for(let I of this[oe].items)I[M]=null,I[L]=null;return e[M]=()=>e[$],e[L]=()=>{this[oe].attributeValue=this[Ne]().map(I=>I[$]??"0").join(" "),this[L](this[oe].attributeValue)},this[oe].items=[e],this[oe].attributeValue=e[$],this[L](e[$]||""),e}getItem(e){let I=this[Ne]();return typeof e=="number"||(e=Number(e),e=isNaN(e)?0:e),I[e]?I[e]:null}insertItemBefore(e,I){if(this[Ve])throw new this[W].TypeError("Failed to execute 'insertItemBefore' on 'SVGLengthList': The object is read-only.");if(arguments.length<2)throw new this[W].TypeError(`Failed to execute 'insertItemBefore' on 'SVGLengthList': 2 arguments required, but only ${arguments.length} present.`);let l=this[Ne](),n=l.indexOf(e);return n!==-1&&l.splice(n,1),I<0?I=0:I>l.length&&(I=l.length),l.splice(I,0,e),e[M]=()=>e[$],e[L]=()=>{this[oe].attributeValue=this[Ne]().map(c=>c[$]??"0").join(" "),this[L](this[oe].attributeValue)},this[oe].attributeValue=l.map(c=>c[$]??"0").join(" "),this[L](this[oe].attributeValue),e}replaceItem(e,I){if(this[Ve])throw new this[W].TypeError("Failed to execute 'replaceItem' on 'SVGLengthList': The object is read-only.");if(arguments.length<2)throw new this[W].TypeError(`Failed to execute 'replaceItem' on 'SVGLengthList': 2 arguments required, but only ${arguments.length} present.`);let l=this[Ne](),n=l.indexOf(e);if(n===I)return e;n!==-1&&l.splice(n,1),I<0?I=0:I>=l.length&&(I=l.length-1),l[I]&&(l[I][M]=null,l[I][L]=null);let c=l[I];return l[I]=e,e[M]=()=>e[$],e[L]=()=>{this[oe].attributeValue=this[Ne]().map(a=>a[$]??"0").join(" "),this[L](this[oe].attributeValue)},this[oe].attributeValue=l.map(a=>a[$]??"0").join(" "),this[L](this[oe].attributeValue),c}removeItem(e){if(this[Ve])throw new this[W].TypeError("Failed to execute 'removeItem' on 'SVGLengthList': The object is read-only.");if(arguments.length<1)throw new this[W].TypeError(`Failed to execute 'removeItem' on 'SVGLengthList': 1 argument required, but only ${arguments.length} present.`);let I=this[Ne]();if(e=Number(e),isNaN(e)&&(e=0),e>=I.length)throw new this[W].DOMException(`Failed to execute 'removeItem' on 'SVGLengthList': The index provided (${e}) is greater than the maximum bound.`,x.indexSizeError);if(e<0)throw new this[W].DOMException(`Failed to execute 'removeItem' on 'SVGLengthList': The index provided (${e}) is negative.`,x.indexSizeError);let l=I[e];return l&&(l[M]=null,l[L]=null),I.splice(e,1),this[L](I.map(n=>n[$]??"0").join(" ")),l}appendItem(e){if(this[Ve])throw new this[W].TypeError("Failed to execute 'appendItem' on 'SVGLengthList': The object is read-only.");if(arguments.length<1)throw new this[W].TypeError(`Failed to execute 'appendItem' on 'SVGLengthList': 1 argument required, but only ${arguments.length} present.`);let I=this[Ne](),l=I.indexOf(e);return l!==-1&&I.splice(l,1),I.push(e),e[M]=()=>e[$],e[L]=()=>{this[oe].attributeValue=this[Ne]().map(n=>n[$]??"0").join(" "),this[L](this[oe].attributeValue)},this[oe].attributeValue=I.map(n=>n[$]??"0").join(" "),this[L](this[oe].attributeValue),e}[Ne](){let e=this[M]()??"",I=this[oe];if(I.attributeValue===e)return I.items;if(I.items.length)for(let c of I.items)c[M]=null,c[L]=null;let l=[],n=e.trim();if(n){let c=n.split(tLI);for(let a=0,s=c.length;a<s;a++){let r=new _d(V,this[W],{readOnly:this[Ve],getAttribute:()=>r[$],setAttribute:o=>{r[$]=o;let d=l.map(i=>i[$]??"0").join(" ");I.attributeValue=d,this[L](d)}});r[$]=c[a],l.push(r)}}return I.attributeValue=e,I.items=l,l}};var Oh=class{[W];[M];[L];[Tt]=null;[jt]=null;constructor(e,I,l){if(e!==V)throw new TypeError("Illegal constructor");this[W]=I,this[M]=l.getAttribute,this[L]=l.setAttribute}get animVal(){return this[jt]||(this[jt]=new $Y(V,this[W],{readOnly:!0,getAttribute:this[M],setAttribute:this[L]})),this[jt]}set animVal(e){}get baseVal(){return this[Tt]||(this[Tt]=new $Y(V,this[W],{getAttribute:this[M],setAttribute:this[L]})),this[Tt]}set baseVal(e){}};var Nu=class extends Y0{[P]=null;[q]=null;[Cr]=null;[Jr]=null;[ok]=null;get x(){return this[P]||(this[P]=new Oh(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new Oh(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}get dx(){return this[Cr]||(this[Cr]=new Oh(V,this[W],{getAttribute:()=>this.getAttribute("dx"),setAttribute:e=>this.setAttribute("dx",e)})),this[Cr]}get dy(){return this[Jr]||(this[Jr]=new Oh(V,this[W],{getAttribute:()=>this.getAttribute("dy"),setAttribute:e=>this.setAttribute("dy",e)})),this[Jr]}get rotate(){return this[ok]||(this[ok]=new Mr(V,this[W],{getAttribute:()=>this.getAttribute("rotate"),setAttribute:e=>this.setAttribute("rotate",e)})),this[ok]}};var e9=class extends Nu{};G();var I9=class extends Y0{static TEXTPATH_METHODTYPE_UNKNOWN=0;static TEXTPATH_METHODTYPE_ALIGN=1;static TEXTPATH_METHODTYPE_STRETCH=2;static TEXTPATH_SPACINGTYPE_UNKNOWN=0;static TEXTPATH_SPACINGTYPE_AUTO=1;static TEXTPATH_SPACINGTYPE_EXACT=2;[OI]=null;[g3]=null;[TZ]=null;[Q3]=null;get href(){return this[OI]||(this[OI]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[OI]}get startOffset(){return this[g3]||(this[g3]=new T(V,this[W],{getAttribute:()=>this.getAttribute("startOffset"),setAttribute:e=>this.setAttribute("startOffset",e)})),this[g3]}get method(){return this[TZ]||(this[TZ]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("method"),setAttribute:e=>this.setAttribute("method",e),values:["align","stretch"],defaultValue:"align"})),this[TZ]}get spacing(){return this[Q3]||(this[Q3]=new CI(V,this[W],{getAttribute:()=>this.getAttribute("spacing"),setAttribute:e=>this.setAttribute("spacing",e),values:["auto","exact"],defaultValue:"exact"})),this[Q3]}};G();var t9=class extends ke{};G();var l9=class extends Nu{};G();var n9=class extends Al{[OI]=null;[P]=null;[q]=null;[ne]=null;[le]=null;get href(){return this[OI]||(this[OI]=new Me(V,this[W],{getAttribute:()=>this.getAttribute("href"),setAttribute:e=>this.setAttribute("href",e)})),this[OI]}get x(){return this[P]||(this[P]=new T(V,this[W],{getAttribute:()=>this.getAttribute("x"),setAttribute:e=>this.setAttribute("x",e)})),this[P]}get y(){return this[q]||(this[q]=new T(V,this[W],{getAttribute:()=>this.getAttribute("y"),setAttribute:e=>this.setAttribute("y",e)})),this[q]}get width(){return this[ne]||(this[ne]=new T(V,this[W],{getAttribute:()=>this.getAttribute("width"),setAttribute:e=>this.setAttribute("width",e)})),this[ne]}get height(){return this[le]||(this[le]=new T(V,this[W],{getAttribute:()=>this.getAttribute("height"),setAttribute:e=>this.setAttribute("height",e)})),this[le]}};G();var c9=class extends ke{};G();var a9=class{static SVG_UNIT_TYPE_UNKNOWN=0;static SVG_UNIT_TYPE_USERSPACEONUSE=1;static SVG_UNIT_TYPE_OBJECTBOUNDINGBOX=2;SVG_UNIT_TYPE_UNKNOWN=0;SVG_UNIT_TYPE_USERSPACEONUSE=1;SVG_UNIT_TYPE_OBJECTBOUNDINGBOX=2;constructor(e){if(e!==V)throw new TypeError("Illegal constructor")}};G();var s9=class{window;constructor(e){this.window=e}enqueueReaction(e,I,l){let n=this.window.customElements[lb]?.get(e.localName);if(n&&e[S]===this.window.document)switch(I){case"connectedCallback":if(n.livecycleCallbacks.connectedCallback){let c=n.livecycleCallbacks.connectedCallback?.call(e);if(c instanceof Promise){let a=new Pe(this.window).getAsyncTaskManager();if(a){let s=a.startTask();c.then(()=>a.endTask(s)).catch(()=>a.endTask(s))}}}break;case"disconnectedCallback":n.livecycleCallbacks.disconnectedCallback&&n.livecycleCallbacks.disconnectedCallback.call(e);break;case"attributeChangedCallback":n.livecycleCallbacks.attributeChangedCallback&&l?.length&&n.observedAttributes.has(l[0])&&n.livecycleCallbacks.attributeChangedCallback.apply(e,l);break}}};G();var _H=class extends K{state;hasUAVisualTransition;constructor(e,I=null){super(e),this.state=I?.state??null,this.hasUAVisualTransition=I?.hasUAVisualTransition??!1}};var eV={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)},Die=setTimeout.toString().includes("new Timeout"),Kie=class{constructor(){throw new TypeError("Illegal constructor")}},FP=class{callback;constructor(e){this.callback=e}},UG=class t extends tt{Node=bI;Attr=YX;ShadowRoot=QH;ProcessingInstruction=gH;Element=aa;CharacterData=ub;DocumentType=vh;HTMLAnchorElement=VX;HTMLButtonElement=wX;HTMLOptGroupElement=lH;HTMLOptionElement=Bh;HTMLElement=ae;HTMLUnknownElement=yH;HTMLTemplateElement=WH;HTMLInputElement=Os;HTMLSelectElement=dH;HTMLTextAreaElement=ru;HTMLImageElement=SY;HTMLStyleElement=mH;HTMLLabelElement=TX;HTMLSlotElement=Cie;HTMLMetaElement=$X;HTMLMediaElement=fh;HTMLAudioElement=kY;HTMLVideoElement=FH;HTMLBaseElement=FX;HTMLDialogElement=JX;HTMLScriptElement=oH;HTMLLinkElement=PX;HTMLIFrameElement=MX;HTMLFormElement=BX;HTMLUListElement=RH;HTMLTrackElement=VH;HTMLTableRowElement=uH;HTMLTitleElement=YH;HTMLTimeElement=NH;HTMLTableSectionElement=Yb;HTMLTableCellElement=hH;HTMLTableElement=ZH;HTMLSpanElement=bH;HTMLSourceElement=iH;HTMLQuoteElement=GH;HTMLProgressElement=rH;HTMLPreElement=sH;HTMLPictureElement=aH;HTMLParamElement=cH;HTMLParagraphElement=nH;HTMLOutputElement=xY;HTMLOListElement=tH;HTMLObjectElement=fY;HTMLMeterElement=eH;HTMLMenuElement=_X;HTMLMapElement=qX;HTMLLIElement=DX;HTMLLegendElement=jX;HTMLModElement=IH;HTMLHtmlElement=OX;HTMLHRElement=SX;HTMLHeadElement=zX;HTMLHeadingElement=UX;HTMLFieldSetElement=BY;HTMLEmbedElement=kX;HTMLDListElement=HX;HTMLDivElement=LX;HTMLDetailsElement=CX;HTMLDataListElement=vX;HTMLDataElement=EX;HTMLTableColElement=pH;HTMLTableCaptionElement=OY;HTMLCanvasElement=XX;HTMLBRElement=QX;HTMLBodyElement=gX;HTMLAreaElement=RX;SVGSVGElement=qH;SVGAnimateElement=_k;SVGAnimateMotionElement=$k;SVGAnimateTransformElement=ef;SVGCircleElement=If;SVGClipPathElement=tf;SVGDefsElement=lf;SVGDescElement=nf;SVGEllipseElement=cf;SVGFEBlendElement=af;SVGFEColorMatrixElement=sf;SVGFEComponentTransferElement=rf;SVGFECompositeElement=Gf;SVGFEConvolveMatrixElement=of;SVGFEDiffuseLightingElement=df;SVGFEDisplacementMapElement=bf;SVGFEDistantLightElement=mf;SVGFEDropShadowElement=hf;SVGFEFloodElement=pf;SVGFEFuncAElement=Zf;SVGFEFuncBElement=uf;SVGFEFuncGElement=Wf;SVGFEFuncRElement=Nf;SVGFEGaussianBlurElement=Yf;SVGFEImageElement=Vf;SVGFEMergeElement=Rf;SVGFEMergeNodeElement=yf;SVGFEMorphologyElement=Ff;SVGFEOffsetElement=gf;SVGFEPointLightElement=Qf;SVGFESpecularLightingElement=Af;SVGFESpotLightElement=wf;SVGFETileElement=Xf;SVGFETurbulenceElement=Hf;SVGFilterElement=Ef;SVGForeignObjectElement=vf;SVGGElement=Cf;SVGImageElement=Jf;SVGLineElement=Lf;SVGLinearGradientElement=kf;SVGMarkerElement=ff;SVGMaskElement=xf;SVGMetadataElement=Bf;SVGMPathElement=zf;SVGPathElement=Uf;SVGPatternElement=Sf;SVGPolygonElement=Of;SVGPolylineElement=Mf;SVGRadialGradientElement=Tf;SVGRectElement=jf;SVGScriptElement=Df;SVGSetElement=Kf;SVGStopElement=Pf;SVGStyleElement=qf;SVGSwitchElement=_f;SVGSymbolElement=$f;SVGTextElement=e9;SVGTextPathElement=I9;SVGTitleElement=t9;SVGTSpanElement=l9;SVGUseElement=n9;SVGViewElement=c9;SVGElement=ke;SVGAnimationElement=qo;SVGComponentTransferFunctionElement=_o;SVGGeometryElement=sa;SVGGradientElement=Wu;SVGTextPositioningElement=Nu;SVGGraphicsElement=Al;Event=K;UIEvent=Uc;CustomEvent=oX;AnimationEvent=rX;KeyboardEvent=iX;MessageEvent=bX;MouseEvent=Mn;PointerEvent=QY;FocusEvent=mb;WheelEvent=hX;InputEvent=dX;ErrorEvent=Xh;StorageEvent=Rk;SubmitEvent=AY;ProgressEvent=fr;MediaQueryListEvent=pY;HashChangeEvent=gY;ClipboardEvent=GX;TouchEvent=mX;PopStateEvent=_H;Touch=sX;AudioProcessingEvent=K;BeforeInputEvent=K;BeforeUnloadEvent=K;BlobEvent=K;CloseEvent=K;CompositionEvent=K;CSSFontFaceLoadEvent=K;DeviceLightEvent=K;DeviceMotionEvent=K;DeviceOrientationEvent=K;DeviceProximityEvent=K;DOMTransactionEvent=K;DragEvent=K;EditingBeforeInputEvent=K;FetchEvent=K;GamepadEvent=K;IDBVersionChangeEvent=K;MediaStreamEvent=K;MutationEvent=K;OfflineAudioCompletionEvent=K;OverconstrainedError=K;PageTransitionEvent=K;PaymentRequestUpdateEvent=K;RelatedEvent=K;RTCDataChannelEvent=K;RTCIdentityErrorEvent=K;RTCIdentityEvent=K;RTCPeerConnectionIceEvent=K;SensorEvent=K;SVGEvent=K;SVGZoomEvent=K;TimeEvent=K;TrackEvent=K;TransitionEvent=K;UserProximityEvent=K;WebGLContextEvent=K;TextEvent=K;Permissions=EY;History=_y;Navigator=NX;Clipboard=mY;TimeRanges=au;TextTrackCueList=iu;ValidityState=is;MutationRecord=zr;IntersectionObserver=uX;IntersectionObserverEntry=WX;CSSStyleDeclaration=Gs;CSSRule=xG;CSSContainerRule=ZY;CSSFontFaceRule=uY;CSSKeyframeRule=Ah;CSSKeyframesRule=WY;CSSMediaRule=YY;CSSStyleRule=wh;CSSSupportsRule=yY;CSSConditionRule=Md;CSSGroupingRule=Od;CSSScopeRule=Qh;DOMRect=Kd;DOMRectReadOnly=vY;Plugin=gk;PluginArray=I0;Location=$y;CustomElementRegistry=Dy;ResizeObserver=AH;Blob=sl;File=kr;Storage=TY;MimeType=Fk;MimeTypeArray=e0;NodeFilter=ll;HTMLCollection=Ql;HTMLFormControlCollection=zY;HTMLOptionsCollection=m0;NodeList=Oo;RadioNodeList=o0;FileList=su;Screen=h0;DOMMatrixReadOnly=u0;DOMMatrix=Ms;NamedNodeMap=Lh;TreeWalker=Ch;NodeIterator=CY;DataTransfer=aX;DataTransferItem=bb;DataTransferItemList=FY;Headers=gl;XMLSerializer=wH;ClipboardItem=lX;Selection=JY;CSSUnitValue=Kt;SVGAngle=Sh;SVGAnimatedAngle=N0;SVGAnimatedBoolean=W0;SVGAnimatedEnumeration=CI;SVGAnimatedInteger=ei;SVGAnimatedLength=T;SVGAnimatedNumber=eI;SVGAnimatedNumberList=Mr;SVGAnimatedPreserveAspectRatio=Po;SVGAnimatedRect=Zu;SVGAnimatedString=Me;SVGAnimatedTransformList=Rb;SVGLength=_d;SVGLengthList=$Y;SVGMatrix=Uh;SVGNumber=$d;SVGNumberList=_Y;SVGPoint=gc;SVGPointList=yb;SVGPreserveAspectRatio=qY;SVGRect=qd;SVGStringList=Vb;SVGTransform=zG;SVGTransformList=PY;SVGAnimatedLengthList=Oh;SVGUnitTypes=a9;DOMPoint=Z0;StylePropertyMap=RY;StylePropertyMapReadOnly=VY;MediaList=NY;CSSKeywordValue=_Z;CSSStyleValue=$Z;Window=this.constructor;URLSearchParams=rLI;WritableStream=zze.Writable;ReadableStream=sLI;TransformStream=zze.Transform;PerformanceObserver=GLI;PerformanceEntry=oLI;PerformanceObserverEntryList=Kie;onload=null;onerror=null;document;customElements=new Dy(this);window=this;globalThis=this;performance=performance;screenLeft=0;screenTop=0;screenX=0;screenY=0;crypto=nLI;TextEncoder=cLI;TextDecoder=aLI;closed=!1;console;name="";Buffer=lLI;[$N]=[];[wG];[XG];[Nn];[PK];[qK];[_K];[$K];[aY]=this;[sb]=this;[HG]=this;[W]=this;[eie]=this;[jN]=-1;[oY]=new s9(this);[Fh]={json:new Map,css:new Map,esm:new Map};[jZ]=null;#e;#I=null;#t=null;#l=null;#n=null;#a=null;#G={timeouts:null};#s=[];#o=[];constructor(e,I){super(),this.#e=e,this.console=e.page.console,this[wG]=new Qk(e),this[PK]=new NX(this),this[qK]=new h0,this[_K]=new TY,this[$K]=new TY,this[XG]=new $y(this.#e,I?.url??"about:blank"),this[Nn]=new _y(this.#e,this),e[Nn].currentItem.href=I?.url??"about:blank",Pe.setWindowBrowserFrameRelation(this,this.#e),this[JL](),Kk.extendClasses(this),this.document=new this.HTMLDocument,this.document[fs]=this;let l=e[dI].startTask(()=>this[wG].destroy());this[wG].waitUntilComplete().then(()=>{e[dI].endTask(l),this.document[IY]=uP.complete,this.document.dispatchEvent(new K("readystatechange"));let n=new K("load");n[Bo]=this,n[Ca]=this.document,n[ka]=Dt.atTarget,this.dispatchEvent(n),n[Bo]=null,n[ka]=Dt.none,n[dY]=!1}),this[_de]()}get self(){return this[aY]}set self(e){this[aY]=e}get top(){return this[sb]}get parent(){return this[HG]}set parent(e){this[HG]=e}get frames(){return this[eie]}set frames(e){this[HG]=e}get location(){return this[XG]}set location(e){this[XG].href=e}get history(){return this[Nn]}get navigator(){return this[PK]}get screen(){return this[qK]}get sessionStorage(){return this[_K]}get localStorage(){return this[$K]}get opener(){return this.#e[zd]}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 uk}get innerWidth(){return this.#I===null?this.#e.page.viewport.width:this.#I}set innerWidth(e){this.#I=e}get innerHeight(){return this.#t===null?this.#e.page.viewport.height:this.#t}set innerHeight(e){this.#t=e}get outerWidth(){return this.#l===null?this.#e.page.viewport.width:this.#l}set outerWidth(e){this.#l=e}get outerHeight(){return this.#n===null?this.#e.page.viewport.height:this.#n}set outerHeight(e){this.#n=e}get devicePixelRatio(){return this.#a===null?this.#e.page.viewport.devicePixelRatio:this.#a}set devicePixelRatio(e){this.#a=e}getComputedStyle(e){return e[Kw]=e[Kw]||new Gs(V,this,{element:e,computed:!0}),e[Kw]}getSelection(){return this.document.getSelection()}scroll(e,I){if(typeof e!="object"&&arguments.length===1)throw new this.TypeError("Failed to execute 'scroll' on 'Window': The provided value is not of type 'ScrollToOptions'.");let l=typeof e=="object"?e:{left:e,top:I};if(l.behavior==="smooth")this.setTimeout(()=>{if(l.top!==void 0){let n=Number(l.top);this.document.documentElement.scrollTop=isNaN(n)?0:n}if(l.left!==void 0){let n=Number(l.left);this.document.documentElement.scrollLeft=isNaN(n)?0:n}});else{if(l.top!==void 0){let n=Number(l.top);this.document.documentElement.scrollTop=isNaN(n)?0:n}if(l.left!==void 0){let n=Number(l.left);this.document.documentElement.scrollLeft=isNaN(n)?0:n}}}scrollTo(e,I){if(typeof e!="object"&&arguments.length===1)throw new this.TypeError("Failed to execute 'scrollTo' on 'Window': The provided value is not of type 'ScrollToOptions'.");this.scroll(e,I)}scrollBy(e,I){if(typeof e!="object"&&arguments.length===1)throw new this.TypeError("Failed to execute 'scrollBy' on 'Window': The provided value is not of type 'ScrollToOptions'.");let l=typeof e=="object"?e:{left:e,top:I};this.scroll({left:this.document.documentElement.scrollLeft+(l.left??0),top:this.document.documentElement.scrollTop+(l.top??0),behavior:l.behavior})}blur(){}focus(){}open(e,I,l){return Bk.openPage(this.#e,{url:e,target:I,features:l})}close(){this.#e.page.mainFrame===this.#e&&this.#e[zd]&&(this[Hn](),this.#e.page.close())}matchMedia(e){return new jy({window:this,media:e})}setTimeout(e,I=0,...l){if(this.closed)return{};let n=this.#e.page.context.browser.settings;if(n.timer.preventTimerLoops){let s=new Error().stack,r=this.#s,o=this.#o,d=r.indexOf(s);if(d!==-1){if(o[d].timeout++,o[d].timeout>=(n.timer.preventTimerLoops===!0?1:n.timer.preventTimerLoops.timeout??1))return{}}else r.push(s),o.push({timeout:0,requestAnimationFrame:0})}if(!I){let s=this.#G;if(!s.timeouts){let o=!n||!n.disableErrorCapturing&&n.errorCapture===tl.tryAndCatch,d=eV.setTimeout(()=>{this.#e[dI].endTimer(d);let i=s.timeouts;s.timeouts=null;for(let h of i)if(o){let p;try{p=h.callback()}catch(Z){this[al](Z)}p instanceof Promise&&p.catch(Z=>this[al](Z))}else h.callback()},0);s.timeouts=[],this.#e[dI].startTimer(d)}let r=new FP(()=>e(...l));return s.timeouts.push(r),r}let c=!n||!n.disableErrorCapturing&&n.errorCapture===tl.tryAndCatch,a=eV.setTimeout(()=>{if(this.#e[dI].endTimer(a),c){let s;try{s=e(...l)}catch(r){this[al](r)}s instanceof Promise&&s.catch(r=>this[al](r))}else e(...l)},n?.timer.maxTimeout!==-1&&I&&I>n?.timer.maxTimeout?n?.timer.maxTimeout:I);return this.#e[dI].startTimer(a),a}clearTimeout(e){if(e&&e instanceof FP){let I=this.#G;if(!I.timeouts)return;let l=I.timeouts.indexOf(e);l!==-1&&I.timeouts.splice(l,1);return}Die&&(!e||e.constructor.name!=="Timeout")||(eV.clearTimeout(e),this.#e[dI].endTimer(e))}setInterval(e,I=0,...l){if(this.closed)return{};let n=this.#e.page.context.browser.settings,c=!n||!n.disableErrorCapturing&&n.errorCapture===tl.tryAndCatch,a=0,s=eV.setInterval(()=>{if(c){let r;try{r=e(...l)}catch(o){this.clearInterval(s),this[al](o)}r instanceof Promise&&r.catch(o=>{this.clearInterval(s),this[al](o)})}else e(...l);n?.timer.maxIntervalIterations!==-1&&(a>=n?.timer.maxIntervalIterations&&this.clearInterval(s),a++)},n?.timer.maxIntervalTime!==-1&&I&&I>n?.timer.maxIntervalTime?n?.timer.maxIntervalTime:I);return this.#e[dI].startTimer(s),s}clearInterval(e){Die&&(!e||e.constructor.name!=="Timeout")||(eV.clearInterval(e),this.#e[dI].endTimer(e))}requestAnimationFrame(e){if(this.closed)return{};let I=this.#e.page.context.browser.settings;if(I.timer.preventTimerLoops){let c=new Error().stack,a=this.#s,s=this.#o,r=a.indexOf(c);if(r!==-1){if(s[r].requestAnimationFrame++,s[r].requestAnimationFrame>=(I.timer.preventTimerLoops===!0?1:I.timer.preventTimerLoops.requestAnimationFrame??1))return{}}else a.push(c),s.push({timeout:0,requestAnimationFrame:0})}let l=!I||!I.disableErrorCapturing&&I.errorCapture===tl.tryAndCatch,n=eV.setImmediate(()=>{if(this.#e[dI].endImmediate(n),l){let c;try{c=e(this.performance.now())}catch(a){this[al](a)}c instanceof Promise&&c.catch(a=>this[al](a))}else e(this.performance.now())});return this.#e[dI].startImmediate(n),n}cancelAnimationFrame(e){Die&&(!e||e.constructor.name!=="Immediate")||(eV.clearImmediate(e),this.#e[dI].endImmediate(e))}queueMicrotask(e){if(this.closed)return;let I=!1,l=this.#e[dI].startTask(()=>I=!0),n=this.#e.page.context.browser.settings,c=!n||!n.disableErrorCapturing&&n.errorCapture===tl.tryAndCatch;eV.queueMicrotask(()=>{if(!I)if(this.#e[dI].endTask(l),c){let a;try{a=e()}catch(s){this[al](s)}a instanceof Promise&&a.catch(s=>this[al](s))}else e()})}async fetch(e,I){return this.closed?Promise.reject(new this.DOMException("Failed to execute 'fetch' on 'Window': The window is closed.",x.invalidStateError)):await new Br({browserFrame:this.#e,window:this,url:e,init:I}).send()}btoa(e){return tX.btoa(e)}atob(e){return tX.atob(e)}postMessage(e,I="*",l){if(!this.closed){if(I&&I!=="*"&&this.location.origin!==I)throw new this.DOMException(`Failed to execute 'postMessage' on 'Window': The target origin provided ('${I}') does not match the recipient window's origin ('${this.location.origin}').`,x.securityError);try{JSON.stringify(e)}catch{throw new this.DOMException("Failed to execute 'postMessage' on 'Window': The provided message cannot be serialized.",x.invalidStateError)}this.setTimeout(()=>this.dispatchEvent(new bX("message",{data:e,origin:this.#e.parentFrame?this.#e.parentFrame.window.location.origin:this.#e.window.location.origin,source:this.#e.parentFrame?this.#e.parentFrame.window:this.#e.window,lastEventId:""})))}}resizeTo(e,I){if(!this.closed){if(!e||!I)throw new this.DOMException(`Failed to execute 'resizeTo' on 'Window': 2 arguments required, but only ${arguments.length} present.`);this.#e[JZ]&&this.#e.page.setViewport({width:e,height:I})}}resizeBy(e,I){if(!this.closed){if(!e||!I)throw new this.DOMException(`Failed to execute 'resizeBy' on 'Window': 2 arguments required, but only ${arguments.length} present.`);if(this.#e[JZ]){let l=this.#e.page.viewport;this.#e.page.setViewport({width:l.width+e,height:l.height+I})}}}[al](e){this.#e.page.console.error(e),this.dispatchEvent(new Xh("error",{message:e.message,error:e}))}[JL](){Uze.isContext(this)||(Uze.createContext(this),Rze.runInContext(this))}[Hn](){if(this.closed)return;this.closed=!0;let e=this[$N];for(let a of e)a[Hn]&&a[Hn]();this[$N]=[];let I=this.document[be];for(;I.length>0;)I[0].disconnectedCallback&&delete I[0].disconnectedCallback,this.document[Vc](I[0]);let l=this.document.createElement("html"),n=this.document.createElement("head"),c=this.document.createElement("body");l.appendChild(n),l.appendChild(c),this.document[QI](l),this.location[Hn]&&this.location[Hn](),this.customElements[Hn]&&this.customElements[Hn](),this.history[Hn]&&this.history[Hn](),this[Fh].json.clear(),this[Fh].css.clear(),this[Fh].esm.clear(),this.document[zs].clear(),this.document[Wn]=null,this.document[PN]=null,this.document[tb]=null,this.document[Ay]=null,Pe.removeWindowBrowserFrameRelation(this)}[_de](){for(let e of[t,tt]){let I=Object.getOwnPropertyDescriptors(e.prototype),l=Object.keys(I);for(let n of l){let c=I[n];c.get||c.set?Object.defineProperty(this,n,{...c,get:c.get?.bind(this),set:c.set?.bind(this)}):n!=="constructor"&&typeof c.value=="function"&&!c.value.toString().startsWith("class ")&&Object.defineProperty(this,n,{...c,value:c.value.bind(this)})}}}};var $H=class{childFrames=[];parentFrame=null;page;window;closed=!1;[dI]=new db(this);[Dl]={navigation:[]};[xs]=null;[zd]=null;[JZ]=!1;[Nn]=new G0;constructor(e){this.page=e,this.window=new UG(this),e.context.browser[Ia]&&e.context.browser[Ia].observe(this.window)}get content(){return this.window.document.documentElement.outerHTML}set content(e){this.window.document[qm]=!0,this.window.document[_m]=!1,this.window.document.open(),this.window.document.write(e)}get url(){return this.window.location.href}set url(e){this.window[XG][cs](this,Ss.getRelativeURL(this,e).href)}get document(){return this.window?.document??null}async waitUntilComplete(){await Promise.all([this[dI].waitUntilComplete(),...this.childFrames.map(e=>e.waitUntilComplete())])}waitForNavigation(){return new Promise(e=>this[Dl].navigation.push(e))}abort(){return this.childFrames.length?new Promise((e,I)=>{Promise.all(this.childFrames.map(l=>l.abort()).concat([this[dI].abort()])).then(()=>e()).catch(I)}):this[dI].abort()}evaluate(e){return r0.evaluate(this,e)}goto(e,I){return xa.navigate({windowClass:UG,frame:this,url:e,goToOptions:I})}goBack(e){return xa.navigateBack({windowClass:UG,frame:this,goToOptions:e})}goForward(e){return xa.navigateForward({windowClass:UG,frame:this,goToOptions:e})}goSteps(e,I){return xa.navigateSteps({windowClass:UG,frame:this,steps:e,goToOptions:I})}reload(e){return xa.reload({windowClass:UG,frame:this,goToOptions:e})}};G();var IV=class{#e;#I={};#t={};#l=0;#n=[];constructor(e){this.#e=e}assert(e,I,...l){e||this.#e.print({type:Vn.assert,level:zc.error,message:["Assertion failed:",...I?[I,...l]:l],group:this.#n[this.#n.length-1]||null})}clear(){this.#e.clear()}count(e="default"){this.#I[e]||(this.#I[e]=0),this.#I[e]++,this.#e.print({type:Vn.count,level:zc.info,message:[`${e}: ${this.#I[e]}`],group:this.#n[this.#n.length-1]||null})}countReset(e="default"){delete this.#I[e],this.#e.print({type:Vn.countReset,level:zc.warn,message:[`${e}: 0`],group:this.#n[this.#n.length-1]||null})}debug(e,...I){this.#e.print({type:Vn.debug,level:zc.log,message:e?[e,...I]:I,group:this.#n[this.#n.length-1]||null})}dir(e){this.#e.print({type:Vn.dir,level:zc.log,message:[e],group:this.#n[this.#n.length-1]||null})}dirxml(e){this.#e.print({type:Vn.dirxml,level:zc.log,message:[e],group:this.#n[this.#n.length-1]||null})}error(e,...I){this.#e.print({type:Vn.error,level:zc.error,message:e?[e,...I]:I,group:this.#n[this.#n.length-1]||null})}exception(...e){this.error(...e)}group(e){this.#l++;let I={id:this.#l,label:e||"default",collapsed:!1,parent:this.#n[this.#n.length-1]||null};this.#n.push(I),this.#e.print({type:Vn.group,level:zc.log,message:[e||"default"],group:I})}groupCollapsed(e){this.#l++;let I={id:this.#l,label:e||"default",collapsed:!0,parent:this.#n[this.#n.length-1]||null};this.#n.push(I),this.#e.print({type:Vn.groupCollapsed,level:zc.log,message:[e||"default"],group:I})}groupEnd(){this.#n.length!==0&&this.#n.pop()}info(e,...I){this.#e.print({type:Vn.info,level:zc.info,message:e?[e,...I]:I,group:this.#n[this.#n.length-1]||null})}log(e,...I){this.#e.print({type:Vn.log,level:zc.log,message:e?[e,...I]:I,group:this.#n[this.#n.length-1]||null})}profile(){throw new Error("Method not implemented.")}profileEnd(){throw new Error("Method not implemented.")}table(e){this.#e.print({type:Vn.table,level:zc.log,message:[e],group:this.#n[this.#n.length-1]||null})}time(e="default"){this.#t[e]=performance.now()}timeEnd(e="default"){let I=this.#t[e];if(I){let l=performance.now()-I;this.#e.print({type:Vn.timeEnd,level:zc.info,message:[`${e}: ${l}ms - timer ended`],group:this.#n[this.#n.length-1]||null})}}timeLog(e="default",...I){let l=this.#t[e];if(l){let n=performance.now()-l;this.#e.print({type:Vn.timeLog,level:zc.info,message:[`${e}: ${n}ms`,...I],group:this.#n[this.#n.length-1]||null})}}timeStamp(){throw new Error("Method not implemented.")}trace(e,...I){this.#e.print({type:Vn.trace,level:zc.log,message:[...e?[e,...I]:I,new Error("stack").stack.replace("Error: stack","")],group:this.#n[this.#n.length-1]||null})}warn(e,...I){this.#e.print({type:Vn.warn,level:zc.warn,message:e?[e,...I]:I,group:this.#n[this.#n.length-1]||null})}};G();var Yu=class{static getFrames(e){return this.findFrames(e.mainFrame)}static closePage(e){if(e.closed)return Promise.resolve();e.closed=!0;let I=e.context.pages.indexOf(e);return I!==-1&&e.context.pages.splice(I,1),e.virtualConsolePrinter.close(),Nb.destroyFrame(e.mainFrame)}static findFrames(e){let I=[e];for(let l of e.childFrames)I=I.concat(this.findFrames(l));return I}};var eE=class{virtualConsolePrinter=new bY;mainFrame;context;console;viewport;closed=!1;constructor(e){this.context=e,this.console=e.browser.console??new IV(this.virtualConsolePrinter),this.mainFrame=new $H(this),this.viewport={width:e.browser.settings.viewport.width,height:e.browser.settings.viewport.height,devicePixelRatio:e.browser.settings.viewport.devicePixelRatio}}get frames(){return Yu.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 Yu.closePage(this)}waitUntilComplete(){return this.mainFrame.waitUntilComplete()}waitForNavigation(){return this.mainFrame.waitForNavigation()}abort(){return this.mainFrame.abort()}evaluate(e){return this.mainFrame.evaluate(e)}setViewport(e){let I=Object.assign({},this.viewport);Object.assign(this.viewport,e),(I.width!==this.viewport.width||I.height!==this.viewport.height||I.devicePixelRatio!==this.viewport.devicePixelRatio)&&this.mainFrame.window.dispatchEvent(new K("resize"))}goto(e,I){return this.mainFrame.goto(e,I)}goBack(e){return this.mainFrame.goBack(e)}goForward(e){return this.mainFrame.goForward(e)}goSteps(e,I){return this.mainFrame.goSteps(e,I)}reload(e){return this.mainFrame.reload(e)}};G();var V0=class{#e=new Map;get(e){let I=this.#e.get(e.url);return I?I.expires<Date.now()?(this.#e.delete(e.url),null):I:null}add(e,I){if(this.#e.delete(e.url),e.headers.get("Cache-Control")?.includes("no-cache")||I.status<200||I.status>=300)return null;let l=I.headers.get("Access-Control-Max-Age"),n=I.headers.get("Access-Control-Allow-Origin");if(!l||!n)return null;let c=[];if(I.headers.has("Access-Control-Allow-Methods")&&I.headers.get("Access-Control-Allow-Methods")!=="*")for(let r of I.headers.get("Access-Control-Allow-Methods").split(","))c.push(r.trim().toUpperCase());let a={allowOrigin:n,allowMethods:c,expires:Date.now()+parseInt(l)*1e3};return isNaN(a.expires)||a.expires<Date.now()?null:(this.#e.set(e.url,a),a)}clear(){this.#e.clear()}};var R0=class{pages=[];browser;cookieContainer=new Uy;responseCache=new Sy;preflightResponseCache=new V0;closed=!1;constructor(e){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(l=>l.close()));let e=this.browser,I=e.contexts.indexOf(this);I!==-1&&e.contexts.splice(I,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,I)=>{if(!this.pages.length){e();return}Promise.all(this.pages.slice().map(l=>l.abort())).then(()=>e()).catch(l=>I(l))})}newPage(){let e=new eE(this);return this.pages.push(e),e}};G();G();G();var Sze={version:"19.0.2"};var Mh={disableJavaScriptEvaluation:!1,disableJavaScriptFileLoading:!1,disableCSSFileLoading:!1,disableIframePageLoading:!1,disableComputedStyleRendering:!1,handleDisabledFileLoadingAsSuccess:!1,disableErrorCapturing:!1,errorCapture:tl.tryAndCatch,enableFileSystemHttpRequests:!1,timer:{maxTimeout:-1,maxIntervalTime:-1,maxIntervalIterations:-1,preventTimerLoops:!1},fetch:{disableSameOriginPolicy:!1,disableStrictSSL:!1,interceptor:null,requestHeaders:null,virtualServers:null},navigation:{disableMainFrameNavigation:!1,disableChildFrameNavigation:!1,disableChildPageNavigation:!1,disableFallbackToSetURL:!1,crossOriginPolicy:fX.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/${Sze.version}`,maxTouchPoints:0},device:{prefersColorScheme:"light",prefersReducedMotion:"no-preference",mediaType:"screen",forcedColors:"none"},debug:{traceWaitUntilComplete:-1},viewport:{width:1024,height:768,devicePixelRatio:1}};var y0=class{static createSettings(e){return e&&this.validate(Mh,e),{...Mh,...e,navigation:{...Mh.navigation,...e?.navigation},navigator:{...Mh.navigator,...e?.navigator},timer:{...Mh.timer,...e?.timer},fetch:{...Mh.fetch,...e?.fetch},device:{...Mh.device,...e?.device},debug:{...Mh.debug,...e?.debug},viewport:{...Mh.viewport,...e?.viewport}}}static validate(e,I,l){for(let n of Object.keys(I)){if(e[n]===void 0){let c=l?l+"."+n:n;throw new Error(`Unknown browser setting "${c}"`)}if(typeof e[n]=="object"&&!Array.isArray(e[n])&&e[n]!==null){let c=l?l+"."+n:n;if(typeof I[n]!="object"||Array.isArray(I[n])||I[n]===null)throw new Error(`Browser setting "${c}" cannot be null`);this.validate(e[n],I[n],c)}else if((typeof e[n]=="boolean"||typeof e[n]=="number"||typeof e[n]=="string")&&typeof I[n]!=typeof e[n]&&!(n==="preventTimerLoops"&&typeof I[n]=="object"&&I[n]!==null)){let a=l?l+"."+n:n;throw new Error(`Browser setting "${a}" must be of type "${typeof e[n]}"`)}}}};G();var F0=class{static listenerCount=0;observedWindows=[];uncaughtExceptionListener=null;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=(I,l)=>{if(l==="unhandledRejection")return;let n=null;for(let c of this.observedWindows)if(I instanceof c.Error||I instanceof c.DOMException){n=c;break}n?(n.console.error(I),n.dispatchEvent(new n.ErrorEvent("error",{error:I,message:I.message}))):process.listenerCount("uncaughtException")===this.constructor.listenerCount&&(console.error(I),process.exit(1))},this.uncaughtRejectionListener=I=>{let l=null;for(let n of this.observedWindows)if(I instanceof n.Error||I instanceof n.DOMException){l=n;break}l?(l.console.error(I),l.dispatchEvent(new l.ErrorEvent("error",{error:I,message:I.message}))):process.listenerCount("unhandledRejection")===this.constructor.listenerCount&&(console.error(I),process.exit(1))},this.constructor.listenerCount++,process.on("uncaughtException",this.uncaughtExceptionListener),process.on("unhandledRejection",this.uncaughtRejectionListener))}disconnect(e){let I=this.observedWindows.indexOf(e);I!==-1&&(this.observedWindows.splice(I,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))}};var gP=class{contexts;settings;console;[Ia]=null;constructor(e){this.console=e?.console||null,this.settings=y0.createSettings(e?.settings),this.settings.errorCapture===tl.processLevel&&(this[Ia]=new F0),this.contexts=[new R0(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(I=>I.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,I)=>{if(!this.contexts.length){e();return}Promise.all(this.contexts.slice().map(l=>l.abort())).then(()=>e()).catch(l=>I(l))})}newIncognitoContext(){if(this.contexts.length===0)throw new Error("No default context. The browser has been closed.");let e=new R0(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()}};G();G();G();var g0=class{virtualConsolePrinter=new bY;mainFrame;context;console;viewport;closed=!1;constructor(e){this.context=e,this.console=e.browser.console??new IV(this.virtualConsolePrinter),this.mainFrame=new UY(this),this.viewport={width:e.browser.settings.viewport.width,height:e.browser.settings.viewport.height,devicePixelRatio:e.browser.settings.viewport.devicePixelRatio}}get frames(){return Yu.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,I)=>{let l=this.context;Yu.closePage(this).then(()=>{l.pages[0]===this?l.browser.close().then(e).catch(I):e()}).catch(I)})}waitUntilComplete(){return this.mainFrame.waitUntilComplete()}waitForNavigation(){return this.mainFrame.waitForNavigation()}abort(){return this.mainFrame.abort()}evaluate(e){return this.mainFrame.evaluate(e)}setViewport(e){let I=Object.assign({},this.viewport);Object.assign(this.viewport,e),(I.width!==this.viewport.width||I.height!==this.viewport.height||I.devicePixelRatio!==this.viewport.devicePixelRatio)&&this.mainFrame.window.dispatchEvent(new K("resize"))}goto(e,I){return this.mainFrame.goto(e,I)}goBack(e){return this.mainFrame.goBack(e)}goForward(e){return this.mainFrame.goForward(e)}goSteps(e,I){return this.mainFrame.goSteps(e,I)}reload(e){return this.mainFrame.reload(e)}};var IE=class{pages;browser;cookieContainer=new Uy;responseCache=new Sy;preflightResponseCache=new V0;closed=!1;constructor(e){this.browser=e,this.pages=[],this.pages.push(new g0(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(l=>l.close()));let e=this.browser,I=e.contexts.indexOf(this);I!==-1&&e.contexts.splice(I,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,I)=>{if(!this.pages.length){e();return}Promise.all(this.pages.slice().map(l=>l.abort())).then(()=>e()).catch(l=>I(l))})}newPage(){let e=new g0(this);return this.pages.push(e),e}};var tE=class{contexts;settings;console;windowClass;[Ia]=null;constructor(e,I){this.windowClass=e,this.console=I?.console||null,this.settings=y0.createSettings(I?.settings),this.settings.errorCapture===tl.processLevel&&(this[Ia]=new F0),this.contexts=[],this.contexts.push(new IE(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(I=>I.close()))}async waitUntilComplete(){await Promise.all(this.contexts.map(e=>e.waitUntilComplete()))}abort(){return new Promise((e,I)=>{if(!this.contexts.length){e();return}Promise.all(this.contexts.slice().map(l=>l.abort())).then(()=>e()).catch(l=>I(l))})}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()}};G();var lE=class{#e;constructor(e){this.#e=e}get settings(){return this.#e.page.context.browser.settings}get virtualConsolePrinter(){return this.#e.page.virtualConsolePrinter}waitUntilComplete(){return this.#e.waitUntilComplete()}whenAsyncComplete(){return this.waitUntilComplete()}abort(){return this.#e.abort()}cancelAsync(){return this.abort()}close(){return this.#e.page.close()}setURL(e){this.#e.url=e}setViewport(e){this.#e.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})}};G();G();var tV=class extends UG{happyDOM;constructor(e){let l=new tE(UG,{console:e?.console,settings:e?.settings}).defaultContext.pages[0],n=l.mainFrame;e&&(e.width||e.height||e.innerWidth||e.innerHeight)&&Object.assign(l.viewport,{width:e.width||e.innerWidth||l.viewport.width,height:e.height||e.innerHeight||l.viewport.height}),super(n,{url:e?.url}),n.window=this,n.page.context.browser[Ia]&&n.page.context.browser[Ia].observe(this),this.happyDOM=new lE(n)}};import{Buffer as dLI}from"buffer";var QP=class extends tV{Array=globalThis.Array;ArrayBuffer=globalThis.ArrayBuffer;Boolean=globalThis.Boolean;Buffer=dLI;DataView=globalThis.DataView;Date=globalThis.Date;Error=globalThis.Error;EvalError=globalThis.EvalError;Float32Array=globalThis.Float32Array;Float64Array=globalThis.Float64Array;Function=globalThis.Function;Infinity=globalThis.Infinity;Int16Array=globalThis.Int16Array;Int32Array=globalThis.Int32Array;Int8Array=globalThis.Int8Array;Intl=globalThis.Intl;JSON=globalThis.JSON;Map=globalThis.Map;Math=globalThis.Math;NaN=globalThis.NaN;Number=globalThis.Number;Object=globalThis.Object;Promise=globalThis.Promise;RangeError=globalThis.RangeError;ReferenceError=globalThis.ReferenceError;RegExp=globalThis.RegExp;Set=globalThis.Set;String=globalThis.String;Symbol=globalThis.Symbol;SyntaxError=globalThis.SyntaxError;TypeError=globalThis.TypeError;URIError=globalThis.URIError;Uint16Array=globalThis.Uint16Array;Uint32Array=globalThis.Uint32Array;Uint8Array=globalThis.Uint8Array;Uint8ClampedArray=globalThis.Uint8ClampedArray;WeakMap=globalThis.WeakMap;WeakSet=globalThis.WeakSet;decodeURI=globalThis.decodeURI;decodeURIComponent=globalThis.decodeURIComponent;encodeURI=globalThis.encodeURI;encodeURIComponent=globalThis.encodeURIComponent;eval=globalThis.eval;escape=globalThis.escape;global=globalThis;isFinite=globalThis.isFinite;isNaN=globalThis.isNaN;parseFloat=globalThis.parseFloat;parseInt=globalThis.parseInt;undefined=globalThis.undefined;unescape=globalThis.unescape;[JL](){}};var Oze=5e3,iLI,bLI=["b","blockquote","br","code","em","h1","h2","h3","h4","h5","h6","hr","i","li","ol","p","pre","strong","sub","sup","table","tbody","td","th","thead","tr","ul","img","a","#text"],mLI=["href","src"],Mze={img:["src"],a:["href"]};var hLI=new tV,pLI={ALLOWED_TAGS:bLI,ALLOW_DATA_ATTR:!1,ALLOWED_ATTR:mLI,KEEP_CONTENT:!1,RETURN_DOM:!1,RETURN_DOM_FRAGMENT:!1,WHOLE_DOCUMENT:!1,SANITIZE_DOM:!0,SAFE_FOR_TEMPLATES:!1,SAFE_FOR_XML:!0,RETURN_TRUSTED_TYPE:!1,USE_PROFILES:!1};function ZLI(t,e,I){let l=t.tagName.toLowerCase();if(!(l in Mze)){e.forceKeepAttr=!1,e.keepAttr=!1;return}let n=Mze[l],c=e.attrName.toLowerCase();if(!n.includes(c)){e.forceKeepAttr=!1,e.keepAttr=!1;return}if(l==="img"&&c==="src"||l==="a"&&c==="href"){try{let a=URL.parse(e.attrValue);if(a&&(a.protocol==="http:"||a.protocol==="https:"))return}catch{}e.forceKeepAttr=!1,e.keepAttr=!1}}function Pie(t,e){if(!t)return t;try{return Tze(t,e)}catch(I){throw new Error(`Failed to apply content filter: ${I}`)}}function qie(t){switch(t.toLowerCase()){case"none":return"none";case"markdown":return"markdown";case"hidden_characters":return"hidden_characters";default:return"hidden_characters"}}function _ie(t,e){if(t===null||typeof t!="object")return t;for(let[I,l]of Object.entries(t))if(typeof l=="string"){let n=Pie(l,e);t[I]=n}else typeof l=="object"&&l!==null&&(t[I]=_ie(l,e));return t}function Tze(t,e,I=[]){if(!t||e==="none")return t;switch(e||(e="markdown"),e){case"markdown":return Vu(t,I);case"hidden_characters":return jze(t);default:throw new Error(`Unknown filter mode: ${e}`)}}function Vu(t,e=[]){if(!t)return t;let I=jze(t),l=/((?:^|\n)```.*?\n[\s\S\n]+?\n```)|(`[\s\S\n]+?`)/gm,n="",c=0,a=new Map,s=0;for(let r of I.matchAll(l)){let o=r[0],d=r.index,i=d+o.length;n+=I.slice(c,d);let h=`*****__CODE_BLOCK_${s}__*****`;n+=h,a.set(h,o),c=i,s++}n+=I.slice(c),n=n.replace(/!\[(.*?)\]\((\S+?)(?:\s+"[^"]*")?\)/g,'<img src="$2">').replace(/\[(.*?)\]\((\S+?)(?:\s+"[^"]*")?\)/g,'<a href="$2">$1</a>').replace(/<([^!/A-Za-z0-9>])/g,"&lt;$1").replace(/<(https:\/\/.+)>/g,'<a href="$1">$1</a>'),n=uLI(n,e);for(let[r,o]of a)n=n.replaceAll(r,o);return n}function uLI(t,e=[]){let I=_Be(hLI);I.addHook("uponSanitizeAttribute",ZLI),I.setConfig({...pLI,ADD_TAGS:e});let l=!1,n="<__filter_complete__></__filter_complete__>",c=setTimeout(()=>{l=!0},Oze),a=I.sanitize(t+n);for(;!l&&a.endsWith(n);)a=I.sanitize(a);return l&&(iLI?.error(`Content filtering timed out after ${Oze}ms. Returning partially filtered content.`),a=a.slice(0,a.length-n.length)),clearTimeout(c),a}function jze(t){let e=t.normalize("NFD"),I="";do I=e,e=e.replaceAll(/[\u{E0001}\u{E0020}-\u{E007F}\u{2066}-\u{2069}\u{202A}-\u{202E}\u{200B}\u{200C}\u{200E}\u{200F}\u{00AD}\u{FEFF}\u{180E}\u{2060}-\u{2064}]/gu,"");while(e!==I);return e.normalize("NFC")}G();import*as ni from"fs";import{existsSync as nV}from"fs";G();G();G();G();var $ie=(t,e,I)=>{let l=t instanceof RegExp?Dze(t,I):t,n=e instanceof RegExp?Dze(e,I):e,c=l!==null&&n!=null&&WLI(l,n,I);return c&&{start:c[0],end:c[1],pre:I.slice(0,c[0]),body:I.slice(c[0]+l.length,c[1]),post:I.slice(c[1]+n.length)}},Dze=(t,e)=>{let I=e.match(t);return I?I[0]:null},WLI=(t,e,I)=>{let l,n,c,a,s,r=I.indexOf(t),o=I.indexOf(e,r+1),d=r;if(r>=0&&o>0){if(t===e)return[r,o];for(l=[],c=I.length;d>=0&&!s;){if(d===r)l.push(d),r=I.indexOf(t,d+1);else if(l.length===1){let i=l.pop();i!==void 0&&(s=[i,o])}else n=l.pop(),n!==void 0&&n<c&&(c=n,a=o),o=I.indexOf(e,d+1);d=r<o&&r>=0?r:o}l.length&&a!==void 0&&(s=[c,a])}return s};var Kze="\0SLASH"+Math.random()+"\0",Pze="\0OPEN"+Math.random()+"\0",Ibe="\0CLOSE"+Math.random()+"\0",qze="\0COMMA"+Math.random()+"\0",_ze="\0PERIOD"+Math.random()+"\0",NLI=new RegExp(Kze,"g"),YLI=new RegExp(Pze,"g"),VLI=new RegExp(Ibe,"g"),RLI=new RegExp(qze,"g"),yLI=new RegExp(_ze,"g"),FLI=/\\\\/g,gLI=/\\{/g,QLI=/\\}/g,ALI=/\\,/g,wLI=/\\./g;function ebe(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}function XLI(t){return t.replace(FLI,Kze).replace(gLI,Pze).replace(QLI,Ibe).replace(ALI,qze).replace(wLI,_ze)}function HLI(t){return t.replace(NLI,"\\").replace(YLI,"{").replace(VLI,"}").replace(RLI,",").replace(yLI,".")}function $ze(t){if(!t)return[""];let e=[],I=$ie("{","}",t);if(!I)return t.split(",");let{pre:l,body:n,post:c}=I,a=l.split(",");a[a.length-1]+="{"+n+"}";let s=$ze(c);return c.length&&(a[a.length-1]+=s.shift(),a.push.apply(a,s)),e.push.apply(e,a),e}function eUe(t){return t?(t.slice(0,2)==="{}"&&(t="\\{\\}"+t.slice(2)),r9(XLI(t),!0).map(HLI)):[]}function ELI(t){return"{"+t+"}"}function vLI(t){return/^-?0\d/.test(t)}function CLI(t,e){return t<=e}function JLI(t,e){return t>=e}function r9(t,e){let I=[],l=$ie("{","}",t);if(!l)return[t];let n=l.pre,c=l.post.length?r9(l.post,!1):[""];if(/\$$/.test(l.pre))for(let a=0;a<c.length;a++){let s=n+"{"+l.body+"}"+c[a];I.push(s)}else{let a=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(l.body),s=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(l.body),r=a||s,o=l.body.indexOf(",")>=0;if(!r&&!o)return l.post.match(/,(?!,).*\}/)?(t=l.pre+"{"+l.body+Ibe+l.post,r9(t)):[t];let d;if(r)d=l.body.split(/\.\./);else if(d=$ze(l.body),d.length===1&&d[0]!==void 0&&(d=r9(d[0],!1).map(ELI),d.length===1))return c.map(h=>l.pre+d[0]+h);let i;if(r&&d[0]!==void 0&&d[1]!==void 0){let h=ebe(d[0]),p=ebe(d[1]),Z=Math.max(d[0].length,d[1].length),u=d.length===3&&d[2]!==void 0?Math.abs(ebe(d[2])):1,N=CLI;p<h&&(u*=-1,N=JLI);let y=d.some(vLI);i=[];for(let Q=h;N(Q,p);Q+=u){let A;if(s)A=String.fromCharCode(Q),A==="\\"&&(A="");else if(A=String(Q),y){let w=Z-A.length;if(w>0){let f=new Array(w+1).join("0");Q<0?A="-"+f+A.slice(1):A=f+A}}i.push(A)}}else{i=[];for(let h=0;h<d.length;h++)i.push.apply(i,r9(d[h],!1))}for(let h=0;h<i.length;h++)for(let p=0;p<c.length;p++){let Z=n+i[h]+c[p];(!e||r||Z)&&I.push(Z)}}return I}G();var G9=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")};G();G();var LLI={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},o9=t=>t.replace(/[[\]\\-]/g,"\\$&"),kLI=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),IUe=t=>t.join(""),tUe=(t,e)=>{let I=e;if(t.charAt(I)!=="[")throw new Error("not in a brace expression");let l=[],n=[],c=I+1,a=!1,s=!1,r=!1,o=!1,d=I,i="";e:for(;c<t.length;){let u=t.charAt(c);if((u==="!"||u==="^")&&c===I+1){o=!0,c++;continue}if(u==="]"&&a&&!r){d=c+1;break}if(a=!0,u==="\\"&&!r){r=!0,c++;continue}if(u==="["&&!r){for(let[N,[Y,y,Q]]of Object.entries(LLI))if(t.startsWith(N,c)){if(i)return["$.",!1,t.length-I,!0];c+=N.length,Q?n.push(Y):l.push(Y),s=s||y;continue e}}if(r=!1,i){u>i?l.push(o9(i)+"-"+o9(u)):u===i&&l.push(o9(u)),i="",c++;continue}if(t.startsWith("-]",c+1)){l.push(o9(u+"-")),c+=2;continue}if(t.startsWith("-",c+1)){i=u,c+=2;continue}l.push(o9(u)),c++}if(d<c)return["",!1,0,!1];if(!l.length&&!n.length)return["$.",!1,t.length-I,!0];if(n.length===0&&l.length===1&&/^\\?.$/.test(l[0])&&!o){let u=l[0].length===2?l[0].slice(-1):l[0];return[kLI(u),!1,d-I,!1]}let h="["+(o?"^":"")+IUe(l)+"]",p="["+(o?"":"^")+IUe(n)+"]";return[l.length&&n.length?"("+h+"|"+p+")":l.length?h:p,s,d-I,!0]};G();var Fb=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");var fLI=new Set(["!","?","+","*","@"]),lUe=t=>fLI.has(t),xLI="(?!(?:^|/)\\.\\.?(?:$|/))",AP="(?!\\.)",BLI=new Set(["[","."]),zLI=new Set(["..","."]),ULI=new Set("().*{}+?[]^$\\!"),SLI=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),tbe="[^/]",nUe=tbe+"*?",cUe=tbe+"+?",nE=class t{type;#e;#I;#t=!1;#l=[];#n;#a;#G;#s=!1;#o;#d;#i=!1;constructor(e,I,l={}){this.type=e,e&&(this.#I=!0),this.#n=I,this.#e=this.#n?this.#n.#e:this,this.#o=this.#e===this?l:this.#e.#o,this.#G=this.#e===this?[]:this.#e.#G,e==="!"&&!this.#e.#s&&this.#G.push(this),this.#a=this.#n?this.#n.#l.length:0}get hasMagic(){if(this.#I!==void 0)return this.#I;for(let e of this.#l)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#I=!0;return this.#I}toString(){return this.#d!==void 0?this.#d:this.type?this.#d=this.type+"("+this.#l.map(e=>String(e)).join("|")+")":this.#d=this.#l.map(e=>String(e)).join("")}#c(){if(this!==this.#e)throw new Error("should only call on root");if(this.#s)return this;this.toString(),this.#s=!0;let e;for(;e=this.#G.pop();){if(e.type!=="!")continue;let I=e,l=I.#n;for(;l;){for(let n=I.#a+1;!l.type&&n<l.#l.length;n++)for(let c of e.#l){if(typeof c=="string")throw new Error("string part in extglob AST??");c.copyIn(l.#l[n])}I=l,l=I.#n}}return this}push(...e){for(let I of e)if(I!==""){if(typeof I!="string"&&!(I instanceof t&&I.#n===this))throw new Error("invalid part: "+I);this.#l.push(I)}}toJSON(){let e=this.type===null?this.#l.slice().map(I=>typeof I=="string"?I:I.toJSON()):[this.type,...this.#l.map(I=>I.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#s&&this.#n?.type==="!")&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#n?.isStart())return!1;if(this.#a===0)return!0;let e=this.#n;for(let I=0;I<this.#a;I++){let l=e.#l[I];if(!(l instanceof t&&l.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#n?.type==="!")return!0;if(!this.#n?.isEnd())return!1;if(!this.type)return this.#n?.isEnd();let e=this.#n?this.#n.#l.length:0;return this.#a===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let I=new t(this.type,e);for(let l of this.#l)I.copyIn(l);return I}static#m(e,I,l,n){let c=!1,a=!1,s=-1,r=!1;if(I.type===null){let p=l,Z="";for(;p<e.length;){let u=e.charAt(p++);if(c||u==="\\"){c=!c,Z+=u;continue}if(a){p===s+1?(u==="^"||u==="!")&&(r=!0):u==="]"&&!(p===s+2&&r)&&(a=!1),Z+=u;continue}else if(u==="["){a=!0,s=p,r=!1,Z+=u;continue}if(!n.noext&&lUe(u)&&e.charAt(p)==="("){I.push(Z),Z="";let N=new t(u,I);p=t.#m(e,N,p,n),I.push(N);continue}Z+=u}return I.push(Z),p}let o=l+1,d=new t(null,I),i=[],h="";for(;o<e.length;){let p=e.charAt(o++);if(c||p==="\\"){c=!c,h+=p;continue}if(a){o===s+1?(p==="^"||p==="!")&&(r=!0):p==="]"&&!(o===s+2&&r)&&(a=!1),h+=p;continue}else if(p==="["){a=!0,s=o,r=!1,h+=p;continue}if(lUe(p)&&e.charAt(o)==="("){d.push(h),h="";let Z=new t(p,d);d.push(Z),o=t.#m(e,Z,o,n);continue}if(p==="|"){d.push(h),h="",i.push(d),d=new t(null,I);continue}if(p===")")return h===""&&I.#l.length===0&&(I.#i=!0),d.push(h),h="",I.push(...i,d),o;h+=p}return I.type=null,I.#I=void 0,I.#l=[e.substring(l-1)],o}static fromGlob(e,I={}){let l=new t(null,void 0,I);return t.#m(e,l,0,I),l}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[I,l,n,c]=this.toRegExpSource();if(!(n||this.#I||this.#o.nocase&&!this.#o.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return l;let s=(this.#o.nocase?"i":"")+(c?"u":"");return Object.assign(new RegExp(`^${I}$`,s),{_src:I,_glob:e})}get options(){return this.#o}toRegExpSource(e){let I=e??!!this.#o.dot;if(this.#e===this&&this.#c(),!this.type){let r=this.isStart()&&this.isEnd(),o=this.#l.map(p=>{let[Z,u,N,Y]=typeof p=="string"?t.#p(p,this.#I,r):p.toRegExpSource(e);return this.#I=this.#I||N,this.#t=this.#t||Y,Z}).join(""),d="";if(this.isStart()&&typeof this.#l[0]=="string"&&!(this.#l.length===1&&zLI.has(this.#l[0]))){let Z=BLI,u=I&&Z.has(o.charAt(0))||o.startsWith("\\.")&&Z.has(o.charAt(2))||o.startsWith("\\.\\.")&&Z.has(o.charAt(4)),N=!I&&!e&&Z.has(o.charAt(0));d=u?xLI:N?AP:""}let i="";return this.isEnd()&&this.#e.#s&&this.#n?.type==="!"&&(i="(?:$|\\/)"),[d+o+i,Fb(o),this.#I=!!this.#I,this.#t]}let l=this.type==="*"||this.type==="+",n=this.type==="!"?"(?:(?!(?:":"(?:",c=this.#W(I);if(this.isStart()&&this.isEnd()&&!c&&this.type!=="!"){let r=this.toString();return this.#l=[r],this.type=null,this.#I=void 0,[r,Fb(this.toString()),!1,!1]}let a=!l||e||I||!AP?"":this.#W(!0);a===c&&(a=""),a&&(c=`(?:${c})(?:${a})*?`);let s="";if(this.type==="!"&&this.#i)s=(this.isStart()&&!I?AP:"")+cUe;else{let r=this.type==="!"?"))"+(this.isStart()&&!I&&!e?AP:"")+nUe+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`;s=n+c+r}return[s,Fb(c),this.#I=!!this.#I,this.#t]}#W(e){return this.#l.map(I=>{if(typeof I=="string")throw new Error("string type in extglob ast??");let[l,n,c,a]=I.toRegExpSource(e);return this.#t=this.#t||a,l}).filter(I=>!(this.isStart()&&this.isEnd())||!!I).join("|")}static#p(e,I,l=!1){let n=!1,c="",a=!1;for(let s=0;s<e.length;s++){let r=e.charAt(s);if(n){n=!1,c+=(ULI.has(r)?"\\":"")+r;continue}if(r==="\\"){s===e.length-1?c+="\\\\":n=!0;continue}if(r==="["){let[o,d,i,h]=tUe(e,s);if(i){c+=o,a=a||d,s+=i-1,I=I||h;continue}}if(r==="*"){l&&e==="*"?c+=cUe:c+=nUe,I=!0;continue}if(r==="?"){c+=tbe,I=!0;continue}c+=SLI(r)}return[c,Fb(e),!!I,a]}};G();var cE=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&");var Tr=(t,e,I={})=>(G9(e),!I.nocomment&&e.charAt(0)==="#"?!1:new $o(e,I).match(t)),OLI=/^\*+([^+@!?\*\[\(]*)$/,MLI=t=>e=>!e.startsWith(".")&&e.endsWith(t),TLI=t=>e=>e.endsWith(t),jLI=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),DLI=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),KLI=/^\*+\.\*+$/,PLI=t=>!t.startsWith(".")&&t.includes("."),qLI=t=>t!=="."&&t!==".."&&t.includes("."),_LI=/^\.\*+$/,$LI=t=>t!=="."&&t!==".."&&t.startsWith("."),e3I=/^\*+$/,I3I=t=>t.length!==0&&!t.startsWith("."),t3I=t=>t.length!==0&&t!=="."&&t!=="..",l3I=/^\?+([^+@!?\*\[\(]*)?$/,n3I=([t,e=""])=>{let I=rUe([t]);return e?(e=e.toLowerCase(),l=>I(l)&&l.toLowerCase().endsWith(e)):I},c3I=([t,e=""])=>{let I=GUe([t]);return e?(e=e.toLowerCase(),l=>I(l)&&l.toLowerCase().endsWith(e)):I},a3I=([t,e=""])=>{let I=GUe([t]);return e?l=>I(l)&&l.endsWith(e):I},s3I=([t,e=""])=>{let I=rUe([t]);return e?l=>I(l)&&l.endsWith(e):I},rUe=([t])=>{let e=t.length;return I=>I.length===e&&!I.startsWith(".")},GUe=([t])=>{let e=t.length;return I=>I.length===e&&I!=="."&&I!==".."},oUe=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",aUe={win32:{sep:"\\"},posix:{sep:"/"}},r3I=oUe==="win32"?aUe.win32.sep:aUe.posix.sep;Tr.sep=r3I;var ms=Symbol("globstar **");Tr.GLOBSTAR=ms;var G3I="[^/]",o3I=G3I+"*?",d3I="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",i3I="(?:(?!(?:\\/|^)\\.).)*?",b3I=(t,e={})=>I=>Tr(I,t,e);Tr.filter=b3I;var Ii=(t,e={})=>Object.assign({},t,e),m3I=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return Tr;let e=Tr;return Object.assign((l,n,c={})=>e(l,n,Ii(t,c)),{Minimatch:class extends e.Minimatch{constructor(n,c={}){super(n,Ii(t,c))}static defaults(n){return e.defaults(Ii(t,n)).Minimatch}},AST:class extends e.AST{constructor(n,c,a={}){super(n,c,Ii(t,a))}static fromGlob(n,c={}){return e.AST.fromGlob(n,Ii(t,c))}},unescape:(l,n={})=>e.unescape(l,Ii(t,n)),escape:(l,n={})=>e.escape(l,Ii(t,n)),filter:(l,n={})=>e.filter(l,Ii(t,n)),defaults:l=>e.defaults(Ii(t,l)),makeRe:(l,n={})=>e.makeRe(l,Ii(t,n)),braceExpand:(l,n={})=>e.braceExpand(l,Ii(t,n)),match:(l,n,c={})=>e.match(l,n,Ii(t,c)),sep:e.sep,GLOBSTAR:ms})};Tr.defaults=m3I;var dUe=(t,e={})=>(G9(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:eUe(t));Tr.braceExpand=dUe;var h3I=(t,e={})=>new $o(t,e).makeRe();Tr.makeRe=h3I;var p3I=(t,e,I={})=>{let l=new $o(e,I);return t=t.filter(n=>l.match(n)),l.options.nonull&&!t.length&&t.push(e),t};Tr.match=p3I;var sUe=/[?*]|[+@!]\(.*?\)|\[|\]/,Z3I=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),$o=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(e,I={}){G9(e),I=I||{},this.options=I,this.pattern=e,this.platform=I.platform||oUe,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!I.windowsPathsNoEscape||I.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!I.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!I.nonegate,this.comment=!1,this.empty=!1,this.partial=!!I.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=I.windowsNoMagicRoot!==void 0?I.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let I of e)if(typeof I!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,I=this.options;if(!I.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],I.debug&&(this.debug=(...c)=>console.error(...c)),this.debug(this.pattern,this.globSet);let l=this.globSet.map(c=>this.slashSplit(c));this.globParts=this.preprocess(l),this.debug(this.pattern,this.globParts);let n=this.globParts.map((c,a,s)=>{if(this.isWindows&&this.windowsNoMagicRoot){let r=c[0]===""&&c[1]===""&&(c[2]==="?"||!sUe.test(c[2]))&&!sUe.test(c[3]),o=/^[a-z]:/i.test(c[0]);if(r)return[...c.slice(0,4),...c.slice(4).map(d=>this.parse(d))];if(o)return[c[0],...c.slice(1).map(d=>this.parse(d))]}return c.map(r=>this.parse(r))});if(this.debug(this.pattern,n),this.set=n.filter(c=>c.indexOf(!1)===-1),this.isWindows)for(let c=0;c<this.set.length;c++){let a=this.set[c];a[0]===""&&a[1]===""&&this.globParts[c][2]==="?"&&typeof a[3]=="string"&&/^[a-z]:$/i.test(a[3])&&(a[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let l=0;l<e.length;l++)for(let n=0;n<e[l].length;n++)e[l][n]==="**"&&(e[l][n]="*");let{optimizationLevel:I=1}=this.options;return I>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):I>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(I=>{let l=-1;for(;(l=I.indexOf("**",l+1))!==-1;){let n=l;for(;I[n+1]==="**";)n++;n!==l&&I.splice(l,n-l)}return I})}levelOneOptimize(e){return e.map(I=>(I=I.reduce((l,n)=>{let c=l[l.length-1];return n==="**"&&c==="**"?l:n===".."&&c&&c!==".."&&c!=="."&&c!=="**"?(l.pop(),l):(l.push(n),l)},[]),I.length===0?[""]:I))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let I=!1;do{if(I=!1,!this.preserveMultipleSlashes){for(let n=1;n<e.length-1;n++){let c=e[n];n===1&&c===""&&e[0]===""||(c==="."||c==="")&&(I=!0,e.splice(n,1),n--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(I=!0,e.pop())}let l=0;for(;(l=e.indexOf("..",l+1))!==-1;){let n=e[l-1];n&&n!=="."&&n!==".."&&n!=="**"&&(I=!0,e.splice(l-1,2),l-=2)}}while(I);return e.length===0?[""]:e}firstPhasePreProcess(e){let I=!1;do{I=!1;for(let l of e){let n=-1;for(;(n=l.indexOf("**",n+1))!==-1;){let a=n;for(;l[a+1]==="**";)a++;a>n&&l.splice(n+1,a-n);let s=l[n+1],r=l[n+2],o=l[n+3];if(s!==".."||!r||r==="."||r===".."||!o||o==="."||o==="..")continue;I=!0,l.splice(n,1);let d=l.slice(0);d[n]="**",e.push(d),n--}if(!this.preserveMultipleSlashes){for(let a=1;a<l.length-1;a++){let s=l[a];a===1&&s===""&&l[0]===""||(s==="."||s==="")&&(I=!0,l.splice(a,1),a--)}l[0]==="."&&l.length===2&&(l[1]==="."||l[1]==="")&&(I=!0,l.pop())}let c=0;for(;(c=l.indexOf("..",c+1))!==-1;){let a=l[c-1];if(a&&a!=="."&&a!==".."&&a!=="**"){I=!0;let r=c===1&&l[c+1]==="**"?["."]:[];l.splice(c-1,2,...r),l.length===0&&l.push(""),c-=2}}}}while(I);return e}secondPhasePreProcess(e){for(let I=0;I<e.length-1;I++)for(let l=I+1;l<e.length;l++){let n=this.partsMatch(e[I],e[l],!this.preserveMultipleSlashes);if(n){e[I]=[],e[l]=n;break}}return e.filter(I=>I.length)}partsMatch(e,I,l=!1){let n=0,c=0,a=[],s="";for(;n<e.length&&c<I.length;)if(e[n]===I[c])a.push(s==="b"?I[c]:e[n]),n++,c++;else if(l&&e[n]==="**"&&I[c]===e[n+1])a.push(e[n]),n++;else if(l&&I[c]==="**"&&e[n]===I[c+1])a.push(I[c]),c++;else if(e[n]==="*"&&I[c]&&(this.options.dot||!I[c].startsWith("."))&&I[c]!=="**"){if(s==="b")return!1;s="a",a.push(e[n]),n++,c++}else if(I[c]==="*"&&e[n]&&(this.options.dot||!e[n].startsWith("."))&&e[n]!=="**"){if(s==="a")return!1;s="b",a.push(I[c]),n++,c++}else return!1;return e.length===I.length&&a}parseNegate(){if(this.nonegate)return;let e=this.pattern,I=!1,l=0;for(let n=0;n<e.length&&e.charAt(n)==="!";n++)I=!I,l++;l&&(this.pattern=e.slice(l)),this.negate=I}matchOne(e,I,l=!1){let n=this.options;if(this.isWindows){let u=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),N=!u&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),Y=typeof I[0]=="string"&&/^[a-z]:$/i.test(I[0]),y=!Y&&I[0]===""&&I[1]===""&&I[2]==="?"&&typeof I[3]=="string"&&/^[a-z]:$/i.test(I[3]),Q=N?3:u?0:void 0,A=y?3:Y?0:void 0;if(typeof Q=="number"&&typeof A=="number"){let[w,f]=[e[Q],I[A]];w.toLowerCase()===f.toLowerCase()&&(I[A]=w,A>Q?I=I.slice(A):Q>A&&(e=e.slice(Q)))}}let{optimizationLevel:c=1}=this.options;c>=2&&(e=this.levelTwoFileOptimize(e)),this.debug("matchOne",this,{file:e,pattern:I}),this.debug("matchOne",e.length,I.length);for(var a=0,s=0,r=e.length,o=I.length;a<r&&s<o;a++,s++){this.debug("matchOne loop");var d=I[s],i=e[a];if(this.debug(I,d,i),d===!1)return!1;if(d===ms){this.debug("GLOBSTAR",[I,d,i]);var h=a,p=s+1;if(p===o){for(this.debug("** at the end");a<r;a++)if(e[a]==="."||e[a]===".."||!n.dot&&e[a].charAt(0)===".")return!1;return!0}for(;h<r;){var Z=e[h];if(this.debug(`
928
928
  globstar while`,e,h,I,p,Z),this.matchOne(e.slice(h),I.slice(p),l))return this.debug("globstar found match!",h,r,Z),!0;if(Z==="."||Z===".."||!n.dot&&Z.charAt(0)==="."){this.debug("dot detected!",e,h,I,p);break}this.debug("globstar swallow a segment, and continue"),h++}return!!(l&&(this.debug(`
929
929
  >>> no match, partial?`,e,h,I,p),h===r))}let u;if(typeof d=="string"?(u=i===d,this.debug("string match",d,i,u)):(u=d.test(i),this.debug("pattern match",d,i,u)),!u)return!1}if(a===r&&s===o)return!0;if(a===r)return l;if(s===o)return a===r-1&&e[a]==="";throw new Error("wtf?")}braceExpand(){return dUe(this.pattern,this.options)}parse(e){G9(e);let I=this.options;if(e==="**")return ms;if(e==="")return"";let l,n=null;(l=e.match(e3I))?n=I.dot?t3I:I3I:(l=e.match(OLI))?n=(I.nocase?I.dot?DLI:jLI:I.dot?TLI:MLI)(l[1]):(l=e.match(l3I))?n=(I.nocase?I.dot?c3I:n3I:I.dot?a3I:s3I)(l):(l=e.match(KLI))?n=I.dot?qLI:PLI:(l=e.match(_LI))&&(n=$LI);let c=nE.fromGlob(e,this.options).toMMPattern();return n&&typeof c=="object"&&Reflect.defineProperty(c,"test",{value:n}),c}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let I=this.options,l=I.noglobstar?o3I:I.dot?d3I:i3I,n=new Set(I.nocase?["i"]:[]),c=e.map(r=>{let o=r.map(d=>{if(d instanceof RegExp)for(let i of d.flags.split(""))n.add(i);return typeof d=="string"?Z3I(d):d===ms?ms:d._src});return o.forEach((d,i)=>{let h=o[i+1],p=o[i-1];d!==ms||p===ms||(p===void 0?h!==void 0&&h!==ms?o[i+1]="(?:\\/|"+l+"\\/)?"+h:o[i]=l:h===void 0?o[i-1]=p+"(?:\\/|"+l+")?":h!==ms&&(o[i-1]=p+"(?:\\/|\\/"+l+"\\/)"+h,o[i+1]=ms))}),o.filter(d=>d!==ms).join("/")}).join("|"),[a,s]=e.length>1?["(?:",")"]:["",""];c="^"+a+c+s+"$",this.negate&&(c="^(?!"+c+").+$");try{this.regexp=new RegExp(c,[...n].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,I=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&I)return!0;let l=this.options;this.isWindows&&(e=e.split("\\").join("/"));let n=this.slashSplit(e);this.debug(this.pattern,"split",n);let c=this.set;this.debug(this.pattern,"set",c);let a=n[n.length-1];if(!a)for(let s=n.length-2;!a&&s>=0;s--)a=n[s];for(let s=0;s<c.length;s++){let r=c[s],o=n;if(l.matchBase&&r.length===1&&(o=[a]),this.matchOne(o,r,I))return l.flipNegate?!0:!this.negate}return l.flipNegate?!1:this.negate}static defaults(e){return Tr.defaults(e).Minimatch}};Tr.AST=nE;Tr.Minimatch=$o;Tr.escape=cE;Tr.unescape=Fb;G();import{fileURLToPath as x3I}from"node:url";G();G();var aE=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,bUe=new Set,lbe=typeof process=="object"&&process?process:{},mUe=(t,e,I,l)=>{typeof lbe.emitWarning=="function"?lbe.emitWarning(t,e,I,l):console.error(`[${I}] ${e}: ${t}`)},wP=globalThis.AbortController,iUe=globalThis.AbortSignal;if(typeof wP>"u"){iUe=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(l,n){this._onabort.push(n)}},wP=class{constructor(){e()}signal=new iUe;abort(l){if(!this.signal.aborted){this.signal.reason=l,this.signal.aborted=!0;for(let n of this.signal._onabort)n(l);this.signal.onabort?.(l)}}};let t=lbe.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,mUe("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var u3I=t=>!bUe.has(t),gSl=Symbol("type"),lV=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),hUe=t=>lV(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?sE:null:null,sE=class extends Array{constructor(e){super(e),this.fill(0)}},nbe=class t{heap;length;static#e=!1;static create(e){let I=hUe(e);if(!I)return[];t.#e=!0;let l=new t(e,I);return t.#e=!1,l}constructor(e,I){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new I(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},d9=class t{#e;#I;#t;#l;#n;#a;#G;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#s;#o;#d;#i;#c;#m;#W;#p;#Z;#Q;#u;#A;#V;#Y;#N;#F;#h;#X;static unsafeExposeInternals(e){return{starts:e.#V,ttls:e.#Y,sizes:e.#A,keyMap:e.#d,keyList:e.#i,valList:e.#c,next:e.#m,prev:e.#W,get head(){return e.#p},get tail(){return e.#Z},free:e.#Q,isBackgroundFetch:I=>e.#b(I),backgroundFetch:(I,l,n,c)=>e.#J(I,l,n,c),moveToTail:I=>e.#f(I),indexes:I=>e.#g(I),rindexes:I=>e.#w(I),isStale:I=>e.#y(I)}}get max(){return this.#e}get maxSize(){return this.#I}get calculatedSize(){return this.#o}get size(){return this.#s}get fetchMethod(){return this.#a}get memoMethod(){return this.#G}get dispose(){return this.#t}get onInsert(){return this.#l}get disposeAfter(){return this.#n}constructor(e){let{max:I=0,ttl:l,ttlResolution:n=1,ttlAutopurge:c,updateAgeOnGet:a,updateAgeOnHas:s,allowStale:r,dispose:o,onInsert:d,disposeAfter:i,noDisposeOnSet:h,noUpdateTTL:p,maxSize:Z=0,maxEntrySize:u=0,sizeCalculation:N,fetchMethod:Y,memoMethod:y,noDeleteOnFetchRejection:Q,noDeleteOnStaleGet:A,allowStaleOnFetchRejection:w,allowStaleOnFetchAbort:f,ignoreFetchAbort:J}=e;if(I!==0&&!lV(I))throw new TypeError("max option must be a nonnegative integer");let H=I?hUe(I):Array;if(!H)throw new Error("invalid max value: "+I);if(this.#e=I,this.#I=Z,this.maxEntrySize=u||this.#I,this.sizeCalculation=N,this.sizeCalculation){if(!this.#I&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(y!==void 0&&typeof y!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#G=y,Y!==void 0&&typeof Y!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#a=Y,this.#F=!!Y,this.#d=new Map,this.#i=new Array(I).fill(void 0),this.#c=new Array(I).fill(void 0),this.#m=new H(I),this.#W=new H(I),this.#p=0,this.#Z=0,this.#Q=nbe.create(I),this.#s=0,this.#o=0,typeof o=="function"&&(this.#t=o),typeof d=="function"&&(this.#l=d),typeof i=="function"?(this.#n=i,this.#u=[]):(this.#n=void 0,this.#u=void 0),this.#N=!!this.#t,this.#X=!!this.#l,this.#h=!!this.#n,this.noDisposeOnSet=!!h,this.noUpdateTTL=!!p,this.noDeleteOnFetchRejection=!!Q,this.allowStaleOnFetchRejection=!!w,this.allowStaleOnFetchAbort=!!f,this.ignoreFetchAbort=!!J,this.maxEntrySize!==0){if(this.#I!==0&&!lV(this.#I))throw new TypeError("maxSize must be a positive integer if specified");if(!lV(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#B()}if(this.allowStale=!!r,this.noDeleteOnStaleGet=!!A,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!s,this.ttlResolution=lV(n)||n===0?n:1,this.ttlAutopurge=!!c,this.ttl=l||0,this.ttl){if(!lV(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#r()}if(this.#e===0&&this.ttl===0&&this.#I===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#I){let v="LRU_CACHE_UNBOUNDED";u3I(v)&&(bUe.add(v),mUe("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",v,t))}}getRemainingTTL(e){return this.#d.has(e)?1/0:0}#r(){let e=new sE(this.#e),I=new sE(this.#e);this.#Y=e,this.#V=I,this.#H=(c,a,s=aE.now())=>{if(I[c]=a!==0?s:0,e[c]=a,a!==0&&this.ttlAutopurge){let r=setTimeout(()=>{this.#y(c)&&this.#E(this.#i[c],"expire")},a+1);r.unref&&r.unref()}},this.#v=c=>{I[c]=e[c]!==0?aE.now():0},this.#R=(c,a)=>{if(e[a]){let s=e[a],r=I[a];if(!s||!r)return;c.ttl=s,c.start=r,c.now=l||n();let o=c.now-r;c.remainingTTL=s-o}};let l=0,n=()=>{let c=aE.now();if(this.ttlResolution>0){l=c;let a=setTimeout(()=>l=0,this.ttlResolution);a.unref&&a.unref()}return c};this.getRemainingTTL=c=>{let a=this.#d.get(c);if(a===void 0)return 0;let s=e[a],r=I[a];if(!s||!r)return 1/0;let o=(l||n())-r;return s-o},this.#y=c=>{let a=I[c],s=e[c];return!!s&&!!a&&(l||n())-a>s}}#v=()=>{};#R=()=>{};#H=()=>{};#y=()=>!1;#B(){let e=new sE(this.#e);this.#o=0,this.#A=e,this.#C=I=>{this.#o-=e[I],e[I]=0},this.#z=(I,l,n,c)=>{if(this.#b(l))return 0;if(!lV(n))if(c){if(typeof c!="function")throw new TypeError("sizeCalculation must be a function");if(n=c(l,I),!lV(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return n},this.#L=(I,l,n)=>{if(e[I]=l,this.#I){let c=this.#I-e[I];for(;this.#o>c;)this.#k(!0)}this.#o+=e[I],n&&(n.entrySize=l,n.totalCalculatedSize=this.#o)}}#C=e=>{};#L=(e,I,l)=>{};#z=(e,I,l,n)=>{if(l||n)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#g({allowStale:e=this.allowStale}={}){if(this.#s)for(let I=this.#Z;!(!this.#U(I)||((e||!this.#y(I))&&(yield I),I===this.#p));)I=this.#W[I]}*#w({allowStale:e=this.allowStale}={}){if(this.#s)for(let I=this.#p;!(!this.#U(I)||((e||!this.#y(I))&&(yield I),I===this.#Z));)I=this.#m[I]}#U(e){return e!==void 0&&this.#d.get(this.#i[e])===e}*entries(){for(let e of this.#g())this.#c[e]!==void 0&&this.#i[e]!==void 0&&!this.#b(this.#c[e])&&(yield[this.#i[e],this.#c[e]])}*rentries(){for(let e of this.#w())this.#c[e]!==void 0&&this.#i[e]!==void 0&&!this.#b(this.#c[e])&&(yield[this.#i[e],this.#c[e]])}*keys(){for(let e of this.#g()){let I=this.#i[e];I!==void 0&&!this.#b(this.#c[e])&&(yield I)}}*rkeys(){for(let e of this.#w()){let I=this.#i[e];I!==void 0&&!this.#b(this.#c[e])&&(yield I)}}*values(){for(let e of this.#g())this.#c[e]!==void 0&&!this.#b(this.#c[e])&&(yield this.#c[e])}*rvalues(){for(let e of this.#w())this.#c[e]!==void 0&&!this.#b(this.#c[e])&&(yield this.#c[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,I={}){for(let l of this.#g()){let n=this.#c[l],c=this.#b(n)?n.__staleWhileFetching:n;if(c!==void 0&&e(c,this.#i[l],this))return this.get(this.#i[l],I)}}forEach(e,I=this){for(let l of this.#g()){let n=this.#c[l],c=this.#b(n)?n.__staleWhileFetching:n;c!==void 0&&e.call(I,c,this.#i[l],this)}}rforEach(e,I=this){for(let l of this.#w()){let n=this.#c[l],c=this.#b(n)?n.__staleWhileFetching:n;c!==void 0&&e.call(I,c,this.#i[l],this)}}purgeStale(){let e=!1;for(let I of this.#w({allowStale:!0}))this.#y(I)&&(this.#E(this.#i[I],"expire"),e=!0);return e}info(e){let I=this.#d.get(e);if(I===void 0)return;let l=this.#c[I],n=this.#b(l)?l.__staleWhileFetching:l;if(n===void 0)return;let c={value:n};if(this.#Y&&this.#V){let a=this.#Y[I],s=this.#V[I];if(a&&s){let r=a-(aE.now()-s);c.ttl=r,c.start=Date.now()}}return this.#A&&(c.size=this.#A[I]),c}dump(){let e=[];for(let I of this.#g({allowStale:!0})){let l=this.#i[I],n=this.#c[I],c=this.#b(n)?n.__staleWhileFetching:n;if(c===void 0||l===void 0)continue;let a={value:c};if(this.#Y&&this.#V){a.ttl=this.#Y[I];let s=aE.now()-this.#V[I];a.start=Math.floor(Date.now()-s)}this.#A&&(a.size=this.#A[I]),e.unshift([l,a])}return e}load(e){this.clear();for(let[I,l]of e){if(l.start){let n=Date.now()-l.start;l.start=aE.now()-n}this.set(I,l.value,l)}}set(e,I,l={}){if(I===void 0)return this.delete(e),this;let{ttl:n=this.ttl,start:c,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:s=this.sizeCalculation,status:r}=l,{noUpdateTTL:o=this.noUpdateTTL}=l,d=this.#z(e,I,l.size||0,s);if(this.maxEntrySize&&d>this.maxEntrySize)return r&&(r.set="miss",r.maxEntrySizeExceeded=!0),this.#E(e,"set"),this;let i=this.#s===0?void 0:this.#d.get(e);if(i===void 0)i=this.#s===0?this.#Z:this.#Q.length!==0?this.#Q.pop():this.#s===this.#e?this.#k(!1):this.#s,this.#i[i]=e,this.#c[i]=I,this.#d.set(e,i),this.#m[this.#Z]=i,this.#W[i]=this.#Z,this.#Z=i,this.#s++,this.#L(i,d,r),r&&(r.set="add"),o=!1,this.#X&&this.#l?.(I,e,"add");else{this.#f(i);let h=this.#c[i];if(I!==h){if(this.#F&&this.#b(h)){h.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:p}=h;p!==void 0&&!a&&(this.#N&&this.#t?.(p,e,"set"),this.#h&&this.#u?.push([p,e,"set"]))}else a||(this.#N&&this.#t?.(h,e,"set"),this.#h&&this.#u?.push([h,e,"set"]));if(this.#C(i),this.#L(i,d,r),this.#c[i]=I,r){r.set="replace";let p=h&&this.#b(h)?h.__staleWhileFetching:h;p!==void 0&&(r.oldValue=p)}}else r&&(r.set="update");this.#X&&this.onInsert?.(I,e,I===h?"update":"replace")}if(n!==0&&!this.#Y&&this.#r(),this.#Y&&(o||this.#H(i,n,c),r&&this.#R(r,i)),!a&&this.#h&&this.#u){let h=this.#u,p;for(;p=h?.shift();)this.#n?.(...p)}return this}pop(){try{for(;this.#s;){let e=this.#c[this.#p];if(this.#k(!0),this.#b(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#h&&this.#u){let e=this.#u,I;for(;I=e?.shift();)this.#n?.(...I)}}}#k(e){let I=this.#p,l=this.#i[I],n=this.#c[I];return this.#F&&this.#b(n)?n.__abortController.abort(new Error("evicted")):(this.#N||this.#h)&&(this.#N&&this.#t?.(n,l,"evict"),this.#h&&this.#u?.push([n,l,"evict"])),this.#C(I),e&&(this.#i[I]=void 0,this.#c[I]=void 0,this.#Q.push(I)),this.#s===1?(this.#p=this.#Z=0,this.#Q.length=0):this.#p=this.#m[I],this.#d.delete(l),this.#s--,I}has(e,I={}){let{updateAgeOnHas:l=this.updateAgeOnHas,status:n}=I,c=this.#d.get(e);if(c!==void 0){let a=this.#c[c];if(this.#b(a)&&a.__staleWhileFetching===void 0)return!1;if(this.#y(c))n&&(n.has="stale",this.#R(n,c));else return l&&this.#v(c),n&&(n.has="hit",this.#R(n,c)),!0}else n&&(n.has="miss");return!1}peek(e,I={}){let{allowStale:l=this.allowStale}=I,n=this.#d.get(e);if(n===void 0||!l&&this.#y(n))return;let c=this.#c[n];return this.#b(c)?c.__staleWhileFetching:c}#J(e,I,l,n){let c=I===void 0?void 0:this.#c[I];if(this.#b(c))return c;let a=new wP,{signal:s}=l;s?.addEventListener("abort",()=>a.abort(s.reason),{signal:a.signal});let r={signal:a.signal,options:l,context:n},o=(u,N=!1)=>{let{aborted:Y}=a.signal,y=l.ignoreFetchAbort&&u!==void 0;if(l.status&&(Y&&!N?(l.status.fetchAborted=!0,l.status.fetchError=a.signal.reason,y&&(l.status.fetchAbortIgnored=!0)):l.status.fetchResolved=!0),Y&&!y&&!N)return i(a.signal.reason);let Q=p;return this.#c[I]===p&&(u===void 0?Q.__staleWhileFetching?this.#c[I]=Q.__staleWhileFetching:this.#E(e,"fetch"):(l.status&&(l.status.fetchUpdated=!0),this.set(e,u,r.options))),u},d=u=>(l.status&&(l.status.fetchRejected=!0,l.status.fetchError=u),i(u)),i=u=>{let{aborted:N}=a.signal,Y=N&&l.allowStaleOnFetchAbort,y=Y||l.allowStaleOnFetchRejection,Q=y||l.noDeleteOnFetchRejection,A=p;if(this.#c[I]===p&&(!Q||A.__staleWhileFetching===void 0?this.#E(e,"fetch"):Y||(this.#c[I]=A.__staleWhileFetching)),y)return l.status&&A.__staleWhileFetching!==void 0&&(l.status.returnedStale=!0),A.__staleWhileFetching;if(A.__returned===A)throw u},h=(u,N)=>{let Y=this.#a?.(e,c,r);Y&&Y instanceof Promise&&Y.then(y=>u(y===void 0?void 0:y),N),a.signal.addEventListener("abort",()=>{(!l.ignoreFetchAbort||l.allowStaleOnFetchAbort)&&(u(void 0),l.allowStaleOnFetchAbort&&(u=y=>o(y,!0)))})};l.status&&(l.status.fetchDispatched=!0);let p=new Promise(h).then(o,d),Z=Object.assign(p,{__abortController:a,__staleWhileFetching:c,__returned:void 0});return I===void 0?(this.set(e,Z,{...r.options,status:void 0}),I=this.#d.get(e)):this.#c[I]=Z,Z}#b(e){if(!this.#F)return!1;let I=e;return!!I&&I instanceof Promise&&I.hasOwnProperty("__staleWhileFetching")&&I.__abortController instanceof wP}async fetch(e,I={}){let{allowStale:l=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:c=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:s=this.noDisposeOnSet,size:r=0,sizeCalculation:o=this.sizeCalculation,noUpdateTTL:d=this.noUpdateTTL,noDeleteOnFetchRejection:i=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:Z=this.allowStaleOnFetchAbort,context:u,forceRefresh:N=!1,status:Y,signal:y}=I;if(!this.#F)return Y&&(Y.fetch="get"),this.get(e,{allowStale:l,updateAgeOnGet:n,noDeleteOnStaleGet:c,status:Y});let Q={allowStale:l,updateAgeOnGet:n,noDeleteOnStaleGet:c,ttl:a,noDisposeOnSet:s,size:r,sizeCalculation:o,noUpdateTTL:d,noDeleteOnFetchRejection:i,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:Z,ignoreFetchAbort:p,status:Y,signal:y},A=this.#d.get(e);if(A===void 0){Y&&(Y.fetch="miss");let w=this.#J(e,A,Q,u);return w.__returned=w}else{let w=this.#c[A];if(this.#b(w)){let U=l&&w.__staleWhileFetching!==void 0;return Y&&(Y.fetch="inflight",U&&(Y.returnedStale=!0)),U?w.__staleWhileFetching:w.__returned=w}let f=this.#y(A);if(!N&&!f)return Y&&(Y.fetch="hit"),this.#f(A),n&&this.#v(A),Y&&this.#R(Y,A),w;let J=this.#J(e,A,Q,u),v=J.__staleWhileFetching!==void 0&&l;return Y&&(Y.fetch=f?"stale":"refresh",v&&f&&(Y.returnedStale=!0)),v?J.__staleWhileFetching:J.__returned=J}}async forceFetch(e,I={}){let l=await this.fetch(e,I);if(l===void 0)throw new Error("fetch() returned undefined");return l}memo(e,I={}){let l=this.#G;if(!l)throw new Error("no memoMethod provided to constructor");let{context:n,forceRefresh:c,...a}=I,s=this.get(e,a);if(!c&&s!==void 0)return s;let r=l(e,s,{options:a,context:n});return this.set(e,r,a),r}get(e,I={}){let{allowStale:l=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:c=this.noDeleteOnStaleGet,status:a}=I,s=this.#d.get(e);if(s!==void 0){let r=this.#c[s],o=this.#b(r);return a&&this.#R(a,s),this.#y(s)?(a&&(a.get="stale"),o?(a&&l&&r.__staleWhileFetching!==void 0&&(a.returnedStale=!0),l?r.__staleWhileFetching:void 0):(c||this.#E(e,"expire"),a&&l&&(a.returnedStale=!0),l?r:void 0)):(a&&(a.get="hit"),o?r.__staleWhileFetching:(this.#f(s),n&&this.#v(s),r))}else a&&(a.get="miss")}#S(e,I){this.#W[I]=e,this.#m[e]=I}#f(e){e!==this.#Z&&(e===this.#p?this.#p=this.#m[e]:this.#S(this.#W[e],this.#m[e]),this.#S(this.#Z,e),this.#Z=e)}delete(e){return this.#E(e,"delete")}#E(e,I){let l=!1;if(this.#s!==0){let n=this.#d.get(e);if(n!==void 0)if(l=!0,this.#s===1)this.#x(I);else{this.#C(n);let c=this.#c[n];if(this.#b(c)?c.__abortController.abort(new Error("deleted")):(this.#N||this.#h)&&(this.#N&&this.#t?.(c,e,I),this.#h&&this.#u?.push([c,e,I])),this.#d.delete(e),this.#i[n]=void 0,this.#c[n]=void 0,n===this.#Z)this.#Z=this.#W[n];else if(n===this.#p)this.#p=this.#m[n];else{let a=this.#W[n];this.#m[a]=this.#m[n];let s=this.#m[n];this.#W[s]=this.#W[n]}this.#s--,this.#Q.push(n)}}if(this.#h&&this.#u?.length){let n=this.#u,c;for(;c=n?.shift();)this.#n?.(...c)}return l}clear(){return this.#x("delete")}#x(e){for(let I of this.#w({allowStale:!0})){let l=this.#c[I];if(this.#b(l))l.__abortController.abort(new Error("deleted"));else{let n=this.#i[I];this.#N&&this.#t?.(l,n,e),this.#h&&this.#u?.push([l,n,e])}}if(this.#d.clear(),this.#c.fill(void 0),this.#i.fill(void 0),this.#Y&&this.#V&&(this.#Y.fill(0),this.#V.fill(0)),this.#A&&this.#A.fill(0),this.#p=0,this.#Z=0,this.#Q.length=0,this.#o=0,this.#s=0,this.#h&&this.#u){let I=this.#u,l;for(;l=I?.shift();)this.#n?.(...l)}}};import{posix as W3I,win32 as sbe}from"node:path";import{fileURLToPath as N3I}from"node:url";import{lstatSync as Y3I,readdir as V3I,readdirSync as R3I,readlinkSync as y3I,realpathSync as F3I}from"fs";import*as g3I from"node:fs";import{lstat as A3I,readdir as w3I,readlink as X3I,realpath as H3I}from"node:fs/promises";var Q3I=F3I.native,b9={lstatSync:Y3I,readdir:V3I,readdirSync:R3I,readlinkSync:y3I,realpathSync:Q3I,promises:{lstat:A3I,readdir:w3I,readlink:X3I,realpath:H3I}},NUe=t=>!t||t===b9||t===g3I?b9:{...b9,...t,promises:{...b9.promises,...t.promises||{}}},YUe=/^\\\\\?\\([a-z]:)\\?$/i,E3I=t=>t.replace(/\//g,"\\").replace(YUe,"$1\\"),v3I=/[\\\/]/,li=0,VUe=1,RUe=2,Th=4,yUe=6,FUe=8,Q0=10,gUe=12,ti=15,i9=~ti,cbe=16,pUe=32,m9=64,gb=128,XP=256,EP=512,ZUe=m9|gb|EP,C3I=1023,abe=t=>t.isFile()?FUe:t.isDirectory()?Th:t.isSymbolicLink()?Q0:t.isCharacterDevice()?RUe:t.isBlockDevice()?yUe:t.isSocket()?gUe:t.isFIFO()?VUe:li,uUe=new Map,h9=t=>{let e=uUe.get(t);if(e)return e;let I=t.normalize("NFKD");return uUe.set(t,I),I},WUe=new Map,HP=t=>{let e=WUe.get(t);if(e)return e;let I=h9(t.toLowerCase());return WUe.set(t,I),I},vP=class extends d9{constructor(){super({max:256})}},rbe=class extends d9{constructor(e=16*1024){super({maxSize:e,sizeCalculation:I=>I.length+1})}},QUe=Symbol("PathScurry setAsCwd"),Ts=class{name;root;roots;parent;nocase;isCWD=!1;#e;#I;get dev(){return this.#I}#t;get mode(){return this.#t}#l;get nlink(){return this.#l}#n;get uid(){return this.#n}#a;get gid(){return this.#a}#G;get rdev(){return this.#G}#s;get blksize(){return this.#s}#o;get ino(){return this.#o}#d;get size(){return this.#d}#i;get blocks(){return this.#i}#c;get atimeMs(){return this.#c}#m;get mtimeMs(){return this.#m}#W;get ctimeMs(){return this.#W}#p;get birthtimeMs(){return this.#p}#Z;get atime(){return this.#Z}#Q;get mtime(){return this.#Q}#u;get ctime(){return this.#u}#A;get birthtime(){return this.#A}#V;#Y;#N;#F;#h;#X;#r;#v;#R;#H;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(e,I=li,l,n,c,a,s){this.name=e,this.#V=c?HP(e):h9(e),this.#r=I&C3I,this.nocase=c,this.roots=n,this.root=l||this,this.#v=a,this.#N=s.fullpath,this.#h=s.relative,this.#X=s.relativePosix,this.parent=s.parent,this.parent?this.#e=this.parent.#e:this.#e=NUe(s.fs)}depth(){return this.#Y!==void 0?this.#Y:this.parent?this.#Y=this.parent.depth()+1:this.#Y=0}childrenCache(){return this.#v}resolve(e){if(!e)return this;let I=this.getRootString(e),n=e.substring(I.length).split(this.splitSep);return I?this.getRoot(I).#y(n):this.#y(n)}#y(e){let I=this;for(let l of e)I=I.child(l);return I}children(){let e=this.#v.get(this);if(e)return e;let I=Object.assign([],{provisional:0});return this.#v.set(this,I),this.#r&=~cbe,I}child(e,I){if(e===""||e===".")return this;if(e==="..")return this.parent||this;let l=this.children(),n=this.nocase?HP(e):h9(e);for(let r of l)if(r.#V===n)return r;let c=this.parent?this.sep:"",a=this.#N?this.#N+c+e:void 0,s=this.newChild(e,li,{...I,parent:this,fullpath:a});return this.canReaddir()||(s.#r|=gb),l.push(s),s}relative(){if(this.isCWD)return"";if(this.#h!==void 0)return this.#h;let e=this.name,I=this.parent;if(!I)return this.#h=this.name;let l=I.relative();return l+(!l||!I.parent?"":this.sep)+e}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#X!==void 0)return this.#X;let e=this.name,I=this.parent;if(!I)return this.#X=this.fullpathPosix();let l=I.relativePosix();return l+(!l||!I.parent?"":"/")+e}fullpath(){if(this.#N!==void 0)return this.#N;let e=this.name,I=this.parent;if(!I)return this.#N=this.name;let n=I.fullpath()+(I.parent?this.sep:"")+e;return this.#N=n}fullpathPosix(){if(this.#F!==void 0)return this.#F;if(this.sep==="/")return this.#F=this.fullpath();if(!this.parent){let n=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(n)?this.#F=`//?/${n}`:this.#F=n}let e=this.parent,I=e.fullpathPosix(),l=I+(!I||!e.parent?"":"/")+this.name;return this.#F=l}isUnknown(){return(this.#r&ti)===li}isType(e){return this[`is${e}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#r&ti)===FUe}isDirectory(){return(this.#r&ti)===Th}isCharacterDevice(){return(this.#r&ti)===RUe}isBlockDevice(){return(this.#r&ti)===yUe}isFIFO(){return(this.#r&ti)===VUe}isSocket(){return(this.#r&ti)===gUe}isSymbolicLink(){return(this.#r&Q0)===Q0}lstatCached(){return this.#r&pUe?this:void 0}readlinkCached(){return this.#R}realpathCached(){return this.#H}readdirCached(){let e=this.children();return e.slice(0,e.provisional)}canReadlink(){if(this.#R)return!0;if(!this.parent)return!1;let e=this.#r&ti;return!(e!==li&&e!==Q0||this.#r&XP||this.#r&gb)}calledReaddir(){return!!(this.#r&cbe)}isENOENT(){return!!(this.#r&gb)}isNamed(e){return this.nocase?this.#V===HP(e):this.#V===h9(e)}async readlink(){let e=this.#R;if(e)return e;if(this.canReadlink()&&this.parent)try{let I=await this.#e.promises.readlink(this.fullpath()),l=(await this.parent.realpath())?.resolve(I);if(l)return this.#R=l}catch(I){this.#k(I.code);return}}readlinkSync(){let e=this.#R;if(e)return e;if(this.canReadlink()&&this.parent)try{let I=this.#e.readlinkSync(this.fullpath()),l=this.parent.realpathSync()?.resolve(I);if(l)return this.#R=l}catch(I){this.#k(I.code);return}}#B(e){this.#r|=cbe;for(let I=e.provisional;I<e.length;I++){let l=e[I];l&&l.#C()}}#C(){this.#r&gb||(this.#r=(this.#r|gb)&i9,this.#L())}#L(){let e=this.children();e.provisional=0;for(let I of e)I.#C()}#z(){this.#r|=EP,this.#g()}#g(){if(this.#r&m9)return;let e=this.#r;(e&ti)===Th&&(e&=i9),this.#r=e|m9,this.#L()}#w(e=""){e==="ENOTDIR"||e==="EPERM"?this.#g():e==="ENOENT"?this.#C():this.children().provisional=0}#U(e=""){e==="ENOTDIR"?this.parent.#g():e==="ENOENT"&&this.#C()}#k(e=""){let I=this.#r;I|=XP,e==="ENOENT"&&(I|=gb),(e==="EINVAL"||e==="UNKNOWN")&&(I&=i9),this.#r=I,e==="ENOTDIR"&&this.parent&&this.parent.#g()}#J(e,I){return this.#S(e,I)||this.#b(e,I)}#b(e,I){let l=abe(e),n=this.newChild(e.name,l,{parent:this}),c=n.#r&ti;return c!==Th&&c!==Q0&&c!==li&&(n.#r|=m9),I.unshift(n),I.provisional++,n}#S(e,I){for(let l=I.provisional;l<I.length;l++){let n=I[l];if((this.nocase?HP(e.name):h9(e.name))===n.#V)return this.#f(e,n,l,I)}}#f(e,I,l,n){let c=I.name;return I.#r=I.#r&i9|abe(e),c!==e.name&&(I.name=e.name),l!==n.provisional&&(l===n.length-1?n.pop():n.splice(l,1),n.unshift(I)),n.provisional++,I}async lstat(){if((this.#r&gb)===0)try{return this.#E(await this.#e.promises.lstat(this.fullpath())),this}catch(e){this.#U(e.code)}}lstatSync(){if((this.#r&gb)===0)try{return this.#E(this.#e.lstatSync(this.fullpath())),this}catch(e){this.#U(e.code)}}#E(e){let{atime:I,atimeMs:l,birthtime:n,birthtimeMs:c,blksize:a,blocks:s,ctime:r,ctimeMs:o,dev:d,gid:i,ino:h,mode:p,mtime:Z,mtimeMs:u,nlink:N,rdev:Y,size:y,uid:Q}=e;this.#Z=I,this.#c=l,this.#A=n,this.#p=c,this.#s=a,this.#i=s,this.#u=r,this.#W=o,this.#I=d,this.#a=i,this.#o=h,this.#t=p,this.#Q=Z,this.#m=u,this.#l=N,this.#G=Y,this.#d=y,this.#n=Q;let A=abe(e);this.#r=this.#r&i9|A|pUe,A!==li&&A!==Th&&A!==Q0&&(this.#r|=m9)}#x=[];#M=!1;#T(e){this.#M=!1;let I=this.#x.slice();this.#x.length=0,I.forEach(l=>l(null,e))}readdirCB(e,I=!1){if(!this.canReaddir()){I?e(null,[]):queueMicrotask(()=>e(null,[]));return}let l=this.children();if(this.calledReaddir()){let c=l.slice(0,l.provisional);I?e(null,c):queueMicrotask(()=>e(null,c));return}if(this.#x.push(e),this.#M)return;this.#M=!0;let n=this.fullpath();this.#e.readdir(n,{withFileTypes:!0},(c,a)=>{if(c)this.#w(c.code),l.provisional=0;else{for(let s of a)this.#J(s,l);this.#B(l)}this.#T(l.slice(0,l.provisional))})}#O;async readdir(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let I=this.fullpath();if(this.#O)await this.#O;else{let l=()=>{};this.#O=new Promise(n=>l=n);try{for(let n of await this.#e.promises.readdir(I,{withFileTypes:!0}))this.#J(n,e);this.#B(e)}catch(n){this.#w(n.code),e.provisional=0}this.#O=void 0,l()}return e.slice(0,e.provisional)}readdirSync(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let I=this.fullpath();try{for(let l of this.#e.readdirSync(I,{withFileTypes:!0}))this.#J(l,e);this.#B(e)}catch(l){this.#w(l.code),e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(this.#r&ZUe)return!1;let e=ti&this.#r;return e===li||e===Th||e===Q0}shouldWalk(e,I){return(this.#r&Th)===Th&&!(this.#r&ZUe)&&!e.has(this)&&(!I||I(this))}async realpath(){if(this.#H)return this.#H;if(!((EP|XP|gb)&this.#r))try{let e=await this.#e.promises.realpath(this.fullpath());return this.#H=this.resolve(e)}catch{this.#z()}}realpathSync(){if(this.#H)return this.#H;if(!((EP|XP|gb)&this.#r))try{let e=this.#e.realpathSync(this.fullpath());return this.#H=this.resolve(e)}catch{this.#z()}}[QUe](e){if(e===this)return;e.isCWD=!1,this.isCWD=!0;let I=new Set([]),l=[],n=this;for(;n&&n.parent;)I.add(n),n.#h=l.join(this.sep),n.#X=l.join("/"),n=n.parent,l.push("..");for(n=e;n&&n.parent&&!I.has(n);)n.#h=void 0,n.#X=void 0,n=n.parent}},CP=class t extends Ts{sep="\\";splitSep=v3I;constructor(e,I=li,l,n,c,a,s){super(e,I,l,n,c,a,s)}newChild(e,I=li,l={}){return new t(e,I,this.root,this.roots,this.nocase,this.childrenCache(),l)}getRootString(e){return sbe.parse(e).root}getRoot(e){if(e=E3I(e.toUpperCase()),e===this.root.name)return this.root;for(let[I,l]of Object.entries(this.roots))if(this.sameRoot(e,I))return this.roots[e]=l;return this.roots[e]=new rE(e,this).root}sameRoot(e,I=this.root.name){return e=e.toUpperCase().replace(/\//g,"\\").replace(YUe,"$1\\"),e===I}},JP=class t extends Ts{splitSep="/";sep="/";constructor(e,I=li,l,n,c,a,s){super(e,I,l,n,c,a,s)}getRootString(e){return e.startsWith("/")?"/":""}getRoot(e){return this.root}newChild(e,I=li,l={}){return new t(e,I,this.root,this.roots,this.nocase,this.childrenCache(),l)}},LP=class{root;rootPath;roots;cwd;#e;#I;#t;nocase;#l;constructor(e=process.cwd(),I,l,{nocase:n,childrenCacheSize:c=16*1024,fs:a=b9}={}){this.#l=NUe(a),(e instanceof URL||e.startsWith("file://"))&&(e=N3I(e));let s=I.resolve(e);this.roots=Object.create(null),this.rootPath=this.parseRootPath(s),this.#e=new vP,this.#I=new vP,this.#t=new rbe(c);let r=s.substring(this.rootPath.length).split(l);if(r.length===1&&!r[0]&&r.pop(),n===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=n,this.root=this.newRoot(this.#l),this.roots[this.rootPath]=this.root;let o=this.root,d=r.length-1,i=I.sep,h=this.rootPath,p=!1;for(let Z of r){let u=d--;o=o.child(Z,{relative:new Array(u).fill("..").join(i),relativePosix:new Array(u).fill("..").join("/"),fullpath:h+=(p?"":i)+Z}),p=!0}this.cwd=o}depth(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.depth()}childrenCache(){return this.#t}resolve(...e){let I="";for(let c=e.length-1;c>=0;c--){let a=e[c];if(!(!a||a===".")&&(I=I?`${a}/${I}`:a,this.isAbsolute(a)))break}let l=this.#e.get(I);if(l!==void 0)return l;let n=this.cwd.resolve(I).fullpath();return this.#e.set(I,n),n}resolvePosix(...e){let I="";for(let c=e.length-1;c>=0;c--){let a=e[c];if(!(!a||a===".")&&(I=I?`${a}/${I}`:a,this.isAbsolute(a)))break}let l=this.#I.get(I);if(l!==void 0)return l;let n=this.cwd.resolve(I).fullpathPosix();return this.#I.set(I,n),n}relative(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relative()}relativePosix(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relativePosix()}basename(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.name}dirname(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),(e.parent||e).fullpath()}async readdir(e=this.cwd,I={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ts||(I=e,e=this.cwd);let{withFileTypes:l}=I;if(e.canReaddir()){let n=await e.readdir();return l?n:n.map(c=>c.name)}else return[]}readdirSync(e=this.cwd,I={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ts||(I=e,e=this.cwd);let{withFileTypes:l=!0}=I;return e.canReaddir()?l?e.readdirSync():e.readdirSync().map(n=>n.name):[]}async lstat(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstat()}lstatSync(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstatSync()}async readlink(e=this.cwd,{withFileTypes:I}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ts||(I=e.withFileTypes,e=this.cwd);let l=await e.readlink();return I?l:l?.fullpath()}readlinkSync(e=this.cwd,{withFileTypes:I}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ts||(I=e.withFileTypes,e=this.cwd);let l=e.readlinkSync();return I?l:l?.fullpath()}async realpath(e=this.cwd,{withFileTypes:I}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ts||(I=e.withFileTypes,e=this.cwd);let l=await e.realpath();return I?l:l?.fullpath()}realpathSync(e=this.cwd,{withFileTypes:I}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ts||(I=e.withFileTypes,e=this.cwd);let l=e.realpathSync();return I?l:l?.fullpath()}async walk(e=this.cwd,I={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ts||(I=e,e=this.cwd);let{withFileTypes:l=!0,follow:n=!1,filter:c,walkFilter:a}=I,s=[];(!c||c(e))&&s.push(l?e:e.fullpath());let r=new Set,o=(i,h)=>{r.add(i),i.readdirCB((p,Z)=>{if(p)return h(p);let u=Z.length;if(!u)return h();let N=()=>{--u===0&&h()};for(let Y of Z)(!c||c(Y))&&s.push(l?Y:Y.fullpath()),n&&Y.isSymbolicLink()?Y.realpath().then(y=>y?.isUnknown()?y.lstat():y).then(y=>y?.shouldWalk(r,a)?o(y,N):N()):Y.shouldWalk(r,a)?o(Y,N):N()},!0)},d=e;return new Promise((i,h)=>{o(d,p=>{if(p)return h(p);i(s)})})}walkSync(e=this.cwd,I={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ts||(I=e,e=this.cwd);let{withFileTypes:l=!0,follow:n=!1,filter:c,walkFilter:a}=I,s=[];(!c||c(e))&&s.push(l?e:e.fullpath());let r=new Set([e]);for(let o of r){let d=o.readdirSync();for(let i of d){(!c||c(i))&&s.push(l?i:i.fullpath());let h=i;if(i.isSymbolicLink()){if(!(n&&(h=i.realpathSync())))continue;h.isUnknown()&&h.lstatSync()}h.shouldWalk(r,a)&&r.add(h)}}return s}[Symbol.asyncIterator](){return this.iterate()}iterate(e=this.cwd,I={}){return typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ts||(I=e,e=this.cwd),this.stream(e,I)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(e=this.cwd,I={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ts||(I=e,e=this.cwd);let{withFileTypes:l=!0,follow:n=!1,filter:c,walkFilter:a}=I;(!c||c(e))&&(yield l?e:e.fullpath());let s=new Set([e]);for(let r of s){let o=r.readdirSync();for(let d of o){(!c||c(d))&&(yield l?d:d.fullpath());let i=d;if(d.isSymbolicLink()){if(!(n&&(i=d.realpathSync())))continue;i.isUnknown()&&i.lstatSync()}i.shouldWalk(s,a)&&s.add(i)}}}stream(e=this.cwd,I={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ts||(I=e,e=this.cwd);let{withFileTypes:l=!0,follow:n=!1,filter:c,walkFilter:a}=I,s=new Mc({objectMode:!0});(!c||c(e))&&s.write(l?e:e.fullpath());let r=new Set,o=[e],d=0,i=()=>{let h=!1;for(;!h;){let p=o.shift();if(!p){d===0&&s.end();return}d++,r.add(p);let Z=(N,Y,y=!1)=>{if(N)return s.emit("error",N);if(n&&!y){let Q=[];for(let A of Y)A.isSymbolicLink()&&Q.push(A.realpath().then(w=>w?.isUnknown()?w.lstat():w));if(Q.length){Promise.all(Q).then(()=>Z(null,Y,!0));return}}for(let Q of Y)Q&&(!c||c(Q))&&(s.write(l?Q:Q.fullpath())||(h=!0));d--;for(let Q of Y){let A=Q.realpathCached()||Q;A.shouldWalk(r,a)&&o.push(A)}h&&!s.flowing?s.once("drain",i):u||i()},u=!0;p.readdirCB(Z,!0),u=!1}};return i(),s}streamSync(e=this.cwd,I={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ts||(I=e,e=this.cwd);let{withFileTypes:l=!0,follow:n=!1,filter:c,walkFilter:a}=I,s=new Mc({objectMode:!0}),r=new Set;(!c||c(e))&&s.write(l?e:e.fullpath());let o=[e],d=0,i=()=>{let h=!1;for(;!h;){let p=o.shift();if(!p){d===0&&s.end();return}d++,r.add(p);let Z=p.readdirSync();for(let u of Z)(!c||c(u))&&(s.write(l?u:u.fullpath())||(h=!0));d--;for(let u of Z){let N=u;if(u.isSymbolicLink()){if(!(n&&(N=u.realpathSync())))continue;N.isUnknown()&&N.lstatSync()}N.shouldWalk(r,a)&&o.push(N)}}h&&!s.flowing&&s.once("drain",i)};return i(),s}chdir(e=this.cwd){let I=this.cwd;this.cwd=typeof e=="string"?this.cwd.resolve(e):e,this.cwd[QUe](I)}},rE=class extends LP{sep="\\";constructor(e=process.cwd(),I={}){let{nocase:l=!0}=I;super(e,sbe,"\\",{...I,nocase:l}),this.nocase=l;for(let n=this.cwd;n;n=n.parent)n.nocase=this.nocase}parseRootPath(e){return sbe.parse(e).root.toUpperCase()}newRoot(e){return new CP(this.rootPath,Th,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")||e.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(e)}},GE=class extends LP{sep="/";constructor(e=process.cwd(),I={}){let{nocase:l=!1}=I;super(e,W3I,"/",{...I,nocase:l}),this.nocase=l}parseRootPath(e){return"/"}newRoot(e){return new JP(this.rootPath,Th,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")}},p9=class extends GE{constructor(e=process.cwd(),I={}){let{nocase:l=!0}=I;super(e,{...I,nocase:l})}},JSl=process.platform==="win32"?CP:JP,AUe=process.platform==="win32"?rE:process.platform==="darwin"?p9:GE;G();var J3I=t=>t.length>=1,L3I=t=>t.length>=1,oE=class t{#e;#I;#t;length;#l;#n;#a;#G;#s;#o;#d=!0;constructor(e,I,l,n){if(!J3I(e))throw new TypeError("empty pattern list");if(!L3I(I))throw new TypeError("empty glob list");if(I.length!==e.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=e.length,l<0||l>=this.length)throw new TypeError("index out of range");if(this.#e=e,this.#I=I,this.#t=l,this.#l=n,this.#t===0){if(this.isUNC()){let[c,a,s,r,...o]=this.#e,[d,i,h,p,...Z]=this.#I;o[0]===""&&(o.shift(),Z.shift());let u=[c,a,s,r,""].join("/"),N=[d,i,h,p,""].join("/");this.#e=[u,...o],this.#I=[N,...Z],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[c,...a]=this.#e,[s,...r]=this.#I;a[0]===""&&(a.shift(),r.shift());let o=c+"/",d=s+"/";this.#e=[o,...a],this.#I=[d,...r],this.length=this.#e.length}}}pattern(){return this.#e[this.#t]}isString(){return typeof this.#e[this.#t]=="string"}isGlobstar(){return this.#e[this.#t]===ms}isRegExp(){return this.#e[this.#t]instanceof RegExp}globString(){return this.#a=this.#a||(this.#t===0?this.isAbsolute()?this.#I[0]+this.#I.slice(1).join("/"):this.#I.join("/"):this.#I.slice(this.#t).join("/"))}hasMore(){return this.length>this.#t+1}rest(){return this.#n!==void 0?this.#n:this.hasMore()?(this.#n=new t(this.#e,this.#I,this.#t+1,this.#l),this.#n.#o=this.#o,this.#n.#s=this.#s,this.#n.#G=this.#G,this.#n):this.#n=null}isUNC(){let e=this.#e;return this.#s!==void 0?this.#s:this.#s=this.#l==="win32"&&this.#t===0&&e[0]===""&&e[1]===""&&typeof e[2]=="string"&&!!e[2]&&typeof e[3]=="string"&&!!e[3]}isDrive(){let e=this.#e;return this.#G!==void 0?this.#G:this.#G=this.#l==="win32"&&this.#t===0&&this.length>1&&typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0])}isAbsolute(){let e=this.#e;return this.#o!==void 0?this.#o:this.#o=e[0]===""&&e.length>1||this.isDrive()||this.isUNC()}root(){let e=this.#e[0];return typeof e=="string"&&this.isAbsolute()&&this.#t===0?e:""}checkFollowGlobstar(){return!(this.#t===0||!this.isGlobstar()||!this.#d)}markFollowGlobstar(){return this.#t===0||!this.isGlobstar()||!this.#d?!1:(this.#d=!1,!0)}};G();G();var k3I=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",dE=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(e,{nobrace:I,nocase:l,noext:n,noglobstar:c,platform:a=k3I}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=a,this.mmopts={dot:!0,nobrace:I,nocase:l,noext:n,noglobstar:c,optimizationLevel:2,platform:a,nocomment:!0,nonegate:!0};for(let s of e)this.add(s)}add(e){let I=new $o(e,this.mmopts);for(let l=0;l<I.set.length;l++){let n=I.set[l],c=I.globParts[l];if(!n||!c)throw new Error("invalid pattern object");for(;n[0]==="."&&c[0]===".";)n.shift(),c.shift();let a=new oE(n,c,0,this.platform),s=new $o(a.globString(),this.mmopts),r=c[c.length-1]==="**",o=a.isAbsolute();o?this.absolute.push(s):this.relative.push(s),r&&(o?this.absoluteChildren.push(s):this.relativeChildren.push(s))}}ignored(e){let I=e.fullpath(),l=`${I}/`,n=e.relative()||".",c=`${n}/`;for(let a of this.relative)if(a.match(n)||a.match(c))return!0;for(let a of this.absolute)if(a.match(I)||a.match(l))return!0;return!1}childrenIgnored(e){let I=e.fullpath()+"/",l=(e.relative()||".")+"/";for(let n of this.relativeChildren)if(n.match(l))return!0;for(let n of this.absoluteChildren)if(n.match(I))return!0;return!1}};G();var Gbe=class t{store;constructor(e=new Map){this.store=e}copy(){return new t(new Map(this.store))}hasWalked(e,I){return this.store.get(e.fullpath())?.has(I.globString())}storeWalked(e,I){let l=e.fullpath(),n=this.store.get(l);n?n.add(I.globString()):this.store.set(l,new Set([I.globString()]))}},obe=class{store=new Map;add(e,I,l){let n=(I?2:0)|(l?1:0),c=this.store.get(e);this.store.set(e,c===void 0?n:n&c)}entries(){return[...this.store.entries()].map(([e,I])=>[e,!!(I&2),!!(I&1)])}},dbe=class{store=new Map;add(e,I){if(!e.canReaddir())return;let l=this.store.get(e);l?l.find(n=>n.globString()===I.globString())||l.push(I):this.store.set(e,[I])}get(e){let I=this.store.get(e);if(!I)throw new Error("attempting to walk unknown path");return I}entries(){return this.keys().map(e=>[e,this.store.get(e)])}keys(){return[...this.store.keys()].filter(e=>e.canReaddir())}},Z9=class t{hasWalkedCache;matches=new obe;subwalks=new dbe;patterns;follow;dot;opts;constructor(e,I){this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=I?I.copy():new Gbe}processPatterns(e,I){this.patterns=I;let l=I.map(n=>[e,n]);for(let[n,c]of l){this.hasWalkedCache.storeWalked(n,c);let a=c.root(),s=c.isAbsolute()&&this.opts.absolute!==!1;if(a){n=n.resolve(a==="/"&&this.opts.root!==void 0?this.opts.root:a);let i=c.rest();if(i)c=i;else{this.matches.add(n,!0,!1);continue}}if(n.isENOENT())continue;let r,o,d=!1;for(;typeof(r=c.pattern())=="string"&&(o=c.rest());)n=n.resolve(r),c=o,d=!0;if(r=c.pattern(),o=c.rest(),d){if(this.hasWalkedCache.hasWalked(n,c))continue;this.hasWalkedCache.storeWalked(n,c)}if(typeof r=="string"){let i=r===".."||r===""||r===".";this.matches.add(n.resolve(r),s,i);continue}else if(r===ms){(!n.isSymbolicLink()||this.follow||c.checkFollowGlobstar())&&this.subwalks.add(n,c);let i=o?.pattern(),h=o?.rest();if(!o||(i===""||i===".")&&!h)this.matches.add(n,s,i===""||i===".");else if(i===".."){let p=n.parent||n;h?this.hasWalkedCache.hasWalked(p,h)||this.subwalks.add(p,h):this.matches.add(p,s,!0)}}else r instanceof RegExp&&this.subwalks.add(n,c)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new t(this.opts,this.hasWalkedCache)}filterEntries(e,I){let l=this.subwalks.get(e),n=this.child();for(let c of I)for(let a of l){let s=a.isAbsolute(),r=a.pattern(),o=a.rest();r===ms?n.testGlobstar(c,a,o,s):r instanceof RegExp?n.testRegExp(c,r,o,s):n.testString(c,r,o,s)}return n}testGlobstar(e,I,l,n){if((this.dot||!e.name.startsWith("."))&&(I.hasMore()||this.matches.add(e,n,!1),e.canReaddir()&&(this.follow||!e.isSymbolicLink()?this.subwalks.add(e,I):e.isSymbolicLink()&&(l&&I.checkFollowGlobstar()?this.subwalks.add(e,l):I.markFollowGlobstar()&&this.subwalks.add(e,I)))),l){let c=l.pattern();if(typeof c=="string"&&c!==".."&&c!==""&&c!==".")this.testString(e,c,l.rest(),n);else if(c===".."){let a=e.parent||e;this.subwalks.add(a,l)}else c instanceof RegExp&&this.testRegExp(e,c,l.rest(),n)}}testRegExp(e,I,l,n){I.test(e.name)&&(l?this.subwalks.add(e,l):this.matches.add(e,n,!1))}testString(e,I,l,n){e.isNamed(I)&&(l?this.subwalks.add(e,l):this.matches.add(e,n,!1))}};var f3I=(t,e)=>typeof t=="string"?new dE([t],e):Array.isArray(t)?new dE(t,e):t,kP=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#I;#t;signal;maxDepth;includeChildMatches;constructor(e,I,l){if(this.patterns=e,this.path=I,this.opts=l,this.#t=!l.posix&&l.platform==="win32"?"\\":"/",this.includeChildMatches=l.includeChildMatches!==!1,(l.ignore||!this.includeChildMatches)&&(this.#I=f3I(l.ignore??[],l),!this.includeChildMatches&&typeof this.#I.add!="function")){let n="cannot ignore child matches, ignore lacks add() method.";throw new Error(n)}this.maxDepth=l.maxDepth||1/0,l.signal&&(this.signal=l.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0}))}#l(e){return this.seen.has(e)||!!this.#I?.ignored?.(e)}#n(e){return!!this.#I?.childrenIgnored?.(e)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let e;for(;!this.paused&&(e=this.#e.shift());)e()}onResume(e){this.signal?.aborted||(this.paused?this.#e.push(e):e())}async matchCheck(e,I){if(I&&this.opts.nodir)return;let l;if(this.opts.realpath){if(l=e.realpathCached()||await e.realpath(),!l)return;e=l}let c=e.isUnknown()||this.opts.stat?await e.lstat():e;if(this.opts.follow&&this.opts.nodir&&c?.isSymbolicLink()){let a=await c.realpath();a&&(a.isUnknown()||this.opts.stat)&&await a.lstat()}return this.matchCheckTest(c,I)}matchCheckTest(e,I){return e&&(this.maxDepth===1/0||e.depth()<=this.maxDepth)&&(!I||e.canReaddir())&&(!this.opts.nodir||!e.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!e.isSymbolicLink()||!e.realpathCached()?.isDirectory())&&!this.#l(e)?e:void 0}matchCheckSync(e,I){if(I&&this.opts.nodir)return;let l;if(this.opts.realpath){if(l=e.realpathCached()||e.realpathSync(),!l)return;e=l}let c=e.isUnknown()||this.opts.stat?e.lstatSync():e;if(this.opts.follow&&this.opts.nodir&&c?.isSymbolicLink()){let a=c.realpathSync();a&&(a?.isUnknown()||this.opts.stat)&&a.lstatSync()}return this.matchCheckTest(c,I)}matchFinish(e,I){if(this.#l(e))return;if(!this.includeChildMatches&&this.#I?.add){let c=`${e.relativePosix()}/**`;this.#I.add(c)}let l=this.opts.absolute===void 0?I:this.opts.absolute;this.seen.add(e);let n=this.opts.mark&&e.isDirectory()?this.#t:"";if(this.opts.withFileTypes)this.matchEmit(e);else if(l){let c=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(c+n)}else{let c=this.opts.posix?e.relativePosix():e.relative(),a=this.opts.dotRelative&&!c.startsWith(".."+this.#t)?"."+this.#t:"";this.matchEmit(c?a+c+n:"."+n)}}async match(e,I,l){let n=await this.matchCheck(e,l);n&&this.matchFinish(n,I)}matchSync(e,I,l){let n=this.matchCheckSync(e,l);n&&this.matchFinish(n,I)}walkCB(e,I,l){this.signal?.aborted&&l(),this.walkCB2(e,I,new Z9(this.opts),l)}walkCB2(e,I,l,n){if(this.#n(e))return n();if(this.signal?.aborted&&n(),this.paused){this.onResume(()=>this.walkCB2(e,I,l,n));return}l.processPatterns(e,I);let c=1,a=()=>{--c===0&&n()};for(let[s,r,o]of l.matches.entries())this.#l(s)||(c++,this.match(s,r,o).then(()=>a()));for(let s of l.subwalkTargets()){if(this.maxDepth!==1/0&&s.depth()>=this.maxDepth)continue;c++;let r=s.readdirCached();s.calledReaddir()?this.walkCB3(s,r,l,a):s.readdirCB((o,d)=>this.walkCB3(s,d,l,a),!0)}a()}walkCB3(e,I,l,n){l=l.filterEntries(e,I);let c=1,a=()=>{--c===0&&n()};for(let[s,r,o]of l.matches.entries())this.#l(s)||(c++,this.match(s,r,o).then(()=>a()));for(let[s,r]of l.subwalks.entries())c++,this.walkCB2(s,r,l.child(),a);a()}walkCBSync(e,I,l){this.signal?.aborted&&l(),this.walkCB2Sync(e,I,new Z9(this.opts),l)}walkCB2Sync(e,I,l,n){if(this.#n(e))return n();if(this.signal?.aborted&&n(),this.paused){this.onResume(()=>this.walkCB2Sync(e,I,l,n));return}l.processPatterns(e,I);let c=1,a=()=>{--c===0&&n()};for(let[s,r,o]of l.matches.entries())this.#l(s)||this.matchSync(s,r,o);for(let s of l.subwalkTargets()){if(this.maxDepth!==1/0&&s.depth()>=this.maxDepth)continue;c++;let r=s.readdirSync();this.walkCB3Sync(s,r,l,a)}a()}walkCB3Sync(e,I,l,n){l=l.filterEntries(e,I);let c=1,a=()=>{--c===0&&n()};for(let[s,r,o]of l.matches.entries())this.#l(s)||this.matchSync(s,r,o);for(let[s,r]of l.subwalks.entries())c++,this.walkCB2Sync(s,r,l.child(),a);a()}},u9=class extends kP{matches=new Set;constructor(e,I,l){super(e,I,l)}matchEmit(e){this.matches.add(e)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((e,I)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?I(this.signal.reason):e(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}},W9=class extends kP{results;constructor(e,I,l){super(e,I,l),this.results=new Mc({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(e){this.results.write(e),this.results.flowing||this.pause()}stream(){let e=this.path;return e.isUnknown()?e.lstat().then(()=>{this.walkCB(e,this.patterns,()=>this.results.end())}):this.walkCB(e,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}};var B3I=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Qb=class{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(e,I){if(!I)throw new TypeError("glob options required");if(this.withFileTypes=!!I.withFileTypes,this.signal=I.signal,this.follow=!!I.follow,this.dot=!!I.dot,this.dotRelative=!!I.dotRelative,this.nodir=!!I.nodir,this.mark=!!I.mark,I.cwd?(I.cwd instanceof URL||I.cwd.startsWith("file://"))&&(I.cwd=x3I(I.cwd)):this.cwd="",this.cwd=I.cwd||"",this.root=I.root,this.magicalBraces=!!I.magicalBraces,this.nobrace=!!I.nobrace,this.noext=!!I.noext,this.realpath=!!I.realpath,this.absolute=I.absolute,this.includeChildMatches=I.includeChildMatches!==!1,this.noglobstar=!!I.noglobstar,this.matchBase=!!I.matchBase,this.maxDepth=typeof I.maxDepth=="number"?I.maxDepth:1/0,this.stat=!!I.stat,this.ignore=I.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof e=="string"&&(e=[e]),this.windowsPathsNoEscape=!!I.windowsPathsNoEscape||I.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(e=e.map(r=>r.replace(/\\/g,"/"))),this.matchBase){if(I.noglobstar)throw new TypeError("base matching requires globstar");e=e.map(r=>r.includes("/")?r:`./**/${r}`)}if(this.pattern=e,this.platform=I.platform||B3I,this.opts={...I,platform:this.platform},I.scurry){if(this.scurry=I.scurry,I.nocase!==void 0&&I.nocase!==I.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let r=I.platform==="win32"?rE:I.platform==="darwin"?p9:I.platform?GE:AUe;this.scurry=new r(this.cwd,{nocase:I.nocase,fs:I.fs})}this.nocase=this.scurry.nocase;let l=this.platform==="darwin"||this.platform==="win32",n={...I,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:l,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},c=this.pattern.map(r=>new $o(r,n)),[a,s]=c.reduce((r,o)=>(r[0].push(...o.set),r[1].push(...o.globParts),r),[[],[]]);this.patterns=a.map((r,o)=>{let d=s[o];if(!d)throw new Error("invalid pattern object");return new oE(r,d,0,this.platform)})}async walk(){return[...await new u9(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new u9(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new W9(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new W9(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};G();var ibe=(t,e={})=>{Array.isArray(t)||(t=[t]);for(let I of t)if(new $o(I,e).hasMagic())return!0;return!1};function xP(t,e={}){return new Qb(t,e).streamSync()}function XUe(t,e={}){return new Qb(t,e).stream()}function HUe(t,e={}){return new Qb(t,e).walkSync()}async function wUe(t,e={}){return new Qb(t,e).walk()}function BP(t,e={}){return new Qb(t,e).iterateSync()}function EUe(t,e={}){return new Qb(t,e).iterate()}var z3I=xP,U3I=Object.assign(XUe,{sync:xP}),S3I=BP,O3I=Object.assign(EUe,{sync:BP}),M3I=Object.assign(HUe,{stream:xP,iterate:BP}),fP=Object.assign(wUe,{glob:wUe,globSync:HUe,sync:M3I,globStream:XUe,stream:U3I,globStreamSync:xP,streamSync:z3I,globIterate:EUe,iterate:O3I,globIterateSync:BP,iterateSync:S3I,Glob:Qb,hasMagic:ibe,escape:cE,unescape:Fb});fP.glob=fP;var SUe=rn(zUe(),1);import*as ra from"path";G();import{exec as ikI}from"child_process";import*as Wbe from"os";import*as jh from"path";import{promisify as bkI}from"util";var mkI=bkI(ikI);function Nbe(t){return jh.isAbsolute(t)?t:t.startsWith("~")?jh.normalize(t.replace("~",Wbe.homedir())):jh.resolve(t)}async function Ybe(t=process.cwd()){try{let I=(await mkI("git rev-parse --show-toplevel",{cwd:t,encoding:"utf8",timeout:5e3,maxBuffer:1048576})).stdout.trim();if(I)return{gitRoot:I,found:!0}}catch{}return{gitRoot:t,found:!1}}function UUe(){let t=process.env.XDG_CONFIG_HOME,e=".copilot";return t?jh.join(t,e):jh.join(Wbe.homedir(),e)}var Dh,mE;async function OUe(t,e,I){return mE||(Dh||(Dh=new Map),mE=(async()=>{let l=await MUe(t,e,I);Dh.set(`${t}:${e}:${I||t}`,l)})(),mE)}async function Vbe(t,e,I){let l=`${t}:${e}:${I||t}`;if(Dh?.has(l)||mE&&(await mE,Dh?.has(l)))return Dh.get(l);let n=await MUe(t,e,I);return Dh||(Dh=new Map),Dh.set(l,n),n}async function MUe(t,e,I){let l=process.env.COPILOT_CUSTOM_INSTRUCTIONS_DIRS?process.env.COPILOT_CUSTOM_INSTRUCTIONS_DIRS.split(",").map(h=>h.trim()).filter(h=>h.length>0):[],[n,c]=await Promise.all([YkI(t,I,l),VkI(t,I,l)]),a;n?a={content:n.content,source:"vscode",sourcePath:".github/instructions"}:c&&(a={content:c.content,source:"nested-agents",sourcePath:"nested AGENTS.md"});let s=e?WkI():{exists:!1,path:void 0},r=ukI(t);if(s.exists||r.exists){let h="",p="",Z=!1;if(s.exists&&s.path){let u=await ni.promises.readFile(s.path,"utf-8");h+=Vu(u);let N=process.env.XDG_CONFIG_HOME;N?p=`${N}/.copilot/copilot-instructions.md`:p="~/.copilot/copilot-instructions.md",Z=!0}if(r.exists&&r.path){let u=await ni.promises.readFile(r.path,"utf-8");h?(h+=`
930
930