@brightspot/ui 5.0.3-toggleable-fix.0 → 5.1.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 (208) hide show
  1. package/dist/components/button-group/ButtonGroup.d.ts +21 -6
  2. package/dist/components/button-group/ButtonGroup.d.ts.map +1 -1
  3. package/dist/components/button-group/ButtonGroup.js +37 -20
  4. package/dist/components/button-group/ButtonGroup.js.map +1 -1
  5. package/dist/components/card/Card.css +7 -0
  6. package/dist/components/card/Card.d.ts +244 -0
  7. package/dist/components/card/Card.d.ts.map +1 -0
  8. package/dist/components/card/Card.js +512 -0
  9. package/dist/components/card/Card.js.map +1 -0
  10. package/dist/components/circular-progress/CircularProgress.js +2 -2
  11. package/dist/components/dropdown/DropdownItem.d.ts.map +1 -1
  12. package/dist/components/dropdown/DropdownItem.js +3 -4
  13. package/dist/components/dropdown/DropdownItem.js.map +1 -1
  14. package/dist/components/empty-state/EmptyState.d.ts +11 -2
  15. package/dist/components/empty-state/EmptyState.d.ts.map +1 -1
  16. package/dist/components/empty-state/EmptyState.js +19 -8
  17. package/dist/components/empty-state/EmptyState.js.map +1 -1
  18. package/dist/components/icon/Icon.d.ts.map +1 -1
  19. package/dist/components/icon/Icon.js +7 -4
  20. package/dist/components/icon/Icon.js.map +1 -1
  21. package/dist/components/linear-progress/LinearProgress.js +1 -1
  22. package/dist/components/tabs/Tab.js +1 -1
  23. package/dist/components/tabs/Tab.js.map +1 -1
  24. package/dist/components/upload/UploadItem.js +1 -1
  25. package/dist/components/upload/UploadItem.js.map +1 -1
  26. package/dist/components/widget/Widget.css +1 -1
  27. package/dist/components/widget/Widget.d.ts +11 -2
  28. package/dist/components/widget/Widget.d.ts.map +1 -1
  29. package/dist/components/widget/Widget.js +22 -11
  30. package/dist/components/widget/Widget.js.map +1 -1
  31. package/dist/custom-elements.json +2576 -2080
  32. package/dist/storybook/assets/{ActionBar.stories-CTrEOJBH.js → ActionBar.stories-D9ok2eVg.js} +1 -1
  33. package/dist/storybook/assets/{ActionItem.stories-Cm3zQeMa.js → ActionItem.stories-DjPfYpgA.js} +1 -1
  34. package/dist/storybook/assets/{Avatar.stories-DSltfj-_.js → Avatar.stories-Di3s5wxK.js} +1 -1
  35. package/dist/storybook/assets/{AvatarGroup.stories-BjL-l4VH.js → AvatarGroup.stories-CT7lYX_U.js} +5 -5
  36. package/dist/storybook/assets/{Badge.stories-DLNO3rOl.js → Badge.stories-9unZqfhH.js} +1 -1
  37. package/dist/storybook/assets/{Button-TUtCVpwY.js → Button-DuuAvVjP.js} +1 -1
  38. package/dist/storybook/assets/{Button.stories-3HjoUoaq.js → Button.stories-KDBmJ9xt.js} +1 -1
  39. package/dist/storybook/assets/{ButtonGroup.stories-GF1UFxbr.js → ButtonGroup.stories-BeWYMkDy.js} +48 -48
  40. package/dist/storybook/assets/Card.stories-BNMJ-H5I.js +556 -0
  41. package/dist/storybook/assets/{Celebrate.stories-KtFU9NEQ.js → Celebrate.stories-Cue8O4hb.js} +7 -7
  42. package/dist/storybook/assets/{Checkbox.stories-CDg2caKU.js → Checkbox.stories-DLe4npId.js} +1 -1
  43. package/dist/storybook/assets/{CircularProgress.stories-C0OdRoxU.js → CircularProgress.stories-BHB2K82M.js} +1 -1
  44. package/dist/storybook/assets/{ClipboardMixin.stories-B6gIxMuH.js → ClipboardMixin.stories-mU-JGoHp.js} +2 -2
  45. package/dist/storybook/assets/{Color-6BZIO3FS-DDAuf4ms.js → Color-6BZIO3FS-D3GAvUXG.js} +1 -1
  46. package/dist/storybook/assets/{Colors.stories-tJVgPDrl.js → Colors.stories-a83X2cLQ.js} +1 -1
  47. package/dist/storybook/assets/{CombinedEffects.stories-BwrWmInr.js → CombinedEffects.stories-sLTopxBQ.js} +1 -1
  48. package/dist/storybook/assets/{ComponentStatesMixin-B9_GeVBN.js → ComponentStatesMixin-CJ9pmXHc.js} +1 -1
  49. package/dist/storybook/assets/{ComponentStatesMixin.stories-BAn1JPCN.js → ComponentStatesMixin.stories-DSkFzAxR.js} +3 -3
  50. package/dist/storybook/assets/{CopyToClipboard.stories-YgaScv3O.js → CopyToClipboard.stories-DqMxtd4b.js} +1 -1
  51. package/dist/storybook/assets/{Debounce.stories-y-toLkyr.js → Debounce.stories-DV30whKw.js} +3 -3
  52. package/dist/storybook/assets/{DocsRenderer-LL677BLK-BUwAiHkt.js → DocsRenderer-LL677BLK-DmVtYsJx.js} +3 -3
  53. package/dist/storybook/assets/{Dropdown.stories-DAVkpuM5.js → Dropdown.stories-sCz8_Hkw.js} +3 -3
  54. package/dist/storybook/assets/{EmptyState.stories-Buexv2C4.js → EmptyState.stories-kBKfr87C.js} +15 -15
  55. package/dist/storybook/assets/{Events.stories-SjSVTFwA.js → Events.stories-BXdHEFJR.js} +1 -1
  56. package/dist/storybook/assets/{Heading.stories-F7pp5AO4.js → Heading.stories-B2XJMBD8.js} +1 -1
  57. package/dist/storybook/assets/{HueRipple.stories-Dt-QniLc.js → HueRipple.stories-BfzsAQYM.js} +1 -1
  58. package/dist/storybook/assets/{Icon.stories-Cxknci9d.js → Icon.stories--pcHe1x-.js} +7 -7
  59. package/dist/storybook/assets/{IconButton.stories-C7nbDmmd.js → IconButton.stories-dbXfrgH3.js} +1 -1
  60. package/dist/storybook/assets/{LinearProgress.stories-DgP2rsiS.js → LinearProgress.stories-CApOBX0x.js} +1 -1
  61. package/dist/storybook/assets/OnFindMixin.stories-df6ckqw3.js +300 -0
  62. package/dist/storybook/assets/{Pagination.stories-DbLKeykx.js → Pagination.stories-_MiDRipW.js} +3 -3
  63. package/dist/storybook/assets/{Popover.stories-CbmWs7x-.js → Popover.stories-9hVZFeMx.js} +18 -18
  64. package/dist/storybook/assets/{ReadyMixin-BSMJuM5x.js → ReadyMixin-HHwtCrVi.js} +1 -1
  65. package/dist/storybook/assets/{RovingTabindexMixin.stories-DPojZp67.js → RovingTabindexMixin.stories-B6MPGbVh.js} +6 -6
  66. package/dist/storybook/assets/{Rtc.stories-BF7lM0fa.js → Rtc.stories-D3tZOSkM.js} +1 -1
  67. package/dist/storybook/assets/{ScrollShadow.stories-DwVglPfj.js → ScrollShadow.stories-B1dTcJR4.js} +1 -1
  68. package/dist/storybook/assets/{Switch.stories-DjjlIvXU.js → Switch.stories-Bp-Guy3z.js} +5 -5
  69. package/dist/storybook/assets/{Tab.stories-zUdDTEwX.js → Tab.stories-Caxi7G_1.js} +1 -1
  70. package/dist/storybook/assets/{Tabs.stories-yWCAVVnG.js → Tabs.stories-g5Nb7YDi.js} +1 -1
  71. package/dist/storybook/assets/{Throttle.stories-BrcbOwZL.js → Throttle.stories-BzWv-mzN.js} +5 -5
  72. package/dist/storybook/assets/{Tooltip.stories-B4sykiPz.js → Tooltip.stories-BlaTc14X.js} +1 -1
  73. package/dist/storybook/assets/{Upload.stories-DHE43_Zz.js → Upload.stories-a9edmUmW.js} +1 -1
  74. package/dist/storybook/assets/{UploadItem.stories-jqjcXP_N.js → UploadItem.stories-BOIu5j_i.js} +1 -1
  75. package/dist/storybook/assets/{Welcome.stories-C3rGMIU7.js → Welcome.stories-D33npbIl.js} +1 -1
  76. package/dist/storybook/assets/{Widget.stories-D7rHrfAr.js → Widget.stories-D0vHPAyP.js} +12 -12
  77. package/dist/storybook/assets/{WithTooltip-65CFNBJE-CYrPgwaa.js → WithTooltip-65CFNBJE-WOhnQufs.js} +1 -1
  78. package/dist/storybook/assets/{blocks-D8JszFZh.js → blocks-B17JEOI8.js} +5 -5
  79. package/dist/storybook/assets/{formatter-EIJCOSYU-CGZPdVNG.js → formatter-EIJCOSYU-QKmiwKu7.js} +1 -1
  80. package/dist/storybook/assets/if-defined-0srVwUDm.js +1 -0
  81. package/dist/storybook/assets/iframe-BqpRijx3.js +1104 -0
  82. package/dist/storybook/assets/iframe-DfU9RLLj.css +1 -0
  83. package/dist/storybook/assets/{index-BZyp3DsT.js → index-CpksO7cK.js} +1 -1
  84. package/dist/storybook/assets/onFind-C_VPLxg8.js +1 -0
  85. package/dist/storybook/assets/{onFind.stories-BvaTMiWN.js → onFind.stories-BuZMC3tk.js} +38 -38
  86. package/dist/storybook/assets/{onRemove.stories-BPSyS2GE.js → onRemove.stories-HDkMhdmO.js} +3 -3
  87. package/dist/storybook/assets/{onVisible.stories-1lKUeGbt.js → onVisible.stories-CRCllRfN.js} +1 -1
  88. package/dist/storybook/assets/{style-map-ADugLljH.js → style-map-DukvFNCc.js} +1 -1
  89. package/dist/storybook/assets/{syntaxhighlighter-ED5Y7EFY-CBLos5mJ.js → syntaxhighlighter-ED5Y7EFY-BUo_WYvV.js} +1 -1
  90. package/dist/storybook/iframe.html +48 -2
  91. package/dist/storybook/index.json +1 -1
  92. package/dist/storybook/project.json +1 -1
  93. package/dist/tailwind-plugin-button-group.js +43 -44
  94. package/dist/tailwind-plugin-button-group.js.map +1 -1
  95. package/dist/tailwind-plugin-button-group.ts +43 -43
  96. package/dist/tailwind-plugin-button.js +22 -2
  97. package/dist/tailwind-plugin-button.js.map +1 -1
  98. package/dist/tailwind-plugin-button.ts +22 -2
  99. package/dist/tailwind-plugin-card.d.ts +2 -0
  100. package/dist/tailwind-plugin-card.d.ts.map +1 -0
  101. package/dist/tailwind-plugin-card.js +438 -0
  102. package/dist/tailwind-plugin-card.js.map +1 -0
  103. package/dist/tailwind-plugin-card.ts +515 -0
  104. package/dist/tailwind-plugin-dropdown.js +6 -2
  105. package/dist/tailwind-plugin-dropdown.js.map +1 -1
  106. package/dist/tailwind-plugin-dropdown.ts +6 -2
  107. package/dist/tailwind-plugin-pagination.js +12 -8
  108. package/dist/tailwind-plugin-pagination.js.map +1 -1
  109. package/dist/tailwind-plugin-pagination.ts +12 -8
  110. package/dist/tailwind-plugin-upload.js +3 -2
  111. package/dist/tailwind-plugin-upload.js.map +1 -1
  112. package/dist/tailwind-plugin-upload.ts +3 -2
  113. package/dist/tailwind.config.d.ts +1 -4
  114. package/dist/tailwind.config.d.ts.map +1 -1
  115. package/dist/tailwind.config.js +76 -6
  116. package/dist/tailwind.config.js.map +1 -1
  117. package/dist/tailwind.config.ts +76 -6
  118. package/dist/util/EventEmitterMixin.d.ts +1 -0
  119. package/dist/util/EventEmitterMixin.d.ts.map +1 -1
  120. package/dist/util/EventEmitterMixin.js.map +1 -1
  121. package/dist/util/OnFindMixin.d.ts +55 -0
  122. package/dist/util/OnFindMixin.d.ts.map +1 -0
  123. package/dist/util/OnFindMixin.js +70 -0
  124. package/dist/util/OnFindMixin.js.map +1 -0
  125. package/dist/util/onFind.d.ts +4 -2
  126. package/dist/util/onFind.d.ts.map +1 -1
  127. package/dist/util/onFind.js +12 -0
  128. package/dist/util/onFind.js.map +1 -1
  129. package/docs/components/ButtonGroup.md +22 -15
  130. package/docs/components/Card.md +83 -0
  131. package/docs/components/EmptyState.md +10 -6
  132. package/docs/components/README.md +1 -0
  133. package/docs/components/Widget.md +18 -14
  134. package/package.json +4 -3
  135. package/src/legacy/tool-ui/src/AIInline.css +2 -2
  136. package/src/legacy/tool-ui/src/Admin.css +2 -2
  137. package/src/legacy/tool-ui/src/Base.css +1 -1
  138. package/src/legacy/tool-ui/src/BulkUpload.css +1 -1
  139. package/src/legacy/tool-ui/src/CIGCluster.css +1 -1
  140. package/src/legacy/tool-ui/src/Card.css +1 -1
  141. package/src/legacy/tool-ui/src/CodeMirror.css +4 -4
  142. package/src/legacy/tool-ui/src/ColorInputSpectrum.css +2 -2
  143. package/src/legacy/tool-ui/src/ComboInput.css +3 -3
  144. package/src/legacy/tool-ui/src/Compat.css +6 -4
  145. package/src/legacy/tool-ui/src/ContentEdit.css +12 -12
  146. package/src/legacy/tool-ui/src/ContentEditDrawer.css +6 -6
  147. package/src/legacy/tool-ui/src/ContentInputGroup.css +1 -1
  148. package/src/legacy/tool-ui/src/ContentReporting.css +2 -2
  149. package/src/legacy/tool-ui/src/ContentSelector.css +5 -5
  150. package/src/legacy/tool-ui/src/ContentSummary.css +1 -1
  151. package/src/legacy/tool-ui/src/ContentTemplatesWidget.css +1 -1
  152. package/src/legacy/tool-ui/src/ContentTools.css +1 -1
  153. package/src/legacy/tool-ui/src/Conversation.css +2 -2
  154. package/src/legacy/tool-ui/src/Crosslinker.css +3 -3
  155. package/src/legacy/tool-ui/src/DashboardWidget.css +1 -1
  156. package/src/legacy/tool-ui/src/Dialog.css +4 -2
  157. package/src/legacy/tool-ui/src/Diff.css +1 -1
  158. package/src/legacy/tool-ui/src/Dropdown.css +2 -2
  159. package/src/legacy/tool-ui/src/Enhancement.css +1 -1
  160. package/src/legacy/tool-ui/src/FileInput.css +2 -2
  161. package/src/legacy/tool-ui/src/FormFilter.css +3 -3
  162. package/src/legacy/tool-ui/src/FullscreenView.css +4 -4
  163. package/src/legacy/tool-ui/src/Guide.css +6 -6
  164. package/src/legacy/tool-ui/src/Hierarchy.css +4 -4
  165. package/src/legacy/tool-ui/src/ImageEditor.css +13 -13
  166. package/src/legacy/tool-ui/src/LinkCarousel.css +1 -1
  167. package/src/legacy/tool-ui/src/LiveBlog.css +2 -2
  168. package/src/legacy/tool-ui/src/LocationMap.css +1 -1
  169. package/src/legacy/tool-ui/src/MailPublishing.css +1 -1
  170. package/src/legacy/tool-ui/src/MenuView.css +4 -4
  171. package/src/legacy/tool-ui/src/Message.css +1 -1
  172. package/src/legacy/tool-ui/src/Page.css +35 -16
  173. package/src/legacy/tool-ui/src/Popup.css +8 -3
  174. package/src/legacy/tool-ui/src/ProseMirror.css +1 -1
  175. package/src/legacy/tool-ui/src/ProseMirrorContainer.css +1 -1
  176. package/src/legacy/tool-ui/src/ProseMirrorEnhancementMenu.css +2 -2
  177. package/src/legacy/tool-ui/src/ProseMirrorFindReplace.css +2 -2
  178. package/src/legacy/tool-ui/src/QueryField.css +1 -1
  179. package/src/legacy/tool-ui/src/RepeatableContentInputGroup.css +1 -1
  180. package/src/legacy/tool-ui/src/RepeatableContentSelector.css +1 -1
  181. package/src/legacy/tool-ui/src/RichText.css +1 -1
  182. package/src/legacy/tool-ui/src/SearchFields.css +3 -2
  183. package/src/legacy/tool-ui/src/SearchResult.css +3 -3
  184. package/src/legacy/tool-ui/src/SearchWidget.css +1 -1
  185. package/src/legacy/tool-ui/src/SearchWidget.ts +10 -1
  186. package/src/legacy/tool-ui/src/SearchWidgetAdvanced.css +1 -1
  187. package/src/legacy/tool-ui/src/StyleEmbeddedContent.css +3 -3
  188. package/src/legacy/tool-ui/src/TabBar.css +1 -1
  189. package/src/legacy/tool-ui/src/Table.css +1 -1
  190. package/src/legacy/tool-ui/src/Taxonomy.css +4 -4
  191. package/src/legacy/tool-ui/src/ThemeBundleEditor.css +1 -1
  192. package/src/legacy/tool-ui/src/TimedContent.css +2 -2
  193. package/src/legacy/tool-ui/src/ViewWatchers.css +1 -1
  194. package/src/legacy/tool-ui/src/Widget.css +1 -1
  195. package/src/legacy/tool-ui/src/Workflow.css +3 -3
  196. package/src/legacy/tool-ui/src/main/webapp/dist/{RTEProseMirror.945bd28778b1a3e937c7.js → RTEProseMirror.e8344eaeea387c600257.js} +12 -12
  197. package/src/legacy/tool-ui/src/main/webapp/dist/{v4.c5bcef50efdfa2d2e35f.js → v4.b892feb8ec199202fd18.js} +4 -4
  198. package/src/legacy/tool-ui/src/main/webapp/dist/{v5.86effb9bf858ae7b0640.js → v5.493c3ddf65c4fa599ff0.js} +4 -4
  199. package/src/legacy/tool-ui/src/main/webapp/dist/v5.d49a759cb0b7cffd76e4.css +5 -0
  200. package/src/legacy/tool-ui/src/v5.ts +3 -1
  201. package/dist/storybook/assets/if-defined-BkzXcv-a.js +0 -1
  202. package/dist/storybook/assets/iframe-C3TUQi31.js +0 -1104
  203. package/dist/storybook/assets/iframe-D0roG0J-.css +0 -1
  204. package/dist/storybook/assets/onFind-9HPhEfV5.js +0 -1
  205. package/src/legacy/tool-ui/src/main/webapp/dist/v5.d6cc2743243cadb90492.css +0 -5
  206. /package/src/legacy/tool-ui/src/main/webapp/dist/{RTEProseMirror.945bd28778b1a3e937c7.js.LICENSE.txt → RTEProseMirror.e8344eaeea387c600257.js.LICENSE.txt} +0 -0
  207. /package/src/legacy/tool-ui/src/main/webapp/dist/{v4.c5bcef50efdfa2d2e35f.js.LICENSE.txt → v4.b892feb8ec199202fd18.js.LICENSE.txt} +0 -0
  208. /package/src/legacy/tool-ui/src/main/webapp/dist/{v5.86effb9bf858ae7b0640.js.LICENSE.txt → v5.493c3ddf65c4fa599ff0.js.LICENSE.txt} +0 -0
@@ -1,1104 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Welcome.stories-C3rGMIU7.js","./blocks-D8JszFZh.js","./preload-helper-PPVm8Dsz.js","./ActionBar.stories-CTrEOJBH.js","./style-map-ADugLljH.js","./ActionItem.stories-Cm3zQeMa.js","./Avatar.stories-DSltfj-_.js","./AvatarGroup.stories-BjL-l4VH.js","./Badge.stories-DLNO3rOl.js","./Button.stories-3HjoUoaq.js","./Button-TUtCVpwY.js","./ButtonGroup.stories-GF1UFxbr.js","./Celebrate.stories-KtFU9NEQ.js","./celebrate-KwPoF1K3.js","./position-CFNQy3J6.js","./Checkbox.stories-CDg2caKU.js","./if-defined-BkzXcv-a.js","./CircularProgress.stories-C0OdRoxU.js","./ClipboardMixin.stories-B6gIxMuH.js","./custom-element-UsVr97OX.js","./ComponentStatesMixin-B9_GeVBN.js","./ReadyMixin-BSMJuM5x.js","./Colors.stories-tJVgPDrl.js","./CombinedEffects.stories-BwrWmInr.js","./ripple-DQbyyRUw.js","./ComponentStatesMixin.stories-BAn1JPCN.js","./CopyToClipboard.stories-YgaScv3O.js","./Debounce.stories-y-toLkyr.js","./Dropdown.stories-DAVkpuM5.js","./EmptyState.stories-Buexv2C4.js","./Events.stories-SjSVTFwA.js","./Heading.stories-F7pp5AO4.js","./HueRipple.stories-Dt-QniLc.js","./Icon.stories-Cxknci9d.js","./LucideDynamicLoader-jmdq8YDM.js","./IconButton.stories-C7nbDmmd.js","./LinearProgress.stories-DgP2rsiS.js","./Pagination.stories-DbLKeykx.js","./Popover.stories-CbmWs7x-.js","./RovingTabindexMixin.stories-DPojZp67.js","./Rtc.stories-BF7lM0fa.js","./ScrollShadow.stories-DwVglPfj.js","./Switch.stories-DjjlIvXU.js","./Tabs.stories-yWCAVVnG.js","./Tab.stories-zUdDTEwX.js","./Throttle.stories-BrcbOwZL.js","./Tooltip.stories-B4sykiPz.js","./Upload.stories-DHE43_Zz.js","./UploadItem.stories-jqjcXP_N.js","./Widget.stories-D7rHrfAr.js","./onFind.stories-BvaTMiWN.js","./onFind-9HPhEfV5.js","./onRemove.stories-BPSyS2GE.js","./onVisible.stories-1lKUeGbt.js","./DocsRenderer-LL677BLK-BUwAiHkt.js"])))=>i.map(i=>d[i]);
2
- import{_ as ge}from"./preload-helper-PPVm8Dsz.js";function eS(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const o in n)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(n,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>n[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var Ou={},tS=Object.create,Qc=Object.defineProperty,rS=Object.getOwnPropertyDescriptor,pg=Object.getOwnPropertyNames,nS=Object.getPrototypeOf,oS=Object.prototype.hasOwnProperty,ca=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),M=(e,t)=>function(){return t||(0,e[pg(e)[0]])((t={exports:{}}).exports,t),t.exports},Tt=(e,t)=>{for(var r in t)Qc(e,r,{get:t[r],enumerable:!0})},iS=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of pg(t))!oS.call(e,o)&&o!==r&&Qc(e,o,{get:()=>t[o],enumerable:!(n=rS(t,o))||n.enumerable});return e},We=(e,t,r)=>(r=e!=null?tS(nS(e)):{},iS(t||!e||!e.__esModule?Qc(r,"default",{value:e,enumerable:!0}):r,e)),aS=M({"../../node_modules/@ngard/tiny-isequal/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=(function(){var t=Object.prototype.toString,r=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(o){return Object.keys(o).concat(Object.getOwnPropertySymbols(o))}:Object.keys;return function(o,i){return(function a(s,c,l){var d,p,f,m=t.call(s),y=t.call(c);if(s===c)return!0;if(s==null||c==null)return!1;if(l.indexOf(s)>-1&&l.indexOf(c)>-1)return!0;if(l.push(s,c),m!=y||(d=n(s),p=n(c),d.length!=p.length||d.some(function(g){return!a(s[g],c[g],l)})))return!1;switch(m.slice(8,-1)){case"Symbol":return s.valueOf()==c.valueOf();case"Date":case"Number":return+s==+c||+s!=+s&&+c!=+c;case"RegExp":case"Function":case"String":case"Boolean":return""+s==""+c;case"Set":case"Map":d=s.entries(),p=c.entries();do if(!a((f=d.next()).value,p.next().value,l))return!1;while(!f.done);return!0;case"ArrayBuffer":s=new Uint8Array(s),c=new Uint8Array(c);case"DataView":s=new Uint8Array(s.buffer),c=new Uint8Array(c.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(s.length!=c.length)return!1;for(f=0;f<s.length;f++)if((f in s||f in c)&&(f in s!=f in c||!a(s[f],c[f],l)))return!1;return!0;case"Object":return a(r(s),r(c),l);default:return!1}})(o,i,[])}})()}}),sS=M({"../../node_modules/min-indent/index.js"(e,t){t.exports=r=>{let n=r.match(/^[ \t]*(?=\S)/gm);return n?n.reduce((o,i)=>Math.min(o,i.length),1/0):0}}}),lS=M({"../../node_modules/strip-indent/index.js"(e,t){var r=sS();t.exports=n=>{let o=r(n);if(o===0)return n;let i=new RegExp(`^[ \\t]{${o}}`,"gm");return n.replace(i,"")}}}),uS=M({"../../node_modules/indent-string/index.js"(e,t){t.exports=(r,n=1,o)=>{if(o={indent:" ",includeEmptyLines:!1,...o},typeof r!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof r}\``);if(typeof n!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof n}\``);if(typeof o.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof o.indent}\``);if(n===0)return r;let i=o.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return r.replace(i,o.indent.repeat(n))}}}),fg=M({"../../node_modules/redent/index.js"(e,t){var r=lS(),n=uS();t.exports=(o,i=0,a)=>n(r(o),i,a)}}),cS=M({"../../node_modules/aria-query/lib/util/iteratorProxy.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(){var r=this,n=0,o={"@@iterator":function(){return o},next:function(){if(n<r.length){var i=r[n];return n=n+1,{done:!1,value:i}}else return{done:!0}}};return o}e.default=t}}),Ji=M({"../../node_modules/aria-query/lib/util/iterationDecorator.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var t=r(cS());function r(i){return i&&i.__esModule?i:{default:i}}function n(i){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},n(i)}function o(i,a){return typeof Symbol=="function"&&n(Symbol.iterator)==="symbol"&&Object.defineProperty(i,Symbol.iterator,{value:t.default.bind(a)}),i}}}),dS=M({"../../node_modules/aria-query/lib/ariaPropsMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(Ji());function r(p){return p&&p.__esModule?p:{default:p}}function n(p,f){return c(p)||s(p,f)||i(p,f)||o()}function o(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i(p,f){if(p){if(typeof p=="string")return a(p,f);var m={}.toString.call(p).slice(8,-1);return m==="Object"&&p.constructor&&(m=p.constructor.name),m==="Map"||m==="Set"?Array.from(p):m==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(m)?a(p,f):void 0}}function a(p,f){(f==null||f>p.length)&&(f=p.length);for(var m=0,y=Array(f);m<f;m++)y[m]=p[m];return y}function s(p,f){var m=p==null?null:typeof Symbol<"u"&&p[Symbol.iterator]||p["@@iterator"];if(m!=null){var y,g,v,b,T=[],A=!0,R=!1;try{if(v=(m=m.call(p)).next,f===0){if(Object(m)!==m)return;A=!1}else for(;!(A=(y=v.call(m)).done)&&(T.push(y.value),T.length!==f);A=!0);}catch(P){R=!0,g=P}finally{try{if(!A&&m.return!=null&&(b=m.return(),Object(b)!==b))return}finally{if(R)throw g}}return T}}function c(p){if(Array.isArray(p))return p}var l=[["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",!0,!1]}],["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:!0}],["aria-flowto",{type:"idlist"}],["aria-grabbed",{type:"boolean",allowundefined:!0}],["aria-haspopup",{type:"token",values:[!1,!0,"menu","listbox","tree","grid","dialog"]}],["aria-hidden",{type:"boolean",allowundefined:!0}],["aria-invalid",{type:"token",values:["grammar",!1,"spelling",!0]}],["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:!0}],["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"}]],d={entries:function(){return l},forEach:function(p){for(var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,m=0,y=l;m<y.length;m++){var g=n(y[m],2),v=g[0],b=g[1];p.call(f,b,v,l)}},get:function(p){var f=l.filter(function(m){return m[0]===p})[0];return f&&f[1]},has:function(p){return!!d.get(p)},keys:function(){return l.map(function(p){var f=n(p,1),m=f[0];return m})},values:function(){return l.map(function(p){var f=n(p,2),m=f[1];return m})}};e.default=(0,t.default)(d,d.entries())}}),pS=M({"../../node_modules/aria-query/lib/domMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(Ji());function r(p){return p&&p.__esModule?p:{default:p}}function n(p,f){return c(p)||s(p,f)||i(p,f)||o()}function o(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i(p,f){if(p){if(typeof p=="string")return a(p,f);var m={}.toString.call(p).slice(8,-1);return m==="Object"&&p.constructor&&(m=p.constructor.name),m==="Map"||m==="Set"?Array.from(p):m==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(m)?a(p,f):void 0}}function a(p,f){(f==null||f>p.length)&&(f=p.length);for(var m=0,y=Array(f);m<f;m++)y[m]=p[m];return y}function s(p,f){var m=p==null?null:typeof Symbol<"u"&&p[Symbol.iterator]||p["@@iterator"];if(m!=null){var y,g,v,b,T=[],A=!0,R=!1;try{if(v=(m=m.call(p)).next,f===0){if(Object(m)!==m)return;A=!1}else for(;!(A=(y=v.call(m)).done)&&(T.push(y.value),T.length!==f);A=!0);}catch(P){R=!0,g=P}finally{try{if(!A&&m.return!=null&&(b=m.return(),Object(b)!==b))return}finally{if(R)throw g}}return T}}function c(p){if(Array.isArray(p))return p}var l=[["a",{reserved:!1}],["abbr",{reserved:!1}],["acronym",{reserved:!1}],["address",{reserved:!1}],["applet",{reserved:!1}],["area",{reserved:!1}],["article",{reserved:!1}],["aside",{reserved:!1}],["audio",{reserved:!1}],["b",{reserved:!1}],["base",{reserved:!0}],["bdi",{reserved:!1}],["bdo",{reserved:!1}],["big",{reserved:!1}],["blink",{reserved:!1}],["blockquote",{reserved:!1}],["body",{reserved:!1}],["br",{reserved:!1}],["button",{reserved:!1}],["canvas",{reserved:!1}],["caption",{reserved:!1}],["center",{reserved:!1}],["cite",{reserved:!1}],["code",{reserved:!1}],["col",{reserved:!0}],["colgroup",{reserved:!0}],["content",{reserved:!1}],["data",{reserved:!1}],["datalist",{reserved:!1}],["dd",{reserved:!1}],["del",{reserved:!1}],["details",{reserved:!1}],["dfn",{reserved:!1}],["dialog",{reserved:!1}],["dir",{reserved:!1}],["div",{reserved:!1}],["dl",{reserved:!1}],["dt",{reserved:!1}],["em",{reserved:!1}],["embed",{reserved:!1}],["fieldset",{reserved:!1}],["figcaption",{reserved:!1}],["figure",{reserved:!1}],["font",{reserved:!1}],["footer",{reserved:!1}],["form",{reserved:!1}],["frame",{reserved:!1}],["frameset",{reserved:!1}],["h1",{reserved:!1}],["h2",{reserved:!1}],["h3",{reserved:!1}],["h4",{reserved:!1}],["h5",{reserved:!1}],["h6",{reserved:!1}],["head",{reserved:!0}],["header",{reserved:!1}],["hgroup",{reserved:!1}],["hr",{reserved:!1}],["html",{reserved:!0}],["i",{reserved:!1}],["iframe",{reserved:!1}],["img",{reserved:!1}],["input",{reserved:!1}],["ins",{reserved:!1}],["kbd",{reserved:!1}],["keygen",{reserved:!1}],["label",{reserved:!1}],["legend",{reserved:!1}],["li",{reserved:!1}],["link",{reserved:!0}],["main",{reserved:!1}],["map",{reserved:!1}],["mark",{reserved:!1}],["marquee",{reserved:!1}],["menu",{reserved:!1}],["menuitem",{reserved:!1}],["meta",{reserved:!0}],["meter",{reserved:!1}],["nav",{reserved:!1}],["noembed",{reserved:!0}],["noscript",{reserved:!0}],["object",{reserved:!1}],["ol",{reserved:!1}],["optgroup",{reserved:!1}],["option",{reserved:!1}],["output",{reserved:!1}],["p",{reserved:!1}],["param",{reserved:!0}],["picture",{reserved:!0}],["pre",{reserved:!1}],["progress",{reserved:!1}],["q",{reserved:!1}],["rp",{reserved:!1}],["rt",{reserved:!1}],["rtc",{reserved:!1}],["ruby",{reserved:!1}],["s",{reserved:!1}],["samp",{reserved:!1}],["script",{reserved:!0}],["section",{reserved:!1}],["select",{reserved:!1}],["small",{reserved:!1}],["source",{reserved:!0}],["spacer",{reserved:!1}],["span",{reserved:!1}],["strike",{reserved:!1}],["strong",{reserved:!1}],["style",{reserved:!0}],["sub",{reserved:!1}],["summary",{reserved:!1}],["sup",{reserved:!1}],["table",{reserved:!1}],["tbody",{reserved:!1}],["td",{reserved:!1}],["textarea",{reserved:!1}],["tfoot",{reserved:!1}],["th",{reserved:!1}],["thead",{reserved:!1}],["time",{reserved:!1}],["title",{reserved:!0}],["tr",{reserved:!1}],["track",{reserved:!0}],["tt",{reserved:!1}],["u",{reserved:!1}],["ul",{reserved:!1}],["var",{reserved:!1}],["video",{reserved:!1}],["wbr",{reserved:!1}],["xmp",{reserved:!1}]],d={entries:function(){return l},forEach:function(p){for(var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,m=0,y=l;m<y.length;m++){var g=n(y[m],2),v=g[0],b=g[1];p.call(f,b,v,l)}},get:function(p){var f=l.filter(function(m){return m[0]===p})[0];return f&&f[1]},has:function(p){return!!d.get(p)},keys:function(){return l.map(function(p){var f=n(p,1),m=f[0];return m})},values:function(){return l.map(function(p){var f=n(p,2),m=f[1];return m})}};e.default=(0,t.default)(d,d.entries())}}),fS=M({"../../node_modules/aria-query/lib/etc/roles/abstract/commandRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]};e.default=t}}),mS=M({"../../node_modules/aria-query/lib/etc/roles/abstract/compositeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]};e.default=t}}),hS=M({"../../node_modules/aria-query/lib/etc/roles/abstract/inputRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null},relatedConcepts:[{concept:{name:"input"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]};e.default=t}}),yS=M({"../../node_modules/aria-query/lib/etc/roles/abstract/landmarkRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),gS=M({"../../node_modules/aria-query/lib/etc/roles/abstract/rangeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}}),bS=M({"../../node_modules/aria-query/lib/etc/roles/abstract/roletypeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{"aria-atomic":null,"aria-busy":null,"aria-controls":null,"aria-current":null,"aria-describedby":null,"aria-details":null,"aria-dropeffect":null,"aria-flowto":null,"aria-grabbed":null,"aria-hidden":null,"aria-keyshortcuts":null,"aria-label":null,"aria-labelledby":null,"aria-live":null,"aria-owns":null,"aria-relevant":null,"aria-roledescription":null},relatedConcepts:[{concept:{name:"role"},module:"XHTML"},{concept:{name:"type"},module:"Dublin Core"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]};e.default=t}}),vS=M({"../../node_modules/aria-query/lib/etc/roles/abstract/sectionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"frontmatter"},module:"DTB"},{concept:{name:"level"},module:"DTB"},{concept:{name:"level"},module:"SMIL"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}}),ES=M({"../../node_modules/aria-query/lib/etc/roles/abstract/sectionheadRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}}),wS=M({"../../node_modules/aria-query/lib/etc/roles/abstract/selectRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","group"]]};e.default=t}}),_S=M({"../../node_modules/aria-query/lib/etc/roles/abstract/structureRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]};e.default=t}}),TS=M({"../../node_modules/aria-query/lib/etc/roles/abstract/widgetRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]};e.default=t}}),xS=M({"../../node_modules/aria-query/lib/etc/roles/abstract/windowRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-modal":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]};e.default=t}}),SS=M({"../../node_modules/aria-query/lib/etc/roles/ariaAbstractRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=m(fS()),r=m(mS()),n=m(hS()),o=m(yS()),i=m(gS()),a=m(bS()),s=m(vS()),c=m(ES()),l=m(wS()),d=m(_S()),p=m(TS()),f=m(xS());function m(g){return g&&g.__esModule?g:{default:g}}var y=[["command",t.default],["composite",r.default],["input",n.default],["landmark",o.default],["range",i.default],["roletype",a.default],["section",s.default],["sectionhead",c.default],["select",l.default],["structure",d.default],["widget",p.default],["window",f.default]];e.default=y}}),AS=M({"../../node_modules/aria-query/lib/etc/roles/literal/alertRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"assertive"},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),OS=M({"../../node_modules/aria-query/lib/etc/roles/literal/alertdialogRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","alert"],["roletype","window","dialog"]]};e.default=t}}),RS=M({"../../node_modules/aria-query/lib/etc/roles/literal/applicationRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}}),CS=M({"../../node_modules/aria-query/lib/etc/roles/literal/articleRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"article"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]};e.default=t}}),PS=M({"../../node_modules/aria-query/lib/etc/roles/literal/bannerRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"header"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),MS=M({"../../node_modules/aria-query/lib/etc/roles/literal/blockquoteRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"blockquote"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),NS=M({"../../node_modules/aria-query/lib/etc/roles/literal/buttonRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-pressed":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"button"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"image"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"reset"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"submit"}],name:"input"},module:"HTML"},{concept:{name:"button"},module:"HTML"},{concept:{name:"trigger"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]};e.default=t}}),IS=M({"../../node_modules/aria-query/lib/etc/roles/literal/captionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"caption"},module:"HTML"}],requireContextRole:["figure","grid","table"],requiredContextRole:["figure","grid","table"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),kS=M({"../../node_modules/aria-query/lib/etc/roles/literal/cellRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-colspan":null,"aria-rowindex":null,"aria-rowspan":null},relatedConcepts:[{concept:{constraints:["ancestor table element has table role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),jS=M({"../../node_modules/aria-query/lib/etc/roles/literal/checkboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"checkbox"}],name:"input"},module:"HTML"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]};e.default=t}}),qS=M({"../../node_modules/aria-query/lib/etc/roles/literal/codeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"code"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),DS=M({"../../node_modules/aria-query/lib/etc/roles/literal/columnheaderRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"col"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"colgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]};e.default=t}}),LS=M({"../../node_modules/aria-query/lib/etc/roles/literal/comboboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-expanded":"false","aria-haspopup":"listbox"},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"email"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"search"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"tel"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"text"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{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"},module:"HTML"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-expanded":"false"},superClass:[["roletype","widget","input"]]};e.default=t}}),FS=M({"../../node_modules/aria-query/lib/etc/roles/literal/complementaryRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element","scoped to the main element"],name:"aside"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-label"}],constraints:["scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"aside"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],constraints:["scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"aside"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),$S=M({"../../node_modules/aria-query/lib/etc/roles/literal/contentinfoRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"footer"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),BS=M({"../../node_modules/aria-query/lib/etc/roles/literal/definitionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dd"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),US=M({"../../node_modules/aria-query/lib/etc/roles/literal/deletionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"del"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),HS=M({"../../node_modules/aria-query/lib/etc/roles/literal/dialogRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dialog"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","window"]]};e.default=t}}),JS=M({"../../node_modules/aria-query/lib/etc/roles/literal/directoryRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{module:"DAISY Guide"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","list"]]};e.default=t}}),VS=M({"../../node_modules/aria-query/lib/etc/roles/literal/documentRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}},{concept:{name:"html"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}}),zS=M({"../../node_modules/aria-query/lib/etc/roles/literal/emphasisRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"em"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),GS=M({"../../node_modules/aria-query/lib/etc/roles/literal/feedRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["article"]],requiredProps:{},superClass:[["roletype","structure","section","list"]]};e.default=t}}),WS=M({"../../node_modules/aria-query/lib/etc/roles/literal/figureRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"figure"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),KS=M({"../../node_modules/aria-query/lib/etc/roles/literal/formRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"name"}],name:"form"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),YS=M({"../../node_modules/aria-query/lib/etc/roles/literal/genericRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"a"},module:"HTML"},{concept:{name:"area"},module:"HTML"},{concept:{name:"aside"},module:"HTML"},{concept:{name:"b"},module:"HTML"},{concept:{name:"bdo"},module:"HTML"},{concept:{name:"body"},module:"HTML"},{concept:{name:"data"},module:"HTML"},{concept:{name:"div"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"footer"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"header"},module:"HTML"},{concept:{name:"hgroup"},module:"HTML"},{concept:{name:"i"},module:"HTML"},{concept:{name:"pre"},module:"HTML"},{concept:{name:"q"},module:"HTML"},{concept:{name:"samp"},module:"HTML"},{concept:{name:"section"},module:"HTML"},{concept:{name:"small"},module:"HTML"},{concept:{name:"span"},module:"HTML"},{concept:{name:"u"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}}),XS=M({"../../node_modules/aria-query/lib/etc/roles/literal/gridRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-multiselectable":null,"aria-readonly":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","table"]]};e.default=t}}),QS=M({"../../node_modules/aria-query/lib/etc/roles/literal/gridcellRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-selected":null},relatedConcepts:[{concept:{constraints:["ancestor table element has grid role","ancestor table element has treegrid role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","widget"]]};e.default=t}}),ZS=M({"../../node_modules/aria-query/lib/etc/roles/literal/groupRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[{concept:{name:"details"},module:"HTML"},{concept:{name:"fieldset"},module:"HTML"},{concept:{name:"optgroup"},module:"HTML"},{concept:{name:"address"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),eA=M({"../../node_modules/aria-query/lib/etc/roles/literal/headingRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-level":"2"},relatedConcepts:[{concept:{name:"h1"},module:"HTML"},{concept:{name:"h2"},module:"HTML"},{concept:{name:"h3"},module:"HTML"},{concept:{name:"h4"},module:"HTML"},{concept:{name:"h5"},module:"HTML"},{concept:{name:"h6"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-level":"2"},superClass:[["roletype","structure","sectionhead"]]};e.default=t}}),tA=M({"../../node_modules/aria-query/lib/etc/roles/literal/imgRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"alt"}],name:"img"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"alt"}],name:"img"},module:"HTML"},{concept:{name:"imggroup"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),rA=M({"../../node_modules/aria-query/lib/etc/roles/literal/insertionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"ins"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),nA=M({"../../node_modules/aria-query/lib/etc/roles/literal/linkRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"href"}],name:"a"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"href"}],name:"area"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]};e.default=t}}),oA=M({"../../node_modules/aria-query/lib/etc/roles/literal/listRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menu"},module:"HTML"},{concept:{name:"ol"},module:"HTML"},{concept:{name:"ul"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["listitem"]],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),iA=M({"../../node_modules/aria-query/lib/etc/roles/literal/listboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-multiselectable":null,"aria-readonly":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[{concept:{attributes:[{constraints:[">1"],name:"size"}],constraints:["the size attribute value is greater than 1"],name:"select"},module:"HTML"},{concept:{attributes:[{name:"multiple"}],name:"select"},module:"HTML"},{concept:{name:"datalist"},module:"HTML"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["option","group"],["option"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]};e.default=t}}),aA=M({"../../node_modules/aria-query/lib/etc/roles/literal/listitemRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{constraints:["direct descendant of ol","direct descendant of ul","direct descendant of menu"],name:"li"},module:"HTML"},{concept:{name:"item"},module:"XForms"}],requireContextRole:["directory","list"],requiredContextRole:["directory","list"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),sA=M({"../../node_modules/aria-query/lib/etc/roles/literal/logRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-live":"polite"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),lA=M({"../../node_modules/aria-query/lib/etc/roles/literal/mainRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"main"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),uA=M({"../../node_modules/aria-query/lib/etc/roles/literal/markRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null},relatedConcepts:[{concept:{name:"mark"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),cA=M({"../../node_modules/aria-query/lib/etc/roles/literal/marqueeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),dA=M({"../../node_modules/aria-query/lib/etc/roles/literal/mathRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"math"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),pA=M({"../../node_modules/aria-query/lib/etc/roles/literal/menuRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"vertical"},relatedConcepts:[{concept:{name:"MENU"},module:"JAPI"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"},{concept:{name:"sidebar"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]};e.default=t}}),fA=M({"../../node_modules/aria-query/lib/etc/roles/literal/menubarRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"toolbar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select","menu"],["roletype","structure","section","group","select","menu"]]};e.default=t}}),mA=M({"../../node_modules/aria-query/lib/etc/roles/literal/menuitemRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"MENU_ITEM"},module:"JAPI"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]};e.default=t}}),hA=M({"../../node_modules/aria-query/lib/etc/roles/literal/menuitemcheckboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"],["roletype","widget","command","menuitem"]]};e.default=t}}),yA=M({"../../node_modules/aria-query/lib/etc/roles/literal/menuitemradioRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox","menuitemcheckbox"],["roletype","widget","command","menuitem","menuitemcheckbox"],["roletype","widget","input","radio"]]};e.default=t}}),gA=M({"../../node_modules/aria-query/lib/etc/roles/literal/meterRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null,"aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{name:"meter"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","structure","range"]]};e.default=t}}),bA=M({"../../node_modules/aria-query/lib/etc/roles/literal/navigationRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"nav"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),vA=M({"../../node_modules/aria-query/lib/etc/roles/literal/noneRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]};e.default=t}}),EA=M({"../../node_modules/aria-query/lib/etc/roles/literal/noteRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),wA=M({"../../node_modules/aria-query/lib/etc/roles/literal/optionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[{concept:{name:"item"},module:"XForms"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-selected":"false"},superClass:[["roletype","widget","input"]]};e.default=t}}),_A=M({"../../node_modules/aria-query/lib/etc/roles/literal/paragraphRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"p"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),TA=M({"../../node_modules/aria-query/lib/etc/roles/literal/presentationRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{attributes:[{name:"alt",value:""}],name:"img"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}}),xA=M({"../../node_modules/aria-query/lib/etc/roles/literal/progressbarRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null},relatedConcepts:[{concept:{name:"progress"},module:"HTML"},{concept:{name:"status"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","range"],["roletype","widget"]]};e.default=t}}),SA=M({"../../node_modules/aria-query/lib/etc/roles/literal/radioRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"radio"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]};e.default=t}}),AA=M({"../../node_modules/aria-query/lib/etc/roles/literal/radiogroupRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{name:"list"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["radio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]};e.default=t}}),OA=M({"../../node_modules/aria-query/lib/etc/roles/literal/regionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"section"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"section"},module:"HTML"},{concept:{name:"Device Independence Glossart perceivable unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),RA=M({"../../node_modules/aria-query/lib/etc/roles/literal/rowRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-expanded":null,"aria-level":null,"aria-posinset":null,"aria-rowindex":null,"aria-selected":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"tr"},module:"HTML"}],requireContextRole:["grid","rowgroup","table","treegrid"],requiredContextRole:["grid","rowgroup","table","treegrid"],requiredOwnedElements:[["cell"],["columnheader"],["gridcell"],["rowheader"]],requiredProps:{},superClass:[["roletype","structure","section","group"],["roletype","widget"]]};e.default=t}}),CA=M({"../../node_modules/aria-query/lib/etc/roles/literal/rowgroupRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"tbody"},module:"HTML"},{concept:{name:"tfoot"},module:"HTML"},{concept:{name:"thead"},module:"HTML"}],requireContextRole:["grid","table","treegrid"],requiredContextRole:["grid","table","treegrid"],requiredOwnedElements:[["row"]],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}}),PA=M({"../../node_modules/aria-query/lib/etc/roles/literal/rowheaderRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{attributes:[{name:"scope",value:"row"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"rowgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row","rowgroup"],requiredContextRole:["row","rowgroup"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]};e.default=t}}),MA=M({"../../node_modules/aria-query/lib/etc/roles/literal/scrollbarRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-valuetext":null,"aria-orientation":"vertical","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-valuenow":null},superClass:[["roletype","structure","range"],["roletype","widget"]]};e.default=t}}),NA=M({"../../node_modules/aria-query/lib/etc/roles/literal/searchRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),IA=M({"../../node_modules/aria-query/lib/etc/roles/literal/searchboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"search"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input","textbox"]]};e.default=t}}),kA=M({"../../node_modules/aria-query/lib/etc/roles/literal/separatorRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0","aria-valuenow":null,"aria-valuetext":null},relatedConcepts:[{concept:{name:"hr"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}}),jA=M({"../../node_modules/aria-query/lib/etc/roles/literal/sliderRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-valuetext":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"range"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","widget","input"],["roletype","structure","range"]]};e.default=t}}),qA=M({"../../node_modules/aria-query/lib/etc/roles/literal/spinbuttonRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-valuetext":null,"aria-valuenow":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"number"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","widget","input"],["roletype","structure","range"]]};e.default=t}}),DA=M({"../../node_modules/aria-query/lib/etc/roles/literal/statusRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"polite"},relatedConcepts:[{concept:{name:"output"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),LA=M({"../../node_modules/aria-query/lib/etc/roles/literal/strongRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"strong"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),FA=M({"../../node_modules/aria-query/lib/etc/roles/literal/subscriptRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sub"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),$A=M({"../../node_modules/aria-query/lib/etc/roles/literal/superscriptRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sup"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),BA=M({"../../node_modules/aria-query/lib/etc/roles/literal/switchRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"button"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"]]};e.default=t}}),UA=M({"../../node_modules/aria-query/lib/etc/roles/literal/tabRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[],requireContextRole:["tablist"],requiredContextRole:["tablist"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"],["roletype","widget"]]};e.default=t}}),HA=M({"../../node_modules/aria-query/lib/etc/roles/literal/tableRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-colcount":null,"aria-rowcount":null},relatedConcepts:[{concept:{name:"table"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),JA=M({"../../node_modules/aria-query/lib/etc/roles/literal/tablistRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-multiselectable":null,"aria-orientation":"horizontal"},relatedConcepts:[{module:"DAISY",concept:{name:"guide"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["tab"]],requiredProps:{},superClass:[["roletype","widget","composite"]]};e.default=t}}),VA=M({"../../node_modules/aria-query/lib/etc/roles/literal/tabpanelRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),zA=M({"../../node_modules/aria-query/lib/etc/roles/literal/termRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dfn"},module:"HTML"},{concept:{name:"dt"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),GA=M({"../../node_modules/aria-query/lib/etc/roles/literal/textboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-multiline":null,"aria-placeholder":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"type"},{constraints:["undefined"],name:"list"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"email"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"tel"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"text"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"url"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{name:"input"},module:"XForms"},{concept:{name:"textarea"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input"]]};e.default=t}}),WA=M({"../../node_modules/aria-query/lib/etc/roles/literal/timeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"time"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),KA=M({"../../node_modules/aria-query/lib/etc/roles/literal/timerRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","status"]]};e.default=t}}),YA=M({"../../node_modules/aria-query/lib/etc/roles/literal/toolbarRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"menubar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]};e.default=t}}),XA=M({"../../node_modules/aria-query/lib/etc/roles/literal/tooltipRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),QA=M({"../../node_modules/aria-query/lib/etc/roles/literal/treeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-multiselectable":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["treeitem","group"],["treeitem"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]};e.default=t}}),ZA=M({"../../node_modules/aria-query/lib/etc/roles/literal/treegridRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite","grid"],["roletype","structure","section","table","grid"],["roletype","widget","composite","select","tree"],["roletype","structure","section","group","select","tree"]]};e.default=t}}),eO=M({"../../node_modules/aria-query/lib/etc/roles/literal/treeitemRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[],requireContextRole:["group","tree"],requiredContextRole:["group","tree"],requiredOwnedElements:[],requiredProps:{"aria-selected":null},superClass:[["roletype","structure","section","listitem"],["roletype","widget","input","option"]]};e.default=t}}),tO=M({"../../node_modules/aria-query/lib/etc/roles/ariaLiteralRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=ee(AS()),r=ee(OS()),n=ee(RS()),o=ee(CS()),i=ee(PS()),a=ee(MS()),s=ee(NS()),c=ee(IS()),l=ee(kS()),d=ee(jS()),p=ee(qS()),f=ee(DS()),m=ee(LS()),y=ee(FS()),g=ee($S()),v=ee(BS()),b=ee(US()),T=ee(HS()),A=ee(JS()),R=ee(VS()),P=ee(zS()),E=ee(GS()),_=ee(WS()),x=ee(KS()),S=ee(YS()),F=ee(XS()),j=ee(QS()),J=ee(ZS()),N=ee(eA()),O=ee(tA()),q=ee(rA()),$=ee(nA()),V=ee(oA()),Y=ee(iA()),oe=ee(aA()),ue=ee(sA()),D=ee(lA()),L=ee(uA()),G=ee(cA()),Q=ee(dA()),X=ee(pA()),K=ee(fA()),ie=ee(mA()),se=ee(hA()),Te=ee(yA()),B=ee(gA()),te=ee(bA()),ne=ee(vA()),ae=ee(EA()),ce=ee(wA()),de=ee(_A()),ye=ee(TA()),Ee=ee(xA()),Ue=ee(SA()),gt=ee(AA()),ut=ee(OA()),bt=ee(RA()),ot=ee(CA()),Xt=ee(PA()),It=ee(MA()),Qt=ee(NA()),xo=ee(IA()),So=ee(kA()),Ao=ee(jA()),Oo=ee(qA()),Ro=ee(DA()),Co=ee(LA()),Po=ee(FA()),Mo=ee($A()),No=ee(BA()),Io=ee(UA()),ko=ee(HA()),jo=ee(JA()),qo=ee(VA()),Do=ee(zA()),Lo=ee(GA()),tn=ee(WA()),Fo=ee(KA()),xt=ee(YA()),pe=ee(XA()),rn=ee(QA()),Ut=ee(ZA()),Ze=ee(eO());function ee(Mr){return Mr&&Mr.__esModule?Mr:{default:Mr}}var $o=[["alert",t.default],["alertdialog",r.default],["application",n.default],["article",o.default],["banner",i.default],["blockquote",a.default],["button",s.default],["caption",c.default],["cell",l.default],["checkbox",d.default],["code",p.default],["columnheader",f.default],["combobox",m.default],["complementary",y.default],["contentinfo",g.default],["definition",v.default],["deletion",b.default],["dialog",T.default],["directory",A.default],["document",R.default],["emphasis",P.default],["feed",E.default],["figure",_.default],["form",x.default],["generic",S.default],["grid",F.default],["gridcell",j.default],["group",J.default],["heading",N.default],["img",O.default],["insertion",q.default],["link",$.default],["list",V.default],["listbox",Y.default],["listitem",oe.default],["log",ue.default],["main",D.default],["mark",L.default],["marquee",G.default],["math",Q.default],["menu",X.default],["menubar",K.default],["menuitem",ie.default],["menuitemcheckbox",se.default],["menuitemradio",Te.default],["meter",B.default],["navigation",te.default],["none",ne.default],["note",ae.default],["option",ce.default],["paragraph",de.default],["presentation",ye.default],["progressbar",Ee.default],["radio",Ue.default],["radiogroup",gt.default],["region",ut.default],["row",bt.default],["rowgroup",ot.default],["rowheader",Xt.default],["scrollbar",It.default],["search",Qt.default],["searchbox",xo.default],["separator",So.default],["slider",Ao.default],["spinbutton",Oo.default],["status",Ro.default],["strong",Co.default],["subscript",Po.default],["superscript",Mo.default],["switch",No.default],["tab",Io.default],["table",ko.default],["tablist",jo.default],["tabpanel",qo.default],["term",Do.default],["textbox",Lo.default],["time",tn.default],["timer",Fo.default],["toolbar",xt.default],["tooltip",pe.default],["tree",rn.default],["treegrid",Ut.default],["treeitem",Ze.default]];e.default=$o}}),rO=M({"../../node_modules/aria-query/lib/etc/roles/dpub/docAbstractRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"abstract [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),nO=M({"../../node_modules/aria-query/lib/etc/roles/dpub/docAcknowledgmentsRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"acknowledgments [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),oO=M({"../../node_modules/aria-query/lib/etc/roles/dpub/docAfterwordRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"afterword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),iO=M({"../../node_modules/aria-query/lib/etc/roles/dpub/docAppendixRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"appendix [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),aO=M({"../../node_modules/aria-query/lib/etc/roles/dpub/docBacklinkRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"referrer [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]};e.default=t}}),sO=M({"../../node_modules/aria-query/lib/etc/roles/dpub/docBiblioentryRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"EPUB biblioentry [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-bibliography"],requiredContextRole:["doc-bibliography"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]};e.default=t}}),lO=M({"../../node_modules/aria-query/lib/etc/roles/dpub/docBibliographyRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"bibliography [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-biblioentry"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),uO=M({"../../node_modules/aria-query/lib/etc/roles/dpub/docBibliorefRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"biblioref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]};e.default=t}}),cO=M({"../../node_modules/aria-query/lib/etc/roles/dpub/docChapterRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"chapter [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),dO=M({"../../node_modules/aria-query/lib/etc/roles/dpub/docColophonRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"colophon [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),pO=M({"../../node_modules/aria-query/lib/etc/roles/dpub/docConclusionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"conclusion [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),fO=M({"../../node_modules/aria-query/lib/etc/roles/dpub/docCoverRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"cover [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]};e.default=t}}),mO=M({"../../node_modules/aria-query/lib/etc/roles/dpub/docCreditRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credit [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),hO=M({"../../node_modules/aria-query/lib/etc/roles/dpub/docCreditsRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credits [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),yO=M({"../../node_modules/aria-query/lib/etc/roles/dpub/docDedicationRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"dedication [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),gO=M({"../../node_modules/aria-query/lib/etc/roles/dpub/docEndnoteRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-endnotes"],requiredContextRole:["doc-endnotes"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]};e.default=t}}),bO=M({"../../node_modules/aria-query/lib/etc/roles/dpub/docEndnotesRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnotes [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-endnote"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),vO=M({"../../node_modules/aria-query/lib/etc/roles/dpub/docEpigraphRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epigraph [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),EO=M({"../../node_modules/aria-query/lib/etc/roles/dpub/docEpilogueRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epilogue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),wO=M({"../../node_modules/aria-query/lib/etc/roles/dpub/docErrataRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"errata [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),_O=M({"../../node_modules/aria-query/lib/etc/roles/dpub/docExampleRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),TO=M({"../../node_modules/aria-query/lib/etc/roles/dpub/docFootnoteRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"footnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),xO=M({"../../node_modules/aria-query/lib/etc/roles/dpub/docForewordRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"foreword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),SO=M({"../../node_modules/aria-query/lib/etc/roles/dpub/docGlossaryRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossary [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["definition"],["term"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),AO=M({"../../node_modules/aria-query/lib/etc/roles/dpub/docGlossrefRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]};e.default=t}}),OO=M({"../../node_modules/aria-query/lib/etc/roles/dpub/docIndexRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"index [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]};e.default=t}}),RO=M({"../../node_modules/aria-query/lib/etc/roles/dpub/docIntroductionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"introduction [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),CO=M({"../../node_modules/aria-query/lib/etc/roles/dpub/docNoterefRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"noteref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]};e.default=t}}),PO=M({"../../node_modules/aria-query/lib/etc/roles/dpub/docNoticeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"notice [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]};e.default=t}}),MO=M({"../../node_modules/aria-query/lib/etc/roles/dpub/docPagebreakRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"pagebreak [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","separator"]]};e.default=t}}),NO=M({"../../node_modules/aria-query/lib/etc/roles/dpub/docPagefooterRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null,"aria-disabled":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),IO=M({"../../node_modules/aria-query/lib/etc/roles/dpub/docPageheaderRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null,"aria-disabled":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),kO=M({"../../node_modules/aria-query/lib/etc/roles/dpub/docPagelistRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"page-list [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]};e.default=t}}),jO=M({"../../node_modules/aria-query/lib/etc/roles/dpub/docPartRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"part [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),qO=M({"../../node_modules/aria-query/lib/etc/roles/dpub/docPrefaceRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"preface [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),DO=M({"../../node_modules/aria-query/lib/etc/roles/dpub/docPrologueRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"prologue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),LO=M({"../../node_modules/aria-query/lib/etc/roles/dpub/docPullquoteRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"pullquote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["none"]]};e.default=t}}),FO=M({"../../node_modules/aria-query/lib/etc/roles/dpub/docQnaRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"qna [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),$O=M({"../../node_modules/aria-query/lib/etc/roles/dpub/docSubtitleRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"subtitle [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"]]};e.default=t}}),BO=M({"../../node_modules/aria-query/lib/etc/roles/dpub/docTipRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"help [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]};e.default=t}}),UO=M({"../../node_modules/aria-query/lib/etc/roles/dpub/docTocRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"toc [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]};e.default=t}}),HO=M({"../../node_modules/aria-query/lib/etc/roles/ariaDpubRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=K(rO()),r=K(nO()),n=K(oO()),o=K(iO()),i=K(aO()),a=K(sO()),s=K(lO()),c=K(uO()),l=K(cO()),d=K(dO()),p=K(pO()),f=K(fO()),m=K(mO()),y=K(hO()),g=K(yO()),v=K(gO()),b=K(bO()),T=K(vO()),A=K(EO()),R=K(wO()),P=K(_O()),E=K(TO()),_=K(xO()),x=K(SO()),S=K(AO()),F=K(OO()),j=K(RO()),J=K(CO()),N=K(PO()),O=K(MO()),q=K(NO()),$=K(IO()),V=K(kO()),Y=K(jO()),oe=K(qO()),ue=K(DO()),D=K(LO()),L=K(FO()),G=K($O()),Q=K(BO()),X=K(UO());function K(se){return se&&se.__esModule?se:{default:se}}var ie=[["doc-abstract",t.default],["doc-acknowledgments",r.default],["doc-afterword",n.default],["doc-appendix",o.default],["doc-backlink",i.default],["doc-biblioentry",a.default],["doc-bibliography",s.default],["doc-biblioref",c.default],["doc-chapter",l.default],["doc-colophon",d.default],["doc-conclusion",p.default],["doc-cover",f.default],["doc-credit",m.default],["doc-credits",y.default],["doc-dedication",g.default],["doc-endnote",v.default],["doc-endnotes",b.default],["doc-epigraph",T.default],["doc-epilogue",A.default],["doc-errata",R.default],["doc-example",P.default],["doc-footnote",E.default],["doc-foreword",_.default],["doc-glossary",x.default],["doc-glossref",S.default],["doc-index",F.default],["doc-introduction",j.default],["doc-noteref",J.default],["doc-notice",N.default],["doc-pagebreak",O.default],["doc-pagefooter",q.default],["doc-pageheader",$.default],["doc-pagelist",V.default],["doc-part",Y.default],["doc-preface",oe.default],["doc-prologue",ue.default],["doc-pullquote",D.default],["doc-qna",L.default],["doc-subtitle",G.default],["doc-tip",Q.default],["doc-toc",X.default]];e.default=ie}}),JO=M({"../../node_modules/aria-query/lib/etc/roles/graphics/graphicsDocumentRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-object"}},{module:"ARIA",concept:{name:"img"}},{module:"ARIA",concept:{name:"article"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]};e.default=t}}),VO=M({"../../node_modules/aria-query/lib/etc/roles/graphics/graphicsObjectRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-document"}},{module:"ARIA",concept:{name:"group"}},{module:"ARIA",concept:{name:"img"}},{module:"GRAPHICS",concept:{name:"graphics-symbol"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]};e.default=t}}),zO=M({"../../node_modules/aria-query/lib/etc/roles/graphics/graphicsSymbolRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]};e.default=t}}),GO=M({"../../node_modules/aria-query/lib/etc/roles/ariaGraphicsRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=o(JO()),r=o(VO()),n=o(zO());function o(a){return a&&a.__esModule?a:{default:a}}var i=[["graphics-document",t.default],["graphics-object",r.default],["graphics-symbol",n.default]];e.default=i}}),Zc=M({"../../node_modules/aria-query/lib/rolesMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(SS()),r=a(tO()),n=a(HO()),o=a(GO()),i=a(Ji());function a(v){return v&&v.__esModule?v:{default:v}}function s(v,b){var T=typeof Symbol<"u"&&v[Symbol.iterator]||v["@@iterator"];if(!T){if(Array.isArray(v)||(T=d(v))||b){T&&(v=T);var A=0,R=function(){};return{s:R,n:function(){return A>=v.length?{done:!0}:{done:!1,value:v[A++]}},e:function(x){throw x},f:R}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
5
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var P,E=!0,_=!1;return{s:function(){T=T.call(v)},n:function(){var x=T.next();return E=x.done,x},e:function(x){_=!0,P=x},f:function(){try{E||T.return==null||T.return()}finally{if(_)throw P}}}}function c(v,b){return m(v)||f(v,b)||d(v,b)||l()}function l(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
6
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d(v,b){if(v){if(typeof v=="string")return p(v,b);var T={}.toString.call(v).slice(8,-1);return T==="Object"&&v.constructor&&(T=v.constructor.name),T==="Map"||T==="Set"?Array.from(v):T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T)?p(v,b):void 0}}function p(v,b){(b==null||b>v.length)&&(b=v.length);for(var T=0,A=Array(b);T<b;T++)A[T]=v[T];return A}function f(v,b){var T=v==null?null:typeof Symbol<"u"&&v[Symbol.iterator]||v["@@iterator"];if(T!=null){var A,R,P,E,_=[],x=!0,S=!1;try{if(P=(T=T.call(v)).next,b===0){if(Object(T)!==T)return;x=!1}else for(;!(x=(A=P.call(T)).done)&&(_.push(A.value),_.length!==b);x=!0);}catch(F){S=!0,R=F}finally{try{if(!x&&T.return!=null&&(E=T.return(),Object(E)!==E))return}finally{if(S)throw R}}return _}}function m(v){if(Array.isArray(v))return v}var y=[].concat(t.default,r.default,n.default,o.default);y.forEach(function(v){var b=c(v,2),T=b[1],A=s(T.superClass),R;try{for(A.s();!(R=A.n()).done;){var P=R.value,E=s(P),_;try{var x=function(){var S=_.value,F=y.filter(function(q){var $=c(q,1),V=$[0];return V===S})[0];if(F)for(var j=F[1],J=0,N=Object.keys(j.props);J<N.length;J++){var O=N[J];Object.prototype.hasOwnProperty.call(T.props,O)||(T.props[O]=j.props[O])}};for(E.s();!(_=E.n()).done;)x()}catch(S){E.e(S)}finally{E.f()}}}catch(S){A.e(S)}finally{A.f()}});var g={entries:function(){return y},forEach:function(v){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,T=s(y),A;try{for(T.s();!(A=T.n()).done;){var R=c(A.value,2),P=R[0],E=R[1];v.call(b,E,P,y)}}catch(_){T.e(_)}finally{T.f()}},get:function(v){var b=y.filter(function(T){return T[0]===v})[0];return b&&b[1]},has:function(v){return!!g.get(v)},keys:function(){return y.map(function(v){var b=c(v,1),T=b[0];return T})},values:function(){return y.map(function(v){var b=c(v,2),T=b[1];return T})}};e.default=(0,i.default)(g,g.entries())}}),WO=M({"../../node_modules/aria-query/lib/elementRoleMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(Ji()),r=n(Zc());function n(E){return E&&E.__esModule?E:{default:E}}function o(E,_){return l(E)||c(E,_)||a(E,_)||i()}function i(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
7
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(E,_){if(E){if(typeof E=="string")return s(E,_);var x={}.toString.call(E).slice(8,-1);return x==="Object"&&E.constructor&&(x=E.constructor.name),x==="Map"||x==="Set"?Array.from(E):x==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x)?s(E,_):void 0}}function s(E,_){(_==null||_>E.length)&&(_=E.length);for(var x=0,S=Array(_);x<_;x++)S[x]=E[x];return S}function c(E,_){var x=E==null?null:typeof Symbol<"u"&&E[Symbol.iterator]||E["@@iterator"];if(x!=null){var S,F,j,J,N=[],O=!0,q=!1;try{if(j=(x=x.call(E)).next,_===0){if(Object(x)!==x)return;O=!1}else for(;!(O=(S=j.call(x)).done)&&(N.push(S.value),N.length!==_);O=!0);}catch($){q=!0,F=$}finally{try{if(!O&&x.return!=null&&(J=x.return(),Object(J)!==J))return}finally{if(q)throw F}}return N}}function l(E){if(Array.isArray(E))return E}var d=[],p=r.default.keys();for(b=0;b<p.length;b++)if(f=p[b],m=r.default.get(f),m)for(y=[].concat(m.baseConcepts,m.relatedConcepts),g=function(){var E=y[v];if(E.module==="HTML"){var _=E.concept;if(_){var x=d.filter(function(J){return A(J[0],_)})[0],S;x?S=x[1]:S=[];for(var F=!0,j=0;j<S.length;j++)if(S[j]===f){F=!1;break}F&&S.push(f),x||d.push([_,S])}}},v=0;v<y.length;v++)g();var f,m,y,g,v,b,T={entries:function(){return d},forEach:function(E){for(var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,x=0,S=d;x<S.length;x++){var F=o(S[x],2),j=F[0],J=F[1];E.call(_,J,j,d)}},get:function(E){var _=d.filter(function(x){return E.name===x[0].name&&P(E.attributes,x[0].attributes)})[0];return _&&_[1]},has:function(E){return!!T.get(E)},keys:function(){return d.map(function(E){var _=o(E,1),x=_[0];return x})},values:function(){return d.map(function(E){var _=o(E,2),x=_[1];return x})}};function A(E,_){return E.name===_.name&&R(E.constraints,_.constraints)&&P(E.attributes,_.attributes)}function R(E,_){if(E===void 0&&_!==void 0||E!==void 0&&_===void 0)return!1;if(E!==void 0&&_!==void 0){if(E.length!==_.length)return!1;for(var x=0;x<E.length;x++)if(E[x]!==_[x])return!1}return!0}function P(E,_){if(E===void 0&&_!==void 0||E!==void 0&&_===void 0)return!1;if(E!==void 0&&_!==void 0){if(E.length!==_.length)return!1;for(var x=0;x<E.length;x++){if(E[x].name!==_[x].name||E[x].value!==_[x].value||E[x].constraints===void 0&&_[x].constraints!==void 0||E[x].constraints!==void 0&&_[x].constraints===void 0)return!1;if(E[x].constraints!==void 0&&_[x].constraints!==void 0){if(E[x].constraints.length!==_[x].constraints.length)return!1;for(var S=0;S<E[x].constraints.length;S++)if(E[x].constraints[S]!==_[x].constraints[S])return!1}}}return!0}e.default=(0,t.default)(T,T.entries())}}),KO=M({"../../node_modules/aria-query/lib/roleElementMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(Ji()),r=n(Zc());function n(P){return P&&P.__esModule?P:{default:P}}function o(P,E){return l(P)||c(P,E)||a(P,E)||i()}function i(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
8
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(P,E){if(P){if(typeof P=="string")return s(P,E);var _={}.toString.call(P).slice(8,-1);return _==="Object"&&P.constructor&&(_=P.constructor.name),_==="Map"||_==="Set"?Array.from(P):_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_)?s(P,E):void 0}}function s(P,E){(E==null||E>P.length)&&(E=P.length);for(var _=0,x=Array(E);_<E;_++)x[_]=P[_];return x}function c(P,E){var _=P==null?null:typeof Symbol<"u"&&P[Symbol.iterator]||P["@@iterator"];if(_!=null){var x,S,F,j,J=[],N=!0,O=!1;try{if(F=(_=_.call(P)).next,E===0){if(Object(_)!==_)return;N=!1}else for(;!(N=(x=F.call(_)).done)&&(J.push(x.value),J.length!==E);N=!0);}catch(q){O=!0,S=q}finally{try{if(!N&&_.return!=null&&(j=_.return(),Object(j)!==j))return}finally{if(O)throw S}}return J}}function l(P){if(Array.isArray(P))return P}var d=[],p=r.default.keys();for(A=0;A<p.length;A++)if(f=p[A],m=r.default.get(f),y=[],m){for(g=[].concat(m.baseConcepts,m.relatedConcepts),T=0;T<g.length;T++)v=g[T],v.module==="HTML"&&(b=v.concept,b!=null&&y.push(b));y.length>0&&d.push([f,y])}var f,m,y,g,v,b,T,A,R={entries:function(){return d},forEach:function(P){for(var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,_=0,x=d;_<x.length;_++){var S=o(x[_],2),F=S[0],j=S[1];P.call(E,j,F,d)}},get:function(P){var E=d.filter(function(_){return _[0]===P})[0];return E&&E[1]},has:function(P){return!!R.get(P)},keys:function(){return d.map(function(P){var E=o(P,1),_=E[0];return _})},values:function(){return d.map(function(P){var E=o(P,2),_=E[1];return _})}};e.default=(0,t.default)(R,R.entries())}}),ed=M({"../../node_modules/aria-query/lib/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.roles=e.roleElements=e.elementRoles=e.dom=e.aria=void 0;var t=a(dS()),r=a(pS()),n=a(Zc()),o=a(WO()),i=a(KO());function a(s){return s&&s.__esModule?s:{default:s}}e.aria=t.default,e.dom=r.default,e.roles=n.default,e.elementRoles=o.default,e.roleElements=i.default}}),YO=M({"../../node_modules/color-name/index.js"(e,t){t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}}),mg=M({"../../node_modules/color-convert/conversions.js"(e,t){var r=YO(),n={};for(let a of Object.keys(r))n[r[a]]=a;var o={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};t.exports=o;for(let a of Object.keys(o)){if(!("channels"in o[a]))throw new Error("missing channels property: "+a);if(!("labels"in o[a]))throw new Error("missing channel labels property: "+a);if(o[a].labels.length!==o[a].channels)throw new Error("channel and label counts mismatch: "+a);let{channels:s,labels:c}=o[a];delete o[a].channels,delete o[a].labels,Object.defineProperty(o[a],"channels",{value:s}),Object.defineProperty(o[a],"labels",{value:c})}o.rgb.hsl=function(a){let s=a[0]/255,c=a[1]/255,l=a[2]/255,d=Math.min(s,c,l),p=Math.max(s,c,l),f=p-d,m,y;p===d?m=0:s===p?m=(c-l)/f:c===p?m=2+(l-s)/f:l===p&&(m=4+(s-c)/f),m=Math.min(m*60,360),m<0&&(m+=360);let g=(d+p)/2;return p===d?y=0:g<=.5?y=f/(p+d):y=f/(2-p-d),[m,y*100,g*100]},o.rgb.hsv=function(a){let s,c,l,d,p,f=a[0]/255,m=a[1]/255,y=a[2]/255,g=Math.max(f,m,y),v=g-Math.min(f,m,y),b=function(T){return(g-T)/6/v+1/2};return v===0?(d=0,p=0):(p=v/g,s=b(f),c=b(m),l=b(y),f===g?d=l-c:m===g?d=1/3+s-l:y===g&&(d=2/3+c-s),d<0?d+=1:d>1&&(d-=1)),[d*360,p*100,g*100]},o.rgb.hwb=function(a){let s=a[0],c=a[1],l=a[2],d=o.rgb.hsl(a)[0],p=1/255*Math.min(s,Math.min(c,l));return l=1-1/255*Math.max(s,Math.max(c,l)),[d,p*100,l*100]},o.rgb.cmyk=function(a){let s=a[0]/255,c=a[1]/255,l=a[2]/255,d=Math.min(1-s,1-c,1-l),p=(1-s-d)/(1-d)||0,f=(1-c-d)/(1-d)||0,m=(1-l-d)/(1-d)||0;return[p*100,f*100,m*100,d*100]};function i(a,s){return(a[0]-s[0])**2+(a[1]-s[1])**2+(a[2]-s[2])**2}o.rgb.keyword=function(a){let s=n[a];if(s)return s;let c=1/0,l;for(let d of Object.keys(r)){let p=r[d],f=i(a,p);f<c&&(c=f,l=d)}return l},o.keyword.rgb=function(a){return r[a]},o.rgb.xyz=function(a){let s=a[0]/255,c=a[1]/255,l=a[2]/255;s=s>.04045?((s+.055)/1.055)**2.4:s/12.92,c=c>.04045?((c+.055)/1.055)**2.4:c/12.92,l=l>.04045?((l+.055)/1.055)**2.4:l/12.92;let d=s*.4124+c*.3576+l*.1805,p=s*.2126+c*.7152+l*.0722,f=s*.0193+c*.1192+l*.9505;return[d*100,p*100,f*100]},o.rgb.lab=function(a){let s=o.rgb.xyz(a),c=s[0],l=s[1],d=s[2];c/=95.047,l/=100,d/=108.883,c=c>.008856?c**(1/3):7.787*c+16/116,l=l>.008856?l**(1/3):7.787*l+16/116,d=d>.008856?d**(1/3):7.787*d+16/116;let p=116*l-16,f=500*(c-l),m=200*(l-d);return[p,f,m]},o.hsl.rgb=function(a){let s=a[0]/360,c=a[1]/100,l=a[2]/100,d,p,f;if(c===0)return f=l*255,[f,f,f];l<.5?d=l*(1+c):d=l+c-l*c;let m=2*l-d,y=[0,0,0];for(let g=0;g<3;g++)p=s+1/3*-(g-1),p<0&&p++,p>1&&p--,6*p<1?f=m+(d-m)*6*p:2*p<1?f=d:3*p<2?f=m+(d-m)*(2/3-p)*6:f=m,y[g]=f*255;return y},o.hsl.hsv=function(a){let s=a[0],c=a[1]/100,l=a[2]/100,d=c,p=Math.max(l,.01);l*=2,c*=l<=1?l:2-l,d*=p<=1?p:2-p;let f=(l+c)/2,m=l===0?2*d/(p+d):2*c/(l+c);return[s,m*100,f*100]},o.hsv.rgb=function(a){let s=a[0]/60,c=a[1]/100,l=a[2]/100,d=Math.floor(s)%6,p=s-Math.floor(s),f=255*l*(1-c),m=255*l*(1-c*p),y=255*l*(1-c*(1-p));switch(l*=255,d){case 0:return[l,y,f];case 1:return[m,l,f];case 2:return[f,l,y];case 3:return[f,m,l];case 4:return[y,f,l];case 5:return[l,f,m]}},o.hsv.hsl=function(a){let s=a[0],c=a[1]/100,l=a[2]/100,d=Math.max(l,.01),p,f;f=(2-c)*l;let m=(2-c)*d;return p=c*d,p/=m<=1?m:2-m,p=p||0,f/=2,[s,p*100,f*100]},o.hwb.rgb=function(a){let s=a[0]/360,c=a[1]/100,l=a[2]/100,d=c+l,p;d>1&&(c/=d,l/=d);let f=Math.floor(6*s),m=1-l;p=6*s-f,(f&1)!==0&&(p=1-p);let y=c+p*(m-c),g,v,b;switch(f){default:case 6:case 0:g=m,v=y,b=c;break;case 1:g=y,v=m,b=c;break;case 2:g=c,v=m,b=y;break;case 3:g=c,v=y,b=m;break;case 4:g=y,v=c,b=m;break;case 5:g=m,v=c,b=y;break}return[g*255,v*255,b*255]},o.cmyk.rgb=function(a){let s=a[0]/100,c=a[1]/100,l=a[2]/100,d=a[3]/100,p=1-Math.min(1,s*(1-d)+d),f=1-Math.min(1,c*(1-d)+d),m=1-Math.min(1,l*(1-d)+d);return[p*255,f*255,m*255]},o.xyz.rgb=function(a){let s=a[0]/100,c=a[1]/100,l=a[2]/100,d,p,f;return d=s*3.2406+c*-1.5372+l*-.4986,p=s*-.9689+c*1.8758+l*.0415,f=s*.0557+c*-.204+l*1.057,d=d>.0031308?1.055*d**(1/2.4)-.055:d*12.92,p=p>.0031308?1.055*p**(1/2.4)-.055:p*12.92,f=f>.0031308?1.055*f**(1/2.4)-.055:f*12.92,d=Math.min(Math.max(0,d),1),p=Math.min(Math.max(0,p),1),f=Math.min(Math.max(0,f),1),[d*255,p*255,f*255]},o.xyz.lab=function(a){let s=a[0],c=a[1],l=a[2];s/=95.047,c/=100,l/=108.883,s=s>.008856?s**(1/3):7.787*s+16/116,c=c>.008856?c**(1/3):7.787*c+16/116,l=l>.008856?l**(1/3):7.787*l+16/116;let d=116*c-16,p=500*(s-c),f=200*(c-l);return[d,p,f]},o.lab.xyz=function(a){let s=a[0],c=a[1],l=a[2],d,p,f;p=(s+16)/116,d=c/500+p,f=p-l/200;let m=p**3,y=d**3,g=f**3;return p=m>.008856?m:(p-16/116)/7.787,d=y>.008856?y:(d-16/116)/7.787,f=g>.008856?g:(f-16/116)/7.787,d*=95.047,p*=100,f*=108.883,[d,p,f]},o.lab.lch=function(a){let s=a[0],c=a[1],l=a[2],d;d=Math.atan2(l,c)*360/2/Math.PI,d<0&&(d+=360);let p=Math.sqrt(c*c+l*l);return[s,p,d]},o.lch.lab=function(a){let s=a[0],c=a[1],l=a[2]/360*2*Math.PI,d=c*Math.cos(l),p=c*Math.sin(l);return[s,d,p]},o.rgb.ansi16=function(a,s=null){let[c,l,d]=a,p=s===null?o.rgb.hsv(a)[2]:s;if(p=Math.round(p/50),p===0)return 30;let f=30+(Math.round(d/255)<<2|Math.round(l/255)<<1|Math.round(c/255));return p===2&&(f+=60),f},o.hsv.ansi16=function(a){return o.rgb.ansi16(o.hsv.rgb(a),a[2])},o.rgb.ansi256=function(a){let s=a[0],c=a[1],l=a[2];return s===c&&c===l?s<8?16:s>248?231:Math.round((s-8)/247*24)+232:16+36*Math.round(s/255*5)+6*Math.round(c/255*5)+Math.round(l/255*5)},o.ansi16.rgb=function(a){let s=a%10;if(s===0||s===7)return a>50&&(s+=3.5),s=s/10.5*255,[s,s,s];let c=(~~(a>50)+1)*.5,l=(s&1)*c*255,d=(s>>1&1)*c*255,p=(s>>2&1)*c*255;return[l,d,p]},o.ansi256.rgb=function(a){if(a>=232){let p=(a-232)*10+8;return[p,p,p]}a-=16;let s,c=Math.floor(a/36)/5*255,l=Math.floor((s=a%36)/6)/5*255,d=s%6/5*255;return[c,l,d]},o.rgb.hex=function(a){let s=(((Math.round(a[0])&255)<<16)+((Math.round(a[1])&255)<<8)+(Math.round(a[2])&255)).toString(16).toUpperCase();return"000000".substring(s.length)+s},o.hex.rgb=function(a){let s=a.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!s)return[0,0,0];let c=s[0];s[0].length===3&&(c=c.split("").map(m=>m+m).join(""));let l=parseInt(c,16),d=l>>16&255,p=l>>8&255,f=l&255;return[d,p,f]},o.rgb.hcg=function(a){let s=a[0]/255,c=a[1]/255,l=a[2]/255,d=Math.max(Math.max(s,c),l),p=Math.min(Math.min(s,c),l),f=d-p,m,y;return f<1?m=p/(1-f):m=0,f<=0?y=0:d===s?y=(c-l)/f%6:d===c?y=2+(l-s)/f:y=4+(s-c)/f,y/=6,y%=1,[y*360,f*100,m*100]},o.hsl.hcg=function(a){let s=a[1]/100,c=a[2]/100,l=c<.5?2*s*c:2*s*(1-c),d=0;return l<1&&(d=(c-.5*l)/(1-l)),[a[0],l*100,d*100]},o.hsv.hcg=function(a){let s=a[1]/100,c=a[2]/100,l=s*c,d=0;return l<1&&(d=(c-l)/(1-l)),[a[0],l*100,d*100]},o.hcg.rgb=function(a){let s=a[0]/360,c=a[1]/100,l=a[2]/100;if(c===0)return[l*255,l*255,l*255];let d=[0,0,0],p=s%1*6,f=p%1,m=1-f,y=0;switch(Math.floor(p)){case 0:d[0]=1,d[1]=f,d[2]=0;break;case 1:d[0]=m,d[1]=1,d[2]=0;break;case 2:d[0]=0,d[1]=1,d[2]=f;break;case 3:d[0]=0,d[1]=m,d[2]=1;break;case 4:d[0]=f,d[1]=0,d[2]=1;break;default:d[0]=1,d[1]=0,d[2]=m}return y=(1-c)*l,[(c*d[0]+y)*255,(c*d[1]+y)*255,(c*d[2]+y)*255]},o.hcg.hsv=function(a){let s=a[1]/100,c=a[2]/100,l=s+c*(1-s),d=0;return l>0&&(d=s/l),[a[0],d*100,l*100]},o.hcg.hsl=function(a){let s=a[1]/100,c=a[2]/100*(1-s)+.5*s,l=0;return c>0&&c<.5?l=s/(2*c):c>=.5&&c<1&&(l=s/(2*(1-c))),[a[0],l*100,c*100]},o.hcg.hwb=function(a){let s=a[1]/100,c=a[2]/100,l=s+c*(1-s);return[a[0],(l-s)*100,(1-l)*100]},o.hwb.hcg=function(a){let s=a[1]/100,c=1-a[2]/100,l=c-s,d=0;return l<1&&(d=(c-l)/(1-l)),[a[0],l*100,d*100]},o.apple.rgb=function(a){return[a[0]/65535*255,a[1]/65535*255,a[2]/65535*255]},o.rgb.apple=function(a){return[a[0]/255*65535,a[1]/255*65535,a[2]/255*65535]},o.gray.rgb=function(a){return[a[0]/100*255,a[0]/100*255,a[0]/100*255]},o.gray.hsl=function(a){return[0,0,a[0]]},o.gray.hsv=o.gray.hsl,o.gray.hwb=function(a){return[0,100,a[0]]},o.gray.cmyk=function(a){return[0,0,0,a[0]]},o.gray.lab=function(a){return[a[0],0,0]},o.gray.hex=function(a){let s=Math.round(a[0]/100*255)&255,c=((s<<16)+(s<<8)+s).toString(16).toUpperCase();return"000000".substring(c.length)+c},o.rgb.gray=function(a){return[(a[0]+a[1]+a[2])/3/255*100]}}}),XO=M({"../../node_modules/color-convert/route.js"(e,t){var r=mg();function n(){let s={},c=Object.keys(r);for(let l=c.length,d=0;d<l;d++)s[c[d]]={distance:-1,parent:null};return s}function o(s){let c=n(),l=[s];for(c[s].distance=0;l.length;){let d=l.pop(),p=Object.keys(r[d]);for(let f=p.length,m=0;m<f;m++){let y=p[m],g=c[y];g.distance===-1&&(g.distance=c[d].distance+1,g.parent=d,l.unshift(y))}}return c}function i(s,c){return function(l){return c(s(l))}}function a(s,c){let l=[c[s].parent,s],d=r[c[s].parent][s],p=c[s].parent;for(;c[p].parent;)l.unshift(c[p].parent),d=i(r[c[p].parent][p],d),p=c[p].parent;return d.conversion=l,d}t.exports=function(s){let c=o(s),l={},d=Object.keys(c);for(let p=d.length,f=0;f<p;f++){let m=d[f];c[m].parent!==null&&(l[m]=a(m,c))}return l}}}),QO=M({"../../node_modules/color-convert/index.js"(e,t){var r=mg(),n=XO(),o={},i=Object.keys(r);function a(c){let l=function(...d){let p=d[0];return p==null?p:(p.length>1&&(d=p),c(d))};return"conversion"in c&&(l.conversion=c.conversion),l}function s(c){let l=function(...d){let p=d[0];if(p==null)return p;p.length>1&&(d=p);let f=c(d);if(typeof f=="object")for(let m=f.length,y=0;y<m;y++)f[y]=Math.round(f[y]);return f};return"conversion"in c&&(l.conversion=c.conversion),l}i.forEach(c=>{o[c]={},Object.defineProperty(o[c],"channels",{value:r[c].channels}),Object.defineProperty(o[c],"labels",{value:r[c].labels});let l=n(c);Object.keys(l).forEach(d=>{let p=l[d];o[c][d]=s(p),o[c][d].raw=a(p)})}),t.exports=o}}),ZO=M({"../../node_modules/ansi-styles/index.js"(e,t){var r=(p,f)=>(...m)=>`\x1B[${p(...m)+f}m`,n=(p,f)=>(...m)=>{let y=p(...m);return`\x1B[${38+f};5;${y}m`},o=(p,f)=>(...m)=>{let y=p(...m);return`\x1B[${38+f};2;${y[0]};${y[1]};${y[2]}m`},i=p=>p,a=(p,f,m)=>[p,f,m],s=(p,f,m)=>{Object.defineProperty(p,f,{get:()=>{let y=m();return Object.defineProperty(p,f,{value:y,enumerable:!0,configurable:!0}),y},enumerable:!0,configurable:!0})},c,l=(p,f,m,y)=>{c===void 0&&(c=QO());let g=y?10:0,v={};for(let[b,T]of Object.entries(c)){let A=b==="ansi16"?"ansi":b;b===f?v[A]=p(m,g):typeof T=="object"&&(v[A]=p(T[f],g))}return v};function d(){let p=new Map,f={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};f.color.gray=f.color.blackBright,f.bgColor.bgGray=f.bgColor.bgBlackBright,f.color.grey=f.color.blackBright,f.bgColor.bgGrey=f.bgColor.bgBlackBright;for(let[m,y]of Object.entries(f)){for(let[g,v]of Object.entries(y))f[g]={open:`\x1B[${v[0]}m`,close:`\x1B[${v[1]}m`},y[g]=f[g],p.set(v[0],v[1]);Object.defineProperty(f,m,{value:y,enumerable:!1})}return Object.defineProperty(f,"codes",{value:p,enumerable:!1}),f.color.close="\x1B[39m",f.bgColor.close="\x1B[49m",s(f.color,"ansi",()=>l(r,"ansi16",i,!1)),s(f.color,"ansi256",()=>l(n,"ansi256",i,!1)),s(f.color,"ansi16m",()=>l(o,"rgb",a,!1)),s(f.bgColor,"ansi",()=>l(r,"ansi16",i,!0)),s(f.bgColor,"ansi256",()=>l(n,"ansi256",i,!0)),s(f.bgColor,"ansi16m",()=>l(o,"rgb",a,!0)),f}Object.defineProperty(t,"exports",{enumerable:!0,get:d})}}),eR=M({"../../node_modules/supports-color/browser.js"(e,t){t.exports={stdout:!1,stderr:!1}}}),tR=M({"../../node_modules/@testing-library/jest-dom/node_modules/chalk/source/util.js"(e,t){var r=(o,i,a)=>{let s=o.indexOf(i);if(s===-1)return o;let c=i.length,l=0,d="";do d+=o.substr(l,s-l)+i+a,l=s+c,s=o.indexOf(i,l);while(s!==-1);return d+=o.substr(l),d},n=(o,i,a,s)=>{let c=0,l="";do{let d=o[s-1]==="\r";l+=o.substr(c,(d?s-1:s)-c)+i+(d?`\r
9
- `:`
10
- `)+a,c=s+1,s=o.indexOf(`
11
- `,c)}while(s!==-1);return l+=o.substr(c),l};t.exports={stringReplaceAll:r,stringEncaseCRLFWithFirstIndex:n}}}),rR=M({"../../node_modules/@testing-library/jest-dom/node_modules/chalk/source/templates.js"(e,t){var r=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,o=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,i=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n",`
12
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function s(p){let f=p[0]==="u",m=p[1]==="{";return f&&!m&&p.length===5||p[0]==="x"&&p.length===3?String.fromCharCode(parseInt(p.slice(1),16)):f&&m?String.fromCodePoint(parseInt(p.slice(2,-1),16)):a.get(p)||p}function c(p,f){let m=[],y=f.trim().split(/\s*,\s*/g),g;for(let v of y){let b=Number(v);if(!Number.isNaN(b))m.push(b);else if(g=v.match(o))m.push(g[2].replace(i,(T,A,R)=>A?s(A):R));else throw new Error(`Invalid Chalk template style argument: ${v} (in style '${p}')`)}return m}function l(p){n.lastIndex=0;let f=[],m;for(;(m=n.exec(p))!==null;){let y=m[1];if(m[2]){let g=c(y,m[2]);f.push([y].concat(g))}else f.push([y])}return f}function d(p,f){let m={};for(let g of f)for(let v of g.styles)m[v[0]]=g.inverse?null:v.slice(1);let y=p;for(let[g,v]of Object.entries(m))if(Array.isArray(v)){if(!(g in y))throw new Error(`Unknown Chalk style: ${g}`);y=v.length>0?y[g](...v):y[g]}return y}t.exports=(p,f)=>{let m=[],y=[],g=[];if(f.replace(r,(v,b,T,A,R,P)=>{if(b)g.push(s(b));else if(A){let E=g.join("");g=[],y.push(m.length===0?E:d(p,m)(E)),m.push({inverse:T,styles:l(A)})}else if(R){if(m.length===0)throw new Error("Found extraneous } in Chalk template literal");y.push(d(p,m)(g.join(""))),g=[],m.pop()}else g.push(P)}),y.push(g.join("")),m.length>0){let v=`Chalk template literal is missing ${m.length} closing bracket${m.length===1?"":"s"} (\`}\`)`;throw new Error(v)}return y.join("")}}}),hg=M({"../../node_modules/@testing-library/jest-dom/node_modules/chalk/source/index.js"(e,t){var r=ZO(),{stdout:n,stderr:o}=eR(),{stringReplaceAll:i,stringEncaseCRLFWithFirstIndex:a}=tR(),s=["ansi","ansi","ansi256","ansi16m"],c=Object.create(null),l=(P,E={})=>{if(E.level>3||E.level<0)throw new Error("The `level` option should be an integer from 0 to 3");let _=n?n.level:0;P.level=E.level===void 0?_:E.level},d=class{constructor(P){return p(P)}},p=P=>{let E={};return l(E,P),E.template=(..._)=>A(E.template,..._),Object.setPrototypeOf(E,f.prototype),Object.setPrototypeOf(E.template,E),E.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},E.template.Instance=d,E.template};function f(P){return p(P)}for(let[P,E]of Object.entries(r))c[P]={get(){let _=v(this,g(E.open,E.close,this._styler),this._isEmpty);return Object.defineProperty(this,P,{value:_}),_}};c.visible={get(){let P=v(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:P}),P}};var m=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let P of m)c[P]={get(){let{level:E}=this;return function(..._){let x=g(r.color[s[E]][P](..._),r.color.close,this._styler);return v(this,x,this._isEmpty)}}};for(let P of m){let E="bg"+P[0].toUpperCase()+P.slice(1);c[E]={get(){let{level:_}=this;return function(...x){let S=g(r.bgColor[s[_]][P](...x),r.bgColor.close,this._styler);return v(this,S,this._isEmpty)}}}}var y=Object.defineProperties(()=>{},{...c,level:{enumerable:!0,get(){return this._generator.level},set(P){this._generator.level=P}}}),g=(P,E,_)=>{let x,S;return _===void 0?(x=P,S=E):(x=_.openAll+P,S=E+_.closeAll),{open:P,close:E,openAll:x,closeAll:S,parent:_}},v=(P,E,_)=>{let x=(...S)=>b(x,S.length===1?""+S[0]:S.join(" "));return x.__proto__=y,x._generator=P,x._styler=E,x._isEmpty=_,x},b=(P,E)=>{if(P.level<=0||!E)return P._isEmpty?"":E;let _=P._styler;if(_===void 0)return E;let{openAll:x,closeAll:S}=_;if(E.indexOf("\x1B")!==-1)for(;_!==void 0;)E=i(E,_.close,_.open),_=_.parent;let F=E.indexOf(`
13
- `);return F!==-1&&(E=a(E,S,x,F)),x+E+S},T,A=(P,...E)=>{let[_]=E;if(!Array.isArray(_))return E.join(" ");let x=E.slice(1),S=[_.raw[0]];for(let F=1;F<_.length;F++)S.push(String(x[F-1]).replace(/[{}\\]/g,"\\$&"),String(_.raw[F]));return T===void 0&&(T=rR()),T(P,S.join(""))};Object.defineProperties(f.prototype,c);var R=f();R.supportsColor=n,R.stderr=f({level:o?o.level:0}),R.stderr.supportsColor=o,R.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"},t.exports=R}}),nR=M({"../../node_modules/lodash/_listCacheClear.js"(e,t){function r(){this.__data__=[],this.size=0}t.exports=r}}),yg=M({"../../node_modules/lodash/eq.js"(e,t){function r(n,o){return n===o||n!==n&&o!==o}t.exports=r}}),Rs=M({"../../node_modules/lodash/_assocIndexOf.js"(e,t){var r=yg();function n(o,i){for(var a=o.length;a--;)if(r(o[a][0],i))return a;return-1}t.exports=n}}),oR=M({"../../node_modules/lodash/_listCacheDelete.js"(e,t){var r=Rs(),n=Array.prototype,o=n.splice;function i(a){var s=this.__data__,c=r(s,a);if(c<0)return!1;var l=s.length-1;return c==l?s.pop():o.call(s,c,1),--this.size,!0}t.exports=i}}),iR=M({"../../node_modules/lodash/_listCacheGet.js"(e,t){var r=Rs();function n(o){var i=this.__data__,a=r(i,o);return a<0?void 0:i[a][1]}t.exports=n}}),aR=M({"../../node_modules/lodash/_listCacheHas.js"(e,t){var r=Rs();function n(o){return r(this.__data__,o)>-1}t.exports=n}}),sR=M({"../../node_modules/lodash/_listCacheSet.js"(e,t){var r=Rs();function n(o,i){var a=this.__data__,s=r(a,o);return s<0?(++this.size,a.push([o,i])):a[s][1]=i,this}t.exports=n}}),Cs=M({"../../node_modules/lodash/_ListCache.js"(e,t){var r=nR(),n=oR(),o=iR(),i=aR(),a=sR();function s(c){var l=-1,d=c==null?0:c.length;for(this.clear();++l<d;){var p=c[l];this.set(p[0],p[1])}}s.prototype.clear=r,s.prototype.delete=n,s.prototype.get=o,s.prototype.has=i,s.prototype.set=a,t.exports=s}}),lR=M({"../../node_modules/lodash/_stackClear.js"(e,t){var r=Cs();function n(){this.__data__=new r,this.size=0}t.exports=n}}),uR=M({"../../node_modules/lodash/_stackDelete.js"(e,t){function r(n){var o=this.__data__,i=o.delete(n);return this.size=o.size,i}t.exports=r}}),cR=M({"../../node_modules/lodash/_stackGet.js"(e,t){function r(n){return this.__data__.get(n)}t.exports=r}}),dR=M({"../../node_modules/lodash/_stackHas.js"(e,t){function r(n){return this.__data__.has(n)}t.exports=r}}),gg=M({"../../node_modules/lodash/_freeGlobal.js"(e,t){var r=typeof global=="object"&&global&&global.Object===Object&&global;t.exports=r}}),Ar=M({"../../node_modules/lodash/_root.js"(e,t){var r=gg(),n=typeof self=="object"&&self&&self.Object===Object&&self,o=r||n||Function("return this")();t.exports=o}}),td=M({"../../node_modules/lodash/_Symbol.js"(e,t){var r=Ar(),n=r.Symbol;t.exports=n}}),pR=M({"../../node_modules/lodash/_getRawTag.js"(e,t){var r=td(),n=Object.prototype,o=n.hasOwnProperty,i=n.toString,a=r?r.toStringTag:void 0;function s(c){var l=o.call(c,a),d=c[a];try{c[a]=void 0;var p=!0}catch{}var f=i.call(c);return p&&(l?c[a]=d:delete c[a]),f}t.exports=s}}),fR=M({"../../node_modules/lodash/_objectToString.js"(e,t){var r=Object.prototype,n=r.toString;function o(i){return n.call(i)}t.exports=o}}),Ps=M({"../../node_modules/lodash/_baseGetTag.js"(e,t){var r=td(),n=pR(),o=fR(),i="[object Null]",a="[object Undefined]",s=r?r.toStringTag:void 0;function c(l){return l==null?l===void 0?a:i:s&&s in Object(l)?n(l):o(l)}t.exports=c}}),bg=M({"../../node_modules/lodash/isObject.js"(e,t){function r(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}t.exports=r}}),vg=M({"../../node_modules/lodash/isFunction.js"(e,t){var r=Ps(),n=bg(),o="[object AsyncFunction]",i="[object Function]",a="[object GeneratorFunction]",s="[object Proxy]";function c(l){if(!n(l))return!1;var d=r(l);return d==i||d==a||d==o||d==s}t.exports=c}}),mR=M({"../../node_modules/lodash/_coreJsData.js"(e,t){var r=Ar(),n=r["__core-js_shared__"];t.exports=n}}),hR=M({"../../node_modules/lodash/_isMasked.js"(e,t){var r=mR(),n=(function(){var i=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();function o(i){return!!n&&n in i}t.exports=o}}),Eg=M({"../../node_modules/lodash/_toSource.js"(e,t){var r=Function.prototype,n=r.toString;function o(i){if(i!=null){try{return n.call(i)}catch{}try{return i+""}catch{}}return""}t.exports=o}}),yR=M({"../../node_modules/lodash/_baseIsNative.js"(e,t){var r=vg(),n=hR(),o=bg(),i=Eg(),a=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,d=c.toString,p=l.hasOwnProperty,f=RegExp("^"+d.call(p).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function m(y){if(!o(y)||n(y))return!1;var g=r(y)?f:s;return g.test(i(y))}t.exports=m}}),gR=M({"../../node_modules/lodash/_getValue.js"(e,t){function r(n,o){return n?.[o]}t.exports=r}}),mo=M({"../../node_modules/lodash/_getNative.js"(e,t){var r=yR(),n=gR();function o(i,a){var s=n(i,a);return r(s)?s:void 0}t.exports=o}}),rd=M({"../../node_modules/lodash/_Map.js"(e,t){var r=mo(),n=Ar(),o=r(n,"Map");t.exports=o}}),Ms=M({"../../node_modules/lodash/_nativeCreate.js"(e,t){var r=mo(),n=r(Object,"create");t.exports=n}}),bR=M({"../../node_modules/lodash/_hashClear.js"(e,t){var r=Ms();function n(){this.__data__=r?r(null):{},this.size=0}t.exports=n}}),vR=M({"../../node_modules/lodash/_hashDelete.js"(e,t){function r(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}t.exports=r}}),ER=M({"../../node_modules/lodash/_hashGet.js"(e,t){var r=Ms(),n="__lodash_hash_undefined__",o=Object.prototype,i=o.hasOwnProperty;function a(s){var c=this.__data__;if(r){var l=c[s];return l===n?void 0:l}return i.call(c,s)?c[s]:void 0}t.exports=a}}),wR=M({"../../node_modules/lodash/_hashHas.js"(e,t){var r=Ms(),n=Object.prototype,o=n.hasOwnProperty;function i(a){var s=this.__data__;return r?s[a]!==void 0:o.call(s,a)}t.exports=i}}),_R=M({"../../node_modules/lodash/_hashSet.js"(e,t){var r=Ms(),n="__lodash_hash_undefined__";function o(i,a){var s=this.__data__;return this.size+=this.has(i)?0:1,s[i]=r&&a===void 0?n:a,this}t.exports=o}}),TR=M({"../../node_modules/lodash/_Hash.js"(e,t){var r=bR(),n=vR(),o=ER(),i=wR(),a=_R();function s(c){var l=-1,d=c==null?0:c.length;for(this.clear();++l<d;){var p=c[l];this.set(p[0],p[1])}}s.prototype.clear=r,s.prototype.delete=n,s.prototype.get=o,s.prototype.has=i,s.prototype.set=a,t.exports=s}}),xR=M({"../../node_modules/lodash/_mapCacheClear.js"(e,t){var r=TR(),n=Cs(),o=rd();function i(){this.size=0,this.__data__={hash:new r,map:new(o||n),string:new r}}t.exports=i}}),SR=M({"../../node_modules/lodash/_isKeyable.js"(e,t){function r(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}t.exports=r}}),Ns=M({"../../node_modules/lodash/_getMapData.js"(e,t){var r=SR();function n(o,i){var a=o.__data__;return r(i)?a[typeof i=="string"?"string":"hash"]:a.map}t.exports=n}}),AR=M({"../../node_modules/lodash/_mapCacheDelete.js"(e,t){var r=Ns();function n(o){var i=r(this,o).delete(o);return this.size-=i?1:0,i}t.exports=n}}),OR=M({"../../node_modules/lodash/_mapCacheGet.js"(e,t){var r=Ns();function n(o){return r(this,o).get(o)}t.exports=n}}),RR=M({"../../node_modules/lodash/_mapCacheHas.js"(e,t){var r=Ns();function n(o){return r(this,o).has(o)}t.exports=n}}),CR=M({"../../node_modules/lodash/_mapCacheSet.js"(e,t){var r=Ns();function n(o,i){var a=r(this,o),s=a.size;return a.set(o,i),this.size+=a.size==s?0:1,this}t.exports=n}}),wg=M({"../../node_modules/lodash/_MapCache.js"(e,t){var r=xR(),n=AR(),o=OR(),i=RR(),a=CR();function s(c){var l=-1,d=c==null?0:c.length;for(this.clear();++l<d;){var p=c[l];this.set(p[0],p[1])}}s.prototype.clear=r,s.prototype.delete=n,s.prototype.get=o,s.prototype.has=i,s.prototype.set=a,t.exports=s}}),PR=M({"../../node_modules/lodash/_stackSet.js"(e,t){var r=Cs(),n=rd(),o=wg(),i=200;function a(s,c){var l=this.__data__;if(l instanceof r){var d=l.__data__;if(!n||d.length<i-1)return d.push([s,c]),this.size=++l.size,this;l=this.__data__=new o(d)}return l.set(s,c),this.size=l.size,this}t.exports=a}}),MR=M({"../../node_modules/lodash/_Stack.js"(e,t){var r=Cs(),n=lR(),o=uR(),i=cR(),a=dR(),s=PR();function c(l){var d=this.__data__=new r(l);this.size=d.size}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,t.exports=c}}),NR=M({"../../node_modules/lodash/_setCacheAdd.js"(e,t){var r="__lodash_hash_undefined__";function n(o){return this.__data__.set(o,r),this}t.exports=n}}),IR=M({"../../node_modules/lodash/_setCacheHas.js"(e,t){function r(n){return this.__data__.has(n)}t.exports=r}}),kR=M({"../../node_modules/lodash/_SetCache.js"(e,t){var r=wg(),n=NR(),o=IR();function i(a){var s=-1,c=a==null?0:a.length;for(this.__data__=new r;++s<c;)this.add(a[s])}i.prototype.add=i.prototype.push=n,i.prototype.has=o,t.exports=i}}),jR=M({"../../node_modules/lodash/_arraySome.js"(e,t){function r(n,o){for(var i=-1,a=n==null?0:n.length;++i<a;)if(o(n[i],i,n))return!0;return!1}t.exports=r}}),qR=M({"../../node_modules/lodash/_cacheHas.js"(e,t){function r(n,o){return n.has(o)}t.exports=r}}),_g=M({"../../node_modules/lodash/_equalArrays.js"(e,t){var r=kR(),n=jR(),o=qR(),i=1,a=2;function s(c,l,d,p,f,m){var y=d&i,g=c.length,v=l.length;if(g!=v&&!(y&&v>g))return!1;var b=m.get(c),T=m.get(l);if(b&&T)return b==l&&T==c;var A=-1,R=!0,P=d&a?new r:void 0;for(m.set(c,l),m.set(l,c);++A<g;){var E=c[A],_=l[A];if(p)var x=y?p(_,E,A,l,c,m):p(E,_,A,c,l,m);if(x!==void 0){if(x)continue;R=!1;break}if(P){if(!n(l,function(S,F){if(!o(P,F)&&(E===S||f(E,S,d,p,m)))return P.push(F)})){R=!1;break}}else if(!(E===_||f(E,_,d,p,m))){R=!1;break}}return m.delete(c),m.delete(l),R}t.exports=s}}),DR=M({"../../node_modules/lodash/_Uint8Array.js"(e,t){var r=Ar(),n=r.Uint8Array;t.exports=n}}),LR=M({"../../node_modules/lodash/_mapToArray.js"(e,t){function r(n){var o=-1,i=Array(n.size);return n.forEach(function(a,s){i[++o]=[s,a]}),i}t.exports=r}}),FR=M({"../../node_modules/lodash/_setToArray.js"(e,t){function r(n){var o=-1,i=Array(n.size);return n.forEach(function(a){i[++o]=a}),i}t.exports=r}}),$R=M({"../../node_modules/lodash/_equalByTag.js"(e,t){var r=td(),n=DR(),o=yg(),i=_g(),a=LR(),s=FR(),c=1,l=2,d="[object Boolean]",p="[object Date]",f="[object Error]",m="[object Map]",y="[object Number]",g="[object RegExp]",v="[object Set]",b="[object String]",T="[object Symbol]",A="[object ArrayBuffer]",R="[object DataView]",P=r?r.prototype:void 0,E=P?P.valueOf:void 0;function _(x,S,F,j,J,N,O){switch(F){case R:if(x.byteLength!=S.byteLength||x.byteOffset!=S.byteOffset)return!1;x=x.buffer,S=S.buffer;case A:return!(x.byteLength!=S.byteLength||!N(new n(x),new n(S)));case d:case p:case y:return o(+x,+S);case f:return x.name==S.name&&x.message==S.message;case g:case b:return x==S+"";case m:var q=a;case v:var $=j&c;if(q||(q=s),x.size!=S.size&&!$)return!1;var V=O.get(x);if(V)return V==S;j|=l,O.set(x,S);var Y=i(q(x),q(S),j,J,N,O);return O.delete(x),Y;case T:if(E)return E.call(x)==E.call(S)}return!1}t.exports=_}}),BR=M({"../../node_modules/lodash/_arrayPush.js"(e,t){function r(n,o){for(var i=-1,a=o.length,s=n.length;++i<a;)n[s+i]=o[i];return n}t.exports=r}}),nd=M({"../../node_modules/lodash/isArray.js"(e,t){var r=Array.isArray;t.exports=r}}),UR=M({"../../node_modules/lodash/_baseGetAllKeys.js"(e,t){var r=BR(),n=nd();function o(i,a,s){var c=a(i);return n(i)?c:r(c,s(i))}t.exports=o}}),HR=M({"../../node_modules/lodash/_arrayFilter.js"(e,t){function r(n,o){for(var i=-1,a=n==null?0:n.length,s=0,c=[];++i<a;){var l=n[i];o(l,i,n)&&(c[s++]=l)}return c}t.exports=r}}),JR=M({"../../node_modules/lodash/stubArray.js"(e,t){function r(){return[]}t.exports=r}}),VR=M({"../../node_modules/lodash/_getSymbols.js"(e,t){var r=HR(),n=JR(),o=Object.prototype,i=o.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(c){return c==null?[]:(c=Object(c),r(a(c),function(l){return i.call(c,l)}))}:n;t.exports=s}}),zR=M({"../../node_modules/lodash/_baseTimes.js"(e,t){function r(n,o){for(var i=-1,a=Array(n);++i<n;)a[i]=o(i);return a}t.exports=r}}),Is=M({"../../node_modules/lodash/isObjectLike.js"(e,t){function r(n){return n!=null&&typeof n=="object"}t.exports=r}}),GR=M({"../../node_modules/lodash/_baseIsArguments.js"(e,t){var r=Ps(),n=Is(),o="[object Arguments]";function i(a){return n(a)&&r(a)==o}t.exports=i}}),WR=M({"../../node_modules/lodash/isArguments.js"(e,t){var r=GR(),n=Is(),o=Object.prototype,i=o.hasOwnProperty,a=o.propertyIsEnumerable,s=r((function(){return arguments})())?r:function(c){return n(c)&&i.call(c,"callee")&&!a.call(c,"callee")};t.exports=s}}),KR=M({"../../node_modules/lodash/stubFalse.js"(e,t){function r(){return!1}t.exports=r}}),Tg=M({"../../node_modules/lodash/isBuffer.js"(e,t){var r=Ar(),n=KR(),o=typeof e=="object"&&e&&!e.nodeType&&e,i=o&&typeof t=="object"&&t&&!t.nodeType&&t,a=i&&i.exports===o,s=a?r.Buffer:void 0,c=s?s.isBuffer:void 0,l=c||n;t.exports=l}}),YR=M({"../../node_modules/lodash/_isIndex.js"(e,t){var r=9007199254740991,n=/^(?:0|[1-9]\d*)$/;function o(i,a){var s=typeof i;return a=a??r,!!a&&(s=="number"||s!="symbol"&&n.test(i))&&i>-1&&i%1==0&&i<a}t.exports=o}}),xg=M({"../../node_modules/lodash/isLength.js"(e,t){var r=9007199254740991;function n(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=r}t.exports=n}}),XR=M({"../../node_modules/lodash/_baseIsTypedArray.js"(e,t){var r=Ps(),n=xg(),o=Is(),i="[object Arguments]",a="[object Array]",s="[object Boolean]",c="[object Date]",l="[object Error]",d="[object Function]",p="[object Map]",f="[object Number]",m="[object Object]",y="[object RegExp]",g="[object Set]",v="[object String]",b="[object WeakMap]",T="[object ArrayBuffer]",A="[object DataView]",R="[object Float32Array]",P="[object Float64Array]",E="[object Int8Array]",_="[object Int16Array]",x="[object Int32Array]",S="[object Uint8Array]",F="[object Uint8ClampedArray]",j="[object Uint16Array]",J="[object Uint32Array]",N={};N[R]=N[P]=N[E]=N[_]=N[x]=N[S]=N[F]=N[j]=N[J]=!0,N[i]=N[a]=N[T]=N[s]=N[A]=N[c]=N[l]=N[d]=N[p]=N[f]=N[m]=N[y]=N[g]=N[v]=N[b]=!1;function O(q){return o(q)&&n(q.length)&&!!N[r(q)]}t.exports=O}}),QR=M({"../../node_modules/lodash/_baseUnary.js"(e,t){function r(n){return function(o){return n(o)}}t.exports=r}}),ZR=M({"../../node_modules/lodash/_nodeUtil.js"(e,t){var r=gg(),n=typeof e=="object"&&e&&!e.nodeType&&e,o=n&&typeof t=="object"&&t&&!t.nodeType&&t,i=o&&o.exports===n,a=i&&r.process,s=(function(){try{var c=o&&o.require&&o.require("util").types;return c||a&&a.binding&&a.binding("util")}catch{}})();t.exports=s}}),Sg=M({"../../node_modules/lodash/isTypedArray.js"(e,t){var r=XR(),n=QR(),o=ZR(),i=o&&o.isTypedArray,a=i?n(i):r;t.exports=a}}),eC=M({"../../node_modules/lodash/_arrayLikeKeys.js"(e,t){var r=zR(),n=WR(),o=nd(),i=Tg(),a=YR(),s=Sg(),c=Object.prototype,l=c.hasOwnProperty;function d(p,f){var m=o(p),y=!m&&n(p),g=!m&&!y&&i(p),v=!m&&!y&&!g&&s(p),b=m||y||g||v,T=b?r(p.length,String):[],A=T.length;for(var R in p)(f||l.call(p,R))&&!(b&&(R=="length"||g&&(R=="offset"||R=="parent")||v&&(R=="buffer"||R=="byteLength"||R=="byteOffset")||a(R,A)))&&T.push(R);return T}t.exports=d}}),tC=M({"../../node_modules/lodash/_isPrototype.js"(e,t){var r=Object.prototype;function n(o){var i=o&&o.constructor,a=typeof i=="function"&&i.prototype||r;return o===a}t.exports=n}}),rC=M({"../../node_modules/lodash/_overArg.js"(e,t){function r(n,o){return function(i){return n(o(i))}}t.exports=r}}),nC=M({"../../node_modules/lodash/_nativeKeys.js"(e,t){var r=rC(),n=r(Object.keys,Object);t.exports=n}}),oC=M({"../../node_modules/lodash/_baseKeys.js"(e,t){var r=tC(),n=nC(),o=Object.prototype,i=o.hasOwnProperty;function a(s){if(!r(s))return n(s);var c=[];for(var l in Object(s))i.call(s,l)&&l!="constructor"&&c.push(l);return c}t.exports=a}}),iC=M({"../../node_modules/lodash/isArrayLike.js"(e,t){var r=vg(),n=xg();function o(i){return i!=null&&n(i.length)&&!r(i)}t.exports=o}}),aC=M({"../../node_modules/lodash/keys.js"(e,t){var r=eC(),n=oC(),o=iC();function i(a){return o(a)?r(a):n(a)}t.exports=i}}),sC=M({"../../node_modules/lodash/_getAllKeys.js"(e,t){var r=UR(),n=VR(),o=aC();function i(a){return r(a,o,n)}t.exports=i}}),lC=M({"../../node_modules/lodash/_equalObjects.js"(e,t){var r=sC(),n=1,o=Object.prototype,i=o.hasOwnProperty;function a(s,c,l,d,p,f){var m=l&n,y=r(s),g=y.length,v=r(c),b=v.length;if(g!=b&&!m)return!1;for(var T=g;T--;){var A=y[T];if(!(m?A in c:i.call(c,A)))return!1}var R=f.get(s),P=f.get(c);if(R&&P)return R==c&&P==s;var E=!0;f.set(s,c),f.set(c,s);for(var _=m;++T<g;){A=y[T];var x=s[A],S=c[A];if(d)var F=m?d(S,x,A,c,s,f):d(x,S,A,s,c,f);if(!(F===void 0?x===S||p(x,S,l,d,f):F)){E=!1;break}_||(_=A=="constructor")}if(E&&!_){var j=s.constructor,J=c.constructor;j!=J&&"constructor"in s&&"constructor"in c&&!(typeof j=="function"&&j instanceof j&&typeof J=="function"&&J instanceof J)&&(E=!1)}return f.delete(s),f.delete(c),E}t.exports=a}}),uC=M({"../../node_modules/lodash/_DataView.js"(e,t){var r=mo(),n=Ar(),o=r(n,"DataView");t.exports=o}}),cC=M({"../../node_modules/lodash/_Promise.js"(e,t){var r=mo(),n=Ar(),o=r(n,"Promise");t.exports=o}}),dC=M({"../../node_modules/lodash/_Set.js"(e,t){var r=mo(),n=Ar(),o=r(n,"Set");t.exports=o}}),pC=M({"../../node_modules/lodash/_WeakMap.js"(e,t){var r=mo(),n=Ar(),o=r(n,"WeakMap");t.exports=o}}),fC=M({"../../node_modules/lodash/_getTag.js"(e,t){var r=uC(),n=rd(),o=cC(),i=dC(),a=pC(),s=Ps(),c=Eg(),l="[object Map]",d="[object Object]",p="[object Promise]",f="[object Set]",m="[object WeakMap]",y="[object DataView]",g=c(r),v=c(n),b=c(o),T=c(i),A=c(a),R=s;(r&&R(new r(new ArrayBuffer(1)))!=y||n&&R(new n)!=l||o&&R(o.resolve())!=p||i&&R(new i)!=f||a&&R(new a)!=m)&&(R=function(P){var E=s(P),_=E==d?P.constructor:void 0,x=_?c(_):"";if(x)switch(x){case g:return y;case v:return l;case b:return p;case T:return f;case A:return m}return E}),t.exports=R}}),mC=M({"../../node_modules/lodash/_baseIsEqualDeep.js"(e,t){var r=MR(),n=_g(),o=$R(),i=lC(),a=fC(),s=nd(),c=Tg(),l=Sg(),d=1,p="[object Arguments]",f="[object Array]",m="[object Object]",y=Object.prototype,g=y.hasOwnProperty;function v(b,T,A,R,P,E){var _=s(b),x=s(T),S=_?f:a(b),F=x?f:a(T);S=S==p?m:S,F=F==p?m:F;var j=S==m,J=F==m,N=S==F;if(N&&c(b)){if(!c(T))return!1;_=!0,j=!1}if(N&&!j)return E||(E=new r),_||l(b)?n(b,T,A,R,P,E):o(b,T,S,A,R,P,E);if(!(A&d)){var O=j&&g.call(b,"__wrapped__"),q=J&&g.call(T,"__wrapped__");if(O||q){var $=O?b.value():b,V=q?T.value():T;return E||(E=new r),P($,V,A,R,E)}}return N?(E||(E=new r),i(b,T,A,R,P,E)):!1}t.exports=v}}),hC=M({"../../node_modules/lodash/_baseIsEqual.js"(e,t){var r=mC(),n=Is();function o(i,a,s,c,l){return i===a?!0:i==null||a==null||!n(i)&&!n(a)?i!==i&&a!==a:r(i,a,s,c,o,l)}t.exports=o}}),Ag=M({"../../node_modules/lodash/isEqualWith.js"(e,t){var r=hC();function n(o,i,a){a=typeof a=="function"?a:void 0;var s=a?a(o,i):void 0;return s===void 0?r(o,i,void 0,a):!!s}t.exports=n}}),Og=M({"../../node_modules/css.escape/css.escape.js"(e,t){(function(r,n){typeof e=="object"?t.exports=n(r):typeof define=="function"&&define.amd?define([],n.bind(r,r)):n(r)})(typeof global<"u"?global:e,function(r){if(r.CSS&&r.CSS.escape)return r.CSS.escape;var n=function(o){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var i=String(o),a=i.length,s=-1,c,l="",d=i.charCodeAt(0);++s<a;){if(c=i.charCodeAt(s),c==0){l+="�";continue}if(c>=1&&c<=31||c==127||s==0&&c>=48&&c<=57||s==1&&c>=48&&c<=57&&d==45){l+="\\"+c.toString(16)+" ";continue}if(s==0&&a==1&&c==45){l+="\\"+i.charAt(s);continue}if(c>=128||c==45||c==95||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122){l+=i.charAt(s);continue}l+="\\"+i.charAt(s)}return l};return r.CSS||(r.CSS={}),r.CSS.escape=n,n})}}),Rg=M({"../../node_modules/@testing-library/dom/node_modules/ansi-styles/index.js"(e,t){var r=(i=0)=>a=>`\x1B[${38+i};5;${a}m`,n=(i=0)=>(a,s,c)=>`\x1B[${38+i};2;${a};${s};${c}m`;function o(){let i=new Map,a={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};a.color.gray=a.color.blackBright,a.bgColor.bgGray=a.bgColor.bgBlackBright,a.color.grey=a.color.blackBright,a.bgColor.bgGrey=a.bgColor.bgBlackBright;for(let[s,c]of Object.entries(a)){for(let[l,d]of Object.entries(c))a[l]={open:`\x1B[${d[0]}m`,close:`\x1B[${d[1]}m`},c[l]=a[l],i.set(d[0],d[1]);Object.defineProperty(a,s,{value:c,enumerable:!1})}return Object.defineProperty(a,"codes",{value:i,enumerable:!1}),a.color.close="\x1B[39m",a.bgColor.close="\x1B[49m",a.color.ansi256=r(),a.color.ansi16m=n(),a.bgColor.ansi256=r(10),a.bgColor.ansi16m=n(10),Object.defineProperties(a,{rgbToAnsi256:{value:(s,c,l)=>s===c&&c===l?s<8?16:s>248?231:Math.round((s-8)/247*24)+232:16+36*Math.round(s/255*5)+6*Math.round(c/255*5)+Math.round(l/255*5),enumerable:!1},hexToRgb:{value:s=>{let c=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(s.toString(16));if(!c)return[0,0,0];let{colorString:l}=c.groups;l.length===3&&(l=l.split("").map(p=>p+p).join(""));let d=Number.parseInt(l,16);return[d>>16&255,d>>8&255,d&255]},enumerable:!1},hexToAnsi256:{value:s=>a.rgbToAnsi256(...a.hexToRgb(s)),enumerable:!1}}),a}Object.defineProperty(t,"exports",{enumerable:!0,get:o})}}),ks=M({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/collections.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.printIteratorEntries=r,e.printIteratorValues=n,e.printListItems=o,e.printObjectProperties=i;var t=(a,s)=>{let c=Object.keys(a).sort(s);return Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(a).forEach(l=>{Object.getOwnPropertyDescriptor(a,l).enumerable&&c.push(l)}),c};function r(a,s,c,l,d,p,f=": "){let m="",y=a.next();if(!y.done){m+=s.spacingOuter;let g=c+s.indent;for(;!y.done;){let v=p(y.value[0],s,g,l,d),b=p(y.value[1],s,g,l,d);m+=g+v+f+b,y=a.next(),y.done?s.min||(m+=","):m+=","+s.spacingInner}m+=s.spacingOuter+c}return m}function n(a,s,c,l,d,p){let f="",m=a.next();if(!m.done){f+=s.spacingOuter;let y=c+s.indent;for(;!m.done;)f+=y+p(m.value,s,y,l,d),m=a.next(),m.done?s.min||(f+=","):f+=","+s.spacingInner;f+=s.spacingOuter+c}return f}function o(a,s,c,l,d,p){let f="";if(a.length){f+=s.spacingOuter;let m=c+s.indent;for(let y=0;y<a.length;y++)f+=m,y in a&&(f+=p(a[y],s,m,l,d)),y<a.length-1?f+=","+s.spacingInner:s.min||(f+=",");f+=s.spacingOuter+c}return f}function i(a,s,c,l,d,p){let f="",m=t(a,s.compareKeys);if(m.length){f+=s.spacingOuter;let y=c+s.indent;for(let g=0;g<m.length;g++){let v=m[g],b=p(v,s,y,l,d),T=p(a[v],s,y,l,d);f+=y+b+": "+T,g<m.length-1?f+=","+s.spacingInner:s.min||(f+=",")}f+=s.spacingOuter+c}return f}}}),yC=M({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/AsymmetricMatcher.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=ks(),r=(function(){return typeof globalThis<"u"?globalThis:typeof r<"u"?r:typeof self<"u"?self:typeof window<"u"?window:Function("return this")()})(),n=r["jest-symbol-do-not-touch"]||r.Symbol,o=typeof n=="function"&&n.for?n.for("jest.asymmetricMatcher"):1267621,i=" ",a=(d,p,f,m,y,g)=>{let v=d.toString();return v==="ArrayContaining"||v==="ArrayNotContaining"?++m>p.maxDepth?"["+v+"]":v+i+"["+(0,t.printListItems)(d.sample,p,f,m,y,g)+"]":v==="ObjectContaining"||v==="ObjectNotContaining"?++m>p.maxDepth?"["+v+"]":v+i+"{"+(0,t.printObjectProperties)(d.sample,p,f,m,y,g)+"}":v==="StringMatching"||v==="StringNotMatching"||v==="StringContaining"||v==="StringNotContaining"?v+i+g(d.sample,p,f,m,y):d.toAsymmetricMatcher()};e.serialize=a;var s=d=>d&&d.$$typeof===o;e.test=s;var c={serialize:a,test:s},l=c;e.default=l}}),gC=M({"../../node_modules/@testing-library/dom/node_modules/ansi-regex/index.js"(e,t){t.exports=({onlyFirst:r=!1}={})=>{let n=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(n,r?void 0:"g")}}}),bC=M({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ConvertAnsi.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=n(gC()),r=n(Rg());function n(l){return l&&l.__esModule?l:{default:l}}var o=l=>l.replace((0,t.default)(),d=>{switch(d){case r.default.red.close:case r.default.green.close:case r.default.cyan.close:case r.default.gray.close:case r.default.white.close:case r.default.yellow.close:case r.default.bgRed.close:case r.default.bgGreen.close:case r.default.bgYellow.close:case r.default.inverse.close:case r.default.dim.close:case r.default.bold.close:case r.default.reset.open:case r.default.reset.close:return"</>";case r.default.red.open:return"<red>";case r.default.green.open:return"<green>";case r.default.cyan.open:return"<cyan>";case r.default.gray.open:return"<gray>";case r.default.white.open:return"<white>";case r.default.yellow.open:return"<yellow>";case r.default.bgRed.open:return"<bgRed>";case r.default.bgGreen.open:return"<bgGreen>";case r.default.bgYellow.open:return"<bgYellow>";case r.default.inverse.open:return"<inverse>";case r.default.dim.open:return"<dim>";case r.default.bold.open:return"<bold>";default:return""}}),i=l=>typeof l=="string"&&!!l.match((0,t.default)());e.test=i;var a=(l,d,p,f,m,y)=>y(o(l),d,p,f,m);e.serialize=a;var s={serialize:a,test:i},c=s;e.default=c}}),vC=M({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/DOMCollection.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=ks(),r=" ",n=["DOMStringMap","NamedNodeMap"],o=/^(HTML\w*Collection|NodeList)$/,i=p=>n.indexOf(p)!==-1||o.test(p),a=p=>p&&p.constructor&&!!p.constructor.name&&i(p.constructor.name);e.test=a;var s=p=>p.constructor.name==="NamedNodeMap",c=(p,f,m,y,g,v)=>{let b=p.constructor.name;return++y>f.maxDepth?"["+b+"]":(f.min?"":b+r)+(n.indexOf(b)!==-1?"{"+(0,t.printObjectProperties)(s(p)?Array.from(p).reduce((T,A)=>(T[A.name]=A.value,T),{}):{...p},f,m,y,g,v)+"}":"["+(0,t.printListItems)(Array.from(p),f,m,y,g,v)+"]")};e.serialize=c;var l={serialize:c,test:a},d=l;e.default=d}}),EC=M({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/lib/escapeHTML.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return r.replace(/</g,"&lt;").replace(/>/g,"&gt;")}}}),od=M({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/lib/markup.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.printText=e.printProps=e.printElementAsLeaf=e.printElement=e.printComment=e.printChildren=void 0;var t=r(EC());function r(l){return l&&l.__esModule?l:{default:l}}var n=(l,d,p,f,m,y,g)=>{let v=f+p.indent,b=p.colors;return l.map(T=>{let A=d[T],R=g(A,p,v,m,y);return typeof A!="string"&&(R.indexOf(`
14
- `)!==-1&&(R=p.spacingOuter+v+R+p.spacingOuter+f),R="{"+R+"}"),p.spacingInner+f+b.prop.open+T+b.prop.close+"="+b.value.open+R+b.value.close}).join("")};e.printProps=n;var o=(l,d,p,f,m,y)=>l.map(g=>d.spacingOuter+p+(typeof g=="string"?i(g,d):y(g,d,p,f,m))).join("");e.printChildren=o;var i=(l,d)=>{let p=d.colors.content;return p.open+(0,t.default)(l)+p.close};e.printText=i;var a=(l,d)=>{let p=d.colors.comment;return p.open+"<!--"+(0,t.default)(l)+"-->"+p.close};e.printComment=a;var s=(l,d,p,f,m)=>{let y=f.colors.tag;return y.open+"<"+l+(d&&y.close+d+f.spacingOuter+m+y.open)+(p?">"+y.close+p+f.spacingOuter+m+y.open+"</"+l:(d&&!f.min?"":" ")+"/")+">"+y.close};e.printElement=s;var c=(l,d)=>{let p=d.colors.tag;return p.open+"<"+l+p.close+" …"+p.open+" />"+p.close};e.printElementAsLeaf=c}}),wC=M({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/DOMElement.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=od(),r=1,n=3,o=8,i=11,a=/^((HTML|SVG)\w*)?Element$/,s=v=>{try{return typeof v.hasAttribute=="function"&&v.hasAttribute("is")}catch{return!1}},c=v=>{let b=v.constructor.name,{nodeType:T,tagName:A}=v,R=typeof A=="string"&&A.includes("-")||s(v);return T===r&&(a.test(b)||R)||T===n&&b==="Text"||T===o&&b==="Comment"||T===i&&b==="DocumentFragment"},l=v=>{var b;return(v==null||(b=v.constructor)===null||b===void 0?void 0:b.name)&&c(v)};e.test=l;function d(v){return v.nodeType===n}function p(v){return v.nodeType===o}function f(v){return v.nodeType===i}var m=(v,b,T,A,R,P)=>{if(d(v))return(0,t.printText)(v.data,b);if(p(v))return(0,t.printComment)(v.data,b);let E=f(v)?"DocumentFragment":v.tagName.toLowerCase();return++A>b.maxDepth?(0,t.printElementAsLeaf)(E,b):(0,t.printElement)(E,(0,t.printProps)(f(v)?[]:Array.from(v.attributes).map(_=>_.name).sort(),f(v)?{}:Array.from(v.attributes).reduce((_,x)=>(_[x.name]=x.value,_),{}),b,T+b.indent,A,R,P),(0,t.printChildren)(Array.prototype.slice.call(v.childNodes||v.children),b,T+b.indent,A,R,P),b,T)};e.serialize=m;var y={serialize:m,test:l},g=y;e.default=g}}),_C=M({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/Immutable.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=ks(),r="@@__IMMUTABLE_ITERABLE__@@",n="@@__IMMUTABLE_LIST__@@",o="@@__IMMUTABLE_KEYED__@@",i="@@__IMMUTABLE_MAP__@@",a="@@__IMMUTABLE_ORDERED__@@",s="@@__IMMUTABLE_RECORD__@@",c="@@__IMMUTABLE_SEQ__@@",l="@@__IMMUTABLE_SET__@@",d="@@__IMMUTABLE_STACK__@@",p=x=>"Immutable."+x,f=x=>"["+x+"]",m=" ",y="…",g=(x,S,F,j,J,N,O)=>++j>S.maxDepth?f(p(O)):p(O)+m+"{"+(0,t.printIteratorEntries)(x.entries(),S,F,j,J,N)+"}";function v(x){let S=0;return{next(){if(S<x._keys.length){let F=x._keys[S++];return{done:!1,value:[F,x.get(F)]}}return{done:!0,value:void 0}}}}var b=(x,S,F,j,J,N)=>{let O=p(x._name||"Record");return++j>S.maxDepth?f(O):O+m+"{"+(0,t.printIteratorEntries)(v(x),S,F,j,J,N)+"}"},T=(x,S,F,j,J,N)=>{let O=p("Seq");return++j>S.maxDepth?f(O):x[o]?O+m+"{"+(x._iter||x._object?(0,t.printIteratorEntries)(x.entries(),S,F,j,J,N):y)+"}":O+m+"["+(x._iter||x._array||x._collection||x._iterable?(0,t.printIteratorValues)(x.values(),S,F,j,J,N):y)+"]"},A=(x,S,F,j,J,N,O)=>++j>S.maxDepth?f(p(O)):p(O)+m+"["+(0,t.printIteratorValues)(x.values(),S,F,j,J,N)+"]",R=(x,S,F,j,J,N)=>x[i]?g(x,S,F,j,J,N,x[a]?"OrderedMap":"Map"):x[n]?A(x,S,F,j,J,N,"List"):x[l]?A(x,S,F,j,J,N,x[a]?"OrderedSet":"Set"):x[d]?A(x,S,F,j,J,N,"Stack"):x[c]?T(x,S,F,j,J,N):b(x,S,F,j,J,N);e.serialize=R;var P=x=>x&&(x[r]===!0||x[s]===!0);e.test=P;var E={serialize:R,test:P},_=E;e.default=_}}),TC=M({"../../node_modules/@testing-library/dom/node_modules/react-is/cjs/react-is.production.min.js"(e){var t=60103,r=60106,n=60107,o=60108,i=60114,a=60109,s=60110,c=60112,l=60113,d=60120,p=60115,f=60116,m=60121,y=60122,g=60117,v=60129,b=60131;typeof Symbol=="function"&&Symbol.for&&(T=Symbol.for,t=T("react.element"),r=T("react.portal"),n=T("react.fragment"),o=T("react.strict_mode"),i=T("react.profiler"),a=T("react.provider"),s=T("react.context"),c=T("react.forward_ref"),l=T("react.suspense"),d=T("react.suspense_list"),p=T("react.memo"),f=T("react.lazy"),m=T("react.block"),y=T("react.server.block"),g=T("react.fundamental"),v=T("react.debug_trace_mode"),b=T("react.legacy_hidden"));var T;function A(O){if(typeof O=="object"&&O!==null){var q=O.$$typeof;switch(q){case t:switch(O=O.type,O){case n:case i:case o:case l:case d:return O;default:switch(O=O&&O.$$typeof,O){case s:case c:case f:case p:case a:return O;default:return q}}case r:return q}}}var R=a,P=t,E=c,_=n,x=f,S=p,F=r,j=i,J=o,N=l;e.ContextConsumer=s,e.ContextProvider=R,e.Element=P,e.ForwardRef=E,e.Fragment=_,e.Lazy=x,e.Memo=S,e.Portal=F,e.Profiler=j,e.StrictMode=J,e.Suspense=N,e.isAsyncMode=function(){return!1},e.isConcurrentMode=function(){return!1},e.isContextConsumer=function(O){return A(O)===s},e.isContextProvider=function(O){return A(O)===a},e.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===t},e.isForwardRef=function(O){return A(O)===c},e.isFragment=function(O){return A(O)===n},e.isLazy=function(O){return A(O)===f},e.isMemo=function(O){return A(O)===p},e.isPortal=function(O){return A(O)===r},e.isProfiler=function(O){return A(O)===i},e.isStrictMode=function(O){return A(O)===o},e.isSuspense=function(O){return A(O)===l},e.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===n||O===i||O===v||O===o||O===l||O===d||O===b||typeof O=="object"&&O!==null&&(O.$$typeof===f||O.$$typeof===p||O.$$typeof===a||O.$$typeof===s||O.$$typeof===c||O.$$typeof===g||O.$$typeof===m||O[0]===y)},e.typeOf=A}}),xC=M({"../../node_modules/@testing-library/dom/node_modules/react-is/index.js"(e,t){t.exports=TC()}}),SC=M({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ReactElement.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=o(xC()),r=od();function n(f){if(typeof WeakMap!="function")return null;var m=new WeakMap,y=new WeakMap;return(n=function(g){return g?y:m})(f)}function o(f,m){if(f&&f.__esModule)return f;if(f===null||typeof f!="object"&&typeof f!="function")return{default:f};var y=n(m);if(y&&y.has(f))return y.get(f);var g={},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in f)if(b!=="default"&&Object.prototype.hasOwnProperty.call(f,b)){var T=v?Object.getOwnPropertyDescriptor(f,b):null;T&&(T.get||T.set)?Object.defineProperty(g,b,T):g[b]=f[b]}return g.default=f,y&&y.set(f,g),g}var i=(f,m=[])=>(Array.isArray(f)?f.forEach(y=>{i(y,m)}):f!=null&&f!==!1&&m.push(f),m),a=f=>{let m=f.type;if(typeof m=="string")return m;if(typeof m=="function")return m.displayName||m.name||"Unknown";if(t.isFragment(f))return"React.Fragment";if(t.isSuspense(f))return"React.Suspense";if(typeof m=="object"&&m!==null){if(t.isContextProvider(f))return"Context.Provider";if(t.isContextConsumer(f))return"Context.Consumer";if(t.isForwardRef(f)){if(m.displayName)return m.displayName;let y=m.render.displayName||m.render.name||"";return y!==""?"ForwardRef("+y+")":"ForwardRef"}if(t.isMemo(f)){let y=m.displayName||m.type.displayName||m.type.name||"";return y!==""?"Memo("+y+")":"Memo"}}return"UNDEFINED"},s=f=>{let{props:m}=f;return Object.keys(m).filter(y=>y!=="children"&&m[y]!==void 0).sort()},c=(f,m,y,g,v,b)=>++g>m.maxDepth?(0,r.printElementAsLeaf)(a(f),m):(0,r.printElement)(a(f),(0,r.printProps)(s(f),f.props,m,y+m.indent,g,v,b),(0,r.printChildren)(i(f.props.children),m,y+m.indent,g,v,b),m,y);e.serialize=c;var l=f=>f!=null&&t.isElement(f);e.test=l;var d={serialize:c,test:l},p=d;e.default=p}}),AC=M({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ReactTestComponent.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=od(),r=(function(){return typeof globalThis<"u"?globalThis:typeof r<"u"?r:typeof self<"u"?self:typeof window<"u"?window:Function("return this")()})(),n=r["jest-symbol-do-not-touch"]||r.Symbol,o=typeof n=="function"&&n.for?n.for("react.test.json"):245830487,i=d=>{let{props:p}=d;return p?Object.keys(p).filter(f=>p[f]!==void 0).sort():[]},a=(d,p,f,m,y,g)=>++m>p.maxDepth?(0,t.printElementAsLeaf)(d.type,p):(0,t.printElement)(d.type,d.props?(0,t.printProps)(i(d),d.props,p,f+p.indent,m,y,g):"",d.children?(0,t.printChildren)(d.children,p,f+p.indent,m,y,g):"",p,f);e.serialize=a;var s=d=>d&&d.$$typeof===o;e.test=s;var c={serialize:a,test:s},l=c;e.default=l}}),OC=M({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.DEFAULT_OPTIONS=void 0,e.format=ie,e.plugins=void 0;var t=d(Rg()),r=ks(),n=d(yC()),o=d(bC()),i=d(vC()),a=d(wC()),s=d(_C()),c=d(SC()),l=d(AC());function d(B){return B&&B.__esModule?B:{default:B}}var p=Object.prototype.toString,f=Date.prototype.toISOString,m=Error.prototype.toString,y=RegExp.prototype.toString,g=B=>typeof B.constructor=="function"&&B.constructor.name||"Object",v=B=>typeof window<"u"&&B===window,b=/^Symbol\((.*)\)(.*)$/,T=/\n/gi,A=class extends Error{constructor(B,te){super(B),this.stack=te,this.name=this.constructor.name}};function R(B){return B==="[object Array]"||B==="[object ArrayBuffer]"||B==="[object DataView]"||B==="[object Float32Array]"||B==="[object Float64Array]"||B==="[object Int8Array]"||B==="[object Int16Array]"||B==="[object Int32Array]"||B==="[object Uint8Array]"||B==="[object Uint8ClampedArray]"||B==="[object Uint16Array]"||B==="[object Uint32Array]"}function P(B){return Object.is(B,-0)?"-0":String(B)}function E(B){return`${B}n`}function _(B,te){return te?"[Function "+(B.name||"anonymous")+"]":"[Function]"}function x(B){return String(B).replace(b,"Symbol($1)")}function S(B){return"["+m.call(B)+"]"}function F(B,te,ne,ae){if(B===!0||B===!1)return""+B;if(B===void 0)return"undefined";if(B===null)return"null";let ce=typeof B;if(ce==="number")return P(B);if(ce==="bigint")return E(B);if(ce==="string")return ae?'"'+B.replace(/"|\\/g,"\\$&")+'"':'"'+B+'"';if(ce==="function")return _(B,te);if(ce==="symbol")return x(B);let de=p.call(B);return de==="[object WeakMap]"?"WeakMap {}":de==="[object WeakSet]"?"WeakSet {}":de==="[object Function]"||de==="[object GeneratorFunction]"?_(B,te):de==="[object Symbol]"?x(B):de==="[object Date]"?isNaN(+B)?"Date { NaN }":f.call(B):de==="[object Error]"?S(B):de==="[object RegExp]"?ne?y.call(B).replace(/[\\^$*+?.()|[\]{}]/g,"\\$&"):y.call(B):B instanceof Error?S(B):null}function j(B,te,ne,ae,ce,de){if(ce.indexOf(B)!==-1)return"[Circular]";ce=ce.slice(),ce.push(B);let ye=++ae>te.maxDepth,Ee=te.min;if(te.callToJSON&&!ye&&B.toJSON&&typeof B.toJSON=="function"&&!de)return q(B.toJSON(),te,ne,ae,ce,!0);let Ue=p.call(B);return Ue==="[object Arguments]"?ye?"[Arguments]":(Ee?"":"Arguments ")+"["+(0,r.printListItems)(B,te,ne,ae,ce,q)+"]":R(Ue)?ye?"["+B.constructor.name+"]":(Ee||!te.printBasicPrototype&&B.constructor.name==="Array"?"":B.constructor.name+" ")+"["+(0,r.printListItems)(B,te,ne,ae,ce,q)+"]":Ue==="[object Map]"?ye?"[Map]":"Map {"+(0,r.printIteratorEntries)(B.entries(),te,ne,ae,ce,q," => ")+"}":Ue==="[object Set]"?ye?"[Set]":"Set {"+(0,r.printIteratorValues)(B.values(),te,ne,ae,ce,q)+"}":ye||v(B)?"["+g(B)+"]":(Ee||!te.printBasicPrototype&&g(B)==="Object"?"":g(B)+" ")+"{"+(0,r.printObjectProperties)(B,te,ne,ae,ce,q)+"}"}function J(B){return B.serialize!=null}function N(B,te,ne,ae,ce,de){let ye;try{ye=J(B)?B.serialize(te,ne,ae,ce,de,q):B.print(te,Ee=>q(Ee,ne,ae,ce,de),Ee=>{let Ue=ae+ne.indent;return Ue+Ee.replace(T,`
15
- `+Ue)},{edgeSpacing:ne.spacingOuter,min:ne.min,spacing:ne.spacingInner},ne.colors)}catch(Ee){throw new A(Ee.message,Ee.stack)}if(typeof ye!="string")throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof ye}".`);return ye}function O(B,te){for(let ne=0;ne<B.length;ne++)try{if(B[ne].test(te))return B[ne]}catch(ae){throw new A(ae.message,ae.stack)}return null}function q(B,te,ne,ae,ce,de){let ye=O(te.plugins,B);if(ye!==null)return N(ye,B,te,ne,ae,ce);let Ee=F(B,te.printFunctionName,te.escapeRegex,te.escapeString);return Ee!==null?Ee:j(B,te,ne,ae,ce,de)}var $={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},V=Object.keys($),Y={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:$};e.DEFAULT_OPTIONS=Y;function oe(B){if(Object.keys(B).forEach(te=>{if(!Y.hasOwnProperty(te))throw new Error(`pretty-format: Unknown option "${te}".`)}),B.min&&B.indent!==void 0&&B.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');if(B.theme!==void 0){if(B.theme===null)throw new Error('pretty-format: Option "theme" must not be null.');if(typeof B.theme!="object")throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof B.theme}".`)}}var ue=B=>V.reduce((te,ne)=>{let ae=B.theme&&B.theme[ne]!==void 0?B.theme[ne]:$[ne],ce=ae&&t.default[ae];if(ce&&typeof ce.close=="string"&&typeof ce.open=="string")te[ne]=ce;else throw new Error(`pretty-format: Option "theme" has a key "${ne}" whose value "${ae}" is undefined in ansi-styles.`);return te},Object.create(null)),D=()=>V.reduce((B,te)=>(B[te]={close:"",open:""},B),Object.create(null)),L=B=>B&&B.printFunctionName!==void 0?B.printFunctionName:Y.printFunctionName,G=B=>B&&B.escapeRegex!==void 0?B.escapeRegex:Y.escapeRegex,Q=B=>B&&B.escapeString!==void 0?B.escapeString:Y.escapeString,X=B=>{var te;return{callToJSON:B&&B.callToJSON!==void 0?B.callToJSON:Y.callToJSON,colors:B&&B.highlight?ue(B):D(),compareKeys:B&&typeof B.compareKeys=="function"?B.compareKeys:Y.compareKeys,escapeRegex:G(B),escapeString:Q(B),indent:B&&B.min?"":K(B&&B.indent!==void 0?B.indent:Y.indent),maxDepth:B&&B.maxDepth!==void 0?B.maxDepth:Y.maxDepth,min:B&&B.min!==void 0?B.min:Y.min,plugins:B&&B.plugins!==void 0?B.plugins:Y.plugins,printBasicPrototype:(te=B?.printBasicPrototype)!==null&&te!==void 0?te:!0,printFunctionName:L(B),spacingInner:B&&B.min?" ":`
16
- `,spacingOuter:B&&B.min?"":`
17
- `}};function K(B){return new Array(B+1).join(" ")}function ie(B,te){if(te&&(oe(te),te.plugins)){let ae=O(te.plugins,B);if(ae!==null)return N(ae,B,X(te),"",0,[])}let ne=F(B,L(te),G(te),Q(te));return ne!==null?ne:j(B,X(te),"",0,[])}var se={AsymmetricMatcher:n.default,ConvertAnsi:o.default,DOMCollection:i.default,DOMElement:a.default,Immutable:s.default,ReactElement:c.default,ReactTestComponent:l.default};e.plugins=se;var Te=ie;e.default=Te}}),RC=M({"../../node_modules/lz-string/libs/lz-string.js"(e,t){var r=(function(){var n=String.fromCharCode,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",a={};function s(l,d){if(!a[l]){a[l]={};for(var p=0;p<l.length;p++)a[l][l.charAt(p)]=p}return a[l][d]}var c={compressToBase64:function(l){if(l==null)return"";var d=c._compress(l,6,function(p){return o.charAt(p)});switch(d.length%4){default:case 0:return d;case 1:return d+"===";case 2:return d+"==";case 3:return d+"="}},decompressFromBase64:function(l){return l==null?"":l==""?null:c._decompress(l.length,32,function(d){return s(o,l.charAt(d))})},compressToUTF16:function(l){return l==null?"":c._compress(l,15,function(d){return n(d+32)})+" "},decompressFromUTF16:function(l){return l==null?"":l==""?null:c._decompress(l.length,16384,function(d){return l.charCodeAt(d)-32})},compressToUint8Array:function(l){for(var d=c.compress(l),p=new Uint8Array(d.length*2),f=0,m=d.length;f<m;f++){var y=d.charCodeAt(f);p[f*2]=y>>>8,p[f*2+1]=y%256}return p},decompressFromUint8Array:function(l){if(l==null)return c.decompress(l);for(var d=new Array(l.length/2),p=0,f=d.length;p<f;p++)d[p]=l[p*2]*256+l[p*2+1];var m=[];return d.forEach(function(y){m.push(n(y))}),c.decompress(m.join(""))},compressToEncodedURIComponent:function(l){return l==null?"":c._compress(l,6,function(d){return i.charAt(d)})},decompressFromEncodedURIComponent:function(l){return l==null?"":l==""?null:(l=l.replace(/ /g,"+"),c._decompress(l.length,32,function(d){return s(i,l.charAt(d))}))},compress:function(l){return c._compress(l,16,function(d){return n(d)})},_compress:function(l,d,p){if(l==null)return"";var f,m,y={},g={},v="",b="",T="",A=2,R=3,P=2,E=[],_=0,x=0,S;for(S=0;S<l.length;S+=1)if(v=l.charAt(S),Object.prototype.hasOwnProperty.call(y,v)||(y[v]=R++,g[v]=!0),b=T+v,Object.prototype.hasOwnProperty.call(y,b))T=b;else{if(Object.prototype.hasOwnProperty.call(g,T)){if(T.charCodeAt(0)<256){for(f=0;f<P;f++)_=_<<1,x==d-1?(x=0,E.push(p(_)),_=0):x++;for(m=T.charCodeAt(0),f=0;f<8;f++)_=_<<1|m&1,x==d-1?(x=0,E.push(p(_)),_=0):x++,m=m>>1}else{for(m=1,f=0;f<P;f++)_=_<<1|m,x==d-1?(x=0,E.push(p(_)),_=0):x++,m=0;for(m=T.charCodeAt(0),f=0;f<16;f++)_=_<<1|m&1,x==d-1?(x=0,E.push(p(_)),_=0):x++,m=m>>1}A--,A==0&&(A=Math.pow(2,P),P++),delete g[T]}else for(m=y[T],f=0;f<P;f++)_=_<<1|m&1,x==d-1?(x=0,E.push(p(_)),_=0):x++,m=m>>1;A--,A==0&&(A=Math.pow(2,P),P++),y[b]=R++,T=String(v)}if(T!==""){if(Object.prototype.hasOwnProperty.call(g,T)){if(T.charCodeAt(0)<256){for(f=0;f<P;f++)_=_<<1,x==d-1?(x=0,E.push(p(_)),_=0):x++;for(m=T.charCodeAt(0),f=0;f<8;f++)_=_<<1|m&1,x==d-1?(x=0,E.push(p(_)),_=0):x++,m=m>>1}else{for(m=1,f=0;f<P;f++)_=_<<1|m,x==d-1?(x=0,E.push(p(_)),_=0):x++,m=0;for(m=T.charCodeAt(0),f=0;f<16;f++)_=_<<1|m&1,x==d-1?(x=0,E.push(p(_)),_=0):x++,m=m>>1}A--,A==0&&(A=Math.pow(2,P),P++),delete g[T]}else for(m=y[T],f=0;f<P;f++)_=_<<1|m&1,x==d-1?(x=0,E.push(p(_)),_=0):x++,m=m>>1;A--,A==0&&(A=Math.pow(2,P),P++)}for(m=2,f=0;f<P;f++)_=_<<1|m&1,x==d-1?(x=0,E.push(p(_)),_=0):x++,m=m>>1;for(;;)if(_=_<<1,x==d-1){E.push(p(_));break}else x++;return E.join("")},decompress:function(l){return l==null?"":l==""?null:c._decompress(l.length,32768,function(d){return l.charCodeAt(d)})},_decompress:function(l,d,p){var f=[],m=4,y=4,g=3,v="",b=[],T,A,R,P,E,_,x,S={val:p(0),position:d,index:1};for(T=0;T<3;T+=1)f[T]=T;for(R=0,E=Math.pow(2,2),_=1;_!=E;)P=S.val&S.position,S.position>>=1,S.position==0&&(S.position=d,S.val=p(S.index++)),R|=(P>0?1:0)*_,_<<=1;switch(R){case 0:for(R=0,E=Math.pow(2,8),_=1;_!=E;)P=S.val&S.position,S.position>>=1,S.position==0&&(S.position=d,S.val=p(S.index++)),R|=(P>0?1:0)*_,_<<=1;x=n(R);break;case 1:for(R=0,E=Math.pow(2,16),_=1;_!=E;)P=S.val&S.position,S.position>>=1,S.position==0&&(S.position=d,S.val=p(S.index++)),R|=(P>0?1:0)*_,_<<=1;x=n(R);break;case 2:return""}for(f[3]=x,A=x,b.push(x);;){if(S.index>l)return"";for(R=0,E=Math.pow(2,g),_=1;_!=E;)P=S.val&S.position,S.position>>=1,S.position==0&&(S.position=d,S.val=p(S.index++)),R|=(P>0?1:0)*_,_<<=1;switch(x=R){case 0:for(R=0,E=Math.pow(2,8),_=1;_!=E;)P=S.val&S.position,S.position>>=1,S.position==0&&(S.position=d,S.val=p(S.index++)),R|=(P>0?1:0)*_,_<<=1;f[y++]=n(R),x=y-1,m--;break;case 1:for(R=0,E=Math.pow(2,16),_=1;_!=E;)P=S.val&S.position,S.position>>=1,S.position==0&&(S.position=d,S.val=p(S.index++)),R|=(P>0?1:0)*_,_<<=1;f[y++]=n(R),x=y-1,m--;break;case 2:return b.join("")}if(m==0&&(m=Math.pow(2,g),g++),f[x])v=f[x];else if(x===y)v=A+A.charAt(0);else return null;b.push(v),f[y++]=A+v.charAt(0),m--,A=v,m==0&&(m=Math.pow(2,g),g++)}}};return c})();typeof define=="function"&&define.amd?define(function(){return r}):typeof t<"u"&&t!=null?t.exports=r:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return r})}}),Cg=M({"../../node_modules/memoizerific/memoizerific.js"(e,t){(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return(function r(n,o,i){function a(l,d){if(!o[l]){if(!n[l]){var p=typeof ca=="function"&&ca;if(!d&&p)return p(l,!0);if(s)return s(l,!0);var f=new Error("Cannot find module '"+l+"'");throw f.code="MODULE_NOT_FOUND",f}var m=o[l]={exports:{}};n[l][0].call(m.exports,function(y){var g=n[l][1][y];return a(g||y)},m,m.exports,r,n,o,i)}return o[l].exports}for(var s=typeof ca=="function"&&ca,c=0;c<i.length;c++)a(i[c]);return a})({1:[function(r,n,o){n.exports=function(i){if(typeof Map!="function"||i){var a=r("./similar");return new a}else return new Map}},{"./similar":2}],2:[function(r,n,o){function i(){return this.list=[],this.lastItem=void 0,this.size=0,this}i.prototype.get=function(a){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,a))return this.lastItem.val;if(s=this.indexOf(a),s>=0)return this.lastItem=this.list[s],this.list[s].val},i.prototype.set=function(a,s){var c;return this.lastItem&&this.isEqual(this.lastItem.key,a)?(this.lastItem.val=s,this):(c=this.indexOf(a),c>=0?(this.lastItem=this.list[c],this.list[c].val=s,this):(this.lastItem={key:a,val:s},this.list.push(this.lastItem),this.size++,this))},i.prototype.delete=function(a){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,a)&&(this.lastItem=void 0),s=this.indexOf(a),s>=0)return this.size--,this.list.splice(s,1)[0]},i.prototype.has=function(a){var s;return this.lastItem&&this.isEqual(this.lastItem.key,a)?!0:(s=this.indexOf(a),s>=0?(this.lastItem=this.list[s],!0):!1)},i.prototype.forEach=function(a,s){var c;for(c=0;c<this.size;c++)a.call(s||this,this.list[c].val,this.list[c].key,this)},i.prototype.indexOf=function(a){var s;for(s=0;s<this.size;s++)if(this.isEqual(this.list[s].key,a))return s;return-1},i.prototype.isEqual=function(a,s){return a===s||a!==a&&s!==s},n.exports=i},{}],3:[function(r,n,o){var i=r("map-or-similar");n.exports=function(l){var d=new i(!1),p=[];return function(f){var m=function(){var y=d,g,v,b=arguments.length-1,T=Array(b+1),A=!0,R;if((m.numArgs||m.numArgs===0)&&m.numArgs!==b+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(R=0;R<b;R++){if(T[R]={cacheItem:y,arg:arguments[R]},y.has(arguments[R])){y=y.get(arguments[R]);continue}A=!1,g=new i(!1),y.set(arguments[R],g),y=g}return A&&(y.has(arguments[b])?v=y.get(arguments[b]):A=!1),A||(v=f.apply(null,arguments),y.set(arguments[b],v)),l>0&&(T[b]={cacheItem:y,arg:arguments[b]},A?a(p,T):p.push(T),p.length>l&&s(p.shift())),m.wasMemoized=A,m.numArgs=b+1,v};return m.limit=l,m.wasMemoized=!1,m.cache=d,m.lru=p,m}};function a(l,d){var p=l.length,f=d.length,m,y,g;for(y=0;y<p;y++){for(m=!0,g=0;g<f;g++)if(!c(l[y][g].arg,d[g].arg)){m=!1;break}if(m)break}l.push(l.splice(y,1)[0])}function s(l){var d=l.length,p=l[d-1],f,m;for(p.cacheItem.delete(p.arg),m=d-2;m>=0&&(p=l[m],f=p.cacheItem.get(p.arg),!f||!f.size);m--)p.cacheItem.delete(p.arg)}function c(l,d){return l===d||l!==l&&d!==d}},{"map-or-similar":1}]},{},[3])(3)})}}),Pg=M({"../../node_modules/picoquery/lib/string-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.encodeString=n;var t=Array.from({length:256},(o,i)=>"%"+((i<16?"0":"")+i.toString(16)).toUpperCase()),r=new Int8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0]);function n(o){let i=o.length;if(i===0)return"";let a="",s=0,c=0;e:for(;c<i;c++){let l=o.charCodeAt(c);for(;l<128;){if(r[l]!==1&&(s<c&&(a+=o.slice(s,c)),s=c+1,a+=t[l]),++c===i)break e;l=o.charCodeAt(c)}if(s<c&&(a+=o.slice(s,c)),l<2048){s=c+1,a+=t[192|l>>6]+t[128|l&63];continue}if(l<55296||l>=57344){s=c+1,a+=t[224|l>>12]+t[128|l>>6&63]+t[128|l&63];continue}if(++c,c>=i)throw new Error("URI malformed");let d=o.charCodeAt(c)&1023;s=c+1,l=65536+((l&1023)<<10|d),a+=t[240|l>>18]+t[128|l>>12&63]+t[128|l>>6&63]+t[128|l&63]}return s===0?o:s<i?a+o.slice(s):a}}}),id=M({"../../node_modules/picoquery/lib/shared.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=e.defaultShouldSerializeObject=e.defaultValueSerializer=void 0;var t=Pg(),r=i=>{switch(typeof i){case"string":return(0,t.encodeString)(i);case"bigint":case"boolean":return""+i;case"number":if(Number.isFinite(i))return i<1e21?""+i:(0,t.encodeString)(""+i);break}return i instanceof Date?(0,t.encodeString)(i.toISOString()):""};e.defaultValueSerializer=r;var n=i=>i instanceof Date;e.defaultShouldSerializeObject=n;var o=i=>i;e.defaultOptions={nesting:!0,nestingSyntax:"dot",arrayRepeat:!1,arrayRepeatSyntax:"repeat",delimiter:38,valueDeserializer:o,valueSerializer:e.defaultValueSerializer,keyDeserializer:o,shouldSerializeObject:e.defaultShouldSerializeObject}}}),Mg=M({"../../node_modules/picoquery/lib/object-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getDeepObject=o,e.stringifyObject=d;var t=id(),r=Pg();function n(p){return p==="__proto__"||p==="constructor"||p==="prototype"}function o(p,f,m,y,g){if(n(f))return p;let v=p[f];return typeof v=="object"&&v!==null?v:!y&&(g||typeof m=="number"||typeof m=="string"&&m*0===0&&m.indexOf(".")===-1)?p[f]=[]:p[f]={}}var i=20,a="[]",s="[",c="]",l=".";function d(p,f,m=0,y,g){let{nestingSyntax:v=t.defaultOptions.nestingSyntax,arrayRepeat:b=t.defaultOptions.arrayRepeat,arrayRepeatSyntax:T=t.defaultOptions.arrayRepeatSyntax,nesting:A=t.defaultOptions.nesting,delimiter:R=t.defaultOptions.delimiter,valueSerializer:P=t.defaultOptions.valueSerializer,shouldSerializeObject:E=t.defaultOptions.shouldSerializeObject}=f,_=typeof R=="number"?String.fromCharCode(R):R,x=g===!0&&b,S=v==="dot"||v==="js"&&!g;if(m>i)return"";let F="",j=!0,J=!1;for(let N in p){let O=p[N];if(O===void 0)continue;let q;y?(q=y,x?T==="bracket"&&(q+=a):S?(q+=l,q+=N):(q+=s,q+=N,q+=c)):q=N,j||(F+=_),typeof O=="object"&&O!==null&&!E(O)?(J=O.pop!==void 0,(A||b&&J)&&(F+=d(O,f,m+1,q,J))):(F+=(0,r.encodeString)(q),F+="=",F+=P(O,N)),j&&(j=!1)}return F}}}),CC=M({"../../node_modules/picoquery/lib/decode-uri-component.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeURIComponent=o;var t=12,r=0,n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7];function o(s){let c=s.indexOf("%");if(c===-1)return s;let l=s.length,d="",p=0,f=0,m=c,y=t;for(;c>-1&&c<l;){let g=a(s[c+1],4),v=a(s[c+2],0),b=g|v,T=n[b];if(y=n[256+y+T],f=f<<6|b&n[364+T],y===t)d+=s.slice(p,m),d+=f<=65535?String.fromCharCode(f):String.fromCharCode(55232+(f>>10),56320+(f&1023)),f=0,p=c+3,c=m=s.indexOf("%",p);else{if(y===r)return null;if(c+=3,c<l&&s.charCodeAt(c)===37)continue;return null}}return d+s.slice(p)}var i={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};function a(s,c){let l=i[s];return l===void 0?255:l<<c}}}),PC=M({"../../node_modules/picoquery/lib/parse.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.numberValueDeserializer=e.numberKeyDeserializer=void 0,e.parse=l;var t=Mg(),r=id(),n=CC(),o=d=>{let p=Number(d);return Number.isNaN(p)?d:p};e.numberKeyDeserializer=o;var i=d=>{let p=Number(d);return Number.isNaN(p)?d:p};e.numberValueDeserializer=i;var a=/\+/g,s=function(){};s.prototype=Object.create(null);function c(d,p,f,m,y){let g=d.substring(p,f);return m&&(g=g.replace(a," ")),y&&(g=(0,n.decodeURIComponent)(g)||g),g}function l(d,p){let{valueDeserializer:f=r.defaultOptions.valueDeserializer,keyDeserializer:m=r.defaultOptions.keyDeserializer,arrayRepeatSyntax:y=r.defaultOptions.arrayRepeatSyntax,nesting:g=r.defaultOptions.nesting,arrayRepeat:v=r.defaultOptions.arrayRepeat,nestingSyntax:b=r.defaultOptions.nestingSyntax,delimiter:T=r.defaultOptions.delimiter}=p??{},A=typeof T=="string"?T.charCodeAt(0):T,R=b==="js",P=new s;if(typeof d!="string")return P;let E=d.length,_="",x=-1,S=-1,F=-1,j=P,J,N="",O="",q=!1,$=!1,V=!1,Y=!1,oe=!1,ue=!1,D=0,L=-1,G=-1,Q=-1;for(let X=0;X<E+1;X++){if(D=X!==E?d.charCodeAt(X):A,D===A){if(ue=S>x,ue||(S=X),F!==S-1&&(O=c(d,F+1,L>-1?L:S,V,q),N=m(O),J!==void 0&&(j=(0,t.getDeepObject)(j,J,N,R&&oe,void 0))),ue||N!==""){ue&&(_=d.slice(S+1,X),Y&&(_=_.replace(a," ")),$&&(_=(0,n.decodeURIComponent)(_)||_));let K=f(_,N);if(v){let ie=j[N];ie===void 0?L>-1?j[N]=[K]:j[N]=K:ie.pop?ie.push(K):j[N]=[ie,K]}else j[N]=K}_="",x=X,S=X,q=!1,$=!1,V=!1,Y=!1,oe=!1,L=-1,F=X,j=P,J=void 0,N=""}else D===93?(v&&y==="bracket"&&Q===91&&(L=G),g&&(b==="index"||R)&&S<=x&&(F!==G&&(O=c(d,F+1,X,V,q),N=m(O),J!==void 0&&(j=(0,t.getDeepObject)(j,J,N,void 0,void 0)),J=N,V=!1,q=!1),F=X,oe=!1)):D===46?g&&(b==="dot"||R)&&S<=x&&(F!==G&&(O=c(d,F+1,X,V,q),N=m(O),J!==void 0&&(j=(0,t.getDeepObject)(j,J,N,R)),J=N,V=!1,q=!1),oe=!0,F=X):D===91?g&&(b==="index"||R)&&S<=x&&(F!==G&&(O=c(d,F+1,X,V,q),N=m(O),R&&J!==void 0&&(j=(0,t.getDeepObject)(j,J,N,R)),J=N,V=!1,q=!1,oe=!1),F=X):D===61?S<=x?S=X:$=!0:D===43?S>x?Y=!0:V=!0:D===37&&(S>x?$=!0:q=!0);G=X,Q=D}return P}}}),MC=M({"../../node_modules/picoquery/lib/stringify.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=r;var t=Mg();function r(n,o){if(n===null||typeof n!="object")return"";let i=o??{};return(0,t.stringifyObject)(n,i)}}}),ad=M({"../../node_modules/picoquery/lib/main.js"(e){var t=e&&e.__createBinding||(Object.create?(function(i,a,s,c){c===void 0&&(c=s);var l=Object.getOwnPropertyDescriptor(a,s);(!l||("get"in l?!a.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(i,c,l)}):(function(i,a,s,c){c===void 0&&(c=s),i[c]=a[s]})),r=e&&e.__exportStar||function(i,a){for(var s in i)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&t(a,i,s)};Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=e.parse=void 0;var n=PC();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return n.parse}});var o=MC();Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return o.stringify}}),r(id(),e)}}),Ng=M({"../../node_modules/entities/lib/maps/entities.json"(e,t){t.exports={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
18
- `,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}}}),NC=M({"../../node_modules/entities/lib/maps/legacy.json"(e,t){t.exports={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",amp:"&",AMP:"&",Aring:"Å",aring:"å",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",brvbar:"¦",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",iquest:"¿",Iuml:"Ï",iuml:"ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",Ntilde:"Ñ",ntilde:"ñ",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",Ograve:"Ò",ograve:"ò",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",Ouml:"Ö",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",THORN:"Þ",thorn:"þ",times:"×",Uacute:"Ú",uacute:"ú",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",Uuml:"Ü",uuml:"ü",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ"}}}),Ig=M({"../../node_modules/entities/lib/maps/xml.json"(e,t){t.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}}}),IC=M({"../../node_modules/entities/lib/maps/decode.json"(e,t){t.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}}}),kC=M({"../../node_modules/entities/lib/decode_codepoint.js"(e){var t=e&&e.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0});var r=t(IC()),n=String.fromCodePoint||function(i){var a="";return i>65535&&(i-=65536,a+=String.fromCharCode(i>>>10&1023|55296),i=56320|i&1023),a+=String.fromCharCode(i),a};function o(i){return i>=55296&&i<=57343||i>1114111?"�":(i in r.default&&(i=r.default[i]),n(i))}e.default=o}}),Af=M({"../../node_modules/entities/lib/decode.js"(e){var t=e&&e.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeHTML=e.decodeHTMLStrict=e.decodeXML=void 0;var r=t(Ng()),n=t(NC()),o=t(Ig()),i=t(kC()),a=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;e.decodeXML=s(o.default),e.decodeHTMLStrict=s(r.default);function s(d){var p=l(d);return function(f){return String(f).replace(a,p)}}var c=function(d,p){return d<p?1:-1};e.decodeHTML=(function(){for(var d=Object.keys(n.default).sort(c),p=Object.keys(r.default).sort(c),f=0,m=0;f<p.length;f++)d[m]===p[f]?(p[f]+=";?",m++):p[f]+=";";var y=new RegExp("&(?:"+p.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),g=l(r.default);function v(b){return b.substr(-1)!==";"&&(b+=";"),g(b)}return function(b){return String(b).replace(y,v)}})();function l(d){return function(p){if(p.charAt(1)==="#"){var f=p.charAt(2);return f==="X"||f==="x"?i.default(parseInt(p.substr(3),16)):i.default(parseInt(p.substr(2),10))}return d[p.slice(1,-1)]||p}}}}),Of=M({"../../node_modules/entities/lib/encode.js"(e){var t=e&&e.__importDefault||function(T){return T&&T.__esModule?T:{default:T}};Object.defineProperty(e,"__esModule",{value:!0}),e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=void 0;var r=t(Ig()),n=c(r.default),o=l(n);e.encodeXML=b(n);var i=t(Ng()),a=c(i.default),s=l(a);e.encodeHTML=m(a,s),e.encodeNonAsciiHTML=b(a);function c(T){return Object.keys(T).sort().reduce(function(A,R){return A[T[R]]="&"+R+";",A},{})}function l(T){for(var A=[],R=[],P=0,E=Object.keys(T);P<E.length;P++){var _=E[P];_.length===1?A.push("\\"+_):R.push(_)}A.sort();for(var x=0;x<A.length-1;x++){for(var S=x;S<A.length-1&&A[S].charCodeAt(1)+1===A[S+1].charCodeAt(1);)S+=1;var F=1+S-x;F<3||A.splice(x,F,A[x]+"-"+A[S])}return R.unshift("["+A.join("")+"]"),new RegExp(R.join("|"),"g")}var d=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,p=String.prototype.codePointAt!=null?(function(T){return T.codePointAt(0)}):(function(T){return(T.charCodeAt(0)-55296)*1024+T.charCodeAt(1)-56320+65536});function f(T){return"&#x"+(T.length>1?p(T):T.charCodeAt(0)).toString(16).toUpperCase()+";"}function m(T,A){return function(R){return R.replace(A,function(P){return T[P]}).replace(d,f)}}var y=new RegExp(o.source+"|"+d.source,"g");function g(T){return T.replace(y,f)}e.escape=g;function v(T){return T.replace(o,f)}e.escapeUTF8=v;function b(T){return function(A){return A.replace(y,function(R){return T[R]||f(R)})}}}}),jC=M({"../../node_modules/entities/lib/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=Af(),r=Of();function n(c,l){return(!l||l<=0?t.decodeXML:t.decodeHTML)(c)}e.decode=n;function o(c,l){return(!l||l<=0?t.decodeXML:t.decodeHTMLStrict)(c)}e.decodeStrict=o;function i(c,l){return(!l||l<=0?r.encodeXML:r.encodeHTML)(c)}e.encode=i;var a=Of();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return a.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return a.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return a.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return a.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return a.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return a.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return a.encodeHTML}});var s=Af();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return s.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return s.decodeXML}})}}),qC=M({"../../node_modules/ansi-to-html/lib/ansi_to_html.js"(e,t){function r(O,q){if(!(O instanceof q))throw new TypeError("Cannot call a class as a function")}function n(O,q){for(var $=0;$<q.length;$++){var V=q[$];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(O,V.key,V)}}function o(O,q,$){return q&&n(O.prototype,q),O}function i(O,q){var $=typeof Symbol<"u"&&O[Symbol.iterator]||O["@@iterator"];if(!$){if(Array.isArray(O)||($=a(O))||q){$&&(O=$);var V=0,Y=function(){};return{s:Y,n:function(){return V>=O.length?{done:!0}:{done:!1,value:O[V++]}},e:function(L){throw L},f:Y}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
19
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var oe=!0,ue=!1,D;return{s:function(){$=$.call(O)},n:function(){var L=$.next();return oe=L.done,L},e:function(L){ue=!0,D=L},f:function(){try{!oe&&$.return!=null&&$.return()}finally{if(ue)throw D}}}}function a(O,q){if(O){if(typeof O=="string")return s(O,q);var $=Object.prototype.toString.call(O).slice(8,-1);if($==="Object"&&O.constructor&&($=O.constructor.name),$==="Map"||$==="Set")return Array.from(O);if($==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($))return s(O,q)}}function s(O,q){(q==null||q>O.length)&&(q=O.length);for(var $=0,V=new Array(q);$<q;$++)V[$]=O[$];return V}var c=jC(),l={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:d()};function d(){var O={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0A",6:"#0AA",7:"#AAA",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};return T(0,5).forEach(function(q){T(0,5).forEach(function($){T(0,5).forEach(function(V){return p(q,$,V,O)})})}),T(0,23).forEach(function(q){var $=q+232,V=f(q*10+8);O[$]="#"+V+V+V}),O}function p(O,q,$,V){var Y=16+O*36+q*6+$,oe=O>0?O*40+55:0,ue=q>0?q*40+55:0,D=$>0?$*40+55:0;V[Y]=m([oe,ue,D])}function f(O){for(var q=O.toString(16);q.length<2;)q="0"+q;return q}function m(O){var q=[],$=i(O),V;try{for($.s();!(V=$.n()).done;){var Y=V.value;q.push(f(Y))}}catch(oe){$.e(oe)}finally{$.f()}return"#"+q.join("")}function y(O,q,$,V){var Y;return q==="text"?Y=P($,V):q==="display"?Y=v(O,$,V):q==="xterm256Foreground"?Y=x(O,V.colors[$]):q==="xterm256Background"?Y=S(O,V.colors[$]):q==="rgb"&&(Y=g(O,$)),Y}function g(O,q){q=q.substring(2).slice(0,-1);var $=+q.substr(0,2),V=q.substring(5).split(";"),Y=V.map(function(oe){return("0"+Number(oe).toString(16)).substr(-2)}).join("");return _(O,($===38?"color:#":"background-color:#")+Y)}function v(O,q,$){q=parseInt(q,10);var V={"-1":function(){return"<br/>"},0:function(){return O.length&&b(O)},1:function(){return E(O,"b")},3:function(){return E(O,"i")},4:function(){return E(O,"u")},8:function(){return _(O,"display:none")},9:function(){return E(O,"strike")},22:function(){return _(O,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return F(O,"i")},24:function(){return F(O,"u")},39:function(){return x(O,$.fg)},49:function(){return S(O,$.bg)},53:function(){return _(O,"text-decoration:overline")}},Y;return V[q]?Y=V[q]():4<q&&q<7?Y=E(O,"blink"):29<q&&q<38?Y=x(O,$.colors[q-30]):39<q&&q<48?Y=S(O,$.colors[q-40]):89<q&&q<98?Y=x(O,$.colors[8+(q-90)]):99<q&&q<108&&(Y=S(O,$.colors[8+(q-100)])),Y}function b(O){var q=O.slice(0);return O.length=0,q.reverse().map(function($){return"</"+$+">"}).join("")}function T(O,q){for(var $=[],V=O;V<=q;V++)$.push(V);return $}function A(O){return function(q){return(O===null||q.category!==O)&&O!=="all"}}function R(O){O=parseInt(O,10);var q=null;return O===0?q="all":O===1?q="bold":2<O&&O<5?q="underline":4<O&&O<7?q="blink":O===8?q="hide":O===9?q="strike":29<O&&O<38||O===39||89<O&&O<98?q="foreground-color":(39<O&&O<48||O===49||99<O&&O<108)&&(q="background-color"),q}function P(O,q){return q.escapeXML?c.encodeXML(O):O}function E(O,q,$){return $||($=""),O.push(q),"<".concat(q).concat($?' style="'.concat($,'"'):"",">")}function _(O,q){return E(O,"span",q)}function x(O,q){return E(O,"span","color:"+q)}function S(O,q){return E(O,"span","background-color:"+q)}function F(O,q){var $;if(O.slice(-1)[0]===q&&($=O.pop()),$)return"</"+q+">"}function j(O,q,$){var V=!1,Y=3;function oe(){return""}function ue(de,ye){return $("xterm256Foreground",ye),""}function D(de,ye){return $("xterm256Background",ye),""}function L(de){return q.newline?$("display",-1):$("text",de),""}function G(de,ye){V=!0,ye.trim().length===0&&(ye="0"),ye=ye.trimRight(";").split(";");var Ee=i(ye),Ue;try{for(Ee.s();!(Ue=Ee.n()).done;){var gt=Ue.value;$("display",gt)}}catch(ut){Ee.e(ut)}finally{Ee.f()}return""}function Q(de){return $("text",de),""}function X(de){return $("rgb",de),""}var K=[{pattern:/^\x08+/,sub:oe},{pattern:/^\x1b\[[012]?K/,sub:oe},{pattern:/^\x1b\[\(B/,sub:oe},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:X},{pattern:/^\x1b\[38;5;(\d+)m/,sub:ue},{pattern:/^\x1b\[48;5;(\d+)m/,sub:D},{pattern:/^\n/,sub:L},{pattern:/^\r+\n/,sub:L},{pattern:/^\r/,sub:L},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:G},{pattern:/^\x1b\[\d?J/,sub:oe},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:oe},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:oe},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:Q}];function ie(de,ye){ye>Y&&V||(V=!1,O=O.replace(de.pattern,de.sub))}var se=[],Te=O,B=Te.length;e:for(;B>0;){for(var te=0,ne=0,ae=K.length;ne<ae;te=++ne){var ce=K[te];if(ie(ce,te),O.length!==B){B=O.length;continue e}}if(O.length===B)break;se.push(0),B=O.length}return se}function J(O,q,$){return q!=="text"&&(O=O.filter(A(R($))),O.push({token:q,data:$,category:R($)})),O}var N=(function(){function O(q){r(this,O),q=q||{},q.colors&&(q.colors=Object.assign({},l.colors,q.colors)),this.options=Object.assign({},l,q),this.stack=[],this.stickyStack=[]}return o(O,[{key:"toHtml",value:function(q){var $=this;q=typeof q=="string"?[q]:q;var V=this.stack,Y=this.options,oe=[];return this.stickyStack.forEach(function(ue){var D=y(V,ue.token,ue.data,Y);D&&oe.push(D)}),j(q.join(""),Y,function(ue,D){var L=y(V,ue,D,Y);L&&oe.push(L),Y.stream&&($.stickyStack=J($.stickyStack,ue,D))}),V.length&&oe.push(b(V)),oe.join("")}}]),O})();t.exports=N}}),DC=M({"../../node_modules/jsdoc-type-pratt-parser/dist/index.js"(e,t){(function(r,n){typeof e=="object"&&typeof t<"u"?n(e):typeof define=="function"&&define.amd?define(["exports"],n):(r=typeof globalThis<"u"?globalThis:r||self,n(r.jtpp={}))})(e,(function(r){function n(u){return u.text!==void 0&&u.text!==""?`'${u.type}' with value '${u.text}'`:`'${u.type}'`}class o extends Error{constructor(h){super(`No parslet found for token: ${n(h)}`),this.token=h,Object.setPrototypeOf(this,o.prototype)}getToken(){return this.token}}class i extends Error{constructor(h){super(`The parsing ended early. The next token was: ${n(h)}`),this.token=h,Object.setPrototypeOf(this,i.prototype)}getToken(){return this.token}}class a extends Error{constructor(h,w){let C=`Unexpected type: '${h.type}'.`;w!==void 0&&(C+=` Message: ${w}`),super(C),Object.setPrototypeOf(this,a.prototype)}}function s(u){return h=>h.startsWith(u)?{type:u,text:u}:null}function c(u){let h=0,w,C=u[0],U=!1;if(C!=="'"&&C!=='"')return null;for(;h<u.length;){if(h++,w=u[h],!U&&w===C){h++;break}U=!U&&w==="\\"}if(w!==C)throw new Error("Unterminated String");return u.slice(0,h)}let l=new RegExp("[$_\\p{ID_Start}]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u"),d=new RegExp("[$\\-\\p{ID_Continue}\\u200C\\u200D]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u");function p(u){let h=u[0];if(!l.test(h))return null;let w=1;do{if(h=u[w],!d.test(h))break;w++}while(w<u.length);return u.slice(0,w)}let f=/^(NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity))/;function m(u){var h,w;return(w=(h=f.exec(u))===null||h===void 0?void 0:h[0])!==null&&w!==void 0?w:null}let y=u=>{let h=p(u);return h==null?null:{type:"Identifier",text:h}};function g(u){return h=>{if(!h.startsWith(u))return null;let w=h[u.length];return w!==void 0&&d.test(w)?null:{type:u,text:u}}}let v=u=>{let h=c(u);return h==null?null:{type:"StringValue",text:h}},b=u=>u.length>0?null:{type:"EOF",text:""},T=u=>{let h=m(u);return h===null?null:{type:"Number",text:h}},A=[b,s("=>"),s("("),s(")"),s("{"),s("}"),s("["),s("]"),s("|"),s("&"),s("<"),s(">"),s(","),s(";"),s("*"),s("?"),s("!"),s("="),s(":"),s("..."),s("."),s("#"),s("~"),s("/"),s("@"),g("undefined"),g("null"),g("function"),g("this"),g("new"),g("module"),g("event"),g("extends"),g("external"),g("infer"),g("typeof"),g("keyof"),g("readonly"),g("import"),g("is"),g("in"),g("asserts"),T,y,v],R=/^\s*\n\s*/;class P{static create(h){let w=this.read(h);h=w.text;let C=this.read(h);return h=C.text,new P(h,void 0,w.token,C.token)}constructor(h,w,C,U){this.text="",this.text=h,this.previous=w,this.current=C,this.next=U}static read(h,w=!1){w=w||R.test(h),h=h.trim();for(let C of A){let U=C(h);if(U!==null){let W=Object.assign(Object.assign({},U),{startOfLine:w});return h=h.slice(W.text.length),{text:h,token:W}}}throw new Error("Unexpected Token "+h)}advance(){let h=P.read(this.text);return new P(h.text,this.current,this.next,h.token)}}function E(u){if(u===void 0)throw new Error("Unexpected undefined");if(u.type==="JsdocTypeKeyValue"||u.type==="JsdocTypeParameterList"||u.type==="JsdocTypeProperty"||u.type==="JsdocTypeReadonlyProperty"||u.type==="JsdocTypeObjectField"||u.type==="JsdocTypeJsdocObjectField"||u.type==="JsdocTypeIndexSignature"||u.type==="JsdocTypeMappedType"||u.type==="JsdocTypeTypeParameter")throw new a(u);return u}function _(u){return u.type==="JsdocTypeKeyValue"?S(u):E(u)}function x(u){return u.type==="JsdocTypeName"?u:S(u)}function S(u){if(u.type!=="JsdocTypeKeyValue")throw new a(u);return u}function F(u){var h;if(u.type==="JsdocTypeVariadic"){if(((h=u.element)===null||h===void 0?void 0:h.type)==="JsdocTypeName")return u;throw new a(u)}if(u.type!=="JsdocTypeNumber"&&u.type!=="JsdocTypeName")throw new a(u);return u}function j(u){if(u.type==="JsdocTypeTuple"||u.type==="JsdocTypeGeneric"&&u.meta.brackets==="square")return u;throw new a(u)}function J(u){return u.type==="JsdocTypeIndexSignature"||u.type==="JsdocTypeMappedType"}var N;(function(u){u[u.ALL=0]="ALL",u[u.PARAMETER_LIST=1]="PARAMETER_LIST",u[u.OBJECT=2]="OBJECT",u[u.KEY_VALUE=3]="KEY_VALUE",u[u.INDEX_BRACKETS=4]="INDEX_BRACKETS",u[u.UNION=5]="UNION",u[u.INTERSECTION=6]="INTERSECTION",u[u.PREFIX=7]="PREFIX",u[u.INFIX=8]="INFIX",u[u.TUPLE=9]="TUPLE",u[u.SYMBOL=10]="SYMBOL",u[u.OPTIONAL=11]="OPTIONAL",u[u.NULLABLE=12]="NULLABLE",u[u.KEY_OF_TYPE_OF=13]="KEY_OF_TYPE_OF",u[u.FUNCTION=14]="FUNCTION",u[u.ARROW=15]="ARROW",u[u.ARRAY_BRACKETS=16]="ARRAY_BRACKETS",u[u.GENERIC=17]="GENERIC",u[u.NAME_PATH=18]="NAME_PATH",u[u.PARENTHESIS=19]="PARENTHESIS",u[u.SPECIAL_TYPES=20]="SPECIAL_TYPES"})(N||(N={}));class O{constructor(h,w,C){this.grammar=h,typeof w=="string"?this._lexer=P.create(w):this._lexer=w,this.baseParser=C}get lexer(){return this._lexer}parse(){let h=this.parseType(N.ALL);if(this.lexer.current.type!=="EOF")throw new i(this.lexer.current);return h}parseType(h){return E(this.parseIntermediateType(h))}parseIntermediateType(h){let w=this.tryParslets(null,h);if(w===null)throw new o(this.lexer.current);return this.parseInfixIntermediateType(w,h)}parseInfixIntermediateType(h,w){let C=this.tryParslets(h,w);for(;C!==null;)h=C,C=this.tryParslets(h,w);return h}tryParslets(h,w){for(let C of this.grammar){let U=C(this,w,h);if(U!==null)return U}return null}consume(h){return Array.isArray(h)||(h=[h]),h.includes(this.lexer.current.type)?(this._lexer=this.lexer.advance(),!0):!1}acceptLexerState(h){this._lexer=h.lexer}}function q(u){return u==="}"||u==="EOF"||u==="|"||u===","||u===")"||u===">"}let $=(u,h,w)=>{let C=u.lexer.current.type,U=u.lexer.next.type;return w==null&&C==="?"&&!q(U)||w!=null&&C==="?"?(u.consume("?"),w==null?{type:"JsdocTypeNullable",element:u.parseType(N.NULLABLE),meta:{position:"prefix"}}:{type:"JsdocTypeNullable",element:E(w),meta:{position:"suffix"}}):null};function V(u){let h=(w,C,U)=>{let W=w.lexer.current.type,Z=w.lexer.next.type;if(U===null){if("parsePrefix"in u&&u.accept(W,Z))return u.parsePrefix(w)}else if("parseInfix"in u&&u.precedence>C&&u.accept(W,Z))return u.parseInfix(w,U);return null};return Object.defineProperty(h,"name",{value:u.name}),h}let Y=V({name:"optionalParslet",accept:u=>u==="=",precedence:N.OPTIONAL,parsePrefix:u=>(u.consume("="),{type:"JsdocTypeOptional",element:u.parseType(N.OPTIONAL),meta:{position:"prefix"}}),parseInfix:(u,h)=>(u.consume("="),{type:"JsdocTypeOptional",element:E(h),meta:{position:"suffix"}})}),oe=V({name:"numberParslet",accept:u=>u==="Number",parsePrefix:u=>{let h=parseFloat(u.lexer.current.text);return u.consume("Number"),{type:"JsdocTypeNumber",value:h}}}),ue=V({name:"parenthesisParslet",accept:u=>u==="(",parsePrefix:u=>{if(u.consume("("),u.consume(")"))return{type:"JsdocTypeParameterList",elements:[]};let h=u.parseIntermediateType(N.ALL);if(!u.consume(")"))throw new Error("Unterminated parenthesis");return h.type==="JsdocTypeParameterList"?h:h.type==="JsdocTypeKeyValue"?{type:"JsdocTypeParameterList",elements:[h]}:{type:"JsdocTypeParenthesis",element:E(h)}}}),D=V({name:"specialTypesParslet",accept:(u,h)=>u==="?"&&q(h)||u==="null"||u==="undefined"||u==="*",parsePrefix:u=>{if(u.consume("null"))return{type:"JsdocTypeNull"};if(u.consume("undefined"))return{type:"JsdocTypeUndefined"};if(u.consume("*"))return{type:"JsdocTypeAny"};if(u.consume("?"))return{type:"JsdocTypeUnknown"};throw new Error("Unacceptable token: "+u.lexer.current.text)}}),L=V({name:"notNullableParslet",accept:u=>u==="!",precedence:N.NULLABLE,parsePrefix:u=>(u.consume("!"),{type:"JsdocTypeNotNullable",element:u.parseType(N.NULLABLE),meta:{position:"prefix"}}),parseInfix:(u,h)=>(u.consume("!"),{type:"JsdocTypeNotNullable",element:E(h),meta:{position:"suffix"}})});function G({allowTrailingComma:u}){return V({name:"parameterListParslet",accept:h=>h===",",precedence:N.PARAMETER_LIST,parseInfix:(h,w)=>{let C=[_(w)];h.consume(",");do try{let U=h.parseIntermediateType(N.PARAMETER_LIST);C.push(_(U))}catch(U){if(U instanceof o)break;throw U}while(h.consume(","));if(C.length>0&&C.slice(0,-1).some(U=>U.type==="JsdocTypeVariadic"))throw new Error("Only the last parameter may be a rest parameter");return{type:"JsdocTypeParameterList",elements:C}}})}let Q=V({name:"genericParslet",accept:(u,h)=>u==="<"||u==="."&&h==="<",precedence:N.GENERIC,parseInfix:(u,h)=>{let w=u.consume(".");u.consume("<");let C=[],U=!1;if(u.consume("infer")){U=!0;let W=u.parseIntermediateType(N.SYMBOL);if(W.type!=="JsdocTypeName")throw new a(W,"A typescript asserts always has to have a name on the left side.");C.push(W)}else do C.push(u.parseType(N.PARAMETER_LIST));while(u.consume(","));if(!u.consume(">"))throw new Error("Unterminated generic parameter list");return Object.assign(Object.assign({type:"JsdocTypeGeneric",left:E(h),elements:C},U?{infer:!0}:{}),{meta:{brackets:"angle",dot:w}})}}),X=V({name:"unionParslet",accept:u=>u==="|",precedence:N.UNION,parseInfix:(u,h)=>{u.consume("|");let w=[];do w.push(u.parseType(N.UNION));while(u.consume("|"));return{type:"JsdocTypeUnion",elements:[E(h),...w]}}}),K=[$,Y,oe,ue,D,L,G({allowTrailingComma:!0}),Q,X,Y];function ie({allowSquareBracketsOnAnyType:u,allowJsdocNamePaths:h,pathGrammar:w}){return function(C,U,W){if(W==null||U>=N.NAME_PATH)return null;let Z=C.lexer.current.type,fe=C.lexer.next.type;if(!(Z==="."&&fe!=="<"||Z==="["&&(u||W.type==="JsdocTypeName")||h&&(Z==="~"||Z==="#")))return null;let me,Ae=!1;C.consume(".")?me="property":C.consume("[")?(me="property-brackets",Ae=!0):C.consume("~")?me="inner":(C.consume("#"),me="instance");let et=w!==null?new O(w,C.lexer,C):C,He=et.parseIntermediateType(N.NAME_PATH);C.acceptLexerState(et);let Ht;switch(He.type){case"JsdocTypeName":Ht={type:"JsdocTypeProperty",value:He.value,meta:{quote:void 0}};break;case"JsdocTypeNumber":Ht={type:"JsdocTypeProperty",value:He.value.toString(10),meta:{quote:void 0}};break;case"JsdocTypeStringValue":Ht={type:"JsdocTypeProperty",value:He.value,meta:{quote:He.meta.quote}};break;case"JsdocTypeSpecialNamePath":if(He.specialType==="event")Ht=He;else throw new a(He,"Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'");break;default:throw new a(He,"Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'")}if(Ae&&!C.consume("]")){let Uo=C.lexer.current;throw new Error(`Unterminated square brackets. Next token is '${Uo.type}' with text '${Uo.text}'`)}return{type:"JsdocTypeNamePath",left:E(W),right:Ht,pathType:me}}}function se({allowedAdditionalTokens:u}){return V({name:"nameParslet",accept:h=>h==="Identifier"||h==="this"||h==="new"||u.includes(h),parsePrefix:h=>{let{type:w,text:C}=h.lexer.current;return h.consume(w),{type:"JsdocTypeName",value:C}}})}let Te=V({name:"stringValueParslet",accept:u=>u==="StringValue",parsePrefix:u=>{let h=u.lexer.current.text;return u.consume("StringValue"),{type:"JsdocTypeStringValue",value:h.slice(1,-1),meta:{quote:h[0]==="'"?"single":"double"}}}});function B({pathGrammar:u,allowedTypes:h}){return V({name:"specialNamePathParslet",accept:w=>h.includes(w),parsePrefix:w=>{let C=w.lexer.current.type;if(w.consume(C),!w.consume(":"))return{type:"JsdocTypeName",value:C};let U,W=w.lexer.current;if(w.consume("StringValue"))U={type:"JsdocTypeSpecialNamePath",value:W.text.slice(1,-1),specialType:C,meta:{quote:W.text[0]==="'"?"single":"double"}};else{let me="",Ae=["Identifier","@","/"];for(;Ae.some(et=>w.consume(et));)me+=W.text,W=w.lexer.current;U={type:"JsdocTypeSpecialNamePath",value:me,specialType:C,meta:{quote:void 0}}}let Z=new O(u,w.lexer,w),fe=Z.parseInfixIntermediateType(U,N.ALL);return w.acceptLexerState(Z),E(fe)}})}let te=[se({allowedAdditionalTokens:["external","module"]}),Te,oe,ie({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:null})],ne=[...te,B({allowedTypes:["event"],pathGrammar:te})];function ae(u){let h;if(u.type==="JsdocTypeParameterList")h=u.elements;else if(u.type==="JsdocTypeParenthesis")h=[u.element];else throw new a(u);return h.map(w=>_(w))}function ce(u){let h=ae(u);if(h.some(w=>w.type==="JsdocTypeKeyValue"))throw new Error("No parameter should be named");return h}function de({allowNamedParameters:u,allowNoReturnType:h,allowWithoutParenthesis:w,allowNewAsFunctionKeyword:C}){return V({name:"functionParslet",accept:(U,W)=>U==="function"||C&&U==="new"&&W==="(",parsePrefix:U=>{let W=U.consume("new");U.consume("function");let Z=U.lexer.current.type==="(";if(!Z){if(!w)throw new Error("function is missing parameter list");return{type:"JsdocTypeName",value:"function"}}let fe={type:"JsdocTypeFunction",parameters:[],arrow:!1,constructor:W,parenthesis:Z},me=U.parseIntermediateType(N.FUNCTION);if(u===void 0)fe.parameters=ce(me);else{if(W&&me.type==="JsdocTypeFunction"&&me.arrow)return fe=me,fe.constructor=!0,fe;fe.parameters=ae(me);for(let Ae of fe.parameters)if(Ae.type==="JsdocTypeKeyValue"&&!u.includes(Ae.key))throw new Error(`only allowed named parameters are ${u.join(", ")} but got ${Ae.type}`)}if(U.consume(":"))fe.returnType=U.parseType(N.PREFIX);else if(!h)throw new Error("function is missing return type");return fe}})}function ye({allowPostfix:u,allowEnclosingBrackets:h}){return V({name:"variadicParslet",accept:w=>w==="...",precedence:N.PREFIX,parsePrefix:w=>{w.consume("...");let C=h&&w.consume("[");try{let U=w.parseType(N.PREFIX);if(C&&!w.consume("]"))throw new Error("Unterminated variadic type. Missing ']'");return{type:"JsdocTypeVariadic",element:E(U),meta:{position:"prefix",squareBrackets:C}}}catch(U){if(U instanceof o){if(C)throw new Error("Empty square brackets for variadic are not allowed.");return{type:"JsdocTypeVariadic",meta:{position:void 0,squareBrackets:!1}}}else throw U}},parseInfix:u?(w,C)=>(w.consume("..."),{type:"JsdocTypeVariadic",element:E(C),meta:{position:"suffix",squareBrackets:!1}}):void 0})}let Ee=V({name:"symbolParslet",accept:u=>u==="(",precedence:N.SYMBOL,parseInfix:(u,h)=>{if(h.type!=="JsdocTypeName")throw new Error("Symbol expects a name on the left side. (Reacting on '(')");u.consume("(");let w={type:"JsdocTypeSymbol",value:h.value};if(!u.consume(")")){let C=u.parseIntermediateType(N.SYMBOL);if(w.element=F(C),!u.consume(")"))throw new Error("Symbol does not end after value")}return w}}),Ue=V({name:"arrayBracketsParslet",precedence:N.ARRAY_BRACKETS,accept:(u,h)=>u==="["&&h==="]",parseInfix:(u,h)=>(u.consume("["),u.consume("]"),{type:"JsdocTypeGeneric",left:{type:"JsdocTypeName",value:"Array"},elements:[E(h)],meta:{brackets:"square",dot:!1}})});function gt({objectFieldGrammar:u,allowKeyTypes:h}){return V({name:"objectParslet",accept:w=>w==="{",parsePrefix:w=>{w.consume("{");let C={type:"JsdocTypeObject",meta:{separator:"comma"},elements:[]};if(!w.consume("}")){let U,W=new O(u,w.lexer,w);for(;;){W.acceptLexerState(w);let Z=W.parseIntermediateType(N.OBJECT);w.acceptLexerState(W),Z===void 0&&h&&(Z=w.parseIntermediateType(N.OBJECT));let fe=!1;if(Z.type==="JsdocTypeNullable"&&(fe=!0,Z=Z.element),Z.type==="JsdocTypeNumber"||Z.type==="JsdocTypeName"||Z.type==="JsdocTypeStringValue"){let me;Z.type==="JsdocTypeStringValue"&&(me=Z.meta.quote),C.elements.push({type:"JsdocTypeObjectField",key:Z.value.toString(),right:void 0,optional:fe,readonly:!1,meta:{quote:me}})}else if(Z.type==="JsdocTypeObjectField"||Z.type==="JsdocTypeJsdocObjectField")C.elements.push(Z);else throw new a(Z);if(w.lexer.current.startOfLine)U="linebreak",w.consume(",")||w.consume(";");else if(w.consume(","))U="comma";else if(w.consume(";"))U="semicolon";else break;if(w.lexer.current.type==="}")break}if(C.meta.separator=U??"comma",U==="linebreak"&&(C.meta.propertyIndent=" "),!w.consume("}"))throw new Error("Unterminated record type. Missing '}'")}return C}})}function ut({allowSquaredProperties:u,allowKeyTypes:h,allowReadonly:w,allowOptional:C}){return V({name:"objectFieldParslet",precedence:N.KEY_VALUE,accept:U=>U===":",parseInfix:(U,W)=>{var Z;let fe=!1,me=!1;C&&W.type==="JsdocTypeNullable"&&(fe=!0,W=W.element),w&&W.type==="JsdocTypeReadonlyProperty"&&(me=!0,W=W.element);let Ae=(Z=U.baseParser)!==null&&Z!==void 0?Z:U;if(Ae.acceptLexerState(U),W.type==="JsdocTypeNumber"||W.type==="JsdocTypeName"||W.type==="JsdocTypeStringValue"||J(W)){if(J(W)&&!u)throw new a(W);Ae.consume(":");let et;W.type==="JsdocTypeStringValue"&&(et=W.meta.quote);let He=Ae.parseType(N.KEY_VALUE);return U.acceptLexerState(Ae),{type:"JsdocTypeObjectField",key:J(W)?W:W.value.toString(),right:He,optional:fe,readonly:me,meta:{quote:et}}}else{if(!h)throw new a(W);Ae.consume(":");let et=Ae.parseType(N.KEY_VALUE);return U.acceptLexerState(Ae),{type:"JsdocTypeJsdocObjectField",left:E(W),right:et}}}})}function bt({allowOptional:u,allowVariadic:h}){return V({name:"keyValueParslet",precedence:N.KEY_VALUE,accept:w=>w===":",parseInfix:(w,C)=>{let U=!1,W=!1;if(u&&C.type==="JsdocTypeNullable"&&(U=!0,C=C.element),h&&C.type==="JsdocTypeVariadic"&&C.element!==void 0&&(W=!0,C=C.element),C.type!=="JsdocTypeName")throw new a(C);w.consume(":");let Z=w.parseType(N.KEY_VALUE);return{type:"JsdocTypeKeyValue",key:C.value,right:Z,optional:U,variadic:W}}})}let ot=[...K,de({allowWithoutParenthesis:!0,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),Te,B({allowedTypes:["module","external","event"],pathGrammar:ne}),ye({allowEnclosingBrackets:!0,allowPostfix:!0}),se({allowedAdditionalTokens:["keyof"]}),Ee,Ue,ie({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:ne})],Xt=[...ot,gt({objectFieldGrammar:[se({allowedAdditionalTokens:["typeof","module","in"]}),ut({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),...ot],allowKeyTypes:!0}),bt({allowOptional:!0,allowVariadic:!0})],It=V({name:"typeOfParslet",accept:u=>u==="typeof",parsePrefix:u=>(u.consume("typeof"),{type:"JsdocTypeTypeof",element:u.parseType(N.KEY_OF_TYPE_OF)})}),Qt=[se({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),$,Y,Te,oe,ut({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],xo=[...K,gt({allowKeyTypes:!1,objectFieldGrammar:Qt}),se({allowedAdditionalTokens:["event","external","in"]}),It,de({allowWithoutParenthesis:!1,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),ye({allowEnclosingBrackets:!1,allowPostfix:!1}),se({allowedAdditionalTokens:["keyof"]}),B({allowedTypes:["module"],pathGrammar:ne}),ie({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:ne}),bt({allowOptional:!1,allowVariadic:!1}),Ee],So=V({name:"assertsParslet",accept:u=>u==="asserts",parsePrefix:u=>{u.consume("asserts");let h=u.parseIntermediateType(N.SYMBOL);if(h.type!=="JsdocTypeName")throw new a(h,"A typescript asserts always has to have a name on the left side.");return u.consume("is")?{type:"JsdocTypeAsserts",left:h,right:E(u.parseIntermediateType(N.INFIX))}:{type:"JsdocTypeAssertsPlain",element:h}}});function Ao({allowQuestionMark:u}){return V({name:"tupleParslet",accept:h=>h==="[",parsePrefix:h=>{h.consume("[");let w={type:"JsdocTypeTuple",elements:[]};if(h.consume("]"))return w;let C=h.parseIntermediateType(N.ALL);if(C.type==="JsdocTypeParameterList"?C.elements[0].type==="JsdocTypeKeyValue"?w.elements=C.elements.map(S):w.elements=C.elements.map(E):C.type==="JsdocTypeKeyValue"?w.elements=[S(C)]:w.elements=[E(C)],!h.consume("]"))throw new Error("Unterminated '['");if(w.elements.some(U=>U.type==="JsdocTypeUnknown"))throw new Error("Question mark in tuple not allowed");return w}})}let Oo=V({name:"keyOfParslet",accept:u=>u==="keyof",parsePrefix:u=>(u.consume("keyof"),{type:"JsdocTypeKeyof",element:E(u.parseType(N.KEY_OF_TYPE_OF))})}),Ro=V({name:"importParslet",accept:u=>u==="import",parsePrefix:u=>{if(u.consume("import"),!u.consume("("))throw new Error("Missing parenthesis after import keyword");let h=u.parseType(N.PREFIX);if(h.type!=="JsdocTypeStringValue")throw new Error("Only string values are allowed as paths for imports");if(!u.consume(")"))throw new Error("Missing closing parenthesis after import keyword");return{type:"JsdocTypeImport",element:h}}}),Co=V({name:"readonlyPropertyParslet",accept:u=>u==="readonly",parsePrefix:u=>(u.consume("readonly"),{type:"JsdocTypeReadonlyProperty",element:u.parseIntermediateType(N.KEY_VALUE)})}),Po=V({name:"arrowFunctionParslet",precedence:N.ARROW,accept:u=>u==="=>",parseInfix:(u,h)=>(u.consume("=>"),{type:"JsdocTypeFunction",parameters:ae(h).map(x),arrow:!0,constructor:!1,parenthesis:!0,returnType:u.parseType(N.OBJECT)})}),Mo=V({name:"genericArrowFunctionParslet",accept:u=>u==="<",parsePrefix:u=>{let h=[];u.consume("<");do{let C,U=u.parseIntermediateType(N.SYMBOL);if(U.type==="JsdocTypeOptional"&&(U=U.element,C=u.parseType(N.SYMBOL)),U.type!=="JsdocTypeName")throw new a(U);let W;u.consume("extends")&&(W=u.parseType(N.SYMBOL),W.type==="JsdocTypeOptional"&&(W=W.element,C=u.parseType(N.SYMBOL)));let Z={type:"JsdocTypeTypeParameter",name:U};if(W!==void 0&&(Z.constraint=W),C!==void 0&&(Z.defaultValue=C),h.push(Z),u.consume(">"))break}while(u.consume(","));let w=u.parseIntermediateType(N.SYMBOL);return w.typeParameters=h,w}}),No=V({name:"intersectionParslet",accept:u=>u==="&",precedence:N.INTERSECTION,parseInfix:(u,h)=>{u.consume("&");let w=[];do w.push(u.parseType(N.INTERSECTION));while(u.consume("&"));return{type:"JsdocTypeIntersection",elements:[E(h),...w]}}}),Io=V({name:"predicateParslet",precedence:N.INFIX,accept:u=>u==="is",parseInfix:(u,h)=>{if(h.type!=="JsdocTypeName")throw new a(h,"A typescript predicate always has to have a name on the left side.");return u.consume("is"),{type:"JsdocTypePredicate",left:h,right:E(u.parseIntermediateType(N.INFIX))}}}),ko=V({name:"objectSquareBracketPropertyParslet",accept:u=>u==="[",parsePrefix:u=>{if(u.baseParser===void 0)throw new Error("Only allowed inside object grammar");u.consume("[");let h=u.lexer.current.text;u.consume("Identifier");let w;if(u.consume(":")){let C=u.baseParser;C.acceptLexerState(u),w={type:"JsdocTypeIndexSignature",key:h,right:C.parseType(N.INDEX_BRACKETS)},u.acceptLexerState(C)}else if(u.consume("in")){let C=u.baseParser;C.acceptLexerState(u),w={type:"JsdocTypeMappedType",key:h,right:C.parseType(N.ARRAY_BRACKETS)},u.acceptLexerState(C)}else throw new Error("Missing ':' or 'in' inside square bracketed property.");if(!u.consume("]"))throw new Error("Unterminated square brackets");return w}}),jo=V({name:"readonlyArrayParslet",accept:u=>u==="readonly",parsePrefix:u=>(u.consume("readonly"),{type:"JsdocTypeReadonlyArray",element:j(u.parseIntermediateType(N.ALL))})}),qo=V({name:"conditionalParslet",precedence:N.INFIX,accept:u=>u==="extends",parseInfix:(u,h)=>{u.consume("extends");let w=u.parseType(N.KEY_OF_TYPE_OF).element,C=u.parseType(N.INFIX);return u.consume(":"),{type:"JsdocTypeConditional",checksType:E(h),extendsType:w,trueType:C,falseType:u.parseType(N.INFIX)}}}),Do=[Co,se({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),$,Y,Te,oe,ut({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),ko],Lo=[...K,gt({allowKeyTypes:!1,objectFieldGrammar:Do}),jo,It,Oo,Ro,Te,de({allowWithoutParenthesis:!0,allowNoReturnType:!1,allowNamedParameters:["this","new","args"],allowNewAsFunctionKeyword:!0}),Ao({allowQuestionMark:!1}),ye({allowEnclosingBrackets:!1,allowPostfix:!1}),So,qo,se({allowedAdditionalTokens:["event","external","in"]}),B({allowedTypes:["module"],pathGrammar:ne}),Ue,Po,Mo,ie({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:ne}),No,Io,bt({allowVariadic:!0,allowOptional:!0})];function tn(u,h){switch(h){case"closure":return new O(xo,u).parse();case"jsdoc":return new O(Xt,u).parse();case"typescript":return new O(Lo,u).parse()}}function Fo(u,h=["typescript","closure","jsdoc"]){let w;for(let C of h)try{return tn(u,C)}catch(U){w=U}throw w}function xt(u,h){let w=u[h.type];if(w===void 0)throw new Error(`In this set of transform rules exists no rule for type ${h.type}.`);return w(h,C=>xt(u,C))}function pe(u){throw new Error("This transform is not available. Are you trying the correct parsing mode?")}function rn(u){let h={params:[]};for(let w of u.parameters)w.type==="JsdocTypeKeyValue"?w.key==="this"?h.this=w.right:w.key==="new"?h.new=w.right:h.params.push(w):h.params.push(w);return h}function Ut(u,h,w){return u==="prefix"?w+h:h+w}function Ze(u,h){switch(h){case"double":return`"${u}"`;case"single":return`'${u}'`;case void 0:return u}}function ee(){return{JsdocTypeParenthesis:(u,h)=>`(${u.element!==void 0?h(u.element):""})`,JsdocTypeKeyof:(u,h)=>`keyof ${h(u.element)}`,JsdocTypeFunction:(u,h)=>{var w;if(u.arrow){if(u.returnType===void 0)throw new Error("Arrow function needs a return type.");let C=`${u.typeParameters!==void 0?`<${(w=u.typeParameters.map(h).join(", "))!==null&&w!==void 0?w:""}>`:""}(${u.parameters.map(h).join(", ")}) => ${h(u.returnType)}`;return u.constructor&&(C="new "+C),C}else{let C=u.constructor?"new":"function";return u.parenthesis&&(C+=`(${u.parameters.map(h).join(", ")})`,u.returnType!==void 0&&(C+=`: ${h(u.returnType)}`)),C}},JsdocTypeName:u=>u.value,JsdocTypeTuple:(u,h)=>`[${u.elements.map(h).join(", ")}]`,JsdocTypeVariadic:(u,h)=>u.meta.position===void 0?"...":Ut(u.meta.position,h(u.element),"..."),JsdocTypeNamePath:(u,h)=>{let w=h(u.left),C=h(u.right);switch(u.pathType){case"inner":return`${w}~${C}`;case"instance":return`${w}#${C}`;case"property":return`${w}.${C}`;case"property-brackets":return`${w}[${C}]`}},JsdocTypeStringValue:u=>Ze(u.value,u.meta.quote),JsdocTypeAny:()=>"*",JsdocTypeGeneric:(u,h)=>{if(u.meta.brackets==="square"){let w=u.elements[0],C=h(w);return w.type==="JsdocTypeUnion"||w.type==="JsdocTypeIntersection"?`(${C})[]`:`${C}[]`}else return`${h(u.left)}${u.meta.dot?".":""}<${u.infer===!0?"infer ":""}${u.elements.map(h).join(", ")}>`},JsdocTypeImport:(u,h)=>`import(${h(u.element)})`,JsdocTypeObjectField:(u,h)=>{let w="";return u.readonly&&(w+="readonly "),typeof u.key=="string"?w+=Ze(u.key,u.meta.quote):w+=h(u.key),u.optional&&(w+="?"),u.right===void 0?w:w+`: ${h(u.right)}`},JsdocTypeJsdocObjectField:(u,h)=>`${h(u.left)}: ${h(u.right)}`,JsdocTypeKeyValue:(u,h)=>{let w=u.key;return u.optional&&(w+="?"),u.variadic&&(w="..."+w),u.right===void 0?w:w+`: ${h(u.right)}`},JsdocTypeSpecialNamePath:u=>`${u.specialType}:${Ze(u.value,u.meta.quote)}`,JsdocTypeNotNullable:(u,h)=>Ut(u.meta.position,h(u.element),"!"),JsdocTypeNull:()=>"null",JsdocTypeNullable:(u,h)=>Ut(u.meta.position,h(u.element),"?"),JsdocTypeNumber:u=>u.value.toString(),JsdocTypeObject:(u,h)=>{var w,C;return`{${(u.meta.separator==="linebreak"&&u.elements.length>1?`
20
- `+((w=u.meta.propertyIndent)!==null&&w!==void 0?w:""):"")+u.elements.map(h).join(u.meta.separator==="comma"?", ":u.meta.separator==="linebreak"?`
21
- `+((C=u.meta.propertyIndent)!==null&&C!==void 0?C:""):"; ")+(u.meta.separator==="linebreak"&&u.elements.length>1?`
22
- `:"")}}`},JsdocTypeOptional:(u,h)=>Ut(u.meta.position,h(u.element),"="),JsdocTypeSymbol:(u,h)=>`${u.value}(${u.element!==void 0?h(u.element):""})`,JsdocTypeTypeof:(u,h)=>`typeof ${h(u.element)}`,JsdocTypeUndefined:()=>"undefined",JsdocTypeUnion:(u,h)=>u.elements.map(h).join(" | "),JsdocTypeUnknown:()=>"?",JsdocTypeIntersection:(u,h)=>u.elements.map(h).join(" & "),JsdocTypeProperty:u=>Ze(u.value,u.meta.quote),JsdocTypePredicate:(u,h)=>`${h(u.left)} is ${h(u.right)}`,JsdocTypeIndexSignature:(u,h)=>`[${u.key}: ${h(u.right)}]`,JsdocTypeMappedType:(u,h)=>`[${u.key} in ${h(u.right)}]`,JsdocTypeAsserts:(u,h)=>`asserts ${h(u.left)} is ${h(u.right)}`,JsdocTypeReadonlyArray:(u,h)=>`readonly ${h(u.element)}`,JsdocTypeAssertsPlain:(u,h)=>`asserts ${h(u.element)}`,JsdocTypeConditional:(u,h)=>`${h(u.checksType)} extends ${h(u.extendsType)} ? ${h(u.trueType)} : ${h(u.falseType)}`,JsdocTypeTypeParameter:(u,h)=>`${h(u.name)}${u.constraint!==void 0?` extends ${h(u.constraint)}`:""}${u.defaultValue!==void 0?` = ${h(u.defaultValue)}`:""}`}}let $o=ee();function Mr(u){return xt($o,u)}let Tl=["null","true","false","break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield"];function it(u){let h={type:"NameExpression",name:u};return Tl.includes(u)&&(h.reservedWord=!0),h}let xl={JsdocTypeOptional:(u,h)=>{let w=h(u.element);return w.optional=!0,w},JsdocTypeNullable:(u,h)=>{let w=h(u.element);return w.nullable=!0,w},JsdocTypeNotNullable:(u,h)=>{let w=h(u.element);return w.nullable=!1,w},JsdocTypeVariadic:(u,h)=>{if(u.element===void 0)throw new Error("dots without value are not allowed in catharsis mode");let w=h(u.element);return w.repeatable=!0,w},JsdocTypeAny:()=>({type:"AllLiteral"}),JsdocTypeNull:()=>({type:"NullLiteral"}),JsdocTypeStringValue:u=>it(Ze(u.value,u.meta.quote)),JsdocTypeUndefined:()=>({type:"UndefinedLiteral"}),JsdocTypeUnknown:()=>({type:"UnknownLiteral"}),JsdocTypeFunction:(u,h)=>{let w=rn(u),C={type:"FunctionType",params:w.params.map(h)};return w.this!==void 0&&(C.this=h(w.this)),w.new!==void 0&&(C.new=h(w.new)),u.returnType!==void 0&&(C.result=h(u.returnType)),C},JsdocTypeGeneric:(u,h)=>({type:"TypeApplication",applications:u.elements.map(w=>h(w)),expression:h(u.left)}),JsdocTypeSpecialNamePath:u=>it(u.specialType+":"+Ze(u.value,u.meta.quote)),JsdocTypeName:u=>u.value!=="function"?it(u.value):{type:"FunctionType",params:[]},JsdocTypeNumber:u=>it(u.value.toString()),JsdocTypeObject:(u,h)=>{let w={type:"RecordType",fields:[]};for(let C of u.elements)C.type!=="JsdocTypeObjectField"&&C.type!=="JsdocTypeJsdocObjectField"?w.fields.push({type:"FieldType",key:h(C),value:void 0}):w.fields.push(h(C));return w},JsdocTypeObjectField:(u,h)=>{if(typeof u.key!="string")throw new Error("Index signatures and mapped types are not supported");return{type:"FieldType",key:it(Ze(u.key,u.meta.quote)),value:u.right===void 0?void 0:h(u.right)}},JsdocTypeJsdocObjectField:(u,h)=>({type:"FieldType",key:h(u.left),value:h(u.right)}),JsdocTypeUnion:(u,h)=>({type:"TypeUnion",elements:u.elements.map(w=>h(w))}),JsdocTypeKeyValue:(u,h)=>({type:"FieldType",key:it(u.key),value:u.right===void 0?void 0:h(u.right)}),JsdocTypeNamePath:(u,h)=>{let w=h(u.left),C;u.right.type==="JsdocTypeSpecialNamePath"?C=h(u.right).name:C=Ze(u.right.value,u.right.meta.quote);let U=u.pathType==="inner"?"~":u.pathType==="instance"?"#":".";return it(`${w.name}${U}${C}`)},JsdocTypeSymbol:u=>{let h="",w=u.element,C=!1;return w?.type==="JsdocTypeVariadic"&&(w.meta.position==="prefix"?h="...":C=!0,w=w.element),w?.type==="JsdocTypeName"?h+=w.value:w?.type==="JsdocTypeNumber"&&(h+=w.value.toString()),C&&(h+="..."),it(`${u.value}(${h})`)},JsdocTypeParenthesis:(u,h)=>h(E(u.element)),JsdocTypeMappedType:pe,JsdocTypeIndexSignature:pe,JsdocTypeImport:pe,JsdocTypeKeyof:pe,JsdocTypeTuple:pe,JsdocTypeTypeof:pe,JsdocTypeIntersection:pe,JsdocTypeProperty:pe,JsdocTypePredicate:pe,JsdocTypeAsserts:pe,JsdocTypeReadonlyArray:pe,JsdocTypeAssertsPlain:pe,JsdocTypeConditional:pe,JsdocTypeTypeParameter:pe};function Sl(u){return xt(xl,u)}function vt(u){switch(u){case void 0:return"none";case"single":return"single";case"double":return"double"}}function Al(u){switch(u){case"inner":return"INNER_MEMBER";case"instance":return"INSTANCE_MEMBER";case"property":return"MEMBER";case"property-brackets":return"MEMBER"}}function nn(u,h){return h.length===2?{type:u,left:h[0],right:h[1]}:{type:u,left:h[0],right:nn(u,h.slice(1))}}let Ol={JsdocTypeOptional:(u,h)=>({type:"OPTIONAL",value:h(u.element),meta:{syntax:u.meta.position==="prefix"?"PREFIX_EQUAL_SIGN":"SUFFIX_EQUALS_SIGN"}}),JsdocTypeNullable:(u,h)=>({type:"NULLABLE",value:h(u.element),meta:{syntax:u.meta.position==="prefix"?"PREFIX_QUESTION_MARK":"SUFFIX_QUESTION_MARK"}}),JsdocTypeNotNullable:(u,h)=>({type:"NOT_NULLABLE",value:h(u.element),meta:{syntax:u.meta.position==="prefix"?"PREFIX_BANG":"SUFFIX_BANG"}}),JsdocTypeVariadic:(u,h)=>{let w={type:"VARIADIC",meta:{syntax:u.meta.position==="prefix"?"PREFIX_DOTS":u.meta.position==="suffix"?"SUFFIX_DOTS":"ONLY_DOTS"}};return u.element!==void 0&&(w.value=h(u.element)),w},JsdocTypeName:u=>({type:"NAME",name:u.value}),JsdocTypeTypeof:(u,h)=>({type:"TYPE_QUERY",name:h(u.element)}),JsdocTypeTuple:(u,h)=>({type:"TUPLE",entries:u.elements.map(h)}),JsdocTypeKeyof:(u,h)=>({type:"KEY_QUERY",value:h(u.element)}),JsdocTypeImport:u=>({type:"IMPORT",path:{type:"STRING_VALUE",quoteStyle:vt(u.element.meta.quote),string:u.element.value}}),JsdocTypeUndefined:()=>({type:"NAME",name:"undefined"}),JsdocTypeAny:()=>({type:"ANY"}),JsdocTypeFunction:(u,h)=>{let w=rn(u),C={type:u.arrow?"ARROW":"FUNCTION",params:w.params.map(U=>{if(U.type==="JsdocTypeKeyValue"){if(U.right===void 0)throw new Error("Function parameter without ':' is not expected to be 'KEY_VALUE'");return{type:"NAMED_PARAMETER",name:U.key,typeName:h(U.right)}}else return h(U)}),new:null,returns:null};return w.this!==void 0?C.this=h(w.this):u.arrow||(C.this=null),w.new!==void 0&&(C.new=h(w.new)),u.returnType!==void 0&&(C.returns=h(u.returnType)),C},JsdocTypeGeneric:(u,h)=>{let w={type:"GENERIC",subject:h(u.left),objects:u.elements.map(h),meta:{syntax:u.meta.brackets==="square"?"SQUARE_BRACKET":u.meta.dot?"ANGLE_BRACKET_WITH_DOT":"ANGLE_BRACKET"}};return u.meta.brackets==="square"&&u.elements[0].type==="JsdocTypeFunction"&&!u.elements[0].parenthesis&&(w.objects[0]={type:"NAME",name:"function"}),w},JsdocTypeObjectField:(u,h)=>{if(typeof u.key!="string")throw new Error("Index signatures and mapped types are not supported");if(u.right===void 0)return{type:"RECORD_ENTRY",key:u.key,quoteStyle:vt(u.meta.quote),value:null,readonly:!1};let w=h(u.right);return u.optional&&(w={type:"OPTIONAL",value:w,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:u.key.toString(),quoteStyle:vt(u.meta.quote),value:w,readonly:!1}},JsdocTypeJsdocObjectField:()=>{throw new Error("Keys may not be typed in jsdoctypeparser.")},JsdocTypeKeyValue:(u,h)=>{if(u.right===void 0)return{type:"RECORD_ENTRY",key:u.key,quoteStyle:"none",value:null,readonly:!1};let w=h(u.right);return u.optional&&(w={type:"OPTIONAL",value:w,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:u.key,quoteStyle:"none",value:w,readonly:!1}},JsdocTypeObject:(u,h)=>{let w=[];for(let C of u.elements)(C.type==="JsdocTypeObjectField"||C.type==="JsdocTypeJsdocObjectField")&&w.push(h(C));return{type:"RECORD",entries:w}},JsdocTypeSpecialNamePath:u=>{if(u.specialType!=="module")throw new Error(`jsdoctypeparser does not support type ${u.specialType} at this point.`);return{type:"MODULE",value:{type:"FILE_PATH",quoteStyle:vt(u.meta.quote),path:u.value}}},JsdocTypeNamePath:(u,h)=>{let w=!1,C,U;u.right.type==="JsdocTypeSpecialNamePath"&&u.right.specialType==="event"?(w=!0,C=u.right.value,U=vt(u.right.meta.quote)):(C=u.right.value,U=vt(u.right.meta.quote));let W={type:Al(u.pathType),owner:h(u.left),name:C,quoteStyle:U,hasEventPrefix:w};if(W.owner.type==="MODULE"){let Z=W.owner;return W.owner=W.owner.value,Z.value=W,Z}else return W},JsdocTypeUnion:(u,h)=>nn("UNION",u.elements.map(h)),JsdocTypeParenthesis:(u,h)=>({type:"PARENTHESIS",value:h(E(u.element))}),JsdocTypeNull:()=>({type:"NAME",name:"null"}),JsdocTypeUnknown:()=>({type:"UNKNOWN"}),JsdocTypeStringValue:u=>({type:"STRING_VALUE",quoteStyle:vt(u.meta.quote),string:u.value}),JsdocTypeIntersection:(u,h)=>nn("INTERSECTION",u.elements.map(h)),JsdocTypeNumber:u=>({type:"NUMBER_VALUE",number:u.value.toString()}),JsdocTypeSymbol:pe,JsdocTypeProperty:pe,JsdocTypePredicate:pe,JsdocTypeMappedType:pe,JsdocTypeIndexSignature:pe,JsdocTypeAsserts:pe,JsdocTypeReadonlyArray:pe,JsdocTypeAssertsPlain:pe,JsdocTypeConditional:pe,JsdocTypeTypeParameter:pe};function Rl(u){return xt(Ol,u)}function Cl(){return{JsdocTypeIntersection:(u,h)=>({type:"JsdocTypeIntersection",elements:u.elements.map(h)}),JsdocTypeGeneric:(u,h)=>({type:"JsdocTypeGeneric",left:h(u.left),elements:u.elements.map(h),meta:{dot:u.meta.dot,brackets:u.meta.brackets}}),JsdocTypeNullable:u=>u,JsdocTypeUnion:(u,h)=>({type:"JsdocTypeUnion",elements:u.elements.map(h)}),JsdocTypeUnknown:u=>u,JsdocTypeUndefined:u=>u,JsdocTypeTypeof:(u,h)=>({type:"JsdocTypeTypeof",element:h(u.element)}),JsdocTypeSymbol:(u,h)=>{let w={type:"JsdocTypeSymbol",value:u.value};return u.element!==void 0&&(w.element=h(u.element)),w},JsdocTypeOptional:(u,h)=>({type:"JsdocTypeOptional",element:h(u.element),meta:{position:u.meta.position}}),JsdocTypeObject:(u,h)=>({type:"JsdocTypeObject",meta:{separator:"comma"},elements:u.elements.map(h)}),JsdocTypeNumber:u=>u,JsdocTypeNull:u=>u,JsdocTypeNotNullable:(u,h)=>({type:"JsdocTypeNotNullable",element:h(u.element),meta:{position:u.meta.position}}),JsdocTypeSpecialNamePath:u=>u,JsdocTypeObjectField:(u,h)=>({type:"JsdocTypeObjectField",key:u.key,right:u.right===void 0?void 0:h(u.right),optional:u.optional,readonly:u.readonly,meta:u.meta}),JsdocTypeJsdocObjectField:(u,h)=>({type:"JsdocTypeJsdocObjectField",left:h(u.left),right:h(u.right)}),JsdocTypeKeyValue:(u,h)=>({type:"JsdocTypeKeyValue",key:u.key,right:u.right===void 0?void 0:h(u.right),optional:u.optional,variadic:u.variadic}),JsdocTypeImport:(u,h)=>({type:"JsdocTypeImport",element:h(u.element)}),JsdocTypeAny:u=>u,JsdocTypeStringValue:u=>u,JsdocTypeNamePath:u=>u,JsdocTypeVariadic:(u,h)=>{let w={type:"JsdocTypeVariadic",meta:{position:u.meta.position,squareBrackets:u.meta.squareBrackets}};return u.element!==void 0&&(w.element=h(u.element)),w},JsdocTypeTuple:(u,h)=>({type:"JsdocTypeTuple",elements:u.elements.map(h)}),JsdocTypeName:u=>u,JsdocTypeFunction:(u,h)=>{let w={type:"JsdocTypeFunction",arrow:u.arrow,parameters:u.parameters.map(h),constructor:u.constructor,parenthesis:u.parenthesis};return u.returnType!==void 0&&(w.returnType=h(u.returnType)),w},JsdocTypeKeyof:(u,h)=>({type:"JsdocTypeKeyof",element:h(u.element)}),JsdocTypeParenthesis:(u,h)=>({type:"JsdocTypeParenthesis",element:h(u.element)}),JsdocTypeProperty:u=>u,JsdocTypePredicate:(u,h)=>({type:"JsdocTypePredicate",left:h(u.left),right:h(u.right)}),JsdocTypeIndexSignature:(u,h)=>({type:"JsdocTypeIndexSignature",key:u.key,right:h(u.right)}),JsdocTypeMappedType:(u,h)=>({type:"JsdocTypeMappedType",key:u.key,right:h(u.right)}),JsdocTypeAsserts:(u,h)=>({type:"JsdocTypeAsserts",left:h(u.left),right:h(u.right)}),JsdocTypeReadonlyArray:(u,h)=>({type:"JsdocTypeReadonlyArray",element:h(u.element)}),JsdocTypeAssertsPlain:(u,h)=>({type:"JsdocTypeAssertsPlain",element:h(u.element)}),JsdocTypeConditional:(u,h)=>({type:"JsdocTypeConditional",checksType:h(u.checksType),extendsType:h(u.extendsType),trueType:h(u.trueType),falseType:h(u.falseType)}),JsdocTypeTypeParameter:(u,h)=>({type:"JsdocTypeTypeParameter",name:h(u.name),constraint:u.constraint!==void 0?h(u.constraint):void 0,defaultValue:u.defaultValue!==void 0?h(u.defaultValue):void 0})}}let Bo={JsdocTypeAny:[],JsdocTypeFunction:["parameters","returnType"],JsdocTypeGeneric:["left","elements"],JsdocTypeImport:[],JsdocTypeIndexSignature:["right"],JsdocTypeIntersection:["elements"],JsdocTypeKeyof:["element"],JsdocTypeKeyValue:["right"],JsdocTypeMappedType:["right"],JsdocTypeName:[],JsdocTypeNamePath:["left","right"],JsdocTypeNotNullable:["element"],JsdocTypeNull:[],JsdocTypeNullable:["element"],JsdocTypeNumber:[],JsdocTypeObject:["elements"],JsdocTypeObjectField:["right"],JsdocTypeJsdocObjectField:["left","right"],JsdocTypeOptional:["element"],JsdocTypeParenthesis:["element"],JsdocTypeSpecialNamePath:[],JsdocTypeStringValue:[],JsdocTypeSymbol:["element"],JsdocTypeTuple:["elements"],JsdocTypeTypeof:["element"],JsdocTypeUndefined:[],JsdocTypeUnion:["elements"],JsdocTypeUnknown:[],JsdocTypeVariadic:["element"],JsdocTypeProperty:[],JsdocTypePredicate:["left","right"],JsdocTypeAsserts:["left","right"],JsdocTypeReadonlyArray:["element"],JsdocTypeAssertsPlain:["element"],JsdocTypeConditional:["checksType","extendsType","trueType","falseType"],JsdocTypeTypeParameter:["name","constraint","defaultValue"]};function on(u,h,w,C,U){C?.(u,h,w);let W=Bo[u.type];for(let Z of W){let fe=u[Z];if(fe!==void 0)if(Array.isArray(fe))for(let me of fe)on(me,u,Z,C,U);else on(fe,u,Z,C,U)}U?.(u,h,w)}function Pl(u,h,w){on(u,void 0,void 0,h,w)}r.catharsisTransform=Sl,r.identityTransformRules=Cl,r.jtpTransform=Rl,r.parse=tn,r.stringify=Mr,r.stringifyRules=ee,r.transform=xt,r.traverse=Pl,r.tryParse=Fo,r.visitorKeys=Bo}))}}),LC=M({"../../node_modules/browser-dtector/browser-dtector.umd.min.js"(e,t){(function(r,n){typeof e=="object"&&typeof t<"u"?t.exports=n():typeof define=="function"&&define.amd?define(n):(r=typeof globalThis<"u"?globalThis:r||self).BrowserDetector=n()})(e,(function(){function r(c,l){for(var d=0;d<l.length;d++){var p=l[d];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(c,(f=p.key,m=void 0,typeof(m=(function(y,g){if(typeof y!="object"||y===null)return y;var v=y[Symbol.toPrimitive];if(v!==void 0){var b=v.call(y,g);if(typeof b!="object")return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(y)})(f,"string"))=="symbol"?m:String(m)),p)}var f,m}var n={chrome:"Google Chrome",brave:"Brave",crios:"Google Chrome",edge:"Microsoft Edge",edg:"Microsoft Edge",edgios:"Microsoft Edge",fennec:"Mozilla Firefox",jsdom:"JsDOM",mozilla:"Mozilla Firefox",fxios:"Mozilla Firefox",msie:"Microsoft Internet Explorer",opera:"Opera",opios:"Opera",opr:"Opera",opt:"Opera",rv:"Microsoft Internet Explorer",safari:"Safari",samsungbrowser:"Samsung Browser",electron:"Electron"},o={android:"Android",androidTablet:"Android Tablet",cros:"Chrome OS",fennec:"Android Tablet",ipad:"IPad",iphone:"IPhone",jsdom:"JsDOM",linux:"Linux",mac:"Macintosh",tablet:"Android Tablet",win:"Windows","windows phone":"Windows Phone",xbox:"Microsoft Xbox"},i=function(c){var l=new RegExp("^-?\\d+(?:.\\d{0,".concat(arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1,"})?")),d=Number(c).toString().match(l);return d?d[0]:null},a=function(){return typeof window<"u"?window.navigator:null},s=(function(){function c(f){var m;(function(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")})(this,c),this.userAgent=f||((m=a())===null||m===void 0?void 0:m.userAgent)||null}var l,d,p;return l=c,d=[{key:"parseUserAgent",value:function(f){var m,y,g,v={},b=f||this.userAgent||"",T=b.toLowerCase().replace(/\s\s+/g," "),A=/(edge)\/([\w.]+)/.exec(T)||/(edg)[/]([\w.]+)/.exec(T)||/(opr)[/]([\w.]+)/.exec(T)||/(opt)[/]([\w.]+)/.exec(T)||/(fxios)[/]([\w.]+)/.exec(T)||/(edgios)[/]([\w.]+)/.exec(T)||/(jsdom)[/]([\w.]+)/.exec(T)||/(samsungbrowser)[/]([\w.]+)/.exec(T)||/(electron)[/]([\w.]+)/.exec(T)||/(chrome)[/]([\w.]+)/.exec(T)||/(crios)[/]([\w.]+)/.exec(T)||/(opios)[/]([\w.]+)/.exec(T)||/(version)(applewebkit)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(T)||/(webkit)[/]([\w.]+).*(version)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(T)||/(applewebkit)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(T)||/(webkit)[/]([\w.]+)/.exec(T)||/(opera)(?:.*version|)[/]([\w.]+)/.exec(T)||/(msie) ([\w.]+)/.exec(T)||/(fennec)[/]([\w.]+)/.exec(T)||T.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(T)||T.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(T)||[],R=/(ipad)/.exec(T)||/(ipod)/.exec(T)||/(iphone)/.exec(T)||/(jsdom)/.exec(T)||/(windows phone)/.exec(T)||/(xbox)/.exec(T)||/(win)/.exec(T)||/(tablet)/.exec(T)||/(android)/.test(T)&&/(mobile)/.test(T)===!1&&["androidTablet"]||/(android)/.exec(T)||/(mac)/.exec(T)||/(linux)/.exec(T)||/(cros)/.exec(T)||[],P=A[5]||A[3]||A[1]||null,E=R[0]||null,_=A[4]||A[2]||null,x=a();P==="chrome"&&typeof(x==null||(m=x.brave)===null||m===void 0?void 0:m.isBrave)=="function"&&(P="brave"),P&&(v[P]=!0),E&&(v[E]=!0);var S=!!(v.tablet||v.android||v.androidTablet),F=!!(v.ipad||v.tablet||v.androidTablet),j=!!(v.android||v.androidTablet||v.tablet||v.ipad||v.ipod||v.iphone||v["windows phone"]),J=!!(v.cros||v.mac||v.linux||v.win),N=!!(v.brave||v.chrome||v.crios||v.opr||v.safari||v.edg||v.electron),O=!!(v.msie||v.rv);return{name:(y=n[P])!==null&&y!==void 0?y:null,platform:(g=o[E])!==null&&g!==void 0?g:null,userAgent:b,version:_,shortVersion:_?i(parseFloat(_),2):null,isAndroid:S,isTablet:F,isMobile:j,isDesktop:J,isWebkit:N,isIE:O}}},{key:"getBrowserInfo",value:function(){var f=this.parseUserAgent();return{name:f.name,platform:f.platform,userAgent:f.userAgent,version:f.version,shortVersion:f.shortVersion}}}],p=[{key:"VERSION",get:function(){return"3.4.0"}}],d&&r(l.prototype,d),p&&r(l,p),Object.defineProperty(l,"prototype",{writable:!1}),c})();return s}))}}),sd={};Tt(sd,{ARGTYPES_INFO_REQUEST:()=>eb,ARGTYPES_INFO_RESPONSE:()=>Mu,CHANNEL_CREATED:()=>$C,CHANNEL_WS_DISCONNECT:()=>kg,CONFIG_ERROR:()=>jg,CREATE_NEW_STORYFILE_REQUEST:()=>BC,CREATE_NEW_STORYFILE_RESPONSE:()=>UC,CURRENT_STORY_WAS_SET:()=>Ru,DOCS_PREPARED:()=>qg,DOCS_RENDERED:()=>ud,FILE_COMPONENT_SEARCH_REQUEST:()=>HC,FILE_COMPONENT_SEARCH_RESPONSE:()=>JC,FORCE_REMOUNT:()=>Wa,FORCE_RE_RENDER:()=>cd,GHOST_STORIES_REQUEST:()=>uP,GHOST_STORIES_RESPONSE:()=>cP,GLOBALS_UPDATED:()=>hi,MANAGER_INERT_ATTRIBUTE_CHANGED:()=>tb,NAVIGATE_URL:()=>VC,OPEN_IN_EDITOR_REQUEST:()=>dP,OPEN_IN_EDITOR_RESPONSE:()=>pP,PLAY_FUNCTION_THREW_EXCEPTION:()=>Dg,PRELOAD_ENTRIES:()=>Fg,PREVIEW_BUILDER_PROGRESS:()=>zC,PREVIEW_INITIALIZED:()=>$g,PREVIEW_KEYDOWN:()=>Bg,REGISTER_SUBSCRIPTION:()=>GC,REQUEST_WHATS_NEW_DATA:()=>nP,RESET_STORY_ARGS:()=>dd,RESULT_WHATS_NEW_DATA:()=>oP,SAVE_STORY_REQUEST:()=>sP,SAVE_STORY_RESPONSE:()=>lP,SELECT_STORY:()=>WC,SET_CONFIG:()=>KC,SET_CURRENT_STORY:()=>pd,SET_FILTER:()=>YC,SET_GLOBALS:()=>Ug,SET_INDEX:()=>XC,SET_STORIES:()=>QC,SET_WHATS_NEW_CACHE:()=>iP,SHARED_STATE_CHANGED:()=>ZC,SHARED_STATE_SET:()=>eP,SHARE_ISOLATE_MODE:()=>mP,SHARE_POPOVER_OPENED:()=>hP,SHARE_STORY_LINK:()=>fP,STORIES_COLLAPSE_ALL:()=>tP,STORIES_EXPAND_ALL:()=>rP,STORY_ARGS_UPDATED:()=>Hg,STORY_CHANGED:()=>Jg,STORY_ERRORED:()=>Vg,STORY_FINISHED:()=>Pu,STORY_HOT_UPDATED:()=>Xg,STORY_INDEX_INVALIDATED:()=>zg,STORY_MISSING:()=>Cu,STORY_PREPARED:()=>Gg,STORY_RENDERED:()=>Ka,STORY_RENDER_PHASE_CHANGED:()=>wn,STORY_SPECIFIED:()=>Wg,STORY_THREW_EXCEPTION:()=>Kg,STORY_UNCHANGED:()=>Yg,TELEMETRY_ERROR:()=>Zg,TOGGLE_WHATS_NEW_NOTIFICATIONS:()=>aP,UNHANDLED_ERRORS_WHILE_PLAYING:()=>Lg,UPDATE_GLOBALS:()=>fd,UPDATE_QUERY_PARAMS:()=>Qg,UPDATE_STORY_ARGS:()=>md,default:()=>FC});var ld=(e=>(e.CHANNEL_WS_DISCONNECT="channelWSDisconnect",e.CHANNEL_CREATED="channelCreated",e.CONFIG_ERROR="configError",e.STORY_INDEX_INVALIDATED="storyIndexInvalidated",e.STORY_SPECIFIED="storySpecified",e.SET_CONFIG="setConfig",e.SET_STORIES="setStories",e.SET_INDEX="setIndex",e.SET_CURRENT_STORY="setCurrentStory",e.CURRENT_STORY_WAS_SET="currentStoryWasSet",e.FORCE_RE_RENDER="forceReRender",e.FORCE_REMOUNT="forceRemount",e.PRELOAD_ENTRIES="preloadStories",e.STORY_PREPARED="storyPrepared",e.DOCS_PREPARED="docsPrepared",e.STORY_CHANGED="storyChanged",e.STORY_UNCHANGED="storyUnchanged",e.STORY_RENDERED="storyRendered",e.STORY_FINISHED="storyFinished",e.STORY_MISSING="storyMissing",e.STORY_ERRORED="storyErrored",e.STORY_THREW_EXCEPTION="storyThrewException",e.STORY_RENDER_PHASE_CHANGED="storyRenderPhaseChanged",e.STORY_HOT_UPDATED="storyHotUpdated",e.PLAY_FUNCTION_THREW_EXCEPTION="playFunctionThrewException",e.UNHANDLED_ERRORS_WHILE_PLAYING="unhandledErrorsWhilePlaying",e.UPDATE_STORY_ARGS="updateStoryArgs",e.STORY_ARGS_UPDATED="storyArgsUpdated",e.RESET_STORY_ARGS="resetStoryArgs",e.SET_FILTER="setFilter",e.SET_GLOBALS="setGlobals",e.UPDATE_GLOBALS="updateGlobals",e.GLOBALS_UPDATED="globalsUpdated",e.REGISTER_SUBSCRIPTION="registerSubscription",e.PREVIEW_INITIALIZED="previewInitialized",e.PREVIEW_KEYDOWN="previewKeydown",e.PREVIEW_BUILDER_PROGRESS="preview_builder_progress",e.SELECT_STORY="selectStory",e.STORIES_COLLAPSE_ALL="storiesCollapseAll",e.STORIES_EXPAND_ALL="storiesExpandAll",e.DOCS_RENDERED="docsRendered",e.SHARED_STATE_CHANGED="sharedStateChanged",e.SHARED_STATE_SET="sharedStateSet",e.NAVIGATE_URL="navigateUrl",e.UPDATE_QUERY_PARAMS="updateQueryParams",e.REQUEST_WHATS_NEW_DATA="requestWhatsNewData",e.RESULT_WHATS_NEW_DATA="resultWhatsNewData",e.SET_WHATS_NEW_CACHE="setWhatsNewCache",e.TOGGLE_WHATS_NEW_NOTIFICATIONS="toggleWhatsNewNotifications",e.TELEMETRY_ERROR="telemetryError",e.FILE_COMPONENT_SEARCH_REQUEST="fileComponentSearchRequest",e.FILE_COMPONENT_SEARCH_RESPONSE="fileComponentSearchResponse",e.SAVE_STORY_REQUEST="saveStoryRequest",e.SAVE_STORY_RESPONSE="saveStoryResponse",e.ARGTYPES_INFO_REQUEST="argtypesInfoRequest",e.ARGTYPES_INFO_RESPONSE="argtypesInfoResponse",e.CREATE_NEW_STORYFILE_REQUEST="createNewStoryfileRequest",e.CREATE_NEW_STORYFILE_RESPONSE="createNewStoryfileResponse",e.GHOST_STORIES_REQUEST="ghostStoriesRequest",e.GHOST_STORIES_RESPONSE="ghostStoriesResponse",e.OPEN_IN_EDITOR_REQUEST="openInEditorRequest",e.OPEN_IN_EDITOR_RESPONSE="openInEditorResponse",e.MANAGER_INERT_ATTRIBUTE_CHANGED="managerInertAttributeChanged",e.SHARE_STORY_LINK="shareStoryLink",e.SHARE_ISOLATE_MODE="shareIsolateMode",e.SHARE_POPOVER_OPENED="sharePopoverOpened",e))(ld||{}),FC=ld,{CHANNEL_WS_DISCONNECT:kg,CHANNEL_CREATED:$C,CONFIG_ERROR:jg,CREATE_NEW_STORYFILE_REQUEST:BC,CREATE_NEW_STORYFILE_RESPONSE:UC,CURRENT_STORY_WAS_SET:Ru,DOCS_PREPARED:qg,DOCS_RENDERED:ud,FILE_COMPONENT_SEARCH_REQUEST:HC,FILE_COMPONENT_SEARCH_RESPONSE:JC,FORCE_RE_RENDER:cd,FORCE_REMOUNT:Wa,GLOBALS_UPDATED:hi,NAVIGATE_URL:VC,PLAY_FUNCTION_THREW_EXCEPTION:Dg,UNHANDLED_ERRORS_WHILE_PLAYING:Lg,PRELOAD_ENTRIES:Fg,PREVIEW_INITIALIZED:$g,PREVIEW_BUILDER_PROGRESS:zC,PREVIEW_KEYDOWN:Bg,REGISTER_SUBSCRIPTION:GC,RESET_STORY_ARGS:dd,SELECT_STORY:WC,SET_CONFIG:KC,SET_CURRENT_STORY:pd,SET_FILTER:YC,SET_GLOBALS:Ug,SET_INDEX:XC,SET_STORIES:QC,SHARED_STATE_CHANGED:ZC,SHARED_STATE_SET:eP,STORIES_COLLAPSE_ALL:tP,STORIES_EXPAND_ALL:rP,STORY_ARGS_UPDATED:Hg,STORY_CHANGED:Jg,STORY_ERRORED:Vg,STORY_INDEX_INVALIDATED:zg,STORY_MISSING:Cu,STORY_PREPARED:Gg,STORY_RENDER_PHASE_CHANGED:wn,STORY_RENDERED:Ka,STORY_FINISHED:Pu,STORY_SPECIFIED:Wg,STORY_THREW_EXCEPTION:Kg,STORY_UNCHANGED:Yg,STORY_HOT_UPDATED:Xg,UPDATE_GLOBALS:fd,UPDATE_QUERY_PARAMS:Qg,UPDATE_STORY_ARGS:md,REQUEST_WHATS_NEW_DATA:nP,RESULT_WHATS_NEW_DATA:oP,SET_WHATS_NEW_CACHE:iP,TOGGLE_WHATS_NEW_NOTIFICATIONS:aP,TELEMETRY_ERROR:Zg,SAVE_STORY_REQUEST:sP,SAVE_STORY_RESPONSE:lP,ARGTYPES_INFO_REQUEST:eb,ARGTYPES_INFO_RESPONSE:Mu,GHOST_STORIES_REQUEST:uP,GHOST_STORIES_RESPONSE:cP,OPEN_IN_EDITOR_REQUEST:dP,OPEN_IN_EDITOR_RESPONSE:pP,MANAGER_INERT_ATTRIBUTE_CHANGED:tb,SHARE_STORY_LINK:fP,SHARE_ISOLATE_MODE:mP,SHARE_POPOVER_OPENED:hP}=ld,rb={};Tt(rb,{global:()=>re});var re=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof global<"u"?e=global:typeof self<"u"?e=self:e={},e})(),nb={"@storybook/global":"__STORYBOOK_MODULE_GLOBAL__","storybook/test":"__STORYBOOK_MODULE_TEST__","storybook/actions":"__STORYBOOK_MODULE_ACTIONS__","storybook/preview-api":"__STORYBOOK_MODULE_PREVIEW_API__","storybook/internal/channels":"__STORYBOOK_MODULE_CHANNELS__","storybook/internal/client-logger":"__STORYBOOK_MODULE_CLIENT_LOGGER__","storybook/internal/core-events":"__STORYBOOK_MODULE_CORE_EVENTS__","storybook/internal/preview-errors":"__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__","storybook/internal/types":"__STORYBOOK_MODULE_TYPES__","storybook/internal/preview-api":"__STORYBOOK_MODULE_PREVIEW_API__"},yP=Object.keys(nb),ob={};Tt(ob,{Channel:()=>js,HEARTBEAT_INTERVAL:()=>Rb,HEARTBEAT_MAX_LATENCY:()=>Cb,PostMessageTransport:()=>Ob,WebsocketTransport:()=>Pb,createBrowserChannel:()=>PN,default:()=>CN});function xe(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var o=n.reduce(function(s,c){var l=c.match(/\n([\t ]+|(?!\s).)/g);return l?s.concat(l.map(function(d){var p,f;return(f=(p=d.match(/[\t ]/g))===null||p===void 0?void 0:p.length)!==null&&f!==void 0?f:0})):s},[]);if(o.length){var i=new RegExp(`
23
- [ ]{`+Math.min.apply(Math,o)+"}","g");n=n.map(function(s){return s.replace(i,`
24
- `)})}n[0]=n[0].replace(/^\r?\n/,"");var a=n[0];return t.forEach(function(s,c){var l=a.match(/(?:^|\n)( *)$/),d=l?l[1]:"",p=s;typeof s=="string"&&s.includes(`
25
- `)&&(p=String(s).split(`
26
- `).map(function(f,m){return m===0?f:""+d+f}).join(`
27
- `)),a+=p+n[c+1]}),a}var Rf=new Map,gP="UNIVERSAL_STORE:",kt={PENDING:"PENDING",RESOLVED:"RESOLVED",REJECTED:"REJECTED"},dn=class be{constructor(t,r){if(this.debugging=!1,this.listeners=new Map([["*",new Set]]),this.getState=()=>(this.debug("getState",{state:this.state}),this.state),this.subscribe=(n,o)=>{let i=typeof n=="function",a=i?"*":n,s=i?n:o;if(this.debug("subscribe",{eventType:a,listener:s}),!s)throw new TypeError(`Missing first subscribe argument, or second if first is the event type, when subscribing to a UniversalStore with id '${this.id}'`);return this.listeners.has(a)||this.listeners.set(a,new Set),this.listeners.get(a).add(s),()=>{this.debug("unsubscribe",{eventType:a,listener:s}),this.listeners.has(a)&&(this.listeners.get(a).delete(s),this.listeners.get(a)?.size===0&&this.listeners.delete(a))}},this.send=n=>{if(this.debug("send",{event:n}),this.status!==be.Status.READY)throw new TypeError(xe`Cannot send event before store is ready. You can get the current status with store.status,
28
- or await store.readyPromise to wait for the store to be ready before sending events.
29
- ${JSON.stringify({event:n,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.emitToListeners(n,{actor:this.actor}),this.emitToChannel(n,{actor:this.actor})},this.debugging=t.debug??!1,!be.isInternalConstructing)throw new TypeError("UniversalStore is not constructable - use UniversalStore.create() instead");if(be.isInternalConstructing=!1,this.id=t.id,this.actorId=Date.now().toString(36)+Math.random().toString(36).substring(2),this.actorType=t.leader?be.ActorType.LEADER:be.ActorType.FOLLOWER,this.state=t.initialState,this.channelEventName=`${gP}${this.id}`,this.debug("constructor",{options:t,environmentOverrides:r,channelEventName:this.channelEventName}),this.actor.type===be.ActorType.LEADER)this.syncing={state:kt.RESOLVED,promise:Promise.resolve()};else{let n,o,i=new Promise((a,s)=>{n=()=>{this.syncing.state===kt.PENDING&&(this.syncing.state=kt.RESOLVED,a())},o=c=>{this.syncing.state===kt.PENDING&&(this.syncing.state=kt.REJECTED,s(c))}});this.syncing={state:kt.PENDING,promise:i,resolve:n,reject:o}}this.getState=this.getState.bind(this),this.setState=this.setState.bind(this),this.subscribe=this.subscribe.bind(this),this.onStateChange=this.onStateChange.bind(this),this.send=this.send.bind(this),this.emitToChannel=this.emitToChannel.bind(this),this.prepareThis=this.prepareThis.bind(this),this.emitToListeners=this.emitToListeners.bind(this),this.handleChannelEvents=this.handleChannelEvents.bind(this),this.debug=this.debug.bind(this),this.channel=r?.channel??be.preparation.channel,this.environment=r?.environment??be.preparation.environment,this.channel&&this.environment?(be.preparation.resolve({channel:this.channel,environment:this.environment}),this.prepareThis({channel:this.channel,environment:this.environment})):be.preparation.promise.then(this.prepareThis)}static setupPreparationPromise(){let t,r,n=new Promise((o,i)=>{t=a=>{o(a)},r=(...a)=>{i(a)}});be.preparation={resolve:t,reject:r,promise:n}}get actor(){return Object.freeze({id:this.actorId,type:this.actorType,environment:this.environment??be.Environment.UNKNOWN})}get status(){if(!this.channel||!this.environment)return be.Status.UNPREPARED;switch(this.syncing?.state){case kt.PENDING:case void 0:return be.Status.SYNCING;case kt.REJECTED:return be.Status.ERROR;case kt.RESOLVED:default:return be.Status.READY}}untilReady(){return Promise.all([be.preparation.promise,this.syncing?.promise])}static create(t){if(!t||typeof t?.id!="string")throw new TypeError("id is required and must be a string, when creating a UniversalStore");t.debug&&console.debug(xe`[UniversalStore]
30
- create`,{options:t});let r=Rf.get(t.id);if(r)return console.warn(xe`UniversalStore with id "${t.id}" already exists in this environment, re-using existing.
31
- You should reuse the existing instance instead of trying to create a new one.`),r;be.isInternalConstructing=!0;let n=new be(t);return Rf.set(t.id,n),n}static __prepare(t,r){be.preparation.channel=t,be.preparation.environment=r,be.preparation.resolve({channel:t,environment:r})}setState(t){let r=this.state,n=typeof t=="function"?t(r):t;if(this.debug("setState",{newState:n,previousState:r,updater:t}),this.status!==be.Status.READY)throw new TypeError(xe`Cannot set state before store is ready. You can get the current status with store.status,
32
- or await store.readyPromise to wait for the store to be ready before sending events.
33
- ${JSON.stringify({newState:n,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.state=n;let o={type:be.InternalEventType.SET_STATE,payload:{state:n,previousState:r}};this.emitToChannel(o,{actor:this.actor}),this.emitToListeners(o,{actor:this.actor})}onStateChange(t){return this.debug("onStateChange",{listener:t}),this.subscribe(be.InternalEventType.SET_STATE,({payload:r},n)=>{t(r.state,r.previousState,n)})}emitToChannel(t,r){this.debug("emitToChannel",{event:t,eventInfo:r,channel:!!this.channel}),this.channel?.emit(this.channelEventName,{event:t,eventInfo:r})}prepareThis({channel:t,environment:r}){this.channel=t,this.environment=r,this.debug("prepared",{channel:!!t,environment:r}),this.channel.on(this.channelEventName,this.handleChannelEvents),this.actor.type===be.ActorType.LEADER?this.emitToChannel({type:be.InternalEventType.LEADER_CREATED},{actor:this.actor}):(this.emitToChannel({type:be.InternalEventType.FOLLOWER_CREATED},{actor:this.actor}),this.emitToChannel({type:be.InternalEventType.EXISTING_STATE_REQUEST},{actor:this.actor}),setTimeout(()=>{this.syncing.reject(new TypeError(`No existing state found for follower with id: '${this.id}'. Make sure a leader with the same id exists before creating a follower.`))},1e3))}emitToListeners(t,r){let n=this.listeners.get(t.type),o=this.listeners.get("*");this.debug("emitToListeners",{event:t,eventInfo:r,eventTypeListeners:n,everythingListeners:o}),[...n??[],...o??[]].forEach(i=>i(t,r))}handleChannelEvents(t){let{event:r,eventInfo:n}=t;if([n.actor.id,n.forwardingActor?.id].includes(this.actor.id)){this.debug("handleChannelEvents: Ignoring event from self",{channelEvent:t});return}else if(this.syncing?.state===kt.PENDING&&r.type!==be.InternalEventType.EXISTING_STATE_RESPONSE){this.debug("handleChannelEvents: Ignoring event while syncing",{channelEvent:t});return}if(this.debug("handleChannelEvents",{channelEvent:t}),this.actor.type===be.ActorType.LEADER){let o=!0;switch(r.type){case be.InternalEventType.EXISTING_STATE_REQUEST:o=!1;let i={type:be.InternalEventType.EXISTING_STATE_RESPONSE,payload:this.state};this.debug("handleChannelEvents: responding to existing state request",{responseEvent:i}),this.emitToChannel(i,{actor:this.actor}),this.emitToListeners(i,{actor:this.actor});break;case be.InternalEventType.LEADER_CREATED:o=!1,this.syncing.state=kt.REJECTED,this.debug("handleChannelEvents: erroring due to second leader being created",{event:r}),console.error(xe`Detected multiple UniversalStore leaders created with the same id "${this.id}".
34
- Only one leader can exists at a time, your stores are now in an invalid state.
35
- Leaders detected:
36
- this: ${JSON.stringify(this.actor,null,2)}
37
- other: ${JSON.stringify(n.actor,null,2)}`);break}o&&(this.debug("handleChannelEvents: forwarding event",{channelEvent:t}),this.emitToChannel(r,{actor:n.actor,forwardingActor:this.actor}))}if(this.actor.type===be.ActorType.FOLLOWER)switch(r.type){case be.InternalEventType.EXISTING_STATE_RESPONSE:if(this.debug("handleChannelEvents: Setting state from leader's existing state response",{event:r}),this.syncing?.state!==kt.PENDING)break;this.syncing.resolve?.();let o={type:be.InternalEventType.SET_STATE,payload:{state:r.payload,previousState:this.state}};this.state=r.payload,this.emitToListeners(o,n);break}switch(r.type){case be.InternalEventType.SET_STATE:this.debug("handleChannelEvents: Setting state",{event:r}),this.state=r.payload.state;break}this.emitToListeners(r,{actor:n.actor})}debug(t,r){this.debugging&&console.debug(xe`[UniversalStore::${this.id}::${this.environment??be.Environment.UNKNOWN}]
38
- ${t}`,JSON.stringify({data:r,actor:this.actor,state:this.state,status:this.status},null,2))}static __reset(){be.preparation.reject(new Error("reset")),be.setupPreparationPromise(),be.isInternalConstructing=!1}};dn.ActorType={LEADER:"LEADER",FOLLOWER:"FOLLOWER"},dn.Environment={SERVER:"SERVER",MANAGER:"MANAGER",PREVIEW:"PREVIEW",UNKNOWN:"UNKNOWN",MOCK:"MOCK"},dn.InternalEventType={EXISTING_STATE_REQUEST:"__EXISTING_STATE_REQUEST",EXISTING_STATE_RESPONSE:"__EXISTING_STATE_RESPONSE",SET_STATE:"__SET_STATE",LEADER_CREATED:"__LEADER_CREATED",FOLLOWER_CREATED:"__FOLLOWER_CREATED"},dn.Status={UNPREPARED:"UNPREPARED",SYNCING:"SYNCING",READY:"READY",ERROR:"ERROR"},dn.isInternalConstructing=!1,dn.setupPreparationPromise();var Ml=dn,bP=e=>e.transports!==void 0,vP=()=>Math.random().toString(16).slice(2),js=class{constructor(e={}){this.sender=vP(),this.events={},this.data={},this.transports=[],this.isAsync=e.async||!1,bP(e)?(this.transports=e.transports||[],this.transports.forEach(t=>{t.setHandler(r=>this.handleEvent(r))})):this.transports=e.transport?[e.transport]:[],this.transports.forEach(t=>{t.setHandler(r=>this.handleEvent(r))})}get hasTransport(){return this.transports.length>0}addListener(e,t){this.events[e]=this.events[e]||[],this.events[e].push(t)}emit(e,...t){let r={type:e,args:t,from:this.sender},n={};t.length>=1&&t[0]&&t[0].options&&(n=t[0].options);let o=()=>{this.transports.forEach(i=>{i.send(r,n)}),this.handleEvent(r)};this.isAsync?setImmediate(o):o()}last(e){return this.data[e]}eventNames(){return Object.keys(this.events)}listenerCount(e){let t=this.listeners(e);return t?t.length:0}listeners(e){return this.events[e]||void 0}once(e,t){let r=this.onceListener(e,t);this.addListener(e,r)}removeAllListeners(e){e?this.events[e]&&delete this.events[e]:this.events={}}removeListener(e,t){let r=this.listeners(e);r&&(this.events[e]=r.filter(n=>n!==t))}on(e,t){this.addListener(e,t)}off(e,t){this.removeListener(e,t)}handleEvent(e){let t=this.listeners(e.type);t&&t.length&&t.forEach(r=>{r.apply(e,e.args)}),this.data[e.type]=e.args}onceListener(e,t){let r=(...n)=>(this.removeListener(e,r),t(...n));return r}},ib={};Tt(ib,{deprecate:()=>hd,logger:()=>Fe,once:()=>Ge,pretty:()=>Pt});var{LOGLEVEL:EP}=re,Dr={trace:1,debug:2,info:3,warn:4,error:5,silent:10},wP=EP,qn=Dr[wP]||Dr.info,Fe={trace:(e,...t)=>{qn<=Dr.trace&&console.trace(e,...t)},debug:(e,...t)=>{qn<=Dr.debug&&console.debug(e,...t)},info:(e,...t)=>{qn<=Dr.info&&console.info(e,...t)},warn:(e,...t)=>{qn<=Dr.warn&&console.warn(e,...t)},error:(e,...t)=>{qn<=Dr.error&&console.error(e,...t)},log:(e,...t)=>{qn<Dr.silent&&console.log(e,...t)}},Nu=new Set,Ge=e=>(t,...r)=>{if(!Nu.has(t))return Nu.add(t),Fe[e](t,...r)};Ge.clear=()=>Nu.clear();Ge.trace=Ge("trace");Ge.debug=Ge("debug");Ge.info=Ge("info");Ge.warn=Ge("warn");Ge.error=Ge("error");Ge.log=Ge("log");var hd=Ge("warn"),Pt=e=>(...t)=>{let r=[];if(t.length){let n=/<span\s+style=(['"])([^'"]*)\1\s*>/gi,o=/<\/span>/gi,i;for(r.push(t[0].replace(n,"%c").replace(o,"%c"));i=n.exec(t[0]);)r.push(i[2]),r.push("");for(let a=1;a<t.length;a++)r.push(t[a])}Fe[e].apply(Fe,r)};Pt.trace=Pt("trace");Pt.debug=Pt("debug");Pt.info=Pt("info");Pt.warn=Pt("warn");Pt.error=Pt("error");var _P=Object.create,ab=Object.defineProperty,TP=Object.getOwnPropertyDescriptor,sb=Object.getOwnPropertyNames,xP=Object.getPrototypeOf,SP=Object.prototype.hasOwnProperty,we=(e,t)=>function(){return t||(0,e[sb(e)[0]])((t={exports:{}}).exports,t),t.exports},AP=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of sb(t))!SP.call(e,o)&&o!==r&&ab(e,o,{get:()=>t[o],enumerable:!(n=TP(t,o))||n.enumerable});return e},yd=(e,t,r)=>(r=e!=null?_P(xP(e)):{},AP(!e||!e.__esModule?ab(r,"default",{value:e,enumerable:!0}):r,e)),OP=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],RP=["detail"];function CP(e){let t=OP.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(let r of RP.filter(n=>e[n]!==void 0))t[r]=e[r];return t}var lb=we({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),PP=we({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),MP=we({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),NP=we({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),IP=we({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),kP=we({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),gd=we({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),jP=we({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),qP=we({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),DP=we({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),LP=we({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),FP=we({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),$P=we({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),BP=we({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),UP=we({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e,t){t.exports=Number.isNaN||function(r){return r!==r}}}),HP=we({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=UP();t.exports=function(n){return r(n)||n===0?n:n<0?-1:1}}}),JP=we({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),bd=we({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=JP();if(r)try{r([],"length")}catch{r=null}t.exports=r}}),VP=we({"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(e,t){var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}t.exports=r}}),ub=we({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var i=42;r[n]=i;for(var a in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var s=Object.getOwnPropertySymbols(r);if(s.length!==1||s[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(r,n);if(c.value!==i||c.enumerable!==!0)return!1}return!0}}}),cb=we({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=ub();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),db=we({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}}),pb=we({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=lb();t.exports=r.getPrototypeOf||null}}),zP=we({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,o=Math.max,i="[object Function]",a=function(l,d){for(var p=[],f=0;f<l.length;f+=1)p[f]=l[f];for(var m=0;m<d.length;m+=1)p[m+l.length]=d[m];return p},s=function(l,d){for(var p=[],f=d,m=0;f<l.length;f+=1,m+=1)p[m]=l[f];return p},c=function(l,d){for(var p="",f=0;f<l.length;f+=1)p+=l[f],f+1<l.length&&(p+=d);return p};t.exports=function(l){var d=this;if(typeof d!="function"||n.apply(d)!==i)throw new TypeError(r+d);for(var p=s(arguments,1),f,m=function(){if(this instanceof f){var T=d.apply(this,a(p,arguments));return Object(T)===T?T:this}return d.apply(l,a(p,arguments))},y=o(0,d.length-p.length),g=[],v=0;v<y;v++)g[v]="$"+v;if(f=Function("binder","return function ("+c(g,",")+"){ return binder.apply(this,arguments); }")(m),d.prototype){var b=function(){};b.prototype=d.prototype,f.prototype=new b,b.prototype=null}return f}}}),qs=we({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var r=zP();t.exports=Function.prototype.bind||r}}),vd=we({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(e,t){t.exports=Function.prototype.call}}),fb=we({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(e,t){t.exports=Function.prototype.apply}}),GP=we({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}}),WP=we({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var r=qs(),n=fb(),o=vd(),i=GP();t.exports=i||r.call(o,n)}}),mb=we({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var r=qs(),n=gd(),o=vd(),i=WP();t.exports=function(a){if(a.length<1||typeof a[0]!="function")throw new n("a function is required");return i(r,o,a)}}}),KP=we({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var r=mb(),n=bd(),o;try{o=[].__proto__===Array.prototype}catch(c){if(!c||typeof c!="object"||!("code"in c)||c.code!=="ERR_PROTO_ACCESS")throw c}var i=!!o&&n&&n(Object.prototype,"__proto__"),a=Object,s=a.getPrototypeOf;t.exports=i&&typeof i.get=="function"?r([i.get]):typeof s=="function"?(function(c){return s(c==null?c:a(c))}):!1}}),YP=we({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var r=db(),n=pb(),o=KP();t.exports=r?function(i){return r(i)}:n?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return n(i)}:o?function(i){return o(i)}:null}}),hb=we({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,o=qs();t.exports=o.call(r,n)}}),XP=we({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var r,n=lb(),o=PP(),i=MP(),a=NP(),s=IP(),c=kP(),l=gd(),d=jP(),p=qP(),f=DP(),m=LP(),y=FP(),g=$P(),v=BP(),b=HP(),T=Function,A=function(te){try{return T('"use strict"; return ('+te+").constructor;")()}catch{}},R=bd(),P=VP(),E=function(){throw new l},_=R?(function(){try{return arguments.callee,E}catch{try{return R(arguments,"callee").get}catch{return E}}})():E,x=cb()(),S=YP(),F=pb(),j=db(),J=fb(),N=vd(),O={},q=typeof Uint8Array>"u"||!S?r:S(Uint8Array),$={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":x&&S?S([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":O,"%AsyncGenerator%":O,"%AsyncGeneratorFunction%":O,"%AsyncIteratorPrototype%":O,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":T,"%GeneratorFunction%":O,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":x&&S?S(S([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!x||!S?r:S(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":R,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!x||!S?r:S(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":x&&S?S(""[Symbol.iterator]()):r,"%Symbol%":x?Symbol:r,"%SyntaxError%":c,"%ThrowTypeError%":_,"%TypedArray%":q,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":d,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":N,"%Function.prototype.apply%":J,"%Object.defineProperty%":P,"%Object.getPrototypeOf%":F,"%Math.abs%":p,"%Math.floor%":f,"%Math.max%":m,"%Math.min%":y,"%Math.pow%":g,"%Math.round%":v,"%Math.sign%":b,"%Reflect.getPrototypeOf%":j};if(S)try{null.error}catch(te){V=S(S(te)),$["%Error.prototype%"]=V}var V,Y=function te(ne){var ae;if(ne==="%AsyncFunction%")ae=A("async function () {}");else if(ne==="%GeneratorFunction%")ae=A("function* () {}");else if(ne==="%AsyncGeneratorFunction%")ae=A("async function* () {}");else if(ne==="%AsyncGenerator%"){var ce=te("%AsyncGeneratorFunction%");ce&&(ae=ce.prototype)}else if(ne==="%AsyncIteratorPrototype%"){var de=te("%AsyncGenerator%");de&&S&&(ae=S(de.prototype))}return $[ne]=ae,ae},oe={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ue=qs(),D=hb(),L=ue.call(N,Array.prototype.concat),G=ue.call(J,Array.prototype.splice),Q=ue.call(N,String.prototype.replace),X=ue.call(N,String.prototype.slice),K=ue.call(N,RegExp.prototype.exec),ie=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,se=/\\(\\)?/g,Te=function(te){var ne=X(te,0,1),ae=X(te,-1);if(ne==="%"&&ae!=="%")throw new c("invalid intrinsic syntax, expected closing `%`");if(ae==="%"&&ne!=="%")throw new c("invalid intrinsic syntax, expected opening `%`");var ce=[];return Q(te,ie,function(de,ye,Ee,Ue){ce[ce.length]=Ee?Q(Ue,se,"$1"):ye||de}),ce},B=function(te,ne){var ae=te,ce;if(D(oe,ae)&&(ce=oe[ae],ae="%"+ce[0]+"%"),D($,ae)){var de=$[ae];if(de===O&&(de=Y(ae)),typeof de>"u"&&!ne)throw new l("intrinsic "+te+" exists, but is not available. Please file an issue!");return{alias:ce,name:ae,value:de}}throw new c("intrinsic "+te+" does not exist!")};t.exports=function(te,ne){if(typeof te!="string"||te.length===0)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ne!="boolean")throw new l('"allowMissing" argument must be a boolean');if(K(/^%?[^%]*%?$/,te)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var ae=Te(te),ce=ae.length>0?ae[0]:"",de=B("%"+ce+"%",ne),ye=de.name,Ee=de.value,Ue=!1,gt=de.alias;gt&&(ce=gt[0],G(ae,L([0,1],gt)));for(var ut=1,bt=!0;ut<ae.length;ut+=1){var ot=ae[ut],Xt=X(ot,0,1),It=X(ot,-1);if((Xt==='"'||Xt==="'"||Xt==="`"||It==='"'||It==="'"||It==="`")&&Xt!==It)throw new c("property names with quotes must have matching quotes");if((ot==="constructor"||!bt)&&(Ue=!0),ce+="."+ot,ye="%"+ce+"%",D($,ye))Ee=$[ye];else if(Ee!=null){if(!(ot in Ee)){if(!ne)throw new l("base intrinsic for "+te+" exists, but the property is not available.");return}if(R&&ut+1>=ae.length){var Qt=R(Ee,ot);bt=!!Qt,bt&&"get"in Qt&&!("originalValue"in Qt.get)?Ee=Qt.get:Ee=Ee[ot]}else bt=D(Ee,ot),Ee=Ee[ot];bt&&!Ue&&($[ye]=Ee)}}return Ee}}}),Ed=we({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=XP(),n=mb(),o=n([r("%String.prototype.indexOf%")]);t.exports=function(i,a){var s=r(i,!!a);return typeof s=="function"&&o(i,".prototype.")>-1?n([s]):s}}}),QP=we({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=ub();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),yb=we({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=Ed(),n=QP()(),o=hb(),i=bd(),a;n?(s=r("RegExp.prototype.exec"),c={},l=function(){throw c},d={toString:l,valueOf:l},typeof Symbol.toPrimitive=="symbol"&&(d[Symbol.toPrimitive]=l),a=function(m){if(!m||typeof m!="object")return!1;var y=i(m,"lastIndex"),g=y&&o(y,"value");if(!g)return!1;try{s(m,d)}catch(v){return v===c}}):(p=r("Object.prototype.toString"),f="[object RegExp]",a=function(m){return!m||typeof m!="object"&&typeof m!="function"?!1:p(m)===f});var s,c,l,d,p,f;t.exports=a}}),ZP=we({"node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(o){if(!o)return!1;var i=r.call(o);return i==="[object Function]"||typeof o=="function"&&i!=="[object RegExp]"||typeof window<"u"&&(o===window.setTimeout||o===window.alert||o===window.confirm||o===window.prompt)}}}),e1=we({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=Ed(),n=yb(),o=r("RegExp.prototype.exec"),i=gd();t.exports=function(a){if(!n(a))throw new i("`regex` must be a RegExp");return function(s){return o(a,s)!==null}}}}),t1=we({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=Ed(),n=r("Object.prototype.toString"),o=cb()(),i=e1();o?(a=r("Symbol.prototype.toString"),s=i(/^Symbol\(.*\)$/),c=function(l){return typeof l.valueOf()!="symbol"?!1:s(a(l))},t.exports=function(l){if(typeof l=="symbol")return!0;if(!l||typeof l!="object"||n(l)!=="[object Symbol]")return!1;try{return c(l)}catch{return!1}}):t.exports=function(l){return!1};var a,s,c}}),r1=yd(yb()),n1=yd(ZP()),o1=yd(t1());function i1(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var a1=typeof global=="object"&&global&&global.Object===Object&&global,s1=a1,l1=typeof self=="object"&&self&&self.Object===Object&&self,u1=s1||l1||Function("return this")(),wd=u1,c1=wd.Symbol,Wn=c1,gb=Object.prototype,d1=gb.hasOwnProperty,p1=gb.toString,Ho=Wn?Wn.toStringTag:void 0;function f1(e){var t=d1.call(e,Ho),r=e[Ho];try{e[Ho]=void 0;var n=!0}catch{}var o=p1.call(e);return n&&(t?e[Ho]=r:delete e[Ho]),o}var m1=f1,h1=Object.prototype,y1=h1.toString;function g1(e){return y1.call(e)}var b1=g1,v1="[object Null]",E1="[object Undefined]",Cf=Wn?Wn.toStringTag:void 0;function w1(e){return e==null?e===void 0?E1:v1:Cf&&Cf in Object(e)?m1(e):b1(e)}var bb=w1;function _1(e){return e!=null&&typeof e=="object"}var T1=_1,x1="[object Symbol]";function S1(e){return typeof e=="symbol"||T1(e)&&bb(e)==x1}var _d=S1;function A1(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var O1=A1,R1=Array.isArray,Td=R1,Pf=Wn?Wn.prototype:void 0,Mf=Pf?Pf.toString:void 0;function vb(e){if(typeof e=="string")return e;if(Td(e))return O1(e,vb)+"";if(_d(e))return Mf?Mf.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var C1=vb;function P1(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Eb=P1,M1="[object AsyncFunction]",N1="[object Function]",I1="[object GeneratorFunction]",k1="[object Proxy]";function j1(e){if(!Eb(e))return!1;var t=bb(e);return t==N1||t==I1||t==M1||t==k1}var q1=j1,D1=wd["__core-js_shared__"],Nl=D1,Nf=(function(){var e=/[^.]+$/.exec(Nl&&Nl.keys&&Nl.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function L1(e){return!!Nf&&Nf in e}var F1=L1,$1=Function.prototype,B1=$1.toString;function U1(e){if(e!=null){try{return B1.call(e)}catch{}try{return e+""}catch{}}return""}var H1=U1,J1=/[\\^$.*+?()[\]{}|]/g,V1=/^\[object .+?Constructor\]$/,z1=Function.prototype,G1=Object.prototype,W1=z1.toString,K1=G1.hasOwnProperty,Y1=RegExp("^"+W1.call(K1).replace(J1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function X1(e){if(!Eb(e)||F1(e))return!1;var t=q1(e)?Y1:V1;return t.test(H1(e))}var Q1=X1;function Z1(e,t){return e?.[t]}var eM=Z1;function tM(e,t){var r=eM(e,t);return Q1(r)?r:void 0}var wb=tM;function rM(e,t){return e===t||e!==e&&t!==t}var nM=rM,oM=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,iM=/^\w*$/;function aM(e,t){if(Td(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||_d(e)?!0:iM.test(e)||!oM.test(e)||t!=null&&e in Object(t)}var sM=aM,lM=wb(Object,"create"),yi=lM;function uM(){this.__data__=yi?yi(null):{},this.size=0}var cM=uM;function dM(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var pM=dM,fM="__lodash_hash_undefined__",mM=Object.prototype,hM=mM.hasOwnProperty;function yM(e){var t=this.__data__;if(yi){var r=t[e];return r===fM?void 0:r}return hM.call(t,e)?t[e]:void 0}var gM=yM,bM=Object.prototype,vM=bM.hasOwnProperty;function EM(e){var t=this.__data__;return yi?t[e]!==void 0:vM.call(t,e)}var wM=EM,_M="__lodash_hash_undefined__";function TM(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=yi&&t===void 0?_M:t,this}var xM=TM;function ho(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ho.prototype.clear=cM;ho.prototype.delete=pM;ho.prototype.get=gM;ho.prototype.has=wM;ho.prototype.set=xM;var If=ho;function SM(){this.__data__=[],this.size=0}var AM=SM;function OM(e,t){for(var r=e.length;r--;)if(nM(e[r][0],t))return r;return-1}var Ds=OM,RM=Array.prototype,CM=RM.splice;function PM(e){var t=this.__data__,r=Ds(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():CM.call(t,r,1),--this.size,!0}var MM=PM;function NM(e){var t=this.__data__,r=Ds(t,e);return r<0?void 0:t[r][1]}var IM=NM;function kM(e){return Ds(this.__data__,e)>-1}var jM=kM;function qM(e,t){var r=this.__data__,n=Ds(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var DM=qM;function yo(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}yo.prototype.clear=AM;yo.prototype.delete=MM;yo.prototype.get=IM;yo.prototype.has=jM;yo.prototype.set=DM;var LM=yo,FM=wb(wd,"Map"),$M=FM;function BM(){this.size=0,this.__data__={hash:new If,map:new($M||LM),string:new If}}var UM=BM;function HM(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var JM=HM;function VM(e,t){var r=e.__data__;return JM(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Ls=VM;function zM(e){var t=Ls(this,e).delete(e);return this.size-=t?1:0,t}var GM=zM;function WM(e){return Ls(this,e).get(e)}var KM=WM;function YM(e){return Ls(this,e).has(e)}var XM=YM;function QM(e,t){var r=Ls(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var ZM=QM;function go(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}go.prototype.clear=UM;go.prototype.delete=GM;go.prototype.get=KM;go.prototype.has=XM;go.prototype.set=ZM;var _b=go,eN="Expected a function";function xd(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(eN);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(xd.Cache||_b),r}xd.Cache=_b;var tN=xd,rN=500;function nN(e){var t=tN(e,function(n){return r.size===rN&&r.clear(),n}),r=t.cache;return t}var oN=nN,iN=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,aN=/\\(\\)?/g,sN=oN(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(iN,function(r,n,o,i){t.push(o?i.replace(aN,"$1"):n||r)}),t}),lN=sN;function uN(e){return e==null?"":C1(e)}var cN=uN;function dN(e,t){return Td(e)?e:sM(e,t)?[e]:lN(cN(e))}var pN=dN;function fN(e){if(typeof e=="string"||_d(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var mN=fN;function hN(e,t){t=pN(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[mN(t[r++])];return r&&r==n?e:void 0}var yN=hN;function gN(e,t,r){var n=e==null?void 0:yN(e,t);return n===void 0?r:n}var bN=gN,Sd=i1,vN=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Ad=e=>e.match(/^[\[\{\"\}].*[\]\}\"]$/);function Tb(e){if(!Sd(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=CP(t),r=!0),t=Object.keys(t).reduce((n,o)=>{try{t[o]&&t[o].toJSON,n[o]=t[o]}catch{r=!0}return n},{}),r?t:e}var EN=function(e){let t,r,n,o;return function(i,a){try{if(i==="")return o=[],t=new Map([[a,"[]"]]),r=new Map,n=[],a;let s=r.get(this)||this;for(;n.length&&s!==n[0];)n.shift(),o.pop();if(typeof a=="boolean")return a;if(a===void 0)return e.allowUndefined?"_undefined_":void 0;if(a===null)return null;if(typeof a=="number")return a===Number.NEGATIVE_INFINITY?"_-Infinity_":a===Number.POSITIVE_INFINITY?"_Infinity_":Number.isNaN(a)?"_NaN_":a;if(typeof a=="bigint")return`_bigint_${a.toString()}`;if(typeof a=="string")return vN.test(a)?e.allowDate?`_date_${a}`:void 0:a;if((0,r1.default)(a))return e.allowRegExp?`_regexp_${a.flags}|${a.source}`:void 0;if((0,n1.default)(a))return;if((0,o1.default)(a)){if(!e.allowSymbol)return;let l=Symbol.keyFor(a);return l!==void 0?`_gsymbol_${l}`:`_symbol_${a.toString().slice(7,-1)}`}if(n.length>=e.maxDepth)return Array.isArray(a)?`[Array(${a.length})]`:"[Object]";if(a===this)return`_duplicate_${JSON.stringify(o)}`;if(a instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...a.cause?{cause:a.cause}:{},...a,name:a.name,message:a.message,stack:a.stack,"_constructor-name_":a.constructor.name}};if(a?.constructor?.name&&a.constructor.name!=="Object"&&!Array.isArray(a)){let l=t.get(a);if(!l){let d={__isClassInstance__:!0,__className__:a.constructor.name,...Object.getOwnPropertyNames(a).reduce((p,f)=>{try{p[f]=a[f]}catch{}return p},{})};return o.push(i),n.unshift(d),t.set(a,JSON.stringify(o)),a!==d&&r.set(a,d),d}return`_duplicate_${l}`}let c=t.get(a);if(!c){let l=Array.isArray(a)?a:Tb(a);return o.push(i),n.unshift(l),t.set(a,JSON.stringify(o)),a!==l&&r.set(a,l),l}return`_duplicate_${c}`}catch{return}}},wN=function(e){let t=[],r;return function(n,o){if(n===""&&(r=o,t.forEach(({target:i,container:a,replacement:s})=>{let c=Ad(s)?JSON.parse(s):s.split(".");c.length===0?a[i]=r:a[i]=bN(r,c)})),n==="_constructor-name_")return o;if(Sd(o)&&o.__isConvertedError__){let{message:i,...a}=o.errorProperties,s=new Error(i);return Object.assign(s,a),s}if(typeof o=="string"&&o.startsWith("_regexp_")&&e.allowRegExp){let[,i,a]=o.match(/_regexp_([^|]*)\|(.*)/)||[];return new RegExp(a,i)}return typeof o=="string"&&o.startsWith("_date_")&&e.allowDate?new Date(o.replace("_date_","")):typeof o=="string"&&o.startsWith("_duplicate_")?(t.push({target:n,container:this,replacement:o.replace(/^_duplicate_/,"")}),null):typeof o=="string"&&o.startsWith("_symbol_")&&e.allowSymbol?Symbol(o.replace("_symbol_","")):typeof o=="string"&&o.startsWith("_gsymbol_")&&e.allowSymbol?Symbol.for(o.replace("_gsymbol_","")):typeof o=="string"&&o==="_-Infinity_"?Number.NEGATIVE_INFINITY:typeof o=="string"&&o==="_Infinity_"?Number.POSITIVE_INFINITY:typeof o=="string"&&o==="_NaN_"?Number.NaN:typeof o=="string"&&o.startsWith("_bigint_")&&typeof BigInt=="function"?BigInt(o.replace("_bigint_","")):o}},xb={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},Sb=(e,t={})=>{let r={...xb,...t};return JSON.stringify(Tb(e),EN(r),t.space)},_N=()=>{let e=new Map;return function t(r){Sd(r)&&Object.entries(r).forEach(([n,o])=>{o==="_undefined_"?r[n]=void 0:e.get(o)||(e.set(o,!0),t(o))}),Array.isArray(r)&&r.forEach((n,o)=>{n==="_undefined_"?(e.set(n,!0),r[o]=void 0):e.get(n)||(e.set(n,!0),t(n))})}},Ab=(e,t={})=>{let r={...xb,...t},n=JSON.parse(e,wN(r));return _N()(n),n},TN="Invariant failed";function Tr(e,t){if(!e)throw new Error(TN)}var xN=e=>{let t=Array.from(document.querySelectorAll("iframe[data-is-storybook]")),[r,...n]=t.filter(i=>{try{return i.contentWindow?.location.origin===e.source.location.origin&&i.contentWindow?.location.pathname===e.source.location.pathname}catch{}try{return i.contentWindow===e.source}catch{}let a=i.getAttribute("src"),s;try{if(!a)return!1;({origin:s}=new URL(a,document.location.toString()))}catch{return!1}return s===e.origin}),o=r?.getAttribute("src");if(o&&n.length===0){let{protocol:i,host:a,pathname:s}=new URL(o,document.location.toString());return`${i}//${a}${s}`}return n.length>0&&Fe.error("found multiple candidates for event source"),null},{document:Il,location:kl}=re,kf="storybook-channel",SN={maxDepth:25},Ob=class{constructor(e){if(this.config=e,this.connected=!1,this.buffer=[],typeof re?.addEventListener=="function"&&re.addEventListener("message",this.handleEvent.bind(this),!1),e.page!=="manager"&&e.page!=="preview")throw new Error(`postmsg-channel: "config.page" cannot be "${e.page}"`)}setHandler(e){this.handler=(...t)=>{e.apply(this,t),!this.connected&&this.getLocalFrame().length&&(this.flush(),this.connected=!0)}}send(e,t){let{target:r,allowRegExp:n,allowSymbol:o,allowDate:i,allowError:a,allowUndefined:s,maxDepth:c,space:l}=t||{},d=Object.fromEntries(Object.entries({allowRegExp:n,allowSymbol:o,allowDate:i,allowError:a,allowUndefined:s,maxDepth:c,space:l}).filter(([g,v])=>typeof v<"u")),p={...SN,...re.CHANNEL_OPTIONS||{},...d},f=this.getFrames(r),m=new URLSearchParams(kl?.search||""),y=Sb({key:kf,event:e,refId:m.get("refId")},p);return f.length?(this.buffer.length&&this.flush(),f.forEach(g=>{try{g.postMessage(y,"*")}catch{Fe.error("sending over postmessage fail")}}),Promise.resolve(null)):new Promise((g,v)=>{this.buffer.push({event:e,resolve:g,reject:v})})}flush(){let{buffer:e}=this;this.buffer=[],e.forEach(t=>{this.send(t.event).then(t.resolve).catch(t.reject)})}getFrames(e){if(this.config.page==="manager"){let t=Array.from(Il.querySelectorAll("iframe[data-is-storybook][data-is-loaded]")).flatMap(r=>{try{return r.contentWindow&&r.dataset.isStorybook!==void 0&&r.id===e?[r.contentWindow]:[]}catch{return[]}});return t?.length?t:this.getCurrentFrames()}return re&&re.parent&&re.parent!==re.self?[re.parent]:[]}getCurrentFrames(){return this.config.page==="manager"?Array.from(Il.querySelectorAll('[data-is-storybook="true"]')).flatMap(e=>e.contentWindow?[e.contentWindow]:[]):re&&re.parent?[re.parent]:[]}getLocalFrame(){return this.config.page==="manager"?Array.from(Il.querySelectorAll("#storybook-preview-iframe")).flatMap(e=>e.contentWindow?[e.contentWindow]:[]):re&&re.parent?[re.parent]:[]}handleEvent(e){try{let{data:t}=e,{key:r,event:n,refId:o}=typeof t=="string"&&Ad(t)?Ab(t,re.CHANNEL_OPTIONS||{}):t;if(r===kf){let i=this.config.page==="manager"?'<span style="color: #37D5D3; background: black"> manager </span>':'<span style="color: #1EA7FD; background: black"> preview </span>',a=Object.values(sd).includes(n.type)?`<span style="color: #FF4785">${n.type}</span>`:`<span style="color: #FFAE00">${n.type}</span>`;if(o&&(n.refId=o),n.source=this.config.page==="preview"?e.origin:xN(e),!n.source){Pt.error(`${i} received ${a} but was unable to determine the source of the event`);return}let s=`${i} received ${a} (${t.length})`;Pt.debug(kl.origin!==n.source?s:`${s} <span style="color: gray">(on ${kl.origin} from ${n.source})</span>`,...n.args),Tr(this.handler,"ChannelHandler should be set"),this.handler(n)}}catch(t){Fe.error(t)}}},{WebSocket:AN}=re,Rb=15e3,Cb=5e3,Pb=class{constructor({url:e,onError:t,page:r}){this.buffer=[],this.isReady=!1,this.isClosed=!1,this.pingTimeout=0,this.socket=new AN(e),this.socket.onopen=()=>{this.isReady=!0,this.heartbeat(),this.flush()},this.socket.onmessage=({data:n})=>{let o=typeof n=="string"&&Ad(n)?Ab(n):n;Tr(this.handler),this.handler(o),o.type==="ping"&&(this.heartbeat(),this.send({type:"pong"}))},this.socket.onerror=n=>{t&&t(n)},this.socket.onclose=n=>{Tr(this.handler),this.handler({type:kg,args:[{reason:n.reason,code:n.code}],from:r||"preview"}),this.isClosed=!0,clearTimeout(this.pingTimeout)}}heartbeat(){clearTimeout(this.pingTimeout),this.pingTimeout=setTimeout(()=>{this.socket.close(3008,"timeout")},Rb+Cb)}setHandler(e){this.handler=e}send(e){this.isClosed||(this.isReady?this.sendNow(e):this.sendLater(e))}sendLater(e){this.buffer.push(e)}sendNow(e){let t=Sb(e,{maxDepth:15,...re.CHANNEL_OPTIONS});this.socket.send(t)}flush(){let{buffer:e}=this;this.buffer=[],e.forEach(t=>this.send(t))}},{CHANNEL_OPTIONS:ON,CONFIG_TYPE:RN}=re,CN=js;function PN({page:e,extraTransports:t=[]}){let r=[new Ob({page:e}),...t];if(RN==="DEVELOPMENT"){let o=window.location.protocol==="http:"?"ws":"wss",{hostname:i,port:a}=window.location,{wsToken:s}=ON||{},c=`${o}://${i}:${a}/storybook-server-channel?token=${s}`;r.push(new Pb({url:c,onError:()=>{},page:e}))}let n=new js({transports:r});return Ml.__prepare(n,e==="manager"?Ml.Environment.MANAGER:Ml.Environment.PREVIEW),n}var Mb={};Tt(Mb,{CalledExtractOnStoreError:()=>qb,CalledPreviewMethodBeforeInitializationError:()=>At,Category:()=>Ib,ElementA11yParameterError:()=>qN,EmptyIndexError:()=>$b,ImplicitActionsDuringRendering:()=>jb,MdxFileWithNoCsfReferencesError:()=>Fb,MissingRenderToCanvasError:()=>Db,MissingStoryAfterHmrError:()=>kb,MissingStoryFromCsfFileError:()=>Ub,MountMustBeDestructuredError:()=>Od,NextJsSharpError:()=>NN,NextjsRouterMocksNotAvailable:()=>IN,NoRenderFunctionError:()=>Jb,NoStoryMatchError:()=>Bb,NoStoryMountedError:()=>Vb,StatusTypeIdMismatchError:()=>MN,StoryIndexFetchError:()=>Lb,StoryStoreAccessedBeforeInitializationError:()=>Hb,UnknownArgTypesError:()=>kN,UnsupportedViewportDimensionError:()=>jN});function jf({code:e,category:t}){let r=String(e).padStart(4,"0");return`SB_${t}_${r}`}function qf(e){if(/^(?!.*storybook\.js\.org)|[?&]ref=error\b/.test(e))return e;try{let t=new URL(e);return t.searchParams.set("ref","error"),t.toString()}catch{return e}}var Qe=class Nb extends Error{constructor(t){super(Nb.getFullMessage(t)),this.data={},this.fromStorybook=!0,this.isHandledError=!1,this.subErrors=[],this.category=t.category,this.documentation=t.documentation??!1,this.code=t.code,this.isHandledError=t.isHandledError??!1,this.name=t.name,this.subErrors=t.subErrors??[]}get fullErrorCode(){return jf({code:this.code,category:this.category})}get name(){let t=this._name||this.constructor.name;return`${this.fullErrorCode} (${t})`}set name(t){this._name=t}static getFullMessage({documentation:t,code:r,category:n,message:o}){let i;return t===!0?i=`https://storybook.js.org/error/${jf({code:r,category:n})}?ref=error`:typeof t=="string"?i=qf(t):Array.isArray(t)&&(i=`
39
- ${t.map(a=>` - ${qf(a)}`).join(`
40
- `)}`),`${o}${i!=null?`
41
-
42
- More info: ${i}
43
- `:""}`}},Ib=(e=>(e.BLOCKS="BLOCKS",e.DOCS_TOOLS="DOCS-TOOLS",e.PREVIEW_CLIENT_LOGGER="PREVIEW_CLIENT-LOGGER",e.PREVIEW_CHANNELS="PREVIEW_CHANNELS",e.PREVIEW_CORE_EVENTS="PREVIEW_CORE-EVENTS",e.PREVIEW_INSTRUMENTER="PREVIEW_INSTRUMENTER",e.PREVIEW_API="PREVIEW_API",e.PREVIEW_REACT_DOM_SHIM="PREVIEW_REACT-DOM-SHIM",e.PREVIEW_ROUTER="PREVIEW_ROUTER",e.PREVIEW_THEMING="PREVIEW_THEMING",e.RENDERER_HTML="RENDERER_HTML",e.RENDERER_PREACT="RENDERER_PREACT",e.RENDERER_REACT="RENDERER_REACT",e.RENDERER_SERVER="RENDERER_SERVER",e.RENDERER_SVELTE="RENDERER_SVELTE",e.RENDERER_VUE="RENDERER_VUE",e.RENDERER_VUE3="RENDERER_VUE3",e.RENDERER_WEB_COMPONENTS="RENDERER_WEB-COMPONENTS",e.FRAMEWORK_NEXTJS="FRAMEWORK_NEXTJS",e.ADDON_VITEST="ADDON_VITEST",e.ADDON_A11Y="ADDON_A11Y",e))(Ib||{}),kb=class extends Qe{constructor(e){super({name:"MissingStoryAfterHmrError",category:"PREVIEW_API",code:1,message:xe`
44
- Couldn't find story matching id '${e.storyId}' after HMR.
45
- - Did you just rename a story?
46
- - Did you remove it from your CSF file?
47
- - Are you sure a story with the id '${e.storyId}' exists?
48
- - Please check the values in the stories field of your main.js config and see if they would match your CSF File.
49
- - Also check the browser console and terminal for potential error messages.`}),this.data=e}},jb=class extends Qe{constructor(e){super({name:"ImplicitActionsDuringRendering",category:"PREVIEW_API",code:2,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#using-implicit-actions-during-rendering-is-deprecated-for-example-in-the-play-function",message:xe`
50
- We detected that you use an implicit action arg while ${e.phase} of your story.
51
- ${e.deprecated?`
52
- This is deprecated and won't work in Storybook 8 anymore.
53
- `:""}
54
- Please provide an explicit spy to your args like this:
55
- import { fn } from 'storybook/test';
56
- ...
57
- args: {
58
- ${e.name}: fn()
59
- }`}),this.data=e}},qb=class extends Qe{constructor(){super({name:"CalledExtractOnStoreError",category:"PREVIEW_API",code:3,message:xe`
60
- Cannot call \`storyStore.extract()\` without calling \`storyStore.cacheAllCsfFiles()\` first.
61
-
62
- You probably meant to call \`await preview.extract()\` which does the above for you.`})}},Db=class extends Qe{constructor(){super({name:"MissingRenderToCanvasError",category:"PREVIEW_API",code:4,message:xe`
63
- Expected your framework's preset to export a \`renderToCanvas\` field.
64
-
65
- Perhaps it needs to be upgraded for Storybook 7.0?`,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#mainjs-framework-field"})}},At=class extends Qe{constructor(e){super({name:"CalledPreviewMethodBeforeInitializationError",category:"PREVIEW_API",code:5,message:xe`
66
- Called \`Preview.${e.methodName}()\` before initialization.
67
-
68
- The preview needs to load the story index before most methods can be called. If you want
69
- to call \`${e.methodName}\`, try \`await preview.initializationPromise;\` first.
70
-
71
- If you didn't call the above code, then likely it was called by an addon that needs to
72
- do the above.`}),this.data=e}},Lb=class extends Qe{constructor(e){super({name:"StoryIndexFetchError",category:"PREVIEW_API",code:6,message:xe`
73
- Error fetching \`/index.json\`:
74
-
75
- ${e.text}
76
-
77
- If you are in development, this likely indicates a problem with your Storybook process,
78
- check the terminal for errors.
79
-
80
- If you are in a deployed Storybook, there may have been an issue deploying the full Storybook
81
- build.`}),this.data=e}},Fb=class extends Qe{constructor(e){super({name:"MdxFileWithNoCsfReferencesError",category:"PREVIEW_API",code:7,message:xe`
82
- Tried to render docs entry ${e.storyId} but it is a MDX file that has no CSF
83
- references, or autodocs for a CSF file that some doesn't refer to itself.
84
-
85
- This likely is an internal error in Storybook's indexing, or you've attached the
86
- \`attached-mdx\` tag to an MDX file that is not attached.`}),this.data=e}},$b=class extends Qe{constructor(){super({name:"EmptyIndexError",category:"PREVIEW_API",code:8,message:xe`
87
- Couldn't find any stories in your Storybook.
88
-
89
- - Please check your stories field of your main.js config: does it match correctly?
90
- - Also check the browser console and terminal for error messages.`})}},Bb=class extends Qe{constructor(e){super({name:"NoStoryMatchError",category:"PREVIEW_API",code:9,message:xe`
91
- Couldn't find story matching '${e.storySpecifier}'.
92
-
93
- - Are you sure a story with that id exists?
94
- - Please check your stories field of your main.js config.
95
- - Also check the browser console and terminal for error messages.`}),this.data=e}},Ub=class extends Qe{constructor(e){super({name:"MissingStoryFromCsfFileError",category:"PREVIEW_API",code:10,message:xe`
96
- Couldn't find story matching id '${e.storyId}' after importing a CSF file.
97
-
98
- The file was indexed as if the story was there, but then after importing the file in the browser
99
- we didn't find the story. Possible reasons:
100
- - You are using a custom story indexer that is misbehaving.
101
- - You have a custom file loader that is removing or renaming exports.
102
-
103
- Please check your browser console and terminal for errors that may explain the issue.`}),this.data=e}},Hb=class extends Qe{constructor(){super({name:"StoryStoreAccessedBeforeInitializationError",category:"PREVIEW_API",code:11,message:xe`
104
- Cannot access the Story Store until the index is ready.
105
-
106
- It is not recommended to use methods directly on the Story Store anyway, in Storybook 9 we will
107
- remove access to the store entirely`})}},Od=class extends Qe{constructor(e){super({name:"MountMustBeDestructuredError",category:"PREVIEW_API",code:12,message:xe`
108
- Incorrect use of mount in the play function.
109
-
110
- To use mount in the play function, you must satisfy the following two requirements:
111
-
112
- 1. You *must* destructure the mount property from the \`context\` (the argument passed to your play function).
113
- This makes sure that Storybook does not start rendering the story before the play function begins.
114
-
115
- 2. Your Storybook framework or builder must be configured to transpile to ES2017 or newer.
116
- This is because destructuring statements and async/await usages are otherwise transpiled away,
117
- which prevents Storybook from recognizing your usage of \`mount\`.
118
-
119
- Note that Angular is not supported. As async/await is transpiled to support the zone.js polyfill.
120
-
121
- More info: https://storybook.js.org/docs/writing-tests/interaction-testing?ref=error#run-code-before-the-component-gets-rendered
122
-
123
- Received the following play function:
124
- ${e.playFunction}`}),this.data=e}},Jb=class extends Qe{constructor(e){super({name:"NoRenderFunctionError",category:"PREVIEW_API",code:14,message:xe`
125
- No render function available for storyId '${e.id}'
126
- `}),this.data=e}},Vb=class extends Qe{constructor(){super({name:"NoStoryMountedError",category:"PREVIEW_API",code:15,message:xe`
127
- No component is mounted in your story.
128
-
129
- This usually occurs when you destructure mount in the play function, but forget to call it.
130
-
131
- For example:
132
-
133
- async play({ mount, canvasElement }) {
134
- // 👈 mount should be called: await mount();
135
- const canvas = within(canvasElement);
136
- const button = await canvas.findByRole('button');
137
- await userEvent.click(button);
138
- };
139
-
140
- Make sure to either remove it or call mount in your play function.
141
- `})}},MN=class extends Qe{constructor(e){super({name:"StatusTypeIdMismatchError",category:"PREVIEW_API",code:16,message:`Status has typeId "${e.status.typeId}" but was added to store with typeId "${e.typeId}". Full status: ${JSON.stringify(e.status,null,2)}`}),this.data=e}},NN=class extends Qe{constructor(){super({name:"NextJsSharpError",category:"FRAMEWORK_NEXTJS",code:1,documentation:"https://storybook.js.org/docs/get-started/frameworks/nextjs#error-you-are-importing-avif-images-but-you-dont-have-sharp-installed-you-have-to-install-sharp-in-order-to-use-image-optimization-features-in-nextjs",message:xe`
142
- You are importing avif images, but you don't have sharp installed.
143
-
144
- You have to install sharp in order to use image optimization features in Next.js.
145
- `})}},IN=class extends Qe{constructor(e){super({name:"NextjsRouterMocksNotAvailable",category:"FRAMEWORK_NEXTJS",code:2,message:xe`
146
- Tried to access router mocks from "${e.importType}" but they were not created yet. You might be running code in an unsupported environment.
147
- `}),this.data=e}},kN=class extends Qe{constructor(t){super({name:"UnknownArgTypesError",category:"DOCS-TOOLS",code:1,documentation:"https://github.com/storybookjs/storybook/issues/26606",message:xe`
148
- There was a failure when generating detailed ArgTypes in ${t.language} for:
149
- ${JSON.stringify(t.type,null,2)}
150
-
151
- Storybook will fall back to use a generic type description instead.
152
-
153
- This type is either not supported or it is a bug in the docgen generation in Storybook.
154
- If you think this is a bug, please detail it as much as possible in the Github issue.
155
- `}),this.data=t}},jN=class extends Qe{constructor(e){super({name:"UnsupportedViewportDimensionError",category:"ADDON_VITEST",code:1,message:xe`
156
- Encountered an unsupported value "${e.value}" when setting the viewport ${e.dimension} dimension.
157
-
158
- The Storybook plugin only supports values in the following units:
159
- - px, vh, vw, em, rem and %.
160
-
161
- You can either change the viewport for this story to use one of the supported units or skip the test by adding '!test' to the story's tags per https://storybook.js.org/docs/writing-stories/tags
162
- `}),this.data=e}},qN=class extends Qe{constructor(){super({name:"ElementA11yParameterError",category:"ADDON_A11Y",code:1,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#a11y-addon-replace-element-parameter-with-context-parameter",message:'The "element" parameter in parameters.a11y has been removed. Use "context" instead.'})}},zb={};Tt(zb,{Addon_TypesEnum:()=>Gb,CoreWebpackCompiler:()=>Yb,Feature:()=>Qb,SupportedBuilder:()=>Xb,SupportedFramework:()=>Wb,SupportedLanguage:()=>Zb,SupportedRenderer:()=>Kb});var Gb=(e=>(e.TAB="tab",e.PANEL="panel",e.TOOL="tool",e.TOOLEXTRA="toolextra",e.PREVIEW="preview",e.experimental_PAGE="page",e.experimental_TEST_PROVIDER="test-provider",e))(Gb||{}),Wb=(e=>(e.ANGULAR="angular",e.EMBER="ember",e.HTML_VITE="html-vite",e.NEXTJS="nextjs",e.NEXTJS_VITE="nextjs-vite",e.PREACT_VITE="preact-vite",e.REACT_NATIVE_WEB_VITE="react-native-web-vite",e.REACT_VITE="react-vite",e.REACT_WEBPACK5="react-webpack5",e.SERVER_WEBPACK5="server-webpack5",e.SVELTE_VITE="svelte-vite",e.SVELTEKIT="sveltekit",e.VUE3_VITE="vue3-vite",e.WEB_COMPONENTS_VITE="web-components-vite",e.HTML_RSBUILD="html-rsbuild",e.NUXT="nuxt",e.QWIK="qwik",e.REACT_RSBUILD="react-rsbuild",e.SOLID="solid",e.VUE3_RSBUILD="vue3-rsbuild",e.WEB_COMPONENTS_RSBUILD="web-components-rsbuild",e))(Wb||{}),Kb=(e=>(e.REACT="react",e.REACT_NATIVE="react-native",e.VUE3="vue3",e.ANGULAR="angular",e.EMBER="ember",e.PREACT="preact",e.SVELTE="svelte",e.QWIK="qwik",e.HTML="html",e.WEB_COMPONENTS="web-components",e.SERVER="server",e.SOLID="solid",e.NUXT="nuxt",e))(Kb||{}),Yb=(e=>(e.Babel="babel",e.SWC="swc",e))(Yb||{}),Xb=(e=>(e.WEBPACK5="webpack5",e.VITE="vite",e.RSBUILD="rsbuild",e))(Xb||{}),Qb=(e=>(e.DOCS="docs",e.TEST="test",e.ONBOARDING="onboarding",e.A11Y="a11y",e))(Qb||{}),Zb=(e=>(e.JAVASCRIPT="javascript",e.TYPESCRIPT="typescript",e))(Zb||{}),ev={};Tt(ev,{ADDON_ID:()=>Fs,CLEAR_ID:()=>FN,CYCLIC_KEY:()=>$N,EVENT_ID:()=>tv,PANEL_ID:()=>LN,PARAM_KEY:()=>DN,action:()=>na,actions:()=>fV,config:()=>ji,configureActions:()=>cV});var DN="actions",Fs="storybook/actions",LN=`${Fs}/panel`,tv=`${Fs}/action-event`,FN=`${Fs}/action-clear`,$N="$___storybook.isCyclic",Iu={};Tt(Iu,{DocsContext:()=>nf,HooksContext:()=>Rd,Preview:()=>q0,PreviewWeb:()=>eV,PreviewWithSelection:()=>D0,ReporterAPI:()=>rf,StoryStore:()=>k0,Tag:()=>hr,UrlStore:()=>U0,WebView:()=>J0,addons:()=>Ft,applyHooks:()=>nv,combineArgs:()=>gs,combineParameters:()=>On,composeConfigs:()=>so,composeStepRunners:()=>C0,composeStories:()=>RJ,composeStory:()=>I0,createPlaywrightTest:()=>CJ,decorateStory:()=>w0,defaultDecorateStory:()=>T0,emitTransformCode:()=>uV,filterArgTypes:()=>R0,getCsfFactoryAnnotations:()=>N0,inferControls:()=>Zp,makeDecorator:()=>eI,mockChannel:()=>rv,normalizeArrays:()=>De,normalizeProjectAnnotations:()=>vs,normalizeStory:()=>ci,pauseAnimations:()=>ef,prepareMeta:()=>x0,prepareStory:()=>Qp,sanitizeStoryContextUpdate:()=>_0,setDefaultProjectAnnotations:()=>_J,setProjectAnnotations:()=>AJ,simulateDOMContentLoaded:()=>qc,simulatePageLoad:()=>oV,sortStoriesV7:()=>DJ,useArgs:()=>QN,useCallback:()=>gi,useChannel:()=>YN,useEffect:()=>_n,useGlobals:()=>ZN,useMemo:()=>iv,useParameter:()=>XN,useReducer:()=>KN,useRef:()=>zN,useState:()=>WN,useStoryContext:()=>Bs,userOrAutoTitle:()=>kJ,userOrAutoTitleFromSpecifier:()=>j0,waitForAnimations:()=>tf});function rv(){let e={setHandler:()=>{},send:()=>{}};return new js({transport:e})}var BN=class{constructor(){this.getChannel=()=>{if(!this.channel){let e=rv();return this.setChannel(e),e}return this.channel},this.ready=()=>this.promise,this.hasChannel=()=>!!this.channel,this.setChannel=e=>{this.channel=e,this.resolve()},this.promise=new Promise(e=>{this.resolve=()=>e(this.getChannel())})}},jl="__STORYBOOK_ADDONS_PREVIEW";function UN(){return re[jl]||(re[jl]=new BN),re[jl]}var Ft=UN(),Rd=class{constructor(){this.hookListsMap=void 0,this.mountedDecorators=void 0,this.prevMountedDecorators=void 0,this.currentHooks=void 0,this.nextHookIndex=void 0,this.currentPhase=void 0,this.currentEffects=void 0,this.prevEffects=void 0,this.currentDecoratorName=void 0,this.hasUpdates=void 0,this.currentContext=void 0,this.renderListener=e=>{e===this.currentContext?.id&&(this.triggerEffects(),this.currentContext=null,this.removeRenderListeners())},this.init()}init(){this.hookListsMap=new WeakMap,this.mountedDecorators=new Set,this.prevMountedDecorators=new Set,this.currentHooks=[],this.nextHookIndex=0,this.currentPhase="NONE",this.currentEffects=[],this.prevEffects=[],this.currentDecoratorName=null,this.hasUpdates=!1,this.currentContext=null}clean(){this.prevEffects.forEach(e=>{e.destroy&&e.destroy()}),this.init(),this.removeRenderListeners()}getNextHook(){let e=this.currentHooks[this.nextHookIndex];return this.nextHookIndex+=1,e}triggerEffects(){this.prevEffects.forEach(e=>{!this.currentEffects.includes(e)&&e.destroy&&e.destroy()}),this.currentEffects.forEach(e=>{this.prevEffects.includes(e)||(e.destroy=e.create())}),this.prevEffects=this.currentEffects,this.currentEffects=[]}addRenderListeners(){this.removeRenderListeners(),Ft.getChannel().on(Ka,this.renderListener)}removeRenderListeners(){Ft.getChannel().removeListener(Ka,this.renderListener)}};function Df(e){let t=(...r)=>{let{hooks:n}=typeof r[0]=="function"?r[1]:r[0],o=n.currentPhase,i=n.currentHooks,a=n.nextHookIndex,s=n.currentDecoratorName;n.currentDecoratorName=e.name,n.prevMountedDecorators.has(e)?(n.currentPhase="UPDATE",n.currentHooks=n.hookListsMap.get(e)||[]):(n.currentPhase="MOUNT",n.currentHooks=[],n.hookListsMap.set(e,n.currentHooks),n.prevMountedDecorators.add(e)),n.nextHookIndex=0;let c=re.STORYBOOK_HOOKS_CONTEXT;re.STORYBOOK_HOOKS_CONTEXT=n;let l=e(...r);if(re.STORYBOOK_HOOKS_CONTEXT=c,n.currentPhase==="UPDATE"&&n.getNextHook()!=null)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return n.currentPhase=o,n.currentHooks=i,n.nextHookIndex=a,n.currentDecoratorName=s,l};return t.originalFn=e,t}var ql=0,HN=25,nv=e=>(t,r)=>{let n=e(Df(t),r.map(o=>Df(o)));return o=>{let{hooks:i}=o;i.prevMountedDecorators??=new Set,i.mountedDecorators=new Set([t,...r]),i.currentContext=o,i.hasUpdates=!1;let a=n(o);for(ql=1;i.hasUpdates;)if(i.hasUpdates=!1,i.currentEffects=[],a=n(o),ql+=1,ql>HN)throw new Error("Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.");return i.addRenderListeners(),a}},JN=(e,t)=>e.length===t.length&&e.every((r,n)=>r===t[n]),Cd=()=>new Error("Storybook preview hooks can only be called inside decorators and story functions.");function ov(){return re.STORYBOOK_HOOKS_CONTEXT||null}function Pd(){let e=ov();if(e==null)throw Cd();return e}function VN(e,t,r){let n=Pd();if(n.currentPhase==="MOUNT"){r!=null&&!Array.isArray(r)&&Fe.warn(`${e} received a final argument that is not an array (instead, received ${r}). When specified, the final argument must be an array.`);let o={name:e,deps:r};return n.currentHooks.push(o),t(o),o}if(n.currentPhase==="UPDATE"){let o=n.getNextHook();if(o==null)throw new Error("Rendered more hooks than during the previous render.");return o.name!==e&&Fe.warn(`Storybook has detected a change in the order of Hooks${n.currentDecoratorName?` called by ${n.currentDecoratorName}`:""}. This will lead to bugs and errors if not fixed.`),r!=null&&o.deps==null&&Fe.warn(`${e} received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.`),r!=null&&o.deps!=null&&r.length!==o.deps.length&&Fe.warn(`The final argument passed to ${e} changed size between renders. The order and size of this array must remain constant.
163
- Previous: ${o.deps}
164
- Incoming: ${r}`),(r==null||o.deps==null||!JN(r,o.deps))&&(t(o),o.deps=r),o}throw Cd()}function $s(e,t,r){let{memoizedState:n}=VN(e,o=>{o.memoizedState=t()},r);return n}function iv(e,t){return $s("useMemo",e,t)}function gi(e,t){return $s("useCallback",()=>e,t)}function av(e,t){return $s(e,()=>({current:t}),[])}function zN(e){return av("useRef",e)}function GN(){let e=ov();if(e!=null&&e.currentPhase!=="NONE")e.hasUpdates=!0;else try{Ft.getChannel().emit(cd)}catch{Fe.warn("State updates of Storybook preview hooks work only in browser")}}function sv(e,t){let r=av(e,typeof t=="function"?t():t),n=o=>{r.current=typeof o=="function"?o(r.current):o,GN()};return[r.current,n]}function WN(e){return sv("useState",e)}function KN(e,t,r){let n=r!=null?()=>r(t):t,[o,i]=sv("useReducer",n);return[o,a=>i(s=>e(s,a))]}function _n(e,t){let r=Pd(),n=$s("useEffect",()=>({create:e}),t);r.currentEffects.includes(n)||r.currentEffects.push(n)}function YN(e,t=[]){let r=Ft.getChannel();return _n(()=>(Object.entries(e).forEach(([n,o])=>r.on(n,o)),()=>{Object.entries(e).forEach(([n,o])=>r.removeListener(n,o))}),[...Object.keys(e),...t]),gi(r.emit.bind(r),[r])}function Bs(){let{currentContext:e}=Pd();if(e==null)throw Cd();return e}function XN(e,t){let{parameters:r}=Bs();if(e)return r[e]??t}function QN(){let e=Ft.getChannel(),{id:t,args:r}=Bs(),n=gi(i=>e.emit(md,{storyId:t,updatedArgs:i}),[e,t]),o=gi(i=>e.emit(dd,{storyId:t,argNames:i}),[e,t]);return[r,n,o]}function ZN(){let e=Ft.getChannel(),{globals:t}=Bs(),r=gi(n=>e.emit(fd,{globals:n}),[e]);return[t,r]}var eI=({name:e,parameterName:t,wrapper:r,skipIfNoParametersOrOptions:n=!1})=>{let o=i=>(a,s)=>{let c=s.parameters&&s.parameters[t];return c&&c.disable||n&&!i&&!c?a(s):r(a,s,{options:i,parameters:c})};return(...i)=>typeof i[0]=="function"?o()(...i):(...a)=>{if(a.length>1)return i.length>1?o(i)(...a):o(...i)(...a);throw new Error(`Passing stories directly into ${e}() is not allowed,
165
- instead use addDecorator(${e}) and pass options with the '${t}' parameter`)}};function tI(e){return e.replace(/_/g," ").replace(/-/g," ").replace(/\./g," ").replace(/([^\n])([A-Z])([a-z])/g,(t,r,n,o)=>`${r} ${n}${o}`).replace(/([a-z])([A-Z])/g,(t,r,n)=>`${r} ${n}`).replace(/([a-z])([0-9])/gi,(t,r,n)=>`${r} ${n}`).replace(/([0-9])([a-z])/gi,(t,r,n)=>`${r} ${n}`).replace(/(\s|^)(\w)/g,(t,r,n)=>`${r}${n.toUpperCase()}`).replace(/ +/g," ").trim()}var Lf=We(aS(),1),lv=e=>e.map(t=>typeof t<"u").filter(Boolean).length,rI=(e,t)=>{let{exists:r,eq:n,neq:o,truthy:i}=e;if(lv([r,n,o,i])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:n,neq:o})}`);if(typeof n<"u")return(0,Lf.isEqual)(t,n);if(typeof o<"u")return!(0,Lf.isEqual)(t,o);if(typeof r<"u"){let a=typeof t<"u";return r?a:!a}return typeof i>"u"||i?!!t:!t},nI=(e,t,r)=>{if(!e.if)return!0;let{arg:n,global:o}=e.if;if(lv([n,o])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:n,global:o})}`);let i=n?t[n]:r[o];return rI(e.if,i)};function oI(e){return e!=null&&iI(e).includes("mount")}function iI(e){let[,t,r]=e.toString().match(/[^(]*\(([^)]+)\)(?:.*{([^]+)})?/)||[];if(!t)return[];let[n]=Dl(t);if(!n)return[];let[,o]=n.match(/^{([^]+)}$/)||[];if(o)return Dl(Ff(o)).map(s=>s.replace(/:.*|=.*/g,"").trim());if(!n.match(/^[a-z_$][0-9a-z_$]*$/i))return[];let i=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),[,a]=r?.trim()?.match(new RegExp(`^(?:const|let|var)\\s*{([^}]+)}\\s*=\\s*${i};`))||[];return a?Dl(Ff(a)).map(s=>s.replace(/:.*|=.*/g,"").trim()):[]}function Ff(e){return e=e.replace(/\/\/.*$/gm,""),e=e.replace(/\/\*[\s\S]*?\*\//g,""),e}function Dl(e){let t=[],r=[],n=0;for(let i=0;i<e.length;i++)if(e[i]==="{"||e[i]==="[")r.push(e[i]==="{"?"}":"]");else if(e[i]===r[r.length-1])r.pop();else if(!r.length&&e[i]===","){let a=e.substring(n,i).trim();a&&t.push(a),n=i+1}let o=e.substring(n).trim();return o&&t.push(o),t}var hr={AUTODOCS:"autodocs",ATTACHED_MDX:"attached-mdx",UNATTACHED_MDX:"unattached-mdx",PLAY_FN:"play-fn",TEST_FN:"test-fn",DEV:"dev",TEST:"test",MANIFEST:"manifest"},uv={};Tt(uv,{argsEnhancers:()=>lI});var cv=(e,t)=>typeof t[e]>"u"&&!(e in t),aI=e=>{let{initialArgs:t,argTypes:r,id:n,parameters:{actions:o}}=e;if(!o||o.disable||!o.argTypesRegex||!r)return{};let i=new RegExp(o.argTypesRegex);return Object.entries(r).filter(([a])=>!!i.test(a)).reduce((a,[s,c])=>(cv(s,t)&&(a[s]=na(s,{implicit:!0,id:n})),a),{})},sI=e=>{let{initialArgs:t,argTypes:r,parameters:{actions:n}}=e;return n?.disable||!r?{}:Object.entries(r).filter(([o,i])=>!!i.action).reduce((o,[i,a])=>(cv(i,t)&&(o[i]=na(typeof a.action=="string"?a.action:i)),o),{})},lI=[sI,aI],dv={};Tt(dv,{loaders:()=>d3});var pv={};Tt(pv,{buildQueries:()=>J5,clearAllMocks:()=>Xw,configure:()=>V5,createEvent:()=>z5,expect:()=>l3,findAllByAltText:()=>W5,findAllByDisplayValue:()=>K5,findAllByLabelText:()=>Y5,findAllByPlaceholderText:()=>X5,findAllByRole:()=>Q5,findAllByTestId:()=>Z5,findAllByText:()=>eU,findAllByTitle:()=>tU,findByAltText:()=>rU,findByDisplayValue:()=>nU,findByLabelText:()=>oU,findByPlaceholderText:()=>iU,findByRole:()=>aU,findByTestId:()=>sU,findByText:()=>lU,findByTitle:()=>uU,fireEvent:()=>G5,fn:()=>Kw,getAllByAltText:()=>cU,getAllByDisplayValue:()=>dU,getAllByLabelText:()=>pU,getAllByPlaceholderText:()=>fU,getAllByRole:()=>mU,getAllByTestId:()=>hU,getAllByText:()=>yU,getAllByTitle:()=>gU,getByAltText:()=>bU,getByDisplayValue:()=>vU,getByLabelText:()=>EU,getByPlaceholderText:()=>wU,getByRole:()=>_U,getByTestId:()=>TU,getByText:()=>xU,getByTitle:()=>SU,getConfig:()=>AU,getDefaultNormalizer:()=>OU,getElementError:()=>RU,getNodeText:()=>CU,getQueriesForElement:()=>PU,getRoles:()=>MU,getSuggestedQuery:()=>NU,isInaccessible:()=>IU,isMockFunction:()=>Vn,logDOM:()=>kU,logRoles:()=>jU,mocked:()=>gF,mocks:()=>Qi,onMockCall:()=>Ww,prettyDOM:()=>qU,prettyFormat:()=>a3,queries:()=>DU,queryAllByAltText:()=>LU,queryAllByAttribute:()=>FU,queryAllByDisplayValue:()=>$U,queryAllByLabelText:()=>BU,queryAllByPlaceholderText:()=>UU,queryAllByRole:()=>HU,queryAllByTestId:()=>JU,queryAllByText:()=>VU,queryAllByTitle:()=>zU,queryByAltText:()=>GU,queryByAttribute:()=>WU,queryByDisplayValue:()=>KU,queryByLabelText:()=>YU,queryByPlaceholderText:()=>XU,queryByRole:()=>QU,queryByTestId:()=>ZU,queryByText:()=>e3,queryByTitle:()=>t3,queryHelpers:()=>r3,resetAllMocks:()=>Qw,restoreAllMocks:()=>Zw,sb:()=>u3,screen:()=>n3,spyOn:()=>yF,uninstrumentedUserEvent:()=>d0,userEvent:()=>s3,waitFor:()=>o3,waitForElementToBeRemoved:()=>i3,within:()=>c0});var uI={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},fv=Object.entries(uI);function Us(e){return String(e)}Us.open="";Us.close="";fv.reduce((e,[t])=>(e[t]=Us,e),{isColorSupported:!1});function cI(e=!1){let t=typeof process<"u"?process:void 0,r=t?.env||{},n=t?.argv||[];return!("NO_COLOR"in r||n.includes("--no-color"))&&("FORCE_COLOR"in r||n.includes("--color")||t?.platform==="win32"||e&&r.TERM!=="dumb"||"CI"in r)||typeof window<"u"&&!!window.chrome}function dI(e=!1){let t=cI(e),r=(a,s,c,l)=>{let d="",p=0;do d+=a.substring(p,l)+c,p=l+s.length,l=a.indexOf(s,p);while(~l);return d+a.substring(p)},n=(a,s,c=a)=>{let l=d=>{let p=String(d),f=p.indexOf(s,a.length);return~f?a+r(p,s,c,f)+s:a+p+s};return l.open=a,l.close=s,l},o={isColorSupported:t},i=a=>`\x1B[${a}m`;for(let[a,s]of fv)o[a]=t?n(i(s[0]),i(s[1]),s[2]):Us;return o}var yr=dI();function mv(e,t){return t.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(n){if(n!=="default"&&!(n in e)){var o=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return r[n]}})}})}),Object.freeze(e)}function pI(e,t){let r=Object.keys(e),n=t===null?r:r.sort(t);if(Object.getOwnPropertySymbols)for(let o of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,o).enumerable&&n.push(o);return n}function Vi(e,t,r,n,o,i,a=": "){let s="",c=0,l=e.next();if(!l.done){s+=t.spacingOuter;let d=r+t.indent;for(;!l.done;){if(s+=d,c++===t.maxWidth){s+="…";break}let p=i(l.value[0],t,d,n,o),f=i(l.value[1],t,d,n,o);s+=p+a+f,l=e.next(),l.done?t.min||(s+=","):s+=`,${t.spacingInner}`}s+=t.spacingOuter+r}return s}function Md(e,t,r,n,o,i){let a="",s=0,c=e.next();if(!c.done){a+=t.spacingOuter;let l=r+t.indent;for(;!c.done;){if(a+=l,s++===t.maxWidth){a+="…";break}a+=i(c.value,t,l,n,o),c=e.next(),c.done?t.min||(a+=","):a+=`,${t.spacingInner}`}a+=t.spacingOuter+r}return a}function Ya(e,t,r,n,o,i){let a="";e=e instanceof ArrayBuffer?new DataView(e):e;let s=l=>l instanceof DataView,c=s(e)?e.byteLength:e.length;if(c>0){a+=t.spacingOuter;let l=r+t.indent;for(let d=0;d<c;d++){if(a+=l,d===t.maxWidth){a+="…";break}(s(e)||d in e)&&(a+=i(s(e)?e.getInt8(d):e[d],t,l,n,o)),d<c-1?a+=`,${t.spacingInner}`:t.min||(a+=",")}a+=t.spacingOuter+r}return a}function Nd(e,t,r,n,o,i){let a="",s=pI(e,t.compareKeys);if(s.length>0){a+=t.spacingOuter;let c=r+t.indent;for(let l=0;l<s.length;l++){let d=s[l],p=i(d,t,c,n,o),f=i(e[d],t,c,n,o);a+=`${c+p}: ${f}`,l<s.length-1?a+=`,${t.spacingInner}`:t.min||(a+=",")}a+=t.spacingOuter+r}return a}var fI=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,Ll=" ",mI=(e,t,r,n,o,i)=>{let a=e.toString();if(a==="ArrayContaining"||a==="ArrayNotContaining")return++n>t.maxDepth?`[${a}]`:`${a+Ll}[${Ya(e.sample,t,r,n,o,i)}]`;if(a==="ObjectContaining"||a==="ObjectNotContaining")return++n>t.maxDepth?`[${a}]`:`${a+Ll}{${Nd(e.sample,t,r,n,o,i)}}`;if(a==="StringMatching"||a==="StringNotMatching"||a==="StringContaining"||a==="StringNotContaining")return a+Ll+i(e.sample,t,r,n,o);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},hI=e=>e&&e.$$typeof===fI,yI={serialize:mI,test:hI},gI=" ",hv=new Set(["DOMStringMap","NamedNodeMap"]),bI=/^(?:HTML\w*Collection|NodeList)$/;function vI(e){return hv.has(e)||bI.test(e)}var EI=e=>e&&e.constructor&&!!e.constructor.name&&vI(e.constructor.name);function wI(e){return e.constructor.name==="NamedNodeMap"}var _I=(e,t,r,n,o,i)=>{let a=e.constructor.name;return++n>t.maxDepth?`[${a}]`:(t.min?"":a+gI)+(hv.has(a)?`{${Nd(wI(e)?[...e].reduce((s,c)=>(s[c.name]=c.value,s),{}):{...e},t,r,n,o,i)}}`:`[${Ya([...e],t,r,n,o,i)}]`)},TI={serialize:_I,test:EI};function yv(e){return e.replaceAll("<","&lt;").replaceAll(">","&gt;")}function Id(e,t,r,n,o,i,a){let s=n+r.indent,c=r.colors;return e.map(l=>{let d=t[l],p=a(d,r,s,o,i);return typeof d!="string"&&(p.includes(`
166
- `)&&(p=r.spacingOuter+s+p+r.spacingOuter+n),p=`{${p}}`),`${r.spacingInner+n+c.prop.open+l+c.prop.close}=${c.value.open}${p}${c.value.close}`}).join("")}function kd(e,t,r,n,o,i){return e.map(a=>t.spacingOuter+r+(typeof a=="string"?gv(a,t):i(a,t,r,n,o))).join("")}function gv(e,t){let r=t.colors.content;return r.open+yv(e)+r.close}function xI(e,t){let r=t.colors.comment;return`${r.open}<!--${yv(e)}-->${r.close}`}function jd(e,t,r,n,o){let i=n.colors.tag;return`${i.open}<${e}${t&&i.close+t+n.spacingOuter+o+i.open}${r?`>${i.close}${r}${n.spacingOuter}${o}${i.open}</${e}`:`${t&&!n.min?"":" "}/`}>${i.close}`}function qd(e,t){let r=t.colors.tag;return`${r.open}<${e}${r.close} …${r.open} />${r.close}`}var SI=1,bv=3,vv=8,Ev=11,AI=/^(?:(?:HTML|SVG)\w*)?Element$/;function OI(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}function RI(e){let t=e.constructor.name,{nodeType:r,tagName:n}=e,o=typeof n=="string"&&n.includes("-")||OI(e);return r===SI&&(AI.test(t)||o)||r===bv&&t==="Text"||r===vv&&t==="Comment"||r===Ev&&t==="DocumentFragment"}var CI=e=>{var t;return(e==null||(t=e.constructor)===null||t===void 0?void 0:t.name)&&RI(e)};function PI(e){return e.nodeType===bv}function MI(e){return e.nodeType===vv}function Fl(e){return e.nodeType===Ev}var NI=(e,t,r,n,o,i)=>{if(PI(e))return gv(e.data,t);if(MI(e))return xI(e.data,t);let a=Fl(e)?"DocumentFragment":e.tagName.toLowerCase();return++n>t.maxDepth?qd(a,t):jd(a,Id(Fl(e)?[]:Array.from(e.attributes,s=>s.name).sort(),Fl(e)?{}:[...e.attributes].reduce((s,c)=>(s[c.name]=c.value,s),{}),t,r+t.indent,n,o,i),kd(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,n,o,i),t,r)},II={serialize:NI,test:CI},kI="@@__IMMUTABLE_ITERABLE__@@",jI="@@__IMMUTABLE_LIST__@@",qI="@@__IMMUTABLE_KEYED__@@",DI="@@__IMMUTABLE_MAP__@@",$f="@@__IMMUTABLE_ORDERED__@@",LI="@@__IMMUTABLE_RECORD__@@",FI="@@__IMMUTABLE_SEQ__@@",$I="@@__IMMUTABLE_SET__@@",BI="@@__IMMUTABLE_STACK__@@",Kn=e=>`Immutable.${e}`,Hs=e=>`[${e}]`,bi=" ",Bf="…";function UI(e,t,r,n,o,i,a){return++n>t.maxDepth?Hs(Kn(a)):`${Kn(a)+bi}{${Vi(e.entries(),t,r,n,o,i)}}`}function HI(e){let t=0;return{next(){if(t<e._keys.length){let r=e._keys[t++];return{done:!1,value:[r,e.get(r)]}}return{done:!0,value:void 0}}}}function JI(e,t,r,n,o,i){let a=Kn(e._name||"Record");return++n>t.maxDepth?Hs(a):`${a+bi}{${Vi(HI(e),t,r,n,o,i)}}`}function VI(e,t,r,n,o,i){let a=Kn("Seq");return++n>t.maxDepth?Hs(a):e[qI]?`${a+bi}{${e._iter||e._object?Vi(e.entries(),t,r,n,o,i):Bf}}`:`${a+bi}[${e._iter||e._array||e._collection||e._iterable?Md(e.values(),t,r,n,o,i):Bf}]`}function $l(e,t,r,n,o,i,a){return++n>t.maxDepth?Hs(Kn(a)):`${Kn(a)+bi}[${Md(e.values(),t,r,n,o,i)}]`}var zI=(e,t,r,n,o,i)=>e[DI]?UI(e,t,r,n,o,i,e[$f]?"OrderedMap":"Map"):e[jI]?$l(e,t,r,n,o,i,"List"):e[$I]?$l(e,t,r,n,o,i,e[$f]?"OrderedSet":"Set"):e[BI]?$l(e,t,r,n,o,i,"Stack"):e[FI]?VI(e,t,r,n,o,i):JI(e,t,r,n,o,i),GI=e=>e&&(e[kI]===!0||e[LI]===!0),WI={serialize:zI,test:GI};function wv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Uf={exports:{}},je={},Hf;function KI(){if(Hf)return je;Hf=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");function y(g){if(typeof g=="object"&&g!==null){var v=g.$$typeof;switch(v){case e:switch(g=g.type,g){case r:case o:case n:case c:case l:case f:return g;default:switch(g=g&&g.$$typeof,g){case a:case s:case p:case d:return g;case i:return g;default:return v}}case t:return v}}}return je.ContextConsumer=i,je.ContextProvider=a,je.Element=e,je.ForwardRef=s,je.Fragment=r,je.Lazy=p,je.Memo=d,je.Portal=t,je.Profiler=o,je.StrictMode=n,je.Suspense=c,je.SuspenseList=l,je.isContextConsumer=function(g){return y(g)===i},je.isContextProvider=function(g){return y(g)===a},je.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},je.isForwardRef=function(g){return y(g)===s},je.isFragment=function(g){return y(g)===r},je.isLazy=function(g){return y(g)===p},je.isMemo=function(g){return y(g)===d},je.isPortal=function(g){return y(g)===t},je.isProfiler=function(g){return y(g)===o},je.isStrictMode=function(g){return y(g)===n},je.isSuspense=function(g){return y(g)===c},je.isSuspenseList=function(g){return y(g)===l},je.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===o||g===n||g===c||g===l||typeof g=="object"&&g!==null&&(g.$$typeof===p||g.$$typeof===d||g.$$typeof===a||g.$$typeof===i||g.$$typeof===s||g.$$typeof===m||g.getModuleId!==void 0)},je.typeOf=y,je}var Jf;function YI(){return Jf||(Jf=1,Uf.exports=KI()),Uf.exports}var _v=YI(),XI=wv(_v),QI=mv({__proto__:null,default:XI},[_v]),Vf={exports:{}},Ne={},zf;function ZI(){if(zf)return Ne;zf=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function g(v){if(typeof v=="object"&&v!==null){var b=v.$$typeof;switch(b){case e:switch(v=v.type,v){case r:case o:case n:case l:case d:return v;default:switch(v=v&&v.$$typeof,v){case s:case a:case c:case f:case p:case i:return v;default:return b}}case t:return b}}}return Ne.ContextConsumer=a,Ne.ContextProvider=i,Ne.Element=e,Ne.ForwardRef=c,Ne.Fragment=r,Ne.Lazy=f,Ne.Memo=p,Ne.Portal=t,Ne.Profiler=o,Ne.StrictMode=n,Ne.Suspense=l,Ne.SuspenseList=d,Ne.isAsyncMode=function(){return!1},Ne.isConcurrentMode=function(){return!1},Ne.isContextConsumer=function(v){return g(v)===a},Ne.isContextProvider=function(v){return g(v)===i},Ne.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},Ne.isForwardRef=function(v){return g(v)===c},Ne.isFragment=function(v){return g(v)===r},Ne.isLazy=function(v){return g(v)===f},Ne.isMemo=function(v){return g(v)===p},Ne.isPortal=function(v){return g(v)===t},Ne.isProfiler=function(v){return g(v)===o},Ne.isStrictMode=function(v){return g(v)===n},Ne.isSuspense=function(v){return g(v)===l},Ne.isSuspenseList=function(v){return g(v)===d},Ne.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===o||v===n||v===l||v===d||v===m||typeof v=="object"&&v!==null&&(v.$$typeof===f||v.$$typeof===p||v.$$typeof===i||v.$$typeof===a||v.$$typeof===c||v.$$typeof===y||v.getModuleId!==void 0)},Ne.typeOf=g,Ne}var Gf;function ek(){return Gf||(Gf=1,Vf.exports=ZI()),Vf.exports}var Tv=ek(),tk=wv(Tv),rk=mv({__proto__:null,default:tk},[Tv]),nk=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],pn=Object.fromEntries(nk.map(e=>[e,t=>rk[e](t)||QI[e](t)]));function xv(e,t=[]){if(Array.isArray(e))for(let r of e)xv(r,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}function Wf(e){let t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(pn.isFragment(e))return"React.Fragment";if(pn.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(pn.isContextProvider(e))return"Context.Provider";if(pn.isContextConsumer(e))return"Context.Consumer";if(pn.isForwardRef(e)){if(t.displayName)return t.displayName;let r=t.render.displayName||t.render.name||"";return r===""?"ForwardRef":`ForwardRef(${r})`}if(pn.isMemo(e)){let r=t.displayName||t.type.displayName||t.type.name||"";return r===""?"Memo":`Memo(${r})`}}return"UNDEFINED"}function ok(e){let{props:t}=e;return Object.keys(t).filter(r=>r!=="children"&&t[r]!==void 0).sort()}var ik=(e,t,r,n,o,i)=>++n>t.maxDepth?qd(Wf(e),t):jd(Wf(e),Id(ok(e),e.props,t,r+t.indent,n,o,i),kd(xv(e.props.children),t,r+t.indent,n,o,i),t,r),ak=e=>e!=null&&pn.isElement(e),sk={serialize:ik,test:ak},lk=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function uk(e){let{props:t}=e;return t?Object.keys(t).filter(r=>t[r]!==void 0).sort():[]}var ck=(e,t,r,n,o,i)=>++n>t.maxDepth?qd(e.type,t):jd(e.type,e.props?Id(uk(e),e.props,t,r+t.indent,n,o,i):"",e.children?kd(e.children,t,r+t.indent,n,o,i):"",t,r),dk=e=>e&&e.$$typeof===lk,pk={serialize:ck,test:dk},Sv=Object.prototype.toString,fk=Date.prototype.toISOString,mk=Error.prototype.toString,Kf=RegExp.prototype.toString;function Pa(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}function hk(e){return typeof window<"u"&&e===window}var yk=/^Symbol\((.*)\)(.*)$/,gk=/\n/g,Av=class extends Error{constructor(e,t){super(e),this.stack=t,this.name=this.constructor.name}};function bk(e){return e==="[object Array]"||e==="[object ArrayBuffer]"||e==="[object DataView]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object Int8Array]"||e==="[object Int16Array]"||e==="[object Int32Array]"||e==="[object Uint8Array]"||e==="[object Uint8ClampedArray]"||e==="[object Uint16Array]"||e==="[object Uint32Array]"}function vk(e){return Object.is(e,-0)?"-0":String(e)}function Ek(e){return`${e}n`}function Yf(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}function Xf(e){return String(e).replace(yk,"Symbol($1)")}function Qf(e){return`[${mk.call(e)}]`}function Ov(e,t,r,n){if(e===!0||e===!1)return`${e}`;if(e===void 0)return"undefined";if(e===null)return"null";let o=typeof e;if(o==="number")return vk(e);if(o==="bigint")return Ek(e);if(o==="string")return n?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(o==="function")return Yf(e,t);if(o==="symbol")return Xf(e);let i=Sv.call(e);return i==="[object WeakMap]"?"WeakMap {}":i==="[object WeakSet]"?"WeakSet {}":i==="[object Function]"||i==="[object GeneratorFunction]"?Yf(e,t):i==="[object Symbol]"?Xf(e):i==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":fk.call(e):i==="[object Error]"?Qf(e):i==="[object RegExp]"?r?Kf.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):Kf.call(e):e instanceof Error?Qf(e):null}function Rv(e,t,r,n,o,i){if(o.includes(e))return"[Circular]";o=[...o],o.push(e);let a=++n>t.maxDepth,s=t.min;if(t.callToJSON&&!a&&e.toJSON&&typeof e.toJSON=="function"&&!i)return Lr(e.toJSON(),t,r,n,o,!0);let c=Sv.call(e);return c==="[object Arguments]"?a?"[Arguments]":`${s?"":"Arguments "}[${Ya(e,t,r,n,o,Lr)}]`:bk(c)?a?`[${e.constructor.name}]`:`${s||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${Ya(e,t,r,n,o,Lr)}]`:c==="[object Map]"?a?"[Map]":`Map {${Vi(e.entries(),t,r,n,o,Lr," => ")}}`:c==="[object Set]"?a?"[Set]":`Set {${Md(e.values(),t,r,n,o,Lr)}}`:a||hk(e)?`[${Pa(e)}]`:`${s||!t.printBasicPrototype&&Pa(e)==="Object"?"":`${Pa(e)} `}{${Nd(e,t,r,n,o,Lr)}}`}var wk={test:e=>e&&e instanceof Error,serialize(e,t,r,n,o,i){if(o.includes(e))return"[Circular]";o=[...o,e];let a=++n>t.maxDepth,{message:s,cause:c,...l}=e,d={message:s,...typeof c<"u"?{cause:c}:{},...e instanceof AggregateError?{errors:e.errors}:{},...l},p=e.name!=="Error"?e.name:Pa(e);return a?`[${p}]`:`${p} {${Vi(Object.entries(d).values(),t,r,n,o,i)}}`}};function _k(e){return e.serialize!=null}function Cv(e,t,r,n,o,i){let a;try{a=_k(e)?e.serialize(t,r,n,o,i,Lr):e.print(t,s=>Lr(s,r,n,o,i),s=>{let c=n+r.indent;return c+s.replaceAll(gk,`
167
- ${c}`)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors)}catch(s){throw new Av(s.message,s.stack)}if(typeof a!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof a}".`);return a}function Pv(e,t){for(let r of e)try{if(r.test(t))return r}catch(n){throw new Av(n.message,n.stack)}return null}function Lr(e,t,r,n,o,i){let a=Pv(t.plugins,e);if(a!==null)return Cv(a,e,t,r,n,o);let s=Ov(e,t.printFunctionName,t.escapeRegex,t.escapeString);return s!==null?s:Rv(e,t,r,n,o,i)}var Dd={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},Mv=Object.keys(Dd),Jt={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:Dd};function Tk(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(Jt,t))throw new Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}function xk(){return Mv.reduce((e,t)=>{let r=Dd[t],n=r&&yr[r];if(n&&typeof n.close=="string"&&typeof n.open=="string")e[t]=n;else throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${r}" is undefined in ansi-styles.`);return e},Object.create(null))}function Sk(){return Mv.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}function Nv(e){return e?.printFunctionName??Jt.printFunctionName}function Iv(e){return e?.escapeRegex??Jt.escapeRegex}function kv(e){return e?.escapeString??Jt.escapeString}function Zf(e){return{callToJSON:e?.callToJSON??Jt.callToJSON,colors:e?.highlight?xk():Sk(),compareKeys:typeof e?.compareKeys=="function"||e?.compareKeys===null?e.compareKeys:Jt.compareKeys,escapeRegex:Iv(e),escapeString:kv(e),indent:e?.min?"":Ak(e?.indent??Jt.indent),maxDepth:e?.maxDepth??Jt.maxDepth,maxWidth:e?.maxWidth??Jt.maxWidth,min:e?.min??Jt.min,plugins:e?.plugins??Jt.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:Nv(e),spacingInner:e?.min?" ":`
168
- `,spacingOuter:e?.min?"":`
169
- `}}function Ak(e){return Array.from({length:e+1}).join(" ")}function nr(e,t){if(t&&(Tk(t),t.plugins)){let n=Pv(t.plugins,e);if(n!==null)return Cv(n,e,Zf(t),"",0,[])}let r=Ov(e,Nv(t),Iv(t),kv(t));return r!==null?r:Rv(e,Zf(t),"",0,[])}var Ld={AsymmetricMatcher:yI,DOMCollection:TI,DOMElement:II,Immutable:WI,ReactElement:sk,ReactTestComponent:pk,Error:wk},em={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},Ok={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},Yn="…";function Rk(e,t){let r=em[Ok[t]]||em[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}function Ck({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!0,showProxy:o=!1,maxArrayLength:i=1/0,breakLength:a=1/0,seen:s=[],truncate:c=1/0,stylize:l=String}={},d){let p={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!n,showProxy:!!o,maxArrayLength:Number(i),breakLength:Number(a),truncate:Number(c),seen:s,inspect:d,stylize:l};return p.colors&&(p.stylize=Rk),p}function Pk(e){return e>="\uD800"&&e<="\uDBFF"}function Xr(e,t,r=Yn){e=String(e);let n=r.length,o=e.length;if(n>t&&o>n)return r;if(o>t&&o>n){let i=t-n;return i>0&&Pk(e[i-1])&&(i=i-1),`${e.slice(0,i)}${r}`}return e}function Kt(e,t,r,n=", "){r=r||t.inspect;let o=e.length;if(o===0)return"";let i=t.truncate,a="",s="",c="";for(let l=0;l<o;l+=1){let d=l+1===e.length,p=l+2===e.length;c=`${Yn}(${e.length-l})`;let f=e[l];t.truncate=i-a.length-(d?0:n.length);let m=s||r(f,t)+(d?"":n),y=a.length+m.length,g=y+c.length;if(d&&y>i&&a.length+c.length<=i||!d&&!p&&g>i||(s=d?"":r(e[l+1],t)+(p?"":n),!d&&p&&g>i&&y+s.length>i))break;if(a+=m,!d&&!p&&y+s.length>=i){c=`${Yn}(${e.length-l-1})`;break}c=""}return`${a}${c}`}function Mk(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function vi([e,t],r){return r.truncate-=2,typeof e=="string"?e=Mk(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}function Nk(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let n=Kt(e,t);t.truncate-=n.length;let o="";return r.length&&(o=Kt(r.map(i=>[i,e[i]]),t,vi)),`[ ${n}${o?`, ${o}`:""} ]`}var Ik=e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function cr(e,t){let r=Ik(e);t.truncate-=r.length+4;let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`${r}[]`;let o="";for(let a=0;a<e.length;a++){let s=`${t.stylize(Xr(e[a],t.truncate),"number")}${a===e.length-1?"":", "}`;if(t.truncate-=s.length,e[a]!==e.length&&t.truncate<=3){o+=`${Yn}(${e.length-e[a]+1})`;break}o+=s}let i="";return n.length&&(i=Kt(n.map(a=>[a,e[a]]),t,vi)),`${r}[ ${o}${i?`, ${i}`:""} ]`}function kk(e,t){let r=e.toJSON();if(r===null)return"Invalid Date";let n=r.split("T"),o=n[0];return t.stylize(`${o}T${Xr(n[1],t.truncate-o.length-1)}`,"date")}function tm(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${Xr(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}function jk([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}function qk(e){let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}function Dk(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${Kt(qk(e),t,jk)} }`)}var Lk=Number.isNaN||(e=>e!==e);function rm(e,t){return Lk(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(Xr(String(e),t.truncate),"number")}function nm(e,t){let r=Xr(e.toString(),t.truncate-1);return r!==Yn&&(r+="n"),t.stylize(r,"bigint")}function Fk(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${Xr(o,n)}/${r}`,"regexp")}function $k(e){let t=[];return e.forEach(r=>{t.push(r)}),t}function Bk(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${Kt($k(e),t)} }`)}var om=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),Uk={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},Hk=16;function Jk(e){return Uk[e]||`\\u${`0000${e.charCodeAt(0).toString(Hk)}`.slice(-4)}`}function im(e,t){return om.test(e)&&(e=e.replace(om,Jk)),t.stylize(`'${Xr(e,t.truncate-2)}'`,"string")}function am(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}var jv=()=>"Promise{…}";try{let{getPromiseDetails:e,kPending:t,kRejected:r}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(jv=(n,o)=>{let[i,a]=e(n);return i===t?"Promise{<pending>}":`Promise${i===r?"!":""}{${o.inspect(a,o)}}`})}catch{}var Vk=jv;function Ma(e,t){let r=Object.getOwnPropertyNames(e),n=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(r.length===0&&n.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let o=Kt(r.map(s=>[s,e[s]]),t,vi),i=Kt(n.map(s=>[s,e[s]]),t,vi);t.seen.pop();let a="";return o&&i&&(a=", "),`{ ${o}${a}${i} }`}var Bl=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function zk(e,t){let r="";return Bl&&Bl in e&&(r=e[Bl]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${Ma(e,t)}`}function Gk(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${Kt(e,t)} ]`)}var Wk=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function Kk(e,t){let r=Object.getOwnPropertyNames(e).filter(a=>Wk.indexOf(a)===-1),n=e.name;t.truncate-=n.length;let o="";if(typeof e.message=="string"?o=Xr(e.message,t.truncate):r.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let i=Kt(r.map(a=>[a,e[a]]),t,vi);return`${n}${o}${i?` { ${i} }`:""}`}function Yk([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}function ku(e,t){return Kt(e,t,Xk,`
170
- `)}function Xk(e,t){switch(e.nodeType){case 1:return qv(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}function qv(e,t){let r=e.getAttributeNames(),n=e.tagName.toLowerCase(),o=t.stylize(`<${n}`,"special"),i=t.stylize(">","special"),a=t.stylize(`</${n}>`,"special");t.truncate-=n.length*2+5;let s="";r.length>0&&(s+=" ",s+=Kt(r.map(d=>[d,e.getAttribute(d)]),t,Yk," ")),t.truncate-=s.length;let c=t.truncate,l=ku(e.children,t);return l&&l.length>c&&(l=`${Yn}(${e.children.length})`),`${o}${s}${i}${l}${a}`}var Qk=typeof Symbol=="function"&&typeof Symbol.for=="function",Ul=Qk?Symbol.for("chai/inspect"):"@@chai/inspect",Hl=Symbol.for("nodejs.util.inspect.custom"),sm=new WeakMap,lm={},um={undefined:(e,t)=>t.stylize("undefined","undefined"),null:(e,t)=>t.stylize("null","null"),boolean:(e,t)=>t.stylize(String(e),"boolean"),Boolean:(e,t)=>t.stylize(String(e),"boolean"),number:rm,Number:rm,bigint:nm,BigInt:nm,string:im,String:im,function:tm,Function:tm,symbol:am,Symbol:am,Array:Nk,Date:kk,Map:Dk,Set:Bk,RegExp:Fk,Promise:Vk,WeakSet:(e,t)=>t.stylize("WeakSet{…}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{…}","special"),Arguments:Gk,Int8Array:cr,Uint8Array:cr,Uint8ClampedArray:cr,Int16Array:cr,Uint16Array:cr,Int32Array:cr,Uint32Array:cr,Float32Array:cr,Float64Array:cr,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:Kk,HTMLCollection:ku,NodeList:ku},Zk=(e,t,r)=>Ul in e&&typeof e[Ul]=="function"?e[Ul](t):Hl in e&&typeof e[Hl]=="function"?e[Hl](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&sm.has(e.constructor)?sm.get(e.constructor)(e,t):lm[r]?lm[r](e,t):"",ej=Object.prototype.toString;function ju(e,t={}){let r=Ck(t,ju),{customInspect:n}=r,o=e===null?"null":typeof e;if(o==="object"&&(o=ej.call(e).slice(8,-1)),o in um)return um[o](e,r);if(n&&e){let a=Zk(e,r,o);if(a)return typeof a=="string"?a:ju(a,r)}let i=e?Object.getPrototypeOf(e):!1;return i===Object.prototype||i===null?Ma(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?qv(e,r):"constructor"in e?e.constructor!==Object?zk(e,r):Ma(e,r):e===Object(e)?Ma(e,r):r.stylize(String(e),o)}var{AsymmetricMatcher:tj,DOMCollection:rj,DOMElement:nj,Immutable:oj,ReactElement:ij,ReactTestComponent:aj}=Ld,cm=[aj,ij,nj,rj,oj,tj];function Mt(e,t=10,{maxLength:r,...n}={}){let o=r??1e4,i;try{i=nr(e,{maxDepth:t,escapeString:!1,plugins:cm,...n})}catch{i=nr(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:cm,...n})}return i.length>=o&&t>1?Mt(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),{maxLength:r,...n}):i}var sj=/%[sdjifoOc%]/g;function lj(...e){if(typeof e[0]!="string"){let i=[];for(let a=0;a<e.length;a++)i.push(Jo(e[a],{depth:0,colors:!1}));return i.join(" ")}let t=e.length,r=1,n=e[0],o=String(n).replace(sj,i=>{if(i==="%%")return"%";if(r>=t)return i;switch(i){case"%s":{let a=e[r++];return typeof a=="bigint"?`${a.toString()}n`:typeof a=="number"&&a===0&&1/a<0?"-0":typeof a=="object"&&a!==null?typeof a.toString=="function"&&a.toString!==Object.prototype.toString?a.toString():Jo(a,{depth:0,colors:!1}):String(a)}case"%d":{let a=e[r++];return typeof a=="bigint"?`${a.toString()}n`:Number(a).toString()}case"%i":{let a=e[r++];return typeof a=="bigint"?`${a.toString()}n`:Number.parseInt(String(a)).toString()}case"%f":return Number.parseFloat(String(e[r++])).toString();case"%o":return Jo(e[r++],{showHidden:!0,showProxy:!0});case"%O":return Jo(e[r++]);case"%c":return r++,"";case"%j":try{return JSON.stringify(e[r++])}catch(a){let s=a.message;if(s.includes("circular structure")||s.includes("cyclic structures")||s.includes("cyclic object"))return"[Circular]";throw a}default:return i}});for(let i=e[r];r<t;i=e[++r])i===null||typeof i!="object"?o+=` ${i}`:o+=` ${Jo(i)}`;return o}function Jo(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),ju(e,t)}function Dv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function dr(e,t,r){let n=typeof e;if(!r.includes(n))throw new TypeError(`${t} value must be ${r.join(" or ")}, received "${n}"`)}function Na(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function uj(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function Xa(e){return Object.prototype.toString.apply(e).slice(8,-1)}function cj(e,t){let r=typeof t=="function"?t:n=>t.add(n);Object.getOwnPropertyNames(e).forEach(r),Object.getOwnPropertySymbols(e).forEach(r)}function Lv(e){let t=new Set;return uj(e)?[]:(cj(e,t),Array.from(t))}var Fv={forceWritable:!1};function dm(e,t=Fv){return qu(e,new WeakMap,t)}function qu(e,t,r=Fv){let n,o;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(o=Array.from({length:n=e.length}),t.set(e,o);n--;)o[n]=qu(e[n],t,r);return o}if(Object.prototype.toString.call(e)==="[object Object]"){o=Object.create(Object.getPrototypeOf(e)),t.set(e,o);let i=Lv(e);for(let a of i){let s=Object.getOwnPropertyDescriptor(e,a);if(!s)continue;let c=qu(e[a],t,r);r.forceWritable?Object.defineProperty(o,a,{enumerable:s.enumerable,configurable:!0,writable:!0,value:c}):"get"in s?Object.defineProperty(o,a,{...s,get(){return c}}):Object.defineProperty(o,a,{...s,value:c})}return o}return e}function dj(){}var pt=-1,st=1,ze=0,Je=class{0;1;constructor(e,t){this[0]=e,this[1]=t}};function pj(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let r=0,n=Math.min(e.length,t.length),o=n,i=0;for(;r<o;)e.substring(i,o)===t.substring(i,o)?(r=o,i=r):n=o,o=Math.floor((n-r)/2+r);return o}function $v(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let r=0,n=Math.min(e.length,t.length),o=n,i=0;for(;r<o;)e.substring(e.length-o,e.length-i)===t.substring(t.length-o,t.length-i)?(r=o,i=r):n=o,o=Math.floor((n-r)/2+r);return o}function pm(e,t){let r=e.length,n=t.length;if(r===0||n===0)return 0;r>n?e=e.substring(r-n):r<n&&(t=t.substring(0,r));let o=Math.min(r,n);if(e===t)return o;let i=0,a=1;for(;;){let s=e.substring(o-a),c=t.indexOf(s);if(c===-1)return i;a+=c,(c===0||e.substring(o-a)===t.substring(0,a))&&(i=a,a++)}}function fj(e){let t=!1,r=[],n=0,o=null,i=0,a=0,s=0,c=0,l=0;for(;i<e.length;)e[i][0]===ze?(r[n++]=i,a=c,s=l,c=0,l=0,o=e[i][1]):(e[i][0]===st?c+=e[i][1].length:l+=e[i][1].length,o&&o.length<=Math.max(a,s)&&o.length<=Math.max(c,l)&&(e.splice(r[n-1],0,new Je(pt,o)),e[r[n-1]+1][0]=st,n--,n--,i=n>0?r[n-1]:-1,a=0,s=0,c=0,l=0,o=null,t=!0)),i++;for(t&&Bv(e),yj(e),i=1;i<e.length;){if(e[i-1][0]===pt&&e[i][0]===st){let d=e[i-1][1],p=e[i][1],f=pm(d,p),m=pm(p,d);f>=m?(f>=d.length/2||f>=p.length/2)&&(e.splice(i,0,new Je(ze,p.substring(0,f))),e[i-1][1]=d.substring(0,d.length-f),e[i+1][1]=p.substring(f),i++):(m>=d.length/2||m>=p.length/2)&&(e.splice(i,0,new Je(ze,d.substring(0,m))),e[i-1][0]=st,e[i-1][1]=p.substring(0,p.length-m),e[i+1][0]=pt,e[i+1][1]=d.substring(m),i++),i++}i++}}var fm=/[^a-z0-9]/i,mm=/\s/,hm=/[\r\n]/,mj=/\n\r?\n$/,hj=/^\r?\n\r?\n/;function yj(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===ze&&e[t+1][0]===ze){let r=e[t-1][1],n=e[t][1],o=e[t+1][1],i=$v(r,n);if(i){let d=n.substring(n.length-i);r=r.substring(0,r.length-i),n=d+n.substring(0,n.length-i),o=d+o}let a=r,s=n,c=o,l=da(r,n)+da(n,o);for(;n.charAt(0)===o.charAt(0);){r+=n.charAt(0),n=n.substring(1)+o.charAt(0),o=o.substring(1);let d=da(r,n)+da(n,o);d>=l&&(l=d,a=r,s=n,c=o)}e[t-1][1]!==a&&(a?e[t-1][1]=a:(e.splice(t-1,1),t--),e[t][1]=s,c?e[t+1][1]=c:(e.splice(t+1,1),t--))}t++}}function Bv(e){e.push(new Je(ze,""));let t=0,r=0,n=0,o="",i="",a;for(;t<e.length;)switch(e[t][0]){case st:n++,i+=e[t][1],t++;break;case pt:r++,o+=e[t][1],t++;break;case ze:r+n>1?(r!==0&&n!==0&&(a=pj(i,o),a!==0&&(t-r-n>0&&e[t-r-n-1][0]===ze?e[t-r-n-1][1]+=i.substring(0,a):(e.splice(0,0,new Je(ze,i.substring(0,a))),t++),i=i.substring(a),o=o.substring(a)),a=$v(i,o),a!==0&&(e[t][1]=i.substring(i.length-a)+e[t][1],i=i.substring(0,i.length-a),o=o.substring(0,o.length-a))),t-=r+n,e.splice(t,r+n),o.length&&(e.splice(t,0,new Je(pt,o)),t++),i.length&&(e.splice(t,0,new Je(st,i)),t++),t++):t!==0&&e[t-1][0]===ze?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,n=0,r=0,o="",i="";break}e[e.length-1][1]===""&&e.pop();let s=!1;for(t=1;t<e.length-1;)e[t-1][0]===ze&&e[t+1][0]===ze&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),s=!0):e[t][1].substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),s=!0)),t++;s&&Bv(e)}function da(e,t){if(!e||!t)return 6;let r=e.charAt(e.length-1),n=t.charAt(0),o=r.match(fm),i=n.match(fm),a=o&&r.match(mm),s=i&&n.match(mm),c=a&&r.match(hm),l=s&&n.match(hm),d=c&&e.match(mj),p=l&&t.match(hj);return d||p?5:c||l?4:o&&!a&&s?3:a||s?2:o||i?1:0}var Uv="Compared values have no visual difference.",gj="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",pa={},ym;function bj(){if(ym)return pa;ym=1,Object.defineProperty(pa,"__esModule",{value:!0}),pa.default=f;let e="diff-sequences",t=0,r=(m,y,g,v,b)=>{let T=0;for(;m<y&&g<v&&b(m,g);)m+=1,g+=1,T+=1;return T},n=(m,y,g,v,b)=>{let T=0;for(;m<=y&&g<=v&&b(y,v);)y-=1,v-=1,T+=1;return T},o=(m,y,g,v,b,T,A)=>{let R=0,P=-m,E=T[R],_=E;T[R]+=r(E+1,y,v+E-P+1,g,b);let x=m<A?m:A;for(R+=1,P+=2;R<=x;R+=1,P+=2){if(R!==m&&_<T[R])E=T[R];else if(E=_+1,y<=E)return R-1;_=T[R],T[R]=E+r(E+1,y,v+E-P+1,g,b)}return A},i=(m,y,g,v,b,T,A)=>{let R=0,P=m,E=T[R],_=E;T[R]-=n(y,E-1,g,v+E-P-1,b);let x=m<A?m:A;for(R+=1,P-=2;R<=x;R+=1,P-=2){if(R!==m&&T[R]<_)E=T[R];else if(E=_-1,E<y)return R-1;_=T[R],T[R]=E-n(y,E-1,g,v+E-P-1,b)}return A},a=(m,y,g,v,b,T,A,R,P,E,_)=>{let x=v-y,S=g-y,F=b-v-S,j=-F-(m-1),J=-F+(m-1),N=t,O=m<R?m:R;for(let q=0,$=-m;q<=O;q+=1,$+=2){let V=q===0||q!==m&&N<A[q],Y=V?A[q]:N,oe=V?Y:Y+1,ue=x+oe-$,D=r(oe+1,g,ue+1,b,T),L=oe+D;if(N=A[q],A[q]=L,j<=$&&$<=J){let G=(m-1-($+F))/2;if(G<=E&&P[G]-1<=L){let Q=x+Y-(V?$+1:$-1),X=n(y,Y,v,Q,T),K=Y-X,ie=Q-X,se=K+1,Te=ie+1;_.nChangePreceding=m-1,m-1===se+Te-y-v?(_.aEndPreceding=y,_.bEndPreceding=v):(_.aEndPreceding=se,_.bEndPreceding=Te),_.nCommonPreceding=X,X!==0&&(_.aCommonPreceding=se,_.bCommonPreceding=Te),_.nCommonFollowing=D,D!==0&&(_.aCommonFollowing=oe+1,_.bCommonFollowing=ue+1);let B=L+1,te=ue+D+1;return _.nChangeFollowing=m-1,m-1===g+b-B-te?(_.aStartFollowing=g,_.bStartFollowing=b):(_.aStartFollowing=B,_.bStartFollowing=te),!0}}}return!1},s=(m,y,g,v,b,T,A,R,P,E,_)=>{let x=b-g,S=g-y,F=b-v-S,j=F-m,J=F+m,N=t,O=m<E?m:E;for(let q=0,$=m;q<=O;q+=1,$-=2){let V=q===0||q!==m&&P[q]<N,Y=V?P[q]:N,oe=V?Y:Y-1,ue=x+oe-$,D=n(y,oe-1,v,ue-1,T),L=oe-D;if(N=P[q],P[q]=L,j<=$&&$<=J){let G=(m+($-F))/2;if(G<=R&&L-1<=A[G]){let Q=ue-D;if(_.nChangePreceding=m,m===L+Q-y-v?(_.aEndPreceding=y,_.bEndPreceding=v):(_.aEndPreceding=L,_.bEndPreceding=Q),_.nCommonPreceding=D,D!==0&&(_.aCommonPreceding=L,_.bCommonPreceding=Q),_.nChangeFollowing=m-1,m===1)_.nCommonFollowing=0,_.aStartFollowing=g,_.bStartFollowing=b;else{let X=x+Y-(V?$-1:$+1),K=r(Y,g,X,b,T);_.nCommonFollowing=K,K!==0&&(_.aCommonFollowing=Y,_.bCommonFollowing=X);let ie=Y+K,se=X+K;m-1===g+b-ie-se?(_.aStartFollowing=g,_.bStartFollowing=b):(_.aStartFollowing=ie,_.bStartFollowing=se)}return!0}}}return!1},c=(m,y,g,v,b,T,A,R,P)=>{let E=v-y,_=b-g,x=g-y,S=b-v,F=S-x,j=x,J=x;if(A[0]=y-1,R[0]=g,F%2===0){let N=(m||F)/2,O=(x+S)/2;for(let q=1;q<=O;q+=1)if(j=o(q,g,b,E,T,A,j),q<N)J=i(q,y,v,_,T,R,J);else if(s(q,y,g,v,b,T,A,j,R,J,P))return}else{let N=((m||F)+1)/2,O=(x+S+1)/2,q=1;for(j=o(q,g,b,E,T,A,j),q+=1;q<=O;q+=1)if(J=i(q-1,y,v,_,T,R,J),q<N)j=o(q,g,b,E,T,A,j);else if(a(q,y,g,v,b,T,A,j,R,J,P))return}throw new Error(`${e}: no overlap aStart=${y} aEnd=${g} bStart=${v} bEnd=${b}`)},l=(m,y,g,v,b,T,A,R,P,E)=>{if(b-v<g-y){if(T=!T,T&&A.length===1){let{foundSubsequence:G,isCommon:Q}=A[0];A[1]={foundSubsequence:(X,K,ie)=>{G(X,ie,K)},isCommon:(X,K)=>Q(K,X)}}let D=y,L=g;y=v,g=b,v=D,b=L}let{foundSubsequence:_,isCommon:x}=A[T?1:0];c(m,y,g,v,b,x,R,P,E);let{nChangePreceding:S,aEndPreceding:F,bEndPreceding:j,nCommonPreceding:J,aCommonPreceding:N,bCommonPreceding:O,nCommonFollowing:q,aCommonFollowing:$,bCommonFollowing:V,nChangeFollowing:Y,aStartFollowing:oe,bStartFollowing:ue}=E;y<F&&v<j&&l(S,y,F,v,j,T,A,R,P,E),J!==0&&_(J,N,O),q!==0&&_(q,$,V),oe<g&&ue<b&&l(Y,oe,g,ue,b,T,A,R,P,E)},d=(m,y)=>{if(typeof y!="number")throw new TypeError(`${e}: ${m} typeof ${typeof y} is not a number`);if(!Number.isSafeInteger(y))throw new RangeError(`${e}: ${m} value ${y} is not a safe integer`);if(y<0)throw new RangeError(`${e}: ${m} value ${y} is a negative integer`)},p=(m,y)=>{let g=typeof y;if(g!=="function")throw new TypeError(`${e}: ${m} typeof ${g} is not a function`)};function f(m,y,g,v){d("aLength",m),d("bLength",y),p("isCommon",g),p("foundSubsequence",v);let b=r(0,m,0,y,g);if(b!==0&&v(b,0,0),m!==b||y!==b){let T=b,A=b,R=n(T,m-1,A,y-1,g),P=m-R,E=y-R,_=b+R;m!==_&&y!==_&&l(0,T,P,A,E,!1,[{foundSubsequence:v,isCommon:g}],[t],[t],{aCommonFollowing:t,aCommonPreceding:t,aEndPreceding:t,aStartFollowing:t,bCommonFollowing:t,bCommonPreceding:t,bEndPreceding:t,bStartFollowing:t,nChangeFollowing:t,nChangePreceding:t,nCommonFollowing:t,nCommonPreceding:t}),R!==0&&v(R,P,E)}}return pa}var vj=bj(),Hv=Dv(vj);function Ej(e,t){return e.replace(/\s+$/,r=>t(r))}function Fd(e,t,r,n,o,i){return e.length!==0?r(`${n} ${Ej(e,o)}`):n!==" "?r(n):t&&i.length!==0?r(`${n} ${i}`):""}function Jv(e,t,{aColor:r,aIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return Fd(e,t,r,n,o,i)}function Vv(e,t,{bColor:r,bIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return Fd(e,t,r,n,o,i)}function zv(e,t,{commonColor:r,commonIndicator:n,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return Fd(e,t,r,n,o,i)}function gm(e,t,r,n,{patchColor:o}){return o(`@@ -${e+1},${t-e} +${r+1},${n-r} @@`)}function wj(e,t){let r=e.length,n=t.contextLines,o=n+n,i=r,a=!1,s=0,c=0;for(;c!==r;){let R=c;for(;c!==r&&e[c][0]===ze;)c+=1;if(R!==c)if(R===0)c>n&&(i-=c-n,a=!0);else if(c===r){let P=c-R;P>n&&(i-=P-n,a=!0)}else{let P=c-R;P>o&&(i-=P-o,s+=1)}for(;c!==r&&e[c][0]!==ze;)c+=1}let l=s!==0||a;s!==0?i+=s+1:a&&(i+=1);let d=i-1,p=[],f=0;l&&p.push("");let m=0,y=0,g=0,v=0,b=R=>{let P=p.length;p.push(zv(R,P===0||P===d,t)),g+=1,v+=1},T=R=>{let P=p.length;p.push(Jv(R,P===0||P===d,t)),g+=1},A=R=>{let P=p.length;p.push(Vv(R,P===0||P===d,t)),v+=1};for(c=0;c!==r;){let R=c;for(;c!==r&&e[c][0]===ze;)c+=1;if(R!==c)if(R===0){c>n&&(R=c-n,m=R,y=R,g=m,v=y);for(let P=R;P!==c;P+=1)b(e[P][1])}else if(c===r){let P=c-R>n?R+n:c;for(let E=R;E!==P;E+=1)b(e[E][1])}else{let P=c-R;if(P>o){let E=R+n;for(let x=R;x!==E;x+=1)b(e[x][1]);p[f]=gm(m,g,y,v,t),f=p.length,p.push("");let _=P-o;m=g+_,y=v+_,g=m,v=y;for(let x=c-n;x!==c;x+=1)b(e[x][1])}else for(let E=R;E!==c;E+=1)b(e[E][1])}for(;c!==r&&e[c][0]===pt;)T(e[c][1]),c+=1;for(;c!==r&&e[c][0]===st;)A(e[c][1]),c+=1}return l&&(p[f]=gm(m,g,y,v,t)),p.join(`
171
- `)}function _j(e,t){return e.map((r,n,o)=>{let i=r[1],a=n===0||n===o.length-1;switch(r[0]){case pt:return Jv(i,a,t);case st:return Vv(i,a,t);default:return zv(i,a,t)}}).join(`
172
- `)}var Jl=e=>e,Gv=5,Tj=0;function xj(){return{aAnnotation:"Expected",aColor:yr.green,aIndicator:"-",bAnnotation:"Received",bColor:yr.red,bIndicator:"+",changeColor:yr.inverse,changeLineTrailingSpaceColor:Jl,commonColor:yr.dim,commonIndicator:" ",commonLineTrailingSpaceColor:Jl,compareKeys:void 0,contextLines:Gv,emptyFirstOrLastLinePlaceholder:"",expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:yr.yellow,printBasicPrototype:!1,truncateThreshold:Tj,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:Jl}}function Sj(e){return e&&typeof e=="function"?e:void 0}function Aj(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:Gv}function Mn(e={}){return{...xj(),...e,compareKeys:Sj(e.compareKeys),contextLines:Aj(e.contextLines)}}function Fn(e){return e.length===1&&e[0].length===0}function Oj(e){let t=0,r=0;return e.forEach(n=>{switch(n[0]){case pt:t+=1;break;case st:r+=1;break}}),{a:t,b:r}}function Rj({aAnnotation:e,aColor:t,aIndicator:r,bAnnotation:n,bColor:o,bIndicator:i,includeChangeCounts:a,omitAnnotationLines:s},c){if(s)return"";let l="",d="";if(a){let m=String(c.a),y=String(c.b),g=n.length-e.length,v=" ".repeat(Math.max(0,g)),b=" ".repeat(Math.max(0,-g)),T=y.length-m.length,A=" ".repeat(Math.max(0,T)),R=" ".repeat(Math.max(0,-T));l=`${v} ${r} ${A}${m}`,d=`${b} ${i} ${R}${y}`}let p=`${r} ${e}${l}`,f=`${i} ${n}${d}`;return`${t(p)}
173
- ${o(f)}
174
-
175
- `}function $d(e,t,r){return Rj(r,Oj(e))+(r.expand?_j(e,r):wj(e,r))+(t?r.truncateAnnotationColor(`
176
- ${r.truncateAnnotation}`):"")}function Js(e,t,r){let n=Mn(r),[o,i]=Wv(Fn(e)?[]:e,Fn(t)?[]:t,n);return $d(o,i,n)}function Cj(e,t,r,n,o){if(Fn(e)&&Fn(r)&&(e=[],r=[]),Fn(t)&&Fn(n)&&(t=[],n=[]),e.length!==r.length||t.length!==n.length)return Js(e,t,o);let[i,a]=Wv(r,n,o),s=0,c=0;return i.forEach(l=>{switch(l[0]){case pt:l[1]=e[s],s+=1;break;case st:l[1]=t[c],c+=1;break;default:l[1]=t[c],s+=1,c+=1}}),$d(i,a,Mn(o))}function Wv(e,t,r){let n=r?.truncateThreshold??!1,o=Math.max(Math.floor(r?.truncateThreshold??0),0),i=n?Math.min(e.length,o):e.length,a=n?Math.min(t.length,o):t.length,s=i!==e.length||a!==t.length,c=(f,m)=>e[f]===t[m],l=[],d=0,p=0;for(Hv(i,a,c,(f,m,y)=>{for(;d!==m;d+=1)l.push(new Je(pt,e[d]));for(;p!==y;p+=1)l.push(new Je(st,t[p]));for(;f!==0;f-=1,d+=1,p+=1)l.push(new Je(ze,t[p]))});d!==i;d+=1)l.push(new Je(pt,e[d]));for(;p!==a;p+=1)l.push(new Je(st,t[p]));return[l,s]}function bm(e){if(e===void 0)return"undefined";if(e===null)return"null";if(Array.isArray(e))return"array";if(typeof e=="boolean")return"boolean";if(typeof e=="function")return"function";if(typeof e=="number")return"number";if(typeof e=="string")return"string";if(typeof e=="bigint")return"bigint";if(typeof e=="object"){if(e!=null){if(e.constructor===RegExp)return"regexp";if(e.constructor===Map)return"map";if(e.constructor===Set)return"set";if(e.constructor===Date)return"date"}return"object"}else if(typeof e=="symbol")return"symbol";throw new Error(`value of unknown type: ${e}`)}function vm(e){return e.includes(`\r
177
- `)?`\r
178
- `:`
179
- `}function Pj(e,t,r){let n=r?.truncateThreshold??!1,o=Math.max(Math.floor(r?.truncateThreshold??0),0),i=e.length,a=t.length;if(n){let f=e.includes(`
180
- `),m=t.includes(`
181
- `),y=vm(e),g=vm(t),v=f?`${e.split(y,o).join(y)}
182
- `:e,b=m?`${t.split(g,o).join(g)}
183
- `:t;i=v.length,a=b.length}let s=i!==e.length||a!==t.length,c=(f,m)=>e[f]===t[m],l=0,d=0,p=[];return Hv(i,a,c,(f,m,y)=>{l!==m&&p.push(new Je(pt,e.slice(l,m))),d!==y&&p.push(new Je(st,t.slice(d,y))),l=m+f,d=y+f,p.push(new Je(ze,t.slice(y,d)))}),l!==i&&p.push(new Je(pt,e.slice(l))),d!==a&&p.push(new Je(st,t.slice(d))),[p,s]}function Mj(e,t,r){return t.reduce((n,o)=>n+(o[0]===ze?o[1]:o[0]===e&&o[1].length!==0?r(o[1]):""),"")}var Em=class{op;line;lines;changeColor;constructor(e,t){this.op=e,this.line=[],this.lines=[],this.changeColor=t}pushSubstring(e){this.pushDiff(new Je(this.op,e))}pushLine(){this.lines.push(this.line.length!==1?new Je(this.op,Mj(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new Je(this.op,this.line[0][1])),this.line.length=0}isLineEmpty(){return this.line.length===0}pushDiff(e){this.line.push(e)}align(e){let t=e[1];if(t.includes(`
184
- `)){let r=t.split(`
185
- `),n=r.length-1;r.forEach((o,i)=>{i<n?(this.pushSubstring(o),this.pushLine()):o.length!==0&&this.pushSubstring(o)})}else this.pushDiff(e)}moveLinesTo(e){this.isLineEmpty()||this.pushLine(),e.push(...this.lines),this.lines.length=0}},Nj=class{deleteBuffer;insertBuffer;lines;constructor(e,t){this.deleteBuffer=e,this.insertBuffer=t,this.lines=[]}pushDiffCommonLine(e){this.lines.push(e)}pushDiffChangeLines(e){let t=e[1].length===0;(!t||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(e),(!t||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(e)}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines)}align(e){let t=e[0],r=e[1];if(r.includes(`
186
- `)){let n=r.split(`
187
- `),o=n.length-1;n.forEach((i,a)=>{if(a===0){let s=new Je(t,i);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(s)):(this.pushDiffChangeLines(s),this.flushChangeLines())}else a<o?this.pushDiffCommonLine(new Je(t,i)):i.length!==0&&this.pushDiffChangeLines(new Je(t,i))})}else this.pushDiffChangeLines(e)}getLines(){return this.flushChangeLines(),this.lines}};function Ij(e,t){let r=new Em(pt,t),n=new Em(st,t),o=new Nj(r,n);return e.forEach(i=>{switch(i[0]){case pt:r.align(i);break;case st:n.align(i);break;default:o.align(i)}}),o.getLines()}function kj(e,t){if(t){let r=e.length-1;return e.some((n,o)=>n[0]===ze&&(o!==r||n[1]!==`
188
- `))}return e.some(r=>r[0]===ze)}function jj(e,t,r){if(e!==t&&e.length!==0&&t.length!==0){let n=e.includes(`
189
- `)||t.includes(`
190
- `),[o,i]=Kv(n?`${e}
191
- `:e,n?`${t}
192
- `:t,!0,r);if(kj(o,n)){let a=Mn(r),s=Ij(o,a.changeColor);return $d(s,i,a)}}return Js(e.split(`
193
- `),t.split(`
194
- `),r)}function Kv(e,t,r,n){let[o,i]=Pj(e,t,n);return fj(o),[o,i]}function Du(e,t){let{commonColor:r}=Mn(t);return r(e)}var{AsymmetricMatcher:qj,DOMCollection:Dj,DOMElement:Lj,Immutable:Fj,ReactElement:$j,ReactTestComponent:Bj}=Ld,Yv=[Bj,$j,Lj,Dj,Fj,qj,Ld.Error],Lu={maxDepth:20,plugins:Yv},Xv={callToJSON:!1,maxDepth:8,plugins:Yv};function bo(e,t,r){if(Object.is(e,t))return"";let n=bm(e),o=n,i=!1;if(n==="object"&&typeof e.asymmetricMatch=="function"){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof e.getExpectedType!="function")return;o=e.getExpectedType(),i=o==="string"}if(o!==bm(t)){let a=function(A){return A.length<=v?A:`${A.slice(0,v)}...`},{aAnnotation:s,aColor:c,aIndicator:l,bAnnotation:d,bColor:p,bIndicator:f}=Mn(r),m=Fu(Xv,r),y=nr(e,m),g=nr(t,m),v=1e5;y=a(y),g=a(g);let b=`${c(`${l} ${s}:`)}
195
- ${y}`,T=`${p(`${f} ${d}:`)}
196
- ${g}`;return`${b}
197
-
198
- ${T}`}if(!i)switch(n){case"string":return Js(e.split(`
199
- `),t.split(`
200
- `),r);case"boolean":case"number":return Uj(e,t,r);case"map":return Vl(wm(e),wm(t),r);case"set":return Vl(_m(e),_m(t),r);default:return Vl(e,t,r)}}function Uj(e,t,r){let n=nr(e,Lu),o=nr(t,Lu);return n===o?"":Js(n.split(`
201
- `),o.split(`
202
- `),r)}function wm(e){return new Map(Array.from(e.entries()).sort())}function _m(e){return new Set(Array.from(e.values()).sort())}function Vl(e,t,r){let n,o=!1;try{let a=Fu(Lu,r);n=Tm(e,t,a,r)}catch{o=!0}let i=Du(Uv,r);if(n===void 0||n===i){let a=Fu(Xv,r);n=Tm(e,t,a,r),n!==i&&!o&&(n=`${Du(gj,r)}
203
-
204
- ${n}`)}return n}function Fu(e,t){let{compareKeys:r,printBasicPrototype:n,maxDepth:o}=Mn(t);return{...e,compareKeys:r,printBasicPrototype:n,maxDepth:o??e.maxDepth}}function Tm(e,t,r,n){let o={...r,indent:0},i=nr(e,o),a=nr(t,o);if(i===a)return Du(Uv,n);{let s=nr(e,r),c=nr(t,r);return Cj(s.split(`
205
- `),c.split(`
206
- `),i.split(`
207
- `),a.split(`
208
- `),n)}}var xm=2e4;function Sm(e){return Xa(e)==="Object"&&typeof e.asymmetricMatch=="function"}function Am(e,t){let r=Xa(e),n=Xa(t);return r===n&&(r==="Object"||r==="Array")}function Qv(e,t,r){let{aAnnotation:n,bAnnotation:o}=Mn(r);if(typeof t=="string"&&typeof e=="string"&&t.length>0&&e.length>0&&t.length<=xm&&e.length<=xm&&t!==e){if(t.includes(`
209
- `)||e.includes(`
210
- `))return jj(t,e,r);let[l]=Kv(t,e),d=l.some(y=>y[0]===ze),p=Hj(n,o),f=p(n)+zj(Om(l,pt,d)),m=p(o)+Vj(Om(l,st,d));return`${f}
211
- ${m}`}let i=dm(t,{forceWritable:!0}),a=dm(e,{forceWritable:!0}),{replacedExpected:s,replacedActual:c}=Zv(a,i);return bo(s,c,r)}function Zv(e,t,r=new WeakSet,n=new WeakSet){return e instanceof Error&&t instanceof Error&&typeof e.cause<"u"&&typeof t.cause>"u"?(delete e.cause,{replacedActual:e,replacedExpected:t}):Am(e,t)?r.has(e)||n.has(t)?{replacedActual:e,replacedExpected:t}:(r.add(e),n.add(t),Lv(t).forEach(o=>{let i=t[o],a=e[o];if(Sm(i))i.asymmetricMatch(a)&&(e[o]=i);else if(Sm(a))a.asymmetricMatch(i)&&(t[o]=a);else if(Am(a,i)){let s=Zv(a,i,r,n);e[o]=s.replacedActual,t[o]=s.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}function Hj(...e){let t=e.reduce((r,n)=>n.length>r?n.length:r,0);return r=>`${r}: ${" ".repeat(t-r.length)}`}var Jj="·";function eE(e){return e.replace(/\s+$/gm,t=>Jj.repeat(t.length))}function Vj(e){return yr.red(eE(Mt(e)))}function zj(e){return yr.green(eE(Mt(e)))}function Om(e,t,r){return e.reduce((n,o)=>n+(o[0]===ze?o[1]:o[0]===t?r?yr.inverse(o[1]):o[1]:""),"")}var Gj="@@__IMMUTABLE_RECORD__@@",Wj="@@__IMMUTABLE_ITERABLE__@@";function Kj(e){return e&&(e[Wj]||e[Gj])}var Yj=Object.getPrototypeOf({});function Rm(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}function Fr(e,t=new WeakMap){if(!e||typeof e=="string")return e;if(e instanceof Error&&"toJSON"in e&&typeof e.toJSON=="function"){let r=e.toJSON();return r&&r!==e&&typeof r=="object"&&(typeof e.message=="string"&&fa(()=>r.message??(r.message=e.message)),typeof e.stack=="string"&&fa(()=>r.stack??(r.stack=e.stack)),typeof e.name=="string"&&fa(()=>r.name??(r.name=e.name)),e.cause!=null&&fa(()=>r.cause??(r.cause=Fr(e.cause,t)))),Fr(r,t)}if(typeof e=="function")return`Function<${e.name||"anonymous"}>`;if(typeof e=="symbol")return e.toString();if(typeof e!="object")return e;if(typeof Buffer<"u"&&e instanceof Buffer)return`<Buffer(${e.length}) ...>`;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return`<Uint8Array(${e.length}) ...>`;if(Kj(e))return Fr(e.toJSON(),t);if(e instanceof Promise||e.constructor&&e.constructor.prototype==="AsyncFunction")return"Promise";if(typeof Element<"u"&&e instanceof Element)return e.tagName;if(typeof e.asymmetricMatch=="function")return`${e.toString()} ${lj(e.sample)}`;if(typeof e.toJSON=="function")return Fr(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let r=new Array(e.length);return t.set(e,r),e.forEach((n,o)=>{try{r[o]=Fr(n,t)}catch(i){r[o]=Rm(i)}}),r}else{let r=Object.create(null);t.set(e,r);let n=e;for(;n&&n!==Yj;)Object.getOwnPropertyNames(n).forEach(o=>{if(!(o in r))try{r[o]=Fr(e[o],t)}catch(i){delete r[o],r[o]=Rm(i)}}),n=Object.getPrototypeOf(n);return r}}function fa(e){try{return e()}catch{}}function Xj(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}function Bd(e,t,r=new WeakSet){if(!e||typeof e!="object")return{message:String(e)};let n=e;(n.showDiff||n.showDiff===void 0&&n.expected!==void 0&&n.actual!==void 0)&&(n.diff=Qv(n.actual,n.expected,{...t,...n.diffOptions})),"expected"in n&&typeof n.expected!="string"&&(n.expected=Mt(n.expected,10)),"actual"in n&&typeof n.actual!="string"&&(n.actual=Mt(n.actual,10));try{typeof n.message=="string"&&(n.message=Xj(n.message))}catch{}try{!r.has(n)&&typeof n.cause=="object"&&(r.add(n),n.cause=Bd(n.cause,t,r))}catch{}try{return Fr(n)}catch(o){return Fr(new Error(`Failed to fully serialize error: ${o?.message}
212
- Inner error message: ${n?.message}`))}}var pr={CALL:"storybook/instrumenter/call",SYNC:"storybook/instrumenter/sync",START:"storybook/instrumenter/start",BACK:"storybook/instrumenter/back",GOTO:"storybook/instrumenter/goto",NEXT:"storybook/instrumenter/next",END:"storybook/instrumenter/end"},zl=globalThis.__STORYBOOK_ADDONS_PREVIEW,Qj=new Error("This function ran after the play function completed. Did you forget to `await` it?"),Cm=e=>Object.prototype.toString.call(e)==="[object Object]",Zj=e=>Object.prototype.toString.call(e)==="[object Module]",eq=e=>{if(!Cm(e)&&!Zj(e))return!1;if(e.constructor===void 0)return!0;let t=e.constructor.prototype;return!!Cm(t)},tq=e=>{try{return new e.constructor}catch{return{}}},Gl=()=>({renderPhase:"preparing",isDebugging:!1,isPlaying:!1,isLocked:!1,cursor:0,calls:[],shadowCalls:[],callRefsByResult:new Map,chainedCallIds:new Set,ancestors:[],playUntil:void 0,resolvers:{},syncTimeout:void 0}),Pm=(e,t=!1)=>{let r=(t?e.shadowCalls:e.calls).filter(o=>o.retain);if(!r.length)return;let n=new Map(Array.from(e.callRefsByResult.entries()).filter(([,o])=>o.retain));return{cursor:r.length,calls:r,callRefsByResult:n}},rq=class{constructor(){this.detached=!1,this.initialized=!1,this.state={},this.loadParentWindowState=()=>{try{this.state=re.window?.parent?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__||{}}catch{this.detached=!0}},this.updateParentWindowState=()=>{try{re.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state}catch{this.detached=!0}},this.loadParentWindowState();let e=({storyId:s,renderPhase:c,isPlaying:l=!0,isDebugging:d=!1})=>{let p=this.getState(s);this.setState(s,{...Gl(),...Pm(p,d),renderPhase:c||p.renderPhase,shadowCalls:d?p.shadowCalls:[],chainedCallIds:d?p.chainedCallIds:new Set,playUntil:d?p.playUntil:void 0,isPlaying:l,isDebugging:d}),this.sync(s)},t=s=>({storyId:c,playUntil:l})=>{this.getState(c).isDebugging||this.setState(c,({calls:p})=>({calls:[],shadowCalls:p.map(f=>({...f,status:"waiting"})),isDebugging:!0}));let d=this.getLog(c);this.setState(c,({shadowCalls:p})=>{if(l||!d.length)return{playUntil:l};let f=p.findIndex(m=>m.id===d[0].callId);return{playUntil:p.slice(0,f).filter(m=>m.interceptable&&!m.ancestors?.length).slice(-1)[0]?.id}}),s.emit(Wa,{storyId:c,isDebugging:!0})},r=s=>({storyId:c})=>{let l=this.getLog(c).filter(p=>!p.ancestors?.length),d=l.reduceRight((p,f,m)=>p>=0||f.status==="waiting"?p:m,-1);t(s)({storyId:c,playUntil:l[d-1]?.callId})},n=s=>({storyId:c,callId:l})=>{let{calls:d,shadowCalls:p,resolvers:f}=this.getState(c),m=d.find(({id:g})=>g===l),y=p.find(({id:g})=>g===l);if(!m&&y&&Object.values(f).length>0){let g=this.getLog(c).find(v=>v.status==="waiting")?.callId;y.id!==g&&this.setState(c,{playUntil:y.id}),Object.values(f).forEach(v=>v())}else t(s)({storyId:c,playUntil:l})},o=s=>({storyId:c})=>{let{resolvers:l}=this.getState(c);if(Object.values(l).length>0)Object.values(l).forEach(d=>d());else{let d=this.getLog(c).find(p=>p.status==="waiting")?.callId;d?t(s)({storyId:c,playUntil:d}):i({storyId:c})}},i=({storyId:s})=>{this.setState(s,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(s).resolvers).forEach(c=>c())},a=({storyId:s,newPhase:c})=>{let{isDebugging:l}=this.getState(s);if(c==="preparing"&&l)return e({storyId:s,renderPhase:c,isDebugging:l});if(c==="playing")return e({storyId:s,renderPhase:c,isDebugging:l});c==="played"?this.setState(s,{renderPhase:c,isLocked:!1,isPlaying:!1,isDebugging:!1}):c==="errored"?this.setState(s,{renderPhase:c,isLocked:!1,isPlaying:!1}):c==="aborted"?this.setState(s,{renderPhase:c,isLocked:!0,isPlaying:!1}):this.setState(s,{renderPhase:c}),this.sync(s)};zl&&zl.ready().then(()=>{this.channel=zl.getChannel(),this.channel.on(Wa,e),this.channel.on(wn,a),this.channel.on(pd,()=>{this.initialized?this.cleanup():this.initialized=!0}),this.channel.on(pr.START,t(this.channel)),this.channel.on(pr.BACK,r(this.channel)),this.channel.on(pr.GOTO,n(this.channel)),this.channel.on(pr.NEXT,o(this.channel)),this.channel.on(pr.END,i)})}getState(e){return this.state[e]||Gl()}setState(e,t){if(e){let r=this.getState(e),n=typeof t=="function"?t(r):t;this.state={...this.state,[e]:{...r,...n}},this.updateParentWindowState()}}cleanup(){this.state=Object.entries(this.state).reduce((t,[r,n])=>{let o=Pm(n);return o&&(t[r]=Object.assign(Gl(),o)),t},{});let e={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:[]};this.channel?.emit(pr.SYNC,e),this.updateParentWindowState()}getLog(e){let{calls:t,shadowCalls:r}=this.getState(e),n=[...r];t.forEach((i,a)=>{n[a]=i});let o=new Set;return n.reduceRight((i,a)=>(a.args.forEach(s=>{s?.__callId__&&o.add(s.__callId__)}),a.path.forEach(s=>{s.__callId__&&o.add(s.__callId__)}),(a.interceptable||a.exception)&&!o.has(a.id)&&(i.unshift({callId:a.id,status:a.status,ancestors:a.ancestors}),o.add(a.id)),i),[])}instrument(e,t,r=0){if(!eq(e))return e;let{mutate:n=!1,path:o=[]}=t,i=t.getKeys?t.getKeys(e,r):Object.keys(e);return r+=1,i.reduce((a,s)=>{let c=nq(e,s);if(typeof c?.get=="function"){if(c.configurable){let d=()=>c?.get?.bind(e)?.();Object.defineProperty(a,s,{get:()=>this.instrument(d(),{...t,path:o.concat(s)},r)})}return a}let l=e[s];return typeof l!="function"?(a[s]=this.instrument(l,{...t,path:o.concat(s)},r),a):"__originalFn__"in l&&typeof l.__originalFn__=="function"?(a[s]=l,a):(a[s]=(...d)=>this.track(s,l,e,d,t),a[s].__originalFn__=l,Object.defineProperty(a[s],"name",{value:s,writable:!1}),Object.keys(l).length>0&&Object.assign(a[s],this.instrument({...l},{...t,path:o.concat(s)},r)),a)},n?e:tq(e))}track(e,t,r,n,o){let i=n?.[0]?.__storyId__||re.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId,{cursor:a,ancestors:s}=this.getState(i);this.setState(i,{cursor:a+1});let c=`${s.slice(-1)[0]||i} [${a}] ${e}`,{path:l=[],intercept:d=!1,retain:p=!1}=o,f=typeof d=="function"?d(e,l):d,m={id:c,cursor:a,storyId:i,ancestors:s,path:l,method:e,args:n,interceptable:f,retain:p},y=(f&&!s.length?this.intercept:this.invoke).call(this,t,r,m,o);return this.instrument(y,{...o,mutate:!0,path:[{__callId__:m.id}]})}intercept(e,t,r,n){let{chainedCallIds:o,isDebugging:i,playUntil:a}=this.getState(r.storyId),s=o.has(r.id);return!i||s||a?(a===r.id&&this.setState(r.storyId,{playUntil:void 0}),this.invoke(e,t,r,n)):new Promise(c=>{this.setState(r.storyId,({resolvers:l})=>({isLocked:!1,resolvers:{...l,[r.id]:c}}))}).then(()=>(this.setState(r.storyId,c=>{let{[r.id]:l,...d}=c.resolvers;return{isLocked:!0,resolvers:d}}),this.invoke(e,t,r,n)))}invoke(e,t,r,n){let{callRefsByResult:o,renderPhase:i}=this.getState(r.storyId),a=25,s=(d,p,f)=>{if(f.includes(d))return"[Circular]";if(f=[...f,d],p>a)return"...";if(o.has(d))return o.get(d);if(d instanceof Array)return d.map(m=>s(m,++p,f));if(d instanceof Date)return{__date__:{value:d.toISOString()}};if(d instanceof Error){let{name:m,message:y,stack:g}=d;return{__error__:{name:m,message:y,stack:g}}}if(d instanceof RegExp){let{flags:m,source:y}=d;return{__regexp__:{flags:m,source:y}}}if(d instanceof re.window?.HTMLElement){let{prefix:m,localName:y,id:g,classList:v,innerText:b}=d,T=Array.from(v);return{__element__:{prefix:m,localName:y,id:g,classNames:T,innerText:b}}}return typeof d=="function"?{__function__:{name:"getMockName"in d?d.getMockName():d.name}}:typeof d=="symbol"?{__symbol__:{description:d.description}}:typeof d=="object"&&d?.constructor?.name&&d?.constructor?.name!=="Object"?{__class__:{name:d.constructor.name}}:Object.prototype.toString.call(d)==="[object Object]"?Object.fromEntries(Object.entries(d).map(([m,y])=>[m,s(y,++p,f)])):d},c={...r,args:r.args.map(d=>s(d,0,[]))};r.path.forEach(d=>{d?.__callId__&&this.setState(r.storyId,({chainedCallIds:p})=>({chainedCallIds:new Set(Array.from(p).concat(d.__callId__))}))});let l=d=>{if(d instanceof Error){let{name:p,message:f,stack:m,callId:y=r.id}=d,{showDiff:g=void 0,diff:v=void 0,actual:b=void 0,expected:T=void 0}=d.name==="AssertionError"?Bd(d):d,A={name:p,message:f,stack:m,callId:y,showDiff:g,diff:v,actual:b,expected:T};if(this.update({...c,status:"error",exception:A}),this.setState(r.storyId,R=>({callRefsByResult:new Map([...Array.from(R.callRefsByResult.entries()),[d,{__callId__:r.id,retain:r.retain}]])})),r.ancestors?.length)throw Object.prototype.hasOwnProperty.call(d,"callId")||Object.defineProperty(d,"callId",{value:r.id}),d}throw d};try{if(i==="played"&&!r.retain)throw Qj;let d=(n.getArgs?n.getArgs(r,this.getState(r.storyId)):r.args).map(f=>typeof f!="function"||oq(f)||Object.keys(f).length?f:(...m)=>{let{cursor:y,ancestors:g}=this.getState(r.storyId);this.setState(r.storyId,{cursor:0,ancestors:[...g,r.id]});let v=()=>this.setState(r.storyId,{cursor:y,ancestors:g}),b=!1;try{let T=f(...m);return T instanceof Promise?(b=!0,T.finally(v)):T}finally{b||v()}}),p=e.apply(t,d);return p&&["object","function","symbol"].includes(typeof p)&&this.setState(r.storyId,f=>({callRefsByResult:new Map([...Array.from(f.callRefsByResult.entries()),[p,{__callId__:r.id,retain:r.retain}]])})),this.update({...c,status:p instanceof Promise?"active":"done"}),p instanceof Promise?p.then(f=>(this.update({...c,status:"done"}),f),l):p}catch(d){return l(d)}}update(e){this.channel?.emit(pr.CALL,e),this.setState(e.storyId,({calls:t})=>{let r=t.concat(e).reduce((n,o)=>Object.assign(n,{[o.id]:o}),{});return{calls:Object.values(r).sort((n,o)=>n.id.localeCompare(o.id,void 0,{numeric:!0}))}}),this.sync(e.storyId)}sync(e){let t=()=>{let{isLocked:r,isPlaying:n}=this.getState(e),o=this.getLog(e),i=o.filter(({ancestors:l})=>!l.length).find(l=>l.status==="waiting")?.callId,a=o.some(l=>l.status==="active");if(this.detached||r||a||o.length===0){let l={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:o};this.channel?.emit(pr.SYNC,l);return}let s=o.some(l=>l.status==="done"||l.status==="error"),c={controlStates:{detached:this.detached,start:s,back:s,goto:!0,next:n,end:n},logItems:o,pausedAt:i};this.channel?.emit(pr.SYNC,c)};this.setState(e,({syncTimeout:r})=>(clearTimeout(r),{syncTimeout:setTimeout(t,0)}))}};function zi(e,t={}){try{let r=!1,n=!1;return re.window?.location?.search?.includes("instrument=true")?r=!0:re.window?.location?.search?.includes("instrument=false")&&(n=!0),re.window?.parent===re.window&&!r||n?e:(re.window&&!re.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(re.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new rq),(re.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(r){return Ge.warn(r),e}}function nq(e,t){let r=e;for(;r!=null;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function oq(e){if(typeof e!="function")return!1;let t=Object.getOwnPropertyDescriptor(e,"prototype");return t?!t.writable:!1}var tE=Object.defineProperty,z=(e,t)=>tE(e,"name",{value:t,configurable:!0}),Ud=(e,t)=>{for(var r in t)tE(e,r,{get:t[r],enumerable:!0})},or={};Ud(or,{addChainableMethod:()=>ep,addLengthGuard:()=>Ki,addMethod:()=>Xd,addProperty:()=>Yd,checkError:()=>St,compareByInspect:()=>ts,eql:()=>RE,expectTypes:()=>lE,flag:()=>ve,getActual:()=>zs,getMessage:()=>Vd,getName:()=>Ws,getOperator:()=>op,getOwnEnumerableProperties:()=>np,getOwnEnumerablePropertySymbols:()=>rp,getPathInfo:()=>Kd,hasProperty:()=>Gs,inspect:()=>Oe,isNaN:()=>rs,isNumeric:()=>nt,isProxyEnabled:()=>Wi,isRegExp:()=>ns,objDisplay:()=>gn,overwriteChainableMethod:()=>tp,overwriteMethod:()=>Zd,overwriteProperty:()=>Qd,proxify:()=>vo,test:()=>Hd,transferFlags:()=>Yt,type:()=>qe});var St={};Ud(St,{compatibleConstructor:()=>oE,compatibleInstance:()=>nE,compatibleMessage:()=>iE,getConstructorName:()=>aE,getMessage:()=>sE});function Vs(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}z(Vs,"isErrorInstance");function rE(e){return Object.prototype.toString.call(e)==="[object RegExp]"}z(rE,"isRegExp");function nE(e,t){return Vs(t)&&e===t}z(nE,"compatibleInstance");function oE(e,t){return Vs(t)?e.constructor===t.constructor||e instanceof t.constructor:(typeof t=="object"||typeof t=="function")&&t.prototype?e.constructor===t||e instanceof t:!1}z(oE,"compatibleConstructor");function iE(e,t){let r=typeof e=="string"?e:e.message;return rE(t)?t.test(r):typeof t=="string"?r.indexOf(t)!==-1:!1}z(iE,"compatibleMessage");function aE(e){let t=e;return Vs(e)?t=e.constructor.name:typeof e=="function"&&(t=e.name,t===""&&(t=new e().name||t)),t}z(aE,"getConstructorName");function sE(e){let t="";return e&&e.message?t=e.message:typeof e=="string"&&(t=e),t}z(sE,"getMessage");function ve(e,t,r){let n=e.__flags||(e.__flags=Object.create(null));if(arguments.length===3)n[t]=r;else return n[t]}z(ve,"flag");function Hd(e,t){let r=ve(e,"negate"),n=t[0];return r?!n:n}z(Hd,"test");function qe(e){if(typeof e>"u")return"undefined";if(e===null)return"null";let t=e[Symbol.toStringTag];return typeof t=="string"?t:Object.prototype.toString.call(e).slice(8,-1)}z(qe,"type");var iq="captureStackTrace"in Error,ma,Re=(ma=class extends Error{message;get name(){return"AssertionError"}get ok(){return!1}constructor(e="Unspecified AssertionError",t,r){super(e),this.message=e,iq&&Error.captureStackTrace(this,r||ma);for(let n in t)n in this||(this[n]=t[n])}toJSON(e){return{...this,name:this.name,message:this.message,ok:!1,stack:e!==!1?this.stack:void 0}}},z(ma,"AssertionError"),ma);function lE(e,t){let r=ve(e,"message"),n=ve(e,"ssfi");r=r?r+": ":"",e=ve(e,"object"),t=t.map(function(a){return a.toLowerCase()}),t.sort();let o=t.map(function(a,s){let c=~["a","e","i","o","u"].indexOf(a.charAt(0))?"an":"a";return(t.length>1&&s===t.length-1?"or ":"")+c+" "+a}).join(", "),i=qe(e).toLowerCase();if(!t.some(function(a){return i===a}))throw new Re(r+"object tested must be "+o+", but "+i+" given",void 0,n)}z(lE,"expectTypes");function zs(e,t){return t.length>4?t[4]:e._obj}z(zs,"getActual");var Mm={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},aq={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},Xn="…";function uE(e,t){let r=Mm[aq[t]]||Mm[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}z(uE,"colorise");function cE({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!0,showProxy:o=!1,maxArrayLength:i=1/0,breakLength:a=1/0,seen:s=[],truncate:c=1/0,stylize:l=String}={},d){let p={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!n,showProxy:!!o,maxArrayLength:Number(i),breakLength:Number(a),truncate:Number(c),seen:s,inspect:d,stylize:l};return p.colors&&(p.stylize=uE),p}z(cE,"normaliseOptions");function dE(e){return e>="\uD800"&&e<="\uDBFF"}z(dE,"isHighSurrogate");function Or(e,t,r=Xn){e=String(e);let n=r.length,o=e.length;if(n>t&&o>n)return r;if(o>t&&o>n){let i=t-n;return i>0&&dE(e[i-1])&&(i=i-1),`${e.slice(0,i)}${r}`}return e}z(Or,"truncate");function $t(e,t,r,n=", "){r=r||t.inspect;let o=e.length;if(o===0)return"";let i=t.truncate,a="",s="",c="";for(let l=0;l<o;l+=1){let d=l+1===e.length,p=l+2===e.length;c=`${Xn}(${e.length-l})`;let f=e[l];t.truncate=i-a.length-(d?0:n.length);let m=s||r(f,t)+(d?"":n),y=a.length+m.length,g=y+c.length;if(d&&y>i&&a.length+c.length<=i||!d&&!p&&g>i||(s=d?"":r(e[l+1],t)+(p?"":n),!d&&p&&g>i&&y+s.length>i))break;if(a+=m,!d&&!p&&y+s.length>=i){c=`${Xn}(${e.length-l-1})`;break}c=""}return`${a}${c}`}z($t,"inspectList");function pE(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}z(pE,"quoteComplexKey");function Qn([e,t],r){return r.truncate-=2,typeof e=="string"?e=pE(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}z(Qn,"inspectProperty");function fE(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let n=$t(e,t);t.truncate-=n.length;let o="";return r.length&&(o=$t(r.map(i=>[i,e[i]]),t,Qn)),`[ ${n}${o?`, ${o}`:""} ]`}z(fE,"inspectArray");var sq=z(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function er(e,t){let r=sq(e);t.truncate-=r.length+4;let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`${r}[]`;let o="";for(let a=0;a<e.length;a++){let s=`${t.stylize(Or(e[a],t.truncate),"number")}${a===e.length-1?"":", "}`;if(t.truncate-=s.length,e[a]!==e.length&&t.truncate<=3){o+=`${Xn}(${e.length-e[a]+1})`;break}o+=s}let i="";return n.length&&(i=$t(n.map(a=>[a,e[a]]),t,Qn)),`${r}[ ${o}${i?`, ${i}`:""} ]`}z(er,"inspectTypedArray");function mE(e,t){let r=e.toJSON();if(r===null)return"Invalid Date";let n=r.split("T"),o=n[0];return t.stylize(`${o}T${Or(n[1],t.truncate-o.length-1)}`,"date")}z(mE,"inspectDate");function $u(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${Or(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}z($u,"inspectFunction");function hE([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}z(hE,"inspectMapEntry");function yE(e){let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}z(yE,"mapToEntries");function gE(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${$t(yE(e),t,hE)} }`)}z(gE,"inspectMap");var lq=Number.isNaN||(e=>e!==e);function Bu(e,t){return lq(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(Or(String(e),t.truncate),"number")}z(Bu,"inspectNumber");function Uu(e,t){let r=Or(e.toString(),t.truncate-1);return r!==Xn&&(r+="n"),t.stylize(r,"bigint")}z(Uu,"inspectBigInt");function bE(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${Or(o,n)}/${r}`,"regexp")}z(bE,"inspectRegExp");function vE(e){let t=[];return e.forEach(r=>{t.push(r)}),t}z(vE,"arrayFromSet");function EE(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${$t(vE(e),t)} }`)}z(EE,"inspectSet");var Nm=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),uq={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},cq=16;function wE(e){return uq[e]||`\\u${`0000${e.charCodeAt(0).toString(cq)}`.slice(-4)}`}z(wE,"escape");function Hu(e,t){return Nm.test(e)&&(e=e.replace(Nm,wE)),t.stylize(`'${Or(e,t.truncate-2)}'`,"string")}z(Hu,"inspectString");function Ju(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}z(Ju,"inspectSymbol");var dq=z(()=>"Promise{…}","getPromiseValue"),pq=dq;function oi(e,t){let r=Object.getOwnPropertyNames(e),n=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(r.length===0&&n.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let o=$t(r.map(s=>[s,e[s]]),t,Qn),i=$t(n.map(s=>[s,e[s]]),t,Qn);t.seen.pop();let a="";return o&&i&&(a=", "),`{ ${o}${a}${i} }`}z(oi,"inspectObject");var Wl=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function _E(e,t){let r="";return Wl&&Wl in e&&(r=e[Wl]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${oi(e,t)}`}z(_E,"inspectClass");function TE(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${$t(e,t)} ]`)}z(TE,"inspectArguments");var fq=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function xE(e,t){let r=Object.getOwnPropertyNames(e).filter(a=>fq.indexOf(a)===-1),n=e.name;t.truncate-=n.length;let o="";if(typeof e.message=="string"?o=Or(e.message,t.truncate):r.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let i=$t(r.map(a=>[a,e[a]]),t,Qn);return`${n}${o}${i?` { ${i} }`:""}`}z(xE,"inspectObject");function SE([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}z(SE,"inspectAttribute");function Qa(e,t){return $t(e,t,AE,`
213
- `)}z(Qa,"inspectNodeCollection");function AE(e,t){switch(e.nodeType){case 1:return Jd(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}z(AE,"inspectNode");function Jd(e,t){let r=e.getAttributeNames(),n=e.tagName.toLowerCase(),o=t.stylize(`<${n}`,"special"),i=t.stylize(">","special"),a=t.stylize(`</${n}>`,"special");t.truncate-=n.length*2+5;let s="";r.length>0&&(s+=" ",s+=$t(r.map(d=>[d,e.getAttribute(d)]),t,SE," ")),t.truncate-=s.length;let c=t.truncate,l=Qa(e.children,t);return l&&l.length>c&&(l=`${Xn}(${e.children.length})`),`${o}${s}${i}${l}${a}`}z(Jd,"inspectHTML");var mq=typeof Symbol=="function"&&typeof Symbol.for=="function",Kl=mq?Symbol.for("chai/inspect"):"@@chai/inspect",Yl=Symbol.for("nodejs.util.inspect.custom"),Im=new WeakMap,km={},jm={undefined:z((e,t)=>t.stylize("undefined","undefined"),"undefined"),null:z((e,t)=>t.stylize("null","null"),"null"),boolean:z((e,t)=>t.stylize(String(e),"boolean"),"boolean"),Boolean:z((e,t)=>t.stylize(String(e),"boolean"),"Boolean"),number:Bu,Number:Bu,bigint:Uu,BigInt:Uu,string:Hu,String:Hu,function:$u,Function:$u,symbol:Ju,Symbol:Ju,Array:fE,Date:mE,Map:gE,Set:EE,RegExp:bE,Promise:pq,WeakSet:z((e,t)=>t.stylize("WeakSet{…}","special"),"WeakSet"),WeakMap:z((e,t)=>t.stylize("WeakMap{…}","special"),"WeakMap"),Arguments:TE,Int8Array:er,Uint8Array:er,Uint8ClampedArray:er,Int16Array:er,Uint16Array:er,Int32Array:er,Uint32Array:er,Float32Array:er,Float64Array:er,Generator:z(()=>"","Generator"),DataView:z(()=>"","DataView"),ArrayBuffer:z(()=>"","ArrayBuffer"),Error:xE,HTMLCollection:Qa,NodeList:Qa},hq=z((e,t,r)=>Kl in e&&typeof e[Kl]=="function"?e[Kl](t):Yl in e&&typeof e[Yl]=="function"?e[Yl](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&Im.has(e.constructor)?Im.get(e.constructor)(e,t):km[r]?km[r](e,t):"","inspectCustom"),yq=Object.prototype.toString;function Za(e,t={}){let r=cE(t,Za),{customInspect:n}=r,o=e===null?"null":typeof e;if(o==="object"&&(o=yq.call(e).slice(8,-1)),o in jm)return jm[o](e,r);if(n&&e){let a=hq(e,r,o);if(a)return typeof a=="string"?a:Za(a,r)}let i=e?Object.getPrototypeOf(e):!1;return i===Object.prototype||i===null?oi(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?Jd(e,r):"constructor"in e?e.constructor!==Object?_E(e,r):oi(e,r):e===Object(e)?oi(e,r):r.stylize(String(e),o)}z(Za,"inspect");var Et={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null};function Oe(e,t,r,n){let o={colors:n,depth:typeof r>"u"?2:r,showHidden:t,truncate:Et.truncateThreshold?Et.truncateThreshold:1/0};return Za(e,o)}z(Oe,"inspect");function gn(e){let t=Oe(e),r=Object.prototype.toString.call(e);if(Et.truncateThreshold&&t.length>=Et.truncateThreshold){if(r==="[object Function]")return!e.name||e.name===""?"[Function]":"[Function: "+e.name+"]";if(r==="[object Array]")return"[ Array("+e.length+") ]";if(r==="[object Object]"){let n=Object.keys(e);return"{ Object ("+(n.length>2?n.splice(0,2).join(", ")+", ...":n.join(", "))+") }"}else return t}else return t}z(gn,"objDisplay");function Vd(e,t){let r=ve(e,"negate"),n=ve(e,"object"),o=t[3],i=zs(e,t),a=r?t[2]:t[1],s=ve(e,"message");return typeof a=="function"&&(a=a()),a=a||"",a=a.replace(/#\{this\}/g,function(){return gn(n)}).replace(/#\{act\}/g,function(){return gn(i)}).replace(/#\{exp\}/g,function(){return gn(o)}),s?s+": "+a:a}z(Vd,"getMessage");function Yt(e,t,r){let n=e.__flags||(e.__flags=Object.create(null));t.__flags||(t.__flags=Object.create(null)),r=arguments.length===3?r:!0;for(let o in n)(r||o!=="object"&&o!=="ssfi"&&o!=="lockSsfi"&&o!="message")&&(t.__flags[o]=n[o])}z(Yt,"transferFlags");function Vu(e){if(typeof e>"u")return"undefined";if(e===null)return"null";let t=e[Symbol.toStringTag];return typeof t=="string"?t:Object.prototype.toString.call(e).slice(8,-1)}z(Vu,"type");function zd(){this._key="chai/deep-eql__"+Math.random()+Date.now()}z(zd,"FakeMap");zd.prototype={get:z(function(e){return e[this._key]},"get"),set:z(function(e,t){Object.isExtensible(e)&&Object.defineProperty(e,this._key,{value:t,configurable:!0})},"set")};var OE=typeof WeakMap=="function"?WeakMap:zd;function zu(e,t,r){if(!r||Tn(e)||Tn(t))return null;var n=r.get(e);if(n){var o=n.get(t);if(typeof o=="boolean")return o}return null}z(zu,"memoizeCompare");function Qo(e,t,r,n){if(!(!r||Tn(e)||Tn(t))){var o=r.get(e);o?o.set(t,n):(o=new OE,o.set(t,n),r.set(e,o))}}z(Qo,"memoizeSet");var RE=Gi;function Gi(e,t,r){if(r&&r.comparator)return Gu(e,t,r);var n=Gd(e,t);return n!==null?n:Gu(e,t,r)}z(Gi,"deepEqual");function Gd(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t?!0:Tn(e)||Tn(t)?!1:null}z(Gd,"simpleEqual");function Gu(e,t,r){r=r||{},r.memoize=r.memoize===!1?!1:r.memoize||new OE;var n=r&&r.comparator,o=zu(e,t,r.memoize);if(o!==null)return o;var i=zu(t,e,r.memoize);if(i!==null)return i;if(n){var a=n(e,t);if(a===!1||a===!0)return Qo(e,t,r.memoize,a),a;var s=Gd(e,t);if(s!==null)return s}var c=Vu(e);if(c!==Vu(t))return Qo(e,t,r.memoize,!1),!1;Qo(e,t,r.memoize,!0);var l=CE(e,t,c,r);return Qo(e,t,r.memoize,l),l}z(Gu,"extensiveDeepEqual");function CE(e,t,r,n){switch(r){case"String":case"Number":case"Boolean":case"Date":return Gi(e.valueOf(),t.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return e===t;case"Error":return Wd(e,t,["name","message","code"],n);case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return Jr(e,t,n);case"RegExp":return PE(e,t);case"Generator":return ME(e,t,n);case"DataView":return Jr(new Uint8Array(e.buffer),new Uint8Array(t.buffer),n);case"ArrayBuffer":return Jr(new Uint8Array(e),new Uint8Array(t),n);case"Set":return Wu(e,t,n);case"Map":return Wu(e,t,n);case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.Instant":case"Temporal.ZonedDateTime":case"Temporal.PlainYearMonth":case"Temporal.PlainMonthDay":return e.equals(t);case"Temporal.Duration":return e.total("nanoseconds")===t.total("nanoseconds");case"Temporal.TimeZone":case"Temporal.Calendar":return e.toString()===t.toString();default:return IE(e,t,n)}}z(CE,"extensiveDeepEqualByType");function PE(e,t){return e.toString()===t.toString()}z(PE,"regexpEqual");function Wu(e,t,r){try{if(e.size!==t.size)return!1;if(e.size===0)return!0}catch{return!1}var n=[],o=[];return e.forEach(z(function(i,a){n.push([i,a])},"gatherEntries")),t.forEach(z(function(i,a){o.push([i,a])},"gatherEntries")),Jr(n.sort(),o.sort(),r)}z(Wu,"entriesEqual");function Jr(e,t,r){var n=e.length;if(n!==t.length)return!1;if(n===0)return!0;for(var o=-1;++o<n;)if(Gi(e[o],t[o],r)===!1)return!1;return!0}z(Jr,"iterableEqual");function ME(e,t,r){return Jr(es(e),es(t),r)}z(ME,"generatorEqual");function NE(e){return typeof Symbol<"u"&&typeof e=="object"&&typeof Symbol.iterator<"u"&&typeof e[Symbol.iterator]=="function"}z(NE,"hasIteratorFunction");function Ku(e){if(NE(e))try{return es(e[Symbol.iterator]())}catch{return[]}return[]}z(Ku,"getIteratorEntries");function es(e){for(var t=e.next(),r=[t.value];t.done===!1;)t=e.next(),r.push(t.value);return r}z(es,"getGeneratorEntries");function Yu(e){var t=[];for(var r in e)t.push(r);return t}z(Yu,"getEnumerableKeys");function Xu(e){for(var t=[],r=Object.getOwnPropertySymbols(e),n=0;n<r.length;n+=1){var o=r[n];Object.getOwnPropertyDescriptor(e,o).enumerable&&t.push(o)}return t}z(Xu,"getEnumerableSymbols");function Wd(e,t,r,n){var o=r.length;if(o===0)return!0;for(var i=0;i<o;i+=1)if(Gi(e[r[i]],t[r[i]],n)===!1)return!1;return!0}z(Wd,"keysEqual");function IE(e,t,r){var n=Yu(e),o=Yu(t),i=Xu(e),a=Xu(t);if(n=n.concat(i),o=o.concat(a),n.length&&n.length===o.length)return Jr(Qu(n).sort(),Qu(o).sort())===!1?!1:Wd(e,t,n,r);var s=Ku(e),c=Ku(t);return s.length&&s.length===c.length?(s.sort(),c.sort(),Jr(s,c,r)):n.length===0&&s.length===0&&o.length===0&&c.length===0}z(IE,"objectEqual");function Tn(e){return e===null||typeof e!="object"}z(Tn,"isPrimitive");function Qu(e){return e.map(z(function(t){return typeof t=="symbol"?t.toString():t},"mapSymbol"))}z(Qu,"mapSymbols");function Gs(e,t){return typeof e>"u"||e===null?!1:t in Object(e)}z(Gs,"hasProperty");function kE(e){return e.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map(t=>{if(t==="constructor"||t==="__proto__"||t==="prototype")return{};let r=/^\[(\d+)\]$/.exec(t),n=null;return r?n={i:parseFloat(r[1])}:n={p:t.replace(/\\([.[\]])/g,"$1")},n})}z(kE,"parsePath");function Zu(e,t,r){let n=e,o=null;r=typeof r>"u"?t.length:r;for(let i=0;i<r;i++){let a=t[i];n&&(typeof a.p>"u"?n=n[a.i]:n=n[a.p],i===r-1&&(o=n))}return o}z(Zu,"internalGetPathValue");function Kd(e,t){let r=kE(t),n=r[r.length-1],o={parent:r.length>1?Zu(e,r,r.length-1):e,name:n.p||n.i,value:Zu(e,r)};return o.exists=Gs(o.parent,o.name),o}z(Kd,"getPathInfo");var ha,k=(ha=class{__flags={};constructor(e,t,r,n){return ve(this,"ssfi",r||ha),ve(this,"lockSsfi",n),ve(this,"object",e),ve(this,"message",t),ve(this,"eql",Et.deepEqual||RE),vo(this)}static get includeStack(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),Et.includeStack}static set includeStack(e){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),Et.includeStack=e}static get showDiff(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),Et.showDiff}static set showDiff(e){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),Et.showDiff=e}static addProperty(e,t){Yd(this.prototype,e,t)}static addMethod(e,t){Xd(this.prototype,e,t)}static addChainableMethod(e,t,r){ep(this.prototype,e,t,r)}static overwriteProperty(e,t){Qd(this.prototype,e,t)}static overwriteMethod(e,t){Zd(this.prototype,e,t)}static overwriteChainableMethod(e,t,r){tp(this.prototype,e,t,r)}assert(e,t,r,n,o,i){let a=Hd(this,arguments);if(i!==!1&&(i=!0),n===void 0&&o===void 0&&(i=!1),Et.showDiff!==!0&&(i=!1),!a){t=Vd(this,arguments);let s={actual:zs(this,arguments),expected:n,showDiff:i},c=op(this,arguments);throw c&&(s.operator=c),new Re(t,s,Et.includeStack?this.assert:ve(this,"ssfi"))}}get _obj(){return ve(this,"object")}set _obj(e){ve(this,"object",e)}},z(ha,"Assertion"),ha);function Wi(){return Et.useProxy&&typeof Proxy<"u"&&typeof Reflect<"u"}z(Wi,"isProxyEnabled");function Yd(e,t,r){r=r===void 0?function(){}:r,Object.defineProperty(e,t,{get:z(function n(){!Wi()&&!ve(this,"lockSsfi")&&ve(this,"ssfi",n);let o=r.call(this);if(o!==void 0)return o;let i=new k;return Yt(this,i),i},"propertyGetter"),configurable:!0})}z(Yd,"addProperty");var gq=Object.getOwnPropertyDescriptor(function(){},"length");function Ki(e,t,r){return gq.configurable&&Object.defineProperty(e,"length",{get:z(function(){throw Error(r?"Invalid Chai property: "+t+'.length. Due to a compatibility issue, "length" cannot directly follow "'+t+'". Use "'+t+'.lengthOf" instead.':"Invalid Chai property: "+t+'.length. See docs for proper usage of "'+t+'".')},"get")}),e}z(Ki,"addLengthGuard");function jE(e){let t=Object.getOwnPropertyNames(e);function r(o){t.indexOf(o)===-1&&t.push(o)}z(r,"addProperty");let n=Object.getPrototypeOf(e);for(;n!==null;)Object.getOwnPropertyNames(n).forEach(r),n=Object.getPrototypeOf(n);return t}z(jE,"getProperties");var qm=["__flags","__methods","_obj","assert"];function vo(e,t){return Wi()?new Proxy(e,{get:z(function r(n,o){if(typeof o=="string"&&Et.proxyExcludedKeys.indexOf(o)===-1&&!Reflect.has(n,o)){if(t)throw Error("Invalid Chai property: "+t+"."+o+'. See docs for proper usage of "'+t+'".');let i=null,a=4;throw jE(n).forEach(function(s){if(!Object.prototype.hasOwnProperty(s)&&qm.indexOf(s)===-1){let c=qE(o,s,a);c<a&&(i=s,a=c)}}),Error(i!==null?"Invalid Chai property: "+o+'. Did you mean "'+i+'"?':"Invalid Chai property: "+o)}return qm.indexOf(o)===-1&&!ve(n,"lockSsfi")&&ve(n,"ssfi",r),Reflect.get(n,o)},"proxyGetter")}):e}z(vo,"proxify");function qE(e,t,r){if(Math.abs(e.length-t.length)>=r)return r;let n=[];for(let o=0;o<=e.length;o++)n[o]=Array(t.length+1).fill(0),n[o][0]=o;for(let o=0;o<t.length;o++)n[0][o]=o;for(let o=1;o<=e.length;o++){let i=e.charCodeAt(o-1);for(let a=1;a<=t.length;a++){if(Math.abs(o-a)>=r){n[o][a]=r;continue}n[o][a]=Math.min(n[o-1][a]+1,n[o][a-1]+1,n[o-1][a-1]+(i===t.charCodeAt(a-1)?0:1))}}return n[e.length][t.length]}z(qE,"stringDistanceCapped");function Xd(e,t,r){let n=z(function(){ve(this,"lockSsfi")||ve(this,"ssfi",n);let o=r.apply(this,arguments);if(o!==void 0)return o;let i=new k;return Yt(this,i),i},"methodWrapper");Ki(n,t,!1),e[t]=vo(n,t)}z(Xd,"addMethod");function Qd(e,t,r){let n=Object.getOwnPropertyDescriptor(e,t),o=z(function(){},"_super");n&&typeof n.get=="function"&&(o=n.get),Object.defineProperty(e,t,{get:z(function i(){!Wi()&&!ve(this,"lockSsfi")&&ve(this,"ssfi",i);let a=ve(this,"lockSsfi");ve(this,"lockSsfi",!0);let s=r(o).call(this);if(ve(this,"lockSsfi",a),s!==void 0)return s;let c=new k;return Yt(this,c),c},"overwritingPropertyGetter"),configurable:!0})}z(Qd,"overwriteProperty");function Zd(e,t,r){let n=e[t],o=z(function(){throw new Error(t+" is not a function")},"_super");n&&typeof n=="function"&&(o=n);let i=z(function(){ve(this,"lockSsfi")||ve(this,"ssfi",i);let a=ve(this,"lockSsfi");ve(this,"lockSsfi",!0);let s=r(o).apply(this,arguments);if(ve(this,"lockSsfi",a),s!==void 0)return s;let c=new k;return Yt(this,c),c},"overwritingMethodWrapper");Ki(i,t,!1),e[t]=vo(i,t)}z(Zd,"overwriteMethod");var bq=typeof Object.setPrototypeOf=="function",Dm=z(function(){},"testFn"),vq=Object.getOwnPropertyNames(Dm).filter(function(e){let t=Object.getOwnPropertyDescriptor(Dm,e);return typeof t!="object"?!0:!t.configurable}),Eq=Function.prototype.call,wq=Function.prototype.apply;function ep(e,t,r,n){typeof n!="function"&&(n=z(function(){},"chainingBehavior"));let o={method:r,chainingBehavior:n};e.__methods||(e.__methods={}),e.__methods[t]=o,Object.defineProperty(e,t,{get:z(function(){o.chainingBehavior.call(this);let i=z(function(){ve(this,"lockSsfi")||ve(this,"ssfi",i);let a=o.method.apply(this,arguments);if(a!==void 0)return a;let s=new k;return Yt(this,s),s},"chainableMethodWrapper");if(Ki(i,t,!0),bq){let a=Object.create(this);a.call=Eq,a.apply=wq,Object.setPrototypeOf(i,a)}else Object.getOwnPropertyNames(e).forEach(function(a){if(vq.indexOf(a)!==-1)return;let s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(i,a,s)});return Yt(this,i),vo(i)},"chainableMethodGetter"),configurable:!0})}z(ep,"addChainableMethod");function tp(e,t,r,n){let o=e.__methods[t],i=o.chainingBehavior;o.chainingBehavior=z(function(){let s=n(i).call(this);if(s!==void 0)return s;let c=new k;return Yt(this,c),c},"overwritingChainableMethodGetter");let a=o.method;o.method=z(function(){let s=r(a).apply(this,arguments);if(s!==void 0)return s;let c=new k;return Yt(this,c),c},"overwritingChainableMethodWrapper")}z(tp,"overwriteChainableMethod");function ts(e,t){return Oe(e)<Oe(t)?-1:1}z(ts,"compareByInspect");function rp(e){return typeof Object.getOwnPropertySymbols!="function"?[]:Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})}z(rp,"getOwnEnumerablePropertySymbols");function np(e){return Object.keys(e).concat(rp(e))}z(np,"getOwnEnumerableProperties");var rs=Number.isNaN;function DE(e){let t=qe(e);return["Array","Object","Function"].indexOf(t)!==-1}z(DE,"isObjectType");function op(e,t){let r=ve(e,"operator"),n=ve(e,"negate"),o=t[3],i=n?t[2]:t[1];if(r)return r;if(typeof i=="function"&&(i=i()),i=i||"",!i||/\shave\s/.test(i))return;let a=DE(o);return/\snot\s/.test(i)?a?"notDeepStrictEqual":"notStrictEqual":a?"deepStrictEqual":"strictEqual"}z(op,"getOperator");function Ws(e){return e.name}z(Ws,"getName");function ns(e){return Object.prototype.toString.call(e)==="[object RegExp]"}z(ns,"isRegExp");function nt(e){return["Number","BigInt"].includes(qe(e))}z(nt,"isNumeric");var{flag:H}=or;["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach(function(e){k.addProperty(e)});k.addProperty("not",function(){H(this,"negate",!0)});k.addProperty("deep",function(){H(this,"deep",!0)});k.addProperty("nested",function(){H(this,"nested",!0)});k.addProperty("own",function(){H(this,"own",!0)});k.addProperty("ordered",function(){H(this,"ordered",!0)});k.addProperty("any",function(){H(this,"any",!0),H(this,"all",!1)});k.addProperty("all",function(){H(this,"all",!0),H(this,"any",!1)});var Lm={function:["function","asyncfunction","generatorfunction","asyncgeneratorfunction"],asyncfunction:["asyncfunction","asyncgeneratorfunction"],generatorfunction:["generatorfunction","asyncgeneratorfunction"],asyncgeneratorfunction:["asyncgeneratorfunction"]};function ip(e,t){t&&H(this,"message",t),e=e.toLowerCase();let r=H(this,"object"),n=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an ":"a ",o=qe(r).toLowerCase();Lm.function.includes(e)?this.assert(Lm[e].includes(o),"expected #{this} to be "+n+e,"expected #{this} not to be "+n+e):this.assert(e===o,"expected #{this} to be "+n+e,"expected #{this} not to be "+n+e)}z(ip,"an");k.addChainableMethod("an",ip);k.addChainableMethod("a",ip);function LE(e,t){return rs(e)&&rs(t)||e===t}z(LE,"SameValueZero");function Yi(){H(this,"contains",!0)}z(Yi,"includeChainingBehavior");function Xi(e,t){t&&H(this,"message",t);let r=H(this,"object"),n=qe(r).toLowerCase(),o=H(this,"message"),i=H(this,"negate"),a=H(this,"ssfi"),s=H(this,"deep"),c=s?"deep ":"",l=s?H(this,"eql"):LE;o=o?o+": ":"";let d=!1;switch(n){case"string":d=r.indexOf(e)!==-1;break;case"weakset":if(s)throw new Re(o+"unable to use .deep.include with WeakSet",void 0,a);d=r.has(e);break;case"map":r.forEach(function(p){d=d||l(p,e)});break;case"set":s?r.forEach(function(p){d=d||l(p,e)}):d=r.has(e);break;case"array":s?d=r.some(function(p){return l(p,e)}):d=r.indexOf(e)!==-1;break;default:{if(e!==Object(e))throw new Re(o+"the given combination of arguments ("+n+" and "+qe(e).toLowerCase()+") is invalid for this assertion. You can use an array, a map, an object, a set, a string, or a weakset instead of a "+qe(e).toLowerCase(),void 0,a);let p=Object.keys(e),f=null,m=0;if(p.forEach(function(y){let g=new k(r);if(Yt(this,g,!0),H(g,"lockSsfi",!0),!i||p.length===1){g.property(y,e[y]);return}try{g.property(y,e[y])}catch(v){if(!St.compatibleConstructor(v,Re))throw v;f===null&&(f=v),m++}},this),i&&p.length>1&&m===p.length)throw f;return}}this.assert(d,"expected #{this} to "+c+"include "+Oe(e),"expected #{this} to not "+c+"include "+Oe(e))}z(Xi,"include");k.addChainableMethod("include",Xi,Yi);k.addChainableMethod("contain",Xi,Yi);k.addChainableMethod("contains",Xi,Yi);k.addChainableMethod("includes",Xi,Yi);k.addProperty("ok",function(){this.assert(H(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")});k.addProperty("true",function(){this.assert(H(this,"object")===!0,"expected #{this} to be true","expected #{this} to be false",!H(this,"negate"))});k.addProperty("numeric",function(){let e=H(this,"object");this.assert(["Number","BigInt"].includes(qe(e)),"expected #{this} to be numeric","expected #{this} to not be numeric",!H(this,"negate"))});k.addProperty("callable",function(){let e=H(this,"object"),t=H(this,"ssfi"),r=H(this,"message"),n=r?`${r}: `:"",o=H(this,"negate"),i=o?`${n}expected ${Oe(e)} not to be a callable function`:`${n}expected ${Oe(e)} to be a callable function`,a=["Function","AsyncFunction","GeneratorFunction","AsyncGeneratorFunction"].includes(qe(e));if(a&&o||!a&&!o)throw new Re(i,void 0,t)});k.addProperty("false",function(){this.assert(H(this,"object")===!1,"expected #{this} to be false","expected #{this} to be true",!!H(this,"negate"))});k.addProperty("null",function(){this.assert(H(this,"object")===null,"expected #{this} to be null","expected #{this} not to be null")});k.addProperty("undefined",function(){this.assert(H(this,"object")===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined")});k.addProperty("NaN",function(){this.assert(rs(H(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")});function ap(){let e=H(this,"object");this.assert(e!=null,"expected #{this} to exist","expected #{this} to not exist")}z(ap,"assertExist");k.addProperty("exist",ap);k.addProperty("exists",ap);k.addProperty("empty",function(){let e=H(this,"object"),t=H(this,"ssfi"),r=H(this,"message"),n;switch(r=r?r+": ":"",qe(e).toLowerCase()){case"array":case"string":n=e.length;break;case"map":case"set":n=e.size;break;case"weakmap":case"weakset":throw new Re(r+".empty was passed a weak collection",void 0,t);case"function":{let o=r+".empty was passed a function "+Ws(e);throw new Re(o.trim(),void 0,t)}default:if(e!==Object(e))throw new Re(r+".empty was passed non-string primitive "+Oe(e),void 0,t);n=Object.keys(e).length}this.assert(n===0,"expected #{this} to be empty","expected #{this} not to be empty")});function sp(){let e=H(this,"object"),t=qe(e);this.assert(t==="Arguments","expected #{this} to be arguments but got "+t,"expected #{this} to not be arguments")}z(sp,"checkArguments");k.addProperty("arguments",sp);k.addProperty("Arguments",sp);function Ks(e,t){t&&H(this,"message",t);let r=H(this,"object");if(H(this,"deep")){let n=H(this,"lockSsfi");H(this,"lockSsfi",!0),this.eql(e),H(this,"lockSsfi",n)}else this.assert(e===r,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",e,this._obj,!0)}z(Ks,"assertEqual");k.addMethod("equal",Ks);k.addMethod("equals",Ks);k.addMethod("eq",Ks);function lp(e,t){t&&H(this,"message",t);let r=H(this,"eql");this.assert(r(e,H(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",e,this._obj,!0)}z(lp,"assertEql");k.addMethod("eql",lp);k.addMethod("eqls",lp);function Ys(e,t){t&&H(this,"message",t);let r=H(this,"object"),n=H(this,"doLength"),o=H(this,"message"),i=o?o+": ":"",a=H(this,"ssfi"),s=qe(r).toLowerCase(),c=qe(e).toLowerCase();if(n&&s!=="map"&&s!=="set"&&new k(r,o,a,!0).to.have.property("length"),!n&&s==="date"&&c!=="date")throw new Re(i+"the argument to above must be a date",void 0,a);if(!nt(e)&&(n||nt(r)))throw new Re(i+"the argument to above must be a number",void 0,a);if(!n&&s!=="date"&&!nt(r)){let l=s==="string"?"'"+r+"'":r;throw new Re(i+"expected "+l+" to be a number or a date",void 0,a)}if(n){let l="length",d;s==="map"||s==="set"?(l="size",d=r.size):d=r.length,this.assert(d>e,"expected #{this} to have a "+l+" above #{exp} but got #{act}","expected #{this} to not have a "+l+" above #{exp}",e,d)}else this.assert(r>e,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",e)}z(Ys,"assertAbove");k.addMethod("above",Ys);k.addMethod("gt",Ys);k.addMethod("greaterThan",Ys);function Xs(e,t){t&&H(this,"message",t);let r=H(this,"object"),n=H(this,"doLength"),o=H(this,"message"),i=o?o+": ":"",a=H(this,"ssfi"),s=qe(r).toLowerCase(),c=qe(e).toLowerCase(),l,d=!0;if(n&&s!=="map"&&s!=="set"&&new k(r,o,a,!0).to.have.property("length"),!n&&s==="date"&&c!=="date")l=i+"the argument to least must be a date";else if(!nt(e)&&(n||nt(r)))l=i+"the argument to least must be a number";else if(!n&&s!=="date"&&!nt(r)){let p=s==="string"?"'"+r+"'":r;l=i+"expected "+p+" to be a number or a date"}else d=!1;if(d)throw new Re(l,void 0,a);if(n){let p="length",f;s==="map"||s==="set"?(p="size",f=r.size):f=r.length,this.assert(f>=e,"expected #{this} to have a "+p+" at least #{exp} but got #{act}","expected #{this} to have a "+p+" below #{exp}",e,f)}else this.assert(r>=e,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",e)}z(Xs,"assertLeast");k.addMethod("least",Xs);k.addMethod("gte",Xs);k.addMethod("greaterThanOrEqual",Xs);function Qs(e,t){t&&H(this,"message",t);let r=H(this,"object"),n=H(this,"doLength"),o=H(this,"message"),i=o?o+": ":"",a=H(this,"ssfi"),s=qe(r).toLowerCase(),c=qe(e).toLowerCase(),l,d=!0;if(n&&s!=="map"&&s!=="set"&&new k(r,o,a,!0).to.have.property("length"),!n&&s==="date"&&c!=="date")l=i+"the argument to below must be a date";else if(!nt(e)&&(n||nt(r)))l=i+"the argument to below must be a number";else if(!n&&s!=="date"&&!nt(r)){let p=s==="string"?"'"+r+"'":r;l=i+"expected "+p+" to be a number or a date"}else d=!1;if(d)throw new Re(l,void 0,a);if(n){let p="length",f;s==="map"||s==="set"?(p="size",f=r.size):f=r.length,this.assert(f<e,"expected #{this} to have a "+p+" below #{exp} but got #{act}","expected #{this} to not have a "+p+" below #{exp}",e,f)}else this.assert(r<e,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",e)}z(Qs,"assertBelow");k.addMethod("below",Qs);k.addMethod("lt",Qs);k.addMethod("lessThan",Qs);function Zs(e,t){t&&H(this,"message",t);let r=H(this,"object"),n=H(this,"doLength"),o=H(this,"message"),i=o?o+": ":"",a=H(this,"ssfi"),s=qe(r).toLowerCase(),c=qe(e).toLowerCase(),l,d=!0;if(n&&s!=="map"&&s!=="set"&&new k(r,o,a,!0).to.have.property("length"),!n&&s==="date"&&c!=="date")l=i+"the argument to most must be a date";else if(!nt(e)&&(n||nt(r)))l=i+"the argument to most must be a number";else if(!n&&s!=="date"&&!nt(r)){let p=s==="string"?"'"+r+"'":r;l=i+"expected "+p+" to be a number or a date"}else d=!1;if(d)throw new Re(l,void 0,a);if(n){let p="length",f;s==="map"||s==="set"?(p="size",f=r.size):f=r.length,this.assert(f<=e,"expected #{this} to have a "+p+" at most #{exp} but got #{act}","expected #{this} to have a "+p+" above #{exp}",e,f)}else this.assert(r<=e,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",e)}z(Zs,"assertMost");k.addMethod("most",Zs);k.addMethod("lte",Zs);k.addMethod("lessThanOrEqual",Zs);k.addMethod("within",function(e,t,r){r&&H(this,"message",r);let n=H(this,"object"),o=H(this,"doLength"),i=H(this,"message"),a=i?i+": ":"",s=H(this,"ssfi"),c=qe(n).toLowerCase(),l=qe(e).toLowerCase(),d=qe(t).toLowerCase(),p,f=!0,m=l==="date"&&d==="date"?e.toISOString()+".."+t.toISOString():e+".."+t;if(o&&c!=="map"&&c!=="set"&&new k(n,i,s,!0).to.have.property("length"),!o&&c==="date"&&(l!=="date"||d!=="date"))p=a+"the arguments to within must be dates";else if((!nt(e)||!nt(t))&&(o||nt(n)))p=a+"the arguments to within must be numbers";else if(!o&&c!=="date"&&!nt(n)){let y=c==="string"?"'"+n+"'":n;p=a+"expected "+y+" to be a number or a date"}else f=!1;if(f)throw new Re(p,void 0,s);if(o){let y="length",g;c==="map"||c==="set"?(y="size",g=n.size):g=n.length,this.assert(g>=e&&g<=t,"expected #{this} to have a "+y+" within "+m,"expected #{this} to not have a "+y+" within "+m)}else this.assert(n>=e&&n<=t,"expected #{this} to be within "+m,"expected #{this} to not be within "+m)});function up(e,t){t&&H(this,"message",t);let r=H(this,"object"),n=H(this,"ssfi"),o=H(this,"message"),i;try{i=r instanceof e}catch(s){throw s instanceof TypeError?(o=o?o+": ":"",new Re(o+"The instanceof assertion needs a constructor but "+qe(e)+" was given.",void 0,n)):s}let a=Ws(e);a==null&&(a="an unnamed constructor"),this.assert(i,"expected #{this} to be an instance of "+a,"expected #{this} to not be an instance of "+a)}z(up,"assertInstanceOf");k.addMethod("instanceof",up);k.addMethod("instanceOf",up);function cp(e,t,r){r&&H(this,"message",r);let n=H(this,"nested"),o=H(this,"own"),i=H(this,"message"),a=H(this,"object"),s=H(this,"ssfi"),c=typeof e;if(i=i?i+": ":"",n){if(c!=="string")throw new Re(i+"the argument to property must be a string when using nested syntax",void 0,s)}else if(c!=="string"&&c!=="number"&&c!=="symbol")throw new Re(i+"the argument to property must be a string, number, or symbol",void 0,s);if(n&&o)throw new Re(i+'The "nested" and "own" flags cannot be combined.',void 0,s);if(a==null)throw new Re(i+"Target cannot be null or undefined.",void 0,s);let l=H(this,"deep"),d=H(this,"negate"),p=n?Kd(a,e):null,f=n?p.value:a[e],m=l?H(this,"eql"):(v,b)=>v===b,y="";l&&(y+="deep "),o&&(y+="own "),n&&(y+="nested "),y+="property ";let g;o?g=Object.prototype.hasOwnProperty.call(a,e):n?g=p.exists:g=Gs(a,e),(!d||arguments.length===1)&&this.assert(g,"expected #{this} to have "+y+Oe(e),"expected #{this} to not have "+y+Oe(e)),arguments.length>1&&this.assert(g&&m(t,f),"expected #{this} to have "+y+Oe(e)+" of #{exp}, but got #{act}","expected #{this} to not have "+y+Oe(e)+" of #{act}",t,f),H(this,"object",f)}z(cp,"assertProperty");k.addMethod("property",cp);function dp(e,t,r){H(this,"own",!0),cp.apply(this,arguments)}z(dp,"assertOwnProperty");k.addMethod("ownProperty",dp);k.addMethod("haveOwnProperty",dp);function pp(e,t,r){typeof t=="string"&&(r=t,t=null),r&&H(this,"message",r);let n=H(this,"object"),o=Object.getOwnPropertyDescriptor(Object(n),e),i=H(this,"eql");o&&t?this.assert(i(t,o),"expected the own property descriptor for "+Oe(e)+" on #{this} to match "+Oe(t)+", got "+Oe(o),"expected the own property descriptor for "+Oe(e)+" on #{this} to not match "+Oe(t),t,o,!0):this.assert(o,"expected #{this} to have an own property descriptor for "+Oe(e),"expected #{this} to not have an own property descriptor for "+Oe(e)),H(this,"object",o)}z(pp,"assertOwnPropertyDescriptor");k.addMethod("ownPropertyDescriptor",pp);k.addMethod("haveOwnPropertyDescriptor",pp);function fp(){H(this,"doLength",!0)}z(fp,"assertLengthChain");function mp(e,t){t&&H(this,"message",t);let r=H(this,"object"),n=qe(r).toLowerCase(),o=H(this,"message"),i=H(this,"ssfi"),a="length",s;switch(n){case"map":case"set":a="size",s=r.size;break;default:new k(r,o,i,!0).to.have.property("length"),s=r.length}this.assert(s==e,"expected #{this} to have a "+a+" of #{exp} but got #{act}","expected #{this} to not have a "+a+" of #{act}",e,s)}z(mp,"assertLength");k.addChainableMethod("length",mp,fp);k.addChainableMethod("lengthOf",mp,fp);function hp(e,t){t&&H(this,"message",t);let r=H(this,"object");this.assert(e.exec(r),"expected #{this} to match "+e,"expected #{this} not to match "+e)}z(hp,"assertMatch");k.addMethod("match",hp);k.addMethod("matches",hp);k.addMethod("string",function(e,t){t&&H(this,"message",t);let r=H(this,"object"),n=H(this,"message"),o=H(this,"ssfi");new k(r,n,o,!0).is.a("string"),this.assert(~r.indexOf(e),"expected #{this} to contain "+Oe(e),"expected #{this} to not contain "+Oe(e))});function yp(e){let t=H(this,"object"),r=qe(t),n=qe(e),o=H(this,"ssfi"),i=H(this,"deep"),a,s="",c,l=!0,d=H(this,"message");d=d?d+": ":"";let p=d+"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";if(r==="Map"||r==="Set")s=i?"deeply ":"",c=[],t.forEach(function(b,T){c.push(T)}),n!=="Array"&&(e=Array.prototype.slice.call(arguments));else{switch(c=np(t),n){case"Array":if(arguments.length>1)throw new Re(p,void 0,o);break;case"Object":if(arguments.length>1)throw new Re(p,void 0,o);e=Object.keys(e);break;default:e=Array.prototype.slice.call(arguments)}e=e.map(function(b){return typeof b=="symbol"?b:String(b)})}if(!e.length)throw new Re(d+"keys required",void 0,o);let f=e.length,m=H(this,"any"),y=H(this,"all"),g=e,v=i?H(this,"eql"):(b,T)=>b===T;if(!m&&!y&&(y=!0),m&&(l=g.some(function(b){return c.some(function(T){return v(b,T)})})),y&&(l=g.every(function(b){return c.some(function(T){return v(b,T)})}),H(this,"contains")||(l=l&&e.length==c.length)),f>1){e=e.map(function(T){return Oe(T)});let b=e.pop();y&&(a=e.join(", ")+", and "+b),m&&(a=e.join(", ")+", or "+b)}else a=Oe(e[0]);a=(f>1?"keys ":"key ")+a,a=(H(this,"contains")?"contain ":"have ")+a,this.assert(l,"expected #{this} to "+s+a,"expected #{this} to not "+s+a,g.slice(0).sort(ts),c.sort(ts),!0)}z(yp,"assertKeys");k.addMethod("keys",yp);k.addMethod("key",yp);function el(e,t,r){r&&H(this,"message",r);let n=H(this,"object"),o=H(this,"ssfi"),i=H(this,"message"),a=H(this,"negate")||!1;new k(n,i,o,!0).is.a("function"),(ns(e)||typeof e=="string")&&(t=e,e=null);let s,c=!1;try{n()}catch(m){c=!0,s=m}let l=e===void 0&&t===void 0,d=!!(e&&t),p=!1,f=!1;if(l||!l&&!a){let m="an error";e instanceof Error?m="#{exp}":e&&(m=St.getConstructorName(e));let y=s;if(s instanceof Error)y=s.toString();else if(typeof s=="string")y=s;else if(s&&(typeof s=="object"||typeof s=="function"))try{y=St.getConstructorName(s)}catch{}this.assert(c,"expected #{this} to throw "+m,"expected #{this} to not throw an error but #{act} was thrown",e&&e.toString(),y)}if(e&&s&&(e instanceof Error&&St.compatibleInstance(s,e)===a&&(d&&a?p=!0:this.assert(a,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(s&&!a?" but #{act} was thrown":""),e.toString(),s.toString())),St.compatibleConstructor(s,e)===a&&(d&&a?p=!0:this.assert(a,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(s?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&St.getConstructorName(e),s instanceof Error?s.toString():s&&St.getConstructorName(s)))),s&&t!==void 0&&t!==null){let m="including";ns(t)&&(m="matching"),St.compatibleMessage(s,t)===a&&(d&&a?f=!0:this.assert(a,"expected #{this} to throw error "+m+" #{exp} but got #{act}","expected #{this} to throw error not "+m+" #{exp}",t,St.getMessage(s)))}p&&f&&this.assert(a,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(s?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&St.getConstructorName(e),s instanceof Error?s.toString():s&&St.getConstructorName(s)),H(this,"object",s)}z(el,"assertThrows");k.addMethod("throw",el);k.addMethod("throws",el);k.addMethod("Throw",el);function gp(e,t){t&&H(this,"message",t);let r=H(this,"object"),n=H(this,"itself"),o=typeof r=="function"&&!n?r.prototype[e]:r[e];this.assert(typeof o=="function","expected #{this} to respond to "+Oe(e),"expected #{this} to not respond to "+Oe(e))}z(gp,"respondTo");k.addMethod("respondTo",gp);k.addMethod("respondsTo",gp);k.addProperty("itself",function(){H(this,"itself",!0)});function bp(e,t){t&&H(this,"message",t);let r=H(this,"object"),n=e(r);this.assert(n,"expected #{this} to satisfy "+gn(e),"expected #{this} to not satisfy"+gn(e),!H(this,"negate"),n)}z(bp,"satisfy");k.addMethod("satisfy",bp);k.addMethod("satisfies",bp);function vp(e,t,r){r&&H(this,"message",r);let n=H(this,"object"),o=H(this,"message"),i=H(this,"ssfi");new k(n,o,i,!0).is.numeric;let a="A `delta` value is required for `closeTo`";if(t==null)throw new Re(o?`${o}: ${a}`:a,void 0,i);if(new k(t,o,i,!0).is.numeric,a="A `expected` value is required for `closeTo`",e==null)throw new Re(o?`${o}: ${a}`:a,void 0,i);new k(e,o,i,!0).is.numeric;let s=z(l=>l<0n?-l:l,"abs"),c=z(l=>parseFloat(parseFloat(l).toPrecision(12)),"strip");this.assert(c(s(n-e))<=t,"expected #{this} to be close to "+e+" +/- "+t,"expected #{this} not to be close to "+e+" +/- "+t)}z(vp,"closeTo");k.addMethod("closeTo",vp);k.addMethod("approximately",vp);function FE(e,t,r,n,o){let i=Array.from(t),a=Array.from(e);if(!n){if(a.length!==i.length)return!1;i=i.slice()}return a.every(function(s,c){if(o)return r?r(s,i[c]):s===i[c];if(!r){let l=i.indexOf(s);return l===-1?!1:(n||i.splice(l,1),!0)}return i.some(function(l,d){return r(s,l)?(n||i.splice(d,1),!0):!1})})}z(FE,"isSubsetOf");k.addMethod("members",function(e,t){t&&H(this,"message",t);let r=H(this,"object"),n=H(this,"message"),o=H(this,"ssfi");new k(r,n,o,!0).to.be.iterable,new k(e,n,o,!0).to.be.iterable;let i=H(this,"contains"),a=H(this,"ordered"),s,c,l;i?(s=a?"an ordered superset":"a superset",c="expected #{this} to be "+s+" of #{exp}",l="expected #{this} to not be "+s+" of #{exp}"):(s=a?"ordered members":"members",c="expected #{this} to have the same "+s+" as #{exp}",l="expected #{this} to not have the same "+s+" as #{exp}");let d=H(this,"deep")?H(this,"eql"):void 0;this.assert(FE(e,r,d,i,a),c,l,e,r,!0)});k.addProperty("iterable",function(e){e&&H(this,"message",e);let t=H(this,"object");this.assert(t!=null&&t[Symbol.iterator],"expected #{this} to be an iterable","expected #{this} to not be an iterable",t)});function $E(e,t){t&&H(this,"message",t);let r=H(this,"object"),n=H(this,"message"),o=H(this,"ssfi"),i=H(this,"contains"),a=H(this,"deep"),s=H(this,"eql");new k(e,n,o,!0).to.be.an("array"),i?this.assert(e.some(function(c){return r.indexOf(c)>-1}),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",e,r):a?this.assert(e.some(function(c){return s(r,c)}),"expected #{this} to deeply equal one of #{exp}","expected #{this} to deeply equal one of #{exp}",e,r):this.assert(e.indexOf(r)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",e,r)}z($E,"oneOf");k.addMethod("oneOf",$E);function Ep(e,t,r){r&&H(this,"message",r);let n=H(this,"object"),o=H(this,"message"),i=H(this,"ssfi");new k(n,o,i,!0).is.a("function");let a;t?(new k(e,o,i,!0).to.have.property(t),a=e[t]):(new k(e,o,i,!0).is.a("function"),a=e()),n();let s=t==null?e():e[t],c=t==null?a:"."+t;H(this,"deltaMsgObj",c),H(this,"initialDeltaValue",a),H(this,"finalDeltaValue",s),H(this,"deltaBehavior","change"),H(this,"realDelta",s!==a),this.assert(a!==s,"expected "+c+" to change","expected "+c+" to not change")}z(Ep,"assertChanges");k.addMethod("change",Ep);k.addMethod("changes",Ep);function wp(e,t,r){r&&H(this,"message",r);let n=H(this,"object"),o=H(this,"message"),i=H(this,"ssfi");new k(n,o,i,!0).is.a("function");let a;t?(new k(e,o,i,!0).to.have.property(t),a=e[t]):(new k(e,o,i,!0).is.a("function"),a=e()),new k(a,o,i,!0).is.a("number"),n();let s=t==null?e():e[t],c=t==null?a:"."+t;H(this,"deltaMsgObj",c),H(this,"initialDeltaValue",a),H(this,"finalDeltaValue",s),H(this,"deltaBehavior","increase"),H(this,"realDelta",s-a),this.assert(s-a>0,"expected "+c+" to increase","expected "+c+" to not increase")}z(wp,"assertIncreases");k.addMethod("increase",wp);k.addMethod("increases",wp);function _p(e,t,r){r&&H(this,"message",r);let n=H(this,"object"),o=H(this,"message"),i=H(this,"ssfi");new k(n,o,i,!0).is.a("function");let a;t?(new k(e,o,i,!0).to.have.property(t),a=e[t]):(new k(e,o,i,!0).is.a("function"),a=e()),new k(a,o,i,!0).is.a("number"),n();let s=t==null?e():e[t],c=t==null?a:"."+t;H(this,"deltaMsgObj",c),H(this,"initialDeltaValue",a),H(this,"finalDeltaValue",s),H(this,"deltaBehavior","decrease"),H(this,"realDelta",a-s),this.assert(s-a<0,"expected "+c+" to decrease","expected "+c+" to not decrease")}z(_p,"assertDecreases");k.addMethod("decrease",_p);k.addMethod("decreases",_p);function BE(e,t){t&&H(this,"message",t);let r=H(this,"deltaMsgObj"),n=H(this,"initialDeltaValue"),o=H(this,"finalDeltaValue"),i=H(this,"deltaBehavior"),a=H(this,"realDelta"),s;i==="change"?s=Math.abs(o-n)===Math.abs(e):s=a===Math.abs(e),this.assert(s,"expected "+r+" to "+i+" by "+e,"expected "+r+" to not "+i+" by "+e)}z(BE,"assertDelta");k.addMethod("by",BE);k.addProperty("extensible",function(){let e=H(this,"object"),t=e===Object(e)&&Object.isExtensible(e);this.assert(t,"expected #{this} to be extensible","expected #{this} to not be extensible")});k.addProperty("sealed",function(){let e=H(this,"object"),t=e===Object(e)?Object.isSealed(e):!0;this.assert(t,"expected #{this} to be sealed","expected #{this} to not be sealed")});k.addProperty("frozen",function(){let e=H(this,"object"),t=e===Object(e)?Object.isFrozen(e):!0;this.assert(t,"expected #{this} to be frozen","expected #{this} to not be frozen")});k.addProperty("finite",function(e){let t=H(this,"object");this.assert(typeof t=="number"&&isFinite(t),"expected #{this} to be a finite number","expected #{this} to not be a finite number")});function os(e,t){return e===t?!0:typeof t!=typeof e?!1:typeof e!="object"||e===null?e===t:t?Array.isArray(e)?Array.isArray(t)?e.every(function(r){return t.some(function(n){return os(r,n)})}):!1:e instanceof Date?t instanceof Date?e.getTime()===t.getTime():!1:Object.keys(e).every(function(r){let n=e[r],o=t[r];return typeof n=="object"&&n!==null&&o!==null?os(n,o):typeof n=="function"?n(o):o===n}):!1}z(os,"compareSubset");k.addMethod("containSubset",function(e){let t=ve(this,"object"),r=Et.showDiff;this.assert(os(e,t),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",e,t,r)});function bn(e,t){return new k(e,t)}z(bn,"expect");bn.fail=function(e,t,r,n){throw arguments.length<2&&(r=e,e=void 0),r=r||"expect.fail()",new Re(r,{actual:e,expected:t,operator:n},bn.fail)};var UE={};Ud(UE,{Should:()=>Tq,should:()=>_q});function Tp(){function e(){return this instanceof String||this instanceof Number||this instanceof Boolean||typeof Symbol=="function"&&this instanceof Symbol||typeof BigInt=="function"&&this instanceof BigInt?new k(this.valueOf(),null,e):new k(this,null,e)}z(e,"shouldGetter");function t(n){Object.defineProperty(this,"should",{value:n,enumerable:!0,configurable:!0,writable:!0})}z(t,"shouldSetter"),Object.defineProperty(Object.prototype,"should",{set:t,get:e,configurable:!0});let r={};return r.fail=function(n,o,i,a){throw arguments.length<2&&(i=n,n=void 0),i=i||"should.fail()",new Re(i,{actual:n,expected:o,operator:a},r.fail)},r.equal=function(n,o,i){new k(n,i).to.equal(o)},r.Throw=function(n,o,i,a){new k(n,a).to.Throw(o,i)},r.exist=function(n,o){new k(n,o).to.exist},r.not={},r.not.equal=function(n,o,i){new k(n,i).to.not.equal(o)},r.not.Throw=function(n,o,i,a){new k(n,a).to.not.Throw(o,i)},r.not.exist=function(n,o){new k(n,o).to.not.exist},r.throw=r.Throw,r.not.throw=r.not.Throw,r}z(Tp,"loadShould");var _q=Tp,Tq=Tp;function I(e,t){new k(null,null,I,!0).assert(e,t,"[ negation message unavailable ]")}z(I,"assert");I.fail=function(e,t,r,n){throw arguments.length<2&&(r=e,e=void 0),r=r||"assert.fail()",new Re(r,{actual:e,expected:t,operator:n},I.fail)};I.isOk=function(e,t){new k(e,t,I.isOk,!0).is.ok};I.isNotOk=function(e,t){new k(e,t,I.isNotOk,!0).is.not.ok};I.equal=function(e,t,r){let n=new k(e,r,I.equal,!0);n.assert(t==ve(n,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",t,e,!0)};I.notEqual=function(e,t,r){let n=new k(e,r,I.notEqual,!0);n.assert(t!=ve(n,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",t,e,!0)};I.strictEqual=function(e,t,r){new k(e,r,I.strictEqual,!0).to.equal(t)};I.notStrictEqual=function(e,t,r){new k(e,r,I.notStrictEqual,!0).to.not.equal(t)};I.deepEqual=I.deepStrictEqual=function(e,t,r){new k(e,r,I.deepEqual,!0).to.eql(t)};I.notDeepEqual=function(e,t,r){new k(e,r,I.notDeepEqual,!0).to.not.eql(t)};I.isAbove=function(e,t,r){new k(e,r,I.isAbove,!0).to.be.above(t)};I.isAtLeast=function(e,t,r){new k(e,r,I.isAtLeast,!0).to.be.least(t)};I.isBelow=function(e,t,r){new k(e,r,I.isBelow,!0).to.be.below(t)};I.isAtMost=function(e,t,r){new k(e,r,I.isAtMost,!0).to.be.most(t)};I.isTrue=function(e,t){new k(e,t,I.isTrue,!0).is.true};I.isNotTrue=function(e,t){new k(e,t,I.isNotTrue,!0).to.not.equal(!0)};I.isFalse=function(e,t){new k(e,t,I.isFalse,!0).is.false};I.isNotFalse=function(e,t){new k(e,t,I.isNotFalse,!0).to.not.equal(!1)};I.isNull=function(e,t){new k(e,t,I.isNull,!0).to.equal(null)};I.isNotNull=function(e,t){new k(e,t,I.isNotNull,!0).to.not.equal(null)};I.isNaN=function(e,t){new k(e,t,I.isNaN,!0).to.be.NaN};I.isNotNaN=function(e,t){new k(e,t,I.isNotNaN,!0).not.to.be.NaN};I.exists=function(e,t){new k(e,t,I.exists,!0).to.exist};I.notExists=function(e,t){new k(e,t,I.notExists,!0).to.not.exist};I.isUndefined=function(e,t){new k(e,t,I.isUndefined,!0).to.equal(void 0)};I.isDefined=function(e,t){new k(e,t,I.isDefined,!0).to.not.equal(void 0)};I.isCallable=function(e,t){new k(e,t,I.isCallable,!0).is.callable};I.isNotCallable=function(e,t){new k(e,t,I.isNotCallable,!0).is.not.callable};I.isObject=function(e,t){new k(e,t,I.isObject,!0).to.be.a("object")};I.isNotObject=function(e,t){new k(e,t,I.isNotObject,!0).to.not.be.a("object")};I.isArray=function(e,t){new k(e,t,I.isArray,!0).to.be.an("array")};I.isNotArray=function(e,t){new k(e,t,I.isNotArray,!0).to.not.be.an("array")};I.isString=function(e,t){new k(e,t,I.isString,!0).to.be.a("string")};I.isNotString=function(e,t){new k(e,t,I.isNotString,!0).to.not.be.a("string")};I.isNumber=function(e,t){new k(e,t,I.isNumber,!0).to.be.a("number")};I.isNotNumber=function(e,t){new k(e,t,I.isNotNumber,!0).to.not.be.a("number")};I.isNumeric=function(e,t){new k(e,t,I.isNumeric,!0).is.numeric};I.isNotNumeric=function(e,t){new k(e,t,I.isNotNumeric,!0).is.not.numeric};I.isFinite=function(e,t){new k(e,t,I.isFinite,!0).to.be.finite};I.isBoolean=function(e,t){new k(e,t,I.isBoolean,!0).to.be.a("boolean")};I.isNotBoolean=function(e,t){new k(e,t,I.isNotBoolean,!0).to.not.be.a("boolean")};I.typeOf=function(e,t,r){new k(e,r,I.typeOf,!0).to.be.a(t)};I.notTypeOf=function(e,t,r){new k(e,r,I.notTypeOf,!0).to.not.be.a(t)};I.instanceOf=function(e,t,r){new k(e,r,I.instanceOf,!0).to.be.instanceOf(t)};I.notInstanceOf=function(e,t,r){new k(e,r,I.notInstanceOf,!0).to.not.be.instanceOf(t)};I.include=function(e,t,r){new k(e,r,I.include,!0).include(t)};I.notInclude=function(e,t,r){new k(e,r,I.notInclude,!0).not.include(t)};I.deepInclude=function(e,t,r){new k(e,r,I.deepInclude,!0).deep.include(t)};I.notDeepInclude=function(e,t,r){new k(e,r,I.notDeepInclude,!0).not.deep.include(t)};I.nestedInclude=function(e,t,r){new k(e,r,I.nestedInclude,!0).nested.include(t)};I.notNestedInclude=function(e,t,r){new k(e,r,I.notNestedInclude,!0).not.nested.include(t)};I.deepNestedInclude=function(e,t,r){new k(e,r,I.deepNestedInclude,!0).deep.nested.include(t)};I.notDeepNestedInclude=function(e,t,r){new k(e,r,I.notDeepNestedInclude,!0).not.deep.nested.include(t)};I.ownInclude=function(e,t,r){new k(e,r,I.ownInclude,!0).own.include(t)};I.notOwnInclude=function(e,t,r){new k(e,r,I.notOwnInclude,!0).not.own.include(t)};I.deepOwnInclude=function(e,t,r){new k(e,r,I.deepOwnInclude,!0).deep.own.include(t)};I.notDeepOwnInclude=function(e,t,r){new k(e,r,I.notDeepOwnInclude,!0).not.deep.own.include(t)};I.match=function(e,t,r){new k(e,r,I.match,!0).to.match(t)};I.notMatch=function(e,t,r){new k(e,r,I.notMatch,!0).to.not.match(t)};I.property=function(e,t,r){new k(e,r,I.property,!0).to.have.property(t)};I.notProperty=function(e,t,r){new k(e,r,I.notProperty,!0).to.not.have.property(t)};I.propertyVal=function(e,t,r,n){new k(e,n,I.propertyVal,!0).to.have.property(t,r)};I.notPropertyVal=function(e,t,r,n){new k(e,n,I.notPropertyVal,!0).to.not.have.property(t,r)};I.deepPropertyVal=function(e,t,r,n){new k(e,n,I.deepPropertyVal,!0).to.have.deep.property(t,r)};I.notDeepPropertyVal=function(e,t,r,n){new k(e,n,I.notDeepPropertyVal,!0).to.not.have.deep.property(t,r)};I.ownProperty=function(e,t,r){new k(e,r,I.ownProperty,!0).to.have.own.property(t)};I.notOwnProperty=function(e,t,r){new k(e,r,I.notOwnProperty,!0).to.not.have.own.property(t)};I.ownPropertyVal=function(e,t,r,n){new k(e,n,I.ownPropertyVal,!0).to.have.own.property(t,r)};I.notOwnPropertyVal=function(e,t,r,n){new k(e,n,I.notOwnPropertyVal,!0).to.not.have.own.property(t,r)};I.deepOwnPropertyVal=function(e,t,r,n){new k(e,n,I.deepOwnPropertyVal,!0).to.have.deep.own.property(t,r)};I.notDeepOwnPropertyVal=function(e,t,r,n){new k(e,n,I.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(t,r)};I.nestedProperty=function(e,t,r){new k(e,r,I.nestedProperty,!0).to.have.nested.property(t)};I.notNestedProperty=function(e,t,r){new k(e,r,I.notNestedProperty,!0).to.not.have.nested.property(t)};I.nestedPropertyVal=function(e,t,r,n){new k(e,n,I.nestedPropertyVal,!0).to.have.nested.property(t,r)};I.notNestedPropertyVal=function(e,t,r,n){new k(e,n,I.notNestedPropertyVal,!0).to.not.have.nested.property(t,r)};I.deepNestedPropertyVal=function(e,t,r,n){new k(e,n,I.deepNestedPropertyVal,!0).to.have.deep.nested.property(t,r)};I.notDeepNestedPropertyVal=function(e,t,r,n){new k(e,n,I.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(t,r)};I.lengthOf=function(e,t,r){new k(e,r,I.lengthOf,!0).to.have.lengthOf(t)};I.hasAnyKeys=function(e,t,r){new k(e,r,I.hasAnyKeys,!0).to.have.any.keys(t)};I.hasAllKeys=function(e,t,r){new k(e,r,I.hasAllKeys,!0).to.have.all.keys(t)};I.containsAllKeys=function(e,t,r){new k(e,r,I.containsAllKeys,!0).to.contain.all.keys(t)};I.doesNotHaveAnyKeys=function(e,t,r){new k(e,r,I.doesNotHaveAnyKeys,!0).to.not.have.any.keys(t)};I.doesNotHaveAllKeys=function(e,t,r){new k(e,r,I.doesNotHaveAllKeys,!0).to.not.have.all.keys(t)};I.hasAnyDeepKeys=function(e,t,r){new k(e,r,I.hasAnyDeepKeys,!0).to.have.any.deep.keys(t)};I.hasAllDeepKeys=function(e,t,r){new k(e,r,I.hasAllDeepKeys,!0).to.have.all.deep.keys(t)};I.containsAllDeepKeys=function(e,t,r){new k(e,r,I.containsAllDeepKeys,!0).to.contain.all.deep.keys(t)};I.doesNotHaveAnyDeepKeys=function(e,t,r){new k(e,r,I.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(t)};I.doesNotHaveAllDeepKeys=function(e,t,r){new k(e,r,I.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(t)};I.throws=function(e,t,r,n){(typeof t=="string"||t instanceof RegExp)&&(r=t,t=null);let o=new k(e,n,I.throws,!0).to.throw(t,r);return ve(o,"object")};I.doesNotThrow=function(e,t,r,n){(typeof t=="string"||t instanceof RegExp)&&(r=t,t=null),new k(e,n,I.doesNotThrow,!0).to.not.throw(t,r)};I.operator=function(e,t,r,n){let o;switch(t){case"==":o=e==r;break;case"===":o=e===r;break;case">":o=e>r;break;case">=":o=e>=r;break;case"<":o=e<r;break;case"<=":o=e<=r;break;case"!=":o=e!=r;break;case"!==":o=e!==r;break;default:throw n=n&&n+": ",new Re(n+'Invalid operator "'+t+'"',void 0,I.operator)}let i=new k(o,n,I.operator,!0);i.assert(ve(i,"object")===!0,"expected "+Oe(e)+" to be "+t+" "+Oe(r),"expected "+Oe(e)+" to not be "+t+" "+Oe(r))};I.closeTo=function(e,t,r,n){new k(e,n,I.closeTo,!0).to.be.closeTo(t,r)};I.approximately=function(e,t,r,n){new k(e,n,I.approximately,!0).to.be.approximately(t,r)};I.sameMembers=function(e,t,r){new k(e,r,I.sameMembers,!0).to.have.same.members(t)};I.notSameMembers=function(e,t,r){new k(e,r,I.notSameMembers,!0).to.not.have.same.members(t)};I.sameDeepMembers=function(e,t,r){new k(e,r,I.sameDeepMembers,!0).to.have.same.deep.members(t)};I.notSameDeepMembers=function(e,t,r){new k(e,r,I.notSameDeepMembers,!0).to.not.have.same.deep.members(t)};I.sameOrderedMembers=function(e,t,r){new k(e,r,I.sameOrderedMembers,!0).to.have.same.ordered.members(t)};I.notSameOrderedMembers=function(e,t,r){new k(e,r,I.notSameOrderedMembers,!0).to.not.have.same.ordered.members(t)};I.sameDeepOrderedMembers=function(e,t,r){new k(e,r,I.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(t)};I.notSameDeepOrderedMembers=function(e,t,r){new k(e,r,I.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(t)};I.includeMembers=function(e,t,r){new k(e,r,I.includeMembers,!0).to.include.members(t)};I.notIncludeMembers=function(e,t,r){new k(e,r,I.notIncludeMembers,!0).to.not.include.members(t)};I.includeDeepMembers=function(e,t,r){new k(e,r,I.includeDeepMembers,!0).to.include.deep.members(t)};I.notIncludeDeepMembers=function(e,t,r){new k(e,r,I.notIncludeDeepMembers,!0).to.not.include.deep.members(t)};I.includeOrderedMembers=function(e,t,r){new k(e,r,I.includeOrderedMembers,!0).to.include.ordered.members(t)};I.notIncludeOrderedMembers=function(e,t,r){new k(e,r,I.notIncludeOrderedMembers,!0).to.not.include.ordered.members(t)};I.includeDeepOrderedMembers=function(e,t,r){new k(e,r,I.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(t)};I.notIncludeDeepOrderedMembers=function(e,t,r){new k(e,r,I.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(t)};I.oneOf=function(e,t,r){new k(e,r,I.oneOf,!0).to.be.oneOf(t)};I.isIterable=function(e,t){if(e==null||!e[Symbol.iterator])throw t=t?`${t} expected ${Oe(e)} to be an iterable`:`expected ${Oe(e)} to be an iterable`,new Re(t,void 0,I.isIterable)};I.changes=function(e,t,r,n){arguments.length===3&&typeof t=="function"&&(n=r,r=null),new k(e,n,I.changes,!0).to.change(t,r)};I.changesBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);new k(e,o,I.changesBy,!0).to.change(t,r).by(n)};I.doesNotChange=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new k(e,n,I.doesNotChange,!0).to.not.change(t,r)};I.changesButNotBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);new k(e,o,I.changesButNotBy,!0).to.change(t,r).but.not.by(n)};I.increases=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new k(e,n,I.increases,!0).to.increase(t,r)};I.increasesBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);new k(e,o,I.increasesBy,!0).to.increase(t,r).by(n)};I.doesNotIncrease=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new k(e,n,I.doesNotIncrease,!0).to.not.increase(t,r)};I.increasesButNotBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);new k(e,o,I.increasesButNotBy,!0).to.increase(t,r).but.not.by(n)};I.decreases=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new k(e,n,I.decreases,!0).to.decrease(t,r)};I.decreasesBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);new k(e,o,I.decreasesBy,!0).to.decrease(t,r).by(n)};I.doesNotDecrease=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new k(e,n,I.doesNotDecrease,!0).to.not.decrease(t,r)};I.doesNotDecreaseBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);return new k(e,o,I.doesNotDecreaseBy,!0).to.not.decrease(t,r).by(n)};I.decreasesButNotBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);new k(e,o,I.decreasesButNotBy,!0).to.decrease(t,r).but.not.by(n)};I.ifError=function(e){if(e)throw e};I.isExtensible=function(e,t){new k(e,t,I.isExtensible,!0).to.be.extensible};I.isNotExtensible=function(e,t){new k(e,t,I.isNotExtensible,!0).to.not.be.extensible};I.isSealed=function(e,t){new k(e,t,I.isSealed,!0).to.be.sealed};I.isNotSealed=function(e,t){new k(e,t,I.isNotSealed,!0).to.not.be.sealed};I.isFrozen=function(e,t){new k(e,t,I.isFrozen,!0).to.be.frozen};I.isNotFrozen=function(e,t){new k(e,t,I.isNotFrozen,!0).to.not.be.frozen};I.isEmpty=function(e,t){new k(e,t,I.isEmpty,!0).to.be.empty};I.isNotEmpty=function(e,t){new k(e,t,I.isNotEmpty,!0).to.not.be.empty};I.containsSubset=function(e,t,r){new k(e,r).to.containSubset(t)};I.doesNotContainSubset=function(e,t,r){new k(e,r).to.not.containSubset(t)};var xq=[["isOk","ok"],["isNotOk","notOk"],["throws","throw"],["throws","Throw"],["isExtensible","extensible"],["isNotExtensible","notExtensible"],["isSealed","sealed"],["isNotSealed","notSealed"],["isFrozen","frozen"],["isNotFrozen","notFrozen"],["isEmpty","empty"],["isNotEmpty","notEmpty"],["isCallable","isFunction"],["isNotCallable","isNotFunction"],["containsSubset","containSubset"]];for(let[e,t]of xq)I[t]=I[e];var Fm=[];function Hn(e){let t={use:Hn,AssertionError:Re,util:or,config:Et,expect:bn,assert:I,Assertion:k,...UE};return~Fm.indexOf(e)||(e(t,or),Fm.push(e)),t}z(Hn,"use");var HE={};Tt(HE,{toBeChecked:()=>Cw,toBeDisabled:()=>ww,toBeEmpty:()=>aw,toBeEmptyDOMElement:()=>sw,toBeEnabled:()=>_w,toBeInTheDOM:()=>rc,toBeInTheDocument:()=>iw,toBeInvalid:()=>Sw,toBePartiallyChecked:()=>Mw,toBeRequired:()=>Tw,toBeValid:()=>Aw,toBeVisible:()=>yw,toContainElement:()=>nc,toContainHTML:()=>lw,toHaveAccessibleDescription:()=>oc,toHaveAccessibleErrorMessage:()=>cw,toHaveAccessibleName:()=>ac,toHaveAttribute:()=>dw,toHaveClass:()=>pw,toHaveDescription:()=>Nw,toHaveDisplayValue:()=>Rw,toHaveErrorMessage:()=>Iw,toHaveFocus:()=>fw,toHaveFormValues:()=>mw,toHaveRole:()=>ic,toHaveSelection:()=>kw,toHaveStyle:()=>sc,toHaveTextContent:()=>uw,toHaveValue:()=>Ow});var $m=We(fg(),1);function JE(e){Object.defineProperty(e,"__esModule",{value:!0,configurable:!0})}function xp(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}var VE={};JE(VE);xp(VE,"default",()=>zE);var zE=class extends Error{constructor(e,t,r,n,o){super(e+":"+r+":"+n+": "+t),this.reason=t,this.filename=e,this.line=r,this.column=n,this.source=o}},GE={};JE(GE);xp(GE,"default",()=>WE);var WE=class{constructor(e,t,r){this.start=e,this.end=t,this.source=r}},Sq={};xp(Sq,"CssTypes",()=>Ye);var Ye;(function(e){e.stylesheet="stylesheet",e.rule="rule",e.declaration="declaration",e.comment="comment",e.container="container",e.charset="charset",e.document="document",e.customMedia="custom-media",e.fontFace="font-face",e.host="host",e.import="import",e.keyframes="keyframes",e.keyframe="keyframe",e.layer="layer",e.media="media",e.namespace="namespace",e.page="page",e.startingStyle="starting-style",e.supports="supports"})(Ye||(Ye={}));var Xl=/\/\*[^]*?(?:\*\/|$)/g,Aq=(e,t)=>{t=t||{};let r=1,n=1;function o(L){let G=L.match(/\n/g);G&&(r+=G.length);let Q=L.lastIndexOf(`
214
- `);n=~Q?L.length-Q:n+L.length}function i(){let L={line:r,column:n};return function(G){return G.position=new WE(L,{line:r,column:n},t?.source||""),m(),G}}let a=[];function s(L){let G=new zE(t?.source||"",L,r,n,e);if(t?.silent)a.push(G);else throw G}function c(){let L=p();return{type:Ye.stylesheet,stylesheet:{source:t?.source,rules:L,parsingErrors:a}}}function l(){return f(/^{\s*/)}function d(){return f(/^}/)}function p(){let L,G=[];for(m(),y(G);e.length&&e.charAt(0)!=="}"&&(L=ue()||D());)L&&(G.push(L),y(G));return G}function f(L){let G=L.exec(e);if(!G)return;let Q=G[0];return o(Q),e=e.slice(Q.length),G}function m(){f(/^\s*/)}function y(L){let G;for(L=L||[];G=g();)G&&L.push(G);return L}function g(){let L=i();if(e.charAt(0)!=="/"||e.charAt(1)!=="*")return;let G=f(/^\/\*[^]*?\*\//);return G?L({type:Ye.comment,comment:G[0].slice(2,-2)}):s("End of comment missing")}function v(L,G,Q){let X=G+1,K=!1,ie=L.indexOf(")",X);for(;!K&&ie!==-1;){let se=L.indexOf("(",X);se!==-1&&se<ie?(X=v(L,se+1)+1,ie=L.indexOf(")",X)):K=!0}return K&&ie!==-1?ie:-1}function b(){let L=f(/^([^{]+)/);if(!L)return;let G=jt(L[0]).replace(Xl,"");if(G.indexOf(",")===-1)return[G];let Q=0,X=G.indexOf("(",Q);for(;X!==-1;){let K=v(G,X);if(K===-1)break;Q=K+1,G=G.substring(0,X)+G.substring(X,K).replace(/,/g,"‌")+G.substring(K),X=G.indexOf("(",Q)}return G=G.replace(/("|')(?:\\\1|.)*?\1/g,K=>K.replace(/,/g,"‌")),G.split(",").map(K=>jt(K.replace(/\u200C/g,",")))}function T(){let L=i(),G=f(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!G)return;let Q=jt(G[0]);if(!f(/^:\s*/))return s("property missing ':'");let X=f(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),K=L({type:Ye.declaration,property:Q.replace(Xl,""),value:X?jt(X[0]).replace(Xl,""):""});return f(/^[;\s]*/),K}function A(){let L=[];if(!l())return s("missing '{'");y(L);let G;for(;G=T();)G&&(L.push(G),y(L));return d()?L:s("missing '}'")}function R(){let L,G=[],Q=i();for(;L=f(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)G.push(L[1]),f(/^,\s*/);if(G.length)return Q({type:Ye.keyframe,values:G,declarations:A()||[]})}function P(){let L=i(),G=f(/^@([-\w]+)?keyframes\s*/);if(!G)return;let Q=G[1],X=f(/^([-\w]+)\s*/);if(!X)return s("@keyframes missing name");let K=X[1];if(!l())return s("@keyframes missing '{'");let ie,se=y();for(;ie=R();)se.push(ie),se=se.concat(y());return d()?L({type:Ye.keyframes,name:K,vendor:Q,keyframes:se}):s("@keyframes missing '}'")}function E(){let L=i(),G=f(/^@supports *([^{]+)/);if(!G)return;let Q=jt(G[1]);if(!l())return s("@supports missing '{'");let X=y().concat(p());return d()?L({type:Ye.supports,supports:Q,rules:X}):s("@supports missing '}'")}function _(){let L=i();if(!f(/^@host\s*/))return;if(!l())return s("@host missing '{'");let G=y().concat(p());return d()?L({type:Ye.host,rules:G}):s("@host missing '}'")}function x(){let L=i(),G=f(/^@container *([^{]+)/);if(!G)return;let Q=jt(G[1]);if(!l())return s("@container missing '{'");let X=y().concat(p());return d()?L({type:Ye.container,container:Q,rules:X}):s("@container missing '}'")}function S(){let L=i(),G=f(/^@layer *([^{;@]+)/);if(!G)return;let Q=jt(G[1]);if(!l())return f(/^[;\s]*/),L({type:Ye.layer,layer:Q});let X=y().concat(p());return d()?L({type:Ye.layer,layer:Q,rules:X}):s("@layer missing '}'")}function F(){let L=i(),G=f(/^@media *([^{]+)/);if(!G)return;let Q=jt(G[1]);if(!l())return s("@media missing '{'");let X=y().concat(p());return d()?L({type:Ye.media,media:Q,rules:X}):s("@media missing '}'")}function j(){let L=i(),G=f(/^@custom-media\s+(--\S+)\s*([^{;\s][^{;]*);/);if(G)return L({type:Ye.customMedia,name:jt(G[1]),media:jt(G[2])})}function J(){let L=i();if(!f(/^@page */))return;let G=b()||[];if(!l())return s("@page missing '{'");let Q=y(),X;for(;X=T();)Q.push(X),Q=Q.concat(y());return d()?L({type:Ye.page,selectors:G,declarations:Q}):s("@page missing '}'")}function N(){let L=i(),G=f(/^@([-\w]+)?document *([^{]+)/);if(!G)return;let Q=jt(G[1]),X=jt(G[2]);if(!l())return s("@document missing '{'");let K=y().concat(p());return d()?L({type:Ye.document,document:X,vendor:Q,rules:K}):s("@document missing '}'")}function O(){let L=i();if(!f(/^@font-face\s*/))return;if(!l())return s("@font-face missing '{'");let G=y(),Q;for(;Q=T();)G.push(Q),G=G.concat(y());return d()?L({type:Ye.fontFace,declarations:G}):s("@font-face missing '}'")}function q(){let L=i();if(!f(/^@starting-style\s*/))return;if(!l())return s("@starting-style missing '{'");let G=y().concat(p());return d()?L({type:Ye.startingStyle,rules:G}):s("@starting-style missing '}'")}let $=oe("import"),V=oe("charset"),Y=oe("namespace");function oe(L){let G=new RegExp("^@"+L+`\\s*((?::?[^;'"]|"(?:\\\\"|[^"])*?"|'(?:\\\\'|[^'])*?')+)(?:;|$)`);return function(){let Q=i(),X=f(G);if(!X)return;let K={type:L};return K[L]=X[1].trim(),Q(K)}}function ue(){if(e[0]==="@")return P()||F()||j()||E()||$()||V()||Y()||N()||J()||_()||O()||x()||q()||S()}function D(){let L=i(),G=b();return G?(y(),L({type:Ye.rule,selectors:G,declarations:A()||[]})):s("selector missing")}return ec(c())};function jt(e){return e?e.trim():""}function ec(e,t){let r=e&&typeof e.type=="string",n=r?e:t;for(let o in e){let i=e[o];Array.isArray(i)?i.forEach(a=>{ec(a,n)}):i&&typeof i=="object"&&ec(i,n)}return r&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}var Oq=Aq,Rq=Oq,Cq=Object.prototype.toString;function Pq(e){return typeof e=="function"||Cq.call(e)==="[object Function]"}function Mq(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}var Nq=Math.pow(2,53)-1;function Iq(e){var t=Mq(e);return Math.min(Math.max(t,0),Nq)}function Vt(e,t){var r=Array,n=Object(e);if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");for(var o=Iq(n.length),i=Pq(r)?Object(new r(o)):new Array(o),a=0,s;a<o;)s=n[a],i[a]=s,a+=1;return i.length=o,i}function Ei(e){"@babel/helpers - typeof";return Ei=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ei(e)}function kq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jq(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,KE(n.key),n)}}function qq(e,t,r){return t&&jq(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dq(e,t,r){return t=KE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KE(e){var t=Lq(e,"string");return Ei(t)==="symbol"?t:String(t)}function Lq(e,t){if(Ei(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ei(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Fq=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];kq(this,e),Dq(this,"items",void 0),this.items=t}return qq(e,[{key:"add",value:function(t){return this.has(t)===!1&&this.items.push(t),this}},{key:"clear",value:function(){this.items=[]}},{key:"delete",value:function(t){var r=this.items.length;return this.items=this.items.filter(function(n){return n!==t}),r!==this.items.length}},{key:"forEach",value:function(t){var r=this;this.items.forEach(function(n){t(n,n,r)})}},{key:"has",value:function(t){return this.items.indexOf(t)!==-1}},{key:"size",get:function(){return this.items.length}}]),e})(),$q=typeof Set>"u"?Set:Fq;function ft(e){var t;return(t=e.localName)!==null&&t!==void 0?t:e.tagName.toLowerCase()}var Bq={article:"article",aside:"complementary",button:"button",datalist:"listbox",dd:"definition",details:"group",dialog:"dialog",dt:"term",fieldset:"group",figure:"figure",form:"form",footer:"contentinfo",h1:"heading",h2:"heading",h3:"heading",h4:"heading",h5:"heading",h6:"heading",header:"banner",hr:"separator",html:"document",legend:"legend",li:"listitem",math:"math",main:"main",menu:"list",nav:"navigation",ol:"list",optgroup:"group",option:"option",output:"status",progress:"progressbar",section:"region",summary:"button",table:"table",tbody:"rowgroup",textarea:"textbox",tfoot:"rowgroup",td:"cell",th:"columnheader",thead:"rowgroup",tr:"row",ul:"list"},Uq={caption:new Set(["aria-label","aria-labelledby"]),code:new Set(["aria-label","aria-labelledby"]),deletion:new Set(["aria-label","aria-labelledby"]),emphasis:new Set(["aria-label","aria-labelledby"]),generic:new Set(["aria-label","aria-labelledby","aria-roledescription"]),insertion:new Set(["aria-label","aria-labelledby"]),none:new Set(["aria-label","aria-labelledby"]),paragraph:new Set(["aria-label","aria-labelledby"]),presentation:new Set(["aria-label","aria-labelledby"]),strong:new Set(["aria-label","aria-labelledby"]),subscript:new Set(["aria-label","aria-labelledby"]),superscript:new Set(["aria-label","aria-labelledby"])};function Hq(e,t){return["aria-atomic","aria-busy","aria-controls","aria-current","aria-description","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"].some(function(r){var n;return e.hasAttribute(r)&&!((n=Uq[t])!==null&&n!==void 0&&n.has(r))})}function YE(e,t){return Hq(e,t)}function Jq(e){var t=zq(e);if(t===null||tc.indexOf(t)!==-1){var r=Vq(e);if(tc.indexOf(t||"")===-1||YE(e,r||""))return r}return t}function Vq(e){var t=Bq[ft(e)];if(t!==void 0)return t;switch(ft(e)){case"a":case"area":case"link":if(e.hasAttribute("href"))return"link";break;case"img":return e.getAttribute("alt")===""&&!YE(e,"img")?"presentation":"img";case"input":{var r=e,n=r.type;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 e.hasAttribute("list")?"combobox":"textbox";case"search":return e.hasAttribute("list")?"combobox":"searchbox";case"number":return"spinbutton";default:return null}}case"select":return e.hasAttribute("multiple")||e.size>1?"listbox":"combobox"}return null}function zq(e){var t=e.getAttribute("role");if(t!==null){var r=t.trim().split(" ")[0];if(r.length>0)return r}return null}var tc=["presentation","none"];function $e(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}function XE(e){return $e(e)&&ft(e)==="caption"}function Ia(e){return $e(e)&&ft(e)==="input"}function Gq(e){return $e(e)&&ft(e)==="optgroup"}function Wq(e){return $e(e)&&ft(e)==="select"}function Kq(e){return $e(e)&&ft(e)==="table"}function Yq(e){return $e(e)&&ft(e)==="textarea"}function Xq(e){var t=e.ownerDocument===null?e:e.ownerDocument,r=t.defaultView;if(r===null)throw new TypeError("no window available");return r}function Qq(e){return $e(e)&&ft(e)==="fieldset"}function Zq(e){return $e(e)&&ft(e)==="legend"}function eD(e){return $e(e)&&ft(e)==="slot"}function tD(e){return $e(e)&&e.ownerSVGElement!==void 0}function rD(e){return $e(e)&&ft(e)==="svg"}function nD(e){return tD(e)&&ft(e)==="title"}function is(e,t){if($e(e)&&e.hasAttribute(t)){var r=e.getAttribute(t).split(" "),n=e.getRootNode?e.getRootNode():e.ownerDocument;return r.map(function(o){return n.getElementById(o)}).filter(function(o){return o!==null})}return[]}function br(e,t){return $e(e)?t.indexOf(Jq(e))!==-1:!1}function oD(e){return e.trim().replace(/\s\s+/g," ")}function iD(e,t){if(!$e(e))return!1;if(e.hasAttribute("hidden")||e.getAttribute("aria-hidden")==="true")return!0;var r=t(e);return r.getPropertyValue("display")==="none"||r.getPropertyValue("visibility")==="hidden"}function aD(e){return br(e,["button","combobox","listbox","textbox"])||QE(e,"range")}function QE(e,t){if(!$e(e))return!1;switch(t){case"range":return br(e,["meter","progressbar","scrollbar","slider","spinbutton"]);default:throw new TypeError("No knowledge about abstract role '".concat(t,"'. This is likely a bug :("))}}function Bm(e,t){var r=Vt(e.querySelectorAll(t));return is(e,"aria-owns").forEach(function(n){r.push.apply(r,Vt(n.querySelectorAll(t)))}),r}function sD(e){return Wq(e)?e.selectedOptions||Bm(e,"[selected]"):Bm(e,'[aria-selected="true"]')}function lD(e){return br(e,tc)}function uD(e){return XE(e)}function cD(e){return br(e,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}function dD(e){return!1}function pD(e){return Ia(e)||Yq(e)?e.value:e.textContent||""}function Um(e){var t=e.getPropertyValue("content");return/^["'].*["']$/.test(t)?t.slice(1,-1):""}function ZE(e){var t=ft(e);return t==="button"||t==="input"&&e.getAttribute("type")!=="hidden"||t==="meter"||t==="output"||t==="progress"||t==="select"||t==="textarea"}function ew(e){if(ZE(e))return e;var t=null;return e.childNodes.forEach(function(r){if(t===null&&$e(r)){var n=ew(r);n!==null&&(t=n)}}),t}function fD(e){if(e.control!==void 0)return e.control;var t=e.getAttribute("for");return t!==null?e.ownerDocument.getElementById(t):ew(e)}function mD(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return Vt(t);if(!ZE(e))return null;var r=e.ownerDocument;return Vt(r.querySelectorAll("label")).filter(function(n){return fD(n)===e})}function hD(e){var t=e.assignedNodes();return t.length===0?Vt(e.childNodes):t}function tw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new $q,n=Xq(e),o=t.compute,i=o===void 0?"name":o,a=t.computedStyleSupportsPseudoElements,s=a===void 0?t.getComputedStyle!==void 0:a,c=t.getComputedStyle,l=c===void 0?n.getComputedStyle.bind(n):c,d=t.hidden,p=d===void 0?!1:d;function f(b,T){var A="";if($e(b)&&s){var R=l(b,"::before"),P=Um(R);A="".concat(P," ").concat(A)}var E=eD(b)?hD(b):Vt(b.childNodes).concat(is(b,"aria-owns"));if(E.forEach(function(S){var F=v(S,{isEmbeddedInLabel:T.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),j=$e(S)?l(S).getPropertyValue("display"):"inline",J=j!=="inline"?" ":"";A+="".concat(J).concat(F).concat(J)}),$e(b)&&s){var _=l(b,"::after"),x=Um(_);A="".concat(A," ").concat(x)}return A.trim()}function m(b,T){var A=b.getAttributeNode(T);return A!==null&&!r.has(A)&&A.value.trim()!==""?(r.add(A),A.value):null}function y(b){return $e(b)?m(b,"title"):null}function g(b){if(!$e(b))return null;if(Qq(b)){r.add(b);for(var T=Vt(b.childNodes),A=0;A<T.length;A+=1){var R=T[A];if(Zq(R))return v(R,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(Kq(b)){r.add(b);for(var P=Vt(b.childNodes),E=0;E<P.length;E+=1){var _=P[E];if(XE(_))return v(_,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(rD(b)){r.add(b);for(var x=Vt(b.childNodes),S=0;S<x.length;S+=1){var F=x[S];if(nD(F))return F.textContent}return null}else if(ft(b)==="img"||ft(b)==="area"){var j=m(b,"alt");if(j!==null)return j}else if(Gq(b)){var J=m(b,"label");if(J!==null)return J}if(Ia(b)&&(b.type==="button"||b.type==="submit"||b.type==="reset")){var N=m(b,"value");if(N!==null)return N;if(b.type==="submit")return"Submit";if(b.type==="reset")return"Reset"}var O=mD(b);if(O!==null&&O.length!==0)return r.add(b),Vt(O).map(function(Y){return v(Y,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(Y){return Y.length>0}).join(" ");if(Ia(b)&&b.type==="image"){var q=m(b,"alt");if(q!==null)return q;var $=m(b,"title");return $!==null?$:"Submit Query"}if(br(b,["button"])){var V=f(b,{isEmbeddedInLabel:!1});if(V!=="")return V}return null}function v(b,T){if(r.has(b))return"";if(!p&&iD(b,l)&&!T.isReferenced)return r.add(b),"";var A=$e(b)?b.getAttributeNode("aria-labelledby"):null,R=A!==null&&!r.has(A)?is(b,"aria-labelledby"):[];if(i==="name"&&!T.isReferenced&&R.length>0)return r.add(A),R.map(function(j){return v(j,{isEmbeddedInLabel:T.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var P=T.recursion&&aD(b)&&i==="name";if(!P){var E=($e(b)&&b.getAttribute("aria-label")||"").trim();if(E!==""&&i==="name")return r.add(b),E;if(!lD(b)){var _=g(b);if(_!==null)return r.add(b),_}}if(br(b,["menu"]))return r.add(b),"";if(P||T.isEmbeddedInLabel||T.isReferenced){if(br(b,["combobox","listbox"])){r.add(b);var x=sD(b);return x.length===0?Ia(b)?b.value:"":Vt(x).map(function(j){return v(j,{isEmbeddedInLabel:T.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(QE(b,"range"))return r.add(b),b.hasAttribute("aria-valuetext")?b.getAttribute("aria-valuetext"):b.hasAttribute("aria-valuenow")?b.getAttribute("aria-valuenow"):b.getAttribute("value")||"";if(br(b,["textbox"]))return r.add(b),pD(b)}if(cD(b)||$e(b)&&T.isReferenced||uD(b)||dD()){var S=f(b,{isEmbeddedInLabel:T.isEmbeddedInLabel});if(S!=="")return r.add(b),S}if(b.nodeType===b.TEXT_NODE)return r.add(b),b.textContent||"";if(T.recursion)return r.add(b),f(b,{isEmbeddedInLabel:T.isEmbeddedInLabel});var F=y(b);return F!==null?(r.add(b),F):(r.add(b),"")}return oD(v(e,{isEmbeddedInLabel:!1,isReferenced:i==="description",recursion:!1}))}function wi(e){"@babel/helpers - typeof";return wi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wi(e)}function Hm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Jm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hm(Object(r),!0).forEach(function(n){yD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yD(e,t,r){return t=gD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gD(e){var t=bD(e,"string");return wi(t)==="symbol"?t:String(t)}function bD(e,t){if(wi(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wi(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=is(e,"aria-describedby").map(function(i){return tw(i,Jm(Jm({},t),{},{compute:"description"}))}).join(" ");if(r===""){var n=e.getAttribute("aria-description");r=n===null?"":n}if(r===""){var o=e.getAttribute("title");r=o===null?"":o}return r}function ED(e){return br(e,["caption","code","deletion","emphasis","generic","insertion","none","paragraph","presentation","strong","subscript","superscript"])}function wD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ED(e)?"":tw(e,t)}var Sp=We(ed(),1),_D=We(hg(),1),Ap=We(Ag(),1),TD=We(Og(),1),rw=class extends Error{constructor(e,t,r,n){super(),Error.captureStackTrace&&Error.captureStackTrace(this,r);let o="";try{o=n.utils.printWithType("Received",t,n.utils.printReceived)}catch{}this.message=[n.utils.matcherHint(`${n.isNot?".not":""}.${r.name}`,"received",""),"",`${n.utils.RECEIVED_COLOR("received")} value must ${e}.`,o].join(`
215
- `)}},Vm=class extends rw{constructor(...e){super("be an HTMLElement or an SVGElement",...e)}},zm=class extends rw{constructor(...e){super("be a Node",...e)}};function nw(e,t,...r){if(!e||!e.ownerDocument||!e.ownerDocument.defaultView)throw new t(e,...r)}function xD(e,...t){nw(e,zm,...t);let r=e.ownerDocument.defaultView;if(!(e instanceof r.Node))throw new zm(e,...t)}function ke(e,...t){nw(e,Vm,...t);let r=e.ownerDocument.defaultView;if(!(e instanceof r.HTMLElement)&&!(e instanceof r.SVGElement))throw new Vm(e,...t)}var SD=class extends Error{constructor(e,t,r){super(),Error.captureStackTrace&&Error.captureStackTrace(this,t),this.message=[e.message,"",r.utils.RECEIVED_COLOR("Failing css:"),r.utils.RECEIVED_COLOR(`${e.css}`)].join(`
216
- `)}};function AD(e,...t){let r=Rq(`selector { ${e} }`,{silent:!0}).stylesheet;if(r.parsingErrors&&r.parsingErrors.length>0){let{reason:n,line:o}=r.parsingErrors[0];throw new SD({css:e,message:`Syntax error parsing expected css: ${n} on line: ${o}`},...t)}return r.rules[0].declarations.filter(n=>n.type==="declaration").reduce((n,{property:o,value:i})=>Object.assign(n,{[o]:i}),{})}function Gm(e,t){return typeof t=="string"?t:e.utils.stringify(t)}function lt(e,t,r,n,o,i){return[`${t}
217
- `,`${r}:
218
- ${e.utils.EXPECTED_COLOR((0,$m.default)(Gm(e,n),2))}`,`${o}:
219
- ${e.utils.RECEIVED_COLOR((0,$m.default)(Gm(e,i),2))}`].join(`
220
- `)}function OD(e,t){return t instanceof RegExp?t.test(e):e.includes(String(t))}function tl(e,t){console.warn(`Warning: ${e} has been deprecated and will be removed in future updates.`,t)}function rl(e){return e.replace(/\s+/g," ").trim()}function Vr(e){return e.tagName&&e.tagName.toLowerCase()}function RD({multiple:e,options:t}){let r=[...t].filter(n=>n.selected);if(e)return[...r].map(n=>n.value);if(r.length!==0)return r[0].value}function CD(e){switch(e.type){case"number":return e.value===""?null:Number(e.value);case"checkbox":return e.checked;default:return e.value}}var PD=["meter","progressbar","slider","spinbutton"];function MD(e){if(PD.includes(e.getAttribute("role")))return Number(e.getAttribute("aria-valuenow"))}function ow(e){if(e)switch(e.tagName.toLowerCase()){case"input":return CD(e);case"select":return RD(e);default:return e.value??MD(e)}}function ND(e,{wordConnector:t=", ",lastWordConnector:r=" and "}={}){return[e.slice(0,-1).join(t),e[e.length-1]].join(e.length>1?r:"")}function Op(e,t){if(Array.isArray(e)&&Array.isArray(t))return[...new Set(e)].every(r=>new Set(t).has(r))}function rc(e,t){return tl("toBeInTheDOM","Please use toBeInTheDocument for searching the entire document and toContainElement for searching a specific container."),e&&ke(e,rc,this),t&&ke(t,rc,this),{pass:t?t.contains(e):!!e,message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeInTheDOM`,"element",""),"","Received:",` ${this.utils.printReceived(e&&e.cloneNode(!1))}`].join(`
221
- `)}}function iw(e){(e!==null||!this.isNot)&&ke(e,iw,this);let t=e===null?!1:e.ownerDocument===e.getRootNode({composed:!0}),r=()=>`expected document not to contain element, found ${this.utils.stringify(e.cloneNode(!0))} instead`,n=()=>"element could not be found in the document";return{pass:t,message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeInTheDocument`,"element",""),"",this.utils.RECEIVED_COLOR(this.isNot?r():n())].join(`
222
- `)}}function aw(e){return tl("toBeEmpty","Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM."),ke(e,aw,this),{pass:e.innerHTML==="",message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEmpty`,"element",""),"","Received:",` ${this.utils.printReceived(e.innerHTML)}`].join(`
223
- `)}}function sw(e){return ke(e,sw,this),{pass:ID(e),message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEmptyDOMElement`,"element",""),"","Received:",` ${this.utils.printReceived(e.innerHTML)}`].join(`
224
- `)}}function ID(e){return[...e.childNodes].filter(t=>t.nodeType!==8).length===0}function nc(e,t){return ke(e,nc,this),t!==null&&ke(t,nc,this),{pass:e.contains(t),message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toContainElement`,"element","element"),"",this.utils.RECEIVED_COLOR(`${this.utils.stringify(e.cloneNode(!1))} ${this.isNot?"contains:":"does not contain:"} ${this.utils.stringify(t&&t.cloneNode(!1))}
225
- `)].join(`
226
- `)}}function kD(e,t){let r=e.ownerDocument.createElement("div");return r.innerHTML=t,r.innerHTML}function lw(e,t){if(ke(e,lw,this),typeof t!="string")throw new Error(`.toContainHTML() expects a string value, got ${t}`);return{pass:e.outerHTML.includes(kD(e,t)),message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toContainHTML`,"element",""),"Expected:",` ${this.utils.EXPECTED_COLOR(t)}`,"Received:",` ${this.utils.printReceived(e.cloneNode(!0))}`].join(`
227
- `)}}function uw(e,t,r={normalizeWhitespace:!0}){xD(e,uw,this);let n=r.normalizeWhitespace?rl(e.textContent):e.textContent.replace(/\u00a0/g," "),o=n!==""&&t==="";return{pass:!o&&OD(n,t),message:()=>{let i=this.isNot?"not to":"to";return lt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveTextContent`,"element",""),o?"Checking with empty string will always match, use .toBeEmptyDOMElement() instead":`Expected element ${i} have text content`,t,"Received",n)}}}function oc(e,t){ke(e,oc,this);let r=vD(e),n=arguments.length===1,o=!1;return n?o=r!=="":o=t instanceof RegExp?t.test(r):this.equals(r,t),{pass:o,message:()=>{let i=this.isNot?"not to":"to";return lt(this,this.utils.matcherHint(`${this.isNot?".not":""}.${oc.name}`,"element",""),`Expected element ${i} have accessible description`,t,"Received",r)}}}var Vo="aria-invalid",jD=["false"];function cw(e,t){ke(e,cw,this);let r=this.isNot?"not to":"to",n=this.isNot?".not.toHaveAccessibleErrorMessage":".toHaveAccessibleErrorMessage",o=e.getAttribute("aria-errormessage");if(o&&/\s+/.test(o))return{pass:!1,message:()=>lt(this,this.utils.matcherHint(n,"element"),"Expected element's `aria-errormessage` attribute to be empty or a single, valid ID","","Received",`aria-errormessage="${o}"`)};let i=e.getAttribute(Vo);if(!e.hasAttribute(Vo)||jD.includes(i))return{pass:!1,message:()=>lt(this,this.utils.matcherHint(n,"element"),"Expected element to be marked as invalid with attribute",`${Vo}="${String(!0)}"`,"Received",e.hasAttribute("aria-invalid")?`${Vo}="${e.getAttribute(Vo)}`:null)};let a=rl(e.ownerDocument.getElementById(o)?.textContent??"");return{pass:t===void 0?!!a:t instanceof RegExp?t.test(a):this.equals(a,t),message:()=>lt(this,this.utils.matcherHint(n,"element"),`Expected element ${r} have accessible error message`,t??"","Received",a)}}var qD=FD(Sp.elementRoles);function ic(e,t){ke(e,ic,this);let r=DD(e);return{pass:r.some(n=>n===t),message:()=>{let n=this.isNot?"not to":"to";return lt(this,this.utils.matcherHint(`${this.isNot?".not":""}.${ic.name}`,"element",""),`Expected element ${n} have role`,t,"Received",r.join(", "))}}}function DD(e){return e.hasAttribute("role")?e.getAttribute("role").split(" ").filter(Boolean):LD(e)}function LD(e){for(let{match:t,roles:r}of qD)if(t(e))return[...r];return[]}function FD(e){function t({name:a,attributes:s}){return`${a}${s.map(({name:c,value:l,constraints:d=[]})=>d.indexOf("undefined")!==-1?`:not([${c}])`:l?`[${c}="${l}"]`:`[${c}]`).join("")}`}function r({attributes:a=[]}){return a.length}function n({specificity:a},{specificity:s}){return s-a}function o(a){let{attributes:s=[]}=a,c=s.findIndex(d=>d.value&&d.name==="type"&&d.value==="text");c>=0&&(s=[...s.slice(0,c),...s.slice(c+1)]);let l=t({...a,attributes:s});return d=>c>=0&&d.type!=="text"?!1:d.matches(l)}let i=[];for(let[a,s]of e.entries())i=[...i,{match:o(a),roles:Array.from(s),specificity:r(a)}];return i.sort(n)}function ac(e,t){ke(e,ac,this);let r=wD(e),n=arguments.length===1,o=!1;return n?o=r!=="":o=t instanceof RegExp?t.test(r):this.equals(r,t),{pass:o,message:()=>{let i=this.isNot?"not to":"to";return lt(this,this.utils.matcherHint(`${this.isNot?".not":""}.${ac.name}`,"element",""),`Expected element ${i} have accessible name`,t,"Received",r)}}}function Wm(e,t,r){return r===void 0?t:`${t}=${e(r)}`}function $D(e,t,r){return r===void 0?`element.hasAttribute(${e(t)})`:`element.getAttribute(${e(t)}) === ${e(r)}`}function dw(e,t,r){ke(e,dw,this);let n=r!==void 0,o=e.hasAttribute(t),i=e.getAttribute(t);return{pass:n?o&&this.equals(i,r):o,message:()=>{let a=this.isNot?"not to":"to",s=o?Wm(this.utils.stringify,t,i):null,c=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveAttribute`,"element",this.utils.printExpected(t),{secondArgument:n?this.utils.printExpected(r):void 0,comment:$D(this.utils.stringify,t,r)});return lt(this,c,`Expected the element ${a} have attribute`,Wm(this.utils.stringify,t,r),"Received",s)}}}function BD(e){let t=e.pop(),r,n;return typeof t=="object"&&!(t instanceof RegExp)?(r=e,n=t):(r=e.concat(t),n={exact:!1}),{expectedClassNames:r,options:n}}function Km(e){return e?e.split(/\s+/).filter(t=>t.length>0):[]}function Ym(e,t){return e.every(r=>typeof r=="string"?t.includes(r):t.some(n=>r.test(n)))}function pw(e,...t){ke(e,pw,this);let{expectedClassNames:r,options:n}=BD(t),o=Km(e.getAttribute("class")),i=r.reduce((s,c)=>s.concat(typeof c=="string"||!c?Km(c):c),[]),a=i.some(s=>s instanceof RegExp);if(n.exact&&a)throw new Error("Exact option does not support RegExp expected class names");return n.exact?{pass:Ym(i,o)&&i.length===o.length,message:()=>{let s=this.isNot?"not to":"to";return lt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveClass`,"element",this.utils.printExpected(i.join(" "))),`Expected the element ${s} have EXACTLY defined classes`,i.join(" "),"Received",o.join(" "))}}:i.length>0?{pass:Ym(i,o),message:()=>{let s=this.isNot?"not to":"to";return lt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveClass`,"element",this.utils.printExpected(i.join(" "))),`Expected the element ${s} have class`,i.join(" "),"Received",o.join(" "))}}:{pass:this.isNot?o.length>0:!1,message:()=>this.isNot?lt(this,this.utils.matcherHint(".not.toHaveClass","element",""),"Expected the element to have classes","(none)","Received",o.join(" ")):[this.utils.matcherHint(".toHaveClass","element"),"At least one expected class must be provided."].join(`
228
- `)}}function UD(e,t){let r={},n=e.createElement("div");return Object.keys(t).forEach(o=>{n.style[o]=t[o],r[o]=n.style[o]}),r}function HD(e,t){return!!Object.keys(e).length&&Object.entries(e).every(([r,n])=>{let o=r.startsWith("--"),i=[r];return o||i.push(r.toLowerCase()),i.some(a=>t[a]===n||t.getPropertyValue(a)===n)})}function Xm(e){return Object.keys(e).sort().map(t=>`${t}: ${e[t]};`).join(`
229
- `)}function JD(e,t,r){let n=Array.from(r).filter(o=>t[o]!==void 0).reduce((o,i)=>Object.assign(o,{[i]:r.getPropertyValue(i)}),{});return e(Xm(t),Xm(n)).replace(`${_D.default.red("+ Received")}
230
- `,"")}function sc(e,t){ke(e,sc,this);let r=typeof t=="object"?t:AD(t,sc,this),{getComputedStyle:n}=e.ownerDocument.defaultView,o=UD(e.ownerDocument,r),i=n(e);return{pass:HD(o,i),message:()=>{let a=`${this.isNot?".not":""}.toHaveStyle`;return[this.utils.matcherHint(a,"element",""),JD(this.utils.diff,o,i)].join(`
231
-
232
- `)}}}function fw(e){return ke(e,fw,this),{pass:e.ownerDocument.activeElement===e,message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toHaveFocus`,"element",""),"",...this.isNot?["Received element is focused:",` ${this.utils.printReceived(e)}`]:["Expected element with focus:",` ${this.utils.printExpected(e)}`,"Received element with focus:",` ${this.utils.printReceived(e.ownerDocument.activeElement)}`]].join(`
233
- `)}}function VD(e){let t=[...new Set(e.map(r=>r.type))];if(t.length!==1)throw new Error("Multiple form elements with the same name must be of the same type");switch(t[0]){case"radio":{let r=e.find(n=>n.checked);return r?r.value:void 0}case"checkbox":return e.filter(r=>r.checked).map(r=>r.value);default:return e.map(r=>r.value)}}function zD(e,t){let r=[...e.querySelectorAll(`[name="${(0,TD.default)(t)}"]`)];if(r.length!==0)switch(r.length){case 1:return ow(r[0]);default:return VD(r)}}function GD(e){return/\[\]$/.test(e)?e.slice(0,-2):e}function WD(e){return Array.from(e.elements).map(t=>t.name).reduce((t,r)=>({...t,[GD(r)]:zD(e,r)}),{})}function mw(e,t){if(ke(e,mw,this),!e.elements)throw new Error("toHaveFormValues must be called on a form or a fieldset");let r=WD(e);return{pass:Object.entries(t).every(([n,o])=>(0,Ap.default)(r[n],o,Op)),message:()=>{let n=this.isNot?"not to":"to",o=`${this.isNot?".not":""}.toHaveFormValues`,i=Object.keys(r).filter(a=>t.hasOwnProperty(a)).reduce((a,s)=>({...a,[s]:r[s]}),{});return[this.utils.matcherHint(o,"element",""),`Expected the element ${n} have form values`,this.utils.diff(t,i)].join(`
234
-
235
- `)}}}function KD(e){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:r,visibility:n,opacity:o}=t(e);return r!=="none"&&n!=="hidden"&&n!=="collapse"&&o!=="0"&&o!==0}function YD(e,t){let r;return t?r=e.nodeName==="DETAILS"&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0:r=e.nodeName==="DETAILS"?e.hasAttribute("open"):!0,!e.hasAttribute("hidden")&&r}function hw(e,t){return KD(e)&&YD(e,t)&&(!e.parentElement||hw(e.parentElement,e))}function yw(e){ke(e,yw,this);let t=e.ownerDocument===e.getRootNode({composed:!0}),r=t&&hw(e);return{pass:r,message:()=>{let n=r?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeVisible`,"element",""),"",`Received element ${n} visible${t?"":" (element is not in the document)"}:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
236
- `)}}}var XD=["fieldset","input","select","optgroup","option","button","textarea"];function QD(e,t){return Vr(e)==="legend"&&Vr(t)==="fieldset"&&e.isSameNode(Array.from(t.children).find(r=>Vr(r)==="legend"))}function ZD(e,t){return bw(t)&&!QD(e,t)}function eL(e){return e.includes("-")}function gw(e){let t=Vr(e);return XD.includes(t)||eL(t)}function bw(e){return gw(e)&&e.hasAttribute("disabled")}function vw(e){let t=e.parentElement;return!!t&&(ZD(e,t)||vw(t))}function Ew(e){return gw(e)&&(bw(e)||vw(e))}function ww(e){ke(e,ww,this);let t=Ew(e);return{pass:t,message:()=>{let r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeDisabled`,"element",""),"",`Received element ${r} disabled:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
237
- `)}}}function _w(e){ke(e,_w,this);let t=!Ew(e);return{pass:t,message:()=>{let r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEnabled`,"element",""),"",`Received element ${r} enabled:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
238
- `)}}}var tL=["select","textarea"],rL=["input","select","textarea"],nL=["color","hidden","range","submit","image","reset"],oL=["checkbox","combobox","gridcell","listbox","radiogroup","spinbutton","textbox","tree"];function iL(e){return tL.includes(Vr(e))&&e.hasAttribute("required")}function aL(e){return Vr(e)==="input"&&e.hasAttribute("required")&&(e.hasAttribute("type")&&!nL.includes(e.getAttribute("type"))||!e.hasAttribute("type"))}function sL(e){return e.hasAttribute("aria-required")&&e.getAttribute("aria-required")==="true"&&(rL.includes(Vr(e))||e.hasAttribute("role")&&oL.includes(e.getAttribute("role")))}function Tw(e){ke(e,Tw,this);let t=iL(e)||aL(e)||sL(e);return{pass:t,message:()=>{let r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeRequired`,"element",""),"",`Received element ${r} required:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
239
- `)}}}var lL=["form","input","select","textarea"];function uL(e){return e.hasAttribute("aria-invalid")&&e.getAttribute("aria-invalid")!=="false"}function cL(e){return lL.includes(Vr(e))}function xw(e){let t=uL(e);return cL(e)?t||!e.checkValidity():t}function Sw(e){ke(e,Sw,this);let t=xw(e);return{pass:t,message:()=>{let r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeInvalid`,"element",""),"",`Received element ${r} currently invalid:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
240
- `)}}}function Aw(e){ke(e,Aw,this);let t=!xw(e);return{pass:t,message:()=>{let r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeValid`,"element",""),"",`Received element ${r} currently valid:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
241
- `)}}}function Ow(e,t){if(ke(e,Ow,this),e.tagName.toLowerCase()==="input"&&["checkbox","radio"].includes(e.type))throw new Error("input with type=checkbox or type=radio cannot be used with .toHaveValue(). Use .toBeChecked() for type=checkbox or .toHaveFormValues() instead");let r=ow(e),n=t!==void 0,o=t,i=r;return t==r&&t!==r&&(o=`${t} (${typeof t})`,i=`${r} (${typeof r})`),{pass:n?(0,Ap.default)(r,t,Op):!!r,message:()=>{let a=this.isNot?"not to":"to",s=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveValue`,"element",t);return lt(this,s,`Expected the element ${a} have value`,n?o:"(any)","Received",i)}}}function Rw(e,t){ke(e,Rw,this);let r=e.tagName.toLowerCase();if(!["select","input","textarea"].includes(r))throw new Error(".toHaveDisplayValue() currently supports only input, textarea or select elements, try with another matcher instead.");if(r==="input"&&["radio","checkbox"].includes(e.type))throw new Error(`.toHaveDisplayValue() currently does not support input[type="${e.type}"], try with another matcher instead.`);let n=dL(r,e),o=pL(t),i=o.filter(c=>n.some(l=>c instanceof RegExp?c.test(l):this.equals(l,String(c)))).length,a=i===n.length,s=i===o.length;return{pass:a&&s,message:()=>lt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveDisplayValue`,"element",""),`Expected element ${this.isNot?"not ":""}to have display value`,t,"Received",n)}}function dL(e,t){return e==="select"?Array.from(t).filter(r=>r.selected).map(r=>r.textContent):[t.value]}function pL(e){return e instanceof Array?e:[e]}function Cw(e){ke(e,Cw,this);let t=()=>e.tagName.toLowerCase()==="input"&&["checkbox","radio"].includes(e.type),r=()=>Pw(e.getAttribute("role"))&&["true","false"].includes(e.getAttribute("aria-checked"));if(!t()&&!r())return{pass:!1,message:()=>`only inputs with type="checkbox" or type="radio" or elements with ${fL()} and a valid aria-checked attribute can be used with .toBeChecked(). Use .toHaveValue() instead`};let n=()=>t()?e.checked:e.getAttribute("aria-checked")==="true";return{pass:n(),message:()=>{let o=n()?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeChecked`,"element",""),"",`Received element ${o} checked:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
242
- `)}}}function fL(){return ND(mL().map(e=>`role="${e}"`),{lastWordConnector:" or "})}function mL(){return Sp.roles.keys().filter(Pw)}function Pw(e){return Sp.roles.get(e)?.props["aria-checked"]!==void 0}function Mw(e){ke(e,Mw,this);let t=()=>e.tagName.toLowerCase()==="input"&&e.type==="checkbox",r=()=>e.getAttribute("role")==="checkbox";if(!t()&&!r())return{pass:!1,message:()=>'only inputs with type="checkbox" or elements with role="checkbox" and a valid aria-checked attribute can be used with .toBePartiallyChecked(). Use .toHaveValue() instead'};let n=()=>{let o=e.getAttribute("aria-checked")==="mixed";return t()&&e.indeterminate||o};return{pass:n(),message:()=>{let o=n()?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBePartiallyChecked`,"element",""),"",`Received element ${o} partially checked:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
243
- `)}}}function Nw(e,t){tl("toHaveDescription","Please use toHaveAccessibleDescription."),ke(e,Nw,this);let r=t!==void 0,n=(e.getAttribute("aria-describedby")||"").split(/\s+/).filter(Boolean),o="";if(n.length>0){let i=e.ownerDocument,a=n.map(s=>i.getElementById(s)).filter(Boolean);o=rl(a.map(s=>s.textContent).join(" "))}return{pass:r?t instanceof RegExp?t.test(o):this.equals(o,t):!!o,message:()=>{let i=this.isNot?"not to":"to";return lt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveDescription`,"element",""),`Expected the element ${i} have description`,this.utils.printExpected(t),"Received",this.utils.printReceived(o))}}}function Iw(e,t){if(tl("toHaveErrorMessage","Please use toHaveAccessibleErrorMessage."),ke(e,Iw,this),!e.hasAttribute("aria-invalid")||e.getAttribute("aria-invalid")==="false"){let i=this.isNot?".not":"";return{pass:!1,message:()=>lt(this,this.utils.matcherHint(`${i}.toHaveErrorMessage`,"element",""),"Expected the element to have invalid state indicated by",'aria-invalid="true"',"Received",e.hasAttribute("aria-invalid")?`aria-invalid="${e.getAttribute("aria-invalid")}"`:this.utils.printReceived(""))}}let r=t!==void 0,n=(e.getAttribute("aria-errormessage")||"").split(/\s+/).filter(Boolean),o="";if(n.length>0){let i=e.ownerDocument,a=n.map(s=>i.getElementById(s)).filter(Boolean);o=rl(a.map(s=>s.textContent).join(" "))}return{pass:r?t instanceof RegExp?t.test(o):this.equals(o,t):!!o,message:()=>{let i=this.isNot?"not to":"to";return lt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveErrorMessage`,"element",""),`Expected the element ${i} have error message`,this.utils.printExpected(t),"Received",this.utils.printReceived(o))}}}function hL(e){let t=e.ownerDocument.getSelection();if(["input","textarea"].includes(e.tagName.toLowerCase()))return["radio","checkbox"].includes(e.type)?"":e.value.toString().substring(e.selectionStart,e.selectionEnd);if(t.anchorNode===null||t.focusNode===null)return"";let r=t.getRangeAt(0),n=e.ownerDocument.createRange();if(t.containsNode(e,!1))n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n);else if(!(e.contains(t.anchorNode)&&e.contains(t.focusNode))){let i=e===r.startContainer||e.contains(r.startContainer),a=e===r.endContainer||e.contains(r.endContainer);t.removeAllRanges(),(i||a)&&(n.selectNodeContents(e),i&&n.setStart(r.startContainer,r.startOffset),a&&n.setEnd(r.endContainer,r.endOffset),t.addRange(n))}let o=t.toString();return t.removeAllRanges(),t.addRange(r),o}function kw(e,t){ke(e,kw,this);let r=t!==void 0;if(r&&typeof t!="string")throw new Error("expected selection must be a string or undefined");let n=hL(e);return{pass:r?(0,Ap.default)(n,t,Op):!!n,message:()=>{let o=this.isNot?"not to":"to",i=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveSelection`,"element",t);return lt(this,i,`Expected the element ${o} have selection`,r?t:"(any)","Received",n)}}}We(fg(),1);We(ed(),1);We(hg(),1);We(Ag(),1);We(Og(),1);var Ql,Qm;function yL(){if(Qm)return Ql;Qm=1;var e,t,r,n,o,i,a,s,c,l,d,p,f,m,y,g,v,b,T;return f=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,p=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,e=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,y=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,d=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,g=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,T=/[\t\v\f\ufeff\p{Zs}]+/yu,s=/\r?\n|[\r\u2028\u2029]/y,c=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,m=/\/\/.*/y,r=/[<>.:={}]|\/(?![\/*])/y,t=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,n=/(['"])(?:(?!\1)[^])*(\1)?/y,o=/[^<>{}]+/y,b=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,v=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,i=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,a=/^(?:return|throw|yield)$/,l=RegExp(s.source),Ql=function*(A,{jsx:R=!1}={}){var P,E,_,x,S,F,j,J,N,O,q,$,V,Y;for({length:F}=A,x=0,S="",Y=[{tag:"JS"}],P=[],q=0,$=!1;x<F;){switch(J=Y[Y.length-1],J.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(A[x]==="/"&&(b.test(S)||i.test(S))&&(f.lastIndex=x,j=f.exec(A))){x=f.lastIndex,S=j[0],$=!0,yield{type:"RegularExpressionLiteral",value:j[0],closed:j[1]!==void 0&&j[1]!=="\\"};continue}if(p.lastIndex=x,j=p.exec(A)){switch(V=j[0],N=p.lastIndex,O=V,V){case"(":S==="?NonExpressionParenKeyword"&&Y.push({tag:"JSNonExpressionParen",nesting:q}),q++,$=!1;break;case")":q--,$=!0,J.tag==="JSNonExpressionParen"&&q===J.nesting&&(Y.pop(),O="?NonExpressionParenEnd",$=!1);break;case"{":p.lastIndex=0,_=!v.test(S)&&(b.test(S)||i.test(S)),P.push(_),$=!1;break;case"}":switch(J.tag){case"InterpolationInTemplate":if(P.length===J.nesting){g.lastIndex=x,j=g.exec(A),x=g.lastIndex,S=j[0],j[1]==="${"?(S="?InterpolationInTemplate",$=!1,yield{type:"TemplateMiddle",value:j[0]}):(Y.pop(),$=!0,yield{type:"TemplateTail",value:j[0],closed:j[1]==="`"});continue}break;case"InterpolationInJSX":if(P.length===J.nesting){Y.pop(),x+=1,S="}",yield{type:"JSXPunctuator",value:"}"};continue}}$=P.pop(),O=$?"?ExpressionBraceEnd":"}";break;case"]":$=!0;break;case"++":case"--":O=$?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(R&&(b.test(S)||i.test(S))){Y.push({tag:"JSXTag"}),x+=1,S="<",yield{type:"JSXPunctuator",value:V};continue}$=!1;break;default:$=!1}x=N,S=O,yield{type:"Punctuator",value:V};continue}if(e.lastIndex=x,j=e.exec(A)){switch(x=e.lastIndex,O=j[0],j[0]){case"for":case"if":case"while":case"with":S!=="."&&S!=="?."&&(O="?NonExpressionParenKeyword")}S=O,$=!i.test(j[0]),yield{type:j[1]==="#"?"PrivateIdentifier":"IdentifierName",value:j[0]};continue}if(y.lastIndex=x,j=y.exec(A)){x=y.lastIndex,S=j[0],$=!0,yield{type:"StringLiteral",value:j[0],closed:j[2]!==void 0};continue}if(d.lastIndex=x,j=d.exec(A)){x=d.lastIndex,S=j[0],$=!0,yield{type:"NumericLiteral",value:j[0]};continue}if(g.lastIndex=x,j=g.exec(A)){x=g.lastIndex,S=j[0],j[1]==="${"?(S="?InterpolationInTemplate",Y.push({tag:"InterpolationInTemplate",nesting:P.length}),$=!1,yield{type:"TemplateHead",value:j[0]}):($=!0,yield{type:"NoSubstitutionTemplate",value:j[0],closed:j[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(r.lastIndex=x,j=r.exec(A)){switch(x=r.lastIndex,O=j[0],j[0]){case"<":Y.push({tag:"JSXTag"});break;case">":Y.pop(),S==="/"||J.tag==="JSXTagEnd"?(O="?JSX",$=!0):Y.push({tag:"JSXChildren"});break;case"{":Y.push({tag:"InterpolationInJSX",nesting:P.length}),O="?InterpolationInJSX",$=!1;break;case"/":S==="<"&&(Y.pop(),Y[Y.length-1].tag==="JSXChildren"&&Y.pop(),Y.push({tag:"JSXTagEnd"}))}S=O,yield{type:"JSXPunctuator",value:j[0]};continue}if(t.lastIndex=x,j=t.exec(A)){x=t.lastIndex,S=j[0],yield{type:"JSXIdentifier",value:j[0]};continue}if(n.lastIndex=x,j=n.exec(A)){x=n.lastIndex,S=j[0],yield{type:"JSXString",value:j[0],closed:j[2]!==void 0};continue}break;case"JSXChildren":if(o.lastIndex=x,j=o.exec(A)){x=o.lastIndex,S=j[0],yield{type:"JSXText",value:j[0]};continue}switch(A[x]){case"<":Y.push({tag:"JSXTag"}),x++,S="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":Y.push({tag:"InterpolationInJSX",nesting:P.length}),x++,S="?InterpolationInJSX",$=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(T.lastIndex=x,j=T.exec(A)){x=T.lastIndex,yield{type:"WhiteSpace",value:j[0]};continue}if(s.lastIndex=x,j=s.exec(A)){x=s.lastIndex,$=!1,a.test(S)&&(S="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:j[0]};continue}if(c.lastIndex=x,j=c.exec(A)){x=c.lastIndex,l.test(j[0])&&($=!1,a.test(S)&&(S="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:j[0],closed:j[1]!==void 0};continue}if(m.lastIndex=x,j=m.exec(A)){x=m.lastIndex,$=!1,yield{type:"SingleLineComment",value:j[0]};continue}E=String.fromCodePoint(A.codePointAt(x)),x+=E.length,S=E,$=!1,yield{type:J.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:E}}},Ql}var gL=yL();Dv(gL);var jw={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"]};new Set(jw.keyword);new Set(jw.strict);var bL={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},qw=Object.entries(bL);function nl(e){return String(e)}nl.open="";nl.close="";qw.reduce((e,[t])=>(e[t]=nl,e),{isColorSupported:!1});function vL(e=!1){let t=typeof process<"u"?process:void 0,r=t?.env||{},n=t?.argv||[];return!("NO_COLOR"in r||n.includes("--no-color"))&&("FORCE_COLOR"in r||n.includes("--color")||t?.platform==="win32"||e&&r.TERM!=="dumb"||"CI"in r)||typeof window<"u"&&!!window.chrome}function EL(e=!1){let t=vL(e),r=(a,s,c,l)=>{let d="",p=0;do d+=a.substring(p,l)+c,p=l+s.length,l=a.indexOf(s,p);while(~l);return d+a.substring(p)},n=(a,s,c=a)=>{let l=d=>{let p=String(d),f=p.indexOf(s,a.length);return~f?a+r(p,s,c,f)+s:a+p+s};return l.open=a,l.close=s,l},o={isColorSupported:t},i=a=>`\x1B[${a}m`;for(let[a,s]of qw)o[a]=t?n(i(s[0]),i(s[1]),s[2]):nl;return o}var Rt=EL();function ka(e,t){if(!e)throw new Error(t)}function $n(e,t){return typeof t===e}function wL(e){return e instanceof Promise}function _i(e,t,r){Object.defineProperty(e,t,r)}function Jn(e,t,r){_i(e,t,{value:r,configurable:!0,writable:!0})}var zr=Symbol.for("tinyspy:spy"),_L=new Set,TL=e=>{e.called=!1,e.callCount=0,e.calls=[],e.results=[],e.resolves=[],e.next=[]},xL=e=>(_i(e,zr,{value:{reset:()=>TL(e[zr])}}),e[zr]),lc=e=>e[zr]||xL(e);function SL(e){ka($n("function",e)||$n("undefined",e),"cannot spy on a non-function value");let t=function(...n){let o=lc(t);o.called=!0,o.callCount++,o.calls.push(n);let i=o.next.shift();if(i){o.results.push(i);let[d,p]=i;if(d==="ok")return p;throw p}let a,s="ok",c=o.results.length;if(o.impl)try{new.target?a=Reflect.construct(o.impl,n,new.target):a=o.impl.apply(this,n),s="ok"}catch(d){throw a=d,s="error",o.results.push([s,d]),d}let l=[s,a];return wL(a)&&a.then(d=>o.resolves[c]=["ok",d],d=>o.resolves[c]=["error",d]),o.results.push(l),a};Jn(t,"_isMockFunction",!0),Jn(t,"length",e?e.length:0),Jn(t,"name",e&&e.name||"spy");let r=lc(t);return r.reset(),r.impl=e,t}function AL(e){return!!e&&e._isMockFunction===!0}var Dw=(e,t)=>{let r=Object.getOwnPropertyDescriptor(e,t);if(r)return[e,r];let n=Object.getPrototypeOf(e);for(;n!==null;){let o=Object.getOwnPropertyDescriptor(n,t);if(o)return[n,o];n=Object.getPrototypeOf(n)}},Zm=(e,t)=>{t!=null&&typeof t=="function"&&t.prototype!=null&&Object.setPrototypeOf(e.prototype,t.prototype)};function Lw(e,t,r){ka(!$n("undefined",e),"spyOn could not find an object to spy upon"),ka($n("object",e)||$n("function",e),"cannot spyOn on a primitive value");let[n,o]=(()=>{if(!$n("object",t))return[t,"value"];if("getter"in t&&"setter"in t)throw new Error("cannot spy on both getter and setter");if("getter"in t)return[t.getter,"get"];if("setter"in t)return[t.setter,"set"];throw new Error("specify getter or setter to spy on")})(),[i,a]=Dw(e,n)||[];ka(a||n in e,`${String(n)} does not exist`);let s=!1;o==="value"&&a&&!a.value&&a.get&&(o="get",s=!0,r=a.get());let c;a?c=a[o]:o!=="value"?c=()=>e[n]:c=e[n],c&&PL(c)&&(c=c[zr].getOriginal());let l=m=>{let{value:y,...g}=a||{configurable:!0,writable:!0};o!=="value"&&delete g.writable,g[o]=m,_i(e,n,g)},d=()=>{i!==e?Reflect.deleteProperty(e,n):a&&!c?_i(e,n,a):l(c)};r||(r=c);let p=CL(SL(r),r);o==="value"&&Zm(p,c);let f=p[zr];return Jn(f,"restore",d),Jn(f,"getOriginal",()=>s?c():c),Jn(f,"willCall",m=>(f.impl=m,p)),l(s?()=>(Zm(p,r),p):p),_L.add(p),p}var OL=new Set(["length","name","prototype"]);function RL(e){let t=new Set,r={};for(;e&&e!==Object.prototype&&e!==Function.prototype;){let n=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(let o of n)r[o]||OL.has(o)||(t.add(o),r[o]=Object.getOwnPropertyDescriptor(e,o));e=Object.getPrototypeOf(e)}return{properties:t,descriptors:r}}function CL(e,t){if(!t||zr in t)return e;let{properties:r,descriptors:n}=RL(t);for(let o of r){let i=n[o];Dw(e,o)||_i(e,o,i)}return e}function PL(e){return AL(e)&&"getOriginal"in e[zr]}var Qi=new Set;function Vn(e){return typeof e=="function"&&"_isMockFunction"in e&&e._isMockFunction}function ML(e,t,r){let n=r?{[{get:"getter",set:"setter"}[r]]:t}:t,o,i=IL(e,t),a=i&&i[r||"value"];Vn(a)&&(o=a.mock._state());try{let s=Lw(e,n),c=Fw(s);return o&&c.mock._state(o),c}catch(s){throw s instanceof TypeError&&Symbol.toStringTag&&e[Symbol.toStringTag]==="Module"&&(s.message.includes("Cannot redefine property")||s.message.includes("Cannot replace module namespace")||s.message.includes("can't redefine non-configurable property"))?new TypeError(`Cannot spy on export "${String(n)}". Module namespace is not configurable in ESM. See: https://vitest.dev/guide/browser/#limitations`,{cause:s}):s}}var NL=0;function Fw(e){let t=e,r,n=[],o=!1,i=[],a=[],s=[],c=lc(e),l={get calls(){return c.calls},get contexts(){return a},get instances(){return i},get invocationCallOrder(){return s},get results(){return c.results.map(([m,y])=>({type:m==="error"?"throw":"return",value:y}))},get settledResults(){return c.resolves.map(([m,y])=>({type:m==="error"?"rejected":"fulfilled",value:y}))},get lastCall(){return c.calls[c.calls.length-1]},_state(m){return m&&(r=m.implementation,n=m.onceImplementations,o=m.implementationChangedTemporarily),{implementation:r,onceImplementations:n,implementationChangedTemporarily:o}}};function d(...m){return i.push(this),a.push(this),s.push(++NL),(o?r:n.shift()||r||c.getOriginal()||(()=>{})).apply(this,m)}let p=t.name;t.getMockName=()=>p||"vi.fn()",t.mockName=m=>(p=m,t),t.mockClear=()=>(c.reset(),i=[],a=[],s=[],t),t.mockReset=()=>(t.mockClear(),r=void 0,n=[],t),t.mockRestore=()=>(t.mockReset(),c.restore(),t),Symbol.dispose&&(t[Symbol.dispose]=()=>t.mockRestore()),t.getMockImplementation=()=>o?r:n.at(0)||r,t.mockImplementation=m=>(r=m,c.willCall(d),t),t.mockImplementationOnce=m=>(n.push(m),t);function f(m,y){let g=r;r=m,c.willCall(d),o=!0;let v=()=>{r=g,o=!1},b=y();return typeof b=="object"&&b&&typeof b.then=="function"?b.then(()=>(v(),t)):(v(),t)}return t.withImplementation=f,t.mockReturnThis=()=>t.mockImplementation(function(){return this}),t.mockReturnValue=m=>t.mockImplementation(()=>m),t.mockReturnValueOnce=m=>t.mockImplementationOnce(()=>m),t.mockResolvedValue=m=>t.mockImplementation(()=>Promise.resolve(m)),t.mockResolvedValueOnce=m=>t.mockImplementationOnce(()=>Promise.resolve(m)),t.mockRejectedValue=m=>t.mockImplementation(()=>Promise.reject(m)),t.mockRejectedValueOnce=m=>t.mockImplementationOnce(()=>Promise.reject(m)),Object.defineProperty(t,"mock",{get:()=>l}),c.willCall(d),Qi.add(t),t}function eh(e){let t=Fw(Lw({spy:e||function(){}},"spy"));return e&&t.mockImplementation(e),t}function IL(e,t){let r=Object.getOwnPropertyDescriptor(e,t);if(r)return r;let n=Object.getPrototypeOf(e);for(;n!==null;){let o=Object.getOwnPropertyDescriptor(n,t);if(o)return o;n=Object.getPrototypeOf(n)}}var Ti=Symbol.for("matchers-object"),xi=Symbol.for("$$jest-matchers-object-storybook"),Rp=Symbol.for("expect-global"),uc=Symbol.for("asymmetric-matchers-object"),kL={toSatisfy(e,t,r){let{printReceived:n,printExpected:o,matcherHint:i}=this.utils,a=t(e);return{pass:a,message:()=>a?`${i(".not.toSatisfy","received","")}
244
-
245
- Expected value to not satisfy:
246
- ${r||o(t)}
247
- Received:
248
- ${n(e)}`:`${i(".toSatisfy","received","")}
249
-
250
- Expected value to satisfy:
251
- ${r||o(t)}
252
-
253
- Received:
254
- ${n(e)}`}},toBeOneOf(e,t){let{equals:r,customTesters:n}=this,{printReceived:o,printExpected:i,matcherHint:a}=this.utils;if(!Array.isArray(t))throw new TypeError(`You must provide an array to ${a(".toBeOneOf")}, not '${typeof t}'.`);let s=t.length===0||t.some(c=>r(c,e,n));return{pass:s,message:()=>s?`${a(".not.toBeOneOf","received","")}
255
-
256
- Expected value to not be one of:
257
- ${i(t)}
258
- Received:
259
- ${o(e)}`:`${a(".toBeOneOf","received","")}
260
-
261
- Expected value to be one of:
262
- ${i(t)}
263
-
264
- Received:
265
- ${o(e)}`}}},as=Rt.green,Cp=Rt.red,jL=Rt.inverse,qL=Rt.bold,qr=Rt.dim;function DL(e,t="received",r="expected",n={}){let{comment:o="",isDirectExpectCall:i=!1,isNot:a=!1,promise:s="",secondArgument:c="",expectedColor:l=as,receivedColor:d=Cp,secondArgumentColor:p=as}=n,f="",m="expect";return!i&&t!==""&&(f+=qr(`${m}(`)+d(t),m=")"),s!==""&&(f+=qr(`${m}.`)+s,m=""),a&&(f+=`${qr(`${m}.`)}not`,m=""),e.includes(".")?m+=e:(f+=qr(`${m}.`)+e,m=""),r===""?m+="()":(f+=qr(`${m}(`)+l(r),c&&(f+=qr(", ")+p(c)),m=")"),o!==""&&(m+=` // ${o}`),m!==""&&(f+=qr(m)),f}var LL="·";function $w(e){return e.replace(/\s+$/gm,t=>LL.repeat(t.length))}function FL(e){return Cp($w(Mt(e)))}function $L(e){return as($w(Mt(e)))}function Bw(){return{EXPECTED_COLOR:as,RECEIVED_COLOR:Cp,INVERTED_COLOR:jL,BOLD_WEIGHT:qL,DIM_COLOR:qr,diff:bo,matcherHint:DL,printReceived:FL,printExpected:$L,printDiffOrStringify:Qv,printWithType:BL}}function BL(e,t,r){let n=Xa(t),o=n!=="null"&&n!=="undefined"?`${e} has type: ${n}
266
- `:"",i=`${e} has value: ${r(t)}`;return o+i}function Pp(){return globalThis[xi].customEqualityTesters}function Me(e,t,r,n){return r=r||[],ii(e,t,[],[],r,n?Uw:JL)}function th(e){return!!e&&typeof e=="object"&&"asymmetricMatch"in e&&Wt("Function",e.asymmetricMatch)}function UL(e,t){let r=th(e),n=th(t);if(!(r&&n)){if(r)return e.asymmetricMatch(t);if(n)return t.asymmetricMatch(e)}}function ii(e,t,r,n,o,i){let a=!0,s=UL(e,t);if(s!==void 0)return s;let c={equals:Me};for(let y=0;y<o.length;y++){let g=o[y].call(c,e,t,o);if(g!==void 0)return g}if(typeof URL=="function"&&e instanceof URL&&t instanceof URL)return e.href===t.href;if(Object.is(e,t))return!0;if(e===null||t===null)return e===t;let l=Object.prototype.toString.call(e);if(l!==Object.prototype.toString.call(t))return!1;switch(l){case"[object Boolean]":case"[object String]":case"[object Number]":return typeof e!=typeof t?!1:typeof e!="object"&&typeof t!="object"?Object.is(e,t):Object.is(e.valueOf(),t.valueOf());case"[object Date]":{let y=+e,g=+t;return y===g||Number.isNaN(y)&&Number.isNaN(g)}case"[object RegExp]":return e.source===t.source&&e.flags===t.flags;case"[object Temporal.Instant]":case"[object Temporal.ZonedDateTime]":case"[object Temporal.PlainDateTime]":case"[object Temporal.PlainDate]":case"[object Temporal.PlainTime]":case"[object Temporal.PlainYearMonth]":case"[object Temporal.PlainMonthDay]":return e.equals(t);case"[object Temporal.Duration]":return e.toString()===t.toString()}if(typeof e!="object"||typeof t!="object")return!1;if(nh(e)&&nh(t))return e.isEqualNode(t);let d=r.length;for(;d--;){if(r[d]===e)return n[d]===t;if(n[d]===t)return!1}if(r.push(e),n.push(t),l==="[object Array]"&&e.length!==t.length)return!1;if(e instanceof Error&&t instanceof Error)try{return HL(e,t,r,n,o,i)}finally{r.pop(),n.pop()}let p=rh(e,i),f,m=p.length;if(rh(t,i).length!==m)return!1;for(;m--;)if(f=p[m],a=i(t,f)&&ii(e[f],t[f],r,n,o,i),!a)return!1;return r.pop(),n.pop(),a}function HL(e,t,r,n,o,i){let a=Object.getPrototypeOf(e)===Object.getPrototypeOf(t)&&e.name===t.name&&e.message===t.message;return typeof t.cause<"u"&&a&&(a=ii(e.cause,t.cause,r,n,o,i)),e instanceof AggregateError&&t instanceof AggregateError&&a&&(a=ii(e.errors,t.errors,r,n,o,i)),a&&(a=ii({...e},{...t},r,n,o,i)),a}function rh(e,t){let r=[];for(let n in e)t(e,n)&&r.push(n);return r.concat(Object.getOwnPropertySymbols(e).filter(n=>Object.getOwnPropertyDescriptor(e,n).enumerable))}function JL(e,t){return Uw(e,t)&&e[t]!==void 0}function Uw(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Wt(e,t){return Object.prototype.toString.apply(t)===`[object ${e}]`}function nh(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"&&"nodeName"in e&&typeof e.nodeName=="string"&&"isEqualNode"in e&&typeof e.isEqualNode=="function"}var Hw="@@__IMMUTABLE_KEYED__@@",Jw="@@__IMMUTABLE_SET__@@",VL="@@__IMMUTABLE_LIST__@@",ol="@@__IMMUTABLE_ORDERED__@@",zL="@@__IMMUTABLE_RECORD__@@";function GL(e){return!!(e&&e[Hw]&&!e[ol])}function WL(e){return!!(e&&e[Jw]&&!e[ol])}function il(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function KL(e){return!!(e&&il(e)&&e[VL])}function YL(e){return!!(e&&il(e)&&e[Hw]&&e[ol])}function XL(e){return!!(e&&il(e)&&e[Jw]&&e[ol])}function QL(e){return!!(e&&il(e)&&e[zL])}var Vw=Symbol.iterator;function oh(e){return!!(e!=null&&e[Vw])}function Lt(e,t,r=[],n=[],o=[]){if(typeof e!="object"||typeof t!="object"||Array.isArray(e)||Array.isArray(t)||!oh(e)||!oh(t))return;if(e.constructor!==t.constructor)return!1;let i=n.length;for(;i--;)if(n[i]===e)return o[i]===t;n.push(e),o.push(t);let a=[...r.filter(l=>l!==Lt),s];function s(l,d){return Lt(l,d,[...r],[...n],[...o])}if(e.size!==void 0){if(e.size!==t.size)return!1;if(Wt("Set",e)||WL(e)){let l=!0;for(let d of e)if(!t.has(d)){let p=!1;for(let f of t)Me(d,f,a)===!0&&(p=!0);if(p===!1){l=!1;break}}return n.pop(),o.pop(),l}else if(Wt("Map",e)||GL(e)){let l=!0;for(let d of e)if(!t.has(d[0])||!Me(d[1],t.get(d[0]),a)){let p=!1;for(let f of t){let m=Me(d[0],f[0],a),y=!1;m===!0&&(y=Me(d[1],f[1],a)),y===!0&&(p=!0)}if(p===!1){l=!1;break}}return n.pop(),o.pop(),l}}let c=t[Vw]();for(let l of e){let d=c.next();if(d.done||!Me(l,d.value,a))return!1}if(!c.next().done)return!1;if(!KL(e)&&!YL(e)&&!XL(e)&&!QL(e)){let l=Object.entries(e),d=Object.entries(t);if(!Me(l,d,a))return!1}return n.pop(),o.pop(),!0}function Mp(e,t){return!e||typeof e!="object"||e===Object.prototype?!1:Object.prototype.hasOwnProperty.call(e,t)||Mp(Object.getPrototypeOf(e),t)}function ZL(e){return Na(e)&&!(e instanceof Error)&&!Array.isArray(e)&&!(e instanceof Date)}function Zi(e,t,r=[]){let n=r.filter(i=>i!==Zi),o=(i=new WeakMap)=>(a,s)=>{if(ZL(s))return Object.keys(s).every(c=>{if(s[c]!=null&&typeof s[c]=="object"){if(i.has(s[c]))return Me(a[c],s[c],n);i.set(s[c],!0)}let l=a!=null&&Mp(a,c)&&Me(a[c],s[c],[...n,o(i)]);return i.delete(s[c]),l})};return o()(e,t)}function ih(e,t){if(!(e==null||t==null||e.constructor===t.constructor))return!1}function ah(e,t){let r=e,n=t;if(!(e instanceof DataView&&t instanceof DataView)){if(!(e instanceof ArrayBuffer)||!(t instanceof ArrayBuffer))return;try{r=new DataView(e),n=new DataView(t)}catch{return}}if(r.byteLength!==n.byteLength)return!1;for(let o=0;o<r.byteLength;o++)if(r.getUint8(o)!==n.getUint8(o))return!1;return!0}function cc(e,t,r=[]){if(!Array.isArray(e)||!Array.isArray(t))return;let n=Object.keys(e),o=Object.keys(t),i=r.filter(a=>a!==cc);return Me(e,t,i,!0)&&Me(n,o)}function eF(e,t="#{this}",r="#{exp}"){let n=`expected ${t} to be ${r} // Object.is equality`;return["toStrictEqual","toEqual"].includes(e)?`${n}
267
-
268
- If it should pass with deep equality, replace "toBe" with "${e}"
269
-
270
- Expected: ${t}
271
- Received: serializes to the same string
272
- `:n}function tF(e,t){return`${t} ${e}${t===1?"":"s"}`}function Zl(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e).filter(t=>{var r;return(r=Object.getOwnPropertyDescriptor(e,t))===null||r===void 0?void 0:r.enumerable})]}function rF(e,t,r){let n=0,o=(i=new WeakMap)=>(a,s)=>{if(Array.isArray(a)){if(Array.isArray(s)&&s.length===a.length)return s.map((c,l)=>o(i)(a[l],c))}else{if(a instanceof Date)return a;if(Na(a)&&Na(s)){if(Me(a,s,[...r,Lt,Zi]))return s;let c={};i.set(a,c),typeof a.constructor=="function"&&typeof a.constructor.name=="string"&&Object.defineProperty(c,"constructor",{enumerable:!1,value:a.constructor});for(let l of Zl(a))Mp(s,l)?c[l]=i.has(a[l])?i.get(a[l]):o(i)(a[l],s[l]):i.has(a[l])||(n+=1,Na(a[l])&&(n+=Zl(a[l]).length),o(i)(a[l],s[l]));if(Zl(c).length>0)return c}}return a};return{subset:o()(e,t),stripped:n}}if(!Object.prototype.hasOwnProperty.call(globalThis,Ti)){let e=new WeakMap;Object.defineProperty(globalThis,Ti,{get:()=>e})}if(!Object.prototype.hasOwnProperty.call(globalThis,xi)){let e=Object.create(null),t=[];Object.defineProperty(globalThis,xi,{configurable:!0,get:()=>({state:globalThis[Ti].get(globalThis[Rp]),matchers:e,customEqualityTesters:t})})}if(!Object.prototype.hasOwnProperty.call(globalThis,uc)){let e=Object.create(null);Object.defineProperty(globalThis,uc,{get:()=>e})}function ss(e){return globalThis[Ti].get(e)}function eu(e,t){let r=globalThis[Ti],n=r.get(t)||{},o=Object.defineProperties(n,{...Object.getOwnPropertyDescriptors(n),...Object.getOwnPropertyDescriptors(e)});r.set(t,o)}var Rr=class{$$typeof=Symbol.for("jest.asymmetricMatcher");constructor(e,t=!1){this.sample=e,this.inverse=t}getMatcherContext(e){return{...ss(e||globalThis[Rp]),equals:Me,isNot:this.inverse,customTesters:Pp(),utils:{...Bw(),diff:bo,stringify:Mt,iterableEquality:Lt,subsetEquality:Zi}}}};Rr.prototype[Symbol.for("chai/inspect")]=function(e){let t=Mt(this,e.depth,{min:!0});return t.length<=e.truncate?t:`${this.toString()}{…}`};var sh=class extends Rr{constructor(e,t=!1){if(!Wt("String",e))throw new Error("Expected is not a string");super(e,t)}asymmetricMatch(e){let t=Wt("String",e)&&e.includes(this.sample);return this.inverse?!t:t}toString(){return`String${this.inverse?"Not":""}Containing`}getExpectedType(){return"string"}},nF=class extends Rr{asymmetricMatch(e){return e!=null}toString(){return"Anything"}toAsymmetricMatcher(){return"Anything"}},lh=class extends Rr{constructor(e,t=!1){super(e,t)}getPrototype(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.constructor.prototype===e?null:e.constructor.prototype}hasProperty(e,t){return e?Object.prototype.hasOwnProperty.call(e,t)?!0:this.hasProperty(this.getPrototype(e),t):!1}asymmetricMatch(e){if(typeof this.sample!="object")throw new TypeError(`You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`);let t=!0,r=this.getMatcherContext();for(let n in this.sample)if(!this.hasProperty(e,n)||!Me(this.sample[n],e[n],r.customTesters)){t=!1;break}return this.inverse?!t:t}toString(){return`Object${this.inverse?"Not":""}Containing`}getExpectedType(){return"object"}},uh=class extends Rr{constructor(e,t=!1){super(e,t)}asymmetricMatch(e){if(!Array.isArray(this.sample))throw new TypeError(`You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`);let t=this.getMatcherContext(),r=this.sample.length===0||Array.isArray(e)&&this.sample.every(n=>e.some(o=>Me(n,o,t.customTesters)));return this.inverse?!r:r}toString(){return`Array${this.inverse?"Not":""}Containing`}getExpectedType(){return"array"}},oF=class extends Rr{constructor(e){if(typeof e>"u")throw new TypeError("any() expects to be passed a constructor function. Please pass one or use anything() to match any object.");super(e)}fnNameFor(e){if(e.name)return e.name;let t=Function.prototype.toString.call(e).match(/^(?:async)?\s*function\s*(?:\*\s*)?([\w$]+)\s*\(/);return t?t[1]:"<anonymous>"}asymmetricMatch(e){return this.sample===String?typeof e=="string"||e instanceof String:this.sample===Number?typeof e=="number"||e instanceof Number:this.sample===Function?typeof e=="function"||typeof e=="function":this.sample===Boolean?typeof e=="boolean"||e instanceof Boolean:this.sample===BigInt?typeof e=="bigint"||e instanceof BigInt:this.sample===Symbol?typeof e=="symbol"||e instanceof Symbol:this.sample===Object?typeof e=="object":e instanceof this.sample}toString(){return"Any"}getExpectedType(){return this.sample===String?"string":this.sample===Number?"number":this.sample===Function?"function":this.sample===Object?"object":this.sample===Boolean?"boolean":this.fnNameFor(this.sample)}toAsymmetricMatcher(){return`Any<${this.fnNameFor(this.sample)}>`}},ch=class extends Rr{constructor(e,t=!1){if(!Wt("String",e)&&!Wt("RegExp",e))throw new Error("Expected is not a String or a RegExp");super(new RegExp(e),t)}asymmetricMatch(e){let t=Wt("String",e)&&this.sample.test(e);return this.inverse?!t:t}toString(){return`String${this.inverse?"Not":""}Matching`}getExpectedType(){return"string"}},dh=class extends Rr{precision;constructor(e,t=2,r=!1){if(!Wt("Number",e))throw new Error("Expected is not a Number");if(!Wt("Number",t))throw new Error("Precision is not a Number");super(e),this.inverse=r,this.precision=t}asymmetricMatch(e){if(!Wt("Number",e))return!1;let t=!1;return e===Number.POSITIVE_INFINITY&&this.sample===Number.POSITIVE_INFINITY||e===Number.NEGATIVE_INFINITY&&this.sample===Number.NEGATIVE_INFINITY?t=!0:t=Math.abs(this.sample-e)<10**-this.precision/2,this.inverse?!t:t}toString(){return`Number${this.inverse?"Not":""}CloseTo`}getExpectedType(){return"number"}toAsymmetricMatcher(){return[this.toString(),this.sample,`(${tF("digit",this.precision)})`].join(" ")}},iF=(e,t)=>{t.addMethod(e.expect,"anything",()=>new nF),t.addMethod(e.expect,"any",r=>new oF(r)),t.addMethod(e.expect,"stringContaining",r=>new sh(r)),t.addMethod(e.expect,"objectContaining",r=>new lh(r)),t.addMethod(e.expect,"arrayContaining",r=>new uh(r)),t.addMethod(e.expect,"stringMatching",r=>new ch(r)),t.addMethod(e.expect,"closeTo",(r,n)=>new dh(r,n)),e.expect.not={stringContaining:r=>new sh(r,!0),objectContaining:r=>new lh(r,!0),arrayContaining:r=>new uh(r,!0),stringMatching:r=>new ch(r,!0),closeTo:(r,n)=>new dh(r,n,!0)}};function ph(e,t,r){let n=e.flag(t,"negate")?"not.":"",o=`${e.flag(t,"_name")}(${r?"expected":""})`,i=e.flag(t,"promise");return`expect(actual)${i?`.${i}`:""}.${n}${o}`}function fh(e,t,r,n){let o=e;if(o&&t instanceof Promise){t=t.finally(()=>{if(!o.promises)return;let a=o.promises.indexOf(t);a!==-1&&o.promises.splice(a,1)}),o.promises||(o.promises=[]),o.promises.push(t);let i=!1;return o.onFinished??(o.onFinished=[]),o.onFinished.push(()=>{if(!i){var a;let s=(((a=globalThis.__vitest_worker__)===null||a===void 0?void 0:a.onFilterStackTrace)||(c=>c||""))(n.stack);console.warn([`Promise returned by \`${r}\` was not awaited. `,"Vitest currently auto-awaits hanging assertions at the end of the test, but this will cause the test to fail in Vitest 3. ",`Please remember to await the assertion.
273
- `,s].join(""))}}),{then(a,s){return i=!0,t.then(a,s)},catch(a){return t.catch(a)},finally(a){return t.finally(a)},[Symbol.toStringTag]:"Promise"}}return t}function mh(e,t){var r;e.result||(e.result={state:"fail"}),e.result.state="fail",(r=e.result).errors||(r.errors=[]),e.result.errors.push(Bd(t))}function zw(e,t,r){return function(...n){if(t!=="withTest"&&e.flag(this,"_name",t),!e.flag(this,"soft"))return r.apply(this,n);let o=e.flag(this,"vitest-test");if(!o)throw new Error("expect.soft() can only be used inside a test");try{let i=r.apply(this,n);return i&&typeof i=="object"&&typeof i.then=="function"?i.then(dj,a=>{mh(o,a)}):i}catch(i){mh(o,i)}}}var aF=(e,t)=>{let{AssertionError:r}=e,n=Pp();function o(l,d){let p=f=>{let m=zw(t,f,d);t.addMethod(e.Assertion.prototype,f,m),t.addMethod(globalThis[xi].matchers,f,m)};Array.isArray(l)?l.forEach(f=>p(f)):p(l)}["throw","throws","Throw"].forEach(l=>{t.overwriteMethod(e.Assertion.prototype,l,d=>function(...p){let f=t.flag(this,"promise"),m=t.flag(this,"object"),y=t.flag(this,"negate");if(f==="rejects")t.flag(this,"object",()=>{throw m});else if(f==="resolves"&&typeof m!="function"){if(y)return;{let g=t.flag(this,"message")||"expected promise to throw an error, but it didn't",v={showDiff:!1};throw new r(g,v,t.flag(this,"ssfi"))}}d.apply(this,p)})}),o("withTest",function(l){return t.flag(this,"vitest-test",l),this}),o("toEqual",function(l){let d=t.flag(this,"object"),p=Me(d,l,[...n,Lt]);return this.assert(p,"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",l,d)}),o("toStrictEqual",function(l){let d=t.flag(this,"object"),p=Me(d,l,[...n,Lt,ih,cc,ah],!0);return this.assert(p,"expected #{this} to strictly equal #{exp}","expected #{this} to not strictly equal #{exp}",l,d)}),o("toBe",function(l){let d=this._obj,p=Object.is(d,l),f="";return p||(Me(d,l,[...n,Lt,ih,cc,ah],!0)?f="toStrictEqual":Me(d,l,[...n,Lt])&&(f="toEqual")),this.assert(p,eF(f),"expected #{this} not to be #{exp} // Object.is equality",l,d)}),o("toMatchObject",function(l){let d=this._obj,p=Me(d,l,[...n,Lt,Zi]),f=t.flag(this,"negate"),{subset:m,stripped:y}=rF(d,l,n);if(p&&f||!p&&!f){let g=t.getMessage(this,[p,"expected #{this} to match object #{exp}","expected #{this} to not match object #{exp}",l,m,!1]),v=y===0?g:`${g}
274
- (${y} matching ${y===1?"property":"properties"} omitted from actual)`;throw new r(v,{showDiff:!0,expected:l,actual:m})}}),o("toMatch",function(l){let d=this._obj;if(typeof d!="string")throw new TypeError(`.toMatch() expects to receive a string, but got ${typeof d}`);return this.assert(typeof l=="string"?d.includes(l):d.match(l),"expected #{this} to match #{exp}","expected #{this} not to match #{exp}",l,d)}),o("toContain",function(l){let d=this._obj;if(typeof Node<"u"&&d instanceof Node){if(!(l instanceof Node))throw new TypeError(`toContain() expected a DOM node as the argument, but got ${typeof l}`);return this.assert(d.contains(l),"expected #{this} to contain element #{exp}","expected #{this} not to contain element #{exp}",l,d)}if(typeof DOMTokenList<"u"&&d instanceof DOMTokenList){dr(l,"class name",["string"]);let p=t.flag(this,"negate")?d.value.replace(l,"").trim():`${d.value} ${l}`;return this.assert(d.contains(l),`expected "${d.value}" to contain "${l}"`,`expected "${d.value}" not to contain "${l}"`,p,d.value)}return typeof d=="string"&&typeof l=="string"?this.assert(d.includes(l),"expected #{this} to contain #{exp}","expected #{this} not to contain #{exp}",l,d):(d!=null&&typeof d!="string"&&t.flag(this,"object",Array.from(d)),this.contain(l))}),o("toContainEqual",function(l){let d=t.flag(this,"object"),p=Array.from(d).findIndex(f=>Me(f,l,n));this.assert(p!==-1,"expected #{this} to deep equally contain #{exp}","expected #{this} to not deep equally contain #{exp}",l)}),o("toBeTruthy",function(){let l=t.flag(this,"object");this.assert(!!l,"expected #{this} to be truthy","expected #{this} to not be truthy",!0,l)}),o("toBeFalsy",function(){let l=t.flag(this,"object");this.assert(!l,"expected #{this} to be falsy","expected #{this} to not be falsy",!1,l)}),o("toBeGreaterThan",function(l){let d=this._obj;return dr(d,"actual",["number","bigint"]),dr(l,"expected",["number","bigint"]),this.assert(d>l,`expected ${d} to be greater than ${l}`,`expected ${d} to be not greater than ${l}`,l,d,!1)}),o("toBeGreaterThanOrEqual",function(l){let d=this._obj;return dr(d,"actual",["number","bigint"]),dr(l,"expected",["number","bigint"]),this.assert(d>=l,`expected ${d} to be greater than or equal to ${l}`,`expected ${d} to be not greater than or equal to ${l}`,l,d,!1)}),o("toBeLessThan",function(l){let d=this._obj;return dr(d,"actual",["number","bigint"]),dr(l,"expected",["number","bigint"]),this.assert(d<l,`expected ${d} to be less than ${l}`,`expected ${d} to be not less than ${l}`,l,d,!1)}),o("toBeLessThanOrEqual",function(l){let d=this._obj;return dr(d,"actual",["number","bigint"]),dr(l,"expected",["number","bigint"]),this.assert(d<=l,`expected ${d} to be less than or equal to ${l}`,`expected ${d} to be not less than or equal to ${l}`,l,d,!1)}),o("toBeNaN",function(){let l=t.flag(this,"object");this.assert(Number.isNaN(l),"expected #{this} to be NaN","expected #{this} not to be NaN",Number.NaN,l)}),o("toBeUndefined",function(){let l=t.flag(this,"object");this.assert(l===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined",void 0,l)}),o("toBeNull",function(){let l=t.flag(this,"object");this.assert(l===null,"expected #{this} to be null","expected #{this} not to be null",null,l)}),o("toBeDefined",function(){let l=t.flag(this,"object");this.assert(typeof l<"u","expected #{this} to be defined","expected #{this} to be undefined",l)}),o("toBeTypeOf",function(l){let d=typeof this._obj,p=l===d;return this.assert(p,"expected #{this} to be type of #{exp}","expected #{this} not to be type of #{exp}",l,d)}),o("toBeInstanceOf",function(l){return this.instanceOf(l)}),o("toHaveLength",function(l){return this.have.length(l)}),o("toHaveProperty",function(...l){Array.isArray(l[0])&&(l[0]=l[0].map(T=>String(T).replace(/([.[\]])/g,"\\$1")).join("."));let d=this._obj,[p,f]=l,m=()=>Object.prototype.hasOwnProperty.call(d,p)?{value:d[p],exists:!0}:t.getPathInfo(d,p),{value:y,exists:g}=m(),v=g&&(l.length===1||Me(f,y,n)),b=l.length===1?"":` with value ${t.objDisplay(f)}`;return this.assert(v,`expected #{this} to have property "${p}"${b}`,`expected #{this} to not have property "${p}"${b}`,f,g?y:void 0)}),o("toBeCloseTo",function(l,d=2){let p=this._obj,f=!1,m=0,y=0;return l===Number.POSITIVE_INFINITY&&p===Number.POSITIVE_INFINITY||l===Number.NEGATIVE_INFINITY&&p===Number.NEGATIVE_INFINITY?f=!0:(m=10**-d/2,y=Math.abs(p-l),f=y<m),this.assert(f,`expected #{this} to be close to #{exp}, received difference is ${y}, but expected ${m}`,`expected #{this} to not be close to #{exp}, received difference is ${y}, but expected ${m}`,l,p,!1)});function i(l){if(!Vn(l._obj))throw new TypeError(`${t.inspect(l._obj)} is not a spy or a call to a spy!`)}function a(l){return i(l),l._obj}o(["toHaveBeenCalledTimes","toBeCalledTimes"],function(l){let d=a(this),p=d.getMockName(),f=d.mock.calls.length;return this.assert(f===l,`expected "${p}" to be called #{exp} times, but got ${f} times`,`expected "${p}" to not be called #{exp} times`,l,f,!1)}),o("toHaveBeenCalledOnce",function(){let l=a(this),d=l.getMockName(),p=l.mock.calls.length;return this.assert(p===1,`expected "${d}" to be called once, but got ${p} times`,`expected "${d}" to not be called once`,1,p,!1)}),o(["toHaveBeenCalled","toBeCalled"],function(){let l=a(this),d=l.getMockName(),p=l.mock.calls.length,f=p>0,m=t.flag(this,"negate"),y=t.getMessage(this,[f,`expected "${d}" to be called at least once`,`expected "${d}" to not be called at all, but actually been called ${p} times`,!0,f]);if(f&&m&&(y=tu(l,y)),f&&m||!f&&!m)throw new r(y)});function s(l,d){return l.length===d.length&&l.every((p,f)=>Me(p,d[f],[...n,Lt]))}o(["toHaveBeenCalledWith","toBeCalledWith"],function(...l){let d=a(this),p=d.getMockName(),f=d.mock.calls.some(g=>s(g,l)),m=t.flag(this,"negate"),y=t.getMessage(this,[f,`expected "${p}" to be called with arguments: #{exp}`,`expected "${p}" to not be called with arguments: #{exp}`,l]);if(f&&m||!f&&!m)throw new r(tu(d,y,l))}),o("toHaveBeenCalledExactlyOnceWith",function(...l){let d=a(this),p=d.getMockName(),f=d.mock.calls.length,m=d.mock.calls.some(v=>s(v,l))&&f===1,y=t.flag(this,"negate"),g=t.getMessage(this,[m,`expected "${p}" to be called once with arguments: #{exp}`,`expected "${p}" to not be called once with arguments: #{exp}`,l]);if(m&&y||!m&&!y)throw new r(tu(d,g,l))}),o(["toHaveBeenNthCalledWith","nthCalledWith"],function(l,...d){let p=a(this),f=p.getMockName(),m=p.mock.calls[l-1],y=p.mock.calls.length,g=l<=y;this.assert(m&&s(m,d),`expected ${ai(l)} "${f}" call to have been called with #{exp}${g?"":`, but called only ${y} times`}`,`expected ${ai(l)} "${f}" call to not have been called with #{exp}`,d,m,g)}),o(["toHaveBeenLastCalledWith","lastCalledWith"],function(...l){let d=a(this),p=d.getMockName(),f=d.mock.calls[d.mock.calls.length-1];this.assert(f&&s(f,l),`expected last "${p}" call to have been called with #{exp}`,`expected last "${p}" call to not have been called with #{exp}`,l,f)});function c(l,d,p){let f=l.mock.invocationCallOrder,m=d.mock.invocationCallOrder;return f.length===0?!p:m.length===0?!1:f[0]<m[0]}o(["toHaveBeenCalledBefore"],function(l,d=!0){let p=a(this);if(!Vn(l))throw new TypeError(`${t.inspect(l)} is not a spy or a call to a spy`);this.assert(c(p,l,d),`expected "${p.getMockName()}" to have been called before "${l.getMockName()}"`,`expected "${p.getMockName()}" to not have been called before "${l.getMockName()}"`,l,p)}),o(["toHaveBeenCalledAfter"],function(l,d=!0){let p=a(this);if(!Vn(l))throw new TypeError(`${t.inspect(l)} is not a spy or a call to a spy`);this.assert(c(l,p,d),`expected "${p.getMockName()}" to have been called after "${l.getMockName()}"`,`expected "${p.getMockName()}" to not have been called after "${l.getMockName()}"`,l,p)}),o(["toThrow","toThrowError"],function(l){if(typeof l=="string"||typeof l>"u"||l instanceof RegExp)return this.throws(l===""?/^$/:l);let d=this._obj,p=t.flag(this,"promise"),f=t.flag(this,"negate"),m=null;if(p==="rejects")m=d;else if(p==="resolves"&&typeof d!="function"){if(f)return;{let y=t.flag(this,"message")||"expected promise to throw an error, but it didn't",g={showDiff:!1};throw new r(y,g,t.flag(this,"ssfi"))}}else{let y=!1;try{d()}catch(g){y=!0,m=g}if(!y&&!f){let g=t.flag(this,"message")||"expected function to throw an error, but it didn't",v={showDiff:!1};throw new r(g,v,t.flag(this,"ssfi"))}}if(typeof l=="function"){let y=l.name||l.prototype.constructor.name;return this.assert(m&&m instanceof l,`expected error to be instance of ${y}`,`expected error not to be instance of ${y}`,l,m)}if(l instanceof Error){let y=Me(m,l,[...n,Lt]);return this.assert(y,"expected a thrown error to be #{exp}","expected a thrown error not to be #{exp}",l,m)}if(typeof l=="object"&&"asymmetricMatch"in l&&typeof l.asymmetricMatch=="function"){let y=l;return this.assert(m&&y.asymmetricMatch(m),"expected error to match asymmetric matcher","expected error not to match asymmetric matcher",y,m)}throw new Error(`"toThrow" expects string, RegExp, function, Error instance or asymmetric matcher, got "${typeof l}"`)}),[{name:"toHaveResolved",condition:l=>l.mock.settledResults.length>0&&l.mock.settledResults.some(({type:d})=>d==="fulfilled"),action:"resolved"},{name:["toHaveReturned","toReturn"],condition:l=>l.mock.calls.length>0&&l.mock.results.some(({type:d})=>d!=="throw"),action:"called"}].forEach(({name:l,condition:d,action:p})=>{o(l,function(){let f=a(this),m=f.getMockName(),y=d(f);this.assert(y,`expected "${m}" to be successfully ${p} at least once`,`expected "${m}" to not be successfully ${p}`,y,!y,!1)})}),[{name:"toHaveResolvedTimes",condition:(l,d)=>l.mock.settledResults.reduce((p,{type:f})=>f==="fulfilled"?++p:p,0)===d,action:"resolved"},{name:["toHaveReturnedTimes","toReturnTimes"],condition:(l,d)=>l.mock.results.reduce((p,{type:f})=>f==="throw"?p:++p,0)===d,action:"called"}].forEach(({name:l,condition:d,action:p})=>{o(l,function(f){let m=a(this),y=m.getMockName(),g=d(m,f);this.assert(g,`expected "${y}" to be successfully ${p} ${f} times`,`expected "${y}" to not be successfully ${p} ${f} times`,`expected resolved times: ${f}`,`received resolved times: ${g}`,!1)})}),[{name:"toHaveResolvedWith",condition:(l,d)=>l.mock.settledResults.some(({type:p,value:f})=>p==="fulfilled"&&Me(d,f)),action:"resolve"},{name:["toHaveReturnedWith","toReturnWith"],condition:(l,d)=>l.mock.results.some(({type:p,value:f})=>p==="return"&&Me(d,f)),action:"return"}].forEach(({name:l,condition:d,action:p})=>{o(l,function(f){let m=a(this),y=d(m,f),g=t.flag(this,"negate");if(y&&g||!y&&!g){let v=m.getMockName(),b=t.getMessage(this,[y,`expected "${v}" to ${p} with: #{exp} at least once`,`expected "${v}" to not ${p} with: #{exp}`,f]),T=p==="return"?m.mock.results:m.mock.settledResults;throw new r(sF(m,T,b,f))}})}),[{name:"toHaveLastResolvedWith",condition:(l,d)=>{let p=l.mock.settledResults[l.mock.settledResults.length-1];return p&&p.type==="fulfilled"&&Me(p.value,d)},action:"resolve"},{name:["toHaveLastReturnedWith","lastReturnedWith"],condition:(l,d)=>{let p=l.mock.results[l.mock.results.length-1];return p&&p.type==="return"&&Me(p.value,d)},action:"return"}].forEach(({name:l,condition:d,action:p})=>{o(l,function(f){let m=a(this),y=p==="return"?m.mock.results:m.mock.settledResults,g=y[y.length-1],v=m.getMockName();this.assert(d(m,f),`expected last "${v}" call to ${p} #{exp}`,`expected last "${v}" call to not ${p} #{exp}`,f,g?.value)})}),[{name:"toHaveNthResolvedWith",condition:(l,d,p)=>{let f=l.mock.settledResults[d-1];return f&&f.type==="fulfilled"&&Me(f.value,p)},action:"resolve"},{name:["toHaveNthReturnedWith","nthReturnedWith"],condition:(l,d,p)=>{let f=l.mock.results[d-1];return f&&f.type==="return"&&Me(f.value,p)},action:"return"}].forEach(({name:l,condition:d,action:p})=>{o(l,function(f,m){let y=a(this),g=y.getMockName(),v=(p==="return"?y.mock.results:y.mock.settledResults)[f-1],b=`${ai(f)} call`;this.assert(d(y,f,m),`expected ${b} "${g}" call to ${p} #{exp}`,`expected ${b} "${g}" call to not ${p} #{exp}`,m,v?.value)})}),o("withContext",function(l){for(let d in l)t.flag(this,d,l[d]);return this}),t.addProperty(e.Assertion.prototype,"resolves",function(){let l=new Error("resolves");t.flag(this,"promise","resolves"),t.flag(this,"error",l);let d=t.flag(this,"vitest-test"),p=t.flag(this,"object");if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .resolves");if(typeof p?.then!="function")throw new TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof p}'.`);let f=new Proxy(this,{get:(m,y,g)=>{let v=Reflect.get(m,y,g);return typeof v!="function"?v instanceof e.Assertion?f:v:(...b)=>{t.flag(this,"_name",y);let T=p.then(A=>(t.flag(this,"object",A),v.call(this,...b)),A=>{let R=new r(`promise rejected "${t.inspect(A)}" instead of resolving`,{showDiff:!1});throw R.cause=A,R.stack=l.stack.replace(l.message,R.message),R});return fh(d,T,ph(t,this,!!b.length),l)}}});return f}),t.addProperty(e.Assertion.prototype,"rejects",function(){let l=new Error("rejects");t.flag(this,"promise","rejects"),t.flag(this,"error",l);let d=t.flag(this,"vitest-test"),p=t.flag(this,"object"),f=typeof p=="function"?p():p;if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .rejects");if(typeof f?.then!="function")throw new TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof f}'.`);let m=new Proxy(this,{get:(y,g,v)=>{let b=Reflect.get(y,g,v);return typeof b!="function"?b instanceof e.Assertion?m:b:(...T)=>{t.flag(this,"_name",g);let A=f.then(R=>{let P=new r(`promise resolved "${t.inspect(R)}" instead of rejecting`,{showDiff:!0,expected:new Error("rejected promise"),actual:R});throw P.stack=l.stack.replace(l.message,P.message),P},R=>(t.flag(this,"object",R),b.call(this,...T)));return fh(d,A,ph(t,this,!!T.length),l)}}});return m})};function ai(e){let t=e%10,r=e%100;return t===1&&r!==11?`${e}st`:t===2&&r!==12?`${e}nd`:t===3&&r!==13?`${e}rd`:`${e}th`}function tu(e,t,r){return e.mock.calls.length&&(t+=Rt.gray(`
275
-
276
- Received:
277
-
278
- ${e.mock.calls.map((n,o)=>{let i=Rt.bold(` ${ai(o+1)} ${e.getMockName()} call:
279
-
280
- `);return r?i+=bo(r,n,{omitAnnotationLines:!0}):i+=Mt(n).split(`
281
- `).map(a=>` ${a}`).join(`
282
- `),i+=`
283
- `,i}).join(`
284
- `)}`)),t+=Rt.gray(`
285
-
286
- Number of calls: ${Rt.bold(e.mock.calls.length)}
287
- `),t}function sF(e,t,r,n){return t.length&&(r+=Rt.gray(`
288
-
289
- Received:
290
-
291
- ${t.map((o,i)=>{let a=Rt.bold(` ${ai(i+1)} ${e.getMockName()} call return:
292
-
293
- `);return n?a+=bo(n,o.value,{omitAnnotationLines:!0}):a+=Mt(o).split(`
294
- `).map(s=>` ${s}`).join(`
295
- `),a+=`
296
- `,a}).join(`
297
- `)}`)),r+=Rt.gray(`
298
-
299
- Number of calls: ${Rt.bold(e.mock.calls.length)}
300
- `),r}function lF(e,t){let r=e._obj,n=or.flag(e,"negate"),o=or.flag(e,"promise")||"",i={...Bw(),diff:bo,stringify:Mt,iterableEquality:Lt,subsetEquality:Zi};return{state:{...ss(t),customTesters:Pp(),isNot:n,utils:i,promise:o,equals:Me,suppressedErrors:[],soft:or.flag(e,"soft"),poll:or.flag(e,"poll")},isNot:n,obj:r}}var hh=class extends Error{constructor(e,t,r){super(e),this.actual=t,this.expected=r}};function uF(e,t,r){return(n,o)=>{Object.entries(r).forEach(([i,a])=>{function s(...p){let{state:f,isNot:m,obj:y}=lF(this,t),g=a.call(f,y,...p);if(g&&typeof g=="object"&&typeof g.then=="function")return g.then(({pass:R,message:P,actual:E,expected:_})=>{if(R&&m||!R&&!m)throw new hh(P(),E,_)});let{pass:v,message:b,actual:T,expected:A}=g;if(v&&m||!v&&!m)throw new hh(b(),T,A)}let c=zw(o,i,s);o.addMethod(globalThis[xi].matchers,i,c),o.addMethod(e.Assertion.prototype,i,c);class l extends Rr{constructor(f=!1,...m){super(m,f)}asymmetricMatch(f){let{pass:m}=a.call(this.getMatcherContext(t),f,...this.sample);return this.inverse?!m:m}toString(){return`${this.inverse?"not.":""}${i}`}getExpectedType(){return"any"}toAsymmetricMatcher(){return`${this.toString()}<${this.sample.map(f=>Mt(f)).join(", ")}>`}}let d=(...p)=>new l(!1,...p);Object.defineProperty(t,i,{configurable:!0,enumerable:!0,value:d,writable:!0}),Object.defineProperty(t.not,i,{configurable:!0,enumerable:!0,value:(...p)=>new l(!0,...p),writable:!0}),Object.defineProperty(globalThis[uc],i,{configurable:!0,enumerable:!0,value:d,writable:!0})})}}var cF=(e,t)=>{t.addMethod(e.expect,"extend",(r,n)=>{Hn(uF(e,r,n))})};function dF(){Hn(cF),Hn(aF),Hn(iF);let e=((n,o)=>{let{assertionCalls:i}=ss(e);return eu({assertionCalls:i+1,soft:!1},e),bn(n,o)});Object.assign(e,bn),e.getState=()=>ss(e),e.setState=n=>eu(n,e),e.extend=n=>bn.extend(e,n),e.soft=(...n)=>{let o=e(...n);return e.setState({soft:!0}),o},e.extend(kL),e.unreachable=n=>{I.fail(`expected${n?` "${n}" `:" "}not to be reached`)};function t(n){let o=()=>new Error(`expected number of assertions to be ${n}, but got ${e.getState().assertionCalls}`);"captureStackTrace"in Error&&typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(o(),t),e.setState({expectedAssertionsNumber:n,expectedAssertionsNumberErrorGen:o})}function r(){let n=new Error("expected any number of assertion, but got none");"captureStackTrace"in Error&&typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(n,r),e.setState({isExpectingAssertions:!0,isExpectingAssertionsError:n})}return eu({assertionCalls:0,isExpectingAssertions:!1,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null},e),or.addMethod(e,"assertions",t),or.addMethod(e,"hasAssertions",r),e.extend(HE),e}var Gw=dF();Object.defineProperty(globalThis,Rp,{value:Gw,writable:!0,configurable:!0});function pF(e,t,r){Object.defineProperty(e,t,r)}var ja=Symbol.for("tinyspy:spy"),fF=e=>{e.called=!1,e.callCount=0,e.calls=[],e.results=[],e.resolves=[],e.next=[]},mF=e=>(pF(e,ja,{value:{reset:()=>fF(e[ja])}}),e[ja]),hF=e=>e[ja]||mF(e),dc=new Set;function Ww(e){return dc.add(e),()=>void dc.delete(e)}var yF=(...e)=>{let t=ML(...e);return Yw(t)};function Kw(e){let t=e?eh(e):eh();return Yw(t)}function Yw(e){let t=yh(e),r=t.mockImplementation.bind(null);return t.mockImplementation=n=>yh(r(n)),t}function yh(e){let t=hF(e),r=t.impl;return t.willCall(function(...n){return dc.forEach(o=>o(e,n)),r?.apply(this,n)}),e}function Xw(){Qi.forEach(e=>e.mockClear())}function Qw(){Qi.forEach(e=>e.mockReset())}function Zw(){Qi.forEach(e=>e.mockRestore())}function gF(e,t={}){return e}var e_={};Tt(e_,{buildQueries:()=>Pr,configure:()=>P$,createEvent:()=>Da,findAllByAltText:()=>oT,findAllByDisplayValue:()=>Q_,findAllByLabelText:()=>M_,findAllByPlaceholderText:()=>$_,findAllByRole:()=>gT,findAllByTestId:()=>TT,findAllByText:()=>z_,findAllByTitle:()=>cT,findByAltText:()=>iT,findByDisplayValue:()=>Z_,findByLabelText:()=>N_,findByPlaceholderText:()=>B_,findByRole:()=>bT,findByTestId:()=>xT,findByText:()=>G_,findByTitle:()=>dT,fireEvent:()=>Ci,getAllByAltText:()=>rT,getAllByDisplayValue:()=>Y_,getAllByLabelText:()=>I_,getAllByPlaceholderText:()=>L_,getAllByRole:()=>hT,getAllByTestId:()=>wT,getAllByText:()=>J_,getAllByTitle:()=>lT,getByAltText:()=>nT,getByDisplayValue:()=>X_,getByLabelText:()=>k_,getByPlaceholderText:()=>F_,getByRole:()=>yT,getByTestId:()=>_T,getByText:()=>V_,getByTitle:()=>uT,getConfig:()=>Se,getDefaultNormalizer:()=>Dp,getElementError:()=>sl,getMultipleElementsFoundError:()=>ll,getNodeText:()=>ea,getQueriesForElement:()=>wc,getRoles:()=>x_,getSuggestedQuery:()=>us,isInaccessible:()=>al,logDOM:()=>pc,logRoles:()=>j$,makeFindQuery:()=>eo,makeGetAllQuery:()=>$p,makeSingleQuery:()=>Zn,prettyDOM:()=>Oi,prettyFormat:()=>Np,queries:()=>cs,queryAllByAltText:()=>eT,queryAllByAttribute:()=>In,queryAllByDisplayValue:()=>W_,queryAllByLabelText:()=>j_,queryAllByPlaceholderText:()=>q_,queryAllByRole:()=>fT,queryAllByTestId:()=>vT,queryAllByText:()=>U_,queryAllByTitle:()=>aT,queryByAltText:()=>tT,queryByAttribute:()=>A_,queryByDisplayValue:()=>K_,queryByLabelText:()=>C_,queryByPlaceholderText:()=>D_,queryByRole:()=>mT,queryByTestId:()=>ET,queryByText:()=>H_,queryByTitle:()=>sT,queryHelpers:()=>K$,screen:()=>TB,waitFor:()=>Fp,waitForElementToBeRemoved:()=>yB,within:()=>wc,wrapAllByQueryWithSuggestion:()=>wt,wrapSingleQueryWithSuggestion:()=>Gr});var Np=We(OC()),bF=Object.prototype.toString;function vF(e){return typeof e=="function"||bF.call(e)==="[object Function]"}function EF(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}var wF=Math.pow(2,53)-1;function _F(e){var t=EF(e);return Math.min(Math.max(t,0),wF)}function zt(e,t){var r=Array,n=Object(e);if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");for(var o=_F(n.length),i=vF(r)?Object(new r(o)):new Array(o),a=0,s;a<o;)s=n[a],i[a]=s,a+=1;return i.length=o,i}function Si(e){"@babel/helpers - typeof";return Si=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Si(e)}function TF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xF(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,t_(n.key),n)}}function SF(e,t,r){return t&&xF(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function AF(e,t,r){return t=t_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t_(e){var t=OF(e,"string");return Si(t)==="symbol"?t:String(t)}function OF(e,t){if(Si(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Si(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var RF=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];TF(this,e),AF(this,"items",void 0),this.items=t}return SF(e,[{key:"add",value:function(t){return this.has(t)===!1&&this.items.push(t),this}},{key:"clear",value:function(){this.items=[]}},{key:"delete",value:function(t){var r=this.items.length;return this.items=this.items.filter(function(n){return n!==t}),r!==this.items.length}},{key:"forEach",value:function(t){var r=this;this.items.forEach(function(n){t(n,n,r)})}},{key:"has",value:function(t){return this.items.indexOf(t)!==-1}},{key:"size",get:function(){return this.items.length}}]),e})(),CF=typeof Set>"u"?Set:RF;function mt(e){var t;return(t=e.localName)!==null&&t!==void 0?t:e.tagName.toLowerCase()}var PF={article:"article",aside:"complementary",button:"button",datalist:"listbox",dd:"definition",details:"group",dialog:"dialog",dt:"term",fieldset:"group",figure:"figure",form:"form",footer:"contentinfo",h1:"heading",h2:"heading",h3:"heading",h4:"heading",h5:"heading",h6:"heading",header:"banner",hr:"separator",html:"document",legend:"legend",li:"listitem",math:"math",main:"main",menu:"list",nav:"navigation",ol:"list",optgroup:"group",option:"option",output:"status",progress:"progressbar",section:"region",summary:"button",table:"table",tbody:"rowgroup",textarea:"textbox",tfoot:"rowgroup",td:"cell",th:"columnheader",thead:"rowgroup",tr:"row",ul:"list"},MF={caption:new Set(["aria-label","aria-labelledby"]),code:new Set(["aria-label","aria-labelledby"]),deletion:new Set(["aria-label","aria-labelledby"]),emphasis:new Set(["aria-label","aria-labelledby"]),generic:new Set(["aria-label","aria-labelledby","aria-roledescription"]),insertion:new Set(["aria-label","aria-labelledby"]),paragraph:new Set(["aria-label","aria-labelledby"]),presentation:new Set(["aria-label","aria-labelledby"]),strong:new Set(["aria-label","aria-labelledby"]),subscript:new Set(["aria-label","aria-labelledby"]),superscript:new Set(["aria-label","aria-labelledby"])};function NF(e,t){return["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"].some(function(r){var n;return e.hasAttribute(r)&&!((n=MF[t])!==null&&n!==void 0&&n.has(r))})}function r_(e,t){return NF(e,t)}function IF(e){var t=jF(e);if(t===null||t==="presentation"){var r=kF(e);if(t!=="presentation"||r_(e,r||""))return r}return t}function kF(e){var t=PF[mt(e)];if(t!==void 0)return t;switch(mt(e)){case"a":case"area":case"link":if(e.hasAttribute("href"))return"link";break;case"img":return e.getAttribute("alt")===""&&!r_(e,"img")?"presentation":"img";case"input":{var r=e,n=r.type;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 e.hasAttribute("list")?"combobox":"textbox";case"search":return e.hasAttribute("list")?"combobox":"searchbox";case"number":return"spinbutton";default:return null}}case"select":return e.hasAttribute("multiple")||e.size>1?"listbox":"combobox"}return null}function jF(e){var t=e.getAttribute("role");if(t!==null){var r=t.trim().split(" ")[0];if(r.length>0)return r}return null}function Be(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}function n_(e){return Be(e)&&mt(e)==="caption"}function qa(e){return Be(e)&&mt(e)==="input"}function qF(e){return Be(e)&&mt(e)==="optgroup"}function DF(e){return Be(e)&&mt(e)==="select"}function LF(e){return Be(e)&&mt(e)==="table"}function FF(e){return Be(e)&&mt(e)==="textarea"}function $F(e){var t=e.ownerDocument===null?e:e.ownerDocument,r=t.defaultView;if(r===null)throw new TypeError("no window available");return r}function BF(e){return Be(e)&&mt(e)==="fieldset"}function UF(e){return Be(e)&&mt(e)==="legend"}function HF(e){return Be(e)&&mt(e)==="slot"}function JF(e){return Be(e)&&e.ownerSVGElement!==void 0}function VF(e){return Be(e)&&mt(e)==="svg"}function zF(e){return JF(e)&&mt(e)==="title"}function ls(e,t){if(Be(e)&&e.hasAttribute(t)){var r=e.getAttribute(t).split(" "),n=e.getRootNode?e.getRootNode():e.ownerDocument;return r.map(function(o){return n.getElementById(o)}).filter(function(o){return o!==null})}return[]}function vr(e,t){return Be(e)?t.indexOf(IF(e))!==-1:!1}function GF(e){return e.trim().replace(/\s\s+/g," ")}function WF(e,t){if(!Be(e))return!1;if(e.hasAttribute("hidden")||e.getAttribute("aria-hidden")==="true")return!0;var r=t(e);return r.getPropertyValue("display")==="none"||r.getPropertyValue("visibility")==="hidden"}function KF(e){return vr(e,["button","combobox","listbox","textbox"])||o_(e,"range")}function o_(e,t){if(!Be(e))return!1;switch(t){case"range":return vr(e,["meter","progressbar","scrollbar","slider","spinbutton"]);default:throw new TypeError("No knowledge about abstract role '".concat(t,"'. This is likely a bug :("))}}function gh(e,t){var r=zt(e.querySelectorAll(t));return ls(e,"aria-owns").forEach(function(n){r.push.apply(r,zt(n.querySelectorAll(t)))}),r}function YF(e){return DF(e)?e.selectedOptions||gh(e,"[selected]"):gh(e,'[aria-selected="true"]')}function XF(e){return vr(e,["none","presentation"])}function QF(e){return n_(e)}function ZF(e){return vr(e,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}function e$(e){return!1}function t$(e){return qa(e)||FF(e)?e.value:e.textContent||""}function bh(e){var t=e.getPropertyValue("content");return/^["'].*["']$/.test(t)?t.slice(1,-1):""}function i_(e){var t=mt(e);return t==="button"||t==="input"&&e.getAttribute("type")!=="hidden"||t==="meter"||t==="output"||t==="progress"||t==="select"||t==="textarea"}function a_(e){if(i_(e))return e;var t=null;return e.childNodes.forEach(function(r){if(t===null&&Be(r)){var n=a_(r);n!==null&&(t=n)}}),t}function r$(e){if(e.control!==void 0)return e.control;var t=e.getAttribute("for");return t!==null?e.ownerDocument.getElementById(t):a_(e)}function n$(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return zt(t);if(!i_(e))return null;var r=e.ownerDocument;return zt(r.querySelectorAll("label")).filter(function(n){return r$(n)===e})}function o$(e){var t=e.assignedNodes();return t.length===0?zt(e.childNodes):t}function s_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new CF,n=$F(e),o=t.compute,i=o===void 0?"name":o,a=t.computedStyleSupportsPseudoElements,s=a===void 0?t.getComputedStyle!==void 0:a,c=t.getComputedStyle,l=c===void 0?n.getComputedStyle.bind(n):c,d=t.hidden,p=d===void 0?!1:d;function f(b,T){var A="";if(Be(b)&&s){var R=l(b,"::before"),P=bh(R);A="".concat(P," ").concat(A)}var E=HF(b)?o$(b):zt(b.childNodes).concat(ls(b,"aria-owns"));if(E.forEach(function(S){var F=v(S,{isEmbeddedInLabel:T.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),j=Be(S)?l(S).getPropertyValue("display"):"inline",J=j!=="inline"?" ":"";A+="".concat(J).concat(F).concat(J)}),Be(b)&&s){var _=l(b,"::after"),x=bh(_);A="".concat(A," ").concat(x)}return A.trim()}function m(b,T){var A=b.getAttributeNode(T);return A!==null&&!r.has(A)&&A.value.trim()!==""?(r.add(A),A.value):null}function y(b){return Be(b)?m(b,"title"):null}function g(b){if(!Be(b))return null;if(BF(b)){r.add(b);for(var T=zt(b.childNodes),A=0;A<T.length;A+=1){var R=T[A];if(UF(R))return v(R,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(LF(b)){r.add(b);for(var P=zt(b.childNodes),E=0;E<P.length;E+=1){var _=P[E];if(n_(_))return v(_,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(VF(b)){r.add(b);for(var x=zt(b.childNodes),S=0;S<x.length;S+=1){var F=x[S];if(zF(F))return F.textContent}return null}else if(mt(b)==="img"||mt(b)==="area"){var j=m(b,"alt");if(j!==null)return j}else if(qF(b)){var J=m(b,"label");if(J!==null)return J}if(qa(b)&&(b.type==="button"||b.type==="submit"||b.type==="reset")){var N=m(b,"value");if(N!==null)return N;if(b.type==="submit")return"Submit";if(b.type==="reset")return"Reset"}var O=n$(b);if(O!==null&&O.length!==0)return r.add(b),zt(O).map(function(Y){return v(Y,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(Y){return Y.length>0}).join(" ");if(qa(b)&&b.type==="image"){var q=m(b,"alt");if(q!==null)return q;var $=m(b,"title");return $!==null?$:"Submit Query"}if(vr(b,["button"])){var V=f(b,{isEmbeddedInLabel:!1});if(V!=="")return V}return null}function v(b,T){if(r.has(b))return"";if(!p&&WF(b,l)&&!T.isReferenced)return r.add(b),"";var A=Be(b)?b.getAttributeNode("aria-labelledby"):null,R=A!==null&&!r.has(A)?ls(b,"aria-labelledby"):[];if(i==="name"&&!T.isReferenced&&R.length>0)return r.add(A),R.map(function(j){return v(j,{isEmbeddedInLabel:T.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var P=T.recursion&&KF(b)&&i==="name";if(!P){var E=(Be(b)&&b.getAttribute("aria-label")||"").trim();if(E!==""&&i==="name")return r.add(b),E;if(!XF(b)){var _=g(b);if(_!==null)return r.add(b),_}}if(vr(b,["menu"]))return r.add(b),"";if(P||T.isEmbeddedInLabel||T.isReferenced){if(vr(b,["combobox","listbox"])){r.add(b);var x=YF(b);return x.length===0?qa(b)?b.value:"":zt(x).map(function(j){return v(j,{isEmbeddedInLabel:T.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(o_(b,"range"))return r.add(b),b.hasAttribute("aria-valuetext")?b.getAttribute("aria-valuetext"):b.hasAttribute("aria-valuenow")?b.getAttribute("aria-valuenow"):b.getAttribute("value")||"";if(vr(b,["textbox"]))return r.add(b),t$(b)}if(ZF(b)||Be(b)&&T.isReferenced||QF(b)||e$()){var S=f(b,{isEmbeddedInLabel:T.isEmbeddedInLabel});if(S!=="")return r.add(b),S}if(b.nodeType===b.TEXT_NODE)return r.add(b),b.textContent||"";if(T.recursion)return r.add(b),f(b,{isEmbeddedInLabel:T.isEmbeddedInLabel});var F=y(b);return F!==null?(r.add(b),F):(r.add(b),"")}return GF(v(e,{isEmbeddedInLabel:!1,isReferenced:i==="description",recursion:!1}))}function Ai(e){"@babel/helpers - typeof";return Ai=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ai(e)}function vh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Eh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vh(Object(r),!0).forEach(function(n){i$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function i$(e,t,r){return t=a$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a$(e){var t=s$(e,"string");return Ai(t)==="symbol"?t:String(t)}function s$(e,t){if(Ai(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ai(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function l_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=ls(e,"aria-describedby").map(function(o){return s_(o,Eh(Eh({},t),{},{compute:"description"}))}).join(" ");if(r===""){var n=e.getAttribute("title");r=n===null?"":n}return r}function l$(e){return vr(e,["caption","code","deletion","emphasis","generic","insertion","paragraph","presentation","strong","subscript","superscript"])}function Ip(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return l$(e)?"":s_(e,t)}var Dt=We(ed()),u$=We(RC());function u_(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}var c$=(e,t,r,n,o,i,a)=>{let s=n+r.indent,c=r.colors;return e.map(l=>{let d=t[l],p=a(d,r,s,o,i);return typeof d!="string"&&(p.indexOf(`
301
- `)!==-1&&(p=r.spacingOuter+s+p+r.spacingOuter+n),p="{"+p+"}"),r.spacingInner+n+c.prop.open+l+c.prop.close+"="+c.value.open+p+c.value.close}).join("")},d$=3,p$=(e,t,r,n,o,i)=>e.map(a=>{let s=typeof a=="string"?c_(a,t):i(a,t,r,n,o);return s===""&&typeof a=="object"&&a!==null&&a.nodeType!==d$?"":t.spacingOuter+r+s}).join(""),c_=(e,t)=>{let r=t.colors.content;return r.open+u_(e)+r.close},f$=(e,t)=>{let r=t.colors.comment;return r.open+"<!--"+u_(e)+"-->"+r.close},m$=(e,t,r,n,o)=>{let i=n.colors.tag;return i.open+"<"+e+(t&&i.close+t+n.spacingOuter+o+i.open)+(r?">"+i.close+r+n.spacingOuter+o+i.open+"</"+e:(t&&!n.min?"":" ")+"/")+">"+i.close},h$=(e,t)=>{let r=t.colors.tag;return r.open+"<"+e+r.close+" …"+r.open+" />"+r.close},y$=1,d_=3,p_=8,f_=11,g$=/^((HTML|SVG)\w*)?Element$/,m_=e=>{let{tagName:t}=e;return!!(typeof t=="string"&&t.includes("-")||typeof e.hasAttribute=="function"&&e.hasAttribute("is"))},b$=e=>{let t=e.constructor.name,{nodeType:r}=e;return r===y$&&(g$.test(t)||m_(e))||r===d_&&t==="Text"||r===p_&&t==="Comment"||r===f_&&t==="DocumentFragment"};function v$(e){return e.nodeType===d_}function E$(e){return e.nodeType===p_}function ru(e){return e.nodeType===f_}function w$(e){return{test:t=>{var r;return((t==null||(r=t.constructor)==null?void 0:r.name)||m_(t))&&b$(t)},serialize:(t,r,n,o,i,a)=>{if(v$(t))return c_(t.data,r);if(E$(t))return f$(t.data,r);let s=ru(t)?"DocumentFragment":t.tagName.toLowerCase();return++o>r.maxDepth?h$(s,r):m$(s,c$(ru(t)?[]:Array.from(t.attributes).map(c=>c.name).sort(),ru(t)?{}:Array.from(t.attributes).reduce((c,l)=>(c[l.name]=l.value,c),{}),r,n+r.indent,o,i,a),p$(Array.prototype.slice.call(t.childNodes||t.children).filter(e),r,n+r.indent,o,i,a),r,n)}}}var h_=null,kp=null,jp=null;try{let e=module&&module.require;kp=e.call(module,"fs").readFileSync,jp=e.call(module,"@babel/code-frame").codeFrameColumns,h_=e.call(module,"picocolors")}catch{}function _$(e){let t=e.indexOf("(")+1,r=e.indexOf(")"),n=e.slice(t,r),o=n.split(":"),[i,a,s]=[o[0],parseInt(o[1],10),parseInt(o[2],10)],c="";try{c=kp(i,"utf-8")}catch{return""}let l=jp(c,{start:{line:a,column:s}},{highlightCode:!0,linesBelow:0});return h_.dim(n)+`
302
- `+l+`
303
- `}function T$(){if(!kp||!jp)return"";let e=new Error().stack.split(`
304
- `).slice(1).find(t=>!t.includes("node_modules/"));return _$(e)}var y_=3;function nu(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}function qp(){if(typeof window>"u")throw new Error("Could not find default container");return window.document}function g_(e){if(e.defaultView)return e.defaultView;if(e.ownerDocument&&e.ownerDocument.defaultView)return e.ownerDocument.defaultView;if(e.window)return e.window;throw e.ownerDocument&&e.ownerDocument.defaultView===null?new Error("It looks like the window object is not available for the provided node."):e.then instanceof Function?new Error("It looks like you passed a Promise object instead of a DOM node. Did you do something like `fireEvent.click(screen.findBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`, or await the findBy query `fireEvent.click(await screen.findBy...`?"):Array.isArray(e)?new Error("It looks like you passed an Array instead of a DOM node. Did you do something like `fireEvent.click(screen.getAllBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`?"):typeof e.debug=="function"&&typeof e.logTestingPlaygroundURL=="function"?new Error("It looks like you passed a `screen` object. Did you do something like `fireEvent.click(screen, ...` when you meant to use a query, e.g. `fireEvent.click(screen.getBy..., `?"):new Error("The given node is not an Element, the node type is: "+typeof e+".")}function Cr(e){if(!e||typeof e.querySelector!="function"||typeof e.querySelectorAll!="function")throw new TypeError("Expected container to be an Element, a Document or a DocumentFragment but got "+t(e)+".");function t(r){return typeof r=="object"?r===null?"null":r.constructor.name:typeof r}}var x$=()=>{if(typeof process>"u")return!1;let e;try{var t;let r=(t=Ou)==null?void 0:t.COLORS;r&&(e=JSON.parse(r))}catch{}return typeof e=="boolean"?e:process.versions!==void 0&&process.versions.node!==void 0},{DOMCollection:S$}=Np.plugins,A$=1,O$=8;function R$(e){return e.nodeType!==O$&&(e.nodeType!==A$||!e.matches(Se().defaultIgnore))}function Oi(e,t,r){if(r===void 0&&(r={}),e||(e=qp().body),typeof t!="number"&&(t=typeof process<"u"&&typeof Ou<"u"&&Ou.DEBUG_PRINT_LIMIT||7e3),t===0)return"";e.documentElement&&(e=e.documentElement);let n=typeof e;if(n==="object"?n=e.constructor.name:e={},!("outerHTML"in e))throw new TypeError("Expected an element or document but got "+n);let{filterNode:o=R$,...i}=r,a=Np.format(e,{plugins:[w$(o),S$],printFunctionName:!1,highlight:x$(),...i});return t!==void 0&&e.outerHTML.length>t?a.slice(0,t)+"...":a}var pc=function(){let e=T$();console.log(e?Oi(...arguments)+`
305
-
306
- `+e:Oi(...arguments))},vn={testIdAttribute:"data-testid",asyncUtilTimeout:1e3,asyncWrapper:e=>e(),unstable_advanceTimersWrapper:e=>e(),eventWrapper:e=>e(),defaultHidden:!1,defaultIgnore:"script, style",showOriginalStackTrace:!1,throwSuggestions:!1,getElementError(e,t){let r=Oi(t),n=new Error([e,"Ignored nodes: comments, "+vn.defaultIgnore+`
307
- `+r].filter(Boolean).join(`
308
-
309
- `));return n.name="TestingLibraryElementError",n},_disableExpensiveErrorDiagnostics:!1,computedStyleSupportsPseudoElements:!1};function C$(e){try{return vn._disableExpensiveErrorDiagnostics=!0,e()}finally{vn._disableExpensiveErrorDiagnostics=!1}}function P$(e){typeof e=="function"&&(e=e(vn)),vn={...vn,...e}}function Se(){return vn}var M$=["button","meter","output","progress","select","textarea","input"];function b_(e){return M$.includes(e.nodeName.toLowerCase())?"":e.nodeType===y_?e.textContent:Array.from(e.childNodes).map(t=>b_(t)).join("")}function fc(e){let t;return e.tagName.toLowerCase()==="label"?t=b_(e):t=e.value||e.textContent,t}function v_(e){if(e.labels!==void 0){var t;return(t=e.labels)!=null?t:[]}if(!N$(e))return[];let r=e.ownerDocument.querySelectorAll("label");return Array.from(r).filter(n=>n.control===e)}function N$(e){return/BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(e.tagName)||e.tagName==="INPUT"&&e.getAttribute("type")!=="hidden"}function E_(e,t,r){let{selector:n="*"}=r===void 0?{}:r,o=t.getAttribute("aria-labelledby"),i=o?o.split(" "):[];return i.length?i.map(a=>{let s=e.querySelector('[id="'+a+'"]');return s?{content:fc(s),formControl:null}:{content:"",formControl:null}}):Array.from(v_(t)).map(a=>{let s=fc(a),c=Array.from(a.querySelectorAll("button, input, meter, output, progress, select, textarea")).filter(l=>l.matches(n))[0];return{content:s,formControl:c}})}function w_(e){if(e==null)throw new Error("It looks like "+e+" was passed instead of a matcher. Did you do something like getByText("+e+")?")}function Eo(e,t,r,n){if(typeof e!="string")return!1;w_(r);let o=n(e);return typeof r=="string"||typeof r=="number"?o.toLowerCase().includes(r.toString().toLowerCase()):typeof r=="function"?r(o,t):__(r,o)}function xr(e,t,r,n){if(typeof e!="string")return!1;w_(r);let o=n(e);return r instanceof Function?r(o,t):r instanceof RegExp?__(r,o):o===String(r)}function Dp(e){let{trim:t=!0,collapseWhitespace:r=!0}=e===void 0?{}:e;return n=>{let o=n;return o=t?o.trim():o,o=r?o.replace(/\s+/g," "):o,o}}function Nn(e){let{trim:t,collapseWhitespace:r,normalizer:n}=e;if(!n)return Dp({trim:t,collapseWhitespace:r});if(typeof t<"u"||typeof r<"u")throw new Error('trim and collapseWhitespace are not supported with a normalizer. If you want to use the default trim and collapseWhitespace logic in your normalizer, use "getDefaultNormalizer({trim, collapseWhitespace})" and compose that into your normalizer');return n}function __(e,t){let r=e.test(t);return e.global&&e.lastIndex!==0&&(console.warn("To match all elements we had to reset the lastIndex of the RegExp because the global flag is enabled. We encourage to remove the global flag from the RegExp."),e.lastIndex=0),r}function ea(e){return e.matches("input[type=submit], input[type=button], input[type=reset]")?e.value:Array.from(e.childNodes).filter(t=>t.nodeType===y_&&!!t.textContent).map(t=>t.textContent).join("")}var I$=k$(Dt.elementRoles);function T_(e){return e.hidden===!0||e.getAttribute("aria-hidden")==="true"||e.ownerDocument.defaultView.getComputedStyle(e).display==="none"}function al(e,t){t===void 0&&(t={});let{isSubtreeInaccessible:r=T_}=t;if(e.ownerDocument.defaultView.getComputedStyle(e).visibility==="hidden")return!0;let n=e;for(;n;){if(r(n))return!0;n=n.parentElement}return!1}function Lp(e){for(let{match:t,roles:r}of I$)if(t(e))return[...r];return[]}function k$(e){function t(a){let{name:s,attributes:c}=a;return""+s+c.map(l=>{let{name:d,value:p,constraints:f=[]}=l,m=f.indexOf("undefined")!==-1,y=f.indexOf("set")!==-1;return typeof p<"u"?"["+d+'="'+p+'"]':m?":not(["+d+"])":y?"["+d+"]:not(["+d+'=""])':"["+d+"]"}).join("")}function r(a){let{attributes:s=[]}=a;return s.length}function n(a,s){let{specificity:c}=a,{specificity:l}=s;return l-c}function o(a){let{attributes:s=[]}=a,c=s.findIndex(d=>d.value&&d.name==="type"&&d.value==="text");c>=0&&(s=[...s.slice(0,c),...s.slice(c+1)]);let l=t({...a,attributes:s});return d=>c>=0&&d.type!=="text"?!1:d.matches(l)}let i=[];for(let[a,s]of e.entries())i=[...i,{match:o(a),roles:Array.from(s),specificity:r(a)}];return i.sort(n)}function x_(e,t){let{hidden:r=!1}=t===void 0?{}:t;function n(o){return[o,...Array.from(o.children).reduce((i,a)=>[...i,...n(a)],[])]}return n(e).filter(o=>r===!1?al(o)===!1:!0).reduce((o,i)=>{let a=[];return i.hasAttribute("role")?a=i.getAttribute("role").split(" ").slice(0,1):a=Lp(i),a.reduce((s,c)=>Array.isArray(s[c])?{...s,[c]:[...s[c],i]}:{...s,[c]:[i]},o)},{})}function S_(e,t){let{hidden:r,includeDescription:n}=t,o=x_(e,{hidden:r});return Object.entries(o).filter(i=>{let[a]=i;return a!=="generic"}).map(i=>{let[a,s]=i,c="-".repeat(50),l=s.map(d=>{let p='Name "'+Ip(d,{computedStyleSupportsPseudoElements:Se().computedStyleSupportsPseudoElements})+`":
310
- `,f=Oi(d.cloneNode(!1));if(n){let m='Description "'+l_(d,{computedStyleSupportsPseudoElements:Se().computedStyleSupportsPseudoElements})+`":
311
- `;return""+p+m+f}return""+p+f}).join(`
312
-
313
- `);return a+`:
314
-
315
- `+l+`
316
-
317
- `+c}).join(`
318
- `)}var j$=function(e,t){let{hidden:r=!1}=t===void 0?{}:t;return console.log(S_(e,{hidden:r}))};function q$(e){return e.tagName==="OPTION"?e.selected:ta(e,"aria-selected")}function D$(e){return e.getAttribute("aria-busy")==="true"}function L$(e){if(!("indeterminate"in e&&e.indeterminate))return"checked"in e?e.checked:ta(e,"aria-checked")}function F$(e){return ta(e,"aria-pressed")}function $$(e){var t,r;return(t=(r=ta(e,"aria-current"))!=null?r:e.getAttribute("aria-current"))!=null?t:!1}function B$(e){return ta(e,"aria-expanded")}function ta(e,t){let r=e.getAttribute(t);if(r==="true")return!0;if(r==="false")return!1}function U$(e){let t={H1:1,H2:2,H3:3,H4:4,H5:5,H6:6};return e.getAttribute("aria-level")&&Number(e.getAttribute("aria-level"))||t[e.tagName]}function H$(e){let t=e.getAttribute("aria-valuenow");return t===null?void 0:+t}function J$(e){let t=e.getAttribute("aria-valuemax");return t===null?void 0:+t}function V$(e){let t=e.getAttribute("aria-valuemin");return t===null?void 0:+t}function z$(e){let t=e.getAttribute("aria-valuetext");return t===null?void 0:t}var wh=Dp();function G$(e){return e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&")}function _h(e){return new RegExp(G$(e.toLowerCase()),"i")}function Nr(e,t,r,n){let{variant:o,name:i}=n,a="",s={},c=[["Role","TestId"].includes(e)?r:_h(r)];i&&(s.name=_h(i)),e==="Role"&&al(t)&&(s.hidden=!0,a=`Element is inaccessible. This means that the element and all its children are invisible to screen readers.
319
- If you are using the aria-hidden prop, make sure this is the right choice for your case.
320
- `),Object.keys(s).length>0&&c.push(s);let l=o+"By"+e;return{queryName:e,queryMethod:l,queryArgs:c,variant:o,warning:a,toString(){a&&console.warn(a);let[d,p]=c;return d=typeof d=="string"?"'"+d+"'":d,p=p?", { "+Object.entries(p).map(f=>{let[m,y]=f;return m+": "+y}).join(", ")+" }":"",l+"("+d+p+")"}}}function Ir(e,t,r){return r&&(!t||t.toLowerCase()===e.toLowerCase())}function us(e,t,r){var n,o;if(t===void 0&&(t="get"),e.matches(Se().defaultIgnore))return;let i=(n=e.getAttribute("role"))!=null?n:(o=Lp(e))==null?void 0:o[0];if(i!=="generic"&&Ir("Role",r,i))return Nr("Role",e,i,{variant:t,name:Ip(e,{computedStyleSupportsPseudoElements:Se().computedStyleSupportsPseudoElements})});let a=E_(document,e).map(f=>f.content).join(" ");if(Ir("LabelText",r,a))return Nr("LabelText",e,a,{variant:t});let s=e.getAttribute("placeholder");if(Ir("PlaceholderText",r,s))return Nr("PlaceholderText",e,s,{variant:t});let c=wh(ea(e));if(Ir("Text",r,c))return Nr("Text",e,c,{variant:t});if(Ir("DisplayValue",r,e.value))return Nr("DisplayValue",e,wh(e.value),{variant:t});let l=e.getAttribute("alt");if(Ir("AltText",r,l))return Nr("AltText",e,l,{variant:t});let d=e.getAttribute("title");if(Ir("Title",r,d))return Nr("Title",e,d,{variant:t});let p=e.getAttribute(Se().testIdAttribute);if(Ir("TestId",r,p))return Nr("TestId",e,p,{variant:t})}function ya(e,t){e.stack=t.stack.replace(t.message,e.message)}function W$(e,t){let{container:r=qp(),timeout:n=Se().asyncUtilTimeout,showOriginalStackTrace:o=Se().showOriginalStackTrace,stackTraceError:i,interval:a=50,onTimeout:s=l=>(Object.defineProperty(l,"message",{value:Se().getElementError(l.message,r).message}),l),mutationObserverOptions:c={subtree:!0,childList:!0,attributes:!0,characterData:!0}}=t;if(typeof e!="function")throw new TypeError("Received `callback` arg must be a function");return new Promise(async(l,d)=>{let p,f,m,y=!1,g="idle",v=setTimeout(P,n),b=nu();if(b){let{unstable_advanceTimersWrapper:E}=Se();for(R();!y;){if(!nu()){let _=new Error("Changed from using fake timers to real timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to real timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");o||ya(_,i),d(_);return}if(await E(async()=>{jest.advanceTimersByTime(a)}),y)break;R()}}else{try{Cr(r)}catch(_){d(_);return}f=setInterval(A,a);let{MutationObserver:E}=g_(r);m=new E(A),m.observe(r,c),R()}function T(E,_){y=!0,clearTimeout(v),b||(clearInterval(f),m.disconnect()),E?d(E):l(_)}function A(){if(nu()){let E=new Error("Changed from using real timers to fake timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to fake timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");return o||ya(E,i),d(E)}else return R()}function R(){if(g!=="pending")try{let E=C$(e);typeof E?.then=="function"?(g="pending",E.then(_=>{g="resolved",T(null,_)},_=>{g="rejected",p=_})):T(null,E)}catch(E){p=E}}function P(){let E;p?(E=p,!o&&E.name==="TestingLibraryElementError"&&ya(E,i)):(E=new Error("Timed out in waitFor."),o||ya(E,i)),T(s(E),null)}})}function Fp(e,t){let r=new Error("STACK_TRACE_MESSAGE");return Se().asyncWrapper(()=>W$(e,{stackTraceError:r,...t}))}function sl(e,t){return Se().getElementError(e,t)}function ll(e,t){return sl(e+"\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).",t)}function In(e,t,r,n){let{exact:o=!0,collapseWhitespace:i,trim:a,normalizer:s}=n===void 0?{}:n,c=o?xr:Eo,l=Nn({collapseWhitespace:i,trim:a,normalizer:s});return Array.from(t.querySelectorAll("["+e+"]")).filter(d=>c(d.getAttribute(e),d,r,l))}function A_(e,t,r,n){let o=In(e,t,r,n);if(o.length>1)throw ll("Found multiple elements by ["+e+"="+r+"]",t);return o[0]||null}function Zn(e,t){return function(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];let a=e(r,...o);if(a.length>1){let s=a.map(c=>sl(null,c).message).join(`
321
-
322
- `);throw ll(t(r,...o)+`
323
-
324
- Here are the matching elements:
325
-
326
- `+s,r)}return a[0]||null}}function O_(e,t){return Se().getElementError(`A better query is available, try this:
327
- `+e.toString()+`
328
- `,t)}function $p(e,t){return function(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];let a=e(r,...o);if(!a.length)throw Se().getElementError(t(r,...o),r);return a}}function eo(e){return(t,r,n,o)=>Fp(()=>e(t,r,n),{container:t,...o})}var Gr=(e,t,r)=>function(n){for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];let s=e(n,...i),[{suggest:c=Se().throwSuggestions}={}]=i.slice(-1);if(s&&c){let l=us(s,r);if(l&&!t.endsWith(l.queryName))throw O_(l.toString(),n)}return s},wt=(e,t,r)=>function(n){for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];let s=e(n,...i),[{suggest:c=Se().throwSuggestions}={}]=i.slice(-1);if(s.length&&c){let l=[...new Set(s.map(d=>{var p;return(p=us(d,r))==null?void 0:p.toString()}))];if(l.length===1&&!t.endsWith(us(s[0],r).queryName))throw O_(l[0],n)}return s};function Pr(e,t,r){let n=Gr(Zn(e,t),e.name,"query"),o=$p(e,r),i=Zn(o,t),a=Gr(i,e.name,"get"),s=wt(o,e.name.replace("query","get"),"getAll"),c=eo(wt(o,e.name,"findAll")),l=eo(Gr(i,e.name,"find"));return[n,s,a,c,l]}var K$=Object.freeze({__proto__:null,getElementError:sl,wrapAllByQueryWithSuggestion:wt,wrapSingleQueryWithSuggestion:Gr,getMultipleElementsFoundError:ll,queryAllByAttribute:In,queryByAttribute:A_,makeSingleQuery:Zn,makeGetAllQuery:$p,makeFindQuery:eo,buildQueries:Pr});function Y$(e){return Array.from(e.querySelectorAll("label,input")).map(t=>({node:t,textToMatch:fc(t)})).filter(t=>{let{textToMatch:r}=t;return r!==null})}var X$=function(e,t,r){let{exact:n=!0,trim:o,collapseWhitespace:i,normalizer:a}=r===void 0?{}:r,s=n?xr:Eo,c=Nn({collapseWhitespace:i,trim:o,normalizer:a});return Y$(e).filter(l=>{let{node:d,textToMatch:p}=l;return s(p,d,t,c)}).map(l=>{let{node:d}=l;return d})},Ri=function(e,t,r){let{selector:n="*",exact:o=!0,collapseWhitespace:i,trim:a,normalizer:s}=r===void 0?{}:r;Cr(e);let c=o?xr:Eo,l=Nn({collapseWhitespace:i,trim:a,normalizer:s}),d=Array.from(e.querySelectorAll("*")).filter(p=>v_(p).length||p.hasAttribute("aria-labelledby")).reduce((p,f)=>{let m=E_(e,f,{selector:n});m.filter(g=>!!g.formControl).forEach(g=>{c(g.content,g.formControl,t,l)&&g.formControl&&p.push(g.formControl)});let y=m.filter(g=>!!g.content).map(g=>g.content);return c(y.join(" "),f,t,l)&&p.push(f),y.length>1&&y.forEach((g,v)=>{c(g,f,t,l)&&p.push(f);let b=[...y];b.splice(v,1),b.length>1&&c(b.join(" "),f,t,l)&&p.push(f)}),p},[]).concat(In("aria-label",e,t,{exact:o,normalizer:l}));return Array.from(new Set(d)).filter(p=>p.matches(n))},xn=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];let i=Ri(e,t,...n);if(!i.length){let a=X$(e,t,...n);if(a.length){let s=a.map(c=>Q$(e,c)).filter(c=>!!c);throw s.length?Se().getElementError(s.map(c=>"Found a label with the text of: "+t+", however the element associated with this label (<"+c+" />) is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a <"+c+" />, you can use aria-label or aria-labelledby instead.").join(`
329
-
330
- `),e):Se().getElementError("Found a label with the text of: "+t+`, however no form control was found associated to that label. Make sure you're using the "for" attribute or "aria-labelledby" attribute correctly.`,e)}else throw Se().getElementError("Unable to find a label with the text of: "+t,e)}return i};function Q$(e,t){let r=t.getAttribute("for");if(!r)return null;let n=e.querySelector('[id="'+r+'"]');return n?n.tagName.toLowerCase():null}var R_=(e,t)=>"Found multiple elements with the text of: "+t,C_=Gr(Zn(Ri,R_),Ri.name,"query"),P_=Zn(xn,R_),M_=eo(wt(xn,xn.name,"findAll")),N_=eo(Gr(P_,xn.name,"find")),I_=wt(xn,xn.name,"getAll"),k_=Gr(P_,xn.name,"get"),j_=wt(Ri,Ri.name,"queryAll"),mc=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Cr(t[0]),In("placeholder",...t)},Z$=(e,t)=>"Found multiple elements with the placeholder text of: "+t,eB=(e,t)=>"Unable to find an element with the placeholder text of: "+t,q_=wt(mc,mc.name,"queryAll"),[D_,L_,F_,$_,B_]=Pr(mc,Z$,eB),hc=function(e,t,r){let{selector:n="*",exact:o=!0,collapseWhitespace:i,trim:a,ignore:s=Se().defaultIgnore,normalizer:c}=r===void 0?{}:r;Cr(e);let l=o?xr:Eo,d=Nn({collapseWhitespace:i,trim:a,normalizer:c}),p=[];return typeof e.matches=="function"&&e.matches(n)&&(p=[e]),[...p,...Array.from(e.querySelectorAll(n))].filter(f=>!s||!f.matches(s)).filter(f=>l(ea(f),f,t,d))},tB=(e,t)=>"Found multiple elements with the text: "+t,rB=function(e,t,r){r===void 0&&(r={});let{collapseWhitespace:n,trim:o,normalizer:i,selector:a}=r,s=Nn({collapseWhitespace:n,trim:o,normalizer:i})(t.toString()),c=s!==t.toString(),l=(a??"*")!=="*";return"Unable to find an element with the text: "+(c?s+" (normalized from '"+t+"')":t)+(l?", which matches selector '"+a+"'":"")+". This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible."},U_=wt(hc,hc.name,"queryAll"),[H_,J_,V_,z_,G_]=Pr(hc,tB,rB),yc=function(e,t,r){let{exact:n=!0,collapseWhitespace:o,trim:i,normalizer:a}=r===void 0?{}:r;Cr(e);let s=n?xr:Eo,c=Nn({collapseWhitespace:o,trim:i,normalizer:a});return Array.from(e.querySelectorAll("input,textarea,select")).filter(l=>l.tagName==="SELECT"?Array.from(l.options).filter(d=>d.selected).some(d=>s(ea(d),d,t,c)):s(l.value,l,t,c))},nB=(e,t)=>"Found multiple elements with the display value: "+t+".",oB=(e,t)=>"Unable to find an element with the display value: "+t+".",W_=wt(yc,yc.name,"queryAll"),[K_,Y_,X_,Q_,Z_]=Pr(yc,nB,oB),iB=/^(img|input|area|.+-.+)$/i,gc=function(e,t,r){return r===void 0&&(r={}),Cr(e),In("alt",e,t,r).filter(n=>iB.test(n.tagName))},aB=(e,t)=>"Found multiple elements with the alt text: "+t,sB=(e,t)=>"Unable to find an element with the alt text: "+t,eT=wt(gc,gc.name,"queryAll"),[tT,rT,nT,oT,iT]=Pr(gc,aB,sB),lB=e=>{var t;return e.tagName.toLowerCase()==="title"&&((t=e.parentElement)==null?void 0:t.tagName.toLowerCase())==="svg"},bc=function(e,t,r){let{exact:n=!0,collapseWhitespace:o,trim:i,normalizer:a}=r===void 0?{}:r;Cr(e);let s=n?xr:Eo,c=Nn({collapseWhitespace:o,trim:i,normalizer:a});return Array.from(e.querySelectorAll("[title], svg > title")).filter(l=>s(l.getAttribute("title"),l,t,c)||lB(l)&&s(ea(l),l,t,c))},uB=(e,t)=>"Found multiple elements with the title: "+t+".",cB=(e,t)=>"Unable to find an element with the title: "+t+".",aT=wt(bc,bc.name,"queryAll"),[sT,lT,uT,cT,dT]=Pr(bc,uB,cB),vc=function(e,t,r){let{hidden:n=Se().defaultHidden,name:o,description:i,queryFallbacks:a=!1,selected:s,busy:c,checked:l,pressed:d,current:p,level:f,expanded:m,value:{now:y,min:g,max:v,text:b}={}}=r===void 0?{}:r;if(Cr(e),s!==void 0){var T;if(((T=Dt.roles.get(t))==null?void 0:T.props["aria-selected"])===void 0)throw new Error('"aria-selected" is not supported on role "'+t+'".')}if(c!==void 0){var A;if(((A=Dt.roles.get(t))==null?void 0:A.props["aria-busy"])===void 0)throw new Error('"aria-busy" is not supported on role "'+t+'".')}if(l!==void 0){var R;if(((R=Dt.roles.get(t))==null?void 0:R.props["aria-checked"])===void 0)throw new Error('"aria-checked" is not supported on role "'+t+'".')}if(d!==void 0){var P;if(((P=Dt.roles.get(t))==null?void 0:P.props["aria-pressed"])===void 0)throw new Error('"aria-pressed" is not supported on role "'+t+'".')}if(p!==void 0){var E;if(((E=Dt.roles.get(t))==null?void 0:E.props["aria-current"])===void 0)throw new Error('"aria-current" is not supported on role "'+t+'".')}if(f!==void 0&&t!=="heading")throw new Error('Role "'+t+'" cannot have "level" property.');if(y!==void 0){var _;if(((_=Dt.roles.get(t))==null?void 0:_.props["aria-valuenow"])===void 0)throw new Error('"aria-valuenow" is not supported on role "'+t+'".')}if(v!==void 0){var x;if(((x=Dt.roles.get(t))==null?void 0:x.props["aria-valuemax"])===void 0)throw new Error('"aria-valuemax" is not supported on role "'+t+'".')}if(g!==void 0){var S;if(((S=Dt.roles.get(t))==null?void 0:S.props["aria-valuemin"])===void 0)throw new Error('"aria-valuemin" is not supported on role "'+t+'".')}if(b!==void 0){var F;if(((F=Dt.roles.get(t))==null?void 0:F.props["aria-valuetext"])===void 0)throw new Error('"aria-valuetext" is not supported on role "'+t+'".')}if(m!==void 0){var j;if(((j=Dt.roles.get(t))==null?void 0:j.props["aria-expanded"])===void 0)throw new Error('"aria-expanded" is not supported on role "'+t+'".')}let J=new WeakMap;function N(O){return J.has(O)||J.set(O,T_(O)),J.get(O)}return Array.from(e.querySelectorAll(dB(t))).filter(O=>{if(O.hasAttribute("role")){let q=O.getAttribute("role");if(a)return q.split(" ").filter(Boolean).some(V=>V===t);let[$]=q.split(" ");return $===t}return Lp(O).some(q=>q===t)}).filter(O=>{if(s!==void 0)return s===q$(O);if(c!==void 0)return c===D$(O);if(l!==void 0)return l===L$(O);if(d!==void 0)return d===F$(O);if(p!==void 0)return p===$$(O);if(m!==void 0)return m===B$(O);if(f!==void 0)return f===U$(O);if(y!==void 0||v!==void 0||g!==void 0||b!==void 0){let $=!0;if(y!==void 0&&$&&($=y===H$(O)),v!==void 0&&$&&($=v===J$(O)),g!==void 0&&$&&($=g===V$(O)),b!==void 0){var q;$&&($=xr((q=z$(O))!=null?q:null,O,b,V=>V))}return $}return!0}).filter(O=>o===void 0?!0:xr(Ip(O,{computedStyleSupportsPseudoElements:Se().computedStyleSupportsPseudoElements}),O,o,q=>q)).filter(O=>i===void 0?!0:xr(l_(O,{computedStyleSupportsPseudoElements:Se().computedStyleSupportsPseudoElements}),O,i,q=>q)).filter(O=>n===!1?al(O,{isSubtreeInaccessible:N})===!1:!0)};function dB(e){var t;let r='*[role~="'+e+'"]',n=(t=Dt.roleElements.get(e))!=null?t:new Set,o=new Set(Array.from(n).map(i=>{let{name:a}=i;return a}));return[r].concat(Array.from(o)).join(",")}var pT=e=>{let t="";return e===void 0?t="":typeof e=="string"?t=' and name "'+e+'"':t=" and name `"+e+"`",t},pB=function(e,t,r){let{name:n}=r===void 0?{}:r;return'Found multiple elements with the role "'+t+'"'+pT(n)},fB=function(e,t,r){let{hidden:n=Se().defaultHidden,name:o,description:i}=r===void 0?{}:r;if(Se()._disableExpensiveErrorDiagnostics)return'Unable to find role="'+t+'"'+pT(o);let a="";Array.from(e.children).forEach(d=>{a+=S_(d,{hidden:n,includeDescription:i!==void 0})});let s;a.length===0?n===!1?s="There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole":s="There are no available roles.":s=(`
331
- Here are the `+(n===!1?"accessible":"available")+` roles:
332
-
333
- `+a.replace(/\n/g,`
334
- `).replace(/\n\s\s\n/g,`
335
-
336
- `)+`
337
- `).trim();let c="";o===void 0?c="":typeof o=="string"?c=' and name "'+o+'"':c=" and name `"+o+"`";let l="";return i===void 0?l="":typeof i=="string"?l=' and description "'+i+'"':l=" and description `"+i+"`",(`
338
- Unable to find an `+(n===!1?"accessible ":"")+'element with the role "'+t+'"'+c+l+`
339
-
340
- `+s).trim()},fT=wt(vc,vc.name,"queryAll"),[mT,hT,yT,gT,bT]=Pr(vc,pB,fB),Bp=()=>Se().testIdAttribute,Ec=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Cr(t[0]),In(Bp(),...t)},mB=(e,t)=>"Found multiple elements by: ["+Bp()+'="'+t+'"]',hB=(e,t)=>"Unable to find an element by: ["+Bp()+'="'+t+'"]',vT=wt(Ec,Ec.name,"queryAll"),[ET,wT,_T,TT,xT]=Pr(Ec,mB,hB),cs=Object.freeze({__proto__:null,queryAllByLabelText:j_,queryByLabelText:C_,getAllByLabelText:I_,getByLabelText:k_,findAllByLabelText:M_,findByLabelText:N_,queryByPlaceholderText:D_,queryAllByPlaceholderText:q_,getByPlaceholderText:F_,getAllByPlaceholderText:L_,findAllByPlaceholderText:$_,findByPlaceholderText:B_,queryByText:H_,queryAllByText:U_,getByText:V_,getAllByText:J_,findAllByText:z_,findByText:G_,queryByDisplayValue:K_,queryAllByDisplayValue:W_,getByDisplayValue:X_,getAllByDisplayValue:Y_,findAllByDisplayValue:Q_,findByDisplayValue:Z_,queryByAltText:tT,queryAllByAltText:eT,getByAltText:nT,getAllByAltText:rT,findAllByAltText:oT,findByAltText:iT,queryByTitle:sT,queryAllByTitle:aT,getByTitle:uT,getAllByTitle:lT,findAllByTitle:cT,findByTitle:dT,queryByRole:mT,queryAllByRole:fT,getAllByRole:hT,getByRole:yT,findAllByRole:gT,findByRole:bT,queryByTestId:ET,queryAllByTestId:vT,getByTestId:_T,getAllByTestId:wT,findAllByTestId:TT,findByTestId:xT});function wc(e,t,r){return t===void 0&&(t=cs),r===void 0&&(r={}),Object.keys(t).reduce((n,o)=>{let i=t[o];return n[o]=i.bind(null,e),n},r)}var ST=e=>!e||Array.isArray(e)&&!e.length;function Th(e){if(ST(e))throw new Error("The element(s) given to waitForElementToBeRemoved are already removed. waitForElementToBeRemoved requires that the element(s) exist(s) before waiting for removal.")}async function yB(e,t){let r=new Error("Timed out in waitForElementToBeRemoved.");if(typeof e!="function"){Th(e);let n=(Array.isArray(e)?e:[e]).map(o=>{let i=o.parentElement;if(i===null)return()=>null;for(;i.parentElement;)i=i.parentElement;return()=>i.contains(o)?o:null});e=()=>n.map(o=>o()).filter(Boolean)}return Th(e()),Fp(()=>{let n;try{n=e()}catch(o){if(o.name==="TestingLibraryElementError")return;throw o}if(!ST(n))throw r},t)}var xh={copy:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},cut:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},paste:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionEnd:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionStart:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionUpdate:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keyDown:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},keyPress:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},keyUp:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},focus:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},blur:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},focusIn:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},focusOut:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},change:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},input:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},invalid:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!0}},submit:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}},reset:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}},click:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,button:0,composed:!0}},contextMenu:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dblClick:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},drag:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragEnd:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragEnter:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragExit:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragLeave:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragOver:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragStart:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},drop:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseDown:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseEnter:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseLeave:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseMove:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseOut:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseOver:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseUp:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},select:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},touchCancel:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},touchEnd:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},touchMove:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},touchStart:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},resize:{EventType:"UIEvent",defaultInit:{bubbles:!1,cancelable:!1}},scroll:{EventType:"UIEvent",defaultInit:{bubbles:!1,cancelable:!1}},wheel:{EventType:"WheelEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},abort:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},canPlay:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},canPlayThrough:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},durationChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},emptied:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},encrypted:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},ended:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadedData:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadedMetadata:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadStart:{EventType:"ProgressEvent",defaultInit:{bubbles:!1,cancelable:!1}},pause:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},play:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},playing:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},progress:{EventType:"ProgressEvent",defaultInit:{bubbles:!1,cancelable:!1}},rateChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},seeked:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},seeking:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},stalled:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},suspend:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},timeUpdate:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},volumeChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},waiting:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},load:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},error:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},animationStart:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},animationEnd:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},animationIteration:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionCancel:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionEnd:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}},transitionRun:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionStart:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},pointerOver:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerEnter:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},pointerDown:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerMove:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerUp:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerCancel:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},pointerOut:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerLeave:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},gotPointerCapture:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},lostPointerCapture:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},popState:{EventType:"PopStateEvent",defaultInit:{bubbles:!0,cancelable:!1}},offline:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},online:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},pageHide:{EventType:"PageTransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}},pageShow:{EventType:"PageTransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}}},Sh={doubleClick:"dblClick"};function Ci(e,t){return Se().eventWrapper(()=>{if(!t)throw new Error("Unable to fire an event - please provide an event object.");if(!e)throw new Error('Unable to fire a "'+t.type+'" event - please provide a DOM element.');return e.dispatchEvent(t)})}function Da(e,t,r,n){let{EventType:o="Event",defaultInit:i={}}=n===void 0?{}:n;if(!t)throw new Error('Unable to fire a "'+e+'" event - please provide a DOM element.');let a={...i,...r},{target:{value:s,files:c,...l}={}}=a;s!==void 0&&gB(t,s),c!==void 0&&Object.defineProperty(t,"files",{configurable:!0,enumerable:!0,writable:!0,value:c}),Object.assign(t,l);let d=g_(t),p=d[o]||d.Event,f;if(typeof p=="function")f=new p(e,a);else{f=d.document.createEvent(o);let{bubbles:m,cancelable:y,detail:g,...v}=a;f.initEvent(e,m,y,g),Object.keys(v).forEach(b=>{f[b]=v[b]})}return["dataTransfer","clipboardData"].forEach(m=>{let y=a[m];typeof y=="object"&&(typeof d.DataTransfer=="function"?Object.defineProperty(f,m,{value:Object.getOwnPropertyNames(y).reduce((g,v)=>(Object.defineProperty(g,v,{value:y[v]}),g),new d.DataTransfer)}):Object.defineProperty(f,m,{value:y}))}),f}Object.keys(xh).forEach(e=>{let{EventType:t,defaultInit:r}=xh[e],n=e.toLowerCase();Da[e]=(o,i)=>Da(n,o,i,{EventType:t,defaultInit:r}),Ci[e]=(o,i)=>Ci(o,Da[e](o,i))});function gB(e,t){let{set:r}=Object.getOwnPropertyDescriptor(e,"value")||{},n=Object.getPrototypeOf(e),{set:o}=Object.getOwnPropertyDescriptor(n,"value")||{};if(o&&r!==o)o.call(e,t);else if(r)r.call(e,t);else throw new Error("The given element does not have a value setter")}Object.keys(Sh).forEach(e=>{let t=Sh[e];Ci[e]=function(){return Ci[t](...arguments)}});function bB(e){return e.replace(/[ \t]*[\n][ \t]*/g,`
341
- `)}function vB(e){return u$.default.compressToEncodedURIComponent(bB(e))}function EB(e){return"https://testing-playground.com/#markup="+vB(e)}var wB=(e,t,r)=>Array.isArray(e)?e.forEach(n=>pc(n,t,r)):pc(e,t,r),_B=function(e){if(e===void 0&&(e=qp().body),!e||!("innerHTML"in e)){console.log("The element you're providing isn't a valid DOM element.");return}if(!e.innerHTML){console.log("The provided element doesn't have any children.");return}let t=EB(e.innerHTML);return console.log(`Open this URL in your browser
342
-
343
- `+t),t},Ah={debug:wB,logTestingPlaygroundURL:_B},TB=typeof document<"u"&&document.body?wc(document.body,cs,Ah):Object.keys(cs).reduce((e,t)=>(e[t]=()=>{throw new TypeError("For queries bound to document.body a global document has to be available... Learn more: https://testing-library.com/s/screen-global-error")},e),Ah);function _e(e,t,r){return e.namespaceURI&&e.namespaceURI!=="http://www.w3.org/1999/xhtml"||(t=Array.isArray(t)?t:[t],!t.includes(e.tagName.toLowerCase()))?!1:r?Object.entries(r).every(([n,o])=>e[n]===o):!0}function Bt(e){var t;if(xB(e)&&e.defaultView)return e.defaultView;if(!((t=e.ownerDocument)===null||t===void 0)&&t.defaultView)return e.ownerDocument.defaultView;throw new Error(`Could not determine window of node. Node was ${SB(e)}`)}function xB(e){return e.nodeType===9}function SB(e){return typeof e=="function"?`function ${e.name}`:e===null?"null":String(e)}function AT(e,t){return new Promise((r,n)=>{let o=new t;o.onerror=n,o.onabort=n,o.onload=()=>{r(String(o.result))},o.readAsText(e)})}function Up(e,t){let r={...t,length:t.length,item:n=>r[n],[Symbol.iterator]:function*(){for(let n=0;n<r.length;n++)yield r[n]}};return r.constructor=e.FileList,e.FileList&&Object.setPrototypeOf(r,e.FileList.prototype),Object.freeze(r),r}function Ur(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var OT=class{getAsFile(){return this.file}getAsString(e){typeof this.data=="string"&&e(this.data)}webkitGetAsEntry(){throw new Error("not implemented")}constructor(e,t){Ur(this,"kind",void 0),Ur(this,"type",void 0),Ur(this,"file",null),Ur(this,"data",void 0),typeof e=="string"?(this.kind="string",this.type=String(t),this.data=e):(this.kind="file",this.type=e.type,this.file=e)}},AB=class extends Array{add(...e){let t=new OT(e[0],e[1]);return this.push(t),t}clear(){this.splice(0,this.length)}remove(e){this.splice(e,1)}};function ga(e,t){let[r,n]=e.split("/"),o=!n||n==="*";return i=>t?i.type===(o?r:e):o?i.type.startsWith(`${r}/`):i.type===r}function OB(e){return new class{getData(t){var r;let n=(r=this.items.find(ga(t,!0)))!==null&&r!==void 0?r:this.items.find(ga(t,!1)),o="";return n?.getAsString(i=>{o=i}),o}setData(t,r){let n=this.items.findIndex(ga(t,!0)),o=new OT(r,t);n>=0?this.items.splice(n,1,o):this.items.push(o)}clearData(t){if(t){let r=this.items.findIndex(ga(t,!0));r>=0&&this.items.remove(r)}else this.items.clear()}get types(){let t=[];return this.files.length&&t.push("Files"),this.items.forEach(r=>t.push(r.type)),Object.freeze(t),t}setDragImage(){}constructor(){Ur(this,"dropEffect","none"),Ur(this,"effectAllowed","uninitialized"),Ur(this,"items",new AB),Ur(this,"files",Up(e,[]))}}}function Hp(e,t=[]){let r=typeof e.DataTransfer>"u"?OB(e):new e.DataTransfer;return Object.defineProperty(r,"files",{get:()=>Up(e,t)}),r}async function RB(e,t){return t.kind==="file"?t.getAsFile():new e.Blob([await new Promise(r=>t.getAsString(r))],{type:t.type})}function RT(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CT(e,...t){let r=Object.fromEntries(t.map(n=>[typeof n=="string"?"text/plain":n.type,Promise.resolve(n)]));return typeof e.ClipboardItem<"u"?new e.ClipboardItem(r):new class{get types(){return Array.from(Object.keys(this.data))}async getType(n){let o=await this.data[n];if(!o)throw new Error(`${n} is not one of the available MIME types on this item.`);return o instanceof e.Blob?o:new e.Blob([o],{type:n})}constructor(n){RT(this,"data",void 0),this.data=n}}(r)}var to=Symbol("Manage ClipboardSub");function Oh(e,t){return Object.assign(new class extends e.EventTarget{async read(){return Array.from(this.items)}async readText(){let r="";for(let n of this.items){let o=n.types.includes("text/plain")?"text/plain":n.types.find(i=>i.startsWith("text/"));o&&(r+=await n.getType(o).then(i=>AT(i,e.FileReader)))}return r}async write(r){this.items=r}async writeText(r){this.items=[CT(e,r)]}constructor(...r){super(...r),RT(this,"items",[])}},{[to]:t})}function Jp(e){return!!e?.[to]}function CB(e){if(Jp(e.navigator.clipboard))return e.navigator.clipboard[to];let t=Object.getOwnPropertyDescriptor(e.navigator,"clipboard"),r,n={resetClipboardStub:()=>{r=Oh(e,n)},detachClipboardStub:()=>{t?Object.defineProperty(e.navigator,"clipboard",t):Object.defineProperty(e.navigator,"clipboard",{value:void 0,configurable:!0})}};return r=Oh(e,n),Object.defineProperty(e.navigator,"clipboard",{get:()=>r,configurable:!0}),r[to]}function PB(e){Jp(e.navigator.clipboard)&&e.navigator.clipboard[to].resetClipboardStub()}function MB(e){Jp(e.navigator.clipboard)&&e.navigator.clipboard[to].detachClipboardStub()}async function NB(e){let t=e.defaultView,r=t?.navigator.clipboard,n=r&&await r.read();if(!n)throw new Error("The Clipboard API is unavailable.");let o=Hp(t);for(let i of n)for(let a of i.types)o.setData(a,await i.getType(a).then(s=>AT(s,t.FileReader)));return o}async function PT(e,t){let r=Bt(e),n=r.navigator.clipboard,o=[];for(let i=0;i<t.items.length;i++){let a=t.items[i],s=await RB(r,a);o.push(CT(r,s))}if(!(n&&await n.write(o).then(()=>!0,()=>!1)))throw new Error("The Clipboard API is unavailable.")}var ds=globalThis;typeof ds.afterEach=="function"&&ds.afterEach(()=>{typeof globalThis.window<"u"&&PB(globalThis.window)});typeof ds.afterAll=="function"&&ds.afterAll(()=>{typeof globalThis.window<"u"&&MB(globalThis.window)});var MT=["input:not([type=hidden]):not([disabled])","button:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[contenteditable=""]','[contenteditable="true"]',"a[href]","[tabindex]:not([disabled])"].join(", ");function Vp(e){return e.matches(MT)}function IB(e){return new e.constructor(e.type,e)}function Sr(e){for(let r=e;r;r=r.parentElement)if(_e(r,["button","input","select","textarea","optgroup","option"])){if(r.hasAttribute("disabled"))return!0}else if(_e(r,"fieldset")){var t;if(r.hasAttribute("disabled")&&!(!((t=r.querySelector(":scope > legend"))===null||t===void 0)&&t.contains(e)))return!0}else if(r.tagName.includes("-")&&r.constructor.formAssociated&&r.hasAttribute("disabled"))return!0;return!1}function ra(e){let t=e.activeElement;return t?.shadowRoot?ra(t.shadowRoot):Sr(t)?e.ownerDocument?e.ownerDocument.body:e.body:t}function ou(e){var t;return(t=ra(e))!==null&&t!==void 0?t:e.body}function kB(e,t){let r=e;do{if(t(r))return r;r=r.parentElement}while(r&&r!==e.ownerDocument.body)}function Sn(e){return e.hasAttribute("contenteditable")&&(e.getAttribute("contenteditable")=="true"||e.getAttribute("contenteditable")=="")}function Pi(e){let t=jB(e);return t&&(t.closest('[contenteditable=""]')||t.closest('[contenteditable="true"]'))}function jB(e){return e.nodeType===1?e:e.parentElement}var NT=(function(e){return e.button="button",e.color="color",e.file="file",e.image="image",e.reset="reset",e.submit="submit",e.checkbox="checkbox",e.radio="radio",e})(NT||{});function IT(e){return _e(e,"button")||_e(e,"input")&&e.type in NT}function ro(e){return jT(e)&&!e.readOnly||Sn(e)}var kT=(function(e){return e.text="text",e.date="date",e["datetime-local"]="datetime-local",e.email="email",e.month="month",e.number="number",e.password="password",e.search="search",e.tel="tel",e.time="time",e.url="url",e.week="week",e})(kT||{});function jT(e){return _e(e,"textarea")||_e(e,"input")&&e.type in kT}function lr(e){return qT(e)&&jT(e)}function qB(e){return qT(e)&&IT(e)}function qT(e){return e.nodeType===1}function DB(e){let t=e.ownerDocument.getSelection();if(t?.focusNode&&lr(e)){let n=Pi(t.focusNode);if(n){if(!t.isCollapsed){var r;let o=((r=n.firstChild)===null||r===void 0?void 0:r.nodeType)===3?n.firstChild:n;t.setBaseAndExtent(o,0,o,0)}}else t.setBaseAndExtent(e,0,e,0)}}function no(e,t){return Se().eventWrapper(e)}function Kr(e){let t=kB(e,Vp),r=ra(e.ownerDocument);(t??e.ownerDocument.body)!==r&&(no(t?()=>t.focus():()=>r?.blur()),DB(t??e.ownerDocument.body))}function LB(e){!Vp(e)||ra(e.ownerDocument)!==e||no(()=>e.blur())}var Yr={};Yr.click=(e,t,r)=>{let n=t.closest("button,input,label,select,textarea"),o=n&&_e(n,"label")&&n.control;if(o&&o!==t)return()=>{Vp(o)&&(Kr(o),r.dispatchEvent(o,IB(e)))};if(_e(t,"input",{type:"file"}))return()=>{LB(t),t.dispatchEvent(new(Bt(t)).Event("fileDialog")),Kr(t)}};var oo=Symbol("Displayed value in UI"),Er=Symbol("Displayed selection in UI"),ps=Symbol("Initial value to compare on blur");function FB(e){return typeof e=="object"&&oo in e}function $B(e){return!!e&&typeof e=="object"&&Er in e}function BB(e,t){e[ps]===void 0&&(e[ps]=e.value),e[oo]=t,e.value=Object.assign(new String(t),{[oo]:!0})}function ur(e){return e[oo]===void 0?e.value:String(e[oo])}function zp(e){e[oo]=void 0}function DT(e){e[ps]=void 0}function UB(e){return e[ps]}function HB(e,t){e[Er]=t}function wo(e,{focusOffset:t,anchorOffset:r=t},n="replace"){let o=ur(e).length,i=p=>Math.max(0,Math.min(o,p)),a=n==="replace"||e[Er]===void 0?i(r):e[Er].anchorOffset,s=i(t),c=Math.min(a,s),l=Math.max(a,s);if(e[Er]={anchorOffset:a,focusOffset:s},e.selectionStart===c&&e.selectionEnd===l)return;let d=Object.assign(new Number(c),{[Er]:!0});try{e.setSelectionRange(d,l)}catch{}}function Mi(e){var t,r,n;let o=(n=e[Er])!==null&&n!==void 0?n:{anchorOffset:(t=e.selectionStart)!==null&&t!==void 0?t:0,focusOffset:(r=e.selectionEnd)!==null&&r!==void 0?r:0};return{...o,startOffset:Math.min(o.anchorOffset,o.focusOffset),endOffset:Math.max(o.anchorOffset,o.focusOffset)}}function JB(e){return!!e[Er]}function La(e){e[Er]=void 0}var fs=globalThis.parseInt;function VB(e){let t=e.replace(/\D/g,"");if(t.length<2)return e;let r=fs(t[0],10),n=fs(t[1],10);if(r>=3||r===2&&n>=4){let o;return r>=3?o=1:o=2,Rh(t,o)}return e.length===2?e:Rh(t,2)}function Rh(e,t){let r=e.slice(0,t),n=Math.min(fs(r,10),23),o=e.slice(t),i=fs(o,10),a=Math.min(i,59);return`${n.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`}function LT(e,t){let r=e.cloneNode();return r.value=t,r.value===t}var FT=(function(e){return e.email="email",e.password="password",e.search="search",e.telephone="telephone",e.text="text",e.url="url",e})(FT||{});function zB(e){var t;let r=(t=e.getAttribute("maxlength"))!==null&&t!==void 0?t:"";return/^\d+$/.test(r)&&Number(r)>=0?Number(r):void 0}function GB(e){return _e(e,"textarea")||_e(e,"input")&&e.type in FT}function $T(e,t,r,n){if(Fa(e)&&t+r>=0&&t+r<=e.nodeValue.length)return{node:e,offset:t+r};let o=Ch(e,t,r);if(o){if(Fa(o))return{node:o,offset:r>0?Math.min(1,o.nodeValue.length):Math.max(o.nodeValue.length-1,0)};if(_e(o,"br")){let i=Ch(o,void 0,r);return i?Fa(i)?{node:i,offset:r>0?0:i.nodeValue.length}:r<0&&_e(i,"br")?{node:o.parentNode,offset:ba(o)}:{node:i.parentNode,offset:ba(i)+(r>0?0:1)}:r<0&&n==="deleteContentBackward"?{node:o.parentNode,offset:ba(o)}:void 0}else return{node:o.parentNode,offset:ba(o)+(r>0?1:0)}}}function Ch(e,t,r){let n=Number(t)+(r<0?-1:0);return t!==void 0&&Gp(e)&&n>=0&&n<e.children.length&&(e=e.children[n]),KB(e,r===1?"next":"previous",WB)}function WB(e){if(Fa(e))return!0;if(Gp(e)){if(_e(e,["input","textarea"]))return e.type!=="hidden";if(_e(e,"br"))return!0}return!1}function ba(e){let t=0;for(;e.previousSibling;)t++,e=e.previousSibling;return t}function Gp(e){return e.nodeType===1}function Fa(e){return e.nodeType===3}function KB(e,t,r){for(;;){var n;let o=e[`${t}Sibling`];if(o){if(e=YB(o,t==="next"?"first":"last"),r(e))return e}else if(e.parentNode&&(!Gp(e.parentNode)||!Sn(e.parentNode)&&e.parentNode!==((n=e.ownerDocument)===null||n===void 0?void 0:n.body)))e=e.parentNode;else break}}function YB(e,t){for(;e.hasChildNodes();)e=e[`${t}Child`];return e}var Ni=Symbol("Track programmatic changes for React workaround");function XB(e){return Object.getOwnPropertyNames(e).some(t=>t.startsWith("__react"))&&Bt(e).REACT_VERSION===17}function QB(e){XB(e)&&(e[Ni]={previousValue:String(e.value),tracked:[]})}function ZB(e,t){var r,n;(n=e[Ni])===null||n===void 0||(r=n.tracked)===null||r===void 0||r.push(t),e[Ni]||(zp(e),wo(e,{focusOffset:t.length}))}function e2(e,t){var r;let n=e[Ni];if(e[Ni]=void 0,!(!(n==null||(r=n.tracked)===null||r===void 0)&&r.length))return;let o=n.tracked.length===2&&n.tracked[0]===n.previousValue&&n.tracked[1]===e.value;o||zp(e),JB(e)&&wo(e,{focusOffset:o?t:e.value.length})}function BT(e){let t=t2(e);if(t&&lr(t))return{type:"input",selection:Mi(t)};let r=t?.ownerDocument.getSelection();return{type:Pi(e)&&r?.anchorNode&&Pi(r.anchorNode)?"contenteditable":"default",selection:r}}function t2(e){return e.nodeType===1?e:e.parentElement}function r2(e){let t=BT(e);if(t.type==="input")return t.selection;if(t.type==="contenteditable"){var r;return(r=t.selection)===null||r===void 0?void 0:r.getRangeAt(0)}}function An({focusNode:e,focusOffset:t,anchorNode:r=e,anchorOffset:n=t}){var o,i;if(BT(e).type==="input")return wo(e,{anchorOffset:n,focusOffset:t});(i=r.ownerDocument)===null||i===void 0||(o=i.getSelection())===null||o===void 0||o.setBaseAndExtent(r,n,e,t)}function UT(e){return _e(e,"input")&&["date","time"].includes(e.type)}function io(e,t,r,n="insertText"){let o=r2(t);o&&(!UT(t)&&!e.dispatchUIEvent(t,"beforeinput",{inputType:n,data:r})||("startContainer"in o?n2(e,t,o,r,n):o2(e,t,o,r,n)))}function n2(e,t,r,n,o){let i=!1;if(!r.collapsed)i=!0,r.deleteContents();else if(["deleteContentBackward","deleteContentForward"].includes(o)){let a=$T(r.startContainer,r.startOffset,o==="deleteContentBackward"?-1:1,o);if(a){i=!0;let s=r.cloneRange();s.comparePoint(a.node,a.offset)<0?s.setStart(a.node,a.offset):s.setEnd(a.node,a.offset),s.deleteContents()}}if(n)if(r.endContainer.nodeType===3){let a=r.endOffset;r.endContainer.insertData(a,n),r.setStart(r.endContainer,a+n.length),r.setEnd(r.endContainer,a+n.length)}else{let a=t.ownerDocument.createTextNode(n);r.insertNode(a),r.setStart(a,n.length),r.setEnd(a,n.length)}(i||n)&&e.dispatchUIEvent(t,"input",{inputType:o})}function o2(e,t,r,n,o){let i=n;if(GB(t)){let l=zB(t);if(l!==void 0&&n.length>0){let d=l-t.value.length;if(d>0)i=n.substring(0,d);else return}}let{newValue:a,newOffset:s,oldValue:c}=i2(i,t,r,o);a===c&&s===r.startOffset&&s===r.endOffset||_e(t,"input",{type:"number"})&&!a2(a)||(BB(t,a),An({focusNode:t,anchorOffset:s,focusOffset:s}),UT(t)?LT(t,a)&&(Ph(e,t,s,{}),e.dispatchUIEvent(t,"change"),DT(t)):Ph(e,t,s,{data:n,inputType:o}))}function i2(e,t,{startOffset:r,endOffset:n},o){let i=ur(t),a=Math.max(0,r===n&&o==="deleteContentBackward"?r-1:r),s=i.substring(0,a),c=Math.min(i.length,r===n&&o==="deleteContentForward"?r+1:n),l=i.substring(c,i.length),d=`${s}${e}${l}`,p=a+e.length;if(_e(t,"input",{type:"time"})){let f=VB(d);f!==""&&LT(t,f)&&(d=f,p=f.length)}return{oldValue:i,newValue:d,newOffset:p}}function Ph(e,t,r,n){e.dispatchUIEvent(t,"input",n),e2(t,r)}function a2(e){var t,r;let n=e.split("e",2);return!(/[^\d.\-e]/.test(e)||Number((t=e.match(/-/g))===null||t===void 0?void 0:t.length)>2||Number((r=e.match(/\./g))===null||r===void 0?void 0:r.length)>1||n[1]&&!/^-?\d*$/.test(n[1]))}Yr.cut=(e,t,r)=>()=>{ro(t)&&io(r,t,"","deleteByCut")};function s2(e){return e?Sn(e)?e.textContent:ur(e):null}function l2(e){let t=Bt(e);for(let r=e;r?.ownerDocument;r=r.parentElement){let{display:n,visibility:o}=t.getComputedStyle(r);if(n==="none"||o==="hidden")return!1}return!0}function u2(e,t){let r=e.ownerDocument,n=r.querySelectorAll(MT),o=Array.from(n).filter(c=>c===e||!(Number(c.getAttribute("tabindex"))<0||Sr(c)));Number(e.getAttribute("tabindex"))>=0&&o.sort((c,l)=>{let d=Number(c.getAttribute("tabindex")),p=Number(l.getAttribute("tabindex"));return d===p?0:d===0?1:p===0?-1:d-p});let i={},a=[r.body],s=_e(e,"input",{type:"radio"})?e.name:void 0;o.forEach(c=>{let l=c;if(_e(l,"input",{type:"radio"})&&l.name){if(l===e){a.push(l);return}else if(l.name===s)return;if(l.checked){a=a.filter(d=>!_e(d,"input",{type:"radio",name:l.name})),a.push(l),i[l.name]=l;return}if(typeof i[l.name]<"u")return}a.push(l)});for(let c=a.findIndex(l=>l===e);;)if(c+=t?-1:1,c===a.length?c=0:c===-1&&(c=a.length-1),a[c]===e||a[c]===r.body||l2(a[c]))return a[c]}function Mh(e,t){if(lr(e)){let r=Mi(e);An({focusNode:e,focusOffset:r.startOffset===r.endOffset?r.focusOffset+t:t<0?r.startOffset:r.endOffset})}else{let r=e.ownerDocument.getSelection();if(!r?.focusNode)return;if(r.isCollapsed){let n=$T(r.focusNode,r.focusOffset,t);n&&An({focusNode:n.node,focusOffset:n.offset})}else r[t<0?"collapseToStart":"collapseToEnd"]()}}function HT(e){if(lr(e))return An({focusNode:e,anchorOffset:0,focusOffset:ur(e).length});var t;let r=(t=Pi(e))!==null&&t!==void 0?t:e.ownerDocument.body;An({focusNode:r,anchorOffset:0,focusOffset:r.childNodes.length})}function c2(e){if(lr(e))return Mi(e).startOffset===0&&Mi(e).endOffset===ur(e).length;var t;let r=(t=Pi(e))!==null&&t!==void 0?t:e.ownerDocument.body,n=e.ownerDocument.getSelection();return n?.anchorNode===r&&n.focusNode===r&&n.anchorOffset===0&&n.focusOffset===r.childNodes.length}function Zo(e,t,r){var n;if(lr(e))return An({focusNode:e,anchorOffset:t,focusOffset:r});if(Sn(e)&&((n=e.firstChild)===null||n===void 0?void 0:n.nodeType)===3)return An({focusNode:e.firstChild,anchorOffset:t,focusOffset:r});throw new Error("Not implemented. The result of this interaction is unreliable.")}function va(e,t,r){let n=Bt(t),o=Array.from(t.ownerDocument.querySelectorAll(t.name?`input[type="radio"][name="${n.CSS.escape(t.name)}"]`:'input[type="radio"][name=""], input[type="radio"]:not([name])'));for(let i=o.findIndex(a=>a===t)+r;;i+=r){if(o[i]||(i=r>0?0:o.length-1),o[i]===t)return;if(!Sr(o[i])){Kr(o[i]),e.dispatchUIEvent(o[i],"click");return}}}Yr.keydown=(e,t,r)=>{var n,o;return(o=(n=Nh[e.key])===null||n===void 0?void 0:n.call(Nh,e,t,r))!==null&&o!==void 0?o:d2(e,t,r)};var Nh={ArrowDown:(e,t,r)=>{if(_e(t,"input",{type:"radio"}))return()=>va(r,t,1)},ArrowLeft:(e,t,r)=>_e(t,"input",{type:"radio"})?()=>va(r,t,-1):()=>Mh(t,-1),ArrowRight:(e,t,r)=>_e(t,"input",{type:"radio"})?()=>va(r,t,1):()=>Mh(t,1),ArrowUp:(e,t,r)=>{if(_e(t,"input",{type:"radio"}))return()=>va(r,t,-1)},Backspace:(e,t,r)=>{if(ro(t))return()=>{io(r,t,"","deleteContentBackward")}},Delete:(e,t,r)=>{if(ro(t))return()=>{io(r,t,"","deleteContentForward")}},End:(e,t)=>{if(_e(t,["input","textarea"])||Sn(t))return()=>{var r,n;let o=(n=(r=s2(t))===null||r===void 0?void 0:r.length)!==null&&n!==void 0?n:0;Zo(t,o,o)}},Home:(e,t)=>{if(_e(t,["input","textarea"])||Sn(t))return()=>{Zo(t,0,0)}},PageDown:(e,t)=>{if(_e(t,["input"]))return()=>{let r=ur(t).length;Zo(t,r,r)}},PageUp:(e,t)=>{if(_e(t,["input"]))return()=>{Zo(t,0,0)}},Tab:(e,t,r)=>()=>{let n=u2(t,r.system.keyboard.modifiers.Shift);Kr(n),lr(n)&&wo(n,{anchorOffset:0,focusOffset:n.value.length})}},d2=(e,t,r)=>{if(e.code==="KeyA"&&r.system.keyboard.modifiers.Control)return()=>HT(t)};Yr.keypress=(e,t,r)=>{if(e.key==="Enter"){if(_e(t,"button")||_e(t,"input")&&p2.includes(t.type)||_e(t,"a")&&t.href)return()=>{r.dispatchUIEvent(t,"click")};if(_e(t,"input")){let n=t.form,o=n?.querySelector('input[type="submit"], button:not([type]), button[type="submit"]');return o?()=>r.dispatchUIEvent(o,"click"):n&&f2.includes(t.type)&&n.querySelectorAll("input").length===1?()=>r.dispatchUIEvent(n,"submit"):void 0}}if(ro(t)){let n=e.key==="Enter"?Sn(t)&&!r.system.keyboard.modifiers.Shift?"insertParagraph":"insertLineBreak":"insertText",o=e.key==="Enter"?`
344
- `:e.key;return()=>io(r,t,o,n)}};var p2=["button","color","file","image","reset","submit"],f2=["email","month","password","search","tel","text","url","week"];Yr.keyup=(e,t,r)=>{var n;return(n=Ih[e.key])===null||n===void 0?void 0:n.call(Ih,e,t,r)};var Ih={" ":(e,t,r)=>{if(IT(t))return()=>r.dispatchUIEvent(t,"click")}};Yr.paste=(e,t,r)=>{if(ro(t))return()=>{var n;let o=(n=e.clipboardData)===null||n===void 0?void 0:n.getData("text");o&&io(r,t,o,"insertFromPaste")}};var JT={auxclick:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},beforeinput:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},blur:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},click:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},contextmenu:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},copy:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},change:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},cut:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dblclick:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},focus:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},focusin:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},focusout:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},keydown:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keypress:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keyup:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},paste:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},input:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},mousedown:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseenter:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseleave:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mousemove:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseout:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseover:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseup:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerover:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerenter:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},pointerdown:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointermove:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerup:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointercancel:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},pointerout:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerleave:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},submit:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}}};function VT(e){return JT[e].EventType}var m2=["MouseEvent","PointerEvent"];function h2(e){return m2.includes(VT(e))}function y2(e){return VT(e)==="KeyboardEvent"}var g2={ClipboardEvent:[v2],Event:[],FocusEvent:[zo,E2],InputEvent:[zo,w2],MouseEvent:[zo,iu,kh],PointerEvent:[zo,iu,kh,T2],KeyboardEvent:[zo,iu,_2]};function zT(e,t,r){let n=Bt(t),{EventType:o,defaultInit:i}=JT[e],a=new(b2(n))[o](e,i);var s={};for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&(s[c]=r[c]);return s.view=n,g2[o].forEach(function(l){l(a,s)}),a}function b2(e){var t;let r=(t=e.Event)!==null&&t!==void 0?t:class{};var n;let o=(n=e.AnimationEvent)!==null&&n!==void 0?n:class extends r{};var i;let a=(i=e.ClipboardEvent)!==null&&i!==void 0?i:class extends r{};var s;let c=(s=e.PopStateEvent)!==null&&s!==void 0?s:class extends r{};var l;let d=(l=e.ProgressEvent)!==null&&l!==void 0?l:class extends r{};var p;let f=(p=e.TransitionEvent)!==null&&p!==void 0?p:class extends r{};var m;let y=(m=e.UIEvent)!==null&&m!==void 0?m:class extends r{};var g;let v=(g=e.CompositionEvent)!==null&&g!==void 0?g:class extends y{};var b;let T=(b=e.FocusEvent)!==null&&b!==void 0?b:class extends y{};var A;let R=(A=e.InputEvent)!==null&&A!==void 0?A:class extends y{};var P;let E=(P=e.KeyboardEvent)!==null&&P!==void 0?P:class extends y{};var _;let x=(_=e.MouseEvent)!==null&&_!==void 0?_:class extends y{};var S;let F=(S=e.DragEvent)!==null&&S!==void 0?S:class extends x{};var j;let J=(j=e.PointerEvent)!==null&&j!==void 0?j:class extends x{};var N;let O=(N=e.TouchEvent)!==null&&N!==void 0?N:class extends y{};return{Event:r,AnimationEvent:o,ClipboardEvent:a,PopStateEvent:c,ProgressEvent:d,TransitionEvent:f,UIEvent:y,CompositionEvent:v,FocusEvent:T,InputEvent:R,KeyboardEvent:E,MouseEvent:x,DragEvent:F,PointerEvent:J,TouchEvent:O}}function Qr(e,t){for(let[r,n]of Object.entries(t))Object.defineProperty(e,r,{get:()=>n??null})}function Ve(e){return Number(e??0)}function v2(e,{clipboardData:t}){Qr(e,{clipboardData:t})}function E2(e,{relatedTarget:t}){Qr(e,{relatedTarget:t})}function w2(e,{data:t,inputType:r,isComposing:n}){Qr(e,{data:t,isComposing:!!n,inputType:String(r)})}function zo(e,{view:t,detail:r}){Qr(e,{view:t,detail:Ve(r??0)})}function iu(e,{altKey:t,ctrlKey:r,metaKey:n,shiftKey:o,modifierAltGraph:i,modifierCapsLock:a,modifierFn:s,modifierFnLock:c,modifierNumLock:l,modifierScrollLock:d,modifierSymbol:p,modifierSymbolLock:f}){Qr(e,{altKey:!!t,ctrlKey:!!r,metaKey:!!n,shiftKey:!!o,getModifierState(m){return!!{Alt:t,AltGraph:i,CapsLock:a,Control:r,Fn:s,FnLock:c,Meta:n,NumLock:l,ScrollLock:d,Shift:o,Symbol:p,SymbolLock:f}[m]}})}function _2(e,{key:t,code:r,location:n,repeat:o,isComposing:i,charCode:a}){Qr(e,{key:String(t),code:String(r),location:Ve(n),repeat:!!o,isComposing:!!i,charCode:a})}function kh(e,{x:t,y:r,screenX:n,screenY:o,clientX:i=t,clientY:a=r,button:s,buttons:c,relatedTarget:l,offsetX:d,offsetY:p,pageX:f,pageY:m}){Qr(e,{screenX:Ve(n),screenY:Ve(o),clientX:Ve(i),x:Ve(i),clientY:Ve(a),y:Ve(a),button:Ve(s),buttons:Ve(c),relatedTarget:l,offsetX:Ve(d),offsetY:Ve(p),pageX:Ve(f),pageY:Ve(m)})}function T2(e,{pointerId:t,width:r,height:n,pressure:o,tangentialPressure:i,tiltX:a,tiltY:s,twist:c,pointerType:l,isPrimary:d}){Qr(e,{pointerId:Ve(t),width:Ve(r??1),height:Ve(n??1),pressure:Ve(o),tangentialPressure:Ve(i),tiltX:Ve(a),tiltY:Ve(s),twist:Ve(c),pointerType:String(l),isPrimary:!!d})}function x2(e,t,r,n=!1){(h2(t)||y2(t))&&(r={...r,...this.system.getUIEventModifiers()});let o=zT(t,e,r);return GT.call(this,e,o,n)}function GT(e,t,r=!1){var n;let o=t.type,i=r?()=>{}:(n=Yr[o])===null||n===void 0?void 0:n.call(Yr,t,e,this);if(i){t.preventDefault();let a=!1;return Object.defineProperty(t,"defaultPrevented",{get:()=>a}),Object.defineProperty(t,"preventDefault",{value:()=>{a=t.cancelable}}),no(()=>e.dispatchEvent(t)),a||i(),!a}return no(()=>e.dispatchEvent(t))}function fn(e,t,r){let n=zT(t,e,r);no(()=>e.dispatchEvent(n))}var jh=Symbol("patched focus/blur methods");function WT(e){if(e.prototype[jh])return;let{focus:t,blur:r}=e.prototype;Object.defineProperties(e.prototype,{focus:{configurable:!0,get:()=>o},blur:{configurable:!0,get:()=>i},[jh]:{configurable:!0,get:()=>({focus:t,blur:r})}});let n;function o(a){if(this.ownerDocument.visibilityState!=="hidden")return t.call(this,a);let s=qh(this.ownerDocument);if(s===this)return;let c=Symbol("focus call");n=c,s&&(r.call(s),fn(s,"blur",{relatedTarget:this}),fn(s,"focusout",{relatedTarget:n===c?this:null})),n===c&&(t.call(this,a),fn(this,"focus",{relatedTarget:s})),n===c&&fn(this,"focusin",{relatedTarget:s})}function i(){if(this.ownerDocument.visibilityState!=="hidden")return r.call(this);let a=qh(this.ownerDocument);a===this&&(n=Symbol("blur call"),r.call(this),fn(a,"blur",{relatedTarget:null}),fn(a,"focusout",{relatedTarget:null}))}}function qh(e){let t=ra(e);return t?.tagName==="BODY"?null:t}var au=Symbol("Interceptor for programmatical calls");function Bn(e,t,r){let n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=Object.getOwnPropertyDescriptor(e,t),i=n?.set?"set":"value";if(typeof n?.[i]!="function"||n[i][au])throw new Error(`Element ${e.tagName} does not implement "${String(t)}".`);function a(...s){let{applyNative:c=!1,realArgs:l,then:d}=r.call(this,...s),p=(!c&&o||n)[i];i==="set"?p.call(this,l):p.call(this,...l),d?.()}a[au]=au,Object.defineProperty(e,t,{...o??n,[i]:a})}function S2(e){Bn(e,"value",function(t){let r=FB(t);return r&&QB(this),{applyNative:!!r,realArgs:A2(this,t),then:r?void 0:()=>ZB(this,String(t))}})}function A2(e,t){return _e(e,"input",{type:"number"})&&String(t)!==""&&!Number.isNaN(Number(t))?String(Number(t)):String(t)}function O2(e){Bn(e,"setSelectionRange",function(t,...r){let n=$B(t);return{applyNative:!!n,realArgs:[Number(t),...r],then:()=>n?void 0:La(e)}}),Bn(e,"selectionStart",function(t){return{realArgs:t,then:()=>La(e)}}),Bn(e,"selectionEnd",function(t){return{realArgs:t,then:()=>La(e)}}),Bn(e,"select",function(){return{realArgs:[],then:()=>HB(e,{anchorOffset:0,focusOffset:ur(e).length})}})}function R2(e){Bn(e,"setRangeText",function(...t){return{realArgs:t,then:()=>{zp(e),La(e)}}})}var zn=Symbol("Node prepared with document state workarounds");function KT(e){e[zn]||(e.addEventListener("focus",t=>{let r=t.target;Dh(r)},{capture:!0,passive:!0}),e.activeElement&&Dh(e.activeElement),e.addEventListener("blur",t=>{let r=t.target,n=UB(r);n!==void 0&&(r.value!==n&&fn(r,"change"),DT(r))},{capture:!0,passive:!0}),e[zn]=zn)}function Dh(e){e[zn]||(_e(e,["input","textarea"])&&(S2(e),O2(e),R2(e)),e[zn]=zn)}function C2(e){return P2(e)?e:e.ownerDocument}function P2(e){return e.nodeType===9}var Ot=(function(e){return e[e.Trigger=2]="Trigger",e[e.Call=1]="Call",e})({});function ei(e,t){e.levelRefs[t]={}}function Ea(e,t){return e.levelRefs[t]}function ao(e){let t=e.delay;if(typeof t=="number")return Promise.all([new Promise(r=>globalThis.setTimeout(()=>r(),t)),e.advanceTimers(t)])}var $a=(function(e){return e[e.EachTrigger=4]="EachTrigger",e[e.EachApiCall=2]="EachApiCall",e[e.EachTarget=1]="EachTarget",e[e.Never=0]="Never",e})({});function an(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Zt=(function(e){return e[e.STANDARD=0]="STANDARD",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.NUMPAD=3]="NUMPAD",e})({}),M2=["Alt","AltGraph","Control","Fn","Meta","Shift","Symbol"];function Lh(e){return M2.includes(e)}var N2=["CapsLock","FnLock","NumLock","ScrollLock","SymbolLock"];function Fh(e){return N2.includes(e)}var I2=class{isKeyPressed(e){return this.pressed.has(String(e.code))}getPressedKeys(){return this.pressed.values().map(e=>e.keyDef)}async keydown(e,t){let r=String(t.key),n=String(t.code),o=ou(e.config.document);this.setKeydownTarget(o),this.pressed.add(n,t),Lh(r)&&(this.modifiers[r]=!0);let i=e.dispatchUIEvent(o,"keydown",{key:r,code:n});Fh(r)&&!this.modifiers[r]&&(this.modifiers[r]=!0,this.modifierLockStart[r]=!0),i&&this.pressed.setUnprevented(n),i&&this.hasKeyPress(r)&&e.dispatchUIEvent(ou(e.config.document),"keypress",{key:r,code:n,charCode:t.key==="Enter"?13:String(t.key).charCodeAt(0)})}async keyup(e,t){let r=String(t.key),n=String(t.code),o=this.pressed.isUnprevented(n);this.pressed.delete(n),Lh(r)&&!this.pressed.values().find(i=>i.keyDef.key===r)&&(this.modifiers[r]=!1),e.dispatchUIEvent(ou(e.config.document),"keyup",{key:r,code:n},!o),Fh(r)&&this.modifiers[r]&&(this.modifierLockStart[r]?this.modifierLockStart[r]=!1:this.modifiers[r]=!1)}setKeydownTarget(e){e!==this.lastKeydownTarget&&(this.carryChar=""),this.lastKeydownTarget=e}hasKeyPress(e){return(e.length===1||e==="Enter")&&!this.modifiers.Control&&!this.modifiers.Alt}constructor(e){an(this,"system",void 0),an(this,"modifiers",{Alt:!1,AltGraph:!1,CapsLock:!1,Control:!1,Fn:!1,FnLock:!1,Meta:!1,NumLock:!1,ScrollLock:!1,Shift:!1,Symbol:!1,SymbolLock:!1}),an(this,"pressed",new class{add(t,r){var n,o,i;(i=(n=this.registry)[o=t])!==null&&i!==void 0||(n[o]={keyDef:r,unpreventedDefault:!1})}has(t){return!!this.registry[t]}setUnprevented(t){let r=this.registry[t];r&&(r.unpreventedDefault=!0)}isUnprevented(t){var r;return!!(!((r=this.registry[t])===null||r===void 0)&&r.unpreventedDefault)}delete(t){delete this.registry[t]}values(){return Object.values(this.registry)}constructor(){an(this,"registry",{})}}),an(this,"carryChar",""),an(this,"lastKeydownTarget",void 0),an(this,"modifierLockStart",{}),this.system=e}},k2=[..."0123456789".split("").map(e=>({code:`Digit${e}`,key:e})),...")!@#$%^&*(".split("").map((e,t)=>({code:`Digit${t}`,key:e,shiftKey:!0})),..."abcdefghijklmnopqrstuvwxyz".split("").map(e=>({code:`Key${e.toUpperCase()}`,key:e})),..."ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("").map(e=>({code:`Key${e}`,key:e,shiftKey:!0})),{code:"BracketLeft",key:"["},{code:"BracketLeft",key:"{",shiftKey:!0},{code:"BracketRight",key:"]"},{code:"BracketRight",key:"}",shiftKey:!0},{code:"Space",key:" "},{code:"AltLeft",key:"Alt",location:Zt.LEFT},{code:"AltRight",key:"Alt",location:Zt.RIGHT},{code:"ShiftLeft",key:"Shift",location:Zt.LEFT},{code:"ShiftRight",key:"Shift",location:Zt.RIGHT},{code:"ControlLeft",key:"Control",location:Zt.LEFT},{code:"ControlRight",key:"Control",location:Zt.RIGHT},{code:"MetaLeft",key:"Meta",location:Zt.LEFT},{code:"MetaRight",key:"Meta",location:Zt.RIGHT},{code:"OSLeft",key:"OS",location:Zt.LEFT},{code:"OSRight",key:"OS",location:Zt.RIGHT},{code:"ContextMenu",key:"ContextMenu"},{code:"Tab",key:"Tab"},{code:"CapsLock",key:"CapsLock"},{code:"Backspace",key:"Backspace"},{code:"Enter",key:"Enter"},{code:"Escape",key:"Escape"},{code:"ArrowUp",key:"ArrowUp"},{code:"ArrowDown",key:"ArrowDown"},{code:"ArrowLeft",key:"ArrowLeft"},{code:"ArrowRight",key:"ArrowRight"},{code:"Home",key:"Home"},{code:"End",key:"End"},{code:"Delete",key:"Delete"},{code:"PageUp",key:"PageUp"},{code:"PageDown",key:"PageDown"},{code:"Fn",key:"Fn"},{code:"Symbol",key:"Symbol"},{code:"AltRight",key:"AltGraph"}],j2=[{name:"MouseLeft",pointerType:"mouse",button:"primary"},{name:"MouseRight",pointerType:"mouse",button:"secondary"},{name:"MouseMiddle",pointerType:"mouse",button:"auxiliary"},{name:"TouchA",pointerType:"touch"},{name:"TouchB",pointerType:"touch"},{name:"TouchC",pointerType:"touch"}];function q2(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var YT=class{getButtons(){let e=0;for(let t of Object.keys(this.pressed))e|=2**Number(t);return e}down(e){let t=_c(e.button);if(t in this.pressed){this.pressed[t].push(e);return}return this.pressed[t]=[e],t}up(e){let t=_c(e.button);if(t in this.pressed&&(this.pressed[t]=this.pressed[t].filter(r=>r.name!==e.name),this.pressed[t].length===0))return delete this.pressed[t],t}constructor(){q2(this,"pressed",{})}},$h={primary:0,secondary:1,auxiliary:2,back:3,X1:3,forward:4,X2:4};function _c(e=0){return e in $h?$h[e]:Number(e)}var Bh={1:2,2:1};function Tc(e){return e=_c(e),e in Bh?Bh[e]:e}function D2(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var L2=class{get countPressed(){return this.pressedKeys.size}isPressed(e){return this.pressedKeys.has(e.name)}addPressed(e){return this.pressedKeys.add(e.name)}removePressed(e){return this.pressedKeys.delete(e.name)}constructor(){D2(this,"pressedKeys",new Set)}};function si(e,t){let r=[];for(let i=e;i;i=i.parentElement)r.push(i);let n=[];for(let i=t;i;i=i.parentElement)n.push(i);let o=0;for(;!(o>=r.length||o>=n.length||r[r.length-1-o]!==n[n.length-1-o]);o++);return[r.slice(0,r.length-o),n.slice(0,n.length-o),n.slice(n.length-o)]}function xc({target:e,node:t,offset:r}){return lr(e)?{node:e,offset:r??ur(e).length}:t?{node:t,offset:r??(t.nodeType===3?t.nodeValue.length:t.childNodes.length)}:XT(e,r)}function XT(e,t,r=!0){let n=t===void 0?e.childNodes.length-1:0,o=t===void 0?-1:1;for(;t===void 0?n>=(r?Math.max(e.childNodes.length-1,0):0):n<=e.childNodes.length;){if(t&&n===e.childNodes.length)throw new Error("The given offset is out of bounds.");let i=e.childNodes.item(n),a=String(i.textContent);if(a.length)if(t!==void 0&&a.length<t)t-=a.length;else{if(i.nodeType===1)return XT(i,t,!1);if(i.nodeType===3)return{node:i,offset:t??i.nodeValue.length}}n+=o}return{node:e,offset:e.childNodes.length}}function F2({document:e,target:t,clickCount:r,node:n,offset:o}){if(qB(t))return;let i=lr(t),a=String(i?ur(t):t.textContent),[s,c]=n?[o,o]:$2(a,o,r);if(i)return wo(t,{anchorOffset:s??a.length,focusOffset:c??a.length}),{node:t,start:s??0,end:c??a.length};{let{node:l,offset:d}=xc({target:t,node:n,offset:s}),{node:p,offset:f}=xc({target:t,node:n,offset:c}),m=t.ownerDocument.createRange();try{m.setStart(l,d),m.setEnd(p,f)}catch{throw new Error("The given offset is out of bounds.")}let y=e.getSelection();return y?.removeAllRanges(),y?.addRange(m.cloneRange()),m}}function $2(e,t,r){if(r%3===1||e.length===0)return[t,t];let n=t??e.length;return r%3===2?[n-e.substr(0,t).match(/(\w+|\s+|\W)?$/)[0].length,t===void 0?t:t+e.substr(t).match(/^(\w+|\s+|\W)?/)[0].length]:[n-e.substr(0,t).match(/[^\r\n]*$/)[0].length,t===void 0?t:t+e.substr(t).match(/^[^\r\n]*/)[0].length]}function B2(e,{document:t,target:r,node:n,offset:o}){let i=xc({target:r,node:n,offset:o});if("node"in e){if(i.node===e.node){let a=i.offset<e.start?e.end:e.start,s=i.offset>e.end||i.offset<e.start?i.offset:e.end;wo(e.node,{anchorOffset:a,focusOffset:s})}}else{let a=e.cloneRange(),s=a.comparePoint(i.node,i.offset);s<0?a.setStart(i.node,i.offset):s>0&&a.setEnd(i.node,i.offset);let c=t.getSelection();c?.removeAllRanges(),c?.addRange(a.cloneRange())}}function QT(e,t){var r,n,o,i,a,s,c,l,d,p,f,m,y,g,v,b,T,A,R,P,E,_,x,S;return e.target!==t.target||((r=e.coords)===null||r===void 0?void 0:r.x)!==((n=t.coords)===null||n===void 0?void 0:n.x)||((o=e.coords)===null||o===void 0?void 0:o.y)!==((i=t.coords)===null||i===void 0?void 0:i.y)||((a=e.coords)===null||a===void 0?void 0:a.clientX)!==((s=t.coords)===null||s===void 0?void 0:s.clientX)||((c=e.coords)===null||c===void 0?void 0:c.clientY)!==((l=t.coords)===null||l===void 0?void 0:l.clientY)||((d=e.coords)===null||d===void 0?void 0:d.offsetX)!==((p=t.coords)===null||p===void 0?void 0:p.offsetX)||((f=e.coords)===null||f===void 0?void 0:f.offsetY)!==((m=t.coords)===null||m===void 0?void 0:m.offsetY)||((y=e.coords)===null||y===void 0?void 0:y.pageX)!==((g=t.coords)===null||g===void 0?void 0:g.pageX)||((v=e.coords)===null||v===void 0?void 0:v.pageY)!==((b=t.coords)===null||b===void 0?void 0:b.pageY)||((T=e.coords)===null||T===void 0?void 0:T.screenX)!==((A=t.coords)===null||A===void 0?void 0:A.screenX)||((R=e.coords)===null||R===void 0?void 0:R.screenY)!==((P=t.coords)===null||P===void 0?void 0:P.screenY)||((E=e.caret)===null||E===void 0?void 0:E.node)!==((_=t.caret)===null||_===void 0?void 0:_.node)||((x=e.caret)===null||x===void 0?void 0:x.offset)!==((S=t.caret)===null||S===void 0?void 0:S.offset)}function sn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var U2=class{move(e,t,r){let n=this.position,o=this.getTarget(e);if(this.position=t,!QT(n,t))return;let i=this.getTarget(e),a=this.getEventInit("mousemove"),[s,c]=si(o,i);return{leave:()=>{o!==i&&(e.dispatchUIEvent(o,"mouseout",a),s.forEach(l=>e.dispatchUIEvent(l,"mouseleave",a)))},enter:()=>{o!==i&&(e.dispatchUIEvent(i,"mouseover",a),c.forEach(l=>e.dispatchUIEvent(l,"mouseenter",a)))},move:()=>{r||(e.dispatchUIEvent(i,"mousemove",a),this.modifySelecting(e))}}}down(e,t,r){let n=this.buttons.down(t);if(n===void 0)return;let o=this.getTarget(e);this.buttonDownTarget[n]=o;let i=this.getEventInit("mousedown",t.button),a=Sr(o);!r&&(a||e.dispatchUIEvent(o,"mousedown",i))&&(this.startSelecting(e,i.detail),Kr(o)),!a&&Tc(t.button)===2&&e.dispatchUIEvent(o,"contextmenu",this.getEventInit("contextmenu",t.button))}up(e,t,r){let n=this.buttons.up(t);if(n===void 0)return;let o=this.getTarget(e);if(!Sr(o)){if(!r){let a=this.getEventInit("mouseup",t.button);e.dispatchUIEvent(o,"mouseup",a),this.endSelecting()}let i=si(this.buttonDownTarget[n],o)[2][0];if(i){let a=this.getEventInit("click",t.button);a.detail&&(e.dispatchUIEvent(i,a.button===0?"click":"auxclick",a),a.button===0&&a.detail===2&&e.dispatchUIEvent(i,"dblclick",{...this.getEventInit("dblclick",t.button),detail:a.detail}))}}}resetClickCount(){this.clickCount.reset()}getEventInit(e,t){let r={...this.position.coords};return r.button=Tc(t),r.buttons=this.buttons.getButtons(),e==="mousedown"?r.detail=this.clickCount.getOnDown(r.button):e==="mouseup"?r.detail=this.clickCount.getOnUp(r.button):(e==="click"||e==="auxclick")&&(r.detail=this.clickCount.incOnClick(r.button)),r}getTarget(e){var t;return(t=this.position.target)!==null&&t!==void 0?t:e.config.document.body}startSelecting(e,t){var r,n;this.selecting=F2({document:e.config.document,target:this.getTarget(e),node:(r=this.position.caret)===null||r===void 0?void 0:r.node,offset:(n=this.position.caret)===null||n===void 0?void 0:n.offset,clickCount:t})}modifySelecting(e){var t,r;this.selecting&&B2(this.selecting,{document:e.config.document,target:this.getTarget(e),node:(t=this.position.caret)===null||t===void 0?void 0:t.node,offset:(r=this.position.caret)===null||r===void 0?void 0:r.offset})}endSelecting(){this.selecting=void 0}constructor(){sn(this,"position",{}),sn(this,"buttons",new YT),sn(this,"selecting",void 0),sn(this,"buttonDownTarget",{}),sn(this,"clickCount",new class{incOnClick(e){let t=this.down[e]===void 0?void 0:Number(this.down[e])+1;return this.count=this.count[e]===void 0?{}:{[e]:Number(this.count[e])+1},t}getOnDown(e){var t;this.down={[e]:(t=this.count[e])!==null&&t!==void 0?t:0};var r;return this.count={[e]:(r=this.count[e])!==null&&r!==void 0?r:0},Number(this.count[e])+1}getOnUp(e){return this.down[e]===void 0?void 0:Number(this.down[e])+1}reset(){this.count={}}constructor(){sn(this,"down",{}),sn(this,"count",{})}})}};function ms(e,t){var r;return((r=ZT(e,t))===null||r===void 0?void 0:r.pointerEvents)!=="none"}function H2(e){let t=Bt(e);for(let r=e,n=[];r?.ownerDocument;r=r.parentElement){n.push(r);let o=t.getComputedStyle(r).pointerEvents;if(o&&!["inherit","unset"].includes(o))return{pointerEvents:o,tree:n}}}var Uh=Symbol("Last check for pointer-events");function ZT(e,t){let r=t[Uh];if(!(e.config.pointerEventsCheck!==$a.Never&&(!r||Hh(e.config.pointerEventsCheck,$a.EachApiCall)&&r[Ot.Call]!==Ea(e,Ot.Call)||Hh(e.config.pointerEventsCheck,$a.EachTrigger)&&r[Ot.Trigger]!==Ea(e,Ot.Trigger))))return r?.result;let n=H2(t);return t[Uh]={[Ot.Call]:Ea(e,Ot.Call),[Ot.Trigger]:Ea(e,Ot.Trigger),result:n},n}function ti(e,t){let r=ZT(e,t);if(r?.pointerEvents==="none")throw new Error([`Unable to perform pointer interaction as the element ${r.tree.length>1?"inherits":"has"} \`pointer-events: none\`:`,"",J2(r.tree)].join(`
345
- `))}function J2(e){return e.reverse().map((t,r)=>["".padEnd(r),t.tagName,t.id&&`#${t.id}`,t.hasAttribute("data-testid")&&`(testId=${t.getAttribute("data-testid")})`,V2(t),e.length>1&&r===0&&" <-- This element declared `pointer-events: none`",e.length>1&&r===e.length-1&&" <-- Asserted pointer events here"].filter(Boolean).join("")).join(`
346
- `)}function V2(e){var t;let r;if(e.hasAttribute("aria-label"))r=e.getAttribute("aria-label");else if(e.hasAttribute("aria-labelledby")){var n,o;r=(o=e.ownerDocument.getElementById(e.getAttribute("aria-labelledby")))===null||o===void 0||(n=o.textContent)===null||n===void 0?void 0:n.trim()}else if(_e(e,["button","input","meter","output","progress","select","textarea"])&&!((t=e.labels)===null||t===void 0)&&t.length)r=Array.from(e.labels).map(a=>{var s;return(s=a.textContent)===null||s===void 0?void 0:s.trim()}).join("|");else if(_e(e,"button")){var i;r=(i=e.textContent)===null||i===void 0?void 0:i.trim()}return r=r?.replace(/\n/g," "),Number(r?.length)>30&&(r=`${r?.substring(0,29)}…`),r?`(label=${r})`:""}function Hh(e,t){return(e&t)>0}function fr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var z2=class{init(e){let t=this.getTarget(e),[,r]=si(null,t),n=this.getEventInit();return ti(e,t),e.dispatchUIEvent(t,"pointerover",n),r.forEach(o=>e.dispatchUIEvent(o,"pointerenter",n)),this}move(e,t){let r=this.position,n=this.getTarget(e);if(this.position=t,!QT(r,t))return;let o=this.getTarget(e),i=this.getEventInit(-1),[a,s]=si(n,o);return{leave:()=>{ms(e,n)&&n!==o&&(e.dispatchUIEvent(n,"pointerout",i),a.forEach(c=>e.dispatchUIEvent(c,"pointerleave",i)))},enter:()=>{ti(e,o),n!==o&&(e.dispatchUIEvent(o,"pointerover",i),s.forEach(c=>e.dispatchUIEvent(c,"pointerenter",i)))},move:()=>{e.dispatchUIEvent(o,"pointermove",i)}}}down(e,t=0){if(this.isDown)return;let r=this.getTarget(e);ti(e,r),this.isDown=!0,this.isPrevented=!e.dispatchUIEvent(r,"pointerdown",this.getEventInit(t))}up(e,t=0){if(!this.isDown)return;let r=this.getTarget(e);ti(e,r),this.isPrevented=!1,this.isDown=!1,e.dispatchUIEvent(r,"pointerup",this.getEventInit(t))}release(e){let t=this.getTarget(e),[r]=si(t,null),n=this.getEventInit();ms(e,t)&&(e.dispatchUIEvent(t,"pointerout",n),r.forEach(o=>e.dispatchUIEvent(o,"pointerleave",n))),this.isCancelled=!0}getTarget(e){var t;return(t=this.position.target)!==null&&t!==void 0?t:e.config.document.body}getEventInit(e){return{...this.position.coords,pointerId:this.pointerId,pointerType:this.pointerType,isPrimary:this.isPrimary,button:Tc(e),buttons:this.buttons.getButtons()}}constructor({pointerId:e,pointerType:t,isPrimary:r},n){fr(this,"pointerId",void 0),fr(this,"pointerType",void 0),fr(this,"isPrimary",void 0),fr(this,"buttons",void 0),fr(this,"isMultitouch",!1),fr(this,"isCancelled",!1),fr(this,"isDown",!1),fr(this,"isPrevented",!1),fr(this,"position",{}),this.pointerId=e,this.pointerType=t,this.isPrimary=r,this.isMultitouch=!r,this.buttons=n}};function kr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var G2=class{isKeyPressed(e){return this.devices.get(e.pointerType).isPressed(e)}async press(e,t,r){this.devices.get(t.pointerType).addPressed(t),this.buttons.down(t);let n=this.getPointerName(t),o=t.pointerType==="touch"?this.pointers.new(n,t.pointerType,this.buttons):this.pointers.get(n);o.position=r,o.pointerType!=="touch"&&(this.mouse.position=r),o.pointerType==="touch"&&o.init(e),o.down(e,t.button),o.pointerType!=="touch"&&this.mouse.down(e,t,o.isPrevented)}async move(e,t,r){let n=this.pointers.get(t),o=n.move(e,r),i=n.pointerType==="touch"?void 0:this.mouse.move(e,r,n.isPrevented);o?.leave(),i?.leave(),o?.enter(),i?.enter(),o?.move(),i?.move()}async release(e,t,r){let n=this.devices.get(t.pointerType);n.removePressed(t),this.buttons.up(t);let o=this.pointers.get(this.getPointerName(t)),i=o.isPrevented;if(o.position=r,o.pointerType!=="touch"&&(this.mouse.position=r),n.countPressed===0&&o.up(e,t.button),o.pointerType==="touch"&&o.release(e),o.pointerType==="touch"&&!o.isMultitouch){let a=this.mouse.move(e,r,i);a?.leave(),a?.enter(),a?.move(),this.mouse.down(e,t,i)}if(!o.isMultitouch){let a=this.mouse.move(e,r,i);a?.leave(),a?.enter(),a?.move(),this.mouse.up(e,t,i)}}getPointerName(e){return e.pointerType==="touch"?e.name:e.pointerType}getPreviousPosition(e){return this.pointers.has(e)?this.pointers.get(e).position:void 0}resetClickCount(){this.mouse.resetClickCount()}getMouseTarget(e){var t;return(t=this.mouse.position.target)!==null&&t!==void 0?t:e.config.document.body}setMousePosition(e){this.mouse.position=e,this.pointers.get("mouse").position=e}constructor(e){kr(this,"system",void 0),kr(this,"mouse",void 0),kr(this,"buttons",void 0),kr(this,"devices",new class{get(t){var r,n,o;return(o=(r=this.registry)[n=t])!==null&&o!==void 0?o:r[n]=new L2}constructor(){kr(this,"registry",{})}}),kr(this,"pointers",new class{new(t,r,n){let o=r!=="touch"||!Object.values(this.registry).some(i=>i.pointerType==="touch"&&!i.isCancelled);return o||Object.values(this.registry).forEach(i=>{i.pointerType===r&&!i.isCancelled&&(i.isMultitouch=!0)}),this.registry[t]=new z2({pointerId:this.nextId++,pointerType:r,isPrimary:o},n),this.registry[t]}get(t){if(!this.has(t))throw new Error(`Trying to access pointer "${t}" which does not exist.`);return this.registry[t]}has(t){return t in this.registry}constructor(){kr(this,"registry",{}),kr(this,"nextId",1)}}),this.system=e,this.buttons=new YT,this.mouse=new U2,this.pointers.new("mouse","mouse",this.buttons)}};function Jh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var e0=class{getUIEventModifiers(){return{altKey:this.keyboard.modifiers.Alt,ctrlKey:this.keyboard.modifiers.Control,metaKey:this.keyboard.modifiers.Meta,shiftKey:this.keyboard.modifiers.Shift,modifierAltGraph:this.keyboard.modifiers.AltGraph,modifierCapsLock:this.keyboard.modifiers.CapsLock,modifierFn:this.keyboard.modifiers.Fn,modifierFnLock:this.keyboard.modifiers.FnLock,modifierNumLock:this.keyboard.modifiers.NumLock,modifierScrollLock:this.keyboard.modifiers.ScrollLock,modifierSymbol:this.keyboard.modifiers.Symbol,modifierSymbolLock:this.keyboard.modifiers.SymbolLock}}constructor(){Jh(this,"keyboard",new I2(this)),Jh(this,"pointer",new G2(this))}};async function W2(e){let t=[];return this.config.skipHover||t.push({target:e}),t.push({keys:"[MouseLeft]",target:e}),this.pointer(t)}async function K2(e){return this.pointer([{target:e},"[MouseLeft][MouseLeft]"])}async function Y2(e){return this.pointer([{target:e},"[MouseLeft][MouseLeft][MouseLeft]"])}async function X2(e){return this.pointer({target:e})}async function Q2(e){return ti(this,this.system.pointer.getMouseTarget(this)),this.pointer({target:e.ownerDocument.body})}async function Z2({shift:e}={}){return this.keyboard(e===!0?"{Shift>}{Tab}{/Shift}":e===!1?"[/ShiftLeft][/ShiftRight]{Tab}":"{Tab}")}var Wp=(function(e){return e["{"]="}",e["["]="]",e})(Wp||{});function t0(e,t){let r=0,n=e[r]in Wp?e[r]:"";r+=n.length;let o=new RegExp(`^\\${n}{2}`).test(e)?"":n;return{type:o,...o===""?e5(e,r,t):t5(e,r,o,t)}}function e5(e,t,r){let n=e[t];return r0(n,e,t,r),t+=n.length,{consumedLength:t,descriptor:n,releasePrevious:!1,releaseSelf:!0,repeat:1}}function t5(e,t,r,n){var o,i;let a=e[t]==="/"?"/":"";t+=a.length;let s=r==="{"&&e[t]==="\\";t+=Number(s);let c=s?e[t]:(o=e.slice(t).match(r==="{"?/^\w+|^[^}>/]/:/^\w+/))===null||o===void 0?void 0:o[0];r0(c,e,t,n),t+=c.length;var l;let d=(l=(i=e.slice(t).match(/^>\d+/))===null||i===void 0?void 0:i[0])!==null&&l!==void 0?l:"";t+=d.length;let p=e[t]==="/"||!d&&e[t]===">"?e[t]:"";t+=p.length;let f=Wp[r],m=e[t]===f?f:"";if(!m)throw new Error(n0([!d&&"repeat modifier",!p&&"release modifier",`"${f}"`].filter(Boolean).join(" or "),e[t],e,n));return t+=m.length,{consumedLength:t,descriptor:c,releasePrevious:!!a,repeat:d?Math.max(Number(d.substr(1)),1):1,releaseSelf:r5(p,d)}}function r0(e,t,r,n){if(!e)throw new Error(n0("key descriptor",t[r],t,n))}function r5(e,t){if(e)return e==="/";if(t)return!1}function n0(e,t,r,n){return`Expected ${e} but found "${t??""}" in "${r}"
347
- See ${n==="pointer"?"https://testing-library.com/docs/user-event/pointer#pressing-a-button-or-touching-the-screen":"https://testing-library.com/docs/user-event/keyboard"}
348
- for more information about how userEvent parses your input.`}function n5(e,t){let r=[];do{let{type:o,descriptor:i,consumedLength:a,releasePrevious:s,releaseSelf:c=!0,repeat:l}=t0(t,"keyboard");var n;let d=(n=e.find(p=>{if(o==="["){var f;return((f=p.code)===null||f===void 0?void 0:f.toLowerCase())===i.toLowerCase()}else if(o==="{"){var m;return((m=p.key)===null||m===void 0?void 0:m.toLowerCase())===i.toLowerCase()}return p.key===i}))!==null&&n!==void 0?n:{key:"Unknown",code:"Unknown",[o==="["?"code":"key"]:i};r.push({keyDef:d,releasePrevious:s,releaseSelf:c,repeat:l}),t=t.slice(a)}while(t);return r}async function o5(e){let t=n5(this.config.keyboardMap,e);for(let r=0;r<t.length;r++)await ao(this.config),await i5(this,t[r])}async function i5(e,{keyDef:t,releasePrevious:r,releaseSelf:n,repeat:o}){let{system:i}=e;if(i.keyboard.isKeyPressed(t)&&await i.keyboard.keyup(e,t),!r){for(let a=1;a<=o;a++)await i.keyboard.keydown(e,t),a<o&&await ao(e.config);n&&await i.keyboard.keyup(e,t)}}async function a5(e){for(let t of e.system.keyboard.getPressedKeys())await e.system.keyboard.keyup(e,t)}function o0(e){let t=lr(e)?{"text/plain":s5(e)}:{"text/plain":String(e.ownerDocument.getSelection())},r=Hp(Bt(e));for(let n in t)t[n]&&r.setData(n,t[n]);return r}function s5(e){let t=Mi(e);return ur(e).substring(t.startOffset,t.endOffset)}async function l5(){let e=this.config.document;var t;let r=(t=e.activeElement)!==null&&t!==void 0?t:e.body,n=o0(r);if(n.items.length!==0)return this.dispatchUIEvent(r,"copy",{clipboardData:n})&&this.config.writeToClipboard&&await PT(e,n),n}async function u5(){let e=this.config.document;var t;let r=(t=e.activeElement)!==null&&t!==void 0?t:e.body,n=o0(r);if(n.items.length!==0)return this.dispatchUIEvent(r,"cut",{clipboardData:n})&&this.config.writeToClipboard&&await PT(r.ownerDocument,n),n}async function c5(e){let t=this.config.document;var r;let n=(r=t.activeElement)!==null&&r!==void 0?r:t.body;var o;let i=(o=typeof e=="string"?d5(t,e):e)!==null&&o!==void 0?o:await NB(t).catch(()=>{throw new Error("`userEvent.paste()` without `clipboardData` requires the `ClipboardAPI` to be available.")});this.dispatchUIEvent(n,"paste",{clipboardData:i})}function d5(e,t){let r=Hp(Bt(e));return r.setData("text",t),r}function Vh(e,t){let r=[];do{let{descriptor:n,consumedLength:o,releasePrevious:i,releaseSelf:a=!0}=t0(t,"pointer"),s=e.find(c=>c.name===n);s&&r.push({keyDef:s,releasePrevious:i,releaseSelf:a}),t=t.slice(o)}while(t);return r}async function p5(e){let{pointerMap:t}=this.config,r=[];(Array.isArray(e)?e:[e]).forEach(n=>{typeof n=="string"?r.push(...Vh(t,n)):"keys"in n?r.push(...Vh(t,n.keys).map(o=>({...n,...o}))):r.push(n)});for(let n=0;n<r.length;n++)await ao(this.config),await f5(this,r[n]);this.system.pointer.resetClickCount()}async function f5(e,t){var r,n;let o="pointerName"in t&&t.pointerName?t.pointerName:"keyDef"in t?e.system.pointer.getPointerName(t.keyDef):"mouse",i=e.system.pointer.getPreviousPosition(o);var a,s,c,l;let d={target:(a=t.target)!==null&&a!==void 0?a:m5(e,i),coords:(s=t.coords)!==null&&s!==void 0?s:i?.coords,caret:{node:(c=t.node)!==null&&c!==void 0?c:zh(t)||i==null||(r=i.caret)===null||r===void 0?void 0:r.node,offset:(l=t.offset)!==null&&l!==void 0?l:zh(t)||i==null||(n=i.caret)===null||n===void 0?void 0:n.offset}};"keyDef"in t?(e.system.pointer.isKeyPressed(t.keyDef)&&(ei(e,Ot.Trigger),await e.system.pointer.release(e,t.keyDef,d)),t.releasePrevious||(ei(e,Ot.Trigger),await e.system.pointer.press(e,t.keyDef,d),t.releaseSelf&&(ei(e,Ot.Trigger),await e.system.pointer.release(e,t.keyDef,d)))):(ei(e,Ot.Trigger),await e.system.pointer.move(e,o,d))}function zh(e){var t,r;return!!((r=(t=e.target)!==null&&t!==void 0?t:e.node)!==null&&r!==void 0?r:e.offset!==void 0)}function m5(e,t){if(!t)throw new Error("This pointer has no previous position. Provide a target property!");var r;return(r=t.target)!==null&&r!==void 0?r:e.config.document.body}async function h5(e){if(!ro(e)||Sr(e))throw new Error("clear()` is only supported on editable elements.");if(Kr(e),e.ownerDocument.activeElement!==e)throw new Error("The element to be cleared could not be focused.");if(HT(e),!c2(e))throw new Error("The element content to be cleared could not be selected.");io(this,e,"","deleteContentBackward")}async function y5(e,t){return i0.call(this,!0,e,t)}async function g5(e,t){return i0.call(this,!1,e,t)}async function i0(e,t,r){if(!e&&!t.multiple)throw Se().getElementError("Unable to deselect an option in a non-multiple select. Use selectOptions to change the selection instead.",t);let n=Array.isArray(r)?r:[r],o=Array.from(t.querySelectorAll('option, [role="option"]')),i=n.map(s=>{if(typeof s!="string"&&o.includes(s))return s;{let c=o.find(l=>l.value===s||l.innerHTML===s);if(c)return c;throw Se().getElementError(`Value "${String(s)}" not found in options`,t)}}).filter(s=>!Sr(s));if(Sr(t)||!i.length)return;let a=s=>{s.selected=e,this.dispatchUIEvent(t,"input",{bubbles:!0,cancelable:!1,composed:!0}),this.dispatchUIEvent(t,"change")};if(_e(t,"select"))if(t.multiple)for(let s of i){let c=this.config.pointerEventsCheck===0?!0:ms(this,s);c&&(this.dispatchUIEvent(s,"pointerover"),this.dispatchUIEvent(t,"pointerenter"),this.dispatchUIEvent(s,"mouseover"),this.dispatchUIEvent(t,"mouseenter"),this.dispatchUIEvent(s,"pointermove"),this.dispatchUIEvent(s,"mousemove"),this.dispatchUIEvent(s,"pointerdown"),this.dispatchUIEvent(s,"mousedown")),Kr(t),c&&(this.dispatchUIEvent(s,"pointerup"),this.dispatchUIEvent(s,"mouseup")),a(s),c&&this.dispatchUIEvent(s,"click"),await ao(this.config)}else if(i.length===1){let s=this.config.pointerEventsCheck===0?!0:ms(this,t);s?await this.click(t):Kr(t),a(i[0]),s&&(this.dispatchUIEvent(t,"pointerover"),this.dispatchUIEvent(t,"pointerenter"),this.dispatchUIEvent(t,"mouseover"),this.dispatchUIEvent(t,"mouseenter"),this.dispatchUIEvent(t,"pointerup"),this.dispatchUIEvent(t,"mouseup"),this.dispatchUIEvent(t,"click")),await ao(this.config)}else throw Se().getElementError("Cannot select multiple options on a non-multiple select",t);else if(t.getAttribute("role")==="listbox")for(let s of i)await this.click(s),await this.unhover(s);else throw Se().getElementError("Cannot select options on elements that are neither select nor listbox elements",t)}async function b5(e,t,{skipClick:r=this.config.skipClick,skipAutoClose:n=this.config.skipAutoClose,initialSelectionStart:o,initialSelectionEnd:i}={}){e.disabled||(r||await this.click(e),o!==void 0&&Zo(e,o,i??o),await this.keyboard(t),n||await a5(this))}var Gh=Symbol("files and value properties are mocked");function su(e,t,r){r?Object.defineProperty(e,t,r):delete e[t]}function v5(e,t){var r;(r=e[Gh])===null||r===void 0||r.restore();let n=Object.getOwnPropertyDescriptor(e,"type"),o=Object.getOwnPropertyDescriptor(e,"value"),i=Object.getOwnPropertyDescriptor(e,"files");function a(){su(e,"type",n),su(e,"value",o),su(e,"files",i)}e[Gh]={restore:a},Object.defineProperties(e,{files:{configurable:!0,get:()=>t},value:{configurable:!0,get:()=>t.length?`C:\\fakepath\\${t[0].name}`:"",set(s){if(s==="")a();else{var c;o==null||(c=o.set)===null||c===void 0||c.call(e,s)}}},type:{configurable:!0,get:()=>"file",set(s){s!=="file"&&(a(),e.type=s)}}})}async function E5(e,t){let r=_e(e,"label")?e.control:e;if(!r||!_e(r,"input",{type:"file"}))throw new TypeError(`The ${r===e?"given":"associated"} ${r?.tagName} element does not accept file uploads`);if(Sr(e))return;let n=(Array.isArray(t)?t:[t]).filter(i=>!this.config.applyAccept||w5(i,r.accept)).slice(0,r.multiple?void 0:1),o=()=>{var i;n.length===((i=r.files)===null||i===void 0?void 0:i.length)&&n.every((a,s)=>{var c;return a===((c=r.files)===null||c===void 0?void 0:c.item(s))})||(v5(r,Up(Bt(e),n)),this.dispatchUIEvent(r,"input"),this.dispatchUIEvent(r,"change"))};r.addEventListener("fileDialog",o),await this.click(e),r.removeEventListener("fileDialog",o)}function wa(e){return e.toLowerCase().replace(/(\.|\/)jpg\b/g,"$1jpeg")}function w5(e,t){if(!t)return!0;let r=["audio/*","image/*","video/*"];return wa(t).trim().split(/\s*,\s*/).some(n=>n.startsWith(".")?wa(e.name).endsWith(n):r.includes(n)?wa(e.type).startsWith(n.replace("*","")):wa(e.type)===n)}var Wh={click:W2,dblClick:K2,tripleClick:Y2,hover:X2,unhover:Q2,tab:Z2,keyboard:o5,copy:l5,cut:u5,paste:c5,pointer:p5,clear:h5,deselectOptions:g5,selectOptions:y5,type:b5,upload:E5};function _5(e){return Se().asyncWrapper(e)}var a0={applyAccept:!0,autoModify:!0,delay:0,document:globalThis.document,keyboardMap:k2,pointerMap:j2,pointerEventsCheck:$a.EachApiCall,skipAutoClose:!1,skipClick:!1,skipHover:!1,writeToClipboard:!1,advanceTimers:()=>Promise.resolve()},T5={...a0,writeToClipboard:!0};function s0(e={},t=T5,r){let n=O5(e,r,t);return{...t,...e,document:n}}function x5(e={}){let t=s0(e);KT(t.document),WT(Bt(t.document).HTMLElement);var r;let n=(r=t.document.defaultView)!==null&&r!==void 0?r:globalThis.window;return CB(n),Kp(t).api}function yt({keyboardState:e,pointerState:t,...r}={},n){let o=s0(r,a0,n);KT(o.document),WT(Bt(o.document).HTMLElement);var i;let a=(i=t??e)!==null&&i!==void 0?i:new e0;return{api:Kp(o,a).api,system:a}}function S5(e){return Kp({...this.config,...e},this.system).api}function A5(e,t){function r(...n){return ei(e,Ot.Call),_5(()=>t.apply(e,n).then(async o=>(await ao(e.config),o)))}return Object.defineProperty(r,"name",{get:()=>t.name}),r}function Kp(e,t=new e0){let r={};return Object.assign(r,{config:e,dispatchEvent:GT.bind(r),dispatchUIEvent:x2.bind(r),system:t,levelRefs:{},...Wh}),{instance:r,api:{...Object.fromEntries(Object.entries(Wh).map(([n,o])=>[n,A5(r,o)])),setup:S5.bind(r)}}}function O5(e,t,r){var n,o;return(o=(n=e.document)!==null&&n!==void 0?n:t&&C2(t))!==null&&o!==void 0?o:r.document}var l0={};Tt(l0,{clear:()=>R5,click:()=>C5,copy:()=>P5,cut:()=>M5,dblClick:()=>N5,deselectOptions:()=>I5,hover:()=>k5,keyboard:()=>j5,paste:()=>D5,pointer:()=>q5,selectOptions:()=>L5,tab:()=>H5,tripleClick:()=>F5,type:()=>$5,unhover:()=>B5,upload:()=>U5});function R5(e){return yt().api.clear(e)}function C5(e,t={}){return yt(t,e).api.click(e)}function P5(e={}){return yt(e).api.copy()}function M5(e={}){return yt(e).api.cut()}function N5(e,t={}){return yt(t).api.dblClick(e)}function I5(e,t,r={}){return yt(r).api.deselectOptions(e,t)}function k5(e,t={}){return yt(t).api.hover(e)}async function j5(e,t={}){let{api:r,system:n}=yt(t);return r.keyboard(e).then(()=>n)}async function q5(e,t={}){let{api:r,system:n}=yt(t);return r.pointer(e).then(()=>n)}function D5(e,t){return yt(t).api.paste(e)}function L5(e,t,r={}){return yt(r).api.selectOptions(e,t)}function F5(e,t={}){return yt(t).api.tripleClick(e)}function $5(e,t,r={}){return yt(r,e).api.type(e,t,r)}function B5(e,t={}){let{api:r,system:n}=yt(t);return n.pointer.setMousePosition({target:e}),r.unhover(e)}function U5(e,t,r={}){return yt(r).api.upload(e,t)}function H5(e={}){return yt().api.tab(e)}var u0={...l0,setup:x5},Sc=zi({...e_},{getKeys:e=>Object.keys(e).filter(t=>t!=="eventWrapper"),intercept:(e,t)=>t[0]==="fireEvent"||e.startsWith("find")||e.startsWith("waitFor")});Sc.screen=new Proxy(Sc.screen,{get(e,t,r){return typeof window<"u"&&globalThis.location?.href?.includes("viewMode=docs")&&Ge.warn(xe`
349
- You are using Testing Library's \`screen\` object while the story is rendered in docs mode. This will likely lead to issues, as multiple stories are rendered in the same page and therefore screen will potentially find multiple elements. Use the \`canvas\` utility from the story context instead, which will scope the queries to each story's canvas.
350
-
351
- More info: https://storybook.js.org/docs/writing-tests/interaction-testing?ref=error#querying-the-canvas
352
- `),Reflect.get(e,t,r)}});var{buildQueries:J5,configure:V5,createEvent:z5,fireEvent:G5,findAllByAltText:W5,findAllByDisplayValue:K5,findAllByLabelText:Y5,findAllByPlaceholderText:X5,findAllByRole:Q5,findAllByTestId:Z5,findAllByText:eU,findAllByTitle:tU,findByAltText:rU,findByDisplayValue:nU,findByLabelText:oU,findByPlaceholderText:iU,findByRole:aU,findByTestId:sU,findByText:lU,findByTitle:uU,getAllByAltText:cU,getAllByDisplayValue:dU,getAllByLabelText:pU,getAllByPlaceholderText:fU,getAllByRole:mU,getAllByTestId:hU,getAllByText:yU,getAllByTitle:gU,getByAltText:bU,getByDisplayValue:vU,getByLabelText:EU,getByPlaceholderText:wU,getByRole:_U,getByTestId:TU,getByText:xU,getByTitle:SU,getConfig:AU,getDefaultNormalizer:OU,getElementError:RU,getNodeText:CU,getQueriesForElement:PU,getRoles:MU,getSuggestedQuery:NU,isInaccessible:IU,logDOM:kU,logRoles:jU,prettyDOM:qU,queries:DU,queryAllByAltText:LU,queryAllByAttribute:FU,queryAllByDisplayValue:$U,queryAllByLabelText:BU,queryAllByPlaceholderText:UU,queryAllByRole:HU,queryAllByTestId:JU,queryAllByText:VU,queryAllByTitle:zU,queryByAltText:GU,queryByAttribute:WU,queryByDisplayValue:KU,queryByLabelText:YU,queryByPlaceholderText:XU,queryByRole:QU,queryByTestId:ZU,queryByText:e3,queryByTitle:t3,queryHelpers:r3,screen:n3,waitFor:o3,waitForElementToBeRemoved:i3,within:c0,prettyFormat:a3}=Sc,d0=u0,{userEvent:s3}=zi({userEvent:u0},{intercept:!0,getKeys:e=>Object.keys(e).filter(t=>t!=="eventWrapper")}),{expect:l3}=zi({expect:Gw},{getKeys:(e,t)=>{if("constructor"in e&&e.constructor===k){let r=["assert","__methods","__flags","_obj"],n=Object.keys(Object.getPrototypeOf(e)).filter(o=>!r.includes(o));return t>2?n:[...n,"not"]}return"any"in e?Object.keys(e).filter(r=>r!=="any"):Object.keys(e)},mutate:!0,intercept:e=>e!=="expect"}),u3={mock:()=>{}},Kh=!1,c3=e=>{let{parameters:t}=e;t?.actions?.disable||Kh||(Ww((r,n)=>{let o=r.getMockName();o!=="spy"&&o!=="vi.fn()"&&(!/^next\/.*::/.test(o)||["next/router::useRouter()","next/navigation::useRouter()","next/navigation::redirect","next/cache::","next/headers::cookies().set","next/headers::cookies().delete","next/headers::headers().set","next/headers::headers().delete"].some(i=>o.startsWith(i)))&&na(o)(n)}),Kh=!0)},d3=[c3],Yh=()=>({...uv,...dv}),hs="backgrounds",p3={light:{name:"light",value:"#F8F8F8"},dark:{name:"dark",value:"#333"}},{document:Gt}=globalThis,f3=()=>globalThis?.matchMedia?!!globalThis.matchMedia("(prefers-reduced-motion: reduce)")?.matches:!1,Xh=e=>{(Array.isArray(e)?e:[e]).forEach(m3)},m3=e=>{if(!Gt)return;let t=Gt.getElementById(e);t&&t.parentElement&&t.parentElement.removeChild(t)},h3=(e,t)=>{if(!Gt)return;let r=Gt.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=Gt.createElement("style");n.setAttribute("id",e),n.innerHTML=t,Gt.head.appendChild(n)}},y3=(e,t,r)=>{if(!Gt)return;let n=Gt.getElementById(e);if(n)n.innerHTML!==t&&(n.innerHTML=t);else{let o=Gt.createElement("style");o.setAttribute("id",e),o.innerHTML=t;let i=`addon-backgrounds-grid${r?`-docs-${r}`:""}`,a=Gt.getElementById(i);a?a.parentElement?.insertBefore(o,a):Gt.head.appendChild(o)}},g3={cellSize:100,cellAmount:10,opacity:.8},Qh="addon-backgrounds",Zh="addon-backgrounds-grid",b3=f3()?"":"transition: background-color 0.3s;",v3=(e,t)=>{let{globals:r={},parameters:n={},viewMode:o,id:i}=t,{options:a=p3,disable:s,grid:c=g3}=n[hs]||{},l=r[hs]||{},d=typeof l=="string"?l:l?.value,p=d?a[d]:void 0,f=typeof p=="string"?p:p?.value||"transparent",m=typeof l=="string"?!1:l.grid||!1,y=!!p&&!s,g=o==="docs"?`#anchor--${i} .docs-story`:".sb-show-main",v=o==="docs"?`#anchor--${i} .docs-story`:".sb-show-main",b=n.layout===void 0||n.layout==="padded",T=o==="docs"?20:b?16:0,{cellAmount:A,cellSize:R,opacity:P,offsetX:E=T,offsetY:_=T}=c,x=o==="docs"?`${Qh}-docs-${i}`:`${Qh}-color`,S=o==="docs"?i:null;_n(()=>{let j=`
353
- ${g} {
354
- background: ${f} !important;
355
- ${b3}
356
- }`;if(!y){Xh(x);return}y3(x,j,S)},[g,x,S,y,f]);let F=o==="docs"?`${Zh}-docs-${i}`:`${Zh}`;return _n(()=>{if(!m){Xh(F);return}let j=[`${R*A}px ${R*A}px`,`${R*A}px ${R*A}px`,`${R}px ${R}px`,`${R}px ${R}px`].join(", "),J=`
357
- ${v} {
358
- background-size: ${j} !important;
359
- background-position: ${E}px ${_}px, ${E}px ${_}px, ${E}px ${_}px, ${E}px ${_}px !important;
360
- background-blend-mode: difference !important;
361
- background-image: linear-gradient(rgba(130, 130, 130, ${P}) 1px, transparent 1px),
362
- linear-gradient(90deg, rgba(130, 130, 130, ${P}) 1px, transparent 1px),
363
- linear-gradient(rgba(130, 130, 130, ${P/2}) 1px, transparent 1px),
364
- linear-gradient(90deg, rgba(130, 130, 130, ${P/2}) 1px, transparent 1px) !important;
365
- }
366
- `;h3(F,J)},[A,R,v,F,m,E,_,P]),e()},E3=globalThis.FEATURES?.backgrounds?[v3]:[],w3={[hs]:{grid:{cellSize:20,opacity:.5,cellAmount:5},disable:!1}},_3={[hs]:{value:void 0,grid:!1}},ey=()=>({decorators:E3,parameters:w3,initialGlobals:_3}),{step:T3}=zi({step:async(e,t,r)=>t(r)},{intercept:!0}),ty=()=>({parameters:{throwPlayFunctionExceptions:!1},runStep:T3}),x3=e=>{let t=getComputedStyle(e),r=e.getBoundingClientRect();return!(r.width>0&&r.height>0&&t.visibility!=="hidden"&&Number(t.opacity)>0&&t.display!=="none")},S3=async({reporting:e,canvasElement:t,globals:r})=>{try{if(!r.ghostStories)return;let n=x3(t.firstElementChild??t);n&&e.addReport({type:"render-analysis",version:1,result:{emptyRender:n},status:"warning"})}catch{}},ry=()=>({afterEach:S3}),ul="storybook/highlight",A3=`${ul}/add`,O3=`${ul}/remove`,R3=`${ul}/reset`,C3=`${ul}/scroll-into-view`,ny=2147483647,$r=28,oy={chevronLeft:["M9.10355 10.1464C9.29882 10.3417 9.29882 10.6583 9.10355 10.8536C8.90829 11.0488 8.59171 11.0488 8.39645 10.8536L4.89645 7.35355C4.70118 7.15829 4.70118 6.84171 4.89645 6.64645L8.39645 3.14645C8.59171 2.95118 8.90829 2.95118 9.10355 3.14645C9.29882 3.34171 9.29882 3.65829 9.10355 3.85355L5.95711 7L9.10355 10.1464Z"],chevronRight:["M4.89645 10.1464C4.70118 10.3417 4.70118 10.6583 4.89645 10.8536C5.09171 11.0488 5.40829 11.0488 5.60355 10.8536L9.10355 7.35355C9.29882 7.15829 9.29882 6.84171 9.10355 6.64645L5.60355 3.14645C5.40829 2.95118 5.09171 2.95118 4.89645 3.14645C4.70118 3.34171 4.70118 3.65829 4.89645 3.85355L8.04289 7L4.89645 10.1464Z"],info:["M7 5.5a.5.5 0 01.5.5v4a.5.5 0 01-1 0V6a.5.5 0 01.5-.5zM7 4.5A.75.75 0 107 3a.75.75 0 000 1.5z","M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z"],shareAlt:["M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-4.5a.5.5 0 00-1 0v4.5H2v-10h4.5a.5.5 0 000-1H2z","M7.354 7.357L12 2.711v1.793a.5.5 0 001 0v-3a.5.5 0 00-.5-.5h-3a.5.5 0 100 1h1.793L6.646 6.65a.5.5 0 10.708.707z"]},P3="svg,path,rect,circle,line,polyline,polygon,ellipse,text".split(","),tt=(e,t={},r)=>{let n=P3.includes(e)?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return Object.entries(t).forEach(([o,i])=>{/[A-Z]/.test(o)?(o==="onClick"&&(n.addEventListener("click",i),n.addEventListener("keydown",a=>{(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),i())})),o==="onMouseEnter"&&n.addEventListener("mouseenter",i),o==="onMouseLeave"&&n.addEventListener("mouseleave",i)):n.setAttribute(o,i)}),r?.forEach(o=>{if(!(o==null||o===!1))try{n.appendChild(o)}catch{n.appendChild(document.createTextNode(String(o)))}}),n},_a=e=>oy[e]&&tt("svg",{width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},oy[e].map(t=>tt("path",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd",d:t}))),M3=e=>{if("elements"in e){let{elements:n,color:o,style:i}=e;return{id:void 0,priority:0,selectors:n,styles:{outline:`2px ${i} ${o}`,outlineOffset:"2px",boxShadow:"0 0 0 6px rgba(255,255,255,0.6)"},menu:void 0}}let{menu:t,...r}=e;return{id:void 0,priority:0,styles:{outline:"2px dashed #029cfd"},...r,menu:Array.isArray(t)?t.every(Array.isArray)?t:[t]:void 0}},N3=e=>e instanceof Function,Go=new Map,ln=new Map,Ta=new Map,mr=e=>{let t=Symbol();return ln.set(t,[]),Go.set(t,e),{get:()=>Go.get(t),set:r=>{let n=Go.get(t),o=N3(r)?r(n):r;o!==n&&(Go.set(t,o),ln.get(t)?.forEach(i=>{Ta.get(i)?.(),Ta.set(i,i(o))}))},subscribe:r=>(ln.get(t)?.push(r),()=>{let n=ln.get(t);n&&ln.set(t,n.filter(o=>o!==r))}),teardown:()=>{ln.get(t)?.forEach(r=>{Ta.get(r)?.(),Ta.delete(r)}),ln.delete(t),Go.delete(t)}}},iy=e=>{let t=document.getElementById("storybook-root"),r=new Map;for(let n of e){let{priority:o=0}=n;for(let i of n.selectors){let a=[...document.querySelectorAll(`:is(${i}):not([id^="storybook-"], [id^="storybook-"] *, [class^="sb-"], [class^="sb-"] *)`),...t?.querySelectorAll(i)||[]];for(let s of a){let c=r.get(s);(!c||c.priority<=o)&&r.set(s,{...n,priority:o,selectors:Array.from(new Set((c?.selectors||[]).concat(i)))})}}}return r},I3=e=>Array.from(e.entries()).map(([t,{selectors:r,styles:n,hoverStyles:o,focusStyles:i,menu:a}])=>{let{top:s,left:c,width:l,height:d}=t.getBoundingClientRect(),{position:p}=getComputedStyle(t);return{element:t,selectors:r,styles:n,hoverStyles:o,focusStyles:i,menu:a,top:p==="fixed"?s:s+window.scrollY,left:p==="fixed"?c:c+window.scrollX,width:l,height:d}}).sort((t,r)=>r.width*r.height-t.width*t.height),ay=(e,t)=>{let r=e.getBoundingClientRect(),{x:n,y:o}=t;return r?.top&&r?.left&&n>=r.left&&n<=r.left+r.width&&o>=r.top&&o<=r.top+r.height},sy=(e,t,r)=>{if(!t||!r)return!1;let{left:n,top:o,width:i,height:a}=e;a<$r&&(o=o-Math.round(($r-a)/2),a=$r),i<$r&&(n=n-Math.round(($r-i)/2),i=$r),t.style.position==="fixed"&&(n+=window.scrollX,o+=window.scrollY);let{x:s,y:c}=r;return s>=n&&s<=n+i&&c>=o&&c<=o+a},k3=(e,t,r={})=>{let{x:n,y:o}=t,{margin:i=5,topOffset:a=0,centered:s=!1}=r,{scrollX:c,scrollY:l,innerHeight:d,innerWidth:p}=window,f=Math.min(e.style.position==="fixed"?o-l:o,d-e.clientHeight-i-a+l),m=s?e.clientWidth/2:0,y=e.style.position==="fixed"?Math.max(Math.min(n-c,p-m-i),m+i):Math.max(Math.min(n,p-m-i+c),m+i+c);Object.assign(e.style,{...y!==n&&{left:`${y}px`},...f!==o&&{top:`${f}px`}})},ly=e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.showPopover()},j3=e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.hidePopover()},q3=e=>({top:e.top,left:e.left,width:e.width,height:e.height,selectors:e.selectors,element:{attributes:Object.fromEntries(Array.from(e.element.attributes).map(t=>[t.name,t.value])),localName:e.element.localName,tagName:e.element.tagName,outerHTML:e.element.outerHTML}}),Le="storybook-highlights-menu",uy="storybook-highlights-root",D3="storybook-root",L3=e=>{if(globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED)return;globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED=!0;let{document:t}=globalThis,r=mr([]),n=mr(new Map),o=mr([]),i=mr(),a=mr(),s=mr([]),c=mr([]),l=mr(),d=mr(),p=t.getElementById(uy);r.subscribe(()=>{p||(p=tt("div",{id:uy}),t.body.appendChild(p))}),r.subscribe(_=>{let x=t.getElementById(D3);if(!x)return;n.set(iy(_));let S=new MutationObserver(()=>n.set(iy(_)));return S.observe(x,{subtree:!0,childList:!0}),()=>{S.disconnect()}}),n.subscribe(_=>{let x=()=>requestAnimationFrame(()=>o.set(I3(_))),S=new ResizeObserver(x);S.observe(t.body),Array.from(_.keys()).forEach(j=>S.observe(j));let F=Array.from(t.body.querySelectorAll("*")).filter(j=>{let{overflow:J,overflowX:N,overflowY:O}=window.getComputedStyle(j);return["auto","scroll"].some(q=>[J,N,O].includes(q))});return F.forEach(j=>j.addEventListener("scroll",x)),()=>{S.disconnect(),F.forEach(j=>j.removeEventListener("scroll",x))}}),n.subscribe(_=>{let x=Array.from(_.keys()).filter(({style:F})=>F.position==="sticky"),S=()=>requestAnimationFrame(()=>{o.set(F=>F.map(j=>{if(x.includes(j.element)){let{top:J,left:N}=j.element.getBoundingClientRect();return{...j,top:J+window.scrollY,left:N+window.scrollX}}return j}))});return t.addEventListener("scroll",S),()=>t.removeEventListener("scroll",S)}),n.subscribe(_=>{s.set(x=>x.filter(({element:S})=>_.has(S)))}),s.subscribe(_=>{_.length?(d.set(x=>_.some(S=>S.element===x?.element)?x:void 0),l.set(x=>_.some(S=>S.element===x?.element)?x:void 0)):(d.set(void 0),l.set(void 0),i.set(void 0))});let f=new Map(new Map);r.subscribe(_=>{_.forEach(({keyframes:x})=>{if(x){let S=f.get(x);S||(S=t.createElement("style"),S.setAttribute("data-highlight","keyframes"),f.set(x,S),t.head.appendChild(S)),S.innerHTML=x}}),f.forEach((x,S)=>{_.some(F=>F.keyframes===S)||(x.remove(),f.delete(S))})});let m=new Map(new Map);o.subscribe(_=>{_.forEach(x=>{let S=m.get(x.element);if(p&&!S){let F={popover:"manual","data-highlight-dimensions":`w${x.width.toFixed(0)}h${x.height.toFixed(0)}`,"data-highlight-coordinates":`x${x.left.toFixed(0)}y${x.top.toFixed(0)}`};S=p.appendChild(tt("div",F,[tt("div")])),m.set(x.element,S)}}),m.forEach((x,S)=>{_.some(({element:F})=>F===S)||(x.remove(),m.delete(S))})}),o.subscribe(_=>{let x=_.filter(F=>F.menu);if(!x.length)return;let S=F=>{requestAnimationFrame(()=>{let j=t.getElementById(Le),J={x:F.pageX,y:F.pageY};if(j&&!ay(j,J)){let N=x.filter(O=>{let q=m.get(O.element);return sy(O,q,J)});i.set(N.length?J:void 0),s.set(N)}})};return t.addEventListener("click",S),()=>t.removeEventListener("click",S)});let y=()=>{let _=t.getElementById(Le),x=a.get();!x||_&&ay(_,x)||c.set(S=>{let F=o.get().filter(O=>{let q=m.get(O.element);return sy(O,q,x)}),j=S.filter(O=>F.includes(O)),J=F.filter(O=>!S.includes(O)),N=S.length-j.length;return J.length||N?[...j,...J]:S})};a.subscribe(y),o.subscribe(y);let g=()=>{let _=d.get(),x=_?[_]:s.get(),S=x.length===1?x[0]:l.get(),F=i.get()!==void 0;o.get().forEach(j=>{let J=m.get(j.element);if(J){let N=S===j,O=F?S?N:x.includes(j):c.get()?.includes(j);Object.assign(J.style,{animation:"none",background:"transparent",border:"none",boxSizing:"border-box",outline:"none",outlineOffset:"0px",...j.styles,...O?j.hoverStyles:{},...N?j.focusStyles:{},position:getComputedStyle(j.element).position==="fixed"?"fixed":"absolute",zIndex:ny-10,top:`${j.top}px`,left:`${j.left}px`,width:`${j.width}px`,height:`${j.height}px`,margin:0,padding:0,cursor:j.menu&&O?"pointer":"default",pointerEvents:j.menu?"auto":"none",display:"flex",alignItems:"center",justifyContent:"center",overflow:"visible"}),Object.assign(J.children[0].style,{width:"100%",height:"100%",minHeight:`${$r}px`,minWidth:`${$r}px`,boxSizing:"content-box",padding:J.style.outlineWidth||"0px"}),ly(J)}})};o.subscribe(g),s.subscribe(g),c.subscribe(g),l.subscribe(g),d.subscribe(g);let v=()=>{if(!p)return;let _=t.getElementById(Le);if(_)_.innerHTML="";else{let j={id:Le,popover:"manual"};_=p.appendChild(tt("div",j)),p.appendChild(tt("style",{},[`
367
- #${Le} {
368
- position: absolute;
369
- z-index: ${ny};
370
- width: 300px;
371
- padding: 0px;
372
- margin: 15px 0 0 0;
373
- transform: translateX(-50%);
374
- font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
375
- font-size: 12px;
376
- background: white;
377
- border: none;
378
- border-radius: 6px;
379
- box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05), 0 5px 15px 0 rgba(0, 0, 0, 0.1);
380
- color: #2E3438;
381
- }
382
- #${Le} ul {
383
- list-style: none;
384
- margin: 0;
385
- padding: 0;
386
- }
387
- #${Le} > ul {
388
- max-height: 300px;
389
- overflow-y: auto;
390
- padding: 4px 0;
391
- }
392
- #${Le} li {
393
- padding: 0 4px;
394
- margin: 0;
395
- }
396
- #${Le} li > :not(ul) {
397
- display: flex;
398
- padding: 8px;
399
- margin: 0;
400
- align-items: center;
401
- gap: 8px;
402
- border-radius: 4px;
403
- }
404
- #${Le} button {
405
- width: 100%;
406
- border: 0;
407
- background: transparent;
408
- color: inherit;
409
- text-align: left;
410
- font-family: inherit;
411
- font-size: inherit;
412
- }
413
- #${Le} button:focus-visible {
414
- outline-color: #029CFD;
415
- }
416
- #${Le} button:hover {
417
- background: rgba(2, 156, 253, 0.07);
418
- color: #029CFD;
419
- cursor: pointer;
420
- }
421
- #${Le} li code {
422
- white-space: nowrap;
423
- overflow: hidden;
424
- text-overflow: ellipsis;
425
- line-height: 16px;
426
- font-size: 11px;
427
- }
428
- #${Le} li svg {
429
- flex-shrink: 0;
430
- margin: 1px;
431
- color: #73828C;
432
- }
433
- #${Le} li > button:hover svg, #${Le} li > button:focus-visible svg {
434
- color: #029CFD;
435
- }
436
- #${Le} .element-list li svg {
437
- display: none;
438
- }
439
- #${Le} li.selectable svg, #${Le} li.selected svg {
440
- display: block;
441
- }
442
- #${Le} .menu-list {
443
- border-top: 1px solid rgba(38, 85, 115, 0.15);
444
- }
445
- #${Le} .menu-list > li:not(:last-child) {
446
- padding-bottom: 4px;
447
- margin-bottom: 4px;
448
- border-bottom: 1px solid rgba(38, 85, 115, 0.15);
449
- }
450
- #${Le} .menu-items, #${Le} .menu-items li {
451
- padding: 0;
452
- }
453
- #${Le} .menu-item {
454
- display: flex;
455
- }
456
- #${Le} .menu-item-content {
457
- display: flex;
458
- flex-direction: column;
459
- flex-grow: 1;
460
- }
461
- `]))}let x=d.get(),S=x?[x]:s.get();if(S.length&&(_.style.position=getComputedStyle(S[0].element).position==="fixed"?"fixed":"absolute",_.appendChild(tt("ul",{class:"element-list"},S.map(j=>{let J=S.length>1&&!!j.menu?.some(q=>q.some($=>!$.selectors||$.selectors.some(V=>j.selectors.includes(V)))),N=J?{class:"selectable",onClick:()=>d.set(j),onMouseEnter:()=>l.set(j),onMouseLeave:()=>l.set(void 0)}:x?{class:"selected",onClick:()=>d.set(void 0)}:{},O=J||x;return tt("li",N,[tt(O?"button":"div",O?{type:"button"}:{},[x?_a("chevronLeft"):null,tt("code",{},[j.element.outerHTML]),J?_a("chevronRight"):null])])})))),d.get()||s.get().length===1){let j=d.get()||s.get()[0],J=j.menu?.filter(N=>N.some(O=>!O.selectors||O.selectors.some(q=>j.selectors.includes(q))));J?.length&&_.appendChild(tt("ul",{class:"menu-list"},J.map(N=>tt("li",{},[tt("ul",{class:"menu-items"},N.map(({id:O,title:q,description:$,iconLeft:V,iconRight:Y,clickEvent:oe})=>{let ue=oe&&(()=>e.emit(oe,O,q3(j)));return tt("li",{},[tt(ue?"button":"div",ue?{class:"menu-item",type:"button",onClick:ue}:{class:"menu-item"},[V?_a(V):null,tt("div",{class:"menu-item-content"},[tt($?"strong":"span",{},[q]),$&&tt("span",{},[$])]),Y?_a(Y):null])])}))]))))}let F=i.get();F?(Object.assign(_.style,{display:"block",left:`${_.style.position==="fixed"?F.x-window.scrollX:F.x}px`,top:`${_.style.position==="fixed"?F.y-window.scrollY:F.y}px`}),ly(_),requestAnimationFrame(()=>k3(_,F,{topOffset:15,centered:!0}))):(j3(_),Object.assign(_.style,{display:"none"}))};s.subscribe(v),d.subscribe(v);let b=_=>{let x=M3(_);r.set(S=>{let F=x.id?S.filter(j=>j.id!==x.id):S;return x.selectors?.length?[...F,x]:F})},T=_=>{_&&r.set(x=>x.filter(S=>S.id!==_))},A=()=>{r.set([]),n.set(new Map),o.set([]),i.set(void 0),a.set(void 0),s.set([]),c.set([]),l.set(void 0),d.set(void 0)},R,P=(_,x)=>{let S="scrollIntoView-highlight";clearTimeout(R),T(S);let F=t.querySelector(_);if(!F){console.warn(`Cannot scroll into view: ${_} not found`);return}F.scrollIntoView({behavior:"smooth",block:"center",...x});let j=`kf-${Math.random().toString(36).substring(2,15)}`;r.set(J=>[...J,{id:S,priority:1e3,selectors:[_],styles:{outline:"2px solid #1EA7FD",outlineOffset:"-1px",animation:`${j} 3s linear forwards`},keyframes:`@keyframes ${j} {
462
- 0% { outline: 2px solid #1EA7FD; }
463
- 20% { outline: 2px solid #1EA7FD00; }
464
- 40% { outline: 2px solid #1EA7FD; }
465
- 60% { outline: 2px solid #1EA7FD00; }
466
- 80% { outline: 2px solid #1EA7FD; }
467
- 100% { outline: 2px solid #1EA7FD00; }
468
- }`}]),R=setTimeout(()=>T(S),3500)},E=_=>{requestAnimationFrame(()=>a.set({x:_.pageX,y:_.pageY}))};t.body.addEventListener("mousemove",E),e.on(A3,b),e.on(O3,T),e.on(R3,A),e.on(C3,P),e.on(wn,({newPhase:_})=>{_==="loading"&&A()})};globalThis?.FEATURES?.highlight&&Ft?.ready&&Ft.ready().then(L3);var cy=()=>({}),F3="measureEnabled";function p0(){let e=re.document.documentElement,t=Math.max(e.scrollHeight,e.offsetHeight);return{width:Math.max(e.scrollWidth,e.offsetWidth),height:t}}function $3(){let e=re.document.createElement("canvas");e.id="storybook-addon-measure";let t=e.getContext("2d");Tr(t!=null);let{width:r,height:n}=p0();return Ac(e,t,{width:r,height:n}),e.style.position="absolute",e.style.left="0",e.style.top="0",e.style.zIndex="2147483647",e.style.pointerEvents="none",re.document.body.appendChild(e),{canvas:e,context:t,width:r,height:n}}function Ac(e,t,{width:r,height:n}){e.style.width=`${r}px`,e.style.height=`${n}px`;let o=re.window.devicePixelRatio;e.width=Math.floor(r*o),e.height=Math.floor(n*o),t.scale(o,o)}var rt={};function B3(){rt.canvas||(rt=$3())}function f0(){rt.context&&rt.context.clearRect(0,0,rt.width??0,rt.height??0)}function U3(e){f0(),e(rt.context)}function H3(){Tr(rt.canvas),Tr(rt.context),Ac(rt.canvas,rt.context,{width:0,height:0});let{width:e,height:t}=p0();Ac(rt.canvas,rt.context,{width:e,height:t}),rt.width=e,rt.height=t}function J3(){rt.canvas&&(f0(),rt.canvas.parentNode?.removeChild(rt.canvas),rt={})}var Dn={margin:"#f6b26b",border:"#ffe599",padding:"#93c47d",content:"#6fa8dc",text:"#232020"},wr=6;function dy(e,{x:t,y:r,w:n,h:o,r:i}){t=t-n/2,r=r-o/2,n<2*i&&(i=n/2),o<2*i&&(i=o/2),e.beginPath(),e.moveTo(t+i,r),e.arcTo(t+n,r,t+n,r+o,i),e.arcTo(t+n,r+o,t,r+o,i),e.arcTo(t,r+o,t,r,i),e.arcTo(t,r,t+n,r,i),e.closePath()}function V3(e,{padding:t,border:r,width:n,height:o,top:i,left:a}){let s=n-r.left-r.right-t.left-t.right,c=o-t.top-t.bottom-r.top-r.bottom,l=a+r.left+t.left,d=i+r.top+t.top;return e==="top"?l+=s/2:e==="right"?(l+=s,d+=c/2):e==="bottom"?(l+=s/2,d+=c):e==="left"?d+=c/2:e==="center"&&(l+=s/2,d+=c/2),{x:l,y:d}}function z3(e,t,{margin:r,border:n,padding:o},i,a){let s=f=>0,c=0,l=0,d=a?1:.5,p=a?i*2:0;return e==="padding"?s=f=>o[f]*d+p:e==="border"?s=f=>o[f]+n[f]*d+p:e==="margin"&&(s=f=>o[f]+n[f]+r[f]*d+p),t==="top"?l=-s("top"):t==="right"?c=s("right"):t==="bottom"?l=s("bottom"):t==="left"&&(c=-s("left")),{offsetX:c,offsetY:l}}function G3(e,t){return Math.abs(e.x-t.x)<Math.abs(e.w+t.w)/2&&Math.abs(e.y-t.y)<Math.abs(e.h+t.h)/2}function W3(e,t,r){return e==="top"?t.y=r.y-r.h-wr:e==="right"?t.x=r.x+r.w/2+wr+t.w/2:e==="bottom"?t.y=r.y+r.h+wr:e==="left"&&(t.x=r.x-r.w/2-wr-t.w/2),{x:t.x,y:t.y}}function m0(e,t,{x:r,y:n,w:o,h:i},a){return dy(e,{x:r,y:n,w:o,h:i,r:3}),e.fillStyle=`${Dn[t]}dd`,e.fill(),e.strokeStyle=Dn[t],e.stroke(),e.fillStyle=Dn.text,e.fillText(a,r,n),dy(e,{x:r,y:n,w:o,h:i,r:3}),e.fillStyle=`${Dn[t]}dd`,e.fill(),e.strokeStyle=Dn[t],e.stroke(),e.fillStyle=Dn.text,e.fillText(a,r,n),{x:r,y:n,w:o,h:i}}function h0(e,t){e.font="600 12px monospace",e.textBaseline="middle",e.textAlign="center";let r=e.measureText(t),n=r.actualBoundingBoxAscent+r.actualBoundingBoxDescent,o=r.width+wr*2,i=n+wr*2;return{w:o,h:i}}function K3(e,t,{type:r,position:n="center",text:o},i,a=!1){let{x:s,y:c}=V3(n,t),{offsetX:l,offsetY:d}=z3(r,n,t,wr+1,a);s+=l,c+=d;let{w:p,h:f}=h0(e,o);if(i&&G3({x:s,y:c,w:p,h:f},i)){let m=W3(n,{x:s,y:c,w:p},i);s=m.x,c=m.y}return m0(e,r,{x:s,y:c,w:p,h:f},o)}function Y3(e,{w:t,h:r}){let n=t*.5+wr,o=r*.5+wr;return{offsetX:(e.x==="left"?-1:1)*n,offsetY:(e.y==="top"?-1:1)*o}}function X3(e,t,{type:r,text:n}){let{floatingAlignment:o,extremities:i}=t,a=i[o.x],s=i[o.y],{w:c,h:l}=h0(e,n),{offsetX:d,offsetY:p}=Y3(o,{w:c,h:l});return a+=d,s+=p,m0(e,r,{x:a,y:s,w:c,h:l},n)}function Wo(e,t,r,n){let o=[];r.forEach((i,a)=>{let s=n&&i.position==="center"?X3(e,t,i):K3(e,t,i,o[a-1],n);o[a]=s})}function Q3(e,t,r,n){let o=r.reduce((i,a)=>(Object.prototype.hasOwnProperty.call(i,a.position)||(i[a.position]=[]),i[a.position]?.push(a),i),{});o.top&&Wo(e,t,o.top,n),o.right&&Wo(e,t,o.right,n),o.bottom&&Wo(e,t,o.bottom,n),o.left&&Wo(e,t,o.left,n),o.center&&Wo(e,t,o.center,n)}var cl={margin:"#f6b26ba8",border:"#ffe599a8",padding:"#93c47d8c",content:"#6fa8dca8"},py=30;function qt(e){return parseInt(e.replace("px",""),10)}function Un(e){return Number.isInteger(e)?e:e.toFixed(2)}function Yp(e){return e.filter(t=>t.text!==0&&t.text!=="0")}function Z3(e){let t={top:re.window.scrollY,bottom:re.window.scrollY+re.window.innerHeight,left:re.window.scrollX,right:re.window.scrollX+re.window.innerWidth},r={top:Math.abs(t.top-e.top),bottom:Math.abs(t.bottom-e.bottom),left:Math.abs(t.left-e.left),right:Math.abs(t.right-e.right)};return{x:r.left>r.right?"left":"right",y:r.top>r.bottom?"top":"bottom"}}function eH(e){let t=re.getComputedStyle(e),{top:r,left:n,right:o,bottom:i,width:a,height:s}=e.getBoundingClientRect(),{marginTop:c,marginBottom:l,marginLeft:d,marginRight:p,paddingTop:f,paddingBottom:m,paddingLeft:y,paddingRight:g,borderBottomWidth:v,borderTopWidth:b,borderLeftWidth:T,borderRightWidth:A}=t;r=r+re.window.scrollY,n=n+re.window.scrollX,i=i+re.window.scrollY,o=o+re.window.scrollX;let R={top:qt(c),bottom:qt(l),left:qt(d),right:qt(p)},P={top:qt(f),bottom:qt(m),left:qt(y),right:qt(g)},E={top:qt(b),bottom:qt(v),left:qt(T),right:qt(A)},_={top:r-R.top,bottom:i+R.bottom,left:n-R.left,right:o+R.right};return{margin:R,padding:P,border:E,top:r,left:n,bottom:i,right:o,width:a,height:s,extremities:_,floatingAlignment:Z3(_)}}function tH(e,{margin:t,width:r,height:n,top:o,left:i,bottom:a,right:s}){let c=n+t.bottom+t.top;e.fillStyle=cl.margin,e.fillRect(i,o-t.top,r,t.top),e.fillRect(s,o-t.top,t.right,c),e.fillRect(i,a,r,t.bottom),e.fillRect(i-t.left,o-t.top,t.left,c);let l=[{type:"margin",text:Un(t.top),position:"top"},{type:"margin",text:Un(t.right),position:"right"},{type:"margin",text:Un(t.bottom),position:"bottom"},{type:"margin",text:Un(t.left),position:"left"}];return Yp(l)}function rH(e,{padding:t,border:r,width:n,height:o,top:i,left:a,bottom:s,right:c}){let l=n-r.left-r.right,d=o-t.top-t.bottom-r.top-r.bottom;e.fillStyle=cl.padding,e.fillRect(a+r.left,i+r.top,l,t.top),e.fillRect(c-t.right-r.right,i+t.top+r.top,t.right,d),e.fillRect(a+r.left,s-t.bottom-r.bottom,l,t.bottom),e.fillRect(a+r.left,i+t.top+r.top,t.left,d);let p=[{type:"padding",text:t.top,position:"top"},{type:"padding",text:t.right,position:"right"},{type:"padding",text:t.bottom,position:"bottom"},{type:"padding",text:t.left,position:"left"}];return Yp(p)}function nH(e,{border:t,width:r,height:n,top:o,left:i,bottom:a,right:s}){let c=n-t.top-t.bottom;e.fillStyle=cl.border,e.fillRect(i,o,r,t.top),e.fillRect(i,a-t.bottom,r,t.bottom),e.fillRect(i,o+t.top,t.left,c),e.fillRect(s-t.right,o+t.top,t.right,c);let l=[{type:"border",text:t.top,position:"top"},{type:"border",text:t.right,position:"right"},{type:"border",text:t.bottom,position:"bottom"},{type:"border",text:t.left,position:"left"}];return Yp(l)}function oH(e,{padding:t,border:r,width:n,height:o,top:i,left:a}){let s=n-r.left-r.right-t.left-t.right,c=o-t.top-t.bottom-r.top-r.bottom;return e.fillStyle=cl.content,e.fillRect(a+r.left+t.left,i+r.top+t.top,s,c),[{type:"content",position:"center",text:`${Un(s)} x ${Un(c)}`}]}function iH(e){return t=>{if(e&&t){let r=eH(e),n=tH(t,r),o=rH(t,r),i=nH(t,r),a=oH(t,r),s=r.width<=py*3||r.height<=py;Q3(t,r,[...a,...o,...i,...n],s)}}}function aH(e){U3(iH(e))}var sH=(e,t)=>{let r=re.document.elementFromPoint(e,t),n=o=>{if(o&&o.shadowRoot){let i=o.shadowRoot.elementFromPoint(e,t);return o.isEqualNode(i)?o:i.shadowRoot?n(i):i}return o};return n(r)||r},fy,xa={x:0,y:0};function my(e,t){fy=sH(e,t),aH(fy)}var lH=(e,t)=>{let{measureEnabled:r}=t.globals||{};return _n(()=>{if(typeof globalThis.document>"u")return;let n=o=>{window.requestAnimationFrame(()=>{o.stopPropagation(),xa.x=o.clientX,xa.y=o.clientY})};return globalThis.document.addEventListener("pointermove",n),()=>{globalThis.document.removeEventListener("pointermove",n)}},[]),_n(()=>{let n=i=>{window.requestAnimationFrame(()=>{i.stopPropagation(),my(i.clientX,i.clientY)})},o=()=>{window.requestAnimationFrame(()=>{H3()})};return t.viewMode==="story"&&r&&(globalThis.document.addEventListener("pointerover",n),B3(),globalThis.window.addEventListener("resize",o),my(xa.x,xa.y)),()=>{globalThis.window.removeEventListener("resize",o),J3()}},[r,t.viewMode]),e()},uH=globalThis.FEATURES?.measure?[lH]:[],cH={[F3]:!1},hy=()=>({decorators:uH,initialGlobals:cH}),y0="outline",yy=e=>{(Array.isArray(e)?e:[e]).forEach(dH)},dH=e=>{let t=typeof e=="string"?e:e.join(""),r=re.document.getElementById(t);r&&r.parentElement&&r.parentElement.removeChild(r)},pH=(e,t)=>{let r=re.document.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=re.document.createElement("style");n.setAttribute("id",e),n.innerHTML=t,re.document.head.appendChild(n)}};function fH(e){return xe`
469
- ${e} body {
470
- outline: 1px solid #2980b9 !important;
471
- }
472
-
473
- ${e} article {
474
- outline: 1px solid #3498db !important;
475
- }
476
-
477
- ${e} nav {
478
- outline: 1px solid #0088c3 !important;
479
- }
480
-
481
- ${e} aside {
482
- outline: 1px solid #33a0ce !important;
483
- }
484
-
485
- ${e} section {
486
- outline: 1px solid #66b8da !important;
487
- }
488
-
489
- ${e} header {
490
- outline: 1px solid #99cfe7 !important;
491
- }
492
-
493
- ${e} footer {
494
- outline: 1px solid #cce7f3 !important;
495
- }
496
-
497
- ${e} h1 {
498
- outline: 1px solid #162544 !important;
499
- }
500
-
501
- ${e} h2 {
502
- outline: 1px solid #314e6e !important;
503
- }
504
-
505
- ${e} h3 {
506
- outline: 1px solid #3e5e85 !important;
507
- }
508
-
509
- ${e} h4 {
510
- outline: 1px solid #449baf !important;
511
- }
512
-
513
- ${e} h5 {
514
- outline: 1px solid #c7d1cb !important;
515
- }
516
-
517
- ${e} h6 {
518
- outline: 1px solid #4371d0 !important;
519
- }
520
-
521
- ${e} main {
522
- outline: 1px solid #2f4f90 !important;
523
- }
524
-
525
- ${e} address {
526
- outline: 1px solid #1a2c51 !important;
527
- }
528
-
529
- ${e} div {
530
- outline: 1px solid #036cdb !important;
531
- }
532
-
533
- ${e} p {
534
- outline: 1px solid #ac050b !important;
535
- }
536
-
537
- ${e} hr {
538
- outline: 1px solid #ff063f !important;
539
- }
540
-
541
- ${e} pre {
542
- outline: 1px solid #850440 !important;
543
- }
544
-
545
- ${e} blockquote {
546
- outline: 1px solid #f1b8e7 !important;
547
- }
548
-
549
- ${e} ol {
550
- outline: 1px solid #ff050c !important;
551
- }
552
-
553
- ${e} ul {
554
- outline: 1px solid #d90416 !important;
555
- }
556
-
557
- ${e} li {
558
- outline: 1px solid #d90416 !important;
559
- }
560
-
561
- ${e} dl {
562
- outline: 1px solid #fd3427 !important;
563
- }
564
-
565
- ${e} dt {
566
- outline: 1px solid #ff0043 !important;
567
- }
568
-
569
- ${e} dd {
570
- outline: 1px solid #e80174 !important;
571
- }
572
-
573
- ${e} figure {
574
- outline: 1px solid #ff00bb !important;
575
- }
576
-
577
- ${e} figcaption {
578
- outline: 1px solid #bf0032 !important;
579
- }
580
-
581
- ${e} table {
582
- outline: 1px solid #00cc99 !important;
583
- }
584
-
585
- ${e} caption {
586
- outline: 1px solid #37ffc4 !important;
587
- }
588
-
589
- ${e} thead {
590
- outline: 1px solid #98daca !important;
591
- }
592
-
593
- ${e} tbody {
594
- outline: 1px solid #64a7a0 !important;
595
- }
596
-
597
- ${e} tfoot {
598
- outline: 1px solid #22746b !important;
599
- }
600
-
601
- ${e} tr {
602
- outline: 1px solid #86c0b2 !important;
603
- }
604
-
605
- ${e} th {
606
- outline: 1px solid #a1e7d6 !important;
607
- }
608
-
609
- ${e} td {
610
- outline: 1px solid #3f5a54 !important;
611
- }
612
-
613
- ${e} col {
614
- outline: 1px solid #6c9a8f !important;
615
- }
616
-
617
- ${e} colgroup {
618
- outline: 1px solid #6c9a9d !important;
619
- }
620
-
621
- ${e} button {
622
- outline: 1px solid #da8301 !important;
623
- }
624
-
625
- ${e} datalist {
626
- outline: 1px solid #c06000 !important;
627
- }
628
-
629
- ${e} fieldset {
630
- outline: 1px solid #d95100 !important;
631
- }
632
-
633
- ${e} form {
634
- outline: 1px solid #d23600 !important;
635
- }
636
-
637
- ${e} input {
638
- outline: 1px solid #fca600 !important;
639
- }
640
-
641
- ${e} keygen {
642
- outline: 1px solid #b31e00 !important;
643
- }
644
-
645
- ${e} label {
646
- outline: 1px solid #ee8900 !important;
647
- }
648
-
649
- ${e} legend {
650
- outline: 1px solid #de6d00 !important;
651
- }
652
-
653
- ${e} meter {
654
- outline: 1px solid #e8630c !important;
655
- }
656
-
657
- ${e} optgroup {
658
- outline: 1px solid #b33600 !important;
659
- }
660
-
661
- ${e} option {
662
- outline: 1px solid #ff8a00 !important;
663
- }
664
-
665
- ${e} output {
666
- outline: 1px solid #ff9619 !important;
667
- }
668
-
669
- ${e} progress {
670
- outline: 1px solid #e57c00 !important;
671
- }
672
-
673
- ${e} select {
674
- outline: 1px solid #e26e0f !important;
675
- }
676
-
677
- ${e} textarea {
678
- outline: 1px solid #cc5400 !important;
679
- }
680
-
681
- ${e} details {
682
- outline: 1px solid #33848f !important;
683
- }
684
-
685
- ${e} summary {
686
- outline: 1px solid #60a1a6 !important;
687
- }
688
-
689
- ${e} command {
690
- outline: 1px solid #438da1 !important;
691
- }
692
-
693
- ${e} menu {
694
- outline: 1px solid #449da6 !important;
695
- }
696
-
697
- ${e} del {
698
- outline: 1px solid #bf0000 !important;
699
- }
700
-
701
- ${e} ins {
702
- outline: 1px solid #400000 !important;
703
- }
704
-
705
- ${e} img {
706
- outline: 1px solid #22746b !important;
707
- }
708
-
709
- ${e} iframe {
710
- outline: 1px solid #64a7a0 !important;
711
- }
712
-
713
- ${e} embed {
714
- outline: 1px solid #98daca !important;
715
- }
716
-
717
- ${e} object {
718
- outline: 1px solid #00cc99 !important;
719
- }
720
-
721
- ${e} param {
722
- outline: 1px solid #37ffc4 !important;
723
- }
724
-
725
- ${e} video {
726
- outline: 1px solid #6ee866 !important;
727
- }
728
-
729
- ${e} audio {
730
- outline: 1px solid #027353 !important;
731
- }
732
-
733
- ${e} source {
734
- outline: 1px solid #012426 !important;
735
- }
736
-
737
- ${e} canvas {
738
- outline: 1px solid #a2f570 !important;
739
- }
740
-
741
- ${e} track {
742
- outline: 1px solid #59a600 !important;
743
- }
744
-
745
- ${e} map {
746
- outline: 1px solid #7be500 !important;
747
- }
748
-
749
- ${e} area {
750
- outline: 1px solid #305900 !important;
751
- }
752
-
753
- ${e} a {
754
- outline: 1px solid #ff62ab !important;
755
- }
756
-
757
- ${e} em {
758
- outline: 1px solid #800b41 !important;
759
- }
760
-
761
- ${e} strong {
762
- outline: 1px solid #ff1583 !important;
763
- }
764
-
765
- ${e} i {
766
- outline: 1px solid #803156 !important;
767
- }
768
-
769
- ${e} b {
770
- outline: 1px solid #cc1169 !important;
771
- }
772
-
773
- ${e} u {
774
- outline: 1px solid #ff0430 !important;
775
- }
776
-
777
- ${e} s {
778
- outline: 1px solid #f805e3 !important;
779
- }
780
-
781
- ${e} small {
782
- outline: 1px solid #d107b2 !important;
783
- }
784
-
785
- ${e} abbr {
786
- outline: 1px solid #4a0263 !important;
787
- }
788
-
789
- ${e} q {
790
- outline: 1px solid #240018 !important;
791
- }
792
-
793
- ${e} cite {
794
- outline: 1px solid #64003c !important;
795
- }
796
-
797
- ${e} dfn {
798
- outline: 1px solid #b4005a !important;
799
- }
800
-
801
- ${e} sub {
802
- outline: 1px solid #dba0c8 !important;
803
- }
804
-
805
- ${e} sup {
806
- outline: 1px solid #cc0256 !important;
807
- }
808
-
809
- ${e} time {
810
- outline: 1px solid #d6606d !important;
811
- }
812
-
813
- ${e} code {
814
- outline: 1px solid #e04251 !important;
815
- }
816
-
817
- ${e} kbd {
818
- outline: 1px solid #5e001f !important;
819
- }
820
-
821
- ${e} samp {
822
- outline: 1px solid #9c0033 !important;
823
- }
824
-
825
- ${e} var {
826
- outline: 1px solid #d90047 !important;
827
- }
828
-
829
- ${e} mark {
830
- outline: 1px solid #ff0053 !important;
831
- }
832
-
833
- ${e} bdi {
834
- outline: 1px solid #bf3668 !important;
835
- }
836
-
837
- ${e} bdo {
838
- outline: 1px solid #6f1400 !important;
839
- }
840
-
841
- ${e} ruby {
842
- outline: 1px solid #ff7b93 !important;
843
- }
844
-
845
- ${e} rt {
846
- outline: 1px solid #ff2f54 !important;
847
- }
848
-
849
- ${e} rp {
850
- outline: 1px solid #803e49 !important;
851
- }
852
-
853
- ${e} span {
854
- outline: 1px solid #cc2643 !important;
855
- }
856
-
857
- ${e} br {
858
- outline: 1px solid #db687d !important;
859
- }
860
-
861
- ${e} wbr {
862
- outline: 1px solid #db175b !important;
863
- }`}var mH=(e,t)=>{let r=t.globals||{},n=[!0,"true"].includes(r[y0]),o=t.viewMode==="docs",i=iv(()=>fH(o?'[data-story-block="true"]':".sb-show-main"),[t]);return _n(()=>{let a=o?`addon-outline-docs-${t.id}`:"addon-outline";return n?pH(a,i):yy(a),()=>{yy(a)}},[n,i,t]),e()},hH=globalThis.FEATURES?.outline?[mH]:[],yH={[y0]:!1},gy=()=>({decorators:hH,initialGlobals:yH}),gH=({parameters:e})=>{e?.test?.mockReset===!0?Qw():e?.test?.clearMocks===!0?Xw():e?.test?.restoreMocks!==!1&&Zw()},Oc=(e,t=0,r)=>{if(t>5||e==null)return e;if(Vn(e))return r&&e.mockName(r),e;if(typeof e=="function"&&"isAction"in e&&e.isAction&&!("implicit"in e&&e.implicit)){let n=Kw(e);return r&&n.mockName(r),n}if(Array.isArray(e)){t++;for(let n=0;n<e.length;n++)Object.getOwnPropertyDescriptor(e,n)?.writable&&(e[n]=Oc(e[n],t));return e}if(typeof e=="object"&&e.constructor===Object){t++;for(let[n,o]of Object.entries(e))Object.getOwnPropertyDescriptor(e,n)?.writable&&(e[n]=Oc(o,t,n));return e}return e},bH=({initialArgs:e})=>{Oc(e)},by=!1,vH=async e=>{globalThis.HTMLElement&&e.canvasElement instanceof globalThis.HTMLElement&&(e.canvas=c0(e.canvasElement));try{let t=globalThis.window?.navigator?.clipboard;if(t&&(e.userEvent=zi({userEvent:d0.setup()},{intercept:!0,getKeys:r=>Object.keys(r).filter(n=>n!=="eventWrapper")}).userEvent,Object.defineProperty(globalThis.window.navigator,"clipboard",{get:()=>t,configurable:!0}),!by)){let r=HTMLElement.prototype.focus,n=HTMLElement.prototype.focus,o=new Set;Object.defineProperties(HTMLElement.prototype,{focus:{configurable:!0,set:i=>{n=i},get(){return o.has(this)?r:(o.add(this),setTimeout(()=>o.delete(this),0),n)}}}),by=!0}}catch{}},vy=()=>({loaders:[gH,bH,vH]}),EH="viewport",wH={[EH]:{value:void 0,isRotated:!1}},Ey=()=>({initialGlobals:wH});function g0(){return[(hy.default??hy)(),(ey.default??ey)(),(cy.default??cy)(),(gy.default??gy)(),(Ey.default??Ey)(),(Yh.default??Yh)(),(ty.default??ty)(),(vy.default??vy)(),(ry.default??ry)()]}function _H(e){return e!=null&&typeof e=="object"&&"_tag"in e&&e?._tag==="Meta"}function ys(e){return e!=null&&typeof e=="object"&&"_tag"in e&&e?._tag==="Story"}function TH(e){return"__children"in e?e.__children:[]}var b0=e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),Rc=(e,t)=>{let r=b0(e);if(r==="")throw new Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return r},xH=(e,t)=>`${Rc(e,"kind")}${t?`--${Rc(t,"name")}`:""}`,SH=(e,t)=>`${e}:${Rc(t,"test")}`,AH=e=>tI(e);function wy(e,t){return Array.isArray(t)?t.includes(e):e.match(t)}function Cc(e,{includeStories:t,excludeStories:r}){return e!=="__esModule"&&(!t||wy(e,t))&&(!r||!wy(e,r))}var OH=(...e)=>{let t=e.reduce((r,n)=>(n.startsWith("!")?r.delete(n.slice(1)):r.add(n),r),new Set);return Array.from(t)};function _y(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function Ty(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var RH="[object RegExp]",CH="[object String]",PH="[object Number]",MH="[object Boolean]",xy="[object Arguments]",NH="[object Symbol]",IH="[object Date]",kH="[object Map]",jH="[object Set]",qH="[object Array]",DH="[object Function]",LH="[object ArrayBuffer]",lu="[object Object]",FH="[object Error]",$H="[object DataView]",BH="[object Uint8Array]",UH="[object Uint8ClampedArray]",HH="[object Uint16Array]",JH="[object Uint32Array]",VH="[object BigUint64Array]",zH="[object Int8Array]",GH="[object Int16Array]",WH="[object Int32Array]",KH="[object BigInt64Array]",YH="[object Float32Array]",XH="[object Float64Array]";function ar(e){if(!e||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null?Object.prototype.toString.call(e)==="[object Object]":!1}function Ii(e,t){let r={},n=Object.keys(e);for(let o=0;o<n.length;o++){let i=n[o],a=e[i];r[i]=t(a,i,e)}return r}function QH(e,t){let r={},n=Object.keys(e);for(let o=0;o<n.length;o++){let i=n[o],a=e[i];t(a,i)&&(r[i]=a)}return r}var uu=We(Cg(),1);function ZH(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function eJ(e,t,r){return ri(e,t,void 0,void 0,void 0,void 0,r)}function ri(e,t,r,n,o,i,a){let s=a(e,t,r,n,o,i);if(s!==void 0)return s;if(typeof e==typeof t)switch(typeof e){case"bigint":case"string":case"boolean":case"symbol":case"undefined":return e===t;case"number":return e===t||Object.is(e,t);case"function":return e===t;case"object":return li(e,t,i,a)}return li(e,t,i,a)}function li(e,t,r,n){if(Object.is(e,t))return!0;let o=Ty(e),i=Ty(t);if(o===xy&&(o=lu),i===xy&&(i=lu),o!==i)return!1;switch(o){case CH:return e.toString()===t.toString();case PH:{let c=e.valueOf(),l=t.valueOf();return ZH(c,l)}case MH:case IH:case NH:return Object.is(e.valueOf(),t.valueOf());case RH:return e.source===t.source&&e.flags===t.flags;case DH:return e===t}r=r??new Map;let a=r.get(e),s=r.get(t);if(a!=null&&s!=null)return a===t;r.set(e,t),r.set(t,e);try{switch(o){case kH:{if(e.size!==t.size)return!1;for(let[c,l]of e.entries())if(!t.has(c)||!ri(l,t.get(c),c,e,t,r,n))return!1;return!0}case jH:{if(e.size!==t.size)return!1;let c=Array.from(e.values()),l=Array.from(t.values());for(let d=0;d<c.length;d++){let p=c[d],f=l.findIndex(m=>ri(p,m,void 0,e,t,r,n));if(f===-1)return!1;l.splice(f,1)}return!0}case qH:case BH:case UH:case HH:case JH:case VH:case zH:case GH:case WH:case KH:case YH:case XH:{if(typeof Buffer<"u"&&Buffer.isBuffer(e)!==Buffer.isBuffer(t)||e.length!==t.length)return!1;for(let c=0;c<e.length;c++)if(!ri(e[c],t[c],c,e,t,r,n))return!1;return!0}case LH:return e.byteLength!==t.byteLength?!1:li(new Uint8Array(e),new Uint8Array(t),r,n);case $H:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:li(new Uint8Array(e),new Uint8Array(t),r,n);case FH:return e.name===t.name&&e.message===t.message;case lu:{if(!(li(e.constructor,t.constructor,r,n)||ar(e)&&ar(t)))return!1;let c=[...Object.keys(e),..._y(e)],l=[...Object.keys(t),..._y(t)];if(c.length!==l.length)return!1;for(let d=0;d<c.length;d++){let p=c[d],f=e[p];if(!Object.hasOwn(t,p))return!1;let m=t[p];if(!ri(f,m,p,e,t,r,n))return!1}return!0}default:return!1}}finally{r.delete(e),r.delete(t)}}function tJ(){}function rJ(e,t){return eJ(e,t,tJ)}var mn=Symbol("incompatible"),Pc=(e,t)=>{let r=t.type;if(e==null||!r||t.mapping)return e;switch(r.name){case"string":return String(e);case"enum":return e;case"number":return Number(e);case"boolean":return String(e)==="true";case"array":return!r.value||!Array.isArray(e)?mn:e.reduce((n,o,i)=>{let a=Pc(o,{type:r.value});return a!==mn&&(n[i]=a),n},new Array(e.length));case"object":return typeof e=="string"||typeof e=="number"?e:!r.value||typeof e!="object"?mn:Object.entries(e).reduce((n,[o,i])=>{let a=Pc(i,{type:r.value[o]});return a===mn?n:Object.assign(n,{[o]:a})},{});case"other":{let n=typeof e=="string"||typeof e=="number"||typeof e=="boolean";return r.value==="ReactNode"&&n?e:mn}default:return mn}},nJ=(e,t)=>Object.entries(e).reduce((r,[n,o])=>{if(!t[n])return r;let i=Pc(o,t[n]);return i===mn?r:Object.assign(r,{[n]:i})},{}),gs=(e,t)=>Array.isArray(e)&&Array.isArray(t)?t.reduce((r,n,o)=>(r[o]=gs(e[o],t[o]),r),[...e]).filter(r=>r!==void 0):!ar(e)||!ar(t)?t:Object.keys({...e,...t}).reduce((r,n)=>{if(n in t){let o=gs(e[n],t[n]);o!==void 0&&(r[n]=o)}else r[n]=e[n];return r},{}),oJ=(e,t)=>Object.entries(t).reduce((r,[n,{options:o}])=>{function i(){return n in e&&(r[n]=e[n]),r}if(!o)return i();if(!Array.isArray(o))return Ge.error(xe`
864
- Invalid argType: '${n}.options' should be an array.
865
-
866
- More info: https://storybook.js.org/docs/api/arg-types?ref=error
867
- `),i();if(o.some(p=>p&&["object","function"].includes(typeof p)))return Ge.error(xe`
868
- Invalid argType: '${n}.options' should only contain primitives. Use a 'mapping' for complex values.
869
-
870
- More info: https://storybook.js.org/docs/writing-stories/args?ref=error#mapping-to-complex-arg-values
871
- `),i();let a=Array.isArray(e[n]),s=a&&e[n].findIndex(p=>!o.includes(p)),c=a&&s===-1;if(e[n]===void 0||o.includes(e[n])||c)return i();let l=a?`${n}[${s}]`:n,d=o.map(p=>typeof p=="string"?`'${p}'`:String(p)).join(", ");return Ge.warn(`Received illegal value for '${l}'. Supported options: ${d}`),r},{}),ui=Symbol("Deeply equal"),bs=(e,t)=>{if(typeof e!=typeof t)return t;if(rJ(e,t))return ui;if(Array.isArray(e)&&Array.isArray(t)){let r=t.reduce((n,o,i)=>{let a=bs(e[i],o);return a!==ui&&(n[i]=a),n},new Array(t.length));return t.length>=e.length?r:r.concat(new Array(e.length-t.length).fill(void 0))}return ar(e)&&ar(t)?Object.keys({...e,...t}).reduce((r,n)=>{let o=bs(e?.[n],t?.[n]);return o===ui?r:Object.assign(r,{[n]:o})},{}):t},v0="UNTARGETED";function iJ({args:e,argTypes:t}){let r={};return Object.entries(e).forEach(([n,o])=>{let{target:i=v0}=t[n]||{};r[i]=r[i]||{},r[i][n]=o}),r}function aJ(e){return Object.keys(e).forEach(t=>e[t]===void 0&&delete e[t]),e}var sJ=class{constructor(){this.initialArgsByStoryId={},this.argsByStoryId={}}get(e){if(!(e in this.argsByStoryId))throw new Error(`No args known for ${e} -- has it been rendered yet?`);return this.argsByStoryId[e]}setInitial(e){if(!this.initialArgsByStoryId[e.id])this.initialArgsByStoryId[e.id]=e.initialArgs,this.argsByStoryId[e.id]=e.initialArgs;else if(this.initialArgsByStoryId[e.id]!==e.initialArgs){let t=bs(this.initialArgsByStoryId[e.id],this.argsByStoryId[e.id]);this.initialArgsByStoryId[e.id]=e.initialArgs,this.argsByStoryId[e.id]=e.initialArgs,t!==ui&&this.updateFromDelta(e,t)}}updateFromDelta(e,t){let r=oJ(t,e.argTypes);this.argsByStoryId[e.id]=gs(this.argsByStoryId[e.id],r)}updateFromPersisted(e,t){let r=nJ(t,e.argTypes);return this.updateFromDelta(e,r)}update(e,t){if(!(e in this.argsByStoryId))throw new Error(`No args known for ${e} -- has it been rendered yet?`);this.argsByStoryId[e]=aJ({...this.argsByStoryId[e],...t})}},E0=(e={})=>Object.entries(e).reduce((t,[r,{defaultValue:n}])=>(typeof n<"u"&&(t[r]=n),t),{}),lJ=class{constructor({globals:e={},globalTypes:t={}}){this.set({globals:e,globalTypes:t})}set({globals:e={},globalTypes:t={}}){let r=this.initialGlobals&&bs(this.initialGlobals,this.globals);this.allowedGlobalNames=new Set([...Object.keys(e),...Object.keys(t)]);let n=E0(t);this.initialGlobals={...n,...e},this.globals=this.initialGlobals,r&&r!==ui&&this.updateFromPersisted(r)}filterAllowedGlobals(e){return Object.entries(e).reduce((t,[r,n])=>(this.allowedGlobalNames.has(r)?t[r]=n:Fe.warn(`Attempted to set a global (${r}) that is not defined in initial globals or globalTypes`),t),{})}updateFromPersisted(e){let t=this.filterAllowedGlobals(e);this.globals={...this.globals,...t}}get(){return this.globals}update(e){this.globals={...this.globals,...this.filterAllowedGlobals(e)};for(let t in e)e[t]===void 0&&(this.globals[t]=this.initialGlobals[t])}},uJ=We(Cg(),1),cJ=(0,uJ.default)(1)(e=>Object.values(e).reduce((t,r)=>(t[r.importPath]=t[r.importPath]||r,t),{})),dJ=class{constructor({entries:e}={v:5,entries:{}}){this.entries=e}entryFromSpecifier(e){let t=Object.values(this.entries);if(e==="*")return t[0];if(typeof e=="string")return this.entries[e]?this.entries[e]:t.find(o=>o.id.startsWith(e));let{name:r,title:n}=e;return t.find(o=>o.name===r&&o.title===n)}storyIdToEntry(e){let t=this.entries[e];if(!t)throw new kb({storyId:e});return t}importPathToEntry(e){return cJ(this.entries)[e]}},pJ=e=>typeof e=="string"?{name:e}:e,fJ=e=>typeof e=="string"?{type:e}:e,mJ=(e,t)=>{let{type:r,control:n,...o}=e,i={name:t,...o};return r&&(i.type=pJ(r)),n?i.control=fJ(n):n===!1&&(i.control={disable:!0}),i},Xp=e=>Ii(e,mJ),De=e=>Array.isArray(e)?e:e?[e]:[],hJ=xe`
872
- CSF .story annotations deprecated; annotate story functions directly:
873
- - StoryFn.story.name => StoryFn.storyName
874
- - StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators)
875
- See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod.
876
- `;function ci(e,t,r){let n=t,o=typeof t=="function"?t:null,{story:i}=n;i&&(Fe.debug("deprecated story",i),hd(hJ));let a=AH(e),s=typeof n!="function"&&n.name||n.storyName||i?.name||a,c=[...De(n.decorators),...De(i?.decorators)],l={...i?.parameters,...n.parameters},d={...i?.args,...n.args},p={...i?.argTypes,...n.argTypes},f=[...De(n.loaders),...De(i?.loaders)],m=[...De(n.beforeEach),...De(i?.beforeEach)],y=[...De(n.afterEach),...De(i?.afterEach)],{render:g,play:v,tags:b=[],globals:T={}}=n,A=l.__id||xH(r.id,a);return{moduleExport:t,id:A,name:s,tags:b,decorators:c,parameters:l,args:d,argTypes:Xp(p),loaders:f,beforeEach:m,afterEach:y,globals:T,...g&&{render:g},...o&&{userStoryFn:o},...v&&{play:v}}}function Mc(e,t=e.title,r){let{id:n,argTypes:o}=e;return{id:b0(n||t),...e,title:t,...o&&{argTypes:Xp(o)},parameters:{fileName:r,...e.parameters}}}var yJ=e=>{let{globals:t,globalTypes:r}=e;(t||r)&&Fe.error("Global args/argTypes can only be set globally",JSON.stringify({globals:t,globalTypes:r}))},gJ=e=>{let{options:t}=e;t?.storySort&&Fe.error("The storySort option parameter can only be set globally")},Sa=e=>{e&&(yJ(e),gJ(e))};function bJ(e,t,r){let{default:n,__namedExportsOrder:o,...i}=e,a=Object.values(i).find(l=>ys(l));if(a){let l=Mc(a.meta.input,r,t);Sa(l.parameters);let d={meta:l,stories:{},moduleExports:e};return Object.keys(i).forEach(p=>{if(Cc(p,l)&&ys(i[p])){let f=i[p],m=ci(p,f.input,l);Sa(m.parameters),d.stories[m.id]=m,TH(f).forEach(y=>{let g=y.input.name,v=SH(m.id,g);y.input.parameters??={},y.input.parameters.__id=v,d.stories[v]=ci(g,y.input,l)})}}),d.projectAnnotations=a.meta.preview.composed,d}let s=Mc(n,r,t);Sa(s.parameters);let c={meta:s,stories:{},moduleExports:e};return Object.keys(i).forEach(l=>{if(Cc(l,s)){let d=ci(l,i[l],s);Sa(d.parameters),c.stories[d.id]=d}}),c}function w0(e,t,r){let n=r(e);return o=>t(n,o)}function _0({componentId:e,title:t,kind:r,id:n,name:o,story:i,parameters:a,initialArgs:s,argTypes:c,...l}={}){return l}function T0(e,t){let r={},n=i=>a=>{if(!r.value)throw new Error("Decorated function called without init");return r.value={...r.value,..._0(a)},i(r.value)},o=t.reduce((i,a)=>w0(i,a,n),e);return i=>(r.value=i,o(i))}var On=(...e)=>{let t={},r=e.filter(Boolean),n=r.reduce((o,i)=>(Object.entries(i).forEach(([a,s])=>{let c=o[a];Array.isArray(s)||typeof c>"u"?o[a]=s:ar(s)&&ar(c)?t[a]=!0:typeof s<"u"&&(o[a]=s)}),o),{});return Object.keys(t).forEach(o=>{let i=r.filter(Boolean).map(a=>a[o]).filter(a=>typeof a<"u");i.every(a=>ar(a))?n[o]=On(...i):n[o]=i[i.length-1]}),n};function Qp(e,t,r){let{moduleExport:n,id:o,name:i}=e||{},a=S0(e,t,r),s=async E=>{let _={};for(let x of[De(r.loaders),De(t.loaders),De(e.loaders)]){if(E.abortSignal.aborted)return _;let S=await Promise.all(x.map(F=>F(E)));Object.assign(_,...S)}return _},c=async E=>{let _=new Array;for(let x of[...De(r.beforeEach),...De(t.beforeEach),...De(e.beforeEach)]){if(E.abortSignal.aborted)return _;let S=await x(E);S&&_.push(S)}return _},l=async E=>{let _=[...De(r.afterEach),...De(t.afterEach),...De(e.afterEach)].reverse();for(let x of _){if(E.abortSignal.aborted)return;await x(E)}},d=E=>E.originalStoryFn(E.args,E),{applyDecorators:p=T0,runStep:f}=r,m=[...De(e?.decorators),...De(t?.decorators),...De(r?.decorators)],y=e?.userStoryFn||e?.render||t.render||r.render,g=nv(p)(d,m),v=E=>g(E),b=e?.play??t?.play,T=oI(b);if(!y&&!T)throw new Jb({id:o});let A=E=>async()=>(await E.renderToCanvas(),E.canvas),R=e.mount??t.mount??r.mount??A,P=r.testingLibraryRender;return{storyGlobals:{},...a,moduleExport:n,id:o,name:i,story:i,originalStoryFn:y,undecoratedStoryFn:d,unboundStoryFn:v,applyLoaders:s,applyBeforeEach:c,applyAfterEach:l,playFunction:b,runStep:f,mount:R,testingLibraryRender:P,renderToCanvas:r.renderToCanvas,usesMount:T}}function x0(e,t,r){return{...S0(void 0,e,t),moduleExport:r}}function S0(e,t,r){let n=[hr.DEV,hr.TEST],o=re.DOCS_OPTIONS?.autodocs===!0?[hr.AUTODOCS]:[],i=e?.tags?.includes(hr.TEST_FN)?[`!${hr.AUTODOCS}`]:[],a=OH(...n,...o,...r.tags??[],...t.tags??[],...i,...e?.tags??[]),s=On(r.parameters,t.parameters,e?.parameters),{argTypesEnhancers:c=[],argsEnhancers:l=[]}=r,d=On(r.argTypes,t.argTypes,e?.argTypes);if(e){let T=e?.userStoryFn||e?.render||t.render||r.render;s.__isArgsStory=T&&T.length>0}let p={...r.args,...t.args,...e?.args},f={...t.globals,...e?.globals},m={componentId:t.id,title:t.title,kind:t.title,id:e?.id||t.id,name:e?.name||"__meta",story:e?.name||"__meta",component:t.component,subcomponents:t.subcomponents,tags:a,parameters:s,initialArgs:p,argTypes:d,storyGlobals:f};m.argTypes=c.reduce((T,A)=>A({...m,argTypes:T}),m.argTypes);let y={...p};m.initialArgs=[...l].reduce((T,A)=>({...T,...A({...m,initialArgs:T})}),y);let{name:g,story:v,...b}=m;return b}function A0(e){let{args:t}=e,r={...e,allArgs:void 0,argsByTarget:void 0};if(re.FEATURES?.argTypeTargetsV7){let i=iJ(e);r={...e,allArgs:e.args,argsByTarget:i,args:i[v0]||{}}}let n=Object.entries(r.args).reduce((i,[a,s])=>{if(!r.argTypes[a]?.mapping)return i[a]=s,i;let c=l=>{let d=r.argTypes[a].mapping;return d&&l in d?d[l]:l};return i[a]=Array.isArray(s)?s.map(c):c(s),i},{}),o=Object.entries(n).reduce((i,[a,s])=>{let c=r.argTypes[a]||{};return nI(c,n,r.globals)&&(i[a]=s),i},{});return{...r,unmappedArgs:t,args:o}}var Nc=(e,t,r)=>{let n=typeof e;switch(n){case"boolean":case"string":case"number":case"function":case"symbol":return{name:n}}return e?r.has(e)?(Fe.warn(xe`
877
- We've detected a cycle in arg '${t}'. Args should be JSON-serializable.
878
-
879
- Consider using the mapping feature or fully custom args:
880
- - Mapping: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values
881
- - Custom args: https://storybook.js.org/docs/essentials/controls#fully-custom-args
882
- `),{name:"other",value:"cyclic object"}):(r.add(e),Array.isArray(e)?{name:"array",value:e.length>0?Nc(e[0],t,new Set(r)):{name:"other",value:"unknown"}}:{name:"object",value:Ii(e,o=>Nc(o,t,new Set(r)))}):{name:"object",value:{}}},O0=e=>{let{id:t,argTypes:r={},initialArgs:n={}}=e,o=Ii(n,(a,s)=>({name:s,type:Nc(a,`${t}.${s}`,new Set)})),i=Ii(r,(a,s)=>({name:s}));return On(o,i,r)};O0.secondPass=!0;var Sy=(e,t)=>Array.isArray(t)?t.includes(e):e.match(t),R0=(e,t,r)=>!t&&!r?e:e&&QH(e,(n,o)=>{let i=n.name||o.toString();return!!(!t||Sy(i,t))&&(!r||!Sy(i,r))}),vJ=(e,t,r)=>{let{type:n,options:o}=e;if(n){if(r.color&&r.color.test(t)){let i=n.name;if(i==="string")return{control:{type:"color"}};i!=="enum"&&Fe.warn(`Addon controls: Control of type color only supports string, received "${i}" instead`)}if(r.date&&r.date.test(t))return{control:{type:"date"}};switch(n.name){case"array":return{control:{type:"object"}};case"boolean":return{control:{type:"boolean"}};case"string":return{control:{type:"text"}};case"number":return{control:{type:"number"}};case"enum":{let{value:i}=n;return{control:{type:i?.length<=5?"radio":"select"},options:i}}case"function":case"symbol":return null;default:return{control:{type:o?"select":"object"}}}}},Zp=e=>{let{argTypes:t,parameters:{__isArgsStory:r,controls:{include:n=null,exclude:o=null,matchers:i={}}={}}}=e;if(!r)return t;let a=R0(t,n,o),s=Ii(a,(c,l)=>c?.type&&vJ(c,l.toString(),i));return On(s,a)};Zp.secondPass=!0;function vs({argTypes:e,argTypesEnhancers:t,decorators:r,loaders:n,beforeEach:o,afterEach:i,initialGlobals:a,...s}){return{...e&&{argTypes:Xp(e)},decorators:De(r),loaders:De(n),beforeEach:De(o),afterEach:De(i),argTypesEnhancers:[...t||[],O0,Zp],initialGlobals:a,...s}}var EJ=e=>async()=>{let t=[];for(let r of e){let n=await r();n&&t.unshift(n)}return async()=>{for(let r of t)await r()}};function C0(e){return async(t,r,n)=>{await e.reduceRight((o,i)=>async()=>i(t,o,n),async()=>r(n))()}}function ki(e,t){return e.map(r=>r.default?.[t]??r[t]).filter(Boolean)}function jr(e,t,r={}){return ki(e,t).reduce((n,o)=>{let i=De(o);return r.reverseFileOrder?[...i,...n]:[...n,...i]},[])}function Aa(e,t){return Object.assign({},...ki(e,t))}function Ko(e,t){return ki(e,t).pop()}function so(e){let t=jr(e,"argTypesEnhancers"),r=ki(e,"runStep"),n=jr(e,"beforeAll");return{parameters:On(...ki(e,"parameters")),decorators:jr(e,"decorators",{reverseFileOrder:!(re.FEATURES?.legacyDecoratorFileOrder??!1)}),args:Aa(e,"args"),argsEnhancers:jr(e,"argsEnhancers"),argTypes:Aa(e,"argTypes"),argTypesEnhancers:[...t.filter(o=>!o.secondPass),...t.filter(o=>o.secondPass)],initialGlobals:Aa(e,"initialGlobals"),globalTypes:Aa(e,"globalTypes"),loaders:jr(e,"loaders"),beforeAll:EJ(n),beforeEach:jr(e,"beforeEach"),afterEach:jr(e,"afterEach"),render:Ko(e,"render"),renderToCanvas:Ko(e,"renderToCanvas"),applyDecorators:Ko(e,"applyDecorators"),runStep:C0(r),tags:jr(e,"tags"),mount:Ko(e,"mount"),testingLibraryRender:Ko(e,"testingLibraryRender")}}function P0(){try{return!!globalThis.__vitest_browser__||!!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/)}catch{return!1}}function ef(e=!0){if(!("document"in globalThis&&"createElement"in globalThis.document))return()=>{};let t=document.createElement("style");t.textContent=`*, *:before, *:after {
883
- animation: none !important;
884
- }`,document.head.appendChild(t);let r=document.createElement("style");return r.textContent=`*, *:before, *:after {
885
- animation-delay: 0s !important;
886
- animation-direction: ${e?"reverse":"normal"} !important;
887
- animation-play-state: paused !important;
888
- transition: none !important;
889
- }`,document.head.appendChild(r),document.body.clientHeight,document.head.removeChild(t),()=>{r.parentNode?.removeChild(r)}}async function tf(e){if(!("document"in globalThis&&"getAnimations"in globalThis.document&&"querySelectorAll"in globalThis.document))return;let t=!1;await Promise.race([new Promise(r=>{setTimeout(()=>{let n=[globalThis.document,...M0(globalThis.document)],o=async()=>{if(t||e?.aborted)return;let i=n.flatMap(a=>a?.getAnimations?.()||[]).filter(a=>a.playState==="running"&&!wJ(a));i.length>0&&(await Promise.allSettled(i.map(async a=>a.finished)),await o())};o().then(r)},100)}),new Promise(r=>setTimeout(()=>{t=!0,r(void 0)},5e3))])}function M0(e){return[e,...e.querySelectorAll("*")].reduce((t,r)=>("shadowRoot"in r&&r.shadowRoot&&t.push(r.shadowRoot,...M0(r.shadowRoot)),t),[])}function wJ(e){if(e instanceof CSSAnimation&&e.effect instanceof KeyframeEffect&&e.effect.target){let t=getComputedStyle(e.effect.target,e.effect.pseudoElement),r=t.animationName?.split(", ").indexOf(e.animationName);return t.animationIterationCount.split(", ")[r]==="infinite"}return!1}var rf=class{constructor(){this.reports=[]}async addReport(e){this.reports.push(e)}};function N0(e,t,r){return ys(e)?{story:e.input,meta:e.meta.input,preview:e.meta.preview.composed}:{story:e,meta:_H(t)?t.input:t,preview:r}}function _J(e){globalThis.defaultProjectAnnotations=e}var TJ="ComposedStory",xJ="Unnamed Story";function SJ(e){return e?so([e]):{}}function AJ(e){let t=Array.isArray(e)?e:[e];return globalThis.globalProjectAnnotations=so([...g0(),globalThis.defaultProjectAnnotations??{},so(t.map(SJ))]),globalThis.globalProjectAnnotations??{}}var Hr=[];function I0(e,t,r,n,o){if(e===void 0)throw new Error("Expected a story but received undefined.");t.title=t.title??TJ;let i=Mc(t),a=o||e.storyName||e.story?.name||e.name||xJ,s=ci(a,e,i),c=vs(so([n??globalThis.globalProjectAnnotations??{},r??{}])),l=Qp(s,i,c),d={...E0(c.globalTypes),...c.initialGlobals,...l.storyGlobals},p=new rf,f=()=>{let b=A0({hooks:new Rd,globals:d,args:{...l.initialArgs},viewMode:"story",reporting:p,loaded:{},abortSignal:new AbortController().signal,step:(T,A)=>l.runStep(T,A,b),canvasElement:null,canvas:{},userEvent:{},globalTypes:c.globalTypes,...l,context:null,mount:null});return b.parameters.__isPortableStory=!0,b.context=b,l.renderToCanvas&&(b.renderToCanvas=async()=>{let T=await l.renderToCanvas?.({componentId:l.componentId,title:l.title,id:l.id,name:l.name,tags:l.tags,showMain:()=>{},showError:A=>{throw new Error(`${A.title}
890
- ${A.description}`)},showException:A=>{throw A},forceRemount:!0,storyContext:b,storyFn:()=>l.unboundStoryFn(b),unboundStoryFn:l.unboundStoryFn},b.canvasElement);T&&Hr.push(T)}),b.mount=l.mount(b),b},m,y=async b=>{let T=f();return T.canvasElement??=globalThis?.document?.body,m&&(T.loaded=m.loaded),Object.assign(T,b),l.playFunction(T)},g=b=>{let T=f();return Object.assign(T,b),PJ(l,T)},v=l.playFunction?y:void 0;return Object.assign(function(b){let T=f();return m&&(T.loaded=m.loaded),T.args={...T.initialArgs,...b},l.unboundStoryFn(T)},{id:l.id,storyName:a,load:async()=>{for(let T of[...Hr].reverse())await T();Hr.length=0;let b=f();b.loaded=await l.applyLoaders(b),Hr.push(...(await l.applyBeforeEach(b)).filter(Boolean)),m=b},globals:d,args:l.initialArgs,parameters:l.parameters,argTypes:l.argTypes,play:v,run:g,reporting:p,tags:l.tags})}var OJ=(e,t,r,n)=>I0(e,t,r,{},n);function RJ(e,t,r=OJ){let{default:n,__esModule:o,__namedExportsOrder:i,...a}=e,s=n;return Object.entries(a).reduce((c,[l,d])=>{let{story:p,meta:f}=N0(d);return!s&&f&&(s=f),Cc(l,s)?Object.assign(c,{[l]:r(p,s,t,l)}):c},{})}function CJ(e){return e.extend({mount:async({mount:t,page:r},n)=>{await n(async(o,...i)=>{if(!("__pw_type"in o)||"__pw_type"in o&&o.__pw_type!=="jsx")throw new Error(xe`
891
- Portable stories in Playwright CT only work when referencing JSX elements.
892
- Please use JSX format for your components such as:
893
-
894
- instead of:
895
- await mount(MyComponent, { props: { foo: 'bar' } })
896
-
897
- do:
898
- await mount(<MyComponent foo="bar"/>)
899
-
900
- More info: https://storybook.js.org/docs/api/portable-stories/portable-stories-playwright?ref=error
901
- `);let{props:a,...s}=o;await r.evaluate(async l=>{let d=await globalThis.__pwUnwrapObject?.(l);return("__pw_type"in d?d.type:d)?.load?.()},s);let c=await t(o,...i);return await r.evaluate(async l=>{let d=await globalThis.__pwUnwrapObject?.(l),p="__pw_type"in d?d.type:d,f=document.querySelector("#root");return p?.play?.({canvasElement:f})},s),c})}})}async function PJ(e,t){for(let i of[...Hr].reverse())await i();if(Hr.length=0,!t.canvasElement){let i=document.createElement("div");globalThis?.document?.body?.appendChild(i),t.canvasElement=i,Hr.push(()=>{globalThis?.document?.body?.contains(i)&&globalThis?.document?.body?.removeChild(i)})}if(t.loaded=await e.applyLoaders(t),t.abortSignal.aborted)return;Hr.push(...(await e.applyBeforeEach(t)).filter(Boolean));let r=e.playFunction,n=e.usesMount;if(n||await t.mount(),t.abortSignal.aborted)return;r&&(n||(t.mount=async()=>{throw new Od({playFunction:r.toString()})}),await r(t));let o;P0()?o=ef():await tf(t.abortSignal),await e.applyAfterEach(t),await o?.()}var Ay=1e3,MJ=1e4,k0=class{constructor(e,t,r){this.importFn=t,this.storyIndex=new dJ(e),this.projectAnnotations=vs(so([...g0(),r]));let{initialGlobals:n,globalTypes:o}=this.projectAnnotations;this.args=new sJ,this.userGlobals=new lJ({globals:n,globalTypes:o}),this.hooks={},this.cleanupCallbacks={},this.processCSFFileWithCache=(0,uu.default)(Ay)(bJ),this.prepareMetaWithCache=(0,uu.default)(Ay)(x0),this.prepareStoryWithCache=(0,uu.default)(MJ)(Qp)}setProjectAnnotations(e){this.projectAnnotations=vs(e);let{initialGlobals:t,globalTypes:r}=e;this.userGlobals.set({globals:t,globalTypes:r})}async onStoriesChanged({importFn:e,storyIndex:t}){e&&(this.importFn=e),t&&(this.storyIndex.entries=t.entries),this.cachedCSFFiles&&await this.cacheAllCSFFiles()}async storyIdToEntry(e){return this.storyIndex.storyIdToEntry(e)}async loadCSFFileByStoryId(e){let{importPath:t,title:r}=this.storyIndex.storyIdToEntry(e),n=await this.importFn(t);return this.processCSFFileWithCache(n,t,r)}async loadAllCSFFiles(){let e={};return Object.entries(this.storyIndex.entries).forEach(([t,{importPath:r}])=>{e[r]=t}),(await Promise.all(Object.entries(e).map(async([t,r])=>({importPath:t,csfFile:await this.loadCSFFileByStoryId(r)})))).reduce((t,{importPath:r,csfFile:n})=>(t[r]=n,t),{})}async cacheAllCSFFiles(){this.cachedCSFFiles=await this.loadAllCSFFiles()}preparedMetaFromCSFFile({csfFile:e}){let t=e.meta;return this.prepareMetaWithCache(t,this.projectAnnotations,e.moduleExports.default)}async loadStory({storyId:e}){let t=await this.loadCSFFileByStoryId(e);return this.storyFromCSFFile({storyId:e,csfFile:t})}storyFromCSFFile({storyId:e,csfFile:t}){let r=t.stories[e];if(!r)throw new Ub({storyId:e});let n=t.meta,o=this.prepareStoryWithCache(r,n,t.projectAnnotations??this.projectAnnotations);return this.args.setInitial(o),this.hooks[o.id]=this.hooks[o.id]||new Rd,o}componentStoriesFromCSFFile({csfFile:e}){return Object.keys(this.storyIndex.entries).filter(t=>!!e.stories[t]).map(t=>this.storyFromCSFFile({storyId:t,csfFile:e}))}async loadEntry(e){let t=await this.storyIdToEntry(e),r=t.type==="docs"?t.storiesImports:[],[n,...o]=await Promise.all([this.importFn(t.importPath),...r.map(i=>{let a=this.storyIndex.importPathToEntry(i);return this.loadCSFFileByStoryId(a.id)})]);return{entryExports:n,csfFiles:o}}getStoryContext(e,{forceInitialArgs:t=!1}={}){let r=this.userGlobals.get(),{initialGlobals:n}=this.userGlobals,o=new rf;return A0({...e,args:t?e.initialArgs:this.args.get(e.id),initialGlobals:n,globalTypes:this.projectAnnotations.globalTypes,userGlobals:r,reporting:o,globals:{...r,...e.storyGlobals},hooks:this.hooks[e.id]})}addCleanupCallbacks(e,...t){this.cleanupCallbacks[e.id]=(this.cleanupCallbacks[e.id]||[]).concat(t)}async cleanupStory(e){this.hooks[e.id].clean();let t=this.cleanupCallbacks[e.id];if(t)for(let r of[...t].reverse())await r();delete this.cleanupCallbacks[e.id]}extract(e={includeDocsOnly:!1}){let{cachedCSFFiles:t}=this;if(console.log("extract: extracting stories",t),!t)throw new qb;let r=Object.entries(this.storyIndex.entries).reduce((n,[o,i])=>{if(i.type==="docs")return n;let a=t[i.importPath],s=this.storyFromCSFFile({storyId:o,csfFile:a});return!e.includeDocsOnly&&s.parameters.docsOnly||(n[o]=Object.entries(s).reduce((c,[l,d])=>l==="story"&&i.subtype==="test"?{...c,story:i.parentName}:l==="moduleExport"||typeof d=="function"?c:Array.isArray(d)?Object.assign(c,{[l]:d.slice().sort()}):Object.assign(c,{[l]:d}),{args:s.initialArgs,globals:{...this.userGlobals.initialGlobals,...this.userGlobals.globals,...s.storyGlobals},storyId:i.parent?i.parent:o})),n},{});return console.log("extract: stories",r),r}};function NJ(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}var IJ=e=>{if(e.length===0)return e;let t=e[e.length-1],r=t?.replace(/(?:[.](?:story|stories))?([.][^.]+)$/i,"");if(e.length===1)return[r];let n=e[e.length-2];return r&&n&&r.toLowerCase()===n.toLowerCase()?[...e.slice(0,-2),r]:r&&(/^(story|stories)([.][^.]+)$/i.test(t)||/^index$/i.test(r))?e.slice(0,-1):[...e.slice(0,-1),r]};function Oy(e){return e.flatMap(t=>t.split("/")).filter(Boolean).join("/")}var j0=(e,t,r)=>{let{directory:n,importPathMatcher:o,titlePrefix:i=""}=t||{};typeof e=="number"&&Ge.warn(xe`
902
- CSF Auto-title received a numeric fileName. This typically happens when
903
- webpack is mis-configured in production mode. To force webpack to produce
904
- filenames, set optimization.moduleIds = "named" in your webpack config.
905
- `);let a=NJ(String(e));if(o.exec(a)){if(!r){let s=a.replace(n,""),c=Oy([i,s]).split("/");return c=IJ(c),c.join("/")}return i?Oy([i,r]):r}},kJ=(e,t,r)=>{for(let n=0;n<t.length;n+=1){let o=j0(e,t[n],r);if(o)return o}return r||void 0},Ry=/\s*\/\s*/,jJ=(e={})=>(t,r)=>{if(t.title===r.title&&!e.includeNames)return 0;let n=e.method||"configure",o=e.order||[],i=t.title.trim().split(Ry),a=r.title.trim().split(Ry);e.includeNames&&(i.push(t.name),a.push(r.name));let s=0;for(;i[s]||a[s];){if(!i[s])return-1;if(!a[s])return 1;let c=i[s],l=a[s];if(c!==l){let p=o.indexOf(c),f=o.indexOf(l),m=o.indexOf("*");return p!==-1||f!==-1?(p===-1&&(m!==-1?p=m:p=o.length),f===-1&&(m!==-1?f=m:f=o.length),p-f):n==="configure"?0:c.localeCompare(l,e.locales?e.locales:void 0,{numeric:!0,sensitivity:"accent"})}let d=o.indexOf(c);d===-1&&(d=o.indexOf("*")),o=d!==-1&&Array.isArray(o[d+1])?o[d+1]:[],s+=1}return 0},qJ=(e,t,r)=>{if(t){let n;typeof t=="function"?n=t:n=jJ(t),e.sort(n)}else e.sort((n,o)=>r.indexOf(n.importPath)-r.indexOf(o.importPath));return e},DJ=(e,t,r)=>{try{return qJ(e,t,r)}catch(n){throw new Error(xe`
906
- Error sorting stories with sort parameter ${t}:
907
-
908
- > ${n.message}
909
-
910
- Are you using a V6-style sort function in V7 mode?
911
-
912
- More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#v7-style-story-sort
913
- `)}},dl=new Error("prepareAborted"),{AbortController:Cy}=globalThis;function Py(e){try{let{name:t="Error",message:r=String(e),stack:n}=e;return{name:t,message:r,stack:n}}catch{return{name:"Error",message:String(e)}}}var Ic=class{constructor(e,t,r,n,o,i,a={autoplay:!0,forceInitialArgs:!1},s){this.channel=e,this.store=t,this.renderToScreen=r,this.callbacks=n,this.id=o,this.viewMode=i,this.renderOptions=a,this.type="story",this.notYetRendered=!0,this.rerenderEnqueued=!1,this.disableKeyListeners=!1,this.teardownRender=()=>{},this.torndown=!1,this.abortController=new Cy,this.renderId=Date.now(),s&&(this.story=s,this.phase="preparing")}async runPhase(e,t,r){this.phase=t,this.channel.emit(wn,{newPhase:this.phase,renderId:this.renderId,storyId:this.id}),r&&(await r(),this.checkIfAborted(e))}checkIfAborted(e){return e.aborted&&!["finished","aborted","errored"].includes(this.phase)&&(this.phase="aborted",this.channel.emit(wn,{newPhase:this.phase,renderId:this.renderId,storyId:this.id})),e.aborted}async prepare(){if(await this.runPhase(this.abortController.signal,"preparing",async()=>{this.story=await this.store.loadStory({storyId:this.id})}),this.abortController.signal.aborted)throw await this.store.cleanupStory(this.story),dl}isEqual(e){return!!(this.id===e.id&&this.story&&this.story===e.story)}isPreparing(){return["preparing"].includes(this.phase)}isPending(){return["loading","beforeEach","rendering","playing","afterEach"].includes(this.phase)}async renderToElement(e){return this.canvasElement=e,this.render({initial:!0,forceRemount:!0})}storyContext(){if(!this.story)throw new Error("Cannot call storyContext before preparing");let{forceInitialArgs:e}=this.renderOptions;return this.store.getStoryContext(this.story,{forceInitialArgs:e})}async render({initial:e=!1,forceRemount:t=!1}={}){let{canvasElement:r}=this;if(!this.story)throw new Error("cannot render when not prepared");let n=this.story;if(!r)throw new Error("cannot render when canvasElement is unset");let{id:o,componentId:i,title:a,name:s,tags:c,applyLoaders:l,applyBeforeEach:d,applyAfterEach:p,unboundStoryFn:f,playFunction:m,runStep:y}=n;t&&!e&&(this.cancelRender(),this.abortController=new Cy);let g=this.abortController.signal,v=!1,b=n.usesMount;try{let T={...this.storyContext(),viewMode:this.viewMode,abortSignal:g,canvasElement:r,loaded:{},step:(J,N)=>y(J,N,T),context:null,canvas:{},userEvent:{},renderToCanvas:async()=>{let J=await this.renderToScreen(A,r);this.teardownRender=J||(()=>{}),v=!0},mount:async(...J)=>{this.callbacks.showStoryDuringRender?.();let N=null;return await this.runPhase(g,"rendering",async()=>{N=await n.mount(T)(...J)}),b&&await this.runPhase(g,"playing"),N}};T.context=T;let A={componentId:i,title:a,kind:a,id:o,name:s,story:s,tags:c,...this.callbacks,showError:J=>(this.phase="errored",this.callbacks.showError(J)),showException:J=>(this.phase="errored",this.callbacks.showException(J)),forceRemount:t||this.notYetRendered,storyContext:T,storyFn:()=>f(T),unboundStoryFn:f};if(await this.runPhase(g,"loading",async()=>{T.loaded=await l(T)}),g.aborted)return;let R=await d(T);if(this.store.addCleanupCallbacks(n,...R),this.checkIfAborted(g)||(!v&&!b&&await T.mount(),this.notYetRendered=!1,g.aborted))return;let P=this.story.parameters?.test?.dangerouslyIgnoreUnhandledErrors===!0,E=new Set,_=J=>{J.error&&E.add(J.error)},x=J=>{J.reason&&E.add(J.reason)};if(this.renderOptions.autoplay&&t&&m&&this.phase!=="errored"){window?.addEventListener?.("error",_),window?.addEventListener?.("unhandledrejection",x),this.disableKeyListeners=!0;try{if(b?await m(T):(T.mount=async()=>{throw new Od({playFunction:m.toString()})},await this.runPhase(g,"playing",async()=>m(T))),!v)throw new Vb;this.checkIfAborted(g),!P&&E.size>0?await this.runPhase(g,"errored"):await this.runPhase(g,"played")}catch(J){if(this.callbacks.showStoryDuringRender?.(),await this.runPhase(g,"errored",async()=>{this.channel.emit(Dg,Py(J))}),this.story.parameters.throwPlayFunctionExceptions!==!1)throw J;console.error(J)}if(!P&&E.size>0&&this.channel.emit(Lg,Array.from(E).map(Py)),this.disableKeyListeners=!1,window?.removeEventListener?.("unhandledrejection",x),window?.removeEventListener?.("error",_),g.aborted)return}await this.runPhase(g,"completing",async()=>{P0()?this.store.addCleanupCallbacks(n,ef()):await tf(g)}),await this.runPhase(g,"completed",async()=>{this.channel.emit(Ka,o)}),this.phase!=="errored"&&await this.runPhase(g,"afterEach",async()=>{await p(T)});let S=!P&&E.size>0,F=T.reporting.reports.some(J=>J.status==="failed"),j=S||F;await this.runPhase(g,"finished",async()=>this.channel.emit(Pu,{storyId:o,status:j?"error":"success",reporters:T.reporting.reports}))}catch(T){this.phase="errored",this.callbacks.showException(T),await this.runPhase(g,"finished",async()=>this.channel.emit(Pu,{storyId:o,status:"error",reporters:[]}))}this.rerenderEnqueued&&(this.rerenderEnqueued=!1,this.render())}async rerender(){if(this.isPending()&&this.phase!=="playing")this.rerenderEnqueued=!0;else return this.render()}async remount(){return await this.teardown(),this.render({forceRemount:!0})}cancelRender(){this.abortController.abort()}cancelPlayFunction(){this.phase==="playing"&&(this.abortController.abort(),this.runPhase(this.abortController.signal,"aborted"))}async teardown(){this.torndown=!0,this.cancelRender(),this.story&&await this.store.cleanupStory(this.story);for(let e=0;e<3;e+=1){if(!this.isPending()){await this.teardownRender();return}await new Promise(t=>setTimeout(t,0))}window?.location?.reload?.(),await new Promise(()=>{})}},{fetch:LJ}=re,FJ="./index.json",q0=class{constructor(e,t,r=Ft.getChannel(),n=!0){this.importFn=e,this.getProjectAnnotations=t,this.channel=r,this.storyRenders=[],this.storeInitializationPromise=new Promise((o,i)=>{this.resolveStoreInitializationPromise=o,this.rejectStoreInitializationPromise=i}),n&&this.initialize()}get storyStore(){return new Proxy({},{get:(e,t)=>{if(this.storyStoreValue)return hd("Accessing the Story Store is deprecated and will be removed in 9.0"),this.storyStoreValue[t];throw new Hb}})}async initialize(){this.setupListeners();try{let e=await this.getProjectAnnotationsOrRenderError();await this.runBeforeAllHook(e),await this.initializeWithProjectAnnotations(e);let t=globalThis?.navigator?.userAgent;await this.channel.emit($g,{userAgent:t})}catch(e){this.rejectStoreInitializationPromise(e)}}ready(){return this.storeInitializationPromise}setupListeners(){this.channel.on(zg,this.onStoryIndexChanged.bind(this)),this.channel.on(fd,this.onUpdateGlobals.bind(this)),this.channel.on(md,this.onUpdateArgs.bind(this)),this.channel.on(eb,this.onRequestArgTypesInfo.bind(this)),this.channel.on(dd,this.onResetArgs.bind(this)),this.channel.on(cd,this.onForceReRender.bind(this)),this.channel.on(Wa,this.onForceRemount.bind(this)),this.channel.on(Xg,this.onStoryHotUpdated.bind(this))}async getProjectAnnotationsOrRenderError(){try{let e=await this.getProjectAnnotations();if(this.renderToCanvas=e.renderToCanvas,!this.renderToCanvas)throw new Db;return e}catch(e){throw this.renderPreviewEntryError("Error reading preview.js:",e),e}}async initializeWithProjectAnnotations(e){this.projectAnnotationsBeforeInitialization=e;try{let t=await this.getStoryIndexFromServer();return this.initializeWithStoryIndex(t)}catch(t){throw this.renderPreviewEntryError("Error loading story index:",t),t}}async runBeforeAllHook(e){try{await this.beforeAllCleanup?.(),this.beforeAllCleanup=await e.beforeAll?.()}catch(t){throw this.renderPreviewEntryError("Error in beforeAll hook:",t),t}}async getStoryIndexFromServer(){let e=await LJ(FJ);if(e.status===200)return e.json();throw new Lb({text:await e.text()})}initializeWithStoryIndex(e){if(!this.projectAnnotationsBeforeInitialization)throw new Error("Cannot call initializeWithStoryIndex until project annotations resolve");this.storyStoreValue=new k0(e,this.importFn,this.projectAnnotationsBeforeInitialization),delete this.projectAnnotationsBeforeInitialization,this.setInitialGlobals(),this.resolveStoreInitializationPromise()}async setInitialGlobals(){this.emitGlobals()}emitGlobals(){if(!this.storyStoreValue)throw new At({methodName:"emitGlobals"});let e={globals:this.storyStoreValue.userGlobals.get()||{},globalTypes:this.storyStoreValue.projectAnnotations.globalTypes||{}};this.channel.emit(Ug,e)}async onGetProjectAnnotationsChanged({getProjectAnnotations:e}){delete this.previewEntryError,this.getProjectAnnotations=e;let t=await this.getProjectAnnotationsOrRenderError();if(await this.runBeforeAllHook(t),!this.storyStoreValue){await this.initializeWithProjectAnnotations(t);return}this.storyStoreValue.setProjectAnnotations(t),this.emitGlobals()}async onStoryIndexChanged(){if(delete this.previewEntryError,!(!this.storyStoreValue&&!this.projectAnnotationsBeforeInitialization))try{let e=await this.getStoryIndexFromServer();if(this.projectAnnotationsBeforeInitialization){this.initializeWithStoryIndex(e);return}await this.onStoriesChanged({storyIndex:e})}catch(e){throw this.renderPreviewEntryError("Error loading story index:",e),e}}async onStoriesChanged({importFn:e,storyIndex:t}){if(!this.storyStoreValue)throw new At({methodName:"onStoriesChanged"});await this.storyStoreValue.onStoriesChanged({importFn:e,storyIndex:t})}async onUpdateGlobals({globals:e,currentStory:t}){if(this.storyStoreValue||await this.storeInitializationPromise,!this.storyStoreValue)throw new At({methodName:"onUpdateGlobals"});if(this.storyStoreValue.userGlobals.update(e),t){let{initialGlobals:r,storyGlobals:n,userGlobals:o,globals:i}=this.storyStoreValue.getStoryContext(t);this.channel.emit(hi,{initialGlobals:r,userGlobals:o,storyGlobals:n,globals:i})}else{let{initialGlobals:r,globals:n}=this.storyStoreValue.userGlobals;this.channel.emit(hi,{initialGlobals:r,userGlobals:n,storyGlobals:{},globals:n})}await Promise.all(this.storyRenders.map(r=>r.rerender()))}async onUpdateArgs({storyId:e,updatedArgs:t}){if(!this.storyStoreValue)throw new At({methodName:"onUpdateArgs"});this.storyStoreValue.args.update(e,t),await Promise.all(this.storyRenders.filter(r=>r.id===e&&!r.renderOptions.forceInitialArgs).map(r=>r.story&&r.story.usesMount?r.remount():r.rerender())),this.channel.emit(Hg,{storyId:e,args:this.storyStoreValue.args.get(e)})}async onRequestArgTypesInfo({id:e,payload:t}){try{await this.storeInitializationPromise;let r=await this.storyStoreValue?.loadStory(t);this.channel.emit(Mu,{id:e,success:!0,payload:{argTypes:r?.argTypes||{}},error:null})}catch(r){this.channel.emit(Mu,{id:e,success:!1,error:r?.message})}}async onResetArgs({storyId:e,argNames:t}){if(!this.storyStoreValue)throw new At({methodName:"onResetArgs"});let r=this.storyRenders.find(o=>o.id===e)?.story||await this.storyStoreValue.loadStory({storyId:e}),n=(t||[...new Set([...Object.keys(r.initialArgs),...Object.keys(this.storyStoreValue.args.get(e))])]).reduce((o,i)=>(o[i]=r.initialArgs[i],o),{});await this.onUpdateArgs({storyId:e,updatedArgs:n})}async onForceReRender(){await Promise.all(this.storyRenders.map(e=>e.rerender()))}async onForceRemount({storyId:e}){await Promise.all(this.storyRenders.filter(t=>t.id===e).map(t=>t.remount()))}async onStoryHotUpdated(){await Promise.all(this.storyRenders.map(e=>e.cancelPlayFunction()))}renderStoryToElement(e,t,r,n){if(!this.renderToCanvas||!this.storyStoreValue)throw new At({methodName:"renderStoryToElement"});let o=new Ic(this.channel,this.storyStoreValue,this.renderToCanvas,r,e.id,"docs",n,e);return o.renderToElement(t),this.storyRenders.push(o),async()=>{await this.teardownRender(o)}}async teardownRender(e,{viewModeChanged:t}={}){this.storyRenders=this.storyRenders.filter(r=>r!==e),await e?.teardown?.({viewModeChanged:t})}async loadStory({storyId:e}){if(!this.storyStoreValue)throw new At({methodName:"loadStory"});return this.storyStoreValue.loadStory({storyId:e})}getStoryContext(e,{forceInitialArgs:t=!1}={}){if(!this.storyStoreValue)throw new At({methodName:"getStoryContext"});return this.storyStoreValue.getStoryContext(e,{forceInitialArgs:t})}async extract(e){if(!this.storyStoreValue)throw new At({methodName:"extract"});if(this.previewEntryError)throw this.previewEntryError;return await this.storyStoreValue.cacheAllCSFFiles(),this.storyStoreValue.extract(e)}renderPreviewEntryError(e,t){this.previewEntryError=t,Fe.error(e),Fe.error(t),this.channel.emit(jg,t)}},nf=class{constructor(e,t,r,n){this.channel=e,this.store=t,this.renderStoryToElement=r,this.storyIdByName=o=>{let i=this.nameToStoryId.get(o);if(i)return i;throw new Error(`No story found with that name: ${o}`)},this.componentStories=()=>this.componentStoriesValue,this.componentStoriesFromCSFFile=o=>this.store.componentStoriesFromCSFFile({csfFile:o}),this.storyById=o=>{if(!o){if(!this.primaryStory)throw new Error("No primary story defined for docs entry. Did you forget to use `<Meta>`?");return this.primaryStory}let i=this.storyIdToCSFFile.get(o);if(!i)throw new Error(`Called \`storyById\` for story that was never loaded: ${o}`);return this.store.storyFromCSFFile({storyId:o,csfFile:i})},this.getStoryContext=o=>({...this.store.getStoryContext(o),loaded:{},viewMode:"docs"}),this.loadStory=o=>this.store.loadStory({storyId:o}),this.componentStoriesValue=[],this.storyIdToCSFFile=new Map,this.exportToStory=new Map,this.exportsToCSFFile=new Map,this.nameToStoryId=new Map,this.attachedCSFFiles=new Set,n.forEach((o,i)=>{this.referenceCSFFile(o)})}referenceCSFFile(e){this.exportsToCSFFile.set(e.moduleExports,e),this.exportsToCSFFile.set(e.moduleExports.default,e),this.store.componentStoriesFromCSFFile({csfFile:e}).forEach(t=>{let r=e.stories[t.id];this.storyIdToCSFFile.set(r.id,e),this.exportToStory.set(r.moduleExport,t)})}attachCSFFile(e){if(!this.exportsToCSFFile.has(e.moduleExports))throw new Error("Cannot attach a CSF file that has not been referenced");this.attachedCSFFiles.has(e)||(this.attachedCSFFiles.add(e),this.store.componentStoriesFromCSFFile({csfFile:e}).forEach(t=>{this.nameToStoryId.set(t.name,t.id),this.componentStoriesValue.push(t),this.primaryStory||(this.primaryStory=t)}))}referenceMeta(e,t){let r=this.resolveModuleExport(e);if(r.type!=="meta")throw new Error("<Meta of={} /> must reference a CSF file module export or meta export. Did you mistakenly reference your component instead of your CSF file?");t&&this.attachCSFFile(r.csfFile)}get projectAnnotations(){let{projectAnnotations:e}=this.store;if(!e)throw new Error("Can't get projectAnnotations from DocsContext before they are initialized");return e}resolveAttachedModuleExportType(e){if(e==="story"){if(!this.primaryStory)throw new Error("No primary story attached to this docs file, did you forget to use <Meta of={} />?");return{type:"story",story:this.primaryStory}}if(this.attachedCSFFiles.size===0)throw new Error("No CSF file attached to this docs file, did you forget to use <Meta of={} />?");let t=Array.from(this.attachedCSFFiles)[0];if(e==="meta")return{type:"meta",csfFile:t};let{component:r}=t.meta;if(!r)throw new Error("Attached CSF file does not defined a component, did you forget to export one?");return{type:"component",component:r}}resolveModuleExport(e){let t=this.exportsToCSFFile.get(e);if(!t&&e&&typeof e=="object"&&"default"in e&&(t=this.exportsToCSFFile.get(e.default)),t)return{type:"meta",csfFile:t};let r=this.exportToStory.get(ys(e)?e.input:e);return r?{type:"story",story:r}:{type:"component",component:e}}resolveOf(e,t=[]){let r;if(["component","meta","story"].includes(e)){let n=e;r=this.resolveAttachedModuleExportType(n)}else r=this.resolveModuleExport(e);if(t.length&&!t.includes(r.type)){let n=r.type==="component"?"component or unknown":r.type;throw new Error(xe`Invalid value passed to the 'of' prop. The value was resolved to a '${n}' type but the only types for this block are: ${t.join(", ")}.
914
- - Did you pass a component to the 'of' prop when the block only supports a story or a meta?
915
- - ... or vice versa?
916
- - Did you pass a story, CSF file or meta to the 'of' prop that is not indexed, ie. is not targeted by the 'stories' globs in the main configuration?`)}switch(r.type){case"component":return{...r,projectAnnotations:this.projectAnnotations};case"meta":return{...r,preparedMeta:this.store.preparedMetaFromCSFFile({csfFile:r.csfFile})};case"story":default:return r}}},My=class{constructor(e,t,r,n){this.channel=e,this.store=t,this.entry=r,this.callbacks=n,this.type="docs",this.subtype="csf",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=r.id,this.renderId=Date.now()}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:e,csfFiles:t=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw dl;let{importPath:r,title:n}=this.entry,o=this.store.processCSFFileWithCache(e,r,n),i=Object.keys(o.stories)[0];this.story=this.store.storyFromCSFFile({storyId:i,csfFile:o}),this.csfFiles=[o,...t],this.preparing=!1}isEqual(e){return!!(this.id===e.id&&this.story&&this.story===e.story)}docsContext(e){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");let t=new nf(this.channel,this.store,e,this.csfFiles);return this.csfFiles.forEach(r=>t.attachCSFFile(r)),t}async renderToElement(e,t){if(!this.story||!this.csfFiles)throw new Error("Cannot render docs before preparing");let r=this.docsContext(t),{docs:n}=this.story.parameters||{};if(!n)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let o=await n.renderer(),{render:i}=o,a=async()=>{try{await i(r,n,e),this.channel.emit(ud,this.id)}catch(s){this.callbacks.showException(s)}};return this.rerender=async()=>a(),this.teardownRender=async({viewModeChanged:s})=>{!s||!e||o.unmount(e)},a()}async teardown({viewModeChanged:e}={}){this.teardownRender?.({viewModeChanged:e}),this.torndown=!0}},Ny=class{constructor(e,t,r,n){this.channel=e,this.store=t,this.entry=r,this.callbacks=n,this.type="docs",this.subtype="mdx",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=r.id,this.renderId=Date.now()}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:e,csfFiles:t=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw dl;this.csfFiles=t,this.exports=e,this.preparing=!1}isEqual(e){return!!(this.id===e.id&&this.exports&&this.exports===e.exports)}docsContext(e){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");return new nf(this.channel,this.store,e,this.csfFiles)}async renderToElement(e,t){if(!this.exports||!this.csfFiles||!this.store.projectAnnotations)throw new Error("Cannot render docs before preparing");let r=this.docsContext(t),{docs:n}=this.store.projectAnnotations.parameters??{};if(!n)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let o={...n,page:this.exports.default},i=await n.renderer(),{render:a}=i,s=async()=>{try{await a(r,o,e),this.channel.emit(ud,this.id)}catch(c){this.callbacks.showException(c)}};return this.rerender=async()=>s(),this.teardownRender=async({viewModeChanged:c}={})=>{!c||!e||(i.unmount(e),this.torndown=!0)},s()}async teardown({viewModeChanged:e}={}){this.teardownRender?.({viewModeChanged:e}),this.torndown=!0}},$J=globalThis;function BJ(e){let t=e.composedPath&&e.composedPath()[0]||e.target;return/input|textarea/i.test(t.tagName)||t.getAttribute("contenteditable")!==null}function UJ({tags:e}){return e?.includes(hr.UNATTACHED_MDX)||e?.includes(hr.ATTACHED_MDX)}function cu(e){return e.type==="story"}function HJ(e){return e.type==="docs"}function JJ(e){return HJ(e)&&e.subtype==="csf"}var D0=class extends q0{constructor(e,t,r,n){super(e,t,void 0,!1),this.importFn=e,this.getProjectAnnotations=t,this.selectionStore=r,this.view=n,this.initialize()}setupListeners(){super.setupListeners(),$J.onkeydown=this.onKeydown.bind(this),this.channel.on(pd,this.onSetCurrentStory.bind(this)),this.channel.on(Qg,this.onUpdateQueryParams.bind(this)),this.channel.on(Fg,this.onPreloadStories.bind(this))}async setInitialGlobals(){if(!this.storyStoreValue)throw new At({methodName:"setInitialGlobals"});let{globals:e}=this.selectionStore.selectionSpecifier||{};e&&this.storyStoreValue.userGlobals.updateFromPersisted(e),this.emitGlobals()}async initializeWithStoryIndex(e){return await super.initializeWithStoryIndex(e),this.selectSpecifiedStory()}async selectSpecifiedStory(){if(!this.storyStoreValue)throw new At({methodName:"selectSpecifiedStory"});if(this.selectionStore.selection){await this.renderSelection();return}if(!this.selectionStore.selectionSpecifier){this.renderMissingStory();return}let{storySpecifier:e,args:t}=this.selectionStore.selectionSpecifier,r=this.storyStoreValue.storyIndex.entryFromSpecifier(e);if(!r){e==="*"?this.renderStoryLoadingException(e,new $b):this.renderStoryLoadingException(e,new Bb({storySpecifier:e.toString()}));return}let{id:n,type:o}=r;this.selectionStore.setSelection({storyId:n,viewMode:o}),this.channel.emit(Wg,this.selectionStore.selection),this.channel.emit(Ru,this.selectionStore.selection),await this.renderSelection({persistedArgs:t})}async onGetProjectAnnotationsChanged({getProjectAnnotations:e}){await super.onGetProjectAnnotationsChanged({getProjectAnnotations:e}),this.selectionStore.selection&&this.renderSelection()}async onStoriesChanged({importFn:e,storyIndex:t}){await super.onStoriesChanged({importFn:e,storyIndex:t}),this.selectionStore.selection?await this.renderSelection():await this.selectSpecifiedStory()}onKeydown(e){if(!this.storyRenders.find(t=>t.disableKeyListeners)&&!BJ(e)){let{altKey:t,ctrlKey:r,metaKey:n,shiftKey:o,key:i,code:a,keyCode:s}=e;this.channel.emit(Bg,{event:{altKey:t,ctrlKey:r,metaKey:n,shiftKey:o,key:i,code:a,keyCode:s}})}}async onSetCurrentStory(e){this.selectionStore.setSelection({viewMode:"story",...e}),await this.storeInitializationPromise,this.channel.emit(Ru,this.selectionStore.selection),this.renderSelection()}onUpdateQueryParams(e){this.selectionStore.setQueryParams(e)}async onUpdateGlobals({globals:e}){let t=this.currentRender instanceof Ic&&this.currentRender.story||void 0;super.onUpdateGlobals({globals:e,currentStory:t}),(this.currentRender instanceof Ny||this.currentRender instanceof My)&&await this.currentRender.rerender?.()}async onUpdateArgs({storyId:e,updatedArgs:t}){super.onUpdateArgs({storyId:e,updatedArgs:t})}async onPreloadStories({ids:e}){await this.storeInitializationPromise,this.storyStoreValue&&await Promise.allSettled(e.map(t=>this.storyStoreValue?.loadEntry(t)))}async renderSelection({persistedArgs:e}={}){let{renderToCanvas:t}=this;if(!this.storyStoreValue||!t)throw new At({methodName:"renderSelection"});let{selection:r}=this.selectionStore;if(!r)throw new Error("Cannot call renderSelection as no selection was made");let{storyId:n}=r,o;try{o=await this.storyStoreValue.storyIdToEntry(n)}catch(p){this.currentRender&&await this.teardownRender(this.currentRender),this.renderStoryLoadingException(n,p);return}let i=this.currentSelection?.storyId!==n,a=this.currentRender?.type!==o.type;o.type==="story"?this.view.showPreparingStory({immediate:a}):this.view.showPreparingDocs({immediate:a}),this.currentRender?.isPreparing()&&await this.teardownRender(this.currentRender);let s;o.type==="story"?s=new Ic(this.channel,this.storyStoreValue,t,this.mainStoryCallbacks(n),n,"story"):UJ(o)?s=new Ny(this.channel,this.storyStoreValue,o,this.mainStoryCallbacks(n)):s=new My(this.channel,this.storyStoreValue,o,this.mainStoryCallbacks(n));let c=this.currentSelection;this.currentSelection=r;let l=this.currentRender;this.currentRender=s;try{await s.prepare()}catch(p){l&&await this.teardownRender(l),p!==dl&&this.renderStoryLoadingException(n,p);return}let d=!i&&l&&!s.isEqual(l);if(e&&cu(s)&&(Tr(!!s.story),this.storyStoreValue.args.updateFromPersisted(s.story,e)),l&&!l.torndown&&!i&&!d&&!a){this.currentRender=l,this.channel.emit(Yg,n),this.view.showMain();return}if(l&&await this.teardownRender(l,{viewModeChanged:a}),c&&(i||a)&&this.channel.emit(Jg,n),cu(s)){Tr(!!s.story);let{parameters:p,initialArgs:f,argTypes:m,unmappedArgs:y,initialGlobals:g,userGlobals:v,storyGlobals:b,globals:T}=this.storyStoreValue.getStoryContext(s.story);this.channel.emit(Gg,{id:n,parameters:p,initialArgs:f,argTypes:m,args:y}),this.channel.emit(hi,{userGlobals:v,storyGlobals:b,globals:T,initialGlobals:g})}else{let{parameters:p}=this.storyStoreValue.projectAnnotations,{initialGlobals:f,globals:m}=this.storyStoreValue.userGlobals;if(this.channel.emit(hi,{globals:m,initialGlobals:f,storyGlobals:{},userGlobals:m}),JJ(s)||s.entry.tags?.includes(hr.ATTACHED_MDX)){if(!s.csfFiles)throw new Fb({storyId:n});({parameters:p}=this.storyStoreValue.preparedMetaFromCSFFile({csfFile:s.csfFiles[0]}))}this.channel.emit(qg,{id:n,parameters:p})}cu(s)?(Tr(!!s.story),this.storyRenders.push(s),this.currentRender.renderToElement(this.view.prepareForStory(s.story))):this.currentRender.renderToElement(this.view.prepareForDocs(),this.renderStoryToElement.bind(this))}async teardownRender(e,{viewModeChanged:t=!1}={}){this.storyRenders=this.storyRenders.filter(r=>r!==e),await e?.teardown?.({viewModeChanged:t})}mainStoryCallbacks(e){return{showStoryDuringRender:()=>this.view.showStoryDuringRender(),showMain:()=>this.view.showMain(),showError:t=>this.renderError(e,t),showException:t=>this.renderException(e,t)}}renderPreviewEntryError(e,t){super.renderPreviewEntryError(e,t),this.view.showErrorDisplay(t)}renderMissingStory(){this.view.showNoPreview(),this.channel.emit(Cu)}renderStoryLoadingException(e,t){Fe.error(t),this.view.showErrorDisplay(t),this.channel.emit(Cu,e)}renderException(e,t){let{name:r="Error",message:n=String(t),stack:o}=t,i=this.currentRender?.renderId;this.channel.emit(Kg,{name:r,message:n,stack:o}),this.channel.emit(wn,{newPhase:"errored",renderId:i,storyId:e}),this.view.showErrorDisplay(t),Fe.error(`Error rendering story '${e}':`),Fe.error(t)}renderError(e,{title:t,description:r}){let n=this.currentRender?.renderId;this.channel.emit(Vg,{title:t,description:r}),this.channel.emit(wn,{newPhase:"errored",renderId:n,storyId:e}),this.view.showErrorDisplay({message:t,stack:r}),Fe.error(`Error rendering story ${t}: ${r}`)}},kc=We(ad(),1),VJ=We(ad(),1),Iy=/^[a-zA-Z0-9 _-]*$/,L0=/^-?[0-9]+(\.[0-9]+)?$/,zJ=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,F0=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,jc=(e="",t)=>e===null||e===""||!Iy.test(e)?!1:t==null||t instanceof Date||typeof t=="number"||typeof t=="boolean"?!0:typeof t=="string"?Iy.test(t)||L0.test(t)||zJ.test(t)||F0.test(t):Array.isArray(t)?t.every(r=>jc(e,r)):ar(t)?Object.entries(t).every(([r,n])=>jc(r,n)):!1,GJ={delimiter:";",nesting:!0,arrayRepeat:!0,arrayRepeatSyntax:"bracket",nestingSyntax:"js",valueDeserializer(e){if(e.startsWith("!")){if(e==="!undefined")return;if(e==="!null")return null;if(e==="!true")return!0;if(e==="!false")return!1;if(e.startsWith("!date(")&&e.endsWith(")"))return new Date(e.replaceAll(" ","+").slice(6,-1));if(e.startsWith("!hex(")&&e.endsWith(")"))return`#${e.slice(5,-1)}`;let t=e.slice(1).match(F0);if(t)return e.startsWith("!rgba")||e.startsWith("!RGBA")?`${t[1]}(${t[2]}, ${t[3]}, ${t[4]}, ${t[5]})`:e.startsWith("!hsla")||e.startsWith("!HSLA")?`${t[1]}(${t[2]}, ${t[3]}%, ${t[4]}%, ${t[5]})`:e.startsWith("!rgb")||e.startsWith("!RGB")?`${t[1]}(${t[2]}, ${t[3]}, ${t[4]})`:`${t[1]}(${t[2]}, ${t[3]}%, ${t[4]}%)`}return L0.test(e)?Number(e):e}},ky=e=>{let t=e.split(";").map(r=>r.replace("=","~").replace(":","="));return Object.entries((0,VJ.parse)(t.join(";"),GJ)).reduce((r,[n,o])=>jc(n,o)?Object.assign(r,{[n]:o}):(Ge.warn(xe`
917
- Omitted potentially unsafe URL args.
918
-
919
- More info: https://storybook.js.org/docs/writing-stories/args?ref=error#setting-args-through-the-url
920
- `),r),{})},{history:$0,document:Wr}=re;function WJ(e){let t=(e||"").match(/^\/story\/(.+)/);if(!t)throw new Error(`Invalid path '${e}', must start with '/story/'`);return t[1]}var B0=({selection:e,extraParams:t})=>{let r=Wr?.location.search.slice(1),{path:n,selectedKind:o,selectedStory:i,...a}=(0,kc.parse)(r);return`?${(0,kc.stringify)({...a,...t,...e&&{id:e.storyId,viewMode:e.viewMode}})}`},KJ=e=>{if(!e)return;let t=B0({selection:e}),{hash:r=""}=Wr.location;Wr.title=e.storyId,$0.replaceState({},"",`${Wr.location.pathname}${t}${r}`)},YJ=e=>e!=null&&typeof e=="object"&&Array.isArray(e)===!1,di=e=>{if(e!==void 0){if(typeof e=="string")return e;if(Array.isArray(e))return di(e[0]);if(YJ(e))return di(Object.values(e).filter(Boolean))}},XJ=()=>{if(typeof Wr<"u"){let e=Wr.location.search.slice(1),t=(0,kc.parse)(e),r=typeof t.args=="string"?ky(t.args):void 0,n=typeof t.globals=="string"?ky(t.globals):void 0,o=di(t.viewMode);if(typeof o!="string"||!o)o="story";else if(!o.match(/docs|story/))return null;let i=di(t.path),a=i?WJ(i):di(t.id);if(a)return{storySpecifier:a,args:r,globals:n,viewMode:o}}return null},U0=class{constructor(){this.selectionSpecifier=XJ()}setSelection(e){this.selection=e,KJ(this.selection)}setQueryParams(e){let t=B0({extraParams:e}),{hash:r=""}=Wr.location;$0.replaceState({},"",`${Wr.location.pathname}${t}${r}`)}},QJ=We(qC(),1),ZJ=We(ad(),1),{document:ct}=re,jy=100,H0=(e=>(e.MAIN="MAIN",e.NOPREVIEW="NOPREVIEW",e.PREPARING_STORY="PREPARING_STORY",e.PREPARING_DOCS="PREPARING_DOCS",e.ERROR="ERROR",e))(H0||{}),du={PREPARING_STORY:"sb-show-preparing-story",PREPARING_DOCS:"sb-show-preparing-docs",MAIN:"sb-show-main",NOPREVIEW:"sb-show-nopreview",ERROR:"sb-show-errordisplay"},pu={centered:"sb-main-centered",fullscreen:"sb-main-fullscreen",padded:"sb-main-padded"},qy=new QJ.default({escapeXML:!0}),J0=class{constructor(){if(this.testing=!1,typeof ct<"u"){let{__SPECIAL_TEST_PARAMETER__:e}=(0,ZJ.parse)(ct.location.search.slice(1));switch(e){case"preparing-story":{this.showPreparingStory(),this.testing=!0;break}case"preparing-docs":{this.showPreparingDocs(),this.testing=!0;break}}}}prepareForStory(e){return this.showStory(),this.applyLayout(e.parameters.layout),ct.documentElement.scrollTop=0,ct.documentElement.scrollLeft=0,this.storyRoot()}storyRoot(){return ct.getElementById("storybook-root")}prepareForDocs(){return this.showMain(),this.showDocs(),this.applyLayout("fullscreen"),ct.documentElement.scrollTop=0,ct.documentElement.scrollLeft=0,this.docsRoot()}docsRoot(){return ct.getElementById("storybook-docs")}applyLayout(e="padded"){if(e==="none"){ct.body.classList.remove(this.currentLayoutClass),this.currentLayoutClass=null;return}this.checkIfLayoutExists(e);let t=pu[e];ct.body.classList.remove(this.currentLayoutClass),ct.body.classList.add(t),this.currentLayoutClass=t}checkIfLayoutExists(e){pu[e]||Fe.warn(xe`
921
- The desired layout: ${e} is not a valid option.
922
- The possible options are: ${Object.keys(pu).join(", ")}, none.
923
- `)}showMode(e){clearTimeout(this.preparingTimeout),Object.keys(H0).forEach(t=>{t===e?ct.body.classList.add(du[t]):ct.body.classList.remove(du[t])})}showErrorDisplay({message:e="",stack:t=""}){let r=e,n=t,o=e.split(`
924
- `);o.length>1&&([r]=o,n=o.slice(1).join(`
925
- `).replace(/^\n/,"")),ct.getElementById("error-message").innerHTML=qy.toHtml(r),ct.getElementById("error-stack").innerHTML=qy.toHtml(n),this.showMode("ERROR")}showNoPreview(){this.testing||(this.showMode("NOPREVIEW"),this.storyRoot()?.setAttribute("hidden","true"),this.docsRoot()?.setAttribute("hidden","true"))}showPreparingStory({immediate:e=!1}={}){clearTimeout(this.preparingTimeout),e?this.showMode("PREPARING_STORY"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_STORY"),jy)}showPreparingDocs({immediate:e=!1}={}){clearTimeout(this.preparingTimeout),e?this.showMode("PREPARING_DOCS"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_DOCS"),jy)}showMain(){this.showMode("MAIN")}showDocs(){this.storyRoot().setAttribute("hidden","true"),this.docsRoot().removeAttribute("hidden")}showStory(){this.docsRoot().setAttribute("hidden","true"),this.storyRoot().removeAttribute("hidden")}showStoryDuringRender(){ct.body.classList.add(du.MAIN)}},eV=class extends D0{constructor(t,r){super(t,r,new U0,new J0),this.importFn=t,this.getProjectAnnotations=r,re.__STORYBOOK_PREVIEW__=this}},{document:En}=re,tV=["application/javascript","application/ecmascript","application/x-ecmascript","application/x-javascript","text/ecmascript","text/javascript","text/javascript1.0","text/javascript1.1","text/javascript1.2","text/javascript1.3","text/javascript1.4","text/javascript1.5","text/jscript","text/livescript","text/x-ecmascript","text/x-javascript","module"],rV="script",Dy="scripts-root";function qc(){let e=En.createEvent("Event");e.initEvent("DOMContentLoaded",!0,!0),En.dispatchEvent(e)}function nV(e,t,r){let n=En.createElement("script");n.type=e.type==="module"?"module":"text/javascript",e.src?(n.onload=t,n.onerror=t,n.src=e.src):n.textContent=e.innerText,r?r.appendChild(n):En.head.appendChild(n),e.parentNode.removeChild(e),e.src||t()}function V0(e,t,r=0){e[r](()=>{r++,r===e.length?t():V0(e,t,r)})}function oV(e){let t=En.getElementById(Dy);t?t.innerHTML="":(t=En.createElement("div"),t.id=Dy,En.body.appendChild(t));let r=Array.from(e.querySelectorAll(rV));if(r.length){let n=[];r.forEach(o=>{let i=o.getAttribute("type");(!i||tV.includes(i))&&n.push(a=>nV(o,a,t))}),n.length&&V0(n,qc,void 0)}else qc()}var fu;(function(e){e.start="/**",e.nostart="/***",e.delim="*",e.end="*/"})(fu=fu||(fu={}));var iV=We(DC(),1),kn=(0,iV.stringifyRules)(),aV=kn.JsdocTypeObject;kn.JsdocTypeAny=()=>"any";kn.JsdocTypeObject=(e,t)=>`(${aV(e,t)})`;kn.JsdocTypeOptional=(e,t)=>t(e.element);kn.JsdocTypeNullable=(e,t)=>t(e.element);kn.JsdocTypeNotNullable=(e,t)=>t(e.element);kn.JsdocTypeUnion=(e,t)=>e.elements.map(t).join("|");var sV="storybook/docs",lV=`${sV}/snippet-rendered`;async function uV(e,t){let r=t.parameters?.docs?.source?.transform,{id:n,unmappedArgs:o}=t,i=r&&e?r?.(e,t):e,a=i?await i:void 0;Ft.getChannel().emit(lV,{id:n,source:a,args:o})}var ji={depth:10,clearOnStoryChange:!0,limit:50},cV=(e={})=>{Object.assign(ji,e)},z0=(e,t)=>{let r=Object.getPrototypeOf(e);return!r||t(r)?r:z0(r,t)},dV=e=>!!(typeof e=="object"&&e&&z0(e,t=>/^Synthetic(?:Base)?Event$/.test(t.constructor.name))&&typeof e.persist=="function"),pV=e=>{if(dV(e)){let t=Object.create(e.constructor.prototype,Object.getOwnPropertyDescriptors(e));t.persist();let r=Object.getOwnPropertyDescriptor(t,"view"),n=r?.value;return typeof n=="object"&&n?.constructor.name==="Window"&&Object.defineProperty(t,"view",{...r,value:Object.create(n.constructor.prototype)}),t}return e};function na(e,t={}){let r={...ji,...t},n=function(...o){if(t.implicit){let p=("__STORYBOOK_PREVIEW__"in re?re.__STORYBOOK_PREVIEW__:void 0)?.storyRenders.find(f=>f.phase==="playing"||f.phase==="rendering");if(p){let f=!globalThis?.FEATURES?.disallowImplicitActionsInRenderV8,m=new jb({phase:p.phase,name:e,deprecated:f});if(f)console.warn(m);else throw m}}let i=Ft.getChannel(),a=Date.now().toString(36)+Math.random().toString(36).substring(2),s=5,c=o.map(pV),l=o.length>1?c:c[0],d={id:a,count:0,data:{name:e,args:l},options:{...r,maxDepth:s+(r.depth||3)}};i.emit(tv,d)};return n.isAction=!0,n.implicit=t.implicit,n}var fV=(...e)=>{let t=ji,r=e;r.length===1&&Array.isArray(r[0])&&([r]=r),r.length!==1&&typeof r[r.length-1]!="string"&&(t={...ji,...r.pop()});let n=r[0];(r.length!==1||typeof n=="string")&&(n={},r.forEach(i=>{n[i]=i}));let o={};return Object.keys(n).forEach(i=>{o[i]=na(n[i],t)}),o},mV={"@storybook/global":rb,"storybook/test":pv,"storybook/actions":ev,"storybook/preview-api":Iu,"storybook/internal/channels":ob,"storybook/internal/client-logger":ib,"storybook/internal/core-events":sd,"storybook/internal/types":zb,"storybook/internal/preview-errors":Mb,"storybook/internal/preview-api":Iu};async function hV(){let e=new URL(window.location.href);if(e.searchParams.get("navigator")!=="true"||globalThis.__STORYBOOK_PREVIEW_NAVIGATOR__)return;globalThis.__STORYBOOK_PREVIEW_NAVIGATOR__=!0;let t=await(await fetch("/index.json")).json(),r=e.searchParams.get("id");if(!r){let n=Object.values(t.entries)[0];n&&(e.searchParams.set("id",n.id),e.searchParams.set("viewMode",n.type),window.location.href=e.toString());return}yV(t,r)}var yV=async(e,t)=>{let r={entries:{}};for(let s of Object.values(e.entries)){let c=s.title.split("/"),l=r;for(let d of c)l.entries||(l.entries={}),l.entries[d]?t===s.id&&(l.entries[d].isActive=!0):l.entries[d]={title:d,isActive:t===s.id,entries:{}},l=l.entries[d];l.entries||(l.entries={}),l.entries[s.name]={id:s.id,name:s.name,href:`?id=${s.id}&viewMode=${s.type}&navigator=true`,isActive:t===s.id}}let n=s=>{if("entries"in s&&"title"in s){let l=s;return`
926
- <li class="sb-navigator-branch">
927
- <details${l.isActive?" open":""}>
928
- <summary class="sb-navigator-title">
929
- ${l.title}
930
- </summary>
931
- <ul class="sb-navigator-entries" aria-label="${l.title}">
932
- ${Object.values(l.entries).map(n).join("")}
933
- </ul>
934
- </details>
935
- </li>
936
- `}let c=s;return`
937
- <li class="sb-navigator-story-item">
938
- <a href="${c.href}"
939
- class="sb-navigator-story-link${c.isActive?" active":""}"
940
- aria-current="${c.isActive?"location":"false"}">${c.name}</a>
941
- </li>
942
- `},o=Object.values(r.entries).map(n).join(""),i=document.createElement("nav");i.id="sb-navigator-container",i.setAttribute("role","navigation"),i.setAttribute("aria-label","Story navigation"),i.innerHTML=`
943
- <ul class="sb-navigator-list">${o}</ul>
944
- `,document.body.insertBefore(i,document.body.firstChild);let a=document.createElement("style");a.id="sb-navigator-style",a.textContent=`
945
- body {
946
- display: grid !important;
947
- grid-template-columns: 300px 1fr;
948
- font-family: 'Nunito', sans-serif;
949
- height: 100vh;
950
- margin: 0;
951
-
952
- --text-color: rgb(46, 52, 56);
953
- --bg-color: rgb(246, 249, 252);
954
-
955
- @media (prefers-color-scheme: dark) {
956
- --text-color: rgb(201, 205, 207);
957
- --bg-color: rgb(34, 36, 37);
958
- }
959
- }
960
- #storybook-root, #storybook-docs {
961
- overflow-y: auto;
962
- max-height: 100vh;
963
- max-width: 100%;
964
- }
965
- #sb-navigator-container, #sb-navigator-container * {
966
- box-sizing: border-box;
967
- }
968
- #sb-navigator-container {
969
- height: 100vh;
970
- overflow-y: auto;
971
- border-right: 1px solid #eee;
972
- padding: 1rem;
973
- font-size: 14px;
974
- color: var(--text-color);
975
- background-color: var(--bg-color);
976
- align-self: start;
977
- z-index: 1000;
978
- }
979
- .sb-main-padded #sb-navigator-container {
980
- margin: -1rem 1rem -1rem -1rem;
981
- }
982
- .sb-navigator-list {
983
- list-style-type: none;
984
- padding: 0;
985
- margin: 0;
986
- }
987
- .sb-navigator-branch {
988
- list-style-type: none;
989
- }
990
- .sb-navigator-item {
991
- margin-bottom: 15px;
992
- }
993
- .sb-navigator-title {
994
- color: var(--text-color);
995
- text-decoration: none;
996
- padding-block: 5px;
997
- cursor: pointer;
998
- }
999
- .sb-navigator-entries {
1000
- padding-left: 15px;
1001
- }
1002
- .sb-navigator-story-item {
1003
- margin-bottom: 8px;
1004
- margin-left: 8px;
1005
- }
1006
- .sb-navigator-story-link {
1007
- color: var(--text-color);
1008
- }
1009
- .sb-navigator-story-link.active {
1010
- font-weight: bold;
1011
- color: hsl(212 100 46);
1012
- }
1013
- `,document.head.appendChild(a),i.querySelector(".sb-navigator-story-link.active")?.closest("details")?.scrollIntoView({block:"center"})},gV=We(LC(),1),mu;function bV(){return mu||(mu=new gV.default(re.navigator?.userAgent).getBrowserInfo()),mu}function vV(e){return e.browserInfo=bV(),e}function EV(e){let t=e.error||e;t.fromStorybook&&re.sendTelemetryError(t)}function wV({reason:e}){e.fromStorybook&&re.sendTelemetryError(e)}function G0(){yP.forEach(e=>{re[nb[e]]=mV[e]}),re.sendTelemetryError=e=>{re.__STORYBOOK_ADDONS_CHANNEL__.emit(Zg,vV(e))},document.addEventListener("DOMContentLoaded",()=>{re.__STORYBOOK_ADDONS_CHANNEL__.on(tb,e=>{e?document.body.setAttribute("inert","true"):document.body.removeAttribute("inert")})}),re.addEventListener("error",EV),re.addEventListener("unhandledrejection",wV),hV()}G0();const{createBrowserChannel:_V}=__STORYBOOK_MODULE_CHANNELS__,{addons:TV}=__STORYBOOK_MODULE_PREVIEW_API__,of=_V({page:"preview"});TV.setChannel(of);window.__STORYBOOK_ADDONS_CHANNEL__=of;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=of);var xV=Object.create,af=Object.defineProperty,SV=Object.getOwnPropertyDescriptor,W0=Object.getOwnPropertyNames,AV=Object.getPrototypeOf,OV=Object.prototype.hasOwnProperty,Oa=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),oa=(e,t)=>function(){return t||(0,e[W0(e)[0]])((t={exports:{}}).exports,t),t.exports},m9=(e,t)=>{for(var r in t)af(e,r,{get:t[r],enumerable:!0})},RV=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of W0(t))!OV.call(e,o)&&o!==r&&af(e,o,{get:()=>t[o],enumerable:!(n=SV(t,o))||n.enumerable});return e},pl=(e,t,r)=>(r=e!=null?xV(AV(e)):{},RV(t||!e||!e.__esModule?af(r,"default",{value:e,enumerable:!0}):r,e));function hu(e){if(!e||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null?Object.prototype.toString.call(e)==="[object Object]":!1}function h9(e){return e==null||typeof e!="object"&&typeof e!="function"}function y9(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function g9(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function b9(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var v9="[object RegExp]",E9="[object String]",w9="[object Number]",_9="[object Boolean]",T9="[object Arguments]",x9="[object Symbol]",S9="[object Date]",A9="[object Map]",O9="[object Set]",R9="[object Array]",C9="[object Function]",P9="[object ArrayBuffer]",M9="[object Object]",N9="[object Error]",I9="[object DataView]",k9="[object Uint8Array]",j9="[object Uint8ClampedArray]",q9="[object Uint16Array]",D9="[object Uint32Array]",L9="[object BigUint64Array]",F9="[object Int8Array]",$9="[object Int16Array]",B9="[object Int32Array]",U9="[object BigInt64Array]",H9="[object Float32Array]",J9="[object Float64Array]",CV=oa({"../../node_modules/jsdoc-type-pratt-parser/dist/index.js"(e,t){(function(r,n){typeof e=="object"&&typeof t<"u"?n(e):typeof define=="function"&&define.amd?define(["exports"],n):(r=typeof globalThis<"u"?globalThis:r||self,n(r.jtpp={}))})(e,(function(r){function n(u){return u.text!==void 0&&u.text!==""?`'${u.type}' with value '${u.text}'`:`'${u.type}'`}class o extends Error{constructor(h){super(`No parslet found for token: ${n(h)}`),this.token=h,Object.setPrototypeOf(this,o.prototype)}getToken(){return this.token}}class i extends Error{constructor(h){super(`The parsing ended early. The next token was: ${n(h)}`),this.token=h,Object.setPrototypeOf(this,i.prototype)}getToken(){return this.token}}class a extends Error{constructor(h,w){let C=`Unexpected type: '${h.type}'.`;w!==void 0&&(C+=` Message: ${w}`),super(C),Object.setPrototypeOf(this,a.prototype)}}function s(u){return h=>h.startsWith(u)?{type:u,text:u}:null}function c(u){let h=0,w,C=u[0],U=!1;if(C!=="'"&&C!=='"')return null;for(;h<u.length;){if(h++,w=u[h],!U&&w===C){h++;break}U=!U&&w==="\\"}if(w!==C)throw new Error("Unterminated String");return u.slice(0,h)}let l=new RegExp("[$_\\p{ID_Start}]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u"),d=new RegExp("[$\\-\\p{ID_Continue}\\u200C\\u200D]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u");function p(u){let h=u[0];if(!l.test(h))return null;let w=1;do{if(h=u[w],!d.test(h))break;w++}while(w<u.length);return u.slice(0,w)}let f=/^(NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity))/;function m(u){var h,w;return(w=(h=f.exec(u))===null||h===void 0?void 0:h[0])!==null&&w!==void 0?w:null}let y=u=>{let h=p(u);return h==null?null:{type:"Identifier",text:h}};function g(u){return h=>{if(!h.startsWith(u))return null;let w=h[u.length];return w!==void 0&&d.test(w)?null:{type:u,text:u}}}let v=u=>{let h=c(u);return h==null?null:{type:"StringValue",text:h}},b=u=>u.length>0?null:{type:"EOF",text:""},T=u=>{let h=m(u);return h===null?null:{type:"Number",text:h}},A=[b,s("=>"),s("("),s(")"),s("{"),s("}"),s("["),s("]"),s("|"),s("&"),s("<"),s(">"),s(","),s(";"),s("*"),s("?"),s("!"),s("="),s(":"),s("..."),s("."),s("#"),s("~"),s("/"),s("@"),g("undefined"),g("null"),g("function"),g("this"),g("new"),g("module"),g("event"),g("extends"),g("external"),g("infer"),g("typeof"),g("keyof"),g("readonly"),g("import"),g("is"),g("in"),g("asserts"),T,y,v],R=/^\s*\n\s*/;class P{static create(h){let w=this.read(h);h=w.text;let C=this.read(h);return h=C.text,new P(h,void 0,w.token,C.token)}constructor(h,w,C,U){this.text="",this.text=h,this.previous=w,this.current=C,this.next=U}static read(h,w=!1){w=w||R.test(h),h=h.trim();for(let C of A){let U=C(h);if(U!==null){let W=Object.assign(Object.assign({},U),{startOfLine:w});return h=h.slice(W.text.length),{text:h,token:W}}}throw new Error("Unexpected Token "+h)}advance(){let h=P.read(this.text);return new P(h.text,this.current,this.next,h.token)}}function E(u){if(u===void 0)throw new Error("Unexpected undefined");if(u.type==="JsdocTypeKeyValue"||u.type==="JsdocTypeParameterList"||u.type==="JsdocTypeProperty"||u.type==="JsdocTypeReadonlyProperty"||u.type==="JsdocTypeObjectField"||u.type==="JsdocTypeJsdocObjectField"||u.type==="JsdocTypeIndexSignature"||u.type==="JsdocTypeMappedType"||u.type==="JsdocTypeTypeParameter")throw new a(u);return u}function _(u){return u.type==="JsdocTypeKeyValue"?S(u):E(u)}function x(u){return u.type==="JsdocTypeName"?u:S(u)}function S(u){if(u.type!=="JsdocTypeKeyValue")throw new a(u);return u}function F(u){var h;if(u.type==="JsdocTypeVariadic"){if(((h=u.element)===null||h===void 0?void 0:h.type)==="JsdocTypeName")return u;throw new a(u)}if(u.type!=="JsdocTypeNumber"&&u.type!=="JsdocTypeName")throw new a(u);return u}function j(u){if(u.type==="JsdocTypeTuple"||u.type==="JsdocTypeGeneric"&&u.meta.brackets==="square")return u;throw new a(u)}function J(u){return u.type==="JsdocTypeIndexSignature"||u.type==="JsdocTypeMappedType"}var N;(function(u){u[u.ALL=0]="ALL",u[u.PARAMETER_LIST=1]="PARAMETER_LIST",u[u.OBJECT=2]="OBJECT",u[u.KEY_VALUE=3]="KEY_VALUE",u[u.INDEX_BRACKETS=4]="INDEX_BRACKETS",u[u.UNION=5]="UNION",u[u.INTERSECTION=6]="INTERSECTION",u[u.PREFIX=7]="PREFIX",u[u.INFIX=8]="INFIX",u[u.TUPLE=9]="TUPLE",u[u.SYMBOL=10]="SYMBOL",u[u.OPTIONAL=11]="OPTIONAL",u[u.NULLABLE=12]="NULLABLE",u[u.KEY_OF_TYPE_OF=13]="KEY_OF_TYPE_OF",u[u.FUNCTION=14]="FUNCTION",u[u.ARROW=15]="ARROW",u[u.ARRAY_BRACKETS=16]="ARRAY_BRACKETS",u[u.GENERIC=17]="GENERIC",u[u.NAME_PATH=18]="NAME_PATH",u[u.PARENTHESIS=19]="PARENTHESIS",u[u.SPECIAL_TYPES=20]="SPECIAL_TYPES"})(N||(N={}));class O{constructor(h,w,C){this.grammar=h,typeof w=="string"?this._lexer=P.create(w):this._lexer=w,this.baseParser=C}get lexer(){return this._lexer}parse(){let h=this.parseType(N.ALL);if(this.lexer.current.type!=="EOF")throw new i(this.lexer.current);return h}parseType(h){return E(this.parseIntermediateType(h))}parseIntermediateType(h){let w=this.tryParslets(null,h);if(w===null)throw new o(this.lexer.current);return this.parseInfixIntermediateType(w,h)}parseInfixIntermediateType(h,w){let C=this.tryParslets(h,w);for(;C!==null;)h=C,C=this.tryParslets(h,w);return h}tryParslets(h,w){for(let C of this.grammar){let U=C(this,w,h);if(U!==null)return U}return null}consume(h){return Array.isArray(h)||(h=[h]),h.includes(this.lexer.current.type)?(this._lexer=this.lexer.advance(),!0):!1}acceptLexerState(h){this._lexer=h.lexer}}function q(u){return u==="}"||u==="EOF"||u==="|"||u===","||u===")"||u===">"}let $=(u,h,w)=>{let C=u.lexer.current.type,U=u.lexer.next.type;return w==null&&C==="?"&&!q(U)||w!=null&&C==="?"?(u.consume("?"),w==null?{type:"JsdocTypeNullable",element:u.parseType(N.NULLABLE),meta:{position:"prefix"}}:{type:"JsdocTypeNullable",element:E(w),meta:{position:"suffix"}}):null};function V(u){let h=(w,C,U)=>{let W=w.lexer.current.type,Z=w.lexer.next.type;if(U===null){if("parsePrefix"in u&&u.accept(W,Z))return u.parsePrefix(w)}else if("parseInfix"in u&&u.precedence>C&&u.accept(W,Z))return u.parseInfix(w,U);return null};return Object.defineProperty(h,"name",{value:u.name}),h}let Y=V({name:"optionalParslet",accept:u=>u==="=",precedence:N.OPTIONAL,parsePrefix:u=>(u.consume("="),{type:"JsdocTypeOptional",element:u.parseType(N.OPTIONAL),meta:{position:"prefix"}}),parseInfix:(u,h)=>(u.consume("="),{type:"JsdocTypeOptional",element:E(h),meta:{position:"suffix"}})}),oe=V({name:"numberParslet",accept:u=>u==="Number",parsePrefix:u=>{let h=parseFloat(u.lexer.current.text);return u.consume("Number"),{type:"JsdocTypeNumber",value:h}}}),ue=V({name:"parenthesisParslet",accept:u=>u==="(",parsePrefix:u=>{if(u.consume("("),u.consume(")"))return{type:"JsdocTypeParameterList",elements:[]};let h=u.parseIntermediateType(N.ALL);if(!u.consume(")"))throw new Error("Unterminated parenthesis");return h.type==="JsdocTypeParameterList"?h:h.type==="JsdocTypeKeyValue"?{type:"JsdocTypeParameterList",elements:[h]}:{type:"JsdocTypeParenthesis",element:E(h)}}}),D=V({name:"specialTypesParslet",accept:(u,h)=>u==="?"&&q(h)||u==="null"||u==="undefined"||u==="*",parsePrefix:u=>{if(u.consume("null"))return{type:"JsdocTypeNull"};if(u.consume("undefined"))return{type:"JsdocTypeUndefined"};if(u.consume("*"))return{type:"JsdocTypeAny"};if(u.consume("?"))return{type:"JsdocTypeUnknown"};throw new Error("Unacceptable token: "+u.lexer.current.text)}}),L=V({name:"notNullableParslet",accept:u=>u==="!",precedence:N.NULLABLE,parsePrefix:u=>(u.consume("!"),{type:"JsdocTypeNotNullable",element:u.parseType(N.NULLABLE),meta:{position:"prefix"}}),parseInfix:(u,h)=>(u.consume("!"),{type:"JsdocTypeNotNullable",element:E(h),meta:{position:"suffix"}})});function G({allowTrailingComma:u}){return V({name:"parameterListParslet",accept:h=>h===",",precedence:N.PARAMETER_LIST,parseInfix:(h,w)=>{let C=[_(w)];h.consume(",");do try{let U=h.parseIntermediateType(N.PARAMETER_LIST);C.push(_(U))}catch(U){if(U instanceof o)break;throw U}while(h.consume(","));if(C.length>0&&C.slice(0,-1).some(U=>U.type==="JsdocTypeVariadic"))throw new Error("Only the last parameter may be a rest parameter");return{type:"JsdocTypeParameterList",elements:C}}})}let Q=V({name:"genericParslet",accept:(u,h)=>u==="<"||u==="."&&h==="<",precedence:N.GENERIC,parseInfix:(u,h)=>{let w=u.consume(".");u.consume("<");let C=[],U=!1;if(u.consume("infer")){U=!0;let W=u.parseIntermediateType(N.SYMBOL);if(W.type!=="JsdocTypeName")throw new a(W,"A typescript asserts always has to have a name on the left side.");C.push(W)}else do C.push(u.parseType(N.PARAMETER_LIST));while(u.consume(","));if(!u.consume(">"))throw new Error("Unterminated generic parameter list");return Object.assign(Object.assign({type:"JsdocTypeGeneric",left:E(h),elements:C},U?{infer:!0}:{}),{meta:{brackets:"angle",dot:w}})}}),X=V({name:"unionParslet",accept:u=>u==="|",precedence:N.UNION,parseInfix:(u,h)=>{u.consume("|");let w=[];do w.push(u.parseType(N.UNION));while(u.consume("|"));return{type:"JsdocTypeUnion",elements:[E(h),...w]}}}),K=[$,Y,oe,ue,D,L,G({allowTrailingComma:!0}),Q,X,Y];function ie({allowSquareBracketsOnAnyType:u,allowJsdocNamePaths:h,pathGrammar:w}){return function(C,U,W){if(W==null||U>=N.NAME_PATH)return null;let Z=C.lexer.current.type,fe=C.lexer.next.type;if(!(Z==="."&&fe!=="<"||Z==="["&&(u||W.type==="JsdocTypeName")||h&&(Z==="~"||Z==="#")))return null;let me,Ae=!1;C.consume(".")?me="property":C.consume("[")?(me="property-brackets",Ae=!0):C.consume("~")?me="inner":(C.consume("#"),me="instance");let et=w!==null?new O(w,C.lexer,C):C,He=et.parseIntermediateType(N.NAME_PATH);C.acceptLexerState(et);let Ht;switch(He.type){case"JsdocTypeName":Ht={type:"JsdocTypeProperty",value:He.value,meta:{quote:void 0}};break;case"JsdocTypeNumber":Ht={type:"JsdocTypeProperty",value:He.value.toString(10),meta:{quote:void 0}};break;case"JsdocTypeStringValue":Ht={type:"JsdocTypeProperty",value:He.value,meta:{quote:He.meta.quote}};break;case"JsdocTypeSpecialNamePath":if(He.specialType==="event")Ht=He;else throw new a(He,"Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'");break;default:throw new a(He,"Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'")}if(Ae&&!C.consume("]")){let Uo=C.lexer.current;throw new Error(`Unterminated square brackets. Next token is '${Uo.type}' with text '${Uo.text}'`)}return{type:"JsdocTypeNamePath",left:E(W),right:Ht,pathType:me}}}function se({allowedAdditionalTokens:u}){return V({name:"nameParslet",accept:h=>h==="Identifier"||h==="this"||h==="new"||u.includes(h),parsePrefix:h=>{let{type:w,text:C}=h.lexer.current;return h.consume(w),{type:"JsdocTypeName",value:C}}})}let Te=V({name:"stringValueParslet",accept:u=>u==="StringValue",parsePrefix:u=>{let h=u.lexer.current.text;return u.consume("StringValue"),{type:"JsdocTypeStringValue",value:h.slice(1,-1),meta:{quote:h[0]==="'"?"single":"double"}}}});function B({pathGrammar:u,allowedTypes:h}){return V({name:"specialNamePathParslet",accept:w=>h.includes(w),parsePrefix:w=>{let C=w.lexer.current.type;if(w.consume(C),!w.consume(":"))return{type:"JsdocTypeName",value:C};let U,W=w.lexer.current;if(w.consume("StringValue"))U={type:"JsdocTypeSpecialNamePath",value:W.text.slice(1,-1),specialType:C,meta:{quote:W.text[0]==="'"?"single":"double"}};else{let me="",Ae=["Identifier","@","/"];for(;Ae.some(et=>w.consume(et));)me+=W.text,W=w.lexer.current;U={type:"JsdocTypeSpecialNamePath",value:me,specialType:C,meta:{quote:void 0}}}let Z=new O(u,w.lexer,w),fe=Z.parseInfixIntermediateType(U,N.ALL);return w.acceptLexerState(Z),E(fe)}})}let te=[se({allowedAdditionalTokens:["external","module"]}),Te,oe,ie({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:null})],ne=[...te,B({allowedTypes:["event"],pathGrammar:te})];function ae(u){let h;if(u.type==="JsdocTypeParameterList")h=u.elements;else if(u.type==="JsdocTypeParenthesis")h=[u.element];else throw new a(u);return h.map(w=>_(w))}function ce(u){let h=ae(u);if(h.some(w=>w.type==="JsdocTypeKeyValue"))throw new Error("No parameter should be named");return h}function de({allowNamedParameters:u,allowNoReturnType:h,allowWithoutParenthesis:w,allowNewAsFunctionKeyword:C}){return V({name:"functionParslet",accept:(U,W)=>U==="function"||C&&U==="new"&&W==="(",parsePrefix:U=>{let W=U.consume("new");U.consume("function");let Z=U.lexer.current.type==="(";if(!Z){if(!w)throw new Error("function is missing parameter list");return{type:"JsdocTypeName",value:"function"}}let fe={type:"JsdocTypeFunction",parameters:[],arrow:!1,constructor:W,parenthesis:Z},me=U.parseIntermediateType(N.FUNCTION);if(u===void 0)fe.parameters=ce(me);else{if(W&&me.type==="JsdocTypeFunction"&&me.arrow)return fe=me,fe.constructor=!0,fe;fe.parameters=ae(me);for(let Ae of fe.parameters)if(Ae.type==="JsdocTypeKeyValue"&&!u.includes(Ae.key))throw new Error(`only allowed named parameters are ${u.join(", ")} but got ${Ae.type}`)}if(U.consume(":"))fe.returnType=U.parseType(N.PREFIX);else if(!h)throw new Error("function is missing return type");return fe}})}function ye({allowPostfix:u,allowEnclosingBrackets:h}){return V({name:"variadicParslet",accept:w=>w==="...",precedence:N.PREFIX,parsePrefix:w=>{w.consume("...");let C=h&&w.consume("[");try{let U=w.parseType(N.PREFIX);if(C&&!w.consume("]"))throw new Error("Unterminated variadic type. Missing ']'");return{type:"JsdocTypeVariadic",element:E(U),meta:{position:"prefix",squareBrackets:C}}}catch(U){if(U instanceof o){if(C)throw new Error("Empty square brackets for variadic are not allowed.");return{type:"JsdocTypeVariadic",meta:{position:void 0,squareBrackets:!1}}}else throw U}},parseInfix:u?(w,C)=>(w.consume("..."),{type:"JsdocTypeVariadic",element:E(C),meta:{position:"suffix",squareBrackets:!1}}):void 0})}let Ee=V({name:"symbolParslet",accept:u=>u==="(",precedence:N.SYMBOL,parseInfix:(u,h)=>{if(h.type!=="JsdocTypeName")throw new Error("Symbol expects a name on the left side. (Reacting on '(')");u.consume("(");let w={type:"JsdocTypeSymbol",value:h.value};if(!u.consume(")")){let C=u.parseIntermediateType(N.SYMBOL);if(w.element=F(C),!u.consume(")"))throw new Error("Symbol does not end after value")}return w}}),Ue=V({name:"arrayBracketsParslet",precedence:N.ARRAY_BRACKETS,accept:(u,h)=>u==="["&&h==="]",parseInfix:(u,h)=>(u.consume("["),u.consume("]"),{type:"JsdocTypeGeneric",left:{type:"JsdocTypeName",value:"Array"},elements:[E(h)],meta:{brackets:"square",dot:!1}})});function gt({objectFieldGrammar:u,allowKeyTypes:h}){return V({name:"objectParslet",accept:w=>w==="{",parsePrefix:w=>{w.consume("{");let C={type:"JsdocTypeObject",meta:{separator:"comma"},elements:[]};if(!w.consume("}")){let U,W=new O(u,w.lexer,w);for(;;){W.acceptLexerState(w);let Z=W.parseIntermediateType(N.OBJECT);w.acceptLexerState(W),Z===void 0&&h&&(Z=w.parseIntermediateType(N.OBJECT));let fe=!1;if(Z.type==="JsdocTypeNullable"&&(fe=!0,Z=Z.element),Z.type==="JsdocTypeNumber"||Z.type==="JsdocTypeName"||Z.type==="JsdocTypeStringValue"){let me;Z.type==="JsdocTypeStringValue"&&(me=Z.meta.quote),C.elements.push({type:"JsdocTypeObjectField",key:Z.value.toString(),right:void 0,optional:fe,readonly:!1,meta:{quote:me}})}else if(Z.type==="JsdocTypeObjectField"||Z.type==="JsdocTypeJsdocObjectField")C.elements.push(Z);else throw new a(Z);if(w.lexer.current.startOfLine)U="linebreak",w.consume(",")||w.consume(";");else if(w.consume(","))U="comma";else if(w.consume(";"))U="semicolon";else break;if(w.lexer.current.type==="}")break}if(C.meta.separator=U??"comma",U==="linebreak"&&(C.meta.propertyIndent=" "),!w.consume("}"))throw new Error("Unterminated record type. Missing '}'")}return C}})}function ut({allowSquaredProperties:u,allowKeyTypes:h,allowReadonly:w,allowOptional:C}){return V({name:"objectFieldParslet",precedence:N.KEY_VALUE,accept:U=>U===":",parseInfix:(U,W)=>{var Z;let fe=!1,me=!1;C&&W.type==="JsdocTypeNullable"&&(fe=!0,W=W.element),w&&W.type==="JsdocTypeReadonlyProperty"&&(me=!0,W=W.element);let Ae=(Z=U.baseParser)!==null&&Z!==void 0?Z:U;if(Ae.acceptLexerState(U),W.type==="JsdocTypeNumber"||W.type==="JsdocTypeName"||W.type==="JsdocTypeStringValue"||J(W)){if(J(W)&&!u)throw new a(W);Ae.consume(":");let et;W.type==="JsdocTypeStringValue"&&(et=W.meta.quote);let He=Ae.parseType(N.KEY_VALUE);return U.acceptLexerState(Ae),{type:"JsdocTypeObjectField",key:J(W)?W:W.value.toString(),right:He,optional:fe,readonly:me,meta:{quote:et}}}else{if(!h)throw new a(W);Ae.consume(":");let et=Ae.parseType(N.KEY_VALUE);return U.acceptLexerState(Ae),{type:"JsdocTypeJsdocObjectField",left:E(W),right:et}}}})}function bt({allowOptional:u,allowVariadic:h}){return V({name:"keyValueParslet",precedence:N.KEY_VALUE,accept:w=>w===":",parseInfix:(w,C)=>{let U=!1,W=!1;if(u&&C.type==="JsdocTypeNullable"&&(U=!0,C=C.element),h&&C.type==="JsdocTypeVariadic"&&C.element!==void 0&&(W=!0,C=C.element),C.type!=="JsdocTypeName")throw new a(C);w.consume(":");let Z=w.parseType(N.KEY_VALUE);return{type:"JsdocTypeKeyValue",key:C.value,right:Z,optional:U,variadic:W}}})}let ot=[...K,de({allowWithoutParenthesis:!0,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),Te,B({allowedTypes:["module","external","event"],pathGrammar:ne}),ye({allowEnclosingBrackets:!0,allowPostfix:!0}),se({allowedAdditionalTokens:["keyof"]}),Ee,Ue,ie({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:ne})],Xt=[...ot,gt({objectFieldGrammar:[se({allowedAdditionalTokens:["typeof","module","in"]}),ut({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),...ot],allowKeyTypes:!0}),bt({allowOptional:!0,allowVariadic:!0})],It=V({name:"typeOfParslet",accept:u=>u==="typeof",parsePrefix:u=>(u.consume("typeof"),{type:"JsdocTypeTypeof",element:u.parseType(N.KEY_OF_TYPE_OF)})}),Qt=[se({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),$,Y,Te,oe,ut({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],xo=[...K,gt({allowKeyTypes:!1,objectFieldGrammar:Qt}),se({allowedAdditionalTokens:["event","external","in"]}),It,de({allowWithoutParenthesis:!1,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),ye({allowEnclosingBrackets:!1,allowPostfix:!1}),se({allowedAdditionalTokens:["keyof"]}),B({allowedTypes:["module"],pathGrammar:ne}),ie({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:ne}),bt({allowOptional:!1,allowVariadic:!1}),Ee],So=V({name:"assertsParslet",accept:u=>u==="asserts",parsePrefix:u=>{u.consume("asserts");let h=u.parseIntermediateType(N.SYMBOL);if(h.type!=="JsdocTypeName")throw new a(h,"A typescript asserts always has to have a name on the left side.");return u.consume("is")?{type:"JsdocTypeAsserts",left:h,right:E(u.parseIntermediateType(N.INFIX))}:{type:"JsdocTypeAssertsPlain",element:h}}});function Ao({allowQuestionMark:u}){return V({name:"tupleParslet",accept:h=>h==="[",parsePrefix:h=>{h.consume("[");let w={type:"JsdocTypeTuple",elements:[]};if(h.consume("]"))return w;let C=h.parseIntermediateType(N.ALL);if(C.type==="JsdocTypeParameterList"?C.elements[0].type==="JsdocTypeKeyValue"?w.elements=C.elements.map(S):w.elements=C.elements.map(E):C.type==="JsdocTypeKeyValue"?w.elements=[S(C)]:w.elements=[E(C)],!h.consume("]"))throw new Error("Unterminated '['");if(w.elements.some(U=>U.type==="JsdocTypeUnknown"))throw new Error("Question mark in tuple not allowed");return w}})}let Oo=V({name:"keyOfParslet",accept:u=>u==="keyof",parsePrefix:u=>(u.consume("keyof"),{type:"JsdocTypeKeyof",element:E(u.parseType(N.KEY_OF_TYPE_OF))})}),Ro=V({name:"importParslet",accept:u=>u==="import",parsePrefix:u=>{if(u.consume("import"),!u.consume("("))throw new Error("Missing parenthesis after import keyword");let h=u.parseType(N.PREFIX);if(h.type!=="JsdocTypeStringValue")throw new Error("Only string values are allowed as paths for imports");if(!u.consume(")"))throw new Error("Missing closing parenthesis after import keyword");return{type:"JsdocTypeImport",element:h}}}),Co=V({name:"readonlyPropertyParslet",accept:u=>u==="readonly",parsePrefix:u=>(u.consume("readonly"),{type:"JsdocTypeReadonlyProperty",element:u.parseIntermediateType(N.KEY_VALUE)})}),Po=V({name:"arrowFunctionParslet",precedence:N.ARROW,accept:u=>u==="=>",parseInfix:(u,h)=>(u.consume("=>"),{type:"JsdocTypeFunction",parameters:ae(h).map(x),arrow:!0,constructor:!1,parenthesis:!0,returnType:u.parseType(N.OBJECT)})}),Mo=V({name:"genericArrowFunctionParslet",accept:u=>u==="<",parsePrefix:u=>{let h=[];u.consume("<");do{let C,U=u.parseIntermediateType(N.SYMBOL);if(U.type==="JsdocTypeOptional"&&(U=U.element,C=u.parseType(N.SYMBOL)),U.type!=="JsdocTypeName")throw new a(U);let W;u.consume("extends")&&(W=u.parseType(N.SYMBOL),W.type==="JsdocTypeOptional"&&(W=W.element,C=u.parseType(N.SYMBOL)));let Z={type:"JsdocTypeTypeParameter",name:U};if(W!==void 0&&(Z.constraint=W),C!==void 0&&(Z.defaultValue=C),h.push(Z),u.consume(">"))break}while(u.consume(","));let w=u.parseIntermediateType(N.SYMBOL);return w.typeParameters=h,w}}),No=V({name:"intersectionParslet",accept:u=>u==="&",precedence:N.INTERSECTION,parseInfix:(u,h)=>{u.consume("&");let w=[];do w.push(u.parseType(N.INTERSECTION));while(u.consume("&"));return{type:"JsdocTypeIntersection",elements:[E(h),...w]}}}),Io=V({name:"predicateParslet",precedence:N.INFIX,accept:u=>u==="is",parseInfix:(u,h)=>{if(h.type!=="JsdocTypeName")throw new a(h,"A typescript predicate always has to have a name on the left side.");return u.consume("is"),{type:"JsdocTypePredicate",left:h,right:E(u.parseIntermediateType(N.INFIX))}}}),ko=V({name:"objectSquareBracketPropertyParslet",accept:u=>u==="[",parsePrefix:u=>{if(u.baseParser===void 0)throw new Error("Only allowed inside object grammar");u.consume("[");let h=u.lexer.current.text;u.consume("Identifier");let w;if(u.consume(":")){let C=u.baseParser;C.acceptLexerState(u),w={type:"JsdocTypeIndexSignature",key:h,right:C.parseType(N.INDEX_BRACKETS)},u.acceptLexerState(C)}else if(u.consume("in")){let C=u.baseParser;C.acceptLexerState(u),w={type:"JsdocTypeMappedType",key:h,right:C.parseType(N.ARRAY_BRACKETS)},u.acceptLexerState(C)}else throw new Error("Missing ':' or 'in' inside square bracketed property.");if(!u.consume("]"))throw new Error("Unterminated square brackets");return w}}),jo=V({name:"readonlyArrayParslet",accept:u=>u==="readonly",parsePrefix:u=>(u.consume("readonly"),{type:"JsdocTypeReadonlyArray",element:j(u.parseIntermediateType(N.ALL))})}),qo=V({name:"conditionalParslet",precedence:N.INFIX,accept:u=>u==="extends",parseInfix:(u,h)=>{u.consume("extends");let w=u.parseType(N.KEY_OF_TYPE_OF).element,C=u.parseType(N.INFIX);return u.consume(":"),{type:"JsdocTypeConditional",checksType:E(h),extendsType:w,trueType:C,falseType:u.parseType(N.INFIX)}}}),Do=[Co,se({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),$,Y,Te,oe,ut({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),ko],Lo=[...K,gt({allowKeyTypes:!1,objectFieldGrammar:Do}),jo,It,Oo,Ro,Te,de({allowWithoutParenthesis:!0,allowNoReturnType:!1,allowNamedParameters:["this","new","args"],allowNewAsFunctionKeyword:!0}),Ao({allowQuestionMark:!1}),ye({allowEnclosingBrackets:!1,allowPostfix:!1}),So,qo,se({allowedAdditionalTokens:["event","external","in"]}),B({allowedTypes:["module"],pathGrammar:ne}),Ue,Po,Mo,ie({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:ne}),No,Io,bt({allowVariadic:!0,allowOptional:!0})];function tn(u,h){switch(h){case"closure":return new O(xo,u).parse();case"jsdoc":return new O(Xt,u).parse();case"typescript":return new O(Lo,u).parse()}}function Fo(u,h=["typescript","closure","jsdoc"]){let w;for(let C of h)try{return tn(u,C)}catch(U){w=U}throw w}function xt(u,h){let w=u[h.type];if(w===void 0)throw new Error(`In this set of transform rules exists no rule for type ${h.type}.`);return w(h,C=>xt(u,C))}function pe(u){throw new Error("This transform is not available. Are you trying the correct parsing mode?")}function rn(u){let h={params:[]};for(let w of u.parameters)w.type==="JsdocTypeKeyValue"?w.key==="this"?h.this=w.right:w.key==="new"?h.new=w.right:h.params.push(w):h.params.push(w);return h}function Ut(u,h,w){return u==="prefix"?w+h:h+w}function Ze(u,h){switch(h){case"double":return`"${u}"`;case"single":return`'${u}'`;case void 0:return u}}function ee(){return{JsdocTypeParenthesis:(u,h)=>`(${u.element!==void 0?h(u.element):""})`,JsdocTypeKeyof:(u,h)=>`keyof ${h(u.element)}`,JsdocTypeFunction:(u,h)=>{var w;if(u.arrow){if(u.returnType===void 0)throw new Error("Arrow function needs a return type.");let C=`${u.typeParameters!==void 0?`<${(w=u.typeParameters.map(h).join(", "))!==null&&w!==void 0?w:""}>`:""}(${u.parameters.map(h).join(", ")}) => ${h(u.returnType)}`;return u.constructor&&(C="new "+C),C}else{let C=u.constructor?"new":"function";return u.parenthesis&&(C+=`(${u.parameters.map(h).join(", ")})`,u.returnType!==void 0&&(C+=`: ${h(u.returnType)}`)),C}},JsdocTypeName:u=>u.value,JsdocTypeTuple:(u,h)=>`[${u.elements.map(h).join(", ")}]`,JsdocTypeVariadic:(u,h)=>u.meta.position===void 0?"...":Ut(u.meta.position,h(u.element),"..."),JsdocTypeNamePath:(u,h)=>{let w=h(u.left),C=h(u.right);switch(u.pathType){case"inner":return`${w}~${C}`;case"instance":return`${w}#${C}`;case"property":return`${w}.${C}`;case"property-brackets":return`${w}[${C}]`}},JsdocTypeStringValue:u=>Ze(u.value,u.meta.quote),JsdocTypeAny:()=>"*",JsdocTypeGeneric:(u,h)=>{if(u.meta.brackets==="square"){let w=u.elements[0],C=h(w);return w.type==="JsdocTypeUnion"||w.type==="JsdocTypeIntersection"?`(${C})[]`:`${C}[]`}else return`${h(u.left)}${u.meta.dot?".":""}<${u.infer===!0?"infer ":""}${u.elements.map(h).join(", ")}>`},JsdocTypeImport:(u,h)=>`import(${h(u.element)})`,JsdocTypeObjectField:(u,h)=>{let w="";return u.readonly&&(w+="readonly "),typeof u.key=="string"?w+=Ze(u.key,u.meta.quote):w+=h(u.key),u.optional&&(w+="?"),u.right===void 0?w:w+`: ${h(u.right)}`},JsdocTypeJsdocObjectField:(u,h)=>`${h(u.left)}: ${h(u.right)}`,JsdocTypeKeyValue:(u,h)=>{let w=u.key;return u.optional&&(w+="?"),u.variadic&&(w="..."+w),u.right===void 0?w:w+`: ${h(u.right)}`},JsdocTypeSpecialNamePath:u=>`${u.specialType}:${Ze(u.value,u.meta.quote)}`,JsdocTypeNotNullable:(u,h)=>Ut(u.meta.position,h(u.element),"!"),JsdocTypeNull:()=>"null",JsdocTypeNullable:(u,h)=>Ut(u.meta.position,h(u.element),"?"),JsdocTypeNumber:u=>u.value.toString(),JsdocTypeObject:(u,h)=>{var w,C;return`{${(u.meta.separator==="linebreak"&&u.elements.length>1?`
1014
- `+((w=u.meta.propertyIndent)!==null&&w!==void 0?w:""):"")+u.elements.map(h).join(u.meta.separator==="comma"?", ":u.meta.separator==="linebreak"?`
1015
- `+((C=u.meta.propertyIndent)!==null&&C!==void 0?C:""):"; ")+(u.meta.separator==="linebreak"&&u.elements.length>1?`
1016
- `:"")}}`},JsdocTypeOptional:(u,h)=>Ut(u.meta.position,h(u.element),"="),JsdocTypeSymbol:(u,h)=>`${u.value}(${u.element!==void 0?h(u.element):""})`,JsdocTypeTypeof:(u,h)=>`typeof ${h(u.element)}`,JsdocTypeUndefined:()=>"undefined",JsdocTypeUnion:(u,h)=>u.elements.map(h).join(" | "),JsdocTypeUnknown:()=>"?",JsdocTypeIntersection:(u,h)=>u.elements.map(h).join(" & "),JsdocTypeProperty:u=>Ze(u.value,u.meta.quote),JsdocTypePredicate:(u,h)=>`${h(u.left)} is ${h(u.right)}`,JsdocTypeIndexSignature:(u,h)=>`[${u.key}: ${h(u.right)}]`,JsdocTypeMappedType:(u,h)=>`[${u.key} in ${h(u.right)}]`,JsdocTypeAsserts:(u,h)=>`asserts ${h(u.left)} is ${h(u.right)}`,JsdocTypeReadonlyArray:(u,h)=>`readonly ${h(u.element)}`,JsdocTypeAssertsPlain:(u,h)=>`asserts ${h(u.element)}`,JsdocTypeConditional:(u,h)=>`${h(u.checksType)} extends ${h(u.extendsType)} ? ${h(u.trueType)} : ${h(u.falseType)}`,JsdocTypeTypeParameter:(u,h)=>`${h(u.name)}${u.constraint!==void 0?` extends ${h(u.constraint)}`:""}${u.defaultValue!==void 0?` = ${h(u.defaultValue)}`:""}`}}let $o=ee();function Mr(u){return xt($o,u)}let Tl=["null","true","false","break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield"];function it(u){let h={type:"NameExpression",name:u};return Tl.includes(u)&&(h.reservedWord=!0),h}let xl={JsdocTypeOptional:(u,h)=>{let w=h(u.element);return w.optional=!0,w},JsdocTypeNullable:(u,h)=>{let w=h(u.element);return w.nullable=!0,w},JsdocTypeNotNullable:(u,h)=>{let w=h(u.element);return w.nullable=!1,w},JsdocTypeVariadic:(u,h)=>{if(u.element===void 0)throw new Error("dots without value are not allowed in catharsis mode");let w=h(u.element);return w.repeatable=!0,w},JsdocTypeAny:()=>({type:"AllLiteral"}),JsdocTypeNull:()=>({type:"NullLiteral"}),JsdocTypeStringValue:u=>it(Ze(u.value,u.meta.quote)),JsdocTypeUndefined:()=>({type:"UndefinedLiteral"}),JsdocTypeUnknown:()=>({type:"UnknownLiteral"}),JsdocTypeFunction:(u,h)=>{let w=rn(u),C={type:"FunctionType",params:w.params.map(h)};return w.this!==void 0&&(C.this=h(w.this)),w.new!==void 0&&(C.new=h(w.new)),u.returnType!==void 0&&(C.result=h(u.returnType)),C},JsdocTypeGeneric:(u,h)=>({type:"TypeApplication",applications:u.elements.map(w=>h(w)),expression:h(u.left)}),JsdocTypeSpecialNamePath:u=>it(u.specialType+":"+Ze(u.value,u.meta.quote)),JsdocTypeName:u=>u.value!=="function"?it(u.value):{type:"FunctionType",params:[]},JsdocTypeNumber:u=>it(u.value.toString()),JsdocTypeObject:(u,h)=>{let w={type:"RecordType",fields:[]};for(let C of u.elements)C.type!=="JsdocTypeObjectField"&&C.type!=="JsdocTypeJsdocObjectField"?w.fields.push({type:"FieldType",key:h(C),value:void 0}):w.fields.push(h(C));return w},JsdocTypeObjectField:(u,h)=>{if(typeof u.key!="string")throw new Error("Index signatures and mapped types are not supported");return{type:"FieldType",key:it(Ze(u.key,u.meta.quote)),value:u.right===void 0?void 0:h(u.right)}},JsdocTypeJsdocObjectField:(u,h)=>({type:"FieldType",key:h(u.left),value:h(u.right)}),JsdocTypeUnion:(u,h)=>({type:"TypeUnion",elements:u.elements.map(w=>h(w))}),JsdocTypeKeyValue:(u,h)=>({type:"FieldType",key:it(u.key),value:u.right===void 0?void 0:h(u.right)}),JsdocTypeNamePath:(u,h)=>{let w=h(u.left),C;u.right.type==="JsdocTypeSpecialNamePath"?C=h(u.right).name:C=Ze(u.right.value,u.right.meta.quote);let U=u.pathType==="inner"?"~":u.pathType==="instance"?"#":".";return it(`${w.name}${U}${C}`)},JsdocTypeSymbol:u=>{let h="",w=u.element,C=!1;return w?.type==="JsdocTypeVariadic"&&(w.meta.position==="prefix"?h="...":C=!0,w=w.element),w?.type==="JsdocTypeName"?h+=w.value:w?.type==="JsdocTypeNumber"&&(h+=w.value.toString()),C&&(h+="..."),it(`${u.value}(${h})`)},JsdocTypeParenthesis:(u,h)=>h(E(u.element)),JsdocTypeMappedType:pe,JsdocTypeIndexSignature:pe,JsdocTypeImport:pe,JsdocTypeKeyof:pe,JsdocTypeTuple:pe,JsdocTypeTypeof:pe,JsdocTypeIntersection:pe,JsdocTypeProperty:pe,JsdocTypePredicate:pe,JsdocTypeAsserts:pe,JsdocTypeReadonlyArray:pe,JsdocTypeAssertsPlain:pe,JsdocTypeConditional:pe,JsdocTypeTypeParameter:pe};function Sl(u){return xt(xl,u)}function vt(u){switch(u){case void 0:return"none";case"single":return"single";case"double":return"double"}}function Al(u){switch(u){case"inner":return"INNER_MEMBER";case"instance":return"INSTANCE_MEMBER";case"property":return"MEMBER";case"property-brackets":return"MEMBER"}}function nn(u,h){return h.length===2?{type:u,left:h[0],right:h[1]}:{type:u,left:h[0],right:nn(u,h.slice(1))}}let Ol={JsdocTypeOptional:(u,h)=>({type:"OPTIONAL",value:h(u.element),meta:{syntax:u.meta.position==="prefix"?"PREFIX_EQUAL_SIGN":"SUFFIX_EQUALS_SIGN"}}),JsdocTypeNullable:(u,h)=>({type:"NULLABLE",value:h(u.element),meta:{syntax:u.meta.position==="prefix"?"PREFIX_QUESTION_MARK":"SUFFIX_QUESTION_MARK"}}),JsdocTypeNotNullable:(u,h)=>({type:"NOT_NULLABLE",value:h(u.element),meta:{syntax:u.meta.position==="prefix"?"PREFIX_BANG":"SUFFIX_BANG"}}),JsdocTypeVariadic:(u,h)=>{let w={type:"VARIADIC",meta:{syntax:u.meta.position==="prefix"?"PREFIX_DOTS":u.meta.position==="suffix"?"SUFFIX_DOTS":"ONLY_DOTS"}};return u.element!==void 0&&(w.value=h(u.element)),w},JsdocTypeName:u=>({type:"NAME",name:u.value}),JsdocTypeTypeof:(u,h)=>({type:"TYPE_QUERY",name:h(u.element)}),JsdocTypeTuple:(u,h)=>({type:"TUPLE",entries:u.elements.map(h)}),JsdocTypeKeyof:(u,h)=>({type:"KEY_QUERY",value:h(u.element)}),JsdocTypeImport:u=>({type:"IMPORT",path:{type:"STRING_VALUE",quoteStyle:vt(u.element.meta.quote),string:u.element.value}}),JsdocTypeUndefined:()=>({type:"NAME",name:"undefined"}),JsdocTypeAny:()=>({type:"ANY"}),JsdocTypeFunction:(u,h)=>{let w=rn(u),C={type:u.arrow?"ARROW":"FUNCTION",params:w.params.map(U=>{if(U.type==="JsdocTypeKeyValue"){if(U.right===void 0)throw new Error("Function parameter without ':' is not expected to be 'KEY_VALUE'");return{type:"NAMED_PARAMETER",name:U.key,typeName:h(U.right)}}else return h(U)}),new:null,returns:null};return w.this!==void 0?C.this=h(w.this):u.arrow||(C.this=null),w.new!==void 0&&(C.new=h(w.new)),u.returnType!==void 0&&(C.returns=h(u.returnType)),C},JsdocTypeGeneric:(u,h)=>{let w={type:"GENERIC",subject:h(u.left),objects:u.elements.map(h),meta:{syntax:u.meta.brackets==="square"?"SQUARE_BRACKET":u.meta.dot?"ANGLE_BRACKET_WITH_DOT":"ANGLE_BRACKET"}};return u.meta.brackets==="square"&&u.elements[0].type==="JsdocTypeFunction"&&!u.elements[0].parenthesis&&(w.objects[0]={type:"NAME",name:"function"}),w},JsdocTypeObjectField:(u,h)=>{if(typeof u.key!="string")throw new Error("Index signatures and mapped types are not supported");if(u.right===void 0)return{type:"RECORD_ENTRY",key:u.key,quoteStyle:vt(u.meta.quote),value:null,readonly:!1};let w=h(u.right);return u.optional&&(w={type:"OPTIONAL",value:w,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:u.key.toString(),quoteStyle:vt(u.meta.quote),value:w,readonly:!1}},JsdocTypeJsdocObjectField:()=>{throw new Error("Keys may not be typed in jsdoctypeparser.")},JsdocTypeKeyValue:(u,h)=>{if(u.right===void 0)return{type:"RECORD_ENTRY",key:u.key,quoteStyle:"none",value:null,readonly:!1};let w=h(u.right);return u.optional&&(w={type:"OPTIONAL",value:w,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:u.key,quoteStyle:"none",value:w,readonly:!1}},JsdocTypeObject:(u,h)=>{let w=[];for(let C of u.elements)(C.type==="JsdocTypeObjectField"||C.type==="JsdocTypeJsdocObjectField")&&w.push(h(C));return{type:"RECORD",entries:w}},JsdocTypeSpecialNamePath:u=>{if(u.specialType!=="module")throw new Error(`jsdoctypeparser does not support type ${u.specialType} at this point.`);return{type:"MODULE",value:{type:"FILE_PATH",quoteStyle:vt(u.meta.quote),path:u.value}}},JsdocTypeNamePath:(u,h)=>{let w=!1,C,U;u.right.type==="JsdocTypeSpecialNamePath"&&u.right.specialType==="event"?(w=!0,C=u.right.value,U=vt(u.right.meta.quote)):(C=u.right.value,U=vt(u.right.meta.quote));let W={type:Al(u.pathType),owner:h(u.left),name:C,quoteStyle:U,hasEventPrefix:w};if(W.owner.type==="MODULE"){let Z=W.owner;return W.owner=W.owner.value,Z.value=W,Z}else return W},JsdocTypeUnion:(u,h)=>nn("UNION",u.elements.map(h)),JsdocTypeParenthesis:(u,h)=>({type:"PARENTHESIS",value:h(E(u.element))}),JsdocTypeNull:()=>({type:"NAME",name:"null"}),JsdocTypeUnknown:()=>({type:"UNKNOWN"}),JsdocTypeStringValue:u=>({type:"STRING_VALUE",quoteStyle:vt(u.meta.quote),string:u.value}),JsdocTypeIntersection:(u,h)=>nn("INTERSECTION",u.elements.map(h)),JsdocTypeNumber:u=>({type:"NUMBER_VALUE",number:u.value.toString()}),JsdocTypeSymbol:pe,JsdocTypeProperty:pe,JsdocTypePredicate:pe,JsdocTypeMappedType:pe,JsdocTypeIndexSignature:pe,JsdocTypeAsserts:pe,JsdocTypeReadonlyArray:pe,JsdocTypeAssertsPlain:pe,JsdocTypeConditional:pe,JsdocTypeTypeParameter:pe};function Rl(u){return xt(Ol,u)}function Cl(){return{JsdocTypeIntersection:(u,h)=>({type:"JsdocTypeIntersection",elements:u.elements.map(h)}),JsdocTypeGeneric:(u,h)=>({type:"JsdocTypeGeneric",left:h(u.left),elements:u.elements.map(h),meta:{dot:u.meta.dot,brackets:u.meta.brackets}}),JsdocTypeNullable:u=>u,JsdocTypeUnion:(u,h)=>({type:"JsdocTypeUnion",elements:u.elements.map(h)}),JsdocTypeUnknown:u=>u,JsdocTypeUndefined:u=>u,JsdocTypeTypeof:(u,h)=>({type:"JsdocTypeTypeof",element:h(u.element)}),JsdocTypeSymbol:(u,h)=>{let w={type:"JsdocTypeSymbol",value:u.value};return u.element!==void 0&&(w.element=h(u.element)),w},JsdocTypeOptional:(u,h)=>({type:"JsdocTypeOptional",element:h(u.element),meta:{position:u.meta.position}}),JsdocTypeObject:(u,h)=>({type:"JsdocTypeObject",meta:{separator:"comma"},elements:u.elements.map(h)}),JsdocTypeNumber:u=>u,JsdocTypeNull:u=>u,JsdocTypeNotNullable:(u,h)=>({type:"JsdocTypeNotNullable",element:h(u.element),meta:{position:u.meta.position}}),JsdocTypeSpecialNamePath:u=>u,JsdocTypeObjectField:(u,h)=>({type:"JsdocTypeObjectField",key:u.key,right:u.right===void 0?void 0:h(u.right),optional:u.optional,readonly:u.readonly,meta:u.meta}),JsdocTypeJsdocObjectField:(u,h)=>({type:"JsdocTypeJsdocObjectField",left:h(u.left),right:h(u.right)}),JsdocTypeKeyValue:(u,h)=>({type:"JsdocTypeKeyValue",key:u.key,right:u.right===void 0?void 0:h(u.right),optional:u.optional,variadic:u.variadic}),JsdocTypeImport:(u,h)=>({type:"JsdocTypeImport",element:h(u.element)}),JsdocTypeAny:u=>u,JsdocTypeStringValue:u=>u,JsdocTypeNamePath:u=>u,JsdocTypeVariadic:(u,h)=>{let w={type:"JsdocTypeVariadic",meta:{position:u.meta.position,squareBrackets:u.meta.squareBrackets}};return u.element!==void 0&&(w.element=h(u.element)),w},JsdocTypeTuple:(u,h)=>({type:"JsdocTypeTuple",elements:u.elements.map(h)}),JsdocTypeName:u=>u,JsdocTypeFunction:(u,h)=>{let w={type:"JsdocTypeFunction",arrow:u.arrow,parameters:u.parameters.map(h),constructor:u.constructor,parenthesis:u.parenthesis};return u.returnType!==void 0&&(w.returnType=h(u.returnType)),w},JsdocTypeKeyof:(u,h)=>({type:"JsdocTypeKeyof",element:h(u.element)}),JsdocTypeParenthesis:(u,h)=>({type:"JsdocTypeParenthesis",element:h(u.element)}),JsdocTypeProperty:u=>u,JsdocTypePredicate:(u,h)=>({type:"JsdocTypePredicate",left:h(u.left),right:h(u.right)}),JsdocTypeIndexSignature:(u,h)=>({type:"JsdocTypeIndexSignature",key:u.key,right:h(u.right)}),JsdocTypeMappedType:(u,h)=>({type:"JsdocTypeMappedType",key:u.key,right:h(u.right)}),JsdocTypeAsserts:(u,h)=>({type:"JsdocTypeAsserts",left:h(u.left),right:h(u.right)}),JsdocTypeReadonlyArray:(u,h)=>({type:"JsdocTypeReadonlyArray",element:h(u.element)}),JsdocTypeAssertsPlain:(u,h)=>({type:"JsdocTypeAssertsPlain",element:h(u.element)}),JsdocTypeConditional:(u,h)=>({type:"JsdocTypeConditional",checksType:h(u.checksType),extendsType:h(u.extendsType),trueType:h(u.trueType),falseType:h(u.falseType)}),JsdocTypeTypeParameter:(u,h)=>({type:"JsdocTypeTypeParameter",name:h(u.name),constraint:u.constraint!==void 0?h(u.constraint):void 0,defaultValue:u.defaultValue!==void 0?h(u.defaultValue):void 0})}}let Bo={JsdocTypeAny:[],JsdocTypeFunction:["parameters","returnType"],JsdocTypeGeneric:["left","elements"],JsdocTypeImport:[],JsdocTypeIndexSignature:["right"],JsdocTypeIntersection:["elements"],JsdocTypeKeyof:["element"],JsdocTypeKeyValue:["right"],JsdocTypeMappedType:["right"],JsdocTypeName:[],JsdocTypeNamePath:["left","right"],JsdocTypeNotNullable:["element"],JsdocTypeNull:[],JsdocTypeNullable:["element"],JsdocTypeNumber:[],JsdocTypeObject:["elements"],JsdocTypeObjectField:["right"],JsdocTypeJsdocObjectField:["left","right"],JsdocTypeOptional:["element"],JsdocTypeParenthesis:["element"],JsdocTypeSpecialNamePath:[],JsdocTypeStringValue:[],JsdocTypeSymbol:["element"],JsdocTypeTuple:["elements"],JsdocTypeTypeof:["element"],JsdocTypeUndefined:[],JsdocTypeUnion:["elements"],JsdocTypeUnknown:[],JsdocTypeVariadic:["element"],JsdocTypeProperty:[],JsdocTypePredicate:["left","right"],JsdocTypeAsserts:["left","right"],JsdocTypeReadonlyArray:["element"],JsdocTypeAssertsPlain:["element"],JsdocTypeConditional:["checksType","extendsType","trueType","falseType"],JsdocTypeTypeParameter:["name","constraint","defaultValue"]};function on(u,h,w,C,U){C?.(u,h,w);let W=Bo[u.type];for(let Z of W){let fe=u[Z];if(fe!==void 0)if(Array.isArray(fe))for(let me of fe)on(me,u,Z,C,U);else on(fe,u,Z,C,U)}U?.(u,h,w)}function Pl(u,h,w){on(u,void 0,void 0,h,w)}r.catharsisTransform=Sl,r.identityTransformRules=Cl,r.jtpTransform=Rl,r.parse=tn,r.stringify=Mr,r.stringifyRules=ee,r.transform=xt,r.traverse=Pl,r.tryParse=Fo,r.visitorKeys=Bo}))}});const{UnknownArgTypesError:V9}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{UnknownArgTypesError:z9}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var yu;(function(e){e.start="/**",e.nostart="/***",e.delim="*",e.end="*/"})(yu=yu||(yu={}));var PV=pl(CV(),1),jn=(0,PV.stringifyRules)(),MV=jn.JsdocTypeObject;jn.JsdocTypeAny=()=>"any";jn.JsdocTypeObject=(e,t)=>`(${MV(e,t)})`;jn.JsdocTypeOptional=(e,t)=>t(e.element);jn.JsdocTypeNullable=(e,t)=>t(e.element);jn.JsdocTypeNotNullable=(e,t)=>t(e.element);jn.JsdocTypeUnion=(e,t)=>e.elements.map(t).join("|");var K0=(...e)=>{let t={},r=e.filter(Boolean),n=r.reduce((o,i)=>(Object.entries(i).forEach(([a,s])=>{let c=o[a];Array.isArray(s)||typeof c>"u"?o[a]=s:hu(s)&&hu(c)?t[a]=!0:typeof s<"u"&&(o[a]=s)}),o),{});return Object.keys(t).forEach(o=>{let i=r.filter(Boolean).map(a=>a[o]).filter(a=>typeof a<"u");i.every(a=>hu(a))?n[o]=K0(...i):n[o]=i[i.length-1]}),n},NV=e=>{let{component:t,argTypes:r,parameters:{docs:n={}}}=e,{extractArgTypes:o}=n;if(!o||!t)return r;let i=o(t);return i?K0(i,r):r},IV="storybook/docs",G9=`${IV}/snippet-rendered`,Es=(e=>(e.AUTO="auto",e.CODE="code",e.DYNAMIC="dynamic",e))(Es||{}),kV=oa({"../../node_modules/memoizerific/memoizerific.js"(e,t){(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return(function r(n,o,i){function a(l,d){if(!o[l]){if(!n[l]){var p=typeof Oa=="function"&&Oa;if(!d&&p)return p(l,!0);if(s)return s(l,!0);var f=new Error("Cannot find module '"+l+"'");throw f.code="MODULE_NOT_FOUND",f}var m=o[l]={exports:{}};n[l][0].call(m.exports,function(y){var g=n[l][1][y];return a(g||y)},m,m.exports,r,n,o,i)}return o[l].exports}for(var s=typeof Oa=="function"&&Oa,c=0;c<i.length;c++)a(i[c]);return a})({1:[function(r,n,o){n.exports=function(i){if(typeof Map!="function"||i){var a=r("./similar");return new a}else return new Map}},{"./similar":2}],2:[function(r,n,o){function i(){return this.list=[],this.lastItem=void 0,this.size=0,this}i.prototype.get=function(a){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,a))return this.lastItem.val;if(s=this.indexOf(a),s>=0)return this.lastItem=this.list[s],this.list[s].val},i.prototype.set=function(a,s){var c;return this.lastItem&&this.isEqual(this.lastItem.key,a)?(this.lastItem.val=s,this):(c=this.indexOf(a),c>=0?(this.lastItem=this.list[c],this.list[c].val=s,this):(this.lastItem={key:a,val:s},this.list.push(this.lastItem),this.size++,this))},i.prototype.delete=function(a){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,a)&&(this.lastItem=void 0),s=this.indexOf(a),s>=0)return this.size--,this.list.splice(s,1)[0]},i.prototype.has=function(a){var s;return this.lastItem&&this.isEqual(this.lastItem.key,a)?!0:(s=this.indexOf(a),s>=0?(this.lastItem=this.list[s],!0):!1)},i.prototype.forEach=function(a,s){var c;for(c=0;c<this.size;c++)a.call(s||this,this.list[c].val,this.list[c].key,this)},i.prototype.indexOf=function(a){var s;for(s=0;s<this.size;s++)if(this.isEqual(this.list[s].key,a))return s;return-1},i.prototype.isEqual=function(a,s){return a===s||a!==a&&s!==s},n.exports=i},{}],3:[function(r,n,o){var i=r("map-or-similar");n.exports=function(l){var d=new i(!1),p=[];return function(f){var m=function(){var y=d,g,v,b=arguments.length-1,T=Array(b+1),A=!0,R;if((m.numArgs||m.numArgs===0)&&m.numArgs!==b+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(R=0;R<b;R++){if(T[R]={cacheItem:y,arg:arguments[R]},y.has(arguments[R])){y=y.get(arguments[R]);continue}A=!1,g=new i(!1),y.set(arguments[R],g),y=g}return A&&(y.has(arguments[b])?v=y.get(arguments[b]):A=!1),A||(v=f.apply(null,arguments),y.set(arguments[b],v)),l>0&&(T[b]={cacheItem:y,arg:arguments[b]},A?a(p,T):p.push(T),p.length>l&&s(p.shift())),m.wasMemoized=A,m.numArgs=b+1,v};return m.limit=l,m.wasMemoized=!1,m.cache=d,m.lru=p,m}};function a(l,d){var p=l.length,f=d.length,m,y,g;for(y=0;y<p;y++){for(m=!0,g=0;g<f;g++)if(!c(l[y][g].arg,d[g].arg)){m=!1;break}if(m)break}l.push(l.splice(y,1)[0])}function s(l){var d=l.length,p=l[d-1],f,m;for(p.cacheItem.delete(p.arg),m=d-2;m>=0&&(p=l[m],f=p.cacheItem.get(p.arg),!f||!f.size);m--)p.cacheItem.delete(p.arg)}function c(l,d){return l===d||l!==l&&d!==d}},{"map-or-similar":1}]},{},[3])(3)})}});function jV(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var o=n.reduce(function(s,c){var l=c.match(/\n([\t ]+|(?!\s).)/g);return l?s.concat(l.map(function(d){var p,f;return(f=(p=d.match(/[\t ]/g))===null||p===void 0?void 0:p.length)!==null&&f!==void 0?f:0})):s},[]);if(o.length){var i=new RegExp(`
1017
- [ ]{`+Math.min.apply(Math,o)+"}","g");n=n.map(function(s){return s.replace(i,`
1018
- `)})}n[0]=n[0].replace(/^\r?\n/,"");var a=n[0];return t.forEach(function(s,c){var l=a.match(/(?:^|\n)( *)$/),d=l?l[1]:"",p=s;typeof s=="string"&&s.includes(`
1019
- `)&&(p=String(s).split(`
1020
- `).map(function(f,m){return m===0?f:""+d+f}).join(`
1021
- `)),a+=p+n[c+1]}),a}const qV={"./src/stories/Welcome.stories.ts":()=>ge(()=>import("./Welcome.stories-C3rGMIU7.js"),__vite__mapDeps([0,1,2]),import.meta.url),"./src/stories/ActionBar.stories.ts":()=>ge(()=>import("./ActionBar.stories-CTrEOJBH.js"),__vite__mapDeps([3,4,2]),import.meta.url),"./src/stories/ActionItem.stories.ts":()=>ge(()=>import("./ActionItem.stories-Cm3zQeMa.js"),__vite__mapDeps([5,4,2]),import.meta.url),"./src/stories/Avatar.stories.ts":()=>ge(()=>import("./Avatar.stories-DSltfj-_.js"),__vite__mapDeps([6,4,2]),import.meta.url),"./src/stories/AvatarGroup.stories.ts":()=>ge(()=>import("./AvatarGroup.stories-BjL-l4VH.js"),__vite__mapDeps([7,4,2]),import.meta.url),"./src/stories/Badge.stories.ts":()=>ge(()=>import("./Badge.stories-DLNO3rOl.js"),__vite__mapDeps([8,4,2]),import.meta.url),"./src/stories/Button.stories.ts":()=>ge(()=>import("./Button.stories-3HjoUoaq.js"),__vite__mapDeps([9,10,2]),import.meta.url),"./src/stories/ButtonGroup.stories.ts":()=>ge(()=>import("./ButtonGroup.stories-GF1UFxbr.js"),__vite__mapDeps([11,4,2]),import.meta.url),"./src/stories/Celebrate.stories.ts":()=>ge(()=>import("./Celebrate.stories-KtFU9NEQ.js"),__vite__mapDeps([12,13,14,10,2]),import.meta.url),"./src/stories/Checkbox.stories.ts":()=>ge(()=>import("./Checkbox.stories-CDg2caKU.js"),__vite__mapDeps([15,16,4,2]),import.meta.url),"./src/stories/CircularProgress.stories.ts":()=>ge(()=>import("./CircularProgress.stories-C0OdRoxU.js"),__vite__mapDeps([17,4,2]),import.meta.url),"./src/stories/ClipboardMixin.stories.ts":()=>ge(()=>import("./ClipboardMixin.stories-B6gIxMuH.js"),__vite__mapDeps([18,19,20,21,2]),import.meta.url),"./src/stories/Colors.stories.ts":()=>ge(()=>import("./Colors.stories-tJVgPDrl.js"),__vite__mapDeps([22,2]),import.meta.url),"./src/stories/CombinedEffects.stories.ts":()=>ge(()=>import("./CombinedEffects.stories-BwrWmInr.js"),__vite__mapDeps([23,13,14,24,10,2]),import.meta.url),"./src/stories/ComponentStatesMixin.stories.ts":()=>ge(()=>import("./ComponentStatesMixin.stories-BAn1JPCN.js"),__vite__mapDeps([25,19,20,2]),import.meta.url),"./src/stories/CopyToClipboard.stories.ts":()=>ge(()=>import("./CopyToClipboard.stories-YgaScv3O.js"),__vite__mapDeps([26,2]),import.meta.url),"./src/stories/Debounce.stories.ts":()=>ge(()=>import("./Debounce.stories-y-toLkyr.js"),__vite__mapDeps([27,2]),import.meta.url),"./src/stories/Dropdown.stories.ts":()=>ge(()=>import("./Dropdown.stories-DAVkpuM5.js"),__vite__mapDeps([28,4,2]),import.meta.url),"./src/stories/EmptyState.stories.ts":()=>ge(()=>import("./EmptyState.stories-Buexv2C4.js"),__vite__mapDeps([29,16,4,2]),import.meta.url),"./src/stories/Events.stories.ts":()=>ge(()=>import("./Events.stories-SjSVTFwA.js"),__vite__mapDeps([30,2]),import.meta.url),"./src/stories/Heading.stories.ts":()=>ge(()=>import("./Heading.stories-F7pp5AO4.js"),__vite__mapDeps([31,2]),import.meta.url),"./src/stories/HueRipple.stories.ts":()=>ge(()=>import("./HueRipple.stories-Dt-QniLc.js"),__vite__mapDeps([32,24,14,10,2]),import.meta.url),"./src/stories/Icon.stories.ts":()=>ge(()=>import("./Icon.stories-Cxknci9d.js"),__vite__mapDeps([33,4,34,2]),import.meta.url),"./src/stories/IconButton.stories.ts":()=>ge(()=>import("./IconButton.stories-C7nbDmmd.js"),__vite__mapDeps([35,16,34,2]),import.meta.url),"./src/stories/LinearProgress.stories.ts":()=>ge(()=>import("./LinearProgress.stories-DgP2rsiS.js"),__vite__mapDeps([36,4,2]),import.meta.url),"./src/stories/Pagination.stories.ts":()=>ge(()=>import("./Pagination.stories-DbLKeykx.js"),__vite__mapDeps([37,4,2]),import.meta.url),"./src/stories/Popover.stories.ts":()=>ge(()=>import("./Popover.stories-CbmWs7x-.js"),__vite__mapDeps([38,16,4,2]),import.meta.url),"./src/stories/ReadyMixin.stories.ts":()=>ge(()=>import("./ReadyMixin.stories-DavcxbQ0.js"),[],import.meta.url),"./src/stories/RovingTabindexMixin.stories.ts":()=>ge(()=>import("./RovingTabindexMixin.stories-DPojZp67.js"),__vite__mapDeps([39,19,2]),import.meta.url),"./src/stories/Rtc.stories.ts":()=>ge(()=>import("./Rtc.stories-BF7lM0fa.js"),__vite__mapDeps([40,2]),import.meta.url),"./src/stories/ScrollShadow.stories.ts":()=>ge(()=>import("./ScrollShadow.stories-DwVglPfj.js"),__vite__mapDeps([41,2]),import.meta.url),"./src/stories/Switch.stories.ts":()=>ge(()=>import("./Switch.stories-DjjlIvXU.js"),__vite__mapDeps([42,16,4,34,2]),import.meta.url),"./src/stories/Tabs.stories.ts":()=>ge(()=>import("./Tabs.stories-yWCAVVnG.js"),__vite__mapDeps([43,4,2]),import.meta.url),"./src/stories/Tab.stories.ts":()=>ge(()=>import("./Tab.stories-zUdDTEwX.js"),__vite__mapDeps([44,4,2]),import.meta.url),"./src/stories/Throttle.stories.ts":()=>ge(()=>import("./Throttle.stories-BrcbOwZL.js"),__vite__mapDeps([45,2]),import.meta.url),"./src/stories/Tooltip.stories.ts":()=>ge(()=>import("./Tooltip.stories-B4sykiPz.js"),__vite__mapDeps([46,19,16,4,21,2]),import.meta.url),"./src/stories/Upload.stories.ts":()=>ge(()=>import("./Upload.stories-DHE43_Zz.js"),__vite__mapDeps([47,16,4,2]),import.meta.url),"./src/stories/UploadItem.stories.ts":()=>ge(()=>import("./UploadItem.stories-jqjcXP_N.js"),__vite__mapDeps([48,2]),import.meta.url),"./src/stories/Widget.stories.ts":()=>ge(()=>import("./Widget.stories-D7rHrfAr.js"),__vite__mapDeps([49,4,2]),import.meta.url),"./src/stories/onFind.stories.ts":()=>ge(()=>import("./onFind.stories-BvaTMiWN.js"),__vite__mapDeps([50,51,2]),import.meta.url),"./src/stories/onRemove.stories.ts":()=>ge(()=>import("./onRemove.stories-BPSyS2GE.js"),__vite__mapDeps([52,2]),import.meta.url),"./src/stories/onVisible.stories.ts":()=>ge(()=>import("./onVisible.stories-1lKUeGbt.js"),__vite__mapDeps([53,51,2]),import.meta.url)};async function DV(e){return await qV[e]()}var LV=Object.defineProperty,Y0=(e,t)=>{for(var r in t)LV(e,r,{get:t[r],enumerable:!0})};const Ba=globalThis,sf=Ba.ShadowRoot&&(Ba.ShadyCSS===void 0||Ba.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,X0=Symbol(),Ly=new WeakMap;let FV=class{constructor(t,r,n){if(this._$cssResult$=!0,n!==X0)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o;const r=this.t;if(sf&&t===void 0){const n=r!==void 0&&r.length===1;n&&(t=Ly.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&Ly.set(r,t))}return t}toString(){return this.cssText}};const $V=e=>new FV(typeof e=="string"?e:e+"",void 0,X0),BV=(e,t)=>{if(sf)e.adoptedStyleSheets=t.map((r=>r instanceof CSSStyleSheet?r:r.styleSheet));else for(const r of t){const n=document.createElement("style"),o=Ba.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,e.appendChild(n)}},Fy=sf?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(const n of t.cssRules)r+=n.cssText;return $V(r)})(e):e;const{is:UV,defineProperty:HV,getOwnPropertyDescriptor:JV,getOwnPropertyNames:VV,getOwnPropertySymbols:zV,getPrototypeOf:GV}=Object,fl=globalThis,$y=fl.trustedTypes,WV=$y?$y.emptyScript:"",KV=fl.reactiveElementPolyfillSupport,pi=(e,t)=>e,Dc={toAttribute(e,t){switch(t){case Boolean:e=e?WV:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},Q0=(e,t)=>!UV(e,t),By={attribute:!0,type:String,converter:Dc,reflect:!1,useDefault:!1,hasChanged:Q0};Symbol.metadata??=Symbol("metadata"),fl.litPropertyMetadata??=new WeakMap;let Ln=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=By){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(t,r),!r.noAccessor){const n=Symbol(),o=this.getPropertyDescriptor(t,n,r);o!==void 0&&HV(this.prototype,t,o)}}static getPropertyDescriptor(t,r,n){const{get:o,set:i}=JV(this.prototype,t)??{get(){return this[r]},set(a){this[r]=a}};return{get:o,set(a){const s=o?.call(this);i?.call(this,a),this.requestUpdate(t,s,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??By}static _$Ei(){if(this.hasOwnProperty(pi("elementProperties")))return;const t=GV(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(pi("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(pi("properties"))){const r=this.properties,n=[...VV(r),...zV(r)];for(const o of n)this.createProperty(o,r[o])}const t=this[Symbol.metadata];if(t!==null){const r=litPropertyMetadata.get(t);if(r!==void 0)for(const[n,o]of r)this.elementProperties.set(n,o)}this._$Eh=new Map;for(const[r,n]of this.elementProperties){const o=this._$Eu(r,n);o!==void 0&&this._$Eh.set(o,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const r=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const o of n)r.unshift(Fy(o))}else t!==void 0&&r.push(Fy(t));return r}static _$Eu(t,r){const n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,r=this.constructor.elementProperties;for(const n of r.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return BV(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,r,n){this._$AK(t,n)}_$ET(t,r){const n=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,n);if(o!==void 0&&n.reflect===!0){const i=(n.converter?.toAttribute!==void 0?n.converter:Dc).toAttribute(r,n.type);this._$Em=t,i==null?this.removeAttribute(o):this.setAttribute(o,i),this._$Em=null}}_$AK(t,r){const n=this.constructor,o=n._$Eh.get(t);if(o!==void 0&&this._$Em!==o){const i=n.getPropertyOptions(o),a=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:Dc;this._$Em=o;const s=a.fromAttribute(r,i.type);this[o]=s??this._$Ej?.get(o)??s,this._$Em=null}}requestUpdate(t,r,n){if(t!==void 0){const o=this.constructor,i=this[t];if(n??=o.getPropertyOptions(t),!((n.hasChanged??Q0)(i,r)||n.useDefault&&n.reflect&&i===this._$Ej?.get(t)&&!this.hasAttribute(o._$Eu(t,n))))return;this.C(t,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,r,{useDefault:n,reflect:o,wrapped:i},a){n&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,a??r??this[t]),i!==!0||a!==void 0)||(this._$AL.has(t)||(this.hasUpdated||n||(r=void 0),this._$AL.set(t,r)),o===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[o,i]of this._$Ep)this[o]=i;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[o,i]of n){const{wrapped:a}=i,s=this[o];a!==!0||this._$AL.has(o)||s===void 0||this.C(o,void 0,i,s)}}let t=!1;const r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),this._$EO?.forEach((n=>n.hostUpdate?.())),this.update(r)):this._$EM()}catch(n){throw t=!1,this._$EM(),n}t&&this._$AE(r)}willUpdate(t){}_$AE(t){this._$EO?.forEach((r=>r.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((r=>this._$ET(r,this[r]))),this._$EM()}updated(t){}firstUpdated(t){}};Ln.elementStyles=[],Ln.shadowRootOptions={mode:"open"},Ln[pi("elementProperties")]=new Map,Ln[pi("finalized")]=new Map,KV?.({ReactiveElement:Ln}),(fl.reactiveElementVersions??=[]).push("2.1.1");const lf=globalThis,ws=lf.trustedTypes,Uy=ws?ws.createPolicy("lit-html",{createHTML:e=>e}):void 0,Z0="$lit$",Br=`lit$${Math.random().toFixed(9).slice(2)}$`,ex="?"+Br,YV=`<${ex}>`,Rn=document,qi=()=>Rn.createComment(""),Di=e=>e===null||typeof e!="object"&&typeof e!="function",uf=Array.isArray,XV=e=>uf(e)||typeof e?.[Symbol.iterator]=="function",gu=`[
1022
- \f\r]`,Yo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Hy=/-->/g,Jy=/>/g,un=RegExp(`>|${gu}(?:([^\\s"'>=/]+)(${gu}*=${gu}*(?:[^
1023
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Vy=/'/g,zy=/"/g,tx=/^(?:script|style|textarea|title)$/i,QV=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),rx=QV(1),Cn=Symbol.for("lit-noChange"),Ke=Symbol.for("lit-nothing"),Gy=new WeakMap,yn=Rn.createTreeWalker(Rn,129);function nx(e,t){if(!uf(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Uy!==void 0?Uy.createHTML(t):t}const ZV=(e,t)=>{const r=e.length-1,n=[];let o,i=t===2?"<svg>":t===3?"<math>":"",a=Yo;for(let s=0;s<r;s++){const c=e[s];let l,d,p=-1,f=0;for(;f<c.length&&(a.lastIndex=f,d=a.exec(c),d!==null);)f=a.lastIndex,a===Yo?d[1]==="!--"?a=Hy:d[1]!==void 0?a=Jy:d[2]!==void 0?(tx.test(d[2])&&(o=RegExp("</"+d[2],"g")),a=un):d[3]!==void 0&&(a=un):a===un?d[0]===">"?(a=o??Yo,p=-1):d[1]===void 0?p=-2:(p=a.lastIndex-d[2].length,l=d[1],a=d[3]===void 0?un:d[3]==='"'?zy:Vy):a===zy||a===Vy?a=un:a===Hy||a===Jy?a=Yo:(a=un,o=void 0);const m=a===un&&e[s+1].startsWith("/>")?" ":"";i+=a===Yo?c+YV:p>=0?(n.push(l),c.slice(0,p)+Z0+c.slice(p)+Br+m):c+Br+(p===-2?s:m)}return[nx(e,i+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]};class Li{constructor({strings:t,_$litType$:r},n){let o;this.parts=[];let i=0,a=0;const s=t.length-1,c=this.parts,[l,d]=ZV(t,r);if(this.el=Li.createElement(l,n),yn.currentNode=this.el.content,r===2||r===3){const p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(o=yn.nextNode())!==null&&c.length<s;){if(o.nodeType===1){if(o.hasAttributes())for(const p of o.getAttributeNames())if(p.endsWith(Z0)){const f=d[a++],m=o.getAttribute(p).split(Br),y=/([.?@])?(.*)/.exec(f);c.push({type:1,index:i,name:y[2],strings:m,ctor:y[1]==="."?tz:y[1]==="?"?rz:y[1]==="@"?nz:ml}),o.removeAttribute(p)}else p.startsWith(Br)&&(c.push({type:6,index:i}),o.removeAttribute(p));if(tx.test(o.tagName)){const p=o.textContent.split(Br),f=p.length-1;if(f>0){o.textContent=ws?ws.emptyScript:"";for(let m=0;m<f;m++)o.append(p[m],qi()),yn.nextNode(),c.push({type:2,index:++i});o.append(p[f],qi())}}}else if(o.nodeType===8)if(o.data===ex)c.push({type:2,index:i});else{let p=-1;for(;(p=o.data.indexOf(Br,p+1))!==-1;)c.push({type:7,index:i}),p+=Br.length-1}i++}}static createElement(t,r){const n=Rn.createElement("template");return n.innerHTML=t,n}}function lo(e,t,r=e,n){if(t===Cn)return t;let o=n!==void 0?r._$Co?.[n]:r._$Cl;const i=Di(t)?void 0:t._$litDirective$;return o?.constructor!==i&&(o?._$AO?.(!1),i===void 0?o=void 0:(o=new i(e),o._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=o:r._$Cl=o),o!==void 0&&(t=lo(e,o._$AS(e,t.values),o,n)),t}class ez{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:r},parts:n}=this._$AD,o=(t?.creationScope??Rn).importNode(r,!0);yn.currentNode=o;let i=yn.nextNode(),a=0,s=0,c=n[0];for(;c!==void 0;){if(a===c.index){let l;c.type===2?l=new ia(i,i.nextSibling,this,t):c.type===1?l=new c.ctor(i,c.name,c.strings,this,t):c.type===6&&(l=new oz(i,this,t)),this._$AV.push(l),c=n[++s]}a!==c?.index&&(i=yn.nextNode(),a++)}return yn.currentNode=Rn,o}p(t){let r=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}}class ia{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,o){this.type=2,this._$AH=Ke,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=lo(this,t,r),Di(t)?t===Ke||t==null||t===""?(this._$AH!==Ke&&this._$AR(),this._$AH=Ke):t!==this._$AH&&t!==Cn&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):XV(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==Ke&&Di(this._$AH)?this._$AA.nextSibling.data=t:this.T(Rn.createTextNode(t)),this._$AH=t}$(t){const{values:r,_$litType$:n}=t,o=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=Li.createElement(nx(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===o)this._$AH.p(r);else{const i=new ez(o,this),a=i.u(this.options);i.p(r),this.T(a),this._$AH=i}}_$AC(t){let r=Gy.get(t.strings);return r===void 0&&Gy.set(t.strings,r=new Li(t)),r}k(t){uf(this._$AH)||(this._$AH=[],this._$AR());const r=this._$AH;let n,o=0;for(const i of t)o===r.length?r.push(n=new ia(this.O(qi()),this.O(qi()),this,this.options)):n=r[o],n._$AI(i),o++;o<r.length&&(this._$AR(n&&n._$AB.nextSibling,o),r.length=o)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){const n=t.nextSibling;t.remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}}class ml{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,o,i){this.type=1,this._$AH=Ke,this._$AN=void 0,this.element=t,this.name=r,this._$AM=o,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Ke}_$AI(t,r=this,n,o){const i=this.strings;let a=!1;if(i===void 0)t=lo(this,t,r,0),a=!Di(t)||t!==this._$AH&&t!==Cn,a&&(this._$AH=t);else{const s=t;let c,l;for(t=i[0],c=0;c<i.length-1;c++)l=lo(this,s[n+c],r,c),l===Cn&&(l=this._$AH[c]),a||=!Di(l)||l!==this._$AH[c],l===Ke?t=Ke:t!==Ke&&(t+=(l??"")+i[c+1]),this._$AH[c]=l}a&&!o&&this.j(t)}j(t){t===Ke?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class tz extends ml{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Ke?void 0:t}}class rz extends ml{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Ke)}}class nz extends ml{constructor(t,r,n,o,i){super(t,r,n,o,i),this.type=5}_$AI(t,r=this){if((t=lo(this,t,r,0)??Ke)===Cn)return;const n=this._$AH,o=t===Ke&&n!==Ke||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,i=t!==Ke&&(n===Ke||o);o&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class oz{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){lo(this,t)}}const iz=lf.litHtmlPolyfillSupport;iz?.(Li,ia),(lf.litHtmlVersions??=[]).push("3.3.1");const _s=(e,t,r)=>{const n=r?.renderBefore??t;let o=n._$litPart$;if(o===void 0){const i=r?.renderBefore??null;n._$litPart$=o=new ia(t.insertBefore(qi(),i),i,void 0,r??{})}return o._$AI(e),o};const cf=globalThis;let Ua=class extends Ln{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=_s(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Cn}};Ua._$litElement$=!0,Ua.finalized=!0,cf.litElementHydrateSupport?.({LitElement:Ua});const az=cf.litElementPolyfillSupport;az?.({LitElement:Ua});(cf.litElementVersions??=[]).push("4.2.1");const sz=(e,t)=>t===void 0?e?._$litType$!==void 0:e?._$litType$===t,lz=e=>e.strings===void 0;function uz(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var o=n.reduce(function(s,c){var l=c.match(/\n([\t ]+|(?!\s).)/g);return l?s.concat(l.map(function(d){var p,f;return(f=(p=d.match(/[\t ]/g))===null||p===void 0?void 0:p.length)!==null&&f!==void 0?f:0})):s},[]);if(o.length){var i=new RegExp(`
1024
- [ ]{`+Math.min.apply(Math,o)+"}","g");n=n.map(function(s){return s.replace(i,`
1025
- `)})}n[0]=n[0].replace(/^\r?\n/,"");var a=n[0];return t.forEach(function(s,c){var l=a.match(/(?:^|\n)( *)$/),d=l?l[1]:"",p=s;typeof s=="string"&&s.includes(`
1026
- `)&&(p=String(s).split(`
1027
- `).map(function(f,m){return m===0?f:""+d+f}).join(`
1028
- `)),a+=p+n[c+1]}),a}var cz={};Y0(cz,{parameters:()=>ax,render:()=>ox,renderToCanvas:()=>ix});const{global:dz}=__STORYBOOK_MODULE_GLOBAL__,{simulateDOMContentLoaded:pz,simulatePageLoad:Wy}=__STORYBOOK_MODULE_PREVIEW_API__;var{Node:fz}=dz,ox=(e,t)=>{let{id:r,component:n}=t;if(!n)throw new Error(`Unable to render story ${r} as the component annotation is missing from the default export`);let o=document.createElement(n);return Object.entries(e).forEach(([i,a])=>{o[i]=a}),o};function ix({storyFn:e,kind:t,name:r,showMain:n,showError:o,forceRemount:i},a){let s=e();if(n(),sz(s)){(i||!a.querySelector('[id="root-inner"]'))&&(a.innerHTML='<div id="root-inner"></div>');let c=a.querySelector('[id="root-inner"]');_s(s,c),Wy(a)}else if(typeof s=="string")a.innerHTML=s,Wy(a);else if(s instanceof fz){if(a.firstChild===s&&!i)return;a.innerHTML="",a.appendChild(s),pz()}else o({title:`Expecting an HTML snippet or DOM node from the story: "${r}" of "${t}".`,description:uz`
1029
- Did you forget to return the HTML snippet from the story?
1030
- Use "() => <your snippet or node>" or when defining the story.
1031
- `})}var ax={renderer:"web-components"};const mz=Object.freeze(Object.defineProperty({__proto__:null,parameters:ax,render:ox,renderToCanvas:ix},Symbol.toStringTag,{value:"Module"}));var hz={};Y0(hz,{decorators:()=>sx,parameters:()=>lx});const{emitTransformCode:yz,useEffect:gz}=__STORYBOOK_MODULE_PREVIEW_API__;var bz=/<!--\?lit\$[0-9]+\$-->|<!--\??-->/g;function vz(e){let t=e?.parameters.docs?.source,r=e?.parameters.__isArgsStory;return t?.type===Es.DYNAMIC?!1:!r||t?.code||t?.type===Es.CODE}function Ez(e,t){let r=e(),n=t?.parameters.docs?.source?.excludeDecorators?t.originalStoryFn(t.args,t):r,o;if(gz(()=>{o&&yz(o,t)}),!vz(t)){let i=window.document.createElement("div");n instanceof DocumentFragment?_s(n.cloneNode(!0),i):_s(n,i),o=i.innerHTML.replace(bz,"")}return r}var sx=[Ez],lx={docs:{source:{type:Es.DYNAMIC,language:"html"},story:{inline:!0}}};const{global:wz}=__STORYBOOK_MODULE_GLOBAL__,{global:_z}=__STORYBOOK_MODULE_GLOBAL__;var{window:Tz}=_z;Tz.STORYBOOK_ENV="web-components";const{global:Lc}=__STORYBOOK_MODULE_GLOBAL__;function ux(e){if(!e)return!1;if(typeof e=="string")return!0;throw new Error('Provided component needs to be a string. e.g. component: "my-element"')}function cx(e){if(!e)return!1;if(e.tags&&Array.isArray(e.tags)||e.modules&&Array.isArray(e.modules))return!0;throw new Error(`You need to setup valid meta data in your config.js via setCustomElements().
1032
- See the readme of addon-docs for web components for more details.`)}function xz(e){Lc.__STORYBOOK_CUSTOM_ELEMENTS_MANIFEST__=e}function dx(){return Lc.__STORYBOOK_CUSTOM_ELEMENTS__||Lc.__STORYBOOK_CUSTOM_ELEMENTS_MANIFEST__}const{setProjectAnnotations:X9,setDefaultProjectAnnotations:Q9}=__STORYBOOK_MODULE_PREVIEW_API__;var{window:Sz,EventSource:Az}=wz;typeof module<"u"&&module?.hot?.decline&&(module.hot.decline(),new Az("__webpack_hmr").addEventListener("message",function(e){try{let{action:t}=JSON.parse(e.data);t==="built"&&Sz.location.reload()}catch{}}));var Oz="Invariant failed";function Rz(e,t){if(!e)throw new Error(Oz)}const{logger:px}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function fx(e,t){let r;switch(t){case"attributes":case"properties":r={name:e.type?.text||e.type};break;case"slots":r={name:"string"};break;default:r={name:"void"};break}return{name:e.name,required:!1,description:e.description,type:r,table:{category:t,type:{summary:e.type?.text||e.type},defaultValue:{summary:e.default!==void 0?e.default:e.defaultValue}}}}function Cz(e){let t=e.name.replace(/(-|_|:|\.|\s)+(.)?/g,(r,n,o)=>o?o.toUpperCase():"").replace(/^([A-Z])/,r=>r.toLowerCase());return t=`on${t.charAt(0).toUpperCase()+t.substr(1)}`,[{name:t,action:{name:e.name},table:{disable:!0}},fx(e,"events")]}function cn(e,t){return e&&e.filter(r=>r&&r.name).reduce((r,n)=>{if(n.kind==="method")return r;switch(t){case"events":Cz(n).forEach(o=>{Rz(o.name),r[o.name]=o});break;default:r[n.name]=fx(n,t);break}return r},{})}var Pz=(e,t)=>{if(!ux(e)||!cx(t))return null;let r=t.tags.find(n=>n.name.toUpperCase()===e.toUpperCase());return r||px.warn(`Component not found in custom-elements.json: ${e}`),r},Mz=(e,t)=>{if(!ux(e)||!cx(t))return null;let r;return t?.modules?.forEach(n=>{n?.declarations?.forEach(o=>{o.tagName===e&&(r=o)})}),r||px.warn(`Component not found in custom-elements.json: ${e}`),r},mx=(e,t)=>t?.version==="experimental"?Pz(e,t):Mz(e,t),Nz=(e,t)=>{let r=mx(e,t);return r&&{...cn(r.members??[],"properties"),...cn(r.properties??[],"properties"),...cn(r.attributes??[],"attributes"),...cn(r.events??[],"events"),...cn(r.slots??[],"slots"),...cn(r.cssProperties??[],"css custom properties"),...cn(r.cssParts??[],"css shadow parts")}},Iz=e=>{let t=dx();return Nz(e,t)},kz=e=>{let t=mx(e,dx());return t&&t.description},jz={docs:{extractArgTypes:Iz,extractComponentDescription:kz}},qz=[NV];const Dz=Object.freeze(Object.defineProperty({__proto__:null,argTypesEnhancers:qz,parameters:jz},Symbol.toStringTag,{value:"Module"})),Lz=Object.freeze(Object.defineProperty({__proto__:null,decorators:sx,parameters:lx},Symbol.toStringTag,{value:"Module"}));var Fz=Object.create,df=Object.defineProperty,$z=Object.getOwnPropertyDescriptor,hx=Object.getOwnPropertyNames,Bz=Object.getPrototypeOf,Uz=Object.prototype.hasOwnProperty,Z9=(e,t)=>function(){return t||(0,e[hx(e)[0]])((t={exports:{}}).exports,t),t.exports},Hz=(e,t)=>{for(var r in t)df(e,r,{get:t[r],enumerable:!0})},Jz=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of hx(t))!Uz.call(e,o)&&o!==r&&df(e,o,{get:()=>t[o],enumerable:!(n=$z(t,o))||n.enumerable});return e},eW=(e,t,r)=>(r=e!=null?Fz(Bz(e)):{},Jz(df(r,"default",{value:e,enumerable:!0}),e)),Vz={};Hz(Vz,{parameters:()=>yx});var zz=Object.entries(globalThis.TAGS_OPTIONS??{}).reduce((e,t)=>{let[r,n]=t;return n.excludeFromDocsStories&&(e[r]=!0),e},{}),yx={docs:{renderer:async()=>{let{DocsRenderer:e}=await ge(async()=>{const{DocsRenderer:t}=await import("./DocsRenderer-LL677BLK-BUwAiHkt.js");return{DocsRenderer:t}},__vite__mapDeps([54,2,1]),import.meta.url);return new e},stories:{filter:e=>(e.tags||[]).filter(t=>zz[t]).length===0&&!e.parameters.docs?.disable}}};const Gz=Object.freeze(Object.defineProperty({__proto__:null,parameters:yx},Symbol.toStringTag,{value:"Module"}));const gx={ATTRIBUTE:1,CHILD:2},bx=e=>(...t)=>({_$litDirective$:e,values:t});class vx{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,r,n){this._$Ct=t,this._$AM=r,this._$Ci=n}_$AS(t,r){return this.update(t,r)}update(t,r){return this.render(...r)}}const fi=(e,t)=>{const r=e._$AN;if(r===void 0)return!1;for(const n of r)n._$AO?.(t,!1),fi(n,t);return!0},Ts=e=>{let t,r;do{if((t=e._$AM)===void 0)break;r=t._$AN,r.delete(e),e=t}while(r?.size===0)},Ex=e=>{for(let t;t=e._$AM;e=t){let r=t._$AN;if(r===void 0)t._$AN=r=new Set;else if(r.has(e))break;r.add(e),Yz(t)}};function Wz(e){this._$AN!==void 0?(Ts(this),this._$AM=e,Ex(this)):this._$AM=e}function Kz(e,t=!1,r=0){const n=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(t)if(Array.isArray(n))for(let i=r;i<n.length;i++)fi(n[i],!1),Ts(n[i]);else n!=null&&(fi(n,!1),Ts(n));else fi(this,e)}const Yz=e=>{e.type==gx.CHILD&&(e._$AP??=Kz,e._$AQ??=Wz)};class Xz extends vx{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,r,n){super._$AT(t,r,n),Ex(this),this.isConnected=t._$AU}_$AO(t,r=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),r&&(fi(this,t),Ts(this))}setValue(t){if(lz(this._$Ct))this._$Ct._$AI(t,this);else{const r=[...this._$Ct._$AH];r[this._$Ci]=t,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}}const wx=Symbol.for(""),Qz=e=>{if(e?.r===wx)return e?._$litStatic$},ni=e=>({_$litStatic$:e,r:wx}),Ky=new Map,Zz=e=>(t,...r)=>{const n=r.length;let o,i;const a=[],s=[];let c,l=0,d=!1;for(;l<n;){for(c=t[l];l<n&&(i=r[l],(o=Qz(i))!==void 0);)c+=o+t[++l],d=!0;l!==n&&s.push(i),a.push(c),l++}if(l===n&&a.push(t[n]),d){const p=a.join("$$lit$$");(t=Ky.get(p))===void 0&&(a.raw=a,Ky.set(p,t=a)),r=s}return e(t,...r)},Yy=Zz(rx);class Fc extends vx{constructor(t){if(super(t),this.it=Ke,t.type!==gx.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Ke||t==null)return this._t=void 0,this.it=t;if(t===Cn)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const r=[t];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}}Fc.directiveName="unsafeHTML",Fc.resultType=1;const _x=bx(Fc);var e6=class extends Xz{constructor(){super(...arguments),this.prevData={}}render(e){return Ke}update(e,[t]){this.element!==e.element&&(this.element=e.element),this.host=e.options?.host||this.element,this.apply(t),this.groom(t),this.prevData={...t}}apply(e){if(!e)return;const{prevData:t,element:r}=this;for(const n in e){const o=e[n];o!==t[n]&&xs(r,n,o)}}groom(e){const{prevData:t,element:r}=this;if(t)for(const n in t)(!e||!(n in e)&&r[n]===t[n])&&xs(r,n,void 0)}},t6=class extends e6{constructor(){super(...arguments),this.eventData={}}apply(e){if(e)for(const t in e){const r=e[t];r!==this.eventData[t]&&this.applyEvent(t,r)}}applyEvent(e,t){const{prevData:r,element:n}=this;this.eventData[e]=t,r[e]&&n.removeEventListener(e,this,t),n.addEventListener(e,this,t)}groom(e){const{prevData:t,element:r}=this;if(t)for(const n in t)(!e||!(n in e)&&r[n]===t[n])&&this.groomEvent(n,t[n])}groomEvent(e,t){const{element:r}=this;delete this.eventData[e],r.removeEventListener(e,this,t)}handleEvent(e){const t=this.eventData[e.type];typeof t=="function"?t.call(this.host,e):t.handleEvent(e)}disconnected(){const{eventData:e,element:t}=this;for(const r in e){const n=r.slice(1),o=e[r];t.removeEventListener(n,this,o)}}reconnected(){const{eventData:e,element:t}=this;for(const r in e){const n=r.slice(1),o=e[r];t.addEventListener(n,this,o)}}},r6=class extends t6{apply(e){if(!e)return;const{prevData:t,element:r}=this;for(const n in e){const o=e[n];if(o===t[n])continue;const i=n.slice(1);switch(n[0]){case"@":this.eventData[i]=o,this.applyEvent(i,o);break;case".":xs(r,i,o);break;case"?":o?r.setAttribute(i,""):r.removeAttribute(i);break;default:o?r.setAttribute(n,String(o)):r.removeAttribute(n);break}}}groom(e){const{prevData:t,element:r}=this;if(t)for(const n in t){const o=n.slice(1);if(!e||!(n in e)&&r[o]===t[n])switch(n[0]){case"@":this.groomEvent(o,t[n]);break;case".":xs(r,o,void 0);break;case"?":r.removeAttribute(o);break;default:r.removeAttribute(n);break}}}};function xs(e,t,r){try{e[t]=r}catch(n){console.warn(`Could not set property "${t}" on ${e.tagName} because it has no "setter".`,n)}}var n6=bx(r6);const{useArgs:o6}=__STORYBOOK_MODULE_PREVIEW_API__;var i6=new Set(["AnimationEvent","BeforeUnloadEvent","ClipboardEvent","DragEvent","Event","FocusEvent","HashChangeEvent","InputEvent","KeyboardEvent","MessageEvent","MouseEvent","MutationObserver","PageTransitionEvent","PointerEvent","PopStateEvent","ProgressEvent","StorageEvent","TouchEvent","TransitionEvent","UIEvent","WebGLContextEvent","WheelEvent"]);function a6(e,t=[]){return(e.modules?.map(r=>r.declarations?.filter(n=>n.customElement)?.flat())?.flat()||[]).filter(r=>r&&!t?.includes(r.name))}function s6(e,t){return a6(e).find(r=>r?.tagName===t)}function l6(e){const t=o=>o.name+r(o)+n(o),r=o=>o.type?.text?`${o.optional?"?":""}: ${o.type?.text}`:"",n=o=>o.default?` = ${o.default}`:"";return e?.members?.filter(o=>o.kind==="method"&&o.privacy!=="private"&&o.privacy!=="protected"&&!o.name.startsWith("#"))?.map(o=>(o.type={text:`${o.name}(${o.parameters?.map(i=>t(i)).join(", ")||""}) => ${o.return?.type?.text||"void"}`},o))}function u6(e,t={}){return e?.events?.map(n=>{const o=n[`${t.customEventDetailTypePropName}`]?.text||n.type?.text,i=t.overrideCustomEventType?o||"CustomEvent":i6.has(o)?o:o&&o!=="CustomEvent"?`CustomEvent<${o}>`:"CustomEvent";return{...n,type:{text:i}}})||[]}function c6(e,t){if(!t)return e||"";const r=e?`- ${e}`:"";return typeof t=="string"?`@deprecated ${t} ${r}`:`@deprecated ${r}`}function Fi(e){return e.trim().replace(/^["'](.+(?=["']$))["']$/,"$1")}var uo={};setTimeout(()=>{uo=globalThis?.__WC_STORYBOOK_HELPERS_CONFIG__||{}});function pf(e,t=!0){const r={},n={},o={};return e?.members?.forEach(i=>{if(i.kind!=="field")return;const a=e.attributes?.find(g=>i.name===g.fieldName),s=i.name,c=a?n:o;if(r[s]={name:s,table:{disable:!0}},i.privacy==="private"||i.privacy==="protected"||i.static)return;const l=a?.name||i.name,d=uo.typeRef&&i[`${uo.typeRef}`]?.text||i?.type?.text,p=Ax(d),f=i.readonly?void 0:Fi(i.default||""),m=Sx(p,a!==void 0);c[l]={name:l,description:hl(i.description,s,i.deprecated),defaultValue:f?f==="''"?"":m==="object"?JSON.parse(h6(f)):f:void 0,control:t&&!i.readonly&&m?{type:m}:!1,table:{category:a?"attributes":"properties",defaultValue:{summary:f},type:{summary:d}}};const y=p?.split("|");y&&y?.length>1&&(c[l].options=y.map(g=>Fi(g)))}),{resets:r,propArgs:o,attrArgs:n}}function d6(e,t=!0){const r={},n={};return e?.members?.forEach(o=>{if(o.kind!=="field"||(r[o.name]={name:o.name,table:{disable:!0}},o.privacy==="private"||o.privacy==="protected"||o.static))return;const i=uo.typeRef&&o[`${uo.typeRef}`]?.text||o?.type?.text,a=Ax(i),s=`${o.name}`,c=Sx(a);n[s]={name:o.name,description:o.description,defaultValue:f6(c,o.default),control:t&&!o.readonly&&c?{type:c}:!1,table:{category:"properties",defaultValue:{summary:Fi(o.default||"")},type:{summary:i}}};const l=a?.split("|");l&&l?.length>1&&(n[s].options=l.map(d=>Fi(d)))}),delete n.ref,{resets:r,args:n}}function Tx(e){const t={};return e?.events?.forEach(r=>{const n=`on${r.name}`;t[n]={name:n,description:r.description,control:!1,table:{category:"events"}}}),{args:t}}function ff(e,t=!0){const r={},n={};return e?.cssProperties?.forEach(o=>{r[o.name]={name:o.name,table:{disable:!0}}}),e?.cssProperties?.forEach(o=>{n[o.name]={name:o.name,description:o.description,defaultValue:o.default,control:t?{type:o.name?.toLowerCase()?.includes("color")?"color":"text"}:!1,table:{category:"css properties"}}}),{resets:r,args:n}}function mf(e,t=!0){const r={},n={};return e?.cssParts?.forEach(o=>{r[o.name]={name:o.name,table:{disable:!0}},n[`${o.name}-part`]={name:o.name,description:hl(o.description,t?`${o.name}-part`:""),control:t?"text":!1,table:{category:"css shadow parts"}}}),{resets:r,args:n}}function hf(e,t=!0){const r={},n={};return e?.cssStates?.forEach(o=>{r[o.name]={name:o.name,table:{disable:!0}},n[`${o.name}-state`]={name:o.name,description:hl(o.description,t?`${o.name}-state`:""),control:t?"text":!1,table:{category:"css states"}}}),{resets:r,args:n}}function yf(e,t=!0){const r={},n={};return e?.slots?.forEach(o=>{r[o.name]={name:o.name,table:{disable:!0}};const i=o.name||"default";n[`${i}-slot`]={name:i,description:hl(o.description,t?`${i}-slot`:""),control:t?"text":!1,table:{category:"slots"}}}),{resets:r,args:n}}function p6(e){const t={},r={};return e?.events?.forEach(o=>{r[o.name]={name:o.name,table:{disable:!0}}}),u6(e)?.forEach(o=>{t[`${o.name}-event`]={name:o.name,description:o.description,control:!1,table:{category:"events",type:{summary:o.type.text}}}}),{resets:r,args:t}}function xx(e){const t={};return l6(e)?.forEach(n=>{t[`${n.name}-method`]={name:n.name,description:n.description,control:!1,table:{category:"methods",type:{summary:n.type.text}}}}),{args:t}}function f6(e,t){const r=Fi(t||"");return e==="boolean"?r==="true":r==="''"?"":r}function Sx(e,t=!1){if(!e)return"text";const r=e.toLowerCase(),n=r.split("|").map(o=>o.trim()).filter(o=>o!==""&&o!=="null"&&o!=="undefined");return m6(r)&&!t?"object":Ra(n,"boolean")?"boolean":Ra(n,"number")&&!Ra(n,"string")?"number":Ra(n,"date")?"date":n.length>1?"select":"text"}function m6(e){return e.includes("array")||e.includes("object")||e.includes("{")||e.includes("[")||e.includes("<")}function Ra(e=[],t){return e?.find(r=>r===t)!==void 0}function Ax(e){return e?e.replace(" | undefined","").replace(" | null","").replace(" | void","").replace(" | any","").replace(" | unknown","").replace(" | string & {}","|").replace(" | (string & {})","|").replace(" | string","|").replace(" | number","|").replace(" | boolean","|").replace(" | object","|").replace(" | Function","|").replace(" | {}","|").replace(" | []","|"):""}function hl(e,t,r){let n=c6(e,r);return uo.hideArgRef||!t?n:n+=`
1033
-
1034
-
1035
- arg ref - \`${t}\``}function h6(e){return e.replace(/'([^']+)'/g,'"$1"').replace(/([{,]\s*)(\w+)\s*:/g,'$1"$2":').replace(/,\s*(}|])/g,"$1")}var Ss,Xy,aa={};setTimeout(()=>{aa=globalThis?.__WC_STORYBOOK_HELPERS_CONFIG__||{}});function y6(e,t,r,n,o,i){if(!t)return Yy`<${ni(e.tagName)}></${ni(e.tagName)}>`;e?.tagName!==Xy&&(Ss=void 0,Xy=e?.tagName);const{attrOperators:a,propOperators:s,additionalAttrs:c}=g6(e,t,n),l={...a,...s,...c},d=w6(e,t,o);return _6(e),Yy`${Ox(e,t,o)}
1036
- <${ni(e.tagName)} ${n6(l)}>${d}${r||""}</${ni(e.tagName)}>
1037
- ${aa.setComponentVariable||i?_x(`<script>
1038
- window.component = document.querySelector('`+e.tagName+`');
1039
- <\/script>`):""}
1040
- `}function Ox(e,t,r){const n=Ha("cssProps",r)?"":b6(e,t)||"",o=Ha("cssParts",r)?"":v6(e,t)||"",i=Ha("cssStates",r)?"":E6(e,t)||"",a=[n,o,i].filter(s=>s.length).join(`
1041
-
1042
- `);return`${n}${o}${i}`.replace(/\s+/g,"")!==""?_x(`<style>
1043
- ${a}
1044
- </style>`):""}function Ha(e,t){return!aa.categoryOrder?.includes(e)||t?.includes(e)||!1}function g6(e,t,r){const{propArgs:n,attrArgs:o}=pf(e),i={},a={},s={};return Object.keys(o).forEach(c=>{const l=o[c],d=l.name,p=t[c],f=l.control.type==="boolean"?`?${d}`:d;p!==o[c].defaultValue||aa.renderDefaultValues?i[f]=p==="false"?!1:p:i[f]=void 0}),Object.keys(t).filter(c=>n[c]).forEach(c=>{if(c.startsWith("on"))return;const l=t[c];a[`.${c}`]=l}),Object.keys(t).filter(c=>!Object.keys(r||{}).includes(c)).forEach(c=>{!c.startsWith("on")&&typeof t[c]!="function"&&(s[c]=t[c])}),{attrOperators:i,propOperators:a,additionalAttrs:s}}function b6(e,t){if(!e?.cssProperties?.length)return;const{args:r}=ff(e),n=Object.keys(r).map(o=>{const i=t[o]===r[o].defaultValue,a=r[o].name,s=t[o];return s&&(!i||i&&aa.renderDefaultValues)?` ${a}: ${s}`:null}).filter(o=>o!==null).join(`;
1045
- `);return n?` ${e.tagName} {
1046
- ${n};
1047
- }`:""}function v6(e,t){if(!e?.cssParts?.length)return;const{args:r}=mf(e);return`${Object.keys(r).filter(n=>n.endsWith("-part")).map(n=>{const o=r[n].name,i=t[n];return i.replace(/\s+/g,"")!==""?` ${e?.tagName}::part(${o}) {
1048
- ${i.split(`
1049
- `).map(a=>` ${a}`).join(`
1050
- `)}
1051
- }`:null}).filter(n=>n!==null).join(`
1052
-
1053
- `)}`}function E6(e,t){if(!e?.cssStates?.length)return;const{args:r}=hf(e);return`${Object.keys(r).filter(n=>n.endsWith("-state")).map(n=>{const o=r[n].name,i=t[n];return i.replace(/\s+/g,"")!==""?` ${e?.tagName}:state(${o}) {
1054
- ${i.split(`
1055
- `).map(a=>` ${a}`).join(`
1056
- `)}
1057
- }`:null}).filter(n=>n!==null).join(`
1058
-
1059
- `)}`}function w6(e,t,r){if(!e?.slots?.length||Ha("slots",r))return;const{args:n}=yf(e),o=`${Object.keys(n).filter(i=>i.endsWith("-slot")).map(i=>{const a=i==="default-slot"?null:i.slice(0,-5),s=t[i];if(!a&&s)return` ${s}`;let c="";const l=document.createElement("div");l.innerHTML=s;for(const d of l.childNodes)d instanceof Text?c+=` <span slot=${a}>${d.textContent}</span>`:d instanceof Element?(d.setAttribute("slot",a),c+=` ${d.outerHTML}`):(d.textContent?.trim()===""||d.textContent===`
1060
- `)&&(c+=d.textContent);return c}).filter(i=>i!==null&&i!=="").join(`
1061
- `)}`;return o.trim()?ni(`
1062
- ${o}
1063
- `):""}function _6(e){T6(e),setTimeout(()=>{const t=document.querySelector(e.tagName);Ss?.observe(t,{attributes:!0})})}function T6(e){let t=!1;const r=o6()[1],{attrArgs:n}=pf(e);Ss||(Ss=new MutationObserver(o=>{o.forEach(i=>{if(i.attributeName==="class"&&t)return;t=!0;const a=n[`${i.attributeName}`];a?.control==="boolean"||a?.control?.type==="boolean"?r({[`${i.attributeName}`]:i.target?.hasAttribute(i.attributeName||"")}):r({[`${i.attributeName}`]:i.target.getAttribute(i.attributeName||"")}),t=!1})}))}var gf=globalThis?.__WC_STORYBOOK_HELPERS_CONFIG__||{},x6={typeRef:"parsedType",categoryOrder:["attributes","properties","slots","cssProps","cssParts","cssStates","methods","events"]};function S6(e){e={...x6,...e},globalThis.__WC_STORYBOOK_HELPERS_CONFIG__=e,gf=e}function tW(e,t){gf=globalThis?.__WC_STORYBOOK_HELPERS_CONFIG__||{};const r=A6(),n=O6(r,e),o=n?.events?.map(s=>s.name)||[],i=R6(n,[]);return{args:Rx(i),argTypes:i,reactArgs:P6(n),reactArgTypes:Cx(n),events:o,styleTemplate:s=>Ox(n,s,[]),template:(s,c)=>y6(n,s,c,i,[],t?.setComponentVariable)}}function A6(){const e=window.__STORYBOOK_CUSTOM_ELEMENTS_MANIFEST__;if(!e)throw new Error(`Custom Elements Manifest not found. Be sure to follow the pre-install steps in this guide:
1064
- https://www.npmjs.com/package/wc-storybook-helpers#before-you-install`);return e}function O6(e,t){const r=s6(e,t);if(!r)throw new Error(`A component with the tag name "${t}" was not found in the Custom Elements Manifest. If it's missing in the CEM, it's often the result of a missing "@tag" or "@tagName" tag in the component's JSDoc.
1065
- Additional information can be found here:
1066
- https://custom-elements-manifest.open-wc.org/analyzer/getting-started/#supported-jsdoc`);return r}function R6(e,t){const r=ff(e),n=mf(e),o=yf(e),i=pf(e),a=p6(e),s=hf(e),c=xx(e),l={attributes:i.attrArgs,cssParts:n.args,cssProps:r.args,cssStates:s.args,events:a.args,methods:c.args,properties:i.propArgs,slots:o.args},d={};return Object.assign(d,r.resets,n.resets,o.resets,i.resets,a.resets,s.resets,c.resets),gf.categoryOrder?.forEach(p=>{t?.includes(p)||Object.assign(d,l[p])}),d}function Rx(e){const t={};for(const[r,n]of Object.entries(e))n?.control&&(t[r]=C6(n.defaultValue)||"");return t}function C6(e){if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e}function Cx(e,t){const r=ff(e),n=mf(e),o=yf(e),i=d6(e),a=Tx(e),s=hf(e),c=xx(e),l=globalThis?.__WC_STORYBOOK_HELPERS_CONFIG__||{},d={cssParts:n.args,cssProps:r.args,cssStates:s.args,events:a.args,methods:c.args,properties:i.args,slots:o.args};let p={...r.resets,...n.resets,...o.resets,...i.resets,...a.resets,...s.resets,...c.resets};return l.categoryOrder?.forEach(f=>{p={...p,...d[f]||{}}}),p}function P6(e){const t=Rx(Cx(e)),r=Object.entries(Tx(e)).map(([n])=>({[n]:()=>{}})).reduce((n,o)=>({...n,...o}),{});return{...t,...r}}const M6="1.0.0",N6="",I6=JSON.parse(`[{"kind":"javascript-module","path":"src/components/badge/Badge.ts","declarations":[{"kind":"class","description":"A badge component for highlighting important information.\\n\\nBadges help highlight notifications, status, or new messages.\\nPrimarily used for communicating secondary or additional information.","name":"Badge","cssProperties":[{"description":"Text color (overrides theme color)","name":"--badge-color-foreground"},{"description":"Background color (overrides theme color)","name":"--badge-color-background"},{"description":"Border radius size (overrides shape default, default: 999px)","name":"--badge-radius-size"},{"description":"Horizontal padding (overrides size default)","name":"--badge-px"},{"description":"Vertical padding (overrides size default)","name":"--badge-py"},{"description":"Size of the dot affordance (default: 6px)","name":"--badge-dot-size"}],"slots":[{"description":"Label text or child elements (e.g., btu-icon + text)","name":""}],"members":[{"kind":"field","name":"variant","type":{"text":"'info' | 'primary' | 'error' | 'success' | 'warning'"},"default":"'info'","description":"Style of the badge.\\n- 'info': Informational (default)\\n- 'primary': Primary action or emphasis\\n- 'error': Error or danger state\\n- 'success': Success or completion state\\n- 'warning': Warning or caution state","attribute":"variant"},{"kind":"field","name":"dot","type":{"text":"boolean"},"default":"false","description":"Should a dot be displayed before the label?","attribute":"dot"},{"kind":"field","name":"size","type":{"text":"'sm' | 'md' | 'lg'"},"default":"'sm'","description":"Size variant.\\n- 'sm': Small (default)\\n- 'md': Medium\\n- 'lg': Large","attribute":"size"},{"kind":"method","name":"emit","parameters":[{"name":"type","type":{"text":"K"},"description":"Event name from CustomEventMap"},{"name":"detail","optional":true,"type":{"text":"UnpackCustomEvent<CustomEventMap[K]>"},"description":"Optional event detail payload"}],"description":"Dispatches a type-safe CustomEvent with standardized configuration.\\n\\nAll events are configured with:\\n- bubbles: true (event propagates up the DOM tree)\\n- cancelable: false (event cannot be cancelled)\\n- composed: true (event crosses shadow DOM boundaries)","return":{"type":{"text":"boolean"}},"inheritedFrom":{"name":"EventEmitterMixin","module":"src/util/EventEmitterMixin.ts"}}],"events":[{"type":{"text":"CustomEvent"},"description":"Fired after first render and initialization","name":"btu-badge-ready"}],"attributes":[{"name":"variant","type":{"text":"'info' | 'primary' | 'error' | 'success' | 'warning'"},"default":"'info'","description":"Style of the badge.\\n- 'info': Informational (default)\\n- 'primary': Primary action or emphasis\\n- 'error': Error or danger state\\n- 'success': Success or completion state\\n- 'warning': Warning or caution state","fieldName":"variant","attribute":"variant"},{"name":"dot","type":{"text":"boolean"},"default":"false","description":"Should a dot be displayed before the label?","fieldName":"dot","attribute":"dot"},{"name":"size","type":{"text":"'sm' | 'md' | 'lg'"},"default":"'sm'","description":"Size variant.\\n- 'sm': Small (default)\\n- 'md': Medium\\n- 'lg': Large","fieldName":"size","attribute":"size"}],"mixins":[{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-badge","customElement":true}],"exports":[{"kind":"js","name":"default","declaration":{"name":"Badge","module":"src/components/badge/Badge.ts"}},{"kind":"custom-element-definition","name":"btu-badge","declaration":{"name":"Badge","module":"src/components/badge/Badge.ts"}}]},{"kind":"javascript-module","path":"src/components/avatar/Avatar.ts","declarations":[{"kind":"class","description":"An avatar component for displaying user profile images with fallback support.\\n\\nAvatars display user profile images with automatic fallback to initials when\\nthe image fails to load or is not provided.","name":"Avatar","cssProperties":[{"description":"Custom size (overrides size prop)","name":"--avatar-size"},{"description":"Fallback background color (default: purple-600)","name":"--avatar-bg-color"},{"description":"How rounded is the avatar (default: circle)","name":"--avatar-corner-rounding"},{"description":"Optional ring border color","name":"--avatar-ring-color"},{"description":"Ring border width (default: 2px)","name":"--avatar-ring-width"}],"members":[{"kind":"field","name":"src","type":{"text":"string"},"default":"''","description":"Image source URL","attribute":"src"},{"kind":"field","name":"alt","type":{"text":"string"},"default":"''","description":"Alt text for the image","attribute":"alt"},{"kind":"field","name":"fallback","type":{"text":"string"},"default":"''","description":"Fallback text (typically user initials)","attribute":"fallback"},{"kind":"field","name":"size","type":{"text":"'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'"},"default":"'md'","description":"Size variant.\\n- 'xs': Extra small (1.5rem)\\n- 'sm': Small (2.25rem)\\n- 'md': Medium (2.5rem) - default\\n- 'lg': Large (3rem)\\n- 'xl': Extra large (3.5rem)\\n- 'xxl': Extra extra large (4rem)","attribute":"size"},{"kind":"field","name":"tooltip","type":{"text":"string"},"default":"''","description":"Tooltip text content. Set to empty string to remove the tooltip.","attribute":"tooltip","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"tooltipPosition","type":{"text":"'top' | 'bottom' | 'left' | 'right'"},"default":"'top'","description":"Position relative to the host element. Auto-flips when constrained by the viewport.","attribute":"tooltip-position","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"tooltipDelay","type":{"text":"number"},"default":"300","description":"Show delay in milliseconds (hover trigger only).","attribute":"tooltip-delay","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"tooltipOffset","type":{"text":"TooltipOffset | null"},"default":"null","description":"Gap between host and tooltip (sm=4px, md=8px, lg=12px, xl=16px).","attribute":"tooltip-offset","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"tooltipNoArrow","type":{"text":"boolean"},"default":"false","description":"Hide the arrow pseudo-element.","attribute":"tooltip-no-arrow","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"tooltipTrigger","type":{"text":"string"},"default":"'hover focus'","description":"Space-separated trigger types: 'hover', 'focus', 'click'.","attribute":"tooltip-trigger","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"_onMouseLeave","privacy":"private","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"_onFocusIn","privacy":"private","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"_onFocusOut","privacy":"private","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"_onClick","privacy":"private","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"_onNativeToggle","privacy":"private","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"_onKeyDown","privacy":"private","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"_onDocumentClick","type":{"text":"((e: MouseEvent) => void) | null"},"privacy":"private","default":"null","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"method","name":"emit","parameters":[{"name":"type","type":{"text":"K"},"description":"Event name from CustomEventMap"},{"name":"detail","optional":true,"type":{"text":"UnpackCustomEvent<CustomEventMap[K]>"},"description":"Optional event detail payload"}],"description":"Dispatches a type-safe CustomEvent with standardized configuration.\\n\\nAll events are configured with:\\n- bubbles: true (event propagates up the DOM tree)\\n- cancelable: false (event cannot be cancelled)\\n- composed: true (event crosses shadow DOM boundaries)","return":{"type":{"text":"boolean"}},"inheritedFrom":{"name":"EventEmitterMixin","module":"src/util/EventEmitterMixin.ts"}}],"events":[{"type":{"text":"CustomEvent"},"description":"Fired after first render and initialization","name":"btu-avatar-ready"},{"type":{"text":"CustomEvent<{src: string}>"},"description":"Fired when image successfully loads","name":"btu-avatar-image-loaded"},{"type":{"text":"CustomEvent<{src: string, error: Event}>"},"description":"Fired when image fails to load","name":"btu-avatar-image-error"}],"attributes":[{"name":"src","type":{"text":"string"},"default":"''","description":"Image source URL","fieldName":"src","attribute":"src"},{"name":"alt","type":{"text":"string"},"default":"''","description":"Alt text for the image","fieldName":"alt","attribute":"alt"},{"name":"fallback","type":{"text":"string"},"default":"''","description":"Fallback text (typically user initials)","fieldName":"fallback","attribute":"fallback"},{"name":"size","type":{"text":"'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'"},"default":"'md'","description":"Size variant.\\n- 'xs': Extra small (1.5rem)\\n- 'sm': Small (2.25rem)\\n- 'md': Medium (2.5rem) - default\\n- 'lg': Large (3rem)\\n- 'xl': Extra large (3.5rem)\\n- 'xxl': Extra extra large (4rem)","fieldName":"size","attribute":"size"},{"name":"tooltip","type":{"text":"string"},"default":"''","description":"Tooltip text content. Set to empty string to remove the tooltip.","fieldName":"tooltip","attribute":"tooltip","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"name":"tooltipPosition","type":{"text":"'top' | 'bottom' | 'left' | 'right'"},"default":"'top'","description":"Position relative to the host element. Auto-flips when constrained by the viewport.","fieldName":"tooltipPosition","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"name":"tooltipDelay","type":{"text":"number"},"default":"300","description":"Show delay in milliseconds (hover trigger only).","fieldName":"tooltipDelay","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"name":"tooltipOffset","type":{"text":"TooltipOffset | null"},"default":"null","description":"Gap between host and tooltip (sm=4px, md=8px, lg=12px, xl=16px).","fieldName":"tooltipOffset","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"name":"tooltipNoArrow","type":{"text":"boolean"},"default":"false","description":"Hide the arrow pseudo-element.","fieldName":"tooltipNoArrow","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"name":"tooltipTrigger","type":{"text":"string"},"default":"'hover focus'","description":"Space-separated trigger types: 'hover', 'focus', 'click'.","fieldName":"tooltipTrigger","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"name":"tooltip-position","type":{"text":"'top' | 'bottom' | 'left' | 'right'"},"default":"'top'","description":"Position relative to the host element. Auto-flips when constrained by the viewport.","attribute":"tooltipPosition","fieldName":"tooltipPosition","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"name":"tooltip-delay","type":{"text":"number"},"default":"300","description":"Show delay in milliseconds (hover trigger only).","attribute":"tooltipDelay","fieldName":"tooltipDelay","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"name":"tooltip-offset","type":{"text":"TooltipOffset | null"},"default":"null","description":"Gap between host and tooltip (sm=4px, md=8px, lg=12px, xl=16px).","attribute":"tooltipOffset","fieldName":"tooltipOffset","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"name":"tooltip-no-arrow","type":{"text":"boolean"},"default":"false","description":"Hide the arrow pseudo-element.","attribute":"tooltipNoArrow","fieldName":"tooltipNoArrow","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"name":"tooltip-trigger","type":{"text":"string"},"default":"'hover focus'","description":"Space-separated trigger types: 'hover', 'focus', 'click'.","attribute":"tooltipTrigger","fieldName":"tooltipTrigger","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}}],"mixins":[{"name":"TooltipMixin","module":"/src/util/TooltipMixin.js"},{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-avatar","customElement":true}],"exports":[{"kind":"js","name":"default","declaration":{"name":"Avatar","module":"src/components/avatar/Avatar.ts"}},{"kind":"custom-element-definition","name":"btu-avatar","declaration":{"name":"Avatar","module":"src/components/avatar/Avatar.ts"}}]},{"kind":"javascript-module","path":"src/components/avatar/AvatarGroup.ts","declarations":[{"kind":"class","description":"A container component for grouping multiple avatars with consistent styling.\\n\\nAvatarGroup wraps multiple avatar elements and provides:\\n- Overflow handling (shows \\"+N\\" for excess avatars)\\n- Consistent spacing and ring borders\\n- Size inheritance for all child avatars","name":"AvatarGroup","members":[{"kind":"field","name":"max","type":{"text":"number | undefined"},"description":"Maximum number of visible avatars. Remaining avatars shown as \\"+N\\"","attribute":"max"},{"kind":"field","name":"size","type":{"text":"'xs' | 'sm' | 'md'"},"default":"'md'","description":"Size variant for all child avatars (unless individually overridden)","attribute":"size"},{"kind":"method","name":"processAvatars","return":{"type":{"text":"void"}},"description":"Process all avatar children: apply size, handle overflow\\nCall this method when avatars are dynamically added or removed"},{"kind":"method","name":"emit","parameters":[{"name":"type","type":{"text":"K"},"description":"Event name from CustomEventMap"},{"name":"detail","optional":true,"type":{"text":"UnpackCustomEvent<CustomEventMap[K]>"},"description":"Optional event detail payload"}],"description":"Dispatches a type-safe CustomEvent with standardized configuration.\\n\\nAll events are configured with:\\n- bubbles: true (event propagates up the DOM tree)\\n- cancelable: false (event cannot be cancelled)\\n- composed: true (event crosses shadow DOM boundaries)","return":{"type":{"text":"boolean"}},"inheritedFrom":{"name":"EventEmitterMixin","module":"src/util/EventEmitterMixin.ts"}}],"events":[{"type":{"text":"CustomEvent"},"description":"Fired after first render and initialization","name":"btu-avatar-group-ready"},{"type":{"text":"CustomEvent<{hidden: number}>"},"description":"Fired when avatars are hidden due to max limit","name":"btu-avatar-group-overflow"}],"attributes":[{"name":"max","type":{"text":"number | undefined"},"description":"Maximum number of visible avatars. Remaining avatars shown as \\"+N\\"","fieldName":"max","attribute":"max"},{"name":"size","type":{"text":"'xs' | 'sm' | 'md'"},"default":"'md'","description":"Size variant for all child avatars (unless individually overridden)","fieldName":"size","attribute":"size"}],"mixins":[{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-avatar-group","customElement":true}],"exports":[{"kind":"js","name":"default","declaration":{"name":"AvatarGroup","module":"src/components/avatar/AvatarGroup.ts"}},{"kind":"custom-element-definition","name":"btu-avatar-group","declaration":{"name":"AvatarGroup","module":"src/components/avatar/AvatarGroup.ts"}}]},{"kind":"javascript-module","path":"src/components/action-bar/ActionBar.ts","declarations":[{"kind":"class","description":"A persistent container for primary, secondary, tertiary, and destructive actions\\nwithin an interface, typically anchored to the bottom of a view.\\n\\nUses a two-zone layout: destructive actions on the left (start zone),\\nmain actions on the right (end zone). Both zones maintain their position\\neven when the other zone is empty (BSP-18087).\\n\\n**Positioning:** Uses \`margin-top: auto\` to push to bottom of flex/grid parents.\\nIn block layout parents, the bar sits after content (a console warning is emitted).\\n\\n**Overflow:** When items don't fit, the least important overflow into a \\"More\\" dropdown.\\nItems are auto-sorted by variant priority (tertiary → secondary → primary).\\nWith \`compact\`, compactable items progressively hide labels one-by-one before overflowing.","name":"ActionBar","cssProperties":[{"description":"Gap between items (default: 0.75rem)","name":"--action-bar-gap"},{"description":"Bar padding (default: 1.5rem)","name":"--action-bar-padding"},{"description":"Background color (default: white)","name":"--action-bar-background"},{"description":"Border color (default: gray-200)","name":"--action-bar-border-color"},{"description":"Z-index (default: 100)","name":"--action-bar-z-index"}],"slots":[{"description":"One or more \`btu-action-item\` elements","name":""}],"members":[{"kind":"field","name":"position","type":{"text":"Position"},"default":"'bottom'","description":"Bar position: 'top' or 'bottom' (default).","attribute":"position","reflects":true},{"kind":"field","name":"sticky","type":{"text":"boolean"},"default":"false","description":"Enables CSS sticky positioning. When combined with position='top',\\nthe bar sticks to the top of the scroll container. With position='bottom'\\n(default), it sticks to the bottom.","attribute":"sticky","reflects":true},{"kind":"field","name":"alignment","type":{"text":"Alignment"},"default":"'default'","description":"Content alignment: 'default' (two-zone), 'start', 'center', 'end'.\\nNon-default alignments disable two-zone layout.","attribute":"item-alignment","reflects":true},{"kind":"field","name":"shadow","type":{"text":"boolean"},"default":"false","description":"Adds a box-shadow to the bar.","attribute":"shadow","reflects":true},{"kind":"field","name":"label","type":{"text":"string"},"default":"''","description":"Accessible label for the toolbar region.","attribute":"label"},{"kind":"field","name":"compact","type":{"text":"boolean"},"default":"false","description":"Enables progressive label compacting. When space shrinks, items marked\\n\`compactable\` (with icons) have their labels hidden one-by-one\\nfrom least to most important before items overflow into \\"More\\".","attribute":"compact","reflects":true},{"kind":"method","name":"emit","parameters":[{"name":"type","type":{"text":"K"},"description":"Event name from CustomEventMap"},{"name":"detail","optional":true,"type":{"text":"UnpackCustomEvent<CustomEventMap[K]>"},"description":"Optional event detail payload"}],"description":"Dispatches a type-safe CustomEvent with standardized configuration.\\n\\nAll events are configured with:\\n- bubbles: true (event propagates up the DOM tree)\\n- cancelable: false (event cannot be cancelled)\\n- composed: true (event crosses shadow DOM boundaries)","return":{"type":{"text":"boolean"}},"inheritedFrom":{"name":"EventEmitterMixin","module":"src/util/EventEmitterMixin.ts"}}],"events":[{"type":{"text":"CustomEvent"},"description":"Fired after first render and initialization","name":"btu-action-bar-ready"},{"type":{"text":"CustomEvent<{label: string}>"},"description":"Fired when an action item is clicked (bubbles from btu-action-item)","name":"btu-action-item-click"}],"attributes":[{"name":"position","type":{"text":"Position"},"default":"'bottom'","description":"Bar position: 'top' or 'bottom' (default).","fieldName":"position","attribute":"position"},{"name":"sticky","type":{"text":"boolean"},"default":"false","description":"Enables CSS sticky positioning. When combined with position='top',\\nthe bar sticks to the top of the scroll container. With position='bottom'\\n(default), it sticks to the bottom.","fieldName":"sticky","attribute":"sticky"},{"name":"item-alignment","type":{"text":"Alignment"},"default":"'default'","description":"Content alignment: 'default' (two-zone), 'start', 'center', 'end'.\\nNon-default alignments disable two-zone layout.","fieldName":"alignment","attribute":"item-alignment"},{"name":"shadow","type":{"text":"boolean"},"default":"false","description":"Adds a box-shadow to the bar.","fieldName":"shadow","attribute":"shadow"},{"name":"label","type":{"text":"string"},"default":"''","description":"Accessible label for the toolbar region.","fieldName":"label","attribute":"label"},{"name":"compact","type":{"text":"boolean"},"default":"false","description":"Enables progressive label compacting. When space shrinks, items marked\\n\`compactable\` (with icons) have their labels hidden one-by-one\\nfrom least to most important before items overflow into \\"More\\".","fieldName":"compact","attribute":"compact"}],"mixins":[{"name":"RovingTabindexMixin","module":"/src/util/RovingTabindexMixin.js"},{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-action-bar","customElement":true}],"exports":[{"kind":"js","name":"default","declaration":{"name":"ActionBar","module":"src/components/action-bar/ActionBar.ts"}},{"kind":"custom-element-definition","name":"btu-action-bar","declaration":{"name":"ActionBar","module":"src/components/action-bar/ActionBar.ts"}}]},{"kind":"javascript-module","path":"src/components/action-bar/ActionItem.ts","declarations":[{"kind":"class","description":"An action item button for use within \`btu-action-bar\`.\\n\\nRenders a styled button using existing \`btu-button-*\` classes. Supports\\nprimary, secondary, tertiary, and destructive variants. When \`iconOnly\`\\nis set, the label is hidden and a tooltip is shown instead.\\n\\n**Button styling:** Set \`--button-*\` CSS custom properties on \`<btu-action-item>\`\\nor a parent element to customize via CSS inheritance. See\\n\`tailwind-plugin-button.ts\` for available props.","name":"ActionItem","cssProperties":[{"description":"Override button background color","name":"--button-color"},{"description":"Override button text color","name":"--button-text-color"},{"description":"Override button border radius","name":"--button-border-radius"}],"members":[{"kind":"field","name":"label","type":{"text":"string"},"default":"''","description":"Button label text.","attribute":"label"},{"kind":"field","name":"variant","type":{"text":"ActionItemVariant"},"default":"'secondary'","description":"Visual variant: 'primary', 'secondary', 'tertiary', 'destructive'.","attribute":"variant"},{"kind":"field","name":"symbol","type":{"text":"string"},"default":"''","description":"Lucide icon symbol for the leading icon.","attribute":"symbol"},{"kind":"field","name":"iconOnly","type":{"text":"boolean"},"default":"false","description":"Show icon only, hiding the label. Tooltip activates automatically with the label text.","attribute":"icon-only"},{"kind":"field","name":"disabled","type":{"text":"boolean"},"default":"false","description":"Disables the action item. The button remains focusable for accessibility\\nbut click events are suppressed.","attribute":"disabled","reflects":true},{"kind":"field","name":"loading","type":{"text":"boolean"},"default":"false","description":"Shows a loading spinner and prevents interaction.","attribute":"loading","reflects":true},{"kind":"field","name":"zone","type":{"text":"'start' | 'end' | ''"},"default":"''","description":"Zone placement: 'start' or 'end'. Used by ActionBar for two-zone layout.\\nIf unset, auto-detected from variant (destructive → start, others → end).","attribute":"zone","reflects":true},{"kind":"field","name":"compactable","type":{"text":"boolean"},"default":"false","description":"Opt-in for progressive label compacting. When the parent bar has \`compact\`\\nenabled and space shrinks, compactable items with icons have their labels\\nhidden one-by-one (least important first) before overflowing.\\nItems without an icon ignore this attribute and go directly to overflow.","attribute":"compactable","reflects":true},{"kind":"method","name":"_relayTooltipAttrs","privacy":"private","return":{"type":{"text":"void"}}},{"kind":"method","name":"_handleClick","privacy":"private","return":{"type":{"text":"void"}}},{"kind":"method","name":"_getSpinnerColor","privacy":"private","return":{"type":{"text":"string"}}},{"kind":"method","name":"_buildButtonClasses","privacy":"private","return":{"type":{"text":"string"}}},{"kind":"method","name":"_getButtonStyles","privacy":"private","return":{"type":{"text":"Record<string, string>"}}},{"kind":"field","name":"tooltip","type":{"text":"string"},"default":"''","description":"Tooltip text content. Set to empty string to remove the tooltip.","attribute":"tooltip","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"tooltipPosition","type":{"text":"'top' | 'bottom' | 'left' | 'right'"},"default":"'top'","description":"Position relative to the host element. Auto-flips when constrained by the viewport.","attribute":"tooltip-position","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"tooltipDelay","type":{"text":"number"},"default":"300","description":"Show delay in milliseconds (hover trigger only).","attribute":"tooltip-delay","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"tooltipOffset","type":{"text":"TooltipOffset | null"},"default":"null","description":"Gap between host and tooltip (sm=4px, md=8px, lg=12px, xl=16px).","attribute":"tooltip-offset","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"tooltipNoArrow","type":{"text":"boolean"},"default":"false","description":"Hide the arrow pseudo-element.","attribute":"tooltip-no-arrow","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"tooltipTrigger","type":{"text":"string"},"default":"'hover focus'","description":"Space-separated trigger types: 'hover', 'focus', 'click'.","attribute":"tooltip-trigger","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"_onMouseLeave","privacy":"private","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"_onFocusIn","privacy":"private","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"_onFocusOut","privacy":"private","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"_onClick","privacy":"private","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"_onNativeToggle","privacy":"private","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"_onKeyDown","privacy":"private","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"_onDocumentClick","type":{"text":"((e: MouseEvent) => void) | null"},"privacy":"private","default":"null","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"method","name":"emit","parameters":[{"name":"type","type":{"text":"K"},"description":"Event name from CustomEventMap"},{"name":"detail","optional":true,"type":{"text":"UnpackCustomEvent<CustomEventMap[K]>"},"description":"Optional event detail payload"}],"description":"Dispatches a type-safe CustomEvent with standardized configuration.\\n\\nAll events are configured with:\\n- bubbles: true (event propagates up the DOM tree)\\n- cancelable: false (event cannot be cancelled)\\n- composed: true (event crosses shadow DOM boundaries)","return":{"type":{"text":"boolean"}},"inheritedFrom":{"name":"EventEmitterMixin","module":"src/util/EventEmitterMixin.ts"}}],"events":[{"type":{"text":"CustomEvent<{label: string}>"},"description":"Fired when the action item is clicked (not fired when disabled or loading)","name":"btu-action-item-click"}],"attributes":[{"name":"label","type":{"text":"string"},"default":"''","description":"Button label text.","fieldName":"label","attribute":"label"},{"name":"variant","type":{"text":"ActionItemVariant"},"default":"'secondary'","description":"Visual variant: 'primary', 'secondary', 'tertiary', 'destructive'.","fieldName":"variant","attribute":"variant"},{"name":"symbol","type":{"text":"string"},"default":"''","description":"Lucide icon symbol for the leading icon.","fieldName":"symbol","attribute":"symbol"},{"name":"icon-only","type":{"text":"boolean"},"default":"false","description":"Show icon only, hiding the label. Tooltip activates automatically with the label text.","fieldName":"iconOnly","attribute":"icon-only"},{"name":"disabled","type":{"text":"boolean"},"default":"false","description":"Disables the action item. The button remains focusable for accessibility\\nbut click events are suppressed.","fieldName":"disabled","attribute":"disabled"},{"name":"loading","type":{"text":"boolean"},"default":"false","description":"Shows a loading spinner and prevents interaction.","fieldName":"loading","attribute":"loading"},{"name":"zone","type":{"text":"'start' | 'end' | ''"},"default":"''","description":"Zone placement: 'start' or 'end'. Used by ActionBar for two-zone layout.\\nIf unset, auto-detected from variant (destructive → start, others → end).","fieldName":"zone","attribute":"zone"},{"name":"compactable","type":{"text":"boolean"},"default":"false","description":"Opt-in for progressive label compacting. When the parent bar has \`compact\`\\nenabled and space shrinks, compactable items with icons have their labels\\nhidden one-by-one (least important first) before overflowing.\\nItems without an icon ignore this attribute and go directly to overflow.","fieldName":"compactable","attribute":"compactable"},{"name":"tooltip","type":{"text":"string"},"default":"''","description":"Tooltip text content. Set to empty string to remove the tooltip.","fieldName":"tooltip","attribute":"tooltip","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"name":"tooltipPosition","type":{"text":"'top' | 'bottom' | 'left' | 'right'"},"default":"'top'","description":"Position relative to the host element. Auto-flips when constrained by the viewport.","fieldName":"tooltipPosition","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"name":"tooltipDelay","type":{"text":"number"},"default":"300","description":"Show delay in milliseconds (hover trigger only).","fieldName":"tooltipDelay","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"name":"tooltipOffset","type":{"text":"TooltipOffset | null"},"default":"null","description":"Gap between host and tooltip (sm=4px, md=8px, lg=12px, xl=16px).","fieldName":"tooltipOffset","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"name":"tooltipNoArrow","type":{"text":"boolean"},"default":"false","description":"Hide the arrow pseudo-element.","fieldName":"tooltipNoArrow","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"name":"tooltipTrigger","type":{"text":"string"},"default":"'hover focus'","description":"Space-separated trigger types: 'hover', 'focus', 'click'.","fieldName":"tooltipTrigger","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"name":"tooltip-position","type":{"text":"'top' | 'bottom' | 'left' | 'right'"},"default":"'top'","description":"Position relative to the host element. Auto-flips when constrained by the viewport.","attribute":"tooltipPosition","fieldName":"tooltipPosition","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"name":"tooltip-delay","type":{"text":"number"},"default":"300","description":"Show delay in milliseconds (hover trigger only).","attribute":"tooltipDelay","fieldName":"tooltipDelay","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"name":"tooltip-offset","type":{"text":"TooltipOffset | null"},"default":"null","description":"Gap between host and tooltip (sm=4px, md=8px, lg=12px, xl=16px).","attribute":"tooltipOffset","fieldName":"tooltipOffset","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"name":"tooltip-no-arrow","type":{"text":"boolean"},"default":"false","description":"Hide the arrow pseudo-element.","attribute":"tooltipNoArrow","fieldName":"tooltipNoArrow","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"name":"tooltip-trigger","type":{"text":"string"},"default":"'hover focus'","description":"Space-separated trigger types: 'hover', 'focus', 'click'.","attribute":"tooltipTrigger","fieldName":"tooltipTrigger","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}}],"mixins":[{"name":"TooltipMixin","module":"/src/util/TooltipMixin.js"},{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-action-item","customElement":true}],"exports":[{"kind":"js","name":"default","declaration":{"name":"ActionItem","module":"src/components/action-bar/ActionItem.ts"}},{"kind":"custom-element-definition","name":"btu-action-item","declaration":{"name":"ActionItem","module":"src/components/action-bar/ActionItem.ts"}}]},{"kind":"javascript-module","path":"src/components/button-group/ButtonGroup.ts","declarations":[{"kind":"class","description":"A semantic container for grouping related buttons together.\\n\\nSupports connected (joined) and spaced layouts, horizontal and vertical\\norientation, group-level size and disabled propagation, and optional\\ntoggle/selection modes (single-select or multi-select).","name":"ButtonGroup","cssProperties":[{"description":"Space between buttons when variant=\\"spaced\\" (default: spacing.sm)","name":"--button-group-gap"},{"description":"Corner radius of outer edges when variant=\\"connected\\" (default: 0.5rem)","name":"--button-group-border-radius"},{"description":"Internal divider color between connected buttons (default: gray-300)","name":"--button-group-border-color"},{"description":"Background of a toggled/selected child (default: primary-50)","name":"--button-group-selection-bg"},{"description":"Text/icon color of a toggled/selected child (default: primary-700)","name":"--button-group-selection-color"},{"description":"Highlight color of the selection shimmer effect (default: primary-200)","name":"--button-group-shimmer-highlight"}],"slots":[{"description":"One or more btu-button or btu-icon-button elements to display in the group","name":""},{"description":"Pushes the child to the end of the group via auto-margin (vertical: bottom, horizontal: right)","name":"end"}],"members":[{"kind":"field","name":"tagName","static":true,"readonly":true},{"kind":"field","name":"label","type":{"text":"string"},"default":"''","description":"Accessible name for the group, announced by assistive devices via aria-label.","attribute":"label"},{"kind":"field","name":"orientation","type":{"text":"'horizontal' | 'vertical'"},"default":"'horizontal'","description":"Layout direction of the buttons.","attribute":"orientation","reflects":true},{"kind":"field","name":"variant","type":{"text":"'connected' | 'spaced'"},"default":"'connected'","description":"\`connected\` collapses shared borders for a joined appearance.\\n\`spaced\` renders buttons with a gap.","attribute":"variant","reflects":true},{"kind":"field","name":"size","type":{"text":"'sm' | 'md' | 'lg'"},"default":"'md'","description":"Propagates a uniform size to all child buttons.","attribute":"size","reflects":true},{"kind":"field","name":"disabled","type":{"text":"boolean"},"default":"false","description":"When true, disables all child buttons as a group.","attribute":"disabled"},{"kind":"field","name":"selection","type":{"text":"'none' | 'single' | 'multiple'"},"default":"'none'","description":"Enables toggle/selection behavior.\\n\`single\` allows one active button; \`multiple\` allows many.","attribute":"selection","reflects":true},{"kind":"field","name":"value","type":{"text":"string"},"default":"''","description":"Reflects the currently selected button value(s).\\nFor \`single\`, the value of the active button.\\nFor \`multiple\`, a comma-delimited list of active values.","attribute":"value","reflects":true},{"kind":"field","name":"name","type":{"text":"string"},"default":"''","description":"When set, creates hidden input(s) for native form participation.","attribute":"name"},{"kind":"method","name":"emit","parameters":[{"name":"type","type":{"text":"K"},"description":"Event name from CustomEventMap"},{"name":"detail","optional":true,"type":{"text":"UnpackCustomEvent<CustomEventMap[K]>"},"description":"Optional event detail payload"}],"description":"Dispatches a type-safe CustomEvent with standardized configuration.\\n\\nAll events are configured with:\\n- bubbles: true (event propagates up the DOM tree)\\n- cancelable: false (event cannot be cancelled)\\n- composed: true (event crosses shadow DOM boundaries)","return":{"type":{"text":"boolean"}},"inheritedFrom":{"name":"EventEmitterMixin","module":"src/util/EventEmitterMixin.ts"}}],"events":[{"type":{"text":"CustomEvent"},"description":"Fired after first render and initialization","name":"btu-button-group-ready"},{"type":{"text":"CustomEvent<{value: string}>"},"description":"Fired when selection changes (single/multiple modes only)","name":"btu-button-group-change"},{"type":{"text":"CustomEvent<{name: string | undefined}>"},"description":"Bubbles from child btu-icon-button elements when clicked","name":"btu-icon-button-click"}],"attributes":[{"name":"label","type":{"text":"string"},"default":"''","description":"Accessible name for the group, announced by assistive devices via aria-label.","fieldName":"label","attribute":"label"},{"name":"orientation","type":{"text":"'horizontal' | 'vertical'"},"default":"'horizontal'","description":"Layout direction of the buttons.","fieldName":"orientation","attribute":"orientation"},{"name":"variant","type":{"text":"'connected' | 'spaced'"},"default":"'connected'","description":"\`connected\` collapses shared borders for a joined appearance.\\n\`spaced\` renders buttons with a gap.","fieldName":"variant","attribute":"variant"},{"name":"size","type":{"text":"'sm' | 'md' | 'lg'"},"default":"'md'","description":"Propagates a uniform size to all child buttons.","fieldName":"size","attribute":"size"},{"name":"disabled","type":{"text":"boolean"},"default":"false","description":"When true, disables all child buttons as a group.","fieldName":"disabled","attribute":"disabled"},{"name":"selection","type":{"text":"'none' | 'single' | 'multiple'"},"default":"'none'","description":"Enables toggle/selection behavior.\\n\`single\` allows one active button; \`multiple\` allows many.","fieldName":"selection","attribute":"selection"},{"name":"value","type":{"text":"string"},"default":"''","description":"Reflects the currently selected button value(s).\\nFor \`single\`, the value of the active button.\\nFor \`multiple\`, a comma-delimited list of active values.","fieldName":"value","attribute":"value"},{"name":"name","type":{"text":"string"},"default":"''","description":"When set, creates hidden input(s) for native form participation.","fieldName":"name","attribute":"name"}],"cssStates":[{"description":"Applied when variant=\\"connected\\", targetable via :state(btu-connected)","name":"btu-connected"},{"description":"Applied when variant=\\"spaced\\", targetable via :state(btu-spaced)","name":"btu-spaced"},{"description":"Applied when orientation=\\"horizontal\\", targetable via :state(btu-horizontal)","name":"btu-horizontal"},{"description":"Applied when orientation=\\"vertical\\", targetable via :state(btu-vertical)","name":"btu-vertical"},{"description":"Applied when the group is disabled, targetable via :state(btu-disabled)","name":"btu-disabled"}],"mixins":[{"name":"RovingTabindexMixin","module":"/src/util/RovingTabindexMixin.js"},{"name":"ComponentStatesMixin","module":"/src/util/ComponentStatesMixin.js"},{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-button-group","customElement":true}],"exports":[{"kind":"js","name":"default","declaration":{"name":"ButtonGroup","module":"src/components/button-group/ButtonGroup.ts"}},{"kind":"custom-element-definition","name":"btu-button-group","declaration":{"name":"ButtonGroup","module":"src/components/button-group/ButtonGroup.ts"}}]},{"kind":"javascript-module","path":"src/components/dropdown/Dropdown.ts","declarations":[{"kind":"class","description":"A dropdown component that renders a trigger button and manages a floating panel\\ncontaining a \`btu-dropdown-menu\`.\\n\\nUses the native Popover API and CSS anchor positioning for panel management.\\nThe trigger button is built with existing \`btu-button-*\` classes.\\n\\n**Trigger button styling:** Set \`--button-*\` CSS custom properties on \`<btu-dropdown>\`\\nor a parent element to customize the trigger via CSS inheritance (e.g.,\\n\`--button-border-radius\`, \`--button-color-background\`). See\\n\`tailwind-plugin-button.ts\` for available props.","name":"Dropdown","cssProperties":[{"description":"Panel background color (default: white)","name":"--dropdown-panel-background"},{"description":"Panel border color (default: gray-200)","name":"--dropdown-panel-border-color"},{"description":"Panel border radius (default: borderRadius.lg)","name":"--dropdown-panel-border-radius"},{"description":"Panel minimum width (default: max(12rem, anchor-size(width)))","name":"--dropdown-panel-min-width"},{"description":"Item background color (default: transparent)","name":"--dropdown-item-background"},{"description":"Item text color (default: gray-700)","name":"--dropdown-item-color"},{"description":"Item hover background (default: gray-100)","name":"--dropdown-item-hover-background"},{"description":"Item hover text color (default: gray-900)","name":"--dropdown-item-hover-color"},{"description":"Selected item background (default: primary-50)","name":"--dropdown-item-selected-background"},{"description":"Selected item text color (default: primary-700)","name":"--dropdown-item-selected-color"},{"description":"Item font size (default: fontSize.sm)","name":"--dropdown-item-font-size"},{"description":"Divider line color (default: gray-200)","name":"--dropdown-divider-color"},{"description":"Empty state text color (default: gray-400)","name":"--dropdown-empty-color"}],"slots":[{"description":"A \`btu-dropdown-menu\` element containing \`btu-dropdown-item\` children","name":""}],"members":[{"kind":"field","name":"label","type":{"text":"string"},"default":"''","description":"Trigger button text.","attribute":"label"},{"kind":"field","name":"open","type":{"text":"boolean"},"default":"false","description":"Panel visibility state. Can be set programmatically (e.g., for tour UIs)\\n— syncs to \`showPopover()\`/\`hidePopover()\` in \`updated()\`.","attribute":"open","reflects":true},{"kind":"field","name":"placement","type":{"text":"Placement"},"default":"'bottom-start'","description":"Panel placement: 'bottom-start', 'bottom-end', 'top-start', 'top-end'.","attribute":"placement"},{"kind":"field","name":"size","type":{"text":"Size"},"default":"'md'","description":"Button size: 'sm', 'md', 'lg'.","attribute":"size"},{"kind":"field","name":"disabled","type":{"text":"boolean"},"default":"false","description":"Prevents opening.","attribute":"disabled","reflects":true},{"kind":"field","name":"variant","type":{"text":"Variant"},"default":"'secondary'","description":"Button variant: 'primary', 'secondary', 'tertiary', 'primary-clear', 'secondary-clear', 'tertiary-clear'.","attribute":"variant"},{"kind":"field","name":"symbol","type":{"text":"string"},"default":"''","description":"Lucide icon symbol for the trigger.","attribute":"symbol"},{"kind":"field","name":"iconPosition","type":{"text":"'leading' | 'trailing'"},"default":"'leading'","description":"Icon position: 'leading' or 'trailing'.","attribute":"icon-position"},{"kind":"field","name":"iconOnly","type":{"text":"boolean"},"default":"false","description":"Hides label, shows icon only.","attribute":"icon-only"},{"kind":"field","name":"stayOpenOnSelect","type":{"text":"boolean"},"default":"false","description":"Keeps panel open on item click.","attribute":"stay-open-on-select"},{"kind":"field","name":"noChevron","type":{"text":"boolean"},"default":"false","description":"Hides the chevron icon on the trigger button.","attribute":"no-chevron","reflects":true},{"kind":"method","name":"_getButtonClasses","privacy":"private","return":{"type":{"text":"string"}},"description":"Build the button class string based on variant and size"},{"kind":"method","name":"_showPanel","privacy":"private","return":{"type":{"text":"void"}},"description":"Show the dropdown panel"},{"kind":"method","name":"_hidePanel","privacy":"private","return":{"type":{"text":"void"}},"description":"Hide the dropdown panel"},{"kind":"field","name":"tooltip","type":{"text":"string"},"default":"''","description":"Tooltip text content. Set to empty string to remove the tooltip.","attribute":"tooltip","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"tooltipPosition","type":{"text":"'top' | 'bottom' | 'left' | 'right'"},"default":"'top'","description":"Position relative to the host element. Auto-flips when constrained by the viewport.","attribute":"tooltip-position","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"tooltipDelay","type":{"text":"number"},"default":"300","description":"Show delay in milliseconds (hover trigger only).","attribute":"tooltip-delay","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"tooltipOffset","type":{"text":"TooltipOffset | null"},"default":"null","description":"Gap between host and tooltip (sm=4px, md=8px, lg=12px, xl=16px).","attribute":"tooltip-offset","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"tooltipNoArrow","type":{"text":"boolean"},"default":"false","description":"Hide the arrow pseudo-element.","attribute":"tooltip-no-arrow","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"tooltipTrigger","type":{"text":"string"},"default":"'hover focus'","description":"Space-separated trigger types: 'hover', 'focus', 'click'.","attribute":"tooltip-trigger","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"_onMouseLeave","privacy":"private","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"_onFocusIn","privacy":"private","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"_onFocusOut","privacy":"private","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"_onClick","privacy":"private","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"_onNativeToggle","privacy":"private","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"_onKeyDown","privacy":"private","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"_onDocumentClick","type":{"text":"((e: MouseEvent) => void) | null"},"privacy":"private","default":"null","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"method","name":"emit","parameters":[{"name":"type","type":{"text":"K"},"description":"Event name from CustomEventMap"},{"name":"detail","optional":true,"type":{"text":"UnpackCustomEvent<CustomEventMap[K]>"},"description":"Optional event detail payload"}],"description":"Dispatches a type-safe CustomEvent with standardized configuration.\\n\\nAll events are configured with:\\n- bubbles: true (event propagates up the DOM tree)\\n- cancelable: false (event cannot be cancelled)\\n- composed: true (event crosses shadow DOM boundaries)","return":{"type":{"text":"boolean"}},"inheritedFrom":{"name":"EventEmitterMixin","module":"src/util/EventEmitterMixin.ts"}}],"events":[{"type":{"text":"CustomEvent"},"description":"Fired after first render and initialization","name":"btu-dropdown-ready"},{"type":{"text":"CustomEvent"},"description":"Fired when the dropdown panel opens","name":"btu-dropdown-show"},{"type":{"text":"CustomEvent"},"description":"Fired when the dropdown panel closes","name":"btu-dropdown-hide"},{"type":{"text":"CustomEvent<{label: string, value: string, selected: boolean}>"},"description":"Fired when a menu item is activated (bubbles from btu-dropdown-item)","name":"btu-dropdown-item-select"},{"type":{"text":"CustomEvent<{label: string, favorited: boolean}>"},"description":"Fired when a menu item's favorite is toggled (bubbles from btu-dropdown-item)","name":"btu-dropdown-item-favorite"}],"attributes":[{"name":"label","type":{"text":"string"},"default":"''","description":"Trigger button text.","fieldName":"label","attribute":"label"},{"name":"open","type":{"text":"boolean"},"default":"false","description":"Panel visibility state. Can be set programmatically (e.g., for tour UIs)\\n— syncs to \`showPopover()\`/\`hidePopover()\` in \`updated()\`.","fieldName":"open","attribute":"open"},{"name":"placement","type":{"text":"Placement"},"default":"'bottom-start'","description":"Panel placement: 'bottom-start', 'bottom-end', 'top-start', 'top-end'.","fieldName":"placement","attribute":"placement"},{"name":"size","type":{"text":"Size"},"default":"'md'","description":"Button size: 'sm', 'md', 'lg'.","fieldName":"size","attribute":"size"},{"name":"disabled","type":{"text":"boolean"},"default":"false","description":"Prevents opening.","fieldName":"disabled","attribute":"disabled"},{"name":"variant","type":{"text":"Variant"},"default":"'secondary'","description":"Button variant: 'primary', 'secondary', 'tertiary', 'primary-clear', 'secondary-clear', 'tertiary-clear'.","fieldName":"variant","attribute":"variant"},{"name":"symbol","type":{"text":"string"},"default":"''","description":"Lucide icon symbol for the trigger.","fieldName":"symbol","attribute":"symbol"},{"name":"icon-position","type":{"text":"'leading' | 'trailing'"},"default":"'leading'","description":"Icon position: 'leading' or 'trailing'.","fieldName":"iconPosition","attribute":"icon-position"},{"name":"icon-only","type":{"text":"boolean"},"default":"false","description":"Hides label, shows icon only.","fieldName":"iconOnly","attribute":"icon-only"},{"name":"stay-open-on-select","type":{"text":"boolean"},"default":"false","description":"Keeps panel open on item click.","fieldName":"stayOpenOnSelect","attribute":"stay-open-on-select"},{"name":"no-chevron","type":{"text":"boolean"},"default":"false","description":"Hides the chevron icon on the trigger button.","fieldName":"noChevron","attribute":"no-chevron"},{"name":"tooltip","type":{"text":"string"},"default":"''","description":"Tooltip text content. Set to empty string to remove the tooltip.","fieldName":"tooltip","attribute":"tooltip","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"name":"tooltipPosition","type":{"text":"'top' | 'bottom' | 'left' | 'right'"},"default":"'top'","description":"Position relative to the host element. Auto-flips when constrained by the viewport.","fieldName":"tooltipPosition","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"name":"tooltipDelay","type":{"text":"number"},"default":"300","description":"Show delay in milliseconds (hover trigger only).","fieldName":"tooltipDelay","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"name":"tooltipOffset","type":{"text":"TooltipOffset | null"},"default":"null","description":"Gap between host and tooltip (sm=4px, md=8px, lg=12px, xl=16px).","fieldName":"tooltipOffset","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"name":"tooltipNoArrow","type":{"text":"boolean"},"default":"false","description":"Hide the arrow pseudo-element.","fieldName":"tooltipNoArrow","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"name":"tooltipTrigger","type":{"text":"string"},"default":"'hover focus'","description":"Space-separated trigger types: 'hover', 'focus', 'click'.","fieldName":"tooltipTrigger","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"name":"tooltip-position","type":{"text":"'top' | 'bottom' | 'left' | 'right'"},"default":"'top'","description":"Position relative to the host element. Auto-flips when constrained by the viewport.","attribute":"tooltipPosition","fieldName":"tooltipPosition","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"name":"tooltip-delay","type":{"text":"number"},"default":"300","description":"Show delay in milliseconds (hover trigger only).","attribute":"tooltipDelay","fieldName":"tooltipDelay","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"name":"tooltip-offset","type":{"text":"TooltipOffset | null"},"default":"null","description":"Gap between host and tooltip (sm=4px, md=8px, lg=12px, xl=16px).","attribute":"tooltipOffset","fieldName":"tooltipOffset","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"name":"tooltip-no-arrow","type":{"text":"boolean"},"default":"false","description":"Hide the arrow pseudo-element.","attribute":"tooltipNoArrow","fieldName":"tooltipNoArrow","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"name":"tooltip-trigger","type":{"text":"string"},"default":"'hover focus'","description":"Space-separated trigger types: 'hover', 'focus', 'click'.","attribute":"tooltipTrigger","fieldName":"tooltipTrigger","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}}],"mixins":[{"name":"TooltipMixin","module":"/src/util/TooltipMixin.js"},{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-dropdown","customElement":true}],"exports":[{"kind":"js","name":"default","declaration":{"name":"Dropdown","module":"src/components/dropdown/Dropdown.ts"}},{"kind":"custom-element-definition","name":"btu-dropdown","declaration":{"name":"Dropdown","module":"src/components/dropdown/Dropdown.ts"}}]},{"kind":"javascript-module","path":"src/components/dropdown/DropdownItem.ts","declarations":[{"kind":"class","description":"A menu item component for use inside \`btu-dropdown-menu\`.\\n\\nRenders as a menu item, divider, or subhead depending on the \`type\` property.\\nSupports checkbox mode (inherited from parent menu), icons, keyboard shortcuts,\\nand favorite toggles.","name":"DropdownItem","cssProperties":[{"description":"Item font size (default: theme fontSize.sm)","name":"--dropdown-item-font-size"},{"description":"Item text color (default: gray-700)","name":"--dropdown-item-color"},{"description":"Item background color (default: transparent)","name":"--dropdown-item-background"},{"description":"Background on hover (default: gray-100)","name":"--dropdown-item-hover-background"},{"description":"Text color on hover (default: gray-900)","name":"--dropdown-item-hover-color"},{"description":"Background when selected (default: primary-50)","name":"--dropdown-item-selected-background"},{"description":"Text color when selected (default: primary-700)","name":"--dropdown-item-selected-color"}],"members":[{"kind":"field","name":"label","type":{"text":"string"},"default":"''","description":"Display text for the item.","attribute":"label"},{"kind":"field","name":"type","type":{"text":"'default' | 'divider' | 'subhead'"},"default":"'default'","description":"Item type: 'default', 'divider', or 'subhead'.","attribute":"type"},{"kind":"field","name":"symbol","type":{"text":"string"},"default":"''","description":"Lucide icon symbol.","attribute":"symbol"},{"kind":"field","name":"shortcut","type":{"text":"string"},"default":"''","description":"Keyboard shortcut display text.","attribute":"shortcut"},{"kind":"field","name":"value","type":{"text":"string"},"default":"''","description":"Optional data value associated with the item.","attribute":"value"},{"kind":"field","name":"disabled","type":{"text":"boolean"},"default":"false","description":"Whether the item is disabled.","attribute":"disabled"},{"kind":"field","name":"selected","type":{"text":"boolean"},"default":"false","description":"Whether the item is selected/checked.","attribute":"selected","reflects":true},{"kind":"field","name":"favorited","type":{"text":"boolean"},"default":"false","description":"Whether the item is favorited.","attribute":"favorited"},{"kind":"field","name":"error","type":{"text":"boolean"},"default":"false","description":"Whether the item has an error.","attribute":"error"},{"kind":"method","name":"_toggleFavorite","privacy":"private","return":{"type":{"text":"void"}},"parameters":[{"name":"e","type":{"text":"Event"}}],"description":"Toggle favorite state"},{"kind":"method","name":"_handleClick","privacy":"private","return":{"type":{"text":"void"}}},{"kind":"method","name":"emit","parameters":[{"name":"type","type":{"text":"K"},"description":"Event name from CustomEventMap"},{"name":"detail","optional":true,"type":{"text":"UnpackCustomEvent<CustomEventMap[K]>"},"description":"Optional event detail payload"}],"description":"Dispatches a type-safe CustomEvent with standardized configuration.\\n\\nAll events are configured with:\\n- bubbles: true (event propagates up the DOM tree)\\n- cancelable: false (event cannot be cancelled)\\n- composed: true (event crosses shadow DOM boundaries)","return":{"type":{"text":"boolean"}},"inheritedFrom":{"name":"EventEmitterMixin","module":"src/util/EventEmitterMixin.ts"}}],"events":[{"type":{"text":"CustomEvent"},"description":"Fired after first render","name":"btu-dropdown-item-ready"},{"type":{"text":"CustomEvent<{label: string, value: string, selected: boolean}>"},"description":"Fired when item is activated","name":"btu-dropdown-item-select"},{"type":{"text":"CustomEvent<{label: string, favorited: boolean}>"},"description":"Fired when favorite is toggled","name":"btu-dropdown-item-favorite"}],"attributes":[{"name":"label","type":{"text":"string"},"default":"''","description":"Display text for the item.","fieldName":"label","attribute":"label"},{"name":"type","type":{"text":"'default' | 'divider' | 'subhead'"},"default":"'default'","description":"Item type: 'default', 'divider', or 'subhead'.","fieldName":"type","attribute":"type"},{"name":"symbol","type":{"text":"string"},"default":"''","description":"Lucide icon symbol.","fieldName":"symbol","attribute":"symbol"},{"name":"shortcut","type":{"text":"string"},"default":"''","description":"Keyboard shortcut display text.","fieldName":"shortcut","attribute":"shortcut"},{"name":"value","type":{"text":"string"},"default":"''","description":"Optional data value associated with the item.","fieldName":"value","attribute":"value"},{"name":"disabled","type":{"text":"boolean"},"default":"false","description":"Whether the item is disabled.","fieldName":"disabled","attribute":"disabled"},{"name":"selected","type":{"text":"boolean"},"default":"false","description":"Whether the item is selected/checked.","fieldName":"selected","attribute":"selected"},{"name":"favorited","type":{"text":"boolean"},"default":"false","description":"Whether the item is favorited.","fieldName":"favorited","attribute":"favorited"},{"name":"error","type":{"text":"boolean"},"default":"false","description":"Whether the item has an error.","fieldName":"error","attribute":"error"}],"mixins":[{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-dropdown-item","customElement":true}],"exports":[{"kind":"js","name":"default","declaration":{"name":"DropdownItem","module":"src/components/dropdown/DropdownItem.ts"}},{"kind":"custom-element-definition","name":"btu-dropdown-item","declaration":{"name":"DropdownItem","module":"src/components/dropdown/DropdownItem.ts"}}]},{"kind":"javascript-module","path":"src/components/dropdown/DropdownMenu.ts","declarations":[{"kind":"class","description":"A menu container component that provides keyboard navigation and ARIA menu semantics.\\n\\nContains \`btu-dropdown-item\` children and manages roving tabindex, typeahead search,\\nand keyboard navigation following the WAI-ARIA Menu Button Pattern.","name":"DropdownMenu","cssProperties":[{"description":"Empty state text color (default: gray-400)","name":"--dropdown-empty-color"}],"slots":[{"description":"Menu items (\`btu-dropdown-item\` elements)","name":""}],"members":[{"kind":"field","name":"name","type":{"text":"string"},"default":"''","description":"Accessible name for the menu, displayed in header when header is true.","attribute":"name"},{"kind":"field","name":"header","type":{"text":"boolean"},"default":"false","description":"Show header bar with menu name.","attribute":"header"},{"kind":"field","name":"checkbox","type":{"text":"boolean"},"default":"false","description":"Enable checkbox mode for items (menuitemcheckbox role).","attribute":"checkbox"},{"kind":"field","name":"icon","type":{"text":"boolean"},"default":"false","description":"Show icons before each item.","attribute":"icon"},{"kind":"field","name":"symbol","type":{"text":"string"},"default":"''","description":"Fallback Lucide icon symbol for items without their own.","attribute":"symbol"},{"kind":"field","name":"favorites","type":{"text":"boolean"},"default":"false","description":"Show favorite toggle on each item.","attribute":"favorites"},{"kind":"field","name":"shortcuts","type":{"text":"boolean"},"default":"false","description":"Show keyboard shortcut text on each item.","attribute":"shortcuts"},{"kind":"field","name":"emptyMessage","type":{"text":"string"},"default":"'No items available'","description":"Message displayed when the menu has no focusable items.","attribute":"empty-message"},{"kind":"method","name":"_configureItems","privacy":"private","return":{"type":{"text":"void"}},"description":"Configure all child items with menu-level settings"},{"kind":"method","name":"_getAllItems","privacy":"private","return":{"type":{"text":"DropdownItem[]"}},"description":"Get all btu-dropdown-item children"},{"kind":"method","name":"_getFocusableItems","privacy":"private","return":{"type":{"text":"DropdownItem[]"}},"description":"Get only focusable items (default type, skip dividers/subheads)"},{"kind":"method","name":"_handleTypeahead","privacy":"private","return":{"type":{"text":"void"}},"parameters":[{"name":"char","type":{"text":"string"}},{"name":"focusable","type":{"text":"DropdownItem[]"}}],"description":"Typeahead character matching with 500ms accumulation"},{"kind":"field","name":"_isEmpty","type":{"text":"boolean"},"privacy":"private","description":"Check whether the menu has zero focusable items","readonly":true},{"kind":"method","name":"emit","parameters":[{"name":"type","type":{"text":"K"},"description":"Event name from CustomEventMap"},{"name":"detail","optional":true,"type":{"text":"UnpackCustomEvent<CustomEventMap[K]>"},"description":"Optional event detail payload"}],"description":"Dispatches a type-safe CustomEvent with standardized configuration.\\n\\nAll events are configured with:\\n- bubbles: true (event propagates up the DOM tree)\\n- cancelable: false (event cannot be cancelled)\\n- composed: true (event crosses shadow DOM boundaries)","return":{"type":{"text":"boolean"}},"inheritedFrom":{"name":"EventEmitterMixin","module":"src/util/EventEmitterMixin.ts"}}],"events":[{"type":{"text":"CustomEvent"},"description":"Fired after first render","name":"btu-dropdown-menu-ready"}],"attributes":[{"name":"name","type":{"text":"string"},"default":"''","description":"Accessible name for the menu, displayed in header when header is true.","fieldName":"name","attribute":"name"},{"name":"header","type":{"text":"boolean"},"default":"false","description":"Show header bar with menu name.","fieldName":"header","attribute":"header"},{"name":"checkbox","type":{"text":"boolean"},"default":"false","description":"Enable checkbox mode for items (menuitemcheckbox role).","fieldName":"checkbox","attribute":"checkbox"},{"name":"icon","type":{"text":"boolean"},"default":"false","description":"Show icons before each item.","fieldName":"icon","attribute":"icon"},{"name":"symbol","type":{"text":"string"},"default":"''","description":"Fallback Lucide icon symbol for items without their own.","fieldName":"symbol","attribute":"symbol"},{"name":"favorites","type":{"text":"boolean"},"default":"false","description":"Show favorite toggle on each item.","fieldName":"favorites","attribute":"favorites"},{"name":"shortcuts","type":{"text":"boolean"},"default":"false","description":"Show keyboard shortcut text on each item.","fieldName":"shortcuts","attribute":"shortcuts"},{"name":"empty-message","type":{"text":"string"},"default":"'No items available'","description":"Message displayed when the menu has no focusable items.","fieldName":"emptyMessage","attribute":"empty-message"}],"mixins":[{"name":"RovingTabindexMixin","module":"/src/util/RovingTabindexMixin.js"},{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-dropdown-menu","customElement":true}],"exports":[{"kind":"js","name":"default","declaration":{"name":"DropdownMenu","module":"src/components/dropdown/DropdownMenu.ts"}},{"kind":"custom-element-definition","name":"btu-dropdown-menu","declaration":{"name":"DropdownMenu","module":"src/components/dropdown/DropdownMenu.ts"}}]},{"kind":"javascript-module","path":"src/components/circular-progress/CircularProgress.ts","declarations":[{"kind":"class","description":"A circular progress indicator for showing loading states or progress.","name":"CircularProgress","cssProperties":[{"description":"Custom progress indicator color (overrides theme color)","name":"--progress-color"},{"description":"Track/background color (overrides default gray-100)","name":"--track-color"},{"description":"Custom size in pixels (overrides size preset)","name":"--progress-size"}],"members":[{"kind":"field","name":"indeterminate","type":{"text":"boolean"},"default":"true","description":"Whether the progress indicator is indeterminate (animated spinner).\\nWhen false, shows determinate progress based on the progress value.","attribute":"indeterminate"},{"kind":"field","name":"size","type":{"text":"'sm' | 'md' | 'lg'"},"default":"'sm'","description":"Size variant.\\n- 'sm': Small (16px) - default\\n- 'md': Medium (32px)\\n- 'lg': Large (48px)","attribute":"size"},{"kind":"field","name":"color","type":{"text":"ProgressColors"},"default":"'primary'","description":"Color theme of the progress indicator.\\nSupports: black, white, primary, teal, gray, purple, rose, error, warning, success","attribute":"color","inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}},{"kind":"field","name":"thickness","type":{"text":"number | undefined"},"description":"Stroke width of the progress indicator.","attribute":"thickness","inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}},{"kind":"field","name":"_progress","type":{"text":"number"},"privacy":"private","default":"0","inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}},{"kind":"field","name":"progress","description":"Progress value for determinate variant. Clamped to 0–100.","attribute":"progress","inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}},{"kind":"field","name":"label","type":{"text":"string | undefined"},"description":"Optional label text to display with the progress indicator.","attribute":"label","inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}},{"kind":"field","name":"initialAnimation","type":{"text":"boolean"},"default":"true","description":"Whether to animate progress from 0 to target value when component first becomes visible.","attribute":"initial-animation","inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}},{"kind":"field","name":"ariaLabel","type":{"text":"string | null"},"default":"null","description":"Optional aria-label attribute for screen readers.\\nDescribes what the progress indicator represents.","attribute":"aria-label","inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}},{"kind":"field","name":"ariaLabelledBy","type":{"text":"string | null"},"default":"null","description":"Optional aria-labelledby attribute for screen readers.\\nReferences the ID of an element that labels the progress indicator.","attribute":"aria-labelledby","inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}},{"kind":"field","name":"ariaValueText","type":{"text":"string | null"},"default":"null","description":"Optional aria-valuetext attribute for screen readers.\\nProvides human-readable text alternative for progress value.","attribute":"aria-valuetext","inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}},{"kind":"field","name":"completionAnnouncement","type":{"text":"string | undefined"},"description":"Optional message to announce to screen readers when progress reaches 100%.\\nIf not provided, no announcement will be made on completion.","attribute":"completion-announcement","inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}},{"kind":"field","name":"_isAnimationInitialized","type":{"text":"boolean"},"privacy":"private","default":"false","inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}},{"kind":"field","name":"_intersectionObserver","type":{"text":"IntersectionObserver | undefined"},"privacy":"private","inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}},{"kind":"field","name":"_hasCompletedAt100","type":{"text":"boolean"},"privacy":"private","default":"false","inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}},{"kind":"field","name":"_hostTag","type":{"text":"'btu-linear-progress' | 'btu-circular-progress'"},"privacy":"private","readonly":true,"inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}},{"kind":"method","name":"emit","parameters":[{"name":"type","type":{"text":"K"},"description":"Event name from CustomEventMap"},{"name":"detail","optional":true,"type":{"text":"UnpackCustomEvent<CustomEventMap[K]>"},"description":"Optional event detail payload"}],"description":"Dispatches a type-safe CustomEvent with standardized configuration.\\n\\nAll events are configured with:\\n- bubbles: true (event propagates up the DOM tree)\\n- cancelable: false (event cannot be cancelled)\\n- composed: true (event crosses shadow DOM boundaries)","return":{"type":{"text":"boolean"}},"inheritedFrom":{"name":"EventEmitterMixin","module":"src/util/EventEmitterMixin.ts"}}],"events":[{"type":{"text":"CustomEvent"},"description":"Fired after first render and initialization","name":"btu-circular-progress-ready"},{"type":{"text":"CustomEvent"},"description":"Fired when determinate progress reaches 100","name":"btu-circular-progress-complete"}],"attributes":[{"name":"indeterminate","type":{"text":"boolean"},"default":"true","description":"Whether the progress indicator is indeterminate (animated spinner).\\nWhen false, shows determinate progress based on the progress value.","fieldName":"indeterminate","attribute":"indeterminate"},{"name":"size","type":{"text":"'sm' | 'md' | 'lg'"},"default":"'sm'","description":"Size variant.\\n- 'sm': Small (16px) - default\\n- 'md': Medium (32px)\\n- 'lg': Large (48px)","fieldName":"size","attribute":"size"},{"name":"color","type":{"text":"ProgressColors"},"default":"'primary'","description":"Color theme of the progress indicator.\\nSupports: black, white, primary, teal, gray, purple, rose, error, warning, success","fieldName":"color","attribute":"color","inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}},{"name":"thickness","type":{"text":"number | undefined"},"description":"Stroke width of the progress indicator.","fieldName":"thickness","attribute":"thickness","inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}},{"name":"progress","description":"Progress value for determinate variant. Clamped to 0–100.","fieldName":"progress","attribute":"progress","inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}},{"name":"label","type":{"text":"string | undefined"},"description":"Optional label text to display with the progress indicator.","fieldName":"label","attribute":"label","inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}},{"name":"initial-animation","type":{"text":"boolean"},"default":"true","description":"Whether to animate progress from 0 to target value when component first becomes visible.","fieldName":"initialAnimation","attribute":"initial-animation","inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}},{"name":"aria-label","type":{"text":"string | null"},"default":"null","description":"Optional aria-label attribute for screen readers.\\nDescribes what the progress indicator represents.","fieldName":"ariaLabel","attribute":"aria-label","inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}},{"name":"aria-labelledby","type":{"text":"string | null"},"default":"null","description":"Optional aria-labelledby attribute for screen readers.\\nReferences the ID of an element that labels the progress indicator.","fieldName":"ariaLabelledBy","attribute":"aria-labelledby","inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}},{"name":"aria-valuetext","type":{"text":"string | null"},"default":"null","description":"Optional aria-valuetext attribute for screen readers.\\nProvides human-readable text alternative for progress value.","fieldName":"ariaValueText","attribute":"aria-valuetext","inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}},{"name":"completion-announcement","type":{"text":"string | undefined"},"description":"Optional message to announce to screen readers when progress reaches 100%.\\nIf not provided, no announcement will be made on completion.","fieldName":"completionAnnouncement","attribute":"completion-announcement","inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}}],"mixins":[{"name":"ProgressMixin","module":"/src/util/ProgressMixin.js"},{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-circular-progress","customElement":true}],"exports":[{"kind":"js","name":"default","declaration":{"name":"CircularProgress","module":"src/components/circular-progress/CircularProgress.ts"}},{"kind":"custom-element-definition","name":"btu-circular-progress","declaration":{"name":"CircularProgress","module":"src/components/circular-progress/CircularProgress.ts"}}]},{"kind":"javascript-module","path":"src/components/checkbox/Checkbox.ts","declarations":[{"kind":"class","description":"A checkbox component for selecting one or more options from a set.\\n\\nUses a hidden native checkbox internally for accessibility and form\\nparticipation. Styled via the \`btu-checkbox\` Tailwind plugin classes.\\nThe component manages its own \`className\` — do not modify it externally\\nafter initialization (classes present at connection time are preserved).","name":"Checkbox","cssProperties":[{"description":"Background and border color when checked or indeterminate, and tinted background/border on unchecked hover (default: oklch(var(--btu-theme-primary-700)))","name":"--checkbox-color-primary"},{"description":"Border color in the unchecked state (default: oklch(var(--btu-theme-gray-300)))","name":"--checkbox-color-border"},{"description":"Border and text color in the error state (default: oklch(var(--btu-theme-error-600)))","name":"--checkbox-color-error"},{"description":"Corner rounding of the checkbox square (default: 4px)","name":"--checkbox-border-radius"},{"description":"Distance between the checkbox and the label (default: 0.75rem)","name":"--checkbox-label-spacing"},{"description":"[Internal] Width and height of the checkbox square, set by the size variant (sm: 1rem, md: 1.25rem). Use the \`size\` attribute instead of overriding directly — the icon must scale in tandem.","name":"--checkbox-box-size"},{"description":"[Internal] Width and height of the icon inside the box, set by the size variant (sm: 0.75rem, md: 0.875rem). Use the \`size\` attribute instead of overriding directly.","name":"--checkbox-icon-size"}],"members":[{"kind":"field","name":"label","type":{"text":"string | undefined"},"description":"The text label displayed next to the checkbox.","attribute":"label"},{"kind":"field","name":"description","type":{"text":"string | undefined"},"description":"Optional helper text displayed below the label.","attribute":"description"},{"kind":"field","name":"size","type":{"text":"'sm' | 'md'"},"default":"'sm'","description":"Controls the scale of the checkbox and associated typography.","attribute":"size","reflects":true},{"kind":"field","name":"checked","type":{"text":"boolean"},"default":"false","description":"Whether the checkbox is currently selected.","attribute":"checked","reflects":true},{"kind":"field","name":"indeterminate","type":{"text":"boolean"},"default":"false","description":"Whether the checkbox is in a partially selected state. Sets \`aria-checked='mixed'\`\\nand activates the native \`:indeterminate\` pseudo-class. Cleared automatically when\\nthe user clicks the checkbox.","attribute":"indeterminate","reflects":true},{"kind":"field","name":"disabled","type":{"text":"boolean"},"default":"false","description":"If true, the checkbox is non-interactive and visually muted.","attribute":"disabled","reflects":true},{"kind":"field","name":"invalid","type":{"text":"boolean"},"default":"false","description":"If true, displays error styling on the checkbox.","attribute":"invalid","reflects":true},{"kind":"field","name":"error","type":{"text":"string | undefined"},"description":"Error message text displayed below the checkbox when validation fails.\\nSetting this also activates error styling without needing to set invalid.","attribute":"error"},{"kind":"field","name":"required","type":{"text":"boolean"},"default":"false","description":"Marks the field as mandatory for form submission.","attribute":"required","reflects":true},{"kind":"field","name":"name","type":{"text":"string | undefined"},"description":"Name of the form control submitted with the form data.","attribute":"name"},{"kind":"field","name":"value","type":{"text":"string"},"default":"'on'","description":"Value associated with the checkbox when submitted.","attribute":"value"},{"kind":"field","name":"_userInitiated","type":{"text":"boolean"},"privacy":"private","default":"false"},{"kind":"field","name":"_initialClasses","type":{"text":"string[]"},"privacy":"private","default":"[]"},{"kind":"field","name":"_initialClassesCaptured","type":{"text":"boolean"},"privacy":"private","default":"false"},{"kind":"field","name":"_descId","privacy":"private","default":"\`checkbox-desc-\${crypto.randomUUID()}\`"},{"kind":"field","name":"_errorId","privacy":"private","default":"\`checkbox-error-\${crypto.randomUUID()}\`"},{"kind":"method","name":"_onInputChange","privacy":"private","return":{"type":{"text":"void"}},"parameters":[{"name":"e","type":{"text":"Event"}}]},{"kind":"field","name":"_handleClick","privacy":"private"},{"kind":"field","name":"_describedBy","type":{"text":"string | undefined"},"privacy":"private","readonly":true},{"kind":"field","name":"_iconSymbol","type":{"text":"'minus' | 'check'"},"privacy":"private","readonly":true},{"kind":"method","name":"emit","parameters":[{"name":"type","type":{"text":"K"},"description":"Event name from CustomEventMap"},{"name":"detail","optional":true,"type":{"text":"UnpackCustomEvent<CustomEventMap[K]>"},"description":"Optional event detail payload"}],"description":"Dispatches a type-safe CustomEvent with standardized configuration.\\n\\nAll events are configured with:\\n- bubbles: true (event propagates up the DOM tree)\\n- cancelable: false (event cannot be cancelled)\\n- composed: true (event crosses shadow DOM boundaries)","return":{"type":{"text":"boolean"}},"inheritedFrom":{"name":"EventEmitterMixin","module":"src/util/EventEmitterMixin.ts"}}],"events":[{"type":{"text":"CustomEvent"},"description":"Fired after the checkbox is first rendered and initialized","name":"btu-checkbox-ready"},{"type":{"text":"CustomEvent<{ checked: boolean }>"},"description":"Fired when the user toggles the checked state","name":"btu-checkbox-change"}],"attributes":[{"name":"label","type":{"text":"string | undefined"},"description":"The text label displayed next to the checkbox.","fieldName":"label","attribute":"label"},{"name":"description","type":{"text":"string | undefined"},"description":"Optional helper text displayed below the label.","fieldName":"description","attribute":"description"},{"name":"size","type":{"text":"'sm' | 'md'"},"default":"'sm'","description":"Controls the scale of the checkbox and associated typography.","fieldName":"size","attribute":"size"},{"name":"checked","type":{"text":"boolean"},"default":"false","description":"Whether the checkbox is currently selected.","fieldName":"checked","attribute":"checked"},{"name":"indeterminate","type":{"text":"boolean"},"default":"false","description":"Whether the checkbox is in a partially selected state. Sets \`aria-checked='mixed'\`\\nand activates the native \`:indeterminate\` pseudo-class. Cleared automatically when\\nthe user clicks the checkbox.","fieldName":"indeterminate","attribute":"indeterminate"},{"name":"disabled","type":{"text":"boolean"},"default":"false","description":"If true, the checkbox is non-interactive and visually muted.","fieldName":"disabled","attribute":"disabled"},{"name":"invalid","type":{"text":"boolean"},"default":"false","description":"If true, displays error styling on the checkbox.","fieldName":"invalid","attribute":"invalid"},{"name":"error","type":{"text":"string | undefined"},"description":"Error message text displayed below the checkbox when validation fails.\\nSetting this also activates error styling without needing to set invalid.","fieldName":"error","attribute":"error"},{"name":"required","type":{"text":"boolean"},"default":"false","description":"Marks the field as mandatory for form submission.","fieldName":"required","attribute":"required"},{"name":"name","type":{"text":"string | undefined"},"description":"Name of the form control submitted with the form data.","fieldName":"name","attribute":"name"},{"name":"value","type":{"text":"string"},"default":"'on'","description":"Value associated with the checkbox when submitted.","fieldName":"value","attribute":"value"}],"mixins":[{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-checkbox","customElement":true}],"exports":[{"kind":"js","name":"default","declaration":{"name":"Checkbox","module":"src/components/checkbox/Checkbox.ts"}},{"kind":"custom-element-definition","name":"btu-checkbox","declaration":{"name":"Checkbox","module":"src/components/checkbox/Checkbox.ts"}}]},{"kind":"javascript-module","path":"src/components/copy-to-clipboard/CopyToClipboard.ts","declarations":[{"kind":"class","description":"A button component that copies text to the system clipboard.\\n\\nProvides visual feedback when text is successfully copied by applying\\na temporary state that can be styled with CSS.\\n\\nButton styling is inherited from \`btu-button-*\` classes. Override appearance\\nby passing custom classes via the \`buttonClasses\` attribute.","name":"CopyToClipboard","members":[{"kind":"field","name":"copydata","type":{"text":"string | undefined"},"description":"The text to be copied to the system clipboard.","attribute":"copydata"},{"kind":"field","name":"buttonClasses","type":{"text":"string | undefined"},"description":"Custom CSS classes for the button. If provided, replaces the default classes.","attribute":"buttonClasses"},{"kind":"method","name":"copy","return":{"type":{"text":""}},"parameters":[{"name":"text","type":{"text":"string"},"description":"The text to copy to clipboard"},{"name":"timeout","default":"3000","description":"Duration in milliseconds to show success state (default: 3000)"}],"description":"Copies the copydata to the system clipboard.\\nDisplays a success state for 3 seconds after copying.","inheritedFrom":{"name":"ClipboardMixin","module":"src/util/ClipboardMixin.ts"}},{"kind":"field","name":"copiedStateKey","type":{"text":"'btu-copy-to-clipboard-copied'"},"description":"Custom state applied briefly after a successful copy; also emitted as an event.","readonly":true,"inheritedFrom":{"name":"ClipboardMixin","module":"src/util/ClipboardMixin.ts"}},{"kind":"method","name":"emit","parameters":[{"name":"type","type":{"text":"K"},"description":"Event name from CustomEventMap"},{"name":"detail","optional":true,"type":{"text":"UnpackCustomEvent<CustomEventMap[K]>"},"description":"Optional event detail payload"}],"description":"Dispatches a type-safe CustomEvent with standardized configuration.\\n\\nAll events are configured with:\\n- bubbles: true (event propagates up the DOM tree)\\n- cancelable: false (event cannot be cancelled)\\n- composed: true (event crosses shadow DOM boundaries)","return":{"type":{"text":"boolean"}},"inheritedFrom":{"name":"EventEmitterMixin","module":"src/util/EventEmitterMixin.ts"}}],"events":[{"type":{"text":"CustomEvent"},"description":"Fired after first render and initialization","name":"btu-copy-to-clipboard-ready"},{"type":{"text":"CustomEvent"},"description":"Fired when text is successfully copied to clipboard","name":"btu-copy-to-clipboard-copied"}],"attributes":[{"name":"copydata","type":{"text":"string | undefined"},"description":"The text to be copied to the system clipboard.","fieldName":"copydata","attribute":"copydata"},{"name":"buttonClasses","type":{"text":"string | undefined"},"description":"Custom CSS classes for the button. If provided, replaces the default classes.","fieldName":"buttonClasses","attribute":"buttonClasses"}],"cssStates":[{"description":"Applied briefly after a successful copy, targetable via :state(btu-copy-to-clipboard-copied)","name":"btu-copy-to-clipboard-copied"}],"mixins":[{"name":"ClipboardMixin","module":"/src/util/ClipboardMixin.js"},{"name":"ComponentStatesMixin","module":"/src/util/ComponentStatesMixin.js"},{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-copy-to-clipboard","customElement":true}],"exports":[{"kind":"js","name":"default","declaration":{"name":"CopyToClipboard","module":"src/components/copy-to-clipboard/CopyToClipboard.ts"}},{"kind":"custom-element-definition","name":"btu-copy-to-clipboard","declaration":{"name":"CopyToClipboard","module":"src/components/copy-to-clipboard/CopyToClipboard.ts"}}]},{"kind":"javascript-module","path":"src/components/empty-state/EmptyState.ts","declarations":[{"kind":"class","description":"An empty state component for displaying placeholder content when no data is available.\\n\\nSupports a graphic slot for icons/images/pictures/SVGs, a heading, a description,\\nand an actions slot for buttons or links. Available in three sizes (sm, md, lg)\\nwith semantic heading levels.\\n\\n## Architecture: Light DOM + Pseudo-Slots\\n\\nThis component uses **Light DOM** (no Shadow Root) with pseudo-slots:\\n- User-provided children are physically moved into internal containers\\n- Movement is based on \`slot\` attributes\\n- The \`onFind\` utility detects and redistributes newly-added children (one-time per element)\\n\\n### Node Redistribution Rules\\n- \`slot=\\"graphic\\"\` - Moved to graphic container (icon, image, picture, or SVG)\\n- \`slot=\\"actions\\"\` - Moved to an internal \`btu-button-group\` (variant=\\"spaced\\")\\n\\n### Actions composition\\n\\nThe actions container IS a \`btu-button-group\` with \`variant=\\"spaced\\"\`. Its \`size\`\\nis mapped from the empty-state \`size\` prop (sm→small, md→medium, lg→large) so all\\nchild \`btu-button\` / \`btu-icon-button\` elements get consistent sizing and group\\nsemantics (\`role=\\"group\\"\`, roving tabindex, disabled propagation) for free.","name":"EmptyState","cssProperties":[{"description":"Maximum width of the content block (default: min(75cqw, 360px))","name":"--empty-state-max-width"},{"description":"Heading text color (default: gray-900)","name":"--empty-state-color-heading"},{"description":"Description text color (default: gray-500)","name":"--empty-state-color-description"}],"slots":[{"description":"Pseudo-slot for icon, image, picture, or SVG graphic. When the child is a \`btu-icon\`, the component overrides its \`size\` attribute based on the empty-state \`size\` prop (sm→md, md→lg, lg→xl). Use an \`img\`, \`picture\`, or inline \`svg\` for full size control.","name":"graphic"},{"description":"Pseudo-slot for action buttons. Children are moved into an internal \`btu-button-group\` (variant=\\"spaced\\"), so size and disabled state are managed by the group.","name":"actions"}],"members":[{"kind":"field","name":"heading","type":{"text":"string"},"default":"''","description":"Heading text displayed in the empty state.","attribute":"heading"},{"kind":"field","name":"description","type":{"text":"string | undefined"},"description":"Description text displayed below the heading.","attribute":"description"},{"kind":"field","name":"size","type":{"text":"'sm' | 'md' | 'lg'"},"default":"'md'","description":"Size variant of the empty state. Affects spacing, description text, graphic size,\\nand — when \`heading-level\` is unset — the default heading level (sm→5, md→4, lg→3).","attribute":"size"},{"kind":"field","name":"headingLevel","type":{"text":"number | undefined"},"description":"Heading level (1-6). When set to a valid integer 1-6, overrides the size-based\\ndefault and drives both the semantic h1-h6 tag and the visual heading size\\n(btu-heading-1 through btu-heading-6). Invalid values log a warning and fall\\nback to the size-based default.","attribute":"heading-level"},{"kind":"field","name":"initialClasses","type":{"text":"string[]"},"privacy":"private","default":"[]"},{"kind":"method","name":"syncGraphicIconSize","privacy":"private","return":{"type":{"text":"void"}}},{"kind":"method","name":"resolveHeadingLevel","privacy":"private","return":{"type":{"text":"HeadingLevel"}}},{"kind":"method","name":"renderHeading","privacy":"private","return":{"type":{"text":"TemplateResult | string"}},"parameters":[{"name":"level","type":{"text":"HeadingLevel"}},{"name":"className","type":{"text":"string"}}]},{"kind":"method","name":"emit","parameters":[{"name":"type","type":{"text":"K"},"description":"Event name from CustomEventMap"},{"name":"detail","optional":true,"type":{"text":"UnpackCustomEvent<CustomEventMap[K]>"},"description":"Optional event detail payload"}],"description":"Dispatches a type-safe CustomEvent with standardized configuration.\\n\\nAll events are configured with:\\n- bubbles: true (event propagates up the DOM tree)\\n- cancelable: false (event cannot be cancelled)\\n- composed: true (event crosses shadow DOM boundaries)","return":{"type":{"text":"boolean"}},"inheritedFrom":{"name":"EventEmitterMixin","module":"src/util/EventEmitterMixin.ts"}}],"events":[{"type":{"text":"CustomEvent"},"description":"Fired after first render and initialization","name":"btu-empty-state-ready"},{"type":{"text":"CustomEvent"},"description":"Bubbles from the internal actions button-group","name":"btu-button-group-ready"}],"attributes":[{"name":"heading","type":{"text":"string"},"default":"''","description":"Heading text displayed in the empty state.","fieldName":"heading","attribute":"heading"},{"name":"description","type":{"text":"string | undefined"},"description":"Description text displayed below the heading.","fieldName":"description","attribute":"description"},{"name":"size","type":{"text":"'sm' | 'md' | 'lg'"},"default":"'md'","description":"Size variant of the empty state. Affects spacing, description text, graphic size,\\nand — when \`heading-level\` is unset — the default heading level (sm→5, md→4, lg→3).","fieldName":"size","attribute":"size"},{"name":"heading-level","type":{"text":"number | undefined"},"description":"Heading level (1-6). When set to a valid integer 1-6, overrides the size-based\\ndefault and drives both the semantic h1-h6 tag and the visual heading size\\n(btu-heading-1 through btu-heading-6). Invalid values log a warning and fall\\nback to the size-based default.","fieldName":"headingLevel","attribute":"heading-level"}],"mixins":[{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-empty-state","customElement":true}],"exports":[{"kind":"js","name":"default","declaration":{"name":"EmptyState","module":"src/components/empty-state/EmptyState.ts"}},{"kind":"custom-element-definition","name":"btu-empty-state","declaration":{"name":"EmptyState","module":"src/components/empty-state/EmptyState.ts"}}]},{"kind":"javascript-module","path":"src/components/icon/Icon.ts","declarations":[{"kind":"class","description":"An icon component for displaying Lucide icons.\\n\\nIcons inherit parent text color by default or can use gradient fills.\\nAll icons are from the Lucide icon library (https://lucide.dev/icons/).\\nSupports both direct SVG rendering and mask-based gradient fills.","name":"Icon","cssProperties":[{"description":"Icon size (overrides size default)","name":"--icon-size"},{"description":"SVG stroke width as a unitless number in viewBox units; scales visually with icon size (default: 2)","name":"--icon-stroke-width"},{"description":"Icon fill color for filled icons (e.g., \\"currentColor\\")","name":"--icon-fill"},{"description":"SVG data URI for mask-based rendering","name":"--icon-svg"}],"members":[{"kind":"field","name":"tagName","static":true,"readonly":true},{"kind":"field","name":"size","type":{"text":"'xs' | 'sm' | 'md' | 'lg' | 'xl'"},"default":"'md'","description":"Size of the icon.\\n- 'xs': Extra small (0.75rem)\\n- 'sm': Small (1rem)\\n- 'md': Medium (1.25rem, default)\\n- 'lg': Large (1.5rem)\\n- 'xl': Extra large (1.75rem)","attribute":"size"},{"kind":"field","name":"symbol","type":{"text":"string"},"default":"'circle-dashed'","description":"Lucide icon name to display.\\nSee https://lucide.dev/icons/ for available icons.","attribute":"symbol"},{"kind":"field","name":"gradient","type":{"text":"IconGradientColor | undefined"},"description":"Theme color to use for gradient fill.\\nWhen set, icon displays with gradient. When undefined, icon inherits parent text color.","attribute":"gradient"},{"kind":"field","name":"emphasize","type":{"text":"boolean | 'pulse' | undefined"},"description":"Emphasize mode — renders a tonal circle with ring behind the icon.\\nColors are derived from \`currentColor\` via oklch relative color syntax.\\nDefaults to primary; override with Tailwind \`text-*\` classes or \`style=\\"color: ...\\"\`.\\nSet as a boolean for the static circle, or \`\\"pulse\\"\` for a one-shot ring animation.\\nNot intended for use with \`gradient\` — the two features target\\nconflicting rendering modes.","attribute":"emphasize","reflects":true},{"kind":"method","name":"emit","parameters":[{"name":"type","type":{"text":"K"},"description":"Event name from CustomEventMap"},{"name":"detail","optional":true,"type":{"text":"UnpackCustomEvent<CustomEventMap[K]>"},"description":"Optional event detail payload"}],"description":"Dispatches a type-safe CustomEvent with standardized configuration.\\n\\nAll events are configured with:\\n- bubbles: true (event propagates up the DOM tree)\\n- cancelable: false (event cannot be cancelled)\\n- composed: true (event crosses shadow DOM boundaries)","return":{"type":{"text":"boolean"}},"inheritedFrom":{"name":"EventEmitterMixin","module":"src/util/EventEmitterMixin.ts"}}],"events":[{"type":{"text":"CustomEvent"},"description":"Fired after first render and initialization","name":"btu-icon-ready"}],"attributes":[{"name":"size","type":{"text":"'xs' | 'sm' | 'md' | 'lg' | 'xl'"},"default":"'md'","description":"Size of the icon.\\n- 'xs': Extra small (0.75rem)\\n- 'sm': Small (1rem)\\n- 'md': Medium (1.25rem, default)\\n- 'lg': Large (1.5rem)\\n- 'xl': Extra large (1.75rem)","fieldName":"size","attribute":"size"},{"name":"symbol","type":{"text":"string"},"default":"'circle-dashed'","description":"Lucide icon name to display.\\nSee https://lucide.dev/icons/ for available icons.","fieldName":"symbol","attribute":"symbol"},{"name":"gradient","type":{"text":"IconGradientColor | undefined"},"description":"Theme color to use for gradient fill.\\nWhen set, icon displays with gradient. When undefined, icon inherits parent text color.","fieldName":"gradient","attribute":"gradient"},{"name":"emphasize","type":{"text":"boolean | 'pulse' | undefined"},"description":"Emphasize mode — renders a tonal circle with ring behind the icon.\\nColors are derived from \`currentColor\` via oklch relative color syntax.\\nDefaults to primary; override with Tailwind \`text-*\` classes or \`style=\\"color: ...\\"\`.\\nSet as a boolean for the static circle, or \`\\"pulse\\"\` for a one-shot ring animation.\\nNot intended for use with \`gradient\` — the two features target\\nconflicting rendering modes.","fieldName":"emphasize","attribute":"emphasize"}],"mixins":[{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-icon","customElement":true}],"exports":[{"kind":"js","name":"default","declaration":{"name":"Icon","module":"src/components/icon/Icon.ts"}},{"kind":"custom-element-definition","name":"btu-icon","declaration":{"name":"Icon","module":"src/components/icon/Icon.ts"}}]},{"kind":"javascript-module","path":"src/components/icon-button/IconButton.ts","declarations":[{"kind":"class","description":"Surfaces the different actions someone can perform in an interface where space is limited.\\n\\nUses an icon to communicate the action and supports multiple visual types and sizes.\\nTooltip support is built-in for accessibility in compact layouts.","name":"IconButton","members":[{"kind":"field","name":"name","type":{"text":"string | undefined"},"description":"Optional name for the button which can be used to identify the button in a callback.","attribute":"name"},{"kind":"field","name":"type","type":{"text":"IconButtonType"},"default":"'primary'","description":"Specifies the type of icon-button, controlling the visual style.","attribute":"type"},{"kind":"field","name":"symbol","type":{"text":"string | undefined"},"description":"Lucide icon symbol.","attribute":"symbol"},{"kind":"field","name":"size","type":{"text":"IconButtonSize"},"default":"'md'","description":"Specifies the size of icon-button.","attribute":"size"},{"kind":"field","name":"destructive","type":{"text":"boolean"},"default":"false","description":"Specifies an icon-button will be used to take any destructive action overriding the\\ndefault color used for the icon-button type with the error color.","attribute":"destructive"},{"kind":"field","name":"disabled","type":{"text":"boolean"},"default":"false","description":"Disables the button, preventing interaction and indicating an inactive state.","attribute":"disabled"},{"kind":"method","name":"_relayTooltipAttrs","privacy":"private","return":{"type":{"text":"void"}}},{"kind":"method","name":"_handleClick","privacy":"private","return":{"type":{"text":"void"}}},{"kind":"method","name":"_buildButtonClasses","privacy":"private","return":{"type":{"text":"string"}}},{"kind":"field","name":"tooltip","type":{"text":"string"},"default":"''","description":"Tooltip text content. Set to empty string to remove the tooltip.","attribute":"tooltip","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"tooltipPosition","type":{"text":"'top' | 'bottom' | 'left' | 'right'"},"default":"'top'","description":"Position relative to the host element. Auto-flips when constrained by the viewport.","attribute":"tooltip-position","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"tooltipDelay","type":{"text":"number"},"default":"300","description":"Show delay in milliseconds (hover trigger only).","attribute":"tooltip-delay","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"tooltipOffset","type":{"text":"TooltipOffset | null"},"default":"null","description":"Gap between host and tooltip (sm=4px, md=8px, lg=12px, xl=16px).","attribute":"tooltip-offset","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"tooltipNoArrow","type":{"text":"boolean"},"default":"false","description":"Hide the arrow pseudo-element.","attribute":"tooltip-no-arrow","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"tooltipTrigger","type":{"text":"string"},"default":"'hover focus'","description":"Space-separated trigger types: 'hover', 'focus', 'click'.","attribute":"tooltip-trigger","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"_onMouseLeave","privacy":"private","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"_onFocusIn","privacy":"private","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"_onFocusOut","privacy":"private","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"_onClick","privacy":"private","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"_onNativeToggle","privacy":"private","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"_onKeyDown","privacy":"private","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"field","name":"_onDocumentClick","type":{"text":"((e: MouseEvent) => void) | null"},"privacy":"private","default":"null","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"kind":"method","name":"emit","parameters":[{"name":"type","type":{"text":"K"},"description":"Event name from CustomEventMap"},{"name":"detail","optional":true,"type":{"text":"UnpackCustomEvent<CustomEventMap[K]>"},"description":"Optional event detail payload"}],"description":"Dispatches a type-safe CustomEvent with standardized configuration.\\n\\nAll events are configured with:\\n- bubbles: true (event propagates up the DOM tree)\\n- cancelable: false (event cannot be cancelled)\\n- composed: true (event crosses shadow DOM boundaries)","return":{"type":{"text":"boolean"}},"inheritedFrom":{"name":"EventEmitterMixin","module":"src/util/EventEmitterMixin.ts"}}],"events":[{"type":{"text":"CustomEvent"},"description":"Fired after first render and initialization","name":"btu-icon-button-ready"},{"type":{"text":"CustomEvent<{name: string | undefined}>"},"description":"Fired when the button is clicked","name":"btu-icon-button-click"}],"attributes":[{"name":"name","type":{"text":"string | undefined"},"description":"Optional name for the button which can be used to identify the button in a callback.","fieldName":"name","attribute":"name"},{"name":"type","type":{"text":"IconButtonType"},"default":"'primary'","description":"Specifies the type of icon-button, controlling the visual style.","fieldName":"type","attribute":"type"},{"name":"symbol","type":{"text":"string | undefined"},"description":"Lucide icon symbol.","fieldName":"symbol","attribute":"symbol"},{"name":"size","type":{"text":"IconButtonSize"},"default":"'md'","description":"Specifies the size of icon-button.","fieldName":"size","attribute":"size"},{"name":"destructive","type":{"text":"boolean"},"default":"false","description":"Specifies an icon-button will be used to take any destructive action overriding the\\ndefault color used for the icon-button type with the error color.","fieldName":"destructive","attribute":"destructive"},{"name":"disabled","type":{"text":"boolean"},"default":"false","description":"Disables the button, preventing interaction and indicating an inactive state.","fieldName":"disabled","attribute":"disabled"},{"name":"tooltip","type":{"text":"string"},"default":"''","description":"Tooltip text content. Set to empty string to remove the tooltip.","fieldName":"tooltip","attribute":"tooltip","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"name":"tooltipPosition","type":{"text":"'top' | 'bottom' | 'left' | 'right'"},"default":"'top'","description":"Position relative to the host element. Auto-flips when constrained by the viewport.","fieldName":"tooltipPosition","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"name":"tooltipDelay","type":{"text":"number"},"default":"300","description":"Show delay in milliseconds (hover trigger only).","fieldName":"tooltipDelay","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"name":"tooltipOffset","type":{"text":"TooltipOffset | null"},"default":"null","description":"Gap between host and tooltip (sm=4px, md=8px, lg=12px, xl=16px).","fieldName":"tooltipOffset","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"name":"tooltipNoArrow","type":{"text":"boolean"},"default":"false","description":"Hide the arrow pseudo-element.","fieldName":"tooltipNoArrow","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"name":"tooltipTrigger","type":{"text":"string"},"default":"'hover focus'","description":"Space-separated trigger types: 'hover', 'focus', 'click'.","fieldName":"tooltipTrigger","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"name":"tooltip-position","type":{"text":"'top' | 'bottom' | 'left' | 'right'"},"default":"'top'","description":"Position relative to the host element. Auto-flips when constrained by the viewport.","attribute":"tooltipPosition","fieldName":"tooltipPosition","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"name":"tooltip-delay","type":{"text":"number"},"default":"300","description":"Show delay in milliseconds (hover trigger only).","attribute":"tooltipDelay","fieldName":"tooltipDelay","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"name":"tooltip-offset","type":{"text":"TooltipOffset | null"},"default":"null","description":"Gap between host and tooltip (sm=4px, md=8px, lg=12px, xl=16px).","attribute":"tooltipOffset","fieldName":"tooltipOffset","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"name":"tooltip-no-arrow","type":{"text":"boolean"},"default":"false","description":"Hide the arrow pseudo-element.","attribute":"tooltipNoArrow","fieldName":"tooltipNoArrow","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}},{"name":"tooltip-trigger","type":{"text":"string"},"default":"'hover focus'","description":"Space-separated trigger types: 'hover', 'focus', 'click'.","attribute":"tooltipTrigger","fieldName":"tooltipTrigger","inheritedFrom":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}}],"mixins":[{"name":"TooltipMixin","module":"/src/util/TooltipMixin.js"},{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-icon-button","customElement":true}],"exports":[{"kind":"js","name":"default","declaration":{"name":"IconButton","module":"src/components/icon-button/IconButton.ts"}},{"kind":"custom-element-definition","name":"btu-icon-button","declaration":{"name":"IconButton","module":"src/components/icon-button/IconButton.ts"}}]},{"kind":"javascript-module","path":"src/components/linear-progress/LinearProgress.ts","declarations":[{"kind":"class","description":"A horizontal linear progress bar for showing task completion.","name":"LinearProgress","cssProperties":[{"description":"Custom progress bar color (overrides theme color)","name":"--progress-color"},{"description":"Track/background color (overrides default gray-100)","name":"--track-color"}],"members":[{"kind":"field","name":"color","type":{"text":"ProgressColors"},"default":"'primary'","description":"Color theme of the progress indicator.\\nSupports: black, white, primary, teal, gray, purple, rose, error, warning, success","attribute":"color","inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}},{"kind":"field","name":"thickness","type":{"text":"number | undefined"},"description":"Stroke width of the progress indicator.","attribute":"thickness","inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}},{"kind":"field","name":"_progress","type":{"text":"number"},"privacy":"private","default":"0","inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}},{"kind":"field","name":"progress","description":"Progress value for determinate variant. Clamped to 0–100.","attribute":"progress","inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}},{"kind":"field","name":"label","type":{"text":"string | undefined"},"description":"Optional label text to display with the progress indicator.","attribute":"label","inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}},{"kind":"field","name":"initialAnimation","type":{"text":"boolean"},"default":"true","description":"Whether to animate progress from 0 to target value when component first becomes visible.","attribute":"initial-animation","inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}},{"kind":"field","name":"ariaLabel","type":{"text":"string | null"},"default":"null","description":"Optional aria-label attribute for screen readers.\\nDescribes what the progress indicator represents.","attribute":"aria-label","inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}},{"kind":"field","name":"ariaLabelledBy","type":{"text":"string | null"},"default":"null","description":"Optional aria-labelledby attribute for screen readers.\\nReferences the ID of an element that labels the progress indicator.","attribute":"aria-labelledby","inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}},{"kind":"field","name":"ariaValueText","type":{"text":"string | null"},"default":"null","description":"Optional aria-valuetext attribute for screen readers.\\nProvides human-readable text alternative for progress value.","attribute":"aria-valuetext","inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}},{"kind":"field","name":"completionAnnouncement","type":{"text":"string | undefined"},"description":"Optional message to announce to screen readers when progress reaches 100%.\\nIf not provided, no announcement will be made on completion.","attribute":"completion-announcement","inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}},{"kind":"field","name":"_isAnimationInitialized","type":{"text":"boolean"},"privacy":"private","default":"false","inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}},{"kind":"field","name":"_intersectionObserver","type":{"text":"IntersectionObserver | undefined"},"privacy":"private","inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}},{"kind":"field","name":"_hasCompletedAt100","type":{"text":"boolean"},"privacy":"private","default":"false","inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}},{"kind":"field","name":"_hostTag","type":{"text":"'btu-linear-progress' | 'btu-circular-progress'"},"privacy":"private","readonly":true,"inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}},{"kind":"method","name":"emit","parameters":[{"name":"type","type":{"text":"K"},"description":"Event name from CustomEventMap"},{"name":"detail","optional":true,"type":{"text":"UnpackCustomEvent<CustomEventMap[K]>"},"description":"Optional event detail payload"}],"description":"Dispatches a type-safe CustomEvent with standardized configuration.\\n\\nAll events are configured with:\\n- bubbles: true (event propagates up the DOM tree)\\n- cancelable: false (event cannot be cancelled)\\n- composed: true (event crosses shadow DOM boundaries)","return":{"type":{"text":"boolean"}},"inheritedFrom":{"name":"EventEmitterMixin","module":"src/util/EventEmitterMixin.ts"}}],"events":[{"type":{"text":"CustomEvent"},"description":"Fired after first render and initialization","name":"btu-linear-progress-ready"},{"type":{"text":"CustomEvent"},"description":"Fired when progress reaches 100","name":"btu-linear-progress-complete"}],"mixins":[{"name":"ProgressMixin","module":"/src/util/ProgressMixin.js"},{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-linear-progress","customElement":true,"attributes":[{"name":"color","type":{"text":"ProgressColors"},"default":"'primary'","description":"Color theme of the progress indicator.\\nSupports: black, white, primary, teal, gray, purple, rose, error, warning, success","fieldName":"color","attribute":"color","inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}},{"name":"thickness","type":{"text":"number | undefined"},"description":"Stroke width of the progress indicator.","fieldName":"thickness","attribute":"thickness","inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}},{"name":"progress","description":"Progress value for determinate variant. Clamped to 0–100.","fieldName":"progress","attribute":"progress","inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}},{"name":"label","type":{"text":"string | undefined"},"description":"Optional label text to display with the progress indicator.","fieldName":"label","attribute":"label","inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}},{"name":"initial-animation","type":{"text":"boolean"},"default":"true","description":"Whether to animate progress from 0 to target value when component first becomes visible.","fieldName":"initialAnimation","attribute":"initial-animation","inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}},{"name":"aria-label","type":{"text":"string | null"},"default":"null","description":"Optional aria-label attribute for screen readers.\\nDescribes what the progress indicator represents.","fieldName":"ariaLabel","attribute":"aria-label","inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}},{"name":"aria-labelledby","type":{"text":"string | null"},"default":"null","description":"Optional aria-labelledby attribute for screen readers.\\nReferences the ID of an element that labels the progress indicator.","fieldName":"ariaLabelledBy","attribute":"aria-labelledby","inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}},{"name":"aria-valuetext","type":{"text":"string | null"},"default":"null","description":"Optional aria-valuetext attribute for screen readers.\\nProvides human-readable text alternative for progress value.","fieldName":"ariaValueText","attribute":"aria-valuetext","inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}},{"name":"completion-announcement","type":{"text":"string | undefined"},"description":"Optional message to announce to screen readers when progress reaches 100%.\\nIf not provided, no announcement will be made on completion.","fieldName":"completionAnnouncement","attribute":"completion-announcement","inheritedFrom":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}}]}],"exports":[{"kind":"js","name":"default","declaration":{"name":"LinearProgress","module":"src/components/linear-progress/LinearProgress.ts"}},{"kind":"custom-element-definition","name":"btu-linear-progress","declaration":{"name":"LinearProgress","module":"src/components/linear-progress/LinearProgress.ts"}}]},{"kind":"javascript-module","path":"src/components/pagination/Pagination.ts","declarations":[{"kind":"class","description":"A pagination component for navigating through paged content.\\n\\nSupports multiple layout variants (Search, Widget, Widget Small, Calendar)\\nthrough configurable props and pseudo-slots.\\n\\n**Page size modes:**\\n\\n- **Built-in** (default): When no \`slot=\\"page-size\\"\` is provided and \`page-size-changer\`\\n is true, Pagination renders its own \`btu-dropdown\` from the \`page-size-options\` attribute.\\n Events, label sync, and page size changes are managed automatically.\\n\\n- **Custom slot**: When a child has \`slot=\\"page-size\\"\`, the built-in dropdown is suppressed.\\n The consumer owns all behavior — event handling, label sync, etc. Use this for non-standard\\n selectors like a calendar week/month toggle.\\n\\n**Page jumper modes:**\\n\\n- **Built-in**: When \`page-jumper\` is true and no \`slot=\\"jumper\\"\` is provided, Pagination\\n renders a dropdown with \\"Page 1\\" through \\"Page N\\" items. Fully reactive — updates\\n automatically when page, page size, or total items change.\\n\\n- **Custom slot**: When a child has \`slot=\\"jumper\\"\`, the built-in dropdown is suppressed.\\n The consumer owns all behavior. Use this for custom jumper content like a \\"Today\\" button.","name":"Pagination","cssProperties":[{"description":"Background color for dropdowns, buttons, and jumper","name":"--pagination-color-background"},{"description":"Text/icon color","name":"--pagination-color-foreground"}],"slots":[{"description":"Custom page-size selector (replaces built-in dropdown). Consumer manages all behavior.","name":"page-size"},{"description":"Custom jumper content (replaces built-in page jumper dropdown). Consumer manages all behavior.","name":"jumper"}],"members":[{"kind":"field","name":"page","type":{"text":"number"},"default":"1","description":"Current page number (1-based)","attribute":"page"},{"kind":"field","name":"pageSize","type":{"text":"number"},"default":"0","description":"Number of items per page","attribute":"page-size"},{"kind":"field","name":"disabled","type":{"text":"boolean"},"default":"false","description":"Disables all pagination controls","attribute":"disabled"},{"kind":"field","name":"loading","type":{"text":"boolean"},"default":"false","description":"Shows loading spinner and dims controls","attribute":"loading"},{"kind":"field","name":"hideOnSinglePage","type":{"text":"boolean"},"default":"true","description":"Hide controls when there is only one page","attribute":"hide-on-single-page"},{"kind":"field","name":"pageSizeChanger","type":{"text":"boolean"},"default":"true","description":"Show the page size dropdown","attribute":"page-size-changer"},{"kind":"field","name":"pageSizeOptions","type":{"text":"string"},"default":"'10, 20, 50'","description":"Comma-separated page size options","attribute":"page-size-options"},{"kind":"field","name":"totalItems","type":{"text":"number"},"default":"0","description":"Total number of items across all pages","attribute":"total-items"},{"kind":"field","name":"boundaryButtons","type":{"text":"boolean"},"default":"true","description":"Show first and last page buttons","attribute":"boundary-buttons"},{"kind":"field","name":"hideTotalCount","type":{"text":"boolean"},"default":"false","description":"Hide the item count display (e.g., \\"1-10 of 200\\")","attribute":"hide-total-count"},{"kind":"field","name":"pageJumper","type":{"text":"boolean"},"default":"false","description":"Show the page jumper dropdown. Intended for moderate page counts (under ~100 pages).\\nFor large datasets, use a custom \`slot=\\"jumper\\"\` with a virtualized or input-based control.","attribute":"page-jumper"},{"kind":"field","name":"label","type":{"text":"string | undefined"},"description":"Accessible label for the pagination nav landmark","attribute":"label"},{"kind":"field","name":"_parsedPageSizeOptions","type":{"text":"number[]"},"privacy":"private","readonly":true},{"kind":"field","name":"_totalPages","type":{"text":"number"},"privacy":"private","readonly":true},{"kind":"field","name":"_startItem","type":{"text":"number"},"privacy":"private","readonly":true},{"kind":"field","name":"_endItem","type":{"text":"number"},"privacy":"private","readonly":true},{"kind":"method","name":"_setupSlots","privacy":"private","return":{"type":{"text":"void"}}},{"kind":"method","name":"_goToFirstPage","privacy":"private","return":{"type":{"text":"void"}},"parameters":[{"name":"e","type":{"text":"Event"}}]},{"kind":"method","name":"_goToPreviousPage","privacy":"private","return":{"type":{"text":"void"}},"parameters":[{"name":"e","type":{"text":"Event"}}]},{"kind":"method","name":"_goToNextPage","privacy":"private","return":{"type":{"text":"void"}},"parameters":[{"name":"e","type":{"text":"Event"}}]},{"kind":"method","name":"_goToLastPage","privacy":"private","return":{"type":{"text":"void"}},"parameters":[{"name":"e","type":{"text":"Event"}}]},{"kind":"method","name":"_manageBoundaryFocus","privacy":"private","return":{"type":{"text":"void"}},"parameters":[{"name":"clickedButton","type":{"text":"IconButton"}}]},{"kind":"method","name":"_onBuiltinPageSizeSelect","privacy":"private","return":{"type":{"text":"void"}},"parameters":[{"name":"e","type":{"text":"Event"}}]},{"kind":"method","name":"_onBuiltinJumperSelect","privacy":"private","return":{"type":{"text":"void"}},"parameters":[{"name":"e","type":{"text":"Event"}}]},{"kind":"method","name":"emit","parameters":[{"name":"type","type":{"text":"K"},"description":"Event name from CustomEventMap"},{"name":"detail","optional":true,"type":{"text":"UnpackCustomEvent<CustomEventMap[K]>"},"description":"Optional event detail payload"}],"description":"Dispatches a type-safe CustomEvent with standardized configuration.\\n\\nAll events are configured with:\\n- bubbles: true (event propagates up the DOM tree)\\n- cancelable: false (event cannot be cancelled)\\n- composed: true (event crosses shadow DOM boundaries)","return":{"type":{"text":"boolean"}},"inheritedFrom":{"name":"EventEmitterMixin","module":"src/util/EventEmitterMixin.ts"}}],"events":[{"type":{"text":"CustomEvent"},"description":"Fired after first render","name":"btu-pagination-ready"},{"type":{"text":"CustomEvent<{page: number, pageSize: number}>"},"description":"Fired on page navigation","name":"btu-pagination-change"},{"type":{"text":"CustomEvent<{page: number, pageSize: number}>"},"description":"Fired on page size change","name":"btu-pagination-page-size-change"}],"attributes":[{"name":"page","type":{"text":"number"},"default":"1","description":"Current page number (1-based)","fieldName":"page","attribute":"page"},{"name":"page-size","type":{"text":"number"},"default":"0","description":"Number of items per page","fieldName":"pageSize","attribute":"page-size"},{"name":"disabled","type":{"text":"boolean"},"default":"false","description":"Disables all pagination controls","fieldName":"disabled","attribute":"disabled"},{"name":"loading","type":{"text":"boolean"},"default":"false","description":"Shows loading spinner and dims controls","fieldName":"loading","attribute":"loading"},{"name":"hide-on-single-page","type":{"text":"boolean"},"default":"true","description":"Hide controls when there is only one page","fieldName":"hideOnSinglePage","attribute":"hide-on-single-page"},{"name":"page-size-changer","type":{"text":"boolean"},"default":"true","description":"Show the page size dropdown","fieldName":"pageSizeChanger","attribute":"page-size-changer"},{"name":"page-size-options","type":{"text":"string"},"default":"'10, 20, 50'","description":"Comma-separated page size options","fieldName":"pageSizeOptions","attribute":"page-size-options"},{"name":"total-items","type":{"text":"number"},"default":"0","description":"Total number of items across all pages","fieldName":"totalItems","attribute":"total-items"},{"name":"boundary-buttons","type":{"text":"boolean"},"default":"true","description":"Show first and last page buttons","fieldName":"boundaryButtons","attribute":"boundary-buttons"},{"name":"hide-total-count","type":{"text":"boolean"},"default":"false","description":"Hide the item count display (e.g., \\"1-10 of 200\\")","fieldName":"hideTotalCount","attribute":"hide-total-count"},{"name":"page-jumper","type":{"text":"boolean"},"default":"false","description":"Show the page jumper dropdown. Intended for moderate page counts (under ~100 pages).\\nFor large datasets, use a custom \`slot=\\"jumper\\"\` with a virtualized or input-based control.","fieldName":"pageJumper","attribute":"page-jumper"},{"name":"label","type":{"text":"string | undefined"},"description":"Accessible label for the pagination nav landmark","fieldName":"label","attribute":"label"}],"mixins":[{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-pagination","customElement":true}],"exports":[{"kind":"js","name":"default","declaration":{"name":"Pagination","module":"src/components/pagination/Pagination.ts"}},{"kind":"custom-element-definition","name":"btu-pagination","declaration":{"name":"Pagination","module":"src/components/pagination/Pagination.ts"}}]},{"kind":"javascript-module","path":"src/components/popover/Popover.ts","declarations":[{"kind":"class","description":"A popover component for displaying rich interactive content anchored to a trigger element.\\n\\nUses the native HTML Popover API for top-layer rendering, light dismiss (click-outside\\nand Escape for click triggers), and focus management. CSS anchor positioning handles\\nviewport-aware placement.\\n\\nFor click triggers (\`popover=\\"auto\\"\`), the browser provides:\\n- Light dismiss (Escape key and click-outside)\\n- Top-layer rendering (no z-index needed)\\n- Focus restoration on close\\n- \`autofocus\` support — add \`autofocus\` to an element inside \`slot=\\"content\\"\`\\n to have it receive focus when the popover opens","name":"Popover","cssProperties":[{"description":"Panel background color (default: var(--btu-theme-white))","name":"--popover-color-background"},{"description":"Panel text color (default: oklch(var(--btu-theme-gray-900)))","name":"--popover-color-content"},{"description":"Panel corner radius (default: theme borderRadius.lg)","name":"--popover-border-radius"},{"description":"Gap between trigger and panel (default: 8px; see btu-popover-offset-{sm|md|lg|xl})","name":"--popover-offset"},{"description":"Width/height of the pointer arrow (default: 8px)","name":"--popover-arrow-size"}],"slots":[{"description":"The element that activates the popover","name":"trigger"},{"description":"Rich HTML content displayed inside the popover panel","name":"content"}],"members":[{"kind":"field","name":"position","type":{"text":"'top' | 'bottom' | 'left' | 'right'"},"default":"'bottom'","description":"Position relative to the trigger element.\\nAuto-flips when constrained by the viewport.","attribute":"position"},{"kind":"field","name":"trigger","type":{"text":"'click' | 'hover' | 'focus'"},"default":"'click'","description":"How the popover is activated.\\n- 'click': Toggle on click with light dismiss\\n- 'hover': Show on mouseenter with delay\\n- 'focus': Show on focusin","attribute":"trigger"},{"kind":"field","name":"delay","type":{"text":"number"},"default":"300","description":"Show delay in milliseconds (hover trigger only).","attribute":"delay"},{"kind":"field","name":"offset","type":{"text":"PopoverOffset | null"},"default":"null","description":"Gap between trigger and popover (sm=4px, md=8px, lg=12px, xl=16px).","attribute":"offset"},{"kind":"field","name":"noArrow","type":{"text":"boolean"},"default":"false","description":"Hide the arrow pseudo-element.","attribute":"no-arrow"},{"kind":"field","name":"open","type":{"text":"boolean"},"default":"false","description":"Programmatic open/close state (reflected).","attribute":"open","reflects":true},{"kind":"field","name":"panelLabel","type":{"text":"string"},"default":"''","description":"Accessible label for the popover panel (applied as aria-label on the dialog).","attribute":"panel-label"},{"kind":"field","name":"_onTriggerMouseLeave","privacy":"private"},{"kind":"field","name":"_onTriggerFocusIn","privacy":"private"},{"kind":"field","name":"_onTriggerFocusOut","privacy":"private"},{"kind":"field","name":"_onPanelMouseEnter","privacy":"private"},{"kind":"field","name":"_onPanelMouseLeave","privacy":"private"},{"kind":"field","name":"_onNativeToggle","privacy":"private"},{"kind":"field","name":"_onKeyDown","privacy":"private"},{"kind":"method","name":"emit","parameters":[{"name":"type","type":{"text":"K"},"description":"Event name from CustomEventMap"},{"name":"detail","optional":true,"type":{"text":"UnpackCustomEvent<CustomEventMap[K]>"},"description":"Optional event detail payload"}],"description":"Dispatches a type-safe CustomEvent with standardized configuration.\\n\\nAll events are configured with:\\n- bubbles: true (event propagates up the DOM tree)\\n- cancelable: false (event cannot be cancelled)\\n- composed: true (event crosses shadow DOM boundaries)","return":{"type":{"text":"boolean"}},"inheritedFrom":{"name":"EventEmitterMixin","module":"src/util/EventEmitterMixin.ts"}}],"events":[{"type":{"text":"CustomEvent"},"description":"Fired when the popover opens","name":"btu-popover-show"},{"type":{"text":"CustomEvent"},"description":"Fired when the popover closes","name":"btu-popover-hide"}],"attributes":[{"name":"position","type":{"text":"'top' | 'bottom' | 'left' | 'right'"},"default":"'bottom'","description":"Position relative to the trigger element.\\nAuto-flips when constrained by the viewport.","fieldName":"position","attribute":"position"},{"name":"trigger","type":{"text":"'click' | 'hover' | 'focus'"},"default":"'click'","description":"How the popover is activated.\\n- 'click': Toggle on click with light dismiss\\n- 'hover': Show on mouseenter with delay\\n- 'focus': Show on focusin","fieldName":"trigger","attribute":"trigger"},{"name":"delay","type":{"text":"number"},"default":"300","description":"Show delay in milliseconds (hover trigger only).","fieldName":"delay","attribute":"delay"},{"name":"offset","type":{"text":"PopoverOffset | null"},"default":"null","description":"Gap between trigger and popover (sm=4px, md=8px, lg=12px, xl=16px).","fieldName":"offset","attribute":"offset"},{"name":"noArrow","type":{"text":"boolean"},"default":"false","description":"Hide the arrow pseudo-element.","fieldName":"noArrow"},{"name":"open","type":{"text":"boolean"},"default":"false","description":"Programmatic open/close state (reflected).","fieldName":"open","attribute":"open"},{"name":"panel-label","type":{"text":"string"},"default":"''","description":"Accessible label for the popover panel (applied as aria-label on the dialog).","fieldName":"panelLabel","attribute":"panel-label"},{"name":"no-arrow","type":{"text":"boolean"},"default":"false","description":"Hide the arrow pseudo-element.","attribute":"noArrow","fieldName":"noArrow"}],"mixins":[{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-popover","customElement":true}],"exports":[{"kind":"js","name":"default","declaration":{"name":"Popover","module":"src/components/popover/Popover.ts"}},{"kind":"custom-element-definition","name":"btu-popover","declaration":{"name":"Popover","module":"src/components/popover/Popover.ts"}}]},{"kind":"javascript-module","path":"src/components/switch/Switch.ts","declarations":[{"kind":"class","description":"A toggle switch component for binary on/off states.\\n\\nUses a hidden checkbox internally for accessibility, styled via the\\n\`btu-switch\` Tailwind plugin classes.","name":"Switch","cssProperties":[{"description":"Background color when the toggle is checked (default: var(--btu-theme-primary-700))","name":"--switch-color-track-on"},{"description":"Background color when the toggle is unchecked (default: var(--btu-theme-gray-300))","name":"--switch-color-track-off"},{"description":"Color of the sliding circular handle (default: var(--btu-theme-white))","name":"--switch-color-knob"},{"description":"Distance between the switch and the text label (default: 0.75rem)","name":"--switch-label-spacing"},{"description":"Track width (default: sm 1.75rem, md 2.25rem, lg 2.75rem)","name":"--switch-track-width"},{"description":"Track height (default: sm 1rem, md 1.25rem, lg 1.5rem)","name":"--switch-track-height"},{"description":"Knob diameter (default: sm 0.75rem, md 1rem, lg 1.25rem)","name":"--switch-knob-size"},{"description":"Space between knob and track edges (default: 0.125rem)","name":"--switch-knob-padding"},{"description":"Size of the track icons (default: sm 0.5rem, md 0.625rem, lg 0.75rem)","name":"--switch-track-icon-size"}],"members":[{"kind":"field","name":"size","type":{"text":"'sm' | 'md' | 'lg'"},"default":"'sm'","description":"Controls the physical dimensions of the switch and the associated label typography.","attribute":"size"},{"kind":"field","name":"label","type":{"text":"string | undefined"},"description":"The primary text displayed next to the toggle.","attribute":"label"},{"kind":"field","name":"description","type":{"text":"string | undefined"},"description":"Optional helper text or secondary information displayed below the label.","attribute":"description"},{"kind":"field","name":"checked","type":{"text":"boolean"},"default":"false","description":"The current state of the switch (on/off).","attribute":"checked"},{"kind":"field","name":"disabled","type":{"text":"boolean"},"default":"false","description":"If true, the toggle is non-interactive and visually muted.","attribute":"disabled"},{"kind":"field","name":"name","type":{"text":"string | undefined"},"description":"Name of the control for form participation.","attribute":"name"},{"kind":"field","name":"labelPosition","type":{"text":"'start' | 'end'"},"default":"'end'","description":"Determines if the label appears to the left or right of the switch.","attribute":"label-position"},{"kind":"field","name":"onIcon","type":{"text":"string | undefined"},"description":"Lucide icon name shown on the track when the switch is checked (on).","attribute":"on-icon"},{"kind":"field","name":"offIcon","type":{"text":"string | undefined"},"description":"Lucide icon name shown on the track when the switch is unchecked (off).","attribute":"off-icon"},{"kind":"method","name":"_onInputChange","privacy":"private","return":{"type":{"text":"void"}},"parameters":[{"name":"e","type":{"text":"Event"}}]},{"kind":"method","name":"_onFocus","privacy":"private","return":{"type":{"text":"void"}}},{"kind":"method","name":"_toggleInput","privacy":"private","return":{"type":{"text":"void"}}},{"kind":"method","name":"emit","parameters":[{"name":"type","type":{"text":"K"},"description":"Event name from CustomEventMap"},{"name":"detail","optional":true,"type":{"text":"UnpackCustomEvent<CustomEventMap[K]>"},"description":"Optional event detail payload"}],"description":"Dispatches a type-safe CustomEvent with standardized configuration.\\n\\nAll events are configured with:\\n- bubbles: true (event propagates up the DOM tree)\\n- cancelable: false (event cannot be cancelled)\\n- composed: true (event crosses shadow DOM boundaries)","return":{"type":{"text":"boolean"}},"inheritedFrom":{"name":"EventEmitterMixin","module":"src/util/EventEmitterMixin.ts"}}],"events":[{"type":{"text":"CustomEvent"},"description":"Fired after the toggle is first rendered and initialized","name":"btu-switch-ready"},{"type":{"text":"CustomEvent<{ checked: boolean }>"},"description":"Fired when the user toggles the switch","name":"btu-switch-change"},{"type":{"text":"CustomEvent"},"description":"Fired when the component gains focus","name":"btu-switch-focus"}],"attributes":[{"name":"size","type":{"text":"'sm' | 'md' | 'lg'"},"default":"'sm'","description":"Controls the physical dimensions of the switch and the associated label typography.","fieldName":"size","attribute":"size"},{"name":"label","type":{"text":"string | undefined"},"description":"The primary text displayed next to the toggle.","fieldName":"label","attribute":"label"},{"name":"description","type":{"text":"string | undefined"},"description":"Optional helper text or secondary information displayed below the label.","fieldName":"description","attribute":"description"},{"name":"checked","type":{"text":"boolean"},"default":"false","description":"The current state of the switch (on/off).","fieldName":"checked","attribute":"checked"},{"name":"disabled","type":{"text":"boolean"},"default":"false","description":"If true, the toggle is non-interactive and visually muted.","fieldName":"disabled","attribute":"disabled"},{"name":"name","type":{"text":"string | undefined"},"description":"Name of the control for form participation.","fieldName":"name","attribute":"name"},{"name":"label-position","type":{"text":"'start' | 'end'"},"default":"'end'","description":"Determines if the label appears to the left or right of the switch.","fieldName":"labelPosition","attribute":"label-position"},{"name":"on-icon","type":{"text":"string | undefined"},"description":"Lucide icon name shown on the track when the switch is checked (on).","fieldName":"onIcon","attribute":"on-icon"},{"name":"off-icon","type":{"text":"string | undefined"},"description":"Lucide icon name shown on the track when the switch is unchecked (off).","fieldName":"offIcon","attribute":"off-icon"}],"mixins":[{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-switch","customElement":true}],"exports":[{"kind":"js","name":"default","declaration":{"name":"Switch","module":"src/components/switch/Switch.ts"}},{"kind":"custom-element-definition","name":"btu-switch","declaration":{"name":"Switch","module":"src/components/switch/Switch.ts"}}]},{"kind":"javascript-module","path":"src/components/tabs/Tab.ts","declarations":[{"kind":"class","description":"An individual tab within a tab group.\\n\\nRenders a button with role=\\"tab\\" that participates in keyboard navigation\\nand selection state managed by the parent \`btu-tabs\` container.","name":"Tab","cssProperties":[{"description":"Background color of the count indicator badge (default: gray-50)","name":"--badge-color-background"},{"description":"Text color of the count indicator badge (default: gray-700)","name":"--badge-color-foreground"}],"members":[{"kind":"field","name":"tagName","static":true,"readonly":true},{"kind":"field","name":"name","type":{"text":"string | undefined"},"description":"Value that identifies this tab and links it to panel elements that share the same \`name\` attribute.","attribute":"name","reflects":true},{"kind":"field","name":"label","type":{"text":"string | undefined"},"description":"Text displayed in the tab.","attribute":"label"},{"kind":"field","name":"description","type":{"text":"string | undefined"},"description":"Accessibility description for screen readers.","attribute":"description"},{"kind":"field","name":"disabled","type":{"text":"boolean"},"default":"false","description":"Whether the tab is disabled and non-interactive.","attribute":"disabled","reflects":true},{"kind":"field","name":"symbol","type":{"text":"string | undefined"},"description":"Lucide icon symbol to display.","attribute":"symbol"},{"kind":"field","name":"iconPosition","type":{"text":"'leading' | 'trailing'"},"default":"'leading'","description":"Placement of the icon relative to the label.","attribute":"icon-position"},{"kind":"field","name":"iconOnly","type":{"text":"boolean"},"default":"false","description":"When true, hides the label visually while maintaining accessibility.","attribute":"icon-only"},{"kind":"field","name":"error","type":{"text":"boolean"},"default":"false","description":"When true, displays an error badge on the tab.","attribute":"error"},{"kind":"field","name":"badge","type":{"text":"string | undefined"},"description":"Displays a badge with the given value alongside the label.","attribute":"badge"},{"kind":"method","name":"emit","parameters":[{"name":"type","type":{"text":"K"},"description":"Event name from CustomEventMap"},{"name":"detail","optional":true,"type":{"text":"UnpackCustomEvent<CustomEventMap[K]>"},"description":"Optional event detail payload"}],"description":"Dispatches a type-safe CustomEvent with standardized configuration.\\n\\nAll events are configured with:\\n- bubbles: true (event propagates up the DOM tree)\\n- cancelable: false (event cannot be cancelled)\\n- composed: true (event crosses shadow DOM boundaries)","return":{"type":{"text":"boolean"}},"inheritedFrom":{"name":"EventEmitterMixin","module":"src/util/EventEmitterMixin.ts"}}],"events":[{"type":{"text":"CustomEvent"},"description":"Fired after first render","name":"btu-tab-ready"},{"type":{"text":"CustomEvent<{name: string}>"},"description":"Fired when a non-disabled tab with a name is clicked","name":"btu-tab-change"}],"attributes":[{"name":"name","type":{"text":"string | undefined"},"description":"Value that identifies this tab and links it to panel elements that share the same \`name\` attribute.","fieldName":"name","attribute":"name"},{"name":"label","type":{"text":"string | undefined"},"description":"Text displayed in the tab.","fieldName":"label","attribute":"label"},{"name":"description","type":{"text":"string | undefined"},"description":"Accessibility description for screen readers.","fieldName":"description","attribute":"description"},{"name":"disabled","type":{"text":"boolean"},"default":"false","description":"Whether the tab is disabled and non-interactive.","fieldName":"disabled","attribute":"disabled"},{"name":"symbol","type":{"text":"string | undefined"},"description":"Lucide icon symbol to display.","fieldName":"symbol","attribute":"symbol"},{"name":"icon-position","type":{"text":"'leading' | 'trailing'"},"default":"'leading'","description":"Placement of the icon relative to the label.","fieldName":"iconPosition","attribute":"icon-position"},{"name":"icon-only","type":{"text":"boolean"},"default":"false","description":"When true, hides the label visually while maintaining accessibility.","fieldName":"iconOnly","attribute":"icon-only"},{"name":"error","type":{"text":"boolean"},"default":"false","description":"When true, displays an error badge on the tab.","fieldName":"error","attribute":"error"},{"name":"badge","type":{"text":"string | undefined"},"description":"Displays a badge with the given value alongside the label.","fieldName":"badge","attribute":"badge"}],"mixins":[{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-tab","customElement":true}],"exports":[{"kind":"js","name":"default","declaration":{"name":"Tab","module":"src/components/tabs/Tab.ts"}},{"kind":"custom-element-definition","name":"btu-tab","declaration":{"name":"Tab","module":"src/components/tabs/Tab.ts"}}]},{"kind":"javascript-module","path":"src/components/tabs/Tabs.ts","declarations":[{"kind":"class","description":"A container component for managing a group of tabs.\\n\\nProvides selection state management, size propagation to child tabs,\\nand keyboard navigation following the WAI-ARIA Tabs pattern.\\n\\nWhen a tab becomes active, direct sibling elements that share the same\\n\`name\` value are shown; other siblings with a \`name\` attribute are\\nhidden. Only direct siblings are managed — nested tab groups control their\\nown panels independently.","name":"Tabs","cssProperties":[{"description":"Text and icon color of the active tab (default: gray-700)","name":"--tabs-active-color"},{"description":"Color of the active tab underline indicator (default: primary-500 → primary-700 → primary-900 gradient)","name":"--tabs-active-indicator-color"},{"description":"Color of the bottom border divider (default: gray-200)","name":"--tabs-border-color"},{"description":"Text and icon color for all tabs (default: gray-500; active/hover tabs use gray-700)","name":"--tabs-color"},{"description":"Background color for all tab buttons (default: transparent)","name":"--tabs-background"},{"description":"Background color of the tabs container (default: theme white)","name":"--tabs-container-background"},{"description":"Background color of a tab on hover (default: gray-100)","name":"--tabs-hover-background"},{"description":"Text and icon color of a tab on hover (default: gray-700)","name":"--tabs-hover-color"},{"description":"Spacing between tabs (default: 1rem)","name":"--tabs-gap"}],"members":[{"kind":"field","name":"tagName","static":true,"readonly":true},{"kind":"field","name":"size","type":{"text":"'xs' | 'sm' | 'md' | 'lg'"},"default":"'md'","description":"Size variant applied to all child tabs.","attribute":"size"},{"kind":"field","name":"activeTab","type":{"text":"string | undefined"},"description":"The \`name\` value of the currently active tab.","attribute":"active-tab"},{"kind":"field","name":"variant","type":{"text":"'full' | 'menu'"},"default":"'full'","description":"Layout variant.\\n- 'full': tabs scroll horizontally when they overflow (default)\\n- 'menu': all tabs are hidden; the active tab label and a chevron dropdown are shown instead","attribute":"variant"},{"kind":"field","name":"menuWrapper","type":{"text":"HTMLElement | null"},"privacy":"private","default":"null"},{"kind":"field","name":"menuDropdown","type":{"text":"Dropdown | null"},"privacy":"private","default":"null"},{"kind":"field","name":"menuLabel","type":{"text":"HTMLSpanElement | null"},"privacy":"private","default":"null"},{"kind":"field","name":"menuIcon","type":{"text":"HTMLElement | null"},"privacy":"private","default":"null"},{"kind":"field","name":"menuErrorBadge","type":{"text":"HTMLElement | null"},"privacy":"private","default":"null"},{"kind":"field","name":"_dropdownSize","type":{"text":"'sm' | 'md' | 'lg'"},"privacy":"private","readonly":true},{"kind":"field","name":"_menuIconSize","type":{"text":"'sm' | 'md'"},"privacy":"private","readonly":true},{"kind":"method","name":"emit","parameters":[{"name":"type","type":{"text":"K"},"description":"Event name from CustomEventMap"},{"name":"detail","optional":true,"type":{"text":"UnpackCustomEvent<CustomEventMap[K]>"},"description":"Optional event detail payload"}],"description":"Dispatches a type-safe CustomEvent with standardized configuration.\\n\\nAll events are configured with:\\n- bubbles: true (event propagates up the DOM tree)\\n- cancelable: false (event cannot be cancelled)\\n- composed: true (event crosses shadow DOM boundaries)","return":{"type":{"text":"boolean"}},"inheritedFrom":{"name":"EventEmitterMixin","module":"src/util/EventEmitterMixin.ts"}}],"events":[{"type":{"text":"CustomEvent"},"description":"Fired after first render and initialization","name":"btu-tabs-ready"},{"type":{"text":"CustomEvent<{name: string}>"},"description":"Fired when a tab becomes active","name":"btu-tabs-show"},{"type":{"text":"CustomEvent<{name: string}>"},"description":"Fired when a tab is deactivated","name":"btu-tabs-hide"},{"type":{"text":"CustomEvent<{name: string}>"},"description":"Fired when a tab is selected (bubbles from btu-tab)","name":"btu-tab-change"},{"type":{"text":"CustomEvent"},"description":"Fired when a child tab finishes initialization (bubbles from btu-tab)","name":"btu-tab-ready"}],"attributes":[{"name":"size","type":{"text":"'xs' | 'sm' | 'md' | 'lg'"},"default":"'md'","description":"Size variant applied to all child tabs.","fieldName":"size","attribute":"size"},{"name":"active-tab","type":{"text":"string | undefined"},"description":"The \`name\` value of the currently active tab.","fieldName":"activeTab","attribute":"active-tab"},{"name":"variant","type":{"text":"'full' | 'menu'"},"default":"'full'","description":"Layout variant.\\n- 'full': tabs scroll horizontally when they overflow (default)\\n- 'menu': all tabs are hidden; the active tab label and a chevron dropdown are shown instead","fieldName":"variant","attribute":"variant"}],"mixins":[{"name":"RovingTabindexMixin","module":"/src/util/RovingTabindexMixin.js"},{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-tabs","customElement":true}],"exports":[{"kind":"js","name":"default","declaration":{"name":"Tabs","module":"src/components/tabs/Tabs.ts"}},{"kind":"custom-element-definition","name":"btu-tabs","declaration":{"name":"Tabs","module":"src/components/tabs/Tabs.ts"}}]},{"kind":"javascript-module","path":"src/components/upload/Upload.ts","declarations":[{"kind":"class","description":"A file upload component with drop zone and file list.\\n\\nThe component is presentation + file-selection only. It handles file browsing,\\ndrag-and-drop reception, client-side validation, and rendering the file list\\nwith progress bars. It does not perform network requests — the consumer listens\\nfor events, performs their own upload, and drives state back via imperative methods.","name":"Upload","cssProperties":[{"description":"Drop zone background color (default: gray-25)","name":"--upload-dropzone-bg"},{"description":"Drop zone border color (default: gray-300; gray-200 when disabled, gray-400 in high-contrast)","name":"--upload-dropzone-border-color"},{"description":"Drop zone border radius (default: borderRadius.lg)","name":"--upload-dropzone-border-radius"},{"description":"Drop zone hover background (hover default: gray-50; drag-over default: primary-25)","name":"--upload-dropzone-hover-bg"},{"description":"Drop zone hover/focus border color (default: primary-300; drag-over uses primary-400)","name":"--upload-dropzone-hover-border-color"},{"description":"Drop zone focus ring color (default: primary-100)","name":"--upload-dropzone-focus-ring-color"},{"description":"Item background color (default: white)","name":"--upload-item-bg"},{"description":"Item border color (default: gray-200)","name":"--upload-item-border-color"},{"description":"Item active/in-progress border (default: gray-300)","name":"--upload-item-active-border-color"},{"description":"Item completed border color (default: primary-500)","name":"--upload-item-complete-border-color"},{"description":"Item error background (default: error-25)","name":"--upload-item-error-bg"},{"description":"Item error border color (default: error-300)","name":"--upload-item-error-border-color"}],"members":[{"kind":"field","name":"accept","type":{"text":"string"},"default":"''","description":"Accepted file types, matching the HTML \`<input accept>\` attribute format.\\nClient-side filter only — the browser's file picker uses this as a hint,\\nand drag-drop is enforced by this component. Server-side validation is\\nstill required.\\n\\nSupported forms (comma-separated, any combination):\\n- \`image/*\` — MIME wildcard (any image)\\n- \`application/pdf\` — exact MIME type\\n- \`.pdf\`, \`.docx\` — file extension (case-insensitive)\\n\\nExamples:\\n- \`accept=\\"image/*\\"\` — any image\\n- \`accept=\\"image/*,application/pdf\\"\` — images and PDFs\\n- \`accept=\\".jpg,.jpeg,.png,.heic\\"\` — specific extensions\\n- \`accept=\\"\\"\` (or omitted) — allow all\\n\\nNote: users can bypass the file picker's filter (most browsers offer an\\n\\"All Files\\" option), so this attribute is a UX filter, not a security\\nboundary.","attribute":"accept"},{"kind":"field","name":"maxFileSize","type":{"text":"number"},"default":"0","description":"Maximum file size in bytes. Files exceeding this are rejected. 0 means unlimited.","attribute":"max-file-size"},{"kind":"field","name":"maxFiles","type":{"text":"number"},"default":"Infinity","description":"Maximum number of files allowed. When omitted, uploads are unlimited.\\n\`max-files=\\"1\\"\` enters single-file mode (selecting a new file replaces the existing one).\\n\`max-files=\\"0\\"\` allows zero files. Values above 1 cap the queue at that many files.","attribute":"max-files"},{"kind":"field","name":"disabled","type":{"text":"boolean"},"default":"false","description":"Disables all interaction — file selection, drag-and-drop, and action buttons.","attribute":"disabled","reflects":true},{"kind":"field","name":"noDrag","type":{"text":"boolean"},"default":"false","description":"Disables drag-and-drop. File selection via click still works.","attribute":"no-drag"},{"kind":"field","name":"_files","type":{"text":"Map<string, FileState>"},"privacy":"private","default":"new Map()"},{"kind":"field","name":"_items","type":{"text":"Map<string, UploadItem>"},"privacy":"private","default":"new Map()"},{"kind":"field","name":"_milestones","type":{"text":"Map<string, Set<number>>"},"privacy":"private","default":"new Map()"},{"kind":"field","name":"_dragOver","type":{"text":"boolean"},"privacy":"private","default":"false"},{"kind":"field","name":"_dragCounter","type":{"text":"number"},"privacy":"private","default":"0"},{"kind":"field","name":"_inputEl","type":{"text":"HTMLInputElement | null"},"privacy":"private","readonly":true},{"kind":"method","name":"_handleInputChange","privacy":"private","return":{"type":{"text":"void"}},"parameters":[{"name":"e","type":{"text":"Event"}}]},{"kind":"method","name":"_handleSelectClick","privacy":"private","return":{"type":{"text":"void"}},"parameters":[{"name":"e","type":{"text":"Event"}}]},{"kind":"method","name":"_handleDropzoneClick","privacy":"private","return":{"type":{"text":"void"}}},{"kind":"method","name":"_handleDragEnter","privacy":"private","return":{"type":{"text":"void"}},"parameters":[{"name":"e","type":{"text":"DragEvent"}}]},{"kind":"method","name":"_handleDragOver","privacy":"private","return":{"type":{"text":"void"}},"parameters":[{"name":"e","type":{"text":"DragEvent"}}]},{"kind":"method","name":"_handleDragLeave","privacy":"private","return":{"type":{"text":"void"}},"parameters":[{"name":"e","type":{"text":"DragEvent"}}]},{"kind":"method","name":"_handleDrop","privacy":"private","return":{"type":{"text":"void"}},"parameters":[{"name":"e","type":{"text":"DragEvent"}}]},{"kind":"method","name":"_processFiles","privacy":"private","return":{"type":{"text":"void"}},"parameters":[{"name":"files","type":{"text":"File[]"}}]},{"kind":"method","name":"_rejectCount","privacy":"private","return":{"type":{"text":"void"}},"parameters":[{"name":"file","type":{"text":"File"}}]},{"kind":"method","name":"_validateFile","privacy":"private","return":{"type":{"text":"boolean"}},"parameters":[{"name":"file","type":{"text":"File"}}]},{"kind":"method","name":"_addFile","privacy":"private","return":{"type":{"text":"void"}},"parameters":[{"name":"file","type":{"text":"File"}}]},{"kind":"method","name":"_reportUnknownId","privacy":"private","return":{"type":{"text":"void"}},"parameters":[{"name":"method","type":{"text":"ApiMethod"}},{"name":"id","type":{"text":"string"}}]},{"kind":"method","name":"_getOrReport","privacy":"private","return":{"type":{"text":"FileState | null"}},"parameters":[{"name":"method","type":{"text":"ApiMethod"}},{"name":"id","type":{"text":"string"}}]},{"kind":"method","name":"_renderItem","privacy":"private","return":{"type":{"text":"void"}},"parameters":[{"name":"fileState","type":{"text":"FileState"}}]},{"kind":"method","name":"setFileProgress","return":{"type":{"text":"void"}},"parameters":[{"name":"id","type":{"text":"string"}},{"name":"percent","type":{"text":"number"}}],"description":"Update the progress of a file upload.\\nClamps value to 0-100 and coerces non-finite inputs to 0. Announces milestones\\n(25%, 50%, 75%) to screen readers; 100% completion is announced by setFileStatus('complete').\\n\\nStatus transitions:\\n- \`pending\` → \`uploading\` (auto — first progress report starts the upload)\\n- \`uploading\` → \`uploading\` (progress updates)\\n- \`error\` → \`error\` (progress updates only; status is preserved so a stale late\\n callback can't wipe the error UI. To recover from error, call\\n \`setFileStatus(id, 'uploading')\` first, then report progress.)\\n- \`complete\` → ignored (terminal state)"},{"kind":"method","name":"setFileStatus","return":{"type":{"text":"void"}},"parameters":[{"name":"id","type":{"text":"string"}},{"name":"status","type":{"text":"FileStatusSettable"}},{"name":"message","optional":true,"type":{"text":"string"}}],"description":"Set the status of a file.\\nValid statuses: 'uploading', 'complete', 'error'. For 'error' status, an\\noptional message can be provided.\\n\\nTransitions from 'complete' are rejected (terminal state) — a late-resolving\\nXHR cannot overwrite a prior success. Rejected calls emit \`btu-upload-api-error\`\\nwith reason: 'invalid-transition'."},{"kind":"method","name":"setFileSymbol","return":{"type":{"text":"void"}},"parameters":[{"name":"id","type":{"text":"string"}},{"name":"symbol","type":{"text":"string"}}],"description":"Override the icon symbol for a file."},{"kind":"method","name":"removeFile","return":{"type":{"text":"void"}},"parameters":[{"name":"id","type":{"text":"string"}}],"description":"Remove a file programmatically. Fires \`btu-upload-file-removed\`."},{"kind":"method","name":"getFiles","return":{"type":{"text":"readonly FileState[]"}},"description":"Get a snapshot of all current files and their states.\\nStates are readonly; mutations on the returned array's elements are ineffective."},{"kind":"field","name":"_dropzoneFull","type":{"text":"boolean"},"privacy":"private","readonly":true},{"kind":"field","name":"_interactionBlocked","type":{"text":"boolean"},"privacy":"private","readonly":true},{"kind":"field","name":"_showCountPill","type":{"text":"boolean"},"privacy":"private","readonly":true},{"kind":"method","name":"_renderSelectButton","privacy":"private","parameters":[{"name":"text","type":{"text":"string"}}]},{"kind":"method","name":"emit","parameters":[{"name":"type","type":{"text":"K"},"description":"Event name from CustomEventMap"},{"name":"detail","optional":true,"type":{"text":"UnpackCustomEvent<CustomEventMap[K]>"},"description":"Optional event detail payload"}],"description":"Dispatches a type-safe CustomEvent with standardized configuration.\\n\\nAll events are configured with:\\n- bubbles: true (event propagates up the DOM tree)\\n- cancelable: false (event cannot be cancelled)\\n- composed: true (event crosses shadow DOM boundaries)","return":{"type":{"text":"boolean"}},"inheritedFrom":{"name":"EventEmitterMixin","module":"src/util/EventEmitterMixin.ts"}}],"events":[{"type":{"text":"CustomEvent<unknown>"},"description":"Fired when the component has completed first render","name":"btu-upload-ready"},{"type":{"text":"CustomEvent<{id: string, file: File}>"},"description":"Fired when a file passes validation and is added","name":"btu-upload-file-added"},{"type":{"text":"CustomEvent<{id: string, file: File}>"},"description":"Fired when a file is removed (user action, programmatic, or on disconnect for in-flight uploads)","name":"btu-upload-file-removed"},{"type":{"text":"CustomEvent<{id: string, file: File}>"},"description":"Fired when user clicks \\"Try again\\" on a failed upload","name":"btu-upload-file-retry"},{"type":{"text":"CustomEvent<{file: File, reason: 'type' | 'size' | 'count'}>"},"description":"Fired when a file fails client-side validation or the queue is full","name":"btu-upload-file-rejected"},{"type":{"text":"CustomEvent<{id: string, file: File}>"},"description":"Fired when a file's status transitions into 'complete'","name":"btu-upload-file-completed"},{"type":{"text":"CustomEvent<{method: string, id: string, reason: 'unknown-id' | 'invalid-transition', message: string}>"},"description":"Fired when an imperative API call references an unknown id or an illegal status transition","name":"btu-upload-api-error"}],"attributes":[{"name":"accept","type":{"text":"string"},"default":"''","description":"Accepted file types, matching the HTML \`<input accept>\` attribute format.\\nClient-side filter only — the browser's file picker uses this as a hint,\\nand drag-drop is enforced by this component. Server-side validation is\\nstill required.\\n\\nSupported forms (comma-separated, any combination):\\n- \`image/*\` — MIME wildcard (any image)\\n- \`application/pdf\` — exact MIME type\\n- \`.pdf\`, \`.docx\` — file extension (case-insensitive)\\n\\nExamples:\\n- \`accept=\\"image/*\\"\` — any image\\n- \`accept=\\"image/*,application/pdf\\"\` — images and PDFs\\n- \`accept=\\".jpg,.jpeg,.png,.heic\\"\` — specific extensions\\n- \`accept=\\"\\"\` (or omitted) — allow all\\n\\nNote: users can bypass the file picker's filter (most browsers offer an\\n\\"All Files\\" option), so this attribute is a UX filter, not a security\\nboundary.","fieldName":"accept","attribute":"accept"},{"name":"max-file-size","type":{"text":"number"},"default":"0","description":"Maximum file size in bytes. Files exceeding this are rejected. 0 means unlimited.","fieldName":"maxFileSize","attribute":"max-file-size"},{"name":"max-files","type":{"text":"number"},"default":"Infinity","description":"Maximum number of files allowed. When omitted, uploads are unlimited.\\n\`max-files=\\"1\\"\` enters single-file mode (selecting a new file replaces the existing one).\\n\`max-files=\\"0\\"\` allows zero files. Values above 1 cap the queue at that many files.","fieldName":"maxFiles","attribute":"max-files"},{"name":"disabled","type":{"text":"boolean"},"default":"false","description":"Disables all interaction — file selection, drag-and-drop, and action buttons.","fieldName":"disabled","attribute":"disabled"},{"name":"no-drag","type":{"text":"boolean"},"default":"false","description":"Disables drag-and-drop. File selection via click still works.","fieldName":"noDrag","attribute":"no-drag"}],"mixins":[{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-upload","customElement":true}],"exports":[{"kind":"js","name":"FileState","declaration":{"name":"FileState","module":"src/components/upload/Upload.ts"}},{"kind":"js","name":"FileStatus","declaration":{"name":"FileStatus","module":"src/components/upload/Upload.ts"}},{"kind":"js","name":"FileStatusSettable","declaration":{"name":"FileStatusSettable","module":"src/components/upload/Upload.ts"}},{"kind":"js","name":"default","declaration":{"name":"Upload","module":"src/components/upload/Upload.ts"}},{"kind":"custom-element-definition","name":"btu-upload","declaration":{"name":"Upload","module":"src/components/upload/Upload.ts"}}]},{"kind":"javascript-module","path":"src/components/upload/UploadItem.ts","declarations":[{"kind":"class","description":"Internal upload item sub-component for displaying individual file upload state.\\n\\nThis component is not part of the public API — consumers should not create,\\nquery, or modify items directly. All interaction goes through \`btu-upload\` methods.","name":"UploadItem","cssProperties":[{"description":"Item background color (default: white)","name":"--upload-item-bg"},{"description":"Item border color (default: gray-200)","name":"--upload-item-border-color"},{"description":"Item active/in-progress border (default: gray-300)","name":"--upload-item-active-border-color"},{"description":"Item completed border color (default: primary-500)","name":"--upload-item-complete-border-color"},{"description":"Item error background (default: error-25)","name":"--upload-item-error-bg"},{"description":"Item error border color (default: error-300)","name":"--upload-item-error-border-color"}],"members":[{"kind":"field","name":"_state","type":{"text":"FileState | null"},"privacy":"private","default":"null"},{"kind":"field","name":"_baseClasses","type":{"text":"string"},"privacy":"private","default":"''"},{"kind":"field","name":"_previousStatus","type":{"text":"FileStatus | null"},"privacy":"private","default":"null"},{"kind":"field","name":"_stopProgressComplete","privacy":"private"},{"kind":"method","name":"_scheduleCelebrate","privacy":"private","return":{"type":{"text":"void"}}},{"kind":"method","name":"_handleRemove","privacy":"private","return":{"type":{"text":"void"}}},{"kind":"method","name":"_handleRetry","privacy":"private","return":{"type":{"text":"void"}}},{"kind":"method","name":"emit","parameters":[{"name":"type","type":{"text":"K"},"description":"Event name from CustomEventMap"},{"name":"detail","optional":true,"type":{"text":"UnpackCustomEvent<CustomEventMap[K]>"},"description":"Optional event detail payload"}],"description":"Dispatches a type-safe CustomEvent with standardized configuration.\\n\\nAll events are configured with:\\n- bubbles: true (event propagates up the DOM tree)\\n- cancelable: false (event cannot be cancelled)\\n- composed: true (event crosses shadow DOM boundaries)","return":{"type":{"text":"boolean"}},"inheritedFrom":{"name":"EventEmitterMixin","module":"src/util/EventEmitterMixin.ts"}}],"events":[{"name":"btu-upload-item-remove","type":{"text":"CustomEvent<{id: string}>"},"description":"Fired when remove button is clicked"},{"name":"btu-upload-item-retry","type":{"text":"CustomEvent<{id: string}>"},"description":"Fired when retry link is clicked"}],"mixins":[{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-upload-item","customElement":true}],"exports":[{"kind":"js","name":"default","declaration":{"name":"UploadItem","module":"src/components/upload/UploadItem.ts"}},{"kind":"custom-element-definition","name":"btu-upload-item","declaration":{"name":"UploadItem","module":"src/components/upload/UploadItem.ts"}}]},{"kind":"javascript-module","path":"src/components/widget/Widget.ts","declarations":[{"kind":"class","description":"A widget component for displaying content with header, body, and footer sections.\\n\\n## Architecture: Light DOM + Manager Pattern\\n\\nThis component uses **Light DOM** (no Shadow Root) with the **Manager Pattern**:\\n- User-provided children are physically moved into internal containers\\n- Movement is based on \`slot\` attributes (pseudo-slots)\\n- The \`onFind\` utility automatically redistributes dynamically-added content\\n\\n### Node Redistribution Rules\\n- \`slot=\\"controls\\"\` → Moved to header actions area (before system buttons)\\n- \`slot=\\"footer\\"\` → Moved to footer container\\n- *(no slot)* → Moved to body container (default)\\n\\n## Features\\n\\n- **Collapsible**: Optional chevron toggle to hide/show body and footer\\n- **Fullscreen**: Optional maximize button for fullscreen mode via \`:state(fullscreen)\` custom state\\n- **Dynamic Content**: \`onFind\` handles content added after initialization\\n- **Accessible**: Full ARIA support and keyboard navigation\\n- **Themeable**: CSS custom properties for colors and spacing\\n\\n## Accessibility\\n\\n- **Collapse toggle**: \`aria-expanded\`, \`aria-controls\`, \`aria-label\`\\n- **Fullscreen toggle**: \`aria-pressed\`, \`aria-label\`\\n- **Body region**: \`role=\\"region\\"\`, \`aria-labelledby\` linking to heading\\n- **Tab order**: Natural flow via physical DOM placement\\n- **Collapsed content**: Hidden via \`inert\` attribute and CSS grid collapse","name":"Widget","cssProperties":[{"description":"Body and footer background color (default: --btu-theme-white)","name":"--widget-background"},{"description":"Widget border and dividers (default: 1px solid gray-200)","name":"--widget-border"},{"description":"Color of header bottom divider (default: gray-200)","name":"--widget-border-color"},{"description":"Header background color (default: transparent)","name":"--header-background"}],"slots":[{"description":"Default pseudo-slot: elements without slot attribute are moved to body","name":""},{"description":"Pseudo-slot: buttons/actions moved to header actions area","name":"controls"},{"description":"Pseudo-slot: content moved to footer container","name":"footer"}],"members":[{"kind":"field","name":"_idCounter","type":{"text":"number"},"privacy":"private","static":true,"default":"0"},{"kind":"field","name":"_internals","privacy":"private"},{"kind":"field","name":"heading","type":{"text":"string"},"default":"''","description":"Heading text displayed in the header.","attribute":"heading"},{"kind":"field","name":"collapsible","type":{"text":"boolean"},"default":"false","description":"Whether the widget can be collapsed/expanded.\\nWhen true, a chevron toggle button appears in the header.","attribute":"collapsible"},{"kind":"field","name":"collapsed","type":{"text":"boolean"},"default":"false","description":"Whether the widget is currently collapsed.\\nWhen true, body and footer are hidden. Implies collapsible.","attribute":"collapsed"},{"kind":"field","name":"fullscreenable","type":{"text":"boolean"},"default":"false","description":"Whether the widget can enter fullscreen mode.\\nWhen true, a fullscreen toggle button appears in the header.","attribute":"fullscreenable"},{"kind":"field","name":"_isFullscreen","type":{"text":"boolean"},"privacy":"private","default":"false"},{"kind":"field","name":"_collapseTooltip","privacy":"private","default":"new TooltipController(this, { target: 'button[data-tooltip=\\"collapse\\"]', text: () => (this.collapsed ? 'Expand' : 'Collapse'), position: 'bottom', noArrow: true, offset: 'sm', })"},{"kind":"field","name":"_fullscreenTooltip","privacy":"private","default":"new TooltipController(this, { target: 'button[data-tooltip=\\"fullscreen\\"]', text: () => (this._isFullscreen ? 'Exit fullscreen' : 'Enter fullscreen'), position: 'bottom', noArrow: true, offset: 'sm', })"},{"kind":"field","name":"isFullscreen","type":{"text":"boolean"},"description":"Whether the widget is currently in fullscreen mode (read-only).\\nUse \`btu-widget-fullscreen-changed\` event to react to changes.","readonly":true},{"kind":"method","name":"emit","parameters":[{"name":"type","type":{"text":"K"},"description":"Event name from CustomEventMap"},{"name":"detail","optional":true,"type":{"text":"UnpackCustomEvent<CustomEventMap[K]>"},"description":"Optional event detail payload"}],"description":"Dispatches a type-safe CustomEvent with standardized configuration.\\n\\nAll events are configured with:\\n- bubbles: true (event propagates up the DOM tree)\\n- cancelable: false (event cannot be cancelled)\\n- composed: true (event crosses shadow DOM boundaries)","return":{"type":{"text":"boolean"}},"inheritedFrom":{"name":"EventEmitterMixin","module":"src/util/EventEmitterMixin.ts"}}],"events":[{"type":{"text":"CustomEvent"},"description":"Fired after first render and redistribution","name":"btu-widget-ready"},{"type":{"text":"CustomEvent<{collapsed: boolean}>"},"description":"Fired when collapsed state changes","name":"btu-widget-collapse-changed"},{"type":{"text":"CustomEvent<{fullscreen: boolean}>"},"description":"Fired when fullscreen state changes","name":"btu-widget-fullscreen-changed"}],"attributes":[{"name":"heading","type":{"text":"string"},"default":"''","description":"Heading text displayed in the header.","fieldName":"heading","attribute":"heading"},{"name":"collapsible","type":{"text":"boolean"},"default":"false","description":"Whether the widget can be collapsed/expanded.\\nWhen true, a chevron toggle button appears in the header.","fieldName":"collapsible","attribute":"collapsible"},{"name":"collapsed","type":{"text":"boolean"},"default":"false","description":"Whether the widget is currently collapsed.\\nWhen true, body and footer are hidden. Implies collapsible.","fieldName":"collapsed","attribute":"collapsed"},{"name":"fullscreenable","type":{"text":"boolean"},"default":"false","description":"Whether the widget can enter fullscreen mode.\\nWhen true, a fullscreen toggle button appears in the header.","fieldName":"fullscreenable","attribute":"fullscreenable"}],"cssStates":[{"description":"Applied when the widget is collapsed, targetable via :state(collapsed)","name":"collapsed"},{"description":"Applied when the widget is in fullscreen mode, targetable via :state(fullscreen)","name":"fullscreen"}],"mixins":[{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-widget","customElement":true}],"exports":[{"kind":"js","name":"default","declaration":{"name":"Widget","module":"src/components/widget/Widget.ts"}},{"kind":"custom-element-definition","name":"btu-widget","declaration":{"name":"Widget","module":"src/components/widget/Widget.ts"}}]},{"kind":"javascript-module","path":"src/util/ClipboardMixin.ts","declarations":[{"kind":"class","description":"","name":"ClipboardMixinInterface","members":[{"kind":"method","name":"copy","return":{"type":{"text":"Promise<void>"}},"parameters":[{"name":"text","type":{"text":"string"}},{"name":"timeout","optional":true,"type":{"text":"number"}}]},{"kind":"field","name":"copiedStateKey","type":{"text":"'btu-copy-to-clipboard-copied'"},"readonly":true}]},{"kind":"mixin","description":"Mixin that adds clipboard copy functionality with visual feedback.\\n\\nProvides a \`copy()\` method that:\\n- Writes text to the system clipboard\\n- Adds a temporary \`<consumer-tag>-copied\` state for 3 seconds\\n- Emits a \`<consumer-tag>-copied\` event\\n- Prevents duplicate copy operations while in success state\\n\\nThe state and event name are resolved from the host element's tagName\\nat runtime (per LESSONS-NAMING §3) so the mixin stays reusable across\\ndifferent consumers without a hardcoded \`btu-clipboard-*\` prefix.","name":"ClipboardMixin","members":[{"kind":"field","name":"copiedStateKey","type":{"text":"'btu-copy-to-clipboard-copied'"},"description":"Custom state applied briefly after a successful copy; also emitted as an event.","readonly":true},{"kind":"method","name":"copy","return":{"type":{"text":""}},"parameters":[{"name":"text","type":{"text":"string"},"description":"The text to copy to clipboard"},{"name":"timeout","default":"3000","description":"Duration in milliseconds to show success state (default: 3000)"}],"description":"Copies text to the system clipboard with visual feedback."}],"parameters":[{"name":"superClass","type":{"text":"T"}}]}],"exports":[{"kind":"js","name":"ClipboardMixinInterface","declaration":{"name":"ClipboardMixinInterface","module":"src/util/ClipboardMixin.ts"}},{"kind":"js","name":"ClipboardMixin","declaration":{"name":"ClipboardMixin","module":"src/util/ClipboardMixin.ts"}}]},{"kind":"javascript-module","path":"src/util/ComponentStatesMixin.ts","declarations":[{"kind":"class","description":"Interface for components using ComponentStatesMixin.\\nProvides access to the Custom State API via ElementInternals.","name":"ComponentStatesMixinInterface"},{"kind":"mixin","description":"Mixin that provides access to the Custom State API for managing component states.\\n\\nUses ElementInternals.states (Custom State API) to manage component-specific states\\nthat can be styled with the :state() pseudo-class in CSS.","name":"ComponentStatesMixin","parameters":[{"name":"superclass","type":{"text":"T"}}]}],"exports":[{"kind":"js","name":"ComponentStatesMixinInterface","declaration":{"name":"ComponentStatesMixinInterface","module":"src/util/ComponentStatesMixin.ts"}},{"kind":"js","name":"ComponentStatesMixin","declaration":{"name":"ComponentStatesMixin","module":"src/util/ComponentStatesMixin.ts"}}]},{"kind":"javascript-module","path":"src/util/EventEmitterMixin.ts","declarations":[{"kind":"class","description":"Interface for components using EventEmitterMixin.\\nProvides type-safe event emission and listener management.","name":"EventEmitterMixinInterface","members":[{"kind":"field","name":"emit","type":{"text":"<K extends keyof CustomEventMap>(type: K, detail?: UnpackCustomEvent<CustomEventMap[K]>) => void"}},{"kind":"method","name":"addEventListener","return":{"type":{"text":"void"}},"parameters":[{"name":"type","type":{"text":"K"}},{"name":"listener","type":{"text":"(this: HTMLElement, ev: CombinedEventMap[K]) => void"}},{"name":"options","optional":true,"type":{"text":"boolean | AddEventListenerOptions"}}]},{"kind":"method","name":"removeEventListener","return":{"type":{"text":"void"}},"parameters":[{"name":"type","type":{"text":"K"}},{"name":"listener","type":{"text":"(this: HTMLElement, ev: CombinedEventMap[K]) => void"}},{"name":"options","optional":true,"type":{"text":"boolean | EventListenerOptions"}}]}]},{"kind":"mixin","description":"Mixin that adds standardized event emission capabilities to LitElement components.\\n\\nAutomatically emits lifecycle events when components connect/disconnect from the DOM.\\nProvides a type-safe \`emit()\` method for dispatching custom events with consistent\\nconfiguration (bubbles, composed, cancelable).","name":"EventEmitterMixin","members":[{"kind":"method","name":"emit","parameters":[{"name":"type","type":{"text":"K"},"description":"Event name from CustomEventMap"},{"name":"detail","optional":true,"type":{"text":"UnpackCustomEvent<CustomEventMap[K]>"},"description":"Optional event detail payload"}],"description":"Dispatches a type-safe CustomEvent with standardized configuration.\\n\\nAll events are configured with:\\n- bubbles: true (event propagates up the DOM tree)\\n- cancelable: false (event cannot be cancelled)\\n- composed: true (event crosses shadow DOM boundaries)","return":{"type":{"text":"boolean"}}}],"parameters":[{"name":"superClass","type":{"text":"T"}}]}],"exports":[{"kind":"js","name":"EventEmitterMixinInterface","declaration":{"name":"EventEmitterMixinInterface","module":"src/util/EventEmitterMixin.ts"}},{"kind":"js","name":"EventEmitterMixin","declaration":{"name":"EventEmitterMixin","module":"src/util/EventEmitterMixin.ts"}}]},{"kind":"javascript-module","path":"src/util/ProgressMixin.ts","declarations":[{"kind":"mixin","description":"Mixin that adds common progress indicator properties.\\nUsed by progress components like CircularProgress and LinearProgress.","name":"ProgressMixin","members":[{"kind":"field","name":"color","type":{"text":"ProgressColors"},"default":"'primary'","description":"Color theme of the progress indicator.\\nSupports: black, white, primary, teal, gray, purple, rose, error, warning, success","attribute":"color"},{"kind":"field","name":"thickness","type":{"text":"number | undefined"},"description":"Stroke width of the progress indicator.","attribute":"thickness"},{"kind":"field","name":"_progress","type":{"text":"number"},"privacy":"private","default":"0"},{"kind":"field","name":"progress","description":"Progress value for determinate variant. Clamped to 0–100.","attribute":"progress"},{"kind":"field","name":"label","type":{"text":"string | undefined"},"description":"Optional label text to display with the progress indicator.","attribute":"label"},{"kind":"field","name":"initialAnimation","type":{"text":"boolean"},"default":"true","description":"Whether to animate progress from 0 to target value when component first becomes visible.","attribute":"initial-animation"},{"kind":"field","name":"ariaLabel","type":{"text":"string | null"},"default":"null","description":"Optional aria-label attribute for screen readers.\\nDescribes what the progress indicator represents.","attribute":"aria-label"},{"kind":"field","name":"ariaLabelledBy","type":{"text":"string | null"},"default":"null","description":"Optional aria-labelledby attribute for screen readers.\\nReferences the ID of an element that labels the progress indicator.","attribute":"aria-labelledby"},{"kind":"field","name":"ariaValueText","type":{"text":"string | null"},"default":"null","description":"Optional aria-valuetext attribute for screen readers.\\nProvides human-readable text alternative for progress value.","attribute":"aria-valuetext"},{"kind":"field","name":"completionAnnouncement","type":{"text":"string | undefined"},"description":"Optional message to announce to screen readers when progress reaches 100%.\\nIf not provided, no announcement will be made on completion.","attribute":"completion-announcement"},{"kind":"field","name":"_isAnimationInitialized","type":{"text":"boolean"},"privacy":"private","default":"false"},{"kind":"field","name":"_intersectionObserver","type":{"text":"IntersectionObserver | undefined"},"privacy":"private"},{"kind":"field","name":"_hasCompletedAt100","type":{"text":"boolean"},"privacy":"private","default":"false"},{"kind":"field","name":"_hostTag","type":{"text":"'btu-linear-progress' | 'btu-circular-progress'"},"privacy":"private","readonly":true}],"attributes":[{"name":"color","type":{"text":"ProgressColors"},"default":"'primary'","description":"Color theme of the progress indicator.\\nSupports: black, white, primary, teal, gray, purple, rose, error, warning, success","fieldName":"color","attribute":"color"},{"name":"thickness","type":{"text":"number | undefined"},"description":"Stroke width of the progress indicator.","fieldName":"thickness","attribute":"thickness"},{"name":"progress","description":"Progress value for determinate variant. Clamped to 0–100.","fieldName":"progress","attribute":"progress"},{"name":"label","type":{"text":"string | undefined"},"description":"Optional label text to display with the progress indicator.","fieldName":"label","attribute":"label"},{"name":"initial-animation","type":{"text":"boolean"},"default":"true","description":"Whether to animate progress from 0 to target value when component first becomes visible.","fieldName":"initialAnimation","attribute":"initial-animation"},{"name":"aria-label","type":{"text":"string | null"},"default":"null","description":"Optional aria-label attribute for screen readers.\\nDescribes what the progress indicator represents.","fieldName":"ariaLabel","attribute":"aria-label"},{"name":"aria-labelledby","type":{"text":"string | null"},"default":"null","description":"Optional aria-labelledby attribute for screen readers.\\nReferences the ID of an element that labels the progress indicator.","fieldName":"ariaLabelledBy","attribute":"aria-labelledby"},{"name":"aria-valuetext","type":{"text":"string | null"},"default":"null","description":"Optional aria-valuetext attribute for screen readers.\\nProvides human-readable text alternative for progress value.","fieldName":"ariaValueText","attribute":"aria-valuetext"},{"name":"completion-announcement","type":{"text":"string | undefined"},"description":"Optional message to announce to screen readers when progress reaches 100%.\\nIf not provided, no announcement will be made on completion.","fieldName":"completionAnnouncement","attribute":"completion-announcement"}],"parameters":[{"name":"Base","type":{"text":"T"},"description":"The base class to extend"}]}],"exports":[{"kind":"js","name":"ProgressMixin","declaration":{"name":"ProgressMixin","module":"src/util/ProgressMixin.ts"}}]},{"kind":"javascript-module","path":"src/util/ReadyMixin.ts","declarations":[{"kind":"class","description":"","name":"ReadyMixinInterface"},{"kind":"mixin","description":"","name":"ReadyMixin","parameters":[{"name":"superClass","type":{"text":"T"}}]}],"exports":[{"kind":"js","name":"ReadyMixinInterface","declaration":{"name":"ReadyMixinInterface","module":"src/util/ReadyMixin.ts"}},{"kind":"js","name":"ReadyMixin","declaration":{"name":"ReadyMixin","module":"src/util/ReadyMixin.ts"}}]},{"kind":"javascript-module","path":"src/util/RovingTabindexMixin.ts","declarations":[{"kind":"class","description":"","name":"RovingTabindexInterface"},{"kind":"mixin","description":"","name":"RovingTabindexMixin","parameters":[{"name":"superClass","type":{"text":"T"}}]}],"exports":[{"kind":"js","name":"RovingTabindexInterface","declaration":{"name":"RovingTabindexInterface","module":"src/util/RovingTabindexMixin.ts"}},{"kind":"js","name":"RovingTabindexMixin","declaration":{"name":"RovingTabindexMixin","module":"src/util/RovingTabindexMixin.ts"}}]},{"kind":"javascript-module","path":"src/util/TooltipMixin.ts","declarations":[{"kind":"class","description":"","name":"TooltipMixinInterface","members":[{"kind":"field","name":"tooltip","type":{"text":"string"}},{"kind":"field","name":"tooltipPosition","type":{"text":"'top' | 'bottom' | 'left' | 'right'"}},{"kind":"field","name":"tooltipDelay","type":{"text":"number"}},{"kind":"field","name":"tooltipOffset","type":{"text":"TooltipOffset | null"}},{"kind":"field","name":"tooltipNoArrow","type":{"text":"boolean"}},{"kind":"field","name":"tooltipTrigger","type":{"text":"string"}}]},{"kind":"mixin","description":"Mixin that adds declarative tooltip support to any LitElement component.\\n\\nUses the native Popover API for top-layer rendering and CSS anchor positioning\\nfor viewport-aware placement. The tooltip element is appended as the last child\\nof the host (safe from Lit re-render interference in Light DOM components).\\n\\nFor click triggers (\`popover=\\"auto\\"\`), the browser provides light dismiss\\n(Escape key and click-outside). For hover/focus triggers (\`popover=\\"manual\\"\`),\\nshow/hide is controlled by the mixin.","name":"TooltipMixin","members":[{"kind":"field","name":"tooltip","type":{"text":"string"},"default":"''","description":"Tooltip text content. Set to empty string to remove the tooltip.","attribute":"tooltip"},{"kind":"field","name":"tooltipPosition","type":{"text":"'top' | 'bottom' | 'left' | 'right'"},"default":"'top'","description":"Position relative to the host element. Auto-flips when constrained by the viewport.","attribute":"tooltip-position"},{"kind":"field","name":"tooltipDelay","type":{"text":"number"},"default":"300","description":"Show delay in milliseconds (hover trigger only).","attribute":"tooltip-delay"},{"kind":"field","name":"tooltipOffset","type":{"text":"TooltipOffset | null"},"default":"null","description":"Gap between host and tooltip (sm=4px, md=8px, lg=12px, xl=16px).","attribute":"tooltip-offset"},{"kind":"field","name":"tooltipNoArrow","type":{"text":"boolean"},"default":"false","description":"Hide the arrow pseudo-element.","attribute":"tooltip-no-arrow"},{"kind":"field","name":"tooltipTrigger","type":{"text":"string"},"default":"'hover focus'","description":"Space-separated trigger types: 'hover', 'focus', 'click'.","attribute":"tooltip-trigger"},{"kind":"field","name":"_onMouseLeave","privacy":"private"},{"kind":"field","name":"_onFocusIn","privacy":"private"},{"kind":"field","name":"_onFocusOut","privacy":"private"},{"kind":"field","name":"_onClick","privacy":"private"},{"kind":"field","name":"_onNativeToggle","privacy":"private"},{"kind":"field","name":"_onKeyDown","privacy":"private"},{"kind":"field","name":"_onDocumentClick","type":{"text":"((e: MouseEvent) => void) | null"},"privacy":"private","default":"null"}],"attributes":[{"name":"tooltip","type":{"text":"string"},"default":"''","description":"Tooltip text content. Set to empty string to remove the tooltip.","fieldName":"tooltip","attribute":"tooltip"},{"name":"tooltipPosition","type":{"text":"'top' | 'bottom' | 'left' | 'right'"},"default":"'top'","description":"Position relative to the host element. Auto-flips when constrained by the viewport.","fieldName":"tooltipPosition"},{"name":"tooltipDelay","type":{"text":"number"},"default":"300","description":"Show delay in milliseconds (hover trigger only).","fieldName":"tooltipDelay"},{"name":"tooltipOffset","type":{"text":"TooltipOffset | null"},"default":"null","description":"Gap between host and tooltip (sm=4px, md=8px, lg=12px, xl=16px).","fieldName":"tooltipOffset"},{"name":"tooltipNoArrow","type":{"text":"boolean"},"default":"false","description":"Hide the arrow pseudo-element.","fieldName":"tooltipNoArrow"},{"name":"tooltipTrigger","type":{"text":"string"},"default":"'hover focus'","description":"Space-separated trigger types: 'hover', 'focus', 'click'.","fieldName":"tooltipTrigger"},{"name":"tooltip-position","type":{"text":"'top' | 'bottom' | 'left' | 'right'"},"default":"'top'","description":"Position relative to the host element. Auto-flips when constrained by the viewport.","attribute":"tooltipPosition","fieldName":"tooltipPosition"},{"name":"tooltip-delay","type":{"text":"number"},"default":"300","description":"Show delay in milliseconds (hover trigger only).","attribute":"tooltipDelay","fieldName":"tooltipDelay"},{"name":"tooltip-offset","type":{"text":"TooltipOffset | null"},"default":"null","description":"Gap between host and tooltip (sm=4px, md=8px, lg=12px, xl=16px).","attribute":"tooltipOffset","fieldName":"tooltipOffset"},{"name":"tooltip-no-arrow","type":{"text":"boolean"},"default":"false","description":"Hide the arrow pseudo-element.","attribute":"tooltipNoArrow","fieldName":"tooltipNoArrow"},{"name":"tooltip-trigger","type":{"text":"string"},"default":"'hover focus'","description":"Space-separated trigger types: 'hover', 'focus', 'click'.","attribute":"tooltipTrigger","fieldName":"tooltipTrigger"}],"parameters":[{"name":"superClass","type":{"text":"T"}}]}],"exports":[{"kind":"js","name":"TooltipMixinInterface","declaration":{"name":"TooltipMixinInterface","module":"src/util/TooltipMixin.ts"}},{"kind":"js","name":"TooltipMixin","declaration":{"name":"TooltipMixin","module":"src/util/TooltipMixin.ts"}}]}]`),k6={schemaVersion:M6,readme:N6,modules:I6};function ht(){return ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ht.apply(null,arguments)}function j6(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $i(e,t){return $i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},$i(e,t)}function q6(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,$i(e,t)}function $c(e){return $c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$c(e)}function D6(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Px(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Px=function(){return!!e})()}function L6(e,t,r){if(Px())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&$i(o,r.prototype),o}function Bc(e){var t=typeof Map=="function"?new Map:void 0;return Bc=function(r){if(r===null||!D6(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,n)}function n(){return L6(r,arguments,$c(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),$i(n,r)},Bc(e)}var ir=(function(e){q6(t,e);function t(r){var n;return n=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+r+" for more information.")||this,j6(n)}return t})(Bc(Error));function bu(e){return Math.round(e*255)}function F6(e,t,r){return bu(e)+","+bu(t)+","+bu(r)}function As(e,t,r,n){if(n===void 0&&(n=F6),t===0)return n(r,r,r);var o=(e%360+360)%360/60,i=(1-Math.abs(2*r-1))*t,a=i*(1-Math.abs(o%2-1)),s=0,c=0,l=0;o>=0&&o<1?(s=i,c=a):o>=1&&o<2?(s=a,c=i):o>=2&&o<3?(c=i,l=a):o>=3&&o<4?(c=a,l=i):o>=4&&o<5?(s=a,l=i):o>=5&&o<6&&(s=i,l=a);var d=r-i/2,p=s+d,f=c+d,m=l+d;return n(p,f,m)}var Qy={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function $6(e){if(typeof e!="string")return e;var t=e.toLowerCase();return Qy[t]?"#"+Qy[t]:e}var B6=/^#[a-fA-F0-9]{6}$/,U6=/^#[a-fA-F0-9]{8}$/,H6=/^#[a-fA-F0-9]{3}$/,J6=/^#[a-fA-F0-9]{4}$/,vu=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,V6=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,z6=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,G6=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function co(e){if(typeof e!="string")throw new ir(3);var t=$6(e);if(t.match(B6))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(U6)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(H6))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(J6)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var o=vu.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=V6.exec(t.substring(0,50));if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])>1?parseFloat(""+i[4])/100:parseFloat(""+i[4])};var a=z6.exec(t);if(a){var s=parseInt(""+a[1],10),c=parseInt(""+a[2],10)/100,l=parseInt(""+a[3],10)/100,d="rgb("+As(s,c,l)+")",p=vu.exec(d);if(!p)throw new ir(4,t,d);return{red:parseInt(""+p[1],10),green:parseInt(""+p[2],10),blue:parseInt(""+p[3],10)}}var f=G6.exec(t.substring(0,50));if(f){var m=parseInt(""+f[1],10),y=parseInt(""+f[2],10)/100,g=parseInt(""+f[3],10)/100,v="rgb("+As(m,y,g)+")",b=vu.exec(v);if(!b)throw new ir(4,t,v);return{red:parseInt(""+b[1],10),green:parseInt(""+b[2],10),blue:parseInt(""+b[3],10),alpha:parseFloat(""+f[4])>1?parseFloat(""+f[4])/100:parseFloat(""+f[4])}}throw new ir(5)}function W6(e){var t=e.red/255,r=e.green/255,n=e.blue/255,o=Math.max(t,r,n),i=Math.min(t,r,n),a=(o+i)/2;if(o===i)return e.alpha!==void 0?{hue:0,saturation:0,lightness:a,alpha:e.alpha}:{hue:0,saturation:0,lightness:a};var s,c=o-i,l=a>.5?c/(2-o-i):c/(o+i);switch(o){case t:s=(r-n)/c+(r<n?6:0);break;case r:s=(n-t)/c+2;break;default:s=(t-r)/c+4;break}return s*=60,e.alpha!==void 0?{hue:s,saturation:l,lightness:a,alpha:e.alpha}:{hue:s,saturation:l,lightness:a}}function Zr(e){return W6(co(e))}var K6=function(e){return e.length===7&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e},Uc=K6;function hn(e){var t=e.toString(16);return t.length===1?"0"+t:t}function Eu(e){return hn(Math.round(e*255))}function Y6(e,t,r){return Uc("#"+Eu(e)+Eu(t)+Eu(r))}function Mx(e,t,r){return As(e,t,r,Y6)}function X6(e,t,r){if(typeof e=="object"&&t===void 0&&r===void 0)return Mx(e.hue,e.saturation,e.lightness);throw new ir(1)}function Q6(e,t,r,n){if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Mx(e.hue,e.saturation,e.lightness):"rgba("+As(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new ir(2)}function Hc(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return Uc("#"+hn(e)+hn(t)+hn(r));if(typeof e=="object"&&t===void 0&&r===void 0)return Uc("#"+hn(e.red)+hn(e.green)+hn(e.blue));throw new ir(6)}function po(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var o=co(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?Hc(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Hc(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new ir(7)}var Z6=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},eG=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},tG=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},rG=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function en(e){if(typeof e!="object")throw new ir(8);if(eG(e))return po(e);if(Z6(e))return Hc(e);if(rG(e))return Q6(e);if(tG(e))return X6(e);throw new ir(8)}function Nx(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):Nx(e,t,n)}}function Nt(e){return Nx(e,e.length,[])}function nG(e,t){if(t==="transparent")return t;var r=Zr(t);return en(ht({},r,{hue:r.hue+parseFloat(e)}))}Nt(nG);function _o(e,t,r){return Math.max(e,Math.min(t,r))}function oG(e,t){if(t==="transparent")return t;var r=Zr(t);return en(ht({},r,{lightness:_o(0,1,r.lightness-parseFloat(e))}))}var iG=Nt(oG),aG=iG;function sG(e,t){if(t==="transparent")return t;var r=Zr(t);return en(ht({},r,{saturation:_o(0,1,r.saturation-parseFloat(e))}))}Nt(sG);function lG(e,t){if(t==="transparent")return t;var r=Zr(t);return en(ht({},r,{lightness:_o(0,1,r.lightness+parseFloat(e))}))}var uG=Nt(lG),cG=uG;function dG(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=co(t),o=ht({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),i=co(r),a=ht({},i,{alpha:typeof i.alpha=="number"?i.alpha:1}),s=o.alpha-a.alpha,c=parseFloat(e)*2-1,l=c*s===-1?c:c+s,d=1+c*s,p=(l/d+1)/2,f=1-p,m={red:Math.floor(o.red*p+a.red*f),green:Math.floor(o.green*p+a.green*f),blue:Math.floor(o.blue*p+a.blue*f),alpha:o.alpha*parseFloat(e)+a.alpha*(1-parseFloat(e))};return po(m)}var pG=Nt(dG),Ix=pG;function fG(e,t){if(t==="transparent")return t;var r=co(t),n=typeof r.alpha=="number"?r.alpha:1,o=ht({},r,{alpha:_o(0,1,(n*100+parseFloat(e)*100)/100)});return po(o)}var mG=Nt(fG),hG=mG;function yG(e,t){if(t==="transparent")return t;var r=Zr(t);return en(ht({},r,{saturation:_o(0,1,r.saturation+parseFloat(e))}))}Nt(yG);function gG(e,t){return t==="transparent"?t:en(ht({},Zr(t),{hue:parseFloat(e)}))}Nt(gG);function bG(e,t){return t==="transparent"?t:en(ht({},Zr(t),{lightness:parseFloat(e)}))}Nt(bG);function vG(e,t){return t==="transparent"?t:en(ht({},Zr(t),{saturation:parseFloat(e)}))}Nt(vG);function EG(e,t){return t==="transparent"?t:Ix(parseFloat(e),"rgb(0, 0, 0)",t)}Nt(EG);function wG(e,t){return t==="transparent"?t:Ix(parseFloat(e),"rgb(255, 255, 255)",t)}Nt(wG);function _G(e,t){if(t==="transparent")return t;var r=co(t),n=typeof r.alpha=="number"?r.alpha:1,o=ht({},r,{alpha:_o(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return po(o)}var TG=Nt(_G),rW=TG,le={primary:"#FF4785",secondary:"#006DEB",tertiary:"#FAFBFC",ancillary:"#22a699",orange:"#FC521F",gold:"#FFAE00",green:"#66BF3C",seafoam:"#37D5D3",purple:"#6F2CAC",ultraviolet:"#2A0481",lightest:"#FFFFFF",lighter:"#F6F9FC",light:"#EEF2F6",mediumlight:"#ECF2F9",medium:"#D9E5F2",mediumdark:"#737F8C",dark:"#5C6570",darker:"#454C54",darkest:"#2E3338",border:"hsl(212 50% 30% / 0.15)",positive:"#66BF3C",warning:"#E69D00",negative:"#FF4400",critical:"#FFFFFF",defaultText:"#2E3338",inverseText:"#FFFFFF",positiveText:"#427C27",warningText:"#955B1E",negativeText:"#C23400"},gr={app:"#F6F9FC",bar:le.lightest,content:le.lightest,preview:le.lightest,gridCellSize:10,positive:"#F1FFEB",warning:"#FFF9EB",negative:"#FFF0EB",critical:"#D13800"},_r={fonts:{base:['"Nunito Sans"',"-apple-system",'".SFNSText-Regular"','"San Francisco"',"BlinkMacSystemFont",'"Segoe UI"','"Helvetica Neue"',"Helvetica","Arial","sans-serif"].join(", "),mono:["ui-monospace","Menlo","Monaco",'"Roboto Mono"','"Oxygen Mono"','"Ubuntu Monospace"','"Source Code Pro"','"Droid Sans Mono"','"Courier New"',"monospace"].join(", ")},weight:{regular:400,bold:700},size:{s1:12,s2:14,s3:16,m1:20,m2:24,m3:28,l1:32,l2:40,l3:48,code:90}},Jc={light:{fgColor:{default:le.darkest,muted:le.dark,accent:le.secondary,inverse:le.lightest,positive:"#427C27",warning:"#7A4100",negative:"#C23400",critical:"#FFFFFF"},bgColor:{default:le.lightest,muted:gr.app,positive:"#F1FFEB",warning:"#FFF7EB",negative:"#FFF0EB",critical:"#D13800"},borderColor:{default:le.border,muted:"hsl(0 0% 0% / 0.1)",inverse:"hsl(0 0% 100% / 0.1)",positive:"#BFE7AC",warning:"#FFCE85",negative:"#FFC3AD",critical:"hsl(16 100% 100% / 0)"}},dark:{fgColor:{default:"#C9CCCF",muted:"#95999D",accent:"#479DFF",inverse:"#1B1C1D",positive:"#86CE64",warning:"#FFAD33",negative:"#FF6933",critical:"#FF6933"},bgColor:{default:"#222325",muted:"#1B1C1D",positive:"hsl(101 100% 100% / 0)",warning:"hsl(101 100% 100% / 0)",negative:"hsl(101 100% 100% / 0)",critical:"hsl(101 100% 100% / 0)"},borderColor:{default:"hsl(0 0% 100% / 0.1)",muted:"hsl(0 0% 100% / 0.5)",inverse:"hsl(0 0% 0% / 0.1)",positive:"hsl(101 52% 64% / 0.15)",warning:"hsl(36 100% 64% / 0.15)",negative:"hsl(16 100% 64% / 0.15)",critical:"#FF6933"}}},xG={base:"dark",colorPrimary:"#FF4785",colorSecondary:"#479DFF",appBg:"#1B1C1D",appContentBg:"#222325",appHoverBg:"#233952",appPreviewBg:le.lightest,appBorderColor:"hsl(0 0% 100% / 0.1)",appBorderRadius:4,fontBase:_r.fonts.base,fontCode:_r.fonts.mono,textColor:"#C9CCCF",textInverseColor:"#1B1C1D",textMutedColor:"#95999D",barTextColor:"#95999D",barHoverColor:"#70B3FF",barSelectedColor:"#479DFF",barBg:"#222325",buttonBg:"#1B1C1D",buttonBorder:"hsl(0 0% 100% / 0.1)",booleanBg:"#1B1C1D",booleanSelectedBg:"#292B2E",inputBg:"#1B1C1D",inputBorder:"hsl(0 0% 100% / 0.1)",inputTextColor:"#C9CCCF",inputBorderRadius:4},SG=xG,AG={base:"light",colorPrimary:le.primary,colorSecondary:le.secondary,appBg:gr.app,appContentBg:le.lightest,appHoverBg:"#DBECFF",appPreviewBg:le.lightest,appBorderColor:le.border,appBorderRadius:4,fontBase:_r.fonts.base,fontCode:_r.fonts.mono,textColor:le.darkest,textInverseColor:le.lightest,textMutedColor:le.dark,barTextColor:le.dark,barHoverColor:"#005CC7",barSelectedColor:"#0063D6",barBg:le.lightest,buttonBg:gr.app,buttonBorder:le.medium,booleanBg:le.mediumlight,booleanSelectedBg:le.lightest,inputBg:le.lightest,inputBorder:le.border,inputTextColor:le.darkest,inputBorderRadius:4},Vc=AG;const{logger:OG}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{global:RG}=__STORYBOOK_MODULE_GLOBAL__;var{window:wu}=RG,CG=e=>({color:e}),PG=e=>typeof e!="string"?(OG.warn(`Color passed to theme object should be a string. Instead ${e}(${typeof e}) was passed.`),!1):!0,MG=e=>!/(gradient|var|calc)/.test(e),NG=(e,t)=>e==="darken"?po(`${aG(1,t)}`,.95):e==="lighten"?po(`${cG(1,t)}`,.95):t,IG=e=>t=>{if(!PG(t)||!MG(t))return t;try{return NG(e,t)}catch{return t}},kG=IG("lighten"),bf=()=>!wu||!wu.matchMedia?"light":wu.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",Zy={light:Vc,dark:SG},Ja=bf(),mi={...Zy,normal:Zy[Ja]},vf=(e={base:Ja},t)=>{let r={...mi[Ja],...mi[e.base]||{},...e,base:mi[e.base]?e.base:Ja};return{...t,...r,barSelectedColor:e.barSelectedColor||r.colorSecondary}};function jG(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _u={exports:{}},he={};var eg;function qG(){if(eg)return he;eg=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),f=Symbol.iterator;function m(D){return D===null||typeof D!="object"?null:(D=f&&D[f]||D["@@iterator"],typeof D=="function"?D:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,v={};function b(D,L,G){this.props=D,this.context=L,this.refs=v,this.updater=G||y}b.prototype.isReactComponent={},b.prototype.setState=function(D,L){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,L,"setState")},b.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function T(){}T.prototype=b.prototype;function A(D,L,G){this.props=D,this.context=L,this.refs=v,this.updater=G||y}var R=A.prototype=new T;R.constructor=A,g(R,b.prototype),R.isPureReactComponent=!0;var P=Array.isArray;function E(){}var _={H:null,A:null,T:null,S:null},x=Object.prototype.hasOwnProperty;function S(D,L,G){var Q=G.ref;return{$$typeof:e,type:D,key:L,ref:Q!==void 0?Q:null,props:G}}function F(D,L){return S(D.type,L,D.props)}function j(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function J(D){var L={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(G){return L[G]})}var N=/\/+/g;function O(D,L){return typeof D=="object"&&D!==null&&D.key!=null?J(""+D.key):L.toString(36)}function q(D){switch(D.status){case"fulfilled":return D.value;case"rejected":throw D.reason;default:switch(typeof D.status=="string"?D.then(E,E):(D.status="pending",D.then(function(L){D.status==="pending"&&(D.status="fulfilled",D.value=L)},function(L){D.status==="pending"&&(D.status="rejected",D.reason=L)})),D.status){case"fulfilled":return D.value;case"rejected":throw D.reason}}throw D}function $(D,L,G,Q,X){var K=typeof D;(K==="undefined"||K==="boolean")&&(D=null);var ie=!1;if(D===null)ie=!0;else switch(K){case"bigint":case"string":case"number":ie=!0;break;case"object":switch(D.$$typeof){case e:case t:ie=!0;break;case d:return ie=D._init,$(ie(D._payload),L,G,Q,X)}}if(ie)return X=X(D),ie=Q===""?"."+O(D,0):Q,P(X)?(G="",ie!=null&&(G=ie.replace(N,"$&/")+"/"),$(X,L,G,"",function(B){return B})):X!=null&&(j(X)&&(X=F(X,G+(X.key==null||D&&D.key===X.key?"":(""+X.key).replace(N,"$&/")+"/")+ie)),L.push(X)),1;ie=0;var se=Q===""?".":Q+":";if(P(D))for(var Te=0;Te<D.length;Te++)Q=D[Te],K=se+O(Q,Te),ie+=$(Q,L,G,K,X);else if(Te=m(D),typeof Te=="function")for(D=Te.call(D),Te=0;!(Q=D.next()).done;)Q=Q.value,K=se+O(Q,Te++),ie+=$(Q,L,G,K,X);else if(K==="object"){if(typeof D.then=="function")return $(q(D),L,G,Q,X);throw L=String(D),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.")}return ie}function V(D,L,G){if(D==null)return D;var Q=[],X=0;return $(D,Q,"","",function(K){return L.call(G,K,X++)}),Q}function Y(D){if(D._status===-1){var L=D._result;L=L(),L.then(function(G){(D._status===0||D._status===-1)&&(D._status=1,D._result=G)},function(G){(D._status===0||D._status===-1)&&(D._status=2,D._result=G)}),D._status===-1&&(D._status=0,D._result=L)}if(D._status===1)return D._result.default;throw D._result}var oe=typeof reportError=="function"?reportError:function(D){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var L=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D),error:D});if(!window.dispatchEvent(L))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",D);return}console.error(D)},ue={map:V,forEach:function(D,L,G){V(D,function(){L.apply(this,arguments)},G)},count:function(D){var L=0;return V(D,function(){L++}),L},toArray:function(D){return V(D,function(L){return L})||[]},only:function(D){if(!j(D))throw Error("React.Children.only expected to receive a single React element child.");return D}};return he.Activity=p,he.Children=ue,he.Component=b,he.Fragment=r,he.Profiler=o,he.PureComponent=A,he.StrictMode=n,he.Suspense=c,he.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=_,he.__COMPILER_RUNTIME={__proto__:null,c:function(D){return _.H.useMemoCache(D)}},he.cache=function(D){return function(){return D.apply(null,arguments)}},he.cacheSignal=function(){return null},he.cloneElement=function(D,L,G){if(D==null)throw Error("The argument must be a React element, but you passed "+D+".");var Q=g({},D.props),X=D.key;if(L!=null)for(K in L.key!==void 0&&(X=""+L.key),L)!x.call(L,K)||K==="key"||K==="__self"||K==="__source"||K==="ref"&&L.ref===void 0||(Q[K]=L[K]);var K=arguments.length-2;if(K===1)Q.children=G;else if(1<K){for(var ie=Array(K),se=0;se<K;se++)ie[se]=arguments[se+2];Q.children=ie}return S(D.type,X,Q)},he.createContext=function(D){return D={$$typeof:a,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null},D.Provider=D,D.Consumer={$$typeof:i,_context:D},D},he.createElement=function(D,L,G){var Q,X={},K=null;if(L!=null)for(Q in L.key!==void 0&&(K=""+L.key),L)x.call(L,Q)&&Q!=="key"&&Q!=="__self"&&Q!=="__source"&&(X[Q]=L[Q]);var ie=arguments.length-2;if(ie===1)X.children=G;else if(1<ie){for(var se=Array(ie),Te=0;Te<ie;Te++)se[Te]=arguments[Te+2];X.children=se}if(D&&D.defaultProps)for(Q in ie=D.defaultProps,ie)X[Q]===void 0&&(X[Q]=ie[Q]);return S(D,K,X)},he.createRef=function(){return{current:null}},he.forwardRef=function(D){return{$$typeof:s,render:D}},he.isValidElement=j,he.lazy=function(D){return{$$typeof:d,_payload:{_status:-1,_result:D},_init:Y}},he.memo=function(D,L){return{$$typeof:l,type:D,compare:L===void 0?null:L}},he.startTransition=function(D){var L=_.T,G={};_.T=G;try{var Q=D(),X=_.S;X!==null&&X(G,Q),typeof Q=="object"&&Q!==null&&typeof Q.then=="function"&&Q.then(E,oe)}catch(K){oe(K)}finally{L!==null&&G.types!==null&&(L.types=G.types),_.T=L}},he.unstable_useCacheRefresh=function(){return _.H.useCacheRefresh()},he.use=function(D){return _.H.use(D)},he.useActionState=function(D,L,G){return _.H.useActionState(D,L,G)},he.useCallback=function(D,L){return _.H.useCallback(D,L)},he.useContext=function(D){return _.H.useContext(D)},he.useDebugValue=function(){},he.useDeferredValue=function(D,L){return _.H.useDeferredValue(D,L)},he.useEffect=function(D,L){return _.H.useEffect(D,L)},he.useEffectEvent=function(D){return _.H.useEffectEvent(D)},he.useId=function(){return _.H.useId()},he.useImperativeHandle=function(D,L,G){return _.H.useImperativeHandle(D,L,G)},he.useInsertionEffect=function(D,L){return _.H.useInsertionEffect(D,L)},he.useLayoutEffect=function(D,L){return _.H.useLayoutEffect(D,L)},he.useMemo=function(D,L){return _.H.useMemo(D,L)},he.useOptimistic=function(D,L){return _.H.useOptimistic(D,L)},he.useReducer=function(D,L,G){return _.H.useReducer(D,L,G)},he.useRef=function(D){return _.H.useRef(D)},he.useState=function(D){return _.H.useState(D)},he.useSyncExternalStore=function(D,L,G){return _.H.useSyncExternalStore(D,L,G)},he.useTransition=function(){return _.H.useTransition()},he.version="19.2.0",he}var tg;function DG(){return tg||(tg=1,_u.exports=qG()),_u.exports}var Ie=DG();const LG=jG(Ie),nW=eS({__proto__:null,default:LG},[Ie]);var FG=oa({"../../node_modules/react-is/cjs/react-is.production.min.js"(e){var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,o=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,d=t?Symbol.for("react.concurrent_mode"):60111,p=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,m=t?Symbol.for("react.suspense_list"):60120,y=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116,v=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,T=t?Symbol.for("react.responder"):60118,A=t?Symbol.for("react.scope"):60119;function R(E){if(typeof E=="object"&&E!==null){var _=E.$$typeof;switch(_){case r:switch(E=E.type,E){case l:case d:case o:case a:case i:case f:return E;default:switch(E=E&&E.$$typeof,E){case c:case p:case g:case y:case s:return E;default:return _}}case n:return _}}}function P(E){return R(E)===d}e.AsyncMode=l,e.ConcurrentMode=d,e.ContextConsumer=c,e.ContextProvider=s,e.Element=r,e.ForwardRef=p,e.Fragment=o,e.Lazy=g,e.Memo=y,e.Portal=n,e.Profiler=a,e.StrictMode=i,e.Suspense=f,e.isAsyncMode=function(E){return P(E)||R(E)===l},e.isConcurrentMode=P,e.isContextConsumer=function(E){return R(E)===c},e.isContextProvider=function(E){return R(E)===s},e.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===r},e.isForwardRef=function(E){return R(E)===p},e.isFragment=function(E){return R(E)===o},e.isLazy=function(E){return R(E)===g},e.isMemo=function(E){return R(E)===y},e.isPortal=function(E){return R(E)===n},e.isProfiler=function(E){return R(E)===a},e.isStrictMode=function(E){return R(E)===i},e.isSuspense=function(E){return R(E)===f},e.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===o||E===d||E===a||E===i||E===f||E===m||typeof E=="object"&&E!==null&&(E.$$typeof===g||E.$$typeof===y||E.$$typeof===s||E.$$typeof===c||E.$$typeof===p||E.$$typeof===b||E.$$typeof===T||E.$$typeof===A||E.$$typeof===v)},e.typeOf=R}}),$G=oa({"../../node_modules/react-is/index.js"(e,t){t.exports=FG()}}),kx=oa({"../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(e,t){var r=$G(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[r.ForwardRef]=i,s[r.Memo]=a;function c(v){return r.isMemo(v)?a:s[v.$$typeof]||n}var l=Object.defineProperty,d=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,y=Object.prototype;function g(v,b,T){if(typeof b!="string"){if(y){var A=m(b);A&&A!==y&&g(v,A,T)}var R=d(b);p&&(R=R.concat(p(b)));for(var P=c(v),E=c(b),_=0;_<R.length;++_){var x=R[_];if(!o[x]&&!(T&&T[x])&&!(E&&E[x])&&!(P&&P[x])){var S=f(b,x);try{l(v,x,S)}catch{}}}}return v}t.exports=g}});function BG(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function UG(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var HG=(function(){function e(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(UG(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var o=BG(n);try{o.insertRule(r,o.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var n;return(n=r.parentNode)==null?void 0:n.removeChild(r)}),this.tags=[],this.ctr=0},e})(),dt="-ms-",Os="-moz-",Ce="-webkit-",jx="comm",Ef="rule",wf="decl",JG="@import",qx="@keyframes",VG="@layer",zG=Math.abs,yl=String.fromCharCode,GG=Object.assign;function WG(e,t){return at(e,0)^45?(((t<<2^at(e,0))<<2^at(e,1))<<2^at(e,2))<<2^at(e,3):0}function Dx(e){return e.trim()}function KG(e,t){return(e=t.exec(e))?e[0]:e}function Pe(e,t,r){return e.replace(t,r)}function zc(e,t){return e.indexOf(t)}function at(e,t){return e.charCodeAt(t)|0}function Bi(e,t,r){return e.slice(t,r)}function tr(e){return e.length}function _f(e){return e.length}function Ca(e,t){return t.push(e),e}function YG(e,t){return e.map(t).join("")}var gl=1,fo=1,Lx=0,_t=0,Xe=0,To="";function bl(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:gl,column:fo,length:a,return:""}}function Xo(e,t){return GG(bl("",null,null,"",null,null,0),e,{length:-e.length},t)}function XG(){return Xe}function QG(){return Xe=_t>0?at(To,--_t):0,fo--,Xe===10&&(fo=1,gl--),Xe}function Ct(){return Xe=_t<Lx?at(To,_t++):0,fo++,Xe===10&&(fo=1,gl++),Xe}function sr(){return at(To,_t)}function Va(){return _t}function sa(e,t){return Bi(To,e,t)}function Ui(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Fx(e){return gl=fo=1,Lx=tr(To=e),_t=0,[]}function $x(e){return To="",e}function za(e){return Dx(sa(_t-1,Gc(e===91?e+2:e===40?e+1:e)))}function ZG(e){for(;(Xe=sr())&&Xe<33;)Ct();return Ui(e)>2||Ui(Xe)>3?"":" "}function e8(e,t){for(;--t&&Ct()&&!(Xe<48||Xe>102||Xe>57&&Xe<65||Xe>70&&Xe<97););return sa(e,Va()+(t<6&&sr()==32&&Ct()==32))}function Gc(e){for(;Ct();)switch(Xe){case e:return _t;case 34:case 39:e!==34&&e!==39&&Gc(Xe);break;case 40:e===41&&Gc(e);break;case 92:Ct();break}return _t}function t8(e,t){for(;Ct()&&e+Xe!==57&&!(e+Xe===84&&sr()===47););return"/*"+sa(t,_t-1)+"*"+yl(e===47?e:Ct())}function r8(e){for(;!Ui(sr());)Ct();return sa(e,_t)}function n8(e){return $x(Ga("",null,null,null,[""],e=Fx(e),0,[0],e))}function Ga(e,t,r,n,o,i,a,s,c){for(var l=0,d=0,p=a,f=0,m=0,y=0,g=1,v=1,b=1,T=0,A="",R=o,P=i,E=n,_=A;v;)switch(y=T,T=Ct()){case 40:if(y!=108&&at(_,p-1)==58){zc(_+=Pe(za(T),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:_+=za(T);break;case 9:case 10:case 13:case 32:_+=ZG(y);break;case 92:_+=e8(Va()-1,7);continue;case 47:switch(sr()){case 42:case 47:Ca(o8(t8(Ct(),Va()),t,r),c);break;default:_+="/"}break;case 123*g:s[l++]=tr(_)*b;case 125*g:case 59:case 0:switch(T){case 0:case 125:v=0;case 59+d:b==-1&&(_=Pe(_,/\f/g,"")),m>0&&tr(_)-p&&Ca(m>32?ng(_+";",n,r,p-1):ng(Pe(_," ","")+";",n,r,p-2),c);break;case 59:_+=";";default:if(Ca(E=rg(_,t,r,l,d,o,s,A,R=[],P=[],p),i),T===123)if(d===0)Ga(_,t,E,E,R,i,p,s,P);else switch(f===99&&at(_,3)===110?100:f){case 100:case 108:case 109:case 115:Ga(e,E,E,n&&Ca(rg(e,E,E,0,0,o,s,A,o,R=[],p),P),o,P,p,s,n?R:P);break;default:Ga(_,E,E,E,[""],P,0,s,P)}}l=d=m=0,g=b=1,A=_="",p=a;break;case 58:p=1+tr(_),m=y;default:if(g<1){if(T==123)--g;else if(T==125&&g++==0&&QG()==125)continue}switch(_+=yl(T),T*g){case 38:b=d>0?1:(_+="\f",-1);break;case 44:s[l++]=(tr(_)-1)*b,b=1;break;case 64:sr()===45&&(_+=za(Ct())),f=sr(),d=p=tr(A=_+=r8(Va())),T++;break;case 45:y===45&&tr(_)==2&&(g=0)}}return i}function rg(e,t,r,n,o,i,a,s,c,l,d){for(var p=o-1,f=o===0?i:[""],m=_f(f),y=0,g=0,v=0;y<n;++y)for(var b=0,T=Bi(e,p+1,p=zG(g=a[y])),A=e;b<m;++b)(A=Dx(g>0?f[b]+" "+T:Pe(T,/&\f/g,f[b])))&&(c[v++]=A);return bl(e,t,r,o===0?Ef:s,c,l,d)}function o8(e,t,r){return bl(e,t,r,jx,yl(XG()),Bi(e,2,-2),0)}function ng(e,t,r,n){return bl(e,t,r,wf,Bi(e,0,n),Bi(e,n+1,-1),n)}function Gn(e,t){for(var r="",n=_f(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function i8(e,t,r,n){switch(e.type){case VG:if(e.children.length)break;case JG:case wf:return e.return=e.return||e.value;case jx:return"";case qx:return e.return=e.value+"{"+Gn(e.children,n)+"}";case Ef:e.value=e.props.join(",")}return tr(r=Gn(e.children,n))?e.return=e.value+"{"+r+"}":""}function a8(e){var t=_f(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}function s8(e){return function(t){t.root||(t=t.return)&&e(t)}}var og=function(e){var t=new WeakMap;return function(r){if(t.has(r))return t.get(r);var n=e(r);return t.set(r,n),n}};function Bx(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var l8=function(e,t,r){for(var n=0,o=0;n=o,o=sr(),n===38&&o===12&&(t[r]=1),!Ui(o);)Ct();return sa(e,_t)},u8=function(e,t){var r=-1,n=44;do switch(Ui(n)){case 0:n===38&&sr()===12&&(t[r]=1),e[r]+=l8(_t-1,t,r);break;case 2:e[r]+=za(n);break;case 4:if(n===44){e[++r]=sr()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=yl(n)}while(n=Ct());return e},c8=function(e,t){return $x(u8(Fx(e),t))},ig=new WeakMap,d8=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!ig.get(r))&&!n){ig.set(e,!0);for(var o=[],i=c8(t,o),a=r.props,s=0,c=0;s<i.length;s++)for(var l=0;l<a.length;l++,c++)e.props[c]=o[s]?i[s].replace(/&\f/g,a[l]):a[l]+" "+i[s]}}},p8=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};function Ux(e,t){switch(WG(e,t)){case 5103:return Ce+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ce+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ce+e+Os+e+dt+e+e;case 6828:case 4268:return Ce+e+dt+e+e;case 6165:return Ce+e+dt+"flex-"+e+e;case 5187:return Ce+e+Pe(e,/(\w+).+(:[^]+)/,Ce+"box-$1$2"+dt+"flex-$1$2")+e;case 5443:return Ce+e+dt+"flex-item-"+Pe(e,/flex-|-self/,"")+e;case 4675:return Ce+e+dt+"flex-line-pack"+Pe(e,/align-content|flex-|-self/,"")+e;case 5548:return Ce+e+dt+Pe(e,"shrink","negative")+e;case 5292:return Ce+e+dt+Pe(e,"basis","preferred-size")+e;case 6060:return Ce+"box-"+Pe(e,"-grow","")+Ce+e+dt+Pe(e,"grow","positive")+e;case 4554:return Ce+Pe(e,/([^-])(transform)/g,"$1"+Ce+"$2")+e;case 6187:return Pe(Pe(Pe(e,/(zoom-|grab)/,Ce+"$1"),/(image-set)/,Ce+"$1"),e,"")+e;case 5495:case 3959:return Pe(e,/(image-set\([^]*)/,Ce+"$1$`$1");case 4968:return Pe(Pe(e,/(.+:)(flex-)?(.*)/,Ce+"box-pack:$3"+dt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ce+e+e;case 4095:case 3583:case 4068:case 2532:return Pe(e,/(.+)-inline(.+)/,Ce+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(tr(e)-1-t>6)switch(at(e,t+1)){case 109:if(at(e,t+4)!==45)break;case 102:return Pe(e,/(.+:)(.+)-([^]+)/,"$1"+Ce+"$2-$3$1"+Os+(at(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~zc(e,"stretch")?Ux(Pe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(at(e,t+1)!==115)break;case 6444:switch(at(e,tr(e)-3-(~zc(e,"!important")&&10))){case 107:return Pe(e,":",":"+Ce)+e;case 101:return Pe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ce+(at(e,14)===45?"inline-":"")+"box$3$1"+Ce+"$2$3$1"+dt+"$2box$3")+e}break;case 5936:switch(at(e,t+11)){case 114:return Ce+e+dt+Pe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ce+e+dt+Pe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ce+e+dt+Pe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ce+e+dt+e+e}return e}var f8=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case wf:e.return=Ux(e.value,e.length);break;case qx:return Gn([Xo(e,{value:Pe(e.value,"@","@"+Ce)})],n);case Ef:if(e.length)return YG(e.props,function(o){switch(KG(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Gn([Xo(e,{props:[Pe(o,/:(read-\w+)/,":"+Os+"$1")]})],n);case"::placeholder":return Gn([Xo(e,{props:[Pe(o,/:(plac\w+)/,":"+Ce+"input-$1")]}),Xo(e,{props:[Pe(o,/:(plac\w+)/,":"+Os+"$1")]}),Xo(e,{props:[Pe(o,/:(plac\w+)/,dt+"input-$1")]})],n)}return""})}},m8=[f8],Hx=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var g=y.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var n=e.stylisPlugins||m8,o={},i,a=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(y){for(var g=y.getAttribute("data-emotion").split(" "),v=1;v<g.length;v++)o[g[v]]=!0;a.push(y)});var s,c=[d8,p8];{var l,d=[i8,s8(function(y){l.insert(y)})],p=a8(c.concat(n,d)),f=function(y){return Gn(n8(y),p)};s=function(y,g,v,b){l=v,f(y?y+"{"+g.styles+"}":g.styles),b&&(m.inserted[g.name]=!0)}}var m={key:t,sheet:new HG({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:s};return m.sheet.hydrate(a),m};pl(kx());var h8=!0;function Tf(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var vl=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||h8===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},El=function(e,t,r){vl(e,t,r);var n=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var o=t;do e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function y8(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var g8={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},b8=/[A-Z]|^ms/g,v8=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Jx=function(e){return e.charCodeAt(1)===45},ag=function(e){return e!=null&&typeof e!="boolean"},Tu=Bx(function(e){return Jx(e)?e:e.replace(b8,"-$&").toLowerCase()}),sg=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(v8,function(r,n,o){return rr={name:n,styles:o,next:rr},n})}return g8[e]!==1&&!Jx(e)&&typeof t=="number"&&t!==0?t+"px":t};function Hi(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return rr={name:o.name,styles:o.styles,next:rr},o.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)rr={name:a.name,styles:a.styles,next:rr},a=a.next;var s=i.styles+";";return s}return E8(e,t,r)}case"function":{if(e!==void 0){var c=rr,l=r(e);return rr=c,Hi(e,t,l)}break}}var d=r;if(t==null)return d;var p=t[d];return p!==void 0?p:d}function E8(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Hi(e,t,r[o])+";";else for(var i in r){var a=r[i];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?n+=i+"{"+t[s]+"}":ag(s)&&(n+=Tu(i)+":"+sg(i,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var c=0;c<a.length;c++)ag(a[c])&&(n+=Tu(i)+":"+sg(i,a[c])+";");else{var l=Hi(e,t,a);switch(i){case"animation":case"animationName":{n+=Tu(i)+":"+l+";";break}default:n+=i+"{"+l+"}"}}}return n}var lg=/label:\s*([^\s;{]+)\s*(;|$)/g,rr;function la(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";rr=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=Hi(r,t,i);else{var a=i;o+=a[0]}for(var s=1;s<e.length;s++)if(o+=Hi(r,t,e[s]),n){var c=i;o+=c[s]}lg.lastIndex=0;for(var l="",d;(d=lg.exec(o))!==null;)l+="-"+d[1];var p=y8(o)+l;return{name:p,styles:o,next:rr}}var w8=function(e){return e()},Vx=Ie.useInsertionEffect?Ie.useInsertionEffect:!1,xf=Vx||w8,ug=Vx||Ie.useLayoutEffect,zx=Ie.createContext(typeof HTMLElement<"u"?Hx({key:"css"}):null);zx.Provider;var wl=function(e){return Ie.forwardRef(function(t,r){var n=Ie.useContext(zx);return e(t,n,r)})},Pn=Ie.createContext({}),_8=function(){return Ie.useContext(Pn)},T8=function(e,t){if(typeof t=="function"){var r=t(e);return r}return ht({},e,t)},x8=og(function(e){return og(function(t){return T8(e,t)})}),S8=function(e){var t=Ie.useContext(Pn);return e.theme!==t&&(t=x8(t)(e.theme)),Ie.createElement(Pn.Provider,{value:t},e.children)},Sf={}.hasOwnProperty,Wc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",A8=function(e,t){var r={};for(var n in t)Sf.call(t,n)&&(r[n]=t[n]);return r[Wc]=e,r},O8=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return vl(t,r,n),xf(function(){return El(t,r,n)}),null},R8=wl(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[Wc],i=[n],a="";typeof e.className=="string"?a=Tf(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var s=la(i,void 0,Ie.useContext(Pn));a+=t.key+"-"+s.name;var c={};for(var l in e)Sf.call(e,l)&&l!=="css"&&l!==Wc&&(c[l]=e[l]);return c.className=a,r&&(c.ref=r),Ie.createElement(Ie.Fragment,null,Ie.createElement(O8,{cache:t,serialized:s,isStringTag:typeof o=="string"}),Ie.createElement(o,c))}),C8=R8;pl(kx());var Kc=function(e,t){var r=arguments;if(t==null||!Sf.call(t,"css"))return Ie.createElement.apply(void 0,r);var n=r.length,o=new Array(n);o[0]=C8,o[1]=A8(e,t);for(var i=2;i<n;i++)o[i]=r[i];return Ie.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Kc||(Kc={}));wl(function(e,t){var r=e.styles,n=la([r],void 0,Ie.useContext(Pn)),o=Ie.useRef();return ug(function(){var i=t.key+"-global",a=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,c=document.querySelector('style[data-emotion="'+i+" "+n.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),c!==null&&(s=!0,c.setAttribute("data-emotion",i),a.hydrate([c])),o.current=[a,s],function(){a.flush()}},[t]),ug(function(){var i=o.current,a=i[0],s=i[1];if(s){i[1]=!1;return}if(n.next!==void 0&&El(t,n.next,!0),a.tags.length){var c=a.tags[a.tags.length-1].nextElementSibling;a.before=c,a.flush()}t.insert("",n,a,!1)},[t,n.name]),null});function _l(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return la(t)}function ua(){var e=_l.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var P8=function e(t){for(var r=t.length,n=0,o="";n<r;n++){var i=t[n];if(i!=null){var a=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))a=e(i);else{a="";for(var s in i)i[s]&&s&&(a&&(a+=" "),a+=s)}break}default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};function M8(e,t,r){var n=[],o=Tf(e,n,r);return n.length<2?r:o+t(n)}var N8=function(e){var t=e.cache,r=e.serializedArr;return xf(function(){for(var n=0;n<r.length;n++)El(t,r[n],!1)}),null};wl(function(e,t){var r=[],n=function(){for(var s=arguments.length,c=new Array(s),l=0;l<s;l++)c[l]=arguments[l];var d=la(c,t.registered);return r.push(d),vl(t,d,!1),t.key+"-"+d.name},o=function(){for(var s=arguments.length,c=new Array(s),l=0;l<s;l++)c[l]=arguments[l];return M8(t.registered,n,P8(c))},i={css:n,cx:o,theme:Ie.useContext(Pn)},a=e.children(i);return Ie.createElement(Ie.Fragment,null,Ie.createElement(N8,{cache:t,serializedArr:r}),a)});var I8=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Gx=Bx(function(e){return I8.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),k8=Gx,j8=function(e){return e!=="theme"},cg=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?k8:j8},dg=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(i){return e.__emotion_forwardProp(i)&&o(i)}:o}return typeof n!="function"&&r&&(n=e.__emotion_forwardProp),n},q8=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return vl(t,r,n),xf(function(){return El(t,r,n)}),null},D8=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,a;r!==void 0&&(i=r.label,a=r.target);var s=dg(t,r,n),c=s||cg(o),l=!c("as");return function(){var d=arguments,p=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&p.push("label:"+i+";"),d[0]==null||d[0].raw===void 0)p.push.apply(p,d);else{var f=d[0];p.push(f[0]);for(var m=d.length,y=1;y<m;y++)p.push(d[y],f[y])}var g=wl(function(v,b,T){var A=l&&v.as||o,R="",P=[],E=v;if(v.theme==null){E={};for(var _ in v)E[_]=v[_];E.theme=Ie.useContext(Pn)}typeof v.className=="string"?R=Tf(b.registered,P,v.className):v.className!=null&&(R=v.className+" ");var x=la(p.concat(P),b.registered,E);R+=b.key+"-"+x.name,a!==void 0&&(R+=" "+a);var S=l&&s===void 0?cg(A):c,F={};for(var j in v)l&&j==="as"||S(j)&&(F[j]=v[j]);return F.className=R,T&&(F.ref=T),Ie.createElement(Ie.Fragment,null,Ie.createElement(q8,{cache:b,serialized:x,isStringTag:typeof A=="string"}),Ie.createElement(A,F))});return g.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=o,g.__emotion_styles=p,g.__emotion_forwardProp=s,Object.defineProperty(g,"toString",{value:function(){return"."+a}}),g.withComponent=function(v,b){var T=e(v,ht({},r,b,{shouldForwardProp:dg(g,b,!0)}));return T.apply(void 0,p)},g}},L8=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","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","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Yc=D8.bind(null);L8.forEach(function(e){Yc[e]=Yc(e)});var Wx=pl(kV(),1),Kx=(0,Wx.default)(1)(({typography:e})=>({body:{fontFamily:e.fonts.base,fontSize:e.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},"*":{boxSizing:"border-box"},"h1, h2, h3, h4, h5, h6":{fontWeight:e.weight.regular,margin:0,padding:0},"button, input, textarea, select":{fontFamily:"inherit",fontSize:"inherit",boxSizing:"border-box"},sub:{fontSize:"0.8em",bottom:"-0.2em"},sup:{fontSize:"0.8em",top:"-0.2em"},"b, strong":{fontWeight:e.weight.bold},hr:{border:"none",borderTop:"1px solid silver",clear:"both",marginBottom:"1.25rem"},code:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"},pre:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0"}}));(0,Wx.default)(1)(({color:e,background:t,typography:r})=>{let n=Kx({typography:r});return{...n,body:{...n.body,position:"fixed",width:"100vw",height:"100vh",overflow:"hidden",color:e.defaultText,background:t.app},hr:{...n.hr,borderTop:`1px solid ${e.border}`},".sb-sr-only, .sb-hidden-until-focus:not(:focus)":{position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",border:0},".sb-hidden-until-focus":{opacity:0,transition:"opacity 150ms ease-out"},".sb-hidden-until-focus:focus":{opacity:1},"[data-sb-landmark]":{position:"relative"},"[data-sb-landmark]:focus-visible":{outline:"none"},"[data-sb-landmark]:focus-visible::after":{outline:`2px solid ${e.primary}`,outlineOffset:"-2px"},"[data-sb-landmark]::after":{content:"''",position:"absolute",inset:0,pointerEvents:"none"},".react-aria-Popover:focus-visible":{outline:"none"}}});var F8={rubber:"cubic-bezier(0.175, 0.885, 0.335, 1.05)"},$8=ua`
1067
- from {
1068
- transform: rotate(0deg);
1069
- }
1070
- to {
1071
- transform: rotate(360deg);
1072
- }
1073
- `,Yx=ua`
1074
- 0%, 100% { opacity: 1; }
1075
- 50% { opacity: .4; }
1076
- `,B8=ua`
1077
- 0% { transform: translateY(1px); }
1078
- 25% { transform: translateY(0px); }
1079
- 50% { transform: translateY(-3px); }
1080
- 100% { transform: translateY(1px); }
1081
- `,U8=ua`
1082
- 0%, 100% { transform:translate3d(0,0,0); }
1083
- 12.5%, 62.5% { transform:translate3d(-4px,0,0); }
1084
- 37.5%, 87.5% { transform: translate3d(4px,0,0); }
1085
- `,H8=_l`
1086
- animation: ${Yx} 1.5s ease-in-out infinite;
1087
- color: transparent;
1088
- cursor: progress;
1089
- `,J8=_l`
1090
- transition: all 150ms ease-out;
1091
- transform: translate3d(0, 0, 0);
1092
-
1093
- &:hover {
1094
- transform: translate3d(0, -2px, 0);
1095
- }
1096
-
1097
- &:active {
1098
- transform: translate3d(0, 0, 0);
1099
- }
1100
- `,V8={rotate360:$8,glow:Yx,float:B8,jiggle:U8,inlineGlow:H8,hoverable:J8},z8={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"rgb(36, 36, 36)",BASE_COLOR:"rgb(213, 213, 213)",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(227, 110, 236)",OBJECT_VALUE_NULL_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_REGEXP_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_STRING_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_NUMBER_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_BOOLEAN_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(85, 106, 242)",HTML_TAG_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(155, 187, 220)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(242, 151, 102)",HTML_COMMENT_COLOR:"rgb(137, 137, 137)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"rgb(145, 145, 145)",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"rgb(85, 85, 85)",TABLE_TH_BACKGROUND_COLOR:"rgb(44, 44, 44)",TABLE_TH_HOVER_COLOR:"rgb(48, 48, 48)",TABLE_SORT_ICON_COLOR:"black",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},G8={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"white",BASE_COLOR:"black",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(136, 19, 145)",OBJECT_VALUE_NULL_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_REGEXP_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_STRING_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_NUMBER_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_BOOLEAN_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(13, 34, 170)",HTML_TAG_COLOR:"rgb(168, 148, 166)",HTML_TAGNAME_COLOR:"rgb(136, 18, 128)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(153, 69, 0)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(26, 26, 166)",HTML_COMMENT_COLOR:"rgb(35, 110, 37)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"#6e6e6e",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"#aaa",TABLE_TH_BACKGROUND_COLOR:"#eee",TABLE_TH_HOVER_COLOR:"hsla(0, 0%, 90%, 1)",TABLE_SORT_ICON_COLOR:"#6e6e6e",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},W8=e=>Object.entries(e).reduce((t,[r,n])=>({...t,[r]:CG(n)}),{}),K8=({colors:e,mono:t})=>{let r=W8(e);return{token:{fontFamily:t,WebkitFontSmoothing:"antialiased","&.tag":r.red3,"&.comment":{...r.green1,fontStyle:"italic"},"&.prolog":{...r.green1,fontStyle:"italic"},"&.doctype":{...r.green1,fontStyle:"italic"},"&.cdata":{...r.green1,fontStyle:"italic"},"&.string":r.red1,"&.url":r.cyan1,"&.symbol":r.cyan1,"&.number":r.cyan1,"&.boolean":r.cyan1,"&.variable":r.cyan1,"&.constant":r.cyan1,"&.inserted":r.cyan1,"&.atrule":r.blue1,"&.keyword":r.blue1,"&.attr-value":r.blue1,"&.punctuation":r.gray1,"&.operator":r.gray1,"&.function":r.gray1,"&.deleted":r.red2,"&.important":{fontWeight:"bold"},"&.bold":{fontWeight:"bold"},"&.italic":{fontStyle:"italic"},"&.class-name":r.cyan2,"&.selector":r.red3,"&.attr-name":r.red4,"&.property":r.red4,"&.regex":r.red4,"&.entity":r.red4,"&.directive.tag .tag":{background:"#ffff00",...r.gray1}},"language-json .token.boolean":r.blue1,"language-json .token.number":r.blue1,"language-json .token.property":r.cyan2,namespace:{opacity:.7}}},Y8={green1:"#008000",red1:"#A31515",red2:"#9a050f",red3:"#800000",red4:"#eb0000",gray1:"#393A34",cyan1:"#008380",cyan2:"#007ca0",blue1:"#0000ff",blue2:"#00009f"},X8={green1:"#95999D",red1:"#92C379",red2:"#9a050f",red3:"#A8FF60",red4:"#96CBFE",gray1:"#EDEDED",cyan1:"#C6C5FE",cyan2:"#FFFFB6",blue1:"#B474DD",blue2:"#00009f"},Q8=e=>({primary:e.colorPrimary,secondary:e.colorSecondary,tertiary:le.tertiary,ancillary:le.ancillary,orange:le.orange,gold:le.gold,green:le.green,seafoam:le.seafoam,purple:le.purple,ultraviolet:le.ultraviolet,lightest:le.lightest,lighter:le.lighter,light:le.light,mediumlight:le.mediumlight,medium:le.medium,mediumdark:le.mediumdark,dark:le.dark,darker:le.darker,darkest:le.darkest,border:le.border,positive:le.positive,negative:le.negative,warning:le.warning,critical:le.critical,defaultText:e.textColor||le.darkest,inverseText:e.textInverseColor||le.lightest,positiveText:le.positiveText,negativeText:le.negativeText,warningText:le.warningText}),Xc=(e=mi[bf()])=>{let{base:t,colorPrimary:r,colorSecondary:n,appBg:o,appContentBg:i,appHoverBg:a,appPreviewBg:s,appBorderColor:c,appBorderRadius:l,fontBase:d,fontCode:p,textColor:f,textInverseColor:m,barTextColor:y,barHoverColor:g,barSelectedColor:v,barBg:b,buttonBg:T,buttonBorder:A,booleanBg:R,booleanSelectedBg:P,inputBg:E,inputBorder:_,inputTextColor:x,inputBorderRadius:S,brandTitle:F,brandUrl:j,brandImage:J,brandTarget:N,gridCellSize:O,...q}=e;return{...q,base:t,...t==="dark"?Jc.dark:Jc.light,color:Q8(e),background:{app:o,bar:b,content:i,preview:s,gridCellSize:O||gr.gridCellSize,hoverable:a,positive:gr.positive,negative:gr.negative,warning:gr.warning,critical:gr.critical},typography:{fonts:{base:d,mono:p},weight:_r.weight,size:_r.size},animation:V8,easing:F8,input:{background:E,border:_,borderRadius:S,color:x},button:{background:T||E,border:A||_},boolean:{background:R||_,selectedBackground:P||E},layoutMargin:10,appBorderColor:c,appBorderRadius:l,barTextColor:y,barHoverColor:g||n,barSelectedColor:v||n,barBg:b,brand:{title:F,url:j,image:J||(F?null:void 0),target:N},code:K8({colors:t==="dark"?X8:Y8,mono:p}),addonActionsTheme:{...t==="dark"?z8:G8,BASE_FONT_FAMILY:p,BASE_FONT_SIZE:_r.size.s2-1,BASE_LINE_HEIGHT:"18px",BASE_BACKGROUND_COLOR:"transparent",BASE_COLOR:f,ARROW_COLOR:hG(.2,c),ARROW_MARGIN_RIGHT:4,ARROW_FONT_SIZE:8,TREENODE_FONT_FAMILY:p,TREENODE_FONT_SIZE:_r.size.s2-1,TREENODE_LINE_HEIGHT:"18px",TREENODE_PADDING_LEFT:12}}};const{logger:Z8}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var e9=e=>Object.keys(e).length===0,xu=e=>e!=null&&typeof e=="object",t9=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),r9=()=>Object.create(null),Xx=(e,t)=>e===t||!xu(e)||!xu(t)?{}:Object.keys(e).reduce((r,n)=>{if(t9(t,n)){let o=Xx(e[n],t[n]);return xu(o)&&e9(o)||(r[n]=o),r}return r[n]=void 0,r},r9()),n9=Xx,o9=e=>{if(!e)return Xc(Vc);let t=n9(Vc,e);return Object.keys(t).length&&Z8.warn(jV`
1101
- Your theme is missing properties, you should update your theme!
1102
-
1103
- theme-data missing:
1104
- `,t),Xc(e)},i9="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */";const oW=Object.freeze(Object.defineProperty({__proto__:null,ThemeProvider:S8,background:gr,color:le,convert:Xc,create:vf,createCache:Hx,createReset:Kx,css:_l,ensure:o9,getPreferredColorScheme:bf,ignoreSsrWarning:i9,isPropValid:Gx,get jsx(){return Kc},keyframes:ua,lighten:kG,styled:Yc,themes:mi,tokens:Jc,typography:_r,useTheme:_8},Symbol.toStringTag,{value:"Module"})),Qx={brandTitle:"Brightspot UI",brandImage:"/brightspot-logo.svg",brandTarget:"_self"},Su=vf({base:"light",...Qx,colorPrimary:"#F0433E",colorSecondary:"#144CEB",appBg:"#FCFCFD",appContentBg:"#FFFFFF",appPreviewBg:"#FFFFFF",appBorderColor:"#EAECF0",appBorderRadius:6,textColor:"#101828",textInverseColor:"#FFFFFF",textMutedColor:"#667085",barTextColor:"#667085",barHoverColor:"#1D2939",barSelectedColor:"#144CEB",barBg:"#F9FAFB",inputBg:"#FFFFFF",inputBorder:"#D0D5DD",inputTextColor:"#101828",inputBorderRadius:4,fontBase:'"Noto Sans", "Helvetica Neue", Arial, sans-serif',fontCode:"monospace"}),Au=vf({base:"dark",...Qx,colorPrimary:"#FDA398",colorSecondary:"#235CEF",appBg:"#1E1F21",appContentBg:"#1E1F21",appPreviewBg:"#1E1F21",appBorderColor:"#3E3E40",appBorderRadius:6,textColor:"#FAFAFA",textInverseColor:"#1E1F21",textMutedColor:"#B9B7B9",barTextColor:"#B9B7B9",barHoverColor:"#F5F5F5",barSelectedColor:"#D1E0FF",barBg:"#2A2B2D",inputBg:"#1E1F21",inputBorder:"#464648",inputTextColor:"#FAFAFA",inputBorderRadius:4,fontBase:'"Noto Sans", "Helvetica Neue", Arial, sans-serif',fontCode:"monospace"});xz(k6);const Zx=window.matchMedia("(prefers-color-scheme: dark)");Zx.addEventListener("change",()=>window.location.reload());S6({hideArgRef:!1,typeRef:{"lit-html":"https://lit.dev/docs/api/templates/"},renderDefaultValues:!0,categoryOrder:["attributes","properties","slots","methods","events","cssStates","cssProps"]});const a9={parameters:{docs:{theme:Zx.matches?Au:Su},options:{storySort:{order:["Welcome","*"]}},backgrounds:{options:{customColor:{name:"gradient",value:"linear-gradient(330deg, #dee0f0 0, #fefdff 100%)"}}},controls:{expanded:!0,matchers:{color:/(background|color)$/i,date:/Date$/i}}},globalTypes:{theme:{description:"Light/Dark mode for components",toolbar:{title:"Theme",icon:"circlehollow",items:[{value:"light",title:"Light mode",icon:"sun"},{value:"dark",title:"Dark mode",icon:"moon"}],dynamicTitle:!0}}},initialGlobals:{theme:"light"},decorators:[(e,t)=>{const n=(t.globals.theme||"light")==="dark";return document.body.style.backgroundColor=n?Au.appBg:Su.appContentBg,document.body.style.color=n?Au.textColor:Su.textColor,document.documentElement.classList.toggle("is-dark",n),rx`<div class="${n?"darkTheme is-dark":"lightTheme"}">${e()}</div>`}]},s9=Object.freeze(Object.defineProperty({__proto__:null,default:a9},Symbol.toStringTag,{value:"Module"}));G0();const{composeConfigs:l9,PreviewWeb:u9}=__STORYBOOK_MODULE_PREVIEW_API__,c9=(e=[])=>{const t=[e[0]??mz,e[1]??Dz,e[2]??Lz,e[3]??Gz,e[4]??s9];return l9(t)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new u9(DV,c9);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{cG as $,$9 as A,F9 as B,L9 as C,D9 as D,Ke as E,q9 as F,j9 as G,k9 as H,R9 as I,O9 as J,A9 as K,T9 as L,pl as M,m9 as N,jV as O,DG as P,jG as Q,LG as R,Yc as S,kV as T,vf as U,rW as V,ua as W,aG as X,Gx as Y,po as Z,oa as _,hu as a,nW as a0,kG as a1,le as a2,ht as a3,i9 as a4,_r as a5,_8 as a6,S8 as a7,Xc as a8,mi as a9,o9 as aa,G9 as ab,uz as ac,Es as ad,vx as ae,gx as af,Cn as ag,Q0 as ah,Dc as ai,eW as aj,Z9 as ak,oW as al,h9 as b,y9 as c,b9 as d,bx as e,Xz as f,tW as g,C9 as h,Ua as i,v9 as j,S9 as k,_9 as l,E9 as m,w9 as n,M9 as o,g9 as p,N9 as q,Ie as r,x9 as s,I9 as t,P9 as u,J9 as v,H9 as w,rx as x,U9 as y,B9 as z};