@ctrl/dom 0.1.7 → 0.1.9

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 (62) hide show
  1. package/dist/aria/_chunks/roles-list-B0OTIKQA.js +4 -0
  2. package/dist/aria/_chunks/roles-list-CkmykU-H.cjs +4 -0
  3. package/dist/aria/index.cjs +1 -1
  4. package/dist/aria/index.js +1 -1
  5. package/dist/aria/internal.cjs +1 -1
  6. package/dist/aria/internal.js +1 -1
  7. package/dist/aria/types/forms.d.ts +5 -0
  8. package/dist/aria/types/internal.d.ts +2 -2
  9. package/dist/aria/types/role.d.ts +8 -1
  10. package/dist/bridge/internal.js +1 -1
  11. package/dist/dom/_chunks/src-BbkJRbbx.js +49 -0
  12. package/dist/dom/index.js +1 -1
  13. package/dist/dom/internal.js +1 -1
  14. package/dist/dom/types/css/CSSStyleDeclaration.d.ts +10 -1
  15. package/dist/dom/types/css/cascade.d.ts +14 -4
  16. package/dist/dom/types/css/declarations.d.ts +5 -0
  17. package/dist/dom/types/css/internal.d.ts +1 -1
  18. package/dist/dom/types/events/listeners.d.ts +8 -1
  19. package/dist/dom/types/internal.d.ts +1 -1
  20. package/dist/dom/types/nodes/attributes.d.ts +4 -0
  21. package/dist/dom/types/nodes/cache.d.ts +5 -1
  22. package/dist/dom/types/nodes/constants.d.ts +8 -0
  23. package/dist/dom/types/selectors/filter.d.ts +5 -3
  24. package/dist/dom/types/window/clock.d.ts +5 -1
  25. package/dist/dom/types/window/compat.d.ts +3 -1
  26. package/dist/dom/types/window/geometry.d.ts +3 -9
  27. package/dist/jest-dom/_chunks/{matchers-CGTk9GX9.cjs → matchers-CkxM783o.cjs} +1 -1
  28. package/dist/jest-dom/_chunks/{matchers-Chf0yHoo.js → matchers-Dt7W4g5X.js} +1 -1
  29. package/dist/jest-dom/index.cjs +1 -1
  30. package/dist/jest-dom/index.js +1 -1
  31. package/dist/jest-dom/jest-globals.cjs +1 -1
  32. package/dist/jest-dom/jest-globals.js +1 -1
  33. package/dist/jest-dom/matchers.cjs +1 -1
  34. package/dist/jest-dom/matchers.js +1 -1
  35. package/dist/jest-dom/vitest.cjs +1 -1
  36. package/dist/jest-dom/vitest.js +1 -1
  37. package/dist/react/_chunks/{pure-DQzwul4s.cjs → pure-DR8LsIAA.cjs} +1 -1
  38. package/dist/react/_chunks/{pure-CCeTO5Mk.js → pure-ajnRI-Fp.js} +1 -1
  39. package/dist/react/index.cjs +1 -1
  40. package/dist/react/index.js +1 -1
  41. package/dist/react/pure.cjs +1 -1
  42. package/dist/react/pure.js +1 -1
  43. package/dist/testing-library/_chunks/aria-snapshot-diff-BXYf4D_D.cjs +14 -0
  44. package/dist/testing-library/_chunks/aria-snapshot-diff-DejA3Rdn.js +14 -0
  45. package/dist/testing-library/agent.cjs +1 -1
  46. package/dist/testing-library/agent.js +1 -1
  47. package/dist/testing-library/index.cjs +5 -5
  48. package/dist/testing-library/index.js +8 -8
  49. package/dist/testing-library/types/pretty-dom.d.ts +2 -1
  50. package/dist/testing-library/types/pretty-format.d.ts +125 -0
  51. package/dist/testing-library/types/screen.d.ts +2 -1
  52. package/dist/user-event/index.cjs +15 -15
  53. package/dist/user-event/index.js +15 -15
  54. package/dist/user-event/types/setup/setup.d.ts +12 -2
  55. package/dist/user-event/types/system/pointer/mouse.d.ts +0 -3
  56. package/dist/vitest-environment/index.js +1 -1
  57. package/package.json +6 -4
  58. package/dist/aria/_chunks/roles-list-BXCvPLJT.cjs +0 -4
  59. package/dist/aria/_chunks/roles-list-rVVxaIPs.js +0 -4
  60. package/dist/dom/_chunks/src-sZY6a2LC.js +0 -49
  61. package/dist/testing-library/_chunks/aria-snapshot-diff--o7AL030.cjs +0 -14
  62. package/dist/testing-library/_chunks/aria-snapshot-diff-BV9IkeNc.js +0 -14
package/dist/dom/index.js CHANGED
@@ -1 +1 @@
1
- export{Cr as AbstractRange,ds as AnimationEvent,Ua as Attr,Zt as Audio,fs as BeforeUnloadEvent,Qa as CDATASection,t as CSS,ui as CSSConditionRule,di as CSSContainerRule,fi as CSSFontFaceRule,pi as CSSGroupingRule,mi as CSSImportRule,hi as CSSKeyframeRule,gi as CSSKeyframesRule,_i as CSSLayerBlockRule,vi as CSSLayerStatementRule,yi as CSSMediaRule,bi as CSSNamespaceRule,xi as CSSNestedDeclarations,Si as CSSPageRule,Ci as CSSPropertyRule,wi as CSSRule,Ti as CSSRuleList,Ei as CSSScopeRule,Di as CSSStartingStyleRule,Ji as CSSStyleDeclaration,Oi as CSSStyleRule,ki as CSSStyleSheet,Ai as CSSSupportsRule,$a as CharacterData,cr as Clipboard,Ds as ClipboardEvent,lr as ClipboardItem,ps as CloseEvent,Or as CommandEvent,eo as Comment,Os as CompositionEvent,ya as CustomElementRegistry,ms as CustomEvent,Yn as CustomStateSet,hr as DOMImplementation,Aa as DOMMatrix,ja as DOMMatrixReadOnly,pr as DOMParser,Ma as DOMPoint,Na as DOMPointReadOnly,Pa as DOMRect,Fa as DOMRectList,Ia as DOMRectReadOnly,Wa as DOMStringMap,Ga as DOMTokenList,T as DataTransfer,E as DataTransferItem,D as DataTransferItemList,gr as Document,gr as HTMLDocument,Za as DocumentFragment,Xa as DocumentType,ks as DragEvent,Ta as Element,Xn as ElementInternals,hs as ErrorEvent,Us as Event,$o as EventTarget,et as FileList,A as FileReader,As as FocusEvent,F as FormData,gs 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,ro 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,ea 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,ta 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,_s as HashChangeEvent,dr as History,Jn as Image,js as InputEvent,O as IntersectionObserver,Ms as KeyboardEvent,fr as Location,nt as MathMLElement,tn as MediaError,ji as MediaList,ai as MediaQueryList,ci as MediaQueryListEvent,vs as MessageEvent,Ns as MouseEvent,w as MutationObserver,No as MutationRecord,Va as NamedNodeMap,ur as Navigator,uo as Node,br as NodeFilter,xr as NodeIterator,Po as NodeList,J as Option,ys as PageTransitionEvent,Ps as PointerEvent,bs as PopStateEvent,to as ProcessingInstruction,xs as ProgressEvent,Ss as PromiseRejectionEvent,na 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,Ka as ShadowRoot,Tr as StaticRange,ar as Storage,Cs as StorageEvent,Mi as StyleSheet,Ni as StyleSheetList,ws as SubmitEvent,no as Text,Fs as TextEvent,nn as TimeRanges,Ts as ToggleEvent,Is as Touch,Ls as TouchEvent,Rs as TouchList,Es as TransitionEvent,Sr as TreeWalker,zs as UIEvent,$i as ValidityState,sr as VisualViewport,Bs as WheelEvent,tr as Window,_r as XMLDocument,j as XMLHttpRequest,M as XMLHttpRequestEventTarget,N as XMLHttpRequestUpload,mr as XMLSerializer,nr as createWindow,ss as currentDocument,cs as currentWindow,ls as currentWindowOrNull,Lr as getComputedStyle,P as installGlobals,us as setCurrentWindow}from"./_chunks/src-sZY6a2LC.js";
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-BbkJRbbx.js";
@@ -1 +1 @@
1
- import{$ as e,$c as t,$d as n,$l as r,$n as i,$r as a,$s as o,$u as s,Ac as c,Ad as ee,Af as te,Al as ne,Ao as l,Ar as re,Au as ie,Ba as ae,Bc as oe,Bd as se,Bi as ce,Bl as le,Bo as ue,Br as de,Bu as fe,C as pe,Ca as me,Cc as he,Cd as u,Cf as ge,Cl as _e,Co as ve,Cu as ye,Da as be,Dc as xe,Dd as d,Df as Se,Dl as Ce,Do as we,Dr as Te,Du as Ee,Ea as De,Ec as Oe,Ed as f,Ef as ke,El as Ae,Eo as je,Er as p,Eu as m,Fc as h,Fd as g,Fi as _,Fl as v,Fo as y,Fr as b,Fu as x,Gc as S,Gd as Me,Gi as Ne,Gl as Pe,Go as Fe,Gr as Ie,Gs as Le,Gu as C,Ha as Re,Hc as ze,Hd as w,Hi as Be,Hl as Ve,Ho as He,Hr as Ue,Hs as We,Hu as T,I as Ge,Ic as Ke,Id as qe,Ii as Je,Il as Ye,Io as Xe,Ir as Ze,Iu as Qe,Ja as $e,Jc as et,Jd as tt,Jl as nt,Jo as rt,Jr as it,Js as at,Ju as ot,Kc as st,Kd as ct,Ki as lt,Kl as ut,Ko as dt,Kr as ft,Ks as pt,Ku as mt,La as ht,Lc as gt,Ld as _t,Li 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,Mr as Ot,Mu as kt,Nc as At,Nd as jt,Nl as Mt,Nr as Nt,Nu as Pt,Oa as Ft,Oc as It,Od as Lt,Of as Rt,Ol as E,Oo as zt,Ou as Bt,Pc as Vt,Pd as Ht,Pi as Ut,Pl as Wt,Po as Gt,Pr as Kt,Pu as qt,Qc as Jt,Qd as Yt,Qi as Xt,Ql as Zt,Qn as Qt,Qo as $t,Qr as en,Qs as tn,Qu as nn,Ra as rn,Rc as an,Rd 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,Tc as bn,Td as xn,Tf as Sn,Tl as Cn,To as wn,Tu as D,Uc as O,Ud as k,Ui as Tn,Ul as En,Uo as Dn,Ur as On,Uu as A,Vc as kn,Vd as An,Vi as jn,Vl as Mn,Vo as Nn,Vr as Pn,Vs as Fn,Vu as In,Wc as Ln,Wd as Rn,Wi as zn,Wl as Bn,Wo as Vn,Wr as Hn,Ws as Un,Wu as Wn,Xc as Gn,Xd as Kn,Xi as qn,Xl as Jn,Xo as Yn,Xr as Xn,Xs as Zn,Xu as Qn,Y as $n,Ya as er,Yc as tr,Yd as nr,Yi as rr,Yl as ir,Yo as ar,Yr as or,Ys as sr,Yu as cr,Zc as lr,Zd as ur,Zi as dr,Zl as fr,Zo as pr,Zr as mr,Zs as hr,Zu as gr,_ as _r,_a as j,_c as vr,_d as M,_f as yr,_l as br,_o as xr,_u as Sr,a as Cr,aa as wr,ac as Tr,ad as Er,af as Dr,al as Or,ao as kr,as as Ar,au as jr,b as Mr,ba as Nr,bc as Pr,bd as Fr,bf as Ir,bl as Lr,bo as N,bu as Rr,c as zr,ca as Br,cc as Vr,cd as Hr,cf as Ur,cl as Wr,co as Gr,cu as Kr,d as qr,da as Jr,dc as Yr,dd as Xr,df as Zr,dl as Qr,do as $r,du as ei,ec as ti,ed as ni,ef as P,ei as ri,el as ii,er as ai,es as oi,eu as si,f as ci,fa as li,fc as ui,fd as di,ff as fi,fl as pi,fo as mi,fu as hi,g as gi,ga as F,gc as _i,gd as vi,gf as yi,gl as bi,go as xi,gu as Si,h as Ci,ha as wi,hc as Ti,hd as Ei,hf as Di,hl as Oi,ho as ki,hu as Ai,i as ji,ia as Mi,ic as Ni,id as Pi,if as Fi,ii as Ii,il as I,io as Li,ir as Ri,is as zi,iu as Bi,jc as Vi,jd as Hi,jf as Ui,jl as Wi,jo as Gi,jr as Ki,ju as qi,ka as Ji,kc as Yi,kd as Xi,kf as Zi,kl as Qi,ko as $i,kr as ea,ku as ta,l as na,la as ra,lc as ia,ld as aa,lf as oa,li as sa,ll as ca,lo as la,lu as ua,m as L,ma as da,mc as fa,md as pa,mf as ma,ml as ha,mo as ga,mu as _a,n as va,nc as ya,nd as ba,nf as xa,ni as Sa,nl as Ca,ns as wa,nu as Ta,o as Ea,oa as Da,oc as Oa,od as ka,of as Aa,oi as ja,ol as Ma,oo as Na,os as Pa,ou as Fa,p as Ia,pa as R,pc as La,pd as Ra,pf as za,pl as Ba,po as Va,pu as Ha,qa as Ua,qc as Wa,qd as Ga,qi as Ka,ql as qa,qo as Ja,qr as Ya,qs as Xa,qu as Za,r as Qa,ra as $a,rc as eo,rd as to,rf as no,ri as ro,rl as io,ro as ao,rr as z,rs as oo,ru as so,s as co,sa as lo,sc as uo,sd as fo,sf as po,si as mo,sl as ho,so as go,su as _o,tc as vo,td as yo,tf as bo,ti as xo,tl as So,tr as B,ts as Co,tt as V,tu as wo,u as To,ua as Eo,uc as Do,ud as Oo,uf as ko,ul as Ao,uu as jo,v as Mo,va as H,vc as No,vd as Po,vf as Fo,vl as Io,vo as Lo,vr as Ro,vu as zo,wa as Bo,wc as Vo,wd as Ho,wf as Uo,wl as Wo,wo as Go,wu as Ko,x as qo,xa as Jo,xc as Yo,xd as Xo,xf as Zo,xl as Qo,xo as $o,xu as es,y as ts,yc as ns,yd as rs,yf as is,yl as as,yo as os,yu as ss,za as cs,zc as ls,zd as us,zi as ds,zl as fs,zo as ps,zr as ms,zu as hs}from"./_chunks/src-sZY6a2LC.js";import{constants as gs,createContext as _s,runInContext as vs}from"node:vm";import*as U from"node:diagnostics_channel";let W=null;function targets(){let e=/* @__PURE__ */ new Set,t=z();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(B.prototype),[...e]}function snapshot(e){let t=/* @__PURE__ */ new Map;for(let n of Reflect.ownKeys(e))t.set(n,Object.getOwnPropertyDescriptor(e,n));return t}let G=null;function captureInterfaceBaseline(){if(W===null){W=/* @__PURE__ */ new Map,G=/* @__PURE__ */ new WeakSet;for(let e of targets())W.set(e,snapshot(e)),G.add(e);ownObjectCreateMaps()}}let ys=null;function ownObjectCreateMaps(){if(W===null)return;let e=ys??=vs(`(prototypes) => prototypes.map((p) => Object.create(p))`,_s(gs.DONT_CONTEXTIFY)),t=[Object.prototype];for(let e of W.keys())typeof e!=`function`&&t.push(e);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,n]of W){let r=Reflect.ownKeys(t);for(let i of r)n.has(i)||isArrayIndex(i)||Reflect.deleteProperty(t,i)&&e++;for(let[r,i]of n){if(isArrayIndex(r))continue;let n=Object.getOwnPropertyDescriptor(t,r);if(!(n!==void 0&&sameDescriptor(n,i)))try{Object.defineProperty(t,r,i),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=w();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=w();return q.tracePromise(e=>n(e).finally(()=>recordSkipped(e,i)),r,void 0,r)}function recordSkipped(e,t){let n=w()-t;n>0&&(e.data[`clock.skipped_ms`]=Math.round(n))}function describeCall(e,t){let n=`${e}(`;for(let e=0;e<t.length&&(t[e]!==void 0||e!==t.length-1);e++)if(n+=(e>0?`, `:``)+describeValue(t[e],0),n.length>160)return`${n.slice(0,159)}…)`;return`${n})`}function describeValue(e,t){if(typeof e==`string`)return JSON.stringify(e.length>40?`${e.slice(0,39)}…`:e);if(typeof e==`function`)return e.name?`${e.name}()`:`fn`;if(e instanceof RegExp||typeof e!=`object`||!e)return String(e);if(e[E]!==void 0)return describeNode(e);if(Array.isArray(e))return t>0?`[…]`:`[${e.slice(0,3).map(e=>describeValue(e,t+1)).join(`, `)}${e.length>3?`, …`:``}]`;if(t>0)return`{…}`;let n=Object.entries(e).slice(0,4);return n.length===0?`{}`:`{ ${n.map(([e,n])=>`${e}: ${describeValue(n,t+1)}`).join(`, `)} }`}let 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=k();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[E]??e}function isTypingType(e){return F(e)||e===12||e>=7&&e<=11}function isEditable(e){let t=implOf(e);return t.tag===N.input?isTypingType(R(t))&&L(t):t.tag===N.textarea?L(t):Kt(t)}function supportsSelection(e){let t=implOf(e);return t.tag===N.textarea||t.tag===N.input&&j(R(t))}function hasUIValue(e){let t=implOf(e);return t.tag===N.textarea||t.tag===N.input&&H(R(t))===0}function getUIValue(e){let t=implOf(e);if(t.tag===N.input){let e=t.node;return e[M]??e.value}return t.tag===N.textarea?t.node.value:``}function setUIValue(t,n){let r=implOf(t);if(r.tag===N.input){let t=r.node,i=R(r);if(H(i)!==0)return;let a=e(i,n,r);r.doc[d]++,t[f]=a,t[S]=!0,t[u]=!0,t[M]=a===n?null:n,t[o]=a===``&&n!==``&&i!==5&&!F(i);let s=n.length;t[C]>s&&(t[C]=s),t[A]>s&&(t[A]=s)}else if(r.tag===N.textarea){let e=r.node;r.doc[d]++,e[D]=n,e[S]=!0,e[u]=!0}}function clearUIValue(e){let t=implOf(e);if(t.tag===N.input){let e=t.node;e[M]=null,e[o]=!1}}function getUISelection(e){let t=implOf(e).node,n=getUIValue(e).length;return{start:Math.min(t[C],n),end:Math.min(t[A],n),direction:t[T]}}function setUISelection(e,t,n=t,r=`none`){let i=implOf(e);if(i.tag!==N.input&&i.tag!==N.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[C]=s,a[A]=c,a[T]=r}function setFilesFromUI(e,t){let n=implOf(e);n.tag===N.input&&R(n)===17&&(n.doc[d]++,n.node[I]=V(t))}function setOptionSelectedFromUI(e,t){let n=implOf(e);if(n.tag!==N.option)return;let r=n.node;r._setSelectedness(t),r[O]=!0;let i=$n(n);if(i!==null){let e=i.node;t&&e._deselectOthers(n),e._updateSelectedContent()}}function setCheckedFromUI(e,t){let n=implOf(e);n.tag===N.input&&n.node._setCheckedness(t,!0)}const bs=B.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===bs||typeof n!=`function`||Ge.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{pt as $_proto__,Xa as $aboutBase,at as $active,sr as $assocGen,Zn as $attr,hr as $attributes,tn as $availableToElementInternals,o as $badInput,ti as $baseFor,vo as $baseOverride,ya as $baseURL,eo as $baseVersion,Ni as $block,Tr as $byCtor,Oa as $byName,uo as $cache,Vr as $callback,ia as $checked,Do as $checkedSet,Yr as $childNodes,ui as $childWindows,La as $children,fa as $classList,Ti as $clipboard,_i as $clonable,vr as $closed,No as $coll,ns as $compiled,Pr as $compiledFor,Yo as $condition,mn as $constructed,he as $constructingEntryList,Vo as $contentType,bn as $controlsCache,Oe as $controlsDoc,xe as $controlsVersion,It as $cookieJar,Yi as $cookies,c as $css,Vi as $current,Ct as $customElements,At as $customValidity,Vt as $cx,h as $data,Ke as $dataset,gt as $declarative,an as $defaultNamespace,ls as $defaultValueOverride,oe as $delegatesFocus,kn as $derived,ze as $devicePixelRatio,O as $dirtiness,Ln as $dirtyChecked,S as $dirtyValue,st as $disabled,Wa as $disallowModification,et as $doc,tr as $dropEffect,Gn as $ec,lr as $effectAllowed,Jt as $el,t as $elements,ii as $entries,So as $eo,Ca as $error,io as $file,I as $files,Or as $fill,Ma as $filter,ho as $firingSubmissionEvents,Wr as $focused,ca as $form,Ao as $forms,Qr as $frameCallbacks,pi as $frameElement,Ba as $frameId,ha as $frameTask,Oi as $frameTime,bi as $generation,br as $globalObject,Io as $hasTransients,as as $height,Lr as $history,Qo as $home,_n as $host,_e as $href,Wo as $id,Cn as $idleCallbacks,Ae as $idleId,Ce as $ids,E as $impl,Qi as $implementation,ne as $indeterminate,Wi as $index,Et as $indexed,Mt as $inflight,Wt as $info,v as $innerHeight,Ye as $innerWidth,yt as $is2D,cn as $isHTML,fs as $items,le as $keyText,Mn as $kind,Ve as $labels,En as $layerName,Bn as $list,Pe as $listeners,ut as $localStorage,qa as $location,nt as $lockedForReset,ir as $m,Jn as $matches,fr as $media,Zt as $mediaQueryLists,r as $mode,si as $name,wo as $names,Ta as $namespaces,so as $navigator,Bi as $nodes,jr as $onchange,Fa as $options,_o as $owner,Kr as $ownerNode,ua as $ownerRule,jo as $parent,ei as $parentRule,hi as $parentWindow,Ha as $pastNames,_a as $pointerBeforeReference,Ai as $preApplied,Si as $preChecked,Sr as $preCheckedRadio,zo as $preIndeterminate,ss as $prefix,Rr as $prelude,es as $presentationStyle,yn as $pseudo,ye as $queries,Ko as $ranges,D as $rawValue,m as $readonly,Ee as $readyState,Bt as $record,ta as $records,ie as $rects,qi as $reference,kt as $result,Pt as $root,qt as $rules,x as $running,Qe as $runningFrame,St as $sc,dn as $screen,hs as $scrollRestoration,fe as $scrollX,In as $scrollY,T as $selDir,A as $selEnd,Wn as $selSet,C as $selStart,mt as $selectedOptions,Za as $selectedness,ot as $selection,cr as $selector,Qn as $serializable,gr as $sessionStorage,nn as $settled,s as $shadowRoot,ni as $shed,yo as $sheet,ba as $sheets,to as $slotAssignment,Pi as $so,Er as $states,ka as $style,fo as $styleVersion,Hr as $supportsText,aa as $systemId,Oo as $target,Xr as $targets,di as $tasks,Ra as $timers,pa as $title,Ei as $type,vi as $types,M as $uiValue,Po as $updating,rs as $updatingSelectedContent,Fr as $uri,Xo as $url,hn as $userActivation,u as $userEdited,Ho as $userValidity,xn as $validity,f as $value,d as $version,Lt as $visualViewport,Xi as $w,ee as $whatToShow,Hi as $whenDefined,wt as $width,jt as $window,Ht as $writeBuffer,g as $x,qe as $xhr,_t as $y,on as $z,nr as ATTRIBUTE_NODE,pr as AttrRecord,Kn as CDATA_SECTION_NODE,ur as COMMENT_NODE,jn as COMPAT,Be as COMPAT_PROFILES,Tn as DEFAULT_COMPAT,Yt as DOCUMENT_FRAGMENT_NODE,n as DOCUMENT_NODE,P as DOCUMENT_POSITION_CONTAINED_BY,bo as DOCUMENT_POSITION_CONTAINS,xa as DOCUMENT_POSITION_DISCONNECTED,no as DOCUMENT_POSITION_FOLLOWING,Fi as DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC,Dr as DOCUMENT_POSITION_PRECEDING,Aa as DOCUMENT_TYPE_NODE,rr as DeclBlock,po as ELEMENT_NODE,Ur as ENTITY_NODE,oa as ENTITY_REFERENCE_NODE,Un as EventState,Y as FAILURE_CHANNEL,ko as F_ADOPT_HOOK,Zr as F_ATTR_HOOK,fi as F_CE_CUSTOM,za as F_CHILDREN_HOOK,ma as F_CHILD_LIST,Di as F_CONNECTED,yi as F_CONNECT_HOOK,yr as F_CUSTOM,Fo as F_FACE,is as F_HAS_SHADOW,Ir as F_HAS_STYLE_ATTR,Zo as F_HTML,gn as F_MO_REGISTERED,ge as F_SHADOW_ROOT,Nr as GLOBAL_EVENT_HANDLER_EVENTS,ao as HTMLCollection,Uo as HTML_NS,li as INPUT_TYPE_NAMES,Sn as MATHML_NS,ke as NOTATION_NODE,Je as NodeCache,$t as NodeImpl,Gt as NodeList,Se as PROCESSING_INSTRUCTION_NODE,K as SPAN_CHANNEL,Rt as SVG_NS,N as T,Zi as TEXT_NODE,us as VirtualClock,se as VirtualTimeout,Jo as WINDOW_EVENT_HANDLER_EVENTS,te as XLINK_NS,Ui as XMLNS_NS,Tt as XML_NS,mr as adoptedStyleSheetsOf,ve as asciiLowercase,ga as assignManually,ki as assignedElements,xi as assignedNodes,xr as assignedSlot,De as attachShadowRoot,Go as attr,Qt as attrAssociatedElement,i as attrAssociatedElements,Re as attrNode,captureInterfaceBaseline,ps as childAt,wn as classTokens,clearUIValue,An as clockNow,k as clockStats,Na as closest,p as compareBoundaryPoints,zn as compatExposes,un as computedDisplay,ms as computedValue,de as computedVisibility,ea as constructEntryList,va as controlValue,Ro as createEvent,V as createFileList,en as createLinkSheet,Pn as currentStyleVersion,re as defaultButton,Ne as deferredCompatMembers,bt as derivedCache,describeCall,describeNode,oi as dispatch,sn as dispatchTrusted,Li as ensureCollectionIndexGetters,y as ensureIndexGetters,ja as evaluateMediaQueryList,dr as faceState,Lo as findFlattenedSlottables,os as findSlot,ds as fireAnEvent,ce as fireSyntheticPointerEvent,ue as firstElementChild,Rn as foreignImmediatesPending,Mi as formOwner,je as getAttribute,xt as getComputedStyle,getComputedStyleOverride,Co as getCurrentEvent,be as getElementsByClassName,Ft as getElementsByTagName,Ji as getElementsByTagNameNS,pn as getEventHandler,getUISelection,getUIValue,guardInterfaceDefinitions,we as hasAttr,Ue as hasAuthorStyles,ai as hasExplicitAttrElements,Fn as hasListeners,Qa as hasReadonlyAttribute,hasUIValue,lt as hiddenGlobals,Ki as implicitSubmission,Xe as indexGetterTable,Nn as indexOf,ji as inputChecked,Cr as inputIndeterminate,R as inputType,da as inputTypeFromAttr,$r as inspectNode,Me as installClock,me as installEventHandlers,wr as isActuallyDisabled,zt as isAsciiWhitespace,Ea as isAutofilled,co as isChecked,zr as isDefault,na as isDisabled,On as isDisplayNone,Hn as isDisplayNoneInclusive,isEditable as isEditableControl,To as isEnabled,Xt as isFACE,qr as isInRange,He as isInclusiveAncestor,ci as isIndeterminate,Ia as isInvalid,Da as isLabelable,lo as isListed,L as isMutable,wi as isNumericType,Ci as isOptional,gi as isOutOfRange,_r as isPlaceholderShown,Mo as isReadOnly,ts as isReadWrite,Mr as isRequired,Br as isResettable,Ot as isSubmitButton,ra as isSubmittable,qo as isTextControl,F as isTextualType,fn as isValid,ht as isValidDoctypeName,rn as isValidElementLocalName,cs as isValidNamespacePrefix,Ie as isVisibilityHidden,Eo as labeledControl,Jr as labelsFor,Dn as lastElementChild,$a as listOfOptions,Ut as matchMediaText,go as matches,mo as mediaEnvironment,Vn as nextElementInTree,Fe as nextElementSibling,dt as nextInTree,Ja as nextSkippingChildren,vt as nodeCache,wa as nodeGetTheParent,Te as nodeLength,Dt as notifyMutationObservers,pe as optionSelected,qn as parseDeclBlock,er as parseFragment,_ as parseMediaQueryList,ln as peekDerivedCache,ft as pointerEvents,Ya as pointerEventsNone,rt as previousElementSibling,ar as previousInTree,it as pseudoContent,Gr as querySelector,la as querySelectorAll,quote,ri as registerOwnerSheet,We as removeAllEventListeners,$i as removeAttribute,xo as removeOwnerSheet,mi as replaceData,Ar as reportException,Ka as resolveCompat,restoreInterfaces,oo as retarget,Ua as serializeChildren,$e as serializeNode,Sa as setAdoptedStyleSheets,zi as setAssignedSlotLookup,l as setAttribute,setCheckedFromUI,or as setComputedColorMode,Bo as setEventHandler,setFailureSnapshot,setFilesFromUI,setNodeDescriber,Nt as setNotImplementedHandler,setOptionSelectedFromUI,Le as setTrusted,setUISelection,setUIValue,Pa as setUncaughtExceptionHandler,ct as skipIdleTime,spanChannel,Gi as splitOnAsciiWhitespace,Va as splitText,b as styleElementRemoved,a as styleElementSheet,Ze as styleElementUpdated,ro as styleSheetsOf,subscribeTestFailures,supportsSelection,j as supportsSelectionType,$o as tagId,vn as tagName,tracePromise,traceSync,tracing,Ri as trackGlobalTimers,Yn as treeRoot,Xn as uaDisplay,Ii as unregisterOwnerSheet,ae as validateAndExtract,H as valueMode,Ga as virtualDate,tt as virtualPerformance,sa as windowHooks,z as windowInterfaces,kr 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 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,Bi as de,Bl as fe,Bo as pe,Br as me,Bu as he,C as ge,Ca as _e,Cc as ve,Cd as ye,Cf as be,Cl as xe,Co as Se,Cu as Ce,Da as we,Dc as Te,Dd as Ee,Df as De,Dl as Oe,Do as ke,Dr as Ae,Du as je,Ec as Me,Ed as u,Ef as Ne,El as Pe,Eo as d,Er as f,Eu as p,Fc as m,Fd as h,Ff as g,Fi as _,Fl as v,Fo as y,Fr as Fe,Fu as Ie,Gc as Le,Gd as b,Gi as Re,Gl as ze,Go as Be,Gr as Ve,Gs as He,Gu as x,Hc as Ue,Hd as We,Hi as Ge,Hl as Ke,Ho as qe,Hr as Je,Hu as Ye,I as Xe,Ic as Ze,Id as Qe,If as $e,Ii as et,Il as tt,Ir as nt,Iu as rt,Ja as it,Jc as S,Jd as at,Ji as ot,Jl as st,Jo as ct,Jr as lt,Js as ut,Ju as C,Kc as w,Kd as T,Ki as dt,Kl as ft,Ko as pt,Kr as mt,Ku as E,Lc as ht,Ld as gt,Lf as _t,Li 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,Mr as Ot,Mu as kt,Nc as At,Nd as jt,Nf as Mt,Nl as Nt,No as Pt,Nr as Ft,Nu as It,Oa as Lt,Oc as Rt,Od as zt,Of as Bt,Ol as Vt,Oo as Ht,Ou as D,Pc as Ut,Pd as Wt,Pf as Gt,Pl as Kt,Po as qt,Pr as Jt,Pu as Yt,Qc as Xt,Qd as Zt,Qi as Qt,Ql as $t,Qn as en,Qo as tn,Qr as nn,Qs as rn,Qu as an,Ra as on,Rc as sn,Rd as cn,Ri as ln,Rl as un,Ro as dn,Rr as fn,Ru as pn,S as mn,Sa as hn,Sc as gn,Sd as _n,Sf as vn,Sl as yn,So as bn,Su as xn,Ta as Sn,Tc as Cn,Td as wn,Tf as Tn,Tl as En,To as Dn,Tu as On,Ua as kn,Uc as An,Ud as jn,Ui as Mn,Ul as Nn,Uo as Pn,Ur as Fn,Uu as In,Va as Ln,Vc as Rn,Vd as zn,Vi as Bn,Vl as Vn,Vo as Hn,Vr as Un,Vu as Wn,Wc as Gn,Wd as Kn,Wi as qn,Wl as Jn,Wo as Yn,Wr as Xn,Ws as Zn,Wu as Qn,Xa as $n,Xc as er,Xd as tr,Xi as nr,Xl as rr,Xo as ir,Xr as ar,Xs as or,Xu as sr,Y as cr,Ya as lr,Yc as ur,Yd as dr,Yl as fr,Yo as pr,Yr as mr,Ys as hr,Yu as gr,Zc as _r,Zd as vr,Zi as yr,Zl as br,Zo as xr,Zr as Sr,Zs as Cr,Zu as wr,_ as Tr,_a as O,_c as Er,_d as Dr,_f as Or,_l as kr,_o as Ar,_u as jr,a as Mr,aa as Nr,ac as Pr,ad as Fr,af as Ir,ai as Lr,al as Rr,ao as zr,as as Br,au as Vr,b as Hr,bc as Ur,bd as k,bf as Wr,bl as Gr,bo as Kr,bu as qr,c as Jr,ca as Yr,cc as Xr,cd as Zr,cf as Qr,ci as $r,cl as ei,co as ti,cs as ni,cu as ri,d as ii,da as ai,dc as oi,dd as si,df as ci,dl as li,du as ui,ec as A,ed as di,ef as fi,ei as pi,el as mi,er as hi,es as gi,eu as _i,f as vi,fa as yi,fc as bi,fd as xi,ff as Si,fl as Ci,fo as wi,fu as Ti,g as Ei,ga as Di,gc as Oi,gd as ki,gf as Ai,gl as ji,go as Mi,gu as Ni,h as Pi,ha as Fi,hc as Ii,hd as Li,hf as Ri,hl as zi,ho as Bi,hu as Vi,i as Hi,ia as Ui,ic as Wi,id as Gi,if as Ki,ii as qi,il as Ji,io as Yi,ir as Xi,is as Zi,iu as Qi,jc as $i,jd as ea,jf as ta,jl as j,jo as na,jr as ra,ju as ia,ka as aa,kc as oa,kd as M,kf as sa,kl as ca,ko as la,kr as ua,ku as da,l as fa,la as pa,lc as ma,ld as ha,lf as ga,ll as _a,lo as va,ls as ya,lu as ba,m as N,ma as P,mc as xa,md as Sa,mf as Ca,ml as wa,mo as Ta,mu as Ea,n as Da,nc as F,nd as Oa,nf as ka,ni as Aa,nl as ja,nu as Ma,o as Na,oa as Pa,oc as Fa,od as Ia,of as La,ol as Ra,oo as za,os as Ba,ou as Va,p as Ha,pa as Ua,pc as Wa,pd as Ga,pf as Ka,pl as qa,po as Ja,pu as Ya,qc as Xa,qd as Za,qi as Qa,ql as $a,qo as eo,qr as to,qs as no,qu as ro,r as io,rc as ao,rd as oo,rf as so,ri as co,rl as lo,rr as I,rs as uo,ru as fo,s as po,sa as mo,sc as ho,sd as go,sf as _o,si as vo,sl as L,so as yo,ss as bo,su as xo,tc as So,td as Co,tf as wo,ti as To,tl as Eo,tr as R,ts as Do,tt as z,tu as Oo,u as ko,ua as Ao,uc as jo,ud as Mo,uf as No,ui as Po,ul as Fo,uo as Io,uu as Lo,v as Ro,va as B,vc as zo,vd as Bo,vf as Vo,vl as Ho,vo as Uo,vr as Wo,vu as Go,wa as Ko,wc as qo,wd as Jo,wf as Yo,wl as Xo,wo as Zo,wu as Qo,x as $o,xa as es,xc as ts,xd as ns,xf as rs,xl as is,xo as V,xu as as,y as os,ya as H,yc as ss,yd as cs,yf as ls,yl as us,yo as ds,yu as fs,za as ps,zc as ms,zd as hs,zi as gs,zl as _s,zo as vs,zr as ys,zu as bs}from"./_chunks/src-BbkJRbbx.js";import{constants as xs,createContext as Ss,runInContext as Cs}from"node:vm";import*as U from"node:diagnostics_channel";let W=null;function targets(){let e=/* @__PURE__ */ new Set,t=I();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 ws=null;function ownObjectCreateMaps(){if(W===null)return;let e=ws??=Cs(`(prototypes) => prototypes.map((p) => Object.create(p))`,Ss(xs.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=b();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=b();return q.tracePromise(e=>n(e).finally(()=>recordSkipped(e,i)),r,void 0,r)}function recordSkipped(e,t){let n=b()-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[j]!==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=T();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[j]??e}function isTypingType(e){return O(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):Jt(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[k]??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[l]++,t[M]=a,t[S]=!0,t[u]=!0,t[k]=a===n?null:n,t[F]=a===``&&n!==``&&i!==5&&!O(i);let o=n.length;t[C]>o&&(t[C]=o),t[E]>o&&(t[E]=o)}else if(r.tag===V.textarea){let e=r.node;r.doc[l]++,e[D]=n,e[S]=!0,e[u]=!0}}function clearUIValue(e){let t=implOf(e);if(t.tag===V.input){let e=t.node;e[k]=null,e[F]=!1}}function getUISelection(e){let t=implOf(e).node,n=getUIValue(e).length;return{start:Math.min(t[C],n),end:Math.min(t[E],n),direction:t[x]}}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[C]=s,a[E]=c,a[x]=r}function setFilesFromUI(e,t){let n=implOf(e);n.tag===V.input&&P(n)===17&&(n.doc[l]++,n.node[L]=z(t))}function setOptionSelectedFromUI(e,t){let n=implOf(e);if(n.tag!==V.option)return;let r=n.node;r._setSelectedness(t),r[w]=!0;let i=cr(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 Ts=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===Ts||typeof n!=`function`||Xe.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{hr as $_proto__,or as $aboutBase,Cr as $active,rn as $assocGen,c as $attr,A as $attributes,So as $availableToElementInternals,F as $badInput,ao as $baseFor,Wi as $baseOverride,Pr as $baseURL,Fa as $baseVersion,ho as $block,Xr as $byCtor,ma as $byName,jo as $cache,oi as $callback,bi as $checked,Wa as $checkedSet,xa as $childNodes,Ii as $childWindows,Oi as $children,Er as $classList,zo as $clipboard,ss as $clonable,Ur as $closed,ts as $coll,gn as $compiled,ve as $compiledFor,qo as $condition,Cn as $constructed,Me as $constructingEntryList,Te as $contentType,Rt as $controlsCache,oa as $controlsDoc,ne as $controlsVersion,$i as $cookieJar,Ct as $cookies,At as $css,Ut as $current,m as $customElements,Ze as $customValidity,ht as $cx,sn as $data,ms as $dataset,le as $declarative,Rn as $defaultNamespace,Ue as $defaultValueOverride,An as $delegatesFocus,Gn as $derived,Le as $devicePixelRatio,w as $dirtiness,Xa as $dirtyChecked,S as $dirtyValue,ur as $disabled,er as $disallowModification,_r as $doc,Xt as $dropEffect,t as $ec,mi as $effectAllowed,Eo as $el,ja as $elements,lo as $entries,Ji as $eo,Rr as $error,Ra as $file,L as $files,ei as $fill,_a as $filter,Fo as $firingSubmissionEvents,li as $focused,Ci as $form,qa as $forms,wa as $frameCallbacks,zi as $frameElement,ji as $frameId,kr as $frameTask,Ho as $frameTime,us as $generation,Gr as $globalObject,is as $hasTransients,yn as $height,xe as $history,Xo as $home,En as $host,Pe as $href,Oe as $id,Vt as $idleCallbacks,ca as $idleId,ie as $ids,j as $impl,Et as $implementation,Nt as $indeterminate,Kt as $index,v as $indexed,tt as $inflight,yt as $info,un as $innerHeight,_s as $innerWidth,fe as $is2D,Vn as $isHTML,Ke as $items,Nn as $keyText,Jn as $kind,ze as $labels,ft as $layerName,$a as $list,st as $listeners,fr as $localStorage,rr as $location,br as $lockedForReset,$t as $m,i as $matches,_i as $media,Oo as $mediaQueryLists,Ma as $mode,fo as $name,Qi as $names,Vr as $namespaces,Va as $navigator,xo as $nodes,ri as $onchange,ba as $options,Lo as $owner,ui as $ownerNode,Ti as $ownerRule,Ya as $parent,Ea as $parentRule,Vi as $parentWindow,Ni as $pastNames,jr as $pointerBeforeReference,Go as $preApplied,fs as $preChecked,qr as $preCheckedRadio,as as $preIndeterminate,xn as $prefix,Ce as $prelude,Qo as $presentationStyle,On as $pseudo,p as $queries,je as $ranges,D as $rawValue,da as $readonly,se as $readyState,ia as $record,kt as $records,It as $rects,Yt as $reference,Ie as $result,rt as $root,St as $rules,pn as $running,bs as $runningFrame,he as $sc,Wn as $screen,Ye as $scrollRestoration,In as $scrollX,Qn as $scrollY,x as $selDir,E as $selEnd,ro as $selSet,C as $selStart,gr as $selectedOptions,sr as $selectedness,wr as $selection,an as $selector,ee as $serializable,di as $sessionStorage,Co as $settled,Oa as $shadowRoot,oo as $shed,Gi as $sheet,Fr as $sheets,Ia as $slotAssignment,go as $so,Zr as $states,ha as $style,Mo as $styleVersion,si as $supportsText,xi as $systemId,Ga as $target,Sa as $targets,Li as $tasks,ki as $timers,Dr as $title,Bo as $type,cs as $types,k as $uiValue,ns as $updating,_n as $updatingSelectedContent,ye as $uri,Jo as $url,wn as $userActivation,u as $userEdited,Ee as $userValidity,zt as $validity,M as $value,l as $version,ea as $visualViewport,wt as $w,jt as $whatToShow,Wt as $whenDefined,h as $width,Qe as $window,gt as $writeBuffer,cn as $x,hs as $xhr,ue as $y,zn as $z,Zt as ATTRIBUTE_NODE,gi as AttrRecord,n as CDATA_SECTION_NODE,fi as COMMENT_NODE,Ge as COMPAT,Mn as COMPAT_PROFILES,qn as DEFAULT_COMPAT,wo as DOCUMENT_FRAGMENT_NODE,ka as DOCUMENT_NODE,so as DOCUMENT_POSITION_CONTAINED_BY,Ki as DOCUMENT_POSITION_CONTAINS,Ir as DOCUMENT_POSITION_DISCONNECTED,La as DOCUMENT_POSITION_FOLLOWING,_o as DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC,Qr as DOCUMENT_POSITION_PRECEDING,ga as DOCUMENT_TYPE_NODE,nr as DeclBlock,No as ELEMENT_NODE,ci as ENTITY_NODE,Si as ENTITY_REFERENCE_NODE,no as EventState,Y as FAILURE_CHANNEL,Ka as F_ADOPT_HOOK,Ca as F_ARIA_ATTRS,Ri as F_ATTR_HOOK,Ai as F_CE_CUSTOM,Or as F_CHILDREN_HOOK,Vo as F_CHILD_LIST,ls as F_CONNECTED,Wr as F_CONNECT_HOOK,rs as F_CUSTOM,vn as F_DATA_ATTRS,be as F_FACE,Yo as F_HAS_SHADOW,Tn as F_HAS_STYLE_ATTR,Ne as F_HTML,De as F_MO_REGISTERED,Bt as F_SHADOW_ROOT,es as GLOBAL_EVENT_HANDLER_EVENTS,Yi as HTMLCollection,sa as HTML_NS,Ua as INPUT_TYPE_NAMES,re as MATHML_NS,ta as NOTATION_NODE,vt as NodeCache,Do as NodeImpl,bt as NodeList,Tt as PROCESSING_INSTRUCTION_NODE,K as SPAN_CHANNEL,Mt as SVG_NS,V as T,Gt as TEXT_NODE,We as VirtualClock,jn as VirtualTimeout,hn as WINDOW_EVENT_HANDLER_EVENTS,g as XLINK_NS,$e as XMLNS_NS,_t as XML_NS,nn as adoptedStyleSheetsOf,Zo as ariaAttr,Dn as asciiLowercase,Bi as assignManually,Mi as assignedElements,Ar as assignedNodes,Uo as assignedSlot,we as attachShadowRoot,d as attr,en as attrAssociatedElement,a as attrAssociatedElements,kn as attrNode,captureInterfaceBaseline,qe as childAt,ke as classTokens,clearUIValue,Kn as clockNow,T as clockStats,yo as closest,f as compareBoundaryPoints,Re as compatExposes,fn as computedDisplay,ys as computedValue,me as computedVisibility,ua as constructEntryList,Da as controlValue,Wo as createEvent,z as createFileList,s as createLinkSheet,Un as currentStyleVersion,oe as defaultButton,dt as deferredCompatMembers,pe as derivedCache,describeCall,describeNode,uo as dispatch,gs as dispatchTrusted,zr as ensureCollectionIndexGetters,dn as ensureIndexGetters,vo as evaluateMediaQueryList,Qt as faceState,ds as findFlattenedSlottables,Kr as findSlot,de as fireAnEvent,Bn as fireSyntheticPointerEvent,Pn as firstElementChild,Za as foreignImmediatesPending,Nr as formOwner,Ht as getAttribute,xt as getComputedStyle,getComputedStyleOverride,Zi as getCurrentEvent,Lt as getElementsByClassName,aa as getElementsByTagName,te as getElementsByTagNameNS,_e as getEventHandler,getUISelection,getUIValue,guardInterfaceDefinitions,la as hasAttr,Je as hasAuthorStyles,hi as hasExplicitAttrElements,Zn as hasListeners,io as hasReadonlyAttribute,hasUIValue,Qa as hiddenGlobals,ra as implicitSubmission,vs as indexGetterTable,Yn as indexOf,Hi as inputChecked,Mr as inputIndeterminate,P as inputType,Fi as inputTypeFromAttr,wi as inspectNode,at as installClock,Ko as installEventHandlers,Pa as isActuallyDisabled,ae as isAsciiWhitespace,Na as isAutofilled,po as isChecked,Jr as isDefault,fa as isDisabled,Fn as isDisplayNone,Xn as isDisplayNoneInclusive,isEditable as isEditableControl,ko as isEnabled,r as isFACE,ii as isInRange,Be as isInclusiveAncestor,vi as isIndeterminate,Ha as isInvalid,mo as isLabelable,Yr as isListed,N as isMutable,Di as isNumericType,Pi as isOptional,Ei as isOutOfRange,Tr as isPlaceholderShown,Ro as isReadOnly,os as isReadWrite,Hr as isRequired,pa as isResettable,Ot as isSubmitButton,Ao as isSubmittable,$o as isTextControl,O as isTextualType,mn as isValid,on as isValidDoctypeName,ps as isValidElementLocalName,ce as isValidNamespacePrefix,Ve as isVisibilityHidden,ai as labeledControl,yi as labelsFor,pt as lastElementChild,Ui as listOfOptions,_ as matchMediaText,ti as matches,$r as mediaEnvironment,eo as nextElementInTree,ct as nextElementSibling,pr as nextInTree,ir as nextSkippingChildren,ln as nodeCache,Br as nodeGetTheParent,Ae as nodeLength,y as notifyMutationObservers,ge as optionSelected,yr as parseDeclBlock,$n as parseFragment,et as parseMediaQueryList,Hn as peekDerivedCache,mt as pointerEvents,to as pointerEventsNone,na as prefixFlag,xr as previousElementSibling,tn as previousInTree,lt as pseudoContent,va as querySelector,Io as querySelectorAll,quote,To as registerOwnerSheet,He as removeAllEventListeners,Dt as removeAttribute,Aa as removeOwnerSheet,Ja as replaceData,ni as reportException,ot as resolveCompat,restoreInterfaces,Ba as retarget,it as serializeChildren,lr as serializeNode,co as setAdoptedStyleSheets,bo as setAssignedSlotLookup,Pt as setAttribute,setCheckedFromUI,mr as setComputedColorMode,Sn as setEventHandler,setFailureSnapshot,setFilesFromUI,setNodeDescriber,Ft as setNotImplementedHandler,setOptionSelectedFromUI,ut as setTrusted,setUISelection,setUIValue,ya as setUncaughtExceptionHandler,dr as skipIdleTime,spanChannel,qt as splitOnAsciiWhitespace,Ta as splitText,Fe as styleElementRemoved,pi as styleElementSheet,nt as styleElementUpdated,qi as styleSheetsOf,ar as styledDisplay,subscribeTestFailures,supportsSelection,B as supportsSelectionType,bn as tagId,Se as tagName,tracePromise,traceSync,tracing,Xi as trackGlobalTimers,o as treeRoot,Sr as uaDisplay,Lr as unregisterOwnerSheet,Ln as validateAndExtract,H as valueMode,tr as virtualDate,vr as virtualPerformance,Po as windowHooks,I as windowInterfaces,za as withNamedProperties};
@@ -21,7 +21,16 @@ export declare class CSSStyleDeclaration {
21
21
  constructor(owner?: Element | null, block?: DeclBlock | null, parentRule?: DeclarationOwnerRule | null);
22
22
  /** @internal Core hook: the owner's style attribute changed (https://drafts.csswg.org/cssom/#ref-for-concept-element-attributes-change-ext). */
23
23
  _attributeChanged(value: string | null): void;
24
- /** https://drafts.csswg.org/cssom/#update-style-attribute-for */
24
+ /**
25
+ * https://drafts.csswg.org/cssom/#update-style-attribute-for
26
+ *
27
+ * Eager: every inline style write re-serializes the whole block into the style attribute.
28
+ * Base UI's interaction tests (floating-ui writes positions on every render) spend ~0.5 s of
29
+ * 72.5 s CPU in inline-style writes (bench/README.md "Where real suites spend their time").
30
+ * Serializing when the attribute is read, as Blink does, would save part of that, but every
31
+ * attribute read path (getAttribute, attribute iteration, serialization, MutationObserver old
32
+ * values) would then have to check for a stale style attribute.
33
+ */
25
34
  _changed(): void;
26
35
  _syncIndices(): void;
27
36
  _checkWritable(): void;
@@ -19,12 +19,20 @@ export declare class IndexedRule {
19
19
  h3: number;
20
20
  constructor(sel: CompiledSelector, order: number, block: DeclBlock, layerNode: LayerNode);
21
21
  }
22
+ /** The rules that share one subject key. */
23
+ export declare class Bucket {
24
+ rules: IndexedRule[];
25
+ /** How many have ancestor hashes (`h0 >= 0`): the ones the ancestor filter can reject. */
26
+ hashed: number;
27
+ constructor();
28
+ push(r: IndexedRule): void;
29
+ }
22
30
  /** Rules bucketed by subject key. */
23
31
  export declare class RuleBuckets {
24
- ids: Map<string, IndexedRule[]>;
25
- classes: Map<string, IndexedRule[]>;
26
- tags: Map<string, IndexedRule[]>;
27
- universal: IndexedRule[];
32
+ ids: Map<string, Bucket>;
33
+ classes: Map<string, Bucket>;
34
+ tags: Map<string, Bucket>;
35
+ universal: Bucket;
28
36
  size: number;
29
37
  /**
30
38
  * Quirks-mode document: id and class keys are ASCII-lowercased on both sides
@@ -133,6 +141,8 @@ export declare function hasAuthorStyles(doc: Document): boolean;
133
141
  export declare function computedPosition(el: NodeImpl): string;
134
142
  /** Computed `display` of the element (own value, not ancestors). */
135
143
  export declare function computedDisplay(el: NodeImpl): string;
144
+ /** Computed `display` when author or inline styles could set it, else null (it is `uaDisplay(el)`). */
145
+ export declare function styledDisplay(el: NodeImpl): string | null;
136
146
  /** https://drafts.csswg.org/css-display-3/#valdef-display-none — own computed display is none. */
137
147
  export declare function isDisplayNone(el: NodeImpl): boolean;
138
148
  /** The element or an ancestor (flat-tree-ish: through shadow hosts) is display:none. */
@@ -7,6 +7,11 @@ export declare class DeclBlock {
7
7
  important: boolean[];
8
8
  /** Set by put()/removeOne() when they change the block (setProperty's "updated" flag). */
9
9
  dirty: boolean;
10
+ /**
11
+ * Set whenever `names` changes (not when only a value does), so the CSSStyleDeclaration's
12
+ * indexed properties are re-synced only then: most style writes update a value in place.
13
+ */
14
+ namesChanged: boolean;
10
15
  constructor();
11
16
  get length(): number;
12
17
  indexOf(name: string): number;
@@ -1,4 +1,4 @@
1
- export { hasAuthorStyles, isDisplayNone, isDisplayNoneInclusive, computedDisplay, computedVisibility, isVisibilityHidden, pointerEvents, pointerEventsNone, computedValue, pseudoContent, uaDisplay, currentStyleVersion, setComputedColorMode, } from "./cascade.js";
1
+ export { hasAuthorStyles, isDisplayNone, isDisplayNoneInclusive, computedDisplay, styledDisplay, computedVisibility, isVisibilityHidden, pointerEvents, pointerEventsNone, computedValue, pseudoContent, uaDisplay, currentStyleVersion, setComputedColorMode, } from "./cascade.js";
2
2
  export { createOwnerSheet as styleElementSheet, removeOwnerSheet, createLinkSheet, registerOwnerSheet, unregisterOwnerSheet, styleSheetsOf, adoptedStyleSheetsOf, setAdoptedStyleSheets, } from "./stylesheets.js";
3
3
  export { matchMediaText, parseMediaQueryList, evaluateMediaQueryList, type MediaEnvironment } from "./media.js";
4
4
  export { getComputedStyle } from "./computed.js";
@@ -20,7 +20,14 @@ export declare class ListenerList {
20
20
  export type ListenerMap = Map<string, ListenerList>;
21
21
  /** https://dom.spec.whatwg.org/#concept-flatten-options */
22
22
  export declare function flattenCapture(options: boolean | EventListenerOptions | undefined | null): boolean;
23
- /** https://dom.spec.whatwg.org/#add-an-event-listener */
23
+ /**
24
+ * https://dom.spec.whatwg.org/#add-an-event-listener
25
+ *
26
+ * The most-called DOM entry point in component suites: React adds 142 listeners to every root
27
+ * container, so each render() in a test makes 142 calls. It is our top function by self time in
28
+ * Base UI's interaction tests and still only 0.2% of their CPU (~0.2 µs a call; bench/README.md
29
+ * "Where real suites spend their time").
30
+ */
24
31
  export declare function addEventListener(target: EventTarget, type: string, callback: EventListenerOrEventListenerObject | null | undefined, options: boolean | AddEventListenerOptions | undefined | null): void;
25
32
  /** https://dom.spec.whatwg.org/#dom-eventtarget-removeeventlistener */
26
33
  export declare function removeEventListener(target: EventTarget, type: string, callback: EventListenerOrEventListenerObject | null | undefined, options: boolean | EventListenerOptions | undefined | null): void;
@@ -6,7 +6,7 @@ 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
8
  export { nextInTree, nextSkippingChildren, previousInTree, nextElementInTree, firstElementChild, lastElementChild, nextElementSibling, previousElementSibling, treeRoot, isInclusiveAncestor, indexOf, childAt, } from "./nodes/traverse.js";
9
- export { attr, hasAttr, getAttribute, setAttribute, removeAttribute, classTokens, asciiLowercase, splitOnAsciiWhitespace, isAsciiWhitespace, } from "./nodes/attributes.js";
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";
12
12
  export { parseFragment } from "./parser/index.js";
@@ -12,11 +12,15 @@ export declare function findAttributeByName(el: NodeImpl, qualifiedName: string)
12
12
  export declare function findAttributeByNamespace(el: NodeImpl, ns: string | null, localName: string): AttrRecord | null;
13
13
  /** getAttribute(qualifiedName). Lowercases for HTML elements in HTML documents. */
14
14
  export declare function getAttribute(el: NodeImpl, qualifiedName: string): string | null;
15
+ /** F_ARIA_ATTRS / F_DATA_ATTRS for an attribute local name starting with `aria-` / `data-`, else 0. */
16
+ export declare function prefixFlag(localName: string): number;
15
17
  /**
16
18
  * Hot-path read for internal callers that pass an already-lowercase, no-namespace name
17
19
  * literal (e.g. "role", "aria-label", "type"). Skips normalization.
18
20
  */
19
21
  export declare function attr(el: NodeImpl, lowerName: string): string | null;
22
+ /** `attr` for an `aria-*` name: null without a scan when the element has no aria-* attribute (F_ARIA_ATTRS). */
23
+ export declare function ariaAttr(el: NodeImpl, lowerName: string): string | null;
20
24
  export declare function hasAttr(el: NodeImpl, lowerName: string): boolean;
21
25
  /** setAttribute(qualifiedName, value) — https://dom.spec.whatwg.org/#dom-element-setattribute */
22
26
  export declare function setAttribute(el: NodeImpl, qualifiedName: string, value: string): void;
@@ -13,8 +13,10 @@ import type { NodeImpl } from "./NodeImpl.js";
13
13
  export declare class NodeCache {
14
14
  /** `Document._version` at which `role` was computed. */
15
15
  roleVersion: number;
16
- /** Computed (explicit-or-implicit) role, "" for none. */
16
+ /** Testing Library's implicit role (aria/src/role.ts implicitRole), "" for none, "\0" not computed yet. */
17
17
  role: string;
18
+ /** The `role` attribute at `roleVersion`, null when absent. */
19
+ roleAttr: string | null;
18
20
  /** `Document._version` at which `name` was computed. */
19
21
  nameVersion: number;
20
22
  /** Accessible name. */
@@ -25,6 +27,8 @@ export declare class NodeCache {
25
27
  styleSheetVersion: number;
26
28
  /** Opaque computed-style record owned by src/css. */
27
29
  style: object | null;
30
+ /** The live `getComputedStyle()` declaration for the element (src/css/computed.ts); never stale. */
31
+ computedStyle: object | null;
28
32
  /** `Document._styleVersion` at which `name` was computed (paired with `nameVersion`). */
29
33
  ariaNameStyleVersion: number;
30
34
  /** `Document._version` at which `ariaHiddenBits` was computed. */
@@ -50,3 +50,11 @@ export declare const F_MO_REGISTERED: number;
50
50
  export declare const F_ADOPT_HOOK: number;
51
51
  /** Element is a form-associated custom element (its definition has `static formAssociated = true`); set by html/custom-elements.ts, read by html/forms. */
52
52
  export declare const F_FACE: number;
53
+ /**
54
+ * Element has an attribute whose local name starts with `aria-` (any namespace, so it may be set
55
+ * when no null-namespace one exists): lookups of `aria-*` names skip elements without it. Kept
56
+ * by nodes/attributes.ts (addRecord, removeAttributeRecord) and nodes/clone.ts.
57
+ */
58
+ export declare const F_ARIA_ATTRS: number;
59
+ /** Same for `data-*` attributes (Testing Library's *ByTestId). */
60
+ export declare const F_DATA_ATTRS: number;
@@ -9,11 +9,13 @@ export declare function classHash(name: string): number;
9
9
  * into a featureless shadow host, whose compound carries no hashes).
10
10
  * Not for quirks-mode documents (their ids and classes match case-insensitively).
11
11
  *
12
- * Not reused across elements: keeping the last parent to reuse the set for its siblings needs a
13
- * reference to it, and a WeakRef keeps its target alive until the end of the current job (every
12
+ * Returns the hashes it inserted, in ancestor order: scratch storage that the next build
13
+ * overwrites. The cascade compares them to reuse filter results between elements with the same
14
+ * ancestors (css/cascade.ts Survivors). Nothing here keeps the last element to skip rebuilding for
15
+ * its siblings: even a WeakRef keeps its target alive until the end of the current job (every
14
16
  * tree a test file renders, measured +5.8 MB heap on react/styled-form-rerender).
15
17
  */
16
- export declare function buildAncestorFilter(el: NodeImpl): void;
18
+ export declare function buildAncestorFilter(el: NodeImpl): number[];
17
19
  /**
18
20
  * Whether a selector with ancestor hashes h0..h3 (-1 = none) may match the element the filter
19
21
  * was last built for. Inline-friendly: four slot reads at most.
@@ -76,7 +76,11 @@ export declare class VirtualClock {
76
76
  /** busy()'s per-probe I/O counts, reused. */
77
77
  ioCounts: Map<string, number>;
78
78
  constructor(options?: VirtualClockOptions);
79
- /** Monotonic ms (performance.now() origin) including skipped time. */
79
+ /**
80
+ * Monotonic ms (performance.now() origin) including skipped time. React's scheduler reads
81
+ * performance.now() constantly: in Sentry's suite profile ~250 ms sat in the host `now` under
82
+ * this, a cost jsdom's performance.now() has too.
83
+ */
80
84
  now(): number;
81
85
  /** Epoch ms including skipped time (Date.now()). */
82
86
  epochNow(): number;
@@ -29,6 +29,8 @@ export declare function deferredCompatMembers(): ReadonlyMap<string, {
29
29
  }>;
30
30
  /**
31
31
  * Add or remove gated interface members on their shared prototypes for `profile`; returns the
32
- * function that undoes it. `interfaces` maps interface names to interface objects.
32
+ * function that undoes it. `interfaces` maps interface names to interface objects. Removed
33
+ * members are remembered, so a later profile can add them back even if nothing restored them in
34
+ * between (the Jest environment's baseline keeps the first file's profile).
33
35
  */
34
36
  export declare function installCompatMembers(profile: CompatProfile, interfaces: Record<string, unknown>): () => void;
@@ -4,12 +4,9 @@ export interface DOMPointInit {
4
4
  z?: number;
5
5
  w?: number;
6
6
  }
7
- import { $height, $is2D, $m, $rects, $w, $width, $x, $y, $z } from "../keys.js";
7
+ import { $is2D, $m, $rects } from "../keys.js";
8
8
  export declare class DOMPointReadOnly {
9
- [$x]: number;
10
- [$y]: number;
11
- [$z]: number;
12
- [$w]: number;
9
+ #private;
13
10
  constructor(x?: number, y?: number, z?: number, w?: number);
14
11
  static fromPoint(other?: DOMPointInit): DOMPointReadOnly;
15
12
  get x(): number;
@@ -37,10 +34,7 @@ export interface DOMRectInit {
37
34
  height?: number;
38
35
  }
39
36
  export declare class DOMRectReadOnly {
40
- [$x]: number;
41
- [$y]: number;
42
- [$width]: number;
43
- [$height]: number;
37
+ #private;
44
38
  constructor(x?: number, y?: number, width?: number, height?: number);
45
39
  static fromRect(other?: DOMRectInit): DOMRectReadOnly;
46
40
  get x(): number;
@@ -19,7 +19,7 @@ var e=Object.defineProperty,__name=(t,n)=>e(t,`name`,{value:n,configurable:!0}),
19
19
  `)}}}function getStyleDeclaration(e,t){let n={},r=e.createElement(`div`);for(let e of Object.keys(t))r.style[e]=t[e],n[e]=r.style[e];return n}function valueMatches(e,t){return e===t||sameColor(t,e)}function isSubset(e,t){let n=Object.entries(e);if(n.length===0)return!1;for(let[e,r]of n){let n=e.startsWith(`--`);if(!(valueMatches(t[e],r)||valueMatches(t.getPropertyValue(e),r))){if(!n){let n=e.toLowerCase();if(valueMatches(t[n],r)||valueMatches(t.getPropertyValue(n),r))continue}return!1}}return!0}function printoutStyles(e){return Object.keys(e).sort().map(t=>`${t}: ${e[t]};`).join(`
20
20
  `)}function expectedDiff(e,t,n){let r={};for(let e of Array.from(n))t[e]!==void 0&&(r[e]=n.getPropertyValue(e));return e(printoutStyles(t),printoutStyles(r)).replace(`${picoRed(`+ Received`)}\n`,``)}function toHaveStyle(e,t){checkHtmlElement(e,toHaveStyle,this);let n=typeof t==`object`?t:parseCSS(t,toHaveStyle,this),{getComputedStyle:r}=e.ownerDocument.defaultView,i=getStyleDeclaration(e.ownerDocument,n),a=r(e);return{pass:isSubset(i,a),message:()=>{let e=`${this.isNot?`.not`:``}.toHaveStyle`;return[this.utils.matcherHint(e,`element`,``),expectedDiff(this.utils.diff,i,a)].join(`
21
21
 
22
- `)}}}const S=r.roles,C=S.keys().filter(e=>S.get(e)?.props[`aria-checked`]!==void 0);function roleSupportsChecked(e){return e!==null&&C.includes(e)}function supportedRolesSentence(){return toSentence(C.map(e=>`role="${e}"`),{lastWordConnector:` or `})}function toBeChecked(e){checkHtmlElement(e,toBeChecked,this);let isValidInput=()=>e.tagName.toLowerCase()===`input`&&[`checkbox`,`radio`].includes(e.type),isValidAriaElement=()=>roleSupportsChecked(e.getAttribute(`role`))&&[`true`,`false`].includes(e.getAttribute(`aria-checked`));if(!isValidInput()&&!isValidAriaElement())return{pass:!1,message:()=>`only inputs with type="checkbox" or type="radio" or elements with ${supportedRolesSentence()} and a valid aria-checked attribute can be used with .toBeChecked(). Use .toHaveValue() instead`};let isChecked=()=>isValidInput()?e.checked:e.getAttribute(`aria-checked`)===`true`;return{pass:isChecked(),message:()=>{let t=isChecked()?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeChecked`,`element`,``),``,`Received element ${t} checked:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
22
+ `)}}}const S=r.roles;let C=null;function checkedRoles(){return C??=S.keys().filter(e=>S.get(e)?.props[`aria-checked`]!==void 0)}function roleSupportsChecked(e){return e!==null&&checkedRoles().includes(e)}function supportedRolesSentence(){return toSentence(checkedRoles().map(e=>`role="${e}"`),{lastWordConnector:` or `})}function toBeChecked(e){checkHtmlElement(e,toBeChecked,this);let isValidInput=()=>e.tagName.toLowerCase()===`input`&&[`checkbox`,`radio`].includes(e.type),isValidAriaElement=()=>roleSupportsChecked(e.getAttribute(`role`))&&[`true`,`false`].includes(e.getAttribute(`aria-checked`));if(!isValidInput()&&!isValidAriaElement())return{pass:!1,message:()=>`only inputs with type="checkbox" or type="radio" or elements with ${supportedRolesSentence()} and a valid aria-checked attribute can be used with .toBeChecked(). Use .toHaveValue() instead`};let isChecked=()=>isValidInput()?e.checked:e.getAttribute(`aria-checked`)===`true`;return{pass:isChecked(),message:()=>{let t=isChecked()?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeChecked`,`element`,``),``,`Received element ${t} checked:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
23
23
  `)}}}function toBePartiallyChecked(e){checkHtmlElement(e,toBePartiallyChecked,this);let isValidInput=()=>e.tagName.toLowerCase()===`input`&&e.type===`checkbox`,isValidAriaElement=()=>e.getAttribute(`role`)===`checkbox`;if(!isValidInput()&&!isValidAriaElement())return{pass:!1,message:()=>`only inputs with type="checkbox" or elements with role="checkbox" and a valid aria-checked attribute can be used with .toBePartiallyChecked(). Use .toHaveValue() instead`};let isPartiallyChecked=()=>{let t=e.getAttribute(`aria-checked`)===`mixed`;return isValidInput()&&e.indeterminate||t};return{pass:isPartiallyChecked(),message:()=>{let t=isPartiallyChecked()?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBePartiallyChecked`,`element`,``),``,`Received element ${t} partially checked:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
24
24
  `)}}}function isButtonLike(e){let t=(e.getAttribute(`role`)||``).split(` `).map(e=>e.trim());return e.tagName.toLowerCase()===`button`||e.tagName.toLowerCase()===`input`&&e.type===`button`||t.includes(`button`)}function toBePressed(e){checkHtmlElement(e,toBePressed,this);let t=isButtonLike(e),n=e.getAttribute(`aria-pressed`);return!t||n!==`true`&&n!==`false`?{pass:!1,message:()=>`Only button or input with type="button" or element with role="button" and a valid aria-pressed attribute can be used with .toBePressed()`}:{pass:t&&n===`true`,message:()=>{let e=this.utils.matcherHint(`${this.isNot?`.not`:``}.toBePressed`,`element`,``);return getMessage(this,e,`Expected element to have`,`aria-pressed="${this.isNot?`false`:`true`}"`,`Received`,`aria-pressed="${n}"`)}}}function toBePartiallyPressed(e){checkHtmlElement(e,toBePartiallyPressed,this);let t=isButtonLike(e),n=e.getAttribute(`aria-pressed`);return!t||n!==`true`&&n!==`false`&&n!==`mixed`?{pass:!1,message:()=>`Only button or input with type="button" or element with role="button" and a valid aria-pressed attribute can be used with .toBePartiallyPressed()`}:{pass:t&&n===`mixed`,message:()=>{let e=this.isNot?`not to`:`to`,t=this.utils.matcherHint(`${this.isNot?`.not`:``}.toBePartiallyPressed`,`element`,``);return getMessage(this,t,`Expected element ${e} have`,`aria-pressed="mixed"`,`Received`,`aria-pressed="${n}"`)}}}const w=[`fieldset`,`input`,`select`,`optgroup`,`option`,`button`,`textarea`];function isFirstLegendChildOfFieldset(e,t){if(getTag(e)!==`legend`||getTag(t)!==`fieldset`)return!1;for(let n=t.firstElementChild;n!==null;n=n.nextElementSibling)if(getTag(n)===`legend`)return e.isSameNode(n);return!1}function isElementDisabledByParent(e,t){return isElementDisabled(t)&&!isFirstLegendChildOfFieldset(e,t)}function isCustomElement(e){return e.includes(`-`)}function canElementBeDisabled(e){let t=getTag(e);return w.includes(t)||isCustomElement(t)}function isElementDisabled(e){return canElementBeDisabled(e)&&e.hasAttribute(`disabled`)}function isAncestorDisabled(e){let t=e.parentElement;return!!t&&(isElementDisabledByParent(e,t)||isAncestorDisabled(t))}function isElementOrAncestorDisabled(e){return canElementBeDisabled(e)&&(isElementDisabled(e)||isAncestorDisabled(e))}function toBeDisabled(e){checkHtmlElement(e,toBeDisabled,this);let t=isElementOrAncestorDisabled(e);return{pass:t,message:()=>{let n=t?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeDisabled`,`element`,``),``,`Received element ${n} disabled:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
25
25
  `)}}}function toBeEnabled(e){checkHtmlElement(e,toBeEnabled,this);let t=!isElementOrAncestorDisabled(e);return{pass:t,message:()=>{let n=t?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeEnabled`,`element`,``),``,`Received element ${n} enabled:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
@@ -19,7 +19,7 @@ import{createRequire as e}from"node:module";import{prettyDOM as t,queries as n}f
19
19
  `)}}}function getStyleDeclaration(e,t){let n={},r=e.createElement(`div`);for(let e of Object.keys(t))r.style[e]=t[e],n[e]=r.style[e];return n}function valueMatches(e,t){return e===t||sameColor(t,e)}function isSubset(e,t){let n=Object.entries(e);if(n.length===0)return!1;for(let[e,r]of n){let n=e.startsWith(`--`);if(!(valueMatches(t[e],r)||valueMatches(t.getPropertyValue(e),r))){if(!n){let n=e.toLowerCase();if(valueMatches(t[n],r)||valueMatches(t.getPropertyValue(n),r))continue}return!1}}return!0}function printoutStyles(e){return Object.keys(e).sort().map(t=>`${t}: ${e[t]};`).join(`
20
20
  `)}function expectedDiff(e,t,n){let r={};for(let e of Array.from(n))t[e]!==void 0&&(r[e]=n.getPropertyValue(e));return e(printoutStyles(t),printoutStyles(r)).replace(`${picoRed(`+ Received`)}\n`,``)}function toHaveStyle(e,t){checkHtmlElement(e,toHaveStyle,this);let n=typeof t==`object`?t:parseCSS(t,toHaveStyle,this),{getComputedStyle:r}=e.ownerDocument.defaultView,i=getStyleDeclaration(e.ownerDocument,n),a=r(e);return{pass:isSubset(i,a),message:()=>{let e=`${this.isNot?`.not`:``}.toHaveStyle`;return[this.utils.matcherHint(e,`element`,``),expectedDiff(this.utils.diff,i,a)].join(`
21
21
 
22
- `)}}}const E=a,D=E.keys().filter(e=>E.get(e)?.props[`aria-checked`]!==void 0);function roleSupportsChecked(e){return e!==null&&D.includes(e)}function supportedRolesSentence(){return toSentence(D.map(e=>`role="${e}"`),{lastWordConnector:` or `})}function toBeChecked(e){checkHtmlElement(e,toBeChecked,this);let isValidInput=()=>e.tagName.toLowerCase()===`input`&&[`checkbox`,`radio`].includes(e.type),isValidAriaElement=()=>roleSupportsChecked(e.getAttribute(`role`))&&[`true`,`false`].includes(e.getAttribute(`aria-checked`));if(!isValidInput()&&!isValidAriaElement())return{pass:!1,message:()=>`only inputs with type="checkbox" or type="radio" or elements with ${supportedRolesSentence()} and a valid aria-checked attribute can be used with .toBeChecked(). Use .toHaveValue() instead`};let isChecked=()=>isValidInput()?e.checked:e.getAttribute(`aria-checked`)===`true`;return{pass:isChecked(),message:()=>{let t=isChecked()?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeChecked`,`element`,``),``,`Received element ${t} checked:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
22
+ `)}}}const E=a;let D=null;function checkedRoles(){return D??=E.keys().filter(e=>E.get(e)?.props[`aria-checked`]!==void 0)}function roleSupportsChecked(e){return e!==null&&checkedRoles().includes(e)}function supportedRolesSentence(){return toSentence(checkedRoles().map(e=>`role="${e}"`),{lastWordConnector:` or `})}function toBeChecked(e){checkHtmlElement(e,toBeChecked,this);let isValidInput=()=>e.tagName.toLowerCase()===`input`&&[`checkbox`,`radio`].includes(e.type),isValidAriaElement=()=>roleSupportsChecked(e.getAttribute(`role`))&&[`true`,`false`].includes(e.getAttribute(`aria-checked`));if(!isValidInput()&&!isValidAriaElement())return{pass:!1,message:()=>`only inputs with type="checkbox" or type="radio" or elements with ${supportedRolesSentence()} and a valid aria-checked attribute can be used with .toBeChecked(). Use .toHaveValue() instead`};let isChecked=()=>isValidInput()?e.checked:e.getAttribute(`aria-checked`)===`true`;return{pass:isChecked(),message:()=>{let t=isChecked()?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeChecked`,`element`,``),``,`Received element ${t} checked:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
23
23
  `)}}}function toBePartiallyChecked(e){checkHtmlElement(e,toBePartiallyChecked,this);let isValidInput=()=>e.tagName.toLowerCase()===`input`&&e.type===`checkbox`,isValidAriaElement=()=>e.getAttribute(`role`)===`checkbox`;if(!isValidInput()&&!isValidAriaElement())return{pass:!1,message:()=>`only inputs with type="checkbox" or elements with role="checkbox" and a valid aria-checked attribute can be used with .toBePartiallyChecked(). Use .toHaveValue() instead`};let isPartiallyChecked=()=>{let t=e.getAttribute(`aria-checked`)===`mixed`;return isValidInput()&&e.indeterminate||t};return{pass:isPartiallyChecked(),message:()=>{let t=isPartiallyChecked()?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBePartiallyChecked`,`element`,``),``,`Received element ${t} partially checked:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
24
24
  `)}}}function isButtonLike(e){let t=(e.getAttribute(`role`)||``).split(` `).map(e=>e.trim());return e.tagName.toLowerCase()===`button`||e.tagName.toLowerCase()===`input`&&e.type===`button`||t.includes(`button`)}function toBePressed(e){checkHtmlElement(e,toBePressed,this);let t=isButtonLike(e),n=e.getAttribute(`aria-pressed`);return!t||n!==`true`&&n!==`false`?{pass:!1,message:()=>`Only button or input with type="button" or element with role="button" and a valid aria-pressed attribute can be used with .toBePressed()`}:{pass:t&&n===`true`,message:()=>{let e=this.utils.matcherHint(`${this.isNot?`.not`:``}.toBePressed`,`element`,``);return getMessage(this,e,`Expected element to have`,`aria-pressed="${this.isNot?`false`:`true`}"`,`Received`,`aria-pressed="${n}"`)}}}function toBePartiallyPressed(e){checkHtmlElement(e,toBePartiallyPressed,this);let t=isButtonLike(e),n=e.getAttribute(`aria-pressed`);return!t||n!==`true`&&n!==`false`&&n!==`mixed`?{pass:!1,message:()=>`Only button or input with type="button" or element with role="button" and a valid aria-pressed attribute can be used with .toBePartiallyPressed()`}:{pass:t&&n===`mixed`,message:()=>{let e=this.isNot?`not to`:`to`,t=this.utils.matcherHint(`${this.isNot?`.not`:``}.toBePartiallyPressed`,`element`,``);return getMessage(this,t,`Expected element ${e} have`,`aria-pressed="mixed"`,`Received`,`aria-pressed="${n}"`)}}}const O=[`fieldset`,`input`,`select`,`optgroup`,`option`,`button`,`textarea`];function isFirstLegendChildOfFieldset(e,t){if(getTag(e)!==`legend`||getTag(t)!==`fieldset`)return!1;for(let n=t.firstElementChild;n!==null;n=n.nextElementSibling)if(getTag(n)===`legend`)return e.isSameNode(n);return!1}function isElementDisabledByParent(e,t){return isElementDisabled(t)&&!isFirstLegendChildOfFieldset(e,t)}function isCustomElement(e){return e.includes(`-`)}function canElementBeDisabled(e){let t=getTag(e);return O.includes(t)||isCustomElement(t)}function isElementDisabled(e){return canElementBeDisabled(e)&&e.hasAttribute(`disabled`)}function isAncestorDisabled(e){let t=e.parentElement;return!!t&&(isElementDisabledByParent(e,t)||isAncestorDisabled(t))}function isElementOrAncestorDisabled(e){return canElementBeDisabled(e)&&(isElementDisabled(e)||isAncestorDisabled(e))}function toBeDisabled(e){checkHtmlElement(e,toBeDisabled,this);let t=isElementOrAncestorDisabled(e);return{pass:t,message:()=>{let n=t?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeDisabled`,`element`,``),``,`Received element ${n} disabled:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
25
25
  `)}}}function toBeEnabled(e){checkHtmlElement(e,toBeEnabled,this);let t=!isElementOrAncestorDisabled(e);return{pass:t,message:()=>{let n=t?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeEnabled`,`element`,``),``,`Received element ${n} enabled:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./_chunks/matchers-CGTk9GX9.cjs");expect.extend(e.t);
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./_chunks/matchers-CkxM783o.cjs");expect.extend(e.t);
@@ -1 +1 @@
1
- import{t as e}from"./_chunks/matchers-Chf0yHoo.js";expect.extend(e);export{};
1
+ import{t as e}from"./_chunks/matchers-Dt7W4g5X.js";expect.extend(e);export{};
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./_chunks/matchers-CGTk9GX9.cjs");require("@jest/globals").expect.extend(e.t);
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./_chunks/matchers-CkxM783o.cjs");require("@jest/globals").expect.extend(e.t);
@@ -1 +1 @@
1
- import{t as e}from"./_chunks/matchers-Chf0yHoo.js";import{expect as t}from"@jest/globals";t.extend(e);export{};
1
+ import{t as e}from"./_chunks/matchers-Dt7W4g5X.js";import{expect as t}from"@jest/globals";t.extend(e);export{};
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./_chunks/matchers-CGTk9GX9.cjs");exports.toAppearAfter=e.U,exports.toAppearBefore=e.W,exports.toBeChecked=e.y,exports.toBeDisabled=e.b,exports.toBeEmpty=e.G,exports.toBeEmptyDOMElement=e.K,exports.toBeEnabled=e.x,exports.toBeInTheDOM=e.q,exports.toBeInTheDocument=e.J,exports.toBeInvalid=e.S,exports.toBePartiallyChecked=e.C,exports.toBePartiallyPressed=e.w,exports.toBePressed=e.T,exports.toBeRequired=e.E,exports.toBeValid=e.D,exports.toBeVisible=e.O,exports.toContainAnyByAltText=e.n,exports.toContainAnyByDisplayValue=e.r,exports.toContainAnyByLabelText=e.i,exports.toContainAnyByPlaceholderText=e.a,exports.toContainAnyByRole=e.o,exports.toContainAnyByTestId=e.s,exports.toContainAnyByText=e.c,exports.toContainAnyByTitle=e.l,exports.toContainElement=e.Y,exports.toContainHTML=e.X,exports.toContainOneByAltText=e.u,exports.toContainOneByDisplayValue=e.d,exports.toContainOneByLabelText=e.f,exports.toContainOneByPlaceholderText=e.p,exports.toContainOneByRole=e.m,exports.toContainOneByTestId=e.h,exports.toContainOneByText=e.g,exports.toContainOneByTitle=e._,exports.toHaveAccessibleDescription=e.A,exports.toHaveAccessibleErrorMessage=e.j,exports.toHaveAccessibleName=e.M,exports.toHaveAttribute=e.I,exports.toHaveClass=e.L,exports.toHaveDescription=e.N,exports.toHaveDisplayValue=e.R,exports.toHaveErrorMessage=e.P,exports.toHaveFocus=e.Z,exports.toHaveFormValues=e.z,exports.toHaveRole=e.F,exports.toHaveSelection=e.B,exports.toHaveStyle=e.k,exports.toHaveTextContent=e.V,exports.toHaveValue=e.H,exports.toMatchAriaSnapshot=e.v;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./_chunks/matchers-CkxM783o.cjs");exports.toAppearAfter=e.U,exports.toAppearBefore=e.W,exports.toBeChecked=e.y,exports.toBeDisabled=e.b,exports.toBeEmpty=e.G,exports.toBeEmptyDOMElement=e.K,exports.toBeEnabled=e.x,exports.toBeInTheDOM=e.q,exports.toBeInTheDocument=e.J,exports.toBeInvalid=e.S,exports.toBePartiallyChecked=e.C,exports.toBePartiallyPressed=e.w,exports.toBePressed=e.T,exports.toBeRequired=e.E,exports.toBeValid=e.D,exports.toBeVisible=e.O,exports.toContainAnyByAltText=e.n,exports.toContainAnyByDisplayValue=e.r,exports.toContainAnyByLabelText=e.i,exports.toContainAnyByPlaceholderText=e.a,exports.toContainAnyByRole=e.o,exports.toContainAnyByTestId=e.s,exports.toContainAnyByText=e.c,exports.toContainAnyByTitle=e.l,exports.toContainElement=e.Y,exports.toContainHTML=e.X,exports.toContainOneByAltText=e.u,exports.toContainOneByDisplayValue=e.d,exports.toContainOneByLabelText=e.f,exports.toContainOneByPlaceholderText=e.p,exports.toContainOneByRole=e.m,exports.toContainOneByTestId=e.h,exports.toContainOneByText=e.g,exports.toContainOneByTitle=e._,exports.toHaveAccessibleDescription=e.A,exports.toHaveAccessibleErrorMessage=e.j,exports.toHaveAccessibleName=e.M,exports.toHaveAttribute=e.I,exports.toHaveClass=e.L,exports.toHaveDescription=e.N,exports.toHaveDisplayValue=e.R,exports.toHaveErrorMessage=e.P,exports.toHaveFocus=e.Z,exports.toHaveFormValues=e.z,exports.toHaveRole=e.F,exports.toHaveSelection=e.B,exports.toHaveStyle=e.k,exports.toHaveTextContent=e.V,exports.toHaveValue=e.H,exports.toMatchAriaSnapshot=e.v;
@@ -1 +1 @@
1
- export{U as toAppearAfter,W as toAppearBefore,y as toBeChecked,b as toBeDisabled,G as toBeEmpty,K as toBeEmptyDOMElement,x as toBeEnabled,q as toBeInTheDOM,J as toBeInTheDocument,S as toBeInvalid,C as toBePartiallyChecked,w as toBePartiallyPressed,T as toBePressed,E as toBeRequired,D as toBeValid,O as toBeVisible,n as toContainAnyByAltText,r as toContainAnyByDisplayValue,i as toContainAnyByLabelText,a as toContainAnyByPlaceholderText,o as toContainAnyByRole,s as toContainAnyByTestId,c as toContainAnyByText,l as toContainAnyByTitle,Y as toContainElement,X as toContainHTML,u as toContainOneByAltText,d as toContainOneByDisplayValue,f as toContainOneByLabelText,p as toContainOneByPlaceholderText,m as toContainOneByRole,h as toContainOneByTestId,g as toContainOneByText,_ as toContainOneByTitle,A as toHaveAccessibleDescription,j as toHaveAccessibleErrorMessage,M as toHaveAccessibleName,I as toHaveAttribute,L as toHaveClass,N as toHaveDescription,R as toHaveDisplayValue,P as toHaveErrorMessage,Z as toHaveFocus,z as toHaveFormValues,F as toHaveRole,B as toHaveSelection,k as toHaveStyle,V as toHaveTextContent,H as toHaveValue,v as toMatchAriaSnapshot}from"./_chunks/matchers-Chf0yHoo.js";
1
+ export{U as toAppearAfter,W as toAppearBefore,y as toBeChecked,b as toBeDisabled,G as toBeEmpty,K as toBeEmptyDOMElement,x as toBeEnabled,q as toBeInTheDOM,J as toBeInTheDocument,S as toBeInvalid,C as toBePartiallyChecked,w as toBePartiallyPressed,T as toBePressed,E as toBeRequired,D as toBeValid,O as toBeVisible,n as toContainAnyByAltText,r as toContainAnyByDisplayValue,i as toContainAnyByLabelText,a as toContainAnyByPlaceholderText,o as toContainAnyByRole,s as toContainAnyByTestId,c as toContainAnyByText,l as toContainAnyByTitle,Y as toContainElement,X as toContainHTML,u as toContainOneByAltText,d as toContainOneByDisplayValue,f as toContainOneByLabelText,p as toContainOneByPlaceholderText,m as toContainOneByRole,h as toContainOneByTestId,g as toContainOneByText,_ as toContainOneByTitle,A as toHaveAccessibleDescription,j as toHaveAccessibleErrorMessage,M as toHaveAccessibleName,I as toHaveAttribute,L as toHaveClass,N as toHaveDescription,R as toHaveDisplayValue,P as toHaveErrorMessage,Z as toHaveFocus,z as toHaveFormValues,F as toHaveRole,B as toHaveSelection,k as toHaveStyle,V as toHaveTextContent,H as toHaveValue,v as toMatchAriaSnapshot}from"./_chunks/matchers-Dt7W4g5X.js";
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./_chunks/matchers-CGTk9GX9.cjs");require("vitest").expect.extend(e.t);
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./_chunks/matchers-CkxM783o.cjs");require("vitest").expect.extend(e.t);
@@ -1 +1 @@
1
- import{t as e}from"./_chunks/matchers-Chf0yHoo.js";import{expect as t}from"vitest";t.extend(e);export{};
1
+ import{t as e}from"./_chunks/matchers-Dt7W4g5X.js";import{expect as t}from"vitest";t.extend(e);export{};
@@ -1 +1 @@
1
- var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.getPrototypeOf,i=Object.prototype.hasOwnProperty,__exportAll=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r},__copyProps=(r,a,o,s)=>{if(a&&typeof a==`object`||typeof a==`function`)for(var c=n(a),l=0,u=c.length,d;l<u;l++)d=c[l],!i.call(r,d)&&d!==o&&e(r,d,{get:(e=>a[e]).bind(null,d),enumerable:!(s=t(a,d))||s.enumerable});return r},__reExport=(e,t,n)=>(__copyProps(e,t,`default`),n&&__copyProps(n,t,`default`)),__toESM=(t,n,a)=>(a=t==null?{}:{__proto__:r(t)},__copyProps(n||!t||!t.__esModule||!i.call(t,`default`)?e(a,`default`,{value:t,enumerable:!0}):a,t));let a=require("react");a=__toESM(a,1);let o=require("react-dom/client");o=__toESM(o,1);let s=require("@ctrl/dom/internal");const c=a.act;function setReactActEnvironment(e){globalThis.IS_REACT_ACT_ENVIRONMENT=e}function getIsReactActEnvironment(){return globalThis.IS_REACT_ACT_ENVIRONMENT}function isThenable(e){return typeof e==`object`&&!!e&&typeof e.then==`function`}function withGlobalActEnvironment(e){return t=>{let n=getIsReactActEnvironment();setReactActEnvironment(!0);try{let r=!1,i=e(()=>{let e=t();return isThenable(e)&&(r=!0),e});if(r){let e=i;return{then:(t,r)=>{e.then(e=>{setReactActEnvironment(n),t(e)},e=>{setReactActEnvironment(n),r(e)})}}}return setReactActEnvironment(n),i}catch(e){throw setReactActEnvironment(n),e}}}const l=withGlobalActEnvironment(c);var u=/* @__PURE__ */ __exportAll({});__reExport(u,require("@ctrl/dom/testing-library"));const fireEvent=((...e)=>(0,u.fireEvent)(...e)),d=fireEvent,f=u.fireEvent;for(let e of Object.keys(u.fireEvent))d[e]=(...t)=>f[e](...t);const p=d.mouseEnter,m=d.mouseLeave;d.mouseEnter=(...e)=>(p(...e),d.mouseOver(...e)),d.mouseLeave=(...e)=>(m(...e),d.mouseOut(...e));const h=d.pointerEnter,g=d.pointerLeave;d.pointerEnter=(...e)=>(h(...e),d.pointerOver(...e)),d.pointerLeave=(...e)=>(g(...e),d.pointerOut(...e));const _=d.select;d.select=(e,t)=>{_(e,t),e.focus(),d.keyUp(e,t)};const v=d.blur,y=d.focus;d.blur=(...e)=>(d.focusOut(...e),v(...e)),d.focus=(...e)=>(d.focusIn(...e),y(...e));let b={reactStrictMode:!1};function getConfig(){return{...(0,u.getConfig)(),...b}}function configure(e){typeof e==`function`&&(e=e(getConfig()));let{reactStrictMode:t,...n}=e;(0,u.configure)(n),b={...b,reactStrictMode:t}}var x=/* @__PURE__ */ __exportAll({act:()=>l,cleanup:()=>cleanup,configure:()=>configure,fireEvent:()=>fireEvent,getConfig:()=>getConfig,render:()=>render,renderHook:()=>renderHook});__reExport(x,u);function jestFakeTimersAreEnabled(){return typeof jest<`u`&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,`clock`):!1}let S=!1;(0,u.configure)({unstable_advanceTimersWrapper:e=>l(e),asyncWrapper:async e=>{let t=getIsReactActEnvironment();setReactActEnvironment(!1);try{let t=await e();return await new Promise(e=>{setTimeout(()=>{e()},0),jestFakeTimersAreEnabled()&&jest.advanceTimersByTime(0)}),t}finally{setReactActEnvironment(t)}},eventWrapper:e=>{if(S)return e();S=!0;try{let t;return l(()=>{t=e()}),t}finally{S=!1}}});const C=/* @__PURE__ */ new Set,w=[];function strictModeIfNeeded(e,t){return t??getConfig().reactStrictMode?a.createElement(a.StrictMode,null,e):e}function wrapUiIfNeeded(e,t){return t?a.createElement(t,null,e):e}function createConcurrentRoot(e,{hydrate:t,onCaughtError:n,onRecoverableError:r,ui:i,wrapper:a,reactStrictMode:s}){let c;return t?l(()=>{c=o.hydrateRoot(e,strictModeIfNeeded(wrapUiIfNeeded(i,a),s),{onCaughtError:n,onRecoverableError:r})}):c=o.createRoot(e,{onCaughtError:n,onRecoverableError:r}),{hydrate(){if(!t)throw Error("Attempted to hydrate a non-hydrateable root. This is a bug in `@testing-library/react`.")},render(e){c.render(e)},unmount(){c.unmount()}}}const T=/* @__PURE__ */ new WeakMap;function boundQueriesFor(e,t){if(t!==void 0)return(0,u.getQueriesForElement)(e,t);let n=T.get(e);return n===void 0&&(n=(0,u.getQueriesForElement)(e),T.set(e,n)),n}function renderRoot(e,{baseElement:t,container:n,hydrate:r,queries:i,root:a,wrapper:o,reactStrictMode:c}){return l(()=>{r?a.hydrate():a.render(strictModeIfNeeded(wrapUiIfNeeded(e,o),c))}),{container:n,baseElement:t,debug:(e=t,n,r)=>Array.isArray(e)?e.forEach(e=>console.log((0,u.prettyDOM)(e,n,r))):console.log((0,u.prettyDOM)(e,n,r)),unmount:()=>{l(()=>{a.unmount()})},rerender:e=>{let rerender=()=>renderRoot(e,{container:n,baseElement:t,root:a,wrapper:o,reactStrictMode:c});(0,s.tracing)()?(0,s.traceSync)(`react.rerender`,`rerender(${describeElement(e)})`,rerender):rerender()},asFragment:()=>{if(typeof document.createRange==`function`)return document.createRange().createContextualFragment(n.innerHTML);let e=document.createElement(`template`);return e.innerHTML=n.innerHTML,e.content},...boundQueriesFor(t,i)}}function legacyRootError(e){let t=/* @__PURE__ */ Error("`legacyRoot: true` is not supported in this version of React. If your app runs React 19 or later, you should remove this flag. If your app runs React 18 or earlier, visit https://react.dev/blog/2022/03/08/react-18-upgrade-guide for upgrade instructions.");return Error.captureStackTrace(t,e),t}function render(e,t){return(0,s.tracing)()?(0,s.traceSync)(`react.render`,`render(${describeElement(e)})`,()=>renderUntraced(e,t)):renderUntraced(e,t)}function describeElement(e){if(!a.isValidElement(e))return typeof e==`string`?JSON.stringify(e):String(e);let t=e;for(let e=0;e<10;e++){let e=isWrapper(t)?wrappedElement(t):null;if(e===null)break;t=e}return describeTree(t,0)}function describeTree(e,t){let n=componentName(e.type)||`Component`;if(typeof e.type!=`string`)return`<${n} />`;let r=e.props.children;if(r==null||r===!1)return`<${n} />`;let i=onlyElement(r);return i!==null&&t<2?`<${n}>${describeTree(i,t+1)}</${n}>`:`<${n}>…</${n}>`}function componentName(e){if(typeof e==`string`)return e;if(typeof e==`symbol`)return e.description?.replace(/^react\./,``)??``;let t=e;return(t?.displayName??t?.name??t?.render?.name??t?.type?.name??``).replace(/\$\d+$/,``)}const E=/(?:Providers?|Context|Router|Wrapper|Fragment|StrictMode|Suspense|Profiler)$/;function isWrapper(e){if(typeof e.type==`symbol`)return!0;let t=componentName(e.type);return E.test(t)||t===``&&onlyElement(e.props.children)!==null}function wrappedElement(e){let t=e.props;return onlyElement(t.children)??firstRouteElement(t.router?.routes)}function firstRouteElement(e){for(let t of e??[]){let e=onlyElement(t.element);if(e!==null&&componentName(e.type)!==`Outlet`)return e;let n=firstRouteElement(t.children);if(n!==null)return n}return null}function onlyElement(e){if(a.isValidElement(e))return e;if(!Array.isArray(e))return null;let t=e.filter(e=>a.isValidElement(e));return t.length===1?t[0]:null}function renderUntraced(e,{container:t,baseElement:n=t,legacyRoot:r=!1,onCaughtError:i,onUncaughtError:a,onRecoverableError:o,queries:s,hydrate:c=!1,wrapper:l,reactStrictMode:u}={}){if(a!==void 0)throw Error("onUncaughtError is not supported. The `render` call will already throw on uncaught errors.");if(r)throw legacyRootError(render);n||=document.body,t||=n.appendChild(document.createElement(`div`));let d;if(!C.has(t))d=createConcurrentRoot(t,{hydrate:c,onCaughtError:i,onRecoverableError:o,ui:e,wrapper:l,reactStrictMode:u}),w.push({container:t,root:d}),C.add(t);else for(let e=0;e<w.length;e++){let n=w[e];n.container===t&&(d=n.root)}return renderRoot(e,{container:t,baseElement:n,queries:s,hydrate:c,wrapper:l,root:d,reactStrictMode:u})}function cleanup(){for(let e=0;e<w.length;e++){let{root:t,container:n}=w[e];l(()=>{t.unmount()}),n.parentNode===document.body&&document.body.removeChild(n)}w.length=0,C.clear()}function renderHook(e,t={}){let{initialProps:n,...r}=t;if(r.legacyRoot)throw legacyRootError(renderHook);let i=a.createRef();function TestComponent({renderCallbackProps:t}){let n=e(t);return a.useEffect(()=>{i.current=n}),null}let{rerender:o,unmount:s}=render(a.createElement(TestComponent,{renderCallbackProps:n}),r);function rerender(e){return o(a.createElement(TestComponent,{renderCallbackProps:e}))}return{result:i,rerender,unmount:s}}Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return configure}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return __exportAll}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return __reExport}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return renderHook}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return getIsReactActEnvironment}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return x}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return getConfig}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return render}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return fireEvent}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return cleanup}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return setReactActEnvironment}});
1
+ var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.getPrototypeOf,i=Object.prototype.hasOwnProperty,__exportAll=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r},__copyProps=(r,a,o,s)=>{if(a&&typeof a==`object`||typeof a==`function`)for(var c=n(a),l=0,u=c.length,d;l<u;l++)d=c[l],!i.call(r,d)&&d!==o&&e(r,d,{get:(e=>a[e]).bind(null,d),enumerable:!(s=t(a,d))||s.enumerable});return r},__reExport=(e,t,n)=>(__copyProps(e,t,`default`),n&&__copyProps(n,t,`default`)),__toESM=(t,n,a)=>(a=t==null?{}:{__proto__:r(t)},__copyProps(n||!t||!t.__esModule||!i.call(t,`default`)?e(a,`default`,{value:t,enumerable:!0}):a,t));let a=require("react");a=__toESM(a,1);let o=require("react-dom/client");o=__toESM(o,1);let s=require("@ctrl/dom/internal");const c=a.act;function setReactActEnvironment(e){globalThis.IS_REACT_ACT_ENVIRONMENT=e}function getIsReactActEnvironment(){return globalThis.IS_REACT_ACT_ENVIRONMENT}function isThenable(e){return typeof e==`object`&&!!e&&typeof e.then==`function`}function withGlobalActEnvironment(e){return t=>{let n=getIsReactActEnvironment();setReactActEnvironment(!0);try{let r=!1,i=e(()=>{let e=t();return isThenable(e)&&(r=!0),e});if(r){let e=i;return{then:(t,r)=>{e.then(e=>{setReactActEnvironment(n),t(e)},e=>{setReactActEnvironment(n),r(e)})}}}return setReactActEnvironment(n),i}catch(e){throw setReactActEnvironment(n),e}}}const l=withGlobalActEnvironment(c);var u=/* @__PURE__ */ __exportAll({});__reExport(u,require("@ctrl/dom/testing-library"));const fireEvent=((...e)=>(0,u.fireEvent)(...e)),d=fireEvent,f=u.fireEvent;for(let e of Object.keys(u.fireEvent))d[e]=(...t)=>f[e](...t);const p=d.mouseEnter,m=d.mouseLeave;d.mouseEnter=(...e)=>(p(...e),d.mouseOver(...e)),d.mouseLeave=(...e)=>(m(...e),d.mouseOut(...e));const h=d.pointerEnter,g=d.pointerLeave;d.pointerEnter=(...e)=>(h(...e),d.pointerOver(...e)),d.pointerLeave=(...e)=>(g(...e),d.pointerOut(...e));const _=d.select;d.select=(e,t)=>{_(e,t),e.focus(),d.keyUp(e,t)};const v=d.blur,y=d.focus;d.blur=(...e)=>(d.focusOut(...e),v(...e)),d.focus=(...e)=>(d.focusIn(...e),y(...e));let b={reactStrictMode:!1};function getConfig(){return{...(0,u.getConfig)(),...b}}function configure(e){typeof e==`function`&&(e=e(getConfig()));let{reactStrictMode:t,...n}=e;(0,u.configure)(n),b={...b,reactStrictMode:t}}var x=/* @__PURE__ */ __exportAll({act:()=>l,cleanup:()=>cleanup,configure:()=>configure,fireEvent:()=>fireEvent,getConfig:()=>getConfig,render:()=>render,renderHook:()=>renderHook});__reExport(x,u);function jestFakeTimersAreEnabled(){return typeof jest<`u`&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,`clock`):!1}let S=!1;(0,u.configure)({unstable_advanceTimersWrapper:e=>l(e),asyncWrapper:async e=>{let t=getIsReactActEnvironment();setReactActEnvironment(!1);try{let t=await e();return await new Promise(e=>{setTimeout(()=>{e()},0),jestFakeTimersAreEnabled()&&jest.advanceTimersByTime(0)}),t}finally{setReactActEnvironment(t)}},eventWrapper:e=>{if(S)return e();S=!0;try{let t;return l(()=>{t=e()}),t}finally{S=!1}}});const C=/* @__PURE__ */ new Set,w=[];function strictModeIfNeeded(e,t){return t??getConfig().reactStrictMode?a.createElement(a.StrictMode,null,e):e}function wrapUiIfNeeded(e,t){return t?a.createElement(t,null,e):e}function createConcurrentRoot(e,{hydrate:t,onCaughtError:n,onRecoverableError:r,ui:i,wrapper:a,reactStrictMode:s}){let c;return t?l(()=>{c=o.hydrateRoot(e,strictModeIfNeeded(wrapUiIfNeeded(i,a),s),{onCaughtError:n,onRecoverableError:r})}):c=o.createRoot(e,{onCaughtError:n,onRecoverableError:r}),{hydrate(){if(!t)throw Error("Attempted to hydrate a non-hydrateable root. This is a bug in `@testing-library/react`.")},render(e){c.render(e)},unmount(){c.unmount()}}}const T=/* @__PURE__ */ new WeakMap;function resultTemplateFor(e){let t=T.get(e);return t===void 0&&(t={container:void 0,baseElement:void 0,debug:void 0,unmount:void 0,rerender:void 0,asFragment:void 0,...(0,u.getQueriesForElement)(e)},T.set(e,t)),t}function actRender(e,t,n,r,i){l(()=>{n?t.hydrate():t.render(strictModeIfNeeded(wrapUiIfNeeded(e,r),i))})}function renderRoot(e,{baseElement:t,container:n,hydrate:r,queries:i,root:a,wrapper:o,reactStrictMode:c}){actRender(e,a,r,o,c);let debug=(e=t,n,r)=>Array.isArray(e)?e.forEach(e=>console.log((0,u.prettyDOM)(e,n,r))):console.log((0,u.prettyDOM)(e,n,r)),unmount=()=>{l(()=>{a.unmount()})},rerender=e=>{let rerender=()=>actRender(e,a,!1,o,c);(0,s.tracing)()?(0,s.traceSync)(`react.rerender`,`rerender(${describeElement(e)})`,rerender):rerender()},asFragment=()=>{if(typeof document.createRange==`function`)return document.createRange().createContextualFragment(n.innerHTML);let e=document.createElement(`template`);return e.innerHTML=n.innerHTML,e.content};if(i!==void 0)return{container:n,baseElement:t,debug,unmount,rerender,asFragment,...(0,u.getQueriesForElement)(t,i)};let d={...resultTemplateFor(t)};return d.container=n,d.baseElement=t,d.debug=debug,d.unmount=unmount,d.rerender=rerender,d.asFragment=asFragment,d}function legacyRootError(e){let t=/* @__PURE__ */ Error("`legacyRoot: true` is not supported in this version of React. If your app runs React 19 or later, you should remove this flag. If your app runs React 18 or earlier, visit https://react.dev/blog/2022/03/08/react-18-upgrade-guide for upgrade instructions.");return Error.captureStackTrace(t,e),t}function render(e,t){return(0,s.tracing)()?(0,s.traceSync)(`react.render`,`render(${describeElement(e)})`,()=>renderUntraced(e,t)):renderUntraced(e,t)}function describeElement(e){if(!a.isValidElement(e))return typeof e==`string`?JSON.stringify(e):String(e);let t=e;for(let e=0;e<10;e++){let e=isWrapper(t)?wrappedElement(t):null;if(e===null)break;t=e}return describeTree(t,0)}function describeTree(e,t){let n=componentName(e.type)||`Component`;if(typeof e.type!=`string`)return`<${n} />`;let r=e.props.children;if(r==null||r===!1)return`<${n} />`;let i=onlyElement(r);return i!==null&&t<2?`<${n}>${describeTree(i,t+1)}</${n}>`:`<${n}>…</${n}>`}function componentName(e){if(typeof e==`string`)return e;if(typeof e==`symbol`)return e.description?.replace(/^react\./,``)??``;let t=e;return(t?.displayName??t?.name??t?.render?.name??t?.type?.name??``).replace(/\$\d+$/,``)}const E=/(?:Providers?|Context|Router|Wrapper|Fragment|StrictMode|Suspense|Profiler)$/;function isWrapper(e){if(typeof e.type==`symbol`)return!0;let t=componentName(e.type);return E.test(t)||t===``&&onlyElement(e.props.children)!==null}function wrappedElement(e){let t=e.props;return onlyElement(t.children)??firstRouteElement(t.router?.routes)}function firstRouteElement(e){for(let t of e??[]){let e=onlyElement(t.element);if(e!==null&&componentName(e.type)!==`Outlet`)return e;let n=firstRouteElement(t.children);if(n!==null)return n}return null}function onlyElement(e){if(a.isValidElement(e))return e;if(!Array.isArray(e))return null;let t=e.filter(e=>a.isValidElement(e));return t.length===1?t[0]:null}function renderUntraced(e,{container:t,baseElement:n=t,legacyRoot:r=!1,onCaughtError:i,onUncaughtError:a,onRecoverableError:o,queries:s,hydrate:c=!1,wrapper:l,reactStrictMode:u}={}){if(a!==void 0)throw Error("onUncaughtError is not supported. The `render` call will already throw on uncaught errors.");if(r)throw legacyRootError(render);n||=document.body,t||=n.appendChild(document.createElement(`div`));let d;if(!C.has(t))d=createConcurrentRoot(t,{hydrate:c,onCaughtError:i,onRecoverableError:o,ui:e,wrapper:l,reactStrictMode:u}),w.push({container:t,root:d}),C.add(t);else for(let e=0;e<w.length;e++){let n=w[e];n.container===t&&(d=n.root)}return renderRoot(e,{container:t,baseElement:n,queries:s,hydrate:c,wrapper:l,root:d,reactStrictMode:u})}function cleanup(){for(let e=0;e<w.length;e++){let{root:t,container:n}=w[e];l(()=>{t.unmount()}),n.parentNode===document.body&&document.body.removeChild(n)}w.length=0,C.clear()}function renderHook(e,t={}){let{initialProps:n,...r}=t;if(r.legacyRoot)throw legacyRootError(renderHook);let i=a.createRef();function TestComponent({renderCallbackProps:t}){let n=e(t);return a.useEffect(()=>{i.current=n}),null}let{rerender:o,unmount:s}=render(a.createElement(TestComponent,{renderCallbackProps:n}),r);function rerender(e){return o(a.createElement(TestComponent,{renderCallbackProps:e}))}return{result:i,rerender,unmount:s}}Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return configure}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return __exportAll}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return __reExport}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return renderHook}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return getIsReactActEnvironment}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return x}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return getConfig}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return render}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return fireEvent}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return cleanup}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return setReactActEnvironment}});
@@ -1 +1 @@
1
- import*as e from"react";import*as t from"react-dom/client";import{traceSync as n,tracing as r}from"@ctrl/dom/internal";var i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,__exportAll=(e,t)=>{let n={};for(var r in e)i(n,r,{get:e[r],enumerable:!0});return t||i(n,Symbol.toStringTag,{value:`Module`}),n},__copyProps=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=o(t),l=0,u=c.length,d;l<u;l++)d=c[l],!s.call(e,d)&&d!==n&&i(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=a(t,d))||r.enumerable});return e},__reExport=(e,t,n)=>(__copyProps(e,t,`default`),n&&__copyProps(n,t,`default`));const c=e.act;function setReactActEnvironment(e){globalThis.IS_REACT_ACT_ENVIRONMENT=e}function getIsReactActEnvironment(){return globalThis.IS_REACT_ACT_ENVIRONMENT}function isThenable(e){return typeof e==`object`&&!!e&&typeof e.then==`function`}function withGlobalActEnvironment(e){return t=>{let n=getIsReactActEnvironment();setReactActEnvironment(!0);try{let r=!1,i=e(()=>{let e=t();return isThenable(e)&&(r=!0),e});if(r){let e=i;return{then:(t,r)=>{e.then(e=>{setReactActEnvironment(n),t(e)},e=>{setReactActEnvironment(n),r(e)})}}}return setReactActEnvironment(n),i}catch(e){throw setReactActEnvironment(n),e}}}const l=withGlobalActEnvironment(c);var u=/* @__PURE__ */ __exportAll({});import*as d from"@ctrl/dom/testing-library";__reExport(u,d);const fireEvent=((...e)=>(0,u.fireEvent)(...e)),f=fireEvent,p=u.fireEvent;for(let e of Object.keys(u.fireEvent))f[e]=(...t)=>p[e](...t);const m=f.mouseEnter,h=f.mouseLeave;f.mouseEnter=(...e)=>(m(...e),f.mouseOver(...e)),f.mouseLeave=(...e)=>(h(...e),f.mouseOut(...e));const g=f.pointerEnter,_=f.pointerLeave;f.pointerEnter=(...e)=>(g(...e),f.pointerOver(...e)),f.pointerLeave=(...e)=>(_(...e),f.pointerOut(...e));const v=f.select;f.select=(e,t)=>{v(e,t),e.focus(),f.keyUp(e,t)};const y=f.blur,b=f.focus;f.blur=(...e)=>(f.focusOut(...e),y(...e)),f.focus=(...e)=>(f.focusIn(...e),b(...e));let x={reactStrictMode:!1};function getConfig(){return{...(0,u.getConfig)(),...x}}function configure(e){typeof e==`function`&&(e=e(getConfig()));let{reactStrictMode:t,...n}=e;(0,u.configure)(n),x={...x,reactStrictMode:t}}var S=/* @__PURE__ */ __exportAll({act:()=>l,cleanup:()=>cleanup,configure:()=>configure,fireEvent:()=>fireEvent,getConfig:()=>getConfig,render:()=>render,renderHook:()=>renderHook});__reExport(S,u);function jestFakeTimersAreEnabled(){return typeof jest<`u`&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,`clock`):!1}let C=!1;(0,u.configure)({unstable_advanceTimersWrapper:e=>l(e),asyncWrapper:async e=>{let t=getIsReactActEnvironment();setReactActEnvironment(!1);try{let t=await e();return await new Promise(e=>{setTimeout(()=>{e()},0),jestFakeTimersAreEnabled()&&jest.advanceTimersByTime(0)}),t}finally{setReactActEnvironment(t)}},eventWrapper:e=>{if(C)return e();C=!0;try{let t;return l(()=>{t=e()}),t}finally{C=!1}}});const w=/* @__PURE__ */ new Set,T=[];function strictModeIfNeeded(t,n){return n??getConfig().reactStrictMode?e.createElement(e.StrictMode,null,t):t}function wrapUiIfNeeded(t,n){return n?e.createElement(n,null,t):t}function createConcurrentRoot(e,{hydrate:n,onCaughtError:r,onRecoverableError:i,ui:a,wrapper:o,reactStrictMode:s}){let c;return n?l(()=>{c=t.hydrateRoot(e,strictModeIfNeeded(wrapUiIfNeeded(a,o),s),{onCaughtError:r,onRecoverableError:i})}):c=t.createRoot(e,{onCaughtError:r,onRecoverableError:i}),{hydrate(){if(!n)throw Error("Attempted to hydrate a non-hydrateable root. This is a bug in `@testing-library/react`.")},render(e){c.render(e)},unmount(){c.unmount()}}}const E=/* @__PURE__ */ new WeakMap;function boundQueriesFor(e,t){if(t!==void 0)return(0,u.getQueriesForElement)(e,t);let n=E.get(e);return n===void 0&&(n=(0,u.getQueriesForElement)(e),E.set(e,n)),n}function renderRoot(e,{baseElement:t,container:i,hydrate:a,queries:o,root:s,wrapper:c,reactStrictMode:d}){return l(()=>{a?s.hydrate():s.render(strictModeIfNeeded(wrapUiIfNeeded(e,c),d))}),{container:i,baseElement:t,debug:(e=t,n,r)=>Array.isArray(e)?e.forEach(e=>console.log((0,u.prettyDOM)(e,n,r))):console.log((0,u.prettyDOM)(e,n,r)),unmount:()=>{l(()=>{s.unmount()})},rerender:e=>{let rerender=()=>renderRoot(e,{container:i,baseElement:t,root:s,wrapper:c,reactStrictMode:d});r()?n(`react.rerender`,`rerender(${describeElement(e)})`,rerender):rerender()},asFragment:()=>{if(typeof document.createRange==`function`)return document.createRange().createContextualFragment(i.innerHTML);let e=document.createElement(`template`);return e.innerHTML=i.innerHTML,e.content},...boundQueriesFor(t,o)}}function legacyRootError(e){let t=/* @__PURE__ */ Error("`legacyRoot: true` is not supported in this version of React. If your app runs React 19 or later, you should remove this flag. If your app runs React 18 or earlier, visit https://react.dev/blog/2022/03/08/react-18-upgrade-guide for upgrade instructions.");return Error.captureStackTrace(t,e),t}function render(e,t){return r()?n(`react.render`,`render(${describeElement(e)})`,()=>renderUntraced(e,t)):renderUntraced(e,t)}function describeElement(t){if(!e.isValidElement(t))return typeof t==`string`?JSON.stringify(t):String(t);let n=t;for(let e=0;e<10;e++){let e=isWrapper(n)?wrappedElement(n):null;if(e===null)break;n=e}return describeTree(n,0)}function describeTree(e,t){let n=componentName(e.type)||`Component`;if(typeof e.type!=`string`)return`<${n} />`;let r=e.props.children;if(r==null||r===!1)return`<${n} />`;let i=onlyElement(r);return i!==null&&t<2?`<${n}>${describeTree(i,t+1)}</${n}>`:`<${n}>…</${n}>`}function componentName(e){if(typeof e==`string`)return e;if(typeof e==`symbol`)return e.description?.replace(/^react\./,``)??``;let t=e;return(t?.displayName??t?.name??t?.render?.name??t?.type?.name??``).replace(/\$\d+$/,``)}const D=/(?:Providers?|Context|Router|Wrapper|Fragment|StrictMode|Suspense|Profiler)$/;function isWrapper(e){if(typeof e.type==`symbol`)return!0;let t=componentName(e.type);return D.test(t)||t===``&&onlyElement(e.props.children)!==null}function wrappedElement(e){let t=e.props;return onlyElement(t.children)??firstRouteElement(t.router?.routes)}function firstRouteElement(e){for(let t of e??[]){let e=onlyElement(t.element);if(e!==null&&componentName(e.type)!==`Outlet`)return e;let n=firstRouteElement(t.children);if(n!==null)return n}return null}function onlyElement(t){if(e.isValidElement(t))return t;if(!Array.isArray(t))return null;let n=t.filter(t=>e.isValidElement(t));return n.length===1?n[0]:null}function renderUntraced(e,{container:t,baseElement:n=t,legacyRoot:r=!1,onCaughtError:i,onUncaughtError:a,onRecoverableError:o,queries:s,hydrate:c=!1,wrapper:l,reactStrictMode:u}={}){if(a!==void 0)throw Error("onUncaughtError is not supported. The `render` call will already throw on uncaught errors.");if(r)throw legacyRootError(render);n||=document.body,t||=n.appendChild(document.createElement(`div`));let d;if(!w.has(t))d=createConcurrentRoot(t,{hydrate:c,onCaughtError:i,onRecoverableError:o,ui:e,wrapper:l,reactStrictMode:u}),T.push({container:t,root:d}),w.add(t);else for(let e=0;e<T.length;e++){let n=T[e];n.container===t&&(d=n.root)}return renderRoot(e,{container:t,baseElement:n,queries:s,hydrate:c,wrapper:l,root:d,reactStrictMode:u})}function cleanup(){for(let e=0;e<T.length;e++){let{root:t,container:n}=T[e];l(()=>{t.unmount()}),n.parentNode===document.body&&document.body.removeChild(n)}T.length=0,w.clear()}function renderHook(t,n={}){let{initialProps:r,...i}=n;if(i.legacyRoot)throw legacyRootError(renderHook);let a=e.createRef();function TestComponent({renderCallbackProps:n}){let r=t(n);return e.useEffect(()=>{a.current=r}),null}let{rerender:o,unmount:s}=render(e.createElement(TestComponent,{renderCallbackProps:r}),i);function rerender(t){return o(e.createElement(TestComponent,{renderCallbackProps:t}))}return{result:a,rerender,unmount:s}}export{configure as a,l as c,__exportAll as d,__reExport as f,renderHook as i,getIsReactActEnvironment as l,S as n,getConfig as o,render as r,fireEvent as s,cleanup as t,setReactActEnvironment as u};
1
+ import*as e from"react";import*as t from"react-dom/client";import{traceSync as n,tracing as r}from"@ctrl/dom/internal";var i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,__exportAll=(e,t)=>{let n={};for(var r in e)i(n,r,{get:e[r],enumerable:!0});return t||i(n,Symbol.toStringTag,{value:`Module`}),n},__copyProps=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=o(t),l=0,u=c.length,d;l<u;l++)d=c[l],!s.call(e,d)&&d!==n&&i(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=a(t,d))||r.enumerable});return e},__reExport=(e,t,n)=>(__copyProps(e,t,`default`),n&&__copyProps(n,t,`default`));const c=e.act;function setReactActEnvironment(e){globalThis.IS_REACT_ACT_ENVIRONMENT=e}function getIsReactActEnvironment(){return globalThis.IS_REACT_ACT_ENVIRONMENT}function isThenable(e){return typeof e==`object`&&!!e&&typeof e.then==`function`}function withGlobalActEnvironment(e){return t=>{let n=getIsReactActEnvironment();setReactActEnvironment(!0);try{let r=!1,i=e(()=>{let e=t();return isThenable(e)&&(r=!0),e});if(r){let e=i;return{then:(t,r)=>{e.then(e=>{setReactActEnvironment(n),t(e)},e=>{setReactActEnvironment(n),r(e)})}}}return setReactActEnvironment(n),i}catch(e){throw setReactActEnvironment(n),e}}}const l=withGlobalActEnvironment(c);var u=/* @__PURE__ */ __exportAll({});import*as d from"@ctrl/dom/testing-library";__reExport(u,d);const fireEvent=((...e)=>(0,u.fireEvent)(...e)),f=fireEvent,p=u.fireEvent;for(let e of Object.keys(u.fireEvent))f[e]=(...t)=>p[e](...t);const m=f.mouseEnter,h=f.mouseLeave;f.mouseEnter=(...e)=>(m(...e),f.mouseOver(...e)),f.mouseLeave=(...e)=>(h(...e),f.mouseOut(...e));const g=f.pointerEnter,_=f.pointerLeave;f.pointerEnter=(...e)=>(g(...e),f.pointerOver(...e)),f.pointerLeave=(...e)=>(_(...e),f.pointerOut(...e));const v=f.select;f.select=(e,t)=>{v(e,t),e.focus(),f.keyUp(e,t)};const y=f.blur,b=f.focus;f.blur=(...e)=>(f.focusOut(...e),y(...e)),f.focus=(...e)=>(f.focusIn(...e),b(...e));let x={reactStrictMode:!1};function getConfig(){return{...(0,u.getConfig)(),...x}}function configure(e){typeof e==`function`&&(e=e(getConfig()));let{reactStrictMode:t,...n}=e;(0,u.configure)(n),x={...x,reactStrictMode:t}}var S=/* @__PURE__ */ __exportAll({act:()=>l,cleanup:()=>cleanup,configure:()=>configure,fireEvent:()=>fireEvent,getConfig:()=>getConfig,render:()=>render,renderHook:()=>renderHook});__reExport(S,u);function jestFakeTimersAreEnabled(){return typeof jest<`u`&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,`clock`):!1}let C=!1;(0,u.configure)({unstable_advanceTimersWrapper:e=>l(e),asyncWrapper:async e=>{let t=getIsReactActEnvironment();setReactActEnvironment(!1);try{let t=await e();return await new Promise(e=>{setTimeout(()=>{e()},0),jestFakeTimersAreEnabled()&&jest.advanceTimersByTime(0)}),t}finally{setReactActEnvironment(t)}},eventWrapper:e=>{if(C)return e();C=!0;try{let t;return l(()=>{t=e()}),t}finally{C=!1}}});const w=/* @__PURE__ */ new Set,T=[];function strictModeIfNeeded(t,n){return n??getConfig().reactStrictMode?e.createElement(e.StrictMode,null,t):t}function wrapUiIfNeeded(t,n){return n?e.createElement(n,null,t):t}function createConcurrentRoot(e,{hydrate:n,onCaughtError:r,onRecoverableError:i,ui:a,wrapper:o,reactStrictMode:s}){let c;return n?l(()=>{c=t.hydrateRoot(e,strictModeIfNeeded(wrapUiIfNeeded(a,o),s),{onCaughtError:r,onRecoverableError:i})}):c=t.createRoot(e,{onCaughtError:r,onRecoverableError:i}),{hydrate(){if(!n)throw Error("Attempted to hydrate a non-hydrateable root. This is a bug in `@testing-library/react`.")},render(e){c.render(e)},unmount(){c.unmount()}}}const E=/* @__PURE__ */ new WeakMap;function resultTemplateFor(e){let t=E.get(e);return t===void 0&&(t={container:void 0,baseElement:void 0,debug:void 0,unmount:void 0,rerender:void 0,asFragment:void 0,...(0,u.getQueriesForElement)(e)},E.set(e,t)),t}function actRender(e,t,n,r,i){l(()=>{n?t.hydrate():t.render(strictModeIfNeeded(wrapUiIfNeeded(e,r),i))})}function renderRoot(e,{baseElement:t,container:i,hydrate:a,queries:o,root:s,wrapper:c,reactStrictMode:d}){actRender(e,s,a,c,d);let debug=(e=t,n,r)=>Array.isArray(e)?e.forEach(e=>console.log((0,u.prettyDOM)(e,n,r))):console.log((0,u.prettyDOM)(e,n,r)),unmount=()=>{l(()=>{s.unmount()})},rerender=e=>{let rerender=()=>actRender(e,s,!1,c,d);r()?n(`react.rerender`,`rerender(${describeElement(e)})`,rerender):rerender()},asFragment=()=>{if(typeof document.createRange==`function`)return document.createRange().createContextualFragment(i.innerHTML);let e=document.createElement(`template`);return e.innerHTML=i.innerHTML,e.content};if(o!==void 0)return{container:i,baseElement:t,debug,unmount,rerender,asFragment,...(0,u.getQueriesForElement)(t,o)};let f={...resultTemplateFor(t)};return f.container=i,f.baseElement=t,f.debug=debug,f.unmount=unmount,f.rerender=rerender,f.asFragment=asFragment,f}function legacyRootError(e){let t=/* @__PURE__ */ Error("`legacyRoot: true` is not supported in this version of React. If your app runs React 19 or later, you should remove this flag. If your app runs React 18 or earlier, visit https://react.dev/blog/2022/03/08/react-18-upgrade-guide for upgrade instructions.");return Error.captureStackTrace(t,e),t}function render(e,t){return r()?n(`react.render`,`render(${describeElement(e)})`,()=>renderUntraced(e,t)):renderUntraced(e,t)}function describeElement(t){if(!e.isValidElement(t))return typeof t==`string`?JSON.stringify(t):String(t);let n=t;for(let e=0;e<10;e++){let e=isWrapper(n)?wrappedElement(n):null;if(e===null)break;n=e}return describeTree(n,0)}function describeTree(e,t){let n=componentName(e.type)||`Component`;if(typeof e.type!=`string`)return`<${n} />`;let r=e.props.children;if(r==null||r===!1)return`<${n} />`;let i=onlyElement(r);return i!==null&&t<2?`<${n}>${describeTree(i,t+1)}</${n}>`:`<${n}>…</${n}>`}function componentName(e){if(typeof e==`string`)return e;if(typeof e==`symbol`)return e.description?.replace(/^react\./,``)??``;let t=e;return(t?.displayName??t?.name??t?.render?.name??t?.type?.name??``).replace(/\$\d+$/,``)}const D=/(?:Providers?|Context|Router|Wrapper|Fragment|StrictMode|Suspense|Profiler)$/;function isWrapper(e){if(typeof e.type==`symbol`)return!0;let t=componentName(e.type);return D.test(t)||t===``&&onlyElement(e.props.children)!==null}function wrappedElement(e){let t=e.props;return onlyElement(t.children)??firstRouteElement(t.router?.routes)}function firstRouteElement(e){for(let t of e??[]){let e=onlyElement(t.element);if(e!==null&&componentName(e.type)!==`Outlet`)return e;let n=firstRouteElement(t.children);if(n!==null)return n}return null}function onlyElement(t){if(e.isValidElement(t))return t;if(!Array.isArray(t))return null;let n=t.filter(t=>e.isValidElement(t));return n.length===1?n[0]:null}function renderUntraced(e,{container:t,baseElement:n=t,legacyRoot:r=!1,onCaughtError:i,onUncaughtError:a,onRecoverableError:o,queries:s,hydrate:c=!1,wrapper:l,reactStrictMode:u}={}){if(a!==void 0)throw Error("onUncaughtError is not supported. The `render` call will already throw on uncaught errors.");if(r)throw legacyRootError(render);n||=document.body,t||=n.appendChild(document.createElement(`div`));let d;if(!w.has(t))d=createConcurrentRoot(t,{hydrate:c,onCaughtError:i,onRecoverableError:o,ui:e,wrapper:l,reactStrictMode:u}),T.push({container:t,root:d}),w.add(t);else for(let e=0;e<T.length;e++){let n=T[e];n.container===t&&(d=n.root)}return renderRoot(e,{container:t,baseElement:n,queries:s,hydrate:c,wrapper:l,root:d,reactStrictMode:u})}function cleanup(){for(let e=0;e<T.length;e++){let{root:t,container:n}=T[e];l(()=>{t.unmount()}),n.parentNode===document.body&&document.body.removeChild(n)}T.length=0,w.clear()}function renderHook(t,n={}){let{initialProps:r,...i}=n;if(i.legacyRoot)throw legacyRootError(renderHook);let a=e.createRef();function TestComponent({renderCallbackProps:n}){let r=t(n);return e.useEffect(()=>{a.current=r}),null}let{rerender:o,unmount:s}=render(e.createElement(TestComponent,{renderCallbackProps:r}),i);function rerender(t){return o(e.createElement(TestComponent,{renderCallbackProps:t}))}return{result:a,rerender,unmount:s}}export{configure as a,l as c,__exportAll as d,__reExport as f,renderHook as i,getIsReactActEnvironment as l,S as n,getConfig as o,render as r,fireEvent as s,cleanup as t,setReactActEnvironment as u};
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./_chunks/pure-DQzwul4s.cjs");var t=/* @__PURE__ */ e.d({act:()=>e.c,cleanup:()=>e.t,configure:()=>e.a,fireEvent:()=>e.s,getConfig:()=>e.o,render:()=>e.r,renderHook:()=>e.i});if(e.f(t,e.n),(typeof process>`u`||!process.env?.RTL_SKIP_AUTO_CLEANUP)&&(typeof afterEach==`function`?afterEach(()=>{e.t()}):typeof teardown==`function`&&teardown(()=>{e.t()}),typeof beforeAll==`function`&&typeof afterAll==`function`)){let t=e.l();beforeAll(()=>{t=e.l(),e.u(!0)}),afterAll(()=>{e.u(t)})}exports.act=e.c,exports.cleanup=e.t,exports.configure=e.a,exports.fireEvent=e.s,exports.getConfig=e.o,exports.render=e.r,exports.renderHook=e.i;var n=require("@ctrl/dom/testing-library");Object.keys(n).forEach(function(e){e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return n[e]}})});
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./_chunks/pure-DR8LsIAA.cjs");var t=/* @__PURE__ */ e.d({act:()=>e.c,cleanup:()=>e.t,configure:()=>e.a,fireEvent:()=>e.s,getConfig:()=>e.o,render:()=>e.r,renderHook:()=>e.i});if(e.f(t,e.n),(typeof process>`u`||!process.env?.RTL_SKIP_AUTO_CLEANUP)&&(typeof afterEach==`function`?afterEach(()=>{e.t()}):typeof teardown==`function`&&teardown(()=>{e.t()}),typeof beforeAll==`function`&&typeof afterAll==`function`)){let t=e.l();beforeAll(()=>{t=e.l(),e.u(!0)}),afterAll(()=>{e.u(t)})}exports.act=e.c,exports.cleanup=e.t,exports.configure=e.a,exports.fireEvent=e.s,exports.getConfig=e.o,exports.render=e.r,exports.renderHook=e.i;var n=require("@ctrl/dom/testing-library");Object.keys(n).forEach(function(e){e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return n[e]}})});
@@ -1 +1 @@
1
- import{a as e,c as t,d as n,f as r,i,l as a,n as o,o as s,r as c,s as l,t as u,u as d}from"./_chunks/pure-CCeTO5Mk.js";export*from"@ctrl/dom/testing-library";if(r(/* @__PURE__ */ n({act:()=>t,cleanup:()=>u,configure:()=>e,fireEvent:()=>l,getConfig:()=>s,render:()=>c,renderHook:()=>i}),o),(typeof process>`u`||!process.env?.RTL_SKIP_AUTO_CLEANUP)&&(typeof afterEach==`function`?afterEach(()=>{u()}):typeof teardown==`function`&&teardown(()=>{u()}),typeof beforeAll==`function`&&typeof afterAll==`function`)){let e=a();beforeAll(()=>{e=a(),d(!0)}),afterAll(()=>{d(e)})}export{t as act,u as cleanup,e as configure,l as fireEvent,s as getConfig,c as render,i as renderHook};
1
+ import{a as e,c as t,d as n,f as r,i,l as a,n as o,o as s,r as c,s as l,t as u,u as d}from"./_chunks/pure-ajnRI-Fp.js";export*from"@ctrl/dom/testing-library";if(r(/* @__PURE__ */ n({act:()=>t,cleanup:()=>u,configure:()=>e,fireEvent:()=>l,getConfig:()=>s,render:()=>c,renderHook:()=>i}),o),(typeof process>`u`||!process.env?.RTL_SKIP_AUTO_CLEANUP)&&(typeof afterEach==`function`?afterEach(()=>{u()}):typeof teardown==`function`&&teardown(()=>{u()}),typeof beforeAll==`function`&&typeof afterAll==`function`)){let e=a();beforeAll(()=>{e=a(),d(!0)}),afterAll(()=>{d(e)})}export{t as act,u as cleanup,e as configure,l as fireEvent,s as getConfig,c as render,i as renderHook};
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./_chunks/pure-DQzwul4s.cjs");exports.act=e.c,exports.cleanup=e.t,exports.configure=e.a,exports.fireEvent=e.s,exports.getConfig=e.o,exports.render=e.r,exports.renderHook=e.i;var t=require("@ctrl/dom/testing-library");Object.keys(t).forEach(function(e){e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return t[e]}})});
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./_chunks/pure-DR8LsIAA.cjs");exports.act=e.c,exports.cleanup=e.t,exports.configure=e.a,exports.fireEvent=e.s,exports.getConfig=e.o,exports.render=e.r,exports.renderHook=e.i;var t=require("@ctrl/dom/testing-library");Object.keys(t).forEach(function(e){e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return t[e]}})});
@@ -1 +1 @@
1
- export{c as act,t as cleanup,a as configure,s as fireEvent,o as getConfig,r as render,i as renderHook}from"./_chunks/pure-CCeTO5Mk.js";export*from"@ctrl/dom/testing-library";
1
+ export{c as act,t as cleanup,a as configure,s as fireEvent,o as getConfig,r as render,i as renderHook}from"./_chunks/pure-ajnRI-Fp.js";export*from"@ctrl/dom/testing-library";