@ctrl/dom 0.3.0 → 0.3.1

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/dist/dom/index.js CHANGED
@@ -1 +1 @@
1
- export{Tr as AbstractRange,ps as AnimationEvent,Ka as Attr,Qt as Audio,ms as BeforeUnloadEvent,to as CDATASection,t as CSS,pi as CSSConditionRule,mi as CSSContainerRule,hi as CSSFontFaceRule,gi as CSSGroupingRule,_i as CSSImportRule,vi as CSSKeyframeRule,yi as CSSKeyframesRule,bi as CSSLayerBlockRule,xi as CSSLayerStatementRule,Si as CSSMediaRule,Ci as CSSNamespaceRule,wi as CSSNestedDeclarations,Ti as CSSPageRule,Ei as CSSPropertyRule,Di as CSSRule,Oi as CSSRuleList,ki as CSSScopeRule,Ai as CSSStartingStyleRule,Zi as CSSStyleDeclaration,ji as CSSStyleRule,Mi as CSSStyleSheet,Ni as CSSSupportsRule,no as CharacterData,ur as Clipboard,ks as ClipboardEvent,dr as ClipboardItem,hs as CloseEvent,Ar as CommandEvent,ro as Comment,As as CompositionEvent,Sa as CustomElementRegistry,gs as CustomEvent,Xn as CustomStateSet,_r as DOMImplementation,Na as DOMMatrix,Na as WebKitCSSMatrix,Pa as DOMMatrixReadOnly,hr as DOMParser,Fa as DOMPoint,Ia as DOMPointReadOnly,O as DOMQuad,La as DOMRect,Ra as DOMRectList,za as DOMRectReadOnly,qa as DOMStringMap,Ja as DOMTokenList,T as DataTransfer,E as DataTransferItem,D as DataTransferItemList,vr as Document,vr as HTMLDocument,eo as DocumentFragment,$a as DocumentType,js as DragEvent,Oa as Element,Zn as ElementInternals,_s as ErrorEvent,Xs as Event,ts as EventTarget,tt as FileList,j as FileReader,Ms as FocusEvent,I as FormData,vs as FormDataEvent,in as HTMLAnchorElement,an as HTMLAreaElement,$t as HTMLAudioElement,on as HTMLBRElement,sn as HTMLBaseElement,cn as HTMLBodyElement,K as HTMLButtonElement,ln as HTMLCanvasElement,oo as HTMLCollection,un as HTMLDListElement,dn as HTMLDataElement,z as HTMLDataListElement,Xt as HTMLDetailsElement,Zt as HTMLDialogElement,fn as HTMLDirectoryElement,pn as HTMLDivElement,Qn as HTMLElement,mn as HTMLEmbedElement,U as HTMLFieldSetElement,hn as HTMLFontElement,ra as HTMLFormControlsCollection,R as HTMLFormElement,gn as HTMLFrameElement,_n as HTMLFrameSetElement,vn as HTMLHRElement,yn as HTMLHeadElement,bn as HTMLHeadingElement,xn as HTMLHtmlElement,Sn as HTMLIFrameElement,Cn as HTMLImageElement,$ as HTMLInputElement,wn as HTMLLIElement,G as HTMLLabelElement,W as HTMLLegendElement,Wt as HTMLLinkElement,Tn as HTMLMapElement,En as HTMLMarqueeElement,en as HTMLMediaElement,Dn as HTMLMenuElement,On as HTMLMetaElement,B as HTMLMeterElement,kn as HTMLModElement,An as HTMLOListElement,jn as HTMLObjectElement,q as HTMLOptGroupElement,J as HTMLOptionElement,ia as HTMLOptionsCollection,V as HTMLOutputElement,Mn as HTMLParagraphElement,Nn as HTMLParamElement,Pn as HTMLPictureElement,Fn as HTMLPreElement,H as HTMLProgressElement,In as HTMLQuoteElement,Gt as HTMLScriptElement,Z as HTMLSelectElement,Jt as HTMLSlotElement,Ln as HTMLSourceElement,Rn as HTMLSpanElement,Kt as HTMLStyleElement,zn as HTMLTableCaptionElement,Bn as HTMLTableCellElement,Vn as HTMLTableColElement,Hn as HTMLTableElement,Un as HTMLTableRowElement,Wn as HTMLTableSectionElement,Yt as HTMLTemplateElement,Q as HTMLTextAreaElement,Gn as HTMLTimeElement,qt as HTMLTitleElement,Kn as HTMLTrackElement,qn as HTMLUListElement,Jn as HTMLUnknownElement,tn as HTMLVideoElement,ys as HashChangeEvent,pr as History,Yn as Image,Ns as InputEvent,k as IntersectionObserver,Ps as KeyboardEvent,mr as Location,rt as MathMLElement,nn as MediaError,Pi as MediaList,ci as MediaQueryList,di as MediaQueryListEvent,bs as MessageEvent,Fs as MouseEvent,w as MutationObserver,Fo as MutationRecord,Wa as NamedNodeMap,fr as Navigator,po as Node,Sr as NodeFilter,Cr as NodeIterator,Io as NodeList,Y as Option,xs as PageTransitionEvent,Is as PointerEvent,Ss as PopStateEvent,io as ProcessingInstruction,Cs as ProgressEvent,ws as PromiseRejectionEvent,aa as RadioNodeList,Er as Range,A as ResizeObserver,it as SVGAElement,at as SVGAnimatedString,ot as SVGCircleElement,st as SVGClipPathElement,ct as SVGDefsElement,lt as SVGDescElement,ut as SVGElement,dt as SVGEllipseElement,ft as SVGFilterElement,pt as SVGForeignObjectElement,mt as SVGGElement,ht as SVGGeometryElement,gt as SVGGradientElement,_t as SVGGraphicsElement,vt as SVGImageElement,yt as SVGLineElement,bt as SVGLinearGradientElement,xt as SVGMarkerElement,St as SVGMaskElement,Ct as SVGMetadataElement,wt as SVGPathElement,Tt as SVGPatternElement,Et as SVGPolygonElement,Dt as SVGPolylineElement,Ot as SVGRadialGradientElement,kt as SVGRectElement,At as SVGSVGElement,jt as SVGScriptElement,Mt as SVGStopElement,Nt as SVGStyleElement,Pt as SVGSwitchElement,Ft as SVGSymbolElement,It as SVGTSpanElement,Lt as SVGTextContentElement,Rt as SVGTextElement,zt as SVGTextPathElement,Bt as SVGTextPositioningElement,Vt as SVGTitleElement,Ht as SVGUseElement,Ut as SVGViewElement,cr as Screen,xr as Selection,Ya as ShadowRoot,Dr as StaticRange,sr as Storage,Ts as StorageEvent,Fi as StyleSheet,Ii as StyleSheetList,Es as SubmitEvent,ao as Text,Ls as TextEvent,rn as TimeRanges,Ds as ToggleEvent,Rs as Touch,zs as TouchEvent,Bs as TouchList,Os as TransitionEvent,wr as TreeWalker,Vs as UIEvent,na as ValidityState,lr as VisualViewport,Hs as WheelEvent,nr as Window,yr as XMLDocument,M as XMLHttpRequest,N as XMLHttpRequestEventTarget,P as XMLHttpRequestUpload,gr as XMLSerializer,rr as createWindow,ls as currentDocument,us as currentWindow,ds as currentWindowOrNull,zr as getComputedStyle,F as installGlobals,fs as setCurrentWindow}from"./_chunks/src-u_GjEFAe.js";
1
+ export{Mr as AbstractRange,bs as AnimationEvent,$a as Attr,an as Audio,xs as BeforeUnloadEvent,co as CDATASection,t as CSS,bi as CSSConditionRule,xi as CSSContainerRule,Si as CSSFontFaceRule,Ci as CSSGroupingRule,wi as CSSImportRule,Ti as CSSKeyframeRule,Ei as CSSKeyframesRule,Di as CSSLayerBlockRule,Oi as CSSLayerStatementRule,ki as CSSMediaRule,Ai as CSSNamespaceRule,ji as CSSNestedDeclarations,Mi as CSSPageRule,Ni as CSSPropertyRule,Pi as CSSRule,Fi as CSSRuleList,Ii as CSSScopeRule,Li as CSSStartingStyleRule,ia as CSSStyleDeclaration,Ri as CSSStyleRule,zi as CSSStyleSheet,Bi as CSSSupportsRule,lo as CharacterData,_r as Clipboard,Is as ClipboardEvent,vr as ClipboardItem,Ss as CloseEvent,Lr as CommandEvent,uo as Comment,Ls as CompositionEvent,ka as CustomElementRegistry,Cs as CustomEvent,rr as CustomStateSet,wr as DOMImplementation,Ba as DOMMatrix,Ba as WebKitCSSMatrix,Va as DOMMatrixReadOnly,Sr as DOMParser,Ha as DOMPoint,Ua as DOMPointReadOnly,O as DOMQuad,Wa as DOMRect,Wa as SVGRect,Ga as DOMRectList,Ka as DOMRectReadOnly,eo as DOMStringMap,to as DOMTokenList,T as DataTransfer,E as DataTransferItem,D as DataTransferItemList,Tr as Document,Tr as HTMLDocument,so as DocumentFragment,oo as DocumentType,Rs as DragEvent,Fa as Element,ir as ElementInternals,ws as ErrorEvent,rc as Event,cs as EventTarget,it as FileList,P as FileReader,zs as FocusEvent,z as FormData,Ts as FormDataEvent,dn as HTMLAnchorElement,fn as HTMLAreaElement,on as HTMLAudioElement,pn as HTMLBRElement,mn as HTMLBaseElement,hn as HTMLBodyElement,Y as HTMLButtonElement,gn as HTMLCanvasElement,po as HTMLCollection,_n as HTMLDListElement,vn as HTMLDataElement,H as HTMLDataListElement,rn as HTMLDetailsElement,in as HTMLDialogElement,yn as HTMLDirectoryElement,bn as HTMLDivElement,ar as HTMLElement,xn as HTMLEmbedElement,K as HTMLFieldSetElement,Sn as HTMLFontElement,ua as HTMLFormControlsCollection,V as HTMLFormElement,Cn as HTMLFrameElement,wn as HTMLFrameSetElement,Tn as HTMLHRElement,En as HTMLHeadElement,Dn as HTMLHeadingElement,On as HTMLHtmlElement,kn as HTMLIFrameElement,An as HTMLImageElement,nt as HTMLInputElement,jn as HTMLLIElement,J as HTMLLabelElement,q as HTMLLegendElement,Zt as HTMLLinkElement,Mn as HTMLMapElement,Nn as HTMLMarqueeElement,sn as HTMLMediaElement,Pn as HTMLMenuElement,Fn as HTMLMetaElement,U as HTMLMeterElement,In as HTMLModElement,Ln as HTMLOListElement,Rn as HTMLObjectElement,X as HTMLOptGroupElement,Z as HTMLOptionElement,da as HTMLOptionsCollection,W as HTMLOutputElement,zn as HTMLParagraphElement,Bn as HTMLParamElement,Vn as HTMLPictureElement,Hn as HTMLPreElement,G as HTMLProgressElement,Un as HTMLQuoteElement,Qt as HTMLScriptElement,et as HTMLSelectElement,tn as HTMLSlotElement,Wn as HTMLSourceElement,Gn as HTMLSpanElement,$t as HTMLStyleElement,Kn as HTMLTableCaptionElement,qn as HTMLTableCellElement,Jn as HTMLTableColElement,Yn as HTMLTableElement,Xn as HTMLTableRowElement,Zn as HTMLTableSectionElement,nn as HTMLTemplateElement,tt as HTMLTextAreaElement,Qn as HTMLTimeElement,en as HTMLTitleElement,$n as HTMLTrackElement,er as HTMLUListElement,tr as HTMLUnknownElement,cn as HTMLVideoElement,Es as HashChangeEvent,br as History,nr as Image,Bs as InputEvent,j as IntersectionObserver,M as IntersectionObserverEntry,Vs as KeyboardEvent,xr as Location,ot as MathMLElement,ln as MediaError,Vi as MediaList,hi as MediaQueryList,vi as MediaQueryListEvent,Ds as MessageEvent,Hs as MouseEvent,w as MutationObserver,Ho as MutationRecord,Za as NamedNodeMap,yr as Navigator,bo as Node,kr as NodeFilter,Ar as NodeIterator,Uo as NodeList,Q as Option,Os as PageTransitionEvent,Us as PointerEvent,ks as PopStateEvent,do as ProcessingInstruction,As as ProgressEvent,js as PromiseRejectionEvent,fa as RadioNodeList,Nr as Range,N as ResizeObserver,k as ResizeObserverEntry,A as ResizeObserverSize,st as SVGAElement,qt as SVGAnimatedPreserveAspectRatio,Jt as SVGAnimatedRect,ct as SVGAnimatedString,lt as SVGCircleElement,ut as SVGClipPathElement,dt as SVGDefsElement,ft as SVGDescElement,pt as SVGElement,mt as SVGEllipseElement,ht as SVGFilterElement,gt as SVGForeignObjectElement,_t as SVGGElement,vt as SVGGeometryElement,yt as SVGGradientElement,bt as SVGGraphicsElement,xt as SVGImageElement,St as SVGLineElement,Ct as SVGLinearGradientElement,wt as SVGMarkerElement,Tt as SVGMaskElement,Et as SVGMetadataElement,Yt as SVGNumber,Dt as SVGPathElement,Ot as SVGPatternElement,kt as SVGPolygonElement,At as SVGPolylineElement,Xt as SVGPreserveAspectRatio,jt as SVGRadialGradientElement,Mt as SVGRectElement,Nt as SVGSVGElement,Pt as SVGScriptElement,Ft as SVGStopElement,It as SVGStyleElement,Lt as SVGSwitchElement,Rt as SVGSymbolElement,zt as SVGTSpanElement,Bt as SVGTextContentElement,Vt as SVGTextElement,Ht as SVGTextPathElement,Ut as SVGTextPositioningElement,Wt as SVGTitleElement,Gt as SVGUseElement,Kt as SVGViewElement,hr as Screen,Or as Selection,no as ShadowRoot,Pr as StaticRange,mr as Storage,Ms as StorageEvent,Hi as StyleSheet,Ui as StyleSheetList,Ns as SubmitEvent,fo as Text,Ws as TextEvent,un as TimeRanges,Ps as ToggleEvent,Gs as Touch,Ks as TouchEvent,qs as TouchList,Fs as TransitionEvent,jr as TreeWalker,Js as UIEvent,la as ValidityState,gr as VisualViewport,Ys as WheelEvent,lr as Window,Er as XMLDocument,F as XMLHttpRequest,I as XMLHttpRequestEventTarget,L as XMLHttpRequestUpload,Cr as XMLSerializer,ur as createWindow,gs as currentDocument,_s as currentWindow,vs as currentWindowOrNull,Kr as getComputedStyle,R as installGlobals,ys as setCurrentWindow}from"./_chunks/src-BTj3c0xg.js";
@@ -1 +1 @@
1
- import{$c as e,$d as t,$i as n,$l as r,$n as i,$o as a,$r as o,$s as s,$u as c,Aa as ee,Ac as te,Ad as ne,Af as re,Al as ie,Ao as ae,Au as oe,Ba as se,Bc as ce,Bd as le,Bf as ue,Bi as de,Bl as fe,Bo as pe,Br as me,Bu as he,C as ge,Ca as _e,Cc as ve,Cd as ye,Cf as be,Cl as xe,Co as Se,Cu as Ce,Da as we,Dc as Te,Dd as Ee,Df as De,Dl as Oe,Do as ke,Du as Ae,Ea as je,Ec as Me,Ed as Ne,Ef as Pe,El as Fe,Eo as Ie,Eu as Le,Fc as l,Fd as u,Ff as d,Fl as f,Fr as p,Fu as m,Ga as h,Gc as g,Gd as Re,Gi as ze,Gl as Be,Go as Ve,Gr as He,Gs as Ue,Gu as We,Ha as Ge,Hc as Ke,Hd as _,Hi as qe,Hl as Je,Ho as Ye,Hr as Xe,Hu as Ze,Ic as v,Id as Qe,If as $e,Il as y,Io as et,Ir as tt,Iu as nt,Jc as rt,Jd as it,Ji as at,Jl as ot,Jo as st,Jr as ct,Js as lt,Ju as ut,Kc as dt,Kd as ft,Ki as pt,Kl as mt,Ko as ht,Kr as gt,Ks as _t,Ku as vt,L as yt,Lc as bt,Ld as xt,Lf as St,Li as Ct,Ll as wt,Lo as Tt,Lr as Et,Lu as b,Ma as Dt,Mc as x,Md as Ot,Mf as kt,Ml as At,Mo as jt,Mr as Mt,Mu as Nt,Nc as Pt,Nd as Ft,Nf as It,Nl as S,No as Lt,Nr as Rt,Nu as zt,Oc as Bt,Od as Vt,Of as Ht,Ol as Ut,Oo as Wt,Or as Gt,Ou as Kt,Pc as qt,Pd as Jt,Pf as Yt,Pl as Xt,Po as Zt,Pr as Qt,Pu as $t,Qa as en,Qc as tn,Qd as nn,Qi as rn,Ql as an,Qo as on,Qr as sn,Qs as cn,Qu as ln,Rc as un,Rd as dn,Rf as fn,Ri as pn,Rl as C,Ro as mn,Rr as hn,Ru as gn,S as _n,Sc as vn,Sd as yn,Sf as bn,Sl as w,So as xn,Su as Sn,Ta as Cn,Tc as wn,Td as Tn,Tf as En,Tl as Dn,To as On,Tu as kn,Ua as An,Uc as jn,Ud as Mn,Ui as Nn,Ul as Pn,Uo as Fn,Ur as In,Us as T,Uu as Ln,Va as Rn,Vc as zn,Vd as E,Vi as Bn,Vl as Vn,Vo as Hn,Vr as Un,Vu as Wn,Wc as Gn,Wd as Kn,Wi as qn,Wl as Jn,Wo as Yn,Wr as Xn,Ws as Zn,Wu as Qn,X as $n,Xa as er,Xc as tr,Xd as nr,Xi as rr,Xl as ir,Xo as ar,Xr as or,Xu as sr,Yc as cr,Yd as lr,Yi as ur,Yl as dr,Yo as fr,Yr as pr,Ys as mr,Yu as hr,Za as gr,Zc as D,Zd as _r,Zl as vr,Zo as yr,Zr as br,Zs as xr,Zu as Sr,_ as Cr,_a as wr,_c as Tr,_d as Er,_f as Dr,_l as Or,_o as kr,_u as Ar,a as jr,ac as Mr,ad as Nr,af as Pr,ai as Fr,al as Ir,ar as Lr,as as Rr,au as zr,b as Br,ba as O,bc as Vr,bd as Hr,bf as Ur,bl as Wr,bo as Gr,br as Kr,bu as qr,c as Jr,ca as Yr,cc as Xr,cd as Zr,cf as Qr,cl as $r,co as ei,cs as ti,cu as ni,d as ri,da as ii,dc as ai,dd as oi,df as si,dl as ci,do as li,ds as k,du as ui,ea as A,ec as di,ed as fi,ef as pi,ei as mi,el as hi,er as gi,es as _i,et as vi,eu as yi,f as bi,fa as xi,fc as Si,fd as Ci,ff as wi,fi as Ti,fl as Ei,fo as Di,fu as Oi,g as ki,ga as j,gc as Ai,gd as ji,gf as Mi,gl as Ni,go as Pi,gu as Fi,h as Ii,ha as Li,hc as Ri,hd as zi,hf as Bi,hl as Vi,ho as Hi,hu as Ui,i as Wi,ic as Gi,id as Ki,if as qi,ii as Ji,il as Yi,ir as M,is as Xi,iu as Zi,ja as Qi,jc as $i,jd as ea,jf as ta,jl as na,jo as ra,jr as ia,ju as aa,ka as oa,kc as sa,kd as ca,kf as la,kl as ua,ko as da,kr as fa,ku as pa,l as ma,la as ha,lc as ga,ld as _a,lf as va,li as ya,ll as ba,lo as xa,lu as Sa,m as N,ma as Ca,mc as wa,md as Ta,mf as Ea,ml as Da,mo as Oa,mu as ka,n as Aa,nc as ja,nd as Ma,nf as Na,ni as Pa,nl as Fa,nr as P,ns as Ia,nt as F,nu as La,o as Ra,oa as za,oc as Ba,od as Va,of as Ha,oi as Ua,ol as I,oo as Wa,or as Ga,os as Ka,ou as qa,p as Ja,pa as Ya,pc as Xa,pd as Za,pf as Qa,pl as $a,pu as eo,qc as to,qd as no,qi as ro,ql as io,qo as ao,qr as oo,qs as so,qu as co,r as lo,rc as uo,rd as fo,rf as po,ri as mo,rl as ho,rs as go,ru as _o,s as vo,sa as yo,sc as bo,sd as xo,sf as So,si as Co,sl as wo,so as To,ss as Eo,su as Do,ta as Oo,tc as ko,td as Ao,tf as jo,ti as Mo,tl as No,tr as Po,tu as Fo,u as Io,ua as Lo,uc as Ro,ud as L,uf as zo,ui as Bo,ul as Vo,uo as Ho,uu as Uo,v as Wo,va as Go,vc as Ko,vd as qo,vf as Jo,vl as Yo,vo as Xo,vu as Zo,wa as Qo,wc as $o,wd as R,wf as es,wl as ts,wo as ns,wu as rs,x as is,xa as z,xc as as,xd as os,xf as ss,xl as cs,xo as ls,xu as us,y as ds,ya as B,yc as fs,yd as ps,yf as ms,yl as V,yo as hs,yu as gs,zc as _s,zd as vs,zf as ys,zi as bs,zl as xs,zo as Ss,zr as Cs,zu as ws}from"./_chunks/src-u_GjEFAe.js";import{constants as Ts,createContext as Es,runInContext as Ds}from"node:vm";import*as H from"node:diagnostics_channel";let U=null;function targets(){let e=/* @__PURE__ */ new Set,t=M();for(let n in t){let r=t[n];if(r===null||typeof r!=`object`&&typeof r!=`function`)continue;e.add(r);let i=r.prototype;typeof r==`function`&&typeof i==`object`&&i&&e.add(i)}return e.add(P.prototype),[...e]}function snapshot(e){let t=Reflect.ownKeys(e),n=Array(t.length);for(let r=0;r<t.length;r++){let i=t[r];n[r]=isArrayIndex(i)?null:Object.getOwnPropertyDescriptor(e,i)}return{target:e,keys:t,descriptors:n,keySet:null}}let W=null;function captureInterfaceBaseline(){if(U===null){U=[],W=/* @__PURE__ */ new WeakSet;for(let e of targets())U.push(snapshot(e)),W.add(e);ownObjectCreateMaps()}}let Os=null;function ownObjectCreateMaps(){if(U===null)return;let e=Os??=Ds(`(prototypes) => prototypes.map((p) => Object.create(p))`,Es(Ts.DONT_CONTEXTIFY)),t=[Object.prototype];for(let e=0;e<U.length;e++){let n=U[e].target;typeof n!=`function`&&t.push(n)}e(t)}function configurableDescriptor(e){return typeof e==`object`&&e&&e.configurable!==!0?{...e,configurable:!0}:e}function guardInterfaceDefinitions(e){let t=W;if(t===null)return;let n=e.Object,r=e.Reflect,i=n.defineProperty,a=n.defineProperties,o=r.defineProperty,s={defineProperty(e,n,r){return i(e,n,t.has(e)?configurableDescriptor(r):r)},defineProperties(e,n){if(!t.has(e)||typeof n!=`object`||!n)return a(e,n);let r={};for(let e of Reflect.ownKeys(n))Object.getOwnPropertyDescriptor(n,e)?.enumerable&&(r[e]=configurableDescriptor(n[e]));return a(e,r)},reflectDefineProperty(e,n,r){return o(e,n,t.has(e)?configurableDescriptor(r):r)}};Object.defineProperty(s.reflectDefineProperty,"name",{value:`defineProperty`}),Object.defineProperty(n,"defineProperty",{value:s.defineProperty,writable:!0,configurable:!0,enumerable:!1}),Object.defineProperty(n,"defineProperties",{value:s.defineProperties,writable:!0,configurable:!0,enumerable:!1}),Object.defineProperty(r,"defineProperty",{value:s.reflectDefineProperty,writable:!0,configurable:!0,enumerable:!1})}function isArrayIndex(e){if(typeof e!=`string`||e===``||e.length>10)return!1;let t=Number(e);return t>>>0===t&&t!==4294967295&&String(t)===e}function sameDescriptor(e,t){return e.value===t.value&&e.get===t.get&&e.set===t.set&&e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable}function restoreInterfaces(){if(U===null)return 0;let e=0;for(let t=0;t<U.length;t++){let n=U[t],r=n.target,i=Reflect.ownKeys(r);for(let t=0;t<i.length;t++){let a=i[t];a===n.keys[t]||(n.keySet??=new Set(n.keys)).has(a)||isArrayIndex(a)||Reflect.deleteProperty(r,a)&&e++}for(let t=0;t<n.keys.length;t++){let i=n.keys[t],a=n.descriptors[t];if(a===null)continue;let o=Object.getOwnPropertyDescriptor(r,i);if(!(o!==void 0&&sameDescriptor(o,a)))try{Object.defineProperty(r,i,a),e++}catch{}}}return ownObjectCreateMaps(),e}const G=`ctrl-dom:span`,K=typeof H.tracingChannel==`function`?H.tracingChannel(G):null;function spanChannel(){return K}function tracing(){return K!==null&&K.hasSubscribers}function traceSync(e,t,n){let r={op:e,description:t,data:{},async:!1},i=E();return K.traceSync(e=>{try{return n(e)}finally{recordSkipped(e,i)}},r,void 0,r)}function tracePromise(e,t,n){let r={op:e,description:t,data:{},async:!0},i=E();return K.tracePromise(e=>n(e).finally(()=>recordSkipped(e,i)),r,void 0,r)}function recordSkipped(e,t){let n=E()-t;n>0&&(e.data[`clock.skipped_ms`]=Math.round(n))}function describeCall(e,t){let n=`${e}(`;for(let e=0;e<t.length&&(t[e]!==void 0||e!==t.length-1);e++)if(n+=(e>0?`, `:``)+describeValue(t[e],0),n.length>160)return`${n.slice(0,159)}…)`;return`${n})`}function describeValue(e,t){if(typeof e==`string`)return JSON.stringify(e.length>40?`${e.slice(0,39)}…`:e);if(typeof e==`function`)return e.name?`${e.name}()`:`fn`;if(e instanceof RegExp||typeof e!=`object`||!e)return String(e);if(e[y]!==void 0)return describeNode(e);if(Array.isArray(e))return t>0?`[…]`:`[${e.slice(0,3).map(e=>describeValue(e,t+1)).join(`, `)}${e.length>3?`, …`:``}]`;if(t>0)return`{…}`;let n=Object.entries(e).slice(0,4);return n.length===0?`{}`:`{ ${n.map(([e,n])=>`${e}: ${describeValue(n,t+1)}`).join(`, `)} }`}let q=null;function setNodeDescriber(e){q=e}function describeNode(e){let t=e;if(t.nodeType===9)return`document`;if(t.nodeType!==1||typeof t.localName!=`string`)return t.nodeType===3?`#text`:`node`;if(q!==null)try{let t=q(e);if(t)return t}catch{}if(t.localName===`body`||t.localName===`html`)return`<${t.localName}>`;let n=t.getAttribute?.(`aria-label`)||t.textContent?.trim().replace(/\s+/g,` `)||t.getAttribute?.(`placeholder`)||t.getAttribute?.(`name`)||``;return n===``?`<${t.localName}>`:`<${t.localName} ${quote(n)}>`}function quote(e){return JSON.stringify(e.length>40?`${e.slice(0,39)}…`:e)}const J=`sentry-tests:failure`;let Y=null;function setFailureSnapshot(e){Y=e}function subscribeTestFailures(e){let t=H.channel(J),onFailure=t=>{let n=t,r=e();if(r==null||n.document!==r)return;let i=_();if(i!==null&&(n.contexts.clock={skipped_ms:Math.round(i.skippedMs),pending_timers:i.pendingTimers}),Y!==null&&r.body!=null)try{n.attachments.push({filename:`accessibility-snapshot.txt`,contentType:`text/plain`,data:Y(r.body)})}catch{}};return t.subscribe(onFailure),()=>t.unsubscribe(onFailure)}var FileState=class{hooks;url;constructor(){this.hooks=/* @__PURE__ */ new Map,this.url=null}};const X=/* @__PURE__ */ new WeakMap;function stateOf(e){let t=X.get(e);return t===void 0&&X.set(e,t=new FileState),t}function registerTestHooks(e,t){let n=k();if(n===null)return;let r=stateOf(n).hooks;r.set(e,{...r.get(e),...t})}function testHooks(){let e=k(),t=e===null?void 0:X.get(e);return t===void 0?[]:[...t.hooks.values()]}function resetWindowBetweenFiles(e){let t=stateOf(e);for(let e of t.hooks.values())try{e.fileEnd?.()}catch{}vs(),Lr(e);let n=e[L];if(n!==null){for(let e of n)e.clear(e.handle);n.clear()}e[V]=null,e[b]=null,e[w]=null,e[S]=null;let r=e.document;r.getSelection()?.removeAllRanges();let i=r.body;i!==null&&(i.replaceChildren(),removeAttributes(i)),r.documentElement!==null&&removeAttributes(r.documentElement),e.localStorage.clear(),e.sessionStorage.clear(),e[v]=null;let a=t.url??=e.location.href;e.location.href!==a&&e._setURL(new URL(a));let o=e.history;o[I]=[{url:a,state:null}],o[C]=0}function removeAttributes(e){let t=e.getAttributeNames();for(let n=0;n<t.length;n++)e.removeAttribute(t[n])}function implOf(e){return e[y]??e}function isTypingType(e){return B(e)||e===12||e>=7&&e<=11}function isEditable(e){let t=implOf(e);return t.tag===T.input?isTypingType(j(t))&&N(t):t.tag===T.textarea?N(t):tt(t)}function supportsSelection(e){let t=implOf(e);return t.tag===T.textarea||t.tag===T.input&&O(j(t))}function hasUIValue(e){let t=implOf(e);return t.tag===T.textarea||t.tag===T.input&&z(j(t))===0}function getUIValue(e){let t=implOf(e);if(t.tag===T.input){let e=t.node;return e[x].uiValue??e.value}return t.tag===T.textarea?t.node.value:``}function setUIValue(e,t){let n=implOf(e);if(n.tag===T.input){let e=n.node,r=j(n);if(z(r)!==0)return;let i=vi(r,t,n);n.doc[R]++,e[x].value=i,e[x].dirtyValue=!0,e[x].userEdited=!0,e[x].uiValue=i===t?null:t,e[x].badInput=i===``&&t!==``&&r!==5&&!B(r);let a=t.length;e[x].selStart>a&&(e[x].selStart=a),e[x].selEnd>a&&(e[x].selEnd=a)}else if(n.tag===T.textarea){let e=n.node;n.doc[R]++,e[x].value=t,e[x].dirtyValue=!0,e[x].userEdited=!0}}function clearUIValue(e){let t=implOf(e);if(t.tag===T.input){let e=t.node;e[x].uiValue=null,e[x].badInput=!1}}function getUISelection(e){let t=implOf(e).node,n=getUIValue(e).length;return{start:Math.min(t[x].selStart,n),end:Math.min(t[x].selEnd,n),direction:t[x].selDir}}function setUISelection(e,t,n=t,r=`none`){let i=implOf(e);if(i.tag!==T.input&&i.tag!==T.textarea)return;let a=i.node,o=getUIValue(e).length,s=Math.max(0,Math.min(t,n)),c=Math.max(t,n);c>o&&(c=o),s>c&&(s=c),a[x].selStart=s,a[x].selEnd=c,a[x].selDir=r}function setFilesFromUI(e,t){let n=implOf(e);n.tag===T.input&&j(n)===17&&(n.doc[R]++,n.node[x].files=F(t))}function setOptionSelectedFromUI(e,t){let n=implOf(e);if(n.tag!==T.option)return;let r=n.node;r._setSelectedness(t),r[D]=!0;let i=$n(n);if(i!==null){let e=i.node;t&&e._deselectOthers(n),e._updateSelectedContent()}}function setCheckedFromUI(e,t){let n=implOf(e);n.tag===T.input&&n.node._setCheckedness(t,!0)}const ks=P.prototype.getComputedStyle;let Z=null,Q=null,$=null;function getComputedStyleOverride(e){let t=e.doc.defaultView;if(t==null)return null;let n=t.getComputedStyle;if(n===ks||typeof n!=`function`||yt.has(n))return null;if(Q?.deref()===n&&Z?.deref()===t){let e=$.deref();if(e!==void 0)return e}let r=n.bind(t);return Z=new WeakRef(t),Q=new WeakRef(n),$=new WeakRef(r),r}export{s as $_proto__,di as $aboutBase,ko as $active,ja as $assocGen,uo as $attr,Gi as $attributes,Mr as $availableToElementInternals,Ba as $baseFor,bo as $baseOverride,Xr as $baseURL,ga as $baseVersion,Ro as $benign,ai as $block,Si as $blockParsed,Xa as $blockText,wa as $byCtor,Ri as $byName,Ai as $cache,Tr as $callback,Ko as $childNodes,fs as $childWindows,Vr as $children,as as $classList,vn as $clipboard,ve as $clonable,$o as $closed,wn as $coll,Me as $compiled,Te as $compiledFor,Bt as $condition,sa as $constructed,te as $constructingEntryList,$i as $contentType,x as $control,Pt as $controlsCache,qt as $controlsDoc,l as $controlsVersion,v as $cookieJar,bt as $cookies,un as $css,_s as $current,ce as $customElements,zn as $customValidity,Ke as $cx,jn as $data,Gn as $dataset,g as $declarative,dt as $defaultNamespace,to as $defaultValueOverride,rt as $delegatesFocus,cr as $derived,tr as $devicePixelRatio,D as $dirtiness,tn as $disabled,e as $disallowModification,hi as $doc,No as $dropEffect,Fa as $ec,ho as $effectAllowed,Yi as $el,Ir as $elements,I as $entries,wo as $eo,$r as $error,ba as $file,Vo as $files,ci as $fill,Ei as $filter,$a as $firingSubmissionEvents,Da as $focused,Vi as $forLabels,Ni as $form,Or as $formAttrSeen,Yo as $forms,V as $frameCallbacks,Wr as $frameElement,cs as $frameId,w as $frameTask,xe as $frameTime,ts as $generation,Dn as $globalObject,Fe as $hasTransients,Oe as $height,Ut as $history,ua as $home,ie as $host,na as $href,At as $id,S as $idleCallbacks,Xt as $idleId,f as $ids,y as $impl,wt as $implementation,C as $index,xs as $indexed,fe as $inflight,Vn as $info,Je as $innerHeight,Pn as $innerWidth,Jn as $isHTML,Be as $items,mt as $keyText,io as $kind,ot as $labels,dr as $layerName,ir as $list,vr as $listeners,an as $localStorage,r as $location,yi as $lockedForReset,Fo as $matches,La as $media,_o as $mediaQueryLists,Zi as $mode,zr as $name,qa as $names,Do as $namespaces,ni as $navigator,Sa as $nodes,Uo as $onchange,ui as $options,Oi as $owner,eo as $ownerNode,ka as $ownerRule,Ui as $parent,Fi as $parentRule,Ar as $parentWindow,Zo as $pastNames,gs as $pointerBeforeReference,qr as $prefix,us as $prelude,Sn as $presentationStyle,Ce as $pseudo,rs as $queries,kn as $radios,Le as $ranges,Ae as $readonly,Kt as $readyState,pa as $rebuildVersion,oe as $record,aa as $records,Nt as $reference,zt as $result,$t as $root,m as $rules,nt as $running,b as $runningFrame,gn as $sc,ws as $screen,he as $scrollRestoration,Wn as $scrollX,Ze as $scrollY,Ln as $selSet,Qn as $selectedOptions,We as $selectedness,vt as $selection,co as $selector,ut as $serializable,hr as $sessionStorage,sr as $settled,Sr as $shadowRoot,ln as $shed,c as $sheet,fi as $sheets,Ao as $slotAssignment,Ma as $so,fo as $states,Ki as $style,Nr as $styleVersion,Va as $supportsText,xo as $systemId,Zr as $target,_a as $targets,L as $tasks,oi as $timers,Ci as $title,Za as $treeVersion,Ta as $type,zi as $types,ji as $updating,Er as $updatingSelectedContent,qo as $uri,ps as $url,Hr as $userActivation,os as $userValidity,yn as $validity,ye as $value,R as $version,Tn as $visualViewport,Ne as $w,Ee as $whatToShow,Vt as $whenDefined,ca as $width,ne as $window,ea as $writeBuffer,Ot as $x,Ft as $xhr,Jt as $y,u as $z,_r as ATTRIBUTE_NODE,a as AttrRecord,nn as CDATA_SECTION_NODE,t as COMMENT_NODE,qn as COMPAT,ze as COMPAT_PROFILES,pt as DEFAULT_COMPAT,pi as DOCUMENT_FRAGMENT_NODE,jo as DOCUMENT_NODE,Na as DOCUMENT_POSITION_CONTAINED_BY,po as DOCUMENT_POSITION_CONTAINS,qi as DOCUMENT_POSITION_DISCONNECTED,Pr as DOCUMENT_POSITION_FOLLOWING,Ha as DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC,So as DOCUMENT_POSITION_PRECEDING,Qr as DOCUMENT_TYPE_NODE,rn as DeclBlock,va as ELEMENT_NODE,zo as ENTITY_NODE,si as ENTITY_REFERENCE_NODE,xr as EventState,J as FAILURE_CHANNEL,wi as F_ADOPT_HOOK,Qa as F_ARIA_ATTRS,Ea as F_ATTR_HOOK,Bi as F_CE_CUSTOM,Mi as F_CHILDREN_HOOK,Dr as F_CHILD_LIST,Jo as F_CONNECTED,ms as F_CONNECT_HOOK,Ur as F_CONTENTEDITABLE_ATTR,ss as F_CUSTOM,bn as F_DATA_ATTRS,be as F_FACE,es as F_FORM_ATTR,En as F_HAS_SHADOW,Pe as F_HAS_STYLE_ATTR,De as F_HTML,Ht as F_INERT_ATTR,la as F_MO_REGISTERED,re as F_SHADOW_ROOT,ta as F_TABINDEX_ATTR,_e as GLOBAL_EVENT_HANDLER_EVENTS,Wa as HTMLCollection,kt as HTML_NS,Li as INPUT_TYPE_NAMES,It as MATHML_NS,Yt as NOTATION_NODE,bs as NodeCache,_i as NodeImpl,et as NodeList,d as PROCESSING_INSTRUCTION_NODE,G as SPAN_CHANNEL,$e as SVG_NS,T,St as TEXT_NODE,Qe as VirtualClock,xt as VirtualTimeout,Qo as WINDOW_EVENT_HANDLER_EVENTS,fn as XLINK_NS,ys as XMLNS_NS,ue as XML_NS,mi as adoptedStyleSheetsOf,Se as ariaAttr,ns as asciiLowercase,kr as assignManually,Xo as assignedElements,hs as assignedNodes,Gr as assignedSlot,oa as attachShadowRoot,On as attr,i as attrAssociatedElement,gi as attrAssociatedElements,h as attrNode,dn as canSkipZeroDelayWait,captureInterfaceBaseline,Hn as childAt,Ie as classTokens,clearUIValue,le as clockNow,_ as clockStats,xa as closest,Gt as compareBoundaryPoints,ro as compatExposes,me as computedDisplay,Un as computedValue,Xe as computedVisibility,ia as constructEntryList,Aa as controlValue,Kr as createEvent,F as createFileList,Mo as createLinkSheet,In as currentStyleVersion,Mt as defaultButton,at as deferredCompatMembers,Ss as derivedCache,describeCall,describeNode,Ia as dispatch,Bn as dispatchTrusted,To as ensureCollectionIndexGetters,Tt as ensureIndexGetters,ya as evaluateMediaQueryList,A as faceState,ls as findFlattenedSlottables,xn as findSlot,qe as fireAnEvent,Nn as fireSyntheticPointerEvent,Ye as firstElementChild,Mn as foreignImmediatesPending,yo as formOwner,ke as getAttribute,Cs as getComputedStyle,getComputedStyleOverride,go as getCurrentEvent,ee as getElementsByClassName,Qi as getElementsByTagName,Dt as getElementsByTagNameNS,Cn as getEventHandler,getUISelection,getUIValue,guardInterfaceDefinitions,Wt as hasAttr,Xn as hasAuthorStyles,Po as hasExplicitAttrElements,_t as hasListeners,lo as hasReadonlyAttribute,hasUIValue,ur as hiddenGlobals,Rt as implicitSubmission,mn as indexGetterTable,Fn as indexOf,Wi as inputChecked,jr as inputIndeterminate,j as inputType,wr as inputTypeFromAttr,Oa as inspectNode,Kn as installClock,je as installEventHandlers,Yr as isActuallyDisabled,da as isAsciiWhitespace,Ra as isAutofilled,vo as isChecked,Re as isClockTimer,Jr as isDefault,ma as isDisabled,He as isDisplayNone,gt as isDisplayNoneInclusive,isEditable as isEditableControl,Io as isEnabled,Oo as isFACE,ri as isInRange,Yn as isInclusiveAncestor,bi as isIndeterminate,Ja as isInvalid,ha as isLabelable,Lo as isListed,N as isMutable,Go as isNumericType,Ii as isOptional,ki as isOutOfRange,Cr as isPlaceholderShown,Wo as isReadOnly,ds as isReadWrite,Br as isRequired,ii as isResettable,Qt as isSubmitButton,xi as isSubmittable,is as isTextControl,B as isTextualType,_n as isValid,se as isValidDoctypeName,Rn as isValidElementLocalName,Ge as isValidNamespacePrefix,oo as isVisibilityHidden,Ya as labeledControl,Ca as labelsFor,Ve as lastElementChild,za as listOfOptions,so as listenerCount,ft as loopTurn,Ct as matchMediaText,Ho as matches,Bo as mediaEnvironment,ht as nextElementInTree,ao as nextElementSibling,st as nextInTree,fr as nextSkippingChildren,de as nodeCache,Xi as nodeGetTheParent,fa as nodeLength,Zt as notifyMutationObservers,ge as optionSelected,n as parseDeclBlock,en as parseFragment,pn as parseMediaQueryList,pe as peekDerivedCache,ct as pointerEvents,pr as pointerEventsNone,ae as prefixFlag,ar as previousElementSibling,yr as previousInTree,or as pseudoContent,li as querySelector,Di as querySelectorAll,quote,mo as registerOwnerSheet,registerTestHooks,lt as removeAllEventListeners,ra as removeAttribute,Ji as removeOwnerSheet,Hi as replaceData,Eo as reportException,resetWindowBetweenFiles,rr as resolveCompat,restoreInterfaces,Rr as retarget,mr as reusableElement,er as serializeChildren,gr as serializeNode,Fr as setAdoptedStyleSheets,Ka as setAssignedSlotLookup,jt as setAttribute,setCheckedFromUI,br as setComputedColorMode,we as setEventHandler,setFailureSnapshot,setFilesFromUI,setNodeDescriber,p as setNotImplementedHandler,setOptionSelectedFromUI,cn as setTrusted,setUISelection,setUIValue,ti as setUncaughtExceptionHandler,no as skipIdleTime,it as skipZeroDelayWait,spanChannel,Lt as splitOnAsciiWhitespace,Pi as splitText,Et as styleElementRemoved,Pa as styleElementSheet,hn as styleElementUpdated,Ua as styleSheetsOf,sn as styledDisplay,subscribeTestFailures,supportsSelection,O as supportsSelectionType,Zn as tagId,Ue as tagName,testHooks,tracePromise,traceSync,tracing,Ga as trackGlobalTimers,on as treeRoot,o as uaDisplay,Co as unregisterOwnerSheet,An as validateAndExtract,z as valueMode,lr as virtualDate,nr as virtualPerformance,Ti as windowHooks,M as windowInterfaces,ei as withNamedProperties};
1
+ import{$ as e,$c as t,$d as n,$i as r,$l as i,$o as a,$r as o,$s as s,$u as c,Aa as ee,Ac as te,Ad as ne,Af as re,Al as ie,Ao as ae,Au as oe,B as se,Bc as ce,Bd as le,Bf as ue,Bl as l,Bo as de,Br as fe,Bu as pe,C as me,Ca as u,Cc as he,Cd as ge,Cf as _e,Cl as ve,Co as ye,Cu as be,Da as d,Dc as xe,Dd as Se,Df as Ce,Dl as we,Do as Te,Dr as Ee,Du as De,Ea as f,Ec as Oe,Ed as ke,Ef as Ae,El as p,Eo as je,Eu as Me,Fc as m,Fd as h,Ff as g,Fl as _,Fo as v,Fr as y,Fu as b,Gc as x,Gd as Ne,Gf as Pe,Gi as Fe,Gl as S,Go as Ie,Gr as Le,Gu as Re,Hc as ze,Hd as Be,Hf as Ve,Hl as He,Hr as Ue,Hu as We,Ia as Ge,Ic as Ke,Id as qe,If as Je,Il as Ye,Io as Xe,Ir as Ze,Iu as Qe,Ja as $e,Jc as et,Jd as C,Ji as tt,Jl as nt,Jo as rt,Jr as it,Ju as at,Kc as ot,Kd as st,Kf as ct,Ki as lt,Kl as ut,Ko as dt,Kr as ft,Ku as pt,La as mt,Lc as ht,Ld as gt,Lf as _t,Ll as vt,Lo as yt,Lu as bt,Ma as xt,Mc as St,Md as Ct,Mf as wt,Ml as Tt,Mo as Et,Mu as Dt,Na as Ot,Nc as kt,Nd as At,Nf as jt,Nl as Mt,No as Nt,Nu as Pt,Oa as w,Oc as Ft,Od as It,Of as Lt,Ol as Rt,Oo as zt,Ou as Bt,Pa as Vt,Pc as Ht,Pd as Ut,Pf as Wt,Pl as Gt,Po as Kt,Pu as qt,Qa as Jt,Qc as Yt,Qd as Xt,Qi as Zt,Ql as Qt,Qo as $t,Qr as en,Qs as tn,Qu as nn,Ra as rn,Rc as an,Rd as on,Rf as sn,Rl as cn,Ro as ln,Rr as un,Ru as dn,S as fn,Sa as pn,Sc as mn,Sd as hn,Sf as gn,Sl as _n,So as vn,Su as yn,Ta as bn,Tc as xn,Td as Sn,Tf as Cn,Tl as wn,To as Tn,Tu as En,Uc as T,Ud as Dn,Uf as On,Ul as E,Uo as kn,Ur as An,Uu as jn,Vc as Mn,Vd as Nn,Vf as Pn,Vl as Fn,Vo as In,Vr as Ln,Vu as Rn,Wc as zn,Wd as Bn,Wf as Vn,Wi as Hn,Wl as Un,Wo as Wn,Wr as Gn,Wu as D,Xa as Kn,Xc as qn,Xd as Jn,Xi as Yn,Xl as Xn,Xo as Zn,Xr as Qn,Xs as O,Xu as $n,Ya as er,Yc as tr,Yd as k,Yi as nr,Yl as rr,Yo as ir,Yr as ar,Yu as or,Zc as sr,Zd as cr,Zi as lr,Zl as ur,Zo as dr,Zr as fr,Zs as pr,Zu as mr,_ as hr,_a as gr,_c as _r,_d as A,_f as vr,_i as yr,_l as br,_o as xr,_u as Sr,a as Cr,aa as wr,ac as Tr,ad as Er,af as Dr,ai as Or,al as kr,ao as Ar,as as jr,at as j,au as Mr,b as Nr,ba as Pr,bc as Fr,bd as Ir,bf as Lr,bl as Rr,bu as zr,c as Br,ca as Vr,cc as Hr,cd as Ur,cf as Wr,ci as Gr,cl as Kr,cr as qr,cu as Jr,d as Yr,dc as Xr,dd as Zr,df as Qr,di as $r,dl as ei,dr as M,ds as ti,du as ni,ea as ri,ec as ii,ed as ai,ef as oi,ei as si,el as N,es as ci,eu as li,f as ui,fc as di,fd as fi,ff as pi,fi as mi,fl as hi,fr as gi,fs as _i,fu as vi,g as yi,ga as bi,gc as xi,gd as Si,gf as Ci,gi as wi,gl as Ti,go as Ei,gu as Di,h as Oi,ha as ki,hc as Ai,hd as ji,hf as Mi,hl as Ni,ho as Pi,hs as Fi,hu as Ii,i as Li,ic as Ri,id as zi,if as Bi,ii as Vi,il as P,io as Hi,is as Ui,iu as Wi,ja as Gi,jc as Ki,jd as F,jf as qi,jl as Ji,jo as Yi,ju as Xi,kc as Zi,kd as Qi,kf as $i,kl as I,ko as ea,ku as ta,l as na,lc as ra,ld as ia,lf as aa,li as oa,ll as sa,lr as L,ls as ca,lu as la,m as R,ma as ua,mc as da,md as fa,mf as pa,mi as ma,ml as ha,mo as ga,ms as _a,mu as va,n as ya,na as ba,nc as xa,nd as Sa,nf as Ca,ni as wa,nl as Ta,ns as Ea,nu as Da,o as Oa,oa as ka,oc as Aa,od as ja,of as Ma,oi as Na,ol as Pa,or as Fa,os as Ia,ou as La,p as Ra,pa as za,pc as Ba,pd as Va,pf as Ha,pi as Ua,pl as z,po as Wa,pr as Ga,ps as Ka,pu as qa,qa as Ja,qc as Ya,qd as Xa,qf as Za,qi as Qa,ql as $a,qo as eo,qr as to,qu as no,r as ro,ra as io,rd as ao,rf as oo,ri as so,rl as co,ro as lo,rs as uo,rt as fo,ru as po,s as mo,sa as ho,sc as go,sd as _o,sf as vo,si as yo,sl as bo,sr as xo,ss as So,su as Co,ta as wo,tc as To,td as Eo,tf as Do,ti as Oo,tl as ko,ts as Ao,tu as jo,u as Mo,uc as No,ud as Po,uf as Fo,ui as Io,ul as Lo,us as Ro,uu as zo,v as Bo,va as Vo,vc as Ho,vd as Uo,vf as Wo,vl as Go,vo as Ko,vs as B,vu as qo,wa as Jo,wc as Yo,wd as Xo,wf as Zo,wl as Qo,wo as $o,wu as es,x as ts,xa as ns,xc as rs,xd as is,xf as as,xl as os,xo as ss,xu as cs,y as ls,ya as us,yc as ds,yd as fs,yf as ps,yi as ms,yl as hs,yo as gs,yu as _s,za as vs,zc as V,zd as ys,zf as bs,zl as xs,zo as Ss,zr as Cs,zu as ws}from"./_chunks/src-BTj3c0xg.js";import{constants as Ts,createContext as Es,runInContext as Ds}from"node:vm";import*as H from"node:diagnostics_channel";let U=null;function targets(){let e=/* @__PURE__ */ new Set,t=M();for(let n in t){let r=t[n];if(r===null||typeof r!=`object`&&typeof r!=`function`)continue;e.add(r);let i=r.prototype;typeof r==`function`&&typeof i==`object`&&i&&e.add(i)}return e.add(L.prototype),[...e]}function snapshot(e){let t=Reflect.ownKeys(e),n=Array(t.length);for(let r=0;r<t.length;r++){let i=t[r];n[r]=isArrayIndex(i)?null:Object.getOwnPropertyDescriptor(e,i)}return{target:e,keys:t,descriptors:n,keySet:null}}let W=null;function captureInterfaceBaseline(){if(U===null){U=[],W=/* @__PURE__ */ new WeakSet;for(let e of targets())U.push(snapshot(e)),W.add(e);ownObjectCreateMaps()}}let Os=null;function ownObjectCreateMaps(){if(U===null)return;let e=Os??=Ds(`(prototypes) => prototypes.map((p) => Object.create(p))`,Es(Ts.DONT_CONTEXTIFY)),t=[Object.prototype];for(let e=0;e<U.length;e++){let n=U[e].target;typeof n!=`function`&&t.push(n)}e(t)}function configurableDescriptor(e){return typeof e==`object`&&e&&e.configurable!==!0?{...e,configurable:!0}:e}function guardInterfaceDefinitions(e){let t=W;if(t===null)return;let n=e.Object,r=e.Reflect,i=n.defineProperty,a=n.defineProperties,o=r.defineProperty,s={defineProperty(e,n,r){return i(e,n,t.has(e)?configurableDescriptor(r):r)},defineProperties(e,n){if(!t.has(e)||typeof n!=`object`||!n)return a(e,n);let r={};for(let e of Reflect.ownKeys(n))Object.getOwnPropertyDescriptor(n,e)?.enumerable&&(r[e]=configurableDescriptor(n[e]));return a(e,r)},reflectDefineProperty(e,n,r){return o(e,n,t.has(e)?configurableDescriptor(r):r)}};Object.defineProperty(s.reflectDefineProperty,"name",{value:`defineProperty`}),Object.defineProperty(n,"defineProperty",{value:s.defineProperty,writable:!0,configurable:!0,enumerable:!1}),Object.defineProperty(n,"defineProperties",{value:s.defineProperties,writable:!0,configurable:!0,enumerable:!1}),Object.defineProperty(r,"defineProperty",{value:s.reflectDefineProperty,writable:!0,configurable:!0,enumerable:!1})}function isArrayIndex(e){if(typeof e!=`string`||e===``||e.length>10)return!1;let t=Number(e);return t>>>0===t&&t!==4294967295&&String(t)===e}function sameDescriptor(e,t){return e.value===t.value&&e.get===t.get&&e.set===t.set&&e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable}function restoreInterfaces(){if(U===null)return 0;let e=0;for(let t=0;t<U.length;t++){let n=U[t],r=n.target,i=Reflect.ownKeys(r);for(let t=0;t<i.length;t++){let a=i[t];a===n.keys[t]||(n.keySet??=new Set(n.keys)).has(a)||isArrayIndex(a)||Reflect.deleteProperty(r,a)&&e++}for(let t=0;t<n.keys.length;t++){let i=n.keys[t],a=n.descriptors[t];if(a===null)continue;let o=Object.getOwnPropertyDescriptor(r,i);if(!(o!==void 0&&sameDescriptor(o,a)))try{Object.defineProperty(r,i,a),e++}catch{}}}return ownObjectCreateMaps(),e}const G=`ctrl-dom:span`,K=typeof H.tracingChannel==`function`?H.tracingChannel(G):null;function spanChannel(){return K}function tracing(){return K!==null&&K.hasSubscribers}function traceSync(e,t,n){let r={op:e,description:t,data:{},async:!1},i=C();return K.traceSync(e=>{try{return n(e)}finally{recordSkipped(e,i)}},r,void 0,r)}function tracePromise(e,t,n){let r={op:e,description:t,data:{},async:!0},i=C();return K.tracePromise(e=>n(e).finally(()=>recordSkipped(e,i)),r,void 0,r)}function recordSkipped(e,t){let n=C()-t;n>0&&(e.data[`clock.skipped_ms`]=Math.round(n))}function describeCall(e,t){let n=`${e}(`;for(let e=0;e<t.length&&(t[e]!==void 0||e!==t.length-1);e++)if(n+=(e>0?`, `:``)+describeValue(t[e],0),n.length>160)return`${n.slice(0,159)}…)`;return`${n})`}function describeValue(e,t){if(typeof e==`string`)return JSON.stringify(e.length>40?`${e.slice(0,39)}…`:e);if(typeof e==`function`)return e.name?`${e.name}()`:`fn`;if(e instanceof RegExp||typeof e!=`object`||!e)return String(e);if(e[E]!==void 0)return describeNode(e);if(Array.isArray(e))return t>0?`[…]`:`[${e.slice(0,3).map(e=>describeValue(e,t+1)).join(`, `)}${e.length>3?`, …`:``}]`;if(t>0)return`{…}`;let n=Object.entries(e).slice(0,4);return n.length===0?`{}`:`{ ${n.map(([e,n])=>`${e}: ${describeValue(n,t+1)}`).join(`, `)} }`}let q=null;function setNodeDescriber(e){q=e}function describeNode(e){let t=e;if(t.nodeType===9)return`document`;if(t.nodeType!==1||typeof t.localName!=`string`)return t.nodeType===3?`#text`:`node`;if(q!==null)try{let t=q(e);if(t)return t}catch{}if(t.localName===`body`||t.localName===`html`)return`<${t.localName}>`;let n=t.getAttribute?.(`aria-label`)||t.textContent?.trim().replace(/\s+/g,` `)||t.getAttribute?.(`placeholder`)||t.getAttribute?.(`name`)||``;return n===``?`<${t.localName}>`:`<${t.localName} ${quote(n)}>`}function quote(e){return JSON.stringify(e.length>40?`${e.slice(0,39)}…`:e)}const J=`sentry-tests:failure`;let Y=null;function setFailureSnapshot(e){Y=e}function subscribeTestFailures(e){let t=H.channel(J),onFailure=t=>{let n=t,r=e();if(r==null||n.document!==r)return;let i=k();if(i!==null&&(n.contexts.clock={skipped_ms:Math.round(i.skippedMs),pending_timers:i.pendingTimers}),Y!==null&&r.body!=null)try{n.attachments.push({filename:`accessibility-snapshot.txt`,contentType:`text/plain`,data:Y(r.body)})}catch{}};return t.subscribe(onFailure),()=>t.unsubscribe(onFailure)}var FileState=class{hooks;url;constructor(){this.hooks=/* @__PURE__ */ new Map,this.url=null}};const X=/* @__PURE__ */ new WeakMap;function stateOf(e){let t=X.get(e);return t===void 0&&X.set(e,t=new FileState),t}function registerTestHooks(e,t){let n=B();if(n===null)return;let r=stateOf(n).hooks;r.set(e,{...r.get(e),...t})}function testHooks(){let e=B(),t=e===null?void 0:X.get(e);return t===void 0?[]:[...t.hooks.values()]}function resetWindowBetweenFiles(e){let t=stateOf(e);for(let e of t.hooks.values())try{e.fileEnd?.()}catch{}st(),gi(e);let n=e[A];if(n!==null){for(let e of n)e.clear(e.handle);n.clear()}e[p]=null,e[D]=null,e[I]=null,e[l]=null;let r=e.document;r.getSelection()?.removeAllRanges();let i=r.body;i!==null&&(i.replaceChildren(),removeAttributes(i)),r.documentElement!==null&&removeAttributes(r.documentElement),e.localStorage.clear(),e.sessionStorage.clear(),e[T]=null;let a=t.url??=e.location.href;e.location.href!==a&&e._setURL(new URL(a));let o=e.history;o[z]=[{url:a,state:null}],o[S]=0}function removeAttributes(e){let t=e.getAttributeNames();for(let n=0;n<t.length;n++)e.removeAttribute(t[n])}function implOf(e){return e[E]??e}function isTypingType(e){return f(e)||e===12||e>=7&&e<=11}function isEditable(e){let t=implOf(e);return t.tag===O.input?isTypingType(u(t))&&R(t):t.tag===O.textarea?R(t):An(t)}function supportsSelection(e){let t=implOf(e);return t.tag===O.textarea||t.tag===O.input&&d(u(t))}function hasUIValue(e){let t=implOf(e);return t.tag===O.textarea||t.tag===O.input&&w(u(t))===0}function getUIValue(e){let t=implOf(e);if(t.tag===O.input){let e=t.node;return e[V].uiValue??e.value}return t.tag===O.textarea?t.node.value:``}function setUIValue(e,t){let n=implOf(e);if(n.tag===O.input){let e=n.node,r=u(n);if(w(r)!==0)return;let i=fo(r,t,n);n.doc[F]++,e[V].value=i,e[V].dirtyValue=!0,e[V].userEdited=!0,e[V].uiValue=i===t?null:t,e[V].badInput=i===``&&t!==``&&r!==5&&!f(r);let a=t.length;e[V].selStart>a&&(e[V].selStart=a),e[V].selEnd>a&&(e[V].selEnd=a)}else if(n.tag===O.textarea){let e=n.node;n.doc[F]++,e[V].value=t,e[V].dirtyValue=!0,e[V].userEdited=!0}}function clearUIValue(e){let t=implOf(e);if(t.tag===O.input){let e=t.node;e[V].uiValue=null,e[V].badInput=!1}}function getUISelection(e){let t=implOf(e).node,n=getUIValue(e).length;return{start:Math.min(t[V].selStart,n),end:Math.min(t[V].selEnd,n),direction:t[V].selDir}}function setUISelection(e,t,n=t,r=`none`){let i=implOf(e);if(i.tag!==O.input&&i.tag!==O.textarea)return;let a=i.node,o=getUIValue(e).length,s=Math.max(0,Math.min(t,n)),c=Math.max(t,n);c>o&&(c=o),s>c&&(s=c),a[V].selStart=s,a[V].selEnd=c,a[V].selDir=r}function setFilesFromUI(e,t){let n=implOf(e);n.tag===O.input&&u(n)===17&&(n.doc[F]++,n.node[V].files=j(t))}function setOptionSelectedFromUI(t,n){let r=implOf(t);if(r.tag!==O.option)return;let i=r.node;i._setSelectedness(n),i[P]=!0;let a=e(r);if(a!==null){let e=a.node;n&&e._deselectOthers(r),e._updateSelectedContent()}}function setCheckedFromUI(e,t){let n=implOf(e);n.tag===O.input&&n.node._setCheckedness(t,!0)}const ks=L.prototype.getComputedStyle;let Z=null,Q=null,$=null;function getComputedStyleOverride(e){let t=e.doc.defaultView;if(t==null)return null;let n=t.getComputedStyle;if(n===ks||typeof n!=`function`||se.has(n))return null;if(Q?.deref()===n&&Z?.deref()===t){let e=$.deref();if(e!==void 0)return e}let r=n.bind(t);return Z=new WeakRef(t),Q=new WeakRef(n),$=new WeakRef(r),r}export{Aa as $_proto__,go as $aboutBase,Hr as $active,ra as $assocGen,No as $attr,Xr as $attributes,di as $availableToElementInternals,Ba as $baseFor,da as $baseOverride,Ai as $baseURL,xi as $baseVersion,_r as $benign,Ho as $block,ds as $blockParsed,Fr as $blockText,rs as $byCtor,mn as $byName,he as $cache,Yo as $callback,xn as $childNodes,Oe as $childWindows,xe as $children,Ft as $classList,Zi as $clipboard,te as $clonable,Ki as $closed,St as $coll,kt as $compiled,Ht as $compiledFor,m as $condition,Ke as $constructed,ht as $constructingEntryList,an as $contentType,V as $control,ce as $controlsCache,Mn as $controlsDoc,ze as $controlsVersion,T as $cookieJar,zn as $cookies,x as $css,ot as $current,Ya as $customElements,et as $customValidity,tr as $cx,qn as $data,sr as $dataset,Yt as $declarative,t as $defaultNamespace,N as $defaultValueOverride,ko as $delegatesFocus,Ta as $derived,co as $devicePixelRatio,P as $dirtiness,kr as $disabled,Pa as $disallowModification,bo as $doc,Kr as $dropEffect,sa as $ec,Lo as $effectAllowed,ei as $el,hi as $elements,z as $entries,ha as $eo,Ni as $error,Ti as $file,br as $files,Go as $fill,hs as $filter,Rr as $firingSubmissionEvents,os as $focused,_n as $forLabels,ve as $form,Qo as $formAttrSeen,wn as $forms,p as $frameCallbacks,we as $frameElement,Rt as $frameId,I as $frameTask,ie as $frameTime,Ji as $generation,Tt as $globalObject,Mt as $hasTransients,Gt as $height,_ as $history,Ye as $home,vt as $host,cn as $href,xs as $id,l as $idleCallbacks,Fn as $idleId,He as $ids,E as $impl,Un as $implementation,S as $index,ut as $indexed,$a as $inflight,nt as $info,rr as $innerHeight,Xn as $innerWidth,ur as $isHTML,Qt as $items,i as $keyText,li as $kind,jo as $labels,Da as $layerName,po as $list,Wi as $listeners,Mr as $localStorage,La as $location,Co as $lockedForReset,Jr as $matches,la as $media,zo as $mediaQueryLists,ni as $mode,vi as $name,qa as $names,va as $namespaces,Ii as $navigator,Di as $nodes,Sr as $onchange,qo as $options,_s as $owner,zr as $ownerNode,cs as $ownerRule,yn as $parent,be as $parentRule,es as $parentWindow,En as $pastNames,Me as $pointerBeforeReference,De as $prefix,Bt as $prelude,ta as $presentationStyle,oe as $pseudo,Xi as $queries,Dt as $radios,Pt as $ranges,qt as $readonly,b as $readyState,Qe as $rebuildVersion,bt as $record,dn as $records,ws as $reference,pe as $result,Rn as $root,We as $rules,jn as $running,D as $runningFrame,Re as $sc,pt as $screen,no as $scrollRestoration,at as $scrollX,or as $scrollY,$n as $selSet,mr as $selectedOptions,nn as $selectedness,c as $selection,ai as $selector,Eo as $serializable,Sa as $sessionStorage,ao as $settled,zi as $shadowRoot,Er as $shed,ja as $sheet,_o as $sheets,Ur as $slotAssignment,ia as $so,Po as $states,Zr as $style,fi as $styleVersion,Va as $supportsText,fa as $systemId,ji as $target,Si as $targets,A as $tasks,Uo as $timers,fs as $title,Ir as $treeVersion,is as $type,hn as $types,ge as $updating,Xo as $updatingSelectedContent,Sn as $uri,ke as $url,Se as $userActivation,It as $userValidity,Qi as $validity,ne as $value,F as $version,Ct as $visualViewport,At as $w,Ut as $whatToShow,h as $whenDefined,qe as $width,gt as $window,on as $writeBuffer,ys as $x,le as $xhr,Nn as $y,Be as $z,Bi as ATTRIBUTE_NODE,Ia as AttrRecord,Dr as CDATA_SECTION_NODE,Ma as COMMENT_NODE,lr as COMPAT,Zt as COMPAT_PROFILES,r as DEFAULT_COMPAT,vo as DOCUMENT_FRAGMENT_NODE,Wr as DOCUMENT_NODE,aa as DOCUMENT_POSITION_CONTAINED_BY,Fo as DOCUMENT_POSITION_CONTAINS,Qr as DOCUMENT_POSITION_DISCONNECTED,pi as DOCUMENT_POSITION_FOLLOWING,Ha as DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC,pa as DOCUMENT_POSITION_PRECEDING,Mi as DOCUMENT_TYPE_NODE,wr as DeclBlock,Ci as ELEMENT_NODE,vr as ENTITY_NODE,Wo as ENTITY_REFERENCE_NODE,Ri as EventState,J as FAILURE_CHANNEL,ps as F_ADOPT_HOOK,Lr as F_ARIA_ATTRS,as as F_ATTR_HOOK,gn as F_CE_CUSTOM,_e as F_CHILDREN_HOOK,Zo as F_CHILD_LIST,Cn as F_CONNECTED,Ae as F_CONNECT_HOOK,Ce as F_CONTENTEDITABLE_ATTR,Lt as F_CUSTOM,$i as F_DATA_ATTRS,re as F_FACE,qi as F_FORM_ATTR,wt as F_HAS_SHADOW,jt as F_HAS_STYLE_ATTR,Wt as F_HTML,g as F_INERT_ATTR,Je as F_MO_REGISTERED,_t as F_SHADOW_ROOT,sn as F_TABINDEX_ATTR,ee as GLOBAL_EVENT_HANDLER_EVENTS,Wa as HTMLCollection,bs as HTML_NS,pn as INPUT_TYPE_NAMES,ue as MATHML_NS,Pn as NOTATION_NODE,lt as NodeCache,So as NodeImpl,kn as NodeList,Ve as PROCESSING_INSTRUCTION_NODE,G as SPAN_CHANNEL,On as SVG_NS,O as T,Vn as TEXT_NODE,Dn as VirtualClock,Bn as VirtualTimeout,Gi as WINDOW_EVENT_HANDLER_EVENTS,Pe as XLINK_NS,ct as XMLNS_NS,Za as XML_NS,yo as adoptedStyleSheetsOf,ae as ariaAttr,Yi as asciiLowercase,$o as assignManually,Tn as assignedElements,je as assignedNodes,Te as assignedSlot,Ge as attachShadowRoot,Et as attr,Fa as attrAssociatedElement,xo as attrAssociatedElements,Jt as attrNode,Ne as canSkipZeroDelayWait,captureInterfaceBaseline,rt as childAt,Nt as classTokens,clearUIValue,Xa as clockNow,k as clockStats,Ei as closest,y as compareBoundaryPoints,ri as compatExposes,to as computedDisplay,it as computedValue,ar as computedVisibility,un as constructEntryList,ya as controlValue,Ee as createEvent,j as createFileList,Gr as createLinkSheet,Qn as currentStyleVersion,Cs as defaultButton,wo as deferredCompatMembers,dt as derivedCache,describeCall,describeNode,ca as dispatch,tt as dispatchTrusted,ga as ensureCollectionIndexGetters,Wn as ensureIndexGetters,wi as evaluateMediaQueryList,ho as faceState,zt as findFlattenedSlottables,ea as findSlot,nr as fireAnEvent,Yn as fireSyntheticPointerEvent,ir as firstElementChild,Jn as foreignImmediatesPending,ua as formOwner,Kt as getAttribute,ft as getComputedStyle,getComputedStyleOverride,Ro as getCurrentEvent,mt as getElementsByClassName,rn as getElementsByTagName,vs as getElementsByTagNameNS,xt as getEventHandler,getUISelection,getUIValue,guardInterfaceDefinitions,v as hasAttr,fr as hasAuthorStyles,qr as hasExplicitAttrElements,s as hasListeners,ro as hasReadonlyAttribute,hasUIValue,ba as hiddenGlobals,fe as implicitSubmission,Ie as indexGetterTable,Zn as indexOf,Li as inputChecked,Cr as inputIndeterminate,u as inputType,Jo as inputTypeFromAttr,ss as inspectNode,cr as installClock,Ot as installEventHandlers,ki as isActuallyDisabled,Xe as isAsciiWhitespace,Oa as isAutofilled,mo as isChecked,Xt as isClockTimer,Br as isDefault,na as isDisabled,en as isDisplayNone,o as isDisplayNoneInclusive,isEditable as isEditableControl,Mo as isEnabled,Vr as isFACE,Yr as isInRange,dr as isInclusiveAncestor,ui as isIndeterminate,Ra as isInvalid,bi as isLabelable,gr as isListed,R as isMutable,bn as isNumericType,Oi as isOptional,yi as isOutOfRange,hr as isPlaceholderShown,Bo as isReadOnly,ls as isReadWrite,Nr as isRequired,Vo as isResettable,Ln as isSubmitButton,us as isSubmittable,ts as isTextControl,f as isTextualType,fn as isValid,Ja as isValidDoctypeName,$e as isValidElementLocalName,er as isValidNamespacePrefix,si as isVisibilityHidden,Pr as labeledControl,ns as labelsFor,$t as lastElementChild,za as listOfOptions,ii as listenerCount,n as loopTurn,Hn as matchMediaText,xr as matches,yr as mediaEnvironment,a as nextElementInTree,ci as nextElementSibling,Ao as nextInTree,Ea as nextSkippingChildren,Qa as nodeCache,ti as nodeGetTheParent,Ze as nodeLength,In as notifyMutationObservers,me as optionSelected,ka as parseDeclBlock,Ar as parseFragment,Fe as parseMediaQueryList,eo as peekDerivedCache,Oo as pointerEvents,wa as pointerEventsNone,yt as prefixFlag,uo as previousElementSibling,Ui as previousInTree,so as pseudoContent,Ko as querySelector,gs as querySelectorAll,quote,Io as registerOwnerSheet,registerTestHooks,To as removeAllEventListeners,ln as removeAttribute,$r as removeOwnerSheet,vn as replaceData,_a as reportException,resetWindowBetweenFiles,io as resolveCompat,restoreInterfaces,_i as retarget,xa as reusableElement,lo as serializeChildren,Hi as serializeNode,mi as setAdoptedStyleSheets,Ka as setAssignedSlotLookup,Ss as setAttribute,setCheckedFromUI,Vi as setComputedColorMode,Vt as setEventHandler,setFailureSnapshot,setFilesFromUI,setNodeDescriber,Ue as setNotImplementedHandler,setOptionSelectedFromUI,Tr as setTrusted,setUISelection,setUIValue,Fi as setUncaughtExceptionHandler,oi as skipIdleTime,Do as skipZeroDelayWait,spanChannel,de as splitOnAsciiWhitespace,ye as splitText,Gn as styleElementRemoved,oa as styleElementSheet,Le as styleElementUpdated,Ua as styleSheetsOf,Or as styledDisplay,subscribeTestFailures,supportsSelection,d as supportsSelectionType,pr as tagId,tn as tagName,testHooks,tracePromise,traceSync,tracing,Ga as trackGlobalTimers,jr as treeRoot,Na as uaDisplay,ma as unregisterOwnerSheet,Kn as validateAndExtract,w as valueMode,Ca as virtualDate,oo as virtualPerformance,ms as windowHooks,M as windowInterfaces,Pi as withNamedProperties};
@@ -6,3 +6,11 @@ export declare class CollectionIterator extends Iterator<unknown, undefined> {
6
6
  }
7
7
  /** Array.prototype.values's ToObject step: collections only ever pass themselves, but `.call(x)` works on any array-like. */
8
8
  export declare function iterableTarget(self: unknown): ArrayLike<unknown>;
9
+ /**
10
+ * https://tc39.es/ecma262/#sec-array.prototype.foreach as a plain loop, for NodeList and
11
+ * DOMTokenList (WebIDL makes theirs %Array.prototype.forEach%, which V8 runs generically on
12
+ * non-arrays). Same steps: ToObject, the length read once, the callable check after it, `k in O`
13
+ * before each read, `callback.call(thisArg, value, k, O)`. A non-callable callback is handed to
14
+ * the builtin so the TypeError is V8's own.
15
+ */
16
+ export declare const collectionForEach: (this: unknown, callback: (value: unknown, key: number, list: unknown) => void, thisArg?: unknown) => void;
@@ -1,6 +1,8 @@
1
1
  import { Element } from "../nodes/Element.js";
2
2
  import { CSSStyleDeclaration } from "../css/CSSStyleDeclaration.js";
3
3
  import { $attr, $el } from "../keys.js";
4
+ import { DOMMatrix, DOMPoint, DOMRect } from "../window/geometry.js";
5
+ import { SVGNumber } from "./svg-types.js";
4
6
  /** https://svgwg.org/svg2-draft/types.html#InterfaceSVGAnimatedString */
5
7
  export declare class SVGAnimatedString {
6
8
  [$el]: Element;
@@ -21,36 +23,31 @@ export declare class SVGElement extends Element {
21
23
  get viewportElement(): SVGElement | null;
22
24
  }
23
25
  export declare class SVGGraphicsElement extends SVGElement {
24
- getBBox(): {
25
- x: number;
26
- y: number;
27
- width: number;
28
- height: number;
29
- };
30
- getCTM(): object | null;
31
- getScreenCTM(): object | null;
26
+ /** https://svgwg.org/svg2-draft/types.html#__svg__SVGGraphicsElement__getBBox — no layout: an empty box. */
27
+ getBBox(): DOMRect;
28
+ /** https://svgwg.org/svg2-draft/types.html#__svg__SVGGraphicsElement__getCTM — no layout: the identity. */
29
+ getCTM(): DOMMatrix | null;
30
+ /** https://svgwg.org/svg2-draft/types.html#__svg__SVGGraphicsElement__getScreenCTM */
31
+ getScreenCTM(): DOMMatrix | null;
32
32
  }
33
33
  export declare class SVGGeometryElement extends SVGGraphicsElement {
34
34
  isPointInFill(): boolean;
35
35
  isPointInStroke(): boolean;
36
36
  getTotalLength(): number;
37
- getPointAtLength(): {
38
- x: number;
39
- y: number;
40
- };
37
+ /** https://svgwg.org/svg2-draft/types.html#__svg__SVGGeometryElement__getPointAtLength */
38
+ getPointAtLength(): DOMPoint;
41
39
  }
42
40
  export declare class SVGSVGElement extends SVGGraphicsElement {
43
- createSVGNumber(): {
44
- value: number;
45
- };
41
+ /** https://svgwg.org/svg2-draft/struct.html#__svg__SVGSVGElement__createSVGNumber */
42
+ createSVGNumber(): SVGNumber;
46
43
  createSVGLength(): object;
47
44
  createSVGAngle(): object;
48
- createSVGPoint(): {
49
- x: number;
50
- y: number;
51
- };
52
- createSVGMatrix(): object;
53
- createSVGRect(): object;
45
+ /** https://svgwg.org/svg2-draft/struct.html#__svg__SVGSVGElement__createSVGPoint */
46
+ createSVGPoint(): DOMPoint;
47
+ /** https://svgwg.org/svg2-draft/struct.html#__svg__SVGSVGElement__createSVGMatrix */
48
+ createSVGMatrix(): DOMMatrix;
49
+ /** https://svgwg.org/svg2-draft/struct.html#__svg__SVGSVGElement__createSVGRect */
50
+ createSVGRect(): DOMRect;
54
51
  createSVGTransform(): object;
55
52
  getIntersectionList(): unknown[];
56
53
  getEnclosureList(): unknown[];
@@ -128,6 +128,10 @@ export declare class HTMLTrackElement extends HTMLElement {
128
128
  static readonly LOADING = 1;
129
129
  static readonly LOADED = 2;
130
130
  static readonly ERROR = 3;
131
+ readonly NONE: number;
132
+ readonly LOADING: number;
133
+ readonly LOADED: number;
134
+ readonly ERROR: number;
131
135
  get readyState(): number;
132
136
  get track(): null;
133
137
  }
@@ -140,8 +144,6 @@ export declare class HTMLCanvasElement extends HTMLElement {
140
144
  getContext(_contextId: string, _options?: unknown): null;
141
145
  toDataURL(_type?: string, _quality?: unknown): string;
142
146
  toBlob(callback: (blob: null) => void): void;
143
- transferControlToOffscreen(): never;
144
- captureStream(): never;
145
147
  }
146
148
  export declare class HTMLTableElement extends HTMLElement {
147
149
  get caption(): Element | null;
@@ -10,4 +10,5 @@ export { HTMLStyleElement, HTMLLinkElement, HTMLScriptElement, HTMLTitleElement
10
10
  export { ElementInternals, CustomStateSet } from "./HTMLElement.js";
11
11
  export { CustomElementRegistry } from "./custom-elements.js";
12
12
  export { MathMLElement } from "./MathMLElement.js";
13
+ export { SVGNumber, SVGAnimatedRect, SVGPreserveAspectRatio, SVGAnimatedPreserveAspectRatio } from "./svg-types.js";
13
14
  export { SVGAnimatedString, SVGGraphicsElement, SVGGeometryElement, SVGSVGElement, SVGGElement, SVGDefsElement, SVGDescElement, SVGMetadataElement, SVGTitleElement, SVGSymbolElement, SVGUseElement, SVGSwitchElement, SVGImageElement, SVGForeignObjectElement, SVGAElement, SVGPathElement, SVGRectElement, SVGCircleElement, SVGEllipseElement, SVGLineElement, SVGPolylineElement, SVGPolygonElement, SVGTextContentElement, SVGTextPositioningElement, SVGTextElement, SVGTSpanElement, SVGTextPathElement, SVGMarkerElement, SVGClipPathElement, SVGMaskElement, SVGPatternElement, SVGGradientElement, SVGLinearGradientElement, SVGRadialGradientElement, SVGStopElement, SVGStyleElement, SVGScriptElement, SVGViewElement, SVGFilterElement, } from "./SVGElement.js";
@@ -10,6 +10,10 @@ export declare class MediaError {
10
10
  static readonly MEDIA_ERR_NETWORK = 2;
11
11
  static readonly MEDIA_ERR_DECODE = 3;
12
12
  static readonly MEDIA_ERR_SRC_NOT_SUPPORTED = 4;
13
+ readonly MEDIA_ERR_ABORTED: number;
14
+ readonly MEDIA_ERR_NETWORK: number;
15
+ readonly MEDIA_ERR_DECODE: number;
16
+ readonly MEDIA_ERR_SRC_NOT_SUPPORTED: number;
13
17
  }
14
18
  export declare class HTMLMediaElement extends HTMLElement {
15
19
  static readonly NETWORK_EMPTY = 0;
@@ -21,6 +25,15 @@ export declare class HTMLMediaElement extends HTMLElement {
21
25
  static readonly HAVE_CURRENT_DATA = 2;
22
26
  static readonly HAVE_FUTURE_DATA = 3;
23
27
  static readonly HAVE_ENOUGH_DATA = 4;
28
+ readonly NETWORK_EMPTY: number;
29
+ readonly NETWORK_IDLE: number;
30
+ readonly NETWORK_LOADING: number;
31
+ readonly NETWORK_NO_SOURCE: number;
32
+ readonly HAVE_NOTHING: number;
33
+ readonly HAVE_METADATA: number;
34
+ readonly HAVE_CURRENT_DATA: number;
35
+ readonly HAVE_FUTURE_DATA: number;
36
+ readonly HAVE_ENOUGH_DATA: number;
24
37
  get error(): MediaError | null;
25
38
  get currentSrc(): string;
26
39
  get srcObject(): unknown;
@@ -73,8 +86,6 @@ export declare class HTMLVideoElement extends HTMLMediaElement {
73
86
  get videoHeight(): number;
74
87
  getVideoPlaybackQuality(): object;
75
88
  requestPictureInPicture(): Promise<never>;
76
- requestVideoFrameCallback(_cb: unknown): number;
77
- cancelVideoFrameCallback(_handle: number): void;
78
89
  }
79
90
  /**
80
91
  * https://html.spec.whatwg.org/#dom-audio — `new Audio(src?)` creates an <audio preload=auto>
@@ -0,0 +1,67 @@
1
+ import type { Element } from "../nodes/Element.js";
2
+ import { DOMRect, DOMRectReadOnly } from "../window/geometry.js";
3
+ /** https://svgwg.org/svg2-draft/types.html#InterfaceSVGNumber — a standalone number (createSVGNumber()). */
4
+ export declare class SVGNumber {
5
+ #private;
6
+ get value(): number;
7
+ set value(v: number);
8
+ }
9
+ /** https://svgwg.org/svg2-draft/types.html#InterfaceSVGAnimatedRect */
10
+ export declare class SVGAnimatedRect {
11
+ #private;
12
+ constructor(el: Element, attr: string);
13
+ /** [SameObject] */
14
+ get baseVal(): DOMRect;
15
+ /** [SameObject] */
16
+ get animVal(): DOMRectReadOnly;
17
+ }
18
+ /** https://svgwg.org/svg2-draft/coords.html#InterfaceSVGPreserveAspectRatio */
19
+ export declare class SVGPreserveAspectRatio {
20
+ #private;
21
+ static readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: number;
22
+ static readonly SVG_PRESERVEASPECTRATIO_NONE: number;
23
+ static readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: number;
24
+ static readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: number;
25
+ static readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: number;
26
+ static readonly SVG_PRESERVEASPECTRATIO_XMINYMID: number;
27
+ static readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: number;
28
+ static readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: number;
29
+ static readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: number;
30
+ static readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: number;
31
+ static readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: number;
32
+ static readonly SVG_MEETORSLICE_UNKNOWN: number;
33
+ static readonly SVG_MEETORSLICE_MEET: number;
34
+ static readonly SVG_MEETORSLICE_SLICE: number;
35
+ readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: number;
36
+ readonly SVG_PRESERVEASPECTRATIO_NONE: number;
37
+ readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: number;
38
+ readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: number;
39
+ readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: number;
40
+ readonly SVG_PRESERVEASPECTRATIO_XMINYMID: number;
41
+ readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: number;
42
+ readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: number;
43
+ readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: number;
44
+ readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: number;
45
+ readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: number;
46
+ readonly SVG_MEETORSLICE_UNKNOWN: number;
47
+ readonly SVG_MEETORSLICE_MEET: number;
48
+ readonly SVG_MEETORSLICE_SLICE: number;
49
+ constructor(el: Element, readOnly: boolean);
50
+ get align(): number;
51
+ set align(value: number);
52
+ get meetOrSlice(): number;
53
+ set meetOrSlice(value: number);
54
+ }
55
+ /** https://svgwg.org/svg2-draft/types.html#InterfaceSVGAnimatedPreserveAspectRatio */
56
+ export declare class SVGAnimatedPreserveAspectRatio {
57
+ #private;
58
+ constructor(el: Element);
59
+ /** [SameObject] */
60
+ get baseVal(): SVGPreserveAspectRatio;
61
+ /** [SameObject] */
62
+ get animVal(): SVGPreserveAspectRatio;
63
+ }
64
+ /** Install the SVGFitToViewBox mixin's [SameObject] `viewBox` and `preserveAspectRatio`. */
65
+ export declare function installFitToViewBox(C: {
66
+ prototype: object;
67
+ }): void;
@@ -31,9 +31,11 @@ export { FileReader } from "./window/FileReader.js";
31
31
  export { FileList } from "./window/FileList.js";
32
32
  export { MediaQueryListEvent } from "./window/events.js";
33
33
  export { DOMParser, XMLSerializer } from "./window/fallbacks.js";
34
- export { ResizeObserver, IntersectionObserver } from "./window/observers.js";
34
+ export { ResizeObserver, IntersectionObserver, IntersectionObserverEntry } from "./window/observers.js";
35
+ export { ResizeObserverEntry, ResizeObserverSize } from "./css/resize-observer.js";
35
36
  export { DOMPointReadOnly, DOMPoint, DOMRectReadOnly, DOMRect, DOMRectList, DOMMatrixReadOnly, DOMMatrix, type DOMRectInit, } from "./window/geometry.js";
36
37
  export { DOMMatrix as WebKitCSSMatrix } from "./window/geometry.js";
38
+ export { DOMRect as SVGRect } from "./window/geometry.js";
37
39
  export { DOMQuad, type DOMQuadInit } from "./window/quad.js";
38
40
  export { Event } from "./events/Event.js";
39
41
  export { UIEvent, FocusEvent, MouseEvent, PointerEvent, WheelEvent, DragEvent, KeyboardEvent, InputEvent, CompositionEvent, TextEvent, Touch, TouchList, TouchEvent, ClipboardEvent, } from "./events/UIEvents.js";
@@ -15,12 +15,26 @@ export declare function exposeMembers(...ctors: Ctor[]): void;
15
15
  export declare function defineInterfaceShape(ctor: Ctor & {
16
16
  name: string;
17
17
  }, required?: Readonly<Record<string, number>>): void;
18
+ /**
19
+ * Define WebIDL constants on the interface object and its prototype
20
+ * (https://webidl.spec.whatwg.org/#es-constants): `{ writable: false, enumerable: true,
21
+ * configurable: false }` on both. Class `static readonly` fields are writable and configurable, and
22
+ * class syntax puts nothing on the prototype, so `video.HAVE_ENOUGH_DATA` would be undefined.
23
+ */
24
+ export declare function defineConstants(ctor: Ctor, constants: Readonly<Record<string, number>>): void;
18
25
  /**
19
26
  * Make an instance's internal own fields (`_`-prefixed or symbol-keyed, see keys.ts)
20
27
  * non-enumerable, so spreads and Jest's symbol-aware equality skip them too. Call at the end of
21
28
  * a constructor.
22
29
  */
23
30
  export declare function hideInternals(obj: object): void;
31
+ /**
32
+ * Create an internal own field already hidden: what `hideInternals` would leave (writable,
33
+ * configurable, not enumerable), without reconfiguring the property afterwards, which costs
34
+ * several times more. Use with `declare`d class fields (a plain field declaration would create an
35
+ * enumerable `undefined` property first).
36
+ */
37
+ export declare function defineHidden(obj: object, key: symbol | string, value: unknown): void;
24
38
  /**
25
39
  * Throw the TypeError WebIDL requires when an operation is called with fewer than its required
26
40
  * arguments (https://webidl.spec.whatwg.org/#dfn-overload-resolution-algorithm step 4), worded
@@ -1,5 +1,6 @@
1
1
  import type { Element } from "../nodes/Element.js";
2
2
  import { $callback, $targets } from "../keys.js";
3
+ import { DOMRectReadOnly, type DOMRectInit } from "./geometry.js";
3
4
  type ResizeObserverCallback = (entries: unknown[], observer: ResizeObserver) => void;
4
5
  type IntersectionObserverCallback = (entries: unknown[], observer: IntersectionObserver) => void;
5
6
  /** @internal Set by css/resize-observer.ts (layout-lite delivery); null hooks mean "no layout". */
@@ -39,4 +40,31 @@ export declare class IntersectionObserver {
39
40
  takeRecords(): unknown[];
40
41
  get [Symbol.toStringTag](): string;
41
42
  }
43
+ /** https://w3c.github.io/IntersectionObserver/#dictdef-intersectionobserverentryinit */
44
+ export interface IntersectionObserverEntryInit {
45
+ time: number;
46
+ rootBounds: DOMRectInit | null;
47
+ boundingClientRect: DOMRectInit;
48
+ intersectionRect: DOMRectInit;
49
+ isIntersecting: boolean;
50
+ intersectionRatio: number;
51
+ target: Element;
52
+ }
53
+ /**
54
+ * https://w3c.github.io/IntersectionObserver/#intersection-observer-entry — never delivered here
55
+ * (no layout), but exposed with IntersectionObserver: libraries check
56
+ * `"isIntersecting" in IntersectionObserverEntry.prototype` before trusting the observer
57
+ * (react-lazy-load-image-component), and test mocks construct entries.
58
+ */
59
+ export declare class IntersectionObserverEntry {
60
+ #private;
61
+ constructor(init: IntersectionObserverEntryInit);
62
+ get time(): number;
63
+ get rootBounds(): DOMRectReadOnly | null;
64
+ get boundingClientRect(): DOMRectReadOnly;
65
+ get intersectionRect(): DOMRectReadOnly;
66
+ get isIntersecting(): boolean;
67
+ get intersectionRatio(): number;
68
+ get target(): Element;
69
+ }
42
70
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctrl/dom",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "A fast DOM for testing React components: a drop-in replacement for jsdom and happy-dom, with Testing Library, user-event and jest-dom built in.",
5
5
  "keywords": [
6
6
  "dom",