@ctrl/dom 0.3.13 → 0.4.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.
Files changed (81) hide show
  1. package/dist/aria/_chunks/aria-query.generated-B6BAyxT7.js +4 -0
  2. package/dist/aria/_chunks/aria-query.generated-DK1XMP7F.cjs +4 -0
  3. package/dist/aria/index.cjs +1 -1
  4. package/dist/aria/index.js +1 -1
  5. package/dist/aria/internal.cjs +1 -1
  6. package/dist/aria/internal.js +1 -1
  7. package/dist/aria/types/data/aria-query.generated.d.ts +1 -1
  8. package/dist/bridge/internal.js +1 -1
  9. package/dist/dom/_chunks/src-BISULkzm.js +50 -0
  10. package/dist/dom/index.js +1 -1
  11. package/dist/dom/internal.js +1 -1
  12. package/dist/dom/types/collections/iterator.d.ts +9 -0
  13. package/dist/dom/types/css/data/properties.d.ts +1 -1
  14. package/dist/dom/types/css/tokenizer.d.ts +8 -1
  15. package/dist/dom/types/css/values.d.ts +2 -2
  16. package/dist/dom/types/css/view.d.ts +0 -8
  17. package/dist/dom/types/events/Event.d.ts +13 -1
  18. package/dist/dom/types/events/handlers.d.ts +2 -0
  19. package/dist/dom/types/html/HTMLElement.d.ts +7 -5
  20. package/dist/dom/types/html/aria-reflection.d.ts +5 -0
  21. package/dist/dom/types/html/custom-elements.d.ts +0 -1
  22. package/dist/dom/types/html/elements.d.ts +0 -4
  23. package/dist/dom/types/html/forms/HTMLButtonElement.d.ts +2 -9
  24. package/dist/dom/types/html/forms/HTMLFieldSetElement.d.ts +0 -4
  25. package/dist/dom/types/html/forms/HTMLInputElement.d.ts +11 -30
  26. package/dist/dom/types/html/forms/HTMLOutputElement.d.ts +4 -13
  27. package/dist/dom/types/html/forms/HTMLSelectElement.d.ts +2 -3
  28. package/dist/dom/types/html/forms/HTMLTextAreaElement.d.ts +11 -11
  29. package/dist/dom/types/html/forms/collections.d.ts +5 -0
  30. package/dist/dom/types/html/forms/common.d.ts +7 -0
  31. package/dist/dom/types/html/forms/selection.d.ts +43 -0
  32. package/dist/dom/types/html/forms/validation.d.ts +7 -2
  33. package/dist/dom/types/html/shared.d.ts +4 -0
  34. package/dist/dom/types/html/svg-types.d.ts +1 -1
  35. package/dist/dom/types/internal.d.ts +2 -1
  36. package/dist/dom/types/nodes/Document.d.ts +1 -1
  37. package/dist/dom/types/nodes/Element.d.ts +16 -20
  38. package/dist/dom/types/nodes/Node.d.ts +1 -1
  39. package/dist/dom/types/nodes/attributes.d.ts +2 -0
  40. package/dist/dom/types/nodes/tree.d.ts +1 -1
  41. package/dist/dom/types/parser/entities-data.d.ts +3 -3
  42. package/dist/dom/types/parser/tokenizer.d.ts +1 -0
  43. package/dist/dom/types/parser/treebuilder.d.ts +7 -2
  44. package/dist/dom/types/selectors/parser.d.ts +0 -63
  45. package/dist/dom/types/serializer/index.d.ts +4 -1
  46. package/dist/dom/types/traversal/Range.d.ts +3 -0
  47. package/dist/dom/types/window/Window.d.ts +2 -2
  48. package/dist/dom/types/window/clock.d.ts +6 -2
  49. package/dist/dom/types/window/fallbacks.d.ts +0 -8
  50. package/dist/dom/types/window/hooks.d.ts +1 -2
  51. package/dist/dom/types/window/interfaces.d.ts +0 -2
  52. package/dist/dom/types/window/media.d.ts +1 -6
  53. package/dist/dom/types/window/xhr.d.ts +4 -0
  54. package/dist/jest-dom/_chunks/{matchers-DGsBvtWC.js → matchers-D7d49HIF.js} +7 -7
  55. package/dist/jest-dom/_chunks/{matchers-DJmRgUYG.cjs → matchers-lhGtjS66.cjs} +7 -7
  56. package/dist/jest-dom/index.cjs +1 -1
  57. package/dist/jest-dom/index.js +1 -1
  58. package/dist/jest-dom/jest-globals.cjs +1 -1
  59. package/dist/jest-dom/jest-globals.js +1 -1
  60. package/dist/jest-dom/matchers.cjs +1 -1
  61. package/dist/jest-dom/matchers.js +1 -1
  62. package/dist/jest-dom/vitest.cjs +1 -1
  63. package/dist/jest-dom/vitest.js +1 -1
  64. package/dist/testing-library/_chunks/{aria-snapshot-diff-DbtSqGLH.cjs → aria-snapshot-diff-DKpjI9CA.cjs} +3 -3
  65. package/dist/testing-library/_chunks/aria-snapshot-diff-DdhypD1z.js +16 -0
  66. package/dist/testing-library/agent.cjs +2 -2
  67. package/dist/testing-library/agent.js +7 -7
  68. package/dist/testing-library/index.cjs +4 -4
  69. package/dist/testing-library/index.js +8 -8
  70. package/dist/user-event/index.cjs +15 -15
  71. package/dist/user-event/index.js +16 -16
  72. package/dist/user-event/types/clipboard/copy.d.ts +6 -0
  73. package/dist/user-event/types/ctrl-dom.d.ts +17 -16
  74. package/dist/user-event/types/event/eventMap.d.ts +99 -99
  75. package/dist/user-event/types/setup/dtl.d.ts +0 -6
  76. package/dist/user-event/types/system/index.d.ts +1 -0
  77. package/package.json +1 -1
  78. package/dist/aria/_chunks/aria-query.generated-BNKXKFqd.cjs +0 -4
  79. package/dist/aria/_chunks/aria-query.generated-CU4-Yw6V.js +0 -4
  80. package/dist/dom/_chunks/src-Dgmm77XJ.js +0 -50
  81. package/dist/testing-library/_chunks/aria-snapshot-diff-VoXekyfV.js +0 -16
@@ -0,0 +1,4 @@
1
+ import{$impl as e,$labelsVersion as t,$styleVersion as n,$treeVersion as r,$version as i,$window as a,CDATA_SECTION_NODE as o,DOCUMENT_NODE as s,ELEMENT_NODE as c,F_ROLE_ATTR as l,HTML_NS as u,SVG_NS as d,T as f,TEXT_NODE as p,ariaAttr as m,attr as h,computedValue as g,computedVisibility as _,derivedCache as v,getComputedStyleOverride as y,isLabelable as b,labeledControl as x,labelsFor as S,nextInTree as C,nodeCache as w,pseudoContent as T,styledDisplay as E,tagId as D,treeRoot as O,uaDisplay as k}from"../../bridge/internal.js";var A=Object.defineProperty,__name=(e,t)=>A(e,`name`,{value:t,configurable:!0});const j=/* @__PURE__ */ new Set([`hidden`,`text`,`search`,`tel`,`url`,`email`,`password`,`date`,`month`,`week`,`time`,`datetime-local`,`number`,`range`,`color`,`checkbox`,`radio`,`file`,`submit`,`image`,`reset`,`button`]);function inputType(e){let t=h(e,`type`);if(t===null)return`text`;if(j.has(t))return t;let n=t.toLowerCase();return j.has(n)?n:`text`}function childTextContent(e){let t=``;for(let n=e.first;n!==null;n=n.next)(n.type===3||n.type===4)&&(t+=n.data);return t}function controlValue(e){let t=e.node.value;return typeof t==`string`?t:e.tag===f.textarea?childTextContent(e):h(e,`value`)??``}function checkedness(e){let t=e.node.checked;return typeof t==`boolean`?t:h(e,`checked`)!==null}function indeterminate(e){return e.node.indeterminate===!0}function listOfOptions(e,t){for(let n=e.first;n!==null;n=n.next)if(n.ns===u){if(n.tag===f.option)t.push(n);else if(n.tag===f.optgroup)for(let e=n.first;e!==null;e=e.next)e.tag===f.option&&e.ns===u&&t.push(e)}return t}function selectSize(e){let t=h(e,`size`);if(t===null)return 0;let n=/^[\t\n\f\r ]*\+?(\d+)/.exec(t);if(n===null)return 0;let r=Number(n[1]);return r>2147483647?0:r}function fallbackSelected(e,t){if(e===null)return h(t,`selected`)!==null;let n=listOfOptions(e,[]);if(h(e,`multiple`)!==null)return h(t,`selected`)!==null;let r=null;for(let e of n)h(e,`selected`)!==null&&(r=e);if(r===null&&selectSize(e)<=1){for(let e of n)if(h(e,`disabled`)===null&&(e.parent===null||e.parent.tag!==f.optgroup||h(e.parent,`disabled`)===null)){r=e;break}}return r===t}function owningSelect(e){let t=e.parent;return t===null?null:t.tag===f.select&&t.ns===u?t:t.tag===f.optgroup&&t.parent!==null&&t.parent.tag===f.select&&t.parent.ns===u?t.parent:null}function optionSelected(e){let t=e.node.selected;return typeof t==`boolean`?t:fallbackSelected(owningSelect(e),e)}function selectedOptions(t){let n=t.node.selectedOptions;if(n!=null&&typeof n.length==`number`){let t=[];for(let r=0;r<n.length;r++)t.push(n[r][e]);return t}let r=[];for(let e of listOfOptions(t,[]))optionSelected(e)&&r.push(e);return r}function labelsOf(e){return b(e)?S(e):null}function labelMapForTree(e){let n=O(e),i=n.doc,a=i,o=a[r]+a[t],s=v(i,M,newLabelMaps),c=s.get(n);if(c!==void 0&&c.version===o)return c.map;let l=buildLabelMap(n);return s.set(n,{version:o,map:l}),l}const M={},newLabelMaps=()=>/* @__PURE__ */ new WeakMap;function buildLabelMap(e){let t=/* @__PURE__ */ new Map,n=[],r=!1;for(let t=e;t!==null;t=C(t,e))t.type===c&&t.tag===f.label&&(n.push(t),h(t,`for`)!==null&&(r=!0));if(n.length===0)return t;let i=null;if(r&&e.type!==s){i=/* @__PURE__ */ new Map;for(let t=e;t!==null;t=C(t,e))t.type===c&&t.id!==``&&!i.has(t.id)&&i.set(t.id,t)}for(let e of n){let n=i===null?x(e):forControl(e,i);if(n===null)continue;let r=t.get(n);r===void 0?t.set(n,[e]):r.push(e)}return t}function forControl(e,t){let n=h(e,`for`);if(n===null)return x(e);let r=n===``?void 0:t.get(n);return r!==void 0&&b(r)?r:null}function anyTag(e){return e.tag===0?D(e.name):e.tag}function isSet(e,t){let n=h(e,t);return n!==null&&n!==``}function eqCI(e,t){return e!==null&&e.length===t.length&&(e===t||e.toLowerCase()===t)}const N=Array(Object.keys(f).length+1).fill(``);for(let e of[`input`,`select`,`th`,`form`,`img`,`a`,`area`,`section`])N[D(e)]=void 0;setRoles(N,{complementary:`aside`,article:`article`,banner:`header`,blockquote:`blockquote`,button:`button`,caption:`caption`,cell:`td`,code:`code`,contentinfo:`footer`,definition:`dd`,deletion:`del`,dialog:`dialog`,document:`html`,emphasis:`em`,figure:`figure`,generic:`b bdo body data div hgroup i pre q samp small span u`,group:`details fieldset optgroup address`,heading:`h1 h2 h3 h4 h5 h6`,insertion:`ins`,list:`menu ol ul`,listbox:`datalist`,listitem:`li`,main:`main`,mark:`mark`,math:`math`,meter:`meter`,navigation:`nav`,option:`option`,paragraph:`p`,progressbar:`progress`,row:`tr`,rowgroup:`tbody tfoot thead`,separator:`hr`,status:`output`,strong:`strong`,subscript:`sub`,superscript:`sup`,table:`table`,term:`dfn dt`,textbox:`textarea`,time:`time`});function setRoles(e,t){for(let n in t)for(let r of t[n].split(` `))e[D(r)]=n}function implicitRole(e){if(e.type!==c)return``;let t=N[anyTag(e)];if(t!==void 0)return t;let n=e.doc[i],r=w(e);return r.roleVersion!==n&&(r.role=implicitRoleImpl(e,!1),r.roleVersion=n),r.role}function roleAttribute(e){return(e.flags&l)===0?null:h(e,`role`)}function implicitRoleJestDom(e){return implicitRoleImpl(e,!0)}function implicitRoleImpl(e,t){if(e.type!==c)return``;let n=anyTag(e);switch(n){case f.input:return inputRole(e,t);case f.select:return h(e,`multiple`)===null&&h(e,`size`)===null?`combobox`:`listbox`;case f.th:{let t=h(e,`scope`);return eqCI(t,`col`)||eqCI(t,`colgroup`)?`columnheader`:eqCI(t,`row`)||eqCI(t,`rowgroup`)?`rowheader`:`columnheader`}case f.form:return t?m(e,`aria-label`)!==null||m(e,`aria-labelledby`)!==null||h(e,`name`)!==null?`form`:``:isSet(e,`aria-label`)||isSet(e,`aria-labelledby`)||isSet(e,`name`)?`form`:``;case f.img:return t?`img`:h(e,`alt`)===``?`presentation`:`img`;case f.a:case f.area:return t?h(e,`href`)===null?`generic`:`link`:isSet(e,`href`)?`link`:`generic`;case f.section:return t?m(e,`aria-label`)!==null||m(e,`aria-labelledby`)!==null?`region`:`generic`:isSet(e,`aria-label`)||isSet(e,`aria-labelledby`)?`region`:`generic`;default:return N[n]}}function inputRole(e,t){let n=h(e,`list`),r=h(e,`type`),i=e.ns===u&&inputType(e)===`text`;if((t?n!==null:n!==null&&n!==``)&&(i||eqCI(r,`email`)||eqCI(r,`search`)||eqCI(r,`tel`)||eqCI(r,`url`)))return`combobox`;if(n===null){if(eqCI(r,`search`))return`searchbox`;if(r===null||i||eqCI(r,`email`)||eqCI(r,`tel`)||eqCI(r,`url`))return`textbox`}if(r===null)return``;switch(r.toLowerCase()){case`button`:case`image`:case`reset`:case`submit`:return`button`;case`checkbox`:return`checkbox`;case`radio`:return`radio`;case`range`:return`slider`;case`number`:return`spinbutton`;default:return``}}function getImplicitRoles(e){let t=implicitRole(e);return t===``?[]:[t]}function tlRole(e){if(e.type!==c)return``;let t=roleAttribute(e);if(t!==null){let e=t.indexOf(` `);return e===-1?t:t.slice(0,e)}return implicitRole(e)}const P=[];setRoles(P,{article:`article`,complementary:`aside`,button:`button summary`,listbox:`datalist`,definition:`dd`,group:`details fieldset optgroup`,dialog:`dialog`,term:`dt`,figure:`figure`,form:`form`,contentinfo:`footer`,heading:`h1 h2 h3 h4 h5 h6`,banner:`header`,separator:`hr`,document:`html`,legend:`legend`,listitem:`li`,math:`math`,main:`main`,list:`menu ol ul`,navigation:`nav`,option:`option`,status:`output`,progressbar:`progress`,region:`section`,table:`table`,rowgroup:`tbody tfoot thead`,textbox:`textarea`,cell:`td`,columnheader:`th`,row:`tr`});const F=[`aria-atomic`,`aria-busy`,`aria-controls`,`aria-current`,`aria-describedby`,`aria-details`,`aria-dropeffect`,`aria-flowto`,`aria-grabbed`,`aria-hidden`,`aria-keyshortcuts`,`aria-label`,`aria-labelledby`,`aria-live`,`aria-owns`,`aria-relevant`,`aria-roledescription`],I=F.toSpliced(4,0,`aria-description`);function isProhibited(e,t,n){switch(e){case`caption`:case`code`:case`deletion`:case`emphasis`:case`insertion`:case`paragraph`:case`presentation`:case`strong`:case`subscript`:case`superscript`:return t===`aria-label`||t===`aria-labelledby`;case`none`:return n===6&&(t===`aria-label`||t===`aria-labelledby`);case`generic`:return t===`aria-label`||t===`aria-labelledby`||t===`aria-roledescription`;default:return!1}}function hasGlobalAriaAttributes(e,t,n){if(e.attrs===null)return!1;let r=n===6?I:F;for(let i=0;i<r.length;i++){let a=r[i];if(h(e,a)!==null&&!isProhibited(t,a,n))return!0}return!1}function daaExplicitRole(e){let t=roleAttribute(e);if(t===null)return null;let n=t.trim(),r=n.indexOf(` `),i=r===-1?n:n.slice(0,r);return i.length>0?i:null}function daaImplicitRole(e,t){let n=anyTag(e),r=P[n];if(r!==void 0)return r;switch(n){case f.a:case f.area:case f.link:return h(e,`href`)===null?null:`link`;case f.img:return h(e,`alt`)===``&&!hasGlobalAriaAttributes(e,`img`,t)?`presentation`:`img`;case f.input:{if(e.ns!==u)return null;let t=inputType(e);switch(t){case`button`:case`image`:case`reset`:case`submit`:return`button`;case`checkbox`:case`radio`:return t;case`range`:return`slider`;case`email`:case`tel`:case`text`:case`url`:return h(e,`list`)===null?`textbox`:`combobox`;case`search`:return h(e,`list`)===null?`searchbox`:`combobox`;case`number`:return`spinbutton`;default:return null}}case f.select:return h(e,`multiple`)!==null||e.ns===u&&selectSize(e)>1?`listbox`:`combobox`}return null}function isPresentationRole(e,t){return e===`presentation`||t===6&&e===`none`}function daaGetRole(e,t){let n=daaExplicitRole(e);if(n===null||isPresentationRole(n,t)){let r=daaImplicitRole(e,t);if(!isPresentationRole(n,t)||hasGlobalAriaAttributes(e,r??``,t))return r}return n}function implOf(t){let n=t[e];if(n===void 0)throw TypeError(`Expected a node created by @ctrl/dom.`);return n}function elementByIdInRoot(e,t){if(t===``)return null;if(e.type===s)return e.node._idLookup(t);for(let n=e.first;n!==null;n=C(n,e))if(n.type===c&&n.id===t)return n;return null}function queryIdRefs(e,t,n){if(t===null)return n;let r=O(e);if(r.type===c)return n;let i=0,a=t.length;for(;i<=a;){let e=t.indexOf(` `,i);if(e===-1&&(e=a),e>i){let a=elementByIdInRoot(r,t.slice(i,e));a!==null&&n.push(a)}i=e+1}return n}function textContent(e){let t=``;for(let n=e.first;n!==null;n=C(n,e))(n.type===p||n.type===o)&&(t+=n.data);return t}function isDisplayNone(e){return(E(e)??k(e))===`none`}function isDisplayInline(e){return(E(e)??k(e))===`inline`}function isVisibilityHidden(e){return _(e)===`hidden`}function pseudoText(e,t){if(T(e,t)===``)return``;let n=g(e,`content`,t);return/^["'].*["']$/.test(n)?n.slice(1,-1):``}var Ctx=class{consulted;compute;hidden;pseudo;gcs;flavor;usedState;constructor(e,t,n){this.consulted=/* @__PURE__ */ new Set,this.reset(e,t,n)}reset(e,t,n){this.compute=e;let r=t?.getComputedStyle;this.gcs=typeof r==`function`?r:null,this.pseudo=t?.computedStyleSupportsPseudoElements??this.gcs!==null,this.hidden=t?.hidden??!1,this.flavor=n,this.usedState=!1}};const L=new Ctx(0,void 0,5);let R=!1;function acquireCtx(e,t,n){return R?new Ctx(e,t,n):(R=!0,L.reset(e,t,n),L)}function releaseCtx(e){e===L&&(e.consulted.clear(),e.gcs=null,R=!1)}function roleOf(e,t){return t.type===c?daaGetRole(t,e.flavor):null}function isControl(e){switch(e){case`button`:case`combobox`:case`listbox`:case`textbox`:return!0;default:return isRange(e)}}function isRange(e){switch(e){case`meter`:case`progressbar`:case`scrollbar`:case`slider`:case`spinbutton`:return!0;default:return!1}}function allowsNameFromContent(e){switch(e){case`button`:case`cell`:case`checkbox`:case`columnheader`:case`gridcell`:case`heading`:case`label`:case`legend`:case`link`:case`menuitem`:case`menuitemcheckbox`:case`menuitemradio`:case`option`:case`radio`:case`row`:case`rowheader`:case`switch`:case`tab`:case`tooltip`:case`treeitem`:return!0;default:return!1}}function wrapperOf(e){return e.node}function isHidden(e,t){if(t.type!==c)return!1;if(h(t,`hidden`)!==null||m(t,`aria-hidden`)===`true`)return!0;let n=e.gcs;if(n!==null){let e=n(wrapperOf(t));return e.getPropertyValue(`display`)===`none`||e.getPropertyValue(`visibility`)===`hidden`}return isDisplayNone(t)||isVisibilityHidden(t)}function displayIsInline(e,t){let n=e.gcs;return n===null?isDisplayInline(t):n(wrapperOf(t)).getPropertyValue(`display`)===`inline`}function pseudoContent$1(e,t,n){let r=e.gcs;if(r!==null){let e=r(wrapperOf(t),n).getPropertyValue(`content`);return/^["'].*["']$/.test(e)?e.slice(1,-1):``}return pseudoText(t,n)}__name(pseudoContent$1,`pseudoContent`);function isLocal(e,t){return e.type===c&&anyTag(e)===t}function htmlInputType(e){return e.ns===u&&e.tag===f.input?inputType(e):``}function findAttr(e,t){let n=e.attrs;if(n===null)return null;for(let e=0;e<n.length;e++){let r=n[e];if((r.rare===null?r.localName:r.rare.name)===t)return r}return null}function useAttribute(e,t,n){let r=findAttr(t,n);return r!==null&&!e.consulted.has(r)&&r.value.trim()!==``?(e.consulted.add(r),r.value):null}function computeMiscTextAlternative(e,t,n){let r=``,i=t.type===c;if(i&&e.pseudo&&(r=`${pseudoContent$1(e,t,`::before`)} ${r}`),i&&anyTag(t)===f.slot){let i=slotAssignedNodes(t);if(i!==null&&i.length>0)for(let t=0;t<i.length;t++)r+=childText(e,i[t],n);else for(let i=t.first;i!==null;i=i.next)r+=childText(e,i,n)}else{for(let i=t.first;i!==null;i=i.next)r+=childText(e,i,n);if(i){let i=m(t,`aria-owns`);if(i!==null){let a=queryIdRefs(t,i,[]);for(let t=0;t<a.length;t++)r+=childText(e,a[t],n)}}}return i&&e.pseudo&&(r=`${r} ${pseudoContent$1(e,t,`::after`)}`),r.trim()}function childText(e,t,n){let r=computeTextAlternative(e,t,n,!1,!0);return t.type===c&&!displayIsInline(e,t)?` ${r} `:r}function slotAssignedNodes(t){let n=t.node.assignedNodes;if(typeof n!=`function`)return null;let r=n.call(t.node),i=[];for(let t=0;t<r.length;t++)i.push(r[t][e]);return i}function computeTooltipAttributeValue(e,t){return t.type===c?useAttribute(e,t,`title`):null}function computeElementTextAlternative(e,t){if(t.type!==c)return null;let n=anyTag(t);if(n===f.fieldset){e.consulted.add(t);for(let n=t.first;n!==null;n=n.next)if(isLocal(n,f.legend))return computeTextAlternative(e,n,!1,!1,!1)}else if(n===f.table){e.consulted.add(t);for(let n=t.first;n!==null;n=n.next)if(isLocal(n,f.caption))return computeTextAlternative(e,n,!1,!1,!1)}else if(n===f.svg){e.consulted.add(t);for(let e=t.first;e!==null;e=e.next)if(e.type===c&&e.ns===d&&e.name===`title`)return textContent(e);return null}else if(n===f.img||n===f.area){let n=useAttribute(e,t,`alt`);if(n!==null)return n}else if(n===f.optgroup){let n=useAttribute(e,t,`label`);if(n!==null)return n}let r=n===f.input?htmlInputType(t):``;if(r===`button`||r===`submit`||r===`reset`){let n=useAttribute(e,t,`value`);if(n!==null)return n;if(r===`submit`)return`Submit`;if(r===`reset`)return`Reset`}let i=labelsOf(t);if(i!==null&&i.length!==0){e.consulted.add(t);let n=``;for(let t=0;t<i.length;t++){let r=computeTextAlternative(e,i[t],!0,!1,!0);r.length>0&&(n=n===``?r:`${n} ${r}`)}return n}if(r===`image`){let n=useAttribute(e,t,`alt`);if(n!==null)return n;let r=useAttribute(e,t,`title`);return r===null?`Submit Query`:r}if(roleOf(e,t)===`button`){let n=computeMiscTextAlternative(e,t,!1);if(n!==``)return n}return null}function selectedOptionsOf(e,t){return anyTag(t)===f.select?(e.usedState=!0,t.ns===u?selectedOptions(t):querySelectorAllSubtree(t,`selected`,null)):querySelectorAllSubtree(t,`aria-selected`,`true`)}function querySelectorAllSubtree(e,t,n){let r=[];collectDescendantsWithAttr(e,t,n,r);let i=m(e,`aria-owns`);if(i!==null){let a=queryIdRefs(e,i,[]);for(let e=0;e<a.length;e++)collectDescendantsWithAttr(a[e],t,n,r)}return r}function collectDescendantsWithAttr(e,t,n,r){for(let i=e.first;i!==null;i=C(i,e))if(i.type===c){let e=h(i,t);e!==null&&(n===null||e===n)&&r.push(i)}}function getValueOfTextbox(e,t){let n=anyTag(t);return(n===f.input||n===f.textarea)&&t.ns===u?(e.usedState=!0,controlValue(t)):textContent(t)}function computeTextAlternative(e,t,n,r,i){let a=e.consulted;if(a.has(t))return``;if(!e.hidden&&!r&&isHidden(e,t))return a.add(t),``;let o=t.type===c;if(o&&e.compute===0&&!r){let r=findAttr(t,`aria-labelledby`);if(r!==null&&!a.has(r)){let i=queryIdRefs(t,r.value,[]);if(i.length>0){a.add(r);let t=``;for(let r=0;r<i.length;r++){let a=computeTextAlternative(e,i[r],n,!0,!1);t=r===0?a:`${t} ${a}`}return t}}}let s=o?daaGetRole(t,e.flavor):null,l=i&&e.compute===0&&isControl(s);if(!l){let n=o?(m(t,`aria-label`)??``).trim():``;if(n!==``&&e.compute===0)return a.add(t),n;if(s!==`presentation`&&s!==`none`){let n=computeElementTextAlternative(e,t);if(n!==null)return a.add(t),n}}if(s===`menu`)return a.add(t),``;if(l||n||r){if(s===`combobox`||s===`listbox`){a.add(t);let r=selectedOptionsOf(e,t);if(r.length===0)return isLocal(t,f.input)?(e.usedState=!0,t.ns===u?controlValue(t):``):``;let i=``;for(let t=0;t<r.length;t++){let a=computeTextAlternative(e,r[t],n,!1,!0);i=t===0?a:`${i} ${a}`}return i}if(isRange(s)){a.add(t);let e=m(t,`aria-valuetext`);if(e!==null)return e;let n=m(t,`aria-valuenow`);return n===null?h(t,`value`)||``:n}if(s===`textbox`)return a.add(t),getValueOfTextbox(e,t)}if(allowsNameFromContent(s)||o&&r||o&&anyTag(t)===f.caption){let r=computeMiscTextAlternative(e,t,n);if(r!==``)return a.add(t),r}if(t.type===p)return a.add(t),t.data;if(i)return a.add(t),computeMiscTextAlternative(e,t,n);let d=computeTooltipAttributeValue(e,t);return d===null?(a.add(t),``):(a.add(t),d)}const z=/\s\s+/g;function isRegExpWs(e){return e<=32?e===32||e>=9&&e<=13:e<160?!1:e===160||e===5760||e>=8192&&e<=8202||e===8232||e===8233||e===8239||e===8287||e===12288||e===65279}function asFlatString(e){let t=e.length;if(t===0)return``;if(isRegExpWs(e.charCodeAt(0))||isRegExpWs(e.charCodeAt(t-1)))return e.trim().replace(z,` `);let n=!1;for(let r=1;r<t-1;r++){let t=isRegExpWs(e.charCodeAt(r));if(t&&n)return e.trim().replace(z,` `);n=t}return e}function computeTextAlternativeImpl(e,t,n){let r=acquireCtx(+(t?.compute===`description`),t,n);try{return asFlatString(computeTextAlternative(r,e,!1,r.compute===1,!1))}finally{releaseCtx(r)}}function prohibitsNaming(e,t){switch(e){case`caption`:case`code`:case`deletion`:case`emphasis`:case`generic`:case`insertion`:case`paragraph`:case`presentation`:case`strong`:case`subscript`:case`superscript`:return!0;case`none`:return t===6;default:return!1}}function withStyleOverride(e,t){if(t!==void 0&&t.getComputedStyle!==void 0)return t;let n=y(e);return n===null?t:{...t,getComputedStyle:n,computedStyleSupportsPseudoElements:t?.computedStyleSupportsPseudoElements??!1}}function isDefaultOptions(e){return e===void 0||e.getComputedStyle===void 0&&e.computedStyleSupportsPseudoElements!==!0&&e.hidden!==!0&&e.compute!==`description`}function computeAccessibleNameImpl(e,t,r){if(e.type===c&&prohibitsNaming(daaGetRole(e,r),r))return``;let a=r===5&&e.type===c&&isDefaultOptions(t),o=e.doc;if(a){let t=e.cache;if(t!==null&&t.nameVersion===o[i]&&t.ariaNameStyleVersion===o[n])return t.name}let s=acquireCtx(0,t,r),l,u;try{l=asFlatString(computeTextAlternative(s,e,!1,!1,!1)),u=s.usedState}finally{releaseCtx(s)}if(a&&!u){let t=w(e);t.nameVersion=o[i],t.ariaNameStyleVersion=o[n],t.name=l}return l}function computeAccessibleDescriptionImpl(e,t,n){let r=``;if(e.type===c){let i=m(e,`aria-describedby`);if(i!==null){let a=queryIdRefs(e,i,[]),o={...t,compute:`description`};for(let e=0;e<a.length;e++){let t=computeTextAlternativeImpl(a[e],o,n);r=e===0?t:`${r} ${t}`}}r===``&&n===6&&(r=m(e,`aria-description`)??``),r===``&&(r=h(e,`title`)??``)}return r}function checkBooleanAttribute(e,t){let n=m(e,t);if(n===`true`)return!0;if(n===`false`)return!1}function isHTMLTag(e,t){return e.tag===t&&e.ns===u}function computeAriaSelected(e){return isHTMLTag(e,f.option)?optionSelected(e):checkBooleanAttribute(e,`aria-selected`)}function computeAriaBusy(e){return m(e,`aria-busy`)===`true`}function computeAriaChecked(e){return isHTMLTag(e,f.input)?indeterminate(e)?void 0:checkedness(e):checkBooleanAttribute(e,`aria-checked`)}function ariaCheckedState(e){if(isHTMLTag(e,f.input))return indeterminate(e)?`mixed`:checkedness(e);let t=m(e,`aria-checked`);if(t===`true`)return!0;if(t===`false`)return!1;if(t===`mixed`)return`mixed`}function computeAriaPressed(e){return checkBooleanAttribute(e,`aria-pressed`)}function ariaPressedState(e){let t=m(e,`aria-pressed`);if(t===`true`)return!0;if(t===`false`)return!1;if(t===`mixed`)return`mixed`}function computeAriaCurrent(e){return checkBooleanAttribute(e,`aria-current`)??m(e,`aria-current`)??!1}function computeAriaExpanded(e){return checkBooleanAttribute(e,`aria-expanded`)}function computeHeadingLevel(e){let t=m(e,`aria-level`);if(t!==null&&t!==``){let e=Number(t);if(e)return e}if(e.ns===u)switch(e.tag){case f.h1:return 1;case f.h2:return 2;case f.h3:return 3;case f.h4:return 4;case f.h5:return 5;case f.h6:return 6;default:return}}function computeAriaValueNow(e){let t=m(e,`aria-valuenow`);return t===null?void 0:+t}function computeAriaValueMax(e){let t=m(e,`aria-valuemax`);return t===null?void 0:+t}function computeAriaValueMin(e){let t=m(e,`aria-valuemin`);return t===null?void 0:+t}function computeAriaValueText(e){return m(e,`aria-valuetext`)??void 0}function isDisabledImpl(e){switch(anyTag(e)){case f.button:case f.fieldset:case f.input:case f.optgroup:case f.option:case f.select:case f.textarea:if(h(e,`disabled`)!==null)return!0}return m(e,`aria-disabled`)===`true`}function isSubtreeInaccessibleImpl(e){return e.ns===u&&h(e,`hidden`)!==null||m(e,`aria-hidden`)===`true`||isDisplayNone(e)}function chainInaccessible(e,t,n){let r=e.cache;if(r!==null&&r.ariaHiddenVersion===t&&r.ariaHiddenStyleVersion===n)return!!(r.ariaHiddenBits&1);let i=isSubtreeInaccessibleImpl(e);if(!i){let r=e.parent;r!==null&&r.type===c&&(i=chainInaccessible(r,t,n))}let a=r??w(e);return a.ariaHiddenVersion=t,a.ariaHiddenStyleVersion=n,a.ariaHiddenBits=+!!i,i}function isInaccessibleImpl(e){if(isVisibilityHidden(e))return!0;let t=e.doc;return chainInaccessible(e,t[i],t[n])}function isInaccessibleWithStyle(e,t,n){if(t(e.node).visibility===`hidden`)return!0;for(let r=e;r!==null&&r.type===c;r=r.parent){let e=n===null?void 0:n.get(r);if(e===void 0&&(e=isSubtreeInaccessibleWithStyle(r,t),n!==null&&n.set(r,e)),e)return!0}return!1}function isSubtreeInaccessibleWithStyle(e,t){return e.ns===u&&h(e,`hidden`)!==null||m(e,`aria-hidden`)===`true`||t(e.node).display===`none`}const B=`Owner document of the element needs to have an associated window.`;function checkGetComputedStyle(e,t){if(t!==void 0&&`getComputedStyle`in t&&t.getComputedStyle!==void 0){let e=t.getComputedStyle;if(typeof e!=`function`)throw TypeError(B);return e}if(e.doc[a]===null)throw TypeError(B);return y(e)}function isSubtreeInaccessible(e,t){let n=implOf(e),r=checkGetComputedStyle(n,t);return r===null?isSubtreeInaccessibleImpl(n):n.ns===u&&h(n,`hidden`)!==null||m(n,`aria-hidden`)===`true`||r(e).display===`none`}function isInaccessible(e,t){let n=implOf(e),r=checkGetComputedStyle(n,t),i=t?.isSubtreeInaccessible;if(r===null&&i===void 0)return isInaccessibleImpl(n);if(r===null?isVisibilityHidden(n):r(e).visibility===`hidden`)return!0;for(let e=n;e!==null&&e.type===c;e=e.parent){let t=e.node;if(i===void 0?r===null?isSubtreeInaccessibleImpl(e):isSubtreeInaccessible(t,{getComputedStyle:r}):i(t))return!0}return!1}function getRolesImpl(e,t){let n=/* @__PURE__ */ new Map,r=t?null:y(e),i=r===null?null:/* @__PURE__ */ new Map;for(let a=e;a!==null;){if(a.type===c&&(t||!(r===null?isInaccessibleImpl(a):isInaccessibleWithStyle(a,r,i)))){let e=h(a,`role`),t;if(e!==null){let n=e.indexOf(` `);t=n===-1?e:e.slice(0,n)}else t=implicitRole(a);if(e!==null||t!==``){let e=n.get(t);e===void 0?n.set(t,[a]):e.push(a)}}let o=null;for(let e=a.first;e!==null;e=e.next)if(e.type===c){o=e;break}if(o===null){let t=a;for(;t!==null&&t!==e;){for(let e=t.next;e!==null;e=e.next)if(e.type===c){o=e;break}if(o!==null)break;t=t.parent}}a=o}return n}function getRoles(e,t={}){let n=getRolesImpl(implOf(e),t.hidden??!1),r={};for(let[e,t]of n)r[e]=t.map(e=>e.node);return r}function prettyRoles(e,t,n){let r=implOf(e),i=getRolesImpl(r,t.hidden??!1),a=y(r),o=t.computedStyleSupportsPseudoElements??!1,s=a===null?{computedStyleSupportsPseudoElements:o}:{computedStyleSupportsPseudoElements:o,getComputedStyle:a},c=`-`.repeat(50),l=[];for(let[e,r]of i){if(e===`generic`)continue;let i=r.map(e=>{let r=`Name "${computeAccessibleNameImpl(e,s,5)}":\n`,i=n(e.node.cloneNode(!1));return t.includeDescription?`${r}${`Description "${computeAccessibleDescriptionImpl(e,s,5)}":\n`}${i}`:`${r}${i}`}).join(`
2
+
3
+ `);l.push(`${e}:\n\n${i}\n\n${c}`)}return l.join(`
4
+ `)}const V=/* @__PURE__ */ new Map([[`article`,[[`article`],[]]],[`banner`,[[],[`header`]]],[`blockquote`,[[`blockquote`],[]]],[`button`,[[`button`],[`input`]]],[`caption`,[[`caption`],[]]],[`cell`,[[],[`td`]]],[`checkbox`,[[],[`input`]]],[`code`,[[`code`],[]]],[`columnheader`,[[],[`th`]]],[`combobox`,[[],[`input`,`select`]]],[`complementary`,[[],[`aside`]]],[`contentinfo`,[[],[`footer`]]],[`definition`,[[`dd`],[]]],[`deletion`,[[`del`],[]]],[`dialog`,[[`dialog`],[]]],[`document`,[[`html`],[]]],[`emphasis`,[[`em`],[]]],[`figure`,[[`figure`],[]]],[`form`,[[],[`form`]]],[`generic`,[[`b`,`bdo`,`body`,`data`,`div`,`hgroup`,`i`,`pre`,`q`,`samp`,`small`,`span`,`u`],[`a`,`area`,`aside`,`footer`,`header`,`section`]]],[`gridcell`,[[],[`td`]]],[`group`,[[`details`,`fieldset`,`optgroup`,`address`],[]]],[`heading`,[[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],[]]],[`img`,[[],[`img`]]],[`insertion`,[[`ins`],[]]],[`link`,[[],[`a`,`area`]]],[`list`,[[`menu`,`ol`,`ul`],[]]],[`listbox`,[[`datalist`],[`select`]]],[`listitem`,[[`li`],[]]],[`main`,[[`main`],[]]],[`mark`,[[`mark`],[]]],[`math`,[[`math`],[]]],[`meter`,[[`meter`],[]]],[`navigation`,[[`nav`],[]]],[`option`,[[`option`],[]]],[`paragraph`,[[`p`],[]]],[`presentation`,[[],[`img`]]],[`progressbar`,[[`progress`],[]]],[`radio`,[[],[`input`]]],[`region`,[[],[`section`]]],[`row`,[[`tr`],[]]],[`rowgroup`,[[`tbody`,`tfoot`,`thead`],[]]],[`rowheader`,[[],[`th`]]],[`searchbox`,[[],[`input`]]],[`separator`,[[`hr`],[]]],[`slider`,[[],[`input`]]],[`spinbutton`,[[],[`input`]]],[`status`,[[`output`],[]]],[`strong`,[[`strong`],[]]],[`subscript`,[[`sub`],[]]],[`superscript`,[[`sup`],[]]],[`table`,[[`table`],[]]],[`term`,[[`dfn`,`dt`],[]]],[`textbox`,[[`textarea`],[`input`]]],[`time`,[[`time`],[]]]]),H=`{"lists":[["author"],[1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40],[["roletype","widget"]],[0,15,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40],[15,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40],[["roletype","structure","section"]],[47,48,49,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40],[["roletype","structure"]],[],["author","contents"],[32,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,0,15],[["roletype","widget","composite"],["roletype","structure","section","group"]],[["roletype"]],[29,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40],[1,28,5,10,11,12,14,16,19,20,22,24,25,26,33,38,40],[1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,29],[["roletype","structure","section","alert"],["roletype","window","dialog"]],[0,15,17,18,21,23,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40],[35,45,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40],[["roletype","structure","document"]],[["roletype","structure","section","landmark"]],[15,18,21,36,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40],[["roletype","widget","command"]],["prohibited"],[8,9,42,43,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40],[6,17,18,23,37,39,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,15],[["roletype","widget","input"]],[46,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,8,9,42,43,15,17,18,21,23,37,39,44],[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]],[0,2,17,23,37,39,18,21,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,15],[["roletype","window"]],[["roletype","structure","section","list"]],[31,37,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,0,15,7,41],[["roletype","widget","composite"],["roletype","structure","section","table"]],[15,17,18,21,23,37,39,44,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,8,9,42,43],[["roletype","structure","section","cell"],["roletype","widget"]],[27,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40],[["roletype","structure","sectionhead"]],[15,18,21,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40],[17,18,23,31,37,39,32,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,0,15],[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]],[27,35,45,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40],[28,1,5,10,11,12,14,16,19,20,22,24,25,26,33,38,40],[3,4,13,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40],[["roletype","widget","composite","select","menu"],["roletype","structure","section","group","select","menu"]],[15,18,21,35,45,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40],[1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,15,6,17,18,23,37,39,21,35,45],[["roletype","widget","input","checkbox"],["roletype","widget","command","menuitem"]],[["roletype","widget","input","checkbox","menuitemcheckbox"],["roletype","widget","command","menuitem","menuitemcheckbox"],["roletype","widget","input","radio"]],[50,47,48,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,49],[["roletype","structure","range"]],[6,35,45,44,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,15],[50,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,47,48,49],[["roletype","structure","range"],["roletype","widget"]],[6,35,45,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,15],[17,23,37,39,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,0,15,32],[8,18,27,35,42,44,45,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,0,15],[["roletype","structure","section","group"],["roletype","widget"]],[15,50,32,47,48,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,49],[1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,15,0,2,17,21,23,30,34,37,39],[["roletype","widget","input","textbox"]],[15,32,47,48,49,50,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40],[17,21,23,37,50,32,47,48,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,15,49],[["roletype","widget","input"],["roletype","structure","range"]],[17,23,37,39,50,49,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,0,15,47,48],[["roletype","widget","composite"],["roletype","widget","input"],["roletype","structure","range"]],[1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,15,6,17,18,23,37,39],[["roletype","widget","input","checkbox"]],[15,18,21,35,45,44,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40],[["roletype","structure","sectionhead"],["roletype","widget"]],[7,41,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40],[27,31,32,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,0,15],[["roletype","widget","composite"]],[0,2,17,21,23,30,34,37,39,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,15],[["roletype","structure","section","status"]],[["roletype","structure","section","group"]],[17,23,31,39,32,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,0,15],[1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,0,15,31,37,7,41,32,17,23,39],[["roletype","widget","composite","grid"],["roletype","structure","section","table","grid"],["roletype","widget","composite","select","tree"],["roletype","structure","section","group","select","tree"]],[18,21,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,27,35,45,15,6,44],[["roletype","structure","section","listitem"],["roletype","widget","input","option"]],[15,17,18,21,23,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40],[17,23,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,15,18,21],[["roletype","widget","command","link"]],[15,17,18,21,23,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,27,35,45],[["roletype","structure","section","listitem"]],[["roletype","structure","section","img"]],[["roletype","structure","section","landmark","navigation"]],[["roletype","structure","section","note"]],[17,18,21,23,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,15,32,47,48,49,50],[["roletype","structure","separator"]],[["none"]],[17,18,21,23,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,0,15]],"roles":[["command",1,0,[],1,[],[],[],{},2],["composite",1,0,[],3,[],[],[],{},2],["input",1,0,[],4,[["input","XForms"]],[],[],{},2],["landmark",1,0,[],1,[],[],[],{},5],["range",1,0,[],6,[],[],[],{},7],["roletype",1,8,[],1,[["role","XHTML"],["type","Dublin Core"]],[],[],{},8],["section",1,8,[],1,[["frontmatter","DTB"],["level","DTB"],["level","SMIL"]],[],[],{},7],["sectionhead",1,9,[],1,[],[],[],{},7],["select",1,0,[],10,[],[],[],{},11],["structure",1,8,[],1,[],[],[],{},12],["widget",1,8,[],1,[],[],[],{},12],["window",1,0,[],13,[],[],[],{},12],["alert",0,0,[],14,[["alert","XForms"]],[],[],{},5,{"aria-atomic":"true","aria-live":"assertive"}],["alertdialog",2,0,[],15,[["alert","XForms"]],[],[],{},16],["application",2,0,[],17,[{"concept":{"name":"Device Independence Delivery Unit"}}],[],[],{},7],["article",0,0,[],18,[["article","HTML"]],[],[],{},19],["banner",0,0,[],1,[[{"constraints":["scoped to the body element"],"name":"header"},"HTML"]],[],[],{},20],["blockquote",0,0,[],1,[["blockquote","HTML"]],[],[],{},5],["button",6,9,[],21,[[{"attributes":[{"name":"type","value":"button"}],"name":"input"},"HTML"],[{"attributes":[{"name":"type","value":"image"}],"name":"input"},"HTML"],[{"attributes":[{"name":"type","value":"reset"}],"name":"input"},"HTML"],[{"attributes":[{"name":"type","value":"submit"}],"name":"input"},"HTML"],["button","HTML"],["trigger","XForms"]],[],[],{},22],["caption",0,23,["aria-label","aria-labelledby"],1,[["caption","HTML"]],["figure","grid","table"],[],{},5],["cell",0,9,[],24,[[{"constraints":["ancestor table element has table role"],"name":"td"},"HTML"]],["row"],[],{},5],["checkbox",6,9,[],25,[[{"attributes":[{"name":"type","value":"checkbox"}],"name":"input"},"HTML"],["option","ARIA"]],[],[],{"aria-checked":null},26],["code",0,23,["aria-label","aria-labelledby"],1,[["code","HTML"]],[],[],{},5],["columnheader",2,9,[],27,[["th","HTML"],[{"attributes":[{"name":"scope","value":"col"}],"name":"th"},"HTML"],[{"attributes":[{"name":"scope","value":"colgroup"}],"name":"th"},"HTML"]],["row"],[],{},28],["combobox",2,0,[],29,[[{"attributes":[{"constraints":["set"],"name":"list"},{"name":"type","value":"email"}],"name":"input"},"HTML"],[{"attributes":[{"constraints":["set"],"name":"list"},{"name":"type","value":"search"}],"name":"input"},"HTML"],[{"attributes":[{"constraints":["set"],"name":"list"},{"name":"type","value":"tel"}],"name":"input"},"HTML"],[{"attributes":[{"constraints":["set"],"name":"list"},{"name":"type","value":"text"}],"name":"input"},"HTML"],[{"attributes":[{"constraints":["set"],"name":"list"},{"name":"type","value":"url"}],"name":"input"},"HTML"],[{"attributes":[{"constraints":["set"],"name":"list"},{"name":"type","value":"url"}],"name":"input"},"HTML"],[{"attributes":[{"constraints":["undefined"],"name":"multiple"},{"constraints":["undefined"],"name":"size"}],"constraints":["the multiple attribute is not set and the size attribute does not have a value greater than 1"],"name":"select"},"HTML"],["select","XForms"]],[],[],{"aria-controls":null,"aria-expanded":"false"},26,{"aria-expanded":"false","aria-haspopup":"listbox"}],["complementary",0,0,[],1,[["aside","HTML"],[{"attributes":[{"constraints":["set"],"name":"aria-label"}],"constraints":["scoped to a sectioning content element","scoped to a sectioning root element other than body"],"name":"aside"},"HTML"],[{"attributes":[{"constraints":["set"],"name":"aria-labelledby"}],"constraints":["scoped to a sectioning content element","scoped to a sectioning root element other than body"],"name":"aside"},"HTML"]],[],[],{},20],["contentinfo",0,0,[],1,[[{"constraints":["scoped to the body element"],"name":"footer"},"HTML"]],[],[],{},20],["definition",0,0,[],1,[["dd","HTML"]],[],[],{},5],["deletion",0,23,["aria-label","aria-labelledby"],1,[["del","HTML"]],[],[],{},5],["dialog",2,0,[],15,[["dialog","HTML"]],[],[],{},30],["directory",0,0,[],1,[{"module":"DAISY Guide"}],[],[],{},31],["document",0,0,[],1,[{"concept":{"name":"Device Independence Delivery Unit"}},["html","HTML"]],[],[],{},7],["emphasis",0,23,["aria-label","aria-labelledby"],1,[["em","HTML"]],[],[],{},5],["feed",0,0,[],1,[],[],[["article"]],{},31],["figure",0,0,[],1,[["figure","HTML"]],[],[],{},5],["form",0,0,[],1,[[{"attributes":[{"constraints":["set"],"name":"aria-label"}],"name":"form"},"HTML"],[{"attributes":[{"constraints":["set"],"name":"aria-labelledby"}],"name":"form"},"HTML"],[{"attributes":[{"constraints":["set"],"name":"name"}],"name":"form"},"HTML"]],[],[],{},20],["generic",0,23,["aria-label","aria-labelledby"],1,[["a","HTML"],["area","HTML"],["aside","HTML"],["b","HTML"],["bdo","HTML"],["body","HTML"],["data","HTML"],["div","HTML"],[{"constraints":["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],"name":"footer"},"HTML"],[{"constraints":["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],"name":"header"},"HTML"],["hgroup","HTML"],["i","HTML"],["pre","HTML"],["q","HTML"],["samp","HTML"],["section","HTML"],["small","HTML"],["span","HTML"],["u","HTML"]],[],[],{},7],["grid",2,0,[],32,[],[],[["row"],["row","rowgroup"]],{},33],["gridcell",0,9,[],34,[[{"constraints":["ancestor table element has grid role","ancestor table element has treegrid role"],"name":"td"},"HTML"]],["row"],[],{},35],["group",0,0,[],3,[["details","HTML"],["fieldset","HTML"],["optgroup","HTML"],["address","HTML"]],[],[],{},5],["heading",2,9,[],36,[["h1","HTML"],["h2","HTML"],["h3","HTML"],["h4","HTML"],["h5","HTML"],["h6","HTML"]],[],[],{"aria-level":"2"},37,{"aria-level":"2"}],["img",6,0,[],1,[[{"attributes":[{"constraints":["set"],"name":"alt"}],"name":"img"},"HTML"],[{"attributes":[{"constraints":["undefined"],"name":"alt"}],"name":"img"},"HTML"],["imggroup","DTB"]],[],[],{},5],["insertion",0,23,["aria-label","aria-labelledby"],1,[["ins","HTML"]],[],[],{},5],["link",2,9,[],38,[[{"attributes":[{"constraints":["set"],"name":"href"}],"name":"a"},"HTML"],[{"attributes":[{"constraints":["set"],"name":"href"}],"name":"area"},"HTML"]],[],[],{},22],["list",0,0,[],1,[["menu","HTML"],["ol","HTML"],["ul","HTML"]],[],[["listitem"]],{},5],["listbox",2,0,[],39,[[{"attributes":[{"constraints":[">1"],"name":"size"}],"constraints":["the size attribute value is greater than 1"],"name":"select"},"HTML"],[{"attributes":[{"name":"multiple"}],"name":"select"},"HTML"],["datalist","HTML"],["list","ARIA"],["select","XForms"]],[],[["option","group"],["option"]],{},40,{"aria-orientation":"vertical"}],["listitem",0,0,[],41,[[{"constraints":["direct descendant of ol","direct descendant of ul","direct descendant of menu"],"name":"li"},"HTML"],["item","XForms"]],["directory","list"],[],{},5],["log",0,0,[],42,[],[],[],{},5,{"aria-live":"polite"}],["main",0,0,[],1,[["main","HTML"]],[],[],{},20],["mark",0,23,[],43,[["mark","HTML"]],[],[],{},5],["marquee",2,0,[],1,[],[],[],{},5],["math",0,0,[],1,[["math","HTML"]],[],[],{},5],["menu",0,0,[],10,[["MENU","JAPI"],["list","ARIA"],["select","XForms"],["sidebar","DTB"]],[],[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],{},40,{"aria-orientation":"vertical"}],["menubar",0,0,[],10,[["toolbar","ARIA"]],[],[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],{},44,{"aria-orientation":"horizontal"}],["menuitem",2,9,[],45,[["MENU_ITEM","JAPI"],["listitem","ARIA"],["option","ARIA"]],["group","menu","menubar"],[],{},22],["menuitemcheckbox",6,9,[],46,[["menuitem","ARIA"]],["group","menu","menubar"],[],{"aria-checked":null},47],["menuitemradio",6,9,[],46,[["menuitem","ARIA"]],["group","menu","menubar"],[],{"aria-checked":null},48],["meter",6,0,[],49,[["meter","HTML"]],[],[],{"aria-valuenow":null},50,{"aria-valuemax":"100","aria-valuemin":"0"}],["navigation",0,0,[],1,[["nav","HTML"]],[],[],{},20],["none",0,8,[],8,[],[],[],{},8],["note",0,0,[],1,[],[],[],{},5],["option",6,9,[],51,[["item","XForms"],["listitem","ARIA"],["option","HTML"]],[],[],{"aria-selected":"false"},26,{"aria-selected":"false"}],["paragraph",0,23,["aria-label","aria-labelledby"],1,[["p","HTML"]],[],[],{},5],["presentation",0,23,["aria-label","aria-labelledby"],1,[[{"attributes":[{"name":"alt","value":""}],"name":"img"},"HTML"]],[],[],{},7],["progressbar",6,0,[],52,[["progress","HTML"],["status","ARIA"]],[],[],{},53],["radio",6,9,[],54,[[{"attributes":[{"name":"type","value":"radio"}],"name":"input"},"HTML"]],[],[],{"aria-checked":null},26],["radiogroup",2,0,[],55,[["list","ARIA"]],[],[["radio"]],{},40],["region",2,0,[],1,[[{"attributes":[{"constraints":["set"],"name":"aria-label"}],"name":"section"},"HTML"],[{"attributes":[{"constraints":["set"],"name":"aria-labelledby"}],"name":"section"},"HTML"],{"concept":{"name":"Device Independence Glossart perceivable unit"}}],[],[],{},20],["row",0,9,[],56,[["tr","HTML"]],["grid","rowgroup","table","treegrid"],[["cell"],["columnheader"],["gridcell"],["rowheader"]],{},57],["rowgroup",0,9,[],1,[["tbody","HTML"],["tfoot","HTML"],["thead","HTML"]],["grid","table","treegrid"],[["row"]],{},7],["rowheader",2,9,[],27,[[{"attributes":[{"name":"scope","value":"row"}],"name":"th"},"HTML"],[{"attributes":[{"name":"scope","value":"rowgroup"}],"name":"th"},"HTML"]],["row","rowgroup"],[],{},28],["scrollbar",4,0,[],58,[],[],[],{"aria-controls":null,"aria-valuenow":null},53,{"aria-orientation":"vertical","aria-valuemax":"100","aria-valuemin":"0"}],["search",0,0,[],1,[],[],[],{},20],["searchbox",2,0,[],59,[[{"attributes":[{"constraints":["undefined"],"name":"list"},{"name":"type","value":"search"}],"constraints":["the list attribute is not set"],"name":"input"},"HTML"]],[],[],{},60],["separator",4,0,[],61,[["hr","HTML"]],[],[],{},7,{"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0"}],["slider",6,0,[],62,[[{"attributes":[{"name":"type","value":"range"}],"name":"input"},"HTML"]],[],[],{"aria-valuenow":null},63,{"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0"}],["spinbutton",2,0,[],64,[[{"attributes":[{"name":"type","value":"number"}],"name":"input"},"HTML"]],[],[],{},65,{"aria-valuenow":"0"}],["status",0,0,[],14,[["output","HTML"]],[],[],{},5,{"aria-atomic":"true","aria-live":"polite"}],["strong",0,23,["aria-label","aria-labelledby"],1,[["strong","HTML"]],[],[],{},5],["subscript",0,23,["aria-label","aria-labelledby"],1,[["sub","HTML"]],[],[],{},5],["superscript",0,23,["aria-label","aria-labelledby"],1,[["sup","HTML"]],[],[],{},5],["switch",6,9,[],66,[["button","ARIA"]],[],[],{"aria-checked":null},67],["tab",4,9,[],68,[],["tablist"],[],{},69,{"aria-selected":"false"}],["table",2,0,[],70,[["table","HTML"]],[],[["row"],["row","rowgroup"]],{},5],["tablist",0,0,[],71,[{"module":"DAISY","concept":{"name":"guide"}}],[],[["tab"]],{},72,{"aria-orientation":"horizontal"}],["tabpanel",2,0,[],1,[],[],[],{},5],["term",0,0,[],1,[["dfn","HTML"],["dt","HTML"]],[],[],{},5],["textbox",2,0,[],73,[[{"attributes":[{"constraints":["undefined"],"name":"type"},{"constraints":["undefined"],"name":"list"}],"constraints":["the list attribute is not set"],"name":"input"},"HTML"],[{"attributes":[{"constraints":["undefined"],"name":"list"},{"name":"type","value":"email"}],"constraints":["the list attribute is not set"],"name":"input"},"HTML"],[{"attributes":[{"constraints":["undefined"],"name":"list"},{"name":"type","value":"tel"}],"constraints":["the list attribute is not set"],"name":"input"},"HTML"],[{"attributes":[{"constraints":["undefined"],"name":"list"},{"name":"type","value":"text"}],"constraints":["the list attribute is not set"],"name":"input"},"HTML"],[{"attributes":[{"constraints":["undefined"],"name":"list"},{"name":"type","value":"url"}],"constraints":["the list attribute is not set"],"name":"input"},"HTML"],["input","XForms"],["textarea","HTML"]],[],[],{},26],["time",0,0,[],1,[["time","HTML"]],[],[],{},5],["timer",0,0,[],1,[],[],[],{},74],["toolbar",0,0,[],10,[["menubar","ARIA"]],[],[],{},75,{"aria-orientation":"horizontal"}],["tooltip",2,9,[],1,[],[],[],{},5],["tree",2,0,[],76,[],[],[["treeitem","group"],["treeitem"]],{},40,{"aria-orientation":"vertical"}],["treegrid",2,0,[],77,[],[],[["row"],["row","rowgroup"]],{},78],["treeitem",2,9,[],79,[],["group","tree"],[],{"aria-selected":null},80,{"aria-selected":"false"}],["doc-abstract",0,0,[],81,[["abstract [EPUB-SSV]","EPUB"]],[],[],{},5],["doc-acknowledgments",0,0,[],81,[["acknowledgments [EPUB-SSV]","EPUB"]],[],[],{},20],["doc-afterword",0,0,[],81,[["afterword [EPUB-SSV]","EPUB"]],[],[],{},20],["doc-appendix",0,0,[],81,[["appendix [EPUB-SSV]","EPUB"]],[],[],{},20],["doc-backlink",2,9,[],82,[["referrer [EPUB-SSV]","EPUB"]],[],[],{},83],["doc-biblioentry",2,0,[],84,[["EPUB biblioentry [EPUB-SSV]","EPUB"]],["doc-bibliography"],[],{},85],["doc-bibliography",0,0,[],81,[["bibliography [EPUB-SSV]","EPUB"]],[],[["doc-biblioentry"]],{},20],["doc-biblioref",2,9,[],82,[["biblioref [EPUB-SSV]","EPUB"]],[],[],{},83],["doc-chapter",0,0,[],81,[["chapter [EPUB-SSV]","EPUB"]],[],[],{},20],["doc-colophon",0,0,[],81,[["colophon [EPUB-SSV]","EPUB"]],[],[],{},5],["doc-conclusion",0,0,[],81,[["conclusion [EPUB-SSV]","EPUB"]],[],[],{},20],["doc-cover",0,0,[],81,[["cover [EPUB-SSV]","EPUB"]],[],[],{},86],["doc-credit",0,0,[],81,[["credit [EPUB-SSV]","EPUB"]],[],[],{},5],["doc-credits",0,0,[],81,[["credits [EPUB-SSV]","EPUB"]],[],[],{},20],["doc-dedication",0,0,[],81,[["dedication [EPUB-SSV]","EPUB"]],[],[],{},5],["doc-endnote",0,0,[],84,[["rearnote [EPUB-SSV]","EPUB"]],["doc-endnotes"],[],{},85],["doc-endnotes",0,0,[],81,[["rearnotes [EPUB-SSV]","EPUB"]],[],[["doc-endnote"]],{},20],["doc-epigraph",0,0,[],81,[["epigraph [EPUB-SSV]","EPUB"]],[],[],{},5],["doc-epilogue",0,0,[],81,[["epilogue [EPUB-SSV]","EPUB"]],[],[],{},20],["doc-errata",0,0,[],81,[["errata [EPUB-SSV]","EPUB"]],[],[],{},20],["doc-example",0,0,[],81,[],[],[],{},5],["doc-footnote",0,0,[],81,[["footnote [EPUB-SSV]","EPUB"]],[],[],{},5],["doc-foreword",0,0,[],81,[["foreword [EPUB-SSV]","EPUB"]],[],[],{},20],["doc-glossary",0,0,[],81,[["glossary [EPUB-SSV]","EPUB"]],[],[["definition"],["term"]],{},20],["doc-glossref",2,9,[],82,[["glossref [EPUB-SSV]","EPUB"]],[],[],{},83],["doc-index",0,0,[],81,[["index [EPUB-SSV]","EPUB"]],[],[],{},87],["doc-introduction",0,0,[],81,[["introduction [EPUB-SSV]","EPUB"]],[],[],{},20],["doc-noteref",2,9,[],82,[["noteref [EPUB-SSV]","EPUB"]],[],[],{},83],["doc-notice",0,0,[],81,[["notice [EPUB-SSV]","EPUB"]],[],[],{},88],["doc-pagebreak",6,0,[],89,[["pagebreak [EPUB-SSV]","EPUB"]],[],[],{},90,{"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0"}],["doc-pagelist",0,0,[],81,[["page-list [EPUB-SSV]","EPUB"]],[],[],{},87],["doc-part",2,0,[],81,[["part [EPUB-SSV]","EPUB"]],[],[],{},20],["doc-preface",0,0,[],81,[["preface [EPUB-SSV]","EPUB"]],[],[],{},20],["doc-prologue",0,0,[],81,[["prologue [EPUB-SSV]","EPUB"]],[],[],{},20],["doc-pullquote",0,0,[],8,[["pullquote [EPUB-SSV]","EPUB"]],[],[],{},91],["doc-qna",0,0,[],81,[["qna [EPUB-SSV]","EPUB"]],[],[],{},5],["doc-subtitle",0,0,[],81,[["subtitle [EPUB-SSV]","EPUB"]],[],[],{},37],["doc-tip",0,0,[],81,[["help [EPUB-SSV]","EPUB"]],[],[],{},88],["doc-toc",0,0,[],81,[["toc [EPUB-SSV]","EPUB"]],[],[],{},87],["graphics-document",2,0,[],81,[{"module":"GRAPHICS","concept":{"name":"graphics-object"}},{"module":"ARIA","concept":{"name":"img"}},{"module":"ARIA","concept":{"name":"article"}}],[],[],{},19],["graphics-object",0,9,[],92,[{"module":"GRAPHICS","concept":{"name":"graphics-document"}},{"module":"ARIA","concept":{"name":"group"}},{"module":"ARIA","concept":{"name":"img"}},{"module":"GRAPHICS","concept":{"name":"graphics-symbol"}}],[],[],{},75],["graphics-symbol",6,0,[],81,[],[],[],{},86]],"aria":[["aria-activedescendant",{"type":"id"}],["aria-atomic",{"type":"boolean"}],["aria-autocomplete",{"type":"token","values":["inline","list","both","none"]}],["aria-braillelabel",{"type":"string"}],["aria-brailleroledescription",{"type":"string"}],["aria-busy",{"type":"boolean"}],["aria-checked",{"type":"tristate"}],["aria-colcount",{"type":"integer"}],["aria-colindex",{"type":"integer"}],["aria-colspan",{"type":"integer"}],["aria-controls",{"type":"idlist"}],["aria-current",{"type":"token","values":["page","step","location","date","time",true,false]}],["aria-describedby",{"type":"idlist"}],["aria-description",{"type":"string"}],["aria-details",{"type":"id"}],["aria-disabled",{"type":"boolean"}],["aria-dropeffect",{"type":"tokenlist","values":["copy","execute","link","move","none","popup"]}],["aria-errormessage",{"type":"id"}],["aria-expanded",{"type":"boolean","allowundefined":true}],["aria-flowto",{"type":"idlist"}],["aria-grabbed",{"type":"boolean","allowundefined":true}],["aria-haspopup",{"type":"token","values":[false,true,"menu","listbox","tree","grid","dialog"]}],["aria-hidden",{"type":"boolean","allowundefined":true}],["aria-invalid",{"type":"token","values":["grammar",false,"spelling",true]}],["aria-keyshortcuts",{"type":"string"}],["aria-label",{"type":"string"}],["aria-labelledby",{"type":"idlist"}],["aria-level",{"type":"integer"}],["aria-live",{"type":"token","values":["assertive","off","polite"]}],["aria-modal",{"type":"boolean"}],["aria-multiline",{"type":"boolean"}],["aria-multiselectable",{"type":"boolean"}],["aria-orientation",{"type":"token","values":["vertical","undefined","horizontal"]}],["aria-owns",{"type":"idlist"}],["aria-placeholder",{"type":"string"}],["aria-posinset",{"type":"integer"}],["aria-pressed",{"type":"tristate"}],["aria-readonly",{"type":"boolean"}],["aria-relevant",{"type":"tokenlist","values":["additions","all","removals","text"]}],["aria-required",{"type":"boolean"}],["aria-roledescription",{"type":"string"}],["aria-rowcount",{"type":"integer"}],["aria-rowindex",{"type":"integer"}],["aria-rowspan",{"type":"integer"}],["aria-selected",{"type":"boolean","allowundefined":true}],["aria-setsize",{"type":"integer"}],["aria-sort",{"type":"token","values":["ascending","descending","none","other"]}],["aria-valuemax",{"type":"number"}],["aria-valuemin",{"type":"number"}],["aria-valuenow",{"type":"number"}],["aria-valuetext",{"type":"string"}]],"dom":["a","abbr","acronym","address","applet","area","article","aside","audio","b","!base","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","!col","!colgroup","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","!head","header","hgroup","hr","!html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","!link","main","map","mark","marquee","menu","menuitem","!meta","meter","nav","!noembed","!noscript","object","ol","optgroup","option","output","p","!param","!picture","pre","progress","q","rp","rt","rtc","ruby","s","samp","!script","section","select","small","!source","spacer","span","strike","strong","!style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","!title","tr","!track","tt","u","ul","var","video","wbr","xmp"]}`;export{isDisplayNone as A,implicitRoleJestDom as B,computeHeadingLevel as C,computeTextAlternativeImpl as D,computeAccessibleNameImpl as E,daaExplicitRole as F,labelMapForTree as G,tlRole as H,daaGetRole as I,labelsOf as K,daaImplicitRole as L,implOf as M,queryIdRefs as N,withStyleOverride as O,anyTag as P,getImplicitRoles as R,computeAriaValueText as S,computeAccessibleDescriptionImpl as T,inputType as U,roleAttribute as V,b as W,computeAriaPressed as _,prettyRoles as a,computeAriaValueMin as b,isInaccessibleWithStyle as c,ariaCheckedState as d,ariaPressedState as f,computeAriaExpanded as g,computeAriaCurrent as h,getRolesImpl as i,isVisibilityHidden as j,isDisplayInline as k,isSubtreeInaccessible as l,computeAriaChecked as m,V as n,isInaccessible as o,computeAriaBusy as p,__name as q,getRoles as r,isInaccessibleImpl as s,H as t,isSubtreeInaccessibleImpl as u,computeAriaSelected as v,isDisabledImpl as w,computeAriaValueNow as x,computeAriaValueMax as y,implicitRole as z};
@@ -0,0 +1,4 @@
1
+ var e=Object.defineProperty,__name=(t,n)=>e(t,`name`,{value:n,configurable:!0});let t=require("@ctrl/dom/internal");const n=/* @__PURE__ */ new Set([`hidden`,`text`,`search`,`tel`,`url`,`email`,`password`,`date`,`month`,`week`,`time`,`datetime-local`,`number`,`range`,`color`,`checkbox`,`radio`,`file`,`submit`,`image`,`reset`,`button`]);function inputType(e){let r=(0,t.attr)(e,`type`);if(r===null)return`text`;if(n.has(r))return r;let i=r.toLowerCase();return n.has(i)?i:`text`}function childTextContent(e){let t=``;for(let n=e.first;n!==null;n=n.next)(n.type===3||n.type===4)&&(t+=n.data);return t}function controlValue(e){let n=e.node.value;return typeof n==`string`?n:e.tag===t.T.textarea?childTextContent(e):(0,t.attr)(e,`value`)??``}function checkedness(e){let n=e.node.checked;return typeof n==`boolean`?n:(0,t.attr)(e,`checked`)!==null}function indeterminate(e){return e.node.indeterminate===!0}function listOfOptions(e,n){for(let r=e.first;r!==null;r=r.next)if(r.ns===t.HTML_NS){if(r.tag===t.T.option)n.push(r);else if(r.tag===t.T.optgroup)for(let e=r.first;e!==null;e=e.next)e.tag===t.T.option&&e.ns===t.HTML_NS&&n.push(e)}return n}function selectSize(e){let n=(0,t.attr)(e,`size`);if(n===null)return 0;let r=/^[\t\n\f\r ]*\+?(\d+)/.exec(n);if(r===null)return 0;let i=Number(r[1]);return i>2147483647?0:i}function fallbackSelected(e,n){if(e===null)return(0,t.attr)(n,`selected`)!==null;let r=listOfOptions(e,[]);if((0,t.attr)(e,`multiple`)!==null)return(0,t.attr)(n,`selected`)!==null;let i=null;for(let e of r)(0,t.attr)(e,`selected`)!==null&&(i=e);if(i===null&&selectSize(e)<=1){for(let e of r)if((0,t.attr)(e,`disabled`)===null&&(e.parent===null||e.parent.tag!==t.T.optgroup||(0,t.attr)(e.parent,`disabled`)===null)){i=e;break}}return i===n}function owningSelect(e){let n=e.parent;return n===null?null:n.tag===t.T.select&&n.ns===t.HTML_NS?n:n.tag===t.T.optgroup&&n.parent!==null&&n.parent.tag===t.T.select&&n.parent.ns===t.HTML_NS?n.parent:null}function optionSelected(e){let t=e.node.selected;return typeof t==`boolean`?t:fallbackSelected(owningSelect(e),e)}function selectedOptions(e){let n=e.node.selectedOptions;if(n!=null&&typeof n.length==`number`){let e=[];for(let r=0;r<n.length;r++)e.push(n[r][t.$impl]);return e}let r=[];for(let t of listOfOptions(e,[]))optionSelected(t)&&r.push(t);return r}function labelsOf(e){return(0,t.isLabelable)(e)?(0,t.labelsFor)(e):null}function labelMapForTree(e){let n=(0,t.treeRoot)(e),i=n.doc,a=i,o=a[t.$treeVersion]+a[t.$labelsVersion],s=(0,t.derivedCache)(i,r,newLabelMaps),c=s.get(n);if(c!==void 0&&c.version===o)return c.map;let l=buildLabelMap(n);return s.set(n,{version:o,map:l}),l}const r={},newLabelMaps=()=>/* @__PURE__ */ new WeakMap;function buildLabelMap(e){let n=/* @__PURE__ */ new Map,r=[],i=!1;for(let n=e;n!==null;n=(0,t.nextInTree)(n,e))n.type===t.ELEMENT_NODE&&n.tag===t.T.label&&(r.push(n),(0,t.attr)(n,`for`)!==null&&(i=!0));if(r.length===0)return n;let a=null;if(i&&e.type!==t.DOCUMENT_NODE){a=/* @__PURE__ */ new Map;for(let n=e;n!==null;n=(0,t.nextInTree)(n,e))n.type===t.ELEMENT_NODE&&n.id!==``&&!a.has(n.id)&&a.set(n.id,n)}for(let e of r){let r=a===null?(0,t.labeledControl)(e):forControl(e,a);if(r===null)continue;let i=n.get(r);i===void 0?n.set(r,[e]):i.push(e)}return n}function forControl(e,n){let r=(0,t.attr)(e,`for`);if(r===null)return(0,t.labeledControl)(e);let i=r===``?void 0:n.get(r);return i!==void 0&&(0,t.isLabelable)(i)?i:null}function anyTag(e){return e.tag===0?(0,t.tagId)(e.name):e.tag}function isSet(e,n){let r=(0,t.attr)(e,n);return r!==null&&r!==``}function eqCI(e,t){return e!==null&&e.length===t.length&&(e===t||e.toLowerCase()===t)}const i=Array(Object.keys(t.T).length+1).fill(``);for(let e of[`input`,`select`,`th`,`form`,`img`,`a`,`area`,`section`])i[(0,t.tagId)(e)]=void 0;setRoles(i,{complementary:`aside`,article:`article`,banner:`header`,blockquote:`blockquote`,button:`button`,caption:`caption`,cell:`td`,code:`code`,contentinfo:`footer`,definition:`dd`,deletion:`del`,dialog:`dialog`,document:`html`,emphasis:`em`,figure:`figure`,generic:`b bdo body data div hgroup i pre q samp small span u`,group:`details fieldset optgroup address`,heading:`h1 h2 h3 h4 h5 h6`,insertion:`ins`,list:`menu ol ul`,listbox:`datalist`,listitem:`li`,main:`main`,mark:`mark`,math:`math`,meter:`meter`,navigation:`nav`,option:`option`,paragraph:`p`,progressbar:`progress`,row:`tr`,rowgroup:`tbody tfoot thead`,separator:`hr`,status:`output`,strong:`strong`,subscript:`sub`,superscript:`sup`,table:`table`,term:`dfn dt`,textbox:`textarea`,time:`time`});function setRoles(e,n){for(let r in n)for(let i of n[r].split(` `))e[(0,t.tagId)(i)]=r}function implicitRole(e){if(e.type!==t.ELEMENT_NODE)return``;let n=i[anyTag(e)];if(n!==void 0)return n;let r=e.doc[t.$version],a=(0,t.nodeCache)(e);return a.roleVersion!==r&&(a.role=implicitRoleImpl(e,!1),a.roleVersion=r),a.role}function roleAttribute(e){return(e.flags&t.F_ROLE_ATTR)===0?null:(0,t.attr)(e,`role`)}function implicitRoleJestDom(e){return implicitRoleImpl(e,!0)}function implicitRoleImpl(e,n){if(e.type!==t.ELEMENT_NODE)return``;let r=anyTag(e);switch(r){case t.T.input:return inputRole(e,n);case t.T.select:return(0,t.attr)(e,`multiple`)===null&&(0,t.attr)(e,`size`)===null?`combobox`:`listbox`;case t.T.th:{let n=(0,t.attr)(e,`scope`);return eqCI(n,`col`)||eqCI(n,`colgroup`)?`columnheader`:eqCI(n,`row`)||eqCI(n,`rowgroup`)?`rowheader`:`columnheader`}case t.T.form:return n?(0,t.ariaAttr)(e,`aria-label`)!==null||(0,t.ariaAttr)(e,`aria-labelledby`)!==null||(0,t.attr)(e,`name`)!==null?`form`:``:isSet(e,`aria-label`)||isSet(e,`aria-labelledby`)||isSet(e,`name`)?`form`:``;case t.T.img:return n?`img`:(0,t.attr)(e,`alt`)===``?`presentation`:`img`;case t.T.a:case t.T.area:return n?(0,t.attr)(e,`href`)===null?`generic`:`link`:isSet(e,`href`)?`link`:`generic`;case t.T.section:return n?(0,t.ariaAttr)(e,`aria-label`)!==null||(0,t.ariaAttr)(e,`aria-labelledby`)!==null?`region`:`generic`:isSet(e,`aria-label`)||isSet(e,`aria-labelledby`)?`region`:`generic`;default:return i[r]}}function inputRole(e,n){let r=(0,t.attr)(e,`list`),i=(0,t.attr)(e,`type`),a=e.ns===t.HTML_NS&&inputType(e)===`text`;if((n?r!==null:r!==null&&r!==``)&&(a||eqCI(i,`email`)||eqCI(i,`search`)||eqCI(i,`tel`)||eqCI(i,`url`)))return`combobox`;if(r===null){if(eqCI(i,`search`))return`searchbox`;if(i===null||a||eqCI(i,`email`)||eqCI(i,`tel`)||eqCI(i,`url`))return`textbox`}if(i===null)return``;switch(i.toLowerCase()){case`button`:case`image`:case`reset`:case`submit`:return`button`;case`checkbox`:return`checkbox`;case`radio`:return`radio`;case`range`:return`slider`;case`number`:return`spinbutton`;default:return``}}function getImplicitRoles(e){let t=implicitRole(e);return t===``?[]:[t]}function tlRole(e){if(e.type!==t.ELEMENT_NODE)return``;let n=roleAttribute(e);if(n!==null){let e=n.indexOf(` `);return e===-1?n:n.slice(0,e)}return implicitRole(e)}const a=[];setRoles(a,{article:`article`,complementary:`aside`,button:`button summary`,listbox:`datalist`,definition:`dd`,group:`details fieldset optgroup`,dialog:`dialog`,term:`dt`,figure:`figure`,form:`form`,contentinfo:`footer`,heading:`h1 h2 h3 h4 h5 h6`,banner:`header`,separator:`hr`,document:`html`,legend:`legend`,listitem:`li`,math:`math`,main:`main`,list:`menu ol ul`,navigation:`nav`,option:`option`,status:`output`,progressbar:`progress`,region:`section`,table:`table`,rowgroup:`tbody tfoot thead`,textbox:`textarea`,cell:`td`,columnheader:`th`,row:`tr`});const o=[`aria-atomic`,`aria-busy`,`aria-controls`,`aria-current`,`aria-describedby`,`aria-details`,`aria-dropeffect`,`aria-flowto`,`aria-grabbed`,`aria-hidden`,`aria-keyshortcuts`,`aria-label`,`aria-labelledby`,`aria-live`,`aria-owns`,`aria-relevant`,`aria-roledescription`],s=o.toSpliced(4,0,`aria-description`);function isProhibited(e,t,n){switch(e){case`caption`:case`code`:case`deletion`:case`emphasis`:case`insertion`:case`paragraph`:case`presentation`:case`strong`:case`subscript`:case`superscript`:return t===`aria-label`||t===`aria-labelledby`;case`none`:return n===6&&(t===`aria-label`||t===`aria-labelledby`);case`generic`:return t===`aria-label`||t===`aria-labelledby`||t===`aria-roledescription`;default:return!1}}function hasGlobalAriaAttributes(e,n,r){if(e.attrs===null)return!1;let i=r===6?s:o;for(let a=0;a<i.length;a++){let o=i[a];if((0,t.attr)(e,o)!==null&&!isProhibited(n,o,r))return!0}return!1}function daaExplicitRole(e){let t=roleAttribute(e);if(t===null)return null;let n=t.trim(),r=n.indexOf(` `),i=r===-1?n:n.slice(0,r);return i.length>0?i:null}function daaImplicitRole(e,n){let r=anyTag(e),i=a[r];if(i!==void 0)return i;switch(r){case t.T.a:case t.T.area:case t.T.link:return(0,t.attr)(e,`href`)===null?null:`link`;case t.T.img:return(0,t.attr)(e,`alt`)===``&&!hasGlobalAriaAttributes(e,`img`,n)?`presentation`:`img`;case t.T.input:{if(e.ns!==t.HTML_NS)return null;let n=inputType(e);switch(n){case`button`:case`image`:case`reset`:case`submit`:return`button`;case`checkbox`:case`radio`:return n;case`range`:return`slider`;case`email`:case`tel`:case`text`:case`url`:return(0,t.attr)(e,`list`)===null?`textbox`:`combobox`;case`search`:return(0,t.attr)(e,`list`)===null?`searchbox`:`combobox`;case`number`:return`spinbutton`;default:return null}}case t.T.select:return(0,t.attr)(e,`multiple`)!==null||e.ns===t.HTML_NS&&selectSize(e)>1?`listbox`:`combobox`}return null}function isPresentationRole(e,t){return e===`presentation`||t===6&&e===`none`}function daaGetRole(e,t){let n=daaExplicitRole(e);if(n===null||isPresentationRole(n,t)){let r=daaImplicitRole(e,t);if(!isPresentationRole(n,t)||hasGlobalAriaAttributes(e,r??``,t))return r}return n}function implOf(e){let n=e[t.$impl];if(n===void 0)throw TypeError(`Expected a node created by @ctrl/dom.`);return n}function elementByIdInRoot(e,n){if(n===``)return null;if(e.type===t.DOCUMENT_NODE)return e.node._idLookup(n);for(let r=e.first;r!==null;r=(0,t.nextInTree)(r,e))if(r.type===t.ELEMENT_NODE&&r.id===n)return r;return null}function queryIdRefs(e,n,r){if(n===null)return r;let i=(0,t.treeRoot)(e);if(i.type===t.ELEMENT_NODE)return r;let a=0,o=n.length;for(;a<=o;){let e=n.indexOf(` `,a);if(e===-1&&(e=o),e>a){let t=elementByIdInRoot(i,n.slice(a,e));t!==null&&r.push(t)}a=e+1}return r}function textContent(e){let n=``;for(let r=e.first;r!==null;r=(0,t.nextInTree)(r,e))(r.type===t.TEXT_NODE||r.type===t.CDATA_SECTION_NODE)&&(n+=r.data);return n}function isDisplayNone(e){return((0,t.styledDisplay)(e)??(0,t.uaDisplay)(e))===`none`}function isDisplayInline(e){return((0,t.styledDisplay)(e)??(0,t.uaDisplay)(e))===`inline`}function isVisibilityHidden(e){return(0,t.computedVisibility)(e)===`hidden`}function pseudoText(e,n){if((0,t.pseudoContent)(e,n)===``)return``;let r=(0,t.computedValue)(e,`content`,n);return/^["'].*["']$/.test(r)?r.slice(1,-1):``}var Ctx=class{consulted;compute;hidden;pseudo;gcs;flavor;usedState;constructor(e,t,n){this.consulted=/* @__PURE__ */ new Set,this.reset(e,t,n)}reset(e,t,n){this.compute=e;let r=t?.getComputedStyle;this.gcs=typeof r==`function`?r:null,this.pseudo=t?.computedStyleSupportsPseudoElements??this.gcs!==null,this.hidden=t?.hidden??!1,this.flavor=n,this.usedState=!1}};const c=new Ctx(0,void 0,5);let l=!1;function acquireCtx(e,t,n){return l?new Ctx(e,t,n):(l=!0,c.reset(e,t,n),c)}function releaseCtx(e){e===c&&(e.consulted.clear(),e.gcs=null,l=!1)}function roleOf(e,n){return n.type===t.ELEMENT_NODE?daaGetRole(n,e.flavor):null}function isControl(e){switch(e){case`button`:case`combobox`:case`listbox`:case`textbox`:return!0;default:return isRange(e)}}function isRange(e){switch(e){case`meter`:case`progressbar`:case`scrollbar`:case`slider`:case`spinbutton`:return!0;default:return!1}}function allowsNameFromContent(e){switch(e){case`button`:case`cell`:case`checkbox`:case`columnheader`:case`gridcell`:case`heading`:case`label`:case`legend`:case`link`:case`menuitem`:case`menuitemcheckbox`:case`menuitemradio`:case`option`:case`radio`:case`row`:case`rowheader`:case`switch`:case`tab`:case`tooltip`:case`treeitem`:return!0;default:return!1}}function wrapperOf(e){return e.node}function isHidden(e,n){if(n.type!==t.ELEMENT_NODE)return!1;if((0,t.attr)(n,`hidden`)!==null||(0,t.ariaAttr)(n,`aria-hidden`)===`true`)return!0;let r=e.gcs;if(r!==null){let e=r(wrapperOf(n));return e.getPropertyValue(`display`)===`none`||e.getPropertyValue(`visibility`)===`hidden`}return isDisplayNone(n)||isVisibilityHidden(n)}function displayIsInline(e,t){let n=e.gcs;return n===null?isDisplayInline(t):n(wrapperOf(t)).getPropertyValue(`display`)===`inline`}function pseudoContent(e,t,n){let r=e.gcs;if(r!==null){let e=r(wrapperOf(t),n).getPropertyValue(`content`);return/^["'].*["']$/.test(e)?e.slice(1,-1):``}return pseudoText(t,n)}function isLocal(e,n){return e.type===t.ELEMENT_NODE&&anyTag(e)===n}function htmlInputType(e){return e.ns===t.HTML_NS&&e.tag===t.T.input?inputType(e):``}function findAttr(e,t){let n=e.attrs;if(n===null)return null;for(let e=0;e<n.length;e++){let r=n[e];if((r.rare===null?r.localName:r.rare.name)===t)return r}return null}function useAttribute(e,t,n){let r=findAttr(t,n);return r!==null&&!e.consulted.has(r)&&r.value.trim()!==``?(e.consulted.add(r),r.value):null}function computeMiscTextAlternative(e,n,r){let i=``,a=n.type===t.ELEMENT_NODE;if(a&&e.pseudo&&(i=`${pseudoContent(e,n,`::before`)} ${i}`),a&&anyTag(n)===t.T.slot){let t=slotAssignedNodes(n);if(t!==null&&t.length>0)for(let n=0;n<t.length;n++)i+=childText(e,t[n],r);else for(let t=n.first;t!==null;t=t.next)i+=childText(e,t,r)}else{for(let t=n.first;t!==null;t=t.next)i+=childText(e,t,r);if(a){let a=(0,t.ariaAttr)(n,`aria-owns`);if(a!==null){let t=queryIdRefs(n,a,[]);for(let n=0;n<t.length;n++)i+=childText(e,t[n],r)}}}return a&&e.pseudo&&(i=`${i} ${pseudoContent(e,n,`::after`)}`),i.trim()}function childText(e,n,r){let i=computeTextAlternative(e,n,r,!1,!0);return n.type===t.ELEMENT_NODE&&!displayIsInline(e,n)?` ${i} `:i}function slotAssignedNodes(e){let n=e.node.assignedNodes;if(typeof n!=`function`)return null;let r=n.call(e.node),i=[];for(let e=0;e<r.length;e++)i.push(r[e][t.$impl]);return i}function computeTooltipAttributeValue(e,n){return n.type===t.ELEMENT_NODE?useAttribute(e,n,`title`):null}function computeElementTextAlternative(e,n){if(n.type!==t.ELEMENT_NODE)return null;let r=anyTag(n);if(r===t.T.fieldset){e.consulted.add(n);for(let r=n.first;r!==null;r=r.next)if(isLocal(r,t.T.legend))return computeTextAlternative(e,r,!1,!1,!1)}else if(r===t.T.table){e.consulted.add(n);for(let r=n.first;r!==null;r=r.next)if(isLocal(r,t.T.caption))return computeTextAlternative(e,r,!1,!1,!1)}else if(r===t.T.svg){e.consulted.add(n);for(let e=n.first;e!==null;e=e.next)if(e.type===t.ELEMENT_NODE&&e.ns===t.SVG_NS&&e.name===`title`)return textContent(e);return null}else if(r===t.T.img||r===t.T.area){let t=useAttribute(e,n,`alt`);if(t!==null)return t}else if(r===t.T.optgroup){let t=useAttribute(e,n,`label`);if(t!==null)return t}let i=r===t.T.input?htmlInputType(n):``;if(i===`button`||i===`submit`||i===`reset`){let t=useAttribute(e,n,`value`);if(t!==null)return t;if(i===`submit`)return`Submit`;if(i===`reset`)return`Reset`}let a=labelsOf(n);if(a!==null&&a.length!==0){e.consulted.add(n);let t=``;for(let n=0;n<a.length;n++){let r=computeTextAlternative(e,a[n],!0,!1,!0);r.length>0&&(t=t===``?r:`${t} ${r}`)}return t}if(i===`image`){let t=useAttribute(e,n,`alt`);if(t!==null)return t;let r=useAttribute(e,n,`title`);return r===null?`Submit Query`:r}if(roleOf(e,n)===`button`){let t=computeMiscTextAlternative(e,n,!1);if(t!==``)return t}return null}function selectedOptionsOf(e,n){return anyTag(n)===t.T.select?(e.usedState=!0,n.ns===t.HTML_NS?selectedOptions(n):querySelectorAllSubtree(n,`selected`,null)):querySelectorAllSubtree(n,`aria-selected`,`true`)}function querySelectorAllSubtree(e,n,r){let i=[];collectDescendantsWithAttr(e,n,r,i);let a=(0,t.ariaAttr)(e,`aria-owns`);if(a!==null){let t=queryIdRefs(e,a,[]);for(let e=0;e<t.length;e++)collectDescendantsWithAttr(t[e],n,r,i)}return i}function collectDescendantsWithAttr(e,n,r,i){for(let a=e.first;a!==null;a=(0,t.nextInTree)(a,e))if(a.type===t.ELEMENT_NODE){let e=(0,t.attr)(a,n);e!==null&&(r===null||e===r)&&i.push(a)}}function getValueOfTextbox(e,n){let r=anyTag(n);return(r===t.T.input||r===t.T.textarea)&&n.ns===t.HTML_NS?(e.usedState=!0,controlValue(n)):textContent(n)}function computeTextAlternative(e,n,r,i,a){let o=e.consulted;if(o.has(n))return``;if(!e.hidden&&!i&&isHidden(e,n))return o.add(n),``;let s=n.type===t.ELEMENT_NODE;if(s&&e.compute===0&&!i){let t=findAttr(n,`aria-labelledby`);if(t!==null&&!o.has(t)){let i=queryIdRefs(n,t.value,[]);if(i.length>0){o.add(t);let n=``;for(let t=0;t<i.length;t++){let a=computeTextAlternative(e,i[t],r,!0,!1);n=t===0?a:`${n} ${a}`}return n}}}let c=s?daaGetRole(n,e.flavor):null,l=a&&e.compute===0&&isControl(c);if(!l){let r=s?((0,t.ariaAttr)(n,`aria-label`)??``).trim():``;if(r!==``&&e.compute===0)return o.add(n),r;if(c!==`presentation`&&c!==`none`){let t=computeElementTextAlternative(e,n);if(t!==null)return o.add(n),t}}if(c===`menu`)return o.add(n),``;if(l||r||i){if(c===`combobox`||c===`listbox`){o.add(n);let i=selectedOptionsOf(e,n);if(i.length===0)return isLocal(n,t.T.input)?(e.usedState=!0,n.ns===t.HTML_NS?controlValue(n):``):``;let a=``;for(let t=0;t<i.length;t++){let n=computeTextAlternative(e,i[t],r,!1,!0);a=t===0?n:`${a} ${n}`}return a}if(isRange(c)){o.add(n);let e=(0,t.ariaAttr)(n,`aria-valuetext`);if(e!==null)return e;let r=(0,t.ariaAttr)(n,`aria-valuenow`);return r===null?(0,t.attr)(n,`value`)||``:r}if(c===`textbox`)return o.add(n),getValueOfTextbox(e,n)}if(allowsNameFromContent(c)||s&&i||s&&anyTag(n)===t.T.caption){let t=computeMiscTextAlternative(e,n,r);if(t!==``)return o.add(n),t}if(n.type===t.TEXT_NODE)return o.add(n),n.data;if(a)return o.add(n),computeMiscTextAlternative(e,n,r);let u=computeTooltipAttributeValue(e,n);return u===null?(o.add(n),``):(o.add(n),u)}const u=/\s\s+/g;function isRegExpWs(e){return e<=32?e===32||e>=9&&e<=13:e<160?!1:e===160||e===5760||e>=8192&&e<=8202||e===8232||e===8233||e===8239||e===8287||e===12288||e===65279}function asFlatString(e){let t=e.length;if(t===0)return``;if(isRegExpWs(e.charCodeAt(0))||isRegExpWs(e.charCodeAt(t-1)))return e.trim().replace(u,` `);let n=!1;for(let r=1;r<t-1;r++){let t=isRegExpWs(e.charCodeAt(r));if(t&&n)return e.trim().replace(u,` `);n=t}return e}function computeTextAlternativeImpl(e,t,n){let r=acquireCtx(+(t?.compute===`description`),t,n);try{return asFlatString(computeTextAlternative(r,e,!1,r.compute===1,!1))}finally{releaseCtx(r)}}function prohibitsNaming(e,t){switch(e){case`caption`:case`code`:case`deletion`:case`emphasis`:case`generic`:case`insertion`:case`paragraph`:case`presentation`:case`strong`:case`subscript`:case`superscript`:return!0;case`none`:return t===6;default:return!1}}function withStyleOverride(e,n){if(n!==void 0&&n.getComputedStyle!==void 0)return n;let r=(0,t.getComputedStyleOverride)(e);return r===null?n:{...n,getComputedStyle:r,computedStyleSupportsPseudoElements:n?.computedStyleSupportsPseudoElements??!1}}function isDefaultOptions(e){return e===void 0||e.getComputedStyle===void 0&&e.computedStyleSupportsPseudoElements!==!0&&e.hidden!==!0&&e.compute!==`description`}function computeAccessibleNameImpl(e,n,r){if(e.type===t.ELEMENT_NODE&&prohibitsNaming(daaGetRole(e,r),r))return``;let i=r===5&&e.type===t.ELEMENT_NODE&&isDefaultOptions(n),a=e.doc;if(i){let n=e.cache;if(n!==null&&n.nameVersion===a[t.$version]&&n.ariaNameStyleVersion===a[t.$styleVersion])return n.name}let o=acquireCtx(0,n,r),s,c;try{s=asFlatString(computeTextAlternative(o,e,!1,!1,!1)),c=o.usedState}finally{releaseCtx(o)}if(i&&!c){let n=(0,t.nodeCache)(e);n.nameVersion=a[t.$version],n.ariaNameStyleVersion=a[t.$styleVersion],n.name=s}return s}function computeAccessibleDescriptionImpl(e,n,r){let i=``;if(e.type===t.ELEMENT_NODE){let a=(0,t.ariaAttr)(e,`aria-describedby`);if(a!==null){let t=queryIdRefs(e,a,[]),o={...n,compute:`description`};for(let e=0;e<t.length;e++){let n=computeTextAlternativeImpl(t[e],o,r);i=e===0?n:`${i} ${n}`}}i===``&&r===6&&(i=(0,t.ariaAttr)(e,`aria-description`)??``),i===``&&(i=(0,t.attr)(e,`title`)??``)}return i}function checkBooleanAttribute(e,n){let r=(0,t.ariaAttr)(e,n);if(r===`true`)return!0;if(r===`false`)return!1}function isHTMLTag(e,n){return e.tag===n&&e.ns===t.HTML_NS}function computeAriaSelected(e){return isHTMLTag(e,t.T.option)?optionSelected(e):checkBooleanAttribute(e,`aria-selected`)}function computeAriaBusy(e){return(0,t.ariaAttr)(e,`aria-busy`)===`true`}function computeAriaChecked(e){return isHTMLTag(e,t.T.input)?indeterminate(e)?void 0:checkedness(e):checkBooleanAttribute(e,`aria-checked`)}function ariaCheckedState(e){if(isHTMLTag(e,t.T.input))return indeterminate(e)?`mixed`:checkedness(e);let n=(0,t.ariaAttr)(e,`aria-checked`);if(n===`true`)return!0;if(n===`false`)return!1;if(n===`mixed`)return`mixed`}function computeAriaPressed(e){return checkBooleanAttribute(e,`aria-pressed`)}function ariaPressedState(e){let n=(0,t.ariaAttr)(e,`aria-pressed`);if(n===`true`)return!0;if(n===`false`)return!1;if(n===`mixed`)return`mixed`}function computeAriaCurrent(e){return checkBooleanAttribute(e,`aria-current`)??(0,t.ariaAttr)(e,`aria-current`)??!1}function computeAriaExpanded(e){return checkBooleanAttribute(e,`aria-expanded`)}function computeHeadingLevel(e){let n=(0,t.ariaAttr)(e,`aria-level`);if(n!==null&&n!==``){let e=Number(n);if(e)return e}if(e.ns===t.HTML_NS)switch(e.tag){case t.T.h1:return 1;case t.T.h2:return 2;case t.T.h3:return 3;case t.T.h4:return 4;case t.T.h5:return 5;case t.T.h6:return 6;default:return}}function computeAriaValueNow(e){let n=(0,t.ariaAttr)(e,`aria-valuenow`);return n===null?void 0:+n}function computeAriaValueMax(e){let n=(0,t.ariaAttr)(e,`aria-valuemax`);return n===null?void 0:+n}function computeAriaValueMin(e){let n=(0,t.ariaAttr)(e,`aria-valuemin`);return n===null?void 0:+n}function computeAriaValueText(e){return(0,t.ariaAttr)(e,`aria-valuetext`)??void 0}function isDisabledImpl(e){switch(anyTag(e)){case t.T.button:case t.T.fieldset:case t.T.input:case t.T.optgroup:case t.T.option:case t.T.select:case t.T.textarea:if((0,t.attr)(e,`disabled`)!==null)return!0}return(0,t.ariaAttr)(e,`aria-disabled`)===`true`}function isSubtreeInaccessibleImpl(e){return e.ns===t.HTML_NS&&(0,t.attr)(e,`hidden`)!==null||(0,t.ariaAttr)(e,`aria-hidden`)===`true`||isDisplayNone(e)}function chainInaccessible(e,n,r){let i=e.cache;if(i!==null&&i.ariaHiddenVersion===n&&i.ariaHiddenStyleVersion===r)return!!(i.ariaHiddenBits&1);let a=isSubtreeInaccessibleImpl(e);if(!a){let i=e.parent;i!==null&&i.type===t.ELEMENT_NODE&&(a=chainInaccessible(i,n,r))}let o=i??(0,t.nodeCache)(e);return o.ariaHiddenVersion=n,o.ariaHiddenStyleVersion=r,o.ariaHiddenBits=+!!a,a}function isInaccessibleImpl(e){if(isVisibilityHidden(e))return!0;let n=e.doc;return chainInaccessible(e,n[t.$version],n[t.$styleVersion])}function isInaccessibleWithStyle(e,n,r){if(n(e.node).visibility===`hidden`)return!0;for(let i=e;i!==null&&i.type===t.ELEMENT_NODE;i=i.parent){let e=r===null?void 0:r.get(i);if(e===void 0&&(e=isSubtreeInaccessibleWithStyle(i,n),r!==null&&r.set(i,e)),e)return!0}return!1}function isSubtreeInaccessibleWithStyle(e,n){return e.ns===t.HTML_NS&&(0,t.attr)(e,`hidden`)!==null||(0,t.ariaAttr)(e,`aria-hidden`)===`true`||n(e.node).display===`none`}const d=`Owner document of the element needs to have an associated window.`;function checkGetComputedStyle(e,n){if(n!==void 0&&`getComputedStyle`in n&&n.getComputedStyle!==void 0){let e=n.getComputedStyle;if(typeof e!=`function`)throw TypeError(d);return e}if(e.doc[t.$window]===null)throw TypeError(d);return(0,t.getComputedStyleOverride)(e)}function isSubtreeInaccessible(e,n){let r=implOf(e),i=checkGetComputedStyle(r,n);return i===null?isSubtreeInaccessibleImpl(r):r.ns===t.HTML_NS&&(0,t.attr)(r,`hidden`)!==null||(0,t.ariaAttr)(r,`aria-hidden`)===`true`||i(e).display===`none`}function isInaccessible(e,n){let r=implOf(e),i=checkGetComputedStyle(r,n),a=n?.isSubtreeInaccessible;if(i===null&&a===void 0)return isInaccessibleImpl(r);if(i===null?isVisibilityHidden(r):i(e).visibility===`hidden`)return!0;for(let e=r;e!==null&&e.type===t.ELEMENT_NODE;e=e.parent){let t=e.node;if(a===void 0?i===null?isSubtreeInaccessibleImpl(e):isSubtreeInaccessible(t,{getComputedStyle:i}):a(t))return!0}return!1}function getRolesImpl(e,n){let r=/* @__PURE__ */ new Map,i=n?null:(0,t.getComputedStyleOverride)(e),a=i===null?null:/* @__PURE__ */ new Map;for(let o=e;o!==null;){if(o.type===t.ELEMENT_NODE&&(n||!(i===null?isInaccessibleImpl(o):isInaccessibleWithStyle(o,i,a)))){let e=(0,t.attr)(o,`role`),n;if(e!==null){let t=e.indexOf(` `);n=t===-1?e:e.slice(0,t)}else n=implicitRole(o);if(e!==null||n!==``){let e=r.get(n);e===void 0?r.set(n,[o]):e.push(o)}}let s=null;for(let e=o.first;e!==null;e=e.next)if(e.type===t.ELEMENT_NODE){s=e;break}if(s===null){let n=o;for(;n!==null&&n!==e;){for(let e=n.next;e!==null;e=e.next)if(e.type===t.ELEMENT_NODE){s=e;break}if(s!==null)break;n=n.parent}}o=s}return r}function getRoles(e,t={}){let n=getRolesImpl(implOf(e),t.hidden??!1),r={};for(let[e,t]of n)r[e]=t.map(e=>e.node);return r}function prettyRoles(e,n,r){let i=implOf(e),a=getRolesImpl(i,n.hidden??!1),o=(0,t.getComputedStyleOverride)(i),s=n.computedStyleSupportsPseudoElements??!1,c=o===null?{computedStyleSupportsPseudoElements:s}:{computedStyleSupportsPseudoElements:s,getComputedStyle:o},l=`-`.repeat(50),u=[];for(let[e,t]of a){if(e===`generic`)continue;let i=t.map(e=>{let t=`Name "${computeAccessibleNameImpl(e,c,5)}":\n`,i=r(e.node.cloneNode(!1));return n.includeDescription?`${t}${`Description "${computeAccessibleDescriptionImpl(e,c,5)}":\n`}${i}`:`${t}${i}`}).join(`
2
+
3
+ `);u.push(`${e}:\n\n${i}\n\n${l}`)}return u.join(`
4
+ `)}const f=/* @__PURE__ */ new Map([[`article`,[[`article`],[]]],[`banner`,[[],[`header`]]],[`blockquote`,[[`blockquote`],[]]],[`button`,[[`button`],[`input`]]],[`caption`,[[`caption`],[]]],[`cell`,[[],[`td`]]],[`checkbox`,[[],[`input`]]],[`code`,[[`code`],[]]],[`columnheader`,[[],[`th`]]],[`combobox`,[[],[`input`,`select`]]],[`complementary`,[[],[`aside`]]],[`contentinfo`,[[],[`footer`]]],[`definition`,[[`dd`],[]]],[`deletion`,[[`del`],[]]],[`dialog`,[[`dialog`],[]]],[`document`,[[`html`],[]]],[`emphasis`,[[`em`],[]]],[`figure`,[[`figure`],[]]],[`form`,[[],[`form`]]],[`generic`,[[`b`,`bdo`,`body`,`data`,`div`,`hgroup`,`i`,`pre`,`q`,`samp`,`small`,`span`,`u`],[`a`,`area`,`aside`,`footer`,`header`,`section`]]],[`gridcell`,[[],[`td`]]],[`group`,[[`details`,`fieldset`,`optgroup`,`address`],[]]],[`heading`,[[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],[]]],[`img`,[[],[`img`]]],[`insertion`,[[`ins`],[]]],[`link`,[[],[`a`,`area`]]],[`list`,[[`menu`,`ol`,`ul`],[]]],[`listbox`,[[`datalist`],[`select`]]],[`listitem`,[[`li`],[]]],[`main`,[[`main`],[]]],[`mark`,[[`mark`],[]]],[`math`,[[`math`],[]]],[`meter`,[[`meter`],[]]],[`navigation`,[[`nav`],[]]],[`option`,[[`option`],[]]],[`paragraph`,[[`p`],[]]],[`presentation`,[[],[`img`]]],[`progressbar`,[[`progress`],[]]],[`radio`,[[],[`input`]]],[`region`,[[],[`section`]]],[`row`,[[`tr`],[]]],[`rowgroup`,[[`tbody`,`tfoot`,`thead`],[]]],[`rowheader`,[[],[`th`]]],[`searchbox`,[[],[`input`]]],[`separator`,[[`hr`],[]]],[`slider`,[[],[`input`]]],[`spinbutton`,[[],[`input`]]],[`status`,[[`output`],[]]],[`strong`,[[`strong`],[]]],[`subscript`,[[`sub`],[]]],[`superscript`,[[`sup`],[]]],[`table`,[[`table`],[]]],[`term`,[[`dfn`,`dt`],[]]],[`textbox`,[[`textarea`],[`input`]]],[`time`,[[`time`],[]]]]);Object.defineProperty(exports,"A",{enumerable:!0,get:function(){return isDisplayNone}}),Object.defineProperty(exports,"B",{enumerable:!0,get:function(){return implicitRoleJestDom}}),Object.defineProperty(exports,"C",{enumerable:!0,get:function(){return computeHeadingLevel}}),Object.defineProperty(exports,"D",{enumerable:!0,get:function(){return computeTextAlternativeImpl}}),Object.defineProperty(exports,"E",{enumerable:!0,get:function(){return computeAccessibleNameImpl}}),Object.defineProperty(exports,"F",{enumerable:!0,get:function(){return daaExplicitRole}}),Object.defineProperty(exports,"G",{enumerable:!0,get:function(){return labelsOf}}),Object.defineProperty(exports,"H",{enumerable:!0,get:function(){return tlRole}}),Object.defineProperty(exports,"I",{enumerable:!0,get:function(){return daaGetRole}}),Object.defineProperty(exports,"K",{enumerable:!0,get:function(){return __name}}),Object.defineProperty(exports,"L",{enumerable:!0,get:function(){return daaImplicitRole}}),Object.defineProperty(exports,"M",{enumerable:!0,get:function(){return implOf}}),Object.defineProperty(exports,"N",{enumerable:!0,get:function(){return queryIdRefs}}),Object.defineProperty(exports,"O",{enumerable:!0,get:function(){return withStyleOverride}}),Object.defineProperty(exports,"P",{enumerable:!0,get:function(){return anyTag}}),Object.defineProperty(exports,"R",{enumerable:!0,get:function(){return getImplicitRoles}}),Object.defineProperty(exports,"S",{enumerable:!0,get:function(){return computeAriaValueText}}),Object.defineProperty(exports,"T",{enumerable:!0,get:function(){return computeAccessibleDescriptionImpl}}),Object.defineProperty(exports,"U",{enumerable:!0,get:function(){return inputType}}),Object.defineProperty(exports,"V",{enumerable:!0,get:function(){return roleAttribute}}),Object.defineProperty(exports,"W",{enumerable:!0,get:function(){return labelMapForTree}}),Object.defineProperty(exports,"_",{enumerable:!0,get:function(){return computeAriaPressed}}),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return prettyRoles}}),Object.defineProperty(exports,"b",{enumerable:!0,get:function(){return computeAriaValueMin}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return isInaccessibleWithStyle}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return ariaCheckedState}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return ariaPressedState}}),Object.defineProperty(exports,"g",{enumerable:!0,get:function(){return computeAriaExpanded}}),Object.defineProperty(exports,"h",{enumerable:!0,get:function(){return computeAriaCurrent}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return getRolesImpl}}),Object.defineProperty(exports,"j",{enumerable:!0,get:function(){return isVisibilityHidden}}),Object.defineProperty(exports,"k",{enumerable:!0,get:function(){return isDisplayInline}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return isSubtreeInaccessible}}),Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return computeAriaChecked}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return isInaccessible}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return computeAriaBusy}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return getRoles}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return isInaccessibleImpl}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return`{"lists":[["author"],[1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40],[["roletype","widget"]],[0,15,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40],[15,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40],[["roletype","structure","section"]],[47,48,49,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40],[["roletype","structure"]],[],["author","contents"],[32,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,0,15],[["roletype","widget","composite"],["roletype","structure","section","group"]],[["roletype"]],[29,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40],[1,28,5,10,11,12,14,16,19,20,22,24,25,26,33,38,40],[1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,29],[["roletype","structure","section","alert"],["roletype","window","dialog"]],[0,15,17,18,21,23,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40],[35,45,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40],[["roletype","structure","document"]],[["roletype","structure","section","landmark"]],[15,18,21,36,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40],[["roletype","widget","command"]],["prohibited"],[8,9,42,43,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40],[6,17,18,23,37,39,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,15],[["roletype","widget","input"]],[46,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,8,9,42,43,15,17,18,21,23,37,39,44],[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]],[0,2,17,23,37,39,18,21,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,15],[["roletype","window"]],[["roletype","structure","section","list"]],[31,37,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,0,15,7,41],[["roletype","widget","composite"],["roletype","structure","section","table"]],[15,17,18,21,23,37,39,44,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,8,9,42,43],[["roletype","structure","section","cell"],["roletype","widget"]],[27,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40],[["roletype","structure","sectionhead"]],[15,18,21,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40],[17,18,23,31,37,39,32,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,0,15],[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]],[27,35,45,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40],[28,1,5,10,11,12,14,16,19,20,22,24,25,26,33,38,40],[3,4,13,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40],[["roletype","widget","composite","select","menu"],["roletype","structure","section","group","select","menu"]],[15,18,21,35,45,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40],[1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,15,6,17,18,23,37,39,21,35,45],[["roletype","widget","input","checkbox"],["roletype","widget","command","menuitem"]],[["roletype","widget","input","checkbox","menuitemcheckbox"],["roletype","widget","command","menuitem","menuitemcheckbox"],["roletype","widget","input","radio"]],[50,47,48,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,49],[["roletype","structure","range"]],[6,35,45,44,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,15],[50,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,47,48,49],[["roletype","structure","range"],["roletype","widget"]],[6,35,45,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,15],[17,23,37,39,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,0,15,32],[8,18,27,35,42,44,45,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,0,15],[["roletype","structure","section","group"],["roletype","widget"]],[15,50,32,47,48,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,49],[1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,15,0,2,17,21,23,30,34,37,39],[["roletype","widget","input","textbox"]],[15,32,47,48,49,50,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40],[17,21,23,37,50,32,47,48,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,15,49],[["roletype","widget","input"],["roletype","structure","range"]],[17,23,37,39,50,49,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,0,15,47,48],[["roletype","widget","composite"],["roletype","widget","input"],["roletype","structure","range"]],[1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,15,6,17,18,23,37,39],[["roletype","widget","input","checkbox"]],[15,18,21,35,45,44,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40],[["roletype","structure","sectionhead"],["roletype","widget"]],[7,41,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40],[27,31,32,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,0,15],[["roletype","widget","composite"]],[0,2,17,21,23,30,34,37,39,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,15],[["roletype","structure","section","status"]],[["roletype","structure","section","group"]],[17,23,31,39,32,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,0,15],[1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,0,15,31,37,7,41,32,17,23,39],[["roletype","widget","composite","grid"],["roletype","structure","section","table","grid"],["roletype","widget","composite","select","tree"],["roletype","structure","section","group","select","tree"]],[18,21,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,27,35,45,15,6,44],[["roletype","structure","section","listitem"],["roletype","widget","input","option"]],[15,17,18,21,23,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40],[17,23,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,15,18,21],[["roletype","widget","command","link"]],[15,17,18,21,23,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,27,35,45],[["roletype","structure","section","listitem"]],[["roletype","structure","section","img"]],[["roletype","structure","section","landmark","navigation"]],[["roletype","structure","section","note"]],[17,18,21,23,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,15,32,47,48,49,50],[["roletype","structure","separator"]],[["none"]],[17,18,21,23,1,5,10,11,12,14,16,19,20,22,24,25,26,28,33,38,40,0,15]],"roles":[["command",1,0,[],1,[],[],[],{},2],["composite",1,0,[],3,[],[],[],{},2],["input",1,0,[],4,[["input","XForms"]],[],[],{},2],["landmark",1,0,[],1,[],[],[],{},5],["range",1,0,[],6,[],[],[],{},7],["roletype",1,8,[],1,[["role","XHTML"],["type","Dublin Core"]],[],[],{},8],["section",1,8,[],1,[["frontmatter","DTB"],["level","DTB"],["level","SMIL"]],[],[],{},7],["sectionhead",1,9,[],1,[],[],[],{},7],["select",1,0,[],10,[],[],[],{},11],["structure",1,8,[],1,[],[],[],{},12],["widget",1,8,[],1,[],[],[],{},12],["window",1,0,[],13,[],[],[],{},12],["alert",0,0,[],14,[["alert","XForms"]],[],[],{},5,{"aria-atomic":"true","aria-live":"assertive"}],["alertdialog",2,0,[],15,[["alert","XForms"]],[],[],{},16],["application",2,0,[],17,[{"concept":{"name":"Device Independence Delivery Unit"}}],[],[],{},7],["article",0,0,[],18,[["article","HTML"]],[],[],{},19],["banner",0,0,[],1,[[{"constraints":["scoped to the body element"],"name":"header"},"HTML"]],[],[],{},20],["blockquote",0,0,[],1,[["blockquote","HTML"]],[],[],{},5],["button",6,9,[],21,[[{"attributes":[{"name":"type","value":"button"}],"name":"input"},"HTML"],[{"attributes":[{"name":"type","value":"image"}],"name":"input"},"HTML"],[{"attributes":[{"name":"type","value":"reset"}],"name":"input"},"HTML"],[{"attributes":[{"name":"type","value":"submit"}],"name":"input"},"HTML"],["button","HTML"],["trigger","XForms"]],[],[],{},22],["caption",0,23,["aria-label","aria-labelledby"],1,[["caption","HTML"]],["figure","grid","table"],[],{},5],["cell",0,9,[],24,[[{"constraints":["ancestor table element has table role"],"name":"td"},"HTML"]],["row"],[],{},5],["checkbox",6,9,[],25,[[{"attributes":[{"name":"type","value":"checkbox"}],"name":"input"},"HTML"],["option","ARIA"]],[],[],{"aria-checked":null},26],["code",0,23,["aria-label","aria-labelledby"],1,[["code","HTML"]],[],[],{},5],["columnheader",2,9,[],27,[["th","HTML"],[{"attributes":[{"name":"scope","value":"col"}],"name":"th"},"HTML"],[{"attributes":[{"name":"scope","value":"colgroup"}],"name":"th"},"HTML"]],["row"],[],{},28],["combobox",2,0,[],29,[[{"attributes":[{"constraints":["set"],"name":"list"},{"name":"type","value":"email"}],"name":"input"},"HTML"],[{"attributes":[{"constraints":["set"],"name":"list"},{"name":"type","value":"search"}],"name":"input"},"HTML"],[{"attributes":[{"constraints":["set"],"name":"list"},{"name":"type","value":"tel"}],"name":"input"},"HTML"],[{"attributes":[{"constraints":["set"],"name":"list"},{"name":"type","value":"text"}],"name":"input"},"HTML"],[{"attributes":[{"constraints":["set"],"name":"list"},{"name":"type","value":"url"}],"name":"input"},"HTML"],[{"attributes":[{"constraints":["set"],"name":"list"},{"name":"type","value":"url"}],"name":"input"},"HTML"],[{"attributes":[{"constraints":["undefined"],"name":"multiple"},{"constraints":["undefined"],"name":"size"}],"constraints":["the multiple attribute is not set and the size attribute does not have a value greater than 1"],"name":"select"},"HTML"],["select","XForms"]],[],[],{"aria-controls":null,"aria-expanded":"false"},26,{"aria-expanded":"false","aria-haspopup":"listbox"}],["complementary",0,0,[],1,[["aside","HTML"],[{"attributes":[{"constraints":["set"],"name":"aria-label"}],"constraints":["scoped to a sectioning content element","scoped to a sectioning root element other than body"],"name":"aside"},"HTML"],[{"attributes":[{"constraints":["set"],"name":"aria-labelledby"}],"constraints":["scoped to a sectioning content element","scoped to a sectioning root element other than body"],"name":"aside"},"HTML"]],[],[],{},20],["contentinfo",0,0,[],1,[[{"constraints":["scoped to the body element"],"name":"footer"},"HTML"]],[],[],{},20],["definition",0,0,[],1,[["dd","HTML"]],[],[],{},5],["deletion",0,23,["aria-label","aria-labelledby"],1,[["del","HTML"]],[],[],{},5],["dialog",2,0,[],15,[["dialog","HTML"]],[],[],{},30],["directory",0,0,[],1,[{"module":"DAISY Guide"}],[],[],{},31],["document",0,0,[],1,[{"concept":{"name":"Device Independence Delivery Unit"}},["html","HTML"]],[],[],{},7],["emphasis",0,23,["aria-label","aria-labelledby"],1,[["em","HTML"]],[],[],{},5],["feed",0,0,[],1,[],[],[["article"]],{},31],["figure",0,0,[],1,[["figure","HTML"]],[],[],{},5],["form",0,0,[],1,[[{"attributes":[{"constraints":["set"],"name":"aria-label"}],"name":"form"},"HTML"],[{"attributes":[{"constraints":["set"],"name":"aria-labelledby"}],"name":"form"},"HTML"],[{"attributes":[{"constraints":["set"],"name":"name"}],"name":"form"},"HTML"]],[],[],{},20],["generic",0,23,["aria-label","aria-labelledby"],1,[["a","HTML"],["area","HTML"],["aside","HTML"],["b","HTML"],["bdo","HTML"],["body","HTML"],["data","HTML"],["div","HTML"],[{"constraints":["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],"name":"footer"},"HTML"],[{"constraints":["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],"name":"header"},"HTML"],["hgroup","HTML"],["i","HTML"],["pre","HTML"],["q","HTML"],["samp","HTML"],["section","HTML"],["small","HTML"],["span","HTML"],["u","HTML"]],[],[],{},7],["grid",2,0,[],32,[],[],[["row"],["row","rowgroup"]],{},33],["gridcell",0,9,[],34,[[{"constraints":["ancestor table element has grid role","ancestor table element has treegrid role"],"name":"td"},"HTML"]],["row"],[],{},35],["group",0,0,[],3,[["details","HTML"],["fieldset","HTML"],["optgroup","HTML"],["address","HTML"]],[],[],{},5],["heading",2,9,[],36,[["h1","HTML"],["h2","HTML"],["h3","HTML"],["h4","HTML"],["h5","HTML"],["h6","HTML"]],[],[],{"aria-level":"2"},37,{"aria-level":"2"}],["img",6,0,[],1,[[{"attributes":[{"constraints":["set"],"name":"alt"}],"name":"img"},"HTML"],[{"attributes":[{"constraints":["undefined"],"name":"alt"}],"name":"img"},"HTML"],["imggroup","DTB"]],[],[],{},5],["insertion",0,23,["aria-label","aria-labelledby"],1,[["ins","HTML"]],[],[],{},5],["link",2,9,[],38,[[{"attributes":[{"constraints":["set"],"name":"href"}],"name":"a"},"HTML"],[{"attributes":[{"constraints":["set"],"name":"href"}],"name":"area"},"HTML"]],[],[],{},22],["list",0,0,[],1,[["menu","HTML"],["ol","HTML"],["ul","HTML"]],[],[["listitem"]],{},5],["listbox",2,0,[],39,[[{"attributes":[{"constraints":[">1"],"name":"size"}],"constraints":["the size attribute value is greater than 1"],"name":"select"},"HTML"],[{"attributes":[{"name":"multiple"}],"name":"select"},"HTML"],["datalist","HTML"],["list","ARIA"],["select","XForms"]],[],[["option","group"],["option"]],{},40,{"aria-orientation":"vertical"}],["listitem",0,0,[],41,[[{"constraints":["direct descendant of ol","direct descendant of ul","direct descendant of menu"],"name":"li"},"HTML"],["item","XForms"]],["directory","list"],[],{},5],["log",0,0,[],42,[],[],[],{},5,{"aria-live":"polite"}],["main",0,0,[],1,[["main","HTML"]],[],[],{},20],["mark",0,23,[],43,[["mark","HTML"]],[],[],{},5],["marquee",2,0,[],1,[],[],[],{},5],["math",0,0,[],1,[["math","HTML"]],[],[],{},5],["menu",0,0,[],10,[["MENU","JAPI"],["list","ARIA"],["select","XForms"],["sidebar","DTB"]],[],[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],{},40,{"aria-orientation":"vertical"}],["menubar",0,0,[],10,[["toolbar","ARIA"]],[],[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],{},44,{"aria-orientation":"horizontal"}],["menuitem",2,9,[],45,[["MENU_ITEM","JAPI"],["listitem","ARIA"],["option","ARIA"]],["group","menu","menubar"],[],{},22],["menuitemcheckbox",6,9,[],46,[["menuitem","ARIA"]],["group","menu","menubar"],[],{"aria-checked":null},47],["menuitemradio",6,9,[],46,[["menuitem","ARIA"]],["group","menu","menubar"],[],{"aria-checked":null},48],["meter",6,0,[],49,[["meter","HTML"]],[],[],{"aria-valuenow":null},50,{"aria-valuemax":"100","aria-valuemin":"0"}],["navigation",0,0,[],1,[["nav","HTML"]],[],[],{},20],["none",0,8,[],8,[],[],[],{},8],["note",0,0,[],1,[],[],[],{},5],["option",6,9,[],51,[["item","XForms"],["listitem","ARIA"],["option","HTML"]],[],[],{"aria-selected":"false"},26,{"aria-selected":"false"}],["paragraph",0,23,["aria-label","aria-labelledby"],1,[["p","HTML"]],[],[],{},5],["presentation",0,23,["aria-label","aria-labelledby"],1,[[{"attributes":[{"name":"alt","value":""}],"name":"img"},"HTML"]],[],[],{},7],["progressbar",6,0,[],52,[["progress","HTML"],["status","ARIA"]],[],[],{},53],["radio",6,9,[],54,[[{"attributes":[{"name":"type","value":"radio"}],"name":"input"},"HTML"]],[],[],{"aria-checked":null},26],["radiogroup",2,0,[],55,[["list","ARIA"]],[],[["radio"]],{},40],["region",2,0,[],1,[[{"attributes":[{"constraints":["set"],"name":"aria-label"}],"name":"section"},"HTML"],[{"attributes":[{"constraints":["set"],"name":"aria-labelledby"}],"name":"section"},"HTML"],{"concept":{"name":"Device Independence Glossart perceivable unit"}}],[],[],{},20],["row",0,9,[],56,[["tr","HTML"]],["grid","rowgroup","table","treegrid"],[["cell"],["columnheader"],["gridcell"],["rowheader"]],{},57],["rowgroup",0,9,[],1,[["tbody","HTML"],["tfoot","HTML"],["thead","HTML"]],["grid","table","treegrid"],[["row"]],{},7],["rowheader",2,9,[],27,[[{"attributes":[{"name":"scope","value":"row"}],"name":"th"},"HTML"],[{"attributes":[{"name":"scope","value":"rowgroup"}],"name":"th"},"HTML"]],["row","rowgroup"],[],{},28],["scrollbar",4,0,[],58,[],[],[],{"aria-controls":null,"aria-valuenow":null},53,{"aria-orientation":"vertical","aria-valuemax":"100","aria-valuemin":"0"}],["search",0,0,[],1,[],[],[],{},20],["searchbox",2,0,[],59,[[{"attributes":[{"constraints":["undefined"],"name":"list"},{"name":"type","value":"search"}],"constraints":["the list attribute is not set"],"name":"input"},"HTML"]],[],[],{},60],["separator",4,0,[],61,[["hr","HTML"]],[],[],{},7,{"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0"}],["slider",6,0,[],62,[[{"attributes":[{"name":"type","value":"range"}],"name":"input"},"HTML"]],[],[],{"aria-valuenow":null},63,{"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0"}],["spinbutton",2,0,[],64,[[{"attributes":[{"name":"type","value":"number"}],"name":"input"},"HTML"]],[],[],{},65,{"aria-valuenow":"0"}],["status",0,0,[],14,[["output","HTML"]],[],[],{},5,{"aria-atomic":"true","aria-live":"polite"}],["strong",0,23,["aria-label","aria-labelledby"],1,[["strong","HTML"]],[],[],{},5],["subscript",0,23,["aria-label","aria-labelledby"],1,[["sub","HTML"]],[],[],{},5],["superscript",0,23,["aria-label","aria-labelledby"],1,[["sup","HTML"]],[],[],{},5],["switch",6,9,[],66,[["button","ARIA"]],[],[],{"aria-checked":null},67],["tab",4,9,[],68,[],["tablist"],[],{},69,{"aria-selected":"false"}],["table",2,0,[],70,[["table","HTML"]],[],[["row"],["row","rowgroup"]],{},5],["tablist",0,0,[],71,[{"module":"DAISY","concept":{"name":"guide"}}],[],[["tab"]],{},72,{"aria-orientation":"horizontal"}],["tabpanel",2,0,[],1,[],[],[],{},5],["term",0,0,[],1,[["dfn","HTML"],["dt","HTML"]],[],[],{},5],["textbox",2,0,[],73,[[{"attributes":[{"constraints":["undefined"],"name":"type"},{"constraints":["undefined"],"name":"list"}],"constraints":["the list attribute is not set"],"name":"input"},"HTML"],[{"attributes":[{"constraints":["undefined"],"name":"list"},{"name":"type","value":"email"}],"constraints":["the list attribute is not set"],"name":"input"},"HTML"],[{"attributes":[{"constraints":["undefined"],"name":"list"},{"name":"type","value":"tel"}],"constraints":["the list attribute is not set"],"name":"input"},"HTML"],[{"attributes":[{"constraints":["undefined"],"name":"list"},{"name":"type","value":"text"}],"constraints":["the list attribute is not set"],"name":"input"},"HTML"],[{"attributes":[{"constraints":["undefined"],"name":"list"},{"name":"type","value":"url"}],"constraints":["the list attribute is not set"],"name":"input"},"HTML"],["input","XForms"],["textarea","HTML"]],[],[],{},26],["time",0,0,[],1,[["time","HTML"]],[],[],{},5],["timer",0,0,[],1,[],[],[],{},74],["toolbar",0,0,[],10,[["menubar","ARIA"]],[],[],{},75,{"aria-orientation":"horizontal"}],["tooltip",2,9,[],1,[],[],[],{},5],["tree",2,0,[],76,[],[],[["treeitem","group"],["treeitem"]],{},40,{"aria-orientation":"vertical"}],["treegrid",2,0,[],77,[],[],[["row"],["row","rowgroup"]],{},78],["treeitem",2,9,[],79,[],["group","tree"],[],{"aria-selected":null},80,{"aria-selected":"false"}],["doc-abstract",0,0,[],81,[["abstract [EPUB-SSV]","EPUB"]],[],[],{},5],["doc-acknowledgments",0,0,[],81,[["acknowledgments [EPUB-SSV]","EPUB"]],[],[],{},20],["doc-afterword",0,0,[],81,[["afterword [EPUB-SSV]","EPUB"]],[],[],{},20],["doc-appendix",0,0,[],81,[["appendix [EPUB-SSV]","EPUB"]],[],[],{},20],["doc-backlink",2,9,[],82,[["referrer [EPUB-SSV]","EPUB"]],[],[],{},83],["doc-biblioentry",2,0,[],84,[["EPUB biblioentry [EPUB-SSV]","EPUB"]],["doc-bibliography"],[],{},85],["doc-bibliography",0,0,[],81,[["bibliography [EPUB-SSV]","EPUB"]],[],[["doc-biblioentry"]],{},20],["doc-biblioref",2,9,[],82,[["biblioref [EPUB-SSV]","EPUB"]],[],[],{},83],["doc-chapter",0,0,[],81,[["chapter [EPUB-SSV]","EPUB"]],[],[],{},20],["doc-colophon",0,0,[],81,[["colophon [EPUB-SSV]","EPUB"]],[],[],{},5],["doc-conclusion",0,0,[],81,[["conclusion [EPUB-SSV]","EPUB"]],[],[],{},20],["doc-cover",0,0,[],81,[["cover [EPUB-SSV]","EPUB"]],[],[],{},86],["doc-credit",0,0,[],81,[["credit [EPUB-SSV]","EPUB"]],[],[],{},5],["doc-credits",0,0,[],81,[["credits [EPUB-SSV]","EPUB"]],[],[],{},20],["doc-dedication",0,0,[],81,[["dedication [EPUB-SSV]","EPUB"]],[],[],{},5],["doc-endnote",0,0,[],84,[["rearnote [EPUB-SSV]","EPUB"]],["doc-endnotes"],[],{},85],["doc-endnotes",0,0,[],81,[["rearnotes [EPUB-SSV]","EPUB"]],[],[["doc-endnote"]],{},20],["doc-epigraph",0,0,[],81,[["epigraph [EPUB-SSV]","EPUB"]],[],[],{},5],["doc-epilogue",0,0,[],81,[["epilogue [EPUB-SSV]","EPUB"]],[],[],{},20],["doc-errata",0,0,[],81,[["errata [EPUB-SSV]","EPUB"]],[],[],{},20],["doc-example",0,0,[],81,[],[],[],{},5],["doc-footnote",0,0,[],81,[["footnote [EPUB-SSV]","EPUB"]],[],[],{},5],["doc-foreword",0,0,[],81,[["foreword [EPUB-SSV]","EPUB"]],[],[],{},20],["doc-glossary",0,0,[],81,[["glossary [EPUB-SSV]","EPUB"]],[],[["definition"],["term"]],{},20],["doc-glossref",2,9,[],82,[["glossref [EPUB-SSV]","EPUB"]],[],[],{},83],["doc-index",0,0,[],81,[["index [EPUB-SSV]","EPUB"]],[],[],{},87],["doc-introduction",0,0,[],81,[["introduction [EPUB-SSV]","EPUB"]],[],[],{},20],["doc-noteref",2,9,[],82,[["noteref [EPUB-SSV]","EPUB"]],[],[],{},83],["doc-notice",0,0,[],81,[["notice [EPUB-SSV]","EPUB"]],[],[],{},88],["doc-pagebreak",6,0,[],89,[["pagebreak [EPUB-SSV]","EPUB"]],[],[],{},90,{"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0"}],["doc-pagelist",0,0,[],81,[["page-list [EPUB-SSV]","EPUB"]],[],[],{},87],["doc-part",2,0,[],81,[["part [EPUB-SSV]","EPUB"]],[],[],{},20],["doc-preface",0,0,[],81,[["preface [EPUB-SSV]","EPUB"]],[],[],{},20],["doc-prologue",0,0,[],81,[["prologue [EPUB-SSV]","EPUB"]],[],[],{},20],["doc-pullquote",0,0,[],8,[["pullquote [EPUB-SSV]","EPUB"]],[],[],{},91],["doc-qna",0,0,[],81,[["qna [EPUB-SSV]","EPUB"]],[],[],{},5],["doc-subtitle",0,0,[],81,[["subtitle [EPUB-SSV]","EPUB"]],[],[],{},37],["doc-tip",0,0,[],81,[["help [EPUB-SSV]","EPUB"]],[],[],{},88],["doc-toc",0,0,[],81,[["toc [EPUB-SSV]","EPUB"]],[],[],{},87],["graphics-document",2,0,[],81,[{"module":"GRAPHICS","concept":{"name":"graphics-object"}},{"module":"ARIA","concept":{"name":"img"}},{"module":"ARIA","concept":{"name":"article"}}],[],[],{},19],["graphics-object",0,9,[],92,[{"module":"GRAPHICS","concept":{"name":"graphics-document"}},{"module":"ARIA","concept":{"name":"group"}},{"module":"ARIA","concept":{"name":"img"}},{"module":"GRAPHICS","concept":{"name":"graphics-symbol"}}],[],[],{},75],["graphics-symbol",6,0,[],81,[],[],[],{},86]],"aria":[["aria-activedescendant",{"type":"id"}],["aria-atomic",{"type":"boolean"}],["aria-autocomplete",{"type":"token","values":["inline","list","both","none"]}],["aria-braillelabel",{"type":"string"}],["aria-brailleroledescription",{"type":"string"}],["aria-busy",{"type":"boolean"}],["aria-checked",{"type":"tristate"}],["aria-colcount",{"type":"integer"}],["aria-colindex",{"type":"integer"}],["aria-colspan",{"type":"integer"}],["aria-controls",{"type":"idlist"}],["aria-current",{"type":"token","values":["page","step","location","date","time",true,false]}],["aria-describedby",{"type":"idlist"}],["aria-description",{"type":"string"}],["aria-details",{"type":"id"}],["aria-disabled",{"type":"boolean"}],["aria-dropeffect",{"type":"tokenlist","values":["copy","execute","link","move","none","popup"]}],["aria-errormessage",{"type":"id"}],["aria-expanded",{"type":"boolean","allowundefined":true}],["aria-flowto",{"type":"idlist"}],["aria-grabbed",{"type":"boolean","allowundefined":true}],["aria-haspopup",{"type":"token","values":[false,true,"menu","listbox","tree","grid","dialog"]}],["aria-hidden",{"type":"boolean","allowundefined":true}],["aria-invalid",{"type":"token","values":["grammar",false,"spelling",true]}],["aria-keyshortcuts",{"type":"string"}],["aria-label",{"type":"string"}],["aria-labelledby",{"type":"idlist"}],["aria-level",{"type":"integer"}],["aria-live",{"type":"token","values":["assertive","off","polite"]}],["aria-modal",{"type":"boolean"}],["aria-multiline",{"type":"boolean"}],["aria-multiselectable",{"type":"boolean"}],["aria-orientation",{"type":"token","values":["vertical","undefined","horizontal"]}],["aria-owns",{"type":"idlist"}],["aria-placeholder",{"type":"string"}],["aria-posinset",{"type":"integer"}],["aria-pressed",{"type":"tristate"}],["aria-readonly",{"type":"boolean"}],["aria-relevant",{"type":"tokenlist","values":["additions","all","removals","text"]}],["aria-required",{"type":"boolean"}],["aria-roledescription",{"type":"string"}],["aria-rowcount",{"type":"integer"}],["aria-rowindex",{"type":"integer"}],["aria-rowspan",{"type":"integer"}],["aria-selected",{"type":"boolean","allowundefined":true}],["aria-setsize",{"type":"integer"}],["aria-sort",{"type":"token","values":["ascending","descending","none","other"]}],["aria-valuemax",{"type":"number"}],["aria-valuemin",{"type":"number"}],["aria-valuenow",{"type":"number"}],["aria-valuetext",{"type":"string"}]],"dom":["a","abbr","acronym","address","applet","area","article","aside","audio","b","!base","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","!col","!colgroup","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","!head","header","hgroup","hr","!html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","!link","main","map","mark","marquee","menu","menuitem","!meta","meter","nav","!noembed","!noscript","object","ol","optgroup","option","output","p","!param","!picture","pre","progress","q","rp","rt","rtc","ruby","s","samp","!script","section","select","small","!source","spacer","span","strike","strong","!style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","!title","tr","!track","tt","u","ul","var","video","wbr","xmp"]}`}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return isSubtreeInaccessibleImpl}}),Object.defineProperty(exports,"v",{enumerable:!0,get:function(){return computeAriaSelected}}),Object.defineProperty(exports,"w",{enumerable:!0,get:function(){return isDisabledImpl}}),Object.defineProperty(exports,"x",{enumerable:!0,get:function(){return computeAriaValueNow}}),Object.defineProperty(exports,"y",{enumerable:!0,get:function(){return computeAriaValueMax}}),Object.defineProperty(exports,"z",{enumerable:!0,get:function(){return implicitRole}});
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./_chunks/aria-query.generated-BNKXKFqd.cjs");let t=require("@ctrl/dom/internal"),n=null;function data(){return n??=JSON.parse(e.t)}function dequal(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e===null||t===null)return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!dequal(e[n],t[n]))return!1;return!0}if(Array.isArray(t))return!1;let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r of n)if(!Object.hasOwn(t,r)||!dequal(e[r],t[r]))return!1;return!0}var AriaQueryMap=class{#e;#t;#n=null;constructor(e,t){this.#e=e,this.#t=t??((e,t)=>{if(this.#n===null){this.#n=/* @__PURE__ */ new Map;for(let t of e)this.#n.set(t[0],t)}return this.#n.get(t)})}entries(){return this.#e()}forEach(e,t=null){let n=this.#e();for(let[r,i]of n)e.call(t,i,r,n)}get(e){return this.#t(this.#e(),e)?.[1]}has(e){return this.#t(this.#e(),e)!==void 0}keys(){return this.#e().map(([e])=>e)}values(){return this.#e().map(([,e])=>e)}[Symbol.iterator](){return this.#e()[Symbol.iterator]()}};const r=new AriaQueryMap(()=>data().roles),i=new AriaQueryMap(()=>data().elementRoles,(e,t)=>e.find(([e])=>t.name===e.name&&dequal(t.attributes,e.attributes))),a=new AriaQueryMap(()=>data().roleElements),o=new AriaQueryMap(()=>data().aria),s=new AriaQueryMap(()=>data().dom);function roleSupportsProp(e,t){let n=r.get(e);return n!==void 0&&n.props[t]!==void 0}function implicitRoleElementNames(e){let t=a.get(e);if(t===void 0)return[];let n=/* @__PURE__ */ new Set;for(let e of t)n.add(e.name);return[...n]}function superClassRoles(e){let t=r.get(e);if(t===void 0)return[];let n=[];for(let e of t.superClass)for(let t=e.length-1;t>=0;t--)n.includes(e[t])||n.push(e[t]);return n}function computeAccessibleName(t,n){let r=e.M(t);return e.E(r,e.O(r,n),5)}function computeAccessibleDescription(t,n){let r=e.M(t);return e.T(r,e.O(r,n),5)}function getRole(t){return e.I(e.M(t),5)}(0,t.setNodeDescriber)(e=>{let n=getRole(e);if(n===null||n===`generic`||n===`presentation`||n===`none`)return null;let r=computeAccessibleName(e);return r===``?n:`${n} ${(0,t.quote)(r)}`});function isDisabled(t){return e.w(e.M(t))}const c={computeAccessibleName(t,n){let r=e.M(t);return e.E(r,e.O(r,n),6)},computeAccessibleDescription(t,n){let r=e.M(t);return e.T(r,e.O(r,n),6)},getRole(t){return e.I(e.M(t),6)},isDisabled,isInaccessible:e.o,isSubtreeInaccessible:e.l};function getImplicitAriaRoles(t){return e.R(e.M(t))}function getImplicitRole(t){let n=e.z(e.M(t));return n===``?null:n}function getImplicitAriaRolesJestDom(t){let n=e.B(e.M(t));return n===``?[]:[n]}function computeAriaSelected(t){return e.v(e.M(t))}function computeAriaBusy(t){return e.p(e.M(t))}function computeAriaChecked(t){return e.m(e.M(t))}function computeAriaPressed(t){return e._(e.M(t))}function computeAriaCurrent(t){return e.h(e.M(t))}function computeAriaExpanded(t){return e.g(e.M(t))}function computeHeadingLevel(t){return e.C(e.M(t))}function computeAriaValueNow(t){return e.x(e.M(t))}function computeAriaValueMax(t){return e.y(e.M(t))}function computeAriaValueMin(t){return e.b(e.M(t))}function computeAriaValueText(t){return e.S(e.M(t))}function ariaCheckedState(t){return e.d(e.M(t))}function ariaPressedState(t){return e.f(e.M(t))}exports.AriaQueryMap=AriaQueryMap,exports.aria=o,exports.ariaCheckedState=ariaCheckedState,exports.ariaPressedState=ariaPressedState,exports.computeAccessibleDescription=computeAccessibleDescription,exports.computeAccessibleName=computeAccessibleName,exports.computeAriaBusy=computeAriaBusy,exports.computeAriaChecked=computeAriaChecked,exports.computeAriaCurrent=computeAriaCurrent,exports.computeAriaExpanded=computeAriaExpanded,exports.computeAriaPressed=computeAriaPressed,exports.computeAriaSelected=computeAriaSelected,exports.computeAriaValueMax=computeAriaValueMax,exports.computeAriaValueMin=computeAriaValueMin,exports.computeAriaValueNow=computeAriaValueNow,exports.computeAriaValueText=computeAriaValueText,exports.computeHeadingLevel=computeHeadingLevel,exports.daa06=c,exports.dom=s,exports.elementRoles=i,exports.getImplicitAriaRoles=getImplicitAriaRoles,exports.getImplicitAriaRolesJestDom=getImplicitAriaRolesJestDom,exports.getImplicitRole=getImplicitRole,exports.getRole=getRole,exports.getRoles=e.r,exports.implicitRoleElementNames=implicitRoleElementNames,exports.isDisabled=isDisabled,exports.isInaccessible=e.o,exports.isSubtreeInaccessible=e.l,exports.prettyRoles=e.a,exports.roleElements=a,exports.roleSupportsProp=roleSupportsProp,exports.roles=r,exports.superClassRoles=superClassRoles;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./_chunks/aria-query.generated-DK1XMP7F.cjs");let t=require("@ctrl/dom/internal"),n=null;function data(){return n??=build()}function build(){let{lists:t,roles:n,aria:r,dom:i}=JSON.parse(e.t),a=[],o=Array(n.length),s=[],c=[];for(let e=0;e<n.length;e++){let i=n[e],l=i[0],u,d=a[i[4]];if(d!==void 0)u={...d};else{let e=t[i[4]],n=`{`;for(let t=0;t<e.length;t++)n+=`${t===0?`"`:`,"`}${r[e[t]][0]}":null`;u=JSON.parse(`${n}}`),i[10]===void 0&&(a[i[4]]=u)}i[10]!==void 0&&Object.assign(u,i[10]);let f=i[5],p=Array(f.length),m=[];for(let e=0;e<f.length;e++){let t=f[e],n=Array.isArray(t)?{concept:typeof t[0]==`string`?{name:t[0]}:t[0],module:t[1]}:t;p[e]=n,n.module===`HTML`&&n.concept!=null&&(s.push([n.concept,[l]]),m.push(n.concept))}m.length>0&&c.push([l,m]);let h=i[1];o[e]=[l,{abstract:!!(h&1),accessibleNameRequired:!!(h&2),baseConcepts:[],childrenPresentational:!!(h&4),nameFrom:t[i[2]].slice(),prohibitedProps:i[3],props:u,relatedConcepts:p,requireContextRole:i[6],requiredContextRole:i[6].slice(),requiredOwnedElements:i[7],requiredProps:i[8],superClass:t[i[9]].map(e=>e.slice())}]}let l=Array(i.length);for(let e=0;e<i.length;e++){let t=i[e];l[e]=t[0]===`!`?[t.slice(1),{reserved:!0}]:[t,{reserved:!1}]}return{roles:o,elementRoles:s,roleElements:c,aria:r,dom:l}}function dequal(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e===null||t===null)return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!dequal(e[n],t[n]))return!1;return!0}if(Array.isArray(t))return!1;let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r of n)if(!Object.hasOwn(t,r)||!dequal(e[r],t[r]))return!1;return!0}var AriaQueryMap=class{#e;#t;#n=null;constructor(e,t){this.#e=e,this.#t=t??((e,t)=>{if(this.#n===null){this.#n=/* @__PURE__ */ new Map;for(let t of e)this.#n.set(t[0],t)}return this.#n.get(t)})}entries(){return this.#e()}forEach(e,t=null){let n=this.#e();for(let[r,i]of n)e.call(t,i,r,n)}get(e){return this.#t(this.#e(),e)?.[1]}has(e){return this.#t(this.#e(),e)!==void 0}keys(){return this.#e().map(([e])=>e)}values(){return this.#e().map(([,e])=>e)}[Symbol.iterator](){return this.#e()[Symbol.iterator]()}};const r=new AriaQueryMap(()=>data().roles),i=new AriaQueryMap(()=>data().elementRoles,(e,t)=>e.find(([e])=>t.name===e.name&&dequal(t.attributes,e.attributes))),a=new AriaQueryMap(()=>data().roleElements),o=new AriaQueryMap(()=>data().aria),s=new AriaQueryMap(()=>data().dom);function roleSupportsProp(e,t){let n=r.get(e);return n!==void 0&&n.props[t]!==void 0}function implicitRoleElementNames(e){let t=a.get(e);if(t===void 0)return[];let n=/* @__PURE__ */ new Set;for(let e of t)n.add(e.name);return[...n]}function superClassRoles(e){let t=r.get(e);if(t===void 0)return[];let n=[];for(let e of t.superClass)for(let t=e.length-1;t>=0;t--)n.includes(e[t])||n.push(e[t]);return n}function computeAccessibleName(t,n){let r=e.M(t);return e.E(r,e.O(r,n),5)}function computeAccessibleDescription(t,n){let r=e.M(t);return e.T(r,e.O(r,n),5)}function getRole(t){return e.I(e.M(t),5)}(0,t.setNodeDescriber)(e=>{let n=getRole(e);if(n===null||n===`generic`||n===`presentation`||n===`none`)return null;let r=computeAccessibleName(e);return r===``?n:`${n} ${(0,t.quote)(r)}`});function isDisabled(t){return e.w(e.M(t))}const c={computeAccessibleName(t,n){let r=e.M(t);return e.E(r,e.O(r,n),6)},computeAccessibleDescription(t,n){let r=e.M(t);return e.T(r,e.O(r,n),6)},getRole(t){return e.I(e.M(t),6)},isDisabled,isInaccessible:e.o,isSubtreeInaccessible:e.l};function getImplicitAriaRoles(t){return e.R(e.M(t))}function getImplicitRole(t){let n=e.z(e.M(t));return n===``?null:n}function getImplicitAriaRolesJestDom(t){let n=e.B(e.M(t));return n===``?[]:[n]}function computeAriaSelected(t){return e.v(e.M(t))}function computeAriaBusy(t){return e.p(e.M(t))}function computeAriaChecked(t){return e.m(e.M(t))}function computeAriaPressed(t){return e._(e.M(t))}function computeAriaCurrent(t){return e.h(e.M(t))}function computeAriaExpanded(t){return e.g(e.M(t))}function computeHeadingLevel(t){return e.C(e.M(t))}function computeAriaValueNow(t){return e.x(e.M(t))}function computeAriaValueMax(t){return e.y(e.M(t))}function computeAriaValueMin(t){return e.b(e.M(t))}function computeAriaValueText(t){return e.S(e.M(t))}function ariaCheckedState(t){return e.d(e.M(t))}function ariaPressedState(t){return e.f(e.M(t))}exports.AriaQueryMap=AriaQueryMap,exports.aria=o,exports.ariaCheckedState=ariaCheckedState,exports.ariaPressedState=ariaPressedState,exports.computeAccessibleDescription=computeAccessibleDescription,exports.computeAccessibleName=computeAccessibleName,exports.computeAriaBusy=computeAriaBusy,exports.computeAriaChecked=computeAriaChecked,exports.computeAriaCurrent=computeAriaCurrent,exports.computeAriaExpanded=computeAriaExpanded,exports.computeAriaPressed=computeAriaPressed,exports.computeAriaSelected=computeAriaSelected,exports.computeAriaValueMax=computeAriaValueMax,exports.computeAriaValueMin=computeAriaValueMin,exports.computeAriaValueNow=computeAriaValueNow,exports.computeAriaValueText=computeAriaValueText,exports.computeHeadingLevel=computeHeadingLevel,exports.daa06=c,exports.dom=s,exports.elementRoles=i,exports.getImplicitAriaRoles=getImplicitAriaRoles,exports.getImplicitAriaRolesJestDom=getImplicitAriaRolesJestDom,exports.getImplicitRole=getImplicitRole,exports.getRole=getRole,exports.getRoles=e.r,exports.implicitRoleElementNames=implicitRoleElementNames,exports.isDisabled=isDisabled,exports.isInaccessible=e.o,exports.isSubtreeInaccessible=e.l,exports.prettyRoles=e.a,exports.roleElements=a,exports.roleSupportsProp=roleSupportsProp,exports.roles=r,exports.superClassRoles=superClassRoles;
@@ -1 +1 @@
1
- import{B as e,C as t,E as n,I as r,M as i,O as a,R as o,S as s,T as c,_ as l,a as u,b as d,d as f,f as p,g as m,h,l as g,m as _,o as v,p as y,r as b,t as x,v as S,w as C,x as w,y as T,z as E}from"./_chunks/aria-query.generated-CU4-Yw6V.js";import{quote as D,setNodeDescriber as O}from"../bridge/internal.js";let k=null;function data(){return k??=JSON.parse(x)}function dequal(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e===null||t===null)return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!dequal(e[n],t[n]))return!1;return!0}if(Array.isArray(t))return!1;let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r of n)if(!Object.hasOwn(t,r)||!dequal(e[r],t[r]))return!1;return!0}var AriaQueryMap=class{#e;#t;#n=null;constructor(e,t){this.#e=e,this.#t=t??((e,t)=>{if(this.#n===null){this.#n=/* @__PURE__ */ new Map;for(let t of e)this.#n.set(t[0],t)}return this.#n.get(t)})}entries(){return this.#e()}forEach(e,t=null){let n=this.#e();for(let[r,i]of n)e.call(t,i,r,n)}get(e){return this.#t(this.#e(),e)?.[1]}has(e){return this.#t(this.#e(),e)!==void 0}keys(){return this.#e().map(([e])=>e)}values(){return this.#e().map(([,e])=>e)}[Symbol.iterator](){return this.#e()[Symbol.iterator]()}};const A=new AriaQueryMap(()=>data().roles),j=new AriaQueryMap(()=>data().elementRoles,(e,t)=>e.find(([e])=>t.name===e.name&&dequal(t.attributes,e.attributes))),M=new AriaQueryMap(()=>data().roleElements),N=new AriaQueryMap(()=>data().aria),P=new AriaQueryMap(()=>data().dom);function roleSupportsProp(e,t){let n=A.get(e);return n!==void 0&&n.props[t]!==void 0}function implicitRoleElementNames(e){let t=M.get(e);if(t===void 0)return[];let n=/* @__PURE__ */ new Set;for(let e of t)n.add(e.name);return[...n]}function superClassRoles(e){let t=A.get(e);if(t===void 0)return[];let n=[];for(let e of t.superClass)for(let t=e.length-1;t>=0;t--)n.includes(e[t])||n.push(e[t]);return n}function computeAccessibleName(e,t){let r=i(e);return n(r,a(r,t),5)}function computeAccessibleDescription(e,t){let n=i(e);return c(n,a(n,t),5)}function getRole(e){return r(i(e),5)}O(e=>{let t=getRole(e);if(t===null||t===`generic`||t===`presentation`||t===`none`)return null;let n=computeAccessibleName(e);return n===``?t:`${t} ${D(n)}`});function isDisabled(e){return C(i(e))}const F={computeAccessibleName(e,t){let r=i(e);return n(r,a(r,t),6)},computeAccessibleDescription(e,t){let n=i(e);return c(n,a(n,t),6)},getRole(e){return r(i(e),6)},isDisabled,isInaccessible:v,isSubtreeInaccessible:g};function getImplicitAriaRoles(e){return o(i(e))}function getImplicitRole(e){let t=E(i(e));return t===``?null:t}function getImplicitAriaRolesJestDom(t){let n=e(i(t));return n===``?[]:[n]}function computeAriaSelected(e){return S(i(e))}function computeAriaBusy(e){return y(i(e))}function computeAriaChecked(e){return _(i(e))}function computeAriaPressed(e){return l(i(e))}function computeAriaCurrent(e){return h(i(e))}function computeAriaExpanded(e){return m(i(e))}function computeHeadingLevel(e){return t(i(e))}function computeAriaValueNow(e){return w(i(e))}function computeAriaValueMax(e){return T(i(e))}function computeAriaValueMin(e){return d(i(e))}function computeAriaValueText(e){return s(i(e))}function ariaCheckedState(e){return f(i(e))}function ariaPressedState(e){return p(i(e))}export{AriaQueryMap,N as aria,ariaCheckedState,ariaPressedState,computeAccessibleDescription,computeAccessibleName,computeAriaBusy,computeAriaChecked,computeAriaCurrent,computeAriaExpanded,computeAriaPressed,computeAriaSelected,computeAriaValueMax,computeAriaValueMin,computeAriaValueNow,computeAriaValueText,computeHeadingLevel,F as daa06,P as dom,j as elementRoles,getImplicitAriaRoles,getImplicitAriaRolesJestDom,getImplicitRole,getRole,b as getRoles,implicitRoleElementNames,isDisabled,v as isInaccessible,g as isSubtreeInaccessible,u as prettyRoles,M as roleElements,roleSupportsProp,A as roles,superClassRoles};
1
+ import{B as e,C as t,E as n,I as r,M as i,O as a,R as o,S as s,T as c,_ as l,a as u,b as d,d as f,f as p,g as m,h,l as g,m as _,o as v,p as y,r as b,t as x,v as S,w as C,x as w,y as T,z as E}from"./_chunks/aria-query.generated-B6BAyxT7.js";import{quote as D,setNodeDescriber as O}from"../bridge/internal.js";let k=null;function data(){return k??=build()}function build(){let{lists:e,roles:t,aria:n,dom:r}=JSON.parse(x),i=[],a=Array(t.length),o=[],s=[];for(let r=0;r<t.length;r++){let c=t[r],l=c[0],u,d=i[c[4]];if(d!==void 0)u={...d};else{let t=e[c[4]],r=`{`;for(let e=0;e<t.length;e++)r+=`${e===0?`"`:`,"`}${n[t[e]][0]}":null`;u=JSON.parse(`${r}}`),c[10]===void 0&&(i[c[4]]=u)}c[10]!==void 0&&Object.assign(u,c[10]);let f=c[5],p=Array(f.length),m=[];for(let e=0;e<f.length;e++){let t=f[e],n=Array.isArray(t)?{concept:typeof t[0]==`string`?{name:t[0]}:t[0],module:t[1]}:t;p[e]=n,n.module===`HTML`&&n.concept!=null&&(o.push([n.concept,[l]]),m.push(n.concept))}m.length>0&&s.push([l,m]);let h=c[1];a[r]=[l,{abstract:!!(h&1),accessibleNameRequired:!!(h&2),baseConcepts:[],childrenPresentational:!!(h&4),nameFrom:e[c[2]].slice(),prohibitedProps:c[3],props:u,relatedConcepts:p,requireContextRole:c[6],requiredContextRole:c[6].slice(),requiredOwnedElements:c[7],requiredProps:c[8],superClass:e[c[9]].map(e=>e.slice())}]}let c=Array(r.length);for(let e=0;e<r.length;e++){let t=r[e];c[e]=t[0]===`!`?[t.slice(1),{reserved:!0}]:[t,{reserved:!1}]}return{roles:a,elementRoles:o,roleElements:s,aria:n,dom:c}}function dequal(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e===null||t===null)return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!dequal(e[n],t[n]))return!1;return!0}if(Array.isArray(t))return!1;let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r of n)if(!Object.hasOwn(t,r)||!dequal(e[r],t[r]))return!1;return!0}var AriaQueryMap=class{#e;#t;#n=null;constructor(e,t){this.#e=e,this.#t=t??((e,t)=>{if(this.#n===null){this.#n=/* @__PURE__ */ new Map;for(let t of e)this.#n.set(t[0],t)}return this.#n.get(t)})}entries(){return this.#e()}forEach(e,t=null){let n=this.#e();for(let[r,i]of n)e.call(t,i,r,n)}get(e){return this.#t(this.#e(),e)?.[1]}has(e){return this.#t(this.#e(),e)!==void 0}keys(){return this.#e().map(([e])=>e)}values(){return this.#e().map(([,e])=>e)}[Symbol.iterator](){return this.#e()[Symbol.iterator]()}};const A=new AriaQueryMap(()=>data().roles),j=new AriaQueryMap(()=>data().elementRoles,(e,t)=>e.find(([e])=>t.name===e.name&&dequal(t.attributes,e.attributes))),M=new AriaQueryMap(()=>data().roleElements),N=new AriaQueryMap(()=>data().aria),P=new AriaQueryMap(()=>data().dom);function roleSupportsProp(e,t){let n=A.get(e);return n!==void 0&&n.props[t]!==void 0}function implicitRoleElementNames(e){let t=M.get(e);if(t===void 0)return[];let n=/* @__PURE__ */ new Set;for(let e of t)n.add(e.name);return[...n]}function superClassRoles(e){let t=A.get(e);if(t===void 0)return[];let n=[];for(let e of t.superClass)for(let t=e.length-1;t>=0;t--)n.includes(e[t])||n.push(e[t]);return n}function computeAccessibleName(e,t){let r=i(e);return n(r,a(r,t),5)}function computeAccessibleDescription(e,t){let n=i(e);return c(n,a(n,t),5)}function getRole(e){return r(i(e),5)}O(e=>{let t=getRole(e);if(t===null||t===`generic`||t===`presentation`||t===`none`)return null;let n=computeAccessibleName(e);return n===``?t:`${t} ${D(n)}`});function isDisabled(e){return C(i(e))}const F={computeAccessibleName(e,t){let r=i(e);return n(r,a(r,t),6)},computeAccessibleDescription(e,t){let n=i(e);return c(n,a(n,t),6)},getRole(e){return r(i(e),6)},isDisabled,isInaccessible:v,isSubtreeInaccessible:g};function getImplicitAriaRoles(e){return o(i(e))}function getImplicitRole(e){let t=E(i(e));return t===``?null:t}function getImplicitAriaRolesJestDom(t){let n=e(i(t));return n===``?[]:[n]}function computeAriaSelected(e){return S(i(e))}function computeAriaBusy(e){return y(i(e))}function computeAriaChecked(e){return _(i(e))}function computeAriaPressed(e){return l(i(e))}function computeAriaCurrent(e){return h(i(e))}function computeAriaExpanded(e){return m(i(e))}function computeHeadingLevel(e){return t(i(e))}function computeAriaValueNow(e){return w(i(e))}function computeAriaValueMax(e){return T(i(e))}function computeAriaValueMin(e){return d(i(e))}function computeAriaValueText(e){return s(i(e))}function ariaCheckedState(e){return f(i(e))}function ariaPressedState(e){return p(i(e))}export{AriaQueryMap,N as aria,ariaCheckedState,ariaPressedState,computeAccessibleDescription,computeAccessibleName,computeAriaBusy,computeAriaChecked,computeAriaCurrent,computeAriaExpanded,computeAriaPressed,computeAriaSelected,computeAriaValueMax,computeAriaValueMin,computeAriaValueNow,computeAriaValueText,computeHeadingLevel,F as daa06,P as dom,j as elementRoles,getImplicitAriaRoles,getImplicitAriaRolesJestDom,getImplicitRole,getRole,b as getRoles,implicitRoleElementNames,isDisabled,v as isInaccessible,g as isSubtreeInaccessible,u as prettyRoles,M as roleElements,roleSupportsProp,A as roles,superClassRoles};
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./_chunks/aria-query.generated-BNKXKFqd.cjs");let t=require("@ctrl/dom/internal");const n=/* @__PURE__ */ new Map,r=[];n.set(``,Array(Object.keys(t.T).length).fill(2));function implicitRoleTags(i){let a=n.get(i);if(a!==void 0)return a;let o=e.n.get(i);if(o===void 0)return r;let s=[],[c,l]=o;for(let e of c)s[(0,t.tagId)(e)]=1;for(let e of l)s[(0,t.tagId)(e)]=2;return n.set(i,s),s}function tlRoleMatcher(e,t){let n=implicitRoleTags(e);return r=>matchesElementRole(r,e,t,n)}function tlRoleMatches(e,n,r){return e.type===t.ELEMENT_NODE?matchesElementRole(e,n,r,implicitRoleTags(n)):n===``}function matchesElementRole(t,n,r,i){let a=e.V(t);if(a!==null)return explicitRoleMatches(a,n,r);let o=i[e.P(t)];return o===1||o===2&&e.z(t)===n}function explicitRoleMatches(e,t,n){if(!n){let n=e.indexOf(` `);return n===-1?e===t:n===t.length&&e.startsWith(t)}let r=0,i=e.length;for(;r<=i;){let n=e.indexOf(` `,r);if(n===-1&&(n=i),n>r&&n-r===t.length&&e.startsWith(t,r))return!0;r=n+1}return!1}exports.anyTag=e.P,exports.ariaCheckedState=e.d,exports.ariaPressedState=e.f,exports.computeAccessibleDescriptionImpl=e.T,exports.computeAccessibleNameImpl=e.E,exports.computeAriaBusy=e.p,exports.computeAriaChecked=e.m,exports.computeAriaCurrent=e.h,exports.computeAriaExpanded=e.g,exports.computeAriaPressed=e._,exports.computeAriaSelected=e.v,exports.computeAriaValueMax=e.y,exports.computeAriaValueMin=e.b,exports.computeAriaValueNow=e.x,exports.computeAriaValueText=e.S,exports.computeHeadingLevel=e.C,exports.computeTextAlternativeImpl=e.D,exports.daaExplicitRole=e.F,exports.daaGetRole=e.I,exports.daaImplicitRole=e.L,exports.getImplicitRoles=e.R,exports.getRolesImpl=e.i,exports.implOf=e.M,exports.implicitRole=e.z,exports.implicitRoleJestDom=e.B,exports.inputType=e.U,exports.isDisabledImpl=e.w,exports.isDisplayInline=e.k,exports.isDisplayNone=e.A,exports.isInaccessibleImpl=e.s,exports.isInaccessibleWithStyle=e.c,Object.defineProperty(exports,"isLabelable",{enumerable:!0,get:function(){return t.isLabelable}}),exports.isSubtreeInaccessibleImpl=e.u,exports.isVisibilityHidden=e.j,exports.labelMapForTree=e.W,exports.labelsOf=e.G,exports.queryIdRefs=e.N,exports.tlRole=e.H,exports.tlRoleMatcher=tlRoleMatcher,exports.tlRoleMatches=tlRoleMatches,exports.withStyleOverride=e.O;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./_chunks/aria-query.generated-DK1XMP7F.cjs");let t=require("@ctrl/dom/internal");const n=/* @__PURE__ */ new Map,r=[];n.set(``,Array(Object.keys(t.T).length).fill(2));function implicitRoleTags(i){let a=n.get(i);if(a!==void 0)return a;let o=e.n.get(i);if(o===void 0)return r;let s=[],[c,l]=o;for(let e of c)s[(0,t.tagId)(e)]=1;for(let e of l)s[(0,t.tagId)(e)]=2;return n.set(i,s),s}function tlRoleMatcher(e,t){let n=implicitRoleTags(e);return r=>matchesElementRole(r,e,t,n)}function tlRoleMatches(e,n,r){return e.type===t.ELEMENT_NODE?matchesElementRole(e,n,r,implicitRoleTags(n)):n===``}function matchesElementRole(t,n,r,i){let a=e.V(t);if(a!==null)return explicitRoleMatches(a,n,r);let o=i[e.P(t)];return o===1||o===2&&e.z(t)===n}function explicitRoleMatches(e,t,n){if(!n){let n=e.indexOf(` `);return n===-1?e===t:n===t.length&&e.startsWith(t)}let r=0,i=e.length;for(;r<=i;){let n=e.indexOf(` `,r);if(n===-1&&(n=i),n>r&&n-r===t.length&&e.startsWith(t,r))return!0;r=n+1}return!1}exports.anyTag=e.P,exports.ariaCheckedState=e.d,exports.ariaPressedState=e.f,exports.computeAccessibleDescriptionImpl=e.T,exports.computeAccessibleNameImpl=e.E,exports.computeAriaBusy=e.p,exports.computeAriaChecked=e.m,exports.computeAriaCurrent=e.h,exports.computeAriaExpanded=e.g,exports.computeAriaPressed=e._,exports.computeAriaSelected=e.v,exports.computeAriaValueMax=e.y,exports.computeAriaValueMin=e.b,exports.computeAriaValueNow=e.x,exports.computeAriaValueText=e.S,exports.computeHeadingLevel=e.C,exports.computeTextAlternativeImpl=e.D,exports.daaExplicitRole=e.F,exports.daaGetRole=e.I,exports.daaImplicitRole=e.L,exports.getImplicitRoles=e.R,exports.getRolesImpl=e.i,exports.implOf=e.M,exports.implicitRole=e.z,exports.implicitRoleJestDom=e.B,exports.inputType=e.U,exports.isDisabledImpl=e.w,exports.isDisplayInline=e.k,exports.isDisplayNone=e.A,exports.isInaccessibleImpl=e.s,exports.isInaccessibleWithStyle=e.c,Object.defineProperty(exports,"isLabelable",{enumerable:!0,get:function(){return t.isLabelable}}),exports.isSubtreeInaccessibleImpl=e.u,exports.isVisibilityHidden=e.j,exports.labelMapForTree=e.W,exports.labelsOf=e.G,exports.queryIdRefs=e.N,exports.tlRole=e.H,exports.tlRoleMatcher=tlRoleMatcher,exports.tlRoleMatches=tlRoleMatches,exports.withStyleOverride=e.O;
@@ -1 +1 @@
1
- import{A as e,B as t,C as n,D as r,E as i,F as a,G as o,H as s,I as c,K as l,L as u,M as d,N as f,O as p,P as m,R as h,S as g,T as _,U as v,V as y,W as b,_ as x,b as S,c as C,d as w,f as T,g as E,h as D,i as O,j as k,k as A,m as j,n as M,p as N,s as P,u as F,v as I,w as L,x as R,y as z,z as B}from"./_chunks/aria-query.generated-CU4-Yw6V.js";import{ELEMENT_NODE as V,T as H,tagId as U}from"../bridge/internal.js";const W=/* @__PURE__ */ new Map,G=[];W.set(``,Array(Object.keys(H).length).fill(2));function implicitRoleTags(e){let t=W.get(e);if(t!==void 0)return t;let n=M.get(e);if(n===void 0)return G;let r=[],[i,a]=n;for(let e of i)r[U(e)]=1;for(let e of a)r[U(e)]=2;return W.set(e,r),r}function tlRoleMatcher(e,t){let n=implicitRoleTags(e);return r=>matchesElementRole(r,e,t,n)}function tlRoleMatches(e,t,n){return e.type===V?matchesElementRole(e,t,n,implicitRoleTags(t)):t===``}function matchesElementRole(e,t,n,r){let i=y(e);if(i!==null)return explicitRoleMatches(i,t,n);let a=r[m(e)];return a===1||a===2&&B(e)===t}function explicitRoleMatches(e,t,n){if(!n){let n=e.indexOf(` `);return n===-1?e===t:n===t.length&&e.startsWith(t)}let r=0,i=e.length;for(;r<=i;){let n=e.indexOf(` `,r);if(n===-1&&(n=i),n>r&&n-r===t.length&&e.startsWith(t,r))return!0;r=n+1}return!1}export{m as anyTag,w as ariaCheckedState,T as ariaPressedState,_ as computeAccessibleDescriptionImpl,i as computeAccessibleNameImpl,N as computeAriaBusy,j as computeAriaChecked,D as computeAriaCurrent,E as computeAriaExpanded,x as computeAriaPressed,I as computeAriaSelected,z as computeAriaValueMax,S as computeAriaValueMin,R as computeAriaValueNow,g as computeAriaValueText,n as computeHeadingLevel,r as computeTextAlternativeImpl,a as daaExplicitRole,c as daaGetRole,u as daaImplicitRole,h as getImplicitRoles,O as getRolesImpl,d as implOf,B as implicitRole,t as implicitRoleJestDom,v as inputType,L as isDisabledImpl,A as isDisplayInline,e as isDisplayNone,P as isInaccessibleImpl,C as isInaccessibleWithStyle,b as isLabelable,F as isSubtreeInaccessibleImpl,k as isVisibilityHidden,o as labelMapForTree,l as labelsOf,f as queryIdRefs,s as tlRole,tlRoleMatcher,tlRoleMatches,p as withStyleOverride};
1
+ import{A as e,B as t,C as n,D as r,E as i,F as a,G as o,H as s,I as c,K as l,L as u,M as d,N as f,O as p,P as m,R as h,S as g,T as _,U as v,V as y,W as b,_ as x,b as S,c as C,d as w,f as T,g as E,h as D,i as O,j as k,k as A,m as j,n as M,p as N,s as P,u as F,v as I,w as L,x as R,y as z,z as B}from"./_chunks/aria-query.generated-B6BAyxT7.js";import{ELEMENT_NODE as V,T as H,tagId as U}from"../bridge/internal.js";const W=/* @__PURE__ */ new Map,G=[];W.set(``,Array(Object.keys(H).length).fill(2));function implicitRoleTags(e){let t=W.get(e);if(t!==void 0)return t;let n=M.get(e);if(n===void 0)return G;let r=[],[i,a]=n;for(let e of i)r[U(e)]=1;for(let e of a)r[U(e)]=2;return W.set(e,r),r}function tlRoleMatcher(e,t){let n=implicitRoleTags(e);return r=>matchesElementRole(r,e,t,n)}function tlRoleMatches(e,t,n){return e.type===V?matchesElementRole(e,t,n,implicitRoleTags(t)):t===``}function matchesElementRole(e,t,n,r){let i=y(e);if(i!==null)return explicitRoleMatches(i,t,n);let a=r[m(e)];return a===1||a===2&&B(e)===t}function explicitRoleMatches(e,t,n){if(!n){let n=e.indexOf(` `);return n===-1?e===t:n===t.length&&e.startsWith(t)}let r=0,i=e.length;for(;r<=i;){let n=e.indexOf(` `,r);if(n===-1&&(n=i),n>r&&n-r===t.length&&e.startsWith(t,r))return!0;r=n+1}return!1}export{m as anyTag,w as ariaCheckedState,T as ariaPressedState,_ as computeAccessibleDescriptionImpl,i as computeAccessibleNameImpl,N as computeAriaBusy,j as computeAriaChecked,D as computeAriaCurrent,E as computeAriaExpanded,x as computeAriaPressed,I as computeAriaSelected,z as computeAriaValueMax,S as computeAriaValueMin,R as computeAriaValueNow,g as computeAriaValueText,n as computeHeadingLevel,r as computeTextAlternativeImpl,a as daaExplicitRole,c as daaGetRole,u as daaImplicitRole,h as getImplicitRoles,O as getRolesImpl,d as implOf,B as implicitRole,t as implicitRoleJestDom,v as inputType,L as isDisabledImpl,A as isDisplayInline,e as isDisplayNone,P as isInaccessibleImpl,C as isInaccessibleWithStyle,b as isLabelable,F as isSubtreeInaccessibleImpl,k as isVisibilityHidden,o as labelMapForTree,l as labelsOf,f as queryIdRefs,s as tlRole,tlRoleMatcher,tlRoleMatches,p as withStyleOverride};