very-happy-dom 0.3.2 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,27 @@
1
+ [Compare changes](https://github.com/stacksjs/very-happy-dom/compare/v0.3.3...HEAD)
2
+
3
+ ## 🐛 Bug Fixes
4
+
5
+ - resolve a colon in an attribute value, and keep html attributes ([690c0fe](https://github.com/stacksjs/very-happy-dom/commit/690c0fe)) _(by glennmichael123 <gtorregosa@gmail.com>)_
6
+
7
+ ## Contributors
8
+
9
+ - _glennmichael123 <gtorregosa@gmail.com>_
10
+
11
+ [Compare changes](https://github.com/stacksjs/very-happy-dom/compare/v0.3.2...HEAD)
12
+
13
+ ## 🐛 Bug Fixes
14
+
15
+ - **parser**: treat a < that cannot open a tag as text ([d3edc1b](https://github.com/stacksjs/very-happy-dom/commit/d3edc1b)) _(by glennmichael123 <gtorregosa@gmail.com>)_
16
+
17
+ ## 🤖 Continuous Integration
18
+
19
+ - **release**: read the tag message from the API ([8a01766](https://github.com/stacksjs/very-happy-dom/commit/8a01766)) _(by glennmichael123 <gtorregosa@gmail.com>)_
20
+
21
+ ## Contributors
22
+
23
+ - _glennmichael123 <gtorregosa@gmail.com>_
24
+
1
25
  [Compare changes](https://github.com/stacksjs/very-happy-dom/compare/v0.3.1...HEAD)
2
26
 
3
27
  ## 🐛 Bug Fixes
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{b}from"./chunk-0svp3sna.js";var l=new Set(["constructor","prototype","__proto__","globalThis","global","self","window","parent","top","frames"]),c=new Set(["navigator","localStorage","sessionStorage","location","history","innerWidth","innerHeight","outerWidth","outerHeight","devicePixelRatio","scrollX","scrollY","pageXOffset","pageYOffset","matchMedia","getComputedStyle","getSelection","customElements","indexedDB","addEventListener","removeEventListener","dispatchEvent","postMessage","alert","confirm","prompt","scrollTo","scroll","scrollBy","requestAnimationFrame","cancelAnimationFrame","requestIdleCallback","cancelIdleCallback","BroadcastChannel","MessageChannel","MessagePort","EventSource","PerformanceObserver","MutationObserver","IntersectionObserver","ResizeObserver","CustomElementRegistry","HTMLElement","Event","CustomEvent","MouseEvent","KeyboardEvent","FocusEvent","InputEvent","SubmitEvent","PointerEvent","TouchEvent","WheelEvent","DragEvent","ClipboardEvent","AnimationEvent","TransitionEvent","ProgressEvent","MessageEvent","CloseEvent","StorageEvent","PopStateEvent","HashChangeEvent","ErrorEvent","MediaQueryListEvent","CompositionEvent","Document","Element","Node","Text","Comment","DocumentFragment","HTMLTemplateElement","SVGElement","NodeFilter","NodeIterator","TreeWalker","Range","Selection","DOMParser","XMLSerializer","XMLHttpRequest","WebSocket","File","FileReader","FileList","HTMLCanvasElement","CanvasRenderingContext2D","Image","Audio","IDBFactory","IDBDatabase","IDBObjectStore","IDBTransaction","IDBRequest","IDBOpenDBRequest","Notification","DataTransfer","FormData"]),i=null,s=new Map;function f(e){try{return Reflect.construct(String,[],e),!0}catch{return!1}}function u(e,t){if(typeof e.value==="function"&&f(e.value))return e;if(typeof e.value==="function")return{...e,value:e.value.bind(t)};if(typeof e.get==="function"||typeof e.set==="function"){let o={configurable:e.configurable,enumerable:e.enumerable};if(e.get)o.get=e.get.bind(t);if(e.set)o.set=e.set.bind(t);return o}return e}function a(e,t){if(!s.has(e))s.set(e,Object.getOwnPropertyDescriptor(globalThis,e));Object.defineProperty(globalThis,e,{...t,configurable:!0})}class Le{static register(e={}){if(i)throw Error("GlobalRegistrator: already registered. Call unregister() first.");let t=new b(e);i=t;for(let n of Object.getOwnPropertyNames(t)){if(l.has(n))continue;if(n in globalThis&&!c.has(n))continue;let r=Object.getOwnPropertyDescriptor(t,n);if(!r)continue;a(n,u(r,t))}let o=Object.getPrototypeOf(t);for(let n of Object.getOwnPropertyNames(o)){if(l.has(n))continue;if(n in globalThis&&!c.has(n))continue;let r=Object.getOwnPropertyDescriptor(o,n);if(!r)continue;a(n,u(r,t))}a("window",{value:t,writable:!0}),a("document",{value:t.document,writable:!0})}static unregister(){if(!i)return;for(let[e,t]of s)try{if(t)Object.defineProperty(globalThis,e,t);else delete globalThis[e]}catch{}s.clear(),i=null}}
2
+ import{b}from"./chunk-px4nrdxa.js";var l=new Set(["constructor","prototype","__proto__","globalThis","global","self","window","parent","top","frames"]),c=new Set(["navigator","localStorage","sessionStorage","location","history","innerWidth","innerHeight","outerWidth","outerHeight","devicePixelRatio","scrollX","scrollY","pageXOffset","pageYOffset","matchMedia","getComputedStyle","getSelection","customElements","indexedDB","addEventListener","removeEventListener","dispatchEvent","postMessage","alert","confirm","prompt","scrollTo","scroll","scrollBy","requestAnimationFrame","cancelAnimationFrame","requestIdleCallback","cancelIdleCallback","BroadcastChannel","MessageChannel","MessagePort","EventSource","PerformanceObserver","MutationObserver","IntersectionObserver","ResizeObserver","CustomElementRegistry","HTMLElement","Event","CustomEvent","MouseEvent","KeyboardEvent","FocusEvent","InputEvent","SubmitEvent","PointerEvent","TouchEvent","WheelEvent","DragEvent","ClipboardEvent","AnimationEvent","TransitionEvent","ProgressEvent","MessageEvent","CloseEvent","StorageEvent","PopStateEvent","HashChangeEvent","ErrorEvent","MediaQueryListEvent","CompositionEvent","Document","Element","Node","Text","Comment","DocumentFragment","HTMLTemplateElement","SVGElement","NodeFilter","NodeIterator","TreeWalker","Range","Selection","DOMParser","XMLSerializer","XMLHttpRequest","WebSocket","File","FileReader","FileList","HTMLCanvasElement","CanvasRenderingContext2D","Image","Audio","IDBFactory","IDBDatabase","IDBObjectStore","IDBTransaction","IDBRequest","IDBOpenDBRequest","Notification","DataTransfer","FormData"]),i=null,s=new Map;function f(e){try{return Reflect.construct(String,[],e),!0}catch{return!1}}function u(e,t){if(typeof e.value==="function"&&f(e.value))return e;if(typeof e.value==="function")return{...e,value:e.value.bind(t)};if(typeof e.get==="function"||typeof e.set==="function"){let o={configurable:e.configurable,enumerable:e.enumerable};if(e.get)o.get=e.get.bind(t);if(e.set)o.set=e.set.bind(t);return o}return e}function a(e,t){if(!s.has(e))s.set(e,Object.getOwnPropertyDescriptor(globalThis,e));Object.defineProperty(globalThis,e,{...t,configurable:!0})}class Le{static register(e={}){if(i)throw Error("GlobalRegistrator: already registered. Call unregister() first.");let t=new b(e);i=t;for(let n of Object.getOwnPropertyNames(t)){if(l.has(n))continue;if(n in globalThis&&!c.has(n))continue;let r=Object.getOwnPropertyDescriptor(t,n);if(!r)continue;a(n,u(r,t))}let o=Object.getPrototypeOf(t);for(let n of Object.getOwnPropertyNames(o)){if(l.has(n))continue;if(n in globalThis&&!c.has(n))continue;let r=Object.getOwnPropertyDescriptor(o,n);if(!r)continue;a(n,u(r,t))}a("window",{value:t,writable:!0}),a("document",{value:t.document,writable:!0})}static unregister(){if(!i)return;for(let[e,t]of s)try{if(t)Object.defineProperty(globalThis,e,t);else delete globalThis[e]}catch{}s.clear(),i=null}}
3
3
  export{Le};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{o}from"./chunk-d5edpdkj.js";export{o as VirtualTextNode};
@@ -0,0 +1,3 @@
1
+ // @bun
2
+ import{o,c,d}from"./chunk-d5edpdkj.js";var S={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",divide:"\xF7",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A"};function A(t){return t.replace(/&(#x?[0-9a-f]+|[a-z]+);/gi,(s,e)=>{if(e.startsWith("#x")||e.startsWith("#X")){let E=Number.parseInt(e.slice(2),16);return Number.isNaN(E)?`&${e};`:String.fromCodePoint(E)}if(e.startsWith("#")){let E=Number.parseInt(e.slice(1),10);return Number.isNaN(E)?`&${e};`:String.fromCodePoint(E)}return S[e]??S[e.toLowerCase()]??`&${e};`})}function Qe(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function mi(t){return Qe(t).replace(/"/g,"&quot;")}class x extends d{nodeType=c;nodeKind="comment";nodeName="#comment";nodeValue;constructor(t){super();this.nodeValue=t}get textContent(){return this.nodeValue||""}set textContent(t){this.nodeValue=t}get data(){return this.nodeValue||""}set data(t){this.nodeValue=t}get length(){return(this.nodeValue||"").length}substringData(t,s){let e=this.nodeValue||"";if(t<0||t>e.length)throw new DOMException("The index is not in the allowed range.","IndexSizeError");return e.slice(t,t+s)}appendData(t){this.nodeValue=(this.nodeValue||"")+t}insertData(t,s){let e=this.nodeValue||"";if(t<0||t>e.length)throw new DOMException("The index is not in the allowed range.","IndexSizeError");this.nodeValue=e.slice(0,t)+s+e.slice(t)}deleteData(t,s){let e=this.nodeValue||"";if(t<0||t>e.length)throw new DOMException("The index is not in the allowed range.","IndexSizeError");this.nodeValue=e.slice(0,t)+e.slice(t+s)}replaceData(t,s,e){let E=this.nodeValue||"";if(t<0||t>E.length)throw new DOMException("The index is not in the allowed range.","IndexSizeError");this.nodeValue=E.slice(0,t)+e+E.slice(t+s)}cloneNode(){return new x(this.nodeValue)}}var w="http://www.w3.org/2000/svg",q="http://www.w3.org/1998/Math/MathML",b=null;function R(){if(!b)b={VirtualElement:import.meta.require("./chunk-kgd4m1kz.js").VirtualElement,VirtualSVGElement:import.meta.require("./chunk-qp0vmpvq.js").VirtualSVGElement};return b}function p(t,s){let e=0,E=t.toLowerCase();function i(){return t[e]||""}function f(){return t[e++]||""}function N(){while(/\s/.test(i()))f()}function h(u,n=null){if(s){if(n)return s.createElementNS?.(n,u);return s.createElement(u)}let{VirtualElement:r,VirtualSVGElement:g}=R(),m=n===w?new g(u):new r(u);if(n&&n!==w)m.namespaceURI=n;return m}function B(u){let n=s?.createTextNode?.(u)??new o(u);if(!n.ownerDocument&&s)n.ownerDocument=s;return n}function M(u){let n=s?.createComment?.(u)??new x(u);if(!n.ownerDocument&&s)n.ownerDocument=s;return n}function D(u){if(t.slice(e,e+2)!=="</")return!1;let n=t.indexOf(">",e+2);if(n===-1)return!1;if(t.slice(e+2,n).trim().toLowerCase()!==u.toLowerCase())return!1;return e=n+1,!0}function z(u){let n=`</${u.toLowerCase()}`,r=E.indexOf(n,e);if(r===-1){let m=t.slice(e);return e=t.length,m}let g=t.slice(e,r);return e=r,g}function L(){if(i()!=="<"||t.slice(e,e+2)==="</"||t.slice(e,e+4)==="<!--"||t.slice(e,e+2)==="<!")return null;let u=e+1,n="";while(t[u]&&/[a-z0-9-]/i.test(t[u]))n+=t[u],u++;return n?n.toLowerCase():null}function k(){if(t.slice(e,e+2)!=="</")return null;let u=e+2,n="";while(t[u]&&/[a-z0-9-]/i.test(t[u]))n+=t[u],u++;return n?n.toLowerCase():null}function P(u,n){if(!n)return!1;return{li:["li"],p:["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","menu","nav","ol","p","pre","section","table","ul"],dt:["dt","dd"],dd:["dt","dd"],option:["option","optgroup"],thead:["tbody","tfoot"],tbody:["tbody","tfoot"],tr:["tr","tbody","thead","tfoot"],td:["td","th","tr","tbody","thead","tfoot"],th:["td","th","tr","tbody","thead","tfoot"]}[u]?.includes(n)??!1}function I(u,n){if(n.nodeType!==1){u.appendChild(n);return}let r=u.tagName.toLowerCase(),m=n.tagName.toLowerCase();if(r==="table"&&m==="tr"){let a=u.lastChild;if(!a||a.nodeType!==1||a.tagName!=="TBODY")a=h("tbody",u.namespaceURI),u.appendChild(a);a.appendChild(n);return}if(r==="table"&&(m==="td"||m==="th")){let a=u.lastChild;if(!a||a.nodeType!==1||a.tagName!=="TBODY")a=h("tbody",u.namespaceURI),u.appendChild(a);let C=a.lastChild;if(!C||C.nodeType!==1||C.tagName!=="TR")C=h("tr",u.namespaceURI),a.appendChild(C);C.appendChild(n);return}if((r==="tbody"||r==="thead"||r==="tfoot")&&(m==="td"||m==="th")){let a=u.lastChild;if(!a||a.nodeType!==1||a.tagName!=="TR")a=h("tr",u.namespaceURI),u.appendChild(a);a.appendChild(n);return}u.appendChild(n)}function G(u=null){if(i()!=="<")return null;if(f(),t.slice(e,e+3)==="!--"){e+=3;let l=t.indexOf("-->",e);if(l===-1)throw Error("Unclosed comment");let V=t.slice(e,l);return e=l+3,M(V)}if(t.slice(e,e+8).toUpperCase()==="!DOCTYPE"){let l=t.indexOf(">",e);if(l===-1)throw Error("Unclosed DOCTYPE");return e=l+1,null}if(i()==="/"){f();let l=t.indexOf(">",e);if(l===-1)throw Error("Unclosed tag");return e=l+1,null}let n="";while(i()&&/[a-z0-9-]/i.test(i()))n+=f();if(!n)throw Error("Invalid tag name");let r=n.toLowerCase(),g=u===w||u===q?u:r==="svg"?w:r==="math"?q:null,m=h(n,g),a=g===w&&r==="foreignobject"?null:g;while(i()&&i()!==">"&&i()!=="/"){if(N(),i()===">"||i()==="/")break;let l="";while(i()&&/[\w\-:]/.test(i()))l+=f();if(!l)break;N();let V="",F=!1;if(i()==="=")if(F=!0,f(),N(),i()==='"'||i()==="'"){let O=f();while(i()&&i()!==O)V+=f();if(i()===O)f()}else while(i()&&!/[\s>]/.test(i()))V+=f();m.setAttribute(l,F?A(V):"")}let C=i()==="/";if(C)f();if(i()===">")f();if(C||["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"].includes(r))return m;let U=new Set(["script","style"]),v=new Set(["textarea","title"]);if(U.has(r)||v.has(r)){let l=z(n);if(l)m.appendChild(B(v.has(r)?A(l):l));return D(n),m}let Y=y(r,a);for(let l of Y)I(m,l);return m}function T(){if(i()!=="<")return!1;let u=t[e+1];if(u===void 0)return!1;if(/[a-z]/i.test(u))return!0;if(u==="/")return/[a-z]/i.test(t[e+2]??"");if(u==="!")return t.slice(e+1,e+4)==="!--"||t.slice(e+1,e+9).toUpperCase()==="!DOCTYPE";return!1}function H(){let u="";while(i()&&!T())u+=f();if(!u)return null;return B(A(u))}function y(u,n=null){let r=[];while(e<t.length){if(u&&D(u))break;if(u&&k())break;if(u&&P(u,L()))break;if(T()){let g=G(n);if(g===null)continue;r.push(g)}else{let g=H();if(g)r.push(g)}}return r}return y()}
3
+ export{Qe,mi,x,p};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{_}from"./chunk-w2g7xbfh.js";import"./chunk-d5edpdkj.js";export{_ as VirtualDocumentFragment};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{p}from"./chunk-2m1ksnrw.js";import"./chunk-d5edpdkj.js";export{p as parseHTML};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{e}from"./chunk-ekpt3ds6.js";class r extends e{constructor(t){super(t);this.tagName=t,this.nodeName=t,this.namespaceURI="http://www.w3.org/2000/svg"}}
2
+ import{e}from"./chunk-qh4s27j9.js";class r extends e{constructor(t){super(t);this.tagName=t,this.nodeName=t,this.namespaceURI="http://www.w3.org/2000/svg"}}
3
3
  export{r};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- function g(e,r,s){try{e[r]=s;return}catch{}try{Object.defineProperty(e,r,{configurable:!0,enumerable:r!=="_path",writable:!0,value:s})}catch{}}function C(e,r){return Boolean(e?.[r])}function se(e){return Boolean(e&&typeof e==="object")}function U(e){return se(e)?e.parentNode??null:null}function B(e){return e?.nodeType===11&&e?.nodeName==="#shadow-root"&&e?.host}function de(e,r){let s=[],u=e;while(u){if(s.push(u),B(u)&&r?.composed!==!0)break;u=u._getEventParent?.()??null}return s}function ue(e){let r=e;while(r){if(B(r))return r;r=U(r)}return null}function ce(e,r){let s=e;while(s){if(s===r)return!0;s=U(s)}return!1}function L(e,r){let s=ue(e);if(!s)return e;if(r===s||ce(r,s))return e;return s.host??e}class f{_eventListeners=new Map;addEventListener(e,r,s={}){if(!r)return;let u=s!==void 0&&s!==!1&&s!==!0&&typeof s==="object",N=u?s.capture??!1:s===!0,p=u?s.once??!1:!1,T=u?s.passive??!1:!1,h=u?s.signal:void 0;if(h?.aborted)return;let y=this._eventListeners.get(e);if(y){for(let _=0;_<y.length;_++)if(y[_].listener===r&&y[_].options.capture===N)return;y.push({listener:r,options:{capture:N,once:p,passive:T},signal:h})}else this._eventListeners.set(e,[{listener:r,options:{capture:N,once:p,passive:T},signal:h}]);if(h)h.addEventListener("abort",()=>{this.removeEventListener(e,r,{capture:N})},{once:!0})}removeEventListener(e,r,s={}){if(!r)return;let u=this._eventListeners.get(e);if(!u)return;let N=typeof s==="boolean"?{capture:s}:{capture:s.capture??!1},p=u.findIndex((T)=>T.listener===r&&T.options.capture===N.capture);if(p!==-1)u.splice(p,1);if(u.length===0)this._eventListeners.delete(e)}dispatchEvent(e){if(!e||typeof e.type!=="string"||!e.type)throw Error("Failed to execute dispatchEvent: event.type must be a non-empty string");let r=de(this,e);if(r.length===1){if(g(e,"target",this),g(e,"eventPhase",2),g(e,"currentTarget",this),typeof e.composedPath!=="function")g(e,"composedPath",()=>[this]);g(e,"_path",[this]);let h=()=>!1;return this._invokeEventListeners(e,!0,h),this._invokeEventListeners(e,!1,h),g(e,"eventPhase",0),g(e,"currentTarget",null),!e.defaultPrevented}let s=this,u=e?.relatedTarget??null,N=(h,y)=>{if(g(e,"eventPhase",y),g(e,"currentTarget",h),h){if(g(e,"target",L(s,h)),u)g(e,"relatedTarget",L(u,h))}};if(g(e,"target",s),g(e,"_path",[...r]),typeof e.composedPath!=="function")g(e,"composedPath",()=>[...r]);let p=()=>C(e,"_propagationStopped")||C(e,"propagationStopped"),T=()=>C(e,"_immediatePropagationStopped")||C(e,"immediatePropagationStopped");for(let h=r.length-1;h>=1;h--){if(p())break;N(r[h],1),r[h]._invokeEventListeners(e,!0,T)}if(!p()){if(N(this,2),this._invokeEventListeners(e,!0,T),!T())this._invokeEventListeners(e,!1,T)}if(e.bubbles===!0&&!p())for(let h=1;h<r.length;h++){if(p())break;N(r[h],3),r[h]._invokeEventListeners(e,!1,T)}if(g(e,"eventPhase",0),g(e,"currentTarget",null),g(e,"target",s),u)g(e,"relatedTarget",u);return!Boolean(e.defaultPrevented)}_getEventParent(){return null}_invokeEventListeners(e,r,s){let u=this._eventListeners.get(e.type);if(!u||u.length===0)return;let N=u.length===1?u:[...u];for(let p of N){if((p.options.capture??!1)!==r)continue;if(s())break;if(p.options.passive){let T=e.preventDefault;e.preventDefault=()=>{};try{p.listener.call(this,e)}catch(h){console.error("Error in event listener:",h)}e.preventDefault=T}else try{p.listener.call(this,e)}catch(T){console.error("Error in event listener:",T)}if(p.options.once)this.removeEventListener(e.type,p.listener,{capture:r})}}}var t=1,z=2,i=3,Y=4,q=5,W=6,H=7,c=8,a=9,K=10,V=11,X=12,x=1,m=2,te=4,M=8,Re=16,w=32;function Wi(e){return e?.nodeType===t}function j(e,r){let s=e.nodeType===a?e:e.ownerDocument,u=s?.createTextNode?.(`${r}`);if(u)return u;let{VirtualTextNode:N}=import.meta.require("./chunk-yvpyyhfd.js"),p=new N(`${r}`);return p.ownerDocument=s??null,p}function O(e){let r=e.nodeType===a?e:e.ownerDocument,s=r?.createDocumentFragment?.();if(s)return s;let{VirtualDocumentFragment:u}=import.meta.require("./chunk-bfd3vs01.js"),N=new u;return N.ownerDocument=r??null,N}function b(e,r){return r.map((s)=>typeof s==="string"?j(e,s):s)}function J(e,r){if(e===r)return!0;if(!e||!r)return!1;if(e.nodeType!==r.nodeType||e.nodeName!==r.nodeName||e.nodeValue!==r.nodeValue)return!1;if(e.attributes.size!==r.attributes.size)return!1;for(let[s,u]of e.attributes)if(r.attributes.get(s)!==u)return!1;if(e.childNodes.length!==r.childNodes.length)return!1;for(let s=0;s<e.childNodes.length;s++)if(!J(e.childNodes[s],r.childNodes[s]))return!1;return!0}class d extends f{static ELEMENT_NODE=t;static ATTRIBUTE_NODE=z;static TEXT_NODE=i;static CDATA_SECTION_NODE=Y;static ENTITY_REFERENCE_NODE=q;static ENTITY_NODE=W;static PROCESSING_INSTRUCTION_NODE=H;static COMMENT_NODE=c;static DOCUMENT_NODE=a;static DOCUMENT_TYPE_NODE=K;static DOCUMENT_FRAGMENT_NODE=V;static NOTATION_NODE=X;static DOCUMENT_POSITION_DISCONNECTED=x;static DOCUMENT_POSITION_PRECEDING=m;static DOCUMENT_POSITION_FOLLOWING=te;static DOCUMENT_POSITION_CONTAINS=M;static DOCUMENT_POSITION_CONTAINED_BY=Re;static DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=w;ELEMENT_NODE=t;ATTRIBUTE_NODE=z;TEXT_NODE=i;CDATA_SECTION_NODE=Y;ENTITY_REFERENCE_NODE=q;ENTITY_NODE=W;PROCESSING_INSTRUCTION_NODE=H;COMMENT_NODE=c;DOCUMENT_NODE=a;DOCUMENT_TYPE_NODE=K;DOCUMENT_FRAGMENT_NODE=V;NOTATION_NODE=X;DOCUMENT_POSITION_DISCONNECTED=x;DOCUMENT_POSITION_PRECEDING=m;DOCUMENT_POSITION_FOLLOWING=te;DOCUMENT_POSITION_CONTAINS=M;DOCUMENT_POSITION_CONTAINED_BY=Re;DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=w;nodeValue=null;attributes=new Map;childNodes=[];parentNode=null;ownerDocument=null;get children(){let e=this.childNodes,r=[];for(let s=0;s<e.length;s++)if(e[s].nodeType===t)r.push(e[s]);return r}get firstElementChild(){return this.childNodes.find((e)=>e.nodeType===t)??null}get lastElementChild(){for(let e=this.childNodes.length-1;e>=0;e--)if(this.childNodes[e].nodeType===t)return this.childNodes[e];return null}get childElementCount(){let e=0;for(let r of this.childNodes)if(r.nodeType===t)e++;return e}get firstChild(){return this.childNodes[0]??null}get lastChild(){return this.childNodes.length>0?this.childNodes[this.childNodes.length-1]:null}get previousSibling(){if(!this.parentNode)return null;let e=this.parentNode.childNodes;for(let r=0;r<e.length;r++)if(e[r]===this)return r>0?e[r-1]:null;return null}get nextSibling(){if(!this.parentNode)return null;let e=this.parentNode.childNodes;for(let r=0;r<e.length;r++)if(e[r]===this)return r<e.length-1?e[r+1]:null;return null}get parentElement(){return Wi(this.parentNode)?this.parentNode:null}get isConnected(){let e=this;while(e){if(e.nodeType===a)return!0;e=e.parentNode}return!1}hasChildNodes(){return this.childNodes.length>0}get baseURI(){return this.ownerDocument?.baseURI||""}append(...e){let r=this;if(typeof r.appendChild!=="function")throw Error("This node type does not support append()");let s=b(this,e);if(s.length===0)return;if(s.length===1){r.appendChild(s[0]);return}let u=O(this);for(let N of s)u.appendChild(N);r.appendChild(u)}prepend(...e){let r=this;if(typeof r.insertBefore!=="function")throw Error("This node type does not support prepend()");let s=b(this,e);if(s.length===0)return;if(s.length===1){r.insertBefore(s[0],this.firstChild??null);return}let u=O(this);for(let N of s)u.appendChild(N);r.insertBefore(u,this.firstChild??null)}before(...e){if(!this.parentNode)return;let r=this.parentNode,s=b(this.parentNode,e);if(s.length===0)return;if(s.length===1){r.insertBefore(s[0],this);return}let u=O(this.parentNode);for(let N of s)u.appendChild(N);r.insertBefore(u,this)}after(...e){if(!this.parentNode)return;let r=this.parentNode,s=this.nextSibling,u=b(this.parentNode,e);if(u.length===0)return;if(u.length===1){r.insertBefore(u[0],s??null);return}let N=O(this.parentNode);for(let p of u)N.appendChild(p);r.insertBefore(N,s??null)}replaceWith(...e){if(!this.parentNode)return;let r=this.parentNode,s=b(this.parentNode,e);if(s.length===0){r.removeChild(this);return}if(s.length===1){r.replaceChild(s[0],this);return}let u=O(this.parentNode);for(let N of s)u.appendChild(N);r.replaceChild(u,this)}remove(){if(this.parentNode)this.parentNode.removeChild(this)}replaceChildren(...e){let r=this;if(typeof r.removeChild!=="function"||typeof r.appendChild!=="function")throw Error("This node type does not support replaceChildren()");while(this.childNodes.length>0)r.removeChild(this.childNodes[this.childNodes.length-1]);for(let s of e)if(typeof s==="string")r.appendChild(j(this,s));else r.appendChild(s)}isSameNode(e){return this===e}isEqualNode(e){return J(this,e)}getRootNode(e={}){let r=this,s=this;while(r.parentNode){let u=r.parentNode;if(s=u,u.nodeType===V&&u.host&&e.composed!==!0)return u;r=u}return s}contains(e){if(!e)return!1;let r=e;while(r){if(r===this)return!0;r=r.parentNode}return!1}normalize(){let e=0;while(e<this.childNodes.length){let r=this.childNodes[e];if(r.nodeType===i){let s=r.nodeValue||"",u=e+1;while(u<this.childNodes.length&&this.childNodes[u].nodeType===i)s+=this.childNodes[u].nodeValue||"",this.childNodes.splice(u,1);if(s===""){this.childNodes.splice(e,1),r.parentNode=null;continue}r.nodeValue=s}else if(typeof r.normalize==="function")r.normalize();e++}}compareDocumentPosition(e){if(e===this)return 0;let r=this._virtualRootNode(this),s=this._virtualRootNode(e);if(r!==s)return x|w;if(this!==e&&this.contains(e))return M|m;if(e!==this&&this._virtualNodeContains(e,this))return Re|te;let u=this._virtualDocumentOrder(r);return u.indexOf(this)<u.indexOf(e)?te:m}_getEventParent(){if(this.parentNode)return this.parentNode;if(this.nodeType===a)return this.defaultView??null;return null}_virtualRootNode(e){let r=e;while(r.parentNode)r=r.parentNode;return r}_virtualNodeContains(e,r){return e!==r&&typeof e.contains==="function"?e.contains(r):!1}_virtualDocumentOrder(e){let r=[],s=(u)=>{r.push(u);for(let N of u.childNodes)s(N)};return s(e),r}}function pe(e){let r=e?.constructor;if(!r||!Array.isArray(r.observedAttributes))return[];return r.observedAttributes.map((s)=>`${s}`.toLowerCase())}function Q(e){return e._getInternalShadowRoot?.()??null}function Z(e){return e.tagName==="TEMPLATE"?e.content??null:null}function D(e,r){if(e.nodeType===t)r(e);let s=Q(e);if(s)D(s,r);if(Z(e))return;for(let u of e.childNodes)D(u,r)}function v(e,r){if(e.nodeType===t)r(e);let s=Q(e);if(s)v(s,r);let u=Z(e);if(u){v(u,r);return}for(let N of e.childNodes)v(N,r)}function Ne(e){D(e,(r)=>{if(typeof r.connectedCallback==="function"&&r.isConnected)r.connectedCallback()})}function I(e){D(e,(r)=>{if(typeof r.disconnectedCallback==="function")r.disconnectedCallback()})}function ee(e,r,s){if(!r||!s||r===s)return;v(e,(u)=>{if(typeof u.adoptedCallback==="function")u.adoptedCallback()})}function Ce(e,r,s,u){if(typeof e?.attributeChangedCallback!=="function")return;if(s===u)return;if(!pe(e).includes(r.toLowerCase()))return;e.attributeChangedCallback(r,s,u)}class n{static NONE=0;static CAPTURING_PHASE=1;static AT_TARGET=2;static BUBBLING_PHASE=3;NONE=0;CAPTURING_PHASE=1;AT_TARGET=2;BUBBLING_PHASE=3;type;target=null;currentTarget=null;bubbles;cancelable;composed;defaultPrevented=!1;propagationStopped=!1;immediatePropagationStopped=!1;eventPhase=0;timeStamp;isTrusted=!1;_path=[];_propagationStopped=!1;_immediatePropagationStopped=!1;constructor(e,r={}){this.type=e,this.bubbles=r.bubbles??!1,this.cancelable=r.cancelable??!1,this.composed=r.composed??!1,this.timeStamp=Date.now()}initEvent(e,r=!1,s=!1){this.type=e,this.bubbles=r,this.cancelable=s,this.defaultPrevented=!1,this.propagationStopped=!1,this.immediatePropagationStopped=!1,this._propagationStopped=!1,this._immediatePropagationStopped=!1}preventDefault(){if(this.cancelable)this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0,this._propagationStopped=!0}stopImmediatePropagation(){this.immediatePropagationStopped=!0,this.propagationStopped=!0,this._immediatePropagationStopped=!0,this._propagationStopped=!0}composedPath(){return[...this._path]}get cancelBubble(){return this.propagationStopped}set cancelBubble(e){if(e)this.stopPropagation()}get returnValue(){return!this.defaultPrevented}set returnValue(e){if(!e)this.preventDefault()}get srcElement(){return this.target}}var ne=new WeakMap,P=new WeakSet;function oe(e){return e?.nodeType===11&&e?.nodeName==="#shadow-root"&&Boolean(e.host)}function re(e){let r=e;while(r){if(oe(r))return r;r=r.parentNode}return null}function ie(e){return e?._getInternalShadowRoot?.()?.querySelectorAll?.("slot")??[]}function he(e,r){return e.length===r.length&&e.every((s,u)=>s===r[u])}function fe(e){if(P.has(e))return;P.add(e),queueMicrotask(()=>{P.delete(e);let r=ne.get(e)??[],s=gi(e);if(ne.set(e,s),!he(r,s))e.dispatchEvent(new n("slotchange"))})}function gi(e,r={}){let s=re(e);if(!s)return[];let u=e.getAttribute?.("name")??"";if(ie(s.host).find((h)=>(h.getAttribute?.("name")??"")===u)!==e)return[];let p=(s.host?.childNodes??[]).filter((h)=>{if(h.nodeType!==t&&h.nodeType!==i)return!1;return(h.nodeType===t?h.getAttribute?.("slot")??"":"")===u});if(!r.flatten)return p;return(p.length>0?p:e.childNodes??[]).flatMap((h)=>{if(h?.tagName==="SLOT"&&typeof h.assignedNodes==="function")return h.assignedNodes({flatten:!0});return[h]})}function Qi(e,r={}){return gi(e,r).filter((s)=>s.nodeType===t)}function F(e){let r=e?._getInternalShadowRoot?.()?e:null,s=oe(e)?e:re(e),u=e?.parentNode?._getInternalShadowRoot?.()?e.parentNode:null,N=r??s?.host??u;if(!N)return;for(let p of ie(N))fe(p)}function S(e,r,s,u,N){if(r.length===0&&s.length===0)return;l._queueMutationRecord({type:"childList",target:e,addedNodes:r,removedNodes:s,previousSibling:u,nextSibling:N,attributeName:null,attributeNamespace:null,oldValue:null}),F(e)}function ae(e){return e.nodeType===a?e:e.ownerDocument}function Ee(e){return e._getInternalShadowRoot?.()??null}function Te(e){return e.tagName==="TEMPLATE"?e.content??null:null}function R(e){if(!e._lastTraversalParent&&!e._lastTraversalNextSibling)return;e._lastTraversalParent=null,e._lastTraversalNextSibling=null;for(let r of e.childNodes)R(r)}function E(e,r){if(e.ownerDocument===r&&e.nodeType!==a)return;let s=e.ownerDocument??null;if(e.nodeType!==a)e.ownerDocument=r;if(e.nodeType===t){let u=e.attributes?.get("id");if(u!==void 0){if(s?._idIndex)s._idIndex.delete(u);if(r?._idIndex)r._idIndex.set(u,e)}let N=Ee(e);if(N)E(N,r);let p=Te(e);if(p)p.ownerDocument=r}ee(e,s,r);for(let u of e.childNodes)E(u,r)}function Ve(e,r){let s=r;while(s){if(s===e)return!0;s=s.parentNode}return!1}function Me(e){let r=e.ownerDocument;if(!r||!r._idIndex||r._idIndex.size===0)return;if(e.nodeType===t){let s=e.attributes?.get("id");if(s!==void 0)r._idIndex.delete(s);for(let u of e.childNodes)if(u.nodeType===t)Me(u)}}function le(e){let r=e.isConnected===!0;if(!e.parentNode)return;Me(e);let s=e.parentNode,u=s.childNodes,N=u.indexOf(e),p=N>=0&&N<u.length-1?u[N+1]:null;if(N!==-1)u.splice(N,1);if(e._lastTraversalParent=s,e._lastTraversalNextSibling=p,e.parentNode=null,F(s),r)I(e)}function A(e,r){if(r===e||Ve(r,e))throw Error("The new child element contains the parent");if(r.nodeType===V){let s=[...r.childNodes];r.childNodes=[];let u=ae(e);for(let N of s){if(N.parentNode)le(N),R(N);N.parentNode=e,E(N,u)}return s}if(r.parentNode)le(r),R(r);return r.parentNode=e,E(r,ae(e)),[r]}function k(e,r){let s=A(e,r),u=e.childNodes.length>0?e.childNodes[e.childNodes.length-1]:null;if(s.length===1)e.childNodes.push(s[0]);else e.childNodes.push(...s);for(let N of s)if(N.isConnected===!0)Ne(N);return S(e,s,[],u,null),r}function et(e,r,s){if(s===null)return k(e,r);let u=e.childNodes.indexOf(s);if(u===-1)throw Error("Reference node not found");let N=A(e,r),p=u>0?e.childNodes[u-1]:null;e.childNodes.splice(u,0,...N);for(let T of N)if(T.isConnected===!0)Ne(T);return S(e,N,[],p,s),r}function Oe(e,r){let s=e.childNodes.indexOf(r);if(s===-1)throw Error("Child node not found");Me(r);let u=r.isConnected===!0,N=s>0?e.childNodes[s-1]:null,p=s<e.childNodes.length-1?e.childNodes[s+1]:null;if(e.childNodes.splice(s,1),r._lastTraversalParent=e,r._lastTraversalNextSibling=p,r.parentNode=null,u)I(r);return S(e,[],[r],N,p),r}function tt(e,r,s){let u=e.childNodes.indexOf(s);if(u===-1)throw Error("Old node not found");Me(s);let N=A(e,r),p=s.isConnected===!0,T=u>0?e.childNodes[u-1]:null,h=u<e.childNodes.length-1?e.childNodes[u+1]:null;if(e.childNodes.splice(u,1,...N),s._lastTraversalParent=e,s._lastTraversalNextSibling=h,s.parentNode=null,p)I(s);for(let y of N)if(y.isConnected===!0)Ne(y);return S(e,N,[s],T,h),s}function G(e){if(e.nodeType===i)return e.nodeValue||"";if(e.nodeType===c)return"";let r="";for(let s of e.childNodes)r+=G(s);return r}function ge(e,r,s,u){if(e===r)return!0;if(!s)return!1;let N=e.parentNode;while(N){if(N===r)return!0;N=N.parentNode}for(let p of u)if(e===p||Ve(p,e))return!0;return!1}function ye(e,r){if(e.type==="childList")return r.childList===!0;if(e.type==="attributes"){if(r.attributes!==!0)return!1;if(r.attributeFilter&&e.attributeName)return r.attributeFilter.map((s)=>s.toLowerCase()).includes(e.attributeName.toLowerCase());return!0}if(e.type==="characterData")return r.characterData===!0;return!1}function be(e){let r={...e};if(r.attributeOldValue===!0||r.attributeFilter){if(r.attributes===!1)throw TypeError("Failed to execute observe: attributeOldValue/attributeFilter requires attributes to be true");r.attributes=!0}if(r.characterDataOldValue===!0){if(r.characterData===!1)throw TypeError("Failed to execute observe: characterDataOldValue requires characterData to be true");r.characterData=!0}if(r.childList!==!0&&r.attributes!==!0&&r.characterData!==!0)throw TypeError("Failed to execute observe: at least one of childList, attributes, or characterData must be true");return r}class l{static _observers=new Set;_callback;_records=[];_observations=new Map;_scheduled=!1;_transientRoots=new Set;constructor(e){this._callback=e}observe(e,r={}){let s=be(r),u=this._observations.get(e);if(u){let N={...u,...s};if(u.attributeFilter&&s.attributeFilter){let p=new Set([...u.attributeFilter,...s.attributeFilter]);N.attributeFilter=Array.from(p)}this._observations.set(e,N)}else this._observations.set(e,s);l._observers.add(this)}disconnect(){this._observations.clear(),l._observers.delete(this),this._records=[],this._scheduled=!1,this._transientRoots.clear()}takeRecords(){let e=this._records;return this._records=[],e}_addRecord(e){if(this._records.push(e),this._scheduled)return;this._scheduled=!0,queueMicrotask(()=>{if(this._scheduled=!1,this._records.length>0){let r=this.takeRecords();this._callback(r,this)}this._transientRoots.clear()})}static _queueMutationRecord(e){if(l._observers.size===0)return;for(let r of l._observers)for(let[s,u]of r._observations){if(!ge(e.target,s,u.subtree===!0,r._transientRoots))continue;if(e.type==="childList"&&e.removedNodes.length>0&&u.subtree===!0)for(let p of e.removedNodes)r._transientRoots.add(p);if(!ye(e,u))continue;r._addRecord({...e,oldValue:e.type==="attributes"?u.attributeOldValue?e.oldValue:null:e.type==="characterData"?u.characterDataOldValue?e.oldValue:null:null})}}}class o extends d{nodeType=i;nodeKind="text";nodeName="#text";nodeValue;constructor(e){super();this.nodeValue=e}get textContent(){return this.nodeValue||""}set textContent(e){let r=this.nodeValue||"";this.nodeValue=e,l._queueMutationRecord({type:"characterData",target:this,addedNodes:[],removedNodes:[],previousSibling:null,nextSibling:null,attributeName:null,attributeNamespace:null,oldValue:r})}get data(){return this.nodeValue||""}set data(e){this.textContent=e}get length(){return(this.nodeValue||"").length}substringData(e,r){let s=this.nodeValue||"";if(e<0||e>s.length)throw new DOMException("The index is not in the allowed range.","IndexSizeError");return s.slice(e,e+r)}appendData(e){this.textContent=(this.nodeValue||"")+e}insertData(e,r){let s=this.nodeValue||"";if(e<0||e>s.length)throw new DOMException("The index is not in the allowed range.","IndexSizeError");this.textContent=s.slice(0,e)+r+s.slice(e)}deleteData(e,r){let s=this.nodeValue||"";if(e<0||e>s.length)throw new DOMException("The index is not in the allowed range.","IndexSizeError");this.textContent=s.slice(0,e)+s.slice(e+r)}replaceData(e,r,s){let u=this.nodeValue||"";if(e<0||e>u.length)throw new DOMException("The index is not in the allowed range.","IndexSizeError");this.textContent=u.slice(0,e)+s+u.slice(e+r)}splitText(e){let r=this.nodeValue||"";if(e<0||e>r.length)throw new DOMException("The index is not in the allowed range.","IndexSizeError");let s=r.slice(e);this.textContent=r.slice(0,e);let u=new o(s);if(u.ownerDocument=this.ownerDocument,this.parentNode){let N=this.parentNode,p=N.childNodes,T=p.indexOf(this);if(T!==-1&&T<p.length-1)N.insertBefore(u,p[T+1]);else N.appendChild(u)}return u}get wholeText(){let e="",r=this;while(r?.previousSibling?.nodeType===i)r=r.previousSibling;while(r&&r.nodeType===i)e+=r.nodeValue||"",r=r.nextSibling;return e}cloneNode(){return new o(this.nodeValue)}}
2
+ function g(e,r,s){try{e[r]=s;return}catch{}try{Object.defineProperty(e,r,{configurable:!0,enumerable:r!=="_path",writable:!0,value:s})}catch{}}function C(e,r){return Boolean(e?.[r])}function se(e){return Boolean(e&&typeof e==="object")}function U(e){return se(e)?e.parentNode??null:null}function B(e){return e?.nodeType===11&&e?.nodeName==="#shadow-root"&&e?.host}function de(e,r){let s=[],u=e;while(u){if(s.push(u),B(u)&&r?.composed!==!0)break;u=u._getEventParent?.()??null}return s}function ue(e){let r=e;while(r){if(B(r))return r;r=U(r)}return null}function ce(e,r){let s=e;while(s){if(s===r)return!0;s=U(s)}return!1}function L(e,r){let s=ue(e);if(!s)return e;if(r===s||ce(r,s))return e;return s.host??e}class f{_eventListeners=new Map;addEventListener(e,r,s={}){if(!r)return;let u=s!==void 0&&s!==!1&&s!==!0&&typeof s==="object",N=u?s.capture??!1:s===!0,p=u?s.once??!1:!1,T=u?s.passive??!1:!1,h=u?s.signal:void 0;if(h?.aborted)return;let y=this._eventListeners.get(e);if(y){for(let _=0;_<y.length;_++)if(y[_].listener===r&&y[_].options.capture===N)return;y.push({listener:r,options:{capture:N,once:p,passive:T},signal:h})}else this._eventListeners.set(e,[{listener:r,options:{capture:N,once:p,passive:T},signal:h}]);if(h)h.addEventListener("abort",()=>{this.removeEventListener(e,r,{capture:N})},{once:!0})}removeEventListener(e,r,s={}){if(!r)return;let u=this._eventListeners.get(e);if(!u)return;let N=typeof s==="boolean"?{capture:s}:{capture:s.capture??!1},p=u.findIndex((T)=>T.listener===r&&T.options.capture===N.capture);if(p!==-1)u.splice(p,1);if(u.length===0)this._eventListeners.delete(e)}dispatchEvent(e){if(!e||typeof e.type!=="string"||!e.type)throw Error("Failed to execute dispatchEvent: event.type must be a non-empty string");let r=de(this,e);if(r.length===1){if(g(e,"target",this),g(e,"eventPhase",2),g(e,"currentTarget",this),typeof e.composedPath!=="function")g(e,"composedPath",()=>[this]);g(e,"_path",[this]);let h=()=>!1;return this._invokeEventListeners(e,!0,h),this._invokeEventListeners(e,!1,h),g(e,"eventPhase",0),g(e,"currentTarget",null),!e.defaultPrevented}let s=this,u=e?.relatedTarget??null,N=(h,y)=>{if(g(e,"eventPhase",y),g(e,"currentTarget",h),h){if(g(e,"target",L(s,h)),u)g(e,"relatedTarget",L(u,h))}};if(g(e,"target",s),g(e,"_path",[...r]),typeof e.composedPath!=="function")g(e,"composedPath",()=>[...r]);let p=()=>C(e,"_propagationStopped")||C(e,"propagationStopped"),T=()=>C(e,"_immediatePropagationStopped")||C(e,"immediatePropagationStopped");for(let h=r.length-1;h>=1;h--){if(p())break;N(r[h],1),r[h]._invokeEventListeners(e,!0,T)}if(!p()){if(N(this,2),this._invokeEventListeners(e,!0,T),!T())this._invokeEventListeners(e,!1,T)}if(e.bubbles===!0&&!p())for(let h=1;h<r.length;h++){if(p())break;N(r[h],3),r[h]._invokeEventListeners(e,!1,T)}if(g(e,"eventPhase",0),g(e,"currentTarget",null),g(e,"target",s),u)g(e,"relatedTarget",u);return!Boolean(e.defaultPrevented)}_getEventParent(){return null}_invokeEventListeners(e,r,s){let u=this._eventListeners.get(e.type);if(!u||u.length===0)return;let N=u.length===1?u:[...u];for(let p of N){if((p.options.capture??!1)!==r)continue;if(s())break;if(p.options.passive){let T=e.preventDefault;e.preventDefault=()=>{};try{p.listener.call(this,e)}catch(h){console.error("Error in event listener:",h)}e.preventDefault=T}else try{p.listener.call(this,e)}catch(T){console.error("Error in event listener:",T)}if(p.options.once)this.removeEventListener(e.type,p.listener,{capture:r})}}}var t=1,z=2,i=3,Y=4,q=5,W=6,H=7,c=8,a=9,K=10,V=11,X=12,x=1,m=2,te=4,M=8,Re=16,w=32;function Wi(e){return e?.nodeType===t}function j(e,r){let s=e.nodeType===a?e:e.ownerDocument,u=s?.createTextNode?.(`${r}`);if(u)return u;let{VirtualTextNode:N}=import.meta.require("./chunk-2fj4bj05.js"),p=new N(`${r}`);return p.ownerDocument=s??null,p}function O(e){let r=e.nodeType===a?e:e.ownerDocument,s=r?.createDocumentFragment?.();if(s)return s;let{VirtualDocumentFragment:u}=import.meta.require("./chunk-4pj9whd6.js"),N=new u;return N.ownerDocument=r??null,N}function b(e,r){return r.map((s)=>typeof s==="string"?j(e,s):s)}function J(e,r){if(e===r)return!0;if(!e||!r)return!1;if(e.nodeType!==r.nodeType||e.nodeName!==r.nodeName||e.nodeValue!==r.nodeValue)return!1;if(e.attributes.size!==r.attributes.size)return!1;for(let[s,u]of e.attributes)if(r.attributes.get(s)!==u)return!1;if(e.childNodes.length!==r.childNodes.length)return!1;for(let s=0;s<e.childNodes.length;s++)if(!J(e.childNodes[s],r.childNodes[s]))return!1;return!0}class d extends f{static ELEMENT_NODE=t;static ATTRIBUTE_NODE=z;static TEXT_NODE=i;static CDATA_SECTION_NODE=Y;static ENTITY_REFERENCE_NODE=q;static ENTITY_NODE=W;static PROCESSING_INSTRUCTION_NODE=H;static COMMENT_NODE=c;static DOCUMENT_NODE=a;static DOCUMENT_TYPE_NODE=K;static DOCUMENT_FRAGMENT_NODE=V;static NOTATION_NODE=X;static DOCUMENT_POSITION_DISCONNECTED=x;static DOCUMENT_POSITION_PRECEDING=m;static DOCUMENT_POSITION_FOLLOWING=te;static DOCUMENT_POSITION_CONTAINS=M;static DOCUMENT_POSITION_CONTAINED_BY=Re;static DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=w;ELEMENT_NODE=t;ATTRIBUTE_NODE=z;TEXT_NODE=i;CDATA_SECTION_NODE=Y;ENTITY_REFERENCE_NODE=q;ENTITY_NODE=W;PROCESSING_INSTRUCTION_NODE=H;COMMENT_NODE=c;DOCUMENT_NODE=a;DOCUMENT_TYPE_NODE=K;DOCUMENT_FRAGMENT_NODE=V;NOTATION_NODE=X;DOCUMENT_POSITION_DISCONNECTED=x;DOCUMENT_POSITION_PRECEDING=m;DOCUMENT_POSITION_FOLLOWING=te;DOCUMENT_POSITION_CONTAINS=M;DOCUMENT_POSITION_CONTAINED_BY=Re;DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=w;nodeValue=null;attributes=new Map;childNodes=[];parentNode=null;ownerDocument=null;get children(){let e=this.childNodes,r=[];for(let s=0;s<e.length;s++)if(e[s].nodeType===t)r.push(e[s]);return r}get firstElementChild(){return this.childNodes.find((e)=>e.nodeType===t)??null}get lastElementChild(){for(let e=this.childNodes.length-1;e>=0;e--)if(this.childNodes[e].nodeType===t)return this.childNodes[e];return null}get childElementCount(){let e=0;for(let r of this.childNodes)if(r.nodeType===t)e++;return e}get firstChild(){return this.childNodes[0]??null}get lastChild(){return this.childNodes.length>0?this.childNodes[this.childNodes.length-1]:null}get previousSibling(){if(!this.parentNode)return null;let e=this.parentNode.childNodes;for(let r=0;r<e.length;r++)if(e[r]===this)return r>0?e[r-1]:null;return null}get nextSibling(){if(!this.parentNode)return null;let e=this.parentNode.childNodes;for(let r=0;r<e.length;r++)if(e[r]===this)return r<e.length-1?e[r+1]:null;return null}get parentElement(){return Wi(this.parentNode)?this.parentNode:null}get isConnected(){let e=this;while(e){if(e.nodeType===a)return!0;e=e.parentNode}return!1}hasChildNodes(){return this.childNodes.length>0}get baseURI(){return this.ownerDocument?.baseURI||""}append(...e){let r=this;if(typeof r.appendChild!=="function")throw Error("This node type does not support append()");let s=b(this,e);if(s.length===0)return;if(s.length===1){r.appendChild(s[0]);return}let u=O(this);for(let N of s)u.appendChild(N);r.appendChild(u)}prepend(...e){let r=this;if(typeof r.insertBefore!=="function")throw Error("This node type does not support prepend()");let s=b(this,e);if(s.length===0)return;if(s.length===1){r.insertBefore(s[0],this.firstChild??null);return}let u=O(this);for(let N of s)u.appendChild(N);r.insertBefore(u,this.firstChild??null)}before(...e){if(!this.parentNode)return;let r=this.parentNode,s=b(this.parentNode,e);if(s.length===0)return;if(s.length===1){r.insertBefore(s[0],this);return}let u=O(this.parentNode);for(let N of s)u.appendChild(N);r.insertBefore(u,this)}after(...e){if(!this.parentNode)return;let r=this.parentNode,s=this.nextSibling,u=b(this.parentNode,e);if(u.length===0)return;if(u.length===1){r.insertBefore(u[0],s??null);return}let N=O(this.parentNode);for(let p of u)N.appendChild(p);r.insertBefore(N,s??null)}replaceWith(...e){if(!this.parentNode)return;let r=this.parentNode,s=b(this.parentNode,e);if(s.length===0){r.removeChild(this);return}if(s.length===1){r.replaceChild(s[0],this);return}let u=O(this.parentNode);for(let N of s)u.appendChild(N);r.replaceChild(u,this)}remove(){if(this.parentNode)this.parentNode.removeChild(this)}replaceChildren(...e){let r=this;if(typeof r.removeChild!=="function"||typeof r.appendChild!=="function")throw Error("This node type does not support replaceChildren()");while(this.childNodes.length>0)r.removeChild(this.childNodes[this.childNodes.length-1]);for(let s of e)if(typeof s==="string")r.appendChild(j(this,s));else r.appendChild(s)}isSameNode(e){return this===e}isEqualNode(e){return J(this,e)}getRootNode(e={}){let r=this,s=this;while(r.parentNode){let u=r.parentNode;if(s=u,u.nodeType===V&&u.host&&e.composed!==!0)return u;r=u}return s}contains(e){if(!e)return!1;let r=e;while(r){if(r===this)return!0;r=r.parentNode}return!1}normalize(){let e=0;while(e<this.childNodes.length){let r=this.childNodes[e];if(r.nodeType===i){let s=r.nodeValue||"",u=e+1;while(u<this.childNodes.length&&this.childNodes[u].nodeType===i)s+=this.childNodes[u].nodeValue||"",this.childNodes.splice(u,1);if(s===""){this.childNodes.splice(e,1),r.parentNode=null;continue}r.nodeValue=s}else if(typeof r.normalize==="function")r.normalize();e++}}compareDocumentPosition(e){if(e===this)return 0;let r=this._virtualRootNode(this),s=this._virtualRootNode(e);if(r!==s)return x|w;if(this!==e&&this.contains(e))return M|m;if(e!==this&&this._virtualNodeContains(e,this))return Re|te;let u=this._virtualDocumentOrder(r);return u.indexOf(this)<u.indexOf(e)?te:m}_getEventParent(){if(this.parentNode)return this.parentNode;if(this.nodeType===a)return this.defaultView??null;return null}_virtualRootNode(e){let r=e;while(r.parentNode)r=r.parentNode;return r}_virtualNodeContains(e,r){return e!==r&&typeof e.contains==="function"?e.contains(r):!1}_virtualDocumentOrder(e){let r=[],s=(u)=>{r.push(u);for(let N of u.childNodes)s(N)};return s(e),r}}function pe(e){let r=e?.constructor;if(!r||!Array.isArray(r.observedAttributes))return[];return r.observedAttributes.map((s)=>`${s}`.toLowerCase())}function Q(e){return e._getInternalShadowRoot?.()??null}function Z(e){return e.tagName==="TEMPLATE"?e.content??null:null}function D(e,r){if(e.nodeType===t)r(e);let s=Q(e);if(s)D(s,r);if(Z(e))return;for(let u of e.childNodes)D(u,r)}function v(e,r){if(e.nodeType===t)r(e);let s=Q(e);if(s)v(s,r);let u=Z(e);if(u){v(u,r);return}for(let N of e.childNodes)v(N,r)}function Ne(e){D(e,(r)=>{if(typeof r.connectedCallback==="function"&&r.isConnected)r.connectedCallback()})}function I(e){D(e,(r)=>{if(typeof r.disconnectedCallback==="function")r.disconnectedCallback()})}function ee(e,r,s){if(!r||!s||r===s)return;v(e,(u)=>{if(typeof u.adoptedCallback==="function")u.adoptedCallback()})}function Ce(e,r,s,u){if(typeof e?.attributeChangedCallback!=="function")return;if(s===u)return;if(!pe(e).includes(r.toLowerCase()))return;e.attributeChangedCallback(r,s,u)}class n{static NONE=0;static CAPTURING_PHASE=1;static AT_TARGET=2;static BUBBLING_PHASE=3;NONE=0;CAPTURING_PHASE=1;AT_TARGET=2;BUBBLING_PHASE=3;type;target=null;currentTarget=null;bubbles;cancelable;composed;defaultPrevented=!1;propagationStopped=!1;immediatePropagationStopped=!1;eventPhase=0;timeStamp;isTrusted=!1;_path=[];_propagationStopped=!1;_immediatePropagationStopped=!1;constructor(e,r={}){this.type=e,this.bubbles=r.bubbles??!1,this.cancelable=r.cancelable??!1,this.composed=r.composed??!1,this.timeStamp=Date.now()}initEvent(e,r=!1,s=!1){this.type=e,this.bubbles=r,this.cancelable=s,this.defaultPrevented=!1,this.propagationStopped=!1,this.immediatePropagationStopped=!1,this._propagationStopped=!1,this._immediatePropagationStopped=!1}preventDefault(){if(this.cancelable)this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0,this._propagationStopped=!0}stopImmediatePropagation(){this.immediatePropagationStopped=!0,this.propagationStopped=!0,this._immediatePropagationStopped=!0,this._propagationStopped=!0}composedPath(){return[...this._path]}get cancelBubble(){return this.propagationStopped}set cancelBubble(e){if(e)this.stopPropagation()}get returnValue(){return!this.defaultPrevented}set returnValue(e){if(!e)this.preventDefault()}get srcElement(){return this.target}}var ne=new WeakMap,P=new WeakSet;function oe(e){return e?.nodeType===11&&e?.nodeName==="#shadow-root"&&Boolean(e.host)}function re(e){let r=e;while(r){if(oe(r))return r;r=r.parentNode}return null}function ie(e){return e?._getInternalShadowRoot?.()?.querySelectorAll?.("slot")??[]}function he(e,r){return e.length===r.length&&e.every((s,u)=>s===r[u])}function fe(e){if(P.has(e))return;P.add(e),queueMicrotask(()=>{P.delete(e);let r=ne.get(e)??[],s=gi(e);if(ne.set(e,s),!he(r,s))e.dispatchEvent(new n("slotchange"))})}function gi(e,r={}){let s=re(e);if(!s)return[];let u=e.getAttribute?.("name")??"";if(ie(s.host).find((h)=>(h.getAttribute?.("name")??"")===u)!==e)return[];let p=(s.host?.childNodes??[]).filter((h)=>{if(h.nodeType!==t&&h.nodeType!==i)return!1;return(h.nodeType===t?h.getAttribute?.("slot")??"":"")===u});if(!r.flatten)return p;return(p.length>0?p:e.childNodes??[]).flatMap((h)=>{if(h?.tagName==="SLOT"&&typeof h.assignedNodes==="function")return h.assignedNodes({flatten:!0});return[h]})}function Qi(e,r={}){return gi(e,r).filter((s)=>s.nodeType===t)}function F(e){let r=e?._getInternalShadowRoot?.()?e:null,s=oe(e)?e:re(e),u=e?.parentNode?._getInternalShadowRoot?.()?e.parentNode:null,N=r??s?.host??u;if(!N)return;for(let p of ie(N))fe(p)}function S(e,r,s,u,N){if(r.length===0&&s.length===0)return;l._queueMutationRecord({type:"childList",target:e,addedNodes:r,removedNodes:s,previousSibling:u,nextSibling:N,attributeName:null,attributeNamespace:null,oldValue:null}),F(e)}function ae(e){return e.nodeType===a?e:e.ownerDocument}function Ee(e){return e._getInternalShadowRoot?.()??null}function Te(e){return e.tagName==="TEMPLATE"?e.content??null:null}function R(e){if(!e._lastTraversalParent&&!e._lastTraversalNextSibling)return;e._lastTraversalParent=null,e._lastTraversalNextSibling=null;for(let r of e.childNodes)R(r)}function E(e,r){if(e.ownerDocument===r&&e.nodeType!==a)return;let s=e.ownerDocument??null;if(e.nodeType!==a)e.ownerDocument=r;if(e.nodeType===t){let u=e.attributes?.get("id");if(u!==void 0){if(s?._idIndex)s._idIndex.delete(u);if(r?._idIndex)r._idIndex.set(u,e)}let N=Ee(e);if(N)E(N,r);let p=Te(e);if(p)p.ownerDocument=r}ee(e,s,r);for(let u of e.childNodes)E(u,r)}function Ve(e,r){let s=r;while(s){if(s===e)return!0;s=s.parentNode}return!1}function Me(e){let r=e.ownerDocument;if(!r||!r._idIndex||r._idIndex.size===0)return;if(e.nodeType===t){let s=e.attributes?.get("id");if(s!==void 0)r._idIndex.delete(s);for(let u of e.childNodes)if(u.nodeType===t)Me(u)}}function le(e){let r=e.isConnected===!0;if(!e.parentNode)return;Me(e);let s=e.parentNode,u=s.childNodes,N=u.indexOf(e),p=N>=0&&N<u.length-1?u[N+1]:null;if(N!==-1)u.splice(N,1);if(e._lastTraversalParent=s,e._lastTraversalNextSibling=p,e.parentNode=null,F(s),r)I(e)}function A(e,r){if(r===e||Ve(r,e))throw Error("The new child element contains the parent");if(r.nodeType===V){let s=[...r.childNodes];r.childNodes=[];let u=ae(e);for(let N of s){if(N.parentNode)le(N),R(N);N.parentNode=e,E(N,u)}return s}if(r.parentNode)le(r),R(r);return r.parentNode=e,E(r,ae(e)),[r]}function k(e,r){let s=A(e,r),u=e.childNodes.length>0?e.childNodes[e.childNodes.length-1]:null;if(s.length===1)e.childNodes.push(s[0]);else e.childNodes.push(...s);for(let N of s)if(N.isConnected===!0)Ne(N);return S(e,s,[],u,null),r}function et(e,r,s){if(s===null)return k(e,r);let u=e.childNodes.indexOf(s);if(u===-1)throw Error("Reference node not found");let N=A(e,r),p=u>0?e.childNodes[u-1]:null;e.childNodes.splice(u,0,...N);for(let T of N)if(T.isConnected===!0)Ne(T);return S(e,N,[],p,s),r}function Oe(e,r){let s=e.childNodes.indexOf(r);if(s===-1)throw Error("Child node not found");Me(r);let u=r.isConnected===!0,N=s>0?e.childNodes[s-1]:null,p=s<e.childNodes.length-1?e.childNodes[s+1]:null;if(e.childNodes.splice(s,1),r._lastTraversalParent=e,r._lastTraversalNextSibling=p,r.parentNode=null,u)I(r);return S(e,[],[r],N,p),r}function tt(e,r,s){let u=e.childNodes.indexOf(s);if(u===-1)throw Error("Old node not found");Me(s);let N=A(e,r),p=s.isConnected===!0,T=u>0?e.childNodes[u-1]:null,h=u<e.childNodes.length-1?e.childNodes[u+1]:null;if(e.childNodes.splice(u,1,...N),s._lastTraversalParent=e,s._lastTraversalNextSibling=h,s.parentNode=null,p)I(s);for(let y of N)if(y.isConnected===!0)Ne(y);return S(e,N,[s],T,h),s}function G(e){if(e.nodeType===i)return e.nodeValue||"";if(e.nodeType===c)return"";let r="";for(let s of e.childNodes)r+=G(s);return r}function ge(e,r,s,u){if(e===r)return!0;if(!s)return!1;let N=e.parentNode;while(N){if(N===r)return!0;N=N.parentNode}for(let p of u)if(e===p||Ve(p,e))return!0;return!1}function ye(e,r){if(e.type==="childList")return r.childList===!0;if(e.type==="attributes"){if(r.attributes!==!0)return!1;if(r.attributeFilter&&e.attributeName)return r.attributeFilter.map((s)=>s.toLowerCase()).includes(e.attributeName.toLowerCase());return!0}if(e.type==="characterData")return r.characterData===!0;return!1}function be(e){let r={...e};if(r.attributeOldValue===!0||r.attributeFilter){if(r.attributes===!1)throw TypeError("Failed to execute observe: attributeOldValue/attributeFilter requires attributes to be true");r.attributes=!0}if(r.characterDataOldValue===!0){if(r.characterData===!1)throw TypeError("Failed to execute observe: characterDataOldValue requires characterData to be true");r.characterData=!0}if(r.childList!==!0&&r.attributes!==!0&&r.characterData!==!0)throw TypeError("Failed to execute observe: at least one of childList, attributes, or characterData must be true");return r}class l{static _observers=new Set;_callback;_records=[];_observations=new Map;_scheduled=!1;_transientRoots=new Set;constructor(e){this._callback=e}observe(e,r={}){let s=be(r),u=this._observations.get(e);if(u){let N={...u,...s};if(u.attributeFilter&&s.attributeFilter){let p=new Set([...u.attributeFilter,...s.attributeFilter]);N.attributeFilter=Array.from(p)}this._observations.set(e,N)}else this._observations.set(e,s);l._observers.add(this)}disconnect(){this._observations.clear(),l._observers.delete(this),this._records=[],this._scheduled=!1,this._transientRoots.clear()}takeRecords(){let e=this._records;return this._records=[],e}_addRecord(e){if(this._records.push(e),this._scheduled)return;this._scheduled=!0,queueMicrotask(()=>{if(this._scheduled=!1,this._records.length>0){let r=this.takeRecords();this._callback(r,this)}this._transientRoots.clear()})}static _queueMutationRecord(e){if(l._observers.size===0)return;for(let r of l._observers)for(let[s,u]of r._observations){if(!ge(e.target,s,u.subtree===!0,r._transientRoots))continue;if(e.type==="childList"&&e.removedNodes.length>0&&u.subtree===!0)for(let p of e.removedNodes)r._transientRoots.add(p);if(!ye(e,u))continue;r._addRecord({...e,oldValue:e.type==="attributes"?u.attributeOldValue?e.oldValue:null:e.type==="characterData"?u.characterDataOldValue?e.oldValue:null:null})}}}class o extends d{nodeType=i;nodeKind="text";nodeName="#text";nodeValue;constructor(e){super();this.nodeValue=e}get textContent(){return this.nodeValue||""}set textContent(e){let r=this.nodeValue||"";this.nodeValue=e,l._queueMutationRecord({type:"characterData",target:this,addedNodes:[],removedNodes:[],previousSibling:null,nextSibling:null,attributeName:null,attributeNamespace:null,oldValue:r})}get data(){return this.nodeValue||""}set data(e){this.textContent=e}get length(){return(this.nodeValue||"").length}substringData(e,r){let s=this.nodeValue||"";if(e<0||e>s.length)throw new DOMException("The index is not in the allowed range.","IndexSizeError");return s.slice(e,e+r)}appendData(e){this.textContent=(this.nodeValue||"")+e}insertData(e,r){let s=this.nodeValue||"";if(e<0||e>s.length)throw new DOMException("The index is not in the allowed range.","IndexSizeError");this.textContent=s.slice(0,e)+r+s.slice(e)}deleteData(e,r){let s=this.nodeValue||"";if(e<0||e>s.length)throw new DOMException("The index is not in the allowed range.","IndexSizeError");this.textContent=s.slice(0,e)+s.slice(e+r)}replaceData(e,r,s){let u=this.nodeValue||"";if(e<0||e>u.length)throw new DOMException("The index is not in the allowed range.","IndexSizeError");this.textContent=u.slice(0,e)+s+u.slice(e+r)}splitText(e){let r=this.nodeValue||"";if(e<0||e>r.length)throw new DOMException("The index is not in the allowed range.","IndexSizeError");let s=r.slice(e);this.textContent=r.slice(0,e);let u=new o(s);if(u.ownerDocument=this.ownerDocument,this.parentNode){let N=this.parentNode,p=N.childNodes,T=p.indexOf(this);if(T!==-1&&T<p.length-1)N.insertBefore(u,p[T+1]);else N.appendChild(u)}return u}get wholeText(){let e="",r=this;while(r?.previousSibling?.nodeType===i)r=r.previousSibling;while(r&&r.nodeType===i)e+=r.nodeValue||"",r=r.nextSibling;return e}cloneNode(){return new o(this.nodeValue)}}
3
3
  export{f,n,Ne,Ce,gi,Qi,F,E,Ve,Me,k,et,Oe,tt,G,l,o,t,i,c,a,V,te,Re,Wi,d};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{e}from"./chunk-qh4s27j9.js";import"./chunk-2m1ksnrw.js";import"./chunk-w2g7xbfh.js";import"./chunk-d5edpdkj.js";export{e as VirtualElement};