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