@ctrl/dom 0.3.9 → 0.3.11

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.
Files changed (99) hide show
  1. package/README.md +12 -105
  2. package/dist/aria/_chunks/{aria-query.generated-BivoZ-ec.js → aria-query.generated-BG-n1PE9.js} +2 -2
  3. package/dist/aria/_chunks/{aria-query.generated-CeGmXXFh.cjs → aria-query.generated-BqD80bJk.cjs} +1 -1
  4. package/dist/aria/index.cjs +1 -1
  5. package/dist/aria/index.js +1 -1
  6. package/dist/aria/internal.cjs +1 -1
  7. package/dist/aria/internal.js +1 -1
  8. package/dist/aria/types/forms.d.ts +0 -2
  9. package/dist/bridge/internal.js +1 -1
  10. package/dist/dom/_chunks/src-B3vkUXY6.js +50 -0
  11. package/dist/dom/index.js +1 -1
  12. package/dist/dom/internal.js +1 -1
  13. package/dist/dom/types/collections/NodeList.d.ts +2 -0
  14. package/dist/dom/types/css/cascade.d.ts +5 -6
  15. package/dist/dom/types/css/media.d.ts +0 -2
  16. package/dist/dom/types/css/parser.d.ts +0 -2
  17. package/dist/dom/types/css/properties.d.ts +0 -2
  18. package/dist/dom/types/css/shorthands.d.ts +0 -2
  19. package/dist/dom/types/css/style-deps.d.ts +18 -4
  20. package/dist/dom/types/css/stylesheets.d.ts +14 -18
  21. package/dist/dom/types/css/values.d.ts +0 -1
  22. package/dist/dom/types/events/DataTransfer.d.ts +3 -2
  23. package/dist/dom/types/events/handler-names.d.ts +4 -0
  24. package/dist/dom/types/events/handlers.d.ts +1 -5
  25. package/dist/dom/types/events/listeners.d.ts +10 -7
  26. package/dist/dom/types/html/events.d.ts +14 -8
  27. package/dist/dom/types/html/focus.d.ts +0 -2
  28. package/dist/dom/types/html/forms/HTMLOptionElement.d.ts +8 -0
  29. package/dist/dom/types/html/forms/HTMLSelectElement.d.ts +20 -3
  30. package/dist/dom/types/html/forms/collections.d.ts +14 -2
  31. package/dist/dom/types/html/forms/control-state.d.ts +5 -0
  32. package/dist/dom/types/html/forms/face.d.ts +1 -2
  33. package/dist/dom/types/html/forms/form-associated.d.ts +4 -2
  34. package/dist/dom/types/html/forms/index.d.ts +1 -2
  35. package/dist/dom/types/html/forms/microsyntaxes.d.ts +0 -3
  36. package/dist/dom/types/html/forms/state.d.ts +0 -1
  37. package/dist/dom/types/html/reflect.d.ts +0 -4
  38. package/dist/dom/types/html/resources.d.ts +0 -2
  39. package/dist/dom/types/html/shared.d.ts +0 -2
  40. package/dist/dom/types/html/template.d.ts +0 -3
  41. package/dist/dom/types/html/top-layer.d.ts +26 -3
  42. package/dist/dom/types/keys.d.ts +19 -1
  43. package/dist/dom/types/nodes/Document.d.ts +11 -3
  44. package/dist/dom/types/nodes/attributes.d.ts +3 -0
  45. package/dist/dom/types/nodes/traverse.d.ts +10 -4
  46. package/dist/dom/types/observers/MutationObserver.d.ts +5 -5
  47. package/dist/dom/types/observers/MutationRecord.d.ts +2 -1
  48. package/dist/dom/types/observers/queue.d.ts +19 -20
  49. package/dist/dom/types/parser/index.d.ts +1 -1
  50. package/dist/dom/types/parser/tokenizer.d.ts +0 -2
  51. package/dist/dom/types/selectors/compile.d.ts +2 -2
  52. package/dist/dom/types/selectors/index.d.ts +2 -6
  53. package/dist/dom/types/selectors/internal.d.ts +3 -6
  54. package/dist/dom/types/selectors/parser.d.ts +0 -5
  55. package/dist/dom/types/selectors/state.d.ts +0 -5
  56. package/dist/dom/types/serializer/index.d.ts +0 -2
  57. package/dist/dom/types/traversal/Range.d.ts +1 -3
  58. package/dist/dom/types/traversal/live.d.ts +8 -4
  59. package/dist/dom/types/{events/convert.d.ts → webidl-convert.d.ts} +0 -2
  60. package/dist/dom/types/window/FileReader.d.ts +6 -2
  61. package/dist/dom/types/window/Storage.d.ts +16 -5
  62. package/dist/dom/types/window/Window.d.ts +2 -2
  63. package/dist/dom/types/window/clock.d.ts +21 -14
  64. package/dist/dom/types/window/devtools-console.d.ts +2 -0
  65. package/dist/dom/types/window/shared-accessors.d.ts +9 -0
  66. package/dist/dom/types/window/timers.d.ts +10 -6
  67. package/dist/jest-dom/_chunks/matchers-DGsBvtWC.js +1 -1
  68. package/dist/react/_chunks/pure-0apusBJy.cjs +1 -0
  69. package/dist/react/_chunks/pure-CRYsLxrp.js +1 -0
  70. package/dist/react/index.cjs +1 -1
  71. package/dist/react/index.js +1 -1
  72. package/dist/react/pure.cjs +1 -1
  73. package/dist/react/pure.js +1 -1
  74. package/dist/react/types/config.d.ts +3 -1
  75. package/dist/react/types/fire-event.d.ts +1 -1
  76. package/dist/react/types/pure.d.ts +2 -2
  77. package/dist/testing-library/_chunks/aria-snapshot-diff-BSXxnyqJ.js +1 -1
  78. package/dist/testing-library/agent.js +1 -1
  79. package/dist/testing-library/index.js +1 -1
  80. package/dist/user-event/index.cjs +16 -16
  81. package/dist/user-event/index.js +16 -16
  82. package/dist/user-event/types/ctrl-dom.d.ts +0 -13
  83. package/dist/user-event/types/event/selection/selectBoundaries.d.ts +2 -0
  84. package/dist/user-event/types/pointer/index.d.ts +1 -1
  85. package/dist/user-event/types/pointer/parseKeyDef.d.ts +2 -5
  86. package/dist/user-event/types/setup/dtl.d.ts +0 -2
  87. package/dist/user-event/types/system/index.d.ts +2 -1
  88. package/dist/user-event/types/system/keyboard.d.ts +1 -1
  89. package/dist/user-event/types/system/pointer/device.d.ts +5 -4
  90. package/dist/user-event/types/utility/upload.d.ts +1 -4
  91. package/dist/user-event/types/utils/keyDef/readNextDescriptor.d.ts +1 -1
  92. package/dist/vitest-environment/failure-snapshot.js +1 -1
  93. package/dist/vitest-environment/plugin.js +1 -1
  94. package/dist/vitest-environment/types/warm-forks.d.ts +0 -7
  95. package/package.json +2 -3
  96. package/dist/dom/_chunks/src-DqpTBH8Z.js +0 -50
  97. package/dist/react/_chunks/pure-C0lYKcec.js +0 -1
  98. package/dist/react/_chunks/pure-xBh9btvi.cjs +0 -1
  99. package/dist/react/types/dtl.d.ts +0 -1
package/dist/dom/index.js CHANGED
@@ -1 +1 @@
1
- export{Mr as AbstractRange,Ss as AnimationEvent,za as Attr,an as Audio,Cs as BeforeUnloadEvent,Ja as CDATASection,t as CSS,bi as CSSConditionRule,xi as CSSContainerRule,Si as CSSFontFaceRule,Ci as CSSGroupingRule,wi as CSSImportRule,Ti as CSSKeyframeRule,Ei as CSSKeyframesRule,Di as CSSLayerBlockRule,Oi as CSSLayerStatementRule,ki as CSSMediaRule,Ai as CSSNamespaceRule,ji as CSSNestedDeclarations,Mi as CSSPageRule,Ni as CSSPropertyRule,Pi as CSSRule,Fi as CSSRuleList,Ii as CSSScopeRule,Li as CSSStartingStyleRule,ia as CSSStyleDeclaration,Ri as CSSStyleRule,zi as CSSStyleSheet,Bi as CSSSupportsRule,Ya as CharacterData,_r as Clipboard,Rs as ClipboardEvent,vr as ClipboardItem,ws as CloseEvent,Lr as CommandEvent,Xa as Comment,zs as CompositionEvent,ha as CustomElementRegistry,Ts as CustomEvent,rr as CustomStateSet,wr as DOMImplementation,Ea as DOMMatrix,Ea as WebKitCSSMatrix,Da as DOMMatrixReadOnly,Sr as DOMParser,Oa as DOMPoint,ka as DOMPointReadOnly,O as DOMQuad,Aa as DOMRect,Aa as SVGRect,ja as DOMRectList,Ma as DOMRectReadOnly,Ba as DOMStringMap,Va as DOMTokenList,T as DataTransfer,E as DataTransferItem,D as DataTransferItemList,Tr as Document,Tr as HTMLDocument,qa as DocumentFragment,Ka as DocumentType,Bs as DragEvent,xa as Element,ir as ElementInternals,Es as ErrorEvent,ac as Event,us as EventTarget,it as FileList,P as FileReader,Vs as FocusEvent,z as FormData,Ds as FormDataEvent,dn as HTMLAnchorElement,fn as HTMLAreaElement,on as HTMLAudioElement,pn as HTMLBRElement,mn as HTMLBaseElement,hn as HTMLBodyElement,Y as HTMLButtonElement,gn as HTMLCanvasElement,$a as HTMLCollection,_n as HTMLDListElement,vn as HTMLDataElement,H as HTMLDataListElement,rn as HTMLDetailsElement,in as HTMLDialogElement,yn as HTMLDirectoryElement,bn as HTMLDivElement,ar as HTMLElement,xn as HTMLEmbedElement,K as HTMLFieldSetElement,Sn as HTMLFontElement,ua as HTMLFormControlsCollection,V as HTMLFormElement,Cn as HTMLFrameElement,wn as HTMLFrameSetElement,Tn as HTMLHRElement,En as HTMLHeadElement,Dn as HTMLHeadingElement,On as HTMLHtmlElement,kn as HTMLIFrameElement,An as HTMLImageElement,nt as HTMLInputElement,jn as HTMLLIElement,J as HTMLLabelElement,q as HTMLLegendElement,Zt as HTMLLinkElement,Mn as HTMLMapElement,Nn as HTMLMarqueeElement,sn as HTMLMediaElement,Pn as HTMLMenuElement,Fn as HTMLMetaElement,U as HTMLMeterElement,In as HTMLModElement,Ln as HTMLOListElement,Rn as HTMLObjectElement,X as HTMLOptGroupElement,Z as HTMLOptionElement,da as HTMLOptionsCollection,W as HTMLOutputElement,zn as HTMLParagraphElement,Bn as HTMLParamElement,Vn as HTMLPictureElement,Hn as HTMLPreElement,G as HTMLProgressElement,Un as HTMLQuoteElement,Qt as HTMLScriptElement,et as HTMLSelectElement,tn as HTMLSlotElement,Wn as HTMLSourceElement,Gn as HTMLSpanElement,$t as HTMLStyleElement,Kn as HTMLTableCaptionElement,qn as HTMLTableCellElement,Jn as HTMLTableColElement,Yn as HTMLTableElement,Xn as HTMLTableRowElement,Zn as HTMLTableSectionElement,nn as HTMLTemplateElement,tt as HTMLTextAreaElement,Qn as HTMLTimeElement,en as HTMLTitleElement,$n as HTMLTrackElement,er as HTMLUListElement,tr as HTMLUnknownElement,cn as HTMLVideoElement,Os as HashChangeEvent,br as History,nr as Image,Hs as InputEvent,j as IntersectionObserver,M as IntersectionObserverEntry,Us as KeyboardEvent,xr as Location,ot as MathMLElement,ln as MediaError,Vi as MediaList,hi as MediaQueryList,vi as MediaQueryListEvent,ks as MessageEvent,Ws as MouseEvent,w as MutationObserver,Ko as MutationRecord,La as NamedNodeMap,yr as Navigator,lo as Node,kr as NodeFilter,Ar as NodeIterator,qo as NodeList,Q as Option,As as PageTransitionEvent,Gs as PointerEvent,js as PopStateEvent,Za as ProcessingInstruction,Ms as ProgressEvent,Ns as PromiseRejectionEvent,fa as RadioNodeList,Nr as Range,N as ResizeObserver,k as ResizeObserverEntry,A as ResizeObserverSize,st as SVGAElement,qt as SVGAnimatedPreserveAspectRatio,Jt as SVGAnimatedRect,ct as SVGAnimatedString,lt as SVGCircleElement,ut as SVGClipPathElement,dt as SVGDefsElement,ft as SVGDescElement,pt as SVGElement,mt as SVGEllipseElement,ht as SVGFilterElement,gt as SVGForeignObjectElement,_t as SVGGElement,vt as SVGGeometryElement,yt as SVGGradientElement,bt as SVGGraphicsElement,xt as SVGImageElement,St as SVGLineElement,Ct as SVGLinearGradientElement,wt as SVGMarkerElement,Tt as SVGMaskElement,Et as SVGMetadataElement,Yt as SVGNumber,Dt as SVGPathElement,Ot as SVGPatternElement,kt as SVGPolygonElement,At as SVGPolylineElement,Xt as SVGPreserveAspectRatio,jt as SVGRadialGradientElement,Mt as SVGRectElement,Nt as SVGSVGElement,Pt as SVGScriptElement,Ft as SVGStopElement,It as SVGStyleElement,Lt as SVGSwitchElement,Rt as SVGSymbolElement,zt as SVGTSpanElement,Bt as SVGTextContentElement,Vt as SVGTextElement,Ht as SVGTextPathElement,Ut as SVGTextPositioningElement,Wt as SVGTitleElement,Gt as SVGUseElement,Kt as SVGViewElement,hr as Screen,Or as Selection,Ha as ShadowRoot,Pr as StaticRange,mr as Storage,Ps as StorageEvent,Hi as StyleSheet,Ui as StyleSheetList,Fs as SubmitEvent,Qa as Text,Ks as TextEvent,un as TimeRanges,Is as ToggleEvent,qs as Touch,Js as TouchEvent,Ys as TouchList,Ls as TransitionEvent,jr as TreeWalker,Xs as UIEvent,la as ValidityState,gr as VisualViewport,Zs as WheelEvent,lr as Window,Er as XMLDocument,F as XMLHttpRequest,I as XMLHttpRequestEventTarget,L as XMLHttpRequestUpload,Cr as XMLSerializer,ur as createWindow,vs as currentDocument,ys as currentWindow,bs as currentWindowOrNull,Kr as getComputedStyle,R as installGlobals,xs as setCurrentWindow}from"./_chunks/src-DqpTBH8Z.js";
1
+ export{Pr as AbstractRange,Ss as AnimationEvent,za as Attr,sn as Audio,Cs as BeforeUnloadEvent,Ja as CDATASection,t as CSS,mi as CSSConditionRule,hi as CSSContainerRule,gi as CSSFontFaceRule,_i as CSSGroupingRule,vi as CSSImportRule,yi as CSSKeyframeRule,bi as CSSKeyframesRule,xi as CSSLayerBlockRule,Si as CSSLayerStatementRule,Ci as CSSMediaRule,wi as CSSNamespaceRule,Ti as CSSNestedDeclarations,Ei as CSSPageRule,Di as CSSPropertyRule,Oi as CSSRule,ki as CSSRuleList,Ai as CSSScopeRule,ji as CSSStartingStyleRule,oa as CSSStyleDeclaration,Mi as CSSStyleRule,Ni as CSSStyleSheet,Pi as CSSSupportsRule,Ya as CharacterData,yr as Clipboard,Rs as ClipboardEvent,br as ClipboardItem,ws as CloseEvent,zr as CommandEvent,Xa as Comment,zs as CompositionEvent,_a as CustomElementRegistry,Ts as CustomEvent,ar as CustomStateSet,Er as DOMImplementation,Ea as DOMMatrix,Ea as WebKitCSSMatrix,Da as DOMMatrixReadOnly,wr as DOMParser,Oa as DOMPoint,ka as DOMPointReadOnly,O as DOMQuad,Aa as DOMRect,Aa as SVGRect,ja as DOMRectList,Ma as DOMRectReadOnly,Ba as DOMStringMap,Va as DOMTokenList,T as DataTransfer,E as DataTransferItem,D as DataTransferItemList,Dr as Document,Dr as HTMLDocument,qa as DocumentFragment,Ka as DocumentType,Bs as DragEvent,xa as Element,or as ElementInternals,Es as ErrorEvent,sc as Event,us as EventTarget,ot as FileList,P as FileReader,Vs as FocusEvent,V as FormData,Ds as FormDataEvent,pn as HTMLAnchorElement,mn as HTMLAreaElement,cn as HTMLAudioElement,hn as HTMLBRElement,gn as HTMLBaseElement,_n as HTMLBodyElement,Z as HTMLButtonElement,vn as HTMLCanvasElement,$a as HTMLCollection,yn as HTMLDListElement,bn as HTMLDataElement,W as HTMLDataListElement,an as HTMLDetailsElement,on as HTMLDialogElement,xn as HTMLDirectoryElement,Sn as HTMLDivElement,sr as HTMLElement,Cn as HTMLEmbedElement,J as HTMLFieldSetElement,wn as HTMLFontElement,fa as HTMLFormControlsCollection,U as HTMLFormElement,Tn as HTMLFrameElement,En as HTMLFrameSetElement,Dn as HTMLHRElement,On as HTMLHeadElement,kn as HTMLHeadingElement,An as HTMLHtmlElement,jn as HTMLIFrameElement,Mn as HTMLImageElement,it as HTMLInputElement,Nn as HTMLLIElement,X as HTMLLabelElement,Y as HTMLLegendElement,$t as HTMLLinkElement,Pn as HTMLMapElement,Fn as HTMLMarqueeElement,ln as HTMLMediaElement,In as HTMLMenuElement,Ln as HTMLMetaElement,G as HTMLMeterElement,Rn as HTMLModElement,zn as HTMLOListElement,Bn as HTMLObjectElement,$ as HTMLOptGroupElement,et as HTMLOptionElement,pa as HTMLOptionsCollection,K as HTMLOutputElement,Vn as HTMLParagraphElement,Hn as HTMLParamElement,Un as HTMLPictureElement,Wn as HTMLPreElement,q as HTMLProgressElement,Gn as HTMLQuoteElement,en as HTMLScriptElement,Q as HTMLSelectElement,rn as HTMLSlotElement,Kn as HTMLSourceElement,qn as HTMLSpanElement,tn as HTMLStyleElement,Jn as HTMLTableCaptionElement,Yn as HTMLTableCellElement,Xn as HTMLTableColElement,Zn as HTMLTableElement,Qn as HTMLTableRowElement,$n as HTMLTableSectionElement,in as HTMLTemplateElement,rt as HTMLTextAreaElement,er as HTMLTimeElement,nn as HTMLTitleElement,tr as HTMLTrackElement,nr as HTMLUListElement,rr as HTMLUnknownElement,un as HTMLVideoElement,Os as HashChangeEvent,Sr as History,ir as Image,Hs as InputEvent,j as IntersectionObserver,M as IntersectionObserverEntry,Us as KeyboardEvent,Cr as Location,ct as MathMLElement,dn as MediaError,Fi as MediaList,li as MediaQueryList,fi as MediaQueryListEvent,ks as MessageEvent,Ws as MouseEvent,w as MutationObserver,Ko as MutationRecord,La as NamedNodeMap,xr as Navigator,lo as Node,jr as NodeFilter,Mr as NodeIterator,qo as NodeList,tt as Option,As as PageTransitionEvent,Gs as PointerEvent,js as PopStateEvent,Za as ProcessingInstruction,Ms as ProgressEvent,Ns as PromiseRejectionEvent,ma as RadioNodeList,Fr as Range,N as ResizeObserver,k as ResizeObserverEntry,A as ResizeObserverSize,lt as SVGAElement,Yt as SVGAnimatedPreserveAspectRatio,Xt as SVGAnimatedRect,ut as SVGAnimatedString,dt as SVGCircleElement,ft as SVGClipPathElement,pt as SVGDefsElement,mt as SVGDescElement,ht as SVGElement,gt as SVGEllipseElement,_t as SVGFilterElement,vt as SVGForeignObjectElement,yt as SVGGElement,bt as SVGGeometryElement,xt as SVGGradientElement,St as SVGGraphicsElement,Ct as SVGImageElement,wt as SVGLineElement,Tt as SVGLinearGradientElement,Et as SVGMarkerElement,Dt as SVGMaskElement,Ot as SVGMetadataElement,Zt as SVGNumber,kt as SVGPathElement,At as SVGPatternElement,jt as SVGPolygonElement,Mt as SVGPolylineElement,Qt as SVGPreserveAspectRatio,Nt as SVGRadialGradientElement,Pt as SVGRectElement,Ft as SVGSVGElement,It as SVGScriptElement,Lt as SVGStopElement,Rt as SVGStyleElement,zt as SVGSwitchElement,Bt as SVGSymbolElement,Vt as SVGTSpanElement,Ht as SVGTextContentElement,Ut as SVGTextElement,Wt as SVGTextPathElement,Gt as SVGTextPositioningElement,Kt as SVGTitleElement,qt as SVGUseElement,Jt as SVGViewElement,_r as Screen,Ar as Selection,Ha as ShadowRoot,Ir as StaticRange,gr as Storage,Ps as StorageEvent,Ii as StyleSheet,Li as StyleSheetList,Fs as SubmitEvent,Qa as Text,Ks as TextEvent,fn as TimeRanges,Is as ToggleEvent,qs as Touch,Js as TouchEvent,Ys as TouchList,Ls as TransitionEvent,Nr as TreeWalker,Xs as UIEvent,da as ValidityState,vr as VisualViewport,Zs as WheelEvent,dr as Window,Or as XMLDocument,F as XMLHttpRequest,I as XMLHttpRequestEventTarget,L as XMLHttpRequestUpload,Tr as XMLSerializer,fr as createWindow,vs as currentDocument,ys as currentWindow,bs as currentWindowOrNull,Jr as getComputedStyle,R as installGlobals,xs as setCurrentWindow}from"./_chunks/src-B3vkUXY6.js";
@@ -1 +1 @@
1
- import{$ as e,$a as t,$c as n,$d as r,$f as i,$i as a,$l as o,$o as s,$r as c,$s as ee,$u as te,Ac as ne,Ad as re,Af as ie,Al as l,Ao as ae,Au as oe,B as se,Bc as ce,Bd as le,Bf as ue,Bl as de,Bo as fe,Br as pe,Bu as me,C as he,Ca as ge,Cc as _e,Cd as ve,Cf as ye,Cl as be,Co as xe,Cu as Se,Dc as Ce,Dd as we,Df as Te,Dl as Ee,Do as De,Dr as Oe,Du as ke,Ec as Ae,Ed as je,Ef as Me,El as Ne,Eo as Pe,Eu as Fe,Fa as Ie,Fc as u,Fd as d,Ff as f,Fl as p,Fo as m,Fr as h,Fu as g,Ga as _,Gc as v,Gd as Le,Gf as Re,Gi as ze,Gl as Be,Go as Ve,Gr as He,Gu as Ue,Hc as We,Hd as Ge,Hf as Ke,Hl as qe,Ho as y,Hr as Je,Hu as Ye,Ia as Xe,Ic as Ze,Id as Qe,If as $e,Il as et,Io as tt,Ir as nt,Iu as rt,Jc as it,Jd as at,Jf as ot,Ji as st,Jl as ct,Jo as lt,Jr as ut,Ju as dt,Kc as ft,Kd as pt,Kf as mt,Ki as ht,Kl as gt,Kr as _t,Ku as vt,Lc as yt,Ld as bt,Lf as xt,Ll as St,Lo as Ct,Lu as wt,Mc as Tt,Md as Et,Mf as Dt,Ml as Ot,Mo as kt,Mu as At,Na as jt,Nc as Mt,Nd as Nt,Nf as Pt,Nl as b,No as Ft,Nu as It,Oc as Lt,Od as Rt,Of as zt,Ol as Bt,Oo as Vt,Ou as Ht,Pa as Ut,Pc as Wt,Pd as x,Pf as Gt,Pl as Kt,Po as qt,Pu as Jt,Qc as Yt,Qd as S,Qf as Xt,Qi as Zt,Ql as Qt,Qo as $t,Qr as en,Qs as C,Qu as tn,Ra as nn,Rc as rn,Rd as an,Rf as on,Rl as sn,Ro as cn,Rr as ln,Ru as un,S as dn,Sa as fn,Sc as pn,Sd as mn,Sf as hn,Sl as gn,So as _n,Su as vn,Ta as yn,Tc as bn,Td as xn,Tf as Sn,Tl as Cn,To as wn,Tu as Tn,Ua as En,Uc as Dn,Ud as On,Uf as kn,Ul as An,Uo as w,Ur as jn,Uu as Mn,Vc as T,Vd as Nn,Vf as Pn,Vl as Fn,Vo as In,Vr as Ln,Vu as Rn,Wa as zn,Wc as Bn,Wd as Vn,Wf as Hn,Wi as Un,Wl as E,Wo as D,Wr as Wn,Wu as Gn,Xc as Kn,Xd as qn,Xf as Jn,Xi as Yn,Xl as Xn,Xo as Zn,Xr as Qn,Xu as $n,Yc as er,Yd as tr,Yf as nr,Yi as rr,Yl as O,Yo as ir,Yr as ar,Yu as k,Zc as or,Zd as A,Zf as sr,Zi as cr,Zl as lr,Zo as ur,Zr as dr,Zu as fr,_ as pr,_a as mr,_c as hr,_d as gr,_f as _r,_i as vr,_l as yr,_o as br,_s as xr,_u as Sr,a as Cr,aa as wr,ad as Tr,af as Er,ai as Dr,al as Or,ao as kr,as as Ar,at as j,au as jr,b as Mr,ba as Nr,bc as Pr,bd as M,bf as Fr,bl as Ir,bo as Lr,bs as N,bu as Rr,c as zr,ca as Br,cc as Vr,cd as Hr,cf as Ur,ci as Wr,cl as Gr,co as Kr,cr as qr,cs as Jr,cu as Yr,d as Xr,dc as Zr,dd as Qr,df as $r,di as ei,dl as ti,do as ni,dr as P,ds as ri,du as ii,ea as ai,ec as oi,ed as si,ef as ci,ei as li,el as ui,eo as di,ep as fi,es as pi,eu as mi,f as hi,fc as gi,fd as _i,ff as vi,fi as yi,fl as bi,fo as xi,fr as Si,fs as Ci,fu as wi,g as Ti,ga as Ei,gc as Di,gd as Oi,gf as ki,gi as Ai,gl as F,go as ji,gs as Mi,gu as Ni,h as Pi,hc as Fi,hd as Ii,hf as Li,hl as I,ho as Ri,hs as zi,hu as Bi,i as Vi,ic as Hi,id as Ui,if as Wi,ii as Gi,il as Ki,io as qi,is as Ji,iu as Yi,jc as Xi,jd as Zi,jf as Qi,jl as $i,jo as ea,ju as ta,kc as na,kd as ra,kf as ia,kl as aa,ko as oa,ku as sa,l as ca,lc as la,ld as ua,lf as da,li as fa,ll as pa,lr as L,ls as ma,lu as ha,m as R,ma as ga,mc as _a,md as va,mf as ya,mi as ba,ml as xa,mo as Sa,ms as Ca,mu as wa,n as Ta,na as Ea,nc as Da,nd as Oa,nf as ka,ni as Aa,nl as ja,no as Ma,np as Na,ns as Pa,nu as Fa,o as Ia,oa as La,oc as Ra,od as za,of as Ba,oi as Va,ol as z,oo as Ha,or as Ua,os as Wa,ou as Ga,p as Ka,pa as qa,pc as Ja,pd as Ya,pf as Xa,pi as Za,pl as Qa,po as $a,pr as eo,ps as to,pu as no,qc as ro,qd as io,qf as ao,qi as oo,ql as B,qo as so,qr as co,qu as lo,r as uo,ra as fo,rc as po,rd as mo,rf as ho,ri as go,rl as _o,ro as vo,rs as yo,rt as bo,ru as xo,s as So,sa as Co,sc as wo,sd as To,sf as Eo,si as Do,sl as Oo,so as ko,sr as Ao,ss as jo,su as Mo,ta as No,tc as Po,td as Fo,tf as Io,ti as Lo,tl as Ro,to as zo,tp as Bo,ts as Vo,tu as Ho,u as Uo,uc as Wo,ud as Go,uf as Ko,ui as qo,ul as Jo,uo as Yo,uu as Xo,v as Zo,va as Qo,vc as $o,vd as es,vf as ts,vl as ns,vo as rs,vu as is,wa as as,wc as os,wd as ss,wf as cs,wl as ls,wo as us,wu as ds,x as fs,xc as ps,xd as ms,xf as hs,xl as gs,xo as _s,xu as vs,y as ys,ya as bs,yc as xs,yd as Ss,yf as Cs,yi as ws,yl as Ts,yo as Es,yu as Ds,zc as Os,zd as ks,zf as As,zl as js,zo as V,zr as Ms,zu as Ns}from"./_chunks/src-DqpTBH8Z.js";import{constants as Ps,createContext as Fs,runInContext as Is}from"node:vm";import*as H from"node:diagnostics_channel";let U=null;function targets(){let e=/* @__PURE__ */ new Set,t=P();for(let n in t){let r=t[n];if(r===null||typeof r!=`object`&&typeof r!=`function`)continue;e.add(r);let i=r.prototype;typeof r==`function`&&typeof i==`object`&&i&&e.add(i)}return e.add(L.prototype),[...e]}function snapshot(e){let t=Reflect.ownKeys(e),n=Array(t.length);for(let r=0;r<t.length;r++){let i=t[r];n[r]=isArrayIndex(i)?null:Object.getOwnPropertyDescriptor(e,i)}return{target:e,keys:t,descriptors:n,keySet:null}}let W=null;function captureInterfaceBaseline(){if(U===null){U=[],W=/* @__PURE__ */ new WeakSet;for(let e of targets())U.push(snapshot(e)),W.add(e);ownObjectCreateMaps()}}let Ls=null;function ownObjectCreateMaps(){if(U===null)return;let e=Ls??=Is(`(prototypes) => prototypes.map((p) => Object.create(p))`,Fs(Ps.DONT_CONTEXTIFY)),t=[Object.prototype];for(let e=0;e<U.length;e++){let n=U[e].target;typeof n!=`function`&&t.push(n)}e(t)}function configurableDescriptor(e){return typeof e==`object`&&e&&e.configurable!==!0?{...e,configurable:!0}:e}function guardInterfaceDefinitions(e){let t=W;if(t===null)return;let n=e.Object,r=e.Reflect,i=n.defineProperty,a=n.defineProperties,o=r.defineProperty,s={defineProperty(e,n,r){return i(e,n,t.has(e)?configurableDescriptor(r):r)},defineProperties(e,n){if(!t.has(e)||typeof n!=`object`||!n)return a(e,n);let r={};for(let e of Reflect.ownKeys(n))Object.getOwnPropertyDescriptor(n,e)?.enumerable&&(r[e]=configurableDescriptor(n[e]));return a(e,r)},reflectDefineProperty(e,n,r){return o(e,n,t.has(e)?configurableDescriptor(r):r)}};Object.defineProperty(s.reflectDefineProperty,"name",{value:`defineProperty`}),Object.defineProperty(n,"defineProperty",{value:s.defineProperty,writable:!0,configurable:!0,enumerable:!1}),Object.defineProperty(n,"defineProperties",{value:s.defineProperties,writable:!0,configurable:!0,enumerable:!1}),Object.defineProperty(r,"defineProperty",{value:s.reflectDefineProperty,writable:!0,configurable:!0,enumerable:!1})}function isArrayIndex(e){if(typeof e!=`string`||e===``||e.length>10)return!1;let t=Number(e);return t>>>0===t&&t!==4294967295&&String(t)===e}function sameDescriptor(e,t){return e.value===t.value&&e.get===t.get&&e.set===t.set&&e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable}function restoreInterfaces(){if(U===null)return 0;let e=0;for(let t=0;t<U.length;t++){let n=U[t],r=n.target,i=Reflect.ownKeys(r);for(let t=0;t<i.length;t++){let a=i[t];a===n.keys[t]||(n.keySet??=new Set(n.keys)).has(a)||isArrayIndex(a)||Reflect.deleteProperty(r,a)&&e++}for(let t=0;t<n.keys.length;t++){let i=n.keys[t],a=n.descriptors[t];if(a===null)continue;let o=Object.getOwnPropertyDescriptor(r,i);if(!(o!==void 0&&sameDescriptor(o,a)))try{Object.defineProperty(r,i,a),e++}catch{}}}return ownObjectCreateMaps(),e}const G=`ctrl-dom:span`,K=typeof H.tracingChannel==`function`?H.tracingChannel(G):null;function spanChannel(){return K}function tracing(){return K!==null&&K.hasSubscribers}function traceSync(e,t,n){let r={op:e,description:t,data:{},async:!1},i=A();return K.traceSync(e=>{try{return n(e)}finally{recordSkipped(e,i)}},r,void 0,r)}function tracePromise(e,t,n){let r={op:e,description:t,data:{},async:!0},i=A();return K.tracePromise(e=>n(e).finally(()=>recordSkipped(e,i)),r,void 0,r)}function recordSkipped(e,t){let n=A()-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[B]!==void 0)return describeNode(e);if(Array.isArray(e))return t>0?`[…]`:`[${e.slice(0,3).map(e=>describeValue(e,t+1)).join(`, `)}${e.length>3?`, …`:``}]`;if(t>0)return`{…}`;let n=Object.entries(e).slice(0,4);return n.length===0?`{}`:`{ ${n.map(([e,n])=>`${e}: ${describeValue(n,t+1)}`).join(`, `)} }`}let q=null;function setNodeDescriber(e){q=e}function describeNode(e){let t=e;if(t.nodeType===9)return`document`;if(t.nodeType!==1||typeof t.localName!=`string`)return t.nodeType===3?`#text`:`node`;if(q!==null)try{let t=q(e);if(t)return t}catch{}if(t.localName===`body`||t.localName===`html`)return`<${t.localName}>`;let n=t.getAttribute?.(`aria-label`)||t.textContent?.trim().replace(/\s+/g,` `)||t.getAttribute?.(`placeholder`)||t.getAttribute?.(`name`)||``;return n===``?`<${t.localName}>`:`<${t.localName} ${quote(n)}>`}function quote(e){return JSON.stringify(e.length>40?`${e.slice(0,39)}…`:e)}const J=`sentry-tests:failure`;let Y=null;function setFailureSnapshot(e){Y=e}function subscribeTestFailures(e){let t=H.channel(J),onFailure=t=>{let n=t,r=e();if(r==null||n.document!==r)return;let i=S();if(i!==null&&(n.contexts.clock={skipped_ms:Math.round(i.skippedMs),pending_timers:i.pendingTimers}),Y!==null&&r.body!=null)try{n.attachments.push({filename:`accessibility-snapshot.txt`,contentType:`text/plain`,data:Y(r.body)})}catch{}};return t.subscribe(onFailure),()=>t.unsubscribe(onFailure)}var FileState=class{hooks;url;constructor(){this.hooks=/* @__PURE__ */ new Map,this.url=null}};const X=/* @__PURE__ */ new WeakMap;function stateOf(e){let t=X.get(e);return t===void 0&&X.set(e,t=new FileState),t}function registerTestHooks(e,t){let n=N();if(n===null)return;let r=stateOf(n).hooks;r.set(e,{...r.get(e),...t})}function testHooks(){let e=N(),t=e===null?void 0:X.get(e);return t===void 0?[]:[...t.hooks.values()]}function resetWindowBetweenFiles(e){let t=stateOf(e);for(let e of t.hooks.values())try{e.fileEnd?.()}catch{}tr(),Si(e);let n=e[M];if(n!==null){for(let e of n)e.clear(e.handle);n.clear()}e[l]=null,e[k]=null,e[b]=null,e[E]=null;let r=e.document;r.getSelection()?.removeAllRanges();let i=r.body;i!==null&&(i.replaceChildren(),removeAttributes(i)),r.documentElement!==null&&removeAttributes(r.documentElement),e.localStorage.clear(),e.sessionStorage.clear(),e[v]=null;let a=t.url??=e.location.href;e.location.href!==a&&e._setURL(new URL(a));let o=e.history;o[I]=[{url:a,state:null}],o[O]=0}function removeAttributes(e){let t=e.getAttributeNames();for(let n=0;n<t.length;n++)e.removeAttribute(t[n])}function implOf(e){return e[B]??e}function isTypingType(e){return y(e)||e===12||e>=7&&e<=11}function isEditable(e){let t=implOf(e);return t.tag===C.input?isTypingType(V(t))&&R(t):t.tag===C.textarea?R(t):jn(t)}function supportsSelection(e){let t=implOf(e);return t.tag===C.textarea||t.tag===C.input&&w(V(t))}function hasUIValue(e){let t=implOf(e);return t.tag===C.textarea||t.tag===C.input&&D(V(t))===0}function getUIValue(e){let t=implOf(e);if(t.tag===C.input){let e=t.node;return e[T].uiValue??e.value}return t.tag===C.textarea?t.node.value:``}function setUIValue(e,t){let n=implOf(e);if(n.tag===C.input){let e=n.node,r=V(n);if(D(r)!==0)return;let i=bo(r,t,n);n.doc[x]++,e[T].value=i,e[T].dirtyValue=!0,e[T].userEdited=!0,e[T].uiValue=i===t?null:t,e[T].badInput=i===``&&t!==``&&r!==5&&!y(r);let a=t.length;e[T].selStart>a&&(e[T].selStart=a),e[T].selEnd>a&&(e[T].selEnd=a)}else if(n.tag===C.textarea){let e=n.node;n.doc[x]++,e[T].value=ga(t),e[T].dirtyValue=!0,e[T].userEdited=!0}}function clearUIValue(e){let t=implOf(e);if(t.tag===C.input){let e=t.node;e[T].uiValue=null,e[T].badInput=!1}}function getUISelection(e){let t=implOf(e).node,n=getUIValue(e).length;return{start:Math.min(t[T].selStart,n),end:Math.min(t[T].selEnd,n),direction:t[T].selDir}}function setUISelection(e,t,n=t,r=`none`){let i=implOf(e);if(i.tag!==C.input&&i.tag!==C.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].selStart=s,a[T].selEnd=c,a[T].selDir=r}function setFilesFromUI(e,t){let n=implOf(e);n.tag===C.input&&V(n)===17&&(n.doc[x]++,n.node[T].files=j(t))}function setOptionSelectedFromUI(t,n){let r=implOf(t);if(r.tag!==C.option)return;let i=r.node;i._setSelectedness(n),i[z]=!0;let a=e(r);if(a!==null){let e=a.node;n&&e._deselectOthers(r),e._updateSelectedContent()}}function setCheckedFromUI(e,t){let n=implOf(e);n.tag===C.input&&n.node._setCheckedness(t,!0)}const Rs=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===Rs||typeof n!=`function`||se.has(n))return null;if(Q?.deref()===n&&Z?.deref()===t){let e=$.deref();if(e!==void 0)return e}let r=n.bind(t);return Z=new WeakRef(t),Q=new WeakRef(n),$=new WeakRef(r),r}export{Vr as $_proto__,la as $aboutBase,Wo as $active,Zr as $assocGen,gi as $attr,Ja as $attributes,_a as $availableToElementInternals,Fi as $baseFor,Di as $baseOverride,hr as $baseURL,$o as $baseVersion,xs as $benign,Pr as $block,ps as $blockParsed,pn as $blockText,_e as $byCtor,os as $byName,bn as $cache,Ae as $callback,Ce as $childNodes,Lt as $childWindows,na as $children,ne as $classList,Xi as $clipboard,Tt as $clonable,Mt as $closed,Wt as $coll,u as $compiled,Ze as $compiledFor,yt as $condition,rn as $constructed,Os as $constructingEntryList,ce as $contentType,T as $control,We as $controlsCache,Dn as $controlsDoc,Bn as $controlsVersion,v as $cookieJar,ft as $cookies,ro as $css,it as $current,er as $customElements,Kn as $customValidity,or as $cx,Yt as $data,n as $dataset,ui as $declarative,Ro as $defaultNamespace,ja as $defaultValueOverride,_o as $delegatesFocus,Ki as $derived,Or as $devicePixelRatio,z as $dirtiness,Oo as $disabled,Gr as $disallowModification,pa as $doc,Jo as $dropEffect,ti as $ec,bi as $effectAllowed,Qa as $el,xa as $elements,I as $entries,F as $eo,yr as $error,ns as $externalFormNames,Ts as $file,Ir as $files,gs as $fill,gn as $filter,be as $firingSubmissionEvents,ls as $focused,Cn as $forLabels,Ne as $form,Ee as $formAttrSeen,Bt as $formControlsVersion,aa as $forms,l as $frameCallbacks,$i as $frameElement,Ot as $frameId,b as $frameTask,Kt as $frameTime,p as $generation,et as $globalObject,St as $hasTransients,sn as $height,js as $history,de as $home,Fn as $host,qe as $href,An as $id,E as $idleCallbacks,Be as $idleId,gt as $ids,B as $impl,ct as $implementation,O as $index,Xn as $indexed,lr as $inflight,Qt as $info,o as $innerHeight,mi as $innerWidth,Ho as $isHTML,Fa as $items,xo as $keyText,Yi as $kind,jr as $labels,Ga as $layerName,Mo as $list,Yr as $listenerTypesChanged,ha as $listeners,Xo as $localStorage,ii as $location,wi as $lockedForReset,no as $matches,wa as $media,Bi as $mediaQueryLists,Ni as $mode,Sr as $name,is as $names,Ds as $namespaces,Rr as $navigator,vs as $nodes,vn as $onchange,Se as $options,ds as $owner,Tn as $ownerNode,Fe as $ownerRule,ke as $parent,Ht as $parentRule,sa as $parentWindow,oe as $pastNames,ta as $pointerBeforeReference,At as $prefix,It as $prelude,Jt as $presentationStyle,g as $pseudo,rt as $queries,wt as $radios,un as $ranges,Ns as $readonly,me as $readyState,Rn as $rebuildVersion,Ye as $record,Mn as $records,Gn as $reference,Ue as $result,vt as $root,lo as $rules,dt as $running,k as $runningFrame,$n as $sc,fr as $screen,tn as $scrollRestoration,te as $scrollX,si as $scrollY,Fo as $selectedOptions,Oa as $selectedness,mo as $selection,Ui as $selector,Tr as $serializable,za as $sessionStorage,To as $settled,Hr as $shadowRoot,ua as $shed,Go as $sheet,Qr as $sheets,_i as $slotAssignment,Ya as $so,va as $states,Ii as $style,Oi as $styleVersion,gr as $supportsText,es as $systemId,Ss as $target,M as $tasks,ms as $timers,mn as $title,ve as $treeVersion,ss as $type,xn as $types,je as $updating,we as $updatingSelectedContent,Rt as $uri,ra as $url,re as $userActivation,Zi as $userValidity,Et as $validity,Nt as $value,x as $version,d as $visualViewport,Qe as $w,bt as $whatToShow,an as $whenDefined,ks as $width,le as $window,Nn as $writeBuffer,Ge as $x,On as $xhr,Vn as $y,Le as $z,Eo as ATTRIBUTE_NODE,Jr as AttrRecord,Ur as CDATA_SECTION_NODE,da as COMMENT_NODE,cr as COMPAT,Zt as COMPAT_PROFILES,a as DEFAULT_COMPAT,Ko as DOCUMENT_FRAGMENT_NODE,$r as DOCUMENT_NODE,vi as DOCUMENT_POSITION_CONTAINED_BY,Xa as DOCUMENT_POSITION_CONTAINS,ya as DOCUMENT_POSITION_DISCONNECTED,Li as DOCUMENT_POSITION_FOLLOWING,ki as DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC,_r as DOCUMENT_POSITION_PRECEDING,ts as DOCUMENT_TYPE_NODE,wr as DeclBlock,Cs as ELEMENT_NODE,Fr as ENTITY_NODE,hs as ENTITY_REFERENCE_NODE,Ra as EventState,J as FAILURE_CHANNEL,hn as F_ADOPT_HOOK,ye as F_ARIA_ATTRS,cs as F_ATTR_HOOK,Sn as F_CE_CUSTOM,Me as F_CHILDREN_HOOK,Te as F_CHILD_LIST,zt as F_CONNECTED,ia as F_CONNECT_HOOK,ie as F_CONTENTEDITABLE_ATTR,Qi as F_CUSTOM,Dt as F_DATA_ATTRS,Pt as F_FACE,Gt as F_FORM_ATTR,f as F_HAS_SHADOW,$e as F_HAS_STYLE_ATTR,xt as F_HTML,on as F_INERT_ATTR,As as F_MO_REGISTERED,ue as F_PARSER_FORM,Pn as F_PAST_NAMES,Ke as F_RANGE,kn as F_RANGE_BELOW,Hn as F_RANGE_MARKS,Re as F_ROLE_ATTR,mt as F_SHADOW_ROOT,ao as F_TABINDEX_ATTR,Ei as GLOBAL_EVENT_HANDLER_EVENTS,t as HTMLCollection,ot as HTML_NS,cn as INPUT_TYPE_NAMES,nr as MATHML_NS,Jn as NOTATION_NODE,ht as NodeCache,ma as NodeImpl,so as NodeList,sr as PROCESSING_INSTRUCTION_NODE,G as SPAN_CHANNEL,Xt as SVG_NS,C as T,i as TEXT_NODE,pt as VirtualClock,io as VirtualTimeout,mr as WINDOW_EVENT_HANDLER_EVENTS,fi as XLINK_NS,Bo as XMLNS_NS,Na as XML_NS,Do as adoptedStyleSheetsOf,Es as ariaAttr,Lr as asciiLowercase,$a as assignManually,Sa as assignedElements,Ri as assignedNodes,ji as assignedSlot,fn as attachShadowRoot,_s as attr,Ua as attrAssociatedElement,Ao as attrAssociatedElements,nn as attrNode,at as canSkipZeroDelayWait,captureInterfaceBaseline,Zn as childAt,_n as classTokens,clearUIValue,qn as clockNow,S as clockStats,Ma as closest,h as compareBoundaryPoints,ai as compatExposes,co as computedDisplay,ut as computedValue,ar as computedVisibility,ln as constructEntryList,Ta as controlValue,Oe as createEvent,j as createFileList,Wr as createLinkSheet,Qn as currentStyleVersion,Ms as defaultButton,No as deferredCompatMembers,ko as derivedCache,describeCall,describeNode,ri as dispatch,st as dispatchTrusted,di as ensureCollectionIndexGetters,lt as ensureIndexGetters,Ai as evaluateMediaQueryList,Co as faceState,br as findFlattenedSlottables,rs as findSlot,rr as fireAnEvent,Yn as fireSyntheticPointerEvent,ur as firstElementChild,r as foreignImmediatesPending,ae as formOwner,xe as getAttribute,_t as getComputedStyle,getComputedStyleOverride,Ci as getCurrentEvent,ge as getElementsByClassName,as as getElementsByTagName,yn as getElementsByTagNameNS,Qo as getEventHandler,getUISelection,getUIValue,guardInterfaceDefinitions,us as hasAttr,dr as hasAuthorStyles,qr as hasExplicitAttrElements,Po as hasListeners,uo as hasReadonlyAttribute,hasUIValue,Ea as hiddenGlobals,pe as implicitSubmission,ir as indexGetterTable,$t as indexOf,vo as indexedDescendantById,Vi as inputChecked,Cr as inputIndeterminate,V as inputType,fe as inputTypeFromAttr,Yo as inspectNode,ci as installClock,bs as installEventHandlers,ea as isActuallyDisabled,wn as isAsciiWhitespace,Ia as isAutofilled,So as isChecked,Io as isClockTimer,zr as isDefault,ca as isDisabled,en as isDisplayNone,c as isDisplayNoneInclusive,isEditable as isEditableControl,Uo as isEnabled,Br as isFACE,Xr as isInRange,s as isInclusiveAncestor,hi as isIndeterminate,Ka as isInvalid,kt as isLabelable,Ft as isListed,R as isMutable,In as isNumericType,Pi as isOptional,Ti as isOutOfRange,pr as isPlaceholderShown,Zo as isReadOnly,ys as isReadWrite,Mr as isRequired,qt as isResettable,Ln as isSubmitButton,m as isSubmittable,fs as isTextControl,y as isTextualType,dn as isValid,jt as isValidDoctypeName,Ut as isValidElementLocalName,Ie as isValidNamespacePrefix,li as isVisibilityHidden,tt as labeledControl,Ct as labelsFor,pi as lastElementChild,qa as listOfOptions,Da as listenerCount,ka as loopTurn,Un as matchMediaText,qi as matches,vr as mediaEnvironment,Vo as nextElementInTree,Pa as nextElementSibling,yo as nextInTree,Ji as nextSkippingChildren,oo as nodeCache,to as nodeGetTheParent,nt as nodeLength,Ve as notifyMutationObservers,he as optionSelected,La as parseDeclBlock,_ as parseFragment,ze as parseMediaQueryList,Kr as peekDerivedCache,Lo as pointerEvents,Aa as pointerEventsNone,Pe as prefixFlag,Ar as previousElementSibling,Wa as previousInTree,go as pseudoContent,kr as querySelector,Ha as querySelectorAll,quote,qo as registerOwnerSheet,registerTestHooks,po as removeAllEventListeners,De as removeAttribute,ei as removeOwnerSheet,ni as replaceData,Mi as reportException,resetWindowBetweenFiles,fo as resolveCompat,restoreInterfaces,Ca as retarget,Hi as reusableElement,En as serializeChildren,zn as serializeNode,yi as setAdoptedStyleSheets,zi as setAssignedSlotLookup,Vt as setAttribute,setCheckedFromUI,Gi as setComputedColorMode,Nr as setEventHandler,setFailureSnapshot,setFilesFromUI,setNodeDescriber,Je as setNotImplementedHandler,setOptionSelectedFromUI,wo as setTrusted,setUISelection,setUIValue,xr as setUncaughtExceptionHandler,ho as skipIdleTime,Wi as skipZeroDelayWait,spanChannel,oa as splitOnAsciiWhitespace,xi as splitText,Wn as styleElementRemoved,fa as styleElementSheet,He as styleElementUpdated,Za as styleSheetsOf,Dr as styledDisplay,subscribeTestFailures,supportsSelection,w as supportsSelectionType,ee as tagId,oi as tagName,testHooks,tracePromise,traceSync,tracing,eo as trackGlobalTimers,jo as treeRoot,Va as uaDisplay,ba as unregisterOwnerSheet,Xe as validateAndExtract,D as valueMode,Er as virtualDate,Ba as virtualPerformance,ws as windowHooks,P as windowInterfaces,zo as withNamedProperties};
1
+ import{$a as e,$c as t,$d as n,$f as r,$i as i,$l as a,$o as o,$r as s,$s as c,$u as l,Ac as ee,Ad as te,Af as ne,Al as re,Ao as ie,Au as ae,B as oe,Bc as se,Bd as ce,Bf as le,Bi as ue,Bl as de,Bo as fe,Br as pe,Bu as me,C as he,Ca as ge,Cc as _e,Cd as ve,Cf as ye,Cl as be,Co as xe,Cu as Se,Dc as Ce,Dd as we,Df as Te,Dl as Ee,Do as De,Du as Oe,Ec as ke,Ed as Ae,Ef as je,El as Me,Eo as Ne,Eu as Pe,Fa as Fe,Fc as Ie,Fd as u,Ff as d,Fl as f,Fo as p,Fu as m,Ga as h,Gc as g,Gd as _,Gf as Le,Gi as Re,Gl as ze,Go as Be,Gr as Ve,Gu as He,H as Ue,Hc as We,Hd as Ge,Hf as Ke,Hi as qe,Hl as Je,Ho as v,Hr as Ye,Hu as Xe,Ia as Ze,Ic as Qe,Id as $e,If as et,Il as y,Io as tt,Iu as nt,Jc as b,Jd as rt,Jf as it,Ji as at,Jl as ot,Jo as st,Jr as ct,Ju as lt,Kc as ut,Kd as dt,Kf as ft,Ki as pt,Kl as x,Kr as mt,Ku as ht,Lc as gt,Ld as _t,Lf as vt,Ll as yt,Lo as bt,Lr as xt,Lu as St,Mc as Ct,Md as wt,Mf as Tt,Ml as Et,Mo as Dt,Mu as Ot,Na as kt,Nc as At,Nd as jt,Nf as Mt,Nl as S,No as Nt,Nu as Pt,Oc as Ft,Od as It,Of as Lt,Ol as Rt,Oo as zt,Ou as Bt,Pa as Vt,Pc as Ht,Pd as Ut,Pf as Wt,Pl as Gt,Po as Kt,Pu as qt,Qc as Jt,Qd as Yt,Qf as Xt,Qi as Zt,Ql as Qt,Qo as $t,Qr as en,Qs as C,Qu as tn,Ra as nn,Rc as rn,Rd as an,Rf as on,Ri as sn,Rl as cn,Ro as ln,Rr as un,Ru as dn,S as fn,Sa as pn,Sc as mn,Sd as hn,Sf as gn,Sl as _n,So as vn,Su as yn,Ta as bn,Tc as xn,Td as Sn,Tf as Cn,Tl as wn,To as Tn,Tu as En,Ua as Dn,Uc as w,Ud as On,Uf as kn,Ui as An,Ul as jn,Uo as T,Ur as Mn,Uu as Nn,Vc as Pn,Vd as Fn,Vf as In,Vi as Ln,Vl as Rn,Vo as zn,Vr as Bn,Vu as Vn,Wa as Hn,Wc as Un,Wd as Wn,Wf as Gn,Wi as Kn,Wl as qn,Wo as E,Wr as Jn,Wu as Yn,Xc as Xn,Xd as Zn,Xf as Qn,Xi as $n,Xl as er,Xo as tr,Xr as nr,Xu as rr,Yc as ir,Yd as ar,Yf as or,Yi as sr,Yl as D,Yo as cr,Yr as lr,Yu as ur,Zc as dr,Zd as fr,Zf as pr,Zi as mr,Zl as O,Zo as hr,Zr as gr,Zu as _r,_ as vr,_c as yr,_d as br,_f as xr,_l as Sr,_o as Cr,_s as wr,_u as Tr,a as Er,aa as Dr,ac as Or,ad as kr,af as Ar,ai as jr,al as Mr,ao as Nr,ap as Pr,as as Fr,at as Ir,au as Lr,b as Rr,ba as zr,bc as Br,bd as Vr,bf as Hr,bl as Ur,bo as Wr,bs as k,bu as Gr,c as Kr,ca as qr,cc as Jr,cd as Yr,cf as A,ci as Xr,cl as Zr,co as Qr,cp as $r,cr as ei,cs as ti,cu as ni,d as ri,dc as ii,dd as ai,df as oi,di as si,dl as ci,do as li,dp as ui,dr as j,ds as di,du as fi,ea as pi,ec as mi,ed as hi,ef as gi,ei as _i,el as vi,eo as yi,ep as bi,es as M,eu as xi,f as Si,fc as Ci,fd as wi,ff as Ti,fl as Ei,fo as Di,fp as Oi,fs as ki,fu as Ai,g as ji,ga as Mi,gc as Ni,gd as Pi,gf as Fi,gl as Ii,go as Li,gs as Ri,gu as zi,h as Bi,ha as Vi,hc as Hi,hd as Ui,hf as Wi,hl as Gi,ho as Ki,hr as qi,hs as Ji,hu as Yi,i as Xi,ia as Zi,ic as Qi,id as $i,if as ea,ii as ta,il as na,io as ra,ip as ia,is as aa,iu as oa,jc as sa,jd as ca,jf as la,jl as ua,jo as da,ju as fa,kc as pa,kd as N,kf as ma,kl as ha,ko as ga,kr as _a,ku as va,l as ya,la as ba,lc as xa,ld as Sa,lf as P,ll as F,lp as Ca,lr as wa,ls as Ta,lu as Ea,m as I,mc as Da,md as Oa,mf as ka,ml as Aa,mo as ja,mr as Ma,ms as Na,mu as Pa,n as Fa,na as Ia,nc as La,nd as Ra,nf as za,ni as Ba,nl as Va,no as Ha,np as Ua,ns as Wa,nt as Ga,nu as Ka,o as qa,oc as Ja,od as Ya,of as Xa,oi as Za,ol as Qa,oo as $a,op as eo,os as to,ou as no,p as ro,pc as io,pd as ao,pf as oo,pi as so,pl as co,po as lo,pp as uo,pr as L,ps as fo,pu as po,qc as mo,qd as ho,qf as go,qi as _o,ql as vo,qo as yo,qr as bo,qu as xo,r as So,ra as Co,rc as wo,rd as R,rf as To,ri as Eo,rl as Do,ro as Oo,rp as ko,rs as Ao,ru as jo,s as Mo,sa as No,sd as Po,sf as Fo,si as Io,sl as Lo,so as Ro,sp as zo,ss as Bo,st as z,su as Vo,ta as Ho,tc as Uo,td as Wo,tf as Go,ti as Ko,tl as qo,to as Jo,tp as Yo,ts as Xo,tu as Zo,u as Qo,ua as $o,uc as es,ud as ts,uf as ns,ui as rs,ul as is,uo as as,up as os,ur as ss,uu as cs,v as ls,va as us,vc as ds,vd as fs,vf as ps,vl as B,vo as ms,vu as hs,wa as gs,wc as _s,wd as vs,wf as ys,wl as bs,wo as xs,wu as Ss,x as Cs,xc as ws,xd as Ts,xf as Es,xl as Ds,xo as Os,xu as ks,y as As,ya as js,yc as Ms,yd as Ns,yf as Ps,yl as Fs,yo as Is,yu as Ls,z as Rs,zc as zs,zd as Bs,zf as Vs,zi as Hs,zl as Us,zo as V,zu as Ws}from"./_chunks/src-B3vkUXY6.js";import{constants as Gs,createContext as Ks,runInContext as qs}from"node:vm";import*as H from"node:diagnostics_channel";let U=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(j.prototype),[...e]}function snapshot(e){let t=Reflect.ownKeys(e),n=Array(t.length);for(let r=0;r<t.length;r++){let i=t[r];n[r]=isArrayIndex(i)?null:Object.getOwnPropertyDescriptor(e,i)}return{target:e,keys:t,descriptors:n,keySet:null}}let W=null;function captureInterfaceBaseline(){if(U===null){U=[],W=/* @__PURE__ */ new WeakSet;for(let e of targets())U.push(snapshot(e)),W.add(e);ownObjectCreateMaps()}}let Js=null;function ownObjectCreateMaps(){if(U===null)return;let e=Js??=qs(`(prototypes) => prototypes.map((p) => Object.create(p))`,Ks(Gs.DONT_CONTEXTIFY)),t=[Object.prototype];for(let e=0;e<U.length;e++){let n=U[e].target;typeof n!=`function`&&t.push(n)}e(t)}function configurableDescriptor(e){return typeof e==`object`&&e&&e.configurable!==!0?{...e,configurable:!0}:e}function guardInterfaceDefinitions(e){let t=W;if(t===null)return;let n=e.Object,r=e.Reflect,i=oe(n),a=n.defineProperties,o=r.defineProperty,s={defineProperty(e,n,r){return i(e,n,t.has(e)?configurableDescriptor(r):Rs(e,n,r))},defineProperties(e,n){if(!t.has(e)||typeof n!=`object`||!n)return a(e,n);let r={};for(let e of Reflect.ownKeys(n))Object.getOwnPropertyDescriptor(n,e)?.enumerable&&(r[e]=configurableDescriptor(n[e]));return a(e,r)},reflectDefineProperty(e,n,r){return o(e,n,t.has(e)?configurableDescriptor(r):r)}};Object.defineProperty(s.reflectDefineProperty,"name",{value:`defineProperty`}),Object.defineProperty(n,"defineProperty",{value:s.defineProperty,writable:!0,configurable:!0,enumerable:!1}),Object.defineProperty(n,"defineProperties",{value:s.defineProperties,writable:!0,configurable:!0,enumerable:!1}),Object.defineProperty(r,"defineProperty",{value:s.reflectDefineProperty,writable:!0,configurable:!0,enumerable:!1})}function isArrayIndex(e){if(typeof e!=`string`||e===``||e.length>10)return!1;let t=Number(e);return t>>>0===t&&t!==4294967295&&String(t)===e}function sameDescriptor(e,t){return e.value===t.value&&e.get===t.get&&e.set===t.set&&e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable}function restoreInterfaces(){if(U===null)return 0;let e=0;for(let t=0;t<U.length;t++){let n=U[t],r=n.target,i=Reflect.ownKeys(r);for(let t=0;t<i.length;t++){let a=i[t];a===n.keys[t]||(n.keySet??=new Set(n.keys)).has(a)||isArrayIndex(a)||Reflect.deleteProperty(r,a)&&e++}for(let t=0;t<n.keys.length;t++){let i=n.keys[t],a=n.descriptors[t];if(a===null)continue;let o=Object.getOwnPropertyDescriptor(r,i);if(!(o!==void 0&&sameDescriptor(o,a)))try{Object.defineProperty(r,i,a),e++}catch{}}}return ownObjectCreateMaps(),e}const G=`ctrl-dom:span`,K=typeof H.tracingChannel==`function`?H.tracingChannel(G):null;function spanChannel(){return K}function tracing(){return K!==null&&K.hasSubscribers}function traceSync(e,t,n){let r={op:e,description:t,data:{},async:!1},i=A();return K.traceSync(e=>{try{return n(e)}finally{recordSkipped(e,i)}},r,void 0,r)}function tracePromise(e,t,n){let r={op:e,description:t,data:{},async:!0},i=A();return K.tracePromise(e=>n(e).finally(()=>recordSkipped(e,i)),r,void 0,r)}function recordSkipped(e,t){let n=A()-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[D]!==void 0)return describeNode(e);if(Array.isArray(e))return t>0?`[…]`:`[${e.slice(0,3).map(e=>describeValue(e,t+1)).join(`, `)}${e.length>3?`, …`:``}]`;if(t>0)return`{…}`;let n=Object.entries(e).slice(0,4);return n.length===0?`{}`:`{ ${n.map(([e,n])=>`${e}: ${describeValue(n,t+1)}`).join(`, `)} }`}let q=null;function setNodeDescriber(e){q=e}function describeNode(e){let t=e;if(t.nodeType===9)return`document`;if(t.nodeType!==1||typeof t.localName!=`string`)return t.nodeType===3?`#text`:`node`;if(q!==null)try{let t=q(e);if(t)return t}catch{}if(t.localName===`body`||t.localName===`html`)return`<${t.localName}>`;let n=t.getAttribute?.(`aria-label`)||t.textContent?.trim().replace(/\s+/g,` `)||t.getAttribute?.(`placeholder`)||t.getAttribute?.(`name`)||``;return n===``?`<${t.localName}>`:`<${t.localName} ${quote(n)}>`}function quote(e){return JSON.stringify(e.length>40?`${e.slice(0,39)}…`:e)}const J=`sentry-tests:failure`;let Y=null;function setFailureSnapshot(e){Y=e}function subscribeTestFailures(e){let t=H.channel(J),onFailure=t=>{let n=t,r=e();if(r==null||n.document!==r)return;let i=P();if(i!==null&&(n.contexts.clock={skipped_ms:Math.round(i.skippedMs),pending_timers:i.pendingTimers}),Y!==null&&r.body!=null)try{n.attachments.push({filename:`accessibility-snapshot.txt`,contentType:`text/plain`,data:Y(r.body)})}catch{}};return t.subscribe(onFailure),()=>t.unsubscribe(onFailure)}var FileState=class{hooks;url;constructor(){this.hooks=/* @__PURE__ */ new Map,this.url=null}};const X=/* @__PURE__ */ new WeakMap;function stateOf(e){let t=X.get(e);return t===void 0&&X.set(e,t=new FileState),t}function registerTestHooks(e,t){let n=k();if(n===null)return;let r=stateOf(n).hooks;r.set(e,{...r.get(e),...t})}function testHooks(){let e=k(),t=e===null?void 0:X.get(e);return t===void 0?[]:[...t.hooks.values()]}function resetWindowBetweenFiles(e){let t=stateOf(e);for(let e of t.hooks.values())try{e.fileEnd?.()}catch{}Xa(),Ma(e);let n=e[N];if(n!==null){for(let e of n)e.clear(e.handle);n.clear()}e[S]=null,e[R]=null,e[y]=null,e[x]=null;let r=e.document;r.getSelection()?.removeAllRanges();let i=r.body;i!==null&&(i.replaceChildren(),removeAttributes(i)),r.documentElement!==null&&removeAttributes(r.documentElement),e.localStorage.clear(),e.sessionStorage.clear(),e[b]=null;let a=t.url??=e.location.href;e.location.href!==a&&e._setURL(new URL(a));let o=e.history;o[B]=[{url:a,state:null}],o[O]=0}function removeAttributes(e){let t=e.getAttributeNames();for(let n=0;n<t.length;n++)e.removeAttribute(t[n])}function implOf(e){return e[D]??e}function isTypingType(e){return v(e)||e===12||e>=7&&e<=11}function isEditable(e){let t=implOf(e);return t.tag===C.input?isTypingType(V(t))&&I(t):t.tag===C.textarea?I(t):Ve(t)}function supportsSelection(e){let t=implOf(e);return t.tag===C.textarea||t.tag===C.input&&T(V(t))}function hasUIValue(e){let t=implOf(e);return t.tag===C.textarea||t.tag===C.input&&E(V(t))===0}function getUIValue(e){let t=implOf(e);if(t.tag===C.input){let e=t.node;return e[w].uiValue??e.value}return t.tag===C.textarea?t.node.value:``}function setUIValue(e,t){let n=implOf(e);if(n.tag===C.input){let e=n.node,r=V(n);if(E(r)!==0)return;let i=Ir(r,t,n);n.doc[_]++,e[w].value=i,e[w].dirtyValue=!0,e[w].userEdited=!0,e[w].uiValue=i===t?null:t,e[w].badInput=i===``&&t!==``&&r!==5&&!v(r);let a=t.length;e[w].selStart>a&&(e[w].selStart=a),e[w].selEnd>a&&(e[w].selEnd=a)}else if(n.tag===C.textarea){let e=n.node;n.doc[_]++,e[w].value=Mi(t),e[w].dirtyValue=!0,e[w].userEdited=!0}}function clearUIValue(e){let t=implOf(e);if(t.tag===C.input){let e=t.node;e[w].uiValue=null,e[w].badInput=!1}}function getUISelection(e){let t=implOf(e).node,n=getUIValue(e).length;return{start:Math.min(t[w].selStart,n),end:Math.min(t[w].selEnd,n),direction:t[w].selDir}}function setUISelection(e,t,n=t,r=`none`){let i=implOf(e);if(i.tag!==C.input&&i.tag!==C.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[w].selStart=s,a[w].selEnd=c,a[w].selDir=r}function setFilesFromUI(e,t){let n=implOf(e);n.tag===C.input&&V(n)===17&&(n.doc[_]++,n.node[w].files=z(t))}function setOptionSelectedFromUI(e,t){let n=implOf(e);if(n.tag!==C.option)return;let r=n.node;r._setSelectedness(t),r[F]=!0;let i=Ga(n);if(i!==null){let e=i.node;t&&e._deselectOthers(n),e._updateSelectedContent()}}function setCheckedFromUI(e,t){let n=implOf(e);n.tag===C.input&&n.node._setCheckedness(t,!0)}const Ys=j.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===Ys||typeof n!=`function`||Ue.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{es as $_proto__,ii as $aboutBase,Ci as $active,io as $assocGen,Da as $attr,Hi as $attributes,Ni as $availableToElementInternals,yr as $baseFor,ds as $baseOverride,Ms as $baseURL,Br as $baseVersion,ws as $benign,mn as $block,_e as $blockParsed,_s as $blockText,xn as $byCtor,ke as $byName,Ce as $cache,Ft as $callback,pa as $childNodes,ee as $childWindows,sa as $children,Ct as $classList,At as $clipboard,Ht as $clonable,Ie as $closed,Qe as $coll,gt as $compiled,rn as $compiledFor,zs as $condition,se as $constructed,Pn as $constructingEntryList,We as $contentType,w as $control,Un as $controlNamesVersion,g as $controlsCache,ut as $controlsDoc,mo as $controlsVersion,b as $cookieJar,ir as $cookies,Xn as $css,dr as $current,Jt as $customElements,t as $customValidity,vi as $cx,qo as $data,Va as $dataset,Do as $declarative,na as $defaultNamespace,Mr as $defaultValueOverride,Qa as $delegatesFocus,Lo as $derived,Zr as $devicePixelRatio,F as $dirtiness,is as $disabled,ci as $disallowModification,Ei as $doc,co as $dropEffect,Aa as $ec,Gi as $effectAllowed,Ii as $el,Sr as $elements,B as $entries,Fs as $eo,Ur as $error,Ds as $externalFormNames,_n as $file,be as $files,bs as $fill,wn as $filter,Me as $firingSubmissionEvents,Ee as $focused,Rt as $forLabels,ha as $form,re as $formAttrSeen,ua as $formControlsVersion,Et as $forms,S as $frameCallbacks,Gt as $frameElement,f as $frameId,y as $frameTask,yt as $frameTime,cn as $generation,Us as $globalObject,de as $height,Rn as $history,Je as $home,jn as $host,qn as $href,ze as $id,x as $idleCallbacks,vo as $idleId,ot as $ids,D as $impl,er as $implementation,O as $index,Qt as $indexed,a as $inflight,xi as $info,Zo as $innerHeight,Ka as $innerWidth,jo as $isHTML,oa as $items,Lr as $keyText,no as $kind,Vo as $labels,ni as $labelsVersion,Ea as $layerName,cs as $list,fi as $listenerTypesChanged,Ai as $listeners,po as $localStorage,Pa as $location,Yi as $lockedForReset,zi as $matches,Tr as $media,hs as $mediaQueryLists,Ls as $mode,Gr as $name,ks as $nameBlanked,yn as $nameBlankedValue,Se as $names,Ss as $namespaces,En as $navigator,Pe as $nodes,Oe as $onchange,Bt as $options,va as $optionsCount,ae as $optionsOnly,fa as $optionsTail,Ot as $owner,Pt as $ownerNode,qt as $ownerRule,m as $parent,nt as $parentRule,St as $parentWindow,dn as $pastNames,Ws as $pointerBeforeReference,me as $prefix,Vn as $prelude,Xe as $presentationStyle,Nn as $pseudo,Yn as $queries,He as $radios,ht as $ranges,xo as $readonly,lt as $readyState,ur as $rebuildVersion,rr as $record,_r as $records,tn as $reference,l as $result,hi as $root,Wo as $rules,Ra as $running,R as $runningFrame,$i as $sc,kr as $screen,Ya as $scrollRestoration,Po as $scrollX,Yr as $scrollY,Sa as $selectedOptions,ts as $selectedness,ai as $selection,wi as $selectionEpoch,ao as $selector,Oa as $serializable,Ui as $sessionStorage,Pi as $settled,br as $shadowRoot,fs as $shed,Ns as $sheet,Vr as $sheets,Ts as $slotAssignment,hn as $so,ve as $states,vs as $style,Sn as $styleVersion,Ae as $supportsText,we as $systemId,It as $target,N as $tasks,te as $templateContentsOwner,ca as $timers,wt as $title,jt as $transients,Ut as $treeVersion,u as $type,$e as $types,_t as $updating,an as $updatingSelectedContent,Bs as $uri,ce as $url,Fn as $userActivation,Ge as $userValidity,On as $validity,Wn as $value,_ as $version,dt as $visualViewport,ho as $w,rt as $whatToShow,ar as $whenDefined,Zn as $width,fr as $window,Yt as $writeBuffer,n as $x,gi as $xhr,Go as $y,za as $z,ps as ATTRIBUTE_NODE,ti as AttrRecord,Ps as CDATA_SECTION_NODE,Hr as COMMENT_NODE,i as COMPAT,pi as COMPAT_PROFILES,Ho as DEFAULT_COMPAT,Es as DOCUMENT_FRAGMENT_NODE,gn as DOCUMENT_NODE,ye as DOCUMENT_POSITION_CONTAINED_BY,ys as DOCUMENT_POSITION_CONTAINS,Cn as DOCUMENT_POSITION_DISCONNECTED,je as DOCUMENT_POSITION_FOLLOWING,Te as DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC,Lt as DOCUMENT_POSITION_PRECEDING,ma as DOCUMENT_TYPE_NODE,No as DeclBlock,ne as ELEMENT_NODE,la as ENTITY_NODE,Tt as ENTITY_REFERENCE_NODE,Jr as EventState,J as FAILURE_CHANNEL,Mt as F_ADOPT_HOOK,Wt as F_ARIA_ATTRS,d as F_ATTR_HOOK,et as F_CE_CUSTOM,vt as F_CHILDREN_HOOK,on as F_CHILD_LIST,Vs as F_CONNECTED,le as F_CONNECT_HOOK,In as F_CONTENTEDITABLE_ATTR,Ke as F_CUSTOM,kn as F_DATA_ATTRS,Gn as F_FACE,Le as F_FORM_ATTR,ft as F_HAS_SHADOW,go as F_HAS_STYLE_ATTR,it as F_HTML,or as F_INERT_ATTR,Qn as F_MO_REGISTERED,pr as F_PARSER_FORM,Xt as F_PAST_NAMES,r as F_RANGE,bi as F_RANGE_BELOW,Yo as F_RANGE_MARKS,Ua as F_ROLE_ATTR,ko as F_SHADOW_ROOT,ia as F_TABINDEX_ATTR,Or as GLOBAL_EVENT_HANDLER_EVENTS,e as HTMLCollection,Pr as HTML_NS,ln as INPUT_TYPE_NAMES,eo as MATHML_NS,zo as NOTATION_NODE,at as NodeCache,Ta as NodeImpl,yo as NodeList,$r as PROCESSING_INSTRUCTION_NODE,G as SPAN_CHANNEL,Ca as SVG_NS,C as T,os as TEXT_NODE,To as VirtualClock,ea as VirtualTimeout,Ja as WINDOW_EVENT_HANDLER_EVENTS,ui as XLINK_NS,Oi as XMLNS_NS,uo as XML_NS,sn as adoptedStyleSheetsOf,Is as ariaAttr,Wr as asciiLowercase,lo as assignManually,ja as assignedElements,Ki as assignedNodes,Li as assignedSlot,pn as attachShadowRoot,Os as attr,ei as attrAssociatedElement,wa as attrAssociatedElements,nn as attrNode,Ar as canSkipZeroDelayWait,captureInterfaceBaseline,tr as childAt,vn as classTokens,clearUIValue,Fo as clockNow,P as clockStats,Ha as closest,xt as compareBoundaryPoints,Ia as compatExposes,lr as computedDisplay,nr as computedValue,gr as computedVisibility,pe as constructEntryList,Fa as controlValue,_a as createEvent,z as createFileList,Hs as createLinkSheet,en as currentStyleVersion,Bn as defaultButton,Co as deferredCompatMembers,Ro as derivedCache,describeCall,describeNode,di as dispatch,$n as dispatchTrusted,yi as ensureCollectionIndexGetters,st as ensureIndexGetters,rs as evaluateMediaQueryList,ba as faceState,Cr as findFlattenedSlottables,ms as findSlot,mr as fireAnEvent,Zt as fireSyntheticPointerEvent,hr as firstElementChild,ns as foreignImmediatesPending,ie as formOwner,xe as getAttribute,ct as getComputedStyle,getComputedStyleOverride,ki as getCurrentEvent,ge as getElementsByClassName,gs as getElementsByTagName,bn as getElementsByTagNameNS,us as getEventHandler,getUISelection,getUIValue,guardInterfaceDefinitions,xs as hasAttr,s as hasAuthorStyles,ss as hasExplicitAttrElements,Uo as hasListeners,So as hasReadonlyAttribute,hasUIValue,Zi as hiddenGlobals,Ye as implicitSubmission,cr as indexGetterTable,$t as indexOf,Oo as indexedDescendantById,Xi as inputChecked,Er as inputIndeterminate,V as inputType,fe as inputTypeFromAttr,as as inspectNode,oi as installClock,js as installEventHandlers,da as isActuallyDisabled,Tn as isAsciiWhitespace,qa as isAutofilled,Mo as isChecked,Ti as isClockTimer,Kr as isDefault,ya as isDisabled,_i as isDisplayNone,Ko as isDisplayNoneInclusive,isEditable as isEditableControl,Qo as isEnabled,$o as isFACE,ri as isInRange,o as isInclusiveAncestor,Si as isIndeterminate,ro as isInvalid,Dt as isLabelable,Nt as isListed,I as isMutable,zn as isNumericType,Bi as isOptional,ji as isOutOfRange,vr as isPlaceholderShown,ls as isReadOnly,As as isReadWrite,Rr as isRequired,Kt as isResettable,Mn as isSubmitButton,p as isSubmittable,Cs as isTextControl,v as isTextualType,fn as isValid,kt as isValidDoctypeName,Vt as isValidElementLocalName,Fe as isValidNamespacePrefix,Ba as isVisibilityHidden,tt as labeledControl,bt as labelsFor,M as lastElementChild,Vi as listOfOptions,La as listenerCount,oo as loopTurn,pt as matchMediaText,ra as matches,si as mediaEnvironment,Xo as nextElementInTree,Wa as nextElementSibling,Ao as nextInTree,aa as nextSkippingChildren,sr as nodeCache,fo as nodeGetTheParent,un as nodeLength,Be as notifyMutationObservers,he as optionSelected,qr as parseDeclBlock,h as parseFragment,_o as parseMediaQueryList,Qr as peekDerivedCache,Eo as pointerEvents,ta as pointerEventsNone,Ne as prefixFlag,Fr as previousElementSibling,to as previousInTree,jr as pseudoContent,Nr as querySelector,$a as querySelectorAll,quote,Ln as registerOwnerSheet,registerTestHooks,wo as removeAllEventListeners,De as removeAttribute,qe as removeOwnerSheet,li as replaceData,Ri as reportException,resetWindowBetweenFiles,Dr as resolveCompat,restoreInterfaces,Na as retarget,Qi as reusableElement,Dn as serializeChildren,Hn as serializeNode,An as setAdoptedStyleSheets,Ji as setAssignedSlotLookup,zt as setAttribute,setCheckedFromUI,Za as setComputedColorMode,zr as setEventHandler,setFailureSnapshot,setFilesFromUI,setNodeDescriber,Jn as setNotImplementedHandler,setOptionSelectedFromUI,xa as setTrusted,setUISelection,setUIValue,wr as setUncaughtExceptionHandler,ka as skipIdleTime,Wi as skipZeroDelayWait,spanChannel,ga as splitOnAsciiWhitespace,Di as splitText,mt as styleElementRemoved,ue as styleElementSheet,bo as styleElementUpdated,Kn as styleSheetsOf,Io as styledDisplay,subscribeTestFailures,supportsSelection,T as supportsSelectionType,c as tagId,mi as tagName,testHooks,tracePromise,traceSync,tracing,qi as trackGlobalTimers,Bo as treeRoot,Xr as uaDisplay,Re as unregisterOwnerSheet,Ze as validateAndExtract,E as valueMode,Fi as virtualDate,xr as virtualPerformance,so as windowHooks,L as windowInterfaces,Jo as withNamedProperties};
@@ -14,6 +14,8 @@ export declare class NodeList {
14
14
  constructor(parent: NodeImpl | null, _items?: Node[] | null);
15
15
  /** @internal A static NodeList over `items` (the array is not retained). */
16
16
  static _static(items: readonly Node[]): NodeList;
17
+ /** @internal Brand check for lazily materialized mutation records. */
18
+ static _isNodeList(value: object | null): value is NodeList;
17
19
  /** @internal A static NodeList over NodeImpls (avoids an intermediate wrapper array). */
18
20
  static _staticFromImpls(items: readonly NodeImpl[]): NodeList;
19
21
  /** @internal The live `childNodes` list of `parent`. */
@@ -4,7 +4,7 @@ import { type CompiledSelector, type CompiledSelectorList, type StateDeps } from
4
4
  import { CSSStyleRule, CSSStyleSheet, type CSSRule } from "./cssom.js";
5
5
  import { DeclBlock } from "./declarations.js";
6
6
  import { type MediaEnvironment } from "./media.js";
7
- import { type RootStyles } from "./stylesheets.js";
7
+ import { DocCSS, type RootStyles } from "./stylesheets.js";
8
8
  import { $block } from "../keys.js";
9
9
  export declare class IndexedRule {
10
10
  sel: CompiledSelector;
@@ -64,6 +64,7 @@ declare class LayerNode {
64
64
  constructor(name: string);
65
65
  }
66
66
  export declare class RuleIndex {
67
+ attributeNames: Set<string> | null;
67
68
  main: RuleBuckets;
68
69
  before: RuleBuckets;
69
70
  after: RuleBuckets;
@@ -97,7 +98,8 @@ declare class IndexBuilder {
97
98
  all: IndexedRule[];
98
99
  /** Adding rules to a finished index (extend): buckets that gain a rule are copied. */
99
100
  extending: boolean;
100
- constructor(index: RuleIndex, env: MediaEnvironment);
101
+ readonly noteAttribute: (name: string) => void;
102
+ constructor(index: RuleIndex, env: MediaEnvironment, shadowCSS: DocCSS | null);
101
103
  layer(parent: LayerNode, name: string): LayerNode;
102
104
  /** Indexes a sheet's rules; false when the sheet does not apply (disabled, media not matching). */
103
105
  sheet(sheet: CSSStyleSheet): boolean;
@@ -115,8 +117,7 @@ declare class IndexBuilder {
115
117
  finish(): void;
116
118
  }
117
119
  /**
118
- * Validates the document's style state (adopted-sheet mutations, viewport changes for media
119
- * rules) and returns the current `_styleVersion`.
120
+ * Updates the style version after viewport changes that can affect media rules.
120
121
  */
121
122
  export declare function currentStyleVersion(doc: Document): number;
122
123
  /** Rule index for a tree (null if it has no applicable sheets). */
@@ -247,6 +248,4 @@ export declare function customPropertyNames(el: NodeImpl, pseudo: string | null)
247
248
  export declare function pseudoContent(el: NodeImpl, pseudo: "::before" | "::after"): string;
248
249
  /** Extracts the text of a computed `content` value. */
249
250
  export declare function contentText(el: NodeImpl, v: string): string;
250
- /** Number of elements with a cached style record is not tracked; exposed for tests of the fast path. */
251
- export declare function _hasStyleRecord(el: NodeImpl): boolean;
252
251
  export {};
@@ -50,6 +50,4 @@ export declare function evaluateMediaQuery(q: MediaQuery, env: MediaEnvironment)
50
50
  export declare function evaluateMediaQueryList(list: MediaQuery[], env: MediaEnvironment): boolean;
51
51
  /** Text-level helper for matchMedia(): https://drafts.csswg.org/cssom-view/#dom-window-matchmedia */
52
52
  export declare function matchMediaText(text: string, env: MediaEnvironment): boolean;
53
- /** Serialization used by MediaQueryList.media. */
54
- export declare function normalizeMediaText(text: string): string;
55
53
  export {};
@@ -116,5 +116,3 @@ export declare function parseRule(src: string): RawRule | null;
116
116
  * what the `style` attribute and `cssText` setters use.
117
117
  */
118
118
  export declare function parseDeclarationList(src: string): RawDecl[];
119
- /** True if a value contains bad-string / bad-url tokens or unbalanced closers (never valid). */
120
- export declare function hasInvalidTokens(value: string): boolean;
@@ -26,5 +26,3 @@ export declare function computedPropertyNames(): readonly string[];
26
26
  * "-webkit-x" → "WebkitX" (with lowercase_first = false), "float" → also "cssFloat".
27
27
  */
28
28
  export declare function cssPropertyToIDLAttribute(property: string, lowercaseFirst: boolean): string;
29
- /** Converts an IDL attribute name or property-ish key to a CSS property name ("" if none). */
30
- export declare function idlAttributeToProperty(key: string): string;
@@ -31,5 +31,3 @@ export declare const MULTI_LAYER: string[];
31
31
  * `computed` selects computed-style serialization (no omission of initial values).
32
32
  */
33
33
  export declare function serializeShorthand(name: string, v: string[], computed: boolean): string;
34
- /** Normalizes a single longhand value from a shorthand component list (helper for callers). */
35
- export declare function normalizeLonghandValue(name: string, value: string): string | null;
@@ -1,3 +1,19 @@
1
+ import type { Document } from "../nodes/Document.js";
2
+ /** Attribute dependencies from live shadow indexes in this document, including :host selectors. */
3
+ export declare class ShadowAttributeUses {
4
+ readonly counts: Map<string, number>;
5
+ readonly collected: FinalizationRegistry<Set<string>>;
6
+ remove(names: Set<string>): void;
7
+ }
8
+ /** Each shadow index contributes a name once. Its registration contains only names. */
9
+ export declare class ShadowAttributeNames extends Set<string> {
10
+ private readonly uses;
11
+ constructor(uses: ShadowAttributeUses, index: object);
12
+ add(name: string): this;
13
+ release(): void;
14
+ }
15
+ /** `aria-` or `data-` at the start of `name`: most names fail on the fifth character. */
16
+ export declare function ariaOrData(name: string): boolean;
1
17
  /**
2
18
  * Whether any style record has been cached in this process. Until one has, nothing reads the
3
19
  * count, and an attribute write skips the check (4 ns of a 19 ns write in `dom/attr-revisions`).
@@ -5,7 +21,5 @@
5
21
  export declare let styleRecordsCached: boolean;
6
22
  /** css/cascade.ts is about to stamp a style record. */
7
23
  export declare function noteStyleRecordCached(): void;
8
- /** A style rule with `name` in an attribute selector was indexed (css/cascade.ts). */
9
- export declare function noteSelectorAttribute(name: string): void;
10
- /** Whether a change to attribute `localName` (no namespace) leaves every computed style as it was. */
11
- export declare function styleBlindAttribute(localName: string): boolean;
24
+ /** Whether a change to a null-namespace attribute leaves the document's style records valid. */
25
+ export declare function styleBlindAttribute(doc: Document, localName: string): boolean;
@@ -1,6 +1,7 @@
1
1
  import type { Document } from "../nodes/Document.js";
2
2
  import type { NodeImpl } from "../nodes/NodeImpl.js";
3
3
  import { CSSStyleSheet, StyleSheetList } from "./cssom.js";
4
+ import { type ShadowAttributeUses } from "./style-deps.js";
4
5
  import type { RuleIndex } from "./cascade.js";
5
6
  /** Style sheets of one tree (a document or a shadow root). */
6
7
  export declare class RootStyles {
@@ -8,13 +9,11 @@ export declare class RootStyles {
8
9
  /** Owner sheets (<style>, <link>) in tree order. */
9
10
  owners: CSSStyleSheet[];
10
11
  ownerNodes: NodeImpl[];
11
- /** The adoptedStyleSheets array handed out to script (may be mutated in place). */
12
+ /** Adopted sheets in cascade order. The public array view observes writes to this array. */
12
13
  adopted: CSSStyleSheet[];
13
- /** Copy of `adopted` at the last validation (detects push/splice). */
14
- adoptedSnapshot: CSSStyleSheet[];
14
+ /** The array view returned to script, allocated on the first read. */
15
+ adoptedView: CSSStyleSheet[] | null;
15
16
  list: StyleSheetList | null;
16
- /** `adopted` was handed to script, which may mutate it in place (validateAdopted watches it). */
17
- adoptedExposed: boolean;
18
17
  /** Listed in its document's DocCSS.shadows index. */
19
18
  indexed: boolean;
20
19
  /** The weak reference the document's RootRefs hold (created on first use). */
@@ -22,6 +21,7 @@ export declare class RootStyles {
22
21
  /** Rule index cache (built by cascade.ts). */
23
22
  index: RuleIndex | null;
24
23
  constructor(root: NodeImpl);
24
+ discardIndex(): void;
25
25
  hasSheets(): boolean;
26
26
  }
27
27
  /** Document-wide CSS state, hung on `Document._css`. */
@@ -41,15 +41,11 @@ export declare class DocCSS {
41
41
  doc: Document;
42
42
  main: RootStyles;
43
43
  /**
44
- * Shadow roots with sheets, or whose `styleSheets` / `adoptedStyleSheets` script holds, for the
45
- * "does any sheet apply?" fast paths. Weak: each shadow root owns its RootStyles (shadowStyles),
46
- * so a shadow tree that goes away (custom elements rendered per test, Lit components adopting a
47
- * shared sheet) is collected with its host. Entries leave when unused (releaseIfUnused) or
48
- * collected (RootRefs prunes them).
44
+ * Shadow roots with active sheets. Each root owns its RootStyles and can be collected
45
+ * with its host. Empty roots leave this index when their last sheet is removed.
49
46
  */
50
47
  shadows: RootRefs | null;
51
- /** Shadow roots whose adoptedStyleSheets array script holds (validateAdopted checks only these). */
52
- watched: RootRefs | null;
48
+ shadowAttributeUses: ShadowAttributeUses | null;
53
49
  /** Viewport the rule index was last validated against. */
54
50
  envWidth: number;
55
51
  envHeight: number;
@@ -59,11 +55,16 @@ export declare class DocCSS {
59
55
  authorStyleVersion: number;
60
56
  authorResult: boolean;
61
57
  constructor(doc: Document);
58
+ /** A shadow tree moved to a different node document. Its constructor-bound sheets stay behind. */
59
+ adoptShadowRoot(root: NodeImpl): void;
62
60
  }
63
61
  export declare function docCSS(doc: Document): DocCSS;
64
62
  export declare function existingDocCSS(doc: Document): DocCSS | null;
65
- /** RootStyles for a tree root (document or shadow root impl), created (and indexed) on demand. */
63
+ /** RootStyles for a tree root (document or shadow root impl), created on demand. */
66
64
  export declare function rootStylesFor(root: NodeImpl, create: boolean): RootStyles | null;
65
+ export declare function sheetChanged(sheet: CSSStyleSheet): void;
66
+ /** A rule index holds the CSS rules it matched. Release deleted rules before another style read. */
67
+ export declare function discardSheetRuleIndexes(sheet: CSSStyleSheet): void;
67
68
  /** Top of the (shadow-scoped) tree containing `n`. */
68
69
  export declare function treeTop(n: NodeImpl): NodeImpl;
69
70
  /** Is `top` a tree root whose sheets apply (a document, or a shadow root)? */
@@ -84,8 +85,3 @@ export declare function styleSheetsOf(root: NodeImpl): StyleSheetList;
84
85
  export declare function adoptedStyleSheetsOf(root: NodeImpl): CSSStyleSheet[];
85
86
  /** Setter: every entry must be a constructed sheet of the same document. */
86
87
  export declare function setAdoptedStyleSheets(root: NodeImpl, value: unknown): void;
87
- /**
88
- * Detects in-place mutation of adoptedStyleSheets arrays (push/splice) since the last check
89
- * and bumps the style version if so. Cheap: compares a few references.
90
- */
91
- export declare function validateAdopted(css: DocCSS): void;
@@ -24,7 +24,6 @@ export declare function splitComponents(value: string): Comp[] | null;
24
24
  export declare function significant(comps: Comp[]): Comp[];
25
25
  /** https://drafts.csswg.org/cssom/#serialize-a-css-component-value (<number>) */
26
26
  export declare function formatNumber(n: number): string;
27
- export declare function isLengthUnit(lowerUnit: string): boolean;
28
27
  export declare const G_LENGTH = 1;
29
28
  export declare const G_PERCENT = 2;
30
29
  export declare const G_NUMBER = 4;
@@ -20,7 +20,8 @@ export declare class DataTransferItem {
20
20
  export declare class DataTransferItemList {
21
21
  [index: number]: DataTransferItem;
22
22
  [$items]: DataTransferItem[];
23
- [$owner]: DataTransfer | null;
23
+ /** Only needed to invalidate the transfer's cached files and types. */
24
+ [$owner]: WeakRef<DataTransfer> | null;
24
25
  constructor();
25
26
  get length(): number;
26
27
  /** https://html.spec.whatwg.org/#dom-datatransferitemlist-add */
@@ -31,7 +32,7 @@ export declare class DataTransferItemList {
31
32
  clear(): void;
32
33
  [Symbol.iterator](): IterableIterator<DataTransferItem>;
33
34
  /** @internal Re-sync own index properties and invalidate the owner's cached views. */
34
- _changed(): void;
35
+ _changed(first: number, oldLength: number): void;
35
36
  }
36
37
  /** https://html.spec.whatwg.org/#the-datatransfer-interface */
37
38
  export declare class DataTransfer {
@@ -0,0 +1,4 @@
1
+ /** https://html.spec.whatwg.org/#globaleventhandlers (+ pointer, touch, animation, transition, selection events). */
2
+ export declare const GLOBAL_EVENT_HANDLER_EVENTS: readonly string[];
3
+ /** https://html.spec.whatwg.org/#windoweventhandlers */
4
+ export declare const WINDOW_EVENT_HANDLER_EVENTS: readonly string[];
@@ -1,8 +1,5 @@
1
1
  import type { EventTarget } from "./EventTarget.js";
2
- /** https://html.spec.whatwg.org/#globaleventhandlers (+ pointer, touch, animation, transition, selection events). */
3
- export declare const GLOBAL_EVENT_HANDLER_EVENTS: readonly string[];
4
- /** https://html.spec.whatwg.org/#windoweventhandlers */
5
- export declare const WINDOW_EVENT_HANDLER_EVENTS: readonly string[];
2
+ export { GLOBAL_EVENT_HANDLER_EVENTS, WINDOW_EVENT_HANDLER_EVENTS } from "./handler-names.js";
6
3
  type Handler = ((...args: unknown[]) => unknown) | object;
7
4
  /** https://html.spec.whatwg.org/#getting-the-current-value-of-the-event-handler */
8
5
  export declare function getEventHandler(target: EventTarget, type: string): Handler | null;
@@ -11,4 +8,3 @@ export declare function setEventHandler(target: EventTarget, type: string, value
11
8
  export type EventHandlersKind = "element" | "body" | "document" | "window";
12
9
  /** Install the `on*` IDL attributes for an interface prototype (see the header comment). */
13
10
  export declare function installEventHandlers(proto: object, kind: EventHandlersKind): void;
14
- export {};
@@ -17,8 +17,8 @@ export declare class Listener {
17
17
  /** The next listener of the same type on the same target, in insertion order. */
18
18
  next: Listener | null;
19
19
  seq: number;
20
- id: number;
21
- constructor(id: number, callback: EventListenerOrEventListenerObject, flags: number);
20
+ id: ListenerType;
21
+ constructor(id: ListenerType, callback: EventListenerOrEventListenerObject, flags: number);
22
22
  }
23
23
  /** Abort algorithms take effect before application abort handlers can dispatch another event. */
24
24
  export declare function listenerAborted(listener: Listener): boolean;
@@ -27,13 +27,16 @@ export declare function listenerAborted(listener: Listener): boolean;
27
27
  * type's listener chain directly. Two to four types use an array of chain heads. From
28
28
  * the fifth type on, a sparse array indexed by type ID serves large targets like React roots.
29
29
  */
30
- type SlotArray = (Listener | undefined)[];
30
+ export type ListenerType = number | string;
31
+ type SlotArray = (Listener | undefined)[] & {
32
+ custom?: Map<string, Listener>;
33
+ };
31
34
  export type ListenerSlots = Listener | SlotArray;
32
- export declare function idForType(type: string): number;
33
- /** `type`'s id, or -1 when nothing has ever listened for it (so no target has a listener). */
34
- export declare function typeIdOf(type: string): number;
35
+ export declare function idForType(type: string): ListenerType;
36
+ /** A platform ID (-1 before the first subscription), or the original custom event name. */
37
+ export declare function typeIdOf(type: string): ListenerType;
35
38
  /** The first listener for type id `id` (-1 included) on a target whose slots are `slots`. */
36
- export declare function firstListener(slots: ListenerSlots, id: number): Listener | undefined;
39
+ export declare function firstListener(slots: ListenerSlots, id: ListenerType): Listener | undefined;
37
40
  /** https://dom.spec.whatwg.org/#concept-flatten-options */
38
41
  export declare function flattenCapture(options: boolean | EventListenerOptions | undefined | null): boolean;
39
42
  /**
@@ -11,12 +11,18 @@ export declare function fireToggleEvent(target: EventTarget, type: string, oldSt
11
11
  * trusted flag set (HTMLElement.click()). Activation behavior runs inside dispatch (src/events).
12
12
  */
13
13
  export declare function fireSyntheticClick(target: EventTarget): boolean;
14
- /**
15
- * https://html.spec.whatwg.org/#queue-an-element-task — a macrotask on the element's window. Its
16
- * `_task` uses the window's timers (the test file's virtual clock or fake timers, so the task is
17
- * ordered with the test's own timers) and close() cancels it. A bare `setTimeout` here is the
18
- * outer Node realm's real timer under @ctrl/dom-jest-environment (this module is loaded outside the test
19
- * file's vm global): user-event's post-click wait on the virtual clock then resolved before a
20
- * <details> `toggle` fired. Documents without a browsing context use the current window.
21
- */
22
14
  export declare function queueElementTask(element: NodeImpl | EventTarget, fn: () => void): void;
15
+ type FireToggle = (oldState: string) => void;
16
+ interface ToggleDelivery {
17
+ fire: FireToggle;
18
+ cancel?: () => void;
19
+ }
20
+ export interface ToggleTask {
21
+ oldState: string;
22
+ delivery: WeakRef<ToggleDelivery>;
23
+ }
24
+ /** Replace the pending task at the back of the queue, preserving the first old state.
25
+ * The timer owns its callback. A tracker on an adopted element must not keep the previous
26
+ * window, timer or invoker alive after that window closes. */
27
+ export declare function queueToggleTask(element: NodeImpl, previous: ToggleTask | null | undefined, oldState: string, fire: FireToggle): ToggleTask;
28
+ export {};
@@ -38,8 +38,6 @@ export interface FocusElementOptions {
38
38
  export declare function focusElement(impl: NodeImpl, options?: FocusElementOptions): boolean;
39
39
  /** https://html.spec.whatwg.org/#unfocusing-steps */
40
40
  export declare function blurElement(impl: NodeImpl): void;
41
- /** Called by user-event before a pointer-caused focus. */
42
- export declare function notePointerFocus(): void;
43
41
  /** https://html.spec.whatwg.org/#dom-documentorshadowroot-activeelement */
44
42
  export declare function activeElement(root: NodeImpl): Element | null;
45
43
  /** https://html.spec.whatwg.org/#dom-document-hasfocus (no system focus model: true while an element is focused, as jsdom). */
@@ -7,6 +7,14 @@ import { $dirtiness, $selectedness } from "../../keys.js";
7
7
  * The select element an option belongs to, its "nearest ancestor select":
8
8
  * https://html.spec.whatwg.org/#option-element-nearest-ancestor-select
9
9
  */
10
+ /**
11
+ * Counts every change of an option's selectedness, in any document: a select that has seen its
12
+ * one selected option remembers the count, and while it has not moved an appended option that is
13
+ * not selected changes nothing (HTMLSelectElement.ts _childrenChangedSteps).
14
+ */
15
+ export declare const selectedness: {
16
+ epoch: number;
17
+ };
10
18
  export declare function optionSelect(option: NodeImpl): NodeImpl | null;
11
19
  export declare class HTMLOptionElement extends HTMLElement {
12
20
  /** https://html.spec.whatwg.org/#concept-option-selectedness — initially derives from the attribute. */
@@ -5,7 +5,7 @@ import type { NodeImpl } from "../../nodes/NodeImpl.js";
5
5
  import { HTMLCollection } from "../../collections/HTMLCollection.js";
6
6
  import { HTMLOptionsCollection, LabelsNodeList } from "./collections.js";
7
7
  import { type ConstraintValidation, type ValidityState } from "./validation.js";
8
- import { $customValidity, $labels, $options, $selectedOptions, $settled, $updatingSelectedContent, $userValidity, $validity } from "../../keys.js";
8
+ import { $customValidity, $labels, $options, $optionsCount, $optionsOnly, $optionsTail, $selectedOptions, $selectionEpoch, $settled, $updatingSelectedContent, $userValidity, $validity } from "../../keys.js";
9
9
  export declare class HTMLSelectElement extends HTMLElement {
10
10
  /** The custom validity error message; absent while it is the empty string. */
11
11
  [$customValidity]?: string;
@@ -20,6 +20,13 @@ export declare class HTMLSelectElement extends HTMLElement {
20
20
  [$settled]: boolean;
21
21
  /** Re-entrancy guard for `_updateSelectedContent` (it mutates the select's subtree). */
22
22
  [$updatingSelectedContent]: boolean;
23
+ /** The last child and the child count at the last children-changed step: tell one appended child from any other change. */
24
+ [$optionsTail]: NodeImpl | null;
25
+ [$optionsCount]: number;
26
+ /** Every child is an HTML option element (no optgroup, hr, selectedcontent or text). */
27
+ [$optionsOnly]: boolean;
28
+ /** `selectedness.epoch` when the algorithm last left exactly one option selected, else -1. */
29
+ [$selectionEpoch]: number;
23
30
  /** https://html.spec.whatwg.org/#user-validity (forms/user-validity.ts); absent while false. */
24
31
  [$userValidity]?: boolean;
25
32
  /** @internal Use Document.createElement. */
@@ -80,12 +87,22 @@ export declare class HTMLSelectElement extends HTMLElement {
80
87
  _updateSelectedContent(): void;
81
88
  /** https://html.spec.whatwg.org/#the-select-element:concept-form-reset-control */
82
89
  _reset(): void;
83
- /** The list of options changed: https://html.spec.whatwg.org/#the-select-element:selectedness-setting-algorithm */
90
+ /**
91
+ * The list of options changed: https://html.spec.whatwg.org/#the-select-element:selectedness-setting-algorithm
92
+ *
93
+ * React appends a select's options one by one, and the algorithm walks the options each time
94
+ * (65 µs to build a select of 250). It has nothing to do when a drop-down that has exactly one
95
+ * selected option gets one more option at the end that is not selected, which is every append
96
+ * after the first: that case returns here. The select knows it without a walk while no
97
+ * option's selectedness has changed anywhere since the algorithm last left it with one
98
+ * (`selectedness.epoch`), its children are all options, and the new child follows the last
99
+ * one it saw. Anything else runs the algorithm as before.
100
+ */
84
101
  _childrenChangedSteps(): void;
85
102
  _attributeChangedSteps(localName: string, oldValue: string | null, value: string | null, namespace: string | null): void;
86
103
  _barredFromValidation(): boolean;
87
104
  /** https://html.spec.whatwg.org/#placeholder-label-option */
88
- _placeholderLabelOption(): NodeImpl | null;
105
+ private _isPlaceholderLabelOption;
89
106
  _validityFlags(): number;
90
107
  _validationMessage(flags: number): string;
91
108
  }
@@ -3,6 +3,7 @@ import type { Element } from "../../nodes/Element.js";
3
3
  import type { Node } from "../../nodes/Node.js";
4
4
  import { HTMLCollection } from "../../collections/HTMLCollection.js";
5
5
  import { NodeList } from "../../collections/NodeList.js";
6
+ import { type FormControlsSnapshot } from "./form-associated.js";
6
7
  import { $el, $form, $name } from "../../keys.js";
7
8
  /**
8
9
  * Base for the live NodeLists computed from the tree (labels, RadioNodeList): a version-stamped
@@ -37,7 +38,17 @@ export declare class NameNodeList extends ComputedNodeList {
37
38
  _root(): NodeImpl;
38
39
  _compute(): Node[];
39
40
  }
40
- export declare function namedControl(form: NodeImpl, controls: NodeImpl[], name: string): NodeImpl | RadioNodeList | null;
41
+ /**
42
+ * The control(s) of `form` with ID or name `name`: https://html.spec.whatwg.org/#dom-form-nameditem
43
+ * and https://html.spec.whatwg.org/#dom-htmlformcontrolscollection-nameditem.
44
+ *
45
+ * A large form asked a second time, while no `id` or `name` has changed in the document, is
46
+ * indexed by name (as Blink's HTMLCollection::NamedItemCache): a handler that reads fields by
47
+ * name on every keystroke no longer scans 250 controls per read (bench/README.md,
48
+ * `react/validate-named-fields`). The snapshot itself lasts until the tree or a form owner
49
+ * changes; nodes/attributes.ts counts the name changes, and lets React's set-to-""-and-back pass.
50
+ */
51
+ export declare function namedControl(form: NodeImpl, controls: FormControlsSnapshot, name: string): NodeImpl | RadioNodeList | null;
41
52
  /** Images supply legacy named properties only when no listed control matches. */
42
53
  export declare function namedImage(form: NodeImpl, name: string): NodeImpl | RadioNodeList | null;
43
54
  /** https://html.spec.whatwg.org/#radionodelist — live list of a form's controls with a given name/id. */
@@ -67,8 +78,9 @@ export declare function createFormControlsCollection(form: NodeImpl): HTMLFormCo
67
78
  * https://html.spec.whatwg.org/#concept-select-option-list — option descendants in tree order,
68
79
  * not looking inside select, hr, option and datalist elements or an optgroup nested in another
69
80
  * optgroup (within the select). The common shapes (options and optgroups as children) stay a
70
- * walk over children.
81
+ * walk over children. A visitor can return a result to stop at the current option.
71
82
  */
83
+ export declare function scanOptions<T>(select: NodeImpl, visit: (option: NodeImpl, index: number) => T | undefined): T | undefined;
72
84
  export declare function listOfOptions(select: NodeImpl, out: NodeImpl[]): NodeImpl[];
73
85
  /** https://html.spec.whatwg.org/#htmloptionscollection */
74
86
  export declare class HTMLOptionsCollection extends HTMLCollection {
@@ -20,5 +20,10 @@ export declare class ControlState {
20
20
  badInput: boolean;
21
21
  /** User-event's UI value (raw typed text) — null when it equals the value. See ui.ts. */
22
22
  uiValue: string | null;
23
+ /** The accessor React's value tracker defined on the element (window/shared-accessors.ts). */
24
+ tracker: PropertyDescriptor | null;
25
+ /** The last string a textarea normalized the newlines of, and the result (HTMLTextAreaElement.ts normalized). */
26
+ rawText: string | null;
27
+ apiText: string;
23
28
  constructor();
24
29
  }
@@ -15,11 +15,10 @@ export declare class FaceState {
15
15
  state: unknown;
16
16
  flags: number;
17
17
  message: string;
18
- anchor: Element | null;
19
18
  validity: ValidityState | null;
20
19
  labels: LabelsNodeList | null;
21
20
  /** Last form owner / disabledness reported through the callbacks. */
22
- lastOwner: NodeImpl | null;
21
+ lastOwner: WeakRef<NodeImpl> | null;
23
22
  lastDisabled: boolean;
24
23
  /** The custom validity error message; absent while it is the empty string. */
25
24
  [$customValidity]?: string;
@@ -7,8 +7,6 @@ export declare function isSubmittable(el: NodeImpl): boolean;
7
7
  export declare function isResettable(el: NodeImpl): boolean;
8
8
  /** https://html.spec.whatwg.org/#category-label — button, input (not hidden), meter, output, progress, select, textarea. */
9
9
  export declare function isLabelable(el: NodeImpl): boolean;
10
- /** https://html.spec.whatwg.org/#form-associated-element (listed elements + img). */
11
- export declare function isFormAssociated(el: NodeImpl): boolean;
12
10
  /** First element in `el`'s tree (shadow-root aware) whose id is `id`, or null. */
13
11
  export declare function elementByIdInTree(el: NodeImpl, id: string): NodeImpl | null;
14
12
  /**
@@ -31,6 +29,10 @@ export declare function formOwnerScope(form: NodeImpl, listed: boolean): NodeImp
31
29
  /** The listed-control scan also covers every possible legacy named image. */
32
30
  export interface FormControlsSnapshot extends Array<NodeImpl> {
33
31
  hasImage?: true;
32
+ /** `Document[$controlNamesVersion]` at the last named lookup (collections.ts namedControl). */
33
+ namesVersion?: number;
34
+ /** The controls by ID and name, from the second lookup at that version on: null for several. */
35
+ names?: Map<string, NodeImpl | null> | null;
34
36
  }
35
37
  /** All listed elements (excluding image buttons) whose form owner is `form`, in tree order: form.elements. */
36
38
  export declare function formControls(form: NodeImpl, out: FormControlsSnapshot, includeImageButtons: boolean): FormControlsSnapshot;