xtreme-ui 0.0.131 → 0.0.133

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 (257) hide show
  1. package/dist/components/base/Textfield/Textfield.js +17 -17
  2. package/dist/components/layout/ImageEditor/ImageEditor.js +28 -28
  3. package/dist/components/layout/Navigation/Navigation.js +8 -8
  4. package/dist/components/layout/SiderModal/SiderModal.js +11 -11
  5. package/dist/components/layout/ThemePicker/themePicker.css +1 -1
  6. package/dist/storybook/CNAME +1 -0
  7. package/dist/storybook/addon-visual-tests-assets/visual-test-illustration.mp4 +0 -0
  8. package/dist/storybook/assets/ActionCard-CDhkSMfk.js +1 -0
  9. package/dist/storybook/assets/ActionCard-DHSVBAUN.css +1 -0
  10. package/dist/storybook/assets/ActionCard.stories-BprGCxRW.js +3 -0
  11. package/dist/storybook/assets/Avatar-D1jiU4vG.js +1 -0
  12. package/dist/storybook/assets/Avatar-DBQ2m7dF.css +1 -0
  13. package/dist/storybook/assets/Avatar.stories-BXepr3nb.js +6 -0
  14. package/dist/storybook/assets/Button-BV0Y9Gxw.css +1 -0
  15. package/dist/storybook/assets/Button-iXUA29dG.js +1 -0
  16. package/dist/storybook/assets/Button.stories-D2hJNNae.js +134 -0
  17. package/dist/storybook/assets/Color-6BZIO3FS-dpk_P4Yi.js +1 -0
  18. package/dist/storybook/assets/ColorPicker-Bk2Vaegn.css +1 -0
  19. package/dist/storybook/assets/ColorPicker-BsPt2zbk.js +1 -0
  20. package/dist/storybook/assets/ColorPicker.stories-Fm3Z4qk9.js +3 -0
  21. package/dist/storybook/assets/ColorPopper-BaeUSSsk.css +1 -0
  22. package/dist/storybook/assets/ColorPopper-DWua0ODX.js +1 -0
  23. package/dist/storybook/assets/ColorPopper.stories-BC8O36hp.js +12 -0
  24. package/dist/storybook/assets/DatePicker-Bpgw2Crt.css +1 -0
  25. package/dist/storybook/assets/DatePicker.stories-yzPRloUp.js +14 -0
  26. package/dist/storybook/assets/DocsRenderer-LL677BLK-BLOk8dP0.js +2 -0
  27. package/dist/storybook/assets/FilePicker-C3EhbH33.js +81 -0
  28. package/dist/storybook/assets/FilePicker-DtaISAsC.css +1 -0
  29. package/dist/storybook/assets/FilePicker.stories-C8XEDCBq.js +13 -0
  30. package/dist/storybook/assets/ImageEditor.stories-h6mPNfYq.js +5 -0
  31. package/dist/storybook/assets/Navigation-CiQjKsoo.css +1 -0
  32. package/dist/storybook/assets/Navigation-SY85q3Xw.js +3 -0
  33. package/dist/storybook/assets/Navigation.stories-DZBer6P7.js +8 -0
  34. package/dist/storybook/assets/ProgressBar-DrZ8QUUS.js +1 -0
  35. package/dist/storybook/assets/ProgressBar-_wO4VC9I.css +1 -0
  36. package/dist/storybook/assets/ProgressBar.stories-Ci04QAnM.js +10 -0
  37. package/dist/storybook/assets/Select-BsHz0H2Y.css +1 -0
  38. package/dist/storybook/assets/Select-Cv-T9WrG.js +6 -0
  39. package/dist/storybook/assets/Select.stories-BmI528e2.js +40 -0
  40. package/dist/storybook/assets/Sider-Dt7wlrLi.css +1 -0
  41. package/dist/storybook/assets/Sider.stories-BAl-X4Np.js +3 -0
  42. package/dist/storybook/assets/SiderModal-Bj1kNVNc.css +1 -0
  43. package/dist/storybook/assets/SiderModal-CyOZIaEm.js +1 -0
  44. package/dist/storybook/assets/SiderModal.stories-7HH30kpa.js +12 -0
  45. package/dist/storybook/assets/Spinner-BmqMSUsr.css +1 -0
  46. package/dist/storybook/assets/Spinner-BqfkEvYZ.js +1 -0
  47. package/dist/storybook/assets/Spinner.stories-BHMzCihK.js +3 -0
  48. package/dist/storybook/assets/Textfield-C07scTpW.js +1 -0
  49. package/dist/storybook/assets/Textfield-ChSq7tGa.css +1 -0
  50. package/dist/storybook/assets/Textfield.stories-DtDbskGc.js +17 -0
  51. package/dist/storybook/assets/ThemePicker-CGG5btD4.css +1 -0
  52. package/dist/storybook/assets/ThemePicker.stories-_DjPaif7.js +3 -0
  53. package/dist/storybook/assets/ThemeSelect-peUX0UhP.css +1 -0
  54. package/dist/storybook/assets/ThemeSelect-vmSlw4G2.js +1 -0
  55. package/dist/storybook/assets/ThemeSelect.stories-DfWa4NhC.js +12 -0
  56. package/dist/storybook/assets/ThemeSwitch-CjiVtqE_.css +1 -0
  57. package/dist/storybook/assets/ThemeSwitch.stories-BkBv5yOE.js +5 -0
  58. package/dist/storybook/assets/WithTooltip-65CFNBJE-licJlHua.js +9 -0
  59. package/dist/storybook/assets/blocks-CeTRoaZu.js +755 -0
  60. package/dist/storybook/assets/clsx-B-dksMZM.js +1 -0
  61. package/dist/storybook/assets/common-DNLsa6ye.js +1 -0
  62. package/dist/storybook/assets/floating-ui.dom-BTmOqyi9.js +1 -0
  63. package/dist/storybook/assets/formatter-EIJCOSYU-i6ULsfEu.js +1 -0
  64. package/dist/storybook/assets/iframe-0GvB1Q6-.css +1 -0
  65. package/dist/storybook/assets/iframe-D1n-vaq5.js +1110 -0
  66. package/dist/storybook/assets/index-8dks9oCN.js +1 -0
  67. package/dist/storybook/assets/index-DOqVBqX6.js +1 -0
  68. package/dist/storybook/assets/index-DXUygHIV.js +1 -0
  69. package/dist/storybook/assets/introduction-Dl1kRbxz.js +26 -0
  70. package/dist/storybook/assets/objectWithoutPropertiesLoose-DXv8YDMk.js +1 -0
  71. package/dist/storybook/assets/preload-helper-PPVm8Dsz.js +1 -0
  72. package/dist/storybook/assets/react-18-DeSINpPJ.js +9 -0
  73. package/dist/storybook/assets/syntaxhighlighter-ED5Y7EFY-CBd33VHX.js +6 -0
  74. package/dist/storybook/assets/useScreen-BreOtDA0.js +2 -0
  75. package/dist/storybook/components/ActionCard/ActionCard.d.ts +3 -0
  76. package/dist/storybook/components/ActionCard/ActionCard.d.ts.map +1 -0
  77. package/dist/storybook/components/ActionCard/exports.d.ts +3 -0
  78. package/dist/storybook/components/ActionCard/exports.d.ts.map +1 -0
  79. package/dist/storybook/components/ActionCard/types.d.ts +15 -0
  80. package/dist/storybook/components/ActionCard/types.d.ts.map +1 -0
  81. package/dist/storybook/components/Avatar/Avatar.d.ts +3 -0
  82. package/dist/storybook/components/Avatar/Avatar.d.ts.map +1 -0
  83. package/dist/storybook/components/Avatar/exports.d.ts +4 -0
  84. package/dist/storybook/components/Avatar/exports.d.ts.map +1 -0
  85. package/dist/storybook/components/Avatar/types.d.ts +15 -0
  86. package/dist/storybook/components/Avatar/types.d.ts.map +1 -0
  87. package/dist/storybook/components/Button/Button.d.ts +3 -0
  88. package/dist/storybook/components/Button/Button.d.ts.map +1 -0
  89. package/dist/storybook/components/Button/exports.d.ts +4 -0
  90. package/dist/storybook/components/Button/exports.d.ts.map +1 -0
  91. package/dist/storybook/components/Button/types.d.ts +39 -0
  92. package/dist/storybook/components/Button/types.d.ts.map +1 -0
  93. package/dist/storybook/components/ColorPicker/ColorPicker.d.ts +3 -0
  94. package/dist/storybook/components/ColorPicker/ColorPicker.d.ts.map +1 -0
  95. package/dist/storybook/components/ColorPicker/exports.d.ts +3 -0
  96. package/dist/storybook/components/ColorPicker/exports.d.ts.map +1 -0
  97. package/dist/storybook/components/ColorPicker/types.d.ts +9 -0
  98. package/dist/storybook/components/ColorPicker/types.d.ts.map +1 -0
  99. package/dist/storybook/components/ColorPopper/ColorPopper.d.ts +12 -0
  100. package/dist/storybook/components/ColorPopper/ColorPopper.d.ts.map +1 -0
  101. package/dist/storybook/components/ColorPopper/exports.d.ts +3 -0
  102. package/dist/storybook/components/ColorPopper/exports.d.ts.map +1 -0
  103. package/dist/storybook/components/ColorPopper/types.d.ts +27 -0
  104. package/dist/storybook/components/ColorPopper/types.d.ts.map +1 -0
  105. package/dist/storybook/components/DatePicker/DatePicker.d.ts +3 -0
  106. package/dist/storybook/components/DatePicker/DatePicker.d.ts.map +1 -0
  107. package/dist/storybook/components/DatePicker/exports.d.ts +4 -0
  108. package/dist/storybook/components/DatePicker/exports.d.ts.map +1 -0
  109. package/dist/storybook/components/DatePicker/types.d.ts +27 -0
  110. package/dist/storybook/components/DatePicker/types.d.ts.map +1 -0
  111. package/dist/storybook/components/FilePicker/FilePicker.d.ts +3 -0
  112. package/dist/storybook/components/FilePicker/FilePicker.d.ts.map +1 -0
  113. package/dist/storybook/components/FilePicker/exports.d.ts +4 -0
  114. package/dist/storybook/components/FilePicker/exports.d.ts.map +1 -0
  115. package/dist/storybook/components/FilePicker/getFilePickerIcon.d.ts +2 -0
  116. package/dist/storybook/components/FilePicker/getFilePickerIcon.d.ts.map +1 -0
  117. package/dist/storybook/components/FilePicker/types.d.ts +56 -0
  118. package/dist/storybook/components/FilePicker/types.d.ts.map +1 -0
  119. package/dist/storybook/components/ImageEditor/ImageEditor.d.ts +3 -0
  120. package/dist/storybook/components/ImageEditor/ImageEditor.d.ts.map +1 -0
  121. package/dist/storybook/components/ImageEditor/exports.d.ts +3 -0
  122. package/dist/storybook/components/ImageEditor/exports.d.ts.map +1 -0
  123. package/dist/storybook/components/ImageEditor/types.d.ts +15 -0
  124. package/dist/storybook/components/ImageEditor/types.d.ts.map +1 -0
  125. package/dist/storybook/components/Navigation/Navigation.d.ts +3 -0
  126. package/dist/storybook/components/Navigation/Navigation.d.ts.map +1 -0
  127. package/dist/storybook/components/Navigation/exports.d.ts +3 -0
  128. package/dist/storybook/components/Navigation/exports.d.ts.map +1 -0
  129. package/dist/storybook/components/Navigation/types.d.ts +15 -0
  130. package/dist/storybook/components/Navigation/types.d.ts.map +1 -0
  131. package/dist/storybook/components/ProgressBar/ProgressBar.d.ts +3 -0
  132. package/dist/storybook/components/ProgressBar/ProgressBar.d.ts.map +1 -0
  133. package/dist/storybook/components/ProgressBar/exports.d.ts +3 -0
  134. package/dist/storybook/components/ProgressBar/exports.d.ts.map +1 -0
  135. package/dist/storybook/components/ProgressBar/types.d.ts +6 -0
  136. package/dist/storybook/components/ProgressBar/types.d.ts.map +1 -0
  137. package/dist/storybook/components/Select/Select.d.ts +3 -0
  138. package/dist/storybook/components/Select/Select.d.ts.map +1 -0
  139. package/dist/storybook/components/Select/exports.d.ts +3 -0
  140. package/dist/storybook/components/Select/exports.d.ts.map +1 -0
  141. package/dist/storybook/components/Select/types.d.ts +39 -0
  142. package/dist/storybook/components/Select/types.d.ts.map +1 -0
  143. package/dist/storybook/components/Sider/Sider.d.ts +3 -0
  144. package/dist/storybook/components/Sider/Sider.d.ts.map +1 -0
  145. package/dist/storybook/components/Sider/exports.d.ts +3 -0
  146. package/dist/storybook/components/Sider/exports.d.ts.map +1 -0
  147. package/dist/storybook/components/Sider/types.d.ts +17 -0
  148. package/dist/storybook/components/Sider/types.d.ts.map +1 -0
  149. package/dist/storybook/components/SiderModal/SiderModal.d.ts +3 -0
  150. package/dist/storybook/components/SiderModal/SiderModal.d.ts.map +1 -0
  151. package/dist/storybook/components/SiderModal/exports.d.ts +3 -0
  152. package/dist/storybook/components/SiderModal/exports.d.ts.map +1 -0
  153. package/dist/storybook/components/SiderModal/types.d.ts +11 -0
  154. package/dist/storybook/components/SiderModal/types.d.ts.map +1 -0
  155. package/dist/storybook/components/Spinner/Spinner.d.ts +3 -0
  156. package/dist/storybook/components/Spinner/Spinner.d.ts.map +1 -0
  157. package/dist/storybook/components/Spinner/exports.d.ts +4 -0
  158. package/dist/storybook/components/Spinner/exports.d.ts.map +1 -0
  159. package/dist/storybook/components/Spinner/types.d.ts +12 -0
  160. package/dist/storybook/components/Spinner/types.d.ts.map +1 -0
  161. package/dist/storybook/components/Textfield/Textfield.d.ts +3 -0
  162. package/dist/storybook/components/Textfield/Textfield.d.ts.map +1 -0
  163. package/dist/storybook/components/Textfield/exports.d.ts +3 -0
  164. package/dist/storybook/components/Textfield/exports.d.ts.map +1 -0
  165. package/dist/storybook/components/Textfield/types.d.ts +82 -0
  166. package/dist/storybook/components/Textfield/types.d.ts.map +1 -0
  167. package/dist/storybook/components/ThemePicker/ThemePicker.d.ts +3 -0
  168. package/dist/storybook/components/ThemePicker/ThemePicker.d.ts.map +1 -0
  169. package/dist/storybook/components/ThemePicker/exports.d.ts +3 -0
  170. package/dist/storybook/components/ThemePicker/exports.d.ts.map +1 -0
  171. package/dist/storybook/components/ThemePicker/types.d.ts +4 -0
  172. package/dist/storybook/components/ThemePicker/types.d.ts.map +1 -0
  173. package/dist/storybook/components/ThemeSelect/ThemeSelect.d.ts +3 -0
  174. package/dist/storybook/components/ThemeSelect/ThemeSelect.d.ts.map +1 -0
  175. package/dist/storybook/components/ThemeSelect/exports.d.ts +3 -0
  176. package/dist/storybook/components/ThemeSelect/exports.d.ts.map +1 -0
  177. package/dist/storybook/components/ThemeSelect/types.d.ts +12 -0
  178. package/dist/storybook/components/ThemeSelect/types.d.ts.map +1 -0
  179. package/dist/storybook/components/ThemeSwitch/ThemeSwitch.d.ts +3 -0
  180. package/dist/storybook/components/ThemeSwitch/ThemeSwitch.d.ts.map +1 -0
  181. package/dist/storybook/components/ThemeSwitch/exports.d.ts +3 -0
  182. package/dist/storybook/components/ThemeSwitch/exports.d.ts.map +1 -0
  183. package/dist/storybook/components/ThemeSwitch/types.d.ts +9 -0
  184. package/dist/storybook/components/ThemeSwitch/types.d.ts.map +1 -0
  185. package/dist/storybook/components/context/Data/DataContext.d.ts +5 -0
  186. package/dist/storybook/components/context/Data/DataContext.d.ts.map +1 -0
  187. package/dist/storybook/components/context/Data/types.d.ts +10 -0
  188. package/dist/storybook/components/context/Data/types.d.ts.map +1 -0
  189. package/dist/storybook/components/context/Theme/ThemeContext.d.ts +5 -0
  190. package/dist/storybook/components/context/Theme/ThemeContext.d.ts.map +1 -0
  191. package/dist/storybook/components/context/Theme/types.d.ts +24 -0
  192. package/dist/storybook/components/context/Theme/types.d.ts.map +1 -0
  193. package/dist/storybook/components/context/index.d.ts +7 -0
  194. package/dist/storybook/components/context/index.d.ts.map +1 -0
  195. package/dist/storybook/components/context/useContext.d.ts +5 -0
  196. package/dist/storybook/components/context/useContext.d.ts.map +1 -0
  197. package/dist/storybook/components/hooks/exports.d.ts +5 -0
  198. package/dist/storybook/components/hooks/exports.d.ts.map +1 -0
  199. package/dist/storybook/components/hooks/types.d.ts +4 -0
  200. package/dist/storybook/components/hooks/types.d.ts.map +1 -0
  201. package/dist/storybook/components/hooks/useDebouncedEffect.d.ts +3 -0
  202. package/dist/storybook/components/hooks/useDebouncedEffect.d.ts.map +1 -0
  203. package/dist/storybook/components/hooks/usePersistingState.d.ts +3 -0
  204. package/dist/storybook/components/hooks/usePersistingState.d.ts.map +1 -0
  205. package/dist/storybook/components/hooks/useScreen.d.ts +12 -0
  206. package/dist/storybook/components/hooks/useScreen.d.ts.map +1 -0
  207. package/dist/storybook/favicon-wrapper.svg +46 -0
  208. package/dist/storybook/favicon.svg +1 -0
  209. package/dist/storybook/iframe.html +705 -0
  210. package/dist/storybook/index.d.ts +45 -0
  211. package/dist/storybook/index.d.ts.map +1 -0
  212. package/dist/storybook/index.html +148 -0
  213. package/dist/storybook/index.json +1 -0
  214. package/dist/storybook/nunito-sans-bold-italic.woff2 +0 -0
  215. package/dist/storybook/nunito-sans-bold.woff2 +0 -0
  216. package/dist/storybook/nunito-sans-italic.woff2 +0 -0
  217. package/dist/storybook/nunito-sans-regular.woff2 +0 -0
  218. package/dist/storybook/project.json +1 -0
  219. package/dist/storybook/sb-addons/chromatic-com-storybook-3/manager-bundle.js +352 -0
  220. package/dist/storybook/sb-addons/chromatic-com-storybook-3/manager-bundle.js.LEGAL.txt +40 -0
  221. package/dist/storybook/sb-addons/docs-2/manager-bundle.js +3 -0
  222. package/dist/storybook/sb-addons/links-1/manager-bundle.js +3 -0
  223. package/dist/storybook/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +628 -0
  224. package/dist/storybook/sb-common-assets/favicon-wrapper.svg +46 -0
  225. package/dist/storybook/sb-common-assets/favicon.svg +1 -0
  226. package/dist/storybook/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  227. package/dist/storybook/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  228. package/dist/storybook/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  229. package/dist/storybook/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  230. package/dist/storybook/sb-manager/globals-runtime.js +77927 -0
  231. package/dist/storybook/sb-manager/globals.js +24 -0
  232. package/dist/storybook/sb-manager/manager-stores.js +23 -0
  233. package/dist/storybook/sb-manager/runtime.js +20404 -0
  234. package/dist/storybook/utils/constants/iconCollection.d.ts +5 -0
  235. package/dist/storybook/utils/constants/iconCollection.d.ts.map +1 -0
  236. package/dist/storybook/utils/constants/theme.d.ts +19 -0
  237. package/dist/storybook/utils/constants/theme.d.ts.map +1 -0
  238. package/dist/storybook/utils/function/common.d.ts +2 -0
  239. package/dist/storybook/utils/function/common.d.ts.map +1 -0
  240. package/dist/storybook/utils/function/localStorage.d.ts +3 -0
  241. package/dist/storybook/utils/function/localStorage.d.ts.map +1 -0
  242. package/dist/storybook/utils/function/mergeRefs.d.ts +4 -0
  243. package/dist/storybook/utils/function/mergeRefs.d.ts.map +1 -0
  244. package/dist/storybook/utils/function/string.d.ts +4 -0
  245. package/dist/storybook/utils/function/string.d.ts.map +1 -0
  246. package/dist/storybook/utils/helper/colorHelper.d.ts +5 -0
  247. package/dist/storybook/utils/helper/colorHelper.d.ts.map +1 -0
  248. package/dist/storybook/utils/helper/domHelper.d.ts +19 -0
  249. package/dist/storybook/utils/helper/domHelper.d.ts.map +1 -0
  250. package/dist/storybook/utils/helper/imageHelper.d.ts +12 -0
  251. package/dist/storybook/utils/helper/imageHelper.d.ts.map +1 -0
  252. package/dist/storybook/utils/helper/themeController.d.ts +10 -0
  253. package/dist/storybook/utils/helper/themeController.d.ts.map +1 -0
  254. package/dist/storybook/utils/index.d.ts +11 -0
  255. package/dist/storybook/utils/index.d.ts.map +1 -0
  256. package/dist/storybook/vite-inject-mocker-entry.js +2 -0
  257. package/package.json +1 -1
@@ -0,0 +1,755 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./syntaxhighlighter-ED5Y7EFY-CBd33VHX.js","./iframe-D1n-vaq5.js","./preload-helper-PPVm8Dsz.js","./iframe-0GvB1Q6-.css","./index-DXUygHIV.js","./index-DOqVBqX6.js","./formatter-EIJCOSYU-i6ULsfEu.js","./WithTooltip-65CFNBJE-licJlHua.js","./Color-6BZIO3FS-dpk_P4Yi.js"])))=>i.map(i=>d[i]);
2
+ import{_ as $r}from"./preload-helper-PPVm8Dsz.js";import{c as Ve,i as tp,k as J$,l as Z$,s as Q$,m as ew,n as tw,o as rw,p as nw,q as Ol,t as _n,v as rp,w as ow,x as aw,y as iw,z as lw,A as sw,B as uw,C as cw,D as dw,F as fw,G as pw,H as hw,I as gw,J as mw,K as yw,L as bw,M as Ew,N as vw,O as np,P as ca,b as lt,Q as Ue,r as h,R as g,j as oe,g as Sw,S as ni,U as oo,V as Rl,W as xw,X as $w,f as ww,h as Cw,Y as op,Z as Dl}from"./iframe-D1n-vaq5.js";import{r as Di,R as hy}from"./index-DXUygHIV.js";var ap="backgrounds",_w="outline",Tw={light:{name:"light",value:"#F8F8F8"},dark:{name:"dark",value:"#333"}};function Aw(){try{return!!globalThis.__vitest_browser__||!!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/)}catch{return!1}}var Pl={DEV:"dev",TEST:"test"},gy=Ve({"../../node_modules/picoquery/lib/string-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.encodeString=n;var t=Array.from({length:256},(o,a)=>"%"+((a<16?"0":"")+a.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 a=o.length;if(a===0)return"";let i="",l=0,s=0;e:for(;s<a;s++){let u=o.charCodeAt(s);for(;u<128;){if(r[u]!==1&&(l<s&&(i+=o.slice(l,s)),l=s+1,i+=t[u]),++s===a)break e;u=o.charCodeAt(s)}if(l<s&&(i+=o.slice(l,s)),u<2048){l=s+1,i+=t[192|u>>6]+t[128|u&63];continue}if(u<55296||u>=57344){l=s+1,i+=t[224|u>>12]+t[128|u>>6&63]+t[128|u&63];continue}if(++s,s>=a)throw new Error("URI malformed");let c=o.charCodeAt(s)&1023;l=s+1,u=65536+((u&1023)<<10|c),i+=t[240|u>>18]+t[128|u>>12&63]+t[128|u>>6&63]+t[128|u&63]}return l===0?o:l<a?i+o.slice(l):i}}}),id=Ve({"../../node_modules/picoquery/lib/shared.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=e.defaultShouldSerializeObject=e.defaultValueSerializer=void 0;var t=gy(),r=a=>{switch(typeof a){case"string":return(0,t.encodeString)(a);case"bigint":case"boolean":return""+a;case"number":if(Number.isFinite(a))return a<1e21?""+a:(0,t.encodeString)(""+a);break}return a instanceof Date?(0,t.encodeString)(a.toISOString()):""};e.defaultValueSerializer=r;var n=a=>a instanceof Date;e.defaultShouldSerializeObject=n;var o=a=>a;e.defaultOptions={nesting:!0,nestingSyntax:"dot",arrayRepeat:!1,arrayRepeatSyntax:"repeat",delimiter:38,valueDeserializer:o,valueSerializer:e.defaultValueSerializer,keyDeserializer:o,shouldSerializeObject:e.defaultShouldSerializeObject}}}),my=Ve({"../../node_modules/picoquery/lib/object-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getDeepObject=o,e.stringifyObject=c;var t=id(),r=gy();function n(d){return d==="__proto__"||d==="constructor"||d==="prototype"}function o(d,f,p,m,y){if(n(f))return d;let E=d[f];return typeof E=="object"&&E!==null?E:!m&&(y||typeof p=="number"||typeof p=="string"&&p*0===0&&p.indexOf(".")===-1)?d[f]=[]:d[f]={}}var a=20,i="[]",l="[",s="]",u=".";function c(d,f,p=0,m,y){let{nestingSyntax:E=t.defaultOptions.nestingSyntax,arrayRepeat:b=t.defaultOptions.arrayRepeat,arrayRepeatSyntax:v=t.defaultOptions.arrayRepeatSyntax,nesting:S=t.defaultOptions.nesting,delimiter:x=t.defaultOptions.delimiter,valueSerializer:C=t.defaultOptions.valueSerializer,shouldSerializeObject:$=t.defaultOptions.shouldSerializeObject}=f,w=typeof x=="number"?String.fromCharCode(x):x,T=y===!0&&b,O=E==="dot"||E==="js"&&!y;if(p>a)return"";let D="",_=!0,I=!1;for(let L in d){let A=d[L];if(A===void 0)continue;let P;m?(P=m,T?v==="bracket"&&(P+=i):O?(P+=u,P+=L):(P+=l,P+=L,P+=s)):P=L,_||(D+=w),typeof A=="object"&&A!==null&&!$(A)?(I=A.pop!==void 0,(S||b&&I)&&(D+=c(A,f,p+1,P,I))):(D+=(0,r.encodeString)(P),D+="=",D+=C(A,L)),_&&(_=!1)}return D}}}),Ow=Ve({"../../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(l){let s=l.indexOf("%");if(s===-1)return l;let u=l.length,c="",d=0,f=0,p=s,m=t;for(;s>-1&&s<u;){let y=i(l[s+1],4),E=i(l[s+2],0),b=y|E,v=n[b];if(m=n[256+m+v],f=f<<6|b&n[364+v],m===t)c+=l.slice(d,p),c+=f<=65535?String.fromCharCode(f):String.fromCharCode(55232+(f>>10),56320+(f&1023)),f=0,d=s+3,s=p=l.indexOf("%",d);else{if(m===r)return null;if(s+=3,s<u&&l.charCodeAt(s)===37)continue;return null}}return c+l.slice(d)}var a={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 i(l,s){let u=a[l];return u===void 0?255:u<<s}}}),Rw=Ve({"../../node_modules/picoquery/lib/parse.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.numberValueDeserializer=e.numberKeyDeserializer=void 0,e.parse=u;var t=my(),r=id(),n=Ow(),o=c=>{let d=Number(c);return Number.isNaN(d)?c:d};e.numberKeyDeserializer=o;var a=c=>{let d=Number(c);return Number.isNaN(d)?c:d};e.numberValueDeserializer=a;var i=/\+/g,l=function(){};l.prototype=Object.create(null);function s(c,d,f,p,m){let y=c.substring(d,f);return p&&(y=y.replace(i," ")),m&&(y=(0,n.decodeURIComponent)(y)||y),y}function u(c,d){let{valueDeserializer:f=r.defaultOptions.valueDeserializer,keyDeserializer:p=r.defaultOptions.keyDeserializer,arrayRepeatSyntax:m=r.defaultOptions.arrayRepeatSyntax,nesting:y=r.defaultOptions.nesting,arrayRepeat:E=r.defaultOptions.arrayRepeat,nestingSyntax:b=r.defaultOptions.nestingSyntax,delimiter:v=r.defaultOptions.delimiter}=d??{},S=typeof v=="string"?v.charCodeAt(0):v,x=b==="js",C=new l;if(typeof c!="string")return C;let $=c.length,w="",T=-1,O=-1,D=-1,_=C,I,L="",A="",P=!1,k=!1,F=!1,M=!1,B=!1,N=!1,z=0,U=-1,j=-1,K=-1;for(let H=0;H<$+1;H++){if(z=H!==$?c.charCodeAt(H):S,z===S){if(N=O>T,N||(O=H),D!==O-1&&(A=s(c,D+1,U>-1?U:O,F,P),L=p(A),I!==void 0&&(_=(0,t.getDeepObject)(_,I,L,x&&B,void 0))),N||L!==""){N&&(w=c.slice(O+1,H),M&&(w=w.replace(i," ")),k&&(w=(0,n.decodeURIComponent)(w)||w));let W=f(w,L);if(E){let X=_[L];X===void 0?U>-1?_[L]=[W]:_[L]=W:X.pop?X.push(W):_[L]=[X,W]}else _[L]=W}w="",T=H,O=H,P=!1,k=!1,F=!1,M=!1,B=!1,U=-1,D=H,_=C,I=void 0,L=""}else z===93?(E&&m==="bracket"&&K===91&&(U=j),y&&(b==="index"||x)&&O<=T&&(D!==j&&(A=s(c,D+1,H,F,P),L=p(A),I!==void 0&&(_=(0,t.getDeepObject)(_,I,L,void 0,void 0)),I=L,F=!1,P=!1),D=H,B=!1)):z===46?y&&(b==="dot"||x)&&O<=T&&(D!==j&&(A=s(c,D+1,H,F,P),L=p(A),I!==void 0&&(_=(0,t.getDeepObject)(_,I,L,x)),I=L,F=!1,P=!1),B=!0,D=H):z===91?y&&(b==="index"||x)&&O<=T&&(D!==j&&(A=s(c,D+1,H,F,P),L=p(A),x&&I!==void 0&&(_=(0,t.getDeepObject)(_,I,L,x)),I=L,F=!1,P=!1,B=!1),D=H):z===61?O<=T?O=H:k=!0:z===43?O>T?M=!0:F=!0:z===37&&(O>T?k=!0:P=!0);j=H,K=z}return C}}}),Dw=Ve({"../../node_modules/picoquery/lib/stringify.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=r;var t=my();function r(n,o){if(n===null||typeof n!="object")return"";let a=o??{};return(0,t.stringifyObject)(n,a)}}}),yy=Ve({"../../node_modules/picoquery/lib/main.js"(e){var t=e&&e.__createBinding||(Object.create?(function(a,i,l,s){s===void 0&&(s=l);var u=Object.getOwnPropertyDescriptor(i,l);(!u||("get"in u?!i.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return i[l]}}),Object.defineProperty(a,s,u)}):(function(a,i,l,s){s===void 0&&(s=l),a[s]=i[l]})),r=e&&e.__exportStar||function(a,i){for(var l in a)l!=="default"&&!Object.prototype.hasOwnProperty.call(i,l)&&t(i,a,l)};Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=e.parse=void 0;var n=Rw();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return n.parse}});var o=Dw();Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return o.stringify}}),r(id(),e)}});function Pw(){}function Fw(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function Iw(e,t,r){return yo(e,t,void 0,void 0,void 0,void 0,r)}function yo(e,t,r,n,o,a,i){let l=i(e,t,r,n,o,a);if(l!==void 0)return l;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 $o(e,t,a,i)}return $o(e,t,a,i)}function $o(e,t,r,n){if(Object.is(e,t))return!0;let o=tp(e),a=tp(t);if(o===np&&(o=Ol),a===np&&(a=Ol),o!==a)return!1;switch(o){case nw:return e.toString()===t.toString();case rw:{let s=e.valueOf(),u=t.valueOf();return Fw(s,u)}case tw:case ew:case Q$:return Object.is(e.valueOf(),t.valueOf());case Z$:return e.source===t.source&&e.flags===t.flags;case J$:return e===t}r=r??new Map;let i=r.get(e),l=r.get(t);if(i!=null&&l!=null)return i===t;r.set(e,t),r.set(t,e);try{switch(o){case vw:{if(e.size!==t.size)return!1;for(let[s,u]of e.entries())if(!t.has(s)||!yo(u,t.get(s),s,e,t,r,n))return!1;return!0}case Ew:{if(e.size!==t.size)return!1;let s=Array.from(e.values()),u=Array.from(t.values());for(let c=0;c<s.length;c++){let d=s[c],f=u.findIndex(p=>yo(d,p,void 0,e,t,r,n));if(f===-1)return!1;u.splice(f,1)}return!0}case bw:case yw:case mw:case gw:case hw:case pw:case fw:case dw:case cw:case uw:case sw:case lw:{if(typeof Buffer<"u"&&Buffer.isBuffer(e)!==Buffer.isBuffer(t)||e.length!==t.length)return!1;for(let s=0;s<e.length;s++)if(!yo(e[s],t[s],s,e,t,r,n))return!1;return!0}case iw:return e.byteLength!==t.byteLength?!1:$o(new Uint8Array(e),new Uint8Array(t),r,n);case aw:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:$o(new Uint8Array(e),new Uint8Array(t),r,n);case ow:return e.name===t.name&&e.message===t.message;case Ol:{if(!($o(e.constructor,t.constructor,r,n)||_n(e)&&_n(t)))return!1;let s=[...Object.keys(e),...rp(e)],u=[...Object.keys(t),...rp(t)];if(s.length!==u.length)return!1;for(let c=0;c<s.length;c++){let d=s[c],f=e[d];if(!Object.hasOwn(t,d))return!1;let p=t[d];if(!yo(f,p,d,e,t,r,n))return!1}return!0}default:return!1}}finally{r.delete(e),r.delete(t)}}function zt(e,t){return Iw(e,t,Pw)}var Lw="Invariant failed";function ju(e,t){if(!e)throw new Error(Lw)}var Kn=Ve({"../../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,a){function i(u,c){if(!o[u]){if(!n[u]){var d=typeof ca=="function"&&ca;if(!c&&d)return d(u,!0);if(l)return l(u,!0);var f=new Error("Cannot find module '"+u+"'");throw f.code="MODULE_NOT_FOUND",f}var p=o[u]={exports:{}};n[u][0].call(p.exports,function(m){var y=n[u][1][m];return i(y||m)},p,p.exports,r,n,o,a)}return o[u].exports}for(var l=typeof ca=="function"&&ca,s=0;s<a.length;s++)i(a[s]);return i})({1:[function(r,n,o){n.exports=function(a){if(typeof Map!="function"||a){var i=r("./similar");return new i}else return new Map}},{"./similar":2}],2:[function(r,n,o){function a(){return this.list=[],this.lastItem=void 0,this.size=0,this}a.prototype.get=function(i){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,i))return this.lastItem.val;if(l=this.indexOf(i),l>=0)return this.lastItem=this.list[l],this.list[l].val},a.prototype.set=function(i,l){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=l,this):(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],this.list[s].val=l,this):(this.lastItem={key:i,val:l},this.list.push(this.lastItem),this.size++,this))},a.prototype.delete=function(i){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),l=this.indexOf(i),l>=0)return this.size--,this.list.splice(l,1)[0]},a.prototype.has=function(i){var l;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(l=this.indexOf(i),l>=0?(this.lastItem=this.list[l],!0):!1)},a.prototype.forEach=function(i,l){var s;for(s=0;s<this.size;s++)i.call(l||this,this.list[s].val,this.list[s].key,this)},a.prototype.indexOf=function(i){var l;for(l=0;l<this.size;l++)if(this.isEqual(this.list[l].key,i))return l;return-1},a.prototype.isEqual=function(i,l){return i===l||i!==i&&l!==l},n.exports=a},{}],3:[function(r,n,o){var a=r("map-or-similar");n.exports=function(u){var c=new a(!1),d=[];return function(f){var p=function(){var m=c,y,E,b=arguments.length-1,v=Array(b+1),S=!0,x;if((p.numArgs||p.numArgs===0)&&p.numArgs!==b+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(x=0;x<b;x++){if(v[x]={cacheItem:m,arg:arguments[x]},m.has(arguments[x])){m=m.get(arguments[x]);continue}S=!1,y=new a(!1),m.set(arguments[x],y),m=y}return S&&(m.has(arguments[b])?E=m.get(arguments[b]):S=!1),S||(E=f.apply(null,arguments),m.set(arguments[b],E)),u>0&&(v[b]={cacheItem:m,arg:arguments[b]},S?i(d,v):d.push(v),d.length>u&&l(d.shift())),p.wasMemoized=S,p.numArgs=b+1,E};return p.limit=u,p.wasMemoized=!1,p.cache=c,p.lru=d,p}};function i(u,c){var d=u.length,f=c.length,p,m,y;for(m=0;m<d;m++){for(p=!0,y=0;y<f;y++)if(!s(u[m][y].arg,c[y].arg)){p=!1;break}if(p)break}u.push(u.splice(m,1)[0])}function l(u){var c=u.length,d=u[c-1],f,p;for(d.cacheItem.delete(d.arg),p=c-2;p>=0&&(d=u[p],f=d.cacheItem.get(d.arg),!f||!f.size);p--)d.cacheItem.delete(d.arg)}function s(u,c){return u===c||u!==u&&c!==c}},{"map-or-similar":1}]},{},[3])(3)})}});function vt(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(l,s){var u=s.match(/\n([\t ]+|(?!\s).)/g);return u?l.concat(u.map(function(c){var d,f;return(f=(d=c.match(/[\t ]/g))===null||d===void 0?void 0:d.length)!==null&&f!==void 0?f:0})):l},[]);if(o.length){var a=new RegExp(`
3
+ [ ]{`+Math.min.apply(Math,o)+"}","g");n=n.map(function(l){return l.replace(a,`
4
+ `)})}n[0]=n[0].replace(/^\r?\n/,"");var i=n[0];return t.forEach(function(l,s){var u=i.match(/(?:^|\n)( *)$/),c=u?u[1]:"",d=l;typeof l=="string"&&l.includes(`
5
+ `)&&(d=String(l).split(`
6
+ `).map(function(f,p){return p===0?f:""+c+f}).join(`
7
+ `)),i+=d+n[s+1]}),i}var Pi="storybook/highlight",kw=`${Pi}/add`,Nw=`${Pi}/remove`,Mw=`${Pi}/reset`,Bw=`${Pi}/scroll-into-view`,ip=2147483647,br=28,jw="storybook/actions",Hw=`${jw}/action-event`,Uw={depth:10,clearOnStoryChange:!0,limit:50};const{ImplicitActionsDuringRendering:zw}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{global:lp}=__STORYBOOK_MODULE_GLOBAL__,{addons:Kw}=__STORYBOOK_MODULE_PREVIEW_API__;var by=(e,t)=>{let r=Object.getPrototypeOf(e);return!r||t(r)?r:by(r,t)},Gw=e=>!!(typeof e=="object"&&e&&by(e,t=>/^Synthetic(?:Base)?Event$/.test(t.constructor.name))&&typeof e.persist=="function"),Ww=e=>{if(Gw(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 ld(e,t={}){let r={...Uw,...t},n=function(...o){if(t.implicit){let d=("__STORYBOOK_PREVIEW__"in lp?lp.__STORYBOOK_PREVIEW__:void 0)?.storyRenders.find(f=>f.phase==="playing"||f.phase==="rendering");if(d){let f=!globalThis?.FEATURES?.disallowImplicitActionsInRenderV8,p=new zw({phase:d.phase,name:e,deprecated:f});if(f)console.warn(p);else throw p}}let a=Kw.getChannel(),i=Date.now().toString(36)+Math.random().toString(36).substring(2),l=5,s=o.map(Ww),u=o.length>1?s:s[0],c={id:i,count:0,data:{name:e,args:u},options:{...r,maxDepth:l+(r.depth||3)}};a.emit(Hw,c)};return n.isAction=!0,n.implicit=t.implicit,n}var er={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"},Vw={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]},Ey=Object.entries(Vw);function Fi(e){return String(e)}Fi.open="";Fi.close="";Ey.reduce((e,[t])=>(e[t]=Fi,e),{isColorSupported:!1});function qw(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 Yw(e=!1){let t=qw(e),r=(i,l,s,u)=>{let c="",d=0;do c+=i.substring(d,u)+s,d=u+l.length,u=i.indexOf(l,d);while(~u);return c+i.substring(d)},n=(i,l,s=i)=>{let u=c=>{let d=String(c),f=d.indexOf(l,i.length);return~f?i+r(d,l,s,f)+l:i+d+l};return u.open=i,u.close=l,u},o={isColorSupported:t},a=i=>`\x1B[${i}m`;for(let[i,l]of Ey)o[i]=t?n(a(l[0]),a(l[1]),l[2]):Fi;return o}var ir=Yw();function vy(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 Xw(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 Wo(e,t,r,n,o,a,i=": "){let l="",s=0,u=e.next();if(!u.done){l+=t.spacingOuter;let c=r+t.indent;for(;!u.done;){if(l+=c,s++===t.maxWidth){l+="…";break}let d=a(u.value[0],t,c,n,o),f=a(u.value[1],t,c,n,o);l+=d+i+f,u=e.next(),u.done?t.min||(l+=","):l+=`,${t.spacingInner}`}l+=t.spacingOuter+r}return l}function sd(e,t,r,n,o,a){let i="",l=0,s=e.next();if(!s.done){i+=t.spacingOuter;let u=r+t.indent;for(;!s.done;){if(i+=u,l++===t.maxWidth){i+="…";break}i+=a(s.value,t,u,n,o),s=e.next(),s.done?t.min||(i+=","):i+=`,${t.spacingInner}`}i+=t.spacingOuter+r}return i}function oi(e,t,r,n,o,a){let i="";e=e instanceof ArrayBuffer?new DataView(e):e;let l=u=>u instanceof DataView,s=l(e)?e.byteLength:e.length;if(s>0){i+=t.spacingOuter;let u=r+t.indent;for(let c=0;c<s;c++){if(i+=u,c===t.maxWidth){i+="…";break}(l(e)||c in e)&&(i+=a(l(e)?e.getInt8(c):e[c],t,u,n,o)),c<s-1?i+=`,${t.spacingInner}`:t.min||(i+=",")}i+=t.spacingOuter+r}return i}function ud(e,t,r,n,o,a){let i="",l=Xw(e,t.compareKeys);if(l.length>0){i+=t.spacingOuter;let s=r+t.indent;for(let u=0;u<l.length;u++){let c=l[u],d=a(c,t,s,n,o),f=a(e[c],t,s,n,o);i+=`${s+d}: ${f}`,u<l.length-1?i+=`,${t.spacingInner}`:t.min||(i+=",")}i+=t.spacingOuter+r}return i}var Jw=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,Fl=" ",Zw=(e,t,r,n,o,a)=>{let i=e.toString();if(i==="ArrayContaining"||i==="ArrayNotContaining")return++n>t.maxDepth?`[${i}]`:`${i+Fl}[${oi(e.sample,t,r,n,o,a)}]`;if(i==="ObjectContaining"||i==="ObjectNotContaining")return++n>t.maxDepth?`[${i}]`:`${i+Fl}{${ud(e.sample,t,r,n,o,a)}}`;if(i==="StringMatching"||i==="StringNotMatching"||i==="StringContaining"||i==="StringNotContaining")return i+Fl+a(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()},Qw=e=>e&&e.$$typeof===Jw,eC={serialize:Zw,test:Qw},tC=" ",Sy=new Set(["DOMStringMap","NamedNodeMap"]),rC=/^(?:HTML\w*Collection|NodeList)$/;function nC(e){return Sy.has(e)||rC.test(e)}var oC=e=>e&&e.constructor&&!!e.constructor.name&&nC(e.constructor.name);function aC(e){return e.constructor.name==="NamedNodeMap"}var iC=(e,t,r,n,o,a)=>{let i=e.constructor.name;return++n>t.maxDepth?`[${i}]`:(t.min?"":i+tC)+(Sy.has(i)?`{${ud(aC(e)?[...e].reduce((l,s)=>(l[s.name]=s.value,l),{}):{...e},t,r,n,o,a)}}`:`[${oi([...e],t,r,n,o,a)}]`)},lC={serialize:iC,test:oC};function xy(e){return e.replaceAll("<","&lt;").replaceAll(">","&gt;")}function cd(e,t,r,n,o,a,i){let l=n+r.indent,s=r.colors;return e.map(u=>{let c=t[u],d=i(c,r,l,o,a);return typeof c!="string"&&(d.includes(`
8
+ `)&&(d=r.spacingOuter+l+d+r.spacingOuter+n),d=`{${d}}`),`${r.spacingInner+n+s.prop.open+u+s.prop.close}=${s.value.open}${d}${s.value.close}`}).join("")}function dd(e,t,r,n,o,a){return e.map(i=>t.spacingOuter+r+(typeof i=="string"?$y(i,t):a(i,t,r,n,o))).join("")}function $y(e,t){let r=t.colors.content;return r.open+xy(e)+r.close}function sC(e,t){let r=t.colors.comment;return`${r.open}<!--${xy(e)}-->${r.close}`}function fd(e,t,r,n,o){let a=n.colors.tag;return`${a.open}<${e}${t&&a.close+t+n.spacingOuter+o+a.open}${r?`>${a.close}${r}${n.spacingOuter}${o}${a.open}</${e}`:`${t&&!n.min?"":" "}/`}>${a.close}`}function pd(e,t){let r=t.colors.tag;return`${r.open}<${e}${r.close} …${r.open} />${r.close}`}var uC=1,wy=3,Cy=8,_y=11,cC=/^(?:(?:HTML|SVG)\w*)?Element$/;function dC(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}function fC(e){let t=e.constructor.name,{nodeType:r,tagName:n}=e,o=typeof n=="string"&&n.includes("-")||dC(e);return r===uC&&(cC.test(t)||o)||r===wy&&t==="Text"||r===Cy&&t==="Comment"||r===_y&&t==="DocumentFragment"}var pC=e=>{var t;return(e==null||(t=e.constructor)===null||t===void 0?void 0:t.name)&&fC(e)};function hC(e){return e.nodeType===wy}function gC(e){return e.nodeType===Cy}function Il(e){return e.nodeType===_y}var mC=(e,t,r,n,o,a)=>{if(hC(e))return $y(e.data,t);if(gC(e))return sC(e.data,t);let i=Il(e)?"DocumentFragment":e.tagName.toLowerCase();return++n>t.maxDepth?pd(i,t):fd(i,cd(Il(e)?[]:Array.from(e.attributes,l=>l.name).sort(),Il(e)?{}:[...e.attributes].reduce((l,s)=>(l[s.name]=s.value,l),{}),t,r+t.indent,n,o,a),dd(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,n,o,a),t,r)},yC={serialize:mC,test:pC},bC="@@__IMMUTABLE_ITERABLE__@@",EC="@@__IMMUTABLE_LIST__@@",vC="@@__IMMUTABLE_KEYED__@@",SC="@@__IMMUTABLE_MAP__@@",sp="@@__IMMUTABLE_ORDERED__@@",xC="@@__IMMUTABLE_RECORD__@@",$C="@@__IMMUTABLE_SEQ__@@",wC="@@__IMMUTABLE_SET__@@",CC="@@__IMMUTABLE_STACK__@@",Tn=e=>`Immutable.${e}`,Ii=e=>`[${e}]`,Oo=" ",up="…";function _C(e,t,r,n,o,a,i){return++n>t.maxDepth?Ii(Tn(i)):`${Tn(i)+Oo}{${Wo(e.entries(),t,r,n,o,a)}}`}function TC(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 AC(e,t,r,n,o,a){let i=Tn(e._name||"Record");return++n>t.maxDepth?Ii(i):`${i+Oo}{${Wo(TC(e),t,r,n,o,a)}}`}function OC(e,t,r,n,o,a){let i=Tn("Seq");return++n>t.maxDepth?Ii(i):e[vC]?`${i+Oo}{${e._iter||e._object?Wo(e.entries(),t,r,n,o,a):up}}`:`${i+Oo}[${e._iter||e._array||e._collection||e._iterable?sd(e.values(),t,r,n,o,a):up}]`}function Ll(e,t,r,n,o,a,i){return++n>t.maxDepth?Ii(Tn(i)):`${Tn(i)+Oo}[${sd(e.values(),t,r,n,o,a)}]`}var RC=(e,t,r,n,o,a)=>e[SC]?_C(e,t,r,n,o,a,e[sp]?"OrderedMap":"Map"):e[EC]?Ll(e,t,r,n,o,a,"List"):e[wC]?Ll(e,t,r,n,o,a,e[sp]?"OrderedSet":"Set"):e[CC]?Ll(e,t,r,n,o,a,"Stack"):e[$C]?OC(e,t,r,n,o,a):AC(e,t,r,n,o,a),DC=e=>e&&(e[bC]===!0||e[xC]===!0),PC={serialize:RC,test:DC};function Ty(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cp={exports:{}},ge={},dp;function FC(){if(dp)return ge;dp=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"),a=Symbol.for("react.consumer"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function m(y){if(typeof y=="object"&&y!==null){var E=y.$$typeof;switch(E){case e:switch(y=y.type,y){case r:case o:case n:case s:case u:case f:return y;default:switch(y=y&&y.$$typeof,y){case i:case l:case d:case c:return y;case a:return y;default:return E}}case t:return E}}}return ge.ContextConsumer=a,ge.ContextProvider=i,ge.Element=e,ge.ForwardRef=l,ge.Fragment=r,ge.Lazy=d,ge.Memo=c,ge.Portal=t,ge.Profiler=o,ge.StrictMode=n,ge.Suspense=s,ge.SuspenseList=u,ge.isContextConsumer=function(y){return m(y)===a},ge.isContextProvider=function(y){return m(y)===i},ge.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},ge.isForwardRef=function(y){return m(y)===l},ge.isFragment=function(y){return m(y)===r},ge.isLazy=function(y){return m(y)===d},ge.isMemo=function(y){return m(y)===c},ge.isPortal=function(y){return m(y)===t},ge.isProfiler=function(y){return m(y)===o},ge.isStrictMode=function(y){return m(y)===n},ge.isSuspense=function(y){return m(y)===s},ge.isSuspenseList=function(y){return m(y)===u},ge.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===o||y===n||y===s||y===u||typeof y=="object"&&y!==null&&(y.$$typeof===d||y.$$typeof===c||y.$$typeof===i||y.$$typeof===a||y.$$typeof===l||y.$$typeof===p||y.getModuleId!==void 0)},ge.typeOf=m,ge}var fp;function IC(){return fp||(fp=1,cp.exports=FC()),cp.exports}var Ay=IC(),LC=Ty(Ay),kC=vy({__proto__:null,default:LC},[Ay]),pp={exports:{}},he={},hp;function NC(){if(hp)return he;hp=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"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),m;m=Symbol.for("react.module.reference");function y(E){if(typeof E=="object"&&E!==null){var b=E.$$typeof;switch(b){case e:switch(E=E.type,E){case r:case o:case n:case u:case c:return E;default:switch(E=E&&E.$$typeof,E){case l:case i:case s:case f:case d:case a:return E;default:return b}}case t:return b}}}return he.ContextConsumer=i,he.ContextProvider=a,he.Element=e,he.ForwardRef=s,he.Fragment=r,he.Lazy=f,he.Memo=d,he.Portal=t,he.Profiler=o,he.StrictMode=n,he.Suspense=u,he.SuspenseList=c,he.isAsyncMode=function(){return!1},he.isConcurrentMode=function(){return!1},he.isContextConsumer=function(E){return y(E)===i},he.isContextProvider=function(E){return y(E)===a},he.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===e},he.isForwardRef=function(E){return y(E)===s},he.isFragment=function(E){return y(E)===r},he.isLazy=function(E){return y(E)===f},he.isMemo=function(E){return y(E)===d},he.isPortal=function(E){return y(E)===t},he.isProfiler=function(E){return y(E)===o},he.isStrictMode=function(E){return y(E)===n},he.isSuspense=function(E){return y(E)===u},he.isSuspenseList=function(E){return y(E)===c},he.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===r||E===o||E===n||E===u||E===c||E===p||typeof E=="object"&&E!==null&&(E.$$typeof===f||E.$$typeof===d||E.$$typeof===a||E.$$typeof===i||E.$$typeof===s||E.$$typeof===m||E.getModuleId!==void 0)},he.typeOf=y,he}var gp;function MC(){return gp||(gp=1,pp.exports=NC()),pp.exports}var Oy=MC(),BC=Ty(Oy),jC=vy({__proto__:null,default:BC},[Oy]),HC=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],Br=Object.fromEntries(HC.map(e=>[e,t=>jC[e](t)||kC[e](t)]));function Ry(e,t=[]){if(Array.isArray(e))for(let r of e)Ry(r,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}function mp(e){let t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(Br.isFragment(e))return"React.Fragment";if(Br.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(Br.isContextProvider(e))return"Context.Provider";if(Br.isContextConsumer(e))return"Context.Consumer";if(Br.isForwardRef(e)){if(t.displayName)return t.displayName;let r=t.render.displayName||t.render.name||"";return r===""?"ForwardRef":`ForwardRef(${r})`}if(Br.isMemo(e)){let r=t.displayName||t.type.displayName||t.type.name||"";return r===""?"Memo":`Memo(${r})`}}return"UNDEFINED"}function UC(e){let{props:t}=e;return Object.keys(t).filter(r=>r!=="children"&&t[r]!==void 0).sort()}var zC=(e,t,r,n,o,a)=>++n>t.maxDepth?pd(mp(e),t):fd(mp(e),cd(UC(e),e.props,t,r+t.indent,n,o,a),dd(Ry(e.props.children),t,r+t.indent,n,o,a),t,r),KC=e=>e!=null&&Br.isElement(e),GC={serialize:zC,test:KC},WC=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function VC(e){let{props:t}=e;return t?Object.keys(t).filter(r=>t[r]!==void 0).sort():[]}var qC=(e,t,r,n,o,a)=>++n>t.maxDepth?pd(e.type,t):fd(e.type,e.props?cd(VC(e),e.props,t,r+t.indent,n,o,a):"",e.children?dd(e.children,t,r+t.indent,n,o,a):"",t,r),YC=e=>e&&e.$$typeof===WC,XC={serialize:qC,test:YC},Dy=Object.prototype.toString,JC=Date.prototype.toISOString,ZC=Error.prototype.toString,yp=RegExp.prototype.toString;function Ma(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}function QC(e){return typeof window<"u"&&e===window}var e_=/^Symbol\((.*)\)(.*)$/,t_=/\n/g,Py=class extends Error{constructor(e,t){super(e),this.stack=t,this.name=this.constructor.name}};function r_(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 n_(e){return Object.is(e,-0)?"-0":String(e)}function o_(e){return`${e}n`}function bp(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}function Ep(e){return String(e).replace(e_,"Symbol($1)")}function vp(e){return`[${ZC.call(e)}]`}function Fy(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 n_(e);if(o==="bigint")return o_(e);if(o==="string")return n?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(o==="function")return bp(e,t);if(o==="symbol")return Ep(e);let a=Dy.call(e);return a==="[object WeakMap]"?"WeakMap {}":a==="[object WeakSet]"?"WeakSet {}":a==="[object Function]"||a==="[object GeneratorFunction]"?bp(e,t):a==="[object Symbol]"?Ep(e):a==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":JC.call(e):a==="[object Error]"?vp(e):a==="[object RegExp]"?r?yp.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):yp.call(e):e instanceof Error?vp(e):null}function Iy(e,t,r,n,o,a){if(o.includes(e))return"[Circular]";o=[...o],o.push(e);let i=++n>t.maxDepth,l=t.min;if(t.callToJSON&&!i&&e.toJSON&&typeof e.toJSON=="function"&&!a)return Er(e.toJSON(),t,r,n,o,!0);let s=Dy.call(e);return s==="[object Arguments]"?i?"[Arguments]":`${l?"":"Arguments "}[${oi(e,t,r,n,o,Er)}]`:r_(s)?i?`[${e.constructor.name}]`:`${l||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${oi(e,t,r,n,o,Er)}]`:s==="[object Map]"?i?"[Map]":`Map {${Wo(e.entries(),t,r,n,o,Er," => ")}}`:s==="[object Set]"?i?"[Set]":`Set {${sd(e.values(),t,r,n,o,Er)}}`:i||QC(e)?`[${Ma(e)}]`:`${l||!t.printBasicPrototype&&Ma(e)==="Object"?"":`${Ma(e)} `}{${ud(e,t,r,n,o,Er)}}`}var a_={test:e=>e&&e instanceof Error,serialize(e,t,r,n,o,a){if(o.includes(e))return"[Circular]";o=[...o,e];let i=++n>t.maxDepth,{message:l,cause:s,...u}=e,c={message:l,...typeof s<"u"?{cause:s}:{},...e instanceof AggregateError?{errors:e.errors}:{},...u},d=e.name!=="Error"?e.name:Ma(e);return i?`[${d}]`:`${d} {${Wo(Object.entries(c).values(),t,r,n,o,a)}}`}};function i_(e){return e.serialize!=null}function Ly(e,t,r,n,o,a){let i;try{i=i_(e)?e.serialize(t,r,n,o,a,Er):e.print(t,l=>Er(l,r,n,o,a),l=>{let s=n+r.indent;return s+l.replaceAll(t_,`
9
+ ${s}`)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors)}catch(l){throw new Py(l.message,l.stack)}if(typeof i!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof i}".`);return i}function ky(e,t){for(let r of e)try{if(r.test(t))return r}catch(n){throw new Py(n.message,n.stack)}return null}function Er(e,t,r,n,o,a){let i=ky(t.plugins,e);if(i!==null)return Ly(i,e,t,r,n,o);let l=Fy(e,t.printFunctionName,t.escapeRegex,t.escapeString);return l!==null?l:Iy(e,t,r,n,o,a)}var hd={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},Ny=Object.keys(hd),Ot={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:hd};function l_(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(Ot,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 s_(){return Ny.reduce((e,t)=>{let r=hd[t],n=r&&ir[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 u_(){return Ny.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}function My(e){return e?.printFunctionName??Ot.printFunctionName}function By(e){return e?.escapeRegex??Ot.escapeRegex}function jy(e){return e?.escapeString??Ot.escapeString}function Sp(e){return{callToJSON:e?.callToJSON??Ot.callToJSON,colors:e?.highlight?s_():u_(),compareKeys:typeof e?.compareKeys=="function"||e?.compareKeys===null?e.compareKeys:Ot.compareKeys,escapeRegex:By(e),escapeString:jy(e),indent:e?.min?"":c_(e?.indent??Ot.indent),maxDepth:e?.maxDepth??Ot.maxDepth,maxWidth:e?.maxWidth??Ot.maxWidth,min:e?.min??Ot.min,plugins:e?.plugins??Ot.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:My(e),spacingInner:e?.min?" ":`
10
+ `,spacingOuter:e?.min?"":`
11
+ `}}function c_(e){return Array.from({length:e+1}).join(" ")}function Kt(e,t){if(t&&(l_(t),t.plugins)){let n=ky(t.plugins,e);if(n!==null)return Ly(n,e,Sp(t),"",0,[])}let r=Fy(e,My(t),By(t),jy(t));return r!==null?r:Iy(e,Sp(t),"",0,[])}var gd={AsymmetricMatcher:eC,DOMCollection:lC,DOMElement:yC,Immutable:PC,ReactElement:GC,ReactTestComponent:XC,Error:a_},xp={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"]},d_={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},An="…";function f_(e,t){let r=xp[d_[t]]||xp[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}function p_({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!0,showProxy:o=!1,maxArrayLength:a=1/0,breakLength:i=1/0,seen:l=[],truncate:s=1/0,stylize:u=String}={},c){let d={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!n,showProxy:!!o,maxArrayLength:Number(a),breakLength:Number(i),truncate:Number(s),seen:l,inspect:c,stylize:u};return d.colors&&(d.stylize=f_),d}function h_(e){return e>="\uD800"&&e<="\uDBFF"}function _r(e,t,r=An){e=String(e);let n=r.length,o=e.length;if(n>t&&o>n)return r;if(o>t&&o>n){let a=t-n;return a>0&&h_(e[a-1])&&(a=a-1),`${e.slice(0,a)}${r}`}return e}function It(e,t,r,n=", "){r=r||t.inspect;let o=e.length;if(o===0)return"";let a=t.truncate,i="",l="",s="";for(let u=0;u<o;u+=1){let c=u+1===e.length,d=u+2===e.length;s=`${An}(${e.length-u})`;let f=e[u];t.truncate=a-i.length-(c?0:n.length);let p=l||r(f,t)+(c?"":n),m=i.length+p.length,y=m+s.length;if(c&&m>a&&i.length+s.length<=a||!c&&!d&&y>a||(l=c?"":r(e[u+1],t)+(d?"":n),!c&&d&&y>a&&m+l.length>a))break;if(i+=p,!c&&!d&&m+l.length>=a){s=`${An}(${e.length-u-1})`;break}s=""}return`${i}${s}`}function g_(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function Ro([e,t],r){return r.truncate-=2,typeof e=="string"?e=g_(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}function m_(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let n=It(e,t);t.truncate-=n.length;let o="";return r.length&&(o=It(r.map(a=>[a,e[a]]),t,Ro)),`[ ${n}${o?`, ${o}`:""} ]`}var y_=e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function tr(e,t){let r=y_(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 i=0;i<e.length;i++){let l=`${t.stylize(_r(e[i],t.truncate),"number")}${i===e.length-1?"":", "}`;if(t.truncate-=l.length,e[i]!==e.length&&t.truncate<=3){o+=`${An}(${e.length-e[i]+1})`;break}o+=l}let a="";return n.length&&(a=It(n.map(i=>[i,e[i]]),t,Ro)),`${r}[ ${o}${a?`, ${a}`:""} ]`}function b_(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${_r(n[1],t.truncate-o.length-1)}`,"date")}function $p(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${_r(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}function E_([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}function v_(e){let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}function S_(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${It(v_(e),t,E_)} }`)}var x_=Number.isNaN||(e=>e!==e);function wp(e,t){return x_(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(_r(String(e),t.truncate),"number")}function Cp(e,t){let r=_r(e.toString(),t.truncate-1);return r!==An&&(r+="n"),t.stylize(r,"bigint")}function $_(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${_r(o,n)}/${r}`,"regexp")}function w_(e){let t=[];return e.forEach(r=>{t.push(r)}),t}function C_(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${It(w_(e),t)} }`)}var _p=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),__={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},T_=16;function A_(e){return __[e]||`\\u${`0000${e.charCodeAt(0).toString(T_)}`.slice(-4)}`}function Tp(e,t){return _p.test(e)&&(e=e.replace(_p,A_)),t.stylize(`'${_r(e,t.truncate-2)}'`,"string")}function Ap(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}var Hy=()=>"Promise{…}";try{let{getPromiseDetails:e,kPending:t,kRejected:r}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(Hy=(n,o)=>{let[a,i]=e(n);return a===t?"Promise{<pending>}":`Promise${a===r?"!":""}{${o.inspect(i,o)}}`})}catch{}var O_=Hy;function Ba(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=It(r.map(l=>[l,e[l]]),t,Ro),a=It(n.map(l=>[l,e[l]]),t,Ro);t.seen.pop();let i="";return o&&a&&(i=", "),`{ ${o}${i}${a} }`}var kl=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function R_(e,t){let r="";return kl&&kl in e&&(r=e[kl]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${Ba(e,t)}`}function D_(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${It(e,t)} ]`)}var P_=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function F_(e,t){let r=Object.getOwnPropertyNames(e).filter(i=>P_.indexOf(i)===-1),n=e.name;t.truncate-=n.length;let o="";if(typeof e.message=="string"?o=_r(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 a=It(r.map(i=>[i,e[i]]),t,Ro);return`${n}${o}${a?` { ${a} }`:""}`}function I_([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}function Hu(e,t){return It(e,t,L_,`
12
+ `)}function L_(e,t){switch(e.nodeType){case 1:return Uy(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}function Uy(e,t){let r=e.getAttributeNames(),n=e.tagName.toLowerCase(),o=t.stylize(`<${n}`,"special"),a=t.stylize(">","special"),i=t.stylize(`</${n}>`,"special");t.truncate-=n.length*2+5;let l="";r.length>0&&(l+=" ",l+=It(r.map(c=>[c,e.getAttribute(c)]),t,I_," ")),t.truncate-=l.length;let s=t.truncate,u=Hu(e.children,t);return u&&u.length>s&&(u=`${An}(${e.children.length})`),`${o}${l}${a}${u}${i}`}var k_=typeof Symbol=="function"&&typeof Symbol.for=="function",Nl=k_?Symbol.for("chai/inspect"):"@@chai/inspect",Ml=Symbol.for("nodejs.util.inspect.custom"),Op=new WeakMap,Rp={},Dp={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:wp,Number:wp,bigint:Cp,BigInt:Cp,string:Tp,String:Tp,function:$p,Function:$p,symbol:Ap,Symbol:Ap,Array:m_,Date:b_,Map:S_,Set:C_,RegExp:$_,Promise:O_,WeakSet:(e,t)=>t.stylize("WeakSet{…}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{…}","special"),Arguments:D_,Int8Array:tr,Uint8Array:tr,Uint8ClampedArray:tr,Int16Array:tr,Uint16Array:tr,Int32Array:tr,Uint32Array:tr,Float32Array:tr,Float64Array:tr,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:F_,HTMLCollection:Hu,NodeList:Hu},N_=(e,t,r)=>Nl in e&&typeof e[Nl]=="function"?e[Nl](t):Ml in e&&typeof e[Ml]=="function"?e[Ml](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&Op.has(e.constructor)?Op.get(e.constructor)(e,t):Rp[r]?Rp[r](e,t):"",M_=Object.prototype.toString;function Uu(e,t={}){let r=p_(t,Uu),{customInspect:n}=r,o=e===null?"null":typeof e;if(o==="object"&&(o=M_.call(e).slice(8,-1)),o in Dp)return Dp[o](e,r);if(n&&e){let i=N_(e,r,o);if(i)return typeof i=="string"?i:Uu(i,r)}let a=e?Object.getPrototypeOf(e):!1;return a===Object.prototype||a===null?Ba(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?Uy(e,r):"constructor"in e?e.constructor!==Object?R_(e,r):Ba(e,r):e===Object(e)?Ba(e,r):r.stylize(String(e),o)}var{AsymmetricMatcher:B_,DOMCollection:j_,DOMElement:H_,Immutable:U_,ReactElement:z_,ReactTestComponent:K_}=gd,Pp=[K_,z_,H_,j_,U_,B_];function Do(e,t=10,{maxLength:r,...n}={}){let o=r??1e4,a;try{a=Kt(e,{maxDepth:t,escapeString:!1,plugins:Pp,...n})}catch{a=Kt(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:Pp,...n})}return a.length>=o&&t>1?Do(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),{maxLength:r,...n}):a}var G_=/%[sdjifoOc%]/g;function W_(...e){if(typeof e[0]!="string"){let a=[];for(let i=0;i<e.length;i++)a.push(ao(e[i],{depth:0,colors:!1}));return a.join(" ")}let t=e.length,r=1,n=e[0],o=String(n).replace(G_,a=>{if(a==="%%")return"%";if(r>=t)return a;switch(a){case"%s":{let i=e[r++];return typeof i=="bigint"?`${i.toString()}n`:typeof i=="number"&&i===0&&1/i<0?"-0":typeof i=="object"&&i!==null?typeof i.toString=="function"&&i.toString!==Object.prototype.toString?i.toString():ao(i,{depth:0,colors:!1}):String(i)}case"%d":{let i=e[r++];return typeof i=="bigint"?`${i.toString()}n`:Number(i).toString()}case"%i":{let i=e[r++];return typeof i=="bigint"?`${i.toString()}n`:Number.parseInt(String(i)).toString()}case"%f":return Number.parseFloat(String(e[r++])).toString();case"%o":return ao(e[r++],{showHidden:!0,showProxy:!0});case"%O":return ao(e[r++]);case"%c":return r++,"";case"%j":try{return JSON.stringify(e[r++])}catch(i){let l=i.message;if(l.includes("circular structure")||l.includes("cyclic structures")||l.includes("cyclic object"))return"[Circular]";throw i}default:return a}});for(let a=e[r];r<t;a=e[++r])a===null||typeof a!="object"?o+=` ${a}`:o+=` ${ao(a)}`;return o}function ao(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),Uu(e,t)}function V_(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function q_(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function zu(e){return Object.prototype.toString.apply(e).slice(8,-1)}function Y_(e,t){let r=typeof t=="function"?t:n=>t.add(n);Object.getOwnPropertyNames(e).forEach(r),Object.getOwnPropertySymbols(e).forEach(r)}function zy(e){let t=new Set;return q_(e)?[]:(Y_(e,t),Array.from(t))}var Ky={forceWritable:!1};function Fp(e,t=Ky){return Ku(e,new WeakMap,t)}function Ku(e,t,r=Ky){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]=Ku(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 a=zy(e);for(let i of a){let l=Object.getOwnPropertyDescriptor(e,i);if(!l)continue;let s=Ku(e[i],t,r);r.forceWritable?Object.defineProperty(o,i,{enumerable:l.enumerable,configurable:!0,writable:!0,value:s}):"get"in l?Object.defineProperty(o,i,{...l,get(){return s}}):Object.defineProperty(o,i,{...l,value:s})}return o}return e}var We=-1,Be=1,$e=0,ve=class{0;1;constructor(e,t){this[0]=e,this[1]=t}};function X_(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,a=0;for(;r<o;)e.substring(a,o)===t.substring(a,o)?(r=o,a=r):n=o,o=Math.floor((n-r)/2+r);return o}function Gy(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,a=0;for(;r<o;)e.substring(e.length-o,e.length-a)===t.substring(t.length-o,t.length-a)?(r=o,a=r):n=o,o=Math.floor((n-r)/2+r);return o}function Ip(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 a=0,i=1;for(;;){let l=e.substring(o-i),s=t.indexOf(l);if(s===-1)return a;i+=s,(s===0||e.substring(o-i)===t.substring(0,i))&&(a=i,i++)}}function J_(e){let t=!1,r=[],n=0,o=null,a=0,i=0,l=0,s=0,u=0;for(;a<e.length;)e[a][0]===$e?(r[n++]=a,i=s,l=u,s=0,u=0,o=e[a][1]):(e[a][0]===Be?s+=e[a][1].length:u+=e[a][1].length,o&&o.length<=Math.max(i,l)&&o.length<=Math.max(s,u)&&(e.splice(r[n-1],0,new ve(We,o)),e[r[n-1]+1][0]=Be,n--,n--,a=n>0?r[n-1]:-1,i=0,l=0,s=0,u=0,o=null,t=!0)),a++;for(t&&Wy(e),eT(e),a=1;a<e.length;){if(e[a-1][0]===We&&e[a][0]===Be){let c=e[a-1][1],d=e[a][1],f=Ip(c,d),p=Ip(d,c);f>=p?(f>=c.length/2||f>=d.length/2)&&(e.splice(a,0,new ve($e,d.substring(0,f))),e[a-1][1]=c.substring(0,c.length-f),e[a+1][1]=d.substring(f),a++):(p>=c.length/2||p>=d.length/2)&&(e.splice(a,0,new ve($e,c.substring(0,p))),e[a-1][0]=Be,e[a-1][1]=d.substring(0,d.length-p),e[a+1][0]=We,e[a+1][1]=c.substring(p),a++),a++}a++}}var Lp=/[^a-z0-9]/i,kp=/\s/,Np=/[\r\n]/,Z_=/\n\r?\n$/,Q_=/^\r?\n\r?\n/;function eT(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===$e&&e[t+1][0]===$e){let r=e[t-1][1],n=e[t][1],o=e[t+1][1],a=Gy(r,n);if(a){let c=n.substring(n.length-a);r=r.substring(0,r.length-a),n=c+n.substring(0,n.length-a),o=c+o}let i=r,l=n,s=o,u=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 c=da(r,n)+da(n,o);c>=u&&(u=c,i=r,l=n,s=o)}e[t-1][1]!==i&&(i?e[t-1][1]=i:(e.splice(t-1,1),t--),e[t][1]=l,s?e[t+1][1]=s:(e.splice(t+1,1),t--))}t++}}function Wy(e){e.push(new ve($e,""));let t=0,r=0,n=0,o="",a="",i;for(;t<e.length;)switch(e[t][0]){case Be:n++,a+=e[t][1],t++;break;case We:r++,o+=e[t][1],t++;break;case $e:r+n>1?(r!==0&&n!==0&&(i=X_(a,o),i!==0&&(t-r-n>0&&e[t-r-n-1][0]===$e?e[t-r-n-1][1]+=a.substring(0,i):(e.splice(0,0,new ve($e,a.substring(0,i))),t++),a=a.substring(i),o=o.substring(i)),i=Gy(a,o),i!==0&&(e[t][1]=a.substring(a.length-i)+e[t][1],a=a.substring(0,a.length-i),o=o.substring(0,o.length-i))),t-=r+n,e.splice(t,r+n),o.length&&(e.splice(t,0,new ve(We,o)),t++),a.length&&(e.splice(t,0,new ve(Be,a)),t++),t++):t!==0&&e[t-1][0]===$e?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,n=0,r=0,o="",a="";break}e[e.length-1][1]===""&&e.pop();let l=!1;for(t=1;t<e.length-1;)e[t-1][0]===$e&&e[t+1][0]===$e&&(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),l=!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),l=!0)),t++;l&&Wy(e)}function da(e,t){if(!e||!t)return 6;let r=e.charAt(e.length-1),n=t.charAt(0),o=r.match(Lp),a=n.match(Lp),i=o&&r.match(kp),l=a&&n.match(kp),s=i&&r.match(Np),u=l&&n.match(Np),c=s&&e.match(Z_),d=u&&t.match(Q_);return c||d?5:s||u?4:o&&!i&&l?3:i||l?2:o||a?1:0}var Vy="Compared values have no visual difference.",tT="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",fa={},Mp;function rT(){if(Mp)return fa;Mp=1,Object.defineProperty(fa,"__esModule",{value:!0}),fa.default=f;let e="diff-sequences",t=0,r=(p,m,y,E,b)=>{let v=0;for(;p<m&&y<E&&b(p,y);)p+=1,y+=1,v+=1;return v},n=(p,m,y,E,b)=>{let v=0;for(;p<=m&&y<=E&&b(m,E);)m-=1,E-=1,v+=1;return v},o=(p,m,y,E,b,v,S)=>{let x=0,C=-p,$=v[x],w=$;v[x]+=r($+1,m,E+$-C+1,y,b);let T=p<S?p:S;for(x+=1,C+=2;x<=T;x+=1,C+=2){if(x!==p&&w<v[x])$=v[x];else if($=w+1,m<=$)return x-1;w=v[x],v[x]=$+r($+1,m,E+$-C+1,y,b)}return S},a=(p,m,y,E,b,v,S)=>{let x=0,C=p,$=v[x],w=$;v[x]-=n(m,$-1,y,E+$-C-1,b);let T=p<S?p:S;for(x+=1,C-=2;x<=T;x+=1,C-=2){if(x!==p&&v[x]<w)$=v[x];else if($=w-1,$<m)return x-1;w=v[x],v[x]=$-n(m,$-1,y,E+$-C-1,b)}return S},i=(p,m,y,E,b,v,S,x,C,$,w)=>{let T=E-m,O=y-m,D=b-E-O,_=-D-(p-1),I=-D+(p-1),L=t,A=p<x?p:x;for(let P=0,k=-p;P<=A;P+=1,k+=2){let F=P===0||P!==p&&L<S[P],M=F?S[P]:L,B=F?M:M+1,N=T+B-k,z=r(B+1,y,N+1,b,v),U=B+z;if(L=S[P],S[P]=U,_<=k&&k<=I){let j=(p-1-(k+D))/2;if(j<=$&&C[j]-1<=U){let K=T+M-(F?k+1:k-1),H=n(m,M,E,K,v),W=M-H,X=K-H,pe=W+1,Ie=X+1;w.nChangePreceding=p-1,p-1===pe+Ie-m-E?(w.aEndPreceding=m,w.bEndPreceding=E):(w.aEndPreceding=pe,w.bEndPreceding=Ie),w.nCommonPreceding=H,H!==0&&(w.aCommonPreceding=pe,w.bCommonPreceding=Ie),w.nCommonFollowing=z,z!==0&&(w.aCommonFollowing=B+1,w.bCommonFollowing=N+1);let et=U+1,J=N+z+1;return w.nChangeFollowing=p-1,p-1===y+b-et-J?(w.aStartFollowing=y,w.bStartFollowing=b):(w.aStartFollowing=et,w.bStartFollowing=J),!0}}}return!1},l=(p,m,y,E,b,v,S,x,C,$,w)=>{let T=b-y,O=y-m,D=b-E-O,_=D-p,I=D+p,L=t,A=p<$?p:$;for(let P=0,k=p;P<=A;P+=1,k-=2){let F=P===0||P!==p&&C[P]<L,M=F?C[P]:L,B=F?M:M-1,N=T+B-k,z=n(m,B-1,E,N-1,v),U=B-z;if(L=C[P],C[P]=U,_<=k&&k<=I){let j=(p+(k-D))/2;if(j<=x&&U-1<=S[j]){let K=N-z;if(w.nChangePreceding=p,p===U+K-m-E?(w.aEndPreceding=m,w.bEndPreceding=E):(w.aEndPreceding=U,w.bEndPreceding=K),w.nCommonPreceding=z,z!==0&&(w.aCommonPreceding=U,w.bCommonPreceding=K),w.nChangeFollowing=p-1,p===1)w.nCommonFollowing=0,w.aStartFollowing=y,w.bStartFollowing=b;else{let H=T+M-(F?k-1:k+1),W=r(M,y,H,b,v);w.nCommonFollowing=W,W!==0&&(w.aCommonFollowing=M,w.bCommonFollowing=H);let X=M+W,pe=H+W;p-1===y+b-X-pe?(w.aStartFollowing=y,w.bStartFollowing=b):(w.aStartFollowing=X,w.bStartFollowing=pe)}return!0}}}return!1},s=(p,m,y,E,b,v,S,x,C)=>{let $=E-m,w=b-y,T=y-m,O=b-E,D=O-T,_=T,I=T;if(S[0]=m-1,x[0]=y,D%2===0){let L=(p||D)/2,A=(T+O)/2;for(let P=1;P<=A;P+=1)if(_=o(P,y,b,$,v,S,_),P<L)I=a(P,m,E,w,v,x,I);else if(l(P,m,y,E,b,v,S,_,x,I,C))return}else{let L=((p||D)+1)/2,A=(T+O+1)/2,P=1;for(_=o(P,y,b,$,v,S,_),P+=1;P<=A;P+=1)if(I=a(P-1,m,E,w,v,x,I),P<L)_=o(P,y,b,$,v,S,_);else if(i(P,m,y,E,b,v,S,_,x,I,C))return}throw new Error(`${e}: no overlap aStart=${m} aEnd=${y} bStart=${E} bEnd=${b}`)},u=(p,m,y,E,b,v,S,x,C,$)=>{if(b-E<y-m){if(v=!v,v&&S.length===1){let{foundSubsequence:j,isCommon:K}=S[0];S[1]={foundSubsequence:(H,W,X)=>{j(H,X,W)},isCommon:(H,W)=>K(W,H)}}let z=m,U=y;m=E,y=b,E=z,b=U}let{foundSubsequence:w,isCommon:T}=S[v?1:0];s(p,m,y,E,b,T,x,C,$);let{nChangePreceding:O,aEndPreceding:D,bEndPreceding:_,nCommonPreceding:I,aCommonPreceding:L,bCommonPreceding:A,nCommonFollowing:P,aCommonFollowing:k,bCommonFollowing:F,nChangeFollowing:M,aStartFollowing:B,bStartFollowing:N}=$;m<D&&E<_&&u(O,m,D,E,_,v,S,x,C,$),I!==0&&w(I,L,A),P!==0&&w(P,k,F),B<y&&N<b&&u(M,B,y,N,b,v,S,x,C,$)},c=(p,m)=>{if(typeof m!="number")throw new TypeError(`${e}: ${p} typeof ${typeof m} is not a number`);if(!Number.isSafeInteger(m))throw new RangeError(`${e}: ${p} value ${m} is not a safe integer`);if(m<0)throw new RangeError(`${e}: ${p} value ${m} is a negative integer`)},d=(p,m)=>{let y=typeof m;if(y!=="function")throw new TypeError(`${e}: ${p} typeof ${y} is not a function`)};function f(p,m,y,E){c("aLength",p),c("bLength",m),d("isCommon",y),d("foundSubsequence",E);let b=r(0,p,0,m,y);if(b!==0&&E(b,0,0),p!==b||m!==b){let v=b,S=b,x=n(v,p-1,S,m-1,y),C=p-x,$=m-x,w=b+x;p!==w&&m!==w&&u(0,v,C,S,$,!1,[{foundSubsequence:E,isCommon:y}],[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}),x!==0&&E(x,C,$)}}return fa}var nT=rT(),qy=V_(nT);function oT(e,t){return e.replace(/\s+$/,r=>t(r))}function md(e,t,r,n,o,a){return e.length!==0?r(`${n} ${oT(e,o)}`):n!==" "?r(n):t&&a.length!==0?r(`${n} ${a}`):""}function Yy(e,t,{aColor:r,aIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:a}){return md(e,t,r,n,o,a)}function Xy(e,t,{bColor:r,bIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:a}){return md(e,t,r,n,o,a)}function Jy(e,t,{commonColor:r,commonIndicator:n,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:a}){return md(e,t,r,n,o,a)}function Bp(e,t,r,n,{patchColor:o}){return o(`@@ -${e+1},${t-e} +${r+1},${n-r} @@`)}function aT(e,t){let r=e.length,n=t.contextLines,o=n+n,a=r,i=!1,l=0,s=0;for(;s!==r;){let x=s;for(;s!==r&&e[s][0]===$e;)s+=1;if(x!==s)if(x===0)s>n&&(a-=s-n,i=!0);else if(s===r){let C=s-x;C>n&&(a-=C-n,i=!0)}else{let C=s-x;C>o&&(a-=C-o,l+=1)}for(;s!==r&&e[s][0]!==$e;)s+=1}let u=l!==0||i;l!==0?a+=l+1:i&&(a+=1);let c=a-1,d=[],f=0;u&&d.push("");let p=0,m=0,y=0,E=0,b=x=>{let C=d.length;d.push(Jy(x,C===0||C===c,t)),y+=1,E+=1},v=x=>{let C=d.length;d.push(Yy(x,C===0||C===c,t)),y+=1},S=x=>{let C=d.length;d.push(Xy(x,C===0||C===c,t)),E+=1};for(s=0;s!==r;){let x=s;for(;s!==r&&e[s][0]===$e;)s+=1;if(x!==s)if(x===0){s>n&&(x=s-n,p=x,m=x,y=p,E=m);for(let C=x;C!==s;C+=1)b(e[C][1])}else if(s===r){let C=s-x>n?x+n:s;for(let $=x;$!==C;$+=1)b(e[$][1])}else{let C=s-x;if(C>o){let $=x+n;for(let T=x;T!==$;T+=1)b(e[T][1]);d[f]=Bp(p,y,m,E,t),f=d.length,d.push("");let w=C-o;p=y+w,m=E+w,y=p,E=m;for(let T=s-n;T!==s;T+=1)b(e[T][1])}else for(let $=x;$!==s;$+=1)b(e[$][1])}for(;s!==r&&e[s][0]===We;)v(e[s][1]),s+=1;for(;s!==r&&e[s][0]===Be;)S(e[s][1]),s+=1}return u&&(d[f]=Bp(p,y,m,E,t)),d.join(`
13
+ `)}function iT(e,t){return e.map((r,n,o)=>{let a=r[1],i=n===0||n===o.length-1;switch(r[0]){case We:return Yy(a,i,t);case Be:return Xy(a,i,t);default:return Jy(a,i,t)}}).join(`
14
+ `)}var Bl=e=>e,Zy=5,lT=0;function sT(){return{aAnnotation:"Expected",aColor:ir.green,aIndicator:"-",bAnnotation:"Received",bColor:ir.red,bIndicator:"+",changeColor:ir.inverse,changeLineTrailingSpaceColor:Bl,commonColor:ir.dim,commonIndicator:" ",commonLineTrailingSpaceColor:Bl,compareKeys:void 0,contextLines:Zy,emptyFirstOrLastLinePlaceholder:"",expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:ir.yellow,printBasicPrototype:!1,truncateThreshold:lT,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:Bl}}function uT(e){return e&&typeof e=="function"?e:void 0}function cT(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:Zy}function nn(e={}){return{...sT(),...e,compareKeys:uT(e.compareKeys),contextLines:cT(e.contextLines)}}function bn(e){return e.length===1&&e[0].length===0}function dT(e){let t=0,r=0;return e.forEach(n=>{switch(n[0]){case We:t+=1;break;case Be:r+=1;break}}),{a:t,b:r}}function fT({aAnnotation:e,aColor:t,aIndicator:r,bAnnotation:n,bColor:o,bIndicator:a,includeChangeCounts:i,omitAnnotationLines:l},s){if(l)return"";let u="",c="";if(i){let p=String(s.a),m=String(s.b),y=n.length-e.length,E=" ".repeat(Math.max(0,y)),b=" ".repeat(Math.max(0,-y)),v=m.length-p.length,S=" ".repeat(Math.max(0,v)),x=" ".repeat(Math.max(0,-v));u=`${E} ${r} ${S}${p}`,c=`${b} ${a} ${x}${m}`}let d=`${r} ${e}${u}`,f=`${a} ${n}${c}`;return`${t(d)}
15
+ ${o(f)}
16
+
17
+ `}function yd(e,t,r){return fT(r,dT(e))+(r.expand?iT(e,r):aT(e,r))+(t?r.truncateAnnotationColor(`
18
+ ${r.truncateAnnotation}`):"")}function Li(e,t,r){let n=nn(r),[o,a]=Qy(bn(e)?[]:e,bn(t)?[]:t,n);return yd(o,a,n)}function pT(e,t,r,n,o){if(bn(e)&&bn(r)&&(e=[],r=[]),bn(t)&&bn(n)&&(t=[],n=[]),e.length!==r.length||t.length!==n.length)return Li(e,t,o);let[a,i]=Qy(r,n,o),l=0,s=0;return a.forEach(u=>{switch(u[0]){case We:u[1]=e[l],l+=1;break;case Be:u[1]=t[s],s+=1;break;default:u[1]=t[s],l+=1,s+=1}}),yd(a,i,nn(o))}function Qy(e,t,r){let n=r?.truncateThreshold??!1,o=Math.max(Math.floor(r?.truncateThreshold??0),0),a=n?Math.min(e.length,o):e.length,i=n?Math.min(t.length,o):t.length,l=a!==e.length||i!==t.length,s=(f,p)=>e[f]===t[p],u=[],c=0,d=0;for(qy(a,i,s,(f,p,m)=>{for(;c!==p;c+=1)u.push(new ve(We,e[c]));for(;d!==m;d+=1)u.push(new ve(Be,t[d]));for(;f!==0;f-=1,c+=1,d+=1)u.push(new ve($e,t[d]))});c!==a;c+=1)u.push(new ve(We,e[c]));for(;d!==i;d+=1)u.push(new ve(Be,t[d]));return[u,l]}function jp(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 Hp(e){return e.includes(`\r
19
+ `)?`\r
20
+ `:`
21
+ `}function hT(e,t,r){let n=r?.truncateThreshold??!1,o=Math.max(Math.floor(r?.truncateThreshold??0),0),a=e.length,i=t.length;if(n){let f=e.includes(`
22
+ `),p=t.includes(`
23
+ `),m=Hp(e),y=Hp(t),E=f?`${e.split(m,o).join(m)}
24
+ `:e,b=p?`${t.split(y,o).join(y)}
25
+ `:t;a=E.length,i=b.length}let l=a!==e.length||i!==t.length,s=(f,p)=>e[f]===t[p],u=0,c=0,d=[];return qy(a,i,s,(f,p,m)=>{u!==p&&d.push(new ve(We,e.slice(u,p))),c!==m&&d.push(new ve(Be,t.slice(c,m))),u=p+f,c=m+f,d.push(new ve($e,t.slice(m,c)))}),u!==a&&d.push(new ve(We,e.slice(u))),c!==i&&d.push(new ve(Be,t.slice(c))),[d,l]}function gT(e,t,r){return t.reduce((n,o)=>n+(o[0]===$e?o[1]:o[0]===e&&o[1].length!==0?r(o[1]):""),"")}var Up=class{op;line;lines;changeColor;constructor(e,t){this.op=e,this.line=[],this.lines=[],this.changeColor=t}pushSubstring(e){this.pushDiff(new ve(this.op,e))}pushLine(){this.lines.push(this.line.length!==1?new ve(this.op,gT(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new ve(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(`
26
+ `)){let r=t.split(`
27
+ `),n=r.length-1;r.forEach((o,a)=>{a<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}},mT=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(`
28
+ `)){let n=r.split(`
29
+ `),o=n.length-1;n.forEach((a,i)=>{if(i===0){let l=new ve(t,a);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(l)):(this.pushDiffChangeLines(l),this.flushChangeLines())}else i<o?this.pushDiffCommonLine(new ve(t,a)):a.length!==0&&this.pushDiffChangeLines(new ve(t,a))})}else this.pushDiffChangeLines(e)}getLines(){return this.flushChangeLines(),this.lines}};function yT(e,t){let r=new Up(We,t),n=new Up(Be,t),o=new mT(r,n);return e.forEach(a=>{switch(a[0]){case We:r.align(a);break;case Be:n.align(a);break;default:o.align(a)}}),o.getLines()}function bT(e,t){if(t){let r=e.length-1;return e.some((n,o)=>n[0]===$e&&(o!==r||n[1]!==`
30
+ `))}return e.some(r=>r[0]===$e)}function ET(e,t,r){if(e!==t&&e.length!==0&&t.length!==0){let n=e.includes(`
31
+ `)||t.includes(`
32
+ `),[o,a]=eb(n?`${e}
33
+ `:e,n?`${t}
34
+ `:t,!0,r);if(bT(o,n)){let i=nn(r),l=yT(o,i.changeColor);return yd(l,a,i)}}return Li(e.split(`
35
+ `),t.split(`
36
+ `),r)}function eb(e,t,r,n){let[o,a]=hT(e,t,n);return J_(o),[o,a]}function Gu(e,t){let{commonColor:r}=nn(t);return r(e)}var{AsymmetricMatcher:vT,DOMCollection:ST,DOMElement:xT,Immutable:$T,ReactElement:wT,ReactTestComponent:CT}=gd,tb=[CT,wT,xT,ST,$T,vT,gd.Error],Wu={maxDepth:20,plugins:tb},rb={callToJSON:!1,maxDepth:8,plugins:tb};function _T(e,t,r){if(Object.is(e,t))return"";let n=jp(e),o=n,a=!1;if(n==="object"&&typeof e.asymmetricMatch=="function"){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof e.getExpectedType!="function")return;o=e.getExpectedType(),a=o==="string"}if(o!==jp(t)){let i=function(S){return S.length<=E?S:`${S.slice(0,E)}...`},{aAnnotation:l,aColor:s,aIndicator:u,bAnnotation:c,bColor:d,bIndicator:f}=nn(r),p=Vu(rb,r),m=Kt(e,p),y=Kt(t,p),E=1e5;m=i(m),y=i(y);let b=`${s(`${u} ${l}:`)}
37
+ ${m}`,v=`${d(`${f} ${c}:`)}
38
+ ${y}`;return`${b}
39
+
40
+ ${v}`}if(!a)switch(n){case"string":return Li(e.split(`
41
+ `),t.split(`
42
+ `),r);case"boolean":case"number":return TT(e,t,r);case"map":return jl(zp(e),zp(t),r);case"set":return jl(Kp(e),Kp(t),r);default:return jl(e,t,r)}}function TT(e,t,r){let n=Kt(e,Wu),o=Kt(t,Wu);return n===o?"":Li(n.split(`
43
+ `),o.split(`
44
+ `),r)}function zp(e){return new Map(Array.from(e.entries()).sort())}function Kp(e){return new Set(Array.from(e.values()).sort())}function jl(e,t,r){let n,o=!1;try{let i=Vu(Wu,r);n=Gp(e,t,i,r)}catch{o=!0}let a=Gu(Vy,r);if(n===void 0||n===a){let i=Vu(rb,r);n=Gp(e,t,i,r),n!==a&&!o&&(n=`${Gu(tT,r)}
45
+
46
+ ${n}`)}return n}function Vu(e,t){let{compareKeys:r,printBasicPrototype:n,maxDepth:o}=nn(t);return{...e,compareKeys:r,printBasicPrototype:n,maxDepth:o??e.maxDepth}}function Gp(e,t,r,n){let o={...r,indent:0},a=Kt(e,o),i=Kt(t,o);if(a===i)return Gu(Vy,n);{let l=Kt(e,r),s=Kt(t,r);return pT(l.split(`
47
+ `),s.split(`
48
+ `),a.split(`
49
+ `),i.split(`
50
+ `),n)}}var Wp=2e4;function Vp(e){return zu(e)==="Object"&&typeof e.asymmetricMatch=="function"}function qp(e,t){let r=zu(e),n=zu(t);return r===n&&(r==="Object"||r==="Array")}function AT(e,t,r){let{aAnnotation:n,bAnnotation:o}=nn(r);if(typeof t=="string"&&typeof e=="string"&&t.length>0&&e.length>0&&t.length<=Wp&&e.length<=Wp&&t!==e){if(t.includes(`
51
+ `)||e.includes(`
52
+ `))return ET(t,e,r);let[u]=eb(t,e),c=u.some(m=>m[0]===$e),d=OT(n,o),f=d(n)+PT(Yp(u,We,c)),p=d(o)+DT(Yp(u,Be,c));return`${f}
53
+ ${p}`}let a=Fp(t,{forceWritable:!0}),i=Fp(e,{forceWritable:!0}),{replacedExpected:l,replacedActual:s}=nb(i,a);return _T(l,s,r)}function nb(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}):qp(e,t)?r.has(e)||n.has(t)?{replacedActual:e,replacedExpected:t}:(r.add(e),n.add(t),zy(t).forEach(o=>{let a=t[o],i=e[o];if(Vp(a))a.asymmetricMatch(i)&&(e[o]=a);else if(Vp(i))i.asymmetricMatch(a)&&(t[o]=i);else if(qp(i,a)){let l=nb(i,a,r,n);e[o]=l.replacedActual,t[o]=l.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}function OT(...e){let t=e.reduce((r,n)=>n.length>r?n.length:r,0);return r=>`${r}: ${" ".repeat(t-r.length)}`}var RT="·";function ob(e){return e.replace(/\s+$/gm,t=>RT.repeat(t.length))}function DT(e){return ir.red(ob(Do(e)))}function PT(e){return ir.green(ob(Do(e)))}function Yp(e,t,r){return e.reduce((n,o)=>n+(o[0]===$e?o[1]:o[0]===t?r?ir.inverse(o[1]):o[1]:""),"")}var FT="@@__IMMUTABLE_RECORD__@@",IT="@@__IMMUTABLE_ITERABLE__@@";function LT(e){return e&&(e[IT]||e[FT])}var kT=Object.getPrototypeOf({});function Xp(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}function vr(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"&&pa(()=>r.message??(r.message=e.message)),typeof e.stack=="string"&&pa(()=>r.stack??(r.stack=e.stack)),typeof e.name=="string"&&pa(()=>r.name??(r.name=e.name)),e.cause!=null&&pa(()=>r.cause??(r.cause=vr(e.cause,t)))),vr(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(LT(e))return vr(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()} ${W_(e.sample)}`;if(typeof e.toJSON=="function")return vr(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]=vr(n,t)}catch(a){r[o]=Xp(a)}}),r}else{let r=Object.create(null);t.set(e,r);let n=e;for(;n&&n!==kT;)Object.getOwnPropertyNames(n).forEach(o=>{if(!(o in r))try{r[o]=vr(e[o],t)}catch(a){delete r[o],r[o]=Xp(a)}}),n=Object.getPrototypeOf(n);return r}}function pa(e){try{return e()}catch{}}function NT(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}function ab(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=AT(n.actual,n.expected,{...t,...n.diffOptions})),"expected"in n&&typeof n.expected!="string"&&(n.expected=Do(n.expected,10)),"actual"in n&&typeof n.actual!="string"&&(n.actual=Do(n.actual,10));try{typeof n.message=="string"&&(n.message=NT(n.message))}catch{}try{!r.has(n)&&typeof n.cause=="object"&&(r.add(n),n.cause=ab(n.cause,t,r))}catch{}try{return vr(n)}catch(o){return vr(new Error(`Failed to fully serialize error: ${o?.message}
54
+ Inner error message: ${n?.message}`))}}const{once:MT}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{FORCE_REMOUNT:Jp,SET_CURRENT_STORY:BT,STORY_RENDER_PHASE_CHANGED:jT}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:Et}=__STORYBOOK_MODULE_GLOBAL__;var Hl=globalThis.__STORYBOOK_ADDONS_PREVIEW,HT=new Error("This function ran after the play function completed. Did you forget to `await` it?"),Zp=e=>Object.prototype.toString.call(e)==="[object Object]",UT=e=>Object.prototype.toString.call(e)==="[object Module]",zT=e=>{if(!Zp(e)&&!UT(e))return!1;if(e.constructor===void 0)return!0;let t=e.constructor.prototype;return!!Zp(t)},KT=e=>{try{return new e.constructor}catch{return{}}},Ul=()=>({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}),Qp=(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}},GT=class{constructor(){this.detached=!1,this.initialized=!1,this.state={},this.loadParentWindowState=()=>{try{this.state=Et.window?.parent?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__||{}}catch{this.detached=!0}},this.updateParentWindowState=()=>{try{Et.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state}catch{this.detached=!0}},this.loadParentWindowState();let e=({storyId:l,renderPhase:s,isPlaying:u=!0,isDebugging:c=!1})=>{let d=this.getState(l);this.setState(l,{...Ul(),...Qp(d,c),renderPhase:s||d.renderPhase,shadowCalls:c?d.shadowCalls:[],chainedCallIds:c?d.chainedCallIds:new Set,playUntil:c?d.playUntil:void 0,isPlaying:u,isDebugging:c}),this.sync(l)},t=l=>({storyId:s,playUntil:u})=>{this.getState(s).isDebugging||this.setState(s,({calls:d})=>({calls:[],shadowCalls:d.map(f=>({...f,status:"waiting"})),isDebugging:!0}));let c=this.getLog(s);this.setState(s,({shadowCalls:d})=>{if(u||!c.length)return{playUntil:u};let f=d.findIndex(p=>p.id===c[0].callId);return{playUntil:d.slice(0,f).filter(p=>p.interceptable&&!p.ancestors?.length).slice(-1)[0]?.id}}),l.emit(Jp,{storyId:s,isDebugging:!0})},r=l=>({storyId:s})=>{let u=this.getLog(s).filter(d=>!d.ancestors?.length),c=u.reduceRight((d,f,p)=>d>=0||f.status==="waiting"?d:p,-1);t(l)({storyId:s,playUntil:u[c-1]?.callId})},n=l=>({storyId:s,callId:u})=>{let{calls:c,shadowCalls:d,resolvers:f}=this.getState(s),p=c.find(({id:y})=>y===u),m=d.find(({id:y})=>y===u);if(!p&&m&&Object.values(f).length>0){let y=this.getLog(s).find(E=>E.status==="waiting")?.callId;m.id!==y&&this.setState(s,{playUntil:m.id}),Object.values(f).forEach(E=>E())}else t(l)({storyId:s,playUntil:u})},o=l=>({storyId:s})=>{let{resolvers:u}=this.getState(s);if(Object.values(u).length>0)Object.values(u).forEach(c=>c());else{let c=this.getLog(s).find(d=>d.status==="waiting")?.callId;c?t(l)({storyId:s,playUntil:c}):a({storyId:s})}},a=({storyId:l})=>{this.setState(l,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(l).resolvers).forEach(s=>s())},i=({storyId:l,newPhase:s})=>{let{isDebugging:u}=this.getState(l);if(s==="preparing"&&u)return e({storyId:l,renderPhase:s,isDebugging:u});if(s==="playing")return e({storyId:l,renderPhase:s,isDebugging:u});s==="played"?this.setState(l,{renderPhase:s,isLocked:!1,isPlaying:!1,isDebugging:!1}):s==="errored"?this.setState(l,{renderPhase:s,isLocked:!1,isPlaying:!1}):s==="aborted"?this.setState(l,{renderPhase:s,isLocked:!0,isPlaying:!1}):this.setState(l,{renderPhase:s}),this.sync(l)};Hl&&Hl.ready().then(()=>{this.channel=Hl.getChannel(),this.channel.on(Jp,e),this.channel.on(jT,i),this.channel.on(BT,()=>{this.initialized?this.cleanup():this.initialized=!0}),this.channel.on(er.START,t(this.channel)),this.channel.on(er.BACK,r(this.channel)),this.channel.on(er.GOTO,n(this.channel)),this.channel.on(er.NEXT,o(this.channel)),this.channel.on(er.END,a)})}getState(e){return this.state[e]||Ul()}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=Qp(n);return o&&(t[r]=Object.assign(Ul(),o)),t},{});let e={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:[]};this.channel?.emit(er.SYNC,e),this.updateParentWindowState()}getLog(e){let{calls:t,shadowCalls:r}=this.getState(e),n=[...r];t.forEach((a,i)=>{n[i]=a});let o=new Set;return n.reduceRight((a,i)=>(i.args.forEach(l=>{l?.__callId__&&o.add(l.__callId__)}),i.path.forEach(l=>{l.__callId__&&o.add(l.__callId__)}),(i.interceptable||i.exception)&&!o.has(i.id)&&(a.unshift({callId:i.id,status:i.status,ancestors:i.ancestors}),o.add(i.id)),a),[])}instrument(e,t,r=0){if(!zT(e))return e;let{mutate:n=!1,path:o=[]}=t,a=t.getKeys?t.getKeys(e,r):Object.keys(e);return r+=1,a.reduce((i,l)=>{let s=VT(e,l);if(typeof s?.get=="function"){if(s.configurable){let c=()=>s?.get?.bind(e)?.();Object.defineProperty(i,l,{get:()=>this.instrument(c(),{...t,path:o.concat(l)},r)})}return i}let u=e[l];return typeof u!="function"?(i[l]=this.instrument(u,{...t,path:o.concat(l)},r),i):"__originalFn__"in u&&typeof u.__originalFn__=="function"?(i[l]=u,i):(i[l]=(...c)=>this.track(l,u,e,c,t),i[l].__originalFn__=u,Object.defineProperty(i[l],"name",{value:l,writable:!1}),Object.keys(u).length>0&&Object.assign(i[l],this.instrument({...u},{...t,path:o.concat(l)},r)),i)},n?e:KT(e))}track(e,t,r,n,o){let a=n?.[0]?.__storyId__||Et.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId,{cursor:i,ancestors:l}=this.getState(a);this.setState(a,{cursor:i+1});let s=`${l.slice(-1)[0]||a} [${i}] ${e}`,{path:u=[],intercept:c=!1,retain:d=!1}=o,f=typeof c=="function"?c(e,u):c,p={id:s,cursor:i,storyId:a,ancestors:l,path:u,method:e,args:n,interceptable:f,retain:d},m=(f&&!l.length?this.intercept:this.invoke).call(this,t,r,p,o);return this.instrument(m,{...o,mutate:!0,path:[{__callId__:p.id}]})}intercept(e,t,r,n){let{chainedCallIds:o,isDebugging:a,playUntil:i}=this.getState(r.storyId),l=o.has(r.id);return!a||l||i?(i===r.id&&this.setState(r.storyId,{playUntil:void 0}),this.invoke(e,t,r,n)):new Promise(s=>{this.setState(r.storyId,({resolvers:u})=>({isLocked:!1,resolvers:{...u,[r.id]:s}}))}).then(()=>(this.setState(r.storyId,s=>{let{[r.id]:u,...c}=s.resolvers;return{isLocked:!0,resolvers:c}}),this.invoke(e,t,r,n)))}invoke(e,t,r,n){let{callRefsByResult:o,renderPhase:a}=this.getState(r.storyId),i=25,l=(c,d,f)=>{if(f.includes(c))return"[Circular]";if(f=[...f,c],d>i)return"...";if(o.has(c))return o.get(c);if(c instanceof Array)return c.map(p=>l(p,++d,f));if(c instanceof Date)return{__date__:{value:c.toISOString()}};if(c instanceof Error){let{name:p,message:m,stack:y}=c;return{__error__:{name:p,message:m,stack:y}}}if(c instanceof RegExp){let{flags:p,source:m}=c;return{__regexp__:{flags:p,source:m}}}if(c instanceof Et.window?.HTMLElement){let{prefix:p,localName:m,id:y,classList:E,innerText:b}=c,v=Array.from(E);return{__element__:{prefix:p,localName:m,id:y,classNames:v,innerText:b}}}return typeof c=="function"?{__function__:{name:"getMockName"in c?c.getMockName():c.name}}:typeof c=="symbol"?{__symbol__:{description:c.description}}:typeof c=="object"&&c?.constructor?.name&&c?.constructor?.name!=="Object"?{__class__:{name:c.constructor.name}}:Object.prototype.toString.call(c)==="[object Object]"?Object.fromEntries(Object.entries(c).map(([p,m])=>[p,l(m,++d,f)])):c},s={...r,args:r.args.map(c=>l(c,0,[]))};r.path.forEach(c=>{c?.__callId__&&this.setState(r.storyId,({chainedCallIds:d})=>({chainedCallIds:new Set(Array.from(d).concat(c.__callId__))}))});let u=c=>{if(c instanceof Error){let{name:d,message:f,stack:p,callId:m=r.id}=c,{showDiff:y=void 0,diff:E=void 0,actual:b=void 0,expected:v=void 0}=c.name==="AssertionError"?ab(c):c,S={name:d,message:f,stack:p,callId:m,showDiff:y,diff:E,actual:b,expected:v};if(this.update({...s,status:"error",exception:S}),this.setState(r.storyId,x=>({callRefsByResult:new Map([...Array.from(x.callRefsByResult.entries()),[c,{__callId__:r.id,retain:r.retain}]])})),r.ancestors?.length)throw Object.prototype.hasOwnProperty.call(c,"callId")||Object.defineProperty(c,"callId",{value:r.id}),c}throw c};try{if(a==="played"&&!r.retain)throw HT;let c=(n.getArgs?n.getArgs(r,this.getState(r.storyId)):r.args).map(f=>typeof f!="function"||qT(f)||Object.keys(f).length?f:(...p)=>{let{cursor:m,ancestors:y}=this.getState(r.storyId);this.setState(r.storyId,{cursor:0,ancestors:[...y,r.id]});let E=()=>this.setState(r.storyId,{cursor:m,ancestors:y}),b=!1;try{let v=f(...p);return v instanceof Promise?(b=!0,v.finally(E)):v}finally{b||E()}}),d=e.apply(t,c);return d&&["object","function","symbol"].includes(typeof d)&&this.setState(r.storyId,f=>({callRefsByResult:new Map([...Array.from(f.callRefsByResult.entries()),[d,{__callId__:r.id,retain:r.retain}]])})),this.update({...s,status:d instanceof Promise?"active":"done"}),d instanceof Promise?d.then(f=>(this.update({...s,status:"done"}),f),u):d}catch(c){return u(c)}}update(e){this.channel?.emit(er.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),a=o.filter(({ancestors:u})=>!u.length).find(u=>u.status==="waiting")?.callId,i=o.some(u=>u.status==="active");if(this.detached||r||i||o.length===0){let u={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:o};this.channel?.emit(er.SYNC,u);return}let l=o.some(u=>u.status==="done"||u.status==="error"),s={controlStates:{detached:this.detached,start:l,back:l,goto:!0,next:n,end:n},logItems:o,pausedAt:a};this.channel?.emit(er.SYNC,s)};this.setState(e,({syncTimeout:r})=>(clearTimeout(r),{syncTimeout:setTimeout(t,0)}))}};function WT(e,t={}){try{let r=!1,n=!1;return Et.window?.location?.search?.includes("instrument=true")?r=!0:Et.window?.location?.search?.includes("instrument=false")&&(n=!0),Et.window?.parent===Et.window&&!r||n?e:(Et.window&&!Et.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(Et.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new GT),(Et.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(r){return MT.warn(r),e}}function VT(e,t){let r=e;for(;r!=null;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function qT(e){if(typeof e!="function")return!1;let t=Object.getOwnPropertyDescriptor(e,"prototype");return t?!t.writable:!1}var YT=Ve({"../../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,a){return(function i(l,s,u){var c,d,f,p=t.call(l),m=t.call(s);if(l===s)return!0;if(l==null||s==null)return!1;if(u.indexOf(l)>-1&&u.indexOf(s)>-1)return!0;if(u.push(l,s),p!=m||(c=n(l),d=n(s),c.length!=d.length||c.some(function(y){return!i(l[y],s[y],u)})))return!1;switch(p.slice(8,-1)){case"Symbol":return l.valueOf()==s.valueOf();case"Date":case"Number":return+l==+s||+l!=+l&&+s!=+s;case"RegExp":case"Function":case"String":case"Boolean":return""+l==""+s;case"Set":case"Map":c=l.entries(),d=s.entries();do if(!i((f=c.next()).value,d.next().value,u))return!1;while(!f.done);return!0;case"ArrayBuffer":l=new Uint8Array(l),s=new Uint8Array(s);case"DataView":l=new Uint8Array(l.buffer),s=new Uint8Array(s.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(l.length!=s.length)return!1;for(f=0;f<l.length;f++)if((f in l||f in s)&&(f in l!=f in s||!i(l[f],s[f],u)))return!1;return!0;case"Object":return i(r(l),r(s),u);default:return!1}})(o,a,[])}})()}}),eh=lt(YT(),1),ib=e=>e.map(t=>typeof t<"u").filter(Boolean).length,XT=(e,t)=>{let{exists:r,eq:n,neq:o,truthy:a}=e;if(ib([r,n,o,a])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:n,neq:o})}`);if(typeof n<"u")return(0,eh.isEqual)(t,n);if(typeof o<"u")return!(0,eh.isEqual)(t,o);if(typeof r<"u"){let i=typeof t<"u";return r?i:!i}return typeof a>"u"||a?!!t:!t},JT=(e,t,r)=>{if(!e.if)return!0;let{arg:n,global:o}=e.if;if(ib([n,o])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:n,global:o})}`);let a=n?t[n]:r[o];return XT(e.if,a)},ZT={};Ue(ZT,{argsEnhancers:()=>tA});var lb=(e,t)=>typeof t[e]>"u"&&!(e in t),QT=e=>{let{initialArgs:t,argTypes:r,id:n,parameters:{actions:o}}=e;if(!o||o.disable||!o.argTypesRegex||!r)return{};let a=new RegExp(o.argTypesRegex);return Object.entries(r).filter(([i])=>!!a.test(i)).reduce((i,[l,s])=>(lb(l,t)&&(i[l]=ld(l,{implicit:!0,id:n})),i),{})},eA=e=>{let{initialArgs:t,argTypes:r,parameters:{actions:n}}=e;return n?.disable||!r?{}:Object.entries(r).filter(([o,a])=>!!a.action).reduce((o,[a,i])=>(lb(a,t)&&(o[a]=ld(typeof i.action=="string"?i.action:a)),o),{})},tA=[eA,QT],rA={};Ue(rA,{loaders:()=>aA});const{onMockCall:nA}=__STORYBOOK_MODULE_TEST__;var th=!1,oA=e=>{let{parameters:t}=e;t?.actions?.disable||th||(nA((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(a=>o.startsWith(a)))&&ld(o)(n)}),th=!0)},aA=[oA];const{useEffect:rh}=__STORYBOOK_MODULE_PREVIEW_API__;var{document:Pt}=globalThis,iA=()=>globalThis?.matchMedia?!!globalThis.matchMedia("(prefers-reduced-motion: reduce)")?.matches:!1,nh=e=>{(Array.isArray(e)?e:[e]).forEach(lA)},lA=e=>{if(!Pt)return;let t=Pt.getElementById(e);t&&t.parentElement&&t.parentElement.removeChild(t)},sA=(e,t)=>{if(!Pt)return;let r=Pt.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=Pt.createElement("style");n.setAttribute("id",e),n.innerHTML=t,Pt.head.appendChild(n)}},uA=(e,t,r)=>{if(!Pt)return;let n=Pt.getElementById(e);if(n)n.innerHTML!==t&&(n.innerHTML=t);else{let o=Pt.createElement("style");o.setAttribute("id",e),o.innerHTML=t;let a=`addon-backgrounds-grid${r?`-docs-${r}`:""}`,i=Pt.getElementById(a);i?i.parentElement?.insertBefore(o,i):Pt.head.appendChild(o)}},cA={cellSize:100,cellAmount:10,opacity:.8},oh="addon-backgrounds",ah="addon-backgrounds-grid",dA=iA()?"":"transition: background-color 0.3s;",fA=(e,t)=>{let{globals:r={},parameters:n={},viewMode:o,id:a}=t,{options:i=Tw,disable:l,grid:s=cA}=n[ap]||{},u=r[ap]||{},c=typeof u=="string"?u:u?.value,d=c?i[c]:void 0,f=typeof d=="string"?d:d?.value||"transparent",p=typeof u=="string"?!1:u.grid||!1,m=!!d&&!l,y=o==="docs"?`#anchor--${a} .docs-story`:".sb-show-main",E=o==="docs"?`#anchor--${a} .docs-story`:".sb-show-main",b=n.layout===void 0||n.layout==="padded",v=o==="docs"?20:b?16:0,{cellAmount:S,cellSize:x,opacity:C,offsetX:$=v,offsetY:w=v}=s,T=o==="docs"?`${oh}-docs-${a}`:`${oh}-color`,O=o==="docs"?a:null;rh(()=>{let _=`
55
+ ${y} {
56
+ background: ${f} !important;
57
+ ${dA}
58
+ }`;if(!m){nh(T);return}uA(T,_,O)},[y,T,O,m,f]);let D=o==="docs"?`${ah}-docs-${a}`:`${ah}`;return rh(()=>{if(!p){nh(D);return}let _=[`${x*S}px ${x*S}px`,`${x*S}px ${x*S}px`,`${x}px ${x}px`,`${x}px ${x}px`].join(", "),I=`
59
+ ${E} {
60
+ background-size: ${_} !important;
61
+ background-position: ${$}px ${w}px, ${$}px ${w}px, ${$}px ${w}px, ${$}px ${w}px !important;
62
+ background-blend-mode: difference !important;
63
+ background-image: linear-gradient(rgba(130, 130, 130, ${C}) 1px, transparent 1px),
64
+ linear-gradient(90deg, rgba(130, 130, 130, ${C}) 1px, transparent 1px),
65
+ linear-gradient(rgba(130, 130, 130, ${C/2}) 1px, transparent 1px),
66
+ linear-gradient(90deg, rgba(130, 130, 130, ${C/2}) 1px, transparent 1px) !important;
67
+ }
68
+ `;sA(D,I)},[S,x,E,D,p,$,w,C]),e()};globalThis.FEATURES?.backgrounds;var{step:_V}=WT({step:async(e,t,r)=>t(r)},{intercept:!0});const{addons:ih}=__STORYBOOK_MODULE_PREVIEW_API__,{STORY_RENDER_PHASE_CHANGED:pA}=__STORYBOOK_MODULE_CORE_EVENTS__;var lh={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"]},hA="svg,path,rect,circle,line,polyline,polygon,ellipse,text".split(","),Pe=(e,t={},r)=>{let n=hA.includes(e)?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return Object.entries(t).forEach(([o,a])=>{/[A-Z]/.test(o)?(o==="onClick"&&(n.addEventListener("click",a),n.addEventListener("keydown",i=>{(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),a())})),o==="onMouseEnter"&&n.addEventListener("mouseenter",a),o==="onMouseLeave"&&n.addEventListener("mouseleave",a)):n.setAttribute(o,a)}),r?.forEach(o=>{if(!(o==null||o===!1))try{n.appendChild(o)}catch{n.appendChild(document.createTextNode(String(o)))}}),n},ha=e=>lh[e]&&Pe("svg",{width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},lh[e].map(t=>Pe("path",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd",d:t}))),gA=e=>{if("elements"in e){let{elements:n,color:o,style:a}=e;return{id:void 0,priority:0,selectors:n,styles:{outline:`2px ${a} ${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}},mA=e=>e instanceof Function,io=new Map,Dr=new Map,ga=new Map,rr=e=>{let t=Symbol();return Dr.set(t,[]),io.set(t,e),{get:()=>io.get(t),set:r=>{let n=io.get(t),o=mA(r)?r(n):r;o!==n&&(io.set(t,o),Dr.get(t)?.forEach(a=>{ga.get(a)?.(),ga.set(a,a(o))}))},subscribe:r=>(Dr.get(t)?.push(r),()=>{let n=Dr.get(t);n&&Dr.set(t,n.filter(o=>o!==r))}),teardown:()=>{Dr.get(t)?.forEach(r=>{ga.get(r)?.(),ga.delete(r)}),Dr.delete(t),io.delete(t)}}},sh=e=>{let t=document.getElementById("storybook-root"),r=new Map;for(let n of e){let{priority:o=0}=n;for(let a of n.selectors){let i=[...document.querySelectorAll(`:is(${a}):not([id^="storybook-"], [id^="storybook-"] *, [class^="sb-"], [class^="sb-"] *)`),...t?.querySelectorAll(a)||[]];for(let l of i){let s=r.get(l);(!s||s.priority<=o)&&r.set(l,{...n,priority:o,selectors:Array.from(new Set((s?.selectors||[]).concat(a)))})}}}return r},yA=e=>Array.from(e.entries()).map(([t,{selectors:r,styles:n,hoverStyles:o,focusStyles:a,menu:i}])=>{let{top:l,left:s,width:u,height:c}=t.getBoundingClientRect(),{position:d}=getComputedStyle(t);return{element:t,selectors:r,styles:n,hoverStyles:o,focusStyles:a,menu:i,top:d==="fixed"?l:l+window.scrollY,left:d==="fixed"?s:s+window.scrollX,width:u,height:c}}).sort((t,r)=>r.width*r.height-t.width*t.height),uh=(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},ch=(e,t,r)=>{if(!t||!r)return!1;let{left:n,top:o,width:a,height:i}=e;i<br&&(o=o-Math.round((br-i)/2),i=br),a<br&&(n=n-Math.round((br-a)/2),a=br),t.style.position==="fixed"&&(n+=window.scrollX,o+=window.scrollY);let{x:l,y:s}=r;return l>=n&&l<=n+a&&s>=o&&s<=o+i},bA=(e,t,r={})=>{let{x:n,y:o}=t,{margin:a=5,topOffset:i=0,centered:l=!1}=r,{scrollX:s,scrollY:u,innerHeight:c,innerWidth:d}=window,f=Math.min(e.style.position==="fixed"?o-u:o,c-e.clientHeight-a-i+u),p=l?e.clientWidth/2:0,m=e.style.position==="fixed"?Math.max(Math.min(n-s,d-p-a),p+a):Math.max(Math.min(n,d-p-a+s),p+a+s);Object.assign(e.style,{...m!==n&&{left:`${m}px`},...f!==o&&{top:`${f}px`}})},dh=e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.showPopover()},EA=e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.hidePopover()},vA=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}}),ye="storybook-highlights-menu",fh="storybook-highlights-root",SA="storybook-root",xA=e=>{if(globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED)return;globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED=!0;let{document:t}=globalThis,r=rr([]),n=rr(new Map),o=rr([]),a=rr(),i=rr(),l=rr([]),s=rr([]),u=rr(),c=rr(),d=t.getElementById(fh);r.subscribe(()=>{d||(d=Pe("div",{id:fh}),t.body.appendChild(d))}),r.subscribe(w=>{let T=t.getElementById(SA);if(!T)return;n.set(sh(w));let O=new MutationObserver(()=>n.set(sh(w)));return O.observe(T,{subtree:!0,childList:!0}),()=>{O.disconnect()}}),n.subscribe(w=>{let T=()=>requestAnimationFrame(()=>o.set(yA(w))),O=new ResizeObserver(T);O.observe(t.body),Array.from(w.keys()).forEach(_=>O.observe(_));let D=Array.from(t.body.querySelectorAll("*")).filter(_=>{let{overflow:I,overflowX:L,overflowY:A}=window.getComputedStyle(_);return["auto","scroll"].some(P=>[I,L,A].includes(P))});return D.forEach(_=>_.addEventListener("scroll",T)),()=>{O.disconnect(),D.forEach(_=>_.removeEventListener("scroll",T))}}),n.subscribe(w=>{let T=Array.from(w.keys()).filter(({style:D})=>D.position==="sticky"),O=()=>requestAnimationFrame(()=>{o.set(D=>D.map(_=>{if(T.includes(_.element)){let{top:I,left:L}=_.element.getBoundingClientRect();return{..._,top:I+window.scrollY,left:L+window.scrollX}}return _}))});return t.addEventListener("scroll",O),()=>t.removeEventListener("scroll",O)}),n.subscribe(w=>{l.set(T=>T.filter(({element:O})=>w.has(O)))}),l.subscribe(w=>{w.length?(c.set(T=>w.some(O=>O.element===T?.element)?T:void 0),u.set(T=>w.some(O=>O.element===T?.element)?T:void 0)):(c.set(void 0),u.set(void 0),a.set(void 0))});let f=new Map(new Map);r.subscribe(w=>{w.forEach(({keyframes:T})=>{if(T){let O=f.get(T);O||(O=t.createElement("style"),O.setAttribute("data-highlight","keyframes"),f.set(T,O),t.head.appendChild(O)),O.innerHTML=T}}),f.forEach((T,O)=>{w.some(D=>D.keyframes===O)||(T.remove(),f.delete(O))})});let p=new Map(new Map);o.subscribe(w=>{w.forEach(T=>{let O=p.get(T.element);if(d&&!O){let D={popover:"manual","data-highlight-dimensions":`w${T.width.toFixed(0)}h${T.height.toFixed(0)}`,"data-highlight-coordinates":`x${T.left.toFixed(0)}y${T.top.toFixed(0)}`};O=d.appendChild(Pe("div",D,[Pe("div")])),p.set(T.element,O)}}),p.forEach((T,O)=>{w.some(({element:D})=>D===O)||(T.remove(),p.delete(O))})}),o.subscribe(w=>{let T=w.filter(D=>D.menu);if(!T.length)return;let O=D=>{requestAnimationFrame(()=>{let _=t.getElementById(ye),I={x:D.pageX,y:D.pageY};if(_&&!uh(_,I)){let L=T.filter(A=>{let P=p.get(A.element);return ch(A,P,I)});a.set(L.length?I:void 0),l.set(L)}})};return t.addEventListener("click",O),()=>t.removeEventListener("click",O)});let m=()=>{let w=t.getElementById(ye),T=i.get();!T||w&&uh(w,T)||s.set(O=>{let D=o.get().filter(A=>{let P=p.get(A.element);return ch(A,P,T)}),_=O.filter(A=>D.includes(A)),I=D.filter(A=>!O.includes(A)),L=O.length-_.length;return I.length||L?[..._,...I]:O})};i.subscribe(m),o.subscribe(m);let y=()=>{let w=c.get(),T=w?[w]:l.get(),O=T.length===1?T[0]:u.get(),D=a.get()!==void 0;o.get().forEach(_=>{let I=p.get(_.element);if(I){let L=O===_,A=D?O?L:T.includes(_):s.get()?.includes(_);Object.assign(I.style,{animation:"none",background:"transparent",border:"none",boxSizing:"border-box",outline:"none",outlineOffset:"0px",..._.styles,...A?_.hoverStyles:{},...L?_.focusStyles:{},position:getComputedStyle(_.element).position==="fixed"?"fixed":"absolute",zIndex:ip-10,top:`${_.top}px`,left:`${_.left}px`,width:`${_.width}px`,height:`${_.height}px`,margin:0,padding:0,cursor:_.menu&&A?"pointer":"default",pointerEvents:_.menu?"auto":"none",display:"flex",alignItems:"center",justifyContent:"center",overflow:"visible"}),Object.assign(I.children[0].style,{width:"100%",height:"100%",minHeight:`${br}px`,minWidth:`${br}px`,boxSizing:"content-box",padding:I.style.outlineWidth||"0px"}),dh(I)}})};o.subscribe(y),l.subscribe(y),s.subscribe(y),u.subscribe(y),c.subscribe(y);let E=()=>{if(!d)return;let w=t.getElementById(ye);if(w)w.innerHTML="";else{let _={id:ye,popover:"manual"};w=d.appendChild(Pe("div",_)),d.appendChild(Pe("style",{},[`
69
+ #${ye} {
70
+ position: absolute;
71
+ z-index: ${ip};
72
+ width: 300px;
73
+ padding: 0px;
74
+ margin: 15px 0 0 0;
75
+ transform: translateX(-50%);
76
+ font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
77
+ font-size: 12px;
78
+ background: white;
79
+ border: none;
80
+ border-radius: 6px;
81
+ box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05), 0 5px 15px 0 rgba(0, 0, 0, 0.1);
82
+ color: #2E3438;
83
+ }
84
+ #${ye} ul {
85
+ list-style: none;
86
+ margin: 0;
87
+ padding: 0;
88
+ }
89
+ #${ye} > ul {
90
+ max-height: 300px;
91
+ overflow-y: auto;
92
+ padding: 4px 0;
93
+ }
94
+ #${ye} li {
95
+ padding: 0 4px;
96
+ margin: 0;
97
+ }
98
+ #${ye} li > :not(ul) {
99
+ display: flex;
100
+ padding: 8px;
101
+ margin: 0;
102
+ align-items: center;
103
+ gap: 8px;
104
+ border-radius: 4px;
105
+ }
106
+ #${ye} button {
107
+ width: 100%;
108
+ border: 0;
109
+ background: transparent;
110
+ color: inherit;
111
+ text-align: left;
112
+ font-family: inherit;
113
+ font-size: inherit;
114
+ }
115
+ #${ye} button:focus-visible {
116
+ outline-color: #029CFD;
117
+ }
118
+ #${ye} button:hover {
119
+ background: rgba(2, 156, 253, 0.07);
120
+ color: #029CFD;
121
+ cursor: pointer;
122
+ }
123
+ #${ye} li code {
124
+ white-space: nowrap;
125
+ overflow: hidden;
126
+ text-overflow: ellipsis;
127
+ line-height: 16px;
128
+ font-size: 11px;
129
+ }
130
+ #${ye} li svg {
131
+ flex-shrink: 0;
132
+ margin: 1px;
133
+ color: #73828C;
134
+ }
135
+ #${ye} li > button:hover svg, #${ye} li > button:focus-visible svg {
136
+ color: #029CFD;
137
+ }
138
+ #${ye} .element-list li svg {
139
+ display: none;
140
+ }
141
+ #${ye} li.selectable svg, #${ye} li.selected svg {
142
+ display: block;
143
+ }
144
+ #${ye} .menu-list {
145
+ border-top: 1px solid rgba(38, 85, 115, 0.15);
146
+ }
147
+ #${ye} .menu-list > li:not(:last-child) {
148
+ padding-bottom: 4px;
149
+ margin-bottom: 4px;
150
+ border-bottom: 1px solid rgba(38, 85, 115, 0.15);
151
+ }
152
+ #${ye} .menu-items, #${ye} .menu-items li {
153
+ padding: 0;
154
+ }
155
+ #${ye} .menu-item {
156
+ display: flex;
157
+ }
158
+ #${ye} .menu-item-content {
159
+ display: flex;
160
+ flex-direction: column;
161
+ flex-grow: 1;
162
+ }
163
+ `]))}let T=c.get(),O=T?[T]:l.get();if(O.length&&(w.style.position=getComputedStyle(O[0].element).position==="fixed"?"fixed":"absolute",w.appendChild(Pe("ul",{class:"element-list"},O.map(_=>{let I=O.length>1&&!!_.menu?.some(P=>P.some(k=>!k.selectors||k.selectors.some(F=>_.selectors.includes(F)))),L=I?{class:"selectable",onClick:()=>c.set(_),onMouseEnter:()=>u.set(_),onMouseLeave:()=>u.set(void 0)}:T?{class:"selected",onClick:()=>c.set(void 0)}:{},A=I||T;return Pe("li",L,[Pe(A?"button":"div",A?{type:"button"}:{},[T?ha("chevronLeft"):null,Pe("code",{},[_.element.outerHTML]),I?ha("chevronRight"):null])])})))),c.get()||l.get().length===1){let _=c.get()||l.get()[0],I=_.menu?.filter(L=>L.some(A=>!A.selectors||A.selectors.some(P=>_.selectors.includes(P))));I?.length&&w.appendChild(Pe("ul",{class:"menu-list"},I.map(L=>Pe("li",{},[Pe("ul",{class:"menu-items"},L.map(({id:A,title:P,description:k,iconLeft:F,iconRight:M,clickEvent:B})=>{let N=B&&(()=>e.emit(B,A,vA(_)));return Pe("li",{},[Pe(N?"button":"div",N?{class:"menu-item",type:"button",onClick:N}:{class:"menu-item"},[F?ha(F):null,Pe("div",{class:"menu-item-content"},[Pe(k?"strong":"span",{},[P]),k&&Pe("span",{},[k])]),M?ha(M):null])])}))]))))}let D=a.get();D?(Object.assign(w.style,{display:"block",left:`${w.style.position==="fixed"?D.x-window.scrollX:D.x}px`,top:`${w.style.position==="fixed"?D.y-window.scrollY:D.y}px`}),dh(w),requestAnimationFrame(()=>bA(w,D,{topOffset:15,centered:!0}))):(EA(w),Object.assign(w.style,{display:"none"}))};l.subscribe(E),c.subscribe(E);let b=w=>{let T=gA(w);r.set(O=>{let D=T.id?O.filter(_=>_.id!==T.id):O;return T.selectors?.length?[...D,T]:D})},v=w=>{w&&r.set(T=>T.filter(O=>O.id!==w))},S=()=>{r.set([]),n.set(new Map),o.set([]),a.set(void 0),i.set(void 0),l.set([]),s.set([]),u.set(void 0),c.set(void 0)},x,C=(w,T)=>{let O="scrollIntoView-highlight";clearTimeout(x),v(O);let D=t.querySelector(w);if(!D){console.warn(`Cannot scroll into view: ${w} not found`);return}D.scrollIntoView({behavior:"smooth",block:"center",...T});let _=`kf-${Math.random().toString(36).substring(2,15)}`;r.set(I=>[...I,{id:O,priority:1e3,selectors:[w],styles:{outline:"2px solid #1EA7FD",outlineOffset:"-1px",animation:`${_} 3s linear forwards`},keyframes:`@keyframes ${_} {
164
+ 0% { outline: 2px solid #1EA7FD; }
165
+ 20% { outline: 2px solid #1EA7FD00; }
166
+ 40% { outline: 2px solid #1EA7FD; }
167
+ 60% { outline: 2px solid #1EA7FD00; }
168
+ 80% { outline: 2px solid #1EA7FD; }
169
+ 100% { outline: 2px solid #1EA7FD00; }
170
+ }`}]),x=setTimeout(()=>v(O),3500)},$=w=>{requestAnimationFrame(()=>i.set({x:w.pageX,y:w.pageY}))};t.body.addEventListener("mousemove",$),e.on(kw,b),e.on(Nw,v),e.on(Mw,S),e.on(Bw,C),e.on(pA,({newPhase:w})=>{w==="loading"&&S()})};globalThis?.FEATURES?.highlight&&ih?.ready&&ih.ready().then(xA);const{useEffect:ph}=__STORYBOOK_MODULE_PREVIEW_API__,{global:ai}=__STORYBOOK_MODULE_GLOBAL__;function sb(){let e=ai.document.documentElement,t=Math.max(e.scrollHeight,e.offsetHeight);return{width:Math.max(e.scrollWidth,e.offsetWidth),height:t}}function $A(){let e=ai.document.createElement("canvas");e.id="storybook-addon-measure";let t=e.getContext("2d");ju(t!=null);let{width:r,height:n}=sb();return qu(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",ai.document.body.appendChild(e),{canvas:e,context:t,width:r,height:n}}function qu(e,t,{width:r,height:n}){e.style.width=`${r}px`,e.style.height=`${n}px`;let o=ai.window.devicePixelRatio;e.width=Math.floor(r*o),e.height=Math.floor(n*o),t.scale(o,o)}var Fe={};function wA(){Fe.canvas||(Fe=$A())}function ub(){Fe.context&&Fe.context.clearRect(0,0,Fe.width??0,Fe.height??0)}function CA(e){ub(),e(Fe.context)}function _A(){ju(Fe.canvas),ju(Fe.context),qu(Fe.canvas,Fe.context,{width:0,height:0});let{width:e,height:t}=sb();qu(Fe.canvas,Fe.context,{width:e,height:t}),Fe.width=e,Fe.height=t}function TA(){Fe.canvas&&(ub(),Fe.canvas.parentNode?.removeChild(Fe.canvas),Fe={})}const{global:Dt}=__STORYBOOK_MODULE_GLOBAL__;var dn={margin:"#f6b26b",border:"#ffe599",padding:"#93c47d",content:"#6fa8dc",text:"#232020"},sr=6;function hh(e,{x:t,y:r,w:n,h:o,r:a}){t=t-n/2,r=r-o/2,n<2*a&&(a=n/2),o<2*a&&(a=o/2),e.beginPath(),e.moveTo(t+a,r),e.arcTo(t+n,r,t+n,r+o,a),e.arcTo(t+n,r+o,t,r+o,a),e.arcTo(t,r+o,t,r,a),e.arcTo(t,r,t+n,r,a),e.closePath()}function AA(e,{padding:t,border:r,width:n,height:o,top:a,left:i}){let l=n-r.left-r.right-t.left-t.right,s=o-t.top-t.bottom-r.top-r.bottom,u=i+r.left+t.left,c=a+r.top+t.top;return e==="top"?u+=l/2:e==="right"?(u+=l,c+=s/2):e==="bottom"?(u+=l/2,c+=s):e==="left"?c+=s/2:e==="center"&&(u+=l/2,c+=s/2),{x:u,y:c}}function OA(e,t,{margin:r,border:n,padding:o},a,i){let l=f=>0,s=0,u=0,c=i?1:.5,d=i?a*2:0;return e==="padding"?l=f=>o[f]*c+d:e==="border"?l=f=>o[f]+n[f]*c+d:e==="margin"&&(l=f=>o[f]+n[f]+r[f]*c+d),t==="top"?u=-l("top"):t==="right"?s=l("right"):t==="bottom"?u=l("bottom"):t==="left"&&(s=-l("left")),{offsetX:s,offsetY:u}}function RA(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 DA(e,t,r){return e==="top"?t.y=r.y-r.h-sr:e==="right"?t.x=r.x+r.w/2+sr+t.w/2:e==="bottom"?t.y=r.y+r.h+sr:e==="left"&&(t.x=r.x-r.w/2-sr-t.w/2),{x:t.x,y:t.y}}function cb(e,t,{x:r,y:n,w:o,h:a},i){return hh(e,{x:r,y:n,w:o,h:a,r:3}),e.fillStyle=`${dn[t]}dd`,e.fill(),e.strokeStyle=dn[t],e.stroke(),e.fillStyle=dn.text,e.fillText(i,r,n),hh(e,{x:r,y:n,w:o,h:a,r:3}),e.fillStyle=`${dn[t]}dd`,e.fill(),e.strokeStyle=dn[t],e.stroke(),e.fillStyle=dn.text,e.fillText(i,r,n),{x:r,y:n,w:o,h:a}}function db(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+sr*2,a=n+sr*2;return{w:o,h:a}}function PA(e,t,{type:r,position:n="center",text:o},a,i=!1){let{x:l,y:s}=AA(n,t),{offsetX:u,offsetY:c}=OA(r,n,t,sr+1,i);l+=u,s+=c;let{w:d,h:f}=db(e,o);if(a&&RA({x:l,y:s,w:d,h:f},a)){let p=DA(n,{x:l,y:s,w:d},a);l=p.x,s=p.y}return cb(e,r,{x:l,y:s,w:d,h:f},o)}function FA(e,{w:t,h:r}){let n=t*.5+sr,o=r*.5+sr;return{offsetX:(e.x==="left"?-1:1)*n,offsetY:(e.y==="top"?-1:1)*o}}function IA(e,t,{type:r,text:n}){let{floatingAlignment:o,extremities:a}=t,i=a[o.x],l=a[o.y],{w:s,h:u}=db(e,n),{offsetX:c,offsetY:d}=FA(o,{w:s,h:u});return i+=c,l+=d,cb(e,r,{x:i,y:l,w:s,h:u},n)}function lo(e,t,r,n){let o=[];r.forEach((a,i)=>{let l=n&&a.position==="center"?IA(e,t,a):PA(e,t,a,o[i-1],n);o[i]=l})}function LA(e,t,r,n){let o=r.reduce((a,i)=>(Object.prototype.hasOwnProperty.call(a,i.position)||(a[i.position]=[]),a[i.position]?.push(i),a),{});o.top&&lo(e,t,o.top,n),o.right&&lo(e,t,o.right,n),o.bottom&&lo(e,t,o.bottom,n),o.left&&lo(e,t,o.left,n),o.center&&lo(e,t,o.center,n)}var ki={margin:"#f6b26ba8",border:"#ffe599a8",padding:"#93c47d8c",content:"#6fa8dca8"},gh=30;function mt(e){return parseInt(e.replace("px",""),10)}function En(e){return Number.isInteger(e)?e:e.toFixed(2)}function bd(e){return e.filter(t=>t.text!==0&&t.text!=="0")}function kA(e){let t={top:Dt.window.scrollY,bottom:Dt.window.scrollY+Dt.window.innerHeight,left:Dt.window.scrollX,right:Dt.window.scrollX+Dt.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 NA(e){let t=Dt.getComputedStyle(e),{top:r,left:n,right:o,bottom:a,width:i,height:l}=e.getBoundingClientRect(),{marginTop:s,marginBottom:u,marginLeft:c,marginRight:d,paddingTop:f,paddingBottom:p,paddingLeft:m,paddingRight:y,borderBottomWidth:E,borderTopWidth:b,borderLeftWidth:v,borderRightWidth:S}=t;r=r+Dt.window.scrollY,n=n+Dt.window.scrollX,a=a+Dt.window.scrollY,o=o+Dt.window.scrollX;let x={top:mt(s),bottom:mt(u),left:mt(c),right:mt(d)},C={top:mt(f),bottom:mt(p),left:mt(m),right:mt(y)},$={top:mt(b),bottom:mt(E),left:mt(v),right:mt(S)},w={top:r-x.top,bottom:a+x.bottom,left:n-x.left,right:o+x.right};return{margin:x,padding:C,border:$,top:r,left:n,bottom:a,right:o,width:i,height:l,extremities:w,floatingAlignment:kA(w)}}function MA(e,{margin:t,width:r,height:n,top:o,left:a,bottom:i,right:l}){let s=n+t.bottom+t.top;e.fillStyle=ki.margin,e.fillRect(a,o-t.top,r,t.top),e.fillRect(l,o-t.top,t.right,s),e.fillRect(a,i,r,t.bottom),e.fillRect(a-t.left,o-t.top,t.left,s);let u=[{type:"margin",text:En(t.top),position:"top"},{type:"margin",text:En(t.right),position:"right"},{type:"margin",text:En(t.bottom),position:"bottom"},{type:"margin",text:En(t.left),position:"left"}];return bd(u)}function BA(e,{padding:t,border:r,width:n,height:o,top:a,left:i,bottom:l,right:s}){let u=n-r.left-r.right,c=o-t.top-t.bottom-r.top-r.bottom;e.fillStyle=ki.padding,e.fillRect(i+r.left,a+r.top,u,t.top),e.fillRect(s-t.right-r.right,a+t.top+r.top,t.right,c),e.fillRect(i+r.left,l-t.bottom-r.bottom,u,t.bottom),e.fillRect(i+r.left,a+t.top+r.top,t.left,c);let d=[{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 bd(d)}function jA(e,{border:t,width:r,height:n,top:o,left:a,bottom:i,right:l}){let s=n-t.top-t.bottom;e.fillStyle=ki.border,e.fillRect(a,o,r,t.top),e.fillRect(a,i-t.bottom,r,t.bottom),e.fillRect(a,o+t.top,t.left,s),e.fillRect(l-t.right,o+t.top,t.right,s);let u=[{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 bd(u)}function HA(e,{padding:t,border:r,width:n,height:o,top:a,left:i}){let l=n-r.left-r.right-t.left-t.right,s=o-t.top-t.bottom-r.top-r.bottom;return e.fillStyle=ki.content,e.fillRect(i+r.left+t.left,a+r.top+t.top,l,s),[{type:"content",position:"center",text:`${En(l)} x ${En(s)}`}]}function UA(e){return t=>{if(e&&t){let r=NA(e),n=MA(t,r),o=BA(t,r),a=jA(t,r),i=HA(t,r),l=r.width<=gh*3||r.height<=gh;LA(t,r,[...i,...o,...a,...n],l)}}}function zA(e){CA(UA(e))}const{global:KA}=__STORYBOOK_MODULE_GLOBAL__;var GA=(e,t)=>{let r=KA.document.elementFromPoint(e,t),n=o=>{if(o&&o.shadowRoot){let a=o.shadowRoot.elementFromPoint(e,t);return o.isEqualNode(a)?o:a.shadowRoot?n(a):a}return o};return n(r)||r},mh,ma={x:0,y:0};function yh(e,t){mh=GA(e,t),zA(mh)}var WA=(e,t)=>{let{measureEnabled:r}=t.globals||{};return ph(()=>{if(typeof globalThis.document>"u")return;let n=o=>{window.requestAnimationFrame(()=>{o.stopPropagation(),ma.x=o.clientX,ma.y=o.clientY})};return globalThis.document.addEventListener("pointermove",n),()=>{globalThis.document.removeEventListener("pointermove",n)}},[]),ph(()=>{let n=a=>{window.requestAnimationFrame(()=>{a.stopPropagation(),yh(a.clientX,a.clientY)})},o=()=>{window.requestAnimationFrame(()=>{_A()})};return t.viewMode==="story"&&r&&(globalThis.document.addEventListener("pointerover",n),wA(),globalThis.window.addEventListener("resize",o),yh(ma.x,ma.y)),()=>{globalThis.window.removeEventListener("resize",o),TA()}},[r,t.viewMode]),e()};globalThis.FEATURES?.measure;const{useEffect:VA,useMemo:qA}=__STORYBOOK_MODULE_PREVIEW_API__,{global:ja}=__STORYBOOK_MODULE_GLOBAL__;var bh=e=>{(Array.isArray(e)?e:[e]).forEach(YA)},YA=e=>{let t=typeof e=="string"?e:e.join(""),r=ja.document.getElementById(t);r&&r.parentElement&&r.parentElement.removeChild(r)},XA=(e,t)=>{let r=ja.document.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=ja.document.createElement("style");n.setAttribute("id",e),n.innerHTML=t,ja.document.head.appendChild(n)}};function JA(e){return vt`
171
+ ${e} body {
172
+ outline: 1px solid #2980b9 !important;
173
+ }
174
+
175
+ ${e} article {
176
+ outline: 1px solid #3498db !important;
177
+ }
178
+
179
+ ${e} nav {
180
+ outline: 1px solid #0088c3 !important;
181
+ }
182
+
183
+ ${e} aside {
184
+ outline: 1px solid #33a0ce !important;
185
+ }
186
+
187
+ ${e} section {
188
+ outline: 1px solid #66b8da !important;
189
+ }
190
+
191
+ ${e} header {
192
+ outline: 1px solid #99cfe7 !important;
193
+ }
194
+
195
+ ${e} footer {
196
+ outline: 1px solid #cce7f3 !important;
197
+ }
198
+
199
+ ${e} h1 {
200
+ outline: 1px solid #162544 !important;
201
+ }
202
+
203
+ ${e} h2 {
204
+ outline: 1px solid #314e6e !important;
205
+ }
206
+
207
+ ${e} h3 {
208
+ outline: 1px solid #3e5e85 !important;
209
+ }
210
+
211
+ ${e} h4 {
212
+ outline: 1px solid #449baf !important;
213
+ }
214
+
215
+ ${e} h5 {
216
+ outline: 1px solid #c7d1cb !important;
217
+ }
218
+
219
+ ${e} h6 {
220
+ outline: 1px solid #4371d0 !important;
221
+ }
222
+
223
+ ${e} main {
224
+ outline: 1px solid #2f4f90 !important;
225
+ }
226
+
227
+ ${e} address {
228
+ outline: 1px solid #1a2c51 !important;
229
+ }
230
+
231
+ ${e} div {
232
+ outline: 1px solid #036cdb !important;
233
+ }
234
+
235
+ ${e} p {
236
+ outline: 1px solid #ac050b !important;
237
+ }
238
+
239
+ ${e} hr {
240
+ outline: 1px solid #ff063f !important;
241
+ }
242
+
243
+ ${e} pre {
244
+ outline: 1px solid #850440 !important;
245
+ }
246
+
247
+ ${e} blockquote {
248
+ outline: 1px solid #f1b8e7 !important;
249
+ }
250
+
251
+ ${e} ol {
252
+ outline: 1px solid #ff050c !important;
253
+ }
254
+
255
+ ${e} ul {
256
+ outline: 1px solid #d90416 !important;
257
+ }
258
+
259
+ ${e} li {
260
+ outline: 1px solid #d90416 !important;
261
+ }
262
+
263
+ ${e} dl {
264
+ outline: 1px solid #fd3427 !important;
265
+ }
266
+
267
+ ${e} dt {
268
+ outline: 1px solid #ff0043 !important;
269
+ }
270
+
271
+ ${e} dd {
272
+ outline: 1px solid #e80174 !important;
273
+ }
274
+
275
+ ${e} figure {
276
+ outline: 1px solid #ff00bb !important;
277
+ }
278
+
279
+ ${e} figcaption {
280
+ outline: 1px solid #bf0032 !important;
281
+ }
282
+
283
+ ${e} table {
284
+ outline: 1px solid #00cc99 !important;
285
+ }
286
+
287
+ ${e} caption {
288
+ outline: 1px solid #37ffc4 !important;
289
+ }
290
+
291
+ ${e} thead {
292
+ outline: 1px solid #98daca !important;
293
+ }
294
+
295
+ ${e} tbody {
296
+ outline: 1px solid #64a7a0 !important;
297
+ }
298
+
299
+ ${e} tfoot {
300
+ outline: 1px solid #22746b !important;
301
+ }
302
+
303
+ ${e} tr {
304
+ outline: 1px solid #86c0b2 !important;
305
+ }
306
+
307
+ ${e} th {
308
+ outline: 1px solid #a1e7d6 !important;
309
+ }
310
+
311
+ ${e} td {
312
+ outline: 1px solid #3f5a54 !important;
313
+ }
314
+
315
+ ${e} col {
316
+ outline: 1px solid #6c9a8f !important;
317
+ }
318
+
319
+ ${e} colgroup {
320
+ outline: 1px solid #6c9a9d !important;
321
+ }
322
+
323
+ ${e} button {
324
+ outline: 1px solid #da8301 !important;
325
+ }
326
+
327
+ ${e} datalist {
328
+ outline: 1px solid #c06000 !important;
329
+ }
330
+
331
+ ${e} fieldset {
332
+ outline: 1px solid #d95100 !important;
333
+ }
334
+
335
+ ${e} form {
336
+ outline: 1px solid #d23600 !important;
337
+ }
338
+
339
+ ${e} input {
340
+ outline: 1px solid #fca600 !important;
341
+ }
342
+
343
+ ${e} keygen {
344
+ outline: 1px solid #b31e00 !important;
345
+ }
346
+
347
+ ${e} label {
348
+ outline: 1px solid #ee8900 !important;
349
+ }
350
+
351
+ ${e} legend {
352
+ outline: 1px solid #de6d00 !important;
353
+ }
354
+
355
+ ${e} meter {
356
+ outline: 1px solid #e8630c !important;
357
+ }
358
+
359
+ ${e} optgroup {
360
+ outline: 1px solid #b33600 !important;
361
+ }
362
+
363
+ ${e} option {
364
+ outline: 1px solid #ff8a00 !important;
365
+ }
366
+
367
+ ${e} output {
368
+ outline: 1px solid #ff9619 !important;
369
+ }
370
+
371
+ ${e} progress {
372
+ outline: 1px solid #e57c00 !important;
373
+ }
374
+
375
+ ${e} select {
376
+ outline: 1px solid #e26e0f !important;
377
+ }
378
+
379
+ ${e} textarea {
380
+ outline: 1px solid #cc5400 !important;
381
+ }
382
+
383
+ ${e} details {
384
+ outline: 1px solid #33848f !important;
385
+ }
386
+
387
+ ${e} summary {
388
+ outline: 1px solid #60a1a6 !important;
389
+ }
390
+
391
+ ${e} command {
392
+ outline: 1px solid #438da1 !important;
393
+ }
394
+
395
+ ${e} menu {
396
+ outline: 1px solid #449da6 !important;
397
+ }
398
+
399
+ ${e} del {
400
+ outline: 1px solid #bf0000 !important;
401
+ }
402
+
403
+ ${e} ins {
404
+ outline: 1px solid #400000 !important;
405
+ }
406
+
407
+ ${e} img {
408
+ outline: 1px solid #22746b !important;
409
+ }
410
+
411
+ ${e} iframe {
412
+ outline: 1px solid #64a7a0 !important;
413
+ }
414
+
415
+ ${e} embed {
416
+ outline: 1px solid #98daca !important;
417
+ }
418
+
419
+ ${e} object {
420
+ outline: 1px solid #00cc99 !important;
421
+ }
422
+
423
+ ${e} param {
424
+ outline: 1px solid #37ffc4 !important;
425
+ }
426
+
427
+ ${e} video {
428
+ outline: 1px solid #6ee866 !important;
429
+ }
430
+
431
+ ${e} audio {
432
+ outline: 1px solid #027353 !important;
433
+ }
434
+
435
+ ${e} source {
436
+ outline: 1px solid #012426 !important;
437
+ }
438
+
439
+ ${e} canvas {
440
+ outline: 1px solid #a2f570 !important;
441
+ }
442
+
443
+ ${e} track {
444
+ outline: 1px solid #59a600 !important;
445
+ }
446
+
447
+ ${e} map {
448
+ outline: 1px solid #7be500 !important;
449
+ }
450
+
451
+ ${e} area {
452
+ outline: 1px solid #305900 !important;
453
+ }
454
+
455
+ ${e} a {
456
+ outline: 1px solid #ff62ab !important;
457
+ }
458
+
459
+ ${e} em {
460
+ outline: 1px solid #800b41 !important;
461
+ }
462
+
463
+ ${e} strong {
464
+ outline: 1px solid #ff1583 !important;
465
+ }
466
+
467
+ ${e} i {
468
+ outline: 1px solid #803156 !important;
469
+ }
470
+
471
+ ${e} b {
472
+ outline: 1px solid #cc1169 !important;
473
+ }
474
+
475
+ ${e} u {
476
+ outline: 1px solid #ff0430 !important;
477
+ }
478
+
479
+ ${e} s {
480
+ outline: 1px solid #f805e3 !important;
481
+ }
482
+
483
+ ${e} small {
484
+ outline: 1px solid #d107b2 !important;
485
+ }
486
+
487
+ ${e} abbr {
488
+ outline: 1px solid #4a0263 !important;
489
+ }
490
+
491
+ ${e} q {
492
+ outline: 1px solid #240018 !important;
493
+ }
494
+
495
+ ${e} cite {
496
+ outline: 1px solid #64003c !important;
497
+ }
498
+
499
+ ${e} dfn {
500
+ outline: 1px solid #b4005a !important;
501
+ }
502
+
503
+ ${e} sub {
504
+ outline: 1px solid #dba0c8 !important;
505
+ }
506
+
507
+ ${e} sup {
508
+ outline: 1px solid #cc0256 !important;
509
+ }
510
+
511
+ ${e} time {
512
+ outline: 1px solid #d6606d !important;
513
+ }
514
+
515
+ ${e} code {
516
+ outline: 1px solid #e04251 !important;
517
+ }
518
+
519
+ ${e} kbd {
520
+ outline: 1px solid #5e001f !important;
521
+ }
522
+
523
+ ${e} samp {
524
+ outline: 1px solid #9c0033 !important;
525
+ }
526
+
527
+ ${e} var {
528
+ outline: 1px solid #d90047 !important;
529
+ }
530
+
531
+ ${e} mark {
532
+ outline: 1px solid #ff0053 !important;
533
+ }
534
+
535
+ ${e} bdi {
536
+ outline: 1px solid #bf3668 !important;
537
+ }
538
+
539
+ ${e} bdo {
540
+ outline: 1px solid #6f1400 !important;
541
+ }
542
+
543
+ ${e} ruby {
544
+ outline: 1px solid #ff7b93 !important;
545
+ }
546
+
547
+ ${e} rt {
548
+ outline: 1px solid #ff2f54 !important;
549
+ }
550
+
551
+ ${e} rp {
552
+ outline: 1px solid #803e49 !important;
553
+ }
554
+
555
+ ${e} span {
556
+ outline: 1px solid #cc2643 !important;
557
+ }
558
+
559
+ ${e} br {
560
+ outline: 1px solid #db687d !important;
561
+ }
562
+
563
+ ${e} wbr {
564
+ outline: 1px solid #db175b !important;
565
+ }`}var ZA=(e,t)=>{let r=t.globals||{},n=[!0,"true"].includes(r[_w]),o=t.viewMode==="docs",a=qA(()=>JA(o?'[data-story-block="true"]':".sb-show-main"),[t]);return VA(()=>{let i=o?`addon-outline-docs-${t.id}`:"addon-outline";return n?XA(i,a):bh(i),()=>{bh(i)}},[n,a,t]),e()};globalThis.FEATURES?.outline;const{clearAllMocks:TV,fn:AV,isMockFunction:OV,resetAllMocks:RV,restoreAllMocks:DV,uninstrumentedUserEvent:PV,within:FV}=__STORYBOOK_MODULE_TEST__;var On=e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),Eh=(e,t)=>{let r=On(e);if(r==="")throw new Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return r},ya=(e,t)=>`${Eh(e,"kind")}${t?`--${Eh(t,"name")}`:""}`,Lt=e=>`control-${e.replace(/\s+/g,"-")}`,Ni=e=>`set-${e.replace(/\s+/g,"-")}`;function je(){return je=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},je.apply(null,arguments)}function QA(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Po(e,t){return Po=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Po(e,t)}function eO(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Po(e,t)}function Yu(e){return Yu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Yu(e)}function tO(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function fb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fb=function(){return!!e})()}function rO(e,t,r){if(fb())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&Po(o,r.prototype),o}function Xu(e){var t=typeof Map=="function"?new Map:void 0;return Xu=function(r){if(r===null||!tO(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 rO(r,arguments,Yu(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Po(n,r)},Xu(e)}var Gt=(function(e){eO(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,QA(n)}return t})(Xu(Error));function zl(e){return Math.round(e*255)}function nO(e,t,r){return zl(e)+","+zl(t)+","+zl(r)}function ii(e,t,r,n){if(n===void 0&&(n=nO),t===0)return n(r,r,r);var o=(e%360+360)%360/60,a=(1-Math.abs(2*r-1))*t,i=a*(1-Math.abs(o%2-1)),l=0,s=0,u=0;o>=0&&o<1?(l=a,s=i):o>=1&&o<2?(l=i,s=a):o>=2&&o<3?(s=a,u=i):o>=3&&o<4?(s=i,u=a):o>=4&&o<5?(l=i,u=a):o>=5&&o<6&&(l=a,u=i);var c=r-a/2,d=l+c,f=s+c,p=u+c;return n(d,f,p)}var vh={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 oO(e){if(typeof e!="string")return e;var t=e.toLowerCase();return vh[t]?"#"+vh[t]:e}var aO=/^#[a-fA-F0-9]{6}$/,iO=/^#[a-fA-F0-9]{8}$/,lO=/^#[a-fA-F0-9]{3}$/,sO=/^#[a-fA-F0-9]{4}$/,Kl=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,uO=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,cO=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,dO=/^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 Rn(e){if(typeof e!="string")throw new Gt(3);var t=oO(e);if(t.match(aO))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(iO)){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(lO))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(sO)){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=Kl.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=uO.exec(t.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};var i=cO.exec(t);if(i){var l=parseInt(""+i[1],10),s=parseInt(""+i[2],10)/100,u=parseInt(""+i[3],10)/100,c="rgb("+ii(l,s,u)+")",d=Kl.exec(c);if(!d)throw new Gt(4,t,c);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10)}}var f=dO.exec(t.substring(0,50));if(f){var p=parseInt(""+f[1],10),m=parseInt(""+f[2],10)/100,y=parseInt(""+f[3],10)/100,E="rgb("+ii(p,m,y)+")",b=Kl.exec(E);if(!b)throw new Gt(4,t,E);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 Gt(5)}function fO(e){var t=e.red/255,r=e.green/255,n=e.blue/255,o=Math.max(t,r,n),a=Math.min(t,r,n),i=(o+a)/2;if(o===a)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var l,s=o-a,u=i>.5?s/(2-o-a):s/(o+a);switch(o){case t:l=(r-n)/s+(r<n?6:0);break;case r:l=(n-t)/s+2;break;default:l=(t-r)/s+4;break}return l*=60,e.alpha!==void 0?{hue:l,saturation:u,lightness:i,alpha:e.alpha}:{hue:l,saturation:u,lightness:i}}function Tr(e){return fO(Rn(e))}var pO=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},Ju=pO;function jr(e){var t=e.toString(16);return t.length===1?"0"+t:t}function Gl(e){return jr(Math.round(e*255))}function hO(e,t,r){return Ju("#"+Gl(e)+Gl(t)+Gl(r))}function pb(e,t,r){return ii(e,t,r,hO)}function gO(e,t,r){if(typeof e=="object"&&t===void 0&&r===void 0)return pb(e.hue,e.saturation,e.lightness);throw new Gt(1)}function mO(e,t,r,n){if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?pb(e.hue,e.saturation,e.lightness):"rgba("+ii(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Gt(2)}function Zu(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return Ju("#"+jr(e)+jr(t)+jr(r));if(typeof e=="object"&&t===void 0&&r===void 0)return Ju("#"+jr(e.red)+jr(e.green)+jr(e.blue));throw new Gt(6)}function Jr(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var o=Rn(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?Zu(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?Zu(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new Gt(7)}var yO=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},bO=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},EO=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},vO=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function Ar(e){if(typeof e!="object")throw new Gt(8);if(bO(e))return Jr(e);if(yO(e))return Zu(e);if(vO(e))return mO(e);if(EO(e))return gO(e);throw new Gt(8)}function hb(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):hb(e,t,n)}}function pt(e){return hb(e,e.length,[])}function SO(e,t){if(t==="transparent")return t;var r=Tr(t);return Ar(je({},r,{hue:r.hue+parseFloat(e)}))}pt(SO);function Gn(e,t,r){return Math.max(e,Math.min(t,r))}function xO(e,t){if(t==="transparent")return t;var r=Tr(t);return Ar(je({},r,{lightness:Gn(0,1,r.lightness-parseFloat(e))}))}var $O=pt(xO),Ge=$O;function wO(e,t){if(t==="transparent")return t;var r=Tr(t);return Ar(je({},r,{saturation:Gn(0,1,r.saturation-parseFloat(e))}))}pt(wO);function CO(e,t){if(t==="transparent")return t;var r=Tr(t);return Ar(je({},r,{lightness:Gn(0,1,r.lightness+parseFloat(e))}))}var _O=pt(CO),Ha=_O;function TO(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=Rn(t),o=je({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),a=Rn(r),i=je({},a,{alpha:typeof a.alpha=="number"?a.alpha:1}),l=o.alpha-i.alpha,s=parseFloat(e)*2-1,u=s*l===-1?s:s+l,c=1+s*l,d=(u/c+1)/2,f=1-d,p={red:Math.floor(o.red*d+i.red*f),green:Math.floor(o.green*d+i.green*f),blue:Math.floor(o.blue*d+i.blue*f),alpha:o.alpha*parseFloat(e)+i.alpha*(1-parseFloat(e))};return Jr(p)}var AO=pt(TO),gb=AO;function OO(e,t){if(t==="transparent")return t;var r=Rn(t),n=typeof r.alpha=="number"?r.alpha:1,o=je({},r,{alpha:Gn(0,1,(n*100+parseFloat(e)*100)/100)});return Jr(o)}var RO=pt(OO),DO=RO;function PO(e,t){if(t==="transparent")return t;var r=Tr(t);return Ar(je({},r,{saturation:Gn(0,1,r.saturation+parseFloat(e))}))}pt(PO);function FO(e,t){return t==="transparent"?t:Ar(je({},Tr(t),{hue:parseFloat(e)}))}pt(FO);function IO(e,t){return t==="transparent"?t:Ar(je({},Tr(t),{lightness:parseFloat(e)}))}pt(IO);function LO(e,t){return t==="transparent"?t:Ar(je({},Tr(t),{saturation:parseFloat(e)}))}pt(LO);function kO(e,t){return t==="transparent"?t:gb(parseFloat(e),"rgb(0, 0, 0)",t)}pt(kO);function NO(e,t){return t==="transparent"?t:gb(parseFloat(e),"rgb(255, 255, 255)",t)}pt(NO);function MO(e,t){if(t==="transparent")return t;var r=Rn(t),n=typeof r.alpha=="number"?r.alpha:1,o=je({},r,{alpha:Gn(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return Jr(o)}var BO=pt(MO),ur=BO,q={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"},lr={app:"#F6F9FC",bar:q.lightest,content:q.lightest,preview:q.lightest,gridCellSize:10,positive:"#F1FFEB",warning:"#FFF9EB",negative:"#FFF0EB",critical:"#D13800"},Ft={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}},Qu={light:{fgColor:{default:q.darkest,muted:q.dark,accent:q.secondary,inverse:q.lightest,positive:"#427C27",warning:"#7A4100",negative:"#C23400",critical:"#FFFFFF"},bgColor:{default:q.lightest,muted:lr.app,positive:"#F1FFEB",warning:"#FFF7EB",negative:"#FFF0EB",critical:"#D13800"},borderColor:{default:q.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"}}},jO={base:"dark",colorPrimary:"#FF4785",colorSecondary:"#479DFF",appBg:"#1B1C1D",appContentBg:"#222325",appHoverBg:"#233952",appPreviewBg:q.lightest,appBorderColor:"hsl(0 0% 100% / 0.1)",appBorderRadius:4,fontBase:Ft.fonts.base,fontCode:Ft.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},HO=jO,UO={base:"light",colorPrimary:q.primary,colorSecondary:q.secondary,appBg:lr.app,appContentBg:q.lightest,appHoverBg:"#DBECFF",appPreviewBg:q.lightest,appBorderColor:q.border,appBorderRadius:4,fontBase:Ft.fonts.base,fontCode:Ft.fonts.mono,textColor:q.darkest,textInverseColor:q.lightest,textMutedColor:q.dark,barTextColor:q.dark,barHoverColor:"#005CC7",barSelectedColor:"#0063D6",barBg:q.lightest,buttonBg:lr.app,buttonBorder:q.medium,booleanBg:q.mediumlight,booleanSelectedBg:q.lightest,inputBg:q.lightest,inputBorder:q.border,inputTextColor:q.darkest,inputBorderRadius:4},ec=UO;const{logger:zO}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{global:KO}=__STORYBOOK_MODULE_GLOBAL__;var{window:Wl}=KO,GO=e=>({color:e}),WO=e=>typeof e!="string"?(zO.warn(`Color passed to theme object should be a string. Instead ${e}(${typeof e}) was passed.`),!1):!0,VO=e=>!/(gradient|var|calc)/.test(e),qO=(e,t)=>e==="darken"?Jr(`${Ge(1,t)}`,.95):e==="lighten"?Jr(`${Ha(1,t)}`,.95):t,YO=e=>t=>{if(!WO(t)||!VO(t))return t;try{return qO(e,t)}catch{return t}},Ed=YO("lighten"),vd=()=>!Wl||!Wl.matchMedia?"light":Wl.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",Sh={light:ec,dark:HO},Ua=vd(),Vr={...Sh,normal:Sh[Ua]},mb=(e={base:Ua},t)=>{let r={...Vr[Ua],...Vr[e.base]||{},...e,base:Vr[e.base]?e.base:Ua};return{...t,...r,barSelectedColor:e.barSelectedColor||r.colorSecondary}},XO=Ve({"../../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,a=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,l=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,m=t?Symbol.for("react.memo"):60115,y=t?Symbol.for("react.lazy"):60116,E=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,S=t?Symbol.for("react.scope"):60119;function x($){if(typeof $=="object"&&$!==null){var w=$.$$typeof;switch(w){case r:switch($=$.type,$){case u:case c:case o:case i:case a:case f:return $;default:switch($=$&&$.$$typeof,$){case s:case d:case y:case m:case l:return $;default:return w}}case n:return w}}}function C($){return x($)===c}e.AsyncMode=u,e.ConcurrentMode=c,e.ContextConsumer=s,e.ContextProvider=l,e.Element=r,e.ForwardRef=d,e.Fragment=o,e.Lazy=y,e.Memo=m,e.Portal=n,e.Profiler=i,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function($){return C($)||x($)===u},e.isConcurrentMode=C,e.isContextConsumer=function($){return x($)===s},e.isContextProvider=function($){return x($)===l},e.isElement=function($){return typeof $=="object"&&$!==null&&$.$$typeof===r},e.isForwardRef=function($){return x($)===d},e.isFragment=function($){return x($)===o},e.isLazy=function($){return x($)===y},e.isMemo=function($){return x($)===m},e.isPortal=function($){return x($)===n},e.isProfiler=function($){return x($)===i},e.isStrictMode=function($){return x($)===a},e.isSuspense=function($){return x($)===f},e.isValidElementType=function($){return typeof $=="string"||typeof $=="function"||$===o||$===c||$===i||$===a||$===f||$===p||typeof $=="object"&&$!==null&&($.$$typeof===y||$.$$typeof===m||$.$$typeof===l||$.$$typeof===s||$.$$typeof===d||$.$$typeof===b||$.$$typeof===v||$.$$typeof===S||$.$$typeof===E)},e.typeOf=x}}),JO=Ve({"../../node_modules/react-is/index.js"(e,t){t.exports=XO()}}),yb=Ve({"../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(e,t){var r=JO(),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},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};l[r.ForwardRef]=a,l[r.Memo]=i;function s(E){return r.isMemo(E)?i:l[E.$$typeof]||n}var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;function y(E,b,v){if(typeof b!="string"){if(m){var S=p(b);S&&S!==m&&y(E,S,v)}var x=c(b);d&&(x=x.concat(d(b)));for(var C=s(E),$=s(b),w=0;w<x.length;++w){var T=x[w];if(!o[T]&&!(v&&v[T])&&!($&&$[T])&&!(C&&C[T])){var O=f(b,T);try{u(E,T,O)}catch{}}}}return E}t.exports=y}});function ZO(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 QO(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 eR=(function(){function e(r){var n=this;this._insertTag=function(o){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,a),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(QO(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var o=ZO(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})(),Ke="-ms-",li="-moz-",de="-webkit-",bb="comm",Sd="rule",xd="decl",tR="@import",Eb="@keyframes",rR="@layer",nR=Math.abs,Mi=String.fromCharCode,oR=Object.assign;function aR(e,t){return Ne(e,0)^45?(((t<<2^Ne(e,0))<<2^Ne(e,1))<<2^Ne(e,2))<<2^Ne(e,3):0}function vb(e){return e.trim()}function iR(e,t){return(e=t.exec(e))?e[0]:e}function fe(e,t,r){return e.replace(t,r)}function tc(e,t){return e.indexOf(t)}function Ne(e,t){return e.charCodeAt(t)|0}function Fo(e,t,r){return e.slice(t,r)}function Ht(e){return e.length}function $d(e){return e.length}function ba(e,t){return t.push(e),e}function lR(e,t){return e.map(t).join("")}var Bi=1,Dn=1,Sb=0,at=0,Te=0,Wn="";function ji(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:Bi,column:Dn,length:i,return:""}}function so(e,t){return oR(ji("",null,null,"",null,null,0),e,{length:-e.length},t)}function sR(){return Te}function uR(){return Te=at>0?Ne(Wn,--at):0,Dn--,Te===10&&(Dn=1,Bi--),Te}function ft(){return Te=at<Sb?Ne(Wn,at++):0,Dn++,Te===10&&(Dn=1,Bi++),Te}function Yt(){return Ne(Wn,at)}function za(){return at}function Vo(e,t){return Fo(Wn,e,t)}function Io(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 xb(e){return Bi=Dn=1,Sb=Ht(Wn=e),at=0,[]}function $b(e){return Wn="",e}function Ka(e){return vb(Vo(at-1,rc(e===91?e+2:e===40?e+1:e)))}function cR(e){for(;(Te=Yt())&&Te<33;)ft();return Io(e)>2||Io(Te)>3?"":" "}function dR(e,t){for(;--t&&ft()&&!(Te<48||Te>102||Te>57&&Te<65||Te>70&&Te<97););return Vo(e,za()+(t<6&&Yt()==32&&ft()==32))}function rc(e){for(;ft();)switch(Te){case e:return at;case 34:case 39:e!==34&&e!==39&&rc(Te);break;case 40:e===41&&rc(e);break;case 92:ft();break}return at}function fR(e,t){for(;ft()&&e+Te!==57&&!(e+Te===84&&Yt()===47););return"/*"+Vo(t,at-1)+"*"+Mi(e===47?e:ft())}function pR(e){for(;!Io(Yt());)ft();return Vo(e,at)}function hR(e){return $b(Ga("",null,null,null,[""],e=xb(e),0,[0],e))}function Ga(e,t,r,n,o,a,i,l,s){for(var u=0,c=0,d=i,f=0,p=0,m=0,y=1,E=1,b=1,v=0,S="",x=o,C=a,$=n,w=S;E;)switch(m=v,v=ft()){case 40:if(m!=108&&Ne(w,d-1)==58){tc(w+=fe(Ka(v),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:w+=Ka(v);break;case 9:case 10:case 13:case 32:w+=cR(m);break;case 92:w+=dR(za()-1,7);continue;case 47:switch(Yt()){case 42:case 47:ba(gR(fR(ft(),za()),t,r),s);break;default:w+="/"}break;case 123*y:l[u++]=Ht(w)*b;case 125*y:case 59:case 0:switch(v){case 0:case 125:E=0;case 59+c:b==-1&&(w=fe(w,/\f/g,"")),p>0&&Ht(w)-d&&ba(p>32?$h(w+";",n,r,d-1):$h(fe(w," ","")+";",n,r,d-2),s);break;case 59:w+=";";default:if(ba($=xh(w,t,r,u,c,o,l,S,x=[],C=[],d),a),v===123)if(c===0)Ga(w,t,$,$,x,a,d,l,C);else switch(f===99&&Ne(w,3)===110?100:f){case 100:case 108:case 109:case 115:Ga(e,$,$,n&&ba(xh(e,$,$,0,0,o,l,S,o,x=[],d),C),o,C,d,l,n?x:C);break;default:Ga(w,$,$,$,[""],C,0,l,C)}}u=c=p=0,y=b=1,S=w="",d=i;break;case 58:d=1+Ht(w),p=m;default:if(y<1){if(v==123)--y;else if(v==125&&y++==0&&uR()==125)continue}switch(w+=Mi(v),v*y){case 38:b=c>0?1:(w+="\f",-1);break;case 44:l[u++]=(Ht(w)-1)*b,b=1;break;case 64:Yt()===45&&(w+=Ka(ft())),f=Yt(),c=d=Ht(S=w+=pR(za())),v++;break;case 45:m===45&&Ht(w)==2&&(y=0)}}return a}function xh(e,t,r,n,o,a,i,l,s,u,c){for(var d=o-1,f=o===0?a:[""],p=$d(f),m=0,y=0,E=0;m<n;++m)for(var b=0,v=Fo(e,d+1,d=nR(y=i[m])),S=e;b<p;++b)(S=vb(y>0?f[b]+" "+v:fe(v,/&\f/g,f[b])))&&(s[E++]=S);return ji(e,t,r,o===0?Sd:l,s,u,c)}function gR(e,t,r){return ji(e,t,r,bb,Mi(sR()),Fo(e,2,-2),0)}function $h(e,t,r,n){return ji(e,t,r,xd,Fo(e,0,n),Fo(e,n+1,-1),n)}function xn(e,t){for(var r="",n=$d(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function mR(e,t,r,n){switch(e.type){case rR:if(e.children.length)break;case tR:case xd:return e.return=e.return||e.value;case bb:return"";case Eb:return e.return=e.value+"{"+xn(e.children,n)+"}";case Sd:e.value=e.props.join(",")}return Ht(r=xn(e.children,n))?e.return=e.value+"{"+r+"}":""}function yR(e){var t=$d(e);return function(r,n,o,a){for(var i="",l=0;l<t;l++)i+=e[l](r,n,o,a)||"";return i}}function bR(e){return function(t){t.root||(t=t.return)&&e(t)}}var wh=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 wb(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var ER=function(e,t,r){for(var n=0,o=0;n=o,o=Yt(),n===38&&o===12&&(t[r]=1),!Io(o);)ft();return Vo(e,at)},vR=function(e,t){var r=-1,n=44;do switch(Io(n)){case 0:n===38&&Yt()===12&&(t[r]=1),e[r]+=ER(at-1,t,r);break;case 2:e[r]+=Ka(n);break;case 4:if(n===44){e[++r]=Yt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Mi(n)}while(n=ft());return e},SR=function(e,t){return $b(vR(xb(e),t))},Ch=new WeakMap,xR=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&&!Ch.get(r))&&!n){Ch.set(e,!0);for(var o=[],a=SR(t,o),i=r.props,l=0,s=0;l<a.length;l++)for(var u=0;u<i.length;u++,s++)e.props[s]=o[l]?a[l].replace(/&\f/g,i[u]):i[u]+" "+a[l]}}},$R=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};function Cb(e,t){switch(aR(e,t)){case 5103:return de+"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 de+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return de+e+li+e+Ke+e+e;case 6828:case 4268:return de+e+Ke+e+e;case 6165:return de+e+Ke+"flex-"+e+e;case 5187:return de+e+fe(e,/(\w+).+(:[^]+)/,de+"box-$1$2"+Ke+"flex-$1$2")+e;case 5443:return de+e+Ke+"flex-item-"+fe(e,/flex-|-self/,"")+e;case 4675:return de+e+Ke+"flex-line-pack"+fe(e,/align-content|flex-|-self/,"")+e;case 5548:return de+e+Ke+fe(e,"shrink","negative")+e;case 5292:return de+e+Ke+fe(e,"basis","preferred-size")+e;case 6060:return de+"box-"+fe(e,"-grow","")+de+e+Ke+fe(e,"grow","positive")+e;case 4554:return de+fe(e,/([^-])(transform)/g,"$1"+de+"$2")+e;case 6187:return fe(fe(fe(e,/(zoom-|grab)/,de+"$1"),/(image-set)/,de+"$1"),e,"")+e;case 5495:case 3959:return fe(e,/(image-set\([^]*)/,de+"$1$`$1");case 4968:return fe(fe(e,/(.+:)(flex-)?(.*)/,de+"box-pack:$3"+Ke+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+de+e+e;case 4095:case 3583:case 4068:case 2532:return fe(e,/(.+)-inline(.+)/,de+"$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(Ht(e)-1-t>6)switch(Ne(e,t+1)){case 109:if(Ne(e,t+4)!==45)break;case 102:return fe(e,/(.+:)(.+)-([^]+)/,"$1"+de+"$2-$3$1"+li+(Ne(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~tc(e,"stretch")?Cb(fe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ne(e,t+1)!==115)break;case 6444:switch(Ne(e,Ht(e)-3-(~tc(e,"!important")&&10))){case 107:return fe(e,":",":"+de)+e;case 101:return fe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+de+(Ne(e,14)===45?"inline-":"")+"box$3$1"+de+"$2$3$1"+Ke+"$2box$3")+e}break;case 5936:switch(Ne(e,t+11)){case 114:return de+e+Ke+fe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return de+e+Ke+fe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return de+e+Ke+fe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return de+e+Ke+e+e}return e}var wR=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case xd:e.return=Cb(e.value,e.length);break;case Eb:return xn([so(e,{value:fe(e.value,"@","@"+de)})],n);case Sd:if(e.length)return lR(e.props,function(o){switch(iR(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return xn([so(e,{props:[fe(o,/:(read-\w+)/,":"+li+"$1")]})],n);case"::placeholder":return xn([so(e,{props:[fe(o,/:(plac\w+)/,":"+de+"input-$1")]}),so(e,{props:[fe(o,/:(plac\w+)/,":"+li+"$1")]}),so(e,{props:[fe(o,/:(plac\w+)/,Ke+"input-$1")]})],n)}return""})}},CR=[wR],_b=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(m){var y=m.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||CR,o={},a,i=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var y=m.getAttribute("data-emotion").split(" "),E=1;E<y.length;E++)o[y[E]]=!0;i.push(m)});var l,s=[xR,$R];{var u,c=[mR,bR(function(m){u.insert(m)})],d=yR(s.concat(n,c)),f=function(m){return xn(hR(m),d)};l=function(m,y,E,b){u=E,f(m?m+"{"+y.styles+"}":y.styles),b&&(p.inserted[y.name]=!0)}}var p={key:t,sheet:new eR({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:l};return p.sheet.hydrate(i),p};lt(yb());var _R=!0;function wd(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var Hi=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||_R===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},Ui=function(e,t,r){Hi(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 TR(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 AR={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},OR=/[A-Z]|^ms/g,RR=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Tb=function(e){return e.charCodeAt(1)===45},_h=function(e){return e!=null&&typeof e!="boolean"},Vl=wb(function(e){return Tb(e)?e:e.replace(OR,"-$&").toLowerCase()}),Th=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(RR,function(r,n,o){return Ut={name:n,styles:o,next:Ut},n})}return AR[e]!==1&&!Tb(e)&&typeof t=="number"&&t!==0?t+"px":t};function Lo(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 Ut={name:o.name,styles:o.styles,next:Ut},o.name;var a=r;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)Ut={name:i.name,styles:i.styles,next:Ut},i=i.next;var l=a.styles+";";return l}return DR(e,t,r)}case"function":{if(e!==void 0){var s=Ut,u=r(e);return Ut=s,Lo(e,t,u)}break}}var c=r;if(t==null)return c;var d=t[c];return d!==void 0?d:c}function DR(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Lo(e,t,r[o])+";";else for(var a in r){var i=r[a];if(typeof i!="object"){var l=i;t!=null&&t[l]!==void 0?n+=a+"{"+t[l]+"}":_h(l)&&(n+=Vl(a)+":"+Th(a,l)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var s=0;s<i.length;s++)_h(i[s])&&(n+=Vl(a)+":"+Th(a,i[s])+";");else{var u=Lo(e,t,i);switch(a){case"animation":case"animationName":{n+=Vl(a)+":"+u+";";break}default:n+=a+"{"+u+"}"}}}return n}var Ah=/label:\s*([^\s;{]+)\s*(;|$)/g,Ut;function qo(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="";Ut=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,o+=Lo(r,t,a);else{var i=a;o+=i[0]}for(var l=1;l<e.length;l++)if(o+=Lo(r,t,e[l]),n){var s=a;o+=s[l]}Ah.lastIndex=0;for(var u="",c;(c=Ah.exec(o))!==null;)u+="-"+c[1];var d=TR(o)+u;return{name:d,styles:o,next:Ut}}var PR=function(e){return e()},Ab=h.useInsertionEffect?h.useInsertionEffect:!1,Cd=Ab||PR,Oh=Ab||h.useLayoutEffect,Ob=h.createContext(typeof HTMLElement<"u"?_b({key:"css"}):null);Ob.Provider;var zi=function(e){return h.forwardRef(function(t,r){var n=h.useContext(Ob);return e(t,n,r)})},Zr=h.createContext({}),Ki=function(){return h.useContext(Zr)},FR=function(e,t){if(typeof t=="function"){var r=t(e);return r}return je({},e,t)},IR=wh(function(e){return wh(function(t){return FR(e,t)})}),_d=function(e){var t=h.useContext(Zr);return e.theme!==t&&(t=IR(t)(e.theme)),h.createElement(Zr.Provider,{value:t},e.children)},Td={}.hasOwnProperty,nc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",LR=function(e,t){var r={};for(var n in t)Td.call(t,n)&&(r[n]=t[n]);return r[nc]=e,r},kR=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Hi(t,r,n),Cd(function(){return Ui(t,r,n)}),null},NR=zi(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[nc],a=[n],i="";typeof e.className=="string"?i=wd(t.registered,a,e.className):e.className!=null&&(i=e.className+" ");var l=qo(a,void 0,h.useContext(Zr));i+=t.key+"-"+l.name;var s={};for(var u in e)Td.call(e,u)&&u!=="css"&&u!==nc&&(s[u]=e[u]);return s.className=i,r&&(s.ref=r),h.createElement(h.Fragment,null,h.createElement(kR,{cache:t,serialized:l,isStringTag:typeof o=="string"}),h.createElement(o,s))}),MR=NR;lt(yb());var oc=function(e,t){var r=arguments;if(t==null||!Td.call(t,"css"))return h.createElement.apply(void 0,r);var n=r.length,o=new Array(n);o[0]=MR,o[1]=LR(e,t);for(var a=2;a<n;a++)o[a]=r[a];return h.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(oc||(oc={}));zi(function(e,t){var r=e.styles,n=qo([r],void 0,h.useContext(Zr)),o=h.useRef();return Oh(function(){var a=t.key+"-global",i=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,s=document.querySelector('style[data-emotion="'+a+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),s!==null&&(l=!0,s.setAttribute("data-emotion",a),i.hydrate([s])),o.current=[i,l],function(){i.flush()}},[t]),Oh(function(){var a=o.current,i=a[0],l=a[1];if(l){a[1]=!1;return}if(n.next!==void 0&&Ui(t,n.next,!0),i.tags.length){var s=i.tags[i.tags.length-1].nextElementSibling;i.before=s,i.flush()}t.insert("",n,i,!1)},[t,n.name]),null});function Gi(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return qo(t)}function ke(){var e=Gi.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 BR=function e(t){for(var r=t.length,n=0,o="";n<r;n++){var a=t[n];if(a!=null){var i=void 0;switch(typeof a){case"boolean":break;case"object":{if(Array.isArray(a))i=e(a);else{i="";for(var l in a)a[l]&&l&&(i&&(i+=" "),i+=l)}break}default:i=a}i&&(o&&(o+=" "),o+=i)}}return o};function jR(e,t,r){var n=[],o=wd(e,n,r);return n.length<2?r:o+t(n)}var HR=function(e){var t=e.cache,r=e.serializedArr;return Cd(function(){for(var n=0;n<r.length;n++)Ui(t,r[n],!1)}),null};zi(function(e,t){var r=[],n=function(){for(var l=arguments.length,s=new Array(l),u=0;u<l;u++)s[u]=arguments[u];var c=qo(s,t.registered);return r.push(c),Hi(t,c,!1),t.key+"-"+c.name},o=function(){for(var l=arguments.length,s=new Array(l),u=0;u<l;u++)s[u]=arguments[u];return jR(t.registered,n,BR(s))},a={css:n,cx:o,theme:h.useContext(Zr)},i=e.children(a);return h.createElement(h.Fragment,null,h.createElement(HR,{cache:t,serializedArr:r}),i)});var UR=/^((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)-.*))$/,Wi=wb(function(e){return UR.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),zR=Wi,KR=function(e){return e!=="theme"},Rh=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?zR:KR},Dh=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(a){return e.__emotion_forwardProp(a)&&o(a)}:o}return typeof n!="function"&&r&&(n=e.__emotion_forwardProp),n},GR=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Hi(t,r,n),Cd(function(){return Ui(t,r,n)}),null},WR=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,a,i;r!==void 0&&(a=r.label,i=r.target);var l=Dh(t,r,n),s=l||Rh(o),u=!s("as");return function(){var c=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&d.push("label:"+a+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{var f=c[0];d.push(f[0]);for(var p=c.length,m=1;m<p;m++)d.push(c[m],f[m])}var y=zi(function(E,b,v){var S=u&&E.as||o,x="",C=[],$=E;if(E.theme==null){$={};for(var w in E)$[w]=E[w];$.theme=h.useContext(Zr)}typeof E.className=="string"?x=wd(b.registered,C,E.className):E.className!=null&&(x=E.className+" ");var T=qo(d.concat(C),b.registered,$);x+=b.key+"-"+T.name,i!==void 0&&(x+=" "+i);var O=u&&l===void 0?Rh(S):s,D={};for(var _ in E)u&&_==="as"||O(_)&&(D[_]=E[_]);return D.className=x,v&&(D.ref=v),h.createElement(h.Fragment,null,h.createElement(GR,{cache:b,serialized:T,isStringTag:typeof S=="string"}),h.createElement(S,D))});return y.displayName=a!==void 0?a:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=o,y.__emotion_styles=d,y.__emotion_forwardProp=l,Object.defineProperty(y,"toString",{value:function(){return"."+i}}),y.withComponent=function(E,b){var v=e(E,je({},r,b,{shouldForwardProp:Dh(y,b,!0)}));return v.apply(void 0,d)},y}},VR=["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"],R=WR.bind(null);VR.forEach(function(e){R[e]=R(e)});var Rb=lt(Kn(),1),Db=(0,Rb.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,Rb.default)(1)(({color:e,background:t,typography:r})=>{let n=Db({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 qR={rubber:"cubic-bezier(0.175, 0.885, 0.335, 1.05)"},YR=ke`
566
+ from {
567
+ transform: rotate(0deg);
568
+ }
569
+ to {
570
+ transform: rotate(360deg);
571
+ }
572
+ `,Pb=ke`
573
+ 0%, 100% { opacity: 1; }
574
+ 50% { opacity: .4; }
575
+ `,XR=ke`
576
+ 0% { transform: translateY(1px); }
577
+ 25% { transform: translateY(0px); }
578
+ 50% { transform: translateY(-3px); }
579
+ 100% { transform: translateY(1px); }
580
+ `,JR=ke`
581
+ 0%, 100% { transform:translate3d(0,0,0); }
582
+ 12.5%, 62.5% { transform:translate3d(-4px,0,0); }
583
+ 37.5%, 87.5% { transform: translate3d(4px,0,0); }
584
+ `,ZR=Gi`
585
+ animation: ${Pb} 1.5s ease-in-out infinite;
586
+ color: transparent;
587
+ cursor: progress;
588
+ `,QR=Gi`
589
+ transition: all 150ms ease-out;
590
+ transform: translate3d(0, 0, 0);
591
+
592
+ &:hover {
593
+ transform: translate3d(0, -2px, 0);
594
+ }
595
+
596
+ &:active {
597
+ transform: translate3d(0, 0, 0);
598
+ }
599
+ `,eD={rotate360:YR,glow:Pb,float:XR,jiggle:JR,inlineGlow:ZR,hoverable:QR},tD={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"},rD={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"},nD=e=>Object.entries(e).reduce((t,[r,n])=>({...t,[r]:GO(n)}),{}),oD=({colors:e,mono:t})=>{let r=nD(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}}},aD={green1:"#008000",red1:"#A31515",red2:"#9a050f",red3:"#800000",red4:"#eb0000",gray1:"#393A34",cyan1:"#008380",cyan2:"#007ca0",blue1:"#0000ff",blue2:"#00009f"},iD={green1:"#95999D",red1:"#92C379",red2:"#9a050f",red3:"#A8FF60",red4:"#96CBFE",gray1:"#EDEDED",cyan1:"#C6C5FE",cyan2:"#FFFFB6",blue1:"#B474DD",blue2:"#00009f"},lD=e=>({primary:e.colorPrimary,secondary:e.colorSecondary,tertiary:q.tertiary,ancillary:q.ancillary,orange:q.orange,gold:q.gold,green:q.green,seafoam:q.seafoam,purple:q.purple,ultraviolet:q.ultraviolet,lightest:q.lightest,lighter:q.lighter,light:q.light,mediumlight:q.mediumlight,medium:q.medium,mediumdark:q.mediumdark,dark:q.dark,darker:q.darker,darkest:q.darkest,border:q.border,positive:q.positive,negative:q.negative,warning:q.warning,critical:q.critical,defaultText:e.textColor||q.darkest,inverseText:e.textInverseColor||q.lightest,positiveText:q.positiveText,negativeText:q.negativeText,warningText:q.warningText}),si=(e=Vr[vd()])=>{let{base:t,colorPrimary:r,colorSecondary:n,appBg:o,appContentBg:a,appHoverBg:i,appPreviewBg:l,appBorderColor:s,appBorderRadius:u,fontBase:c,fontCode:d,textColor:f,textInverseColor:p,barTextColor:m,barHoverColor:y,barSelectedColor:E,barBg:b,buttonBg:v,buttonBorder:S,booleanBg:x,booleanSelectedBg:C,inputBg:$,inputBorder:w,inputTextColor:T,inputBorderRadius:O,brandTitle:D,brandUrl:_,brandImage:I,brandTarget:L,gridCellSize:A,...P}=e;return{...P,base:t,...t==="dark"?Qu.dark:Qu.light,color:lD(e),background:{app:o,bar:b,content:a,preview:l,gridCellSize:A||lr.gridCellSize,hoverable:i,positive:lr.positive,negative:lr.negative,warning:lr.warning,critical:lr.critical},typography:{fonts:{base:c,mono:d},weight:Ft.weight,size:Ft.size},animation:eD,easing:qR,input:{background:$,border:w,borderRadius:O,color:T},button:{background:v||$,border:S||w},boolean:{background:x||w,selectedBackground:C||$},layoutMargin:10,appBorderColor:s,appBorderRadius:u,barTextColor:m,barHoverColor:y||n,barSelectedColor:E||n,barBg:b,brand:{title:D,url:_,image:I||(D?null:void 0),target:L},code:oD({colors:t==="dark"?iD:aD,mono:d}),addonActionsTheme:{...t==="dark"?tD:rD,BASE_FONT_FAMILY:d,BASE_FONT_SIZE:Ft.size.s2-1,BASE_LINE_HEIGHT:"18px",BASE_BACKGROUND_COLOR:"transparent",BASE_COLOR:f,ARROW_COLOR:DO(.2,s),ARROW_MARGIN_RIGHT:4,ARROW_FONT_SIZE:8,TREENODE_FONT_FAMILY:d,TREENODE_FONT_SIZE:Ft.size.s2-1,TREENODE_LINE_HEIGHT:"18px",TREENODE_PADDING_LEFT:12}}};const{logger:sD}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var uD=e=>Object.keys(e).length===0,ql=e=>e!=null&&typeof e=="object",cD=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),dD=()=>Object.create(null),Fb=(e,t)=>e===t||!ql(e)||!ql(t)?{}:Object.keys(e).reduce((r,n)=>{if(cD(t,n)){let o=Fb(e[n],t[n]);return ql(o)&&uD(o)||(r[n]=o),r}return r[n]=void 0,r},dD()),fD=Fb,Ib=e=>{if(!e)return si(ec);let t=fD(ec,e);return Object.keys(t).length&&sD.warn(vt`
600
+ Your theme is missing properties, you should update your theme!
601
+
602
+ theme-data missing:
603
+ `,t),si(e)},ui="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */";const pD=Object.freeze(Object.defineProperty({__proto__:null,ThemeProvider:_d,background:lr,color:q,convert:si,create:mb,createCache:_b,createReset:Db,css:Gi,ensure:Ib,getPreferredColorScheme:vd,ignoreSsrWarning:ui,isPropValid:Wi,get jsx(){return oc},keyframes:ke,lighten:Ed,styled:R,themes:Vr,tokens:Qu,typography:Ft,useTheme:Ki},Symbol.toStringTag,{value:"Module"}));var hD=R.div(({theme:e})=>({position:"absolute",bottom:0,right:0,maxWidth:"100%",display:"flex",background:e.background.content,zIndex:1})),Lb=R.button(({theme:e})=>({margin:0,border:"0 none",padding:"4px 10px",cursor:"pointer",display:"flex",alignItems:"center",color:e.color.defaultText,background:e.background.content,fontSize:12,lineHeight:"16px",fontFamily:e.typography.fonts.base,fontWeight:e.typography.weight.bold,borderTop:`1px solid ${e.appBorderColor}`,borderLeft:`1px solid ${e.appBorderColor}`,marginLeft:-1,borderRadius:"4px 0 0 0","&:not(:last-child)":{borderRight:`1px solid ${e.appBorderColor}`},"& + *":{borderLeft:`1px solid ${e.appBorderColor}`,borderRadius:0},"&:focus":{boxShadow:`${e.color.secondary} 0 -3px 0 0 inset`,outline:"0 none","@media (forced-colors: active)":{outline:"1px solid highlight"}}}),({disabled:e})=>e&&{cursor:"not-allowed",opacity:.5});Lb.displayName="ActionButton";var kb=({actionItems:e,...t})=>g.createElement(hD,{...t},e.map(({title:r,className:n,onClick:o,disabled:a},i)=>g.createElement(Lb,{key:i,className:n,onClick:o,disabled:!!a},r)));function gD(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Nb(...e){return t=>e.forEach(r=>gD(r,t))}function on(...e){return h.useCallback(Nb(...e),e)}var Mb=h.forwardRef((e,t)=>{let{children:r,...n}=e,o=h.Children.toArray(r),a=o.find(yD);if(a){let i=a.props.children,l=o.map(s=>s===a?h.Children.count(i)>1?h.Children.only(null):h.isValidElement(i)?i.props.children:null:s);return oe.jsx(ac,{...n,ref:t,children:h.isValidElement(i)?h.cloneElement(i,void 0,l):null})}return oe.jsx(ac,{...n,ref:t,children:r})});Mb.displayName="Slot";var ac=h.forwardRef((e,t)=>{let{children:r,...n}=e;if(h.isValidElement(r)){let o=ED(r);return h.cloneElement(r,{...bD(n,r.props),ref:t?Nb(t,o):o})}return h.Children.count(r)>1?h.Children.only(null):null});ac.displayName="SlotClone";var mD=({children:e})=>oe.jsx(oe.Fragment,{children:e});function yD(e){return h.isValidElement(e)&&e.type===mD}function bD(e,t){let r={...t};for(let n in t){let o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{a(...i),o(...i)}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function ED(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var vD=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Yo=vD.reduce((e,t)=>{let r=h.forwardRef((n,o)=>{let{asChild:a,...i}=n,l=a?Mb:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),oe.jsx(l,{...i,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),ic=globalThis?.document?h.useLayoutEffect:()=>{};function SD(e,t){return h.useReducer((r,n)=>t[r][n]??r,e)}var Xo=e=>{let{present:t,children:r}=e,n=xD(t),o=typeof r=="function"?r({present:n.isPresent}):h.Children.only(r),a=on(n.ref,$D(o));return typeof r=="function"||n.isPresent?h.cloneElement(o,{ref:a}):null};Xo.displayName="Presence";function xD(e){let[t,r]=h.useState(),n=h.useRef({}),o=h.useRef(e),a=h.useRef("none"),i=e?"mounted":"unmounted",[l,s]=SD(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{let u=Ea(n.current);a.current=l==="mounted"?u:"none"},[l]),ic(()=>{let u=n.current,c=o.current;if(c!==e){let d=a.current,f=Ea(u);e?s("MOUNT"):f==="none"||u?.display==="none"?s("UNMOUNT"):s(c&&d!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),ic(()=>{if(t){let u=d=>{let f=Ea(n.current).includes(d.animationName);d.target===t&&f&&Di.flushSync(()=>s("ANIMATION_END"))},c=d=>{d.target===t&&(a.current=Ea(n.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:h.useCallback(u=>{u&&(n.current=getComputedStyle(u)),r(u)},[])}}function Ea(e){return e?.animationName||"none"}function $D(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function wD(e,t=[]){let r=[];function n(a,i){let l=h.createContext(i),s=r.length;r=[...r,i];function u(d){let{scope:f,children:p,...m}=d,y=f?.[e][s]||l,E=h.useMemo(()=>m,Object.values(m));return oe.jsx(y.Provider,{value:E,children:p})}function c(d,f){let p=f?.[e][s]||l,m=h.useContext(p);if(m)return m;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${a}\``)}return u.displayName=a+"Provider",[u,c]}let o=()=>{let a=r.map(i=>h.createContext(i));return function(i){let l=i?.[e]||a;return h.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[n,CD(o,...t)]}function CD(...e){let t=e[0];if(e.length===1)return t;let r=()=>{let n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){let a=n.reduce((i,{useScope:l,scopeName:s})=>{let u=l(o)[`__scope${s}`];return{...i,...u}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}function zr(e){let t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...r)=>t.current?.(...r),[])}var _D=h.createContext(void 0);function TD(e){let t=h.useContext(_D);return e||t||"ltr"}function AD(e,[t,r]){return Math.min(r,Math.max(t,e))}function qr(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function OD(e,t){return h.useReducer((r,n)=>t[r][n]??r,e)}var Ad="ScrollArea",[Bb]=wD(Ad),[RD,wt]=Bb(Ad),jb=h.forwardRef((e,t)=>{let{__scopeScrollArea:r,type:n="hover",dir:o,scrollHideDelay:a=600,...i}=e,[l,s]=h.useState(null),[u,c]=h.useState(null),[d,f]=h.useState(null),[p,m]=h.useState(null),[y,E]=h.useState(null),[b,v]=h.useState(0),[S,x]=h.useState(0),[C,$]=h.useState(!1),[w,T]=h.useState(!1),O=on(t,_=>s(_)),D=TD(o);return oe.jsx(RD,{scope:r,type:n,dir:D,scrollHideDelay:a,scrollArea:l,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:m,scrollbarXEnabled:C,onScrollbarXEnabledChange:$,scrollbarY:y,onScrollbarYChange:E,scrollbarYEnabled:w,onScrollbarYEnabledChange:T,onCornerWidthChange:v,onCornerHeightChange:x,children:oe.jsx(Yo.div,{dir:D,...i,ref:O,style:{position:"relative","--radix-scroll-area-corner-width":b+"px","--radix-scroll-area-corner-height":S+"px",...e.style}})})});jb.displayName=Ad;var Hb="ScrollAreaViewport",Ub=h.forwardRef((e,t)=>{let{__scopeScrollArea:r,children:n,asChild:o,nonce:a,...i}=e,l=wt(Hb,r),s=h.useRef(null),u=on(t,s,l.onViewportChange);return oe.jsxs(oe.Fragment,{children:[oe.jsx("style",{dangerouslySetInnerHTML:{__html:`
604
+ [data-radix-scroll-area-viewport] {
605
+ scrollbar-width: none;
606
+ -ms-overflow-style: none;
607
+ -webkit-overflow-scrolling: touch;
608
+ }
609
+ [data-radix-scroll-area-viewport]::-webkit-scrollbar {
610
+ display: none;
611
+ }
612
+ :where([data-radix-scroll-area-viewport]) {
613
+ display: flex;
614
+ flex-direction: column;
615
+ align-items: stretch;
616
+ }
617
+ :where([data-radix-scroll-area-content]) {
618
+ flex-grow: 1;
619
+ }
620
+ `},nonce:a}),oe.jsx(Yo.div,{"data-radix-scroll-area-viewport":"",...i,asChild:o,ref:u,style:{overflowX:l.scrollbarXEnabled?"scroll":"hidden",overflowY:l.scrollbarYEnabled?"scroll":"hidden",...e.style},children:jD({asChild:o,children:n},c=>oe.jsx("div",{"data-radix-scroll-area-content":"",ref:l.onContentChange,style:{minWidth:l.scrollbarXEnabled?"fit-content":void 0},children:c}))})]})});Ub.displayName=Hb;var Xt="ScrollAreaScrollbar",zb=h.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=wt(Xt,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:i}=o,l=e.orientation==="horizontal";return h.useEffect(()=>(l?a(!0):i(!0),()=>{l?a(!1):i(!1)}),[l,a,i]),o.type==="hover"?oe.jsx(DD,{...n,ref:t,forceMount:r}):o.type==="scroll"?oe.jsx(PD,{...n,ref:t,forceMount:r}):o.type==="auto"?oe.jsx(Kb,{...n,ref:t,forceMount:r}):o.type==="always"?oe.jsx(Od,{...n,ref:t}):null});zb.displayName=Xt;var DD=h.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=wt(Xt,e.__scopeScrollArea),[a,i]=h.useState(!1);return h.useEffect(()=>{let l=o.scrollArea,s=0;if(l){let u=()=>{window.clearTimeout(s),i(!0)},c=()=>{s=window.setTimeout(()=>i(!1),o.scrollHideDelay)};return l.addEventListener("pointerenter",u),l.addEventListener("pointerleave",c),()=>{window.clearTimeout(s),l.removeEventListener("pointerenter",u),l.removeEventListener("pointerleave",c)}}},[o.scrollArea,o.scrollHideDelay]),oe.jsx(Xo,{present:r||a,children:oe.jsx(Kb,{"data-state":a?"visible":"hidden",...n,ref:t})})}),PD=h.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=wt(Xt,e.__scopeScrollArea),a=e.orientation==="horizontal",i=qi(()=>s("SCROLL_END"),100),[l,s]=OD("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return h.useEffect(()=>{if(l==="idle"){let u=window.setTimeout(()=>s("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(u)}},[l,o.scrollHideDelay,s]),h.useEffect(()=>{let u=o.viewport,c=a?"scrollLeft":"scrollTop";if(u){let d=u[c],f=()=>{let p=u[c];d!==p&&(s("SCROLL"),i()),d=p};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[o.viewport,a,s,i]),oe.jsx(Xo,{present:r||l!=="hidden",children:oe.jsx(Od,{"data-state":l==="hidden"?"hidden":"visible",...n,ref:t,onPointerEnter:qr(e.onPointerEnter,()=>s("POINTER_ENTER")),onPointerLeave:qr(e.onPointerLeave,()=>s("POINTER_LEAVE"))})})}),Kb=h.forwardRef((e,t)=>{let r=wt(Xt,e.__scopeScrollArea),{forceMount:n,...o}=e,[a,i]=h.useState(!1),l=e.orientation==="horizontal",s=qi(()=>{if(r.viewport){let u=r.viewport.offsetWidth<r.viewport.scrollWidth,c=r.viewport.offsetHeight<r.viewport.scrollHeight;i(l?u:c)}},10);return Pn(r.viewport,s),Pn(r.content,s),oe.jsx(Xo,{present:n||a,children:oe.jsx(Od,{"data-state":a?"visible":"hidden",...o,ref:t})})}),Od=h.forwardRef((e,t)=>{let{orientation:r="vertical",...n}=e,o=wt(Xt,e.__scopeScrollArea),a=h.useRef(null),i=h.useRef(0),[l,s]=h.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=Yb(l.viewport,l.content),c={...n,sizes:l,onSizesChange:s,hasThumb:u>0&&u<1,onThumbChange:f=>a.current=f,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:f=>i.current=f};function d(f,p){return MD(f,i.current,l,p)}return r==="horizontal"?oe.jsx(FD,{...c,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){let f=o.viewport.scrollLeft,p=Ph(f,l,o.dir);a.current.style.transform=`translate3d(${p}px, 0, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollLeft=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollLeft=d(f,o.dir))}}):r==="vertical"?oe.jsx(ID,{...c,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){let f=o.viewport.scrollTop,p=Ph(f,l);a.current.style.transform=`translate3d(0, ${p}px, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollTop=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollTop=d(f))}}):null}),FD=h.forwardRef((e,t)=>{let{sizes:r,onSizesChange:n,...o}=e,a=wt(Xt,e.__scopeScrollArea),[i,l]=h.useState(),s=h.useRef(null),u=on(t,s,a.onScrollbarXChange);return h.useEffect(()=>{s.current&&l(getComputedStyle(s.current))},[s]),oe.jsx(Wb,{"data-orientation":"horizontal",...o,ref:u,sizes:r,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Vi(r)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.x),onDragScroll:c=>e.onDragScroll(c.x),onWheelScroll:(c,d)=>{if(a.viewport){let f=a.viewport.scrollLeft+c.deltaX;e.onWheelScroll(f),Jb(f,d)&&c.preventDefault()}},onResize:()=>{s.current&&a.viewport&&i&&n({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:s.current.clientWidth,paddingStart:di(i.paddingLeft),paddingEnd:di(i.paddingRight)}})}})}),ID=h.forwardRef((e,t)=>{let{sizes:r,onSizesChange:n,...o}=e,a=wt(Xt,e.__scopeScrollArea),[i,l]=h.useState(),s=h.useRef(null),u=on(t,s,a.onScrollbarYChange);return h.useEffect(()=>{s.current&&l(getComputedStyle(s.current))},[s]),oe.jsx(Wb,{"data-orientation":"vertical",...o,ref:u,sizes:r,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Vi(r)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.y),onDragScroll:c=>e.onDragScroll(c.y),onWheelScroll:(c,d)=>{if(a.viewport){let f=a.viewport.scrollTop+c.deltaY;e.onWheelScroll(f),Jb(f,d)&&c.preventDefault()}},onResize:()=>{s.current&&a.viewport&&i&&n({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:s.current.clientHeight,paddingStart:di(i.paddingTop),paddingEnd:di(i.paddingBottom)}})}})}),[LD,Gb]=Bb(Xt),Wb=h.forwardRef((e,t)=>{let{__scopeScrollArea:r,sizes:n,hasThumb:o,onThumbChange:a,onThumbPointerUp:i,onThumbPointerDown:l,onThumbPositionChange:s,onDragScroll:u,onWheelScroll:c,onResize:d,...f}=e,p=wt(Xt,r),[m,y]=h.useState(null),E=on(t,O=>y(O)),b=h.useRef(null),v=h.useRef(""),S=p.viewport,x=n.content-n.viewport,C=zr(c),$=zr(s),w=qi(d,10);function T(O){if(b.current){let D=O.clientX-b.current.left,_=O.clientY-b.current.top;u({x:D,y:_})}}return h.useEffect(()=>{let O=D=>{let _=D.target;m?.contains(_)&&C(D,x)};return document.addEventListener("wheel",O,{passive:!1}),()=>document.removeEventListener("wheel",O,{passive:!1})},[S,m,x,C]),h.useEffect($,[n,$]),Pn(m,w),Pn(p.content,w),oe.jsx(LD,{scope:r,scrollbar:m,hasThumb:o,onThumbChange:zr(a),onThumbPointerUp:zr(i),onThumbPositionChange:$,onThumbPointerDown:zr(l),children:oe.jsx(Yo.div,{...f,ref:E,style:{position:"absolute",...f.style},onPointerDown:qr(e.onPointerDown,O=>{O.button===0&&(O.target.setPointerCapture(O.pointerId),b.current=m.getBoundingClientRect(),v.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",p.viewport&&(p.viewport.style.scrollBehavior="auto"),T(O))}),onPointerMove:qr(e.onPointerMove,T),onPointerUp:qr(e.onPointerUp,O=>{let D=O.target;D.hasPointerCapture(O.pointerId)&&D.releasePointerCapture(O.pointerId),document.body.style.webkitUserSelect=v.current,p.viewport&&(p.viewport.style.scrollBehavior=""),b.current=null})})})}),ci="ScrollAreaThumb",Vb=h.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=Gb(ci,e.__scopeScrollArea);return oe.jsx(Xo,{present:r||o.hasThumb,children:oe.jsx(kD,{ref:t,...n})})}),kD=h.forwardRef((e,t)=>{let{__scopeScrollArea:r,style:n,...o}=e,a=wt(ci,r),i=Gb(ci,r),{onThumbPositionChange:l}=i,s=on(t,d=>i.onThumbChange(d)),u=h.useRef(),c=qi(()=>{u.current&&(u.current(),u.current=void 0)},100);return h.useEffect(()=>{let d=a.viewport;if(d){let f=()=>{if(c(),!u.current){let p=BD(d,l);u.current=p,l()}};return l(),d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[a.viewport,c,l]),oe.jsx(Yo.div,{"data-state":i.hasThumb?"visible":"hidden",...o,ref:s,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:qr(e.onPointerDownCapture,d=>{let f=d.target.getBoundingClientRect(),p=d.clientX-f.left,m=d.clientY-f.top;i.onThumbPointerDown({x:p,y:m})}),onPointerUp:qr(e.onPointerUp,i.onThumbPointerUp)})});Vb.displayName=ci;var Rd="ScrollAreaCorner",qb=h.forwardRef((e,t)=>{let r=wt(Rd,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?oe.jsx(ND,{...e,ref:t}):null});qb.displayName=Rd;var ND=h.forwardRef((e,t)=>{let{__scopeScrollArea:r,...n}=e,o=wt(Rd,r),[a,i]=h.useState(0),[l,s]=h.useState(0),u=!!(a&&l);return Pn(o.scrollbarX,()=>{let c=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(c),s(c)}),Pn(o.scrollbarY,()=>{let c=o.scrollbarY?.offsetWidth||0;o.onCornerWidthChange(c),i(c)}),u?oe.jsx(Yo.div,{...n,ref:t,style:{width:a,height:l,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function di(e){return e?parseInt(e,10):0}function Yb(e,t){let r=e/t;return isNaN(r)?0:r}function Vi(e){let t=Yb(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function MD(e,t,r,n="ltr"){let o=Vi(r),a=o/2,i=t||a,l=o-i,s=r.scrollbar.paddingStart+i,u=r.scrollbar.size-r.scrollbar.paddingEnd-l,c=r.content-r.viewport,d=n==="ltr"?[0,c]:[c*-1,0];return Xb([s,u],d)(e)}function Ph(e,t,r="ltr"){let n=Vi(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-o,i=t.content-t.viewport,l=a-n,s=r==="ltr"?[0,i]:[i*-1,0],u=AD(e,s);return Xb([0,i],[0,l])(u)}function Xb(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function Jb(e,t){return e>0&&e<t}var BD=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return(function o(){let a={left:e.scrollLeft,top:e.scrollTop},i=r.left!==a.left,l=r.top!==a.top;(i||l)&&t(),r=a,n=window.requestAnimationFrame(o)})(),()=>window.cancelAnimationFrame(n)};function qi(e,t){let r=zr(e),n=h.useRef(0);return h.useEffect(()=>()=>window.clearTimeout(n.current),[]),h.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function Pn(e,t){let r=zr(t);ic(()=>{let n=0;if(e){let o=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return o.observe(e),()=>{window.cancelAnimationFrame(n),o.unobserve(e)}}},[e,r])}function jD(e,t){let{asChild:r,children:n}=e;if(!r)return typeof t=="function"?t(n):t;let o=h.Children.only(n);return h.cloneElement(o,{children:typeof t=="function"?t(o.props.children):t})}var HD=jb,UD=Ub,zD=zb,KD=Vb,GD=qb,WD=R(HD)(({scrollbarsize:e,offset:t})=>({width:"100%",height:"100%",overflow:"hidden","--scrollbar-size":`${e+t}px`,"--radix-scroll-area-thumb-width":`${e}px`})),VD=R(UD)({width:"100%",height:"100%"}),Fh=R(zD)(({offset:e,horizontal:t,vertical:r})=>({display:"flex",userSelect:"none",touchAction:"none",background:"transparent",transition:"all 0.2s ease-out",borderRadius:"var(--scrollbar-size)",zIndex:1,'&[data-orientation="vertical"]':{width:"var(--scrollbar-size)",paddingRight:e,marginTop:e,marginBottom:t==="true"&&r==="true"?0:e},'&[data-orientation="horizontal"]':{flexDirection:"column",height:"var(--scrollbar-size)",paddingBottom:e,marginLeft:e,marginRight:t==="true"&&r==="true"?0:e}})),Ih=R(KD)(({theme:e})=>({flex:1,background:e.textMutedColor,opacity:.5,borderRadius:"var(--scrollbar-size)",position:"relative",transition:"opacity 0.2s ease-out",zIndex:1,"&:hover":{opacity:.8},"::before":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",width:"100%",height:"100%"}})),Dd=h.forwardRef(({children:e,horizontal:t=!1,vertical:r=!1,offset:n=2,scrollbarSize:o=6,scrollPadding:a=0,className:i},l)=>g.createElement(WD,{scrollbarsize:o,offset:n,className:i},g.createElement(VD,{ref:l,style:{scrollPadding:a}},e),t&&g.createElement(Fh,{orientation:"horizontal",offset:n,horizontal:t.toString(),vertical:r.toString()},g.createElement(Ih,null)),r&&g.createElement(Fh,{orientation:"vertical",offset:n,horizontal:t.toString(),vertical:r.toString()},g.createElement(Ih,null)),t&&r&&g.createElement(GD,null)));Dd.displayName="ScrollArea";const{global:qD}=__STORYBOOK_MODULE_GLOBAL__;var{document:uo,window:lc}=qD;async function YD(e){try{await lc.top?.navigator.clipboard.writeText(e)}catch{await lc.navigator.clipboard.writeText(e)}}async function XD(e){let t=uo.createElement("TEXTAREA"),r=uo.activeElement;t.value=e,uo.body.appendChild(t),t.select(),uo.execCommand("copy"),uo.body.removeChild(t),r.focus()}function JD(){return lc.navigator?.clipboard?YD:XD}function ZD(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var QD=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M6 3.5a.5.5 0 01.5.5v1.5H8a.5.5 0 010 1H6.5V8a.5.5 0 01-1 0V6.5H4a.5.5 0 010-1h1.5V4a.5.5 0 01.5-.5z",fill:e}),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.544 10.206a5.5 5.5 0 11.662-.662.5.5 0 01.148.102l3 3a.5.5 0 01-.708.708l-3-3a.5.5 0 01-.102-.148zM10.5 6a4.5 4.5 0 11-9 0 4.5 4.5 0 019 0z",fill:e}))),e5=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M4 5.5a.5.5 0 000 1h4a.5.5 0 000-1H4z",fill:e}),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 11.5c1.35 0 2.587-.487 3.544-1.294a.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 106 11.5zm0-1a4.5 4.5 0 100-9 4.5 4.5 0 000 9z",fill:e}))),t5=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M1.5 2.837V1.5a.5.5 0 00-1 0V4a.5.5 0 00.5.5h2.5a.5.5 0 000-1H2.258a4.5 4.5 0 11-.496 4.016.5.5 0 10-.942.337 5.502 5.502 0 008.724 2.353.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 101.5 2.837z",fill:e}))),r5=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M10.139 8.725l1.36-1.323a.568.568 0 00.151-.54.534.534 0 00-.377-.396l-2.705-.708 2.22-4.976a.568.568 0 00-.15-.666.497.497 0 00-.648.008L5.464 4.05l.708.71 2.848-2.47-1.64 3.677.697.697 2.164.567-.81.787.708.708zM2.523 6.6a.566.566 0 00-.177.544.534.534 0 00.382.41l2.782.721-1.494 5.013a.563.563 0 00.217.627.496.496 0 00.629-.06l3.843-3.736-.708-.707-2.51 2.44 1.137-3.814-.685-.685-2.125-.55.844-.731-.71-.71L2.524 6.6zM1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11z",fill:e}))),sc=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M4 5.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5zM4.5 7.5a.5.5 0 000 1h5a.5.5 0 000-1h-5zM4 10.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5z",fill:e}),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 0a.5.5 0 00-.5.5v13a.5.5 0 00.5.5h11a.5.5 0 00.5-.5V3.207a.5.5 0 00-.146-.353L10.146.146A.5.5 0 009.793 0H1.5zM2 1h7.5v2a.5.5 0 00.5.5h2V13H2V1z",fill:e}))),IV=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M8.982 1.632a.5.5 0 00-.964-.263l-3 11a.5.5 0 10.964.263l3-11zM3.32 3.616a.5.5 0 01.064.704L1.151 7l2.233 2.68a.5.5 0 11-.768.64l-2.5-3a.5.5 0 010-.64l2.5-3a.5.5 0 01.704-.064zM10.68 3.616a.5.5 0 00-.064.704L12.849 7l-2.233 2.68a.5.5 0 00.768.64l2.5-3a.5.5 0 000-.64l-2.5-3a.5.5 0 00-.704-.064z",fill:e}))),Zb=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M1.854 1.146a.5.5 0 10-.708.708L6.293 7l-5.147 5.146a.5.5 0 00.708.708L7 7.707l5.146 5.147a.5.5 0 00.708-.708L7.707 7l5.147-5.146a.5.5 0 00-.708-.708L7 6.293 1.854 1.146z",fill:e}))),n5=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M7 3a.5.5 0 01.5.5v3h3a.5.5 0 010 1h-3v3a.5.5 0 01-1 0v-3h-3a.5.5 0 010-1h3v-3A.5.5 0 017 3z",fill:e}),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:e}))),o5=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M3.5 6.5a.5.5 0 000 1h7a.5.5 0 000-1h-7z",fill:e}),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:e}))),a5=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M9.854 4.146a.5.5 0 010 .708L7.707 7l2.147 2.146a.5.5 0 01-.708.708L7 7.707 4.854 9.854a.5.5 0 01-.708-.708L6.293 7 4.146 4.854a.5.5 0 11.708-.708L7 6.293l2.146-2.147a.5.5 0 01.708 0z",fill:e}),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:e}))),i5=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm2.854-9.854a.5.5 0 010 .708L7.707 7l2.147 2.146a.5.5 0 01-.708.708L7 7.707 4.854 9.854a.5.5 0 01-.708-.708L6.293 7 4.146 4.854a.5.5 0 11.708-.708L7 6.293l2.146-2.147a.5.5 0 01.708 0z",fill:e}))),l5=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M11.841 2.159a2.25 2.25 0 00-3.182 0l-2.5 2.5a2.25 2.25 0 000 3.182.5.5 0 01-.707.707 3.25 3.25 0 010-4.596l2.5-2.5a3.25 3.25 0 014.596 4.596l-2.063 2.063a4.27 4.27 0 00-.094-1.32l1.45-1.45a2.25 2.25 0 000-3.182z",fill:e}),h.createElement("path",{d:"M3.61 7.21c-.1-.434-.132-.88-.095-1.321L1.452 7.952a3.25 3.25 0 104.596 4.596l2.5-2.5a3.25 3.25 0 000-4.596.5.5 0 00-.707.707 2.25 2.25 0 010 3.182l-2.5 2.5A2.25 2.25 0 112.159 8.66l1.45-1.45z",fill:e}))),s5=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"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",fill:e}),h.createElement("path",{d:"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",fill:e}))),u5=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M1.146 4.604l5.5 5.5a.5.5 0 00.708 0l5.5-5.5a.5.5 0 00-.708-.708L7 9.043 1.854 3.896a.5.5 0 10-.708.708z",fill:e}))),Qb=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M11.104 7.354l-5.5 5.5a.5.5 0 01-.708-.708L10.043 7 4.896 1.854a.5.5 0 11.708-.708l5.5 5.5a.5.5 0 010 .708z",fill:e}))),c5=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M3.854 9.104a.5.5 0 11-.708-.708l3.5-3.5a.5.5 0 01.708 0l3.5 3.5a.5.5 0 01-.708.708L7 5.957 3.854 9.104z",fill:e}))),e1=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M3.854 4.896a.5.5 0 10-.708.708l3.5 3.5a.5.5 0 00.708 0l3.5-3.5a.5.5 0 00-.708-.708L7 8.043 3.854 4.896z",fill:e}))),d5=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.104 10.146a.5.5 0 01-.708.708l-3.5-3.5a.5.5 0 010-.708l3.5-3.5a.5.5 0 11.708.708L5.957 7l3.147 3.146z",fill:e}))),f5=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.896 10.146a.5.5 0 00.708.708l3.5-3.5a.5.5 0 000-.708l-3.5-3.5a.5.5 0 10-.708.708L8.043 7l-3.147 3.146z",fill:e}))),p5=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M1.146 3.854a.5.5 0 010-.708l2-2a.5.5 0 11.708.708L2.707 3h6.295A4 4 0 019 11H3a.5.5 0 010-1h6a3 3 0 100-6H2.707l1.147 1.146a.5.5 0 11-.708.708l-2-2z",fill:e}))),h5=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M7.092.5H7a6.5 6.5 0 106.41 7.583.5.5 0 10-.986-.166A5.495 5.495 0 017 12.5a5.5 5.5 0 010-11h.006a5.5 5.5 0 014.894 3H10a.5.5 0 000 1h3a.5.5 0 00.5-.5V2a.5.5 0 00-1 0v1.535A6.495 6.495 0 007.092.5z",fill:e}))),Lh=new Map,g5="UNIVERSAL_STORE:",yt={PENDING:"PENDING",RESOLVED:"RESOLVED",REJECTED:"REJECTED"},Hr=class Z{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 a=typeof n=="function",i=a?"*":n,l=a?n:o;if(this.debug("subscribe",{eventType:i,listener:l}),!l)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(i)||this.listeners.set(i,new Set),this.listeners.get(i).add(l),()=>{this.debug("unsubscribe",{eventType:i,listener:l}),this.listeners.has(i)&&(this.listeners.get(i).delete(l),this.listeners.get(i)?.size===0&&this.listeners.delete(i))}},this.send=n=>{if(this.debug("send",{event:n}),this.status!==Z.Status.READY)throw new TypeError(vt`Cannot send event before store is ready. You can get the current status with store.status,
621
+ or await store.readyPromise to wait for the store to be ready before sending events.
622
+ ${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,!Z.isInternalConstructing)throw new TypeError("UniversalStore is not constructable - use UniversalStore.create() instead");if(Z.isInternalConstructing=!1,this.id=t.id,this.actorId=Date.now().toString(36)+Math.random().toString(36).substring(2),this.actorType=t.leader?Z.ActorType.LEADER:Z.ActorType.FOLLOWER,this.state=t.initialState,this.channelEventName=`${g5}${this.id}`,this.debug("constructor",{options:t,environmentOverrides:r,channelEventName:this.channelEventName}),this.actor.type===Z.ActorType.LEADER)this.syncing={state:yt.RESOLVED,promise:Promise.resolve()};else{let n,o,a=new Promise((i,l)=>{n=()=>{this.syncing.state===yt.PENDING&&(this.syncing.state=yt.RESOLVED,i())},o=s=>{this.syncing.state===yt.PENDING&&(this.syncing.state=yt.REJECTED,l(s))}});this.syncing={state:yt.PENDING,promise:a,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??Z.preparation.channel,this.environment=r?.environment??Z.preparation.environment,this.channel&&this.environment?(Z.preparation.resolve({channel:this.channel,environment:this.environment}),this.prepareThis({channel:this.channel,environment:this.environment})):Z.preparation.promise.then(this.prepareThis)}static setupPreparationPromise(){let t,r,n=new Promise((o,a)=>{t=i=>{o(i)},r=(...i)=>{a(i)}});Z.preparation={resolve:t,reject:r,promise:n}}get actor(){return Object.freeze({id:this.actorId,type:this.actorType,environment:this.environment??Z.Environment.UNKNOWN})}get status(){if(!this.channel||!this.environment)return Z.Status.UNPREPARED;switch(this.syncing?.state){case yt.PENDING:case void 0:return Z.Status.SYNCING;case yt.REJECTED:return Z.Status.ERROR;case yt.RESOLVED:default:return Z.Status.READY}}untilReady(){return Promise.all([Z.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(vt`[UniversalStore]
623
+ create`,{options:t});let r=Lh.get(t.id);if(r)return console.warn(vt`UniversalStore with id "${t.id}" already exists in this environment, re-using existing.
624
+ You should reuse the existing instance instead of trying to create a new one.`),r;Z.isInternalConstructing=!0;let n=new Z(t);return Lh.set(t.id,n),n}static __prepare(t,r){Z.preparation.channel=t,Z.preparation.environment=r,Z.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!==Z.Status.READY)throw new TypeError(vt`Cannot set state before store is ready. You can get the current status with store.status,
625
+ or await store.readyPromise to wait for the store to be ready before sending events.
626
+ ${JSON.stringify({newState:n,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.state=n;let o={type:Z.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(Z.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===Z.ActorType.LEADER?this.emitToChannel({type:Z.InternalEventType.LEADER_CREATED},{actor:this.actor}):(this.emitToChannel({type:Z.InternalEventType.FOLLOWER_CREATED},{actor:this.actor}),this.emitToChannel({type:Z.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(a=>a(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===yt.PENDING&&r.type!==Z.InternalEventType.EXISTING_STATE_RESPONSE){this.debug("handleChannelEvents: Ignoring event while syncing",{channelEvent:t});return}if(this.debug("handleChannelEvents",{channelEvent:t}),this.actor.type===Z.ActorType.LEADER){let o=!0;switch(r.type){case Z.InternalEventType.EXISTING_STATE_REQUEST:o=!1;let a={type:Z.InternalEventType.EXISTING_STATE_RESPONSE,payload:this.state};this.debug("handleChannelEvents: responding to existing state request",{responseEvent:a}),this.emitToChannel(a,{actor:this.actor}),this.emitToListeners(a,{actor:this.actor});break;case Z.InternalEventType.LEADER_CREATED:o=!1,this.syncing.state=yt.REJECTED,this.debug("handleChannelEvents: erroring due to second leader being created",{event:r}),console.error(vt`Detected multiple UniversalStore leaders created with the same id "${this.id}".
627
+ Only one leader can exists at a time, your stores are now in an invalid state.
628
+ Leaders detected:
629
+ this: ${JSON.stringify(this.actor,null,2)}
630
+ 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===Z.ActorType.FOLLOWER)switch(r.type){case Z.InternalEventType.EXISTING_STATE_RESPONSE:if(this.debug("handleChannelEvents: Setting state from leader's existing state response",{event:r}),this.syncing?.state!==yt.PENDING)break;this.syncing.resolve?.();let o={type:Z.InternalEventType.SET_STATE,payload:{state:r.payload,previousState:this.state}};this.state=r.payload,this.emitToListeners(o,n);break}r.type===Z.InternalEventType.SET_STATE&&(this.debug("handleChannelEvents: Setting state",{event:r}),this.state=r.payload.state),this.emitToListeners(r,{actor:n.actor})}debug(t,r){this.debugging&&console.debug(vt`[UniversalStore::${this.id}::${this.environment??Z.Environment.UNKNOWN}]
631
+ ${t}`,JSON.stringify({data:r,actor:this.actor,state:this.state,status:this.status},null,2))}static __reset(){Z.preparation.reject(new Error("reset")),Z.setupPreparationPromise(),Z.isInternalConstructing=!1}};Hr.ActorType={LEADER:"LEADER",FOLLOWER:"FOLLOWER"},Hr.Environment={SERVER:"SERVER",MANAGER:"MANAGER",PREVIEW:"PREVIEW",UNKNOWN:"UNKNOWN",MOCK:"MOCK"},Hr.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"},Hr.Status={UNPREPARED:"UNPREPARED",SYNCING:"SYNCING",READY:"READY",ERROR:"ERROR"},Hr.isInternalConstructing=!1,Hr.setupPreparationPromise();var Pd=Hr,m5=Object.create,t1=Object.defineProperty,y5=Object.getOwnPropertyDescriptor,r1=Object.getOwnPropertyNames,b5=Object.getPrototypeOf,E5=Object.prototype.hasOwnProperty,te=(e,t)=>function(){return t||(0,e[r1(e)[0]])((t={exports:{}}).exports,t),t.exports},v5=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of r1(t))!E5.call(e,o)&&o!==r&&t1(e,o,{get:()=>t[o],enumerable:!(n=y5(t,o))||n.enumerable});return e},Fd=(e,t,r)=>(r=e!=null?m5(b5(e)):{},v5(!e||!e.__esModule?t1(r,"default",{value:e,enumerable:!0}):r,e)),S5=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],x5=["detail"];function $5(e){let t=S5.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(let r of x5.filter(n=>e[n]!==void 0))t[r]=e[r];return t}var n1=te({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),w5=te({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),C5=te({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),_5=te({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),T5=te({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),A5=te({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),Id=te({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),O5=te({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),R5=te({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),D5=te({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),P5=te({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),F5=te({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),I5=te({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),L5=te({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),k5=te({"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}}}),N5=te({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=k5();t.exports=function(n){return r(n)||n===0?n:n<0?-1:1}}}),M5=te({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),Ld=te({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=M5();if(r)try{r([],"length")}catch{r=null}t.exports=r}}),B5=te({"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}}),o1=te({"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 a=42;r[n]=a;for(var i 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 l=Object.getOwnPropertySymbols(r);if(l.length!==1||l[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==a||s.enumerable!==!0)return!1}return!0}}}),a1=te({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=o1();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),i1=te({"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}}),l1=te({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=n1();t.exports=r.getPrototypeOf||null}}),j5=te({"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,a="[object Function]",i=function(u,c){for(var d=[],f=0;f<u.length;f+=1)d[f]=u[f];for(var p=0;p<c.length;p+=1)d[p+u.length]=c[p];return d},l=function(u,c){for(var d=[],f=c,p=0;f<u.length;f+=1,p+=1)d[p]=u[f];return d},s=function(u,c){for(var d="",f=0;f<u.length;f+=1)d+=u[f],f+1<u.length&&(d+=c);return d};t.exports=function(u){var c=this;if(typeof c!="function"||n.apply(c)!==a)throw new TypeError(r+c);for(var d=l(arguments,1),f,p=function(){if(this instanceof f){var v=c.apply(this,i(d,arguments));return Object(v)===v?v:this}return c.apply(u,i(d,arguments))},m=o(0,c.length-d.length),y=[],E=0;E<m;E++)y[E]="$"+E;if(f=Function("binder","return function ("+s(y,",")+"){ return binder.apply(this,arguments); }")(p),c.prototype){var b=function(){};b.prototype=c.prototype,f.prototype=new b,b.prototype=null}return f}}}),Yi=te({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var r=j5();t.exports=Function.prototype.bind||r}}),kd=te({"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}}),s1=te({"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}}),H5=te({"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}}),U5=te({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var r=Yi(),n=s1(),o=kd(),a=H5();t.exports=a||r.call(o,n)}}),u1=te({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var r=Yi(),n=Id(),o=kd(),a=U5();t.exports=function(i){if(i.length<1||typeof i[0]!="function")throw new n("a function is required");return a(r,o,i)}}}),z5=te({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var r=u1(),n=Ld(),o;try{o=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var a=!!o&&n&&n(Object.prototype,"__proto__"),i=Object,l=i.getPrototypeOf;t.exports=a&&typeof a.get=="function"?r([a.get]):typeof l=="function"?(function(s){return l(s==null?s:i(s))}):!1}}),K5=te({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var r=i1(),n=l1(),o=z5();t.exports=r?function(a){return r(a)}:n?function(a){if(!a||typeof a!="object"&&typeof a!="function")throw new TypeError("getProto: not an object");return n(a)}:o?function(a){return o(a)}:null}}),c1=te({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,o=Yi();t.exports=o.call(r,n)}}),G5=te({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var r,n=n1(),o=w5(),a=C5(),i=_5(),l=T5(),s=A5(),u=Id(),c=O5(),d=R5(),f=D5(),p=P5(),m=F5(),y=I5(),E=L5(),b=N5(),v=Function,S=function(J){try{return v('"use strict"; return ('+J+").constructor;")()}catch{}},x=Ld(),C=B5(),$=function(){throw new u},w=x?(function(){try{return arguments.callee,$}catch{try{return x(arguments,"callee").get}catch{return $}}})():$,T=a1()(),O=K5(),D=l1(),_=i1(),I=s1(),L=kd(),A={},P=typeof Uint8Array>"u"||!O?r:O(Uint8Array),k={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":T&&O?O([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%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%":a,"%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%":v,"%GeneratorFunction%":A,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":T&&O?O(O([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!T||!O?r:O(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":x,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":i,"%ReferenceError%":l,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!T||!O?r:O(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":T&&O?O(""[Symbol.iterator]()):r,"%Symbol%":T?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":w,"%TypedArray%":P,"%TypeError%":u,"%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%":c,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":L,"%Function.prototype.apply%":I,"%Object.defineProperty%":C,"%Object.getPrototypeOf%":D,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":y,"%Math.round%":E,"%Math.sign%":b,"%Reflect.getPrototypeOf%":_};if(O)try{null.error}catch(J){F=O(O(J)),k["%Error.prototype%"]=F}var F,M=function J(G){var V;if(G==="%AsyncFunction%")V=S("async function () {}");else if(G==="%GeneratorFunction%")V=S("function* () {}");else if(G==="%AsyncGeneratorFunction%")V=S("async function* () {}");else if(G==="%AsyncGenerator%"){var Q=J("%AsyncGeneratorFunction%");Q&&(V=Q.prototype)}else if(G==="%AsyncIteratorPrototype%"){var le=J("%AsyncGenerator%");le&&O&&(V=O(le.prototype))}return k[G]=V,V},B={__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"]},N=Yi(),z=c1(),U=N.call(L,Array.prototype.concat),j=N.call(I,Array.prototype.splice),K=N.call(L,String.prototype.replace),H=N.call(L,String.prototype.slice),W=N.call(L,RegExp.prototype.exec),X=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,pe=/\\(\\)?/g,Ie=function(J){var G=H(J,0,1),V=H(J,-1);if(G==="%"&&V!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(V==="%"&&G!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var Q=[];return K(J,X,function(le,Ye,Y,Xe){Q[Q.length]=Y?K(Xe,pe,"$1"):Ye||le}),Q},et=function(J,G){var V=J,Q;if(z(B,V)&&(Q=B[V],V="%"+Q[0]+"%"),z(k,V)){var le=k[V];if(le===A&&(le=M(V)),typeof le>"u"&&!G)throw new u("intrinsic "+J+" exists, but is not available. Please file an issue!");return{alias:Q,name:V,value:le}}throw new s("intrinsic "+J+" does not exist!")};t.exports=function(J,G){if(typeof J!="string"||J.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof G!="boolean")throw new u('"allowMissing" argument must be a boolean');if(W(/^%?[^%]*%?$/,J)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var V=Ie(J),Q=V.length>0?V[0]:"",le=et("%"+Q+"%",G),Ye=le.name,Y=le.value,Xe=!1,_t=le.alias;_t&&(Q=_t[0],j(V,U([0,1],_t)));for(var st=1,Tt=!0;st<V.length;st+=1){var Oe=V[st],Jt=H(Oe,0,1),Zt=H(Oe,-1);if((Jt==='"'||Jt==="'"||Jt==="`"||Zt==='"'||Zt==="'"||Zt==="`")&&Jt!==Zt)throw new s("property names with quotes must have matching quotes");if((Oe==="constructor"||!Tt)&&(Xe=!0),Q+="."+Oe,Ye="%"+Q+"%",z(k,Ye))Y=k[Ye];else if(Y!=null){if(!(Oe in Y)){if(!G)throw new u("base intrinsic for "+J+" exists, but the property is not available.");return}if(x&&st+1>=V.length){var Qt=x(Y,Oe);Tt=!!Qt,Tt&&"get"in Qt&&!("originalValue"in Qt.get)?Y=Qt.get:Y=Y[Oe]}else Tt=z(Y,Oe),Y=Y[Oe];Tt&&!Xe&&(k[Ye]=Y)}}return Y}}}),Nd=te({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=G5(),n=u1(),o=n([r("%String.prototype.indexOf%")]);t.exports=function(a,i){var l=r(a,!!i);return typeof l=="function"&&o(a,".prototype.")>-1?n([l]):l}}}),W5=te({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=o1();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),d1=te({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=Nd(),n=W5()(),o=c1(),a=Ld(),i;n?(l=r("RegExp.prototype.exec"),s={},u=function(){throw s},c={toString:u,valueOf:u},typeof Symbol.toPrimitive=="symbol"&&(c[Symbol.toPrimitive]=u),i=function(p){if(!p||typeof p!="object")return!1;var m=a(p,"lastIndex"),y=m&&o(m,"value");if(!y)return!1;try{l(p,c)}catch(E){return E===s}}):(d=r("Object.prototype.toString"),f="[object RegExp]",i=function(p){return!p||typeof p!="object"&&typeof p!="function"?!1:d(p)===f});var l,s,u,c,d,f;t.exports=i}}),V5=te({"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 a=r.call(o);return a==="[object Function]"||typeof o=="function"&&a!=="[object RegExp]"||typeof window<"u"&&(o===window.setTimeout||o===window.alert||o===window.confirm||o===window.prompt)}}}),q5=te({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=Nd(),n=d1(),o=r("RegExp.prototype.exec"),a=Id();t.exports=function(i){if(!n(i))throw new a("`regex` must be a RegExp");return function(l){return o(i,l)!==null}}}}),Y5=te({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=Nd(),n=r("Object.prototype.toString"),o=a1()(),a=q5();o?(i=r("Symbol.prototype.toString"),l=a(/^Symbol\(.*\)$/),s=function(u){return typeof u.valueOf()!="symbol"?!1:l(i(u))},t.exports=function(u){if(typeof u=="symbol")return!0;if(!u||typeof u!="object"||n(u)!=="[object Symbol]")return!1;try{return s(u)}catch{return!1}}):t.exports=function(u){return!1};var i,l,s}}),X5=Fd(d1()),J5=Fd(V5()),Z5=Fd(Y5());function Q5(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var e3=typeof global=="object"&&global&&global.Object===Object&&global,t3=e3,r3=typeof self=="object"&&self&&self.Object===Object&&self,n3=t3||r3||Function("return this")(),Md=n3,o3=Md.Symbol,Fn=o3,f1=Object.prototype,a3=f1.hasOwnProperty,i3=f1.toString,co=Fn?Fn.toStringTag:void 0;function l3(e){var t=a3.call(e,co),r=e[co];try{e[co]=void 0;var n=!0}catch{}var o=i3.call(e);return n&&(t?e[co]=r:delete e[co]),o}var s3=l3,u3=Object.prototype,c3=u3.toString;function d3(e){return c3.call(e)}var f3=d3,p3="[object Null]",h3="[object Undefined]",kh=Fn?Fn.toStringTag:void 0;function g3(e){return e==null?e===void 0?h3:p3:kh&&kh in Object(e)?s3(e):f3(e)}var p1=g3;function m3(e){return e!=null&&typeof e=="object"}var y3=m3,b3="[object Symbol]";function E3(e){return typeof e=="symbol"||y3(e)&&p1(e)==b3}var Bd=E3;function v3(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 S3=v3,x3=Array.isArray,jd=x3,Nh=Fn?Fn.prototype:void 0,Mh=Nh?Nh.toString:void 0;function h1(e){if(typeof e=="string")return e;if(jd(e))return S3(e,h1)+"";if(Bd(e))return Mh?Mh.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var $3=h1;function w3(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var g1=w3,C3="[object AsyncFunction]",_3="[object Function]",T3="[object GeneratorFunction]",A3="[object Proxy]";function O3(e){if(!g1(e))return!1;var t=p1(e);return t==_3||t==T3||t==C3||t==A3}var R3=O3,D3=Md["__core-js_shared__"],Yl=D3,Bh=(function(){var e=/[^.]+$/.exec(Yl&&Yl.keys&&Yl.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function P3(e){return!!Bh&&Bh in e}var F3=P3,I3=Function.prototype,L3=I3.toString;function k3(e){if(e!=null){try{return L3.call(e)}catch{}try{return e+""}catch{}}return""}var N3=k3,M3=/[\\^$.*+?()[\]{}|]/g,B3=/^\[object .+?Constructor\]$/,j3=Function.prototype,H3=Object.prototype,U3=j3.toString,z3=H3.hasOwnProperty,K3=RegExp("^"+U3.call(z3).replace(M3,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function G3(e){if(!g1(e)||F3(e))return!1;var t=R3(e)?K3:B3;return t.test(N3(e))}var W3=G3;function V3(e,t){return e?.[t]}var q3=V3;function Y3(e,t){var r=q3(e,t);return W3(r)?r:void 0}var m1=Y3;function X3(e,t){return e===t||e!==e&&t!==t}var J3=X3,Z3=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q3=/^\w*$/;function eP(e,t){if(jd(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Bd(e)?!0:Q3.test(e)||!Z3.test(e)||t!=null&&e in Object(t)}var tP=eP,rP=m1(Object,"create"),ko=rP;function nP(){this.__data__=ko?ko(null):{},this.size=0}var oP=nP;function aP(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var iP=aP,lP="__lodash_hash_undefined__",sP=Object.prototype,uP=sP.hasOwnProperty;function cP(e){var t=this.__data__;if(ko){var r=t[e];return r===lP?void 0:r}return uP.call(t,e)?t[e]:void 0}var dP=cP,fP=Object.prototype,pP=fP.hasOwnProperty;function hP(e){var t=this.__data__;return ko?t[e]!==void 0:pP.call(t,e)}var gP=hP,mP="__lodash_hash_undefined__";function yP(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ko&&t===void 0?mP:t,this}var bP=yP;function Vn(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])}}Vn.prototype.clear=oP;Vn.prototype.delete=iP;Vn.prototype.get=dP;Vn.prototype.has=gP;Vn.prototype.set=bP;var jh=Vn;function EP(){this.__data__=[],this.size=0}var vP=EP;function SP(e,t){for(var r=e.length;r--;)if(J3(e[r][0],t))return r;return-1}var Xi=SP,xP=Array.prototype,$P=xP.splice;function wP(e){var t=this.__data__,r=Xi(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():$P.call(t,r,1),--this.size,!0}var CP=wP;function _P(e){var t=this.__data__,r=Xi(t,e);return r<0?void 0:t[r][1]}var TP=_P;function AP(e){return Xi(this.__data__,e)>-1}var OP=AP;function RP(e,t){var r=this.__data__,n=Xi(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var DP=RP;function qn(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])}}qn.prototype.clear=vP;qn.prototype.delete=CP;qn.prototype.get=TP;qn.prototype.has=OP;qn.prototype.set=DP;var PP=qn,FP=m1(Md,"Map"),IP=FP;function LP(){this.size=0,this.__data__={hash:new jh,map:new(IP||PP),string:new jh}}var kP=LP;function NP(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var MP=NP;function BP(e,t){var r=e.__data__;return MP(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Ji=BP;function jP(e){var t=Ji(this,e).delete(e);return this.size-=t?1:0,t}var HP=jP;function UP(e){return Ji(this,e).get(e)}var zP=UP;function KP(e){return Ji(this,e).has(e)}var GP=KP;function WP(e,t){var r=Ji(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var VP=WP;function Yn(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])}}Yn.prototype.clear=kP;Yn.prototype.delete=HP;Yn.prototype.get=zP;Yn.prototype.has=GP;Yn.prototype.set=VP;var y1=Yn,qP="Expected a function";function Hd(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(qP);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(Hd.Cache||y1),r}Hd.Cache=y1;var YP=Hd,XP=500;function JP(e){var t=YP(e,function(n){return r.size===XP&&r.clear(),n}),r=t.cache;return t}var ZP=JP,QP=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,e2=/\\(\\)?/g,t2=ZP(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(QP,function(r,n,o,a){t.push(o?a.replace(e2,"$1"):n||r)}),t}),r2=t2;function n2(e){return e==null?"":$3(e)}var o2=n2;function a2(e,t){return jd(e)?e:tP(e,t)?[e]:r2(o2(e))}var i2=a2;function l2(e){if(typeof e=="string"||Bd(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var s2=l2;function u2(e,t){t=i2(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[s2(t[r++])];return r&&r==n?e:void 0}var c2=u2;function d2(e,t,r){var n=e==null?void 0:c2(e,t);return n===void 0?r:n}var f2=d2,Ud=Q5,p2=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,h2=e=>e.match(/^[\[\{\"\}].*[\]\}\"]$/);function b1(e){if(!Ud(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=$5(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 g2=function(e){let t,r,n,o;return function(a,i){try{if(a==="")return o=[],t=new Map([[i,"[]"]]),r=new Map,n=[],i;let l=r.get(this)||this;for(;n.length&&l!==n[0];)n.shift(),o.pop();if(typeof i=="boolean")return i;if(i===void 0)return e.allowUndefined?"_undefined_":void 0;if(i===null)return null;if(typeof i=="number")return i===Number.NEGATIVE_INFINITY?"_-Infinity_":i===Number.POSITIVE_INFINITY?"_Infinity_":Number.isNaN(i)?"_NaN_":i;if(typeof i=="bigint")return`_bigint_${i.toString()}`;if(typeof i=="string")return p2.test(i)?e.allowDate?`_date_${i}`:void 0:i;if((0,X5.default)(i))return e.allowRegExp?`_regexp_${i.flags}|${i.source}`:void 0;if((0,J5.default)(i))return;if((0,Z5.default)(i)){if(!e.allowSymbol)return;let u=Symbol.keyFor(i);return u!==void 0?`_gsymbol_${u}`:`_symbol_${i.toString().slice(7,-1)}`}if(n.length>=e.maxDepth)return Array.isArray(i)?`[Array(${i.length})]`:"[Object]";if(i===this)return`_duplicate_${JSON.stringify(o)}`;if(i instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...i.cause?{cause:i.cause}:{},...i,name:i.name,message:i.message,stack:i.stack,"_constructor-name_":i.constructor.name}};if(i?.constructor?.name&&i.constructor.name!=="Object"&&!Array.isArray(i)){let u=t.get(i);if(!u){let c={__isClassInstance__:!0,__className__:i.constructor.name,...Object.getOwnPropertyNames(i).reduce((d,f)=>{try{d[f]=i[f]}catch{}return d},{})};return o.push(a),n.unshift(c),t.set(i,JSON.stringify(o)),i!==c&&r.set(i,c),c}return`_duplicate_${u}`}let s=t.get(i);if(!s){let u=Array.isArray(i)?i:b1(i);return o.push(a),n.unshift(u),t.set(i,JSON.stringify(o)),i!==u&&r.set(i,u),u}return`_duplicate_${s}`}catch{return}}},m2=function(e){let t=[],r;return function(n,o){if(n===""&&(r=o,t.forEach(({target:a,container:i,replacement:l})=>{let s=h2(l)?JSON.parse(l):l.split(".");s.length===0?i[a]=r:i[a]=f2(r,s)})),n==="_constructor-name_")return o;if(Ud(o)&&o.__isConvertedError__){let{message:a,...i}=o.errorProperties,l=new Error(a);return Object.assign(l,i),l}if(typeof o=="string"&&o.startsWith("_regexp_")&&e.allowRegExp){let[,a,i]=o.match(/_regexp_([^|]*)\|(.*)/)||[];return new RegExp(i,a)}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}},E1={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},y2=(e,t={})=>{let r={...E1,...t};return JSON.stringify(b1(e),g2(r),t.space)},b2=()=>{let e=new Map;return function t(r){Ud(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))})}},E2=(e,t={})=>{let r={...E1,...t},n=JSON.parse(e,m2(r));return b2()(n),n};function Hh({code:e,category:t}){let r=String(e).padStart(4,"0");return`SB_${t}_${r}`}function Uh(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 zd=class v1 extends Error{constructor(t){super(v1.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 Hh({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 a;return t===!0?a=`https://storybook.js.org/error/${Hh({code:r,category:n})}?ref=error`:typeof t=="string"?a=Uh(t):Array.isArray(t)&&(a=`
632
+ ${t.map(i=>` - ${Uh(i)}`).join(`
633
+ `)}`),`${o}${a!=null?`
634
+
635
+ More info: ${a}
636
+ `:""}`}},v2=class extends zd{constructor(t){super({name:"StatusTypeIdMismatchError",category:"MANAGER_API",code:1,message:`Status has typeId "${t.status.typeId}" but was added to store with typeId "${t.typeId}". Full status: ${JSON.stringify(t.status,null,2)}`}),this.data=t}},S2=class extends zd{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}},zh=Object.prototype.hasOwnProperty;function Kh(e,t,r){for(r of e.keys())if(Wt(r,t))return r}function Wt(e,t){var r,n,o;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&Wt(e[n],t[n]););return n===-1}if(r===Set){if(e.size!==t.size)return!1;for(n of e)if(o=n,o&&typeof o=="object"&&(o=Kh(t,o),!o)||!t.has(o))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e)if(o=n[0],o&&typeof o=="object"&&(o=Kh(t,o),!o)||!Wt(n[1],t.get(o)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return n===-1}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(zh.call(e,r)&&++n&&!zh.call(t,r)||!(r in t)||!Wt(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function Gh(e,t){let r=[],n=[];for(let o=0;o<e.length;o++){let a=e[o];t(a)?r.push(a):n.push(a)}return[r,n]}function x2(e,t){let r={};for(let n=0;n<e.length;n++){let o=e[n],a=t(o);r[a]=(r[a]??0)+1}return r}const{once:$2}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Kd=lt(Kn(),1),S1=lt(yy(),1),w2=/\/([^/]+)\/(?:(.*)_)?([^/]+)?/;(0,Kd.default)(1e3)(e=>{let t={viewMode:void 0,storyId:void 0,refId:void 0};if(e){let[,r,n,o]=e.toLowerCase().match(w2)||[];r&&Object.assign(t,{viewMode:r,storyId:o,refId:n})}return t});var Wa=Symbol("Deeply equal"),uc=(e,t)=>{if(typeof e!=typeof t)return t;if(zt(e,t))return Wa;if(Array.isArray(e)&&Array.isArray(t)){let r=t.reduce((n,o,a)=>{let i=uc(e[a],o);return i!==Wa&&(n[a]=i),n},new Array(t.length));return t.length>=e.length?r:r.concat(new Array(e.length-t.length).fill(void 0))}return _n(e)&&_n(t)?Object.keys({...e,...t}).reduce((r,n)=>{let o=uc(e?.[n],t?.[n]);return o===Wa?r:Object.assign(r,{[n]:o})},{}):t},Wh=/^[a-zA-Z0-9 _-]*$/,C2=/^-?[0-9]+(\.[0-9]+)?$/,x1=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,$1=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,cc=(e="",t)=>e===null||e===""||!Wh.test(e)?!1:t==null||t instanceof Date||typeof t=="number"||typeof t=="boolean"?!0:typeof t=="string"?Wh.test(t)||C2.test(t)||x1.test(t)||$1.test(t):Array.isArray(t)?t.every(r=>cc(e,r)):_n(t)?Object.entries(t).every(([r,n])=>cc(r,n)):!1,dc=e=>e===void 0?"!undefined":e===null?"!null":typeof e=="string"?x1.test(e)?`!hex(${e.slice(1)})`:$1.test(e)?`!${e.replace(/[\s%]/g,"")}`:e:typeof e=="boolean"?`!${e}`:e instanceof Date?`!date(${e.toISOString()})`:Array.isArray(e)?e.map(dc):_n(e)?Object.entries(e).reduce((t,[r,n])=>Object.assign(t,{[r]:dc(n)}),{}):e,_2=e=>{switch(e){case"%20":return"+";case"%5B":return"[";case"%5D":return"]";case"%2C":return",";case"%3A":return":"}return e},T2=/%[0-9A-F]{2}/g,Vh=(e,t)=>{let r=uc(e,t);if(!r||r===Wa)return"";let n=Object.entries(r).reduce((o,[a,i])=>cc(a,i)?Object.assign(o,{[a]:i}):($2.warn(vt`
637
+ Omitted potentially unsafe URL args.
638
+
639
+ More info: https://storybook.js.org/docs/writing-stories/args?ref=error#setting-args-through-the-url
640
+ `),o),{});return(0,S1.stringify)(dc(n),{delimiter:";",nesting:!0,nestingSyntax:"js"}).replace(T2,_2).split(";").map(o=>o.replace("=",":")).join(";")},A2=(0,Kd.default)(1e3)(e=>e!==void 0?(0,S1.parse)(e):{}),O2=e=>A2(e.search?e.search.slice(1):"");(0,Kd.default)(1e3)((e,t,r=!0)=>{if(r){if(typeof t!="string")throw new Error("startsWith only works with string targets");return e&&e.startsWith(t)?{path:e}:null}let n=typeof t=="string"&&e===t,o=e&&t&&e.match(t);return n||o?{path:e}:null});const{global:R2}=__STORYBOOK_MODULE_GLOBAL__;function fc(){return fc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fc.apply(this,arguments)}var qh;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(qh||(qh={}));function xt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function pc(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function w1(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var Yh;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Yh||(Yh={}));function hc(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function D2(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?w1(e):e;return{pathname:r?r.startsWith("/")?r:P2(r,t):t,search:F2(n),hash:I2(o)}}function P2(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(n=>{n===".."?r.length>1&&r.pop():n!=="."&&r.push(n)}),r.length>1?r.join("/"):"/"}function Xl(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function C1(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function _1(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=w1(e):(o=fc({},e),xt(!o.pathname||!o.pathname.includes("?"),Xl("?","pathname","search",o)),xt(!o.pathname||!o.pathname.includes("#"),Xl("#","pathname","hash",o)),xt(!o.search||!o.search.includes("#"),Xl("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,l;if(n||i==null)l=r;else{let d=t.length-1;if(i.startsWith("..")){let f=i.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}l=d>=0?t[d]:"/"}let s=D2(o,l),u=i&&i!=="/"&&i.endsWith("/"),c=(a||i===".")&&r.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}var Gd=e=>e.join("/").replace(/\/\/+/g,"/"),F2=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,I2=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function L2(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var T1=["post","put","patch","delete"];new Set(T1);var k2=["get",...T1];new Set(k2);function gc(){return gc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gc.apply(this,arguments)}var Wd=h.createContext(null),A1=h.createContext(null);h.createContext(null);var an=h.createContext(null),O1=h.createContext(null),Jo=h.createContext({outlet:null,matches:[],isDataRoute:!1}),N2=h.createContext(null);function M2(e,t){let{relative:r}=t===void 0?{}:t;Vd()||xt(!1);let{basename:n,navigator:o}=h.useContext(an),{hash:a,pathname:i,search:l}=Zi(e,{relative:r}),s=i;return n!=="/"&&(s=i==="/"?n:Gd([n,i])),o.createHref({pathname:s,search:l,hash:a})}function Vd(){return h.useContext(O1)!=null}function Zo(){return Vd()||xt(!1),h.useContext(O1).location}function R1(e){h.useContext(an).static||h.useLayoutEffect(e)}function B2(){let{isDataRoute:e}=h.useContext(Jo);return e?V2():j2()}function j2(){Vd()||xt(!1);let e=h.useContext(Wd),{basename:t,navigator:r}=h.useContext(an),{matches:n}=h.useContext(Jo),{pathname:o}=Zo(),a=JSON.stringify(C1(n).map(l=>l.pathnameBase)),i=h.useRef(!1);return R1(()=>{i.current=!0}),h.useCallback(function(l,s){if(s===void 0&&(s={}),!i.current)return;if(typeof l=="number"){r.go(l);return}let u=_1(l,JSON.parse(a),o,s.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:Gd([t,u.pathname])),(s.replace?r.replace:r.push)(u,s.state,s)},[t,r,a,o,e])}h.createContext(null);function Zi(e,t){let{relative:r}=t===void 0?{}:t,{matches:n}=h.useContext(Jo),{pathname:o}=Zo(),a=JSON.stringify(C1(n).map(i=>i.pathnameBase));return h.useMemo(()=>_1(e,JSON.parse(a),o,r==="path"),[e,a,o,r])}function H2(){let e=W2(),t=L2(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:n};return h.createElement(h.Fragment,null,h.createElement("h2",null,"Unexpected Application Error!"),h.createElement("h3",{style:{fontStyle:"italic"}},t),r?h.createElement("pre",{style:o},r):null,null)}h.createElement(H2,null);var D1=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(D1||{}),No=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(No||{});function U2(e){let t=h.useContext(Wd);return t||xt(!1),t}function z2(e){let t=h.useContext(A1);return t||xt(!1),t}function K2(e){let t=h.useContext(Jo);return t||xt(!1),t}function qd(e){let t=K2(),r=t.matches[t.matches.length-1];return r.route.id||xt(!1),r.route.id}function G2(){return qd(No.UseRouteId)}function W2(){var e;let t=h.useContext(N2),r=z2(No.UseRouteError),n=qd(No.UseRouteError);return t||((e=r.errors)==null?void 0:e[n])}function V2(){let{router:e}=U2(D1.UseNavigateStable),t=qd(No.UseNavigateStable),r=h.useRef(!1);return R1(()=>{r.current=!0}),h.useCallback(function(n,o){o===void 0&&(o={}),r.current&&(typeof n=="number"?e.navigate(n):e.navigate(n,gc({fromRouteId:t},o)))},[e,t])}var q2=(function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e})(q2||{});new Promise(()=>{});function Qr(){return Qr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qr.apply(this,arguments)}function Yd(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var Va="get",Jl="application/x-www-form-urlencoded";function Qi(e){return e!=null&&typeof e.tagName=="string"}function Y2(e){return Qi(e)&&e.tagName.toLowerCase()==="button"}function X2(e){return Qi(e)&&e.tagName.toLowerCase()==="form"}function J2(e){return Qi(e)&&e.tagName.toLowerCase()==="input"}function Z2(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Q2(e,t){return e.button===0&&(!t||t==="_self")&&!Z2(e)}var va=null;function e4(){if(va===null)try{new FormData(document.createElement("form"),0),va=!1}catch{va=!0}return va}var t4=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Zl(e){return e!=null&&!t4.has(e)?null:e}function r4(e,t){let r,n,o,a,i;if(X2(e)){let l=e.getAttribute("action");n=l?hc(l,t):null,r=e.getAttribute("method")||Va,o=Zl(e.getAttribute("enctype"))||Jl,a=new FormData(e)}else if(Y2(e)||J2(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||l.getAttribute("action");if(n=s?hc(s,t):null,r=e.getAttribute("formmethod")||l.getAttribute("method")||Va,o=Zl(e.getAttribute("formenctype"))||Zl(l.getAttribute("enctype"))||Jl,a=new FormData(l,e),!e4()){let{name:u,type:c,value:d}=e;if(c==="image"){let f=u?u+".":"";a.append(f+"x","0"),a.append(f+"y","0")}else u&&a.append(u,d)}}else{if(Qi(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Va,n=null,o=Jl,i=e}return a&&o==="text/plain"&&(i=a,a=void 0),{action:n,method:r.toLowerCase(),encType:o,formData:a,body:i}}var n4=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],o4=["aria-current","caseSensitive","className","end","style","to","children"],a4=["reloadDocument","replace","state","method","action","onSubmit","submit","relative","preventScrollReset"],i4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",l4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,s4=h.forwardRef(function(e,t){let{onClick:r,relative:n,reloadDocument:o,replace:a,state:i,target:l,to:s,preventScrollReset:u}=e,c=Yd(e,n4),{basename:d}=h.useContext(an),f,p=!1;if(typeof s=="string"&&l4.test(s)&&(f=s,i4))try{let b=new URL(window.location.href),v=s.startsWith("//")?new URL(b.protocol+s):new URL(s),S=hc(v.pathname,d);v.origin===b.origin&&S!=null?s=S+v.search+v.hash:p=!0}catch{}let m=M2(s,{relative:n}),y=d4(s,{replace:a,state:i,target:l,preventScrollReset:u,relative:n});function E(b){r&&r(b),b.defaultPrevented||y(b)}return h.createElement("a",Qr({},c,{href:f||m,onClick:p||o?r:E,ref:t,target:l}))});h.forwardRef(function(e,t){let{"aria-current":r="page",caseSensitive:n=!1,className:o="",end:a=!1,style:i,to:l,children:s}=e,u=Yd(e,o4),c=Zi(l,{relative:u.relative}),d=Zo(),f=h.useContext(A1),{navigator:p}=h.useContext(an),m=p.encodeLocation?p.encodeLocation(c).pathname:c.pathname,y=d.pathname,E=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;n||(y=y.toLowerCase(),E=E?E.toLowerCase():null,m=m.toLowerCase());let b=y===m||!a&&y.startsWith(m)&&y.charAt(m.length)==="/",v=E!=null&&(E===m||!a&&E.startsWith(m)&&E.charAt(m.length)==="/"),S=b?r:void 0,x;typeof o=="function"?x=o({isActive:b,isPending:v}):x=[o,b?"active":null,v?"pending":null].filter(Boolean).join(" ");let C=typeof i=="function"?i({isActive:b,isPending:v}):i;return h.createElement(s4,Qr({},u,{"aria-current":S,className:x,ref:t,style:C,to:l}),typeof s=="function"?s({isActive:b,isPending:v}):s)});h.forwardRef((e,t)=>{let r=p4();return h.createElement(u4,Qr({},e,{submit:r,ref:t}))});var u4=h.forwardRef((e,t)=>{let{reloadDocument:r,replace:n,state:o,method:a=Va,action:i,onSubmit:l,submit:s,relative:u,preventScrollReset:c}=e,d=Yd(e,a4),f=a.toLowerCase()==="get"?"get":"post",p=h4(i,{relative:u});return h.createElement("form",Qr({ref:t,method:f,action:p,onSubmit:r?l:m=>{if(l&&l(m),m.defaultPrevented)return;m.preventDefault();let y=m.nativeEvent.submitter,E=y?.getAttribute("formmethod")||a;s(y||m.currentTarget,{method:E,replace:n,state:o,relative:u,preventScrollReset:c})}},d))}),mc;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(mc||(mc={}));var Xh;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Xh||(Xh={}));function c4(e){let t=h.useContext(Wd);return t||xt(!1),t}function d4(e,t){let{target:r,replace:n,state:o,preventScrollReset:a,relative:i}=t===void 0?{}:t,l=B2(),s=Zo(),u=Zi(e,{relative:i});return h.useCallback(c=>{if(Q2(c,r)){c.preventDefault();let d=n!==void 0?n:pc(s)===pc(u);l(e,{replace:d,state:o,preventScrollReset:a,relative:i})}},[s,l,u,n,o,r,e,a,i])}function f4(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}function p4(){let{router:e}=c4(mc.UseSubmit),{basename:t}=h.useContext(an),r=G2();return h.useCallback(function(n,o){o===void 0&&(o={}),f4();let{action:a,method:i,encType:l,formData:s,body:u}=r4(n,t);e.navigate(o.action||a,{preventScrollReset:o.preventScrollReset,formData:s,body:u,formMethod:o.method||i,formEncType:o.encType||l,replace:o.replace,state:o.state,fromRouteId:r})},[e,t,r])}function h4(e,t){let{relative:r}=t===void 0?{}:t,{basename:n}=h.useContext(an),o=h.useContext(Jo);o||xt(!1);let[a]=o.matches.slice(-1),i=Qr({},Zi(e||".",{relative:r})),l=Zo();if(e==null&&(i.search=l.search,a.route.index)){let s=new URLSearchParams(i.search);s.delete("index"),i.search=s.toString()?"?"+s.toString():""}return(!e||e===".")&&a.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:Gd([n,i.pathname])),pc(i)}var{document:kV}=R2,Sa={exports:{}},Ql,Jh;function el(){if(Jh)return Ql;Jh=1;const e="2.0.0",t=256,r=Number.MAX_SAFE_INTEGER||9007199254740991,n=16,o=t-6;return Ql={MAX_LENGTH:t,MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:o,MAX_SAFE_INTEGER:r,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},Ql}var es,Zh;function tl(){if(Zh)return es;Zh=1;var e={};return es=typeof process=="object"&&e&&e.NODE_DEBUG&&/\bsemver\b/i.test(e.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{},es}var Qh;function Qo(){return Qh||(Qh=1,(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:o}=el(),a=tl();t=e.exports={};const i=t.re=[],l=t.safeRe=[],s=t.src=[],u=t.safeSrc=[],c=t.t={};let d=0;const f="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",o],[f,n]],m=E=>{for(const[b,v]of p)E=E.split(`${b}*`).join(`${b}{0,${v}}`).split(`${b}+`).join(`${b}{1,${v}}`);return E},y=(E,b,v)=>{const S=m(b),x=d++;a(E,x,b),c[E]=x,s[x]=b,u[x]=S,i[x]=new RegExp(b,v?"g":void 0),l[x]=new RegExp(S,v?"g":void 0)};y("NUMERICIDENTIFIER","0|[1-9]\\d*"),y("NUMERICIDENTIFIERLOOSE","\\d+"),y("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),y("MAINVERSION",`(${s[c.NUMERICIDENTIFIER]})\\.(${s[c.NUMERICIDENTIFIER]})\\.(${s[c.NUMERICIDENTIFIER]})`),y("MAINVERSIONLOOSE",`(${s[c.NUMERICIDENTIFIERLOOSE]})\\.(${s[c.NUMERICIDENTIFIERLOOSE]})\\.(${s[c.NUMERICIDENTIFIERLOOSE]})`),y("PRERELEASEIDENTIFIER",`(?:${s[c.NONNUMERICIDENTIFIER]}|${s[c.NUMERICIDENTIFIER]})`),y("PRERELEASEIDENTIFIERLOOSE",`(?:${s[c.NONNUMERICIDENTIFIER]}|${s[c.NUMERICIDENTIFIERLOOSE]})`),y("PRERELEASE",`(?:-(${s[c.PRERELEASEIDENTIFIER]}(?:\\.${s[c.PRERELEASEIDENTIFIER]})*))`),y("PRERELEASELOOSE",`(?:-?(${s[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[c.PRERELEASEIDENTIFIERLOOSE]})*))`),y("BUILDIDENTIFIER",`${f}+`),y("BUILD",`(?:\\+(${s[c.BUILDIDENTIFIER]}(?:\\.${s[c.BUILDIDENTIFIER]})*))`),y("FULLPLAIN",`v?${s[c.MAINVERSION]}${s[c.PRERELEASE]}?${s[c.BUILD]}?`),y("FULL",`^${s[c.FULLPLAIN]}$`),y("LOOSEPLAIN",`[v=\\s]*${s[c.MAINVERSIONLOOSE]}${s[c.PRERELEASELOOSE]}?${s[c.BUILD]}?`),y("LOOSE",`^${s[c.LOOSEPLAIN]}$`),y("GTLT","((?:<|>)?=?)"),y("XRANGEIDENTIFIERLOOSE",`${s[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),y("XRANGEIDENTIFIER",`${s[c.NUMERICIDENTIFIER]}|x|X|\\*`),y("XRANGEPLAIN",`[v=\\s]*(${s[c.XRANGEIDENTIFIER]})(?:\\.(${s[c.XRANGEIDENTIFIER]})(?:\\.(${s[c.XRANGEIDENTIFIER]})(?:${s[c.PRERELEASE]})?${s[c.BUILD]}?)?)?`),y("XRANGEPLAINLOOSE",`[v=\\s]*(${s[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[c.XRANGEIDENTIFIERLOOSE]})(?:${s[c.PRERELEASELOOSE]})?${s[c.BUILD]}?)?)?`),y("XRANGE",`^${s[c.GTLT]}\\s*${s[c.XRANGEPLAIN]}$`),y("XRANGELOOSE",`^${s[c.GTLT]}\\s*${s[c.XRANGEPLAINLOOSE]}$`),y("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),y("COERCE",`${s[c.COERCEPLAIN]}(?:$|[^\\d])`),y("COERCEFULL",s[c.COERCEPLAIN]+`(?:${s[c.PRERELEASE]})?(?:${s[c.BUILD]})?(?:$|[^\\d])`),y("COERCERTL",s[c.COERCE],!0),y("COERCERTLFULL",s[c.COERCEFULL],!0),y("LONETILDE","(?:~>?)"),y("TILDETRIM",`(\\s*)${s[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",y("TILDE",`^${s[c.LONETILDE]}${s[c.XRANGEPLAIN]}$`),y("TILDELOOSE",`^${s[c.LONETILDE]}${s[c.XRANGEPLAINLOOSE]}$`),y("LONECARET","(?:\\^)"),y("CARETTRIM",`(\\s*)${s[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",y("CARET",`^${s[c.LONECARET]}${s[c.XRANGEPLAIN]}$`),y("CARETLOOSE",`^${s[c.LONECARET]}${s[c.XRANGEPLAINLOOSE]}$`),y("COMPARATORLOOSE",`^${s[c.GTLT]}\\s*(${s[c.LOOSEPLAIN]})$|^$`),y("COMPARATOR",`^${s[c.GTLT]}\\s*(${s[c.FULLPLAIN]})$|^$`),y("COMPARATORTRIM",`(\\s*)${s[c.GTLT]}\\s*(${s[c.LOOSEPLAIN]}|${s[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",y("HYPHENRANGE",`^\\s*(${s[c.XRANGEPLAIN]})\\s+-\\s+(${s[c.XRANGEPLAIN]})\\s*$`),y("HYPHENRANGELOOSE",`^\\s*(${s[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[c.XRANGEPLAINLOOSE]})\\s*$`),y("STAR","(<|>)?=?\\s*\\*"),y("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),y("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Sa,Sa.exports)),Sa.exports}var ts,eg;function Xd(){if(eg)return ts;eg=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return ts=n=>n?typeof n!="object"?e:n:t,ts}var rs,tg;function P1(){if(tg)return rs;tg=1;const e=/^[0-9]+$/,t=(n,o)=>{if(typeof n=="number"&&typeof o=="number")return n===o?0:n<o?-1:1;const a=e.test(n),i=e.test(o);return a&&i&&(n=+n,o=+o),n===o?0:a&&!i?-1:i&&!a?1:n<o?-1:1};return rs={compareIdentifiers:t,rcompareIdentifiers:(n,o)=>t(o,n)},rs}var ns,rg;function Qe(){if(rg)return ns;rg=1;const e=tl(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:r}=el(),{safeRe:n,t:o}=Qo(),a=Xd(),{compareIdentifiers:i}=P1();class l{constructor(u,c){if(c=a(c),u instanceof l){if(u.loose===!!c.loose&&u.includePrerelease===!!c.includePrerelease)return u;u=u.version}else if(typeof u!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof u}".`);if(u.length>t)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",u,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;const d=u.trim().match(c.loose?n[o.LOOSE]:n[o.FULL]);if(!d)throw new TypeError(`Invalid Version: ${u}`);if(this.raw=u,this.major=+d[1],this.minor=+d[2],this.patch=+d[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");d[4]?this.prerelease=d[4].split(".").map(f=>{if(/^[0-9]+$/.test(f)){const p=+f;if(p>=0&&p<r)return p}return f}):this.prerelease=[],this.build=d[5]?d[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(u){if(e("SemVer.compare",this.version,this.options,u),!(u instanceof l)){if(typeof u=="string"&&u===this.version)return 0;u=new l(u,this.options)}return u.version===this.version?0:this.compareMain(u)||this.comparePre(u)}compareMain(u){return u instanceof l||(u=new l(u,this.options)),this.major<u.major?-1:this.major>u.major?1:this.minor<u.minor?-1:this.minor>u.minor?1:this.patch<u.patch?-1:this.patch>u.patch?1:0}comparePre(u){if(u instanceof l||(u=new l(u,this.options)),this.prerelease.length&&!u.prerelease.length)return-1;if(!this.prerelease.length&&u.prerelease.length)return 1;if(!this.prerelease.length&&!u.prerelease.length)return 0;let c=0;do{const d=this.prerelease[c],f=u.prerelease[c];if(e("prerelease compare",c,d,f),d===void 0&&f===void 0)return 0;if(f===void 0)return 1;if(d===void 0)return-1;if(d===f)continue;return i(d,f)}while(++c)}compareBuild(u){u instanceof l||(u=new l(u,this.options));let c=0;do{const d=this.build[c],f=u.build[c];if(e("build compare",c,d,f),d===void 0&&f===void 0)return 0;if(f===void 0)return 1;if(d===void 0)return-1;if(d===f)continue;return i(d,f)}while(++c)}inc(u,c,d){if(u.startsWith("pre")){if(!c&&d===!1)throw new Error("invalid increment argument: identifier is empty");if(c){const f=`-${c}`.match(this.options.loose?n[o.PRERELEASELOOSE]:n[o.PRERELEASE]);if(!f||f[1]!==c)throw new Error(`invalid identifier: ${c}`)}}switch(u){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",c,d);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",c,d);break;case"prepatch":this.prerelease.length=0,this.inc("patch",c,d),this.inc("pre",c,d);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",c,d),this.inc("pre",c,d);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const f=Number(d)?1:0;if(this.prerelease.length===0)this.prerelease=[f];else{let p=this.prerelease.length;for(;--p>=0;)typeof this.prerelease[p]=="number"&&(this.prerelease[p]++,p=-2);if(p===-1){if(c===this.prerelease.join(".")&&d===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(f)}}if(c){let p=[c,f];d===!1&&(p=[c]),i(this.prerelease[0],c)===0?isNaN(this.prerelease[1])&&(this.prerelease=p):this.prerelease=p}break}default:throw new Error(`invalid increment argument: ${u}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return ns=l,ns}var os,ng;function Xn(){if(ng)return os;ng=1;const e=Qe();return os=(r,n,o=!1)=>{if(r instanceof e)return r;try{return new e(r,n)}catch(a){if(!o)return null;throw a}},os}var as,og;function g4(){if(og)return as;og=1;const e=Xn();return as=(r,n)=>{const o=e(r,n);return o?o.version:null},as}var is,ag;function m4(){if(ag)return is;ag=1;const e=Xn();return is=(r,n)=>{const o=e(r.trim().replace(/^[=v]+/,""),n);return o?o.version:null},is}var ls,ig;function y4(){if(ig)return ls;ig=1;const e=Qe();return ls=(r,n,o,a,i)=>{typeof o=="string"&&(i=a,a=o,o=void 0);try{return new e(r instanceof e?r.version:r,o).inc(n,a,i).version}catch{return null}},ls}var ss,lg;function b4(){if(lg)return ss;lg=1;const e=Xn();return ss=(r,n)=>{const o=e(r,null,!0),a=e(n,null,!0),i=o.compare(a);if(i===0)return null;const l=i>0,s=l?o:a,u=l?a:o,c=!!s.prerelease.length;if(!!u.prerelease.length&&!c){if(!u.patch&&!u.minor)return"major";if(u.compareMain(s)===0)return u.minor&&!u.patch?"minor":"patch"}const f=c?"pre":"";return o.major!==a.major?f+"major":o.minor!==a.minor?f+"minor":o.patch!==a.patch?f+"patch":"prerelease"},ss}var us,sg;function E4(){if(sg)return us;sg=1;const e=Qe();return us=(r,n)=>new e(r,n).major,us}var cs,ug;function v4(){if(ug)return cs;ug=1;const e=Qe();return cs=(r,n)=>new e(r,n).minor,cs}var ds,cg;function S4(){if(cg)return ds;cg=1;const e=Qe();return ds=(r,n)=>new e(r,n).patch,ds}var fs,dg;function x4(){if(dg)return fs;dg=1;const e=Xn();return fs=(r,n)=>{const o=e(r,n);return o&&o.prerelease.length?o.prerelease:null},fs}var ps,fg;function kt(){if(fg)return ps;fg=1;const e=Qe();return ps=(r,n,o)=>new e(r,o).compare(new e(n,o)),ps}var hs,pg;function $4(){if(pg)return hs;pg=1;const e=kt();return hs=(r,n,o)=>e(n,r,o),hs}var gs,hg;function w4(){if(hg)return gs;hg=1;const e=kt();return gs=(r,n)=>e(r,n,!0),gs}var ms,gg;function Jd(){if(gg)return ms;gg=1;const e=Qe();return ms=(r,n,o)=>{const a=new e(r,o),i=new e(n,o);return a.compare(i)||a.compareBuild(i)},ms}var ys,mg;function C4(){if(mg)return ys;mg=1;const e=Jd();return ys=(r,n)=>r.sort((o,a)=>e(o,a,n)),ys}var bs,yg;function _4(){if(yg)return bs;yg=1;const e=Jd();return bs=(r,n)=>r.sort((o,a)=>e(a,o,n)),bs}var Es,bg;function rl(){if(bg)return Es;bg=1;const e=kt();return Es=(r,n,o)=>e(r,n,o)>0,Es}var vs,Eg;function Zd(){if(Eg)return vs;Eg=1;const e=kt();return vs=(r,n,o)=>e(r,n,o)<0,vs}var Ss,vg;function F1(){if(vg)return Ss;vg=1;const e=kt();return Ss=(r,n,o)=>e(r,n,o)===0,Ss}var xs,Sg;function I1(){if(Sg)return xs;Sg=1;const e=kt();return xs=(r,n,o)=>e(r,n,o)!==0,xs}var $s,xg;function Qd(){if(xg)return $s;xg=1;const e=kt();return $s=(r,n,o)=>e(r,n,o)>=0,$s}var ws,$g;function ef(){if($g)return ws;$g=1;const e=kt();return ws=(r,n,o)=>e(r,n,o)<=0,ws}var Cs,wg;function L1(){if(wg)return Cs;wg=1;const e=F1(),t=I1(),r=rl(),n=Qd(),o=Zd(),a=ef();return Cs=(l,s,u,c)=>{switch(s){case"===":return typeof l=="object"&&(l=l.version),typeof u=="object"&&(u=u.version),l===u;case"!==":return typeof l=="object"&&(l=l.version),typeof u=="object"&&(u=u.version),l!==u;case"":case"=":case"==":return e(l,u,c);case"!=":return t(l,u,c);case">":return r(l,u,c);case">=":return n(l,u,c);case"<":return o(l,u,c);case"<=":return a(l,u,c);default:throw new TypeError(`Invalid operator: ${s}`)}},Cs}var _s,Cg;function T4(){if(Cg)return _s;Cg=1;const e=Qe(),t=Xn(),{safeRe:r,t:n}=Qo();return _s=(a,i)=>{if(a instanceof e)return a;if(typeof a=="number"&&(a=String(a)),typeof a!="string")return null;i=i||{};let l=null;if(!i.rtl)l=a.match(i.includePrerelease?r[n.COERCEFULL]:r[n.COERCE]);else{const p=i.includePrerelease?r[n.COERCERTLFULL]:r[n.COERCERTL];let m;for(;(m=p.exec(a))&&(!l||l.index+l[0].length!==a.length);)(!l||m.index+m[0].length!==l.index+l[0].length)&&(l=m),p.lastIndex=m.index+m[1].length+m[2].length;p.lastIndex=-1}if(l===null)return null;const s=l[2],u=l[3]||"0",c=l[4]||"0",d=i.includePrerelease&&l[5]?`-${l[5]}`:"",f=i.includePrerelease&&l[6]?`+${l[6]}`:"";return t(`${s}.${u}.${c}${d}${f}`,i)},_s}var Ts,_g;function A4(){if(_g)return Ts;_g=1;class e{constructor(){this.max=1e3,this.map=new Map}get(r){const n=this.map.get(r);if(n!==void 0)return this.map.delete(r),this.map.set(r,n),n}delete(r){return this.map.delete(r)}set(r,n){if(!this.delete(r)&&n!==void 0){if(this.map.size>=this.max){const a=this.map.keys().next().value;this.delete(a)}this.map.set(r,n)}return this}}return Ts=e,Ts}var As,Tg;function Nt(){if(Tg)return As;Tg=1;const e=/\s+/g;class t{constructor(P,k){if(k=o(k),P instanceof t)return P.loose===!!k.loose&&P.includePrerelease===!!k.includePrerelease?P:new t(P.raw,k);if(P instanceof a)return this.raw=P.value,this.set=[[P]],this.formatted=void 0,this;if(this.options=k,this.loose=!!k.loose,this.includePrerelease=!!k.includePrerelease,this.raw=P.trim().replace(e," "),this.set=this.raw.split("||").map(F=>this.parseRange(F.trim())).filter(F=>F.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const F=this.set[0];if(this.set=this.set.filter(M=>!y(M[0])),this.set.length===0)this.set=[F];else if(this.set.length>1){for(const M of this.set)if(M.length===1&&E(M[0])){this.set=[M];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let P=0;P<this.set.length;P++){P>0&&(this.formatted+="||");const k=this.set[P];for(let F=0;F<k.length;F++)F>0&&(this.formatted+=" "),this.formatted+=k[F].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(P){const F=((this.options.includePrerelease&&p)|(this.options.loose&&m))+":"+P,M=n.get(F);if(M)return M;const B=this.options.loose,N=B?s[u.HYPHENRANGELOOSE]:s[u.HYPHENRANGE];P=P.replace(N,I(this.options.includePrerelease)),i("hyphen replace",P),P=P.replace(s[u.COMPARATORTRIM],c),i("comparator trim",P),P=P.replace(s[u.TILDETRIM],d),i("tilde trim",P),P=P.replace(s[u.CARETTRIM],f),i("caret trim",P);let z=P.split(" ").map(H=>v(H,this.options)).join(" ").split(/\s+/).map(H=>_(H,this.options));B&&(z=z.filter(H=>(i("loose invalid filter",H,this.options),!!H.match(s[u.COMPARATORLOOSE])))),i("range list",z);const U=new Map,j=z.map(H=>new a(H,this.options));for(const H of j){if(y(H))return[H];U.set(H.value,H)}U.size>1&&U.has("")&&U.delete("");const K=[...U.values()];return n.set(F,K),K}intersects(P,k){if(!(P instanceof t))throw new TypeError("a Range is required");return this.set.some(F=>b(F,k)&&P.set.some(M=>b(M,k)&&F.every(B=>M.every(N=>B.intersects(N,k)))))}test(P){if(!P)return!1;if(typeof P=="string")try{P=new l(P,this.options)}catch{return!1}for(let k=0;k<this.set.length;k++)if(L(this.set[k],P,this.options))return!0;return!1}}As=t;const r=A4(),n=new r,o=Xd(),a=nl(),i=tl(),l=Qe(),{safeRe:s,t:u,comparatorTrimReplace:c,tildeTrimReplace:d,caretTrimReplace:f}=Qo(),{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:m}=el(),y=A=>A.value==="<0.0.0-0",E=A=>A.value==="",b=(A,P)=>{let k=!0;const F=A.slice();let M=F.pop();for(;k&&F.length;)k=F.every(B=>M.intersects(B,P)),M=F.pop();return k},v=(A,P)=>(A=A.replace(s[u.BUILD],""),i("comp",A,P),A=$(A,P),i("caret",A),A=x(A,P),i("tildes",A),A=T(A,P),i("xrange",A),A=D(A,P),i("stars",A),A),S=A=>!A||A.toLowerCase()==="x"||A==="*",x=(A,P)=>A.trim().split(/\s+/).map(k=>C(k,P)).join(" "),C=(A,P)=>{const k=P.loose?s[u.TILDELOOSE]:s[u.TILDE];return A.replace(k,(F,M,B,N,z)=>{i("tilde",A,F,M,B,N,z);let U;return S(M)?U="":S(B)?U=`>=${M}.0.0 <${+M+1}.0.0-0`:S(N)?U=`>=${M}.${B}.0 <${M}.${+B+1}.0-0`:z?(i("replaceTilde pr",z),U=`>=${M}.${B}.${N}-${z} <${M}.${+B+1}.0-0`):U=`>=${M}.${B}.${N} <${M}.${+B+1}.0-0`,i("tilde return",U),U})},$=(A,P)=>A.trim().split(/\s+/).map(k=>w(k,P)).join(" "),w=(A,P)=>{i("caret",A,P);const k=P.loose?s[u.CARETLOOSE]:s[u.CARET],F=P.includePrerelease?"-0":"";return A.replace(k,(M,B,N,z,U)=>{i("caret",A,M,B,N,z,U);let j;return S(B)?j="":S(N)?j=`>=${B}.0.0${F} <${+B+1}.0.0-0`:S(z)?B==="0"?j=`>=${B}.${N}.0${F} <${B}.${+N+1}.0-0`:j=`>=${B}.${N}.0${F} <${+B+1}.0.0-0`:U?(i("replaceCaret pr",U),B==="0"?N==="0"?j=`>=${B}.${N}.${z}-${U} <${B}.${N}.${+z+1}-0`:j=`>=${B}.${N}.${z}-${U} <${B}.${+N+1}.0-0`:j=`>=${B}.${N}.${z}-${U} <${+B+1}.0.0-0`):(i("no pr"),B==="0"?N==="0"?j=`>=${B}.${N}.${z}${F} <${B}.${N}.${+z+1}-0`:j=`>=${B}.${N}.${z}${F} <${B}.${+N+1}.0-0`:j=`>=${B}.${N}.${z} <${+B+1}.0.0-0`),i("caret return",j),j})},T=(A,P)=>(i("replaceXRanges",A,P),A.split(/\s+/).map(k=>O(k,P)).join(" ")),O=(A,P)=>{A=A.trim();const k=P.loose?s[u.XRANGELOOSE]:s[u.XRANGE];return A.replace(k,(F,M,B,N,z,U)=>{i("xRange",A,F,M,B,N,z,U);const j=S(B),K=j||S(N),H=K||S(z),W=H;return M==="="&&W&&(M=""),U=P.includePrerelease?"-0":"",j?M===">"||M==="<"?F="<0.0.0-0":F="*":M&&W?(K&&(N=0),z=0,M===">"?(M=">=",K?(B=+B+1,N=0,z=0):(N=+N+1,z=0)):M==="<="&&(M="<",K?B=+B+1:N=+N+1),M==="<"&&(U="-0"),F=`${M+B}.${N}.${z}${U}`):K?F=`>=${B}.0.0${U} <${+B+1}.0.0-0`:H&&(F=`>=${B}.${N}.0${U} <${B}.${+N+1}.0-0`),i("xRange return",F),F})},D=(A,P)=>(i("replaceStars",A,P),A.trim().replace(s[u.STAR],"")),_=(A,P)=>(i("replaceGTE0",A,P),A.trim().replace(s[P.includePrerelease?u.GTE0PRE:u.GTE0],"")),I=A=>(P,k,F,M,B,N,z,U,j,K,H,W)=>(S(F)?k="":S(M)?k=`>=${F}.0.0${A?"-0":""}`:S(B)?k=`>=${F}.${M}.0${A?"-0":""}`:N?k=`>=${k}`:k=`>=${k}${A?"-0":""}`,S(j)?U="":S(K)?U=`<${+j+1}.0.0-0`:S(H)?U=`<${j}.${+K+1}.0-0`:W?U=`<=${j}.${K}.${H}-${W}`:A?U=`<${j}.${K}.${+H+1}-0`:U=`<=${U}`,`${k} ${U}`.trim()),L=(A,P,k)=>{for(let F=0;F<A.length;F++)if(!A[F].test(P))return!1;if(P.prerelease.length&&!k.includePrerelease){for(let F=0;F<A.length;F++)if(i(A[F].semver),A[F].semver!==a.ANY&&A[F].semver.prerelease.length>0){const M=A[F].semver;if(M.major===P.major&&M.minor===P.minor&&M.patch===P.patch)return!0}return!1}return!0};return As}var Os,Ag;function nl(){if(Ag)return Os;Ag=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(c,d){if(d=r(d),c instanceof t){if(c.loose===!!d.loose)return c;c=c.value}c=c.trim().split(/\s+/).join(" "),i("comparator",c,d),this.options=d,this.loose=!!d.loose,this.parse(c),this.semver===e?this.value="":this.value=this.operator+this.semver.version,i("comp",this)}parse(c){const d=this.options.loose?n[o.COMPARATORLOOSE]:n[o.COMPARATOR],f=c.match(d);if(!f)throw new TypeError(`Invalid comparator: ${c}`);this.operator=f[1]!==void 0?f[1]:"",this.operator==="="&&(this.operator=""),f[2]?this.semver=new l(f[2],this.options.loose):this.semver=e}toString(){return this.value}test(c){if(i("Comparator.test",c,this.options.loose),this.semver===e||c===e)return!0;if(typeof c=="string")try{c=new l(c,this.options)}catch{return!1}return a(c,this.operator,this.semver,this.options)}intersects(c,d){if(!(c instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new s(c.value,d).test(this.value):c.operator===""?c.value===""?!0:new s(this.value,d).test(c.semver):(d=r(d),d.includePrerelease&&(this.value==="<0.0.0-0"||c.value==="<0.0.0-0")||!d.includePrerelease&&(this.value.startsWith("<0.0.0")||c.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&c.operator.startsWith(">")||this.operator.startsWith("<")&&c.operator.startsWith("<")||this.semver.version===c.semver.version&&this.operator.includes("=")&&c.operator.includes("=")||a(this.semver,"<",c.semver,d)&&this.operator.startsWith(">")&&c.operator.startsWith("<")||a(this.semver,">",c.semver,d)&&this.operator.startsWith("<")&&c.operator.startsWith(">")))}}Os=t;const r=Xd(),{safeRe:n,t:o}=Qo(),a=L1(),i=tl(),l=Qe(),s=Nt();return Os}var Rs,Og;function ol(){if(Og)return Rs;Og=1;const e=Nt();return Rs=(r,n,o)=>{try{n=new e(n,o)}catch{return!1}return n.test(r)},Rs}var Ds,Rg;function O4(){if(Rg)return Ds;Rg=1;const e=Nt();return Ds=(r,n)=>new e(r,n).set.map(o=>o.map(a=>a.value).join(" ").trim().split(" ")),Ds}var Ps,Dg;function R4(){if(Dg)return Ps;Dg=1;const e=Qe(),t=Nt();return Ps=(n,o,a)=>{let i=null,l=null,s=null;try{s=new t(o,a)}catch{return null}return n.forEach(u=>{s.test(u)&&(!i||l.compare(u)===-1)&&(i=u,l=new e(i,a))}),i},Ps}var Fs,Pg;function D4(){if(Pg)return Fs;Pg=1;const e=Qe(),t=Nt();return Fs=(n,o,a)=>{let i=null,l=null,s=null;try{s=new t(o,a)}catch{return null}return n.forEach(u=>{s.test(u)&&(!i||l.compare(u)===1)&&(i=u,l=new e(i,a))}),i},Fs}var Is,Fg;function P4(){if(Fg)return Is;Fg=1;const e=Qe(),t=Nt(),r=rl();return Is=(o,a)=>{o=new t(o,a);let i=new e("0.0.0");if(o.test(i)||(i=new e("0.0.0-0"),o.test(i)))return i;i=null;for(let l=0;l<o.set.length;++l){const s=o.set[l];let u=null;s.forEach(c=>{const d=new e(c.semver.version);switch(c.operator){case">":d.prerelease.length===0?d.patch++:d.prerelease.push(0),d.raw=d.format();case"":case">=":(!u||r(d,u))&&(u=d);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${c.operator}`)}}),u&&(!i||r(i,u))&&(i=u)}return i&&o.test(i)?i:null},Is}var Ls,Ig;function F4(){if(Ig)return Ls;Ig=1;const e=Nt();return Ls=(r,n)=>{try{return new e(r,n).range||"*"}catch{return null}},Ls}var ks,Lg;function tf(){if(Lg)return ks;Lg=1;const e=Qe(),t=nl(),{ANY:r}=t,n=Nt(),o=ol(),a=rl(),i=Zd(),l=ef(),s=Qd();return ks=(c,d,f,p)=>{c=new e(c,p),d=new n(d,p);let m,y,E,b,v;switch(f){case">":m=a,y=l,E=i,b=">",v=">=";break;case"<":m=i,y=s,E=a,b="<",v="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(o(c,d,p))return!1;for(let S=0;S<d.set.length;++S){const x=d.set[S];let C=null,$=null;if(x.forEach(w=>{w.semver===r&&(w=new t(">=0.0.0")),C=C||w,$=$||w,m(w.semver,C.semver,p)?C=w:E(w.semver,$.semver,p)&&($=w)}),C.operator===b||C.operator===v||(!$.operator||$.operator===b)&&y(c,$.semver))return!1;if($.operator===v&&E(c,$.semver))return!1}return!0},ks}var Ns,kg;function I4(){if(kg)return Ns;kg=1;const e=tf();return Ns=(r,n,o)=>e(r,n,">",o),Ns}var Ms,Ng;function L4(){if(Ng)return Ms;Ng=1;const e=tf();return Ms=(r,n,o)=>e(r,n,"<",o),Ms}var Bs,Mg;function k4(){if(Mg)return Bs;Mg=1;const e=Nt();return Bs=(r,n,o)=>(r=new e(r,o),n=new e(n,o),r.intersects(n,o)),Bs}var js,Bg;function N4(){if(Bg)return js;Bg=1;const e=ol(),t=kt();return js=(r,n,o)=>{const a=[];let i=null,l=null;const s=r.sort((f,p)=>t(f,p,o));for(const f of s)e(f,n,o)?(l=f,i||(i=f)):(l&&a.push([i,l]),l=null,i=null);i&&a.push([i,null]);const u=[];for(const[f,p]of a)f===p?u.push(f):!p&&f===s[0]?u.push("*"):p?f===s[0]?u.push(`<=${p}`):u.push(`${f} - ${p}`):u.push(`>=${f}`);const c=u.join(" || "),d=typeof n.raw=="string"?n.raw:String(n);return c.length<d.length?c:n},js}var Hs,jg;function M4(){if(jg)return Hs;jg=1;const e=Nt(),t=nl(),{ANY:r}=t,n=ol(),o=kt(),a=(d,f,p={})=>{if(d===f)return!0;d=new e(d,p),f=new e(f,p);let m=!1;e:for(const y of d.set){for(const E of f.set){const b=s(y,E,p);if(m=m||b!==null,b)continue e}if(m)return!1}return!0},i=[new t(">=0.0.0-0")],l=[new t(">=0.0.0")],s=(d,f,p)=>{if(d===f)return!0;if(d.length===1&&d[0].semver===r){if(f.length===1&&f[0].semver===r)return!0;p.includePrerelease?d=i:d=l}if(f.length===1&&f[0].semver===r){if(p.includePrerelease)return!0;f=l}const m=new Set;let y,E;for(const T of d)T.operator===">"||T.operator===">="?y=u(y,T,p):T.operator==="<"||T.operator==="<="?E=c(E,T,p):m.add(T.semver);if(m.size>1)return null;let b;if(y&&E){if(b=o(y.semver,E.semver,p),b>0)return null;if(b===0&&(y.operator!==">="||E.operator!=="<="))return null}for(const T of m){if(y&&!n(T,String(y),p)||E&&!n(T,String(E),p))return null;for(const O of f)if(!n(T,String(O),p))return!1;return!0}let v,S,x,C,$=E&&!p.includePrerelease&&E.semver.prerelease.length?E.semver:!1,w=y&&!p.includePrerelease&&y.semver.prerelease.length?y.semver:!1;$&&$.prerelease.length===1&&E.operator==="<"&&$.prerelease[0]===0&&($=!1);for(const T of f){if(C=C||T.operator===">"||T.operator===">=",x=x||T.operator==="<"||T.operator==="<=",y){if(w&&T.semver.prerelease&&T.semver.prerelease.length&&T.semver.major===w.major&&T.semver.minor===w.minor&&T.semver.patch===w.patch&&(w=!1),T.operator===">"||T.operator===">="){if(v=u(y,T,p),v===T&&v!==y)return!1}else if(y.operator===">="&&!n(y.semver,String(T),p))return!1}if(E){if($&&T.semver.prerelease&&T.semver.prerelease.length&&T.semver.major===$.major&&T.semver.minor===$.minor&&T.semver.patch===$.patch&&($=!1),T.operator==="<"||T.operator==="<="){if(S=c(E,T,p),S===T&&S!==E)return!1}else if(E.operator==="<="&&!n(E.semver,String(T),p))return!1}if(!T.operator&&(E||y)&&b!==0)return!1}return!(y&&x&&!E&&b!==0||E&&C&&!y&&b!==0||w||$)},u=(d,f,p)=>{if(!d)return f;const m=o(d.semver,f.semver,p);return m>0?d:m<0||f.operator===">"&&d.operator===">="?f:d},c=(d,f,p)=>{if(!d)return f;const m=o(d.semver,f.semver,p);return m<0?d:m>0||f.operator==="<"&&d.operator==="<="?f:d};return Hs=a,Hs}var Us,Hg;function B4(){if(Hg)return Us;Hg=1;const e=Qo(),t=el(),r=Qe(),n=P1(),o=Xn(),a=g4(),i=m4(),l=y4(),s=b4(),u=E4(),c=v4(),d=S4(),f=x4(),p=kt(),m=$4(),y=w4(),E=Jd(),b=C4(),v=_4(),S=rl(),x=Zd(),C=F1(),$=I1(),w=Qd(),T=ef(),O=L1(),D=T4(),_=nl(),I=Nt(),L=ol(),A=O4(),P=R4(),k=D4(),F=P4(),M=F4(),B=tf(),N=I4(),z=L4(),U=k4(),j=N4(),K=M4();return Us={parse:o,valid:a,clean:i,inc:l,diff:s,major:u,minor:c,patch:d,prerelease:f,compare:p,rcompare:m,compareLoose:y,compareBuild:E,sort:b,rsort:v,gt:S,lt:x,eq:C,neq:$,gte:w,lte:T,cmp:O,coerce:D,Comparator:_,Range:I,satisfies:L,toComparators:A,maxSatisfying:P,minSatisfying:k,minVersion:F,validRange:M,outside:B,gtr:N,ltr:z,intersects:U,simplifyRange:j,subset:K,SemVer:r,re:e.re,src:e.src,tokens:e.t,SEMVER_SPEC_VERSION:t.SEMVER_SPEC_VERSION,RELEASE_TYPES:t.RELEASE_TYPES,compareIdentifiers:n.compareIdentifiers,rcompareIdentifiers:n.rcompareIdentifiers},Us}var j4=B4();const ut=Sw(j4);var H4=Ve({"../../node_modules/toggle-selection/index.js"(e,t){t.exports=function(){var r=document.getSelection();if(!r.rangeCount)return function(){};for(var n=document.activeElement,o=[],a=0;a<r.rangeCount;a++)o.push(r.getRangeAt(a));switch(n.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":n.blur();break;default:n=null;break}return r.removeAllRanges(),function(){r.type==="Caret"&&r.removeAllRanges(),r.rangeCount||o.forEach(function(i){r.addRange(i)}),n&&n.focus()}}}}),U4=Ve({"../../node_modules/copy-to-clipboard/index.js"(e,t){var r=H4(),n={"text/plain":"Text","text/html":"Url",default:"Text"},o="Copy to clipboard: #{key}, Enter";function a(l){var s=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return l.replace(/#{\s*key\s*}/g,s)}function i(l,s){var u,c,d,f,p,m,y=!1;s||(s={}),u=s.debug||!1;try{d=r(),f=document.createRange(),p=document.getSelection(),m=document.createElement("span"),m.textContent=l,m.ariaHidden="true",m.style.all="unset",m.style.position="fixed",m.style.top=0,m.style.clip="rect(0, 0, 0, 0)",m.style.whiteSpace="pre",m.style.webkitUserSelect="text",m.style.MozUserSelect="text",m.style.msUserSelect="text",m.style.userSelect="text",m.addEventListener("copy",function(b){if(b.stopPropagation(),s.format)if(b.preventDefault(),typeof b.clipboardData>"u"){u&&console.warn("unable to use e.clipboardData"),u&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var v=n[s.format]||n.default;window.clipboardData.setData(v,l)}else b.clipboardData.clearData(),b.clipboardData.setData(s.format,l);s.onCopy&&(b.preventDefault(),s.onCopy(b.clipboardData))}),document.body.appendChild(m),f.selectNodeContents(m),p.addRange(f);var E=document.execCommand("copy");if(!E)throw new Error("copy command was unsuccessful");y=!0}catch(b){u&&console.error("unable to copy using execCommand: ",b),u&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(s.format||"text",l),s.onCopy&&s.onCopy(window.clipboardData),y=!0}catch(v){u&&console.error("unable to copy using clipboardData: ",v),u&&console.error("falling back to prompt"),c=a("message"in s?s.message:o),window.prompt(c,l)}}finally{p&&(typeof p.removeRange=="function"?p.removeRange(f):p.removeAllRanges()),m&&document.body.removeChild(m),d()}return y}t.exports=i}}),z4=Ve({"../../node_modules/picocolors/picocolors.browser.js"(e,t){var r=String,n=function(){return{isColorSupported:!1,reset:r,bold:r,dim:r,italic:r,underline:r,inverse:r,hidden:r,strikethrough:r,black:r,red:r,green:r,yellow:r,blue:r,magenta:r,cyan:r,white:r,gray:r,bgBlack:r,bgRed:r,bgGreen:r,bgYellow:r,bgBlue:r,bgMagenta:r,bgCyan:r,bgWhite:r,blackBright:r,redBright:r,greenBright:r,yellowBright:r,blueBright:r,magentaBright:r,cyanBright:r,whiteBright:r,bgBlackBright:r,bgRedBright:r,bgGreenBright:r,bgYellowBright:r,bgBlueBright:r,bgMagentaBright:r,bgCyanBright:r,bgWhiteBright:r}};t.exports=n(),t.exports.createColors=n}}),K4=Ve({"../../node_modules/store2/dist/store2.js"(e,t){(function(r,n){var o={version:"2.14.4",areas:{},apis:{},nsdelim:".",inherit:function(i,l){for(var s in i)l.hasOwnProperty(s)||Object.defineProperty(l,s,Object.getOwnPropertyDescriptor(i,s));return l},stringify:function(i,l){return i===void 0||typeof i=="function"?i+"":JSON.stringify(i,l||o.replace)},parse:function(i,l){try{return JSON.parse(i,l||o.revive)}catch{return i}},fn:function(i,l){o.storeAPI[i]=l;for(var s in o.apis)o.apis[s][i]=l},get:function(i,l){return i.getItem(l)},set:function(i,l,s){i.setItem(l,s)},remove:function(i,l){i.removeItem(l)},key:function(i,l){return i.key(l)},length:function(i){return i.length},clear:function(i){i.clear()},Store:function(i,l,s){var u=o.inherit(o.storeAPI,function(d,f,p){return arguments.length===0?u.getAll():typeof f=="function"?u.transact(d,f,p):f!==void 0?u.set(d,f,p):typeof d=="string"||typeof d=="number"?u.get(d):typeof d=="function"?u.each(d):d?u.setAll(d,f):u.clear()});u._id=i;try{var c="__store2_test";l.setItem(c,"ok"),u._area=l,l.removeItem(c)}catch{u._area=o.storage("fake")}return u._ns=s||"",o.areas[i]||(o.areas[i]=u._area),o.apis[u._ns+u._id]||(o.apis[u._ns+u._id]=u),u},storeAPI:{area:function(i,l){var s=this[i];return(!s||!s.area)&&(s=o.Store(i,l,this._ns),this[i]||(this[i]=s)),s},namespace:function(i,l,s){if(s=s||this._delim||o.nsdelim,!i)return this._ns?this._ns.substring(0,this._ns.length-s.length):"";var u=i,c=this[u];if((!c||!c.namespace)&&(c=o.Store(this._id,this._area,this._ns+u+s),c._delim=s,this[u]||(this[u]=c),!l))for(var d in o.areas)c.area(d,o.areas[d]);return c},isFake:function(i){return i?(this._real=this._area,this._area=o.storage("fake")):i===!1&&(this._area=this._real||this._area),this._area.name==="fake"},toString:function(){return"store"+(this._ns?"."+this.namespace():"")+"["+this._id+"]"},has:function(i){return this._area.has?this._area.has(this._in(i)):this._in(i)in this._area},size:function(){return this.keys().length},each:function(i,l){for(var s=0,u=o.length(this._area);s<u;s++){var c=this._out(o.key(this._area,s));if(c!==void 0&&i.call(this,c,this.get(c),l)===!1)break;u>o.length(this._area)&&(u--,s--)}return l||this},keys:function(i){return this.each(function(l,s,u){u.push(l)},i||[])},get:function(i,l){var s=o.get(this._area,this._in(i)),u;return typeof l=="function"&&(u=l,l=null),s!==null?o.parse(s,u):l??s},getAll:function(i){return this.each(function(l,s,u){u[l]=s},i||{})},transact:function(i,l,s){var u=this.get(i,s),c=l(u);return this.set(i,c===void 0?u:c),this},set:function(i,l,s){var u=this.get(i),c;return u!=null&&s===!1?l:(typeof s=="function"&&(c=s,s=void 0),o.set(this._area,this._in(i),o.stringify(l,c),s)||u)},setAll:function(i,l){var s,u;for(var c in i)u=i[c],this.set(c,u,l)!==u&&(s=!0);return s},add:function(i,l,s){var u=this.get(i);if(u instanceof Array)l=u.concat(l);else if(u!==null){var c=typeof u;if(c===typeof l&&c==="object"){for(var d in l)u[d]=l[d];l=u}else l=u+l}return o.set(this._area,this._in(i),o.stringify(l,s)),l},remove:function(i,l){var s=this.get(i,l);return o.remove(this._area,this._in(i)),s},clear:function(){return this._ns?this.each(function(i){o.remove(this._area,this._in(i))},1):o.clear(this._area),this},clearAll:function(){var i=this._area;for(var l in o.areas)o.areas.hasOwnProperty(l)&&(this._area=o.areas[l],this.clear());return this._area=i,this},_in:function(i){return typeof i!="string"&&(i=o.stringify(i)),this._ns?this._ns+i:i},_out:function(i){return this._ns?i&&i.indexOf(this._ns)===0?i.substring(this._ns.length):void 0:i}},storage:function(i){return o.inherit(o.storageAPI,{items:{},name:i})},storageAPI:{length:0,has:function(i){return this.items.hasOwnProperty(i)},key:function(i){var l=0;for(var s in this.items)if(this.has(s)&&i===l++)return s},setItem:function(i,l){this.has(i)||this.length++,this.items[i]=l},removeItem:function(i){this.has(i)&&(delete this.items[i],this.length--)},getItem:function(i){return this.has(i)?this.items[i]:null},clear:function(){for(var i in this.items)this.removeItem(i)}}},a=o.Store("local",(function(){try{return localStorage}catch{}})());a.local=a,a._=o,a.area("session",(function(){try{return sessionStorage}catch{}})()),a.area("page",o.storage("page")),typeof n=="function"&&n.amd!==void 0?n("store2",[],function(){return a}):typeof t<"u"&&t.exports?t.exports=a:(r.store&&(o.conflict=r.store),r.store=a)})(e,e&&e.define)}});const{DOCS_PREPARED:NV,SET_STORIES:MV,SHARED_STATE_CHANGED:BV,SHARED_STATE_SET:jV,STORY_CHANGED:HV,STORY_PREPARED:UV}=__STORYBOOK_MODULE_CORE_EVENTS__;var G4=({api:e,state:t})=>h.createContext({api:e,state:t});const{logger:Ug}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Yr=(e,...t)=>{let r={};r=ni({},e,(n,o)=>{if(Array.isArray(o)&&Array.isArray(n))return o.forEach(a=>{n.find(i=>i===a||zt(i,a))||n.push(a)}),n;if(Array.isArray(n))return Ug.log(["the types mismatch, picking",n]),n});for(let n of t)r=ni(r,n,(o,a)=>{if(Array.isArray(a)&&Array.isArray(o))return a.forEach(i=>{o.find(l=>l===i||zt(l,i))||o.push(i)}),o;if(Array.isArray(o))return Ug.log(["the types mismatch, picking",o]),o});return r},W4=(e,...t)=>{let r={};r=ni({},e,(n,o)=>{if(Array.isArray(o))return o});for(let n of t)r=ni(r,n,(o,a)=>{if(Array.isArray(a))return a});return r},V4=(...e)=>e.reduce((t,r)=>Yr(t,r),{}),yc=V4;const{logger:q4}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{SET_CONFIG:zg}=__STORYBOOK_MODULE_CORE_EVENTS__,{Addon_TypesEnum:zV}=__STORYBOOK_MODULE_TYPES__,{global:zs}=__STORYBOOK_MODULE_GLOBAL__,{Channel:Y4}=__STORYBOOK_MODULE_CHANNELS__;function X4(){let e={setHandler:()=>{},send:()=>{}};return new Y4({transport:e})}var J4=class{constructor(){this.loaders={},this.elements={},this.config={},this.getChannel=()=>(this.channel||this.setChannel(X4()),this.channel),this.ready=()=>this.promise,this.hasChannel=()=>!!this.channel,this.setChannel=e=>{this.channel=e,this.resolve()},this.setConfig=e=>{Object.assign(this.config,e),this.hasChannel()?this.getChannel().emit(zg,this.config):this.ready().then(t=>{t.emit(zg,this.config)})},this.getConfig=()=>this.config,this.register=(e,t)=>{this.loaders[e]&&q4.warn(`${e} was loaded twice, this could have bad side-effects`),this.loaders[e]=t},this.loadAddons=e=>{Object.values(this.loaders).forEach(t=>t(e))},this.promise=new Promise(e=>{this.resolve=()=>e(this.getChannel())})}getElements(e){return this.elements[e]||(this.elements[e]={}),this.elements[e]}add(e,t){let{type:r}=t,n=this.getElements(r);n[e]={...t,id:e}}experimental_getRegisteredAddons(){return Object.keys(this.loaders)}},Ks="__STORYBOOK_ADDONS_MANAGER";function Z4(){return zs[Ks]||(zs[Ks]=new J4),zs[Ks]}Z4();var k1={};Ue(k1,{ensurePanel:()=>bc,init:()=>Q4});const{Addon_TypesEnum:Kg}=__STORYBOOK_MODULE_TYPES__;function bc(e,t,r){let n=Object.keys(e);return n.indexOf(t)>=0?t:n.length?n[0]:r}var Q4=({provider:e,store:t,fullAPI:r})=>{let n={getElements:o=>e.getElements(o),getSelectedPanel:()=>{let{selectedPanel:o}=t.getState();return bc(n.getElements(Kg.PANEL),o,o)},setSelectedPanel:o=>{t.setState({selectedPanel:o},{persistence:"session"})},setAddonState(o,a,i){let l=typeof a=="function"?a:()=>a;return t.setState(s=>({...s,addons:{...s.addons,[o]:l(s.addons[o])}}),i).then(()=>n.getAddonState(o))},getAddonState:o=>t.getState().addons[o]||globalThis?.STORYBOOK_ADDON_STATE[o]};return{api:n,state:{selectedPanel:bc(n.getElements(Kg.PANEL),t.getState().selectedPanel),addons:{}}}},N1={};Ue(N1,{init:()=>eF});var eF=({provider:e})=>({api:{getChannel:()=>e.channel,on:(t,r)=>(e.channel?.on(t,r),()=>e.channel?.off(t,r)),off:(t,r)=>e.channel?.off(t,r),once:(t,r)=>e.channel?.once(t,r),emit:(t,r,...n)=>{r?.options?.target&&r.options.target!=="storybook-preview-iframe"&&!r.options.target.startsWith("storybook-ref-")&&(r.options.target=r.options.target!=="storybook_internal"?`storybook-ref-${r.options.target}`:"storybook-preview-iframe"),e.channel?.emit(t,r,...n)}},state:{}}),M1={};Ue(M1,{init:()=>bF});const{logger:Gg}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{GLOBALS_UPDATED:tF,SET_GLOBALS:rF,UPDATE_GLOBALS:nF}=__STORYBOOK_MODULE_CORE_EVENTS__,{logger:oF}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var B1={};Ue(B1,{defaultStoryMapper:()=>z1,getSourceType:()=>U1,init:()=>yF});const{global:j1}=__STORYBOOK_MODULE_GLOBAL__;var H1=lt(Kn(),1),aF=(e,t)=>!Array.isArray(e)||!Array.isArray(t)||!e.length||!t.length?[]:e.reduce((r,n)=>(t.includes(n)&&r.push(n),r),[]),iF=/\s*\/\s*/,lF=({globalParameters:e,kindParameters:t,stories:r})=>xw(r,n=>({...n,parameters:BI(e,t[n.kind],n.parameters)})),sF=e=>({v:5,entries:Object.entries(e).reduce((t,[r,n])=>{if(!n)return t;let{docsOnly:o,fileName:a,...i}=n.parameters,l={title:n.kind,id:r,name:n.name,importPath:a};if(o)t[r]={type:"docs",tags:["stories-mdx"],storiesImports:[],...l};else{let{argTypes:s,args:u,initialArgs:c}=n;t[r]={type:"story",subtype:"story",...l,parameters:i,argTypes:s,args:u,initialArgs:c}}return t},{})}),uF=e=>({v:3,stories:Object.values(e.stories).reduce((t,r)=>(t[r.id]={...r,title:r.kind,name:r.name||r.story,importPath:r.parameters.fileName||""},t),{})}),cF=e=>{let t=x2(Object.values(e.stories),r=>r.title);return{v:4,entries:Object.values(e.stories).reduce((r,n)=>{let o="story";return(n.parameters?.docsOnly||n.name==="Page"&&t[n.title]===1)&&(o="docs"),r[n.id]={type:o,...o==="docs"&&{tags:["stories-mdx"],storiesImports:[]},...n},delete r[n.id].story,delete r[n.id].kind,r},{})}},dF=e=>({v:5,entries:Object.values(e.entries).reduce((t,r)=>(t[r.id]={...r,tags:r.tags?[Pl.DEV,Pl.TEST,...r.tags]:[Pl.DEV]},t),{})}),fi=(e,{provider:t,docsOptions:r,filters:n,allStatuses:o})=>{if(!e.v)throw new Error("Composition: Missing stories.json version");let a=e;a=a.v===2?uF(a):a,a=a.v===3?cF(a):a,a=a.v===4?dF(a):a,a=a;let i=Object.values(a.entries),l=Object.values(n),s=i.filter(b=>{let v=o[b.id]??{};return Object.values(v).some(({value:S})=>S==="status-value:error")||l.every(S=>S({...b,statuses:v}))?!0:i.filter(S=>"parent"in S&&S.parent===b.id).some(S=>l.every(x=>x({...S,statuses:v})))}),{sidebar:u={}}=t.getConfig(),{showRoots:c,collapsedRoots:d=[],renderLabel:f}=u,p=typeof c<"u",m=s.reduce((b,v)=>{if(r.docsMode&&v.type!=="docs")return b;let{title:S}=v,x=S.trim().split(iF),C=(!p||c)&&x.length>1?[x.shift()]:[],$=[...C,...x],w=$.reduce((T,O,D)=>{let _=D>0&&T[D-1],I=On(_?`${_}-${O}`:O);if(O.trim()==="")throw new Error(vt`Invalid title ${S} ending in slash.`);if(_===I)throw new Error(vt`
641
+ Invalid part '${O}', leading to id === parentId ('${I}'), inside title '${S}'
642
+
643
+ Did you create a path that uses the separator char accidentally, such as 'Vue <docs/>' where '/' is a separator char? See https://github.com/storybookjs/storybook/issues/6128
644
+ `);return T.push(I),T},[]);return w.forEach((T,O)=>{let D=w[O+1]||v.id;C.length&&O===0?b[T]=Yr(b[T]||{},{type:"root",id:T,name:$[O],tags:[],depth:O,renderLabel:f,startCollapsed:d.includes(T),children:[D]}):(!b[T]||b[T].type==="component")&&O===w.length-1?b[T]=Yr(b[T]||{},{type:"component",id:T,name:$[O],tags:[],parent:w[O-1],depth:O,renderLabel:f,...D&&{children:[D]}}):b[T]=Yr(b[T]||{},{type:"group",id:T,name:$[O],tags:[],parent:w[O-1],depth:O,renderLabel:f,...D&&{children:[D]}})}),b[v.id]={tags:[],...v,depth:w.length,parent:"parent"in v?v.parent:w[w.length-1],renderLabel:f,prepared:!!v.parameters},b},{});function y(b,v){if(b[v.id]||(b[v.id]=v,"children"in v&&v.children&&(v.children.forEach(S=>y(b,m[S])),v.tags=v.children.reduce((S,x)=>S===null?b[x].tags:aF(S,b[x].tags),null)||[])),v.type==="component"){let S=b[v.children[0]];S&&"importPath"in S&&(v.importPath=S.importPath)}return b}let E=Object.values(m).filter(b=>b.type!=="root"&&!b.parent).reduce((b,v)=>y(b,v),{});return E=Object.values(m).filter(b=>b.type==="root").reduce(y,E),E=Object.values(E).reduce((b,v)=>{if(v.type==="story"&&v.subtype==="test"){let S=b[v.parent],x=b[S.parent];b[x.id]={...x,children:x.children&&x.children.filter(C=>C!==v.id)},b[S.id]={...S,children:(S.children||[]).concat(v.id)},b[v.id]={...v,depth:v.depth+1}}else b[v.id]=v;return b},{}),E},Wg=(e,t)=>t?Object.fromEntries(Object.entries(e).map(([r,n])=>{let o=t[r];return n.type==="story"&&o?.type==="story"&&o.prepared?("children"in o&&delete o.children,[r,{...o,...n,prepared:!0}]):[r,n]})):e,fF=(0,H1.default)(1)(e=>Object.entries(e).reduce((t,r)=>{let n=r[1];return n.type==="component"&&t.push([...n.children]),t},[])),pF=(0,H1.default)(1)(e=>Object.keys(e).filter(t=>["story","docs"].includes(e[t].type))),{location:hF,fetch:Vg}=j1,U1=(e,t)=>{let{origin:r,pathname:n}=hF,{origin:o,pathname:a}=new URL(e),i=`${r+n}`.replace("/iframe.html","").replace(/\/$/,""),l=`${o+a}`.replace("/iframe.html","").replace(/\/$/,"");return i===l?["local",l]:t||e?["external",l]:[null,null]},z1=(e,t)=>({...t,kind:t.kind.replace("|","/")}),qg=(e,t)=>Object.entries(e).reduce((r,[n,o])=>({...r,[n]:{...o,refId:t.id}}),{});async function Yg(e){if(!e)return{};try{let t=await e;if(t===!1||t===!0)throw new Error("Unexpected boolean response");if(!t.ok)throw new Error(`Unexpected response not OK: ${t.statusText}`);let r=await t.json();return r.entries||r.stories?{storyIndex:r}:r}catch(t){return{indexError:t}}}var gF=e=>{let t=/https?:\/\/(.+:.+)@/,r=e,n,[,o]=e.match(t)||[];return o&&(r=e.replace(`${o}@`,""),n=btoa(`${o}`)),{url:r,authorization:n}},mF=(e,t,r)=>{let{storyMapper:n}=r;return n?Object.entries(e).reduce((o,[a,i])=>({...o,[a]:n(t,i)}),{}):e},yF=({store:e,provider:t,singleStory:r,docsOptions:n={}},{runCheck:o=!0}={})=>{let a={findRef:s=>{let u=a.getRefs();return Object.values(u).find(({url:c})=>c.match(s))},changeRefVersion:async(s,u)=>{let{versions:c,title:d}=a.getRefs()[s],f={id:s,url:u,versions:c,title:d,index:{},filteredIndex:{},expanded:!0};await a.setRef(s,{...f,type:"unknown"},!1),await a.checkRef(f)},changeRefState:(s,u)=>{let{[s]:c,...d}=a.getRefs();d[s]={...c,previewInitialized:u},e.setState({refs:d})},checkRef:async s=>{let{id:u,url:c,version:d,type:f}=s,p=f==="server-checked",m={},y=d?`?version=${d}`:"",E=p?"omit":"include",b=gF(c),v={Accept:"application/json"};b.authorization&&Object.assign(v,{Authorization:`Basic ${b.authorization}`});let[S,x]=await Promise.all(["index.json","stories.json"].map(async $=>Yg(Vg(`${b.url}/${$}${y}`,{headers:v,credentials:E}))));if(!S.indexError||!x.indexError){let $=await Yg(Vg(`${b.url}/metadata.json${y}`,{headers:v,credentials:E,cache:"no-cache"}).catch(()=>!1));Object.assign(m,{...S.indexError?x:S,...!$.indexError&&$})}else p||(m.indexError={message:vt`
645
+ Error: Loading of ref failed
646
+ at fetch (lib/api/src/modules/refs.ts)
647
+
648
+ URL: ${b.url}
649
+
650
+ We weren't able to load the above URL,
651
+ it's possible a CORS error happened.
652
+
653
+ Please check your dev-tools network tab.
654
+ `});let C=s.versions&&Object.keys(s.versions).length?s.versions:m.versions;await a.setRef(u,{id:u,url:b.url,...m,...C?{versions:C}:{},type:m.storyIndex?"lazy":"auto-inject"})},getRefs:()=>{let{refs:s={}}=e.getState();return s},setRef:async(s,{storyIndex:u,setStoriesData:c,...d},f=!1)=>{if(r)return;let p,m,y,{filters:E}=e.getState(),{storyMapper:b=z1}=t.getConfig(),v=a.getRefs()[s];(u||c)&&(p=c?sF(mF(c,v,{storyMapper:b})):u,y=fi(u,{provider:t,docsOptions:n,filters:E,allStatuses:{}}),m=fi(u,{provider:t,docsOptions:n,filters:{},allStatuses:{}})),m&&(m=qg(m,v)),y&&(y=qg(y,v)),await a.updateRef(s,{...v,...d,index:m,filteredIndex:y,internal_index:p})},updateRef:async(s,u)=>{let{[s]:c,...d}=a.getRefs();d[s]={...c,...u};let f=Object.keys(l).reduce((p,m)=>(p[m]=d[m],p),{});await e.setState({refs:f})}},i=!r&&j1.REFS||{},l=i;return o&&new Promise(async s=>{for(let u of Object.values(i))await a.checkRef({...u,stories:{}});s(void 0)}),{api:a,state:{refs:l}}},ct=(e,t)=>{let{source:r,refId:n,type:o}=e,[a,i]=U1(r,n),l;(n||a==="external")&&(l=n&&t.getRefs()[n]?t.getRefs()[n]:t.findRef(i));let s={source:r,sourceType:a,sourceLocation:i,refId:n,ref:l,type:o};switch(!0){case typeof n=="string":case a==="local":case a==="external":return s;default:return oF.warn(`Received a ${o} frame that was not configured as a ref`),null}},bF=({store:e,fullAPI:t,provider:r})=>{let n={getGlobals(){return e.getState().globals},getUserGlobals(){return e.getState().userGlobals},getStoryGlobals(){return e.getState().storyGlobals},getGlobalTypes(){return e.getState().globalTypes},updateGlobals(i){r.channel?.emit(nF,{globals:i,options:{target:"storybook-preview-iframe"}})}},o={globals:{},userGlobals:{},storyGlobals:{},globalTypes:{}},a=({globals:i,storyGlobals:l,userGlobals:s})=>{let{globals:u,userGlobals:c,storyGlobals:d}=e.getState();Wt(i,u)||e.setState({globals:i}),Wt(s,c)||e.setState({userGlobals:s}),Wt(l,d)||e.setState({storyGlobals:l})};return r.channel?.on(tF,function({globals:i,storyGlobals:l,userGlobals:s}){let{ref:u}=ct(this,t);u?Gg.warn("received a GLOBALS_UPDATED from a non-local ref. This is not currently supported."):a({globals:i,storyGlobals:l,userGlobals:s})}),r.channel?.on(rF,function({globals:i,globalTypes:l}){let{ref:s}=ct(this,t),u=e.getState()?.globals;s?Object.keys(i).length>0&&Gg.warn("received globals from a non-local ref. This is not currently supported."):e.setState({globals:i,userGlobals:i,globalTypes:l}),u&&Object.keys(u).length!==0&&!Wt(i,u)&&n.updateGlobals(u)}),{api:n,state:o}},rf={};Ue(rf,{ActiveTabs:()=>K1,defaultLayoutState:()=>dt,focusableUIElements:()=>qa,init:()=>SF});const{SET_CONFIG:EF}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:vF}=__STORYBOOK_MODULE_GLOBAL__;var{document:Xg}=vF,Gs=e=>typeof e=="function",K1={SIDEBAR:"sidebar",CANVAS:"canvas",ADDONS:"addons"},dt={ui:{enableShortcuts:!0},layout:{initialActive:K1.CANVAS,showToolbar:!0,navSize:300,bottomPanelHeight:300,rightPanelWidth:400,recentVisibleSizes:{navSize:300,bottomPanelHeight:300,rightPanelWidth:400},panelPosition:"bottom",showTabs:!0},layoutCustomisations:{showSidebar:void 0,showToolbar:void 0},selectedPanel:void 0,theme:mb()},qa={storySearchField:"storybook-explorer-searchfield",storyListMenu:"storybook-explorer-menu",storyPanelRoot:"storybook-panel-root"},Ec=e=>e.layout.navSize>0,vc=e=>{let{bottomPanelHeight:t,rightPanelWidth:r,panelPosition:n}=e.layout;return n==="bottom"&&t>0||n==="right"&&r>0},Jg=e=>!Ec(e)&&!vc(e),xa=e=>({navSize:e.navSize>0?e.navSize:e.recentVisibleSizes.navSize,bottomPanelHeight:e.bottomPanelHeight>0?e.bottomPanelHeight:e.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:e.rightPanelWidth>0?e.rightPanelWidth:e.recentVisibleSizes.rightPanelWidth}),SF=({store:e,provider:t,singleStory:r})=>{let n={toggleFullscreen(a){return e.setState(i=>{let l=Jg(i),s=typeof a=="boolean"?a:!l;return s===l?{layout:i.layout}:s?{layout:{...i.layout,navSize:0,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:xa(i.layout)}}:{layout:{...i.layout,navSize:i.singleStory?0:i.layout.recentVisibleSizes.navSize,bottomPanelHeight:i.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:i.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:"session"})},togglePanel(a){return e.setState(i=>{let l=vc(i),s=typeof a=="boolean"?a:!l;return s===l?{layout:i.layout}:s?{layout:{...i.layout,bottomPanelHeight:i.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:i.layout.recentVisibleSizes.rightPanelWidth}}:{layout:{...i.layout,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:xa(i.layout)}}},{persistence:"session"})},togglePanelPosition(a){return e.setState(i=>{let l=a||(i.layout.panelPosition==="right"?"bottom":"right");return{layout:{...i.layout,panelPosition:l,bottomPanelHeight:i.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:i.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:"permanent"})},toggleNav(a){return e.setState(i=>{if(i.singleStory)return{layout:i.layout};let l=Ec(i),s=typeof a=="boolean"?a:!l;return s===l?{layout:i.layout}:s?{layout:{...i.layout,navSize:i.layout.recentVisibleSizes.navSize}}:{layout:{...i.layout,navSize:0,recentVisibleSizes:xa(i.layout)}}},{persistence:"session"})},toggleToolbar(a){return e.setState(i=>{let l=typeof a<"u"?a:!i.layout.showToolbar;return{layout:{...i.layout,showToolbar:l}}},{persistence:"session"})},setSizes({navSize:a,bottomPanelHeight:i,rightPanelWidth:l}){return e.setState(s=>{let u={...s.layout,navSize:a??s.layout.navSize,bottomPanelHeight:i??s.layout.bottomPanelHeight,rightPanelWidth:l??s.layout.rightPanelWidth};return{layout:{...u,recentVisibleSizes:xa(u)}}},{persistence:"session"})},focusOnUIElement(a,i){if(!a)return;let l=Date.now(),s=500,u=50,c=()=>{let f=Xg.getElementById(a);return!f||(f.focus(),f!==Xg.activeElement)?!1:(i&&f.select?.(),!0)};if(c())return;let d=setInterval(()=>{if(Date.now()-l>=s){clearInterval(d);return}c()&&clearInterval(d)},u)},getInitialOptions(){let{theme:a,selectedPanel:i,layoutCustomisations:l,...s}=t.getConfig();return{...dt,layout:{...Rl(dt.layout,oo(s,Object.keys(dt.layout))),...r&&{navSize:0}},layoutCustomisations:{...dt.layoutCustomisations,...l??{}},ui:Rl(dt.ui,oo(s,Object.keys(dt.ui))),selectedPanel:i||dt.selectedPanel,theme:a||dt.theme}},getIsFullscreen(){return Jg(e.getState())},getIsPanelShown(){return vc(e.getState())},getIsNavShown(){return Ec(e.getState())},getShowToolbarWithCustomisations(a){let i=e.getState();return Gs(i.layoutCustomisations.showToolbar)?i.layoutCustomisations.showToolbar(i,a)??a:a},getShowPanelWithCustomisations(a){let i=e.getState();return Gs(i.layoutCustomisations.showPanel)?i.layoutCustomisations.showPanel(i,a)??a:a},getNavSizeWithCustomisations(a){let i=e.getState();if(Gs(i.layoutCustomisations.showSidebar)){let l=i.layoutCustomisations.showSidebar(i,a!==0);if(a===0&&l===!0)return i.layout.recentVisibleSizes.navSize;if(a!==0&&l===!1)return 0}return a},setOptions:a=>{let{layout:i,ui:l,selectedPanel:s,theme:u}=e.getState();if(!a)return;let c={...i,...a.layout||{},...oo(a,Object.keys(i)),...r&&{navSize:0}},d={...l,...a.ui,...Rl(a.ui||{},oo(a,Object.keys(l)))},f={...u,...a.theme},p={};zt(l,d)||(p.ui=d),zt(i,c)||(p.layout=c),a.selectedPanel&&!zt(s,a.selectedPanel)&&(p.selectedPanel=a.selectedPanel),Object.keys(p).length&&e.setState(p,{persistence:"permanent"}),zt(u,f)||e.setState({theme:f})}},o=oo(e.getState(),["layout","selectedPanel"]);return t.channel?.on(EF,()=>{n.setOptions(Yr(n.getInitialOptions(),o))}),{api:n,state:Yr(n.getInitialOptions(),o)}},G1={};Ue(G1,{init:()=>xF});var xF=({store:e})=>({api:{addNotification:t=>{e.setState(({notifications:r})=>{let[n,o]=Gh(r,a=>a.id===t.id);return n.forEach(a=>{a.onClear&&a.onClear({dismissed:!1,timeout:!1})}),{notifications:[...o,t]}})},clearNotification:t=>{e.setState(({notifications:r})=>{let[n,o]=Gh(r,a=>a.id===t);return n.forEach(a=>{a.onClear&&a.onClear({dismissed:!1,timeout:!1})}),{notifications:o}})}},state:{notifications:[]}}),W1={};Ue(W1,{init:()=>wF});const{OPEN_IN_EDITOR_REQUEST:$F,OPEN_IN_EDITOR_RESPONSE:Ws}=__STORYBOOK_MODULE_CORE_EVENTS__;var wF=({provider:e,fullAPI:t})=>({api:{openInEditor(r){return new Promise(n=>{let{file:o,line:a,column:i}=r,l=s=>{s.file===o&&s.line===a&&s.column===i&&(e.channel?.off(Ws,l),n(s))};e.channel?.on(Ws,l),e.channel?.emit($F,r)})}},state:{notifications:[]},init:async()=>{let{color:r}=await $r(async()=>{const{color:n}=await Promise.resolve().then(()=>pD);return{color:n}},void 0,import.meta.url);e.channel?.on(Ws,n=>{n.error!==null&&t.addNotification({id:"open-in-editor-error",content:{headline:"Failed to open in editor",subHeadline:n.error||"Check the Storybook process on the command line for more details."},icon:g.createElement(i5,{color:r.negative}),duration:8e3})})}}),V1={};Ue(V1,{init:()=>CF});var CF=({provider:e,fullAPI:t})=>({api:e.renderPreview?{renderPreview:e.renderPreview}:{},state:{},init:()=>{e.handleAPI(t)}}),q1={};Ue(q1,{init:()=>_F});var _F=({store:e,navigate:t,fullAPI:r})=>({state:{settings:{lastTrackedStoryId:null}},api:{closeSettings:()=>{let{settings:{lastTrackedStoryId:n}}=e.getState();n?r.selectStory(n):r.selectFirstStory()},changeSettingsTab:n=>{t(`/settings/${n}`)},isSettingsScreenActive:()=>{let{path:n}=r.getUrlState();return!!(n||"").match(/^\/settings/)},retrieveSelection(){let{settings:n}=e.getState();return n.lastTrackedStoryId},storeSelection:async()=>{let{storyId:n,settings:o}=e.getState();await e.setState({settings:{...o,lastTrackedStoryId:n}})}}}),Y1={};Ue(Y1,{controlOrMetaKey:()=>gn,defaultShortcuts:()=>mn,init:()=>HF,isMacLike:()=>J1,keys:()=>Sc});var TF=lt(U4(),1);const{FORCE_REMOUNT:AF,PREVIEW_KEYDOWN:OF,STORIES_COLLAPSE_ALL:RF,STORIES_EXPAND_ALL:DF}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:X1}=__STORYBOOK_MODULE_GLOBAL__,{global:PF}=__STORYBOOK_MODULE_GLOBAL__;var{navigator:Vs}=PF,FF=()=>Vs&&Vs.platform?!!Vs.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,IF=()=>FF()?"⌥":"alt",LF=e=>{if(["Meta","Alt","Control","Shift","Tab"].includes(e.key))return null;let t=[];e.altKey&&t.push("alt"),e.ctrlKey&&t.push("control"),e.metaKey&&t.push("meta"),e.shiftKey&&t.push("shift");let r=e.code?.toUpperCase(),n={MINUS:"-",EQUAL:"=",BRACKETLEFT:"[",BRACKETRIGHT:"]",BACKSLASH:"\\",SEMICOLON:";",QUOTE:"'",BACKQUOTE:"`",COMMA:",",PERIOD:".",SLASH:"/"},o=r?r.startsWith("KEY")&&r.length===4?r.replace("KEY",""):r.startsWith("DIGIT")?r.replace("DIGIT",""):n[r]:void 0;if(e.key&&e.key.length===1&&e.key!==" "){let a=e.key.toUpperCase(),i=o;i&&i.length===1&&i!==a?t.push([a,i]):t.push(a)}else e.key==="Dead"&&o&&t.push(o);return e.key===" "&&t.push("space"),e.key==="Escape"&&t.push("escape"),e.key==="ArrowRight"&&t.push("ArrowRight"),e.key==="ArrowDown"&&t.push("ArrowDown"),e.key==="ArrowUp"&&t.push("ArrowUp"),e.key==="ArrowLeft"&&t.push("ArrowLeft"),t.length>0?t:null},kF=(e,t)=>!e||!t||(e.join("").startsWith("shift/")&&e.shift(),e.length!==t.length)?!1:!e.find((r,n)=>Array.isArray(r)?!r.includes(t[n]):r!==t[n]),NF=e=>e==="alt"?IF():e==="control"?"⌃":e==="meta"?"⌘":e==="shift"?"⇧​":e==="Enter"||e==="Backspace"||e==="Esc"||e==="escape"?"":e===" "?"SPACE":e==="ArrowUp"?"↑":e==="ArrowDown"?"↓":e==="ArrowLeft"?"←":e==="ArrowRight"?"→":e?.toUpperCase(),MF=e=>e.map(NF).join(" "),BF=e=>e.map(t=>t==="+"?"plus":t===" "?"space":t).join("+"),{navigator:qs,document:Zg}=X1,J1=()=>qs&&qs.platform?!!qs.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,gn=()=>J1()?"meta":"control";function Sc(e){return Object.keys(e)}var mn=Object.freeze({fullScreen:["alt","F"],togglePanel:["alt","A"],panelPosition:["alt","D"],toggleNav:["alt","S"],toolbar:["alt","T"],search:[gn(),"K"],focusNav:["1"],focusIframe:["2"],focusPanel:["3"],prevComponent:["alt","ArrowUp"],nextComponent:["alt","ArrowDown"],prevStory:["alt","ArrowLeft"],nextStory:["alt","ArrowRight"],shortcutsPage:[gn(),"shift",","],aboutPage:[gn(),","],escape:["escape"],collapseAll:[gn(),"shift","ArrowUp"],expandAll:[gn(),"shift","ArrowDown"],remount:["alt","R"],openInEditor:["alt","shift","E"],openInIsolation:["alt","shift","I"],copyStoryLink:["alt","shift","L"],goToPreviousLandmark:["shift","F6"],goToNextLandmark:["F6"]}),Ys={};function jF(e){let t=e.target;return!!(/input|textarea/i.test(t.tagName)||t.getAttribute("contenteditable")!==null||t.closest("dialog[open]"))}var HF=({store:e,fullAPI:t,provider:r})=>{let n={getShortcutKeys(){return e.getState().shortcuts},getDefaultShortcuts(){return{...mn,...n.getAddonsShortcutDefaults()}},getAddonsShortcuts(){return Ys},getAddonsShortcutLabels(){let i={};return Object.entries(n.getAddonsShortcuts()).forEach(([l,{label:s}])=>{i[l]=s}),i},getAddonsShortcutDefaults(){let i={};return Object.entries(n.getAddonsShortcuts()).forEach(([l,{defaultShortcut:s}])=>{i[l]=s}),i},async setShortcuts(i){let{shortcuts:l}=await e.setState(s=>({shortcuts:typeof i=="function"?i(s.shortcuts):i}),{persistence:"permanent"});return l},async restoreAllDefaultShortcuts(){return n.setShortcuts(n.getDefaultShortcuts())},async setShortcut(i,l){return await n.setShortcuts(s=>({...s,[i]:l})),l},async setAddonShortcut(i,l){return await n.setShortcuts(s=>({...s,[`${i}-${l.actionName}`]:l.defaultShortcut})),Ys[`${i}-${l.actionName}`]=l,l},async restoreDefaultShortcut(i){let l=n.getDefaultShortcuts()[i];return n.setShortcut(i,l)},handleKeydownEvent(i){let l=LF(i),s=n.getShortcutKeys(),u=Sc(s).find(c=>kF(l,s[c]));u&&n.handleShortcutFeature(u,i)},handleShortcutFeature(i,l){let{ui:{enableShortcuts:s},storyId:u,refId:c,viewMode:d}=e.getState();if(s)switch(l?.preventDefault&&l.preventDefault(),i){case"escape":{t.getIsFullscreen()?t.toggleFullscreen(!1):t.getIsNavShown()&&t.toggleNav(!0);break}case"goToNextLandmark":case"goToPreviousLandmark":break;case"focusNav":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsNavShown()||t.toggleNav(!0),t.focusOnUIElement(qa.storyListMenu);break}case"search":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsNavShown()||t.toggleNav(!0),setTimeout(()=>{t.focusOnUIElement(qa.storySearchField,!0)},0);break}case"focusIframe":{let f=Zg.getElementById("storybook-preview-iframe");if(f)try{f.contentWindow.focus()}catch{}break}case"focusPanel":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsPanelShown()||t.togglePanel(!0),t.focusOnUIElement(qa.storyPanelRoot);break}case"nextStory":{t.jumpToStory(1);break}case"prevStory":{t.jumpToStory(-1);break}case"nextComponent":{t.jumpToComponent(1);break}case"prevComponent":{t.jumpToComponent(-1);break}case"fullScreen":{t.toggleFullscreen();break}case"togglePanel":{t.togglePanel();break}case"toggleNav":{t.toggleNav();break}case"toolbar":{t.toggleToolbar();break}case"panelPosition":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsPanelShown()||t.togglePanel(!0),t.togglePanelPosition();break}case"aboutPage":{t.navigate("/settings/about");break}case"shortcutsPage":{t.navigate("/settings/shortcuts");break}case"collapseAll":{t.emit(RF);break}case"expandAll":{t.emit(DF);break}case"remount":{t.emit(AF,{storyId:u});break}case"openInEditor":{X1.CONFIG_TYPE==="DEVELOPMENT"&&t.openInEditor({file:t.getCurrentStoryData().importPath});break}case"openInIsolation":{if(u&&d==="story"){let{previewHref:f}=t.getStoryHrefs(u,{refId:c});window.open(f,"_blank","noopener,noreferrer")}break}case"copyStoryLink":{if(u){let{managerHref:f}=t.getStoryHrefs(u,{refId:c});(0,TF.default)(f)}break}default:Ys[i].action();break}}},{shortcuts:o=mn}=e.getState(),a={shortcuts:Sc(mn).reduce((i,l)=>({...i,[l]:o[l]||mn[l]}),mn)};return{api:n,state:a,init:()=>{Zg.addEventListener("keydown",i=>{jF(i)||n.handleKeydownEvent(i)}),r.channel?.on(OF,i=>{n.handleKeydownEvent(i.event)})}}},Z1={};Ue(Z1,{init:()=>gI});const{logger:UF}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{CONFIG_ERROR:zF,CURRENT_STORY_WAS_SET:KF,DOCS_PREPARED:GF,PRELOAD_ENTRIES:WF,RESET_STORY_ARGS:VF,SELECT_STORY:qF,SET_CONFIG:YF,SET_CURRENT_STORY:XF,SET_FILTER:JF,SET_INDEX:ZF,SET_STORIES:QF,STORY_ARGS_UPDATED:eI,STORY_CHANGED:tI,STORY_INDEX_INVALIDATED:rI,STORY_MISSING:nI,STORY_PREPARED:oI,STORY_SPECIFIED:aI,UPDATE_STORY_ARGS:iI}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:lI}=__STORYBOOK_MODULE_GLOBAL__;lt(z4(),1);var sI=class extends zd{constructor(e){super({name:"StatusTypeIdMismatchError",category:"CORE-SERVER",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}},uI={id:"storybook/status",leader:!0,initialState:{}},Xs={SELECT:"select"};function cI({universalStatusStore:e,useUniversalStore:t,environment:r}){let n={getAll(){return e.getState()},set(a){e.setState(i=>{let l={...i};for(let s of a){let{storyId:u,typeId:c}=s;l[u]={...l[u]??{},[c]:s}}return l})},onAllStatusChange(a){return e.onStateChange((i,l)=>{a(i,l)})},onSelect(a){return e.subscribe(Xs.SELECT,i=>{a(i.payload)})},selectStatuses:a=>{e.send({type:Xs.SELECT,payload:a})},unset(a){if(!a){e.setState({});return}e.setState(i=>{let l={...i};for(let s of a)delete l[s];return l})},typeId:void 0},o=a=>({getAll:n.getAll,set(i){e.setState(l=>{let s={...l};for(let u of i){let{storyId:c}=u;if(u.typeId!==a)switch(r){case"server":throw new sI({status:u,typeId:a});case"manager":throw new v2({status:u,typeId:a});default:throw new S2({status:u,typeId:a})}s[c]={...s[c]??{},[a]:u}}return s})},onAllStatusChange:n.onAllStatusChange,onSelect(i){return e.subscribe(Xs.SELECT,l=>{l.payload.some(s=>s.typeId===a)&&i(l.payload)})},unset(i){e.setState(l=>{let s={...l};for(let u in s)if(s[u]?.[a]&&(!i||i?.includes(u))){let{[a]:c,...d}=s[u];s[u]=d}return s})},typeId:a});return t?{getStatusStoreByTypeId:o,fullStatusStore:n,universalStatusStore:e,useStatusStore:a=>t(e,a)[0]}:{getStatusStoreByTypeId:o,fullStatusStore:n,universalStatusStore:e}}var Q1=(e,t)=>{let r=h.useRef(t?t(e.getState()):e.getState()),n=h.useCallback(a=>e.onStateChange((i,l)=>{if(!t){r.current=i,a();return}let s=t(i),u=t(l);!zt(s,u)&&(r.current=s,a())}),[e,t]),o=h.useCallback(()=>{let a=e.getState(),i=t?t(a):a;return zt(i,r.current)||(r.current=i),r.current},[e,t]);return[h.useSyncExternalStore(n,o),e.setState]},dI=cI({universalStatusStore:Pd.create({...uI,leader:globalThis.CONFIG_TYPE==="PRODUCTION"}),useUniversalStore:Q1,environment:"manager"}),{fullStatusStore:Qg}=dI,{fetch:fI}=lI,pI="./index.json",hI=["enableShortcuts","theme","showRoots"];function Js(e){if(!e||typeof e=="string")return e;let t={...e};return hI.forEach(r=>{r in t&&delete t[r]}),t}var gI=({fullAPI:e,store:t,navigate:r,provider:n,storyId:o,viewMode:a,docsOptions:i={}})=>{let l={storyId:ya,getData:(u,c)=>{let d=l.resolveStory(u,c);if(d?.type==="story"||d?.type==="docs")return d},isPrepared:(u,c)=>{let d=l.getData(u,c);return d?d.type==="story"?d.prepared:!0:!1},resolveStory:(u,c)=>{let{refs:d,index:f}=t.getState();if(!(c&&!d[c]))return c?d?.[c]?.index?.[u]??void 0:f?f[u]:void 0},getCurrentStoryData:()=>{let{storyId:u,refId:c}=t.getState();return l.getData(u,c)},getIndex:()=>{let{internal_index:u}=t.getState();return u},getParameters:(u,c)=>{let{storyId:d,refId:f}=typeof u=="string"?{storyId:u,refId:void 0}:u,p=l.getData(d,f);if(["story","docs"].includes(p?.type)){let{parameters:m}=p;if(m)return c?m[c]:m}return null},getCurrentParameter:u=>{let{storyId:c,refId:d}=t.getState();return l.getParameters({storyId:c,refId:d},u)||void 0},jumpToComponent:u=>{let{filteredIndex:c,storyId:d,refs:f,refId:p}=t.getState();if(!l.getData(d,p))return;let m=p?f[p].filteredIndex||{}:c;if(!m)return;let y=l.findSiblingStoryId(d,m,u,!0);y&&l.selectStory(y,void 0,{ref:p})},jumpToStory:u=>{let{filteredIndex:c,storyId:d,refs:f,refId:p}=t.getState(),m=l.getData(d,p);if(!m)return;let y=m.refId?f[m.refId].filteredIndex:c;if(!y)return;let E=l.findSiblingStoryId(d,y,u,!1);E&&l.selectStory(E,void 0,{ref:p})},selectFirstStory:()=>{let{index:u}=t.getState();if(!u)return;let c=Object.keys(u).find(d=>u[d].type==="story");if(c){l.selectStory(c);return}r("/")},selectStory:(u=void 0,c=void 0,d={})=>{let{ref:f}=d,{storyId:p,index:m,filteredIndex:y,refs:E,settings:b}=t.getState(),v=$=>$?.type==="docs"||$?.type==="story"?(t.setState({settings:{...b,lastTrackedStoryId:$.id}}),r(`/${$.type}/${$.refId?`${$.refId}_${$.id}`:$.id}`),!0):!1,S=p?.split("--",2)[0],x=f?E[f].index:m,C=f?E[f].filteredIndex:y;if(!(!x||!C))if(c)if(!u)v(x[ya(S,c)]);else{let $=f?`${f}_${ya(u,c)}`:ya(u,c);if(x[$])v(x[$]);else{let w=x[On(u)];if(w?.type==="component"){let T=w.children.find(O=>x[O].name===c);v(T?x[T]:void 0)}}}else{let $=u?x[u]||x[On(u)]:x[S];if(!$)throw new Error(`Unknown id or title: '${u}'`);v($)||v(l.findLeafEntry(C,$.id))}},findLeafEntry(u,c){let d=u[c];if(d.type==="docs"||d.type==="story")return d;let f=d.children.find(p=>u[p])||d.children[0];return l.findLeafEntry(u,f)},findLeafStoryId(u,c){return l.findLeafEntry(u,c)?.id},findAllLeafStoryIds(u){let{index:c}=t.getState();if(!c)return[];let d=(f,p=[])=>{let m=c[f];return m&&(m.type==="story"&&p.push(m.id),"children"in m&&m.children?.forEach(y=>d(y,p))),p};return d(u,[])},findSiblingStoryId(u,c,d,f){if(f){let y=fF(c),E=y.findIndex(b=>b.includes(u));return E===y.length-1&&d>0||E===0&&d<0?void 0:y[E+d]?y[E+d][0]:void 0}let p=pF(c),m=p.indexOf(u);if(!(m===p.length-1&&d>0)&&!(m===0&&d<0))return p[m+d]},updateStoryArgs:(u,c)=>{let{id:d,refId:f}=u;n.channel?.emit(iI,{storyId:d,updatedArgs:c,options:{target:f}})},resetStoryArgs:(u,c)=>{let{id:d,refId:f}=u;n.channel?.emit(VF,{storyId:d,argNames:c,options:{target:f}})},fetchIndex:async()=>{try{let u=await fI(pI);if(u.status!==200)throw new Error(await u.text());let c=await u.json();if(c.v<3){UF.warn(`Skipping story index with version v${c.v}, awaiting SET_STORIES.`);return}await l.setIndex(c)}catch(u){await t.setState({indexError:u})}},setIndex:async u=>{let{filteredIndex:c,index:d,filters:f}=t.getState(),p=Qg.getAll(),m=fi(u,{provider:n,docsOptions:i,filters:f,allStatuses:p}),y=fi(u,{provider:n,docsOptions:i,filters:{},allStatuses:p});await t.setState({internal_index:u,filteredIndex:Wg(m,c),index:Wg(y,d),indexError:void 0})},updateStory:async(u,c,d)=>{if(d){let{id:f,index:p,filteredIndex:m}=d;p&&p[u]&&(p[u]={...p[u],...c}),m&&m[u]&&(m[u]={...m[u],...c}),await e.updateRef(f,{index:p,filteredIndex:m})}else{let{index:f,filteredIndex:p}=t.getState();f&&f[u]&&(f[u]={...f[u],...c}),p&&p[u]&&(p[u]={...p[u],...c}),(f||p)&&await t.setState({index:f,filteredIndex:p})}},updateDocs:async(u,c,d)=>{if(d){let{id:f,index:p,filteredIndex:m}=d;p[u]={...p[u],...c},m[u]={...m[u],...c},await e.updateRef(f,{index:p,filteredIndex:m})}else{let{index:f,filteredIndex:p}=t.getState();f&&(f[u]={...f[u],...c}),p&&(p[u]={...p[u],...c}),(f||p)&&await t.setState({index:f,filteredIndex:p})}},setPreviewInitialized:async u=>{u?e.updateRef(u.id,{previewInitialized:!0}):t.setState({previewInitialized:!0})},experimental_setFilter:async(u,c)=>{await t.setState({filters:{...t.getState().filters,[u]:c}});let{internal_index:d}=t.getState();if(!d)return;await l.setIndex(d);let f=await e.getRefs();Object.entries(f).forEach(([p,{internal_index:m,...y}])=>{e.setRef(p,{...y,storyIndex:m},!0)}),n.channel?.emit(JF,{id:u})}};n.channel?.on(aI,function({storyId:u,viewMode:c}){let{sourceType:d}=ct(this,e);if(d==="local"){let f=t.getState(),p=f.path==="/"||f.viewMode==="story"||f.viewMode==="docs",m=f.viewMode&&f.storyId,y=f.viewMode!==c||f.storyId!==u,{type:E}=f.index?.[f.storyId]||{};p&&(m&&y&&!(E==="root"||E==="component"||E==="group")?n.channel?.emit(XF,{storyId:f.storyId,viewMode:f.viewMode}):y&&r(`/${c}/${u}`))}}),n.channel?.on(KF,function(){let{ref:u}=ct(this,e);l.setPreviewInitialized(u)}),n.channel?.on(tI,function(){let{sourceType:u}=ct(this,e);if(u==="local"){let c=l.getCurrentParameter("options");c&&e.setOptions(Js(c))}}),n.channel?.on(oI,function({id:u,...c}){let{ref:d,sourceType:f}=ct(this,e);if(l.updateStory(u,{...c,prepared:!0},d),!d&&!t.getState().hasCalledSetOptions){let{options:p}=c.parameters;e.setOptions(Js(p)),t.setState({hasCalledSetOptions:!0})}if(f==="local"){let{storyId:p,index:m,refId:y}=t.getState();if(!m)return;let E=Array.from(new Set([l.findSiblingStoryId(p,m,1,!0),l.findSiblingStoryId(p,m,-1,!0)])).filter(Boolean);n.channel?.emit(WF,{ids:E,options:{target:y}})}}),n.channel?.on(GF,function({id:u,...c}){let{ref:d}=ct(this,e);l.updateStory(u,{...c,prepared:!0},d)}),n.channel?.on(ZF,function(u){let{ref:c}=ct(this,e);if(c)e.setRef(c.id,{...c,storyIndex:u},!0);else{l.setIndex(u);let d=l.getCurrentParameter("options");e.setOptions(Js(d))}}),n.channel?.on(QF,function(u){let{ref:c}=ct(this,e),d=u.v?lF(u):u.stories;if(c)e.setRef(c.id,{...c,setStoriesData:d},!0);else throw new Error("Cannot call SET_STORIES for local frame")}),n.channel?.on(qF,function({kind:u,title:c=u,story:d,name:f=d,storyId:p,...m}){let{ref:y}=ct(this,e);y?e.selectStory(p||c,f,{...m,ref:y.id}):e.selectStory(p||c,f,m)}),n.channel?.on(eI,function({storyId:u,args:c}){let{ref:d}=ct(this,e);l.updateStory(u,{args:c},d)}),n.channel?.on(zF,function(u){let{ref:c}=ct(this,e);l.setPreviewInitialized(c)}),n.channel?.on(nI,function(u){let{ref:c}=ct(this,e);l.setPreviewInitialized(c)}),n.channel?.on(YF,()=>{let u=n.getConfig();u?.sidebar?.filters&&t.setState({filters:{...t.getState().filters,...u?.sidebar?.filters}})}),Qg.onAllStatusChange(async()=>{let{internal_index:u}=t.getState();if(!u)return;await l.setIndex(u);let c=await e.getRefs();Object.entries(c).forEach(([d,{internal_index:f,...p}])=>{e.setRef(d,{...p,storyIndex:f},!0)})});let s=n.getConfig();return{api:l,state:{storyId:o,viewMode:a,hasCalledSetOptions:!1,previewInitialized:!1,filters:s?.sidebar?.filters||{}},init:async()=>{n.channel?.on(rI,()=>l.fetchIndex()),await l.fetchIndex()}}},eE={};Ue(eE,{init:()=>xI});const{GLOBALS_UPDATED:mI,NAVIGATE_URL:yI,SET_CURRENT_STORY:bI,STORY_ARGS_UPDATED:EI,UPDATE_QUERY_PARAMS:vI}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:fn}=__STORYBOOK_MODULE_GLOBAL__;var em=lt(yy(),1),Pr=e=>{if(e==="true"||e==="1")return!0;if(e==="false"||e==="0")return!1},tm=e=>Object.fromEntries(e.split(";").map(t=>t.split(":")).map(([t,r])=>[t,encodeURIComponent(r)]).filter(([t,r])=>t&&r)),rm=(e,t)=>{let r=tm(e),n=tm(t);return Object.entries({...r,...n}).map(([o,a])=>`${o}:${a}`).join(";")},Zs,SI=({state:{location:e,path:t,viewMode:r,storyId:n},singleStory:o})=>{let{full:a,panel:i,nav:l,shortcuts:s,addonPanel:u,tabs:c,path:d,...f}=O2(e),p,m,y;Pr(a)===!0?(p=0,m=0,y=0):Pr(a)===!1&&(p=dt.layout.navSize,m=dt.layout.bottomPanelHeight,y=dt.layout.rightPanelWidth),o||(Pr(l)===!0&&(p=dt.layout.navSize),Pr(l)===!1&&(p=0)),Pr(i)===!1&&(m=0,y=0);let E={navSize:p,bottomPanelHeight:m,rightPanelWidth:y,panelPosition:["right","bottom"].includes(i)?i:void 0,showTabs:Pr(c)},b={enableShortcuts:Pr(s)},v=u||void 0,S=n,x=Wt(Zs,f)?Zs:f;return Zs=x,{viewMode:r,layout:E,ui:b,selectedPanel:v,location:e,path:t,customQueryParams:x,storyId:S}},xI=e=>{let{store:t,navigate:r,provider:n,fullAPI:o}=e,a=(u,c={},d={})=>{let f=Object.entries(c).filter(([,m])=>m).sort(([m],[y])=>m<y?-1:1).map(([m,y])=>`${m}=${y}`),p=[u,...f].join("&");return r(p,d)},i={getStoryHrefs(u,c={}){let{id:d,refId:f}=o.getCurrentStoryData()??{},p=u===d&&c.refId===f,{customQueryParams:m,location:y,refs:E}=t.getState(),{base:b,inheritArgs:v=p,inheritGlobals:S=!0,queryParams:x={},refId:C,viewMode:$="story"}=c;if(C&&!E[C])throw new Error(`Invalid refId: ${C}`);let w=fn.window.location.origin+y.pathname,T=fn.STORYBOOK_NETWORK_ADDRESS??w,O=b==="origin"?w:b==="network"?T:y.pathname,D=C?E[C].url+"/iframe.html":fn.PREVIEW_URL||`${O}iframe.html`,_=C?`&refId=${encodeURIComponent(C)}`:"",{args:I="",globals:L="",...A}=x,P=v?rm(m?.args??"",I):I,k=S?rm(m?.globals??"",L):L,F=(0,em.stringify)(A,{nesting:!0,nestingSyntax:"js"}),M=(0,em.stringify)($w(A,["id","viewMode"]),{nesting:!0,nestingSyntax:"js"});return P=P&&`&args=${P}`,k=k&&`&globals=${k}`,F=F&&`&${F}`,M=M&&`&${M}`,{managerHref:`${O}?path=/${$}/${C?`${C}_`:""}${u}${P}${k}${F}`,previewHref:`${D}?id=${u}&viewMode=${$}${_}${P}${C?"":k}${M}`}},getQueryParam(u){let{customQueryParams:c}=t.getState();return c?c[u]:void 0},getUrlState(){let{location:u,path:c,customQueryParams:d,storyId:f,url:p,viewMode:m}=t.getState();return{path:c,hash:u.hash??"",queryParams:d,storyId:f,url:p,viewMode:m}},setQueryParams(u){let{customQueryParams:c}=t.getState(),d={},f={...c,...Object.entries(u).reduce((p,[m,y])=>(y!==null&&(p[m]=y),p),d)};Wt(c,f)||(t.setState({customQueryParams:f}),n.channel?.emit(vI,f))},applyQueryParams(u,c){let{path:d,hash:f="",queryParams:p}=i.getUrlState();a(`${d}${f}`,{...p,...u},c),i.setQueryParams(u)},navigateUrl(u,c){r(u,{plain:!0,...c})}},l=()=>{let{path:u,hash:c="",queryParams:d,viewMode:f}=i.getUrlState();if(f!=="story")return;let p=o.getCurrentStoryData();if(p?.type!=="story")return;let{args:m,initialArgs:y}=p,E=Vh(y,m);a(`${u}${c}`,{...d,args:E},{replace:!0}),i.setQueryParams({args:E})};n.channel?.on(bI,()=>l());let s;return n.channel?.on(EI,()=>{"requestIdleCallback"in fn.window?(s&&fn.window.cancelIdleCallback(s),s=fn.window.requestIdleCallback(l,{timeout:1e3})):(s&&clearTimeout(s),setTimeout(l,100))}),n.channel?.on(mI,({userGlobals:u,initialGlobals:c})=>{let{path:d,hash:f="",queryParams:p}=i.getUrlState(),m=Vh(c,Yr(c,u));a(`${d}${f}`,{...p,globals:m},{replace:!0}),i.setQueryParams({globals:m})}),n.channel?.on(yI,(u,c)=>{i.navigateUrl(u,c)}),{api:i,state:SI(e)}},tE={};Ue(tE,{init:()=>TI});var $I=lt(Kn(),1);const{global:xc}=__STORYBOOK_MODULE_GLOBAL__;var wI="10.2.0",{VERSIONCHECK:CI}=xc,nm=(0,$I.default)(1)(()=>{try{return{...JSON.parse(CI).data||{}}}catch{return{}}}),_I=e=>e.includes("vue")?"vue":e,TI=({store:e})=>{let{dismissedVersionNotification:t}=e.getState(),r={versions:{current:{version:wI},...nm()},dismissedVersionNotification:t},n={getCurrentVersion:()=>{let{versions:{current:o}}=e.getState();return o},getLatestVersion:()=>{let{versions:{latest:o,next:a,current:i}}=e.getState();return i&&ut.prerelease(i.version)&&a?o&&ut.gt(o.version,a.version)?o:a:o},getDocsUrl:({asset:o,subpath:a=o,versioned:i,renderer:l,ref:s="ui"})=>{let{versions:u}=e.getState(),c=u.latest?.version,d=u.current?.version,f=d?.startsWith("0.0.0")&&c||d,p=`https://storybook.js.org/${o?"docs-assets":"docs"}/`;if(o&&f)p+=`${ut.major(f)}.${ut.minor(f)}/`;else if(i&&f&&c){let E=ut.diff(c,f);E==="patch"||E===null||(p+=`${ut.major(f)}.${ut.minor(f)}/`)}let[m,y]=a?.split("#")||[];if(m&&(p+=o?m:`${m}/`),l&&typeof xc.STORYBOOK_RENDERER<"u"){let E=xc.STORYBOOK_RENDERER;E&&(p+=`?renderer=${_I(E)}`)}return s&&(p+=`${p.includes("?")?"&":"?"}ref=${s}`),y&&(p+=`#${y}`),p},versionUpdateAvailable:()=>{let o=n.getLatestVersion(),a=n.getCurrentVersion();if(o){if(!o.version||!a.version)return!0;let i=ut.prerelease(a.version)?`${ut.major(a.version)}.${ut.minor(a.version)}.${ut.patch(a.version)}`:a.version,l=ut.diff(i,o.version);return ut.gt(o.version,i)&&l!=="patch"&&!l.includes("pre")}return!1}};return{init:async()=>{let{versions:o={}}=e.getState(),{latest:a,next:i}=nm();await e.setState({versions:{...o,latest:a,next:i}})},state:r,api:n}},rE={};Ue(rE,{init:()=>II});const{REQUEST_WHATS_NEW_DATA:AI,RESULT_WHATS_NEW_DATA:OI,SET_WHATS_NEW_CACHE:RI,TOGGLE_WHATS_NEW_NOTIFICATIONS:DI}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:PI}=__STORYBOOK_MODULE_GLOBAL__;var om="whats-new",FI=({color:e="currentColor",size:t=14})=>g.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},g.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.042.616a.704.704 0 00-.66.729L1.816 12.9c.014.367.306.66.672.677l9.395.422h.032a.704.704 0 00.704-.703V.704c0-.015 0-.03-.002-.044a.704.704 0 00-.746-.659l-.773.049.057 1.615a.105.105 0 01-.17.086l-.52-.41-.617.468a.105.105 0 01-.168-.088L9.746.134 2.042.616zm8.003 4.747c-.247.192-2.092.324-2.092.05.04-1.045-.429-1.091-.689-1.091-.247 0-.662.075-.662.634 0 .57.607.893 1.32 1.27 1.014.538 2.24 1.188 2.24 2.823 0 1.568-1.273 2.433-2.898 2.433-1.676 0-3.141-.678-2.976-3.03.065-.275 2.197-.21 2.197 0-.026.971.195 1.256.753 1.256.43 0 .624-.236.624-.634 0-.602-.633-.958-1.361-1.367-.987-.554-2.148-1.205-2.148-2.7 0-1.494 1.027-2.489 2.86-2.489 1.832 0 2.832.98 2.832 2.845z",fill:e})),II=({fullAPI:e,store:t,provider:r})=>{let n={whatsNewData:void 0};function o(s){t.setState({whatsNewData:s}),n.whatsNewData=s}let a={isWhatsNewUnread(){return n.whatsNewData?.status==="SUCCESS"&&!n.whatsNewData.postIsRead},whatsNewHasBeenRead(){n.whatsNewData?.status==="SUCCESS"&&(l({lastReadPost:n.whatsNewData.url}),o({...n.whatsNewData,postIsRead:!0}),e.clearNotification(om))},toggleWhatsNewNotifications(){n.whatsNewData?.status==="SUCCESS"&&(o({...n.whatsNewData,disableWhatsNewNotifications:!n.whatsNewData.disableWhatsNewNotifications}),r.channel?.emit(DI,{disableWhatsNewNotifications:n.whatsNewData.disableWhatsNewNotifications}))}};function i(){return r.channel?.emit(AI),new Promise(s=>r.channel?.once(OI,({data:u})=>s(u)))}function l(s){r.channel?.emit(RI,s)}return{init:async()=>{if(PI.CONFIG_TYPE!=="DEVELOPMENT")return;let s=await i();o(s);let u=e.getUrlState();!(u?.path==="/onboarding"||u.queryParams?.onboarding==="true")&&s.status==="SUCCESS"&&!s.disableWhatsNewNotifications&&s.showNotification&&e.addNotification({id:om,link:"/settings/whats-new",content:{headline:s.title,subHeadline:"Learn what's new in Storybook"},icon:g.createElement(FI,null),onClear({dismissed:c}){c&&l({lastDismissedPost:s.url})}})},state:n,api:a}},bo=lt(K4(),1),LI=e=>{e.fn("set",function(t,r){return e.set(this._area,this._in(t),y2(r,{maxDepth:50}))}),e.fn("get",function(t,r){let n=e.get(this._area,this._in(t));return n!==null?E2(n):r||n})};LI(bo.default._);var nE="@storybook/manager/store";function $c(e){return e.get(nE)||{}}function kI(e,t){return e.set(nE,t)}function NI(e,t){let r=$c(e);return kI(e,{...r,...t})}var MI=class{constructor({setState:e,getState:t}){this.upstreamSetState=e,this.upstreamGetState=t}getInitialState(e){return{...e,...$c(bo.default.local),...$c(bo.default.session)}}getState(){return this.upstreamGetState()}async setState(e,t,r){let n,o;typeof t=="function"?(n=t,o=r):o=t;let{persistence:a="none"}=o||{},i={},l={};typeof e=="function"?i=u=>(l=e(u),l):(i=e,l=i);let s=await new Promise(u=>{this.upstreamSetState(i,()=>{u(this.getState())})});if(a!=="none"){let u=a==="session"?bo.default.session:bo.default.local;await NI(u,l)}return n&&n(s),s}},{ActiveTabs:KV}=rf,oE=G4({api:void 0,state:yc({})}),BI=(...e)=>W4({},...e),jI=class extends h.Component{constructor(e){super(e),this.api={},this.initModules=()=>{this.modules.forEach(y=>{"init"in y&&y.init()})};let{location:t,path:r,refId:n,viewMode:o=e.docsOptions.docsMode?"docs":e.viewMode,singleStory:a,storyId:i,docsOptions:l,navigate:s}=e,u=new MI({getState:()=>this.state,setState:(y,E)=>(this.setState(y,()=>E(this.state)),this.state)}),c={location:t,path:r,viewMode:o,singleStory:a,storyId:i,refId:n},d={docsOptions:l};this.state=u.getInitialState(yc({...c,...d}));let f={navigate:s,store:u,provider:e.provider};this.modules=[V1,N1,k1,rf,G1,q1,Y1,Z1,B1,M1,eE,tE,rE,W1].map(y=>y.init({...c,...d,...f,state:this.state,fullAPI:this.api}));let p=yc(this.state,...this.modules.map(y=>y.state)),m=Object.assign(this.api,{navigate:s},...this.modules.map(y=>y.api));this.state=p,this.api=m}static getDerivedStateFromProps(e,t){return t.path!==e.path?{...t,location:e.location,path:e.path,refId:e.refId,viewMode:e.viewMode,storyId:e.storyId}:null}shouldComponentUpdate(e,t){let r=this.props,n=this.state;return r.path!==e.path||!zt(n,t)}render(){let{children:e}=this.props,t={state:this.state,api:this.api};return g.createElement(HI,{effect:this.initModules},g.createElement(oE.Provider,{value:t},g.createElement(zI,null,e)))}};jI.displayName="Manager";var HI=({children:e,effect:t})=>(g.useEffect(t,[]),e),UI=e=>e;function zI({filter:e=UI,children:t}){let r=h.useContext(oE),n=h.useRef(t),o=h.useRef(e);if(typeof n.current!="function")return g.createElement(h.Fragment,null,n.current);let a=o.current(r),i=h.useMemo(()=>[...Object.entries(a).reduce((l,s)=>l.concat(s),[])],[r.state]);return h.useMemo(()=>{let l=n.current;return g.createElement(l,{...a})},i)}globalThis.STORYBOOK_ADDON_STATE={};const{Channel:GV}=__STORYBOOK_MODULE_CHANNELS__;var KI={id:"storybook/test-provider",leader:!0,initialState:{}};function GI({universalTestProviderStore:e,useUniversalStore:t}){let r={settingsChanged:()=>{e.untilReady().then(()=>{e.send({type:"settings-changed"})})},onRunAll:a=>e.subscribe("run-all",a),onClearAll:a=>e.subscribe("clear-all",a)},n={...r,getFullState:e.getState,setFullState:e.setState,onSettingsChanged:a=>e.subscribe("settings-changed",a),runAll:async()=>{await e.untilReady(),e.send({type:"run-all"})},clearAll:async()=>{await e.untilReady(),e.send({type:"clear-all"})}},o=a=>{let i=()=>e.getState()[a]??"test-provider-state:pending",l=s=>{e.untilReady().then(()=>{e.setState(u=>({...u,[a]:s}))})};return{...r,testProviderId:a,getState:i,setState:l,runWithState:async s=>{l("test-provider-state:running");try{await s(),l("test-provider-state:succeeded")}catch{l("test-provider-state:crashed")}}}};return t?{getTestProviderStoreById:o,fullTestProviderStore:n,universalTestProviderStore:e,useTestProviderStore:a=>t(e,a)[0]}:{getTestProviderStoreById:o,fullTestProviderStore:n,universalTestProviderStore:e}}GI({universalTestProviderStore:Pd.create({...KI,leader:globalThis.CONFIG_TYPE==="PRODUCTION"}),useUniversalStore:Q1});var WI={items:{accessibilityTests:{status:"open"},autodocs:{status:"open"},ciTests:{status:"open"},controls:{status:"open"},coverage:{status:"open"},guidedTour:{status:"open"},installA11y:{status:"open"},installChromatic:{status:"open"},installDocs:{status:"open"},installVitest:{status:"open"},mdxDocs:{status:"open"},moreComponents:{status:"open"},moreStories:{status:"open"},onboardingSurvey:{status:"open"},organizeStories:{status:"open"},publishStorybook:{status:"open"},renderComponent:{status:"open"},runTests:{status:"open"},viewports:{status:"open"},visualTests:{status:"open"},whatsNewStorybook10:{status:"open"},writeInteractions:{status:"open"}},widget:{}},VI={id:"storybook/checklist",initialState:WI};Pd.create({...VI,leader:globalThis.CONFIG_TYPE==="PRODUCTION"});var Qs={exports:{}},eu={};var am;function qI(){if(am)return eu;am=1;var e=ww();function t(d,f){return d===f&&(d!==0||1/d===1/f)||d!==d&&f!==f}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,a=e.useLayoutEffect,i=e.useDebugValue;function l(d,f){var p=f(),m=n({inst:{value:p,getSnapshot:f}}),y=m[0].inst,E=m[1];return a(function(){y.value=p,y.getSnapshot=f,s(y)&&E({inst:y})},[d,p,f]),o(function(){return s(y)&&E({inst:y}),d(function(){s(y)&&E({inst:y})})},[d]),i(p),p}function s(d){var f=d.getSnapshot;d=d.value;try{var p=f();return!r(d,p)}catch{return!0}}function u(d,f){return f()}var c=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:l;return eu.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:c,eu}var im;function YI(){return im||(im=1,Qs.exports=qI()),Qs.exports}var XI=YI(),be=({...e},t)=>{let r=[e.class,e.className];return delete e.class,e.className=["sbdocs",`sbdocs-${t}`,...r].filter(Boolean).join(" "),e},Jn=({theme:e})=>({margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}}),cr=({theme:e})=>({lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?"1px solid hsl(0 0 0 / 0.05)":"1px solid hsl(0 0 100 / 0.05)",color:e.color.defaultText,backgroundColor:e.base==="light"?"hsl(0 0 0 / 0.01)":"hsl(0 0 100 / 0.02)"}),Se=({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"}),ln={margin:"16px 0"},nf=R.div(Se),JI=({href:e="",...t})=>{let r=/^\//.test(e)?`./?path=${e}`:e,n=/^#.*/.test(e)?"_self":"_top";return g.createElement("a",{href:r,target:n,...t})},aE=R(JI)(Se,({theme:e})=>({fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}})),iE=R.blockquote(Se,ln,({theme:e})=>({borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}})),Xr=[],In=null,ZI=h.lazy(async()=>{let{SyntaxHighlighter:e}=await $r(async()=>{const{SyntaxHighlighter:t}=await import("./syntaxhighlighter-ED5Y7EFY-CBd33VHX.js");return{SyntaxHighlighter:t}},__vite__mapDeps([0,1,2,3,4,5]),import.meta.url);return Xr.length>0&&(Xr.forEach(t=>{e.registerLanguage(...t)}),Xr=[]),In===null&&(In=e),{default:t=>g.createElement(e,{...t})}}),QI=h.lazy(async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([$r(()=>import("./syntaxhighlighter-ED5Y7EFY-CBd33VHX.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url),$r(()=>import("./formatter-EIJCOSYU-i6ULsfEu.js"),__vite__mapDeps([6,1,2,3,4,5]),import.meta.url)]);return Xr.length>0&&(Xr.forEach(r=>{e.registerLanguage(...r)}),Xr=[]),In===null&&(In=e),{default:r=>g.createElement(e,{...r,formatter:t})}}),ea=e=>g.createElement(h.Suspense,{fallback:g.createElement("div",null)},e.format!==!1?g.createElement(QI,{...e}):g.createElement(ZI,{...e}));ea.registerLanguage=(...e)=>{if(In!==null){In.registerLanguage(...e);return}Xr.push(e)};var e8=e=>typeof e=="string",t8=/[\n\r]/g,r8=R.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"}),cr),n8=R(ea)(({theme:e})=>({fontFamily:e.typography.fonts.mono,fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),of=({className:e,children:t,...r})=>{let n=(e||"").match(/lang-(\S+)/),o=h.Children.toArray(t);return o.filter(e8).some(a=>a.match(t8))?g.createElement(n8,{bordered:!0,copyable:!0,language:n?.[1]??"text",format:!1,...r},t):g.createElement(r8,{...r,className:e},o)},lE=R.dl(Se,ln,{padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}}),sE=R.div(Se),uE=R.h1(Se,Jn,({theme:e})=>({fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),af=R.h2(Se,Jn,({theme:e})=>({fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),lf=R.h3(Se,Jn,({theme:e})=>({fontSize:`${e.typography.size.m1}px`})),cE=R.h4(Se,Jn,({theme:e})=>({fontSize:`${e.typography.size.s3}px`})),dE=R.h5(Se,Jn,({theme:e})=>({fontSize:`${e.typography.size.s2}px`})),fE=R.h6(Se,Jn,({theme:e})=>({fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),pE=R.hr(({theme:e})=>({border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),hE=R.img({maxWidth:"100%"}),gE=R.li(Se,({theme:e})=>({fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":cr({theme:e})})),o8={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},mE=R.ol(Se,ln,o8,{listStyle:"decimal"}),yE=R.p(Se,ln,({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":cr({theme:e})})),bE=R.pre(Se,ln,({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}})),EE=R.span(Se,({theme:e})=>({"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}})),vE=R.title(cr),SE=R.table(Se,ln,({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}})),a8={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},xE=R.ul(Se,ln,a8,{listStyle:"disc"}),$E={h1:e=>g.createElement(uE,{...be(e,"h1")}),h2:e=>g.createElement(af,{...be(e,"h2")}),h3:e=>g.createElement(lf,{...be(e,"h3")}),h4:e=>g.createElement(cE,{...be(e,"h4")}),h5:e=>g.createElement(dE,{...be(e,"h5")}),h6:e=>g.createElement(fE,{...be(e,"h6")}),pre:e=>g.createElement(bE,{...be(e,"pre")}),a:e=>g.createElement(aE,{...be(e,"a")}),hr:e=>g.createElement(pE,{...be(e,"hr")}),dl:e=>g.createElement(lE,{...be(e,"dl")}),blockquote:e=>g.createElement(iE,{...be(e,"blockquote")}),table:e=>g.createElement(SE,{...be(e,"table")}),img:e=>g.createElement(hE,{...be(e,"img")}),div:e=>g.createElement(sE,{...be(e,"div")}),span:e=>g.createElement(EE,{...be(e,"span")}),li:e=>g.createElement(gE,{...be(e,"li")}),ul:e=>g.createElement(xE,{...be(e,"ul")}),ol:e=>g.createElement(mE,{...be(e,"ol")}),p:e=>g.createElement(yE,{...be(e,"p")}),code:e=>g.createElement(of,{...be(e,"code")}),tt:e=>g.createElement(vE,{...be(e,"tt")}),resetwrapper:e=>g.createElement(nf,{...be(e,"resetwrapper")})};R.div(({theme:e,compact:t})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"12px",minWidth:20,borderRadius:20,padding:t?"4px 7px":"4px 10px"}),{svg:{height:12,width:12,marginRight:4,marginTop:-2,path:{fill:"currentColor"}}},({theme:e,status:t})=>{switch(t){case"critical":return{color:e.fgColor.critical,background:e.bgColor.critical,boxShadow:`inset 0 0 0 1px ${e.borderColor.critical}`};case"negative":return{color:e.fgColor.negative,background:e.bgColor.negative,boxShadow:`inset 0 0 0 1px ${e.borderColor.negative}`};case"warning":return{color:e.fgColor.warning,background:e.bgColor.warning,boxShadow:`inset 0 0 0 1px ${e.borderColor.warning}`};case"neutral":return{color:e.fgColor.muted,background:e.base==="dark"?e.barBg:e.background.app,boxShadow:`inset 0 0 0 1px ${ur(.8,e.textMutedColor)}`};case"positive":return{color:e.fgColor.positive,background:e.bgColor.positive,boxShadow:`inset 0 0 0 1px ${e.borderColor.positive}`};case"active":return{color:e.base==="light"?Ge(.1,e.color.secondary):e.color.secondary,background:e.background.hoverable,boxShadow:`inset 0 0 0 1px ${ur(.9,e.color.secondary)}`};default:return{}}});var i8=0,l8=e=>e.button===i8&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,s8=(e,t)=>{l8(e)&&(e.preventDefault(),t(e))},u8=R.span(({withArrow:e})=>e?{"> svg:last-of-type":{height:"0.7em",width:"0.7em",marginRight:0,marginLeft:"0.25em",bottom:"auto",verticalAlign:"inherit"}}:{},({containsIcon:e})=>e?{svg:{height:"1em",width:"1em",verticalAlign:"middle",position:"relative",bottom:0,marginRight:0}}:{}),c8=R.a(({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:Ge(.07,e.color.secondary),"svg path:not([fill])":{fill:Ge(.07,e.color.secondary)}},"&:active":{color:Ge(.1,e.color.secondary),"svg path:not([fill])":{fill:Ge(.1,e.color.secondary)}},svg:{display:"inline-block",height:"1em",width:"1em",verticalAlign:"text-top",position:"relative",bottom:"-0.125em",marginRight:"0.4em","& path":{fill:e.color.secondary}}}),({theme:e,secondary:t,tertiary:r})=>{let n;return t&&(n=[e.textMutedColor,e.color.secondary,e.color.secondary]),r&&(n=[e.color.dark,e.color.secondary,e.color.secondary]),n?{color:n[0],"svg path:not([fill])":{fill:n[0]},"&:hover":{color:n[1],"svg path:not([fill])":{fill:n[1]}},"&:active":{color:n[2],"svg path:not([fill])":{fill:n[2]}}}:{}},({nochrome:e})=>e?{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}}:{},({theme:e,inverse:t})=>t?{color:e.color.lightest,":not([fill])":{fill:e.color.lightest},"&:hover":{color:e.color.lighter,"svg path:not([fill])":{fill:e.color.lighter}},"&:active":{color:e.color.light,"svg path:not([fill])":{fill:e.color.light}}}:{},({isButton:e})=>e?{border:0,borderRadius:0,background:"none",padding:0,fontSize:"inherit"}:{}),Ln=h.forwardRef(({cancel:e=!0,children:t,onClick:r=void 0,withArrow:n=!1,containsIcon:o=!1,className:a=void 0,style:i=void 0,isButton:l=!1,...s},u)=>g.createElement(c8,{...s,ref:u,isButton:l,role:l?"button":void 0,onClick:r&&e?c=>s8(c,r):r,className:a},g.createElement(u8,{withArrow:n,containsIcon:o},t,n&&g.createElement(Qb,null))));Ln.displayName="Link";R.div(({theme:e})=>({fontSize:`${e.typography.size.s2}px`,lineHeight:"1.6",h1:{fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},h2:{fontSize:`${e.typography.size.m2}px`,borderBottom:`1px solid ${e.appBorderColor}`},h3:{fontSize:`${e.typography.size.m1}px`},h4:{fontSize:`${e.typography.size.s3}px`},h5:{fontSize:`${e.typography.size.s2}px`},h6:{fontSize:`${e.typography.size.s2}px`,color:e.color.dark},"pre:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px"},"pre pre code, pre.prismjs code":{color:"inherit",fontSize:"inherit"},"pre code":{margin:0,padding:0,whiteSpace:"pre",border:"none",background:"transparent"},"pre code, pre tt":{backgroundColor:"transparent",border:"none"},"body > *:first-of-type":{marginTop:"0 !important"},"body > *:last-child":{marginBottom:"0 !important"},a:{color:e.color.secondary,textDecoration:"none"},"a.absent":{color:"#cc0000"},"a.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0},"h1, h2, h3, h4, h5, h6":{margin:"20px 0 10px",padding:0,cursor:"text",position:"relative","&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:"15px 0"},hr:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:"inline-block"},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",margin:"0 0 15px",padding:"0 15px","&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:"white",margin:0,padding:0,"& th":{fontWeight:"bold",border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"& td":{border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"&:nth-of-type(2n)":{backgroundColor:e.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:"100%"},"span.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"span.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"span.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"span.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"span.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}},"code, tt":{margin:"0 2px",padding:"0 5px",whiteSpace:"nowrap",border:`1px solid ${e.color.mediumlight}`,backgroundColor:e.color.lighter,borderRadius:3,color:e.base==="dark"?e.color.darkest:e.color.dark}}));const{deprecate:wc}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function lm(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function d8(...e){return t=>{let r=!1,n=e.map(o=>{let a=lm(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){let a=n[o];typeof a=="function"?a():lm(e[o],null)}}}}var f8=Symbol.for("react.lazy"),pi=Cw[" use ".trim().toString()];function p8(e){return typeof e=="object"&&e!==null&&"then"in e}function wE(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===f8&&"_payload"in e&&p8(e._payload)}function h8(e){let t=m8(e),r=h.forwardRef((n,o)=>{let{children:a,...i}=n;wE(a)&&typeof pi=="function"&&(a=pi(a._payload));let l=h.Children.toArray(a),s=l.find(b8);if(s){let u=s.props.children,c=l.map(d=>d===s?h.Children.count(u)>1?h.Children.only(null):h.isValidElement(u)?u.props.children:null:d);return oe.jsx(t,{...i,ref:o,children:h.isValidElement(u)?h.cloneElement(u,void 0,c):null})}return oe.jsx(t,{...i,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}var g8=h8("Slot");function m8(e){let t=h.forwardRef((r,n)=>{let{children:o,...a}=r;if(wE(o)&&typeof pi=="function"&&(o=pi(o._payload)),h.isValidElement(o)){let i=v8(o),l=E8(a,o.props);return o.type!==h.Fragment&&(l.ref=n?d8(n,i):i),h.cloneElement(o,l)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var y8=Symbol("radix.slottable");function b8(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===y8}function E8(e,t){let r={...t};for(let n in t){let o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{let l=a(...i);return o(...i),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function v8(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var S8=R.div(({theme:e})=>({padding:"2px 6px",lineHeight:"16px",fontSize:10,fontWeight:e.typography.weight.bold,color:e.color.lightest,boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.3)",borderRadius:4,whiteSpace:"nowrap",pointerEvents:"none",zIndex:-1,background:e.base==="light"?"rgba(60, 60, 60, 0.9)":"rgba(0, 0, 0, 0.95)"})),CE=({note:e,...t})=>g.createElement(S8,{...t},e);const{deprecate:x8}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var ue=typeof document<"u"?g.useLayoutEffect:()=>{};function $8(e){let[t,r]=h.useState(e),n=h.useRef(t),o=h.useRef(null),a=h.useRef(()=>{if(!o.current)return;let l=o.current.next();if(l.done){o.current=null;return}n.current===l.value?a.current():r(l.value)});ue(()=>{n.current=t,o.current&&a.current()});let i=h.useCallback(l=>{o.current=l(n.current),a.current()},[a]);return[t,i]}var _E={prefix:String(Math.round(Math.random()*1e10)),current:0},TE=g.createContext(_E),w8=g.createContext(!1),tu=new WeakMap;function C8(e=!1){let t=h.useContext(TE),r=h.useRef(null);if(r.current===null&&!e){var n,o;let a=(o=g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(n=o.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(a){let i=tu.get(a);i==null?tu.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==i.state&&(t.current=i.id,tu.delete(a))}r.current=++t.current}return r.current}function _8(e){let t=h.useContext(TE),r=C8(!!e),n=`react-aria${t.prefix}`;return e||`${n}-${r}`}function T8(e){let t=g.useId(),[r]=h.useState(sn()),n=r?"react-aria":`react-aria${_E.prefix}`;return e||`${n}-${t}`}var A8=typeof g.useId=="function"?T8:_8;function O8(){return!1}function R8(){return!0}function D8(e){return()=>{}}function sn(){return typeof g.useSyncExternalStore=="function"?g.useSyncExternalStore(D8,O8,R8):h.useContext(w8)}var P8=!!(typeof window<"u"&&window.document&&window.document.createElement),$n=new Map,Eo;typeof FinalizationRegistry<"u"&&(Eo=new FinalizationRegistry(e=>{$n.delete(e)}));function He(e){let[t,r]=h.useState(e),n=h.useRef(null),o=A8(t),a=h.useRef(null);if(Eo&&Eo.register(a,o),P8){let i=$n.get(o);i&&!i.includes(n)?i.push(n):$n.set(o,[n])}return ue(()=>{let i=o;return()=>{Eo&&Eo.unregister(a),$n.delete(i)}},[o]),h.useEffect(()=>{let i=n.current;return i&&r(i),()=>{i&&(n.current=null)}}),o}function F8(e,t){if(e===t)return e;let r=$n.get(e);if(r)return r.forEach(o=>o.current=t),t;let n=$n.get(t);return n?(n.forEach(o=>o.current=e),e):t}function Ya(e=[]){let t=He(),[r,n]=$8(t),o=h.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return ue(o,[t,o,...e]),r}function ta(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}var ce=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},St=e=>e&&"window"in e&&e.window===e?e:ce(e).defaultView||window;function bt(e,t){return t&&e?e.contains(t):!1}var Le=(e=document)=>e.activeElement;function we(e){return e.target}function I8(e,t,r,n){return e.createTreeWalker(t,r,n)}function AE(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=AE(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function L8(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=AE(e))&&(n&&(n+=" "),n+=t);return n}var k8=L8;function ee(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let a=t[o],i=n[o];typeof a=="function"&&typeof i=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=ta(a,i):(o==="className"||o==="UNSAFE_className")&&typeof a=="string"&&typeof i=="string"?t[o]=k8(a,i):o==="id"&&a&&i?t.id=F8(a,i):t[o]=i!==void 0?i:a}}return t}function sf(...e){return e.length===1&&e[0]?e[0]:t=>{let r=!1,n=e.map(o=>{let a=sm(o,t);return r||(r=typeof a=="function"),a});if(r)return()=>{n.forEach((o,a)=>{typeof o=="function"?o():sm(e[a],null)})}}}function sm(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}var N8=new Set(["id"]),M8=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),B8=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),j8=new Set(["dir","lang","hidden","inert","translate"]),um=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),H8=/^(data-.*)$/;function xe(e,t={}){let{labelable:r,isLink:n,global:o,events:a=o,propNames:i}=t,l={};for(let s in e)Object.prototype.hasOwnProperty.call(e,s)&&(N8.has(s)||r&&M8.has(s)||n&&B8.has(s)||o&&j8.has(s)||a&&(um.has(s)||s.endsWith("Capture")&&um.has(s.slice(0,-7)))||i?.has(s)||H8.test(s))&&(l[s]=e[s]);return l}function rt(e){if(U8())e.focus({preventScroll:!0});else{let t=z8(e);e.focus(),K8(t)}}var $a=null;function U8(){if($a==null){$a=!1;try{document.createElement("div").focus({get preventScroll(){return $a=!0,!0}})}catch{}}return $a}function z8(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function K8(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function al(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let r=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(r)&&r.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function uf(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function dr(e){let t=null;return()=>(t==null&&(t=e()),t)}var en=dr(function(){return uf(/^Mac/i)}),G8=dr(function(){return uf(/^iPhone/i)}),OE=dr(function(){return uf(/^iPad/i)||en()&&navigator.maxTouchPoints>1}),il=dr(function(){return G8()||OE()}),W8=dr(function(){return en()||il()}),RE=dr(function(){return al(/AppleWebKit/i)&&!DE()}),DE=dr(function(){return al(/Chrome/i)}),cf=dr(function(){return al(/Android/i)}),V8=dr(function(){return al(/Firefox/i)}),q8=h.createContext({isNative:!0,open:J8,useHref:e=>e});function ll(){return h.useContext(q8)}function Y8(e,t){let r=e.getAttribute("target");return(!r||r==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function tn(e,t,r=!0){var n,o;let{metaKey:a,ctrlKey:i,altKey:l,shiftKey:s}=t;V8()&&!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key")&&e.target==="_blank"&&(en()?a=!0:i=!0);let u=RE()&&en()&&!OE()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:i,altKey:l,shiftKey:s}):new MouseEvent("click",{metaKey:a,ctrlKey:i,altKey:l,shiftKey:s,detail:1,bubbles:!0,cancelable:!0});tn.isOpening=r,rt(e),e.dispatchEvent(u),tn.isOpening=!1}tn.isOpening=!1;function X8(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function J8(e,t){X8(e,r=>tn(r,t))}function PE(e){let t=ll();var r;let n=t.useHref((r=e?.href)!==null&&r!==void 0?r:"");return{href:e?.href?n:void 0,target:e?.target,rel:e?.rel,download:e?.download,ping:e?.ping,referrerPolicy:e?.referrerPolicy}}function Z8(e,t,r,n){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&Y8(e.currentTarget,e)&&r&&(e.preventDefault(),t.open(e.currentTarget,e,r,n))}var Sr=new Map,Cc=new Set;function cm(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let o=Sr.get(n.target);o||(o=new Set,Sr.set(n.target,o),n.target.addEventListener("transitioncancel",r,{once:!0})),o.add(n.propertyName)},r=n=>{if(!e(n)||!n.target)return;let o=Sr.get(n.target);if(o&&(o.delete(n.propertyName),o.size===0&&(n.target.removeEventListener("transitioncancel",r),Sr.delete(n.target)),Sr.size===0)){for(let a of Cc)a();Cc.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?cm():document.addEventListener("DOMContentLoaded",cm));function Q8(){for(let[e]of Sr)"isConnected"in e&&!e.isConnected&&Sr.delete(e)}function FE(e){requestAnimationFrame(()=>{Q8(),Sr.size===0?e():Cc.add(e)})}function sl(){let e=h.useRef(new Map),t=h.useCallback((o,a,i,l)=>{let s=l?.once?(...u)=>{e.current.delete(i),i(...u)}:i;e.current.set(i,{type:a,eventTarget:o,fn:s,options:l}),o.addEventListener(a,s,l)},[]),r=h.useCallback((o,a,i,l)=>{var s;let u=((s=e.current.get(i))===null||s===void 0?void 0:s.fn)||i;o.removeEventListener(a,u,l),e.current.delete(i)},[]),n=h.useCallback(()=>{e.current.forEach((o,a)=>{r(o.eventTarget,o.type,a,o.options)})},[r]);return h.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function ul(e,t){let{id:r,"aria-label":n,"aria-labelledby":o}=e;return r=He(r),o&&n?o=[...new Set([r,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!n&&!o&&t&&(n=t),{id:r,"aria-label":n,"aria-labelledby":o}}function Mt(e){let t=h.useRef(null),r=h.useRef(void 0),n=h.useCallback(o=>{if(typeof e=="function"){let a=e,i=a(o);return()=>{typeof i=="function"?i():a(null)}}else if(e)return e.current=o,()=>{e.current=null}},[e]);return h.useMemo(()=>({get current(){return t.current},set current(o){t.current=o,r.current&&(r.current(),r.current=void 0),o!=null&&(r.current=n(o))}}),[n])}var ru,e6=(ru=g.useInsertionEffect)!==null&&ru!==void 0?ru:ue;function Me(e){let t=h.useRef(null);return e6(()=>{t.current=e},[e]),h.useCallback((...r)=>{let n=t.current;return n?.(...r)},[])}function dm(e,t){let r=h.useRef(!0),n=h.useRef(null);ue(()=>(r.current=!0,()=>{r.current=!1}),[]),ue(()=>{r.current?r.current=!1:(!n.current||t.some((o,a)=>!Object.is(o,n[a])))&&e(),n.current=t},t)}function t6(){return typeof window.ResizeObserver<"u"}function hi(e){let{ref:t,box:r,onResize:n}=e,o=Me(n);h.useEffect(()=>{let a=t?.current;if(a)if(t6()){let i=new window.ResizeObserver(l=>{l.length&&o()});return i.observe(a,{box:r}),()=>{a&&i.unobserve(a)}}else return window.addEventListener("resize",o,!1),()=>{window.removeEventListener("resize",o,!1)}},[t,r])}function df(e,t){ue(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function kn(e,t){if(!e)return!1;let r=window.getComputedStyle(e),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}function IE(e,t){let r=e;for(kn(r,t)&&(r=r.parentElement);r&&!kn(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function r6(e,t){let r=[];for(;e&&e!==document.documentElement;)kn(e,t)&&r.push(e),e=e.parentElement;return r}function yn(e){return en()?e.metaKey:e.ctrlKey}var n6=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function nu(e){return e instanceof HTMLInputElement&&!n6.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var o6=0,ou=new Map;function a6(e){let[t,r]=h.useState();return ue(()=>{if(!e)return;let n=ou.get(e);if(n)r(n.element.id);else{let o=`react-aria-description-${o6++}`;r(o);let a=document.createElement("div");a.id=o,a.style.display="none",a.textContent=e,document.body.appendChild(a),n={refCount:0,element:a},ou.set(e,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),ou.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function vo(e,t,r,n){let o=Me(r),a=r==null;h.useEffect(()=>{if(a||!e.current)return;let i=e.current;return i.addEventListener(t,o,n),()=>{i.removeEventListener(t,o,n)}},[e,t,n,a])}function LE(e,t){let r=fm(e,t,"left"),n=fm(e,t,"top"),o=t.offsetWidth,a=t.offsetHeight,i=e.scrollLeft,l=e.scrollTop,{borderTopWidth:s,borderLeftWidth:u,scrollPaddingTop:c,scrollPaddingRight:d,scrollPaddingBottom:f,scrollPaddingLeft:p}=getComputedStyle(e),m=i+parseInt(u,10),y=l+parseInt(s,10),E=m+e.clientWidth,b=y+e.clientHeight,v=parseInt(c,10)||0,S=parseInt(f,10)||0,x=parseInt(d,10)||0,C=parseInt(p,10)||0;r<=i+C?i=r-parseInt(u,10)-C:r+o>E-x&&(i+=r+o-E+x),n<=y+v?l=n-parseInt(s,10)-v:n+a>b-S&&(l+=n+a-b+S),e.scrollLeft=i,e.scrollTop=l}function fm(e,t,r){let n=r==="left"?"offsetLeft":"offsetTop",o=0;for(;t.offsetParent&&(o+=t[n],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[n];break}t=t.offsetParent}return o}function pm(e,t){if(e&&document.contains(e)){let i=document.scrollingElement||document.documentElement,l=window.getComputedStyle(i).overflow==="hidden";if(l){let s=r6(e);l||s.push(i);for(let u of s)LE(u,e)}else{var r;let{left:s,top:u}=e.getBoundingClientRect();e==null||(r=e.scrollIntoView)===null||r===void 0||r.call(e,{block:"nearest"});let{left:c,top:d}=e.getBoundingClientRect();if(Math.abs(s-c)>1||Math.abs(u-d)>1){var n,o,a;t==null||(o=t.containingElement)===null||o===void 0||(n=o.scrollIntoView)===null||n===void 0||n.call(o,{block:"center",inline:"center"}),(a=e.scrollIntoView)===null||a===void 0||a.call(e,{block:"nearest"})}}}}function kE(e){return e.pointerType===""&&e.isTrusted?!0:cf()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function i6(e){return!cf()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function hm(e){let t=h.version.split(".");return parseInt(t[0],10)>=19?e:e?"true":void 0}var l6="react-aria-clear-focus",s6="react-aria-focus";function NE(e,t=!0){let[r,n]=h.useState(!0),o=r&&t;return ue(()=>{if(o&&e.current&&"getAnimations"in e.current)for(let a of e.current.getAnimations())a instanceof CSSTransition&&a.cancel()},[e,o]),BE(e,o,h.useCallback(()=>n(!1),[])),o}function ME(e,t){let[r,n]=h.useState(t?"open":"closed");switch(r){case"open":t||n("exiting");break;case"closed":case"exiting":t&&n("open");break}let o=r==="exiting";return BE(e,o,h.useCallback(()=>{n(a=>a==="exiting"?"closed":a)},[])),o}function BE(e,t,r){ue(()=>{if(t&&e.current){if(!("getAnimations"in e.current)){r();return}let n=e.current.getAnimations();if(n.length===0){r();return}let o=!1;return Promise.all(n.map(a=>a.finished)).then(()=>{o||Di.flushSync(()=>{r()})}).catch(()=>{}),()=>{o=!0}}},[e,t,r])}var u6=typeof Element<"u"&&"checkVisibility"in Element.prototype;function c6(e){let t=St(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,o=r!=="none"&&n!=="hidden"&&n!=="collapse";if(o){let{getComputedStyle:a}=e.ownerDocument.defaultView,{display:i,visibility:l}=a(e);o=i!=="none"&&l!=="hidden"&&l!=="collapse"}return o}function d6(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function ff(e,t){return u6?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&c6(e)&&d6(e,t)&&(!e.parentElement||ff(e.parentElement,e))}var pf=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],f6=pf.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";pf.push('[tabindex]:not([tabindex="-1"]):not([disabled])');var p6=pf.join(':not([hidden]):not([tabindex="-1"]),');function jE(e){return e.matches(f6)&&ff(e)&&!HE(e)}function h6(e){return e.matches(p6)&&ff(e)&&!HE(e)}function HE(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}var au,g6=typeof document<"u"?(au=g.useInsertionEffect)!==null&&au!==void 0?au:g.useLayoutEffect:()=>{};function cl(e,t,r){let[n,o]=h.useState(e||t),a=h.useRef(n),i=h.useRef(e!==void 0),l=e!==void 0;h.useEffect(()=>{i.current,i.current=l},[l]);let s=l?e:n;g6(()=>{a.current=s});let[,u]=h.useReducer(()=>({}),{}),c=h.useCallback((d,...f)=>{let p=typeof d=="function"?d(a.current):d;Object.is(a.current,p)||(a.current=p,o(p),u(),r?.(p,...f))},[r]);return[s,c]}function Mo(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function hf(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function UE(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function zE(e){let t=h.useRef({isFocused:!1,observer:null});ue(()=>{let n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=Me(n=>{e?.(n)});return h.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=n.target,a=i=>{if(t.current.isFocused=!1,o.disabled){let l=hf(i);r(l)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var i;(i=t.current.observer)===null||i===void 0||i.disconnect();let l=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[r])}var gi=!1;function m6(e){for(;e&&!jE(e);)e=e.parentElement;let t=St(e),r=t.document.activeElement;if(!r||r===e)return;gi=!0;let n=!1,o=c=>{(c.target===r||n)&&c.stopImmediatePropagation()},a=c=>{(c.target===r||n)&&(c.stopImmediatePropagation(),!e&&!n&&(n=!0,rt(r),s()))},i=c=>{(c.target===e||n)&&c.stopImmediatePropagation()},l=c=>{(c.target===e||n)&&(c.stopImmediatePropagation(),n||(n=!0,rt(r),s()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",a,!0),t.addEventListener("focusin",l,!0),t.addEventListener("focus",i,!0);let s=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",a,!0),t.removeEventListener("focusin",l,!0),t.removeEventListener("focus",i,!0),gi=!1,n=!1},u=requestAnimationFrame(s);return s}var vn="default",_c="",Xa=new WeakMap;function y6(e){if(il()){if(vn==="default"){let t=ce(e);_c=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}vn="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Xa.set(e,e.style[t]),e.style[t]="none"}}function gm(e){if(il()){if(vn!=="disabled")return;vn="restoring",setTimeout(()=>{FE(()=>{if(vn==="restoring"){let t=ce(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=_c||""),_c="",vn="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Xa.has(e)){let t=Xa.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Xa.delete(e)}}var Bo=g.createContext({register:()=>{}});Bo.displayName="PressResponderContext";function b6(e,t){return t.get?t.get.call(e):t.value}function KE(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function E6(e,t){var r=KE(e,t,"get");return b6(e,r)}function v6(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function S6(e,t,r){v6(e,t),t.set(e,r)}function x6(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}function mm(e,t,r){var n=KE(e,t,"set");return x6(e,n,r),r}function $6(e){let t=h.useContext(Bo);if(t){let{register:r,...n}=t;e=ee(n,e),r()}return df(t,e.ref),e}var wa=new WeakMap,Ca=class{continuePropagation(){mm(this,wa,!1)}get shouldStopPropagation(){return E6(this,wa)}constructor(e,t,r,n){S6(this,wa,{writable:!0,value:void 0}),mm(this,wa,!0);var o;let a=(o=n?.target)!==null&&o!==void 0?o:r.currentTarget,i=a?.getBoundingClientRect(),l,s=0,u,c=null;r.clientX!=null&&r.clientY!=null&&(u=r.clientX,c=r.clientY),i&&(u!=null&&c!=null?(l=u-i.left,s=c-i.top):(l=i.width/2,s=i.height/2)),this.type=e,this.pointerType=t,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=s}},ym=Symbol("linkClicked"),bm="react-aria-pressable-style",Em="data-react-aria-pressable";function ra(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:a,onClick:i,isDisabled:l,isPressed:s,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:f,...p}=$6(e),[m,y]=h.useState(!1),E=h.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:b,removeAllGlobalListeners:v}=sl(),S=Me((_,I)=>{let L=E.current;if(l||L.didFirePressStart)return!1;let A=!0;if(L.isTriggeringEvent=!0,n){let P=new Ca("pressstart",I,_);n(P),A=P.shouldStopPropagation}return r&&r(!0),L.isTriggeringEvent=!1,L.didFirePressStart=!0,y(!0),A}),x=Me((_,I,L=!0)=>{let A=E.current;if(!A.didFirePressStart)return!1;A.didFirePressStart=!1,A.isTriggeringEvent=!0;let P=!0;if(o){let k=new Ca("pressend",I,_);o(k),P=k.shouldStopPropagation}if(r&&r(!1),y(!1),t&&L&&!l){let k=new Ca("press",I,_);t(k),P&&(P=k.shouldStopPropagation)}return A.isTriggeringEvent=!1,P}),C=Me((_,I)=>{let L=E.current;if(l)return!1;if(a){L.isTriggeringEvent=!0;let A=new Ca("pressup",I,_);return a(A),L.isTriggeringEvent=!1,A.shouldStopPropagation}return!0}),$=Me(_=>{let I=E.current;if(I.isPressed&&I.target){I.didFirePressStart&&I.pointerType!=null&&x(Fr(I.target,_),I.pointerType,!1),I.isPressed=!1,I.isOverTarget=!1,I.activePointerId=null,I.pointerType=null,v(),d||gm(I.target);for(let L of I.disposables)L();I.disposables=[]}}),w=Me(_=>{c&&$(_)}),T=Me(_=>{l||i?.(_)}),O=Me((_,I)=>{if(!l&&i){let L=new MouseEvent("click",_);UE(L,I),i(hf(L))}}),D=h.useMemo(()=>{let _=E.current,I={onKeyDown(A){if(iu(A.nativeEvent,A.currentTarget)&&bt(A.currentTarget,we(A.nativeEvent))){var P;vm(we(A.nativeEvent),A.key)&&A.preventDefault();let k=!0;if(!_.isPressed&&!A.repeat){_.target=A.currentTarget,_.isPressed=!0,_.pointerType="keyboard",k=S(A,"keyboard");let F=A.currentTarget,M=B=>{iu(B,F)&&!B.repeat&&bt(F,we(B))&&_.target&&C(Fr(_.target,B),"keyboard")};b(ce(A.currentTarget),"keyup",ta(M,L),!0)}k&&A.stopPropagation(),A.metaKey&&en()&&((P=_.metaKeyEvents)===null||P===void 0||P.set(A.key,A.nativeEvent))}else A.key==="Meta"&&(_.metaKeyEvents=new Map)},onClick(A){if(!(A&&!bt(A.currentTarget,we(A.nativeEvent)))&&A&&A.button===0&&!_.isTriggeringEvent&&!tn.isOpening){let P=!0;if(l&&A.preventDefault(),!_.ignoreEmulatedMouseEvents&&!_.isPressed&&(_.pointerType==="virtual"||kE(A.nativeEvent))){let k=S(A,"virtual"),F=C(A,"virtual"),M=x(A,"virtual");T(A),P=k&&F&&M}else if(_.isPressed&&_.pointerType!=="keyboard"){let k=_.pointerType||A.nativeEvent.pointerType||"virtual",F=C(Fr(A.currentTarget,A),k),M=x(Fr(A.currentTarget,A),k,!0);P=F&&M,_.isOverTarget=!1,T(A),$(A)}_.ignoreEmulatedMouseEvents=!1,P&&A.stopPropagation()}}},L=A=>{var P;if(_.isPressed&&_.target&&iu(A,_.target)){var k;vm(we(A),A.key)&&A.preventDefault();let M=we(A),B=bt(_.target,we(A));x(Fr(_.target,A),"keyboard",B),B&&O(A,_.target),v(),A.key!=="Enter"&&gf(_.target)&&bt(_.target,M)&&!A[ym]&&(A[ym]=!0,tn(_.target,A,!1)),_.isPressed=!1,(k=_.metaKeyEvents)===null||k===void 0||k.delete(A.key)}else if(A.key==="Meta"&&!((P=_.metaKeyEvents)===null||P===void 0)&&P.size){var F;let M=_.metaKeyEvents;_.metaKeyEvents=void 0;for(let B of M.values())(F=_.target)===null||F===void 0||F.dispatchEvent(new KeyboardEvent("keyup",B))}};if(typeof PointerEvent<"u"){I.onPointerDown=k=>{if(k.button!==0||!bt(k.currentTarget,we(k.nativeEvent)))return;if(i6(k.nativeEvent)){_.pointerType="virtual";return}_.pointerType=k.pointerType;let F=!0;if(!_.isPressed){_.isPressed=!0,_.isOverTarget=!0,_.activePointerId=k.pointerId,_.target=k.currentTarget,d||y6(_.target),F=S(k,_.pointerType);let M=we(k.nativeEvent);"releasePointerCapture"in M&&M.releasePointerCapture(k.pointerId),b(ce(k.currentTarget),"pointerup",A,!1),b(ce(k.currentTarget),"pointercancel",P,!1)}F&&k.stopPropagation()},I.onMouseDown=k=>{if(bt(k.currentTarget,we(k.nativeEvent))&&k.button===0){if(u){let F=m6(k.target);F&&_.disposables.push(F)}k.stopPropagation()}},I.onPointerUp=k=>{!bt(k.currentTarget,we(k.nativeEvent))||_.pointerType==="virtual"||k.button===0&&!_.isPressed&&C(k,_.pointerType||k.pointerType)},I.onPointerEnter=k=>{k.pointerId===_.activePointerId&&_.target&&!_.isOverTarget&&_.pointerType!=null&&(_.isOverTarget=!0,S(Fr(_.target,k),_.pointerType))},I.onPointerLeave=k=>{k.pointerId===_.activePointerId&&_.target&&_.isOverTarget&&_.pointerType!=null&&(_.isOverTarget=!1,x(Fr(_.target,k),_.pointerType,!1),w(k))};let A=k=>{if(k.pointerId===_.activePointerId&&_.isPressed&&k.button===0&&_.target){if(bt(_.target,we(k))&&_.pointerType!=null){let F=!1,M=setTimeout(()=>{_.isPressed&&_.target instanceof HTMLElement&&(F?$(k):(rt(_.target),_.target.click()))},80);b(k.currentTarget,"click",()=>F=!0,!0),_.disposables.push(()=>clearTimeout(M))}else $(k);_.isOverTarget=!1}},P=k=>{$(k)};I.onDragStart=k=>{bt(k.currentTarget,we(k.nativeEvent))&&$(k)}}return I},[b,l,u,v,d,$,w,x,S,C,T,O]);return h.useEffect(()=>{if(!f)return;let _=ce(f.current);if(!_||!_.head||_.getElementById(bm))return;let I=_.createElement("style");I.id=bm,I.textContent=`
655
+ @layer {
656
+ [${Em}] {
657
+ touch-action: pan-x pan-y pinch-zoom;
658
+ }
659
+ }
660
+ `.trim(),_.head.prepend(I)},[f]),h.useEffect(()=>{let _=E.current;return()=>{var I;d||gm((I=_.target)!==null&&I!==void 0?I:void 0);for(let L of _.disposables)L();_.disposables=[]}},[d]),{isPressed:s||m,pressProps:ee(p,D,{[Em]:!0})}}function gf(e){return e.tagName==="A"&&e.hasAttribute("href")}function iu(e,t){let{key:r,code:n}=e,o=t,a=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof St(o).HTMLInputElement&&!GE(o,r)||o instanceof St(o).HTMLTextAreaElement||o.isContentEditable)&&!((a==="link"||!a&&gf(o))&&r!=="Enter")}function Fr(e,t){let r=t.clientX,n=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function w6(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!gf(e)}function vm(e,t){return e instanceof HTMLInputElement?!GE(e,t):w6(e)}var C6=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function GE(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":C6.has(e.type)}var wr=null,jo=new Set,wo=new Map,rn=!1,Tc=!1,_6={Tab:!0,Escape:!0};function mf(e,t){for(let r of jo)r(e,t)}function T6(e){return!(e.metaKey||!en()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function mi(e){rn=!0,T6(e)&&(wr="keyboard",mf("keyboard",e))}function wn(e){wr="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(rn=!0,mf("pointer",e))}function WE(e){kE(e)&&(rn=!0,wr="virtual")}function VE(e){e.target===window||e.target===document||gi||!e.isTrusted||(!rn&&!Tc&&(wr="virtual",mf("virtual",e)),rn=!1,Tc=!1)}function qE(){gi||(rn=!1,Tc=!0)}function yi(e){if(typeof window>"u"||typeof document>"u"||wo.get(St(e)))return;let t=St(e),r=ce(e),n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){rn=!0,n.apply(this,arguments)},r.addEventListener("keydown",mi,!0),r.addEventListener("keyup",mi,!0),r.addEventListener("click",WE,!0),t.addEventListener("focus",VE,!0),t.addEventListener("blur",qE,!1),typeof PointerEvent<"u"&&(r.addEventListener("pointerdown",wn,!0),r.addEventListener("pointermove",wn,!0),r.addEventListener("pointerup",wn,!0)),t.addEventListener("beforeunload",()=>{YE(e)},{once:!0}),wo.set(t,{focus:n})}var YE=(e,t)=>{let r=St(e),n=ce(e);t&&n.removeEventListener("DOMContentLoaded",t),wo.has(r)&&(r.HTMLElement.prototype.focus=wo.get(r).focus,n.removeEventListener("keydown",mi,!0),n.removeEventListener("keyup",mi,!0),n.removeEventListener("click",WE,!0),r.removeEventListener("focus",VE,!0),r.removeEventListener("blur",qE,!1),typeof PointerEvent<"u"&&(n.removeEventListener("pointerdown",wn,!0),n.removeEventListener("pointermove",wn,!0),n.removeEventListener("pointerup",wn,!0)),wo.delete(r))};function A6(e){let t=ce(e),r;return t.readyState!=="loading"?yi(e):(r=()=>{yi(e)},t.addEventListener("DOMContentLoaded",r)),()=>YE(e,r)}typeof document<"u"&&A6();function Ho(){return wr!=="pointer"}function Uo(){return wr}function O6(){yi();let[e,t]=h.useState(wr);return h.useEffect(()=>{let r=()=>{t(wr)};return jo.add(r),()=>{jo.delete(r)}},[]),sn()?null:e}var R6=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function D6(e,t,r){let n=ce(r?.target),o=typeof window<"u"?St(r?.target).HTMLInputElement:HTMLInputElement,a=typeof window<"u"?St(r?.target).HTMLTextAreaElement:HTMLTextAreaElement,i=typeof window<"u"?St(r?.target).HTMLElement:HTMLElement,l=typeof window<"u"?St(r?.target).KeyboardEvent:KeyboardEvent;return e=e||n.activeElement instanceof o&&!R6.has(n.activeElement.type)||n.activeElement instanceof a||n.activeElement instanceof i&&n.activeElement.isContentEditable,!(e&&t==="keyboard"&&r instanceof l&&!_6[r.key])}function P6(e,t,r){yi(),h.useEffect(()=>{let n=(o,a)=>{D6(!!r?.isTextInput,o,a)&&e(Ho())};return jo.add(n),()=>{jo.delete(n)}},t)}function Cr(e){let t=ce(e),r=Le(t);if(Uo()==="virtual"){let n=r;FE(()=>{Le(t)===n&&e.isConnected&&rt(e)})}else rt(e)}function yf(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:o}=e,a=h.useCallback(s=>{if(s.target===s.currentTarget)return n&&n(s),o&&o(!1),!0},[n,o]),i=zE(a),l=h.useCallback(s=>{let u=ce(s.target),c=u?Le(u):Le();s.target===s.currentTarget&&c===we(s.nativeEvent)&&(r&&r(s),o&&o(!0),i(s))},[o,r,i]);return{focusProps:{onFocus:!t&&(r||o||n)?l:void 0,onBlur:!t&&(n||o)?a:void 0}}}function Sm(e){if(!e)return;let t=!0;return r=>{let n={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(n),t&&r.stopPropagation()}}function XE(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Sm(e.onKeyDown),onKeyUp:Sm(e.onKeyUp)}}}var bi=g.createContext(null);function F6(e){let t=h.useContext(bi)||{};df(t,e);let{ref:r,...n}=t;return n}var I6=g.forwardRef(function(e,t){let{children:r,...n}=e,o=Mt(t),a={...n,ref:o};return g.createElement(bi.Provider,{value:a},r)});function na(e,t){let{focusProps:r}=yf(e),{keyboardProps:n}=XE(e),o=ee(r,n),a=F6(t),i=e.isDisabled?{}:a,l=h.useRef(e.autoFocus);h.useEffect(()=>{l.current&&t.current&&Cr(t.current),l.current=!1},[t]);let s=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(s=void 0),{focusableProps:ee({...o,tabIndex:s},i)}}var L6=h.forwardRef(({children:e,...t},r)=>{r=Mt(r);let{focusableProps:n}=na(t,r),o=g.Children.only(e);h.useEffect(()=>{},[r,t.isDisabled]);let a=parseInt(g.version,10)<19?o.ref:o.props.ref;return g.cloneElement(o,{...ee(n,o.props),ref:sf(a,r)})}),k6=g.forwardRef(({children:e,...t},r)=>{r=Mt(r);let{pressProps:n}=ra({...t,ref:r}),{focusableProps:o}=na(t,r),a=g.Children.only(e);h.useEffect(()=>{},[r,t.isDisabled]);let i=parseInt(g.version,10)<19?a.ref:a.props.ref;return g.cloneElement(a,{...ee(n,o,a.props),ref:sf(i,r)})}),N6=g.forwardRef(({children:e,...t},r)=>{let n=h.useRef(!1),o=h.useContext(Bo);r=Mt(r||o?.ref);let a=ee(o||{},{...t,ref:r,register(){n.current=!0,o&&o.register()}});return df(o,r),h.useEffect(()=>{n.current||(n.current=!0)},[]),g.createElement(Bo.Provider,{value:a},e)});function M6({children:e}){let t=h.useMemo(()=>({register:()=>{}}),[]);return g.createElement(Bo.Provider,{value:t},e)}function bf(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,a=h.useRef({isFocusWithin:!1}),{addGlobalListener:i,removeAllGlobalListeners:l}=sl(),s=h.useCallback(d=>{d.currentTarget.contains(d.target)&&a.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(a.current.isFocusWithin=!1,l(),r&&r(d),o&&o(!1))},[r,o,a,l]),u=zE(s),c=h.useCallback(d=>{if(!d.currentTarget.contains(d.target))return;let f=ce(d.target),p=Le(f);if(!a.current.isFocusWithin&&p===we(d.nativeEvent)){n&&n(d),o&&o(!0),a.current.isFocusWithin=!0,u(d);let m=d.currentTarget;i(f,"focus",y=>{if(a.current.isFocusWithin&&!bt(m,y.target)){let E=new f.defaultView.FocusEvent("blur",{relatedTarget:y.target});UE(E,m);let b=hf(E);s(b)}},{capture:!0})}},[n,o,u,i,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:s}}}var Ac=!1,_a=0;function B6(){Ac=!0,setTimeout(()=>{Ac=!1},50)}function xm(e){e.pointerType==="touch"&&B6()}function j6(){if(!(typeof document>"u"))return _a===0&&(typeof PointerEvent<"u"&&document.addEventListener("pointerup",xm)),_a++,()=>{_a--,!(_a>0)&&(typeof PointerEvent<"u"&&document.removeEventListener("pointerup",xm))}}function Zn(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:o}=e,[a,i]=h.useState(!1),l=h.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;h.useEffect(j6,[]);let{addGlobalListener:s,removeAllGlobalListeners:u}=sl(),{hoverProps:c,triggerHoverEnd:d}=h.useMemo(()=>{let f=(y,E)=>{if(l.pointerType=E,o||E==="touch"||l.isHovered||!y.currentTarget.contains(y.target))return;l.isHovered=!0;let b=y.currentTarget;l.target=b,s(ce(y.target),"pointerover",v=>{l.isHovered&&l.target&&!bt(l.target,v.target)&&p(v,v.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:b,pointerType:E}),r&&r(!0),i(!0)},p=(y,E)=>{let b=l.target;l.pointerType="",l.target=null,!(E==="touch"||!l.isHovered||!b)&&(l.isHovered=!1,u(),n&&n({type:"hoverend",target:b,pointerType:E}),r&&r(!1),i(!1))},m={};return typeof PointerEvent<"u"&&(m.onPointerEnter=y=>{Ac&&y.pointerType==="mouse"||f(y,y.pointerType)},m.onPointerLeave=y=>{!o&&y.currentTarget.contains(y.target)&&p(y,y.pointerType)}),{hoverProps:m,triggerHoverEnd:p}},[t,r,n,o,l,s,u]);return h.useEffect(()=>{o&&d({currentTarget:l.target},l.pointerType)},[o]),{hoverProps:c,isHovered:a}}function JE(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:o}=e,a=h.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),i=Me(s=>{r&&$m(s,t)&&(o&&o(s),a.current.isPointerDown=!0)}),l=Me(s=>{r&&r(s)});h.useEffect(()=>{let s=a.current;if(n)return;let u=t.current,c=ce(u);if(typeof PointerEvent<"u"){let d=f=>{s.isPointerDown&&$m(f,t)&&l(f),s.isPointerDown=!1};return c.addEventListener("pointerdown",i,!0),c.addEventListener("click",d,!0),()=>{c.removeEventListener("pointerdown",i,!0),c.removeEventListener("click",d,!0)}}},[t,n,i,l])}function $m(e,t){if(e.button>0)return!1;if(e.target){let r=e.target.ownerDocument;if(!r||!r.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}var H6=500;function U6(e){let{isDisabled:t,onLongPressStart:r,onLongPressEnd:n,onLongPress:o,threshold:a=H6,accessibilityDescription:i}=e,l=h.useRef(void 0),{addGlobalListener:s,removeGlobalListener:u}=sl(),{pressProps:c}=ra({isDisabled:t,onPressStart(f){if(f.continuePropagation(),(f.pointerType==="mouse"||f.pointerType==="touch")&&(r&&r({...f,type:"longpressstart"}),l.current=setTimeout(()=>{f.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),ce(f.target).activeElement!==f.target&&rt(f.target),o&&o({...f,type:"longpress"}),l.current=void 0},a),f.pointerType==="touch")){let p=m=>{m.preventDefault()};s(f.target,"contextmenu",p,{once:!0}),s(window,"pointerup",()=>{setTimeout(()=>{u(f.target,"contextmenu",p)},30)},{once:!0})}},onPressEnd(f){l.current&&clearTimeout(l.current),n&&(f.pointerType==="mouse"||f.pointerType==="touch")&&n({...f,type:"longpressend"})}}),d=a6(o&&!t?i:void 0);return{longPressProps:ee(c,d)}}var Ei=Symbol("default");function fr({values:e,children:t}){for(let[r,n]of e)t=g.createElement(r.Provider,{value:n},t);return t}function ht(e){let{className:t,style:r,children:n,defaultClassName:o,defaultChildren:a,defaultStyle:i,values:l}=e;return h.useMemo(()=>{let s,u,c;return typeof t=="function"?s=t({...l,defaultClassName:o}):s=t,typeof r=="function"?u=r({...l,defaultStyle:i||{}}):u=r,typeof n=="function"?c=n({...l,defaultChildren:a}):n==null?c=a:c=n,{className:s??o,style:u||i?{...i,...u}:void 0,children:c??a,"data-rac":""}},[t,r,n,o,a,i,l])}function Ef(e,t){let r=h.useContext(e);if(t===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=t||Ei;if(!r.slots[n]){let o=new Intl.ListFormat().format(Object.keys(r.slots).map(i=>`"${i}"`)),a=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${a} Valid slot names are ${o}.`)}return r.slots[n]}return r}function qe(e,t,r){let n=Ef(r,e.slot)||{},{ref:o,...a}=n,i=Mt(h.useMemo(()=>sf(t,o),[t,o])),l=ee(a,e);return"style"in a&&a.style&&"style"in e&&e.style&&(typeof a.style=="function"||typeof e.style=="function"?l.style=s=>{let u=typeof a.style=="function"?a.style(s):a.style,c={...s.defaultStyle,...u},d=typeof e.style=="function"?e.style({...s,defaultStyle:c}):e.style;return{...c,...d}}:l.style={...a.style,...e.style}),[l,i]}function ZE(e=!0){let[t,r]=h.useState(e),n=h.useRef(!1),o=h.useCallback(a=>{n.current=!0,r(!!a)},[]);return ue(()=>{n.current||r(!1)},[]),[o,t]}var vf=h.createContext({placement:"bottom"});h.forwardRef(function(e,t){[e,t]=qe(e,t,vf);let r=e.placement,n={position:"absolute",transform:r==="top"||r==="bottom"?"translateX(-50%)":"translateY(-50%)"};r!=null&&(n[r]="100%");let o=ht({...e,defaultClassName:"react-aria-OverlayArrow",values:{placement:r}});o.style&&Object.keys(o.style).forEach(i=>o.style[i]===void 0&&delete o.style[i]);let a=xe(e);return g.createElement("div",{...a,...o,style:{...n,...o.style},ref:t,"data-placement":r})});function z6(e,t){let r=xe(e,{labelable:!0}),{hoverProps:n}=Zn({onHoverStart:()=>t?.open(!0),onHoverEnd:()=>t?.close()});return{tooltipProps:ee(r,n,{role:"tooltip"})}}function K6(e,t,r){let{isDisabled:n,trigger:o}=e,a=He(),i=h.useRef(!1),l=h.useRef(!1),s=()=>{(i.current||l.current)&&t.open(l.current)},u=b=>{!i.current&&!l.current&&t.close(b)};h.useEffect(()=>{let b=v=>{r&&r.current&&v.key==="Escape"&&(v.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",b,!0),()=>{document.removeEventListener("keydown",b,!0)}},[r,t]);let c=()=>{o!=="focus"&&(Uo()==="pointer"?i.current=!0:i.current=!1,s())},d=()=>{o!=="focus"&&(l.current=!1,i.current=!1,u())},f=()=>{l.current=!1,i.current=!1,u(!0)},p=()=>{Ho()&&(l.current=!0,s())},m=()=>{l.current=!1,i.current=!1,u(!0)},{hoverProps:y}=Zn({isDisabled:n,onHoverStart:c,onHoverEnd:d}),{focusableProps:E}=na({isDisabled:n,onFocus:p,onBlur:m},r);return{triggerProps:{"aria-describedby":t.isOpen?a:void 0,...ee(E,y,{onPointerDown:f,onKeyDown:f}),tabIndex:void 0},tooltipProps:{id:a}}}var Vt={top:"top",bottom:"top",left:"left",right:"left"},vi={top:"bottom",bottom:"top",left:"right",right:"left"},G6={top:"left",left:"top"},Oc={top:"height",left:"width"},QE={width:"totalWidth",height:"totalHeight"},Ta={},hr=typeof document<"u"?window.visualViewport:null;function wm(e){let t=0,r=0,n=0,o=0,a=0,i=0,l={};var s;let u=((s=hr?.scale)!==null&&s!==void 0?s:1)>1;if(e.tagName==="BODY"){let m=document.documentElement;n=m.clientWidth,o=m.clientHeight;var c;t=(c=hr?.width)!==null&&c!==void 0?c:n;var d;r=(d=hr?.height)!==null&&d!==void 0?d:o,l.top=m.scrollTop||e.scrollTop,l.left=m.scrollLeft||e.scrollLeft,hr&&(a=hr.offsetTop,i=hr.offsetLeft)}else({width:t,height:r,top:a,left:i}=Cn(e,!1)),l.top=e.scrollTop,l.left=e.scrollLeft,n=t,o=r;if(RE()&&(e.tagName==="BODY"||e.tagName==="HTML")&&u){l.top=0,l.left=0;var f;a=(f=hr?.pageTop)!==null&&f!==void 0?f:0;var p;i=(p=hr?.pageLeft)!==null&&p!==void 0?p:0}return{width:t,height:r,totalWidth:n,totalHeight:o,scroll:l,top:a,left:i}}function W6(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function Cm(e,t,r,n,o,a,i){var l;let s=(l=o.scroll[e])!==null&&l!==void 0?l:0,u=n[Oc[e]],c=n.scroll[Vt[e]]+a,d=u+n.scroll[Vt[e]]-a,f=t-s+i[e]-n[Vt[e]],p=t-s+r+i[e]-n[Vt[e]];return f<c?c-f:p>d?Math.max(d-p,c-f):0}function V6(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function _m(e){if(Ta[e])return Ta[e];let[t,r]=e.split(" "),n=Vt[t]||"right",o=G6[n];Vt[r]||(r="center");let a=Oc[n],i=Oc[o];return Ta[e]={placement:t,crossPlacement:r,axis:n,crossAxis:o,size:a,crossSize:i},Ta[e]}function lu(e,t,r,n,o,a,i,l,s,u){let{placement:c,crossPlacement:d,axis:f,crossAxis:p,size:m,crossSize:y}=n,E={};var b;E[p]=(b=e[p])!==null&&b!==void 0?b:0;var v,S,x,C;d==="center"?E[p]+=(((v=e[y])!==null&&v!==void 0?v:0)-((S=r[y])!==null&&S!==void 0?S:0))/2:d!==p&&(E[p]+=((x=e[y])!==null&&x!==void 0?x:0)-((C=r[y])!==null&&C!==void 0?C:0)),E[p]+=a;let $=e[p]-r[y]+s+u,w=e[p]+e[y]-s-u;if(E[p]=Mo(E[p],$,w),c===f){let T=l?i[m]:t[QE[m]];E[vi[f]]=Math.floor(T-e[f]+o)}else E[f]=Math.floor(e[f]+e[m]+o);return E}function q6(e,t,r,n,o,a,i,l){let s=n?r.height:t[QE.height];var u;let c=e.top!=null?r.top+e.top:r.top+(s-((u=e.bottom)!==null&&u!==void 0?u:0)-i);var d,f,p,m,y,E;let b=l!=="top"?Math.max(0,t.height+t.top+((d=t.scroll.top)!==null&&d!==void 0?d:0)-c-(((f=o.top)!==null&&f!==void 0?f:0)+((p=o.bottom)!==null&&p!==void 0?p:0)+a)):Math.max(0,c+i-(t.top+((m=t.scroll.top)!==null&&m!==void 0?m:0))-(((y=o.top)!==null&&y!==void 0?y:0)+((E=o.bottom)!==null&&E!==void 0?E:0)+a));return Math.min(t.height-a*2,b)}function Tm(e,t,r,n,o,a){let{placement:i,axis:l,size:s}=a;var u,c;if(i===l)return Math.max(0,r[l]-e[l]-((u=e.scroll[l])!==null&&u!==void 0?u:0)+t[l]-((c=n[l])!==null&&c!==void 0?c:0)-n[vi[l]]-o);var d;return Math.max(0,e[s]+e[l]+e.scroll[l]-t[l]-r[l]-r[s]-((d=n[l])!==null&&d!==void 0?d:0)-n[vi[l]]-o)}function Y6(e,t,r,n,o,a,i,l,s,u,c,d,f,p,m,y){let E=_m(e),{size:b,crossAxis:v,crossSize:S,placement:x,crossPlacement:C}=E,$=lu(t,l,r,E,c,d,u,f,m,y),w=c,T=Tm(l,u,t,o,a+c,E);if(i&&n[b]>T){let X=_m(`${vi[x]} ${C}`),pe=lu(t,l,r,X,c,d,u,f,m,y);Tm(l,u,t,o,a+c,X)>T&&(E=X,$=pe,w=c)}let O="bottom";E.axis==="top"?E.placement==="top"?O="top":E.placement==="bottom"&&(O="bottom"):E.crossAxis==="top"&&(E.crossPlacement==="top"?O="bottom":E.crossPlacement==="bottom"&&(O="top"));let D=Cm(v,$[v],r[S],l,s,a,u);$[v]+=D;let _=q6($,l,u,f,o,a,r.height,O);p&&p<_&&(_=p),r.height=Math.min(r.height,_),$=lu(t,l,r,E,w,d,u,f,m,y),D=Cm(v,$[v],r[S],l,s,a,u),$[v]+=D;let I={},L=t[v]-$[v]-o[Vt[v]],A=L+.5*t[S],P=m/2+y;var k,F,M,B;let N=Vt[v]==="left"?((k=o.left)!==null&&k!==void 0?k:0)+((F=o.right)!==null&&F!==void 0?F:0):((M=o.top)!==null&&M!==void 0?M:0)+((B=o.bottom)!==null&&B!==void 0?B:0),z=r[S]-N-m/2-y,U=t[v]+m/2-($[v]+o[Vt[v]]),j=t[v]+t[S]-m/2-($[v]+o[Vt[v]]),K=Mo(A,U,j);I[v]=Mo(K,P,z),{placement:x,crossPlacement:C}=E,m?L=I[v]:C==="right"?L+=t[S]:C==="center"&&(L+=t[S]/2);let H=x==="left"||x==="top"?r[b]:0,W={x:x==="top"||x==="bottom"?L:H,y:x==="left"||x==="right"?L:H};return{position:$,maxHeight:_,arrowOffsetLeft:I.left,arrowOffsetTop:I.top,placement:x,triggerAnchorPoint:W}}function X6(e){let{placement:t,targetNode:r,overlayNode:n,scrollNode:o,padding:a,shouldFlip:i,boundaryElement:l,offset:s,crossOffset:u,maxHeight:c,arrowSize:d=0,arrowBoundaryOffset:f=0}=e,p=n instanceof HTMLElement?J6(n):document.documentElement,m=p===document.documentElement,y=window.getComputedStyle(p).position,E=!!y&&y!=="static",b=m?Cn(r,!1):Am(r,p,!1);if(!m){let{marginTop:I,marginLeft:L}=window.getComputedStyle(r);b.top+=parseInt(I,10)||0,b.left+=parseInt(L,10)||0}let v=Cn(n,!0),S=V6(n);var x,C;v.width+=((x=S.left)!==null&&x!==void 0?x:0)+((C=S.right)!==null&&C!==void 0?C:0);var $,w;v.height+=(($=S.top)!==null&&$!==void 0?$:0)+((w=S.bottom)!==null&&w!==void 0?w:0);let T=W6(o),O=wm(l),D=wm(p),_=l.tagName==="BODY"?Cn(p,!1):Am(p,l,!1);return p.tagName==="HTML"&&l.tagName==="BODY"&&(D.scroll.top=0,D.scroll.left=0),Y6(t,b,v,T,S,a,i,O,D,_,s,u,E,c,d,f)}function Sf(e,t){let{top:r,left:n,width:o,height:a}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(o=e.offsetWidth,a=e.offsetHeight),{top:r,left:n,width:o,height:a}}function Cn(e,t){let{top:r,left:n,width:o,height:a}=Sf(e,t),{scrollTop:i,scrollLeft:l,clientTop:s,clientLeft:u}=document.documentElement;return{top:r+i-s,left:n+l-u,width:o,height:a}}function Am(e,t,r){let n=window.getComputedStyle(e),o;if(n.position==="fixed")o=Sf(e,r);else{o=Cn(e,r);let a=Cn(t,r),i=window.getComputedStyle(t);a.top+=(parseInt(i.borderTopWidth,10)||0)-t.scrollTop,a.left+=(parseInt(i.borderLeftWidth,10)||0)-t.scrollLeft,o.top-=a.top,o.left-=a.left}return o.top-=parseInt(n.marginTop,10)||0,o.left-=parseInt(n.marginLeft,10)||0,o}function J6(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!Om(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!Om(t);)t=t.parentElement;return t||document.documentElement}function Om(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}var ev=new WeakMap;function Z6(e){let{triggerRef:t,isOpen:r,onClose:n}=e;h.useEffect(()=>{if(!r||n===null)return;let o=a=>{let i=a.target;if(!t.current||i instanceof Node&&!i.contains(t.current)||a.target instanceof HTMLInputElement||a.target instanceof HTMLTextAreaElement)return;let l=n||ev.get(t.current);l&&l()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[r,n,t])}var Q6=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),eL=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function tL(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),n=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(n)return n.direction==="rtl";if(r.script)return Q6.has(r.script)}let t=e.split("-")[0];return eL.has(t)}var rL=Symbol.for("react-aria.i18n.locale");function tv(){let e=typeof window<"u"&&window[rL]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:tL(e)?"rtl":"ltr"}}var Rc=tv(),So=new Set;function Rm(){Rc=tv();for(let e of So)e(Rc)}function nL(){let e=sn(),[t,r]=h.useState(Rc);return h.useEffect(()=>(So.size===0&&window.addEventListener("languagechange",Rm),So.add(r),()=>{So.delete(r),So.size===0&&window.removeEventListener("languagechange",Rm)}),[]),e?{locale:"en-US",direction:"ltr"}:t}var oL=g.createContext(null);function pr(){let e=nL();return h.useContext(oL)||e}var Dc=function(e,t){return Dc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},Dc(e,t)};function dl(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Dc(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var se=function(){return se=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},se.apply(this,arguments)};function aL(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function su(e,t,r){if(arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}function uu(e,t){var r=t&&t.cache?t.cache:fL,n=t&&t.serializer?t.serializer:cL,o=t&&t.strategy?t.strategy:sL;return o(e,{cache:r,serializer:n})}function iL(e){return e==null||typeof e=="number"||typeof e=="boolean"}function lL(e,t,r,n){var o=iL(n)?n:r(n),a=t.get(o);return typeof a>"u"&&(a=e.call(this,n),t.set(o,a)),a}function rv(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),a=t.get(o);return typeof a>"u"&&(a=e.apply(this,n),t.set(o,a)),a}function nv(e,t,r,n,o){return r.bind(t,e,n,o)}function sL(e,t){var r=e.length===1?lL:rv;return nv(e,this,r,t.cache.create(),t.serializer)}function uL(e,t){return nv(e,this,rv,t.cache.create(),t.serializer)}var cL=function(){return JSON.stringify(arguments)},dL=(function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r},e})(),fL={create:function(){return new dL}},cu={variadic:uL},ae;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(ae||(ae={}));var Ee;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Ee||(Ee={}));var Nn;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Nn||(Nn={}));function Dm(e){return e.type===Ee.literal}function pL(e){return e.type===Ee.argument}function ov(e){return e.type===Ee.number}function av(e){return e.type===Ee.date}function iv(e){return e.type===Ee.time}function lv(e){return e.type===Ee.select}function sv(e){return e.type===Ee.plural}function hL(e){return e.type===Ee.pound}function uv(e){return e.type===Ee.tag}function cv(e){return!!(e&&typeof e=="object"&&e.type===Nn.number)}function Pc(e){return!!(e&&typeof e=="object"&&e.type===Nn.dateTime)}var dv=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,gL=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function mL(e){var t={};return e.replace(gL,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var yL=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function bL(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(yL).filter(function(f){return f.length>0}),r=[],n=0,o=t;n<o.length;n++){var a=o[n],i=a.split("/");if(i.length===0)throw new Error("Invalid number skeleton");for(var l=i[0],s=i.slice(1),u=0,c=s;u<c.length;u++){var d=c[u];if(d.length===0)throw new Error("Invalid number skeleton")}r.push({stem:l,options:s})}return r}function EL(e){return e.replace(/^(.*?)-/,"")}var Pm=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,fv=/^(@+)?(\+|#+)?[rs]?$/g,vL=/(\*)(0+)|(#+)(0+)|(0+)/g,pv=/^(0+)$/;function Fm(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(fv,function(r,n,o){return typeof o!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):o==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof o=="string"?o.length:0)),""}),t}function hv(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function SL(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!pv.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Im(e){var t={},r=hv(e);return r||t}function xL(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=EL(o.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=se(se(se({},t),{notation:"scientific"}),o.options.reduce(function(s,u){return se(se({},s),Im(u))},{}));continue;case"engineering":t=se(se(se({},t),{notation:"engineering"}),o.options.reduce(function(s,u){return se(se({},s),Im(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(o.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(vL,function(s,u,c,d,f,p){if(u)t.minimumIntegerDigits=c.length;else{if(d&&f)throw new Error("We currently do not support maximum integer digits");if(p)throw new Error("We currently do not support exact integer digits")}return""});continue}if(pv.test(o.stem)){t.minimumIntegerDigits=o.stem.length;continue}if(Pm.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Pm,function(s,u,c,d,f,p){return c==="*"?t.minimumFractionDigits=u.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:f&&p?(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length+p.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var a=o.options[0];a==="w"?t=se(se({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=se(se({},t),Fm(a)));continue}if(fv.test(o.stem)){t=se(se({},t),Fm(o.stem));continue}var i=hv(o.stem);i&&(t=se(se({},t),i));var l=SL(o.stem);l&&(t=se(se({},t),l))}return t}var Aa={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function $L(e,t){for(var r="",n=0;n<e.length;n++){var o=e.charAt(n);if(o==="j"){for(var a=0;n+1<e.length&&e.charAt(n+1)===o;)a++,n++;var i=1+(a&1),l=a<2?1:3+(a>>1),s="a",u=wL(t);for((u=="H"||u=="k")&&(l=0);l-- >0;)r+=s;for(;i-- >0;)r=u+r}else o==="J"?r+="H":r+=o}return r}function wL(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var o=Aa[n||""]||Aa[r||""]||Aa["".concat(r,"-001")]||Aa["001"];return o[0]}var du,CL=new RegExp("^".concat(dv.source,"*")),_L=new RegExp("".concat(dv.source,"*$"));function ie(e,t){return{start:e,end:t}}var TL=!!String.prototype.startsWith&&"_a".startsWith("a",1),AL=!!String.fromCodePoint,OL=!!Object.fromEntries,RL=!!String.prototype.codePointAt,DL=!!String.prototype.trimStart,PL=!!String.prototype.trimEnd,FL=!!Number.isSafeInteger,IL=FL?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Fc=!0;try{Lm=mv("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),Fc=((du=Lm.exec("a"))===null||du===void 0?void 0:du[0])==="a"}catch{Fc=!1}var Lm,km=TL?(function(e,t,r){return e.startsWith(t,r)}):(function(e,t,r){return e.slice(r,r+t.length)===t}),Ic=AL?String.fromCodePoint:(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r="",n=e.length,o=0,a;n>o;){if(a=e[o++],a>1114111)throw RangeError(a+" is not a valid code point");r+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return r}),Nm=OL?Object.fromEntries:(function(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r],a=o[0],i=o[1];t[a]=i}return t}),gv=RL?(function(e,t){return e.codePointAt(t)}):(function(e,t){var r=e.length;if(!(t<0||t>=r)){var n=e.charCodeAt(t),o;return n<55296||n>56319||t+1===r||(o=e.charCodeAt(t+1))<56320||o>57343?n:(n-55296<<10)+(o-56320)+65536}}),LL=DL?(function(e){return e.trimStart()}):(function(e){return e.replace(CL,"")}),kL=PL?(function(e){return e.trimEnd()}):(function(e){return e.replace(_L,"")});function mv(e,t){return new RegExp(e,t)}var Lc;Fc?(fu=mv("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),Lc=function(e,t){var r;fu.lastIndex=t;var n=fu.exec(e);return(r=n[1])!==null&&r!==void 0?r:""}):Lc=function(e,t){for(var r=[];;){var n=gv(e,t);if(n===void 0||yv(n)||jL(n))break;r.push(n),t+=n>=65536?2:1}return Ic.apply(void 0,r)};var fu,NL=(function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var o=[];!this.isEOF();){var a=this.char();if(a===123){var i=this.parseArgument(t,n);if(i.err)return i;o.push(i.val)}else{if(a===125&&t>0)break;if(a===35&&(r==="plural"||r==="selectordinal")){var l=this.clonePosition();this.bump(),o.push({type:Ee.pound,location:ie(l,this.clonePosition())})}else if(a===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(ae.UNMATCHED_CLOSING_TAG,ie(this.clonePosition(),this.clonePosition()))}else if(a===60&&!this.ignoreTag&&kc(this.peek()||0)){var i=this.parseTag(t,r);if(i.err)return i;o.push(i.val)}else{var i=this.parseLiteral(t,r);if(i.err)return i;o.push(i.val)}}}return{val:o,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ee.literal,value:"<".concat(o,"/>"),location:ie(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(t+1,r,!0);if(a.err)return a;var i=a.val,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!kc(this.char()))return this.error(ae.INVALID_TAG,ie(l,this.clonePosition()));var s=this.clonePosition(),u=this.parseTagName();return o!==u?this.error(ae.UNMATCHED_CLOSING_TAG,ie(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Ee.tag,value:o,children:i,location:ie(n,this.clonePosition())},err:null}:this.error(ae.INVALID_TAG,ie(l,this.clonePosition())))}else return this.error(ae.UNCLOSED_TAG,ie(n,this.clonePosition()))}else return this.error(ae.INVALID_TAG,ie(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&BL(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),o="";;){var a=this.tryParseQuote(r);if(a){o+=a;continue}var i=this.tryParseUnquoted(t,r);if(i){o+=i;continue}var l=this.tryParseLeftAngleBracket();if(l){o+=l;continue}break}var s=ie(n,this.clonePosition());return{val:{type:Ee.literal,value:o,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!ML(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return Ic.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),Ic(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ae.EXPECT_ARGUMENT_CLOSING_BRACE,ie(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(ae.EMPTY_ARGUMENT,ie(n,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(ae.MALFORMED_ARGUMENT,ie(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ae.EXPECT_ARGUMENT_CLOSING_BRACE,ie(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ee.argument,value:o,location:ie(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ae.EXPECT_ARGUMENT_CLOSING_BRACE,ie(n,this.clonePosition())):this.parseArgumentOptions(t,r,o,n);default:return this.error(ae.MALFORMED_ARGUMENT,ie(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Lc(this.message,r),o=r+n.length;this.bumpTo(o);var a=this.clonePosition(),i=ie(t,a);return{value:n,location:i}},e.prototype.parseArgumentOptions=function(t,r,n,o){var a,i=this.clonePosition(),l=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(l){case"":return this.error(ae.EXPECT_ARGUMENT_TYPE,ie(i,s));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var f=kL(d.val);if(f.length===0)return this.error(ae.EXPECT_ARGUMENT_STYLE,ie(this.clonePosition(),this.clonePosition()));var p=ie(c,this.clonePosition());u={style:f,styleLocation:p}}var m=this.tryParseArgumentClose(o);if(m.err)return m;var y=ie(o,this.clonePosition());if(u&&km(u?.style,"::",0)){var E=LL(u.style.slice(2));if(l==="number"){var d=this.parseNumberSkeletonFromString(E,u.styleLocation);return d.err?d:{val:{type:Ee.number,value:n,location:y,style:d.val},err:null}}else{if(E.length===0)return this.error(ae.EXPECT_DATE_TIME_SKELETON,y);var b=E;this.locale&&(b=$L(E,this.locale));var f={type:Nn.dateTime,pattern:b,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?mL(b):{}},v=l==="date"?Ee.date:Ee.time;return{val:{type:v,value:n,location:y,style:f},err:null}}}return{val:{type:l==="number"?Ee.number:l==="date"?Ee.date:Ee.time,value:n,location:y,style:(a=u?.style)!==null&&a!==void 0?a:null},err:null}}case"plural":case"selectordinal":case"select":{var S=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ae.EXPECT_SELECT_ARGUMENT_OPTIONS,ie(S,se({},S)));this.bumpSpace();var x=this.parseIdentifierIfPossible(),C=0;if(l!=="select"&&x.value==="offset"){if(!this.bumpIf(":"))return this.error(ae.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ie(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(ae.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ae.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),x=this.parseIdentifierIfPossible(),C=d.val}var $=this.tryParsePluralOrSelectOptions(t,l,r,x);if($.err)return $;var m=this.tryParseArgumentClose(o);if(m.err)return m;var w=ie(o,this.clonePosition());return l==="select"?{val:{type:Ee.select,value:n,options:Nm($.val),location:w},err:null}:{val:{type:Ee.plural,value:n,options:Nm($.val),offset:C,pluralType:l==="plural"?"cardinal":"ordinal",location:w},err:null}}default:return this.error(ae.INVALID_ARGUMENT_TYPE,ie(i,s))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(ae.EXPECT_ARGUMENT_CLOSING_BRACE,ie(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ae.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ie(o,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=bL(t)}catch{return this.error(ae.INVALID_NUMBER_SKELETON,r)}return{val:{type:Nn.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?xL(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,o){for(var a,i=!1,l=[],s=new Set,u=o.value,c=o.location;;){if(u.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(ae.EXPECT_PLURAL_ARGUMENT_SELECTOR,ae.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;c=ie(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(s.has(u))return this.error(r==="select"?ae.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ae.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(i=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?ae.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ae.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ie(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(t+1,r,n);if(m.err)return m;var y=this.tryParseArgumentClose(p);if(y.err)return y;l.push([u,{value:m.val,location:ie(p,this.clonePosition())}]),s.add(u),this.bumpSpace(),a=this.parseIdentifierIfPossible(),u=a.value,c=a.location}return l.length===0?this.error(r==="select"?ae.EXPECT_SELECT_ARGUMENT_SELECTOR:ae.EXPECT_PLURAL_ARGUMENT_SELECTOR,ie(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(ae.MISSING_OTHER_CLAUSE,ie(this.clonePosition(),this.clonePosition())):{val:l,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var a=!1,i=0;!this.isEOF();){var l=this.char();if(l>=48&&l<=57)a=!0,i=i*10+(l-48),this.bump();else break}var s=ie(o,this.clonePosition());return a?(i*=n,IL(i)?{val:i,err:null}:this.error(r,s)):this.error(t,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=gv(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(km(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&yv(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n??null},e})();function kc(e){return e>=97&&e<=122||e>=65&&e<=90}function ML(e){return kc(e)||e===47}function BL(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function yv(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function jL(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Nc(e){e.forEach(function(t){if(delete t.location,lv(t)||sv(t))for(var r in t.options)delete t.options[r].location,Nc(t.options[r].value);else ov(t)&&cv(t.style)||(av(t)||iv(t))&&Pc(t.style)?delete t.style.location:uv(t)&&Nc(t.children)})}function HL(e,t){t===void 0&&(t={}),t=se({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new NL(e,t).parse();if(r.err){var n=SyntaxError(ae[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t?.captureLocation||Nc(r.val),r.val}var Mn;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Mn||(Mn={}));var fl=(function(e){dl(t,e);function t(r,n,o){var a=e.call(this,r)||this;return a.code=n,a.originalMessage=o,a}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t})(Error),Mm=(function(e){dl(t,e);function t(r,n,o,a){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(o).join('", "'),'"'),Mn.INVALID_VALUE,a)||this}return t})(fl),UL=(function(e){dl(t,e);function t(r,n,o){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),Mn.INVALID_VALUE,o)||this}return t})(fl),zL=(function(e){dl(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),Mn.MISSING_VALUE,n)||this}return t})(fl),Ze;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Ze||(Ze={}));function KL(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==Ze.literal||r.type!==Ze.literal?t.push(r):n.value+=r.value,t},[])}function GL(e){return typeof e=="function"}function Ja(e,t,r,n,o,a,i){if(e.length===1&&Dm(e[0]))return[{type:Ze.literal,value:e[0].value}];for(var l=[],s=0,u=e;s<u.length;s++){var c=u[s];if(Dm(c)){l.push({type:Ze.literal,value:c.value});continue}if(hL(c)){typeof a=="number"&&l.push({type:Ze.literal,value:r.getNumberFormat(t).format(a)});continue}var d=c.value;if(!(o&&d in o))throw new zL(d,i);var f=o[d];if(pL(c)){(!f||typeof f=="string"||typeof f=="number")&&(f=typeof f=="string"||typeof f=="number"?String(f):""),l.push({type:typeof f=="string"?Ze.literal:Ze.object,value:f});continue}if(av(c)){var p=typeof c.style=="string"?n.date[c.style]:Pc(c.style)?c.style.parsedOptions:void 0;l.push({type:Ze.literal,value:r.getDateTimeFormat(t,p).format(f)});continue}if(iv(c)){var p=typeof c.style=="string"?n.time[c.style]:Pc(c.style)?c.style.parsedOptions:n.time.medium;l.push({type:Ze.literal,value:r.getDateTimeFormat(t,p).format(f)});continue}if(ov(c)){var p=typeof c.style=="string"?n.number[c.style]:cv(c.style)?c.style.parsedOptions:void 0;p&&p.scale&&(f=f*(p.scale||1)),l.push({type:Ze.literal,value:r.getNumberFormat(t,p).format(f)});continue}if(uv(c)){var m=c.children,y=c.value,E=o[y];if(!GL(E))throw new UL(y,"function",i);var b=Ja(m,t,r,n,o,a),v=E(b.map(function(C){return C.value}));Array.isArray(v)||(v=[v]),l.push.apply(l,v.map(function(C){return{type:typeof C=="string"?Ze.literal:Ze.object,value:C}}))}if(lv(c)){var S=c.options[f]||c.options.other;if(!S)throw new Mm(c.value,f,Object.keys(c.options),i);l.push.apply(l,Ja(S.value,t,r,n,o));continue}if(sv(c)){var S=c.options["=".concat(f)];if(!S){if(!Intl.PluralRules)throw new fl(`Intl.PluralRules is not available in this environment.
661
+ Try polyfilling it using "@formatjs/intl-pluralrules"
662
+ `,Mn.MISSING_INTL_API,i);var x=r.getPluralRules(t,{type:c.pluralType}).select(f-(c.offset||0));S=c.options[x]||c.options.other}if(!S)throw new Mm(c.value,f,Object.keys(c.options),i);l.push.apply(l,Ja(S.value,t,r,n,o,f-(c.offset||0)));continue}}return KL(l)}function WL(e,t){return t?se(se(se({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=se(se({},e[n]),t[n]||{}),r},{})):e}function VL(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=WL(e[n],t[n]),r},se({},e)):e}function pu(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function qL(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:uu(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,su([void 0],r,!1)))},{cache:pu(e.number),strategy:cu.variadic}),getDateTimeFormat:uu(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,su([void 0],r,!1)))},{cache:pu(e.dateTime),strategy:cu.variadic}),getPluralRules:uu(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,su([void 0],r,!1)))},{cache:pu(e.pluralRules),strategy:cu.variadic})}}(function(){function e(t,r,n,o){r===void 0&&(r=e.defaultLocale);var a=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(s){var u=a.formatToParts(s);if(u.length===1)return u[0].value;var c=u.reduce(function(d,f){return!d.length||f.type!==Ze.literal||typeof d[d.length-1]!="string"?d.push(f.value):d[d.length-1]+=f.value,d},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(s){return Ja(a.ast,a.locales,a.formatters,a.formats,s,void 0,a.message)},this.resolvedOptions=function(){var s;return{locale:((s=a.resolvedLocale)===null||s===void 0?void 0:s.toString())||Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var i=o||{};i.formatters;var l=aL(i,["formatters"]);this.ast=e.__parse(t,se(se({},l),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=VL(e.formats,n),this.formatters=o&&o.formatters||qL(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=HL,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e})();var YL=Symbol.for("react-aria.i18n.locale"),XL=Symbol.for("react-aria.i18n.strings"),Oa,bv=class Ev{getStringForLocale(t,r){let n=this.getStringsForLocale(r)[t];if(!n)throw new Error(`Could not find intl message ${t} in ${r} locale`);return n}getStringsForLocale(t){let r=this.strings[t];return r||(r=JL(t,this.strings,this.defaultLocale),this.strings[t]=r),r}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let r=window[YL];if(Oa===void 0){let o=window[XL];if(!o)return null;Oa={};for(let a in o)Oa[a]=new Ev({[r]:o[a]},r)}let n=Oa?.[t];if(!n)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}constructor(t,r="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,n])=>n)),this.defaultLocale=r}};function JL(e,t,r="en-US"){if(t[e])return t[e];let n=ZL(e);if(t[n])return t[n];for(let o in t)if(o.startsWith(n+"-"))return t[o];return t[r]}function ZL(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}var Bm=new Map,jm=new Map,QL=class{format(e,t){let r=this.strings.getStringForLocale(e,this.locale);return typeof r=="function"?r(t,this):r}plural(e,t,r="cardinal"){let n=t["="+e];if(n)return typeof n=="function"?n():n;let o=this.locale+":"+r,a=Bm.get(o);a||(a=new Intl.PluralRules(this.locale,{type:r}),Bm.set(o,a));let i=a.select(e);return n=t[i]||t.other,typeof n=="function"?n():n}number(e){let t=jm.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),jm.set(this.locale,t)),t.format(e)}select(e,t){let r=e[t]||e.other;return typeof r=="function"?r():r}constructor(e,t){this.locale=e,this.strings=t}},Hm=new WeakMap;function ek(e){let t=Hm.get(e);return t||(t=new bv(e),Hm.set(e,t)),t}function tk(e,t){return bv.getGlobalDictionaryForPackage(t)||ek(e)}function rk(e,t){let{locale:r}=pr(),n=tk(e,t);return h.useMemo(()=>new QL(r,n),[r,n])}var hu=new Map,Mc=!1;try{Mc=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}var Si=!1;try{Si=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}var vv={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}},nk=class{format(e){let t="";if(!Mc&&this.options.signDisplay!=null?t=ak(this.numberFormatter,this.options.signDisplay,e):t=this.numberFormatter.format(e),this.options.style==="unit"&&!Si){var r;let{unit:n,unitDisplay:o="short",locale:a}=this.resolvedOptions();if(!n)return t;let i=(r=vv[n])===null||r===void 0?void 0:r[o];t+=i[a]||i.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >= start date");return`${this.format(e)} – ${this.format(t)}`}formatRangeToParts(e,t){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(e),n=this.numberFormatter.formatToParts(t);return[...r.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...n.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return!Mc&&this.options.signDisplay!=null&&(e={...e,signDisplay:this.options.signDisplay}),!Si&&this.options.style==="unit"&&(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=ok(e,t),this.options=t}};function ok(e,t={}){let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),t.style==="unit"&&!Si){var n;let{unit:i,unitDisplay:l="short"}=t;if(!i)throw new Error('unit option must be provided with style: "unit"');if(!(!((n=vv[i])===null||n===void 0)&&n[l]))throw new Error(`Unsupported unit ${i} with unitDisplay = ${l}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((i,l)=>i[0]<l[0]?-1:1).join():"");if(hu.has(o))return hu.get(o);let a=new Intl.NumberFormat(e,t);return hu.set(o,a),a}function ak(e,t,r){if(t==="auto")return e.format(r);if(t==="never")return e.format(Math.abs(r));{let n=!1;if(t==="always"?n=r>0||Object.is(r,0):t==="exceptZero"&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),n){let o=e.format(-r),a=e.format(r),i=o.replace(a,"").replace(/\u200e|\u061C/,"");return[...i].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(a,"!!!").replace(i,"+").replace("!!!",a)}else return e.format(r)}}function ik(e={}){let{locale:t}=pr();return h.useMemo(()=>new nk(t,e),[t,e])}var gu=new Map;function lk(e){let{locale:t}=pr(),r=t+(e?Object.entries(e).sort((o,a)=>o[0]<a[0]?-1:1).join():"");if(gu.has(r))return gu.get(r);let n=new Intl.Collator(t,e);return gu.set(r,n),n}var Ir=typeof document<"u"?window.visualViewport:null;function xf(e){let{direction:t}=pr(),{arrowSize:r,targetRef:n,overlayRef:o,arrowRef:a,scrollRef:i=o,placement:l="bottom",containerPadding:s=12,shouldFlip:u=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:d=0,crossOffset:f=0,shouldUpdatePosition:p=!0,isOpen:m=!0,onClose:y,maxHeight:E,arrowBoundaryOffset:b=0}=e,[v,S]=h.useState(null),x=[p,l,o.current,n.current,a?.current,i.current,s,u,c,d,f,m,t,E,b,r],C=h.useRef(Ir?.scale);h.useEffect(()=>{m&&(C.current=Ir?.scale)},[m]);let $=h.useCallback(()=>{if(p===!1||!m||!o.current||!n.current||!c||Ir?.scale!==C.current)return;let I=null;if(i.current&&i.current.contains(document.activeElement)){var L;let N=(L=document.activeElement)===null||L===void 0?void 0:L.getBoundingClientRect(),z=i.current.getBoundingClientRect();var A;if(I={type:"top",offset:((A=N?.top)!==null&&A!==void 0?A:0)-z.top},I.offset>z.height/2){I.type="bottom";var P;I.offset=((P=N?.bottom)!==null&&P!==void 0?P:0)-z.bottom}}let k=o.current;if(!E&&o.current){var F;k.style.top="0px",k.style.bottom="";var M;k.style.maxHeight=((M=(F=window.visualViewport)===null||F===void 0?void 0:F.height)!==null&&M!==void 0?M:window.innerHeight)+"px"}let B=X6({placement:uk(l,t),overlayNode:o.current,targetNode:n.current,scrollNode:i.current||o.current,padding:s,shouldFlip:u,boundaryElement:c,offset:d,crossOffset:f,maxHeight:E,arrowSize:r??(a?.current?Sf(a.current,!0).width:0),arrowBoundaryOffset:b});if(B.position){if(k.style.top="",k.style.bottom="",k.style.left="",k.style.right="",Object.keys(B.position).forEach(N=>k.style[N]=B.position[N]+"px"),k.style.maxHeight=B.maxHeight!=null?B.maxHeight+"px":"",I&&document.activeElement&&i.current){let N=document.activeElement.getBoundingClientRect(),z=i.current.getBoundingClientRect(),U=N[I.type]-z[I.type];i.current.scrollTop+=U-I.offset}S(B)}},x);ue($,x),sk($),hi({ref:o,onResize:$}),hi({ref:n,onResize:$});let w=h.useRef(!1);ue(()=>{let I,L=()=>{w.current=!0,clearTimeout(I),I=setTimeout(()=>{w.current=!1},500),$()},A=()=>{w.current&&L()};return Ir?.addEventListener("resize",L),Ir?.addEventListener("scroll",A),()=>{Ir?.removeEventListener("resize",L),Ir?.removeEventListener("scroll",A)}},[$]);let T=h.useCallback(()=>{w.current||y?.()},[y,w]);Z6({triggerRef:n,isOpen:m,onClose:y&&T});var O,D,_;return{overlayProps:{style:{position:v?"absolute":"fixed",top:v?void 0:0,left:v?void 0:0,zIndex:1e5,...v?.position,maxHeight:(O=v?.maxHeight)!==null&&O!==void 0?O:"100vh"}},placement:(D=v?.placement)!==null&&D!==void 0?D:null,triggerAnchorPoint:(_=v?.triggerAnchorPoint)!==null&&_!==void 0?_:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:v?.arrowOffsetLeft,top:v?.arrowOffsetTop}},updatePosition:$}}function sk(e){ue(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function uk(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}var Um=g.createContext(null),Bc="react-aria-focus-scope-restore",me=null;function $f(e){let{children:t,contain:r,restoreFocus:n,autoFocus:o}=e,a=h.useRef(null),i=h.useRef(null),l=h.useRef([]),{parentNode:s}=h.useContext(Um)||{},u=h.useMemo(()=>new Hc({scopeRef:l}),[l]);ue(()=>{let f=s||_e.root;if(_e.getTreeNode(f.scopeRef)&&me&&!xi(me,f.scopeRef)){let p=_e.getTreeNode(me);p&&(f=p)}f.addChild(u),_e.addNode(u)},[u,s]),ue(()=>{let f=_e.getTreeNode(l);f&&(f.contain=!!r)},[r]),ue(()=>{var f;let p=(f=a.current)===null||f===void 0?void 0:f.nextSibling,m=[],y=E=>E.stopPropagation();for(;p&&p!==i.current;)m.push(p),p.addEventListener(Bc,y),p=p.nextSibling;return l.current=m,()=>{for(let E of m)E.removeEventListener(Bc,y)}},[t]),gk(l,n,r),fk(l,r),mk(l,n,r),hk(l,o),h.useEffect(()=>{let f=Le(ce(l.current?l.current[0]:void 0)),p=null;if($t(f,l.current)){for(let m of _e.traverse())m.scopeRef&&$t(f,m.scopeRef.current)&&(p=m);p===_e.getTreeNode(l)&&(me=p.scopeRef)}},[l]),ue(()=>()=>{var f,p,m;let y=(m=(p=_e.getTreeNode(l))===null||p===void 0||(f=p.parent)===null||f===void 0?void 0:f.scopeRef)!==null&&m!==void 0?m:null;(l===me||xi(l,me))&&(!y||_e.getTreeNode(y))&&(me=y),_e.removeTreeNode(l)},[l]);let c=h.useMemo(()=>ck(l),[]),d=h.useMemo(()=>({focusManager:c,parentNode:u}),[u,c]);return g.createElement(Um.Provider,{value:d},g.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,g.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:i}))}function ck(e){return{focusNext(t={}){let r=e.current,{from:n,tabbable:o,wrap:a,accept:i}=t;var l;let s=n||Le(ce((l=r[0])!==null&&l!==void 0?l:void 0)),u=r[0].previousElementSibling,c=Gr(r),d=ot(c,{tabbable:o,accept:i},r);d.currentNode=$t(s,r)?s:u;let f=d.nextNode();return!f&&a&&(d.currentNode=u,f=d.nextNode()),f&&nt(f,!0),f},focusPrevious(t={}){let r=e.current,{from:n,tabbable:o,wrap:a,accept:i}=t;var l;let s=n||Le(ce((l=r[0])!==null&&l!==void 0?l:void 0)),u=r[r.length-1].nextElementSibling,c=Gr(r),d=ot(c,{tabbable:o,accept:i},r);d.currentNode=$t(s,r)?s:u;let f=d.previousNode();return!f&&a&&(d.currentNode=u,f=d.previousNode()),f&&nt(f,!0),f},focusFirst(t={}){let r=e.current,{tabbable:n,accept:o}=t,a=Gr(r),i=ot(a,{tabbable:n,accept:o},r);i.currentNode=r[0].previousElementSibling;let l=i.nextNode();return l&&nt(l,!0),l},focusLast(t={}){let r=e.current,{tabbable:n,accept:o}=t,a=Gr(r),i=ot(a,{tabbable:n,accept:o},r);i.currentNode=r[r.length-1].nextElementSibling;let l=i.previousNode();return l&&nt(l,!0),l}}}function Gr(e){return e[0].parentElement}function xo(e){let t=_e.getTreeNode(me);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function dk(e){if(e.checked)return!0;let t=[];if(!e.form)t=[...ce(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(o=>!o.form);else{var r,n;t=[...((n=e.form)===null||n===void 0||(r=n.elements)===null||r===void 0?void 0:r.namedItem(e.name))??[]]}return t?!t.some(o=>o.checked):!1}function fk(e,t){let r=h.useRef(void 0),n=h.useRef(void 0);ue(()=>{let o=e.current;if(!t){n.current&&(cancelAnimationFrame(n.current),n.current=void 0);return}let a=ce(o?o[0]:void 0),i=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!xo(e)||u.isComposing)return;let c=Le(a),d=e.current;if(!d||!$t(c,d))return;let f=Gr(d),p=ot(f,{tabbable:!0},d);if(!c)return;p.currentNode=c;let m=u.shiftKey?p.previousNode():p.nextNode();m||(p.currentNode=u.shiftKey?d[d.length-1].nextElementSibling:d[0].previousElementSibling,m=u.shiftKey?p.previousNode():p.nextNode()),u.preventDefault(),m&&nt(m,!0)},l=u=>{(!me||xi(me,e))&&$t(we(u),e.current)?(me=e,r.current=we(u)):xo(e)&&!xr(we(u),e)?r.current?r.current.focus():me&&me.current&&jc(me.current):xo(e)&&(r.current=we(u))},s=u=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{let c=Uo(),d=(c==="virtual"||c===null)&&cf()&&DE(),f=Le(a);if(!d&&f&&xo(e)&&!xr(f,e)){me=e;let m=we(u);if(m&&m.isConnected){var p;r.current=m,(p=r.current)===null||p===void 0||p.focus()}else me.current&&jc(me.current)}})};return a.addEventListener("keydown",i,!1),a.addEventListener("focusin",l,!1),o?.forEach(u=>u.addEventListener("focusin",l,!1)),o?.forEach(u=>u.addEventListener("focusout",s,!1)),()=>{a.removeEventListener("keydown",i,!1),a.removeEventListener("focusin",l,!1),o?.forEach(u=>u.removeEventListener("focusin",l,!1)),o?.forEach(u=>u.removeEventListener("focusout",s,!1))}},[e,t]),ue(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n])}function Sv(e){return xr(e)}function $t(e,t){return!e||!t?!1:t.some(r=>r.contains(e))}function xr(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of _e.traverse(_e.getTreeNode(t)))if(r&&$t(e,r.current))return!0;return!1}function pk(e){return xr(e,me)}function xi(e,t){var r;let n=(r=_e.getTreeNode(t))===null||r===void 0?void 0:r.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function nt(e,t=!1){if(e!=null&&!t)try{Cr(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function xv(e,t=!0){let r=e[0].previousElementSibling,n=Gr(e),o=ot(n,{tabbable:t},e);o.currentNode=r;let a=o.nextNode();return t&&!a&&(n=Gr(e),o=ot(n,{tabbable:!1},e),o.currentNode=r,a=o.nextNode()),a}function jc(e,t=!0){nt(xv(e,t))}function hk(e,t){let r=g.useRef(t);h.useEffect(()=>{if(r.current){me=e;let n=ce(e.current?e.current[0]:void 0);!$t(Le(n),me.current)&&e.current&&jc(e.current)}r.current=!1},[e])}function gk(e,t,r){ue(()=>{if(t||r)return;let n=e.current,o=ce(n?n[0]:void 0),a=i=>{let l=we(i);$t(l,e.current)?me=e:Sv(l)||(me=null)};return o.addEventListener("focusin",a,!1),n?.forEach(i=>i.addEventListener("focusin",a,!1)),()=>{o.removeEventListener("focusin",a,!1),n?.forEach(i=>i.removeEventListener("focusin",a,!1))}},[e,t,r])}function zm(e){let t=_e.getTreeNode(me);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function mk(e,t,r){let n=h.useRef(typeof document<"u"?Le(ce(e.current?e.current[0]:void 0)):null);ue(()=>{let o=e.current,a=ce(o?o[0]:void 0);if(!t||r)return;let i=()=>{(!me||xi(me,e))&&$t(Le(a),e.current)&&(me=e)};return a.addEventListener("focusin",i,!1),o?.forEach(l=>l.addEventListener("focusin",i,!1)),()=>{a.removeEventListener("focusin",i,!1),o?.forEach(l=>l.removeEventListener("focusin",i,!1))}},[e,r]),ue(()=>{let o=ce(e.current?e.current[0]:void 0);if(!t)return;let a=i=>{if(i.key!=="Tab"||i.altKey||i.ctrlKey||i.metaKey||!xo(e)||i.isComposing)return;let l=o.activeElement;if(!xr(l,e)||!zm(e))return;let s=_e.getTreeNode(e);if(!s)return;let u=s.nodeToRestore,c=ot(o.body,{tabbable:!0});c.currentNode=l;let d=i.shiftKey?c.previousNode():c.nextNode();if((!u||!u.isConnected||u===o.body)&&(u=void 0,s.nodeToRestore=void 0),(!d||!xr(d,e))&&u){c.currentNode=u;do d=i.shiftKey?c.previousNode():c.nextNode();while(xr(d,e));i.preventDefault(),i.stopPropagation(),d?nt(d,!0):Sv(u)?nt(u,!0):l.blur()}};return r||o.addEventListener("keydown",a,!0),()=>{r||o.removeEventListener("keydown",a,!0)}},[e,t,r]),ue(()=>{let o=ce(e.current?e.current[0]:void 0);if(!t)return;let a=_e.getTreeNode(e);if(a){var i;return a.nodeToRestore=(i=n.current)!==null&&i!==void 0?i:void 0,()=>{let l=_e.getTreeNode(e);if(!l)return;let s=l.nodeToRestore,u=Le(o);if(t&&s&&(u&&xr(u,e)||u===o.body&&zm(e))){let c=_e.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let d=c.getTreeNode(e);for(;d;){if(d.nodeToRestore&&d.nodeToRestore.isConnected){Km(d.nodeToRestore);return}d=d.parent}for(d=c.getTreeNode(e);d;){if(d.scopeRef&&d.scopeRef.current&&_e.getTreeNode(d.scopeRef)){let f=xv(d.scopeRef.current,!0);Km(f);return}d=d.parent}}})}}}},[e,t])}function Km(e){e.dispatchEvent(new CustomEvent(Bc,{bubbles:!0,cancelable:!0}))&&nt(e)}function ot(e,t,r){let n=t?.tabbable?h6:jE,o=e?.nodeType===Node.ELEMENT_NODE?e:null,a=ce(o),i=I8(a,e||a,NodeFilter.SHOW_ELEMENT,{acceptNode(l){var s;return!(t==null||(s=t.from)===null||s===void 0)&&s.contains(l)||t?.tabbable&&l.tagName==="INPUT"&&l.getAttribute("type")==="radio"&&(!dk(l)||i.currentNode.tagName==="INPUT"&&i.currentNode.type==="radio"&&i.currentNode.name===l.name)?NodeFilter.FILTER_REJECT:n(l)&&(!r||$t(l,r))&&(!t?.accept||t.accept(l))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(i.currentNode=t.from),i}function yk(e,t={}){return{focusNext(r={}){let n=e.current;if(!n)return null;let{from:o,tabbable:a=t.tabbable,wrap:i=t.wrap,accept:l=t.accept}=r,s=o||Le(ce(n)),u=ot(n,{tabbable:a,accept:l});n.contains(s)&&(u.currentNode=s);let c=u.nextNode();return!c&&i&&(u.currentNode=n,c=u.nextNode()),c&&nt(c,!0),c},focusPrevious(r=t){let n=e.current;if(!n)return null;let{from:o,tabbable:a=t.tabbable,wrap:i=t.wrap,accept:l=t.accept}=r,s=o||Le(ce(n)),u=ot(n,{tabbable:a,accept:l});if(n.contains(s))u.currentNode=s;else{let d=mu(u);return d&&nt(d,!0),d??null}let c=u.previousNode();if(!c&&i){u.currentNode=n;let d=mu(u);if(!d)return null;c=d}return c&&nt(c,!0),c??null},focusFirst(r=t){let n=e.current;if(!n)return null;let{tabbable:o=t.tabbable,accept:a=t.accept}=r,i=ot(n,{tabbable:o,accept:a}).nextNode();return i&&nt(i,!0),i},focusLast(r=t){let n=e.current;if(!n)return null;let{tabbable:o=t.tabbable,accept:a=t.accept}=r,i=ot(n,{tabbable:o,accept:a}),l=mu(i);return l&&nt(l,!0),l??null}}}function mu(e){let t,r;do r=e.lastChild(),r&&(t=r);while(r);return t}var bk=class $v{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let o=this.fastMap.get(r??null);if(!o)return;let a=new Hc({scopeRef:t});o.addChild(a),a.parent=o,this.fastMap.set(t,a),n&&(a.nodeToRestore=n)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t);if(!r)return;let n=r.parent;for(let a of this.traverse())a!==r&&r.nodeToRestore&&a.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&$t(a.nodeToRestore,r.scopeRef.current)&&(a.nodeToRestore=r.nodeToRestore);let o=r.children;n&&(n.removeChild(r),o.size>0&&o.forEach(a=>n&&n.addChild(a))),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){var t;let r=new $v;var n;for(let o of this.traverse())r.addTreeNode(o.scopeRef,(n=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&n!==void 0?n:null,o.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new Hc({scopeRef:null}),this.fastMap.set(null,this.root)}},Hc=class{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}},_e=new bk;function pl(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,o=h.useRef({isFocused:!1,isFocusVisible:t||Ho()}),[a,i]=h.useState(!1),[l,s]=h.useState(()=>o.current.isFocused&&o.current.isFocusVisible),u=h.useCallback(()=>s(o.current.isFocused&&o.current.isFocusVisible),[]),c=h.useCallback(p=>{o.current.isFocused=p,i(p),u()},[u]);P6(p=>{o.current.isFocusVisible=p,u()},[],{isTextInput:r});let{focusProps:d}=yf({isDisabled:n,onFocusChange:c}),{focusWithinProps:f}=bf({isDisabled:!n,onFocusWithinChange:c});return{isFocused:a,isFocusVisible:l,focusProps:n?f:d}}function Ek(e,t){let[r,n]=h.useState(!1);return ue(()=>{if(e?.current){let o=()=>{if(e.current){let i=ot(e.current,{tabbable:!0});n(!!i.nextNode())}};o();let a=new MutationObserver(o);return a.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{a.disconnect()}}}),r}function wv(e){let t=Sk(ce(e));t!==e&&(t&&vk(t,e),e&&Cv(e,t))}function vk(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function Cv(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function Sk(e){let t=Le(e),r=t?.getAttribute("aria-activedescendant");return r&&e.getElementById(r)||t}var Bt=[];function wf(e,t){let{onClose:r,shouldCloseOnBlur:n,isOpen:o,isDismissable:a=!1,isKeyboardDismissDisabled:i=!1,shouldCloseOnInteractOutside:l}=e;h.useEffect(()=>{if(o&&!Bt.includes(t))return Bt.push(t),()=>{let m=Bt.indexOf(t);m>=0&&Bt.splice(m,1)}},[o,t]);let s=()=>{Bt[Bt.length-1]===t&&r&&r()},u=m=>{(!l||l(m.target))&&Bt[Bt.length-1]===t&&(m.stopPropagation(),m.preventDefault())},c=m=>{(!l||l(m.target))&&(Bt[Bt.length-1]===t&&(m.stopPropagation(),m.preventDefault()),s())},d=m=>{m.key==="Escape"&&!i&&!m.nativeEvent.isComposing&&(m.stopPropagation(),m.preventDefault(),s())};JE({ref:t,onInteractOutside:a&&o?c:void 0,onInteractOutsideStart:u});let{focusWithinProps:f}=bf({isDisabled:!n,onBlurWithin:m=>{!m.relatedTarget||pk(m.relatedTarget)||(!l||l(m.relatedTarget))&&r?.()}}),p=m=>{m.target===m.currentTarget&&m.preventDefault()};return{overlayProps:{onKeyDown:d,...f},underlayProps:{onPointerDown:p}}}function xk(e,t,r){let{isOpen:n}=t;h.useEffect(()=>{r&&r.current&&ev.set(r.current,t.close)});let o,a=He();return{triggerProps:{"aria-haspopup":o,"aria-expanded":n,"aria-controls":n?a:void 0,onPress:t.toggle},overlayProps:{id:a}}}var Co=typeof document<"u"&&window.visualViewport,Ra=0,yu;function _v(e={}){let{isDisabled:t}=e;ue(()=>{if(!t)return Ra++,Ra===1&&(il()?yu=wk():yu=$k()),()=>{Ra--,Ra===0&&yu()}},[t])}function $k(){let e=window.innerWidth-document.documentElement.clientWidth;return ta(e>0&&("scrollbarGutter"in document.documentElement.style?bu(document.documentElement,"scrollbarGutter","stable"):bu(document.documentElement,"paddingRight",`${e}px`)),bu(document.documentElement,"overflow","hidden"))}function wk(){let e,t=!1,r=s=>{let u=s.target;e=kn(u)?u:IE(u,!0),t=!1;let c=u.ownerDocument.defaultView.getSelection();c&&!c.isCollapsed&&c.containsNode(u,!0)&&(t=!0),"selectionStart"in u&&"selectionEnd"in u&&u.selectionStart<u.selectionEnd&&u.ownerDocument.activeElement===u&&(t=!0)},n=document.createElement("style");n.textContent=`
663
+ @layer {
664
+ * {
665
+ overscroll-behavior: contain;
666
+ }
667
+ }`.trim(),document.head.prepend(n);let o=s=>{if(!(s.touches.length===2||t)){if(!e||e===document.documentElement||e===document.body){s.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&s.preventDefault()}},a=s=>{let u=s.target,c=s.relatedTarget;if(c&&nu(c))c.focus({preventScroll:!0}),Gm(c,nu(u));else if(!c){var d;((d=u.parentElement)===null||d===void 0?void 0:d.closest("[tabindex]"))?.focus({preventScroll:!0})}},i=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(s){let u=document.activeElement!=null&&nu(document.activeElement);i.call(this,{...s,preventScroll:!0}),(!s||!s.preventScroll)&&Gm(this,u)};let l=ta(Eu(document,"touchstart",r,{passive:!1,capture:!0}),Eu(document,"touchmove",o,{passive:!1,capture:!0}),Eu(document,"blur",a,!0));return()=>{l(),n.remove(),HTMLElement.prototype.focus=i}}function bu(e,t,r){let n=e.style[t];return e.style[t]=r,()=>{e.style[t]=n}}function Eu(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function Gm(e,t){t||!Co?Wm(e):Co.addEventListener("resize",()=>Wm(e),{once:!0})}function Wm(e){let t=document.scrollingElement||document.documentElement,r=e;for(;r&&r!==t;){let n=IE(r);if(n!==document.documentElement&&n!==document.body&&n!==r){let o=n.getBoundingClientRect(),a=r.getBoundingClientRect();if(a.top<o.top||a.bottom>o.top+r.clientHeight){let i=o.bottom;Co&&(i=Math.min(i,Co.offsetTop+Co.height));let l=a.top-o.top-((i-o.top)/2-a.height/2);n.scrollTo({top:Math.max(0,Math.min(n.scrollHeight-n.clientHeight,n.scrollTop+l)),behavior:"smooth"})}}r=n.parentElement}}var Ck=h.createContext({});function Tv(){var e;return(e=h.useContext(Ck))!==null&&e!==void 0?e:{}}var Uc=g.createContext(null);function _k(e){let{children:t}=e,r=h.useContext(Uc),[n,o]=h.useState(0),a=h.useMemo(()=>({parent:r,modalCount:n,addModal(){o(i=>i+1),r&&r.addModal()},removeModal(){o(i=>i-1),r&&r.removeModal()}}),[r,n]);return g.createElement(Uc.Provider,{value:a},t)}function Tk(){let e=h.useContext(Uc);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function Ak(e){let{modalProviderProps:t}=Tk();return g.createElement("div",{"data-overlay-container":!0,...e,...t})}function Ok(e){return g.createElement(_k,null,g.createElement(Ak,e))}function Rk(e){let t=sn(),{portalContainer:r=t?null:document.body,...n}=e,{getContainer:o}=Tv();if(!e.portalContainer&&o&&(r=o()),g.useEffect(()=>{if(r?.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[r]),!r)return null;let a=g.createElement(Ok,n);return hy.createPortal(a,r)}var Av={};Av={dismiss:"تجاهل"};var Ov={};Ov={dismiss:"Отхвърляне"};var Rv={};Rv={dismiss:"Odstranit"};var Dv={};Dv={dismiss:"Luk"};var Pv={};Pv={dismiss:"Schließen"};var Fv={};Fv={dismiss:"Απόρριψη"};var Iv={};Iv={dismiss:"Dismiss"};var Lv={};Lv={dismiss:"Descartar"};var kv={};kv={dismiss:"Lõpeta"};var Nv={};Nv={dismiss:"Hylkää"};var Mv={};Mv={dismiss:"Rejeter"};var Bv={};Bv={dismiss:"התעלם"};var jv={};jv={dismiss:"Odbaci"};var Hv={};Hv={dismiss:"Elutasítás"};var Uv={};Uv={dismiss:"Ignora"};var zv={};zv={dismiss:"閉じる"};var Kv={};Kv={dismiss:"무시"};var Gv={};Gv={dismiss:"Atmesti"};var Wv={};Wv={dismiss:"Nerādīt"};var Vv={};Vv={dismiss:"Lukk"};var qv={};qv={dismiss:"Negeren"};var Yv={};Yv={dismiss:"Zignoruj"};var Xv={};Xv={dismiss:"Descartar"};var Jv={};Jv={dismiss:"Dispensar"};var Zv={};Zv={dismiss:"Revocare"};var Qv={};Qv={dismiss:"Пропустить"};var eS={};eS={dismiss:"Zrušiť"};var tS={};tS={dismiss:"Opusti"};var rS={};rS={dismiss:"Odbaci"};var nS={};nS={dismiss:"Avvisa"};var oS={};oS={dismiss:"Kapat"};var aS={};aS={dismiss:"Скасувати"};var iS={};iS={dismiss:"取消"};var lS={};lS={dismiss:"關閉"};var sS={};sS={"ar-AE":Av,"bg-BG":Ov,"cs-CZ":Rv,"da-DK":Dv,"de-DE":Pv,"el-GR":Fv,"en-US":Iv,"es-ES":Lv,"et-EE":kv,"fi-FI":Nv,"fr-FR":Mv,"he-IL":Bv,"hr-HR":jv,"hu-HU":Hv,"it-IT":Uv,"ja-JP":zv,"ko-KR":Kv,"lt-LT":Gv,"lv-LV":Wv,"nb-NO":Vv,"nl-NL":qv,"pl-PL":Yv,"pt-BR":Xv,"pt-PT":Jv,"ro-RO":Zv,"ru-RU":Qv,"sk-SK":eS,"sl-SI":tS,"sr-SP":rS,"sv-SE":nS,"tr-TR":oS,"uk-UA":aS,"zh-CN":iS,"zh-TW":lS};var Vm={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function Dk(e={}){let{style:t,isFocusable:r}=e,[n,o]=h.useState(!1),{focusWithinProps:a}=bf({isDisabled:!r,onFocusWithinChange:l=>o(l)}),i=h.useMemo(()=>n?t:t?{...Vm,...t}:Vm,[n]);return{visuallyHiddenProps:{...a,style:i}}}function Pk(e){let{children:t,elementType:r="div",isFocusable:n,style:o,...a}=e,{visuallyHiddenProps:i}=Dk(e);return g.createElement(r,ee(a,i),t)}function Fk(e){return e&&e.__esModule?e.default:e}function qm(e){let{onDismiss:t,...r}=e,n=rk(Fk(sS),"@react-aria/overlays"),o=ul(r,n.format("dismiss")),a=()=>{t&&t()};return g.createElement(Pk,null,g.createElement("button",{...o,tabIndex:-1,onClick:a,style:{width:1,height:1}}))}var Ik=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,fo=new WeakMap,tt=[];function hl(e,t){let r=St(e?.[0]),n=t instanceof r.Element?{root:t}:t;var o;let a=(o=n?.root)!==null&&o!==void 0?o:document.body,i=n?.shouldUseInert&&Ik,l=new Set(e),s=new Set,u=y=>i&&y instanceof r.HTMLElement?y.inert:y.getAttribute("aria-hidden")==="true",c=(y,E)=>{i&&y instanceof r.HTMLElement?y.inert=E:E?y.setAttribute("aria-hidden","true"):(y.removeAttribute("aria-hidden"),y instanceof r.HTMLElement&&(y.inert=!1))},d=y=>{for(let S of y.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))l.add(S);let E=S=>{if(s.has(S)||l.has(S)||S.parentElement&&s.has(S.parentElement)&&S.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let x of l)if(S.contains(x))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},b=document.createTreeWalker(y,NodeFilter.SHOW_ELEMENT,{acceptNode:E}),v=E(y);if(v===NodeFilter.FILTER_ACCEPT&&f(y),v!==NodeFilter.FILTER_REJECT){let S=b.nextNode();for(;S!=null;)f(S),S=b.nextNode()}},f=y=>{var E;let b=(E=fo.get(y))!==null&&E!==void 0?E:0;u(y)&&b===0||(b===0&&c(y,!0),s.add(y),fo.set(y,b+1))};tt.length&&tt[tt.length-1].disconnect(),d(a);let p=new MutationObserver(y=>{for(let E of y)if(E.type==="childList"&&![...l,...s].some(b=>b.contains(E.target)))for(let b of E.addedNodes)(b instanceof HTMLElement||b instanceof SVGElement)&&(b.dataset.liveAnnouncer==="true"||b.dataset.reactAriaTopLayer==="true")?l.add(b):b instanceof Element&&d(b)});p.observe(a,{childList:!0,subtree:!0});let m={visibleNodes:l,hiddenNodes:s,observe(){p.observe(a,{childList:!0,subtree:!0})},disconnect(){p.disconnect()}};return tt.push(m),()=>{p.disconnect();for(let y of s){let E=fo.get(y);E!=null&&(E===1?(c(y,!1),fo.delete(y)):fo.set(y,E-1))}m===tt[tt.length-1]?(tt.pop(),tt.length&&tt[tt.length-1].observe()):tt.splice(tt.indexOf(m),1)}}function Lk(e){let t=tt[tt.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function kk(e,t){let{triggerRef:r,popoverRef:n,groupRef:o,isNonModal:a,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:l,...s}=e,u=s.trigger==="SubmenuTrigger",{overlayProps:c,underlayProps:d}=wf({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!a||u,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:l},o??n),{overlayProps:f,arrowProps:p,placement:m,triggerAnchorPoint:y}=xf({...s,targetRef:r,overlayRef:n,isOpen:t.isOpen,onClose:a&&!u?t.close:null});return _v({isDisabled:a||!t.isOpen}),h.useEffect(()=>{if(t.isOpen&&n.current){var E,b;return a?Lk((E=o?.current)!==null&&E!==void 0?E:n.current):hl([(b=o?.current)!==null&&b!==void 0?b:n.current],{shouldUseInert:!0})}},[a,t.isOpen,n,o]),{popoverProps:ee(c,f),arrowProps:p,underlayProps:d,placement:m,triggerAnchorPoint:y}}var uS=g.createContext(null);function $i(e){let t=sn(),{portalContainer:r=t?null:document.body,isExiting:n}=e,[o,a]=h.useState(!1),i=h.useMemo(()=>({contain:o,setContain:a}),[o,a]),{getContainer:l}=Tv();if(!e.portalContainer&&l&&(r=l()),!r)return null;let s=e.children;return e.disableFocusManagement||(s=g.createElement($f,{restoreFocus:!0,contain:(e.shouldContainFocus||o)&&!n},s)),s=g.createElement(uS.Provider,{value:i},g.createElement(M6,null,s)),hy.createPortal(s,r)}function cS(){let e=h.useContext(uS),t=e?.setContain;ue(()=>{t?.(!0)},[t])}function Nk(e,t,r){let{overlayProps:n,underlayProps:o}=wf({...e,isOpen:t.isOpen,onClose:t.close},r);return _v({isDisabled:!t.isOpen}),cS(),h.useEffect(()=>{if(t.isOpen&&r.current)return hl([r.current],{shouldUseInert:!0})},[t.isOpen,r]),{modalProps:ee(n),underlayProps:o}}function oa(e){let[t,r]=cl(e.isOpen,e.defaultOpen||!1,e.onOpenChange),n=h.useCallback(()=>{r(!0)},[r]),o=h.useCallback(()=>{r(!1)},[r]),a=h.useCallback(()=>{r(!t)},[r,t]);return{isOpen:t,setOpen:r,open:n,close:o,toggle:a}}var Mk=1500,Ym=500,Lr={},Bk=0,po=!1,nr=null,kr=null;function dS(e={}){let{delay:t=Mk,closeDelay:r=Ym}=e,{isOpen:n,open:o,close:a}=oa(e),i=h.useMemo(()=>`${++Bk}`,[]),l=h.useRef(null),s=h.useRef(a),u=()=>{Lr[i]=f},c=()=>{for(let m in Lr)m!==i&&(Lr[m](!0),delete Lr[m])},d=()=>{l.current&&clearTimeout(l.current),l.current=null,c(),u(),po=!0,o(),nr&&(clearTimeout(nr),nr=null),kr&&(clearTimeout(kr),kr=null)},f=m=>{m||r<=0?(l.current&&clearTimeout(l.current),l.current=null,s.current()):l.current||(l.current=setTimeout(()=>{l.current=null,s.current()},r)),nr&&(clearTimeout(nr),nr=null),po&&(kr&&clearTimeout(kr),kr=setTimeout(()=>{delete Lr[i],kr=null,po=!1},Math.max(Ym,r)))},p=()=>{c(),u(),!n&&!nr&&!po?nr=setTimeout(()=>{nr=null,po=!0,d()},t):n||d()};return h.useEffect(()=>{s.current=a},[a]),h.useEffect(()=>()=>{l.current&&clearTimeout(l.current),Lr[i]&&delete Lr[i]},[i]),{isOpen:n,open:m=>{!m&&t>0&&!l.current?p():d()},close:f}}var Cf=h.createContext(null),fS=h.createContext(null);function jk(e){let t=dS(e),r=h.useRef(null),{triggerProps:n,tooltipProps:o}=K6(e,t,r);return g.createElement(fr,{values:[[Cf,t],[fS,{...o,triggerRef:r}]]},g.createElement(I6,{...n,ref:r},e.children))}var Hk=h.forwardRef(function({UNSTABLE_portalContainer:e,...t},r){[t,r]=qe(t,r,fS);let n=h.useContext(Cf),o=dS(t),a=t.isOpen!=null||t.defaultOpen!=null||!n?o:n,i=ME(r,a.isOpen)||t.isExiting||!1;return!a.isOpen&&!i?null:g.createElement(Rk,{portalContainer:e},g.createElement(Uk,{...t,tooltipRef:r,isExiting:i}))});function Uk(e){let t=h.useContext(Cf),r=h.useRef(null),{overlayProps:n,arrowProps:o,placement:a,triggerAnchorPoint:i}=xf({placement:e.placement||"top",targetRef:e.triggerRef,overlayRef:e.tooltipRef,arrowRef:r,offset:e.offset,crossOffset:e.crossOffset,isOpen:t.isOpen,arrowBoundaryOffset:e.arrowBoundaryOffset,shouldFlip:e.shouldFlip,containerPadding:e.containerPadding,onClose:()=>t.close(!0)}),l=NE(e.tooltipRef,!!a)||e.isEntering||!1,s=ht({...e,defaultClassName:"react-aria-Tooltip",values:{placement:a,isEntering:l,isExiting:e.isExiting,state:t}});e=ee(e,n);let{tooltipProps:u}=z6(e,t),c=xe(e,{global:!0});return g.createElement("div",{...ee(c,s,u),ref:e.tooltipRef,style:{...n.style,"--trigger-anchor-point":i?`${i.x}px ${i.y}px`:void 0,...s.style},"data-placement":a??void 0,"data-entering":l||void 0,"data-exiting":e.isExiting||void 0},g.createElement(vf.Provider,{value:{...o,placement:a,ref:r}},s.children))}var zk=lt(Kn(),1),_f=(0,zk.default)(1e3)(e=>e==="left-end"?"left bottom":e==="right-end"?"right bottom":e==="left-start"?"left top":e==="right-start"?"right top":e.replace("-"," "));R.div({width:500,height:500,paddingTop:100,overflowY:"scroll",background:"#eee",position:"relative"});var Kk=h.forwardRef((e,t)=>g.createElement("button",{...e,ref:t,style:{width:120,height:50,margin:10}}));Kk.displayName="Trigger";var pS=({triggerOnFocusOnly:e=!1,placement:t="top",offset:r=8,tooltip:n,children:o,defaultVisible:a,startOpen:i,delayShow:l=400,delayHide:s=200,visible:u,onVisibleChange:c,...d})=>{let f=_f(t),p=g.Children.only(o);i!==void 0&&x8("The `startOpen` prop is deprecated. Please use `defaultVisible` instead.");let[m,y]=h.useState(a??i??!1),E=h.useCallback(b=>{y(b),c?.(b)},[c]);return g.createElement(jk,{delay:l,closeDelay:s,isOpen:u??m,onOpenChange:E,trigger:e?"focus":void 0,...d},g.createElement(L6,null,g.cloneElement(p,{"aria-describedby":null})),g.createElement(Hk,{"data-testid":"tooltip",placement:f,offset:r,onOpenChange:E,style:{outline:"none"},...d},n))},hS=({children:e,disableAllTooltips:t,shortcut:r,tooltip:n})=>{let o=h.useMemo(()=>{let a=document?.body?.getAttribute("data-shortcuts-enabled")!=="false";if(!(!n&&(!r||!a)))return[n,r&&a&&`[${MF(r)}]`].filter(Boolean).join(" ")},[r,n]);return o?g.createElement(pS,{placement:"top",tooltip:g.createElement(CE,{note:o}),visible:t?!1:void 0},e):g.createElement(g.Fragment,null,e)};hS.displayName="InteractiveTooltipWrapper";function Gk(e=""){let t=e.toLowerCase().trim().replace(/\s+/g,"-");return{ariaDescriptionAttrs:{"aria-describedby":e?t:void 0},AriaDescription:()=>e?g.createElement("span",{id:t,hidden:!0},e):null}}var Ce=h.forwardRef(({as:e="button",asChild:t=!1,animation:r="none",size:n="small",variant:o="outline",padding:a="medium",disabled:i=!1,readOnly:l=!1,active:s,onClick:u,ariaLabel:c,ariaDescription:d=void 0,tooltip:f=void 0,shortcut:p=void 0,disableAllTooltips:m=!1,...y},E)=>{let b=t?g8:e,v;!l&&(c===void 0||c==="")&&(v="ariaLabel",wc(`The 'ariaLabel' prop on 'Button' will become mandatory in Storybook 11. Buttons with text content should set 'ariaLabel={false}' to indicate that they are accessible as-is. Buttons without text content must provide a meaningful 'ariaLabel' for accessibility. The button content is: ${y.children}.`)),s!==void 0&&(v="active",wc("The `active` prop on `Button` is deprecated and will be removed in Storybook 11. Use specialized components like `ToggleButton` or `Select` instead."));let{ariaDescriptionAttrs:S,AriaDescription:x}=Gk(d),C=h.useMemo(()=>p?BF(p):void 0,[p]),[$,w]=h.useState(!1),T=O=>{u&&u(O),r!=="none"&&w(!0)};return h.useEffect(()=>{let O=setTimeout(()=>{$&&w(!1)},1e3);return()=>clearTimeout(O)},[$]),g.createElement(g.Fragment,null,g.createElement(hS,{disableAllTooltips:m,shortcut:p,tooltip:f||(c!==!1?c:void 0)},g.createElement(Wk,{"data-deprecated":v,as:b,ref:E,variant:o,size:n,padding:a,disabled:i||l,readOnly:l,active:s,animating:$,animation:r,onClick:T,"aria-label":!l&&c!==!1?c:void 0,"aria-keyshortcuts":l?void 0:C,...l?{}:S,...y})),g.createElement(x,null))});Ce.displayName="Button";var Wk=R("button",{shouldForwardProp:e=>Wi(e)})(({theme:e,variant:t,size:r,disabled:n,readOnly:o,active:a,animating:i,animation:l="none",padding:s})=>({border:0,cursor:o?"inherit":n?"not-allowed":"pointer",display:"inline-flex",gap:"6px",alignItems:"center",justifyContent:"center",overflow:"hidden",padding:s==="none"?0:s==="small"&&r==="small"?"0 7px":s==="small"&&r==="medium"?"0 9px":r==="small"?"0 10px":r==="medium"?"0 12px":0,height:r==="small"?"28px":"32px",position:"relative",textAlign:"center",textDecoration:"none",transitionProperty:"background, box-shadow",transitionDuration:"150ms",transitionTimingFunction:"ease-out",verticalAlign:"top",whiteSpace:"nowrap",userSelect:"none",opacity:n&&!o?.5:1,margin:0,fontSize:`${e.typography.size.s1}px`,fontWeight:e.typography.weight.bold,lineHeight:"1",background:t==="solid"?e.base==="light"?e.color.secondary:Ge(.18,e.color.secondary):t==="outline"?e.button.background:t==="ghost"&&a?ur(.93,e.barSelectedColor):"transparent",color:t==="solid"?e.color.lightest:t==="outline"?e.input.color:t==="ghost"&&a?e.base==="light"?Ge(.1,e.color.secondary):e.color.secondary:t==="ghost"?e.textMutedColor:e.input.color,boxShadow:t==="outline"?`${e.button.border} 0 0 0 1px inset`:"none",borderRadius:e.input.borderRadius,flexShrink:0,...!o&&{"&:hover":{color:t==="ghost"?e.color.secondary:void 0,background:(()=>{let u=e.color.secondary;return t==="solid"&&(u=e.base==="light"?Ha(.1,e.color.secondary):Ge(.3,e.color.secondary)),t==="outline"&&(u=e.button.background),t==="ghost"?ur(.86,e.color.secondary):e.base==="light"?Ge(.02,u):Ha(.03,u)})()},"&:active":{color:t==="ghost"?e.color.secondary:void 0,background:(()=>{let u=e.color.secondary;return t==="solid"&&(u=e.color.secondary),t==="outline"&&(u=e.button.background),t==="ghost"?e.background.hoverable:e.base==="light"?Ge(.02,u):Ha(.03,u)})()},"&:focus-visible":{outline:`2px solid ${Jr(e.color.secondary,1)}`,outlineOffset:2,zIndex:"1"},".sb-bar &:focus-visible, .sb-list &:focus-visible":{outlineOffset:0}},"> svg":{flex:"0 0 auto",animation:i&&l!=="none"?`${e.animation[l]} 1000ms ease-out`:""}})),gS=h.forwardRef((e,t)=>(wc("`IconButton` is deprecated and will be removed in Storybook 11, use `Button` instead."),g.createElement(Ce,{ref:t,...e,"data-deprecated":"IconButton"})));gS.displayName="IconButton";var gl=h.forwardRef(({pressed:e,...t},r)=>g.createElement(Vk,{role:"switch","aria-checked":e,ref:r,pressed:e,...t}));gl.displayName="ToggleButton";var Vk=R(Ce)(({theme:e,variant:t="outline",pressed:r})=>({...r?{...t==="solid"?{background:e.base==="lighten"?Ge(.1,e.color.secondary):Ge(.2,e.color.secondary)}:{},...t==="outline"?{background:ur(.94,e.barSelectedColor),boxShadow:`${e.barSelectedColor} 0 0 0 1px inset`,color:e.barSelectedColor}:{},...t==="ghost"?{background:ur(.93,e.barSelectedColor),color:e.base==="light"?Ge(.1,e.color.secondary):e.color.secondary}:{}}:{}})),mS=R.li(({active:e,theme:t})=>({display:"flex",alignItems:"center",justifyContent:"space-between",flex:"0 0 auto",overflow:"hidden",minHeight:32,gap:4,fontSize:t.typography.size.s1,fontWeight:e?t.typography.weight.bold:t.typography.weight.regular,color:e?"var(--listbox-item-active-color)":t.color.defaultText,"--listbox-item-active-color":t.base==="light"?Ge(.1,t.color.secondary):t.color.secondary,"--listbox-item-muted-color":e?"var(--listbox-item-active-color)":t.color.mediumdark,'&[aria-disabled="true"]':{opacity:.5,cursor:"not-allowed"},'&[aria-selected="true"]':{color:"var(--listbox-item-active-color)",fontWeight:t.typography.weight.bold,"--listbox-item-muted-color":"var(--listbox-item-active-color)"},"&:not(:hover, :has(:focus-visible)) svg + input":{position:"absolute",opacity:0},'&[role="option"]':{cursor:"pointer",borderRadius:t.input.borderRadius,outlineOffset:-2,padding:"0 9px",gap:8,"&:hover":{background:ur(.86,t.color.secondary)},"&:focus-visible":{outline:`2px solid ${t.color.secondary}`}},"@supports (interpolate-size: allow-keywords)":{interpolateSize:"allow-keywords",transitionBehavior:"allow-discrete",transitionDuration:"var(--transition-duration, 0.2s)",transitionProperty:"opacity, block-size, content-visibility"},"@media (prefers-reduced-motion: reduce)":{transition:"none"}}),({transitionStatus:e})=>{switch(e){case"preEnter":case"exiting":case"exited":return{opacity:0,blockSize:0,contentVisibility:"hidden"};default:return{opacity:1,blockSize:"auto",contentVisibility:"visible"}}}),qk=R(mS)(({targetId:e})=>({gap:0,[`& [data-target-id="${e}"]`]:{inlineSize:"auto",marginLeft:4,opacity:1,"@supports (interpolate-size: allow-keywords)":{interpolateSize:"allow-keywords",transitionProperty:"inline-size, margin-left, opacity, padding-inline",transitionDuration:"var(--transition-duration, 0.2s)"}},[`&:not(:hover, :has(:focus-visible)) [data-target-id="${e}"]`]:{inlineSize:0,marginLeft:0,opacity:0,paddingInline:0}})),Yk=R(Ce)(({size:e})=>({gap:e==="small"?6:8,"&:focus-visible":{outlineOffset:-2}})),Xk=R(gl)({"&:focus-visible":{outlineOffset:-2}}),yS=h.forwardRef(function({padding:e="small",size:t="medium",variant:r="ghost",...n},o){return g.createElement(Yk,{...n,variant:r,padding:e,size:t,ref:o})}),Jk=h.forwardRef(function({padding:e="small",size:t="medium",variant:r="ghost",...n},o){return g.createElement(Xk,{...n,variant:r,padding:e,size:t,ref:o})}),bS=R(yS)(({theme:e})=>({height:"auto",minHeight:32,flex:"0 1 100%",textAlign:"start",justifyContent:"space-between",fontWeight:"inherit",color:"inherit","&:hover":{color:"inherit"},"& input:enabled:focus-visible":{outline:"none"},"&:has(input:focus-visible)":{outline:`2px solid ${e.color.secondary}`,outlineOffset:-2}})),Zk=e=>g.createElement(bS,{as:"a",...e}),Qk=R.div(({theme:e})=>({display:"flex",flexDirection:"column",justifyContent:"center",flexGrow:1,minWidth:0,padding:"8px 0",lineHeight:"16px","& > *":{margin:0,whiteSpace:"normal"},"& > span":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"& small":{fontSize:"inherit",color:e.textMutedColor},"&:first-child":{paddingLeft:8},"&:last-child":{paddingRight:8},'button > &:first-child, [role="option"] > &:first-child':{paddingLeft:0},'button > &:last-child, [role="option"] > &:last-child':{paddingRight:0}})),e7=R.div({display:"flex",alignItems:"center",justifyContent:"center",flex:"0 0 14px",width:14,height:14,color:"var(--listbox-item-muted-color)"}),Za=Object.assign(R.ul(({theme:e,onClick:t})=>({listStyle:"none",margin:0,padding:4,cursor:t?"pointer":"default","& + *":{borderTop:`1px solid ${e.appBorderColor}`}})),{Item:mS,HoverItem:qk,Button:yS,Toggle:Jk,Action:bS,Link:Zk,Text:Qk,Icon:e7}),Xm=R.div(({collapsed:e=!1})=>({blockSize:e?0:"auto",contentVisibility:e?"hidden":"visible",transform:e?"translateY(-10px)":"translateY(0)",opacity:e?0:1,overflow:"hidden","@supports (interpolate-size: allow-keywords)":{interpolateSize:"allow-keywords",transition:"all var(--transition-duration, 0.2s)",transitionBehavior:"allow-discrete"},"@media (prefers-reduced-motion: reduce)":{transition:"none"}}));Object.assign(function({children:e,summary:t,collapsed:r,disabled:n,initialCollapsed:o,storageKey:a,state:i,...l}){let s=r7({collapsed:r,disabled:n,initialCollapsed:o,storageKey:a}),u=i||s;return g.createElement(g.Fragment,null,typeof t=="function"?t(u):t,g.createElement(Xm,{...l,id:u.contentId,collapsed:u.isCollapsed,"aria-hidden":u.isCollapsed},typeof e=="function"?e(u):e))},{Content:Xm});var t7=(e,t)=>{let[r,n]=h.useState(()=>{try{return JSON.parse(sessionStorage.getItem(e))??t}catch{return t}});return h.useEffect(()=>{try{e&&sessionStorage.setItem(e,JSON.stringify(r))}catch{}},[e,r]),[r,n]},r7=({collapsed:e,disabled:t,initialCollapsed:r=e,storageKey:n})=>{let[o,a]=t7(n&&`useCollapsible:${n}`,!!r);h.useEffect(()=>{e!==void 0&&a(e)},[e,a]);let i=h.useCallback(s=>{s?.stopPropagation(),t||a(u=>!u)},[t,a]),l=He();return{contentId:l,isCollapsed:o,isDisabled:!!t,setCollapsed:a,toggleCollapsed:i,toggleProps:{disabled:t,onClick:i,"aria-controls":l,"aria-expanded":!o}}},n7=ke({"0%":{opacity:0},"5%":{opacity:1},"25%":{opacity:1},"30%":{opacity:0}}),o7=ke({"0%":{transform:"rotate(0deg)"},"10%":{transform:"rotate(10deg)"},"40%":{transform:"rotate(170deg)"},"50%":{transform:"rotate(180deg)"},"60%":{transform:"rotate(190deg)"},"90%":{transform:"rotate(350deg)"},"100%":{transform:"rotate(360deg)"}}),a7=ke({to:{backgroundPositionX:"36%"}}),Jm=R.div(({theme:e})=>({borderRadius:e.appBorderRadius,backgroundColor:e.background.content,position:"relative"})),Zm=R.div(({animation:e="none",color:t,theme:r})=>({position:"relative",width:"100%",padding:1,overflow:"hidden",backgroundColor:r.background.content,borderRadius:r.appBorderRadius+1,boxShadow:`inset 0 0 0 1px ${e==="none"&&t&&r.color[t]||r.appBorderColor}, var(--card-box-shadow, transparent 0 0)`,transition:"box-shadow 1s","@supports (interpolate-size: allow-keywords)":{interpolateSize:"allow-keywords",transition:"all var(--transition-duration, 0.2s), box-shadow 1s",transitionBehavior:"allow-discrete"},"@media (prefers-reduced-motion: reduce)":{transition:"box-shadow 1s"},"&:before":{content:'""',display:e==="none"?"none":"block",position:"absolute",left:0,top:0,width:"100%",height:"100%",opacity:1,...e==="rainbow"&&{animation:`${a7} 10s infinite linear, ${n7} 60s infinite linear`,backgroundImage:"linear-gradient(45deg,rgb(234, 0, 0),rgb(255, 157, 0),rgb(255, 208, 0),rgb(0, 172, 0),rgb(0, 166, 255),rgb(181, 0, 181), rgb(234, 0, 0),rgb(255, 157, 0),rgb(255, 208, 0),rgb(0, 172, 0),rgb(0, 166, 255),rgb(181, 0, 181))",backgroundSize:"1000%",backgroundPositionX:"100%"},...e==="spin"&&{left:"50%",top:"50%",marginLeft:"calc(max(100vw, 100vh) * -0.5)",marginTop:"calc(max(100vw, 100vh) * -0.5)",height:"max(100vw, 100vh)",width:"max(100vw, 100vh)",animation:`${o7} 3s linear infinite`,backgroundImage:t==="negative"?"conic-gradient(transparent 90deg, #FC521F 150deg, #FFAE00 210deg, transparent 270deg)":"conic-gradient(transparent 90deg, #029CFD 150deg, #37D5D3 210deg, transparent 270deg)"}}}));Object.assign(h.forwardRef(function({outlineAnimation:e="none",outlineColor:t,outlineAttrs:r={},...n},o){return g.createElement(Zm,{animation:e,color:t,ref:o,...r},g.createElement(Jm,{...n}))}),{Content:Jm,Outline:Zm});const{deprecate:vu}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var i7=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],ES=e=>({_s:e,status:i7[e],isEnter:e<3,isMounted:e!==6,isResolved:e===2||e>4}),zc=e=>e?6:5,l7=(e,t)=>{switch(e){case 1:case 0:return 2;case 4:case 3:return zc(t)}},s7=e=>typeof e=="object"?[e.enter,e.exit]:[e,e],u7=(e,t)=>setTimeout(()=>{isNaN(document.body.offsetTop)||e(t+1)},0),Qm=(e,t,r,n,o)=>{clearTimeout(n.current);let a=ES(e);t(a),r.current=a,o&&o({current:a})},c7=({enter:e=!0,exit:t=!0,preEnter:r,preExit:n,timeout:o,initialEntered:a,mountOnEnter:i,unmountOnExit:l,onStateChange:s}={})=>{let[u,c]=h.useState(()=>ES(a?2:zc(i))),d=h.useRef(u),f=h.useRef(),[p,m]=s7(o),y=h.useCallback(()=>{let b=l7(d.current._s,l);b&&Qm(b,c,d,f,s)},[s,l]),E=h.useCallback(b=>{let v=x=>{switch(Qm(x,c,d,f,s),x){case 1:p>=0&&(f.current=setTimeout(y,p));break;case 4:m>=0&&(f.current=setTimeout(y,m));break;case 0:case 3:f.current=u7(v,x);break}},S=d.current.isEnter;typeof b!="boolean"&&(b=!S),b?!S&&v(e?r?0:1:2):S&&v(t?n?3:4:zc(l))},[y,s,e,t,r,n,p,m,l]);return[u,E,y]};function d7(e){let t=a=>typeof window<"u"?window.matchMedia(a).matches:!1,[r,n]=h.useState(t(e));function o(){n(t(e))}return h.useEffect(()=>{let a=window.matchMedia(e);return o(),a.addEventListener("change",o),()=>{a.removeEventListener("change",o)}},[e]),r}var vS={};Ue(vS,{Actions:()=>_7,Close:()=>ml,CloseButton:()=>S7,Col:()=>AS,Container:()=>_S,Content:()=>x7,Description:()=>C7,Dialog:()=>v7,Error:()=>T7,ErrorWrapper:()=>OS,Header:()=>$7,Overlay:()=>CS,Row:()=>TS,Title:()=>w7});const{deprecate:SS}=__STORYBOOK_MODULE_CLIENT_LOGGER__;h.createContext(null);h.createContext(null);h.createContext(null);h.createContext(null);h.createContext(null);var xS=h.createContext({}),f7=h.forwardRef(function(e,t){[e,t]=qe(e,t,xS);let{children:r,level:n=3,className:o,...a}=e,i=`h${n}`;return g.createElement(i,{...a,ref:t,className:o??"react-aria-Heading"},r)}),$S=h.createContext({}),p7=h.forwardRef(function(e,t){[e,t]=qe(e,t,$S);let{elementType:r="span",...n}=e;return g.createElement(r,{className:"react-aria-Text",...n,ref:t})}),wS=ke({from:{opacity:0},to:{opacity:1}}),h7=ke({from:{opacity:1},to:{opacity:0}}),g7=ke({from:{maxHeight:0},to:{}}),m7=ke({from:{opacity:0,transform:"translate(-50%, -50%) scale(0.9)"},to:{opacity:1,transform:"translate(-50%, -50%) scale(1)"}}),y7=ke({from:{opacity:1,transform:"translate(-50%, -50%) scale(1)"},to:{opacity:0,transform:"translate(-50%, -50%) scale(0.9)"}}),b7=ke({from:{opacity:0,maxHeight:"0px"},to:{opacity:1,maxHeight:"80vh"}}),E7=ke({from:{opacity:1,maxHeight:"80vh"},to:{opacity:0,maxHeight:"0px"}}),CS=R.div(({$status:e,$transitionDuration:t})=>({backdropFilter:"blur(24px)",background:"rgba(0, 0, 0, 0.4)",position:"absolute",inset:0,width:"100%",height:"100%",zIndex:90,"@media (prefers-reduced-motion: no-preference)":{animation:e==="exiting"||e==="preExit"?`${h7} ${t}ms`:`${wS} ${t}ms`,animationFillMode:"forwards"}})),_S=R.div(({theme:e})=>({backgroundColor:e.background.bar,borderRadius:6,boxShadow:"0px 4px 67px 0px #00000040",position:"absolute",overflow:"auto",zIndex:100,"&:focus-visible":{outline:"none"}}),({theme:e,width:t,height:r,$variant:n,$status:o,$transitionDuration:a})=>n==="dialog"?{top:"50%",left:"50%",width:t??740,height:r??"auto",maxWidth:"calc(100% - 40px)",maxHeight:"85vh","@media (prefers-reduced-motion: no-preference)":{willChange:"transform, opacity",animationTimingFunction:"cubic-bezier(0.32, 0.72, 0, 1)",animation:o==="exiting"||o==="preExit"?`${y7} ${a}ms`:`${m7} ${a}ms`,animationFillMode:"forwards !important"},"@media (prefers-reduced-motion: reduce)":{transform:"translate(-50%, -50%) scale(1)"}}:{bottom:"0",left:"0",right:"0",borderRadius:"10px 10px 0 0",overflow:"hidden",width:t??"100%",height:r??"80%",maxWidth:"100%",background:e.background.content,"@supports (interpolate-size: allow-keywords)":{interpolateSize:"allow-keywords"},"@media (prefers-reduced-motion: no-preference)":{animationTimingFunction:"cubic-bezier(.9,.16,.77,.64)",animation:o==="exiting"||o==="preExit"?`${E7} ${a}ms`:`${b7} ${a}ms`,animationFillMode:"forwards !important"}}),ml=({asChild:e,children:t,onClick:r,...n})=>{let{close:o}=h.useContext(RS);if(e&&g.isValidElement(t)){let a=i=>{r?.(i),t.props.onClick?.(i),o?.()};return g.cloneElement(t,{...n,onClick:a})}return g.createElement(Ce,{type:"button",padding:"small",ariaLabel:"Close modal",variant:"ghost",shortcut:["Escape"],onClick:o},g.createElement(Zb,null))},v7={Close:()=>(SS("Modal.Dialog.Close is deprecated, please use Modal.Close instead."),g.createElement(ml,{"data-deprecated":"Modal.Dialog.Close"}))},S7=({ariaLabel:e,...t})=>(SS("Modal.CloseButton is deprecated, please use Modal.Close instead."),g.createElement(ml,{asChild:!0},g.createElement(Ce,{ariaLabel:e||"Close","data-deprecated":"Modal.CloseButton",...t},g.createElement(Zb,null)))),x7=R.div({display:"flex",flexDirection:"column",margin:16,gap:16}),TS=R.div({display:"flex",justifyContent:"space-between",gap:16}),AS=R.div({display:"flex",flexDirection:"column",gap:4}),$7=({hasClose:e=!0,onClose:t,...r})=>g.createElement(TS,null,g.createElement(AS,{...r}),e&&g.createElement(ml,{onClick:t})),w7=R(e=>g.createElement(f7,{level:2,...e}))(({theme:e})=>({margin:0,fontSize:e.typography.size.s3,fontWeight:e.typography.weight.bold})),C7=R(p7)(({theme:e})=>({position:"relative",zIndex:1,margin:0,fontSize:e.typography.size.s2})),_7=R.div({display:"flex",flexDirection:"row-reverse",gap:8}),OS=R.div(({theme:e})=>({maxHeight:100,overflow:"auto","@media (prefers-reduced-motion: no-preference)":{animation:`${g7} 300ms, ${wS} 300ms`},backgroundColor:e.background.critical,color:e.color.lightest,fontSize:e.typography.size.s2,"& > div":{position:"relative",padding:"8px 16px"}})),T7=({children:e,...t})=>g.createElement(OS,{...t},g.createElement("div",null,e)),RS=h.createContext({});function A7({container:e,portalSelector:t,children:r,width:n,height:o,ariaLabel:a,dismissOnClickOutside:i=!0,dismissOnEscape:l=!0,className:s,open:u,onEscapeKeyDown:c,onInteractOutside:d,onOpenChange:f,defaultOpen:p,transitionDuration:m=200,variant:y="dialog",...E}){let b;(a===void 0||a==="")&&(b="ariaLabel",vu("The `ariaLabel` prop on `Modal` will become mandatory in Storybook 11.")),c!==void 0&&(b="onEscapeKeyDown",vu("The `onEscapeKeyDown` prop is deprecated and will be removed in Storybook 11. Use `dismissOnEscape` instead.")),d!==void 0&&(b="onInteractOutside",vu("The `onInteractOutside` prop is deprecated and will be removed in Storybook 11. Use `dismissOnInteractOutside` instead."));let v=h.useRef(null),S=d7("(prefers-reduced-motion: reduce)"),[{status:x,isMounted:C},$]=c7({timeout:S?0:m,mountOnEnter:!0,unmountOnExit:!0}),w=oa({isOpen:u||C,defaultOpen:p,onOpenChange:L=>{$(L),f?.(L)}}),T=()=>{w.close()},{modalProps:O,underlayProps:D}=Nk({isDismissable:i,isKeyboardDismissDisabled:!0,shouldCloseOnInteractOutside:d?L=>{let A=new MouseEvent("click",{bubbles:!0,cancelable:!0,relatedTarget:L});return d(A),!A.defaultPrevented}:void 0},w,v);if(h.useEffect(()=>{let L=u??p??!1;L&&!C?$(!0):!L&&C&&$(!1)},[u,p,C,$]),h.useEffect(()=>{C&&(u||p)&&f?.(!0)},[C]),h.useEffect(()=>{if(C&&(u||p)&&v.current)return hl([v.current],{shouldUseInert:!0})},[C,u,p,v]),!C||x==="exited"||x==="unmounted")return null;let _=ee(O,{onKeyDown:L=>{L.key!=="Escape"?O.onKeyDown?.(L):l&&(c?.(L.nativeEvent),L.nativeEvent.defaultPrevented||T())}}),I=e??(t?document.querySelector(t):void 0);return g.createElement($i,{disableFocusManagement:!0,portalContainer:I||void 0},g.createElement($f,{restoreFocus:!0,contain:!0,autoFocus:!0},g.createElement(CS,{$status:x,$transitionDuration:m,...D}),g.createElement("div",{role:"dialog","aria-label":a,ref:v,..._},g.createElement(RS.Provider,{value:{close:T}},g.createElement(_S,{"data-deprecated":b,$variant:y,$status:x,$transitionDuration:m,className:s,width:n,height:o,...E},r)))))}Object.assign(A7,vS);R.div(({theme:e,col:t,row:r=1})=>t?{display:"inline-block",verticalAlign:"inherit","& > *":{marginLeft:t*e.layoutMargin,verticalAlign:"inherit"},[`& > *:first-child${ui}`]:{marginLeft:0}}:{"& > *":{marginTop:r*e.layoutMargin},[`& > *:first-child${ui}`]:{marginTop:0}},({theme:e,outer:t,col:r,row:n})=>{switch(!0){case!!(t&&r):return{marginLeft:t*e.layoutMargin,marginRight:t*e.layoutMargin};case!!(t&&n):return{marginTop:t*e.layoutMargin,marginBottom:t*e.layoutMargin};default:return{}}});R.div(({theme:e})=>({fontWeight:e.typography.weight.bold}));R.div();R.div(({theme:e})=>({padding:30,textAlign:"center",color:e.color.defaultText,fontSize:e.typography.size.s2-1}));function O7(e,t){var r=h.useRef(null),n=h.useRef(null);n.current=t;var o=h.useRef(null);h.useEffect(function(){a()});var a=h.useCallback(function(){var i=o.current,l=n.current,s=i||(l?l instanceof Element?l:l.current:null);r.current&&r.current.element===s&&r.current.subscriber===e||(r.current&&r.current.cleanup&&r.current.cleanup(),r.current={element:s,subscriber:e,cleanup:s?e(s):void 0})},[e]);return h.useEffect(function(){return function(){r.current&&r.current.cleanup&&(r.current.cleanup(),r.current=null)}},[]),h.useCallback(function(i){o.current=i,a()},[a])}function e0(e,t,r){return e[t]?e[t][0]?e[t][0][r]:e[t][r]:t==="contentBoxSize"?e.contentRect[r==="inlineSize"?"width":"height"]:void 0}function DS(e){e===void 0&&(e={});var t=e.onResize,r=h.useRef(void 0);r.current=t;var n=e.round||Math.round,o=h.useRef(),a=h.useState({width:void 0,height:void 0}),i=a[0],l=a[1],s=h.useRef(!1);h.useEffect(function(){return s.current=!1,function(){s.current=!0}},[]);var u=h.useRef({width:void 0,height:void 0}),c=O7(h.useCallback(function(d){return(!o.current||o.current.box!==e.box||o.current.round!==n)&&(o.current={box:e.box,round:n,instance:new ResizeObserver(function(f){var p=f[0],m=e.box==="border-box"?"borderBoxSize":e.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",y=e0(p,m,"inlineSize"),E=e0(p,m,"blockSize"),b=y?n(y):void 0,v=E?n(E):void 0;if(u.current.width!==b||u.current.height!==v){var S={width:b,height:v};u.current.width=b,u.current.height=v,r.current?r.current(S):s.current||l(S)}})}),o.current.instance.observe(d,{box:e.box}),function(){o.current&&o.current.instance.unobserve(d)}},[e.box,n]),e.ref);return h.useMemo(function(){return{ref:c,width:i.width,height:i.height}},[c,i.width,i.height])}var R7=R.div(({centered:e=!1,scale:t=1,elementHeight:r})=>({height:r||"auto",transformOrigin:e?"center top":"left top",transform:`scale(${1/t})`}));function D7({centered:e,scale:t,children:r}){let n=h.useRef(null),[o,a]=h.useState(0),i=h.useCallback(({height:l})=>{l&&a(l/t)},[t]);return h.useEffect(()=>{n.current&&a(n.current.getBoundingClientRect().height)},[t]),DS({ref:n,onResize:i}),g.createElement(R7,{centered:e,scale:t,elementHeight:o},g.createElement("div",{ref:n,className:"innerZoomElementWrapper"},r))}var PS={Element:D7};const{global:P7}=__STORYBOOK_MODULE_GLOBAL__;var{document:F7}=P7,I7=R.strong(({theme:e})=>({color:e.color.orange})),L7=R.strong(({theme:e})=>({color:e.color.ancillary,textDecoration:"underline"})),t0=R.em(({theme:e})=>({color:e.textMutedColor})),k7=/(Error): (.*)\n/,N7=/at (?:(.*) )?\(?(.+)\)?/,M7=/([^@]+)?(?:\/<)?@(.+)?/,B7=/([^@]+)?@(.+)?/,FS=({error:e})=>{if(!e)return g.createElement(h.Fragment,null,"This error has no stack or message");if(!e.stack)return g.createElement(h.Fragment,null,e.message||"This error has no stack or message");let t=e.stack.toString();t&&e.message&&!t.includes(e.message)&&(t=`Error: ${e.message}
668
+
669
+ ${t}`);let r=t.match(k7);if(!r)return g.createElement(h.Fragment,null,t);let[,n,o]=r,a=t.split(/\n/).slice(1),[,...i]=a.map(l=>{let s=l.match(N7)||l.match(M7)||l.match(B7);return s?{name:(s[1]||"").replace("/<",""),location:s[2].replace(F7.location.origin,"")}:null}).filter(Boolean);return g.createElement(h.Fragment,null,g.createElement("span",null,n),": ",g.createElement(I7,null,o),g.createElement("br",null),i.map((l,s)=>l?.name?g.createElement(h.Fragment,{key:s}," ","at ",g.createElement(L7,null,l.name)," (",g.createElement(t0,null,l.location),")",g.createElement("br",null)):g.createElement(h.Fragment,{key:s}," ","at ",g.createElement(t0,null,l?.location),g.createElement("br",null))))},j7=R.input(({theme:e})=>({appearance:"none",backgroundColor:e.input.background,border:`1px solid ${e.base==="dark"?"hsl(0 0 100 / 0.4)":"hsl(0 0 0 / 0.44)"}`,borderRadius:2,display:"grid",flexShrink:0,height:14,margin:0,placeContent:"center",transition:"background-color 0.1s",width:14,"&:enabled":{cursor:"pointer"},"&:disabled":{backgroundColor:"transparent",borderColor:e.input.border},"&:disabled:checked, &:disabled:indeterminate":{backgroundColor:e.base==="dark"?q.dark:e.color.mediumdark},"&:checked, &:indeterminate":{border:"none",backgroundColor:q.secondary},"&:checked::before":{content:'""',width:14,height:14,background:`no-repeat center url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='m3 7 2.5 2.5L11 4'/%3E%3C/svg%3E")`},"&:indeterminate::before":{content:'""',width:8,height:2,background:"white"},"&:enabled:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:2}})),H7=e=>g.createElement(j7,{...e,type:"checkbox"}),U7=R.label(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}})),z7=R.span(({theme:e})=>({minWidth:100,fontWeight:e.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"})),K7=({label:e,children:t,...r})=>g.createElement(U7,{...r},e?g.createElement(z7,null,g.createElement("span",null,e)):null,t),Tf=(({size:e})=>{switch(e){case"100%":return{width:"100%"};case"flex":return{flex:1};default:return{display:"inline"}}}),IS=(({align:e})=>{switch(e){case"end":return{textAlign:"right"};case"center":return{textAlign:"center"};default:return{textAlign:"left"}}}),LS=(({valid:e,theme:t})=>{switch(e){case"valid":return{boxShadow:`${t.color.positive} 0 0 0 1px inset !important`};case"error":return{boxShadow:`${t.color.negative} 0 0 0 1px inset !important`};case"warn":return{boxShadow:`${t.color.warning} 0 0 0 1px inset`};default:return{}}}),G7={appearance:"none",border:"0 none",boxSizing:"inherit",display:"block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},Af=(({theme:e})=>({...G7,transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:e.input.color||"inherit",background:e.input.background,boxShadow:`${e.input.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,fontSize:e.typography.size.s2-1,lineHeight:"20px",padding:"6px 10px",boxSizing:"border-box",height:32,'&[type="file"]':{height:"auto"},"&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none","@media (forced-colors: active)":{outline:"1px solid highlight"}},'&[disabled], &[aria-disabled="true"]':{background:e.base==="light"?e.color.lighter:"transparent",cursor:"not-allowed"},"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 3em ${e.color.lightest} inset`},"&::placeholder":{color:e.textMutedColor,opacity:1}})),W7=R.div({position:"relative",width:"100%"}),V7=R.div(({theme:e})=>({position:"absolute",left:0,right:0,top:0,bottom:0,display:"flex",alignItems:"center",pointerEvents:"none",overflow:"hidden",color:e.textMutedColor,"span:first-of-type":{opacity:0}}),e=>{let{fontSize:t,lineHeight:r,padding:n}=Af(e);return{fontSize:t,lineHeight:r,padding:n}}),q7=Object.assign(R(h.forwardRef(function({size:e,valid:t,align:r,value:n,suffix:o,...a},i){let l=He();return g.createElement(W7,null,g.createElement("input",{...a,value:n,ref:i,"aria-describedby":o?l:void 0}),o&&g.createElement(V7,{"aria-hidden":!0},g.createElement("span",null,n),g.createElement("span",{id:l},o)))}))(Af,Tf,IS,LS,{minHeight:32,width:"100%"}),{displayName:"Input"}),Y7=R.input(({theme:e})=>({appearance:"none",backgroundColor:e.input.background,border:`1px solid ${e.base==="dark"?"hsl(0 0 100 / 0.4)":"hsl(0 0 0 / 0.44)"}`,borderRadius:8,display:"grid",flexShrink:0,height:16,margin:-1,placeContent:"center",transition:"background-color 0.1s",width:16,"&:enabled":{cursor:"pointer"},"&:disabled":{backgroundColor:"transparent",borderColor:e.input.border},"&:disabled:checked":{backgroundColor:e.base==="dark"?q.dark:e.color.mediumdark,borderColor:e.base==="dark"?q.dark:e.color.mediumdark},"&:checked":{backgroundColor:q.secondary,borderColor:q.secondary,boxShadow:`inset 0 0 0 2px ${e.input.background}`},"&:enabled:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:2}})),X7=e=>g.createElement(Y7,{...e,type:"radio"}),J7=R.select(Tf,({theme:e})=>({appearance:"none",background:`calc(100% - 12px) center no-repeat url("data:image/svg+xml,%3Csvg width='8' height='4' viewBox='0 0 8 4' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.30303 0.196815C1.13566 0.0294472 0.864304 0.0294472 0.696937 0.196815C0.529569 0.364182 0.529569 0.635539 0.696937 0.802906L3.69694 3.80291C3.8643 3.97027 4.13566 3.97027 4.30303 3.80291L7.30303 0.802906C7.4704 0.635539 7.4704 0.364182 7.30303 0.196815C7.13566 0.0294473 6.8643 0.0294473 6.69694 0.196815L3.99998 2.89377L1.30303 0.196815Z' fill='%2373828C'/%3E%3C/svg%3E%0A")`,backgroundSize:10,padding:"6px 30px 6px 10px","@supports (appearance: base-select)":{appearance:"base-select",background:e.input.background,padding:"6px 10px"},transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:e.input.color||"inherit",boxShadow:`${e.input.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,fontSize:e.typography.size.s2-1,lineHeight:"20px",boxSizing:"border-box",border:"none",cursor:"pointer","& > button":{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",gap:8,"& > svg":{width:14,height:14,color:e.textMutedColor}},"&:has(option:not([hidden]):checked)":{color:e.color.defaultText},"&:focus-visible, &:focus-within":{outline:"none",boxShadow:`${e.color.secondary} 0 0 0 1px inset`},"&::picker-icon":{display:"none"},"&::picker(select)":{appearance:"base-select",border:`1px solid ${e.input.border}`,padding:4,marginTop:4,background:e.base==="light"?Ed(e.background.app):e.background.app,filter:`
670
+ drop-shadow(0 5px 5px rgba(0,0,0,0.05))
671
+ drop-shadow(0 0 3px rgba(0,0,0,0.1))
672
+ `,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1,cursor:"default",transition:"opacity 100ms ease-in-out, transform 100ms ease-in-out",transformOrigin:"top",transform:"translateY(0)",opacity:1,"@starting-style":{transform:"translateY(-0.25rem) scale(0.95)",opacity:0}},"& optgroup label":{display:"block",padding:"3px 6px"},"& option":{lineHeight:"18px",padding:"7px 10px",borderRadius:4,outline:"none",cursor:"pointer",color:e.color.defaultText,"&::checkmark":{display:"none"},"&:hover, &:focus-visible":{backgroundColor:e.background.hoverable},"&:checked":{color:e.color.secondary,fontWeight:e.typography.weight.bold},"&:disabled":{backgroundColor:"transparent",cursor:"default",color:e.color.defaultText}}})),Z7=({children:e,...t})=>g.createElement(J7,{...t},!Aw()&&g.createElement("button",null,g.createElement("selectedcontent",null),g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true"},g.createElement("path",{d:"m6 9 6 6 6-6"}))),g.createElement("optgroup",null,e)),Q7=h.useLayoutEffect,eN=function(e){var t=g.useRef(e);return Q7(function(){t.current=e}),t},r0=function(e,t){if(typeof e=="function"){e(t);return}e.current=t},tN=function(e,t){var r=g.useRef();return g.useCallback(function(n){e.current=n,r.current&&r0(r.current,null),r.current=t,t&&r0(t,n)},[t])},n0={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},rN=function(e){Object.keys(n0).forEach(function(t){e.style.setProperty(t,n0[t],"important")})},o0=rN,Je=null,a0=function(e,t){var r=e.scrollHeight;return t.sizingStyle.boxSizing==="border-box"?r+t.borderSize:r-t.paddingSize};function nN(e,t,r,n){r===void 0&&(r=1),n===void 0&&(n=1/0),Je||(Je=document.createElement("textarea"),Je.setAttribute("tabindex","-1"),Je.setAttribute("aria-hidden","true"),o0(Je)),Je.parentNode===null&&document.body.appendChild(Je);var o=e.paddingSize,a=e.borderSize,i=e.sizingStyle,l=i.boxSizing;Object.keys(i).forEach(function(f){var p=f;Je.style[p]=i[p]}),o0(Je),Je.value=t;var s=a0(Je,e);Je.value=t,s=a0(Je,e),Je.value="x";var u=Je.scrollHeight-o,c=u*r;l==="border-box"&&(c=c+o+a),s=Math.max(c,s);var d=u*n;return l==="border-box"&&(d=d+o+a),s=Math.min(d,s),[s,u]}var i0=function(){},oN=function(e,t){return e.reduce(function(r,n){return r[n]=t[n],r},{})},aN=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],iN=!!document.documentElement.currentStyle,lN=function(e){var t=window.getComputedStyle(e);if(t===null)return null;var r=oN(aN,t),n=r.boxSizing;if(n==="")return null;iN&&n==="border-box"&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var o=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),a=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:o,borderSize:a}},sN=lN;function Of(e,t,r){var n=eN(r);h.useLayoutEffect(function(){var o=function(a){return n.current(a)};if(e)return e.addEventListener(t,o),function(){return e.removeEventListener(t,o)}},[])}var uN=function(e,t){Of(document.body,"reset",function(r){e.current.form===r.target&&t(r)})},cN=function(e){Of(window,"resize",e)},dN=function(e){Of(document.fonts,"loadingdone",e)},fN=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],pN=function(e,t){var r=e.cacheMeasurements,n=e.maxRows,o=e.minRows,a=e.onChange,i=a===void 0?i0:a,l=e.onHeightChange,s=l===void 0?i0:l,u=ZD(e,fN),c=u.value!==void 0,d=h.useRef(null),f=tN(d,t),p=h.useRef(0),m=h.useRef(),y=function(){var b=d.current,v=r&&m.current?m.current:sN(b);if(v){m.current=v;var S=nN(v,b.value||b.placeholder||"x",o,n),x=S[0],C=S[1];p.current!==x&&(p.current=x,b.style.setProperty("height",x+"px","important"),s(x,{rowHeight:C}))}},E=function(b){c||y(),i(b)};return h.useLayoutEffect(y),uN(d,function(){if(!c){var b=d.current.value;requestAnimationFrame(function(){var v=d.current;v&&b!==v.value&&y()})}}),cN(y),dN(y),h.createElement("textarea",je({},u,{onChange:E,ref:f}))},hN=h.forwardRef(pN),gN=Object.assign(R(h.forwardRef(function({size:e,valid:t,align:r,...n},o){return g.createElement(hN,{...n,ref:o})}))(Af,Tf,IS,LS,({height:e=400})=>({overflow:"visible",maxHeight:e})),{displayName:"Textarea"}),un=Object.assign(R.form({boxSizing:"border-box",width:"100%"}),{Field:K7,Input:q7,Select:Z7,Textarea:gN,Button:Ce,Checkbox:H7,Radio:X7}),mN=R.div(({hasCloseButton:e,padding:t})=>({display:"inline-block",position:"relative",minHeight:e?36:void 0,zIndex:2147483647,colorScheme:"light dark",padding:t}),({theme:e,hasChrome:t})=>t?{filter:`
673
+ drop-shadow(0px 5px 5px rgba(0,0,0,0.05))
674
+ drop-shadow(0 1px 3px rgba(0,0,0,0.1))
675
+ `,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1}:{},({theme:e,bgColor:t})=>t==="default"&&{background:e.base==="light"?Ed(e.background.app):e.background.app,color:e.color.defaultText},({theme:e,bgColor:t})=>t==="inverse"&&{background:e.base==="light"?e.color.darkest:e.color.lightest,color:e.color.inverseText},({theme:e,bgColor:t})=>(t==="positive"||t==="negative"||t==="warning")&&{background:e.background[t],color:e.color[`${t}Text`]}),yN=R(Ce)({position:"absolute",top:4,right:4}),aa=h.forwardRef(({children:e,color:t="default",hasChrome:r=!0,hideLabel:n="Close",onHide:o,padding:a=8,...i},l)=>g.createElement(mN,{bgColor:t,hasChrome:r,hasCloseButton:!!o,padding:a,ref:l,...i},e,o&&g.createElement(yN,{ariaLabel:n,onClick:o,padding:"small",variant:"ghost",size:"small"},g.createElement(a5,null))));aa.displayName="Popover";var kS=({id:e,title:t,description:r,icon:n,aside:o,children:a,isSelected:i,isActive:l,onClick:s,onFocus:u,onKeyDown:c,shouldLookDisabled:d=!1,...f})=>g.createElement(Za.Item,{...f,id:e,role:"option",tabIndex:l?0:-1,"aria-selected":i,"aria-disabled":d?!0:void 0,onClick:s,onFocus:u,onKeyDown:c},a??g.createElement(g.Fragment,null,n&&g.createElement(Za.Icon,null,n),g.createElement(Za.Text,null,g.createElement("p",null,t),r&&g.createElement("small",null,r)),o));kS.displayName="SelectOption";var Da=5,NS=Symbol.for("undefined");function bN(e){return e==null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"}function Kc(e){return{...e,type:"option",value:Qa(e.value)}}function Su(e){return"type"in e&&e.type==="reset"?e:Kc(e)}function ho(e){if(e!==NS)return e}function Qa(e){return e===void 0?NS:e}var EN=R("ul")({minWidth:180,height:"100%",borderRadius:6,overflow:"hidden auto",listStyle:"none",margin:0,padding:4});function l0(e,{value:t}){return`${e}-opt-${String(t)??"sb-reset"}`}var vN=R.span(({theme:e})=>({appearance:"none",color:e.textMutedColor,fontSize:12}));function s0(e,t){return t===void 0?[]:bN(t)?e.filter(r=>r.value===t).map(Kc):e.filter(r=>t.some(n=>r.value===n)).map(Kc)}var SN=R(Ce)(({$isOpen:e,$hasSelection:t,theme:r})=>e||t?{boxShadow:"none",background:ur(.93,r.barSelectedColor),color:r.base==="light"?Ge(.1,r.color.secondary):r.color.secondary}:{}),xN=R.div({position:"fixed",inset:0,zIndex:1e3}),$N=({children:e,handleClose:t,triggerRef:r})=>{let n=g.useRef(null);JE({ref:n,onInteractOutside:t}),h.useEffect(()=>{if(n.current)return hl([n.current],{shouldUseInert:!0})},[]);let{overlayProps:o}=xf({targetRef:r,overlayRef:n,placement:"bottom start",offset:8,maxHeight:504,isOpen:!0}),{overlayProps:a,underlayProps:i}=wf({isOpen:!0,onClose:t,isDismissable:!0,shouldCloseOnBlur:!1,isKeyboardDismissDisabled:!0},n),l=Ki();return o.style={...o.style,overflow:"hidden auto",scrollbarColor:`${l.barTextColor} transparent`,scrollbarWidth:"thin"},g.createElement($i,{disableFocusManagement:!0,...a},g.createElement(xN,{...i}),g.createElement(aa,{hasChrome:!0,ref:n,padding:0,...o},e))},MS=h.forwardRef(({children:e,icon:t,disabled:r=!1,options:n,defaultOptions:o,multiSelect:a=!1,onReset:i,padding:l="small",resetLabel:s,onSelect:u,onDeselect:c,onChange:d,tooltip:f,ariaLabel:p,...m},y)=>{let[E,b]=h.useState(m.defaultOpen||!1),[v,S]=h.useState(!1),x=Mt(y),C=h.useMemo(()=>"select-"+Math.random().toString(36).substring(2,15),[]),$=`${C}-listbox`,w=h.useRef(null),T=oa({isOpen:E&&!r,onOpenChange:b}),O=h.useCallback(()=>{b(!1),S(!0)},[]);h.useEffect(()=>{!T.isOpen&&v&&(x.current?.focus(),S(!1))},[T.isOpen,v,x]);let[D,_]=h.useState(s0(n,o)),I=h.useCallback(j=>{j.type==="reset"?(d?.([]),i?.(),_([])):_(a?K=>{let H=[];return K?.some(W=>W.value===j.value)?(c?.(ho(j.value)),H=K?.filter(W=>W.value!==j.value)??[]):(u?.(ho(j.value)),H=[...K??[],j]),d?.(H.map(W=>ho(W.value))),H}:K=>K.every(H=>H.value!==j.value)?(u?.(ho(j.value)),d?.([ho(j.value)]),[j]):K)},[a,d,u,c,i]),L=h.useMemo(()=>i?{type:"reset",value:void 0,title:s??"Reset selection",icon:g.createElement(h5,null),description:void 0,children:void 0}:void 0,[i,s]),A=h.useMemo(()=>L?[L,...n]:n,[n,L]);h.useEffect(()=>{o&&_(s0(n,o))},[o,n]);let[P,k]=h.useState(void 0),F=h.useCallback((j,K=!0)=>{k(Su(j)),!a&&K&&I(Su(j))},[a,I]),M=h.useCallback((j=1)=>{if(!E||!P){F(A[j===1?0:Math.min(j,A.length-1)]);return}let K=A.findIndex(X=>P.type==="reset"?"type"in X&&X.type==="reset":Qa(X.value)===P.value),H=K+j,W;H>=A.length&&K===A.length-1?W=A[0]:W=A[Math.min(A.length-1,H)],F(W)},[E,P,F,A]),B=h.useCallback((j=1)=>{if(!E||!P){F(A[Math.max(0,A.length-j)]);return}let K=A.findIndex(X=>P.type==="reset"?"type"in X&&X.type==="reset":Qa(X.value)===P.value),H=K-j,W;H<0&&K===0?W=A[A.length-1]:W=A[Math.max(0,H)],F(W)},[E,P,F,A]),N=h.useCallback(j=>{let K=Ie=>{j.preventDefault(),F(A[Ie]),b(!0)},H=A.findIndex(Ie=>D.some(et=>et.value===Qa(Ie.value))),W=H!==-1,X=L&&!W?1:0,pe=A.length-1;j.key==="Enter"||j.key===" "?K(W?Math.min(H,pe):X):j.key==="ArrowDown"?K(W?Math.min(H+1,pe):X):j.key==="ArrowUp"?K(W?Math.max(H-1,X):pe):j.key==="Home"?K(X):j.key==="End"?K(pe):j.key==="PageDown"?K(Math.min((W?H:X)+Da,pe)):j.key==="PageUp"&&K(Math.max(0,(W?H:pe)-Da))},[A,L,F,D]),z=h.useCallback(j=>{j.key!=="Tab"?j.preventDefault():O(),j.key==="Escape"?O():j.key==="ArrowDown"?M():j.key==="ArrowUp"?B():j.key==="Home"?F(A[0]):j.key==="End"?F(A[A.length-1]):j.key==="PageDown"?M(Da):j.key==="PageUp"&&B(Da)},[O,M,B,A,F]);h.useEffect(()=>{if(E&&P){let j=document.getElementById(l0(C,P));j&&(j.scrollIntoView({block:"nearest"}),j.focus())}else E&&w.current?.focus()},[E,P,C]);let U=h.useMemo(()=>D.length===1?`${p} ${D[0].title}`:D.length?`${p}, ${D.length} values selected`:p,[p,D]);return g.createElement(g.Fragment,null,g.createElement(SN,{...m,variant:"ghost",ariaLabel:U,tooltip:f??p,disableAllTooltips:E,id:C,ref:x,padding:l,$isOpen:E,$hasSelection:!!D.length,"aria-disabled":r,disabled:r,onClick:()=>{E?O():b(!0)},tabIndex:E?-1:0,onKeyDown:N,role:"button","aria-controls":E?$:void 0,"aria-expanded":E,"aria-haspopup":"listbox"},!a&&g.createElement(g.Fragment,null,t,D[0]?.title??e),a&&g.createElement(g.Fragment,null,t,e,!!D.length&&g.createElement(vN,{"aria-label":`${D.length} ${D.length>1?"items":"item"} selected`},D?.length))),T.isOpen&&g.createElement($N,{handleClose:O,triggerRef:x},g.createElement(EN,{"aria-label":p,role:"listbox",id:$,ref:w,"aria-multiselectable":a,onKeyDown:z,tabIndex:E?0:-1},A.map(j=>({option:Su(j),externalOption:j})).map(({externalOption:j,option:K})=>{let H=D?.some(X=>X.value===K.value)&&K!==L,W=K===L;return g.createElement(kS,{key:K.value===void 0?"sb-reset":String(K.value),title:K.title,description:K.description,aside:K.aside,icon:!W&&a?g.createElement(un.Checkbox,{checked:H,hidden:!0,role:"presentation"}):K.icon,id:l0(C,K),isActive:E&&P?.value===K.value,isSelected:H,onClick:()=>{I(K),a||O()},onFocus:()=>F(j,!1),shouldLookDisabled:W&&D.length===0&&a,onKeyDown:X=>{X.key==="Enter"||X.key===" "?(X.preventDefault(),I(K),a||O()):X.key==="Tab"&&(a||I(K),O())}},K.children)}))))});MS.displayName="Select";var cn=class{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,r){let n=this.clone();return t.addDescendants(n,e),n}constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}},BS=class extends cn{filter(e,t,r){let[n,o]=zS(e,t,this.firstChildKey,r),a=this.clone();return a.firstChildKey=n,a.lastChildKey=o,a}},jS=class extends cn{};jS.type="header";var wN=class extends cn{};wN.type="loader";var HS=class extends BS{filter(e,t,r){if(r(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};HS.type="item";var US=class extends BS{filter(e,t,r){let n=super.filter(e,t,r);if(n&&n.lastChildKey!==null){let o=e.getItem(n.lastChildKey);if(o&&o.type!=="header")return n}return null}};US.type="section";var CN=class{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let r=t.get(e),n=r?.firstChildKey!=null?t.get(r.firstChildKey):null;for(;n;)yield n,n=n.nextKey!=null?t.get(n.nextKey):void 0}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(t.prevKey!=null){for(t=this.keyMap.get(t.prevKey);t&&t.type!=="item"&&t.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);var r;return(r=t?.key)!==null&&r!==void 0?r:null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if(t.type!=="item"&&t.firstChildKey!=null)return t.firstChildKey;for(;t;){if(t.nextKey!=null)return t.nextKey;if(t.parentKey!=null)t=this.keyMap.get(t.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;e?.lastChildKey!=null;)e=this.keyMap.get(e.lastChildKey);var t;return(t=e?.key)!==null&&t!==void 0?t:null}getItem(e){var t;return(t=this.keyMap.get(e))!==null&&t!==void 0?t:null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,t=new e;return t.keyMap=new Map(this.keyMap),t.firstKey=this.firstKey,t.lastKey=this.lastKey,t.itemCount=this.itemCount,t}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");e.type==="item"&&this.keyMap.get(e.key)==null&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,t){this.addNode(e);let r=t.getChildren(e.key);for(let n of r)this.addDescendants(n,t)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let t=this.keyMap.get(e);t!=null&&t.type==="item"&&this.itemCount--,this.keyMap.delete(e)}commit(e,t,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=t,this.frozen=!r}filter(e){let t=new this.constructor,[r,n]=zS(this,t,this.firstKey,e);return t?.commit(r,n),t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}};function zS(e,t,r,n){if(r==null)return[null,null];let o=null,a=null,i=e.getItem(r);for(;i!=null;){let u=i.filter(e,t,n);u!=null&&(u.nextKey=null,a&&(u.prevKey=a.key,a.nextKey=u.key),o==null&&(o=u),t.addNode(u),a=u),i=i.nextKey?e.getItem(i.nextKey):null}if(a&&a.type==="separator"){let u=a.prevKey;t.removeNode(a.key),u?(a=t.getItem(u),a.nextKey=null):a=null}var l,s;return[(l=o?.key)!==null&&l!==void 0?l:null,(s=a?.key)!==null&&s!==void 0?s:null]}var KS=class{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){var e;return((e=this.parentNode)===null||e===void 0?void 0:e.isConnected)||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,t){if(t==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index-1,this.firstChild===t?this.firstChild=e:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode!==this||!this.ownerDocument.isMounted||(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}},xu=class Gc extends KS{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){var t;return this.parentNode instanceof Gc?this.parentNode.level+(((t=this.node)===null||t===void 0?void 0:t.type)==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var t,r,n,o,a,i,l,s;let u=this.nextVisibleSibling,c=this.getMutableNode();if(c!=null){c.index=this.index,c.level=this.level;var d;c.parentKey=this.parentNode instanceof Gc&&(d=(t=this.parentNode.node)===null||t===void 0?void 0:t.key)!==null&&d!==void 0?d:null;var f;c.prevKey=(f=(n=this.previousVisibleSibling)===null||n===void 0||(r=n.node)===null||r===void 0?void 0:r.key)!==null&&f!==void 0?f:null;var p;c.nextKey=(p=u==null||(o=u.node)===null||o===void 0?void 0:o.key)!==null&&p!==void 0?p:null,c.hasChildNodes=!!this.firstChild;var m;c.firstChildKey=(m=(i=this.firstVisibleChild)===null||i===void 0||(a=i.node)===null||a===void 0?void 0:a.key)!==null&&m!==void 0?m:null;var y;if(c.lastChildKey=(y=(s=this.lastVisibleChild)===null||s===void 0||(l=s.node)===null||l===void 0?void 0:l.key)!==null&&y!==void 0?y:null,(c.colSpan!=null||c.colIndex!=null)&&u){var E,b;let v=((E=c.colIndex)!==null&&E!==void 0?E:c.index)+((b=c.colSpan)!==null&&b!==void 0?b:1);if(u.node!=null&&v!==u.node.colIndex){let S=u.getMutableNode();S.colIndex=v}}}}setProps(t,r,n,o,a){let i,{value:l,textValue:s,id:u,...c}=t;if(this.node==null?(i=new n(u??`react-aria-${++this.ownerDocument.nodeId}`),this.node=i):i=this.getMutableNode(),c.ref=r,i.props=c,i.rendered=o,i.render=a,i.value=l,i.textValue=s||(typeof c.children=="string"?c.children:"")||t["aria-label"]||"",u!=null&&u!==i.key)throw new Error("Cannot change the id of an item");c.colSpan!=null&&(i.colSpan=c.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let t=this;return{get display(){return t.isHidden?"none":""},set display(r){let n=r==="none";if(t.isHidden!==n){var o,a;(((o=t.parentNode)===null||o===void 0?void 0:o.firstVisibleChild)===t||((a=t.parentNode)===null||a===void 0?void 0:a.lastVisibleChild)===t)&&t.ownerDocument.markDirty(t.parentNode);let i=t.previousVisibleSibling,l=t.nextVisibleSibling;i&&t.ownerDocument.markDirty(i),l&&t.ownerDocument.markDirty(l),t.isHidden=n,t.ownerDocument.markDirty(t)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,r){super(r),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}},_N=class extends KS{get isConnected(){return this.isMounted}createElement(e){return new xu(e,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||e.node==null)return;let t=this.getMutableCollection();if(!t.getItem(e.node.key))for(let r of e)this.addNode(r);t.addNode(e.node)}removeNode(e){if(e.node!=null){for(let t of e)this.removeNode(t);this.getMutableCollection().removeNode(e.node.key)}}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let i of this.dirtyNodes)i instanceof xu&&(!i.isConnected||i.isHidden)?this.removeNode(i):i.updateChildIndices();for(let i of this.dirtyNodes)i instanceof xu&&(i.isConnected&&!i.isHidden&&(i.updateNode(),this.addNode(i)),i.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var e,t,r,n,o,a;this.nextCollection.commit((o=(t=this.firstVisibleChild)===null||t===void 0||(e=t.node)===null||e===void 0?void 0:e.key)!==null&&o!==void 0?o:null,(a=(n=this.lastVisibleChild)===null||n===void 0||(r=n.node)===null||r===void 0?void 0:r.key)!==null&&a!==void 0?a:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}};function GS(e){let{children:t,items:r,idScope:n,addIdAndValue:o,dependencies:a=[]}=e,i=h.useMemo(()=>new WeakMap,a);return h.useMemo(()=>{if(r&&typeof t=="function"){let u=[];for(let c of r){let d=i.get(c);if(!d){d=t(c);var l,s;let f=(s=(l=d.props.id)!==null&&l!==void 0?l:c.key)!==null&&s!==void 0?s:c.id;if(f==null)throw new Error("Could not determine key for item");n&&(f=n+":"+f),d=h.cloneElement(d,o?{key:f,id:f,value:c}:{key:f}),i.set(c,d)}u.push(d)}return u}else if(typeof t!="function")return t},[t,r,i,n,o])}if(typeof HTMLTemplateElement<"u"){let e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}var wi=h.createContext(!1);function TN(e){if(h.useContext(wi))return g.createElement(g.Fragment,null,e.children);let t=g.createElement(wi.Provider,{value:!0},e.children);return g.createElement("template",{"data-react-aria-hidden":!0},t)}function Rf(e){let t=(r,n)=>h.useContext(wi)?null:e(r,n);return t.displayName=e.displayName||e.name,h.forwardRef(t)}function AN(){return h.useContext(wi)}var WS=h.createContext(!1),zo=h.createContext(null);function VS(e){if(h.useContext(zo))return e.content;let{collection:t,document:r}=PN(e.createCollection);return g.createElement(g.Fragment,null,g.createElement(TN,null,g.createElement(zo.Provider,{value:r},e.content)),g.createElement(ON,{render:e.children,collection:t}))}function ON({collection:e,render:t}){return t(e)}function RN(e,t,r){let n=sn(),o=h.useRef(n);o.current=n;let a=h.useCallback(()=>o.current?r():t(),[t,r]);return XI.useSyncExternalStore(e,a)}var DN=typeof g.useSyncExternalStore=="function"?g.useSyncExternalStore:RN;function PN(e){let[t]=h.useState(()=>new _N(e?.()||new CN)),r=h.useCallback(i=>t.subscribe(i),[t]),n=h.useCallback(()=>{let i=t.getCollection();return t.isSSR&&t.resetAfterSSR(),i},[t]),o=h.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]),a=DN(r,n,o);return ue(()=>(t.isMounted=!0,()=>{t.isMounted=!1}),[t]),{collection:a,document:t}}var Wc=h.createContext(null);function FN(e){var t;return t=class extends cn{},t.type=e,t}function qS(e,t,r,n,o,a){typeof e=="string"&&(e=FN(e));let i=h.useCallback(s=>{s?.setProps(t,r,e,n,a)},[t,r,n,a,e]),l=h.useContext(Wc);if(l){let s=l.ownerDocument.nodesByProps.get(t);return s||(s=l.ownerDocument.createElement(e.type),s.setProps(t,r,e,n,a),l.appendChild(s),l.ownerDocument.updateCollection(),l.ownerDocument.nodesByProps.set(t,s)),o?g.createElement(Wc.Provider,{value:s},o):null}return g.createElement(e.type,{ref:i},o)}function yl(e,t){let r=({node:o})=>t(o.props,o.props.ref,o),n=h.forwardRef((o,a)=>{let i=h.useContext(bi);if(!h.useContext(WS)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(o,a)}return qS(e,o,a,"children"in o?o.children:null,null,l=>g.createElement(bi.Provider,{value:i},g.createElement(r,{node:l})))});return n.displayName=t.name,n}function Df(e,t,r=YS){let n=({node:a})=>t(a.props,a.props.ref,a),o=h.forwardRef((a,i)=>{let l=r(a);var s;return(s=qS(e,a,i,null,l,u=>g.createElement(n,{node:u})))!==null&&s!==void 0?s:g.createElement(g.Fragment,null)});return o.displayName=t.name,o}function YS(e){return GS({...e,addIdAndValue:!0})}var u0=h.createContext(null);function XS(e){let t=h.useContext(u0),r=(t?.dependencies||[]).concat(e.dependencies),n=e.idScope||t?.idScope,o=YS({...e,idScope:n,dependencies:r});return h.useContext(zo)&&(o=g.createElement(IN,null,o)),t=h.useMemo(()=>({dependencies:r,idScope:n}),[n,...r]),g.createElement(u0.Provider,{value:t},o)}function IN({children:e}){let t=h.useContext(zo),r=h.useMemo(()=>g.createElement(zo.Provider,{value:null},g.createElement(WS.Provider,{value:!0},e)),[e]);return sn()?g.createElement(Wc.Provider,{value:t},r):Di.createPortal(r,t)}var JS=h.createContext({});Rf(function(e,t){[e,t]=qe(e,t,JS);let{elementType:r="label",...n}=e;return g.createElement(r,{className:"react-aria-Label",...n,ref:t})});function LN(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":o,labelElementType:a="label"}=e;t=He(t);let i=He(),l={};r&&(n=n?`${i} ${n}`:i,l={id:i,htmlFor:a==="label"?t:void 0});let s=ul({id:t,"aria-label":o,"aria-labelledby":n});return{labelProps:l,fieldProps:s}}function kN(e){let{value:t=0,minValue:r=0,maxValue:n=100,valueLabel:o,isIndeterminate:a,formatOptions:i={style:"percent"}}=e,l=xe(e,{labelable:!0}),{labelProps:s,fieldProps:u}=LN({...e,labelElementType:"span"});t=Mo(t,r,n);let c=(t-r)/(n-r),d=ik(i);if(!a&&!o){let f=i.style==="percent"?c:t;o=d.format(f)}return{progressBarProps:ee(l,{...u,"aria-valuenow":a?void 0:t,"aria-valuemin":r,"aria-valuemax":n,"aria-valuetext":a?void 0:o,role:"progressbar"}),labelProps:s}}var ZS=h.createContext(null);h.forwardRef(function(e,t){[e,t]=qe(e,t,ZS);let{value:r=0,minValue:n=0,maxValue:o=100,isIndeterminate:a=!1}=e;r=Mo(r,n,o);let[i,l]=ZE(!e["aria-label"]&&!e["aria-labelledby"]),{progressBarProps:s,labelProps:u}=kN({...e,label:l}),c=a?void 0:(r-n)/(o-n)*100,d=ht({...e,defaultClassName:"react-aria-ProgressBar",values:{percentage:c,valueText:s["aria-valuetext"],isIndeterminate:a}}),f=xe(e,{global:!0});return g.createElement("div",{...ee(f,d,s),ref:t,slot:e.slot||void 0},g.createElement(JS.Provider,{value:{...u,ref:i,elementType:"span"}},d.children))});var pn=null;function c0(e,t="assertive",r=7e3){pn?pn.announce(e,t,r):(pn=new NN,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?pn.announce(e,t,r):setTimeout(()=>{pn?.isAttached()&&pn?.announce(e,t,r)},100))}var NN=class{isAttached(){var e;return(e=this.node)===null||e===void 0?void 0:e.isConnected}createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",r=7e3){var n,o;if(!this.node)return;let a=document.createElement("div");typeof e=="object"?(a.setAttribute("role","img"),a.setAttribute("aria-labelledby",e["aria-labelledby"])):a.textContent=e,t==="assertive"?(n=this.assertiveLog)===null||n===void 0||n.appendChild(a):(o=this.politeLog)===null||o===void 0||o.appendChild(a),e!==""&&setTimeout(()=>{a.remove()},r)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}};function MN(e,t){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:a,onPressEnd:i,onPressUp:l,onPressChange:s,preventFocusOnPress:u,allowFocusWhenDisabled:c,onClick:d,href:f,target:p,rel:m,type:y="button"}=e,E;r==="button"?E={type:y,disabled:n,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:E={role:"button",href:r==="a"&&!n?f:void 0,target:r==="a"?p:void 0,type:r==="input"?y:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?m:void 0};let{pressProps:b,isPressed:v}=ra({onPressStart:a,onPressEnd:i,onPressChange:s,onPress:o,onPressUp:l,onClick:d,isDisabled:n,preventFocusOnPress:u,ref:t}),{focusableProps:S}=na(e,t);c&&(S.tabIndex=n?-1:S.tabIndex);let x=ee(S,b,xe(e,{labelable:!0}));return{isPressed:v,buttonProps:ee(E,x,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}var QS=h.createContext({});Rf(function(e,t){[e,t]=qe(e,t,QS),e=BN(e);let r=e,{isPending:n}=r,{buttonProps:o,isPressed:a}=MN(e,t),{focusProps:i,isFocused:l,isFocusVisible:s}=pl(e),{hoverProps:u,isHovered:c}=Zn({...e,isDisabled:e.isDisabled||n}),d={isHovered:c,isPressed:(r.isPressed||a)&&!n,isFocused:l,isFocusVisible:s,isDisabled:e.isDisabled||!1,isPending:n??!1},f=ht({...e,values:d,defaultClassName:"react-aria-Button"}),p=He(o.id),m=He(),y=o["aria-labelledby"];n&&(y?y=`${y} ${m}`:o["aria-label"]&&(y=`${p} ${m}`));let E=h.useRef(n);h.useEffect(()=>{let v={"aria-labelledby":y||p};(!E.current&&l&&n||E.current&&l&&!n)&&c0(v,"assertive"),E.current=n},[n,l,y,p]);let b=xe(e,{global:!0});return delete b.onClick,g.createElement("button",{...ee(b,f,o,i,u),type:o.type==="submit"&&n?"button":o.type,id:p,ref:t,"aria-labelledby":y,slot:e.slot||void 0,"aria-disabled":n?"true":o["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":d.isPressed||void 0,"data-hovered":c||void 0,"data-focused":l||void 0,"data-pending":n||void 0,"data-focus-visible":s||void 0},g.createElement(ZS.Provider,{value:{id:m}},f.children))});function BN(e){return e.isPending&&(e.onPress=void 0,e.onPressStart=void 0,e.onPressEnd=void 0,e.onPressChange=void 0,e.onPressUp=void 0,e.onKeyDown=void 0,e.onKeyUp=void 0,e.onClick=void 0,e.href=void 0),e}var Pf=h.createContext(null),d0=h.createContext(null),jN=h.forwardRef(function(e,t){[e,t]=qe(e,t,Pf);let r=h.useContext(El),n=oa(e),o=e.isOpen!=null||e.defaultOpen!=null||!r?n:r,a=ME(t,o.isOpen)||e.isExiting||!1,i=AN(),{direction:l}=pr();if(i){let s=e.children;return typeof s=="function"&&(s=s({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),g.createElement(g.Fragment,null,s)}return o&&!o.isOpen&&!a?null:g.createElement(HN,{...e,triggerRef:e.triggerRef,state:o,popoverRef:t,isExiting:a,dir:l})});function HN({state:e,isExiting:t,UNSTABLE_portalContainer:r,clearContexts:n,...o}){let a=h.useRef(null),i=h.useRef(null),l=h.useContext(d0),s=l&&o.trigger==="SubmenuTrigger";var u;let{popoverProps:c,underlayProps:d,arrowProps:f,placement:p,triggerAnchorPoint:m}=kk({...o,offset:(u=o.offset)!==null&&u!==void 0?u:8,arrowRef:a,groupRef:s?l:i},e),y=o.popoverRef,E=NE(y,!!p)||o.isEntering||!1,b=ht({...o,defaultClassName:"react-aria-Popover",values:{trigger:o.trigger||null,placement:p,isEntering:E,isExiting:t}}),v=!o.isNonModal||o.trigger==="SubmenuTrigger",[S,x]=h.useState(!1);ue(()=>{y.current&&x(v&&!y.current.querySelector("[role=dialog]"))},[y,v]),h.useEffect(()=>{S&&o.trigger!=="SubmenuTrigger"&&y.current&&!y.current.contains(document.activeElement)&&Cr(y.current)},[S,y,o.trigger]);let C=h.useMemo(()=>{let O=b.children;if(n)for(let D of n)O=g.createElement(D.Provider,{value:null},O);return O},[b.children,n]),$={...c.style,"--trigger-anchor-point":m?`${m.x}px ${m.y}px`:void 0,...b.style},w=g.createElement("div",{...ee(xe(o,{global:!0}),c),...b,role:S?"dialog":void 0,tabIndex:S?-1:void 0,"aria-label":o["aria-label"],"aria-labelledby":o["aria-labelledby"],ref:y,slot:o.slot||void 0,style:$,dir:o.dir,"data-trigger":o.trigger,"data-placement":p,"data-entering":E||void 0,"data-exiting":t||void 0},!o.isNonModal&&g.createElement(qm,{onDismiss:e.close}),g.createElement(vf.Provider,{value:{...f,placement:p,ref:a}},C),g.createElement(qm,{onDismiss:e.close}));if(!s)return g.createElement($i,{...o,shouldContainFocus:S,isExiting:t,portalContainer:r},!o.isNonModal&&e.isOpen&&g.createElement("div",{"data-testid":"underlay",...d,style:{position:"fixed",inset:0}}),g.createElement("div",{ref:i,style:{display:"contents"}},g.createElement(d0.Provider,{value:i},w)));var T;return g.createElement($i,{...o,shouldContainFocus:S,isExiting:t,portalContainer:(T=r??l?.current)!==null&&T!==void 0?T:void 0},w)}var ex=h.createContext(null);Df("section",(e,t,r)=>{let{name:n,render:o}=h.useContext(ex);return o(e,t,r,"react-aria-Section")});var tx={CollectionRoot({collection:e,renderDropIndicator:t}){return f0(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:r}){return f0(e,t,r)}};function f0(e,t,r){return GS({items:t?e.getChildren(t.key):e,dependencies:[r],children(n){let o=n.render(n);return!r||n.type!=="item"?o:g.createElement(g.Fragment,null,r({type:"item",key:n.key,dropPosition:"before"}),o,UN(e,n,r))}})}function UN(e,t,r){let n=t.key,o=e.getKeyAfter(n),a=o!=null?e.getItem(o):null;for(;a!=null&&a.type!=="item";)o=e.getKeyAfter(a.key),a=o!=null?e.getItem(o):null;let i=t.nextKey!=null?e.getItem(t.nextKey):null;for(;i!=null&&i.type!=="item";)i=i.nextKey!=null?e.getItem(i.nextKey):null;let l=[];if(i==null){let s=t;for(;s&&(!a||s.parentKey!==a.parentKey&&a.level<s.level);){let u=r({type:"item",key:s.key,dropPosition:"after"});h.isValidElement(u)&&l.push(h.cloneElement(u,{key:`${s.key}-after`})),s=s.parentKey!=null?e.getItem(s.parentKey):null}}return l}var ia=h.createContext(tx);function rx(e){return h.useMemo(()=>e!=null?new Set([e]):null,[e])}var p0=h.createContext(null),zN=h.createContext(null),nx=h.createContext({});yl(jS,function(e,t){return[e,t]=qe(e,t,nx),g.createElement("header",{className:"react-aria-Header",...e,ref:t},e.children)});var ox=h.createContext({});h.forwardRef(function(e,t){return[e,t]=qe(e,t,ox),g.createElement("kbd",{dir:"ltr",...e,ref:t})});function KN(e){let t=xe(e,{labelable:!0}),r;return e.orientation==="vertical"&&(r="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":r}}:{separatorProps:t}}var ax=h.createContext({}),ix=class extends cn{filter(e,t){let r=t.getItem(this.prevKey);if(r&&r.type!=="separator"){let n=this.clone();return t.addDescendants(n,e),n}return null}};ix.type="separator";yl(ix,function(e,t){[e,t]=qe(e,t,ax);let{elementType:r,orientation:n,style:o,className:a,slot:i,...l}=e,s=r||"hr";s==="hr"&&n==="vertical"&&(s="div");let{separatorProps:u}=KN({...l,elementType:r,orientation:n}),c=xe(e,{global:!0});return g.createElement(s,{...ee(c,u),style:o,className:a??"react-aria-Separator",ref:t,slot:i||void 0})});var lx=new WeakMap;function Vc(e){return W8()?e.altKey:e.ctrlKey}function ei(e,t){var r,n;let o=`[data-key="${CSS.escape(String(t))}"]`,a=(r=e.current)===null||r===void 0?void 0:r.dataset.collection;return a&&(o=`[data-collection="${CSS.escape(a)}"]${o}`),(n=e.current)===null||n===void 0?void 0:n.querySelector(o)}var sx=new WeakMap;function GN(e){let t=He();return sx.set(e,t),t}function WN(e){return sx.get(e)}var VN=1e3;function qN(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:n}=e,o=h.useRef({search:"",timeout:void 0}).current,a=i=>{let l=YN(i.key);if(!(!l||i.ctrlKey||i.metaKey||!i.currentTarget.contains(i.target)||o.search.length===0&&l===" ")){if(l===" "&&o.search.trim().length>0&&(i.preventDefault(),"continuePropagation"in i||i.stopPropagation()),o.search+=l,t.getKeyForSearch!=null){let s=t.getKeyForSearch(o.search,r.focusedKey);s==null&&(s=t.getKeyForSearch(o.search)),s!=null&&(r.setFocusedKey(s),n&&n(s))}clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},VN)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?a:void 0}}}function YN(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function ux(e){let{selectionManager:t,keyboardDelegate:r,ref:n,autoFocus:o=!1,shouldFocusWrap:a=!1,disallowEmptySelection:i=!1,disallowSelectAll:l=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:u=t.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:d,allowsTabNavigation:f=!1,isVirtualized:p,scrollRef:m=n,linkBehavior:y="action"}=e,{direction:E}=pr(),b=ll(),v=F=>{var M;if(F.altKey&&F.key==="Tab"&&F.preventDefault(),!(!((M=n.current)===null||M===void 0)&&M.contains(F.target)))return;let B=(G,V)=>{if(G!=null){if(t.isLink(G)&&y==="selection"&&u&&!Vc(F)){Di.flushSync(()=>{t.setFocusedKey(G,V)});let Q=ei(n,G),le=t.getItemProps(G);Q&&b.open(Q,F,le.href,le.routerOptions);return}if(t.setFocusedKey(G,V),t.isLink(G)&&y==="override")return;F.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(G):u&&!Vc(F)&&t.replaceSelection(G)}};switch(F.key){case"ArrowDown":if(r.getKeyBelow){var N,z,U;let G=t.focusedKey!=null?(N=r.getKeyBelow)===null||N===void 0?void 0:N.call(r,t.focusedKey):(z=r.getFirstKey)===null||z===void 0?void 0:z.call(r);G==null&&a&&(G=(U=r.getFirstKey)===null||U===void 0?void 0:U.call(r,t.focusedKey)),G!=null&&(F.preventDefault(),B(G))}break;case"ArrowUp":if(r.getKeyAbove){var j,K,H;let G=t.focusedKey!=null?(j=r.getKeyAbove)===null||j===void 0?void 0:j.call(r,t.focusedKey):(K=r.getLastKey)===null||K===void 0?void 0:K.call(r);G==null&&a&&(G=(H=r.getLastKey)===null||H===void 0?void 0:H.call(r,t.focusedKey)),G!=null&&(F.preventDefault(),B(G))}break;case"ArrowLeft":if(r.getKeyLeftOf){var W,X,pe;let G=t.focusedKey!=null?(W=r.getKeyLeftOf)===null||W===void 0?void 0:W.call(r,t.focusedKey):null;G==null&&a&&(G=E==="rtl"?(X=r.getFirstKey)===null||X===void 0?void 0:X.call(r,t.focusedKey):(pe=r.getLastKey)===null||pe===void 0?void 0:pe.call(r,t.focusedKey)),G!=null&&(F.preventDefault(),B(G,E==="rtl"?"first":"last"))}break;case"ArrowRight":if(r.getKeyRightOf){var Ie,et,J;let G=t.focusedKey!=null?(Ie=r.getKeyRightOf)===null||Ie===void 0?void 0:Ie.call(r,t.focusedKey):null;G==null&&a&&(G=E==="rtl"?(et=r.getLastKey)===null||et===void 0?void 0:et.call(r,t.focusedKey):(J=r.getFirstKey)===null||J===void 0?void 0:J.call(r,t.focusedKey)),G!=null&&(F.preventDefault(),B(G,E==="rtl"?"last":"first"))}break;case"Home":if(r.getFirstKey){if(t.focusedKey===null&&F.shiftKey)return;F.preventDefault();let G=r.getFirstKey(t.focusedKey,yn(F));t.setFocusedKey(G),G!=null&&(yn(F)&&F.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(G):u&&t.replaceSelection(G))}break;case"End":if(r.getLastKey){if(t.focusedKey===null&&F.shiftKey)return;F.preventDefault();let G=r.getLastKey(t.focusedKey,yn(F));t.setFocusedKey(G),G!=null&&(yn(F)&&F.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(G):u&&t.replaceSelection(G))}break;case"PageDown":if(r.getKeyPageBelow&&t.focusedKey!=null){let G=r.getKeyPageBelow(t.focusedKey);G!=null&&(F.preventDefault(),B(G))}break;case"PageUp":if(r.getKeyPageAbove&&t.focusedKey!=null){let G=r.getKeyPageAbove(t.focusedKey);G!=null&&(F.preventDefault(),B(G))}break;case"a":yn(F)&&t.selectionMode==="multiple"&&l!==!0&&(F.preventDefault(),t.selectAll());break;case"Escape":s==="clearSelection"&&!i&&t.selectedKeys.size!==0&&(F.stopPropagation(),F.preventDefault(),t.clearSelection());break;case"Tab":if(!f){if(F.shiftKey)n.current.focus();else{let G=ot(n.current,{tabbable:!0}),V,Q;do Q=G.lastChild(),Q&&(V=Q);while(Q);V&&!V.contains(document.activeElement)&&rt(V)}break}}},S=h.useRef({top:0,left:0});vo(m,"scroll",p?void 0:()=>{var F,M,B,N;S.current={top:(B=(F=m.current)===null||F===void 0?void 0:F.scrollTop)!==null&&B!==void 0?B:0,left:(N=(M=m.current)===null||M===void 0?void 0:M.scrollLeft)!==null&&N!==void 0?N:0}});let x=F=>{if(t.isFocused){F.currentTarget.contains(F.target)||t.setFocused(!1);return}if(F.currentTarget.contains(F.target)){if(t.setFocused(!0),t.focusedKey==null){var M,B;let U=K=>{K!=null&&(t.setFocusedKey(K),u&&!t.isSelected(K)&&t.replaceSelection(K))},j=F.relatedTarget;var N,z;j&&F.currentTarget.compareDocumentPosition(j)&Node.DOCUMENT_POSITION_FOLLOWING?U((N=t.lastSelectedKey)!==null&&N!==void 0?N:(M=r.getLastKey)===null||M===void 0?void 0:M.call(r)):U((z=t.firstSelectedKey)!==null&&z!==void 0?z:(B=r.getFirstKey)===null||B===void 0?void 0:B.call(r))}else!p&&m.current&&(m.current.scrollTop=S.current.top,m.current.scrollLeft=S.current.left);if(t.focusedKey!=null&&m.current){let U=ei(n,t.focusedKey);U instanceof HTMLElement&&(!U.contains(document.activeElement)&&!d&&rt(U),Uo()==="keyboard"&&pm(U,{containingElement:n.current}))}}},C=F=>{F.currentTarget.contains(F.relatedTarget)||t.setFocused(!1)},$=h.useRef(!1);vo(n,s6,d?F=>{let{detail:M}=F;F.stopPropagation(),t.setFocused(!0),M?.focusStrategy==="first"&&($.current=!0)}:void 0);let w=Me(()=>{var F,M;let B=(M=(F=r.getFirstKey)===null||F===void 0?void 0:F.call(r))!==null&&M!==void 0?M:null;if(B==null){let N=Le();wv(n.current),Cv(N,null),t.collection.size>0&&($.current=!1)}else t.setFocusedKey(B),$.current=!1});dm(()=>{$.current&&w()},[t.collection,w]);let T=Me(()=>{t.collection.size>0&&($.current=!1)});dm(()=>{T()},[t.focusedKey,T]),vo(n,l6,d?F=>{var M;F.stopPropagation(),t.setFocused(!1),!((M=F.detail)===null||M===void 0)&&M.clearFocusKey&&t.setFocusedKey(null)}:void 0);let O=h.useRef(o),D=h.useRef(!1);h.useEffect(()=>{if(O.current){var F,M;let z=null;var B;o==="first"&&(z=(B=(F=r.getFirstKey)===null||F===void 0?void 0:F.call(r))!==null&&B!==void 0?B:null);var N;o==="last"&&(z=(N=(M=r.getLastKey)===null||M===void 0?void 0:M.call(r))!==null&&N!==void 0?N:null);let U=t.selectedKeys;if(U.size){for(let j of U)if(t.canSelectItem(j)){z=j;break}}t.setFocused(!0),t.setFocusedKey(z),z==null&&!d&&n.current&&Cr(n.current),t.collection.size>0&&(O.current=!1,D.current=!0)}});let _=h.useRef(t.focusedKey),I=h.useRef(null);h.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==_.current||D.current)&&m.current&&n.current){let F=Uo(),M=ei(n,t.focusedKey);if(!(M instanceof HTMLElement))return;(F==="keyboard"||D.current)&&(I.current&&cancelAnimationFrame(I.current),I.current=requestAnimationFrame(()=>{m.current&&(LE(m.current,M),F!=="virtual"&&pm(M,{containingElement:n.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&_.current!=null&&n.current&&Cr(n.current),_.current=t.focusedKey,D.current=!1}),h.useEffect(()=>()=>{I.current&&cancelAnimationFrame(I.current)},[]),vo(n,"react-aria-focus-scope-restore",F=>{F.preventDefault(),t.setFocused(!0)});let L={onKeyDown:v,onFocus:x,onBlur:C,onMouseDown(F){m.current===F.target&&F.preventDefault()}},{typeSelectProps:A}=qN({keyboardDelegate:r,selectionManager:t});c||(L=ee(A,L));let P;d||(P=t.focusedKey==null?0:-1);let k=GN(t.collection);return{collectionProps:ee(L,{tabIndex:P,"data-collection":k})}}function cx(e){let{id:t,selectionManager:r,key:n,ref:o,shouldSelectOnPressUp:a,shouldUseVirtualFocus:i,focus:l,isDisabled:s,onAction:u,allowsDifferentPressOrigin:c,linkBehavior:d="action"}=e,f=ll();t=He(t);let p=N=>{if(N.pointerType==="keyboard"&&Vc(N))r.toggleSelection(n);else{if(r.selectionMode==="none")return;if(r.isLink(n)){if(d==="selection"&&o.current){let z=r.getItemProps(n);f.open(o.current,N,z.href,z.routerOptions),r.setSelectedKeys(r.selectedKeys);return}else if(d==="override"||d==="none")return}r.selectionMode==="single"?r.isSelected(n)&&!r.disallowEmptySelection?r.toggleSelection(n):r.replaceSelection(n):N&&N.shiftKey?r.extendSelection(n):r.selectionBehavior==="toggle"||N&&(yn(N)||N.pointerType==="touch"||N.pointerType==="virtual")?r.toggleSelection(n):r.replaceSelection(n)}};h.useEffect(()=>{n===r.focusedKey&&r.isFocused&&(i?wv(o.current):l?l():document.activeElement!==o.current&&o.current&&Cr(o.current))},[o,n,r.focusedKey,r.childFocusStrategy,r.isFocused,i]),s=s||r.isDisabled(n);let m={};!i&&!s?m={tabIndex:n===r.focusedKey?0:-1,onFocus(N){N.target===o.current&&r.setFocusedKey(n)}}:s&&(m.onMouseDown=N=>{N.preventDefault()});let y=r.isLink(n)&&d==="override",E=u&&e.UNSTABLE_itemBehavior==="action",b=r.isLink(n)&&d!=="selection"&&d!=="none",v=!s&&r.canSelectItem(n)&&!y&&!E,S=(u||b)&&!s,x=S&&(r.selectionBehavior==="replace"?!v:!v||r.isEmpty),C=S&&v&&r.selectionBehavior==="replace",$=x||C,w=h.useRef(null),T=$&&v,O=h.useRef(!1),D=h.useRef(!1),_=r.getItemProps(n),I=N=>{if(u){var z;u(),(z=o.current)===null||z===void 0||z.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}b&&o.current&&f.open(o.current,N,_.href,_.routerOptions)},L={ref:o};if(a?(L.onPressStart=N=>{w.current=N.pointerType,O.current=T,N.pointerType==="keyboard"&&(!$||g0())&&p(N)},c?(L.onPressUp=x?void 0:N=>{N.pointerType==="mouse"&&v&&p(N)},L.onPress=x?I:N=>{N.pointerType!=="keyboard"&&N.pointerType!=="mouse"&&v&&p(N)}):L.onPress=N=>{if(x||C&&N.pointerType!=="mouse"){if(N.pointerType==="keyboard"&&!h0())return;I(N)}else N.pointerType!=="keyboard"&&v&&p(N)}):(L.onPressStart=N=>{w.current=N.pointerType,O.current=T,D.current=x,v&&(N.pointerType==="mouse"&&!x||N.pointerType==="keyboard"&&(!S||g0()))&&p(N)},L.onPress=N=>{(N.pointerType==="touch"||N.pointerType==="pen"||N.pointerType==="virtual"||N.pointerType==="keyboard"&&$&&h0()||N.pointerType==="mouse"&&D.current)&&($?I(N):v&&p(N))}),m["data-collection"]=WN(r.collection),m["data-key"]=n,L.preventFocusOnPress=i,i&&(L=ee(L,{onPressStart(N){N.pointerType!=="touch"&&(r.setFocused(!0),r.setFocusedKey(n))},onPress(N){N.pointerType==="touch"&&(r.setFocused(!0),r.setFocusedKey(n))}})),_)for(let N of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])_[N]&&(L[N]=ta(L[N],_[N]));let{pressProps:A,isPressed:P}=ra(L),k=C?N=>{w.current==="mouse"&&(N.stopPropagation(),N.preventDefault(),I(N))}:void 0,{longPressProps:F}=U6({isDisabled:!T,onLongPress(N){N.pointerType==="touch"&&(p(N),r.setSelectionBehavior("toggle"))}}),M=N=>{w.current==="touch"&&O.current&&N.preventDefault()},B=d!=="none"&&r.isLink(n)?N=>{tn.isOpening||N.preventDefault()}:void 0;return{itemProps:ee(m,v||x||i&&!s?A:{},T?F:{},{onDoubleClick:k,onDragStartCapture:M,onClick:B,id:t},i?{onMouseDown:N=>N.preventDefault()}:void 0),isPressed:P,isSelected:r.isSelected(n),isFocused:r.isFocused&&r.focusedKey===n,isDisabled:s,allowsSelection:v,hasAction:$}}function h0(){return window.event?.key==="Enter"}function g0(){let e=window.event;return e?.key===" "||e?.code==="Space"}var m0=class{getItemRect(e){let t=this.ref.current;if(!t)return null;let r=e!=null?ei(this.ref,e):null;if(!r)return null;let n=t.getBoundingClientRect(),o=r.getBoundingClientRect();return{x:o.left-n.left-t.clientLeft+t.scrollLeft,y:o.top-n.top-t.clientTop+t.scrollTop,width:o.width,height:o.height}}getContentSize(){let e=this.ref.current;var t,r;return{width:(t=e?.scrollWidth)!==null&&t!==void 0?t:0,height:(r=e?.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let e=this.ref.current;var t,r,n,o;return{x:(t=e?.scrollLeft)!==null&&t!==void 0?t:0,y:(r=e?.scrollTop)!==null&&r!==void 0?r:0,width:(n=e?.clientWidth)!==null&&n!==void 0?n:0,height:(o=e?.clientHeight)!==null&&o!==void 0?o:0}}constructor(e){this.ref=e}},XN=class{isDisabled(e){var t;return this.disabledBehavior==="all"&&(((t=e.props)===null||t===void 0?void 0:t.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,t){let r=e;for(;r!=null;){let n=this.collection.getItem(r);if(n?.type==="item"&&!this.isDisabled(n))return r;r=t(r)}return null}getNextKey(e){let t=e;return t=this.collection.getKeyAfter(t),this.findNextNonDisabled(t,r=>this.collection.getKeyAfter(r))}getPreviousKey(e){let t=e;return t=this.collection.getKeyBefore(t),this.findNextNonDisabled(t,r=>this.collection.getKeyBefore(r))}findKey(e,t,r){let n=e,o=this.layoutDelegate.getItemRect(n);if(!o||n==null)return null;let a=o;do{if(n=t(n),n==null)break;o=this.layoutDelegate.getItemRect(n)}while(o&&r(a,o)&&n!=null);return n}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,t=>this.getNextKey(t),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,t=>this.getPreviousKey(t),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let t=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[t](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){let t=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[t](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr"):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,t=>this.collection.getKeyAfter(t))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,t=>this.collection.getKeyBefore(t))}getKeyPageAbove(e){let t=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(t&&!kn(t))return this.getFirstKey();let n=e;if(this.orientation==="horizontal"){let o=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>o&&n!=null;)n=this.getKeyAbove(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}else{let o=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>o&&n!=null;)n=this.getKeyAbove(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}return n??this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(t&&!kn(t))return this.getLastKey();let n=e;if(this.orientation==="horizontal"){let o=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<o&&n!=null;)n=this.getKeyBelow(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}else{let o=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<o&&n!=null;)n=this.getKeyBelow(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}return n??this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let r=this.collection,n=t||this.getFirstKey();for(;n!=null;){let o=r.getItem(n);if(!o)return null;let a=o.textValue.slice(0,e.length);if(o.textValue&&this.collator.compare(a,e)===0)return n;n=this.getNextKey(n)}return null}constructor(...e){if(e.length===1){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||"all",this.orientation=t.orientation||"vertical",this.direction=t.direction,this.layout=t.layout||"stack",this.layoutDelegate=t.layoutDelegate||new m0(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new m0(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}};function JN(e){let{selectionManager:t,collection:r,disabledKeys:n,ref:o,keyboardDelegate:a,layoutDelegate:i}=e,l=lk({usage:"search",sensitivity:"base"}),s=t.disabledBehavior,u=h.useMemo(()=>a||new XN({collection:r,disabledKeys:n,disabledBehavior:s,ref:o,collator:l,layoutDelegate:i}),[a,i,r,n,o,l,s]),{collectionProps:c}=ux({...e,ref:o,selectionManager:t,keyboardDelegate:u});return{listProps:c}}function ZN(e,t,r){let{shouldFocusWrap:n=!0,onKeyDown:o,onKeyUp:a,...i}=e;!e["aria-label"]&&e["aria-labelledby"];let l=xe(e,{labelable:!0}),{listProps:s}=JN({...i,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:n,linkBehavior:"override"});return lx.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:ee(l,{onKeyDown:o,onKeyUp:a},{role:"menu",...s,onKeyDown:u=>{var c;(u.key!=="Escape"||e.shouldUseVirtualFocus)&&((c=s.onKeyDown)===null||c===void 0||c.call(s,u))}})}}function dx(e){return null}dx.getCollectionNode=function*(e,t){let{childItems:r,title:n,children:o}=e,a=e.title||e.children,i=e.textValue||(typeof a=="string"?a:"")||e["aria-label"]||"";!i&&t?.suppressTextValueWarning,yield{type:"item",props:e,rendered:a,textValue:i,"aria-label":e["aria-label"],hasChildNodes:QN(e),*childNodes(){if(r)for(let l of r)yield{type:"item",value:l};else if(n){let l=[];g.Children.forEach(o,s=>{l.push({type:"item",element:s})}),yield*l}}}};function QN(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&g.Children.count(e.children)>0)}var e9=dx,t9=class{build(e,t){return this.context=t,y0(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:r}=e;if(g.isValidElement(t)&&t.type===g.Fragment)yield*this.iterateCollection({children:t.props.children,items:r});else if(typeof t=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let n=0;for(let o of r)yield*this.getFullNode({value:o,index:n},{renderer:t}),n++}else{let n=[];g.Children.forEach(t,a=>{a&&n.push(a)});let o=0;for(let a of n){let i=this.getFullNode({element:a,index:o},{});for(let l of i)o++,yield l}}}getKey(e,t,r,n){if(e.key!=null)return e.key;if(t.type==="cell"&&t.key!=null)return`${n}${t.key}`;let o=t.value;if(o!=null){var a;let i=(a=o.key)!==null&&a!==void 0?a:o.id;if(i==null)throw new Error("No key found for item");return i}return n?`${n}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,r,n){if(g.isValidElement(e.element)&&e.element.type===g.Fragment){let y=[];g.Children.forEach(e.element.props.children,b=>{y.push(b)});var o;let E=(o=e.index)!==null&&o!==void 0?o:0;for(let b of y)yield*this.getFullNode({element:b,index:E++},t,r,n);return}let a=e.element;if(!a&&e.value&&t&&t.renderer){let y=this.cache.get(e.value);if(y&&(!y.shouldInvalidate||!y.shouldInvalidate(this.context))){y.index=e.index,y.parentKey=n?n.key:null,yield y;return}a=t.renderer(e.value)}if(g.isValidElement(a)){let y=a.type;if(typeof y!="function"&&typeof y.getCollectionNode!="function"){let S=a.type;throw new Error(`Unknown element <${S}> in collection.`)}let E=y.getCollectionNode(a.props,this.context);var i;let b=(i=e.index)!==null&&i!==void 0?i:0,v=E.next();for(;!v.done&&v.value;){let S=v.value;e.index=b;var l;let x=(l=S.key)!==null&&l!==void 0?l:null;x==null&&(x=S.element?null:this.getKey(a,e,t,r));let C=[...this.getFullNode({...S,key:x,index:b,wrapper:r9(e.wrapper,S.wrapper)},this.getChildState(t,S),r?`${r}${a.key}`:a.key,n)];for(let $ of C){var s,u;$.value=(u=(s=S.value)!==null&&s!==void 0?s:e.value)!==null&&u!==void 0?u:null,$.value&&this.cache.set($.value,$);var c;if(e.type&&$.type!==e.type)throw new Error(`Unsupported type <${$u($.type)}> in <${$u((c=n?.type)!==null&&c!==void 0?c:"unknown parent type")}>. Only <${$u(e.type)}> is supported.`);b++,yield $}v=E.next(C)}return}if(e.key==null||e.type==null)return;let d=this;var f,p;let m={type:e.type,props:e.props,key:e.key,parentKey:n?n.key:null,value:(f=e.value)!==null&&f!==void 0?f:null,level:n?n.level+1:0,index:e.index,rendered:e.rendered,textValue:(p=e.textValue)!==null&&p!==void 0?p:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:y0(function*(){if(!e.hasChildNodes||!e.childNodes)return;let y=0;for(let E of e.childNodes()){E.key!=null&&(E.key=`${m.key}${E.key}`);let b=d.getFullNode({...E,index:y},d.getChildState(t,E),m.key,m);for(let v of b)y++,yield v}})};yield m}constructor(){this.cache=new WeakMap}};function y0(e){let t=[],r=null;return{*[Symbol.iterator](){for(let n of t)yield n;r||(r=e());for(let n of r)t.push(n),yield n}}}function r9(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function $u(e){return e[0].toUpperCase()+e.slice(1)}function fx(e,t,r){let n=h.useMemo(()=>new t9,[]),{children:o,items:a,collection:i}=e;return h.useMemo(()=>{if(i)return i;let l=n.build({children:o,items:a},r);return t(l)},[n,o,a,i,r,t])}function px(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function n9(e){return o9(e)}function o9(e,t){for(let r of e)return r}function wu(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=[...b0(e,t),t],o=[...b0(e,r),r],a=n.slice(0,o.length).findIndex((i,l)=>i!==o[l]);return a!==-1?(t=n[a],r=o[a],t.index-r.index):n.findIndex(i=>i===r)>=0?1:(o.findIndex(i=>i===t)>=0,-1)}function b0(e,t){let r=[],n=t;for(;n?.parentKey!=null;)n=e.getItem(n.parentKey),n&&r.unshift(n);return r}var E0=new WeakMap;function a9(e){let t=E0.get(e);if(t!=null)return t;let r=0,n=o=>{for(let a of o)a.type==="section"?n(px(a,e)):a.type==="item"&&r++};return n(e),E0.set(e,r),r}function i9(e,t,r){let{id:n,key:o,closeOnSelect:a,isVirtualized:i,"aria-haspopup":l,onPressStart:s,onPressUp:u,onPress:c,onPressChange:d,onPressEnd:f,onClick:p,onHoverStart:m,onHoverChange:y,onHoverEnd:E,onKeyDown:b,onKeyUp:v,onFocus:S,onFocusChange:x,onBlur:C,selectionManager:$=t.selectionManager}=e,w=!!l,T=w&&e["aria-expanded"]==="true";var O;let D=(O=e.isDisabled)!==null&&O!==void 0?O:$.isDisabled(o);var _;let I=(_=e.isSelected)!==null&&_!==void 0?_:$.isSelected(o),L=lx.get(t),A=t.collection.getItem(o),P=e.onClose||L.onClose,k=ll(),F=()=>{var Y;if(!w&&(!(A==null||(Y=A.props)===null||Y===void 0)&&Y.onAction?A.props.onAction():e.onAction&&e.onAction(o),L.onAction)){let Xe=L.onAction;Xe(o)}},M="menuitem";w||($.selectionMode==="single"?M="menuitemradio":$.selectionMode==="multiple"&&(M="menuitemcheckbox"));let B=Ya(),N=Ya(),z=Ya(),U={id:n,"aria-disabled":D||void 0,role:M,"aria-label":e["aria-label"],"aria-labelledby":B,"aria-describedby":[N,z].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":l,"aria-expanded":e["aria-expanded"]};$.selectionMode!=="none"&&!w&&(U["aria-checked"]=I),i&&(U["aria-posinset"]=A?.index,U["aria-setsize"]=a9(t.collection));let j=h.useRef(!1),K=Y=>{d?.(Y),j.current=Y},H=h.useRef(null),W=Y=>{Y.pointerType!=="keyboard"&&(H.current={pointerType:Y.pointerType}),Y.pointerType==="mouse"&&(j.current||Y.target.click()),u?.(Y)},X=Y=>{var Xe,_t;p?.(Y),F(),Z8(Y,k,A.props.href,A?.props.routerOptions);let st=((Xe=H.current)===null||Xe===void 0?void 0:Xe.pointerType)==="keyboard"?((_t=H.current)===null||_t===void 0?void 0:_t.key)==="Enter"||$.selectionMode==="none"||$.isLink(o):$.selectionMode!=="multiple"||$.isLink(o);st=a??st,P&&!w&&st&&P(),H.current=null},{itemProps:pe,isFocused:Ie}=cx({id:n,selectionManager:$,key:o,ref:r,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:L.shouldUseVirtualFocus}),{pressProps:et,isPressed:J}=ra({onPressStart:s,onPress:c,onPressUp:W,onPressChange:K,onPressEnd:f,isDisabled:D}),{hoverProps:G}=Zn({isDisabled:D,onHoverStart(Y){!Ho()&&!(T&&l)&&($.setFocused(!0),$.setFocusedKey(o)),m?.(Y)},onHoverChange:y,onHoverEnd:E}),{keyboardProps:V}=XE({onKeyDown:Y=>{if(Y.repeat){Y.continuePropagation();return}switch(Y.key){case" ":H.current={pointerType:"keyboard",key:" "},Y.target.click();break;case"Enter":H.current={pointerType:"keyboard",key:"Enter"},Y.target.tagName!=="A"&&Y.target.click();break;default:w||Y.continuePropagation(),b?.(Y);break}},onKeyUp:v}),{focusProps:Q}=yf({onBlur:C,onFocus:S,onFocusChange:x}),le=xe(A?.props);delete le.id;let Ye=PE(A?.props);return{menuItemProps:{...U,...ee(le,Ye,w?{onFocus:pe.onFocus,"data-collection":pe["data-collection"],"data-key":pe["data-key"]}:pe,et,G,V,Q,L.shouldUseVirtualFocus||w?{onMouseDown:Y=>Y.preventDefault()}:void 0,D?void 0:{onClick:X}),tabIndex:pe.tabIndex!=null&&T&&!L.shouldUseVirtualFocus?-1:pe.tabIndex},labelProps:{id:B},descriptionProps:{id:N},keyboardShortcutProps:{id:z},isFocused:Ie,isFocusVisible:Ie&&$.isFocused&&Ho()&&!T,isSelected:I,isPressed:J,isDisabled:D}}function l9(e){let{heading:t,"aria-label":r}=e,n=He();return{itemProps:{role:"presentation"},headingProps:t?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?n:void 0}}}var Pa=2,s9=50,u9=1e3,v0=Math.PI/12;function c9(e){let{menuRef:t,submenuRef:r,isOpen:n,isDisabled:o}=e,a=h.useRef(void 0),i=h.useRef(void 0),l=h.useRef(0),s=h.useRef(void 0),u=h.useRef(void 0),c=h.useRef(void 0),d=h.useRef(2),[f,p]=h.useState(!1);hi({ref:r,onResize:()=>{r.current&&(i.current=r.current.getBoundingClientRect(),c.current=void 0)}});let m=()=>{p(!1),d.current=Pa,a.current=void 0},y=O6(),E=Me(b=>{f&&b.preventDefault()});h.useEffect(()=>{f&&t.current?t.current.style.pointerEvents="none":t.current.style.pointerEvents=""},[t,f]),h.useEffect(()=>{let b=r.current,v=t.current;if(o||!b||!n||y!=="pointer"||!v){m();return}i.current=b.getBoundingClientRect();let S=x=>{if(x.pointerType==="touch"||x.pointerType==="pen")return;let C=Date.now();if(C-l.current<s9)return;clearTimeout(s.current),clearTimeout(u.current);let{clientX:$,clientY:w}=x;if(!a.current){a.current={x:$,y:w};return}if(!i.current)return;if(c.current||(c.current=$>i.current.right?"left":"right"),$<v.getBoundingClientRect().left||$>v.getBoundingClientRect().right||w<v.getBoundingClientRect().top||w>v.getBoundingClientRect().bottom){m();return}let T=a.current.x,O=a.current.y,D=c.current==="right"?i.current.left-T:T-i.current.right,_=Math.atan2(O-i.current.top,D)+v0,I=Math.atan2(O-i.current.bottom,D)-v0,L=Math.atan2(O-w,c.current==="left"?-($-T):$-T),A=L<_&&L>I;d.current=A?Math.min(d.current+1,Pa):Math.max(d.current-1,0),d.current>=Pa?p(!0):p(!1),l.current=C,a.current={x:$,y:w},A&&(s.current=setTimeout(()=>{m(),u.current=setTimeout(()=>{let P=document.elementFromPoint($,w);P&&v.contains(P)&&P.dispatchEvent(new PointerEvent("pointerover",{bubbles:!0,cancelable:!0}))},100)},u9))};return window.addEventListener("pointermove",S),window.addEventListener("pointerdown",E,!0),()=>{window.removeEventListener("pointermove",S),window.removeEventListener("pointerdown",E,!0),clearTimeout(s.current),clearTimeout(u.current),d.current=Pa}},[o,n,t,y,p,E,r])}function d9(e,t,r){let{parentMenuRef:n,submenuRef:o,type:a="menu",isDisabled:i,delay:l=200,shouldUseVirtualFocus:s}=e,u=He(),c=He(),{direction:d}=pr(),f=h.useRef(void 0),p=h.useCallback(()=>{f.current&&(clearTimeout(f.current),f.current=void 0)},[f]),m=Me(T=>{p(),t.open(T)}),y=Me(()=>{p(),t.close()});ue(()=>()=>{p()},[p]);let E=T=>{if(T.currentTarget.contains(document.activeElement))switch(T.key){case"ArrowLeft":d==="ltr"&&T.currentTarget.contains(T.target)&&(T.preventDefault(),T.stopPropagation(),y(),!s&&r.current&&rt(r.current));break;case"ArrowRight":d==="rtl"&&T.currentTarget.contains(T.target)&&(T.preventDefault(),T.stopPropagation(),y(),!s&&r.current&&rt(r.current));break;case"Escape":var O;!((O=o.current)===null||O===void 0)&&O.contains(T.target)&&(T.stopPropagation(),y(),!s&&r.current&&rt(r.current));break}};var b;let v={id:c,"aria-labelledby":u,submenuLevel:t.submenuLevel,...a==="menu"&&{onClose:t.closeAll,autoFocus:(b=t.focusStrategy)!==null&&b!==void 0?b:void 0,onKeyDown:E}},S=T=>{switch(T.key){case"ArrowRight":i||(d==="ltr"?(T.preventDefault(),t.isOpen||m("first"),a==="menu"&&o?.current&&document.activeElement===r?.current&&rt(o.current)):t.isOpen?y():T.continuePropagation());break;case"ArrowLeft":i||(d==="rtl"?(T.preventDefault(),t.isOpen||m("first"),a==="menu"&&o?.current&&document.activeElement===r?.current&&rt(o.current)):t.isOpen?y():T.continuePropagation());break;default:T.continuePropagation();break}},x=T=>{!i&&(T.pointerType==="virtual"||T.pointerType==="keyboard")&&m("first")},C=T=>{!i&&(T.pointerType==="touch"||T.pointerType==="mouse")&&m()},$=T=>{i||(T&&!t.isOpen?f.current||(f.current=setTimeout(()=>{m()},l)):T||p())};vo(n,"focusin",T=>{var O;t.isOpen&&!((O=n.current)===null||O===void 0)&&O.contains(T.target)&&T.target!==r.current&&y()});let w=T=>T!==r.current;return c9({menuRef:n,submenuRef:o,isOpen:t.isOpen,isDisabled:i}),{submenuTriggerProps:{id:u,"aria-controls":t.isOpen?c:void 0,"aria-haspopup":i?void 0:a,"aria-expanded":t.isOpen?"true":"false",onPressStart:x,onPress:C,onHoverChange:$,onKeyDown:S,isOpen:t.isOpen},submenuProps:v,popoverProps:{isNonModal:!0,shouldCloseOnInteractOutside:w}}}function hx(e){let t=oa(e),[r,n]=h.useState(null),[o,a]=h.useState([]),i=()=>{a([]),t.close()};return{focusStrategy:r,...t,open(l=null){n(l),t.open()},toggle(l=null){n(l),t.toggle()},close(){i()},expandedKeysStack:o,openSubmenu:(l,s)=>{a(u=>s>u.length?u:[...u.slice(0,s),l])},closeSubmenu:(l,s)=>{a(u=>u[s]===l?u.slice(0,s):u)}}}function f9(e,t){let{triggerKey:r}=e,{expandedKeysStack:n,openSubmenu:o,closeSubmenu:a,close:i}=t,[l]=h.useState(n?.length),s=h.useMemo(()=>n[l]===r,[n,r,l]),[u,c]=h.useState(null),d=h.useCallback(m=>{c(m??null),o(r,l)},[o,l,r]),f=h.useCallback(()=>{c(null),a(r,l)},[a,l,r]),p=h.useCallback(m=>{c(m??null),s?f():d(m)},[f,d,s]);return h.useMemo(()=>({focusStrategy:u,isOpen:s,open:d,close:f,closeAll:i,submenuLevel:l,setOpen:()=>{},toggle:p}),[s,d,f,i,u,p,l])}var p9=class{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);var r;return t&&(r=t.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(e){let t=this.keyMap.get(e);var r;return t&&(r=t.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var t;return(t=this.keyMap.get(e))!==null&&t!==void 0?t:null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}constructor(e,{expandedKeys:t}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,t=t||new Set;let r=i=>{if(this.keyMap.set(i.key,i),i.childNodes&&(i.type==="section"||t.has(i.key)))for(let l of i.childNodes)r(l)};for(let i of e)r(i);let n=null,o=0;for(let[i,l]of this.keyMap)n?(n.nextKey=i,l.prevKey=n.key):(this.firstKey=i,l.prevKey=void 0),l.type==="item"&&(l.index=o++),n=l,n.nextKey=void 0;var a;this.lastKey=(a=n?.key)!==null&&a!==void 0?a:null}},ar=class gx extends Set{constructor(t,r,n){super(t),t instanceof gx?(this.anchorKey=r??t.anchorKey,this.currentKey=n??t.currentKey):(this.anchorKey=r??null,this.currentKey=n??null)}};function h9(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function Ff(e){let{selectionMode:t="none",disallowEmptySelection:r=!1,allowDuplicateSelectionEvents:n,selectionBehavior:o="toggle",disabledBehavior:a="all"}=e,i=h.useRef(!1),[,l]=h.useState(!1),s=h.useRef(null),u=h.useRef(null),[,c]=h.useState(null),d=h.useMemo(()=>S0(e.selectedKeys),[e.selectedKeys]),f=h.useMemo(()=>S0(e.defaultSelectedKeys,new ar),[e.defaultSelectedKeys]),[p,m]=cl(d,f,e.onSelectionChange),y=h.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[E,b]=h.useState(o);o==="replace"&&E==="toggle"&&typeof p=="object"&&p.size===0&&b("replace");let v=h.useRef(o);return h.useEffect(()=>{o!==v.current&&(b(o),v.current=o)},[o]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:E,setSelectionBehavior:b,get isFocused(){return i.current},setFocused(S){i.current=S,l(S)},get focusedKey(){return s.current},get childFocusStrategy(){return u.current},setFocusedKey(S,x="first"){s.current=S,u.current=x,c(S)},selectedKeys:p,setSelectedKeys(S){(n||!h9(S,p))&&m(S)},disabledKeys:y,disabledBehavior:a}}function S0(e,t){return e?e==="all"?"all":new ar(e):t}var If=class mx{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,r){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,r)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let r=this.getKey(t);return r==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(r):this.state.selectedKeys.has(r)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=t.every(n=>r.has(n)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!t||o&&wu(this.collection,o,t)<0)&&(t=o)}var r;return(r=t?.key)!==null&&r!==void 0?r:null}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!t||o&&wu(this.collection,o,t)>0)&&(t=o)}var r;return(r=t?.key)!==null&&r!==void 0?r:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n;if(this.state.selectedKeys==="all")n=new ar([r],r,r);else{let i=this.state.selectedKeys;var o;let l=(o=i.anchorKey)!==null&&o!==void 0?o:r;n=new ar(i,l,r);var a;for(let s of this.getKeyRange(l,(a=i.currentKey)!==null&&a!==void 0?a:r))n.delete(s);for(let s of this.getKeyRange(r,l))this.canSelectItem(s)&&n.add(s)}this.state.setSelectedKeys(n)}getKeyRange(t,r){let n=this.collection.getItem(t),o=this.collection.getItem(r);return n&&o?wu(this.collection,n,o)<=0?this.getKeyRangeInternal(t,r):this.getKeyRangeInternal(r,t):[]}getKeyRangeInternal(t,r){var n;if(!((n=this.layoutDelegate)===null||n===void 0)&&n.getKeyRange)return this.layoutDelegate.getKeyRange(t,r);let o=[],a=t;for(;a!=null;){let i=this.collection.getItem(a);if(i&&(i.type==="item"||i.type==="cell"&&this.allowsCellSelection)&&o.push(a),a===r)return o;a=this.collection.getKeyAfter(a)}return[]}getKey(t){let r=this.collection.getItem(t);if(!r||r.type==="cell"&&this.allowsCellSelection)return t;for(;r&&r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n=new ar(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(r)?n.delete(r):this.canSelectItem(r)&&(n.add(r),n.anchorKey=r,n.currentKey=r),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none")return;let r=this.getKey(t);if(r==null)return;let n=this.canSelectItem(r)?new ar([r],r,r):new ar;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new ar;for(let n of t){let o=this.getKey(n);if(o!=null&&(r.add(o),this.selectionMode==="single"))break}this.state.setSelectedKeys(r)}getSelectAllKeys(){let t=[],r=n=>{for(;n!=null;){if(this.canSelectItem(n)){var o;let i=this.collection.getItem(n);i?.type==="item"&&t.push(n);var a;i?.hasChildNodes&&(this.allowsCellSelection||i.type!=="item")&&r((a=(o=n9(px(i,this.collection)))===null||o===void 0?void 0:o.key)!==null&&a!==void 0?a:null)}n=this.collection.getKeyAfter(n)}};return r(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new ar)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(t.size!==r.size)return!1;for(let n of t)if(!r.has(n))return!1;for(let n of r)if(!t.has(n))return!1;return!0}canSelectItem(t){var r;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let n=this.collection.getItem(t);return!(!n||!(n==null||(r=n.props)===null||r===void 0)&&r.isDisabled||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var r,n;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.isDisabled))}isLink(t){var r,n;return!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.href)}getItemProps(t){var r;return(r=this.collection.getItem(t))===null||r===void 0?void 0:r.props}withCollection(t){return new mx(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,r,n){this.collection=t,this.state=r;var o;this.allowsCellSelection=(o=n?.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null,this.layoutDelegate=n?.layoutDelegate||null}};function g9(e){let{onExpandedChange:t}=e,[r,n]=cl(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),o=Ff(e),a=h.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=fx(e,h.useCallback(l=>new p9(l,{expandedKeys:r}),[r]),null);return h.useEffect(()=>{o.focusedKey!=null&&!i.getItem(o.focusedKey)&&o.setFocusedKey(null)},[i,o.focusedKey]),{collection:i,expandedKeys:r,disabledKeys:a,toggleKey:l=>{n(m9(r,l))},setExpandedKeys:n,selectionManager:new If(i,o)}}function m9(e,t){let r=new Set(e);return r.has(t)?r.delete(t):r.add(t),r}var yx=h.createContext(null),bl=h.createContext(null),Ci=h.createContext(null),_i=h.createContext(null),bx=h.createContext(null),Ex=class extends cn{filter(e,t,r){let n=e.getItem(this.firstChildKey);if(n&&r(n.textValue,this)){let o=this.clone();return t.addDescendants(o,e),o}return null}};Ex.type="submenutrigger";Df(Ex,(e,t,r)=>{let{CollectionBranch:n}=h.useContext(ia),o=h.useContext(bl),a=h.useContext(Ci),i=f9({triggerKey:r.key},a),l=h.useRef(null),s=Mt(t),{parentMenuRef:u,shouldUseVirtualFocus:c}=h.useContext(bx),{submenuTriggerProps:d,submenuProps:f,popoverProps:p}=d9({parentMenuRef:u,submenuRef:l,delay:e.delay,shouldUseVirtualFocus:c},i,s);return g.createElement(fr,{values:[[Ti,{...d,onAction:void 0,ref:s}],[yx,{ref:l,...f}],[El,i],[Pf,{trigger:"SubmenuTrigger",triggerRef:s,placement:"end top","aria-labelledby":f["aria-labelledby"],...p}]]},g.createElement(n,{collection:o.collection,parent:r}),e.children[1])},e=>e.children[0]);h.forwardRef(function(e,t){return[e,t]=qe(e,t,yx),g.createElement(VS,{content:g.createElement(XS,e)},r=>g.createElement(y9,{props:e,collection:r,menuRef:t}))});function y9({props:e,collection:t,menuRef:r}){[e,r]=qe(e,r,p0);let{filter:n,...o}=e,a=h.useMemo(()=>n?t.filter(n):t,[t,n]),i=g9({...e,collection:a,children:void 0}),l=h.useContext(Ci),{isVirtualized:s,CollectionRoot:u}=h.useContext(ia),{menuProps:c}=ZN({...e,isVirtualized:s,onClose:e.onClose||l?.close},i,r),d=ht({defaultClassName:"react-aria-Menu",className:e.className,style:e.style,values:{isEmpty:i.collection.size===0}}),f=null;i.collection.size===0&&e.renderEmptyState&&(f=g.createElement("div",{role:"menuitem",style:{display:"contents"}},e.renderEmptyState()));let p=xe(e,{global:!0});return g.createElement($f,null,g.createElement("div",{...ee(p,d,c),ref:r,slot:e.slot||void 0,"data-empty":i.collection.size===0||void 0,onScroll:e.onScroll},g.createElement(fr,{values:[[bl,i],[ax,{elementType:"div"}],[ex,{name:"MenuSection",render:vx}],[bx,{parentMenuRef:r,shouldUseVirtualFocus:o?.shouldUseVirtualFocus}],[Ti,null],[p0,null],[zN,null],[_i,i.selectionManager],[Ci,l??hx({})]]},g.createElement(u,{collection:i.collection,persistedKeys:rx(i.selectionManager.focusedKey),scrollRef:r})),f))}var b9=class extends If{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,t){return this.parent.setFocusedKey(e,t)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(e,t){super(e.collection,t),this.parent=e}};function vx(e,t,r,n="react-aria-MenuSection"){var o,a;let i=h.useContext(bl),{CollectionBranch:l}=h.useContext(ia),[s,u]=ZE();var c;let{headingProps:d,groupProps:f}=l9({heading:u,"aria-label":(c=r.props["aria-label"])!==null&&c!==void 0?c:void 0}),p=ht({defaultClassName:n,className:(o=r.props)===null||o===void 0?void 0:o.className,style:(a=r.props)===null||a===void 0?void 0:a.style,values:{}}),m=h.useContext(_i),y=Ff(e),E=e.selectionMode!=null?new b9(m,y):m,b=xe(e,{global:!0});return delete b.id,g.createElement("section",{...ee(b,p,f),ref:t},g.createElement(fr,{values:[[nx,{...d,ref:s}],[_i,E]]},g.createElement(l,{collection:i.collection,parent:r})))}Df(US,vx);var Ti=h.createContext(null);yl(HS,function(e,t,r){var n;[e,t]=qe(e,t,Ti);let o=(n=Ef(Ti))===null||n===void 0?void 0:n.id,a=h.useContext(bl),i=Mt(t),l=h.useContext(_i),{menuItemProps:s,labelProps:u,descriptionProps:c,keyboardShortcutProps:d,...f}=i9({...e,id:o,key:r.key,selectionManager:l},a,i),{hoverProps:p,isHovered:m}=Zn({isDisabled:f.isDisabled}),y=ht({...e,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...f,isHovered:m,isFocusVisible:f.isFocusVisible,selectionMode:l.selectionMode,selectionBehavior:l.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),E=e.href?"a":"div",b=xe(e,{global:!0});return delete b.id,delete b.onClick,g.createElement(E,{...ee(b,y,s,p),ref:i,"data-disabled":f.isDisabled||void 0,"data-hovered":m||void 0,"data-focused":f.isFocused||void 0,"data-focus-visible":f.isFocusVisible||void 0,"data-pressed":f.isPressed||void 0,"data-selected":f.isSelected||void 0,"data-selection-mode":l.selectionMode==="none"?void 0:l.selectionMode,"data-has-submenu":!!e["aria-haspopup"]||void 0,"data-open":e["aria-expanded"]==="true"||void 0},g.createElement(fr,{values:[[$S,{slots:{[Ei]:u,label:u,description:c}}],[ox,d]]},y.children))});function E9(e,t){let{role:r="dialog"}=e,n=Ya();n=e["aria-label"]?void 0:n;let o=h.useRef(!1);return h.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Cr(t.current);let a=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(o.current=!0,t.current&&(t.current.blur(),Cr(t.current)),o.current=!1)},500);return()=>{clearTimeout(a)}}},[t]),cS(),{dialogProps:{...xe(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||n,onBlur:a=>{o.current&&a.stopPropagation()}},titleProps:{id:n}}}var Sx=h.createContext(null),El=h.createContext(null);function v9(e){let t=hx(e),r=h.useRef(null),{triggerProps:n,overlayProps:o}=xk({},t,r),[a,i]=h.useState(null),l=h.useCallback(()=>{r.current&&i(r.current.offsetWidth+"px")},[r]);return hi({ref:r,onResize:l}),n.id=He(),o["aria-labelledby"]=n.id,g.createElement(fr,{values:[[El,t],[Ci,t],[Sx,o],[Pf,{trigger:"DialogTrigger",triggerRef:r,"aria-labelledby":o["aria-labelledby"],style:{"--trigger-width":a}}]]},g.createElement(N6,{...n,ref:r,isPressed:t.isOpen},e.children))}h.forwardRef(function(e,t){let r=e["aria-labelledby"];[e,t]=qe(e,t,Sx);let{dialogProps:n,titleProps:o}=E9({...e,"aria-labelledby":r},t),a=h.useContext(El);!n["aria-label"]&&!n["aria-labelledby"]&&(e["aria-labelledby"]&&(n["aria-labelledby"]=e["aria-labelledby"]));let i=ht({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:a?.close||(()=>{})}}),l=xe(e,{global:!0});return g.createElement("section",{...ee(l,i,n),ref:t,slot:e.slot||void 0},g.createElement(fr,{values:[[xS,{slots:{[Ei]:{},title:{...o,level:2}}}],[QS,{slots:{[Ei]:{},close:{onPress:()=>a?.close()}}}]]},i.children))});var Lf=({placement:e="bottom-start",hasChrome:t=!0,hasCloseButton:r=!1,closeLabel:n,offset:o=8,padding:a,popover:i,children:l,defaultVisible:s,visible:u,onVisibleChange:c,...d})=>{let f=_f(e),[p,m]=h.useState(s??!1),y=h.useCallback(b=>{m(b),c?.(b)},[c]),E=h.useCallback(()=>y(!1),[y]);return g.createElement(v9,{defaultOpen:s,isOpen:u??p,onOpenChange:y,...d},g.createElement(k6,null,l),g.createElement(jN,{placement:f,offset:o,style:{outline:"none"}},g.createElement(aa,{hasChrome:t,hideLabel:n,onHide:r?E:void 0,padding:a},typeof i=="function"?i({onHide:E}):i)))},xx=h.forwardRef((e,t)=>g.createElement(aa,{ref:t,...e}));xx.displayName="Tooltip";h.lazy(()=>$r(()=>import("./WithTooltip-65CFNBJE-licJlHua.js"),__vite__mapDeps([7,1,2,3,4,5]),import.meta.url).then(e=>({default:e.WithTooltip})));h.lazy(()=>$r(()=>import("./WithTooltip-65CFNBJE-licJlHua.js"),__vite__mapDeps([7,1,2,3,4,5]),import.meta.url).then(e=>({default:e.WithTooltipPure})));const{deprecate:WV}=__STORYBOOK_MODULE_CLIENT_LOGGER__;R.div(({theme:e})=>({fontWeight:e.typography.weight.bold}));R.span();R.div(({theme:e})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:e.typography.weight.bold}}));R.div(({theme:e})=>({color:e.color.defaultText,lineHeight:"18px"}));R.div({padding:15,width:280,boxSizing:"border-box"});const{deprecate:S9}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var x9=lt(Kn(),1);const{deprecate:$9}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var w9=R(({active:e,loading:t,disabled:r,...n})=>g.createElement("span",{...n}))(({theme:e})=>({color:e.color.defaultText,fontWeight:e.typography.weight.regular}),({active:e,theme:t})=>e?{color:t.color.secondary,fontWeight:t.typography.weight.bold}:{},({loading:e,theme:t})=>e?{display:"inline-block",flex:"none",...t.animation.inlineGlow}:{},({disabled:e,theme:t})=>e?{color:t.textMutedColor}:{}),C9=R.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"}}),_9=R.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column",minWidth:0},({isIndented:e})=>e?{marginLeft:24}:{}),T9=R.span(({theme:e})=>({fontSize:"11px",lineHeight:"14px"}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),A9=R.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:"flex",maxWidth:14})),O9=R.button(({theme:e})=>({width:"100%",minWidth:0,border:"none",borderRadius:e.appBorderRadius,background:"none",fontSize:e.typography.size.s1,transition:"background 150ms ease-out",color:e.color.dark,textDecoration:"none",justifyContent:"space-between",lineHeight:"18px",padding:"7px 10px",display:"flex",alignItems:"center","& > * + *":{paddingLeft:10},"&:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:0}}),({theme:e,href:t,onClick:r})=>(t||r)&&{cursor:"pointer","&:hover":{background:e.background.hoverable},"&:hover svg":{opacity:1}},({theme:e,as:t})=>t==="label"&&{"&:has(input:not(:disabled))":{cursor:"pointer","&:hover":{background:e.background.hoverable}}},({disabled:e})=>e&&{cursor:"not-allowed"}),R9=(0,x9.default)(100)(({onClick:e,input:t,href:r,LinkWrapper:n})=>({...e&&{as:"button",role:"button",onClick:e},...t&&{as:"label"},...r&&{as:"a",role:"link",href:r,...n&&{as:n,to:r}}})),$x=h.forwardRef((e,t)=>{let{loading:r=!1,title:n=g.createElement("span",null,"Loading state"),center:o=null,right:a=null,active:i=!1,disabled:l=!1,isIndented:s=!1,href:u=void 0,onClick:c=void 0,icon:d,input:f,LinkWrapper:p=void 0,...m}=e,y={active:i,disabled:l},E=R9(e),b=d||f;return $9("`ListItem` is deprecated and will be removed in Storybook 11, use `MenuItem` instead."),g.createElement(O9,{"data-deprecated":"ListItem",ref:t,...m,...y,...E},g.createElement(g.Fragment,null,b&&g.createElement(A9,{...y},b),n||o?g.createElement(_9,{isIndented:s&&!b},n&&g.createElement(w9,{...y,loading:r},n),o&&g.createElement(T9,{...y},o)):null,a&&g.createElement(C9,{...y},a)))});$x.displayName="ListItem";var wx=$x,D9=R.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:15.5*32+8},({theme:e})=>({borderRadius:e.appBorderRadius+2}),({theme:e})=>e.base==="dark"?{background:e.background.content}:{}),P9=R.div(({theme:e})=>({padding:4,"& + &":{borderTop:`1px solid ${e.appBorderColor}`}})),F9=({id:e,onClick:t,...r})=>{let{active:n,disabled:o,title:a,href:i}=r,l=h.useCallback(s=>t?.(s,{id:e,active:n,disabled:o,title:a,href:i}),[t,e,n,o,a,i]);return g.createElement(wx,{id:`list-item-${e}`,...r,...t&&{onClick:l}})},Cx=({links:e,LinkWrapper:t,...r})=>{S9("`TooltipLinkList` is deprecated and will be removed in Storybook 11, use `ActionList` or `MenuItem` and `WithMenu` instead.");let n=Array.isArray(e[0])?e:[e],o=n.some(a=>a.some(i=>"icon"in i&&i.icon||"input"in i&&i.input));return g.createElement(D9,{"data-deprecated":"TooltipLinkList",...r,className:"sb-list"},n.filter(a=>a.length).map((a,i)=>g.createElement(P9,{key:a.map(l=>l.id).join(`~${i}~`)},a.map(l=>"content"in l?g.createElement(h.Fragment,{key:l.id},l.content):g.createElement(F9,{key:l.id,isIndented:o,LinkWrapper:t,...l})))))};const{deprecate:vl}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{deprecate:I9}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var L9=R.div(({backgroundColor:e,border:t=!1,innerStyle:r={},scrollable:n,theme:o})=>({color:o.barTextColor,width:"100%",minHeight:40,flexShrink:0,scrollbarColor:`${o.barTextColor} ${t?e||o.barBg:"transparent"}`,scrollbarWidth:"thin",overflow:n?"auto":"hidden",overflowY:"hidden",display:"flex",alignItems:"center",gap:n?0:6,paddingInline:n?0:6,...t?{boxShadow:`${o.appBorderColor} 0 -1px 0 0 inset`,background:e||o.barBg}:{},...r})),k9=R.div(({innerStyle:e})=>({minHeight:40,display:"flex",alignItems:"center",width:"100%",gap:6,paddingInline:6,...e})),la=h.forwardRef(({scrollable:e=!0,children:t,innerStyle:r,...n},o)=>g.createElement(L9,{...n,ref:o,innerStyle:e?void 0:r,scrollable:e},e?g.createElement(k9,{innerStyle:r},t):t));la.displayName="Bar";var qc=R.div({display:"flex",whiteSpace:"nowrap",flexBasis:"auto",marginLeft:3,marginRight:10},({scrollable:e})=>e?{flexShrink:0}:{},({left:e})=>e?{"& > *":{marginLeft:4}}:{},({right:e})=>e?{gap:6}:{});qc.displayName="Side";var N9=R.div(({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,width:"100%",backgroundColor:e||""})),M9=R(la)({paddingInline:0}),kf=({children:e,backgroundColor:t,className:r="",...n})=>{I9('FlexBar is deprecated. Use Bar with justifyContent: "space-between" instead.');let[o,a]=h.Children.toArray(e);return g.createElement(M9,{"data-deprecated":"FlexBar",backgroundColor:t,className:`sb-bar ${r}`,...n},g.createElement(N9,{bgColor:t},g.createElement(qc,{scrollable:n.scrollable,left:!0},o),a?g.createElement(qc,{right:!0},a):null))};kf.displayName="FlexBar";const{deprecate:B9}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var j9=e=>typeof e.props.href=="string",H9=e=>typeof e.props.href!="string";function U9({children:e,...t},r){let n={props:t,ref:r};if(j9(n))return g.createElement("a",{ref:n.ref,...n.props},e);if(H9(n))return g.createElement("button",{ref:n.ref,type:"button",...n.props},e);throw new Error("invalid props")}var _x=h.forwardRef(U9);_x.displayName="ButtonOrLink";var z9=R(_x,{shouldForwardProp:Wi})({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:empty":{display:"none"},"&[hidden]":{display:"none"}},({theme:e})=>({padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus":{outline:"0 none",borderBottomColor:e.barSelectedColor}}),({active:e,textColor:t,theme:r})=>e?{color:t||r.barSelectedColor,borderBottomColor:r.barSelectedColor}:{color:t||r.barTextColor,borderBottomColor:"transparent","&:hover":{color:r.barHoverColor}}),sa=h.forwardRef((e,t)=>(B9("The `TabButton` component is deprecated. Use `TabList` instead."),g.createElement(z9,{"data-deprecated":"TabButton",ref:t,...e})));sa.displayName="TabButton";var K9=R.div(({theme:e})=>({height:"100%",display:"flex",padding:30,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:e.background.content})),G9=R.div({display:"flex",flexDirection:"column",gap:4,maxWidth:415}),W9=R.div(({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.color.defaultText})),V9=R.div(({theme:e})=>({fontSize:e.typography.size.s2-1})),q9=R.div(({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textMutedColor})),ua=({title:e,description:t,footer:r})=>g.createElement(K9,null,g.createElement(G9,null,g.createElement(W9,null,e),t&&g.createElement(q9,null,t)),r&&g.createElement(V9,null,r));const{deprecate:Y9}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Tx=R.div(({active:e})=>e?{display:"block"}:{display:"none"}),X9=e=>(Y9("The `childrenToList` tabs helper is deprecated. Use `TabsView` instead."),h.Children.toArray(e).map(({props:{title:t,id:r,color:n,children:o}})=>{let a=Array.isArray(o)?o[0]:o;return{title:t,id:r,...n?{color:n}:{},render:typeof a=="function"?a:({active:i})=>g.createElement(Tx,{active:i,role:"tabpanel"},a)}}));const{deprecate:J9}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Z9=R.span(({theme:e,isActive:t})=>({display:"inline-block",width:0,height:0,marginLeft:8,color:t?e.color.secondary:e.color.mediumdark,borderRight:"3px solid transparent",borderLeft:"3px solid transparent",borderTop:"3px solid",transition:"transform .1s ease-out"})),Q9=R(sa)(({active:e,theme:t,preActive:r})=>`
676
+ color: ${r||e?t.barSelectedColor:t.barTextColor};
677
+ .addon-collapsible-icon {
678
+ color: ${r||e?t.barSelectedColor:t.barTextColor};
679
+ }
680
+ &:hover {
681
+ color: ${t.barHoverColor};
682
+ .addon-collapsible-icon {
683
+ color: ${t.barHoverColor};
684
+ }
685
+ }
686
+ `);function eM(e){J9("The `useList` tabs hook is deprecated. Use `TabsView` instead.");let t=h.useRef(),r=h.useRef(),n=h.useRef(new Map),{width:o=1}=DS({ref:t}),[a,i]=h.useState(e),[l,s]=h.useState([]),u=h.useRef(e),c=h.useCallback(({menuName:f,actions:p})=>{let m=l.some(({active:b})=>b),[y,E]=h.useState(!1);return g.createElement(g.Fragment,null,g.createElement(Lf,{visible:y,onVisibleChange:E,placement:"bottom",popover:g.createElement(Cx,{links:l.map(({title:b,id:v,color:S,active:x})=>({id:v,title:b,color:S,active:x,onClick:C=>{C.preventDefault(),p.onSelect(v)}}))})},g.createElement(Q9,{id:"addons-menu-button",ref:r,active:m,preActive:y,style:{visibility:l.length?"visible":"hidden"},"aria-hidden":!l.length,className:"tabbutton",type:"button",role:"tab"},f,g.createElement(Z9,{className:"addon-collapsible-icon",isActive:m||y}))),l.map(({title:b,id:v,color:S},x)=>{let C=`index-${x}`;return g.createElement(sa,{id:`tabbutton-${On(v)??C}`,style:{visibility:"hidden"},"aria-hidden":!0,tabIndex:-1,ref:$=>{n.current.set(v,$)},className:"tabbutton",type:"button",key:v,textColor:S,role:"tab"},b)}))},[l]),d=h.useCallback(()=>{if(!t.current||!r.current)return;let{x:f,width:p}=t.current.getBoundingClientRect(),{width:m}=r.current.getBoundingClientRect(),y=l.length?f+p-m:f+p,E=[],b=0,v=e.filter(S=>{let{id:x}=S,C=n.current.get(x),{width:$=0}=C?.getBoundingClientRect()||{},w=f+b+$>y;return(!w||!C)&&E.push(S),b+=$,w});(E.length!==a.length||u.current!==e)&&(i(E),s(v),u.current=e)},[l.length,e,a]);return h.useLayoutEffect(d,[d,o]),{tabRefs:n,addonsRef:r,tabBarRef:t,visibleList:a,invisibleList:l,AddonTab:c}}var tM="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",rM=R.div(({theme:e,bordered:t})=>t?{backgroundClip:"padding-box",border:`1px solid ${e.appBorderColor}`,borderRadius:e.appBorderRadius,overflow:"hidden",boxSizing:"border-box"}:{},({absolute:e})=>e?{width:"100%",height:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column"}:{display:"block"}),nM=R.div({overflow:"hidden","&:first-of-type":{marginLeft:-3},whiteSpace:"nowrap",flexGrow:1}),Nf=h.forwardRef((e,t)=>(vl("The `TabBar` component is deprecated. Use `TabsView` instead."),g.createElement(nM,{"data-deprecated":"TabBar",...e,ref:t})));Nf.displayName="TabBar";var oM=R.div({display:"block",position:"relative",container:"tab-content / inline-size"},({theme:e})=>({fontSize:e.typography.size.s2-1,background:e.background.content}),({bordered:e,theme:t})=>e?{borderRadius:`0 0 ${t.appBorderRadius-1}px ${t.appBorderRadius-1}px`}:{},({absolute:e,bordered:t})=>e?{height:`calc(100% - ${t?42:40}px)`,position:"absolute",left:0+(t?1:0),right:0+(t?1:0),bottom:0+(t?1:0),top:40+(t?1:0),overflow:"auto",[`& > *:first-child${tM}`]:{position:"absolute",left:0+(t?1:0),right:0+(t?1:0),bottom:0+(t?1:0),top:0+(t?1:0),height:`calc(100% - ${t?2:0}px)`,overflow:"auto"}}:{}),Ax=h.forwardRef(({active:e,render:t,children:r},n)=>(vl("The `TabWrapper` component is deprecated. Use `TabsView` instead."),g.createElement(Tx,{"data-deprecated":"TabWrapper",ref:n,active:e},t?t():r)));Ax.displayName="TabWrapper";var aM=class extends h.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error("Error rendering addon panel"),console.error(e),console.error(t.componentStack)}render(){return this.state.hasError&&this.props.active?g.createElement(ua,{title:"This addon has errors",description:"Check your browser logs and addon code to pinpoint what went wrong. This issue was not caused by Storybook."}):this.props.children}},Mf=h.memo(({children:e,selected:t=null,actions:r,absolute:n=!1,bordered:o=!1,tools:a=null,backgroundColor:i,id:l=null,menuName:s="Tabs",emptyState:u,showToolsWhenEmpty:c})=>{vl("The `Tabs` component is deprecated. Use `TabsView` instead.");let d=h.useMemo(()=>X9(e).map((b,v)=>({...b,active:t?b.id===t:v===0})),[e,t]),{visibleList:f,tabBarRef:p,tabRefs:m,AddonTab:y}=eM(d),E=u??g.createElement(ua,{title:"Nothing found"});return!c&&d.length===0?E:g.createElement(rM,{"data-deprecated":"Tabs",absolute:n,bordered:o,id:l},g.createElement(kf,{scrollable:!1,border:!0,backgroundColor:i},g.createElement(Nf,{style:{whiteSpace:"normal"},ref:p,role:"tablist"},f.map(({title:b,id:v,active:S,color:x},C)=>{let $=`index-${C}`;return g.createElement(sa,{id:`tabbutton-${On(v)??$}`,ref:w=>{m.current.set(v,w)},className:`tabbutton ${S?"tabbutton-active":""}`,type:"button",key:v,active:S,textColor:x,onClick:w=>{w.preventDefault(),r.onSelect(v)},role:"tab","aria-selected":S},typeof b=="function"?g.createElement("title",null):b)}),g.createElement(y,{menuName:s,actions:r})),a),g.createElement(oM,{id:"panel-tab-content",bordered:o,absolute:n},d.length?d.map(({id:b,active:v,render:S})=>g.createElement(aM,{key:b,active:v},g.createElement(S,{active:v},null))):E))});Mf.displayName="Tabs";var Ox=class extends h.Component{constructor(e){super(e),this.handlers={onSelect:t=>this.setState({selected:t})},vl("The `TabsState` class is deprecated. Use `TabsView` instead."),this.state={selected:e.initial}}render(){let{bordered:e=!1,absolute:t=!1,children:r,backgroundColor:n,menuName:o}=this.props,{selected:a}=this.state;return g.createElement(Mf,{bordered:e,absolute:t,selected:a,backgroundColor:n,menuName:o,actions:this.handlers},r)}};Ox.defaultProps={children:[],initial:null,absolute:!1,bordered:!1,backgroundColor:"",menuName:void 0};var Rx=R.span(({theme:e})=>({display:"inline-block",width:1,height:20,background:e.appBorderColor,marginLeft:2,marginRight:2}),({force:e})=>e?{}:{"& + &":{display:"none"}});Rx.displayName="Separator";R.div(({theme:e})=>({fontSize:e.typography.size.s2-1,height:"100%"}));function iM(e,t){let{"aria-label":r,"aria-labelledby":n,orientation:o="horizontal"}=e,[a,i]=h.useState(!1);ue(()=>{var m;i(!!(t.current&&!((m=t.current.parentElement)===null||m===void 0)&&m.closest('[role="toolbar"]')))});let{direction:l}=pr(),s=l==="rtl"&&o==="horizontal",u=yk(t),c=m=>{if(m.currentTarget.contains(m.target)){if(o==="horizontal"&&m.key==="ArrowRight"||o==="vertical"&&m.key==="ArrowDown")s?u.focusPrevious():u.focusNext();else if(o==="horizontal"&&m.key==="ArrowLeft"||o==="vertical"&&m.key==="ArrowUp")s?u.focusNext():u.focusPrevious();else if(m.key==="Tab"){m.stopPropagation(),d.current=document.activeElement,m.shiftKey?u.focusFirst():u.focusLast();return}else return;m.stopPropagation(),m.preventDefault()}},d=h.useRef(null),f=m=>{!m.currentTarget.contains(m.relatedTarget)&&!d.current&&(d.current=m.target)},p=m=>{var y;if(d.current&&!m.currentTarget.contains(m.relatedTarget)&&!((y=t.current)===null||y===void 0)&&y.contains(m.target)){var E;(E=d.current)===null||E===void 0||E.focus(),d.current=null}};return{toolbarProps:{...xe(e,{labelable:!0}),role:a?"group":"toolbar","aria-orientation":o,"aria-label":r,"aria-labelledby":r==null?n:void 0,onKeyDownCapture:a?void 0:c,onFocusCapture:a?void 0:p,onBlurCapture:a?void 0:f}}}var Dx=({"aria-label":e,"aria-labelledby":t,...r})=>{let n=h.useRef(null),{toolbarProps:o}=iM({"aria-label":e,"aria-labelledby":t,orientation:"horizontal"},n);return g.createElement(la,{ref:n,...o,...r})},Px=new WeakMap;function Ai(e,t,r){return e?(typeof t=="string"&&(t=t.replace(/\s+/g,"")),`${Px.get(e)}-${r}-${t}`):""}function Fx(e,t,r){let{key:n,isDisabled:o,shouldSelectOnPressUp:a}=e,{selectionManager:i,selectedKey:l}=t,s=n===l,u=o||t.isDisabled||t.selectionManager.isDisabled(n),{itemProps:c,isPressed:d}=cx({selectionManager:i,key:n,ref:r,isDisabled:u,shouldSelectOnPressUp:a,linkBehavior:"selection"}),f=Ai(t,n,"tab"),p=Ai(t,n,"tabpanel"),{tabIndex:m}=c,y=t.collection.getItem(n),E=xe(y?.props,{labelable:!0});delete E.id;let b=PE(y?.props),{focusableProps:v}=na({isDisabled:u},r);return{tabProps:ee(E,v,b,c,{id:f,"aria-selected":s,"aria-disabled":u||void 0,"aria-controls":s?p:void 0,tabIndex:u?void 0:m,role:"tab"}),isSelected:s,isDisabled:u,isPressed:d}}function Ix(e,t,r){let n=Ek(r)?void 0:0;var o;let a=Ai(t,(o=e.id)!==null&&o!==void 0?o:t?.selectedKey,"tabpanel"),i=ul({...e,id:a,"aria-labelledby":Ai(t,t?.selectedKey,"tab")});return{tabPanelProps:ee(i,{tabIndex:n,role:"tabpanel","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]})}}var lM=class{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){var t,r;return this.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(t=r.props)===null||t===void 0)&&t.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let t=e;do t=this.collection.getKeyAfter(t),t==null&&(t=this.collection.getFirstKey());while(t!=null&&this.isDisabled(t));return t}getPreviousKey(e){let t=e;do t=this.collection.getKeyBefore(t),t==null&&(t=this.collection.getLastKey());while(t!=null&&this.isDisabled(t));return t}constructor(e,t,r,n=new Set){this.collection=e,this.flipDirection=t==="rtl"&&r==="horizontal",this.disabledKeys=n,this.tabDirection=r==="horizontal"}};function Lx(e,t,r){let{orientation:n="horizontal",keyboardActivation:o="automatic"}=e,{collection:a,selectionManager:i,disabledKeys:l}=t,{direction:s}=pr(),u=h.useMemo(()=>new lM(a,s,n,l),[a,l,n,s]),{collectionProps:c}=ux({ref:r,selectionManager:i,keyboardDelegate:u,selectOnFocus:o==="automatic",disallowEmptySelection:!0,scrollRef:r,linkBehavior:"selection"}),d=He();Px.set(t,d);let f=ul({...e,id:d});return{tabListProps:{...ee(c,f),role:"tablist","aria-orientation":n,tabIndex:void 0}}}var sM=R.button({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none",scrollSnapAlign:"start","&:empty":{display:"none"},"&[hidden]":{display:"none"}},({theme:e})=>({padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus-visible":{outline:"0 none",boxShadow:`inset 0 0 0 2px ${e.barSelectedColor}`}}),({isSelected:e,theme:t})=>e?{color:t.barSelectedColor,borderBottomColor:t.barSelectedColor}:{color:t.barTextColor,borderBottomColor:"transparent","&:hover":{color:t.barHoverColor}}),uM=R.div({display:"flex",alignItems:"center",flexShrink:0,position:"relative",overflow:"hidden"}),cM=R.div({display:"flex",overflowX:"auto",scrollbarWidth:"none",msOverflowStyle:"none",WebkitScrollbar:"none",scrollSnapType:"x mandatory",flex:1,"&::-webkit-scrollbar":{display:"none"}}),dM=R.div({display:"flex",flexShrink:0}),x0=28,$0=R.div(({$showStartBorder:e,$showEndBorder:t,theme:r})=>({flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",padding:6,boxShadow:e?`inset 1px 0 0 ${r.appBorderColor}`:t?`inset -1px 0 0 ${r.appBorderColor}`:"none"})),w0=R(Ce)({flexShrink:0,paddingInline:0,width:16}),fM=({item:e,state:t})=>{let{rendered:r}=e,n=g.useRef(null),o=t,{tabProps:a,isDisabled:i,isPressed:l,isSelected:s}=Fx(e,o,n);return g.createElement(sM,{...a,isDisabled:i,isPressed:l,isSelected:s,className:`tabbutton ${s?"tabbutton-active":""}`,ref:n},r)},kx=({state:e,...t})=>{let r=h.useRef(null),n=h.useRef(null),o=h.useRef(null),{tabListProps:a}=Lx({orientation:"horizontal"},e,o),[i,l]=h.useState(!1),[s,u]=h.useState(!1),[c,d]=h.useState(!1),f=h.useCallback(()=>{let b=n.current,v=r.current;if(!b||!v)return;let{scrollLeft:S,scrollWidth:x,clientWidth:C}=b,$=v.clientWidth-(i?x0*2:0),w=x>$;l(w),w?(u(S>0),d(S<x-C)):(u(!1),d(!1))},[i]),p=h.useCallback(()=>{f()},[f]);h.useEffect(()=>{let b=n.current;if(!b||typeof window>"u")return;b.addEventListener("scroll",p,{passive:!0});let v=null;typeof ResizeObserver<"u"&&(v=new ResizeObserver(p),v.observe(b));let S=setTimeout(p,0);return()=>{clearTimeout(S),b.removeEventListener("scroll",p),v&&v.disconnect()}},[p]);let m=h.useCallback(b=>{let v=n.current,S=r.current;if(!v||!S||typeof window>"u")return;let x=S.clientWidth-x0*2,C=b==="backward"?-x:x;typeof v.scrollBy=="function"?v.scrollBy({left:C,behavior:"smooth"}):v.scrollLeft+=C},[]),y=h.useCallback(()=>m("backward"),[m]),E=h.useCallback(()=>m("forward"),[m]);return g.createElement(uM,{...t,ref:r,"data-show-scroll-buttons":i},i&&g.createElement($0,{$showEndBorder:s},g.createElement(w0,{variant:"ghost",padding:"small",size:"small",ariaLabel:"Scroll backward",disabled:!s,onClick:y,tabIndex:-1},g.createElement(d5,null))),g.createElement(cM,{ref:n},g.createElement(dM,{ref:o,...a},[...e.collection].map(b=>g.createElement(fM,{key:b.key,item:b,state:e})))),i&&g.createElement($0,{$showStartBorder:c},g.createElement(w0,{variant:"ghost",padding:"small",size:"small",ariaLabel:"Scroll forward",disabled:!c,onClick:E,tabIndex:-1},g.createElement(f5,null))))},pM=R.div({overflowY:"hidden",height:"100%"}),Nx=({hasScrollbar:e=!0,renderAllChildren:t=!1,state:r})=>{let n=h.useRef(null),o=r,{tabPanelProps:a}=Ix(o.selectedItem??{},o,n);return(t?[...o.collection]:[o.selectedItem]).filter(i=>!!i).map(i=>{let l=o.selectedKey===i.key;return g.createElement(pM,{key:i.key,ref:l?n:void 0,...l?a:{},id:l?`${a.id}`.replace(/null$/,`${i.key}`):void 0,hidden:l?void 0:!0},e?g.createElement(Dd,{vertical:!0},i.props.children):i.props.children)})},C0=class{*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);var r;return t&&(r=t.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(e){let t=this.keyMap.get(e);var r;return t&&(r=t.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var t;return(t=this.keyMap.get(e))!==null&&t!==void 0?t:null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){return this.keyMap.get(e)?.childNodes||[]}constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let t=i=>{if(this.keyMap.set(i.key,i),i.childNodes&&i.type==="section")for(let l of i.childNodes)t(l)};for(let i of e)t(i);let r=null,n=0,o=0;for(let[i,l]of this.keyMap)r?(r.nextKey=i,l.prevKey=r.key):(this.firstKey=i,l.prevKey=void 0),l.type==="item"&&(l.index=n++),(l.type==="section"||l.type==="item")&&o++,r=l,r.nextKey=void 0;this._size=o;var a;this.lastKey=(a=r?.key)!==null&&a!==void 0?a:null}};function hM(e){let{filter:t,layoutDelegate:r}=e,n=Ff(e),o=h.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=h.useCallback(u=>t?new C0(t(u)):new C0(u),[t]),i=h.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),l=fx(e,a,i),s=h.useMemo(()=>new If(l,n,{layoutDelegate:r}),[l,n,r]);return gM(l,s),{collection:l,disabledKeys:o,selectionManager:s}}function gM(e,t){let r=h.useRef(null);h.useEffect(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&r.current){let c=r.current.getItem(t.focusedKey),d=[...r.current.getKeys()].map(b=>{let v=r.current.getItem(b);return v?.type==="item"?v:null}).filter(b=>b!==null),f=[...e.getKeys()].map(b=>{let v=e.getItem(b);return v?.type==="item"?v:null}).filter(b=>b!==null);var n,o;let p=((n=d?.length)!==null&&n!==void 0?n:0)-((o=f?.length)!==null&&o!==void 0?o:0);var a,i,l;let m=Math.min(p>1?Math.max(((a=c?.index)!==null&&a!==void 0?a:0)-p+1,0):(i=c?.index)!==null&&i!==void 0?i:0,((l=f?.length)!==null&&l!==void 0?l:0)-1),y=null,E=!1;for(;m>=0;){if(!t.isDisabled(f[m].key)){y=f[m];break}if(m<f.length-1&&!E)m++;else{E=!0;var s,u;m>((s=c?.index)!==null&&s!==void 0?s:0)&&(m=(u=c?.index)!==null&&u!==void 0?u:0),m--}}t.setFocusedKey(y?y.key:null)}r.current=e},[e,t])}function mM(e){var t;let[r,n]=cl(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),o=h.useMemo(()=>r!=null?[r]:[],[r]),{collection:a,disabledKeys:i,selectionManager:l}=hM({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:u=>{if(u==="all")return;var c;let d=(c=u.values().next().value)!==null&&c!==void 0?c:null;d===r&&e.onSelectionChange&&e.onSelectionChange(d),n(d)}}),s=r!=null?a.getItem(r):null;return{collection:a,disabledKeys:i,selectionManager:l,selectedKey:r,setSelectedKey:n,selectedItem:s}}function Mx(e){var t,r;let n=mM({...e,onSelectionChange:e.onSelectionChange?s=>{var u;s!=null&&((u=e.onSelectionChange)===null||u===void 0||u.call(e,s))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:(r=(t=e.defaultSelectedKey)!==null&&t!==void 0?t:_0(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set))!==null&&r!==void 0?r:void 0}),{selectionManager:o,collection:a,selectedKey:i}=n,l=h.useRef(i);return h.useEffect(()=>{let s=i;e.selectedKey==null&&(o.isEmpty||s==null||!a.getItem(s))&&(s=_0(a,n.disabledKeys),s!=null&&o.setSelectedKeys([s])),(s!=null&&o.focusedKey==null||!o.isFocused&&s!==l.current)&&o.setFocusedKey(s),l.current=s}),{...n,isDisabled:e.isDisabled||!1}}function _0(e,t){let r=null;if(e){var n,o,a,i;for(r=e.getFirstKey();r!=null&&(t.has(r)||!((o=e.getItem(r))===null||o===void 0||(n=o.props)===null||n===void 0)&&n.isDisabled)&&r!==e.getLastKey();)r=e.getKeyAfter(r);r!=null&&(t.has(r)||!((i=e.getItem(r))===null||i===void 0||(a=i.props)===null||a===void 0)&&a.isDisabled)&&r===e.getLastKey()&&(r=e.getFirstKey())}return r}var Bx=({defaultSelected:e,onSelectionChange:t,selected:r,tabs:n})=>Mx({children:n.map(({children:o,id:a,"aria-label":i,title:l})=>g.createElement(e9,{key:a,"aria-label":i,title:typeof l=="function"?g.createElement(l,null):l},typeof o=="function"?g.createElement(o,null):o)),disabledKeys:n.filter(({isDisabled:o})=>o).map(({id:o})=>o),defaultSelectedKey:e,onSelectionChange:o=>t?.(`${o}`),selectedKey:r}),yM=R.div({display:"flex",flexDirection:"column",height:"100%"}),bM=R(Nx)(()=>({flex:1})),EM=R(kx)(({$simulatedGap:e})=>({flex:"1 1 0%",'&[data-show-scroll-buttons="true"]':{marginInlineEnd:e}})),jx=({backgroundColor:e,barInnerStyle:t,defaultSelected:r,emptyState:n,onSelectionChange:o,panelProps:a={},selected:i,showToolsWhenEmpty:l,tabs:s,tools:u,...c})=>{let d=Bx({defaultSelected:r,onSelectionChange:o,selected:i,tabs:s}),f=n??g.createElement(ua,{title:"Nothing found"}),p=s.length>0;return!l&&!p?f:g.createElement(yM,{...c},g.createElement(la,{scrollable:!1,border:!0,backgroundColor:e,innerStyle:{display:"flex",justifyContent:"space-between",paddingInlineStart:0,paddingInlineEnd:10,"> *:not(:last-child)":{order:2},"> *":{flexShrink:0},...t,gap:0}},u,p?g.createElement(EM,{state:d,$simulatedGap:t?.gap??6}):g.createElement("div",null)),p?g.createElement(bM,{state:d,...a}):f)},Sl=h.createContext(null),Bn=h.createContext(null),vM=h.forwardRef(function(e,t){[e,t]=qe(e,t,Sl);let{children:r,orientation:n="horizontal"}=e;return r=h.useMemo(()=>typeof r=="function"?r({orientation:n,defaultChildren:null}):r,[r,n]),g.createElement(VS,{content:r},o=>g.createElement(SM,{props:e,collection:o,tabsRef:t}))});function SM({props:e,tabsRef:t,collection:r}){let{orientation:n="horizontal"}=e,o=Mx({...e,collection:r,children:void 0}),{focusProps:a,isFocused:i,isFocusVisible:l}=pl({within:!0}),s=h.useMemo(()=>({orientation:n,isFocusWithin:i,isFocusVisible:l}),[n,i,l]),u=ht({...e,defaultClassName:"react-aria-Tabs",values:s}),c=xe(e,{global:!0});return g.createElement("div",{...ee(c,u,a),ref:t,slot:e.slot||void 0,"data-focused":i||void 0,"data-orientation":n,"data-focus-visible":l||void 0,"data-disabled":o.isDisabled||void 0},g.createElement(fr,{values:[[Sl,e],[Bn,o]]},u.children))}var xM=h.forwardRef(function(e,t){return h.useContext(Bn)?g.createElement($M,{props:e,forwardedRef:t}):g.createElement(XS,e)});function $M({props:e,forwardedRef:t}){let r=h.useContext(Bn),{CollectionRoot:n}=h.useContext(ia),{orientation:o="horizontal",keyboardActivation:a="automatic"}=Ef(Sl),i=Mt(t),{tabListProps:l}=Lx({...e,orientation:o,keyboardActivation:a},r,i),s=ht({...e,children:null,defaultClassName:"react-aria-TabList",values:{orientation:o,state:r}}),u=xe(e,{global:!0});return delete u.id,g.createElement("div",{...ee(u,s,l),ref:i,"data-orientation":o||void 0},g.createElement(n,{collection:r.collection,persistedKeys:rx(r.selectionManager.focusedKey)}))}var Hx=class extends cn{};Hx.type="item";var wM=yl(Hx,(e,t,r)=>{let n=h.useContext(Bn),o=Mt(t),{tabProps:a,isSelected:i,isDisabled:l,isPressed:s}=Fx({key:r.key,...e},n,o),{focusProps:u,isFocused:c,isFocusVisible:d}=pl(),{hoverProps:f,isHovered:p}=Zn({isDisabled:l,onHoverStart:e.onHoverStart,onHoverEnd:e.onHoverEnd,onHoverChange:e.onHoverChange}),m=ht({...e,children:r.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:i,isDisabled:l,isFocused:c,isFocusVisible:d,isPressed:s,isHovered:p}}),y=r.props.href?"a":"div",E=xe(e,{global:!0});return delete E.id,delete E.onClick,g.createElement(y,{...ee(E,m,a,u,f),ref:o,"data-selected":i||void 0,"data-disabled":l||void 0,"data-focused":c||void 0,"data-focus-visible":d||void 0,"data-pressed":s||void 0,"data-hovered":p||void 0},m.children)}),CM=Rf(function(e,t){let r=h.useContext(Bn),n=Mt(t),{id:o,...a}=e,{tabPanelProps:i}=Ix(e,r,n),{focusProps:l,isFocused:s,isFocusVisible:u}=pl(),c=r.selectedKey===e.id,d=ht({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:s,isFocusVisible:u,isInert:hm(!c),state:r}});if(!c&&!e.shouldForceMount)return null;let f=xe(a,{global:!0});delete f.id;let p=c?ee(f,i,l,d):d;return g.createElement("div",{...p,ref:n,"data-focused":s||void 0,"data-focus-visible":u||void 0,inert:hm(!c||e.inert),"data-inert":c?void 0:"true"},g.createElement(fr,{values:[[Sl,null],[Bn,null]]},g.createElement(ia.Provider,{value:tx},d.children)))});R.div({display:"flex",alignItems:"center",flexShrink:0,position:"relative",overflow:"hidden"});R.div({display:"flex",overflowX:"auto",scrollbarWidth:"none",msOverflowStyle:"none",WebkitScrollbar:"none",scrollSnapType:"x mandatory",flex:1,"&::-webkit-scrollbar":{display:"none"}});R(xM)({display:"flex",flexShrink:0});R.div(({$showStartBorder:e,$showEndBorder:t,theme:r})=>({flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",padding:6,boxShadow:e?`inset 1px 0 0 ${r.appBorderColor}`:t?`inset -1px 0 0 ${r.appBorderColor}`:"none"}));R(Ce)({flexShrink:0,paddingInline:0,width:16});R(CM)({overflowY:"hidden",height:"100%",display:"block",'&[inert="true"]':{display:"none"}});R(vM)(({$simulatedGap:e})=>({display:"flex",flexDirection:"column",height:"100%",".tablist":{flex:"1 1 100%"},".tablist.tablist-has-scroll":{marginInlineEnd:e},"& > :not(:first-child)":{flex:1}}));R(wM)(({theme:e})=>({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none",scrollSnapAlign:"start","&:empty":{display:"none"},"&[hidden]":{display:"none"},padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus-visible":{outline:"0 none",boxShadow:`inset 0 0 0 2px ${e.barSelectedColor}`},color:e.barTextColor,borderBottomColor:"transparent","&:hover":{color:e.barHoverColor},"&[data-selected]":{color:e.barSelectedColor,borderBottomColor:e.barSelectedColor}}));var _M=ke`
687
+ from {
688
+ transform: rotate(0deg);
689
+ }
690
+ to {
691
+ transform: rotate(360deg);
692
+ }
693
+ `,TM=R.div(({size:e=32})=>({borderRadius:"50%",cursor:"progress",display:"inline-block",overflow:"hidden",position:"absolute",transition:"all 200ms ease-out",verticalAlign:"top",top:"50%",left:"50%",marginTop:-(e/2),marginLeft:-(e/2),height:e,width:e,zIndex:4,borderWidth:2,borderStyle:"solid",borderColor:"rgba(97, 97, 97, 0.29)",borderTopColor:"rgb(100,100,100)",animation:`${_M} 0.7s linear infinite`,mixBlendMode:"difference"})),T0=R.div({position:"absolute",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"}),AM=R.div(({theme:e})=>({position:"relative",width:"80%",marginBottom:"0.75rem",maxWidth:300,height:5,borderRadius:5,background:ur(.8,e.color.secondary),overflow:"hidden",cursor:"progress"})),OM=R.div(({theme:e})=>({position:"absolute",top:0,left:0,height:"100%",background:e.color.secondary})),A0=R.div(({theme:e})=>({minHeight:"2em",fontSize:`${e.typography.size.s1}px`,color:e.textMutedColor})),RM=R(r5)(({theme:e})=>({width:20,height:20,marginBottom:"0.5rem",color:e.textMutedColor})),DM=ke`
694
+ from { content: "..." }
695
+ 33% { content: "." }
696
+ 66% { content: ".." }
697
+ to { content: "..." }
698
+ `,PM=R.span({"&::after":{content:"'...'",animation:`${DM} 1s linear infinite`,animationDelay:"1s",display:"inline-block",width:"1em",height:"auto"}}),Ux=({progress:e,error:t,size:r,...n})=>{if(t)return g.createElement(T0,{"aria-label":t.toString(),"aria-live":"polite",role:"status",...n},g.createElement(RM,null),g.createElement(A0,null,t.message));if(e){let{value:o,modules:a}=e,{message:i}=e;return a&&(i+=` ${a.complete} / ${a.total} modules`),g.createElement(T0,{"aria-label":"Content is loading...","aria-live":"polite","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":o*100,"aria-valuetext":i,role:"progressbar",...n},g.createElement(AM,null,g.createElement(OM,{style:{width:`${o*100}%`}})),g.createElement(A0,null,i,o<1&&g.createElement(PM,{key:i})))}return g.createElement(TM,{"aria-label":"Content is loading...","aria-live":"polite",role:"status",size:r,...n})},FM=ke({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});R.div(({size:e})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",minWidth:e,minHeight:e}));R.svg(({size:e,width:t})=>({position:"absolute",width:`${e}px!important`,height:`${e}px!important`,transform:"rotate(-90deg)",circle:{r:(e-Math.ceil(t))/2,cx:e/2,cy:e/2,opacity:.15,fill:"transparent",stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeDasharray:Math.PI*(e-Math.ceil(t))}}),({progress:e})=>e&&{circle:{opacity:.75}},({spinner:e})=>e&&{animation:`${FM} 1s linear infinite`,circle:{opacity:.25}});const{deprecate:VV}=__STORYBOOK_MODULE_CLIENT_LOGGER__;R.pre`
699
+ line-height: 18px;
700
+ padding: 11px 1rem;
701
+ white-space: pre-wrap;
702
+ background: rgba(0, 0, 0, 0.05);
703
+ color: ${q.darkest};
704
+ border-radius: 3px;
705
+ margin: 1rem 0;
706
+ width: 100%;
707
+ display: block;
708
+ overflow: hidden;
709
+ font-family: ${Ft.fonts.mono};
710
+ font-size: ${Ft.size.s2-1}px;
711
+ `;var zx=$E;Object.keys($E).forEach(e=>{h.forwardRef((t,r)=>h.createElement(e,{...t,ref:r}))});const IM=Object.freeze(Object.defineProperty({__proto__:null,A:aE,ActionBar:kb,ActionList:Za,Bar:la,Blockquote:iE,Button:Ce,Code:of,DL:lE,Div:sE,EmptyTabContent:ua,ErrorFormatter:FS,FlexBar:kf,Form:un,H1:uE,H2:af,H3:lf,H4:cE,H5:dE,H6:fE,HR:pE,IconButton:gS,Img:hE,LI:gE,Link:Ln,ListItem:wx,Loader:Ux,OL:mE,P:yE,Popover:aa,PopoverProvider:Lf,Pre:bE,ResetWrapper:nf,ScrollArea:Dd,Select:MS,Separator:Rx,Span:EE,SyntaxHighlighter:ea,TT:vE,TabBar:Nf,TabButton:sa,TabList:kx,TabPanel:Nx,TabWrapper:Ax,Table:SE,Tabs:Mf,TabsState:Ox,TabsView:jx,ToggleButton:gl,Toolbar:Dx,Tooltip:xx,TooltipLinkList:Cx,TooltipNote:CE,TooltipProvider:pS,UL:xE,Zoom:PS,codeCommon:cr,components:zx,convertToReactAriaPlacement:_f,createCopyToClipboardFunction:JD,nameSpaceClassNames:be,useTabsState:Bx,withReset:Se},Symbol.toStringTag,{value:"Module"}));function it(){return it=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},it.apply(null,arguments)}function LM(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ko(e,t){return Ko=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Ko(e,t)}function kM(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ko(e,t)}function Yc(e){return Yc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Yc(e)}function NM(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Kx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Kx=function(){return!!e})()}function MM(e,t,r){if(Kx())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&Ko(o,r.prototype),o}function Xc(e){var t=typeof Map=="function"?new Map:void 0;return Xc=function(r){if(r===null||!NM(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 MM(r,arguments,Yc(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Ko(n,r)},Xc(e)}var qt=(function(e){kM(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,LM(n)}return t})(Xc(Error));function Cu(e){return Math.round(e*255)}function BM(e,t,r){return Cu(e)+","+Cu(t)+","+Cu(r)}function Oi(e,t,r,n){if(n===void 0&&(n=BM),t===0)return n(r,r,r);var o=(e%360+360)%360/60,a=(1-Math.abs(2*r-1))*t,i=a*(1-Math.abs(o%2-1)),l=0,s=0,u=0;o>=0&&o<1?(l=a,s=i):o>=1&&o<2?(l=i,s=a):o>=2&&o<3?(s=a,u=i):o>=3&&o<4?(s=i,u=a):o>=4&&o<5?(l=i,u=a):o>=5&&o<6&&(l=a,u=i);var c=r-a/2,d=l+c,f=s+c,p=u+c;return n(d,f,p)}var O0={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 jM(e){if(typeof e!="string")return e;var t=e.toLowerCase();return O0[t]?"#"+O0[t]:e}var HM=/^#[a-fA-F0-9]{6}$/,UM=/^#[a-fA-F0-9]{8}$/,zM=/^#[a-fA-F0-9]{3}$/,KM=/^#[a-fA-F0-9]{4}$/,_u=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,GM=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,WM=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,VM=/^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 jn(e){if(typeof e!="string")throw new qt(3);var t=jM(e);if(t.match(HM))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(UM)){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(zM))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(KM)){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=_u.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=GM.exec(t.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};var i=WM.exec(t);if(i){var l=parseInt(""+i[1],10),s=parseInt(""+i[2],10)/100,u=parseInt(""+i[3],10)/100,c="rgb("+Oi(l,s,u)+")",d=_u.exec(c);if(!d)throw new qt(4,t,c);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10)}}var f=VM.exec(t.substring(0,50));if(f){var p=parseInt(""+f[1],10),m=parseInt(""+f[2],10)/100,y=parseInt(""+f[3],10)/100,E="rgb("+Oi(p,m,y)+")",b=_u.exec(E);if(!b)throw new qt(4,t,E);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 qt(5)}function qM(e){var t=e.red/255,r=e.green/255,n=e.blue/255,o=Math.max(t,r,n),a=Math.min(t,r,n),i=(o+a)/2;if(o===a)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var l,s=o-a,u=i>.5?s/(2-o-a):s/(o+a);switch(o){case t:l=(r-n)/s+(r<n?6:0);break;case r:l=(n-t)/s+2;break;default:l=(t-r)/s+4;break}return l*=60,e.alpha!==void 0?{hue:l,saturation:u,lightness:i,alpha:e.alpha}:{hue:l,saturation:u,lightness:i}}function Or(e){return qM(jn(e))}var YM=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},Jc=YM;function Ur(e){var t=e.toString(16);return t.length===1?"0"+t:t}function Tu(e){return Ur(Math.round(e*255))}function XM(e,t,r){return Jc("#"+Tu(e)+Tu(t)+Tu(r))}function Gx(e,t,r){return Oi(e,t,r,XM)}function JM(e,t,r){if(typeof e=="object"&&t===void 0&&r===void 0)return Gx(e.hue,e.saturation,e.lightness);throw new qt(1)}function ZM(e,t,r,n){if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Gx(e.hue,e.saturation,e.lightness):"rgba("+Oi(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new qt(2)}function Wx(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return Jc("#"+Ur(e)+Ur(t)+Ur(r));if(typeof e=="object"&&t===void 0&&r===void 0)return Jc("#"+Ur(e.red)+Ur(e.green)+Ur(e.blue));throw new qt(6)}function Hn(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var o=jn(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}else if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Wx(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new qt(7)}var QM=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},eB=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},tB=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},rB=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function Rr(e){if(typeof e!="object")throw new qt(8);if(eB(e))return Hn(e);if(QM(e))return Wx(e);if(rB(e))return ZM(e);if(tB(e))return JM(e);throw new qt(8)}function Vx(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):Vx(e,t,n)}}function gt(e){return Vx(e,e.length,[])}function nB(e,t){if(t==="transparent")return t;var r=Or(t);return Rr(it({},r,{hue:r.hue+parseFloat(e)}))}gt(nB);function Qn(e,t,r){return Math.max(e,Math.min(t,r))}function oB(e,t){if(t==="transparent")return t;var r=Or(t);return Rr(it({},r,{lightness:Qn(0,1,r.lightness-parseFloat(e))}))}var aB=gt(oB),_o=aB;function iB(e,t){if(t==="transparent")return t;var r=Or(t);return Rr(it({},r,{saturation:Qn(0,1,r.saturation-parseFloat(e))}))}gt(iB);function lB(e,t){if(t==="transparent")return t;var r=Or(t);return Rr(it({},r,{lightness:Qn(0,1,r.lightness+parseFloat(e))}))}var sB=gt(lB),Zc=sB;function uB(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=jn(t),o=it({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),a=jn(r),i=it({},a,{alpha:typeof a.alpha=="number"?a.alpha:1}),l=o.alpha-i.alpha,s=parseFloat(e)*2-1,u=s*l===-1?s:s+l,c=1+s*l,d=(u/c+1)/2,f=1-d,p={red:Math.floor(o.red*d+i.red*f),green:Math.floor(o.green*d+i.green*f),blue:Math.floor(o.blue*d+i.blue*f),alpha:o.alpha*parseFloat(e)+i.alpha*(1-parseFloat(e))};return Hn(p)}var cB=gt(uB),qx=cB;function dB(e,t){if(t==="transparent")return t;var r=jn(t),n=typeof r.alpha=="number"?r.alpha:1,o=it({},r,{alpha:Qn(0,1,(n*100+parseFloat(e)*100)/100)});return Hn(o)}var fB=gt(dB),Fa=fB;function pB(e,t){if(t==="transparent")return t;var r=Or(t);return Rr(it({},r,{saturation:Qn(0,1,r.saturation+parseFloat(e))}))}gt(pB);function hB(e,t){return t==="transparent"?t:Rr(it({},Or(t),{hue:parseFloat(e)}))}gt(hB);function gB(e,t){return t==="transparent"?t:Rr(it({},Or(t),{lightness:parseFloat(e)}))}gt(gB);function mB(e,t){return t==="transparent"?t:Rr(it({},Or(t),{saturation:parseFloat(e)}))}gt(mB);function yB(e,t){return t==="transparent"?t:qx(parseFloat(e),"rgb(0, 0, 0)",t)}gt(yB);function bB(e,t){return t==="transparent"?t:qx(parseFloat(e),"rgb(255, 255, 255)",t)}gt(bB);function EB(e,t){if(t==="transparent")return t;var r=jn(t),n=typeof r.alpha=="number"?r.alpha:1,o=it({},r,{alpha:Qn(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return Hn(o)}var vB=gt(EB),Ae=vB,SB=R.div(Se,({theme:e})=>({backgroundColor:e.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:Ae(.3,e.color.defaultText),fontSize:e.typography.size.s2})),Yx=e=>g.createElement(SB,{...e,className:"docblock-emptyblock sb-unstyled"}),xB=R(ea)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),$B=R.div(({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"})),Ia=R.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${ui}`]:{margin:0}})),wB=()=>g.createElement($B,null,g.createElement(Ia,null),g.createElement(Ia,{style:{width:"80%"}}),g.createElement(Ia,{style:{width:"30%"}}),g.createElement(Ia,{style:{width:"80%"}})),Xx=({isLoading:e,error:t,language:r,code:n,dark:o,format:a=!0,...i})=>{let{typography:l}=Ki();if(e)return g.createElement(wB,null);if(t)return g.createElement(Yx,null,t);let s=g.createElement(xB,{bordered:!0,copyable:!0,format:a,language:r??"jsx",className:"docblock-source sb-unstyled",...i},n);if(typeof o>"u")return s;let u=o?Vr.dark:Vr.light;return g.createElement(_d,{theme:si({...u,fontCode:l.fonts.mono,fontBase:l.fonts.base})},s)};function CB(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(l,s){var u=s.match(/\n([\t ]+|(?!\s).)/g);return u?l.concat(u.map(function(c){var d,f;return(f=(d=c.match(/[\t ]/g))===null||d===void 0?void 0:d.length)!==null&&f!==void 0?f:0})):l},[]);if(o.length){var a=new RegExp(`
712
+ [ ]{`+Math.min.apply(Math,o)+"}","g");n=n.map(function(l){return l.replace(a,`
713
+ `)})}n[0]=n[0].replace(/^\r?\n/,"");var i=n[0];return t.forEach(function(l,s){var u=i.match(/(?:^|\n)( *)$/),c=u?u[1]:"",d=l;typeof l=="string"&&l.includes(`
714
+ `)&&(d=String(l).split(`
715
+ `).map(function(f,p){return p===0?f:""+c+f}).join(`
716
+ `)),i+=d+n[s+1]}),i}const{once:_B}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function TB(e){return e==null||typeof e!="object"&&typeof e!="function"}function AB(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function OB(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function RB(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var DB="[object RegExp]",PB="[object String]",FB="[object Number]",IB="[object Boolean]",LB="[object Arguments]",kB="[object Symbol]",NB="[object Date]",MB="[object Map]",BB="[object Set]",jB="[object Array]",HB="[object ArrayBuffer]",UB="[object Object]",zB="[object DataView]",KB="[object Uint8Array]",GB="[object Uint8ClampedArray]",WB="[object Uint16Array]",VB="[object Uint32Array]",qB="[object Int8Array]",YB="[object Int16Array]",XB="[object Int32Array]",JB="[object Float32Array]",ZB="[object Float64Array]";function Sn(e,t,r,n=new Map,o=void 0){let a=o?.(e,t,r,n);if(a!==void 0)return a;if(TB(e))return e;if(n.has(e))return n.get(e);if(Array.isArray(e)){let i=new Array(e.length);n.set(e,i);for(let l=0;l<e.length;l++)i[l]=Sn(e[l],l,r,n,o);return Object.hasOwn(e,"index")&&(i.index=e.index),Object.hasOwn(e,"input")&&(i.input=e.input),i}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let i=new RegExp(e.source,e.flags);return i.lastIndex=e.lastIndex,i}if(e instanceof Map){let i=new Map;n.set(e,i);for(let[l,s]of e)i.set(l,Sn(s,l,r,n,o));return i}if(e instanceof Set){let i=new Set;n.set(e,i);for(let l of e)i.add(Sn(l,void 0,r,n,o));return i}if(typeof Buffer<"u"&&Buffer.isBuffer(e))return e.subarray();if(AB(e)){let i=new(Object.getPrototypeOf(e)).constructor(e.length);n.set(e,i);for(let l=0;l<e.length;l++)i[l]=Sn(e[l],l,r,n,o);return i}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let i=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return n.set(e,i),gr(i,e,r,n,o),i}if(typeof File<"u"&&e instanceof File){let i=new File([e],e.name,{type:e.type});return n.set(e,i),gr(i,e,r,n,o),i}if(typeof Blob<"u"&&e instanceof Blob){let i=new Blob([e],{type:e.type});return n.set(e,i),gr(i,e,r,n,o),i}if(e instanceof Error){let i=new e.constructor;return n.set(e,i),i.message=e.message,i.name=e.name,i.stack=e.stack,i.cause=e.cause,gr(i,e,r,n,o),i}if(e instanceof Boolean){let i=new Boolean(e.valueOf());return n.set(e,i),gr(i,e,r,n,o),i}if(e instanceof Number){let i=new Number(e.valueOf());return n.set(e,i),gr(i,e,r,n,o),i}if(e instanceof String){let i=new String(e.valueOf());return n.set(e,i),gr(i,e,r,n,o),i}if(typeof e=="object"&&QB(e)){let i=Object.create(Object.getPrototypeOf(e));return n.set(e,i),gr(i,e,r,n,o),i}return e}function gr(e,t,r=e,n,o){let a=[...Object.keys(t),...OB(t)];for(let i=0;i<a.length;i++){let l=a[i],s=Object.getOwnPropertyDescriptor(e,l);(s==null||s.writable)&&(e[l]=Sn(t[l],l,r,n,o))}}function QB(e){switch(RB(e)){case LB:case jB:case HB:case zB:case IB:case NB:case JB:case ZB:case qB:case YB:case XB:case MB:case FB:case UB:case DB:case BB:case PB:case kB:case KB:case GB:case WB:case VB:return!0;default:return!1}}function ej(e){return Sn(e,void 0,e,new Map,void 0)}function tj(e,t){let r={},n=Object.keys(e);for(let o=0;o<n.length;o++){let a=n[o],i=e[a];t(i,a)&&(r[a]=i)}return r}function Kr(){return Kr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kr.apply(this,arguments)}var rj=["children","options"],R0=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{class:"className",for:"htmlFor"}),D0={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},nj=["style","script","pre"],oj=["src","href","data","formAction","srcDoc","action"],aj=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,ij=/\n{2,}$/,P0=/^(\s*>[\s\S]*?)(?=\n\n|$)/,lj=/^ *> ?/gm,sj=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,uj=/^ {2,}\n/,cj=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,F0=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,I0=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,dj=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,fj=/^(?:\n *)*\n/,pj=/\r\n?/g,hj=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,gj=/^\[\^([^\]]+)]/,mj=/\f/g,yj=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,bj=/^\s*?\[(x|\s)\]/,L0=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,k0=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,N0=/^([^\n]+)\n *(=|-)\2{2,} *\n/,Au=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,Ej=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,M0=/^<!--[\s\S]*?(?:-->)/,vj=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Ou=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,Sj=/^\{.*\}$/,xj=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,$j=/^<([^ >]+[:@\/][^ >]+)>/,wj=/-([a-z])?/gi,B0=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,Cj=/^[^\n]+(?: \n|\n{2,})/,_j=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,Tj=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,Aj=/^\[([^\]]*)\] ?\[([^\]]*)\]/,Oj=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,Rj=/\t/g,Dj=/(^ *\||\| *$)/g,Pj=/^ *:-+: *$/,Fj=/^ *:-+ *$/,Ij=/^ *-+: *$/,xl=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,$l="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",Lj=RegExp(`^([*_])\\1${xl(1)}${$l}\\1\\1(?!\\1)`),kj=RegExp(`^([*_])${xl(0)}${$l}\\1(?!\\1)`),Nj=RegExp(`^(==)${xl(0)}${$l}\\1`),Mj=RegExp(`^(~~)${xl(0)}${$l}\\1`),Bj=/^(:[a-zA-Z0-9-_]+:)/,jj=/^\\([^0-9A-Za-z\s])/,Hj=/\\([^0-9A-Za-z\s])/g,Uj=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,zj=/^\n+/,Kj=/^([ \t]*)/,Gj=/(?:^|\n)( *)$/,Bf="(?:\\d+\\.)",jf="(?:[*+-])";function Jx(e){return"( *)("+(e===1?Bf:jf)+") +"}var Zx=Jx(1),Qx=Jx(2);function e$(e){return RegExp("^"+(e===1?Zx:Qx))}var Wj=e$(1),Vj=e$(2);function t$(e){return RegExp("^"+(e===1?Zx:Qx)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Bf:jf)+" )[^\\n]*)*(\\n|$)","gm")}var qj=t$(1),Yj=t$(2);function r$(e){let t=e===1?Bf:jf;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}var n$=r$(1),o$=r$(2);function j0(e,t){let r=t===1,n=r?n$:o$,o=r?qj:Yj,a=r?Wj:Vj;return{t:i=>a.test(i),o:Un(function(i,l){let s=Gj.exec(l.prevCapture);return s&&(l.list||!l.inline&&!l.simple)?n.exec(i=s[1]+i):null}),i:1,u(i,l,s){let u=r?+i[2]:void 0,c=i[0].replace(ij,`
717
+ `).match(o),d=!1;return{items:c.map(function(f,p){let m=a.exec(f)[0].length,y=RegExp("^ {1,"+m+"}","gm"),E=f.replace(y,"").replace(a,""),b=p===c.length-1,v=E.indexOf(`
718
+
719
+ `)!==-1||b&&d;d=v;let S=s.inline,x=s.list,C;s.list=!0,v?(s.inline=!1,C=To(E)+`
720
+
721
+ `):(s.inline=!0,C=To(E));let $=l(C,s);return s.inline=S,s.list=x,$}),ordered:r,start:u}},l:(i,l,s)=>e(i.ordered?"ol":"ul",{key:s.key,start:i.type==="20"?i.start:void 0},i.items.map(function(u,c){return e("li",{key:c},l(u,s))}))}}var Xj=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),Jj=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function H0(e){return typeof e=="string"}function To(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function ti(e,t){return e.startsWith(t)}function Zj(e,t,r){if(Array.isArray(r)){for(let n=0;n<r.length;n++)if(ti(e,r[n]))return!0;return!1}return r(e,t)}function go(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function Qj(e){return Ij.test(e)?"right":Pj.test(e)?"center":Fj.test(e)?"left":null}function U0(e,t,r,n){let o=r.inTable;r.inTable=!0;let a=[[]],i="";function l(){if(!i)return;let s=a[a.length-1];s.push.apply(s,t(i,r)),i=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((s,u,c)=>{s.trim()==="|"&&(l(),n)?u!==0&&u!==c.length-1&&a.push([]):i+=s}),l(),r.inTable=o,a}function eH(e,t,r){r.inline=!0;let n=e[2]?e[2].replace(Dj,"").split("|").map(Qj):[],o=e[3]?(function(i,l,s){return i.trim().split(`
722
+ `).map(function(u){return U0(u,l,s,!0)})})(e[3],t,r):[],a=U0(e[1],t,r,!!o.length);return r.inline=!1,o.length?{align:n,cells:o,header:a,type:"25"}:{children:a,type:"21"}}function z0(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function Un(e){return e.inline=1,e}function Nr(e){return Un(function(t,r){return r.inline?e.exec(t):null})}function mr(e){return Un(function(t,r){return r.inline||r.simple?e.exec(t):null})}function or(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function La(e){return Un(function(t){return e.exec(t)})}var tH=/(javascript|vbscript|data(?!:image)):/i;function rH(e){try{let t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(tH.test(t))return null}catch{return null}return e}function jt(e){return e&&e.replace(Hj,"$1")}function ri(e,t,r){let n=r.inline||!1,o=r.simple||!1;r.inline=!0,r.simple=!0;let a=e(t,r);return r.inline=n,r.simple=o,a}function nH(e,t,r){let n=r.inline||!1,o=r.simple||!1;r.inline=!1,r.simple=!0;let a=e(t,r);return r.inline=n,r.simple=o,a}function oH(e,t,r){let n=r.inline||!1;r.inline=!1;let o=e(t,r);return r.inline=n,o}var Ru=(e,t,r)=>({children:ri(t,e[2],r)});function Du(){return{}}function Pu(){return null}function aH(...e){return e.filter(Boolean).join(" ")}function Fu(e,t,r){let n=e,o=t.split(".");for(;o.length&&(n=n[o[0]],n!==void 0);)o.shift();return n||r}function iH(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?Kr({},D0,t.namedCodesToUnicode):D0;let r=t.slugify||go,n=t.sanitizer||rH,o=t.createElement||h.createElement,a=[P0,F0,I0,t.enforceAtxHeadings?k0:L0,N0,B0,n$,o$],i=[...a,Cj,Au,M0,Ou];function l(b,v){for(let S=0;S<b.length;S++)if(b[S].test(v))return!0;return!1}function s(b,v,...S){let x=Fu(t.overrides,b+".props",{});return o((function(C,$){let w=Fu($,C);return w?typeof w=="function"||typeof w=="object"&&"render"in w?w:Fu($,C+".component",C):C})(b,t.overrides),Kr({},v,x,{className:aH(v?.className,x.className)||void 0}),...S)}function u(b){b=b.replace(yj,"");let v=!1;t.forceInline?v=!0:t.forceBlock||(v=Oj.test(b)===!1);let S=y(m(v?b:To(b).replace(zj,"")+`
723
+
724
+ `,{inline:v}));for(;H0(S[S.length-1])&&!S[S.length-1].trim();)S.pop();if(t.wrapper===null)return S;let x=t.wrapper||(v?"span":"div"),C;if(S.length>1||t.forceWrapper)C=S;else{if(S.length===1)return C=S[0],typeof C=="string"?s("span",{key:"outer"},C):C;C=null}return o(x,{key:"outer"},C)}function c(b,v){if(!v||!v.trim())return null;let S=v.match(aj);return S?S.reduce(function(x,C){let $=C.indexOf("=");if($!==-1){let w=(function(_){return _.indexOf("-")!==-1&&_.match(vj)===null&&(_=_.replace(wj,function(I,L){return L.toUpperCase()})),_})(C.slice(0,$)).trim(),T=(function(_){let I=_[0];return(I==='"'||I==="'")&&_.length>=2&&_[_.length-1]===I?_.slice(1,-1):_})(C.slice($+1).trim()),O=R0[w]||w;if(O==="ref")return x;let D=x[O]=(function(_,I,L,A){return I==="style"?(function(P){let k=[],F="",M=!1,B=!1,N="";if(!P)return k;for(let U=0;U<P.length;U++){let j=P[U];if(j!=='"'&&j!=="'"||M||(B?j===N&&(B=!1,N=""):(B=!0,N=j)),j==="("&&F.endsWith("url")?M=!0:j===")"&&M&&(M=!1),j!==";"||B||M)F+=j;else{let K=F.trim();if(K){let H=K.indexOf(":");if(H>0){let W=K.slice(0,H).trim(),X=K.slice(H+1).trim();k.push([W,X])}}F=""}}let z=F.trim();if(z){let U=z.indexOf(":");if(U>0){let j=z.slice(0,U).trim(),K=z.slice(U+1).trim();k.push([j,K])}}return k})(L).reduce(function(P,[k,F]){return P[k.replace(/(-[a-z])/g,M=>M[1].toUpperCase())]=A(F,_,k),P},{}):oj.indexOf(I)!==-1?A(jt(L),_,I):(L.match(Sj)&&(L=jt(L.slice(1,L.length-1))),L==="true"||L!=="false"&&L)})(b,w,T,n);typeof D=="string"&&(Au.test(D)||Ou.test(D))&&(x[O]=u(D.trim()))}else C!=="style"&&(x[R0[C]||C]=!0);return x},{}):null}let d=[],f={},p={0:{t:[">"],o:or(P0),i:1,u(b,v,S){let[,x,C]=b[0].replace(lj,"").match(sj);return{alert:x,children:v(C,S)}},l(b,v,S){let x={key:S.key};return b.alert&&(x.className="markdown-alert-"+r(b.alert.toLowerCase(),go),b.children.unshift({attrs:{},children:[{type:"27",text:b.alert}],noInnerParse:!0,type:"11",tag:"header"})),s("blockquote",x,v(b.children,S))}},1:{t:[" "],o:La(uj),i:1,u:Du,l:(b,v,S)=>s("br",{key:S.key})},2:{t:["--","__","**","- ","* ","_ "],o:or(cj),i:1,u:Du,l:(b,v,S)=>s("hr",{key:S.key})},3:{t:[" "],o:or(I0),i:0,u:b=>({lang:void 0,text:jt(To(b[0].replace(/^ {4}/gm,"")))}),l:(b,v,S)=>s("pre",{key:S.key},s("code",Kr({},b.attrs,{className:b.lang?"lang-"+b.lang:""}),b.text))},4:{t:["```","~~~"],o:or(F0),i:0,u:b=>({attrs:c("code",b[3]||""),lang:b[2]||void 0,text:b[4],type:"3"})},5:{t:["`"],o:mr(dj),i:3,u:b=>({text:jt(b[2])}),l:(b,v,S)=>s("code",{key:S.key},b.text)},6:{t:["[^"],o:or(hj),i:0,u:b=>(d.push({footnote:b[2],identifier:b[1]}),{}),l:Pu},7:{t:["[^"],o:Nr(gj),i:1,u:b=>({target:"#"+r(b[1],go),text:b[1]}),l:(b,v,S)=>s("a",{key:S.key,href:n(b.target,"a","href")},s("sup",{key:S.key},b.text))},8:{t:["[ ]","[x]"],o:Nr(bj),i:1,u:b=>({completed:b[1].toLowerCase()==="x"}),l:(b,v,S)=>s("input",{checked:b.completed,key:S.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:or(t.enforceAtxHeadings?k0:L0),i:1,u:(b,v,S)=>({children:ri(v,b[2],S),id:r(b[2],go),level:b[1].length}),l:(b,v,S)=>s("h"+b.level,{id:b.id,key:S.key},v(b.children,S))},10:{t:b=>{let v=b.indexOf(`
725
+ `);return v>0&&v<b.length-1&&(b[v+1]==="="||b[v+1]==="-")},o:or(N0),i:1,u:(b,v,S)=>({children:ri(v,b[1],S),level:b[2]==="="?1:2,type:"9"})},11:{t:["<"],o:La(Au),i:1,u(b,v,S){let[,x]=b[3].match(Kj),C=RegExp("^"+x,"gm"),$=b[3].replace(C,""),w=l(i,$)?oH:ri,T=b[1].toLowerCase(),O=nj.indexOf(T)!==-1,D=(O?T:b[1]).trim(),_={attrs:c(D,b[2]),noInnerParse:O,tag:D};if(S.inAnchor=S.inAnchor||T==="a",O)_.text=b[3];else{let I=S.inHTML;S.inHTML=!0,_.children=w(v,$,S),S.inHTML=I}return S.inAnchor=!1,_},l:(b,v,S)=>s(b.tag,Kr({key:S.key},b.attrs),b.text||(b.children?v(b.children,S):""))},13:{t:["<"],o:La(Ou),i:1,u(b){let v=b[1].trim();return{attrs:c(v,b[2]||""),tag:v}},l:(b,v,S)=>s(b.tag,Kr({},b.attrs,{key:S.key}))},12:{t:["<!--"],o:La(M0),i:1,u:()=>({}),l:Pu},14:{t:["!["],o:mr(Jj),i:1,u:b=>({alt:jt(b[1]),target:jt(b[2]),title:jt(b[3])}),l:(b,v,S)=>s("img",{key:S.key,alt:b.alt||void 0,title:b.title||void 0,src:n(b.target,"img","src")})},15:{t:["["],o:Nr(Xj),i:3,u:(b,v,S)=>({children:nH(v,b[1],S),target:jt(b[2]),title:jt(b[3])}),l:(b,v,S)=>s("a",{key:S.key,href:n(b.target,"a","href"),title:b.title},v(b.children,S))},16:{t:["<"],o:Nr($j),i:0,u(b){let v=b[1],S=!1;return v.indexOf("@")!==-1&&v.indexOf("//")===-1&&(S=!0,v=v.replace("mailto:","")),{children:[{text:v,type:"27"}],target:S?"mailto:"+v:v,type:"15"}}},17:{t:(b,v)=>!v.inAnchor&&!t.disableAutoLink&&(ti(b,"http://")||ti(b,"https://")),o:Nr(xj),i:0,u:b=>({children:[{text:b[1],type:"27"}],target:b[1],title:void 0,type:"15"})},20:j0(s,1),33:j0(s,2),19:{t:[`
726
+ `],o:or(fj),i:3,u:Du,l:()=>`
727
+ `},21:{o:Un(function(b,v){if(v.inline||v.simple||v.inHTML&&b.indexOf(`
728
+
729
+ `)===-1&&v.prevCapture.indexOf(`
730
+
731
+ `)===-1)return null;let S="",x=0;for(;;){let $=b.indexOf(`
732
+ `,x),w=b.slice(x,$===-1?void 0:$+1);if(l(a,w)||(S+=w,$===-1||!w.trim()))break;x=$+1}let C=To(S);return C===""?null:[S,,C]}),i:3,u:Ru,l:(b,v,S)=>s("p",{key:S.key},v(b.children,S))},22:{t:["["],o:Nr(_j),i:0,u:b=>(f[b[1]]={target:b[2],title:b[4]},{}),l:Pu},23:{t:["!["],o:mr(Tj),i:0,u:b=>({alt:b[1]?jt(b[1]):void 0,ref:b[2]}),l:(b,v,S)=>f[b.ref]?s("img",{key:S.key,alt:b.alt,src:n(f[b.ref].target,"img","src"),title:f[b.ref].title}):null},24:{t:b=>b[0]==="["&&b.indexOf("](")===-1,o:Nr(Aj),i:0,u:(b,v,S)=>({children:v(b[1],S),fallbackChildren:b[0],ref:b[2]}),l:(b,v,S)=>f[b.ref]?s("a",{key:S.key,href:n(f[b.ref].target,"a","href"),title:f[b.ref].title},v(b.children,S)):s("span",{key:S.key},b.fallbackChildren)},25:{t:["|"],o:or(B0),i:1,u:eH,l(b,v,S){let x=b;return s("table",{key:S.key},s("thead",null,s("tr",null,x.header.map(function(C,$){return s("th",{key:$,style:z0(x,$)},v(C,S))}))),s("tbody",null,x.cells.map(function(C,$){return s("tr",{key:$},C.map(function(w,T){return s("td",{key:T,style:z0(x,T)},v(w,S))}))})))}},27:{o:Un(function(b,v){let S;return ti(b,":")&&(S=Bj.exec(b)),S||Uj.exec(b)}),i:4,u(b){let v=b[0];return{text:v.indexOf("&")===-1?v:v.replace(Ej,(S,x)=>t.namedCodesToUnicode[x]||S)}},l:b=>b.text},28:{t:["**","__"],o:mr(Lj),i:2,u:(b,v,S)=>({children:v(b[2],S)}),l:(b,v,S)=>s("strong",{key:S.key},v(b.children,S))},29:{t:b=>{let v=b[0];return(v==="*"||v==="_")&&b[1]!==v},o:mr(kj),i:3,u:(b,v,S)=>({children:v(b[2],S)}),l:(b,v,S)=>s("em",{key:S.key},v(b.children,S))},30:{t:["\\"],o:mr(jj),i:1,u:b=>({text:b[1],type:"27"})},31:{t:["=="],o:mr(Nj),i:3,u:Ru,l:(b,v,S)=>s("mark",{key:S.key},v(b.children,S))},32:{t:["~~"],o:mr(Mj),i:3,u:Ru,l:(b,v,S)=>s("del",{key:S.key},v(b.children,S))}};t.disableParsingRawHTML===!0&&(delete p[11],delete p[13]);let m=(function(b){var v=Object.keys(b);function S(x,C){var $=[];if(C.prevCapture=C.prevCapture||"",x.trim())for(;x;)for(var w=0;w<v.length;){var T=v[w],O=b[T];if(!O.t||Zj(x,C,O.t)){var D=O.o(x,C);if(D&&D[0]){x=x.substring(D[0].length);var _=O.u(D,S,C);C.prevCapture+=D[0],_.type||(_.type=T),$.push(_);break}w++}else w++}return C.prevCapture="",$}return v.sort(function(x,C){return b[x].i-b[C].i||(x<C?-1:1)}),function(x,C){return S((function($){return $.replace(pj,`
733
+ `).replace(mj,"").replace(Rj," ")})(x),C)}})(p),y=(function(b,v){return function S(x,C={}){if(Array.isArray(x)){let $=C.key,w=[],T=!1;for(let O=0;O<x.length;O++){C.key=O;let D=S(x[O],C),_=H0(D);_&&T?w[w.length-1]+=D:D!==null&&w.push(D),T=_}return C.key=$,w}return(function($,w,T){let O=b[$.type].l;return v?v(()=>O($,w,T),$,w,T):O($,w,T)})(x,S,C)}})(p,t.renderRule),E=u(e);return d.length?s("div",null,E,s("footer",{key:"footer"},d.map(function(b){return s("div",{id:r(b.identifier,go),key:b.identifier},b.identifier,y(m(b.footnote,{inline:!0})))}))):E}var a$=e=>{let{children:t,options:r}=e,n=(function(o,a){if(o==null)return{};var i,l,s={},u=Object.keys(o);for(l=0;l<u.length;l++)a.indexOf(i=u[l])>=0||(s[i]=o[i]);return s})(e,rj);return h.cloneElement(iH(t??"",r),n)},lH=R.label(({theme:e})=>({lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:e.boolean.background,borderRadius:"3em",padding:1,'&[aria-disabled="true"]':{opacity:.5,input:{cursor:"not-allowed"}},input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:`${e.color.secondary} 0 0 0 1px inset !important`},"@media (forced-colors: active)":{"&:focus":{outline:"1px solid highlight"}}},span:{textAlign:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:Ae(.5,e.color.defaultText),background:"transparent","&:hover":{boxShadow:`${Fa(.3,e.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${Fa(.05,e.appBorderColor)} 0 0 0 2px inset`,color:Fa(1,e.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:e.boolean.selectedBackground,boxShadow:e.base==="light"?`${Fa(.1,e.appBorderColor)} 0 0 2px`:`${e.appBorderColor} 0 0 0 1px`,color:e.color.defaultText,padding:"7px 15px","@media (forced-colors: active)":{textDecoration:"underline"}}})),sH=e=>e==="true",uH=({name:e,value:t,onChange:r,onBlur:n,onFocus:o,argType:a})=>{let i=h.useCallback(()=>r(!1),[r]),l=!!a?.table?.readonly;if(t===void 0)return g.createElement(Ce,{ariaLabel:!1,variant:"outline",size:"medium",id:Ni(e),onClick:i,disabled:l},"Set boolean");let s=Lt(e),u=typeof t=="string"?sH(t):t;return g.createElement(lH,{"aria-disabled":l,htmlFor:s,"aria-label":e},g.createElement("input",{id:s,type:"checkbox",onChange:c=>r(c.target.checked),checked:u,role:"switch",disabled:l,name:e,onBlur:n,onFocus:o}),g.createElement("span",{"aria-hidden":"true"},"False"),g.createElement("span",{"aria-hidden":"true"},"True"))},cH=e=>{let[t,r,n]=e.split("-"),o=new Date;return o.setFullYear(parseInt(t,10),parseInt(r,10)-1,parseInt(n,10)),o},dH=e=>{let[t,r]=e.split(":"),n=new Date;return n.setHours(parseInt(t,10)),n.setMinutes(parseInt(r,10)),n},fH=e=>{let t=new Date(e),r=`000${t.getFullYear()}`.slice(-4),n=`0${t.getMonth()+1}`.slice(-2),o=`0${t.getDate()}`.slice(-2);return`${r}-${n}-${o}`},pH=e=>{let t=new Date(e),r=`0${t.getHours()}`.slice(-2),n=`0${t.getMinutes()}`.slice(-2);return`${r}:${n}`},K0=R(un.Input)(({theme:e})=>({"&[readonly]":{background:e.base==="light"?e.color.lighter:"transparent"},"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:e.base==="light"?void 0:"invert(1)"}})),hH=R.fieldset({flex:1,display:"flex",border:0,marginInline:0,padding:0,gap:10,"div:first-of-type":{flex:4},"div:last-of-type":{flex:3}}),gH=({name:e,value:t,onChange:r,onFocus:n,onBlur:o,argType:a})=>{let[i,l]=h.useState(!0),s=h.useRef(),u=h.useRef(),c=!!a?.table?.readonly;h.useEffect(()=>{i!==!1&&(s&&s.current&&(s.current.value=t?fH(t):""),u&&u.current&&(u.current.value=t?pH(t):""))},[t]);let d=m=>{if(!m.target.value)return r();let y=cH(m.target.value),E=new Date(t??"");E.setFullYear(y.getFullYear(),y.getMonth(),y.getDate());let b=E.getTime();b&&r(b),l(!!b)},f=m=>{if(!m.target.value)return r();let y=dH(m.target.value),E=new Date(t??"");E.setHours(y.getHours()),E.setMinutes(y.getMinutes());let b=E.getTime();b&&r(b),l(!!b)},p=Lt(e);return g.createElement(hH,null,g.createElement("legend",{className:"sb-sr-only"},e),g.createElement("label",{htmlFor:`${p}-date`,className:"sb-sr-only"},"Date"),g.createElement(K0,{type:"date",max:"9999-12-31",ref:s,id:`${p}-date`,name:`${p}-date`,readOnly:c,onChange:d,onFocus:n,onBlur:o}),g.createElement("label",{htmlFor:`${p}-time`,className:"sb-sr-only"},"Time"),g.createElement(K0,{type:"time",id:`${p}-time`,name:`${p}-time`,ref:u,onChange:f,readOnly:c,onFocus:n,onBlur:o}),i?null:g.createElement("div",null,"invalid"))},mH=R.label({display:"flex"}),yH=e=>{let t=parseFloat(e);return Number.isNaN(t)?void 0:t},bH=R(un.Input)(({theme:e})=>({background:e.base==="light"?e.color.lighter:"transparent"})),EH=({name:e,value:t,onChange:r,min:n,max:o,step:a,onBlur:i,onFocus:l,argType:s})=>{let[u,c]=h.useState(typeof t=="number"?t:""),[d,f]=h.useState(!1),[p,m]=h.useState(null),y=!!s?.table?.readonly,E=h.useCallback(S=>{c(S.target.value);let x=parseFloat(S.target.value);if(Number.isNaN(x))m(new Error(`'${S.target.value}' is not a number`));else{let C=x;typeof n=="number"&&C<n&&(C=n),typeof o=="number"&&C>o&&(C=o),r(C),m(null),C!==x&&c(String(C))}},[r,m,n,o]),b=h.useCallback(()=>{c("0"),r(0),f(!0)},[f]),v=h.useRef(null);return h.useEffect(()=>{d&&v.current&&v.current.select()},[d]),h.useEffect(()=>{let S=typeof t=="number"?t:"";u!==S&&c(S)},[t]),t===void 0?g.createElement(Ce,{ariaLabel:!1,variant:"outline",size:"medium",id:Ni(e),onClick:b,disabled:y},"Set number"):g.createElement(mH,null,g.createElement(bH,{ref:v,id:Lt(e),type:"number",onChange:E,size:"flex",placeholder:"Edit number...",value:u,valid:p?"error":void 0,autoFocus:d,readOnly:y,name:e,min:n,max:o,step:a,onFocus:l,onBlur:i}))};const{logger:vH}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var i$=(e,t)=>{let r=t&&Object.entries(t).find(([n,o])=>o===e);return r?r[0]:void 0},Qc=(e,t)=>e&&t?Object.entries(t).filter(r=>e.includes(r[1])).map(r=>r[0]):[],l$=(e,t)=>e&&t&&e.map(r=>t[r]),SH=R.fieldset({border:"none",marginInline:0,padding:0,display:"flex",alignItems:"flex-start"},({$isInline:e})=>e?{flexWrap:"wrap",gap:15,label:{display:"inline-flex"}}:{flexDirection:"column",gap:8,label:{display:"flex"}}),xH=R.span(({$readOnly:e})=>({opacity:e?.5:1})),$H=R.label(({$readOnly:e})=>({lineHeight:"20px",alignItems:"center",cursor:e?"not-allowed":"pointer",input:{cursor:e?"not-allowed":"pointer",margin:0,marginRight:6}})),G0=({name:e,options:t,value:r,onChange:n,isInline:o,argType:a})=>{if(!t)return vH.warn(`Checkbox with no options: ${e}`),g.createElement(g.Fragment,null,"-");let i=Qc(r||[],t),[l,s]=h.useState(i),u=!!a?.table?.readonly,c=f=>{let p=f.target.value,m=[...l];m.includes(p)?m.splice(m.indexOf(p),1):m.push(p),n(l$(m,t)),s(m)};h.useEffect(()=>{s(Qc(r||[],t))},[r]);let d=Lt(e);return g.createElement(SH,{$isInline:o},g.createElement("legend",{className:"sb-sr-only"},e),Object.keys(t).map((f,p)=>{let m=`${d}-${p}`;return g.createElement($H,{key:m,htmlFor:m,$readOnly:u},g.createElement("input",{type:"checkbox",disabled:u,id:m,name:m,value:f,onChange:c,checked:l?.includes(f)}),g.createElement(xH,{$readOnly:u},f))}))};const{logger:wH}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var CH=R.fieldset({border:"none",marginInline:0,padding:0,display:"flex",alignItems:"flex-start"},({isInline:e})=>e?{flexWrap:"wrap",gap:15,label:{display:"inline-flex"}}:{flexDirection:"column",gap:8,label:{display:"flex"}}),_H=R.span(({$readOnly:e})=>({opacity:e?.5:1})),TH=R.label(({$readOnly:e})=>({lineHeight:"20px",alignItems:"center",cursor:e?"not-allowed":"pointer",input:{cursor:e?"not-allowed":"pointer",margin:0,marginRight:6}})),W0=({name:e,options:t,value:r,onChange:n,isInline:o,argType:a})=>{if(!t)return wH.warn(`Radio with no options: ${e}`),g.createElement(g.Fragment,null,"-");let i=i$(r,t),l=Lt(e),s=!!a?.table?.readonly;return g.createElement(CH,{isInline:o},g.createElement("legend",{className:"sb-sr-only"},e),Object.keys(t).map((u,c)=>{let d=`${l}-${c}`;return g.createElement(TH,{key:d,htmlFor:d,$readOnly:s},g.createElement("input",{type:"radio",id:d,name:l,disabled:s,value:u,onChange:f=>n(t[f.currentTarget.value]),checked:u===i}),g.createElement(_H,{$readOnly:s},u))}))};const{logger:AH}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var OH={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},s$=R.select(OH,({theme:e})=>({boxSizing:"border-box",position:"relative",padding:"6px 10px",width:"100%",color:e.input.color||"inherit",background:e.input.background,borderRadius:e.input.borderRadius,boxShadow:`${e.input.border} 0 0 0 1px inset`,fontSize:e.typography.size.s2-1,lineHeight:"20px","&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"::placeholder":{color:e.textMutedColor},"&[multiple]":{overflow:"auto",padding:0,option:{display:"block",padding:"6px 10px",marginLeft:1,marginRight:1,"&:hover":{background:e.background.hoverable},"&:checked":{background:"transparent",color:e.color.secondary,fontWeight:e.typography.weight.bold}}}})),u$=R.span(({theme:e})=>({display:"inline-block",lineHeight:"normal",overflow:"hidden",position:"relative",verticalAlign:"top",width:"100%",svg:{position:"absolute",zIndex:1,pointerEvents:"none",height:"12px",marginTop:"-6px",right:"12px",top:"50%",fill:e.textMutedColor,path:{fill:e.textMutedColor}}})),Iu="Choose option...",RH=({name:e,value:t,options:r,onChange:n,argType:o})=>{let a=u=>{n(r[u.currentTarget.value])},i=i$(t,r)||Iu,l=Lt(e),s=!!o?.table?.readonly;return g.createElement(u$,null,g.createElement(e1,null),g.createElement("label",{htmlFor:l,className:"sb-sr-only"},e),g.createElement(s$,{disabled:s,id:l,value:i,onChange:a},g.createElement("option",{disabled:i===Iu,key:"no-selection"},Iu),Object.keys(r).map(u=>g.createElement("option",{key:u,value:u},u))))},DH=({name:e,value:t,options:r,onChange:n,argType:o})=>{let a=u=>{let c=Array.from(u.currentTarget.options).filter(d=>d.selected).map(d=>d.value);n(l$(c,r))},i=Qc(t,r),l=Lt(e),s=!!o?.table?.readonly;return g.createElement(u$,null,g.createElement("label",{htmlFor:l,className:"sb-sr-only"},e),g.createElement(s$,{disabled:s,id:l,multiple:!0,value:i,onChange:a},Object.keys(r).map(u=>g.createElement("option",{key:u,value:u},u))))},V0=e=>{let{name:t,options:r}=e;return r?e.isMulti?g.createElement(DH,{...e}):g.createElement(RH,{...e}):(AH.warn(`Select with no options: ${t}`),g.createElement(g.Fragment,null,"-"))},PH=(e,t)=>Array.isArray(e)?e.reduce((r,n)=>(r[t?.[n]||String(n)]=n,r),{}):e,FH={check:G0,"inline-check":G0,radio:W0,"inline-radio":W0,select:V0,"multi-select":V0},hn=e=>{let{type:t="select",labels:r,argType:n}=e,o={...e,argType:n,options:n?PH(n.options,r):{},isInline:t.includes("inline"),isMulti:t.includes("multi")},a=FH[t];if(a)return g.createElement(a,{...o});throw new Error(`Unknown options type: ${t}`)},IH=R.div(({theme:e})=>({position:"relative",":hover":{"& > .rejt-accordion-button::after":{background:e.color.secondary},"& > .rejt-accordion-region > :is(.rejt-plus-menu, .rejt-minus-menu)":{opacity:1}}})),LH=R.button(({theme:e})=>({padding:0,background:"transparent",border:"none",marginRight:"3px",lineHeight:"22px",color:e.color.secondary,"::after":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",height:"22px",background:"transparent",borderRadius:4,transition:"background 0.2s",opacity:.1,paddingRight:"20px"},"::before":{content:'""',position:"absolute"},'&[aria-expanded="true"]::before':{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},'&[aria-expanded="false"]::before':{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"}})),kH=R.div({display:"inline"});function c$({children:e,name:t,collapsed:r,keyPath:n,deep:o,...a}){let i=`${n.at(-1)??"root"}-${t}-${o}`,l={trigger:`${i}-trigger`,region:`${i}-region`},s=n.length>0?"li":"div";return g.createElement(IH,{as:s},g.createElement(LH,{type:"button","aria-expanded":!r,id:l.trigger,"aria-controls":l.region,className:"rejt-accordion-button",...a},t," :"),g.createElement(kH,{role:"region",id:l.region,"aria-labelledby":l.trigger,className:"rejt-accordion-region"},e))}var NH="Error",MH="Object",BH="Array",jH="String",HH="Number",UH="Boolean",zH="Date",KH="Null",GH="Undefined",WH="Function",VH="Symbol",d$="ADD_DELTA_TYPE",f$="REMOVE_DELTA_TYPE",p$="UPDATE_DELTA_TYPE",Hf="value";function Wr(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e[Symbol.iterator]=="function"?"Iterable":Object.prototype.toString.call(e).slice(8,-1)}function h$(e,t){let r=Wr(e),n=Wr(t);return(r==="Function"||n==="Function")&&n!==r}var Uf=class extends h.Component{constructor(e){super(e),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){let{inputRefKey:e,inputRefValue:t}=this.state,{onlyValue:r}=this.props;e&&typeof e.focus=="function"&&e.focus(),r&&t&&typeof t.focus=="function"&&t.focus()}onKeydown(e){if(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat)return;let{inputRefKey:t,inputRefValue:r}=this.state,{addButtonElement:n,handleCancel:o}=this.props;[t,r,n].some(a=>a===e.target)&&((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.onSubmit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),o()))}onSubmit(){let{handleAdd:e,onlyValue:t,onSubmitValueParser:r,keyPath:n,deep:o}=this.props,{inputRefKey:a,inputRefValue:i}=this.state,l={};if(!t){if(!a.value)return;l.key=a.value}l.newValue=r(!1,n,o,l.key,i.value),e(l)}refInputKey(e){this.state.inputRefKey=e}refInputValue(e){this.state.inputRefValue=e}render(){let{handleCancel:e,onlyValue:t,addButtonElement:r,cancelButtonElement:n,inputElementGenerator:o,keyPath:a,deep:i}=this.props,l=r&&h.cloneElement(r,{onClick:this.onSubmit}),s=n&&h.cloneElement(n,{onClick:e}),u=o(Hf,a,i),c=h.cloneElement(u,{placeholder:"Value",ref:this.refInputValue,onKeyDown:this.onKeydown}),d=null;if(!t){let f=o("key",a,i);d=h.cloneElement(f,{placeholder:"Key",ref:this.refInputKey,onKeyDown:this.onKeydown})}return g.createElement("span",{className:"rejt-add-value-node"},d,c,l,s)}};Uf.defaultProps={onlyValue:!1,addButtonElement:g.createElement("button",null,"+"),cancelButtonElement:g.createElement("button",null,"c")};var g$=class extends h.Component{constructor(e){super(e);let t=[...e.keyPath||[],e.name];this.state={data:e.data,name:e.name,keyPath:t??[],deep:e.deep??0,nextDeep:(e.deep??0)+1,collapsed:e.isCollapsed(t,e.deep??0,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n=[]}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:o}=this.props,a=n.length;o(n[a-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleRemoveItem(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:o,nextDeep:a}=this.state,i=n[e];(t||Promise.resolve.bind(Promise))(e,o,a,i).then(()=>{let l={keyPath:o,deep:a,key:e,oldValue:i,type:f$};n.splice(e,1),this.setState({data:n});let{onUpdate:s,onDeltaUpdate:u}=this.props;s(o[o.length-1],n),u(l)}).catch(r.error)}}handleAddValueAdd({newValue:e}){let{data:t,keyPath:r=[],nextDeep:n}=this.state,{beforeAddAction:o,logger:a}=this.props,i=t.length;(o||Promise.resolve.bind(Promise))(i,r,n,e).then(()=>{t[i]=e,this.setState({data:t}),this.handleAddValueCancel();let{onUpdate:l,onDeltaUpdate:s}=this.props;l(r[r.length-1],t),s({type:d$,keyPath:r,deep:n,key:i,newValue:e})}).catch(a.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:o}=this.props,{data:a,keyPath:i,nextDeep:l}=this.state,s=a[e];(o||Promise.resolve.bind(Promise))(e,i,l,s,t).then(()=>{a[e]=t,this.setState({data:a});let{onUpdate:u,onDeltaUpdate:c}=this.props;u(i[i.length-1],a),c({type:p$,keyPath:i,deep:l,key:e,newValue:t,oldValue:s}),r(void 0)}).catch(n)})}renderCollapsed(){let{name:e,data:t,keyPath:r,deep:n}=this.state,{handleRemove:o,readOnly:a,getStyle:i,dataType:l,minusMenuElement:s}=this.props,{minus:u,collapsed:c}=i(e,t,r,n,l),d=a(e,t,r,n,l),f=s&&h.cloneElement(s,{onClick:o,className:"rejt-minus-menu",style:u,"aria-label":`remove the array '${String(e)}'`});return g.createElement(g.Fragment,null,g.createElement("span",{style:c},"[...] ",t.length," ",t.length===1?"item":"items"),!d&&f)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,addFormVisible:o,nextDeep:a}=this.state,{isCollapsed:i,handleRemove:l,onDeltaUpdate:s,readOnly:u,getStyle:c,dataType:d,addButtonElement:f,cancelButtonElement:p,inputElementGenerator:m,textareaElementGenerator:y,minusMenuElement:E,plusMenuElement:b,beforeRemoveAction:v,beforeAddAction:S,beforeUpdateAction:x,logger:C,onSubmitValueParser:$}=this.props,{minus:w,plus:T,delimiter:O,ul:D,addForm:_}=c(e,t,r,n,d),I=u(e,t,r,n,d),L=b&&h.cloneElement(b,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:T,"aria-label":`add a new item to the '${String(e)}' array`}),A=E&&h.cloneElement(E,{onClick:l,className:"rejt-minus-menu",style:w,"aria-label":`remove the array '${String(e)}'`});return g.createElement(g.Fragment,null,g.createElement("span",{className:"rejt-not-collapsed-delimiter",style:O},"["),!o&&L,g.createElement("ul",{className:"rejt-not-collapsed-list",style:D},t.map((P,k)=>g.createElement(wl,{key:k,name:k.toString(),data:P,keyPath:r,deep:a,isCollapsed:i,handleRemove:this.handleRemoveItem(k),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:s,readOnly:u,getStyle:c,addButtonElement:f,cancelButtonElement:p,inputElementGenerator:m,textareaElementGenerator:y,minusMenuElement:E,plusMenuElement:b,beforeRemoveAction:v,beforeAddAction:S,beforeUpdateAction:x,logger:C,onSubmitValueParser:$}))),!I&&o&&g.createElement("div",{className:"rejt-add-form",style:_},g.createElement(Uf,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement:f,cancelButtonElement:p,inputElementGenerator:m,keyPath:r,deep:n,onSubmitValueParser:$})),g.createElement("span",{className:"rejt-not-collapsed-delimiter",style:O},"]"),!I&&A)}render(){let{name:e,collapsed:t,keyPath:r,deep:n}=this.state,o=t?this.renderCollapsed():this.renderNotCollapsed();return g.createElement(c$,{name:e,collapsed:t,deep:n,keyPath:r,onClick:this.handleCollapseMode},o)}};g$.defaultProps={keyPath:[],deep:0,minusMenuElement:g.createElement("span",null," - "),plusMenuElement:g.createElement("span",null," + ")};var m$=class extends h.Component{constructor(e){super(e);let t=[...e.keyPath||[],e.name];this.state={value:e.value,name:e.name,keyPath:t??[],deep:e.deep??0,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:o,deep:a}=this.state,{readOnly:i,dataType:l}=this.props,s=i(r,n,o,a,l);e&&!s&&typeof t.focus=="function"&&t.focus()}onKeydown(e){let{inputRef:t}=this.state;e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||t!==e.target||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:o}=this.props,{inputRef:a,name:i,deep:l}=this.state;if(!a)return;let s=n(!0,o,l,i,a.value),u={value:s,key:i};(e||Promise.resolve.bind(Promise))(u).then(()=>{h$(t,s)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:o}=this.state,{handleRemove:a,originalValue:i,readOnly:l,dataType:s,getStyle:u,textareaElementGenerator:c,minusMenuElement:d,keyPath:f=[]}=this.props,p=u(e,i,n,o,s),m=null,y=null,E=l(e,i,n,o,s);if(r&&!E){let b=c(Hf,f,o,e,i,s),v=h.cloneElement(b,{ref:this.refInput,defaultValue:t,onKeyDown:this.onKeydown});m=g.createElement("span",{className:"rejt-edit-form",style:p.editForm},v),y=null}else{m=g.createElement("span",{className:"rejt-value",style:p.value,onClick:E?void 0:this.handleEditMode},t);let b=f.at(-1),v=d&&h.cloneElement(d,{onClick:a,className:"rejt-minus-menu",style:p.minus,"aria-label":`remove the function '${String(e)}'${String(b)?` from '${String(b)}'`:""}`});y=E?null:v}return g.createElement("li",{className:"rejt-value-node",style:p.li},g.createElement("span",{className:"rejt-name",style:p.name},e," :"," "),m,y)}};m$.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},cancelButtonElement:g.createElement("button",null,"c"),minusMenuElement:g.createElement("span",null," - ")};var wl=class extends h.Component{constructor(e){super(e),this.state={data:e.data,name:e.name,keyPath:e.keyPath??[],deep:e.deep??0}}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}render(){let{data:e,name:t,keyPath:r,deep:n}=this.state,{isCollapsed:o,handleRemove:a,handleUpdateValue:i,onUpdate:l,onDeltaUpdate:s,readOnly:u,getStyle:c,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:p,textareaElementGenerator:m,minusMenuElement:y,plusMenuElement:E,beforeRemoveAction:b,beforeAddAction:v,beforeUpdateAction:S,logger:x,onSubmitValueParser:C}=this.props,$=()=>!0,w=Wr(e);switch(w){case NH:return g.createElement(ed,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:a,onUpdate:l,onDeltaUpdate:s,readOnly:$,dataType:w,getStyle:c,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:p,textareaElementGenerator:m,minusMenuElement:y,plusMenuElement:E,beforeRemoveAction:b,beforeAddAction:v,beforeUpdateAction:S,logger:x,onSubmitValueParser:C});case MH:return g.createElement(ed,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:a,onUpdate:l,onDeltaUpdate:s,readOnly:u,dataType:w,getStyle:c,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:p,textareaElementGenerator:m,minusMenuElement:y,plusMenuElement:E,beforeRemoveAction:b,beforeAddAction:v,beforeUpdateAction:S,logger:x,onSubmitValueParser:C});case BH:return g.createElement(g$,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:a,onUpdate:l,onDeltaUpdate:s,readOnly:u,dataType:w,getStyle:c,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:p,textareaElementGenerator:m,minusMenuElement:y,plusMenuElement:E,beforeRemoveAction:b,beforeAddAction:v,beforeUpdateAction:S,logger:x,onSubmitValueParser:C});case jH:return g.createElement(yr,{name:t,value:`"${e}"`,originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:w,getStyle:c,cancelButtonElement:f,inputElementGenerator:p,minusMenuElement:y,logger:x,onSubmitValueParser:C});case HH:return g.createElement(yr,{name:t,value:e,originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:w,getStyle:c,cancelButtonElement:f,inputElementGenerator:p,minusMenuElement:y,logger:x,onSubmitValueParser:C});case UH:return g.createElement(yr,{name:t,value:e?"true":"false",originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:w,getStyle:c,cancelButtonElement:f,inputElementGenerator:p,minusMenuElement:y,logger:x,onSubmitValueParser:C});case zH:return g.createElement(yr,{name:t,value:e.toISOString(),originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:$,dataType:w,getStyle:c,cancelButtonElement:f,inputElementGenerator:p,minusMenuElement:y,logger:x,onSubmitValueParser:C});case KH:return g.createElement(yr,{name:t,value:"null",originalValue:"null",keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:w,getStyle:c,cancelButtonElement:f,inputElementGenerator:p,minusMenuElement:y,logger:x,onSubmitValueParser:C});case GH:return g.createElement(yr,{name:t,value:"undefined",originalValue:"undefined",keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:w,getStyle:c,cancelButtonElement:f,inputElementGenerator:p,minusMenuElement:y,logger:x,onSubmitValueParser:C});case WH:return g.createElement(m$,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:w,getStyle:c,cancelButtonElement:f,textareaElementGenerator:m,minusMenuElement:y,logger:x,onSubmitValueParser:C});case VH:return g.createElement(yr,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:$,dataType:w,getStyle:c,cancelButtonElement:f,inputElementGenerator:p,minusMenuElement:y,logger:x,onSubmitValueParser:C});default:return null}}};wl.defaultProps={keyPath:[],deep:0};var ed=class extends h.Component{constructor(e){super(e);let t=e.deep===-1?[]:[...e.keyPath||[],e.name];this.state={name:e.name,data:e.data,keyPath:t??[],deep:e.deep??0,nextDeep:(e.deep??0)+1,collapsed:e.isCollapsed(t,e.deep??0,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n=[]}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:o}=this.props,a=n.length;o(n[a-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:e,newValue:t}){let{data:r,keyPath:n=[],nextDeep:o}=this.state,{beforeAddAction:a,logger:i}=this.props;(a||Promise.resolve.bind(Promise))(e,n,o,t).then(()=>{r[e]=t,this.setState({data:r}),this.handleAddValueCancel();let{onUpdate:l,onDeltaUpdate:s}=this.props;l(n[n.length-1],r),s({type:d$,keyPath:n,deep:o,key:e,newValue:t})}).catch(i.error)}handleRemoveValue(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:o=[],nextDeep:a}=this.state,i=n[e];(t||Promise.resolve.bind(Promise))(e,o,a,i).then(()=>{let l={keyPath:o,deep:a,key:e,oldValue:i,type:f$};delete n[e],this.setState({data:n});let{onUpdate:s,onDeltaUpdate:u}=this.props;s(o[o.length-1],n),u(l)}).catch(r.error)}}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:o}=this.props,{data:a,keyPath:i=[],nextDeep:l}=this.state,s=a[e];(o||Promise.resolve.bind(Promise))(e,i,l,s,t).then(()=>{a[e]=t,this.setState({data:a});let{onUpdate:u,onDeltaUpdate:c}=this.props;u(i[i.length-1],a),c({type:p$,keyPath:i,deep:l,key:e,newValue:t,oldValue:s}),r()}).catch(n)})}renderCollapsed(){let{name:e,keyPath:t,deep:r,data:n}=this.state,{handleRemove:o,readOnly:a,dataType:i,getStyle:l,minusMenuElement:s}=this.props,{minus:u,collapsed:c}=l(e,n,t,r,i),d=Object.getOwnPropertyNames(n),f=a(e,n,t,r,i),p=s&&h.cloneElement(s,{onClick:o,className:"rejt-minus-menu",style:u,"aria-label":`remove the object '${String(e)}'`});return g.createElement(g.Fragment,null,g.createElement("span",{style:c},"{...}"," ",d.length," ",d.length===1?"key":"keys"),!f&&p)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,nextDeep:o,addFormVisible:a}=this.state,{isCollapsed:i,handleRemove:l,onDeltaUpdate:s,readOnly:u,getStyle:c,dataType:d,addButtonElement:f,cancelButtonElement:p,inputElementGenerator:m,textareaElementGenerator:y,minusMenuElement:E,plusMenuElement:b,beforeRemoveAction:v,beforeAddAction:S,beforeUpdateAction:x,logger:C,onSubmitValueParser:$}=this.props,{minus:w,plus:T,addForm:O,ul:D,delimiter:_}=c(e,t,r,n,d),I=Object.getOwnPropertyNames(t),L=u(e,t,r,n,d),A=b&&h.cloneElement(b,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:T,"aria-label":`add a new property to the object '${String(e)}'`}),P=E&&h.cloneElement(E,{onClick:l,className:"rejt-minus-menu",style:w,"aria-label":`remove the object '${String(e)}'`}),k=I.map(F=>g.createElement(wl,{key:F,name:F,data:t[F],keyPath:r,deep:o,isCollapsed:i,handleRemove:this.handleRemoveValue(F),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:s,readOnly:u,getStyle:c,addButtonElement:f,cancelButtonElement:p,inputElementGenerator:m,textareaElementGenerator:y,minusMenuElement:E,plusMenuElement:b,beforeRemoveAction:v,beforeAddAction:S,beforeUpdateAction:x,logger:C,onSubmitValueParser:$}));return g.createElement(g.Fragment,null,g.createElement("span",{className:"rejt-not-collapsed-delimiter",style:_},"{"),!L&&A,g.createElement("ul",{className:"rejt-not-collapsed-list",style:D},k),!L&&a&&g.createElement("div",{className:"rejt-add-form",style:O},g.createElement(Uf,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:f,cancelButtonElement:p,inputElementGenerator:m,keyPath:r,deep:n,onSubmitValueParser:$})),g.createElement("span",{className:"rejt-not-collapsed-delimiter",style:_},"}"),!L&&P)}render(){let{name:e,collapsed:t,keyPath:r,deep:n=0}=this.state,o=t?this.renderCollapsed():this.renderNotCollapsed();return g.createElement(c$,{name:e,collapsed:t,deep:n,keyPath:r,onClick:this.handleCollapseMode},o)}};ed.defaultProps={keyPath:[],deep:0,minusMenuElement:g.createElement("span",null," - "),plusMenuElement:g.createElement("span",null," + ")};var yr=class extends h.Component{constructor(e){super(e);let t=[...e.keyPath||[],e.name];this.state={value:e.value,name:e.name,keyPath:t??[],deep:e.deep??0,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:o,deep:a}=this.state,{readOnly:i,dataType:l}=this.props,s=i(r,n,o,a,l);e&&!s&&typeof t.focus=="function"&&t.focus()}onKeydown(e){let{inputRef:t}=this.state;e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||t!==e.target||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:o}=this.props,{inputRef:a,name:i,deep:l}=this.state;if(!a)return;let s=n(!0,o,l,i,a.value),u={value:s,key:i};(e||Promise.resolve.bind(Promise))(u).then(()=>{h$(t,s)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:o}=this.state,{handleRemove:a,originalValue:i,readOnly:l,dataType:s,getStyle:u,inputElementGenerator:c,minusMenuElement:d,keyPath:f}=this.props,p=u(e,i,n,o,s),m=l(e,i,n,o,s),y=r&&!m,E=c(Hf,f,o,e,i,s),b=h.cloneElement(E,{ref:this.refInput,defaultValue:JSON.stringify(i),onKeyDown:this.onKeydown}),v=n.at(-2),S=d&&h.cloneElement(d,{onClick:a,className:"rejt-minus-menu",style:p.minus,"aria-label":`remove the property '${String(e)}' with value '${String(i)}'${String(v)?` from '${String(v)}'`:""}`});return g.createElement("li",{className:"rejt-value-node",style:p.li},g.createElement("span",{className:"rejt-name",style:p.name},e," : "),y?g.createElement("span",{className:"rejt-edit-form",style:p.editForm},b):g.createElement("span",{className:"rejt-value",style:p.value,onClick:m?void 0:this.handleEditMode},String(t)),!m&&!y&&S)}};yr.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),cancelButtonElement:g.createElement("button",null,"c"),minusMenuElement:g.createElement("span",null," - ")};function qH(e){let t=e;if(t.indexOf("function")===0)return(0,eval)(`(${t})`);try{t=JSON.parse(e)}catch{}return t}var YH={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},XH={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},JH={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}},y$=class extends h.Component{constructor(e){super(e),this.state={data:e.data,rootName:e.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data||e.rootName!==t.rootName?{data:e.data,rootName:e.rootName}:null}onUpdate(e,t){this.setState({data:t}),this.props.onFullyUpdate?.(t)}removeRoot(){this.onUpdate(null,null)}render(){let{data:e,rootName:t}=this.state,{isCollapsed:r,onDeltaUpdate:n,readOnly:o,getStyle:a,addButtonElement:i,cancelButtonElement:l,inputElement:s,textareaElement:u,minusMenuElement:c,plusMenuElement:d,beforeRemoveAction:f,beforeAddAction:p,beforeUpdateAction:m,logger:y,onSubmitValueParser:E,fallback:b=null}=this.props,v=Wr(e),S=o;Wr(o)==="Boolean"&&(S=()=>o);let x=s;s&&Wr(s)!=="Function"&&(x=()=>s);let C=u;return u&&Wr(u)!=="Function"&&(C=()=>u),v==="Object"||v==="Array"?g.createElement("div",{className:"rejt-tree"},g.createElement(wl,{data:e,name:t||"root",deep:-1,isCollapsed:r??(()=>!1),onUpdate:this.onUpdate,onDeltaUpdate:n??(()=>{}),readOnly:S,getStyle:a??(()=>({})),addButtonElement:i,cancelButtonElement:l,inputElementGenerator:x,textareaElementGenerator:C,minusMenuElement:c,plusMenuElement:d,handleRemove:this.removeRoot,beforeRemoveAction:f,beforeAddAction:p,beforeUpdateAction:m,logger:y??{},onSubmitValueParser:E??($=>$)})):b}};y$.defaultProps={rootName:"root",isCollapsed:(e,t)=>t!==-1,getStyle:(e,t,r,n,o)=>{switch(o){case"Object":case"Error":return YH;case"Array":return XH;default:return JH}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(e,t,r,n,o)=>qH(o),inputElement:()=>g.createElement("input",null),textareaElement:()=>g.createElement("textarea",null),fallback:null};var{window:ZH}=globalThis,QH=R.div(({theme:e})=>({position:"relative",display:"flex",isolation:"isolate",".rejt-tree":{marginLeft:"1rem",fontSize:"13px",listStyleType:"none"},".rejt-value-node:hover":{"& > button":{opacity:1}},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{lineHeight:"22px"},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:e.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:e.base==="light"?e.color.lighter:"hsl(0 0 100 / 0.02)",borderColor:e.appBorderColor}})),q0=R.button(({theme:e,primary:t})=>({border:0,height:20,margin:1,borderRadius:4,background:t?e.color.secondary:"transparent",color:t?e.color.lightest:e.color.dark,fontWeight:t?"bold":"normal",cursor:"pointer"})),Y0=R.button(({theme:e})=>({background:"none",border:0,display:"inline-flex",verticalAlign:"middle",padding:3,marginLeft:5,color:e.textMutedColor,opacity:0,transition:"opacity 0.2s",cursor:"pointer",position:"relative",svg:{width:9,height:9},":disabled":{cursor:"not-allowed"},":hover, :focus-visible":{opacity:1},"&:hover:not(:disabled), &:focus-visible:not(:disabled)":{"&.rejt-plus-menu":{color:e.color.ancillary},"&.rejt-minus-menu":{color:e.color.negative}}})),X0=R.input(({theme:e,placeholder:t})=>({outline:0,margin:t?1:"1px 0",padding:"3px 4px",color:e.color.defaultText,background:e.background.app,border:`1px solid ${e.appBorderColor}`,borderRadius:4,lineHeight:"14px",width:t==="Key"?80:120,"&:focus":{border:`1px solid ${e.color.secondary}`}})),eU=R(gl)({position:"absolute",zIndex:2,top:2,right:2}),tU=R(un.Textarea)(({theme:e})=>({flex:1,padding:"7px 6px",fontFamily:e.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:e.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}})),rU={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},nU=e=>{e.currentTarget.dispatchEvent(new ZH.KeyboardEvent("keydown",rU))},oU=e=>{e.currentTarget.select()},aU=e=>()=>({name:{color:e.color.secondary},collapsed:{color:e.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}),J0=({name:e,value:t,onChange:r,argType:n})=>{let o=Ki(),a=h.useMemo(()=>t&&ej(t),[t]),i=a!=null,[l,s]=h.useState(!i),[u,c]=h.useState(null),d=!!n?.table?.readonly,f=h.useCallback(x=>{try{x&&r(JSON.parse(x)),c(null)}catch(C){c(C)}},[r]),[p,m]=h.useState(!1),y=h.useCallback(()=>{r({}),m(!0)},[m]),E=h.useRef(null);h.useEffect(()=>{p&&E.current&&E.current.select()},[p]);let b=h.useMemo(()=>JSON.stringify(a??"",null,2),[a]);if(!i)return g.createElement(Ce,{ariaLabel:!1,disabled:d,id:Ni(e),onClick:y},"Set object");let v=g.createElement(tU,{ref:E,id:Lt(e),minRows:3,name:e,key:b,defaultValue:b,onBlur:x=>f(x.target.value),placeholder:"Edit JSON string...",autoFocus:p,valid:u?"error":void 0,readOnly:d}),S=Array.isArray(t)||typeof t=="object"&&t?.constructor===Object;return g.createElement(QH,null,S&&g.createElement(eU,{disabled:d,pressed:l,ariaLabel:`Edit the ${e} properties in JSON format`,onClick:x=>{x.preventDefault(),s(C=>!C)}},"Edit JSON"),l?v:g.createElement(y$,{readOnly:d||!S,isCollapsed:S?void 0:()=>!0,data:a,rootName:e,onFullyUpdate:r,getStyle:aU(o),cancelButtonElement:g.createElement(q0,{type:"button"},"Cancel"),addButtonElement:g.createElement(q0,{type:"submit",primary:!0},"Save"),plusMenuElement:g.createElement(Y0,{type:"button"},g.createElement(n5,null)),minusMenuElement:g.createElement(Y0,{type:"button"},g.createElement(o5,null)),inputElement:(x,C,$,w)=>w?g.createElement(X0,{onFocus:oU,onBlur:nU}):g.createElement(X0,null),fallback:v}))},iU=R.input(({theme:e,min:t,max:r,value:n,disabled:o})=>{let a={background:e.base==="light"?`linear-gradient(to right,
734
+ ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
735
+ ${_o(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
736
+ ${_o(.02,e.input.background)} 100%)`:`linear-gradient(to right,
737
+ ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
738
+ ${Zc(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
739
+ ${Zc(.02,e.input.background)} 100%)`,borderRadius:6,boxShadow:`${e.base=="dark"?"hsl(0 0 100 / 0.4)":"hsl(0 0 0 / 0.44)"} 0 0 0 1px inset`,cursor:o?"not-allowed":"pointer",height:6,width:"100%"},i={borderColor:Hn(e.color.secondary,.4)},l={width:16,height:16,borderRadius:50,cursor:o?"not-allowed":"grab",background:e.input.background,border:`1px solid ${e.base=="dark"?"hsl(0 0 100 / 0.4)":"hsl(0 0 0 / 0.44)"}`,boxShadow:e.base==="light"?`0 1px 3px 0px ${Hn(e.appBorderColor,.2)}`:"unset",transition:"all 150ms ease-out"},s={background:`${_o(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},u={background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)"},c={borderColor:e.color.secondary,boxShadow:e.base==="light"?`0 0px 5px 0px ${e.color.secondary}`:"unset"};return{appearance:"none",backgroundColor:"transparent",width:"100%","&::-webkit-slider-runnable-track":a,"&::-moz-range-track":a,"&::-ms-track":{...a,color:"transparent"},"&::-moz-range-thumb":{...l,"&:hover":s,"&:active":u},"&::-webkit-slider-thumb":{...l,marginTop:"-6px",appearance:"none","&:hover":s,"&:active":u},"&::-ms-thumb":{...l,marginTop:0,"&:hover":s,"&:active":u},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":i,"&::-moz-range-track":i,"&::-ms-track":i,"&::-webkit-slider-thumb":c,"&::-moz-range-thumb":c,"&::-ms-thumb":c},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}}}),b$=R.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums"}),lU=R(b$)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),sU=R.div(({readOnly:e})=>({display:"flex",alignItems:"center",width:"100%",opacity:e?.5:1}));function uU(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var cU=({name:e,value:t,onChange:r,min:n=0,max:o=100,step:a=1,onBlur:i,onFocus:l,argType:s})=>{let u=m=>{r(yH(m.target.value))},c=t!==void 0,d=h.useMemo(()=>uU(a),[a]),f=!!s?.table?.readonly,p=Lt(e);return g.createElement(sU,{readOnly:f},g.createElement("label",{htmlFor:p,className:"sb-sr-only"},e),g.createElement(b$,null,n),g.createElement(iU,{id:p,type:"range",disabled:f,onChange:u,name:e,min:n,max:o,step:a,onFocus:l,onBlur:i,value:t??n}),g.createElement(lU,{numberOFDecimalsPlaces:d,max:o},c?t.toFixed(d):"--"," / ",o))},dU=R.label({display:"flex"}),fU=R.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),pU=({name:e,value:t,onChange:r,onFocus:n,onBlur:o,maxLength:a,argType:i})=>{let l=p=>{r(p.target.value)},s=!!i?.table?.readonly,[u,c]=h.useState(!1),d=h.useCallback(()=>{r(""),c(!0)},[c]);if(t===void 0)return g.createElement(Ce,{ariaLabel:!1,variant:"outline",size:"medium",disabled:s,id:Ni(e),onClick:d},"Set string");let f=typeof t=="string";return g.createElement(dU,null,g.createElement(un.Textarea,{id:Lt(e),maxLength:a,onChange:l,disabled:s,size:"flex",placeholder:"Edit string...",autoFocus:u,valid:f?void 0:"error",name:e,value:f?t:"",onFocus:n,onBlur:o}),a&&g.createElement(fU,{isMaxed:t?.length===a},t?.length??0," / ",a))},hU=R(un.Input)({padding:10});function gU(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var mU=({onChange:e,name:t,accept:r="image/*",value:n,argType:o})=>{let a=h.useRef(null),i=o?.control?.readOnly;function l(u){if(!u.target.files)return;let c=Array.from(u.target.files).map(d=>URL.createObjectURL(d));e(c),gU(n||[])}h.useEffect(()=>{n==null&&a.current&&(a.current.value="")},[n,t]);let s=Lt(t);return g.createElement(g.Fragment,null,g.createElement("label",{htmlFor:s,className:"sb-sr-only"},t),g.createElement(hU,{ref:a,id:s,type:"file",name:t,multiple:!0,disabled:i,onChange:l,accept:r,size:"flex"}))},yU=h.lazy(()=>$r(()=>import("./Color-6BZIO3FS-dpk_P4Yi.js"),__vite__mapDeps([8,1,2,3,4,5]),import.meta.url)),bU=e=>g.createElement(h.Suspense,{fallback:g.createElement("div",null)},g.createElement(yU,{...e})),EU={array:J0,object:J0,boolean:uH,color:bU,date:gH,number:EH,check:hn,"inline-check":hn,radio:hn,"inline-radio":hn,select:hn,"multi-select":hn,range:cU,text:pU,file:mU},Z0=()=>g.createElement(g.Fragment,null,"-"),vU=({row:e,arg:t,updateArgs:r,isHovered:n})=>{let{key:o,control:a}=e,[i,l]=h.useState(!1),[s,u]=h.useState({value:t});h.useEffect(()=>{i||u({value:t})},[i,t]);let c=h.useCallback(y=>(u({value:y}),r({[o]:y}),y),[r,o]),d=h.useCallback(()=>l(!1),[]),f=h.useCallback(()=>l(!0),[]);if(!a||a.disable){let y=a?.disable!==!0&&e?.type?.name!=="function";return n&&y?g.createElement(Ln,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},"Setup controls"):g.createElement(Z0,null)}let p={name:o,argType:e,value:s.value,onChange:c,onBlur:d,onFocus:f},m=EU[a.type]||Z0;return g.createElement(m,{...p,...a,controlType:a.type})},SU=R.table(({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:cr({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),xU=({tags:e})=>{let t=(e.params||[]).filter(a=>a.description),r=t.length!==0,n=e.deprecated!=null,o=e.returns!=null&&e.returns.description!=null;return!r&&!o&&!n?null:g.createElement(g.Fragment,null,g.createElement(SU,null,g.createElement("tbody",null,n&&g.createElement("tr",{key:"deprecated"},g.createElement("td",{colSpan:2},g.createElement("strong",null,"Deprecated"),": ",e.deprecated?.toString())),r&&t.map(a=>g.createElement("tr",{key:a.name},g.createElement("td",null,g.createElement("code",null,a.name)),g.createElement("td",null,a.description))),o&&g.createElement("tr",{key:"returns"},g.createElement("td",null,g.createElement("code",null,"Returns")),g.createElement("td",null,e.returns?.description)))))};function $U(e){return[...new Set(e)]}var Ri=8,Q0=R.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),wU=R.details({display:"flex",flexDirection:"column",summary:{order:2},"summary::-webkit-details-marker":{display:"none"},"summary::marker":{content:"none"}}),CU=R.div({display:"flex",flexDirection:"column",flexWrap:"wrap",alignItems:"flex-start"}),_U=R.span(cr,({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}})),TU=R.summary(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,cursor:"pointer",lineHeight:"normal",margin:"0 0 4px",padding:"1px 6px",background:"none",border:"none"})),AU=R.button(cr,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center",cursor:"pointer","&:hover":{border:e.base==="light"?"1px solid hsl(0 0 0 / 0.15)":"1px solid hsl(0 0 100 / 0.15)"},"&:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:"2px"}})),OU=R.div(({theme:e})=>({minWidth:200,maxWidth:800,paddingRight:16,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),RU=R(c5)({marginLeft:4}),DU=R(e1)({marginLeft:4}),PU=()=>g.createElement("span",null,"-"),zf=({text:e,simple:t})=>g.createElement(_U,{simple:t},e),FU=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return $U(t)},ey=e=>e.slice(0,Ri).map(t=>g.createElement(zf,{key:t,text:t===""?'""':t})),IU=e=>e.slice(Ri).map(t=>g.createElement(zf,{key:t,text:t===""?'""':t})),LU=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[o,a]=h.useState(!1),[i,l]=h.useState(t||!1);if(r==null)return null;let s=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(s))return g.createElement(zf,{text:s});let u=FU(s),c=u.length;return c>Ri?g.createElement(Q0,{isExpanded:i},ey(u),g.createElement(wU,{open:i,onToggle:d=>l(d.currentTarget.open)},g.createElement(CU,null,IU(u)),g.createElement(TU,{role:"button"},i?"Show less...":`Show ${c-Ri} more...`))):g.createElement(Q0,null,ey(u))}return g.createElement(Lf,{placement:"bottom",visible:o,onVisibleChange:u=>{a(u)},hasCloseButton:!0,popover:g.createElement(OU,null,g.createElement(ea,{language:"jsx",format:!1},n))},g.createElement(AU,{className:"sbdocs-expandable"},g.createElement("span",null,s),o?g.createElement(RU,null):g.createElement(DU,null)))},Lu=({value:e,initialExpandedArgs:t})=>e==null?g.createElement(PU,null):g.createElement(LU,{value:e,initialExpandedArgs:t}),kU=R.span({fontWeight:"bold"}),NU=R.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),MU=R.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...cr({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),BU=R.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?Ae(.1,e.color.defaultText):Ae(.2,e.color.defaultText),marginTop:t?4:0})),jU=R.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?Ae(.1,e.color.defaultText):Ae(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),HU=R.td(({expandable:e})=>({paddingLeft:e?"40px !important":"20px !important"})),UU=e=>e&&{summary:typeof e=="string"?e:e.name},ka=e=>{let[t,r]=h.useState(!1),{row:n,updateArgs:o,compact:a,expandable:i,initialExpandedArgs:l}=e,{name:s,description:u}=n,c=n.table||{},d=c.type||UU(n.type),f=c.defaultValue||n.defaultValue,p=n.type?.required,m=u!=null&&u!=="";return g.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},g.createElement(HU,{expandable:i??!1},g.createElement(kU,null,s),p?g.createElement(NU,{title:"Required"},"*"):null),a?null:g.createElement("td",null,m&&g.createElement(MU,null,g.createElement(a$,null,u)),c.jsDocTags!=null?g.createElement(g.Fragment,null,g.createElement(jU,{hasDescription:m},g.createElement(Lu,{value:d,initialExpandedArgs:l})),g.createElement(xU,{tags:c.jsDocTags})):g.createElement(BU,{hasDescription:m},g.createElement(Lu,{value:d,initialExpandedArgs:l}))),a?null:g.createElement("td",null,g.createElement(Lu,{value:f,initialExpandedArgs:l})),o?g.createElement("td",null,g.createElement(vU,{...e,isHovered:t})):null)},zU=R.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content})),KU=R.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),GU=({inAddonPanel:e})=>{let[t,r]=h.useState(!0);return h.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:g.createElement(zU,{inAddonPanel:e},g.createElement(ua,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:g.createElement(g.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:g.createElement(KU,null,e&&g.createElement(g.Fragment,null,g.createElement(Ln,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},g.createElement(sc,null)," Read docs")),!e&&g.createElement(Ln,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},g.createElement(sc,null)," Learn how to set that up"))}))},WU=R(u5)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?Ae(.25,e.color.defaultText):Ae(.3,e.color.defaultText),border:"none",display:"inline-block"})),VU=R(Qb)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?Ae(.25,e.color.defaultText):Ae(.3,e.color.defaultText),border:"none",display:"inline-block"})),qU=R.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),YU=R.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?Ae(.4,e.color.defaultText):Ae(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),XU=R.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),JU=R.td({position:"relative"}),ZU=R.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${Zc(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),ty=R.button({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"}),ku=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:o=3})=>{let[a,i]=h.useState(n),l=e==="subsection"?XU:YU,s=r?.length||0,u=e==="subsection"?`${s} item${s!==1?"s":""}`:"",c=`${a?"Hide":"Show"} ${e==="subsection"?s:t} item${s!==1?"s":""}`;return g.createElement(g.Fragment,null,g.createElement(ZU,{title:c},g.createElement(l,{colSpan:1},g.createElement(ty,{onClick:d=>i(!a),tabIndex:0},c),g.createElement(qU,null,a?g.createElement(WU,null):g.createElement(VU,null),t)),g.createElement(JU,{colSpan:o-1},g.createElement(ty,{onClick:d=>i(!a),tabIndex:-1,style:{outline:"none"}},c),a?null:u)),a?r:null)},QU=R.div(({theme:e})=>({width:"100%",borderSpacing:0,color:e.color.defaultText})),Na=R.div(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),ze=R.div(({position:e,theme:t})=>{let r={display:"flex",flexDirection:"column",gap:5,padding:"10px 15px",alignItems:"flex-start"};switch(e){case"first":return{...r,width:"25%",paddingLeft:20};case"second":return{...r,width:"35%"};case"third":return{...r,width:"15%"};case"last":return{...r,width:"25%",paddingRight:20}}}),Re=R.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),ez=()=>g.createElement(QU,null,g.createElement(Na,null,g.createElement(ze,{position:"first"},g.createElement(Re,{width:"60%"})),g.createElement(ze,{position:"second"},g.createElement(Re,{width:"30%"})),g.createElement(ze,{position:"third"},g.createElement(Re,{width:"60%"})),g.createElement(ze,{position:"last"},g.createElement(Re,{width:"60%"}))),g.createElement(Na,null,g.createElement(ze,{position:"first"},g.createElement(Re,{width:"60%"})),g.createElement(ze,{position:"second"},g.createElement(Re,{width:"80%"}),g.createElement(Re,{width:"30%"})),g.createElement(ze,{position:"third"},g.createElement(Re,{width:"60%"})),g.createElement(ze,{position:"last"},g.createElement(Re,{width:"60%"}))),g.createElement(Na,null,g.createElement(ze,{position:"first"},g.createElement(Re,{width:"60%"})),g.createElement(ze,{position:"second"},g.createElement(Re,{width:"80%"}),g.createElement(Re,{width:"30%"})),g.createElement(ze,{position:"third"},g.createElement(Re,{width:"60%"})),g.createElement(ze,{position:"last"},g.createElement(Re,{width:"60%"}))),g.createElement(Na,null,g.createElement(ze,{position:"first"},g.createElement(Re,{width:"60%"})),g.createElement(ze,{position:"second"},g.createElement(Re,{width:"80%"}),g.createElement(Re,{width:"30%"})),g.createElement(ze,{position:"third"},g.createElement(Re,{width:"60%"})),g.createElement(ze,{position:"last"},g.createElement(Re,{width:"60%"})))),tz=R.table(({theme:e,compact:t,inAddonPanel:r,inTabPanel:n})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"19px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.textMutedColor,paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginInline:r||n?0:1,paddingInline:n?3:0,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),rz=R.div({position:"relative"}),nz=R.div({position:"absolute",right:22,top:10}),oz=R(Ce)({margin:"-4px -12px -4px 0"}),az={alpha:(e,t)=>(e.name??"").localeCompare(t.name??""),requiredFirst:(e,t)=>+!!t.type?.required-+!!e.type?.required||(e.name??"").localeCompare(t.name??""),none:null},iz=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([a,i])=>{let{category:l,subcategory:s}=i?.table||{};if(l){let u=r.sections[l]||{ungrouped:[],subsections:{}};if(!s)u.ungrouped.push({key:a,...i});else{let c=u.subsections[s]||[];c.push({key:a,...i}),u.subsections[s]=c}r.sections[l]=u}else if(s){let u=r.ungroupedSubsections[s]||[];u.push({key:a,...i}),r.ungroupedSubsections[s]=u}else r.ungrouped.push({key:a,...i})});let n=az[t],o=a=>n?Object.keys(a).reduce((i,l)=>({...i,[l]:a[l].sort(n)}),{}):a;return{ungrouped:n?r.ungrouped.sort(n):r.ungrouped,ungroupedSubsections:o(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((a,i)=>({...a,[i]:{ungrouped:n?r.sections[i].ungrouped.sort(n):r.sections[i].ungrouped,subsections:o(r.sections[i].subsections)}}),{})}},lz=(e,t,r)=>{try{return JT(e,t,r)}catch(n){return _B.warn(n.message),!1}},td=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:o,inTabPanel:a,initialExpandedArgs:i,sort:l="none",isLoading:s}=e;if("error"in e){let{error:S}=e;return g.createElement(Yx,null,S," ",g.createElement(Ln,{href:"http://storybook.js.org/docs/?ref=ui",target:"_blank",withArrow:!0},g.createElement(sc,null)," Read the docs"))}if(s)return g.createElement(ez,null);let{rows:u,args:c,globals:d}="rows"in e?e:{rows:void 0,args:void 0,globals:void 0},f=iz(tj(u||{},S=>!S?.table?.disable&&lz(S,c||{},d||{})),l),p=f.ungrouped.length===0,m=Object.entries(f.sections).length===0,y=Object.entries(f.ungroupedSubsections).length===0;if(p&&m&&y)return g.createElement(GU,{inAddonPanel:o});let E=1;t&&(E+=1),n||(E+=2);let b=Object.keys(f.sections).length>0,v={updateArgs:t,compact:n,inAddonPanel:o,initialExpandedArgs:i};return g.createElement(nf,null,g.createElement(rz,null,t&&!s&&r&&g.createElement(nz,null,g.createElement(oz,{variant:"ghost",padding:"small",onClick:()=>r(),ariaLabel:"Reset controls"},g.createElement(p5,null))),g.createElement(tz,{compact:n,inAddonPanel:o,inTabPanel:a,className:"docblock-argstable sb-unstyled"},g.createElement("thead",{className:"docblock-argstable-head"},g.createElement("tr",null,g.createElement("th",null,g.createElement("span",null,"Name")),n?null:g.createElement("th",null,g.createElement("span",null,"Description")),n?null:g.createElement("th",null,g.createElement("span",null,"Default")),t?g.createElement("th",null,g.createElement("span",null,"Control")):null)),g.createElement("tbody",{className:"docblock-argstable-body"},f.ungrouped.map(S=>g.createElement(ka,{key:S.key,row:S,arg:c&&c[S.key],...v})),Object.entries(f.ungroupedSubsections).map(([S,x])=>g.createElement(ku,{key:S,label:S,level:"subsection",colSpan:E},x.map(C=>g.createElement(ka,{key:C.key,row:C,arg:c&&c[C.key],expandable:b,...v})))),Object.entries(f.sections).map(([S,x])=>g.createElement(ku,{key:S,label:S,level:"section",colSpan:E},x.ungrouped.map(C=>g.createElement(ka,{key:C.key,row:C,arg:c&&c[C.key],...v})),Object.entries(x.subsections).map(([C,$])=>g.createElement(ku,{key:C,label:C,level:"subsection",colSpan:E},$.map(w=>g.createElement(ka,{key:w.key,row:w,arg:c&&c[w.key],expandable:b,...v}))))))))))},De=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,Kf=600,sz=R.h1(Se,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${Kf}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),uz=R.h2(Se,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${Kf}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:Ae(.25,e.color.defaultText)})),cz=R.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},n={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?Ae(.1,e.color.defaultText):Ae(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",minWidth:0,[De("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[De("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[De("div")]:t,[De("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[De("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[De("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[De("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[De("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[De("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[De("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[De("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[De("img")]:{maxWidth:"100%"},[De("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[De("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[De("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[De("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[De("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[De("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[De("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),dz=R.div(({theme:e})=>({background:e.background.content,display:"flex",flexDirection:"row-reverse",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${Kf}px)`]:{}})),fz=({children:e,toc:t})=>g.createElement(dz,{className:"sbdocs sbdocs-wrapper"},t,g.createElement(cz,{className:"sbdocs sbdocs-content"},e));globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=h.createContext(null),globalThis.__DOCS_CONTEXT__.displayName="DocsContext");var Ct=globalThis?globalThis.__DOCS_CONTEXT__:h.createContext(null);function pz(e,t){let r=hz([e],t);return r&&r[0]}function hz(e,t){let[r,n]=h.useState({});return h.useEffect(()=>{Promise.all(e.map(async o=>{let a=await t.loadStory(o);n(i=>i[o]===a?i:{...i,[o]:a})}))}),e.map(o=>{if(r[o])return r[o];try{return t.storyById(o)}catch{return}})}var E$=(e,t)=>{let{of:r,meta:n}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return n&&t.referenceMeta(n,!1),t.resolveOf(r||"story",["story"]).story.id},gz=(e,t,r)=>{let{parameters:n={}}=t||{},{docs:o={}}=n,a=o.story||{};if(o.disable)return null;if(e.inline??a.inline??!1){let l=e.height??a.height,s=e.autoplay??a.autoplay??!1;return{story:t,inline:!0,height:l,autoplay:s,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let i=e.height??a.height??a.iframeHeight??"100px";return{story:t,inline:!1,height:i,primary:!!e.__primary}},mz=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=h.useContext(Ct),r=E$(e,t),n=pz(r,t);if(!n)return g.createElement(x$,null);let o=gz(e,n,t);return o?g.createElement(xz,{...o}):null},Cl=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),v$=(e,t={})=>{let r=globalThis.PREVIEW_URL||"iframe.html",[n,o]=r.split("?"),a=new URLSearchParams(o||"");return Object.entries(t).forEach(([i,l])=>{a.set(i,l)}),a.set("id",e),`${n}?${a.toString()}`},{window:yz}=globalThis,bz=class extends h.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=yz.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:r,allowFullScreen:n,scale:o,...a}=this.props;return g.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...a})}},S$=h.createContext({scale:1}),rd=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,Ez=e=>{let t=h.useRef(),[r,n]=h.useState(!0),[o,a]=h.useState(),{story:i,height:l,autoplay:s,forceInitialArgs:u,renderStoryToElement:c}=e;return h.useEffect(()=>{if(!(i&&t.current))return()=>{};let d=t.current,f=c(i,d,{showMain:()=>{},showError:({title:p,description:m})=>a(new Error(`${p} - ${m}`)),showException:p=>a(p)},{autoplay:s,forceInitialArgs:u});return n(!1),()=>{Promise.resolve().then(()=>f())}},[s,c,i]),o?g.createElement("pre",null,g.createElement(FS,{error:o})):g.createElement(g.Fragment,null,l?g.createElement("style",null,`#${rd(e)} { min-height: ${l}; transform: translateZ(0); overflow: auto }`):null,r&&g.createElement(x$,null),g.createElement("div",{ref:t,id:`${rd(e)}-inner`,"data-name":i.name}))},vz=({story:e,height:t="500px"})=>g.createElement("div",{style:{width:"100%",height:t}},g.createElement(S$.Consumer,null,({scale:r})=>g.createElement(bz,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:v$(e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),Sz=R.strong(({theme:e})=>({color:e.color.orange})),xz=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?g.createElement(Sz,null,"This story mounts inside of play. Set"," ",g.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story?ref=ui#autoplay"},"autoplay")," ","to true to view this story."):g.createElement("div",{id:rd(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?g.createElement(Ez,{...e}):g.createElement(vz,{...e}))},x$=()=>g.createElement(Ux,null),$z=R(Dx)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear",display:"flex",alignItems:"center"}),Nu=R.div({display:"flex",alignItems:"center",gap:4}),ry=R.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),wz=({isLoading:e,storyId:t,zoom:r,resetZoom:n,...o})=>g.createElement($z,{innerStyle:{gap:4,paddingInline:7,justifyContent:"space-between"},...o},g.createElement(Nu,{key:"left"},e?[1,2,3].map(a=>g.createElement(ry,{key:a})):g.createElement(g.Fragment,null,g.createElement(Ce,{padding:"small",variant:"ghost",key:"zoomin",onClick:a=>{a.preventDefault(),r(.8)},ariaLabel:"Zoom in"},g.createElement(QD,null)),g.createElement(Ce,{padding:"small",variant:"ghost",key:"zoomout",onClick:a=>{a.preventDefault(),r(1.25)},ariaLabel:"Zoom out"},g.createElement(e5,null)),g.createElement(Ce,{padding:"small",variant:"ghost",key:"zoomreset",onClick:a=>{a.preventDefault(),n()},ariaLabel:"Reset zoom"},g.createElement(t5,null)))),e?g.createElement(Nu,{key:"right"},g.createElement(ry,null)):t&&g.createElement(Nu,{key:"right"},g.createElement(Ce,{asChild:!0,padding:"small",variant:"ghost",key:"opener",ariaLabel:"Open canvas in new tab"},g.createElement("a",{href:v$(t),target:"_blank",rel:"noopener noreferrer"},g.createElement(s5,null))))),Cz=R.div(({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:e="padded",inline:t})=>e==="centered"||e==="padded"?{padding:t?"32px 22px":"0px","& .innerZoomElementWrapper > *":{width:"auto",border:"8px solid transparent!important"}}:{},({layout:e="padded",inline:t})=>e==="centered"&&t?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),ny=R(Xx)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:e.base==="light"?"rgba(0, 0, 0, 0.85)":_o(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":_o(.05,e.background.content)}})),_z=R.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...Cl(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),Tz=(e,t,r)=>{switch(!0){case!!(e&&e.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>r(!1)}};case t:return{source:g.createElement(ny,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:g.createElement(ny,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function Az(e){if(h.Children.count(e)===1){let t=e;if(t.props)return t.props}return null}var Oz=R(wz)({position:"absolute",top:0,left:0,right:0,height:40}),Rz=R.div({overflow:"hidden",position:"relative"}),$$=({isLoading:e,isColumn:t,columns:r,children:n,withSource:o,withToolbar:a=!1,isExpanded:i=!1,additionalActions:l,className:s,layout:u="padded",inline:c=!1,...d})=>{let[f,p]=h.useState(i),{source:m,actionItem:y}=Tz(o,f,p),[E,b]=h.useState(1),v=[s].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),S=o?[y]:[],[x,C]=h.useState(l?[...l]:[]),$=[...S,...x],{window:w}=globalThis,T=h.useContext(Ct),O=h.useCallback(async I=>{let{createCopyToClipboardFunction:L}=await $r(async()=>{const{createCopyToClipboardFunction:A}=await Promise.resolve().then(()=>IM);return{createCopyToClipboardFunction:A}},void 0,import.meta.url);L()},[]),D=I=>{let L=w.getSelection();L&&L.type==="Range"||(I.preventDefault(),x.filter(A=>A.title==="Copied").length===0&&O(m?.props.code??"").then(()=>{C([...x,{title:"Copied",onClick:()=>{}}]),w.setTimeout(()=>C(x.filter(A=>A.title!=="Copied")),1500)}))},_=Az(n);return g.createElement(_z,{withSource:o,withToolbar:a,...d,className:v.join(" ")},a&&g.createElement(Oz,{isLoading:e,border:!0,zoom:I=>b(E*I),resetZoom:()=>b(1),storyId:!e&&_?E$(_,T):void 0}),g.createElement(S$.Provider,{value:{scale:E}},g.createElement(Rz,{className:"docs-story",onCopyCapture:o&&D},g.createElement(Cz,{isColumn:t||!Array.isArray(n),columns:r,layout:u,inline:c},g.createElement(PS.Element,{centered:u==="centered",scale:c?E:1},Array.isArray(n)?n.map((I,L)=>g.createElement("div",{key:L},I)):g.createElement("div",null,n))),g.createElement(kb,{actionItems:$}))),o&&f&&m)};R($$)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var Dz=R(jx)({height:"fit-content"}),Pz=({tabs:e,...t})=>{let r=Object.entries(e);if(r.length===1)return g.createElement(td,{...r[0][1],...t});let n=r.map(([o,a],i)=>({id:`prop_table_div_${o}`,title:o,children:()=>{let l=i===0?t:{sort:t.sort};return g.createElement(td,{inTabPanel:!0,key:`prop_table_${o}`,...a,...l})}}));return g.createElement(Dz,{tabs:n})};R.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?Ae(.4,e.color.defaultText):Ae(.6,e.color.defaultText)}));R.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});R.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});R.div(Se,({theme:e})=>({...Cl(e),margin:"25px 0 40px",padding:"30px 20px"}));R.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));R.div(({theme:e})=>({color:Ae(.3,e.color.defaultText)}));R.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});R.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:Ae(.3,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));R.div({display:"flex",flexDirection:"row"});R.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));R.div(({theme:e})=>({...Cl(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));R.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});R.div({flex:1,display:"flex",flexDirection:"row"});R.div({display:"flex",alignItems:"flex-start"});R.div({flex:"0 0 30%"});R.div({flex:1});R.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:Ae(.3,e.color.defaultText)}));R.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));R.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s1,color:e.color.defaultText,marginLeft:10,lineHeight:1.2,display:"-webkit-box",overflow:"hidden",wordBreak:"break-word",textOverflow:"ellipsis",WebkitLineClamp:2,WebkitBoxOrient:"vertical"}));R.div(({theme:e})=>({...Cl(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));R.div({display:"inline-flex",flexDirection:"row",alignItems:"center",width:"100%"});R.div({display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(140px, 1fr))",gridGap:"8px 16px",gridAutoFlow:"row dense",gridAutoRows:50});const{NAVIGATE_URL:Fz}=__STORYBOOK_MODULE_CORE_EVENTS__;function Iz(e){let t=[].forEach,r=[].some,n=typeof window<"u"&&document.body,o=" ",a,i=!0,l=0;function s(D,_){let I=_.appendChild(c(D));if(D.children.length){let L=d(D.isCollapsed);D.children.forEach(A=>{s(A,L)}),I.appendChild(L)}}function u(D,_){let I=d(!1);if(_.forEach(L=>{s(L,I)}),a=D||a,a!==null)return a.firstChild&&a.removeChild(a.firstChild),_.length===0?a:a.appendChild(I)}function c(D){let _=document.createElement("li"),I=document.createElement("a");return e.listItemClass&&_.setAttribute("class",e.listItemClass),e.onClick&&(I.onclick=e.onClick),e.includeTitleTags&&I.setAttribute("title",D.textContent),e.includeHtml&&D.childNodes.length?t.call(D.childNodes,L=>{I.appendChild(L.cloneNode(!0))}):I.textContent=D.textContent,I.setAttribute("href",`${e.basePath}#${D.id}`),I.setAttribute("class",`${e.linkClass+o}node-name--${D.nodeName}${o}${e.extraLinkClasses}`),_.appendChild(I),_}function d(D){let _=e.orderedList?"ol":"ul",I=document.createElement(_),L=e.listClass+o+e.extraListClasses;return D&&(L=L+o+e.collapsibleClass,L=L+o+e.isCollapsedClass),I.setAttribute("class",L),I}function f(){let D=w(),_=document.querySelector(e.positionFixedSelector);e.fixedSidebarOffset==="auto"&&(e.fixedSidebarOffset=a.offsetTop),D>e.fixedSidebarOffset?_.className.indexOf(e.positionFixedClass)===-1&&(_.className+=o+e.positionFixedClass):_.className=_.className.replace(o+e.positionFixedClass,"")}function p(D){let _=0;return D!==null&&(_=D.offsetTop,e.hasInnerContainers&&(_+=p(D.offsetParent))),_}function m(D,_){return D&&D.className!==_&&(D.className=_),D}function y(D,_){e.positionFixedSelector&&f();let I=D,L=_?.target?.getAttribute?_?.target?.getAttribute("href"):null,A=L&&L.charAt(0)==="#"?x(L.replace("#","")):!1,P=i||A;if(_&&l<5&&l++,P&&a&&I.length>0){let k=T(I),F=a.querySelector(`.${e.activeLinkClass}`),M=k.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1"),B=window.location.hash.replace("#",""),N=M,z=C();L&&A?N=L.replace("#",""):B&&B!==M&&z&&(x(M)||l<=2)&&(N=B);let U=a.querySelector(`.${e.linkClass}[href="${e.basePath}#${N}"]`);if(F===U)return;let j=a.querySelectorAll(`.${e.linkClass}`);t.call(j,X=>{m(X,X.className.replace(o+e.activeLinkClass,""))});let K=a.querySelectorAll(`.${e.listItemClass}`);t.call(K,X=>{m(X,X.className.replace(o+e.activeListItemClass,""))}),U&&U.className.indexOf(e.activeLinkClass)===-1&&(U.className+=o+e.activeLinkClass);let H=U?.parentNode;H&&H.className.indexOf(e.activeListItemClass)===-1&&(H.className+=o+e.activeListItemClass);let W=a.querySelectorAll(`.${e.listClass}.${e.collapsibleClass}`);t.call(W,X=>{X.className.indexOf(e.isCollapsedClass)===-1&&(X.className+=o+e.isCollapsedClass)}),U?.nextSibling&&U.nextSibling.className.indexOf(e.isCollapsedClass)!==-1&&m(U.nextSibling,U.nextSibling.className.replace(o+e.isCollapsedClass,"")),E(U?.parentNode.parentNode)}}function E(D){return D&&D.className.indexOf(e.collapsibleClass)!==-1&&D.className.indexOf(e.isCollapsedClass)!==-1?(m(D,D.className.replace(o+e.isCollapsedClass,"")),E(D.parentNode.parentNode)):D}function b(D){let _=D.target||D.srcElement;typeof _.className!="string"||_.className.indexOf(e.linkClass)===-1||(i=!1)}function v(){i=!0}function S(){return i}function x(D){let _=$();return(document?.getElementById(D)).offsetTop>_.offsetHeight-_.clientHeight*1.4-e.bottomModeThreshold}function C(){let D=$(),_=D.scrollHeight>D.clientHeight,I=w()+D.clientHeight>D.offsetHeight-e.bottomModeThreshold;return _&&I}function $(){let D;return e.scrollContainer&&document.querySelector(e.scrollContainer)?D=document.querySelector(e.scrollContainer):D=document.documentElement||n,D}function w(){return $()?.scrollTop||0}function T(D,_=w()){let I;return r.call(D,(L,A)=>{if(p(L)>_+e.headingsOffset+10){let P=A===0?A:A-1;return I=D[P],!0}if(A===D.length-1)return I=D[D.length-1],!0}),I}function O(D){let _=w(),I=T(D,_),L=C();if((!I||_<5)&&!L)window.location.hash==="#"||window.location.hash===""||window.history.pushState(null,null,"#");else if(I&&!L){let A=`#${I.id}`;window.location.hash!==A&&window.history.pushState(null,null,A)}}return{enableTocAnimation:v,disableTocAnimation:b,render:u,updateToc:y,getCurrentlyHighlighting:S,getTopHeader:T,getScrollTop:w,updateUrlHashForHeader:O}}var Lz={tocSelector:".js-toc",tocElement:null,contentSelector:".js-toc-content",contentElement:null,headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(e){},headingsOffset:1,enableUrlHashUpdateOnScroll:!1,scrollHandlerType:"auto",scrollHandlerTimeout:50,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(e){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollingWrapper:null,tocScrollOffset:30,bottomModeThreshold:30};function kz(e){let t=[].reduce;function r(u){return u[u.length-1]}function n(u){return+u.nodeName.toUpperCase().replace("H","")}function o(u){try{return u instanceof window.HTMLElement||u instanceof window.parent.HTMLElement}catch{return u instanceof window.HTMLElement}}function a(u){if(!o(u))return u;if(e.ignoreHiddenElements&&(!u.offsetHeight||!u.offsetParent))return null;let c=u.getAttribute("data-heading-label")||(e.headingLabelCallback?String(e.headingLabelCallback(u.innerText)):(u.innerText||u.textContent).trim()),d={id:u.id,children:[],nodeName:u.nodeName,headingLevel:n(u),textContent:c};return e.includeHtml&&(d.childNodes=u.childNodes),e.headingObjectCallback?e.headingObjectCallback(d,u):d}function i(u,c){let d=a(u),f=d.headingLevel,p=c,m=r(p),y=m?m.headingLevel:0,E=f-y;for(;E>0&&(m=r(p),!(m&&f===m.headingLevel));)m&&m.children!==void 0&&(p=m.children),E--;return f>=e.collapseDepth&&(d.isCollapsed=!0),p.push(d),p}function l(u,c){let d=c;e.ignoreSelector&&(d=c.split(",").map(function(f){return`${f.trim()}:not(${e.ignoreSelector})`}));try{return u.querySelectorAll(d)}catch{return console.warn(`Headers not found with selector: ${d}`),null}}function s(u){return t.call(u,function(c,d){let f=a(d);return f&&i(f,c.nest),c},{nest:[]})}return{nestHeadingsArray:s,selectHeadings:l}}function Nz(e){var t=e.duration,r=e.offset;if(typeof window>"u"||typeof location>"u")return;var n=location.hash?i(location.href):location.href;o();function o(){document.body.addEventListener("click",s,!1);function s(u){!a(u.target)||u.target.className.indexOf("no-smooth-scroll")>-1||u.target.href.charAt(u.target.href.length-2)==="#"&&u.target.href.charAt(u.target.href.length-1)==="!"||u.target.className.indexOf(e.linkClass)===-1||Mz(u.target.hash,{duration:t,offset:r,callback:function(){l(u.target.hash)}})}}function a(s){return s.tagName.toLowerCase()==="a"&&(s.hash.length>0||s.href.charAt(s.href.length-1)==="#")&&(i(s.href)===n||i(s.href)+"#"===n)}function i(s){return s.slice(0,s.lastIndexOf("#"))}function l(s){var u=document.getElementById(s.substring(1));u&&(/^(?:a|select|input|button|textarea)$/i.test(u.tagName)||(u.tabIndex=-1),u.focus())}}function Mz(e,t){var r=window.pageYOffset,n={duration:t.duration,offset:t.offset||0,callback:t.callback,easing:t.easing||d},o=document.querySelector('[id="'+decodeURI(e).split("#").join("")+'"]')||document.querySelector('[id="'+e.split("#").join("")+'"]'),a=typeof e=="string"?n.offset+(e?o&&o.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):e,i=typeof n.duration=="function"?n.duration(a):n.duration,l,s;requestAnimationFrame(function(f){l=f,u(f)});function u(f){s=f-l,window.scrollTo(0,n.easing(s,r,a,i)),s<i?requestAnimationFrame(u):c()}function c(){window.scrollTo(0,r+a),typeof n.callback=="function"&&n.callback()}function d(f,p,m,y){return f/=y/2,f<1?m/2*f*f+p:(f--,-m/2*(f*(f-2)-1)+p)}}function Bz(e){let t=e.tocScrollingWrapper||e.tocElement||document.querySelector(e.tocSelector);if(t&&t.scrollHeight>t.clientHeight){let r=t.querySelector(`.${e.activeListItemClass}`);if(r){let n=r.offsetTop-e.tocScrollOffset;t.scrollTop=n>0?n:0}}}var ne={},At,Mu,Mr,Rt,Ao;function w$(e){let t=!1;ne=Uz(Lz,e||{}),ne.scrollSmooth&&(ne.duration=ne.scrollSmoothDuration,ne.offset=ne.scrollSmoothOffset,Nz(ne)),At=Iz(ne),Mu=kz(ne),Gf();let r=Kz(ne);if(r===null)return;let n=C$(ne);if(n===null||(Mr=Mu.selectHeadings(r,ne.headingSelector),Mr===null))return;let o=Mu.nestHeadingsArray(Mr).nest;if(!ne.skipRendering)At.render(n,o);else return this;let a=!1,i=ne.scrollHandlerTimeout||ne.throttleTimeout;Rt=((s,u)=>zz(s,u,ne.scrollHandlerType))(s=>{At.updateToc(Mr,s),!ne.disableTocScrollSync&&!a&&Bz(ne),ne.enableUrlHashUpdateOnScroll&&t&&At.getCurrentlyHighlighting()&&At.updateUrlHashForHeader(Mr);let u=s?.target?.scrollingElement?.scrollTop===0;(s&&(s.eventPhase===0||s.currentTarget===null)||u)&&(At.updateToc(Mr),ne.scrollEndCallback?.(s))},i),t||(Rt(),t=!0),window.onhashchange=window.onscrollend=s=>{Rt(s)},ne.scrollContainer&&document.querySelector(ne.scrollContainer)?(document.querySelector(ne.scrollContainer).addEventListener("scroll",Rt,!1),document.querySelector(ne.scrollContainer).addEventListener("resize",Rt,!1)):(document.addEventListener("scroll",Rt,!1),document.addEventListener("resize",Rt,!1));let l=null;Ao=nd(s=>{a=!0,ne.scrollSmooth&&At.disableTocAnimation(s),At.updateToc(Mr,s),l&&clearTimeout(l),l=setTimeout(()=>{At.enableTocAnimation()},ne.scrollSmoothDuration),setTimeout(()=>{a=!1},ne.scrollSmoothDuration+100)},ne.throttleTimeout),ne.scrollContainer&&document.querySelector(ne.scrollContainer)?document.querySelector(ne.scrollContainer).addEventListener("click",Ao,!1):document.addEventListener("click",Ao,!1)}function Gf(){let e=C$(ne);e!==null&&(ne.skipRendering||e&&(e.innerHTML=""),ne.scrollContainer&&document.querySelector(ne.scrollContainer)?(document.querySelector(ne.scrollContainer).removeEventListener("scroll",Rt,!1),document.querySelector(ne.scrollContainer).removeEventListener("resize",Rt,!1),At&&document.querySelector(ne.scrollContainer).removeEventListener("click",Ao,!1)):(document.removeEventListener("scroll",Rt,!1),document.removeEventListener("resize",Rt,!1),At&&document.removeEventListener("click",Ao,!1)))}function jz(e){Gf(),w$(e||ne)}var Hz=Object.prototype.hasOwnProperty;function Uz(...e){let t={};for(let r=0;r<e.length;r++){let n=e[r];for(let o in n)Hz.call(n,o)&&(t[o]=n[o])}return t}function nd(e,t,r){t||(t=250);let n,o;return function(...a){let i=this,l=+new Date;n&&l<n+t?(clearTimeout(o),o=setTimeout(()=>{n=l,e.apply(i,a)},t)):(n=l,e.apply(i,a))}}function oy(e,t){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>e.apply(this,n),t)}}function zz(e,t,r="auto"){switch(r){case"debounce":return oy(e,t);case"throttle":return nd(e,t);default:return t<334?oy(e,t):nd(e,t)}}function Kz(e){try{return e.contentElement||document.querySelector(e.contentSelector)}catch{return console.warn(`Contents element not found: ${e.contentSelector}`),null}}function C$(e){try{return e.tocElement||document.querySelector(e.tocSelector)}catch{return console.warn(`TOC element not found: ${e.tocSelector}`),null}}var Gz={destroy:Gf,init:w$,refresh:jz},ay=Gz,Wz=R.aside(()=>({width:"10rem","@media (max-width: 768px)":{display:"none"}})),Vz=R.nav(({theme:e})=>({position:"fixed",bottom:0,top:0,width:"10rem",paddingTop:"4rem",paddingBottom:"2rem",overflowY:"auto",fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch","& *":{boxSizing:"border-box"},"& > .toc-wrapper > .toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`}}},"& .toc-list-item":{position:"relative",listStyleType:"none",marginLeft:20,paddingTop:3,paddingBottom:3},"& .toc-list-item::before":{content:'""',position:"absolute",height:"100%",top:0,left:0,transform:"translateX(calc(-2px - 20px))",borderLeft:`solid 2px ${e.color.mediumdark}`,opacity:0,transition:"opacity 0.2s"},"& .toc-list-item.is-active-li::before":{opacity:1},"& .toc-list-item > a":{color:e.color.defaultText,textDecoration:"none"},"& .toc-list-item.is-active-li > a":{fontWeight:600,color:e.color.secondary,textDecoration:"none"}})),qz=R.p(({theme:e})=>({fontWeight:600,fontSize:"0.875em",color:e.color.defaultText,textTransform:"uppercase",marginBottom:10})),Yz=({headingId:e,title:t})=>typeof t=="string"||!t?g.createElement(qz,{as:"h2",id:e,className:t?"":"sb-sr-only"},t||"Table of contents"):g.createElement("div",{id:e},t),Xz=({title:e,disable:t,headingSelector:r,contentsSelector:n,ignoreSelector:o,unsafeTocbotOptions:a,channel:i,className:l})=>{h.useEffect(()=>{if(t)return()=>{};let u={tocSelector:".toc-wrapper",contentSelector:n??".sbdocs-content",headingSelector:r??"h3",ignoreSelector:o??".docs-story *, .skip-toc",headingsOffset:40,scrollSmoothOffset:-40,orderedList:!1,onClick:d=>{if(d.preventDefault(),d.currentTarget instanceof HTMLAnchorElement){let[,f]=d.currentTarget.href.split("#");f&&i.emit(Fz,`#${f}`)}},...a},c=setTimeout(()=>ay.init(u),100);return()=>{clearTimeout(c),ay.destroy()}},[i,t,o,n,r,a]);let s="table-of-contents";return g.createElement(Wz,{className:l},t?null:g.createElement(Vz,{"aria-labelledby":s},g.createElement(Yz,{headingId:s,title:e}),g.createElement("div",{className:"toc-wrapper"})))},Jz=e=>`anchor--${e}`,_$=({storyId:e,children:t})=>g.createElement("div",{id:Jz(e),className:"sb-anchor"},t);const{filterArgTypes:qV}=__STORYBOOK_MODULE_PREVIEW_API__;var eo=(e,t)=>h.useContext(Ct).resolveOf(e,t),Zz=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),Qz=e=>{if(e)return typeof e=="string"?e.includes("-")?Zz(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function eK(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}var tK=Object.create,T$=Object.defineProperty,rK=Object.getOwnPropertyDescriptor,A$=Object.getOwnPropertyNames,nK=Object.getPrototypeOf,oK=Object.prototype.hasOwnProperty,re=(e,t)=>function(){return t||(0,e[A$(e)[0]])((t={exports:{}}).exports,t),t.exports},aK=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of A$(t))!oK.call(e,o)&&o!==r&&T$(e,o,{get:()=>t[o],enumerable:!(n=rK(t,o))||n.enumerable});return e},Wf=(e,t,r)=>(r=e!=null?tK(nK(e)):{},aK(!e||!e.__esModule?T$(r,"default",{value:e,enumerable:!0}):r,e)),iK=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],lK=["detail"];function sK(e){let t=iK.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(let r of lK.filter(n=>e[n]!==void 0))t[r]=e[r];return t}var O$=re({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),uK=re({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),cK=re({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),dK=re({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),fK=re({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),pK=re({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),Vf=re({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),hK=re({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),gK=re({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),mK=re({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),yK=re({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),bK=re({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),EK=re({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),vK=re({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),SK=re({"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}}}),xK=re({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=SK();t.exports=function(n){return r(n)||n===0?n:n<0?-1:1}}}),$K=re({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),qf=re({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=$K();if(r)try{r([],"length")}catch{r=null}t.exports=r}}),wK=re({"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}}),R$=re({"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 a=42;r[n]=a;for(var i 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 l=Object.getOwnPropertySymbols(r);if(l.length!==1||l[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==a||s.enumerable!==!0)return!1}return!0}}}),D$=re({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=R$();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),P$=re({"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}}),F$=re({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=O$();t.exports=r.getPrototypeOf||null}}),CK=re({"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,a="[object Function]",i=function(u,c){for(var d=[],f=0;f<u.length;f+=1)d[f]=u[f];for(var p=0;p<c.length;p+=1)d[p+u.length]=c[p];return d},l=function(u,c){for(var d=[],f=c,p=0;f<u.length;f+=1,p+=1)d[p]=u[f];return d},s=function(u,c){for(var d="",f=0;f<u.length;f+=1)d+=u[f],f+1<u.length&&(d+=c);return d};t.exports=function(u){var c=this;if(typeof c!="function"||n.apply(c)!==a)throw new TypeError(r+c);for(var d=l(arguments,1),f,p=function(){if(this instanceof f){var v=c.apply(this,i(d,arguments));return Object(v)===v?v:this}return c.apply(u,i(d,arguments))},m=o(0,c.length-d.length),y=[],E=0;E<m;E++)y[E]="$"+E;if(f=Function("binder","return function ("+s(y,",")+"){ return binder.apply(this,arguments); }")(p),c.prototype){var b=function(){};b.prototype=c.prototype,f.prototype=new b,b.prototype=null}return f}}}),_l=re({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var r=CK();t.exports=Function.prototype.bind||r}}),Yf=re({"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}}),I$=re({"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}}),_K=re({"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}}),TK=re({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var r=_l(),n=I$(),o=Yf(),a=_K();t.exports=a||r.call(o,n)}}),L$=re({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var r=_l(),n=Vf(),o=Yf(),a=TK();t.exports=function(i){if(i.length<1||typeof i[0]!="function")throw new n("a function is required");return a(r,o,i)}}}),AK=re({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var r=L$(),n=qf(),o;try{o=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var a=!!o&&n&&n(Object.prototype,"__proto__"),i=Object,l=i.getPrototypeOf;t.exports=a&&typeof a.get=="function"?r([a.get]):typeof l=="function"?(function(s){return l(s==null?s:i(s))}):!1}}),OK=re({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var r=P$(),n=F$(),o=AK();t.exports=r?function(a){return r(a)}:n?function(a){if(!a||typeof a!="object"&&typeof a!="function")throw new TypeError("getProto: not an object");return n(a)}:o?function(a){return o(a)}:null}}),k$=re({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,o=_l();t.exports=o.call(r,n)}}),RK=re({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var r,n=O$(),o=uK(),a=cK(),i=dK(),l=fK(),s=pK(),u=Vf(),c=hK(),d=gK(),f=mK(),p=yK(),m=bK(),y=EK(),E=vK(),b=xK(),v=Function,S=function(J){try{return v('"use strict"; return ('+J+").constructor;")()}catch{}},x=qf(),C=wK(),$=function(){throw new u},w=x?(function(){try{return arguments.callee,$}catch{try{return x(arguments,"callee").get}catch{return $}}})():$,T=D$()(),O=OK(),D=F$(),_=P$(),I=I$(),L=Yf(),A={},P=typeof Uint8Array>"u"||!O?r:O(Uint8Array),k={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":T&&O?O([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%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%":a,"%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%":v,"%GeneratorFunction%":A,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":T&&O?O(O([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!T||!O?r:O(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":x,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":i,"%ReferenceError%":l,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!T||!O?r:O(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":T&&O?O(""[Symbol.iterator]()):r,"%Symbol%":T?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":w,"%TypedArray%":P,"%TypeError%":u,"%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%":c,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":L,"%Function.prototype.apply%":I,"%Object.defineProperty%":C,"%Object.getPrototypeOf%":D,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":y,"%Math.round%":E,"%Math.sign%":b,"%Reflect.getPrototypeOf%":_};if(O)try{null.error}catch(J){F=O(O(J)),k["%Error.prototype%"]=F}var F,M=function J(G){var V;if(G==="%AsyncFunction%")V=S("async function () {}");else if(G==="%GeneratorFunction%")V=S("function* () {}");else if(G==="%AsyncGeneratorFunction%")V=S("async function* () {}");else if(G==="%AsyncGenerator%"){var Q=J("%AsyncGeneratorFunction%");Q&&(V=Q.prototype)}else if(G==="%AsyncIteratorPrototype%"){var le=J("%AsyncGenerator%");le&&O&&(V=O(le.prototype))}return k[G]=V,V},B={__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"]},N=_l(),z=k$(),U=N.call(L,Array.prototype.concat),j=N.call(I,Array.prototype.splice),K=N.call(L,String.prototype.replace),H=N.call(L,String.prototype.slice),W=N.call(L,RegExp.prototype.exec),X=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,pe=/\\(\\)?/g,Ie=function(J){var G=H(J,0,1),V=H(J,-1);if(G==="%"&&V!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(V==="%"&&G!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var Q=[];return K(J,X,function(le,Ye,Y,Xe){Q[Q.length]=Y?K(Xe,pe,"$1"):Ye||le}),Q},et=function(J,G){var V=J,Q;if(z(B,V)&&(Q=B[V],V="%"+Q[0]+"%"),z(k,V)){var le=k[V];if(le===A&&(le=M(V)),typeof le>"u"&&!G)throw new u("intrinsic "+J+" exists, but is not available. Please file an issue!");return{alias:Q,name:V,value:le}}throw new s("intrinsic "+J+" does not exist!")};t.exports=function(J,G){if(typeof J!="string"||J.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof G!="boolean")throw new u('"allowMissing" argument must be a boolean');if(W(/^%?[^%]*%?$/,J)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var V=Ie(J),Q=V.length>0?V[0]:"",le=et("%"+Q+"%",G),Ye=le.name,Y=le.value,Xe=!1,_t=le.alias;_t&&(Q=_t[0],j(V,U([0,1],_t)));for(var st=1,Tt=!0;st<V.length;st+=1){var Oe=V[st],Jt=H(Oe,0,1),Zt=H(Oe,-1);if((Jt==='"'||Jt==="'"||Jt==="`"||Zt==='"'||Zt==="'"||Zt==="`")&&Jt!==Zt)throw new s("property names with quotes must have matching quotes");if((Oe==="constructor"||!Tt)&&(Xe=!0),Q+="."+Oe,Ye="%"+Q+"%",z(k,Ye))Y=k[Ye];else if(Y!=null){if(!(Oe in Y)){if(!G)throw new u("base intrinsic for "+J+" exists, but the property is not available.");return}if(x&&st+1>=V.length){var Qt=x(Y,Oe);Tt=!!Qt,Tt&&"get"in Qt&&!("originalValue"in Qt.get)?Y=Qt.get:Y=Y[Oe]}else Tt=z(Y,Oe),Y=Y[Oe];Tt&&!Xe&&(k[Ye]=Y)}}return Y}}}),Xf=re({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=RK(),n=L$(),o=n([r("%String.prototype.indexOf%")]);t.exports=function(a,i){var l=r(a,!!i);return typeof l=="function"&&o(a,".prototype.")>-1?n([l]):l}}}),DK=re({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=R$();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),N$=re({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=Xf(),n=DK()(),o=k$(),a=qf(),i;n?(l=r("RegExp.prototype.exec"),s={},u=function(){throw s},c={toString:u,valueOf:u},typeof Symbol.toPrimitive=="symbol"&&(c[Symbol.toPrimitive]=u),i=function(p){if(!p||typeof p!="object")return!1;var m=a(p,"lastIndex"),y=m&&o(m,"value");if(!y)return!1;try{l(p,c)}catch(E){return E===s}}):(d=r("Object.prototype.toString"),f="[object RegExp]",i=function(p){return!p||typeof p!="object"&&typeof p!="function"?!1:d(p)===f});var l,s,u,c,d,f;t.exports=i}}),PK=re({"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 a=r.call(o);return a==="[object Function]"||typeof o=="function"&&a!=="[object RegExp]"||typeof window<"u"&&(o===window.setTimeout||o===window.alert||o===window.confirm||o===window.prompt)}}}),FK=re({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=Xf(),n=N$(),o=r("RegExp.prototype.exec"),a=Vf();t.exports=function(i){if(!n(i))throw new a("`regex` must be a RegExp");return function(l){return o(i,l)!==null}}}}),IK=re({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=Xf(),n=r("Object.prototype.toString"),o=D$()(),a=FK();o?(i=r("Symbol.prototype.toString"),l=a(/^Symbol\(.*\)$/),s=function(u){return typeof u.valueOf()!="symbol"?!1:l(i(u))},t.exports=function(u){if(typeof u=="symbol")return!0;if(!u||typeof u!="object"||n(u)!=="[object Symbol]")return!1;try{return s(u)}catch{return!1}}):t.exports=function(u){return!1};var i,l,s}}),LK=Wf(N$()),kK=Wf(PK()),NK=Wf(IK());function MK(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var BK=typeof global=="object"&&global&&global.Object===Object&&global,jK=BK,HK=typeof self=="object"&&self&&self.Object===Object&&self,UK=jK||HK||Function("return this")(),Jf=UK,zK=Jf.Symbol,zn=zK,M$=Object.prototype,KK=M$.hasOwnProperty,GK=M$.toString,mo=zn?zn.toStringTag:void 0;function WK(e){var t=KK.call(e,mo),r=e[mo];try{e[mo]=void 0;var n=!0}catch{}var o=GK.call(e);return n&&(t?e[mo]=r:delete e[mo]),o}var VK=WK,qK=Object.prototype,YK=qK.toString;function XK(e){return YK.call(e)}var JK=XK,ZK="[object Null]",QK="[object Undefined]",iy=zn?zn.toStringTag:void 0;function eG(e){return e==null?e===void 0?QK:ZK:iy&&iy in Object(e)?VK(e):JK(e)}var tG=eG,ly=zn?zn.prototype:void 0;ly&&ly.toString;function rG(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var B$=rG,nG="[object AsyncFunction]",oG="[object Function]",aG="[object GeneratorFunction]",iG="[object Proxy]";function lG(e){if(!B$(e))return!1;var t=tG(e);return t==oG||t==aG||t==nG||t==iG}var sG=lG,uG=Jf["__core-js_shared__"],Bu=uG,sy=(function(){var e=/[^.]+$/.exec(Bu&&Bu.keys&&Bu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function cG(e){return!!sy&&sy in e}var dG=cG,fG=Function.prototype,pG=fG.toString;function hG(e){if(e!=null){try{return pG.call(e)}catch{}try{return e+""}catch{}}return""}var gG=hG,mG=/[\\^$.*+?()[\]{}|]/g,yG=/^\[object .+?Constructor\]$/,bG=Function.prototype,EG=Object.prototype,vG=bG.toString,SG=EG.hasOwnProperty,xG=RegExp("^"+vG.call(SG).replace(mG,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function $G(e){if(!B$(e)||dG(e))return!1;var t=sG(e)?xG:yG;return t.test(gG(e))}var wG=$G;function CG(e,t){return e?.[t]}var _G=CG;function TG(e,t){var r=_G(e,t);return wG(r)?r:void 0}var j$=TG;function AG(e,t){return e===t||e!==e&&t!==t}var OG=AG,RG=j$(Object,"create"),Go=RG;function DG(){this.__data__=Go?Go(null):{},this.size=0}var PG=DG;function FG(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var IG=FG,LG="__lodash_hash_undefined__",kG=Object.prototype,NG=kG.hasOwnProperty;function MG(e){var t=this.__data__;if(Go){var r=t[e];return r===LG?void 0:r}return NG.call(t,e)?t[e]:void 0}var BG=MG,jG=Object.prototype,HG=jG.hasOwnProperty;function UG(e){var t=this.__data__;return Go?t[e]!==void 0:HG.call(t,e)}var zG=UG,KG="__lodash_hash_undefined__";function GG(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Go&&t===void 0?KG:t,this}var WG=GG;function to(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])}}to.prototype.clear=PG;to.prototype.delete=IG;to.prototype.get=BG;to.prototype.has=zG;to.prototype.set=WG;var uy=to;function VG(){this.__data__=[],this.size=0}var qG=VG;function YG(e,t){for(var r=e.length;r--;)if(OG(e[r][0],t))return r;return-1}var Tl=YG,XG=Array.prototype,JG=XG.splice;function ZG(e){var t=this.__data__,r=Tl(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():JG.call(t,r,1),--this.size,!0}var QG=ZG;function eW(e){var t=this.__data__,r=Tl(t,e);return r<0?void 0:t[r][1]}var tW=eW;function rW(e){return Tl(this.__data__,e)>-1}var nW=rW;function oW(e,t){var r=this.__data__,n=Tl(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var aW=oW;function ro(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])}}ro.prototype.clear=qG;ro.prototype.delete=QG;ro.prototype.get=tW;ro.prototype.has=nW;ro.prototype.set=aW;var iW=ro,lW=j$(Jf,"Map"),sW=lW;function uW(){this.size=0,this.__data__={hash:new uy,map:new(sW||iW),string:new uy}}var cW=uW;function dW(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var fW=dW;function pW(e,t){var r=e.__data__;return fW(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Al=pW;function hW(e){var t=Al(this,e).delete(e);return this.size-=t?1:0,t}var gW=hW;function mW(e){return Al(this,e).get(e)}var yW=mW;function bW(e){return Al(this,e).has(e)}var EW=bW;function vW(e,t){var r=Al(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var SW=vW;function no(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])}}no.prototype.clear=cW;no.prototype.delete=gW;no.prototype.get=yW;no.prototype.has=EW;no.prototype.set=SW;var H$=no,xW="Expected a function";function Zf(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(xW);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(Zf.Cache||H$),r}Zf.Cache=H$;var $W=Zf,wW=500;function CW(e){var t=$W(e,function(n){return r.size===wW&&r.clear(),n}),r=t.cache;return t}var _W=CW,TW=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,AW=/\\(\\)?/g;_W(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(TW,function(r,n,o,a){t.push(o?a.replace(AW,"$1"):n||r)}),t});var OW=MK,RW=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/;function U$(e){if(!OW(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=sK(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 DW=function(e){let t,r,n,o;return function(a,i){try{if(a==="")return o=[],t=new Map([[i,"[]"]]),r=new Map,n=[],i;let l=r.get(this)||this;for(;n.length&&l!==n[0];)n.shift(),o.pop();if(typeof i=="boolean")return i;if(i===void 0)return e.allowUndefined?"_undefined_":void 0;if(i===null)return null;if(typeof i=="number")return i===Number.NEGATIVE_INFINITY?"_-Infinity_":i===Number.POSITIVE_INFINITY?"_Infinity_":Number.isNaN(i)?"_NaN_":i;if(typeof i=="bigint")return`_bigint_${i.toString()}`;if(typeof i=="string")return RW.test(i)?e.allowDate?`_date_${i}`:void 0:i;if((0,LK.default)(i))return e.allowRegExp?`_regexp_${i.flags}|${i.source}`:void 0;if((0,kK.default)(i))return;if((0,NK.default)(i)){if(!e.allowSymbol)return;let u=Symbol.keyFor(i);return u!==void 0?`_gsymbol_${u}`:`_symbol_${i.toString().slice(7,-1)}`}if(n.length>=e.maxDepth)return Array.isArray(i)?`[Array(${i.length})]`:"[Object]";if(i===this)return`_duplicate_${JSON.stringify(o)}`;if(i instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...i.cause?{cause:i.cause}:{},...i,name:i.name,message:i.message,stack:i.stack,"_constructor-name_":i.constructor.name}};if(i?.constructor?.name&&i.constructor.name!=="Object"&&!Array.isArray(i)){let u=t.get(i);if(!u){let c={__isClassInstance__:!0,__className__:i.constructor.name,...Object.getOwnPropertyNames(i).reduce((d,f)=>{try{d[f]=i[f]}catch{}return d},{})};return o.push(a),n.unshift(c),t.set(i,JSON.stringify(o)),i!==c&&r.set(i,c),c}return`_duplicate_${u}`}let s=t.get(i);if(!s){let u=Array.isArray(i)?i:U$(i);return o.push(a),n.unshift(u),t.set(i,JSON.stringify(o)),i!==u&&r.set(i,u),u}return`_duplicate_${s}`}catch{return}}},PW={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},FW=(e,t={})=>{let r={...PW,...t};return JSON.stringify(U$(e),DW(r),t.space)};function z$(e){return FW(e,{maxDepth:50})}var K$=h.createContext({sources:{}}),G$="--unknown--",IW=({children:e,channel:t})=>{let[r,n]=h.useState({});return h.useEffect(()=>{let o=(a,i=null,l=!1)=>{let{id:s,args:u=void 0,source:c,format:d}=typeof a=="string"?{id:a,source:i,format:l}:a,f=u?z$(u):G$;n(p=>({...p,[s]:{...p[s],[f]:{code:c||"",format:d}}}))};return t.on(op,o),()=>t.off(op,o)},[]),g.createElement(K$.Provider,{value:{sources:r}},e)};function LW(e,t,r){let[n,o]=h.useState("Transforming..."),a=t?t?.(e,r):e;return h.useEffect(()=>{async function i(){let l=await a;l!==n&&o(l)}i()}),typeof a=="object"&&typeof a.then=="function"?n:a}var kW=(e,t,r)=>{let{sources:n}=r,o=n?.[e];return o?.[z$(t)]||o?.[G$]||{code:""}},NW=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{let o=t.parameters??{},{__isArgsStory:a}=o,i=o.docs?.source||{},l=r||i.type||Dl.AUTO,s=l===Dl.DYNAMIC||l===Dl.AUTO&&e&&a?e:i.originalSource||"",u=n??i.transform,c=u?LW(s,u,t):s;return i.code!==void 0?i.code:c},MW=(e,t,r)=>{let{of:n}=e,o=h.useMemo(()=>{if(n)return t.resolveOf(n,["story"]).story;try{return t.storyById()}catch{}},[t,n]),a=o?t.getStoryContext(o):{},i=e.__forceInitialArgs?a.initialArgs:a.unmappedArgs,l=o?kW(o.id,i,r):null,s=NW({snippet:l?l.code:"",storyContext:{...a,args:i},typeFromProps:e.type,transformFromProps:e.transform});if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let u=o?.parameters?.docs?.source||{},c=e.format,d=e.language??u.language??"jsx",f=e.dark??u.dark??!1;return!e.code&&!o?{error:"Oh no! The source is not available."}:e.code?{code:e.code,format:c,language:d,dark:f}:(c=l?.format??!0,{code:s,format:c,language:d,dark:f})},BW=e=>{let t=h.useContext(Ct),r=h.useContext(K$),{of:n,source:o}=e;if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story:a}=eo(n||"story",["story"]),i=MW({...o,...n&&{of:n}},t,r),l=e.layout??a.parameters.layout??a.parameters.docs?.canvas?.layout??"padded",s=e.withToolbar??a.parameters.docs?.canvas?.withToolbar??!1,u=e.additionalActions??a.parameters.docs?.canvas?.additionalActions,c=e.sourceState??a.parameters.docs?.canvas?.sourceState??"hidden",d=e.className??a.parameters.docs?.canvas?.className,f=e.story?.inline??a.parameters?.docs?.story?.inline??!1;return g.createElement($$,{withSource:c==="none"?void 0:i,isExpanded:c==="shown",withToolbar:s,additionalActions:u,className:d,layout:l,inline:f},g.createElement(mz,{of:n||a.moduleExport,meta:e.meta,...e.story}))};const{filterArgTypes:cy}=__STORYBOOK_MODULE_PREVIEW_API__,{RESET_STORY_ARGS:jW,STORY_ARGS_UPDATED:dy,UPDATE_STORY_ARGS:HW}=__STORYBOOK_MODULE_CORE_EVENTS__;var UW=(e,t)=>{let r=zW(e,t);if(!r)throw new Error("No result when story was defined");return r},zW=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[o,a]=h.useState(r.args);h.useEffect(()=>{let s=u=>{u.storyId===n&&a(u.args)};return t.channel.on(dy,s),()=>t.channel.off(dy,s)},[n,t.channel]);let i=h.useCallback(s=>t.channel.emit(HW,{storyId:n,updatedArgs:s}),[n,t.channel]),l=h.useCallback(s=>t.channel.emit(jW,{storyId:n,argNames:s}),[n,t.channel]);return e&&[o,i,l]};const{GLOBALS_UPDATED:fy}=__STORYBOOK_MODULE_CORE_EVENTS__;var KW=(e,t)=>{let r=t.getStoryContext(e),[n,o]=h.useState(r.globals);return h.useEffect(()=>{let a=i=>{o(i.globals)};return t.channel.on(fy,a),()=>t.channel.off(fy,a)},[t.channel]),[n]};const{Tag:GW}=__STORYBOOK_MODULE_PREVIEW_API__;var W$=()=>h.useContext(Ct).componentStories().find(e=>e.tags.includes(GW.AUTODOCS));function WW(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var VW=e=>{let{of:t}=e,r=h.useContext(Ct),n=W$(),o=t?r.resolveOf(t,["story"]).story:n;if(!o)return null;let{parameters:a,argTypes:i,component:l,subcomponents:s}=o,u=a.docs?.controls||{},c=e.include??u.include,d=e.exclude??u.exclude,f=e.sort??u.sort,[p,m,y]=UW(o,r),[E]=KW(o,r),b=cy(i,c,d);if(!(s&&Object.keys(s||{}).length>0))return Object.keys(b).length>0||Object.keys(p).length>0?g.createElement(td,{rows:b,sort:f,args:p,globals:E,updateArgs:m,resetArgs:y}):null;let v=Qz(l)||"Story",S=Object.fromEntries(Object.entries(s||{}).map(([C,$])=>[C,{rows:cy(WW($,a),c,d),sort:f}])),x={[v]:{rows:b,sort:f},...S};return g.createElement(Pz,{tabs:x,sort:f,args:p,globals:E,updateArgs:m,resetArgs:y})};const{NAVIGATE_URL:qW}=__STORYBOOK_MODULE_CORE_EVENTS__;var{document:V$}=globalThis,YW=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return g.createElement(of,null,t);let n=e&&e.split("-");return g.createElement(Xx,{language:n&&n[1]||"text",format:!1,code:t,...r})};function Qf(e,t){e.channel.emit(qW,t)}var od=zx.a,XW=({hash:e,children:t})=>{let r=h.useContext(Ct);return g.createElement(od,{href:e,target:"_self",onClick:n=>{let o=e.substring(1);V$.getElementById(o)&&Qf(r,e)}},t)},JW=e=>{let{href:t,target:r,children:n,...o}=e,a=h.useContext(Ct);return!t||r==="_blank"||/^https?:\/\//.test(t)?g.createElement(od,{...e}):t.startsWith("#")?g.createElement(XW,{hash:t},n):g.createElement(od,{href:t,onClick:i=>{i.button===0&&!i.altKey&&!i.ctrlKey&&!i.metaKey&&!i.shiftKey&&(i.preventDefault(),Qf(a,i.currentTarget.getAttribute("href")||""))},target:r,...o},n)},q$=["h1","h2","h3","h4","h5","h6"],ZW=q$.reduce((e,t)=>({...e,[t]:R(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),QW=R.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),eV=({as:e,id:t,children:r,...n})=>{let o=h.useContext(Ct),a=ZW[e],i=`#${t}`;return g.createElement(a,{id:t,...n},g.createElement(QW,{"aria-hidden":"true",href:i,tabIndex:-1,target:"_self",onClick:l=>{V$.getElementById(t)&&Qf(o,i)}},g.createElement(l5,null)),r)},ep=e=>{let{as:t,id:r,children:n,...o}=e;if(r)return g.createElement(eV,{as:t,id:r,...o},n);let a=t,{as:i,...l}=e;return g.createElement(a,{...be(l,t)})},tV=q$.reduce((e,t)=>({...e,[t]:r=>g.createElement(ep,{as:t,...r})}),{}),rV=e=>{if(!e.children)return null;if(typeof e.children!="string")throw new Error(CB`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}'
740
+ This is often caused by not wrapping the child in a template string.
741
+
742
+ This is invalid:
743
+ <Markdown>
744
+ # Some heading
745
+ A paragraph
746
+ </Markdown>
747
+
748
+ Instead do:
749
+ <Markdown>
750
+ {\`
751
+ # Some heading
752
+ A paragraph
753
+ \`}
754
+ </Markdown>
755
+ `);return g.createElement(a$,{...e,options:{forceBlock:!0,overrides:{code:YW,a:JW,...tV,...e?.options?.overrides},...e?.options}})},nV=e=>{switch(e.type){case"story":return e.story.parameters.docs?.description?.story||null;case"meta":{let{parameters:t,component:r}=e.preparedMeta;return t.docs?.description?.component||t.docs?.extractComponentDescription?.(r,{component:r,parameters:t})||null}case"component":{let{component:t,projectAnnotations:{parameters:r}}=e;return r?.docs?.extractComponentDescription?.(t,{component:t,parameters:r})||null}default:throw new Error(`Unrecognized module type resolved from 'useOf', got: ${e.type}`)}},ad=e=>{let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=eo(t||"meta"),n=nV(r);return n?g.createElement(rV,null,n):null},{document:oV,window:aV}=globalThis,iV=({context:e,theme:t,children:r})=>{let n;try{n=e.resolveOf("meta",["meta"]).preparedMeta.parameters?.docs?.toc}catch{n=e?.projectAnnotations?.parameters?.docs?.toc}return h.useEffect(()=>{let o;try{if(o=new URL(aV.parent.location.toString()),o.hash){let a=oV.getElementById(decodeURIComponent(o.hash.substring(1)));a&&setTimeout(()=>{eK(a)},200)}}catch{}}),g.createElement(Ct.Provider,{value:e},g.createElement(IW,{channel:e.channel},g.createElement(_d,{theme:Ib(t)},g.createElement(fz,{toc:n?g.createElement(Xz,{className:"sbdocs sbdocs-toc--custom",channel:e.channel,...n}):null},r))))},lV=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,sV=Object.hasOwnProperty,uV=class{constructor(){this.occurrences,this.reset()}slug(e,t){let r=this,n=cV(e,t===!0),o=n;for(;sV.call(r.occurrences,n);)r.occurrences[o]++,n=o+"-"+r.occurrences[o];return r.occurrences[n]=0,n}reset(){this.occurrences=Object.create(null)}};function cV(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(lV,"").replace(/ /g,"-"))}var Y$=new uV,dV=({children:e,disableAnchor:t,...r})=>{if(t||typeof e!="string")return g.createElement(af,null,e);let n=Y$.slug(e.toLowerCase());return g.createElement(ep,{as:"h2",id:n,...r},e)},fV=({children:e,disableAnchor:t})=>{if(t||typeof e!="string")return g.createElement(lf,null,e);let r=Y$.slug(e.toLowerCase());return g.createElement(ep,{as:"h3",id:r},e)},X$=({of:e,expanded:t=!0,withToolbar:r=!1,__forceInitialArgs:n=!1,__primary:o=!1})=>{let{story:a}=eo(e||"story",["story"]),i=a.parameters.docs?.canvas?.withToolbar??r;return g.createElement(_$,{storyId:o?`primary--${a.id}`:a.id},t&&g.createElement(g.Fragment,null,g.createElement(fV,null,a.name),g.createElement(ad,{of:e})),g.createElement(BW,{of:e,withToolbar:i,story:{__forceInitialArgs:n,__primary:o},source:{__forceInitialArgs:n}}))},pV=()=>{let e=W$();return e?g.createElement(X$,{of:e.moduleExport,expanded:!1,__primary:!0,withToolbar:!0}):null};const{Tag:py}=__STORYBOOK_MODULE_PREVIEW_API__;var hV=R(dV)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,fontWeight:e.typography.weight.bold,lineHeight:"16px",letterSpacing:"0.35em",textTransform:"uppercase",color:e.textMutedColor,border:0,marginBottom:"12px","&:first-of-type":{marginTop:"56px"}})),gV=({title:e="Stories",includePrimary:t=!0})=>{let{componentStories:r,projectAnnotations:n,getStoryContext:o}=h.useContext(Ct),a=r(),{stories:{filter:i}={filter:void 0}}=n.parameters?.docs||{};return i&&(a=a.filter(l=>i(l,o(l)))),a.some(l=>l.tags?.includes(py.AUTODOCS))&&(a=a.filter(l=>l.tags?.includes(py.AUTODOCS)&&!l.usesMount)),t||(a=a.slice(1)),!a||a.length===0?null:g.createElement(g.Fragment,null,typeof e=="string"?g.createElement(hV,null,e):e,a.map(l=>l&&g.createElement(X$,{key:l.id,of:l.moduleExport,expanded:!0,__forceInitialArgs:!0})))};const{deprecate:mV}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var yV="https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#subtitle-block-and-parameterscomponentsubtitle",bV=e=>{let{of:t,children:r}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let n;try{n=eo(t||"meta",["meta"]).preparedMeta}catch(l){if(r&&!l.message.includes("did you forget to use <Meta of={} />?"))throw l}let{componentSubtitle:o,docs:a}=n?.parameters||{};o&&mV(`Using 'parameters.componentSubtitle' property to subtitle stories is deprecated. See ${yV}`);let i=r||a?.subtitle||o;return i?g.createElement(uz,{className:"sbdocs-subtitle sb-unstyled"},i):null},EV=/\s*\/\s*/,vV=e=>{let t=e.trim().split(EV);return t?.[t?.length-1]||e},SV=e=>{let{children:t,of:r}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let n;try{n=eo(r||"meta",["meta"]).preparedMeta}catch(a){if(t&&a instanceof Error&&!a.message.includes("did you forget to use <Meta of={} />?"))throw a}let o=t||vV(n?.title||"");return o?g.createElement(sz,{className:"sbdocs-title sb-unstyled"},o):null},xV=()=>{let e=eo("meta",["meta"]),{stories:t}=e.csfFile,r=Object.keys(t).length===1;return g.createElement(g.Fragment,null,g.createElement(SV,null),g.createElement(bV,null),g.createElement(ad,{of:"meta"}),r?g.createElement(ad,{of:"story"}):null,g.createElement(pV,null),g.createElement(VW,null),r?null:g.createElement(gV,null))};function YV({context:e,docsParameter:t}){let r=t.container||iV,n=t.page||xV;return g.createElement(r,{context:e,theme:t.theme},g.createElement(n,null))}const{composeConfigs:XV}=__STORYBOOK_MODULE_PREVIEW_API__,{Channel:JV}=__STORYBOOK_MODULE_CHANNELS__,{Preview:ZV,composeConfigs:QV}=__STORYBOOK_MODULE_PREVIEW_API__,{DocsContext:eq}=__STORYBOOK_MODULE_PREVIEW_API__;var tq=({of:e})=>{let t=h.useContext(Ct);e&&t.referenceMeta(e,!0);try{let r=t.storyById();return g.createElement(_$,{storyId:r.id})}catch{return null}};export{JW as A,Ce as B,YW as C,YV as D,un as F,tV as H,IV as M,Lf as P,Dd as S,je as _,ZD as a,tq as b,rV as c,vt as d,kb as e,JD as f,Lt as g,Ed as l,Kn as r,R as s};