@ctrl/dom 0.1.12 → 0.1.13

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{Cr as AbstractRange,ms as AnimationEvent,Wa as Attr,Zt as Audio,hs as BeforeUnloadEvent,$a as CDATASection,t as CSS,di as CSSConditionRule,fi as CSSContainerRule,pi as CSSFontFaceRule,mi as CSSGroupingRule,hi as CSSImportRule,gi as CSSKeyframeRule,_i as CSSKeyframesRule,vi as CSSLayerBlockRule,yi as CSSLayerStatementRule,bi as CSSMediaRule,xi as CSSNamespaceRule,Si as CSSNestedDeclarations,Ci as CSSPageRule,wi as CSSPropertyRule,Ti as CSSRule,Ei as CSSRuleList,Di as CSSScopeRule,Oi as CSSStartingStyleRule,Yi as CSSStyleDeclaration,ki as CSSStyleRule,Ai as CSSStyleSheet,ji as CSSSupportsRule,eo as CharacterData,cr as Clipboard,As as ClipboardEvent,lr as ClipboardItem,gs as CloseEvent,Or as CommandEvent,to as Comment,js as CompositionEvent,ba as CustomElementRegistry,_s as CustomEvent,Yn as CustomStateSet,hr as DOMImplementation,ja as DOMMatrix,Ma as DOMMatrixReadOnly,pr as DOMParser,Na as DOMPoint,Pa as DOMPointReadOnly,Fa as DOMRect,Ia as DOMRectList,La as DOMRectReadOnly,Ga as DOMStringMap,Ka as DOMTokenList,T as DataTransfer,E as DataTransferItem,D as DataTransferItemList,gr as Document,gr as HTMLDocument,Qa as DocumentFragment,Za as DocumentType,Ms as DragEvent,Ea as Element,Xn as ElementInternals,vs as ErrorEvent,Ks as Event,ns as EventTarget,et as FileList,A as FileReader,Ns as FocusEvent,F as FormData,ys as FormDataEvent,rn as HTMLAnchorElement,in as HTMLAreaElement,Qt as HTMLAudioElement,an as HTMLBRElement,on as HTMLBaseElement,sn as HTMLBodyElement,G as HTMLButtonElement,cn as HTMLCanvasElement,io as HTMLCollection,ln as HTMLDListElement,un as HTMLDataElement,R as HTMLDataListElement,Yt as HTMLDetailsElement,Xt as HTMLDialogElement,dn as HTMLDirectoryElement,fn as HTMLDivElement,Zn as HTMLElement,pn as HTMLEmbedElement,H as HTMLFieldSetElement,mn as HTMLFontElement,ta as HTMLFormControlsCollection,L as HTMLFormElement,hn as HTMLFrameElement,gn as HTMLFrameSetElement,_n as HTMLHRElement,vn as HTMLHeadElement,yn as HTMLHeadingElement,bn as HTMLHtmlElement,xn as HTMLIFrameElement,Sn as HTMLImageElement,Q as HTMLInputElement,Cn as HTMLLIElement,W as HTMLLabelElement,U as HTMLLegendElement,Ut as HTMLLinkElement,wn as HTMLMapElement,Tn as HTMLMarqueeElement,$t as HTMLMediaElement,En as HTMLMenuElement,Dn as HTMLMetaElement,z as HTMLMeterElement,On as HTMLModElement,kn as HTMLOListElement,An as HTMLObjectElement,K as HTMLOptGroupElement,q as HTMLOptionElement,na as HTMLOptionsCollection,B as HTMLOutputElement,jn as HTMLParagraphElement,Mn as HTMLParamElement,Nn as HTMLPictureElement,Pn as HTMLPreElement,V as HTMLProgressElement,Fn as HTMLQuoteElement,Wt as HTMLScriptElement,X as HTMLSelectElement,qt as HTMLSlotElement,In as HTMLSourceElement,Ln as HTMLSpanElement,Gt as HTMLStyleElement,Rn as HTMLTableCaptionElement,zn as HTMLTableCellElement,Bn as HTMLTableColElement,Vn as HTMLTableElement,Hn as HTMLTableRowElement,Un as HTMLTableSectionElement,Jt as HTMLTemplateElement,Z as HTMLTextAreaElement,Wn as HTMLTimeElement,Kt as HTMLTitleElement,Gn as HTMLTrackElement,Kn as HTMLUListElement,qn as HTMLUnknownElement,en as HTMLVideoElement,bs as HashChangeEvent,dr as History,Jn as Image,Ps as InputEvent,O as IntersectionObserver,Fs as KeyboardEvent,fr as Location,nt as MathMLElement,tn as MediaError,Mi as MediaList,oi as MediaQueryList,li as MediaQueryListEvent,xs as MessageEvent,Is as MouseEvent,w as MutationObserver,Io as MutationRecord,Ha as NamedNodeMap,ur as Navigator,do as Node,br as NodeFilter,xr as NodeIterator,Lo as NodeList,J as Option,Ss as PageTransitionEvent,Ls as PointerEvent,Cs as PopStateEvent,no as ProcessingInstruction,ws as ProgressEvent,Ts as PromiseRejectionEvent,ra as RadioNodeList,wr as Range,k as ResizeObserver,rt as SVGAElement,it as SVGAnimatedString,at as SVGCircleElement,ot as SVGClipPathElement,st as SVGDefsElement,ct as SVGDescElement,lt as SVGElement,ut as SVGEllipseElement,dt as SVGFilterElement,ft as SVGForeignObjectElement,pt as SVGGElement,mt as SVGGeometryElement,ht as SVGGradientElement,gt as SVGGraphicsElement,_t as SVGImageElement,vt as SVGLineElement,yt as SVGLinearGradientElement,bt as SVGMarkerElement,xt as SVGMaskElement,St as SVGMetadataElement,Ct as SVGPathElement,wt as SVGPatternElement,Tt as SVGPolygonElement,Et as SVGPolylineElement,Dt as SVGRadialGradientElement,Ot as SVGRectElement,kt as SVGSVGElement,At as SVGScriptElement,jt as SVGStopElement,Mt as SVGStyleElement,Nt as SVGSwitchElement,Pt as SVGSymbolElement,Ft as SVGTSpanElement,It as SVGTextContentElement,Lt as SVGTextElement,Rt as SVGTextPathElement,zt as SVGTextPositioningElement,Bt as SVGTitleElement,Vt as SVGUseElement,Ht as SVGViewElement,or as Screen,yr as Selection,qa as ShadowRoot,Tr as StaticRange,ar as Storage,Es as StorageEvent,Ni as StyleSheet,Pi as StyleSheetList,Ds as SubmitEvent,ro as Text,Rs as TextEvent,nn as TimeRanges,Os as ToggleEvent,zs as Touch,Bs as TouchEvent,Vs as TouchList,ks as TransitionEvent,Sr as TreeWalker,Hs as UIEvent,ea as ValidityState,sr as VisualViewport,Us as WheelEvent,tr as Window,_r as XMLDocument,j as XMLHttpRequest,M as XMLHttpRequestEventTarget,N as XMLHttpRequestUpload,mr as XMLSerializer,nr as createWindow,us as currentDocument,ds as currentWindow,fs as currentWindowOrNull,Lr as getComputedStyle,P as installGlobals,ps as setCurrentWindow}from"./_chunks/src-BlQ27FdQ.js";
1
+ export{Cr as AbstractRange,hs as AnimationEvent,Wa as Attr,Zt as Audio,gs as BeforeUnloadEvent,$a as CDATASection,t as CSS,di as CSSConditionRule,fi as CSSContainerRule,pi as CSSFontFaceRule,mi as CSSGroupingRule,hi as CSSImportRule,gi as CSSKeyframeRule,_i as CSSKeyframesRule,vi as CSSLayerBlockRule,yi as CSSLayerStatementRule,bi as CSSMediaRule,xi as CSSNamespaceRule,Si as CSSNestedDeclarations,Ci as CSSPageRule,wi as CSSPropertyRule,Ti as CSSRule,Ei as CSSRuleList,Di as CSSScopeRule,Oi as CSSStartingStyleRule,Yi as CSSStyleDeclaration,ki as CSSStyleRule,Ai as CSSStyleSheet,ji as CSSSupportsRule,eo as CharacterData,cr as Clipboard,js as ClipboardEvent,lr as ClipboardItem,_s as CloseEvent,Or as CommandEvent,to as Comment,Ms as CompositionEvent,ba as CustomElementRegistry,vs as CustomEvent,Yn as CustomStateSet,hr as DOMImplementation,ja as DOMMatrix,Ma as DOMMatrixReadOnly,pr as DOMParser,Na as DOMPoint,Pa as DOMPointReadOnly,Fa as DOMRect,Ia as DOMRectList,La as DOMRectReadOnly,Ga as DOMStringMap,Ka as DOMTokenList,T as DataTransfer,E as DataTransferItem,D as DataTransferItemList,gr as Document,gr as HTMLDocument,Qa as DocumentFragment,Za as DocumentType,Ns as DragEvent,Ea as Element,Xn as ElementInternals,ys as ErrorEvent,qs as Event,rs as EventTarget,et as FileList,A as FileReader,Ps as FocusEvent,F as FormData,bs as FormDataEvent,rn as HTMLAnchorElement,in as HTMLAreaElement,Qt as HTMLAudioElement,an as HTMLBRElement,on as HTMLBaseElement,sn as HTMLBodyElement,G as HTMLButtonElement,cn as HTMLCanvasElement,io as HTMLCollection,ln as HTMLDListElement,un as HTMLDataElement,R as HTMLDataListElement,Yt as HTMLDetailsElement,Xt as HTMLDialogElement,dn as HTMLDirectoryElement,fn as HTMLDivElement,Zn as HTMLElement,pn as HTMLEmbedElement,H as HTMLFieldSetElement,mn as HTMLFontElement,ta as HTMLFormControlsCollection,L as HTMLFormElement,hn as HTMLFrameElement,gn as HTMLFrameSetElement,_n as HTMLHRElement,vn as HTMLHeadElement,yn as HTMLHeadingElement,bn as HTMLHtmlElement,xn as HTMLIFrameElement,Sn as HTMLImageElement,Q as HTMLInputElement,Cn as HTMLLIElement,W as HTMLLabelElement,U as HTMLLegendElement,Ut as HTMLLinkElement,wn as HTMLMapElement,Tn as HTMLMarqueeElement,$t as HTMLMediaElement,En as HTMLMenuElement,Dn as HTMLMetaElement,z as HTMLMeterElement,On as HTMLModElement,kn as HTMLOListElement,An as HTMLObjectElement,K as HTMLOptGroupElement,q as HTMLOptionElement,na as HTMLOptionsCollection,B as HTMLOutputElement,jn as HTMLParagraphElement,Mn as HTMLParamElement,Nn as HTMLPictureElement,Pn as HTMLPreElement,V as HTMLProgressElement,Fn as HTMLQuoteElement,Wt as HTMLScriptElement,X as HTMLSelectElement,qt as HTMLSlotElement,In as HTMLSourceElement,Ln as HTMLSpanElement,Gt as HTMLStyleElement,Rn as HTMLTableCaptionElement,zn as HTMLTableCellElement,Bn as HTMLTableColElement,Vn as HTMLTableElement,Hn as HTMLTableRowElement,Un as HTMLTableSectionElement,Jt as HTMLTemplateElement,Z as HTMLTextAreaElement,Wn as HTMLTimeElement,Kt as HTMLTitleElement,Gn as HTMLTrackElement,Kn as HTMLUListElement,qn as HTMLUnknownElement,en as HTMLVideoElement,xs as HashChangeEvent,dr as History,Jn as Image,Fs as InputEvent,O as IntersectionObserver,Is as KeyboardEvent,fr as Location,nt as MathMLElement,tn as MediaError,Mi as MediaList,oi as MediaQueryList,li as MediaQueryListEvent,Ss as MessageEvent,Ls as MouseEvent,w as MutationObserver,Io as MutationRecord,Ha as NamedNodeMap,ur as Navigator,do as Node,br as NodeFilter,xr as NodeIterator,Lo as NodeList,J as Option,Cs as PageTransitionEvent,Rs as PointerEvent,ws as PopStateEvent,no as ProcessingInstruction,Ts as ProgressEvent,Es as PromiseRejectionEvent,ra as RadioNodeList,wr as Range,k as ResizeObserver,rt as SVGAElement,it as SVGAnimatedString,at as SVGCircleElement,ot as SVGClipPathElement,st as SVGDefsElement,ct as SVGDescElement,lt as SVGElement,ut as SVGEllipseElement,dt as SVGFilterElement,ft as SVGForeignObjectElement,pt as SVGGElement,mt as SVGGeometryElement,ht as SVGGradientElement,gt as SVGGraphicsElement,_t as SVGImageElement,vt as SVGLineElement,yt as SVGLinearGradientElement,bt as SVGMarkerElement,xt as SVGMaskElement,St as SVGMetadataElement,Ct as SVGPathElement,wt as SVGPatternElement,Tt as SVGPolygonElement,Et as SVGPolylineElement,Dt as SVGRadialGradientElement,Ot as SVGRectElement,kt as SVGSVGElement,At as SVGScriptElement,jt as SVGStopElement,Mt as SVGStyleElement,Nt as SVGSwitchElement,Pt as SVGSymbolElement,Ft as SVGTSpanElement,It as SVGTextContentElement,Lt as SVGTextElement,Rt as SVGTextPathElement,zt as SVGTextPositioningElement,Bt as SVGTitleElement,Vt as SVGUseElement,Ht as SVGViewElement,or as Screen,yr as Selection,qa as ShadowRoot,Tr as StaticRange,ar as Storage,Ds as StorageEvent,Ni as StyleSheet,Pi as StyleSheetList,Os as SubmitEvent,ro as Text,zs as TextEvent,nn as TimeRanges,ks as ToggleEvent,Bs as Touch,Vs as TouchEvent,Hs as TouchList,As as TransitionEvent,Sr as TreeWalker,Us as UIEvent,ea as ValidityState,sr as VisualViewport,Ws as WheelEvent,tr as Window,_r as XMLDocument,j as XMLHttpRequest,M as XMLHttpRequestEventTarget,N as XMLHttpRequestUpload,mr as XMLSerializer,nr as createWindow,ds as currentDocument,fs as currentWindow,ps as currentWindowOrNull,Lr as getComputedStyle,P as installGlobals,ms as setCurrentWindow}from"./_chunks/src-BHNEJboS.js";
@@ -1 +1 @@
1
- import{$ as e,$c as t,$d as n,$i as r,$l as i,$n as a,$o as o,$r as s,$s as c,$u as ee,Aa as te,Ac as ne,Ad as l,Af as re,Al as ie,Ao as ae,Ar as oe,Au as se,Ba as ce,Bc as le,Bd as ue,Bf as de,Bi as fe,Bl as pe,Bo as me,Br as he,Bu as ge,C as _e,Ca as ve,Cc as ye,Cd as be,Cf as xe,Cl as Se,Co as Ce,Cu as we,Da as Te,Dc as Ee,Dd as u,Df as De,Dl as Oe,Do as ke,Dr as Ae,Du as je,Ec as Me,Ed as Ne,Ef as Pe,El as d,Eo as f,Er as p,Eu as m,Fc as h,Fd as g,Ff as _,Fi as v,Fl as y,Fo as Fe,Fr as Ie,Fu as Le,Gc as Re,Gd as ze,Gi as Be,Gl as Ve,Go as He,Gr as Ue,Gs as We,Gu as Ge,Hc as Ke,Hd as qe,Hf as Je,Hi as Ye,Hl as Xe,Ho as Ze,Hr as Qe,Hu as $e,I as et,Ic as tt,Id as nt,If as rt,Ii as it,Il as at,Ir as ot,Iu as st,Ja as ct,Jc as b,Jd as x,Ji as lt,Jl as ut,Jo as dt,Jr as ft,Js as pt,Ju as mt,Kc as S,Kd as ht,Ki as gt,Kl as _t,Ko as vt,Kr as yt,Ku as C,Lc as bt,Ld as xt,Lf as St,Li as Ct,Ll as wt,Lo as Tt,Lr as Et,Lu as Dt,Mc as Ot,Md as kt,Mf as At,Ml as jt,Mo as Mt,Mr as Nt,Mu as Pt,Nc as Ft,Nd as It,Nf as Lt,Nl as Rt,No as zt,Nr as Bt,Nu as Vt,Oa as Ht,Oc as Ut,Od as Wt,Of as Gt,Ol as Kt,Oo as qt,Ou as w,Pc as Jt,Pd as Yt,Pf as Xt,Pl as Zt,Po as Qt,Pr as $t,Pu as en,Qc as tn,Qd as nn,Qi as rn,Ql as an,Qn as on,Qo as sn,Qr as cn,Qs as ln,Qu as un,Ra as dn,Rc as fn,Rd as pn,Rf as mn,Ri as hn,Rl as gn,Ro as _n,Rr as vn,Ru as yn,S as bn,Sa as xn,Sc as Sn,Sd as Cn,Sf as wn,Sl as Tn,So as En,Su as Dn,Ta as On,Tc as kn,Td as An,Tf as jn,Tl as Mn,To as Nn,Tu as Pn,Ua as Fn,Uc as In,Ud as Ln,Uf as Rn,Ui as zn,Ul as Bn,Uo as Vn,Ur as Hn,Uu as Un,Va as Wn,Vc as Gn,Vd as Kn,Vf as qn,Vi as Jn,Vl as Yn,Vo as Xn,Vr as Zn,Vu as Qn,Wc as $n,Wd as er,Wf as tr,Wi as nr,Wl as rr,Wo as ir,Wr as ar,Ws as or,Wu as sr,Xa as cr,Xc as lr,Xd as ur,Xi as dr,Xl as fr,Xo as pr,Xr as mr,Xs as hr,Xu as gr,Y as _r,Ya as vr,Yc as yr,Yd as br,Yl as xr,Yo as Sr,Yr as Cr,Ys as wr,Yu as T,Zc as Tr,Zd as Er,Zi as Dr,Zl as Or,Zo as kr,Zr as Ar,Zs as jr,Zu as Mr,_ as Nr,_a as E,_c as Pr,_d as Fr,_f as Ir,_l as Lr,_o as Rr,_u as zr,a as Br,aa as Vr,ac as Hr,ad as Ur,af as Wr,ai as Gr,al as Kr,ao as qr,as as Jr,au as Yr,b as Xr,bc as Zr,bd as Qr,bf as $r,bl as ei,bo as ti,bu as ni,c as ri,ca as ii,cc as ai,cd as oi,cf as si,ci,cl as li,co as ui,cs as di,cu as fi,d as pi,da as D,dc as mi,dd as hi,df as gi,dl as _i,du as vi,ec as yi,ed as bi,ef as xi,ei as Si,el as Ci,er as wi,es as Ti,eu as Ei,f as Di,fa as Oi,fc as ki,fd as Ai,ff as ji,fl as Mi,fo as Ni,fu as Pi,g as Fi,ga as Ii,gc as Li,gd as Ri,gf as zi,gl as Bi,go as Vi,gu as Hi,h as Ui,ha as Wi,hc as Gi,hd as Ki,hf as qi,hl as Ji,ho as Yi,hu as Xi,i as Zi,ia as Qi,ic as $i,id as ea,if as ta,ii as na,il as ra,io as ia,ir as aa,is as oa,iu as sa,jc as ca,jd as O,jf as la,jl as k,jo as ua,jr as da,ju as fa,ka as pa,kc as ma,kd as ha,kf as ga,kl as _a,ko as va,kr as ya,ku as ba,l as xa,la as Sa,lc as Ca,ld as wa,lf as Ta,ll as Ea,lo as Da,ls as Oa,lu as ka,m as A,ma as j,mc as Aa,md as ja,mf as Ma,ml as Na,mo as Pa,mu as Fa,n as Ia,nc as M,nd as La,nf as Ra,ni as za,nl as Ba,nu as Va,o as Ha,oa as Ua,oc as Wa,od as Ga,of as Ka,ol as qa,oo as Ja,os as Ya,ou as Xa,p as Za,pa as Qa,pc as $a,pd as eo,pf as to,pl as no,po as ro,pu as io,qc as ao,qd as N,qi as oo,ql as so,qo as co,qr as lo,qs as uo,qu as P,r as fo,rc as po,rd as mo,rf as ho,ri as go,rl as _o,rr as F,rs as vo,ru as yo,s as bo,sa as xo,sc as So,sd as Co,sf as wo,si as To,sl as I,so as Eo,ss as Do,su as Oo,tc as ko,td as Ao,tf as jo,ti as Mo,tl as No,tr as L,ts as Po,tt as R,tu as Fo,u as Io,ua as Lo,uc as Ro,ud as zo,uf as Bo,ui as Vo,ul as Ho,uo as Uo,uu as Wo,v as Go,va as z,vc as Ko,vd as qo,vf as Jo,vl as Yo,vo as Xo,vr as Zo,vu as Qo,wa as $o,wc as es,wd as ts,wf as ns,wl as rs,wo as is,wu as as,x as os,xa as ss,xc as cs,xd as B,xf as ls,xl as us,xo as V,xu as ds,y as fs,ya as H,yc as ps,yd as ms,yf as hs,yl as gs,yo as _s,yu as vs,za as ys,zc as bs,zd as xs,zf as Ss,zi as Cs,zl as ws,zo as Ts,zr as Es,zu as Ds}from"./_chunks/src-BlQ27FdQ.js";import{constants as Os,createContext as ks,runInContext as As}from"node:vm";import*as U from"node:diagnostics_channel";let W=null;function targets(){let e=/* @__PURE__ */ new Set,t=F();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 G=null;function captureInterfaceBaseline(){if(W===null){W=[],G=/* @__PURE__ */ new WeakSet;for(let e of targets())W.push(snapshot(e)),G.add(e);ownObjectCreateMaps()}}let js=null;function ownObjectCreateMaps(){if(W===null)return;let e=js??=As(`(prototypes) => prototypes.map((p) => Object.create(p))`,ks(Os.DONT_CONTEXTIFY)),t=[Object.prototype];for(let e=0;e<W.length;e++){let n=W[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=G;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(W===null)return 0;let e=0;for(let t=0;t<W.length;t++){let n=W[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 K=`ctrl-dom:span`,q=typeof U.tracingChannel==`function`?U.tracingChannel(K):null;function spanChannel(){return q}function tracing(){return q!==null&&q.hasSubscribers}function traceSync(e,t,n){let r={op:e,description:t,data:{},async:!1},i=N();return q.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=N();return q.tracePromise(e=>n(e).finally(()=>recordSkipped(e,i)),r,void 0,r)}function recordSkipped(e,t){let n=N()-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[k]!==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 J=null;function setNodeDescriber(e){J=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(J!==null)try{let t=J(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 Y=`sentry-tests:failure`;let X=null;function setFailureSnapshot(e){X=e}function subscribeTestFailures(e){let t=U.channel(Y),onFailure=t=>{let n=t,r=e();if(r==null||n.document!==r)return;let i=x();if(i!==null&&(n.contexts.clock={skipped_ms:Math.round(i.skippedMs),pending_timers:i.pendingTimers}),X!==null&&r.body!=null)try{n.attachments.push({filename:`accessibility-snapshot.txt`,contentType:`text/plain`,data:X(r.body)})}catch{}};return t.subscribe(onFailure),()=>t.unsubscribe(onFailure)}function implOf(e){return e[k]??e}function isTypingType(e){return E(e)||e===12||e>=7&&e<=11}function isEditable(e){let t=implOf(e);return t.tag===V.input?isTypingType(j(t))&&A(t):t.tag===V.textarea?A(t):$t(t)}function supportsSelection(e){let t=implOf(e);return t.tag===V.textarea||t.tag===V.input&&z(j(t))}function hasUIValue(e){let t=implOf(e);return t.tag===V.textarea||t.tag===V.input&&H(j(t))===0}function getUIValue(e){let t=implOf(e);if(t.tag===V.input){let e=t.node;return e[B]??e.value}return t.tag===V.textarea?t.node.value:``}function setUIValue(t,n){let r=implOf(t);if(r.tag===V.input){let t=r.node,i=j(r);if(H(i)!==0)return;let a=e(i,n,r);r.doc[O]++,t[l]=a,t[b]=!0,t[u]=!0,t[B]=a===n?null:n,t[M]=a===``&&n!==``&&i!==5&&!E(i);let o=n.length;t[T]>o&&(t[T]=o),t[P]>o&&(t[P]=o)}else if(r.tag===V.textarea){let e=r.node;r.doc[O]++,e[w]=n,e[b]=!0,e[u]=!0}}function clearUIValue(e){let t=implOf(e);if(t.tag===V.input){let e=t.node;e[B]=null,e[M]=!1}}function getUISelection(e){let t=implOf(e).node,n=getUIValue(e).length;return{start:Math.min(t[T],n),end:Math.min(t[P],n),direction:t[C]}}function setUISelection(e,t,n=t,r=`none`){let i=implOf(e);if(i.tag!==V.input&&i.tag!==V.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[T]=s,a[P]=c,a[C]=r}function setFilesFromUI(e,t){let n=implOf(e);n.tag===V.input&&j(n)===17&&(n.doc[O]++,n.node[I]=R(t))}function setOptionSelectedFromUI(e,t){let n=implOf(e);if(n.tag!==V.option)return;let r=n.node;r._setSelectedness(t),r[S]=!0;let i=_r(n);if(i!==null){let e=i.node;t&&e._deselectOthers(n),e._updateSelectedContent()}}function setCheckedFromUI(e,t){let n=implOf(e);n.tag===V.input&&n.node._setCheckedness(t,!0)}const Ms=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===Ms||typeof n!=`function`||et.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{wr as $_proto__,hr as $aboutBase,jr as $active,ln as $assocGen,c as $attr,yi as $attributes,ko as $availableToElementInternals,M as $badInput,po as $baseFor,$i as $baseOverride,Hr as $baseURL,Wa as $baseVersion,So as $block,ai as $byCtor,Ca as $byName,Ro as $cache,mi as $callback,ki as $checked,$a as $checkedSet,Aa as $childNodes,Gi as $childWindows,Li as $children,Pr as $classList,Ko as $clipboard,ps as $clonable,Zr as $closed,cs as $coll,Sn as $compiled,ye as $compiledFor,es as $condition,kn as $constructed,Me as $constructingEntryList,Ee as $contentType,Ut as $controlsCache,ma as $controlsDoc,ne as $controlsVersion,ca as $cookieJar,Ot as $cookies,Ft as $css,Jt as $current,h as $customElements,tt as $customValidity,bt as $cx,fn as $data,bs as $dataset,le as $declarative,Gn as $defaultNamespace,Ke as $defaultValueOverride,In as $delegatesFocus,$n as $derived,Re as $devicePixelRatio,S as $dirtiness,ao as $dirtyChecked,b as $dirtyValue,yr as $disabled,lr as $disallowModification,Tr as $doc,tn as $dropEffect,t as $ec,Ci as $effectAllowed,No as $el,Ba as $elements,_o as $entries,ra as $eo,Kr as $error,qa as $file,I as $files,li as $fill,Ea as $filter,Ho as $firingSubmissionEvents,_i as $focused,Mi as $form,no as $forms,Na as $frameCallbacks,Ji as $frameElement,Bi as $frameId,Lr as $frameTask,Yo as $frameTime,gs as $generation,ei as $globalObject,us as $hasTransients,Tn as $height,Se as $history,rs as $home,Mn as $host,d as $href,Oe as $id,Kt as $idleCallbacks,_a as $idleId,ie as $ids,k as $impl,jt as $implementation,Rt as $indeterminate,Zt as $index,y as $indexed,at as $inflight,wt as $info,gn as $innerHeight,ws as $innerWidth,pe as $is2D,Yn as $isHTML,Xe as $items,Bn as $keyText,rr as $kind,Ve as $labels,_t as $layerName,so as $list,ut as $listeners,xr as $localStorage,fr as $location,Or as $lockedForReset,an as $m,i as $matches,Ei as $media,Fo as $mediaQueryLists,Va as $mode,yo as $name,sa as $names,Yr as $namespaces,Xa as $navigator,Oo as $nodes,fi as $onchange,ka as $options,Wo as $owner,vi as $ownerNode,Pi as $ownerRule,io as $parent,Fa as $parentRule,Xi as $parentWindow,Hi as $pastNames,zr as $pointerBeforeReference,Qo as $preApplied,vs as $preChecked,ni as $preCheckedRadio,ds as $preIndeterminate,Dn as $prefix,we as $prelude,as as $presentationStyle,Pn as $pseudo,m as $queries,je as $ranges,w as $rawValue,ba as $readonly,se as $readyState,fa as $rebuildVersion,Pt as $record,Vt as $records,en as $rects,Le as $reference,st as $result,Dt as $root,yn as $rules,Ds as $running,ge as $runningFrame,Qn as $sc,$e as $screen,Un as $scrollRestoration,sr as $scrollX,Ge as $scrollY,C as $selDir,P as $selEnd,mt as $selSet,T as $selStart,gr as $selectedOptions,Mr as $selectedness,un as $selection,ee as $selector,bi as $serializable,Ao as $sessionStorage,La as $settled,mo as $shadowRoot,ea as $shed,Ur as $sheet,Ga as $sheets,Co as $slotAssignment,oi as $so,wa as $states,zo as $style,hi as $styleVersion,Ai as $supportsText,eo as $systemId,ja as $target,Ki as $targets,Ri as $tasks,Fr as $timers,qo as $title,ms as $type,Qr as $types,B as $uiValue,Cn as $updating,be as $updatingSelectedContent,ts as $uri,An as $url,Ne as $userActivation,u as $userEdited,Wt as $userValidity,ha as $validity,l as $value,O as $version,kt as $visualViewport,It as $w,Yt as $whatToShow,g as $whenDefined,nt as $width,xt as $window,pn as $writeBuffer,xs as $x,ue as $xhr,Kn as $y,qe as $z,Ra as ATTRIBUTE_NODE,Ti as AttrRecord,ho as CDATA_SECTION_NODE,ta as COMMENT_NODE,Ye as COMPAT,zn as COMPAT_PROFILES,nr as DEFAULT_COMPAT,Wr as DOCUMENT_FRAGMENT_NODE,Ka as DOCUMENT_NODE,wo as DOCUMENT_POSITION_CONTAINED_BY,si as DOCUMENT_POSITION_CONTAINS,Ta as DOCUMENT_POSITION_DISCONNECTED,Bo as DOCUMENT_POSITION_FOLLOWING,gi as DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC,ji as DOCUMENT_POSITION_PRECEDING,to as DOCUMENT_TYPE_NODE,dr as DeclBlock,Ma as ELEMENT_NODE,qi as ENTITY_NODE,zi as ENTITY_REFERENCE_NODE,uo as EventState,Y as FAILURE_CHANNEL,Ir as F_ADOPT_HOOK,Jo as F_ARIA_ATTRS,hs as F_ATTR_HOOK,$r as F_CE_CUSTOM,ls as F_CHILDREN_HOOK,wn as F_CHILD_LIST,xe as F_CONNECTED,ns as F_CONNECT_HOOK,jn as F_CONTENTEDITABLE_ATTR,Pe as F_CUSTOM,De as F_DATA_ATTRS,Gt as F_FACE,ga as F_HAS_SHADOW,re as F_HAS_STYLE_ATTR,la as F_HTML,At as F_INERT_ATTR,Lt as F_MO_REGISTERED,Xt as F_SHADOW_ROOT,_ as F_TABINDEX_ATTR,ss as GLOBAL_EVENT_HANDLER_EVENTS,ia as HTMLCollection,rt as HTML_NS,Qa as INPUT_TYPE_NAMES,St as MATHML_NS,mn as NOTATION_NODE,Ct as NodeCache,Po as NodeImpl,Tt as NodeList,Ss as PROCESSING_INSTRUCTION_NODE,K as SPAN_CHANNEL,de as SVG_NS,V as T,qn as TEXT_NODE,Ln as VirtualClock,er as VirtualTimeout,xn as WINDOW_EVENT_HANDLER_EVENTS,Je as XLINK_NS,Rn as XMLNS_NS,tr as XML_NS,cn as adoptedStyleSheetsOf,is as ariaAttr,Nn as asciiLowercase,Yi as assignManually,Vi as assignedElements,Rr as assignedNodes,Xo as assignedSlot,Te as attachShadowRoot,f as attr,on as attrAssociatedElement,a as attrAssociatedElements,Fn as attrNode,ze as canSkipZeroDelayWait,captureInterfaceBaseline,Ze as childAt,ke as classTokens,clearUIValue,ht as clockNow,x as clockStats,Eo as closest,p as compareBoundaryPoints,Be as compatExposes,vn as computedDisplay,Es as computedValue,he as computedVisibility,ya as constructEntryList,Ia as controlValue,Zo as createEvent,R as createFileList,s as createLinkSheet,Zn as currentStyleVersion,oe as defaultButton,gt as deferredCompatMembers,me as derivedCache,describeCall,describeNode,vo as dispatch,Cs as dispatchTrusted,qr as ensureCollectionIndexGetters,_n as ensureIndexGetters,To as evaluateMediaQueryList,rn as faceState,_s as findFlattenedSlottables,ti as findSlot,fe as fireAnEvent,Jn as fireSyntheticPointerEvent,Vn as firstElementChild,br as foreignImmediatesPending,Vr as formOwner,qt as getAttribute,Et as getComputedStyle,getComputedStyleOverride,oa as getCurrentEvent,Ht as getElementsByClassName,pa as getElementsByTagName,te as getElementsByTagNameNS,ve as getEventHandler,getUISelection,getUIValue,guardInterfaceDefinitions,va as hasAttr,Qe as hasAuthorStyles,wi as hasExplicitAttrElements,or as hasListeners,fo as hasReadonlyAttribute,hasUIValue,oo as hiddenGlobals,da as implicitSubmission,Ts as indexGetterTable,ir as indexOf,Zi as inputChecked,Br as inputIndeterminate,j as inputType,Wi as inputTypeFromAttr,Ni as inspectNode,ur as installClock,$o as installEventHandlers,Ua as isActuallyDisabled,ae as isAsciiWhitespace,Ha as isAutofilled,bo as isChecked,Er as isClockTimer,ri as isDefault,xa as isDisabled,Hn as isDisplayNone,ar as isDisplayNoneInclusive,isEditable as isEditableControl,Io as isEnabled,r as isFACE,pi as isInRange,He as isInclusiveAncestor,Di as isIndeterminate,Za as isInvalid,xo as isLabelable,ii as isListed,A as isMutable,Ii as isNumericType,Ui as isOptional,Fi as isOutOfRange,Nr as isPlaceholderShown,Go as isReadOnly,fs as isReadWrite,Xr as isRequired,Sa as isResettable,Nt as isSubmitButton,Lo as isSubmittable,os as isTextControl,E as isTextualType,bn as isValid,dn as isValidDoctypeName,ys as isValidElementLocalName,ce as isValidNamespacePrefix,Ue as isVisibilityHidden,D as labeledControl,Oi as labelsFor,vt as lastElementChild,Qi as listOfOptions,v as matchMediaText,ui as matches,ci as mediaEnvironment,co as nextElementInTree,dt as nextElementSibling,Sr as nextInTree,pr as nextSkippingChildren,hn as nodeCache,Jr as nodeGetTheParent,Ae as nodeLength,Fe as notifyMutationObservers,_e as optionSelected,Dr as parseDeclBlock,cr as parseFragment,it as parseMediaQueryList,Xn as peekDerivedCache,yt as pointerEvents,lo as pointerEventsNone,ua as prefixFlag,kr as previousElementSibling,sn as previousInTree,ft as pseudoContent,Da as querySelector,Uo as querySelectorAll,quote,Mo as registerOwnerSheet,We as removeAllEventListeners,Mt as removeAttribute,za as removeOwnerSheet,ro as replaceData,di as reportException,lt as resolveCompat,restoreInterfaces,Ya as retarget,ct as serializeChildren,vr as serializeNode,go as setAdoptedStyleSheets,Do as setAssignedSlotLookup,zt as setAttribute,setCheckedFromUI,Cr as setComputedColorMode,On as setEventHandler,setFailureSnapshot,setFilesFromUI,setNodeDescriber,Bt as setNotImplementedHandler,setOptionSelectedFromUI,pt as setTrusted,setUISelection,setUIValue,Oa as setUncaughtExceptionHandler,nn as skipIdleTime,n as skipZeroDelayWait,spanChannel,Qt as splitOnAsciiWhitespace,Pa as splitText,Ie as styleElementRemoved,Si as styleElementSheet,ot as styleElementUpdated,na as styleSheetsOf,mr as styledDisplay,subscribeTestFailures,supportsSelection,z as supportsSelectionType,En as tagId,Ce as tagName,tracePromise,traceSync,tracing,aa as trackGlobalTimers,o as treeRoot,Ar as uaDisplay,Gr as unregisterOwnerSheet,Wn as validateAndExtract,H as valueMode,xi as virtualDate,jo as virtualPerformance,Vo as windowHooks,F as windowInterfaces,Ja as withNamedProperties};
1
+ import{$ as e,$c as t,$d as n,$i as r,$l as i,$n as a,$o as o,$r as s,$s as c,$u as ee,Aa as te,Ac as ne,Ad as re,Af as ie,Al as ae,Ao as oe,Ar as se,Au as l,Ba as ce,Bc as le,Bd as ue,Bf as de,Bi as fe,Bl as pe,Bo as me,Br as he,Bu as ge,C as _e,Ca as ve,Cc as ye,Cd as u,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,Dr as Ae,Du as je,Ec as Me,Ed as Ne,Ef as Pe,El as d,Eo as f,Er as p,Eu as m,Fc as h,Fd as g,Ff as _,Fi as v,Fl as y,Fo as Fe,Fr as Ie,Fu as Le,Gc as Re,Gd as ze,Gf as Be,Gi as Ve,Gl as He,Go as Ue,Gr as We,Gs as Ge,Gu as Ke,Hc as qe,Hd as Je,Hf as Ye,Hi as Xe,Hl as Ze,Ho as Qe,Hr as $e,Hu as et,I as tt,Ic as nt,Id as rt,If as it,Ii as at,Il as ot,Ir as st,Iu as ct,Ja as lt,Jc as ut,Jd as dt,Ji as ft,Jl as pt,Jo as mt,Jr as ht,Js as gt,Ju as b,Kc as _t,Kd as vt,Kf as yt,Ki as bt,Kl as xt,Ko as St,Kr as Ct,Ks as wt,Ku as Tt,Lc as Et,Ld as Dt,Lf as Ot,Li as kt,Ll as At,Lo as jt,Lr as Mt,Lu as Nt,Mc as Pt,Md as x,Mf as Ft,Ml as It,Mo as Lt,Mr as Rt,Mu as zt,Nc as Bt,Nd as S,Nf as Vt,Nl as C,No as Ht,Nr as Ut,Nu as Wt,Oa as Gt,Oc as Kt,Od as qt,Of as Jt,Ol as Yt,Oo as Xt,Ou as Zt,Pc as Qt,Pd as $t,Pf as en,Pl as tn,Po as nn,Pr as rn,Pu as an,Qc as on,Qd as sn,Qi as cn,Ql as ln,Qn as un,Qo as dn,Qr as fn,Qs as pn,Qu as mn,Ra as hn,Rc as gn,Rd as _n,Rf as vn,Ri as yn,Rl as bn,Ro as xn,Rr as Sn,Ru as Cn,S as wn,Sa as Tn,Sc as En,Sd as Dn,Sf as On,Sl as kn,So as An,Su as jn,Ta as Mn,Tc as Nn,Td as Pn,Tf as Fn,Tl as In,To as Ln,Tu as Rn,Ua as zn,Uc as Bn,Ud as Vn,Uf as Hn,Ui as Un,Ul as Wn,Uo as Gn,Ur as Kn,Uu as qn,Va as Jn,Vc as Yn,Vd as Xn,Vf as Zn,Vi as Qn,Vl as $n,Vo as er,Vr as tr,Vu as nr,Wc as rr,Wd as ir,Wf as ar,Wi as or,Wl as sr,Wo as cr,Wr as lr,Wu as ur,Xa as dr,Xc as fr,Xd as w,Xi as pr,Xl as mr,Xo as hr,Xr as gr,Xs as _r,Xu as vr,Y as yr,Ya as br,Yc as T,Yd as E,Yl as xr,Yo as Sr,Yr as Cr,Ys as wr,Yu as D,Zc as Tr,Zd as Er,Zi as Dr,Zl as Or,Zo as kr,Zr as Ar,Zs as jr,Zu as O,_ as Mr,_a as k,_c as Nr,_d as Pr,_f as Fr,_l as Ir,_o as Lr,_u as Rr,a as zr,aa as Br,ac as Vr,ad as Hr,af as Ur,ai as Wr,al as Gr,ao as Kr,as as qr,au as Jr,b as Yr,bc as Xr,bd as Zr,bf as Qr,bl as $r,bo as ei,bu as ti,c as ni,ca as ri,cc as ii,cd as ai,cf as oi,ci as si,cl as A,co as ci,cs as li,cu as ui,d as di,da as fi,dc as pi,dd as j,df as mi,dl as hi,du as gi,ec as _i,ed as vi,ef as yi,ei as bi,el as xi,er as Si,es as Ci,eu as wi,f as Ti,fa as Ei,fc as Di,fd as Oi,ff as ki,fl as Ai,fo as ji,fu as Mi,g as Ni,ga as Pi,gc as Fi,gd as Ii,gf as Li,gl as Ri,go as zi,gu as Bi,h as Vi,ha as Hi,hc as Ui,hd as Wi,hf as Gi,hl as Ki,ho as qi,hu as Ji,i as Yi,ia as Xi,ic as Zi,id as Qi,if as $i,ii as ea,il as ta,io as na,ir as ra,is as ia,iu as aa,jc as oa,jd as sa,jf as ca,jl as la,jo as ua,jr as da,ju as fa,ka as pa,kc as ma,kd as M,kf as ha,kl as ga,ko as _a,kr as va,ku as ya,l as ba,la as xa,lc as Sa,ld as Ca,lf as wa,ll as Ta,lo as Ea,ls as Da,lu as Oa,m as N,ma as P,mc as ka,md as Aa,mf as ja,ml as Ma,mo as Na,mu as Pa,n as Fa,nc as Ia,nd as La,nf as Ra,ni as za,nl as Ba,ns as Va,nu as Ha,o as Ua,oa as Wa,oc as Ga,od as Ka,of as qa,ol as Ja,oo as Ya,os as Xa,ou as Za,p as Qa,pa as $a,pc as eo,pd as to,pf as no,pl as ro,po as io,pu as ao,qc as F,qd as oo,qi as so,ql as co,qo as lo,qr as uo,qu as fo,r as po,rc as I,rd as mo,rf as ho,ri as go,rl as _o,rr as L,ru as vo,s as yo,sa as bo,sc as xo,sd as So,sf as Co,si as wo,sl as To,so as Eo,ss as Do,su as Oo,tc as ko,td as Ao,tf as jo,ti as Mo,tl as No,tr as R,ts as Po,tt as z,tu as Fo,u as Io,ua as Lo,uc as Ro,ud as zo,uf as Bo,ui as Vo,ul as Ho,uo as Uo,us as Wo,uu as Go,v as Ko,va as B,vc as qo,vd as Jo,vf as Yo,vl as Xo,vo as Zo,vr as Qo,vu as $o,wa as es,wc as ts,wd as ns,wf as rs,wl as is,wo as as,wu as os,x as ss,xa as cs,xc as ls,xd as us,xf as ds,xl as fs,xo as V,xu as ps,y as ms,ya as H,yc as hs,yd as gs,yf as _s,yl as vs,yo as ys,yu as bs,za as xs,zc as Ss,zd as Cs,zf as ws,zi as Ts,zl as Es,zo as Ds,zr as Os,zu as ks}from"./_chunks/src-BHNEJboS.js";import{constants as As,createContext as js,runInContext as Ms}from"node:vm";import*as U from"node:diagnostics_channel";let W=null;function targets(){let e=/* @__PURE__ */ new Set,t=L();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(R.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 G=null;function captureInterfaceBaseline(){if(W===null){W=[],G=/* @__PURE__ */ new WeakSet;for(let e of targets())W.push(snapshot(e)),G.add(e);ownObjectCreateMaps()}}let Ns=null;function ownObjectCreateMaps(){if(W===null)return;let e=Ns??=Ms(`(prototypes) => prototypes.map((p) => Object.create(p))`,js(As.DONT_CONTEXTIFY)),t=[Object.prototype];for(let e=0;e<W.length;e++){let n=W[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=G;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(W===null)return 0;let e=0;for(let t=0;t<W.length;t++){let n=W[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 K=`ctrl-dom:span`,q=typeof U.tracingChannel==`function`?U.tracingChannel(K):null;function spanChannel(){return q}function tracing(){return q!==null&&q.hasSubscribers}function traceSync(e,t,n){let r={op:e,description:t,data:{},async:!1},i=E();return q.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 q.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[C]!==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 J=null;function setNodeDescriber(e){J=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(J!==null)try{let t=J(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 Y=`sentry-tests:failure`;let X=null;function setFailureSnapshot(e){X=e}function subscribeTestFailures(e){let t=U.channel(Y),onFailure=t=>{let n=t,r=e();if(r==null||n.document!==r)return;let i=w();if(i!==null&&(n.contexts.clock={skipped_ms:Math.round(i.skippedMs),pending_timers:i.pendingTimers}),X!==null&&r.body!=null)try{n.attachments.push({filename:`accessibility-snapshot.txt`,contentType:`text/plain`,data:X(r.body)})}catch{}};return t.subscribe(onFailure),()=>t.unsubscribe(onFailure)}function implOf(e){return e[C]??e}function isTypingType(e){return k(e)||e===12||e>=7&&e<=11}function isEditable(e){let t=implOf(e);return t.tag===V.input?isTypingType(P(t))&&N(t):t.tag===V.textarea?N(t):rn(t)}function supportsSelection(e){let t=implOf(e);return t.tag===V.textarea||t.tag===V.input&&B(P(t))}function hasUIValue(e){let t=implOf(e);return t.tag===V.textarea||t.tag===V.input&&H(P(t))===0}function getUIValue(e){let t=implOf(e);if(t.tag===V.input){let e=t.node;return e[u]??e.value}return t.tag===V.textarea?t.node.value:``}function setUIValue(t,n){let r=implOf(t);if(r.tag===V.input){let t=r.node,i=P(r);if(H(i)!==0)return;let a=e(i,n,r);r.doc[S]++,t[x]=a,t[T]=!0,t[M]=!0,t[u]=a===n?null:n,t[I]=a===``&&n!==``&&i!==5&&!k(i);let o=n.length;t[O]>o&&(t[O]=o),t[D]>o&&(t[D]=o)}else if(r.tag===V.textarea){let e=r.node;r.doc[S]++,e[l]=n,e[T]=!0,e[M]=!0}}function clearUIValue(e){let t=implOf(e);if(t.tag===V.input){let e=t.node;e[u]=null,e[I]=!1}}function getUISelection(e){let t=implOf(e).node,n=getUIValue(e).length;return{start:Math.min(t[O],n),end:Math.min(t[D],n),direction:t[b]}}function setUISelection(e,t,n=t,r=`none`){let i=implOf(e);if(i.tag!==V.input&&i.tag!==V.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[O]=s,a[D]=c,a[b]=r}function setFilesFromUI(e,t){let n=implOf(e);n.tag===V.input&&P(n)===17&&(n.doc[S]++,n.node[A]=z(t))}function setOptionSelectedFromUI(e,t){let n=implOf(e);if(n.tag!==V.option)return;let r=n.node;r._setSelectedness(t),r[F]=!0;let i=yr(n);if(i!==null){let e=i.node;t&&e._deselectOthers(n),e._updateSelectedContent()}}function setCheckedFromUI(e,t){let n=implOf(e);n.tag===V.input&&n.node._setCheckedness(t,!0)}const Ps=R.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===Ps||typeof n!=`function`||tt.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{_r as $_proto__,jr as $aboutBase,pn as $active,c as $assocGen,_i as $attr,ko as $attributes,Ia as $availableToElementInternals,I as $badInput,Zi as $baseFor,Vr as $baseOverride,Ga as $baseURL,xo as $baseVersion,ii as $block,Sa as $byCtor,Ro as $byName,pi as $cache,Di as $callback,eo as $checked,ka as $checkedSet,Ui as $childNodes,Fi as $childWindows,Nr as $children,qo as $classList,hs as $clipboard,Xr as $clonable,ls as $closed,En as $coll,ye as $compiled,ts as $compiledFor,Nn as $condition,Me as $constructed,Te as $constructingEntryList,Kt as $contentType,ma as $controlsCache,ne as $controlsDoc,oa as $controlsVersion,Pt as $cookieJar,Bt as $cookies,Qt as $css,h as $current,nt as $customElements,Et as $customValidity,gn as $cx,Ss as $data,le as $dataset,Yn as $declarative,qe as $defaultNamespace,Bn as $defaultValueOverride,rr as $delegatesFocus,Re as $derived,_t as $devicePixelRatio,F as $dirtiness,ut as $dirtyChecked,T as $dirtyValue,fr as $disabled,Tr as $disallowModification,on as $doc,t as $dropEffect,xi as $ec,No as $effectAllowed,Ba as $el,_o as $elements,ta as $entries,Gr as $eo,Ja as $error,To as $file,A as $files,Ta as $fill,Ho as $filter,hi as $firingSubmissionEvents,Ai as $focused,ro as $forLabels,Ma as $form,Ki as $forms,Ri as $frameCallbacks,Ir as $frameElement,Xo as $frameId,vs as $frameTask,$r as $frameTime,fs as $generation,kn as $globalObject,xe as $hasTransients,is as $height,In as $history,d as $home,Oe as $host,Yt as $href,ga as $id,ae as $idleCallbacks,la as $idleId,It as $ids,C as $impl,tn as $implementation,y as $indeterminate,ot as $index,At as $indexed,bn as $inflight,Es as $info,pe as $innerHeight,$n as $innerWidth,Ze as $is2D,Wn as $isHTML,sr as $items,He as $keyText,xt as $kind,co as $labels,pt as $layerName,xr as $list,mr as $listeners,Or as $localStorage,ln as $location,i as $lockedForReset,wi as $m,Fo as $matches,Ha as $media,vo as $mediaQueryLists,aa as $mode,Jr as $name,Za as $names,Oo as $namespaces,ui as $navigator,Oa as $nodes,Go as $onchange,gi as $options,Mi as $owner,ao as $ownerNode,Pa as $ownerRule,Ji as $parent,Bi as $parentRule,Rr as $parentWindow,$o as $pastNames,bs as $pointerBeforeReference,ti as $preApplied,ps as $preChecked,jn as $preCheckedRadio,Ce as $preIndeterminate,os as $prefix,Rn as $prelude,m as $presentationStyle,je as $pseudo,Zt as $queries,ya as $ranges,l as $rawValue,fa as $readonly,zt as $readyState,Wt as $rebuildVersion,an as $record,Le as $records,ct as $rects,Nt as $reference,Cn as $result,ks as $root,ge as $rules,nr as $running,et as $runningFrame,qn as $sc,ur as $screen,Ke as $scrollRestoration,Tt as $scrollX,fo as $scrollY,b as $selDir,D as $selEnd,vr as $selSet,O as $selStart,mn as $selectedOptions,ee as $selectedness,vi as $selection,Ao as $selector,La as $serializable,mo as $sessionStorage,Qi as $settled,Hr as $shadowRoot,Ka as $shed,So as $sheet,ai as $sheets,Ca as $slotAssignment,zo as $so,j as $states,Oi as $style,to as $styleVersion,Aa as $supportsText,Wi as $systemId,Ii as $target,Pr as $targets,Jo as $tasks,gs as $timers,Zr as $title,us as $type,Dn as $types,u as $uiValue,ns as $updating,Pn as $updatingSelectedContent,Ne as $uri,Ee as $url,qt as $userActivation,M as $userEdited,re as $userValidity,sa as $validity,x as $value,S as $version,$t as $visualViewport,g as $w,rt as $whatToShow,Dt as $whenDefined,_n as $width,Cs as $window,ue as $writeBuffer,Xn as $x,Je as $xhr,Vn as $y,ir as $z,$i as ATTRIBUTE_NODE,Po as AttrRecord,Ur as CDATA_SECTION_NODE,qa as COMMENT_NODE,Xe as COMPAT,Un as COMPAT_PROFILES,or as DEFAULT_COMPAT,Co as DOCUMENT_FRAGMENT_NODE,oi as DOCUMENT_NODE,wa as DOCUMENT_POSITION_CONTAINED_BY,Bo as DOCUMENT_POSITION_CONTAINS,mi as DOCUMENT_POSITION_DISCONNECTED,ki as DOCUMENT_POSITION_FOLLOWING,no as DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC,ja as DOCUMENT_POSITION_PRECEDING,Gi as DOCUMENT_TYPE_NODE,pr as DeclBlock,Li as ELEMENT_NODE,Fr as ENTITY_NODE,Yo as ENTITY_REFERENCE_NODE,gt as EventState,Y as FAILURE_CHANNEL,_s as F_ADOPT_HOOK,Qr as F_ARIA_ATTRS,ds as F_ATTR_HOOK,On as F_CE_CUSTOM,be as F_CHILDREN_HOOK,rs as F_CHILD_LIST,Fn as F_CONNECTED,Pe as F_CONNECT_HOOK,De as F_CONTENTEDITABLE_ATTR,Jt as F_CUSTOM,ha as F_DATA_ATTRS,ie as F_FACE,ca as F_HAS_SHADOW,Ft as F_HAS_STYLE_ATTR,Vt as F_HTML,en as F_INERT_ATTR,_ as F_MO_REGISTERED,it as F_SHADOW_ROOT,Ot as F_TABINDEX_ATTR,cs as GLOBAL_EVENT_HANDLER_EVENTS,na as HTMLCollection,vn as HTML_NS,$a as INPUT_TYPE_NAMES,ws as MATHML_NS,de as NOTATION_NODE,kt as NodeCache,Va as NodeImpl,jt as NodeList,Zn as PROCESSING_INSTRUCTION_NODE,K as SPAN_CHANNEL,Ye as SVG_NS,V as T,Hn as TEXT_NODE,ze as VirtualClock,vt as VirtualTimeout,Tn as WINDOW_EVENT_HANDLER_EVENTS,ar as XLINK_NS,Be as XMLNS_NS,yt as XML_NS,fn as adoptedStyleSheetsOf,as as ariaAttr,Ln as asciiLowercase,qi as assignManually,zi as assignedElements,Lr as assignedNodes,Zo as assignedSlot,we as attachShadowRoot,f as attr,un as attrAssociatedElement,a as attrAssociatedElements,zn as attrNode,oo as canSkipZeroDelayWait,captureInterfaceBaseline,Qe as childAt,ke as classTokens,clearUIValue,dt as clockNow,w as clockStats,Eo as closest,p as compareBoundaryPoints,Gn as compareTreeOrder,Ve as compatExposes,Sn as computedDisplay,Os as computedValue,he as computedVisibility,va as constructEntryList,Fa as controlValue,Qo as createEvent,z as createFileList,s as createLinkSheet,tr as currentStyleVersion,se as defaultButton,bt as deferredCompatMembers,me as derivedCache,describeCall,describeNode,ia as dispatch,Ts as dispatchTrusted,Kr as ensureCollectionIndexGetters,xn as ensureIndexGetters,wo as evaluateMediaQueryList,cn as faceState,ys as findFlattenedSlottables,ei as findSlot,fe as fireAnEvent,Qn as fireSyntheticPointerEvent,cr as firstElementChild,Er as foreignImmediatesPending,Br as formOwner,Xt as getAttribute,Mt as getComputedStyle,getComputedStyleOverride,qr as getCurrentEvent,Gt as getElementsByClassName,pa as getElementsByTagName,te as getElementsByTagNameNS,ve as getEventHandler,getUISelection,getUIValue,guardInterfaceDefinitions,_a as hasAttr,$e as hasAuthorStyles,Si as hasExplicitAttrElements,Ge as hasListeners,po as hasReadonlyAttribute,hasUIValue,so as hiddenGlobals,da as implicitSubmission,Ds as indexGetterTable,Ue as indexOf,Yi as inputChecked,zr as inputIndeterminate,P as inputType,Hi as inputTypeFromAttr,ji as inspectNode,sn as installClock,es as installEventHandlers,Wa as isActuallyDisabled,oe as isAsciiWhitespace,Ua as isAutofilled,yo as isChecked,n as isClockTimer,ni as isDefault,ba as isDisabled,Kn as isDisplayNone,lr as isDisplayNoneInclusive,isEditable as isEditableControl,Io as isEnabled,r as isFACE,di as isInRange,St as isInclusiveAncestor,Ti as isIndeterminate,Qa as isInvalid,bo as isLabelable,ri as isListed,N as isMutable,Pi as isNumericType,Vi as isOptional,Ni as isOutOfRange,Mr as isPlaceholderShown,Ko as isReadOnly,ms as isReadWrite,Yr as isRequired,xa as isResettable,Rt as isSubmitButton,Lo as isSubmittable,ss as isTextControl,k as isTextualType,wn as isValid,hn as isValidDoctypeName,xs as isValidElementLocalName,ce as isValidNamespacePrefix,We as isVisibilityHidden,fi as labeledControl,Ei as labelsFor,lo as lastElementChild,Xi as listOfOptions,v as matchMediaText,ci as matches,si as mediaEnvironment,mt as nextElementInTree,Sr as nextElementSibling,hr as nextInTree,kr as nextSkippingChildren,yn as nodeCache,Xa as nodeGetTheParent,Ae as nodeLength,Fe as notifyMutationObservers,_e as optionSelected,Dr as parseDeclBlock,dr as parseFragment,at as parseMediaQueryList,er as peekDerivedCache,Ct as pointerEvents,uo as pointerEventsNone,ua as prefixFlag,dn as previousElementSibling,o as previousInTree,ht as pseudoContent,Ea as querySelector,Uo as querySelectorAll,quote,Mo as registerOwnerSheet,wt as removeAllEventListeners,Lt as removeAttribute,za as removeOwnerSheet,io as replaceData,Da as reportException,ft as resolveCompat,restoreInterfaces,Do as retarget,lt as serializeChildren,br as serializeNode,go as setAdoptedStyleSheets,li as setAssignedSlotLookup,Ht as setAttribute,setCheckedFromUI,Cr as setComputedColorMode,Mn as setEventHandler,setFailureSnapshot,setFilesFromUI,setNodeDescriber,Ut as setNotImplementedHandler,setOptionSelectedFromUI,wr as setTrusted,setUISelection,setUIValue,Wo as setUncaughtExceptionHandler,yi as skipIdleTime,jo as skipZeroDelayWait,spanChannel,nn as splitOnAsciiWhitespace,Na as splitText,Ie as styleElementRemoved,bi as styleElementSheet,st as styleElementUpdated,ea as styleSheetsOf,gr as styledDisplay,subscribeTestFailures,supportsSelection,B as supportsSelectionType,An as tagId,Se as tagName,tracePromise,traceSync,tracing,ra as trackGlobalTimers,Ci as treeRoot,Ar as uaDisplay,Wr as unregisterOwnerSheet,Jn as validateAndExtract,H as valueMode,Ra as virtualDate,ho as virtualPerformance,Vo as windowHooks,L as windowInterfaces,Ya as withNamedProperties};
@@ -68,8 +68,6 @@ export declare function rootStylesFor(root: NodeImpl, create: boolean): RootStyl
68
68
  export declare function treeTop(n: NodeImpl): NodeImpl;
69
69
  /** Is `top` a tree root whose sheets apply (a document, or a shadow root)? */
70
70
  export declare function isStyleRoot(top: NodeImpl): boolean;
71
- /** Negative if a precedes b in tree order. */
72
- export declare function compareTreeOrder(a: NodeImpl, b: NodeImpl): number;
73
71
  /** Registers a new owner sheet (from a connected <style>/<link>) with its tree. */
74
72
  export declare function registerOwnerSheet(owner: NodeImpl, sheet: CSSStyleSheet): void;
75
73
  /** Removes an owner sheet (element disconnected, emptied or retyped). */
@@ -2,10 +2,16 @@ import { HTMLElement } from "../HTMLElement.js";
2
2
  import type { Element } from "../../nodes/Element.js";
3
3
  import type { NodeImpl } from "../../nodes/NodeImpl.js";
4
4
  import type { Event } from "../../events/Event.js";
5
+ import type { Document } from "../../nodes/Document.js";
5
6
  /** https://html.spec.whatwg.org/#interactive-content */
6
7
  export declare function isInteractiveContent(el: NodeImpl): boolean;
7
8
  export declare class HTMLLabelElement extends HTMLElement {
8
9
  htmlFor: string;
10
+ /** @internal Use Document.createElement. */
11
+ constructor(doc: Document, localName: string, ns: string | null, prefix: string | null);
12
+ _connectedSteps(): void;
13
+ _disconnectedSteps(): void;
14
+ _attributeChangedSteps(localName: string, oldValue: string | null, value: string | null, namespace: string | null): void;
9
15
  /** https://html.spec.whatwg.org/#dom-label-control */
10
16
  get control(): Element | null;
11
17
  /** https://html.spec.whatwg.org/#dom-label-form */
@@ -23,6 +23,13 @@ export declare function formOwner(el: NodeImpl): NodeImpl | null;
23
23
  export declare function parserAssociateForm(el: NodeImpl, form: NodeImpl): void;
24
24
  /** The element's ancestor chain changed (https://html.spec.whatwg.org/#reset-the-form-owner): drop the association. */
25
25
  export declare function clearParserAssociation(el: NodeImpl): void;
26
+ /**
27
+ * The subtree holding every element whose form owner is `form` (https://html.spec.whatwg.org/#form-owner).
28
+ * Outside its descendants only the parser's form element pointer or, for listed elements, a
29
+ * `form` attribute naming the form's ID associates an element with it, so without those the
30
+ * form's own subtree suffices: O(form) instead of a walk of the whole tree.
31
+ */
32
+ export declare function formOwnerScope(form: NodeImpl, listed: boolean): NodeImpl;
26
33
  /** All listed elements (excluding image buttons) whose form owner is `form`, in tree order: form.elements. */
27
34
  export declare function formControls(form: NodeImpl, out: NodeImpl[], includeImages: boolean): NodeImpl[];
28
35
  /** First legend element child of a fieldset. */
@@ -42,5 +49,9 @@ export declare function isActuallyDisabled(el: NodeImpl): boolean;
42
49
  export declare function hasDatalistAncestor(el: NodeImpl): boolean;
43
50
  /** https://html.spec.whatwg.org/#labeled-control */
44
51
  export declare function labeledControl(label: NodeImpl): NodeImpl | null;
52
+ /** HTMLLabelElement: a connected `label` has `for` attribute value `forValue` (Document[$forLabels]). */
53
+ export declare function addForLabel(label: NodeImpl, forValue: string): void;
54
+ /** HTMLLabelElement: `label` was disconnected, or its `for` attribute changed from `forValue`. */
55
+ export declare function removeForLabel(label: NodeImpl, forValue: string): void;
45
56
  /** Label elements whose labeled control is `el`, in tree order. https://html.spec.whatwg.org/#dom-lfe-labels */
46
57
  export declare function labelsFor(el: NodeImpl, out: NodeImpl[]): NodeImpl[];
@@ -5,7 +5,7 @@ import type { NodeImpl as NodeImplType } from "./nodes/NodeImpl.js";
5
5
  export { NodeCache, nodeCache } from "./nodes/cache.js";
6
6
  export { derivedCache, peekDerivedCache } from "./nodes/derived.js";
7
7
  export { T, tagId, tagName } from "./nodes/tags.js";
8
- export { nextInTree, nextSkippingChildren, previousInTree, nextElementInTree, firstElementChild, lastElementChild, nextElementSibling, previousElementSibling, treeRoot, isInclusiveAncestor, indexOf, childAt, } from "./nodes/traverse.js";
8
+ export { nextInTree, nextSkippingChildren, previousInTree, nextElementInTree, firstElementChild, lastElementChild, nextElementSibling, previousElementSibling, treeRoot, isInclusiveAncestor, indexOf, childAt, compareTreeOrder, } from "./nodes/traverse.js";
9
9
  export { attr, ariaAttr, prefixFlag, hasAttr, getAttribute, setAttribute, removeAttribute, classTokens, asciiLowercase, splitOnAsciiWhitespace, isAsciiWhitespace, } from "./nodes/attributes.js";
10
10
  export { matches, closest, querySelector, querySelectorAll } from "./selectors/index.js";
11
11
  export { serializeChildren, serializeNode } from "./serializer/index.js";
@@ -70,6 +70,7 @@ export declare const $filter: unique symbol;
70
70
  export declare const $firingSubmissionEvents: unique symbol;
71
71
  export declare const $focused: unique symbol;
72
72
  export declare const $form: unique symbol;
73
+ export declare const $forLabels: unique symbol;
73
74
  export declare const $forms: unique symbol;
74
75
  export declare const $frameCallbacks: unique symbol;
75
76
  export declare const $frameElement: unique symbol;
@@ -14,7 +14,7 @@ import type { Window } from "../window/Window.js";
14
14
  import type { NodeList } from "../collections/NodeList.js";
15
15
  import type { ElementCreationOptions } from "../webidl.js";
16
16
  import type { Event } from "../events/Event.js";
17
- import { $aboutBase, $baseFor, $baseOverride, $baseURL, $baseVersion, $contentType, $css, $derived, $doc, $focused, $forms, $ids, $implementation, $isHTML, $mode, $ranges, $selection, $styleVersion, $url, $version, $window, $writeBuffer } from "../keys.js";
17
+ import { $aboutBase, $baseFor, $baseOverride, $baseURL, $baseVersion, $contentType, $css, $derived, $doc, $focused, $forLabels, $forms, $ids, $implementation, $isHTML, $mode, $ranges, $selection, $styleVersion, $url, $version, $window, $writeBuffer } from "../keys.js";
18
18
  export declare class Document extends Node {
19
19
  /** Browsing context's window, or null for documents created via DOMImplementation / new Document(). */
20
20
  [$window]: Window | null;
@@ -40,11 +40,17 @@ export declare class Document extends Node {
40
40
  /** Live ranges whose boundary points are in this document (traversal/live.ts); null when none. */
41
41
  [$ranges]: WeakRef<object>[] | null;
42
42
  /**
43
- * Derived per-document caches (selector results, label index, ...) keyed by owner token; see
43
+ * Derived per-document caches (selector results, snapshot holders, ...) keyed by owner token; see
44
44
  * nodes/derived.ts. Dropped whenever a node is removed from a tree of this document, so caches
45
45
  * never keep removed subtrees alive.
46
46
  */
47
47
  [$derived]: Map<object, unknown> | null;
48
+ /**
49
+ * Connected <label> elements by `for` attribute value, each list in no particular order, or null
50
+ * before the first (html/forms/HTMLLabelElement.ts). Lets `element.labels` find the labels naming
51
+ * an ID without walking the tree.
52
+ */
53
+ [$forLabels]: Map<string, NodeImpl[]> | null;
48
54
  /** document.forms (named-properties proxy), created on first read. */
49
55
  [$forms]: HTMLCollection | null;
50
56
  /** https://html.spec.whatwg.org/#concept-document-about-base-url (about:blank / about:srcdoc documents of nested browsing contexts). */
@@ -111,6 +111,12 @@ export declare class Element extends Node {
111
111
  scrollTo(_x?: unknown, _y?: number): void;
112
112
  scrollBy(_x?: unknown, _y?: number): void;
113
113
  scrollIntoView(_arg?: unknown): void;
114
+ /**
115
+ * Activation behavior (events/activation.ts): none unless a subclass overrides it. Defined here
116
+ * so dispatch reading it on every click's path is a prototype hit, not (on a <form>) a named
117
+ * property lookup through the form's controls.
118
+ */
119
+ get _hasActivationBehavior(): boolean;
114
120
  /** Runs when this element becomes connected. Only called when F_CONNECT_HOOK is set. */
115
121
  _connectedSteps(): void;
116
122
  /** Runs when this element becomes disconnected. Only called when F_CONNECT_HOOK is set. */
@@ -19,3 +19,5 @@ export declare function isInclusiveAncestor(a: NodeImpl, b: NodeImpl): boolean;
19
19
  export declare function indexOf(n: NodeImpl): number;
20
20
  /** Child at `index`, walking from whichever end is closer. */
21
21
  export declare function childAt(parent: NodeImpl, index: number): NodeImpl | null;
22
+ /** Negative if a precedes b in tree order (https://dom.spec.whatwg.org/#concept-tree-order). */
23
+ export declare function compareTreeOrder(a: NodeImpl, b: NodeImpl): number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctrl/dom",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
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",
@@ -1,4 +0,0 @@
1
- import{$impl as e,$styleVersion as t,$version as n,$window as r,CDATA_SECTION_NODE as i,DOCUMENT_NODE as a,ELEMENT_NODE as o,HTML_NS as s,SVG_NS as c,T as l,TEXT_NODE as u,ariaAttr as d,attr as f,computedValue as p,computedVisibility as m,derivedCache as h,getComputedStyleOverride as g,nodeCache as _,pseudoContent as v,styledDisplay as y,tagId as b,treeRoot as x,uaDisplay as S}from"@ctrl/dom/internal";var C=Object.defineProperty,__name=(e,t)=>C(e,`name`,{value:t,configurable:!0});const w=/* @__PURE__ */ new Set([`hidden`,`text`,`search`,`tel`,`url`,`email`,`password`,`date`,`month`,`week`,`time`,`datetime-local`,`number`,`range`,`color`,`checkbox`,`radio`,`file`,`submit`,`image`,`reset`,`button`]);function inputType(e){let t=f(e,`type`);if(t===null)return`text`;if(w.has(t))return t;let n=t.toLowerCase();return w.has(n)?n:`text`}function childTextContent(e){let t=``;for(let n=e.first;n!==null;n=n.next)(n.type===3||n.type===4)&&(t+=n.data);return t}function controlValue(e){let t=e.node.value;return typeof t==`string`?t:e.tag===l.textarea?childTextContent(e):f(e,`value`)??``}function checkedness(e){let t=e.node.checked;return typeof t==`boolean`?t:f(e,`checked`)!==null}function indeterminate(e){return e.node.indeterminate===!0}function listOfOptions(e,t){for(let n=e.first;n!==null;n=n.next)if(n.ns===s){if(n.tag===l.option)t.push(n);else if(n.tag===l.optgroup)for(let e=n.first;e!==null;e=e.next)e.tag===l.option&&e.ns===s&&t.push(e)}return t}function selectSize(e){let t=f(e,`size`);if(t===null)return 0;let n=/^[\t\n\f\r ]*\+?(\d+)/.exec(t);if(n===null)return 0;let r=Number(n[1]);return r>2147483647?0:r}function fallbackSelected(e,t){if(e===null)return f(t,`selected`)!==null;let n=listOfOptions(e,[]);if(f(e,`multiple`)!==null)return f(t,`selected`)!==null;let r=null;for(let e of n)f(e,`selected`)!==null&&(r=e);if(r===null&&selectSize(e)<=1){for(let e of n)if(f(e,`disabled`)===null&&(e.parent===null||e.parent.tag!==l.optgroup||f(e.parent,`disabled`)===null)){r=e;break}}return r===t}function owningSelect(e){let t=e.parent;return t===null?null:t.tag===l.select&&t.ns===s?t:t.tag===l.optgroup&&t.parent!==null&&t.parent.tag===l.select&&t.parent.ns===s?t.parent:null}function optionSelected(e){let t=e.node.selected;return typeof t==`boolean`?t:fallbackSelected(owningSelect(e),e)}function selectedOptions(t){let n=t.node.selectedOptions;if(n!=null&&typeof n.length==`number`){let t=[];for(let r=0;r<n.length;r++)t.push(n[r][e]);return t}let r=[];for(let e of listOfOptions(t,[]))optionSelected(e)&&r.push(e);return r}function isLabelable(e){if(e.type!==o||e.ns!==s)return!1;switch(e.tag){case l.button:case l.meter:case l.output:case l.progress:case l.select:case l.textarea:return!0;case l.input:return inputType(e)!==`hidden`}return!1}var LabelIndex=class{version;map;constructor(e){this.version=e,this.map=/* @__PURE__ */ new Map}};const T={},newLabelIndexes=()=>/* @__PURE__ */ new WeakMap,E=[];function buildLabelIndex(e,t){let n=new LabelIndex(t),r=[],i=null,c=e.type===a,u=!1;for(let t=e;t!==null;)if(t.type===o&&t.tag===l.label&&t.ns===s&&(r.push(t),f(t,`for`)!==null&&(u=!0)),t.first!==null)t=t.first;else{let n=t;for(t=null;n!==null&&n!==e;){if(n.next!==null){t=n.next;break}n=n.parent}}if(r.length===0)return n;if(u&&!c){i=/* @__PURE__ */ new Map;for(let t=e;t!==null;)if(t.type===o&&t.id!==``&&!i.has(t.id)&&i.set(t.id,t),t.first!==null)t=t.first;else{let n=t;for(t=null;n!==null&&n!==e;){if(n.next!==null){t=n.next;break}n=n.parent}}}for(let t of r){let r=labeledControl(t,c?e:null,i);if(r===null)continue;let a=n.map.get(r);a===void 0?n.map.set(r,[t]):a.push(t)}return n}function labeledControl(e,t,n){let r=f(e,`for`);if(r!==null){if(r===``)return null;let e;return e=t===null?n?.get(r)??null:t.node._idLookup(r),e!==null&&isLabelable(e)?e:null}for(let t=e.first;t!==null;){if(t.type===o&&isLabelable(t))return t;if(t.first!==null)t=t.first;else{let n=t;for(t=null;n!==null&&n!==e;){if(n.next!==null){t=n.next;break}n=n.parent}}}return null}function labelsOf(e){return isLabelable(e)?labelMapForTree(e).get(e)??E:null}function labelMapForTree(e){let t=x(e),r=e.doc[n],i=h(e.doc,T,newLabelIndexes),a=i.get(t);return(a===void 0||a.version!==r)&&(a=buildLabelIndex(t,r),i.set(t,a)),a.map}function anyTag(e){return e.tag===0?b(e.name):e.tag}function isSet(e,t){let n=f(e,t);return n!==null&&n!==``}function eqCI(e,t){return e!==null&&e.length===t.length&&(e===t||e.toLowerCase()===t)}function implicitRole(e){if(e.type!==o)return``;let t=roleCache(e);return t.role===D&&(t.role=implicitRoleImpl(e,!1)),t.role}const D=`\0`;function roleCache(e){let t=e.doc[n],r=e.cache;if(r!==null&&r.roleVersion===t)return r;let i=r??_(e),a=f(e,`role`);return i.roleAttr=a,i.role=a===null?implicitRoleImpl(e,!1):`\0`,i.roleVersion=t,i}function implicitRoleJestDom(e){return implicitRoleImpl(e,!0)}function implicitRoleImpl(e,t){if(e.type!==o)return``;switch(anyTag(e)){case 0:return``;case l.input:return inputRole(e,t);case l.select:return f(e,`multiple`)===null&&f(e,`size`)===null?`combobox`:`listbox`;case l.th:{let t=f(e,`scope`);return eqCI(t,`col`)||eqCI(t,`colgroup`)?`columnheader`:eqCI(t,`row`)||eqCI(t,`rowgroup`)?`rowheader`:`columnheader`}case l.aside:return`complementary`;case l.form:return t?d(e,`aria-label`)!==null||d(e,`aria-labelledby`)!==null||f(e,`name`)!==null?`form`:``:isSet(e,`aria-label`)||isSet(e,`aria-labelledby`)||isSet(e,`name`)?`form`:``;case l.img:return t?`img`:f(e,`alt`)===``?`presentation`:`img`;case l.a:case l.area:return t?f(e,`href`)===null?`generic`:`link`:isSet(e,`href`)?`link`:`generic`;case l.section:return t?d(e,`aria-label`)!==null||d(e,`aria-labelledby`)!==null?`region`:`generic`:isSet(e,`aria-label`)||isSet(e,`aria-labelledby`)?`region`:`generic`;case l.article:return`article`;case l.header:return`banner`;case l.blockquote:return`blockquote`;case l.button:return`button`;case l.caption:return`caption`;case l.td:return`cell`;case l.code:return`code`;case l.footer:return`contentinfo`;case l.dd:return`definition`;case l.del:return`deletion`;case l.dialog:return`dialog`;case l.html:return`document`;case l.em:return`emphasis`;case l.figure:return`figure`;case l.b:case l.bdo:case l.body:case l.data:case l.div:case l.hgroup:case l.i:case l.pre:case l.q:case l.samp:case l.small:case l.span:case l.u:return`generic`;case l.details:case l.fieldset:case l.optgroup:case l.address:return`group`;case l.h1:case l.h2:case l.h3:case l.h4:case l.h5:case l.h6:return`heading`;case l.ins:return`insertion`;case l.menu:case l.ol:case l.ul:return`list`;case l.datalist:return`listbox`;case l.li:return`listitem`;case l.main:return`main`;case l.mark:return`mark`;case l.math:return`math`;case l.meter:return`meter`;case l.nav:return`navigation`;case l.option:return`option`;case l.p:return`paragraph`;case l.progress:return`progressbar`;case l.tr:return`row`;case l.tbody:case l.tfoot:case l.thead:return`rowgroup`;case l.hr:return`separator`;case l.output:return`status`;case l.strong:return`strong`;case l.sub:return`subscript`;case l.sup:return`superscript`;case l.table:return`table`;case l.dfn:case l.dt:return`term`;case l.textarea:return`textbox`;case l.time:return`time`;default:return``}}function inputRole(e,t){let n=f(e,`list`),r=f(e,`type`),i=e.ns===s&&inputType(e)===`text`;if((t?n!==null:n!==null&&n!==``)&&(i||eqCI(r,`email`)||eqCI(r,`search`)||eqCI(r,`tel`)||eqCI(r,`url`)))return`combobox`;if(n===null){if(eqCI(r,`search`))return`searchbox`;if(r===null||i||eqCI(r,`email`)||eqCI(r,`tel`)||eqCI(r,`url`))return`textbox`}if(r===null)return``;switch(r.toLowerCase()){case`button`:case`image`:case`reset`:case`submit`:return`button`;case`checkbox`:return`checkbox`;case`radio`:return`radio`;case`range`:return`slider`;case`number`:return`spinbutton`;default:return``}}function getImplicitRoles(e){let t=implicitRole(e);return t===``?[]:[t]}function tlRole(e){if(e.type!==o)return``;let t=roleCache(e),n=t.roleAttr;if(n!==null){let e=n.indexOf(` `);return e===-1?n:n.slice(0,e)}return t.role}const O=[];for(let[e,t]of Object.entries({article:`article`,aside:`complementary`,button:`button`,datalist:`listbox`,dd:`definition`,details:`group`,dialog:`dialog`,dt:`term`,fieldset:`group`,figure:`figure`,form:`form`,footer:`contentinfo`,h1:`heading`,h2:`heading`,h3:`heading`,h4:`heading`,h5:`heading`,h6:`heading`,header:`banner`,hr:`separator`,html:`document`,legend:`legend`,li:`listitem`,math:`math`,main:`main`,menu:`list`,nav:`navigation`,ol:`list`,optgroup:`group`,option:`option`,output:`status`,progress:`progressbar`,section:`region`,summary:`button`,table:`table`,tbody:`rowgroup`,textarea:`textbox`,tfoot:`rowgroup`,td:`cell`,th:`columnheader`,thead:`rowgroup`,tr:`row`,ul:`list`}))O[b(e)]=t;const k=[`aria-atomic`,`aria-busy`,`aria-controls`,`aria-current`,`aria-describedby`,`aria-details`,`aria-dropeffect`,`aria-flowto`,`aria-grabbed`,`aria-hidden`,`aria-keyshortcuts`,`aria-label`,`aria-labelledby`,`aria-live`,`aria-owns`,`aria-relevant`,`aria-roledescription`],A=[`aria-atomic`,`aria-busy`,`aria-controls`,`aria-current`,`aria-description`,`aria-describedby`,`aria-details`,`aria-dropeffect`,`aria-flowto`,`aria-grabbed`,`aria-hidden`,`aria-keyshortcuts`,`aria-label`,`aria-labelledby`,`aria-live`,`aria-owns`,`aria-relevant`,`aria-roledescription`];function isProhibited(e,t,n){switch(e){case`caption`:case`code`:case`deletion`:case`emphasis`:case`insertion`:case`paragraph`:case`presentation`:case`strong`:case`subscript`:case`superscript`:return t===`aria-label`||t===`aria-labelledby`;case`none`:return n===6&&(t===`aria-label`||t===`aria-labelledby`);case`generic`:return t===`aria-label`||t===`aria-labelledby`||t===`aria-roledescription`;default:return!1}}function hasGlobalAriaAttributes(e,t,n){if(e.attrs===null)return!1;let r=n===6?A:k;for(let i=0;i<r.length;i++){let a=r[i];if(f(e,a)!==null&&!isProhibited(t,a,n))return!0}return!1}function daaExplicitRole(e){let t=f(e,`role`);if(t===null)return null;let n=t.trim(),r=n.indexOf(` `),i=r===-1?n:n.slice(0,r);return i.length>0?i:null}function daaImplicitRole(e,t){let n=anyTag(e),r=O[n];if(r!==void 0)return r;switch(n){case l.a:case l.area:case l.link:return f(e,`href`)===null?null:`link`;case l.img:return f(e,`alt`)===``&&!hasGlobalAriaAttributes(e,`img`,t)?`presentation`:`img`;case l.input:{if(e.ns!==s)return null;let t=inputType(e);switch(t){case`button`:case`image`:case`reset`:case`submit`:return`button`;case`checkbox`:case`radio`:return t;case`range`:return`slider`;case`email`:case`tel`:case`text`:case`url`:return f(e,`list`)===null?`textbox`:`combobox`;case`search`:return f(e,`list`)===null?`searchbox`:`combobox`;case`number`:return`spinbutton`;default:return null}}case l.select:return f(e,`multiple`)!==null||e.ns===s&&selectSize(e)>1?`listbox`:`combobox`}return null}function isPresentationRole(e,t){return e===`presentation`||t===6&&e===`none`}function daaGetRole(e,t){let n=daaExplicitRole(e);if(n===null||isPresentationRole(n,t)){let r=daaImplicitRole(e,t);if(!isPresentationRole(n,t)||hasGlobalAriaAttributes(e,r??``,t))return r}return n}function implOf(t){let n=t[e];if(n===void 0)throw TypeError(`Expected a node created by @ctrl/dom.`);return n}function nextInTreeWithin(e,t){if(e.first!==null)return e.first;let n=e;for(;n!==null&&n!==t;){if(n.next!==null)return n.next;n=n.parent}return null}function elementByIdInRoot(e,t){if(t===``)return null;if(e.type===a)return e.node._idLookup(t);for(let n=e.first;n!==null;n=nextInTreeWithin(n,e))if(n.type===o&&n.id===t)return n;return null}function queryIdRefs(e,t,n){if(t===null)return n;let r=x(e);if(r.type===o)return n;let i=0,a=t.length;for(;i<=a;){let e=t.indexOf(` `,i);if(e===-1&&(e=a),e>i){let a=elementByIdInRoot(r,t.slice(i,e));a!==null&&n.push(a)}i=e+1}return n}function textContent(e){let t=``;for(let n=e.first;n!==null;n=nextInTreeWithin(n,e))(n.type===u||n.type===i)&&(t+=n.data);return t}function jsdomUaKind(e){let t=e.tag===0?b(e.name):e.tag,n=f(e,`hidden`);if(n!==null&&t!==l.embed&&n.toLowerCase()!==`until-found`||f(e,`popover`)!==null&&(t!==l.dialog||f(e,`open`)===null))return 0;switch(t){case 0:return 1;case l.area:case l.base:case l.basefont:case l.datalist:case l.head:case l.link:case l.meta:case l.noembed:case l.noframes:case l.param:case l.rp:case l.script:case l.style:case l.template:case l.title:return 0;case l.dialog:return f(e,`open`)===null?0:2;case l.input:{let t=f(e,`type`);return t!==null&&t.toLowerCase()===`hidden`?0:2}case l.html:case l.body:case l.address:case l.blockquote:case l.center:case l.div:case l.figure:case l.figcaption:case l.footer:case l.form:case l.header:case l.hr:case l.legend:case l.listing:case l.main:case l.p:case l.plaintext:case l.pre:case l.search:case l.xmp:case l.slot:case l.article:case l.aside:case l.h1:case l.h2:case l.h3:case l.h4:case l.h5:case l.h6:case l.hgroup:case l.nav:case l.section:case l.dir:case l.dd:case l.dl:case l.dt:case l.menu:case l.ol:case l.ul:case l.li:case l.ruby:case l.rt:case l.table:case l.caption:case l.colgroup:case l.col:case l.thead:case l.tbody:case l.tfoot:case l.tr:case l.td:case l.th:case l.button:case l.fieldset:case l.details:case l.summary:case l.marquee:return 2;default:return 1}}function isDisplayNone(e){let t=y(e);return t!==null&&t!==S(e)?t===`none`:jsdomUaKind(e)===0}function isDisplayInline(e){let t=y(e);return t!==null&&t!==S(e)?t===`inline`:jsdomUaKind(e)===1}function isVisibilityHidden(e){return m(e)===`hidden`}function pseudoText(e,t){if(v(e,t)===``)return``;let n=p(e,`content`,t);return/^["'].*["']$/.test(n)?n.slice(1,-1):``}var Ctx=class{consulted;compute;hidden;pseudo;gcs;flavor;usedState;constructor(e,t,n){this.consulted=/* @__PURE__ */ new Set,this.compute=e;let r=t?.getComputedStyle;this.gcs=typeof r==`function`?r:null,this.pseudo=t?.computedStyleSupportsPseudoElements??this.gcs!==null,this.hidden=t?.hidden??!1,this.flavor=n,this.usedState=!1}};function roleOf(e,t){return t.type===o?daaGetRole(t,e.flavor):null}function isControl(e){switch(e){case`button`:case`combobox`:case`listbox`:case`textbox`:return!0;default:return isRange(e)}}function isRange(e){switch(e){case`meter`:case`progressbar`:case`scrollbar`:case`slider`:case`spinbutton`:return!0;default:return!1}}function allowsNameFromContent(e){switch(e){case`button`:case`cell`:case`checkbox`:case`columnheader`:case`gridcell`:case`heading`:case`label`:case`legend`:case`link`:case`menuitem`:case`menuitemcheckbox`:case`menuitemradio`:case`option`:case`radio`:case`row`:case`rowheader`:case`switch`:case`tab`:case`tooltip`:case`treeitem`:return!0;default:return!1}}function wrapperOf(e){return e.node}function isHidden(e,t){if(t.type!==o)return!1;if(f(t,`hidden`)!==null||d(t,`aria-hidden`)===`true`)return!0;let n=e.gcs;if(n!==null){let e=n(wrapperOf(t));return e.getPropertyValue(`display`)===`none`||e.getPropertyValue(`visibility`)===`hidden`}return isDisplayNone(t)||isVisibilityHidden(t)}function displayIsInline(e,t){let n=e.gcs;return n===null?isDisplayInline(t):n(wrapperOf(t)).getPropertyValue(`display`)===`inline`}function pseudoContent$1(e,t,n){let r=e.gcs;if(r!==null){let e=r(wrapperOf(t),n).getPropertyValue(`content`);return/^["'].*["']$/.test(e)?e.slice(1,-1):``}return pseudoText(t,n)}__name(pseudoContent$1,`pseudoContent`);function isLocal(e,t){return e.type===o&&anyTag(e)===t}function htmlInputType(e){return e.ns===s&&e.tag===l.input?inputType(e):``}function findAttr(e,t){let n=e.attrs;if(n===null)return null;for(let e=0;e<n.length;e++){let r=n[e];if((r.rare===null?r.localName:r.rare.name)===t)return r}return null}function useAttribute(e,t,n){let r=findAttr(t,n);return r!==null&&!e.consulted.has(r)&&r.value.trim()!==``?(e.consulted.add(r),r.value):null}function computeMiscTextAlternative(e,t,n){let r=``,i=t.type===o;if(i&&e.pseudo&&(r=`${pseudoContent$1(e,t,`::before`)} ${r}`),i&&anyTag(t)===l.slot){let i=slotAssignedNodes(t);if(i!==null&&i.length>0)for(let t=0;t<i.length;t++)r+=childText(e,i[t],n);else for(let i=t.first;i!==null;i=i.next)r+=childText(e,i,n)}else{for(let i=t.first;i!==null;i=i.next)r+=childText(e,i,n);if(i){let i=d(t,`aria-owns`);if(i!==null){let a=queryIdRefs(t,i,[]);for(let t=0;t<a.length;t++)r+=childText(e,a[t],n)}}}return i&&e.pseudo&&(r=`${r} ${pseudoContent$1(e,t,`::after`)}`),r.trim()}function childText(e,t,n){let r=computeTextAlternative(e,t,n,!1,!0);return t.type===o&&!displayIsInline(e,t)?` ${r} `:r}function slotAssignedNodes(t){let n=t.node.assignedNodes;if(typeof n!=`function`)return null;let r=n.call(t.node),i=[];for(let t=0;t<r.length;t++)i.push(r[t][e]);return i}function computeTooltipAttributeValue(e,t){return t.type===o?useAttribute(e,t,`title`):null}function computeElementTextAlternative(e,t){if(t.type!==o)return null;let n=anyTag(t);if(n===l.fieldset){e.consulted.add(t);for(let n=t.first;n!==null;n=n.next)if(isLocal(n,l.legend))return computeTextAlternative(e,n,!1,!1,!1)}else if(n===l.table){e.consulted.add(t);for(let n=t.first;n!==null;n=n.next)if(isLocal(n,l.caption))return computeTextAlternative(e,n,!1,!1,!1)}else if(n===l.svg){e.consulted.add(t);for(let e=t.first;e!==null;e=e.next)if(e.type===o&&e.ns===c&&e.name===`title`)return textContent(e);return null}else if(n===l.img||n===l.area){let n=useAttribute(e,t,`alt`);if(n!==null)return n}else if(n===l.optgroup){let n=useAttribute(e,t,`label`);if(n!==null)return n}let r=n===l.input?htmlInputType(t):``;if(r===`button`||r===`submit`||r===`reset`){let n=useAttribute(e,t,`value`);if(n!==null)return n;if(r===`submit`)return`Submit`;if(r===`reset`)return`Reset`}let i=labelsOf(t);if(i!==null&&i.length!==0){e.consulted.add(t);let n=``;for(let t=0;t<i.length;t++){let r=computeTextAlternative(e,i[t],!0,!1,!0);r.length>0&&(n=n===``?r:`${n} ${r}`)}return n}if(r===`image`){let n=useAttribute(e,t,`alt`);if(n!==null)return n;let r=useAttribute(e,t,`title`);return r===null?`Submit Query`:r}if(roleOf(e,t)===`button`){let n=computeMiscTextAlternative(e,t,!1);if(n!==``)return n}return null}function selectedOptionsOf(e,t){return anyTag(t)===l.select?(e.usedState=!0,t.ns===s?selectedOptions(t):querySelectorAllSubtree(t,`selected`,null)):querySelectorAllSubtree(t,`aria-selected`,`true`)}function querySelectorAllSubtree(e,t,n){let r=[];collectDescendantsWithAttr(e,t,n,r);let i=d(e,`aria-owns`);if(i!==null){let a=queryIdRefs(e,i,[]);for(let e=0;e<a.length;e++)collectDescendantsWithAttr(a[e],t,n,r)}return r}function collectDescendantsWithAttr(e,t,n,r){for(let i=e.first;i!==null;){if(i.type===o){let e=f(i,t);e!==null&&(n===null||e===n)&&r.push(i)}if(i.first!==null)i=i.first;else{let t=i;for(i=null;t!==null&&t!==e;){if(t.next!==null){i=t.next;break}t=t.parent}}}}function getValueOfTextbox(e,t){let n=anyTag(t);return(n===l.input||n===l.textarea)&&t.ns===s?(e.usedState=!0,controlValue(t)):textContent(t)}function computeTextAlternative(e,t,n,r,i){let a=e.consulted;if(a.has(t))return``;if(!e.hidden&&!r&&isHidden(e,t))return a.add(t),``;let c=t.type===o;if(c&&e.compute===0&&!r){let r=findAttr(t,`aria-labelledby`);if(r!==null&&!a.has(r)){let i=queryIdRefs(t,r.value,[]);if(i.length>0){a.add(r);let t=``;for(let r=0;r<i.length;r++){let a=computeTextAlternative(e,i[r],n,!0,!1);t=r===0?a:`${t} ${a}`}return t}}}let p=c?daaGetRole(t,e.flavor):null,m=i&&e.compute===0&&isControl(p);if(!m){let n=c?(d(t,`aria-label`)??``).trim():``;if(n!==``&&e.compute===0)return a.add(t),n;if(p!==`presentation`&&p!==`none`){let n=computeElementTextAlternative(e,t);if(n!==null)return a.add(t),n}}if(p===`menu`)return a.add(t),``;if(m||n||r){if(p===`combobox`||p===`listbox`){a.add(t);let r=selectedOptionsOf(e,t);if(r.length===0)return isLocal(t,l.input)?(e.usedState=!0,t.ns===s?controlValue(t):``):``;let i=``;for(let t=0;t<r.length;t++){let a=computeTextAlternative(e,r[t],n,!1,!0);i=t===0?a:`${i} ${a}`}return i}if(isRange(p)){a.add(t);let e=d(t,`aria-valuetext`);if(e!==null)return e;let n=d(t,`aria-valuenow`);return n===null?f(t,`value`)||``:n}if(p===`textbox`)return a.add(t),getValueOfTextbox(e,t)}if(allowsNameFromContent(p)||c&&r||c&&anyTag(t)===l.caption){let r=computeMiscTextAlternative(e,t,n);if(r!==``)return a.add(t),r}if(t.type===u)return a.add(t),t.data;if(i)return a.add(t),computeMiscTextAlternative(e,t,n);let h=computeTooltipAttributeValue(e,t);return h===null?(a.add(t),``):(a.add(t),h)}function asFlatString(e){return e.trim().replace(/\s\s+/g,` `)}function computeTextAlternativeImpl(e,t,n){let r=new Ctx(+(t?.compute===`description`),t,n);return asFlatString(computeTextAlternative(r,e,!1,r.compute===1,!1))}function prohibitsNaming(e,t){switch(e){case`caption`:case`code`:case`deletion`:case`emphasis`:case`generic`:case`insertion`:case`paragraph`:case`presentation`:case`strong`:case`subscript`:case`superscript`:return!0;case`none`:return t===6;default:return!1}}function withStyleOverride(e,t){if(t!==void 0&&t.getComputedStyle!==void 0)return t;let n=g(e);return n===null?t:{...t,getComputedStyle:n,computedStyleSupportsPseudoElements:t?.computedStyleSupportsPseudoElements??!1}}function isDefaultOptions(e){return e===void 0||e.getComputedStyle===void 0&&e.computedStyleSupportsPseudoElements!==!0&&e.hidden!==!0&&e.compute!==`description`}function computeAccessibleNameImpl(e,r,i){if(e.type===o&&prohibitsNaming(daaGetRole(e,i),i))return``;let a=i===5&&e.type===o&&isDefaultOptions(r),s=e.doc;if(a){let r=e.cache;if(r!==null&&r.nameVersion===s[n]&&r.ariaNameStyleVersion===s[t])return r.name}let c=new Ctx(0,r,i),l=asFlatString(computeTextAlternative(c,e,!1,!1,!1));if(a&&!c.usedState){let r=_(e);r.nameVersion=s[n],r.ariaNameStyleVersion=s[t],r.name=l}return l}function computeAccessibleDescriptionImpl(e,t,n){let r=``;if(e.type===o){let i=d(e,`aria-describedby`);if(i!==null){let a=queryIdRefs(e,i,[]),o={...t,compute:`description`};for(let e=0;e<a.length;e++){let t=computeTextAlternativeImpl(a[e],o,n);r=e===0?t:`${r} ${t}`}}r===``&&n===6&&(r=d(e,`aria-description`)??``),r===``&&(r=f(e,`title`)??``)}return r}function checkBooleanAttribute(e,t){let n=d(e,t);if(n===`true`)return!0;if(n===`false`)return!1}function isHTMLTag(e,t){return e.tag===t&&e.ns===s}function computeAriaSelected(e){return isHTMLTag(e,l.option)?optionSelected(e):checkBooleanAttribute(e,`aria-selected`)}function computeAriaBusy(e){return d(e,`aria-busy`)===`true`}function computeAriaChecked(e){return isHTMLTag(e,l.input)?indeterminate(e)?void 0:checkedness(e):checkBooleanAttribute(e,`aria-checked`)}function ariaCheckedState(e){if(isHTMLTag(e,l.input))return indeterminate(e)?`mixed`:checkedness(e);let t=d(e,`aria-checked`);if(t===`true`)return!0;if(t===`false`)return!1;if(t===`mixed`)return`mixed`}function computeAriaPressed(e){return checkBooleanAttribute(e,`aria-pressed`)}function ariaPressedState(e){let t=d(e,`aria-pressed`);if(t===`true`)return!0;if(t===`false`)return!1;if(t===`mixed`)return`mixed`}function computeAriaCurrent(e){return checkBooleanAttribute(e,`aria-current`)??d(e,`aria-current`)??!1}function computeAriaExpanded(e){return checkBooleanAttribute(e,`aria-expanded`)}function computeHeadingLevel(e){let t=d(e,`aria-level`);if(t!==null&&t!==``){let e=Number(t);if(e)return e}if(e.ns===s)switch(e.tag){case l.h1:return 1;case l.h2:return 2;case l.h3:return 3;case l.h4:return 4;case l.h5:return 5;case l.h6:return 6;default:return}}function computeAriaValueNow(e){let t=d(e,`aria-valuenow`);return t===null?void 0:+t}function computeAriaValueMax(e){let t=d(e,`aria-valuemax`);return t===null?void 0:+t}function computeAriaValueMin(e){let t=d(e,`aria-valuemin`);return t===null?void 0:+t}function computeAriaValueText(e){return d(e,`aria-valuetext`)??void 0}function isDisabledImpl(e){switch(anyTag(e)){case l.button:case l.fieldset:case l.input:case l.optgroup:case l.option:case l.select:case l.textarea:if(f(e,`disabled`)!==null)return!0}return d(e,`aria-disabled`)===`true`}function isSubtreeInaccessibleImpl(e){return e.ns===s&&f(e,`hidden`)!==null||d(e,`aria-hidden`)===`true`||isDisplayNone(e)}function chainInaccessible(e,t,n){let r=e.cache;if(r!==null&&r.ariaHiddenVersion===t&&r.ariaHiddenStyleVersion===n)return!!(r.ariaHiddenBits&1);let i=isSubtreeInaccessibleImpl(e);if(!i){let r=e.parent;r!==null&&r.type===o&&(i=chainInaccessible(r,t,n))}let a=r??_(e);return a.ariaHiddenVersion=t,a.ariaHiddenStyleVersion=n,a.ariaHiddenBits=+!!i,i}function isInaccessibleImpl(e){if(isVisibilityHidden(e))return!0;let r=e.doc;return chainInaccessible(e,r[n],r[t])}function isInaccessibleWithStyle(e,t,n){if(t(e.node).visibility===`hidden`)return!0;for(let r=e;r!==null&&r.type===o;r=r.parent){let e=n===null?void 0:n.get(r);if(e===void 0&&(e=isSubtreeInaccessibleWithStyle(r,t),n!==null&&n.set(r,e)),e)return!0}return!1}function isSubtreeInaccessibleWithStyle(e,t){return e.ns===s&&f(e,`hidden`)!==null||d(e,`aria-hidden`)===`true`||t(e.node).display===`none`}const j=`Owner document of the element needs to have an associated window.`;function checkGetComputedStyle(e,t){if(t!==void 0&&`getComputedStyle`in t&&t.getComputedStyle!==void 0){let e=t.getComputedStyle;if(typeof e!=`function`)throw TypeError(j);return e}if(e.doc[r]===null)throw TypeError(j);return g(e)}function isSubtreeInaccessible(e,t){let n=implOf(e),r=checkGetComputedStyle(n,t);return r===null?isSubtreeInaccessibleImpl(n):n.ns===s&&f(n,`hidden`)!==null||d(n,`aria-hidden`)===`true`||r(e).display===`none`}function isInaccessible(e,t){let n=implOf(e),r=checkGetComputedStyle(n,t),i=t?.isSubtreeInaccessible;if(r===null&&i===void 0)return isInaccessibleImpl(n);if(r===null?isVisibilityHidden(n):r(e).visibility===`hidden`)return!0;for(let e=n;e!==null&&e.type===o;e=e.parent){let t=e.node;if(i===void 0?r===null?isSubtreeInaccessibleImpl(e):isSubtreeInaccessible(t,{getComputedStyle:r}):i(t))return!0}return!1}function getRolesImpl(e,t){let n=/* @__PURE__ */ new Map,r=t?null:g(e),i=r===null?null:/* @__PURE__ */ new Map;for(let a=e;a!==null;){if(a.type===o&&(t||!(r===null?isInaccessibleImpl(a):isInaccessibleWithStyle(a,r,i)))){let e=f(a,`role`),t;if(e!==null){let n=e.indexOf(` `);t=n===-1?e:e.slice(0,n)}else t=implicitRole(a);if(e!==null||t!==``){let e=n.get(t);e===void 0?n.set(t,[a]):e.push(a)}}let s=null;for(let e=a.first;e!==null;e=e.next)if(e.type===o){s=e;break}if(s===null){let t=a;for(;t!==null&&t!==e;){for(let e=t.next;e!==null;e=e.next)if(e.type===o){s=e;break}if(s!==null)break;t=t.parent}}a=s}return n}function getRoles(e,t={}){let n=getRolesImpl(implOf(e),t.hidden??!1),r={};for(let[e,t]of n)r[e]=t.map(e=>e.node);return r}function prettyRoles(e,t,n){let r=implOf(e),i=getRolesImpl(r,t.hidden??!1),a=g(r),o=t.computedStyleSupportsPseudoElements??!1,s=a===null?{computedStyleSupportsPseudoElements:o}:{computedStyleSupportsPseudoElements:o,getComputedStyle:a},c=`-`.repeat(50),l=[];for(let[e,r]of i){if(e===`generic`)continue;let i=r.map(e=>{let r=`Name "${computeAccessibleNameImpl(e,s,5)}":\n`,i=n(e.node.cloneNode(!1));return t.includeDescription?`${r}${`Description "${computeAccessibleDescriptionImpl(e,s,5)}":\n`}${i}`:`${r}${i}`}).join(`
2
-
3
- `);l.push(`${e}:\n\n${i}\n\n${c}`)}return l.join(`
4
- `)}export{implOf as A,tlRole as B,computeAccessibleDescriptionImpl as C,isDisplayInline as D,withStyleOverride as E,daaImplicitRole as F,__name as G,isLabelable as H,getImplicitRoles as I,implicitRole as L,anyTag as M,daaExplicitRole as N,isDisplayNone as O,daaGetRole as P,implicitRoleJestDom as R,isDisabledImpl as S,computeTextAlternativeImpl as T,labelMapForTree as U,inputType as V,labelsOf as W,computeAriaValueMax as _,isInaccessibleImpl as a,computeAriaValueText as b,isSubtreeInaccessibleImpl as c,computeAriaBusy as d,computeAriaChecked as f,computeAriaSelected as g,computeAriaPressed as h,isInaccessible as i,queryIdRefs as j,isVisibilityHidden as k,ariaCheckedState as l,computeAriaExpanded as m,getRolesImpl as n,isInaccessibleWithStyle as o,computeAriaCurrent as p,prettyRoles as r,isSubtreeInaccessible as s,getRoles as t,ariaPressedState as u,computeAriaValueMin as v,computeAccessibleNameImpl as w,computeHeadingLevel as x,computeAriaValueNow as y,roleCache as z};
@@ -1,4 +0,0 @@
1
- var e=Object.defineProperty,__name=(t,n)=>e(t,`name`,{value:n,configurable:!0});let t=require("@ctrl/dom/internal");const n=/* @__PURE__ */ new Set([`hidden`,`text`,`search`,`tel`,`url`,`email`,`password`,`date`,`month`,`week`,`time`,`datetime-local`,`number`,`range`,`color`,`checkbox`,`radio`,`file`,`submit`,`image`,`reset`,`button`]);function inputType(e){let r=(0,t.attr)(e,`type`);if(r===null)return`text`;if(n.has(r))return r;let i=r.toLowerCase();return n.has(i)?i:`text`}function childTextContent(e){let t=``;for(let n=e.first;n!==null;n=n.next)(n.type===3||n.type===4)&&(t+=n.data);return t}function controlValue(e){let n=e.node.value;return typeof n==`string`?n:e.tag===t.T.textarea?childTextContent(e):(0,t.attr)(e,`value`)??``}function checkedness(e){let n=e.node.checked;return typeof n==`boolean`?n:(0,t.attr)(e,`checked`)!==null}function indeterminate(e){return e.node.indeterminate===!0}function listOfOptions(e,n){for(let r=e.first;r!==null;r=r.next)if(r.ns===t.HTML_NS){if(r.tag===t.T.option)n.push(r);else if(r.tag===t.T.optgroup)for(let e=r.first;e!==null;e=e.next)e.tag===t.T.option&&e.ns===t.HTML_NS&&n.push(e)}return n}function selectSize(e){let n=(0,t.attr)(e,`size`);if(n===null)return 0;let r=/^[\t\n\f\r ]*\+?(\d+)/.exec(n);if(r===null)return 0;let i=Number(r[1]);return i>2147483647?0:i}function fallbackSelected(e,n){if(e===null)return(0,t.attr)(n,`selected`)!==null;let r=listOfOptions(e,[]);if((0,t.attr)(e,`multiple`)!==null)return(0,t.attr)(n,`selected`)!==null;let i=null;for(let e of r)(0,t.attr)(e,`selected`)!==null&&(i=e);if(i===null&&selectSize(e)<=1){for(let e of r)if((0,t.attr)(e,`disabled`)===null&&(e.parent===null||e.parent.tag!==t.T.optgroup||(0,t.attr)(e.parent,`disabled`)===null)){i=e;break}}return i===n}function owningSelect(e){let n=e.parent;return n===null?null:n.tag===t.T.select&&n.ns===t.HTML_NS?n:n.tag===t.T.optgroup&&n.parent!==null&&n.parent.tag===t.T.select&&n.parent.ns===t.HTML_NS?n.parent:null}function optionSelected(e){let t=e.node.selected;return typeof t==`boolean`?t:fallbackSelected(owningSelect(e),e)}function selectedOptions(e){let n=e.node.selectedOptions;if(n!=null&&typeof n.length==`number`){let e=[];for(let r=0;r<n.length;r++)e.push(n[r][t.$impl]);return e}let r=[];for(let t of listOfOptions(e,[]))optionSelected(t)&&r.push(t);return r}function isLabelable(e){if(e.type!==t.ELEMENT_NODE||e.ns!==t.HTML_NS)return!1;switch(e.tag){case t.T.button:case t.T.meter:case t.T.output:case t.T.progress:case t.T.select:case t.T.textarea:return!0;case t.T.input:return inputType(e)!==`hidden`}return!1}var LabelIndex=class{version;map;constructor(e){this.version=e,this.map=/* @__PURE__ */ new Map}};const r={},newLabelIndexes=()=>/* @__PURE__ */ new WeakMap,i=[];function buildLabelIndex(e,n){let r=new LabelIndex(n),i=[],a=null,o=e.type===t.DOCUMENT_NODE,s=!1;for(let n=e;n!==null;)if(n.type===t.ELEMENT_NODE&&n.tag===t.T.label&&n.ns===t.HTML_NS&&(i.push(n),(0,t.attr)(n,`for`)!==null&&(s=!0)),n.first!==null)n=n.first;else{let t=n;for(n=null;t!==null&&t!==e;){if(t.next!==null){n=t.next;break}t=t.parent}}if(i.length===0)return r;if(s&&!o){a=/* @__PURE__ */ new Map;for(let n=e;n!==null;)if(n.type===t.ELEMENT_NODE&&n.id!==``&&!a.has(n.id)&&a.set(n.id,n),n.first!==null)n=n.first;else{let t=n;for(n=null;t!==null&&t!==e;){if(t.next!==null){n=t.next;break}t=t.parent}}}for(let t of i){let n=labeledControl(t,o?e:null,a);if(n===null)continue;let i=r.map.get(n);i===void 0?r.map.set(n,[t]):i.push(t)}return r}function labeledControl(e,n,r){let i=(0,t.attr)(e,`for`);if(i!==null){if(i===``)return null;let e;return e=n===null?r?.get(i)??null:n.node._idLookup(i),e!==null&&isLabelable(e)?e:null}for(let n=e.first;n!==null;){if(n.type===t.ELEMENT_NODE&&isLabelable(n))return n;if(n.first!==null)n=n.first;else{let t=n;for(n=null;t!==null&&t!==e;){if(t.next!==null){n=t.next;break}t=t.parent}}}return null}function labelsOf(e){return isLabelable(e)?labelMapForTree(e).get(e)??i:null}function labelMapForTree(e){let n=(0,t.treeRoot)(e),i=e.doc[t.$version],a=(0,t.derivedCache)(e.doc,r,newLabelIndexes),o=a.get(n);return(o===void 0||o.version!==i)&&(o=buildLabelIndex(n,i),a.set(n,o)),o.map}function anyTag(e){return e.tag===0?(0,t.tagId)(e.name):e.tag}function isSet(e,n){let r=(0,t.attr)(e,n);return r!==null&&r!==``}function eqCI(e,t){return e!==null&&e.length===t.length&&(e===t||e.toLowerCase()===t)}function implicitRole(e){if(e.type!==t.ELEMENT_NODE)return``;let n=roleCache(e);return n.role===a&&(n.role=implicitRoleImpl(e,!1)),n.role}const a=`\0`;function roleCache(e){let n=e.doc[t.$version],r=e.cache;if(r!==null&&r.roleVersion===n)return r;let i=r??(0,t.nodeCache)(e),a=(0,t.attr)(e,`role`);return i.roleAttr=a,i.role=a===null?implicitRoleImpl(e,!1):`\0`,i.roleVersion=n,i}function implicitRoleJestDom(e){return implicitRoleImpl(e,!0)}function implicitRoleImpl(e,n){if(e.type!==t.ELEMENT_NODE)return``;switch(anyTag(e)){case 0:return``;case t.T.input:return inputRole(e,n);case t.T.select:return(0,t.attr)(e,`multiple`)===null&&(0,t.attr)(e,`size`)===null?`combobox`:`listbox`;case t.T.th:{let n=(0,t.attr)(e,`scope`);return eqCI(n,`col`)||eqCI(n,`colgroup`)?`columnheader`:eqCI(n,`row`)||eqCI(n,`rowgroup`)?`rowheader`:`columnheader`}case t.T.aside:return`complementary`;case t.T.form:return n?(0,t.ariaAttr)(e,`aria-label`)!==null||(0,t.ariaAttr)(e,`aria-labelledby`)!==null||(0,t.attr)(e,`name`)!==null?`form`:``:isSet(e,`aria-label`)||isSet(e,`aria-labelledby`)||isSet(e,`name`)?`form`:``;case t.T.img:return n?`img`:(0,t.attr)(e,`alt`)===``?`presentation`:`img`;case t.T.a:case t.T.area:return n?(0,t.attr)(e,`href`)===null?`generic`:`link`:isSet(e,`href`)?`link`:`generic`;case t.T.section:return n?(0,t.ariaAttr)(e,`aria-label`)!==null||(0,t.ariaAttr)(e,`aria-labelledby`)!==null?`region`:`generic`:isSet(e,`aria-label`)||isSet(e,`aria-labelledby`)?`region`:`generic`;case t.T.article:return`article`;case t.T.header:return`banner`;case t.T.blockquote:return`blockquote`;case t.T.button:return`button`;case t.T.caption:return`caption`;case t.T.td:return`cell`;case t.T.code:return`code`;case t.T.footer:return`contentinfo`;case t.T.dd:return`definition`;case t.T.del:return`deletion`;case t.T.dialog:return`dialog`;case t.T.html:return`document`;case t.T.em:return`emphasis`;case t.T.figure:return`figure`;case t.T.b:case t.T.bdo:case t.T.body:case t.T.data:case t.T.div:case t.T.hgroup:case t.T.i:case t.T.pre:case t.T.q:case t.T.samp:case t.T.small:case t.T.span:case t.T.u:return`generic`;case t.T.details:case t.T.fieldset:case t.T.optgroup:case t.T.address:return`group`;case t.T.h1:case t.T.h2:case t.T.h3:case t.T.h4:case t.T.h5:case t.T.h6:return`heading`;case t.T.ins:return`insertion`;case t.T.menu:case t.T.ol:case t.T.ul:return`list`;case t.T.datalist:return`listbox`;case t.T.li:return`listitem`;case t.T.main:return`main`;case t.T.mark:return`mark`;case t.T.math:return`math`;case t.T.meter:return`meter`;case t.T.nav:return`navigation`;case t.T.option:return`option`;case t.T.p:return`paragraph`;case t.T.progress:return`progressbar`;case t.T.tr:return`row`;case t.T.tbody:case t.T.tfoot:case t.T.thead:return`rowgroup`;case t.T.hr:return`separator`;case t.T.output:return`status`;case t.T.strong:return`strong`;case t.T.sub:return`subscript`;case t.T.sup:return`superscript`;case t.T.table:return`table`;case t.T.dfn:case t.T.dt:return`term`;case t.T.textarea:return`textbox`;case t.T.time:return`time`;default:return``}}function inputRole(e,n){let r=(0,t.attr)(e,`list`),i=(0,t.attr)(e,`type`),a=e.ns===t.HTML_NS&&inputType(e)===`text`;if((n?r!==null:r!==null&&r!==``)&&(a||eqCI(i,`email`)||eqCI(i,`search`)||eqCI(i,`tel`)||eqCI(i,`url`)))return`combobox`;if(r===null){if(eqCI(i,`search`))return`searchbox`;if(i===null||a||eqCI(i,`email`)||eqCI(i,`tel`)||eqCI(i,`url`))return`textbox`}if(i===null)return``;switch(i.toLowerCase()){case`button`:case`image`:case`reset`:case`submit`:return`button`;case`checkbox`:return`checkbox`;case`radio`:return`radio`;case`range`:return`slider`;case`number`:return`spinbutton`;default:return``}}function getImplicitRoles(e){let t=implicitRole(e);return t===``?[]:[t]}function tlRole(e){if(e.type!==t.ELEMENT_NODE)return``;let n=roleCache(e),r=n.roleAttr;if(r!==null){let e=r.indexOf(` `);return e===-1?r:r.slice(0,e)}return n.role}const o=[];for(let[e,n]of Object.entries({article:`article`,aside:`complementary`,button:`button`,datalist:`listbox`,dd:`definition`,details:`group`,dialog:`dialog`,dt:`term`,fieldset:`group`,figure:`figure`,form:`form`,footer:`contentinfo`,h1:`heading`,h2:`heading`,h3:`heading`,h4:`heading`,h5:`heading`,h6:`heading`,header:`banner`,hr:`separator`,html:`document`,legend:`legend`,li:`listitem`,math:`math`,main:`main`,menu:`list`,nav:`navigation`,ol:`list`,optgroup:`group`,option:`option`,output:`status`,progress:`progressbar`,section:`region`,summary:`button`,table:`table`,tbody:`rowgroup`,textarea:`textbox`,tfoot:`rowgroup`,td:`cell`,th:`columnheader`,thead:`rowgroup`,tr:`row`,ul:`list`}))o[(0,t.tagId)(e)]=n;const s=[`aria-atomic`,`aria-busy`,`aria-controls`,`aria-current`,`aria-describedby`,`aria-details`,`aria-dropeffect`,`aria-flowto`,`aria-grabbed`,`aria-hidden`,`aria-keyshortcuts`,`aria-label`,`aria-labelledby`,`aria-live`,`aria-owns`,`aria-relevant`,`aria-roledescription`],c=[`aria-atomic`,`aria-busy`,`aria-controls`,`aria-current`,`aria-description`,`aria-describedby`,`aria-details`,`aria-dropeffect`,`aria-flowto`,`aria-grabbed`,`aria-hidden`,`aria-keyshortcuts`,`aria-label`,`aria-labelledby`,`aria-live`,`aria-owns`,`aria-relevant`,`aria-roledescription`];function isProhibited(e,t,n){switch(e){case`caption`:case`code`:case`deletion`:case`emphasis`:case`insertion`:case`paragraph`:case`presentation`:case`strong`:case`subscript`:case`superscript`:return t===`aria-label`||t===`aria-labelledby`;case`none`:return n===6&&(t===`aria-label`||t===`aria-labelledby`);case`generic`:return t===`aria-label`||t===`aria-labelledby`||t===`aria-roledescription`;default:return!1}}function hasGlobalAriaAttributes(e,n,r){if(e.attrs===null)return!1;let i=r===6?c:s;for(let a=0;a<i.length;a++){let o=i[a];if((0,t.attr)(e,o)!==null&&!isProhibited(n,o,r))return!0}return!1}function daaExplicitRole(e){let n=(0,t.attr)(e,`role`);if(n===null)return null;let r=n.trim(),i=r.indexOf(` `),a=i===-1?r:r.slice(0,i);return a.length>0?a:null}function daaImplicitRole(e,n){let r=anyTag(e),i=o[r];if(i!==void 0)return i;switch(r){case t.T.a:case t.T.area:case t.T.link:return(0,t.attr)(e,`href`)===null?null:`link`;case t.T.img:return(0,t.attr)(e,`alt`)===``&&!hasGlobalAriaAttributes(e,`img`,n)?`presentation`:`img`;case t.T.input:{if(e.ns!==t.HTML_NS)return null;let n=inputType(e);switch(n){case`button`:case`image`:case`reset`:case`submit`:return`button`;case`checkbox`:case`radio`:return n;case`range`:return`slider`;case`email`:case`tel`:case`text`:case`url`:return(0,t.attr)(e,`list`)===null?`textbox`:`combobox`;case`search`:return(0,t.attr)(e,`list`)===null?`searchbox`:`combobox`;case`number`:return`spinbutton`;default:return null}}case t.T.select:return(0,t.attr)(e,`multiple`)!==null||e.ns===t.HTML_NS&&selectSize(e)>1?`listbox`:`combobox`}return null}function isPresentationRole(e,t){return e===`presentation`||t===6&&e===`none`}function daaGetRole(e,t){let n=daaExplicitRole(e);if(n===null||isPresentationRole(n,t)){let r=daaImplicitRole(e,t);if(!isPresentationRole(n,t)||hasGlobalAriaAttributes(e,r??``,t))return r}return n}function implOf(e){let n=e[t.$impl];if(n===void 0)throw TypeError(`Expected a node created by @ctrl/dom.`);return n}function nextInTreeWithin(e,t){if(e.first!==null)return e.first;let n=e;for(;n!==null&&n!==t;){if(n.next!==null)return n.next;n=n.parent}return null}function elementByIdInRoot(e,n){if(n===``)return null;if(e.type===t.DOCUMENT_NODE)return e.node._idLookup(n);for(let r=e.first;r!==null;r=nextInTreeWithin(r,e))if(r.type===t.ELEMENT_NODE&&r.id===n)return r;return null}function queryIdRefs(e,n,r){if(n===null)return r;let i=(0,t.treeRoot)(e);if(i.type===t.ELEMENT_NODE)return r;let a=0,o=n.length;for(;a<=o;){let e=n.indexOf(` `,a);if(e===-1&&(e=o),e>a){let t=elementByIdInRoot(i,n.slice(a,e));t!==null&&r.push(t)}a=e+1}return r}function textContent(e){let n=``;for(let r=e.first;r!==null;r=nextInTreeWithin(r,e))(r.type===t.TEXT_NODE||r.type===t.CDATA_SECTION_NODE)&&(n+=r.data);return n}function jsdomUaKind(e){let n=e.tag===0?(0,t.tagId)(e.name):e.tag,r=(0,t.attr)(e,`hidden`);if(r!==null&&n!==t.T.embed&&r.toLowerCase()!==`until-found`||(0,t.attr)(e,`popover`)!==null&&(n!==t.T.dialog||(0,t.attr)(e,`open`)===null))return 0;switch(n){case 0:return 1;case t.T.area:case t.T.base:case t.T.basefont:case t.T.datalist:case t.T.head:case t.T.link:case t.T.meta:case t.T.noembed:case t.T.noframes:case t.T.param:case t.T.rp:case t.T.script:case t.T.style:case t.T.template:case t.T.title:return 0;case t.T.dialog:return(0,t.attr)(e,`open`)===null?0:2;case t.T.input:{let n=(0,t.attr)(e,`type`);return n!==null&&n.toLowerCase()===`hidden`?0:2}case t.T.html:case t.T.body:case t.T.address:case t.T.blockquote:case t.T.center:case t.T.div:case t.T.figure:case t.T.figcaption:case t.T.footer:case t.T.form:case t.T.header:case t.T.hr:case t.T.legend:case t.T.listing:case t.T.main:case t.T.p:case t.T.plaintext:case t.T.pre:case t.T.search:case t.T.xmp:case t.T.slot:case t.T.article:case t.T.aside:case t.T.h1:case t.T.h2:case t.T.h3:case t.T.h4:case t.T.h5:case t.T.h6:case t.T.hgroup:case t.T.nav:case t.T.section:case t.T.dir:case t.T.dd:case t.T.dl:case t.T.dt:case t.T.menu:case t.T.ol:case t.T.ul:case t.T.li:case t.T.ruby:case t.T.rt:case t.T.table:case t.T.caption:case t.T.colgroup:case t.T.col:case t.T.thead:case t.T.tbody:case t.T.tfoot:case t.T.tr:case t.T.td:case t.T.th:case t.T.button:case t.T.fieldset:case t.T.details:case t.T.summary:case t.T.marquee:return 2;default:return 1}}function isDisplayNone(e){let n=(0,t.styledDisplay)(e);return n!==null&&n!==(0,t.uaDisplay)(e)?n===`none`:jsdomUaKind(e)===0}function isDisplayInline(e){let n=(0,t.styledDisplay)(e);return n!==null&&n!==(0,t.uaDisplay)(e)?n===`inline`:jsdomUaKind(e)===1}function isVisibilityHidden(e){return(0,t.computedVisibility)(e)===`hidden`}function pseudoText(e,n){if((0,t.pseudoContent)(e,n)===``)return``;let r=(0,t.computedValue)(e,`content`,n);return/^["'].*["']$/.test(r)?r.slice(1,-1):``}var Ctx=class{consulted;compute;hidden;pseudo;gcs;flavor;usedState;constructor(e,t,n){this.consulted=/* @__PURE__ */ new Set,this.compute=e;let r=t?.getComputedStyle;this.gcs=typeof r==`function`?r:null,this.pseudo=t?.computedStyleSupportsPseudoElements??this.gcs!==null,this.hidden=t?.hidden??!1,this.flavor=n,this.usedState=!1}};function roleOf(e,n){return n.type===t.ELEMENT_NODE?daaGetRole(n,e.flavor):null}function isControl(e){switch(e){case`button`:case`combobox`:case`listbox`:case`textbox`:return!0;default:return isRange(e)}}function isRange(e){switch(e){case`meter`:case`progressbar`:case`scrollbar`:case`slider`:case`spinbutton`:return!0;default:return!1}}function allowsNameFromContent(e){switch(e){case`button`:case`cell`:case`checkbox`:case`columnheader`:case`gridcell`:case`heading`:case`label`:case`legend`:case`link`:case`menuitem`:case`menuitemcheckbox`:case`menuitemradio`:case`option`:case`radio`:case`row`:case`rowheader`:case`switch`:case`tab`:case`tooltip`:case`treeitem`:return!0;default:return!1}}function wrapperOf(e){return e.node}function isHidden(e,n){if(n.type!==t.ELEMENT_NODE)return!1;if((0,t.attr)(n,`hidden`)!==null||(0,t.ariaAttr)(n,`aria-hidden`)===`true`)return!0;let r=e.gcs;if(r!==null){let e=r(wrapperOf(n));return e.getPropertyValue(`display`)===`none`||e.getPropertyValue(`visibility`)===`hidden`}return isDisplayNone(n)||isVisibilityHidden(n)}function displayIsInline(e,t){let n=e.gcs;return n===null?isDisplayInline(t):n(wrapperOf(t)).getPropertyValue(`display`)===`inline`}function pseudoContent(e,t,n){let r=e.gcs;if(r!==null){let e=r(wrapperOf(t),n).getPropertyValue(`content`);return/^["'].*["']$/.test(e)?e.slice(1,-1):``}return pseudoText(t,n)}function isLocal(e,n){return e.type===t.ELEMENT_NODE&&anyTag(e)===n}function htmlInputType(e){return e.ns===t.HTML_NS&&e.tag===t.T.input?inputType(e):``}function findAttr(e,t){let n=e.attrs;if(n===null)return null;for(let e=0;e<n.length;e++){let r=n[e];if((r.rare===null?r.localName:r.rare.name)===t)return r}return null}function useAttribute(e,t,n){let r=findAttr(t,n);return r!==null&&!e.consulted.has(r)&&r.value.trim()!==``?(e.consulted.add(r),r.value):null}function computeMiscTextAlternative(e,n,r){let i=``,a=n.type===t.ELEMENT_NODE;if(a&&e.pseudo&&(i=`${pseudoContent(e,n,`::before`)} ${i}`),a&&anyTag(n)===t.T.slot){let t=slotAssignedNodes(n);if(t!==null&&t.length>0)for(let n=0;n<t.length;n++)i+=childText(e,t[n],r);else for(let t=n.first;t!==null;t=t.next)i+=childText(e,t,r)}else{for(let t=n.first;t!==null;t=t.next)i+=childText(e,t,r);if(a){let a=(0,t.ariaAttr)(n,`aria-owns`);if(a!==null){let t=queryIdRefs(n,a,[]);for(let n=0;n<t.length;n++)i+=childText(e,t[n],r)}}}return a&&e.pseudo&&(i=`${i} ${pseudoContent(e,n,`::after`)}`),i.trim()}function childText(e,n,r){let i=computeTextAlternative(e,n,r,!1,!0);return n.type===t.ELEMENT_NODE&&!displayIsInline(e,n)?` ${i} `:i}function slotAssignedNodes(e){let n=e.node.assignedNodes;if(typeof n!=`function`)return null;let r=n.call(e.node),i=[];for(let e=0;e<r.length;e++)i.push(r[e][t.$impl]);return i}function computeTooltipAttributeValue(e,n){return n.type===t.ELEMENT_NODE?useAttribute(e,n,`title`):null}function computeElementTextAlternative(e,n){if(n.type!==t.ELEMENT_NODE)return null;let r=anyTag(n);if(r===t.T.fieldset){e.consulted.add(n);for(let r=n.first;r!==null;r=r.next)if(isLocal(r,t.T.legend))return computeTextAlternative(e,r,!1,!1,!1)}else if(r===t.T.table){e.consulted.add(n);for(let r=n.first;r!==null;r=r.next)if(isLocal(r,t.T.caption))return computeTextAlternative(e,r,!1,!1,!1)}else if(r===t.T.svg){e.consulted.add(n);for(let e=n.first;e!==null;e=e.next)if(e.type===t.ELEMENT_NODE&&e.ns===t.SVG_NS&&e.name===`title`)return textContent(e);return null}else if(r===t.T.img||r===t.T.area){let t=useAttribute(e,n,`alt`);if(t!==null)return t}else if(r===t.T.optgroup){let t=useAttribute(e,n,`label`);if(t!==null)return t}let i=r===t.T.input?htmlInputType(n):``;if(i===`button`||i===`submit`||i===`reset`){let t=useAttribute(e,n,`value`);if(t!==null)return t;if(i===`submit`)return`Submit`;if(i===`reset`)return`Reset`}let a=labelsOf(n);if(a!==null&&a.length!==0){e.consulted.add(n);let t=``;for(let n=0;n<a.length;n++){let r=computeTextAlternative(e,a[n],!0,!1,!0);r.length>0&&(t=t===``?r:`${t} ${r}`)}return t}if(i===`image`){let t=useAttribute(e,n,`alt`);if(t!==null)return t;let r=useAttribute(e,n,`title`);return r===null?`Submit Query`:r}if(roleOf(e,n)===`button`){let t=computeMiscTextAlternative(e,n,!1);if(t!==``)return t}return null}function selectedOptionsOf(e,n){return anyTag(n)===t.T.select?(e.usedState=!0,n.ns===t.HTML_NS?selectedOptions(n):querySelectorAllSubtree(n,`selected`,null)):querySelectorAllSubtree(n,`aria-selected`,`true`)}function querySelectorAllSubtree(e,n,r){let i=[];collectDescendantsWithAttr(e,n,r,i);let a=(0,t.ariaAttr)(e,`aria-owns`);if(a!==null){let t=queryIdRefs(e,a,[]);for(let e=0;e<t.length;e++)collectDescendantsWithAttr(t[e],n,r,i)}return i}function collectDescendantsWithAttr(e,n,r,i){for(let a=e.first;a!==null;){if(a.type===t.ELEMENT_NODE){let e=(0,t.attr)(a,n);e!==null&&(r===null||e===r)&&i.push(a)}if(a.first!==null)a=a.first;else{let t=a;for(a=null;t!==null&&t!==e;){if(t.next!==null){a=t.next;break}t=t.parent}}}}function getValueOfTextbox(e,n){let r=anyTag(n);return(r===t.T.input||r===t.T.textarea)&&n.ns===t.HTML_NS?(e.usedState=!0,controlValue(n)):textContent(n)}function computeTextAlternative(e,n,r,i,a){let o=e.consulted;if(o.has(n))return``;if(!e.hidden&&!i&&isHidden(e,n))return o.add(n),``;let s=n.type===t.ELEMENT_NODE;if(s&&e.compute===0&&!i){let t=findAttr(n,`aria-labelledby`);if(t!==null&&!o.has(t)){let i=queryIdRefs(n,t.value,[]);if(i.length>0){o.add(t);let n=``;for(let t=0;t<i.length;t++){let a=computeTextAlternative(e,i[t],r,!0,!1);n=t===0?a:`${n} ${a}`}return n}}}let c=s?daaGetRole(n,e.flavor):null,l=a&&e.compute===0&&isControl(c);if(!l){let r=s?((0,t.ariaAttr)(n,`aria-label`)??``).trim():``;if(r!==``&&e.compute===0)return o.add(n),r;if(c!==`presentation`&&c!==`none`){let t=computeElementTextAlternative(e,n);if(t!==null)return o.add(n),t}}if(c===`menu`)return o.add(n),``;if(l||r||i){if(c===`combobox`||c===`listbox`){o.add(n);let i=selectedOptionsOf(e,n);if(i.length===0)return isLocal(n,t.T.input)?(e.usedState=!0,n.ns===t.HTML_NS?controlValue(n):``):``;let a=``;for(let t=0;t<i.length;t++){let n=computeTextAlternative(e,i[t],r,!1,!0);a=t===0?n:`${a} ${n}`}return a}if(isRange(c)){o.add(n);let e=(0,t.ariaAttr)(n,`aria-valuetext`);if(e!==null)return e;let r=(0,t.ariaAttr)(n,`aria-valuenow`);return r===null?(0,t.attr)(n,`value`)||``:r}if(c===`textbox`)return o.add(n),getValueOfTextbox(e,n)}if(allowsNameFromContent(c)||s&&i||s&&anyTag(n)===t.T.caption){let t=computeMiscTextAlternative(e,n,r);if(t!==``)return o.add(n),t}if(n.type===t.TEXT_NODE)return o.add(n),n.data;if(a)return o.add(n),computeMiscTextAlternative(e,n,r);let u=computeTooltipAttributeValue(e,n);return u===null?(o.add(n),``):(o.add(n),u)}function asFlatString(e){return e.trim().replace(/\s\s+/g,` `)}function computeTextAlternativeImpl(e,t,n){let r=new Ctx(+(t?.compute===`description`),t,n);return asFlatString(computeTextAlternative(r,e,!1,r.compute===1,!1))}function prohibitsNaming(e,t){switch(e){case`caption`:case`code`:case`deletion`:case`emphasis`:case`generic`:case`insertion`:case`paragraph`:case`presentation`:case`strong`:case`subscript`:case`superscript`:return!0;case`none`:return t===6;default:return!1}}function withStyleOverride(e,n){if(n!==void 0&&n.getComputedStyle!==void 0)return n;let r=(0,t.getComputedStyleOverride)(e);return r===null?n:{...n,getComputedStyle:r,computedStyleSupportsPseudoElements:n?.computedStyleSupportsPseudoElements??!1}}function isDefaultOptions(e){return e===void 0||e.getComputedStyle===void 0&&e.computedStyleSupportsPseudoElements!==!0&&e.hidden!==!0&&e.compute!==`description`}function computeAccessibleNameImpl(e,n,r){if(e.type===t.ELEMENT_NODE&&prohibitsNaming(daaGetRole(e,r),r))return``;let i=r===5&&e.type===t.ELEMENT_NODE&&isDefaultOptions(n),a=e.doc;if(i){let n=e.cache;if(n!==null&&n.nameVersion===a[t.$version]&&n.ariaNameStyleVersion===a[t.$styleVersion])return n.name}let o=new Ctx(0,n,r),s=asFlatString(computeTextAlternative(o,e,!1,!1,!1));if(i&&!o.usedState){let n=(0,t.nodeCache)(e);n.nameVersion=a[t.$version],n.ariaNameStyleVersion=a[t.$styleVersion],n.name=s}return s}function computeAccessibleDescriptionImpl(e,n,r){let i=``;if(e.type===t.ELEMENT_NODE){let a=(0,t.ariaAttr)(e,`aria-describedby`);if(a!==null){let t=queryIdRefs(e,a,[]),o={...n,compute:`description`};for(let e=0;e<t.length;e++){let n=computeTextAlternativeImpl(t[e],o,r);i=e===0?n:`${i} ${n}`}}i===``&&r===6&&(i=(0,t.ariaAttr)(e,`aria-description`)??``),i===``&&(i=(0,t.attr)(e,`title`)??``)}return i}function checkBooleanAttribute(e,n){let r=(0,t.ariaAttr)(e,n);if(r===`true`)return!0;if(r===`false`)return!1}function isHTMLTag(e,n){return e.tag===n&&e.ns===t.HTML_NS}function computeAriaSelected(e){return isHTMLTag(e,t.T.option)?optionSelected(e):checkBooleanAttribute(e,`aria-selected`)}function computeAriaBusy(e){return(0,t.ariaAttr)(e,`aria-busy`)===`true`}function computeAriaChecked(e){return isHTMLTag(e,t.T.input)?indeterminate(e)?void 0:checkedness(e):checkBooleanAttribute(e,`aria-checked`)}function ariaCheckedState(e){if(isHTMLTag(e,t.T.input))return indeterminate(e)?`mixed`:checkedness(e);let n=(0,t.ariaAttr)(e,`aria-checked`);if(n===`true`)return!0;if(n===`false`)return!1;if(n===`mixed`)return`mixed`}function computeAriaPressed(e){return checkBooleanAttribute(e,`aria-pressed`)}function ariaPressedState(e){let n=(0,t.ariaAttr)(e,`aria-pressed`);if(n===`true`)return!0;if(n===`false`)return!1;if(n===`mixed`)return`mixed`}function computeAriaCurrent(e){return checkBooleanAttribute(e,`aria-current`)??(0,t.ariaAttr)(e,`aria-current`)??!1}function computeAriaExpanded(e){return checkBooleanAttribute(e,`aria-expanded`)}function computeHeadingLevel(e){let n=(0,t.ariaAttr)(e,`aria-level`);if(n!==null&&n!==``){let e=Number(n);if(e)return e}if(e.ns===t.HTML_NS)switch(e.tag){case t.T.h1:return 1;case t.T.h2:return 2;case t.T.h3:return 3;case t.T.h4:return 4;case t.T.h5:return 5;case t.T.h6:return 6;default:return}}function computeAriaValueNow(e){let n=(0,t.ariaAttr)(e,`aria-valuenow`);return n===null?void 0:+n}function computeAriaValueMax(e){let n=(0,t.ariaAttr)(e,`aria-valuemax`);return n===null?void 0:+n}function computeAriaValueMin(e){let n=(0,t.ariaAttr)(e,`aria-valuemin`);return n===null?void 0:+n}function computeAriaValueText(e){return(0,t.ariaAttr)(e,`aria-valuetext`)??void 0}function isDisabledImpl(e){switch(anyTag(e)){case t.T.button:case t.T.fieldset:case t.T.input:case t.T.optgroup:case t.T.option:case t.T.select:case t.T.textarea:if((0,t.attr)(e,`disabled`)!==null)return!0}return(0,t.ariaAttr)(e,`aria-disabled`)===`true`}function isSubtreeInaccessibleImpl(e){return e.ns===t.HTML_NS&&(0,t.attr)(e,`hidden`)!==null||(0,t.ariaAttr)(e,`aria-hidden`)===`true`||isDisplayNone(e)}function chainInaccessible(e,n,r){let i=e.cache;if(i!==null&&i.ariaHiddenVersion===n&&i.ariaHiddenStyleVersion===r)return!!(i.ariaHiddenBits&1);let a=isSubtreeInaccessibleImpl(e);if(!a){let i=e.parent;i!==null&&i.type===t.ELEMENT_NODE&&(a=chainInaccessible(i,n,r))}let o=i??(0,t.nodeCache)(e);return o.ariaHiddenVersion=n,o.ariaHiddenStyleVersion=r,o.ariaHiddenBits=+!!a,a}function isInaccessibleImpl(e){if(isVisibilityHidden(e))return!0;let n=e.doc;return chainInaccessible(e,n[t.$version],n[t.$styleVersion])}function isInaccessibleWithStyle(e,n,r){if(n(e.node).visibility===`hidden`)return!0;for(let i=e;i!==null&&i.type===t.ELEMENT_NODE;i=i.parent){let e=r===null?void 0:r.get(i);if(e===void 0&&(e=isSubtreeInaccessibleWithStyle(i,n),r!==null&&r.set(i,e)),e)return!0}return!1}function isSubtreeInaccessibleWithStyle(e,n){return e.ns===t.HTML_NS&&(0,t.attr)(e,`hidden`)!==null||(0,t.ariaAttr)(e,`aria-hidden`)===`true`||n(e.node).display===`none`}const l=`Owner document of the element needs to have an associated window.`;function checkGetComputedStyle(e,n){if(n!==void 0&&`getComputedStyle`in n&&n.getComputedStyle!==void 0){let e=n.getComputedStyle;if(typeof e!=`function`)throw TypeError(l);return e}if(e.doc[t.$window]===null)throw TypeError(l);return(0,t.getComputedStyleOverride)(e)}function isSubtreeInaccessible(e,n){let r=implOf(e),i=checkGetComputedStyle(r,n);return i===null?isSubtreeInaccessibleImpl(r):r.ns===t.HTML_NS&&(0,t.attr)(r,`hidden`)!==null||(0,t.ariaAttr)(r,`aria-hidden`)===`true`||i(e).display===`none`}function isInaccessible(e,n){let r=implOf(e),i=checkGetComputedStyle(r,n),a=n?.isSubtreeInaccessible;if(i===null&&a===void 0)return isInaccessibleImpl(r);if(i===null?isVisibilityHidden(r):i(e).visibility===`hidden`)return!0;for(let e=r;e!==null&&e.type===t.ELEMENT_NODE;e=e.parent){let t=e.node;if(a===void 0?i===null?isSubtreeInaccessibleImpl(e):isSubtreeInaccessible(t,{getComputedStyle:i}):a(t))return!0}return!1}function getRolesImpl(e,n){let r=/* @__PURE__ */ new Map,i=n?null:(0,t.getComputedStyleOverride)(e),a=i===null?null:/* @__PURE__ */ new Map;for(let o=e;o!==null;){if(o.type===t.ELEMENT_NODE&&(n||!(i===null?isInaccessibleImpl(o):isInaccessibleWithStyle(o,i,a)))){let e=(0,t.attr)(o,`role`),n;if(e!==null){let t=e.indexOf(` `);n=t===-1?e:e.slice(0,t)}else n=implicitRole(o);if(e!==null||n!==``){let e=r.get(n);e===void 0?r.set(n,[o]):e.push(o)}}let s=null;for(let e=o.first;e!==null;e=e.next)if(e.type===t.ELEMENT_NODE){s=e;break}if(s===null){let n=o;for(;n!==null&&n!==e;){for(let e=n.next;e!==null;e=e.next)if(e.type===t.ELEMENT_NODE){s=e;break}if(s!==null)break;n=n.parent}}o=s}return r}function getRoles(e,t={}){let n=getRolesImpl(implOf(e),t.hidden??!1),r={};for(let[e,t]of n)r[e]=t.map(e=>e.node);return r}function prettyRoles(e,n,r){let i=implOf(e),a=getRolesImpl(i,n.hidden??!1),o=(0,t.getComputedStyleOverride)(i),s=n.computedStyleSupportsPseudoElements??!1,c=o===null?{computedStyleSupportsPseudoElements:s}:{computedStyleSupportsPseudoElements:s,getComputedStyle:o},l=`-`.repeat(50),u=[];for(let[e,t]of a){if(e===`generic`)continue;let i=t.map(e=>{let t=`Name "${computeAccessibleNameImpl(e,c,5)}":\n`,i=r(e.node.cloneNode(!1));return n.includeDescription?`${t}${`Description "${computeAccessibleDescriptionImpl(e,c,5)}":\n`}${i}`:`${t}${i}`}).join(`
2
-
3
- `);u.push(`${e}:\n\n${i}\n\n${l}`)}return u.join(`
4
- `)}Object.defineProperty(exports,"A",{enumerable:!0,get:function(){return implOf}}),Object.defineProperty(exports,"B",{enumerable:!0,get:function(){return tlRole}}),Object.defineProperty(exports,"C",{enumerable:!0,get:function(){return computeAccessibleDescriptionImpl}}),Object.defineProperty(exports,"D",{enumerable:!0,get:function(){return isDisplayInline}}),Object.defineProperty(exports,"E",{enumerable:!0,get:function(){return withStyleOverride}}),Object.defineProperty(exports,"F",{enumerable:!0,get:function(){return daaImplicitRole}}),Object.defineProperty(exports,"G",{enumerable:!0,get:function(){return __name}}),Object.defineProperty(exports,"H",{enumerable:!0,get:function(){return isLabelable}}),Object.defineProperty(exports,"I",{enumerable:!0,get:function(){return getImplicitRoles}}),Object.defineProperty(exports,"L",{enumerable:!0,get:function(){return implicitRole}}),Object.defineProperty(exports,"M",{enumerable:!0,get:function(){return anyTag}}),Object.defineProperty(exports,"N",{enumerable:!0,get:function(){return daaExplicitRole}}),Object.defineProperty(exports,"O",{enumerable:!0,get:function(){return isDisplayNone}}),Object.defineProperty(exports,"P",{enumerable:!0,get:function(){return daaGetRole}}),Object.defineProperty(exports,"R",{enumerable:!0,get:function(){return implicitRoleJestDom}}),Object.defineProperty(exports,"S",{enumerable:!0,get:function(){return isDisabledImpl}}),Object.defineProperty(exports,"T",{enumerable:!0,get:function(){return computeTextAlternativeImpl}}),Object.defineProperty(exports,"U",{enumerable:!0,get:function(){return labelMapForTree}}),Object.defineProperty(exports,"V",{enumerable:!0,get:function(){return inputType}}),Object.defineProperty(exports,"W",{enumerable:!0,get:function(){return labelsOf}}),Object.defineProperty(exports,"_",{enumerable:!0,get:function(){return computeAriaValueMax}}),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return isInaccessibleImpl}}),Object.defineProperty(exports,"b",{enumerable:!0,get:function(){return computeAriaValueText}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return isSubtreeInaccessibleImpl}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return computeAriaBusy}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return computeAriaChecked}}),Object.defineProperty(exports,"g",{enumerable:!0,get:function(){return computeAriaSelected}}),Object.defineProperty(exports,"h",{enumerable:!0,get:function(){return computeAriaPressed}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return isInaccessible}}),Object.defineProperty(exports,"j",{enumerable:!0,get:function(){return queryIdRefs}}),Object.defineProperty(exports,"k",{enumerable:!0,get:function(){return isVisibilityHidden}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return ariaCheckedState}}),Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return computeAriaExpanded}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return getRolesImpl}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return isInaccessibleWithStyle}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return computeAriaCurrent}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return prettyRoles}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return isSubtreeInaccessible}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return getRoles}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return ariaPressedState}}),Object.defineProperty(exports,"v",{enumerable:!0,get:function(){return computeAriaValueMin}}),Object.defineProperty(exports,"w",{enumerable:!0,get:function(){return computeAccessibleNameImpl}}),Object.defineProperty(exports,"x",{enumerable:!0,get:function(){return computeHeadingLevel}}),Object.defineProperty(exports,"y",{enumerable:!0,get:function(){return computeAriaValueNow}}),Object.defineProperty(exports,"z",{enumerable:!0,get:function(){return roleCache}});