@ctrl/dom 0.2.0 → 0.3.0
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/index.js +1 -1
- package/dist/bridge/internal.js +1 -1
- package/dist/dom/_chunks/src-u_GjEFAe.js +49 -0
- package/dist/dom/index.js +1 -1
- package/dist/dom/internal.js +1 -1
- package/dist/dom/types/index.d.ts +2 -0
- package/dist/dom/types/keys.d.ts +0 -3
- package/dist/dom/types/nodes/Document.d.ts +9 -0
- package/dist/dom/types/webidl-runtime.d.ts +12 -0
- package/dist/dom/types/window/geometry.d.ts +138 -14
- package/dist/dom/types/window/quad.d.ts +35 -0
- package/package.json +1 -1
- package/dist/dom/_chunks/src-CaVKwScX.js +0 -49
package/dist/dom/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{Tr as AbstractRange,ps as AnimationEvent,Ka as Attr,Qt as Audio,ms as BeforeUnloadEvent,to as CDATASection,t as CSS,pi as CSSConditionRule,mi as CSSContainerRule,hi as CSSFontFaceRule,gi as CSSGroupingRule,_i as CSSImportRule,vi as CSSKeyframeRule,yi as CSSKeyframesRule,bi as CSSLayerBlockRule,xi as CSSLayerStatementRule,Si as CSSMediaRule,Ci as CSSNamespaceRule,wi as CSSNestedDeclarations,Ti as CSSPageRule,Ei as CSSPropertyRule,Di as CSSRule,Oi as CSSRuleList,ki as CSSScopeRule,Ai as CSSStartingStyleRule,Zi as CSSStyleDeclaration,ji as CSSStyleRule,Mi as CSSStyleSheet,Ni as CSSSupportsRule,no as CharacterData,ur as Clipboard,ks as ClipboardEvent,dr as ClipboardItem,hs as CloseEvent,Ar as CommandEvent,ro as Comment,As as CompositionEvent,Sa as CustomElementRegistry,gs as CustomEvent,Xn as CustomStateSet,_r as DOMImplementation,Na as DOMMatrix,Na as WebKitCSSMatrix,Pa as DOMMatrixReadOnly,hr as DOMParser,Fa as DOMPoint,Ia as DOMPointReadOnly,O as DOMQuad,La as DOMRect,Ra as DOMRectList,za as DOMRectReadOnly,qa as DOMStringMap,Ja as DOMTokenList,T as DataTransfer,E as DataTransferItem,D as DataTransferItemList,vr as Document,vr as HTMLDocument,eo as DocumentFragment,$a as DocumentType,js as DragEvent,Oa as Element,Zn as ElementInternals,_s as ErrorEvent,Xs as Event,ts as EventTarget,tt as FileList,j as FileReader,Ms as FocusEvent,I as FormData,vs as FormDataEvent,in as HTMLAnchorElement,an as HTMLAreaElement,$t as HTMLAudioElement,on as HTMLBRElement,sn as HTMLBaseElement,cn as HTMLBodyElement,K as HTMLButtonElement,ln as HTMLCanvasElement,oo as HTMLCollection,un as HTMLDListElement,dn as HTMLDataElement,z as HTMLDataListElement,Xt as HTMLDetailsElement,Zt as HTMLDialogElement,fn as HTMLDirectoryElement,pn as HTMLDivElement,Qn as HTMLElement,mn as HTMLEmbedElement,U as HTMLFieldSetElement,hn as HTMLFontElement,ra as HTMLFormControlsCollection,R as HTMLFormElement,gn as HTMLFrameElement,_n as HTMLFrameSetElement,vn as HTMLHRElement,yn as HTMLHeadElement,bn as HTMLHeadingElement,xn as HTMLHtmlElement,Sn as HTMLIFrameElement,Cn as HTMLImageElement,$ as HTMLInputElement,wn as HTMLLIElement,G as HTMLLabelElement,W as HTMLLegendElement,Wt as HTMLLinkElement,Tn as HTMLMapElement,En as HTMLMarqueeElement,en as HTMLMediaElement,Dn as HTMLMenuElement,On as HTMLMetaElement,B as HTMLMeterElement,kn as HTMLModElement,An as HTMLOListElement,jn as HTMLObjectElement,q as HTMLOptGroupElement,J as HTMLOptionElement,ia as HTMLOptionsCollection,V as HTMLOutputElement,Mn as HTMLParagraphElement,Nn as HTMLParamElement,Pn as HTMLPictureElement,Fn as HTMLPreElement,H as HTMLProgressElement,In as HTMLQuoteElement,Gt as HTMLScriptElement,Z as HTMLSelectElement,Jt as HTMLSlotElement,Ln as HTMLSourceElement,Rn as HTMLSpanElement,Kt as HTMLStyleElement,zn as HTMLTableCaptionElement,Bn as HTMLTableCellElement,Vn as HTMLTableColElement,Hn as HTMLTableElement,Un as HTMLTableRowElement,Wn as HTMLTableSectionElement,Yt as HTMLTemplateElement,Q as HTMLTextAreaElement,Gn as HTMLTimeElement,qt as HTMLTitleElement,Kn as HTMLTrackElement,qn as HTMLUListElement,Jn as HTMLUnknownElement,tn as HTMLVideoElement,ys as HashChangeEvent,pr as History,Yn as Image,Ns as InputEvent,k as IntersectionObserver,Ps as KeyboardEvent,mr as Location,rt as MathMLElement,nn as MediaError,Pi as MediaList,ci as MediaQueryList,di as MediaQueryListEvent,bs as MessageEvent,Fs as MouseEvent,w as MutationObserver,Fo as MutationRecord,Wa as NamedNodeMap,fr as Navigator,po as Node,Sr as NodeFilter,Cr as NodeIterator,Io as NodeList,Y as Option,xs as PageTransitionEvent,Is as PointerEvent,Ss as PopStateEvent,io as ProcessingInstruction,Cs as ProgressEvent,ws as PromiseRejectionEvent,aa as RadioNodeList,Er as Range,A as ResizeObserver,it as SVGAElement,at as SVGAnimatedString,ot as SVGCircleElement,st as SVGClipPathElement,ct as SVGDefsElement,lt as SVGDescElement,ut as SVGElement,dt as SVGEllipseElement,ft as SVGFilterElement,pt as SVGForeignObjectElement,mt as SVGGElement,ht as SVGGeometryElement,gt as SVGGradientElement,_t as SVGGraphicsElement,vt as SVGImageElement,yt as SVGLineElement,bt as SVGLinearGradientElement,xt as SVGMarkerElement,St as SVGMaskElement,Ct as SVGMetadataElement,wt as SVGPathElement,Tt as SVGPatternElement,Et as SVGPolygonElement,Dt as SVGPolylineElement,Ot as SVGRadialGradientElement,kt as SVGRectElement,At as SVGSVGElement,jt as SVGScriptElement,Mt as SVGStopElement,Nt as SVGStyleElement,Pt as SVGSwitchElement,Ft as SVGSymbolElement,It as SVGTSpanElement,Lt as SVGTextContentElement,Rt as SVGTextElement,zt as SVGTextPathElement,Bt as SVGTextPositioningElement,Vt as SVGTitleElement,Ht as SVGUseElement,Ut as SVGViewElement,cr as Screen,xr as Selection,Ya as ShadowRoot,Dr as StaticRange,sr as Storage,Ts as StorageEvent,Fi as StyleSheet,Ii as StyleSheetList,Es as SubmitEvent,ao as Text,Ls as TextEvent,rn as TimeRanges,Ds as ToggleEvent,Rs as Touch,zs as TouchEvent,Bs as TouchList,Os as TransitionEvent,wr as TreeWalker,Vs as UIEvent,na as ValidityState,lr as VisualViewport,Hs as WheelEvent,nr as Window,yr as XMLDocument,M as XMLHttpRequest,N as XMLHttpRequestEventTarget,P as XMLHttpRequestUpload,gr as XMLSerializer,rr as createWindow,ls as currentDocument,us as currentWindow,ds as currentWindowOrNull,zr as getComputedStyle,F as installGlobals,fs as setCurrentWindow}from"./_chunks/src-u_GjEFAe.js";
|
package/dist/dom/internal.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as e,$c as t,$d as n,$i as r,$l as i,$n as a,$o as o,$r as s,$s as c,$u as ee,Aa as l,Ac as u,Ad as te,Af as ne,Al as re,Ao as ie,Ar as ae,Au as oe,Ba as se,Bc as ce,Bd as le,Bf as ue,Bi as de,Bl as fe,Bo as pe,Br as me,Bu as he,C as ge,Ca as _e,Cc as ve,Cd as ye,Cf as be,Cl as xe,Co as Se,Cu as Ce,Dc as we,Dd as Te,Df as Ee,Dl as De,Do as Oe,Dr as ke,Du as Ae,Ea as je,Ec as Me,Ed as d,Ef as Ne,El as Pe,Eo as f,Eu as p,Fc as m,Fd as h,Ff as g,Fl as _,Fo as v,Fr as y,Fu as Fe,Gc as Ie,Gd as Le,Gi as Re,Gl as ze,Go as Be,Gr as Ve,Gs as He,Gu as Ue,Ha as We,Hc as Ge,Hd as Ke,Hf as qe,Hi as Je,Hl as Ye,Ho as Xe,Hr as Ze,Hs as b,Hu as Qe,I as $e,Ic as et,Id as tt,If as nt,Ii as rt,Il as it,Io as at,Ir as ot,Iu as st,Jc as ct,Jd as lt,Ji as ut,Jl as dt,Jo as ft,Jr as pt,Js as mt,Ju as ht,Kc as gt,Kd as _t,Ki as vt,Kl as yt,Ko as bt,Kr as xt,Ks as St,Ku as Ct,Lc as wt,Ld as Tt,Lf as Et,Li as Dt,Ll as x,Lo as Ot,Lr as kt,Lu as At,Mc as jt,Md as Mt,Mf as Nt,Ml as S,Mo as Pt,Mr as Ft,Mu as It,Nc as Lt,Nd as Rt,Nf as zt,Nl as Bt,No as Vt,Nr as Ht,Nu as Ut,Oa as Wt,Oc as Gt,Od as Kt,Of as qt,Ol as Jt,Oo as Yt,Or as Xt,Ou as Zt,Pc as Qt,Pd as $t,Pf as en,Pl as tn,Pr as nn,Pu as rn,Qc as an,Qd as on,Qi as sn,Ql as cn,Qn as ln,Qo as un,Qr as dn,Qs as fn,Qu as pn,Rc as mn,Rd as hn,Rf as gn,Ri as _n,Rl as vn,Ro as yn,Rr as bn,Ru as xn,S as Sn,Sa as Cn,Sc as wn,Sd as Tn,Sf as En,Sl as Dn,So as On,Su as kn,Ta as An,Tc as jn,Td as Mn,Tf as Nn,Tl as Pn,To as Fn,Tu as In,Uc as Ln,Ud as C,Ui as Rn,Ul as zn,Uo as Bn,Ur as Vn,Us as Hn,Uu as Un,Va as Wn,Vc as Gn,Vd as Kn,Vf as qn,Vi as Jn,Vl as Yn,Vo as Xn,Vr as Zn,Vu as Qn,Wa as $n,Wc as er,Wd as w,Wi as tr,Wl as nr,Wo as rr,Wr as ir,Ws as ar,Wu as or,Xa as sr,Xc as T,Xd as cr,Xl as lr,Xo as ur,Xr as dr,Xs as fr,Xu as pr,Y as mr,Ya as hr,Yc as gr,Yd as _r,Yi as vr,Yl as yr,Yo as br,Yr as xr,Yu as Sr,Za as Cr,Zc as wr,Zd as Tr,Zi as Er,Zl as Dr,Zo as Or,Zr as kr,Zs as Ar,Zu as jr,_ as Mr,_a as Nr,_c as Pr,_d as Fr,_f as Ir,_l as Lr,_o as Rr,_u as zr,a as Br,aa as Vr,ac as Hr,ad as Ur,af as Wr,ai as Gr,al as E,ao as Kr,ar as qr,as as Jr,au as Yr,b as Xr,ba as D,bc as Zr,bd as Qr,bf as $r,bl as ei,bo as ti,bu as ni,c as ri,ca as ii,cc as ai,cd as oi,cf as si,ci,cl as li,co as ui,cu as di,d as fi,da as pi,dc as mi,dd as hi,df as gi,di as _i,dl as vi,do as yi,du as bi,ea as xi,ec as Si,ed as Ci,ef as wi,ei as Ti,el as Ei,er as Di,eu as Oi,f as ki,fa as Ai,fc as ji,fd as O,ff as Mi,fl as Ni,fu as Pi,g as Fi,ga as Ii,gc as Li,gd as Ri,gf as zi,gl as Bi,go as Vi,gu as Hi,h as Ui,ha as k,hc as Wi,hd as Gi,hf as Ki,hl as qi,ho as Ji,hu as Yi,i as Xi,ic as Zi,id as Qi,if as $i,ii as ea,il as ta,ir as na,is as ra,iu as ia,ja as aa,jc as A,jd as oa,jf as sa,jl as ca,jo as la,jr as ua,ju as da,ka as fa,kc as pa,kd as ma,kf as ha,kl as ga,ko as _a,ku as va,l as ya,la as ba,lc as xa,ld as Sa,lf as Ca,li as wa,ll as Ta,lo as Ea,lu as Da,m as j,ma as Oa,mc as ka,md as Aa,mf as ja,ml as Ma,mo as Na,mu as Pa,n as Fa,nc as Ia,nd as La,nf as Ra,ni as za,nl as Ba,ns as Va,nu as Ha,o as Ua,oa as Wa,oc as Ga,od as Ka,of as qa,oi as Ja,ol as Ya,oo as Xa,os as Za,ou as Qa,p as $a,pa as eo,pc as to,pd as no,pf as ro,pl as io,po as ao,pu as oo,qc as so,qd as co,qi as lo,ql as uo,qo as fo,qr as po,qs as mo,qu as ho,r as go,rc as _o,rd as vo,rf as yo,ri as bo,rl as xo,rr as M,rs as So,ru as Co,s as wo,sa as To,sc as Eo,sd as Do,sf as Oo,sl as ko,so as Ao,ss as jo,su as Mo,tc as No,td as Po,tf as Fo,ti as Io,tl as Lo,tr as N,ts as Ro,tt as P,tu as zo,u as Bo,ua as Vo,uc as Ho,ud as Uo,uf as Wo,ul as Go,uo as Ko,us as F,uu as qo,v as Jo,va as I,vc as Yo,vd as Xo,vf as Zo,vl as L,vo as Qo,vu as $o,wa as es,wc as ts,wd as ns,wf as rs,wl as is,wo as as,wu as os,x as ss,xc as cs,xd as ls,xf as us,xl as R,xo as ds,xu as z,y as fs,ya as B,yc as ps,yd as ms,yf as hs,yl as gs,yo as _s,yr as vs,yu as ys,za as bs,zc as xs,zd as Ss,zf as Cs,zi as ws,zl as Ts,zo as Es,zr as Ds,zu as V}from"./_chunks/src-CaVKwScX.js";import{constants as Os,createContext as ks,runInContext as As}from"node:vm";import*as H from"node:diagnostics_channel";let U=null;function targets(){let e=/* @__PURE__ */ new Set,t=M();for(let n in t){let r=t[n];if(r===null||typeof r!=`object`&&typeof r!=`function`)continue;e.add(r);let i=r.prototype;typeof r==`function`&&typeof i==`object`&&i&&e.add(i)}return e.add(N.prototype),[...e]}function snapshot(e){let t=Reflect.ownKeys(e),n=Array(t.length);for(let r=0;r<t.length;r++){let i=t[r];n[r]=isArrayIndex(i)?null:Object.getOwnPropertyDescriptor(e,i)}return{target:e,keys:t,descriptors:n,keySet:null}}let W=null;function captureInterfaceBaseline(){if(U===null){U=[],W=/* @__PURE__ */ new WeakSet;for(let e of targets())U.push(snapshot(e)),W.add(e);ownObjectCreateMaps()}}let js=null;function ownObjectCreateMaps(){if(U===null)return;let e=js??=As(`(prototypes) => prototypes.map((p) => Object.create(p))`,ks(Os.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[_]!==void 0)return describeNode(e);if(Array.isArray(e))return t>0?`[…]`:`[${e.slice(0,3).map(e=>describeValue(e,t+1)).join(`, `)}${e.length>3?`, …`:``}]`;if(t>0)return`{…}`;let n=Object.entries(e).slice(0,4);return n.length===0?`{}`:`{ ${n.map(([e,n])=>`${e}: ${describeValue(n,t+1)}`).join(`, `)} }`}let q=null;function setNodeDescriber(e){q=e}function describeNode(e){let t=e;if(t.nodeType===9)return`document`;if(t.nodeType!==1||typeof t.localName!=`string`)return t.nodeType===3?`#text`:`node`;if(q!==null)try{let t=q(e);if(t)return t}catch{}if(t.localName===`body`||t.localName===`html`)return`<${t.localName}>`;let n=t.getAttribute?.(`aria-label`)||t.textContent?.trim().replace(/\s+/g,` `)||t.getAttribute?.(`placeholder`)||t.getAttribute?.(`name`)||``;return n===``?`<${t.localName}>`:`<${t.localName} ${quote(n)}>`}function quote(e){return JSON.stringify(e.length>40?`${e.slice(0,39)}…`:e)}const J=`sentry-tests:failure`;let Y=null;function setFailureSnapshot(e){Y=e}function subscribeTestFailures(e){let t=H.channel(J),onFailure=t=>{let n=t,r=e();if(r==null||n.document!==r)return;let i=w();if(i!==null&&(n.contexts.clock={skipped_ms:Math.round(i.skippedMs),pending_timers:i.pendingTimers}),Y!==null&&r.body!=null)try{n.attachments.push({filename:`accessibility-snapshot.txt`,contentType:`text/plain`,data:Y(r.body)})}catch{}};return t.subscribe(onFailure),()=>t.unsubscribe(onFailure)}var FileState=class{hooks;url;constructor(){this.hooks=/* @__PURE__ */ new Map,this.url=null}};const X=/* @__PURE__ */ new WeakMap;function stateOf(e){let t=X.get(e);return t===void 0&&X.set(e,t=new FileState),t}function registerTestHooks(e,t){let n=F();if(n===null)return;let r=stateOf(n).hooks;r.set(e,{...r.get(e),...t})}function testHooks(){let e=F(),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(),na(e);let n=e[O];if(n!==null){for(let e of n)e.clear(e.handle);n.clear()}e[L]=null,e[V]=null,e[R]=null,e[S]=null;let r=e.document;r.getSelection()?.removeAllRanges();let i=r.body;i!==null&&(i.replaceChildren(),removeAttributes(i)),r.documentElement!==null&&removeAttributes(r.documentElement),e.localStorage.clear(),e.sessionStorage.clear(),e[m]=null;let a=t.url??=e.location.href;e.location.href!==a&&e._setURL(new URL(a));let o=e.history;o[E]=[{url:a,state:null}],o[x]=0}function removeAttributes(e){let t=e.getAttributeNames();for(let n=0;n<t.length;n++)e.removeAttribute(t[n])}function implOf(e){return e[_]??e}function isTypingType(e){return I(e)||e===12||e>=7&&e<=11}function isEditable(e){let t=implOf(e);return t.tag===b.input?isTypingType(k(t))&&j(t):t.tag===b.textarea?j(t):y(t)}function supportsSelection(e){let t=implOf(e);return t.tag===b.textarea||t.tag===b.input&&B(k(t))}function hasUIValue(e){let t=implOf(e);return t.tag===b.textarea||t.tag===b.input&&D(k(t))===0}function getUIValue(e){let t=implOf(e);if(t.tag===b.input){let e=t.node;return e[A].uiValue??e.value}return t.tag===b.textarea?t.node.value:``}function setUIValue(t,n){let r=implOf(t);if(r.tag===b.input){let t=r.node,i=k(r);if(D(i)!==0)return;let a=e(i,n,r);r.doc[d]++,t[A].value=a,t[A].dirtyValue=!0,t[A].userEdited=!0,t[A].uiValue=a===n?null:n,t[A].badInput=a===``&&n!==``&&i!==5&&!I(i);let o=n.length;t[A].selStart>o&&(t[A].selStart=o),t[A].selEnd>o&&(t[A].selEnd=o)}else if(r.tag===b.textarea){let e=r.node;r.doc[d]++,e[A].value=n,e[A].dirtyValue=!0,e[A].userEdited=!0}}function clearUIValue(e){let t=implOf(e);if(t.tag===b.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!==b.input&&i.tag!==b.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===b.input&&k(n)===17&&(n.doc[d]++,n.node[A].files=P(t))}function setOptionSelectedFromUI(e,t){let n=implOf(e);if(n.tag!==b.option)return;let r=n.node;r._setSelectedness(t),r[T]=!0;let i=mr(n);if(i!==null){let e=i.node;t&&e._deselectOthers(n),e._updateSelectedContent()}}function setCheckedFromUI(e,t){let n=implOf(e);n.tag===b.input&&n.node._setCheckedness(t,!0)}const Ms=N.prototype.getComputedStyle;let Z=null,Q=null,$=null;function getComputedStyleOverride(e){let t=e.doc.defaultView;if(t==null)return null;let n=t.getComputedStyle;if(n===Ms||typeof n!=`function`||$e.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{fn as $_proto__,c as $aboutBase,Si as $active,No as $assocGen,Ia as $attr,_o as $attributes,Zi as $availableToElementInternals,Hr as $baseFor,Ga as $baseOverride,Eo as $baseURL,ai as $baseVersion,xa as $benign,Ho as $block,mi as $blockParsed,ji as $blockText,to as $byCtor,ka as $byName,Wi as $cache,Li as $callback,Pr as $childNodes,Yo as $childWindows,ps as $children,Zr as $classList,cs as $clipboard,wn as $clonable,ve as $closed,ts as $coll,jn as $compiled,Me as $compiledFor,we as $condition,Gt as $constructed,pa as $constructingEntryList,u as $contentType,A as $control,jt as $controlsCache,Lt as $controlsDoc,Qt as $controlsVersion,m as $cookieJar,et as $cookies,wt as $css,mn as $current,xs as $customElements,ce as $customValidity,Gn as $cx,Ge as $data,Ln as $dataset,er as $declarative,Ie as $defaultNamespace,gt as $defaultValueOverride,so as $delegatesFocus,ct as $derived,gr as $devicePixelRatio,T as $dirtiness,wr as $disabled,an as $disallowModification,t as $doc,Ei as $dropEffect,Lo as $ec,Ba as $effectAllowed,xo as $el,ta as $elements,E as $entries,Ya as $eo,ko as $error,li as $file,Ta as $files,Go as $fill,vi as $filter,Ni as $firingSubmissionEvents,io as $focused,Ma as $forLabels,qi as $form,Bi as $formAttrSeen,Lr as $forms,L as $frameCallbacks,gs as $frameElement,ei as $frameId,R as $frameTask,Dn as $frameTime,xe as $generation,is as $globalObject,Pn as $hasTransients,Pe as $height,De as $history,Jt as $home,ga as $host,re as $href,ca as $id,S as $idleCallbacks,Bt as $idleId,tn as $ids,_ as $impl,it as $implementation,x as $index,vn as $indexed,Ts as $inflight,fe as $info,Yn as $innerHeight,Ye as $innerWidth,zn as $is2D,nr as $isHTML,ze as $items,yt as $keyText,uo as $kind,dt as $labels,yr as $layerName,lr as $list,Dr as $listeners,cn as $localStorage,i as $location,Oi as $lockedForReset,zo as $m,Ha as $matches,Co as $media,ia as $mediaQueryLists,Yr as $mode,Qa as $name,Mo as $names,di as $namespaces,Da as $navigator,qo as $nodes,bi as $onchange,Pi as $options,oo as $owner,Pa as $ownerNode,Yi as $ownerRule,Hi as $parent,zr as $parentRule,$o as $parentWindow,ys as $pastNames,ni as $pointerBeforeReference,z as $prefix,kn as $prelude,Ce as $presentationStyle,os as $pseudo,In as $queries,p as $radios,Ae as $ranges,Zt as $readonly,va as $readyState,oe as $rebuildVersion,da as $record,It as $records,Ut as $rects,rn as $reference,Fe as $result,st as $root,At as $rules,xn as $running,V as $runningFrame,he as $sc,Qn as $screen,Qe as $scrollRestoration,Un as $scrollX,or as $scrollY,Ue as $selSet,Ct as $selectedOptions,ho as $selectedness,ht as $selection,Sr as $selector,pr as $serializable,jr as $sessionStorage,pn as $settled,ee as $shadowRoot,Ci as $shed,Po as $sheet,La as $sheets,vo as $slotAssignment,Qi as $so,Ur as $states,Ka as $style,Do as $styleVersion,oi as $supportsText,Sa as $systemId,Uo as $target,hi as $targets,O as $tasks,no as $timers,Aa as $title,Gi as $treeVersion,Ri as $type,Fr as $types,Xo as $updating,ms as $updatingSelectedContent,Qr as $uri,ls as $url,Tn as $userActivation,ye as $userValidity,ns as $validity,Mn as $value,d as $version,Te as $visualViewport,Kt as $w,ma as $whatToShow,te as $whenDefined,oa as $width,Mt as $window,Rt as $writeBuffer,$t as $x,h as $xhr,tt as $y,Tt as $z,n as ATTRIBUTE_NODE,un as AttrRecord,wi as CDATA_SECTION_NODE,Fo as COMMENT_NODE,Rn as COMPAT,tr as COMPAT_PROFILES,Re as DEFAULT_COMPAT,Ra as DOCUMENT_FRAGMENT_NODE,yo as DOCUMENT_NODE,$i as DOCUMENT_POSITION_CONTAINED_BY,Wr as DOCUMENT_POSITION_CONTAINS,qa as DOCUMENT_POSITION_DISCONNECTED,Oo as DOCUMENT_POSITION_FOLLOWING,si as DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC,Ca as DOCUMENT_POSITION_PRECEDING,Wo as DOCUMENT_TYPE_NODE,Er as DeclBlock,gi as ELEMENT_NODE,Mi as ENTITY_NODE,ro as ENTITY_REFERENCE_NODE,fr as EventState,J as FAILURE_CHANNEL,ja as F_ADOPT_HOOK,Ki as F_ARIA_ATTRS,zi as F_ATTR_HOOK,Ir as F_CE_CUSTOM,Zo as F_CHILDREN_HOOK,hs as F_CHILD_LIST,$r as F_CONNECTED,us as F_CONNECT_HOOK,En as F_CONTENTEDITABLE_ATTR,be as F_CUSTOM,rs as F_DATA_ATTRS,Nn as F_FACE,Ne as F_FORM_ATTR,Ee as F_HAS_SHADOW,qt as F_HAS_STYLE_ATTR,ha as F_HTML,ne as F_INERT_ATTR,sa as F_MO_REGISTERED,Nt as F_SHADOW_ROOT,zt as F_TABINDEX_ATTR,Cn as GLOBAL_EVENT_HANDLER_EVENTS,Kr as HTMLCollection,en as HTML_NS,Oa as INPUT_TYPE_NAMES,g as MATHML_NS,nt as NOTATION_NODE,_n as NodeCache,o as NodeImpl,v as NodeList,Et as PROCESSING_INSTRUCTION_NODE,G as SPAN_CHANNEL,gn as SVG_NS,b as T,Cs as TEXT_NODE,hn as VirtualClock,Ss as VirtualTimeout,_e as WINDOW_EVENT_HANDLER_EVENTS,ue as XLINK_NS,qn as XMLNS_NS,qe as XML_NS,s as adoptedStyleSheetsOf,On as ariaAttr,Se as asciiLowercase,Vi as assignManually,Rr as assignedElements,Qo as assignedNodes,_s as assignedSlot,Wt as attachShadowRoot,as as attr,ln as attrAssociatedElement,a as attrAssociatedElements,$n as attrNode,le as canSkipZeroDelayWait,captureInterfaceBaseline,pe as childAt,Fn as classTokens,clearUIValue,Ke as clockNow,w as clockStats,ui as closest,ke as compareBoundaryPoints,vt as compatExposes,Ds as computedDisplay,me as computedValue,Zn as computedVisibility,ae as constructEntryList,Fa as controlValue,vs as createEvent,P as createFileList,Ti as createLinkSheet,Ze as currentStyleVersion,ua as defaultButton,lo as deferredCompatMembers,yn as derivedCache,describeCall,describeNode,Ro as dispatch,de as dispatchTrusted,Xa as ensureCollectionIndexGetters,at as ensureIndexGetters,ci as evaluateMediaQueryList,r as faceState,ti as findFlattenedSlottables,ds as findSlot,Jn as fireAnEvent,Je as fireSyntheticPointerEvent,Xn as firstElementChild,Le as foreignImmediatesPending,Wa as formOwner,f as getAttribute,bn as getComputedStyle,getComputedStyleOverride,Va as getCurrentEvent,fa as getElementsByClassName,l as getElementsByTagName,aa as getElementsByTagNameNS,es as getEventHandler,getUISelection,getUIValue,guardInterfaceDefinitions,Oe as hasAttr,Vn as hasAuthorStyles,Di as hasExplicitAttrElements,He as hasListeners,go as hasReadonlyAttribute,hasUIValue,ut as hiddenGlobals,Ft as implicitSubmission,Ot as indexGetterTable,Xe as indexOf,Xi as inputChecked,Br as inputIndeterminate,k as inputType,Ii as inputTypeFromAttr,ao as inspectNode,_t as installClock,An as installEventHandlers,To as isActuallyDisabled,Yt as isAsciiWhitespace,Ua as isAutofilled,wo as isChecked,co as isClockTimer,ri as isDefault,ya as isDisabled,ir as isDisplayNone,Ve as isDisplayNoneInclusive,isEditable as isEditableControl,Bo as isEnabled,xi as isFACE,fi as isInRange,Bn as isInclusiveAncestor,ki as isIndeterminate,$a as isInvalid,ii as isLabelable,ba as isListed,j as isMutable,Nr as isNumericType,Ui as isOptional,Fi as isOutOfRange,Mr as isPlaceholderShown,Jo as isReadOnly,fs as isReadWrite,Xr as isRequired,Vo as isResettable,Ht as isSubmitButton,pi as isSubmittable,ss as isTextControl,I as isTextualType,Sn as isValid,bs as isValidDoctypeName,se as isValidElementLocalName,Wn as isValidNamespacePrefix,xt as isVisibilityHidden,Ai as labeledControl,eo as labelsFor,rr as lastElementChild,Vr as listOfOptions,St as listenerCount,lt as loopTurn,rt as matchMediaText,Ea as matches,wa as mediaEnvironment,Be as nextElementInTree,bt as nextElementSibling,fo as nextInTree,ft as nextSkippingChildren,ws as nodeCache,So as nodeGetTheParent,Xt as nodeLength,Vt as notifyMutationObservers,ge as optionSelected,sn as parseDeclBlock,Cr as parseFragment,Dt as parseMediaQueryList,Es as peekDerivedCache,po as pointerEvents,pt as pointerEventsNone,_a as prefixFlag,br as previousElementSibling,ur as previousInTree,xr as pseudoContent,Ko as querySelector,yi as querySelectorAll,quote,za as registerOwnerSheet,registerTestHooks,mo as removeAllEventListeners,ie as removeAttribute,bo as removeOwnerSheet,Na as replaceData,Za as reportException,resetWindowBetweenFiles,vr as resolveCompat,restoreInterfaces,ra as retarget,mt as reusableElement,hr as serializeChildren,sr as serializeNode,ea as setAdoptedStyleSheets,Jr as setAssignedSlotLookup,la as setAttribute,setCheckedFromUI,dr as setComputedColorMode,je as setEventHandler,setFailureSnapshot,setFilesFromUI,setNodeDescriber,nn as setNotImplementedHandler,setOptionSelectedFromUI,Ar as setTrusted,setUISelection,setUIValue,jo as setUncaughtExceptionHandler,_r as skipIdleTime,cr as skipZeroDelayWait,spanChannel,Pt as splitOnAsciiWhitespace,Ji as splitText,ot as styleElementRemoved,Io as styleElementSheet,kt as styleElementUpdated,Gr as styleSheetsOf,kr as styledDisplay,subscribeTestFailures,supportsSelection,B as supportsSelectionType,Hn as tagId,ar as tagName,testHooks,tracePromise,traceSync,tracing,qr as trackGlobalTimers,Or as treeRoot,dn as uaDisplay,Ja as unregisterOwnerSheet,We as validateAndExtract,D as valueMode,Tr as virtualDate,on as virtualPerformance,_i as windowHooks,M as windowInterfaces,Ao as withNamedProperties};
|
|
1
|
+
import{$c as e,$d as t,$i as n,$l as r,$n as i,$o as a,$r as o,$s as s,$u as c,Aa as ee,Ac as te,Ad as ne,Af as re,Al as ie,Ao as ae,Au as oe,Ba as se,Bc as ce,Bd as le,Bf as ue,Bi as de,Bl as fe,Bo as pe,Br as me,Bu as he,C as ge,Ca as _e,Cc as ve,Cd as ye,Cf as be,Cl as xe,Co as Se,Cu as Ce,Da as we,Dc as Te,Dd as Ee,Df as De,Dl as Oe,Do as ke,Du as Ae,Ea as je,Ec as Me,Ed as Ne,Ef as Pe,El as Fe,Eo as Ie,Eu as Le,Fc as l,Fd as u,Ff as d,Fl as f,Fr as p,Fu as m,Ga as h,Gc as g,Gd as Re,Gi as ze,Gl as Be,Go as Ve,Gr as He,Gs as Ue,Gu as We,Ha as Ge,Hc as Ke,Hd as _,Hi as qe,Hl as Je,Ho as Ye,Hr as Xe,Hu as Ze,Ic as v,Id as Qe,If as $e,Il as y,Io as et,Ir as tt,Iu as nt,Jc as rt,Jd as it,Ji as at,Jl as ot,Jo as st,Jr as ct,Js as lt,Ju as ut,Kc as dt,Kd as ft,Ki as pt,Kl as mt,Ko as ht,Kr as gt,Ks as _t,Ku as vt,L as yt,Lc as bt,Ld as xt,Lf as St,Li as Ct,Ll as wt,Lo as Tt,Lr as Et,Lu as b,Ma as Dt,Mc as x,Md as Ot,Mf as kt,Ml as At,Mo as jt,Mr as Mt,Mu as Nt,Nc as Pt,Nd as Ft,Nf as It,Nl as S,No as Lt,Nr as Rt,Nu as zt,Oc as Bt,Od as Vt,Of as Ht,Ol as Ut,Oo as Wt,Or as Gt,Ou as Kt,Pc as qt,Pd as Jt,Pf as Yt,Pl as Xt,Po as Zt,Pr as Qt,Pu as $t,Qa as en,Qc as tn,Qd as nn,Qi as rn,Ql as an,Qo as on,Qr as sn,Qs as cn,Qu as ln,Rc as un,Rd as dn,Rf as fn,Ri as pn,Rl as C,Ro as mn,Rr as hn,Ru as gn,S as _n,Sc as vn,Sd as yn,Sf as bn,Sl as w,So as xn,Su as Sn,Ta as Cn,Tc as wn,Td as Tn,Tf as En,Tl as Dn,To as On,Tu as kn,Ua as An,Uc as jn,Ud as Mn,Ui as Nn,Ul as Pn,Uo as Fn,Ur as In,Us as T,Uu as Ln,Va as Rn,Vc as zn,Vd as E,Vi as Bn,Vl as Vn,Vo as Hn,Vr as Un,Vu as Wn,Wc as Gn,Wd as Kn,Wi as qn,Wl as Jn,Wo as Yn,Wr as Xn,Ws as Zn,Wu as Qn,X as $n,Xa as er,Xc as tr,Xd as nr,Xi as rr,Xl as ir,Xo as ar,Xr as or,Xu as sr,Yc as cr,Yd as lr,Yi as ur,Yl as dr,Yo as fr,Yr as pr,Ys as mr,Yu as hr,Za as gr,Zc as D,Zd as _r,Zl as vr,Zo as yr,Zr as br,Zs as xr,Zu as Sr,_ as Cr,_a as wr,_c as Tr,_d as Er,_f as Dr,_l as Or,_o as kr,_u as Ar,a as jr,ac as Mr,ad as Nr,af as Pr,ai as Fr,al as Ir,ar as Lr,as as Rr,au as zr,b as Br,ba as O,bc as Vr,bd as Hr,bf as Ur,bl as Wr,bo as Gr,br as Kr,bu as qr,c as Jr,ca as Yr,cc as Xr,cd as Zr,cf as Qr,cl as $r,co as ei,cs as ti,cu as ni,d as ri,da as ii,dc as ai,dd as oi,df as si,dl as ci,do as li,ds as k,du as ui,ea as A,ec as di,ed as fi,ef as pi,ei as mi,el as hi,er as gi,es as _i,et as vi,eu as yi,f as bi,fa as xi,fc as Si,fd as Ci,ff as wi,fi as Ti,fl as Ei,fo as Di,fu as Oi,g as ki,ga as j,gc as Ai,gd as ji,gf as Mi,gl as Ni,go as Pi,gu as Fi,h as Ii,ha as Li,hc as Ri,hd as zi,hf as Bi,hl as Vi,ho as Hi,hu as Ui,i as Wi,ic as Gi,id as Ki,if as qi,ii as Ji,il as Yi,ir as M,is as Xi,iu as Zi,ja as Qi,jc as $i,jd as ea,jf as ta,jl as na,jo as ra,jr as ia,ju as aa,ka as oa,kc as sa,kd as ca,kf as la,kl as ua,ko as da,kr as fa,ku as pa,l as ma,la as ha,lc as ga,ld as _a,lf as va,li as ya,ll as ba,lo as xa,lu as Sa,m as N,ma as Ca,mc as wa,md as Ta,mf as Ea,ml as Da,mo as Oa,mu as ka,n as Aa,nc as ja,nd as Ma,nf as Na,ni as Pa,nl as Fa,nr as P,ns as Ia,nt as F,nu as La,o as Ra,oa as za,oc as Ba,od as Va,of as Ha,oi as Ua,ol as I,oo as Wa,or as Ga,os as Ka,ou as qa,p as Ja,pa as Ya,pc as Xa,pd as Za,pf as Qa,pl as $a,pu as eo,qc as to,qd as no,qi as ro,ql as io,qo as ao,qr as oo,qs as so,qu as co,r as lo,rc as uo,rd as fo,rf as po,ri as mo,rl as ho,rs as go,ru as _o,s as vo,sa as yo,sc as bo,sd as xo,sf as So,si as Co,sl as wo,so as To,ss as Eo,su as Do,ta as Oo,tc as ko,td as Ao,tf as jo,ti as Mo,tl as No,tr as Po,tu as Fo,u as Io,ua as Lo,uc as Ro,ud as L,uf as zo,ui as Bo,ul as Vo,uo as Ho,uu as Uo,v as Wo,va as Go,vc as Ko,vd as qo,vf as Jo,vl as Yo,vo as Xo,vu as Zo,wa as Qo,wc as $o,wd as R,wf as es,wl as ts,wo as ns,wu as rs,x as is,xa as z,xc as as,xd as os,xf as ss,xl as cs,xo as ls,xu as us,y as ds,ya as B,yc as fs,yd as ps,yf as ms,yl as V,yo as hs,yu as gs,zc as _s,zd as vs,zf as ys,zi as bs,zl as xs,zo as Ss,zr as Cs,zu as ws}from"./_chunks/src-u_GjEFAe.js";import{constants as Ts,createContext as Es,runInContext as Ds}from"node:vm";import*as H from"node:diagnostics_channel";let U=null;function targets(){let e=/* @__PURE__ */ new Set,t=M();for(let n in t){let r=t[n];if(r===null||typeof r!=`object`&&typeof r!=`function`)continue;e.add(r);let i=r.prototype;typeof r==`function`&&typeof i==`object`&&i&&e.add(i)}return e.add(P.prototype),[...e]}function snapshot(e){let t=Reflect.ownKeys(e),n=Array(t.length);for(let r=0;r<t.length;r++){let i=t[r];n[r]=isArrayIndex(i)?null:Object.getOwnPropertyDescriptor(e,i)}return{target:e,keys:t,descriptors:n,keySet:null}}let W=null;function captureInterfaceBaseline(){if(U===null){U=[],W=/* @__PURE__ */ new WeakSet;for(let e of targets())U.push(snapshot(e)),W.add(e);ownObjectCreateMaps()}}let Os=null;function ownObjectCreateMaps(){if(U===null)return;let e=Os??=Ds(`(prototypes) => prototypes.map((p) => Object.create(p))`,Es(Ts.DONT_CONTEXTIFY)),t=[Object.prototype];for(let e=0;e<U.length;e++){let n=U[e].target;typeof n!=`function`&&t.push(n)}e(t)}function configurableDescriptor(e){return typeof e==`object`&&e&&e.configurable!==!0?{...e,configurable:!0}:e}function guardInterfaceDefinitions(e){let t=W;if(t===null)return;let n=e.Object,r=e.Reflect,i=n.defineProperty,a=n.defineProperties,o=r.defineProperty,s={defineProperty(e,n,r){return i(e,n,t.has(e)?configurableDescriptor(r):r)},defineProperties(e,n){if(!t.has(e)||typeof n!=`object`||!n)return a(e,n);let r={};for(let e of Reflect.ownKeys(n))Object.getOwnPropertyDescriptor(n,e)?.enumerable&&(r[e]=configurableDescriptor(n[e]));return a(e,r)},reflectDefineProperty(e,n,r){return o(e,n,t.has(e)?configurableDescriptor(r):r)}};Object.defineProperty(s.reflectDefineProperty,"name",{value:`defineProperty`}),Object.defineProperty(n,"defineProperty",{value:s.defineProperty,writable:!0,configurable:!0,enumerable:!1}),Object.defineProperty(n,"defineProperties",{value:s.defineProperties,writable:!0,configurable:!0,enumerable:!1}),Object.defineProperty(r,"defineProperty",{value:s.reflectDefineProperty,writable:!0,configurable:!0,enumerable:!1})}function isArrayIndex(e){if(typeof e!=`string`||e===``||e.length>10)return!1;let t=Number(e);return t>>>0===t&&t!==4294967295&&String(t)===e}function sameDescriptor(e,t){return e.value===t.value&&e.get===t.get&&e.set===t.set&&e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable}function restoreInterfaces(){if(U===null)return 0;let e=0;for(let t=0;t<U.length;t++){let n=U[t],r=n.target,i=Reflect.ownKeys(r);for(let t=0;t<i.length;t++){let a=i[t];a===n.keys[t]||(n.keySet??=new Set(n.keys)).has(a)||isArrayIndex(a)||Reflect.deleteProperty(r,a)&&e++}for(let t=0;t<n.keys.length;t++){let i=n.keys[t],a=n.descriptors[t];if(a===null)continue;let o=Object.getOwnPropertyDescriptor(r,i);if(!(o!==void 0&&sameDescriptor(o,a)))try{Object.defineProperty(r,i,a),e++}catch{}}}return ownObjectCreateMaps(),e}const G=`ctrl-dom:span`,K=typeof H.tracingChannel==`function`?H.tracingChannel(G):null;function spanChannel(){return K}function tracing(){return K!==null&&K.hasSubscribers}function traceSync(e,t,n){let r={op:e,description:t,data:{},async:!1},i=E();return K.traceSync(e=>{try{return n(e)}finally{recordSkipped(e,i)}},r,void 0,r)}function tracePromise(e,t,n){let r={op:e,description:t,data:{},async:!0},i=E();return K.tracePromise(e=>n(e).finally(()=>recordSkipped(e,i)),r,void 0,r)}function recordSkipped(e,t){let n=E()-t;n>0&&(e.data[`clock.skipped_ms`]=Math.round(n))}function describeCall(e,t){let n=`${e}(`;for(let e=0;e<t.length&&(t[e]!==void 0||e!==t.length-1);e++)if(n+=(e>0?`, `:``)+describeValue(t[e],0),n.length>160)return`${n.slice(0,159)}…)`;return`${n})`}function describeValue(e,t){if(typeof e==`string`)return JSON.stringify(e.length>40?`${e.slice(0,39)}…`:e);if(typeof e==`function`)return e.name?`${e.name}()`:`fn`;if(e instanceof RegExp||typeof e!=`object`||!e)return String(e);if(e[y]!==void 0)return describeNode(e);if(Array.isArray(e))return t>0?`[…]`:`[${e.slice(0,3).map(e=>describeValue(e,t+1)).join(`, `)}${e.length>3?`, …`:``}]`;if(t>0)return`{…}`;let n=Object.entries(e).slice(0,4);return n.length===0?`{}`:`{ ${n.map(([e,n])=>`${e}: ${describeValue(n,t+1)}`).join(`, `)} }`}let q=null;function setNodeDescriber(e){q=e}function describeNode(e){let t=e;if(t.nodeType===9)return`document`;if(t.nodeType!==1||typeof t.localName!=`string`)return t.nodeType===3?`#text`:`node`;if(q!==null)try{let t=q(e);if(t)return t}catch{}if(t.localName===`body`||t.localName===`html`)return`<${t.localName}>`;let n=t.getAttribute?.(`aria-label`)||t.textContent?.trim().replace(/\s+/g,` `)||t.getAttribute?.(`placeholder`)||t.getAttribute?.(`name`)||``;return n===``?`<${t.localName}>`:`<${t.localName} ${quote(n)}>`}function quote(e){return JSON.stringify(e.length>40?`${e.slice(0,39)}…`:e)}const J=`sentry-tests:failure`;let Y=null;function setFailureSnapshot(e){Y=e}function subscribeTestFailures(e){let t=H.channel(J),onFailure=t=>{let n=t,r=e();if(r==null||n.document!==r)return;let i=_();if(i!==null&&(n.contexts.clock={skipped_ms:Math.round(i.skippedMs),pending_timers:i.pendingTimers}),Y!==null&&r.body!=null)try{n.attachments.push({filename:`accessibility-snapshot.txt`,contentType:`text/plain`,data:Y(r.body)})}catch{}};return t.subscribe(onFailure),()=>t.unsubscribe(onFailure)}var FileState=class{hooks;url;constructor(){this.hooks=/* @__PURE__ */ new Map,this.url=null}};const X=/* @__PURE__ */ new WeakMap;function stateOf(e){let t=X.get(e);return t===void 0&&X.set(e,t=new FileState),t}function registerTestHooks(e,t){let n=k();if(n===null)return;let r=stateOf(n).hooks;r.set(e,{...r.get(e),...t})}function testHooks(){let e=k(),t=e===null?void 0:X.get(e);return t===void 0?[]:[...t.hooks.values()]}function resetWindowBetweenFiles(e){let t=stateOf(e);for(let e of t.hooks.values())try{e.fileEnd?.()}catch{}vs(),Lr(e);let n=e[L];if(n!==null){for(let e of n)e.clear(e.handle);n.clear()}e[V]=null,e[b]=null,e[w]=null,e[S]=null;let r=e.document;r.getSelection()?.removeAllRanges();let i=r.body;i!==null&&(i.replaceChildren(),removeAttributes(i)),r.documentElement!==null&&removeAttributes(r.documentElement),e.localStorage.clear(),e.sessionStorage.clear(),e[v]=null;let a=t.url??=e.location.href;e.location.href!==a&&e._setURL(new URL(a));let o=e.history;o[I]=[{url:a,state:null}],o[C]=0}function removeAttributes(e){let t=e.getAttributeNames();for(let n=0;n<t.length;n++)e.removeAttribute(t[n])}function implOf(e){return e[y]??e}function isTypingType(e){return B(e)||e===12||e>=7&&e<=11}function isEditable(e){let t=implOf(e);return t.tag===T.input?isTypingType(j(t))&&N(t):t.tag===T.textarea?N(t):tt(t)}function supportsSelection(e){let t=implOf(e);return t.tag===T.textarea||t.tag===T.input&&O(j(t))}function hasUIValue(e){let t=implOf(e);return t.tag===T.textarea||t.tag===T.input&&z(j(t))===0}function getUIValue(e){let t=implOf(e);if(t.tag===T.input){let e=t.node;return e[x].uiValue??e.value}return t.tag===T.textarea?t.node.value:``}function setUIValue(e,t){let n=implOf(e);if(n.tag===T.input){let e=n.node,r=j(n);if(z(r)!==0)return;let i=vi(r,t,n);n.doc[R]++,e[x].value=i,e[x].dirtyValue=!0,e[x].userEdited=!0,e[x].uiValue=i===t?null:t,e[x].badInput=i===``&&t!==``&&r!==5&&!B(r);let a=t.length;e[x].selStart>a&&(e[x].selStart=a),e[x].selEnd>a&&(e[x].selEnd=a)}else if(n.tag===T.textarea){let e=n.node;n.doc[R]++,e[x].value=t,e[x].dirtyValue=!0,e[x].userEdited=!0}}function clearUIValue(e){let t=implOf(e);if(t.tag===T.input){let e=t.node;e[x].uiValue=null,e[x].badInput=!1}}function getUISelection(e){let t=implOf(e).node,n=getUIValue(e).length;return{start:Math.min(t[x].selStart,n),end:Math.min(t[x].selEnd,n),direction:t[x].selDir}}function setUISelection(e,t,n=t,r=`none`){let i=implOf(e);if(i.tag!==T.input&&i.tag!==T.textarea)return;let a=i.node,o=getUIValue(e).length,s=Math.max(0,Math.min(t,n)),c=Math.max(t,n);c>o&&(c=o),s>c&&(s=c),a[x].selStart=s,a[x].selEnd=c,a[x].selDir=r}function setFilesFromUI(e,t){let n=implOf(e);n.tag===T.input&&j(n)===17&&(n.doc[R]++,n.node[x].files=F(t))}function setOptionSelectedFromUI(e,t){let n=implOf(e);if(n.tag!==T.option)return;let r=n.node;r._setSelectedness(t),r[D]=!0;let i=$n(n);if(i!==null){let e=i.node;t&&e._deselectOthers(n),e._updateSelectedContent()}}function setCheckedFromUI(e,t){let n=implOf(e);n.tag===T.input&&n.node._setCheckedness(t,!0)}const ks=P.prototype.getComputedStyle;let Z=null,Q=null,$=null;function getComputedStyleOverride(e){let t=e.doc.defaultView;if(t==null)return null;let n=t.getComputedStyle;if(n===ks||typeof n!=`function`||yt.has(n))return null;if(Q?.deref()===n&&Z?.deref()===t){let e=$.deref();if(e!==void 0)return e}let r=n.bind(t);return Z=new WeakRef(t),Q=new WeakRef(n),$=new WeakRef(r),r}export{s as $_proto__,di as $aboutBase,ko as $active,ja as $assocGen,uo as $attr,Gi as $attributes,Mr as $availableToElementInternals,Ba as $baseFor,bo as $baseOverride,Xr as $baseURL,ga as $baseVersion,Ro as $benign,ai as $block,Si as $blockParsed,Xa as $blockText,wa as $byCtor,Ri as $byName,Ai as $cache,Tr as $callback,Ko as $childNodes,fs as $childWindows,Vr as $children,as as $classList,vn as $clipboard,ve as $clonable,$o as $closed,wn as $coll,Me as $compiled,Te as $compiledFor,Bt as $condition,sa as $constructed,te as $constructingEntryList,$i as $contentType,x as $control,Pt as $controlsCache,qt as $controlsDoc,l as $controlsVersion,v as $cookieJar,bt as $cookies,un as $css,_s as $current,ce as $customElements,zn as $customValidity,Ke as $cx,jn as $data,Gn as $dataset,g as $declarative,dt as $defaultNamespace,to as $defaultValueOverride,rt as $delegatesFocus,cr as $derived,tr as $devicePixelRatio,D as $dirtiness,tn as $disabled,e as $disallowModification,hi as $doc,No as $dropEffect,Fa as $ec,ho as $effectAllowed,Yi as $el,Ir as $elements,I as $entries,wo as $eo,$r as $error,ba as $file,Vo as $files,ci as $fill,Ei as $filter,$a as $firingSubmissionEvents,Da as $focused,Vi as $forLabels,Ni as $form,Or as $formAttrSeen,Yo as $forms,V as $frameCallbacks,Wr as $frameElement,cs as $frameId,w as $frameTask,xe as $frameTime,ts as $generation,Dn as $globalObject,Fe as $hasTransients,Oe as $height,Ut as $history,ua as $home,ie as $host,na as $href,At as $id,S as $idleCallbacks,Xt as $idleId,f as $ids,y as $impl,wt as $implementation,C as $index,xs as $indexed,fe as $inflight,Vn as $info,Je as $innerHeight,Pn as $innerWidth,Jn as $isHTML,Be as $items,mt as $keyText,io as $kind,ot as $labels,dr as $layerName,ir as $list,vr as $listeners,an as $localStorage,r as $location,yi as $lockedForReset,Fo as $matches,La as $media,_o as $mediaQueryLists,Zi as $mode,zr as $name,qa as $names,Do as $namespaces,ni as $navigator,Sa as $nodes,Uo as $onchange,ui as $options,Oi as $owner,eo as $ownerNode,ka as $ownerRule,Ui as $parent,Fi as $parentRule,Ar as $parentWindow,Zo as $pastNames,gs as $pointerBeforeReference,qr as $prefix,us as $prelude,Sn as $presentationStyle,Ce as $pseudo,rs as $queries,kn as $radios,Le as $ranges,Ae as $readonly,Kt as $readyState,pa as $rebuildVersion,oe as $record,aa as $records,Nt as $reference,zt as $result,$t as $root,m as $rules,nt as $running,b as $runningFrame,gn as $sc,ws as $screen,he as $scrollRestoration,Wn as $scrollX,Ze as $scrollY,Ln as $selSet,Qn as $selectedOptions,We as $selectedness,vt as $selection,co as $selector,ut as $serializable,hr as $sessionStorage,sr as $settled,Sr as $shadowRoot,ln as $shed,c as $sheet,fi as $sheets,Ao as $slotAssignment,Ma as $so,fo as $states,Ki as $style,Nr as $styleVersion,Va as $supportsText,xo as $systemId,Zr as $target,_a as $targets,L as $tasks,oi as $timers,Ci as $title,Za as $treeVersion,Ta as $type,zi as $types,ji as $updating,Er as $updatingSelectedContent,qo as $uri,ps as $url,Hr as $userActivation,os as $userValidity,yn as $validity,ye as $value,R as $version,Tn as $visualViewport,Ne as $w,Ee as $whatToShow,Vt as $whenDefined,ca as $width,ne as $window,ea as $writeBuffer,Ot as $x,Ft as $xhr,Jt as $y,u as $z,_r as ATTRIBUTE_NODE,a as AttrRecord,nn as CDATA_SECTION_NODE,t as COMMENT_NODE,qn as COMPAT,ze as COMPAT_PROFILES,pt as DEFAULT_COMPAT,pi as DOCUMENT_FRAGMENT_NODE,jo as DOCUMENT_NODE,Na as DOCUMENT_POSITION_CONTAINED_BY,po as DOCUMENT_POSITION_CONTAINS,qi as DOCUMENT_POSITION_DISCONNECTED,Pr as DOCUMENT_POSITION_FOLLOWING,Ha as DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC,So as DOCUMENT_POSITION_PRECEDING,Qr as DOCUMENT_TYPE_NODE,rn as DeclBlock,va as ELEMENT_NODE,zo as ENTITY_NODE,si as ENTITY_REFERENCE_NODE,xr as EventState,J as FAILURE_CHANNEL,wi as F_ADOPT_HOOK,Qa as F_ARIA_ATTRS,Ea as F_ATTR_HOOK,Bi as F_CE_CUSTOM,Mi as F_CHILDREN_HOOK,Dr as F_CHILD_LIST,Jo as F_CONNECTED,ms as F_CONNECT_HOOK,Ur as F_CONTENTEDITABLE_ATTR,ss as F_CUSTOM,bn as F_DATA_ATTRS,be as F_FACE,es as F_FORM_ATTR,En as F_HAS_SHADOW,Pe as F_HAS_STYLE_ATTR,De as F_HTML,Ht as F_INERT_ATTR,la as F_MO_REGISTERED,re as F_SHADOW_ROOT,ta as F_TABINDEX_ATTR,_e as GLOBAL_EVENT_HANDLER_EVENTS,Wa as HTMLCollection,kt as HTML_NS,Li as INPUT_TYPE_NAMES,It as MATHML_NS,Yt as NOTATION_NODE,bs as NodeCache,_i as NodeImpl,et as NodeList,d as PROCESSING_INSTRUCTION_NODE,G as SPAN_CHANNEL,$e as SVG_NS,T,St as TEXT_NODE,Qe as VirtualClock,xt as VirtualTimeout,Qo as WINDOW_EVENT_HANDLER_EVENTS,fn as XLINK_NS,ys as XMLNS_NS,ue as XML_NS,mi as adoptedStyleSheetsOf,Se as ariaAttr,ns as asciiLowercase,kr as assignManually,Xo as assignedElements,hs as assignedNodes,Gr as assignedSlot,oa as attachShadowRoot,On as attr,i as attrAssociatedElement,gi as attrAssociatedElements,h as attrNode,dn as canSkipZeroDelayWait,captureInterfaceBaseline,Hn as childAt,Ie as classTokens,clearUIValue,le as clockNow,_ as clockStats,xa as closest,Gt as compareBoundaryPoints,ro as compatExposes,me as computedDisplay,Un as computedValue,Xe as computedVisibility,ia as constructEntryList,Aa as controlValue,Kr as createEvent,F as createFileList,Mo as createLinkSheet,In as currentStyleVersion,Mt as defaultButton,at as deferredCompatMembers,Ss as derivedCache,describeCall,describeNode,Ia as dispatch,Bn as dispatchTrusted,To as ensureCollectionIndexGetters,Tt as ensureIndexGetters,ya as evaluateMediaQueryList,A as faceState,ls as findFlattenedSlottables,xn as findSlot,qe as fireAnEvent,Nn as fireSyntheticPointerEvent,Ye as firstElementChild,Mn as foreignImmediatesPending,yo as formOwner,ke as getAttribute,Cs as getComputedStyle,getComputedStyleOverride,go as getCurrentEvent,ee as getElementsByClassName,Qi as getElementsByTagName,Dt as getElementsByTagNameNS,Cn as getEventHandler,getUISelection,getUIValue,guardInterfaceDefinitions,Wt as hasAttr,Xn as hasAuthorStyles,Po as hasExplicitAttrElements,_t as hasListeners,lo as hasReadonlyAttribute,hasUIValue,ur as hiddenGlobals,Rt as implicitSubmission,mn as indexGetterTable,Fn as indexOf,Wi as inputChecked,jr as inputIndeterminate,j as inputType,wr as inputTypeFromAttr,Oa as inspectNode,Kn as installClock,je as installEventHandlers,Yr as isActuallyDisabled,da as isAsciiWhitespace,Ra as isAutofilled,vo as isChecked,Re as isClockTimer,Jr as isDefault,ma as isDisabled,He as isDisplayNone,gt as isDisplayNoneInclusive,isEditable as isEditableControl,Io as isEnabled,Oo as isFACE,ri as isInRange,Yn as isInclusiveAncestor,bi as isIndeterminate,Ja as isInvalid,ha as isLabelable,Lo as isListed,N as isMutable,Go as isNumericType,Ii as isOptional,ki as isOutOfRange,Cr as isPlaceholderShown,Wo as isReadOnly,ds as isReadWrite,Br as isRequired,ii as isResettable,Qt as isSubmitButton,xi as isSubmittable,is as isTextControl,B as isTextualType,_n as isValid,se as isValidDoctypeName,Rn as isValidElementLocalName,Ge as isValidNamespacePrefix,oo as isVisibilityHidden,Ya as labeledControl,Ca as labelsFor,Ve as lastElementChild,za as listOfOptions,so as listenerCount,ft as loopTurn,Ct as matchMediaText,Ho as matches,Bo as mediaEnvironment,ht as nextElementInTree,ao as nextElementSibling,st as nextInTree,fr as nextSkippingChildren,de as nodeCache,Xi as nodeGetTheParent,fa as nodeLength,Zt as notifyMutationObservers,ge as optionSelected,n as parseDeclBlock,en as parseFragment,pn as parseMediaQueryList,pe as peekDerivedCache,ct as pointerEvents,pr as pointerEventsNone,ae as prefixFlag,ar as previousElementSibling,yr as previousInTree,or as pseudoContent,li as querySelector,Di as querySelectorAll,quote,mo as registerOwnerSheet,registerTestHooks,lt as removeAllEventListeners,ra as removeAttribute,Ji as removeOwnerSheet,Hi as replaceData,Eo as reportException,resetWindowBetweenFiles,rr as resolveCompat,restoreInterfaces,Rr as retarget,mr as reusableElement,er as serializeChildren,gr as serializeNode,Fr as setAdoptedStyleSheets,Ka as setAssignedSlotLookup,jt as setAttribute,setCheckedFromUI,br as setComputedColorMode,we as setEventHandler,setFailureSnapshot,setFilesFromUI,setNodeDescriber,p as setNotImplementedHandler,setOptionSelectedFromUI,cn as setTrusted,setUISelection,setUIValue,ti as setUncaughtExceptionHandler,no as skipIdleTime,it as skipZeroDelayWait,spanChannel,Lt as splitOnAsciiWhitespace,Pi as splitText,Et as styleElementRemoved,Pa as styleElementSheet,hn as styleElementUpdated,Ua as styleSheetsOf,sn as styledDisplay,subscribeTestFailures,supportsSelection,O as supportsSelectionType,Zn as tagId,Ue as tagName,testHooks,tracePromise,traceSync,tracing,Ga as trackGlobalTimers,on as treeRoot,o as uaDisplay,Co as unregisterOwnerSheet,An as validateAndExtract,z as valueMode,lr as virtualDate,nr as virtualPerformance,Ti as windowHooks,M as windowInterfaces,ei as withNamedProperties};
|
|
@@ -33,6 +33,8 @@ export { MediaQueryListEvent } from "./window/events.js";
|
|
|
33
33
|
export { DOMParser, XMLSerializer } from "./window/fallbacks.js";
|
|
34
34
|
export { ResizeObserver, IntersectionObserver } from "./window/observers.js";
|
|
35
35
|
export { DOMPointReadOnly, DOMPoint, DOMRectReadOnly, DOMRect, DOMRectList, DOMMatrixReadOnly, DOMMatrix, type DOMRectInit, } from "./window/geometry.js";
|
|
36
|
+
export { DOMMatrix as WebKitCSSMatrix } from "./window/geometry.js";
|
|
37
|
+
export { DOMQuad, type DOMQuadInit } from "./window/quad.js";
|
|
36
38
|
export { Event } from "./events/Event.js";
|
|
37
39
|
export { UIEvent, FocusEvent, MouseEvent, PointerEvent, WheelEvent, DragEvent, KeyboardEvent, InputEvent, CompositionEvent, TextEvent, Touch, TouchList, TouchEvent, ClipboardEvent, } from "./events/UIEvents.js";
|
|
38
40
|
export { CustomEvent, ErrorEvent, PromiseRejectionEvent, MessageEvent, ProgressEvent, AnimationEvent, TransitionEvent, PopStateEvent, HashChangeEvent, PageTransitionEvent, StorageEvent, SubmitEvent, FormDataEvent, ToggleEvent, BeforeUnloadEvent, CloseEvent, } from "./events/events.js";
|
package/dist/dom/types/keys.d.ts
CHANGED
|
@@ -101,7 +101,6 @@ export declare const $inflight: unique symbol;
|
|
|
101
101
|
export declare const $info: unique symbol;
|
|
102
102
|
export declare const $innerHeight: unique symbol;
|
|
103
103
|
export declare const $innerWidth: unique symbol;
|
|
104
|
-
export declare const $is2D: unique symbol;
|
|
105
104
|
export declare const $isHTML: unique symbol;
|
|
106
105
|
export declare const $items: unique symbol;
|
|
107
106
|
export declare const $keyText: unique symbol;
|
|
@@ -113,7 +112,6 @@ export declare const $listeners: unique symbol;
|
|
|
113
112
|
export declare const $localStorage: unique symbol;
|
|
114
113
|
export declare const $location: unique symbol;
|
|
115
114
|
export declare const $lockedForReset: unique symbol;
|
|
116
|
-
export declare const $m: unique symbol;
|
|
117
115
|
export declare const $matches: unique symbol;
|
|
118
116
|
export declare const $media: unique symbol;
|
|
119
117
|
export declare const $mediaQueryLists: unique symbol;
|
|
@@ -145,7 +143,6 @@ export declare const $readyState: unique symbol;
|
|
|
145
143
|
export declare const $rebuildVersion: unique symbol;
|
|
146
144
|
export declare const $record: unique symbol;
|
|
147
145
|
export declare const $records: unique symbol;
|
|
148
|
-
export declare const $rects: unique symbol;
|
|
149
146
|
export declare const $reference: unique symbol;
|
|
150
147
|
export declare const $result: unique symbol;
|
|
151
148
|
export declare const $root: unique symbol;
|
|
@@ -145,6 +145,15 @@ export declare class Document extends Node {
|
|
|
145
145
|
createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilterArg): TreeWalker;
|
|
146
146
|
/** https://dom.spec.whatwg.org/#dom-document-createnodeiterator */
|
|
147
147
|
createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilterArg): NodeIterator;
|
|
148
|
+
/**
|
|
149
|
+
* https://drafts.csswg.org/cssom-view/#dom-document-elementfrompoint — the DocumentOrShadowRoot
|
|
150
|
+
* hit test (ShadowRoot.ts has the same pair). With no layout there is no box at any point, so
|
|
151
|
+
* the result is null, as for a point outside the viewport. jsdom has neither method
|
|
152
|
+
* (window/compat.ts).
|
|
153
|
+
*/
|
|
154
|
+
elementFromPoint(_x: number, _y: number): Element | null;
|
|
155
|
+
/** https://drafts.csswg.org/cssom-view/#dom-document-elementsfrompoint — an empty sequence, as above. */
|
|
156
|
+
elementsFromPoint(_x: number, _y: number): Element[];
|
|
148
157
|
/** https://w3c.github.io/selection-api/#dom-document-getselection */
|
|
149
158
|
getSelection(): Selection | null;
|
|
150
159
|
/**
|
|
@@ -3,6 +3,18 @@ type Ctor = {
|
|
|
3
3
|
};
|
|
4
4
|
/** Make the public members of each interface prototype enumerable (one-time, at module load). */
|
|
5
5
|
export declare function exposeMembers(...ctors: Ctor[]): void;
|
|
6
|
+
/**
|
|
7
|
+
* Give an interface object what class syntax gets wrong (one-time, at module load):
|
|
8
|
+
* - @@toStringTag on the prototype, so `Object.prototype.toString` gives `[object Name]`
|
|
9
|
+
* (https://webidl.spec.whatwg.org/#dfn-class-string);
|
|
10
|
+
* - each operation's and the constructor's `length`: the number of required arguments
|
|
11
|
+
* (https://webidl.spec.whatwg.org/#es-operations, https://webidl.spec.whatwg.org/#es-interface-call),
|
|
12
|
+
* where TypeScript `x?: T` parameters would count. `required` maps operation names (and
|
|
13
|
+
* "constructor") to their required-argument count; every other operation gets 0.
|
|
14
|
+
*/
|
|
15
|
+
export declare function defineInterfaceShape(ctor: Ctor & {
|
|
16
|
+
name: string;
|
|
17
|
+
}, required?: Readonly<Record<string, number>>): void;
|
|
6
18
|
/**
|
|
7
19
|
* Make an instance's internal own fields (`_`-prefixed or symbol-keyed, see keys.ts)
|
|
8
20
|
* non-enumerable, so spreads and Jest's symbol-aware equality skip them too. Call at the end of
|
|
@@ -4,7 +4,6 @@ export interface DOMPointInit {
|
|
|
4
4
|
z?: number;
|
|
5
5
|
w?: number;
|
|
6
6
|
}
|
|
7
|
-
import { $is2D, $m, $rects } from "../keys.js";
|
|
8
7
|
export declare class DOMPointReadOnly {
|
|
9
8
|
#private;
|
|
10
9
|
constructor(x?: number, y?: number, z?: number, w?: number);
|
|
@@ -13,7 +12,8 @@ export declare class DOMPointReadOnly {
|
|
|
13
12
|
get y(): number;
|
|
14
13
|
get z(): number;
|
|
15
14
|
get w(): number;
|
|
16
|
-
|
|
15
|
+
/** https://drafts.csswg.org/geometry/#dom-dompointreadonly-matrixtransform */
|
|
16
|
+
matrixTransform(matrix?: DOMMatrixInit): DOMPoint;
|
|
17
17
|
toJSON(): Required<DOMPointInit>;
|
|
18
18
|
}
|
|
19
19
|
export declare class DOMPoint extends DOMPointReadOnly {
|
|
@@ -60,21 +60,57 @@ export declare class DOMRect extends DOMRectReadOnly {
|
|
|
60
60
|
}
|
|
61
61
|
/** https://drafts.fxtf.org/geometry/#domrectlist */
|
|
62
62
|
export declare class DOMRectList {
|
|
63
|
-
|
|
63
|
+
#private;
|
|
64
64
|
[index: number]: DOMRect;
|
|
65
65
|
constructor(rects?: DOMRect[]);
|
|
66
66
|
get length(): number;
|
|
67
|
+
/** https://drafts.csswg.org/geometry/#dom-domrectlist-item */
|
|
67
68
|
item(index: number): DOMRect | null;
|
|
68
69
|
[Symbol.iterator](): IterableIterator<DOMRect>;
|
|
69
70
|
}
|
|
70
|
-
/** https://drafts.
|
|
71
|
+
/** https://drafts.csswg.org/geometry/#dictdef-dommatrix2dinit */
|
|
72
|
+
export interface DOMMatrix2DInit {
|
|
73
|
+
a?: number;
|
|
74
|
+
b?: number;
|
|
75
|
+
c?: number;
|
|
76
|
+
d?: number;
|
|
77
|
+
e?: number;
|
|
78
|
+
f?: number;
|
|
79
|
+
m11?: number;
|
|
80
|
+
m12?: number;
|
|
81
|
+
m21?: number;
|
|
82
|
+
m22?: number;
|
|
83
|
+
m41?: number;
|
|
84
|
+
m42?: number;
|
|
85
|
+
}
|
|
86
|
+
/** https://drafts.csswg.org/geometry/#dictdef-dommatrixinit */
|
|
87
|
+
export interface DOMMatrixInit extends DOMMatrix2DInit {
|
|
88
|
+
m13?: number;
|
|
89
|
+
m14?: number;
|
|
90
|
+
m23?: number;
|
|
91
|
+
m24?: number;
|
|
92
|
+
m31?: number;
|
|
93
|
+
m32?: number;
|
|
94
|
+
m33?: number;
|
|
95
|
+
m34?: number;
|
|
96
|
+
m43?: number;
|
|
97
|
+
m44?: number;
|
|
98
|
+
is2D?: boolean;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* https://drafts.csswg.org/geometry/#dommatrixreadonly — storage is column-major m11..m44.
|
|
102
|
+
* The non-mutating operations copy the matrix and run the matching *Self algorithm on the copy.
|
|
103
|
+
*/
|
|
71
104
|
export declare class DOMMatrixReadOnly {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
constructor(init?: string | number
|
|
75
|
-
|
|
76
|
-
static
|
|
105
|
+
#private;
|
|
106
|
+
/** https://drafts.csswg.org/geometry/#dom-dommatrixreadonly-dommatrixreadonly */
|
|
107
|
+
constructor(init?: string | ArrayLike<number>);
|
|
108
|
+
/** https://drafts.csswg.org/geometry/#dom-dommatrixreadonly-frommatrix */
|
|
109
|
+
static fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;
|
|
110
|
+
/** https://drafts.csswg.org/geometry/#dom-dommatrixreadonly-fromfloat32array */
|
|
77
111
|
static fromFloat32Array(array: Float32Array): DOMMatrixReadOnly;
|
|
112
|
+
/** https://drafts.csswg.org/geometry/#dom-dommatrixreadonly-fromfloat64array */
|
|
113
|
+
static fromFloat64Array(array: Float64Array): DOMMatrixReadOnly;
|
|
78
114
|
get a(): number;
|
|
79
115
|
get b(): number;
|
|
80
116
|
get c(): number;
|
|
@@ -97,21 +133,53 @@ export declare class DOMMatrixReadOnly {
|
|
|
97
133
|
get m42(): number;
|
|
98
134
|
get m43(): number;
|
|
99
135
|
get m44(): number;
|
|
136
|
+
/** https://drafts.csswg.org/geometry/#dom-dommatrixreadonly-is2d */
|
|
100
137
|
get is2D(): boolean;
|
|
138
|
+
/** https://drafts.csswg.org/geometry/#dom-dommatrixreadonly-isidentity */
|
|
101
139
|
get isIdentity(): boolean;
|
|
102
|
-
|
|
140
|
+
/** https://drafts.csswg.org/geometry/#dom-dommatrixreadonly-translate */
|
|
103
141
|
translate(tx?: number, ty?: number, tz?: number): DOMMatrix;
|
|
104
|
-
scale
|
|
105
|
-
|
|
142
|
+
/** https://drafts.csswg.org/geometry/#dom-dommatrixreadonly-scale */
|
|
143
|
+
scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
|
|
144
|
+
/** https://drafts.csswg.org/geometry/#dom-dommatrixreadonly-scalenonuniform */
|
|
145
|
+
scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;
|
|
146
|
+
/** https://drafts.csswg.org/geometry/#dom-dommatrixreadonly-scale3d */
|
|
147
|
+
scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
|
|
148
|
+
/** https://drafts.csswg.org/geometry/#dom-dommatrixreadonly-rotate */
|
|
149
|
+
rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
|
|
150
|
+
/** https://drafts.csswg.org/geometry/#dom-dommatrixreadonly-rotatefromvector */
|
|
151
|
+
rotateFromVector(x?: number, y?: number): DOMMatrix;
|
|
152
|
+
/** https://drafts.csswg.org/geometry/#dom-dommatrixreadonly-rotateaxisangle */
|
|
153
|
+
rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
|
|
154
|
+
/** https://drafts.csswg.org/geometry/#dom-dommatrixreadonly-skewx */
|
|
155
|
+
skewX(sx?: number): DOMMatrix;
|
|
156
|
+
/** https://drafts.csswg.org/geometry/#dom-dommatrixreadonly-skewy */
|
|
157
|
+
skewY(sy?: number): DOMMatrix;
|
|
158
|
+
/** https://drafts.csswg.org/geometry/#dom-dommatrixreadonly-multiply */
|
|
159
|
+
multiply(other?: DOMMatrixInit): DOMMatrix;
|
|
160
|
+
/** https://drafts.csswg.org/geometry/#dom-dommatrixreadonly-flipx */
|
|
161
|
+
flipX(): DOMMatrix;
|
|
162
|
+
/** https://drafts.csswg.org/geometry/#dom-dommatrixreadonly-flipy */
|
|
163
|
+
flipY(): DOMMatrix;
|
|
164
|
+
/** https://drafts.csswg.org/geometry/#dom-dommatrixreadonly-inverse */
|
|
106
165
|
inverse(): DOMMatrix;
|
|
166
|
+
/** https://drafts.csswg.org/geometry/#dom-dommatrixreadonly-transformpoint */
|
|
107
167
|
transformPoint(point?: DOMPointInit): DOMPoint;
|
|
108
|
-
|
|
168
|
+
/** https://drafts.csswg.org/geometry/#dom-dommatrixreadonly-tofloat32array */
|
|
109
169
|
toFloat32Array(): Float32Array;
|
|
170
|
+
/** https://drafts.csswg.org/geometry/#dom-dommatrixreadonly-tofloat64array */
|
|
171
|
+
toFloat64Array(): Float64Array;
|
|
172
|
+
/** https://drafts.csswg.org/geometry/#dom-dommatrixreadonly-tojson */
|
|
110
173
|
toJSON(): Record<string, number | boolean>;
|
|
174
|
+
/** https://drafts.csswg.org/geometry/#dommatrixreadonly-stringification-behavior */
|
|
111
175
|
toString(): string;
|
|
112
176
|
}
|
|
177
|
+
/** https://drafts.csswg.org/geometry/#dommatrix */
|
|
113
178
|
export declare class DOMMatrix extends DOMMatrixReadOnly {
|
|
114
|
-
|
|
179
|
+
/** https://drafts.csswg.org/geometry/#dom-dommatrix-frommatrix */
|
|
180
|
+
static fromMatrix(other?: DOMMatrixInit): DOMMatrix;
|
|
181
|
+
static fromFloat32Array(array: Float32Array): DOMMatrix;
|
|
182
|
+
static fromFloat64Array(array: Float64Array): DOMMatrix;
|
|
115
183
|
get a(): number;
|
|
116
184
|
set a(v: number);
|
|
117
185
|
get b(): number;
|
|
@@ -124,4 +192,60 @@ export declare class DOMMatrix extends DOMMatrixReadOnly {
|
|
|
124
192
|
set e(v: number);
|
|
125
193
|
get f(): number;
|
|
126
194
|
set f(v: number);
|
|
195
|
+
get m11(): number;
|
|
196
|
+
set m11(v: number);
|
|
197
|
+
get m12(): number;
|
|
198
|
+
set m12(v: number);
|
|
199
|
+
get m13(): number;
|
|
200
|
+
set m13(v: number);
|
|
201
|
+
get m14(): number;
|
|
202
|
+
set m14(v: number);
|
|
203
|
+
get m21(): number;
|
|
204
|
+
set m21(v: number);
|
|
205
|
+
get m22(): number;
|
|
206
|
+
set m22(v: number);
|
|
207
|
+
get m23(): number;
|
|
208
|
+
set m23(v: number);
|
|
209
|
+
get m24(): number;
|
|
210
|
+
set m24(v: number);
|
|
211
|
+
get m31(): number;
|
|
212
|
+
set m31(v: number);
|
|
213
|
+
get m32(): number;
|
|
214
|
+
set m32(v: number);
|
|
215
|
+
get m33(): number;
|
|
216
|
+
set m33(v: number);
|
|
217
|
+
get m34(): number;
|
|
218
|
+
set m34(v: number);
|
|
219
|
+
get m41(): number;
|
|
220
|
+
set m41(v: number);
|
|
221
|
+
get m42(): number;
|
|
222
|
+
set m42(v: number);
|
|
223
|
+
get m43(): number;
|
|
224
|
+
set m43(v: number);
|
|
225
|
+
get m44(): number;
|
|
226
|
+
set m44(v: number);
|
|
227
|
+
/** https://drafts.csswg.org/geometry/#dom-dommatrix-multiplyself */
|
|
228
|
+
multiplySelf(other?: DOMMatrixInit): DOMMatrix;
|
|
229
|
+
/** https://drafts.csswg.org/geometry/#dom-dommatrix-premultiplyself */
|
|
230
|
+
preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;
|
|
231
|
+
/** https://drafts.csswg.org/geometry/#dom-dommatrix-translateself */
|
|
232
|
+
translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix;
|
|
233
|
+
/** https://drafts.csswg.org/geometry/#dom-dommatrix-scaleself */
|
|
234
|
+
scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
|
|
235
|
+
/** https://drafts.csswg.org/geometry/#dom-dommatrix-scale3dself */
|
|
236
|
+
scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
|
|
237
|
+
/** https://drafts.csswg.org/geometry/#dom-dommatrix-rotateself */
|
|
238
|
+
rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
|
|
239
|
+
/** https://drafts.csswg.org/geometry/#dom-dommatrix-rotatefromvectorself */
|
|
240
|
+
rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;
|
|
241
|
+
/** https://drafts.csswg.org/geometry/#dom-dommatrix-rotateaxisangleself */
|
|
242
|
+
rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
|
|
243
|
+
/** https://drafts.csswg.org/geometry/#dom-dommatrix-skewxself */
|
|
244
|
+
skewXSelf(sx?: number): DOMMatrix;
|
|
245
|
+
/** https://drafts.csswg.org/geometry/#dom-dommatrix-skewyself */
|
|
246
|
+
skewYSelf(sy?: number): DOMMatrix;
|
|
247
|
+
/** https://drafts.csswg.org/geometry/#dom-dommatrix-invertself */
|
|
248
|
+
invertSelf(): DOMMatrix;
|
|
249
|
+
/** https://drafts.csswg.org/geometry/#dom-dommatrix-setmatrixvalue */
|
|
250
|
+
setMatrixValue(transformList: string): DOMMatrix;
|
|
127
251
|
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { DOMPoint, DOMRect, type DOMPointInit, type DOMRectInit } from "./geometry.js";
|
|
2
|
+
/** https://drafts.csswg.org/geometry/#dictdef-domquadinit */
|
|
3
|
+
export interface DOMQuadInit {
|
|
4
|
+
p1?: DOMPointInit;
|
|
5
|
+
p2?: DOMPointInit;
|
|
6
|
+
p3?: DOMPointInit;
|
|
7
|
+
p4?: DOMPointInit;
|
|
8
|
+
}
|
|
9
|
+
/** https://drafts.csswg.org/geometry/#domquad */
|
|
10
|
+
export declare class DOMQuad {
|
|
11
|
+
#private;
|
|
12
|
+
/** https://drafts.csswg.org/geometry/#dom-domquad-domquad */
|
|
13
|
+
constructor(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit);
|
|
14
|
+
/** https://drafts.csswg.org/geometry/#dom-domquad-fromrect */
|
|
15
|
+
static fromRect(other?: DOMRectInit): DOMQuad;
|
|
16
|
+
/** https://drafts.csswg.org/geometry/#dom-domquad-fromquad */
|
|
17
|
+
static fromQuad(other?: DOMQuadInit): DOMQuad;
|
|
18
|
+
/** https://drafts.csswg.org/geometry/#dom-domquad-p1 — [SameObject]. */
|
|
19
|
+
get p1(): DOMPoint;
|
|
20
|
+
get p2(): DOMPoint;
|
|
21
|
+
get p3(): DOMPoint;
|
|
22
|
+
get p4(): DOMPoint;
|
|
23
|
+
/**
|
|
24
|
+
* https://drafts.csswg.org/geometry/#dom-domquad-getbounds — the NaN-safe minimum and maximum
|
|
25
|
+
* of the x and y coordinates: any NaN makes that edge NaN, which Math.min/max already do.
|
|
26
|
+
*/
|
|
27
|
+
getBounds(): DOMRect;
|
|
28
|
+
/** https://webidl.spec.whatwg.org/#default-tojson-steps — each point via its own toJSON. */
|
|
29
|
+
toJSON(): {
|
|
30
|
+
p1: Required<DOMPointInit>;
|
|
31
|
+
p2: Required<DOMPointInit>;
|
|
32
|
+
p3: Required<DOMPointInit>;
|
|
33
|
+
p4: Required<DOMPointInit>;
|
|
34
|
+
};
|
|
35
|
+
}
|
package/package.json
CHANGED