@esri/calcite-components 5.1.0-next.52 → 5.1.0-next.53

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 (152) hide show
  1. package/dist/cdn/{IGWRKE4T.js → 2NNRJTQ3.js} +1 -1
  2. package/dist/cdn/{AQJ7OEUY.js → 2VFFQBRM.js} +1 -1
  3. package/dist/cdn/{OLZJ7MYZ.js → 374BVOQW.js} +1 -1
  4. package/dist/cdn/{QU433RO3.js → 3C3ZPDYP.js} +1 -1
  5. package/dist/cdn/{42WINDGY.js → 3R6YKVGT.js} +1 -1
  6. package/dist/cdn/{RQLTHDZV.js → 3VHKPO2P.js} +1 -1
  7. package/dist/cdn/{2I2RAVTX.js → 46NKKCSK.js} +1 -1
  8. package/dist/cdn/{HOR2KBM5.js → 52ZZNTUN.js} +1 -1
  9. package/dist/cdn/{7LDJP6HZ.js → 5GQVDBDB.js} +1 -1
  10. package/dist/cdn/{K5KGLZR3.js → 5NGMYY26.js} +1 -1
  11. package/dist/cdn/{GXU75OWY.js → 5SVZLVMH.js} +1 -1
  12. package/dist/cdn/{DUALO3AB.js → 6E2D3DUD.js} +1 -1
  13. package/dist/cdn/{XTDXJGII.js → 6G54JNZ3.js} +1 -1
  14. package/dist/cdn/{JXCA7WFB.js → 6MNWSHJ2.js} +1 -1
  15. package/dist/cdn/{HRJGO4SI.js → 6P7QJ4OD.js} +1 -1
  16. package/dist/cdn/{INU5CIUJ.js → 6VOREOHN.js} +1 -1
  17. package/dist/cdn/{ZU3QDTLN.js → 7ARUHJIG.js} +1 -1
  18. package/dist/cdn/{GGNGZB3P.js → 7HZB4NYI.js} +1 -1
  19. package/dist/cdn/{T6UKBG2V.js → 7NI5WUF3.js} +1 -1
  20. package/dist/cdn/{PCUJYOPJ.js → 7P64IPQZ.js} +1 -1
  21. package/dist/cdn/{OUTLU75A.js → 7U3I7VRF.js} +1 -1
  22. package/dist/cdn/{A3IMFQJ3.js → AOREK7XG.js} +1 -1
  23. package/dist/cdn/{PVLDZUQW.js → AQB4NRJ6.js} +1 -1
  24. package/dist/cdn/{UJX4WIGC.js → AX7IKIXB.js} +1 -1
  25. package/dist/cdn/{IYUKVFCK.js → B55L2WAB.js} +1 -1
  26. package/dist/cdn/{7GLQ3BIA.js → BE7EEFQ3.js} +1 -1
  27. package/dist/cdn/{HDCTPG3W.js → BJY3GM77.js} +1 -1
  28. package/dist/cdn/{FOCO4B2I.js → BMJZRWPQ.js} +1 -1
  29. package/dist/cdn/{F7YMQYQ7.js → BTJXCIJF.js} +1 -1
  30. package/dist/cdn/{WWVBR3H5.js → BUYT2OB4.js} +1 -1
  31. package/dist/cdn/{Z6NONZDA.js → CCDFL6R7.js} +1 -1
  32. package/dist/cdn/{Y7KV5WJH.js → CMDW563I.js} +1 -1
  33. package/dist/cdn/{DWZDD2J2.js → COIF2UAL.js} +1 -1
  34. package/dist/cdn/{XBQ4JC2O.js → CW5DSGCU.js} +1 -1
  35. package/dist/cdn/{FFTJXX3S.js → DBMOHP75.js} +1 -1
  36. package/dist/cdn/{GW6AQOGM.js → DT26BBAC.js} +1 -1
  37. package/dist/cdn/{4DXIVGBF.js → DZLM5KCC.js} +1 -1
  38. package/dist/cdn/{57674VTD.js → DZNJ47YX.js} +1 -1
  39. package/dist/cdn/{64SYBTWP.js → EJUBVZVG.js} +1 -1
  40. package/dist/cdn/{J7SMVIGE.js → ELGTRNFS.js} +1 -1
  41. package/dist/cdn/{JN66UG3X.js → EQPMYOET.js} +1 -1
  42. package/dist/cdn/{JTFWEILS.js → F4YFAW3E.js} +1 -1
  43. package/dist/cdn/{P3NFYL7S.js → FLS2RIBD.js} +1 -1
  44. package/dist/cdn/{MMV4JRFL.js → FMYXWCIG.js} +1 -1
  45. package/dist/cdn/{RN2XNPSP.js → G5ZTMQIQ.js} +1 -1
  46. package/dist/cdn/{RUXRS4F5.js → G7NS66JL.js} +1 -1
  47. package/dist/cdn/{57I6EGGZ.js → GBBBONE4.js} +1 -1
  48. package/dist/cdn/{2OIO35MZ.js → GM4IXLKU.js} +1 -1
  49. package/dist/cdn/{PE3RHM5F.js → GMFFXYYG.js} +1 -1
  50. package/dist/cdn/{YJF6FY53.js → GNOGZAA3.js} +1 -1
  51. package/dist/cdn/{44FM6IN7.js → H74DQJ5F.js} +1 -1
  52. package/dist/cdn/{57RSFB25.js → I4UCJQSK.js} +1 -1
  53. package/dist/cdn/{ETUQ2WX4.js → IQOUDTMQ.js} +1 -1
  54. package/dist/cdn/{F4CYA44H.js → IYDA2M2N.js} +1 -1
  55. package/dist/cdn/{NGYNBOEA.js → J47CBEIO.js} +1 -1
  56. package/dist/cdn/{NB557EPM.js → JGLBWEES.js} +1 -1
  57. package/dist/cdn/{VILMXJDE.js → JMR6BPUR.js} +1 -1
  58. package/dist/cdn/{KKDLOFLH.js → JZUVLVC3.js} +1 -1
  59. package/dist/cdn/{MNVVLPUD.js → K6LR7A3G.js} +1 -1
  60. package/dist/cdn/{LZO5WQFT.js → KEGLBRYW.js} +1 -1
  61. package/dist/cdn/{KC5YLSJL.js → KIVCCNSA.js} +1 -1
  62. package/dist/cdn/{3L56MF4R.js → KMRVKC2B.js} +1 -1
  63. package/dist/cdn/{TZXSLIRP.js → L7VRUUJ5.js} +1 -1
  64. package/dist/cdn/{I5TF2Y4L.js → L7WEEHWA.js} +1 -1
  65. package/dist/cdn/{6EJKMTAK.js → LQ2L5WDO.js} +1 -1
  66. package/dist/cdn/{CLF453MS.js → LU3AN5PO.js} +1 -1
  67. package/dist/cdn/{SELNEZH2.js → MB3SHKVV.js} +1 -1
  68. package/dist/cdn/{XGLRJ7V7.js → MKHCIJUO.js} +1 -1
  69. package/dist/cdn/{B3O2WK4H.js → MMXNR5RX.js} +1 -1
  70. package/dist/cdn/{TGUDLWN4.js → MOK6MFBM.js} +1 -1
  71. package/dist/cdn/{KEB3VFAO.js → N73KWKN3.js} +1 -1
  72. package/dist/cdn/{2S7NPLRD.js → NGYBT3KZ.js} +1 -1
  73. package/dist/cdn/{YRJCKJRZ.js → NUSST644.js} +1 -1
  74. package/dist/cdn/{SNIJFAXF.js → NUW2SVAZ.js} +1 -1
  75. package/dist/cdn/{4ARSDOF2.js → NXNHPGTQ.js} +1 -1
  76. package/dist/cdn/{R4MIPDZD.js → OGYP4PT3.js} +1 -1
  77. package/dist/cdn/{VE7RW5OY.js → OH2HEEFB.js} +1 -1
  78. package/dist/cdn/{NF7KYVPE.js → OKMZYNYT.js} +1 -1
  79. package/dist/cdn/{7LPIGOLI.js → OMJD4F3K.js} +1 -1
  80. package/dist/cdn/{273Z4GGH.js → OSG4TJAG.js} +1 -1
  81. package/dist/cdn/{QJQN3MBL.js → OUOS6BJZ.js} +1 -1
  82. package/dist/cdn/{XCI7IP4U.js → OZRCBV7E.js} +1 -1
  83. package/dist/cdn/{G57Q5KHZ.js → P2WOGWXH.js} +1 -1
  84. package/dist/cdn/{WAFYQ7C3.js → P56VBKLA.js} +1 -1
  85. package/dist/cdn/{ZWMLY4HG.js → P6DAEHHY.js} +1 -1
  86. package/dist/cdn/{A673JVSA.js → PAIESPRF.js} +1 -1
  87. package/dist/cdn/{UDGWSLPU.js → PF62P6EA.js} +1 -1
  88. package/dist/cdn/{V33ZP7DY.js → PFZ2Y2IO.js} +1 -1
  89. package/dist/cdn/{FJFVUT3R.js → PJIRZ5JN.js} +1 -1
  90. package/dist/cdn/{OOEPPBXM.js → PV4NC3RW.js} +1 -1
  91. package/dist/cdn/{XCUGUD4Q.js → QJ6JEAFQ.js} +1 -1
  92. package/dist/cdn/{ALIXXROM.js → QNF3JMOQ.js} +1 -1
  93. package/dist/cdn/{OTICUWBZ.js → R67UKCVU.js} +1 -1
  94. package/dist/cdn/{ZWPGE7UW.js → R6UGDU2R.js} +1 -1
  95. package/dist/cdn/{URUJPX6O.js → RQP3QJZI.js} +1 -1
  96. package/dist/cdn/{RINPUL5L.js → RVDBHDXS.js} +1 -1
  97. package/dist/cdn/{EVSDMBGN.js → RYI46JK6.js} +1 -1
  98. package/dist/cdn/{ZIWS2E5B.js → S4O5SCPG.js} +1 -1
  99. package/dist/cdn/{F4HZEVHH.js → S5CHO4U4.js} +1 -1
  100. package/dist/cdn/{TD4WAJAP.js → SEOCJRMP.js} +1 -1
  101. package/dist/cdn/{23WUMAS4.js → SH5OX57L.js} +1 -1
  102. package/dist/cdn/{DAZN5DI4.js → SHNVFDYZ.js} +1 -1
  103. package/dist/cdn/{O6U273J2.js → SJ2QKTB2.js} +1 -1
  104. package/dist/cdn/{OBFZWREG.js → SKNYDJDG.js} +1 -1
  105. package/dist/cdn/{ZMQPZ4SM.js → SZKYMSWE.js} +1 -1
  106. package/dist/cdn/{VMXPCKPN.js → T3SBFTTU.js} +1 -1
  107. package/dist/cdn/{7FBHPUO5.js → TG3SE24X.js} +1 -1
  108. package/dist/cdn/{76MHN7V2.js → TG44VRS3.js} +1 -1
  109. package/dist/cdn/{7AWWLHJ6.js → TGFI5Y54.js} +1 -1
  110. package/dist/cdn/{QFBASS3W.js → TMF6RUSK.js} +1 -1
  111. package/dist/cdn/{WZQMZY5I.js → TOJO3DZJ.js} +1 -1
  112. package/dist/cdn/{3CP56APJ.js → TQSBMZUH.js} +1 -1
  113. package/dist/cdn/{BAL4PDWM.js → UPMXPJRW.js} +1 -1
  114. package/dist/cdn/{YGYL4XMJ.js → UWICRJQO.js} +1 -1
  115. package/dist/cdn/{OQQJRXFJ.js → UYLTPVFT.js} +1 -1
  116. package/dist/cdn/{L2BTO77P.js → VFFODXE5.js} +1 -1
  117. package/dist/cdn/{3LCUAV2J.js → VGIY62WD.js} +1 -1
  118. package/dist/cdn/{5S6OP6HT.js → VKN6JJHH.js} +1 -1
  119. package/dist/cdn/{THN4PT7B.js → VXD77BNL.js} +1 -1
  120. package/dist/cdn/{ULBKKOQK.js → W4U75XMI.js} +1 -1
  121. package/dist/cdn/{5IKT4REZ.js → WG4Y2YXD.js} +1 -1
  122. package/dist/cdn/{AAZ63DDH.js → WU2FYJPY.js} +1 -1
  123. package/dist/cdn/{NXB3FRVS.js → X2VMJBUA.js} +1 -1
  124. package/dist/cdn/X3KQ4SRN.js +4 -0
  125. package/dist/cdn/{GA4ZVTQS.js → X3X7MERT.js} +1 -1
  126. package/dist/cdn/{UI6SYU7R.js → X4R2U7OM.js} +1 -1
  127. package/dist/cdn/{VKAQZHF4.js → XBBOJCAG.js} +1 -1
  128. package/dist/cdn/{WJF6EPCD.js → XD3JL5DR.js} +1 -1
  129. package/dist/cdn/{2RES3CEJ.js → XNHSUYWZ.js} +1 -1
  130. package/dist/cdn/{FZFYK4YW.js → XVE4JN3H.js} +1 -1
  131. package/dist/cdn/{76CDECCH.js → XW3IP2CH.js} +1 -1
  132. package/dist/cdn/{NL5P6QIL.js → Y5EX4HUW.js} +1 -1
  133. package/dist/cdn/{ZNQYJ3F6.js → YBTRE55X.js} +1 -1
  134. package/dist/cdn/{ZGQKLZNW.js → YGSUEQMS.js} +1 -1
  135. package/dist/cdn/{CIVFTKSR.js → YONIKQC3.js} +1 -1
  136. package/dist/cdn/{SS32IDBY.js → YRBYKWDO.js} +1 -1
  137. package/dist/cdn/{6MCCH36T.js → YZ6XKB4F.js} +1 -1
  138. package/dist/cdn/{DSEQOKDE.js → YZIPHHRW.js} +1 -1
  139. package/dist/cdn/{WSQ4PXI6.js → Z7XEAFTW.js} +1 -1
  140. package/dist/cdn/{VPRGNGZX.js → ZELB53ZU.js} +1 -1
  141. package/dist/cdn/{6ZF5OGYU.js → ZER7OLYY.js} +1 -1
  142. package/dist/cdn/{4OMECTGO.js → ZFSMJ5LH.js} +1 -1
  143. package/dist/cdn/{O74CSENQ.js → ZO3LKLON.js} +1 -1
  144. package/dist/cdn/index.js +1 -1
  145. package/dist/chunks/runtime.js +4 -4
  146. package/dist/components/calcite-combobox/customElement.js +1 -1
  147. package/dist/components/calcite-dialog/customElement.js +1 -1
  148. package/dist/docs/api.json +1 -1
  149. package/dist/docs/docs.json +1 -1
  150. package/dist/docs/web-types.json +1 -1
  151. package/package.json +3 -3
  152. package/dist/cdn/JAF6FNAT.js +0 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/calcite-components",
3
- "version": "5.1.0-next.52",
3
+ "version": "5.1.0-next.53",
4
4
  "description": "Web Components for Esri's Calcite Design System.",
5
5
  "homepage": "https://developers.arcgis.com/calcite-design-system/",
6
6
  "repository": {
@@ -81,7 +81,7 @@
81
81
  "color": "^5.0.3",
82
82
  "composed-offset-position": "^0.0.6",
83
83
  "es-toolkit": "^1.39.8",
84
- "focus-trap": "^8.0.1",
84
+ "focus-trap": "^8.2.1",
85
85
  "interactjs": "^1.10.27",
86
86
  "lit": "^3.3.0",
87
87
  "sortablejs": "^1.15.6",
@@ -106,5 +106,5 @@
106
106
  "dist/docs/vscode.html-custom-data.json"
107
107
  ],
108
108
  "web-types": "dist/docs/web-types.json",
109
- "gitHead": "77d0af730125da35a384f75feb79b108cb7b2644"
109
+ "gitHead": "f700da4ec7eb8b3e3adb10625d823edab1f8cbf7"
110
110
  }
@@ -1,4 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{b as fe}from"./R4MIPDZD.js";import{a as de,l as ve}from"./JTFWEILS.js";import{Q as le}from"./KC5YLSJL.js";var pe=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],$=pe.join(","),he=typeof Element>"u",G=he?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,J=!he&&Element.prototype.getRootNode?function(r){var e;return r==null||(e=r.getRootNode)===null||e===void 0?void 0:e.call(r)}:function(r){return r?.ownerDocument},Q=function(e,t){var n;t===void 0&&(t=!0);var u=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),c=u===""||u==="true",a=c||t&&e&&(typeof e.closest=="function"?e.closest("[inert]"):Q(e.parentNode));return a},Ce=function(e){var t,n=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return n===""||n==="true"},ye=function(e,t,n){if(Q(e))return[];var u=Array.prototype.slice.apply(e.querySelectorAll($));return t&&G.call(e,$)&&u.unshift(e),u=u.filter(n),u},ee=function(e,t,n){for(var u=[],c=Array.from(e);c.length;){var a=c.shift();if(!Q(a,!1))if(a.tagName==="SLOT"){var s=a.assignedElements(),f=s.length?s:a.children,p=ee(f,!0,n);n.flatten?u.push.apply(u,p):u.push({scopeParent:a,candidates:p})}else{var F=G.call(a,$);F&&n.filter(a)&&(t||!e.includes(a))&&u.push(a);var w=a.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(a),R=!Q(w,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(w&&R){var A=ee(w===!0?a.children:w.children,!0,n);n.flatten?u.push.apply(u,A):u.push({scopeParent:a,candidates:A})}else c.unshift.apply(c,a.children)}}return u},me=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},L=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Ce(e))&&!me(e)?0:e.tabIndex},je=function(e,t){var n=L(e);return n<0&&t&&!me(e)?0:n},xe=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},ge=function(e){return e.tagName==="INPUT"},Le=function(e){return ge(e)&&e.type==="hidden"},Be=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return t},_e=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},Ge=function(e){if(!e.name)return!0;var t=e.form||J(e),n=function(s){return t.querySelectorAll('input[type="radio"][name="'+s+'"]')},u;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")u=n(window.CSS.escape(e.name));else try{u=n(e.name)}catch(a){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",a.message),!1}var c=_e(u,e.form);return!c||c===e},Ke=function(e){return ge(e)&&e.type==="radio"},Me=function(e){return Ke(e)&&!Ge(e)},Ve=function(e){var t,n=e&&J(e),u=(t=n)===null||t===void 0?void 0:t.host,c=!1;if(n&&n!==e){var a,s,f;for(c=!!((a=u)!==null&&a!==void 0&&(s=a.ownerDocument)!==null&&s!==void 0&&s.contains(u)||e!=null&&(f=e.ownerDocument)!==null&&f!==void 0&&f.contains(e));!c&&u;){var p,F,w;n=J(u),u=(p=n)===null||p===void 0?void 0:p.host,c=!!((F=u)!==null&&F!==void 0&&(w=F.ownerDocument)!==null&&w!==void 0&&w.contains(u))}}return c},be=function(e){var t=e.getBoundingClientRect(),n=t.width,u=t.height;return n===0&&u===0},qe=function(e,t){var n=t.displayCheck,u=t.getShadowRoot;if(n==="full-native"&&"checkVisibility"in e){var c=e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!c}if(getComputedStyle(e).visibility==="hidden")return!0;var a=G.call(e,"details>summary:first-of-type"),s=a?e.parentElement:e;if(G.call(s,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="full-native"||n==="legacy-full"){if(typeof u=="function"){for(var f=e;e;){var p=e.parentElement,F=J(e);if(p&&!p.shadowRoot&&u(p)===!0)return be(e);e.assignedSlot?e=e.assignedSlot:!p&&F!==e.ownerDocument?e=F.host:e=p}e=f}if(Ve(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return be(e);return!1},Ue=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var n=0;n<t.children.length;n++){var u=t.children.item(n);if(u.tagName==="LEGEND")return G.call(t,"fieldset[disabled] *")?!0:!u.contains(e)}return!0}t=t.parentElement}return!1},te=function(e,t){return!(t.disabled||Le(t)||qe(t,e)||Be(t)||Ue(t))},ce=function(e,t){return!(Me(t)||L(t)<0||!te(e,t))},We=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},we=function(e){var t=[],n=[];return e.forEach(function(u,c){var a=!!u.scopeParent,s=a?u.scopeParent:u,f=je(s,a),p=a?we(u.candidates):s;f===0?a?t.push.apply(t,p):t.push(s):n.push({documentOrder:c,tabIndex:f,item:u,isScope:a,content:p})}),n.sort(xe).reduce(function(u,c){return c.isScope?u.push.apply(u,c.content):u.push(c.content),u},[]).concat(t)},Te=function(e,t){t=t||{};var n;return t.getShadowRoot?n=ee([e],t.includeContainer,{filter:ce.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:We}):n=ye(e,t.includeContainer,ce.bind(null,t)),we(n)},Se=function(e,t){t=t||{};var n;return t.getShadowRoot?n=ee([e],t.includeContainer,{filter:te.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):n=ye(e,t.includeContainer,te.bind(null,t)),n},K=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return G.call(e,$)===!1?!1:ce(t,e)},Ye=pe.concat("iframe:not([inert]):not([inert] *)").join(","),re=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return G.call(e,Ye)===!1?!1:te(t,e)};function se(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t<e;t++)n[t]=r[t];return n}function He(r){if(Array.isArray(r))return se(r)}function Fe(r,e,t,n,u,c,a){try{var s=r[c](a),f=s.value}catch(p){return void t(p)}s.done?e(f):Promise.resolve(f).then(n,u)}function Ne(r){return function(){var e=this,t=arguments;return new Promise(function(n,u){var c=r.apply(e,t);function a(f){Fe(c,n,u,a,s,"next",f)}function s(f){Fe(c,n,u,a,s,"throw",f)}a(void 0)})}}function Ee(r,e){var t=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=Oe(r))||e){t&&(r=t);var n=0,u=function(){};return{s:u,n:function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(f){throw f},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
3
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var c,a=!0,s=!1;return{s:function(){t=t.call(r)},n:function(){var f=t.next();return a=f.done,f},e:function(f){s=!0,c=f},f:function(){try{a||t.return==null||t.return()}finally{if(s)throw c}}}}function Ze(r,e,t){return(e=Qe(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function ze(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function Xe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
4
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ke(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(u){return Object.getOwnPropertyDescriptor(r,u).enumerable})),t.push.apply(t,n)}return t}function Ae(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ke(Object(t),!0).forEach(function(n){Ze(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):ke(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function U(){var r,e,t=typeof Symbol=="function"?Symbol:{},n=t.iterator||"@@iterator",u=t.toStringTag||"@@toStringTag";function c(A,I,Y,H){var M=I&&I.prototype instanceof s?I:s,V=Object.create(M.prototype);return O(V,"_invoke",(function(ie,Z,z){var P,T,E,B=0,X=z||[],C=!1,N={p:0,n:0,v:r,a:g,f:g.bind(r,4),d:function(i,o){return P=i,T=0,E=r,N.n=o,a}};function g(i,o){for(T=i,E=o,e=0;!C&&B&&!l&&e<X.length;e++){var l,d=X[e],b=N.p,h=d[2];i>3?(l=h===o)&&(E=d[(T=d[4])?5:(T=3,3)],d[4]=d[5]=r):d[0]<=b&&((l=i<2&&b<d[1])?(T=0,N.v=o,N.n=d[1]):b<h&&(l=i<3||d[0]>o||o>h)&&(d[4]=i,d[5]=o,N.n=h,T=0))}if(l||i>1)return a;throw C=!0,o}return function(i,o,l){if(B>1)throw TypeError("Generator is already running");for(C&&o===1&&g(o,l),T=o,E=l;(e=T<2?r:E)||!C;){P||(T?T<3?(T>1&&(N.n=-1),g(T,E)):N.n=E:N.v=E);try{if(B=2,P){if(T||(i="next"),e=P[i]){if(!(e=e.call(P,E)))throw TypeError("iterator result is not an object");if(!e.done)return e;E=e.value,T<2&&(T=0)}else T===1&&(e=P.return)&&e.call(P),T<2&&(E=TypeError("The iterator does not provide a '"+i+"' method"),T=1);P=r}else if((e=(C=N.n<0)?E:ie.call(Z,N))!==a)break}catch(d){P=r,T=1,E=d}finally{B=1}}return{value:e,done:C}}})(A,Y,H),!0),V}var a={};function s(){}function f(){}function p(){}e=Object.getPrototypeOf;var F=[][n]?e(e([][n]())):(O(e={},n,function(){return this}),e),w=p.prototype=s.prototype=Object.create(F);function R(A){return Object.setPrototypeOf?Object.setPrototypeOf(A,p):(A.__proto__=p,O(A,u,"GeneratorFunction")),A.prototype=Object.create(w),A}return f.prototype=p,O(w,"constructor",p),O(p,"constructor",f),f.displayName="GeneratorFunction",O(p,u,"GeneratorFunction"),O(w),O(w,u,"Generator"),O(w,n,function(){return this}),O(w,"toString",function(){return"[object Generator]"}),(U=function(){return{w:c,m:R}})()}function O(r,e,t,n){var u=Object.defineProperty;try{u({},"",{})}catch{u=0}O=function(c,a,s,f){function p(F,w){O(c,F,function(R){return this._invoke(F,w,R)})}a?u?u(c,a,{value:s,enumerable:!f,configurable:!f,writable:!f}):c[a]=s:(p("next",0),p("throw",1),p("return",2))},O(r,e,t,n)}function $e(r){return He(r)||ze(r)||Oe(r)||Xe()}function Je(r,e){if(typeof r!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function Qe(r){var e=Je(r,"string");return typeof e=="symbol"?e:e+""}function Oe(r,e){if(r){if(typeof r=="string")return se(r,e);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?se(r,e):void 0}}var j={getActiveTrap:function(e){return e?.length>0?e[e.length-1]:null},activateTrap:function(e,t){var n=j.getActiveTrap(e);t!==n&&j.pauseTrap(e);var u=e.indexOf(t);u===-1||e.splice(u,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1),j.unpauseTrap(e)},pauseTrap:function(e){var t=j.getActiveTrap(e);t?._setPausedState(!0)},unpauseTrap:function(e){var t=j.getActiveTrap(e);t&&!t._isManuallyPaused()&&t._setPausedState(!1)}},et=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},tt=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},W=function(e){return e?.key==="Tab"||e?.keyCode===9},rt=function(e){return W(e)&&!e.shiftKey},at=function(e){return W(e)&&e.shiftKey},De=function(e){return setTimeout(e,0)},q=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),u=1;u<t;u++)n[u-1]=arguments[u];return typeof e=="function"?e.apply(void 0,n):e},ae=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},nt=[],Re=function(e,t){var n=t?.document||document,u=t?.trapStack||nt,c=Ae({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,delayReturnFocus:!0,isolateSubtrees:!1,isKeyForward:rt,isKeyBackward:at},t),a={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},s,f=function(i,o,l){return i&&i[o]!==void 0?i[o]:c[l||o]},p=function(i,o){var l=typeof o?.composedPath=="function"?o.composedPath():void 0;return a.containerGroups.findIndex(function(d){var b=d.container,h=d.tabbableNodes;return b.contains(i)||l?.includes(b)||h.find(function(v){return v===i})})},F=function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=o.hasFallback,d=l===void 0?!1:l,b=o.params,h=b===void 0?[]:b,v=c[i];if(typeof v=="function"&&(v=v.apply(void 0,$e(h))),v===!0&&(v=void 0),!v){if(v===void 0||v===!1)return v;throw new Error("`".concat(i,"` was specified but was not a node, or did not return a node"))}var m=v;if(typeof v=="string"){try{m=n.querySelector(v)}catch(y){throw new Error("`".concat(i,'` appears to be an invalid selector; error="').concat(y.message,'"'))}if(!m&&!d)throw new Error("`".concat(i,"` as selector refers to no known node"))}return m},w=function(){var i=F("initialFocus",{hasFallback:!0});if(i===!1)return!1;if(i===void 0||i&&!re(i,c.tabbableOptions))if(p(n.activeElement)>=0)i=n.activeElement;else{var o=a.tabbableGroups[0],l=o&&o.firstTabbableNode;i=l||F("fallbackFocus")}else i===null&&(i=F("fallbackFocus"));if(!i)throw new Error("Your focus-trap needs to have at least one focusable element");return i},R=function(){if(a.containerGroups=a.containers.map(function(i){var o=Te(i,c.tabbableOptions),l=Se(i,c.tabbableOptions),d=o.length>0?o[0]:void 0,b=o.length>0?o[o.length-1]:void 0,h=l.find(function(y){return K(y)}),v=l.slice().reverse().find(function(y){return K(y)}),m=!!o.find(function(y){return L(y)>0});return{container:i,tabbableNodes:o,focusableNodes:l,posTabIndexesFound:m,firstTabbableNode:d,lastTabbableNode:b,firstDomTabbableNode:h,lastDomTabbableNode:v,nextTabbableNode:function(S){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,k=o.indexOf(S);return k<0?D?l.slice(l.indexOf(S)+1).find(function(_){return K(_)}):l.slice(0,l.indexOf(S)).reverse().find(function(_){return K(_)}):o[k+(D?1:-1)]}}}),a.tabbableGroups=a.containerGroups.filter(function(i){return i.tabbableNodes.length>0}),a.tabbableGroups.length<=0&&!F("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(a.containerGroups.find(function(i){return i.posTabIndexesFound})&&a.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},A=function(i){var o=i.activeElement;if(o)return o.shadowRoot&&o.shadowRoot.activeElement!==null?A(o.shadowRoot):o},I=function(i){if(i!==!1&&i!==A(document)){if(!i||!i.focus){I(w());return}i.focus({preventScroll:!!c.preventScroll}),a.mostRecentlyFocusedNode=i,et(i)&&i.select()}},Y=function(i){var o=F("setReturnFocus",{params:[i]});return o||(o===!1?!1:i)},H=function(i){var o=i.target,l=i.event,d=i.isBackward,b=d===void 0?!1:d;o=o||ae(l),R();var h=null;if(a.tabbableGroups.length>0){var v=p(o,l),m=v>=0?a.containerGroups[v]:void 0;if(v<0)b?h=a.tabbableGroups[a.tabbableGroups.length-1].lastTabbableNode:h=a.tabbableGroups[0].firstTabbableNode;else if(b){var y=a.tabbableGroups.findIndex(function(oe){var ue=oe.firstTabbableNode;return o===ue});if(y<0&&(m.container===o||re(o,c.tabbableOptions)&&!K(o,c.tabbableOptions)&&!m.nextTabbableNode(o,!1))&&(y=v),y>=0){var S=y===0?a.tabbableGroups.length-1:y-1,D=a.tabbableGroups[S];h=L(o)>=0?D.lastTabbableNode:D.lastDomTabbableNode}else W(l)||(h=m.nextTabbableNode(o,!1))}else{var k=a.tabbableGroups.findIndex(function(oe){var ue=oe.lastTabbableNode;return o===ue});if(k<0&&(m.container===o||re(o,c.tabbableOptions)&&!K(o,c.tabbableOptions)&&!m.nextTabbableNode(o))&&(k=v),k>=0){var _=k===a.tabbableGroups.length-1?0:k+1,x=a.tabbableGroups[_];h=L(o)>=0?x.firstTabbableNode:x.firstDomTabbableNode}else W(l)||(h=m.nextTabbableNode(o))}}else h=F("fallbackFocus");return h},M=function(i){var o=ae(i);if(!(p(o,i)>=0)){if(q(c.clickOutsideDeactivates,i)){s.deactivate({returnFocus:c.returnFocusOnDeactivate});return}q(c.allowOutsideClick,i)||i.preventDefault()}},V=function(i){var o=ae(i),l=p(o,i)>=0;if(l||o instanceof Document)l&&(a.mostRecentlyFocusedNode=o);else{i.stopImmediatePropagation();var d,b=!0;if(a.mostRecentlyFocusedNode)if(L(a.mostRecentlyFocusedNode)>0){var h=p(a.mostRecentlyFocusedNode),v=a.containerGroups[h].tabbableNodes;if(v.length>0){var m=v.findIndex(function(y){return y===a.mostRecentlyFocusedNode});m>=0&&(c.isKeyForward(a.recentNavEvent)?m+1<v.length&&(d=v[m+1],b=!1):m-1>=0&&(d=v[m-1],b=!1))}}else a.containerGroups.some(function(y){return y.tabbableNodes.some(function(S){return L(S)>0})})||(b=!1);else b=!1;b&&(d=H({target:a.mostRecentlyFocusedNode,isBackward:c.isKeyBackward(a.recentNavEvent)})),I(d||a.mostRecentlyFocusedNode||w())}a.recentNavEvent=void 0},ie=function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;a.recentNavEvent=i;var l=H({event:i,isBackward:o});l&&(W(i)&&i.preventDefault(),I(l))},Z=function(i){(c.isKeyForward(i)||c.isKeyBackward(i))&&ie(i,c.isKeyBackward(i))},z=function(i){tt(i)&&q(c.escapeDeactivates,i)!==!1&&(i.preventDefault(),s.deactivate())},P=function(i){var o=ae(i);p(o,i)>=0||q(c.clickOutsideDeactivates,i)||q(c.allowOutsideClick,i)||(i.preventDefault(),i.stopImmediatePropagation())},T=function(){if(!a.active)return Promise.resolve();j.activateTrap(u,s);var i;return c.delayInitialFocus?i=new Promise(function(o){a.delayInitialFocusTimer=De(function(){I(w()),o()})}):(i=Promise.resolve(),I(w())),n.addEventListener("focusin",V,!0),n.addEventListener("mousedown",M,{capture:!0,passive:!1}),n.addEventListener("touchstart",M,{capture:!0,passive:!1}),n.addEventListener("click",P,{capture:!0,passive:!1}),n.addEventListener("keydown",Z,{capture:!0,passive:!1}),n.addEventListener("keydown",z),i},E=function(i){a.active&&!a.paused&&s._setSubtreeIsolation(!1),a.adjacentElements.clear(),a.alreadySilent.clear();var o=new Set,l=new Set,d=Ee(i),b;try{for(d.s();!(b=d.n()).done;){var h=b.value;o.add(h);for(var v=typeof ShadowRoot<"u"&&h.getRootNode()instanceof ShadowRoot,m=h;m;){o.add(m);var y=m.parentElement,S=[];y?S=y.children:!y&&v&&(S=m.getRootNode().children,y=m.getRootNode().host,v=typeof ShadowRoot<"u"&&y.getRootNode()instanceof ShadowRoot);var D=Ee(S),k;try{for(D.s();!(k=D.n()).done;){var _=k.value;l.add(_)}}catch(x){D.e(x)}finally{D.f()}m=y}}}catch(x){d.e(x)}finally{d.f()}o.forEach(function(x){l.delete(x)}),a.adjacentElements=l},B=function(){if(a.active)return n.removeEventListener("focusin",V,!0),n.removeEventListener("mousedown",M,!0),n.removeEventListener("touchstart",M,!0),n.removeEventListener("click",P,!0),n.removeEventListener("keydown",Z,!0),n.removeEventListener("keydown",z),s},X=function(i){var o=a.mostRecentlyFocusedNode;if(o){var l=i.some(function(b){var h=Array.from(b.removedNodes);return h.some(function(v){return v===o||typeof v.contains=="function"&&v.contains(o)})});if(l&&a.containers.some(function(b){return b?.isConnected})){R();var d=w();I(d)}}},C=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(X):void 0,N=function(){C&&(C.disconnect(),a.active&&!a.paused&&a.containers.map(function(i){C.observe(i,{subtree:!0,childList:!0})}))};return s={get active(){return a.active},get paused(){return a.paused},activate:function(i){if(a.active)return this;var o=f(i,"onActivate"),l=f(i,"onPostActivate"),d=f(i,"checkCanFocusTrap"),b=j.getActiveTrap(u),h=!1;if(b&&!b.paused){var v;(v=b._setSubtreeIsolation)===null||v===void 0||v.call(b,!1),h=!0}try{d||R(),a.active=!0,a.paused=!1,a.nodeFocusedBeforeActivation=A(n),o?.({trap:s});var m=(function(){var S=Ne(U().m(function D(){return U().w(function(k){for(;;)switch(k.n){case 0:return d&&R(),k.n=1,T();case 1:s._setSubtreeIsolation(!0),N(),l?.({trap:s});case 2:return k.a(2)}},D)}));return function(){return S.apply(this,arguments)}})();if(d)return d(a.containers.concat()).then(m,m),this;m()}catch(S){if(b===j.getActiveTrap(u)&&h){var y;(y=b._setSubtreeIsolation)===null||y===void 0||y.call(b,!0)}throw S}return this},deactivate:function(i){if(!a.active)return this;var o=Ae({onDeactivate:c.onDeactivate,onPostDeactivate:c.onPostDeactivate,checkCanReturnFocus:c.checkCanReturnFocus},i);clearTimeout(a.delayInitialFocusTimer),a.delayInitialFocusTimer=void 0,a.paused||s._setSubtreeIsolation(!1),a.alreadySilent.clear(),B(),a.active=!1,a.paused=!1,N(),j.deactivateTrap(u,s);var l=f(o,"onDeactivate"),d=f(o,"onPostDeactivate"),b=f(o,"checkCanReturnFocus"),h=f(o,"delayReturnFocus"),v=f(o,"returnFocus","returnFocusOnDeactivate");l?.({trap:s});var m=function(){v&&I(Y(a.nodeFocusedBeforeActivation)),d?.({trap:s})},y=function(){h&&v?De(m):m()};return v&&b?(b(Y(a.nodeFocusedBeforeActivation)).then(y,y),this):(y(),this)},pause:function(i){return a.active?(a.manuallyPaused=!0,this._setPausedState(!0,i)):this},unpause:function(i){return a.active?(a.manuallyPaused=!1,u[u.length-1]!==this?this:this._setPausedState(!1,i)):this},updateContainerElements:function(i){var o=[].concat(i).filter(Boolean);return a.containers=o.map(function(l){return typeof l=="string"?n.querySelector(l):l}),c.isolateSubtrees&&E(a.containers),a.active&&(R(),a.paused||s._setSubtreeIsolation(!0)),N(),this}},Object.defineProperties(s,{_isManuallyPaused:{value:function(){return a.manuallyPaused}},_setPausedState:{value:function(i,o){if(a.paused===i)return this;if(a.paused=i,i){var l=f(o,"onPause"),d=f(o,"onPostPause");l?.({trap:s}),B(),s._setSubtreeIsolation(!1),N(),d?.({trap:s})}else{var b=f(o,"onUnpause"),h=f(o,"onPostUnpause");b?.({trap:s});var v=(function(){var m=Ne(U().m(function y(){return U().w(function(S){for(;;)switch(S.n){case 0:return R(),S.n=1,T();case 1:s._setSubtreeIsolation(!0),N(),h?.({trap:s});case 2:return S.a(2)}},y)}));return function(){return m.apply(this,arguments)}})();v()}return this}},_setSubtreeIsolation:{value:function(i){c.isolateSubtrees&&a.adjacentElements.forEach(function(o){var l;i?c.isolateSubtrees==="aria-hidden"?((o.ariaHidden==="true"||((l=o.getAttribute("aria-hidden"))===null||l===void 0?void 0:l.toLowerCase())==="true")&&a.alreadySilent.add(o),o.setAttribute("aria-hidden","true")):((o.inert||o.hasAttribute("inert"))&&a.alreadySilent.add(o),o.setAttribute("inert",!0)):a.alreadySilent.has(o)||(c.isolateSubtrees==="aria-hidden"?o.removeAttribute("aria-hidden"):o.removeAttribute("inert"))})}}}),s.updateContainerElements(e),s};function Ie(r,{focusTrapOptions:e},t){return!e?.extraContainers&&!t?r:[r,...Pe(e?.extraContainers),...Pe(t)]}function Pe(r=[]){return Array.isArray(r)?r:[r]}var ne=new WeakSet;function it(r,e){let t=e&&e!==document.body&&e!==document.documentElement;return!ne.has(r)&&t&&ve(e),!1}function ot(r,e){let t=e?.fallbackFocus||r,n=e?.clickOutsideDeactivates??!0,u;return{fallbackFocus:t,...e,document:r.ownerDocument,tabbableOptions:de,trapStack:le().focusTrapStack,clickOutsideDeactivates:c=>(ne.has(r)||ne.add(r),typeof n=="function"?n(c):n),onActivate:c=>{e?.escapeDeactivates&&(u=new AbortController,r.addEventListener("keydown",a=>{if(a.key==="Escape"){let s=e?.escapeDeactivates;(typeof s=="function"?s(a):s??!0)&&c.trap.deactivate()}},{signal:u.signal})),e?.onActivate?.(c)},onDeactivate:c=>{u?.abort(),u=void 0,e?.onDeactivate?.(c)},onPostDeactivate:()=>{ne.delete(r)},setReturnFocus:c=>{let a=typeof e?.setReturnFocus=="function"?e.setReturnFocus(c):e?.setReturnFocus;return a===void 0?it(r,c):a}}}var bt=r=>fe((e,t)=>{let n,u,c,a=r.focusTrapOptions;t.onConnected(()=>{e[r.triggerProp]&&n&&s.activate()}),t.onUpdate(f=>{e.hasUpdated&&f.has("focusTrapDisabled")&&(e.focusTrapDisabled?s.deactivate():s.activate())}),t.onDisconnected(()=>s.deactivate());let s={get _instance(){},activate:()=>{let f=u||e.el;f.isConnected&&(n||(c||=Ie(f,e),n=Re(c,ot(f,{...a,...e.focusTrapOptions}))),(typeof e.focusTrapDisabledOverride=="function"?!e.focusTrapDisabledOverride():!e.focusTrapDisabled)&&n.activate())},deactivate:()=>n?.deactivate(),overrideFocusTrapEl:f=>{if(n)throw new Error("Focus trap already created");u=f},setExtraContainers:f=>{let p=u||e.el;c=Ie(p,e,f)},updateContainerElements:()=>n?.updateContainerElements(c)};return s});export{bt as a};