@tmorrow/cre8-wc 2.0.5 → 2.0.7

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 (622) hide show
  1. package/a2ui/catalog.json +3 -3
  2. package/cdn/cre8-wc.esm.js +744 -2
  3. package/cdn/cre8-wc.esm.js.map +1 -1
  4. package/cdn/cre8-wc.min.js +738 -2
  5. package/cdn/cre8-wc.min.js.map +1 -1
  6. package/dist/assets/Changelog-Documentation-BguNswiM.js +3 -0
  7. package/dist/assets/Code-Guidelines-BM3dZyzL.js +3 -0
  8. package/dist/assets/Color-6AOWCN3U-C4AEGNk3.js +1 -0
  9. package/dist/assets/Contributing-Guidelines-DZURVehh.js +3 -0
  10. package/dist/assets/DocsRenderer-JROSPFPF-DeZmCI9u.js +9 -0
  11. package/dist/assets/{Tokens-Documentation-BTECbmvD.js → Tokens-Documentation-ZecGbtQg.js} +2 -2
  12. package/dist/assets/WithTooltip-7X4HQR7L-2Hfrkir-.js +9 -0
  13. package/dist/assets/{accordion-item.stories-BlkiLvzN.js → accordion-item.stories-D-MjrX5G.js} +15 -4
  14. package/dist/assets/{accordion.stories-BoGuSGR9.js → accordion.stories-icgNa1dl.js} +14 -6
  15. package/dist/assets/{alert.stories-C1OPoi5g.js → alert.stories-BzDaXtj-.js} +65 -34
  16. package/dist/assets/{badge-BPOQ_yGY.js → badge-C5wOWgyg.js} +11 -3
  17. package/dist/assets/{badge.stories-Ds_PNI0F.js → badge.stories-5GfB4jVI.js} +3 -3
  18. package/dist/assets/{band.stories-Bpfe4d4r.js → band.stories-DhXaP_kL.js} +10 -2
  19. package/dist/assets/blocks-DhUVut8Z.js +747 -0
  20. package/dist/assets/{breadcrumbs.stories-CsjTwIH7.js → breadcrumbs.stories-CrPUBVk1.js} +26 -7
  21. package/dist/assets/button-CJL8yzAT.js +1503 -0
  22. package/dist/assets/{button-group-B9g_-lYt.js → button-group-BgwgtSFC.js} +23 -3
  23. package/dist/assets/{button-group.stories-T9-IozlI.js → button-group.stories-W-07gO63.js} +2 -2
  24. package/dist/assets/{button.stories-DzIYNMgW.js → button.stories-BPzJ-sCv.js} +23 -20
  25. package/dist/assets/{card.stories-BiF0PkzJ.js → card.stories-mlFGY2Xn.js} +20 -4
  26. package/dist/assets/{chart.stories-D2iRuVl9.js → chart.stories-C8yuHHeK.js} +1 -1
  27. package/dist/assets/{checkbox-field-item-BVUOuGTx.js → checkbox-field-item-iHcdmTNw.js} +16 -5
  28. package/dist/assets/checkbox-field-item.stories-D1aVLDXn.js +54 -0
  29. package/dist/assets/{checkbox-field.stories-DXiB_L3d.js → checkbox-field.stories-BoVB2jCx.js} +12 -4
  30. package/dist/assets/chunk-EUVGDK4H-rHCQfRxh.js +1 -0
  31. package/dist/assets/{cre8-element-gkCuLp-W.js → cre8-element-DfmMtHJO.js} +1 -1
  32. package/dist/assets/{cre8-form-element-DsXhvnkn.js → cre8-form-element-bQpK8UYN.js} +1 -1
  33. package/dist/assets/{danger-button.stories-lawCg7hs.js → danger-button.stories-Cb4ljnhQ.js} +31 -17
  34. package/dist/assets/{date-picker.stories-_Fdnd7NY.js → date-picker.stories-Cje3qk8D.js} +1050 -48
  35. package/dist/assets/decorator-iVSD-Llo.js +1 -0
  36. package/dist/assets/{divider-CHWbAsrs.js → divider-B_PXBGWD.js} +10 -2
  37. package/dist/assets/{divider.stories-D4Yc8m3t.js → divider.stories-CtfeBqVV.js} +2 -2
  38. package/dist/assets/{dropdown-DZE-lVYN.js → dropdown-Cgwne34I.js} +27 -8
  39. package/dist/assets/dropdown-item.stories-pXkDLRuv.js +26 -0
  40. package/dist/assets/{dropdown.stories-CnT5F5fB.js → dropdown.stories-DZnmHieY.js} +2 -2
  41. package/dist/assets/{example-drug-card.stories-BAMNAi8y.js → example-drug-card.stories-DTzLXTFx.js} +2 -2
  42. package/dist/assets/{f-po-CZL6lsXP.js → f-po-C2WpbOFJ.js} +2 -2
  43. package/dist/assets/{feature.stories-D3m47wf9.js → feature.stories-DffXdJch.js} +14 -6
  44. package/dist/assets/{field-Ce_Kp3W1.js → field-DzYRqQb2.js} +10 -1
  45. package/dist/assets/{field-note-txmyzeNl.js → field-note-DKXZiXLU.js} +19 -5
  46. package/dist/assets/field-note.stories-DS_0bQul.js +27 -0
  47. package/dist/assets/{field.stories-BEt-6RAF.js → field.stories-BvXn0oG6.js} +6 -6
  48. package/dist/assets/{footer.stories-Dzn7N8hL.js → footer.stories-C3ZibisU.js} +11 -3
  49. package/dist/assets/{form-example.stories-BeAfCsBJ.js → form-example.stories-C-TuOeF2.js} +4 -4
  50. package/dist/assets/formatter-L2YTDE3Q-CJVnxOUW.js +1 -0
  51. package/dist/assets/{global-nav-item-C_P64qZX.js → global-nav-item-xQL7wVjY.js} +14 -6
  52. package/dist/assets/global-nav-item.stories-Dp9TE3aR.js +1 -0
  53. package/dist/assets/{global-nav.stories-BCBaOucz.js → global-nav.stories-B5Nk8JZ0.js} +11 -3
  54. package/dist/assets/{grid-DItOBpBm.js → grid-DYgnZBsd.js} +19 -3
  55. package/dist/assets/{grid.stories-DwGB81iK.js → grid.stories-BFiXTq2C.js} +2 -2
  56. package/dist/assets/{header.stories--yZLIN_d.js → header.stories-D1f7xhjV.js} +11 -3
  57. package/dist/assets/{heading-BgO3jH9M.js → heading-485Jz7JZ.js} +10 -2
  58. package/dist/assets/{heading.stories-CQ4muIzf.js → heading.stories-gPF_SmTc.js} +2 -2
  59. package/dist/assets/{hero.stories-VyLQwa--.js → hero.stories-BHlFNdvF.js} +24 -3
  60. package/dist/assets/{icon-DYiIK7a4.js → icon-DeTLDzTS.js} +190 -176
  61. package/dist/assets/{icon-description-P810XJAK.js → icon-description-o-YaiEjK.js} +1 -1
  62. package/dist/assets/icon-description.stories-BdPRvEwe.js +3 -0
  63. package/dist/assets/icon.stories-BxWpqxT5.js +14 -0
  64. package/dist/assets/if-defined-HKKhGupN.js +1 -0
  65. package/dist/assets/iframe-CWwoGI65.css +1 -0
  66. package/dist/assets/iframe-dHvya7sk.js +5737 -0
  67. package/dist/assets/{inline-alert.stories-Ju8Sktdo.js → inline-alert.stories-FH0bQ0jh.js} +36 -16
  68. package/dist/assets/{layout-container.stories-6lsQLqZx.js → layout-container.stories-D6Z6Kx78.js} +11 -3
  69. package/dist/assets/{layout.stories-C3b4Xkca.js → layout.stories-CNYuwC_r.js} +23 -7
  70. package/dist/assets/{linelength-container.stories-CHBg8Th9.js → linelength-container.stories-pCRXZvxS.js} +11 -3
  71. package/dist/assets/{link-B_CPLQjt.js → link-BpCiLxNW.js} +15 -7
  72. package/dist/assets/{link-list.stories-Cp5Lb5OS.js → link-list.stories-12vsAa1P.js} +24 -8
  73. package/dist/assets/link.stories-DAoQtY4_.js +100 -0
  74. package/dist/assets/{list.stories-BBfDQunh.js → list.stories-D0N3yBIf.js} +23 -7
  75. package/dist/assets/{loading-spinner-Ced-hKjz.js → loading-spinner-g6iJajXH.js} +12 -4
  76. package/dist/assets/{loading-spinner.stories-p_zh8eXu.js → loading-spinner.stories-B6_mgPxB.js} +1 -1
  77. package/dist/assets/{logo.stories-CDQUWgS1.js → logo.stories-BvMwN2qg.js} +10 -2
  78. package/dist/assets/{main.stories-Blat-0eW.js → main.stories-pL4zefbs.js} +10 -2
  79. package/dist/assets/matchers-JIUQ3HVY-HJu_DfWo.js +14 -0
  80. package/dist/assets/{medication-card.stories-CO-0X-KQ.js → medication-card.stories-DK1XGJic.js} +3 -3
  81. package/dist/assets/{medication-form.stories-C_exfVaQ.js → medication-form.stories-Bj5dLp5S.js} +3 -3
  82. package/dist/assets/{modal-ne1a4Rdj.js → modal-BNu8xy08.js} +2 -2
  83. package/dist/assets/{modal-Oja4WhiR.js → modal-CO0M4e_8.js} +32 -6
  84. package/dist/assets/{modal.stories-BxO2ifui.js → modal.stories-CHYBrq_E.js} +1 -1
  85. package/dist/assets/{multi-select.stories-DUMN4A9Y.js → multi-select.stories-C9XXsWio.js} +22 -15
  86. package/dist/assets/{nav-container.stories-D6ByjniX.js → nav-container.stories-DU9fhvDu.js} +11 -3
  87. package/dist/assets/{page-header.stories-Dq8ASgx8.js → page-header.stories-BrstKiEY.js} +14 -6
  88. package/dist/assets/{pagination.stories-DSfWODQ2.js → pagination.stories-Bw2M2iOn.js} +51 -37
  89. package/dist/assets/{percent-bar.stories-BmE9NprW.js → percent-bar.stories-UQRXYUqd.js} +17 -5
  90. package/dist/assets/{popover.stories-CPg1Hoan.js → popover.stories-ZkwrRFpR.js} +14 -6
  91. package/dist/assets/{primary-nav.stories-DVO9CYF0.js → primary-nav.stories-wqOKwgQn.js} +19 -3
  92. package/dist/assets/{progress-meter-DRI7Arug.js → progress-meter-TzASasu0.js} +9 -1
  93. package/dist/assets/{progress-meter.stories-CAJFb7Bk.js → progress-meter.stories-qfJALZf8.js} +2 -2
  94. package/dist/assets/{progress-steps-item-Veau6WlI.js → progress-steps-item-KvW1d_7L.js} +9 -1
  95. package/dist/assets/progress-steps-item.stories-uOn6tJ1W.js +65 -0
  96. package/dist/assets/{progress-steps.stories-Bh6m7ZkV.js → progress-steps.stories-CKFPx8D0.js} +31 -14
  97. package/dist/assets/{radio-field-item-CLITSt3i.js → radio-field-item-CTaR50XR.js} +21 -5
  98. package/dist/assets/{radio-field-item.stories-CCEbiAJJ.js → radio-field-item.stories-DQSLj8W1.js} +6 -6
  99. package/dist/assets/{radio-field.stories-puh_Qz-F.js → radio-field.stories-Btmc_Iep.js} +5 -5
  100. package/dist/assets/{remove-tag-etggj_MH.js → remove-tag-BSEZ7VT8.js} +16 -5
  101. package/dist/assets/{remove-tag.stories-CJWEWuAZ.js → remove-tag.stories-diRKi7Ua.js} +2 -2
  102. package/dist/assets/{request-prescription.stories-DyRzO_jr.js → request-prescription.stories-DQvra7ia.js} +3 -3
  103. package/dist/assets/{sample-modal.stories-Do1Rji07.js → sample-modal.stories-deE1EBfZ.js} +1 -1
  104. package/dist/assets/{section.stories-BrnN5Hih.js → section.stories-DF4mcy2O.js} +13 -5
  105. package/dist/assets/select-tile-D-C8oSrm.js +1112 -0
  106. package/dist/assets/{select-tile-list.stories-CD5E8DL-.js → select-tile-list.stories-vsBQUIcl.js} +16 -33
  107. package/dist/assets/{select-tile.stories-Bg7iogzn.js → select-tile.stories-CqHzN5fc.js} +8 -5
  108. package/dist/assets/{select.stories-B6iFE5PV.js → select.stories-8aOGxTtr.js} +20 -9
  109. package/dist/assets/{skeleton-loader.stories-DGnU16J7.js → skeleton-loader.stories-CwR2-aC5.js} +13 -5
  110. package/dist/assets/{split-button.stories-G1N_NP0K.js → split-button.stories-CyfdrK4u.js} +12 -4
  111. package/dist/assets/spread-BPiNgQQF.js +1 -0
  112. package/dist/assets/state-CfuknrX8.js +1 -0
  113. package/dist/assets/story-helpers-BFn_kBYw.js +38 -0
  114. package/dist/assets/{submenu.stories-D-RepJR2.js → submenu.stories-CDhNzZzh.js} +20 -4
  115. package/dist/assets/syntaxhighlighter-T5IQBZDB-BzI6WxUR.js +6 -0
  116. package/dist/assets/{table-header-sXsVygtW.js → table-header-CfcchoYz.js} +63 -12
  117. package/dist/assets/{table-object.stories-DJ8roUlW.js → table-object.stories-Bd5qdfMU.js} +11 -3
  118. package/dist/assets/{table.stories-UwEyO3jA.js → table.stories-DxuBe9dJ.js} +2 -2
  119. package/dist/assets/{tabs.stories-CsbG6PFQ.js → tabs.stories-Cpc3OHJx.js} +31 -7
  120. package/dist/assets/{tag-list.stories-FGvdHvhI.js → tag-list.stories-BmyCmrTF.js} +12 -4
  121. package/dist/assets/{tag-CqRtd4HZ.js → tag-vQFuZneb.js} +15 -4
  122. package/dist/assets/{tag.stories-CyRYkvcm.js → tag.stories-DGzrNUbb.js} +5 -5
  123. package/dist/assets/{tertiary-nav.stories-DVHnc6aS.js → tertiary-nav.stories-D4q5K-am.js} +22 -6
  124. package/dist/assets/{text-link-Dg8E1dhI.js → text-link-4qLRIeJB.js} +9 -1
  125. package/dist/assets/text-link.stories-D6BRm2I5.js +1 -0
  126. package/dist/assets/{text-passage-Dw-BWzip.js → text-passage-DGaI5i2I.js} +19 -3
  127. package/dist/assets/{text-passage.stories-CzfR1z4-.js → text-passage.stories-DkmXVUhH.js} +2 -2
  128. package/dist/assets/{tooltip.stories-CVPX_J3l.js → tooltip.stories-B7ADDq7o.js} +21 -10
  129. package/dist/assets/{utility-nav.stories-BVyQKpR1.js → utility-nav.stories-ffXVvyLp.js} +22 -6
  130. package/dist/cre8-logo.png +0 -0
  131. package/dist/design-tokens/assets/fonts/Aeonik-Bold.woff +0 -0
  132. package/dist/design-tokens/assets/fonts/Aeonik-Bold.woff2 +0 -0
  133. package/dist/design-tokens/assets/fonts/Aeonik-Light.woff +0 -0
  134. package/dist/design-tokens/assets/fonts/Aeonik-Light.woff2 +0 -0
  135. package/dist/design-tokens/assets/fonts/Aeonik-Regular.woff +0 -0
  136. package/dist/design-tokens/assets/fonts/Aeonik-Regular.woff2 +0 -0
  137. package/dist/design-tokens/assets/fonts/Inter-Bold.woff +0 -0
  138. package/dist/design-tokens/assets/fonts/Inter-Bold.woff2 +0 -0
  139. package/dist/design-tokens/assets/fonts/Inter-Medium.woff +0 -0
  140. package/dist/design-tokens/assets/fonts/Inter-Medium.woff2 +0 -0
  141. package/dist/design-tokens/assets/fonts/Inter-Regular.woff +0 -0
  142. package/dist/design-tokens/assets/fonts/Inter-Regular.woff2 +0 -0
  143. package/dist/design-tokens/assets/fonts/Inter-SemiBold.woff +0 -0
  144. package/dist/design-tokens/assets/fonts/Inter-SemiBold.woff2 +0 -0
  145. package/dist/design-tokens/assets/fonts/NB Akademie-Bold.woff +0 -0
  146. package/dist/design-tokens/assets/fonts/NB Akademie-Bold.woff2 +0 -0
  147. package/dist/design-tokens/assets/fonts/NB Akademie-Medium.woff +0 -0
  148. package/dist/design-tokens/assets/fonts/NB Akademie-Medium.woff2 +0 -0
  149. package/dist/design-tokens/assets/fonts/NB Akademie-Regular.woff +0 -0
  150. package/dist/design-tokens/assets/fonts/NB Akademie-Regular.woff2 +0 -0
  151. package/dist/design-tokens/assets/fonts/PlusJakartaSans-Bold.ttf +0 -0
  152. package/dist/design-tokens/assets/fonts/PlusJakartaSans-Medium.ttf +0 -0
  153. package/dist/design-tokens/assets/fonts/PlusJakartaSans-Regular.ttf +0 -0
  154. package/dist/design-tokens/brands/blue/assets/fonts/ValueSans-Bold-Pro.woff2 +0 -0
  155. package/dist/design-tokens/brands/blue/assets/fonts/ValueSans-Medium-Pro.woff2 +0 -0
  156. package/dist/design-tokens/brands/blue/assets/fonts/ValueSansRegular-Pro.woff2 +0 -0
  157. package/dist/design-tokens/brands/blue/assets/fonts/ValueSerif-Bold-Pro.woff2 +0 -0
  158. package/dist/design-tokens/brands/claude-terracotta/css/tokens_brand.css +85 -0
  159. package/dist/design-tokens/brands/claude-terracotta/css/tokens_claude-terracotta.css +1 -0
  160. package/dist/design-tokens/brands/cre8-a2ui/css/assets/fonts/PlusJakartaSans-Bold.woff2 +0 -0
  161. package/dist/design-tokens/brands/cre8-a2ui/css/assets/fonts/PlusJakartaSans-LatinExt.woff2 +0 -0
  162. package/dist/design-tokens/brands/cre8-a2ui/css/assets/fonts/PlusJakartaSans-Medium.woff2 +0 -0
  163. package/dist/design-tokens/brands/cre8-a2ui/css/assets/fonts/PlusJakartaSans-Regular.woff2 +0 -0
  164. package/dist/design-tokens/brands/cre8-a2ui/css/assets/fonts/PlusJakartaSans-SemiBold.woff2 +0 -0
  165. package/dist/design-tokens/brands/cre8-a2ui/css/fonts.css +4 -8
  166. package/dist/design-tokens/brands/cre8-a2ui/css/tokens_brand.css +1 -0
  167. package/dist/design-tokens/brands/cre8-legacy/assets/fonts/Montserrat-Bold.ttf +0 -0
  168. package/dist/design-tokens/brands/cre8-legacy/assets/fonts/Montserrat-Regular.ttf +0 -0
  169. package/dist/design-tokens/brands/cre8-legacy/assets/fonts/Montserrat-SemiBold.ttf +0 -0
  170. package/dist/design-tokens/brands/cre8-legacy/assets/fonts/OpenSans-Bold.ttf +0 -0
  171. package/dist/design-tokens/brands/cre8-legacy/assets/fonts/OpenSans-Regular.ttf +0 -0
  172. package/dist/design-tokens/brands/cre8-legacy/assets/fonts/OpenSans-SemiBold.ttf +0 -0
  173. package/dist/design-tokens/brands/cre8-teal/css/tokens_brand.css +87 -0
  174. package/dist/design-tokens/brands/cre8-teal/css/tokens_cre8-teal.css +1 -0
  175. package/dist/design-tokens/brands/femmecubator/assets/fonts/Inter-Bold.woff +0 -0
  176. package/dist/design-tokens/brands/femmecubator/assets/fonts/Inter-Bold.woff2 +0 -0
  177. package/dist/design-tokens/brands/femmecubator/assets/fonts/Inter-Medium.woff +0 -0
  178. package/dist/design-tokens/brands/femmecubator/assets/fonts/Inter-Medium.woff2 +0 -0
  179. package/dist/design-tokens/brands/femmecubator/assets/fonts/Inter-Regular.woff +0 -0
  180. package/dist/design-tokens/brands/femmecubator/assets/fonts/Inter-Regular.woff2 +0 -0
  181. package/dist/design-tokens/brands/femmecubator/assets/fonts/Inter-SemiBold.woff +0 -0
  182. package/dist/design-tokens/brands/femmecubator/assets/fonts/Inter-SemiBold.woff2 +0 -0
  183. package/dist/design-tokens/brands/femmecubator/assets/fonts/NB Akademie-Bold.woff +0 -0
  184. package/dist/design-tokens/brands/femmecubator/assets/fonts/NB Akademie-Bold.woff2 +0 -0
  185. package/dist/design-tokens/brands/femmecubator/assets/fonts/NB Akademie-Medium.woff +0 -0
  186. package/dist/design-tokens/brands/femmecubator/assets/fonts/NB Akademie-Medium.woff2 +0 -0
  187. package/dist/design-tokens/brands/femmecubator/assets/fonts/NB Akademie-Regular.woff +0 -0
  188. package/dist/design-tokens/brands/femmecubator/assets/fonts/NB Akademie-Regular.woff2 +0 -0
  189. package/dist/design-tokens/brands/legacy/assets/fonts/rubik-v4-latin-300.woff +0 -0
  190. package/dist/design-tokens/brands/legacy/assets/fonts/rubik-v4-latin-300.woff2 +0 -0
  191. package/dist/design-tokens/brands/legacy/assets/fonts/rubik-v4-latin-500.woff +0 -0
  192. package/dist/design-tokens/brands/legacy/assets/fonts/rubik-v4-latin-500.woff2 +0 -0
  193. package/dist/design-tokens/brands/legacy/assets/fonts/rubik-v4-latin-regular.woff +0 -0
  194. package/dist/design-tokens/brands/legacy/assets/fonts/rubik-v4-latin-regular.woff2 +0 -0
  195. package/dist/design-tokens/brands/marketing/assets/fonts/Montserrat-Bold.ttf +0 -0
  196. package/dist/design-tokens/brands/marketing/assets/fonts/Montserrat-Medium.ttf +0 -0
  197. package/dist/design-tokens/brands/marketing/assets/fonts/Montserrat-Regular.ttf +0 -0
  198. package/dist/design-tokens/brands/marketing/assets/fonts/Montserrat-SemiBold.ttf +0 -0
  199. package/dist/design-tokens/brands/minimalist/assets/fonts/Aeonik-Bold.woff +0 -0
  200. package/dist/design-tokens/brands/minimalist/assets/fonts/Aeonik-Bold.woff2 +0 -0
  201. package/dist/design-tokens/brands/minimalist/assets/fonts/Aeonik-Light.woff +0 -0
  202. package/dist/design-tokens/brands/minimalist/assets/fonts/Aeonik-Light.woff2 +0 -0
  203. package/dist/design-tokens/brands/minimalist/assets/fonts/Aeonik-Regular.woff +0 -0
  204. package/dist/design-tokens/brands/minimalist/assets/fonts/Aeonik-Regular.woff2 +0 -0
  205. package/dist/design-tokens/brands/starbucks/assets/fonts/Inter-Bold.woff +0 -0
  206. package/dist/design-tokens/brands/starbucks/assets/fonts/Inter-Bold.woff2 +0 -0
  207. package/dist/design-tokens/brands/starbucks/assets/fonts/Inter-Medium.woff +0 -0
  208. package/dist/design-tokens/brands/starbucks/assets/fonts/Inter-Medium.woff2 +0 -0
  209. package/dist/design-tokens/brands/starbucks/assets/fonts/Inter-Regular.woff +0 -0
  210. package/dist/design-tokens/brands/starbucks/assets/fonts/Inter-Regular.woff2 +0 -0
  211. package/dist/design-tokens/brands/starbucks/assets/fonts/Inter-SemiBold.woff +0 -0
  212. package/dist/design-tokens/brands/starbucks/assets/fonts/Inter-SemiBold.woff2 +0 -0
  213. package/dist/design-tokens/brands/starbucks/assets/fonts/NB Akademie-Bold.woff +0 -0
  214. package/dist/design-tokens/brands/starbucks/assets/fonts/NB Akademie-Bold.woff2 +0 -0
  215. package/dist/design-tokens/brands/starbucks/assets/fonts/NB Akademie-Medium.woff +0 -0
  216. package/dist/design-tokens/brands/starbucks/assets/fonts/NB Akademie-Medium.woff2 +0 -0
  217. package/dist/design-tokens/brands/starbucks/assets/fonts/NB Akademie-Regular.woff +0 -0
  218. package/dist/design-tokens/brands/starbucks/assets/fonts/NB Akademie-Regular.woff2 +0 -0
  219. package/dist/design-tokens/core/scss/theming/component.css +1 -1
  220. package/dist/design-tokens/core/scss/theming/variables.css +7 -1
  221. package/dist/design-tokens/core/scss/theming/variables.scss +11 -0
  222. package/dist/fonts/PlusJakartaSans-Bold.woff2 +0 -0
  223. package/dist/fonts/PlusJakartaSans-Medium.woff2 +0 -0
  224. package/dist/fonts/PlusJakartaSans-Regular.woff2 +0 -0
  225. package/dist/fonts/PlusJakartaSans-SemiBold.woff2 +0 -0
  226. package/dist/icons/Account.svg +3 -0
  227. package/dist/icons/Account_Filled.svg +3 -0
  228. package/dist/icons/Arrow_-_Left.svg +3 -0
  229. package/dist/icons/Arrow_-_Left_Filled.svg +3 -0
  230. package/dist/icons/Caret_Double_Left.svg +3 -0
  231. package/dist/icons/Caret_Double_Right.svg +3 -0
  232. package/dist/icons/Caret_Down.svg +3 -0
  233. package/dist/{assets/Caret_Down-Bmqq8eNW.js → icons/Caret_Down_Filled.svg} +1 -2
  234. package/dist/{assets/Caret_Left-CIObD6Xy.js → icons/Caret_Left.svg} +1 -2
  235. package/dist/{assets/Caret_Right-BhO63VKn.js → icons/Caret_Right.svg} +1 -2
  236. package/dist/icons/Caret_Up.svg +3 -0
  237. package/dist/icons/Cart.svg +3 -0
  238. package/dist/icons/Chat_Default.svg +3 -0
  239. package/dist/icons/Check.svg +3 -0
  240. package/dist/icons/Check_Filled.svg +3 -0
  241. package/dist/icons/Clear_X.svg +3 -0
  242. package/dist/icons/Close.svg +3 -0
  243. package/dist/icons/Download.svg +3 -0
  244. package/dist/icons/Edit.svg +3 -0
  245. package/dist/icons/Ellipsis.svg +3 -0
  246. package/dist/icons/Ellipsis_Filled.svg +3 -0
  247. package/dist/icons/Error.svg +3 -0
  248. package/dist/{assets/Error-X6enME_5.js → icons/Error_Filled.svg} +1 -2
  249. package/dist/icons/External_Link.svg +3 -0
  250. package/dist/icons/Globe.svg +3 -0
  251. package/dist/icons/Help.svg +3 -0
  252. package/dist/icons/Help_Filled.svg +3 -0
  253. package/dist/icons/Info.svg +3 -0
  254. package/dist/icons/Lightbulb.svg +3 -0
  255. package/dist/icons/Lightbulb_Filled.svg +3 -0
  256. package/dist/icons/Location.svg +3 -0
  257. package/dist/icons/Medication.svg +3 -0
  258. package/dist/icons/Menu.svg +3 -0
  259. package/dist/icons/Message_Unread.svg +3 -0
  260. package/dist/icons/Message_Unread_Filled.svg +3 -0
  261. package/dist/icons/Minus.svg +3 -0
  262. package/dist/icons/Notification.svg +3 -0
  263. package/dist/icons/Play_Arrow.svg +3 -0
  264. package/dist/icons/Play_Circle.svg +3 -0
  265. package/dist/icons/Rectangle.svg +1 -0
  266. package/dist/icons/Refill.svg +4 -0
  267. package/dist/icons/Search.svg +3 -0
  268. package/dist/icons/Spinner_75.svg +3 -0
  269. package/dist/icons/Undo.svg +3 -0
  270. package/dist/icons/Vaccinations.svg +5 -0
  271. package/dist/icons/Warning.svg +3 -0
  272. package/dist/icons/add.svg +2 -2
  273. package/dist/icons/calendar.svg +2 -4
  274. package/dist/icons/wellness.svg +2 -6
  275. package/dist/iframe.html +104 -77
  276. package/dist/index.html +91 -32
  277. package/dist/index.json +1 -1
  278. package/dist/logo.svg +1 -0
  279. package/dist/project.json +1 -1
  280. package/dist/sb-addons/a11y-3/manager-bundle.js +55 -3
  281. package/dist/sb-addons/docs-1/manager-bundle.js +16 -1
  282. package/dist/sb-addons/storybook-4/manager-bundle.js +8 -0
  283. package/dist/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +102 -100
  284. package/dist/sb-addons/themes-2/manager-bundle.js +1 -1
  285. package/dist/sb-manager/globals-runtime.js +16334 -13685
  286. package/dist/sb-manager/globals.js +1 -1
  287. package/dist/sb-manager/manager-stores.js +1 -1
  288. package/dist/sb-manager/runtime.js +3175 -1000
  289. package/lib/components/accordion/accordion.styles.d.ts.map +1 -1
  290. package/lib/components/accordion/accordion.styles.js +8 -0
  291. package/lib/components/accordion/accordion.styles.js.map +1 -1
  292. package/lib/components/accordion-item/accordion-item.styles.d.ts.map +1 -1
  293. package/lib/components/accordion-item/accordion-item.styles.js +8 -0
  294. package/lib/components/accordion-item/accordion-item.styles.js.map +1 -1
  295. package/lib/components/alert/alert.styles.d.ts.map +1 -1
  296. package/lib/components/alert/alert.styles.js +16 -0
  297. package/lib/components/alert/alert.styles.js.map +1 -1
  298. package/lib/components/badge/badge.d.ts +1 -1
  299. package/lib/components/badge/badge.js.map +1 -1
  300. package/lib/components/badge/badge.styles.d.ts.map +1 -1
  301. package/lib/components/badge/badge.styles.js +8 -0
  302. package/lib/components/badge/badge.styles.js.map +1 -1
  303. package/lib/components/band/band.styles.d.ts.map +1 -1
  304. package/lib/components/band/band.styles.js +8 -0
  305. package/lib/components/band/band.styles.js.map +1 -1
  306. package/lib/components/breadcrumbs/breadcrumbs.styles.d.ts.map +1 -1
  307. package/lib/components/breadcrumbs/breadcrumbs.styles.js +8 -0
  308. package/lib/components/breadcrumbs/breadcrumbs.styles.js.map +1 -1
  309. package/lib/components/breadcrumbs-item/breadcrumbs-item.styles.d.ts.map +1 -1
  310. package/lib/components/breadcrumbs-item/breadcrumbs-item.styles.js +8 -0
  311. package/lib/components/breadcrumbs-item/breadcrumbs-item.styles.js.map +1 -1
  312. package/lib/components/button/button.styles.d.ts.map +1 -1
  313. package/lib/components/button/button.styles.js +8 -0
  314. package/lib/components/button/button.styles.js.map +1 -1
  315. package/lib/components/button-group/button-group.styles.d.ts.map +1 -1
  316. package/lib/components/button-group/button-group.styles.js +8 -0
  317. package/lib/components/button-group/button-group.styles.js.map +1 -1
  318. package/lib/components/card/card.styles.d.ts.map +1 -1
  319. package/lib/components/card/card.styles.js +8 -0
  320. package/lib/components/card/card.styles.js.map +1 -1
  321. package/lib/components/checkbox-field/checkbox-field.styles.d.ts.map +1 -1
  322. package/lib/components/checkbox-field/checkbox-field.styles.js +8 -0
  323. package/lib/components/checkbox-field/checkbox-field.styles.js.map +1 -1
  324. package/lib/components/checkbox-field-item/checkbox-field-item.styles.d.ts.map +1 -1
  325. package/lib/components/checkbox-field-item/checkbox-field-item.styles.js +8 -0
  326. package/lib/components/checkbox-field-item/checkbox-field-item.styles.js.map +1 -1
  327. package/lib/components/danger-button/danger-button.styles.d.ts.map +1 -1
  328. package/lib/components/danger-button/danger-button.styles.js +8 -0
  329. package/lib/components/danger-button/danger-button.styles.js.map +1 -1
  330. package/lib/components/date-picker/calendar/calendar.styles.d.ts.map +1 -1
  331. package/lib/components/date-picker/calendar/calendar.styles.js +8 -0
  332. package/lib/components/date-picker/calendar/calendar.styles.js.map +1 -1
  333. package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.styles.d.ts.map +1 -1
  334. package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.styles.js +8 -0
  335. package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.styles.js.map +1 -1
  336. package/lib/components/date-picker/calendar-navigation/calendar-navigation.styles.d.ts.map +1 -1
  337. package/lib/components/date-picker/calendar-navigation/calendar-navigation.styles.js +8 -0
  338. package/lib/components/date-picker/calendar-navigation/calendar-navigation.styles.js.map +1 -1
  339. package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.styles.d.ts.map +1 -1
  340. package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.styles.js +8 -0
  341. package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.styles.js.map +1 -1
  342. package/lib/components/date-picker/date-picker.styles.d.ts.map +1 -1
  343. package/lib/components/date-picker/date-picker.styles.js +16 -0
  344. package/lib/components/date-picker/date-picker.styles.js.map +1 -1
  345. package/lib/components/divider/divider.styles.d.ts.map +1 -1
  346. package/lib/components/divider/divider.styles.js +8 -0
  347. package/lib/components/divider/divider.styles.js.map +1 -1
  348. package/lib/components/dropdown/dropdown.styles.d.ts.map +1 -1
  349. package/lib/components/dropdown/dropdown.styles.js +8 -0
  350. package/lib/components/dropdown/dropdown.styles.js.map +1 -1
  351. package/lib/components/dropdown-item/dropdown-item.styles.d.ts.map +1 -1
  352. package/lib/components/dropdown-item/dropdown-item.styles.js +8 -0
  353. package/lib/components/dropdown-item/dropdown-item.styles.js.map +1 -1
  354. package/lib/components/feature/feature.styles.d.ts.map +1 -1
  355. package/lib/components/feature/feature.styles.js +8 -0
  356. package/lib/components/feature/feature.styles.js.map +1 -1
  357. package/lib/components/field/field.styles.d.ts.map +1 -1
  358. package/lib/components/field/field.styles.js +8 -0
  359. package/lib/components/field/field.styles.js.map +1 -1
  360. package/lib/components/field-note/field-note.styles.d.ts.map +1 -1
  361. package/lib/components/field-note/field-note.styles.js +8 -0
  362. package/lib/components/field-note/field-note.styles.js.map +1 -1
  363. package/lib/components/footer/footer.styles.d.ts.map +1 -1
  364. package/lib/components/footer/footer.styles.js +8 -0
  365. package/lib/components/footer/footer.styles.js.map +1 -1
  366. package/lib/components/global-nav/global-nav.styles.d.ts.map +1 -1
  367. package/lib/components/global-nav/global-nav.styles.js +8 -0
  368. package/lib/components/global-nav/global-nav.styles.js.map +1 -1
  369. package/lib/components/global-nav-item/global-nav-item.styles.d.ts.map +1 -1
  370. package/lib/components/global-nav-item/global-nav-item.styles.js +8 -0
  371. package/lib/components/global-nav-item/global-nav-item.styles.js.map +1 -1
  372. package/lib/components/grid/grid.styles.d.ts.map +1 -1
  373. package/lib/components/grid/grid.styles.js +8 -0
  374. package/lib/components/grid/grid.styles.js.map +1 -1
  375. package/lib/components/grid-item/grid-item.styles.d.ts.map +1 -1
  376. package/lib/components/grid-item/grid-item.styles.js +8 -0
  377. package/lib/components/grid-item/grid-item.styles.js.map +1 -1
  378. package/lib/components/header/header.styles.d.ts.map +1 -1
  379. package/lib/components/header/header.styles.js +8 -0
  380. package/lib/components/header/header.styles.js.map +1 -1
  381. package/lib/components/heading/heading.d.ts.map +1 -1
  382. package/lib/components/heading/heading.js +7 -1
  383. package/lib/components/heading/heading.js.map +1 -1
  384. package/lib/components/heading/heading.styles.d.ts.map +1 -1
  385. package/lib/components/heading/heading.styles.js +8 -0
  386. package/lib/components/heading/heading.styles.js.map +1 -1
  387. package/lib/components/hero/hero.styles.d.ts.map +1 -1
  388. package/lib/components/hero/hero.styles.js +8 -0
  389. package/lib/components/hero/hero.styles.js.map +1 -1
  390. package/lib/components/icon/icon.d.ts +4 -4
  391. package/lib/components/icon/icon.js +6 -6
  392. package/lib/components/icon/icon.js.map +1 -1
  393. package/lib/components/icon/icon.styles.d.ts.map +1 -1
  394. package/lib/components/icon/icon.styles.js +8 -0
  395. package/lib/components/icon/icon.styles.js.map +1 -1
  396. package/lib/components/inline-alert/inline-alert.styles.d.ts.map +1 -1
  397. package/lib/components/inline-alert/inline-alert.styles.js +8 -0
  398. package/lib/components/inline-alert/inline-alert.styles.js.map +1 -1
  399. package/lib/components/layout/layout.styles.d.ts.map +1 -1
  400. package/lib/components/layout/layout.styles.js +8 -0
  401. package/lib/components/layout/layout.styles.js.map +1 -1
  402. package/lib/components/layout-container/layout-container.styles.d.ts.map +1 -1
  403. package/lib/components/layout-container/layout-container.styles.js +8 -0
  404. package/lib/components/layout-container/layout-container.styles.js.map +1 -1
  405. package/lib/components/layout-section/layout-section.styles.d.ts.map +1 -1
  406. package/lib/components/layout-section/layout-section.styles.js +8 -0
  407. package/lib/components/layout-section/layout-section.styles.js.map +1 -1
  408. package/lib/components/linelength-container/linelength-container.styles.d.ts.map +1 -1
  409. package/lib/components/linelength-container/linelength-container.styles.js +8 -0
  410. package/lib/components/linelength-container/linelength-container.styles.js.map +1 -1
  411. package/lib/components/link/link.styles.d.ts.map +1 -1
  412. package/lib/components/link/link.styles.js +8 -0
  413. package/lib/components/link/link.styles.js.map +1 -1
  414. package/lib/components/link-list/link-list.styles.d.ts.map +1 -1
  415. package/lib/components/link-list/link-list.styles.js +8 -0
  416. package/lib/components/link-list/link-list.styles.js.map +1 -1
  417. package/lib/components/link-list-item/link-list-item.styles.d.ts.map +1 -1
  418. package/lib/components/link-list-item/link-list-item.styles.js +8 -0
  419. package/lib/components/link-list-item/link-list-item.styles.js.map +1 -1
  420. package/lib/components/list/list.styles.d.ts.map +1 -1
  421. package/lib/components/list/list.styles.js +8 -0
  422. package/lib/components/list/list.styles.js.map +1 -1
  423. package/lib/components/list-item/list-item.styles.d.ts.map +1 -1
  424. package/lib/components/list-item/list-item.styles.js +8 -0
  425. package/lib/components/list-item/list-item.styles.js.map +1 -1
  426. package/lib/components/loading-spinner/loading-spinner.styles.d.ts.map +1 -1
  427. package/lib/components/loading-spinner/loading-spinner.styles.js +8 -0
  428. package/lib/components/loading-spinner/loading-spinner.styles.js.map +1 -1
  429. package/lib/components/logo/logo.styles.d.ts.map +1 -1
  430. package/lib/components/logo/logo.styles.js +8 -0
  431. package/lib/components/logo/logo.styles.js.map +1 -1
  432. package/lib/components/main/main.styles.d.ts.map +1 -1
  433. package/lib/components/main/main.styles.js +8 -0
  434. package/lib/components/main/main.styles.js.map +1 -1
  435. package/lib/components/modal/modal.styles.d.ts.map +1 -1
  436. package/lib/components/modal/modal.styles.js +8 -0
  437. package/lib/components/modal/modal.styles.js.map +1 -1
  438. package/lib/components/multi-select/multi-select.styles.d.ts.map +1 -1
  439. package/lib/components/multi-select/multi-select.styles.js +8 -0
  440. package/lib/components/multi-select/multi-select.styles.js.map +1 -1
  441. package/lib/components/nav-container/nav-container.styles.d.ts.map +1 -1
  442. package/lib/components/nav-container/nav-container.styles.js +8 -0
  443. package/lib/components/nav-container/nav-container.styles.js.map +1 -1
  444. package/lib/components/page-header/page-header.styles.d.ts.map +1 -1
  445. package/lib/components/page-header/page-header.styles.js +8 -0
  446. package/lib/components/page-header/page-header.styles.js.map +1 -1
  447. package/lib/components/pagination/page-counter/page-counter.styles.d.ts.map +1 -1
  448. package/lib/components/pagination/page-counter/page-counter.styles.js +8 -0
  449. package/lib/components/pagination/page-counter/page-counter.styles.js.map +1 -1
  450. package/lib/components/pagination/pagination.styles.d.ts.map +1 -1
  451. package/lib/components/pagination/pagination.styles.js +8 -0
  452. package/lib/components/pagination/pagination.styles.js.map +1 -1
  453. package/lib/components/percent-bar/percent-bar.styles.d.ts.map +1 -1
  454. package/lib/components/percent-bar/percent-bar.styles.js +8 -0
  455. package/lib/components/percent-bar/percent-bar.styles.js.map +1 -1
  456. package/lib/components/popover/popover.styles.d.ts.map +1 -1
  457. package/lib/components/popover/popover.styles.js +8 -0
  458. package/lib/components/popover/popover.styles.js.map +1 -1
  459. package/lib/components/primary-nav/primary-nav.styles.d.ts.map +1 -1
  460. package/lib/components/primary-nav/primary-nav.styles.js +8 -0
  461. package/lib/components/primary-nav/primary-nav.styles.js.map +1 -1
  462. package/lib/components/primary-nav-item/primary-nav-item.styles.d.ts.map +1 -1
  463. package/lib/components/primary-nav-item/primary-nav-item.styles.js +8 -0
  464. package/lib/components/primary-nav-item/primary-nav-item.styles.js.map +1 -1
  465. package/lib/components/progress-meter/progress-meter.styles.d.ts.map +1 -1
  466. package/lib/components/progress-meter/progress-meter.styles.js +8 -0
  467. package/lib/components/progress-meter/progress-meter.styles.js.map +1 -1
  468. package/lib/components/progress-steps/progress-steps.styles.d.ts.map +1 -1
  469. package/lib/components/progress-steps/progress-steps.styles.js +8 -0
  470. package/lib/components/progress-steps/progress-steps.styles.js.map +1 -1
  471. package/lib/components/progress-steps-item/progress-steps-item.styles.d.ts.map +1 -1
  472. package/lib/components/progress-steps-item/progress-steps-item.styles.js +8 -0
  473. package/lib/components/progress-steps-item/progress-steps-item.styles.js.map +1 -1
  474. package/lib/components/radio-field/radio-field.styles.d.ts.map +1 -1
  475. package/lib/components/radio-field/radio-field.styles.js +8 -0
  476. package/lib/components/radio-field/radio-field.styles.js.map +1 -1
  477. package/lib/components/radio-field-item/radio-field-item.styles.d.ts.map +1 -1
  478. package/lib/components/radio-field-item/radio-field-item.styles.js +8 -0
  479. package/lib/components/radio-field-item/radio-field-item.styles.js.map +1 -1
  480. package/lib/components/remove-tag/remove-tag.styles.d.ts.map +1 -1
  481. package/lib/components/remove-tag/remove-tag.styles.js +8 -0
  482. package/lib/components/remove-tag/remove-tag.styles.js.map +1 -1
  483. package/lib/components/section/section.styles.d.ts.map +1 -1
  484. package/lib/components/section/section.styles.js +8 -0
  485. package/lib/components/section/section.styles.js.map +1 -1
  486. package/lib/components/select/select.styles.d.ts.map +1 -1
  487. package/lib/components/select/select.styles.js +8 -0
  488. package/lib/components/select/select.styles.js.map +1 -1
  489. package/lib/components/select-tile/select-tile.styles.d.ts.map +1 -1
  490. package/lib/components/select-tile/select-tile.styles.js +8 -0
  491. package/lib/components/select-tile/select-tile.styles.js.map +1 -1
  492. package/lib/components/select-tile-list/select-tile-list.styles.d.ts.map +1 -1
  493. package/lib/components/select-tile-list/select-tile-list.styles.js +8 -0
  494. package/lib/components/select-tile-list/select-tile-list.styles.js.map +1 -1
  495. package/lib/components/skeleton-loader/skeleton-loader.styles.d.ts.map +1 -1
  496. package/lib/components/skeleton-loader/skeleton-loader.styles.js +8 -0
  497. package/lib/components/skeleton-loader/skeleton-loader.styles.js.map +1 -1
  498. package/lib/components/split-button/split-button.styles.d.ts.map +1 -1
  499. package/lib/components/split-button/split-button.styles.js +8 -0
  500. package/lib/components/split-button/split-button.styles.js.map +1 -1
  501. package/lib/components/submenu/submenu.styles.d.ts.map +1 -1
  502. package/lib/components/submenu/submenu.styles.js +8 -0
  503. package/lib/components/submenu/submenu.styles.js.map +1 -1
  504. package/lib/components/submenu-item/submenu-item.styles.d.ts.map +1 -1
  505. package/lib/components/submenu-item/submenu-item.styles.js +8 -0
  506. package/lib/components/submenu-item/submenu-item.styles.js.map +1 -1
  507. package/lib/components/tab/tab.styles.d.ts.map +1 -1
  508. package/lib/components/tab/tab.styles.js +8 -0
  509. package/lib/components/tab/tab.styles.js.map +1 -1
  510. package/lib/components/tab-panel/tab-panel.styles.d.ts.map +1 -1
  511. package/lib/components/tab-panel/tab-panel.styles.js +8 -0
  512. package/lib/components/tab-panel/tab-panel.styles.js.map +1 -1
  513. package/lib/components/table/table.styles.d.ts.map +1 -1
  514. package/lib/components/table/table.styles.js +8 -0
  515. package/lib/components/table/table.styles.js.map +1 -1
  516. package/lib/components/table-body/table-body.styles.d.ts.map +1 -1
  517. package/lib/components/table-body/table-body.styles.js +8 -0
  518. package/lib/components/table-body/table-body.styles.js.map +1 -1
  519. package/lib/components/table-cell/table-cell.styles.d.ts.map +1 -1
  520. package/lib/components/table-cell/table-cell.styles.js +8 -0
  521. package/lib/components/table-cell/table-cell.styles.js.map +1 -1
  522. package/lib/components/table-header/table-header.styles.d.ts.map +1 -1
  523. package/lib/components/table-header/table-header.styles.js +8 -0
  524. package/lib/components/table-header/table-header.styles.js.map +1 -1
  525. package/lib/components/table-header-cell/table-header-cell.styles.d.ts.map +1 -1
  526. package/lib/components/table-header-cell/table-header-cell.styles.js +8 -0
  527. package/lib/components/table-header-cell/table-header-cell.styles.js.map +1 -1
  528. package/lib/components/table-object/table-object.styles.d.ts.map +1 -1
  529. package/lib/components/table-object/table-object.styles.js +8 -0
  530. package/lib/components/table-object/table-object.styles.js.map +1 -1
  531. package/lib/components/table-row/table-row.styles.d.ts.map +1 -1
  532. package/lib/components/table-row/table-row.styles.js +8 -0
  533. package/lib/components/table-row/table-row.styles.js.map +1 -1
  534. package/lib/components/tabs/tabs.styles.d.ts.map +1 -1
  535. package/lib/components/tabs/tabs.styles.js +8 -0
  536. package/lib/components/tabs/tabs.styles.js.map +1 -1
  537. package/lib/components/tag/tag.styles.d.ts.map +1 -1
  538. package/lib/components/tag/tag.styles.js +8 -0
  539. package/lib/components/tag/tag.styles.js.map +1 -1
  540. package/lib/components/tag-list/tag-list.styles.d.ts.map +1 -1
  541. package/lib/components/tag-list/tag-list.styles.js +8 -0
  542. package/lib/components/tag-list/tag-list.styles.js.map +1 -1
  543. package/lib/components/tertiary-nav/tertiary-nav.styles.d.ts.map +1 -1
  544. package/lib/components/tertiary-nav/tertiary-nav.styles.js +8 -0
  545. package/lib/components/tertiary-nav/tertiary-nav.styles.js.map +1 -1
  546. package/lib/components/tertiary-nav-item/tertiary-nav-item.styles.d.ts.map +1 -1
  547. package/lib/components/tertiary-nav-item/tertiary-nav-item.styles.js +8 -0
  548. package/lib/components/tertiary-nav-item/tertiary-nav-item.styles.js.map +1 -1
  549. package/lib/components/text-link/text-link.styles.d.ts.map +1 -1
  550. package/lib/components/text-link/text-link.styles.js +8 -0
  551. package/lib/components/text-link/text-link.styles.js.map +1 -1
  552. package/lib/components/text-passage/text-passage-light-dom.styles.d.ts.map +1 -1
  553. package/lib/components/text-passage/text-passage-light-dom.styles.js +8 -0
  554. package/lib/components/text-passage/text-passage-light-dom.styles.js.map +1 -1
  555. package/lib/components/text-passage/text-passage.styles.d.ts.map +1 -1
  556. package/lib/components/text-passage/text-passage.styles.js +8 -0
  557. package/lib/components/text-passage/text-passage.styles.js.map +1 -1
  558. package/lib/components/tooltip/tooltip.styles.d.ts.map +1 -1
  559. package/lib/components/tooltip/tooltip.styles.js +8 -0
  560. package/lib/components/tooltip/tooltip.styles.js.map +1 -1
  561. package/lib/components/utility-nav/utility-nav.styles.d.ts.map +1 -1
  562. package/lib/components/utility-nav/utility-nav.styles.js +8 -0
  563. package/lib/components/utility-nav/utility-nav.styles.js.map +1 -1
  564. package/lib/components/utility-nav-item/utility-nav-item.styles.d.ts.map +1 -1
  565. package/lib/components/utility-nav-item/utility-nav-item.styles.js +8 -0
  566. package/lib/components/utility-nav-item/utility-nav-item.styles.js.map +1 -1
  567. package/lib/design-tokens/brands/cre8/css/tokens_brand.css +1 -1
  568. package/lib/design-tokens/core/scss/theming/component.css +1 -1
  569. package/lib/design-tokens/core/scss/theming/variables.css +7 -1
  570. package/lib/design-tokens/core/scss/theming/variables.scss +11 -0
  571. package/lib/icons/cre8-icons.svg +1 -1
  572. package/mcp-manifest.json +2 -2
  573. package/package.json +14 -12
  574. package/react-manifest.json +3 -3
  575. package/dist/Image.png +0 -0
  576. package/dist/assets/Changelog-Documentation-CblO0Xot.js +0 -3
  577. package/dist/assets/Code-Guidelines-BRHT7M6Y.js +0 -3
  578. package/dist/assets/Color-64QXVMR3-CVvl9AcC.js +0 -1
  579. package/dist/assets/Contributing-Guidelines-Q4jfpqq1.js +0 -3
  580. package/dist/assets/DocsRenderer-HT7GNKAR-Bc0l7s_g.js +0 -10
  581. package/dist/assets/Warning-CawqmTvB.js +0 -7
  582. package/dist/assets/WithTooltip-65CFNBJE-D4JJPWih.js +0 -9
  583. package/dist/assets/blocks-B_WQ1U89.js +0 -761
  584. package/dist/assets/button-Bt9tRB7v.js +0 -932
  585. package/dist/assets/checkbox-field-item.stories-Wbkn0aOb.js +0 -39
  586. package/dist/assets/directive-b18f_ppQ.js +0 -1
  587. package/dist/assets/dropdown-item.stories-Dxn0MeE8.js +0 -26
  588. package/dist/assets/field-note.stories-CT0_DymI.js +0 -27
  589. package/dist/assets/formatter-EIJCOSYU-CYrt3ugJ.js +0 -1
  590. package/dist/assets/global-nav-item.stories-C_7FzIWj.js +0 -1
  591. package/dist/assets/icon-description.stories-BF370oI5.js +0 -3
  592. package/dist/assets/icon.stories-C73dxBRO.js +0 -11
  593. package/dist/assets/if-defined-sxEueMHN.js +0 -1
  594. package/dist/assets/iframe-CdWmiVXf.js +0 -9693
  595. package/dist/assets/iframe-vZZLtGTk.css +0 -1
  596. package/dist/assets/index-DSuzaFN1.js +0 -1
  597. package/dist/assets/link.stories-tvwExHzK.js +0 -88
  598. package/dist/assets/matchers-ZRZBO4XZ-ItTrJwDz.js +0 -14
  599. package/dist/assets/progress-steps-item.stories-y3zQoQgv.js +0 -56
  600. package/dist/assets/select-tile-etSpH07h.js +0 -47
  601. package/dist/assets/spread-BOaHI3Dl.js +0 -1
  602. package/dist/assets/state-BQD-SkUn.js +0 -1
  603. package/dist/assets/story-helpers-BJLZYDac.js +0 -38
  604. package/dist/assets/syntaxhighlighter-OH4MV7E3-ByMlOdlq.js +0 -6
  605. package/dist/assets/text-link.stories-D0m86xl-.js +0 -1
  606. package/dist/assets/unsafe-html-BLUBm7l3.js +0 -1
  607. package/dist/cre8.png +0 -0
  608. package/dist/icons/check.svg +0 -3
  609. package/dist/icons/close.svg +0 -3
  610. package/dist/icons/download.svg +0 -5
  611. package/dist/icons/edit.svg +0 -5
  612. package/dist/icons/ellipsis.svg +0 -3
  613. package/dist/icons/error.svg +0 -3
  614. package/dist/icons/globe.svg +0 -3
  615. package/dist/icons/help.svg +0 -3
  616. package/dist/icons/info.svg +0 -3
  617. package/dist/icons/menu.svg +0 -5
  618. package/dist/icons/minus.svg +0 -6
  619. package/dist/icons/search.svg +0 -10
  620. package/dist/icons/warning.svg +0 -3
  621. /package/lib/icons/{express-scripts copy.svg → pharmacy copy.svg} +0 -0
  622. /package/lib/icons/{express-scripts.svg → pharmacy.svg} +0 -0
@@ -1,761 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./syntaxhighlighter-OH4MV7E3-ByMlOdlq.js","./iframe-CdWmiVXf.js","./preload-helper-PPVm8Dsz.js","./iframe-vZZLtGTk.css","./_commonjsHelpers-DaWZu8wl.js","./formatter-EIJCOSYU-CYrt3ugJ.js","./WithTooltip-65CFNBJE-D4JJPWih.js","./Color-64QXVMR3-CVvl9AcC.js"])))=>i.map(i=>d[i]);
2
- import{_ as kr}from"./preload-helper-PPVm8Dsz.js";import{j as rr,k as $_,l as C_,m as Hp,n as __,o as T_,s as A_,p as O_,q as R_,t as D_,v as P_,w as es,x as Up,y as F_,z as I_,B as L_,C as k_,D as N_,F as M_,G as B_,H as j_,I as H_,J as U_,K as z_,L as K_,M as G_,N as W_,O as V_,P as q_,Q as Y_,R as zp,f as Je,S as _a,e as ot,T as Ke,a as w,c as X_,d as J_,U as Ta,V as Kp,W as Z_,X as ts}from"./iframe-CdWmiVXf.js";import{g as Id}from"./_commonjsHelpers-DaWZu8wl.js";function Q_(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const o in n)if(o!=="default"&&!(o in e)){const a=Object.getOwnPropertyDescriptor(n,o);a&&Object.defineProperty(e,o,a.get?a:{enumerable:!0,get:()=>n[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function eT(e,t){let r={},n=Object.keys(e);for(let o=0;o<n.length;o++){let a=n[o],i=e[a];r[a]=t(i,a,e)}return r}function tT(e){return e==="__proto__"}function ht(e,t,r){let n=Object.keys(t);for(let o=0;o<n.length;o++){let a=n[o];if(tT(a))continue;let i=t[a],l=e[a],s=r(l,i,a,e,t);s!==void 0?e[a]=s:Array.isArray(i)?Array.isArray(l)?e[a]=ht(l,i,r):e[a]=ht([],i,r):rr(i)?rr(l)?e[a]=ht(l,i,r):e[a]=ht({},i,r):(l===void 0||i!==void 0)&&(e[a]=i)}return e}function bo(e,t){let r={};for(let n=0;n<t.length;n++){let o=t[n];Object.hasOwn(e,o)&&(r[o]=e[o])}return r}function rs(e){if($_(e))return e;if(Array.isArray(e)||C_(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e),r=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new r(e);if(e instanceof RegExp){let n=new r(e);return n.lastIndex=e.lastIndex,n}if(e instanceof DataView)return new r(e.buffer.slice(0));if(e instanceof Error){let n=new r(e.message);return n.stack=e.stack,n.name=e.name,n.cause=e.cause,n}if(typeof File<"u"&&e instanceof File)return new r([e],e.name,{type:e.type,lastModified:e.lastModified});if(typeof e=="object"){let n=Object.create(t);return Object.assign(n,e)}return e}function rT(e,t){let r={...e};for(let n=0;n<t.length;n++){let o=t[n];delete r[o]}return r}function ns(e,t){return ht(rs(e),t,function r(n,o){if(Array.isArray(o))return Array.isArray(n)?ht(rs(n),o,r):ht([],o,r);if(rr(o))return rr(n)?ht(rs(n),o,r):ht({},o,r)})}function nT(){}function oT(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function aT(e,t,r){return Ro(e,t,void 0,void 0,void 0,void 0,r)}function Ro(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 No(e,t,a,i)}return No(e,t,a,i)}function No(e,t,r,n){if(Object.is(e,t))return!0;let o=Hp(e),a=Hp(t);if(o===zp&&(o=es),a===zp&&(a=es),o!==a)return!1;switch(o){case P_:return e.toString()===t.toString();case D_:{let s=e.valueOf(),u=t.valueOf();return oT(s,u)}case R_:case O_:case A_:return Object.is(e.valueOf(),t.valueOf());case T_:return e.source===t.source&&e.flags===t.flags;case __: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 Y_:{if(e.size!==t.size)return!1;for(let[s,u]of e.entries())if(!t.has(s)||!Ro(u,t.get(s),s,e,t,r,n))return!1;return!0}case q_:{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(g=>Ro(d,g,void 0,e,t,r,n));if(f===-1)return!1;u.splice(f,1)}return!0}case V_:case W_:case G_:case K_:case z_:case U_:case H_:case j_:case B_:case M_:case N_:case k_:{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(!Ro(e[s],t[s],s,e,t,r,n))return!1;return!0}case L_:return e.byteLength!==t.byteLength?!1:No(new Uint8Array(e),new Uint8Array(t),r,n);case I_:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:No(new Uint8Array(e),new Uint8Array(t),r,n);case F_:return e.name===t.name&&e.message===t.message;case es:{if(!(No(e.constructor,t.constructor,r,n)||rr(e)&&rr(t)))return!1;let s=[...Object.keys(e),...Up(e)],u=[...Object.keys(t),...Up(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 g=t[d];if(!Ro(f,g,d,e,t,r,n))return!1}return!0}default:return!1}}finally{r.delete(e),r.delete(t)}}function Yt(e,t){return aT(e,t,nT)}var Gp="backgrounds",iT="outline",lT={light:{name:"light",value:"#F8F8F8"},dark:{name:"dark",value:"#333"}};function sT(){try{return!!globalThis.__vitest_browser__||!!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/)}catch{return!1}}var Hn={PLAY_FN:"play-fn",DEV:"dev",TEST:"test"},Wp={_docs:(e,t)=>t?e.type!=="docs":e.type==="docs",_play:(e,t)=>t?e.type!=="story"||!e.tags?.includes(Hn.PLAY_FN):e.type==="story"&&!!e.tags?.includes(Hn.PLAY_FN),_test:(e,t)=>t?e.type!=="story"||e.subtype!=="test":e.type==="story"&&e.subtype==="test"},uT=e=>(t,r)=>r?!t.tags?.includes(e):!!t.tags?.includes(e),lb=Je({"../../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}}}),Ld=Je({"../../node_modules/picoquery/lib/shared.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=e.defaultShouldSerializeObject=e.defaultValueSerializer=void 0;var t=lb(),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}}}),sb=Je({"../../node_modules/picoquery/lib/object-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getDeepObject=o,e.stringifyObject=c;var t=Ld(),r=lb();function n(d){return d==="__proto__"||d==="constructor"||d==="prototype"}function o(d,f,g,y,b){if(n(f))return d;let v=d[f];return typeof v=="object"&&v!==null?v:!y&&(b||typeof g=="number"||typeof g=="string"&&g*0===0&&g.indexOf(".")===-1)?d[f]=[]:d[f]={}}var a=20,i="[]",l="[",s="]",u=".";function c(d,f,g=0,y,b){let{nestingSyntax:v=t.defaultOptions.nestingSyntax,arrayRepeat:h=t.defaultOptions.arrayRepeat,arrayRepeatSyntax:E=t.defaultOptions.arrayRepeatSyntax,nesting:S=t.defaultOptions.nesting,delimiter:x=t.defaultOptions.delimiter,valueSerializer:_=t.defaultOptions.valueSerializer,shouldSerializeObject:$=t.defaultOptions.shouldSerializeObject}=f,C=typeof x=="number"?String.fromCharCode(x):x,A=b===!0&&h,D=v==="dot"||v==="js"&&!b;if(g>a)return"";let F="",T=!0,N=!1;for(let L in d){let R=d[L];if(R===void 0)continue;let I;y?(I=y,A?E==="bracket"&&(I+=i):D?(I+=u,I+=L):(I+=l,I+=L,I+=s)):I=L,T||(F+=C),typeof R=="object"&&R!==null&&!$(R)?(N=R.pop!==void 0,(S||h&&N)&&(F+=c(R,f,g+1,I,N))):(F+=(0,r.encodeString)(I),F+="=",F+=_(R,L)),T&&(T=!1)}return F}}}),cT=Je({"../../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,g=s,y=t;for(;s>-1&&s<u;){let b=i(l[s+1],4),v=i(l[s+2],0),h=b|v,E=n[h];if(y=n[256+y+E],f=f<<6|h&n[364+E],y===t)c+=l.slice(d,g),c+=f<=65535?String.fromCharCode(f):String.fromCharCode(55232+(f>>10),56320+(f&1023)),f=0,d=s+3,s=g=l.indexOf("%",d);else{if(y===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}}}),dT=Je({"../../node_modules/picoquery/lib/parse.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.numberValueDeserializer=e.numberKeyDeserializer=void 0,e.parse=u;var t=sb(),r=Ld(),n=cT(),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,g,y){let b=c.substring(d,f);return g&&(b=b.replace(i," ")),y&&(b=(0,n.decodeURIComponent)(b)||b),b}function u(c,d){let{valueDeserializer:f=r.defaultOptions.valueDeserializer,keyDeserializer:g=r.defaultOptions.keyDeserializer,arrayRepeatSyntax:y=r.defaultOptions.arrayRepeatSyntax,nesting:b=r.defaultOptions.nesting,arrayRepeat:v=r.defaultOptions.arrayRepeat,nestingSyntax:h=r.defaultOptions.nestingSyntax,delimiter:E=r.defaultOptions.delimiter}=d??{},S=typeof E=="string"?E.charCodeAt(0):E,x=h==="js",_=new l;if(typeof c!="string")return _;let $=c.length,C="",A=-1,D=-1,F=-1,T=_,N,L="",R="",I=!1,k=!1,M=!1,H=!1,U=!1,B=!1,O=0,j=-1,G=-1,K=-1;for(let z=0;z<$+1;z++){if(O=z!==$?c.charCodeAt(z):S,O===S){if(B=D>A,B||(D=z),F!==D-1&&(R=s(c,F+1,j>-1?j:D,M,I),L=g(R),N!==void 0&&(T=(0,t.getDeepObject)(T,N,L,x&&U,void 0))),B||L!==""){B&&(C=c.slice(D+1,z),H&&(C=C.replace(i," ")),k&&(C=(0,n.decodeURIComponent)(C)||C));let W=f(C,L);if(v){let q=T[L];q===void 0?j>-1?T[L]=[W]:T[L]=W:q.pop?q.push(W):T[L]=[q,W]}else T[L]=W}C="",A=z,D=z,I=!1,k=!1,M=!1,H=!1,U=!1,j=-1,F=z,T=_,N=void 0,L=""}else O===93?(v&&y==="bracket"&&K===91&&(j=G),b&&(h==="index"||x)&&D<=A&&(F!==G&&(R=s(c,F+1,z,M,I),L=g(R),N!==void 0&&(T=(0,t.getDeepObject)(T,N,L,void 0,void 0)),N=L,M=!1,I=!1),F=z,U=!1)):O===46?b&&(h==="dot"||x)&&D<=A&&(F!==G&&(R=s(c,F+1,z,M,I),L=g(R),N!==void 0&&(T=(0,t.getDeepObject)(T,N,L,x)),N=L,M=!1,I=!1),U=!0,F=z):O===91?b&&(h==="index"||x)&&D<=A&&(F!==G&&(R=s(c,F+1,z,M,I),L=g(R),x&&N!==void 0&&(T=(0,t.getDeepObject)(T,N,L,x)),N=L,M=!1,I=!1,U=!1),F=z):O===61?D<=A?D=z:k=!0:O===43?D>A?H=!0:M=!0:O===37&&(D>A?k=!0:I=!0);G=z,K=O}return _}}}),fT=Je({"../../node_modules/picoquery/lib/stringify.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=r;var t=sb();function r(n,o){if(n===null||typeof n!="object")return"";let a=o??{};return(0,t.stringifyObject)(n,a)}}}),ub=Je({"../../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=dT();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return n.parse}});var o=fT();Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return o.stringify}}),r(Ld(),e)}}),pT="Invariant failed";function uc(e,t){if(!e)throw new Error(pT)}var mn=Je({"../../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 globalThis<"u"?n=globalThis: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 _a=="function"&&_a;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 g=o[u]={exports:{}};n[u][0].call(g.exports,function(y){var b=n[u][1][y];return i(b||y)},g,g.exports,r,n,o,a)}return o[u].exports}for(var l=typeof _a=="function"&&_a,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 g=function(){var y=c,b,v,h=arguments.length-1,E=Array(h+1),S=!0,x;if((g.numArgs||g.numArgs===0)&&g.numArgs!==h+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(x=0;x<h;x++){if(E[x]={cacheItem:y,arg:arguments[x]},y.has(arguments[x])){y=y.get(arguments[x]);continue}S=!1,b=new a(!1),y.set(arguments[x],b),y=b}return S&&(y.has(arguments[h])?v=y.get(arguments[h]):S=!1),S||(v=f.apply(null,arguments),y.set(arguments[h],v)),u>0&&(E[h]={cacheItem:y,arg:arguments[h]},S?i(d,E):d.push(E),d.length>u&&l(d.shift())),g.wasMemoized=S,g.numArgs=h+1,v};return g.limit=u,g.wasMemoized=!1,g.cache=c,g.lru=d,g}};function i(u,c){var d=u.length,f=c.length,g,y,b;for(y=0;y<d;y++){for(g=!0,b=0;b<f;b++)if(!s(u[y][b].arg,c[b].arg)){g=!1;break}if(g)break}u.push(u.splice(y,1)[0])}function l(u){var c=u.length,d=u[c-1],f,g;for(d.cacheItem.delete(d.arg),g=c-2;g>=0&&(d=u[g],f=d.cacheItem.get(d.arg),!f||!f.size);g--)d.cacheItem.delete(d.arg)}function s(u,c){return u===c||u!==u&&c!==c}},{"map-or-similar":1}]},{},[3])(3)})}});function $t(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,g){return g===0?f:""+c+f}).join(`
7
- `)),i+=d+n[s+1]}),i}var Qi="storybook/highlight",hT=`${Qi}/add`,gT=`${Qi}/remove`,mT=`${Qi}/reset`,yT=`${Qi}/scroll-into-view`,Vp=2147483647,_r=28,bT="storybook/actions",vT=`${bT}/action-event`,ET={depth:10,clearOnStoryChange:!0,limit:50};const{ImplicitActionsDuringRendering:ST}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{global:qp}=__STORYBOOK_MODULE_GLOBAL__,{addons:xT}=__STORYBOOK_MODULE_PREVIEW_API__;var cb=(e,t)=>{let r=Object.getPrototypeOf(e);return!r||t(r)?r:cb(r,t)},wT=e=>!!(typeof e=="object"&&e&&cb(e,t=>/^Synthetic(?:Base)?Event$/.test(t.constructor.name))&&typeof e.persist=="function"),$T=e=>{if(wT(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 kd(e,t={}){let r={...ET,...t},n=function(...o){if(t.implicit){let d=("__STORYBOOK_PREVIEW__"in qp?qp.__STORYBOOK_PREVIEW__:void 0)?.storyRenders.find(f=>f.phase==="playing"||f.phase==="rendering");if(d){let f=!globalThis?.FEATURES?.disallowImplicitActionsInRenderV8,g=new ST({phase:d.phase,name:e,deprecated:f});if(f)console.warn(g);else throw g}}let a=xT.getChannel(),i=Date.now().toString(36)+Math.random().toString(36).substring(2),l=5,s=o.map($T),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(vT,c)};return n.isAction=!0,n.implicit=t.implicit,n}var ir={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"},CT={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]},db=Object.entries(CT);function el(e){return String(e)}el.open="";el.close="";db.reduce((e,[t])=>(e[t]=el,e),{isColorSupported:!1});function _T(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 TT(e=!1){let t=_T(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 db)o[i]=t?n(a(l[0]),a(l[1]),l[2]):el;return o}var pr=TT();function fb(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 AT(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 sa(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 Nd(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 xi(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 Md(e,t,r,n,o,a){let i="",l=AT(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 OT=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,os=" ",RT=(e,t,r,n,o,a)=>{let i=e.toString();if(i==="ArrayContaining"||i==="ArrayNotContaining")return++n>t.maxDepth?`[${i}]`:`${i+os}[${xi(e.sample,t,r,n,o,a)}]`;if(i==="ObjectContaining"||i==="ObjectNotContaining")return++n>t.maxDepth?`[${i}]`:`${i+os}{${Md(e.sample,t,r,n,o,a)}}`;if(i==="StringMatching"||i==="StringNotMatching"||i==="StringContaining"||i==="StringNotContaining")return i+os+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()},DT=e=>e&&e.$$typeof===OT,PT={serialize:RT,test:DT},FT=" ",pb=new Set(["DOMStringMap","NamedNodeMap"]),IT=/^(?:HTML\w*Collection|NodeList)$/;function LT(e){return pb.has(e)||IT.test(e)}var kT=e=>e&&e.constructor&&!!e.constructor.name&&LT(e.constructor.name);function NT(e){return e.constructor.name==="NamedNodeMap"}var MT=(e,t,r,n,o,a)=>{let i=e.constructor.name;return++n>t.maxDepth?`[${i}]`:(t.min?"":i+FT)+(pb.has(i)?`{${Md(NT(e)?[...e].reduce((l,s)=>(l[s.name]=s.value,l),{}):{...e},t,r,n,o,a)}}`:`[${xi([...e],t,r,n,o,a)}]`)},BT={serialize:MT,test:kT};function hb(e){return e.replaceAll("<","&lt;").replaceAll(">","&gt;")}function Bd(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 jd(e,t,r,n,o,a){return e.map(i=>t.spacingOuter+r+(typeof i=="string"?gb(i,t):a(i,t,r,n,o))).join("")}function gb(e,t){let r=t.colors.content;return r.open+hb(e)+r.close}function jT(e,t){let r=t.colors.comment;return`${r.open}<!--${hb(e)}-->${r.close}`}function Hd(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 Ud(e,t){let r=t.colors.tag;return`${r.open}<${e}${r.close} …${r.open} />${r.close}`}var HT=1,mb=3,yb=8,bb=11,UT=/^(?:(?:HTML|SVG)\w*)?Element$/;function zT(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}function KT(e){let t=e.constructor.name,{nodeType:r,tagName:n}=e,o=typeof n=="string"&&n.includes("-")||zT(e);return r===HT&&(UT.test(t)||o)||r===mb&&t==="Text"||r===yb&&t==="Comment"||r===bb&&t==="DocumentFragment"}var GT=e=>{var t;return(e==null||(t=e.constructor)===null||t===void 0?void 0:t.name)&&KT(e)};function WT(e){return e.nodeType===mb}function VT(e){return e.nodeType===yb}function as(e){return e.nodeType===bb}var qT=(e,t,r,n,o,a)=>{if(WT(e))return gb(e.data,t);if(VT(e))return jT(e.data,t);let i=as(e)?"DocumentFragment":e.tagName.toLowerCase();return++n>t.maxDepth?Ud(i,t):Hd(i,Bd(as(e)?[]:Array.from(e.attributes,l=>l.name).sort(),as(e)?{}:[...e.attributes].reduce((l,s)=>(l[s.name]=s.value,l),{}),t,r+t.indent,n,o,a),jd(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,n,o,a),t,r)},YT={serialize:qT,test:GT},XT="@@__IMMUTABLE_ITERABLE__@@",JT="@@__IMMUTABLE_LIST__@@",ZT="@@__IMMUTABLE_KEYED__@@",QT="@@__IMMUTABLE_MAP__@@",Yp="@@__IMMUTABLE_ORDERED__@@",eA="@@__IMMUTABLE_RECORD__@@",tA="@@__IMMUTABLE_SEQ__@@",rA="@@__IMMUTABLE_SET__@@",nA="@@__IMMUTABLE_STACK__@@",Vn=e=>`Immutable.${e}`,tl=e=>`[${e}]`,zo=" ",Xp="…";function oA(e,t,r,n,o,a,i){return++n>t.maxDepth?tl(Vn(i)):`${Vn(i)+zo}{${sa(e.entries(),t,r,n,o,a)}}`}function aA(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 iA(e,t,r,n,o,a){let i=Vn(e._name||"Record");return++n>t.maxDepth?tl(i):`${i+zo}{${sa(aA(e),t,r,n,o,a)}}`}function lA(e,t,r,n,o,a){let i=Vn("Seq");return++n>t.maxDepth?tl(i):e[ZT]?`${i+zo}{${e._iter||e._object?sa(e.entries(),t,r,n,o,a):Xp}}`:`${i+zo}[${e._iter||e._array||e._collection||e._iterable?Nd(e.values(),t,r,n,o,a):Xp}]`}function is(e,t,r,n,o,a,i){return++n>t.maxDepth?tl(Vn(i)):`${Vn(i)+zo}[${Nd(e.values(),t,r,n,o,a)}]`}var sA=(e,t,r,n,o,a)=>e[QT]?oA(e,t,r,n,o,a,e[Yp]?"OrderedMap":"Map"):e[JT]?is(e,t,r,n,o,a,"List"):e[rA]?is(e,t,r,n,o,a,e[Yp]?"OrderedSet":"Set"):e[nA]?is(e,t,r,n,o,a,"Stack"):e[tA]?lA(e,t,r,n,o,a):iA(e,t,r,n,o,a),uA=e=>e&&(e[XT]===!0||e[eA]===!0),cA={serialize:sA,test:uA};function vb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Jp={exports:{}},be={},Zp;function dA(){if(Zp)return be;Zp=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"),g=Symbol.for("react.client.reference");function y(b){if(typeof b=="object"&&b!==null){var v=b.$$typeof;switch(v){case e:switch(b=b.type,b){case r:case o:case n:case s:case u:case f:return b;default:switch(b=b&&b.$$typeof,b){case i:case l:case d:case c:return b;case a:return b;default:return v}}case t:return v}}}return be.ContextConsumer=a,be.ContextProvider=i,be.Element=e,be.ForwardRef=l,be.Fragment=r,be.Lazy=d,be.Memo=c,be.Portal=t,be.Profiler=o,be.StrictMode=n,be.Suspense=s,be.SuspenseList=u,be.isContextConsumer=function(b){return y(b)===a},be.isContextProvider=function(b){return y(b)===i},be.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},be.isForwardRef=function(b){return y(b)===l},be.isFragment=function(b){return y(b)===r},be.isLazy=function(b){return y(b)===d},be.isMemo=function(b){return y(b)===c},be.isPortal=function(b){return y(b)===t},be.isProfiler=function(b){return y(b)===o},be.isStrictMode=function(b){return y(b)===n},be.isSuspense=function(b){return y(b)===s},be.isSuspenseList=function(b){return y(b)===u},be.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===o||b===n||b===s||b===u||typeof b=="object"&&b!==null&&(b.$$typeof===d||b.$$typeof===c||b.$$typeof===i||b.$$typeof===a||b.$$typeof===l||b.$$typeof===g||b.getModuleId!==void 0)},be.typeOf=y,be}var Qp;function fA(){return Qp||(Qp=1,Jp.exports=dA()),Jp.exports}var Eb=fA(),pA=vb(Eb),hA=fb({__proto__:null,default:pA},[Eb]),eh={exports:{}},me={},th;function gA(){if(th)return me;th=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"),g=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function b(v){if(typeof v=="object"&&v!==null){var h=v.$$typeof;switch(h){case e:switch(v=v.type,v){case r:case o:case n:case u:case c:return v;default:switch(v=v&&v.$$typeof,v){case l:case i:case s:case f:case d:case a:return v;default:return h}}case t:return h}}}return me.ContextConsumer=i,me.ContextProvider=a,me.Element=e,me.ForwardRef=s,me.Fragment=r,me.Lazy=f,me.Memo=d,me.Portal=t,me.Profiler=o,me.StrictMode=n,me.Suspense=u,me.SuspenseList=c,me.isAsyncMode=function(){return!1},me.isConcurrentMode=function(){return!1},me.isContextConsumer=function(v){return b(v)===i},me.isContextProvider=function(v){return b(v)===a},me.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},me.isForwardRef=function(v){return b(v)===s},me.isFragment=function(v){return b(v)===r},me.isLazy=function(v){return b(v)===f},me.isMemo=function(v){return b(v)===d},me.isPortal=function(v){return b(v)===t},me.isProfiler=function(v){return b(v)===o},me.isStrictMode=function(v){return b(v)===n},me.isSuspense=function(v){return b(v)===u},me.isSuspenseList=function(v){return b(v)===c},me.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===o||v===n||v===u||v===c||v===g||typeof v=="object"&&v!==null&&(v.$$typeof===f||v.$$typeof===d||v.$$typeof===a||v.$$typeof===i||v.$$typeof===s||v.$$typeof===y||v.getModuleId!==void 0)},me.typeOf=b,me}var rh;function mA(){return rh||(rh=1,eh.exports=gA()),eh.exports}var Sb=mA(),yA=vb(Sb),bA=fb({__proto__:null,default:yA},[Sb]),vA=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],Xr=Object.fromEntries(vA.map(e=>[e,t=>bA[e](t)||hA[e](t)]));function xb(e,t=[]){if(Array.isArray(e))for(let r of e)xb(r,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}function nh(e){let t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(Xr.isFragment(e))return"React.Fragment";if(Xr.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(Xr.isContextProvider(e))return"Context.Provider";if(Xr.isContextConsumer(e))return"Context.Consumer";if(Xr.isForwardRef(e)){if(t.displayName)return t.displayName;let r=t.render.displayName||t.render.name||"";return r===""?"ForwardRef":`ForwardRef(${r})`}if(Xr.isMemo(e)){let r=t.displayName||t.type.displayName||t.type.name||"";return r===""?"Memo":`Memo(${r})`}}return"UNDEFINED"}function EA(e){let{props:t}=e;return Object.keys(t).filter(r=>r!=="children"&&t[r]!==void 0).sort()}var SA=(e,t,r,n,o,a)=>++n>t.maxDepth?Ud(nh(e),t):Hd(nh(e),Bd(EA(e),e.props,t,r+t.indent,n,o,a),jd(xb(e.props.children),t,r+t.indent,n,o,a),t,r),xA=e=>e!=null&&Xr.isElement(e),wA={serialize:SA,test:xA},$A=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function CA(e){let{props:t}=e;return t?Object.keys(t).filter(r=>t[r]!==void 0).sort():[]}var _A=(e,t,r,n,o,a)=>++n>t.maxDepth?Ud(e.type,t):Hd(e.type,e.props?Bd(CA(e),e.props,t,r+t.indent,n,o,a):"",e.children?jd(e.children,t,r+t.indent,n,o,a):"",t,r),TA=e=>e&&e.$$typeof===$A,AA={serialize:_A,test:TA},wb=Object.prototype.toString,OA=Date.prototype.toISOString,RA=Error.prototype.toString,oh=RegExp.prototype.toString;function ti(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}function DA(e){return typeof window<"u"&&e===window}var PA=/^Symbol\((.*)\)(.*)$/,FA=/\n/g,$b=class extends Error{constructor(e,t){super(e),this.stack=t,this.name=this.constructor.name}};function IA(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 LA(e){return Object.is(e,-0)?"-0":String(e)}function kA(e){return`${e}n`}function ah(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}function ih(e){return String(e).replace(PA,"Symbol($1)")}function lh(e){return`[${RA.call(e)}]`}function Cb(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 LA(e);if(o==="bigint")return kA(e);if(o==="string")return n?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(o==="function")return ah(e,t);if(o==="symbol")return ih(e);let a=wb.call(e);return a==="[object WeakMap]"?"WeakMap {}":a==="[object WeakSet]"?"WeakSet {}":a==="[object Function]"||a==="[object GeneratorFunction]"?ah(e,t):a==="[object Symbol]"?ih(e):a==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":OA.call(e):a==="[object Error]"?lh(e):a==="[object RegExp]"?r?oh.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):oh.call(e):e instanceof Error?lh(e):null}function _b(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 Tr(e.toJSON(),t,r,n,o,!0);let s=wb.call(e);return s==="[object Arguments]"?i?"[Arguments]":`${l?"":"Arguments "}[${xi(e,t,r,n,o,Tr)}]`:IA(s)?i?`[${e.constructor.name}]`:`${l||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${xi(e,t,r,n,o,Tr)}]`:s==="[object Map]"?i?"[Map]":`Map {${sa(e.entries(),t,r,n,o,Tr," => ")}}`:s==="[object Set]"?i?"[Set]":`Set {${Nd(e.values(),t,r,n,o,Tr)}}`:i||DA(e)?`[${ti(e)}]`:`${l||!t.printBasicPrototype&&ti(e)==="Object"?"":`${ti(e)} `}{${Md(e,t,r,n,o,Tr)}}`}var NA={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:ti(e);return i?`[${d}]`:`${d} {${sa(Object.entries(c).values(),t,r,n,o,a)}}`}};function MA(e){return e.serialize!=null}function Tb(e,t,r,n,o,a){let i;try{i=MA(e)?e.serialize(t,r,n,o,a,Tr):e.print(t,l=>Tr(l,r,n,o,a),l=>{let s=n+r.indent;return s+l.replaceAll(FA,`
9
- ${s}`)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors)}catch(l){throw new $b(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 Ab(e,t){for(let r of e)try{if(r.test(t))return r}catch(n){throw new $b(n.message,n.stack)}return null}function Tr(e,t,r,n,o,a){let i=Ab(t.plugins,e);if(i!==null)return Tb(i,e,t,r,n,o);let l=Cb(e,t.printFunctionName,t.escapeRegex,t.escapeString);return l!==null?l:_b(e,t,r,n,o,a)}var zd={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},Ob=Object.keys(zd),Pt={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:zd};function BA(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(Pt,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 jA(){return Ob.reduce((e,t)=>{let r=zd[t],n=r&&pr[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 HA(){return Ob.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}function Rb(e){return e?.printFunctionName??Pt.printFunctionName}function Db(e){return e?.escapeRegex??Pt.escapeRegex}function Pb(e){return e?.escapeString??Pt.escapeString}function sh(e){return{callToJSON:e?.callToJSON??Pt.callToJSON,colors:e?.highlight?jA():HA(),compareKeys:typeof e?.compareKeys=="function"||e?.compareKeys===null?e.compareKeys:Pt.compareKeys,escapeRegex:Db(e),escapeString:Pb(e),indent:e?.min?"":UA(e?.indent??Pt.indent),maxDepth:e?.maxDepth??Pt.maxDepth,maxWidth:e?.maxWidth??Pt.maxWidth,min:e?.min??Pt.min,plugins:e?.plugins??Pt.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:Rb(e),spacingInner:e?.min?" ":`
10
- `,spacingOuter:e?.min?"":`
11
- `}}function UA(e){return Array.from({length:e+1}).join(" ")}function Xt(e,t){if(t&&(BA(t),t.plugins)){let n=Ab(t.plugins,e);if(n!==null)return Tb(n,e,sh(t),"",0,[])}let r=Cb(e,Rb(t),Db(t),Pb(t));return r!==null?r:_b(e,sh(t),"",0,[])}var Kd={AsymmetricMatcher:PT,DOMCollection:BT,DOMElement:YT,Immutable:cA,ReactElement:wA,ReactTestComponent:AA,Error:NA},uh={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"]},zA={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},qn="…";function KA(e,t){let r=uh[zA[t]]||uh[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}function GA({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=KA),d}function WA(e){return e>="\uD800"&&e<="\uDBFF"}function Br(e,t,r=qn){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&&WA(e[a-1])&&(a=a-1),`${e.slice(0,a)}${r}`}return e}function Mt(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=`${qn}(${e.length-u})`;let f=e[u];t.truncate=a-i.length-(c?0:n.length);let g=l||r(f,t)+(c?"":n),y=i.length+g.length,b=y+s.length;if(c&&y>a&&i.length+s.length<=a||!c&&!d&&b>a||(l=c?"":r(e[u+1],t)+(d?"":n),!c&&d&&b>a&&y+l.length>a))break;if(i+=g,!c&&!d&&y+l.length>=a){s=`${qn}(${e.length-u-1})`;break}s=""}return`${i}${s}`}function VA(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function Ko([e,t],r){return r.truncate-=2,typeof e=="string"?e=VA(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}function qA(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let n=Mt(e,t);t.truncate-=n.length;let o="";return r.length&&(o=Mt(r.map(a=>[a,e[a]]),t,Ko)),`[ ${n}${o?`, ${o}`:""} ]`}var YA=e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function lr(e,t){let r=YA(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(Br(e[i],t.truncate),"number")}${i===e.length-1?"":", "}`;if(t.truncate-=l.length,e[i]!==e.length&&t.truncate<=3){o+=`${qn}(${e.length-e[i]+1})`;break}o+=l}let a="";return n.length&&(a=Mt(n.map(i=>[i,e[i]]),t,Ko)),`${r}[ ${o}${a?`, ${a}`:""} ]`}function XA(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${Br(n[1],t.truncate-o.length-1)}`,"date")}function ch(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${Br(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}function JA([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}function ZA(e){let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}function QA(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${Mt(ZA(e),t,JA)} }`)}var eO=Number.isNaN||(e=>e!==e);function dh(e,t){return eO(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(Br(String(e),t.truncate),"number")}function fh(e,t){let r=Br(e.toString(),t.truncate-1);return r!==qn&&(r+="n"),t.stylize(r,"bigint")}function tO(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${Br(o,n)}/${r}`,"regexp")}function rO(e){let t=[];return e.forEach(r=>{t.push(r)}),t}function nO(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${Mt(rO(e),t)} }`)}var ph=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),oO={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},aO=16;function iO(e){return oO[e]||`\\u${`0000${e.charCodeAt(0).toString(aO)}`.slice(-4)}`}function hh(e,t){return ph.test(e)&&(e=e.replace(ph,iO)),t.stylize(`'${Br(e,t.truncate-2)}'`,"string")}function gh(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}var Fb=()=>"Promise{…}";try{let{getPromiseDetails:e,kPending:t,kRejected:r}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(Fb=(n,o)=>{let[a,i]=e(n);return a===t?"Promise{<pending>}":`Promise${a===r?"!":""}{${o.inspect(i,o)}}`})}catch{}var lO=Fb;function ri(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=Mt(r.map(l=>[l,e[l]]),t,Ko),a=Mt(n.map(l=>[l,e[l]]),t,Ko);t.seen.pop();let i="";return o&&a&&(i=", "),`{ ${o}${i}${a} }`}var ls=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function sO(e,t){let r="";return ls&&ls in e&&(r=e[ls]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${ri(e,t)}`}function uO(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${Mt(e,t)} ]`)}var cO=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function dO(e,t){let r=Object.getOwnPropertyNames(e).filter(i=>cO.indexOf(i)===-1),n=e.name;t.truncate-=n.length;let o="";if(typeof e.message=="string"?o=Br(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=Mt(r.map(i=>[i,e[i]]),t,Ko);return`${n}${o}${a?` { ${a} }`:""}`}function fO([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}function cc(e,t){return Mt(e,t,pO,`
12
- `)}function pO(e,t){switch(e.nodeType){case 1:return Ib(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}function Ib(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+=Mt(r.map(c=>[c,e.getAttribute(c)]),t,fO," ")),t.truncate-=l.length;let s=t.truncate,u=cc(e.children,t);return u&&u.length>s&&(u=`${qn}(${e.children.length})`),`${o}${l}${a}${u}${i}`}var hO=typeof Symbol=="function"&&typeof Symbol.for=="function",ss=hO?Symbol.for("chai/inspect"):"@@chai/inspect",us=Symbol.for("nodejs.util.inspect.custom"),mh=new WeakMap,yh={},bh={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:dh,Number:dh,bigint:fh,BigInt:fh,string:hh,String:hh,function:ch,Function:ch,symbol:gh,Symbol:gh,Array:qA,Date:XA,Map:QA,Set:nO,RegExp:tO,Promise:lO,WeakSet:(e,t)=>t.stylize("WeakSet{…}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{…}","special"),Arguments:uO,Int8Array:lr,Uint8Array:lr,Uint8ClampedArray:lr,Int16Array:lr,Uint16Array:lr,Int32Array:lr,Uint32Array:lr,Float32Array:lr,Float64Array:lr,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:dO,HTMLCollection:cc,NodeList:cc},gO=(e,t,r)=>ss in e&&typeof e[ss]=="function"?e[ss](t):us in e&&typeof e[us]=="function"?e[us](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&mh.has(e.constructor)?mh.get(e.constructor)(e,t):yh[r]?yh[r](e,t):"",mO=Object.prototype.toString;function dc(e,t={}){let r=GA(t,dc),{customInspect:n}=r,o=e===null?"null":typeof e;if(o==="object"&&(o=mO.call(e).slice(8,-1)),o in bh)return bh[o](e,r);if(n&&e){let i=gO(e,r,o);if(i)return typeof i=="string"?i:dc(i,r)}let a=e?Object.getPrototypeOf(e):!1;return a===Object.prototype||a===null?ri(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?Ib(e,r):"constructor"in e?e.constructor!==Object?sO(e,r):ri(e,r):e===Object(e)?ri(e,r):r.stylize(String(e),o)}var{AsymmetricMatcher:yO,DOMCollection:bO,DOMElement:vO,Immutable:EO,ReactElement:SO,ReactTestComponent:xO}=Kd,vh=[xO,SO,vO,bO,EO,yO];function Go(e,t=10,{maxLength:r,...n}={}){let o=r??1e4,a;try{a=Xt(e,{maxDepth:t,escapeString:!1,plugins:vh,...n})}catch{a=Xt(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:vh,...n})}return a.length>=o&&t>1?Go(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),{maxLength:r,...n}):a}var wO=/%[sdjifoOc%]/g;function $O(...e){if(typeof e[0]!="string"){let a=[];for(let i=0;i<e.length;i++)a.push(vo(e[i],{depth:0,colors:!1}));return a.join(" ")}let t=e.length,r=1,n=e[0],o=String(n).replace(wO,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():vo(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 vo(e[r++],{showHidden:!0,showProxy:!0});case"%O":return vo(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+=` ${vo(a)}`;return o}function vo(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),dc(e,t)}function CO(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function _O(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function fc(e){return Object.prototype.toString.apply(e).slice(8,-1)}function TO(e,t){let r=typeof t=="function"?t:n=>t.add(n);Object.getOwnPropertyNames(e).forEach(r),Object.getOwnPropertySymbols(e).forEach(r)}function Lb(e){let t=new Set;return _O(e)?[]:(TO(e,t),Array.from(t))}var kb={forceWritable:!1};function Eh(e,t=kb){return pc(e,new WeakMap,t)}function pc(e,t,r=kb){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]=pc(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=Lb(e);for(let i of a){let l=Object.getOwnPropertyDescriptor(e,i);if(!l)continue;let s=pc(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 Ye=-1,He=1,Te=0,Ce=class{constructor(e,t){this[0]=e,this[1]=t}};function AO(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 Nb(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 Sh(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 OO(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]===Te?(r[n++]=a,i=s,l=u,s=0,u=0,o=e[a][1]):(e[a][0]===He?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 Ce(Ye,o)),e[r[n-1]+1][0]=He,n--,n--,a=n>0?r[n-1]:-1,i=0,l=0,s=0,u=0,o=null,t=!0)),a++;for(t&&Mb(e),PO(e),a=1;a<e.length;){if(e[a-1][0]===Ye&&e[a][0]===He){let c=e[a-1][1],d=e[a][1],f=Sh(c,d),g=Sh(d,c);f>=g?(f>=c.length/2||f>=d.length/2)&&(e.splice(a,0,new Ce(Te,d.substring(0,f))),e[a-1][1]=c.substring(0,c.length-f),e[a+1][1]=d.substring(f),a++):(g>=c.length/2||g>=d.length/2)&&(e.splice(a,0,new Ce(Te,c.substring(0,g))),e[a-1][0]=He,e[a-1][1]=d.substring(0,d.length-g),e[a+1][0]=Ye,e[a+1][1]=c.substring(g),a++),a++}a++}}var xh=/[^a-z0-9]/i,wh=/\s/,$h=/[\r\n]/,RO=/\n\r?\n$/,DO=/^\r?\n\r?\n/;function PO(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===Te&&e[t+1][0]===Te){let r=e[t-1][1],n=e[t][1],o=e[t+1][1],a=Nb(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=Aa(r,n)+Aa(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=Aa(r,n)+Aa(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 Mb(e){e.push(new Ce(Te,""));let t=0,r=0,n=0,o="",a="",i;for(;t<e.length;)switch(e[t][0]){case He:n++,a+=e[t][1],t++;break;case Ye:r++,o+=e[t][1],t++;break;case Te:r+n>1?(r!==0&&n!==0&&(i=AO(a,o),i!==0&&(t-r-n>0&&e[t-r-n-1][0]===Te?e[t-r-n-1][1]+=a.substring(0,i):(e.splice(0,0,new Ce(Te,a.substring(0,i))),t++),a=a.substring(i),o=o.substring(i)),i=Nb(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 Ce(Ye,o)),t++),a.length&&(e.splice(t,0,new Ce(He,a)),t++),t++):t!==0&&e[t-1][0]===Te?(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]===Te&&e[t+1][0]===Te&&(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&&Mb(e)}function Aa(e,t){if(!e||!t)return 6;let r=e.charAt(e.length-1),n=t.charAt(0),o=r.match(xh),a=n.match(xh),i=o&&r.match(wh),l=a&&n.match(wh),s=i&&r.match($h),u=l&&n.match($h),c=s&&e.match(RO),d=u&&t.match(DO);return c||d?5:s||u?4:o&&!i&&l?3:i||l?2:o||a?1:0}var Bb="Compared values have no visual difference.",FO="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",Oa={},Ch;function IO(){if(Ch)return Oa;Ch=1,Object.defineProperty(Oa,"__esModule",{value:!0}),Oa.default=f;let e="diff-sequences",t=0,r=(g,y,b,v,h)=>{let E=0;for(;g<y&&b<v&&h(g,b);)g+=1,b+=1,E+=1;return E},n=(g,y,b,v,h)=>{let E=0;for(;g<=y&&b<=v&&h(y,v);)y-=1,v-=1,E+=1;return E},o=(g,y,b,v,h,E,S)=>{let x=0,_=-g,$=E[x],C=$;E[x]+=r($+1,y,v+$-_+1,b,h);let A=g<S?g:S;for(x+=1,_+=2;x<=A;x+=1,_+=2){if(x!==g&&C<E[x])$=E[x];else if($=C+1,y<=$)return x-1;C=E[x],E[x]=$+r($+1,y,v+$-_+1,b,h)}return S},a=(g,y,b,v,h,E,S)=>{let x=0,_=g,$=E[x],C=$;E[x]-=n(y,$-1,b,v+$-_-1,h);let A=g<S?g:S;for(x+=1,_-=2;x<=A;x+=1,_-=2){if(x!==g&&E[x]<C)$=E[x];else if($=C-1,$<y)return x-1;C=E[x],E[x]=$-n(y,$-1,b,v+$-_-1,h)}return S},i=(g,y,b,v,h,E,S,x,_,$,C)=>{let A=v-y,D=b-y,F=h-v-D,T=-F-(g-1),N=-F+(g-1),L=t,R=g<x?g:x;for(let I=0,k=-g;I<=R;I+=1,k+=2){let M=I===0||I!==g&&L<S[I],H=M?S[I]:L,U=M?H:H+1,B=A+U-k,O=r(U+1,b,B+1,h,E),j=U+O;if(L=S[I],S[I]=j,T<=k&&k<=N){let G=(g-1-(k+F))/2;if(G<=$&&_[G]-1<=j){let K=A+H-(M?k+1:k-1),z=n(y,H,v,K,E),W=H-z,q=K-z,X=W+1,le=q+1;C.nChangePreceding=g-1,g-1===X+le-y-v?(C.aEndPreceding=y,C.bEndPreceding=v):(C.aEndPreceding=X,C.bEndPreceding=le),C.nCommonPreceding=z,z!==0&&(C.aCommonPreceding=X,C.bCommonPreceding=le),C.nCommonFollowing=O,O!==0&&(C.aCommonFollowing=U+1,C.bCommonFollowing=B+1);let Ne=j+1,re=B+O+1;return C.nChangeFollowing=g-1,g-1===b+h-Ne-re?(C.aStartFollowing=b,C.bStartFollowing=h):(C.aStartFollowing=Ne,C.bStartFollowing=re),!0}}}return!1},l=(g,y,b,v,h,E,S,x,_,$,C)=>{let A=h-b,D=b-y,F=h-v-D,T=F-g,N=F+g,L=t,R=g<$?g:$;for(let I=0,k=g;I<=R;I+=1,k-=2){let M=I===0||I!==g&&_[I]<L,H=M?_[I]:L,U=M?H:H-1,B=A+U-k,O=n(y,U-1,v,B-1,E),j=U-O;if(L=_[I],_[I]=j,T<=k&&k<=N){let G=(g+(k-F))/2;if(G<=x&&j-1<=S[G]){let K=B-O;if(C.nChangePreceding=g,g===j+K-y-v?(C.aEndPreceding=y,C.bEndPreceding=v):(C.aEndPreceding=j,C.bEndPreceding=K),C.nCommonPreceding=O,O!==0&&(C.aCommonPreceding=j,C.bCommonPreceding=K),C.nChangeFollowing=g-1,g===1)C.nCommonFollowing=0,C.aStartFollowing=b,C.bStartFollowing=h;else{let z=A+H-(M?k-1:k+1),W=r(H,b,z,h,E);C.nCommonFollowing=W,W!==0&&(C.aCommonFollowing=H,C.bCommonFollowing=z);let q=H+W,X=z+W;g-1===b+h-q-X?(C.aStartFollowing=b,C.bStartFollowing=h):(C.aStartFollowing=q,C.bStartFollowing=X)}return!0}}}return!1},s=(g,y,b,v,h,E,S,x,_)=>{let $=v-y,C=h-b,A=b-y,D=h-v,F=D-A,T=A,N=A;if(S[0]=y-1,x[0]=b,F%2===0){let L=(g||F)/2,R=(A+D)/2;for(let I=1;I<=R;I+=1)if(T=o(I,b,h,$,E,S,T),I<L)N=a(I,y,v,C,E,x,N);else if(l(I,y,b,v,h,E,S,T,x,N,_))return}else{let L=((g||F)+1)/2,R=(A+D+1)/2,I=1;for(T=o(I,b,h,$,E,S,T),I+=1;I<=R;I+=1)if(N=a(I-1,y,v,C,E,x,N),I<L)T=o(I,b,h,$,E,S,T);else if(i(I,y,b,v,h,E,S,T,x,N,_))return}throw new Error(`${e}: no overlap aStart=${y} aEnd=${b} bStart=${v} bEnd=${h}`)},u=(g,y,b,v,h,E,S,x,_,$)=>{if(h-v<b-y){if(E=!E,E&&S.length===1){let{foundSubsequence:G,isCommon:K}=S[0];S[1]={foundSubsequence:(z,W,q)=>{G(z,q,W)},isCommon:(z,W)=>K(W,z)}}let O=y,j=b;y=v,b=h,v=O,h=j}let{foundSubsequence:C,isCommon:A}=S[E?1:0];s(g,y,b,v,h,A,x,_,$);let{nChangePreceding:D,aEndPreceding:F,bEndPreceding:T,nCommonPreceding:N,aCommonPreceding:L,bCommonPreceding:R,nCommonFollowing:I,aCommonFollowing:k,bCommonFollowing:M,nChangeFollowing:H,aStartFollowing:U,bStartFollowing:B}=$;y<F&&v<T&&u(D,y,F,v,T,E,S,x,_,$),N!==0&&C(N,L,R),I!==0&&C(I,k,M),U<b&&B<h&&u(H,U,b,B,h,E,S,x,_,$)},c=(g,y)=>{if(typeof y!="number")throw new TypeError(`${e}: ${g} typeof ${typeof y} is not a number`);if(!Number.isSafeInteger(y))throw new RangeError(`${e}: ${g} value ${y} is not a safe integer`);if(y<0)throw new RangeError(`${e}: ${g} value ${y} is a negative integer`)},d=(g,y)=>{let b=typeof y;if(b!=="function")throw new TypeError(`${e}: ${g} typeof ${b} is not a function`)};function f(g,y,b,v){c("aLength",g),c("bLength",y),d("isCommon",b),d("foundSubsequence",v);let h=r(0,g,0,y,b);if(h!==0&&v(h,0,0),g!==h||y!==h){let E=h,S=h,x=n(E,g-1,S,y-1,b),_=g-x,$=y-x,C=h+x;g!==C&&y!==C&&u(0,E,_,S,$,!1,[{foundSubsequence:v,isCommon:b}],[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&&v(x,_,$)}}return Oa}var LO=IO(),jb=CO(LO);function kO(e,t){return e.replace(/\s+$/,r=>t(r))}function Gd(e,t,r,n,o,a){return e.length!==0?r(`${n} ${kO(e,o)}`):n!==" "?r(n):t&&a.length!==0?r(`${n} ${a}`):""}function Hb(e,t,{aColor:r,aIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:a}){return Gd(e,t,r,n,o,a)}function Ub(e,t,{bColor:r,bIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:a}){return Gd(e,t,r,n,o,a)}function zb(e,t,{commonColor:r,commonIndicator:n,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:a}){return Gd(e,t,r,n,o,a)}function _h(e,t,r,n,{patchColor:o}){return o(`@@ -${e+1},${t-e} +${r+1},${n-r} @@`)}function NO(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]===Te;)s+=1;if(x!==s)if(x===0)s>n&&(a-=s-n,i=!0);else if(s===r){let _=s-x;_>n&&(a-=_-n,i=!0)}else{let _=s-x;_>o&&(a-=_-o,l+=1)}for(;s!==r&&e[s][0]!==Te;)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 g=0,y=0,b=0,v=0,h=x=>{let _=d.length;d.push(zb(x,_===0||_===c,t)),b+=1,v+=1},E=x=>{let _=d.length;d.push(Hb(x,_===0||_===c,t)),b+=1},S=x=>{let _=d.length;d.push(Ub(x,_===0||_===c,t)),v+=1};for(s=0;s!==r;){let x=s;for(;s!==r&&e[s][0]===Te;)s+=1;if(x!==s)if(x===0){s>n&&(x=s-n,g=x,y=x,b=g,v=y);for(let _=x;_!==s;_+=1)h(e[_][1])}else if(s===r){let _=s-x>n?x+n:s;for(let $=x;$!==_;$+=1)h(e[$][1])}else{let _=s-x;if(_>o){let $=x+n;for(let A=x;A!==$;A+=1)h(e[A][1]);d[f]=_h(g,b,y,v,t),f=d.length,d.push("");let C=_-o;g=b+C,y=v+C,b=g,v=y;for(let A=s-n;A!==s;A+=1)h(e[A][1])}else for(let $=x;$!==s;$+=1)h(e[$][1])}for(;s!==r&&e[s][0]===Ye;)E(e[s][1]),s+=1;for(;s!==r&&e[s][0]===He;)S(e[s][1]),s+=1}return u&&(d[f]=_h(g,b,y,v,t)),d.join(`
13
- `)}function MO(e,t){return e.map((r,n,o)=>{let a=r[1],i=n===0||n===o.length-1;switch(r[0]){case Ye:return Hb(a,i,t);case He:return Ub(a,i,t);default:return zb(a,i,t)}}).join(`
14
- `)}var cs=e=>e,Kb=5,BO=0;function jO(){return{aAnnotation:"Expected",aColor:pr.green,aIndicator:"-",bAnnotation:"Received",bColor:pr.red,bIndicator:"+",changeColor:pr.inverse,changeLineTrailingSpaceColor:cs,commonColor:pr.dim,commonIndicator:" ",commonLineTrailingSpaceColor:cs,compareKeys:void 0,contextLines:Kb,emptyFirstOrLastLinePlaceholder:"",expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:pr.yellow,printBasicPrototype:!1,truncateThreshold:BO,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:cs}}function HO(e){return e&&typeof e=="function"?e:void 0}function UO(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:Kb}function yn(e={}){return{...jO(),...e,compareKeys:HO(e.compareKeys),contextLines:UO(e.contextLines)}}function Mn(e){return e.length===1&&e[0].length===0}function zO(e){let t=0,r=0;return e.forEach(n=>{switch(n[0]){case Ye:t+=1;break;case He:r+=1;break}}),{a:t,b:r}}function KO({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 g=String(s.a),y=String(s.b),b=n.length-e.length,v=" ".repeat(Math.max(0,b)),h=" ".repeat(Math.max(0,-b)),E=y.length-g.length,S=" ".repeat(Math.max(0,E)),x=" ".repeat(Math.max(0,-E));u=`${v} ${r} ${S}${g}`,c=`${h} ${a} ${x}${y}`}let d=`${r} ${e}${u}`,f=`${a} ${n}${c}`;return`${t(d)}
15
- ${o(f)}
16
-
17
- `}function Wd(e,t,r){return KO(r,zO(e))+(r.expand?MO(e,r):NO(e,r))+(t?r.truncateAnnotationColor(`
18
- ${r.truncateAnnotation}`):"")}function rl(e,t,r){let n=yn(r),[o,a]=Gb(Mn(e)?[]:e,Mn(t)?[]:t,n);return Wd(o,a,n)}function GO(e,t,r,n,o){if(Mn(e)&&Mn(r)&&(e=[],r=[]),Mn(t)&&Mn(n)&&(t=[],n=[]),e.length!==r.length||t.length!==n.length)return rl(e,t,o);let[a,i]=Gb(r,n,o),l=0,s=0;return a.forEach(u=>{switch(u[0]){case Ye:u[1]=e[l],l+=1;break;case He:u[1]=t[s],s+=1;break;default:u[1]=t[s],l+=1,s+=1}}),Wd(a,i,yn(o))}function Gb(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,g)=>e[f]===t[g],u=[],c=0,d=0;for(jb(a,i,s,(f,g,y)=>{for(;c!==g;c+=1)u.push(new Ce(Ye,e[c]));for(;d!==y;d+=1)u.push(new Ce(He,t[d]));for(;f!==0;f-=1,c+=1,d+=1)u.push(new Ce(Te,t[d]))});c!==a;c+=1)u.push(new Ce(Ye,e[c]));for(;d!==i;d+=1)u.push(new Ce(He,t[d]));return[u,l]}function Th(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 Ah(e){return e.includes(`\r
19
- `)?`\r
20
- `:`
21
- `}function WO(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
- `),g=t.includes(`
23
- `),y=Ah(e),b=Ah(t),v=f?`${e.split(y,o).join(y)}
24
- `:e,h=g?`${t.split(b,o).join(b)}
25
- `:t;a=v.length,i=h.length}let l=a!==e.length||i!==t.length,s=(f,g)=>e[f]===t[g],u=0,c=0,d=[];return jb(a,i,s,(f,g,y)=>{u!==g&&d.push(new Ce(Ye,e.slice(u,g))),c!==y&&d.push(new Ce(He,t.slice(c,y))),u=g+f,c=y+f,d.push(new Ce(Te,t.slice(y,c)))}),u!==a&&d.push(new Ce(Ye,e.slice(u))),c!==i&&d.push(new Ce(He,t.slice(c))),[d,l]}function VO(e,t,r){return t.reduce((n,o)=>n+(o[0]===Te?o[1]:o[0]===e&&o[1].length!==0?r(o[1]):""),"")}var Oh=class{constructor(e,t){this.op=e,this.line=[],this.lines=[],this.changeColor=t}pushSubstring(e){this.pushDiff(new Ce(this.op,e))}pushLine(){this.lines.push(this.line.length!==1?new Ce(this.op,VO(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new Ce(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}},qO=class{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 Ce(t,a);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(l)):(this.pushDiffChangeLines(l),this.flushChangeLines())}else i<o?this.pushDiffCommonLine(new Ce(t,a)):a.length!==0&&this.pushDiffChangeLines(new Ce(t,a))})}else this.pushDiffChangeLines(e)}getLines(){return this.flushChangeLines(),this.lines}};function YO(e,t){let r=new Oh(Ye,t),n=new Oh(He,t),o=new qO(r,n);return e.forEach(a=>{switch(a[0]){case Ye:r.align(a);break;case He:n.align(a);break;default:o.align(a)}}),o.getLines()}function XO(e,t){if(t){let r=e.length-1;return e.some((n,o)=>n[0]===Te&&(o!==r||n[1]!==`
30
- `))}return e.some(r=>r[0]===Te)}function JO(e,t,r){if(e!==t&&e.length!==0&&t.length!==0){let n=e.includes(`
31
- `)||t.includes(`
32
- `),[o,a]=Wb(n?`${e}
33
- `:e,n?`${t}
34
- `:t,!0,r);if(XO(o,n)){let i=yn(r),l=YO(o,i.changeColor);return Wd(l,a,i)}}return rl(e.split(`
35
- `),t.split(`
36
- `),r)}function Wb(e,t,r,n){let[o,a]=WO(e,t,n);return OO(o),[o,a]}function hc(e,t){let{commonColor:r}=yn(t);return r(e)}var{AsymmetricMatcher:ZO,DOMCollection:QO,DOMElement:eR,Immutable:tR,ReactElement:rR,ReactTestComponent:nR}=Kd,Vb=[nR,rR,eR,QO,tR,ZO,Kd.Error],gc={maxDepth:20,plugins:Vb},qb={callToJSON:!1,maxDepth:8,plugins:Vb};function oR(e,t,r){if(Object.is(e,t))return"";let n=Th(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!==Th(t)){let i=function(S){return S.length<=v?S:`${S.slice(0,v)}...`},{aAnnotation:l,aColor:s,aIndicator:u,bAnnotation:c,bColor:d,bIndicator:f}=yn(r),g=mc(qb,r),y=Xt(e,g),b=Xt(t,g),v=1e5;y=i(y),b=i(b);let h=`${s(`${u} ${l}:`)}
37
- ${y}`,E=`${d(`${f} ${c}:`)}
38
- ${b}`;return`${h}
39
-
40
- ${E}`}if(!a)switch(n){case"string":return rl(e.split(`
41
- `),t.split(`
42
- `),r);case"boolean":case"number":return aR(e,t,r);case"map":return ds(Rh(e),Rh(t),r);case"set":return ds(Dh(e),Dh(t),r);default:return ds(e,t,r)}}function aR(e,t,r){let n=Xt(e,gc),o=Xt(t,gc);return n===o?"":rl(n.split(`
43
- `),o.split(`
44
- `),r)}function Rh(e){return new Map(Array.from(e.entries()).sort())}function Dh(e){return new Set(Array.from(e.values()).sort())}function ds(e,t,r){let n,o=!1;try{let i=mc(gc,r);n=Ph(e,t,i,r)}catch{o=!0}let a=hc(Bb,r);if(n===void 0||n===a){let i=mc(qb,r);n=Ph(e,t,i,r),n!==a&&!o&&(n=`${hc(FO,r)}
45
-
46
- ${n}`)}return n}function mc(e,t){let{compareKeys:r,printBasicPrototype:n,maxDepth:o}=yn(t);return{...e,compareKeys:r,printBasicPrototype:n,maxDepth:o??e.maxDepth}}function Ph(e,t,r,n){let o={...r,indent:0},a=Xt(e,o),i=Xt(t,o);if(a===i)return hc(Bb,n);{let l=Xt(e,r),s=Xt(t,r);return GO(l.split(`
47
- `),s.split(`
48
- `),a.split(`
49
- `),i.split(`
50
- `),n)}}var Fh=2e4;function Ih(e){return fc(e)==="Object"&&typeof e.asymmetricMatch=="function"}function Lh(e,t){let r=fc(e),n=fc(t);return r===n&&(r==="Object"||r==="Array")}function iR(e,t,r){let{aAnnotation:n,bAnnotation:o}=yn(r);if(typeof t=="string"&&typeof e=="string"&&t.length>0&&e.length>0&&t.length<=Fh&&e.length<=Fh&&t!==e){if(t.includes(`
51
- `)||e.includes(`
52
- `))return JO(t,e,r);let[u]=Wb(t,e),c=u.some(y=>y[0]===Te),d=lR(n,o),f=d(n)+cR(kh(u,Ye,c)),g=d(o)+uR(kh(u,He,c));return`${f}
53
- ${g}`}let a=Eh(t,{forceWritable:!0}),i=Eh(e,{forceWritable:!0}),{replacedExpected:l,replacedActual:s}=Yb(i,a);return oR(l,s,r)}function Yb(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}):Lh(e,t)?r.has(e)||n.has(t)?{replacedActual:e,replacedExpected:t}:(r.add(e),n.add(t),Lb(t).forEach(o=>{let a=t[o],i=e[o];if(Ih(a))a.asymmetricMatch(i)&&(e[o]=a);else if(Ih(i))i.asymmetricMatch(a)&&(t[o]=i);else if(Lh(i,a)){let l=Yb(i,a,r,n);e[o]=l.replacedActual,t[o]=l.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}function lR(...e){let t=e.reduce((r,n)=>n.length>r?n.length:r,0);return r=>`${r}: ${" ".repeat(t-r.length)}`}var sR="·";function Xb(e){return e.replace(/\s+$/gm,t=>sR.repeat(t.length))}function uR(e){return pr.red(Xb(Go(e)))}function cR(e){return pr.green(Xb(Go(e)))}function kh(e,t,r){return e.reduce((n,o)=>n+(o[0]===Te?o[1]:o[0]===t?r?pr.inverse(o[1]):o[1]:""),"")}var dR="@@__IMMUTABLE_RECORD__@@",fR="@@__IMMUTABLE_ITERABLE__@@";function pR(e){return e&&(e[fR]||e[dR])}var hR=Object.getPrototypeOf({});function Nh(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}function Ar(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"&&Ra(()=>r.message??(r.message=e.message)),typeof e.stack=="string"&&Ra(()=>r.stack??(r.stack=e.stack)),typeof e.name=="string"&&Ra(()=>r.name??(r.name=e.name)),e.cause!=null&&Ra(()=>r.cause??(r.cause=Ar(e.cause,t)))),Ar(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(pR(e))return Ar(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()} ${$O(e.sample)}`;if(typeof e.toJSON=="function")return Ar(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]=Ar(n,t)}catch(a){r[o]=Nh(a)}}),r}else{let r=Object.create(null);t.set(e,r);let n=e;for(;n&&n!==hR;)Object.getOwnPropertyNames(n).forEach(o=>{if(!(o in r))try{r[o]=Ar(e[o],t)}catch(a){delete r[o],r[o]=Nh(a)}}),n=Object.getPrototypeOf(n);return r}}function Ra(e){try{return e()}catch{}}function gR(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}function Jb(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=iR(n.actual,n.expected,{...t,...n.diffOptions})),"expected"in n&&typeof n.expected!="string"&&(n.expected=Go(n.expected,10)),"actual"in n&&typeof n.actual!="string"&&(n.actual=Go(n.actual,10));try{typeof n.message=="string"&&(n.message=gR(n.message))}catch{}try{!r.has(n)&&typeof n.cause=="object"&&(r.add(n),n.cause=Jb(n.cause,t,r))}catch{}try{return Ar(n)}catch(o){return Ar(new Error(`Failed to fully serialize error: ${o?.message}
54
- Inner error message: ${n?.message}`))}}const{once:mR}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{FORCE_REMOUNT:Mh,SET_CURRENT_STORY:yR,STORY_RENDER_PHASE_CHANGED:bR}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:wt}=__STORYBOOK_MODULE_GLOBAL__;var fs=globalThis.__STORYBOOK_ADDONS_PREVIEW,vR=new Error("This function ran after the play function completed. Did you forget to `await` it?"),Bh=e=>Object.prototype.toString.call(e)==="[object Object]",ER=e=>Object.prototype.toString.call(e)==="[object Module]",SR=e=>{if(!Bh(e)&&!ER(e))return!1;if(e.constructor===void 0)return!0;let t=e.constructor.prototype;return!!Bh(t)},xR=e=>{try{return new e.constructor}catch{return{}}},ps=()=>({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}),jh=(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}},wR=class{constructor(){this.detached=!1,this.initialized=!1,this.state={},this.loadParentWindowState=()=>{try{this.state=wt.window?.parent?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__||{}}catch{this.detached=!0}},this.updateParentWindowState=()=>{try{wt.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,{...ps(),...jh(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(g=>g.id===c[0].callId);return{playUntil:d.slice(0,f).filter(g=>g.interceptable&&!g.ancestors?.length).slice(-1)[0]?.id}}),l.emit(Mh,{storyId:s,isDebugging:!0})},r=l=>({storyId:s})=>{let u=this.getLog(s).filter(d=>!d.ancestors?.length),c=u.reduceRight((d,f,g)=>d>=0||f.status==="waiting"?d:g,-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),g=c.find(({id:b})=>b===u),y=d.find(({id:b})=>b===u);if(!g&&y&&Object.values(f).length>0){let b=this.getLog(s).find(v=>v.status==="waiting")?.callId;y.id!==b&&this.setState(s,{playUntil:y.id}),Object.values(f).forEach(v=>v())}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)};fs&&fs.ready().then(()=>{this.channel=fs.getChannel(),this.channel.on(Mh,e),this.channel.on(bR,i),this.channel.on(yR,()=>{this.initialized?this.cleanup():this.initialized=!0}),this.channel.on(ir.START,t(this.channel)),this.channel.on(ir.BACK,r(this.channel)),this.channel.on(ir.GOTO,n(this.channel)),this.channel.on(ir.NEXT,o(this.channel)),this.channel.on(ir.END,a)})}getState(e){return this.state[e]||ps()}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=jh(n);return o&&(t[r]=Object.assign(ps(),o)),t},{});let e={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:[]};this.channel?.emit(ir.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(!SR(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=CR(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:xR(e))}track(e,t,r,n,o){let a=n?.[0]?.__storyId__||wt.__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,g={id:s,cursor:i,storyId:a,ancestors:l,path:u,method:e,args:n,interceptable:f,retain:d},y=(f&&!l.length?this.intercept:this.invoke).call(this,t,r,g,o);return this.instrument(y,{...o,mutate:!0,path:[{__callId__:g.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(g=>l(g,++d,f));if(c instanceof Date)return{__date__:{value:c.toISOString()}};if(c instanceof Error){let{name:g,message:y,stack:b}=c;return{__error__:{name:g,message:y,stack:b}}}if(c instanceof RegExp){let{flags:g,source:y}=c;return{__regexp__:{flags:g,source:y}}}if(c instanceof wt.window?.HTMLElement){let{prefix:g,localName:y,id:b,classList:v,innerText:h}=c,E=Array.from(v);return{__element__:{prefix:g,localName:y,id:b,classNames:E,innerText:h}}}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(([g,y])=>[g,l(y,++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:g,callId:y=r.id}=c,{showDiff:b=void 0,diff:v=void 0,actual:h=void 0,expected:E=void 0}=c.name==="AssertionError"?Jb(c):c,S={name:d,message:f,stack:g,callId:y,showDiff:b,diff:v,actual:h,expected:E};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 vR;let c=(n.getArgs?n.getArgs(r,this.getState(r.storyId)):r.args).map(f=>typeof f!="function"||_R(f)||Object.keys(f).length?f:(...g)=>{let{cursor:y,ancestors:b}=this.getState(r.storyId);this.setState(r.storyId,{cursor:0,ancestors:[...b,r.id]});let v=()=>this.setState(r.storyId,{cursor:y,ancestors:b}),h=!1;try{let E=f(...g);return E instanceof Promise?(h=!0,E.finally(v)):E}finally{h||v()}}),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(ir.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(ir.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(ir.SYNC,s)};this.setState(e,({syncTimeout:r})=>(clearTimeout(r),{syncTimeout:setTimeout(t,0)}))}};function $R(e,t={}){try{let r=!1,n=!1;return wt.window?.location?.search?.includes("instrument=true")?r=!0:wt.window?.location?.search?.includes("instrument=false")&&(n=!0),wt.window?.parent===wt.window&&!r||n?e:(wt.window&&!wt.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(wt.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new wR),(wt.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(r){return mR.warn(r),e}}function CR(e,t){let r=e;for(;r!=null;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function _R(e){if(typeof e!="function")return!1;let t=Object.getOwnPropertyDescriptor(e,"prototype");return t?!t.writable:!1}var TR=Je({"../../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,g=t.call(l),y=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),g!=y||(c=n(l),d=n(s),c.length!=d.length||c.some(function(b){return!i(l[b],s[b],u)})))return!1;switch(g.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,[])}})()}}),Hh=ot(TR(),1),Zb=e=>e.map(t=>typeof t<"u").filter(Boolean).length,AR=(e,t)=>{let{exists:r,eq:n,neq:o,truthy:a}=e;if(Zb([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,Hh.isEqual)(t,n);if(typeof o<"u")return!(0,Hh.isEqual)(t,o);if(typeof r<"u"){let i=typeof t<"u";return r?i:!i}return typeof a>"u"||a?!!t:!t},OR=(e,t,r)=>{if(!e.if)return!0;let{arg:n,global:o}=e.if;if(Zb([n,o])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:n,global:o})}`);let a=n?t[n]:r[o];return AR(e.if,a)},RR={};Ke(RR,{argsEnhancers:()=>FR});var Qb=(e,t)=>typeof t[e]>"u"&&!(e in t),DR=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])=>(Qb(l,t)&&(i[l]=kd(l,{implicit:!0,id:n})),i),{})},PR=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])=>(Qb(a,t)&&(o[a]=kd(typeof i.action=="string"?i.action:a)),o),{})},FR=[PR,DR],IR={};Ke(IR,{loaders:()=>NR});const{onMockCall:LR}=__STORYBOOK_MODULE_TEST__;var Uh=!1,kR=e=>{let{parameters:t}=e;t?.actions?.disable||Uh||(LR((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)))&&kd(o)(n)}),Uh=!0)},NR=[kR];const{useEffect:zh}=__STORYBOOK_MODULE_PREVIEW_API__;var{document:kt}=globalThis,MR=()=>globalThis?.matchMedia?!!globalThis.matchMedia("(prefers-reduced-motion: reduce)")?.matches:!1,Kh=e=>{(Array.isArray(e)?e:[e]).forEach(BR)},BR=e=>{if(!kt)return;let t=kt.getElementById(e);t&&t.parentElement&&t.parentElement.removeChild(t)},jR=(e,t)=>{if(!kt)return;let r=kt.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=kt.createElement("style");n.setAttribute("id",e),n.innerHTML=t,kt.head.appendChild(n)}},HR=(e,t,r)=>{if(!kt)return;let n=kt.getElementById(e);if(n)n.innerHTML!==t&&(n.innerHTML=t);else{let o=kt.createElement("style");o.setAttribute("id",e),o.innerHTML=t;let a=`addon-backgrounds-grid${r?`-docs-${r}`:""}`,i=kt.getElementById(a);i?i.parentElement?.insertBefore(o,i):kt.head.appendChild(o)}},UR={cellSize:100,cellAmount:10,opacity:.8},Gh="addon-backgrounds",Wh="addon-backgrounds-grid",zR=MR()?"":"transition: background-color 0.3s;",KR=(e,t)=>{let{globals:r={},parameters:n={},viewMode:o,id:a}=t,{options:i=lT,disable:l,grid:s=UR}=n[Gp]||{},u=r[Gp]||{},c=typeof u=="string"?u:u?.value,d=c?i[c]:void 0,f=typeof d=="string"?d:d?.value||"transparent",g=typeof u=="string"?!1:u.grid||!1,y=!!d&&!l,b=o==="docs"?`#anchor--${a} .docs-story, #anchor--primary--${a} .docs-story`:".sb-show-main",v=o==="docs"?`#anchor--${a} .docs-story, #anchor--primary--${a} .docs-story`:".sb-show-main",h=n.layout===void 0||n.layout==="padded",E=o==="docs"?20:h?16:0,{cellAmount:S,cellSize:x,opacity:_,offsetX:$=E,offsetY:C=E}=s,A=o==="docs"?`${Gh}-docs-${a}`:`${Gh}-color`,D=o==="docs"?a:null;zh(()=>{let T=`
55
- ${b} {
56
- background: ${f} !important;
57
- ${zR}
58
- }`;if(!y){Kh(A);return}HR(A,T,D)},[b,A,D,y,f]);let F=o==="docs"?`${Wh}-docs-${a}`:`${Wh}`;return zh(()=>{if(!g){Kh(F);return}let T=[`${x*S}px ${x*S}px`,`${x*S}px ${x*S}px`,`${x}px ${x}px`,`${x}px ${x}px`].join(", "),N=`
59
- ${v} {
60
- background-size: ${T} !important;
61
- background-position: ${$}px ${C}px, ${$}px ${C}px, ${$}px ${C}px, ${$}px ${C}px !important;
62
- background-blend-mode: difference !important;
63
- background-image: linear-gradient(rgba(130, 130, 130, ${_}) 1px, transparent 1px),
64
- linear-gradient(90deg, rgba(130, 130, 130, ${_}) 1px, transparent 1px),
65
- linear-gradient(rgba(130, 130, 130, ${_/2}) 1px, transparent 1px),
66
- linear-gradient(90deg, rgba(130, 130, 130, ${_/2}) 1px, transparent 1px) !important;
67
- }
68
- `;jR(F,N)},[S,x,v,F,g,$,C,_]),e()};globalThis.FEATURES?.backgrounds;var{step:Yq}=$R({step:async(e,t,r)=>t(r)},{intercept:!0});const{addons:Vh}=__STORYBOOK_MODULE_PREVIEW_API__,{STORY_RENDER_PHASE_CHANGED:GR}=__STORYBOOK_MODULE_CORE_EVENTS__;var qh={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"]},WR="svg,path,rect,circle,line,polyline,polygon,ellipse,text".split(","),Le=(e,t={},r)=>{let n=WR.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},Da=e=>qh[e]&&Le("svg",{width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},qh[e].map(t=>Le("path",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd",d:t}))),VR=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}},qR=e=>e instanceof Function,Eo=new Map,zr=new Map,Pa=new Map,sr=e=>{let t=Symbol();return zr.set(t,[]),Eo.set(t,e),{get:()=>Eo.get(t),set:r=>{let n=Eo.get(t),o=qR(r)?r(n):r;o!==n&&(Eo.set(t,o),zr.get(t)?.forEach(a=>{Pa.get(a)?.(),Pa.set(a,a(o))}))},subscribe:r=>(zr.get(t)?.push(r),()=>{let n=zr.get(t);n&&zr.set(t,n.filter(o=>o!==r))}),teardown:()=>{zr.get(t)?.forEach(r=>{Pa.get(r)?.(),Pa.delete(r)}),zr.delete(t),Eo.delete(t)}}},Yh=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},YR=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),Xh=(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},Jh=(e,t,r)=>{if(!t||!r)return!1;let{left:n,top:o,width:a,height:i}=e;i<_r&&(o=o-Math.round((_r-i)/2),i=_r),a<_r&&(n=n-Math.round((_r-a)/2),a=_r),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},XR=(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),g=l?e.clientWidth/2:0,y=e.style.position==="fixed"?Math.max(Math.min(n-s,d-g-a),g+a):Math.max(Math.min(n,d-g-a+s),g+a+s);Object.assign(e.style,{...y!==n&&{left:`${y}px`},...f!==o&&{top:`${f}px`}})},Zh=e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.showPopover()},JR=e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.hidePopover()},ZR=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}}),Se="storybook-highlights-menu",Qh="storybook-highlights-root",QR="storybook-root",e5=e=>{if(globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED)return;globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED=!0;let{document:t}=globalThis,r=sr([]),n=sr(new Map),o=sr([]),a=sr(),i=sr(),l=sr([]),s=sr([]),u=sr(),c=sr(),d=t.getElementById(Qh);r.subscribe(()=>{d||(d=Le("div",{id:Qh}),t.body.appendChild(d))}),r.subscribe(C=>{let A=t.getElementById(QR);if(!A)return;n.set(Yh(C));let D=new MutationObserver(()=>n.set(Yh(C)));return D.observe(A,{subtree:!0,childList:!0}),()=>{D.disconnect()}}),n.subscribe(C=>{let A=()=>requestAnimationFrame(()=>o.set(YR(C))),D=new ResizeObserver(A);D.observe(t.body),Array.from(C.keys()).forEach(T=>D.observe(T));let F=Array.from(t.body.querySelectorAll("*")).filter(T=>{let{overflow:N,overflowX:L,overflowY:R}=window.getComputedStyle(T);return["auto","scroll"].some(I=>[N,L,R].includes(I))});return F.forEach(T=>T.addEventListener("scroll",A)),()=>{D.disconnect(),F.forEach(T=>T.removeEventListener("scroll",A))}}),n.subscribe(C=>{let A=Array.from(C.keys()).filter(({style:F})=>F.position==="sticky"),D=()=>requestAnimationFrame(()=>{o.set(F=>F.map(T=>{if(A.includes(T.element)){let{top:N,left:L}=T.element.getBoundingClientRect();return{...T,top:N+window.scrollY,left:L+window.scrollX}}return T}))});return t.addEventListener("scroll",D),()=>t.removeEventListener("scroll",D)}),n.subscribe(C=>{l.set(A=>A.filter(({element:D})=>C.has(D)))}),l.subscribe(C=>{C.length?(c.set(A=>C.some(D=>D.element===A?.element)?A:void 0),u.set(A=>C.some(D=>D.element===A?.element)?A:void 0)):(c.set(void 0),u.set(void 0),a.set(void 0))});let f=new Map(new Map);r.subscribe(C=>{C.forEach(({keyframes:A})=>{if(A){let D=f.get(A);D||(D=t.createElement("style"),D.setAttribute("data-highlight","keyframes"),f.set(A,D),t.head.appendChild(D)),D.innerHTML=A}}),f.forEach((A,D)=>{C.some(F=>F.keyframes===D)||(A.remove(),f.delete(D))})});let g=new Map(new Map);o.subscribe(C=>{C.forEach(A=>{let D=g.get(A.element);if(d&&!D){let F={popover:"manual","data-highlight-dimensions":`w${A.width.toFixed(0)}h${A.height.toFixed(0)}`,"data-highlight-coordinates":`x${A.left.toFixed(0)}y${A.top.toFixed(0)}`};D=d.appendChild(Le("div",F,[Le("div")])),g.set(A.element,D)}}),g.forEach((A,D)=>{C.some(({element:F})=>F===D)||(A.remove(),g.delete(D))})}),o.subscribe(C=>{let A=C.filter(F=>F.menu);if(!A.length)return;let D=F=>{requestAnimationFrame(()=>{let T=t.getElementById(Se),N={x:F.pageX,y:F.pageY};if(T&&!Xh(T,N)){let L=A.filter(R=>{let I=g.get(R.element);return Jh(R,I,N)});a.set(L.length?N:void 0),l.set(L)}})};return t.addEventListener("click",D),()=>t.removeEventListener("click",D)});let y=()=>{let C=t.getElementById(Se),A=i.get();!A||C&&Xh(C,A)||s.set(D=>{let F=o.get().filter(R=>{let I=g.get(R.element);return Jh(R,I,A)}),T=D.filter(R=>F.includes(R)),N=F.filter(R=>!D.includes(R)),L=D.length-T.length;return N.length||L?[...T,...N]:D})};i.subscribe(y),o.subscribe(y);let b=()=>{let C=c.get(),A=C?[C]:l.get(),D=A.length===1?A[0]:u.get(),F=a.get()!==void 0;o.get().forEach(T=>{let N=g.get(T.element);if(N){let L=D===T,R=F?D?L:A.includes(T):s.get()?.includes(T);Object.assign(N.style,{animation:"none",background:"transparent",border:"none",boxSizing:"border-box",outline:"none",outlineOffset:"0px",...T.styles,...R?T.hoverStyles:{},...L?T.focusStyles:{},position:getComputedStyle(T.element).position==="fixed"?"fixed":"absolute",zIndex:Vp-10,top:`${T.top}px`,left:`${T.left}px`,width:`${T.width}px`,height:`${T.height}px`,margin:0,padding:0,cursor:T.menu&&R?"pointer":"default",pointerEvents:T.menu?"auto":"none",display:"flex",alignItems:"center",justifyContent:"center",overflow:"visible"}),Object.assign(N.children[0].style,{width:"100%",height:"100%",minHeight:`${_r}px`,minWidth:`${_r}px`,boxSizing:"content-box",padding:N.style.outlineWidth||"0px"}),Zh(N)}})};o.subscribe(b),l.subscribe(b),s.subscribe(b),u.subscribe(b),c.subscribe(b);let v=()=>{if(!d)return;let C=t.getElementById(Se);if(C)C.innerHTML="";else{let T={id:Se,popover:"manual"};C=d.appendChild(Le("div",T)),d.appendChild(Le("style",{},[`
69
- #${Se} {
70
- position: absolute;
71
- z-index: ${Vp};
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
- #${Se} ul {
85
- list-style: none;
86
- margin: 0;
87
- padding: 0;
88
- }
89
- #${Se} > ul {
90
- max-height: 300px;
91
- overflow-y: auto;
92
- padding: 4px 0;
93
- }
94
- #${Se} li {
95
- padding: 0 4px;
96
- margin: 0;
97
- }
98
- #${Se} 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
- #${Se} 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
- #${Se} button:focus-visible {
116
- outline-color: #029CFD;
117
- }
118
- #${Se} button:hover {
119
- background: rgba(2, 156, 253, 0.07);
120
- color: #029CFD;
121
- cursor: pointer;
122
- }
123
- #${Se} li code {
124
- white-space: nowrap;
125
- overflow: hidden;
126
- text-overflow: ellipsis;
127
- line-height: 16px;
128
- font-size: 11px;
129
- }
130
- #${Se} li svg {
131
- flex-shrink: 0;
132
- margin: 1px;
133
- color: #73828C;
134
- }
135
- #${Se} li > button:hover svg, #${Se} li > button:focus-visible svg {
136
- color: #029CFD;
137
- }
138
- #${Se} .element-list li svg {
139
- display: none;
140
- }
141
- #${Se} li.selectable svg, #${Se} li.selected svg {
142
- display: block;
143
- }
144
- #${Se} .menu-list {
145
- border-top: 1px solid rgba(38, 85, 115, 0.15);
146
- }
147
- #${Se} .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
- #${Se} .menu-items, #${Se} .menu-items li {
153
- padding: 0;
154
- }
155
- #${Se} .menu-item {
156
- display: flex;
157
- }
158
- #${Se} .menu-item-content {
159
- display: flex;
160
- flex-direction: column;
161
- flex-grow: 1;
162
- }
163
- `]))}let A=c.get(),D=A?[A]:l.get();if(D.length&&(C.style.position=getComputedStyle(D[0].element).position==="fixed"?"fixed":"absolute",C.appendChild(Le("ul",{class:"element-list"},D.map(T=>{let N=D.length>1&&!!T.menu?.some(I=>I.some(k=>!k.selectors||k.selectors.some(M=>T.selectors.includes(M)))),L=N?{class:"selectable",onClick:()=>c.set(T),onMouseEnter:()=>u.set(T),onMouseLeave:()=>u.set(void 0)}:A?{class:"selected",onClick:()=>c.set(void 0)}:{},R=N||A;return Le("li",L,[Le(R?"button":"div",R?{type:"button"}:{},[A?Da("chevronLeft"):null,Le("code",{},[T.element.outerHTML]),N?Da("chevronRight"):null])])})))),c.get()||l.get().length===1){let T=c.get()||l.get()[0],N=T.menu?.filter(L=>L.some(R=>!R.selectors||R.selectors.some(I=>T.selectors.includes(I))));N?.length&&C.appendChild(Le("ul",{class:"menu-list"},N.map(L=>Le("li",{},[Le("ul",{class:"menu-items"},L.map(({id:R,title:I,description:k,iconLeft:M,iconRight:H,clickEvent:U})=>{let B=U&&(()=>e.emit(U,R,ZR(T)));return Le("li",{},[Le(B?"button":"div",B?{class:"menu-item",type:"button",onClick:B}:{class:"menu-item"},[M?Da(M):null,Le("div",{class:"menu-item-content"},[Le(k?"strong":"span",{},[I]),k&&Le("span",{},[k])]),H?Da(H):null])])}))]))))}let F=a.get();F?(Object.assign(C.style,{display:"block",left:`${C.style.position==="fixed"?F.x-window.scrollX:F.x}px`,top:`${C.style.position==="fixed"?F.y-window.scrollY:F.y}px`}),Zh(C),requestAnimationFrame(()=>XR(C,F,{topOffset:15,centered:!0}))):(JR(C),Object.assign(C.style,{display:"none"}))};l.subscribe(v),c.subscribe(v);let h=C=>{let A=VR(C);r.set(D=>{let F=A.id?D.filter(T=>T.id!==A.id):D;return A.selectors?.length?[...F,A]:F})},E=C=>{C&&r.set(A=>A.filter(D=>D.id!==C))},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,A)=>{let D="scrollIntoView-highlight";clearTimeout(x),E(D);let F=t.querySelector(C);if(!F){console.warn(`Cannot scroll into view: ${C} not found`);return}F.scrollIntoView({behavior:"smooth",block:"center",...A});let T=`kf-${Math.random().toString(36).substring(2,15)}`;r.set(N=>[...N,{id:D,priority:1e3,selectors:[C],styles:{outline:"2px solid #1EA7FD",outlineOffset:"-1px",animation:`${T} 3s linear forwards`},keyframes:`@keyframes ${T} {
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(()=>E(D),3500)},$=C=>{requestAnimationFrame(()=>i.set({x:C.pageX,y:C.pageY}))};t.body.addEventListener("mousemove",$),e.on(hT,h),e.on(gT,E),e.on(mT,S),e.on(yT,_),e.on(GR,({newPhase:C})=>{C==="loading"&&S()})};globalThis?.FEATURES?.highlight&&Vh?.ready&&Vh.ready().then(e5);const{useEffect:eg}=__STORYBOOK_MODULE_PREVIEW_API__,{global:wi}=__STORYBOOK_MODULE_GLOBAL__;function e1(){let e=wi.document.documentElement,t=Math.max(e.scrollHeight,e.offsetHeight);return{width:Math.max(e.scrollWidth,e.offsetWidth),height:t}}function t5(){let e=wi.document.createElement("canvas");e.id="storybook-addon-measure";let t=e.getContext("2d");uc(t!=null);let{width:r,height:n}=e1();return yc(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",wi.document.body.appendChild(e),{canvas:e,context:t,width:r,height:n}}function yc(e,t,{width:r,height:n}){e.style.width=`${r}px`,e.style.height=`${n}px`;let o=wi.window.devicePixelRatio;e.width=Math.floor(r*o),e.height=Math.floor(n*o),t.scale(o,o)}var ke={};function r5(){ke.canvas||(ke=t5())}function t1(){ke.context&&ke.context.clearRect(0,0,ke.width??0,ke.height??0)}function n5(e){t1(),e(ke.context)}function o5(){uc(ke.canvas),uc(ke.context),yc(ke.canvas,ke.context,{width:0,height:0});let{width:e,height:t}=e1();yc(ke.canvas,ke.context,{width:e,height:t}),ke.width=e,ke.height=t}function a5(){ke.canvas&&(t1(),ke.canvas.parentNode?.removeChild(ke.canvas),ke={})}const{global:It}=__STORYBOOK_MODULE_GLOBAL__;var On={margin:"#f6b26b",border:"#ffe599",padding:"#93c47d",content:"#6fa8dc",text:"#232020"},gr=6;function tg(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 i5(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 l5(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 s5(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 u5(e,t,r){return e==="top"?t.y=r.y-r.h-gr:e==="right"?t.x=r.x+r.w/2+gr+t.w/2:e==="bottom"?t.y=r.y+r.h+gr:e==="left"&&(t.x=r.x-r.w/2-gr-t.w/2),{x:t.x,y:t.y}}function r1(e,t,{x:r,y:n,w:o,h:a},i){return tg(e,{x:r,y:n,w:o,h:a,r:3}),e.fillStyle=`${On[t]}dd`,e.fill(),e.strokeStyle=On[t],e.stroke(),e.fillStyle=On.text,e.fillText(i,r,n),tg(e,{x:r,y:n,w:o,h:a,r:3}),e.fillStyle=`${On[t]}dd`,e.fill(),e.strokeStyle=On[t],e.stroke(),e.fillStyle=On.text,e.fillText(i,r,n),{x:r,y:n,w:o,h:a}}function n1(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+gr*2,a=n+gr*2;return{w:o,h:a}}function c5(e,t,{type:r,position:n="center",text:o},a,i=!1){let{x:l,y:s}=i5(n,t),{offsetX:u,offsetY:c}=l5(r,n,t,gr+1,i);l+=u,s+=c;let{w:d,h:f}=n1(e,o);if(a&&s5({x:l,y:s,w:d,h:f},a)){let g=u5(n,{x:l,y:s,w:d},a);l=g.x,s=g.y}return r1(e,r,{x:l,y:s,w:d,h:f},o)}function d5(e,{w:t,h:r}){let n=t*.5+gr,o=r*.5+gr;return{offsetX:(e.x==="left"?-1:1)*n,offsetY:(e.y==="top"?-1:1)*o}}function f5(e,t,{type:r,text:n}){let{floatingAlignment:o,extremities:a}=t,i=a[o.x],l=a[o.y],{w:s,h:u}=n1(e,n),{offsetX:c,offsetY:d}=d5(o,{w:s,h:u});return i+=c,l+=d,r1(e,r,{x:i,y:l,w:s,h:u},n)}function So(e,t,r,n){let o=[];r.forEach((a,i)=>{let l=n&&a.position==="center"?f5(e,t,a):c5(e,t,a,o[i-1],n);o[i]=l})}function p5(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&&So(e,t,o.top,n),o.right&&So(e,t,o.right,n),o.bottom&&So(e,t,o.bottom,n),o.left&&So(e,t,o.left,n),o.center&&So(e,t,o.center,n)}var nl={margin:"#f6b26ba8",border:"#ffe599a8",padding:"#93c47d8c",content:"#6fa8dca8"},rg=30;function Et(e){return parseInt(e.replace("px",""),10)}function Bn(e){return Number.isInteger(e)?e:e.toFixed(2)}function Vd(e){return e.filter(t=>t.text!==0&&t.text!=="0")}function h5(e){let t={top:It.window.scrollY,bottom:It.window.scrollY+It.window.innerHeight,left:It.window.scrollX,right:It.window.scrollX+It.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 g5(e){let t=It.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:g,paddingLeft:y,paddingRight:b,borderBottomWidth:v,borderTopWidth:h,borderLeftWidth:E,borderRightWidth:S}=t;r=r+It.window.scrollY,n=n+It.window.scrollX,a=a+It.window.scrollY,o=o+It.window.scrollX;let x={top:Et(s),bottom:Et(u),left:Et(c),right:Et(d)},_={top:Et(f),bottom:Et(g),left:Et(y),right:Et(b)},$={top:Et(h),bottom:Et(v),left:Et(E),right:Et(S)},C={top:r-x.top,bottom:a+x.bottom,left:n-x.left,right:o+x.right};return{margin:x,padding:_,border:$,top:r,left:n,bottom:a,right:o,width:i,height:l,extremities:C,floatingAlignment:h5(C)}}function m5(e,{margin:t,width:r,height:n,top:o,left:a,bottom:i,right:l}){let s=n+t.bottom+t.top;e.fillStyle=nl.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:Bn(t.top),position:"top"},{type:"margin",text:Bn(t.right),position:"right"},{type:"margin",text:Bn(t.bottom),position:"bottom"},{type:"margin",text:Bn(t.left),position:"left"}];return Vd(u)}function y5(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=nl.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 Vd(d)}function b5(e,{border:t,width:r,height:n,top:o,left:a,bottom:i,right:l}){let s=n-t.top-t.bottom;e.fillStyle=nl.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 Vd(u)}function v5(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=nl.content,e.fillRect(i+r.left+t.left,a+r.top+t.top,l,s),[{type:"content",position:"center",text:`${Bn(l)} x ${Bn(s)}`}]}function E5(e){return t=>{if(e&&t){let r=g5(e),n=m5(t,r),o=y5(t,r),a=b5(t,r),i=v5(t,r),l=r.width<=rg*3||r.height<=rg;p5(t,r,[...i,...o,...a,...n],l)}}}function S5(e){n5(E5(e))}const{global:x5}=__STORYBOOK_MODULE_GLOBAL__;var w5=(e,t)=>{let r=x5.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},ng,Fa={x:0,y:0};function og(e,t){ng=w5(e,t),S5(ng)}var $5=(e,t)=>{let{measureEnabled:r}=t.globals||{};return eg(()=>{if(typeof globalThis.document>"u")return;let n=o=>{window.requestAnimationFrame(()=>{o.stopPropagation(),Fa.x=o.clientX,Fa.y=o.clientY})};return globalThis.document.addEventListener("pointermove",n),()=>{globalThis.document.removeEventListener("pointermove",n)}},[]),eg(()=>{let n=a=>{window.requestAnimationFrame(()=>{a.stopPropagation(),og(a.clientX,a.clientY)})},o=()=>{window.requestAnimationFrame(()=>{o5()})};return t.viewMode==="story"&&r&&(globalThis.document.addEventListener("pointerover",n),r5(),globalThis.window.addEventListener("resize",o),og(Fa.x,Fa.y)),()=>{globalThis.window.removeEventListener("resize",o),a5()}},[r,t.viewMode]),e()};globalThis.FEATURES?.measure;const{useEffect:C5,useMemo:_5}=__STORYBOOK_MODULE_PREVIEW_API__,{global:ni}=__STORYBOOK_MODULE_GLOBAL__;var ag=e=>{(Array.isArray(e)?e:[e]).forEach(T5)},T5=e=>{let t=typeof e=="string"?e:e.join(""),r=ni.document.getElementById(t);r&&r.parentElement&&r.parentElement.removeChild(r)},A5=(e,t)=>{let r=ni.document.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=ni.document.createElement("style");n.setAttribute("id",e),n.innerHTML=t,ni.document.head.appendChild(n)}};function O5(e){return $t`
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 R5=(e,t)=>{let r=t.globals||{},n=[!0,"true"].includes(r[iT]),o=t.viewMode==="docs",a=_5(()=>O5(o?'[data-story-block="true"]':".sb-show-main"),[t]);return C5(()=>{let i=o?`addon-outline-docs-${t.id}`:"addon-outline";return n?A5(i,a):ag(i),()=>{ag(i)}},[n,a,t]),e()};globalThis.FEATURES?.outline;const{clearAllMocks:Xq,fn:Jq,isMockFunction:Zq,resetAllMocks:Qq,restoreAllMocks:eY,uninstrumentedUserEvent:tY,within:rY}=__STORYBOOK_MODULE_TEST__;var Yn=e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),ig=(e,t)=>{let r=Yn(e);if(r==="")throw new Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return r},Ia=(e,t)=>`${ig(e,"kind")}${t?`--${ig(t,"name")}`:""}`,hs={exports:{}},xo={},lg;function D5(){if(lg)return xo;lg=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var i=null;if(a!==void 0&&(i=""+a),o.key!==void 0&&(i=""+o.key),"key"in o){a={};for(var l in o)l!=="key"&&(a[l]=o[l])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:i,ref:o!==void 0?o:null,props:a}}return xo.Fragment=t,xo.jsx=r,xo.jsxs=r,xo}var sg;function P5(){return sg||(sg=1,hs.exports=D5()),hs.exports}var se=P5(),gs={exports:{}},ee={},ug;function F5(){if(ug)return ee;ug=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.memo"),c=Symbol.for("react.lazy"),d=Symbol.for("react.activity"),f=Symbol.iterator;function g(O){return O===null||typeof O!="object"?null:(O=f&&O[f]||O["@@iterator"],typeof O=="function"?O:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,v={};function h(O,j,G){this.props=O,this.context=j,this.refs=v,this.updater=G||y}h.prototype.isReactComponent={},h.prototype.setState=function(O,j){if(typeof O!="object"&&typeof O!="function"&&O!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,O,j,"setState")},h.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function E(){}E.prototype=h.prototype;function S(O,j,G){this.props=O,this.context=j,this.refs=v,this.updater=G||y}var x=S.prototype=new E;x.constructor=S,b(x,h.prototype),x.isPureReactComponent=!0;var _=Array.isArray;function $(){}var C={H:null,A:null,T:null,S:null},A=Object.prototype.hasOwnProperty;function D(O,j,G){var K=G.ref;return{$$typeof:e,type:O,key:j,ref:K!==void 0?K:null,props:G}}function F(O,j){return D(O.type,j,O.props)}function T(O){return typeof O=="object"&&O!==null&&O.$$typeof===e}function N(O){var j={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(G){return j[G]})}var L=/\/+/g;function R(O,j){return typeof O=="object"&&O!==null&&O.key!=null?N(""+O.key):j.toString(36)}function I(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then($,$):(O.status="pending",O.then(function(j){O.status==="pending"&&(O.status="fulfilled",O.value=j)},function(j){O.status==="pending"&&(O.status="rejected",O.reason=j)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function k(O,j,G,K,z){var W=typeof O;(W==="undefined"||W==="boolean")&&(O=null);var q=!1;if(O===null)q=!0;else switch(W){case"bigint":case"string":case"number":q=!0;break;case"object":switch(O.$$typeof){case e:case t:q=!0;break;case c:return q=O._init,k(q(O._payload),j,G,K,z)}}if(q)return z=z(O),q=K===""?"."+R(O,0):K,_(z)?(G="",q!=null&&(G=q.replace(L,"$&/")+"/"),k(z,j,G,"",function(Ne){return Ne})):z!=null&&(T(z)&&(z=F(z,G+(z.key==null||O&&O.key===z.key?"":(""+z.key).replace(L,"$&/")+"/")+q)),j.push(z)),1;q=0;var X=K===""?".":K+":";if(_(O))for(var le=0;le<O.length;le++)K=O[le],W=X+R(K,le),q+=k(K,j,G,W,z);else if(le=g(O),typeof le=="function")for(O=le.call(O),le=0;!(K=O.next()).done;)K=K.value,W=X+R(K,le++),q+=k(K,j,G,W,z);else if(W==="object"){if(typeof O.then=="function")return k(I(O),j,G,K,z);throw j=String(O),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.")}return q}function M(O,j,G){if(O==null)return O;var K=[],z=0;return k(O,K,"","",function(W){return j.call(G,W,z++)}),K}function H(O){if(O._status===-1){var j=O._result;j=j(),j.then(function(G){(O._status===0||O._status===-1)&&(O._status=1,O._result=G)},function(G){(O._status===0||O._status===-1)&&(O._status=2,O._result=G)}),O._status===-1&&(O._status=0,O._result=j)}if(O._status===1)return O._result.default;throw O._result}var U=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var j=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(j))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)},B={map:M,forEach:function(O,j,G){M(O,function(){j.apply(this,arguments)},G)},count:function(O){var j=0;return M(O,function(){j++}),j},toArray:function(O){return M(O,function(j){return j})||[]},only:function(O){if(!T(O))throw Error("React.Children.only expected to receive a single React element child.");return O}};return ee.Activity=d,ee.Children=B,ee.Component=h,ee.Fragment=r,ee.Profiler=o,ee.PureComponent=S,ee.StrictMode=n,ee.Suspense=s,ee.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=C,ee.__COMPILER_RUNTIME={__proto__:null,c:function(O){return C.H.useMemoCache(O)}},ee.cache=function(O){return function(){return O.apply(null,arguments)}},ee.cacheSignal=function(){return null},ee.cloneElement=function(O,j,G){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var K=b({},O.props),z=O.key;if(j!=null)for(W in j.key!==void 0&&(z=""+j.key),j)!A.call(j,W)||W==="key"||W==="__self"||W==="__source"||W==="ref"&&j.ref===void 0||(K[W]=j[W]);var W=arguments.length-2;if(W===1)K.children=G;else if(1<W){for(var q=Array(W),X=0;X<W;X++)q[X]=arguments[X+2];K.children=q}return D(O.type,z,K)},ee.createContext=function(O){return O={$$typeof:i,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:a,_context:O},O},ee.createElement=function(O,j,G){var K,z={},W=null;if(j!=null)for(K in j.key!==void 0&&(W=""+j.key),j)A.call(j,K)&&K!=="key"&&K!=="__self"&&K!=="__source"&&(z[K]=j[K]);var q=arguments.length-2;if(q===1)z.children=G;else if(1<q){for(var X=Array(q),le=0;le<q;le++)X[le]=arguments[le+2];z.children=X}if(O&&O.defaultProps)for(K in q=O.defaultProps,q)z[K]===void 0&&(z[K]=q[K]);return D(O,W,z)},ee.createRef=function(){return{current:null}},ee.forwardRef=function(O){return{$$typeof:l,render:O}},ee.isValidElement=T,ee.lazy=function(O){return{$$typeof:c,_payload:{_status:-1,_result:O},_init:H}},ee.memo=function(O,j){return{$$typeof:u,type:O,compare:j===void 0?null:j}},ee.startTransition=function(O){var j=C.T,G={};C.T=G;try{var K=O(),z=C.S;z!==null&&z(G,K),typeof K=="object"&&K!==null&&typeof K.then=="function"&&K.then($,U)}catch(W){U(W)}finally{j!==null&&G.types!==null&&(j.types=G.types),C.T=j}},ee.unstable_useCacheRefresh=function(){return C.H.useCacheRefresh()},ee.use=function(O){return C.H.use(O)},ee.useActionState=function(O,j,G){return C.H.useActionState(O,j,G)},ee.useCallback=function(O,j){return C.H.useCallback(O,j)},ee.useContext=function(O){return C.H.useContext(O)},ee.useDebugValue=function(){},ee.useDeferredValue=function(O,j){return C.H.useDeferredValue(O,j)},ee.useEffect=function(O,j){return C.H.useEffect(O,j)},ee.useEffectEvent=function(O){return C.H.useEffectEvent(O)},ee.useId=function(){return C.H.useId()},ee.useImperativeHandle=function(O,j,G){return C.H.useImperativeHandle(O,j,G)},ee.useInsertionEffect=function(O,j){return C.H.useInsertionEffect(O,j)},ee.useLayoutEffect=function(O,j){return C.H.useLayoutEffect(O,j)},ee.useMemo=function(O,j){return C.H.useMemo(O,j)},ee.useOptimistic=function(O,j){return C.H.useOptimistic(O,j)},ee.useReducer=function(O,j,G){return C.H.useReducer(O,j,G)},ee.useRef=function(O){return C.H.useRef(O)},ee.useState=function(O){return C.H.useState(O)},ee.useSyncExternalStore=function(O,j,G){return C.H.useSyncExternalStore(O,j,G)},ee.useTransition=function(){return C.H.useTransition()},ee.version="19.2.5",ee}var cg;function qd(){return cg||(cg=1,gs.exports=F5()),gs.exports}var p=qd();const m=Id(p),I5=Q_({__proto__:null,default:m},[p]);var Bt=w(e=>`control-${e.replace(/\s+/g,"-")}`,"getControlId"),ol=w(e=>`set-${e.replace(/\s+/g,"-")}`,"getControlSetterButtonId");function Ue(){return Ue=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},Ue.apply(null,arguments)}function L5(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wo(e,t){return Wo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Wo(e,t)}function k5(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Wo(e,t)}function bc(e){return bc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},bc(e)}function N5(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function o1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(o1=function(){return!!e})()}function M5(e,t,r){if(o1())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&Wo(o,r.prototype),o}function vc(e){var t=typeof Map=="function"?new Map:void 0;return vc=function(r){if(r===null||!N5(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 M5(r,arguments,bc(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Wo(n,r)},vc(e)}var Jt=(function(e){k5(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,L5(n)}return t})(vc(Error));function ms(e){return Math.round(e*255)}function B5(e,t,r){return ms(e)+","+ms(t)+","+ms(r)}function Vo(e,t,r,n){if(n===void 0&&(n=B5),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,g=u+c;return n(d,f,g)}var dg={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 j5(e){if(typeof e!="string")return e;var t=e.toLowerCase();return dg[t]?"#"+dg[t]:e}var H5=/^#[a-fA-F0-9]{6}$/,U5=/^#[a-fA-F0-9]{8}$/,z5=/^#[a-fA-F0-9]{3}$/,K5=/^#[a-fA-F0-9]{4}$/,ys=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,G5=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,W5=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,V5=/^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 Xn(e){if(typeof e!="string")throw new Jt(3);var t=j5(e);if(t.match(H5))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(U5)){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(z5))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(K5)){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=ys.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=G5.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=W5.exec(t);if(i){var l=parseInt(""+i[1],10),s=parseInt(""+i[2],10)/100,u=parseInt(""+i[3],10)/100,c="rgb("+Vo(l,s,u)+")",d=ys.exec(c);if(!d)throw new Jt(4,t,c);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10)}}var f=V5.exec(t.substring(0,50));if(f){var g=parseInt(""+f[1],10),y=parseInt(""+f[2],10)/100,b=parseInt(""+f[3],10)/100,v="rgb("+Vo(g,y,b)+")",h=ys.exec(v);if(!h)throw new Jt(4,t,v);return{red:parseInt(""+h[1],10),green:parseInt(""+h[2],10),blue:parseInt(""+h[3],10),alpha:parseFloat(""+f[4])>1?parseFloat(""+f[4])/100:parseFloat(""+f[4])}}throw new Jt(5)}function q5(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 jr(e){return q5(Xn(e))}var Y5=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},Ec=Y5;function Jr(e){var t=e.toString(16);return t.length===1?"0"+t:t}function bs(e){return Jr(Math.round(e*255))}function X5(e,t,r){return Ec("#"+bs(e)+bs(t)+bs(r))}function $i(e,t,r){return Vo(e,t,r,X5)}function J5(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return $i(e,t,r);if(typeof e=="object"&&t===void 0&&r===void 0)return $i(e.hue,e.saturation,e.lightness);throw new Jt(1)}function Z5(e,t,r,n){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?$i(e,t,r):"rgba("+Vo(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?$i(e.hue,e.saturation,e.lightness):"rgba("+Vo(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Jt(2)}function Sc(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return Ec("#"+Jr(e)+Jr(t)+Jr(r));if(typeof e=="object"&&t===void 0&&r===void 0)return Ec("#"+Jr(e.red)+Jr(e.green)+Jr(e.blue));throw new Jt(6)}function sn(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var o=Xn(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?Sc(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?Sc(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new Jt(7)}var Q5=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},eD=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},tD=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},rD=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function Hr(e){if(typeof e!="object")throw new Jt(8);if(eD(e))return sn(e);if(Q5(e))return Sc(e);if(rD(e))return Z5(e);if(tD(e))return J5(e);throw new Jt(8)}function a1(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):a1(e,t,n)}}function mt(e){return a1(e,e.length,[])}function nD(e,t){if(t==="transparent")return t;var r=jr(t);return Hr(Ue({},r,{hue:r.hue+parseFloat(e)}))}mt(nD);function uo(e,t,r){return Math.max(e,Math.min(t,r))}function oD(e,t){if(t==="transparent")return t;var r=jr(t);return Hr(Ue({},r,{lightness:uo(0,1,r.lightness-parseFloat(e))}))}var aD=mt(oD),qe=aD;function iD(e,t){if(t==="transparent")return t;var r=jr(t);return Hr(Ue({},r,{saturation:uo(0,1,r.saturation-parseFloat(e))}))}mt(iD);function lD(e,t){if(t==="transparent")return t;var r=jr(t);return Hr(Ue({},r,{lightness:uo(0,1,r.lightness+parseFloat(e))}))}var sD=mt(lD),oi=sD;function uD(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=Xn(t),o=Ue({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),a=Xn(r),i=Ue({},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,g={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 sn(g)}var cD=mt(uD),i1=cD;function dD(e,t){if(t==="transparent")return t;var r=Xn(t),n=typeof r.alpha=="number"?r.alpha:1,o=Ue({},r,{alpha:uo(0,1,(n*100+parseFloat(e)*100)/100)});return sn(o)}var fD=mt(dD),pD=fD;function hD(e,t){if(t==="transparent")return t;var r=jr(t);return Hr(Ue({},r,{saturation:uo(0,1,r.saturation+parseFloat(e))}))}mt(hD);function gD(e,t){return t==="transparent"?t:Hr(Ue({},jr(t),{hue:parseFloat(e)}))}mt(gD);function mD(e,t){return t==="transparent"?t:Hr(Ue({},jr(t),{lightness:parseFloat(e)}))}mt(mD);function yD(e,t){return t==="transparent"?t:Hr(Ue({},jr(t),{saturation:parseFloat(e)}))}mt(yD);function bD(e,t){return t==="transparent"?t:i1(parseFloat(e),"rgb(0, 0, 0)",t)}mt(bD);function vD(e,t){return t==="transparent"?t:i1(parseFloat(e),"rgb(255, 255, 255)",t)}mt(vD);function ED(e,t){if(t==="transparent")return t;var r=Xn(t),n=typeof r.alpha=="number"?r.alpha:1,o=Ue({},r,{alpha:uo(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return sn(o)}var SD=mt(ED),yr=SD,Y={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"},hr={app:"#F6F9FC",bar:Y.lightest,content:Y.lightest,preview:Y.lightest,gridCellSize:10,positive:"#F1FFEB",warning:"#FFF9EB",negative:"#FFF0EB",critical:"#D13800"},Nt={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}},xc={light:{fgColor:{default:Y.darkest,muted:Y.dark,accent:Y.secondary,inverse:Y.lightest,positive:"#427C27",warning:"#7A4100",negative:"#C23400",critical:"#FFFFFF"},bgColor:{default:Y.lightest,muted:hr.app,positive:"#F1FFEB",warning:"#FFF7EB",negative:"#FFF0EB",critical:"#D13800"},borderColor:{default:Y.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"}}},xD={base:"dark",colorPrimary:"#FF4785",colorSecondary:"#479DFF",appBg:"#1B1C1D",appContentBg:"#222325",appHoverBg:"#233952",appPreviewBg:Y.lightest,appBorderColor:"hsl(0 0% 100% / 0.1)",appBorderRadius:4,fontBase:Nt.fonts.base,fontCode:Nt.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},wD=xD,$D={base:"light",colorPrimary:Y.primary,colorSecondary:Y.secondary,appBg:hr.app,appContentBg:Y.lightest,appHoverBg:"#DBECFF",appPreviewBg:Y.lightest,appBorderColor:Y.border,appBorderRadius:4,fontBase:Nt.fonts.base,fontCode:Nt.fonts.mono,textColor:Y.darkest,textInverseColor:Y.lightest,textMutedColor:Y.dark,barTextColor:Y.dark,barHoverColor:"#005CC7",barSelectedColor:"#0063D6",barBg:Y.lightest,buttonBg:hr.app,buttonBorder:Y.medium,booleanBg:Y.mediumlight,booleanSelectedBg:Y.lightest,inputBg:Y.lightest,inputBorder:Y.border,inputTextColor:Y.darkest,inputBorderRadius:4},wc=$D;const{logger:CD}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{global:_D}=__STORYBOOK_MODULE_GLOBAL__;var{window:vs}=_D,TD=e=>({color:e}),AD=e=>typeof e!="string"?(CD.warn(`Color passed to theme object should be a string. Instead ${e}(${typeof e}) was passed.`),!1):!0,OD=e=>!/(gradient|var|calc)/.test(e),RD=(e,t)=>e==="darken"?sn(`${qe(1,t)}`,.95):e==="lighten"?sn(`${oi(1,t)}`,.95):t,DD=e=>t=>{if(!AD(t)||!OD(t))return t;try{return RD(e,t)}catch{return t}},Yd=DD("lighten"),Xd=()=>!vs||!vs.matchMedia?"light":vs.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",fg={light:wc,dark:wD},ai=Xd(),nn={...fg,normal:fg[ai]},l1=(e={base:ai},t)=>{let r={...nn[ai],...nn[e.base]||{},...e,base:nn[e.base]?e.base:ai};return{...t,...r,barSelectedColor:e.barSelectedColor||r.colorSecondary}},PD=Je({"../../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,g=t?Symbol.for("react.suspense_list"):60120,y=t?Symbol.for("react.memo"):60115,b=t?Symbol.for("react.lazy"):60116,v=t?Symbol.for("react.block"):60121,h=t?Symbol.for("react.fundamental"):60117,E=t?Symbol.for("react.responder"):60118,S=t?Symbol.for("react.scope"):60119;function x($){if(typeof $=="object"&&$!==null){var C=$.$$typeof;switch(C){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 b:case y:case l:return $;default:return C}}case n:return C}}}function _($){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=b,e.Memo=y,e.Portal=n,e.Profiler=i,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function($){return _($)||x($)===u},e.isConcurrentMode=_,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($)===b},e.isMemo=function($){return x($)===y},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||$===g||typeof $=="object"&&$!==null&&($.$$typeof===b||$.$$typeof===y||$.$$typeof===l||$.$$typeof===s||$.$$typeof===d||$.$$typeof===h||$.$$typeof===E||$.$$typeof===S||$.$$typeof===v)},e.typeOf=x}}),FD=Je({"../../node_modules/react-is/index.js"(e,t){t.exports=PD()}}),s1=Je({"../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(e,t){var r=FD(),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(v){return r.isMemo(v)?i:l[v.$$typeof]||n}var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,y=Object.prototype;function b(v,h,E){if(typeof h!="string"){if(y){var S=g(h);S&&S!==y&&b(v,S,E)}var x=c(h);d&&(x=x.concat(d(h)));for(var _=s(v),$=s(h),C=0;C<x.length;++C){var A=x[C];if(!o[A]&&!(E&&E[A])&&!($&&$[A])&&!(_&&_[A])){var D=f(h,A);try{u(v,A,D)}catch{}}}}return v}t.exports=b}});function ID(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 LD(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 kD=(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(LD(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var o=ID(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})(),Ve="-ms-",Ci="-moz-",pe="-webkit-",u1="comm",Jd="rule",Zd="decl",ND="@import",c1="@keyframes",MD="@layer",BD=Math.abs,al=String.fromCharCode,jD=Object.assign;function HD(e,t){return Be(e,0)^45?(((t<<2^Be(e,0))<<2^Be(e,1))<<2^Be(e,2))<<2^Be(e,3):0}function d1(e){return e.trim()}function UD(e,t){return(e=t.exec(e))?e[0]:e}function he(e,t,r){return e.replace(t,r)}function $c(e,t){return e.indexOf(t)}function Be(e,t){return e.charCodeAt(t)|0}function qo(e,t,r){return e.slice(t,r)}function Vt(e){return e.length}function Qd(e){return e.length}function La(e,t){return t.push(e),e}function zD(e,t){return e.map(t).join("")}var il=1,Jn=1,f1=0,ct=0,De=0,co="";function ll(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:il,column:Jn,length:i,return:""}}function wo(e,t){return jD(ll("",null,null,"",null,null,0),e,{length:-e.length},t)}function KD(){return De}function GD(){return De=ct>0?Be(co,--ct):0,Jn--,De===10&&(Jn=1,il--),De}function gt(){return De=ct<f1?Be(co,ct++):0,Jn++,De===10&&(Jn=1,il++),De}function tr(){return Be(co,ct)}function ii(){return ct}function ua(e,t){return qo(co,e,t)}function Yo(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 p1(e){return il=Jn=1,f1=Vt(co=e),ct=0,[]}function h1(e){return co="",e}function li(e){return d1(ua(ct-1,Cc(e===91?e+2:e===40?e+1:e)))}function WD(e){for(;(De=tr())&&De<33;)gt();return Yo(e)>2||Yo(De)>3?"":" "}function VD(e,t){for(;--t&&gt()&&!(De<48||De>102||De>57&&De<65||De>70&&De<97););return ua(e,ii()+(t<6&&tr()==32&&gt()==32))}function Cc(e){for(;gt();)switch(De){case e:return ct;case 34:case 39:e!==34&&e!==39&&Cc(De);break;case 40:e===41&&Cc(e);break;case 92:gt();break}return ct}function qD(e,t){for(;gt()&&e+De!==57&&!(e+De===84&&tr()===47););return"/*"+ua(t,ct-1)+"*"+al(e===47?e:gt())}function YD(e){for(;!Yo(tr());)gt();return ua(e,ct)}function XD(e){return h1(si("",null,null,null,[""],e=p1(e),0,[0],e))}function si(e,t,r,n,o,a,i,l,s){for(var u=0,c=0,d=i,f=0,g=0,y=0,b=1,v=1,h=1,E=0,S="",x=o,_=a,$=n,C=S;v;)switch(y=E,E=gt()){case 40:if(y!=108&&Be(C,d-1)==58){$c(C+=he(li(E),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:C+=li(E);break;case 9:case 10:case 13:case 32:C+=WD(y);break;case 92:C+=VD(ii()-1,7);continue;case 47:switch(tr()){case 42:case 47:La(JD(qD(gt(),ii()),t,r),s);break;default:C+="/"}break;case 123*b:l[u++]=Vt(C)*h;case 125*b:case 59:case 0:switch(E){case 0:case 125:v=0;case 59+c:h==-1&&(C=he(C,/\f/g,"")),g>0&&Vt(C)-d&&La(g>32?hg(C+";",n,r,d-1):hg(he(C," ","")+";",n,r,d-2),s);break;case 59:C+=";";default:if(La($=pg(C,t,r,u,c,o,l,S,x=[],_=[],d),a),E===123)if(c===0)si(C,t,$,$,x,a,d,l,_);else switch(f===99&&Be(C,3)===110?100:f){case 100:case 108:case 109:case 115:si(e,$,$,n&&La(pg(e,$,$,0,0,o,l,S,o,x=[],d),_),o,_,d,l,n?x:_);break;default:si(C,$,$,$,[""],_,0,l,_)}}u=c=g=0,b=h=1,S=C="",d=i;break;case 58:d=1+Vt(C),g=y;default:if(b<1){if(E==123)--b;else if(E==125&&b++==0&&GD()==125)continue}switch(C+=al(E),E*b){case 38:h=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(Vt(C)-1)*h,h=1;break;case 64:tr()===45&&(C+=li(gt())),f=tr(),c=d=Vt(S=C+=YD(ii())),E++;break;case 45:y===45&&Vt(C)==2&&(b=0)}}return a}function pg(e,t,r,n,o,a,i,l,s,u,c){for(var d=o-1,f=o===0?a:[""],g=Qd(f),y=0,b=0,v=0;y<n;++y)for(var h=0,E=qo(e,d+1,d=BD(b=i[y])),S=e;h<g;++h)(S=d1(b>0?f[h]+" "+E:he(E,/&\f/g,f[h])))&&(s[v++]=S);return ll(e,t,r,o===0?Jd:l,s,u,c)}function JD(e,t,r){return ll(e,t,r,u1,al(KD()),qo(e,2,-2),0)}function hg(e,t,r,n){return ll(e,t,r,Zd,qo(e,0,n),qo(e,n+1,-1),n)}function Un(e,t){for(var r="",n=Qd(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function ZD(e,t,r,n){switch(e.type){case MD:if(e.children.length)break;case ND:case Zd:return e.return=e.return||e.value;case u1:return"";case c1:return e.return=e.value+"{"+Un(e.children,n)+"}";case Jd:e.value=e.props.join(",")}return Vt(r=Un(e.children,n))?e.return=e.value+"{"+r+"}":""}function QD(e){var t=Qd(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 e2(e){return function(t){t.root||(t=t.return)&&e(t)}}var gg=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 g1(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var t2=function(e,t,r){for(var n=0,o=0;n=o,o=tr(),n===38&&o===12&&(t[r]=1),!Yo(o);)gt();return ua(e,ct)},r2=function(e,t){var r=-1,n=44;do switch(Yo(n)){case 0:n===38&&tr()===12&&(t[r]=1),e[r]+=t2(ct-1,t,r);break;case 2:e[r]+=li(n);break;case 4:if(n===44){e[++r]=tr()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=al(n)}while(n=gt());return e},n2=function(e,t){return h1(r2(p1(e),t))},mg=new WeakMap,o2=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&&!mg.get(r))&&!n){mg.set(e,!0);for(var o=[],a=n2(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]}}},a2=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};function m1(e,t){switch(HD(e,t)){case 5103:return pe+"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 pe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return pe+e+Ci+e+Ve+e+e;case 6828:case 4268:return pe+e+Ve+e+e;case 6165:return pe+e+Ve+"flex-"+e+e;case 5187:return pe+e+he(e,/(\w+).+(:[^]+)/,pe+"box-$1$2"+Ve+"flex-$1$2")+e;case 5443:return pe+e+Ve+"flex-item-"+he(e,/flex-|-self/,"")+e;case 4675:return pe+e+Ve+"flex-line-pack"+he(e,/align-content|flex-|-self/,"")+e;case 5548:return pe+e+Ve+he(e,"shrink","negative")+e;case 5292:return pe+e+Ve+he(e,"basis","preferred-size")+e;case 6060:return pe+"box-"+he(e,"-grow","")+pe+e+Ve+he(e,"grow","positive")+e;case 4554:return pe+he(e,/([^-])(transform)/g,"$1"+pe+"$2")+e;case 6187:return he(he(he(e,/(zoom-|grab)/,pe+"$1"),/(image-set)/,pe+"$1"),e,"")+e;case 5495:case 3959:return he(e,/(image-set\([^]*)/,pe+"$1$`$1");case 4968:return he(he(e,/(.+:)(flex-)?(.*)/,pe+"box-pack:$3"+Ve+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+pe+e+e;case 4095:case 3583:case 4068:case 2532:return he(e,/(.+)-inline(.+)/,pe+"$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(Vt(e)-1-t>6)switch(Be(e,t+1)){case 109:if(Be(e,t+4)!==45)break;case 102:return he(e,/(.+:)(.+)-([^]+)/,"$1"+pe+"$2-$3$1"+Ci+(Be(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~$c(e,"stretch")?m1(he(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Be(e,t+1)!==115)break;case 6444:switch(Be(e,Vt(e)-3-(~$c(e,"!important")&&10))){case 107:return he(e,":",":"+pe)+e;case 101:return he(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+pe+(Be(e,14)===45?"inline-":"")+"box$3$1"+pe+"$2$3$1"+Ve+"$2box$3")+e}break;case 5936:switch(Be(e,t+11)){case 114:return pe+e+Ve+he(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return pe+e+Ve+he(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return pe+e+Ve+he(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return pe+e+Ve+e+e}return e}var i2=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Zd:e.return=m1(e.value,e.length);break;case c1:return Un([wo(e,{value:he(e.value,"@","@"+pe)})],n);case Jd:if(e.length)return zD(e.props,function(o){switch(UD(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Un([wo(e,{props:[he(o,/:(read-\w+)/,":"+Ci+"$1")]})],n);case"::placeholder":return Un([wo(e,{props:[he(o,/:(plac\w+)/,":"+pe+"input-$1")]}),wo(e,{props:[he(o,/:(plac\w+)/,":"+Ci+"$1")]}),wo(e,{props:[he(o,/:(plac\w+)/,Ve+"input-$1")]})],n)}return""})}},l2=[i2],y1=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var b=y.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var n=e.stylisPlugins||l2,o={},a,i=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(y){for(var b=y.getAttribute("data-emotion").split(" "),v=1;v<b.length;v++)o[b[v]]=!0;i.push(y)});var l,s=[o2,a2];{var u,c=[ZD,e2(function(y){u.insert(y)})],d=QD(s.concat(n,c)),f=function(y){return Un(XD(y),d)};l=function(y,b,v,h){u=v,f(y?y+"{"+b.styles+"}":b.styles),h&&(g.inserted[b.name]=!0)}}var g={key:t,sheet:new kD({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 g.sheet.hydrate(i),g};ot(s1());var s2=!0;function ef(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var sl=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||s2===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},ul=function(e,t,r){sl(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 u2(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 c2={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},d2=/[A-Z]|^ms/g,f2=/_EMO_([^_]+?)_([^]*?)_EMO_/g,b1=function(e){return e.charCodeAt(1)===45},yg=function(e){return e!=null&&typeof e!="boolean"},Es=g1(function(e){return b1(e)?e:e.replace(d2,"-$&").toLowerCase()}),bg=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(f2,function(r,n,o){return qt={name:n,styles:o,next:qt},n})}return c2[e]!==1&&!b1(e)&&typeof t=="number"&&t!==0?t+"px":t};function Xo(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 qt={name:o.name,styles:o.styles,next:qt},o.name;var a=r;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)qt={name:i.name,styles:i.styles,next:qt},i=i.next;var l=a.styles+";";return l}return p2(e,t,r)}case"function":{if(e!==void 0){var s=qt,u=r(e);return qt=s,Xo(e,t,u)}break}}var c=r;if(t==null)return c;var d=t[c];return d!==void 0?d:c}function p2(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Xo(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]+"}":yg(l)&&(n+=Es(a)+":"+bg(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++)yg(i[s])&&(n+=Es(a)+":"+bg(a,i[s])+";");else{var u=Xo(e,t,i);switch(a){case"animation":case"animationName":{n+=Es(a)+":"+u+";";break}default:n+=a+"{"+u+"}"}}}return n}var vg=/label:\s*([^\s;{]+)\s*(;|$)/g,qt;function ca(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="";qt=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,o+=Xo(r,t,a);else{var i=a;o+=i[0]}for(var l=1;l<e.length;l++)if(o+=Xo(r,t,e[l]),n){var s=a;o+=s[l]}vg.lastIndex=0;for(var u="",c;(c=vg.exec(o))!==null;)u+="-"+c[1];var d=u2(o)+u;return{name:d,styles:o,next:qt}}var h2=function(e){return e()},v1=p.useInsertionEffect?p.useInsertionEffect:!1,tf=v1||h2,Eg=v1||p.useLayoutEffect,E1=p.createContext(typeof HTMLElement<"u"?y1({key:"css"}):null);E1.Provider;var cl=function(e){return p.forwardRef(function(t,r){var n=p.useContext(E1);return e(t,n,r)})},un=p.createContext({}),dl=function(){return p.useContext(un)},g2=function(e,t){if(typeof t=="function"){var r=t(e);return r}return Ue({},e,t)},m2=gg(function(e){return gg(function(t){return g2(e,t)})}),rf=function(e){var t=p.useContext(un);return e.theme!==t&&(t=m2(t)(e.theme)),p.createElement(un.Provider,{value:t},e.children)},nf={}.hasOwnProperty,_c="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",y2=function(e,t){var r={};for(var n in t)nf.call(t,n)&&(r[n]=t[n]);return r[_c]=e,r},b2=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return sl(t,r,n),tf(function(){return ul(t,r,n)}),null},v2=cl(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[_c],a=[n],i="";typeof e.className=="string"?i=ef(t.registered,a,e.className):e.className!=null&&(i=e.className+" ");var l=ca(a,void 0,p.useContext(un));i+=t.key+"-"+l.name;var s={};for(var u in e)nf.call(e,u)&&u!=="css"&&u!==_c&&(s[u]=e[u]);return s.className=i,r&&(s.ref=r),p.createElement(p.Fragment,null,p.createElement(b2,{cache:t,serialized:l,isStringTag:typeof o=="string"}),p.createElement(o,s))}),E2=v2;ot(s1());var Tc=function(e,t){var r=arguments;if(t==null||!nf.call(t,"css"))return p.createElement.apply(void 0,r);var n=r.length,o=new Array(n);o[0]=E2,o[1]=y2(e,t);for(var a=2;a<n;a++)o[a]=r[a];return p.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Tc||(Tc={}));cl(function(e,t){var r=e.styles,n=ca([r],void 0,p.useContext(un)),o=p.useRef();return Eg(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]),Eg(function(){var a=o.current,i=a[0],l=a[1];if(l){a[1]=!1;return}if(n.next!==void 0&&ul(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 fl(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ca(t)}function Me(){var e=fl.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 S2=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 x2(e,t,r){var n=[],o=ef(e,n,r);return n.length<2?r:o+t(n)}var w2=function(e){var t=e.cache,r=e.serializedArr;return tf(function(){for(var n=0;n<r.length;n++)ul(t,r[n],!1)}),null};cl(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=ca(s,t.registered);return r.push(c),sl(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 x2(t.registered,n,S2(s))},a={css:n,cx:o,theme:p.useContext(un)},i=e.children(a);return p.createElement(p.Fragment,null,p.createElement(w2,{cache:t,serializedArr:r}),i)});var $2=/^((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)-.*))$/,pl=g1(function(e){return $2.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),C2=pl,_2=function(e){return e!=="theme"},Sg=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?C2:_2},xg=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},T2=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return sl(t,r,n),tf(function(){return ul(t,r,n)}),null},A2=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=xg(t,r,n),s=l||Sg(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 g=c.length,y=1;y<g;y++)d.push(c[y],f[y])}var b=cl(function(v,h,E){var S=u&&v.as||o,x="",_=[],$=v;if(v.theme==null){$={};for(var C in v)$[C]=v[C];$.theme=p.useContext(un)}typeof v.className=="string"?x=ef(h.registered,_,v.className):v.className!=null&&(x=v.className+" ");var A=ca(d.concat(_),h.registered,$);x+=h.key+"-"+A.name,i!==void 0&&(x+=" "+i);var D=u&&l===void 0?Sg(S):s,F={};for(var T in v)u&&T==="as"||D(T)&&(F[T]=v[T]);return F.className=x,E&&(F.ref=E),p.createElement(p.Fragment,null,p.createElement(T2,{cache:h,serialized:A,isStringTag:typeof S=="string"}),p.createElement(S,F))});return b.displayName=a!==void 0?a:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",b.defaultProps=t.defaultProps,b.__emotion_real=b,b.__emotion_base=o,b.__emotion_styles=d,b.__emotion_forwardProp=l,Object.defineProperty(b,"toString",{value:function(){return"."+i}}),b.withComponent=function(v,h){var E=e(v,Ue({},r,h,{shouldForwardProp:xg(b,h,!0)}));return E.apply(void 0,d)},b}},O2=["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"],P=A2.bind(null);O2.forEach(function(e){P[e]=P(e)});var S1=ot(mn(),1),x1={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},w1=(0,S1.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,S1.default)(1)(({color:e,background:t,typography:r})=>{let n=w1({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)":x1,".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 R2={rubber:"cubic-bezier(0.175, 0.885, 0.335, 1.05)"},D2=Me`
566
- from {
567
- transform: rotate(0deg);
568
- }
569
- to {
570
- transform: rotate(360deg);
571
- }
572
- `,$1=Me`
573
- 0%, 100% { opacity: 1; }
574
- 50% { opacity: .4; }
575
- `,P2=Me`
576
- 0% { transform: translateY(1px); }
577
- 25% { transform: translateY(0px); }
578
- 50% { transform: translateY(-3px); }
579
- 100% { transform: translateY(1px); }
580
- `,F2=Me`
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
- `,I2=fl`
585
- animation: ${$1} 1.5s ease-in-out infinite;
586
- color: transparent;
587
- cursor: progress;
588
- `,L2=fl`
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
- `,k2={rotate360:D2,glow:$1,float:P2,jiggle:F2,inlineGlow:I2,hoverable:L2},N2={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"},M2={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"},B2=e=>Object.entries(e).reduce((t,[r,n])=>({...t,[r]:TD(n)}),{}),j2=({colors:e,mono:t})=>{let r=B2(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}}},H2={green1:"#008000",red1:"#A31515",red2:"#9a050f",red3:"#800000",red4:"#eb0000",gray1:"#393A34",cyan1:"#008380",cyan2:"#007ca0",blue1:"#0000ff",blue2:"#00009f"},U2={green1:"#95999D",red1:"#92C379",red2:"#9a050f",red3:"#A8FF60",red4:"#96CBFE",gray1:"#EDEDED",cyan1:"#C6C5FE",cyan2:"#FFFFB6",blue1:"#B474DD",blue2:"#00009f"},z2=e=>({primary:e.colorPrimary,secondary:e.colorSecondary,tertiary:Y.tertiary,ancillary:Y.ancillary,orange:Y.orange,gold:Y.gold,green:Y.green,seafoam:Y.seafoam,purple:Y.purple,ultraviolet:Y.ultraviolet,lightest:Y.lightest,lighter:Y.lighter,light:Y.light,mediumlight:Y.mediumlight,medium:Y.medium,mediumdark:Y.mediumdark,dark:Y.dark,darker:Y.darker,darkest:Y.darkest,border:Y.border,positive:Y.positive,negative:Y.negative,warning:Y.warning,critical:Y.critical,defaultText:e.textColor||Y.darkest,inverseText:e.textInverseColor||Y.lightest,positiveText:Y.positiveText,negativeText:Y.negativeText,warningText:Y.warningText}),_i=(e=nn[Xd()])=>{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:g,barTextColor:y,barHoverColor:b,barSelectedColor:v,barBg:h,buttonBg:E,buttonBorder:S,booleanBg:x,booleanSelectedBg:_,inputBg:$,inputBorder:C,inputTextColor:A,inputBorderRadius:D,brandTitle:F,brandUrl:T,brandImage:N,brandTarget:L,gridCellSize:R,...I}=e;return{...I,base:t,...t==="dark"?xc.dark:xc.light,color:z2(e),background:{app:o,bar:h,content:a,preview:l,gridCellSize:R||hr.gridCellSize,hoverable:i,positive:hr.positive,negative:hr.negative,warning:hr.warning,critical:hr.critical},typography:{fonts:{base:c,mono:d},weight:Nt.weight,size:Nt.size},animation:k2,easing:R2,input:{background:$,border:C,borderRadius:D,color:A},button:{background:E||$,border:S||C},boolean:{background:x||C,selectedBackground:_||$},layoutMargin:10,appBorderColor:s,appBorderRadius:u,barTextColor:y,barHoverColor:b||n,barSelectedColor:v||n,barBg:h,brand:{title:F,url:T,image:N||(F?null:void 0),target:L},code:j2({colors:t==="dark"?U2:H2,mono:d}),addonActionsTheme:{...t==="dark"?N2:M2,BASE_FONT_FAMILY:d,BASE_FONT_SIZE:Nt.size.s2-1,BASE_LINE_HEIGHT:"18px",BASE_BACKGROUND_COLOR:"transparent",BASE_COLOR:f,ARROW_COLOR:pD(.2,s),ARROW_MARGIN_RIGHT:4,ARROW_FONT_SIZE:8,TREENODE_FONT_FAMILY:d,TREENODE_FONT_SIZE:Nt.size.s2-1,TREENODE_LINE_HEIGHT:"18px",TREENODE_PADDING_LEFT:12}}};const{logger:K2}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var G2=e=>Object.keys(e).length===0,Ss=e=>e!=null&&typeof e=="object",W2=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),V2=()=>Object.create(null),C1=(e,t)=>e===t||!Ss(e)||!Ss(t)?{}:Object.keys(e).reduce((r,n)=>{if(W2(t,n)){let o=C1(e[n],t[n]);return Ss(o)&&G2(o)||(r[n]=o),r}return r[n]=void 0,r},V2()),q2=C1,_1=e=>{if(!e)return _i(wc);let t=q2(wc,e);return Object.keys(t).length&&K2.warn($t`
600
- Your theme is missing properties, you should update your theme!
601
-
602
- theme-data missing:
603
- `,t),_i(e)},Ti="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */";const Y2=Object.freeze(Object.defineProperty({__proto__:null,ThemeProvider:rf,background:hr,color:Y,convert:_i,create:l1,createCache:y1,createReset:w1,css:fl,ensure:_1,getPreferredColorScheme:Xd,ignoreSsrWarning:Ti,isPropValid:pl,get jsx(){return Tc},keyframes:Me,lighten:Yd,srOnlyStyles:x1,styled:P,themes:nn,tokens:xc,typography:Nt,useTheme:dl},Symbol.toStringTag,{value:"Module"}));var xs={exports:{}},Ge={},wg;function X2(){if(wg)return Ge;wg=1;var e=qd();function t(s){var u="https://react.dev/errors/"+s;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)u+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+s+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var n={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function a(s,u,c){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:d==null?null:""+d,children:s,containerInfo:u,implementation:c}}var i=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(s,u){if(s==="font")return"";if(typeof u=="string")return u==="use-credentials"?u:""}return Ge.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,Ge.createPortal=function(s,u){var c=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)throw Error(t(299));return a(s,u,null,c)},Ge.flushSync=function(s){var u=i.T,c=n.p;try{if(i.T=null,n.p=2,s)return s()}finally{i.T=u,n.p=c,n.d.f()}},Ge.preconnect=function(s,u){typeof s=="string"&&(u?(u=u.crossOrigin,u=typeof u=="string"?u==="use-credentials"?u:"":void 0):u=null,n.d.C(s,u))},Ge.prefetchDNS=function(s){typeof s=="string"&&n.d.D(s)},Ge.preinit=function(s,u){if(typeof s=="string"&&u&&typeof u.as=="string"){var c=u.as,d=l(c,u.crossOrigin),f=typeof u.integrity=="string"?u.integrity:void 0,g=typeof u.fetchPriority=="string"?u.fetchPriority:void 0;c==="style"?n.d.S(s,typeof u.precedence=="string"?u.precedence:void 0,{crossOrigin:d,integrity:f,fetchPriority:g}):c==="script"&&n.d.X(s,{crossOrigin:d,integrity:f,fetchPriority:g,nonce:typeof u.nonce=="string"?u.nonce:void 0})}},Ge.preinitModule=function(s,u){if(typeof s=="string")if(typeof u=="object"&&u!==null){if(u.as==null||u.as==="script"){var c=l(u.as,u.crossOrigin);n.d.M(s,{crossOrigin:c,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0})}}else u==null&&n.d.M(s)},Ge.preload=function(s,u){if(typeof s=="string"&&typeof u=="object"&&u!==null&&typeof u.as=="string"){var c=u.as,d=l(c,u.crossOrigin);n.d.L(s,c,{crossOrigin:d,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0,type:typeof u.type=="string"?u.type:void 0,fetchPriority:typeof u.fetchPriority=="string"?u.fetchPriority:void 0,referrerPolicy:typeof u.referrerPolicy=="string"?u.referrerPolicy:void 0,imageSrcSet:typeof u.imageSrcSet=="string"?u.imageSrcSet:void 0,imageSizes:typeof u.imageSizes=="string"?u.imageSizes:void 0,media:typeof u.media=="string"?u.media:void 0})}},Ge.preloadModule=function(s,u){if(typeof s=="string")if(u){var c=l(u.as,u.crossOrigin);n.d.m(s,{as:typeof u.as=="string"&&u.as!=="script"?u.as:void 0,crossOrigin:c,integrity:typeof u.integrity=="string"?u.integrity:void 0})}else n.d.m(s)},Ge.requestFormReset=function(s){n.d.r(s)},Ge.unstable_batchedUpdates=function(s,u){return s(u)},Ge.useFormState=function(s,u,c){return i.H.useFormState(s,u,c)},Ge.useFormStatus=function(){return i.H.useHostTransitionStatus()},Ge.version="19.2.5",Ge}var $g;function J2(){if($g)return xs.exports;$g=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),xs.exports=X2(),xs.exports}var da=J2();const T1=Id(da);var Z2=P.div(({theme:e,$flexLayout:t=!1})=>[{background:e.background.content},t?{display:"inline-flex",marginInlineStart:"auto",alignSelf:"flex-end"}:{position:"absolute",bottom:0,right:0,maxWidth:"100%",display:"flex",zIndex:1}]),A1=P.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});A1.displayName="ActionButton";var O1=({actionItems:e,flexLayout:t=!1,...r})=>m.createElement(Z2,{...r,$flexLayout:t},e.map(({title:n,className:o,onClick:a,disabled:i},l)=>m.createElement(A1,{key:l,className:o,onClick:a,disabled:!!i},n)));function Q2(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function R1(...e){return t=>e.forEach(r=>Q2(r,t))}function bn(...e){return p.useCallback(R1(...e),e)}var D1=p.forwardRef((e,t)=>{let{children:r,...n}=e,o=p.Children.toArray(r),a=o.find(t3);if(a){let i=a.props.children,l=o.map(s=>s===a?p.Children.count(i)>1?p.Children.only(null):p.isValidElement(i)?i.props.children:null:s);return se.jsx(Ac,{...n,ref:t,children:p.isValidElement(i)?p.cloneElement(i,void 0,l):null})}return se.jsx(Ac,{...n,ref:t,children:r})});D1.displayName="Slot";var Ac=p.forwardRef((e,t)=>{let{children:r,...n}=e;if(p.isValidElement(r)){let o=n3(r);return p.cloneElement(r,{...r3(n,r.props),ref:t?R1(t,o):o})}return p.Children.count(r)>1?p.Children.only(null):null});Ac.displayName="SlotClone";var e3=({children:e})=>se.jsx(se.Fragment,{children:e});function t3(e){return p.isValidElement(e)&&e.type===e3}function r3(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 n3(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 o3=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],fa=o3.reduce((e,t)=>{let r=p.forwardRef((n,o)=>{let{asChild:a,...i}=n,l=a?D1:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),se.jsx(l,{...i,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Oc=globalThis?.document?p.useLayoutEffect:()=>{};function a3(e,t){return p.useReducer((r,n)=>t[r][n]??r,e)}var pa=e=>{let{present:t,children:r}=e,n=i3(t),o=typeof r=="function"?r({present:n.isPresent}):p.Children.only(r),a=bn(n.ref,l3(o));return typeof r=="function"||n.isPresent?p.cloneElement(o,{ref:a}):null};pa.displayName="Presence";function i3(e){let[t,r]=p.useState(),n=p.useRef({}),o=p.useRef(e),a=p.useRef("none"),i=e?"mounted":"unmounted",[l,s]=a3(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{let u=ka(n.current);a.current=l==="mounted"?u:"none"},[l]),Oc(()=>{let u=n.current,c=o.current;if(c!==e){let d=a.current,f=ka(u);e?s("MOUNT"):f==="none"||u?.display==="none"?s("UNMOUNT"):s(c&&d!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),Oc(()=>{if(t){let u=d=>{let f=ka(n.current).includes(d.animationName);d.target===t&&f&&da.flushSync(()=>s("ANIMATION_END"))},c=d=>{d.target===t&&(a.current=ka(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:p.useCallback(u=>{u&&(n.current=getComputedStyle(u)),r(u)},[])}}function ka(e){return e?.animationName||"none"}function l3(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 s3(e,t=[]){let r=[];function n(a,i){let l=p.createContext(i),s=r.length;r=[...r,i];function u(d){let{scope:f,children:g,...y}=d,b=f?.[e][s]||l,v=p.useMemo(()=>y,Object.values(y));return se.jsx(b.Provider,{value:v,children:g})}function c(d,f){let g=f?.[e][s]||l,y=p.useContext(g);if(y)return y;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=>p.createContext(i));return function(i){let l=i?.[e]||a;return p.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[n,u3(o,...t)]}function u3(...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 p.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}function en(e){let t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...r)=>t.current?.(...r),[])}var c3=p.createContext(void 0);function d3(e){let t=p.useContext(c3);return e||t||"ltr"}function f3(e,[t,r]){return Math.min(r,Math.max(t,e))}function on(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function p3(e,t){return p.useReducer((r,n)=>t[r][n]??r,e)}var of="ScrollArea",[P1]=s3(of),[h3,At]=P1(of),F1=p.forwardRef((e,t)=>{let{__scopeScrollArea:r,type:n="hover",dir:o,scrollHideDelay:a=600,...i}=e,[l,s]=p.useState(null),[u,c]=p.useState(null),[d,f]=p.useState(null),[g,y]=p.useState(null),[b,v]=p.useState(null),[h,E]=p.useState(0),[S,x]=p.useState(0),[_,$]=p.useState(!1),[C,A]=p.useState(!1),D=bn(t,T=>s(T)),F=d3(o);return se.jsx(h3,{scope:r,type:n,dir:F,scrollHideDelay:a,scrollArea:l,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:g,onScrollbarXChange:y,scrollbarXEnabled:_,onScrollbarXEnabledChange:$,scrollbarY:b,onScrollbarYChange:v,scrollbarYEnabled:C,onScrollbarYEnabledChange:A,onCornerWidthChange:E,onCornerHeightChange:x,children:se.jsx(fa.div,{dir:F,...i,ref:D,style:{position:"relative","--radix-scroll-area-corner-width":h+"px","--radix-scroll-area-corner-height":S+"px",...e.style}})})});F1.displayName=of;var I1="ScrollAreaViewport",L1=p.forwardRef((e,t)=>{let{__scopeScrollArea:r,children:n,asChild:o,nonce:a,...i}=e,l=At(I1,r),s=p.useRef(null),u=bn(t,s,l.onViewportChange);return se.jsxs(se.Fragment,{children:[se.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}),se.jsx(fa.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:$3({asChild:o,children:n},c=>se.jsx("div",{"data-radix-scroll-area-content":"",ref:l.onContentChange,style:{minWidth:l.scrollbarXEnabled?"fit-content":void 0},children:c}))})]})});L1.displayName=I1;var nr="ScrollAreaScrollbar",k1=p.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=At(nr,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:i}=o,l=e.orientation==="horizontal";return p.useEffect(()=>(l?a(!0):i(!0),()=>{l?a(!1):i(!1)}),[l,a,i]),o.type==="hover"?se.jsx(g3,{...n,ref:t,forceMount:r}):o.type==="scroll"?se.jsx(m3,{...n,ref:t,forceMount:r}):o.type==="auto"?se.jsx(N1,{...n,ref:t,forceMount:r}):o.type==="always"?se.jsx(af,{...n,ref:t}):null});k1.displayName=nr;var g3=p.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=At(nr,e.__scopeScrollArea),[a,i]=p.useState(!1);return p.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]),se.jsx(pa,{present:r||a,children:se.jsx(N1,{"data-state":a?"visible":"hidden",...n,ref:t})})}),m3=p.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=At(nr,e.__scopeScrollArea),a=e.orientation==="horizontal",i=gl(()=>s("SCROLL_END"),100),[l,s]=p3("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 p.useEffect(()=>{if(l==="idle"){let u=window.setTimeout(()=>s("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(u)}},[l,o.scrollHideDelay,s]),p.useEffect(()=>{let u=o.viewport,c=a?"scrollLeft":"scrollTop";if(u){let d=u[c],f=()=>{let g=u[c];d!==g&&(s("SCROLL"),i()),d=g};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[o.viewport,a,s,i]),se.jsx(pa,{present:r||l!=="hidden",children:se.jsx(af,{"data-state":l==="hidden"?"hidden":"visible",...n,ref:t,onPointerEnter:on(e.onPointerEnter,()=>s("POINTER_ENTER")),onPointerLeave:on(e.onPointerLeave,()=>s("POINTER_LEAVE"))})})}),N1=p.forwardRef((e,t)=>{let r=At(nr,e.__scopeScrollArea),{forceMount:n,...o}=e,[a,i]=p.useState(!1),l=e.orientation==="horizontal",s=gl(()=>{if(r.viewport){let u=r.viewport.offsetWidth<r.viewport.scrollWidth,c=r.viewport.offsetHeight<r.viewport.scrollHeight;i(l?u:c)}},10);return Zn(r.viewport,s),Zn(r.content,s),se.jsx(pa,{present:n||a,children:se.jsx(af,{"data-state":a?"visible":"hidden",...o,ref:t})})}),af=p.forwardRef((e,t)=>{let{orientation:r="vertical",...n}=e,o=At(nr,e.__scopeScrollArea),a=p.useRef(null),i=p.useRef(0),[l,s]=p.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=U1(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,g){return x3(f,i.current,l,g)}return r==="horizontal"?se.jsx(y3,{...c,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){let f=o.viewport.scrollLeft,g=Cg(f,l,o.dir);a.current.style.transform=`translate3d(${g}px, 0, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollLeft=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollLeft=d(f,o.dir))}}):r==="vertical"?se.jsx(b3,{...c,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){let f=o.viewport.scrollTop,g=Cg(f,l);a.current.style.transform=`translate3d(0, ${g}px, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollTop=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollTop=d(f))}}):null}),y3=p.forwardRef((e,t)=>{let{sizes:r,onSizesChange:n,...o}=e,a=At(nr,e.__scopeScrollArea),[i,l]=p.useState(),s=p.useRef(null),u=bn(t,s,a.onScrollbarXChange);return p.useEffect(()=>{s.current&&l(getComputedStyle(s.current))},[s]),se.jsx(B1,{"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":hl(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),K1(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:Oi(i.paddingLeft),paddingEnd:Oi(i.paddingRight)}})}})}),b3=p.forwardRef((e,t)=>{let{sizes:r,onSizesChange:n,...o}=e,a=At(nr,e.__scopeScrollArea),[i,l]=p.useState(),s=p.useRef(null),u=bn(t,s,a.onScrollbarYChange);return p.useEffect(()=>{s.current&&l(getComputedStyle(s.current))},[s]),se.jsx(B1,{"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":hl(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),K1(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:Oi(i.paddingTop),paddingEnd:Oi(i.paddingBottom)}})}})}),[v3,M1]=P1(nr),B1=p.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,g=At(nr,r),[y,b]=p.useState(null),v=bn(t,D=>b(D)),h=p.useRef(null),E=p.useRef(""),S=g.viewport,x=n.content-n.viewport,_=en(c),$=en(s),C=gl(d,10);function A(D){if(h.current){let F=D.clientX-h.current.left,T=D.clientY-h.current.top;u({x:F,y:T})}}return p.useEffect(()=>{let D=F=>{let T=F.target;y?.contains(T)&&_(F,x)};return document.addEventListener("wheel",D,{passive:!1}),()=>document.removeEventListener("wheel",D,{passive:!1})},[S,y,x,_]),p.useEffect($,[n,$]),Zn(y,C),Zn(g.content,C),se.jsx(v3,{scope:r,scrollbar:y,hasThumb:o,onThumbChange:en(a),onThumbPointerUp:en(i),onThumbPositionChange:$,onThumbPointerDown:en(l),children:se.jsx(fa.div,{...f,ref:v,style:{position:"absolute",...f.style},onPointerDown:on(e.onPointerDown,D=>{D.button===0&&(D.target.setPointerCapture(D.pointerId),h.current=y.getBoundingClientRect(),E.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",g.viewport&&(g.viewport.style.scrollBehavior="auto"),A(D))}),onPointerMove:on(e.onPointerMove,A),onPointerUp:on(e.onPointerUp,D=>{let F=D.target;F.hasPointerCapture(D.pointerId)&&F.releasePointerCapture(D.pointerId),document.body.style.webkitUserSelect=E.current,g.viewport&&(g.viewport.style.scrollBehavior=""),h.current=null})})})}),Ai="ScrollAreaThumb",j1=p.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=M1(Ai,e.__scopeScrollArea);return se.jsx(pa,{present:r||o.hasThumb,children:se.jsx(E3,{ref:t,...n})})}),E3=p.forwardRef((e,t)=>{let{__scopeScrollArea:r,style:n,...o}=e,a=At(Ai,r),i=M1(Ai,r),{onThumbPositionChange:l}=i,s=bn(t,d=>i.onThumbChange(d)),u=p.useRef(),c=gl(()=>{u.current&&(u.current(),u.current=void 0)},100);return p.useEffect(()=>{let d=a.viewport;if(d){let f=()=>{if(c(),!u.current){let g=w3(d,l);u.current=g,l()}};return l(),d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[a.viewport,c,l]),se.jsx(fa.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:on(e.onPointerDownCapture,d=>{let f=d.target.getBoundingClientRect(),g=d.clientX-f.left,y=d.clientY-f.top;i.onThumbPointerDown({x:g,y})}),onPointerUp:on(e.onPointerUp,i.onThumbPointerUp)})});j1.displayName=Ai;var lf="ScrollAreaCorner",H1=p.forwardRef((e,t)=>{let r=At(lf,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?se.jsx(S3,{...e,ref:t}):null});H1.displayName=lf;var S3=p.forwardRef((e,t)=>{let{__scopeScrollArea:r,...n}=e,o=At(lf,r),[a,i]=p.useState(0),[l,s]=p.useState(0),u=!!(a&&l);return Zn(o.scrollbarX,()=>{let c=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(c),s(c)}),Zn(o.scrollbarY,()=>{let c=o.scrollbarY?.offsetWidth||0;o.onCornerWidthChange(c),i(c)}),u?se.jsx(fa.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 Oi(e){return e?parseInt(e,10):0}function U1(e,t){let r=e/t;return isNaN(r)?0:r}function hl(e){let t=U1(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function x3(e,t,r,n="ltr"){let o=hl(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 z1([s,u],d)(e)}function Cg(e,t,r="ltr"){let n=hl(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=f3(e,s);return z1([0,i],[0,l])(u)}function z1(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 K1(e,t){return e>0&&e<t}var w3=(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 gl(e,t){let r=en(e),n=p.useRef(0);return p.useEffect(()=>()=>window.clearTimeout(n.current),[]),p.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function Zn(e,t){let r=en(t);Oc(()=>{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 $3(e,t){let{asChild:r,children:n}=e;if(!r)return typeof t=="function"?t(n):t;let o=p.Children.only(n);return p.cloneElement(o,{children:typeof t=="function"?t(o.props.children):t})}var C3=F1,_3=L1,T3=k1,A3=j1,O3=H1,R3=P(C3)(({scrollbarsize:e,offset:t})=>({width:"100%",height:"100%",overflow:"hidden","--scrollbar-size":`${e+t}px`,"--radix-scroll-area-thumb-width":`${e}px`})),D3=P(_3)(({focusable:e,theme:t})=>({width:"100%",height:"100%","&:focus":e?{outline:`2px solid ${t.color.secondary}`,outlineOffset:-2}:{}})),_g=P(T3)(({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}})),Tg=P(A3)(({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%"}})),sf=p.forwardRef(({children:e,horizontal:t=!1,vertical:r=!1,offset:n=2,scrollbarSize:o=6,scrollPadding:a=0,className:i,focusable:l=!1},s)=>m.createElement(R3,{scrollbarsize:o,offset:n,className:i},m.createElement(D3,{ref:s,style:{scrollPadding:a},tabIndex:l?0:void 0,focusable:l},e),t&&m.createElement(_g,{orientation:"horizontal",offset:n,horizontal:t.toString(),vertical:r.toString()},m.createElement(Tg,null)),r&&m.createElement(_g,{orientation:"vertical",offset:n,horizontal:t.toString(),vertical:r.toString()},m.createElement(Tg,null)),t&&r&&m.createElement(O3,null)));sf.displayName="ScrollArea";const{global:P3}=__STORYBOOK_MODULE_GLOBAL__;var{document:$o,window:Rc}=P3;async function F3(e){try{await Rc.top?.navigator.clipboard.writeText(e)}catch{await Rc.navigator.clipboard.writeText(e)}}async function I3(e){let t=$o.createElement("TEXTAREA"),r=$o.activeElement;t.value=e,$o.body.appendChild(t),t.select(),$o.execCommand("copy"),$o.body.removeChild(t),r.focus()}function L3(){return Rc.navigator?.clipboard?F3:I3}function k3(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 N3=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.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}))),G1=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.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}))),M3=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.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}),p.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}))),B3=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.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}))),j3=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.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}))),H3=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.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}))),U3=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.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}))),z3=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.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}))),Ag=new Map,K3="UNIVERSAL_STORE:",St={PENDING:"PENDING",RESOLVED:"RESOLVED",REJECTED:"REJECTED"},Zr=class te{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!==te.Status.READY)throw new TypeError($t`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,!te.isInternalConstructing)throw new TypeError("UniversalStore is not constructable - use UniversalStore.create() instead");if(te.isInternalConstructing=!1,this.id=t.id,this.actorId=Date.now().toString(36)+Math.random().toString(36).substring(2),this.actorType=t.leader?te.ActorType.LEADER:te.ActorType.FOLLOWER,this.state=t.initialState,this.channelEventName=`${K3}${this.id}`,this.debug("constructor",{options:t,environmentOverrides:r,channelEventName:this.channelEventName}),this.actor.type===te.ActorType.LEADER)this.syncing={state:St.RESOLVED,promise:Promise.resolve()};else{let n,o,a=new Promise((i,l)=>{n=()=>{this.syncing.state===St.PENDING&&(this.syncing.state=St.RESOLVED,i())},o=s=>{this.syncing.state===St.PENDING&&(this.syncing.state=St.REJECTED,l(s))}});this.syncing={state:St.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??te.preparation.channel,this.environment=r?.environment??te.preparation.environment,this.channel&&this.environment?(te.preparation.resolve({channel:this.channel,environment:this.environment}),this.prepareThis({channel:this.channel,environment:this.environment})):te.preparation.promise.then(this.prepareThis)}static setupPreparationPromise(){let t,r,n=new Promise((o,a)=>{t=i=>{o(i)},r=(...i)=>{a(i)}});te.preparation={resolve:t,reject:r,promise:n}}get actor(){return Object.freeze({id:this.actorId,type:this.actorType,environment:this.environment??te.Environment.UNKNOWN})}get status(){if(!this.channel||!this.environment)return te.Status.UNPREPARED;switch(this.syncing?.state){case St.PENDING:case void 0:return te.Status.SYNCING;case St.REJECTED:return te.Status.ERROR;case St.RESOLVED:default:return te.Status.READY}}untilReady(){return Promise.all([te.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($t`[UniversalStore]
623
- create`,{options:t});let r=Ag.get(t.id);if(r)return console.warn($t`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;te.isInternalConstructing=!0;let n=new te(t);return Ag.set(t.id,n),n}static __prepare(t,r){te.preparation.channel=t,te.preparation.environment=r,te.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!==te.Status.READY)throw new TypeError($t`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:te.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(te.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===te.ActorType.LEADER?this.emitToChannel({type:te.InternalEventType.LEADER_CREATED},{actor:this.actor}):(this.emitToChannel({type:te.InternalEventType.FOLLOWER_CREATED},{actor:this.actor}),this.emitToChannel({type:te.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===St.PENDING&&r.type!==te.InternalEventType.EXISTING_STATE_RESPONSE){this.debug("handleChannelEvents: Ignoring event while syncing",{channelEvent:t});return}if(this.debug("handleChannelEvents",{channelEvent:t}),this.actor.type===te.ActorType.LEADER){let o=!0;switch(r.type){case te.InternalEventType.EXISTING_STATE_REQUEST:o=!1;let a={type:te.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 te.InternalEventType.LEADER_CREATED:o=!1,this.syncing.state=St.REJECTED,this.debug("handleChannelEvents: erroring due to second leader being created",{event:r}),console.error($t`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===te.ActorType.FOLLOWER)switch(r.type){case te.InternalEventType.EXISTING_STATE_RESPONSE:if(this.debug("handleChannelEvents: Setting state from leader's existing state response",{event:r}),this.syncing?.state!==St.PENDING)break;this.syncing.resolve?.();let o={type:te.InternalEventType.SET_STATE,payload:{state:r.payload,previousState:this.state}};this.state=r.payload,this.emitToListeners(o,n);break}r.type===te.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($t`[UniversalStore::${this.id}::${this.environment??te.Environment.UNKNOWN}]
631
- ${t}`,JSON.stringify({data:r,actor:this.actor,state:this.state,status:this.status},null,2))}static __reset(){te.preparation.reject(new Error("reset")),te.setupPreparationPromise(),te.isInternalConstructing=!1}};Zr.ActorType={LEADER:"LEADER",FOLLOWER:"FOLLOWER"},Zr.Environment={SERVER:"SERVER",MANAGER:"MANAGER",PREVIEW:"PREVIEW",UNKNOWN:"UNKNOWN",MOCK:"MOCK"},Zr.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"},Zr.Status={UNPREPARED:"UNPREPARED",SYNCING:"SYNCING",READY:"READY",ERROR:"ERROR"},Zr.isInternalConstructing=!1,Zr.setupPreparationPromise();var uf=Zr,G3=Object.create,W1=Object.defineProperty,W3=Object.getOwnPropertyDescriptor,V1=Object.getOwnPropertyNames,V3=Object.getPrototypeOf,q3=Object.prototype.hasOwnProperty,oe=(e,t)=>function(){return t||(0,e[V1(e)[0]])((t={exports:{}}).exports,t),t.exports},Y3=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of V1(t))!q3.call(e,o)&&o!==r&&W1(e,o,{get:()=>t[o],enumerable:!(n=W3(t,o))||n.enumerable});return e},cf=(e,t,r)=>(r=e!=null?G3(V3(e)):{},Y3(!e||!e.__esModule?W1(r,"default",{value:e,enumerable:!0}):r,e)),X3=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],J3=["detail"];function Z3(e){let t=X3.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(let r of J3.filter(n=>e[n]!==void 0))t[r]=e[r];return t}var q1=oe({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),Q3=oe({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),eP=oe({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),tP=oe({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),rP=oe({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),nP=oe({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),df=oe({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),oP=oe({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),aP=oe({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),iP=oe({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),lP=oe({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),sP=oe({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),uP=oe({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),cP=oe({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),dP=oe({"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}}}),fP=oe({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=dP();t.exports=function(n){return r(n)||n===0?n:n<0?-1:1}}}),pP=oe({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),ff=oe({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=pP();if(r)try{r([],"length")}catch{r=null}t.exports=r}}),hP=oe({"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}}),Y1=oe({"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}}}),X1=oe({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=Y1();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),J1=oe({"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}}),Z1=oe({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=q1();t.exports=r.getPrototypeOf||null}}),gP=oe({"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 g=0;g<c.length;g+=1)d[g+u.length]=c[g];return d},l=function(u,c){for(var d=[],f=c,g=0;f<u.length;f+=1,g+=1)d[g]=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,g=function(){if(this instanceof f){var E=c.apply(this,i(d,arguments));return Object(E)===E?E:this}return c.apply(u,i(d,arguments))},y=o(0,c.length-d.length),b=[],v=0;v<y;v++)b[v]="$"+v;if(f=Function("binder","return function ("+s(b,",")+"){ return binder.apply(this,arguments); }")(g),c.prototype){var h=function(){};h.prototype=c.prototype,f.prototype=new h,h.prototype=null}return f}}}),ml=oe({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var r=gP();t.exports=Function.prototype.bind||r}}),pf=oe({"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}}),Q1=oe({"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}}),mP=oe({"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}}),yP=oe({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var r=ml(),n=Q1(),o=pf(),a=mP();t.exports=a||r.call(o,n)}}),ev=oe({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var r=ml(),n=df(),o=pf(),a=yP();t.exports=function(i){if(i.length<1||typeof i[0]!="function")throw new n("a function is required");return a(r,o,i)}}}),bP=oe({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var r=ev(),n=ff(),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}}),vP=oe({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var r=J1(),n=Z1(),o=bP();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}}),tv=oe({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,o=ml();t.exports=o.call(r,n)}}),EP=oe({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var r,n=q1(),o=Q3(),a=eP(),i=tP(),l=rP(),s=nP(),u=df(),c=oP(),d=aP(),f=iP(),g=lP(),y=sP(),b=uP(),v=cP(),h=fP(),E=Function,S=function(re){try{return E('"use strict"; return ('+re+").constructor;")()}catch{}},x=ff(),_=hP(),$=function(){throw new u},C=x?(function(){try{return arguments.callee,$}catch{try{return x(arguments,"callee").get}catch{return $}}})():$,A=X1()(),D=vP(),F=Z1(),T=J1(),N=Q1(),L=pf(),R={},I=typeof Uint8Array>"u"||!D?r:D(Uint8Array),k={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":A&&D?D([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":R,"%AsyncGenerator%":R,"%AsyncGeneratorFunction%":R,"%AsyncIteratorPrototype%":R,"%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%":E,"%GeneratorFunction%":R,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":A&&D?D(D([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!A||!D?r:D(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"||!A||!D?r:D(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":A&&D?D(""[Symbol.iterator]()):r,"%Symbol%":A?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":C,"%TypedArray%":I,"%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%":N,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":F,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":g,"%Math.min%":y,"%Math.pow%":b,"%Math.round%":v,"%Math.sign%":h,"%Reflect.getPrototypeOf%":T};if(D)try{null.error}catch(re){M=D(D(re)),k["%Error.prototype%"]=M}var M,H=function re(V){var J;if(V==="%AsyncFunction%")J=S("async function () {}");else if(V==="%GeneratorFunction%")J=S("function* () {}");else if(V==="%AsyncGeneratorFunction%")J=S("async function* () {}");else if(V==="%AsyncGenerator%"){var Q=re("%AsyncGeneratorFunction%");Q&&(J=Q.prototype)}else if(V==="%AsyncIteratorPrototype%"){var ue=re("%AsyncGenerator%");ue&&D&&(J=D(ue.prototype))}return k[V]=J,J},U={__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"]},B=ml(),O=tv(),j=B.call(L,Array.prototype.concat),G=B.call(N,Array.prototype.splice),K=B.call(L,String.prototype.replace),z=B.call(L,String.prototype.slice),W=B.call(L,RegExp.prototype.exec),q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,X=/\\(\\)?/g,le=function(re){var V=z(re,0,1),J=z(re,-1);if(V==="%"&&J!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(J==="%"&&V!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var Q=[];return K(re,q,function(ue,Pe,Z,Ee){Q[Q.length]=Z?K(Ee,X,"$1"):Pe||ue}),Q},Ne=function(re,V){var J=re,Q;if(O(U,J)&&(Q=U[J],J="%"+Q[0]+"%"),O(k,J)){var ue=k[J];if(ue===R&&(ue=H(J)),typeof ue>"u"&&!V)throw new u("intrinsic "+re+" exists, but is not available. Please file an issue!");return{alias:Q,name:J,value:ue}}throw new s("intrinsic "+re+" does not exist!")};t.exports=function(re,V){if(typeof re!="string"||re.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof V!="boolean")throw new u('"allowMissing" argument must be a boolean');if(W(/^%?[^%]*%?$/,re)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var J=le(re),Q=J.length>0?J[0]:"",ue=Ne("%"+Q+"%",V),Pe=ue.name,Z=ue.value,Ee=!1,bt=ue.alias;bt&&(Q=bt[0],G(J,j([0,1],bt)));for(var vt=1,zt=!0;vt<J.length;vt+=1){var et=J[vt],it=z(et,0,1),or=z(et,-1);if((it==='"'||it==="'"||it==="`"||or==='"'||or==="'"||or==="`")&&it!==or)throw new s("property names with quotes must have matching quotes");if((et==="constructor"||!zt)&&(Ee=!0),Q+="."+et,Pe="%"+Q+"%",O(k,Pe))Z=k[Pe];else if(Z!=null){if(!(et in Z)){if(!V)throw new u("base intrinsic for "+re+" exists, but the property is not available.");return}if(x&&vt+1>=J.length){var ar=x(Z,et);zt=!!ar,zt&&"get"in ar&&!("originalValue"in ar.get)?Z=ar.get:Z=Z[et]}else zt=O(Z,et),Z=Z[et];zt&&!Ee&&(k[Pe]=Z)}}return Z}}}),hf=oe({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=EP(),n=ev(),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}}}),SP=oe({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=Y1();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),rv=oe({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=hf(),n=SP()(),o=tv(),a=ff(),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(g){if(!g||typeof g!="object")return!1;var y=a(g,"lastIndex"),b=y&&o(y,"value");if(!b)return!1;try{l(g,c)}catch(v){return v===s}}):(d=r("Object.prototype.toString"),f="[object RegExp]",i=function(g){return!g||typeof g!="object"&&typeof g!="function"?!1:d(g)===f});var l,s,u,c,d,f;t.exports=i}}),xP=oe({"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)}}}),wP=oe({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=hf(),n=rv(),o=r("RegExp.prototype.exec"),a=df();t.exports=function(i){if(!n(i))throw new a("`regex` must be a RegExp");return function(l){return o(i,l)!==null}}}}),$P=oe({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=hf(),n=r("Object.prototype.toString"),o=X1()(),a=wP();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}}),CP=cf(rv()),_P=cf(xP()),TP=cf($P());function AP(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var OP=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,RP=OP,DP=typeof self=="object"&&self&&self.Object===Object&&self,PP=RP||DP||Function("return this")(),gf=PP,FP=gf.Symbol,Qn=FP,nv=Object.prototype,IP=nv.hasOwnProperty,LP=nv.toString,Co=Qn?Qn.toStringTag:void 0;function kP(e){var t=IP.call(e,Co),r=e[Co];try{e[Co]=void 0;var n=!0}catch{}var o=LP.call(e);return n&&(t?e[Co]=r:delete e[Co]),o}var NP=kP,MP=Object.prototype,BP=MP.toString;function jP(e){return BP.call(e)}var HP=jP,UP="[object Null]",zP="[object Undefined]",Og=Qn?Qn.toStringTag:void 0;function KP(e){return e==null?e===void 0?zP:UP:Og&&Og in Object(e)?NP(e):HP(e)}var ov=KP;function GP(e){return e!=null&&typeof e=="object"}var WP=GP,VP="[object Symbol]";function qP(e){return typeof e=="symbol"||WP(e)&&ov(e)==VP}var mf=qP;function YP(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 XP=YP,JP=Array.isArray,yf=JP,Rg=Qn?Qn.prototype:void 0,Dg=Rg?Rg.toString:void 0;function av(e){if(typeof e=="string")return e;if(yf(e))return XP(e,av)+"";if(mf(e))return Dg?Dg.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var ZP=av;function QP(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var iv=QP,eF="[object AsyncFunction]",tF="[object Function]",rF="[object GeneratorFunction]",nF="[object Proxy]";function oF(e){if(!iv(e))return!1;var t=ov(e);return t==tF||t==rF||t==eF||t==nF}var aF=oF,iF=gf["__core-js_shared__"],ws=iF,Pg=(function(){var e=/[^.]+$/.exec(ws&&ws.keys&&ws.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function lF(e){return!!Pg&&Pg in e}var sF=lF,uF=Function.prototype,cF=uF.toString;function dF(e){if(e!=null){try{return cF.call(e)}catch{}try{return e+""}catch{}}return""}var fF=dF,pF=/[\\^$.*+?()[\]{}|]/g,hF=/^\[object .+?Constructor\]$/,gF=Function.prototype,mF=Object.prototype,yF=gF.toString,bF=mF.hasOwnProperty,vF=RegExp("^"+yF.call(bF).replace(pF,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function EF(e){if(!iv(e)||sF(e))return!1;var t=aF(e)?vF:hF;return t.test(fF(e))}var SF=EF;function xF(e,t){return e?.[t]}var wF=xF;function $F(e,t){var r=wF(e,t);return SF(r)?r:void 0}var lv=$F;function CF(e,t){return e===t||e!==e&&t!==t}var _F=CF,TF=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,AF=/^\w*$/;function OF(e,t){if(yf(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||mf(e)?!0:AF.test(e)||!TF.test(e)||t!=null&&e in Object(t)}var RF=OF,DF=lv(Object,"create"),Jo=DF;function PF(){this.__data__=Jo?Jo(null):{},this.size=0}var FF=PF;function IF(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var LF=IF,kF="__lodash_hash_undefined__",NF=Object.prototype,MF=NF.hasOwnProperty;function BF(e){var t=this.__data__;if(Jo){var r=t[e];return r===kF?void 0:r}return MF.call(t,e)?t[e]:void 0}var jF=BF,HF=Object.prototype,UF=HF.hasOwnProperty;function zF(e){var t=this.__data__;return Jo?t[e]!==void 0:UF.call(t,e)}var KF=zF,GF="__lodash_hash_undefined__";function WF(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Jo&&t===void 0?GF:t,this}var VF=WF;function fo(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])}}fo.prototype.clear=FF;fo.prototype.delete=LF;fo.prototype.get=jF;fo.prototype.has=KF;fo.prototype.set=VF;var Fg=fo;function qF(){this.__data__=[],this.size=0}var YF=qF;function XF(e,t){for(var r=e.length;r--;)if(_F(e[r][0],t))return r;return-1}var yl=XF,JF=Array.prototype,ZF=JF.splice;function QF(e){var t=this.__data__,r=yl(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():ZF.call(t,r,1),--this.size,!0}var eI=QF;function tI(e){var t=this.__data__,r=yl(t,e);return r<0?void 0:t[r][1]}var rI=tI;function nI(e){return yl(this.__data__,e)>-1}var oI=nI;function aI(e,t){var r=this.__data__,n=yl(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var iI=aI;function po(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])}}po.prototype.clear=YF;po.prototype.delete=eI;po.prototype.get=rI;po.prototype.has=oI;po.prototype.set=iI;var lI=po,sI=lv(gf,"Map"),uI=sI;function cI(){this.size=0,this.__data__={hash:new Fg,map:new(uI||lI),string:new Fg}}var dI=cI;function fI(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var pI=fI;function hI(e,t){var r=e.__data__;return pI(t)?r[typeof t=="string"?"string":"hash"]:r.map}var bl=hI;function gI(e){var t=bl(this,e).delete(e);return this.size-=t?1:0,t}var mI=gI;function yI(e){return bl(this,e).get(e)}var bI=yI;function vI(e){return bl(this,e).has(e)}var EI=vI;function SI(e,t){var r=bl(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var xI=SI;function ho(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ho.prototype.clear=dI;ho.prototype.delete=mI;ho.prototype.get=bI;ho.prototype.has=EI;ho.prototype.set=xI;var sv=ho,wI="Expected a function";function bf(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(wI);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(bf.Cache||sv),r}bf.Cache=sv;var $I=bf,CI=500;function _I(e){var t=$I(e,function(n){return r.size===CI&&r.clear(),n}),r=t.cache;return t}var TI=_I,AI=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,OI=/\\(\\)?/g,RI=TI(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(AI,function(r,n,o,a){t.push(o?a.replace(OI,"$1"):n||r)}),t}),DI=RI;function PI(e){return e==null?"":ZP(e)}var FI=PI;function II(e,t){return yf(e)?e:RF(e,t)?[e]:DI(FI(e))}var LI=II;function kI(e){if(typeof e=="string"||mf(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var NI=kI;function MI(e,t){t=LI(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[NI(t[r++])];return r&&r==n?e:void 0}var BI=MI;function jI(e,t,r){var n=e==null?void 0:BI(e,t);return n===void 0?r:n}var HI=jI,vf=AP,UI=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,zI=e=>e.match(/^[\[\{\"\}].*[\]\}\"]$/);function uv(e){if(!vf(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=Z3(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 KI=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 UI.test(i)?e.allowDate?`_date_${i}`:void 0:i;if((0,CP.default)(i))return e.allowRegExp?`_regexp_${i.flags}|${i.source}`:void 0;if((0,_P.default)(i))return;if((0,TP.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:uv(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}}},GI=function(e){let t=[],r;return function(n,o){if(n===""&&(r=o,t.forEach(({target:a,container:i,replacement:l})=>{let s=zI(l)?JSON.parse(l):l.split(".");s.length===0?i[a]=r:i[a]=HI(r,s)})),n==="_constructor-name_")return o;if(vf(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}},cv={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},WI=(e,t={})=>{let r={...cv,...t};return JSON.stringify(uv(e),KI(r),t.space)},VI=()=>{let e=new Map;return function t(r){vf(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))})}},qI=(e,t={})=>{let r={...cv,...t},n=JSON.parse(e,GI(r));return VI()(n),n};function Ig({code:e,category:t}){let r=String(e).padStart(4,"0");return`SB_${t}_${r}`}function Lg(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 Ef=class dv extends Error{constructor(t){super(dv.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 Ig({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/${Ig({code:r,category:n})}?ref=error`:typeof t=="string"?a=Lg(t):Array.isArray(t)&&(a=`
632
- ${t.map(i=>` - ${Lg(i)}`).join(`
633
- `)}`),`${o}${a!=null?`
634
-
635
- More info: ${a}
636
- `:""}`}},YI=class extends Ef{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}},XI=class extends Ef{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}},kg=Object.prototype.hasOwnProperty;function Ng(e,t,r){for(r of e.keys())if(Zt(r,t))return r}function Zt(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--&&Zt(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=Ng(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=Ng(t,o),!o)||!Zt(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(kg.call(e,r)&&++n&&!kg.call(t,r)||!(r in t)||!Zt(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function Mg(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 JI(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}var ZI=Je({"../../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}});const{once:QI}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Sf=ot(mn(),1),fv=ot(ub(),1),e4=/\/([^/]+)\/(?:(.*)_)?([^/]+)?/;(0,Sf.default)(1e3)(e=>{let t={viewMode:void 0,storyId:void 0,refId:void 0};if(e){let[,r,n,o]=e.toLowerCase().match(e4)||[];r&&Object.assign(t,{viewMode:r,storyId:o,refId:n})}return t});var ui=Symbol("Deeply equal"),Dc=(e,t)=>{if(typeof e!=typeof t)return t;if(Yt(e,t))return ui;if(Array.isArray(e)&&Array.isArray(t)){let r=t.reduce((n,o,a)=>{let i=Dc(e[a],o);return i!==ui&&(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 rr(e)&&rr(t)?Object.keys({...e,...t}).reduce((r,n)=>{let o=Dc(e?.[n],t?.[n]);return o===ui?r:Object.assign(r,{[n]:o})},{}):t},Bg=/^[a-zA-Z0-9 _-]*$/,t4=/^-?[0-9]+(\.[0-9]+)?$/,pv=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,hv=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,Pc=(e="",t)=>e===null||e===""||!Bg.test(e)?!1:t==null||t instanceof Date||typeof t=="number"||typeof t=="boolean"?!0:typeof t=="string"?Bg.test(t)||t4.test(t)||pv.test(t)||hv.test(t):Array.isArray(t)?t.every(r=>Pc(e,r)):rr(t)?Object.entries(t).every(([r,n])=>Pc(r,n)):!1,Fc=e=>e===void 0?"!undefined":e===null?"!null":typeof e=="string"?pv.test(e)?`!hex(${e.slice(1)})`:hv.test(e)?`!${e.replace(/[\s%]/g,"")}`:e:typeof e=="boolean"?`!${e}`:e instanceof Date?`!date(${e.toISOString()})`:Array.isArray(e)?e.map(Fc):rr(e)?Object.entries(e).reduce((t,[r,n])=>Object.assign(t,{[r]:Fc(n)}),{}):e,r4=e=>{switch(e){case"%20":return"+";case"%5B":return"[";case"%5D":return"]";case"%2C":return",";case"%3A":return":"}return e},n4=/%[0-9A-F]{2}/g,jg=(e,t)=>{let r=Dc(e,t);if(!r||r===ui)return"";let n=Object.entries(r).reduce((o,[a,i])=>Pc(a,i)?Object.assign(o,{[a]:i}):(QI.warn($t`
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,fv.stringify)(Fc(n),{delimiter:";",nesting:!0,nestingSyntax:"js"}).replace(n4,r4).split(";").map(o=>o.replace("=",":")).join(";")},o4=(0,Sf.default)(1e3)(e=>e!==void 0?(0,fv.parse)(e):{}),a4=e=>o4(e.search?e.search.slice(1):"");(0,Sf.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:i4}=__STORYBOOK_MODULE_GLOBAL__;function Ic(){return Ic=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},Ic.apply(this,arguments)}var Hg;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Hg||(Hg={}));function _t(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Lc(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 gv(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 Ug;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ug||(Ug={}));function kc(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 l4(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?gv(e):e;return{pathname:r?r.startsWith("/")?r:s4(r,t):t,search:u4(n),hash:c4(o)}}function s4(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 $s(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 mv(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function yv(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=gv(e):(o=Ic({},e),_t(!o.pathname||!o.pathname.includes("?"),$s("?","pathname","search",o)),_t(!o.pathname||!o.pathname.includes("#"),$s("#","pathname","hash",o)),_t(!o.search||!o.search.includes("#"),$s("#","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=l4(o,l),u=i&&i!=="/"&&i.endsWith("/"),c=(a||i===".")&&r.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}var xf=e=>e.join("/").replace(/\/\/+/g,"/"),u4=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,c4=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function d4(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var bv=["post","put","patch","delete"];new Set(bv);var f4=["get",...bv];new Set(f4);function Nc(){return Nc=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},Nc.apply(this,arguments)}var wf=p.createContext(null),vv=p.createContext(null);p.createContext(null);var vn=p.createContext(null),Ev=p.createContext(null),ha=p.createContext({outlet:null,matches:[],isDataRoute:!1}),p4=p.createContext(null);function h4(e,t){let{relative:r}=t===void 0?{}:t;$f()||_t(!1);let{basename:n,navigator:o}=p.useContext(vn),{hash:a,pathname:i,search:l}=vl(e,{relative:r}),s=i;return n!=="/"&&(s=i==="/"?n:xf([n,i])),o.createHref({pathname:s,search:l,hash:a})}function $f(){return p.useContext(Ev)!=null}function ga(){return $f()||_t(!1),p.useContext(Ev).location}function Sv(e){p.useContext(vn).static||p.useLayoutEffect(e)}function g4(){let{isDataRoute:e}=p.useContext(ha);return e?w4():m4()}function m4(){$f()||_t(!1);let e=p.useContext(wf),{basename:t,navigator:r}=p.useContext(vn),{matches:n}=p.useContext(ha),{pathname:o}=ga(),a=JSON.stringify(mv(n).map(l=>l.pathnameBase)),i=p.useRef(!1);return Sv(()=>{i.current=!0}),p.useCallback(function(l,s){if(s===void 0&&(s={}),!i.current)return;if(typeof l=="number"){r.go(l);return}let u=yv(l,JSON.parse(a),o,s.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:xf([t,u.pathname])),(s.replace?r.replace:r.push)(u,s.state,s)},[t,r,a,o,e])}p.createContext(null);function vl(e,t){let{relative:r}=t===void 0?{}:t,{matches:n}=p.useContext(ha),{pathname:o}=ga(),a=JSON.stringify(mv(n).map(i=>i.pathnameBase));return p.useMemo(()=>yv(e,JSON.parse(a),o,r==="path"),[e,a,o,r])}function y4(){let e=x4(),t=d4(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 p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),r?p.createElement("pre",{style:o},r):null,null)}p.createElement(y4,null);var xv=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(xv||{}),Zo=(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})(Zo||{});function b4(e){let t=p.useContext(wf);return t||_t(!1),t}function v4(e){let t=p.useContext(vv);return t||_t(!1),t}function E4(e){let t=p.useContext(ha);return t||_t(!1),t}function Cf(e){let t=E4(),r=t.matches[t.matches.length-1];return r.route.id||_t(!1),r.route.id}function S4(){return Cf(Zo.UseRouteId)}function x4(){var e;let t=p.useContext(p4),r=v4(Zo.UseRouteError),n=Cf(Zo.UseRouteError);return t||((e=r.errors)==null?void 0:e[n])}function w4(){let{router:e}=b4(xv.UseNavigateStable),t=Cf(Zo.UseNavigateStable),r=p.useRef(!1);return Sv(()=>{r.current=!0}),p.useCallback(function(n,o){o===void 0&&(o={}),r.current&&(typeof n=="number"?e.navigate(n):e.navigate(n,Nc({fromRouteId:t},o)))},[e,t])}var $4=(function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e})($4||{});new Promise(()=>{});function cn(){return cn=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},cn.apply(this,arguments)}function _f(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 ci="get",Cs="application/x-www-form-urlencoded";function El(e){return e!=null&&typeof e.tagName=="string"}function C4(e){return El(e)&&e.tagName.toLowerCase()==="button"}function _4(e){return El(e)&&e.tagName.toLowerCase()==="form"}function T4(e){return El(e)&&e.tagName.toLowerCase()==="input"}function A4(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function O4(e,t){return e.button===0&&(!t||t==="_self")&&!A4(e)}var Na=null;function R4(){if(Na===null)try{new FormData(document.createElement("form"),0),Na=!1}catch{Na=!0}return Na}var D4=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function _s(e){return e!=null&&!D4.has(e)?null:e}function P4(e,t){let r,n,o,a,i;if(_4(e)){let l=e.getAttribute("action");n=l?kc(l,t):null,r=e.getAttribute("method")||ci,o=_s(e.getAttribute("enctype"))||Cs,a=new FormData(e)}else if(C4(e)||T4(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?kc(s,t):null,r=e.getAttribute("formmethod")||l.getAttribute("method")||ci,o=_s(e.getAttribute("formenctype"))||_s(l.getAttribute("enctype"))||Cs,a=new FormData(l,e),!R4()){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(El(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=ci,n=null,o=Cs,i=e}return a&&o==="text/plain"&&(i=a,a=void 0),{action:n,method:r.toLowerCase(),encType:o,formData:a,body:i}}var F4=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],I4=["aria-current","caseSensitive","className","end","style","to","children"],L4=["reloadDocument","replace","state","method","action","onSubmit","submit","relative","preventScrollReset"],k4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",N4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,M4=p.forwardRef(function(e,t){let{onClick:r,relative:n,reloadDocument:o,replace:a,state:i,target:l,to:s,preventScrollReset:u}=e,c=_f(e,F4),{basename:d}=p.useContext(vn),f,g=!1;if(typeof s=="string"&&N4.test(s)&&(f=s,k4))try{let h=new URL(window.location.href),E=s.startsWith("//")?new URL(h.protocol+s):new URL(s),S=kc(E.pathname,d);E.origin===h.origin&&S!=null?s=S+E.search+E.hash:g=!0}catch{}let y=h4(s,{relative:n}),b=H4(s,{replace:a,state:i,target:l,preventScrollReset:u,relative:n});function v(h){r&&r(h),h.defaultPrevented||b(h)}return p.createElement("a",cn({},c,{href:f||y,onClick:g||o?r:v,ref:t,target:l}))});p.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=_f(e,I4),c=vl(l,{relative:u.relative}),d=ga(),f=p.useContext(vv),{navigator:g}=p.useContext(vn),y=g.encodeLocation?g.encodeLocation(c).pathname:c.pathname,b=d.pathname,v=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;n||(b=b.toLowerCase(),v=v?v.toLowerCase():null,y=y.toLowerCase());let h=b===y||!a&&b.startsWith(y)&&b.charAt(y.length)==="/",E=v!=null&&(v===y||!a&&v.startsWith(y)&&v.charAt(y.length)==="/"),S=h?r:void 0,x;typeof o=="function"?x=o({isActive:h,isPending:E}):x=[o,h?"active":null,E?"pending":null].filter(Boolean).join(" ");let _=typeof i=="function"?i({isActive:h,isPending:E}):i;return p.createElement(M4,cn({},u,{"aria-current":S,className:x,ref:t,style:_,to:l}),typeof s=="function"?s({isActive:h,isPending:E}):s)});p.forwardRef((e,t)=>{let r=z4();return p.createElement(B4,cn({},e,{submit:r,ref:t}))});var B4=p.forwardRef((e,t)=>{let{reloadDocument:r,replace:n,state:o,method:a=ci,action:i,onSubmit:l,submit:s,relative:u,preventScrollReset:c}=e,d=_f(e,L4),f=a.toLowerCase()==="get"?"get":"post",g=K4(i,{relative:u});return p.createElement("form",cn({ref:t,method:f,action:g,onSubmit:r?l:y=>{if(l&&l(y),y.defaultPrevented)return;y.preventDefault();let b=y.nativeEvent.submitter,v=b?.getAttribute("formmethod")||a;s(b||y.currentTarget,{method:v,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 zg;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(zg||(zg={}));function j4(e){let t=p.useContext(wf);return t||_t(!1),t}function H4(e,t){let{target:r,replace:n,state:o,preventScrollReset:a,relative:i}=t===void 0?{}:t,l=g4(),s=ga(),u=vl(e,{relative:i});return p.useCallback(c=>{if(O4(c,r)){c.preventDefault();let d=n!==void 0?n:Lc(s)===Lc(u);l(e,{replace:d,state:o,preventScrollReset:a,relative:i})}},[s,l,u,n,o,r,e,a,i])}function U4(){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 z4(){let{router:e}=j4(Mc.UseSubmit),{basename:t}=p.useContext(vn),r=S4();return p.useCallback(function(n,o){o===void 0&&(o={}),U4();let{action:a,method:i,encType:l,formData:s,body:u}=P4(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 K4(e,t){let{relative:r}=t===void 0?{}:t,{basename:n}=p.useContext(vn),o=p.useContext(ha);o||_t(!1);let[a]=o.matches.slice(-1),i=cn({},vl(e||".",{relative:r})),l=ga();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:xf([n,i.pathname])),Lc(i)}var{document:oY}=i4,Ma={exports:{}},Ts,Kg;function Sl(){if(Kg)return Ts;Kg=1;const e="2.0.0",t=256,r=Number.MAX_SAFE_INTEGER||9007199254740991,n=16,o=t-6;return Ts={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},Ts}var As,Gg;function xl(){if(Gg)return As;Gg=1;var e={};return As=typeof process=="object"&&e&&e.NODE_DEBUG&&/\bsemver\b/i.test(e.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{},As}var Wg;function ma(){return Wg||(Wg=1,(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:o}=Sl(),a=xl();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-]",g=[["\\s",1],["\\d",o],[f,n]],y=v=>{for(const[h,E]of g)v=v.split(`${h}*`).join(`${h}{0,${E}}`).split(`${h}+`).join(`${h}{1,${E}}`);return v},b=(v,h,E)=>{const S=y(h),x=d++;a(v,x,h),c[v]=x,s[x]=h,u[x]=S,i[x]=new RegExp(h,E?"g":void 0),l[x]=new RegExp(S,E?"g":void 0)};b("NUMERICIDENTIFIER","0|[1-9]\\d*"),b("NUMERICIDENTIFIERLOOSE","\\d+"),b("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),b("MAINVERSION",`(${s[c.NUMERICIDENTIFIER]})\\.(${s[c.NUMERICIDENTIFIER]})\\.(${s[c.NUMERICIDENTIFIER]})`),b("MAINVERSIONLOOSE",`(${s[c.NUMERICIDENTIFIERLOOSE]})\\.(${s[c.NUMERICIDENTIFIERLOOSE]})\\.(${s[c.NUMERICIDENTIFIERLOOSE]})`),b("PRERELEASEIDENTIFIER",`(?:${s[c.NONNUMERICIDENTIFIER]}|${s[c.NUMERICIDENTIFIER]})`),b("PRERELEASEIDENTIFIERLOOSE",`(?:${s[c.NONNUMERICIDENTIFIER]}|${s[c.NUMERICIDENTIFIERLOOSE]})`),b("PRERELEASE",`(?:-(${s[c.PRERELEASEIDENTIFIER]}(?:\\.${s[c.PRERELEASEIDENTIFIER]})*))`),b("PRERELEASELOOSE",`(?:-?(${s[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[c.PRERELEASEIDENTIFIERLOOSE]})*))`),b("BUILDIDENTIFIER",`${f}+`),b("BUILD",`(?:\\+(${s[c.BUILDIDENTIFIER]}(?:\\.${s[c.BUILDIDENTIFIER]})*))`),b("FULLPLAIN",`v?${s[c.MAINVERSION]}${s[c.PRERELEASE]}?${s[c.BUILD]}?`),b("FULL",`^${s[c.FULLPLAIN]}$`),b("LOOSEPLAIN",`[v=\\s]*${s[c.MAINVERSIONLOOSE]}${s[c.PRERELEASELOOSE]}?${s[c.BUILD]}?`),b("LOOSE",`^${s[c.LOOSEPLAIN]}$`),b("GTLT","((?:<|>)?=?)"),b("XRANGEIDENTIFIERLOOSE",`${s[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),b("XRANGEIDENTIFIER",`${s[c.NUMERICIDENTIFIER]}|x|X|\\*`),b("XRANGEPLAIN",`[v=\\s]*(${s[c.XRANGEIDENTIFIER]})(?:\\.(${s[c.XRANGEIDENTIFIER]})(?:\\.(${s[c.XRANGEIDENTIFIER]})(?:${s[c.PRERELEASE]})?${s[c.BUILD]}?)?)?`),b("XRANGEPLAINLOOSE",`[v=\\s]*(${s[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[c.XRANGEIDENTIFIERLOOSE]})(?:${s[c.PRERELEASELOOSE]})?${s[c.BUILD]}?)?)?`),b("XRANGE",`^${s[c.GTLT]}\\s*${s[c.XRANGEPLAIN]}$`),b("XRANGELOOSE",`^${s[c.GTLT]}\\s*${s[c.XRANGEPLAINLOOSE]}$`),b("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),b("COERCE",`${s[c.COERCEPLAIN]}(?:$|[^\\d])`),b("COERCEFULL",s[c.COERCEPLAIN]+`(?:${s[c.PRERELEASE]})?(?:${s[c.BUILD]})?(?:$|[^\\d])`),b("COERCERTL",s[c.COERCE],!0),b("COERCERTLFULL",s[c.COERCEFULL],!0),b("LONETILDE","(?:~>?)"),b("TILDETRIM",`(\\s*)${s[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",b("TILDE",`^${s[c.LONETILDE]}${s[c.XRANGEPLAIN]}$`),b("TILDELOOSE",`^${s[c.LONETILDE]}${s[c.XRANGEPLAINLOOSE]}$`),b("LONECARET","(?:\\^)"),b("CARETTRIM",`(\\s*)${s[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",b("CARET",`^${s[c.LONECARET]}${s[c.XRANGEPLAIN]}$`),b("CARETLOOSE",`^${s[c.LONECARET]}${s[c.XRANGEPLAINLOOSE]}$`),b("COMPARATORLOOSE",`^${s[c.GTLT]}\\s*(${s[c.LOOSEPLAIN]})$|^$`),b("COMPARATOR",`^${s[c.GTLT]}\\s*(${s[c.FULLPLAIN]})$|^$`),b("COMPARATORTRIM",`(\\s*)${s[c.GTLT]}\\s*(${s[c.LOOSEPLAIN]}|${s[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",b("HYPHENRANGE",`^\\s*(${s[c.XRANGEPLAIN]})\\s+-\\s+(${s[c.XRANGEPLAIN]})\\s*$`),b("HYPHENRANGELOOSE",`^\\s*(${s[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[c.XRANGEPLAINLOOSE]})\\s*$`),b("STAR","(<|>)?=?\\s*\\*"),b("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),b("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Ma,Ma.exports)),Ma.exports}var Os,Vg;function Tf(){if(Vg)return Os;Vg=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return Os=n=>n?typeof n!="object"?e:n:t,Os}var Rs,qg;function wv(){if(qg)return Rs;qg=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 Ds,Yg;function at(){if(Yg)return Ds;Yg=1;const e=xl(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:r}=Sl(),{safeRe:n,t:o}=ma(),a=Tf(),{compareIdentifiers:i}=wv();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 g=+f;if(g>=0&&g<r)return g}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 g=this.prerelease.length;for(;--g>=0;)typeof this.prerelease[g]=="number"&&(this.prerelease[g]++,g=-2);if(g===-1){if(c===this.prerelease.join(".")&&d===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(f)}}if(c){let g=[c,f];d===!1&&(g=[c]),i(this.prerelease[0],c)===0?isNaN(this.prerelease[1])&&(this.prerelease=g):this.prerelease=g}break}default:throw new Error(`invalid increment argument: ${u}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return Ds=l,Ds}var Ps,Xg;function go(){if(Xg)return Ps;Xg=1;const e=at();return Ps=(r,n,o=!1)=>{if(r instanceof e)return r;try{return new e(r,n)}catch(a){if(!o)return null;throw a}},Ps}var Fs,Jg;function G4(){if(Jg)return Fs;Jg=1;const e=go();return Fs=(r,n)=>{const o=e(r,n);return o?o.version:null},Fs}var Is,Zg;function W4(){if(Zg)return Is;Zg=1;const e=go();return Is=(r,n)=>{const o=e(r.trim().replace(/^[=v]+/,""),n);return o?o.version:null},Is}var Ls,Qg;function V4(){if(Qg)return Ls;Qg=1;const e=at();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 ks,em;function q4(){if(em)return ks;em=1;const e=go();return ks=(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"},ks}var Ns,tm;function Y4(){if(tm)return Ns;tm=1;const e=at();return Ns=(r,n)=>new e(r,n).major,Ns}var Ms,rm;function X4(){if(rm)return Ms;rm=1;const e=at();return Ms=(r,n)=>new e(r,n).minor,Ms}var Bs,nm;function J4(){if(nm)return Bs;nm=1;const e=at();return Bs=(r,n)=>new e(r,n).patch,Bs}var js,om;function Z4(){if(om)return js;om=1;const e=go();return js=(r,n)=>{const o=e(r,n);return o&&o.prerelease.length?o.prerelease:null},js}var Hs,am;function jt(){if(am)return Hs;am=1;const e=at();return Hs=(r,n,o)=>new e(r,o).compare(new e(n,o)),Hs}var Us,im;function Q4(){if(im)return Us;im=1;const e=jt();return Us=(r,n,o)=>e(n,r,o),Us}var zs,lm;function e8(){if(lm)return zs;lm=1;const e=jt();return zs=(r,n)=>e(r,n,!0),zs}var Ks,sm;function Af(){if(sm)return Ks;sm=1;const e=at();return Ks=(r,n,o)=>{const a=new e(r,o),i=new e(n,o);return a.compare(i)||a.compareBuild(i)},Ks}var Gs,um;function t8(){if(um)return Gs;um=1;const e=Af();return Gs=(r,n)=>r.sort((o,a)=>e(o,a,n)),Gs}var Ws,cm;function r8(){if(cm)return Ws;cm=1;const e=Af();return Ws=(r,n)=>r.sort((o,a)=>e(a,o,n)),Ws}var Vs,dm;function wl(){if(dm)return Vs;dm=1;const e=jt();return Vs=(r,n,o)=>e(r,n,o)>0,Vs}var qs,fm;function Of(){if(fm)return qs;fm=1;const e=jt();return qs=(r,n,o)=>e(r,n,o)<0,qs}var Ys,pm;function $v(){if(pm)return Ys;pm=1;const e=jt();return Ys=(r,n,o)=>e(r,n,o)===0,Ys}var Xs,hm;function Cv(){if(hm)return Xs;hm=1;const e=jt();return Xs=(r,n,o)=>e(r,n,o)!==0,Xs}var Js,gm;function Rf(){if(gm)return Js;gm=1;const e=jt();return Js=(r,n,o)=>e(r,n,o)>=0,Js}var Zs,mm;function Df(){if(mm)return Zs;mm=1;const e=jt();return Zs=(r,n,o)=>e(r,n,o)<=0,Zs}var Qs,ym;function _v(){if(ym)return Qs;ym=1;const e=$v(),t=Cv(),r=wl(),n=Rf(),o=Of(),a=Df();return Qs=(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}`)}},Qs}var eu,bm;function n8(){if(bm)return eu;bm=1;const e=at(),t=go(),{safeRe:r,t:n}=ma();return eu=(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 g=i.includePrerelease?r[n.COERCERTLFULL]:r[n.COERCERTL];let y;for(;(y=g.exec(a))&&(!l||l.index+l[0].length!==a.length);)(!l||y.index+y[0].length!==l.index+l[0].length)&&(l=y),g.lastIndex=y.index+y[1].length+y[2].length;g.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)},eu}var tu,vm;function o8(){if(vm)return tu;vm=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 tu=e,tu}var ru,Em;function Ht(){if(Em)return ru;Em=1;const e=/\s+/g;class t{constructor(I,k){if(k=o(k),I instanceof t)return I.loose===!!k.loose&&I.includePrerelease===!!k.includePrerelease?I:new t(I.raw,k);if(I instanceof a)return this.raw=I.value,this.set=[[I]],this.formatted=void 0,this;if(this.options=k,this.loose=!!k.loose,this.includePrerelease=!!k.includePrerelease,this.raw=I.trim().replace(e," "),this.set=this.raw.split("||").map(M=>this.parseRange(M.trim())).filter(M=>M.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const M=this.set[0];if(this.set=this.set.filter(H=>!b(H[0])),this.set.length===0)this.set=[M];else if(this.set.length>1){for(const H of this.set)if(H.length===1&&v(H[0])){this.set=[H];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let I=0;I<this.set.length;I++){I>0&&(this.formatted+="||");const k=this.set[I];for(let M=0;M<k.length;M++)M>0&&(this.formatted+=" "),this.formatted+=k[M].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(I){const M=((this.options.includePrerelease&&g)|(this.options.loose&&y))+":"+I,H=n.get(M);if(H)return H;const U=this.options.loose,B=U?s[u.HYPHENRANGELOOSE]:s[u.HYPHENRANGE];I=I.replace(B,N(this.options.includePrerelease)),i("hyphen replace",I),I=I.replace(s[u.COMPARATORTRIM],c),i("comparator trim",I),I=I.replace(s[u.TILDETRIM],d),i("tilde trim",I),I=I.replace(s[u.CARETTRIM],f),i("caret trim",I);let O=I.split(" ").map(z=>E(z,this.options)).join(" ").split(/\s+/).map(z=>T(z,this.options));U&&(O=O.filter(z=>(i("loose invalid filter",z,this.options),!!z.match(s[u.COMPARATORLOOSE])))),i("range list",O);const j=new Map,G=O.map(z=>new a(z,this.options));for(const z of G){if(b(z))return[z];j.set(z.value,z)}j.size>1&&j.has("")&&j.delete("");const K=[...j.values()];return n.set(M,K),K}intersects(I,k){if(!(I instanceof t))throw new TypeError("a Range is required");return this.set.some(M=>h(M,k)&&I.set.some(H=>h(H,k)&&M.every(U=>H.every(B=>U.intersects(B,k)))))}test(I){if(!I)return!1;if(typeof I=="string")try{I=new l(I,this.options)}catch{return!1}for(let k=0;k<this.set.length;k++)if(L(this.set[k],I,this.options))return!0;return!1}}ru=t;const r=o8(),n=new r,o=Tf(),a=$l(),i=xl(),l=at(),{safeRe:s,t:u,comparatorTrimReplace:c,tildeTrimReplace:d,caretTrimReplace:f}=ma(),{FLAG_INCLUDE_PRERELEASE:g,FLAG_LOOSE:y}=Sl(),b=R=>R.value==="<0.0.0-0",v=R=>R.value==="",h=(R,I)=>{let k=!0;const M=R.slice();let H=M.pop();for(;k&&M.length;)k=M.every(U=>H.intersects(U,I)),H=M.pop();return k},E=(R,I)=>(R=R.replace(s[u.BUILD],""),i("comp",R,I),R=$(R,I),i("caret",R),R=x(R,I),i("tildes",R),R=A(R,I),i("xrange",R),R=F(R,I),i("stars",R),R),S=R=>!R||R.toLowerCase()==="x"||R==="*",x=(R,I)=>R.trim().split(/\s+/).map(k=>_(k,I)).join(" "),_=(R,I)=>{const k=I.loose?s[u.TILDELOOSE]:s[u.TILDE];return R.replace(k,(M,H,U,B,O)=>{i("tilde",R,M,H,U,B,O);let j;return S(H)?j="":S(U)?j=`>=${H}.0.0 <${+H+1}.0.0-0`:S(B)?j=`>=${H}.${U}.0 <${H}.${+U+1}.0-0`:O?(i("replaceTilde pr",O),j=`>=${H}.${U}.${B}-${O} <${H}.${+U+1}.0-0`):j=`>=${H}.${U}.${B} <${H}.${+U+1}.0-0`,i("tilde return",j),j})},$=(R,I)=>R.trim().split(/\s+/).map(k=>C(k,I)).join(" "),C=(R,I)=>{i("caret",R,I);const k=I.loose?s[u.CARETLOOSE]:s[u.CARET],M=I.includePrerelease?"-0":"";return R.replace(k,(H,U,B,O,j)=>{i("caret",R,H,U,B,O,j);let G;return S(U)?G="":S(B)?G=`>=${U}.0.0${M} <${+U+1}.0.0-0`:S(O)?U==="0"?G=`>=${U}.${B}.0${M} <${U}.${+B+1}.0-0`:G=`>=${U}.${B}.0${M} <${+U+1}.0.0-0`:j?(i("replaceCaret pr",j),U==="0"?B==="0"?G=`>=${U}.${B}.${O}-${j} <${U}.${B}.${+O+1}-0`:G=`>=${U}.${B}.${O}-${j} <${U}.${+B+1}.0-0`:G=`>=${U}.${B}.${O}-${j} <${+U+1}.0.0-0`):(i("no pr"),U==="0"?B==="0"?G=`>=${U}.${B}.${O}${M} <${U}.${B}.${+O+1}-0`:G=`>=${U}.${B}.${O}${M} <${U}.${+B+1}.0-0`:G=`>=${U}.${B}.${O} <${+U+1}.0.0-0`),i("caret return",G),G})},A=(R,I)=>(i("replaceXRanges",R,I),R.split(/\s+/).map(k=>D(k,I)).join(" ")),D=(R,I)=>{R=R.trim();const k=I.loose?s[u.XRANGELOOSE]:s[u.XRANGE];return R.replace(k,(M,H,U,B,O,j)=>{i("xRange",R,M,H,U,B,O,j);const G=S(U),K=G||S(B),z=K||S(O),W=z;return H==="="&&W&&(H=""),j=I.includePrerelease?"-0":"",G?H===">"||H==="<"?M="<0.0.0-0":M="*":H&&W?(K&&(B=0),O=0,H===">"?(H=">=",K?(U=+U+1,B=0,O=0):(B=+B+1,O=0)):H==="<="&&(H="<",K?U=+U+1:B=+B+1),H==="<"&&(j="-0"),M=`${H+U}.${B}.${O}${j}`):K?M=`>=${U}.0.0${j} <${+U+1}.0.0-0`:z&&(M=`>=${U}.${B}.0${j} <${U}.${+B+1}.0-0`),i("xRange return",M),M})},F=(R,I)=>(i("replaceStars",R,I),R.trim().replace(s[u.STAR],"")),T=(R,I)=>(i("replaceGTE0",R,I),R.trim().replace(s[I.includePrerelease?u.GTE0PRE:u.GTE0],"")),N=R=>(I,k,M,H,U,B,O,j,G,K,z,W)=>(S(M)?k="":S(H)?k=`>=${M}.0.0${R?"-0":""}`:S(U)?k=`>=${M}.${H}.0${R?"-0":""}`:B?k=`>=${k}`:k=`>=${k}${R?"-0":""}`,S(G)?j="":S(K)?j=`<${+G+1}.0.0-0`:S(z)?j=`<${G}.${+K+1}.0-0`:W?j=`<=${G}.${K}.${z}-${W}`:R?j=`<${G}.${K}.${+z+1}-0`:j=`<=${j}`,`${k} ${j}`.trim()),L=(R,I,k)=>{for(let M=0;M<R.length;M++)if(!R[M].test(I))return!1;if(I.prerelease.length&&!k.includePrerelease){for(let M=0;M<R.length;M++)if(i(R[M].semver),R[M].semver!==a.ANY&&R[M].semver.prerelease.length>0){const H=R[M].semver;if(H.major===I.major&&H.minor===I.minor&&H.patch===I.patch)return!0}return!1}return!0};return ru}var nu,Sm;function $l(){if(Sm)return nu;Sm=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(">")))}}nu=t;const r=Tf(),{safeRe:n,t:o}=ma(),a=_v(),i=xl(),l=at(),s=Ht();return nu}var ou,xm;function Cl(){if(xm)return ou;xm=1;const e=Ht();return ou=(r,n,o)=>{try{n=new e(n,o)}catch{return!1}return n.test(r)},ou}var au,wm;function a8(){if(wm)return au;wm=1;const e=Ht();return au=(r,n)=>new e(r,n).set.map(o=>o.map(a=>a.value).join(" ").trim().split(" ")),au}var iu,$m;function i8(){if($m)return iu;$m=1;const e=at(),t=Ht();return iu=(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},iu}var lu,Cm;function l8(){if(Cm)return lu;Cm=1;const e=at(),t=Ht();return lu=(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},lu}var su,_m;function s8(){if(_m)return su;_m=1;const e=at(),t=Ht(),r=wl();return su=(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},su}var uu,Tm;function u8(){if(Tm)return uu;Tm=1;const e=Ht();return uu=(r,n)=>{try{return new e(r,n).range||"*"}catch{return null}},uu}var cu,Am;function Pf(){if(Am)return cu;Am=1;const e=at(),t=$l(),{ANY:r}=t,n=Ht(),o=Cl(),a=wl(),i=Of(),l=Df(),s=Rf();return cu=(c,d,f,g)=>{c=new e(c,g),d=new n(d,g);let y,b,v,h,E;switch(f){case">":y=a,b=l,v=i,h=">",E=">=";break;case"<":y=i,b=s,v=a,h="<",E="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(o(c,d,g))return!1;for(let S=0;S<d.set.length;++S){const x=d.set[S];let _=null,$=null;if(x.forEach(C=>{C.semver===r&&(C=new t(">=0.0.0")),_=_||C,$=$||C,y(C.semver,_.semver,g)?_=C:v(C.semver,$.semver,g)&&($=C)}),_.operator===h||_.operator===E||(!$.operator||$.operator===h)&&b(c,$.semver))return!1;if($.operator===E&&v(c,$.semver))return!1}return!0},cu}var du,Om;function c8(){if(Om)return du;Om=1;const e=Pf();return du=(r,n,o)=>e(r,n,">",o),du}var fu,Rm;function d8(){if(Rm)return fu;Rm=1;const e=Pf();return fu=(r,n,o)=>e(r,n,"<",o),fu}var pu,Dm;function f8(){if(Dm)return pu;Dm=1;const e=Ht();return pu=(r,n,o)=>(r=new e(r,o),n=new e(n,o),r.intersects(n,o)),pu}var hu,Pm;function p8(){if(Pm)return hu;Pm=1;const e=Cl(),t=jt();return hu=(r,n,o)=>{const a=[];let i=null,l=null;const s=r.sort((f,g)=>t(f,g,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,g]of a)f===g?u.push(f):!g&&f===s[0]?u.push("*"):g?f===s[0]?u.push(`<=${g}`):u.push(`${f} - ${g}`):u.push(`>=${f}`);const c=u.join(" || "),d=typeof n.raw=="string"?n.raw:String(n);return c.length<d.length?c:n},hu}var gu,Fm;function h8(){if(Fm)return gu;Fm=1;const e=Ht(),t=$l(),{ANY:r}=t,n=Cl(),o=jt(),a=(d,f,g={})=>{if(d===f)return!0;d=new e(d,g),f=new e(f,g);let y=!1;e:for(const b of d.set){for(const v of f.set){const h=s(b,v,g);if(y=y||h!==null,h)continue e}if(y)return!1}return!0},i=[new t(">=0.0.0-0")],l=[new t(">=0.0.0")],s=(d,f,g)=>{if(d===f)return!0;if(d.length===1&&d[0].semver===r){if(f.length===1&&f[0].semver===r)return!0;g.includePrerelease?d=i:d=l}if(f.length===1&&f[0].semver===r){if(g.includePrerelease)return!0;f=l}const y=new Set;let b,v;for(const A of d)A.operator===">"||A.operator===">="?b=u(b,A,g):A.operator==="<"||A.operator==="<="?v=c(v,A,g):y.add(A.semver);if(y.size>1)return null;let h;if(b&&v){if(h=o(b.semver,v.semver,g),h>0)return null;if(h===0&&(b.operator!==">="||v.operator!=="<="))return null}for(const A of y){if(b&&!n(A,String(b),g)||v&&!n(A,String(v),g))return null;for(const D of f)if(!n(A,String(D),g))return!1;return!0}let E,S,x,_,$=v&&!g.includePrerelease&&v.semver.prerelease.length?v.semver:!1,C=b&&!g.includePrerelease&&b.semver.prerelease.length?b.semver:!1;$&&$.prerelease.length===1&&v.operator==="<"&&$.prerelease[0]===0&&($=!1);for(const A of f){if(_=_||A.operator===">"||A.operator===">=",x=x||A.operator==="<"||A.operator==="<=",b){if(C&&A.semver.prerelease&&A.semver.prerelease.length&&A.semver.major===C.major&&A.semver.minor===C.minor&&A.semver.patch===C.patch&&(C=!1),A.operator===">"||A.operator===">="){if(E=u(b,A,g),E===A&&E!==b)return!1}else if(b.operator===">="&&!n(b.semver,String(A),g))return!1}if(v){if($&&A.semver.prerelease&&A.semver.prerelease.length&&A.semver.major===$.major&&A.semver.minor===$.minor&&A.semver.patch===$.patch&&($=!1),A.operator==="<"||A.operator==="<="){if(S=c(v,A,g),S===A&&S!==v)return!1}else if(v.operator==="<="&&!n(v.semver,String(A),g))return!1}if(!A.operator&&(v||b)&&h!==0)return!1}return!(b&&x&&!v&&h!==0||v&&_&&!b&&h!==0||C||$)},u=(d,f,g)=>{if(!d)return f;const y=o(d.semver,f.semver,g);return y>0?d:y<0||f.operator===">"&&d.operator===">="?f:d},c=(d,f,g)=>{if(!d)return f;const y=o(d.semver,f.semver,g);return y<0?d:y>0||f.operator==="<"&&d.operator==="<="?f:d};return gu=a,gu}var mu,Im;function g8(){if(Im)return mu;Im=1;const e=ma(),t=Sl(),r=at(),n=wv(),o=go(),a=G4(),i=W4(),l=V4(),s=q4(),u=Y4(),c=X4(),d=J4(),f=Z4(),g=jt(),y=Q4(),b=e8(),v=Af(),h=t8(),E=r8(),S=wl(),x=Of(),_=$v(),$=Cv(),C=Rf(),A=Df(),D=_v(),F=n8(),T=$l(),N=Ht(),L=Cl(),R=a8(),I=i8(),k=l8(),M=s8(),H=u8(),U=Pf(),B=c8(),O=d8(),j=f8(),G=p8(),K=h8();return mu={parse:o,valid:a,clean:i,inc:l,diff:s,major:u,minor:c,patch:d,prerelease:f,compare:g,rcompare:y,compareLoose:b,compareBuild:v,sort:h,rsort:E,gt:S,lt:x,eq:_,neq:$,gte:C,lte:A,cmp:D,coerce:F,Comparator:T,Range:N,satisfies:L,toComparators:R,maxSatisfying:I,minSatisfying:k,minVersion:M,validRange:H,outside:U,gtr:B,ltr:O,intersects:j,simplifyRange:G,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},mu}var m8=g8();const ft=Id(m8);var y8=Je({"../../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()}}}}),b8=Je({"../../node_modules/copy-to-clipboard/index.js"(e,t){var r=y8(),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,g,y,b=!1;s||(s={}),u=s.debug||!1;try{d=r(),f=document.createRange(),g=document.getSelection(),y=document.createElement("span"),y.textContent=l,y.ariaHidden="true",y.style.all="unset",y.style.position="fixed",y.style.top=0,y.style.clip="rect(0, 0, 0, 0)",y.style.whiteSpace="pre",y.style.webkitUserSelect="text",y.style.MozUserSelect="text",y.style.msUserSelect="text",y.style.userSelect="text",y.addEventListener("copy",function(h){if(h.stopPropagation(),s.format)if(h.preventDefault(),typeof h.clipboardData>"u"){u&&console.warn("unable to use e.clipboardData"),u&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var E=n[s.format]||n.default;window.clipboardData.setData(E,l)}else h.clipboardData.clearData(),h.clipboardData.setData(s.format,l);s.onCopy&&(h.preventDefault(),s.onCopy(h.clipboardData))}),document.body.appendChild(y),f.selectNodeContents(y),g.addRange(f);var v=document.execCommand("copy");if(!v)throw new Error("copy command was unsuccessful");b=!0}catch(h){u&&console.error("unable to copy using execCommand: ",h),u&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(s.format||"text",l),s.onCopy&&s.onCopy(window.clipboardData),b=!0}catch(E){u&&console.error("unable to copy using clipboardData: ",E),u&&console.error("falling back to prompt"),c=a("message"in s?s.message:o),window.prompt(c,l)}}finally{g&&(typeof g.removeRange=="function"?g.removeRange(f):g.removeAllRanges()),y&&document.body.removeChild(y),d()}return b}t.exports=i}}),v8=Je({"../../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,g){return arguments.length===0?u.getAll():typeof f=="function"?u.transact(d,f,g):f!==void 0?u.set(d,f,g):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:aY,SET_STORIES:iY,SHARED_STATE_CHANGED:lY,SHARED_STATE_SET:sY,STORY_CHANGED:uY,STORY_PREPARED:cY}=__STORYBOOK_MODULE_CORE_EVENTS__;var E8=({api:e,state:t})=>p.createContext({api:e,state:t});const{logger:Lm}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var an=(e,...t)=>{let r={};r=ht({},e,(n,o)=>{if(Array.isArray(o)&&Array.isArray(n))return o.forEach(a=>{n.find(i=>i===a||Yt(i,a))||n.push(a)}),n;if(Array.isArray(n))return Lm.log(["the types mismatch, picking",n]),n});for(let n of t)r=ht(r,n,(o,a)=>{if(Array.isArray(a)&&Array.isArray(o))return a.forEach(i=>{o.find(l=>l===i||Yt(l,i))||o.push(i)}),o;if(Array.isArray(o))return Lm.log(["the types mismatch, picking",o]),o});return r},S8=(e,...t)=>{let r={};r=ht({},e,(n,o)=>{if(Array.isArray(o))return o});for(let n of t)r=ht(r,n,(o,a)=>{if(Array.isArray(a))return a});return r},x8=(...e)=>e.reduce((t,r)=>an(t,r),{}),Bc=x8;const{logger:w8}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{SET_CONFIG:km}=__STORYBOOK_MODULE_CORE_EVENTS__,{Addon_TypesEnum:dY}=__STORYBOOK_MODULE_TYPES__,{global:yu}=__STORYBOOK_MODULE_GLOBAL__,{Channel:$8}=__STORYBOOK_MODULE_CHANNELS__;function C8(){let e={setHandler:()=>{},send:()=>{}};return new $8({transport:e})}var _8=class{constructor(){this.loaders={},this.elements={},this.config={},this.getChannel=()=>(this.channel||this.setChannel(C8()),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(km,this.config):this.ready().then(t=>{t.emit(km,this.config)})},this.getConfig=()=>this.config,this.register=(e,t)=>{this.loaders[e]&&w8.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)}},bu="__STORYBOOK_ADDONS_MANAGER";function T8(){return yu[bu]||(yu[bu]=new _8),yu[bu]}T8();var Tv={};Ke(Tv,{ensurePanel:()=>jc,init:()=>A8});const{Addon_TypesEnum:Nm}=__STORYBOOK_MODULE_TYPES__;function jc(e,t,r){let n=Object.keys(e);return n.indexOf(t)>=0?t:n.length?n[0]:r}var A8=({provider:e,store:t,fullAPI:r})=>{let n={getElements:o=>e.getElements(o),getSelectedPanel:()=>{let{selectedPanel:o}=t.getState();return jc(n.getElements(Nm.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:jc(n.getElements(Nm.PANEL),t.getState().selectedPanel),addons:{}}}},Av={};Ke(Av,{init:()=>O8});var O8=({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:{}}),Ov={};Ke(Ov,{init:()=>V8});const{logger:Mm}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{GLOBALS_UPDATED:R8,SET_GLOBALS:D8,UPDATE_GLOBALS:P8}=__STORYBOOK_MODULE_CORE_EVENTS__,{logger:F8}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Rv={};Ke(Rv,{defaultStoryMapper:()=>Iv,getSourceType:()=>Fv,init:()=>W8});const{global:Dv}=__STORYBOOK_MODULE_GLOBAL__;var Pv=ot(mn(),1),I8=(e,t)=>!Array.isArray(e)||!Array.isArray(t)||!e.length||!t.length?[]:e.reduce((r,n)=>(t.includes(n)&&r.push(n),r),[]),L8=/\s*\/\s*/,k8=({globalParameters:e,kindParameters:t,stories:r})=>eT(r,n=>({...n,parameters:hL(e,t[n.kind],n.parameters)})),N8=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},{})}),M8=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),{})}),B8=e=>{let t=JI(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},{})}},j8=e=>({v:5,entries:Object.values(e.entries).reduce((t,r)=>(t[r.id]={...r,tags:r.tags?[Hn.DEV,Hn.TEST,...r.tags]:[Hn.DEV]},t),{})}),Ri=(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?M8(a):a,a=a.v===3?B8(a):a,a=a.v===4?j8(a):a,a=a;let i=Object.values(a.entries),l=Object.values(n),s=i.filter(h=>{let E=o[h.id]??{};return Object.values(E).some(({value:S})=>S==="status-value:error")||l.every(S=>S({...h,statuses:E}))?!0:i.filter(S=>"parent"in S&&S.parent===h.id).some(S=>l.every(x=>x({...S,statuses:E})))}),{sidebar:u={}}=t.getConfig(),{showRoots:c,collapsedRoots:d=[],renderLabel:f}=u,g=typeof c<"u",y=s.reduce((h,E)=>{if(r.docsMode&&E.type!=="docs")return h;let{title:S}=E,x=S.trim().split(L8),_=(!g||c)&&x.length>1?[x.shift()]:[],$=[..._,...x],C=$.reduce((A,D,F)=>{let T=F>0&&A[F-1],N=Yn(T?`${T}-${D}`:D);if(D.trim()==="")throw new Error($t`Invalid title ${S} ending in slash.`);if(T===N)throw new Error($t`
641
- Invalid part '${D}', leading to id === parentId ('${N}'), 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 A.push(N),A},[]);return C.forEach((A,D)=>{let F=C[D+1]||E.id;_.length&&D===0?h[A]=an(h[A]||{},{type:"root",id:A,name:$[D],tags:[],depth:D,renderLabel:f,startCollapsed:d.includes(A),children:[F]}):(!h[A]||h[A].type==="component")&&D===C.length-1?h[A]=an(h[A]||{},{type:"component",id:A,name:$[D],tags:[],parent:C[D-1],depth:D,renderLabel:f,...F&&{children:[F]}}):h[A]=an(h[A]||{},{type:"group",id:A,name:$[D],tags:[],parent:C[D-1],depth:D,renderLabel:f,...F&&{children:[F]}})}),h[E.id]={tags:[],...E,depth:C.length,parent:"parent"in E?E.parent:C[C.length-1],renderLabel:f,prepared:!!E.parameters},h},{});function b(h,E){if(h[E.id]||(h[E.id]=E,"children"in E&&E.children&&(E.children.forEach(S=>b(h,y[S])),E.tags=E.children.reduce((S,x)=>S===null?h[x].tags:I8(S,h[x].tags),null)||[])),E.type==="component"){let S=h[E.children[0]];S&&"importPath"in S&&(E.importPath=S.importPath)}return h}let v=Object.values(y).filter(h=>h.type!=="root"&&!h.parent).reduce((h,E)=>b(h,E),{});return v=Object.values(y).filter(h=>h.type==="root").reduce(b,v),v=Object.values(v).reduce((h,E)=>{if(E.type==="story"&&E.subtype==="test"){let S=h[E.parent],x=h[S.parent];h[x.id]={...x,children:x.children&&x.children.filter(_=>_!==E.id)},h[S.id]={...S,children:(S.children||[]).concat(E.id)},h[E.id]={...E,depth:E.depth+1}}else h[E.id]=E;return h},{}),v},Bm=(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,H8=(0,Pv.default)(1)(e=>Object.entries(e).reduce((t,r)=>{let n=r[1];return n.type==="component"&&t.push([...n.children]),t},[])),U8=(0,Pv.default)(1)(e=>Object.keys(e).filter(t=>["story","docs"].includes(e[t].type))),{location:z8,fetch:jm}=Dv,Fv=(e,t)=>{let{origin:r,pathname:n}=z8,{origin:o,pathname:a}=new URL(e),i=`${r+n}`.replace(/\/[^\/]*$/,""),l=`${o+a}`.replace(/\/[^\/]*$/,"");return i===l?["local",l]:t||e?["external",l]:[null,null]},Iv=(e,t)=>({...t,kind:t.kind.replace("|","/")}),Hm=(e,t)=>Object.entries(e).reduce((r,[n,o])=>({...r,[n]:{...o,refId:t.id}}),{});async function Um(e){if(!e)return{};try{let t=await e;if(t===!1||t===!0)throw new Error("Unexpected boolean response");if(!t.ok){if(t.status===401)try{let n=await t.json();if(n.loginUrl)return{loginUrl:n.loginUrl}}catch{}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 K8=e=>{let t=/https?:\/\/(.+:.+)@/,r=e,n,[,o]=e.match(t)||[];return o&&(r=e.replace(`${o}@`,""),n=btoa(`${o}`)),{url:r,authorization:n}},G8=(e,t,r)=>{let{storyMapper:n}=r;return n?Object.entries(e).reduce((o,[a,i])=>({...o,[a]:n(t,i)}),{}):e},W8=({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,g=f==="server-checked",y={},b=d?`?version=${d}`:"",v=g?"omit":"include",h=K8(c),E={Accept:"application/json"};h.authorization&&Object.assign(E,{Authorization:`Basic ${h.authorization}`});let[S,x]=await Promise.all(["index.json","stories.json"].map(async $=>Um(jm(`${h.url}/${$}${b}`,{headers:E,credentials:v}))));if(!S.indexError||!x.indexError){let $=await Um(jm(`${h.url}/metadata.json${b}`,{headers:E,credentials:v,cache:"no-cache"}).catch(()=>!1));Object.assign(y,{...S.indexError?x:S,...!$.indexError&&$})}else g||(y.indexError={message:$t`
645
- Error: Loading of ref failed
646
- at fetch (lib/api/src/modules/refs.ts)
647
-
648
- URL: ${h.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 _=s.versions&&Object.keys(s.versions).length?s.versions:y.versions;await a.setRef(u,{id:u,url:h.url,...y,..._?{versions:_}:{},type:y.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 g,y,b,{filters:v}=e.getState(),{storyMapper:h=Iv}=t.getConfig(),E=a.getRefs()[s];(u||c)&&(g=c?N8(G8(c,E,{storyMapper:h})):u,b=Ri(u,{provider:t,docsOptions:n,filters:v,allStatuses:{}}),y=Ri(u,{provider:t,docsOptions:n,filters:{},allStatuses:{}})),y&&(y=Hm(y,E)),b&&(b=Hm(b,E)),await a.updateRef(s,{...E,...d,index:y,filteredIndex:b,internal_index:g})},updateRef:async(s,u)=>{let{[s]:c,...d}=a.getRefs();d[s]={...c,...u};let f=Object.keys(l).reduce((g,y)=>(g[y]=d[y],g),{});await e.setState({refs:f})}},i=!r&&Dv.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}}},pt=(e,t)=>{let{source:r,refId:n,type:o}=e,[a,i]=Fv(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 F8.warn(`Received a ${o} frame that was not configured as a ref`),null}},V8=({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(P8,{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();Zt(i,u)||e.setState({globals:i}),Zt(s,c)||e.setState({userGlobals:s}),Zt(l,d)||e.setState({storyGlobals:l})};return r.channel?.on(R8,function({globals:i,storyGlobals:l,userGlobals:s}){let{ref:u}=pt(this,t);u?Mm.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(D8,function({globals:i,globalTypes:l}){let{ref:s}=pt(this,t),u=e.getState()?.userGlobals;s?Object.keys(i).length>0&&Mm.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&&!Zt(i,u)&&n.updateGlobals(u)}),{api:n,state:o}},Ff={};Ke(Ff,{ActiveTabs:()=>Lv,DEFAULT_BOTTOM_PANEL_HEIGHT:()=>Di,DEFAULT_NAV_SIZE:()=>Qo,DEFAULT_RIGHT_PANEL_WIDTH:()=>Pi,focusableUIElements:()=>$r,getDefaultLayoutState:()=>kv,init:()=>X8});const{SET_CONFIG:q8}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:Y8}=__STORYBOOK_MODULE_GLOBAL__;var{document:Ba}=Y8,vu=e=>typeof e=="function",Lv={SIDEBAR:"sidebar",CANVAS:"canvas",ADDONS:"addons"},Qo=300,Di=300,Pi=400,kv=()=>({ui:{enableShortcuts:!0},layout:{initialActive:Lv.CANVAS,showToolbar:!0,navSize:Qo,bottomPanelHeight:Di,rightPanelWidth:Pi,recentVisibleSizes:{navSize:Qo,bottomPanelHeight:Di,rightPanelWidth:Pi},panelPosition:"bottom",showTabs:!0},layoutCustomisations:{showSidebar:void 0,showToolbar:void 0},selectedPanel:void 0,theme:l1()}),$r={addonPanel:"storybook-panel-region",storySearchField:"storybook-explorer-searchfield",storyListMenu:"storybook-explorer-menu",storyPanelRoot:"storybook-panel-root",showAddonPanel:"storybook-show-addon-panel",sidebarRegion:"storybook-sidebar-region",showSidebar:"storybook-show-sidebar"},Hc=e=>e.layout.navSize>0,Uc=e=>{let{bottomPanelHeight:t,rightPanelWidth:r,panelPosition:n}=e.layout;return n==="bottom"&&t>0||n==="right"&&r>0},zm=e=>!Hc(e)&&!Uc(e),ja=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}),X8=({store:e,provider:t,singleStory:r})=>{let n={toggleFullscreen(a){return e.setState(i=>{let l=zm(i),s=typeof a=="boolean"?a:!l;return s===l?{layout:i.layout}:s?{layout:{...i.layout,navSize:0,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:ja(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=Uc(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:ja(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=Hc(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:ja(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:ja(u)}}},{persistence:"session"})},focusOnUIElement(a,i){let{forceFocus:l=!1,select:s=!1,poll:u=!0}=typeof i=="boolean"?{select:i}:i??{};if(!a)return!1;let c=()=>{let d=Ba.getElementById(a);return!d||(d.focus(),d!==Ba.activeElement&&l&&d.getAttribute("tabindex")===null&&(d.setAttribute("tabindex","-1"),d.focus()),d!==Ba.activeElement&&d.id!==Ba.activeElement?.id)?!1:(s&&d.select?.(),!0)};return c()?!0:u?new Promise(d=>{let f=Date.now(),g=500,y=setInterval(()=>{let b=Date.now()-f;if(c()){clearInterval(y),d(!0);return}b>=g&&(clearInterval(y),d(!1))},50)}):!1},getInitialOptions(){let{theme:a,selectedPanel:i,layoutCustomisations:l,...s}=t.getConfig(),u=kv();return{...u,layout:{...ns(u.layout,bo(s,Object.keys(u.layout))),...r&&{navSize:0}},layoutCustomisations:{...u.layoutCustomisations,...l??{}},ui:ns(u.ui,bo(s,Object.keys(u.ui))),selectedPanel:i||u.selectedPanel,theme:a||u.theme}},getIsFullscreen(){return zm(e.getState())},getIsPanelShown(){return Uc(e.getState())},getIsNavShown(){return Hc(e.getState())},getShowToolbarWithCustomisations(a){let i=e.getState();return vu(i.layoutCustomisations.showToolbar)?i.layoutCustomisations.showToolbar(i,a)??a:a},getShowPanelWithCustomisations(a){let i=e.getState();return vu(i.layoutCustomisations.showPanel)?i.layoutCustomisations.showPanel(i,a)??a:a},getNavSizeWithCustomisations(a){let i=e.getState();if(vu(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||{},...bo(a,Object.keys(i)),...r&&{navSize:0}},d={...l,...a.ui,...ns(a.ui||{},bo(a,Object.keys(l)))},f={...u,...a.theme},g={};Yt(l,d)||(g.ui=d),Yt(i,c)||(g.layout=c),a.selectedPanel&&!Yt(s,a.selectedPanel)&&(g.selectedPanel=a.selectedPanel),Object.keys(g).length&&e.setState(g,{persistence:"permanent"}),Yt(u,f)||e.setState({theme:f})}},o=bo(e.getState(),["layout","selectedPanel"]);return t.channel?.on(q8,()=>{n.setOptions(an(n.getInitialOptions(),o))}),{api:n,state:an(n.getInitialOptions(),o)}},Nv={};Ke(Nv,{init:()=>J8});var J8=({store:e})=>({api:{addNotification:t=>{e.setState(({notifications:r})=>{let[n,o]=Mg(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]=Mg(r,a=>a.id===t);return n.forEach(a=>{a.onClear&&a.onClear({dismissed:!1,timeout:!1})}),{notifications:o}})}},state:{notifications:[]}}),Mv={};Ke(Mv,{init:()=>Q8});const{OPEN_IN_EDITOR_REQUEST:Z8,OPEN_IN_EDITOR_RESPONSE:Eu}=__STORYBOOK_MODULE_CORE_EVENTS__;var Q8=({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(Eu,l),n(s))};e.channel?.on(Eu,l),e.channel?.emit(Z8,r)})}},state:{notifications:[]},init:async()=>{let{color:r}=await kr(async()=>{const{color:n}=await Promise.resolve().then(()=>Y2);return{color:n}},void 0,import.meta.url);e.channel?.on(Eu,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:m.createElement(B3,{color:r.negative}),duration:8e3})})}}),Bv={};Ke(Bv,{init:()=>e6});var e6=({provider:e,fullAPI:t})=>({api:e.renderPreview?{renderPreview:e.renderPreview}:{},state:{},init:()=>{e.handleAPI(t)}}),jv={};Ke(jv,{init:()=>t6});var t6=({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}})}}}),Hv={};Ke(Hv,{controlOrMetaKey:()=>Fn,defaultShortcuts:()=>In,init:()=>m6,isMacLike:()=>zv,keys:()=>zc});var r6=ot(b8(),1);const{FORCE_REMOUNT:n6,PREVIEW_KEYDOWN:o6,STORIES_COLLAPSE_ALL:a6,STORIES_EXPAND_ALL:i6}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:Uv}=__STORYBOOK_MODULE_GLOBAL__,{global:l6}=__STORYBOOK_MODULE_GLOBAL__;var{navigator:Su}=l6,s6=()=>Su&&Su.platform?!!Su.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,u6=()=>s6()?"⌥":"alt",c6=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},d6=(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]),f6=e=>e==="alt"?u6():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(),p6=e=>e.map(f6).join(" "),h6=e=>e.map(t=>t==="+"?"plus":t===" "?"space":t).join("+"),{navigator:xu,document:Or}=Uv;function Km(e){return Or.activeElement&&e?.contains(Or.activeElement)}var zv=()=>xu&&xu.platform?!!xu.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,Fn=()=>zv()?"meta":"control";function zc(e){return Object.keys(e)}var In=Object.freeze({fullScreen:["alt","F"],togglePanel:["alt","A"],panelPosition:["alt","D"],toggleNav:["alt","S"],toolbar:["alt","T"],search:[Fn(),"K"],focusNav:["1"],focusIframe:["2"],focusPanel:["3"],prevComponent:["alt","ArrowUp"],nextComponent:["alt","ArrowDown"],prevStory:["alt","ArrowLeft"],nextStory:["alt","ArrowRight"],shortcutsPage:[Fn(),"shift",","],aboutPage:[Fn(),","],escape:["escape"],collapseAll:[Fn(),"shift","ArrowUp"],expandAll:[Fn(),"shift","ArrowDown"],remount:["alt","R"],openInEditor:["alt","shift","E"],openInIsolation:["alt","shift","I"],copyStoryLink:["alt","shift","L"],goToPreviousLandmark:["shift","F6"],goToNextLandmark:["F6"]}),wu={};function g6(e){let t=e.target;return!!(/input|textarea/i.test(t.tagName)||t.getAttribute("contenteditable")!==null||t.closest("dialog[open]"))}var m6=({store:e,fullAPI:t,provider:r})=>{let n={getShortcutKeys(){return e.getState().shortcuts},getDefaultShortcuts(){return{...In,...n.getAddonsShortcutDefaults()}},getAddonsShortcuts(){return wu},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})),wu[`${i}-${l.actionName}`]=l,l},async restoreDefaultShortcut(i){let l=n.getDefaultShortcuts()[i];return n.setShortcut(i,l)},handleKeydownEvent(i){let l=c6(i),s=n.getShortcutKeys(),u=zc(s).find(c=>d6(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($r.storyListMenu);break}case"search":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsNavShown()||t.toggleNav(!0),setTimeout(()=>{t.focusOnUIElement($r.storySearchField,!0)},0);break}case"focusIframe":{let f=Or.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($r.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":{let f=t.getIsPanelShown(),g=Or.getElementById($r.addonPanel);t.togglePanel(),f&&Km(g)&&t.focusOnUIElement($r.showAddonPanel,{poll:!0}).then(y=>{y===!1&&Or.body.focus()});break}case"toggleNav":{let f=t.getIsNavShown(),g=Or.getElementById($r.sidebarRegion);t.toggleNav(),f&&Km(g)&&t.focusOnUIElement($r.showSidebar,{poll:!0}).then(y=>{y===!1&&Or.body.focus()});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(a6);break}case"expandAll":{t.emit(i6);break}case"remount":{t.emit(n6,{storyId:u});break}case"openInEditor":{Uv.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,r6.default)(f)}break}default:wu[i].action();break}}},{shortcuts:o=In}=e.getState(),a={shortcuts:zc(In).reduce((i,l)=>({...i,[l]:o[l]||In[l]}),In)};return{api:n,state:a,init:()=>{Or.addEventListener("keydown",i=>{g6(i)||n.handleKeydownEvent(i)}),r.channel?.on(o6,i=>{n.handleKeydownEvent(i.event)})}}},Kv={};Ke(Kv,{getDefaultTagsFromPreset:()=>Vv,init:()=>K6});var y6=ot(mn(),1);const{logger:b6}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{CONFIG_ERROR:v6,CURRENT_STORY_WAS_SET:E6,DOCS_PREPARED:S6,PRELOAD_ENTRIES:x6,RESET_STORY_ARGS:w6,SELECT_STORY:$6,SET_CONFIG:C6,SET_CURRENT_STORY:_6,SET_FILTER:T6,SET_INDEX:A6,SET_STORIES:O6,STORY_ARGS_UPDATED:R6,STORY_CHANGED:D6,STORY_INDEX_INVALIDATED:P6,STORY_MISSING:F6,STORY_PREPARED:I6,STORY_SPECIFIED:L6,UPDATE_STORY_ARGS:k6}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:Gv}=__STORYBOOK_MODULE_GLOBAL__;ot(ZI(),1);var N6=class extends Ef{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}},M6={id:"storybook/status",leader:!0,initialState:{}},$u={SELECT:"select"};function B6({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($u.SELECT,i=>{a(i.payload)})},selectStatuses:a=>{e.send({type:$u.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 N6({status:u,typeId:a});case"manager":throw new YI({status:u,typeId:a});default:throw new XI({status:u,typeId:a})}s[c]={...s[c]??{},[a]:u}}return s})},onAllStatusChange:n.onAllStatusChange,onSelect(i){return e.subscribe($u.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 Wv=(e,t)=>{let r=p.useRef(t?t(e.getState()):e.getState()),n=p.useCallback(a=>e.onStateChange((i,l)=>{if(!t){r.current=i,a();return}let s=t(i),u=t(l);!Yt(s,u)&&(r.current=s,a())}),[e,t]),o=p.useCallback(()=>{let a=e.getState(),i=t?t(a):a;return Yt(i,r.current)||(r.current=i),r.current},[e,t]);return[p.useSyncExternalStore(n,o),e.setState]},j6=B6({universalStatusStore:uf.create({...M6,leader:globalThis.CONFIG_TYPE==="PRODUCTION"}),useUniversalStore:Wv,environment:"manager"}),{fullStatusStore:Gm}=j6,{fetch:H6}=Gv,U6="./index.json",Cu="tags-filter",Wm="static-filter",Vv=(0,y6.default)(1)(e=>{let t=Object.entries(e);return{included:t.filter(([,r])=>r.defaultFilterSelection==="include").map(([r])=>r),excluded:t.filter(([,r])=>r.defaultFilterSelection==="exclude").map(([r])=>r)}}),Vm=e=>{let t=Object.entries(e).reduce((r,n)=>{let[o,a]=n;return a.excludeFromSidebar&&(r[o]=!0),r},{});return r=>{let n=r.tags??[];return(n.includes(Hn.DEV)||r.type==="docs")&&n.filter(o=>t[o]).length===0}},_u=(e,t)=>{let r=n=>Object.values(n.reduce((o,a)=>(Object.hasOwn(Wp,a)?o["built-in"].push(Wp[a]):o.user.push(uT(a)),o),{"built-in":[],user:[]})).filter(o=>o.length>0);return n=>{let o=r(e),a=r(t);return(!o.length||o.every(i=>i.some(l=>l(n,!1))))&&(!a.length||a.every(i=>i.every(l=>l(n,!0))))}},z6=["enableShortcuts","theme","showRoots"];function Tu(e){if(!e||typeof e=="string")return e;let t={...e};return z6.forEach(r=>{r in t&&delete t[r]}),t}var K6=({fullAPI:e,store:t,navigate:r,provider:n,storyId:o,viewMode:a,docsOptions:i={}})=>{let l={storyId:Ia,getData:(v,h)=>{let E=l.resolveStory(v,h);if(E?.type==="story"||E?.type==="docs")return E},isPrepared:(v,h)=>{let E=l.getData(v,h);return E?E.type==="story"?E.prepared:!0:!1},resolveStory:(v,h)=>{let{refs:E,index:S}=t.getState();if(!(h&&!E[h]))return h?E?.[h]?.index?.[v]??void 0:S?S[v]:void 0},getCurrentStoryData:()=>{let{storyId:v,refId:h}=t.getState();return l.getData(v,h)},getIndex:()=>{let{internal_index:v}=t.getState();return v},getParameters:(v,h)=>{let{storyId:E,refId:S}=typeof v=="string"?{storyId:v,refId:void 0}:v,x=l.getData(E,S);if(["story","docs"].includes(x?.type)){let{parameters:_}=x;if(_)return h?_[h]:_}return null},getCurrentParameter:v=>{let{storyId:h,refId:E}=t.getState();return l.getParameters({storyId:h,refId:E},v)||void 0},jumpToComponent:v=>{let{filteredIndex:h,storyId:E,refs:S,refId:x}=t.getState();if(!l.getData(E,x))return;let _=x?S[x].filteredIndex||{}:h;if(!_)return;let $=l.findSiblingStoryId(E,_,v,!0);$&&l.selectStory($,void 0,{ref:x})},jumpToStory:v=>{let{filteredIndex:h,storyId:E,refs:S,refId:x}=t.getState(),_=l.getData(E,x);if(!_)return;let $=_.refId?S[_.refId].filteredIndex:h;if(!$)return;let C=l.findSiblingStoryId(E,$,v,!1);C&&l.selectStory(C,void 0,{ref:x})},selectFirstStory:()=>{let{index:v}=t.getState();if(!v)return;let h=Object.keys(v).find(E=>v[E].type==="story");if(h){l.selectStory(h);return}r("/")},selectStory:(v=void 0,h=void 0,E={})=>{let{ref:S}=E,{storyId:x,index:_,filteredIndex:$,refs:C,settings:A}=t.getState(),D=L=>L?.type==="docs"||L?.type==="story"?(t.setState({settings:{...A,lastTrackedStoryId:L.id}}),r(`/${L.type}/${L.refId?`${L.refId}_${L.id}`:L.id}`),!0):!1,F=x?.split("--",2)[0],T=S?C[S].index:_,N=S?C[S].filteredIndex:$;if(!(!T||!N))if(h)if(!v)D(T[Ia(F,h)]);else{let L=S?`${S}_${Ia(v,h)}`:Ia(v,h);if(T[L])D(T[L]);else{let R=T[Yn(v)];if(R?.type==="component"){let I=R.children.find(k=>T[k].name===h);D(I?T[I]:void 0)}}}else{let L=v?T[v]||T[Yn(v)]:T[F];if(!L)throw new Error(`Unknown id or title: '${v}'`);D(L)||D(l.findLeafEntry(N,L.id))}},findLeafEntry(v,h){let E=v[h];if(E.type==="docs"||E.type==="story")return E;let S=E.children.find(x=>v[x])||E.children[0];return l.findLeafEntry(v,S)},findLeafStoryId(v,h){return l.findLeafEntry(v,h)?.id},findAllLeafStoryIds(v){let{index:h}=t.getState();if(!h)return[];let E=(S,x=[])=>{let _=h[S];return _&&(_.type==="story"&&x.push(_.id),"children"in _&&_.children?.forEach($=>E($,x))),x};return E(v,[])},findSiblingStoryId(v,h,E,S){if(S){let $=H8(h),C=$.findIndex(A=>A.includes(v));return C===$.length-1&&E>0||C===0&&E<0?void 0:$[C+E]?$[C+E][0]:void 0}let x=U8(h),_=x.indexOf(v);if(!(_===x.length-1&&E>0)&&!(_===0&&E<0))return x[_+E]},updateStoryArgs:(v,h)=>{let{id:E,refId:S}=v;n.channel?.emit(k6,{storyId:E,updatedArgs:h,options:{target:S}})},resetStoryArgs:(v,h)=>{let{id:E,refId:S}=v;n.channel?.emit(w6,{storyId:E,argNames:h,options:{target:S}})},fetchIndex:async()=>{try{let v=await H6(U6);if(v.status!==200)throw new Error(await v.text());let h=await v.json();if(h.v<3){b6.warn(`Skipping story index with version v${h.v}, awaiting SET_STORIES.`);return}await l.setIndex(h)}catch(v){await t.setState({indexError:v})}},setIndex:async v=>{let{filteredIndex:h,index:E,filters:S}=t.getState(),x=Gm.getAll(),_=Ri(v,{provider:n,docsOptions:i,filters:S,allStatuses:x}),$=Ri(v,{provider:n,docsOptions:i,filters:{},allStatuses:x});await t.setState({internal_index:v,filteredIndex:Bm(_,h),index:Bm($,E),indexError:void 0})},updateStory:async(v,h,E)=>{if(E){let{id:S,index:x,filteredIndex:_}=E;x&&x[v]&&(x[v]={...x[v],...h}),_&&_[v]&&(_[v]={..._[v],...h}),await e.updateRef(S,{index:x,filteredIndex:_})}else{let{index:S,filteredIndex:x}=t.getState();S&&S[v]&&(S[v]={...S[v],...h}),x&&x[v]&&(x[v]={...x[v],...h}),(S||x)&&await t.setState({index:S,filteredIndex:x})}},updateDocs:async(v,h,E)=>{if(E){let{id:S,index:x,filteredIndex:_}=E;x[v]={...x[v],...h},_[v]={..._[v],...h},await e.updateRef(S,{index:x,filteredIndex:_})}else{let{index:S,filteredIndex:x}=t.getState();S&&(S[v]={...S[v],...h}),x&&(x[v]={...x[v],...h}),(S||x)&&await t.setState({index:S,filteredIndex:x})}},setPreviewInitialized:async v=>{v?e.updateRef(v.id,{previewInitialized:!0}):t.setState({previewInitialized:!0})},experimental_setFilter:async(v,h)=>{await t.setState({filters:{...t.getState().filters,[v]:h}});let{internal_index:E}=t.getState();if(!E)return;await l.setIndex(E);let S=await e.getRefs();for(let[x,{internal_index:_,...$}]of Object.entries(S))await e.setRef(x,{...$,storyIndex:_},!0);n.channel?.emit(T6,{id:v})},resetTagFilters:async()=>{await t.setState(v=>({includedTagFilters:v.defaultIncludedTagFilters,excludedTagFilters:v.defaultExcludedTagFilters}),{persistence:"permanent"}),s()},setAllTagFilters:async(v,h)=>{await t.setState({includedTagFilters:v,excludedTagFilters:h},{persistence:"permanent"}),s()},addTagFilters:async(v,h)=>{let E=t.getState(),S=new Set(E.includedTagFilters),x=new Set(E.excludedTagFilters);for(let _ of v)h?(S.delete(_),x.add(_)):(S.add(_),x.delete(_));await t.setState({includedTagFilters:Array.from(S),excludedTagFilters:Array.from(x)},{persistence:"permanent"}),s()},removeTagFilters:async v=>{let h=t.getState();await t.setState({includedTagFilters:h.includedTagFilters.filter(E=>!v.includes(E)),excludedTagFilters:h.excludedTagFilters.filter(E=>!v.includes(E))},{persistence:"permanent"}),s()}},s=()=>{let{includedTagFilters:v,excludedTagFilters:h}=t.getState();l.experimental_setFilter(Cu,_u(v,h))};n.channel?.on(L6,function({storyId:v,viewMode:h}){let{sourceType:E}=pt(this,e);if(E==="local"){let S=t.getState(),x=S.path==="/"||S.viewMode==="story"||S.viewMode==="docs",_=S.viewMode&&S.storyId,$=S.viewMode!==h||S.storyId!==v,{type:C}=S.index?.[S.storyId]||{};x&&(_&&$&&!(C==="root"||C==="component"||C==="group")?n.channel?.emit(_6,{storyId:S.storyId,viewMode:S.viewMode}):$&&r(`/${h}/${v}`))}}),n.channel?.on(E6,function(){let{ref:v}=pt(this,e);l.setPreviewInitialized(v)}),n.channel?.on(D6,function(){let{sourceType:v}=pt(this,e);if(v==="local"){let h=l.getCurrentParameter("options");h&&e.setOptions(Tu(h))}}),n.channel?.on(I6,function({id:v,...h}){let{ref:E,sourceType:S}=pt(this,e);if(l.updateStory(v,{...h,prepared:!0},E),!E&&!t.getState().hasCalledSetOptions){let{options:x}=h.parameters;e.setOptions(Tu(x)),t.setState({hasCalledSetOptions:!0})}if(S==="local"){let{storyId:x,index:_,refId:$}=t.getState();if(!_)return;let C=Array.from(new Set([l.findSiblingStoryId(x,_,1,!0),l.findSiblingStoryId(x,_,-1,!0)])).filter(Boolean);n.channel?.emit(x6,{ids:C,options:{target:$}})}}),n.channel?.on(S6,function({id:v,...h}){let{ref:E}=pt(this,e);l.updateStory(v,{...h,prepared:!0},E)}),n.channel?.on(A6,function(v){let{ref:h}=pt(this,e);if(h)e.setRef(h.id,{...h,storyIndex:v},!0);else{l.setIndex(v);let E=l.getCurrentParameter("options");e.setOptions(Tu(E))}}),n.channel?.on(O6,function(v){let{ref:h}=pt(this,e),E=v.v?k8(v):v.stories;if(h)e.setRef(h.id,{...h,setStoriesData:E},!0);else throw new Error("Cannot call SET_STORIES for local frame")}),n.channel?.on($6,function({kind:v,title:h=v,story:E,name:S=E,storyId:x,..._}){let{ref:$}=pt(this,e);$?e.selectStory(x||h,S,{..._,ref:$.id}):e.selectStory(x||h,S,_)}),n.channel?.on(R6,function({storyId:v,args:h}){let{ref:E}=pt(this,e);l.updateStory(v,{args:h},E)}),n.channel?.on(v6,function(v){let{ref:h}=pt(this,e);l.setPreviewInitialized(h)}),n.channel?.on(F6,function(v){let{ref:h}=pt(this,e);l.setPreviewInitialized(h)}),n.channel?.on(C6,()=>{let v=n.getConfig()?.sidebar?.filters||{},{includedTagFilters:h,excludedTagFilters:E,tagPresets:S}=t.getState();t.setState({filters:{...t.getState().filters,...v,[Wm]:Vm(S),[Cu]:_u(h,E)}})}),Gm.onAllStatusChange(async()=>{let{internal_index:v}=t.getState();if(!v)return;await l.setIndex(v);let h=await e.getRefs();Object.entries(h).forEach(([E,{internal_index:S,...x}])=>{e.setRef(E,{...x,storyIndex:S},!0)})});let u=n.getConfig()?.sidebar?.filters||{},c=Gv.TAGS_OPTIONS||{},d=Vv(c),f=t.getState(),g=f.includedTagFilters??f.layout?.includedTagFilters??d.included,y=f.excludedTagFilters??f.layout?.excludedTagFilters??d.excluded,b={...u,[Wm]:Vm(c),[Cu]:_u(g,y)};return{api:l,state:{storyId:o,viewMode:a,hasCalledSetOptions:!1,previewInitialized:!1,filters:b,tagPresets:c,defaultIncludedTagFilters:d.included,defaultExcludedTagFilters:d.excluded,includedTagFilters:g,excludedTagFilters:y},init:async()=>{n.channel?.on(P6,()=>l.fetchIndex()),await l.fetchIndex()}}},qv={};Ke(qv,{init:()=>J6});const{GLOBALS_UPDATED:G6,NAVIGATE_URL:W6,SET_CURRENT_STORY:V6,STORY_ARGS_UPDATED:q6,UPDATE_QUERY_PARAMS:Y6}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:Rn}=__STORYBOOK_MODULE_GLOBAL__;var qm=ot(ub(),1),Kr=e=>{if(e==="true"||e==="1")return!0;if(e==="false"||e==="0")return!1},Ym=e=>Object.fromEntries(e.split(";").map(t=>t.split(":")).map(([t,r])=>[t,encodeURIComponent(r)]).filter(([t,r])=>t&&r)),Xm=(e,t)=>{let r=Ym(e),n=Ym(t);return Object.entries({...r,...n}).map(([o,a])=>`${o}:${a}`).join(";")},Au,X6=({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}=a4(e),g,y,b;Kr(a)===!0?(g=0,y=0,b=0):Kr(a)===!1&&(g=Qo,y=Di,b=Pi),o||(Kr(l)===!0&&(g=Qo),Kr(l)===!1&&(g=0)),Kr(i)===!1&&(y=0,b=0);let v={navSize:g,bottomPanelHeight:y,rightPanelWidth:b,panelPosition:["right","bottom"].includes(i)?i:void 0,showTabs:Kr(c)},h={enableShortcuts:Kr(s)},E=u||void 0,S=n,x=Zt(Au,f)?Au:f;return Au=x,{viewMode:r,layout:v,ui:h,selectedPanel:E,location:e,path:t,customQueryParams:x,storyId:S}},J6=e=>{let{store:t,navigate:r,provider:n,fullAPI:o}=e,a=(u,c={},d={})=>{let f=Object.entries(c).filter(([,y])=>y).sort(([y],[b])=>y<b?-1:1).map(([y,b])=>`${y}=${b}`),g=[u,...f].join("&");return r(g,d)},i={getStoryHrefs(u,c={}){let{id:d,refId:f}=o.getCurrentStoryData()??{},g=u===d&&c.refId===f,{customQueryParams:y,location:b,refs:v}=t.getState(),{base:h,inheritArgs:E=g,inheritGlobals:S=!0,queryParams:x={},refId:_,viewMode:$="story"}=c;if(_&&!v[_])throw new Error(`Invalid refId: ${_}`);let C=b.pathname||"/",A=Rn.window.location.origin+C,D=Rn.STORYBOOK_NETWORK_ADDRESS??A,F=h==="origin"?A:h==="network"?D:C,T=_?v[_].url+"/iframe.html":Rn.PREVIEW_URL||`${F.replace(/\/[^/]*\.html$/,"").replace(/\/?$/,"/")}iframe.html`,N=_?`&refId=${encodeURIComponent(_)}`:"",{args:L="",globals:R="",...I}=x,k=E?Xm(y?.args??"",L):L,M=S?Xm(y?.globals??"",R):R,H=(0,qm.stringify)(I,{nesting:!0,nestingSyntax:"js"}),U=(0,qm.stringify)(rT(I,["id","viewMode"]),{nesting:!0,nestingSyntax:"js"});return k=k&&`&args=${k}`,M=M&&`&globals=${M}`,H=H&&`&${H}`,U=U&&`&${U}`,{managerHref:`${F}?path=/${$}/${_?`${_}_`:""}${u}${k}${M}${H}`,previewHref:`${T}?id=${u}&viewMode=${$}${N}${k}${_?"":M}${U}`}},getQueryParam(u){let{customQueryParams:c}=t.getState();return c?c[u]:void 0},getUrlState(){let{location:u,path:c,customQueryParams:d,storyId:f,url:g,viewMode:y}=t.getState();return{path:c,hash:u.hash??"",queryParams:d,storyId:f,url:g,viewMode:y}},setQueryParams(u){let{customQueryParams:c}=t.getState(),d={},f={...c,...Object.entries(u).reduce((g,[y,b])=>(b!==null&&(g[y]=b),g),d)};Zt(c,f)||(t.setState({customQueryParams:f}),n.channel?.emit(Y6,f))},applyQueryParams(u,c){let{path:d,hash:f="",queryParams:g}=i.getUrlState();a(`${d}${f}`,{...g,...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 g=o.getCurrentStoryData();if(g?.type!=="story")return;let{args:y,initialArgs:b}=g,v=jg(b,y);a(`${u}${c}`,{...d,args:v},{replace:!0}),i.setQueryParams({args:v})};n.channel?.on(V6,()=>l());let s;return n.channel?.on(q6,()=>{"requestIdleCallback"in Rn.window?(s&&Rn.window.cancelIdleCallback(s),s=Rn.window.requestIdleCallback(l,{timeout:1e3})):(s&&clearTimeout(s),setTimeout(l,100))}),n.channel?.on(G6,({userGlobals:u,initialGlobals:c})=>{let{path:d,hash:f="",queryParams:g}=i.getUrlState(),y=jg(c,an(c,u));a(`${d}${f}`,{...g,globals:y},{replace:!0}),i.setQueryParams({globals:y})}),n.channel?.on(W6,(u,c)=>{i.navigateUrl(u,c)}),{api:i,state:X6(e)}},Yv={};Ke(Yv,{init:()=>rL});var Z6=ot(mn(),1);const{global:Kc}=__STORYBOOK_MODULE_GLOBAL__;var Q6="10.3.5",{VERSIONCHECK:eL}=Kc,Jm=(0,Z6.default)(1)(()=>{try{return{...JSON.parse(eL).data||{}}}catch{return{}}}),tL=e=>e.includes("vue")?"vue":e,rL=({store:e})=>{let{dismissedVersionNotification:t}=e.getState(),r={versions:{current:{version:Q6},...Jm()},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&&ft.prerelease(i.version)&&a?o&&ft.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,g=`https://storybook.js.org/${o?"docs-assets":"docs"}/`;if(o&&f)g+=`${ft.major(f)}.${ft.minor(f)}/`;else if(i&&f&&c){let v=ft.diff(c,f);v==="patch"||v===null||(g+=`${ft.major(f)}.${ft.minor(f)}/`)}let[y,b]=a?.split("#")||[];if(y&&(g+=o?y:`${y}/`),l&&typeof Kc.STORYBOOK_RENDERER<"u"){let v=Kc.STORYBOOK_RENDERER;v&&(g+=`?renderer=${tL(v)}`)}return s&&(g+=`${g.includes("?")?"&":"?"}ref=${s}`),b&&(g+=`#${b}`),g},versionUpdateAvailable:()=>{let o=n.getLatestVersion(),a=n.getCurrentVersion();if(o){if(!o.version||!a.version)return!0;let i=ft.prerelease(a.version)?`${ft.major(a.version)}.${ft.minor(a.version)}.${ft.patch(a.version)}`:a.version,l=ft.diff(i,o.version);return ft.gt(o.version,i)&&l!=="patch"&&!l.includes("pre")}return!1}};return{init:async()=>{let{versions:o={}}=e.getState(),{latest:a,next:i}=Jm();await e.setState({versions:{...o,latest:a,next:i}})},state:r,api:n}},Xv={};Ke(Xv,{init:()=>uL});const{REQUEST_WHATS_NEW_DATA:nL,RESULT_WHATS_NEW_DATA:oL,SET_WHATS_NEW_CACHE:aL,TOGGLE_WHATS_NEW_NOTIFICATIONS:iL}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:lL}=__STORYBOOK_MODULE_GLOBAL__;var Zm="whats-new",sL=({color:e="currentColor",size:t=14})=>m.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m.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})),uL=({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(Zm))},toggleWhatsNewNotifications(){n.whatsNewData?.status==="SUCCESS"&&(o({...n.whatsNewData,disableWhatsNewNotifications:!n.whatsNewData.disableWhatsNewNotifications}),r.channel?.emit(iL,{disableWhatsNewNotifications:n.whatsNewData.disableWhatsNewNotifications}))}};function i(){return r.channel?.emit(nL),new Promise(s=>r.channel?.once(oL,({data:u})=>s(u)))}function l(s){r.channel?.emit(aL,s)}return{init:async()=>{if(lL.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:Zm,link:"/settings/whats-new",content:{headline:s.title,subHeadline:"Learn what's new in Storybook"},icon:m.createElement(sL,null),onClear({dismissed:c}){c&&l({lastDismissedPost:s.url})}})},state:n,api:a}},Do=ot(v8(),1),cL=e=>{e.fn("set",function(t,r){return e.set(this._area,this._in(t),WI(r,{maxDepth:50}))}),e.fn("get",function(t,r){let n=e.get(this._area,this._in(t));return n!==null?qI(n):r||n})};cL(Do.default._);var Jv="@storybook/manager/store";function Gc(e){return e.get(Jv)||{}}function dL(e,t){return e.set(Jv,t)}function fL(e,t){let r=Gc(e);return dL(e,{...r,...t})}var pL=class{constructor({allowPersistence:e,setState:t,getState:r}){this.upstreamPersistence=e??!0,this.upstreamSetState=t,this.upstreamGetState=r}getInitialState(e){return{...e,...Gc(Do.default.local),...Gc(Do.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"&&this.upstreamPersistence){let u=a==="session"?Do.default.session:Do.default.local;await fL(u,l)}return n&&n(s),s}},{ActiveTabs:fY}=Ff,Zv=E8({api:void 0,state:Bc({})}),hL=(...e)=>S8({},...e),gL=class extends p.Component{constructor(e){super(e),this.api={},this.initModules=()=>{this.modules.forEach(b=>{"init"in b&&b.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 pL({getState:()=>this.state,setState:(b,v)=>(this.setState(b,()=>v(this.state)),this.state)}),c={location:t,path:r,viewMode:o,singleStory:a,storyId:i,refId:n},d={docsOptions:l};this.state=u.getInitialState(Bc({...c,...d}));let f={navigate:s,store:u,provider:e.provider};this.modules=[Bv,Av,Tv,Ff,Nv,jv,Hv,Kv,Rv,Ov,qv,Yv,Xv,Mv].map(b=>b.init({...c,...d,...f,state:this.state,fullAPI:this.api}));let g=Bc(this.state,...this.modules.map(b=>b.state)),y=Object.assign(this.api,{navigate:s},...this.modules.map(b=>b.api));this.state=g,this.api=y}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||!Yt(n,t)}render(){let{children:e}=this.props,t={state:this.state,api:this.api};return m.createElement(mL,{effect:this.initModules},m.createElement(Zv.Provider,{value:t},m.createElement(bL,null,e)))}};gL.displayName="Manager";var mL=({children:e,effect:t})=>(m.useEffect(t,[]),e),yL=e=>e;function bL({filter:e=yL,children:t}){let r=p.useContext(Zv),n=p.useRef(t),o=p.useRef(e);if(typeof n.current!="function")return m.createElement(p.Fragment,null,n.current);let a=o.current(r),i=p.useMemo(()=>[...Object.entries(a).reduce((l,s)=>l.concat(s),[])],[r.state]);return p.useMemo(()=>{let l=n.current;return m.createElement(l,{...a})},i)}globalThis.STORYBOOK_ADDON_STATE={};const{Channel:pY}=__STORYBOOK_MODULE_CHANNELS__;var vL={id:"storybook/test-provider",leader:!0,initialState:{}};function EL({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}}EL({universalTestProviderStore:uf.create({...vL,leader:globalThis.CONFIG_TYPE==="PRODUCTION"}),useUniversalStore:Wv});var SL={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:{}},xL={id:"storybook/checklist",initialState:SL};uf.create({...xL,leader:globalThis.CONFIG_TYPE==="PRODUCTION"});var Ou={exports:{}},Ru={},Qm;function wL(){if(Qm)return Ru;Qm=1;var e=qd();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 g=f(),y=n({inst:{value:g,getSnapshot:f}}),b=y[0].inst,v=y[1];return a(function(){b.value=g,b.getSnapshot=f,s(b)&&v({inst:b})},[d,g,f]),o(function(){return s(b)&&v({inst:b}),d(function(){s(b)&&v({inst:b})})},[d]),i(g),g}function s(d){var f=d.getSnapshot;d=d.value;try{var g=f();return!r(d,g)}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 Ru.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:c,Ru}var e0;function $L(){return e0||(e0=1,Ou.exports=wL()),Ou.exports}var CL=$L(),we=({...e},t)=>{let r=[e.class,e.className];return delete e.class,e.className=["sbdocs",`sbdocs-${t}`,...r].filter(Boolean).join(" "),e},mo=({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"}}),br=({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)"}),_e=({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"}),En={margin:"16px 0"},If=P.div(_e),_L=({href:e="",...t})=>{let r=/^\//.test(e)?`./?path=${e}`:e,n=/^#.*/.test(e)?"_self":"_top";return m.createElement("a",{href:r,target:n,...t})},Qv=P(_L)(({theme:e})=>({..._e({theme:e}),fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"underline",textDecorationThickness:"0.03125rem",textUnderlineOffset:"0.11em","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0,textDecoration:"none"},"&.anchor:hover, &.anchor:focus":{textDecoration:"underline"}})),eE=P.blockquote(({theme:e})=>({..._e({theme:e}),...En,borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}})),ln=[],eo=null,TL=p.lazy(async()=>{let{SyntaxHighlighter:e}=await kr(async()=>{const{SyntaxHighlighter:t}=await import("./syntaxhighlighter-OH4MV7E3-ByMlOdlq.js");return{SyntaxHighlighter:t}},__vite__mapDeps([0,1,2,3,4]),import.meta.url);return ln.length>0&&(ln.forEach(t=>{e.registerLanguage(...t)}),ln=[]),eo===null&&(eo=e),{default:t=>m.createElement(e,{...t})}}),AL=p.lazy(async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([kr(()=>import("./syntaxhighlighter-OH4MV7E3-ByMlOdlq.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),kr(()=>import("./formatter-EIJCOSYU-CYrt3ugJ.js"),__vite__mapDeps([5,1,2,3,4]),import.meta.url)]);return ln.length>0&&(ln.forEach(r=>{e.registerLanguage(...r)}),ln=[]),eo===null&&(eo=e),{default:r=>m.createElement(e,{...r,formatter:t})}}),ya=e=>m.createElement(p.Suspense,{fallback:m.createElement("div",null)},e.format!==!1?m.createElement(AL,{...e}):m.createElement(TL,{...e}));ya.registerLanguage=(...e)=>{if(eo!==null){eo.registerLanguage(...e);return}ln.push(e)};var OL=e=>typeof e=="string",RL=/[\n\r]/g,DL=P.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit",...br({theme:e})})),PL=P(ya)(({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"}})),Lf=({className:e,children:t,...r})=>{let n=(e||"").match(/lang-(\S+)/),o=p.Children.toArray(t);return o.filter(OL).some(a=>a.match(RL))?m.createElement(PL,{bordered:!0,copyable:!0,language:n?.[1]??"text",format:!1,...r},t):m.createElement(DL,{...r,className:e},o)},tE=P.dl(({theme:e})=>({..._e({theme:e}),...En,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}})),rE=P.div(_e),nE=P.h1(({theme:e})=>({..._e({theme:e}),...mo({theme:e}),fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),kf=P.h2(({theme:e})=>({..._e({theme:e}),...mo({theme:e}),fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),Nf=P.h3(({theme:e})=>({..._e({theme:e}),...mo({theme:e}),fontSize:`${e.typography.size.m1}px`})),oE=P.h4(({theme:e})=>({..._e({theme:e}),...mo({theme:e}),fontSize:`${e.typography.size.s3}px`})),aE=P.h5(({theme:e})=>({..._e({theme:e}),...mo({theme:e}),fontSize:`${e.typography.size.s2}px`})),iE=P.h6(({theme:e})=>({..._e({theme:e}),...mo({theme:e}),fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),lE=P.hr(({theme:e})=>({border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),sE=P.img({maxWidth:"100%"}),uE=P.li(({theme:e})=>({..._e({theme:e}),fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":br({theme:e})})),FL={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},cE=P.ol(({theme:e})=>({..._e({theme:e}),...En,...FL,listStyle:"decimal"})),dE=P.p(({theme:e})=>({..._e({theme:e}),...En,fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":br({theme:e})})),fE=P.pre(({theme:e})=>({..._e({theme:e}),...En,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"}})),pE=P.span(({theme:e})=>({..._e({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"}}})),hE=P.title(br),gE=P.table(({theme:e})=>({..._e({theme:e}),...En,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}})),IL={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},mE=P.ul(({theme:e})=>({..._e({theme:e}),...En,...IL,listStyle:"disc"})),yE={h1:e=>m.createElement(nE,{...we(e,"h1")}),h2:e=>m.createElement(kf,{...we(e,"h2")}),h3:e=>m.createElement(Nf,{...we(e,"h3")}),h4:e=>m.createElement(oE,{...we(e,"h4")}),h5:e=>m.createElement(aE,{...we(e,"h5")}),h6:e=>m.createElement(iE,{...we(e,"h6")}),pre:e=>m.createElement(fE,{...we(e,"pre")}),a:e=>m.createElement(Qv,{...we(e,"a")}),hr:e=>m.createElement(lE,{...we(e,"hr")}),dl:e=>m.createElement(tE,{...we(e,"dl")}),blockquote:e=>m.createElement(eE,{...we(e,"blockquote")}),table:e=>m.createElement(gE,{...we(e,"table")}),img:e=>m.createElement(sE,{...we(e,"img")}),div:e=>m.createElement(rE,{...we(e,"div")}),span:e=>m.createElement(pE,{...we(e,"span")}),li:e=>m.createElement(uE,{...we(e,"li")}),ul:e=>m.createElement(mE,{...we(e,"ul")}),ol:e=>m.createElement(cE,{...we(e,"ol")}),p:e=>m.createElement(dE,{...we(e,"p")}),code:e=>m.createElement(Lf,{...we(e,"code")}),tt:e=>m.createElement(hE,{...we(e,"tt")}),resetwrapper:e=>m.createElement(If,{...we(e,"resetwrapper")})};P.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 ${yr(.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"?qe(.1,e.color.secondary):e.color.secondary,background:e.background.hoverable,boxShadow:`inset 0 0 0 1px ${yr(.9,e.color.secondary)}`};default:return{}}});const{deprecate:LL}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var kL=0,NL=e=>e.button===kL&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,ML=(e,t)=>{NL(e)&&(e.preventDefault(),t(e))},BL=P.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}}:{}),jL=P.a(({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:qe(.07,e.color.secondary),"svg path:not([fill])":{fill:qe(.07,e.color.secondary)}},"&:active":{color:qe(.1,e.color.secondary),"svg path:not([fill])":{fill:qe(.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,theme:t})=>e?{border:0,borderRadius:t.input.borderRadius,background:"none",padding:0,fontSize:"inherit",lineHeight:"inherit","&:focus-visible":{outline:`2px solid ${t.color.secondary}`,outlineOffset:2,zIndex:"1"}}:{}),to=p.forwardRef(({cancel:e=!0,children:t,onClick:r=void 0,withArrow:n=!1,containsIcon:o=!1,className:a=void 0,isButton:i=void 0,href:l,...s},u)=>(i!==void 0&&LL("Link: `isButton` is deprecated and will be removed in Storybook 11. Links without a `href` are automatically rendered as buttons."),m.createElement(jL,{as:l?"a":"button",href:l,...s,ref:u,isButton:!l||i===!0,onClick:r&&e?c=>ML(c,r):r,className:a},m.createElement(BL,{withArrow:n,containsIcon:o},t,n&&m.createElement(j3,null)))));to.displayName="Link";P.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:"underline",textDecorationThickness:"0.03125rem",textUnderlineOffset:"0.11em"},"a.absent":{color:"#cc0000"},"a.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0,textDecoration:"none"},"&.anchor:hover, &.anchor:focus":{textDecoration:"underline"},"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 t0(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function HL(...e){return t=>{let r=!1,n=e.map(o=>{let a=t0(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():t0(e[o],null)}}}}var UL=Symbol.for("react.lazy"),Fi=I5[" use ".trim().toString()];function zL(e){return typeof e=="object"&&e!==null&&"then"in e}function bE(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===UL&&"_payload"in e&&zL(e._payload)}function KL(e){let t=WL(e),r=p.forwardRef((n,o)=>{let{children:a,...i}=n;bE(a)&&typeof Fi=="function"&&(a=Fi(a._payload));let l=p.Children.toArray(a),s=l.find(qL);if(s){let u=s.props.children,c=l.map(d=>d===s?p.Children.count(u)>1?p.Children.only(null):p.isValidElement(u)?u.props.children:null:d);return se.jsx(t,{...i,ref:o,children:p.isValidElement(u)?p.cloneElement(u,void 0,c):null})}return se.jsx(t,{...i,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}var GL=KL("Slot");function WL(e){let t=p.forwardRef((r,n)=>{let{children:o,...a}=r;if(bE(o)&&typeof Fi=="function"&&(o=Fi(o._payload)),p.isValidElement(o)){let i=XL(o),l=YL(a,o.props);return o.type!==p.Fragment&&(l.ref=n?HL(n,i):i),p.cloneElement(o,l)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var VL=Symbol("radix.slottable");function qL(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===VL}function YL(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 XL(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 JL=P.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)"})),vE=({note:e,...t})=>m.createElement(JL,{...t},e);const{deprecate:ZL}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var ge=typeof document<"u"?m.useLayoutEffect:()=>{};function QL(e){let[t,r]=p.useState(e),n=p.useRef(t),o=p.useRef(null),a=p.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)});ge(()=>{n.current=t,o.current&&a.current()});let i=p.useCallback(l=>{o.current=l(n.current),a.current()},[a]);return[t,i]}var EE={prefix:String(Math.round(Math.random()*1e10)),current:0},SE=m.createContext(EE),ek=m.createContext(!1),Du=new WeakMap;function tk(e=!1){let t=p.useContext(SE),r=p.useRef(null);if(r.current===null&&!e){var n,o;let a=(o=m.__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=Du.get(a);i==null?Du.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==i.state&&(t.current=i.id,Du.delete(a))}r.current=++t.current}return r.current}function rk(e){let t=p.useContext(SE),r=tk(!!e),n=`react-aria${t.prefix}`;return e||`${n}-${r}`}function nk(e){let t=m.useId(),[r]=p.useState(Sn()),n=r?"react-aria":`react-aria${EE.prefix}`;return e||`${n}-${t}`}var ok=typeof m.useId=="function"?nk:rk;function ak(){return!1}function ik(){return!0}function lk(e){return()=>{}}function Sn(){return typeof m.useSyncExternalStore=="function"?m.useSyncExternalStore(lk,ak,ik):p.useContext(ek)}var sk=!!(typeof window<"u"&&window.document&&window.document.createElement),zn=new Map,Po;typeof FinalizationRegistry<"u"&&(Po=new FinalizationRegistry(e=>{zn.delete(e)}));function ze(e){let[t,r]=p.useState(e),n=p.useRef(null),o=ok(t),a=p.useRef(null);if(Po&&Po.register(a,o),sk){let i=zn.get(o);i&&!i.includes(n)?i.push(n):zn.set(o,[n])}return ge(()=>{let i=o;return()=>{Po&&Po.unregister(a),zn.delete(i)}},[o]),p.useEffect(()=>{let i=n.current;return i&&r(i),()=>{i&&(n.current=null)}}),o}function uk(e,t){if(e===t)return e;let r=zn.get(e);if(r)return r.forEach(o=>o.current=t),t;let n=zn.get(t);return n?(n.forEach(o=>o.current=e),e):t}function di(e=[]){let t=ze(),[r,n]=QL(t),o=p.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return ge(o,[t,o,...e]),r}function ba(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}var ye=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},Ct=e=>e&&"window"in e&&e.window===e?e:ye(e).defaultView||window;function xt(e,t){return t&&e?e.contains(t):!1}var Xe=(e=document)=>e.activeElement;function Oe(e){return e.target}function ck(e,t,r,n){return e.createTreeWalker(t,r,n)}function xE(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=xE(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function dk(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=xE(e))&&(n&&(n+=" "),n+=t);return n}var fk=dk;function ne(...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]=ba(a,i):(o==="className"||o==="UNSAFE_className")&&typeof a=="string"&&typeof i=="string"?t[o]=fk(a,i):o==="id"&&a&&i?t.id=uk(a,i):t[o]=i!==void 0?i:a}}return t}function Mf(...e){return e.length===1&&e[0]?e[0]:t=>{let r=!1,n=e.map(o=>{let a=r0(o,t);return r||(r=typeof a=="function"),a});if(r)return()=>{n.forEach((o,a)=>{typeof o=="function"?o():r0(e[a],null)})}}}function r0(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}var pk=new Set(["id"]),hk=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),gk=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),mk=new Set(["dir","lang","hidden","inert","translate"]),n0=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"]),yk=/^(data-.*)$/;function Ae(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)&&(pk.has(s)||r&&hk.has(s)||n&&gk.has(s)||o&&mk.has(s)||a&&(n0.has(s)||s.endsWith("Capture")&&n0.has(s.slice(0,-7)))||i?.has(s)||yk.test(s))&&(l[s]=e[s]);return l}function st(e){if(bk())e.focus({preventScroll:!0});else{let t=vk(e);e.focus(),Ek(t)}}var Ha=null;function bk(){if(Ha==null){Ha=!1;try{document.createElement("div").focus({get preventScroll(){return Ha=!0,!0}})}catch{}}return Ha}function vk(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 Ek(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function _l(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 Bf(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 vr(e){let t=null;return()=>(t==null&&(t=e()),t)}var dn=vr(function(){return Bf(/^Mac/i)}),Sk=vr(function(){return Bf(/^iPhone/i)}),wE=vr(function(){return Bf(/^iPad/i)||dn()&&navigator.maxTouchPoints>1}),Tl=vr(function(){return Sk()||wE()}),xk=vr(function(){return dn()||Tl()}),$E=vr(function(){return _l(/AppleWebKit/i)&&!CE()}),CE=vr(function(){return _l(/Chrome/i)}),jf=vr(function(){return _l(/Android/i)}),wk=vr(function(){return _l(/Firefox/i)}),$k=p.createContext({isNative:!0,open:Tk,useHref:e=>e});function Al(){return p.useContext($k)}function Ck(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 fn(e,t,r=!0){var n,o;let{metaKey:a,ctrlKey:i,altKey:l,shiftKey:s}=t;wk()&&!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key")&&e.target==="_blank"&&(dn()?a=!0:i=!0);let u=$E()&&dn()&&!wE()?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});fn.isOpening=r,st(e),e.dispatchEvent(u),fn.isOpening=!1}fn.isOpening=!1;function _k(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 Tk(e,t){_k(e,r=>fn(r,t))}function _E(e){let t=Al();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 Ak(e,t,r,n){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&Ck(e.currentTarget,e)&&r&&(e.preventDefault(),t.open(e.currentTarget,e,r,n))}var Dr=new Map,Vc=new Set;function o0(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let o=Dr.get(n.target);o||(o=new Set,Dr.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=Dr.get(n.target);if(o&&(o.delete(n.propertyName),o.size===0&&(n.target.removeEventListener("transitioncancel",r),Dr.delete(n.target)),Dr.size===0)){for(let a of Vc)a();Vc.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?o0():document.addEventListener("DOMContentLoaded",o0));function Ok(){for(let[e]of Dr)"isConnected"in e&&!e.isConnected&&Dr.delete(e)}function TE(e){requestAnimationFrame(()=>{Ok(),Dr.size===0?e():Vc.add(e)})}function Ol(){let e=p.useRef(new Map),t=p.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=p.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=p.useCallback(()=>{e.current.forEach((o,a)=>{r(o.eventTarget,o.type,a,o.options)})},[r]);return p.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function Rl(e,t){let{id:r,"aria-label":n,"aria-labelledby":o}=e;return r=ze(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 Ut(e){let t=p.useRef(null),r=p.useRef(void 0),n=p.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 p.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 Pu,Rk=(Pu=m.useInsertionEffect)!==null&&Pu!==void 0?Pu:ge;function je(e){let t=p.useRef(null);return Rk(()=>{t.current=e},[e]),p.useCallback((...r)=>{let n=t.current;return n?.(...r)},[])}function a0(e,t){let r=p.useRef(!0),n=p.useRef(null);ge(()=>(r.current=!0,()=>{r.current=!1}),[]),ge(()=>{r.current?r.current=!1:(!n.current||t.some((o,a)=>!Object.is(o,n[a])))&&e(),n.current=t},t)}function Dk(){return typeof window.ResizeObserver<"u"}function Ii(e){let{ref:t,box:r,onResize:n}=e,o=je(n);p.useEffect(()=>{let a=t?.current;if(a)if(Dk()){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 Hf(e,t){ge(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function ro(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 AE(e,t){let r=e;for(ro(r,t)&&(r=r.parentElement);r&&!ro(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function Pk(e,t){let r=[];for(;e&&e!==document.documentElement;)ro(e,t)&&r.push(e),e=e.parentElement;return r}function Ln(e){return dn()?e.metaKey:e.ctrlKey}var Fk=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Fu(e){return e instanceof HTMLInputElement&&!Fk.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var Ik=0,Iu=new Map;function Lk(e){let[t,r]=p.useState();return ge(()=>{if(!e)return;let n=Iu.get(e);if(n)r(n.element.id);else{let o=`react-aria-description-${Ik++}`;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},Iu.set(e,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),Iu.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Fo(e,t,r,n){let o=je(r),a=r==null;p.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 OE(e,t){let r=i0(e,t,"left"),n=i0(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:g}=getComputedStyle(e),y=i+parseInt(u,10),b=l+parseInt(s,10),v=y+e.clientWidth,h=b+e.clientHeight,E=parseInt(c,10)||0,S=parseInt(f,10)||0,x=parseInt(d,10)||0,_=parseInt(g,10)||0;r<=i+_?i=r-parseInt(u,10)-_:r+o>v-x&&(i+=r+o-v+x),n<=b+E?l=n-parseInt(s,10)-E:n+a>h-S&&(l+=n+a-h+S),e.scrollLeft=i,e.scrollTop=l}function i0(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 l0(e,t){if(e&&document.contains(e)){let i=document.scrollingElement||document.documentElement,l=window.getComputedStyle(i).overflow==="hidden";if(l){let s=Pk(e);l||s.push(i);for(let u of s)OE(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 RE(e){return e.pointerType===""&&e.isTrusted?!0:jf()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function kk(e){return!jf()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function s0(e){let t=p.version.split(".");return parseInt(t[0],10)>=19?e:e?"true":void 0}var Nk="react-aria-clear-focus",Mk="react-aria-focus";function DE(e,t=!0){let[r,n]=p.useState(!0),o=r&&t;return ge(()=>{if(o&&e.current&&"getAnimations"in e.current)for(let a of e.current.getAnimations())a instanceof CSSTransition&&a.cancel()},[e,o]),FE(e,o,p.useCallback(()=>n(!1),[])),o}function PE(e,t){let[r,n]=p.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 FE(e,o,p.useCallback(()=>{n(a=>a==="exiting"?"closed":a)},[])),o}function FE(e,t,r){ge(()=>{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||da.flushSync(()=>{r()})}).catch(()=>{}),()=>{o=!0}}},[e,t,r])}var Bk=typeof Element<"u"&&"checkVisibility"in Element.prototype;function jk(e){let t=Ct(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 Hk(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 Uf(e,t){return Bk?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&jk(e)&&Hk(e,t)&&(!e.parentElement||Uf(e.parentElement,e))}var zf=["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"],Uk=zf.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";zf.push('[tabindex]:not([tabindex="-1"]):not([disabled])');var zk=zf.join(':not([hidden]):not([tabindex="-1"]),');function IE(e){return e.matches(Uk)&&Uf(e)&&!LE(e)}function Kk(e){return e.matches(zk)&&Uf(e)&&!LE(e)}function LE(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}var Lu,Gk=typeof document<"u"?(Lu=m.useInsertionEffect)!==null&&Lu!==void 0?Lu:m.useLayoutEffect:()=>{};function Dl(e,t,r){let[n,o]=p.useState(e||t),a=p.useRef(n),i=p.useRef(e!==void 0),l=e!==void 0;p.useEffect(()=>{i.current,i.current=l},[l]);let s=l?e:n;Gk(()=>{a.current=s});let[,u]=p.useReducer(()=>({}),{}),c=p.useCallback((d,...f)=>{let g=typeof d=="function"?d(a.current):d;Object.is(a.current,g)||(a.current=g,o(g),u(),r?.(g,...f))},[r]);return[s,c]}function ea(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function Kf(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function kE(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function NE(e){let t=p.useRef({isFocused:!1,observer:null});ge(()=>{let n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=je(n=>{e?.(n)});return p.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=Kf(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 Li=!1;function Wk(e){for(;e&&!IE(e);)e=e.parentElement;let t=Ct(e),r=t.document.activeElement;if(!r||r===e)return;Li=!0;let n=!1,o=c=>{(c.target===r||n)&&c.stopImmediatePropagation()},a=c=>{(c.target===r||n)&&(c.stopImmediatePropagation(),!e&&!n&&(n=!0,st(r),s()))},i=c=>{(c.target===e||n)&&c.stopImmediatePropagation()},l=c=>{(c.target===e||n)&&(c.stopImmediatePropagation(),n||(n=!0,st(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),Li=!1,n=!1},u=requestAnimationFrame(s);return s}var jn="default",qc="",fi=new WeakMap;function Vk(e){if(Tl()){if(jn==="default"){let t=ye(e);qc=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}jn="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";fi.set(e,e.style[t]),e.style[t]="none"}}function u0(e){if(Tl()){if(jn!=="disabled")return;jn="restoring",setTimeout(()=>{TE(()=>{if(jn==="restoring"){let t=ye(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=qc||""),qc="",jn="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&fi.has(e)){let t=fi.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),fi.delete(e)}}var ta=m.createContext({register:()=>{}});ta.displayName="PressResponderContext";function qk(e,t){return t.get?t.get.call(e):t.value}function ME(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function Yk(e,t){var r=ME(e,t,"get");return qk(e,r)}function Xk(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Jk(e,t,r){Xk(e,t),t.set(e,r)}function Zk(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 c0(e,t,r){var n=ME(e,t,"set");return Zk(e,n,r),r}function Qk(e){let t=p.useContext(ta);if(t){let{register:r,...n}=t;e=ne(n,e),r()}return Hf(t,e.ref),e}var Ua=new WeakMap,za=class{continuePropagation(){c0(this,Ua,!1)}get shouldStopPropagation(){return Yk(this,Ua)}constructor(e,t,r,n){Jk(this,Ua,{writable:!0,value:void 0}),c0(this,Ua,!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}},d0=Symbol("linkClicked"),f0="react-aria-pressable-style",p0="data-react-aria-pressable";function va(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,...g}=Qk(e),[y,b]=p.useState(!1),v=p.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:h,removeAllGlobalListeners:E}=Ol(),S=je((T,N)=>{let L=v.current;if(l||L.didFirePressStart)return!1;let R=!0;if(L.isTriggeringEvent=!0,n){let I=new za("pressstart",N,T);n(I),R=I.shouldStopPropagation}return r&&r(!0),L.isTriggeringEvent=!1,L.didFirePressStart=!0,b(!0),R}),x=je((T,N,L=!0)=>{let R=v.current;if(!R.didFirePressStart)return!1;R.didFirePressStart=!1,R.isTriggeringEvent=!0;let I=!0;if(o){let k=new za("pressend",N,T);o(k),I=k.shouldStopPropagation}if(r&&r(!1),b(!1),t&&L&&!l){let k=new za("press",N,T);t(k),I&&(I=k.shouldStopPropagation)}return R.isTriggeringEvent=!1,I}),_=je((T,N)=>{let L=v.current;if(l)return!1;if(a){L.isTriggeringEvent=!0;let R=new za("pressup",N,T);return a(R),L.isTriggeringEvent=!1,R.shouldStopPropagation}return!0}),$=je(T=>{let N=v.current;if(N.isPressed&&N.target){N.didFirePressStart&&N.pointerType!=null&&x(Gr(N.target,T),N.pointerType,!1),N.isPressed=!1,N.isOverTarget=!1,N.activePointerId=null,N.pointerType=null,E(),d||u0(N.target);for(let L of N.disposables)L();N.disposables=[]}}),C=je(T=>{c&&$(T)}),A=je(T=>{l||i?.(T)}),D=je((T,N)=>{if(!l&&i){let L=new MouseEvent("click",T);kE(L,N),i(Kf(L))}}),F=p.useMemo(()=>{let T=v.current,N={onKeyDown(R){if(ku(R.nativeEvent,R.currentTarget)&&xt(R.currentTarget,Oe(R.nativeEvent))){var I;h0(Oe(R.nativeEvent),R.key)&&R.preventDefault();let k=!0;if(!T.isPressed&&!R.repeat){T.target=R.currentTarget,T.isPressed=!0,T.pointerType="keyboard",k=S(R,"keyboard");let M=R.currentTarget,H=U=>{ku(U,M)&&!U.repeat&&xt(M,Oe(U))&&T.target&&_(Gr(T.target,U),"keyboard")};h(ye(R.currentTarget),"keyup",ba(H,L),!0)}k&&R.stopPropagation(),R.metaKey&&dn()&&((I=T.metaKeyEvents)===null||I===void 0||I.set(R.key,R.nativeEvent))}else R.key==="Meta"&&(T.metaKeyEvents=new Map)},onClick(R){if(!(R&&!xt(R.currentTarget,Oe(R.nativeEvent)))&&R&&R.button===0&&!T.isTriggeringEvent&&!fn.isOpening){let I=!0;if(l&&R.preventDefault(),!T.ignoreEmulatedMouseEvents&&!T.isPressed&&(T.pointerType==="virtual"||RE(R.nativeEvent))){let k=S(R,"virtual"),M=_(R,"virtual"),H=x(R,"virtual");A(R),I=k&&M&&H}else if(T.isPressed&&T.pointerType!=="keyboard"){let k=T.pointerType||R.nativeEvent.pointerType||"virtual",M=_(Gr(R.currentTarget,R),k),H=x(Gr(R.currentTarget,R),k,!0);I=M&&H,T.isOverTarget=!1,A(R),$(R)}T.ignoreEmulatedMouseEvents=!1,I&&R.stopPropagation()}}},L=R=>{var I;if(T.isPressed&&T.target&&ku(R,T.target)){var k;h0(Oe(R),R.key)&&R.preventDefault();let H=Oe(R),U=xt(T.target,Oe(R));x(Gr(T.target,R),"keyboard",U),U&&D(R,T.target),E(),R.key!=="Enter"&&Gf(T.target)&&xt(T.target,H)&&!R[d0]&&(R[d0]=!0,fn(T.target,R,!1)),T.isPressed=!1,(k=T.metaKeyEvents)===null||k===void 0||k.delete(R.key)}else if(R.key==="Meta"&&!((I=T.metaKeyEvents)===null||I===void 0)&&I.size){var M;let H=T.metaKeyEvents;T.metaKeyEvents=void 0;for(let U of H.values())(M=T.target)===null||M===void 0||M.dispatchEvent(new KeyboardEvent("keyup",U))}};if(typeof PointerEvent<"u"){N.onPointerDown=k=>{if(k.button!==0||!xt(k.currentTarget,Oe(k.nativeEvent)))return;if(kk(k.nativeEvent)){T.pointerType="virtual";return}T.pointerType=k.pointerType;let M=!0;if(!T.isPressed){T.isPressed=!0,T.isOverTarget=!0,T.activePointerId=k.pointerId,T.target=k.currentTarget,d||Vk(T.target),M=S(k,T.pointerType);let H=Oe(k.nativeEvent);"releasePointerCapture"in H&&H.releasePointerCapture(k.pointerId),h(ye(k.currentTarget),"pointerup",R,!1),h(ye(k.currentTarget),"pointercancel",I,!1)}M&&k.stopPropagation()},N.onMouseDown=k=>{if(xt(k.currentTarget,Oe(k.nativeEvent))&&k.button===0){if(u){let M=Wk(k.target);M&&T.disposables.push(M)}k.stopPropagation()}},N.onPointerUp=k=>{!xt(k.currentTarget,Oe(k.nativeEvent))||T.pointerType==="virtual"||k.button===0&&!T.isPressed&&_(k,T.pointerType||k.pointerType)},N.onPointerEnter=k=>{k.pointerId===T.activePointerId&&T.target&&!T.isOverTarget&&T.pointerType!=null&&(T.isOverTarget=!0,S(Gr(T.target,k),T.pointerType))},N.onPointerLeave=k=>{k.pointerId===T.activePointerId&&T.target&&T.isOverTarget&&T.pointerType!=null&&(T.isOverTarget=!1,x(Gr(T.target,k),T.pointerType,!1),C(k))};let R=k=>{if(k.pointerId===T.activePointerId&&T.isPressed&&k.button===0&&T.target){if(xt(T.target,Oe(k))&&T.pointerType!=null){let M=!1,H=setTimeout(()=>{T.isPressed&&T.target instanceof HTMLElement&&(M?$(k):(st(T.target),T.target.click()))},80);h(k.currentTarget,"click",()=>M=!0,!0),T.disposables.push(()=>clearTimeout(H))}else $(k);T.isOverTarget=!1}},I=k=>{$(k)};N.onDragStart=k=>{xt(k.currentTarget,Oe(k.nativeEvent))&&$(k)}}return N},[h,l,u,E,d,$,C,x,S,_,A,D]);return p.useEffect(()=>{if(!f)return;let T=ye(f.current);if(!T||!T.head||T.getElementById(f0))return;let N=T.createElement("style");N.id=f0,N.textContent=`
655
- @layer {
656
- [${p0}] {
657
- touch-action: pan-x pan-y pinch-zoom;
658
- }
659
- }
660
- `.trim(),T.head.prepend(N)},[f]),p.useEffect(()=>{let T=v.current;return()=>{var N;d||u0((N=T.target)!==null&&N!==void 0?N:void 0);for(let L of T.disposables)L();T.disposables=[]}},[d]),{isPressed:s||y,pressProps:ne(g,F,{[p0]:!0})}}function Gf(e){return e.tagName==="A"&&e.hasAttribute("href")}function ku(e,t){let{key:r,code:n}=e,o=t,a=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof Ct(o).HTMLInputElement&&!BE(o,r)||o instanceof Ct(o).HTMLTextAreaElement||o.isContentEditable)&&!((a==="link"||!a&&Gf(o))&&r!=="Enter")}function Gr(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 e7(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Gf(e)}function h0(e,t){return e instanceof HTMLInputElement?!BE(e,t):e7(e)}var t7=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function BE(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":t7.has(e.type)}var Nr=null,ra=new Set,Mo=new Map,pn=!1,Yc=!1,r7={Tab:!0,Escape:!0};function Wf(e,t){for(let r of ra)r(e,t)}function n7(e){return!(e.metaKey||!dn()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function ki(e){pn=!0,n7(e)&&(Nr="keyboard",Wf("keyboard",e))}function Kn(e){Nr="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(pn=!0,Wf("pointer",e))}function jE(e){RE(e)&&(pn=!0,Nr="virtual")}function HE(e){e.target===window||e.target===document||Li||!e.isTrusted||(!pn&&!Yc&&(Nr="virtual",Wf("virtual",e)),pn=!1,Yc=!1)}function UE(){Li||(pn=!1,Yc=!0)}function Ni(e){if(typeof window>"u"||typeof document>"u"||Mo.get(Ct(e)))return;let t=Ct(e),r=ye(e),n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){pn=!0,n.apply(this,arguments)},r.addEventListener("keydown",ki,!0),r.addEventListener("keyup",ki,!0),r.addEventListener("click",jE,!0),t.addEventListener("focus",HE,!0),t.addEventListener("blur",UE,!1),typeof PointerEvent<"u"&&(r.addEventListener("pointerdown",Kn,!0),r.addEventListener("pointermove",Kn,!0),r.addEventListener("pointerup",Kn,!0)),t.addEventListener("beforeunload",()=>{zE(e)},{once:!0}),Mo.set(t,{focus:n})}var zE=(e,t)=>{let r=Ct(e),n=ye(e);t&&n.removeEventListener("DOMContentLoaded",t),Mo.has(r)&&(r.HTMLElement.prototype.focus=Mo.get(r).focus,n.removeEventListener("keydown",ki,!0),n.removeEventListener("keyup",ki,!0),n.removeEventListener("click",jE,!0),r.removeEventListener("focus",HE,!0),r.removeEventListener("blur",UE,!1),typeof PointerEvent<"u"&&(n.removeEventListener("pointerdown",Kn,!0),n.removeEventListener("pointermove",Kn,!0),n.removeEventListener("pointerup",Kn,!0)),Mo.delete(r))};function o7(e){let t=ye(e),r;return t.readyState!=="loading"?Ni(e):(r=()=>{Ni(e)},t.addEventListener("DOMContentLoaded",r)),()=>zE(e,r)}typeof document<"u"&&o7();function na(){return Nr!=="pointer"}function oa(){return Nr}function a7(){Ni();let[e,t]=p.useState(Nr);return p.useEffect(()=>{let r=()=>{t(Nr)};return ra.add(r),()=>{ra.delete(r)}},[]),Sn()?null:e}var i7=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function l7(e,t,r){let n=ye(r?.target),o=typeof window<"u"?Ct(r?.target).HTMLInputElement:HTMLInputElement,a=typeof window<"u"?Ct(r?.target).HTMLTextAreaElement:HTMLTextAreaElement,i=typeof window<"u"?Ct(r?.target).HTMLElement:HTMLElement,l=typeof window<"u"?Ct(r?.target).KeyboardEvent:KeyboardEvent;return e=e||n.activeElement instanceof o&&!i7.has(n.activeElement.type)||n.activeElement instanceof a||n.activeElement instanceof i&&n.activeElement.isContentEditable,!(e&&t==="keyboard"&&r instanceof l&&!r7[r.key])}function s7(e,t,r){Ni(),p.useEffect(()=>{let n=(o,a)=>{l7(!!r?.isTextInput,o,a)&&e(na())};return ra.add(n),()=>{ra.delete(n)}},t)}function Mr(e){let t=ye(e),r=Xe(t);if(oa()==="virtual"){let n=r;TE(()=>{Xe(t)===n&&e.isConnected&&st(e)})}else st(e)}function Vf(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:o}=e,a=p.useCallback(s=>{if(s.target===s.currentTarget)return n&&n(s),o&&o(!1),!0},[n,o]),i=NE(a),l=p.useCallback(s=>{let u=ye(s.target),c=u?Xe(u):Xe();s.target===s.currentTarget&&c===Oe(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 g0(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 KE(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:g0(e.onKeyDown),onKeyUp:g0(e.onKeyUp)}}}var Mi=m.createContext(null);function u7(e){let t=p.useContext(Mi)||{};Hf(t,e);let{ref:r,...n}=t;return n}var c7=m.forwardRef(function(e,t){let{children:r,...n}=e,o=Ut(t),a={...n,ref:o};return m.createElement(Mi.Provider,{value:a},r)});function Ea(e,t){let{focusProps:r}=Vf(e),{keyboardProps:n}=KE(e),o=ne(r,n),a=u7(t),i=e.isDisabled?{}:a,l=p.useRef(e.autoFocus);p.useEffect(()=>{l.current&&t.current&&Mr(t.current),l.current=!1},[t]);let s=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(s=void 0),{focusableProps:ne({...o,tabIndex:s},i)}}var d7=p.forwardRef(({children:e,...t},r)=>{r=Ut(r);let{focusableProps:n}=Ea(t,r),o=m.Children.only(e);p.useEffect(()=>{},[r,t.isDisabled]);let a=parseInt(m.version,10)<19?o.ref:o.props.ref;return m.cloneElement(o,{...ne(n,o.props),ref:Mf(a,r)})}),f7=m.forwardRef(({children:e,...t},r)=>{r=Ut(r);let{pressProps:n}=va({...t,ref:r}),{focusableProps:o}=Ea(t,r),a=m.Children.only(e);p.useEffect(()=>{},[r,t.isDisabled]);let i=parseInt(m.version,10)<19?a.ref:a.props.ref;return m.cloneElement(a,{...ne(n,o,a.props),ref:Mf(i,r)})}),p7=m.forwardRef(({children:e,...t},r)=>{let n=p.useRef(!1),o=p.useContext(ta);r=Ut(r||o?.ref);let a=ne(o||{},{...t,ref:r,register(){n.current=!0,o&&o.register()}});return Hf(o,r),p.useEffect(()=>{n.current||(n.current=!0)},[]),m.createElement(ta.Provider,{value:a},e)});function h7({children:e}){let t=p.useMemo(()=>({register:()=>{}}),[]);return m.createElement(ta.Provider,{value:t},e)}function qf(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,a=p.useRef({isFocusWithin:!1}),{addGlobalListener:i,removeAllGlobalListeners:l}=Ol(),s=p.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=NE(s),c=p.useCallback(d=>{if(!d.currentTarget.contains(d.target))return;let f=ye(d.target),g=Xe(f);if(!a.current.isFocusWithin&&g===Oe(d.nativeEvent)){n&&n(d),o&&o(!0),a.current.isFocusWithin=!0,u(d);let y=d.currentTarget;i(f,"focus",b=>{if(a.current.isFocusWithin&&!xt(y,b.target)){let v=new f.defaultView.FocusEvent("blur",{relatedTarget:b.target});kE(v,y);let h=Kf(v);s(h)}},{capture:!0})}},[n,o,u,i,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:s}}}var Xc=!1,Ka=0;function g7(){Xc=!0,setTimeout(()=>{Xc=!1},50)}function m0(e){e.pointerType==="touch"&&g7()}function m7(){if(!(typeof document>"u"))return Ka===0&&(typeof PointerEvent<"u"&&document.addEventListener("pointerup",m0)),Ka++,()=>{Ka--,!(Ka>0)&&(typeof PointerEvent<"u"&&document.removeEventListener("pointerup",m0))}}function yo(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:o}=e,[a,i]=p.useState(!1),l=p.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;p.useEffect(m7,[]);let{addGlobalListener:s,removeAllGlobalListeners:u}=Ol(),{hoverProps:c,triggerHoverEnd:d}=p.useMemo(()=>{let f=(b,v)=>{if(l.pointerType=v,o||v==="touch"||l.isHovered||!b.currentTarget.contains(b.target))return;l.isHovered=!0;let h=b.currentTarget;l.target=h,s(ye(b.target),"pointerover",E=>{l.isHovered&&l.target&&!xt(l.target,E.target)&&g(E,E.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:h,pointerType:v}),r&&r(!0),i(!0)},g=(b,v)=>{let h=l.target;l.pointerType="",l.target=null,!(v==="touch"||!l.isHovered||!h)&&(l.isHovered=!1,u(),n&&n({type:"hoverend",target:h,pointerType:v}),r&&r(!1),i(!1))},y={};return typeof PointerEvent<"u"&&(y.onPointerEnter=b=>{Xc&&b.pointerType==="mouse"||f(b,b.pointerType)},y.onPointerLeave=b=>{!o&&b.currentTarget.contains(b.target)&&g(b,b.pointerType)}),{hoverProps:y,triggerHoverEnd:g}},[t,r,n,o,l,s,u]);return p.useEffect(()=>{o&&d({currentTarget:l.target},l.pointerType)},[o]),{hoverProps:c,isHovered:a}}function GE(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:o}=e,a=p.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),i=je(s=>{r&&y0(s,t)&&(o&&o(s),a.current.isPointerDown=!0)}),l=je(s=>{r&&r(s)});p.useEffect(()=>{let s=a.current;if(n)return;let u=t.current,c=ye(u);if(typeof PointerEvent<"u"){let d=f=>{s.isPointerDown&&y0(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 y0(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 y7=500;function b7(e){let{isDisabled:t,onLongPressStart:r,onLongPressEnd:n,onLongPress:o,threshold:a=y7,accessibilityDescription:i}=e,l=p.useRef(void 0),{addGlobalListener:s,removeGlobalListener:u}=Ol(),{pressProps:c}=va({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})),ye(f.target).activeElement!==f.target&&st(f.target),o&&o({...f,type:"longpress"}),l.current=void 0},a),f.pointerType==="touch")){let g=y=>{y.preventDefault()};s(f.target,"contextmenu",g,{once:!0}),s(window,"pointerup",()=>{setTimeout(()=>{u(f.target,"contextmenu",g)},30)},{once:!0})}},onPressEnd(f){l.current&&clearTimeout(l.current),n&&(f.pointerType==="mouse"||f.pointerType==="touch")&&n({...f,type:"longpressend"})}}),d=Lk(o&&!t?i:void 0);return{longPressProps:ne(c,d)}}var Bi=Symbol("default");function Er({values:e,children:t}){for(let[r,n]of e)t=m.createElement(r.Provider,{value:n},t);return t}function yt(e){let{className:t,style:r,children:n,defaultClassName:o,defaultChildren:a,defaultStyle:i,values:l}=e;return p.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 Yf(e,t){let r=p.useContext(e);if(t===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=t||Bi;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 Ze(e,t,r){let n=Yf(r,e.slot)||{},{ref:o,...a}=n,i=Ut(p.useMemo(()=>Mf(t,o),[t,o])),l=ne(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 WE(e=!0){let[t,r]=p.useState(e),n=p.useRef(!1),o=p.useCallback(a=>{n.current=!0,r(!!a)},[]);return ge(()=>{n.current||r(!1)},[]),[o,t]}var Xf=p.createContext({placement:"bottom"});p.forwardRef(function(e,t){[e,t]=Ze(e,t,Xf);let r=e.placement,n={position:"absolute",transform:r==="top"||r==="bottom"?"translateX(-50%)":"translateY(-50%)"};r!=null&&(n[r]="100%");let o=yt({...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=Ae(e);return m.createElement("div",{...a,...o,style:{...n,...o.style},ref:t,"data-placement":r})});function v7(e,t){let r=Ae(e,{labelable:!0}),{hoverProps:n}=yo({onHoverStart:()=>t?.open(!0),onHoverEnd:()=>t?.close()});return{tooltipProps:ne(r,n,{role:"tooltip"})}}function E7(e,t,r){let{isDisabled:n,trigger:o}=e,a=ze(),i=p.useRef(!1),l=p.useRef(!1),s=()=>{(i.current||l.current)&&t.open(l.current)},u=h=>{!i.current&&!l.current&&t.close(h)};p.useEffect(()=>{let h=E=>{r&&r.current&&E.key==="Escape"&&(E.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",h,!0),()=>{document.removeEventListener("keydown",h,!0)}},[r,t]);let c=()=>{o!=="focus"&&(oa()==="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)},g=()=>{na()&&(l.current=!0,s())},y=()=>{l.current=!1,i.current=!1,u(!0)},{hoverProps:b}=yo({isDisabled:n,onHoverStart:c,onHoverEnd:d}),{focusableProps:v}=Ea({isDisabled:n,onFocus:g,onBlur:y},r);return{triggerProps:{"aria-describedby":t.isOpen?a:void 0,...ne(v,b,{onPointerDown:f,onKeyDown:f}),tabIndex:void 0},tooltipProps:{id:a}}}var Qt={top:"top",bottom:"top",left:"left",right:"left"},ji={top:"bottom",bottom:"top",left:"right",right:"left"},S7={top:"left",left:"top"},Jc={top:"height",left:"width"},VE={width:"totalWidth",height:"totalHeight"},Ga={},wr=typeof document<"u"?window.visualViewport:null;function b0(e){let t=0,r=0,n=0,o=0,a=0,i=0,l={};var s;let u=((s=wr?.scale)!==null&&s!==void 0?s:1)>1;if(e.tagName==="BODY"){let y=document.documentElement;n=y.clientWidth,o=y.clientHeight;var c;t=(c=wr?.width)!==null&&c!==void 0?c:n;var d;r=(d=wr?.height)!==null&&d!==void 0?d:o,l.top=y.scrollTop||e.scrollTop,l.left=y.scrollLeft||e.scrollLeft,wr&&(a=wr.offsetTop,i=wr.offsetLeft)}else({width:t,height:r,top:a,left:i}=Gn(e,!1)),l.top=e.scrollTop,l.left=e.scrollLeft,n=t,o=r;if($E()&&(e.tagName==="BODY"||e.tagName==="HTML")&&u){l.top=0,l.left=0;var f;a=(f=wr?.pageTop)!==null&&f!==void 0?f:0;var g;i=(g=wr?.pageLeft)!==null&&g!==void 0?g:0}return{width:t,height:r,totalWidth:n,totalHeight:o,scroll:l,top:a,left:i}}function x7(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function v0(e,t,r,n,o,a,i){var l;let s=(l=o.scroll[e])!==null&&l!==void 0?l:0,u=n[Jc[e]],c=n.scroll[Qt[e]]+a,d=u+n.scroll[Qt[e]]-a,f=t-s+i[e]-n[Qt[e]],g=t-s+r+i[e]-n[Qt[e]];return f<c?c-f:g>d?Math.max(d-g,c-f):0}function w7(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 E0(e){if(Ga[e])return Ga[e];let[t,r]=e.split(" "),n=Qt[t]||"right",o=S7[n];Qt[r]||(r="center");let a=Jc[n],i=Jc[o];return Ga[e]={placement:t,crossPlacement:r,axis:n,crossAxis:o,size:a,crossSize:i},Ga[e]}function Nu(e,t,r,n,o,a,i,l,s,u){let{placement:c,crossPlacement:d,axis:f,crossAxis:g,size:y,crossSize:b}=n,v={};var h;v[g]=(h=e[g])!==null&&h!==void 0?h:0;var E,S,x,_;d==="center"?v[g]+=(((E=e[b])!==null&&E!==void 0?E:0)-((S=r[b])!==null&&S!==void 0?S:0))/2:d!==g&&(v[g]+=((x=e[b])!==null&&x!==void 0?x:0)-((_=r[b])!==null&&_!==void 0?_:0)),v[g]+=a;let $=e[g]-r[b]+s+u,C=e[g]+e[b]-s-u;if(v[g]=ea(v[g],$,C),c===f){let A=l?i[y]:t[VE[y]];v[ji[f]]=Math.floor(A-e[f]+o)}else v[f]=Math.floor(e[f]+e[y]+o);return v}function $7(e,t,r,n,o,a,i,l){let s=n?r.height:t[VE.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,g,y,b,v;let h=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)+((g=o.bottom)!==null&&g!==void 0?g:0)+a)):Math.max(0,c+i-(t.top+((y=t.scroll.top)!==null&&y!==void 0?y:0))-(((b=o.top)!==null&&b!==void 0?b:0)+((v=o.bottom)!==null&&v!==void 0?v:0)+a));return Math.min(t.height-a*2,h)}function S0(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[ji[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[ji[l]]-o)}function C7(e,t,r,n,o,a,i,l,s,u,c,d,f,g,y,b){let v=E0(e),{size:h,crossAxis:E,crossSize:S,placement:x,crossPlacement:_}=v,$=Nu(t,l,r,v,c,d,u,f,y,b),C=c,A=S0(l,u,t,o,a+c,v);if(i&&n[h]>A){let q=E0(`${ji[x]} ${_}`),X=Nu(t,l,r,q,c,d,u,f,y,b);S0(l,u,t,o,a+c,q)>A&&(v=q,$=X,C=c)}let D="bottom";v.axis==="top"?v.placement==="top"?D="top":v.placement==="bottom"&&(D="bottom"):v.crossAxis==="top"&&(v.crossPlacement==="top"?D="bottom":v.crossPlacement==="bottom"&&(D="top"));let F=v0(E,$[E],r[S],l,s,a,u);$[E]+=F;let T=$7($,l,u,f,o,a,r.height,D);g&&g<T&&(T=g),r.height=Math.min(r.height,T),$=Nu(t,l,r,v,C,d,u,f,y,b),F=v0(E,$[E],r[S],l,s,a,u),$[E]+=F;let N={},L=t[E]-$[E]-o[Qt[E]],R=L+.5*t[S],I=y/2+b;var k,M,H,U;let B=Qt[E]==="left"?((k=o.left)!==null&&k!==void 0?k:0)+((M=o.right)!==null&&M!==void 0?M:0):((H=o.top)!==null&&H!==void 0?H:0)+((U=o.bottom)!==null&&U!==void 0?U:0),O=r[S]-B-y/2-b,j=t[E]+y/2-($[E]+o[Qt[E]]),G=t[E]+t[S]-y/2-($[E]+o[Qt[E]]),K=ea(R,j,G);N[E]=ea(K,I,O),{placement:x,crossPlacement:_}=v,y?L=N[E]:_==="right"?L+=t[S]:_==="center"&&(L+=t[S]/2);let z=x==="left"||x==="top"?r[h]:0,W={x:x==="top"||x==="bottom"?L:z,y:x==="left"||x==="right"?L:z};return{position:$,maxHeight:T,arrowOffsetLeft:N.left,arrowOffsetTop:N.top,placement:x,triggerAnchorPoint:W}}function _7(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,g=n instanceof HTMLElement?T7(n):document.documentElement,y=g===document.documentElement,b=window.getComputedStyle(g).position,v=!!b&&b!=="static",h=y?Gn(r,!1):x0(r,g,!1);if(!y){let{marginTop:N,marginLeft:L}=window.getComputedStyle(r);h.top+=parseInt(N,10)||0,h.left+=parseInt(L,10)||0}let E=Gn(n,!0),S=w7(n);var x,_;E.width+=((x=S.left)!==null&&x!==void 0?x:0)+((_=S.right)!==null&&_!==void 0?_:0);var $,C;E.height+=(($=S.top)!==null&&$!==void 0?$:0)+((C=S.bottom)!==null&&C!==void 0?C:0);let A=x7(o),D=b0(l),F=b0(g),T=l.tagName==="BODY"?Gn(g,!1):x0(g,l,!1);return g.tagName==="HTML"&&l.tagName==="BODY"&&(F.scroll.top=0,F.scroll.left=0),C7(t,h,E,A,S,a,i,D,F,T,s,u,v,c,d,f)}function Jf(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 Gn(e,t){let{top:r,left:n,width:o,height:a}=Jf(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 x0(e,t,r){let n=window.getComputedStyle(e),o;if(n.position==="fixed")o=Jf(e,r);else{o=Gn(e,r);let a=Gn(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 T7(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!w0(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!w0(t);)t=t.parentElement;return t||document.documentElement}function w0(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 qE=new WeakMap;function A7(e){let{triggerRef:t,isOpen:r,onClose:n}=e;p.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||qE.get(t.current);l&&l()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[r,n,t])}var O7=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),R7=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function D7(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 O7.has(r.script)}let t=e.split("-")[0];return R7.has(t)}var P7=Symbol.for("react-aria.i18n.locale");function YE(){let e=typeof window<"u"&&window[P7]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:D7(e)?"rtl":"ltr"}}var Zc=YE(),Io=new Set;function $0(){Zc=YE();for(let e of Io)e(Zc)}function F7(){let e=Sn(),[t,r]=p.useState(Zc);return p.useEffect(()=>(Io.size===0&&window.addEventListener("languagechange",$0),Io.add(r),()=>{Io.delete(r),Io.size===0&&window.removeEventListener("languagechange",$0)}),[]),e?{locale:"en-US",direction:"ltr"}:t}var I7=m.createContext(null);function Ur(){let e=F7();return p.useContext(I7)||e}var Qc=function(e,t){return Qc=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])},Qc(e,t)};function Pl(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Qc(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var fe=function(){return fe=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},fe.apply(this,arguments)};function L7(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 Mu(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 Bu(e,t){var r=t&&t.cache?t.cache:U7,n=t&&t.serializer?t.serializer:j7,o=t&&t.strategy?t.strategy:M7;return o(e,{cache:r,serializer:n})}function k7(e){return e==null||typeof e=="number"||typeof e=="boolean"}function N7(e,t,r,n){var o=k7(n)?n:r(n),a=t.get(o);return typeof a>"u"&&(a=e.call(this,n),t.set(o,a)),a}function XE(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 JE(e,t,r,n,o){return r.bind(t,e,n,o)}function M7(e,t){var r=e.length===1?N7:XE;return JE(e,this,r,t.cache.create(),t.serializer)}function B7(e,t){return JE(e,this,XE,t.cache.create(),t.serializer)}var j7=function(){return JSON.stringify(arguments)},H7=(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})(),U7={create:function(){return new H7}},ju={variadic:B7},ce;(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"})(ce||(ce={}));var $e;(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"})($e||($e={}));var no;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(no||(no={}));function C0(e){return e.type===$e.literal}function z7(e){return e.type===$e.argument}function ZE(e){return e.type===$e.number}function QE(e){return e.type===$e.date}function eS(e){return e.type===$e.time}function tS(e){return e.type===$e.select}function rS(e){return e.type===$e.plural}function K7(e){return e.type===$e.pound}function nS(e){return e.type===$e.tag}function oS(e){return!!(e&&typeof e=="object"&&e.type===no.number)}function ed(e){return!!(e&&typeof e=="object"&&e.type===no.dateTime)}var aS=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,G7=/(?:[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 W7(e){var t={};return e.replace(G7,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 V7=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function q7(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(V7).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 Y7(e){return e.replace(/^(.*?)-/,"")}var _0=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,iS=/^(@+)?(\+|#+)?[rs]?$/g,X7=/(\*)(0+)|(#+)(0+)|(0+)/g,lS=/^(0+)$/;function T0(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(iS,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 sS(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 J7(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)),!lS.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function A0(e){var t={},r=sS(e);return r||t}function Z7(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=Y7(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=fe(fe(fe({},t),{notation:"scientific"}),o.options.reduce(function(s,u){return fe(fe({},s),A0(u))},{}));continue;case"engineering":t=fe(fe(fe({},t),{notation:"engineering"}),o.options.reduce(function(s,u){return fe(fe({},s),A0(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(X7,function(s,u,c,d,f,g){if(u)t.minimumIntegerDigits=c.length;else{if(d&&f)throw new Error("We currently do not support maximum integer digits");if(g)throw new Error("We currently do not support exact integer digits")}return""});continue}if(lS.test(o.stem)){t.minimumIntegerDigits=o.stem.length;continue}if(_0.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(_0,function(s,u,c,d,f,g){return c==="*"?t.minimumFractionDigits=u.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:f&&g?(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length+g.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var a=o.options[0];a==="w"?t=fe(fe({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=fe(fe({},t),T0(a)));continue}if(iS.test(o.stem)){t=fe(fe({},t),T0(o.stem));continue}var i=sS(o.stem);i&&(t=fe(fe({},t),i));var l=J7(o.stem);l&&(t=fe(fe({},t),l))}return t}var Wa={"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 Q7(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=eN(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 eN(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=Wa[n||""]||Wa[r||""]||Wa["".concat(r,"-001")]||Wa["001"];return o[0]}var Hu,tN=new RegExp("^".concat(aS.source,"*")),rN=new RegExp("".concat(aS.source,"*$"));function de(e,t){return{start:e,end:t}}var nN=!!String.prototype.startsWith&&"_a".startsWith("a",1),oN=!!String.fromCodePoint,aN=!!Object.fromEntries,iN=!!String.prototype.codePointAt,lN=!!String.prototype.trimStart,sN=!!String.prototype.trimEnd,uN=!!Number.isSafeInteger,cN=uN?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},td=!0;try{O0=cS("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),td=((Hu=O0.exec("a"))===null||Hu===void 0?void 0:Hu[0])==="a"}catch{td=!1}var O0,R0=nN?(function(e,t,r){return e.startsWith(t,r)}):(function(e,t,r){return e.slice(r,r+t.length)===t}),rd=oN?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}),D0=aN?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}),uS=iN?(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}}),dN=lN?(function(e){return e.trimStart()}):(function(e){return e.replace(tN,"")}),fN=sN?(function(e){return e.trimEnd()}):(function(e){return e.replace(rN,"")});function cS(e,t){return new RegExp(e,t)}var nd;td?(Uu=cS("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),nd=function(e,t){var r;Uu.lastIndex=t;var n=Uu.exec(e);return(r=n[1])!==null&&r!==void 0?r:""}):nd=function(e,t){for(var r=[];;){var n=uS(e,t);if(n===void 0||dS(n)||mN(n))break;r.push(n),t+=n>=65536?2:1}return rd.apply(void 0,r)};var Uu,pN=(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:$e.pound,location:de(l,this.clonePosition())})}else if(a===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(ce.UNMATCHED_CLOSING_TAG,de(this.clonePosition(),this.clonePosition()))}else if(a===60&&!this.ignoreTag&&od(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:$e.literal,value:"<".concat(o,"/>"),location:de(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()||!od(this.char()))return this.error(ce.INVALID_TAG,de(l,this.clonePosition()));var s=this.clonePosition(),u=this.parseTagName();return o!==u?this.error(ce.UNMATCHED_CLOSING_TAG,de(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:$e.tag,value:o,children:i,location:de(n,this.clonePosition())},err:null}:this.error(ce.INVALID_TAG,de(l,this.clonePosition())))}else return this.error(ce.UNCLOSED_TAG,de(n,this.clonePosition()))}else return this.error(ce.INVALID_TAG,de(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&gN(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=de(n,this.clonePosition());return{val:{type:$e.literal,value:o,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!hN(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 rd.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(),rd(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ce.EXPECT_ARGUMENT_CLOSING_BRACE,de(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(ce.EMPTY_ARGUMENT,de(n,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(ce.MALFORMED_ARGUMENT,de(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ce.EXPECT_ARGUMENT_CLOSING_BRACE,de(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:$e.argument,value:o,location:de(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ce.EXPECT_ARGUMENT_CLOSING_BRACE,de(n,this.clonePosition())):this.parseArgumentOptions(t,r,o,n);default:return this.error(ce.MALFORMED_ARGUMENT,de(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=nd(this.message,r),o=r+n.length;this.bumpTo(o);var a=this.clonePosition(),i=de(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(ce.EXPECT_ARGUMENT_TYPE,de(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=fN(d.val);if(f.length===0)return this.error(ce.EXPECT_ARGUMENT_STYLE,de(this.clonePosition(),this.clonePosition()));var g=de(c,this.clonePosition());u={style:f,styleLocation:g}}var y=this.tryParseArgumentClose(o);if(y.err)return y;var b=de(o,this.clonePosition());if(u&&R0(u?.style,"::",0)){var v=dN(u.style.slice(2));if(l==="number"){var d=this.parseNumberSkeletonFromString(v,u.styleLocation);return d.err?d:{val:{type:$e.number,value:n,location:b,style:d.val},err:null}}else{if(v.length===0)return this.error(ce.EXPECT_DATE_TIME_SKELETON,b);var h=v;this.locale&&(h=Q7(v,this.locale));var f={type:no.dateTime,pattern:h,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?W7(h):{}},E=l==="date"?$e.date:$e.time;return{val:{type:E,value:n,location:b,style:f},err:null}}}return{val:{type:l==="number"?$e.number:l==="date"?$e.date:$e.time,value:n,location:b,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(ce.EXPECT_SELECT_ARGUMENT_OPTIONS,de(S,fe({},S)));this.bumpSpace();var x=this.parseIdentifierIfPossible(),_=0;if(l!=="select"&&x.value==="offset"){if(!this.bumpIf(":"))return this.error(ce.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,de(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(ce.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ce.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),x=this.parseIdentifierIfPossible(),_=d.val}var $=this.tryParsePluralOrSelectOptions(t,l,r,x);if($.err)return $;var y=this.tryParseArgumentClose(o);if(y.err)return y;var C=de(o,this.clonePosition());return l==="select"?{val:{type:$e.select,value:n,options:D0($.val),location:C},err:null}:{val:{type:$e.plural,value:n,options:D0($.val),offset:_,pluralType:l==="plural"?"cardinal":"ordinal",location:C},err:null}}default:return this.error(ce.INVALID_ARGUMENT_TYPE,de(i,s))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(ce.EXPECT_ARGUMENT_CLOSING_BRACE,de(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(ce.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,de(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=q7(t)}catch{return this.error(ce.INVALID_NUMBER_SKELETON,r)}return{val:{type:no.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?Z7(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(ce.EXPECT_PLURAL_ARGUMENT_SELECTOR,ce.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;c=de(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(s.has(u))return this.error(r==="select"?ce.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ce.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(i=!0),this.bumpSpace();var g=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?ce.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ce.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,de(this.clonePosition(),this.clonePosition()));var y=this.parseMessage(t+1,r,n);if(y.err)return y;var b=this.tryParseArgumentClose(g);if(b.err)return b;l.push([u,{value:y.val,location:de(g,this.clonePosition())}]),s.add(u),this.bumpSpace(),a=this.parseIdentifierIfPossible(),u=a.value,c=a.location}return l.length===0?this.error(r==="select"?ce.EXPECT_SELECT_ARGUMENT_SELECTOR:ce.EXPECT_PLURAL_ARGUMENT_SELECTOR,de(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(ce.MISSING_OTHER_CLAUSE,de(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=de(o,this.clonePosition());return a?(i*=n,cN(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=uS(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(R0(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()&&dS(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 od(e){return e>=97&&e<=122||e>=65&&e<=90}function hN(e){return od(e)||e===47}function gN(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 dS(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function mN(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 ad(e){e.forEach(function(t){if(delete t.location,tS(t)||rS(t))for(var r in t.options)delete t.options[r].location,ad(t.options[r].value);else ZE(t)&&oS(t.style)||(QE(t)||eS(t))&&ed(t.style)?delete t.style.location:nS(t)&&ad(t.children)})}function yN(e,t){t===void 0&&(t={}),t=fe({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new pN(e,t).parse();if(r.err){var n=SyntaxError(ce[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t?.captureLocation||ad(r.val),r.val}var oo;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(oo||(oo={}));var Fl=(function(e){Pl(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),P0=(function(e){Pl(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('", "'),'"'),oo.INVALID_VALUE,a)||this}return t})(Fl),bN=(function(e){Pl(t,e);function t(r,n,o){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),oo.INVALID_VALUE,o)||this}return t})(Fl),vN=(function(e){Pl(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,'"'),oo.MISSING_VALUE,n)||this}return t})(Fl),rt;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(rt||(rt={}));function EN(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==rt.literal||r.type!==rt.literal?t.push(r):n.value+=r.value,t},[])}function SN(e){return typeof e=="function"}function pi(e,t,r,n,o,a,i){if(e.length===1&&C0(e[0]))return[{type:rt.literal,value:e[0].value}];for(var l=[],s=0,u=e;s<u.length;s++){var c=u[s];if(C0(c)){l.push({type:rt.literal,value:c.value});continue}if(K7(c)){typeof a=="number"&&l.push({type:rt.literal,value:r.getNumberFormat(t).format(a)});continue}var d=c.value;if(!(o&&d in o))throw new vN(d,i);var f=o[d];if(z7(c)){(!f||typeof f=="string"||typeof f=="number")&&(f=typeof f=="string"||typeof f=="number"?String(f):""),l.push({type:typeof f=="string"?rt.literal:rt.object,value:f});continue}if(QE(c)){var g=typeof c.style=="string"?n.date[c.style]:ed(c.style)?c.style.parsedOptions:void 0;l.push({type:rt.literal,value:r.getDateTimeFormat(t,g).format(f)});continue}if(eS(c)){var g=typeof c.style=="string"?n.time[c.style]:ed(c.style)?c.style.parsedOptions:n.time.medium;l.push({type:rt.literal,value:r.getDateTimeFormat(t,g).format(f)});continue}if(ZE(c)){var g=typeof c.style=="string"?n.number[c.style]:oS(c.style)?c.style.parsedOptions:void 0;g&&g.scale&&(f=f*(g.scale||1)),l.push({type:rt.literal,value:r.getNumberFormat(t,g).format(f)});continue}if(nS(c)){var y=c.children,b=c.value,v=o[b];if(!SN(v))throw new bN(b,"function",i);var h=pi(y,t,r,n,o,a),E=v(h.map(function(_){return _.value}));Array.isArray(E)||(E=[E]),l.push.apply(l,E.map(function(_){return{type:typeof _=="string"?rt.literal:rt.object,value:_}}))}if(tS(c)){var S=c.options[f]||c.options.other;if(!S)throw new P0(c.value,f,Object.keys(c.options),i);l.push.apply(l,pi(S.value,t,r,n,o));continue}if(rS(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
- `,oo.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 P0(c.value,f,Object.keys(c.options),i);l.push.apply(l,pi(S.value,t,r,n,o,f-(c.offset||0)));continue}}return EN(l)}function xN(e,t){return t?fe(fe(fe({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=fe(fe({},e[n]),t[n]||{}),r},{})):e}function wN(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=xN(e[n],t[n]),r},fe({},e)):e}function zu(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function $N(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Bu(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Mu([void 0],r,!1)))},{cache:zu(e.number),strategy:ju.variadic}),getDateTimeFormat:Bu(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Mu([void 0],r,!1)))},{cache:zu(e.dateTime),strategy:ju.variadic}),getPluralRules:Bu(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Mu([void 0],r,!1)))},{cache:zu(e.pluralRules),strategy:ju.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!==rt.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 pi(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=L7(i,["formatters"]);this.ast=e.__parse(t,fe(fe({},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=wN(e.formats,n),this.formatters=o&&o.formatters||$N(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=yN,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 CN=Symbol.for("react-aria.i18n.locale"),_N=Symbol.for("react-aria.i18n.strings"),Va,fS=class pS{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=TN(t,this.strings,this.defaultLocale),this.strings[t]=r),r}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let r=window[CN];if(Va===void 0){let o=window[_N];if(!o)return null;Va={};for(let a in o)Va[a]=new pS({[r]:o[a]},r)}let n=Va?.[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 TN(e,t,r="en-US"){if(t[e])return t[e];let n=AN(e);if(t[n])return t[n];for(let o in t)if(o.startsWith(n+"-"))return t[o];return t[r]}function AN(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}var F0=new Map,I0=new Map,ON=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=F0.get(o);a||(a=new Intl.PluralRules(this.locale,{type:r}),F0.set(o,a));let i=a.select(e);return n=t[i]||t.other,typeof n=="function"?n():n}number(e){let t=I0.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),I0.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}},L0=new WeakMap;function RN(e){let t=L0.get(e);return t||(t=new fS(e),L0.set(e,t)),t}function DN(e,t){return fS.getGlobalDictionaryForPackage(t)||RN(e)}function PN(e,t){let{locale:r}=Ur(),n=DN(e,t);return p.useMemo(()=>new ON(r,n),[r,n])}var Ku=new Map,id=!1;try{id=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}var Hi=!1;try{Hi=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}var hS={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}},FN=class{format(e){let t="";if(!id&&this.options.signDisplay!=null?t=LN(this.numberFormatter,this.options.signDisplay,e):t=this.numberFormatter.format(e),this.options.style==="unit"&&!Hi){var r;let{unit:n,unitDisplay:o="short",locale:a}=this.resolvedOptions();if(!n)return t;let i=(r=hS[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!id&&this.options.signDisplay!=null&&(e={...e,signDisplay:this.options.signDisplay}),!Hi&&this.options.style==="unit"&&(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=IN(e,t),this.options=t}};function IN(e,t={}){let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),t.style==="unit"&&!Hi){var n;let{unit:i,unitDisplay:l="short"}=t;if(!i)throw new Error('unit option must be provided with style: "unit"');if(!(!((n=hS[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(Ku.has(o))return Ku.get(o);let a=new Intl.NumberFormat(e,t);return Ku.set(o,a),a}function LN(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 kN(e={}){let{locale:t}=Ur();return p.useMemo(()=>new FN(t,e),[t,e])}var Gu=new Map;function NN(e){let{locale:t}=Ur(),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 Wr=typeof document<"u"?window.visualViewport:null;function Zf(e){let{direction:t}=Ur(),{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:g=!0,isOpen:y=!0,onClose:b,maxHeight:v,arrowBoundaryOffset:h=0}=e,[E,S]=p.useState(null),x=[g,l,o.current,n.current,a?.current,i.current,s,u,c,d,f,y,t,v,h,r],_=p.useRef(Wr?.scale);p.useEffect(()=>{y&&(_.current=Wr?.scale)},[y]);let $=p.useCallback(()=>{if(g===!1||!y||!o.current||!n.current||!c||Wr?.scale!==_.current)return;let N=null;if(i.current&&i.current.contains(document.activeElement)){var L;let B=(L=document.activeElement)===null||L===void 0?void 0:L.getBoundingClientRect(),O=i.current.getBoundingClientRect();var R;if(N={type:"top",offset:((R=B?.top)!==null&&R!==void 0?R:0)-O.top},N.offset>O.height/2){N.type="bottom";var I;N.offset=((I=B?.bottom)!==null&&I!==void 0?I:0)-O.bottom}}let k=o.current;if(!v&&o.current){var M;k.style.top="0px",k.style.bottom="";var H;k.style.maxHeight=((H=(M=window.visualViewport)===null||M===void 0?void 0:M.height)!==null&&H!==void 0?H:window.innerHeight)+"px"}let U=_7({placement:BN(l,t),overlayNode:o.current,targetNode:n.current,scrollNode:i.current||o.current,padding:s,shouldFlip:u,boundaryElement:c,offset:d,crossOffset:f,maxHeight:v,arrowSize:r??(a?.current?Jf(a.current,!0).width:0),arrowBoundaryOffset:h});if(U.position){if(k.style.top="",k.style.bottom="",k.style.left="",k.style.right="",Object.keys(U.position).forEach(B=>k.style[B]=U.position[B]+"px"),k.style.maxHeight=U.maxHeight!=null?U.maxHeight+"px":"",N&&document.activeElement&&i.current){let B=document.activeElement.getBoundingClientRect(),O=i.current.getBoundingClientRect(),j=B[N.type]-O[N.type];i.current.scrollTop+=j-N.offset}S(U)}},x);ge($,x),MN($),Ii({ref:o,onResize:$}),Ii({ref:n,onResize:$});let C=p.useRef(!1);ge(()=>{let N,L=()=>{C.current=!0,clearTimeout(N),N=setTimeout(()=>{C.current=!1},500),$()},R=()=>{C.current&&L()};return Wr?.addEventListener("resize",L),Wr?.addEventListener("scroll",R),()=>{Wr?.removeEventListener("resize",L),Wr?.removeEventListener("scroll",R)}},[$]);let A=p.useCallback(()=>{C.current||b?.()},[b,C]);A7({triggerRef:n,isOpen:y,onClose:b&&A});var D,F,T;return{overlayProps:{style:{position:E?"absolute":"fixed",top:E?void 0:0,left:E?void 0:0,zIndex:1e5,...E?.position,maxHeight:(D=E?.maxHeight)!==null&&D!==void 0?D:"100vh"}},placement:(F=E?.placement)!==null&&F!==void 0?F:null,triggerAnchorPoint:(T=E?.triggerAnchorPoint)!==null&&T!==void 0?T:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:E?.arrowOffsetLeft,top:E?.arrowOffsetTop}},updatePosition:$}}function MN(e){ge(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function BN(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}var k0=m.createContext(null),ld="react-aria-focus-scope-restore",ve=null;function Qf(e){let{children:t,contain:r,restoreFocus:n,autoFocus:o}=e,a=p.useRef(null),i=p.useRef(null),l=p.useRef([]),{parentNode:s}=p.useContext(k0)||{},u=p.useMemo(()=>new ud({scopeRef:l}),[l]);ge(()=>{let f=s||Re.root;if(Re.getTreeNode(f.scopeRef)&&ve&&!Ui(ve,f.scopeRef)){let g=Re.getTreeNode(ve);g&&(f=g)}f.addChild(u),Re.addNode(u)},[u,s]),ge(()=>{let f=Re.getTreeNode(l);f&&(f.contain=!!r)},[r]),ge(()=>{var f;let g=(f=a.current)===null||f===void 0?void 0:f.nextSibling,y=[],b=v=>v.stopPropagation();for(;g&&g!==i.current;)y.push(g),g.addEventListener(ld,b),g=g.nextSibling;return l.current=y,()=>{for(let v of y)v.removeEventListener(ld,b)}},[t]),GN(l,n,r),UN(l,r),WN(l,n,r),KN(l,o),p.useEffect(()=>{let f=Xe(ye(l.current?l.current[0]:void 0)),g=null;if(Tt(f,l.current)){for(let y of Re.traverse())y.scopeRef&&Tt(f,y.scopeRef.current)&&(g=y);g===Re.getTreeNode(l)&&(ve=g.scopeRef)}},[l]),ge(()=>()=>{var f,g,y;let b=(y=(g=Re.getTreeNode(l))===null||g===void 0||(f=g.parent)===null||f===void 0?void 0:f.scopeRef)!==null&&y!==void 0?y:null;(l===ve||Ui(l,ve))&&(!b||Re.getTreeNode(b))&&(ve=b),Re.removeTreeNode(l)},[l]);let c=p.useMemo(()=>jN(l),[]),d=p.useMemo(()=>({focusManager:c,parentNode:u}),[u,c]);return m.createElement(k0.Provider,{value:d},m.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,m.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:i}))}function jN(e){return{focusNext(t={}){let r=e.current,{from:n,tabbable:o,wrap:a,accept:i}=t;var l;let s=n||Xe(ye((l=r[0])!==null&&l!==void 0?l:void 0)),u=r[0].previousElementSibling,c=tn(r),d=er(c,{tabbable:o,accept:i},r);d.currentNode=Tt(s,r)?s:u;let f=d.nextNode();return!f&&a&&(d.currentNode=u,f=d.nextNode()),f&&mr(f,!0),f},focusPrevious(t={}){let r=e.current,{from:n,tabbable:o,wrap:a,accept:i}=t;var l;let s=n||Xe(ye((l=r[0])!==null&&l!==void 0?l:void 0)),u=r[r.length-1].nextElementSibling,c=tn(r),d=er(c,{tabbable:o,accept:i},r);d.currentNode=Tt(s,r)?s:u;let f=d.previousNode();return!f&&a&&(d.currentNode=u,f=d.previousNode()),f&&mr(f,!0),f},focusFirst(t={}){let r=e.current,{tabbable:n,accept:o}=t,a=tn(r),i=er(a,{tabbable:n,accept:o},r);i.currentNode=r[0].previousElementSibling;let l=i.nextNode();return l&&mr(l,!0),l},focusLast(t={}){let r=e.current,{tabbable:n,accept:o}=t,a=tn(r),i=er(a,{tabbable:n,accept:o},r);i.currentNode=r[r.length-1].nextElementSibling;let l=i.previousNode();return l&&mr(l,!0),l}}}function tn(e){return e[0].parentElement}function Lo(e){let t=Re.getTreeNode(ve);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function HN(e){if(e.checked)return!0;let t=[];if(!e.form)t=[...ye(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 UN(e,t){let r=p.useRef(void 0),n=p.useRef(void 0);ge(()=>{let o=e.current;if(!t){n.current&&(cancelAnimationFrame(n.current),n.current=void 0);return}let a=ye(o?o[0]:void 0),i=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!Lo(e)||u.isComposing)return;let c=Xe(a),d=e.current;if(!d||!Tt(c,d))return;let f=tn(d),g=er(f,{tabbable:!0},d);if(!c)return;g.currentNode=c;let y=u.shiftKey?g.previousNode():g.nextNode();y||(g.currentNode=u.shiftKey?d[d.length-1].nextElementSibling:d[0].previousElementSibling,y=u.shiftKey?g.previousNode():g.nextNode()),u.preventDefault(),y&&mr(y,!0)},l=u=>{(!ve||Ui(ve,e))&&Tt(Oe(u),e.current)?(ve=e,r.current=Oe(u)):Lo(e)&&!Fr(Oe(u),e)?r.current?r.current.focus():ve&&ve.current&&sd(ve.current):Lo(e)&&(r.current=Oe(u))},s=u=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{let c=oa(),d=(c==="virtual"||c===null)&&jf()&&CE(),f=Xe(a);if(!d&&f&&Lo(e)&&!Fr(f,e)){ve=e;let y=Oe(u);if(y&&y.isConnected){var g;r.current=y,(g=r.current)===null||g===void 0||g.focus()}else ve.current&&sd(ve.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]),ge(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n])}function gS(e){return Fr(e)}function Tt(e,t){return!e||!t?!1:t.some(r=>r.contains(e))}function Fr(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of Re.traverse(Re.getTreeNode(t)))if(r&&Tt(e,r.current))return!0;return!1}function zN(e){return Fr(e,ve)}function Ui(e,t){var r;let n=(r=Re.getTreeNode(t))===null||r===void 0?void 0:r.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function mr(e,t=!1){if(e!=null&&!t)try{Mr(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function mS(e,t=!0){let r=e[0].previousElementSibling,n=tn(e),o=er(n,{tabbable:t},e);o.currentNode=r;let a=o.nextNode();return t&&!a&&(n=tn(e),o=er(n,{tabbable:!1},e),o.currentNode=r,a=o.nextNode()),a}function sd(e,t=!0){mr(mS(e,t))}function KN(e,t){let r=m.useRef(t);p.useEffect(()=>{if(r.current){ve=e;let n=ye(e.current?e.current[0]:void 0);!Tt(Xe(n),ve.current)&&e.current&&sd(e.current)}r.current=!1},[e])}function GN(e,t,r){ge(()=>{if(t||r)return;let n=e.current,o=ye(n?n[0]:void 0),a=i=>{let l=Oe(i);Tt(l,e.current)?ve=e:gS(l)||(ve=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 N0(e){let t=Re.getTreeNode(ve);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function WN(e,t,r){let n=p.useRef(typeof document<"u"?Xe(ye(e.current?e.current[0]:void 0)):null);ge(()=>{let o=e.current,a=ye(o?o[0]:void 0);if(!t||r)return;let i=()=>{(!ve||Ui(ve,e))&&Tt(Xe(a),e.current)&&(ve=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]),ge(()=>{let o=ye(e.current?e.current[0]:void 0);if(!t)return;let a=i=>{if(i.key!=="Tab"||i.altKey||i.ctrlKey||i.metaKey||!Lo(e)||i.isComposing)return;let l=o.activeElement;if(!Fr(l,e)||!N0(e))return;let s=Re.getTreeNode(e);if(!s)return;let u=s.nodeToRestore,c=er(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||!Fr(d,e))&&u){c.currentNode=u;do d=i.shiftKey?c.previousNode():c.nextNode();while(Fr(d,e));i.preventDefault(),i.stopPropagation(),d?mr(d,!0):gS(u)?mr(u,!0):l.blur()}};return r||o.addEventListener("keydown",a,!0),()=>{r||o.removeEventListener("keydown",a,!0)}},[e,t,r]),ge(()=>{let o=ye(e.current?e.current[0]:void 0);if(!t)return;let a=Re.getTreeNode(e);if(a){var i;return a.nodeToRestore=(i=n.current)!==null&&i!==void 0?i:void 0,()=>{let l=Re.getTreeNode(e);if(!l)return;let s=l.nodeToRestore,u=Xe(o);if(t&&s&&(u&&Fr(u,e)||u===o.body&&N0(e))){let c=Re.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let d=c.getTreeNode(e);for(;d;){if(d.nodeToRestore&&d.nodeToRestore.isConnected){M0(d.nodeToRestore);return}d=d.parent}for(d=c.getTreeNode(e);d;){if(d.scopeRef&&d.scopeRef.current&&Re.getTreeNode(d.scopeRef)){let f=mS(d.scopeRef.current,!0);M0(f);return}d=d.parent}}})}}}},[e,t])}function M0(e){e.dispatchEvent(new CustomEvent(ld,{bubbles:!0,cancelable:!0}))&&mr(e)}function er(e,t,r){let n=t?.tabbable?Kk:IE,o=e?.nodeType===Node.ELEMENT_NODE?e:null,a=ye(o),i=ck(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"&&(!HN(l)||i.currentNode.tagName==="INPUT"&&i.currentNode.type==="radio"&&i.currentNode.name===l.name)?NodeFilter.FILTER_REJECT:n(l)&&(!r||Tt(l,r))&&(!t?.accept||t.accept(l))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(i.currentNode=t.from),i}var VN=class yS{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 ud({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&&Tt(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 yS;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 ud({scopeRef:null}),this.fastMap.set(null,this.root)}},ud=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}},Re=new VN;function Il(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,o=p.useRef({isFocused:!1,isFocusVisible:t||na()}),[a,i]=p.useState(!1),[l,s]=p.useState(()=>o.current.isFocused&&o.current.isFocusVisible),u=p.useCallback(()=>s(o.current.isFocused&&o.current.isFocusVisible),[]),c=p.useCallback(g=>{o.current.isFocused=g,i(g),u()},[u]);s7(g=>{o.current.isFocusVisible=g,u()},[],{isTextInput:r});let{focusProps:d}=Vf({isDisabled:n,onFocusChange:c}),{focusWithinProps:f}=qf({isDisabled:!n,onFocusWithinChange:c});return{isFocused:a,isFocusVisible:l,focusProps:n?f:d}}function qN(e,t){let[r,n]=p.useState(!1);return ge(()=>{if(e?.current){let o=()=>{if(e.current){let i=er(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 bS(e){let t=XN(ye(e));t!==e&&(t&&YN(t,e),e&&vS(e,t))}function YN(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function vS(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function XN(e){let t=Xe(e),r=t?.getAttribute("aria-activedescendant");return r&&e.getElementById(r)||t}var Kt=[];function ep(e,t){let{onClose:r,shouldCloseOnBlur:n,isOpen:o,isDismissable:a=!1,isKeyboardDismissDisabled:i=!1,shouldCloseOnInteractOutside:l}=e;p.useEffect(()=>{if(o&&!Kt.includes(t))return Kt.push(t),()=>{let y=Kt.indexOf(t);y>=0&&Kt.splice(y,1)}},[o,t]);let s=()=>{Kt[Kt.length-1]===t&&r&&r()},u=y=>{(!l||l(y.target))&&Kt[Kt.length-1]===t&&(y.stopPropagation(),y.preventDefault())},c=y=>{(!l||l(y.target))&&(Kt[Kt.length-1]===t&&(y.stopPropagation(),y.preventDefault()),s())},d=y=>{y.key==="Escape"&&!i&&!y.nativeEvent.isComposing&&(y.stopPropagation(),y.preventDefault(),s())};GE({ref:t,onInteractOutside:a&&o?c:void 0,onInteractOutsideStart:u});let{focusWithinProps:f}=qf({isDisabled:!n,onBlurWithin:y=>{!y.relatedTarget||zN(y.relatedTarget)||(!l||l(y.relatedTarget))&&r?.()}}),g=y=>{y.target===y.currentTarget&&y.preventDefault()};return{overlayProps:{onKeyDown:d,...f},underlayProps:{onPointerDown:g}}}function JN(e,t,r){let{isOpen:n}=t;p.useEffect(()=>{r&&r.current&&qE.set(r.current,t.close)});let o,a=ze();return{triggerProps:{"aria-haspopup":o,"aria-expanded":n,"aria-controls":n?a:void 0,onPress:t.toggle},overlayProps:{id:a}}}var Bo=typeof document<"u"&&window.visualViewport,qa=0,Wu;function ES(e={}){let{isDisabled:t}=e;ge(()=>{if(!t)return qa++,qa===1&&(Tl()?Wu=QN():Wu=ZN()),()=>{qa--,qa===0&&Wu()}},[t])}function ZN(){let e=window.innerWidth-document.documentElement.clientWidth;return ba(e>0&&("scrollbarGutter"in document.documentElement.style?Vu(document.documentElement,"scrollbarGutter","stable"):Vu(document.documentElement,"paddingRight",`${e}px`)),Vu(document.documentElement,"overflow","hidden"))}function QN(){let e,t=!1,r=s=>{let u=s.target;e=ro(u)?u:AE(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&&Fu(c))c.focus({preventScroll:!0}),B0(c,Fu(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&&Fu(document.activeElement);i.call(this,{...s,preventScroll:!0}),(!s||!s.preventScroll)&&B0(this,u)};let l=ba(qu(document,"touchstart",r,{passive:!1,capture:!0}),qu(document,"touchmove",o,{passive:!1,capture:!0}),qu(document,"blur",a,!0));return()=>{l(),n.remove(),HTMLElement.prototype.focus=i}}function Vu(e,t,r){let n=e.style[t];return e.style[t]=r,()=>{e.style[t]=n}}function qu(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function B0(e,t){t||!Bo?j0(e):Bo.addEventListener("resize",()=>j0(e),{once:!0})}function j0(e){let t=document.scrollingElement||document.documentElement,r=e;for(;r&&r!==t;){let n=AE(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;Bo&&(i=Math.min(i,Bo.offsetTop+Bo.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 e9=p.createContext({});function SS(){var e;return(e=p.useContext(e9))!==null&&e!==void 0?e:{}}var cd=m.createContext(null);function t9(e){let{children:t}=e,r=p.useContext(cd),[n,o]=p.useState(0),a=p.useMemo(()=>({parent:r,modalCount:n,addModal(){o(i=>i+1),r&&r.addModal()},removeModal(){o(i=>i-1),r&&r.removeModal()}}),[r,n]);return m.createElement(cd.Provider,{value:a},t)}function r9(){let e=p.useContext(cd);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function n9(e){let{modalProviderProps:t}=r9();return m.createElement("div",{"data-overlay-container":!0,...e,...t})}function o9(e){return m.createElement(t9,null,m.createElement(n9,e))}function a9(e){let t=Sn(),{portalContainer:r=t?null:document.body,...n}=e,{getContainer:o}=SS();if(!e.portalContainer&&o&&(r=o()),m.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=m.createElement(o9,n);return T1.createPortal(a,r)}var xS={};xS={dismiss:"تجاهل"};var wS={};wS={dismiss:"Отхвърляне"};var $S={};$S={dismiss:"Odstranit"};var CS={};CS={dismiss:"Luk"};var _S={};_S={dismiss:"Schließen"};var TS={};TS={dismiss:"Απόρριψη"};var AS={};AS={dismiss:"Dismiss"};var OS={};OS={dismiss:"Descartar"};var RS={};RS={dismiss:"Lõpeta"};var DS={};DS={dismiss:"Hylkää"};var PS={};PS={dismiss:"Rejeter"};var FS={};FS={dismiss:"התעלם"};var IS={};IS={dismiss:"Odbaci"};var LS={};LS={dismiss:"Elutasítás"};var kS={};kS={dismiss:"Ignora"};var NS={};NS={dismiss:"閉じる"};var MS={};MS={dismiss:"무시"};var BS={};BS={dismiss:"Atmesti"};var jS={};jS={dismiss:"Nerādīt"};var HS={};HS={dismiss:"Lukk"};var US={};US={dismiss:"Negeren"};var zS={};zS={dismiss:"Zignoruj"};var KS={};KS={dismiss:"Descartar"};var GS={};GS={dismiss:"Dispensar"};var WS={};WS={dismiss:"Revocare"};var VS={};VS={dismiss:"Пропустить"};var qS={};qS={dismiss:"Zrušiť"};var YS={};YS={dismiss:"Opusti"};var XS={};XS={dismiss:"Odbaci"};var JS={};JS={dismiss:"Avvisa"};var ZS={};ZS={dismiss:"Kapat"};var QS={};QS={dismiss:"Скасувати"};var ex={};ex={dismiss:"取消"};var tx={};tx={dismiss:"關閉"};var rx={};rx={"ar-AE":xS,"bg-BG":wS,"cs-CZ":$S,"da-DK":CS,"de-DE":_S,"el-GR":TS,"en-US":AS,"es-ES":OS,"et-EE":RS,"fi-FI":DS,"fr-FR":PS,"he-IL":FS,"hr-HR":IS,"hu-HU":LS,"it-IT":kS,"ja-JP":NS,"ko-KR":MS,"lt-LT":BS,"lv-LV":jS,"nb-NO":HS,"nl-NL":US,"pl-PL":zS,"pt-BR":KS,"pt-PT":GS,"ro-RO":WS,"ru-RU":VS,"sk-SK":qS,"sl-SI":YS,"sr-SP":XS,"sv-SE":JS,"tr-TR":ZS,"uk-UA":QS,"zh-CN":ex,"zh-TW":tx};var H0={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 i9(e={}){let{style:t,isFocusable:r}=e,[n,o]=p.useState(!1),{focusWithinProps:a}=qf({isDisabled:!r,onFocusWithinChange:l=>o(l)}),i=p.useMemo(()=>n?t:t?{...H0,...t}:H0,[n]);return{visuallyHiddenProps:{...a,style:i}}}function l9(e){let{children:t,elementType:r="div",isFocusable:n,style:o,...a}=e,{visuallyHiddenProps:i}=i9(e);return m.createElement(r,ne(a,i),t)}function s9(e){return e&&e.__esModule?e.default:e}function U0(e){let{onDismiss:t,...r}=e,n=PN(s9(rx),"@react-aria/overlays"),o=Rl(r,n.format("dismiss")),a=()=>{t&&t()};return m.createElement(l9,null,m.createElement("button",{...o,tabIndex:-1,onClick:a,style:{width:1,height:1}}))}var u9=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,_o=new WeakMap,lt=[];function Ll(e,t){let r=Ct(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&&u9,l=new Set(e),s=new Set,u=b=>i&&b instanceof r.HTMLElement?b.inert:b.getAttribute("aria-hidden")==="true",c=(b,v)=>{i&&b instanceof r.HTMLElement?b.inert=v:v?b.setAttribute("aria-hidden","true"):(b.removeAttribute("aria-hidden"),b instanceof r.HTMLElement&&(b.inert=!1))},d=b=>{for(let S of b.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))l.add(S);let v=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},h=document.createTreeWalker(b,NodeFilter.SHOW_ELEMENT,{acceptNode:v}),E=v(b);if(E===NodeFilter.FILTER_ACCEPT&&f(b),E!==NodeFilter.FILTER_REJECT){let S=h.nextNode();for(;S!=null;)f(S),S=h.nextNode()}},f=b=>{var v;let h=(v=_o.get(b))!==null&&v!==void 0?v:0;u(b)&&h===0||(h===0&&c(b,!0),s.add(b),_o.set(b,h+1))};lt.length&&lt[lt.length-1].disconnect(),d(a);let g=new MutationObserver(b=>{for(let v of b)if(v.type==="childList"&&![...l,...s].some(h=>h.contains(v.target)))for(let h of v.addedNodes)(h instanceof HTMLElement||h instanceof SVGElement)&&(h.dataset.liveAnnouncer==="true"||h.dataset.reactAriaTopLayer==="true")?l.add(h):h instanceof Element&&d(h)});g.observe(a,{childList:!0,subtree:!0});let y={visibleNodes:l,hiddenNodes:s,observe(){g.observe(a,{childList:!0,subtree:!0})},disconnect(){g.disconnect()}};return lt.push(y),()=>{g.disconnect();for(let b of s){let v=_o.get(b);v!=null&&(v===1?(c(b,!1),_o.delete(b)):_o.set(b,v-1))}y===lt[lt.length-1]?(lt.pop(),lt.length&&lt[lt.length-1].observe()):lt.splice(lt.indexOf(y),1)}}function c9(e){let t=lt[lt.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function d9(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}=ep({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!a||u,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:l},o??n),{overlayProps:f,arrowProps:g,placement:y,triggerAnchorPoint:b}=Zf({...s,targetRef:r,overlayRef:n,isOpen:t.isOpen,onClose:a&&!u?t.close:null});return ES({isDisabled:a||!t.isOpen}),p.useEffect(()=>{if(t.isOpen&&n.current){var v,h;return a?c9((v=o?.current)!==null&&v!==void 0?v:n.current):Ll([(h=o?.current)!==null&&h!==void 0?h:n.current],{shouldUseInert:!0})}},[a,t.isOpen,n,o]),{popoverProps:ne(c,f),arrowProps:g,underlayProps:d,placement:y,triggerAnchorPoint:b}}var nx=m.createContext(null);function zi(e){let t=Sn(),{portalContainer:r=t?null:document.body,isExiting:n}=e,[o,a]=p.useState(!1),i=p.useMemo(()=>({contain:o,setContain:a}),[o,a]),{getContainer:l}=SS();if(!e.portalContainer&&l&&(r=l()),!r)return null;let s=e.children;return e.disableFocusManagement||(s=m.createElement(Qf,{restoreFocus:!0,contain:(e.shouldContainFocus||o)&&!n},s)),s=m.createElement(nx.Provider,{value:i},m.createElement(h7,null,s)),T1.createPortal(s,r)}function ox(){let e=p.useContext(nx),t=e?.setContain;ge(()=>{t?.(!0)},[t])}function f9(e,t,r){let{overlayProps:n,underlayProps:o}=ep({...e,isOpen:t.isOpen,onClose:t.close},r);return ES({isDisabled:!t.isOpen}),ox(),p.useEffect(()=>{if(t.isOpen&&r.current)return Ll([r.current],{shouldUseInert:!0})},[t.isOpen,r]),{modalProps:ne(n),underlayProps:o}}function Sa(e){let[t,r]=Dl(e.isOpen,e.defaultOpen||!1,e.onOpenChange),n=p.useCallback(()=>{r(!0)},[r]),o=p.useCallback(()=>{r(!1)},[r]),a=p.useCallback(()=>{r(!t)},[r,t]);return{isOpen:t,setOpen:r,open:n,close:o,toggle:a}}var p9=1500,z0=500,Vr={},h9=0,To=!1,ur=null,qr=null;function ax(e={}){let{delay:t=p9,closeDelay:r=z0}=e,{isOpen:n,open:o,close:a}=Sa(e),i=p.useMemo(()=>`${++h9}`,[]),l=p.useRef(null),s=p.useRef(a),u=()=>{Vr[i]=f},c=()=>{for(let y in Vr)y!==i&&(Vr[y](!0),delete Vr[y])},d=()=>{l.current&&clearTimeout(l.current),l.current=null,c(),u(),To=!0,o(),ur&&(clearTimeout(ur),ur=null),qr&&(clearTimeout(qr),qr=null)},f=y=>{y||r<=0?(l.current&&clearTimeout(l.current),l.current=null,s.current()):l.current||(l.current=setTimeout(()=>{l.current=null,s.current()},r)),ur&&(clearTimeout(ur),ur=null),To&&(qr&&clearTimeout(qr),qr=setTimeout(()=>{delete Vr[i],qr=null,To=!1},Math.max(z0,r)))},g=()=>{c(),u(),!n&&!ur&&!To?ur=setTimeout(()=>{ur=null,To=!0,d()},t):n||d()};return p.useEffect(()=>{s.current=a},[a]),p.useEffect(()=>()=>{l.current&&clearTimeout(l.current),Vr[i]&&delete Vr[i]},[i]),{isOpen:n,open:y=>{!y&&t>0&&!l.current?g():d()},close:f}}var tp=p.createContext(null),ix=p.createContext(null);function g9(e){let t=ax(e),r=p.useRef(null),{triggerProps:n,tooltipProps:o}=E7(e,t,r);return m.createElement(Er,{values:[[tp,t],[ix,{...o,triggerRef:r}]]},m.createElement(c7,{...n,ref:r},e.children))}var m9=p.forwardRef(function({UNSTABLE_portalContainer:e,...t},r){[t,r]=Ze(t,r,ix);let n=p.useContext(tp),o=ax(t),a=t.isOpen!=null||t.defaultOpen!=null||!n?o:n,i=PE(r,a.isOpen)||t.isExiting||!1;return!a.isOpen&&!i?null:m.createElement(a9,{portalContainer:e},m.createElement(y9,{...t,tooltipRef:r,isExiting:i}))});function y9(e){let t=p.useContext(tp),r=p.useRef(null),{overlayProps:n,arrowProps:o,placement:a,triggerAnchorPoint:i}=Zf({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=DE(e.tooltipRef,!!a)||e.isEntering||!1,s=yt({...e,defaultClassName:"react-aria-Tooltip",values:{placement:a,isEntering:l,isExiting:e.isExiting,state:t}});e=ne(e,n);let{tooltipProps:u}=v7(e,t),c=Ae(e,{global:!0});return m.createElement("div",{...ne(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},m.createElement(Xf.Provider,{value:{...o,placement:a,ref:r}},s.children))}var b9=ot(mn(),1),rp=(0,b9.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("-"," "));P.div({width:500,height:500,paddingTop:100,overflowY:"scroll",background:"#eee",position:"relative"});var v9=p.forwardRef((e,t)=>m.createElement("button",{...e,ref:t,style:{width:120,height:50,margin:10}}));v9.displayName="Trigger";var lx=({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=rp(t),g=m.Children.only(o);i!==void 0&&ZL("The `startOpen` prop is deprecated. Please use `defaultVisible` instead.");let[y,b]=p.useState(a??i??!1),v=p.useCallback(h=>{b(h),c?.(h)},[c]);return m.createElement(g9,{delay:l,closeDelay:s,isOpen:u??y,onOpenChange:v,trigger:e?"focus":void 0,...d},m.createElement(d7,null,m.cloneElement(g,{"aria-describedby":null})),m.createElement(m9,{"data-testid":"tooltip",placement:f,offset:r,onOpenChange:v,style:{outline:"none"},...d},n))},sx=({children:e,disableAllTooltips:t,shortcut:r,tooltip:n})=>{let o=p.useMemo(()=>{let a=document?.body?.getAttribute("data-shortcuts-enabled")!=="false";if(!(!n&&(!r||!a)))return[n,r&&a&&`[${p6(r)}]`].filter(Boolean).join(" ")},[r,n]);return o?m.createElement(lx,{placement:"top",tooltip:m.createElement(vE,{note:o}),visible:t?!1:void 0},e):m.createElement(m.Fragment,null,e)};sx.displayName="InteractiveTooltipWrapper";function E9(e=""){let t=e.toLowerCase().trim().replace(/\s+/g,"-");return{ariaDescriptionAttrs:{"aria-describedby":e?t:void 0},AriaDescription:()=>e?m.createElement("span",{id:t,hidden:!0},e):null}}var Qe=p.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:g=void 0,disableAllTooltips:y=!1,...b},v)=>{let h=t?GL:e,E;!l&&(c===void 0||c==="")&&(E="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: ${b.children}.`)),s!==void 0&&(E="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}=E9(d),_=p.useMemo(()=>g?h6(g):void 0,[g]),[$,C]=p.useState(!1),A=D=>{u&&u(D),r!=="none"&&C(!0)};return p.useEffect(()=>{let D=setTimeout(()=>{$&&C(!1)},1e3);return()=>clearTimeout(D)},[$]),m.createElement(m.Fragment,null,m.createElement(sx,{disableAllTooltips:y,shortcut:g,tooltip:f||(c!==!1?c:void 0)},m.createElement(S9,{"data-deprecated":E,as:h,ref:v,variant:o,size:n,padding:a,$disabled:i||l,"aria-disabled":i||l?"true":void 0,readOnly:l,active:s,animating:$,animation:r,onClick:i||l?void 0:A,"aria-label":!l&&c!==!1?c:void 0,"aria-keyshortcuts":l?void 0:_,...l?{}:S,...b})),m.createElement(x,null))});Qe.displayName="Button";var S9=P("button",{shouldForwardProp:e=>pl(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:qe(.18,e.color.secondary):t==="outline"?e.button.background:t==="ghost"&&a?yr(.93,e.barSelectedColor):"transparent",color:t==="solid"?e.color.lightest:t==="outline"?e.input.color:t==="ghost"&&a?e.base==="light"?qe(.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"?oi(.1,e.color.secondary):qe(.3,e.color.secondary)),t==="outline"&&(u=e.button.background),t==="ghost"?yr(.86,e.color.secondary):e.base==="light"?qe(.02,u):oi(.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"?qe(.02,u):oi(.03,u)})()},"&:focus-visible":{outline:`2px solid ${sn(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`:""}})),Ir=p.forwardRef((e,t)=>(Wc("`IconButton` is deprecated and will be removed in Storybook 11, use `Button` instead."),m.createElement(Qe,{ref:t,...e,"data-deprecated":"IconButton"})));Ir.displayName="IconButton";var np=p.forwardRef(({pressed:e,...t},r)=>m.createElement(x9,{role:"switch","aria-checked":e,ref:r,pressed:e,...t}));np.displayName="ToggleButton";var x9=P(Qe)(({theme:e,variant:t="outline",pressed:r})=>({...r?{...t==="solid"?{background:e.base==="lighten"?qe(.1,e.color.secondary):qe(.2,e.color.secondary)}:{},...t==="outline"?{background:yr(.94,e.barSelectedColor),boxShadow:`${e.barSelectedColor} 0 0 0 1px inset`,color:e.barSelectedColor}:{},...t==="ghost"?{background:yr(.93,e.barSelectedColor),color:e.base==="light"?qe(.1,e.color.secondary):e.color.secondary}:{}}:{}})),ux=P.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"?qe(.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:yr(.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"}}}),w9=P(ux)(({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}})),$9=P(Qe)(({size:e})=>({gap:e==="small"?6:8,"&:focus-visible":{outlineOffset:-2}})),C9=P(np)({"&:focus-visible":{outlineOffset:-2}}),cx=p.forwardRef(function({padding:e="small",size:t="medium",variant:r="ghost",...n},o){return m.createElement($9,{...n,variant:r,padding:e,size:t,ref:o})}),_9=p.forwardRef(function({padding:e="small",size:t="medium",variant:r="ghost",...n},o){return m.createElement(C9,{...n,variant:r,padding:e,size:t,ref:o})}),dx=P(cx)(({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}})),T9=e=>m.createElement(dx,{as:"a",...e}),A9=P.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}})),O9=P.div({display:"flex",alignItems:"center",justifyContent:"center",flex:"0 0 14px",width:14,height:14,color:"var(--listbox-item-muted-color)"}),hi=Object.assign(P.ul(({theme:e,onClick:t})=>({listStyle:"none",margin:0,padding:4,cursor:t?"pointer":"default","& + *":{borderTop:`1px solid ${e.appBorderColor}`}})),{Item:ux,HoverItem:w9,Button:cx,Toggle:_9,Action:dx,Link:T9,Text:A9,Icon:O9}),K0=P.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=D9({collapsed:r,disabled:n,initialCollapsed:o,storageKey:a}),u=i||s;return m.createElement(m.Fragment,null,typeof t=="function"?t(u):t,m.createElement(K0,{...l,id:u.contentId,collapsed:u.isCollapsed,"aria-hidden":u.isCollapsed},typeof e=="function"?e(u):e))},{Content:K0});var R9=(e,t)=>{let[r,n]=p.useState(()=>{try{return JSON.parse(sessionStorage.getItem(e))??t}catch{return t}});return p.useEffect(()=>{try{e&&sessionStorage.setItem(e,JSON.stringify(r))}catch{}},[e,r]),[r,n]},D9=({collapsed:e,disabled:t,initialCollapsed:r=e,storageKey:n})=>{let[o,a]=R9(n&&`useCollapsible:${n}`,!!r);p.useEffect(()=>{e!==void 0&&a(e)},[e,a]);let i=p.useCallback(s=>{s?.stopPropagation(),t||a(u=>!u)},[t,a]),l=ze();return{contentId:l,isCollapsed:o,isDisabled:!!t,setCollapsed:a,toggleCollapsed:i,toggleProps:{disabled:t,onClick:i,"aria-controls":l,"aria-expanded":!o}}},P9=Me({"0%":{opacity:0},"5%":{opacity:1},"25%":{opacity:1},"30%":{opacity:0}}),F9=Me({"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)"}}),I9=Me({to:{backgroundPositionX:"36%"}}),G0=P.div(({theme:e})=>({borderRadius:e.appBorderRadius,backgroundColor:e.background.content,position:"relative"})),W0=P.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:`${I9} 10s infinite linear, ${P9} 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:`${F9} 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(p.forwardRef(function({outlineAnimation:e="none",outlineColor:t,outlineAttrs:r={},...n},o){return m.createElement(W0,{animation:e,color:t,ref:o,...r},m.createElement(G0,{...n}))}),{Content:G0,Outline:W0});const{deprecate:Yu}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var L9=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],fx=e=>({_s:e,status:L9[e],isEnter:e<3,isMounted:e!==6,isResolved:e===2||e>4}),dd=e=>e?6:5,k9=(e,t)=>{switch(e){case 1:case 0:return 2;case 4:case 3:return dd(t)}},N9=e=>typeof e=="object"?[e.enter,e.exit]:[e,e],M9=(e,t)=>setTimeout(()=>{isNaN(document.body.offsetTop)||e(t+1)},0),V0=(e,t,r,n,o)=>{clearTimeout(n.current);let a=fx(e);t(a),r.current=a,o&&o({current:a})},B9=({enter:e=!0,exit:t=!0,preEnter:r,preExit:n,timeout:o,initialEntered:a,mountOnEnter:i,unmountOnExit:l,onStateChange:s}={})=>{let[u,c]=p.useState(()=>fx(a?2:dd(i))),d=p.useRef(u),f=p.useRef(),[g,y]=N9(o),b=p.useCallback(()=>{let h=k9(d.current._s,l);h&&V0(h,c,d,f,s)},[s,l]),v=p.useCallback(h=>{let E=x=>{switch(V0(x,c,d,f,s),x){case 1:g>=0&&(f.current=setTimeout(b,g));break;case 4:y>=0&&(f.current=setTimeout(b,y));break;case 0:case 3:f.current=M9(E,x);break}},S=d.current.isEnter;typeof h!="boolean"&&(h=!S),h?!S&&E(e?r?0:1:2):S&&E(t?n?3:4:dd(l))},[b,s,e,t,r,n,g,y,l]);return[u,v,b]};function j9(e){let t=a=>typeof window<"u"?window.matchMedia(a).matches:!1,[r,n]=p.useState(t(e));function o(){n(t(e))}return p.useEffect(()=>{let a=window.matchMedia(e);return o(),a.addEventListener("change",o),()=>{a.removeEventListener("change",o)}},[e]),r}var px={};Ke(px,{Actions:()=>tM,Close:()=>kl,CloseButton:()=>X9,Col:()=>Sx,Container:()=>vx,Content:()=>J9,Description:()=>eM,Dialog:()=>Y9,Error:()=>rM,ErrorWrapper:()=>xx,Header:()=>Z9,Overlay:()=>bx,Row:()=>Ex,Title:()=>Q9});const{deprecate:hx}=__STORYBOOK_MODULE_CLIENT_LOGGER__;p.createContext(null);p.createContext(null);p.createContext(null);p.createContext(null);p.createContext(null);var gx=p.createContext({}),H9=p.forwardRef(function(e,t){[e,t]=Ze(e,t,gx);let{children:r,level:n=3,className:o,...a}=e,i=`h${n}`;return m.createElement(i,{...a,ref:t,className:o??"react-aria-Heading"},r)}),mx=p.createContext({}),U9=p.forwardRef(function(e,t){[e,t]=Ze(e,t,mx);let{elementType:r="span",...n}=e;return m.createElement(r,{className:"react-aria-Text",...n,ref:t})}),yx=Me({from:{opacity:0},to:{opacity:1}}),z9=Me({from:{opacity:1},to:{opacity:0}}),K9=Me({from:{maxHeight:0},to:{}}),G9=Me({from:{opacity:0,transform:"translate(-50%, -50%) scale(0.9)"},to:{opacity:1,transform:"translate(-50%, -50%) scale(1)"}}),W9=Me({from:{opacity:1,transform:"translate(-50%, -50%) scale(1)"},to:{opacity:0,transform:"translate(-50%, -50%) scale(0.9)"}}),V9=Me({from:{opacity:0,maxHeight:"0px"},to:{opacity:1,maxHeight:"80vh"}}),q9=Me({from:{opacity:1,maxHeight:"80vh"},to:{opacity:0,maxHeight:"0px"}}),bx=P.div(({$status:e,$transitionDuration:t})=>({backdropFilter:"blur(24px)",background:"rgba(0, 0, 0, 0.4)",position:"absolute",inset:0,width:"100%",height:"100%",zIndex:1e5,"@media (prefers-reduced-motion: no-preference)":{animation:e==="exiting"||e==="preExit"?`${z9} ${t}ms`:`${yx} ${t}ms`,animationFillMode:"forwards"}})),vx=P.div(({theme:e})=>({backgroundColor:e.background.bar,borderRadius:6,boxShadow:"0px 4px 67px 0px #00000040",position:"absolute",overflow:"auto",zIndex:1e5,"&: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"?`${W9} ${a}ms`:`${G9} ${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"?`${q9} ${a}ms`:`${V9} ${a}ms`,animationFillMode:"forwards !important"}}),kl=({asChild:e,children:t,onClick:r,...n})=>{let{close:o}=p.useContext(wx);if(e&&m.isValidElement(t)){let a=i=>{r?.(i),t.props.onClick?.(i),o?.()};return m.cloneElement(t,{...n,onClick:a})}return m.createElement(Qe,{type:"button",padding:"small",ariaLabel:"Close modal",variant:"ghost",shortcut:["Escape"],onClick:o},m.createElement(G1,null))},Y9={Close:()=>(hx("Modal.Dialog.Close is deprecated, please use Modal.Close instead."),m.createElement(kl,{"data-deprecated":"Modal.Dialog.Close"}))},X9=({ariaLabel:e,...t})=>(hx("Modal.CloseButton is deprecated, please use Modal.Close instead."),m.createElement(kl,{asChild:!0},m.createElement(Qe,{ariaLabel:e||"Close","data-deprecated":"Modal.CloseButton",...t},m.createElement(G1,null)))),J9=P.div({display:"flex",flexDirection:"column",margin:16,gap:16}),Ex=P.div({display:"flex",justifyContent:"space-between",gap:16}),Sx=P.div({display:"flex",flexDirection:"column",gap:4}),Z9=({hasClose:e=!0,onClose:t,...r})=>m.createElement(Ex,null,m.createElement(Sx,{...r}),e&&m.createElement(kl,{onClick:t})),Q9=P(e=>m.createElement(H9,{level:2,...e}))(({theme:e})=>({margin:0,fontSize:e.typography.size.s3,fontWeight:e.typography.weight.bold})),eM=P(U9)(({theme:e})=>({position:"relative",zIndex:1,margin:0,fontSize:e.typography.size.s2})),tM=P.div({display:"flex",flexDirection:"row-reverse",gap:8}),xx=P.div(({theme:e})=>({maxHeight:100,overflow:"auto","@media (prefers-reduced-motion: no-preference)":{animation:`${K9} 300ms, ${yx} 300ms`},backgroundColor:e.background.critical,color:e.color.lightest,fontSize:e.typography.size.s2,"& > div":{position:"relative",padding:"8px 16px"}})),rM=({children:e,...t})=>m.createElement(xx,{...t},m.createElement("div",null,e)),wx=p.createContext({});function nM({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:g,transitionDuration:y=200,variant:b="dialog",...v}){let h;(a===void 0||a==="")&&(h="ariaLabel",Yu("The `ariaLabel` prop on `Modal` will become mandatory in Storybook 11.")),c!==void 0&&(h="onEscapeKeyDown",Yu("The `onEscapeKeyDown` prop is deprecated and will be removed in Storybook 11. Use `dismissOnEscape` instead.")),d!==void 0&&(h="onInteractOutside",Yu("The `onInteractOutside` prop is deprecated and will be removed in Storybook 11. Use `dismissOnInteractOutside` instead."));let E=p.useRef(null),S=j9("(prefers-reduced-motion: reduce)"),[{status:x,isMounted:_},$]=B9({timeout:S?0:y,mountOnEnter:!0,unmountOnExit:!0}),C=Sa({isOpen:u||_,defaultOpen:g,onOpenChange:L=>{$(L),f?.(L)}}),A=()=>{C.close()},{modalProps:D,underlayProps:F}=f9({isDismissable:i,isKeyboardDismissDisabled:!0,shouldCloseOnInteractOutside:d?L=>{let R=new MouseEvent("click",{bubbles:!0,cancelable:!0,relatedTarget:L});return d(R),!R.defaultPrevented}:void 0},C,E);if(p.useEffect(()=>{let L=u??g??!1;L&&!_?$(!0):!L&&_&&$(!1)},[u,g,_,$]),p.useEffect(()=>{_&&(u||g)&&f?.(!0)},[_]),p.useEffect(()=>{if(_&&(u||g)&&E.current)return Ll([E.current],{shouldUseInert:!0})},[_,u,g,E]),!_||x==="exited"||x==="unmounted")return null;let T=ne(D,{onKeyDown:L=>{L.key!=="Escape"?D.onKeyDown?.(L):l&&(c?.(L.nativeEvent),L.nativeEvent.defaultPrevented||A())}}),N=e??(t?document.querySelector(t):void 0);return m.createElement(zi,{disableFocusManagement:!0,portalContainer:N||void 0},m.createElement(Qf,{restoreFocus:!0,contain:!0,autoFocus:!0},m.createElement(bx,{$status:x,$transitionDuration:y,...F}),m.createElement("div",{role:"dialog","aria-label":a,ref:E,...T},m.createElement(wx.Provider,{value:{close:A}},m.createElement("div",{tabIndex:-1},m.createElement(vx,{"data-deprecated":h,$variant:b,$status:x,$transitionDuration:y,className:s,width:n,height:o,...v},r))))))}Object.assign(nM,px);P.div(({theme:e,col:t,row:r=1})=>t?{display:"inline-block",verticalAlign:"inherit","& > *":{marginLeft:t*e.layoutMargin,verticalAlign:"inherit"},[`& > *:first-child${Ti}`]:{marginLeft:0}}:{"& > *":{marginTop:r*e.layoutMargin},[`& > *:first-child${Ti}`]:{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{}}});P.div(({theme:e})=>({fontWeight:e.typography.weight.bold}));P.div();P.div(({theme:e})=>({padding:30,textAlign:"center",color:e.color.defaultText,fontSize:e.typography.size.s2-1}));function oM(e,t){var r=p.useRef(null),n=p.useRef(null);n.current=t;var o=p.useRef(null);p.useEffect(function(){a()});var a=p.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 p.useEffect(function(){return function(){r.current&&r.current.cleanup&&(r.current.cleanup(),r.current=null)}},[]),p.useCallback(function(i){o.current=i,a()},[a])}function q0(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 $x(e){e===void 0&&(e={});var t=e.onResize,r=p.useRef(void 0);r.current=t;var n=e.round||Math.round,o=p.useRef(),a=p.useState({width:void 0,height:void 0}),i=a[0],l=a[1],s=p.useRef(!1);p.useEffect(function(){return s.current=!1,function(){s.current=!0}},[]);var u=p.useRef({width:void 0,height:void 0}),c=oM(p.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 g=f[0],y=e.box==="border-box"?"borderBoxSize":e.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",b=q0(g,y,"inlineSize"),v=q0(g,y,"blockSize"),h=b?n(b):void 0,E=v?n(v):void 0;if(u.current.width!==h||u.current.height!==E){var S={width:h,height:E};u.current.width=h,u.current.height=E,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 p.useMemo(function(){return{ref:c,width:i.width,height:i.height}},[c,i.width,i.height])}var aM=P.div(({centered:e=!1,scale:t=1,elementHeight:r})=>({height:r||"auto",transformOrigin:e?"center top":"left top",transform:`scale(${1/t})`}));function iM({centered:e,scale:t,children:r}){let n=p.useRef(null),[o,a]=p.useState(0),i=p.useCallback(({height:l})=>{l&&a(l/t)},[t]);return p.useEffect(()=>{n.current&&a(n.current.getBoundingClientRect().height)},[t]),$x({ref:n,onResize:i}),m.createElement(aM,{centered:e,scale:t,elementHeight:o},m.createElement("div",{ref:n,className:"innerZoomElementWrapper"},r))}var Cx={Element:iM};const{global:lM}=__STORYBOOK_MODULE_GLOBAL__;var{document:sM}=lM,uM=P.strong(({theme:e})=>({color:e.color.orange})),cM=P.strong(({theme:e})=>({color:e.color.ancillary,textDecoration:"underline"})),Y0=P.em(({theme:e})=>({color:e.textMutedColor})),dM=/(Error): (.*)\n/,fM=/at (?:(.*) )?\(?(.+)\)?/,pM=/([^@]+)?(?:\/<)?@(.+)?/,hM=/([^@]+)?@(.+)?/,_x=({error:e})=>{if(!e)return m.createElement(p.Fragment,null,"This error has no stack or message");if(!e.stack)return m.createElement(p.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(dM);if(!r)return m.createElement(p.Fragment,null,t);let[,n,o]=r,a=t.split(/\n/).slice(1),[,...i]=a.map(l=>{let s=l.match(fM)||l.match(pM)||l.match(hM);return s?{name:(s[1]||"").replace("/<",""),location:s[2].replace(sM.location.origin,"")}:null}).filter(Boolean);return m.createElement(p.Fragment,null,m.createElement("span",null,n),": ",m.createElement(uM,null,o),m.createElement("br",null),i.map((l,s)=>l?.name?m.createElement(p.Fragment,{key:s}," ","at ",m.createElement(cM,null,l.name)," (",m.createElement(Y0,null,l.location),")",m.createElement("br",null)):m.createElement(p.Fragment,{key:s}," ","at ",m.createElement(Y0,null,l?.location),m.createElement("br",null))))},gM=P.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"?Y.dark:e.color.mediumdark},"&:checked, &:indeterminate":{border:"none",backgroundColor:Y.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}})),mM=e=>m.createElement(gM,{...e,type:"checkbox"}),yM=P.label(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}})),bM=P.span(({theme:e})=>({minWidth:100,fontWeight:e.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"})),vM=({label:e,children:t,...r})=>m.createElement(yM,{...r},e?m.createElement(bM,null,m.createElement("span",null,e)):null,t),op=(({size:e})=>{switch(e){case"100%":return{width:"100%"};case"flex":return{flex:1};default:return{display:"inline"}}}),Tx=(({align:e})=>{switch(e){case"end":return{textAlign:"right"};case"center":return{textAlign:"center"};default:return{textAlign:"left"}}}),Ax=(({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{}}}),EM={appearance:"none",border:"0 none",boxSizing:"inherit",display:"block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},ap=(({theme:e})=>({...EM,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}})),SM=P.div({position:"relative",width:"100%"}),xM=P.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}=ap(e);return{fontSize:t,lineHeight:r,padding:n}}),wM=Object.assign(P(p.forwardRef(function({size:e,valid:t,align:r,value:n,suffix:o,...a},i){let l=ze();return m.createElement(SM,null,m.createElement("input",{...a,value:n,ref:i,"aria-describedby":o?l:void 0}),o&&m.createElement(xM,{"aria-hidden":!0},m.createElement("span",null,n),m.createElement("span",{id:l},o)))}))(ap,op,Tx,Ax,{minHeight:32,width:"100%"}),{displayName:"Input"}),$M=P.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"?Y.dark:e.color.mediumdark,borderColor:e.base==="dark"?Y.dark:e.color.mediumdark},"&:checked":{backgroundColor:Y.secondary,borderColor:Y.secondary,boxShadow:`inset 0 0 0 2px ${e.input.background}`},"&:enabled:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:2}})),CM=e=>m.createElement($M,{...e,type:"radio"}),_M=P.select(op,({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"?Yd(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}}})),TM=({children:e,...t})=>m.createElement(_M,{...t},!sT()&&m.createElement("button",null,m.createElement("selectedcontent",null),m.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"},m.createElement("path",{d:"m6 9 6 6 6-6"}))),m.createElement("optgroup",null,e)),AM=p.useLayoutEffect,OM=function(e){var t=m.useRef(e);return AM(function(){t.current=e}),t},X0=function(e,t){if(typeof e=="function"){e(t);return}e.current=t},RM=function(e,t){var r=m.useRef();return m.useCallback(function(n){e.current=n,r.current&&X0(r.current,null),r.current=t,t&&X0(t,n)},[t])},J0={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},DM=function(e){Object.keys(J0).forEach(function(t){e.style.setProperty(t,J0[t],"important")})},Z0=DM,tt=null,Q0=function(e,t){var r=e.scrollHeight;return t.sizingStyle.boxSizing==="border-box"?r+t.borderSize:r-t.paddingSize};function PM(e,t,r,n){r===void 0&&(r=1),n===void 0&&(n=1/0),tt||(tt=document.createElement("textarea"),tt.setAttribute("tabindex","-1"),tt.setAttribute("aria-hidden","true"),Z0(tt)),tt.parentNode===null&&document.body.appendChild(tt);var o=e.paddingSize,a=e.borderSize,i=e.sizingStyle,l=i.boxSizing;Object.keys(i).forEach(function(f){var g=f;tt.style[g]=i[g]}),Z0(tt),tt.value=t;var s=Q0(tt,e);tt.value=t,s=Q0(tt,e),tt.value="x";var u=tt.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 ey=function(){},FM=function(e,t){return e.reduce(function(r,n){return r[n]=t[n],r},{})},IM=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],LM=!!document.documentElement.currentStyle,kM=function(e){var t=window.getComputedStyle(e);if(t===null)return null;var r=FM(IM,t),n=r.boxSizing;if(n==="")return null;LM&&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}},NM=kM;function ip(e,t,r){var n=OM(r);p.useLayoutEffect(function(){var o=function(a){return n.current(a)};if(e)return e.addEventListener(t,o),function(){return e.removeEventListener(t,o)}},[])}var MM=function(e,t){ip(document.body,"reset",function(r){e.current.form===r.target&&t(r)})},BM=function(e){ip(window,"resize",e)},jM=function(e){ip(document.fonts,"loadingdone",e)},HM=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],UM=function(e,t){var r=e.cacheMeasurements,n=e.maxRows,o=e.minRows,a=e.onChange,i=a===void 0?ey:a,l=e.onHeightChange,s=l===void 0?ey:l,u=k3(e,HM),c=u.value!==void 0,d=p.useRef(null),f=RM(d,t),g=p.useRef(0),y=p.useRef(),b=function(){var h=d.current,E=r&&y.current?y.current:NM(h);if(E){y.current=E;var S=PM(E,h.value||h.placeholder||"x",o,n),x=S[0],_=S[1];g.current!==x&&(g.current=x,h.style.setProperty("height",x+"px","important"),s(x,{rowHeight:_}))}},v=function(h){c||b(),i(h)};return p.useLayoutEffect(b),MM(d,function(){if(!c){var h=d.current.value;requestAnimationFrame(function(){var E=d.current;E&&h!==E.value&&b()})}}),BM(b),jM(b),p.createElement("textarea",Ue({},u,{onChange:v,ref:f}))},zM=p.forwardRef(UM),KM=Object.assign(P(p.forwardRef(function({size:e,valid:t,align:r,...n},o){return m.createElement(zM,{...n,ref:o})}))(ap,op,Tx,Ax,({height:e=400})=>({overflow:"visible",maxHeight:e})),{displayName:"Textarea"}),xn=Object.assign(P.form({boxSizing:"border-box",width:"100%"}),{Field:vM,Input:wM,Select:TM,Textarea:KM,Button:Qe,Checkbox:mM,Radio:CM}),GM=P.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"?Yd(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`]}),WM=P(Qe)({position:"absolute",top:4,right:4}),xa=p.forwardRef(({children:e,color:t="default",hasChrome:r=!0,hideLabel:n="Close",onHide:o,padding:a=8,...i},l)=>m.createElement(GM,{bgColor:t,hasChrome:r,hasCloseButton:!!o,padding:a,ref:l,...i},e,o&&m.createElement(WM,{ariaLabel:n,onClick:o,padding:"small",variant:"ghost",size:"small"},m.createElement(M3,null))));xa.displayName="Popover";var Ox=({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})=>m.createElement(hi.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??m.createElement(m.Fragment,null,n&&m.createElement(hi.Icon,null,n),m.createElement(hi.Text,null,m.createElement("p",null,t),r&&m.createElement("small",null,r)),o));Ox.displayName="SelectOption";var Ya=5,Rx=Symbol.for("undefined");function VM(e){return e==null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"}function fd(e){return{...e,type:"option",value:gi(e.value)}}function Xu(e){return"type"in e&&e.type==="reset"?e:fd(e)}function Ao(e){if(e!==Rx)return e}function gi(e){return e===void 0?Rx:e}var qM=P("ul")({minWidth:180,height:"100%",borderRadius:6,overflow:"hidden auto",listStyle:"none",margin:0,padding:4});function ty(e,{value:t}){return`${e}-opt-${String(t)??"sb-reset"}`}var YM=P.span(({theme:e})=>({appearance:"none",color:e.textMutedColor,fontSize:12}));function ry(e,t){return t===void 0?[]:VM(t)?e.filter(r=>r.value===t).map(fd):e.filter(r=>t.some(n=>r.value===n)).map(fd)}var XM=P(Qe)(({$isOpen:e,$hasSelection:t,theme:r})=>e||t?{boxShadow:"none",background:yr(.93,r.barSelectedColor),color:r.base==="light"?qe(.1,r.color.secondary):r.color.secondary}:{}),JM=P.div({position:"fixed",inset:0,zIndex:1e3}),ZM=({children:e,handleClose:t,triggerRef:r})=>{let n=m.useRef(null);GE({ref:n,onInteractOutside:t}),p.useEffect(()=>{if(n.current)return Ll([n.current],{shouldUseInert:!0})},[]);let{overlayProps:o}=Zf({targetRef:r,overlayRef:n,placement:"bottom start",offset:8,maxHeight:504,isOpen:!0}),{overlayProps:a,underlayProps:i}=ep({isOpen:!0,onClose:t,isDismissable:!0,shouldCloseOnBlur:!1,isKeyboardDismissDisabled:!0},n),l=dl();return o.style={...o.style,overflow:"hidden auto",scrollbarColor:`${l.barTextColor} transparent`,scrollbarWidth:"thin"},m.createElement(zi,{disableFocusManagement:!0,...a},m.createElement(JM,{...i}),m.createElement(xa,{hasChrome:!0,ref:n,padding:0,...o},e))},Dx=p.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:g,showSelectedOptionTitle:y=!0,...b},v)=>{let[h,E]=p.useState(b.defaultOpen||!1),[S,x]=p.useState(!1),_=Ut(v),$=p.useMemo(()=>"select-"+Math.random().toString(36).substring(2,15),[]),C=`${$}-listbox`,A=p.useRef(null),D=Sa({isOpen:h&&!r,onOpenChange:E}),F=p.useCallback(()=>{E(!1),x(!0)},[]);p.useEffect(()=>{!D.isOpen&&S&&(_.current?.focus(),x(!1))},[D.isOpen,S,_]);let[T,N]=p.useState(ry(n,o)),L=p.useCallback(K=>{K.type==="reset"?(d?.([]),i?.(),N([])):N(a?z=>{let W=[];return z?.some(q=>q.value===K.value)?(c?.(Ao(K.value)),W=z?.filter(q=>q.value!==K.value)??[]):(u?.(Ao(K.value)),W=[...z??[],K]),d?.(W.map(q=>Ao(q.value))),W}:z=>z.every(W=>W.value!==K.value)?(u?.(Ao(K.value)),d?.([Ao(K.value)]),[K]):z)},[a,d,u,c,i]),R=p.useMemo(()=>i?{type:"reset",value:void 0,title:s??"Reset selection",icon:m.createElement(z3,null),description:void 0,children:void 0}:void 0,[i,s]),I=p.useMemo(()=>R?[R,...n]:n,[n,R]);p.useEffect(()=>{o&&N(ry(n,o))},[o,n]);let[k,M]=p.useState(void 0),H=p.useCallback((K,z=!0)=>{M(Xu(K)),!a&&z&&L(Xu(K))},[a,L]),U=p.useCallback((K=1)=>{if(!h||!k){H(I[K===1?0:Math.min(K,I.length-1)]);return}let z=I.findIndex(X=>k.type==="reset"?"type"in X&&X.type==="reset":gi(X.value)===k.value),W=z+K,q;W>=I.length&&z===I.length-1?q=I[0]:q=I[Math.min(I.length-1,W)],H(q)},[h,k,H,I]),B=p.useCallback((K=1)=>{if(!h||!k){H(I[Math.max(0,I.length-K)]);return}let z=I.findIndex(X=>k.type==="reset"?"type"in X&&X.type==="reset":gi(X.value)===k.value),W=z-K,q;W<0&&z===0?q=I[I.length-1]:q=I[Math.max(0,W)],H(q)},[h,k,H,I]),O=p.useCallback(K=>{let z=Ne=>{K.preventDefault(),H(I[Ne]),E(!0)},W=I.findIndex(Ne=>T.some(re=>re.value===gi(Ne.value))),q=W!==-1,X=R&&!q?1:0,le=I.length-1;K.key==="Enter"||K.key===" "?z(q?Math.min(W,le):X):K.key==="ArrowDown"?z(q?Math.min(W+1,le):X):K.key==="ArrowUp"?z(q?Math.max(W-1,X):le):K.key==="Home"?z(X):K.key==="End"?z(le):K.key==="PageDown"?z(Math.min((q?W:X)+Ya,le)):K.key==="PageUp"&&z(Math.max(0,(q?W:le)-Ya))},[I,R,H,T]),j=p.useCallback(K=>{K.key!=="Tab"?K.preventDefault():F(),K.key==="Escape"?F():K.key==="ArrowDown"?U():K.key==="ArrowUp"?B():K.key==="Home"?H(I[0]):K.key==="End"?H(I[I.length-1]):K.key==="PageDown"?U(Ya):K.key==="PageUp"&&B(Ya)},[F,U,B,I,H]);p.useEffect(()=>{if(h&&k){let K=document.getElementById(ty($,k));K&&(K.scrollIntoView({block:"nearest"}),K.focus())}else h&&A.current?.focus()},[h,k,$]);let G=p.useMemo(()=>T.length===1?`${g} ${T[0].title}`:T.length?`${g}, ${T.length} values selected`:g,[g,T]);return m.createElement(m.Fragment,null,m.createElement(XM,{...b,variant:"ghost",ariaLabel:G,tooltip:f??g,disableAllTooltips:h,id:$,ref:_,padding:l,$isOpen:h,$hasSelection:!!T.length,"aria-disabled":r,disabled:r,onClick:()=>{h?F():E(!0)},tabIndex:h?-1:0,onKeyDown:O,role:"button","aria-controls":h?C:void 0,"aria-expanded":h,"aria-haspopup":"listbox"},!a&&m.createElement(m.Fragment,null,t,y&&T[0]?.title||e),a&&m.createElement(m.Fragment,null,t,e,!!T.length&&m.createElement(YM,{"aria-label":`${T.length} ${T.length>1?"items":"item"} selected`},T?.length))),D.isOpen&&m.createElement(ZM,{handleClose:F,triggerRef:_},m.createElement(qM,{"aria-label":g,role:"listbox",id:C,ref:A,"aria-multiselectable":a,onKeyDown:j,tabIndex:h?0:-1},I.map(K=>({option:Xu(K),externalOption:K})).map(({externalOption:K,option:z})=>{let W=T?.some(X=>X.value===z.value)&&z!==R,q=z===R;return m.createElement(Ox,{key:z.value===void 0?"sb-reset":String(z.value),title:z.title,description:z.description,aside:z.aside,icon:!q&&a?m.createElement(xn.Checkbox,{checked:W,hidden:!0,role:"presentation"}):z.icon,id:ty($,z),isActive:h&&k?.value===z.value,isSelected:W,onClick:()=>{L(z),a||F()},onFocus:()=>H(K,!1),shouldLookDisabled:q&&T.length===0&&a,onKeyDown:X=>{X.key==="Enter"||X.key===" "?(X.preventDefault(),L(z),a||F()):X.key==="Tab"&&(a||L(z),F())}},z.children)}))))});Dx.displayName="Select";const{deprecate:QM}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var wn=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}},Px=class extends wn{filter(e,t,r){let[n,o]=kx(e,t,this.firstChildKey,r),a=this.clone();return a.firstChildKey=n,a.lastChildKey=o,a}},Fx=class extends wn{};Fx.type="header";var eB=class extends wn{};eB.type="loader";var Ix=class extends Px{filter(e,t,r){if(r(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};Ix.type="item";var Lx=class extends Px{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}};Lx.type="section";var tB=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]=kx(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 kx(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 Nx=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}},Ju=class pd extends Nx{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){var t;return this.parentNode instanceof pd?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 pd&&(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 g;c.nextKey=(g=u==null||(o=u.node)===null||o===void 0?void 0:o.key)!==null&&g!==void 0?g:null,c.hasChildNodes=!!this.firstChild;var y;c.firstChildKey=(y=(i=this.firstVisibleChild)===null||i===void 0||(a=i.node)===null||a===void 0?void 0:a.key)!==null&&y!==void 0?y:null;var b;if(c.lastChildKey=(b=(s=this.lastVisibleChild)===null||s===void 0||(l=s.node)===null||l===void 0?void 0:l.key)!==null&&b!==void 0?b:null,(c.colSpan!=null||c.colIndex!=null)&&u){var v,h;let E=((v=c.colIndex)!==null&&v!==void 0?v:c.index)+((h=c.colSpan)!==null&&h!==void 0?h:1);if(u.node!=null&&E!==u.node.colIndex){let S=u.getMutableNode();S.colIndex=E}}}}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}},rB=class extends Nx{get isConnected(){return this.isMounted}createElement(e){return new Ju(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 Ju&&(!i.isConnected||i.isHidden)?this.removeNode(i):i.updateChildIndices();for(let i of this.dirtyNodes)i instanceof Ju&&(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 Mx(e){let{children:t,items:r,idScope:n,addIdAndValue:o,dependencies:a=[]}=e,i=p.useMemo(()=>new WeakMap,a);return p.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=p.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 Ki=p.createContext(!1);function nB(e){if(p.useContext(Ki))return m.createElement(m.Fragment,null,e.children);let t=m.createElement(Ki.Provider,{value:!0},e.children);return m.createElement("template",{"data-react-aria-hidden":!0},t)}function lp(e){let t=(r,n)=>p.useContext(Ki)?null:e(r,n);return t.displayName=e.displayName||e.name,p.forwardRef(t)}function oB(){return p.useContext(Ki)}var Bx=p.createContext(!1),aa=p.createContext(null);function jx(e){if(p.useContext(aa))return e.content;let{collection:t,document:r}=sB(e.createCollection);return m.createElement(m.Fragment,null,m.createElement(nB,null,m.createElement(aa.Provider,{value:r},e.content)),m.createElement(aB,{render:e.children,collection:t}))}function aB({collection:e,render:t}){return t(e)}function iB(e,t,r){let n=Sn(),o=p.useRef(n);o.current=n;let a=p.useCallback(()=>o.current?r():t(),[t,r]);return CL.useSyncExternalStore(e,a)}var lB=typeof m.useSyncExternalStore=="function"?m.useSyncExternalStore:iB;function sB(e){let[t]=p.useState(()=>new rB(e?.()||new tB)),r=p.useCallback(i=>t.subscribe(i),[t]),n=p.useCallback(()=>{let i=t.getCollection();return t.isSSR&&t.resetAfterSSR(),i},[t]),o=p.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]),a=lB(r,n,o);return ge(()=>(t.isMounted=!0,()=>{t.isMounted=!1}),[t]),{collection:a,document:t}}var hd=p.createContext(null);function uB(e){var t;return t=class extends wn{},t.type=e,t}function Hx(e,t,r,n,o,a){typeof e=="string"&&(e=uB(e));let i=p.useCallback(s=>{s?.setProps(t,r,e,n,a)},[t,r,n,a,e]),l=p.useContext(hd);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?m.createElement(hd.Provider,{value:s},o):null}return m.createElement(e.type,{ref:i},o)}function Nl(e,t){let r=({node:o})=>t(o.props,o.props.ref,o),n=p.forwardRef((o,a)=>{let i=p.useContext(Mi);if(!p.useContext(Bx)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(o,a)}return Hx(e,o,a,"children"in o?o.children:null,null,l=>m.createElement(Mi.Provider,{value:i},m.createElement(r,{node:l})))});return n.displayName=t.name,n}function sp(e,t,r=Ux){let n=({node:a})=>t(a.props,a.props.ref,a),o=p.forwardRef((a,i)=>{let l=r(a);var s;return(s=Hx(e,a,i,null,l,u=>m.createElement(n,{node:u})))!==null&&s!==void 0?s:m.createElement(m.Fragment,null)});return o.displayName=t.name,o}function Ux(e){return Mx({...e,addIdAndValue:!0})}var ny=p.createContext(null);function zx(e){let t=p.useContext(ny),r=(t?.dependencies||[]).concat(e.dependencies),n=e.idScope||t?.idScope,o=Ux({...e,idScope:n,dependencies:r});return p.useContext(aa)&&(o=m.createElement(cB,null,o)),t=p.useMemo(()=>({dependencies:r,idScope:n}),[n,...r]),m.createElement(ny.Provider,{value:t},o)}function cB({children:e}){let t=p.useContext(aa),r=p.useMemo(()=>m.createElement(aa.Provider,{value:null},m.createElement(Bx.Provider,{value:!0},e)),[e]);return Sn()?m.createElement(hd.Provider,{value:t},r):da.createPortal(r,t)}var Kx=p.createContext({});lp(function(e,t){[e,t]=Ze(e,t,Kx);let{elementType:r="label",...n}=e;return m.createElement(r,{className:"react-aria-Label",...n,ref:t})});function dB(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":o,labelElementType:a="label"}=e;t=ze(t);let i=ze(),l={};r&&(n=n?`${i} ${n}`:i,l={id:i,htmlFor:a==="label"?t:void 0});let s=Rl({id:t,"aria-label":o,"aria-labelledby":n});return{labelProps:l,fieldProps:s}}function fB(e){let{value:t=0,minValue:r=0,maxValue:n=100,valueLabel:o,isIndeterminate:a,formatOptions:i={style:"percent"}}=e,l=Ae(e,{labelable:!0}),{labelProps:s,fieldProps:u}=dB({...e,labelElementType:"span"});t=ea(t,r,n);let c=(t-r)/(n-r),d=kN(i);if(!a&&!o){let f=i.style==="percent"?c:t;o=d.format(f)}return{progressBarProps:ne(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 Gx=p.createContext(null);p.forwardRef(function(e,t){[e,t]=Ze(e,t,Gx);let{value:r=0,minValue:n=0,maxValue:o=100,isIndeterminate:a=!1}=e;r=ea(r,n,o);let[i,l]=WE(!e["aria-label"]&&!e["aria-labelledby"]),{progressBarProps:s,labelProps:u}=fB({...e,label:l}),c=a?void 0:(r-n)/(o-n)*100,d=yt({...e,defaultClassName:"react-aria-ProgressBar",values:{percentage:c,valueText:s["aria-valuetext"],isIndeterminate:a}}),f=Ae(e,{global:!0});return m.createElement("div",{...ne(f,d,s),ref:t,slot:e.slot||void 0},m.createElement(Kx.Provider,{value:{...u,ref:i,elementType:"span"}},d.children))});var Dn=null;function oy(e,t="assertive",r=7e3){Dn?Dn.announce(e,t,r):(Dn=new pB,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Dn.announce(e,t,r):setTimeout(()=>{Dn?.isAttached()&&Dn?.announce(e,t,r)},100))}var pB=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 hB(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:g,rel:y,type:b="button"}=e,v;r==="button"?v={type:b,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}:v={role:"button",href:r==="a"&&!n?f:void 0,target:r==="a"?g:void 0,type:r==="input"?b:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?y:void 0};let{pressProps:h,isPressed:E}=va({onPressStart:a,onPressEnd:i,onPressChange:s,onPress:o,onPressUp:l,onClick:d,isDisabled:n,preventFocusOnPress:u,ref:t}),{focusableProps:S}=Ea(e,t);c&&(S.tabIndex=n?-1:S.tabIndex);let x=ne(S,h,Ae(e,{labelable:!0}));return{isPressed:E,buttonProps:ne(v,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 Wx=p.createContext({});lp(function(e,t){[e,t]=Ze(e,t,Wx),e=gB(e);let r=e,{isPending:n}=r,{buttonProps:o,isPressed:a}=hB(e,t),{focusProps:i,isFocused:l,isFocusVisible:s}=Il(e),{hoverProps:u,isHovered:c}=yo({...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=yt({...e,values:d,defaultClassName:"react-aria-Button"}),g=ze(o.id),y=ze(),b=o["aria-labelledby"];n&&(b?b=`${b} ${y}`:o["aria-label"]&&(b=`${g} ${y}`));let v=p.useRef(n);p.useEffect(()=>{let E={"aria-labelledby":b||g};(!v.current&&l&&n||v.current&&l&&!n)&&oy(E,"assertive"),v.current=n},[n,l,b,g]);let h=Ae(e,{global:!0});return delete h.onClick,m.createElement("button",{...ne(h,f,o,i,u),type:o.type==="submit"&&n?"button":o.type,id:g,ref:t,"aria-labelledby":b,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},m.createElement(Gx.Provider,{value:{id:y}},f.children))});function gB(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 up=p.createContext(null),ay=p.createContext(null),mB=p.forwardRef(function(e,t){[e,t]=Ze(e,t,up);let r=p.useContext(Bl),n=Sa(e),o=e.isOpen!=null||e.defaultOpen!=null||!r?n:r,a=PE(t,o.isOpen)||e.isExiting||!1,i=oB(),{direction:l}=Ur();if(i){let s=e.children;return typeof s=="function"&&(s=s({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),m.createElement(m.Fragment,null,s)}return o&&!o.isOpen&&!a?null:m.createElement(yB,{...e,triggerRef:e.triggerRef,state:o,popoverRef:t,isExiting:a,dir:l})});function yB({state:e,isExiting:t,UNSTABLE_portalContainer:r,clearContexts:n,...o}){let a=p.useRef(null),i=p.useRef(null),l=p.useContext(ay),s=l&&o.trigger==="SubmenuTrigger";var u;let{popoverProps:c,underlayProps:d,arrowProps:f,placement:g,triggerAnchorPoint:y}=d9({...o,offset:(u=o.offset)!==null&&u!==void 0?u:8,arrowRef:a,groupRef:s?l:i},e),b=o.popoverRef,v=DE(b,!!g)||o.isEntering||!1,h=yt({...o,defaultClassName:"react-aria-Popover",values:{trigger:o.trigger||null,placement:g,isEntering:v,isExiting:t}}),E=!o.isNonModal||o.trigger==="SubmenuTrigger",[S,x]=p.useState(!1);ge(()=>{b.current&&x(E&&!b.current.querySelector("[role=dialog]"))},[b,E]),p.useEffect(()=>{S&&o.trigger!=="SubmenuTrigger"&&b.current&&!b.current.contains(document.activeElement)&&Mr(b.current)},[S,b,o.trigger]);let _=p.useMemo(()=>{let D=h.children;if(n)for(let F of n)D=m.createElement(F.Provider,{value:null},D);return D},[h.children,n]),$={...c.style,"--trigger-anchor-point":y?`${y.x}px ${y.y}px`:void 0,...h.style},C=m.createElement("div",{...ne(Ae(o,{global:!0}),c),...h,role:S?"dialog":void 0,tabIndex:S?-1:void 0,"aria-label":o["aria-label"],"aria-labelledby":o["aria-labelledby"],ref:b,slot:o.slot||void 0,style:$,dir:o.dir,"data-trigger":o.trigger,"data-placement":g,"data-entering":v||void 0,"data-exiting":t||void 0},!o.isNonModal&&m.createElement(U0,{onDismiss:e.close}),m.createElement(Xf.Provider,{value:{...f,placement:g,ref:a}},_),m.createElement(U0,{onDismiss:e.close}));if(!s)return m.createElement(zi,{...o,shouldContainFocus:S,isExiting:t,portalContainer:r},!o.isNonModal&&e.isOpen&&m.createElement("div",{"data-testid":"underlay",...d,style:{position:"fixed",inset:0}}),m.createElement("div",{ref:i,style:{display:"contents"}},m.createElement(ay.Provider,{value:i},C)));var A;return m.createElement(zi,{...o,shouldContainFocus:S,isExiting:t,portalContainer:(A=r??l?.current)!==null&&A!==void 0?A:void 0},C)}var Vx=p.createContext(null);sp("section",(e,t,r)=>{let{name:n,render:o}=p.useContext(Vx);return o(e,t,r,"react-aria-Section")});var qx={CollectionRoot({collection:e,renderDropIndicator:t}){return iy(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:r}){return iy(e,t,r)}};function iy(e,t,r){return Mx({items:t?e.getChildren(t.key):e,dependencies:[r],children(n){let o=n.render(n);return!r||n.type!=="item"?o:m.createElement(m.Fragment,null,r({type:"item",key:n.key,dropPosition:"before"}),o,bB(e,n,r))}})}function bB(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"});p.isValidElement(u)&&l.push(p.cloneElement(u,{key:`${s.key}-after`})),s=s.parentKey!=null?e.getItem(s.parentKey):null}}return l}var wa=p.createContext(qx);function Yx(e){return p.useMemo(()=>e!=null?new Set([e]):null,[e])}var ly=p.createContext(null),vB=p.createContext(null),Xx=p.createContext({});Nl(Fx,function(e,t){return[e,t]=Ze(e,t,Xx),m.createElement("header",{className:"react-aria-Header",...e,ref:t},e.children)});var Jx=p.createContext({});p.forwardRef(function(e,t){return[e,t]=Ze(e,t,Jx),m.createElement("kbd",{dir:"ltr",...e,ref:t})});function EB(e){let t=Ae(e,{labelable:!0}),r;return e.orientation==="vertical"&&(r="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":r}}:{separatorProps:t}}var Zx=p.createContext({}),Qx=class extends wn{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}};Qx.type="separator";Nl(Qx,function(e,t){[e,t]=Ze(e,t,Zx);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}=EB({...l,elementType:r,orientation:n}),c=Ae(e,{global:!0});return m.createElement(s,{...ne(c,u),style:o,className:a??"react-aria-Separator",ref:t,slot:i||void 0})});var ew=new WeakMap;function gd(e){return xk()?e.altKey:e.ctrlKey}function mi(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 tw=new WeakMap;function SB(e){let t=ze();return tw.set(e,t),t}function xB(e){return tw.get(e)}var wB=1e3;function $B(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:n}=e,o=p.useRef({search:"",timeout:void 0}).current,a=i=>{let l=CB(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=""},wB)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?a:void 0}}}function CB(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function rw(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:g,scrollRef:y=n,linkBehavior:b="action"}=e,{direction:v}=Ur(),h=Al(),E=M=>{var H;if(M.altKey&&M.key==="Tab"&&M.preventDefault(),!(!((H=n.current)===null||H===void 0)&&H.contains(M.target)))return;let U=(V,J)=>{if(V!=null){if(t.isLink(V)&&b==="selection"&&u&&!gd(M)){da.flushSync(()=>{t.setFocusedKey(V,J)});let Q=mi(n,V),ue=t.getItemProps(V);Q&&h.open(Q,M,ue.href,ue.routerOptions);return}if(t.setFocusedKey(V,J),t.isLink(V)&&b==="override")return;M.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(V):u&&!gd(M)&&t.replaceSelection(V)}};switch(M.key){case"ArrowDown":if(r.getKeyBelow){var B,O,j;let V=t.focusedKey!=null?(B=r.getKeyBelow)===null||B===void 0?void 0:B.call(r,t.focusedKey):(O=r.getFirstKey)===null||O===void 0?void 0:O.call(r);V==null&&a&&(V=(j=r.getFirstKey)===null||j===void 0?void 0:j.call(r,t.focusedKey)),V!=null&&(M.preventDefault(),U(V))}break;case"ArrowUp":if(r.getKeyAbove){var G,K,z;let V=t.focusedKey!=null?(G=r.getKeyAbove)===null||G===void 0?void 0:G.call(r,t.focusedKey):(K=r.getLastKey)===null||K===void 0?void 0:K.call(r);V==null&&a&&(V=(z=r.getLastKey)===null||z===void 0?void 0:z.call(r,t.focusedKey)),V!=null&&(M.preventDefault(),U(V))}break;case"ArrowLeft":if(r.getKeyLeftOf){var W,q,X;let V=t.focusedKey!=null?(W=r.getKeyLeftOf)===null||W===void 0?void 0:W.call(r,t.focusedKey):null;V==null&&a&&(V=v==="rtl"?(q=r.getFirstKey)===null||q===void 0?void 0:q.call(r,t.focusedKey):(X=r.getLastKey)===null||X===void 0?void 0:X.call(r,t.focusedKey)),V!=null&&(M.preventDefault(),U(V,v==="rtl"?"first":"last"))}break;case"ArrowRight":if(r.getKeyRightOf){var le,Ne,re;let V=t.focusedKey!=null?(le=r.getKeyRightOf)===null||le===void 0?void 0:le.call(r,t.focusedKey):null;V==null&&a&&(V=v==="rtl"?(Ne=r.getLastKey)===null||Ne===void 0?void 0:Ne.call(r,t.focusedKey):(re=r.getFirstKey)===null||re===void 0?void 0:re.call(r,t.focusedKey)),V!=null&&(M.preventDefault(),U(V,v==="rtl"?"last":"first"))}break;case"Home":if(r.getFirstKey){if(t.focusedKey===null&&M.shiftKey)return;M.preventDefault();let V=r.getFirstKey(t.focusedKey,Ln(M));t.setFocusedKey(V),V!=null&&(Ln(M)&&M.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(V):u&&t.replaceSelection(V))}break;case"End":if(r.getLastKey){if(t.focusedKey===null&&M.shiftKey)return;M.preventDefault();let V=r.getLastKey(t.focusedKey,Ln(M));t.setFocusedKey(V),V!=null&&(Ln(M)&&M.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(V):u&&t.replaceSelection(V))}break;case"PageDown":if(r.getKeyPageBelow&&t.focusedKey!=null){let V=r.getKeyPageBelow(t.focusedKey);V!=null&&(M.preventDefault(),U(V))}break;case"PageUp":if(r.getKeyPageAbove&&t.focusedKey!=null){let V=r.getKeyPageAbove(t.focusedKey);V!=null&&(M.preventDefault(),U(V))}break;case"a":Ln(M)&&t.selectionMode==="multiple"&&l!==!0&&(M.preventDefault(),t.selectAll());break;case"Escape":s==="clearSelection"&&!i&&t.selectedKeys.size!==0&&(M.stopPropagation(),M.preventDefault(),t.clearSelection());break;case"Tab":if(!f){if(M.shiftKey)n.current.focus();else{let V=er(n.current,{tabbable:!0}),J,Q;do Q=V.lastChild(),Q&&(J=Q);while(Q);J&&!J.contains(document.activeElement)&&st(J)}break}}},S=p.useRef({top:0,left:0});Fo(y,"scroll",g?void 0:()=>{var M,H,U,B;S.current={top:(U=(M=y.current)===null||M===void 0?void 0:M.scrollTop)!==null&&U!==void 0?U:0,left:(B=(H=y.current)===null||H===void 0?void 0:H.scrollLeft)!==null&&B!==void 0?B:0}});let x=M=>{if(t.isFocused){M.currentTarget.contains(M.target)||t.setFocused(!1);return}if(M.currentTarget.contains(M.target)){if(t.setFocused(!0),t.focusedKey==null){var H,U;let j=K=>{K!=null&&(t.setFocusedKey(K),u&&!t.isSelected(K)&&t.replaceSelection(K))},G=M.relatedTarget;var B,O;G&&M.currentTarget.compareDocumentPosition(G)&Node.DOCUMENT_POSITION_FOLLOWING?j((B=t.lastSelectedKey)!==null&&B!==void 0?B:(H=r.getLastKey)===null||H===void 0?void 0:H.call(r)):j((O=t.firstSelectedKey)!==null&&O!==void 0?O:(U=r.getFirstKey)===null||U===void 0?void 0:U.call(r))}else!g&&y.current&&(y.current.scrollTop=S.current.top,y.current.scrollLeft=S.current.left);if(t.focusedKey!=null&&y.current){let j=mi(n,t.focusedKey);j instanceof HTMLElement&&(!j.contains(document.activeElement)&&!d&&st(j),oa()==="keyboard"&&l0(j,{containingElement:n.current}))}}},_=M=>{M.currentTarget.contains(M.relatedTarget)||t.setFocused(!1)},$=p.useRef(!1);Fo(n,Mk,d?M=>{let{detail:H}=M;M.stopPropagation(),t.setFocused(!0),H?.focusStrategy==="first"&&($.current=!0)}:void 0);let C=je(()=>{var M,H;let U=(H=(M=r.getFirstKey)===null||M===void 0?void 0:M.call(r))!==null&&H!==void 0?H:null;if(U==null){let B=Xe();bS(n.current),vS(B,null),t.collection.size>0&&($.current=!1)}else t.setFocusedKey(U),$.current=!1});a0(()=>{$.current&&C()},[t.collection,C]);let A=je(()=>{t.collection.size>0&&($.current=!1)});a0(()=>{A()},[t.focusedKey,A]),Fo(n,Nk,d?M=>{var H;M.stopPropagation(),t.setFocused(!1),!((H=M.detail)===null||H===void 0)&&H.clearFocusKey&&t.setFocusedKey(null)}:void 0);let D=p.useRef(o),F=p.useRef(!1);p.useEffect(()=>{if(D.current){var M,H;let O=null;var U;o==="first"&&(O=(U=(M=r.getFirstKey)===null||M===void 0?void 0:M.call(r))!==null&&U!==void 0?U:null);var B;o==="last"&&(O=(B=(H=r.getLastKey)===null||H===void 0?void 0:H.call(r))!==null&&B!==void 0?B:null);let j=t.selectedKeys;if(j.size){for(let G of j)if(t.canSelectItem(G)){O=G;break}}t.setFocused(!0),t.setFocusedKey(O),O==null&&!d&&n.current&&Mr(n.current),t.collection.size>0&&(D.current=!1,F.current=!0)}});let T=p.useRef(t.focusedKey),N=p.useRef(null);p.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==T.current||F.current)&&y.current&&n.current){let M=oa(),H=mi(n,t.focusedKey);if(!(H instanceof HTMLElement))return;(M==="keyboard"||F.current)&&(N.current&&cancelAnimationFrame(N.current),N.current=requestAnimationFrame(()=>{y.current&&(OE(y.current,H),M!=="virtual"&&l0(H,{containingElement:n.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&T.current!=null&&n.current&&Mr(n.current),T.current=t.focusedKey,F.current=!1}),p.useEffect(()=>()=>{N.current&&cancelAnimationFrame(N.current)},[]),Fo(n,"react-aria-focus-scope-restore",M=>{M.preventDefault(),t.setFocused(!0)});let L={onKeyDown:E,onFocus:x,onBlur:_,onMouseDown(M){y.current===M.target&&M.preventDefault()}},{typeSelectProps:R}=$B({keyboardDelegate:r,selectionManager:t});c||(L=ne(R,L));let I;d||(I=t.focusedKey==null?0:-1);let k=SB(t.collection);return{collectionProps:ne(L,{tabIndex:I,"data-collection":k})}}function nw(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=Al();t=ze(t);let g=B=>{if(B.pointerType==="keyboard"&&gd(B))r.toggleSelection(n);else{if(r.selectionMode==="none")return;if(r.isLink(n)){if(d==="selection"&&o.current){let O=r.getItemProps(n);f.open(o.current,B,O.href,O.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):B&&B.shiftKey?r.extendSelection(n):r.selectionBehavior==="toggle"||B&&(Ln(B)||B.pointerType==="touch"||B.pointerType==="virtual")?r.toggleSelection(n):r.replaceSelection(n)}};p.useEffect(()=>{n===r.focusedKey&&r.isFocused&&(i?bS(o.current):l?l():document.activeElement!==o.current&&o.current&&Mr(o.current))},[o,n,r.focusedKey,r.childFocusStrategy,r.isFocused,i]),s=s||r.isDisabled(n);let y={};!i&&!s?y={tabIndex:n===r.focusedKey?0:-1,onFocus(B){B.target===o.current&&r.setFocusedKey(n)}}:s&&(y.onMouseDown=B=>{B.preventDefault()});let b=r.isLink(n)&&d==="override",v=u&&e.UNSTABLE_itemBehavior==="action",h=r.isLink(n)&&d!=="selection"&&d!=="none",E=!s&&r.canSelectItem(n)&&!b&&!v,S=(u||h)&&!s,x=S&&(r.selectionBehavior==="replace"?!E:!E||r.isEmpty),_=S&&E&&r.selectionBehavior==="replace",$=x||_,C=p.useRef(null),A=$&&E,D=p.useRef(!1),F=p.useRef(!1),T=r.getItemProps(n),N=B=>{if(u){var O;u(),(O=o.current)===null||O===void 0||O.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}h&&o.current&&f.open(o.current,B,T.href,T.routerOptions)},L={ref:o};if(a?(L.onPressStart=B=>{C.current=B.pointerType,D.current=A,B.pointerType==="keyboard"&&(!$||uy())&&g(B)},c?(L.onPressUp=x?void 0:B=>{B.pointerType==="mouse"&&E&&g(B)},L.onPress=x?N:B=>{B.pointerType!=="keyboard"&&B.pointerType!=="mouse"&&E&&g(B)}):L.onPress=B=>{if(x||_&&B.pointerType!=="mouse"){if(B.pointerType==="keyboard"&&!sy())return;N(B)}else B.pointerType!=="keyboard"&&E&&g(B)}):(L.onPressStart=B=>{C.current=B.pointerType,D.current=A,F.current=x,E&&(B.pointerType==="mouse"&&!x||B.pointerType==="keyboard"&&(!S||uy()))&&g(B)},L.onPress=B=>{(B.pointerType==="touch"||B.pointerType==="pen"||B.pointerType==="virtual"||B.pointerType==="keyboard"&&$&&sy()||B.pointerType==="mouse"&&F.current)&&($?N(B):E&&g(B))}),y["data-collection"]=xB(r.collection),y["data-key"]=n,L.preventFocusOnPress=i,i&&(L=ne(L,{onPressStart(B){B.pointerType!=="touch"&&(r.setFocused(!0),r.setFocusedKey(n))},onPress(B){B.pointerType==="touch"&&(r.setFocused(!0),r.setFocusedKey(n))}})),T)for(let B of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])T[B]&&(L[B]=ba(L[B],T[B]));let{pressProps:R,isPressed:I}=va(L),k=_?B=>{C.current==="mouse"&&(B.stopPropagation(),B.preventDefault(),N(B))}:void 0,{longPressProps:M}=b7({isDisabled:!A,onLongPress(B){B.pointerType==="touch"&&(g(B),r.setSelectionBehavior("toggle"))}}),H=B=>{C.current==="touch"&&D.current&&B.preventDefault()},U=d!=="none"&&r.isLink(n)?B=>{fn.isOpening||B.preventDefault()}:void 0;return{itemProps:ne(y,E||x||i&&!s?R:{},A?M:{},{onDoubleClick:k,onDragStartCapture:H,onClick:U,id:t},i?{onMouseDown:B=>B.preventDefault()}:void 0),isPressed:I,isSelected:r.isSelected(n),isFocused:r.isFocused&&r.focusedKey===n,isDisabled:s,allowsSelection:E,hasAction:$}}function sy(){return window.event?.key==="Enter"}function uy(){let e=window.event;return e?.key===" "||e?.code==="Space"}var cy=class{getItemRect(e){let t=this.ref.current;if(!t)return null;let r=e!=null?mi(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}},_B=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&&!ro(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&&!ro(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 cy(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 cy(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}};function TB(e){let{selectionManager:t,collection:r,disabledKeys:n,ref:o,keyboardDelegate:a,layoutDelegate:i}=e,l=NN({usage:"search",sensitivity:"base"}),s=t.disabledBehavior,u=p.useMemo(()=>a||new _B({collection:r,disabledKeys:n,disabledBehavior:s,ref:o,collator:l,layoutDelegate:i}),[a,i,r,n,o,l,s]),{collectionProps:c}=rw({...e,ref:o,selectionManager:t,keyboardDelegate:u});return{listProps:c}}function AB(e,t,r){let{shouldFocusWrap:n=!0,onKeyDown:o,onKeyUp:a,...i}=e;!e["aria-label"]&&e["aria-labelledby"];let l=Ae(e,{labelable:!0}),{listProps:s}=TB({...i,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:n,linkBehavior:"override"});return ew.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:ne(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))}})}}var OB=class{build(e,t){return this.context=t,dy(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:r}=e;if(m.isValidElement(t)&&t.type===m.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=[];m.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(m.isValidElement(e.element)&&e.element.type===m.Fragment){let b=[];m.Children.forEach(e.element.props.children,h=>{b.push(h)});var o;let v=(o=e.index)!==null&&o!==void 0?o:0;for(let h of b)yield*this.getFullNode({element:h,index:v++},t,r,n);return}let a=e.element;if(!a&&e.value&&t&&t.renderer){let b=this.cache.get(e.value);if(b&&(!b.shouldInvalidate||!b.shouldInvalidate(this.context))){b.index=e.index,b.parentKey=n?n.key:null,yield b;return}a=t.renderer(e.value)}if(m.isValidElement(a)){let b=a.type;if(typeof b!="function"&&typeof b.getCollectionNode!="function"){let S=a.type;throw new Error(`Unknown element <${S}> in collection.`)}let v=b.getCollectionNode(a.props,this.context);var i;let h=(i=e.index)!==null&&i!==void 0?i:0,E=v.next();for(;!E.done&&E.value;){let S=E.value;e.index=h;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 _=[...this.getFullNode({...S,key:x,index:h,wrapper:RB(e.wrapper,S.wrapper)},this.getChildState(t,S),r?`${r}${a.key}`:a.key,n)];for(let $ of _){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 <${Zu($.type)}> in <${Zu((c=n?.type)!==null&&c!==void 0?c:"unknown parent type")}>. Only <${Zu(e.type)}> is supported.`);h++,yield $}E=v.next(_)}return}if(e.key==null||e.type==null)return;let d=this;var f,g;let y={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:(g=e.textValue)!==null&&g!==void 0?g:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:dy(function*(){if(!e.hasChildNodes||!e.childNodes)return;let b=0;for(let v of e.childNodes()){v.key!=null&&(v.key=`${y.key}${v.key}`);let h=d.getFullNode({...v,index:b},d.getChildState(t,v),y.key,y);for(let E of h)b++,yield E}})};yield y}constructor(){this.cache=new WeakMap}};function dy(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 RB(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function Zu(e){return e[0].toUpperCase()+e.slice(1)}function ow(e,t,r){let n=p.useMemo(()=>new OB,[]),{children:o,items:a,collection:i}=e;return p.useMemo(()=>{if(i)return i;let l=n.build({children:o,items:a},r);return t(l)},[n,o,a,i,r,t])}function aw(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function DB(e){return PB(e)}function PB(e,t){for(let r of e)return r}function Qu(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=[...fy(e,t),t],o=[...fy(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 fy(e,t){let r=[],n=t;for(;n?.parentKey!=null;)n=e.getItem(n.parentKey),n&&r.unshift(n);return r}var py=new WeakMap;function FB(e){let t=py.get(e);if(t!=null)return t;let r=0,n=o=>{for(let a of o)a.type==="section"?n(aw(a,e)):a.type==="item"&&r++};return n(e),py.set(e,r),r}function IB(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:g,onHoverStart:y,onHoverChange:b,onHoverEnd:v,onKeyDown:h,onKeyUp:E,onFocus:S,onFocusChange:x,onBlur:_,selectionManager:$=t.selectionManager}=e,C=!!l,A=C&&e["aria-expanded"]==="true";var D;let F=(D=e.isDisabled)!==null&&D!==void 0?D:$.isDisabled(o);var T;let N=(T=e.isSelected)!==null&&T!==void 0?T:$.isSelected(o),L=ew.get(t),R=t.collection.getItem(o),I=e.onClose||L.onClose,k=Al(),M=()=>{var Z;if(!C&&(!(R==null||(Z=R.props)===null||Z===void 0)&&Z.onAction?R.props.onAction():e.onAction&&e.onAction(o),L.onAction)){let Ee=L.onAction;Ee(o)}},H="menuitem";C||($.selectionMode==="single"?H="menuitemradio":$.selectionMode==="multiple"&&(H="menuitemcheckbox"));let U=di(),B=di(),O=di(),j={id:n,"aria-disabled":F||void 0,role:H,"aria-label":e["aria-label"],"aria-labelledby":U,"aria-describedby":[B,O].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":l,"aria-expanded":e["aria-expanded"]};$.selectionMode!=="none"&&!C&&(j["aria-checked"]=N),i&&(j["aria-posinset"]=R?.index,j["aria-setsize"]=FB(t.collection));let G=p.useRef(!1),K=Z=>{d?.(Z),G.current=Z},z=p.useRef(null),W=Z=>{Z.pointerType!=="keyboard"&&(z.current={pointerType:Z.pointerType}),Z.pointerType==="mouse"&&(G.current||Z.target.click()),u?.(Z)},q=Z=>{var Ee,bt;g?.(Z),M(),Ak(Z,k,R.props.href,R?.props.routerOptions);let vt=((Ee=z.current)===null||Ee===void 0?void 0:Ee.pointerType)==="keyboard"?((bt=z.current)===null||bt===void 0?void 0:bt.key)==="Enter"||$.selectionMode==="none"||$.isLink(o):$.selectionMode!=="multiple"||$.isLink(o);vt=a??vt,I&&!C&&vt&&I(),z.current=null},{itemProps:X,isFocused:le}=nw({id:n,selectionManager:$,key:o,ref:r,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:L.shouldUseVirtualFocus}),{pressProps:Ne,isPressed:re}=va({onPressStart:s,onPress:c,onPressUp:W,onPressChange:K,onPressEnd:f,isDisabled:F}),{hoverProps:V}=yo({isDisabled:F,onHoverStart(Z){!na()&&!(A&&l)&&($.setFocused(!0),$.setFocusedKey(o)),y?.(Z)},onHoverChange:b,onHoverEnd:v}),{keyboardProps:J}=KE({onKeyDown:Z=>{if(Z.repeat){Z.continuePropagation();return}switch(Z.key){case" ":z.current={pointerType:"keyboard",key:" "},Z.target.click();break;case"Enter":z.current={pointerType:"keyboard",key:"Enter"},Z.target.tagName!=="A"&&Z.target.click();break;default:C||Z.continuePropagation(),h?.(Z);break}},onKeyUp:E}),{focusProps:Q}=Vf({onBlur:_,onFocus:S,onFocusChange:x}),ue=Ae(R?.props);delete ue.id;let Pe=_E(R?.props);return{menuItemProps:{...j,...ne(ue,Pe,C?{onFocus:X.onFocus,"data-collection":X["data-collection"],"data-key":X["data-key"]}:X,Ne,V,J,Q,L.shouldUseVirtualFocus||C?{onMouseDown:Z=>Z.preventDefault()}:void 0,F?void 0:{onClick:q}),tabIndex:X.tabIndex!=null&&A&&!L.shouldUseVirtualFocus?-1:X.tabIndex},labelProps:{id:U},descriptionProps:{id:B},keyboardShortcutProps:{id:O},isFocused:le,isFocusVisible:le&&$.isFocused&&na()&&!A,isSelected:N,isPressed:re,isDisabled:F}}function LB(e){let{heading:t,"aria-label":r}=e,n=ze();return{itemProps:{role:"presentation"},headingProps:t?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?n:void 0}}}var Xa=2,kB=50,NB=1e3,hy=Math.PI/12;function MB(e){let{menuRef:t,submenuRef:r,isOpen:n,isDisabled:o}=e,a=p.useRef(void 0),i=p.useRef(void 0),l=p.useRef(0),s=p.useRef(void 0),u=p.useRef(void 0),c=p.useRef(void 0),d=p.useRef(2),[f,g]=p.useState(!1);Ii({ref:r,onResize:()=>{r.current&&(i.current=r.current.getBoundingClientRect(),c.current=void 0)}});let y=()=>{g(!1),d.current=Xa,a.current=void 0},b=a7(),v=je(h=>{f&&h.preventDefault()});p.useEffect(()=>{f&&t.current?t.current.style.pointerEvents="none":t.current.style.pointerEvents=""},[t,f]),p.useEffect(()=>{let h=r.current,E=t.current;if(o||!h||!n||b!=="pointer"||!E){y();return}i.current=h.getBoundingClientRect();let S=x=>{if(x.pointerType==="touch"||x.pointerType==="pen")return;let _=Date.now();if(_-l.current<kB)return;clearTimeout(s.current),clearTimeout(u.current);let{clientX:$,clientY:C}=x;if(!a.current){a.current={x:$,y:C};return}if(!i.current)return;if(c.current||(c.current=$>i.current.right?"left":"right"),$<E.getBoundingClientRect().left||$>E.getBoundingClientRect().right||C<E.getBoundingClientRect().top||C>E.getBoundingClientRect().bottom){y();return}let A=a.current.x,D=a.current.y,F=c.current==="right"?i.current.left-A:A-i.current.right,T=Math.atan2(D-i.current.top,F)+hy,N=Math.atan2(D-i.current.bottom,F)-hy,L=Math.atan2(D-C,c.current==="left"?-($-A):$-A),R=L<T&&L>N;d.current=R?Math.min(d.current+1,Xa):Math.max(d.current-1,0),d.current>=Xa?g(!0):g(!1),l.current=_,a.current={x:$,y:C},R&&(s.current=setTimeout(()=>{y(),u.current=setTimeout(()=>{let I=document.elementFromPoint($,C);I&&E.contains(I)&&I.dispatchEvent(new PointerEvent("pointerover",{bubbles:!0,cancelable:!0}))},100)},NB))};return window.addEventListener("pointermove",S),window.addEventListener("pointerdown",v,!0),()=>{window.removeEventListener("pointermove",S),window.removeEventListener("pointerdown",v,!0),clearTimeout(s.current),clearTimeout(u.current),d.current=Xa}},[o,n,t,b,g,v,r])}function BB(e,t,r){let{parentMenuRef:n,submenuRef:o,type:a="menu",isDisabled:i,delay:l=200,shouldUseVirtualFocus:s}=e,u=ze(),c=ze(),{direction:d}=Ur(),f=p.useRef(void 0),g=p.useCallback(()=>{f.current&&(clearTimeout(f.current),f.current=void 0)},[f]),y=je(A=>{g(),t.open(A)}),b=je(()=>{g(),t.close()});ge(()=>()=>{g()},[g]);let v=A=>{if(A.currentTarget.contains(document.activeElement))switch(A.key){case"ArrowLeft":d==="ltr"&&A.currentTarget.contains(A.target)&&(A.preventDefault(),A.stopPropagation(),b(),!s&&r.current&&st(r.current));break;case"ArrowRight":d==="rtl"&&A.currentTarget.contains(A.target)&&(A.preventDefault(),A.stopPropagation(),b(),!s&&r.current&&st(r.current));break;case"Escape":var D;!((D=o.current)===null||D===void 0)&&D.contains(A.target)&&(A.stopPropagation(),b(),!s&&r.current&&st(r.current));break}};var h;let E={id:c,"aria-labelledby":u,submenuLevel:t.submenuLevel,...a==="menu"&&{onClose:t.closeAll,autoFocus:(h=t.focusStrategy)!==null&&h!==void 0?h:void 0,onKeyDown:v}},S=A=>{switch(A.key){case"ArrowRight":i||(d==="ltr"?(A.preventDefault(),t.isOpen||y("first"),a==="menu"&&o?.current&&document.activeElement===r?.current&&st(o.current)):t.isOpen?b():A.continuePropagation());break;case"ArrowLeft":i||(d==="rtl"?(A.preventDefault(),t.isOpen||y("first"),a==="menu"&&o?.current&&document.activeElement===r?.current&&st(o.current)):t.isOpen?b():A.continuePropagation());break;default:A.continuePropagation();break}},x=A=>{!i&&(A.pointerType==="virtual"||A.pointerType==="keyboard")&&y("first")},_=A=>{!i&&(A.pointerType==="touch"||A.pointerType==="mouse")&&y()},$=A=>{i||(A&&!t.isOpen?f.current||(f.current=setTimeout(()=>{y()},l)):A||g())};Fo(n,"focusin",A=>{var D;t.isOpen&&!((D=n.current)===null||D===void 0)&&D.contains(A.target)&&A.target!==r.current&&b()});let C=A=>A!==r.current;return MB({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:_,onHoverChange:$,onKeyDown:S,isOpen:t.isOpen},submenuProps:E,popoverProps:{isNonModal:!0,shouldCloseOnInteractOutside:C}}}function iw(e){let t=Sa(e),[r,n]=p.useState(null),[o,a]=p.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 jB(e,t){let{triggerKey:r}=e,{expandedKeysStack:n,openSubmenu:o,closeSubmenu:a,close:i}=t,[l]=p.useState(n?.length),s=p.useMemo(()=>n[l]===r,[n,r,l]),[u,c]=p.useState(null),d=p.useCallback(y=>{c(y??null),o(r,l)},[o,l,r]),f=p.useCallback(()=>{c(null),a(r,l)},[a,l,r]),g=p.useCallback(y=>{c(y??null),s?f():d(y)},[f,d,s]);return p.useMemo(()=>({focusStrategy:u,isOpen:s,open:d,close:f,closeAll:i,submenuLevel:l,setOpen:()=>{},toggle:g}),[s,d,f,i,u,g,l])}var HB=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}},fr=class lw extends Set{constructor(t,r,n){super(t),t instanceof lw?(this.anchorKey=r??t.anchorKey,this.currentKey=n??t.currentKey):(this.anchorKey=r??null,this.currentKey=n??null)}};function UB(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function cp(e){let{selectionMode:t="none",disallowEmptySelection:r=!1,allowDuplicateSelectionEvents:n,selectionBehavior:o="toggle",disabledBehavior:a="all"}=e,i=p.useRef(!1),[,l]=p.useState(!1),s=p.useRef(null),u=p.useRef(null),[,c]=p.useState(null),d=p.useMemo(()=>gy(e.selectedKeys),[e.selectedKeys]),f=p.useMemo(()=>gy(e.defaultSelectedKeys,new fr),[e.defaultSelectedKeys]),[g,y]=Dl(d,f,e.onSelectionChange),b=p.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[v,h]=p.useState(o);o==="replace"&&v==="toggle"&&typeof g=="object"&&g.size===0&&h("replace");let E=p.useRef(o);return p.useEffect(()=>{o!==E.current&&(h(o),E.current=o)},[o]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:v,setSelectionBehavior:h,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:g,setSelectedKeys(S){(n||!UB(S,g))&&y(S)},disabledKeys:b,disabledBehavior:a}}function gy(e,t){return e?e==="all"?"all":new fr(e):t}var dp=class sw{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&&Qu(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&&Qu(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 fr([r],r,r);else{let i=this.state.selectedKeys;var o;let l=(o=i.anchorKey)!==null&&o!==void 0?o:r;n=new fr(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?Qu(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 fr(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 fr([r],r,r):new fr;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new fr;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=DB(aw(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 fr)}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 sw(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 zB(e){let{onExpandedChange:t}=e,[r,n]=Dl(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),o=cp(e),a=p.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=ow(e,p.useCallback(l=>new HB(l,{expandedKeys:r}),[r]),null);return p.useEffect(()=>{o.focusedKey!=null&&!i.getItem(o.focusedKey)&&o.setFocusedKey(null)},[i,o.focusedKey]),{collection:i,expandedKeys:r,disabledKeys:a,toggleKey:l=>{n(KB(r,l))},setExpandedKeys:n,selectionManager:new dp(i,o)}}function KB(e,t){let r=new Set(e);return r.has(t)?r.delete(t):r.add(t),r}var uw=p.createContext(null),Ml=p.createContext(null),Gi=p.createContext(null),Wi=p.createContext(null),cw=p.createContext(null),dw=class extends wn{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}};dw.type="submenutrigger";sp(dw,(e,t,r)=>{let{CollectionBranch:n}=p.useContext(wa),o=p.useContext(Ml),a=p.useContext(Gi),i=jB({triggerKey:r.key},a),l=p.useRef(null),s=Ut(t),{parentMenuRef:u,shouldUseVirtualFocus:c}=p.useContext(cw),{submenuTriggerProps:d,submenuProps:f,popoverProps:g}=BB({parentMenuRef:u,submenuRef:l,delay:e.delay,shouldUseVirtualFocus:c},i,s);return m.createElement(Er,{values:[[Vi,{...d,onAction:void 0,ref:s}],[uw,{ref:l,...f}],[Bl,i],[up,{trigger:"SubmenuTrigger",triggerRef:s,placement:"end top","aria-labelledby":f["aria-labelledby"],...g}]]},m.createElement(n,{collection:o.collection,parent:r}),e.children[1])},e=>e.children[0]);p.forwardRef(function(e,t){return[e,t]=Ze(e,t,uw),m.createElement(jx,{content:m.createElement(zx,e)},r=>m.createElement(GB,{props:e,collection:r,menuRef:t}))});function GB({props:e,collection:t,menuRef:r}){[e,r]=Ze(e,r,ly);let{filter:n,...o}=e,a=p.useMemo(()=>n?t.filter(n):t,[t,n]),i=zB({...e,collection:a,children:void 0}),l=p.useContext(Gi),{isVirtualized:s,CollectionRoot:u}=p.useContext(wa),{menuProps:c}=AB({...e,isVirtualized:s,onClose:e.onClose||l?.close},i,r),d=yt({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=m.createElement("div",{role:"menuitem",style:{display:"contents"}},e.renderEmptyState()));let g=Ae(e,{global:!0});return m.createElement(Qf,null,m.createElement("div",{...ne(g,d,c),ref:r,slot:e.slot||void 0,"data-empty":i.collection.size===0||void 0,onScroll:e.onScroll},m.createElement(Er,{values:[[Ml,i],[Zx,{elementType:"div"}],[Vx,{name:"MenuSection",render:fw}],[cw,{parentMenuRef:r,shouldUseVirtualFocus:o?.shouldUseVirtualFocus}],[Vi,null],[ly,null],[vB,null],[Wi,i.selectionManager],[Gi,l??iw({})]]},m.createElement(u,{collection:i.collection,persistedKeys:Yx(i.selectionManager.focusedKey),scrollRef:r})),f))}var WB=class extends dp{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 fw(e,t,r,n="react-aria-MenuSection"){var o,a;let i=p.useContext(Ml),{CollectionBranch:l}=p.useContext(wa),[s,u]=WE();var c;let{headingProps:d,groupProps:f}=LB({heading:u,"aria-label":(c=r.props["aria-label"])!==null&&c!==void 0?c:void 0}),g=yt({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:{}}),y=p.useContext(Wi),b=cp(e),v=e.selectionMode!=null?new WB(y,b):y,h=Ae(e,{global:!0});return delete h.id,m.createElement("section",{...ne(h,g,f),ref:t},m.createElement(Er,{values:[[Xx,{...d,ref:s}],[Wi,v]]},m.createElement(l,{collection:i.collection,parent:r})))}sp(Lx,fw);var Vi=p.createContext(null);Nl(Ix,function(e,t,r){var n;[e,t]=Ze(e,t,Vi);let o=(n=Yf(Vi))===null||n===void 0?void 0:n.id,a=p.useContext(Ml),i=Ut(t),l=p.useContext(Wi),{menuItemProps:s,labelProps:u,descriptionProps:c,keyboardShortcutProps:d,...f}=IB({...e,id:o,key:r.key,selectionManager:l},a,i),{hoverProps:g,isHovered:y}=yo({isDisabled:f.isDisabled}),b=yt({...e,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...f,isHovered:y,isFocusVisible:f.isFocusVisible,selectionMode:l.selectionMode,selectionBehavior:l.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),v=e.href?"a":"div",h=Ae(e,{global:!0});return delete h.id,delete h.onClick,m.createElement(v,{...ne(h,b,s,g),ref:i,"data-disabled":f.isDisabled||void 0,"data-hovered":y||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},m.createElement(Er,{values:[[mx,{slots:{[Bi]:u,label:u,description:c}}],[Jx,d]]},b.children))});function VB(e,t){let{role:r="dialog"}=e,n=di();n=e["aria-label"]?void 0:n;let o=p.useRef(!1);return p.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Mr(t.current);let a=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(o.current=!0,t.current&&(t.current.blur(),Mr(t.current)),o.current=!1)},500);return()=>{clearTimeout(a)}}},[t]),ox(),{dialogProps:{...Ae(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||n,onBlur:a=>{o.current&&a.stopPropagation()}},titleProps:{id:n}}}var pw=p.createContext(null),Bl=p.createContext(null);function qB(e){let t=iw(e),r=p.useRef(null),{triggerProps:n,overlayProps:o}=JN({},t,r),[a,i]=p.useState(null),l=p.useCallback(()=>{r.current&&i(r.current.offsetWidth+"px")},[r]);return Ii({ref:r,onResize:l}),n.id=ze(),o["aria-labelledby"]=n.id,m.createElement(Er,{values:[[Bl,t],[Gi,t],[pw,o],[up,{trigger:"DialogTrigger",triggerRef:r,"aria-labelledby":o["aria-labelledby"],style:{"--trigger-width":a}}]]},m.createElement(p7,{...n,ref:r,isPressed:t.isOpen},e.children))}p.forwardRef(function(e,t){let r=e["aria-labelledby"];[e,t]=Ze(e,t,pw);let{dialogProps:n,titleProps:o}=VB({...e,"aria-labelledby":r},t),a=p.useContext(Bl);!n["aria-label"]&&!n["aria-labelledby"]&&(e["aria-labelledby"]&&(n["aria-labelledby"]=e["aria-labelledby"]));let i=yt({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:a?.close||(()=>{})}}),l=Ae(e,{global:!0});return m.createElement("section",{...ne(l,i,n),ref:t,slot:e.slot||void 0},m.createElement(Er,{values:[[gx,{slots:{[Bi]:{},title:{...o,level:2}}}],[Wx,{slots:{[Bi]:{},close:{onPress:()=>a?.close()}}}]]},i.children))});var hw=({ariaLabel:e,placement:t="bottom-start",hasChrome:r=!0,hasCloseButton:n=!1,closeLabel:o,offset:a=8,padding:i,popover:l,children:s,defaultVisible:u,visible:c,onVisibleChange:d,...f})=>{e||QM("The 'ariaLabel' prop on 'PopoverProvider' will become mandatory in Storybook 11. Provide a concise, accessible label describing the popover's purpose.");let g=rp(t),[y,b]=p.useState(u??!1),v=p.useCallback(E=>{b(E),d?.(E)},[d]),h=p.useCallback(()=>v(!1),[v]);return m.createElement(qB,{defaultOpen:u,isOpen:c??y,onOpenChange:v,...f},m.createElement(f7,null,p.cloneElement(s,{"aria-haspopup":"dialog"})),m.createElement(mB,{"aria-label":e,placement:g,offset:a,style:{outline:"none"}},m.createElement(xa,{hasChrome:r,hideLabel:o,onHide:n?h:void 0,padding:i},typeof l=="function"?l({onHide:h}):l)))},gw=p.forwardRef((e,t)=>m.createElement(xa,{ref:t,...e}));gw.displayName="Tooltip";var YB=p.lazy(()=>kr(()=>import("./WithTooltip-65CFNBJE-D4JJPWih.js"),__vite__mapDeps([6,1,2,3,4]),import.meta.url).then(e=>({default:e.WithTooltip}))),XB=e=>m.createElement(p.Suspense,{fallback:m.createElement("div",null)},m.createElement(YB,{...e})),JB=p.lazy(()=>kr(()=>import("./WithTooltip-65CFNBJE-D4JJPWih.js"),__vite__mapDeps([6,1,2,3,4]),import.meta.url).then(e=>({default:e.WithTooltipPure}))),mw=e=>m.createElement(p.Suspense,{fallback:m.createElement("div",null)},m.createElement(JB,{...e}));const{deprecate:hY}=__STORYBOOK_MODULE_CLIENT_LOGGER__;P.div(({theme:e})=>({fontWeight:e.typography.weight.bold}));P.span();P.div(({theme:e})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:e.typography.weight.bold}}));P.div(({theme:e})=>({color:e.color.defaultText,lineHeight:"18px"}));P.div({padding:15,width:280,boxSizing:"border-box"});const{deprecate:ZB}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var QB=ot(mn(),1);const{deprecate:ej}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var tj=P(({active:e,loading:t,disabled:r,...n})=>m.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}:{}),rj=P.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"}}),nj=P.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column",minWidth:0},({isIndented:e})=>e?{marginLeft:24}:{}),oj=P.span(({theme:e})=>({fontSize:"11px",lineHeight:"14px"}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),aj=P.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:"flex",maxWidth:14})),ij=P.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"}),lj=(0,QB.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}}})),yw=p.forwardRef((e,t)=>{let{loading:r=!1,title:n=m.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:g=void 0,...y}=e,b={active:i,disabled:l},v=lj(e),h=d||f;return ej("`ListItem` is deprecated and will be removed in Storybook 11, use `MenuItem` instead."),m.createElement(ij,{"data-deprecated":"ListItem",ref:t,...y,...b,...v},m.createElement(m.Fragment,null,h&&m.createElement(aj,{...b},h),n||o?m.createElement(nj,{isIndented:s&&!h},n&&m.createElement(tj,{...b,loading:r},n),o&&m.createElement(oj,{...b},o)):null,a&&m.createElement(rj,{...b},a)))});yw.displayName="ListItem";var bw=yw,sj=P.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}:{}),uj=P.div(({theme:e})=>({padding:4,"& + &":{borderTop:`1px solid ${e.appBorderColor}`}})),cj=({id:e,onClick:t,...r})=>{let{active:n,disabled:o,title:a,href:i}=r,l=p.useCallback(s=>t?.(s,{id:e,active:n,disabled:o,title:a,href:i}),[t,e,n,o,a,i]);return m.createElement(bw,{id:`list-item-${e}`,...r,...t&&{onClick:l}})},vw=({links:e,LinkWrapper:t,...r})=>{ZB("`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 m.createElement(sj,{"data-deprecated":"TooltipLinkList",...r,className:"sb-list"},n.filter(a=>a.length).map((a,i)=>m.createElement(uj,{key:a.map(l=>l.id).join(`~${i}~`)},a.map(l=>"content"in l?m.createElement(p.Fragment,{key:l.id},l.content):m.createElement(cj,{key:l.id,isIndented:o,LinkWrapper:t,...l})))))};const{deprecate:jl}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{deprecate:dj}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var fj=P.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})),pj=P.div(({innerStyle:e})=>({minHeight:40,display:"flex",alignItems:"center",width:"100%",gap:6,paddingInline:6,...e})),fp=p.forwardRef(({scrollable:e=!0,children:t,innerStyle:r,...n},o)=>m.createElement(fj,{...n,ref:o,innerStyle:e?void 0:r,scrollable:e},e?m.createElement(pj,{innerStyle:r},t):t));fp.displayName="Bar";var md=P.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}:{});md.displayName="Side";var hj=P.div(({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,width:"100%",backgroundColor:e||""})),gj=P(fp)({paddingInline:0}),Hl=({children:e,backgroundColor:t,className:r="",...n})=>{dj('FlexBar is deprecated. Use Bar with justifyContent: "space-between" instead.');let[o,a]=p.Children.toArray(e);return m.createElement(gj,{"data-deprecated":"FlexBar",backgroundColor:t,className:`sb-bar ${r}`,...n},m.createElement(hj,{bgColor:t},m.createElement(md,{scrollable:n.scrollable,left:!0},o),a?m.createElement(md,{right:!0},a):null))};Hl.displayName="FlexBar";const{deprecate:mj}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var yj=e=>typeof e.props.href=="string",bj=e=>typeof e.props.href!="string";function vj({children:e,...t},r){let n={props:t,ref:r};if(yj(n))return m.createElement("a",{ref:n.ref,...n.props},e);if(bj(n))return m.createElement("button",{ref:n.ref,type:"button",...n.props},e);throw new Error("invalid props")}var Ew=p.forwardRef(vj);Ew.displayName="ButtonOrLink";var Ej=P(Ew,{shouldForwardProp:pl})({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}}),$a=p.forwardRef((e,t)=>(mj("The `TabButton` component is deprecated. Use `TabList` instead."),m.createElement(Ej,{"data-deprecated":"TabButton",ref:t,...e})));$a.displayName="TabButton";var Sj=P.div(({theme:e})=>({height:"100%",display:"flex",padding:30,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:e.background.content})),xj=P.div({display:"flex",flexDirection:"column",gap:4,maxWidth:415}),wj=P.div(({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.color.defaultText})),$j=P.div(({theme:e})=>({fontSize:e.typography.size.s2-1})),Cj=P.div(({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textMutedColor})),Ul=({title:e,description:t,footer:r})=>m.createElement(Sj,null,m.createElement(xj,null,m.createElement(wj,null,e),t&&m.createElement(Cj,null,t)),r&&m.createElement($j,null,r));const{deprecate:_j}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Sw=P.div(({active:e})=>e?{display:"block"}:{display:"none"}),Tj=e=>(_j("The `childrenToList` tabs helper is deprecated. Use `TabsView` instead."),p.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})=>m.createElement(Sw,{active:i,role:"tabpanel"},a)}}));const{deprecate:Aj}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Oj=P.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"})),Rj=P($a)(({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 Dj(e){Aj("The `useList` tabs hook is deprecated. Use `TabsView` instead.");let t=p.useRef(),r=p.useRef(),n=p.useRef(new Map),{width:o=1}=$x({ref:t}),[a,i]=p.useState(e),[l,s]=p.useState([]),u=p.useRef(e),c=p.useCallback(({menuName:f,actions:g})=>{let y=l.some(({active:h})=>h),[b,v]=p.useState(!1);return m.createElement(m.Fragment,null,m.createElement(hw,{ariaLabel:"Additional tabs",visible:b,onVisibleChange:v,placement:"bottom",popover:m.createElement(vw,{links:l.map(({title:h,id:E,color:S,active:x})=>({id:E,title:h,color:S,active:x,onClick:_=>{_.preventDefault(),g.onSelect(E)}}))})},m.createElement(Rj,{id:"addons-menu-button",ref:r,active:y,preActive:b,style:{visibility:l.length?"visible":"hidden"},"aria-hidden":!l.length,className:"tabbutton",type:"button",role:"tab"},f,m.createElement(Oj,{className:"addon-collapsible-icon",isActive:y||b}))),l.map(({title:h,id:E,color:S},x)=>{let _=`index-${x}`;return m.createElement($a,{id:`tabbutton-${Yn(E)??_}`,style:{visibility:"hidden"},"aria-hidden":!0,tabIndex:-1,ref:$=>{n.current.set(E,$)},className:"tabbutton",type:"button",key:E,textColor:S,role:"tab"},h)}))},[l]),d=p.useCallback(()=>{if(!t.current||!r.current)return;let{x:f,width:g}=t.current.getBoundingClientRect(),{width:y}=r.current.getBoundingClientRect(),b=l.length?f+g-y:f+g,v=[],h=0,E=e.filter(S=>{let{id:x}=S,_=n.current.get(x),{width:$=0}=_?.getBoundingClientRect()||{},C=f+h+$>b;return(!C||!_)&&v.push(S),h+=$,C});(v.length!==a.length||u.current!==e)&&(i(v),s(E),u.current=e)},[l.length,e,a]);return p.useLayoutEffect(d,[d,o]),{tabRefs:n,addonsRef:r,tabBarRef:t,visibleList:a,invisibleList:l,AddonTab:c}}var Pj="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",Fj=P.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"}),Ij=P.div({overflow:"hidden","&:first-of-type":{marginLeft:-3},whiteSpace:"nowrap",flexGrow:1}),pp=p.forwardRef((e,t)=>(jl("The `TabBar` component is deprecated. Use `TabsView` instead."),m.createElement(Ij,{"data-deprecated":"TabBar",...e,ref:t})));pp.displayName="TabBar";var Lj=P.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${Pj}`]:{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"}}:{}),xw=p.forwardRef(({active:e,render:t,children:r},n)=>(jl("The `TabWrapper` component is deprecated. Use `TabsView` instead."),m.createElement(Sw,{"data-deprecated":"TabWrapper",ref:n,active:e},t?t():r)));xw.displayName="TabWrapper";var kj=class extends p.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?m.createElement(Ul,{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}},hp=p.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})=>{jl("The `Tabs` component is deprecated. Use `TabsView` instead.");let d=p.useMemo(()=>Tj(e).map((h,E)=>({...h,active:t?h.id===t:E===0})),[e,t]),{visibleList:f,tabBarRef:g,tabRefs:y,AddonTab:b}=Dj(d),v=u??m.createElement(Ul,{title:"Nothing found"});return!c&&d.length===0?v:m.createElement(Fj,{"data-deprecated":"Tabs",absolute:n,bordered:o,id:l},m.createElement(Hl,{scrollable:!1,border:!0,backgroundColor:i},m.createElement(pp,{style:{whiteSpace:"normal"},ref:g,role:"tablist"},f.map(({title:h,id:E,active:S,color:x},_)=>{let $=`index-${_}`;return m.createElement($a,{id:`tabbutton-${Yn(E)??$}`,ref:C=>{y.current.set(E,C)},className:`tabbutton ${S?"tabbutton-active":""}`,type:"button",key:E,active:S,textColor:x,onClick:C=>{C.preventDefault(),r.onSelect(E)},role:"tab","aria-selected":S},typeof h=="function"?m.createElement("title",null):h)}),m.createElement(b,{menuName:s,actions:r})),a),m.createElement(Lj,{id:"panel-tab-content",bordered:o,absolute:n},d.length?d.map(({id:h,active:E,render:S})=>m.createElement(kj,{key:h,active:E},m.createElement(S,{active:E},null))):v))});hp.displayName="Tabs";var gp=class extends p.Component{constructor(e){super(e),this.handlers={onSelect:t=>this.setState({selected:t})},jl("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 m.createElement(hp,{bordered:e,absolute:t,selected:a,backgroundColor:n,menuName:o,actions:this.handlers},r)}};gp.defaultProps={children:[],initial:null,absolute:!1,bordered:!1,backgroundColor:"",menuName:void 0};var ww=P.span(({theme:e})=>({display:"inline-block",width:1,height:20,background:e.appBorderColor,marginLeft:2,marginRight:2}),({force:e})=>e?{}:{"& + &":{display:"none"}});ww.displayName="Separator";P.div(({theme:e})=>({fontSize:e.typography.size.s2-1,height:"100%"}));var $w=new WeakMap;function qi(e,t,r){return e?(typeof t=="string"&&(t=t.replace(/\s+/g,"")),`${$w.get(e)}-${r}-${t}`):""}function Cw(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}=nw({selectionManager:i,key:n,ref:r,isDisabled:u,shouldSelectOnPressUp:a,linkBehavior:"selection"}),f=qi(t,n,"tab"),g=qi(t,n,"tabpanel"),{tabIndex:y}=c,b=t.collection.getItem(n),v=Ae(b?.props,{labelable:!0});delete v.id;let h=_E(b?.props),{focusableProps:E}=Ea({isDisabled:u},r);return{tabProps:ne(v,E,h,c,{id:f,"aria-selected":s,"aria-disabled":u||void 0,"aria-controls":s?g:void 0,tabIndex:u?void 0:y,role:"tab"}),isSelected:s,isDisabled:u,isPressed:d}}function _w(e,t,r){let n=qN(r)?void 0:0;var o;let a=qi(t,(o=e.id)!==null&&o!==void 0?o:t?.selectedKey,"tabpanel"),i=Rl({...e,id:a,"aria-labelledby":qi(t,t?.selectedKey,"tab")});return{tabPanelProps:ne(i,{tabIndex:n,role:"tabpanel","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]})}}var Nj=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 Tw(e,t,r){let{orientation:n="horizontal",keyboardActivation:o="automatic"}=e,{collection:a,selectionManager:i,disabledKeys:l}=t,{direction:s}=Ur(),u=p.useMemo(()=>new Nj(a,s,n,l),[a,l,n,s]),{collectionProps:c}=rw({ref:r,selectionManager:i,keyboardDelegate:u,selectOnFocus:o==="automatic",disallowEmptySelection:!0,scrollRef:r,linkBehavior:"selection"}),d=ze();$w.set(t,d);let f=Rl({...e,id:d});return{tabListProps:{...ne(c,f),role:"tablist","aria-orientation":n,tabIndex:void 0}}}var Mj=P.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}}),Bj=P.div({display:"flex",alignItems:"center",flexShrink:0,position:"relative",overflow:"hidden"}),jj=P.div({display:"flex",overflowX:"auto",scrollbarWidth:"none",msOverflowStyle:"none",WebkitScrollbar:"none",scrollSnapType:"x mandatory",flex:1,"&::-webkit-scrollbar":{display:"none"}}),Hj=P.div({display:"flex",flexShrink:0}),my=28,yy=P.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"})),by=P(Qe)({flexShrink:0,paddingInline:0,width:16}),Uj=({item:e,state:t})=>{let{rendered:r}=e,n=m.useRef(null),o=t,{tabProps:a,isDisabled:i,isPressed:l,isSelected:s}=Cw(e,o,n);return m.createElement(Mj,{...a,isDisabled:i,isPressed:l,isSelected:s,className:`tabbutton ${s?"tabbutton-active":""}`,ref:n},r)},Aw=({state:e,...t})=>{let r=p.useRef(null),n=p.useRef(null),o=p.useRef(null),{tabListProps:a}=Tw({orientation:"horizontal"},e,o),[i,l]=p.useState(!1),[s,u]=p.useState(!1),[c,d]=p.useState(!1),f=p.useCallback(()=>{let h=n.current,E=r.current;if(!h||!E)return;let{scrollLeft:S,scrollWidth:x,clientWidth:_}=h,$=E.clientWidth-(i?my*2:0),C=x>$;l(C),C?(u(S>0),d(S<x-_)):(u(!1),d(!1))},[i]),g=p.useCallback(()=>{f()},[f]);p.useEffect(()=>{let h=n.current;if(!h||typeof window>"u")return;h.addEventListener("scroll",g,{passive:!0});let E=null;typeof ResizeObserver<"u"&&(E=new ResizeObserver(g),E.observe(h));let S=setTimeout(g,0);return()=>{clearTimeout(S),h.removeEventListener("scroll",g),E&&E.disconnect()}},[g]);let y=p.useCallback(h=>{let E=n.current,S=r.current;if(!E||!S||typeof window>"u")return;let x=S.clientWidth-my*2,_=h==="backward"?-x:x;typeof E.scrollBy=="function"?E.scrollBy({left:_,behavior:"smooth"}):E.scrollLeft+=_},[]),b=p.useCallback(()=>y("backward"),[y]),v=p.useCallback(()=>y("forward"),[y]);return m.createElement(Bj,{...t,ref:r,"data-show-scroll-buttons":i},i&&m.createElement(yy,{$showEndBorder:s},m.createElement(by,{variant:"ghost",padding:"small",size:"small",ariaLabel:"Scroll backward",disabled:!s,onClick:b,tabIndex:-1},m.createElement(H3,null))),m.createElement(jj,{ref:n},m.createElement(Hj,{ref:o,...a},[...e.collection].map(h=>m.createElement(Uj,{key:h.key,item:h,state:e})))),i&&m.createElement(yy,{$showStartBorder:c},m.createElement(by,{variant:"ghost",padding:"small",size:"small",ariaLabel:"Scroll forward",disabled:!c,onClick:v,tabIndex:-1},m.createElement(U3,null))))},zj=P.div({overflowY:"hidden",height:"100%"}),Ow=({hasScrollbar:e=!0,renderAllChildren:t=!1,state:r})=>{let n=p.useRef(null),o=r,{tabPanelProps:a}=_w(o.selectedItem??{},o,n);return(t?[...o.collection]:[o.selectedItem]).filter(i=>!!i).map(i=>{let l=o.selectedKey===i.key;return m.createElement(zj,{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?m.createElement(sf,{vertical:!0},i.props.children):i.props.children)})},vy=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 Kj(e){let{filter:t,layoutDelegate:r}=e,n=cp(e),o=p.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=p.useCallback(u=>t?new vy(t(u)):new vy(u),[t]),i=p.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),l=ow(e,a,i),s=p.useMemo(()=>new dp(l,n,{layoutDelegate:r}),[l,n,r]);return Gj(l,s),{collection:l,disabledKeys:o,selectionManager:s}}function Gj(e,t){let r=p.useRef(null);p.useEffect(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&r.current){let c=r.current.getItem(t.focusedKey),d=[...r.current.getKeys()].map(h=>{let E=r.current.getItem(h);return E?.type==="item"?E:null}).filter(h=>h!==null),f=[...e.getKeys()].map(h=>{let E=e.getItem(h);return E?.type==="item"?E:null}).filter(h=>h!==null);var n,o;let g=((n=d?.length)!==null&&n!==void 0?n:0)-((o=f?.length)!==null&&o!==void 0?o:0);var a,i,l;let y=Math.min(g>1?Math.max(((a=c?.index)!==null&&a!==void 0?a:0)-g+1,0):(i=c?.index)!==null&&i!==void 0?i:0,((l=f?.length)!==null&&l!==void 0?l:0)-1),b=null,v=!1;for(;y>=0;){if(!t.isDisabled(f[y].key)){b=f[y];break}if(y<f.length-1&&!v)y++;else{v=!0;var s,u;y>((s=c?.index)!==null&&s!==void 0?s:0)&&(y=(u=c?.index)!==null&&u!==void 0?u:0),y--}}t.setFocusedKey(b?b.key:null)}r.current=e},[e,t])}function Wj(e){var t;let[r,n]=Dl(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),o=p.useMemo(()=>r!=null?[r]:[],[r]),{collection:a,disabledKeys:i,selectionManager:l}=Kj({...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 Vj(e){var t,r;let n=Wj({...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:Ey(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=p.useRef(i);return p.useEffect(()=>{let s=i;e.selectedKey==null&&(o.isEmpty||s==null||!a.getItem(s))&&(s=Ey(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 Ey(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}P.div({display:"flex",flexDirection:"column",height:"100%"});P(Ow)(()=>({flex:1}));P(Aw)(({$simulatedGap:e})=>({flex:"1 1 0%",'&[data-show-scroll-buttons="true"]':{marginInlineEnd:e}}));var zl=p.createContext(null),ao=p.createContext(null),qj=p.forwardRef(function(e,t){[e,t]=Ze(e,t,zl);let{children:r,orientation:n="horizontal"}=e;return r=p.useMemo(()=>typeof r=="function"?r({orientation:n,defaultChildren:null}):r,[r,n]),m.createElement(jx,{content:r},o=>m.createElement(Yj,{props:e,collection:o,tabsRef:t}))});function Yj({props:e,tabsRef:t,collection:r}){let{orientation:n="horizontal"}=e,o=Vj({...e,collection:r,children:void 0}),{focusProps:a,isFocused:i,isFocusVisible:l}=Il({within:!0}),s=p.useMemo(()=>({orientation:n,isFocusWithin:i,isFocusVisible:l}),[n,i,l]),u=yt({...e,defaultClassName:"react-aria-Tabs",values:s}),c=Ae(e,{global:!0});return m.createElement("div",{...ne(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},m.createElement(Er,{values:[[zl,e],[ao,o]]},u.children))}var Xj=p.forwardRef(function(e,t){return p.useContext(ao)?m.createElement(Jj,{props:e,forwardedRef:t}):m.createElement(zx,e)});function Jj({props:e,forwardedRef:t}){let r=p.useContext(ao),{CollectionRoot:n}=p.useContext(wa),{orientation:o="horizontal",keyboardActivation:a="automatic"}=Yf(zl),i=Ut(t),{tabListProps:l}=Tw({...e,orientation:o,keyboardActivation:a},r,i),s=yt({...e,children:null,defaultClassName:"react-aria-TabList",values:{orientation:o,state:r}}),u=Ae(e,{global:!0});return delete u.id,m.createElement("div",{...ne(u,s,l),ref:i,"data-orientation":o||void 0},m.createElement(n,{collection:r.collection,persistedKeys:Yx(r.selectionManager.focusedKey)}))}var Rw=class extends wn{};Rw.type="item";var Zj=Nl(Rw,(e,t,r)=>{let n=p.useContext(ao),o=Ut(t),{tabProps:a,isSelected:i,isDisabled:l,isPressed:s}=Cw({key:r.key,...e},n,o),{focusProps:u,isFocused:c,isFocusVisible:d}=Il(),{hoverProps:f,isHovered:g}=yo({isDisabled:l,onHoverStart:e.onHoverStart,onHoverEnd:e.onHoverEnd,onHoverChange:e.onHoverChange}),y=yt({...e,children:r.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:i,isDisabled:l,isFocused:c,isFocusVisible:d,isPressed:s,isHovered:g}}),b=r.props.href?"a":"div",v=Ae(e,{global:!0});return delete v.id,delete v.onClick,m.createElement(b,{...ne(v,y,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":g||void 0},y.children)}),Qj=lp(function(e,t){let r=p.useContext(ao),n=Ut(t),{id:o,...a}=e,{tabPanelProps:i}=_w(e,r,n),{focusProps:l,isFocused:s,isFocusVisible:u}=Il(),c=r.selectedKey===e.id,d=yt({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:s,isFocusVisible:u,isInert:s0(!c),state:r}});if(!c&&!e.shouldForceMount)return null;let f=Ae(a,{global:!0});delete f.id;let g=c?ne(f,i,l,d):d;return m.createElement("div",{...g,ref:n,"data-focused":s||void 0,"data-focus-visible":u||void 0,inert:s0(!c||e.inert),"data-inert":c?void 0:"true"},m.createElement(Er,{values:[[zl,null],[ao,null]]},m.createElement(wa.Provider,{value:qx},d.children)))});P.div({display:"flex",alignItems:"center",flexShrink:0,position:"relative",overflow:"hidden"});P.div({display:"flex",overflowX:"auto",scrollbarWidth:"none",msOverflowStyle:"none",WebkitScrollbar:"none",scrollSnapType:"x mandatory",flex:1,"&::-webkit-scrollbar":{display:"none"}});P(Xj)({display:"flex",flexShrink:0});P.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"}));P(Qe)({flexShrink:0,paddingInline:0,width:16});P(Qj)({overflowY:"hidden",height:"100%",display:"block",'&[inert="true"]':{display:"none"}});P(qj)(({$simulatedGap:e})=>({display:"flex",flexDirection:"column",height:"100%",".tablist":{flex:"1 1 100%"},".tablist.tablist-has-scroll":{marginInlineEnd:e},"& > :not(:first-child)":{flex:1}}));P(Zj)(({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 eH=Me`
687
- from {
688
- transform: rotate(0deg);
689
- }
690
- to {
691
- transform: rotate(360deg);
692
- }
693
- `,tH=P.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:`${eH} 0.7s linear infinite`,mixBlendMode:"difference"})),Sy=P.div({position:"absolute",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"}),rH=P.div(({theme:e})=>({position:"relative",width:"80%",marginBottom:"0.75rem",maxWidth:300,height:5,borderRadius:5,background:yr(.8,e.color.secondary),overflow:"hidden",cursor:"progress"})),nH=P.div(({theme:e})=>({position:"absolute",top:0,left:0,height:"100%",background:e.color.secondary})),xy=P.div(({theme:e})=>({minHeight:"2em",fontSize:`${e.typography.size.s1}px`,color:e.textMutedColor})),oH=P(N3)(({theme:e})=>({width:20,height:20,marginBottom:"0.5rem",color:e.textMutedColor})),aH=Me`
694
- from { content: "..." }
695
- 33% { content: "." }
696
- 66% { content: ".." }
697
- to { content: "..." }
698
- `,iH=P.span({"&::after":{content:"'...'",animation:`${aH} 1s linear infinite`,animationDelay:"1s",display:"inline-block",width:"1em",height:"auto"}}),Dw=({progress:e,error:t,size:r,...n})=>{if(t)return m.createElement(Sy,{"aria-label":t.toString(),"aria-live":"polite",role:"status",...n},m.createElement(oH,null),m.createElement(xy,null,t.message));if(e){let{value:o,modules:a}=e,{message:i}=e;return a&&(i+=` ${a.complete} / ${a.total} modules`),m.createElement(Sy,{"aria-label":"Content is loading...","aria-live":"polite","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":o*100,"aria-valuetext":i,role:"progressbar",...n},m.createElement(rH,null,m.createElement(nH,{style:{width:`${o*100}%`}})),m.createElement(xy,null,i,o<1&&m.createElement(iH,{key:i})))}return m.createElement(tH,{"aria-label":"Content is loading...","aria-live":"polite",role:"status",size:r,...n})},lH=Me({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});P.div(({size:e})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",minWidth:e,minHeight:e}));P.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:`${lH} 1s linear infinite`,circle:{opacity:.25}});const{deprecate:sH}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function uH(e){let t={},r=e.split("&");for(let n=0;n<r.length;n++){let o=r[n].split("=");t[decodeURIComponent(o[0])]=decodeURIComponent(o[1]||"")}return t}var mp=(e,t,r={})=>{sH("getStoryHref is deprecated and will be removed in Storybook 11, use the api.getStoryHrefs method instead");let[n,o]=e.split("?"),a=o?{...uH(o),...r,id:t}:{...r,id:t};return`${n}?${Object.entries(a).map(i=>`${i[0]}=${i[1]}`).join("&")}`};P.pre`
699
- line-height: 18px;
700
- padding: 11px 1rem;
701
- white-space: pre-wrap;
702
- background: rgba(0, 0, 0, 0.05);
703
- color: ${Y.darkest};
704
- border-radius: 3px;
705
- margin: 1rem 0;
706
- width: 100%;
707
- display: block;
708
- overflow: hidden;
709
- font-family: ${Nt.fonts.mono};
710
- font-size: ${Nt.size.s2-1}px;
711
- `;var Pw=yE;Object.keys(yE).forEach(e=>{p.forwardRef((t,r)=>p.createElement(e,{...t,ref:r}))});const cH=Object.freeze(Object.defineProperty({__proto__:null,A:Qv,ActionBar:O1,ActionList:hi,Bar:fp,Blockquote:eE,Button:Qe,Code:Lf,DL:tE,Div:rE,EmptyTabContent:Ul,ErrorFormatter:_x,FlexBar:Hl,Form:xn,H1:nE,H2:kf,H3:Nf,H4:oE,H5:aE,H6:iE,HR:lE,IconButton:Ir,Img:sE,LI:uE,Link:to,ListItem:bw,Loader:Dw,OL:cE,P:dE,Popover:xa,PopoverProvider:hw,Pre:fE,ResetWrapper:If,ScrollArea:sf,Select:Dx,Separator:ww,Span:pE,SyntaxHighlighter:ya,TT:hE,TabBar:pp,TabButton:$a,TabList:Aw,TabPanel:Ow,TabWrapper:xw,Table:gE,Tabs:hp,TabsState:gp,ToggleButton:np,Tooltip:gw,TooltipLinkList:vw,TooltipNote:vE,TooltipProvider:lx,UL:mE,WithTooltip:XB,WithTooltipPure:mw,Zoom:Cx,codeCommon:br,components:Pw,convertToReactAriaPlacement:rp,createCopyToClipboardFunction:L3,getStoryHref:mp,nameSpaceClassNames:we,withReset:_e},Symbol.toStringTag,{value:"Module"}));function nt(){return nt=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},nt.apply(null,arguments)}w(nt,"_extends");function Fw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}w(Fw,"_assertThisInitialized");function io(e,t){return io=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},io(e,t)}w(io,"_setPrototypeOf");function Iw(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,io(e,t)}w(Iw,"_inheritsLoose");function Yi(e){return Yi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Yi(e)}w(Yi,"_getPrototypeOf");function Lw(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}w(Lw,"_isNativeFunction");function yp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yp=w(function(){return!!e},"_isNativeReflectConstruct"))()}w(yp,"_isNativeReflectConstruct");function kw(e,t,r){if(yp())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&io(o,r.prototype),o}w(kw,"_construct");function Xi(e){var t=typeof Map=="function"?new Map:void 0;return Xi=w(function(n){if(n===null||!Lw(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,o)}function o(){return kw(n,arguments,Yi(this).constructor)}return w(o,"Wrapper"),o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),io(o,n)},"_wrapNativeSuper"),Xi(e)}w(Xi,"_wrapNativeSuper");function dH(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],o=[],a;for(a=1;a<t.length;a+=1)o.push(t[a]);return o.forEach(function(i){n=n.replace(/%[a-z]/,i)}),n}w(dH,"format");var ut=(function(e){Iw(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,Fw(n)}return w(t,"PolishedError"),t})(Xi(Error));function yd(e,t){return e.substr(-t.length)===t}w(yd,"endsWith");var fH=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function bd(e){if(typeof e!="string")return e;var t=e.match(fH);return t?parseFloat(e):e}w(bd,"stripUnit");var pH=w(function(t){return function(r,n){n===void 0&&(n="16px");var o=r,a=n;if(typeof r=="string"){if(!yd(r,"px"))throw new ut(69,t,r);o=bd(r)}if(typeof n=="string"){if(!yd(n,"px"))throw new ut(70,t,n);a=bd(n)}if(typeof o=="string")throw new ut(71,r,t);if(typeof a=="string")throw new ut(72,n,t);return""+o/a+t}},"pxtoFactory"),Nw=pH;Nw("em");Nw("rem");function yi(e){return Math.round(e*255)}w(yi,"colorToInt");function Mw(e,t,r){return yi(e)+","+yi(t)+","+yi(r)}w(Mw,"convertToInt");function lo(e,t,r,n){if(n===void 0&&(n=Mw),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,g=u+c;return n(d,f,g)}w(lo,"hslToRgb");var wy={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 Bw(e){if(typeof e!="string")return e;var t=e.toLowerCase();return wy[t]?"#"+wy[t]:e}w(Bw,"nameToHex");var hH=/^#[a-fA-F0-9]{6}$/,gH=/^#[a-fA-F0-9]{8}$/,mH=/^#[a-fA-F0-9]{3}$/,yH=/^#[a-fA-F0-9]{4}$/,ec=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,bH=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,vH=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,EH=/^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 hn(e){if(typeof e!="string")throw new ut(3);var t=Bw(e);if(t.match(hH))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(gH)){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(mH))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(yH)){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=ec.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=bH.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=vH.exec(t);if(i){var l=parseInt(""+i[1],10),s=parseInt(""+i[2],10)/100,u=parseInt(""+i[3],10)/100,c="rgb("+lo(l,s,u)+")",d=ec.exec(c);if(!d)throw new ut(4,t,c);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10)}}var f=EH.exec(t.substring(0,50));if(f){var g=parseInt(""+f[1],10),y=parseInt(""+f[2],10)/100,b=parseInt(""+f[3],10)/100,v="rgb("+lo(g,y,b)+")",h=ec.exec(v);if(!h)throw new ut(4,t,v);return{red:parseInt(""+h[1],10),green:parseInt(""+h[2],10),blue:parseInt(""+h[3],10),alpha:parseFloat(""+f[4])>1?parseFloat(""+f[4])/100:parseFloat(""+f[4])}}throw new ut(5)}w(hn,"parseToRgb");function jw(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}}w(jw,"rgbToHsl");function Sr(e){return jw(hn(e))}w(Sr,"parseToHsl");var SH=w(function(t){return t.length===7&&t[1]===t[2]&&t[3]===t[4]&&t[5]===t[6]?"#"+t[1]+t[3]+t[5]:t},"reduceHexValue"),vd=SH;function Rr(e){var t=e.toString(16);return t.length===1?"0"+t:t}w(Rr,"numberToHex");function bi(e){return Rr(Math.round(e*255))}w(bi,"colorToHex");function Hw(e,t,r){return vd("#"+bi(e)+bi(t)+bi(r))}w(Hw,"convertToHex");function ia(e,t,r){return lo(e,t,r,Hw)}w(ia,"hslToHex");function Uw(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return ia(e,t,r);if(typeof e=="object"&&t===void 0&&r===void 0)return ia(e.hue,e.saturation,e.lightness);throw new ut(1)}w(Uw,"hsl");function zw(e,t,r,n){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?ia(e,t,r):"rgba("+lo(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?ia(e.hue,e.saturation,e.lightness):"rgba("+lo(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new ut(2)}w(zw,"hsla");function Ji(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return vd("#"+Rr(e)+Rr(t)+Rr(r));if(typeof e=="object"&&t===void 0&&r===void 0)return vd("#"+Rr(e.red)+Rr(e.green)+Rr(e.blue));throw new ut(6)}w(Ji,"rgb");function Lt(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var o=hn(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?Ji(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?Ji(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new ut(7)}w(Lt,"rgba");var xH=w(function(t){return typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"&&(typeof t.alpha!="number"||typeof t.alpha>"u")},"isRgb"),wH=w(function(t){return typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"&&typeof t.alpha=="number"},"isRgba"),$H=w(function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"&&(typeof t.alpha!="number"||typeof t.alpha>"u")},"isHsl"),CH=w(function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"&&typeof t.alpha=="number"},"isHsla");function xr(e){if(typeof e!="object")throw new ut(8);if(wH(e))return Lt(e);if(xH(e))return Ji(e);if(CH(e))return zw(e);if($H(e))return Uw(e);throw new ut(8)}w(xr,"toColorString");function bp(e,t,r){return w(function(){var o=r.concat(Array.prototype.slice.call(arguments));return o.length>=t?e.apply(this,o):bp(e,t,o)},"fn")}w(bp,"curried");function dt(e){return bp(e,e.length,[])}w(dt,"curry");function Kw(e,t){if(t==="transparent")return t;var r=Sr(t);return xr(nt({},r,{hue:r.hue+parseFloat(e)}))}w(Kw,"adjustHue");dt(Kw);function $n(e,t,r){return Math.max(e,Math.min(t,r))}w($n,"guard");function Gw(e,t){if(t==="transparent")return t;var r=Sr(t);return xr(nt({},r,{lightness:$n(0,1,r.lightness-parseFloat(e))}))}w(Gw,"darken");var _H=dt(Gw),Wt=_H;function Ww(e,t){if(t==="transparent")return t;var r=Sr(t);return xr(nt({},r,{saturation:$n(0,1,r.saturation-parseFloat(e))}))}w(Ww,"desaturate");dt(Ww);function Vw(e,t){if(t==="transparent")return t;var r=Sr(t);return xr(nt({},r,{lightness:$n(0,1,r.lightness+parseFloat(e))}))}w(Vw,"lighten");var TH=dt(Vw),Qr=TH;function qw(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=hn(t),o=nt({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),a=hn(r),i=nt({},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,g={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 Lt(g)}w(qw,"mix");var AH=dt(qw),Yw=AH;function Xw(e,t){if(t==="transparent")return t;var r=hn(t),n=typeof r.alpha=="number"?r.alpha:1,o=nt({},r,{alpha:$n(0,1,(n*100+parseFloat(e)*100)/100)});return Lt(o)}w(Xw,"opacify");var OH=dt(Xw),Ja=OH;function Jw(e,t){if(t==="transparent")return t;var r=Sr(t);return xr(nt({},r,{saturation:$n(0,1,r.saturation+parseFloat(e))}))}w(Jw,"saturate");dt(Jw);function Zw(e,t){return t==="transparent"?t:xr(nt({},Sr(t),{hue:parseFloat(e)}))}w(Zw,"setHue");dt(Zw);function Qw(e,t){return t==="transparent"?t:xr(nt({},Sr(t),{lightness:parseFloat(e)}))}w(Qw,"setLightness");dt(Qw);function e$(e,t){return t==="transparent"?t:xr(nt({},Sr(t),{saturation:parseFloat(e)}))}w(e$,"setSaturation");dt(e$);function t$(e,t){return t==="transparent"?t:Yw(parseFloat(e),"rgb(0, 0, 0)",t)}w(t$,"shade");dt(t$);function r$(e,t){return t==="transparent"?t:Yw(parseFloat(e),"rgb(255, 255, 255)",t)}w(r$,"tint");dt(r$);function n$(e,t){if(t==="transparent")return t;var r=hn(t),n=typeof r.alpha=="number"?r.alpha:1,o=nt({},r,{alpha:$n(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return Lt(o)}w(n$,"transparentize");var RH=dt(n$),xe=RH,DH=P.div(_e,({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:xe(.3,e.color.defaultText),fontSize:e.typography.size.s2})),o$=w(e=>m.createElement(DH,{...e,className:"docblock-emptyblock sb-unstyled"}),"EmptyBlock"),PH=P(ya)(({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"}})),FH=P.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"})),Za=P.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${Ti}`]:{margin:0}})),IH=w(()=>m.createElement(FH,null,m.createElement(Za,null),m.createElement(Za,{style:{width:"80%"}}),m.createElement(Za,{style:{width:"30%"}}),m.createElement(Za,{style:{width:"80%"}})),"SourceSkeleton"),a$=w(({isLoading:e,error:t,language:r,code:n,dark:o,format:a=!0,...i})=>{const{typography:l}=dl();if(e)return m.createElement(IH,null);if(t)return m.createElement(o$,null,t);const s=m.createElement(PH,{bordered:!0,copyable:!0,format:a,language:r??"jsx",className:"docblock-source sb-unstyled",...i},n);if(typeof o>"u")return s;const u=o?nn.dark:nn.light;return m.createElement(rf,{theme:_i({...u,fontCode:l.fonts.mono,fontBase:l.fonts.base})},s)},"Source"),LH=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.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}),p.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}))),kH=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M4 5.5a.5.5 0 000 1h4a.5.5 0 000-1H4z",fill:e}),p.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}))),NH=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.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}))),MH=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M7 9.5a2.5 2.5 0 100-5 2.5 2.5 0 000 5z",fill:e}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7l-.21.293C13.669 7.465 10.739 11.5 7 11.5S.332 7.465.21 7.293L0 7l.21-.293C.331 6.536 3.261 2.5 7 2.5s6.668 4.036 6.79 4.207L14 7zM2.896 5.302A12.725 12.725 0 001.245 7c.296.37.874 1.04 1.65 1.698C4.043 9.67 5.482 10.5 7 10.5c1.518 0 2.958-.83 4.104-1.802A12.72 12.72 0 0012.755 7c-.297-.37-.875-1.04-1.65-1.698C9.957 4.33 8.517 3.5 7 3.5c-1.519 0-2.958.83-4.104 1.802z",fill:e}))),BH=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11zM11.104 8.698c-.177.15-.362.298-.553.439l.714.714a13.25 13.25 0 002.526-2.558L14 7l-.21-.293C13.669 6.536 10.739 2.5 7 2.5c-.89 0-1.735.229-2.506.58l.764.763A4.859 4.859 0 017 3.5c1.518 0 2.958.83 4.104 1.802A12.724 12.724 0 0112.755 7a12.72 12.72 0 01-1.65 1.698zM.21 6.707c.069-.096 1.03-1.42 2.525-2.558l.714.714c-.191.141-.376.288-.553.439A12.725 12.725 0 001.245 7c.296.37.874 1.04 1.65 1.698C4.043 9.67 5.482 10.5 7 10.5a4.86 4.86 0 001.742-.344l.764.764c-.772.351-1.616.58-2.506.58C3.262 11.5.332 7.465.21 7.293L0 7l.21-.293z",fill:e}),p.createElement("path",{d:"M4.5 7c0-.322.061-.63.172-.914l3.242 3.242A2.5 2.5 0 014.5 7zM9.328 7.914L6.086 4.672a2.5 2.5 0 013.241 3.241z",fill:e}))),Ed=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.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}),p.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}))),gY=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.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}))),jH=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.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}),p.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}))),HH=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.createElement("path",{d:"M3.5 6.5a.5.5 0 000 1h7a.5.5 0 000-1h-7z",fill:e}),p.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}))),UH=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.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}),p.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}))),zH=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.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}),p.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}))),KH=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.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}))),GH=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.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}))),WH=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.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}))),i$=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.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}))),VH=p.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>p.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},p.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}))),qH=J_({"../../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 globalThis<"u"?n=globalThis:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return w(function r(n,o,a){function i(u,c){if(!o[u]){if(!n[u]){var d=typeof Ta=="function"&&Ta;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 g=o[u]={exports:{}};n[u][0].call(g.exports,function(y){var b=n[u][1][y];return i(b||y)},g,g.exports,r,n,o,a)}return o[u].exports}w(i,"s");for(var l=typeof Ta=="function"&&Ta,s=0;s<a.length;s++)i(a[s]);return i},"e")({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}w(a,"Similar"),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 g=w(function(){var y=c,b,v,h=arguments.length-1,E=Array(h+1),S=!0,x;if((g.numArgs||g.numArgs===0)&&g.numArgs!==h+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(x=0;x<h;x++){if(E[x]={cacheItem:y,arg:arguments[x]},y.has(arguments[x])){y=y.get(arguments[x]);continue}S=!1,b=new a(!1),y.set(arguments[x],b),y=b}return S&&(y.has(arguments[h])?v=y.get(arguments[h]):S=!1),S||(v=f.apply(null,arguments),y.set(arguments[h],v)),u>0&&(E[h]={cacheItem:y,arg:arguments[h]},S?i(d,E):d.push(E),d.length>u&&l(d.shift())),g.wasMemoized=S,g.numArgs=h+1,v},"memoizerific");return g.limit=u,g.wasMemoized=!1,g.cache=c,g.lru=d,g}};function i(u,c){var d=u.length,f=c.length,g,y,b;for(y=0;y<d;y++){for(g=!0,b=0;b<f;b++)if(!s(u[y][b].arg,c[b].arg)){g=!1;break}if(g)break}u.push(u.splice(y,1)[0])}w(i,"moveToMostRecentLru");function l(u){var c=u.length,d=u[c-1],f,g;for(d.cacheItem.delete(d.arg),g=c-2;g>=0&&(d=u[g],f=d.cacheItem.get(d.arg),!f||!f.size);g--)d.cacheItem.delete(d.arg)}w(l,"removeCachedResult");function s(u,c){return u===c||u!==u&&c!==c}w(s,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})}});const{once:YH}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function l$(e){return e==null||typeof e!="object"&&typeof e!="function"}w(l$,"isPrimitive");function s$(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}w(s$,"isTypedArray");function u$(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}w(u$,"getSymbols");function c$(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}w(c$,"getTag");var XH="[object RegExp]",JH="[object String]",ZH="[object Number]",QH="[object Boolean]",eU="[object Arguments]",tU="[object Symbol]",rU="[object Date]",nU="[object Map]",oU="[object Set]",aU="[object Array]",iU="[object ArrayBuffer]",lU="[object Object]",sU="[object DataView]",uU="[object Uint8Array]",cU="[object Uint8ClampedArray]",dU="[object Uint16Array]",fU="[object Uint32Array]",pU="[object Int8Array]",hU="[object Int16Array]",gU="[object Int32Array]",mU="[object Float32Array]",yU="[object Float64Array]";function rn(e,t,r,n=new Map,o=void 0){const a=o?.(e,t,r,n);if(a!==void 0)return a;if(l$(e))return e;if(n.has(e))return n.get(e);if(Array.isArray(e)){const i=new Array(e.length);n.set(e,i);for(let l=0;l<e.length;l++)i[l]=rn(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){const i=new RegExp(e.source,e.flags);return i.lastIndex=e.lastIndex,i}if(e instanceof Map){const i=new Map;n.set(e,i);for(const[l,s]of e)i.set(l,rn(s,l,r,n,o));return i}if(e instanceof Set){const i=new Set;n.set(e,i);for(const l of e)i.add(rn(l,void 0,r,n,o));return i}if(typeof Buffer<"u"&&Buffer.isBuffer(e))return e.subarray();if(s$(e)){const i=new(Object.getPrototypeOf(e)).constructor(e.length);n.set(e,i);for(let l=0;l<e.length;l++)i[l]=rn(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){const i=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return n.set(e,i),kn(i,e,r,n,o),i}if(typeof File<"u"&&e instanceof File){const i=new File([e],e.name,{type:e.type});return n.set(e,i),kn(i,e,r,n,o),i}if(e instanceof Blob){const i=new Blob([e],{type:e.type});return n.set(e,i),kn(i,e,r,n,o),i}if(e instanceof Error){const 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,kn(i,e,r,n,o),i}if(typeof e=="object"&&d$(e)){const i=Object.create(Object.getPrototypeOf(e));return n.set(e,i),kn(i,e,r,n,o),i}return e}w(rn,"cloneDeepWithImpl");function kn(e,t,r=e,n,o){const a=[...Object.keys(t),...u$(t)];for(let i=0;i<a.length;i++){const l=a[i],s=Object.getOwnPropertyDescriptor(e,l);(s==null||s.writable)&&(e[l]=rn(t[l],l,r,n,o))}}w(kn,"copyProperties");function d$(e){switch(c$(e)){case eU:case aU:case iU:case sU:case QH:case rU:case mU:case yU:case pU:case hU:case gU:case nU:case ZH:case lU:case XH:case oU:case JH:case tU:case uU:case cU:case dU:case fU:return!0;default:return!1}}w(d$,"isCloneableObject");function f$(e){return rn(e,void 0,e,new Map,void 0)}w(f$,"cloneDeep");function p$(e,t){const r={},n=Object.keys(e);for(let o=0;o<n.length;o++){const a=n[o],i=e[a];t(i,a)&&(r[a]=i)}return r}w(p$,"pickBy");var Fe=w(e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,"toGlobalSelector"),vp=600,bU=P.h1(_e,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${vp}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),vU=P.h2(_e,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${vp}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:xe(.25,e.color.defaultText)})),EU=P.div(({theme:e})=>{const 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"?xe(.1,e.color.defaultText):xe(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",minWidth:0,[Fe("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}},[Fe("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}},[Fe("div")]:t,[Fe("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}},[Fe("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[Fe("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[Fe("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[Fe("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[Fe("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[Fe("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[Fe("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[Fe("img")]:{maxWidth:"100%"},[Fe("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[Fe("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[Fe("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[Fe("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"}},[Fe("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"}}},[Fe("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}},[Fe("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),SU=P.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: ${vp}px)`]:{}})),xU=w(({children:e,toc:t})=>m.createElement(SU,{className:"sbdocs sbdocs-wrapper"},t,m.createElement(EU,{className:"sbdocs sbdocs-content"},e)),"DocsPageWrapper");globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=p.createContext(null),globalThis.__DOCS_CONTEXT__.displayName="DocsContext");var Ot=globalThis?globalThis.__DOCS_CONTEXT__:p.createContext(null);function h$(e,t){const r=g$([e],t);return r&&r[0]}w(h$,"useStory");function g$(e,t){const[r,n]=p.useState({});return p.useEffect(()=>{Promise.all(e.map(async o=>{const 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}})}w(g$,"useStories");var m$=w((e,t)=>{const{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},"getStoryId"),wU=w((e,t,r)=>{const{parameters:n={}}=t||{},{docs:o={}}=n,a=o.story||{};if(o.disable)return null;if(e.inline??a.inline??!1){const s=e.height??a.height,u=e.autoplay??a.autoplay??!1;return{story:t,inline:!0,height:s,autoplay:u,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}const l=e.height??a.height??a.iframeHeight??"100px";return{story:t,inline:!1,height:l,primary:!!e.__primary}},"getStoryProps"),$U=w((e={__forceInitialArgs:!1,__primary:!1})=>{const t=p.useContext(Ot),r=m$(e,t),n=h$(r,t);if(!n)return m.createElement(v$,null);const o=wU(e,n,t);return o?m.createElement(PU,{...o}):null},"Story"),Kl=w(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}`}),"getBlockBackgroundStyle"),{window:CU}=globalThis,y$=class extends p.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){const{id:t}=this.props;this.iframe=CU.document.getElementById(t)}shouldComponentUpdate(t){const{scale:r}=t;return r!==this.props.scale&&this.setIframeBodyStyle({width:`${r*100}%`,height:`${r*100}%`,transform:`scale(${1/r})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(t){return Object.assign(this.iframe.contentDocument.body.style,t)}render(){const{id:t,title:r,src:n,allowFullScreen:o,scale:a,...i}=this.props;return m.createElement("iframe",{id:t,title:r,src:n,...o?{allow:"fullscreen"}:{},loading:"lazy",...i})}};w(y$,"IFrame");var _U=y$,b$=p.createContext({scale:1}),{PREVIEW_URL:TU}=globalThis,AU=TU||"iframe.html",Sd=w(({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,"storyBlockIdFromId"),OU=w(e=>{const t=p.useRef(),[r,n]=p.useState(!0),[o,a]=p.useState(),{story:i,height:l,autoplay:s,forceInitialArgs:u,renderStoryToElement:c}=e;return p.useEffect(()=>{if(!(i&&t.current))return()=>{};const d=t.current,f=c(i,d,{showMain:w(()=>{},"showMain"),showError:w(({title:g,description:y})=>a(new Error(`${g} - ${y}`)),"showError"),showException:w(g=>a(g),"showException")},{autoplay:s,forceInitialArgs:u});return n(!1),()=>{Promise.resolve().then(()=>f())}},[s,c,i]),o?m.createElement("pre",null,m.createElement(_x,{error:o})):m.createElement(m.Fragment,null,l?m.createElement("style",null,`#${Sd(e)} { min-height: ${l}; transform: translateZ(0); overflow: auto }`):null,r&&m.createElement(v$,null),m.createElement("div",{ref:t,id:`${Sd(e)}-inner`,"data-name":i.name}))},"InlineStory"),RU=w(({story:e,height:t="500px"})=>m.createElement("div",{style:{width:"100%",height:t}},m.createElement(b$.Consumer,null,({scale:r})=>m.createElement(_U,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:mp(AU,e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),"IFrameStory"),DU=P.strong(({theme:e})=>({color:e.color.orange})),PU=w(e=>{const{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?m.createElement(DU,null,"This story mounts inside of play. Set"," ",m.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story?ref=ui#autoplay"},"autoplay")," ","to true to view this story."):m.createElement("div",{id:Sd(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?m.createElement(OU,{...e}):m.createElement(RU,{...e}))},"Story"),v$=w(()=>m.createElement(Dw,null),"StorySkeleton"),FU=P(Hl)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),tc=P.div({display:"flex",alignItems:"center",gap:4}),$y=P.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`})),IU=w(({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:o,...a})=>m.createElement(FU,{...a},m.createElement(tc,{key:"left"},e?[1,2,3].map(i=>m.createElement($y,{key:i})):m.createElement(m.Fragment,null,m.createElement(Ir,{key:"zoomin",onClick:i=>{i.preventDefault(),n(.8)},title:"Zoom in"},m.createElement(LH,null)),m.createElement(Ir,{key:"zoomout",onClick:i=>{i.preventDefault(),n(1.25)},title:"Zoom out"},m.createElement(kH,null)),m.createElement(Ir,{key:"zoomreset",onClick:i=>{i.preventDefault(),o()},title:"Reset zoom"},m.createElement(NH,null)))),e?m.createElement(tc,{key:"right"},m.createElement($y,null)):r&&t&&m.createElement(tc,{key:"right"},m.createElement(Ir,{key:"opener",asChild:!0},m.createElement("a",{href:mp(r,t),target:"_blank",rel:"noopener noreferrer","aria-label":"Open canvas in new tab"},m.createElement(zH,null))))),"Toolbar"),LU=P.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)`}}:{}),Cy=P(a$)(({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)":Wt(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Wt(.05,e.background.content)}})),kU=P.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...Kl(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),NU=w((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:w(()=>r(!1),"onClick")}};case t:return{source:m.createElement(Cy,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:w(()=>r(!1),"onClick")}};default:return{source:m.createElement(Cy,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:w(()=>r(!0),"onClick")}}}},"getSource");function E$(e){if(p.Children.count(e)===1){const t=e;if(t.props)return t.props}return null}w(E$,"getChildProps");var MU=P(IU)({position:"absolute",top:0,left:0,right:0,height:40}),BU=P.div({overflow:"hidden",position:"relative"}),S$=w(({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})=>{const[f,g]=p.useState(i),{source:y,actionItem:b}=NU(o,f,g),[v,h]=p.useState(1),E=[s].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),S=o?[b]:[],[x,_]=p.useState(l?[...l]:[]),$=[...S,...x],{window:C}=globalThis,A=p.useContext(Ot),D=p.useCallback(async N=>{const{createCopyToClipboardFunction:L}=await kr(async()=>{const{createCopyToClipboardFunction:R}=await Promise.resolve().then(()=>cH);return{createCopyToClipboardFunction:R}},void 0,import.meta.url);L()},[]),F=w(N=>{const L=C.getSelection();L&&L.type==="Range"||(N.preventDefault(),x.filter(R=>R.title==="Copied").length===0&&D(y?.props.code??"").then(()=>{_([...x,{title:"Copied",onClick:w(()=>{},"onClick")}]),C.setTimeout(()=>_(x.filter(R=>R.title!=="Copied")),1500)}))},"onCopyCapture"),T=E$(n);return m.createElement(kU,{withSource:o,withToolbar:a,...d,className:E.join(" ")},a&&m.createElement(MU,{isLoading:e,border:!0,zoom:N=>h(v*N),resetZoom:()=>h(1),storyId:!e&&T?m$(T,A):void 0,baseUrl:"./iframe.html"}),m.createElement(b$.Provider,{value:{scale:v}},m.createElement(BU,{className:"docs-story",onCopyCapture:o&&F},m.createElement(LU,{isColumn:t||!Array.isArray(n),columns:r,layout:u,inline:c},m.createElement(Cx.Element,{centered:u==="centered",scale:c?v:1},Array.isArray(n)?n.map((N,L)=>m.createElement("div",{key:L},N)):m.createElement("div",null,n))),m.createElement(O1,{actionItems:$}))),o&&f&&y)},"Preview");P(S$)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var jU=w(({tabs:e,...t})=>{const r=Object.entries(e);return r.length===1?m.createElement(Dd,{...r[0][1],...t}):m.createElement(gp,null,r.map((n,o)=>{const[a,i]=n,l=`prop_table_div_${a}`,s="div",u=o===0?t:{sort:t.sort};return m.createElement(s,{key:l,id:l,title:a},({active:c})=>c?m.createElement(Dd,{key:`prop_table_${a}`,...i,...u}):null)}))},"TabbedArgsTable");P.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?xe(.4,e.color.defaultText):xe(.6,e.color.defaultText)}));P.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});P.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});P.div(_e,({theme:e})=>({...Kl(e),margin:"25px 0 40px",padding:"30px 20px"}));P.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));P.div(({theme:e})=>({color:e.base==="light"?xe(.2,e.color.defaultText):xe(.6,e.color.defaultText)}));P.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});var HU=P.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:e.base==="light"?xe(.4,e.color.defaultText):xe(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}})),_y=P.div({display:"flex",flexDirection:"row"}),UU=P.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}})),Ty=P.div(({theme:e})=>({...Kl(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"})),Ay=P.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});P.div({flex:1,display:"flex",flexDirection:"row"});P.div({display:"flex",alignItems:"flex-start"});P.div({flex:"0 0 30%"});P.div({flex:1});P.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?xe(.4,e.color.defaultText):xe(.6,e.color.defaultText)}));P.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));function xd(e,t){return m.createElement(UU,{key:`${e}-${t}`,title:e,background:e})}w(xd,"renderSwatch");function wd(e,t,r){return m.createElement(HU,{key:`${e}-${t}`,title:e},m.createElement("div",null,e,r&&m.createElement("span",null,r)))}w(wd,"renderSwatchLabel");function zU(e){if(Array.isArray(e))return m.createElement(Ay,null,m.createElement(Ty,null,e.map((n,o)=>xd(n,o))),m.createElement(_y,null,e.map((n,o)=>wd(n,o))));const t=[],r=[];for(const n in e){const o=e[n];t.push(xd(o,t.length)),r.push(wd(n,r.length,o))}return m.createElement(Ay,null,m.createElement(Ty,null,t),m.createElement(_y,null,r))}w(zU,"renderSwatchSpecimen");P.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"}));P.div(({theme:e})=>({...Kl(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));P.div({display:"inline-flex",flexDirection:"row",alignItems:"center",width:"100%"});P.div({display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(140px, 1fr))",gridGap:"8px 16px",gridAutoFlow:"row dense",gridAutoRows:50});const{NAVIGATE_URL:KU}=__STORYBOOK_MODULE_CORE_EVENTS__;function x$(e){const t=[].forEach,r=[].some,n=typeof window<"u"&&document.body,o=" ";let a,i=!0,l=0;function s(F,T){const N=T.appendChild(c(F));if(F.children.length){const L=d(F.isCollapsed);F.children.forEach(R=>{s(R,L)}),N.appendChild(L)}}w(s,"createEl");function u(F,T){const L=d(!1);if(T.forEach(R=>{s(R,L)}),a=F||a,a!==null)return a.firstChild&&a.removeChild(a.firstChild),T.length===0?a:a.appendChild(L)}w(u,"render");function c(F){const T=document.createElement("li"),N=document.createElement("a");return e.listItemClass&&T.setAttribute("class",e.listItemClass),e.onClick&&(N.onclick=e.onClick),e.includeTitleTags&&N.setAttribute("title",F.textContent),e.includeHtml&&F.childNodes.length?t.call(F.childNodes,L=>{N.appendChild(L.cloneNode(!0))}):N.textContent=F.textContent,N.setAttribute("href",`${e.basePath}#${F.id}`),N.setAttribute("class",`${e.linkClass+o}node-name--${F.nodeName}${o}${e.extraLinkClasses}`),T.appendChild(N),T}w(c,"createLink");function d(F){const T=e.orderedList?"ol":"ul",N=document.createElement(T);let L=e.listClass+o+e.extraListClasses;return F&&(L=L+o+e.collapsibleClass,L=L+o+e.isCollapsedClass),N.setAttribute("class",L),N}w(d,"createList");function f(){const F=C(),T=document.querySelector(e.positionFixedSelector);e.fixedSidebarOffset==="auto"&&(e.fixedSidebarOffset=a.offsetTop),F>e.fixedSidebarOffset?T.className.indexOf(e.positionFixedClass)===-1&&(T.className+=o+e.positionFixedClass):T.className=T.className.replace(o+e.positionFixedClass,"")}w(f,"updateFixedSidebarClass");function g(F){let T=0;return F!==null&&(T=F.offsetTop,e.hasInnerContainers&&(T+=g(F.offsetParent))),T}w(g,"getHeadingTopPos");function y(F,T){return F&&F.className!==T&&(F.className=T),F}w(y,"updateClassname");function b(F,T){e.positionFixedSelector&&f();const N=F,L=T?.target?.getAttribute?T?.target?.getAttribute("href"):null,R=L&&L.charAt(0)==="#"?x(L.replace("#","")):!1,I=i||R;if(T&&l<5&&l++,I&&a&&N.length>0){const k=A(N),M=a.querySelector(`.${e.activeLinkClass}`),H=k.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1"),U=window.location.hash.replace("#","");let B=H;const O=_();L&&R?B=L.replace("#",""):U&&U!==H&&O&&(x(H)||l<=2)&&(B=U);const j=a.querySelector(`.${e.linkClass}[href="${e.basePath}#${B}"]`);if(M===j)return;const G=a.querySelectorAll(`.${e.linkClass}`);t.call(G,q=>{y(q,q.className.replace(o+e.activeLinkClass,""))});const K=a.querySelectorAll(`.${e.listItemClass}`);t.call(K,q=>{y(q,q.className.replace(o+e.activeListItemClass,""))}),j&&j.className.indexOf(e.activeLinkClass)===-1&&(j.className+=o+e.activeLinkClass);const z=j?.parentNode;z&&z.className.indexOf(e.activeListItemClass)===-1&&(z.className+=o+e.activeListItemClass);const W=a.querySelectorAll(`.${e.listClass}.${e.collapsibleClass}`);t.call(W,q=>{q.className.indexOf(e.isCollapsedClass)===-1&&(q.className+=o+e.isCollapsedClass)}),j?.nextSibling&&j.nextSibling.className.indexOf(e.isCollapsedClass)!==-1&&y(j.nextSibling,j.nextSibling.className.replace(o+e.isCollapsedClass,"")),v(j?.parentNode.parentNode)}}w(b,"updateToc");function v(F){return F&&F.className.indexOf(e.collapsibleClass)!==-1&&F.className.indexOf(e.isCollapsedClass)!==-1?(y(F,F.className.replace(o+e.isCollapsedClass,"")),v(F.parentNode.parentNode)):F}w(v,"removeCollapsedFromParents");function h(F){const T=F.target||F.srcElement;typeof T.className!="string"||T.className.indexOf(e.linkClass)===-1||(i=!1)}w(h,"disableTocAnimation");function E(){i=!0}w(E,"enableTocAnimation");function S(){return i}w(S,"getCurrentlyHighlighting");function x(F){const T=$();return(document?.getElementById(F)).offsetTop>T.offsetHeight-T.clientHeight*1.4-e.bottomModeThreshold}w(x,"getIsHeaderBottomMode");function _(){const F=$(),T=F.scrollHeight>F.clientHeight,N=C()+F.clientHeight>F.offsetHeight-e.bottomModeThreshold;return T&&N}w(_,"getIsPageBottomMode");function $(){let F;return e.scrollContainer&&document.querySelector(e.scrollContainer)?F=document.querySelector(e.scrollContainer):F=document.documentElement||n,F}w($,"getScrollEl");function C(){return $()?.scrollTop||0}w(C,"getScrollTop");function A(F,T=C()){let N;return r.call(F,(L,R)=>{if(g(L)>T+e.headingsOffset+10){const I=R===0?R:R-1;return N=F[I],!0}if(R===F.length-1)return N=F[F.length-1],!0}),N}w(A,"getTopHeader");function D(F){const T=C(),N=A(F,T),L=_();if((!N||T<5)&&!L)window.location.hash==="#"||window.location.hash===""||window.history.pushState(null,null,"#");else if(N&&!L){const R=`#${N.id}`;window.location.hash!==R&&window.history.pushState(null,null,R)}}return w(D,"updateUrlHashForHeader"),{enableTocAnimation:E,disableTocAnimation:h,render:u,updateToc:b,getCurrentlyHighlighting:S,getTopHeader:A,getScrollTop:C,updateUrlHashForHeader:D}}w(x$,"default");var GU={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:w(function(e){},"scrollEndCallback"),headingsOffset:1,enableUrlHashUpdateOnScroll:!1,scrollHandlerType:"auto",scrollHandlerTimeout:50,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:w(function(e){},"onClick"),orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollingWrapper:null,tocScrollOffset:30,bottomModeThreshold:30};function w$(e){const t=[].reduce;function r(u){return u[u.length-1]}w(r,"getLastItem");function n(u){return+u.nodeName.toUpperCase().replace("H","")}w(n,"getHeadingLevel");function o(u){try{return u instanceof window.HTMLElement||u instanceof window.parent.HTMLElement}catch{return u instanceof window.HTMLElement}}w(o,"isHTMLElement");function a(u){if(!o(u))return u;if(e.ignoreHiddenElements&&(!u.offsetHeight||!u.offsetParent))return null;const 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}w(a,"getHeadingObject");function i(u,c){const d=a(u),f=d.headingLevel;let g=c,y=r(g);const b=y?y.headingLevel:0;let v=f-b;for(;v>0&&(y=r(g),!(y&&f===y.headingLevel));)y&&y.children!==void 0&&(g=y.children),v--;return f>=e.collapseDepth&&(d.isCollapsed=!0),g.push(d),g}w(i,"addNode");function l(u,c){let d=c;e.ignoreSelector&&(d=c.split(",").map(w(function(g){return`${g.trim()}:not(${e.ignoreSelector})`},"mapSelectors")));try{return u.querySelectorAll(d)}catch{return console.warn(`Headers not found with selector: ${d}`),null}}w(l,"selectHeadings");function s(u){return t.call(u,w(function(d,f){const g=a(f);return g&&i(g,d.nest),d},"reducer"),{nest:[]})}return w(s,"nestHeadingsArray"),{nestHeadingsArray:s,selectHeadings:l}}w(w$,"parseContent");function $$(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||C$(u.target.hash,{duration:t,offset:r,callback:w(function(){l(u.target.hash)},"callback")})}w(s,"onClick")}w(o,"delegatedLinkHijacking");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)}w(a,"isInPageLink");function i(s){return s.slice(0,s.lastIndexOf("#"))}w(i,"stripHash");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())}w(l,"setFocus")}w($$,"initSmoothScrolling");function C$(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()}w(u,"loop");function c(){window.scrollTo(0,r+a),typeof n.callback=="function"&&n.callback()}w(c,"end");function d(f,g,y,b){return f/=b/2,f<1?y/2*f*f+g:(f--,-y/2*(f*(f-2)-1)+g)}w(d,"easeInOutQuad")}w(C$,"jump");function _$(e){const t=e.tocScrollingWrapper||e.tocElement||document.querySelector(e.tocSelector);if(t&&t.scrollHeight>t.clientHeight){const r=t.querySelector(`.${e.activeListItemClass}`);if(r){const o=r.offsetTop-e.tocScrollOffset;t.scrollTop=o>0?o:0}}}w(_$,"updateTocScroll");var ie={},Dt,rc,Yr,Ft,jo;function Ep(e){let t=!1;ie=A$(GU,e||{}),ie.scrollSmooth&&(ie.duration=ie.scrollSmoothDuration,ie.offset=ie.scrollSmoothOffset,$$(ie)),Dt=x$(ie),rc=w$(ie),Gl();const r=R$(ie);if(r===null)return;const n=Sp(ie);if(n===null||(Yr=rc.selectHeadings(r,ie.headingSelector),Yr===null))return;const a=rc.nestHeadingsArray(Yr).nest;if(!ie.skipRendering)Dt.render(n,a);else return this;let i=!1;const l=ie.scrollHandlerTimeout||ie.throttleTimeout;Ft=w((c,d)=>O$(c,d,ie.scrollHandlerType),"scrollHandler")(c=>{Dt.updateToc(Yr,c),!ie.disableTocScrollSync&&!i&&_$(ie),ie.enableUrlHashUpdateOnScroll&&t&&Dt.getCurrentlyHighlighting()&&Dt.updateUrlHashForHeader(Yr);const d=c?.target?.scrollingElement?.scrollTop===0;(c&&(c.eventPhase===0||c.currentTarget===null)||d)&&(Dt.updateToc(Yr),ie.scrollEndCallback?.(c))},l),t||(Ft(),t=!0),window.onhashchange=window.onscrollend=c=>{Ft(c)},ie.scrollContainer&&document.querySelector(ie.scrollContainer)?(document.querySelector(ie.scrollContainer).addEventListener("scroll",Ft,!1),document.querySelector(ie.scrollContainer).addEventListener("resize",Ft,!1)):(document.addEventListener("scroll",Ft,!1),document.addEventListener("resize",Ft,!1));let u=null;jo=Zi(c=>{i=!0,ie.scrollSmooth&&Dt.disableTocAnimation(c),Dt.updateToc(Yr,c),u&&clearTimeout(u),u=setTimeout(()=>{Dt.enableTocAnimation()},ie.scrollSmoothDuration),setTimeout(()=>{i=!1},ie.scrollSmoothDuration+100)},ie.throttleTimeout),ie.scrollContainer&&document.querySelector(ie.scrollContainer)?document.querySelector(ie.scrollContainer).addEventListener("click",jo,!1):document.addEventListener("click",jo,!1)}w(Ep,"init");function Gl(){const e=Sp(ie);e!==null&&(ie.skipRendering||e&&(e.innerHTML=""),ie.scrollContainer&&document.querySelector(ie.scrollContainer)?(document.querySelector(ie.scrollContainer).removeEventListener("scroll",Ft,!1),document.querySelector(ie.scrollContainer).removeEventListener("resize",Ft,!1),Dt&&document.querySelector(ie.scrollContainer).removeEventListener("click",jo,!1)):(document.removeEventListener("scroll",Ft,!1),document.removeEventListener("resize",Ft,!1),Dt&&document.removeEventListener("click",jo,!1)))}w(Gl,"destroy");function T$(e){Gl(),Ep(e||ie)}w(T$,"refresh");var WU=Object.prototype.hasOwnProperty;function A$(...e){const t={};for(let r=0;r<e.length;r++){const n=e[r];for(const o in n)WU.call(n,o)&&(t[o]=n[o])}return t}w(A$,"extend");function Zi(e,t,r){t||(t=250);let n,o;return function(...a){const i=r||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))}}w(Zi,"throttle");function $d(e,t){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>e.apply(this,n),t)}}w($d,"debounce");function O$(e,t,r="auto"){switch(r){case"debounce":return $d(e,t);case"throttle":return Zi(e,t);default:return t<334?$d(e,t):Zi(e,t)}}w(O$,"getScrollHandler");function R$(e){try{return e.contentElement||document.querySelector(e.contentSelector)}catch{return console.warn(`Contents element not found: ${e.contentSelector}`),null}}w(R$,"getContentElement");function Sp(e){try{return e.tocElement||document.querySelector(e.tocSelector)}catch{return console.warn(`TOC element not found: ${e.tocSelector}`),null}}w(Sp,"getTocElement");var VU={destroy:Gl,init:Ep,refresh:T$},Oy=VU,qU=P.aside(()=>({width:"10rem","@media (max-width: 768px)":{display:"none"}})),YU=P.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"}})),XU=P.p(({theme:e})=>({fontWeight:600,fontSize:"0.875em",color:e.textColor,textTransform:"uppercase",marginBottom:10})),JU=w(({headingId:e,title:t})=>typeof t=="string"||!t?m.createElement(XU,{as:"h2",id:e,className:t?"":"sb-sr-only"},t||"Table of contents"):m.createElement("div",{id:e},t),"Title"),ZU=w(({title:e,disable:t,headingSelector:r,contentsSelector:n,ignoreSelector:o,unsafeTocbotOptions:a,channel:i,className:l})=>{p.useEffect(()=>{if(t)return()=>{};const u={tocSelector:".toc-wrapper",contentSelector:n??".sbdocs-content",headingSelector:r??"h3",ignoreSelector:o??".docs-story *, .skip-toc",headingsOffset:40,scrollSmoothOffset:-40,orderedList:!1,onClick:w(d=>{if(d.preventDefault(),d.currentTarget instanceof HTMLAnchorElement){const[,f]=d.currentTarget.href.split("#");f&&i.emit(KU,`#${f}`)}},"onClick"),...a},c=setTimeout(()=>Oy.init(u),100);return()=>{clearTimeout(c),Oy.destroy()}},[i,t,o,n,r,a]);const s=p.useId();return m.createElement(qU,{className:l},t?null:m.createElement(YU,{"aria-labelledby":s},m.createElement(JU,{headingId:s,title:e}),m.createElement("div",{className:"toc-wrapper"})))},"TableOfContents");function Pr(){return Pr=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},Pr.apply(this,arguments)}w(Pr,"n");var QU=["children","options"],Ry=["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"}),Dy={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},ez=["style","script","pre"],tz=["src","href","data","formAction","srcDoc","action"],rz=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,nz=/mailto:/i,oz=/\n{2,}$/,Py=/^(\s*>[\s\S]*?)(?=\n\n|$)/,az=/^ *> ?/gm,iz=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,lz=/^ {2,}\n/,sz=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,Fy=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,Iy=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,uz=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,cz=/^(?:\n *)*\n/,dz=/\r\n?/g,fz=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,pz=/^\[\^([^\]]+)]/,hz=/\f/g,gz=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,mz=/^\s*?\[(x|\s)\]/,Ly=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,ky=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Ny=/^([^\n]+)\n *(=|-){3,} *\n/,nc=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,yz=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,My=/^<!--[\s\S]*?(?:-->)/,bz=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,oc=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,vz=/^\{.*\}$/,Ez=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,Sz=/^<([^ >]+@[^ >]+)>/,xz=/^<([^ >]+:\/[^ >]+)>/,wz=/-([a-z])?/gi,By=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,$z=/^[^\n]+(?: \n|\n{2,})/,Cz=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,_z=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,Tz=/^\[([^\]]*)\] ?\[([^\]]*)\]/,Az=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,Oz=/\t/g,Rz=/(^ *\||\| *$)/g,Dz=/^ *:-+: *$/,Pz=/^ *:-+ *$/,Fz=/^ *-+: *$/,Wl=w(e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,"J"),Vl="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",Iz=RegExp(`^([*_])\\1${Wl(1)}${Vl}\\1\\1(?!\\1)`),Lz=RegExp(`^([*_])${Wl(0)}${Vl}\\1(?!\\1)`),kz=RegExp(`^(==)${Wl(0)}${Vl}\\1`),Nz=RegExp(`^(~~)${Wl(0)}${Vl}\\1`),Mz=/^(:[a-zA-Z0-9-_]+:)/,Bz=/^\\([^0-9A-Za-z\s])/,jz=/\\([^0-9A-Za-z\s])/g,Hz=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,Uz=/^\n+/,zz=/^([ \t]*)/,Kz=/(?:^|\n)( *)$/,xp="(?:\\d+\\.)",wp="(?:[*+-])";function $p(e){return"( *)("+(e===1?xp:wp)+") +"}w($p,"fe");var D$=$p(1),P$=$p(2);function Cp(e){return RegExp("^"+(e===1?D$:P$))}w(Cp,"pe");var Gz=Cp(1),Wz=Cp(2);function _p(e){return RegExp("^"+(e===1?D$:P$)+"[^\\n]*(?:\\n(?!\\1"+(e===1?xp:wp)+" )[^\\n]*)*(\\n|$)","gm")}w(_p,"ge");var Vz=_p(1),qz=_p(2);function Tp(e){const t=e===1?xp:wp;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}w(Tp,"xe");var F$=Tp(1),I$=Tp(2);function Cd(e,t){const r=t===1,n=r?F$:I$,o=r?Vz:qz,a=r?Gz:Wz;return{t:w(i=>a.test(i),"t"),o:gn(function(i,l){const s=Kz.exec(l.prevCapture);return s&&(l.list||!l.inline&&!l.simple)?n.exec(i=s[1]+i):null}),i:1,u(i,l,s){const u=r?+i[2]:void 0,c=i[0].replace(oz,`
712
- `).match(o);let d=!1;return{items:c.map(function(f,g){const y=a.exec(f)[0].length,b=RegExp("^ {1,"+y+"}","gm"),v=f.replace(b,"").replace(a,""),h=g===c.length-1,E=v.indexOf(`
713
-
714
- `)!==-1||h&&d;d=E;const S=s.inline,x=s.list;let _;s.list=!0,E?(s.inline=!1,_=Wn(v)+`
715
-
716
- `):(s.inline=!0,_=Wn(v));const $=l(_,s);return s.inline=S,s.list=x,$}),ordered:r,start:u}},l:w((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))})),"l")}}w(Cd,"$e");var Yz=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),Xz=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function Wn(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}w(Wn,"ze");function Ho(e,t){return e.startsWith(t)}w(Ho,"Ee");function L$(e,t,r){if(Array.isArray(r)){for(let n=0;n<r.length;n++)if(Ho(e,r[n]))return!0;return!1}return r(e,t)}w(L$,"Ae");function Nn(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()}w(Nn,"Re");function k$(e){return Fz.test(e)?"right":Dz.test(e)?"center":Pz.test(e)?"left":null}w(k$,"Be");function _d(e,t,r,n){const o=r.inTable;r.inTable=!0;let a=[[]],i="";function l(){if(!i)return;const s=a[a.length-1];s.push.apply(s,t(i,r)),i=""}return w(l,"i"),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}w(_d,"Le");function N$(e,t,r){r.inline=!0;const n=e[2]?e[2].replace(Rz,"").split("|").map(k$):[],o=e[3]?(function(i,l,s){return i.trim().split(`
717
- `).map(function(u){return _d(u,l,s,!0)})})(e[3],t,r):[],a=_d(e[1],t,r,!!o.length);return r.inline=!1,o.length?{align:n,cells:o,header:a,type:"25"}:{children:a,type:"21"}}w(N$,"Oe");function Td(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}w(Td,"je");function gn(e){return e.inline=1,e}w(gn,"Ce");function cr(e){return gn(function(t,r){return r.inline?e.exec(t):null})}w(cr,"Ie");function dr(e){return gn(function(t,r){return r.inline||r.simple?e.exec(t):null})}w(dr,"Te");function Gt(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}w(Gt,"Me");function ko(e){return gn(function(t){return e.exec(t)})}w(ko,"we");var Jz=/(javascript|vbscript|data(?!:image)):/i;function M$(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(Jz.test(t))return null}catch{return null}return e}w(M$,"Fe");function Rt(e){return e&&e.replace(jz,"$1")}w(Rt,"Pe");function Uo(e,t,r){const n=r.inline||!1,o=r.simple||!1;r.inline=!0,r.simple=!0;const a=e(t,r);return r.inline=n,r.simple=o,a}w(Uo,"Ze");function B$(e,t,r){const n=r.inline||!1,o=r.simple||!1;r.inline=!1,r.simple=!0;const a=e(t,r);return r.inline=n,r.simple=o,a}w(B$,"Ne");function j$(e,t,r){const n=r.inline||!1;r.inline=!1;const o=e(t,r);return r.inline=n,o}w(j$,"Ge");var ac=w((e,t,r)=>({children:Uo(t,e[2],r)}),"Ue");function vi(){return{}}w(vi,"Ve");function Ei(){return null}w(Ei,"He");function H$(...e){return e.filter(Boolean).join(" ")}w(H$,"Qe");function Si(e,t,r){let n=e;const o=t.split(".");for(;o.length&&(n=n[o[0]],n!==void 0);)o.shift();return n||r}w(Si,"We");function U$(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?Pr({},Dy,t.namedCodesToUnicode):Dy;const r=t.slugify||Nn,n=t.sanitizer||M$,o=t.createElement||p.createElement,a=[Py,Fy,Iy,t.enforceAtxHeadings?ky:Ly,Ny,By,F$,I$],i=[...a,$z,nc,My,oc];function l(h,E,...S){const x=Si(t.overrides,h+".props",{});return o((function(_,$){const C=Si($,_);return C?typeof C=="function"||typeof C=="object"&&"render"in C?C:Si($,_+".component",_):_})(h,t.overrides),Pr({},E,x,{className:H$(E?.className,x.className)||void 0}),...S)}w(l,"J");function s(h){h=h.replace(gz,"");let E=!1;t.forceInline?E=!0:t.forceBlock||(E=Az.test(h)===!1);const S=y(g(E?h:Wn(h).replace(Uz,"")+`
718
-
719
- `,{inline:E}));for(;typeof S[S.length-1]=="string"&&!S[S.length-1].trim();)S.pop();if(t.wrapper===null)return S;const x=t.wrapper||(E?"span":"div");let _;if(S.length>1||t.forceWrapper)_=S;else{if(S.length===1)return _=S[0],typeof _=="string"?l("span",{key:"outer"},_):_;_=null}return o(x,{key:"outer"},_)}w(s,"K");function u(h,E){if(!E||!E.trim())return null;const S=E.match(rz);return S?S.reduce(function(x,_){const $=_.indexOf("=");if($!==-1){const C=(function(T){return T.indexOf("-")!==-1&&T.match(bz)===null&&(T=T.replace(wz,function(N,L){return L.toUpperCase()})),T})(_.slice(0,$)).trim(),A=(function(T){const N=T[0];return(N==='"'||N==="'")&&T.length>=2&&T[T.length-1]===N?T.slice(1,-1):T})(_.slice($+1).trim()),D=Ry[C]||C;if(D==="ref")return x;const F=x[D]=(function(T,N,L,R){return N==="style"?(function(I){const k=[];let M="",H=!1,U=!1,B="";if(!I)return k;for(let j=0;j<I.length;j++){const G=I[j];if(G!=='"'&&G!=="'"||H||(U?G===B&&(U=!1,B=""):(U=!0,B=G)),G==="("&&M.endsWith("url")?H=!0:G===")"&&H&&(H=!1),G!==";"||U||H)M+=G;else{const K=M.trim();if(K){const z=K.indexOf(":");if(z>0){const W=K.slice(0,z).trim(),q=K.slice(z+1).trim();k.push([W,q])}}M=""}}const O=M.trim();if(O){const j=O.indexOf(":");if(j>0){const G=O.slice(0,j).trim(),K=O.slice(j+1).trim();k.push([G,K])}}return k})(L).reduce(function(I,[k,M]){return I[k.replace(/(-[a-z])/g,H=>H[1].toUpperCase())]=R(M,T,k),I},{}):tz.indexOf(N)!==-1?R(Rt(L),T,N):(L.match(vz)&&(L=Rt(L.slice(1,L.length-1))),L==="true"||L!=="false"&&L)})(h,C,A,n);typeof F=="string"&&(nc.test(F)||oc.test(F))&&(x[D]=s(F.trim()))}else _!=="style"&&(x[Ry[_]||_]=!0);return x},{}):null}w(u,"oe");const c=[],d={},f={0:{t:[">"],o:Gt(Py),i:1,u(h,E,S){const[,x,_]=h[0].replace(az,"").match(iz);return{alert:x,children:E(_,S)}},l(h,E,S){const x={key:S.key};return h.alert&&(x.className="markdown-alert-"+r(h.alert.toLowerCase(),Nn),h.children.unshift({attrs:{},children:[{type:"27",text:h.alert}],noInnerParse:!0,type:"11",tag:"header"})),l("blockquote",x,E(h.children,S))}},1:{o:ko(lz),i:1,u:vi,l:w((h,E,S)=>l("br",{key:S.key}),"l")},2:{t:w(h=>{const E=h[0];return E==="-"||E==="*"||E==="_"},"t"),o:Gt(sz),i:1,u:vi,l:w((h,E,S)=>l("hr",{key:S.key}),"l")},3:{t:[" "],o:Gt(Iy),i:0,u:w(h=>({lang:void 0,text:Rt(Wn(h[0].replace(/^ {4}/gm,"")))}),"u"),l:w((h,E,S)=>l("pre",{key:S.key},l("code",Pr({},h.attrs,{className:h.lang?"lang-"+h.lang:""}),h.text)),"l")},4:{t:["```","~~~"],o:Gt(Fy),i:0,u:w(h=>({attrs:u("code",h[3]||""),lang:h[2]||void 0,text:h[4],type:"3"}),"u")},5:{t:["`"],o:dr(uz),i:3,u:w(h=>({text:Rt(h[2])}),"u"),l:w((h,E,S)=>l("code",{key:S.key},h.text),"l")},6:{t:["[^"],o:Gt(fz),i:0,u:w(h=>(c.push({footnote:h[2],identifier:h[1]}),{}),"u"),l:Ei},7:{t:["[^"],o:cr(pz),i:1,u:w(h=>({target:"#"+r(h[1],Nn),text:h[1]}),"u"),l:w((h,E,S)=>l("a",{key:S.key,href:n(h.target,"a","href")},l("sup",{key:S.key},h.text)),"l")},8:{t:["[ ]","[x]"],o:cr(mz),i:1,u:w(h=>({completed:h[1].toLowerCase()==="x"}),"u"),l:w((h,E,S)=>l("input",{checked:h.completed,key:S.key,readOnly:!0,type:"checkbox"}),"l")},9:{t:["#"],o:Gt(t.enforceAtxHeadings?ky:Ly),i:1,u:w((h,E,S)=>({children:Uo(E,h[2],S),id:r(h[2],Nn),level:h[1].length}),"u"),l:w((h,E,S)=>l("h"+h.level,{id:h.id,key:S.key},E(h.children,S)),"l")},10:{o:Gt(Ny),i:0,u:w((h,E,S)=>({children:Uo(E,h[1],S),level:h[2]==="="?1:2,type:"9"}),"u")},11:{t:["<"],o:ko(nc),i:1,u(h,E,S){const[,x]=h[3].match(zz),_=RegExp("^"+x,"gm"),$=h[3].replace(_,""),C=(A=$,i.some(L=>L.test(A))?j$:Uo);var A;const D=h[1].toLowerCase(),F=ez.indexOf(D)!==-1,T=(F?D:h[1]).trim(),N={attrs:u(T,h[2]),noInnerParse:F,tag:T};if(S.inAnchor=S.inAnchor||D==="a",F)N.text=h[3];else{const L=S.inHTML;S.inHTML=!0,N.children=C(E,$,S),S.inHTML=L}return S.inAnchor=!1,N},l:w((h,E,S)=>l(h.tag,Pr({key:S.key},h.attrs),h.text||(h.children?E(h.children,S):"")),"l")},13:{t:["<"],o:ko(oc),i:1,u(h){const E=h[1].trim();return{attrs:u(E,h[2]||""),tag:E}},l:w((h,E,S)=>l(h.tag,Pr({},h.attrs,{key:S.key})),"l")},12:{t:["<!--"],o:ko(My),i:1,u:w(()=>({}),"u"),l:Ei},14:{t:["!["],o:dr(Xz),i:1,u:w(h=>({alt:Rt(h[1]),target:Rt(h[2]),title:Rt(h[3])}),"u"),l:w((h,E,S)=>l("img",{key:S.key,alt:h.alt||void 0,title:h.title||void 0,src:n(h.target,"img","src")}),"l")},15:{t:["["],o:cr(Yz),i:3,u:w((h,E,S)=>({children:B$(E,h[1],S),target:Rt(h[2]),title:Rt(h[3])}),"u"),l:w((h,E,S)=>l("a",{key:S.key,href:n(h.target,"a","href"),title:h.title},E(h.children,S)),"l")},16:{t:["<"],o:cr(xz),i:0,u:w(h=>({children:[{text:h[1],type:"27"}],target:h[1],type:"15"}),"u")},17:{t:w((h,E)=>!E.inAnchor&&!t.disableAutoLink&&(Ho(h,"http://")||Ho(h,"https://")),"t"),o:cr(Ez),i:0,u:w(h=>({children:[{text:h[1],type:"27"}],target:h[1],title:void 0,type:"15"}),"u")},18:{t:["<"],o:cr(Sz),i:0,u(h){let E=h[1],S=h[1];return nz.test(S)||(S="mailto:"+S),{children:[{text:E.replace("mailto:",""),type:"27"}],target:S,type:"15"}}},20:Cd(l,1),33:Cd(l,2),19:{o:Gt(cz),i:3,u:vi,l:w(()=>`
720
- `,"l")},21:{o:gn(function(h,E){if(E.inline||E.simple||E.inHTML&&h.indexOf(`
721
-
722
- `)===-1&&E.prevCapture.indexOf(`
723
-
724
- `)===-1)return null;let S="";h.split(`
725
- `).every(_=>(_+=`
726
- `,!a.some($=>$.test(_))&&(S+=_,!!_.trim())));const x=Wn(S);return x===""?null:[S,,x]}),i:3,u:ac,l:w((h,E,S)=>l("p",{key:S.key},E(h.children,S)),"l")},22:{t:["["],o:cr(Cz),i:0,u:w(h=>(d[h[1]]={target:h[2],title:h[4]},{}),"u"),l:Ei},23:{t:["!["],o:dr(_z),i:0,u:w(h=>({alt:h[1]?Rt(h[1]):void 0,ref:h[2]}),"u"),l:w((h,E,S)=>d[h.ref]?l("img",{key:S.key,alt:h.alt,src:n(d[h.ref].target,"img","src"),title:d[h.ref].title}):null,"l")},24:{t:w(h=>h[0]==="["&&h.indexOf("](")===-1,"t"),o:cr(Tz),i:0,u:w((h,E,S)=>({children:E(h[1],S),fallbackChildren:h[0],ref:h[2]}),"u"),l:w((h,E,S)=>d[h.ref]?l("a",{key:S.key,href:n(d[h.ref].target,"a","href"),title:d[h.ref].title},E(h.children,S)):l("span",{key:S.key},h.fallbackChildren),"l")},25:{t:["|"],o:Gt(By),i:1,u:N$,l(h,E,S){const x=h;return l("table",{key:S.key},l("thead",null,l("tr",null,x.header.map(function(_,$){return l("th",{key:$,style:Td(x,$)},E(_,S))}))),l("tbody",null,x.cells.map(function(_,$){return l("tr",{key:$},_.map(function(C,A){return l("td",{key:A,style:Td(x,A)},E(C,S))}))})))}},27:{o:gn(function(h,E){let S;return Ho(h,":")&&(S=Mz.exec(h)),S||Hz.exec(h)}),i:4,u(h){const E=h[0];return{text:E.indexOf("&")===-1?E:E.replace(yz,(S,x)=>t.namedCodesToUnicode[x]||S)}},l:w(h=>h.text,"l")},28:{t:["**","__"],o:dr(Iz),i:2,u:w((h,E,S)=>({children:E(h[2],S)}),"u"),l:w((h,E,S)=>l("strong",{key:S.key},E(h.children,S)),"l")},29:{t:w(h=>{const E=h[0];return(E==="*"||E==="_")&&h[1]!==E},"t"),o:dr(Lz),i:3,u:w((h,E,S)=>({children:E(h[2],S)}),"u"),l:w((h,E,S)=>l("em",{key:S.key},E(h.children,S)),"l")},30:{t:["\\"],o:dr(Bz),i:1,u:w(h=>({text:h[1],type:"27"}),"u")},31:{t:["=="],o:dr(kz),i:3,u:ac,l:w((h,E,S)=>l("mark",{key:S.key},E(h.children,S)),"l")},32:{t:["~~"],o:dr(Nz),i:3,u:ac,l:w((h,E,S)=>l("del",{key:S.key},E(h.children,S)),"l")}};t.disableParsingRawHTML===!0&&(delete f[11],delete f[13]);const g=(function(h){var E=Object.keys(h);function S(x,_){var $=[];if(_.prevCapture=_.prevCapture||"",x.trim())for(;x;)for(var C=0;C<E.length;){var A=E[C],D=h[A];if(!D.t||L$(x,_,D.t)){var F=D.o(x,_);if(F&&F[0]){x=x.substring(F[0].length);var T=D.u(F,S,_);_.prevCapture+=F[0],T.type||(T.type=A),$.push(T);break}C++}else C++}return _.prevCapture="",$}return w(S,"r"),E.sort(function(x,_){return h[x].i-h[_].i||(x<_?-1:1)}),function(x,_){return S((function($){return $.replace(dz,`
727
- `).replace(hz,"").replace(Oz," ")})(x),_)}})(f),y=(b=(function(h,E){return function(S,x,_){const $=h[S.type].l;return E?E(()=>$(S,x,_),S,x,_):$(S,x,_)}})(f,t.renderRule),w(function h(E,S={}){if(Array.isArray(E)){const x=S.key,_=[];let $=!1;for(let C=0;C<E.length;C++){S.key=C;const A=h(E[C],S),D=typeof A=="string";D&&$?_[_.length-1]+=A:A!==null&&_.push(A),$=D}return S.key=x,_}return b(E,h,S)},"e"));var b;const v=s(e);return c.length?l("div",null,v,l("footer",{key:"footer"},c.map(function(h){return l("div",{id:r(h.identifier,Nn),key:h.identifier},h.identifier,y(g(h.footnote,{inline:!0})))}))):v}w(U$,"Je");var z$=w(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,QU);return p.cloneElement(U$(t,r),n)},"default"),Zz=P.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:xe(.5,e.color.defaultText),background:"transparent","&:hover":{boxShadow:`${Ja(.3,e.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${Ja(.05,e.appBorderColor)} 0 0 0 2px inset`,color:Ja(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"?`${Ja(.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"}}})),Qz=w(e=>e==="true","parse"),eK=w(({name:e,value:t,onChange:r,onBlur:n,onFocus:o,argType:a})=>{const i=p.useCallback(()=>r(!1),[r]),l=!!a?.table?.readonly;if(t===void 0)return m.createElement(Qe,{variant:"outline",size:"medium",id:ol(e),onClick:i,disabled:l},"Set boolean");const s=Bt(e),u=typeof t=="string"?Qz(t):t;return m.createElement(Zz,{"aria-disabled":l,htmlFor:s,"aria-label":e},m.createElement("input",{id:s,type:"checkbox",onChange:c=>r(c.target.checked),checked:u,role:"switch",disabled:l,name:e,onBlur:n,onFocus:o}),m.createElement("span",{"aria-hidden":"true"},"False"),m.createElement("span",{"aria-hidden":"true"},"True"))},"BooleanControl"),tK=w(e=>{const[t,r,n]=e.split("-"),o=new Date;return o.setFullYear(parseInt(t,10),parseInt(r,10)-1,parseInt(n,10)),o},"parseDate"),rK=w(e=>{const[t,r]=e.split(":"),n=new Date;return n.setHours(parseInt(t,10)),n.setMinutes(parseInt(r,10)),n},"parseTime"),nK=w(e=>{const 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}`},"formatDate"),oK=w(e=>{const t=new Date(e),r=`0${t.getHours()}`.slice(-2),n=`0${t.getMinutes()}`.slice(-2);return`${r}:${n}`},"formatTime"),jy=P(xn.Input)(({readOnly:e})=>({opacity:e?.5:1})),aK=P.div(({theme:e})=>({flex:1,display:"flex",input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:e.base==="light"?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}})),iK=w(({name:e,value:t,onChange:r,onFocus:n,onBlur:o,argType:a})=>{const[i,l]=p.useState(!0),s=p.useRef(),u=p.useRef(),c=!!a?.table?.readonly;p.useEffect(()=>{i!==!1&&(s&&s.current&&(s.current.value=t?nK(t):""),u&&u.current&&(u.current.value=t?oK(t):""))},[t]);const d=w(y=>{if(!y.target.value)return r();const b=tK(y.target.value),v=new Date(t??"");v.setFullYear(b.getFullYear(),b.getMonth(),b.getDate());const h=v.getTime();h&&r(h),l(!!h)},"onDateChange"),f=w(y=>{if(!y.target.value)return r();const b=rK(y.target.value),v=new Date(t??"");v.setHours(b.getHours()),v.setMinutes(b.getMinutes());const h=v.getTime();h&&r(h),l(!!h)},"onTimeChange"),g=Bt(e);return m.createElement(aK,null,m.createElement(jy,{type:"date",max:"9999-12-31",ref:s,id:`${g}-date`,name:`${g}-date`,readOnly:c,onChange:d,onFocus:n,onBlur:o}),m.createElement(jy,{type:"time",id:`${g}-time`,name:`${g}-time`,ref:u,onChange:f,readOnly:c,onFocus:n,onBlur:o}),i?null:m.createElement("div",null,"invalid"))},"DateControl"),lK=P.label({display:"flex"}),sK=w(e=>{const t=parseFloat(e);return Number.isNaN(t)?void 0:t},"parse"),uK=P(xn.Input)(({readOnly:e})=>({opacity:e?.5:1})),cK=w(({name:e,value:t,onChange:r,min:n,max:o,step:a,onBlur:i,onFocus:l,argType:s})=>{const[u,c]=p.useState(typeof t=="number"?t:""),[d,f]=p.useState(!1),[g,y]=p.useState(null),b=!!s?.table?.readonly,v=p.useCallback(S=>{c(S.target.value);const x=parseFloat(S.target.value);if(Number.isNaN(x))y(new Error(`'${S.target.value}' is not a number`));else{let _=x;typeof n=="number"&&_<n&&(_=n),typeof o=="number"&&_>o&&(_=o),r(_),y(null),_!==x&&c(String(_))}},[r,y,n,o]),h=p.useCallback(()=>{c("0"),r(0),f(!0)},[f]),E=p.useRef(null);return p.useEffect(()=>{d&&E.current&&E.current.select()},[d]),p.useEffect(()=>{const S=typeof t=="number"?t:"";u!==S&&c(S)},[t]),t===void 0?m.createElement(Qe,{variant:"outline",size:"medium",id:ol(e),onClick:h,disabled:b},"Set number"):m.createElement(lK,null,m.createElement(uK,{ref:E,id:Bt(e),type:"number",onChange:v,size:"flex",placeholder:"Edit number...",value:u,valid:g?"error":void 0,autoFocus:d,readOnly:b,name:e,min:n,max:o,step:a,onFocus:l,onBlur:i}))},"NumberControl");const{logger:dK}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var K$=w((e,t)=>{const r=t&&Object.entries(t).find(([n,o])=>o===e);return r?r[0]:void 0},"selectedKey"),Ad=w((e,t)=>e&&t?Object.entries(t).filter(r=>e.includes(r[1])).map(r=>r[0]):[],"selectedKeys"),G$=w((e,t)=>e&&t&&e.map(r=>t[r]),"selectedValues"),fK=P.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),pK=P.span({"[aria-readonly=true] &":{opacity:.5}}),hK=P.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),Hy=w(({name:e,options:t,value:r,onChange:n,isInline:o,argType:a})=>{if(!t)return dK.warn(`Checkbox with no options: ${e}`),m.createElement(m.Fragment,null,"-");const i=Ad(r||[],t),[l,s]=p.useState(i),u=!!a?.table?.readonly,c=w(f=>{const g=f.target.value,y=[...l];y.includes(g)?y.splice(y.indexOf(g),1):y.push(g),n(G$(y,t)),s(y)},"handleChange");p.useEffect(()=>{s(Ad(r||[],t))},[r]);const d=Bt(e);return m.createElement(fK,{"aria-readonly":u,isInline:o},Object.keys(t).map((f,g)=>{const y=`${d}-${g}`;return m.createElement(hK,{key:y,htmlFor:y},m.createElement("input",{type:"checkbox",disabled:u,id:y,name:y,value:f,onChange:c,checked:l?.includes(f)}),m.createElement(pK,null,f))}))},"CheckboxControl");const{logger:gK}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var mK=P.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),yK=P.span({"[aria-readonly=true] &":{opacity:.5}}),bK=P.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),Uy=w(({name:e,options:t,value:r,onChange:n,isInline:o,argType:a})=>{if(!t)return gK.warn(`Radio with no options: ${e}`),m.createElement(m.Fragment,null,"-");const i=K$(r,t),l=Bt(e),s=!!a?.table?.readonly;return m.createElement(mK,{"aria-readonly":s,isInline:o},Object.keys(t).map((u,c)=>{const d=`${l}-${c}`;return m.createElement(bK,{key:d,htmlFor:d},m.createElement("input",{type:"radio",id:d,name:l,disabled:s,value:u,onChange:f=>n(t[f.currentTarget.value]),checked:u===i}),m.createElement(yK,null,u))}))},"RadioControl");const{logger:vK}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var EK={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},W$=P.select(EK,({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}}})),V$=P.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}}})),zy="Choose option...",SK=w(({name:e,value:t,options:r,onChange:n,argType:o})=>{const a=w(u=>{n(r[u.currentTarget.value])},"handleChange"),i=K$(t,r)||zy,l=Bt(e),s=!!o?.table?.readonly;return m.createElement(V$,null,m.createElement(i$,null),m.createElement(W$,{disabled:s,id:l,value:i,onChange:a},m.createElement("option",{key:"no-selection",disabled:!0},zy),Object.keys(r).map(u=>m.createElement("option",{key:u,value:u},u))))},"SingleSelect"),xK=w(({name:e,value:t,options:r,onChange:n,argType:o})=>{const a=w(u=>{const c=Array.from(u.currentTarget.options).filter(d=>d.selected).map(d=>d.value);n(G$(c,r))},"handleChange"),i=Ad(t,r),l=Bt(e),s=!!o?.table?.readonly;return m.createElement(V$,null,m.createElement(W$,{disabled:s,id:l,multiple:!0,value:i,onChange:a},Object.keys(r).map(u=>m.createElement("option",{key:u,value:u},u))))},"MultiSelect"),Ky=w(e=>{const{name:t,options:r}=e;return r?e.isMulti?m.createElement(xK,{...e}):m.createElement(SK,{...e}):(vK.warn(`Select with no options: ${t}`),m.createElement(m.Fragment,null,"-"))},"SelectControl"),wK=w((e,t)=>Array.isArray(e)?e.reduce((r,n)=>(r[t?.[n]||String(n)]=n,r),{}):e,"normalizeOptions"),$K={check:Hy,"inline-check":Hy,radio:Uy,"inline-radio":Uy,select:Ky,"multi-select":Ky},Pn=w(e=>{const{type:t="select",labels:r,argType:n}=e,o={...e,argType:n,options:n?wK(n.options,r):{},isInline:t.includes("inline"),isMulti:t.includes("multi")},a=$K[t];if(a)return m.createElement(a,{...o});throw new Error(`Unknown options type: ${t}`)},"OptionsControl"),CK=P.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}}})),_K=P.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)"}})),TK=P.div({display:"inline"});function Ap({children:e,name:t,collapsed:r,keyPath:n,deep:o,...a}){const l=`${n.at(-1)??"root"}-${t}-${o}`,s={trigger:`${l}-trigger`,region:`${l}-region`},u=n.length>0?"li":"div";return m.createElement(CK,{as:u},m.createElement(_K,{type:"button","aria-expanded":!r,id:s.trigger,"aria-controls":s.region,className:"rejt-accordion-button",...a},t," :"),m.createElement(TK,{role:"region",id:s.region,"aria-labelledby":s.trigger,className:"rejt-accordion-region"},e))}w(Ap,"JsonNodeAccordion");var AK="Error",OK="Object",RK="Array",DK="String",PK="Number",FK="Boolean",IK="Date",LK="Null",kK="Undefined",NK="Function",MK="Symbol",q$="ADD_DELTA_TYPE",Y$="REMOVE_DELTA_TYPE",X$="UPDATE_DELTA_TYPE",Op="value",BK="key";function Lr(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e[Symbol.iterator]=="function"?"Iterable":Object.prototype.toString.call(e).slice(8,-1)}w(Lr,"getObjectType");function Rp(e,t){const r=Lr(e),n=Lr(t);return(r==="Function"||n==="Function")&&n!==r}w(Rp,"isComponentWillChange");var J$=class extends p.Component{constructor(t){super(t),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(){const{inputRefKey:t,inputRefValue:r}=this.state,{onlyValue:n}=this.props;t&&typeof t.focus=="function"&&t.focus(),n&&r&&typeof r.focus=="function"&&r.focus()}onKeydown(t){if(t.altKey||t.ctrlKey||t.metaKey||t.shiftKey||t.repeat)return;const{inputRefKey:r,inputRefValue:n}=this.state,{addButtonElement:o,handleCancel:a}=this.props;[r,n,o].some(l=>l===t.target)&&((t.code==="Enter"||t.key==="Enter")&&(t.preventDefault(),this.onSubmit()),(t.code==="Escape"||t.key==="Escape")&&(t.preventDefault(),a()))}onSubmit(){const{handleAdd:t,onlyValue:r,onSubmitValueParser:n,keyPath:o,deep:a}=this.props,{inputRefKey:i,inputRefValue:l}=this.state,s={};if(!r){if(!i.value)return;s.key=i.value}s.newValue=n(!1,o,a,s.key,l.value),t(s)}refInputKey(t){this.state.inputRefKey=t}refInputValue(t){this.state.inputRefValue=t}render(){const{handleCancel:t,onlyValue:r,addButtonElement:n,cancelButtonElement:o,inputElementGenerator:a,keyPath:i,deep:l}=this.props,s=n&&p.cloneElement(n,{onClick:this.onSubmit}),u=o&&p.cloneElement(o,{onClick:t}),c=a(Op,i,l),d=p.cloneElement(c,{placeholder:"Value",ref:this.refInputValue,onKeyDown:this.onKeydown});let f=null;if(!r){const g=a(BK,i,l);f=p.cloneElement(g,{placeholder:"Key",ref:this.refInputKey,onKeyDown:this.onKeydown})}return m.createElement("span",{className:"rejt-add-value-node"},f,d,s,u)}};w(J$,"JsonAddValue");var Dp=J$;Dp.defaultProps={onlyValue:!1,addButtonElement:m.createElement("button",null,"+"),cancelButtonElement:m.createElement("button",null,"c")};var Z$=class extends p.Component{constructor(t){super(t);const r=[...t.keyPath||[],t.name];this.state={data:t.data,name:t.name,keyPath:r??[],deep:t.deep??0,nextDeep:(t.deep??0)+1,collapsed:t.isCollapsed(r,t.deep??0,t.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(t,r){return t.data!==r.data?{data:t.data}:null}onChildUpdate(t,r){const{data:n,keyPath:o=[]}=this.state;n[t]=r,this.setState({data:n});const{onUpdate:a}=this.props,i=o.length;a(o[i-1],n)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState(t=>({collapsed:!t.collapsed}))}handleRemoveItem(t){return()=>{const{beforeRemoveAction:r,logger:n}=this.props,{data:o,keyPath:a,nextDeep:i}=this.state,l=o[t];(r||Promise.resolve.bind(Promise))(t,a,i,l).then(()=>{const s={keyPath:a,deep:i,key:t,oldValue:l,type:Y$};o.splice(t,1),this.setState({data:o});const{onUpdate:u,onDeltaUpdate:c}=this.props;u(a[a.length-1],o),c(s)}).catch(n.error)}}handleAddValueAdd({newValue:t}){const{data:r,keyPath:n=[],nextDeep:o}=this.state,{beforeAddAction:a,logger:i}=this.props,l=r.length;(a||Promise.resolve.bind(Promise))(l,n,o,t).then(()=>{r[l]=t,this.setState({data:r}),this.handleAddValueCancel();const{onUpdate:s,onDeltaUpdate:u}=this.props;s(n[n.length-1],r),u({type:q$,keyPath:n,deep:o,key:l,newValue:t})}).catch(i.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:t,value:r}){return new Promise((n,o)=>{const{beforeUpdateAction:a}=this.props,{data:i,keyPath:l,nextDeep:s}=this.state,u=i[t];(a||Promise.resolve.bind(Promise))(t,l,s,u,r).then(()=>{i[t]=r,this.setState({data:i});const{onUpdate:c,onDeltaUpdate:d}=this.props;c(l[l.length-1],i),d({type:X$,keyPath:l,deep:s,key:t,newValue:r,oldValue:u}),n(void 0)}).catch(o)})}renderCollapsed(){const{name:t,data:r,keyPath:n,deep:o}=this.state,{handleRemove:a,readOnly:i,getStyle:l,dataType:s,minusMenuElement:u}=this.props,{minus:c,collapsed:d}=l(t,r,n,o,s),f=i(t,r,n,o,s),g=u&&p.cloneElement(u,{onClick:a,className:"rejt-minus-menu",style:c,"aria-label":`remove the array '${String(t)}'`});return m.createElement(m.Fragment,null,m.createElement("span",{style:d},"[...] ",r.length," ",r.length===1?"item":"items"),!f&&g)}renderNotCollapsed(){const{name:t,data:r,keyPath:n,deep:o,addFormVisible:a,nextDeep:i}=this.state,{isCollapsed:l,handleRemove:s,onDeltaUpdate:u,readOnly:c,getStyle:d,dataType:f,addButtonElement:g,cancelButtonElement:y,inputElementGenerator:b,textareaElementGenerator:v,minusMenuElement:h,plusMenuElement:E,beforeRemoveAction:S,beforeAddAction:x,beforeUpdateAction:_,logger:$,onSubmitValueParser:C}=this.props,{minus:A,plus:D,delimiter:F,ul:T,addForm:N}=d(t,r,n,o,f),L=c(t,r,n,o,f),R=E&&p.cloneElement(E,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:D,"aria-label":`add a new item to the '${String(t)}' array`}),I=h&&p.cloneElement(h,{onClick:s,className:"rejt-minus-menu",style:A,"aria-label":`remove the array '${String(t)}'`});return m.createElement(m.Fragment,null,m.createElement("span",{className:"rejt-not-collapsed-delimiter",style:F},"["),!a&&R,m.createElement("ul",{className:"rejt-not-collapsed-list",style:T},r.map((U,B)=>m.createElement(ql,{key:B,name:B.toString(),data:U,keyPath:n,deep:i,isCollapsed:l,handleRemove:this.handleRemoveItem(B),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:u,readOnly:c,getStyle:d,addButtonElement:g,cancelButtonElement:y,inputElementGenerator:b,textareaElementGenerator:v,minusMenuElement:h,plusMenuElement:E,beforeRemoveAction:S,beforeAddAction:x,beforeUpdateAction:_,logger:$,onSubmitValueParser:C}))),!L&&a&&m.createElement("div",{className:"rejt-add-form",style:N},m.createElement(Dp,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement:g,cancelButtonElement:y,inputElementGenerator:b,keyPath:n,deep:o,onSubmitValueParser:C})),m.createElement("span",{className:"rejt-not-collapsed-delimiter",style:F},"]"),!L&&I)}render(){const{name:t,collapsed:r,keyPath:n,deep:o}=this.state,a=r?this.renderCollapsed():this.renderNotCollapsed();return m.createElement(Ap,{name:t,collapsed:r,deep:o,keyPath:n,onClick:this.handleCollapseMode},a)}};w(Z$,"JsonArray");var Q$=Z$;Q$.defaultProps={keyPath:[],deep:0,minusMenuElement:m.createElement("span",null," - "),plusMenuElement:m.createElement("span",null," + ")};var eC=class extends p.Component{constructor(t){super(t);const r=[...t.keyPath||[],t.name];this.state={value:t.value,name:t.name,keyPath:r??[],deep:t.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(t,r){return t.value!==r.value?{value:t.value}:null}componentDidUpdate(){const{editEnabled:t,inputRef:r,name:n,value:o,keyPath:a,deep:i}=this.state,{readOnly:l,dataType:s}=this.props,u=l(n,o,a,i,s);t&&!u&&typeof r.focus=="function"&&r.focus()}onKeydown(t){const{inputRef:r}=this.state;t.altKey||t.ctrlKey||t.metaKey||t.shiftKey||t.repeat||r!==t.target||((t.code==="Enter"||t.key==="Enter")&&(t.preventDefault(),this.handleEdit()),(t.code==="Escape"||t.key==="Escape")&&(t.preventDefault(),this.handleCancelEdit()))}handleEdit(){const{handleUpdateValue:t,originalValue:r,logger:n,onSubmitValueParser:o,keyPath:a}=this.props,{inputRef:i,name:l,deep:s}=this.state;if(!i)return;const u=o(!0,a,s,l,i.value),c={value:u,key:l};(t||Promise.resolve.bind(Promise))(c).then(()=>{Rp(r,u)||this.handleCancelEdit()}).catch(n.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(t){this.state.inputRef=t}handleCancelEdit(){this.setState({editEnabled:!1})}render(){const{name:t,value:r,editEnabled:n,keyPath:o,deep:a}=this.state,{handleRemove:i,originalValue:l,readOnly:s,dataType:u,getStyle:c,textareaElementGenerator:d,minusMenuElement:f,keyPath:g=[]}=this.props,y=c(t,l,o,a,u);let b=null,v=null;const h=s(t,l,o,a,u);if(n&&!h){const E=d(Op,g,a,t,l,u),S=p.cloneElement(E,{ref:this.refInput,defaultValue:r,onKeyDown:this.onKeydown});b=m.createElement("span",{className:"rejt-edit-form",style:y.editForm},S),v=null}else{b=m.createElement("span",{className:"rejt-value",style:y.value,onClick:h?void 0:this.handleEditMode},r);const E=g.at(-1),S=f&&p.cloneElement(f,{onClick:i,className:"rejt-minus-menu",style:y.minus,"aria-label":`remove the function '${String(t)}'${String(E)?` from '${String(E)}'`:""}`});v=h?null:S}return m.createElement("li",{className:"rejt-value-node",style:y.li},m.createElement("span",{className:"rejt-name",style:y.name},t," :"," "),b,v)}};w(eC,"JsonFunctionValue");var tC=eC;tC.defaultProps={keyPath:[],deep:0,handleUpdateValue:w(()=>{},"handleUpdateValue"),cancelButtonElement:m.createElement("button",null,"c"),minusMenuElement:m.createElement("span",null," - ")};var rC=class extends p.Component{constructor(t){super(t),this.state={data:t.data,name:t.name,keyPath:t.keyPath??[],deep:t.deep??0}}static getDerivedStateFromProps(t,r){return t.data!==r.data?{data:t.data}:null}render(){const{data:t,name:r,keyPath:n,deep:o}=this.state,{isCollapsed:a,handleRemove:i,handleUpdateValue:l,onUpdate:s,onDeltaUpdate:u,readOnly:c,getStyle:d,addButtonElement:f,cancelButtonElement:g,inputElementGenerator:y,textareaElementGenerator:b,minusMenuElement:v,plusMenuElement:h,beforeRemoveAction:E,beforeAddAction:S,beforeUpdateAction:x,logger:_,onSubmitValueParser:$}=this.props,C=w(()=>!0,"readOnlyTrue"),A=Lr(t);switch(A){case AK:return m.createElement(Od,{data:t,name:r,isCollapsed:a,keyPath:n,deep:o,handleRemove:i,onUpdate:s,onDeltaUpdate:u,readOnly:C,dataType:A,getStyle:d,addButtonElement:f,cancelButtonElement:g,inputElementGenerator:y,textareaElementGenerator:b,minusMenuElement:v,plusMenuElement:h,beforeRemoveAction:E,beforeAddAction:S,beforeUpdateAction:x,logger:_,onSubmitValueParser:$});case OK:return m.createElement(Od,{data:t,name:r,isCollapsed:a,keyPath:n,deep:o,handleRemove:i,onUpdate:s,onDeltaUpdate:u,readOnly:c,dataType:A,getStyle:d,addButtonElement:f,cancelButtonElement:g,inputElementGenerator:y,textareaElementGenerator:b,minusMenuElement:v,plusMenuElement:h,beforeRemoveAction:E,beforeAddAction:S,beforeUpdateAction:x,logger:_,onSubmitValueParser:$});case RK:return m.createElement(Q$,{data:t,name:r,isCollapsed:a,keyPath:n,deep:o,handleRemove:i,onUpdate:s,onDeltaUpdate:u,readOnly:c,dataType:A,getStyle:d,addButtonElement:f,cancelButtonElement:g,inputElementGenerator:y,textareaElementGenerator:b,minusMenuElement:v,plusMenuElement:h,beforeRemoveAction:E,beforeAddAction:S,beforeUpdateAction:x,logger:_,onSubmitValueParser:$});case DK:return m.createElement(Cr,{name:r,value:`"${t}"`,originalValue:t,keyPath:n,deep:o,handleRemove:i,handleUpdateValue:l,readOnly:c,dataType:A,getStyle:d,cancelButtonElement:g,inputElementGenerator:y,minusMenuElement:v,logger:_,onSubmitValueParser:$});case PK:return m.createElement(Cr,{name:r,value:t,originalValue:t,keyPath:n,deep:o,handleRemove:i,handleUpdateValue:l,readOnly:c,dataType:A,getStyle:d,cancelButtonElement:g,inputElementGenerator:y,minusMenuElement:v,logger:_,onSubmitValueParser:$});case FK:return m.createElement(Cr,{name:r,value:t?"true":"false",originalValue:t,keyPath:n,deep:o,handleRemove:i,handleUpdateValue:l,readOnly:c,dataType:A,getStyle:d,cancelButtonElement:g,inputElementGenerator:y,minusMenuElement:v,logger:_,onSubmitValueParser:$});case IK:return m.createElement(Cr,{name:r,value:t.toISOString(),originalValue:t,keyPath:n,deep:o,handleRemove:i,handleUpdateValue:l,readOnly:C,dataType:A,getStyle:d,cancelButtonElement:g,inputElementGenerator:y,minusMenuElement:v,logger:_,onSubmitValueParser:$});case LK:return m.createElement(Cr,{name:r,value:"null",originalValue:"null",keyPath:n,deep:o,handleRemove:i,handleUpdateValue:l,readOnly:c,dataType:A,getStyle:d,cancelButtonElement:g,inputElementGenerator:y,minusMenuElement:v,logger:_,onSubmitValueParser:$});case kK:return m.createElement(Cr,{name:r,value:"undefined",originalValue:"undefined",keyPath:n,deep:o,handleRemove:i,handleUpdateValue:l,readOnly:c,dataType:A,getStyle:d,cancelButtonElement:g,inputElementGenerator:y,minusMenuElement:v,logger:_,onSubmitValueParser:$});case NK:return m.createElement(tC,{name:r,value:t.toString(),originalValue:t,keyPath:n,deep:o,handleRemove:i,handleUpdateValue:l,readOnly:c,dataType:A,getStyle:d,cancelButtonElement:g,textareaElementGenerator:b,minusMenuElement:v,logger:_,onSubmitValueParser:$});case MK:return m.createElement(Cr,{name:r,value:t.toString(),originalValue:t,keyPath:n,deep:o,handleRemove:i,handleUpdateValue:l,readOnly:C,dataType:A,getStyle:d,cancelButtonElement:g,inputElementGenerator:y,minusMenuElement:v,logger:_,onSubmitValueParser:$});default:return null}}};w(rC,"JsonNode");var ql=rC;ql.defaultProps={keyPath:[],deep:0};var nC=class extends p.Component{constructor(t){super(t);const r=t.deep===-1?[]:[...t.keyPath||[],t.name];this.state={name:t.name,data:t.data,keyPath:r??[],deep:t.deep??0,nextDeep:(t.deep??0)+1,collapsed:t.isCollapsed(r,t.deep??0,t.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(t,r){return t.data!==r.data?{data:t.data}:null}onChildUpdate(t,r){const{data:n,keyPath:o=[]}=this.state;n[t]=r,this.setState({data:n});const{onUpdate:a}=this.props,i=o.length;a(o[i-1],n)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:t,newValue:r}){const{data:n,keyPath:o=[],nextDeep:a}=this.state,{beforeAddAction:i,logger:l}=this.props;(i||Promise.resolve.bind(Promise))(t,o,a,r).then(()=>{n[t]=r,this.setState({data:n}),this.handleAddValueCancel();const{onUpdate:s,onDeltaUpdate:u}=this.props;s(o[o.length-1],n),u({type:q$,keyPath:o,deep:a,key:t,newValue:r})}).catch(l.error)}handleRemoveValue(t){return()=>{const{beforeRemoveAction:r,logger:n}=this.props,{data:o,keyPath:a=[],nextDeep:i}=this.state,l=o[t];(r||Promise.resolve.bind(Promise))(t,a,i,l).then(()=>{const s={keyPath:a,deep:i,key:t,oldValue:l,type:Y$};delete o[t],this.setState({data:o});const{onUpdate:u,onDeltaUpdate:c}=this.props;u(a[a.length-1],o),c(s)}).catch(n.error)}}handleCollapseMode(){this.setState(t=>({collapsed:!t.collapsed}))}handleEditValue({key:t,value:r}){return new Promise((n,o)=>{const{beforeUpdateAction:a}=this.props,{data:i,keyPath:l=[],nextDeep:s}=this.state,u=i[t];(a||Promise.resolve.bind(Promise))(t,l,s,u,r).then(()=>{i[t]=r,this.setState({data:i});const{onUpdate:c,onDeltaUpdate:d}=this.props;c(l[l.length-1],i),d({type:X$,keyPath:l,deep:s,key:t,newValue:r,oldValue:u}),n()}).catch(o)})}renderCollapsed(){const{name:t,keyPath:r,deep:n,data:o}=this.state,{handleRemove:a,readOnly:i,dataType:l,getStyle:s,minusMenuElement:u}=this.props,{minus:c,collapsed:d}=s(t,o,r,n,l),f=Object.getOwnPropertyNames(o),g=i(t,o,r,n,l),y=u&&p.cloneElement(u,{onClick:a,className:"rejt-minus-menu",style:c,"aria-label":`remove the object '${String(t)}'`});return m.createElement(m.Fragment,null,m.createElement("span",{style:d},"{...}"," ",f.length," ",f.length===1?"key":"keys"),!g&&y)}renderNotCollapsed(){const{name:t,data:r,keyPath:n,deep:o,nextDeep:a,addFormVisible:i}=this.state,{isCollapsed:l,handleRemove:s,onDeltaUpdate:u,readOnly:c,getStyle:d,dataType:f,addButtonElement:g,cancelButtonElement:y,inputElementGenerator:b,textareaElementGenerator:v,minusMenuElement:h,plusMenuElement:E,beforeRemoveAction:S,beforeAddAction:x,beforeUpdateAction:_,logger:$,onSubmitValueParser:C}=this.props,{minus:A,plus:D,addForm:F,ul:T,delimiter:N}=d(t,r,n,o,f),L=Object.getOwnPropertyNames(r),R=c(t,r,n,o,f),I=E&&p.cloneElement(E,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:D,"aria-label":`add a new property to the object '${String(t)}'`}),k=h&&p.cloneElement(h,{onClick:s,className:"rejt-minus-menu",style:A,"aria-label":`remove the object '${String(t)}'`}),M=L.map(B=>m.createElement(ql,{key:B,name:B,data:r[B],keyPath:n,deep:a,isCollapsed:l,handleRemove:this.handleRemoveValue(B),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:u,readOnly:c,getStyle:d,addButtonElement:g,cancelButtonElement:y,inputElementGenerator:b,textareaElementGenerator:v,minusMenuElement:h,plusMenuElement:E,beforeRemoveAction:S,beforeAddAction:x,beforeUpdateAction:_,logger:$,onSubmitValueParser:C}));return m.createElement(m.Fragment,null,m.createElement("span",{className:"rejt-not-collapsed-delimiter",style:N},"{"),!R&&I,m.createElement("ul",{className:"rejt-not-collapsed-list",style:T},M),!R&&i&&m.createElement("div",{className:"rejt-add-form",style:F},m.createElement(Dp,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:g,cancelButtonElement:y,inputElementGenerator:b,keyPath:n,deep:o,onSubmitValueParser:C})),m.createElement("span",{className:"rejt-not-collapsed-delimiter",style:N},"}"),!R&&k)}render(){const{name:t,collapsed:r,keyPath:n,deep:o=0}=this.state,a=r?this.renderCollapsed():this.renderNotCollapsed();return m.createElement(Ap,{name:t,collapsed:r,deep:o,keyPath:n,onClick:this.handleCollapseMode},a)}};w(nC,"JsonObject");var Od=nC;Od.defaultProps={keyPath:[],deep:0,minusMenuElement:m.createElement("span",null," - "),plusMenuElement:m.createElement("span",null," + ")};var oC=class extends p.Component{constructor(t){super(t);const r=[...t.keyPath||[],t.name];this.state={value:t.value,name:t.name,keyPath:r??[],deep:t.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(t,r){return t.value!==r.value?{value:t.value}:null}componentDidUpdate(){const{editEnabled:t,inputRef:r,name:n,value:o,keyPath:a,deep:i}=this.state,{readOnly:l,dataType:s}=this.props,u=l(n,o,a,i,s);t&&!u&&typeof r.focus=="function"&&r.focus()}onKeydown(t){const{inputRef:r}=this.state;t.altKey||t.ctrlKey||t.metaKey||t.shiftKey||t.repeat||r!==t.target||((t.code==="Enter"||t.key==="Enter")&&(t.preventDefault(),this.handleEdit()),(t.code==="Escape"||t.key==="Escape")&&(t.preventDefault(),this.handleCancelEdit()))}handleEdit(){const{handleUpdateValue:t,originalValue:r,logger:n,onSubmitValueParser:o,keyPath:a}=this.props,{inputRef:i,name:l,deep:s}=this.state;if(!i)return;const u=o(!0,a,s,l,i.value),c={value:u,key:l};(t||Promise.resolve.bind(Promise))(c).then(()=>{Rp(r,u)||this.handleCancelEdit()}).catch(n.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(t){this.state.inputRef=t}handleCancelEdit(){this.setState({editEnabled:!1})}render(){const{name:t,value:r,editEnabled:n,keyPath:o,deep:a}=this.state,{handleRemove:i,originalValue:l,readOnly:s,dataType:u,getStyle:c,inputElementGenerator:d,minusMenuElement:f,keyPath:g}=this.props,y=c(t,l,o,a,u),b=s(t,l,o,a,u),v=n&&!b,h=d(Op,g,a,t,l,u),E=p.cloneElement(h,{ref:this.refInput,defaultValue:JSON.stringify(l),onKeyDown:this.onKeydown}),S=o.at(-2),x=f&&p.cloneElement(f,{onClick:i,className:"rejt-minus-menu",style:y.minus,"aria-label":`remove the property '${String(t)}' with value '${String(l)}'${String(S)?` from '${String(S)}'`:""}`});return m.createElement("li",{className:"rejt-value-node",style:y.li},m.createElement("span",{className:"rejt-name",style:y.name},t," : "),v?m.createElement("span",{className:"rejt-edit-form",style:y.editForm},E):m.createElement("span",{className:"rejt-value",style:y.value,onClick:b?void 0:this.handleEditMode},String(r)),!b&&!v&&x)}};w(oC,"JsonValue");var Cr=oC;Cr.defaultProps={keyPath:[],deep:0,handleUpdateValue:w(()=>Promise.resolve(),"handleUpdateValue"),cancelButtonElement:m.createElement("button",null,"c"),minusMenuElement:m.createElement("span",null," - ")};function aC(e){let t=e;if(t.indexOf("function")===0)return(0,eval)(`(${t})`);try{t=JSON.parse(e)}catch{}return t}w(aC,"parse");var jK={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},HK={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},UK={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}},iC=class extends p.Component{constructor(t){super(t),this.state={data:t.data,rootName:t.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this)}static getDerivedStateFromProps(t,r){return t.data!==r.data||t.rootName!==r.rootName?{data:t.data,rootName:t.rootName}:null}onUpdate(t,r){this.setState({data:r}),this.props.onFullyUpdate?.(r)}removeRoot(){this.onUpdate(null,null)}render(){const{data:t,rootName:r}=this.state,{isCollapsed:n,onDeltaUpdate:o,readOnly:a,getStyle:i,addButtonElement:l,cancelButtonElement:s,inputElement:u,textareaElement:c,minusMenuElement:d,plusMenuElement:f,beforeRemoveAction:g,beforeAddAction:y,beforeUpdateAction:b,logger:v,onSubmitValueParser:h,fallback:E=null}=this.props,S=Lr(t);let x=a;Lr(a)==="Boolean"&&(x=w(()=>a,"readOnlyFunction"));let _=u;u&&Lr(u)!=="Function"&&(_=w(()=>u,"inputElementFunction"));let $=c;return c&&Lr(c)!=="Function"&&($=w(()=>c,"textareaElementFunction")),S==="Object"||S==="Array"?m.createElement("div",{className:"rejt-tree"},m.createElement(ql,{data:t,name:r||"root",deep:-1,isCollapsed:n??(()=>!1),onUpdate:this.onUpdate,onDeltaUpdate:o??(()=>{}),readOnly:x,getStyle:i??(()=>({})),addButtonElement:l,cancelButtonElement:s,inputElementGenerator:_,textareaElementGenerator:$,minusMenuElement:d,plusMenuElement:f,handleRemove:this.removeRoot,beforeRemoveAction:g,beforeAddAction:y,beforeUpdateAction:b,logger:v??{},onSubmitValueParser:h??(C=>C)})):E}};w(iC,"JsonTree");var lC=iC;lC.defaultProps={rootName:"root",isCollapsed:w((e,t)=>t!==-1,"isCollapsed"),getStyle:w((e,t,r,n,o)=>{switch(o){case"Object":case"Error":return jK;case"Array":return HK;default:return UK}},"getStyle"),readOnly:w(()=>!1,"readOnly"),onFullyUpdate:w(()=>{},"onFullyUpdate"),onDeltaUpdate:w(()=>{},"onDeltaUpdate"),beforeRemoveAction:w(()=>Promise.resolve(),"beforeRemoveAction"),beforeAddAction:w(()=>Promise.resolve(),"beforeAddAction"),beforeUpdateAction:w(()=>Promise.resolve(),"beforeUpdateAction"),logger:{error:w(()=>{},"error")},onSubmitValueParser:w((e,t,r,n,o)=>aC(o),"onSubmitValueParser"),inputElement:w(()=>m.createElement("input",null),"inputElement"),textareaElement:w(()=>m.createElement("textarea",null),"textareaElement"),fallback:null};var{window:zK}=globalThis,KK=P.div(({theme:e})=>({position:"relative",display:"flex",'&[aria-readonly="true"]':{opacity:.5},".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.color.lighter,borderColor:e.appBorderColor}})),Gy=P.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"})),Wy=P.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}}})),Vy=P.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}`}})),GK=P(Ir)(({theme:e})=>({position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:e.background.bar,border:`1px solid ${e.appBorderColor}`,borderRadius:3,color:e.textMutedColor,fontSize:"9px",fontWeight:"bold",textDecoration:"none",span:{marginLeft:3,marginTop:1}})),WK=P(xn.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"}})),VK={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},qK=w(e=>{e.currentTarget.dispatchEvent(new zK.KeyboardEvent("keydown",VK))},"dispatchEnterKey"),YK=w(e=>{e.currentTarget.select()},"selectValue"),XK=w(e=>()=>({name:{color:e.color.secondary},collapsed:{color:e.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}),"getCustomStyleFunction"),qy=w(({name:e,value:t,onChange:r,argType:n})=>{const o=dl(),a=p.useMemo(()=>t&&f$(t),[t]),i=a!=null,[l,s]=p.useState(!i),[u,c]=p.useState(null),d=!!n?.table?.readonly,f=p.useCallback(S=>{try{S&&r(JSON.parse(S)),c(null)}catch(x){c(x)}},[r]),[g,y]=p.useState(!1),b=p.useCallback(()=>{r({}),y(!0)},[y]),v=p.useRef(null);if(p.useEffect(()=>{g&&v.current&&v.current.select()},[g]),!i)return m.createElement(Qe,{disabled:d,id:ol(e),onClick:b},"Set object");const h=m.createElement(WK,{ref:v,id:Bt(e),name:e,defaultValue:t===null?"":JSON.stringify(t,null,2),onBlur:S=>f(S.target.value),placeholder:"Edit JSON string...",autoFocus:g,valid:u?"error":void 0,readOnly:d}),E=Array.isArray(t)||typeof t=="object"&&t?.constructor===Object;return m.createElement(KK,{"aria-readonly":d},E&&m.createElement(GK,{role:"switch","aria-checked":l,"aria-label":`Edit the ${e} properties in text format`,onClick:S=>{S.preventDefault(),s(x=>!x)}},l?m.createElement(BH,null):m.createElement(MH,null),m.createElement("span",null,"RAW")),l?h:m.createElement(lC,{readOnly:d||!E,isCollapsed:E?void 0:()=>!0,data:a,rootName:e,onFullyUpdate:r,getStyle:XK(o),cancelButtonElement:m.createElement(Gy,{type:"button"},"Cancel"),addButtonElement:m.createElement(Gy,{type:"submit",primary:!0},"Save"),plusMenuElement:m.createElement(Wy,{type:"button"},m.createElement(jH,null)),minusMenuElement:m.createElement(Wy,{type:"button"},m.createElement(HH,null)),inputElement:(S,x,_,$)=>$?m.createElement(Vy,{onFocus:YK,onBlur:qK}):m.createElement(Vy,null),fallback:h}))},"ObjectControl"),JK=P.input(({theme:e,min:t,max:r,value:n,disabled:o})=>({"&":{width:"100%",backgroundColor:"transparent",appearance:"none"},"&::-webkit-slider-runnable-track":{background:e.base==="light"?`linear-gradient(to right,
728
- ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
729
- ${Wt(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
730
- ${Wt(.02,e.input.background)} 100%)`:`linear-gradient(to right,
731
- ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
732
- ${Qr(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
733
- ${Qr(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:o?"not-allowed":"pointer"},"&::-webkit-slider-thumb":{marginTop:"-6px",width:16,height:16,border:`1px solid ${Lt(e.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${Lt(e.appBorderColor,.2)}`,cursor:o?"not-allowed":"grab",appearance:"none",background:`${e.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${Wt(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:o?"not-allowed":"grab"}},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":{borderColor:Lt(e.color.secondary,.4)},"&::-webkit-slider-thumb":{borderColor:e.color.secondary,boxShadow:`0 0px 5px 0px ${e.color.secondary}`}},"&::-moz-range-track":{background:e.base==="light"?`linear-gradient(to right,
734
- ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
735
- ${Wt(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
736
- ${Wt(.02,e.input.background)} 100%)`:`linear-gradient(to right,
737
- ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
738
- ${Qr(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
739
- ${Qr(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:o?"not-allowed":"pointer",outline:"none"},"&::-moz-range-thumb":{width:16,height:16,border:`1px solid ${Lt(e.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${Lt(e.appBorderColor,.2)}`,cursor:o?"not-allowed":"grap",background:`${e.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${Wt(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&::-ms-track":{background:e.base==="light"?`linear-gradient(to right,
740
- ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
741
- ${Wt(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
742
- ${Wt(.02,e.input.background)} 100%)`:`linear-gradient(to right,
743
- ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
744
- ${Qr(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
745
- ${Qr(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${Lt(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),sC=P.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),ZK=P(sC)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),QK=P.div({display:"flex",alignItems:"center",width:"100%"});function uC(e){const t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}w(uC,"getNumberOfDecimalPlaces");var eG=w(({name:e,value:t,onChange:r,min:n=0,max:o=100,step:a=1,onBlur:i,onFocus:l,argType:s})=>{const u=w(g=>{r(sK(g.target.value))},"handleChange"),c=t!==void 0,d=p.useMemo(()=>uC(a),[a]),f=!!s?.table?.readonly;return m.createElement(QK,{"aria-readonly":f},m.createElement(sC,null,n),m.createElement(JK,{id:Bt(e),type:"range",disabled:f,onChange:u,name:e,min:n,max:o,step:a,onFocus:l,onBlur:i,value:t??n}),m.createElement(ZK,{numberOFDecimalsPlaces:d,max:o},c?t.toFixed(d):"--"," / ",o))},"RangeControl"),tG=P.label({display:"flex"}),rG=P.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),nG=w(({name:e,value:t,onChange:r,onFocus:n,onBlur:o,maxLength:a,argType:i})=>{const l=w(g=>{r(g.target.value)},"handleChange"),s=!!i?.table?.readonly,[u,c]=p.useState(!1),d=p.useCallback(()=>{r(""),c(!0)},[c]);if(t===void 0)return m.createElement(Qe,{variant:"outline",size:"medium",disabled:s,id:ol(e),onClick:d},"Set string");const f=typeof t=="string";return m.createElement(tG,null,m.createElement(xn.Textarea,{id:Bt(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&&m.createElement(rG,{isMaxed:t?.length===a},t?.length??0," / ",a))},"TextControl"),oG=P(xn.Input)({padding:10});function cC(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}w(cC,"revokeOldUrls");var aG=w(({onChange:e,name:t,accept:r="image/*",value:n,argType:o})=>{const a=p.useRef(null),i=o?.control?.readOnly;function l(s){if(!s.target.files)return;const u=Array.from(s.target.files).map(c=>URL.createObjectURL(c));e(u),cC(n||[])}return w(l,"handleFileChange"),p.useEffect(()=>{n==null&&a.current&&(a.current.value="")},[n,t]),m.createElement(oG,{ref:a,id:Bt(t),type:"file",name:t,multiple:!0,disabled:i,onChange:l,accept:r,size:"flex"})},"FilesControl"),iG=p.lazy(()=>kr(()=>import("./Color-64QXVMR3-CVvl9AcC.js"),__vite__mapDeps([7,1,2,3,4]),import.meta.url)),lG=w(e=>m.createElement(p.Suspense,{fallback:m.createElement("div",null)},m.createElement(iG,{...e})),"ColorControl"),sG={array:qy,object:qy,boolean:eK,color:lG,date:iK,number:cK,check:Pn,"inline-check":Pn,radio:Pn,"inline-radio":Pn,select:Pn,"multi-select":Pn,range:eG,text:nG,file:aG},Yy=w(()=>m.createElement(m.Fragment,null,"-"),"NoControl"),uG=w(({row:e,arg:t,updateArgs:r,isHovered:n})=>{const{key:o,control:a}=e,[i,l]=p.useState(!1),[s,u]=p.useState({value:t});p.useEffect(()=>{i||u({value:t})},[i,t]);const c=p.useCallback(b=>(u({value:b}),r({[o]:b}),b),[r,o]),d=p.useCallback(()=>l(!1),[]),f=p.useCallback(()=>l(!0),[]);if(!a||a.disable){const b=a?.disable!==!0&&e?.type?.name!=="function";return n&&b?m.createElement(to,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},"Setup controls"):m.createElement(Yy,null)}const g={name:o,argType:e,value:s.value,onChange:c,onBlur:d,onFocus:f},y=sG[a.type]||Yy;return m.createElement(y,{...g,...a,controlType:a.type})},"ArgControl"),cG=P.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:br({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),dG=w(({tags:e})=>{const 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:m.createElement(m.Fragment,null,m.createElement(cG,null,m.createElement("tbody",null,n&&m.createElement("tr",{key:"deprecated"},m.createElement("td",{colSpan:2},m.createElement("strong",null,"Deprecated"),": ",e.deprecated?.toString())),r&&t.map(a=>m.createElement("tr",{key:a.name},m.createElement("td",null,m.createElement("code",null,a.name)),m.createElement("td",null,a.description))),o&&m.createElement("tr",{key:"returns"},m.createElement("td",null,m.createElement("code",null,"Returns")),m.createElement("td",null,e.returns?.description)))))},"ArgJsDoc");function dC(e){return Array.from(new Set(e))}w(dC,"uniq");var fG=X_(qH()),Rd=8,Xy=P.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),pG=P.span(br,({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}})),hG=P.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),gG=P.div(br,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),mG=P.div(({theme:e,width:t})=>({width:t,minWidth:200,maxWidth:800,padding:15,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),yG=P(WH)({marginLeft:4}),bG=P(i$)({marginLeft:4}),vG=w(()=>m.createElement("span",null,"-"),"EmptyArg"),fC=w(({text:e,simple:t})=>m.createElement(pG,{simple:t},e),"ArgText"),EG=(0,fG.default)(1e3)(e=>{const t=e.split(/\r?\n/);return`${Math.max(...t.map(r=>r.length))}ch`}),SG=w(e=>{if(!e)return[e];const r=e.split("|").map(n=>n.trim());return dC(r)},"getSummaryItems"),Jy=w((e,t=!0)=>{let r=e;return t||(r=e.slice(0,Rd)),r.map(n=>m.createElement(fC,{key:n,text:n===""?'""':n}))},"renderSummaryItems"),xG=w(({value:e,initialExpandedArgs:t})=>{const{summary:r,detail:n}=e,[o,a]=p.useState(!1),[i,l]=p.useState(t||!1);if(r==null)return null;const s=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(s))return m.createElement(fC,{text:s});const c=SG(s),d=c.length;return d>Rd?m.createElement(Xy,{isExpanded:i},Jy(c,i),m.createElement(hG,{onClick:()=>l(!i)},i?"Show less...":`Show ${d-Rd} more...`)):m.createElement(Xy,null,Jy(c))}return m.createElement(mw,{closeOnOutsideClick:!0,placement:"bottom",visible:o,onVisibleChange:u=>{a(u)},tooltip:m.createElement(mG,{width:EG(n)},m.createElement(ya,{language:"jsx",format:!1},n))},m.createElement(gG,{className:"sbdocs-expandable"},m.createElement("span",null,s),o?m.createElement(yG,null):m.createElement(bG,null)))},"ArgSummary"),ic=w(({value:e,initialExpandedArgs:t})=>e==null?m.createElement(vG,null):m.createElement(xG,{value:e,initialExpandedArgs:t}),"ArgValue"),wG=P.span({fontWeight:"bold"}),$G=P.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),CG=P.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...br({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),_G=P.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?xe(.1,e.color.defaultText):xe(.2,e.color.defaultText),marginTop:t?4:0})),TG=P.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?xe(.1,e.color.defaultText):xe(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),AG=P.td(({expandable:e})=>({paddingLeft:e?"40px !important":"20px !important"})),OG=w(e=>e&&{summary:typeof e=="string"?e:e.name},"toSummary"),Qa=w(e=>{const[t,r]=p.useState(!1),{row:n,updateArgs:o,compact:a,expandable:i,initialExpandedArgs:l}=e,{name:s,description:u}=n,c=n.table||{},d=c.type||OG(n.type),f=c.defaultValue||n.defaultValue,g=n.type?.required,y=u!=null&&u!=="";return m.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},m.createElement(AG,{expandable:i??!1},m.createElement(wG,null,s),g?m.createElement($G,{title:"Required"},"*"):null),a?null:m.createElement("td",null,y&&m.createElement(CG,null,m.createElement(z$,null,u)),c.jsDocTags!=null?m.createElement(m.Fragment,null,m.createElement(TG,{hasDescription:y},m.createElement(ic,{value:d,initialExpandedArgs:l})),m.createElement(dG,{tags:c.jsDocTags})):m.createElement(_G,{hasDescription:y},m.createElement(ic,{value:d,initialExpandedArgs:l}))),a?null:m.createElement("td",null,m.createElement(ic,{value:f,initialExpandedArgs:l})),o?m.createElement("td",null,m.createElement(uG,{...e,isHovered:t})):null)},"ArgRow"),RG=P.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})),DG=P.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),PG=w(({inAddonPanel:e})=>{const[t,r]=p.useState(!0);return p.useEffect(()=>{const n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:m.createElement(RG,{inAddonPanel:e},m.createElement(Ul,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:m.createElement(m.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:m.createElement(DG,null,e&&m.createElement(m.Fragment,null,m.createElement(to,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},m.createElement(Ed,null)," Read docs")),!e&&m.createElement(to,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},m.createElement(Ed,null)," Learn how to set that up"))}))},"Empty"),FG=P(KH)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?xe(.25,e.color.defaultText):xe(.3,e.color.defaultText),border:"none",display:"inline-block"})),IG=P(GH)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?xe(.25,e.color.defaultText):xe(.3,e.color.defaultText),border:"none",display:"inline-block"})),LG=P.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),kG=P.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"?xe(.4,e.color.defaultText):xe(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),NG=P.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),MG=P.td({position:"relative"}),BG=P.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${Qr(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),Zy=P.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"}),lc=w(({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:o=3})=>{const[a,i]=p.useState(n),l=e==="subsection"?NG:kG,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 m.createElement(m.Fragment,null,m.createElement(BG,{title:c},m.createElement(l,{colSpan:1},m.createElement(Zy,{onClick:d=>i(!a),tabIndex:0},c),m.createElement(LG,null,a?m.createElement(FG,null):m.createElement(IG,null),t)),m.createElement(MG,{colSpan:o-1},m.createElement(Zy,{onClick:d=>i(!a),tabIndex:-1,style:{outline:"none"}},c),a?null:u)),a?r:null)},"SectionRow"),jG=P.div(({theme:e})=>({width:"100%",borderSpacing:0,color:e.color.defaultText})),ei=P.div(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),We=P.div(({position:e,theme:t})=>{const 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}}}),Ie=P.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})),HG=w(()=>m.createElement(jG,null,m.createElement(ei,null,m.createElement(We,{position:"first"},m.createElement(Ie,{width:"60%"})),m.createElement(We,{position:"second"},m.createElement(Ie,{width:"30%"})),m.createElement(We,{position:"third"},m.createElement(Ie,{width:"60%"})),m.createElement(We,{position:"last"},m.createElement(Ie,{width:"60%"}))),m.createElement(ei,null,m.createElement(We,{position:"first"},m.createElement(Ie,{width:"60%"})),m.createElement(We,{position:"second"},m.createElement(Ie,{width:"80%"}),m.createElement(Ie,{width:"30%"})),m.createElement(We,{position:"third"},m.createElement(Ie,{width:"60%"})),m.createElement(We,{position:"last"},m.createElement(Ie,{width:"60%"}))),m.createElement(ei,null,m.createElement(We,{position:"first"},m.createElement(Ie,{width:"60%"})),m.createElement(We,{position:"second"},m.createElement(Ie,{width:"80%"}),m.createElement(Ie,{width:"30%"})),m.createElement(We,{position:"third"},m.createElement(Ie,{width:"60%"})),m.createElement(We,{position:"last"},m.createElement(Ie,{width:"60%"}))),m.createElement(ei,null,m.createElement(We,{position:"first"},m.createElement(Ie,{width:"60%"})),m.createElement(We,{position:"second"},m.createElement(Ie,{width:"80%"}),m.createElement(Ie,{width:"30%"})),m.createElement(We,{position:"third"},m.createElement(Ie,{width:"60%"})),m.createElement(We,{position:"last"},m.createElement(Ie,{width:"60%"})))),"Skeleton"),UG=P.table(({theme:e,compact:t,inAddonPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",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.base==="light"?xe(.25,e.color.defaultText):xe(.45,e.color.defaultText),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}},marginLeft:r?0:1,marginRight:r?0:1,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}}}}})),zG=P.div({position:"relative"}),KG=P.div({position:"absolute",right:8,top:6}),GG={alpha:w((e,t)=>(e.name??"").localeCompare(t.name??""),"alpha"),requiredFirst:w((e,t)=>+!!t.type?.required-+!!e.type?.required||(e.name??"").localeCompare(t.name??""),"requiredFirst"),none:null},WG=w((e,t)=>{const r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([i,l])=>{const{category:s,subcategory:u}=l?.table||{};if(s){const c=r.sections[s]||{ungrouped:[],subsections:{}};if(!u)c.ungrouped.push({key:i,...l});else{const d=c.subsections[u]||[];d.push({key:i,...l}),c.subsections[u]=d}r.sections[s]=c}else if(u){const c=r.ungroupedSubsections[u]||[];c.push({key:i,...l}),r.ungroupedSubsections[u]=c}else r.ungrouped.push({key:i,...l})});const n=GG[t],o=w(i=>n?Object.keys(i).reduce((l,s)=>({...l,[s]:i[s].sort(n)}),{}):i,"sortSubsection");return{ungrouped:n?r.ungrouped.sort(n):r.ungrouped,ungroupedSubsections:o(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((i,l)=>({...i,[l]:{ungrouped:n?r.sections[l].ungrouped.sort(n):r.sections[l].ungrouped,subsections:o(r.sections[l].subsections)}}),{})}},"groupRows"),VG=w((e,t,r)=>{try{return OR(e,t,r)}catch(n){return YH.warn(n.message),!1}},"safeIncludeConditionalArg"),Dd=w(e=>{const{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:o,initialExpandedArgs:a,sort:i="none",isLoading:l}=e;if("error"in e){const{error:E}=e;return m.createElement(o$,null,E," ",m.createElement(to,{href:"http://storybook.js.org/docs/?ref=ui",target:"_blank",withArrow:!0},m.createElement(Ed,null)," Read the docs"))}if(l)return m.createElement(HG,null);const{rows:s,args:u,globals:c}="rows"in e?e:{rows:void 0,args:void 0,globals:void 0},d=WG(p$(s||{},E=>!E?.table?.disable&&VG(E,u||{},c||{})),i),f=d.ungrouped.length===0,g=Object.entries(d.sections).length===0,y=Object.entries(d.ungroupedSubsections).length===0;if(f&&g&&y)return m.createElement(PG,{inAddonPanel:o});let b=1;t&&(b+=1),n||(b+=2);const v=Object.keys(d.sections).length>0,h={updateArgs:t,compact:n,inAddonPanel:o,initialExpandedArgs:a};return m.createElement(If,null,m.createElement(zG,null,t&&!l&&r&&m.createElement(KG,null,m.createElement(Ir,{onClick:()=>r(),"aria-label":"Reset controls",title:"Reset controls"},m.createElement(VH,null))),m.createElement(UG,{compact:n,inAddonPanel:o,className:"docblock-argstable sb-unstyled"},m.createElement("thead",{className:"docblock-argstable-head"},m.createElement("tr",null,m.createElement("th",null,m.createElement("span",null,"Name")),n?null:m.createElement("th",null,m.createElement("span",null,"Description")),n?null:m.createElement("th",null,m.createElement("span",null,"Default")),t?m.createElement("th",null,m.createElement("span",null,"Control")):null)),m.createElement("tbody",{className:"docblock-argstable-body"},d.ungrouped.map(E=>m.createElement(Qa,{key:E.key,row:E,arg:u&&u[E.key],...h})),Object.entries(d.ungroupedSubsections).map(([E,S])=>m.createElement(lc,{key:E,label:E,level:"subsection",colSpan:b},S.map(x=>m.createElement(Qa,{key:x.key,row:x,arg:u&&u[x.key],expandable:v,...h})))),Object.entries(d.sections).map(([E,S])=>m.createElement(lc,{key:E,label:E,level:"section",colSpan:b},S.ungrouped.map(x=>m.createElement(Qa,{key:x.key,row:x,arg:u&&u[x.key],...h})),Object.entries(S.subsections).map(([x,_])=>m.createElement(lc,{key:x,label:x,level:"subsection",colSpan:b},_.map($=>m.createElement(Qa,{key:$.key,row:$,arg:u&&u[$.key],expandable:v,...h}))))))))))},"ArgsTable"),qG=w(e=>`anchor--${e}`,"anchorBlockIdFromId"),pC=w(({storyId:e,children:t})=>m.createElement("div",{id:qG(e),className:"sb-anchor"},t),"Anchor");const{filterArgTypes:$Y}=__STORYBOOK_MODULE_PREVIEW_API__;var Cn=w((e,t)=>p.useContext(Ot).resolveOf(e,t),"useOf"),YG=w(e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),"titleCase"),XG=w(e=>{if(e)return typeof e=="string"?e.includes("-")?YG(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name},"getComponentName");function hC(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}w(hC,"scrollToElement");function gC(e,t){const{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}w(gC,"extractComponentArgTypes");function JG(e){if(e.type==="component"){const{component:a,projectAnnotations:{parameters:i}}=e;return{argTypes:gC(a,i),parameters:i,component:a}}if(e.type==="meta"){const{preparedMeta:{argTypes:a,parameters:i,component:l,subcomponents:s}}=e;return{argTypes:a,parameters:i,component:l,subcomponents:s}}const{story:{argTypes:t,parameters:r,component:n,subcomponents:o}}=e;return{argTypes:t,parameters:r,component:n,subcomponents:o}}w(JG,"getArgTypesFromResolved");var ZG=Object.create,mC=Object.defineProperty,QG=Object.getOwnPropertyDescriptor,yC=Object.getOwnPropertyNames,eW=Object.getPrototypeOf,tW=Object.prototype.hasOwnProperty,ae=w((e,t)=>w(function(){return t||(0,e[yC(e)[0]])((t={exports:{}}).exports,t),t.exports},"__require"),"__commonJS"),rW=w((e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of yC(t))!tW.call(e,o)&&o!==r&&mC(e,o,{get:w(()=>t[o],"get"),enumerable:!(n=QG(t,o))||n.enumerable});return e},"__copyProps"),Pp=w((e,t,r)=>(r=e!=null?ZG(eW(e)):{},rW(t||!e||!e.__esModule?mC(r,"default",{value:e,enumerable:!0}):r,e)),"__toESM"),nW=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],oW=["detail"];function bC(e){const t=nW.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(const r of oW.filter(n=>e[n]!==void 0))t[r]=e[r];return t}w(bC,"extractEventHiddenProperties");var vC=ae({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),aW=ae({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),iW=ae({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),lW=ae({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),sW=ae({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),uW=ae({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),Fp=ae({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),cW=ae({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),dW=ae({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),fW=ae({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),pW=ae({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),hW=ae({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),gW=ae({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),mW=ae({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),yW=ae({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e,t){t.exports=Number.isNaN||w(function(n){return n!==n},"isNaN2")}}),bW=ae({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=yW();t.exports=w(function(o){return r(o)||o===0?o:o<0?-1:1},"sign")}}),vW=ae({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),Ip=ae({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=vW();if(r)try{r([],"length")}catch{r=null}t.exports=r}}),EW=ae({"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}}),EC=ae({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(e,t){t.exports=w(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var n={},o=Symbol("test"),a=Object(o);if(typeof o=="string"||Object.prototype.toString.call(o)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var i=42;n[o]=i;for(var l in n)return!1;if(typeof Object.keys=="function"&&Object.keys(n).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(n).length!==0)return!1;var s=Object.getOwnPropertySymbols(n);if(s.length!==1||s[0]!==o||!Object.prototype.propertyIsEnumerable.call(n,o))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(n,o);if(u.value!==i||u.enumerable!==!0)return!1}return!0},"hasSymbols")}}),SC=ae({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=EC();t.exports=w(function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()},"hasNativeSymbols")}}),xC=ae({"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}}),wC=ae({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=vC();t.exports=r.getPrototypeOf||null}}),SW=ae({"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=w(function(c,d){for(var f=[],g=0;g<c.length;g+=1)f[g]=c[g];for(var y=0;y<d.length;y+=1)f[y+c.length]=d[y];return f},"concatty2"),l=w(function(c,d){for(var f=[],g=d||0,y=0;g<c.length;g+=1,y+=1)f[y]=c[g];return f},"slicy2"),s=w(function(u,c){for(var d="",f=0;f<u.length;f+=1)d+=u[f],f+1<u.length&&(d+=c);return d},"joiny");t.exports=w(function(c){var d=this;if(typeof d!="function"||n.apply(d)!==a)throw new TypeError(r+d);for(var f=l(arguments,1),g,y=w(function(){if(this instanceof g){var S=d.apply(this,i(f,arguments));return Object(S)===S?S:this}return d.apply(c,i(f,arguments))},"binder"),b=o(0,d.length-f.length),v=[],h=0;h<b;h++)v[h]="$"+h;if(g=Function("binder","return function ("+s(v,",")+"){ return binder.apply(this,arguments); }")(y),d.prototype){var E=w(function(){},"Empty2");E.prototype=d.prototype,g.prototype=new E,E.prototype=null}return g},"bind")}}),Yl=ae({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var r=SW();t.exports=Function.prototype.bind||r}}),Lp=ae({"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}}),$C=ae({"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}}),xW=ae({"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}}),wW=ae({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var r=Yl(),n=$C(),o=Lp(),a=xW();t.exports=a||r.call(o,n)}}),CC=ae({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var r=Yl(),n=Fp(),o=Lp(),a=wW();t.exports=w(function(l){if(l.length<1||typeof l[0]!="function")throw new n("a function is required");return a(r,o,l)},"callBindBasic")}}),$W=ae({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var r=CC(),n=Ip(),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"?w(function(u){return l(u==null?u:i(u))},"getDunder"):!1}}),CW=ae({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var r=xC(),n=wC(),o=$W();t.exports=r?w(function(i){return r(i)},"getProto"):n?w(function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return n(i)},"getProto"):o?w(function(i){return o(i)},"getProto"):null}}),_C=ae({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,o=Yl();t.exports=o.call(r,n)}}),_W=ae({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var r,n=vC(),o=aW(),a=iW(),i=lW(),l=sW(),s=uW(),u=Fp(),c=cW(),d=dW(),f=fW(),g=pW(),y=hW(),b=gW(),v=mW(),h=bW(),E=Function,S=w(function(re){try{return E('"use strict"; return ('+re+").constructor;")()}catch{}},"getEvalledConstructor"),x=Ip(),_=EW(),$=w(function(){throw new u},"throwTypeError"),C=x?(function(){try{return arguments.callee,$}catch{try{return x(arguments,"callee").get}catch{return $}}})():$,A=SC()(),D=CW(),F=wC(),T=xC(),N=$C(),L=Lp(),R={},I=typeof Uint8Array>"u"||!D?r:D(Uint8Array),k={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":A&&D?D([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":R,"%AsyncGenerator%":R,"%AsyncGeneratorFunction%":R,"%AsyncIteratorPrototype%":R,"%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%":E,"%GeneratorFunction%":R,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":A&&D?D(D([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!A||!D?r:D(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"||!A||!D?r:D(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":A&&D?D(""[Symbol.iterator]()):r,"%Symbol%":A?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":C,"%TypedArray%":I,"%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%":N,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":F,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":g,"%Math.min%":y,"%Math.pow%":b,"%Math.round%":v,"%Math.sign%":h,"%Reflect.getPrototypeOf%":T};if(D)try{null.error}catch(re){M=D(D(re)),k["%Error.prototype%"]=M}var M,H=w(function re(V){var J;if(V==="%AsyncFunction%")J=S("async function () {}");else if(V==="%GeneratorFunction%")J=S("function* () {}");else if(V==="%AsyncGeneratorFunction%")J=S("async function* () {}");else if(V==="%AsyncGenerator%"){var Q=re("%AsyncGeneratorFunction%");Q&&(J=Q.prototype)}else if(V==="%AsyncIteratorPrototype%"){var ue=re("%AsyncGenerator%");ue&&D&&(J=D(ue.prototype))}return k[V]=J,J},"doEval2"),U={__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"]},B=Yl(),O=_C(),j=B.call(L,Array.prototype.concat),G=B.call(N,Array.prototype.splice),K=B.call(L,String.prototype.replace),z=B.call(L,String.prototype.slice),W=B.call(L,RegExp.prototype.exec),q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,X=/\\(\\)?/g,le=w(function(V){var J=z(V,0,1),Q=z(V,-1);if(J==="%"&&Q!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(Q==="%"&&J!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var ue=[];return K(V,q,function(Pe,Z,Ee,bt){ue[ue.length]=Ee?K(bt,X,"$1"):Z||Pe}),ue},"stringToPath3"),Ne=w(function(V,J){var Q=V,ue;if(O(U,Q)&&(ue=U[Q],Q="%"+ue[0]+"%"),O(k,Q)){var Pe=k[Q];if(Pe===R&&(Pe=H(Q)),typeof Pe>"u"&&!J)throw new u("intrinsic "+V+" exists, but is not available. Please file an issue!");return{alias:ue,name:Q,value:Pe}}throw new s("intrinsic "+V+" does not exist!")},"getBaseIntrinsic2");t.exports=w(function(V,J){if(typeof V!="string"||V.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof J!="boolean")throw new u('"allowMissing" argument must be a boolean');if(W(/^%?[^%]*%?$/,V)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Q=le(V),ue=Q.length>0?Q[0]:"",Pe=Ne("%"+ue+"%",J),Z=Pe.name,Ee=Pe.value,bt=!1,vt=Pe.alias;vt&&(ue=vt[0],G(Q,j([0,1],vt)));for(var zt=1,et=!0;zt<Q.length;zt+=1){var it=Q[zt],or=z(it,0,1),ar=z(it,-1);if((or==='"'||or==="'"||or==="`"||ar==='"'||ar==="'"||ar==="`")&&or!==ar)throw new s("property names with quotes must have matching quotes");if((it==="constructor"||!et)&&(bt=!0),ue+="."+it,Z="%"+ue+"%",O(k,Z))Ee=k[Z];else if(Ee!=null){if(!(it in Ee)){if(!J)throw new u("base intrinsic for "+V+" exists, but the property is not available.");return}if(x&&zt+1>=Q.length){var Ca=x(Ee,it);et=!!Ca,et&&"get"in Ca&&!("originalValue"in Ca.get)?Ee=Ca.get:Ee=Ee[it]}else et=O(Ee,it),Ee=Ee[it];et&&!bt&&(k[Z]=Ee)}}return Ee},"GetIntrinsic")}}),kp=ae({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=_W(),n=CC(),o=n([r("%String.prototype.indexOf%")]);t.exports=w(function(i,l){var s=r(i,!!l);return typeof s=="function"&&o(i,".prototype.")>-1?n([s]):s},"callBoundIntrinsic")}}),TW=ae({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=EC();t.exports=w(function(){return r()&&!!Symbol.toStringTag},"hasToStringTagShams")}}),TC=ae({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=kp(),n=TW()(),o=_C(),a=Ip(),i;n?(l=r("RegExp.prototype.exec"),s={},u=w(function(){throw s},"throwRegexMarker"),c={toString:u,valueOf:u},typeof Symbol.toPrimitive=="symbol"&&(c[Symbol.toPrimitive]=u),i=w(function(y){if(!y||typeof y!="object")return!1;var b=a(y,"lastIndex"),v=b&&o(b,"value");if(!v)return!1;try{l(y,c)}catch(h){return h===s}},"isRegex")):(d=r("Object.prototype.toString"),f="[object RegExp]",i=w(function(y){return!y||typeof y!="object"&&typeof y!="function"?!1:d(y)===f},"isRegex"));var l,s,u,c,d,f;t.exports=i}}),AW=ae({"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)}w(n,"isFunction3")}}),OW=ae({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=kp(),n=TC(),o=r("RegExp.prototype.exec"),a=Fp();t.exports=w(function(l){if(!n(l))throw new a("`regex` must be a RegExp");return w(function(u){return o(l,u)!==null},"test")},"regexTester")}}),RW=ae({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=kp(),n=r("Object.prototype.toString"),o=SC()(),a=OW();o?(i=r("Symbol.prototype.toString"),l=a(/^Symbol\(.*\)$/),s=w(function(c){return typeof c.valueOf()!="symbol"?!1:l(i(c))},"isRealSymbolObject"),t.exports=w(function(c){if(typeof c=="symbol")return!0;if(!c||typeof c!="object"||n(c)!=="[object Symbol]")return!1;try{return s(c)}catch{return!1}},"isSymbol3")):t.exports=w(function(c){return!1},"isSymbol3");var i,l,s}}),DW=Pp(TC()),PW=Pp(AW()),FW=Pp(RW());function AC(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}w(AC,"isObject");var IW=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,LW=IW,kW=typeof self=="object"&&self&&self.Object===Object&&self,NW=LW||kW||Function("return this")(),Np=NW,MW=Np.Symbol,so=MW,OC=Object.prototype,BW=OC.hasOwnProperty,jW=OC.toString,Oo=so?so.toStringTag:void 0;function RC(e){var t=BW.call(e,Oo),r=e[Oo];try{e[Oo]=void 0;var n=!0}catch{}var o=jW.call(e);return n&&(t?e[Oo]=r:delete e[Oo]),o}w(RC,"getRawTag");var HW=RC,UW=Object.prototype,zW=UW.toString;function DC(e){return zW.call(e)}w(DC,"objectToString");var KW=DC,GW="[object Null]",WW="[object Undefined]",Qy=so?so.toStringTag:void 0;function PC(e){return e==null?e===void 0?WW:GW:Qy&&Qy in Object(e)?HW(e):KW(e)}w(PC,"baseGetTag");var VW=PC,eb=so?so.prototype:void 0;eb&&eb.toString;function FC(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}w(FC,"isObject2");var IC=FC,qW="[object AsyncFunction]",YW="[object Function]",XW="[object GeneratorFunction]",JW="[object Proxy]";function LC(e){if(!IC(e))return!1;var t=VW(e);return t==YW||t==XW||t==qW||t==JW}w(LC,"isFunction");var ZW=LC,QW=Np["__core-js_shared__"],sc=QW,tb=(function(){var e=/[^.]+$/.exec(sc&&sc.keys&&sc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function kC(e){return!!tb&&tb in e}w(kC,"isMasked");var eV=kC,tV=Function.prototype,rV=tV.toString;function NC(e){if(e!=null){try{return rV.call(e)}catch{}try{return e+""}catch{}}return""}w(NC,"toSource");var nV=NC,oV=/[\\^$.*+?()[\]{}|]/g,aV=/^\[object .+?Constructor\]$/,iV=Function.prototype,lV=Object.prototype,sV=iV.toString,uV=lV.hasOwnProperty,cV=RegExp("^"+sV.call(uV).replace(oV,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function MC(e){if(!IC(e)||eV(e))return!1;var t=ZW(e)?cV:aV;return t.test(nV(e))}w(MC,"baseIsNative");var dV=MC;function BC(e,t){return e?.[t]}w(BC,"getValue");var fV=BC;function jC(e,t){var r=fV(e,t);return dV(r)?r:void 0}w(jC,"getNative");var HC=jC;function UC(e,t){return e===t||e!==e&&t!==t}w(UC,"eq");var pV=UC,hV=HC(Object,"create"),la=hV;function zC(){this.__data__=la?la(null):{},this.size=0}w(zC,"hashClear");var gV=zC;function KC(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}w(KC,"hashDelete");var mV=KC,yV="__lodash_hash_undefined__",bV=Object.prototype,vV=bV.hasOwnProperty;function GC(e){var t=this.__data__;if(la){var r=t[e];return r===yV?void 0:r}return vV.call(t,e)?t[e]:void 0}w(GC,"hashGet");var EV=GC,SV=Object.prototype,xV=SV.hasOwnProperty;function WC(e){var t=this.__data__;return la?t[e]!==void 0:xV.call(t,e)}w(WC,"hashHas");var wV=WC,$V="__lodash_hash_undefined__";function VC(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=la&&t===void 0?$V:t,this}w(VC,"hashSet");var CV=VC;function _n(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])}}w(_n,"Hash");_n.prototype.clear=gV;_n.prototype.delete=mV;_n.prototype.get=EV;_n.prototype.has=wV;_n.prototype.set=CV;var rb=_n;function qC(){this.__data__=[],this.size=0}w(qC,"listCacheClear");var _V=qC;function YC(e,t){for(var r=e.length;r--;)if(pV(e[r][0],t))return r;return-1}w(YC,"assocIndexOf");var Xl=YC,TV=Array.prototype,AV=TV.splice;function XC(e){var t=this.__data__,r=Xl(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():AV.call(t,r,1),--this.size,!0}w(XC,"listCacheDelete");var OV=XC;function JC(e){var t=this.__data__,r=Xl(t,e);return r<0?void 0:t[r][1]}w(JC,"listCacheGet");var RV=JC;function ZC(e){return Xl(this.__data__,e)>-1}w(ZC,"listCacheHas");var DV=ZC;function QC(e,t){var r=this.__data__,n=Xl(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}w(QC,"listCacheSet");var PV=QC;function Tn(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])}}w(Tn,"ListCache");Tn.prototype.clear=_V;Tn.prototype.delete=OV;Tn.prototype.get=RV;Tn.prototype.has=DV;Tn.prototype.set=PV;var FV=Tn,IV=HC(Np,"Map"),LV=IV;function e_(){this.size=0,this.__data__={hash:new rb,map:new(LV||FV),string:new rb}}w(e_,"mapCacheClear");var kV=e_;function t_(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}w(t_,"isKeyable");var NV=t_;function r_(e,t){var r=e.__data__;return NV(t)?r[typeof t=="string"?"string":"hash"]:r.map}w(r_,"getMapData");var Jl=r_;function n_(e){var t=Jl(this,e).delete(e);return this.size-=t?1:0,t}w(n_,"mapCacheDelete");var MV=n_;function o_(e){return Jl(this,e).get(e)}w(o_,"mapCacheGet");var BV=o_;function a_(e){return Jl(this,e).has(e)}w(a_,"mapCacheHas");var jV=a_;function i_(e,t){var r=Jl(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}w(i_,"mapCacheSet");var HV=i_;function An(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])}}w(An,"MapCache");An.prototype.clear=kV;An.prototype.delete=MV;An.prototype.get=BV;An.prototype.has=jV;An.prototype.set=HV;var l_=An,UV="Expected a function";function Zl(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(UV);var r=w(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},"memoized");return r.cache=new(Zl.Cache||l_),r}w(Zl,"memoize");Zl.Cache=l_;var zV=Zl,KV=500;function s_(e){var t=zV(e,function(n){return r.size===KV&&r.clear(),n}),r=t.cache;return t}w(s_,"memoizeCapped");var GV=s_,WV=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,VV=/\\(\\)?/g;GV(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(WV,function(r,n,o,a){t.push(o?a.replace(VV,"$1"):n||r)}),t});var qV=AC,YV=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/;function Mp(e){if(!qV(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=bC(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}w(Mp,"convertUnconventionalData");var XV=w(function(t){let r,n,o,a;return w(function(l,s){try{if(l==="")return a=[],r=new Map([[s,"[]"]]),n=new Map,o=[],s;const u=n.get(this)||this;for(;o.length&&u!==o[0];)o.shift(),a.pop();if(typeof s=="boolean")return s;if(s===void 0)return t.allowUndefined?"_undefined_":void 0;if(s===null)return null;if(typeof s=="number")return s===Number.NEGATIVE_INFINITY?"_-Infinity_":s===Number.POSITIVE_INFINITY?"_Infinity_":Number.isNaN(s)?"_NaN_":s;if(typeof s=="bigint")return`_bigint_${s.toString()}`;if(typeof s=="string")return YV.test(s)?t.allowDate?`_date_${s}`:void 0:s;if((0,DW.default)(s))return t.allowRegExp?`_regexp_${s.flags}|${s.source}`:void 0;if((0,PW.default)(s))return;if((0,FW.default)(s)){if(!t.allowSymbol)return;const d=Symbol.keyFor(s);return d!==void 0?`_gsymbol_${d}`:`_symbol_${s.toString().slice(7,-1)}`}if(o.length>=t.maxDepth)return Array.isArray(s)?`[Array(${s.length})]`:"[Object]";if(s===this)return`_duplicate_${JSON.stringify(a)}`;if(s instanceof Error&&t.allowError)return{__isConvertedError__:!0,errorProperties:{...s.cause?{cause:s.cause}:{},...s,name:s.name,message:s.message,stack:s.stack,"_constructor-name_":s.constructor.name}};if(s?.constructor?.name&&s.constructor.name!=="Object"&&!Array.isArray(s)){const d=r.get(s);if(!d){const f={__isClassInstance__:!0,__className__:s.constructor.name,...Object.getOwnPropertyNames(s).reduce((g,y)=>{try{g[y]=s[y]}catch{}return g},{})};return a.push(l),o.unshift(f),r.set(s,JSON.stringify(a)),s!==f&&n.set(s,f),f}return`_duplicate_${d}`}const c=r.get(s);if(!c){const d=Array.isArray(s)?s:Mp(s);return a.push(l),o.unshift(d),r.set(s,JSON.stringify(a)),s!==d&&n.set(s,d),d}return`_duplicate_${c}`}catch{return}},"replace")},"replacer2"),JV={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},ZV=w((e,t={})=>{const r={...JV,...t};return JSON.stringify(Mp(e),XV(r),t.space)},"stringify");function Bp(e){return ZV(e,{maxDepth:50})}w(Bp,"argsHash");var u_=p.createContext({sources:{}}),c_="--unknown--",QV=w(({children:e,channel:t})=>{const[r,n]=p.useState({});return p.useEffect(()=>{const o=w((a,i=null,l=!1)=>{const{id:s,args:u=void 0,source:c,format:d}=typeof a=="string"?{id:a,source:i,format:l}:a,f=u?Bp(u):c_;n(g=>({...g,[s]:{...g[s],[f]:{code:c||"",format:d}}}))},"handleSnippetRendered");return t.on(Kp,o),()=>t.off(Kp,o)},[]),m.createElement(u_.Provider,{value:{sources:r}},e)},"SourceContainer");function d_(e,t,r){const[n,o]=p.useState("Transforming..."),a=t?t?.(e,r):e;return p.useEffect(()=>{async function i(){const l=await a;l!==n&&o(l)}w(i,"getTransformedCode"),i()}),typeof a=="object"&&typeof a.then=="function"?n:a}w(d_,"useTransformCode");var eq=w((e,t,r)=>{const{sources:n}=r,o=n?.[e];return o?.[Bp(t)]||o?.[c_]||{code:""}},"getStorySource"),tq=w(({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{const o=t.parameters??{},{__isArgsStory:a}=o,i=o.docs?.source||{},l=r||i.type||ts.AUTO,u=l===ts.DYNAMIC||l===ts.AUTO&&e&&a?e:i.originalSource||"",c=n??i.transform,d=c?d_(u,c,t):u;return i.code!==void 0?i.code:d},"useCode"),rq=w((e,t,r)=>{const{of:n}=e,o=p.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?eq(o.id,i,r):null,s=tq({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?");const u=o?.parameters?.docs?.source||{};let c=e.format;const 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})},"useSourceProps"),nq=w(e=>{const t=p.useContext(Ot),r=p.useContext(u_),{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?");const{story:a}=Cn(n||"story",["story"]),i=rq({...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 m.createElement(S$,{withSource:c==="none"?void 0:i,isExpanded:c==="shown",withToolbar:s,additionalActions:u,className:d,layout:l,inline:f},m.createElement($U,{of:n||a.moduleExport,meta:e.meta,...e.story}))},"Canvas");const{filterArgTypes:nb}=__STORYBOOK_MODULE_PREVIEW_API__,{RESET_STORY_ARGS:oq,STORY_ARGS_UPDATED:ob,UPDATE_STORY_ARGS:aq}=__STORYBOOK_MODULE_CORE_EVENTS__;var iq=w((e,t)=>{const r=lq(e,t);if(!r)throw new Error("No result when story was defined");return r},"useArgs"),lq=w((e,t)=>{const r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[o,a]=p.useState(r.args);p.useEffect(()=>{const s=w(u=>{u.storyId===n&&a(u.args)},"onArgsUpdated");return t.channel.on(ob,s),()=>t.channel.off(ob,s)},[n,t.channel]);const i=p.useCallback(s=>t.channel.emit(aq,{storyId:n,updatedArgs:s}),[n,t.channel]),l=p.useCallback(s=>t.channel.emit(oq,{storyId:n,argNames:s}),[n,t.channel]);return e&&[o,i,l]},"useArgsIfDefined");const{GLOBALS_UPDATED:ab}=__STORYBOOK_MODULE_CORE_EVENTS__;var sq=w((e,t)=>{const r=t.getStoryContext(e),[n,o]=p.useState(r.globals);return p.useEffect(()=>{const a=w(i=>{o(i.globals)},"onGlobalsUpdated");return t.channel.on(ab,a),()=>t.channel.off(ab,a)},[t.channel]),[n]},"useGlobals");function f_(e,t){const{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}w(f_,"extractComponentArgTypes");var uq=w(e=>{const{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");const r=p.useContext(Ot),{story:n}=r.resolveOf(t||"story",["story"]),{parameters:o,argTypes:a,component:i,subcomponents:l}=n,s=o.docs?.controls||{},u=e.include??s.include,c=e.exclude??s.exclude,d=e.sort??s.sort,[f,g,y]=iq(n,r),[b]=sq(n,r),v=nb(a,u,c);if(!(!!l&&Object.keys(l||{}).length>0))return Object.keys(v).length>0||Object.keys(f).length>0?m.createElement(Dd,{rows:v,sort:d,args:f,globals:b,updateArgs:g,resetArgs:y}):null;const E=XG(i)||"Story",S=Object.fromEntries(Object.entries(l||{}).map(([_,$])=>[_,{rows:nb(f_($,o),u,c),sort:d}])),x={[E]:{rows:v,sort:d},...S};return m.createElement(jU,{tabs:x,sort:d,args:f,globals:b,updateArgs:g,resetArgs:y})},"Controls");const{NAVIGATE_URL:cq}=__STORYBOOK_MODULE_CORE_EVENTS__;var{document:p_}=globalThis,dq=w(({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return m.createElement(Lf,null,t);const n=e&&e.split("-");return m.createElement(a$,{language:n&&n[1]||"text",format:!1,code:t,...r})},"CodeOrSourceMdx");function Ql(e,t){e.channel.emit(cq,t)}w(Ql,"navigate");var Pd=Pw.a,fq=w(({hash:e,children:t})=>{const r=p.useContext(Ot);return m.createElement(Pd,{href:e,target:"_self",onClick:n=>{const o=e.substring(1);p_.getElementById(o)&&Ql(r,e)}},t)},"AnchorInPage"),pq=w(e=>{const{href:t,target:r,children:n,...o}=e,a=p.useContext(Ot);return!t||r==="_blank"||/^https?:\/\//.test(t)?m.createElement(Pd,{...e}):t.startsWith("#")?m.createElement(fq,{hash:t},n):m.createElement(Pd,{href:t,onClick:i=>{i.button===0&&!i.altKey&&!i.ctrlKey&&!i.metaKey&&!i.shiftKey&&(i.preventDefault(),Ql(a,i.currentTarget.getAttribute("href")||""))},target:r,...o},n)},"AnchorMdx"),h_=["h1","h2","h3","h4","h5","h6"],hq=h_.reduce((e,t)=>({...e,[t]:P(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),gq=P.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),mq=w(({as:e,id:t,children:r,...n})=>{const o=p.useContext(Ot),a=hq[e],i=`#${t}`;return m.createElement(a,{id:t,...n},m.createElement(gq,{"aria-hidden":"true",href:i,tabIndex:-1,target:"_self",onClick:l=>{p_.getElementById(t)&&Ql(o,i)}},m.createElement(UH,null)),r)},"HeaderWithOcticonAnchor"),jp=w(e=>{const{as:t,id:r,children:n,...o}=e;if(r)return m.createElement(mq,{as:t,id:r,...o},n);const a=t,{as:i,...l}=e;return m.createElement(a,{...we(l,t)})},"HeaderMdx"),yq=h_.reduce((e,t)=>({...e,[t]:r=>m.createElement(jp,{as:t,...r})}),{}),bq=w(e=>{if(!e.children)return null;if(typeof e.children!="string")throw new Error(Z_`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}'
746
- This is often caused by not wrapping the child in a template string.
747
-
748
- This is invalid:
749
- <Markdown>
750
- # Some heading
751
- A paragraph
752
- </Markdown>
753
-
754
- Instead do:
755
- <Markdown>
756
- {\`
757
- # Some heading
758
- A paragraph
759
- \`}
760
- </Markdown>
761
- `);return m.createElement(z$,{...e,options:{forceBlock:!0,overrides:{code:dq,a:pq,...yq,...e?.options?.overrides},...e?.options}})},"Markdown"),vq=w(e=>{switch(e.type){case"story":return e.story.parameters.docs?.description?.story||null;case"meta":{const{parameters:t,component:r}=e.preparedMeta,n=t.docs?.description?.component;return n||t.docs?.extractComponentDescription?.(r,{component:r,parameters:t})||null}case"component":{const{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}`)}},"getDescriptionFromResolvedOf"),Fd=w(e=>{const{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");const r=Cn(t||"meta"),n=vq(r);return n?m.createElement(bq,null,n):null},"DescriptionContainer"),{document:Eq,window:Sq}=globalThis,xq=w(({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 p.useEffect(()=>{let o;try{if(o=new URL(Sq.parent.location.toString()),o.hash){const a=Eq.getElementById(decodeURIComponent(o.hash.substring(1)));a&&setTimeout(()=>{hC(a)},200)}}catch{}}),m.createElement(Ot.Provider,{value:e},m.createElement(QV,{channel:e.channel},m.createElement(rf,{theme:_1(t)},m.createElement(xU,{toc:n?m.createElement(ZU,{className:"sbdocs sbdocs-toc--custom",channel:e.channel,...n}):null},r))))},"DocsContainer"),wq=/[\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,$q=Object.hasOwnProperty,g_=class{constructor(){this.occurrences,this.reset()}slug(t,r){const n=this;let o=m_(t,r===!0);const a=o;for(;$q.call(n.occurrences,o);)n.occurrences[a]++,o=a+"-"+n.occurrences[a];return n.occurrences[o]=0,o}reset(){this.occurrences=Object.create(null)}};w(g_,"BananaSlug");var Cq=g_;function m_(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(wq,"").replace(/ /g,"-"))}w(m_,"slug");var y_=new Cq,_q=w(({children:e,disableAnchor:t,...r})=>{if(t||typeof e!="string")return m.createElement(kf,null,e);const n=y_.slug(e.toLowerCase());return m.createElement(jp,{as:"h2",id:n,...r},e)},"Heading"),Tq=w(({children:e,disableAnchor:t})=>{if(t||typeof e!="string")return m.createElement(Nf,null,e);const r=y_.slug(e.toLowerCase());return m.createElement(jp,{as:"h3",id:r},e)},"Subheading"),b_=w(({of:e,expanded:t=!0,withToolbar:r=!1,__forceInitialArgs:n=!1,__primary:o=!1})=>{const{story:a}=Cn(e||"story",["story"]),i=a.parameters.docs?.canvas?.withToolbar??r;return m.createElement(pC,{storyId:a.id},t&&m.createElement(m.Fragment,null,m.createElement(Tq,null,a.name),m.createElement(Fd,{of:e})),m.createElement(nq,{of:e,withToolbar:i,story:{__forceInitialArgs:n,__primary:o},source:{__forceInitialArgs:n}}))},"DocsStory"),Aq=w(e=>{const{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");const{csfFile:r}=Cn(t||"meta",["meta"]),o=p.useContext(Ot).componentStoriesFromCSFFile(r)[0];return o?m.createElement(b_,{of:o.moduleExport,expanded:!1,__primary:!0,withToolbar:!0}):null},"Primary"),Oq=P(_q)(({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"}})),Rq=w(({title:e="Stories",includePrimary:t=!0})=>{const{componentStories:r,projectAnnotations:n,getStoryContext:o}=p.useContext(Ot);let a=r();const{stories:{filter:i}={filter:void 0}}=n.parameters?.docs||{};return i&&(a=a.filter(s=>i(s,o(s)))),a.some(s=>s.tags?.includes("autodocs"))&&(a=a.filter(s=>s.tags?.includes("autodocs")&&!s.usesMount)),t||(a=a.slice(1)),!a||a.length===0?null:m.createElement(m.Fragment,null,typeof e=="string"?m.createElement(Oq,null,e):e,a.map(s=>s&&m.createElement(b_,{key:s.id,of:s.moduleExport,expanded:!0,__forceInitialArgs:!0})))},"Stories");const{deprecate:Dq}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Pq="https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#subtitle-block-and-parameterscomponentsubtitle",Fq=w(e=>{const{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=Cn(t||"meta",["meta"]).preparedMeta}catch(l){if(r&&!l.message.includes("did you forget to use <Meta of={} />?"))throw l}const{componentSubtitle:o,docs:a}=n?.parameters||{};o&&Dq(`Using 'parameters.componentSubtitle' property to subtitle stories is deprecated. See ${Pq}`);const i=r||a?.subtitle||o;return i?m.createElement(vU,{className:"sbdocs-subtitle sb-unstyled"},i):null},"Subtitle"),Iq=/\s*\/\s*/,Lq=w(e=>{const t=e.trim().split(Iq);return t?.[t?.length-1]||e},"extractTitle"),kq=w(e=>{const{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=Cn(r||"meta",["meta"]).preparedMeta}catch(a){if(t&&a instanceof Error&&!a.message.includes("did you forget to use <Meta of={} />?"))throw a}const o=t||Lq(n?.title||"");return o?m.createElement(bU,{className:"sbdocs-title sb-unstyled"},o):null},"Title"),Nq=w(()=>{const e=Cn("meta",["meta"]),{stories:t}=e.csfFile,r=Object.keys(t).length===1;return m.createElement(m.Fragment,null,m.createElement(kq,null),m.createElement(Fq,null),m.createElement(Fd,{of:"meta"}),r?m.createElement(Fd,{of:"story"}):null,m.createElement(Aq,null),m.createElement(uq,null),r?null:m.createElement(Rq,null))},"DocsPage");function v_({context:e,docsParameter:t}){const r=t.container||xq,n=t.page||Nq;return m.createElement(r,{context:e,theme:t.theme},m.createElement(n,null))}w(v_,"Docs");const{composeConfigs:Mq}=__STORYBOOK_MODULE_PREVIEW_API__,{Channel:Bq}=__STORYBOOK_MODULE_CHANNELS__,{Preview:jq,composeConfigs:Hq}=__STORYBOOK_MODULE_PREVIEW_API__,{DocsContext:Uq}=__STORYBOOK_MODULE_PREVIEW_API__;var E_=class extends Uq{constructor(t,r,n,o){super(t,r,n,[]),this.channel=t,this.store=r,this.renderStoryToElement=n,this.processMetaExports=o,this.referenceMeta=w((a,i)=>{const l=this.processMetaExports(a);this.referenceCSFFile(l),super.referenceMeta(a,i)},"referenceMeta")}};w(E_,"ExternalDocsContext");var zq=E_,S_=class{constructor(t){this.prefix=t,this.entries=new Map}get(t){return this.entries.has(t)||this.entries.set(t,`${this.prefix}${this.entries.size}`),this.entries.get(t)}};w(S_,"ConstantMap");var ib=S_,x_=class extends jq{constructor(t){const r=w(o=>Promise.resolve(this.moduleExportsByImportPath[o]),"importFn"),n=w(()=>Hq([{parameters:{docs:{story:{inline:!0}}}},this.projectAnnotations]),"getProjectAnnotations");super(r,n,new Bq({})),this.projectAnnotations=t,this.importPaths=new ib("./importPath/"),this.titles=new ib("title-"),this.storyIndex={v:5,entries:{}},this.moduleExportsByImportPath={},this.processMetaExports=w(o=>{const a=this.importPaths.get(o);this.moduleExportsByImportPath[a]=o;const i=o.default.title||this.titles.get(o),l=this.storyStoreValue.processCSFFileWithCache(o,a,i);return Object.values(l.stories).forEach(({id:s,name:u})=>{this.storyIndex.entries[s]={id:s,importPath:a,title:i,name:u,type:"story",subtype:"story"}}),this.onStoriesChanged({storyIndex:this.storyIndex}),l},"processMetaExports"),this.docsContext=w(()=>new zq(this.channel,this.storyStoreValue,this.renderStoryToElement.bind(this),this.processMetaExports.bind(this)),"docsContext")}async getStoryIndexFromServer(){return this.storyIndex}};w(x_,"ExternalPreview");var Kq=x_;function w_(e){const t=p.useRef();return t.current||(t.current=new Kq(e)),t.current}w(w_,"usePreview");function Gq({projectAnnotationsList:e,children:t}){const r=Mq(e),n=w_(r),o={...r.parameters?.docs,page:w(()=>t,"page")},a=v_;return m.createElement(a,{docsParameter:o,context:n.docsContext()})}w(Gq,"ExternalDocs");var OY=w(({of:e})=>{const t=p.useContext(Ot);e&&t.referenceMeta(e,!0);try{const r=t.storyById();return m.createElement(pC,{storyId:r.id})}catch{return null}},"Meta");export{O1 as A,uq as C,v_ as D,xn as F,yq as H,OY as M,m as R,$U as S,vE as T,XB as W,Ue as _,gY as a,mn as b,T1 as c,$t as d,k3 as e,da as f,Bt as g,L3 as h,sf as i,se as j,qd as k,Yd as l,J2 as m,pq as n,dq as o,p as r,P as s};