@koide-labs/ui 0.0.0 → 0.0.2

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 (383) hide show
  1. package/README.md +53 -3
  2. package/{src/-types.ts → dist/-types.d.ts} +1 -6
  3. package/dist/-types.js +1 -0
  4. package/dist/-utils.d.ts +19 -0
  5. package/dist/-utils.js +33 -0
  6. package/dist/Button-DrPFFzo7.js +31 -0
  7. package/dist/CompositeRoot-CVk5a-pR.js +233 -0
  8. package/dist/DirectionContext-C2o_MF_i.js +9 -0
  9. package/dist/FieldItemContext-DAvk99to.js +11 -0
  10. package/dist/FloatingPortal-tWyuKRSN.js +435 -0
  11. package/dist/FloatingPortalLite-DVyq6YhV.js +28 -0
  12. package/dist/InternalBackdrop-jYAiOJ8v.js +574 -0
  13. package/dist/LabelableContext-BMvjVwor.js +169 -0
  14. package/dist/ToolbarRootContext-CvvL0Tk1.js +9 -0
  15. package/dist/clamp-D0KDAQIz.js +6 -0
  16. package/dist/clsx-OuTLNxxd.js +16 -0
  17. package/dist/components/accordion/index.d.ts +12 -0
  18. package/dist/components/accordion/index.js +699 -0
  19. package/dist/components/alert-dialog/index.d.ts +26 -0
  20. package/dist/components/alert-dialog/index.js +136 -0
  21. package/dist/components/anchor/index.d.ts +8 -0
  22. package/dist/components/anchor/index.js +38 -0
  23. package/dist/components/avatar/index.d.ts +21 -0
  24. package/dist/components/avatar/index.js +161 -0
  25. package/dist/components/badge/index.d.ts +16 -0
  26. package/dist/components/badge/index.js +40 -0
  27. package/dist/components/button/index.d.ts +24 -0
  28. package/dist/components/button/index.js +47 -0
  29. package/dist/components/checkbox/index.d.ts +9 -0
  30. package/dist/components/checkbox/index.js +269 -0
  31. package/dist/components/code/index.d.ts +9 -0
  32. package/dist/components/code/index.js +10 -0
  33. package/dist/components/collapse/index.d.ts +11 -0
  34. package/dist/components/collapse/index.js +41 -0
  35. package/dist/components/command/index.d.ts +14 -0
  36. package/dist/components/command/index.js +1695 -0
  37. package/dist/components/context-menu/index.d.ts +42 -0
  38. package/dist/components/context-menu/index.js +1444 -0
  39. package/dist/components/dialog/index.d.ts +48 -0
  40. package/dist/components/dialog/index.js +138 -0
  41. package/dist/components/heading/index.d.ts +44 -0
  42. package/dist/components/heading/index.js +56 -0
  43. package/dist/components/icon/icon-names.d.ts +1 -0
  44. package/dist/components/icon/icon-names.js +1 -0
  45. package/dist/components/icon/index.d.ts +24 -0
  46. package/dist/components/icon/index.js +43 -0
  47. package/dist/components/icon-button/index.d.ts +12 -0
  48. package/dist/components/icon-button/index.js +45 -0
  49. package/dist/components/inline-code/index.d.ts +6 -0
  50. package/dist/components/inline-code/index.js +22 -0
  51. package/dist/components/input/index.d.ts +3 -0
  52. package/dist/components/input/index.js +119 -0
  53. package/dist/components/meter/index.d.ts +18 -0
  54. package/dist/components/meter/index.js +165 -0
  55. package/dist/components/multiline-input/index.d.ts +6 -0
  56. package/dist/components/multiline-input/index.js +100 -0
  57. package/dist/components/number-input/index.d.ts +10 -0
  58. package/dist/components/number-input/index.js +1169 -0
  59. package/dist/components/password-input/index.d.ts +2 -0
  60. package/dist/components/password-input/index.js +29 -0
  61. package/dist/components/pill/index.d.ts +13 -0
  62. package/dist/components/pill/index.js +38 -0
  63. package/dist/components/popover/index.d.ts +21 -0
  64. package/dist/components/popover/index.js +636 -0
  65. package/dist/components/preview-card/index.d.ts +17 -0
  66. package/dist/components/preview-card/index.js +402 -0
  67. package/dist/components/radio/index.d.ts +13 -0
  68. package/dist/components/radio/index.js +404 -0
  69. package/dist/components/search-bar/index.d.ts +12 -0
  70. package/dist/components/search-bar/index.js +48 -0
  71. package/dist/components/select/index.d.ts +16 -0
  72. package/dist/components/select/index.js +1263 -0
  73. package/dist/components/separator/index.d.ts +7 -0
  74. package/dist/components/separator/index.js +6 -0
  75. package/dist/components/slider/index.d.ts +5 -0
  76. package/dist/components/slider/index.js +902 -0
  77. package/dist/components/spinner/index.d.ts +2 -0
  78. package/dist/components/spinner/index.js +13 -0
  79. package/dist/components/stacked-avatars/index.d.ts +14 -0
  80. package/dist/components/stacked-avatars/index.js +92 -0
  81. package/dist/components/status-banner/index.d.ts +17 -0
  82. package/dist/components/status-banner/index.js +69 -0
  83. package/dist/components/surface/index.d.ts +27 -0
  84. package/dist/components/surface/index.js +41 -0
  85. package/dist/components/switch/index.d.ts +5 -0
  86. package/dist/components/switch/index.js +196 -0
  87. package/dist/components/tabs/index.d.ts +18 -0
  88. package/dist/components/tabs/index.js +509 -0
  89. package/dist/components/text/index.d.ts +26 -0
  90. package/dist/components/text/index.js +51 -0
  91. package/dist/components/theme-provider/index.d.ts +2 -0
  92. package/dist/components/theme-provider/index.js +6 -0
  93. package/dist/components/theme-provider/theme-context.d.ts +9 -0
  94. package/dist/components/theme-provider/theme-context.js +13 -0
  95. package/dist/components/theme-provider/theme-provider.d.ts +17 -0
  96. package/dist/components/theme-provider/theme-provider.js +30 -0
  97. package/dist/components/timestamp/index.d.ts +23 -0
  98. package/dist/components/timestamp/index.js +1392 -0
  99. package/dist/components/toast/index.d.ts +2 -0
  100. package/dist/components/toast/index.js +7 -0
  101. package/dist/components/toast/toast.d.ts +2 -0
  102. package/dist/components/toast/toast.js +878 -0
  103. package/dist/components/toast/use-toast-manager.d.ts +27 -0
  104. package/dist/components/toast/use-toast-manager.js +4 -0
  105. package/dist/components/tooltip/index.d.ts +14 -0
  106. package/dist/components/tooltip/index.js +712 -0
  107. package/dist/components/tooltip/tooltip-arrow.d.ts +3 -0
  108. package/dist/components/tooltip/tooltip-arrow.js +6 -0
  109. package/dist/components/view/index.d.ts +30 -0
  110. package/dist/components/view/index.js +84 -0
  111. package/dist/components/visually-hidden/index.d.ts +1 -0
  112. package/dist/components/visually-hidden/index.js +4 -0
  113. package/dist/composite-Bx7Szd_T.js +208 -0
  114. package/dist/composite-C9L5QmZL.js +66 -0
  115. package/dist/createBaseUIEventDetails-D8M2Yl-a.js +59 -0
  116. package/dist/detectBrowser-I-s3yzIE.js +43 -0
  117. package/dist/dialog.css +1 -0
  118. package/dist/dialog.module-BeF-6XAo.js +415 -0
  119. package/dist/element-CZEOj04G.js +80 -0
  120. package/dist/event-CKoGyQEJ.js +30 -0
  121. package/dist/floating-ui.utils-C7pRWMZ_.js +128 -0
  122. package/dist/floating-ui.utils.dom-C7FS5id0.js +135 -0
  123. package/dist/formatErrorMessage-BqPuTBN-.js +7 -0
  124. package/dist/formatNumber-1UNwjeqf.js +25 -0
  125. package/dist/getDisabledMountTransitionStyles-YfHPge6T.js +1510 -0
  126. package/dist/index-BX1XbbRk.js +1206 -0
  127. package/dist/index-CeuccO-T.js +109 -0
  128. package/dist/index-DN9Bn1qm.js +29 -0
  129. package/dist/index-FMoPxlJ2.js +52 -0
  130. package/dist/index.css +1 -0
  131. package/dist/index.d.ts +42 -0
  132. package/dist/index.js +108 -0
  133. package/dist/index10.css +1 -0
  134. package/dist/index11.css +1 -0
  135. package/dist/index12.css +1 -0
  136. package/dist/index13.css +1 -0
  137. package/dist/index14.css +1 -0
  138. package/dist/index15.css +1 -0
  139. package/dist/index16.css +1 -0
  140. package/dist/index17.css +1 -0
  141. package/dist/index18.css +1 -0
  142. package/dist/index19.css +1 -0
  143. package/dist/index2.css +1 -0
  144. package/dist/index20.css +1 -0
  145. package/dist/index21.css +1 -0
  146. package/dist/index22.css +1 -0
  147. package/dist/index23.css +1 -0
  148. package/dist/index24.css +1 -0
  149. package/dist/index25.css +1 -0
  150. package/dist/index26.css +1 -0
  151. package/dist/index27.css +1 -0
  152. package/dist/index28.css +1 -0
  153. package/dist/index29.css +1 -0
  154. package/dist/index3.css +1 -0
  155. package/dist/index30.css +1 -0
  156. package/dist/index31.css +1 -0
  157. package/dist/index32.css +1 -0
  158. package/dist/index33.css +1 -0
  159. package/dist/index34.css +1 -0
  160. package/dist/index35.css +1 -0
  161. package/dist/index36.css +1 -0
  162. package/dist/index37.css +1 -0
  163. package/dist/index4.css +1 -0
  164. package/dist/index5.css +1 -0
  165. package/dist/index6.css +1 -0
  166. package/dist/index7.css +1 -0
  167. package/dist/index8.css +1 -0
  168. package/dist/index9.css +1 -0
  169. package/dist/inertValue-BCYGsdmf.js +7 -0
  170. package/dist/input.css +1 -0
  171. package/dist/input.module-DDQY_Ij6.js +7 -0
  172. package/dist/integrations/react-markdown/index.d.ts +5 -0
  173. package/dist/integrations/react-markdown/index.js +6895 -0
  174. package/dist/integrations/remix/index.d.ts +9 -0
  175. package/{src/integrations/remix.ts → dist/integrations/remix/index.js} +7 -4
  176. package/dist/integrations/tailwind.css +1 -0
  177. package/dist/integrations/twemoij/index.d.ts +3 -0
  178. package/dist/integrations/twemoij/index.js +18 -0
  179. package/dist/isElementDisabled-Cbd8W9kH.js +6 -0
  180. package/dist/owner-rKN292Q9.js +6 -0
  181. package/dist/safePolygon-DWy1dGKJ.js +308 -0
  182. package/dist/styles/core.css +1 -0
  183. package/dist/styles/tokens.d.ts +400 -0
  184. package/{src/styles/tokens.ts → dist/styles/tokens.js} +54 -96
  185. package/dist/toast.css +1 -0
  186. package/dist/tooltip-arrow-C1qXdi5T.js +24 -0
  187. package/dist/tooltip-arrow.css +1 -0
  188. package/dist/transitions.css +1 -0
  189. package/dist/transitions.module-CWX8e5cx.js +1343 -0
  190. package/dist/use-toast-manager-Dq-44AuW.js +37 -0
  191. package/dist/useAnimationFrame-451ugS_6.js +68 -0
  192. package/dist/useBaseUiId-B7WyxtIE.js +7 -0
  193. package/dist/useButton-DfIwsdb8.js +127 -0
  194. package/dist/useCompositeListItem-OkcAim_1.js +148 -0
  195. package/dist/useControlled-Du4sJyMj.js +31 -0
  196. package/dist/useHoverReferenceInteraction-SfOBPoXM.js +264 -0
  197. package/dist/useId-C5kyn6tA.js +22 -0
  198. package/dist/useIsoLayoutEffect-CIDbvm3Q.js +6 -0
  199. package/dist/useLabelableId-Ci_jDvmv.js +29 -0
  200. package/dist/useOnMount-VRW6CK2u.js +8 -0
  201. package/dist/useOpenChangeComplete-Dse9kY9E.js +61 -0
  202. package/dist/usePopupAutoResize-CNR6Ekmx.js +85 -0
  203. package/dist/useRender-CLx7dR_1.js +7 -0
  204. package/dist/useRenderElement-DwToLA61.js +244 -0
  205. package/dist/useRole-oDBdbuwQ.js +77 -0
  206. package/dist/useStableCallback-CkTrVkNX.js +29 -0
  207. package/dist/useSyncedFloatingRootContext-Dorsv-jf.js +167 -0
  208. package/dist/useTimeout-CflX-kz3.js +32 -0
  209. package/dist/useTransitionStatus-CUfcuGAV.js +42 -0
  210. package/dist/useTypeahead-D85V2IUx.js +333 -0
  211. package/dist/useValueAsRef-HURLzret.js +19 -0
  212. package/dist/useValueChanged-DL757-yD.js +14 -0
  213. package/dist/valueToPercent-DaP9qN4u.js +6 -0
  214. package/dist/view.css +1 -0
  215. package/dist/view.module-DfDLgJE0.js +6 -0
  216. package/dist/visuallyHidden-CpJ-mhai.js +16 -0
  217. package/dist/warn-CKtX8MLJ.js +11 -0
  218. package/package.json +18 -2
  219. package/.husky/pre-commit +0 -1
  220. package/.storybook/main.ts +0 -25
  221. package/.storybook/preview-head.html +0 -6
  222. package/.storybook/preview.tsx +0 -48
  223. package/.storybook/vitest.setup.ts +0 -8
  224. package/eslint.config.mjs +0 -29
  225. package/lint-staged.config.js +0 -15
  226. package/pnpm-workspace.yaml +0 -2
  227. package/postcss.config.mjs +0 -7
  228. package/prettier.config.mjs +0 -24
  229. package/scripts/build-icon-types.ts +0 -38
  230. package/src/-utils.tsx +0 -64
  231. package/src/components/accordion/accordion.module.css +0 -44
  232. package/src/components/accordion/accordion.stories.tsx +0 -36
  233. package/src/components/accordion/index.tsx +0 -67
  234. package/src/components/alert-dialog/alert-dialog.module.css +0 -5
  235. package/src/components/alert-dialog/alert-dialog.stories.tsx +0 -53
  236. package/src/components/alert-dialog/index.tsx +0 -138
  237. package/src/components/anchor/anchor.module.css +0 -18
  238. package/src/components/anchor/anchor.stories.tsx +0 -28
  239. package/src/components/anchor/index.tsx +0 -45
  240. package/src/components/avatar/avatar.module.css +0 -56
  241. package/src/components/avatar/avatar.stories.tsx +0 -61
  242. package/src/components/avatar/index.tsx +0 -82
  243. package/src/components/badge/badge.module.css +0 -35
  244. package/src/components/badge/badge.stories.tsx +0 -60
  245. package/src/components/badge/index.tsx +0 -71
  246. package/src/components/button/button.module.css +0 -42
  247. package/src/components/button/button.stories.tsx +0 -108
  248. package/src/components/button/index.tsx +0 -63
  249. package/src/components/checkbox/checkbox.module.css +0 -36
  250. package/src/components/checkbox/checkbox.stories.tsx +0 -21
  251. package/src/components/checkbox/index.tsx +0 -41
  252. package/src/components/code/code.module.css +0 -20
  253. package/src/components/code/code.stories.tsx +0 -42
  254. package/src/components/code/index.tsx +0 -73
  255. package/src/components/collapse/collapse.module.css +0 -27
  256. package/src/components/collapse/collapse.stories.tsx +0 -27
  257. package/src/components/collapse/index.tsx +0 -59
  258. package/src/components/command/command.module.css +0 -95
  259. package/src/components/command/command.stories.tsx +0 -38
  260. package/src/components/command/index.tsx +0 -108
  261. package/src/components/context-menu/context-menu.module.css +0 -36
  262. package/src/components/context-menu/context-menu.stories.tsx +0 -99
  263. package/src/components/context-menu/index.tsx +0 -242
  264. package/src/components/dialog/dialog.module.css +0 -71
  265. package/src/components/dialog/dialog.stories.tsx +0 -29
  266. package/src/components/dialog/index.tsx +0 -148
  267. package/src/components/heading/heading.module.css +0 -3
  268. package/src/components/heading/heading.stories.tsx +0 -52
  269. package/src/components/heading/index.tsx +0 -112
  270. package/src/components/icon/icon-names.ts +0 -3189
  271. package/src/components/icon/icon.module.css +0 -36
  272. package/src/components/icon/icon.stories.tsx +0 -40
  273. package/src/components/icon/index.tsx +0 -60
  274. package/src/components/icon-button/icon-button.module.css +0 -33
  275. package/src/components/icon-button/icon-button.stories.tsx +0 -59
  276. package/src/components/icon-button/index.tsx +0 -48
  277. package/src/components/inline-code/index.tsx +0 -29
  278. package/src/components/inline-code/inline-code.module.css +0 -13
  279. package/src/components/inline-code/inline-code.stories.tsx +0 -31
  280. package/src/components/input/index.tsx +0 -22
  281. package/src/components/input/input.module.css +0 -23
  282. package/src/components/input/input.stories.tsx +0 -52
  283. package/src/components/meter/index.tsx +0 -55
  284. package/src/components/meter/meter.module.css +0 -23
  285. package/src/components/meter/meter.stories.tsx +0 -31
  286. package/src/components/multiline-input/index.tsx +0 -58
  287. package/src/components/multiline-input/multiline-input.stories.tsx +0 -26
  288. package/src/components/number-input/index.tsx +0 -74
  289. package/src/components/number-input/number-input.module.css +0 -41
  290. package/src/components/number-input/number-input.stories.tsx +0 -24
  291. package/src/components/password-input/index.tsx +0 -24
  292. package/src/components/password-input/password-input.module.css +0 -10
  293. package/src/components/password-input/password-input.stories.tsx +0 -24
  294. package/src/components/pill/index.tsx +0 -45
  295. package/src/components/pill/pill.module.css +0 -22
  296. package/src/components/pill/pill.stories.tsx +0 -83
  297. package/src/components/popover/index.tsx +0 -94
  298. package/src/components/popover/popover.module.css +0 -8
  299. package/src/components/popover/popover.stories.tsx +0 -53
  300. package/src/components/preview-card/index.tsx +0 -68
  301. package/src/components/preview-card/preview-card.module.css +0 -5
  302. package/src/components/preview-card/preview-card.stories.tsx +0 -58
  303. package/src/components/radio/index.tsx +0 -67
  304. package/src/components/radio/radio-group.module.css +0 -5
  305. package/src/components/radio/radio.module.css +0 -36
  306. package/src/components/radio/radio.stories.tsx +0 -27
  307. package/src/components/search-bar/index.tsx +0 -60
  308. package/src/components/search-bar/search-bar.module.css +0 -29
  309. package/src/components/search-bar/search-bar.stories.tsx +0 -37
  310. package/src/components/select/index.tsx +0 -132
  311. package/src/components/select/select.module.css +0 -63
  312. package/src/components/select/select.stories.tsx +0 -49
  313. package/src/components/separator/index.tsx +0 -28
  314. package/src/components/separator/separator.module.css +0 -24
  315. package/src/components/separator/separator.stories.tsx +0 -40
  316. package/src/components/slider/index.tsx +0 -28
  317. package/src/components/slider/slider.module.css +0 -52
  318. package/src/components/slider/slider.stories.tsx +0 -53
  319. package/src/components/spinner/index.tsx +0 -14
  320. package/src/components/spinner/spinner.module.css +0 -13
  321. package/src/components/spinner/spinner.stories.tsx +0 -17
  322. package/src/components/stacked-avatars/index.tsx +0 -88
  323. package/src/components/stacked-avatars/stacked-avatars.module.css +0 -79
  324. package/src/components/stacked-avatars/stacked-avatars.stories.tsx +0 -48
  325. package/src/components/status-banner/index.tsx +0 -96
  326. package/src/components/status-banner/status-banner.module.css +0 -52
  327. package/src/components/status-banner/status-banner.stories.tsx +0 -44
  328. package/src/components/surface/index.tsx +0 -83
  329. package/src/components/surface/surface.module.css +0 -35
  330. package/src/components/surface/surface.stories.tsx +0 -84
  331. package/src/components/switch/index.tsx +0 -23
  332. package/src/components/switch/switch.module.css +0 -45
  333. package/src/components/switch/switch.stories.tsx +0 -48
  334. package/src/components/tabs/index.tsx +0 -126
  335. package/src/components/tabs/tabs.module.css +0 -134
  336. package/src/components/tabs/tabs.stories.tsx +0 -88
  337. package/src/components/text/index.tsx +0 -69
  338. package/src/components/text/text.module.css +0 -76
  339. package/src/components/text/text.stories.tsx +0 -107
  340. package/src/components/theme-provider/index.ts +0 -2
  341. package/src/components/theme-provider/theme-context.tsx +0 -18
  342. package/src/components/theme-provider/theme-provider.stories.tsx +0 -47
  343. package/src/components/theme-provider/theme-provider.tsx +0 -77
  344. package/src/components/timestamp/index.tsx +0 -131
  345. package/src/components/timestamp/timestamp.module.css +0 -8
  346. package/src/components/timestamp/timestamp.stories.tsx +0 -37
  347. package/src/components/toast/index.ts +0 -2
  348. package/src/components/toast/toast.module.css +0 -163
  349. package/src/components/toast/toast.stories.tsx +0 -53
  350. package/src/components/toast/toast.tsx +0 -104
  351. package/src/components/toast/use-toast-manager.ts +0 -63
  352. package/src/components/tooltip/index.tsx +0 -61
  353. package/src/components/tooltip/tooltip-arrow.tsx +0 -17
  354. package/src/components/tooltip/tooltip.module.css +0 -44
  355. package/src/components/tooltip/tooltip.stories.tsx +0 -76
  356. package/src/components/view/index.tsx +0 -137
  357. package/src/components/view/view.module.css +0 -11
  358. package/src/components/view/view.stories.tsx +0 -131
  359. package/src/components/view/view_colorway.module.css +0 -280
  360. package/src/components/view/view_interactive.module.css +0 -127
  361. package/src/components/view/view_loading.module.css +0 -58
  362. package/src/components/visually-hidden/index.ts +0 -1
  363. package/src/index.ts +0 -49
  364. package/src/integrations/react-markdown/index.tsx +0 -134
  365. package/src/integrations/react-markdown/react-markdown.module.css +0 -62
  366. package/src/integrations/react-markdown/react-markdown.stories.tsx +0 -31
  367. package/src/integrations/tailwind.css +0 -173
  368. package/src/integrations/twemoij/index.tsx +0 -13
  369. package/src/integrations/twemoij/twemoji.module.css +0 -7
  370. package/src/integrations/twemoij/twemoji.stories.tsx +0 -40
  371. package/src/stories/components/all-variants.tsx +0 -40
  372. package/src/stories/data.ts +0 -72
  373. package/src/stories/utils.ts +0 -20
  374. package/src/styles/core.css +0 -153
  375. package/src/styles/themes/dark.css +0 -86
  376. package/src/styles/themes/light.css +0 -86
  377. package/src/styles/transitions.module.css +0 -31
  378. package/stylelint.config.mjs +0 -29
  379. package/tsconfig.app.json +0 -35
  380. package/tsconfig.json +0 -7
  381. package/tsconfig.node.json +0 -26
  382. package/vite.config.ts +0 -103
  383. package/vitest.shims.d.ts +0 -1
@@ -0,0 +1,415 @@
1
+ import * as s from "react";
2
+ import { u as L } from "./useStableCallback-CkTrVkNX.js";
3
+ import { u as H, a as Y, F as $, I as q, b as A } from "./InternalBackdrop-jYAiOJ8v.js";
4
+ import { c as U, i as J, d as Q } from "./createBaseUIEventDetails-D8M2Yl-a.js";
5
+ import { u as X, a as Z, b as ee, p as te, c as oe, d as ne } from "./useSyncedFloatingRootContext-Dorsv-jf.js";
6
+ import { u as se } from "./useRole-oDBdbuwQ.js";
7
+ import { d as re, e as z, R as ie, P as ae, c as S, p as K, C as w, f as le } from "./transitions.module-CWX8e5cx.js";
8
+ import { e as ce, f as de } from "./element-CZEOj04G.js";
9
+ import { u as P } from "./useRenderElement-DwToLA61.js";
10
+ import { t as W, a as pe } from "./useOpenChangeComplete-Dse9kY9E.js";
11
+ import { u as j } from "./useButton-DfIwsdb8.js";
12
+ import { u as B } from "./useBaseUiId-B7WyxtIE.js";
13
+ import { C as ue } from "./composite-C9L5QmZL.js";
14
+ import { jsx as M, jsxs as ge } from "react/jsx-runtime";
15
+ import { i as fe } from "./inertValue-BCYGsdmf.js";
16
+ import { f as F } from "./formatErrorMessage-BqPuTBN-.js";
17
+ import { h as me, C as _e } from "./FloatingPortal-tWyuKRSN.js";
18
+ import './dialog.css';function ot(t) {
19
+ const {
20
+ store: e,
21
+ parentContext: n,
22
+ actionsRef: d
23
+ } = t, i = e.useState("open"), r = e.useState("disablePointerDismissal"), l = e.useState("modal"), a = e.useState("popupElement"), {
24
+ openMethod: o,
25
+ triggerProps: p,
26
+ reset: h
27
+ } = H(i);
28
+ X(e);
29
+ const {
30
+ forceUnmount: u
31
+ } = Z(i, e, () => {
32
+ h();
33
+ }), c = L((f) => {
34
+ const E = U(f);
35
+ return E.preventUnmountOnClose = () => {
36
+ e.set("preventUnmountingOnClose", !0);
37
+ }, E;
38
+ }), m = s.useCallback(() => {
39
+ e.setOpen(!1, c(J));
40
+ }, [e, c]);
41
+ s.useImperativeHandle(d, () => ({
42
+ unmount: u,
43
+ close: m
44
+ }), [u, m]);
45
+ const g = ee({
46
+ popupStore: e,
47
+ onOpenChange: e.setOpen,
48
+ treatPopupAsFloatingElement: !0,
49
+ noEmit: !0
50
+ }), [_, D] = s.useState(0), C = _ === 0, x = se(g), v = re(g, {
51
+ outsidePressEvent() {
52
+ return e.context.internalBackdropRef.current || e.context.backdropRef.current ? "intentional" : {
53
+ mouse: l === "trap-focus" ? "sloppy" : "intentional",
54
+ touch: "sloppy"
55
+ };
56
+ },
57
+ outsidePress(f) {
58
+ if ("button" in f && f.button !== 0 || "touches" in f && f.touches.length !== 1)
59
+ return !1;
60
+ const E = ce(f);
61
+ if (C && !r) {
62
+ const T = E;
63
+ return l && (e.context.internalBackdropRef.current || e.context.backdropRef.current) ? e.context.internalBackdropRef.current === T || e.context.backdropRef.current === T || de(T, a) && !T?.hasAttribute("data-base-ui-portal") : !0;
64
+ }
65
+ return !1;
66
+ },
67
+ escapeKey: C
68
+ });
69
+ Y(i && l === !0, a);
70
+ const {
71
+ getReferenceProps: R,
72
+ getFloatingProps: O,
73
+ getTriggerProps: I
74
+ } = z([x, v]);
75
+ e.useContextCallback("onNestedDialogOpen", (f) => {
76
+ D(f + 1);
77
+ }), e.useContextCallback("onNestedDialogClose", () => {
78
+ D(0);
79
+ }), s.useEffect(() => (n?.onNestedDialogOpen && i && n.onNestedDialogOpen(_), n?.onNestedDialogClose && !i && n.onNestedDialogClose(), () => {
80
+ n?.onNestedDialogClose && i && n.onNestedDialogClose();
81
+ }), [i, n, _]);
82
+ const y = s.useMemo(() => R(p), [R, p]), b = s.useMemo(() => I(p), [I, p]), k = s.useMemo(() => O(), [O]);
83
+ e.useSyncedValues({
84
+ openMethod: o,
85
+ activeTriggerProps: y,
86
+ inactiveTriggerProps: b,
87
+ popupProps: k,
88
+ floatingRootContext: g,
89
+ nestedOpenDialogCount: _
90
+ });
91
+ }
92
+ const G = /* @__PURE__ */ s.createContext(void 0);
93
+ process.env.NODE_ENV !== "production" && (G.displayName = "DialogRootContext");
94
+ function N(t) {
95
+ const e = s.useContext(G);
96
+ if (t === !1 && e === void 0)
97
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: DialogRootContext is missing. Dialog parts must be placed within <Dialog.Root>." : F(27));
98
+ return e;
99
+ }
100
+ const he = {
101
+ ...te,
102
+ modal: S((t) => t.modal),
103
+ nested: S((t) => t.nested),
104
+ nestedOpenDialogCount: S((t) => t.nestedOpenDialogCount),
105
+ disablePointerDismissal: S((t) => t.disablePointerDismissal),
106
+ openMethod: S((t) => t.openMethod),
107
+ descriptionElementId: S((t) => t.descriptionElementId),
108
+ titleElementId: S((t) => t.titleElementId),
109
+ viewportElement: S((t) => t.viewportElement),
110
+ role: S((t) => t.role)
111
+ };
112
+ class nt extends ie {
113
+ constructor(e) {
114
+ super(Ce(e), {
115
+ popupRef: /* @__PURE__ */ s.createRef(),
116
+ backdropRef: /* @__PURE__ */ s.createRef(),
117
+ internalBackdropRef: /* @__PURE__ */ s.createRef(),
118
+ triggerElements: new ae(),
119
+ onOpenChange: void 0,
120
+ onOpenChangeComplete: void 0
121
+ }, he);
122
+ }
123
+ setOpen = (e, n) => {
124
+ if (n.preventUnmountOnClose = () => {
125
+ this.set("preventUnmountingOnClose", !0);
126
+ }, !e && n.trigger == null && this.state.activeTriggerId != null && (n.trigger = this.state.activeTriggerElement ?? void 0), this.context.onOpenChange?.(e, n), n.isCanceled)
127
+ return;
128
+ const d = {
129
+ open: e,
130
+ nativeEvent: n.event,
131
+ reason: n.reason,
132
+ nested: this.state.nested
133
+ };
134
+ this.state.floatingRootContext.context.events?.emit("openchange", d);
135
+ const i = {
136
+ open: e
137
+ }, r = n.trigger?.id ?? null;
138
+ (r || e) && (i.activeTriggerId = r, i.activeTriggerElement = n.trigger ?? null), this.update(i);
139
+ };
140
+ }
141
+ function Ce(t = {}) {
142
+ return {
143
+ ...oe(),
144
+ modal: !0,
145
+ disablePointerDismissal: !1,
146
+ popupElement: null,
147
+ viewportElement: null,
148
+ descriptionElementId: void 0,
149
+ titleElementId: void 0,
150
+ openMethod: null,
151
+ nested: !1,
152
+ nestedOpenDialogCount: 0,
153
+ role: "dialog",
154
+ ...t
155
+ };
156
+ }
157
+ const Ee = {
158
+ ...K,
159
+ ...W
160
+ }, Se = /* @__PURE__ */ s.forwardRef(function(e, n) {
161
+ const {
162
+ render: d,
163
+ className: i,
164
+ forceRender: r = !1,
165
+ ...l
166
+ } = e, {
167
+ store: a
168
+ } = N(), o = a.useState("open"), p = a.useState("nested"), h = a.useState("mounted"), u = a.useState("transitionStatus"), c = s.useMemo(() => ({
169
+ open: o,
170
+ transitionStatus: u
171
+ }), [o, u]);
172
+ return P("div", e, {
173
+ state: c,
174
+ ref: [a.context.backdropRef, n],
175
+ stateAttributesMapping: Ee,
176
+ props: [{
177
+ role: "presentation",
178
+ hidden: !h,
179
+ style: {
180
+ userSelect: "none",
181
+ WebkitUserSelect: "none"
182
+ }
183
+ }, l],
184
+ enabled: r || !p
185
+ });
186
+ });
187
+ process.env.NODE_ENV !== "production" && (Se.displayName = "DialogBackdrop");
188
+ const De = /* @__PURE__ */ s.forwardRef(function(e, n) {
189
+ const {
190
+ render: d,
191
+ className: i,
192
+ disabled: r = !1,
193
+ nativeButton: l = !0,
194
+ ...a
195
+ } = e, {
196
+ store: o
197
+ } = N(), p = o.useState("open");
198
+ function h(g) {
199
+ p && o.setOpen(!1, U(Q, g.nativeEvent));
200
+ }
201
+ const {
202
+ getButtonProps: u,
203
+ buttonRef: c
204
+ } = j({
205
+ disabled: r,
206
+ native: l
207
+ }), m = s.useMemo(() => ({
208
+ disabled: r
209
+ }), [r]);
210
+ return P("button", e, {
211
+ state: m,
212
+ ref: [n, c],
213
+ props: [{
214
+ onClick: h
215
+ }, a, u]
216
+ });
217
+ });
218
+ process.env.NODE_ENV !== "production" && (De.displayName = "DialogClose");
219
+ const Re = /* @__PURE__ */ s.forwardRef(function(e, n) {
220
+ const {
221
+ render: d,
222
+ className: i,
223
+ id: r,
224
+ ...l
225
+ } = e, {
226
+ store: a
227
+ } = N(), o = B(r);
228
+ return a.useSyncedValueWithCleanup("descriptionElementId", o), P("p", e, {
229
+ ref: n,
230
+ props: [{
231
+ id: o
232
+ }, l]
233
+ });
234
+ });
235
+ process.env.NODE_ENV !== "production" && (Re.displayName = "DialogDescription");
236
+ let Ne = /* @__PURE__ */ (function(t) {
237
+ return t.nestedDialogs = "--nested-dialogs", t;
238
+ })({}), Oe = (function(t) {
239
+ return t[t.open = w.open] = "open", t[t.closed = w.closed] = "closed", t[t.startingStyle = w.startingStyle] = "startingStyle", t[t.endingStyle = w.endingStyle] = "endingStyle", t.nested = "data-nested", t.nestedDialogOpen = "data-nested-dialog-open", t;
240
+ })({});
241
+ const V = /* @__PURE__ */ s.createContext(void 0);
242
+ process.env.NODE_ENV !== "production" && (V.displayName = "DialogPortalContext");
243
+ function Ie() {
244
+ const t = s.useContext(V);
245
+ if (t === void 0)
246
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Dialog.Portal> is missing." : F(26));
247
+ return t;
248
+ }
249
+ const be = {
250
+ ...K,
251
+ ...W,
252
+ nestedDialogOpen(t) {
253
+ return t ? {
254
+ [Oe.nestedDialogOpen]: ""
255
+ } : null;
256
+ }
257
+ }, Pe = /* @__PURE__ */ s.forwardRef(function(e, n) {
258
+ const {
259
+ className: d,
260
+ finalFocus: i,
261
+ initialFocus: r,
262
+ render: l,
263
+ ...a
264
+ } = e, {
265
+ store: o
266
+ } = N(), p = o.useState("descriptionElementId"), h = o.useState("disablePointerDismissal"), u = o.useState("floatingRootContext"), c = o.useState("popupProps"), m = o.useState("modal"), g = o.useState("mounted"), _ = o.useState("nested"), D = o.useState("nestedOpenDialogCount"), C = o.useState("open"), x = o.useState("openMethod"), v = o.useState("titleElementId"), R = o.useState("transitionStatus"), O = o.useState("role");
267
+ Ie(), pe({
268
+ open: C,
269
+ ref: o.context.popupRef,
270
+ onComplete() {
271
+ C && o.context.onOpenChangeComplete?.(!0);
272
+ }
273
+ });
274
+ function I(E) {
275
+ return E === "touch" ? o.context.popupRef.current : !0;
276
+ }
277
+ const y = r === void 0 ? I : r, b = D > 0, k = s.useMemo(() => ({
278
+ open: C,
279
+ nested: _,
280
+ transitionStatus: R,
281
+ nestedDialogOpen: b
282
+ }), [C, _, R, b]), f = P("div", e, {
283
+ state: k,
284
+ props: [c, {
285
+ "aria-labelledby": v ?? void 0,
286
+ "aria-describedby": p ?? void 0,
287
+ role: O,
288
+ tabIndex: -1,
289
+ hidden: !g,
290
+ onKeyDown(E) {
291
+ ue.has(E.key) && E.stopPropagation();
292
+ },
293
+ style: {
294
+ [Ne.nestedDialogs]: D
295
+ }
296
+ }, a],
297
+ ref: [n, o.context.popupRef, o.useStateSetter("popupElement")],
298
+ stateAttributesMapping: be
299
+ });
300
+ return /* @__PURE__ */ M($, {
301
+ context: u,
302
+ openInteractionType: x,
303
+ disabled: !g,
304
+ closeOnFocusOut: !h,
305
+ initialFocus: y,
306
+ returnFocus: i,
307
+ modal: m !== !1,
308
+ restoreFocus: "popup",
309
+ children: f
310
+ });
311
+ });
312
+ process.env.NODE_ENV !== "production" && (Pe.displayName = "DialogPopup");
313
+ const xe = /* @__PURE__ */ s.forwardRef(function(e, n) {
314
+ const {
315
+ keepMounted: d = !1,
316
+ ...i
317
+ } = e, {
318
+ store: r
319
+ } = N(), l = r.useState("mounted"), a = r.useState("modal");
320
+ return l || d ? /* @__PURE__ */ M(V.Provider, {
321
+ value: d,
322
+ children: /* @__PURE__ */ ge(me, {
323
+ ref: n,
324
+ ...i,
325
+ children: [l && a === !0 && /* @__PURE__ */ M(q, {
326
+ ref: r.context.internalBackdropRef,
327
+ inert: fe(!open)
328
+ }), e.children]
329
+ })
330
+ }) : null;
331
+ });
332
+ process.env.NODE_ENV !== "production" && (xe.displayName = "DialogPortal");
333
+ const ve = /* @__PURE__ */ s.forwardRef(function(e, n) {
334
+ const {
335
+ render: d,
336
+ className: i,
337
+ id: r,
338
+ ...l
339
+ } = e, {
340
+ store: a
341
+ } = N(), o = B(r);
342
+ return a.useSyncedValueWithCleanup("titleElementId", o), P("h2", e, {
343
+ ref: n,
344
+ props: [{
345
+ id: o
346
+ }, l]
347
+ });
348
+ });
349
+ process.env.NODE_ENV !== "production" && (ve.displayName = "DialogTitle");
350
+ const ye = /* @__PURE__ */ s.forwardRef(function(e, n) {
351
+ const {
352
+ render: d,
353
+ className: i,
354
+ disabled: r = !1,
355
+ nativeButton: l = !0,
356
+ id: a,
357
+ payload: o,
358
+ handle: p,
359
+ ...h
360
+ } = e, u = N(!0), c = p?.store ?? u?.store;
361
+ if (!c)
362
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Dialog.Trigger> must be used within <Dialog.Root> or provided with a handle." : F(79));
363
+ const m = B(a), g = c.useState("floatingRootContext"), _ = c.useState("isOpenedByTrigger", m), D = s.useRef(null), {
364
+ registerTrigger: C,
365
+ isMountedByThisTrigger: x
366
+ } = ne(m, D, c, {
367
+ payload: o
368
+ }), {
369
+ getButtonProps: v,
370
+ buttonRef: R
371
+ } = j({
372
+ disabled: r,
373
+ native: l
374
+ }), O = A(g, {
375
+ enabled: g != null
376
+ }), I = z([O]), y = s.useMemo(() => ({
377
+ disabled: r,
378
+ open: _
379
+ }), [r, _]), b = c.useState("triggerProps", x);
380
+ return P("button", e, {
381
+ state: y,
382
+ ref: [R, n, C, D],
383
+ props: [I.getReferenceProps(), b, {
384
+ [_e]: "",
385
+ id: m
386
+ }, h, v],
387
+ stateAttributesMapping: le
388
+ });
389
+ });
390
+ process.env.NODE_ENV !== "production" && (ye.displayName = "DialogTrigger");
391
+ const Te = "_dialog__backdrop_1hze7_1", we = "_dialog__popup_1hze7_13", ke = "_dialog__popup_centered_1hze7_24", Me = "_dialog__content_1hze7_35", Be = "_dialog__content_width_sm_1hze7_51", Fe = "_dialog__content_width_md_1hze7_55", Ve = "_dialog__content_width_lg_1hze7_59", Ue = "_dialog__header_1hze7_63", ze = "_dialog__close_1hze7_67", st = {
392
+ dialog__backdrop: Te,
393
+ dialog__popup: we,
394
+ dialog__popup_centered: ke,
395
+ dialog__content: Me,
396
+ dialog__content_width_sm: Be,
397
+ dialog__content_width_md: Fe,
398
+ dialog__content_width_lg: Ve,
399
+ dialog__header: Ue,
400
+ dialog__close: ze
401
+ };
402
+ export {
403
+ G as D,
404
+ ot as a,
405
+ nt as b,
406
+ ye as c,
407
+ xe as d,
408
+ Se as e,
409
+ Pe as f,
410
+ ve as g,
411
+ Re as h,
412
+ De as i,
413
+ st as s,
414
+ N as u
415
+ };
@@ -0,0 +1,80 @@
1
+ import { b as s, i as a } from "./floating-ui.utils.dom-C7FS5id0.js";
2
+ import { a as i } from "./detectBrowser-I-s3yzIE.js";
3
+ const r = "data-base-ui-focusable", m = "active", b = "selected", u = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])", d = "ArrowLeft", h = "ArrowRight", E = "ArrowUp", R = "ArrowDown";
4
+ function A(t) {
5
+ let e = t.activeElement;
6
+ for (; e?.shadowRoot?.activeElement != null; )
7
+ e = e.shadowRoot.activeElement;
8
+ return e;
9
+ }
10
+ function T(t, e) {
11
+ if (!t || !e)
12
+ return !1;
13
+ const o = e.getRootNode?.();
14
+ if (t.contains(e))
15
+ return !0;
16
+ if (o && s(o)) {
17
+ let n = e;
18
+ for (; n; ) {
19
+ if (t === n)
20
+ return !0;
21
+ n = n.parentNode || n.host;
22
+ }
23
+ }
24
+ return !1;
25
+ }
26
+ function p(t) {
27
+ return "composedPath" in t ? t.composedPath()[0] : t.target;
28
+ }
29
+ function w(t, e) {
30
+ if (e == null)
31
+ return !1;
32
+ if ("composedPath" in t)
33
+ return t.composedPath().includes(e);
34
+ const o = t;
35
+ return o.target != null && e.contains(o.target);
36
+ }
37
+ function g(t) {
38
+ return t.matches("html,body");
39
+ }
40
+ function _(t) {
41
+ return t?.ownerDocument || document;
42
+ }
43
+ function c(t) {
44
+ return a(t) && t.matches(u);
45
+ }
46
+ function O(t) {
47
+ return t ? t.getAttribute("role") === "combobox" && c(t) : !1;
48
+ }
49
+ function L(t) {
50
+ if (!t || i)
51
+ return !0;
52
+ try {
53
+ return t.matches(":focus-visible");
54
+ } catch {
55
+ return !0;
56
+ }
57
+ }
58
+ function S(t) {
59
+ return t ? t.hasAttribute(r) ? t : t.querySelector(`[${r}]`) || t : null;
60
+ }
61
+ export {
62
+ E as A,
63
+ r as F,
64
+ b as S,
65
+ u as T,
66
+ R as a,
67
+ d as b,
68
+ h as c,
69
+ _ as d,
70
+ p as e,
71
+ T as f,
72
+ S as g,
73
+ A as h,
74
+ O as i,
75
+ c as j,
76
+ g as k,
77
+ w as l,
78
+ L as m,
79
+ m as n
80
+ };
@@ -0,0 +1,30 @@
1
+ import { i as r, a as u } from "./detectBrowser-I-s3yzIE.js";
2
+ function n(i) {
3
+ i.preventDefault(), i.stopPropagation();
4
+ }
5
+ function e(i) {
6
+ return "nativeEvent" in i;
7
+ }
8
+ function p(i) {
9
+ return i.mozInputSource === 0 && i.isTrusted ? !0 : r && i.pointerType ? i.type === "click" && i.buttons === 1 : i.detail === 0 && !i.pointerType;
10
+ }
11
+ function a(i) {
12
+ return u ? !1 : !r && i.width === 0 && i.height === 0 || r && i.width === 1 && i.height === 1 && i.pressure === 0 && i.detail === 0 && i.pointerType === "mouse" || // iOS VoiceOver returns 0.333• for width/height.
13
+ i.width < 1 && i.height < 1 && i.pressure === 0 && i.detail === 0 && i.pointerType === "touch";
14
+ }
15
+ function c(i, t) {
16
+ const s = ["mouse", "pen"];
17
+ return t || s.push("", void 0), s.includes(i);
18
+ }
19
+ function d(i) {
20
+ const t = i.type;
21
+ return t === "click" || t === "mousedown" || t === "keydown" || t === "keyup";
22
+ }
23
+ export {
24
+ p as a,
25
+ a as b,
26
+ d as c,
27
+ e as d,
28
+ c as i,
29
+ n as s
30
+ };
@@ -0,0 +1,128 @@
1
+ const j = ["top", "right", "bottom", "left"], m = Math.min, p = Math.max, C = Math.round, L = Math.floor, k = (t) => ({
2
+ x: t,
3
+ y: t
4
+ }), h = {
5
+ left: "right",
6
+ right: "left",
7
+ bottom: "top",
8
+ top: "bottom"
9
+ }, b = {
10
+ start: "end",
11
+ end: "start"
12
+ };
13
+ function q(t, e, n) {
14
+ return p(t, m(e, n));
15
+ }
16
+ function E(t, e) {
17
+ return typeof t == "function" ? t(e) : t;
18
+ }
19
+ function u(t) {
20
+ return t.split("-")[0];
21
+ }
22
+ function g(t) {
23
+ return t.split("-")[1];
24
+ }
25
+ function x(t) {
26
+ return t === "x" ? "y" : "x";
27
+ }
28
+ function d(t) {
29
+ return t === "y" ? "height" : "width";
30
+ }
31
+ const A = /* @__PURE__ */ new Set(["top", "bottom"]);
32
+ function P(t) {
33
+ return A.has(u(t)) ? "y" : "x";
34
+ }
35
+ function y(t) {
36
+ return x(P(t));
37
+ }
38
+ function R(t, e, n) {
39
+ n === void 0 && (n = !1);
40
+ const s = g(t), i = y(t), o = d(i);
41
+ let r = i === "x" ? s === (n ? "end" : "start") ? "right" : "left" : s === "start" ? "bottom" : "top";
42
+ return e.reference[o] > e.floating[o] && (r = a(r)), [r, a(r)];
43
+ }
44
+ function T(t) {
45
+ const e = a(t);
46
+ return [c(t), e, c(e)];
47
+ }
48
+ function c(t) {
49
+ return t.replace(/start|end/g, (e) => b[e]);
50
+ }
51
+ const f = ["left", "right"], l = ["right", "left"], M = ["top", "bottom"], O = ["bottom", "top"];
52
+ function S(t, e, n) {
53
+ switch (t) {
54
+ case "top":
55
+ case "bottom":
56
+ return n ? e ? l : f : e ? f : l;
57
+ case "left":
58
+ case "right":
59
+ return e ? M : O;
60
+ default:
61
+ return [];
62
+ }
63
+ }
64
+ function z(t, e, n, s) {
65
+ const i = g(t);
66
+ let o = S(u(t), n === "start", s);
67
+ return i && (o = o.map((r) => r + "-" + i), e && (o = o.concat(o.map(c)))), o;
68
+ }
69
+ function a(t) {
70
+ return t.replace(/left|right|bottom|top/g, (e) => h[e]);
71
+ }
72
+ function w(t) {
73
+ return {
74
+ top: 0,
75
+ right: 0,
76
+ bottom: 0,
77
+ left: 0,
78
+ ...t
79
+ };
80
+ }
81
+ function B(t) {
82
+ return typeof t != "number" ? w(t) : {
83
+ top: t,
84
+ right: t,
85
+ bottom: t,
86
+ left: t
87
+ };
88
+ }
89
+ function D(t) {
90
+ const {
91
+ x: e,
92
+ y: n,
93
+ width: s,
94
+ height: i
95
+ } = t;
96
+ return {
97
+ width: s,
98
+ height: i,
99
+ top: n,
100
+ left: e,
101
+ right: e + s,
102
+ bottom: n + i,
103
+ x: e,
104
+ y: n
105
+ };
106
+ }
107
+ export {
108
+ P as a,
109
+ a as b,
110
+ T as c,
111
+ z as d,
112
+ E as e,
113
+ L as f,
114
+ u as g,
115
+ R as h,
116
+ g as i,
117
+ p as j,
118
+ B as k,
119
+ D as l,
120
+ m,
121
+ y as n,
122
+ d as o,
123
+ q as p,
124
+ x as q,
125
+ C as r,
126
+ j as s,
127
+ k as t
128
+ };