@objectstack/console 17.5.0 → 17.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (271) hide show
  1. package/CHANGELOG.md +378 -0
  2. package/dist/.objectstack-injection.json +2 -2
  3. package/dist/.objectui-sha +1 -1
  4. package/dist/assets/{ActionResultDialog-CLdIyOW6.js → ActionResultDialog-4kHDGnT3.js} +3 -3
  5. package/dist/assets/{AiPendingActionsPage-OKYz66yR.js → AiPendingActionsPage-JjOddm0h.js} +1 -1
  6. package/dist/assets/{ApiConsolePage-CcrKovu8.js → ApiConsolePage-BgS26lbp.js} +1 -1
  7. package/dist/assets/AppDocsIndex-BDoH5ECM.js +1 -0
  8. package/dist/assets/{AppManagementPage-D_xz8cTZ.js → AppManagementPage-CCgKmNTj.js} +1 -1
  9. package/dist/assets/ApprovalsInboxPage-C6S1vk0X.js +1 -0
  10. package/dist/assets/AuditLogPage-v2dKXMuk.js +1 -0
  11. package/dist/assets/BookPage-DwFMcTSN.js +1 -0
  12. package/dist/assets/{ComponentNavView-BxsixSU9.js → ComponentNavView-B5g9c6fx.js} +1 -1
  13. package/dist/assets/{CreateViewDialog-xyKlpLEW.js → CreateViewDialog-D3l-tYHM.js} +1 -1
  14. package/dist/assets/DashboardView-BOcovpPd.js +1 -0
  15. package/dist/assets/DocPage-B6AkH5WI.js +1 -0
  16. package/dist/assets/{DocsIndex-B2zw_HAp.js → DocsIndex-DwW2QsYY.js} +1 -1
  17. package/dist/assets/{DocsLayout-DezZ8x7_.js → DocsLayout-D63StSgd.js} +1 -1
  18. package/dist/assets/DocsSlug-CP9fcabi.js +1 -0
  19. package/dist/assets/ExpressionProvider-CrL6jhVq.js +1 -0
  20. package/dist/assets/{FlowRunsPage-CvY3nJMF.js → FlowRunsPage-CxdaiUyk.js} +1 -1
  21. package/dist/assets/{IntegrationsPage-2leVkVDH.js → IntegrationsPage-DvG0x0Nb.js} +2 -2
  22. package/dist/assets/{InterfaceListPage-BdECC_i3.js → InterfaceListPage-C4wPYohR.js} +1 -1
  23. package/dist/assets/{MarketplaceInstalledPage-EPPHSitW.js → MarketplaceInstalledPage-B7KETQG2.js} +1 -1
  24. package/dist/assets/MarketplacePackagePage-CfgKDpNH.js +4 -0
  25. package/dist/assets/{MarketplacePage-BnQKykgv.js → MarketplacePage-DNEyU5AE.js} +1 -1
  26. package/dist/assets/{MetadataInspector-BWxLkr0O.js → MetadataInspector-EP0I3-Kq.js} +1 -1
  27. package/dist/assets/{ObjectDataPage-BIzp65Mo.js → ObjectDataPage-CykEm9MD.js} +1 -1
  28. package/dist/assets/PageView-C6u86tni.js +1 -0
  29. package/dist/assets/{ProfilePage-D2qGgxPK.js → ProfilePage-C3SjXMzi.js} +1 -1
  30. package/dist/assets/{PublicFormsPage-DlE6tck_.js → PublicFormsPage-D3uCTR-8.js} +1 -1
  31. package/dist/assets/RecordDetailView-DgR_zhP4.js +3 -0
  32. package/dist/assets/RecordFormPage-kiJI-ieF.js +1 -0
  33. package/dist/assets/ReportDefaultInspector-BIinF0EQ.js +1 -0
  34. package/dist/assets/{ReportView-GIdKJdOt.js → ReportView-BREO-ADE.js} +1 -1
  35. package/dist/assets/{RuntimeDraftBar-BbMdi3Kp.js → RuntimeDraftBar-BCWfd2yS.js} +1 -1
  36. package/dist/assets/SchemaForm-C4uMMZ13.js +3 -0
  37. package/dist/assets/SearchResultsPage-C6Hw_Lpn.js +1 -0
  38. package/dist/assets/{SettingsHub-BGKIj-Zq.js → SettingsHub-DP1mrzEN.js} +1 -1
  39. package/dist/assets/SettingsView-u7mc6pcc.js +1 -0
  40. package/dist/assets/{SkeletonDetail-C8fMI-Mu.js → SkeletonDetail-DIwlbHTr.js} +1 -1
  41. package/dist/assets/{af-BfSmLD34.js → af-DPUgkQl0.js} +1 -1
  42. package/dist/assets/ai-DPBykF2N.js +3 -0
  43. package/dist/assets/{app-shell-eager-leaves-CDVclng4.js → app-shell-eager-leaves-Cf2bM6uT.js} +1 -1
  44. package/dist/assets/{ar-B9ttrM75.js → ar-B-6GTIRU.js} +1 -1
  45. package/dist/assets/{ar-DZ-C1rn-cyl.js → ar-DZ-wEl298ti.js} +1 -1
  46. package/dist/assets/{ar-EG-BaDxKP_o.js → ar-EG-YBT90_S0.js} +1 -1
  47. package/dist/assets/{ar-MA-DbxNEcmd.js → ar-MA-3uT-EYh6.js} +1 -1
  48. package/dist/assets/{ar-SA-DeC5LXcX.js → ar-SA-SiQsjhhc.js} +1 -1
  49. package/dist/assets/{ar-TN-C9KpTFJz.js → ar-TN-CfzXjKzS.js} +1 -1
  50. package/dist/assets/{az-cMerDwRO.js → az-BqAfcNza.js} +1 -1
  51. package/dist/assets/{be-ZTSbszQh.js → be-CQgWXa9_.js} +1 -1
  52. package/dist/assets/{be-tarask-BXZEUrgX.js → be-tarask-BmNg0Sir.js} +1 -1
  53. package/dist/assets/{bg-BDogpmn5.js → bg-D3evgRuS.js} +1 -1
  54. package/dist/assets/{bn-Cz04uxmh.js → bn-uItkARwm.js} +1 -1
  55. package/dist/assets/{bs-CpFnCl-j.js → bs-DueReOpO.js} +1 -1
  56. package/dist/assets/{ca-CHC4M52Z.js → ca-Cr3AHktR.js} +1 -1
  57. package/dist/assets/{ckb-Dxw-RNm8.js → ckb-CTi5BET7.js} +1 -1
  58. package/dist/assets/contracts-DieHW666.js +1 -0
  59. package/dist/assets/{createDerive-DvA_JGNq.js → createDerive-CjN1i5vn.js} +1 -1
  60. package/dist/assets/{cs-DsFaJ5Z7.js → cs-43mFX9jr.js} +1 -1
  61. package/dist/assets/{cy-FH4JFDTs.js → cy-BBSkg3F8.js} +1 -1
  62. package/dist/assets/{da-D1pVjaAq.js → da-C5oA5qcs.js} +1 -1
  63. package/dist/assets/data-adapter-Cymvlczj.js +1 -0
  64. package/dist/assets/{de-AT-DUMQCisj.js → de-AT-CApxwJzu.js} +1 -1
  65. package/dist/assets/{de-DKrxSvnP.js → de-CPtbLlAf.js} +1 -1
  66. package/dist/assets/default-inspector-registry-Bs6GBn00.js +1 -0
  67. package/dist/assets/dist-BF-ssUpn.js +14 -0
  68. package/dist/assets/{el-l3-bHySV.js → el-Dto2xBQU.js} +1 -1
  69. package/dist/assets/en-AU-FVwCiDJO.js +1 -0
  70. package/dist/assets/{en-CA-DGH5NF0a.js → en-CA-DKuJPN1U.js} +1 -1
  71. package/dist/assets/en-GB-DQ_y5VbJ.js +1 -0
  72. package/dist/assets/en-IE-DaXOhsZW.js +1 -0
  73. package/dist/assets/en-IN-CnRZnAom.js +1 -0
  74. package/dist/assets/en-NZ-CBZLEToK.js +1 -0
  75. package/dist/assets/en-ZA-BE59v0wZ.js +1 -0
  76. package/dist/assets/{eo-CL6CXHZx.js → eo-BL8JXIWd.js} +1 -1
  77. package/dist/assets/{es-BIJ0rksI.js → es-BnoaNxsu.js} +1 -1
  78. package/dist/assets/{et-BGgMzjm1.js → et-tPYLNenO.js} +1 -1
  79. package/dist/assets/{eu-CqvAoRrX.js → eu-CUBG6bT0.js} +1 -1
  80. package/dist/assets/{fa-IR-DNz3oA1-.js → fa-IR-Rr2d9xSs.js} +1 -1
  81. package/dist/assets/{fi-DNSfKWuW.js → fi-B0NVIZsV.js} +1 -1
  82. package/dist/assets/{formatLong-CHb9WA3O.js → formatLong-1-gt9bpo.js} +1 -1
  83. package/dist/assets/{fr-DYRJCirJ.js → fr-BbhHek8e.js} +1 -1
  84. package/dist/assets/{fr-CA-CotiswPx.js → fr-CA-CBDvLXFg.js} +1 -1
  85. package/dist/assets/{fr-CH-CpiEYWpc.js → fr-CH-WPNmwPn7.js} +1 -1
  86. package/dist/assets/framework-DFR4HNtj.js +35 -0
  87. package/dist/assets/{fy-B69yM3FE.js → fy-DvOBbvEF.js} +1 -1
  88. package/dist/assets/{gd-BAy8AsX6.js → gd-BQPiTPX5.js} +1 -1
  89. package/dist/assets/getIcon-Cfwf-Egt.js +1 -0
  90. package/dist/assets/{gl-soLn_weL.js → gl-BJCXK8uO.js} +1 -1
  91. package/dist/assets/{gu-B19Yo9yC.js → gu-CctPRz3V.js} +1 -1
  92. package/dist/assets/{he-DYTPo33p.js → he-CVFMk6p2.js} +1 -1
  93. package/dist/assets/{hi-D2dIK7Oy.js → hi-Ba30-RwS.js} +1 -1
  94. package/dist/assets/{highlighted-body-OFNGDK62-CExufvVt.js → highlighted-body-OFNGDK62-BQ57IrBV.js} +1 -1
  95. package/dist/assets/{hr-BV-VOPMu.js → hr-BZUqTbZs.js} +1 -1
  96. package/dist/assets/{ht-C7MM4qkS.js → ht-BLe05tPx.js} +1 -1
  97. package/dist/assets/{hu-Rha1m2Ym.js → hu-2CQ_Mkww.js} +1 -1
  98. package/dist/assets/{hy-CiTNgbdV.js → hy-CclcPG4H.js} +1 -1
  99. package/dist/assets/i18n-BnUsCaSC.js +17 -0
  100. package/dist/assets/i18n-locale-ar-92O_xtDZ.js +4 -0
  101. package/dist/assets/i18n-locale-de-T5ic3yH9.js +4 -0
  102. package/dist/assets/i18n-locale-en-rxr7WJYl.js +4 -0
  103. package/dist/assets/i18n-locale-es-D_WOifJ_.js +4 -0
  104. package/dist/assets/i18n-locale-fr-3cvyjMkp.js +4 -0
  105. package/dist/assets/i18n-locale-ja-DXlIkB8I.js +4 -0
  106. package/dist/assets/i18n-locale-ko-DngRpS45.js +4 -0
  107. package/dist/assets/i18n-locale-pt-BkPaFCqZ.js +4 -0
  108. package/dist/assets/i18n-locale-ru-E5wLh-y6.js +4 -0
  109. package/dist/assets/i18n-locale-zh-BL4_Yand.js +4 -0
  110. package/dist/assets/{i18n-runtime-CTgAQF4N.js → i18n-runtime-97_bDVjP.js} +1 -1
  111. package/dist/assets/{id-Cijsfjt-.js → id-6JLB8s-f.js} +1 -1
  112. package/dist/assets/index-Cadlh4t_.css +2 -0
  113. package/dist/assets/index-D98sa5GF.js +20 -0
  114. package/dist/assets/{infrastructure-BHSync5f.js → infrastructure-Cc34lEqb.js} +2 -2
  115. package/dist/assets/integration-CeAF4JFT.js +1 -0
  116. package/dist/assets/{is-xS1WTyeC.js → is-to0CWzm1.js} +1 -1
  117. package/dist/assets/isSameWeek-DBXaA1Gd.js +1 -0
  118. package/dist/assets/{it-CH-l516ZNXj.js → it-CH-DhdfjP5Z.js} +1 -1
  119. package/dist/assets/{it-C2i_c9sd.js → it-ea0B8Ujp.js} +1 -1
  120. package/dist/assets/{ja-D9_ewLny.js → ja-B1bzkgDW.js} +1 -1
  121. package/dist/assets/{ja-Hira-D_6ExgHw.js → ja-Hira-CMrY5hXO.js} +1 -1
  122. package/dist/assets/{ka-BYHGyees.js → ka-DKSXLnXP.js} +1 -1
  123. package/dist/assets/{kk-CbTFtuqb.js → kk-DHwMv8Dn.js} +1 -1
  124. package/dist/assets/{km-Dr2gwhIn.js → km-tpLG1xNr.js} +1 -1
  125. package/dist/assets/{kn-CprH8JD7.js → kn-MLreVnHA.js} +1 -1
  126. package/dist/assets/{ko-CsFS2u5i.js → ko-CI0DBazn.js} +1 -1
  127. package/dist/assets/{lb-CbFKN7Ob.js → lb-CmL572Xe.js} +1 -1
  128. package/dist/assets/{lt-Bq0xkLp0.js → lt-DRtUOLdw.js} +1 -1
  129. package/dist/assets/{lv-Cj6vg6Qo.js → lv-COSHgkOP.js} +1 -1
  130. package/dist/assets/{match-C_jFGO9e.js → match-B-ergJQb.js} +1 -1
  131. package/dist/assets/{match-CiPp9BME.js → match-BQoOW8Cj.js} +1 -1
  132. package/dist/assets/{match-Co4ivumx.js → match-dfBS0YSQ.js} +1 -1
  133. package/dist/assets/mermaid-GHXKKRXX-Bb17TtNP.js +1 -0
  134. package/dist/assets/metadata-admin-CABUxbJl.js +9 -0
  135. package/dist/assets/{mk-MXFM99YL.js → mk-B0IH_YL_.js} +1 -1
  136. package/dist/assets/{mn-D5Q9B6Jt.js → mn-P-QdQ2n3.js} +1 -1
  137. package/dist/assets/{ms-CCzPRldx.js → ms-CtyEOINy.js} +1 -1
  138. package/dist/assets/{mt-mjJpN6xW.js → mt-DfuZ2HRm.js} +1 -1
  139. package/dist/assets/{nb-BIlNqdEb.js → nb-2Hp-5Tnt.js} +1 -1
  140. package/dist/assets/{nl-BE-FwXjQsmV.js → nl-BE-mmxbfNoR.js} +1 -1
  141. package/dist/assets/{nl-D2uBtIxG.js → nl-CZ_nLREz.js} +1 -1
  142. package/dist/assets/{nn-B0loJ7SV.js → nn-ccWhYsNa.js} +1 -1
  143. package/dist/assets/{oc-U7-yH1sO.js → oc-z504BFRV.js} +1 -1
  144. package/dist/assets/{pl-mTy0JYgi.js → pl-DeQ7ASt-.js} +1 -1
  145. package/dist/assets/plugin-calendar-Cn5HaZU8.js +1 -0
  146. package/dist/assets/plugin-charts-B6RcFWbo.js +7 -0
  147. package/dist/assets/plugin-chatbot-Ck47EhDX.js +122 -0
  148. package/dist/assets/plugin-dashboard-DjEx8e5Y.js +6 -0
  149. package/dist/assets/plugin-form-CLDvL0up.js +1 -0
  150. package/dist/assets/plugin-gantt-CrVrxVdi.js +63 -0
  151. package/dist/assets/plugin-grid-D2rmQEW_.js +11 -0
  152. package/dist/assets/plugin-kanban-BUNHFfIC.js +1 -0
  153. package/dist/assets/plugin-map-y-7RQQC5.js +1 -0
  154. package/dist/assets/{plugin-markdown-D1nTQc1T.js → plugin-markdown-BOkHcir_.js} +1 -1
  155. package/dist/assets/plugin-report-mT3jpna0.js +59 -0
  156. package/dist/assets/plugin-timeline-B1EF83D3.js +1 -0
  157. package/dist/assets/plugin-tree-MTHUt3_S.js +1 -0
  158. package/dist/assets/plugin-view-DHJI-ahf.js +1 -0
  159. package/dist/assets/plugins-views-CfkgqD30.js +3 -0
  160. package/dist/assets/{pt-BR-2KtO5Js1.js → pt-BR-D80_lPYF.js} +1 -1
  161. package/dist/assets/{pt-Bet5OOQf.js → pt-CJJ1RmXd.js} +1 -1
  162. package/dist/assets/{ro-37U6sgzi.js → ro-EuFb2TCj.js} +1 -1
  163. package/dist/assets/{ru-CyuAY-5E.js → ru-CMaVQScp.js} +1 -1
  164. package/dist/assets/{runtime-metadata-persistence-afAW-MeD.js → runtime-metadata-persistence-ClOTznqa.js} +1 -1
  165. package/dist/assets/{se-DeJabuC6.js → se-DsfdKLdF.js} +1 -1
  166. package/dist/assets/{sk-DWEpjfkR.js → sk-BNV9omI8.js} +1 -1
  167. package/dist/assets/{sl-4oSvNhIR.js → sl-DJS_nINU.js} +1 -1
  168. package/dist/assets/{sq-BjkBCaXW.js → sq-HEgjcbHe.js} +1 -1
  169. package/dist/assets/{sr-Dxm1DsRS.js → sr-CO0CFu4X.js} +1 -1
  170. package/dist/assets/{sr-Latn-Dawg6oP2.js → sr-Latn-eE1Idzey.js} +1 -1
  171. package/dist/assets/{src-C8NYjdVm.js → src-BU7L2v4J.js} +1 -1
  172. package/dist/assets/src-BUtIBFDA.js +1 -0
  173. package/dist/assets/src-C0eXlKtx.js +16 -0
  174. package/dist/assets/{studioEntry-nXQP3iL0.js → studioEntry-WeMfaSGn.js} +1 -1
  175. package/dist/assets/{submitRedirect-jK-cEIbP.js → submitRedirect-C2lfZSHt.js} +1 -1
  176. package/dist/assets/{sv-CROOGJGz.js → sv-5uTzgQT3.js} +1 -1
  177. package/dist/assets/{ta-BZnTmFI_.js → ta-BzgdkBZG.js} +1 -1
  178. package/dist/assets/{te-BN0v0x5t.js → te-Ct_pl7ZJ.js} +1 -1
  179. package/dist/assets/{th-CBjKhp_U.js → th-DouAlk0-.js} +1 -1
  180. package/dist/assets/{tr-x0Ne4N4H.js → tr-3XNBsI40.js} +1 -1
  181. package/dist/assets/types-zod-DXpXw10W.js +1 -0
  182. package/dist/assets/{ug-sgzNhsKo.js → ug-B9n24h9G.js} +1 -1
  183. package/dist/assets/ui-components-D6cEVg0T.js +37 -0
  184. package/dist/assets/ui-layout-DgVDuPEM.js +1 -0
  185. package/dist/assets/{uk-o_DQ5VHJ.js → uk-DCAenByf.js} +1 -1
  186. package/dist/assets/use-book-data-CwRldFxP.js +1 -0
  187. package/dist/assets/{useActionModal-CSvbHkQ7.js → useActionModal-Blp4rhOk.js} +1 -1
  188. package/dist/assets/useCanAuthorMetadata-BxCMgFRf.js +1 -0
  189. package/dist/assets/useNavSelDeepLink-67Y4qCNO.js +1 -0
  190. package/dist/assets/useNavTargetLabel-BOJncjIb.js +1 -0
  191. package/dist/assets/{useOpenRecordList-B5-qaFUx.js → useOpenRecordList-BrwJFojQ.js} +1 -1
  192. package/dist/assets/{usePackageL10n-CMx66am-.js → usePackageL10n-Ci9uVkRZ.js} +1 -1
  193. package/dist/assets/{useSettingsLabel-Kkr2q0Oo.js → useSettingsLabel-CeMnMWsh.js} +1 -1
  194. package/dist/assets/{uz-Cyrl-DbtkQtz_.js → uz-Cyrl-JSeHEqu-.js} +1 -1
  195. package/dist/assets/{uz-Be41d4jl.js → uz-DT3s9bZS.js} +1 -1
  196. package/dist/assets/vendor-objectstack-DFqu45yM.js +138 -0
  197. package/dist/assets/{vi-84mZmklk.js → vi-D2p-h6bY.js} +1 -1
  198. package/dist/assets/{zh-CN-DD1reegJ.js → zh-CN-DHOKqAit.js} +1 -1
  199. package/dist/assets/{zh-HK-B05u30WI.js → zh-HK-D4iIPY7I.js} +1 -1
  200. package/dist/assets/{zh-TW-Bb-WimPD.js → zh-TW-gORQ_tZh.js} +1 -1
  201. package/dist/chunk-membership.json +100 -90
  202. package/dist/eager-closure.json +110 -110
  203. package/dist/index.html +4 -4
  204. package/dist/sdui.manifest.json +520 -60
  205. package/package.json +1 -1
  206. package/dist/assets/AppDocsIndex-F4zDq2zz.js +0 -1
  207. package/dist/assets/ApprovalsInboxPage-DrEUmaDb.js +0 -1
  208. package/dist/assets/AuditLogPage-CoghqsZb.js +0 -1
  209. package/dist/assets/DashboardView-CGC-_Om8.js +0 -1
  210. package/dist/assets/DocPage-CIZE5kdj.js +0 -1
  211. package/dist/assets/DocsSlug-DXdFdwlS.js +0 -1
  212. package/dist/assets/ExpressionProvider-DZfMwyMs.js +0 -1
  213. package/dist/assets/MarketplacePackagePage-C7NOu2Ir.js +0 -4
  214. package/dist/assets/PageView-CVLgCRSF.js +0 -1
  215. package/dist/assets/RecordDetailView-DQKydU7X.js +0 -3
  216. package/dist/assets/RecordFormPage-BTjwxJIA.js +0 -1
  217. package/dist/assets/ReportDefaultInspector-DdsQAkd7.js +0 -1
  218. package/dist/assets/SchemaForm-C8X1ve4p.js +0 -3
  219. package/dist/assets/SearchResultsPage-Jwhqsdyo.js +0 -1
  220. package/dist/assets/SettingsView-D8SMKdrc.js +0 -1
  221. package/dist/assets/appRoute-DbnWDEa1.js +0 -1
  222. package/dist/assets/data-adapter-DMbe6Njk.js +0 -1
  223. package/dist/assets/default-inspector-registry-CpL3fFhl.js +0 -1
  224. package/dist/assets/dist-BXrEV1ag.js +0 -13
  225. package/dist/assets/en-AU-C6x7mDhH.js +0 -1
  226. package/dist/assets/en-GB-0-nho2eK.js +0 -1
  227. package/dist/assets/en-IE-2fC3BkfV.js +0 -1
  228. package/dist/assets/en-IN-C1QcFhxn.js +0 -1
  229. package/dist/assets/en-NZ-C80ptZT7.js +0 -1
  230. package/dist/assets/en-ZA-ByZDrjeb.js +0 -1
  231. package/dist/assets/framework-DcWkeiND.js +0 -35
  232. package/dist/assets/getIcon-BEVyC4y3.js +0 -1
  233. package/dist/assets/i18n-CEKxYdmD.js +0 -9
  234. package/dist/assets/i18n-locale-ar-DN7sl3GF.js +0 -4
  235. package/dist/assets/i18n-locale-de-C40JErvb.js +0 -4
  236. package/dist/assets/i18n-locale-en-CITPDIHy.js +0 -4
  237. package/dist/assets/i18n-locale-es-C8DdWN6c.js +0 -4
  238. package/dist/assets/i18n-locale-fr-COIdEZZl.js +0 -4
  239. package/dist/assets/i18n-locale-ja-DYF_rU_s.js +0 -4
  240. package/dist/assets/i18n-locale-ko-B-ODYAtX.js +0 -4
  241. package/dist/assets/i18n-locale-pt-CK1SyBIm.js +0 -4
  242. package/dist/assets/i18n-locale-ru-jLzvShMO.js +0 -4
  243. package/dist/assets/i18n-locale-zh-Bf9Gbbvl.js +0 -4
  244. package/dist/assets/index-CLyvpiGc.css +0 -2
  245. package/dist/assets/index-CfnfGw5W.js +0 -20
  246. package/dist/assets/isSameWeek-DWYeNyh8.js +0 -1
  247. package/dist/assets/mermaid-GHXKKRXX-DVLc_uym.js +0 -1
  248. package/dist/assets/metadata-admin-CybaOCdO.js +0 -9
  249. package/dist/assets/nav-selection-Dzm_mA3C.js +0 -1
  250. package/dist/assets/plugin-calendar-CKRBcML7.js +0 -1
  251. package/dist/assets/plugin-charts-DGTJxXCB.js +0 -7
  252. package/dist/assets/plugin-chatbot-DwtwNA-y.js +0 -122
  253. package/dist/assets/plugin-dashboard-C1AYKmGX.js +0 -6
  254. package/dist/assets/plugin-form-CV8ZY04-.js +0 -1
  255. package/dist/assets/plugin-gantt-BRIb2_8G.js +0 -63
  256. package/dist/assets/plugin-grid-C9h7mRVv.js +0 -11
  257. package/dist/assets/plugin-kanban-BcJ0Dhys.js +0 -1
  258. package/dist/assets/plugin-map-D24ZUOUj.js +0 -1
  259. package/dist/assets/plugin-report-BfGintAq.js +0 -59
  260. package/dist/assets/plugin-timeline-CbBRq_qt.js +0 -1
  261. package/dist/assets/plugin-tree-BNX2A5J5.js +0 -1
  262. package/dist/assets/plugin-view-DzWQWYyH.js +0 -1
  263. package/dist/assets/plugins-views-DraK4xz0.js +0 -3
  264. package/dist/assets/src-B8lv0plz.js +0 -18
  265. package/dist/assets/src-DoDvT77T.js +0 -1
  266. package/dist/assets/types-zod-Y2RwUUeJ.js +0 -1
  267. package/dist/assets/ui-components-BTB1NkUW.js +0 -37
  268. package/dist/assets/ui-layout-bZfafwJa.js +0 -1
  269. package/dist/assets/use-book-data-C3eyZJSG.js +0 -1
  270. package/dist/assets/vendor-objectstack-XuWC71M9.js +0 -266
  271. package/dist/assets/vendor-zod-CHLW1iCr.js +0 -64
@@ -1,37 +0,0 @@
1
- import{o as e,r as t}from"./rolldown-runtime-C0FnF6B9.js";import{h as n,t as r,v as i}from"./vendor-react-BggL7APJ.js";import{Ar as a,Nr as o,Nt as s,Tn as c,cn as l,pr as u,rn as d,ur as f,wn as p}from"./vendor-objectstack-XuWC71M9.js";import{$ as m,$t as h,Ar as g,Br as _,C as v,Ci as y,Cr as b,Dt as x,Er as S,Fi as C,Ft as w,G as T,H as E,Hi as D,Hr as O,Ii as k,Ir as A,Jr as j,Li as M,Lr as N,Lt as P,M as F,Mt as I,Nr as L,Nt as ee,Oi as R,Ot as te,P as z,Pr as B,Pt as ne,Qi as re,Ri as V,Si as ie,T as ae,Tr as H,Tt as oe,Ui as U,Ur as se,Vi as W,Vr as G,Wi as ce,Xi as le,Xt as ue,Yr as de,Z as fe,_n as pe,_r as me,_t as he,a as ge,at as _e,bi as ve,br as ye,bt as be,c as xe,cn as Se,dn as Ce,er as we,et as Te,fn as Ee,ft as De,g as Oe,gn as ke,gr as Ae,gt as je,h as Me,hn as Ne,ht as Pe,i as Fe,ii as Ie,it as Le,j as Re,ji as ze,jr as Be,kr as Ve,kt as He,ln as Ue,mn as We,nt as Ge,o as Ke,pn as qe,pt as Je,q as Ye,s as Xe,tr as Ze,tt as Qe,u as $e,un as et,ut as tt,vn as nt,vr as rt,vt as it,w as at,wi as ot,wr as st,xi as ct,xt as lt,yn as ut,yr as dt,yt as ft,zi as pt,zr as mt}from"./framework-DcWkeiND.js";import{f as ht,g as gt,h as _t,i as vt,n as yt,o as bt,p as xt,t as St,w as Ct}from"./i18n-runtime-CTgAQF4N.js";import{a as wt,i as Tt,n as Et,o as Dt,r as Ot}from"./vendor-ui-utils-DIUdEYii.js";import{$ as kt,$t as At,A as jt,At as Mt,B as Nt,Bt as Pt,C as Ft,Cn as It,Ct as Lt,D as Rt,Dn as zt,Dt as Bt,E as Vt,Et as Ht,F as Ut,Ft as Wt,G as Gt,Gt as Kt,H as qt,Ht as Jt,I as Yt,It as Xt,J as Zt,Jt as Qt,K as $t,Kt as en,L as tn,Lt as nn,M as rn,Mt as an,N as on,Nt as sn,O as cn,On as ln,Ot as un,P as dn,Pt as fn,Q as pn,Qt as mn,R as hn,Rt as gn,S as _n,Sn as vn,St as yn,T as bn,Tn as xn,Tt as Sn,U as Cn,Ut as wn,V as Tn,Vt as En,W as Dn,Wt as On,X as kn,Xt as An,Y as jn,Yt as Mn,Z as Nn,Zt as Pn,_ as Fn,_n as In,_t as Ln,a as Rn,an as zn,at as Bn,b as Vn,bn as Hn,bt as Un,c as Wn,cn as Gn,ct as Kn,d as qn,dn as Jn,dt as Yn,en as Xn,et as Zn,f as Qn,fn as $n,ft as er,g as tr,gn as nr,gt as rr,h as ir,hn as ar,ht as or,i as sr,in as cr,it as lr,j as ur,jt as dr,k as fr,kt as pr,l as mr,ln as hr,lt as gr,m as _r,mn as vr,mt as yr,n as br,nn as xr,nt as Sr,o as Cr,on as wr,ot as Tr,p as Er,pn as Dr,pt as Or,q as kr,qt as Ar,r as jr,rn as Mr,rt as Nr,s as Pr,sn as Fr,st as Ir,t as Lr,tn as Rr,tt as zr,u as Br,un as Vr,ut as Hr,v as Ur,vn as Wr,vt as Gr,w as Kr,wn as qr,wt as Jr,x as Yr,xn as Xr,xt as Zr,y as Qr,yn as $r,yt as ei,z as ti,zt as ni}from"./vendor-radix-DOLScSH1.js";import{n as ri}from"./vendor-icons-core-B8a8C6zl.js";import{t as ii}from"./vendor-icon-arrow-down-Bo-fuW7k.js";import{t as ai}from"./vendor-icon-arrow-left-DmGEbpkA.js";import{t as oi}from"./vendor-icon-arrow-right-RqsZZ458.js";import{t as si}from"./vendor-icon-arrow-up-down-DdDqplfV.js";import{t as ci}from"./vendor-icon-arrow-up-CzdjEQwQ.js";import{t as li}from"./vendor-icon-box-YdZpEqfe.js";import{t as ui}from"./vendor-icon-calendar-BsoUBIef.js";import{t as di}from"./vendor-icon-camera-Cidjovli.js";import{t as fi}from"./vendor-icon-check-vpu9Zukp.js";import{t as pi}from"./vendor-icon-chevron-down-BEf_jTEE.js";import{t as mi}from"./vendor-icon-chevron-left-KnDcuFH1.js";import{t as hi}from"./vendor-icon-chevron-right-DbnKwHYQ.js";import{t as gi}from"./vendor-icon-chevron-up-C-6o_0je.js";import{t as _i}from"./vendor-icon-chevrons-left-gvlDgS8M.js";import{t as vi}from"./vendor-icon-chevrons-right-lic1nOWF.js";import{t as yi}from"./vendor-icon-chevrons-up-down-CbDukqtA.js";import{t as bi}from"./vendor-icon-circle-alert-D1XTr_X9.js";import{t as xi}from"./vendor-icon-circle-check-Bq3OcFQN.js";import{t as Si}from"./vendor-icon-circle-dot-vUSXdUmv.js";import{t as Ci}from"./vendor-icon-circle-question-mark-LshNGnQH.js";import{t as wi}from"./vendor-icon-circle-x-Nkh1Yr7N.js";import{t as Ti}from"./vendor-icon-circle-5-gUQbxi.js";import{t as Ei}from"./vendor-icon-copy-B5M-KdZo.js";import{t as Di}from"./vendor-icon-crop-DjMq__1_.js";import{t as Oi}from"./vendor-icon-crosshair-B_kbYa88.js";import{t as ki}from"./vendor-icon-database-C8JGjSkn.js";import{t as Ai}from"./vendor-icon-dot-CuUcuxvm.js";import{t as ji}from"./vendor-icon-download-C3csYSaD.js";import{t as Mi}from"./vendor-icon-ellipsis-BjiiCS3N.js";import{t as Ni}from"./vendor-icon-eraser-CoRaZSKu.js";import{t as Pi}from"./vendor-icon-eye-off-Dy3GIcvl.js";import{t as Fi}from"./vendor-icon-eye-C3HaEGOo.js";import{t as Ii}from"./vendor-icon-file-question-mark-CDRVvH3W.js";import{t as Li}from"./vendor-icon-file-CTChzdTZ.js";import{t as Ri}from"./vendor-icon-flag-QWvMhB7L.js";import{t as zi}from"./vendor-icon-folder-open-mGjBJ_Tq.js";import{t as Bi}from"./vendor-icon-folder-GbhohOfU.js";import{t as Vi}from"./vendor-icon-git-branch-CpQpJlYB.js";import{t as Hi}from"./vendor-icon-grip-vertical-B01-ovq0.js";import{t as Ui}from"./vendor-icon-image-D2YAsa8l.js";import{t as Wi}from"./vendor-icon-inbox-ByVQ4l4S.js";import{t as Gi}from"./vendor-icon-info-DBwRTfSE.js";import{t as Ki}from"./vendor-icon-link-2-EAo0juhN.js";import{t as qi}from"./vendor-icon-loader-circle-D3PsuVaD.js";import{t as Ji}from"./vendor-icon-map-pin-BS-hHv53.js";import{t as Yi}from"./vendor-icon-maximize-2-C215UtMO.js";import{t as Xi}from"./vendor-icon-minus-CMTDFpmk.js";import{t as Zi}from"./vendor-icon-octagon-x-DJaJymPi.js";import{t as Qi}from"./vendor-icon-panel-left-Cml87N0K.js";import{t as $i}from"./vendor-icon-phone-H1S8HSi1.js";import{t as ea}from"./vendor-icon-plus-BlfcDDsa.js";import{t as ta}from"./vendor-icon-qr-code-mzDrPZIo.js";import{t as na}from"./vendor-icon-redo-2-BJ-uEK0D.js";import{t as ra}from"./vendor-icon-refresh-cw-BGjSPEfJ.js";import{t as ia}from"./vendor-icon-rocket-9sBBTCrW.js";import{t as aa}from"./vendor-icon-rotate-ccw-lr5YKsxC.js";import{t as oa}from"./vendor-icon-rotate-cw-piooiFbz.js";import{t as sa}from"./vendor-icon-save-CuavGNuU.js";import{t as ca}from"./vendor-icon-search-B2Uqtp_W.js";import{t as la}from"./vendor-icon-settings-CYQ7xc_F.js";import{t as ua}from"./vendor-icon-shield-check-CdDzbial.js";import{t as da}from"./vendor-icon-shield-off-DSQNn8og.js";import{t as fa}from"./vendor-icon-sliders-horizontal-BsnKXU0c.js";import{t as pa}from"./vendor-icon-square-dashed-BUavjoUM.js";import{t as ma}from"./vendor-icon-square-pen-CrYOuw6J.js";import{t as ha}from"./vendor-icon-star-DfusowFE.js";import{t as ga}from"./vendor-icon-table-properties-DiJhrFZ3.js";import{t as _a}from"./vendor-icon-trash-BLsWkwB9.js";import{t as va}from"./vendor-icon-trending-down-C8VFA2s8.js";import{t as ya}from"./vendor-icon-trending-up-CBQiG1_M.js";import{t as ba}from"./vendor-icon-triangle-alert-D5n0T3q_.js";import{t as xa}from"./vendor-icon-undo-2-C9MbW2Vb.js";import{t as Sa}from"./vendor-icon-upload-BZ3rElxe.js";import{t as Ca}from"./vendor-icon-workflow-B9ASq0nN.js";import{t as wa}from"./vendor-icon-x-CcLtgRNL.js";import{a as Ta,m as Ea,p as Da}from"./vendor-markdown-COJFQ_GI.js";var K=e(i(),1),q=r();(0,K.createContext)(null),(0,K.createContext)(null),(0,K.createContext)(null);var Oa=(0,K.createContext)(null);function ka(){return{name:`object-url`,async upload(e){let t=e,n=`name`in t&&t.name||`upload`;return{url:URL.createObjectURL(e),name:n,size:e.size,mimeType:e.type||`application/octet-stream`}}}}function Aa(e={}){let t=e.fetchImpl??fetch,n=(e.baseUrl??``).replace(/\/$/,``),r=e.basePath??`/api/v1/storage`,i=e.credentials??`include`,a=e=>/^https?:/i.test(e)?e:`${n}${e}`;return{name:`objectstack-presigned`,async upload(n,o={}){let s=n,c=`name`in s&&s.name||`upload`,l=n.type||`application/octet-stream`,u=await t(a(`${r}/upload/presigned`),{method:`POST`,credentials:i,headers:{"Content-Type":`application/json`},signal:o.signal,body:JSON.stringify({filename:c,mimeType:l,size:n.size,scope:e.scope??o.path})});if(!u.ok){let e=await u.text().catch(()=>``);throw Error(`Presigned upload request failed (${u.status}): ${e||u.statusText}`)}let d=await u.json(),{uploadUrl:f,fileId:p,headers:m}=d?.data??d;if(!f||!p)throw Error(`Presigned upload response missing uploadUrl/fileId`);await ja(t,a(f),n,{method:`PUT`,headers:{"Content-Type":l,...m??{}},...o});let h=await t(a(`${r}/upload/complete`),{method:`POST`,credentials:i,headers:{"Content-Type":`application/json`},signal:o.signal,body:JSON.stringify({fileId:p})});if(!h.ok){let e=await h.text().catch(()=>``);throw Error(`Upload completion failed (${h.status}): ${e||h.statusText}`)}return{url:a(`${r}/files/${encodeURIComponent(p)}`),name:c,size:n.size,mimeType:l,meta:{fileId:p,scope:e.scope??o.path}}}}}async function ja(e,t,n,r){let i=r.maxRetries??3,a=r.retryDelayMs??500,o=0;for(;;){if(r.signal?.aborted)throw new DOMException(`aborted`,`AbortError`);try{if(typeof XMLHttpRequest<`u`&&r.onProgress)await Ma(t,n,r);else{let i=await e(t,{method:r.method,body:n,headers:r.headers,signal:r.signal});if(!i.ok)throw Error(`Upload failed with status ${i.status}`);r.onProgress?.(1)}return}catch(e){if(e?.name===`AbortError`||o>=i)throw e;let t=a*2**o;o++,await new Promise(e=>setTimeout(e,t))}}}function Ma(e,t,n){return new Promise((r,i)=>{let a=new XMLHttpRequest;if(a.open(n.method,e),n.headers)for(let[e,t]of Object.entries(n.headers))a.setRequestHeader(e,t);a.upload.onprogress=e=>{e.lengthComputable&&n.onProgress&&n.onProgress(e.loaded/e.total)},a.onload=()=>{a.status>=200&&a.status<300?(n.onProgress?.(1),r()):i(Error(`Upload failed with status ${a.status}`))},a.onerror=()=>i(Error(`Network error during upload`)),a.onabort=()=>i(new DOMException(`aborted`,`AbortError`)),n.signal&&(n.signal.aborted?a.abort():n.signal.addEventListener(`abort`,()=>a.abort(),{once:!0})),a.send(t)})}var Na=({adapter:e,children:t})=>{let n=(0,K.useRef)(e??ka());(0,K.useEffect)(()=>{e&&(n.current=e)},[e]);let r=(0,K.useCallback)((e,t)=>n.current.upload(e,t),[]),i=(0,K.useMemo)(()=>({upload:r,adapter:n.current}),[r]);return(0,q.jsx)(Oa.Provider,{value:i,children:t})};function Pa(){let e=(0,K.useContext)(Oa),t=(0,K.useMemo)(()=>{let e=ka();return{upload:(t,n)=>e.upload(t,n),adapter:e}},[]);return e??t}d();function J(...e){return wt(Dt(e))}function Fa(e){return!e||Array.isArray(e)&&e.length===0}function Ia(e,t){return Fa(e)?null:t(e)}function Y(e){return Fa(e)?null:typeof e==`string`||typeof e==`number`?e:Array.isArray(e)?e.length===1?(0,q.jsx)(Pe,{schema:e[0]}):e.map((e,t)=>(0,q.jsx)(Pe,{schema:e},e.id||t)):(0,q.jsx)(Pe,{schema:e})}function La(e,t){return Ia(t,t=>{let n=Y(t);return(0,q.jsx)(e,{asChild:K.isValidElement(n),children:n})})}var Ra=(0,K.forwardRef)(({schema:e,className:t,...n},r)=>{let{"data-obj-id":i,"data-obj-type":a,style:o,...s}=n;return(0,q.jsx)(`div`,{ref:r,className:t,...s,"data-obj-id":i,"data-obj-type":a,style:o,children:Y(e.children)})});U.register(`div`,Ra,{namespace:`ui`,label:`Container (Deprecated)`,deprecated:{surfaces:[`json`,`html`],replacement:'author "box" for a plain wrapper — the one drop-in swap; reach for "card", "flex", "container", "stack" or "grid" only when you want their layout, and move `body` content into `children` first'},inputs:[{name:`className`,type:`string`},{name:`children`,type:`slot`}],defaultProps:{className:`p-2 sm:p-4 border border-dashed border-gray-300 rounded min-h-[100px]`}});var za={h1:`text-4xl font-semibold tracking-tight`,h2:`text-3xl font-semibold tracking-tight`,h3:`text-2xl font-semibold tracking-tight`,h4:`text-xl font-semibold tracking-tight`,h5:`text-lg font-semibold tracking-tight`,h6:`text-base font-semibold tracking-tight`,body:`text-sm text-foreground`,caption:`text-xs text-muted-foreground`,overline:`text-xs font-medium uppercase tracking-widest text-muted-foreground`},Ba={h1:`h1`,h2:`h2`,h3:`h3`,h4:`h4`,h5:`h5`,h6:`h6`,body:`span`,caption:`span`,overline:`span`},Va={left:`block text-left`,center:`block text-center`,right:`block text-right`,justify:`block text-justify`};U.register(`text`,({schema:e,...t})=>{let{style:n,...r}=t,i=r[`data-obj-id`],a=J(e.variant?za[e.variant]:void 0,e.align?Va[e.align]:void 0,e.className||r.className)||void 0;if(i||a){let t=e.variant&&Ba[e.variant]||`span`;return(0,q.jsx)(t,{...M(r),style:n,className:a,children:e.content})}return(0,q.jsx)(q.Fragment,{children:e.content})},{namespace:`ui`,label:`Text`,inputs:[{name:`content`,type:`string`,required:!0},{name:`variant`,type:`enum`,enum:[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`body`,`caption`,`overline`]},{name:`align`,type:`enum`,enum:[`left`,`center`,`right`,`justify`]}],defaultProps:{content:`Text content`}});var Ha=Symbol.for(`@object-ui/sdui-parser.html-tier-node`);function Ua(e){return e[Ha]=!0,e}function Wa(e){return typeof e==`object`&&!!e&&e[Ha]===!0}var Ga=/^on[A-Z]/,Ka=new Set([`dangerouslySetInnerHTML`,`ref`,`key`]),qa=`type`;function Ja(e,t={}){return new Za(e,t).parseDocument()}var Ya=e=>/[A-Za-z]/.test(e),Xa=e=>/[A-Za-z0-9:_-]/.test(e),Za=class{src;opts;pos=0;diagnostics=[];constructor(e,t){this.src=e,this.opts=t}parseDocument(){if(this.skipTrivia(),this.peek()!==`<`)return this.error(`no-root`,`Expected a single root element`),{tree:null,diagnostics:this.diagnostics};let e=this.parseElement();return this.skipTrivia(),e&&this.pos<this.src.length&&this.error(`multiple-roots`,`A page must have exactly one root element`,this.pos),{tree:e,diagnostics:this.diagnostics}}parseElement(){let e=this.pos;if(!this.eat(`<`))return this.error(`expected-element`,`Expected "<"`,e),null;let t=this.readName();if(!t)return this.error(`bad-tag`,`Expected a tag name after "<"`,e),null;this.opts.allowedTags&&!this.opts.allowedTags.has(t)&&this.error(`forbidden-tag`,`<${t}> is not an allowed component`,e,t);let n={};for(;;){this.skipWs();let r=this.peek();if(r===``||r===`>`||r===`/`)break;let i=this.parseAttr(e,t);if(!i)break;i.drop||(n[i.name]=i.value)}this.skipWs();let r;this.eat(`/`)?this.eat(`>`)||this.error(`bad-self-close`,`Malformed self-closing <${t}>`,this.pos,t):this.eat(`>`)?r=this.parseChildren(t):this.error(`unterminated-open-tag`,`Unterminated <${t}> open tag`,e,t);let i=Ua({...n,type:t});return r&&r.length&&(i.children=r),i}parseAttr(e,t){let n=this.readName();if(!n)return this.error(`bad-attr`,`Malformed attribute on <${t}>`,this.pos,t),this.pos++,null;this.skipWs();let r=!0;return this.eat(`=`)&&(this.skipWs(),r=this.parseAttrValue(t)),n===qa?(this.error(`forbidden-attr`,`Attribute "${qa}" is not allowed on <${t}> — on this tier the tag name IS the component, so <${t}> already means type "${t}". Delete the attribute, or write the tag of the component you meant.`,e,t),{name:n,value:void 0,drop:!0}):Ga.test(n)||Ka.has(n)?(this.error(`forbidden-attr`,`Attribute "${n}" is not allowed on <${t}>`,e,t),{name:`__forbidden_${n}`,value:void 0}):{name:n,value:r}}parseAttrValue(e){let t=this.peek();if(t===`"`||t===`'`)return this.readString(t);if(t===`{`)return Qa(this.readBraced());this.error(`bad-attr-value`,`Expected an attribute value on <${e}>`,this.pos,e)}parseChildren(e){let t=[];for(;;){if(this.pos>=this.src.length){this.error(`unclosed-element`,`Unclosed <${e}>`,this.pos,e);break}if(this.src.startsWith(`</`,this.pos)){this.pos+=2,this.skipWs();let t=this.readName();this.skipWs(),this.eat(`>`),t!==e&&this.error(`mismatched-tag`,`Expected </${e}> but found </${t}>`,this.pos,e);break}if(this.src.startsWith(`{/*`,this.pos)){let e=this.src.indexOf(`*/}`,this.pos);e===-1?(this.error(`unclosed-comment`,`Unclosed comment`,this.pos),this.pos=this.src.length):this.pos=e+3;continue}if(this.peek()===`<`){let e=this.parseElement();e&&t.push(e);continue}if(this.peek()===`{`){let e=this.pos;this.readBraced(),this.error(`expression-child`,`Inline {expression} children are not supported yet — bind via a component prop`,e);continue}let n=this.readTextRun().replace(/\s+/g,` `),r=n.trim(),i=t.length>0,a=this.peek()===`<`&&!this.src.startsWith(`</`,this.pos);if(r){let e=i&&n.startsWith(` `)?` `:``,o=a&&n.endsWith(` `)?` `:``;t.push(`${e}${r}${o}`)}else n&&i&&a&&t.push(` `)}return t}peek(){return this.pos<this.src.length?this.src[this.pos]:``}eat(e){return this.src[this.pos]===e&&(this.pos++,!0)}readName(){if(!Ya(this.peek()))return``;let e=this.pos;for(this.pos++;this.pos<this.src.length&&Xa(this.src[this.pos]);)this.pos++;return this.src.slice(e,this.pos)}readString(e){this.pos++;let t=this.pos;for(;this.pos<this.src.length&&this.src[this.pos]!==e;)this.pos++;let n=this.src.slice(t,this.pos);return this.eat(e)||this.error(`unterminated-string`,`Unterminated string literal`,t),n}readBraced(){let e=this.pos,t=0,n=null;for(;this.pos<this.src.length;this.pos++){let r=this.src[this.pos];if(n){r===n&&this.src[this.pos-1]!==`\\`&&(n=null);continue}if(r===`"`||r===`'`)n=r;else if(r===`{`)t++;else if(r===`}`&&(t--,t===0)){let t=this.src.slice(e+1,this.pos);return this.pos++,t}}return this.error(`unterminated-brace`,`Unterminated "{"`,e),this.src.slice(e+1)}readTextRun(){let e=this.pos;for(;this.pos<this.src.length&&this.src[this.pos]!==`<`&&this.src[this.pos]!==`{`;)this.pos++;return this.src.slice(e,this.pos)}skipWs(){for(;this.pos<this.src.length&&/\s/.test(this.src[this.pos]);)this.pos++}skipTrivia(){for(;;){if(this.skipWs(),this.src.startsWith(`{/*`,this.pos)){let e=this.src.indexOf(`*/}`,this.pos);this.pos=e===-1?this.src.length:e+3;continue}break}}error(e,t,n,r){this.diagnostics.push({severity:`error`,code:e,message:t,start:n??this.pos,tag:r})}};function Qa(e){let t=e.trim();try{return JSON.parse(t)}catch{let e=ao(t);return e===$a?{$expr:t}:e}}var $a=Symbol(`not-a-literal`),eo=/[ \t\n\r]/,to=/[A-Za-z_$]/,no=/[A-Za-z0-9_$]/,ro=/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?/,io={'"':`"`,"\\":`\\`,"/":`/`,b:`\b`,f:`\f`,n:`
2
- `,r:`\r`,t:` `};function ao(e){let t=new oo(e),n=t.value();return n===$a?$a:(t.ws(),t.done()?n:$a)}var oo=class{src;pos=0;constructor(e){this.src=e}done(){return this.pos>=this.src.length}ws(){for(;this.pos<this.src.length&&eo.test(this.src[this.pos]);)this.pos++}value(){this.ws();let e=this.src[this.pos];return e===void 0?$a:e===`"`||e===`'`?this.string(e):e===`[`?this.array():e===`{`?this.object():this.keyword(`true`)?!0:this.keyword(`false`)?!1:this.keyword(`null`)?null:this.number()}keyword(e){if(!this.src.startsWith(e,this.pos))return!1;let t=this.src[this.pos+e.length];return t!==void 0&&no.test(t)?!1:(this.pos+=e.length,!0)}number(){let e=ro.exec(this.src.slice(this.pos));return e?(this.pos+=e[0].length,Number(e[0])):$a}string(e){this.pos++;let t=``;for(;;){let n=this.src[this.pos];if(n===void 0)return $a;if(n===e)return this.pos++,t;if(n===`\\`){let n=this.src[this.pos+1];if(n===void 0)return $a;if(n===`u`){let e=this.src.slice(this.pos+2,this.pos+6);if(!/^[0-9a-fA-F]{4}$/.test(e))return $a;t+=String.fromCharCode(parseInt(e,16)),this.pos+=6;continue}if(n===`'`&&e===`'`){t+=`'`,this.pos+=2;continue}let r=io[n];if(r===void 0)return $a;t+=r,this.pos+=2;continue}if(n<` `)return $a;t+=n,this.pos++}}array(){this.pos++;let e=[];if(this.ws(),this.src[this.pos]===`]`)return this.pos++,e;for(;;){let t=this.value();if(t===$a)return $a;e.push(t),this.ws();let n=this.src[this.pos];if(n===`,`){this.pos++;continue}return n===`]`?(this.pos++,e):$a}}object(){this.pos++;let e={};if(this.ws(),this.src[this.pos]===`}`)return this.pos++,e;for(;;){this.ws();let t=this.key();if(t===$a||(this.ws(),this.src[this.pos]!==`:`))return $a;this.pos++;let n=this.value();if(n===$a)return $a;Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0}),this.ws();let r=this.src[this.pos];if(r===`,`){this.pos++;continue}return r===`}`?(this.pos++,e):$a}}key(){let e=this.src[this.pos];if(e===`"`||e===`'`)return this.string(e);if(e!==void 0&&to.test(e)){let e=this.pos;for(this.pos++;this.pos<this.src.length&&no.test(this.src[this.pos]);)this.pos++;return this.src.slice(e,this.pos)}return $a}},so=new Set([`string`,`number`,`boolean`,`enum`,`array`,`object`,`color`,`date`,`code`,`file`,`slot`]);function co(e){return e===void 0?[]:Array.isArray(e)?e:[e]}function lo(e){let t=(Array.isArray(e)?e:[e]).filter(e=>typeof e==`string`&&so.has(e)),n=[...new Set(t)];return n.length===0?`string`:n.length===1?n[0]:n}var uo=`unconsumed-widget-option`,fo=new Set([`dashboard`,`dashboard-grid`]),po=[`dateGranularity`,`description`,`limit`,`sortBy`,`sortOrder`,`stageOrder`],mo=new Set(po),ho=e=>typeof e==`object`&&!!e&&!Array.isArray(e),go=e=>ho(e)&&`$expr`in e;function _o(e){if(!fo.has(e.type))return[];let t=e.widgets;if(!Array.isArray(t))return[];let n=[];return t.forEach((t,r)=>{if(!ho(t)||go(t)||t.component!==void 0||t.dataset===void 0||t.dataset===null||t.dataset===``)return;let i=t.options;if(!ho(i)||go(i)||Array.isArray(t.suppressWarnings)&&t.suppressWarnings.includes(`unconsumed-widget-option`))return;let a=typeof t.id==`string`&&t.id!==``?t.id:`#${r}`,o=typeof t.type==`string`&&t.type!==``?t.type:`widget`;for(let t of Object.keys(i))mo.has(t)||n.push({severity:`warning`,code:uo,message:`<${e.type}> widget "${a}" (${o}): options.${t} reaches no renderer — dashboard widget renderers read only: ${po.join(`, `)}`,tag:e.type})}),n}var vo=`inert-quick-add`,yo=`quickAdd`,bo=new Set([`object-kanban`]),xo=e=>typeof e==`object`&&!!e&&!Array.isArray(e),So=e=>xo(e)&&`$expr`in e;function Co(e,t,n){return t!==`quickAdd`||!bo.has(e)||So(n)||!n?null:{severity:`warning`,code:vo,message:`<${e}> prop "${yo}" reaches no control — the Quick Add button is gated on BOTH "${yo}" and an "onQuickAdd" handler, and this block supplies neither half of the pair: "onQuickAdd" takes a FUNCTION, which no page on this tier can write (this tier parses, never executes) and which this board substitutes none of its own for. Drop the key, or mount KanbanRenderer from "@object-ui/plugin-kanban" in a React host that passes "onQuickAdd".`,tag:e}}var wo=e=>typeof e==`object`&&!!e&&!Array.isArray(e),To=e=>Array.isArray(e)||wo(e);function Eo(e,t,n,r){return t===`body`?To(n)&&!r?{severity:`warning`,code:`not-a-container`,message:`<${e}> does not accept children — and "body" is the retired spelling of "children" (objectui#6771), so this child list has no door here at all`,tag:e}:{severity:`warning`,code:`unknown-prop`,message:`<${e}> has no prop "body" — the child-list key is "children" ("body" was retired by objectui#6771)`,tag:e}:null}var Do=`children`;function Oo(e){return e.inputs.some(e=>e.name===Do)}var ko=new Set([`type`,`id`,`className`,`style`,`visible`,`visibleOn`,`disabled`,`disabledOn`,Do]),Ao=e=>typeof e==`object`&&!!e&&`$expr`in e;function jo(e,t){let n=[],r=new Set,i=[],a=e=>{if(typeof e==`string`)return;let o=t.components[e.type];if(!o)n.push({severity:`error`,code:`unknown-component`,message:`<${e.type}> is not a known component`,tag:e.type});else{o.namespace&&r.add(o.namespace);let t=new Map(o.inputs.map(e=>[e.name,e]));for(let t of o.inputs)t.required&&!(t.name in e)&&n.push({severity:`error`,code:`missing-required-prop`,message:`<${e.type}> is missing required prop "${t.name}"`,tag:e.type});for(let[r,a]of Object.entries(e)){if(ko.has(r))continue;let s=Co(e.type,r,a);if(s){n.push(s);continue}let c=t.get(r);if(!c){let t=Eo(e.type,r,a,Oo(o));n.push(t??{severity:`warning`,code:`unknown-prop`,message:`<${e.type}> has no prop "${r}"`,tag:e.type});continue}if(c.binding&&i.push({tag:e.type,input:r,kind:c.binding,value:a}),Ao(a))n.push({severity:`warning`,code:`inert-expression`,message:`<${e.type}> prop "${r}" is a braced expression this tier never evaluates — the value will be silently ignored at render. This tier materializes LITERALS only (strings, numbers, booleans, null, arrays, objects; quotes may be single or double, object keys may be unquoted), e.g. columns={['name','amount']} works — columns={rows.map((r) => r.name)} cannot`,tag:e.type});else{let t=Lo(e.type,c,a);if(t)n.push(t);else{let t=Io(e.type,c,a);t&&n.push(t)}}}e.children?.length&&!Oo(o)&&n.push({severity:`warning`,code:`not-a-container`,message:`<${e.type}> does not accept children`,tag:e.type}),n.push(..._o(e))}e.children&&e.children.forEach(a)};return e&&a(e),{diagnostics:n,requires:[...r],bindings:i}}var Mo=e=>(e.enum??[]).map(e=>typeof e==`object`?e.value:e);function No(e,t,n){switch(e){case`number`:return typeof n==`number`;case`boolean`:return typeof n==`boolean`;case`string`:case`color`:case`date`:case`code`:case`file`:return typeof n==`string`;case`array`:return Array.isArray(n);case`object`:return typeof n==`object`&&!!n&&!Array.isArray(n);case`enum`:return Mo(t).includes(n);default:return!0}}function Po(e,t){switch(e){case`number`:return`a number`;case`boolean`:return`a boolean`;case`array`:return`an array`;case`object`:return`an object`;case`enum`:return`one of ${JSON.stringify(Mo(t))}`;default:return`a string`}}function Fo(e){return Array.isArray(e)?e.map((e,t)=>[String(t),e]):typeof e==`object`&&e?Object.entries(e):null}function Io(e,t,n){let r=co(t.of);if(r.length===0)return null;let i=Fo(n);if(i===null)return null;let a=i.filter(([,e])=>!r.some(n=>No(n,t,e)));if(a.length===0)return null;let o=r.map(e=>Po(e,t)).join(` or `);return{severity:r.includes(`enum`)?`error`:`warning`,code:`member-type-mismatch`,message:`<${e}> prop "${t.name}" expected every member to be ${o} — ${a.map(([e])=>`[${e}]`).join(`, `)} ${a.length===1?`is`:`are`} not`,tag:e}}function Lo(e,t,n){let r=co(t.type);return r.length===0||r.some(e=>No(e,t,n))?null:r.length===1&&r[0]===`enum`?{severity:`error`,code:`invalid-enum`,message:`<${e}> prop "${t.name}"=${JSON.stringify(n)} is not one of ${JSON.stringify(Mo(t))}`,tag:e}:{severity:r.includes(`enum`)?`error`:`warning`,code:`type-mismatch`,message:`<${e}> prop "${t.name}" expected ${r.map(e=>Po(e,t)).join(` or `)}`,tag:e}}function Ro(e,t){let n=Ja(e,{allowedTags:new Set(Object.keys(t.components))}),r=jo(n.tree,t),i=[...n.diagnostics,...r.diagnostics];return{tree:n.tree,diagnostics:i,requires:r.requires,bindings:r.bindings,ok:!i.some(e=>e.severity===`error`)}}function zo(e,t={}){let n={};for(let r of e)(!t.only||t.only.has(r.type))&&(t.publicOnly&&r.tier!==`public`||(n[r.type]={type:r.type,namespace:r.namespace,isContainer:r.isContainer,tier:r.tier===`html`?`html`:void 0,inputs:(r.inputs??[]).map(e=>({name:e.name,type:lo(e.type),of:e.of===void 0?void 0:lo(e.of),required:e.required,enum:e.enum,binding:e.binding,description:e.description}))}));return{components:n}}var Bo=(0,K.forwardRef)(({schema:e,className:t,...n},r)=>{Wa(e);let{"data-obj-id":i,"data-obj-type":a,style:o,...s}=n;return(0,q.jsx)(`span`,{ref:r,className:t,...s,"data-obj-id":i,"data-obj-type":a,style:o,children:Y(e.children)||e.value})});U.register(`span`,Bo,{namespace:`ui`,label:`Inline Container (Deprecated)`,deprecated:{surfaces:[`json`],replacement:`use "badge" for labels, or "text" with a className for inline emphasis`},inputs:[{name:`className`,type:`string`},{name:`children`,type:`slot`,description:"Inline content, rendered ahead of `value`"}],defaultProps:{className:`px-1.5 py-0.5 sm:px-2 sm:py-1`}});var Vo=$r,Ho=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(Wr,{ref:n,className:J(`border-b`,e),...t}));Ho.displayName=`AccordionItem`;var Uo=K.forwardRef(({className:e,children:t,...n},r)=>(0,q.jsx)(In,{className:`flex`,children:(0,q.jsxs)(Hn,{ref:r,className:J(`flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180`,e),...n,children:[t,(0,q.jsx)(pi,{className:`h-4 w-4 shrink-0 transition-transform duration-200`})]})}));Uo.displayName=Hn.displayName;var Wo=K.forwardRef(({className:e,children:t,...n},r)=>(0,q.jsx)(nr,{ref:r,className:`overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down`,...n,children:(0,q.jsx)(`div`,{className:J(`pb-4 pt-0`,e),children:t})}));Wo.displayName=nr.displayName;var Go=Tt(`inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/90`,destructive:`bg-destructive text-destructive-foreground hover:bg-destructive/90`,outline:`border border-input bg-background hover:bg-accent hover:text-accent-foreground`,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-10 px-4 py-2`,sm:`h-9 rounded-md px-3`,lg:`h-11 rounded-md px-8`,icon:`h-10 w-10`}},defaultVariants:{variant:`default`,size:`default`}}),X=K.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},a)=>(0,q.jsx)(r?zt:`button`,{className:J(Go({variant:t,size:n,className:e})),ref:a,...i}));X.displayName=`Button`;var Ko=zn,qo=Fr,Jo=cr,Yo=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(Mr,{className:J(`fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,e),...t,ref:n}));Yo.displayName=Mr.displayName;var Xo=K.forwardRef(({className:e,...t},n)=>(0,q.jsxs)(Jo,{children:[(0,q.jsx)(Yo,{}),(0,q.jsx)(Rr,{ref:n,className:J(`fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg`,e),...t})]}));Xo.displayName=Rr.displayName;var Zo=({className:e,...t})=>(0,q.jsx)(`div`,{className:J(`flex flex-col space-y-2 text-center sm:text-left`,e),...t});Zo.displayName=`AlertDialogHeader`;var Qo=({className:e,...t})=>(0,q.jsx)(`div`,{className:J(`flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2`,e),...t});Qo.displayName=`AlertDialogFooter`;var $o=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(wr,{ref:n,className:J(`text-lg font-semibold`,e),...t}));$o.displayName=wr.displayName;var es=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(xr,{ref:n,className:J(`text-sm text-muted-foreground`,e),...t}));es.displayName=xr.displayName;var ts=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(At,{ref:n,className:J(Go(),e),...t}));ts.displayName=At.displayName;var ns=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(Xn,{ref:n,className:J(Go({variant:`outline`}),`mt-2 sm:mt-0`,e),...t}));ns.displayName=Xn.displayName;var rs=Tt(`relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground`,{variants:{variant:{default:`bg-background text-foreground`,destructive:`border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive`}},defaultVariants:{variant:`default`}}),is=K.forwardRef(({className:e,variant:t,...n},r)=>(0,q.jsx)(`div`,{ref:r,role:`alert`,className:J(rs({variant:t}),e),...n}));is.displayName=`Alert`;var as=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`h5`,{ref:n,className:J(`mb-1 font-medium leading-none tracking-tight`,e),...t}));as.displayName=`AlertTitle`;var os=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`div`,{ref:n,className:J(`text-sm [&_p]:leading-relaxed`,e),...t}));os.displayName=`AlertDescription`;var ss=mn,cs=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(Mn,{ref:n,className:J(`relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full`,e),...t}));cs.displayName=Mn.displayName;var ls=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(Pn,{ref:n,className:J(`aspect-square h-full w-full`,e),...t}));ls.displayName=Pn.displayName;var us=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(An,{ref:n,className:J(`flex h-full w-full items-center justify-center rounded-full bg-muted`,e),...t}));us.displayName=An.displayName;var ds=Tt(`inline-flex items-center whitespace-nowrap rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2`,{variants:{variant:{default:`border-transparent bg-primary text-primary-foreground hover:bg-primary/80`,secondary:`border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80`,destructive:`border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80`,outline:`text-foreground`}},defaultVariants:{variant:`default`}});function fs({className:e,variant:t,...n}){return(0,q.jsx)(`div`,{className:J(ds({variant:t}),e),...n})}var ps=K.forwardRef(({...e},t)=>(0,q.jsx)(`nav`,{ref:t,"aria-label":`breadcrumb`,...e}));ps.displayName=`Breadcrumb`;var ms=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`ol`,{ref:n,className:J(`flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5`,e),...t}));ms.displayName=`BreadcrumbList`;var hs=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`li`,{ref:n,className:J(`inline-flex items-center gap-1.5`,e),...t}));hs.displayName=`BreadcrumbItem`;var gs=K.forwardRef(({asChild:e,className:t,...n},r)=>(0,q.jsx)(e?zt:`a`,{ref:r,className:J(`transition-colors hover:text-foreground`,t),...n}));gs.displayName=`BreadcrumbLink`;var _s=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`span`,{ref:n,role:`link`,"aria-disabled":`true`,"aria-current":`page`,className:J(`font-normal text-foreground`,e),...t}));_s.displayName=`BreadcrumbPage`;var vs=({children:e,className:t,...n})=>(0,q.jsx)(`li`,{role:`presentation`,"aria-hidden":`true`,className:J(`[&>svg]:w-3.5 [&>svg]:h-3.5`,t),...n,children:e??(0,q.jsx)(hi,{})});vs.displayName=`BreadcrumbSeparator`;var ys=({className:e,...t})=>(0,q.jsxs)(`span`,{role:`presentation`,"aria-hidden":`true`,className:J(`flex h-9 w-9 items-center justify-center`,e),...t,children:[(0,q.jsx)(Mi,{className:`h-4 w-4`}),(0,q.jsx)(`span`,{className:`sr-only`,children:`More`})]});ys.displayName=`BreadcrumbElipssis`;function bs(e,t,n=`long`){return new Intl.DateTimeFormat(`en-US`,{hour:`numeric`,timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(` `)}var xs={},Ss={};function Cs(e,t){try{let n=(xs[e]||=new Intl.DateTimeFormat(`en-US`,{timeZone:e,timeZoneName:`longOffset`}).format)(t).split(`GMT`)[1];return n in Ss?Ss[n]:Ts(n,n.split(`:`))}catch{if(e in Ss)return Ss[e];let t=e?.match(ws);return t?Ts(e,t.slice(1)):NaN}}var ws=/([+-]\d\d):?(\d\d)?/;function Ts(e,t){let n=+(t[0]||0),r=+(t[1]||0),i=(t[2]||0)/60;return Ss[e]=n*60+r>0?n*60+r+i:n*60-r-i}var Es=class e extends Date{constructor(...e){super(),e.length>1&&typeof e[e.length-1]==`string`&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(Cs(this.timeZone,this))?this.setTime(NaN):e.length?typeof e[0]==`number`&&(e.length===1||e.length===2&&typeof e[1]!=`number`)?this.setTime(e[0]):typeof e[0]==`string`?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),As(this,e)):this.setTime(Date.now())}static tz(t,...n){return n.length?new e(...n,t):new e(Date.now(),t)}withTimeZone(t){return new e(+this,t)}getTimezoneOffset(){let e=-Cs(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),Os(this),+this}[Symbol.for(`constructDateFrom`)](t){return new e(+new Date(t),this.timeZone)}},Ds=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!Ds.test(e))return;let t=e.replace(Ds,`$1UTC`);Es.prototype[t]&&(e.startsWith(`get`)?Es.prototype[e]=function(){return this.internal[t]()}:(Es.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),ks(this),+this},Es.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),Os(this),+this}))});function Os(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-Cs(e.timeZone,e)*60))}function ks(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),As(e)}function As(e,t){let n=Array.isArray(t)?js(t):+e.internal,r=Cs(e.timeZone,e),i=r>0?Math.floor(r):Math.ceil(r),a=new Date(+e);a.setUTCHours(a.getUTCHours()-1);let o=-new Date(+e).getTimezoneOffset(),s=-new Date(+a).getTimezoneOffset(),c=o-s,l=o;if(c&&o!==i&&Date.prototype.getHours.apply(e)!==(Array.isArray(t)?t[3]||0:e.internal.getUTCHours())){let t=new Date(+e),n=o-i;n&&t.setUTCMinutes(t.getUTCMinutes()+n);let r=Cs(e.timeZone,t);(r>0?Math.floor(r):Math.ceil(r))===i&&(l=s)}let u=l-i;u&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+u);let d=new Date(+e);d.setUTCSeconds(0);let f=o>0?d.getSeconds():(d.getSeconds()-60)%60,p=Math.round(-(Cs(e.timeZone,e)*60))%60;(p||f)&&Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+p+f);let m=Cs(e.timeZone,e),h=m>0?Math.floor(m):Math.ceil(m),g=-new Date(+e).getTimezoneOffset()-h,_=h!==i,v=g-u,y=h-i,b=n-h*60*1e3,x=y>0&&Ms(e)-n===y*60*1e3&&Ms(e,b)!==n;if(_&&v&&!x){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+v);let t=Cs(e.timeZone,e),n=h-(t>0?Math.floor(t):Math.ceil(t));n&&v<0&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+n)}Os(e);let S=(t?n:n+p*1e3)-+e.internal;S&&Math.abs(S)<18e5&&(Date.prototype.setTime.call(e,+e+S),Os(e))}function js(e){return Date.UTC(e[0],e.length>1?e[1]:0,e.length>2?e[2]:1,...e.slice(3))}function Ms(e,t){let n=new Date(t??+e);return n.setUTCSeconds(n.getUTCSeconds()-Math.round(-Cs(e.timeZone,n)*60)),+n}var Ns=class e extends Es{static tz(t,...n){return n.length?new e(...n,t):new e(Date.now(),t)}toISOString(){let[e,t,n]=this.tzComponents(),r=`${e}${t}:${n}`;return this.internal.toISOString().slice(0,-1)+r}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){let[e,t,n,r]=this.internal.toUTCString().split(` `);return`${e?.slice(0,-1)} ${n} ${t} ${r}`}toTimeString(){let e=this.internal.toUTCString().split(` `)[4],[t,n,r]=this.tzComponents();return`${e} GMT${t}${n}${r} (${bs(this.timeZone,this)})`}toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}tzComponents(){let e=this.getTimezoneOffset();return[e>0?`-`:`+`,String(Math.floor(Math.abs(e)/60)).padStart(2,`0`),String(Math.abs(e)%60).padStart(2,`0`)]}withTimeZone(t){return new e(+this,t)}[Symbol.for(`constructDateFrom`)](t){return new e(+new Date(t),this.timeZone)}},Ps=365.2425,Fs=6048e5,Is=864e5,Ls=86400;Ls*7,Ls*Ps/12*3;var Rs=Symbol.for(`constructDateFrom`);function zs(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&Rs in e?e[Rs](t):e instanceof Date?new e.constructor(t):new Date(t)}function Bs(e,t){return zs(t||e,e)}function Vs(e,t,n){let r=Bs(e,n?.in);return isNaN(t)?zs(n?.in||e,NaN):(t&&r.setDate(r.getDate()+t),r)}function Hs(e,t,n){let r=Bs(e,n?.in);if(isNaN(t))return zs(n?.in||e,NaN);if(!t)return r;let i=r.getDate(),a=zs(n?.in||e,r.getTime());return a.setMonth(r.getMonth()+t+1,0),i>=a.getDate()?a:(r.setFullYear(a.getFullYear(),a.getMonth(),i),r)}var Us={};function Ws(){return Us}function Gs(e,t){let n=Ws(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=Bs(e,t?.in),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function Ks(e,t){return Gs(e,{...t,weekStartsOn:1})}function qs(e,t){let n=Bs(e,t?.in),r=n.getFullYear(),i=zs(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);let a=Ks(i),o=zs(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);let s=Ks(o);return n.getTime()>=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function Js(e){let t=Bs(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-n}function Ys(e,...t){let n=zs.bind(null,e||t.find(e=>typeof e==`object`));return t.map(n)}function Xs(e,t){let n=Bs(e,t?.in);return n.setHours(0,0,0,0),n}function Zs(e,t,n){let[r,i]=Ys(n?.in,e,t),a=Xs(r),o=Xs(i),s=+a-Js(a),c=+o-Js(o);return Math.round((s-c)/Is)}function Qs(e,t){let n=qs(e,t),r=zs(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Ks(r)}function $s(e,t,n){return Vs(e,t*7,n)}function ec(e,t,n){return Hs(e,t*12,n)}function tc(e,t){let n,r=t?.in;return e.forEach(e=>{!r&&typeof e==`object`&&(r=zs.bind(null,e));let t=Bs(e,r);(!n||n<t||isNaN(+t))&&(n=t)}),zs(r,n||NaN)}function nc(e,t){let n,r=t?.in;return e.forEach(e=>{!r&&typeof e==`object`&&(r=zs.bind(null,e));let t=Bs(e,r);(!n||n>t||isNaN(+t))&&(n=t)}),zs(r,n||NaN)}function rc(e,t,n){let[r,i]=Ys(n?.in,e,t);return+Xs(r)==+Xs(i)}function ic(e){return e instanceof Date||typeof e==`object`&&Object.prototype.toString.call(e)===`[object Date]`}function ac(e){return!(!ic(e)&&typeof e!=`number`||isNaN(+Bs(e)))}function oc(e,t,n){let[r,i]=Ys(n?.in,e,t),a=r.getFullYear()-i.getFullYear(),o=r.getMonth()-i.getMonth();return a*12+o}function sc(e,t){let n=Bs(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function cc(e,t){let[n,r]=Ys(e,t.start,t.end);return{start:n,end:r}}function lc(e,t){let{start:n,end:r}=cc(t?.in,e),i=+n>+r,a=i?+n:+r,o=i?r:n;o.setHours(0,0,0,0),o.setDate(1);let s=t?.step??1;if(!s)return[];s<0&&(s=-s,i=!i);let c=[];for(;+o<=a;)c.push(zs(n,o)),o.setMonth(o.getMonth()+s);return i?c.reverse():c}function uc(e,t){let n=Bs(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function dc(e,t){let n=Bs(e,t?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function fc(e,t){let n=Bs(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function pc(e,t){let{start:n,end:r}=cc(t?.in,e),i=+n>+r,a=i?+n:+r,o=i?r:n;o.setHours(0,0,0,0),o.setMonth(0,1);let s=t?.step??1;if(!s)return[];s<0&&(s=-s,i=!i);let c=[];for(;+o<=a;)c.push(zs(n,o)),o.setFullYear(o.getFullYear()+s);return i?c.reverse():c}function mc(e,t){let n=Ws(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=Bs(e,t?.in),a=i.getDay(),o=(a<r?-7:0)+6-(a-r);return i.setDate(i.getDate()+o),i.setHours(23,59,59,999),i}function hc(e,t){return mc(e,{...t,weekStartsOn:1})}var gc={lessThanXSeconds:{one:`less than a second`,other:`less than {{count}} seconds`},xSeconds:{one:`1 second`,other:`{{count}} seconds`},halfAMinute:`half a minute`,lessThanXMinutes:{one:`less than a minute`,other:`less than {{count}} minutes`},xMinutes:{one:`1 minute`,other:`{{count}} minutes`},aboutXHours:{one:`about 1 hour`,other:`about {{count}} hours`},xHours:{one:`1 hour`,other:`{{count}} hours`},xDays:{one:`1 day`,other:`{{count}} days`},aboutXWeeks:{one:`about 1 week`,other:`about {{count}} weeks`},xWeeks:{one:`1 week`,other:`{{count}} weeks`},aboutXMonths:{one:`about 1 month`,other:`about {{count}} months`},xMonths:{one:`1 month`,other:`{{count}} months`},aboutXYears:{one:`about 1 year`,other:`about {{count}} years`},xYears:{one:`1 year`,other:`{{count}} years`},overXYears:{one:`over 1 year`,other:`over {{count}} years`},almostXYears:{one:`almost 1 year`,other:`almost {{count}} years`}},_c=(e,t,n)=>{let r,i=gc[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r};function vc(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var yc={date:vc({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:vc({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:vc({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},bc={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},xc=(e,t,n,r)=>bc[e];function Sc(e){return(t,n)=>{let r=n?.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,r=n?.width?String(n.width):t;i=e.formattingValues[r]||e.formattingValues[t]}else{let t=e.defaultWidth,r=n?.width?String(n.width):e.defaultWidth;i=e.values[r]||e.values[t]}let a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}var Cc={ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:Sc({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:Sc({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:Sc({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:Sc({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:Sc({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})};function wc(e){return(t,n={})=>{let r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;let o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?Ec(s,e=>e.test(o)):Tc(s,e=>e.test(o)),l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;let u=t.slice(o.length);return{value:l,rest:u}}}function Tc(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Ec(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Dc(e){return(t,n={})=>{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;let s=t.slice(i.length);return{value:o,rest:s}}}var Oc={ordinalNumber:Dc({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:wc({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:wc({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:wc({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:wc({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:wc({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},kc={code:`en-US`,formatDistance:_c,formatLong:yc,formatRelative:xc,localize:Cc,match:Oc,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Ac(e,t){let n=Bs(e,t?.in);return Zs(n,fc(n))+1}function jc(e,t){let n=Bs(e,t?.in),r=+Ks(n)-Qs(n);return Math.round(r/Fs)+1}function Mc(e,t){let n=Bs(e,t?.in),r=n.getFullYear(),i=Ws(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=zs(t?.in||e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);let s=Gs(o,t),c=zs(t?.in||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);let l=Gs(c,t);return+n>=+s?r+1:+n>=+l?r:r-1}function Nc(e,t){let n=Ws(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=Mc(e,t),a=zs(t?.in||e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),Gs(a,t)}function Pc(e,t){let n=Bs(e,t?.in),r=+Gs(n,t)-Nc(n,t);return Math.round(r/Fs)+1}function Fc(e,t){return(e<0?`-`:``)+Math.abs(e).toString().padStart(t,`0`)}var Ic={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return Fc(t===`yy`?r%100:r,t.length)},M(e,t){let n=e.getMonth();return t===`M`?String(n+1):Fc(n+1,2)},d(e,t){return Fc(e.getDate(),t.length)},a(e,t){let n=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.toUpperCase();case`aaa`:return n;case`aaaaa`:return n[0];default:return n===`am`?`a.m.`:`p.m.`}},h(e,t){return Fc(e.getHours()%12||12,t.length)},H(e,t){return Fc(e.getHours(),t.length)},m(e,t){return Fc(e.getMinutes(),t.length)},s(e,t){return Fc(e.getSeconds(),t.length)},S(e,t){let n=t.length,r=e.getMilliseconds();return Fc(Math.trunc(r*10**(n-3)),t.length)}},Lc={am:`am`,pm:`pm`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},Rc={G:function(e,t,n){let r=+(e.getFullYear()>0);switch(t){case`G`:case`GG`:case`GGG`:return n.era(r,{width:`abbreviated`});case`GGGGG`:return n.era(r,{width:`narrow`});default:return n.era(r,{width:`wide`})}},y:function(e,t,n){if(t===`yo`){let t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:`year`})}return Ic.y(e,t)},Y:function(e,t,n,r){let i=Mc(e,r),a=i>0?i:1-i;return t===`YY`?Fc(a%100,2):t===`Yo`?n.ordinalNumber(a,{unit:`year`}):Fc(a,t.length)},R:function(e,t){return Fc(qs(e),t.length)},u:function(e,t){return Fc(e.getFullYear(),t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`Q`:return String(r);case`QQ`:return Fc(r,2);case`Qo`:return n.ordinalNumber(r,{unit:`quarter`});case`QQQ`:return n.quarter(r,{width:`abbreviated`,context:`formatting`});case`QQQQQ`:return n.quarter(r,{width:`narrow`,context:`formatting`});default:return n.quarter(r,{width:`wide`,context:`formatting`})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`q`:return String(r);case`qq`:return Fc(r,2);case`qo`:return n.ordinalNumber(r,{unit:`quarter`});case`qqq`:return n.quarter(r,{width:`abbreviated`,context:`standalone`});case`qqqqq`:return n.quarter(r,{width:`narrow`,context:`standalone`});default:return n.quarter(r,{width:`wide`,context:`standalone`})}},M:function(e,t,n){let r=e.getMonth();switch(t){case`M`:case`MM`:return Ic.M(e,t);case`Mo`:return n.ordinalNumber(r+1,{unit:`month`});case`MMM`:return n.month(r,{width:`abbreviated`,context:`formatting`});case`MMMMM`:return n.month(r,{width:`narrow`,context:`formatting`});default:return n.month(r,{width:`wide`,context:`formatting`})}},L:function(e,t,n){let r=e.getMonth();switch(t){case`L`:return String(r+1);case`LL`:return Fc(r+1,2);case`Lo`:return n.ordinalNumber(r+1,{unit:`month`});case`LLL`:return n.month(r,{width:`abbreviated`,context:`standalone`});case`LLLLL`:return n.month(r,{width:`narrow`,context:`standalone`});default:return n.month(r,{width:`wide`,context:`standalone`})}},w:function(e,t,n,r){let i=Pc(e,r);return t===`wo`?n.ordinalNumber(i,{unit:`week`}):Fc(i,t.length)},I:function(e,t,n){let r=jc(e);return t===`Io`?n.ordinalNumber(r,{unit:`week`}):Fc(r,t.length)},d:function(e,t,n){return t===`do`?n.ordinalNumber(e.getDate(),{unit:`date`}):Ic.d(e,t)},D:function(e,t,n){let r=Ac(e);return t===`Do`?n.ordinalNumber(r,{unit:`dayOfYear`}):Fc(r,t.length)},E:function(e,t,n){let r=e.getDay();switch(t){case`E`:case`EE`:case`EEE`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`EEEEE`:return n.day(r,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},e:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`e`:return String(a);case`ee`:return Fc(a,2);case`eo`:return n.ordinalNumber(a,{unit:`day`});case`eee`:return n.day(i,{width:`abbreviated`,context:`formatting`});case`eeeee`:return n.day(i,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(i,{width:`short`,context:`formatting`});default:return n.day(i,{width:`wide`,context:`formatting`})}},c:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`c`:return String(a);case`cc`:return Fc(a,t.length);case`co`:return n.ordinalNumber(a,{unit:`day`});case`ccc`:return n.day(i,{width:`abbreviated`,context:`standalone`});case`ccccc`:return n.day(i,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(i,{width:`short`,context:`standalone`});default:return n.day(i,{width:`wide`,context:`standalone`})}},i:function(e,t,n){let r=e.getDay(),i=r===0?7:r;switch(t){case`i`:return String(i);case`ii`:return Fc(i,t.length);case`io`:return n.ordinalNumber(i,{unit:`day`});case`iii`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`iiiii`:return n.day(r,{width:`narrow`,context:`formatting`});case`iiiiii`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},a:function(e,t,n){let r=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`});case`aaa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`aaaaa`:return n.dayPeriod(r,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(r,{width:`wide`,context:`formatting`})}},b:function(e,t,n){let r=e.getHours(),i;switch(i=r===12?Lc.noon:r===0?Lc.midnight:r/12>=1?`pm`:`am`,t){case`b`:case`bb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`bbb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`bbbbb`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},B:function(e,t,n){let r=e.getHours(),i;switch(i=r>=17?Lc.evening:r>=12?Lc.afternoon:r>=4?Lc.morning:Lc.night,t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`BBBBB`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},h:function(e,t,n){if(t===`ho`){let t=e.getHours()%12;return t===0&&(t=12),n.ordinalNumber(t,{unit:`hour`})}return Ic.h(e,t)},H:function(e,t,n){return t===`Ho`?n.ordinalNumber(e.getHours(),{unit:`hour`}):Ic.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return t===`Ko`?n.ordinalNumber(r,{unit:`hour`}):Fc(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t===`ko`?n.ordinalNumber(r,{unit:`hour`}):Fc(r,t.length)},m:function(e,t,n){return t===`mo`?n.ordinalNumber(e.getMinutes(),{unit:`minute`}):Ic.m(e,t)},s:function(e,t,n){return t===`so`?n.ordinalNumber(e.getSeconds(),{unit:`second`}):Ic.s(e,t)},S:function(e,t){return Ic.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(r===0)return`Z`;switch(t){case`X`:return Bc(r);case`XXXX`:case`XX`:return Vc(r);default:return Vc(r,`:`)}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`x`:return Bc(r);case`xxxx`:case`xx`:return Vc(r);default:return Vc(r,`:`)}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`O`:case`OO`:case`OOO`:return`GMT`+zc(r,`:`);default:return`GMT`+Vc(r,`:`)}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`z`:case`zz`:case`zzz`:return`GMT`+zc(r,`:`);default:return`GMT`+Vc(r,`:`)}},t:function(e,t,n){return Fc(Math.trunc(e/1e3),t.length)},T:function(e,t,n){return Fc(+e,t.length)}};function zc(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+Fc(a,2)}function Bc(e,t){return e%60==0?(e>0?`-`:`+`)+Fc(Math.abs(e)/60,2):Vc(e,t)}function Vc(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=Fc(Math.trunc(r/60),2),a=Fc(r%60,2);return n+i+t+a}var Hc=(e,t)=>{switch(e){case`P`:return t.date({width:`short`});case`PP`:return t.date({width:`medium`});case`PPP`:return t.date({width:`long`});default:return t.date({width:`full`})}},Uc=(e,t)=>{switch(e){case`p`:return t.time({width:`short`});case`pp`:return t.time({width:`medium`});case`ppp`:return t.time({width:`long`});default:return t.time({width:`full`})}},Wc={p:Uc,P:(e,t)=>{let n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Hc(e,t);let a;switch(r){case`P`:a=t.dateTime({width:`short`});break;case`PP`:a=t.dateTime({width:`medium`});break;case`PPP`:a=t.dateTime({width:`long`});break;default:a=t.dateTime({width:`full`})}return a.replace(`{{date}}`,Hc(r,t)).replace(`{{time}}`,Uc(i,t))}},Gc=/^D+$/,Kc=/^Y+$/,qc=[`D`,`DD`,`YY`,`YYYY`];function Jc(e){return Gc.test(e)}function Yc(e){return Kc.test(e)}function Xc(e,t,n){let r=Zc(e,t,n);if(console.warn(r),qc.includes(e))throw RangeError(r)}function Zc(e,t,n){let r=e[0]===`Y`?`years`:`days of the month`;return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var Qc=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,$c=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,el=/^'([^]*?)'?$/,tl=/''/g,nl=/[a-zA-Z]/;function rl(e,t,n){let r=Ws(),i=n?.locale??r.locale??kc,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=Bs(e,n?.in);if(!ac(s))throw RangeError(`Invalid time value`);let c=t.match($c).map(e=>{let t=e[0];if(t===`p`||t===`P`){let n=Wc[t];return n(e,i.formatLong)}return e}).join(``).match(Qc).map(e=>{if(e===`''`)return{isToken:!1,value:`'`};let t=e[0];if(t===`'`)return{isToken:!1,value:il(e)};if(Rc[t])return{isToken:!0,value:e};if(t.match(nl))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));let l={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return c.map(r=>{if(!r.isToken)return r.value;let a=r.value;(!n?.useAdditionalWeekYearTokens&&Yc(a)||!n?.useAdditionalDayOfYearTokens&&Jc(a))&&Xc(a,t,String(e));let o=Rc[a[0]];return o(s,a,i.localize,l)}).join(``)}function il(e){let t=e.match(el);return t?t[1].replace(tl,`'`):e}function al(e,t){let n=Bs(e,t?.in),r=n.getFullYear(),i=n.getMonth(),a=zs(n,0);return a.setFullYear(r,i+1,0),a.setHours(0,0,0,0),a.getDate()}function ol(e,t){return Bs(e,t?.in).getMonth()}function sl(e,t){return Bs(e,t?.in).getFullYear()}function cl(e,t){return+Bs(e)>+Bs(t)}function ll(e,t){return+Bs(e)<+Bs(t)}function ul(e,t,n){let[r,i]=Ys(n?.in,e,t);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}function dl(e,t,n){let[r,i]=Ys(n?.in,e,t);return r.getFullYear()===i.getFullYear()}function fl(e,t,n){let r=Bs(e,n?.in),i=r.getFullYear(),a=r.getDate(),o=zs(n?.in||e,0);o.setFullYear(i,t,15),o.setHours(0,0,0,0);let s=al(o);return r.setMonth(t,Math.min(a,s)),r}function pl(e,t,n){let r=Bs(e,n?.in);return isNaN(+r)?zs(n?.in||e,NaN):(r.setFullYear(t),r)}var ml=5,hl=4;function gl(e,t){let n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,i=t.addDays(e,-r+1),a=t.addDays(i,34);return t.getMonth(e)===t.getMonth(a)?ml:hl}function _l(e,t){let n=t.startOfMonth(e),r=n.getDay();return r===1?n:r===0?t.addDays(n,-6):t.addDays(n,-1*(r-1))}function vl(e,t){let n=_l(e,t),r=gl(e,t);return t.addDays(n,r*7-1)}var yl={...kc,labels:{labelDayButton:(e,t,n,r)=>{let i;i=r&&typeof r.format==`function`?r.format.bind(r):(e,t)=>rl(e,t,{locale:kc,...n});let a=i(e,`PPPP`);return t.today&&(a=`Today, ${a}`),t.selected&&(a=`${a}, selected`),a},labelMonthDropdown:`Choose the Month`,labelNext:`Go to the Next Month`,labelPrevious:`Go to the Previous Month`,labelWeekNumber:e=>`Week ${e}`,labelYearDropdown:`Choose the Year`,labelGrid:(e,t,n)=>{let r;return r=n&&typeof n.format==`function`?n.format.bind(n):(e,n)=>rl(e,n,{locale:kc,...t}),r(e,`LLLL yyyy`)},labelGridcell:(e,t,n,r)=>{let i;i=r&&typeof r.format==`function`?r.format.bind(r):(e,t)=>rl(e,t,{locale:kc,...n});let a=i(e,`PPPP`);return t?.today&&(a=`Today, ${a}`),a},labelNav:`Navigation bar`,labelWeekNumberHeader:`Week Number`,labelWeekday:(e,t,n)=>{let r;return r=n&&typeof n.format==`function`?n.format.bind(n):(e,n)=>rl(e,n,{locale:kc,...t}),r(e,`cccc`)}}},bl=class e{constructor(e,t){this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?Ns.tz(this.options.timeZone):new(this.options.Date??Date),this.newDate=(e,t,n)=>this.overrides?.newDate?this.overrides.newDate(e,t,n):this.options.timeZone?new Ns(e,t,n,this.options.timeZone):new Date(e,t,n),this.addDays=(e,t)=>this.overrides?.addDays?this.overrides.addDays(e,t):Vs(e,t),this.addMonths=(e,t)=>this.overrides?.addMonths?this.overrides.addMonths(e,t):Hs(e,t),this.addWeeks=(e,t)=>this.overrides?.addWeeks?this.overrides.addWeeks(e,t):$s(e,t),this.addYears=(e,t)=>this.overrides?.addYears?this.overrides.addYears(e,t):ec(e,t),this.differenceInCalendarDays=(e,t)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(e,t):Zs(e,t),this.differenceInCalendarMonths=(e,t)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(e,t):oc(e,t),this.eachMonthOfInterval=e=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(e):lc(e),this.eachYearOfInterval=e=>{let t=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(e):pc(e),n=new Set(t.map(e=>this.getYear(e)));if(n.size===t.length)return t;let r=[];return n.forEach(e=>{r.push(new Date(e,0,1))}),r},this.endOfBroadcastWeek=e=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(e):vl(e,this),this.endOfISOWeek=e=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(e):hc(e),this.endOfMonth=e=>this.overrides?.endOfMonth?this.overrides.endOfMonth(e):sc(e),this.endOfWeek=(e,t)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(e,t):mc(e,this.options),this.endOfYear=e=>this.overrides?.endOfYear?this.overrides.endOfYear(e):dc(e),this.format=(e,t,n)=>{let r=this.overrides?.format?this.overrides.format(e,t,this.options):rl(e,t,this.options);return this.options.numerals&&this.options.numerals!==`latn`?this.replaceDigits(r):r},this.getISOWeek=e=>this.overrides?.getISOWeek?this.overrides.getISOWeek(e):jc(e),this.getMonth=(e,t)=>this.overrides?.getMonth?this.overrides.getMonth(e,this.options):ol(e,this.options),this.getYear=(e,t)=>this.overrides?.getYear?this.overrides.getYear(e,this.options):sl(e,this.options),this.getWeek=(e,t)=>this.overrides?.getWeek?this.overrides.getWeek(e,this.options):Pc(e,this.options),this.isAfter=(e,t)=>this.overrides?.isAfter?this.overrides.isAfter(e,t):cl(e,t),this.isBefore=(e,t)=>this.overrides?.isBefore?this.overrides.isBefore(e,t):ll(e,t),this.isDate=e=>this.overrides?.isDate?this.overrides.isDate(e):ic(e),this.isSameDay=(e,t)=>this.overrides?.isSameDay?this.overrides.isSameDay(e,t):rc(e,t),this.isSameMonth=(e,t)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(e,t):ul(e,t),this.isSameYear=(e,t)=>this.overrides?.isSameYear?this.overrides.isSameYear(e,t):dl(e,t),this.max=e=>this.overrides?.max?this.overrides.max(e):tc(e),this.min=e=>this.overrides?.min?this.overrides.min(e):nc(e),this.setMonth=(e,t)=>this.overrides?.setMonth?this.overrides.setMonth(e,t):fl(e,t),this.setYear=(e,t)=>this.overrides?.setYear?this.overrides.setYear(e,t):pl(e,t),this.startOfBroadcastWeek=(e,t)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(e,this):_l(e,this),this.startOfDay=e=>this.overrides?.startOfDay?this.overrides.startOfDay(e):Xs(e),this.startOfISOWeek=e=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(e):Ks(e),this.startOfMonth=e=>this.overrides?.startOfMonth?this.overrides.startOfMonth(e):uc(e),this.startOfWeek=(e,t)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(e,this.options):Gs(e,this.options),this.startOfYear=e=>this.overrides?.startOfYear?this.overrides.startOfYear(e):fc(e),this.options={locale:yl,...e},this.overrides=t}getDigitMap(){let{numerals:e=`latn`}=this.options,t=new Intl.NumberFormat(`en-US`,{numberingSystem:e}),n={};for(let e=0;e<10;e++)n[e.toString()]=t.format(e);return n}replaceDigits(e){let t=this.getDigitMap();return e.replace(/\d/g,e=>t[e]||e)}formatNumber(e){return this.replaceDigits(e.toString())}getMonthYearOrder(){let t=this.options.locale?.code;return t&&e.yearFirstLocales.has(t)?`year-first`:`month-first`}formatMonthYear(t){let{locale:n,timeZone:r,numerals:i}=this.options,a=n?.code;if(a&&e.yearFirstLocales.has(a))try{return new Intl.DateTimeFormat(a,{month:`long`,year:`numeric`,timeZone:r,numberingSystem:i}).format(t)}catch{}let o=this.getMonthYearOrder()===`year-first`?`y LLLL`:`LLLL y`;return this.format(t,o)}};bl.yearFirstLocales=new Set([`eu`,`hu`,`ja`,`ja-Hira`,`ja-JP`,`ko`,`ko-KR`,`lt`,`lt-LT`,`lv`,`lv-LV`,`mn`,`mn-MN`,`zh`,`zh-CN`,`zh-HK`,`zh-TW`]);var xl=new bl,Sl=class{constructor(e,t,n=xl){this.date=e,this.displayMonth=t,this.outside=!(!t||n.isSameMonth(e,t)),this.dateLib=n,this.isoDate=n.format(e,`yyyy-MM-dd`),this.displayMonthId=n.format(t,`yyyy-MM`),this.dateMonthId=n.format(e,`yyyy-MM`)}isEqualTo(e){return this.dateLib.isSameDay(e.date,this.date)&&this.dateLib.isSameMonth(e.displayMonth,this.displayMonth)}},Cl=class{constructor(e,t){this.date=e,this.weeks=t}},wl=class{constructor(e,t){this.days=t,this.weekNumber=e}};function Tl(e){return K.createElement(`span`,{...e})}function El(e){let{size:t=24,orientation:n=`left`,className:r,style:i}=e;return K.createElement(`svg`,{className:r,style:i,width:t,height:t,viewBox:`0 0 24 24`},n===`up`&&K.createElement(`polygon`,{points:`6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28`}),n===`down`&&K.createElement(`polygon`,{points:`6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72`}),n===`left`&&K.createElement(`polygon`,{points:`16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20`}),n===`right`&&K.createElement(`polygon`,{points:`8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20`}))}function Dl(e){let{day:t,modifiers:n,...r}=e;return K.createElement(`td`,{...r})}function Ol(e){let{day:t,modifiers:n,...r}=e,i=K.useRef(null);return K.useEffect(()=>{n.focused&&i.current?.focus()},[n.focused]),K.createElement(`button`,{ref:i,...r})}var Z;(function(e){e.Root=`root`,e.Chevron=`chevron`,e.Day=`day`,e.DayButton=`day_button`,e.CaptionLabel=`caption_label`,e.Dropdowns=`dropdowns`,e.Dropdown=`dropdown`,e.DropdownRoot=`dropdown_root`,e.Footer=`footer`,e.MonthGrid=`month_grid`,e.MonthCaption=`month_caption`,e.MonthsDropdown=`months_dropdown`,e.Month=`month`,e.Months=`months`,e.Nav=`nav`,e.NextMonthButton=`button_next`,e.PreviousMonthButton=`button_previous`,e.Week=`week`,e.Weeks=`weeks`,e.Weekday=`weekday`,e.Weekdays=`weekdays`,e.WeekNumber=`week_number`,e.WeekNumberHeader=`week_number_header`,e.YearsDropdown=`years_dropdown`})(Z||={});var kl;(function(e){e.disabled=`disabled`,e.hidden=`hidden`,e.outside=`outside`,e.focused=`focused`,e.today=`today`})(kl||={});var Al;(function(e){e.range_end=`range_end`,e.range_middle=`range_middle`,e.range_start=`range_start`,e.selected=`selected`})(Al||={});var jl;(function(e){e.weeks_before_enter=`weeks_before_enter`,e.weeks_before_exit=`weeks_before_exit`,e.weeks_after_enter=`weeks_after_enter`,e.weeks_after_exit=`weeks_after_exit`,e.caption_after_enter=`caption_after_enter`,e.caption_after_exit=`caption_after_exit`,e.caption_before_enter=`caption_before_enter`,e.caption_before_exit=`caption_before_exit`})(jl||={});var Ml=(0,K.createContext)(void 0);function Nl(){let e=(0,K.useContext)(Ml);if(e===void 0)throw Error(`useDayPicker() must be used within a custom component.`);return e}function Pl(e){let{options:t,className:n,...r}=e,{classNames:i,components:a,styles:o}=Nl(),s=[i[Z.Dropdown],n].join(` `),c=t?.find(({value:e})=>e===r.value);return K.createElement(`span`,{"data-disabled":r.disabled,className:i[Z.DropdownRoot],style:o?.[Z.DropdownRoot]},K.createElement(a.Select,{className:s,...r},t?.map(({value:e,label:t,disabled:n})=>K.createElement(a.Option,{key:e,value:e,disabled:n},t))),K.createElement(`span`,{className:i[Z.CaptionLabel],style:o?.[Z.CaptionLabel],"aria-hidden":!0},c?.label,K.createElement(a.Chevron,{orientation:`down`,size:18,className:i[Z.Chevron],style:o?.[Z.Chevron]})))}function Fl(e){return K.createElement(`div`,{...e})}function Il(e){return K.createElement(`div`,{...e})}function Ll(e){let{calendarMonth:t,displayIndex:n,...r}=e;return K.createElement(`div`,{...r},e.children)}function Rl(e){let{calendarMonth:t,displayIndex:n,...r}=e;return K.createElement(`div`,{...r})}function zl(e){return K.createElement(`table`,{...e})}function Bl(e){return K.createElement(`div`,{...e})}function Vl(e){let{components:t}=Nl();return K.createElement(t.Dropdown,{...e})}function Hl(e){let{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:i,...a}=e,{components:o,classNames:s,styles:c,labels:{labelPrevious:l,labelNext:u}}=Nl(),d=(0,K.useCallback)(e=>{i&&n?.(e)},[i,n]),f=(0,K.useCallback)(e=>{r&&t?.(e)},[r,t]);return K.createElement(`nav`,{...a},K.createElement(o.PreviousMonthButton,{type:`button`,className:s[Z.PreviousMonthButton],style:c?.[Z.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":!r||void 0,"aria-label":l(r),onClick:f},K.createElement(o.Chevron,{disabled:!r||void 0,className:s[Z.Chevron],style:c?.[Z.Chevron],orientation:`left`})),K.createElement(o.NextMonthButton,{type:`button`,className:s[Z.NextMonthButton],style:c?.[Z.NextMonthButton],tabIndex:i?void 0:-1,"aria-disabled":!i||void 0,"aria-label":u(i),onClick:d},K.createElement(o.Chevron,{disabled:!i||void 0,orientation:`right`,className:s[Z.Chevron],style:c?.[Z.Chevron]})))}function Ul(e){return K.createElement(`button`,{...e})}function Wl(e){return K.createElement(`option`,{...e})}function Gl(e){return K.createElement(`button`,{...e})}function Kl(e){let{rootRef:t,...n}=e;return K.createElement(`div`,{...n,ref:t})}function ql(e){return K.createElement(`select`,{...e})}function Jl(e){let{week:t,...n}=e;return K.createElement(`tr`,{...n})}function Yl(e){return K.createElement(`th`,{...e})}function Xl(e){return K.createElement(`thead`,{"aria-hidden":!0},K.createElement(`tr`,{...e}))}function Zl(e){let{week:t,...n}=e;return K.createElement(`th`,{...n})}function Ql(e){return K.createElement(`th`,{...e})}function $l(e){return K.createElement(`tbody`,{...e})}function eu(e){let{components:t}=Nl();return K.createElement(t.Dropdown,{...e})}var tu=t({CaptionLabel:()=>Tl,Chevron:()=>El,Day:()=>Dl,DayButton:()=>Ol,Dropdown:()=>Pl,DropdownNav:()=>Fl,Footer:()=>Il,Month:()=>Ll,MonthCaption:()=>Rl,MonthGrid:()=>zl,Months:()=>Bl,MonthsDropdown:()=>Vl,Nav:()=>Hl,NextMonthButton:()=>Ul,Option:()=>Wl,PreviousMonthButton:()=>Gl,Root:()=>Kl,Select:()=>ql,Week:()=>Jl,WeekNumber:()=>Zl,WeekNumberHeader:()=>Ql,Weekday:()=>Yl,Weekdays:()=>Xl,Weeks:()=>$l,YearsDropdown:()=>eu});function nu(e,t,n=!1,r=xl){let{from:i,to:a}=e,{differenceInCalendarDays:o,isSameDay:s}=r;return i&&a?(o(a,i)<0&&([i,a]=[a,i]),o(t,i)>=+!!n&&o(a,t)>=+!!n):!n&&a?s(a,t):!n&&i?s(i,t):!1}function ru(e){return!!(e&&typeof e==`object`&&`before`in e&&`after`in e)}function iu(e){return!!(e&&typeof e==`object`&&`from`in e)}function au(e){return!!(e&&typeof e==`object`&&`after`in e)}function ou(e){return!!(e&&typeof e==`object`&&`before`in e)}function su(e){return!!(e&&typeof e==`object`&&`dayOfWeek`in e)}function cu(e,t){return Array.isArray(e)&&e.every(t.isDate)}function lu(e,t,n=xl){let r=Array.isArray(t)?t:[t],{isSameDay:i,differenceInCalendarDays:a,isAfter:o}=n;return r.some(t=>{if(typeof t==`boolean`)return t;if(n.isDate(t))return i(e,t);if(cu(t,n))return t.some(t=>i(e,t));if(iu(t))return nu(t,e,!1,n);if(su(t))return Array.isArray(t.dayOfWeek)?t.dayOfWeek.includes(e.getDay()):t.dayOfWeek===e.getDay();if(ru(t)){let n=a(t.before,e),r=a(t.after,e),i=n>0,s=r<0;return o(t.before,t.after)?s&&i:i||s}return au(t)?a(e,t.after)>0:ou(t)?a(t.before,e)>0:typeof t==`function`&&t(e)})}function uu(e,t,n,r,i){let{disabled:a,hidden:o,modifiers:s,showOutsideDays:c,broadcastCalendar:l,today:u=i.today()}=t,{isSameDay:d,isSameMonth:f,startOfMonth:p,isBefore:m,endOfMonth:h,isAfter:g}=i,_=n&&p(n),v=r&&h(r),y={[kl.focused]:[],[kl.outside]:[],[kl.disabled]:[],[kl.hidden]:[],[kl.today]:[]},b={};for(let t of e){let{date:e,displayMonth:n}=t,r=!(!n||f(e,n)),p=!!(_&&m(e,_)),h=!!(v&&g(e,v)),x=!!(a&&lu(e,a,i)),S=!!(o&&lu(e,o,i))||p||h||!l&&!c&&r||l&&c===!1&&r,C=d(e,u);r&&y.outside.push(t),x&&y.disabled.push(t),S&&y.hidden.push(t),C&&y.today.push(t),s&&Object.keys(s).forEach(n=>{let r=s?.[n];r&&lu(e,r,i)&&(b[n]?b[n].push(t):b[n]=[t])})}return e=>{let t={[kl.focused]:!1,[kl.disabled]:!1,[kl.hidden]:!1,[kl.outside]:!1,[kl.today]:!1},n={};for(let n in y)t[n]=y[n].some(t=>t===e);for(let t in b)n[t]=b[t].some(t=>t===e);return{...t,...n}}}function du(e,t,n={}){return Object.entries(e).filter(([,e])=>e===!0).reduce((e,[r])=>(n[r]?e.push(n[r]):t[kl[r]]?e.push(t[kl[r]]):t[Al[r]]&&e.push(t[Al[r]]),e),[t[Z.Day]])}function fu(e){return{...tu,...e}}function pu(e){let t={"data-mode":e.mode??void 0,"data-required":`required`in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([e,n])=>{e.startsWith(`data-`)&&(t[e]=n)}),t}function mu(){let e={};for(let t in Z)e[Z[t]]=`rdp-${Z[t]}`;for(let t in kl)e[kl[t]]=`rdp-${kl[t]}`;for(let t in Al)e[Al[t]]=`rdp-${Al[t]}`;for(let t in jl)e[jl[t]]=`rdp-${jl[t]}`;return e}function hu(e,t,n){return(n??new bl(t)).formatMonthYear(e)}function gu(e,t,n){return(n??new bl(t)).format(e,`d`)}function _u(e,t=xl){return t.format(e,`LLLL`)}function vu(e,t,n){return(n??new bl(t)).format(e,`cccccc`)}function yu(e,t=xl){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function bu(){return``}function xu(e,t=xl){return t.format(e,`yyyy`)}var Su=t({formatCaption:()=>hu,formatDay:()=>gu,formatMonthDropdown:()=>_u,formatWeekNumber:()=>yu,formatWeekNumberHeader:()=>bu,formatWeekdayName:()=>vu,formatYearDropdown:()=>xu});function Cu(e){return{...Su,...e}}function wu(e,t,n,r){let i=(r??new bl(n)).format(e,`PPPP`);return t.today&&(i=`Today, ${i}`),t.selected&&(i=`${i}, selected`),i}function Tu(e,t,n){return(n??new bl(t)).formatMonthYear(e)}function Eu(e,t,n,r){let i=(r??new bl(n)).format(e,`PPPP`);return t?.today&&(i=`Today, ${i}`),i}function Du(e){return`Choose the Month`}function Ou(){return``}var ku=`Go to the Next Month`;function Au(e,t){return ku}function ju(e){return`Go to the Previous Month`}function Mu(e,t,n){return(n??new bl(t)).format(e,`cccc`)}function Nu(e,t){return`Week ${e}`}function Pu(e){return`Week Number`}function Fu(e){return`Choose the Year`}var Iu=t({labelDayButton:()=>wu,labelGrid:()=>Tu,labelGridcell:()=>Eu,labelMonthDropdown:()=>Du,labelNav:()=>Ou,labelNext:()=>Au,labelPrevious:()=>ju,labelWeekNumber:()=>Nu,labelWeekNumberHeader:()=>Pu,labelWeekday:()=>Mu,labelYearDropdown:()=>Fu}),Lu=(e,t,n)=>t||(n?typeof n==`function`?n:(...e)=>n:e);function Ru(e,t){let n=t.locale?.labels??{};return{...Iu,...e??{},labelDayButton:Lu(wu,e?.labelDayButton,n.labelDayButton),labelMonthDropdown:Lu(Du,e?.labelMonthDropdown,n.labelMonthDropdown),labelNext:Lu(Au,e?.labelNext,n.labelNext),labelPrevious:Lu(ju,e?.labelPrevious,n.labelPrevious),labelWeekNumber:Lu(Nu,e?.labelWeekNumber,n.labelWeekNumber),labelYearDropdown:Lu(Fu,e?.labelYearDropdown,n.labelYearDropdown),labelGrid:Lu(Tu,e?.labelGrid,n.labelGrid),labelGridcell:Lu(Eu,e?.labelGridcell,n.labelGridcell),labelNav:Lu(Ou,e?.labelNav,n.labelNav),labelWeekNumberHeader:Lu(Pu,e?.labelWeekNumberHeader,n.labelWeekNumberHeader),labelWeekday:Lu(Mu,e?.labelWeekday,n.labelWeekday)}}function zu(e,t,n,r,i){let{startOfMonth:a,startOfYear:o,endOfYear:s,eachMonthOfInterval:c,getMonth:l}=i;return c({start:o(e),end:s(e)}).map(e=>{let o=r.formatMonthDropdown(e,i);return{value:l(e),label:o,disabled:t&&e<a(t)||n&&e>a(n)||!1}})}function Bu(e,t={},n={}){let r={...t?.[Z.Day]};return Object.entries(e).filter(([,e])=>e===!0).forEach(([e])=>{r={...r,...n?.[e]}}),r}function Vu(e,t,n,r){let i=r??e.today(),a=n?e.startOfBroadcastWeek(i,e):t?e.startOfISOWeek(i):e.startOfWeek(i),o=[];for(let t=0;t<7;t++){let n=e.addDays(a,t);o.push(n)}return o}function Hu(e,t,n,r,i=!1){if(!e||!t)return;let{startOfYear:a,endOfYear:o,eachYearOfInterval:s,getYear:c}=r,l=s({start:a(e),end:o(t)});return i&&l.reverse(),l.map(e=>{let t=n.formatYearDropdown(e,r);return{value:c(e),label:t,disabled:!1}})}function Uu(e,t={}){let{weekStartsOn:n,locale:r}=t,i=n??r?.options?.weekStartsOn??0,a=t=>{let n=typeof t==`number`||typeof t==`string`?new Date(t):t;return new Ns(n.getFullYear(),n.getMonth(),n.getDate(),12,0,0,e)},o=e=>{let t=a(e);return new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0)};return{today:()=>a(Ns.tz(e)),newDate:(t,n,r)=>new Ns(t,n,r,12,0,0,e),startOfDay:e=>a(e),startOfWeek:(e,t)=>{let n=a(e),r=t?.weekStartsOn??i,o=(n.getDay()-r+7)%7;return n.setDate(n.getDate()-o),n},startOfISOWeek:e=>{let t=a(e),n=(t.getDay()-1+7)%7;return t.setDate(t.getDate()-n),t},startOfMonth:e=>{let t=a(e);return t.setDate(1),t},startOfYear:e=>{let t=a(e);return t.setMonth(0,1),t},endOfWeek:(e,t)=>{let n=a(e),r=(((t?.weekStartsOn??i)+6)%7-n.getDay()+7)%7;return n.setDate(n.getDate()+r),n},endOfISOWeek:e=>{let t=a(e),n=(7-t.getDay())%7;return t.setDate(t.getDate()+n),t},endOfMonth:e=>{let t=a(e);return t.setMonth(t.getMonth()+1,0),t},endOfYear:e=>{let t=a(e);return t.setMonth(11,31),t},eachMonthOfInterval:t=>{let n=a(t.start),r=a(t.end),i=[],o=new Ns(n.getFullYear(),n.getMonth(),1,12,0,0,e),s=r.getFullYear()*12+r.getMonth();for(;o.getFullYear()*12+o.getMonth()<=s;)i.push(new Ns(o,e)),o.setMonth(o.getMonth()+1,1);return i},addDays:(e,t)=>{let n=a(e);return n.setDate(n.getDate()+t),n},addWeeks:(e,t)=>{let n=a(e);return n.setDate(n.getDate()+t*7),n},addMonths:(e,t)=>{let n=a(e);return n.setMonth(n.getMonth()+t),n},addYears:(e,t)=>{let n=a(e);return n.setFullYear(n.getFullYear()+t),n},eachYearOfInterval:t=>{let n=a(t.start),r=a(t.end),i=[],o=new Ns(n.getFullYear(),0,1,12,0,0,e);for(;o.getFullYear()<=r.getFullYear();)i.push(new Ns(o,e)),o.setFullYear(o.getFullYear()+1,0,1);return i},getWeek:(e,t)=>Pc(o(e),{weekStartsOn:t?.weekStartsOn??i,firstWeekContainsDate:t?.firstWeekContainsDate??r?.options?.firstWeekContainsDate??1}),getISOWeek:e=>jc(o(e)),differenceInCalendarDays:(e,t)=>Zs(o(e),o(t)),differenceInCalendarMonths:(e,t)=>oc(o(e),o(t))}}var Wu=e=>e instanceof HTMLElement?e:null,Gu=e=>[...e.querySelectorAll(`[data-animated-month]`)??[]],Ku=e=>Wu(e.querySelector(`[data-animated-month]`)),qu=e=>Wu(e.querySelector(`[data-animated-caption]`)),Ju=e=>Wu(e.querySelector(`[data-animated-weeks]`)),Yu=e=>Wu(e.querySelector(`[data-animated-nav]`)),Xu=e=>Wu(e.querySelector(`[data-animated-weekdays]`));function Zu(e,t,{classNames:n,months:r,focused:i,dateLib:a}){let o=(0,K.useRef)(null),s=(0,K.useRef)(r),c=(0,K.useRef)(!1);(0,K.useLayoutEffect)(()=>{let l=s.current;if(s.current=r,!t||!e.current||!(e.current instanceof HTMLElement)||r.length===0||l.length===0||r.length!==l.length)return;let u=a.isSameMonth(r[0].date,l[0].date),d=a.isAfter(r[0].date,l[0].date),f=d?n[jl.caption_after_enter]:n[jl.caption_before_enter],p=d?n[jl.weeks_after_enter]:n[jl.weeks_before_enter],m=o.current,h=e.current.cloneNode(!0);if(h instanceof HTMLElement?(Gu(h).forEach(e=>{if(!(e instanceof HTMLElement))return;let t=Ku(e);t&&e.contains(t)&&e.removeChild(t);let n=qu(e);n&&n.classList.remove(f);let r=Ju(e);r&&r.classList.remove(p)}),o.current=h):o.current=null,c.current||u||i)return;let g=m instanceof HTMLElement?Gu(m):[],_=Gu(e.current);if(_?.every(e=>e instanceof HTMLElement)&&g?.every(e=>e instanceof HTMLElement)){c.current=!0;let t=[];e.current.style.isolation=`isolate`;let r=Yu(e.current);r&&(r.style.zIndex=`1`),_.forEach((i,a)=>{let o=g[a];if(!o)return;i.style.position=`relative`,i.style.overflow=`hidden`;let s=qu(i);s&&s.classList.add(f);let l=Ju(i);l&&l.classList.add(p);let u=()=>{c.current=!1,e.current&&(e.current.style.isolation=``),r&&(r.style.zIndex=``),s&&s.classList.remove(f),l&&l.classList.remove(p),i.style.position=``,i.style.overflow=``,i.contains(o)&&i.removeChild(o)};t.push(u),o.style.pointerEvents=`none`,o.style.position=`absolute`,o.style.overflow=`hidden`,o.setAttribute(`aria-hidden`,`true`);let m=Xu(o);m&&(m.style.opacity=`0`);let h=qu(o);h&&(h.classList.add(d?n[jl.caption_before_exit]:n[jl.caption_after_exit]),h.addEventListener(`animationend`,u));let _=Ju(o);_&&_.classList.add(d?n[jl.weeks_before_exit]:n[jl.weeks_after_exit]),i.insertBefore(o,i.firstChild)})}})}function Qu(e,t,n,r){let i=e[0],a=e[e.length-1],{ISOWeek:o,fixedWeeks:s,broadcastCalendar:c}=n??{},{addDays:l,differenceInCalendarDays:u,differenceInCalendarMonths:d,endOfBroadcastWeek:f,endOfISOWeek:p,endOfMonth:m,endOfWeek:h,isAfter:g,startOfBroadcastWeek:_,startOfISOWeek:v,startOfWeek:y}=r,b=c?_(i,r):o?v(i):y(i),x=c?f(a):o?p(m(a)):h(m(a)),S=t&&(c?f(t):o?p(t):h(t)),C=u(S&&g(x,S)?S:x,b),w=d(a,i)+1,T=[];for(let e=0;e<=C;e++){let t=l(b,e);T.push(t)}let E=(c?35:42)*w;if(s&&T.length<E){let e=E-T.length;for(let t=0;t<e;t++){let e=l(T[T.length-1],1);T.push(e)}}return T}function $u(e){let t=[];return e.reduce((e,n)=>{let r=n.weeks.reduce((e,t)=>e.concat(t.days.slice()),t.slice());return e.concat(r.slice())},t.slice())}function ed(e,t,n,r){let{numberOfMonths:i=1}=n,a=[];for(let n=0;n<i;n++){let i=r.addMonths(e,n);if(t&&i>t)break;a.push(i)}return a}function td(e,t,n,r){let{month:i,defaultMonth:a,today:o=r.today(),numberOfMonths:s=1}=e,c=i||a||o,{differenceInCalendarMonths:l,addMonths:u,startOfMonth:d}=r;return n&&l(n,c)<s-1&&(c=u(n,-1*(s-1))),t&&l(c,t)<0&&(c=t),d(c)}function nd(e,t,n,r){let{addDays:i,endOfBroadcastWeek:a,endOfISOWeek:o,endOfMonth:s,endOfWeek:c,getISOWeek:l,getWeek:u,startOfBroadcastWeek:d,startOfISOWeek:f,startOfWeek:p}=r,m=e.reduce((e,m)=>{let h=n.broadcastCalendar?d(m,r):n.ISOWeek?f(m):p(m),g=n.broadcastCalendar?a(m):n.ISOWeek?o(s(m)):c(s(m)),_=t.filter(e=>e>=h&&e<=g),v=n.broadcastCalendar?35:42;if(n.fixedWeeks&&_.length<v){let e=t.filter(e=>{let t=v-_.length;return e>g&&e<=i(g,t)});_.push(...e)}let y=new Cl(m,_.reduce((e,t)=>{let i=n.ISOWeek?l(t):u(t),a=e.find(e=>e.weekNumber===i),o=new Sl(t,m,r);return a?a.days.push(o):e.push(new wl(i,[o])),e},[]));return e.push(y),e},[]);return n.reverseMonths?m.reverse():m}function rd(e,t){let{startMonth:n,endMonth:r}=e,{startOfYear:i,startOfDay:a,startOfMonth:o,endOfMonth:s,addYears:c,endOfYear:l,today:u}=t,d=e.captionLayout===`dropdown`||e.captionLayout===`dropdown-years`;return n?n=o(n):!n&&d&&(n=i(c(e.today??u(),-100))),r?r=s(r):!r&&d&&(r=l(e.today??u())),[n&&a(n),r&&a(r)]}function id(e,t,n,r){if(n.disableNavigation)return;let{pagedNavigation:i,numberOfMonths:a=1}=n,{startOfMonth:o,addMonths:s,differenceInCalendarMonths:c}=r,l=i?a:1,u=o(e);if(!t||!(c(t,e)<a))return s(u,l)}function ad(e,t,n,r){if(n.disableNavigation)return;let{pagedNavigation:i,numberOfMonths:a}=n,{startOfMonth:o,addMonths:s,differenceInCalendarMonths:c}=r,l=i?a??1:1,u=o(e);if(!t||!(c(u,t)<=0))return s(u,-l)}function od(e){return e.reduce((e,t)=>e.concat(t.weeks.slice()),[].slice())}function sd(e,t){let[n,r]=(0,K.useState)(e);return[t===void 0?n:t,r]}function cd(e,t){let[n,r]=rd(e,t),{startOfMonth:i,endOfMonth:a}=t,o=td(e,n,r,t),[s,c]=sd(o,e.month?o:void 0);(0,K.useEffect)(()=>{let i=td(e,n,r,t);c(i)},[e.timeZone]);let{months:l,weeks:u,days:d,previousMonth:f,nextMonth:p}=(0,K.useMemo)(()=>{let i=ed(s,r,{numberOfMonths:e.numberOfMonths},t),o=nd(i,Qu(i,e.endMonth?a(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},t),{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},t);return{months:o,weeks:od(o),days:$u(o),previousMonth:ad(s,n,e,t),nextMonth:id(s,r,e,t)}},[t,s.getTime(),r?.getTime(),n?.getTime(),e.disableNavigation,e.broadcastCalendar,e.endMonth?.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:m,onMonthChange:h}=e,g=e=>u.some(t=>t.days.some(t=>t.isEqualTo(e))),_=e=>{if(m)return;let t=i(e);n&&t<i(n)&&(t=i(n)),r&&t>i(r)&&(t=i(r)),c(t),h?.(t)};return{months:l,weeks:u,days:d,navStart:n,navEnd:r,previousMonth:f,nextMonth:p,goToMonth:_,goToDay:e=>{g(e)||_(e.date)}}}var ld;(function(e){e[e.Today=0]=`Today`,e[e.Selected=1]=`Selected`,e[e.LastFocused=2]=`LastFocused`,e[e.FocusedModifier=3]=`FocusedModifier`})(ld||={});function ud(e){return!e[kl.disabled]&&!e[kl.hidden]&&!e[kl.outside]}function dd(e,t,n,r){let i,a=-1;for(let o of e){let e=t(o);ud(e)&&(e[kl.focused]&&a<ld.FocusedModifier?(i=o,a=ld.FocusedModifier):r?.isEqualTo(o)&&a<ld.LastFocused?(i=o,a=ld.LastFocused):n(o.date)&&a<ld.Selected?(i=o,a=ld.Selected):e[kl.today]&&a<ld.Today&&(i=o,a=ld.Today))}return i||=e.find(e=>ud(t(e))),i}function fd(e,t,n,r,i,a,o){let{ISOWeek:s,broadcastCalendar:c}=a,{addDays:l,addMonths:u,addWeeks:d,addYears:f,endOfBroadcastWeek:p,endOfISOWeek:m,endOfWeek:h,max:g,min:_,startOfBroadcastWeek:v,startOfISOWeek:y,startOfWeek:b}=o,x={day:l,week:d,month:u,year:f,startOfWeek:e=>c?v(e,o):s?y(e):b(e),endOfWeek:e=>c?p(e):s?m(e):h(e)}[e](n,t===`after`?1:-1);return t===`before`&&r?x=g([r,x]):t===`after`&&i&&(x=_([i,x])),x}function pd(e,t,n,r,i,a,o,s=0){if(s>365)return;let c=fd(e,t,n.date,r,i,a,o),l=!!(a.disabled&&lu(c,a.disabled,o)),u=!!(a.hidden&&lu(c,a.hidden,o)),d=new Sl(c,c,o);return!l&&!u?d:pd(e,t,d,r,i,a,o,s+1)}function md(e,t,n,r,i){let{autoFocus:a}=e,[o,s]=(0,K.useState)(),c=dd(t.days,n,r||(()=>!1),o),[l,u]=(0,K.useState)(a?c:void 0);return{isFocusTarget:e=>!!c?.isEqualTo(e),setFocused:u,focused:l,blur:()=>{s(l),u(void 0)},moveFocus:(n,r)=>{if(!l)return;let a=pd(n,r,l,t.navStart,t.navEnd,e,i);a&&(!e.disableNavigation||t.days.some(e=>e.isEqualTo(a)))&&(t.goToDay(a),u(a))}}}function hd(e,t){let{selected:n,required:r,onSelect:i}=e,[a,o]=sd(n,i?n:void 0),s=i?n:a,{isSameDay:c}=t,l=e=>s?.some(t=>c(t,e))??!1,{min:u,max:d}=e;return{selected:s,select:(e,t,n)=>{let a=[...s??[]];if(l(e)){if(s?.length===u||r&&s?.length===1)return;a=s?.filter(t=>!c(t,e))}else a=s?.length===d?[e]:[...a,e];return i||o(a),i?.(a,e,t,n),a},isSelected:l}}function gd(e,t,n=0,r=0,i=!1,a=xl){let{from:o,to:s}=t||{},{isSameDay:c,isAfter:l,isBefore:u}=a,d;if(!o&&!s)d={from:e,to:n>0?void 0:e};else if(o&&!s)d=c(o,e)?n===0?{from:o,to:e}:i?{from:o,to:void 0}:void 0:u(e,o)?{from:e,to:o}:{from:o,to:e};else if(o&&s){if(c(o,e)&&c(s,e))d=i?{from:o,to:s}:void 0;else if(c(o,e))d={from:o,to:n>0?void 0:e};else if(c(s,e))d={from:e,to:n>0?void 0:e};else if(u(e,o))d={from:e,to:s};else if(l(e,o))d={from:o,to:e};else if(l(e,s))d={from:o,to:e};else throw Error(`Invalid range`)}if(d?.from&&d?.to){let t=a.differenceInCalendarDays(d.to,d.from);(r>0&&t>r||n>1&&t<n)&&(d={from:e,to:void 0})}return d}function _d(e,t,n=xl){let r=Array.isArray(t)?t:[t],i=e.from,a=n.differenceInCalendarDays(e.to,e.from),o=Math.min(a,6);for(let e=0;e<=o;e++){if(r.includes(i.getDay()))return!0;i=n.addDays(i,1)}return!1}function vd(e,t,n=xl){return nu(e,t.from,!1,n)||nu(e,t.to,!1,n)||nu(t,e.from,!1,n)||nu(t,e.to,!1,n)}function yd(e,t,n=xl){let r=Array.isArray(t)?t:[t];if(r.filter(e=>typeof e!=`function`).some(t=>typeof t==`boolean`?t:n.isDate(t)?nu(e,t,!1,n):cu(t,n)?t.some(t=>nu(e,t,!1,n)):iu(t)?t.from&&t.to?vd(e,{from:t.from,to:t.to},n):!1:su(t)?_d(e,t.dayOfWeek,n):ru(t)?n.isAfter(t.before,t.after)?vd(e,{from:n.addDays(t.after,1),to:n.addDays(t.before,-1)},n):lu(e.from,t,n)||lu(e.to,t,n):au(t)||ou(t)?lu(e.from,t,n)||lu(e.to,t,n):!1))return!0;let i=r.filter(e=>typeof e==`function`);if(i.length){let t=e.from,r=n.differenceInCalendarDays(e.to,e.from);for(let e=0;e<=r;e++){if(i.some(e=>e(t)))return!0;t=n.addDays(t,1)}}return!1}function bd(e,t){let{disabled:n,excludeDisabled:r,resetOnSelect:i,selected:a,required:o,onSelect:s}=e,[c,l]=sd(a,s?a:void 0),u=s?a:c;return{selected:u,select:(a,c,d)=>{let{min:f,max:p}=e,m;if(a){let e=u?.from,n=u?.to,r=!!e&&!!n,s=!!e&&!!n&&t.isSameDay(e,n)&&t.isSameDay(a,e);m=i&&(r||!u?.from)?!o&&s?void 0:{from:a,to:void 0}:gd(a,u,f,p,o,t)}return r&&n&&m?.from&&m.to&&yd({from:m.from,to:m.to},n,t)&&(m.from=a,m.to=void 0),s||l(m),s?.(m,a,c,d),m},isSelected:e=>u&&nu(u,e,!1,t)}}function xd(e,t){let{selected:n,required:r,onSelect:i}=e,[a,o]=sd(n,i?n:void 0),s=i?n:a,{isSameDay:c}=t;return{selected:s,select:(e,t,n)=>{let a=e;return!r&&s&&s&&c(e,s)&&(a=void 0),i||o(a),i?.(a,e,t,n),a},isSelected:e=>s?c(s,e):!1}}function Sd(e,t){let n=xd(e,t),r=hd(e,t),i=bd(e,t);switch(e.mode){case`single`:return n;case`multiple`:return r;case`range`:return i;default:return}}function Cd(e,t){return e instanceof Ns&&e.timeZone===t?e:new Ns(e,t)}function wd(e,t,n){if(!n)return Cd(e,t);let r=Cd(e,t),i=new Ns(r.getFullYear(),r.getMonth(),r.getDate(),12,0,0,t);return new Date(i.getTime())}function Td(e,t,n){return typeof e==`boolean`||typeof e==`function`?e:e instanceof Date?wd(e,t,n):Array.isArray(e)?e.map(e=>e instanceof Date?wd(e,t,n):e):iu(e)?{...e,from:e.from?Cd(e.from,t):e.from,to:e.to?Cd(e.to,t):e.to}:ru(e)?{before:wd(e.before,t,n),after:wd(e.after,t,n)}:au(e)?{after:wd(e.after,t,n)}:ou(e)?{before:wd(e.before,t,n)}:e}function Ed(e,t,n){return e&&(Array.isArray(e)?e.map(e=>Td(e,t,n)):Td(e,t,n))}function Dd(e){let t=e,n=t.timeZone;if(n&&(t={...e,timeZone:n},t.today&&(t.today=Cd(t.today,n)),t.month&&(t.month=Cd(t.month,n)),t.defaultMonth&&(t.defaultMonth=Cd(t.defaultMonth,n)),t.startMonth&&(t.startMonth=Cd(t.startMonth,n)),t.endMonth&&(t.endMonth=Cd(t.endMonth,n)),t.mode===`single`&&t.selected?t.selected=Cd(t.selected,n):t.mode===`multiple`&&t.selected?t.selected=t.selected?.map(e=>Cd(e,n)):t.mode===`range`&&t.selected&&(t.selected={from:t.selected.from?Cd(t.selected.from,n):t.selected.from,to:t.selected.to?Cd(t.selected.to,n):t.selected.to}),t.disabled!==void 0&&(t.disabled=Ed(t.disabled,n)),t.hidden!==void 0&&(t.hidden=Ed(t.hidden,n)),t.modifiers)){let e={};Object.keys(t.modifiers).forEach(r=>{e[r]=Ed(t.modifiers?.[r],n)}),t.modifiers=e}let{components:r,formatters:i,labels:a,dateLib:o,locale:s,classNames:c}=(0,K.useMemo)(()=>{let e={...yl,...t.locale},n=t.broadcastCalendar?1:t.weekStartsOn,r=t.noonSafe&&t.timeZone?Uu(t.timeZone,{weekStartsOn:n,locale:e}):void 0,i=t.dateLib&&r?{...r,...t.dateLib}:t.dateLib??r,a=new bl({locale:e,weekStartsOn:n,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},i);return{dateLib:a,components:fu(t.components),formatters:Cu(t.formatters),labels:Ru(t.labels,a.options),locale:e,classNames:{...mu(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.noonSafe,t.components,t.formatters,t.labels,t.classNames]);t.today||(t={...t,today:o.today()});let{captionLayout:l,mode:u,navLayout:d,numberOfMonths:f=1,onDayBlur:p,onDayClick:m,onDayFocus:h,onDayKeyDown:g,onDayMouseEnter:_,onDayMouseLeave:v,onNextClick:y,onPrevClick:b,showWeekNumber:x,styles:S}=t,{formatCaption:C,formatDay:w,formatMonthDropdown:T,formatWeekNumber:E,formatWeekNumberHeader:D,formatWeekdayName:O,formatYearDropdown:k}=i,A=cd(t,o),{days:j,months:M,navStart:N,navEnd:P,previousMonth:F,nextMonth:I,goToMonth:L}=A,ee=uu(j,t,N,P,o),{isSelected:R,select:te,selected:z}=Sd(t,o)??{},{blur:B,focused:ne,isFocusTarget:re,moveFocus:V,setFocused:ie}=md(t,A,ee,R??(()=>!1),o),{labelDayButton:ae,labelGridcell:H,labelGrid:oe,labelMonthDropdown:U,labelNav:se,labelPrevious:W,labelNext:G,labelWeekday:ce,labelWeekNumber:le,labelWeekNumberHeader:ue,labelYearDropdown:de}=a,fe=(0,K.useMemo)(()=>Vu(o,t.ISOWeek,t.broadcastCalendar,t.today),[o,t.ISOWeek,t.broadcastCalendar,t.today]),pe=u!==void 0||m!==void 0,me=(0,K.useCallback)(()=>{F&&(L(F),b?.(F))},[F,L,b]),he=(0,K.useCallback)(()=>{I&&(L(I),y?.(I))},[L,I,y]),ge=(0,K.useCallback)((e,t)=>n=>{n.preventDefault(),n.stopPropagation(),ie(e),!t.disabled&&(te?.(e.date,t,n),m?.(e.date,t,n))},[te,m,ie]),_e=(0,K.useCallback)((e,t)=>n=>{ie(e),h?.(e.date,t,n)},[h,ie]),ve=(0,K.useCallback)((e,t)=>n=>{B(),p?.(e.date,t,n)},[B,p]),ye=(0,K.useCallback)((e,n)=>r=>{let i={ArrowLeft:[r.shiftKey?`month`:`day`,t.dir===`rtl`?`after`:`before`],ArrowRight:[r.shiftKey?`month`:`day`,t.dir===`rtl`?`before`:`after`],ArrowDown:[r.shiftKey?`year`:`week`,`after`],ArrowUp:[r.shiftKey?`year`:`week`,`before`],PageUp:[r.shiftKey?`year`:`month`,`before`],PageDown:[r.shiftKey?`year`:`month`,`after`],Home:[`startOfWeek`,`before`],End:[`endOfWeek`,`after`]};if(i[r.key]){r.preventDefault(),r.stopPropagation();let[e,t]=i[r.key];V(e,t)}g?.(e.date,n,r)},[V,g,t.dir]),be=(0,K.useCallback)((e,t)=>n=>{_?.(e.date,t,n)},[_]),xe=(0,K.useCallback)((e,t)=>n=>{v?.(e.date,t,n)},[v]),Se=(0,K.useCallback)((e,t)=>n=>{let r=Number(n.target.value),i=o.setMonth(o.startOfMonth(e),r);L(o.addMonths(i,-t))},[o,L]),Ce=(0,K.useCallback)((e,t)=>n=>{let r=Number(n.target.value),i=o.setYear(o.startOfMonth(e),r);L(o.addMonths(i,-t))},[o,L]),{className:we,style:Te}=(0,K.useMemo)(()=>({className:[c[Z.Root],t.className].filter(Boolean).join(` `),style:{...S?.[Z.Root],...t.style}}),[c,t.className,t.style,S]),Ee=pu(t),De=e=>{let t=S?.[Z.Dropdown],n=S?.[e];if(t||n)return{...t,...n}},Oe=(0,K.useRef)(null);Zu(Oe,!!t.animate,{classNames:c,months:M,focused:ne,dateLib:o});let ke={dayPickerProps:t,selected:z,select:te,isSelected:R,months:M,nextMonth:I,previousMonth:F,goToMonth:L,getModifiers:ee,components:r,classNames:c,styles:S,labels:a,formatters:i};return K.createElement(Ml.Provider,{value:ke},K.createElement(r.Root,{rootRef:t.animate?Oe:void 0,className:we,style:Te,dir:t.dir,id:t.id,lang:t.lang??s.code,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t[`aria-label`],"aria-labelledby":t[`aria-labelledby`],...Ee},K.createElement(r.Months,{className:c[Z.Months],style:S?.[Z.Months]},!t.hideNavigation&&!d&&K.createElement(r.Nav,{"data-animated-nav":t.animate?`true`:void 0,className:c[Z.Nav],style:S?.[Z.Nav],"aria-label":se(),onPreviousClick:me,onNextClick:he,previousMonth:F,nextMonth:I}),M.map((e,n)=>{let a=t.reverseMonths?M.length-1-n:n;return K.createElement(r.Month,{"data-animated-month":t.animate?`true`:void 0,className:c[Z.Month],style:S?.[Z.Month],key:n,displayIndex:n,calendarMonth:e},d===`around`&&!t.hideNavigation&&n===0&&K.createElement(r.PreviousMonthButton,{type:`button`,className:c[Z.PreviousMonthButton],style:S?.[Z.PreviousMonthButton],tabIndex:F?void 0:-1,"aria-disabled":!F||void 0,"aria-label":W(F),onClick:me,"data-animated-button":t.animate?`true`:void 0},K.createElement(r.Chevron,{disabled:!F||void 0,className:c[Z.Chevron],style:S?.[Z.Chevron],orientation:t.dir===`rtl`?`right`:`left`})),K.createElement(r.MonthCaption,{"data-animated-caption":t.animate?`true`:void 0,className:c[Z.MonthCaption],style:S?.[Z.MonthCaption],calendarMonth:e,displayIndex:n},l?.startsWith(`dropdown`)?K.createElement(r.DropdownNav,{className:c[Z.Dropdowns],style:S?.[Z.Dropdowns]},(()=>{let n=l===`dropdown`||l===`dropdown-months`?K.createElement(r.MonthsDropdown,{key:`month`,className:c[Z.MonthsDropdown],"aria-label":U(),disabled:!!t.disableNavigation,onChange:Se(e.date,a),options:zu(e.date,N,P,i,o),style:De(Z.MonthsDropdown),value:o.getMonth(e.date)}):K.createElement(`span`,{key:`month`},T(e.date,o)),s=l===`dropdown`||l===`dropdown-years`?K.createElement(r.YearsDropdown,{key:`year`,className:c[Z.YearsDropdown],"aria-label":de(o.options),disabled:!!t.disableNavigation,onChange:Ce(e.date,a),options:Hu(N,P,i,o,!!t.reverseYears),style:De(Z.YearsDropdown),value:o.getYear(e.date)}):K.createElement(`span`,{key:`year`},k(e.date,o));return o.getMonthYearOrder()===`year-first`?[s,n]:[n,s]})(),K.createElement(`span`,{role:`status`,"aria-live":`polite`,style:{border:0,clip:`rect(0 0 0 0)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:0,position:`absolute`,width:`1px`,whiteSpace:`nowrap`,wordWrap:`normal`}},C(e.date,o.options,o))):K.createElement(r.CaptionLabel,{className:c[Z.CaptionLabel],style:S?.[Z.CaptionLabel],role:`status`,"aria-live":`polite`},C(e.date,o.options,o))),d===`around`&&!t.hideNavigation&&n===f-1&&K.createElement(r.NextMonthButton,{type:`button`,className:c[Z.NextMonthButton],style:S?.[Z.NextMonthButton],tabIndex:I?void 0:-1,"aria-disabled":!I||void 0,"aria-label":G(I),onClick:he,"data-animated-button":t.animate?`true`:void 0},K.createElement(r.Chevron,{disabled:!I||void 0,className:c[Z.Chevron],style:S?.[Z.Chevron],orientation:t.dir===`rtl`?`left`:`right`})),n===f-1&&d===`after`&&!t.hideNavigation&&K.createElement(r.Nav,{"data-animated-nav":t.animate?`true`:void 0,className:c[Z.Nav],style:S?.[Z.Nav],"aria-label":se(),onPreviousClick:me,onNextClick:he,previousMonth:F,nextMonth:I}),K.createElement(r.MonthGrid,{role:`grid`,"aria-multiselectable":u===`multiple`||u===`range`,"aria-label":oe(e.date,o.options,o)||void 0,className:c[Z.MonthGrid],style:S?.[Z.MonthGrid]},!t.hideWeekdays&&K.createElement(r.Weekdays,{"data-animated-weekdays":t.animate?`true`:void 0,className:c[Z.Weekdays],style:S?.[Z.Weekdays]},x&&K.createElement(r.WeekNumberHeader,{"aria-label":ue(o.options),className:c[Z.WeekNumberHeader],style:S?.[Z.WeekNumberHeader],scope:`col`},D()),fe.map(e=>K.createElement(r.Weekday,{"aria-label":ce(e,o.options,o),className:c[Z.Weekday],key:String(e),style:S?.[Z.Weekday],scope:`col`},O(e,o.options,o)))),K.createElement(r.Weeks,{"data-animated-weeks":t.animate?`true`:void 0,className:c[Z.Weeks],style:S?.[Z.Weeks]},e.weeks.map(e=>K.createElement(r.Week,{className:c[Z.Week],key:e.weekNumber,style:S?.[Z.Week],week:e},x&&K.createElement(r.WeekNumber,{week:e,style:S?.[Z.WeekNumber],"aria-label":le(e.weekNumber,{locale:s}),className:c[Z.WeekNumber],scope:`row`,role:`rowheader`},E(e.weekNumber,o)),e.days.map(e=>{let{date:n}=e,i=ee(e);if(i[kl.focused]=!i.hidden&&!!ne?.isEqualTo(e),i[Al.selected]=R?.(n)||i.selected,iu(z)){let{from:e,to:t}=z;i[Al.range_start]=!!(e&&t&&o.isSameDay(n,e)),i[Al.range_end]=!!(e&&t&&o.isSameDay(n,t)),i[Al.range_middle]=nu(z,n,!0,o)}let a=Bu(i,S,t.modifiersStyles),s=du(i,c,t.modifiersClassNames),l=!pe&&!i.hidden?H(n,i,o.options,o):void 0;return K.createElement(r.Day,{key:`${e.isoDate}_${e.displayMonthId}`,day:e,modifiers:i,className:s.join(` `),style:a,role:`gridcell`,"aria-selected":i.selected||void 0,"aria-label":l,"data-day":e.isoDate,"data-month":e.outside?e.dateMonthId:void 0,"data-selected":i.selected||void 0,"data-disabled":i.disabled||void 0,"data-hidden":i.hidden||void 0,"data-outside":e.outside||void 0,"data-focused":i.focused||void 0,"data-today":i.today||void 0},!i.hidden&&pe?K.createElement(r.DayButton,{className:c[Z.DayButton],style:S?.[Z.DayButton],type:`button`,day:e,modifiers:i,disabled:!i.focused&&i.disabled||void 0,"aria-disabled":i.focused&&i.disabled||void 0,tabIndex:re(e)?0:-1,"aria-label":ae(n,i,o.options,o),onClick:ge(e,i),onBlur:ve(e,i),onFocus:_e(e,i),onKeyDown:ye(e,i),onMouseEnter:be(e,i),onMouseLeave:xe(e,i)},w(n,o.options,o)):!i.hidden&&w(e.date,o.options,o))}))))))})),t.footer&&K.createElement(r.Footer,{className:c[Z.Footer],style:S?.[Z.Footer],role:`status`,"aria-live":`polite`},t.footer)))}var Od=`en-US`,kd=Object.freeze({af:()=>n(()=>import(`./af-BfSmLD34.js`).then(e=>e.af),[],import.meta.url),ar:()=>n(()=>import(`./ar-B9ttrM75.js`).then(e=>e.ar),[],import.meta.url),"ar-DZ":()=>n(()=>import(`./ar-DZ-C1rn-cyl.js`).then(e=>e.arDZ),[],import.meta.url),"ar-EG":()=>n(()=>import(`./ar-EG-BaDxKP_o.js`).then(e=>e.arEG),[],import.meta.url),"ar-MA":()=>n(()=>import(`./ar-MA-DbxNEcmd.js`).then(e=>e.arMA),[],import.meta.url),"ar-SA":()=>n(()=>import(`./ar-SA-DeC5LXcX.js`).then(e=>e.arSA),[],import.meta.url),"ar-TN":()=>n(()=>import(`./ar-TN-C9KpTFJz.js`).then(e=>e.arTN),[],import.meta.url),az:()=>n(()=>import(`./az-cMerDwRO.js`).then(e=>e.az),[],import.meta.url),be:()=>n(()=>import(`./be-ZTSbszQh.js`).then(e=>e.be),[],import.meta.url),"be-tarask":()=>n(()=>import(`./be-tarask-BXZEUrgX.js`).then(e=>e.beTarask),[],import.meta.url),bg:()=>n(()=>import(`./bg-BDogpmn5.js`).then(e=>e.bg),[],import.meta.url),bn:()=>n(()=>import(`./bn-Cz04uxmh.js`).then(e=>e.bn),[],import.meta.url),bs:()=>n(()=>import(`./bs-CpFnCl-j.js`).then(e=>e.bs),[],import.meta.url),ca:()=>n(()=>import(`./ca-CHC4M52Z.js`).then(e=>e.ca),[],import.meta.url),ckb:()=>n(()=>import(`./ckb-Dxw-RNm8.js`).then(e=>e.ckb),[],import.meta.url),cs:()=>n(()=>import(`./cs-DsFaJ5Z7.js`).then(e=>e.cs),[],import.meta.url),cy:()=>n(()=>import(`./cy-FH4JFDTs.js`).then(e=>e.cy),[],import.meta.url),da:()=>n(()=>import(`./da-D1pVjaAq.js`).then(e=>e.da),[],import.meta.url),de:()=>n(()=>import(`./de-DKrxSvnP.js`).then(e=>e.de),[],import.meta.url),"de-AT":()=>n(()=>import(`./de-AT-DUMQCisj.js`).then(e=>e.deAT),[],import.meta.url),el:()=>n(()=>import(`./el-l3-bHySV.js`).then(e=>e.el),[],import.meta.url),"en-AU":()=>n(()=>import(`./en-AU-C6x7mDhH.js`).then(e=>e.enAU),[],import.meta.url),"en-CA":()=>n(()=>import(`./en-CA-DGH5NF0a.js`).then(e=>e.enCA),[],import.meta.url),"en-GB":()=>n(()=>import(`./en-GB-0-nho2eK.js`).then(e=>e.enGB),[],import.meta.url),"en-IE":()=>n(()=>import(`./en-IE-2fC3BkfV.js`).then(e=>e.enIE),[],import.meta.url),"en-IN":()=>n(()=>import(`./en-IN-C1QcFhxn.js`).then(e=>e.enIN),[],import.meta.url),"en-NZ":()=>n(()=>import(`./en-NZ-C80ptZT7.js`).then(e=>e.enNZ),[],import.meta.url),"en-ZA":()=>n(()=>import(`./en-ZA-ByZDrjeb.js`).then(e=>e.enZA),[],import.meta.url),eo:()=>n(()=>import(`./eo-CL6CXHZx.js`).then(e=>e.eo),[],import.meta.url),es:()=>n(()=>import(`./es-BIJ0rksI.js`).then(e=>e.es),[],import.meta.url),et:()=>n(()=>import(`./et-BGgMzjm1.js`).then(e=>e.et),[],import.meta.url),eu:()=>n(()=>import(`./eu-CqvAoRrX.js`).then(e=>e.eu),[],import.meta.url),"fa-IR":()=>n(()=>import(`./fa-IR-DNz3oA1-.js`).then(e=>e.faIR),[],import.meta.url),fi:()=>n(()=>import(`./fi-DNSfKWuW.js`).then(e=>e.fi),[],import.meta.url),fr:()=>n(()=>import(`./fr-DYRJCirJ.js`).then(e=>e.fr),[],import.meta.url),"fr-CA":()=>n(()=>import(`./fr-CA-CotiswPx.js`).then(e=>e.frCA),[],import.meta.url),"fr-CH":()=>n(()=>import(`./fr-CH-CpiEYWpc.js`).then(e=>e.frCH),[],import.meta.url),fy:()=>n(()=>import(`./fy-B69yM3FE.js`).then(e=>e.fy),[],import.meta.url),gd:()=>n(()=>import(`./gd-BAy8AsX6.js`).then(e=>e.gd),[],import.meta.url),gl:()=>n(()=>import(`./gl-soLn_weL.js`).then(e=>e.gl),[],import.meta.url),gu:()=>n(()=>import(`./gu-B19Yo9yC.js`).then(e=>e.gu),[],import.meta.url),he:()=>n(()=>import(`./he-DYTPo33p.js`).then(e=>e.he),[],import.meta.url),hi:()=>n(()=>import(`./hi-D2dIK7Oy.js`).then(e=>e.hi),[],import.meta.url),hr:()=>n(()=>import(`./hr-BV-VOPMu.js`).then(e=>e.hr),[],import.meta.url),ht:()=>n(()=>import(`./ht-C7MM4qkS.js`).then(e=>e.ht),[],import.meta.url),hu:()=>n(()=>import(`./hu-Rha1m2Ym.js`).then(e=>e.hu),[],import.meta.url),hy:()=>n(()=>import(`./hy-CiTNgbdV.js`).then(e=>e.hy),[],import.meta.url),id:()=>n(()=>import(`./id-Cijsfjt-.js`).then(e=>e.id),[],import.meta.url),is:()=>n(()=>import(`./is-xS1WTyeC.js`).then(e=>e.is),[],import.meta.url),it:()=>n(()=>import(`./it-C2i_c9sd.js`).then(e=>e.it),[],import.meta.url),"it-CH":()=>n(()=>import(`./it-CH-l516ZNXj.js`).then(e=>e.itCH),[],import.meta.url),ja:()=>n(()=>import(`./ja-D9_ewLny.js`).then(e=>e.ja),[],import.meta.url),"ja-Hira":()=>n(()=>import(`./ja-Hira-D_6ExgHw.js`).then(e=>e.jaHira),[],import.meta.url),ka:()=>n(()=>import(`./ka-BYHGyees.js`).then(e=>e.ka),[],import.meta.url),kk:()=>n(()=>import(`./kk-CbTFtuqb.js`).then(e=>e.kk),[],import.meta.url),km:()=>n(()=>import(`./km-Dr2gwhIn.js`).then(e=>e.km),[],import.meta.url),kn:()=>n(()=>import(`./kn-CprH8JD7.js`).then(e=>e.kn),[],import.meta.url),ko:()=>n(()=>import(`./ko-CsFS2u5i.js`).then(e=>e.ko),[],import.meta.url),lb:()=>n(()=>import(`./lb-CbFKN7Ob.js`).then(e=>e.lb),[],import.meta.url),lt:()=>n(()=>import(`./lt-Bq0xkLp0.js`).then(e=>e.lt),[],import.meta.url),lv:()=>n(()=>import(`./lv-Cj6vg6Qo.js`).then(e=>e.lv),[],import.meta.url),mk:()=>n(()=>import(`./mk-MXFM99YL.js`).then(e=>e.mk),[],import.meta.url),mn:()=>n(()=>import(`./mn-D5Q9B6Jt.js`).then(e=>e.mn),[],import.meta.url),ms:()=>n(()=>import(`./ms-CCzPRldx.js`).then(e=>e.ms),[],import.meta.url),mt:()=>n(()=>import(`./mt-mjJpN6xW.js`).then(e=>e.mt),[],import.meta.url),nb:()=>n(()=>import(`./nb-BIlNqdEb.js`).then(e=>e.nb),[],import.meta.url),nl:()=>n(()=>import(`./nl-D2uBtIxG.js`).then(e=>e.nl),[],import.meta.url),"nl-BE":()=>n(()=>import(`./nl-BE-FwXjQsmV.js`).then(e=>e.nlBE),[],import.meta.url),nn:()=>n(()=>import(`./nn-B0loJ7SV.js`).then(e=>e.nn),[],import.meta.url),oc:()=>n(()=>import(`./oc-U7-yH1sO.js`).then(e=>e.oc),[],import.meta.url),pl:()=>n(()=>import(`./pl-mTy0JYgi.js`).then(e=>e.pl),[],import.meta.url),pt:()=>n(()=>import(`./pt-Bet5OOQf.js`).then(e=>e.pt),[],import.meta.url),"pt-BR":()=>n(()=>import(`./pt-BR-2KtO5Js1.js`).then(e=>e.ptBR),[],import.meta.url),ro:()=>n(()=>import(`./ro-37U6sgzi.js`).then(e=>e.ro),[],import.meta.url),ru:()=>n(()=>import(`./ru-CyuAY-5E.js`).then(e=>e.ru),[],import.meta.url),se:()=>n(()=>import(`./se-DeJabuC6.js`).then(e=>e.se),[],import.meta.url),sk:()=>n(()=>import(`./sk-DWEpjfkR.js`).then(e=>e.sk),[],import.meta.url),sl:()=>n(()=>import(`./sl-4oSvNhIR.js`).then(e=>e.sl),[],import.meta.url),sq:()=>n(()=>import(`./sq-BjkBCaXW.js`).then(e=>e.sq),[],import.meta.url),sr:()=>n(()=>import(`./sr-Dxm1DsRS.js`).then(e=>e.sr),[],import.meta.url),"sr-Latn":()=>n(()=>import(`./sr-Latn-Dawg6oP2.js`).then(e=>e.srLatn),[],import.meta.url),sv:()=>n(()=>import(`./sv-CROOGJGz.js`).then(e=>e.sv),[],import.meta.url),ta:()=>n(()=>import(`./ta-BZnTmFI_.js`).then(e=>e.ta),[],import.meta.url),te:()=>n(()=>import(`./te-BN0v0x5t.js`).then(e=>e.te),[],import.meta.url),th:()=>n(()=>import(`./th-CBjKhp_U.js`).then(e=>e.th),[],import.meta.url),tr:()=>n(()=>import(`./tr-x0Ne4N4H.js`).then(e=>e.tr),[],import.meta.url),ug:()=>n(()=>import(`./ug-sgzNhsKo.js`).then(e=>e.ug),[],import.meta.url),uk:()=>n(()=>import(`./uk-o_DQ5VHJ.js`).then(e=>e.uk),[],import.meta.url),uz:()=>n(()=>import(`./uz-Be41d4jl.js`).then(e=>e.uz),[],import.meta.url),"uz-Cyrl":()=>n(()=>import(`./uz-Cyrl-DbtkQtz_.js`).then(e=>e.uzCyrl),[],import.meta.url),vi:()=>n(()=>import(`./vi-84mZmklk.js`).then(e=>e.vi),[],import.meta.url),"zh-CN":()=>n(()=>import(`./zh-CN-DD1reegJ.js`).then(e=>e.zhCN),[],import.meta.url),"zh-HK":()=>n(()=>import(`./zh-HK-B05u30WI.js`).then(e=>e.zhHK),[],import.meta.url),"zh-TW":()=>n(()=>import(`./zh-TW-Bb-WimPD.js`).then(e=>e.zhTW),[],import.meta.url)});Object.freeze([Od,...Object.keys(kd)]);var Ad=new Map([[Od,kc]]),jd=new Map,Md=new Map;function Nd(e){return e===Od||Object.prototype.hasOwnProperty.call(kd,e)}function Pd(e){let t=Md.get(e);if(t!==void 0)return t;let n=Od;try{let t=new Intl.Locale(e),{language:r,script:i,region:a}=t.maximize();n=[t.baseName,a?`${r}-${a}`:void 0,i?`${r}-${i}`:void 0,r].find(e=>!!e&&Nd(e))??Od}catch{}return Md.set(e,n),n}function Fd(e){let t=Ad.get(e);if(t)return Promise.resolve(t);let n=jd.get(e);if(n)return n;let r=Object.prototype.hasOwnProperty.call(kd,e)?kd[e]:void 0;if(!r)return Promise.resolve(kc);let i=r().then(t=>(Ad.set(e,t),t)).finally(()=>{jd.delete(e)});return jd.set(e,i),i}function Id(e){let t=St(),n=Pd(e??t),[,r]=K.useReducer(e=>e+1,0),i=Ad.get(n);return K.useEffect(()=>{if(Ad.has(n))return;let e=!0;return Fd(n).then(()=>{e&&r()},()=>{}),()=>{e=!1}},[n]),i??kc}function Ld({className:e,classNames:t,showOutsideDays:n=!0,captionLayout:r=`label`,buttonVariant:i=`ghost`,formatters:a,components:o,localeTag:s,...c}){let l=mu(),u=Id(s);return(0,q.jsx)(Dd,{locale:u,showOutsideDays:n,className:J(`bg-background group/calendar p-3 [--cell-size:2rem] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent`,String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),captionLayout:r,formatters:{formatMonthDropdown:e=>e.toLocaleString(`default`,{month:`short`}),...a},classNames:{root:J(`w-fit`,l.root),months:J(`relative flex flex-col gap-4 md:flex-row`,l.months),month:J(`flex w-full flex-col gap-4`,l.month),nav:J(`absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1`,l.nav),button_previous:J(Go({variant:i}),`h-(--cell-size) w-(--cell-size) select-none p-0 aria-disabled:opacity-50`,l.button_previous),button_next:J(Go({variant:i}),`h-(--cell-size) w-(--cell-size) select-none p-0 aria-disabled:opacity-50`,l.button_next),month_caption:J(`flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)`,l.month_caption),dropdowns:J(`flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium`,l.dropdowns),dropdown_root:J(`has-focus:border-ring border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] relative rounded-md border`,l.dropdown_root),dropdown:J(`bg-popover absolute inset-0 opacity-0`,l.dropdown),caption_label:J(`select-none font-medium`,r===`label`?`text-sm`:`[&>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md pl-2 pr-1 text-sm [&>svg]:size-3.5`,l.caption_label),weekdays:J(`flex`,l.weekdays),weekday:J(`text-muted-foreground flex-1 select-none rounded-md text-[0.8rem] font-normal`,l.weekday),week:J(`mt-2 flex w-full`,l.week),week_number_header:J(`w-(--cell-size) select-none`,l.week_number_header),week_number:J(`text-muted-foreground select-none text-[0.8rem]`,l.week_number),day:J(`group/day relative aspect-square h-full w-full select-none p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md`,l.day),range_start:J(`bg-accent rounded-l-md`,l.range_start),range_middle:J(`rounded-none`,l.range_middle),range_end:J(`bg-accent rounded-r-md`,l.range_end),today:J(`bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none`,l.today),outside:J(`text-muted-foreground aria-selected:text-muted-foreground`,l.outside),disabled:J(`text-muted-foreground opacity-50`,l.disabled),hidden:J(`invisible`,l.hidden),...t},components:{Root:({className:e,rootRef:t,...n})=>(0,q.jsx)(`div`,{"data-slot":`calendar`,ref:t,className:J(e),...n}),Chevron:({className:e,orientation:t,...n})=>t===`left`?(0,q.jsx)(mi,{className:J(`size-4`,e),...n}):t===`right`?(0,q.jsx)(hi,{className:J(`size-4`,e),...n}):(0,q.jsx)(pi,{className:J(`size-4`,e),...n}),DayButton:Rd,WeekNumber:({children:e,...t})=>(0,q.jsx)(`td`,{...t,children:(0,q.jsx)(`div`,{className:`flex size-(--cell-size) items-center justify-center text-center`,children:e})}),...o},...c})}function Rd({className:e,day:t,modifiers:n,...r}){let i=mu(),a=K.useRef(null);return K.useEffect(()=>{n.focused&&a.current?.focus()},[n.focused]),(0,q.jsx)(X,{ref:a,variant:`ghost`,size:`icon`,"data-day":t.date.toLocaleDateString(),"data-selected-single":n.selected&&!n.range_start&&!n.range_end&&!n.range_middle,"data-range-start":n.range_start,"data-range-end":n.range_end,"data-range-middle":n.range_middle,className:J(`data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 flex aspect-square h-auto w-full min-w-(--cell-size) flex-col gap-1 font-normal leading-none data-[range-end=true]:rounded-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] [&>span]:text-xs [&>span]:opacity-70`,i.day,e),...r})}var zd=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`div`,{ref:n,className:J(`rounded-lg border bg-card text-card-foreground shadow-sm`,e),...t}));zd.displayName=`Card`;var Bd=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`div`,{ref:n,className:J(`flex flex-col space-y-1.5 p-6`,e),...t}));Bd.displayName=`CardHeader`;var Vd=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`div`,{ref:n,className:J(`text-2xl font-semibold leading-none tracking-tight`,e),...t}));Vd.displayName=`CardTitle`;var Hd=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`div`,{ref:n,className:J(`text-sm text-muted-foreground`,e),...t}));Hd.displayName=`CardDescription`;var Ud=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`div`,{ref:n,className:J(`p-6 pt-0`,e),...t}));Ud.displayName=`CardContent`;var Wd=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`div`,{ref:n,className:J(`flex items-center p-6 pt-0`,e),...t}));Wd.displayName=`CardFooter`;function Gd(e){return Object.prototype.toString.call(e)===`[object Object]`}function Kd(e){return Gd(e)||Array.isArray(e)}function qd(){return!!(typeof window<`u`&&window.document&&window.document.createElement)}function Jd(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||JSON.stringify(Object.keys(e.breakpoints||{}))!==JSON.stringify(Object.keys(t.breakpoints||{}))?!1:n.every(n=>{let r=e[n],i=t[n];return typeof r==`function`?`${r}`==`${i}`:!Kd(r)||!Kd(i)?r===i:Jd(r,i)})}function Yd(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function Xd(e,t){if(e.length!==t.length)return!1;let n=Yd(e),r=Yd(t);return n.every((e,t)=>{let n=r[t];return Jd(e,n)})}function Zd(e){return typeof e==`number`}function Qd(e){return typeof e==`string`}function $d(e){return typeof e==`boolean`}function ef(e){return Object.prototype.toString.call(e)===`[object Object]`}function tf(e){return Math.abs(e)}function nf(e){return Math.sign(e)}function rf(e,t){return tf(e-t)}function af(e,t){return e===0||t===0||tf(e)<=tf(t)?0:tf(rf(tf(e),tf(t))/e)}function of(e){return Math.round(e*100)/100}function sf(e){return ff(e).map(Number)}function cf(e){return e[lf(e)]}function lf(e){return Math.max(0,e.length-1)}function uf(e,t){return t===lf(e)}function df(e,t=0){return Array.from(Array(e),(e,n)=>t+n)}function ff(e){return Object.keys(e)}function pf(e,t){return[e,t].reduce((e,t)=>(ff(t).forEach(n=>{let r=e[n],i=t[n];e[n]=ef(r)&&ef(i)?pf(r,i):i}),e),{})}function mf(e,t){return t.MouseEvent!==void 0&&e instanceof t.MouseEvent}function hf(e,t){let n={start:r,center:i,end:a};function r(){return 0}function i(e){return a(e)/2}function a(e){return t-e}function o(r,i){return Qd(e)?n[e](r):e(t,r,i)}return{measure:o}}function gf(){let e=[];function t(t,n,i,a={passive:!0}){let o;if(`addEventListener`in t)t.addEventListener(n,i,a),o=()=>t.removeEventListener(n,i,a);else{let e=t;e.addListener(i),o=()=>e.removeListener(i)}return e.push(o),r}function n(){e=e.filter(e=>e())}let r={add:t,clear:n};return r}function _f(e,t,n,r){let i=gf(),a=1e3/60,o=null,s=0,c=0;function l(){i.add(e,`visibilitychange`,()=>{e.hidden&&m()})}function u(){p(),i.clear()}function d(e){if(!c)return;o||(o=e,n(),n());let i=e-o;for(o=e,s+=i;s>=a;)n(),s-=a;r(s/a),c&&=t.requestAnimationFrame(d)}function f(){c||=t.requestAnimationFrame(d)}function p(){t.cancelAnimationFrame(c),o=null,s=0,c=0}function m(){o=null,s=0}return{init:l,destroy:u,start:f,stop:p,update:n,render:r}}function vf(e,t){let n=t===`rtl`,r=e===`y`,i=r?`y`:`x`,a=r?`x`:`y`,o=!r&&n?-1:1,s=u(),c=d();function l(e){let{height:t,width:n}=e;return r?t:n}function u(){return r?`top`:n?`right`:`left`}function d(){return r?`bottom`:n?`left`:`right`}function f(e){return e*o}return{scroll:i,cross:a,startEdge:s,endEdge:c,measureSize:l,direction:f}}function yf(e=0,t=0){let n=tf(e-t);function r(t){return t<e}function i(e){return e>t}function a(e){return r(e)||i(e)}function o(n){return a(n)?r(n)?e:t:n}function s(e){return n?e-n*Math.ceil((e-t)/n):e}return{length:n,max:t,min:e,constrain:o,reachedAny:a,reachedMax:i,reachedMin:r,removeOffset:s}}function bf(e,t,n){let{constrain:r}=yf(0,e),i=e+1,a=o(t);function o(e){return n?tf((i+e)%i):r(e)}function s(){return a}function c(e){return a=o(e),d}function l(e){return u().set(s()+e)}function u(){return bf(e,s(),n)}let d={get:s,set:c,add:l,clone:u};return d}function xf(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v){let{cross:y,direction:b}=e,x=[`INPUT`,`SELECT`,`TEXTAREA`],S={passive:!1},C=gf(),w=gf(),T=yf(50,225).constrain(p.measure(20)),E={mouse:300,touch:400},D={mouse:500,touch:600},O=m?43:25,k=!1,A=0,j=0,M=!1,N=!1,P=!1,F=!1;function I(e){if(!v)return;function n(t){($d(v)||v(e,t))&&B(t)}let r=t;C.add(r,`dragstart`,e=>e.preventDefault(),S).add(r,`touchmove`,()=>void 0,S).add(r,`touchend`,()=>void 0).add(r,`touchstart`,n).add(r,`mousedown`,n).add(r,`touchcancel`,re).add(r,`contextmenu`,re).add(r,`click`,V,!0)}function L(){C.clear(),w.clear()}function ee(){let e=F?n:t;w.add(e,`touchmove`,ne,S).add(e,`touchend`,re).add(e,`mousemove`,ne,S).add(e,`mouseup`,re)}function R(e){let t=e.nodeName||``;return x.includes(t)}function te(){return(m?D:E)[F?`mouse`:`touch`]}function z(e,t){let n=d.add(nf(e)*-1),r=u.byDistance(e,!m).distance;return m||tf(e)<T?r:g&&t?r*.5:u.byIndex(n.get(),0).distance}function B(e){let t=mf(e,r);F=t,P=m&&t&&!e.buttons&&k,k=rf(i.get(),o.get())>=2,!(t&&e.button!==0)&&(R(e.target)||(M=!0,a.pointerDown(e),l.useFriction(0).useDuration(0),i.set(o),ee(),A=a.readPoint(e),j=a.readPoint(e,y),f.emit(`pointerDown`)))}function ne(e){if(!mf(e,r)&&e.touches.length>=2)return re(e);let t=a.readPoint(e),n=a.readPoint(e,y),o=rf(t,A),c=rf(n,j);if(!N&&!F&&(!e.cancelable||(N=o>c,!N)))return re(e);let u=a.pointerMove(e);o>h&&(P=!0),l.useFriction(.3).useDuration(.75),s.start(),i.add(b(u)),e.preventDefault()}function re(e){let t=u.byDistance(0,!1).index!==d.get(),n=a.pointerUp(e)*te(),r=z(b(n),t),i=af(n,r),o=O-10*i,s=_+i/50;N=!1,M=!1,w.clear(),l.useDuration(o).useFriction(s),c.distance(r,!m),F=!1,f.emit(`pointerUp`)}function V(e){P&&=(e.stopPropagation(),e.preventDefault(),!1)}function ie(){return M}return{init:I,destroy:L,pointerDown:ie}}function Sf(e,t){let n,r;function i(e){return e.timeStamp}function a(n,r){let i=`client${(r||e.scroll)===`x`?`X`:`Y`}`;return(mf(n,t)?n:n.touches[0])[i]}function o(e){return n=e,r=e,a(e)}function s(e){let t=a(e)-a(r),o=i(e)-i(n)>170;return r=e,o&&(n=e),t}function c(e){if(!n||!r)return 0;let t=a(r)-a(n),o=i(e)-i(n),s=i(e)-i(r)>170,c=t/o;return o&&!s&&tf(c)>.1?c:0}return{pointerDown:o,pointerMove:s,pointerUp:c,readPoint:a}}function Cf(){function e(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:i}=e;return{top:t,right:n+r,bottom:t+i,left:n,width:r,height:i}}return{measure:e}}function wf(e){function t(t){return t/100*e}return{measure:t}}function Tf(e,t,n,r,i,a,o){let s=[e].concat(r),c,l,u=[],d=!1;function f(e){return i.measureSize(o.measure(e))}function p(i){if(!a)return;l=f(e),u=r.map(f);function o(n){for(let a of n){if(d)return;let n=a.target===e,o=r.indexOf(a.target),s=n?l:u[o];if(tf(f(n?e:r[o])-s)>=.5){i.reInit(),t.emit(`resize`);break}}}c=new ResizeObserver(e=>{($d(a)||a(i,e))&&o(e)}),n.requestAnimationFrame(()=>{s.forEach(e=>c.observe(e))})}function m(){d=!0,c&&c.disconnect()}return{init:p,destroy:m}}function Ef(e,t,n,r,i,a){let o=0,s=0,c=i,l=a,u=e.get(),d=0;function f(){let t=r.get()-e.get(),i=!c,a=0;return i?(o=0,n.set(r),e.set(r),a=t):(n.set(e),o+=t/c,o*=l,u+=o,e.add(o),a=u-d),s=nf(a),d=u,x}function p(){return tf(r.get()-t.get())<.001}function m(){return c}function h(){return s}function g(){return o}function _(){return y(i)}function v(){return b(a)}function y(e){return c=e,x}function b(e){return l=e,x}let x={direction:h,duration:m,velocity:g,seek:f,settled:p,useBaseFriction:v,useBaseDuration:_,useFriction:b,useDuration:y};return x}function Df(e,t,n,r,i){let a=i.measure(10),o=i.measure(50),s=yf(.1,.99),c=!1;function l(){return!(c||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u(i){if(!l())return;let c=tf(e[e.reachedMin(t.get())?`min`:`max`]-t.get()),u=n.get()-t.get(),d=s.constrain(c/o);n.subtract(u*d),!i&&tf(u)<a&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function d(e){c=!e}return{shouldConstrain:l,constrain:u,toggleActive:d}}function Of(e,t,n,r,i){let a=yf(-t+e,0),o=d(),s=u(),c=f();function l(e,t){return rf(e,t)<=1}function u(){let e=o[0],t=cf(o);return yf(o.lastIndexOf(e),o.indexOf(t)+1)}function d(){return n.map((e,t)=>{let{min:r,max:i}=a,o=a.constrain(e),s=!t,c=uf(n,t);return s?i:c||l(r,o)?r:l(i,o)?i:o}).map(e=>parseFloat(e.toFixed(3)))}function f(){if(t<=e+i)return[a.max];if(r===`keepSnaps`)return o;let{min:n,max:c}=s;return o.slice(n,c)}return{snapsContained:c,scrollContainLimit:s}}function kf(e,t,n){let r=t[0];return{limit:yf(n?r-e:cf(t),r)}}function Af(e,t,n,r){let i=.1,{reachedMin:a,reachedMax:o}=yf(t.min+i,t.max+i);function s(e){return e===1?o(n.get()):e===-1&&a(n.get())}function c(t){if(!s(t))return;let n=t*-1*e;r.forEach(e=>e.add(n))}return{loop:c}}function jf(e){let{max:t,length:n}=e;function r(e){let r=e-t;return n?r/-n:0}return{get:r}}function Mf(e,t,n,r,i){let{startEdge:a,endEdge:o}=e,{groupSlides:s}=i,c=d().map(t.measure),l=f(),u=p();function d(){return s(r).map(e=>cf(e)[o]-e[0][a]).map(tf)}function f(){return r.map(e=>n[a]-e[a]).map(e=>-tf(e))}function p(){return s(l).map(e=>e[0]).map((e,t)=>e+c[t])}return{snaps:l,snapsAligned:u}}function Nf(e,t,n,r,i,a){let{groupSlides:o}=i,{min:s,max:c}=r,l=u();function u(){let r=o(a),i=!e||t===`keepSnaps`;return n.length===1?[a]:i?r:r.slice(s,c).map((e,t,n)=>{let r=!t,i=uf(n,t);return r?df(cf(n[0])+1):i?df(lf(a)-cf(n)[0]+1,cf(n)[0]):e})}return{slideRegistry:l}}function Pf(e,t,n,r,i){let{reachedAny:a,removeOffset:o,constrain:s}=r;function c(e){return e.concat().sort((e,t)=>tf(e)-tf(t))[0]}function l(n){let r=e?o(n):s(n),{index:i}=t.map((e,t)=>({diff:u(e-r,0),index:t})).sort((e,t)=>tf(e.diff)-tf(t.diff))[0];return{index:i,distance:r}}function u(t,r){let i=[t,t+n,t-n];if(!e)return t;if(!r)return c(i);let a=i.filter(e=>nf(e)===r);return a.length?c(a):cf(i)-n}function d(e,n){return{index:e,distance:u(t[e]-i.get(),n)}}function f(n,r){let o=i.get()+n,{index:s,distance:c}=l(o),d=!e&&a(o);return!r||d?{index:s,distance:n}:{index:s,distance:n+u(t[s]-c,0)}}return{byDistance:f,byIndex:d,shortcut:u}}function Ff(e,t,n,r,i,a,o){function s(i){let s=i.distance,c=i.index!==t.get();a.add(s),s&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),c&&(n.set(t.get()),t.set(i.index),o.emit(`select`))}function c(e,t){s(i.byDistance(e,t))}function l(e,n){let r=t.clone().set(e);s(i.byIndex(r.get(),n))}return{distance:c,index:l}}function If(e,t,n,r,i,a,o,s){let c={passive:!0,capture:!0},l=0;function u(u){if(!s)return;function f(t){if(new Date().getTime()-l>10)return;o.emit(`slideFocusStart`),e.scrollLeft=0;let a=n.findIndex(e=>e.includes(t));Zd(a)&&(i.useDuration(0),r.index(a,0),o.emit(`slideFocus`))}a.add(document,`keydown`,d,!1),t.forEach((e,t)=>{a.add(e,`focus`,e=>{($d(s)||s(u,e))&&f(t)},c)})}function d(e){e.code===`Tab`&&(l=new Date().getTime())}return{init:u}}function Lf(e){let t=e;function n(){return t}function r(e){t=o(e)}function i(e){t+=o(e)}function a(e){t-=o(e)}function o(e){return Zd(e)?e:e.get()}return{get:n,set:r,add:i,subtract:a}}function Rf(e,t){let n=e.scroll===`x`?o:s,r=t.style,i=null,a=!1;function o(e){return`translate3d(${e}px,0px,0px)`}function s(e){return`translate3d(0px,${e}px,0px)`}function c(t){if(a)return;let o=of(e.direction(t));o!==i&&(r.transform=n(o),i=o)}function l(e){a=!e}function u(){a||(r.transform=``,t.getAttribute(`style`)||t.removeAttribute(`style`))}return{clear:u,to:c,toggleActive:l}}function zf(e,t,n,r,i,a,o,s,c){let l=.5,u=sf(i),d=sf(i).reverse(),f=_().concat(v());function p(e,t){return e.reduce((e,t)=>e-i[t],t)}function m(e,t){return e.reduce((e,n)=>p(e,t)>0?e.concat([n]):e,[])}function h(e){return a.map((n,i)=>({start:n-r[i]+l+e,end:n+t-l+e}))}function g(t,r,i){let a=h(r);return t.map(t=>{let r=i?0:-n,o=i?n:0,l=i?`end`:`start`,u=a[t][l];return{index:t,loopPoint:u,slideLocation:Lf(-1),translate:Rf(e,c[t]),target:()=>s.get()>u?r:o}})}function _(){let e=o[0];return g(m(d,e),n,!1)}function v(){let e=t-o[0]-1;return g(m(u,e),-n,!0)}function y(){return f.every(({index:e})=>p(u.filter(t=>t!==e),t)<=.1)}function b(){f.forEach(e=>{let{target:t,translate:n,slideLocation:r}=e,i=t();i!==r.get()&&(n.to(i),r.set(i))})}function x(){f.forEach(e=>e.translate.clear())}return{canLoop:y,clear:x,loop:b,loopPoints:f}}function Bf(e,t,n){let r,i=!1;function a(a){if(!n)return;function o(e){for(let n of e)if(n.type===`childList`){a.reInit(),t.emit(`slidesChanged`);break}}r=new MutationObserver(e=>{i||($d(n)||n(a,e))&&o(e)}),r.observe(e,{childList:!0})}function o(){r&&r.disconnect(),i=!0}return{init:a,destroy:o}}function Vf(e,t,n,r){let i={},a=null,o=null,s,c=!1;function l(){s=new IntersectionObserver(e=>{c||(e.forEach(e=>{let n=t.indexOf(e.target);i[n]=e}),a=null,o=null,n.emit(`slidesInView`))},{root:e.parentElement,threshold:r}),t.forEach(e=>s.observe(e))}function u(){s&&s.disconnect(),c=!0}function d(e){return ff(i).reduce((t,n)=>{let r=parseInt(n),{isIntersecting:a}=i[r];return(e&&a||!e&&!a)&&t.push(r),t},[])}function f(e=!0){if(e&&a)return a;if(!e&&o)return o;let t=d(e);return e&&(a=t),e||(o=t),t}return{init:l,destroy:u,get:f}}function Hf(e,t,n,r,i,a){let{measureSize:o,startEdge:s,endEdge:c}=e,l=n[0]&&i,u=m(),d=h(),f=n.map(o),p=g();function m(){if(!l)return 0;let e=n[0];return tf(t[s]-e[s])}function h(){if(!l)return 0;let e=a.getComputedStyle(cf(r));return parseFloat(e.getPropertyValue(`margin-${c}`))}function g(){return n.map((e,t,n)=>{let r=!t,i=uf(n,t);return r?f[t]+u:i?f[t]+d:n[t+1][s]-e[s]}).map(tf)}return{slideSizes:f,slideSizesWithGaps:p,startGap:u,endGap:d}}function Uf(e,t,n,r,i,a,o,s,c){let{startEdge:l,endEdge:u,direction:d}=e,f=Zd(n);function p(e,t){return sf(e).filter(e=>e%t===0).map(n=>e.slice(n,n+t))}function m(e){return e.length?sf(e).reduce((n,f,p)=>{let m=cf(n)||0,h=m===0,g=f===lf(e),_=i[l]-a[m][l],v=i[l]-a[f][u],y=!r&&h?d(o):0,b=tf(v-(!r&&g?d(s):0)-(_+y));return p&&b>t+c&&n.push(f),g&&n.push(e.length),n},[]).map((t,n,r)=>{let i=Math.max(r[n-1]||0);return e.slice(i,t)}):[]}function h(e){return f?p(e,n):m(e)}return{groupSlides:h}}function Wf(e,t,n,r,i,a,o){let{align:s,axis:c,direction:l,startIndex:u,loop:d,duration:f,dragFree:p,dragThreshold:m,inViewThreshold:h,slidesToScroll:g,skipSnaps:_,containScroll:v,watchResize:y,watchSlides:b,watchDrag:x,watchFocus:S}=a,C=Cf(),w=C.measure(t),T=n.map(C.measure),E=vf(c,l),D=E.measureSize(w),O=wf(D),k=hf(s,D),A=!d&&!!v,{slideSizes:j,slideSizesWithGaps:M,startGap:N,endGap:P}=Hf(E,w,T,n,d||!!v,i),F=Uf(E,D,g,d,w,T,N,P,2),{snaps:I,snapsAligned:L}=Mf(E,k,w,T,F),ee=-cf(I)+cf(M),{snapsContained:R,scrollContainLimit:te}=Of(D,ee,L,v,2),z=A?R:L,{limit:B}=kf(ee,z,d),ne=bf(lf(z),u,d),re=ne.clone(),V=sf(n),ie=({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}})=>{r||n.constrain(e.pointerDown()),t.seek()},ae=({scrollBody:e,translate:t,location:n,offsetLocation:r,previousLocation:i,scrollLooper:a,slideLooper:o,dragHandler:s,animation:c,eventHandler:l,scrollBounds:u,options:{loop:d}},f)=>{let p=e.settled(),m=!u.shouldConstrain(),h=d?p:p&&m,g=h&&!s.pointerDown();g&&c.stop();let _=n.get()*f+i.get()*(1-f);r.set(_),d&&(a.loop(e.direction()),o.loop()),t.to(r.get()),g&&l.emit(`settle`),h||l.emit(`scroll`)},H=_f(r,i,()=>ie(_e),e=>ae(_e,e)),oe=.68,U=z[ne.get()],se=Lf(U),W=Lf(U),G=Lf(U),ce=Lf(U),le=Ef(se,G,W,ce,f,oe),ue=Pf(d,z,ee,B,ce),de=Ff(H,ne,re,le,ue,ce,o),fe=jf(B),pe=gf(),me=Vf(t,n,o,h),{slideRegistry:he}=Nf(A,v,z,te,F,V),ge=If(e,n,he,de,le,pe,o,S),_e={ownerDocument:r,ownerWindow:i,eventHandler:o,containerRect:w,slideRects:T,animation:H,axis:E,dragHandler:xf(E,e,r,i,ce,Sf(E,i),se,H,de,le,ue,ne,o,O,p,m,_,oe,x),eventStore:pe,percentOfView:O,index:ne,indexPrevious:re,limit:B,location:se,offsetLocation:G,previousLocation:W,options:a,resizeHandler:Tf(t,o,i,n,E,y,C),scrollBody:le,scrollBounds:Df(B,G,ce,le,O),scrollLooper:Af(ee,B,G,[se,G,W,ce]),scrollProgress:fe,scrollSnapList:z.map(fe.get),scrollSnaps:z,scrollTarget:ue,scrollTo:de,slideLooper:zf(E,D,ee,j,M,I,z,G,n),slideFocus:ge,slidesHandler:Bf(t,o,b),slidesInView:me,slideIndexes:V,slideRegistry:he,slidesToScroll:F,target:ce,translate:Rf(E,t)};return _e}function Gf(){let e={},t;function n(e){t=e}function r(t){return e[t]||[]}function i(e){return r(e).forEach(n=>n(t,e)),c}function a(t,n){return e[t]=r(t).concat([n]),c}function o(t,n){return e[t]=r(t).filter(e=>e!==n),c}function s(){e={}}let c={init:n,emit:i,off:o,on:a,clear:s};return c}var Kf={align:`center`,axis:`x`,container:null,slides:null,containScroll:`trimSnaps`,direction:`ltr`,slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function qf(e){function t(e,t){return pf(e,t||{})}function n(n){let r=n.breakpoints||{};return t(n,ff(r).filter(t=>e.matchMedia(t).matches).map(e=>r[e]).reduce((e,n)=>t(e,n),{}))}function r(t){return t.map(e=>ff(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function Jf(e){let t=[];function n(n,r){return t=r.filter(({options:t})=>e.optionsAtMedia(t).active!==!1),t.forEach(t=>t.init(n,e)),r.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})}function r(){t=t.filter(e=>e.destroy())}return{init:n,destroy:r}}function Yf(e,t,n){let r=e.ownerDocument,i=r.defaultView,a=qf(i),o=Jf(a),s=gf(),c=Gf(),{mergeOptions:l,optionsAtMedia:u,optionsMediaQueries:d}=a,{on:f,off:p,emit:m}=c,h=D,g=!1,_,v=l(Kf,Yf.globalOptions),y=l(v),b=[],x,S,C;function w(){let{container:t,slides:n}=y;S=(Qd(t)?e.querySelector(t):t)||e.children[0];let r=Qd(n)?S.querySelectorAll(n):n;C=[].slice.call(r||S.children)}function T(t){let n=Wf(e,S,C,r,i,t,c);return t.loop&&!n.slideLooper.canLoop()?T(Object.assign({},t,{loop:!1})):n}function E(e,t){g||(v=l(v,e),y=u(v),b=t||b,w(),_=T(y),d([v,...b.map(({options:e})=>e)]).forEach(e=>s.add(e,`change`,D)),y.active&&(_.translate.to(_.location.get()),_.animation.init(),_.slidesInView.init(),_.slideFocus.init(ie),_.eventHandler.init(ie),_.resizeHandler.init(ie),_.slidesHandler.init(ie),_.options.loop&&_.slideLooper.loop(),S.offsetParent&&C.length&&_.dragHandler.init(ie),x=o.init(ie,b)))}function D(e,t){let n=L();O(),E(l({startIndex:n},e),t),c.emit(`reInit`)}function O(){_.dragHandler.destroy(),_.eventStore.clear(),_.translate.clear(),_.slideLooper.clear(),_.resizeHandler.destroy(),_.slidesHandler.destroy(),_.slidesInView.destroy(),_.animation.destroy(),o.destroy(),s.clear()}function k(){g||(g=!0,s.clear(),O(),c.emit(`destroy`),c.clear())}function A(e,t,n){y.active&&!g&&(_.scrollBody.useBaseFriction().useDuration(t===!0?0:y.duration),_.scrollTo.index(e,n||0))}function j(e){A(_.index.add(1).get(),e,-1)}function M(e){A(_.index.add(-1).get(),e,1)}function N(){return _.index.add(1).get()!==L()}function P(){return _.index.add(-1).get()!==L()}function F(){return _.scrollSnapList}function I(){return _.scrollProgress.get(_.offsetLocation.get())}function L(){return _.index.get()}function ee(){return _.indexPrevious.get()}function R(){return _.slidesInView.get()}function te(){return _.slidesInView.get(!1)}function z(){return x}function B(){return _}function ne(){return e}function re(){return S}function V(){return C}let ie={canScrollNext:N,canScrollPrev:P,containerNode:re,internalEngine:B,destroy:k,off:p,on:f,emit:m,plugins:z,previousScrollSnap:ee,reInit:h,rootNode:ne,scrollNext:j,scrollPrev:M,scrollProgress:I,scrollSnapList:F,scrollTo:A,selectedScrollSnap:L,slideNodes:V,slidesInView:R,slidesNotInView:te};return E(t,n),setTimeout(()=>c.emit(`init`),0),ie}Yf.globalOptions=void 0;function Xf(e={},t=[]){let n=(0,K.useRef)(e),r=(0,K.useRef)(t),[i,a]=(0,K.useState)(),[o,s]=(0,K.useState)(),c=(0,K.useCallback)(()=>{i&&i.reInit(n.current,r.current)},[i]);return(0,K.useEffect)(()=>{Jd(n.current,e)||(n.current=e,c())},[e,c]),(0,K.useEffect)(()=>{Xd(r.current,t)||(r.current=t,c())},[t,c]),(0,K.useEffect)(()=>{if(qd()&&o){Yf.globalOptions=Xf.globalOptions;let e=Yf(o,n.current,r.current);return a(e),()=>e.destroy()}a(void 0)},[o,a]),[s,i]}Xf.globalOptions=void 0;var Zf=K.createContext(null);function Qf(){let e=K.useContext(Zf);if(!e)throw Error(`useCarousel must be used within a <Carousel />`);return e}var $f=K.forwardRef(({orientation:e=`horizontal`,opts:t,setApi:n,plugins:r,className:i,children:a,...o},s)=>{let[c,l]=Xf({...t,axis:e===`horizontal`?`x`:`y`},r),[u,d]=K.useState(!1),[f,p]=K.useState(!1),m=K.useCallback(e=>{e&&(d(e.canScrollPrev()),p(e.canScrollNext()))},[]),h=K.useCallback(()=>{l?.scrollPrev()},[l]),g=K.useCallback(()=>{l?.scrollNext()},[l]),_=K.useCallback(e=>{e.key===`ArrowLeft`?(e.preventDefault(),h()):e.key===`ArrowRight`&&(e.preventDefault(),g())},[h,g]);return K.useEffect(()=>{l&&n&&n(l)},[l,n]),K.useEffect(()=>{if(l)return m(l),l.on(`reInit`,m),l.on(`select`,m),()=>{l?.off(`select`,m)}},[l,m]),(0,q.jsx)(Zf.Provider,{value:{carouselRef:c,api:l,opts:t,orientation:e||(t?.axis===`y`?`vertical`:`horizontal`),scrollPrev:h,scrollNext:g,canScrollPrev:u,canScrollNext:f},children:(0,q.jsx)(`div`,{ref:s,onKeyDownCapture:_,className:J(`relative`,i),role:`region`,"aria-roledescription":`carousel`,...o,children:a})})});$f.displayName=`Carousel`;var ep=K.forwardRef(({className:e,...t},n)=>{let{carouselRef:r,orientation:i}=Qf();return(0,q.jsx)(`div`,{ref:r,className:`overflow-hidden`,children:(0,q.jsx)(`div`,{ref:n,className:J(`flex`,i===`horizontal`?`-ml-4`:`-mt-4 flex-col`,e),...t})})});ep.displayName=`CarouselContent`;var tp=K.forwardRef(({className:e,...t},n)=>{let{orientation:r}=Qf();return(0,q.jsx)(`div`,{ref:n,role:`group`,"aria-roledescription":`slide`,className:J(`min-w-0 shrink-0 grow-0 basis-full`,r===`horizontal`?`pl-4`:`pt-4`,e),...t})});tp.displayName=`CarouselItem`;var np=K.forwardRef(({className:e,variant:t=`outline`,size:n=`icon`,...r},i)=>{let{orientation:a,scrollPrev:o,canScrollPrev:s}=Qf();return(0,q.jsxs)(X,{ref:i,variant:t,size:n,className:J(`absolute h-8 w-8 rounded-full`,a===`horizontal`?`-left-12 top-1/2 -translate-y-1/2`:`-top-12 left-1/2 -translate-x-1/2 rotate-90`,e),disabled:!s,onClick:o,...r,children:[(0,q.jsx)(ai,{className:`h-4 w-4`}),(0,q.jsx)(`span`,{className:`sr-only`,children:`Previous slide`})]})});np.displayName=`CarouselPrevious`;var rp=K.forwardRef(({className:e,variant:t=`outline`,size:n=`icon`,...r},i)=>{let{orientation:a,scrollNext:o,canScrollNext:s}=Qf();return(0,q.jsxs)(X,{ref:i,variant:t,size:n,className:J(`absolute h-8 w-8 rounded-full`,a===`horizontal`?`-right-12 top-1/2 -translate-y-1/2`:`-bottom-12 left-1/2 -translate-x-1/2 rotate-90`,e),disabled:!s,onClick:o,...r,children:[(0,q.jsx)(oi,{className:`h-4 w-4`}),(0,q.jsx)(`span`,{className:`sr-only`,children:`Next slide`})]})});rp.displayName=`CarouselNext`;var ip=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(Ar,{ref:n,className:J(`grid place-content-center peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground`,e),...t,children:(0,q.jsx)(Qt,{className:J(`grid place-content-center text-current`),children:(0,q.jsx)(fi,{className:`h-4 w-4`})})}));ip.displayName=Ar.displayName;var ap=It,op=vn,sp=Xr,cp=1,lp=.9,up=.8,dp=.17,fp=.1,pp=.999,mp=.9999,hp=.99,gp=/[\\\/_+.#"@\[\(\{&]/,_p=/[\\\/_+.#"@\[\(\{&]/g,vp=/[\s-]/,yp=/[\s-]/g;function bp(e,t,n,r,i,a,o){if(a===t.length)return i===e.length?cp:hp;var s=`${i},${a}`;if(o[s]!==void 0)return o[s];for(var c=r.charAt(a),l=n.indexOf(c,i),u=0,d,f,p,m;l>=0;)d=bp(e,t,n,r,l+1,a+1,o),d>u&&(l===i?d*=cp:gp.test(e.charAt(l-1))?(d*=up,p=e.slice(i,l-1).match(_p),p&&i>0&&(d*=pp**+p.length)):vp.test(e.charAt(l-1))?(d*=lp,m=e.slice(i,l-1).match(yp),m&&i>0&&(d*=pp**+m.length)):(d*=dp,i>0&&(d*=pp**+(l-i))),e.charAt(l)!==t.charAt(a)&&(d*=mp)),(d<fp&&n.charAt(l-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(l-1)!==r.charAt(a))&&(f=bp(e,t,n,r,l+1,a+2,o),f*fp>d&&(d=f*fp)),d>u&&(u=d),l=n.indexOf(c,l+1);return o[s]=u,u}function xp(e){return e.toLowerCase().replace(yp,` `)}function Sp(e,t,n){return e=n&&n.length>0?`${e+` `+n.join(` `)}`:e,bp(e,t,xp(e),xp(t),0,0,{})}var Cp=`[cmdk-group=""]`,wp=`[cmdk-group-items=""]`,Tp=`[cmdk-group-heading=""]`,Ep=`[cmdk-item=""]`,Dp=`${Ep}:not([aria-disabled="true"])`,Op=`cmdk-item-select`,kp=`data-value`,Ap=(e,t,n)=>Sp(e,t,n),jp=K.createContext(void 0),Mp=()=>K.useContext(jp),Np=K.createContext(void 0),Pp=()=>K.useContext(Np),Fp=K.createContext(void 0),Ip=K.forwardRef((e,t)=>{let n=Xp(()=>({search:``,value:e.value??e.defaultValue??``,selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}})),r=Xp(()=>new Set),i=Xp(()=>new Map),a=Xp(()=>new Map),o=Xp(()=>new Set),s=Jp(e),{label:c,children:l,value:u,onValueChange:d,filter:f,shouldFilter:p,loop:m,disablePointerSelection:h=!1,vimBindings:g=!0,..._}=e,v=qr(),y=qr(),b=qr(),x=K.useRef(null),S=$p();Yp(()=>{if(u!==void 0){let e=u.trim();n.current.value=e,C.emit()}},[u]),Yp(()=>{S(6,k)},[]);let C=K.useMemo(()=>({subscribe:e=>(o.current.add(e),()=>o.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var i,a,o;if(!Object.is(n.current[e],t)){if(n.current[e]=t,e===`search`)O(),E(),S(1,D);else if(e===`value`){if(document.activeElement.hasAttribute(`cmdk-input`)||document.activeElement.hasAttribute(`cmdk-root`)){let e=document.getElementById(b);e?e.focus():(i=document.getElementById(v))==null||i.focus()}if(S(7,()=>{n.current.selectedItemId=A()?.id,C.emit()}),r||S(5,k),s.current?.value!==void 0){let e=t??``;(o=(a=s.current).onValueChange)==null||o.call(a,e);return}}C.emit()}},emit:()=>{o.current.forEach(e=>e())}}),[]),w=K.useMemo(()=>({value:(e,t,r)=>{t!==a.current.get(e)?.value&&(a.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,T(t,r)),S(2,()=>{E(),C.emit()}))},item:(e,t)=>(r.current.add(e),t&&(i.current.has(t)?i.current.get(t).add(e):i.current.set(t,new Set([e]))),S(3,()=>{O(),E(),n.current.value||D(),C.emit()}),()=>{a.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);let t=A();S(4,()=>{O(),t?.getAttribute(`id`)===e&&D(),C.emit()})}),group:e=>(i.current.has(e)||i.current.set(e,new Set),()=>{a.current.delete(e),i.current.delete(e)}),filter:()=>s.current.shouldFilter,label:c||e[`aria-label`],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:v,inputId:b,labelId:y,listInnerRef:x}),[]);function T(e,t){let r=s.current?.filter??Ap;return e?r(e,n.current.search,t):0}function E(){if(!n.current.search||s.current.shouldFilter===!1)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach(n=>{let r=i.current.get(n),a=0;r.forEach(t=>{let n=e.get(t);a=Math.max(n,a)}),t.push([n,a])});let r=x.current;j().sort((t,n)=>{let r=t.getAttribute(`id`),i=n.getAttribute(`id`);return(e.get(i)??0)-(e.get(r)??0)}).forEach(e=>{let t=e.closest(wp);t?t.appendChild(e.parentElement===t?e:e.closest(`${wp} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${wp} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{let t=x.current?.querySelector(`${Cp}[${kp}="${encodeURIComponent(e[0])}"]`);t?.parentElement.appendChild(t)})}function D(){let e=j().find(e=>e.getAttribute(`aria-disabled`)!==`true`)?.getAttribute(kp);C.setState(`value`,e||void 0)}function O(){if(!n.current.search||s.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let e=0;for(let t of r.current){let r=T(a.current.get(t)?.value??``,a.current.get(t)?.keywords??[]);n.current.filtered.items.set(t,r),r>0&&e++}for(let[e,t]of i.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=e}function k(){var e;let t=A();t&&(t.parentElement?.firstChild===t&&((e=t.closest(Cp)?.querySelector(Tp))==null||e.scrollIntoView({block:`nearest`})),t.scrollIntoView({block:`nearest`}))}function A(){return x.current?.querySelector(`${Ep}[aria-selected="true"]`)}function j(){return Array.from(x.current?.querySelectorAll(Dp)||[])}function M(e){let t=j()[e];t&&C.setState(`value`,t.getAttribute(kp))}function N(e){var t;let n=A(),r=j(),i=r.findIndex(e=>e===n),a=r[i+e];(t=s.current)!=null&&t.loop&&(a=i+e<0?r[r.length-1]:i+e===r.length?r[0]:r[i+e]),a&&C.setState(`value`,a.getAttribute(kp))}function P(e){let t=A()?.closest(Cp),n;for(;t&&!n;)t=e>0?Kp(t,Cp):qp(t,Cp),n=t?.querySelector(Dp);n?C.setState(`value`,n.getAttribute(kp)):N(e)}let F=()=>M(j().length-1),I=e=>{e.preventDefault(),e.metaKey?F():e.altKey?P(1):N(1)},L=e=>{e.preventDefault(),e.metaKey?M(0):e.altKey?P(-1):N(-1)};return K.createElement(xn.div,{ref:t,tabIndex:-1,..._,"cmdk-root":``,onKeyDown:e=>{var t;(t=_.onKeyDown)==null||t.call(_,e);let n=e.nativeEvent.isComposing||e.keyCode===229;if(!(e.defaultPrevented||n))switch(e.key){case`n`:case`j`:g&&e.ctrlKey&&I(e);break;case`ArrowDown`:I(e);break;case`p`:case`k`:g&&e.ctrlKey&&L(e);break;case`ArrowUp`:L(e);break;case`Home`:e.preventDefault(),M(0);break;case`End`:e.preventDefault(),F();break;case`Enter`:{e.preventDefault();let t=A();if(t){let e=new Event(Op);t.dispatchEvent(e)}}}}},K.createElement(`label`,{"cmdk-label":``,htmlFor:w.inputId,id:w.labelId,style:nm},c),tm(e,e=>K.createElement(Np.Provider,{value:C},K.createElement(jp.Provider,{value:w},e))))}),Lp=K.forwardRef((e,t)=>{let n=qr(),r=K.useRef(null),i=K.useContext(Fp),a=Mp(),o=Jp(e),s=o.current?.forceMount??i?.forceMount;Yp(()=>{if(!s)return a.item(n,i?.id)},[s]);let c=Qp(n,r,[e.value,e.children,r],e.keywords),l=Pp(),u=Zp(e=>e.value&&e.value===c.current),d=Zp(e=>s||a.filter()===!1?!0:!e.search||e.filtered.items.get(n)>0);K.useEffect(()=>{let t=r.current;if(t&&!e.disabled)return t.addEventListener(Op,f),()=>t.removeEventListener(Op,f)},[d,e.onSelect,e.disabled]);function f(){var e,t;p(),(t=(e=o.current).onSelect)==null||t.call(e,c.current)}function p(){l.setState(`value`,c.current,!0)}if(!d)return null;let{disabled:m,value:h,onSelect:g,forceMount:_,keywords:v,...y}=e;return K.createElement(xn.div,{ref:ln(r,t),...y,id:n,"cmdk-item":``,role:`option`,"aria-disabled":!!m,"aria-selected":!!u,"data-disabled":!!m,"data-selected":!!u,onPointerMove:m||a.getDisablePointerSelection()?void 0:p,onClick:m?void 0:f},e.children)}),Rp=K.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:i,...a}=e,o=qr(),s=K.useRef(null),c=K.useRef(null),l=qr(),u=Mp(),d=Zp(e=>i||u.filter()===!1?!0:!e.search||e.filtered.groups.has(o));Yp(()=>u.group(o),[]),Qp(o,s,[e.value,e.heading,c]);let f=K.useMemo(()=>({id:o,forceMount:i}),[i]);return K.createElement(xn.div,{ref:ln(s,t),...a,"cmdk-group":``,role:`presentation`,hidden:!d||void 0},n&&K.createElement(`div`,{ref:c,"cmdk-group-heading":``,"aria-hidden":!0,id:l},n),tm(e,e=>K.createElement(`div`,{"cmdk-group-items":``,role:`group`,"aria-labelledby":n?l:void 0},K.createElement(Fp.Provider,{value:f},e))))}),zp=K.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,i=K.useRef(null),a=Zp(e=>!e.search);return!n&&!a?null:K.createElement(xn.div,{ref:ln(i,t),...r,"cmdk-separator":``,role:`separator`})}),Bp=K.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,i=e.value!=null,a=Pp(),o=Zp(e=>e.search),s=Zp(e=>e.selectedItemId),c=Mp();return K.useEffect(()=>{e.value!=null&&a.setState(`search`,e.value)},[e.value]),K.createElement(xn.input,{ref:t,...r,"cmdk-input":``,autoComplete:`off`,autoCorrect:`off`,spellCheck:!1,"aria-autocomplete":`list`,role:`combobox`,"aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":s,id:c.inputId,type:`text`,value:i?e.value:o,onChange:e=>{i||a.setState(`search`,e.target.value),n?.(e.target.value)}})}),Vp=K.forwardRef((e,t)=>{let{children:n,label:r=`Suggestions`,...i}=e,a=K.useRef(null),o=K.useRef(null),s=Zp(e=>e.selectedItemId),c=Mp();return K.useEffect(()=>{if(o.current&&a.current){let e=o.current,t=a.current,n,r=new ResizeObserver(()=>{n=requestAnimationFrame(()=>{let n=e.offsetHeight;t.style.setProperty(`--cmdk-list-height`,n.toFixed(1)+`px`)})});return r.observe(e),()=>{cancelAnimationFrame(n),r.unobserve(e)}}},[]),K.createElement(xn.div,{ref:ln(a,t),...i,"cmdk-list":``,role:`listbox`,tabIndex:-1,"aria-activedescendant":s,"aria-label":r,id:c.listId},tm(e,e=>K.createElement(`div`,{ref:ln(o,c.listInnerRef),"cmdk-list-sizer":``},e)))}),Hp=K.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:i,contentClassName:a,container:o,...s}=e;return K.createElement(Gn,{open:n,onOpenChange:r},K.createElement(Dr,{container:o},K.createElement($n,{"cmdk-overlay":``,className:i}),K.createElement(Vr,{"aria-label":e.label,"cmdk-dialog":``,className:a},K.createElement(Ip,{ref:t,...s}))))}),Up=K.forwardRef((e,t)=>Zp(e=>e.filtered.count===0)?K.createElement(xn.div,{ref:t,...e,"cmdk-empty":``,role:`presentation`}):null),Wp=K.forwardRef((e,t)=>{let{progress:n,children:r,label:i=`Loading...`,...a}=e;return K.createElement(xn.div,{ref:t,...a,"cmdk-loading":``,role:`progressbar`,"aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":i},tm(e,e=>K.createElement(`div`,{"aria-hidden":!0},e)))}),Gp=Object.assign(Ip,{List:Vp,Item:Lp,Input:Bp,Group:Rp,Separator:zp,Dialog:Hp,Empty:Up,Loading:Wp});function Kp(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function qp(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function Jp(e){let t=K.useRef(e);return Yp(()=>{t.current=e}),t}var Yp=typeof window>`u`?K.useEffect:K.useLayoutEffect;function Xp(e){let t=K.useRef();return t.current===void 0&&(t.current=e()),t}function Zp(e){let t=Pp(),n=()=>e(t.snapshot());return K.useSyncExternalStore(t.subscribe,n,n)}function Qp(e,t,n,r=[]){let i=K.useRef(),a=Mp();return Yp(()=>{var o;let s=(()=>{for(let e of n){if(typeof e==`string`)return e.trim();if(typeof e==`object`&&`current`in e)return e.current?e.current.textContent?.trim():i.current}})(),c=r.map(e=>e.trim());a.value(e,s,c),(o=t.current)==null||o.setAttribute(kp,s),i.current=s}),i}var $p=()=>{let[e,t]=K.useState(),n=Xp(()=>new Map);return Yp(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}};function em(e){let t=e.type;return typeof t==`function`?t(e.props):`render`in t?t.render(e.props):e}function tm({asChild:e,children:t},n){return e&&K.isValidElement(t)?K.cloneElement(em(t),{ref:t.ref},n(t.props.children)):n(t)}var nm={position:`absolute`,width:`1px`,height:`1px`,padding:`0`,margin:`-1px`,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,borderWidth:`0`},rm=_t({"common.close":`Close`},`common.close`);function im(){let{t:e}=rm();return(0,q.jsx)(`span`,{className:`sr-only`,children:e(`common.close`)})}var am=Gn,om=ar,sm=Dr,cm=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)($n,{ref:n,className:J(`fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,e),...t}));cm.displayName=$n.displayName;var lm=K.forwardRef(({className:e,children:t,...n},r)=>(0,q.jsxs)(sm,{children:[(0,q.jsx)(cm,{}),(0,q.jsxs)(Vr,{ref:r,className:J(`fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg`,e),...n,children:[t,(0,q.jsxs)(hr,{className:`absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground`,children:[(0,q.jsx)(wa,{className:`h-4 w-4`}),(0,q.jsx)(im,{})]})]})]}));lm.displayName=Vr.displayName;var um=({className:e,...t})=>(0,q.jsx)(`div`,{className:J(`flex flex-col space-y-1.5 text-center sm:text-left`,e),...t});um.displayName=`DialogHeader`;var dm=({className:e,...t})=>(0,q.jsx)(`div`,{className:J(`flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2`,e),...t});dm.displayName=`DialogFooter`;var fm=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(vr,{ref:n,className:J(`text-lg font-semibold leading-none tracking-tight`,e),...t}));fm.displayName=vr.displayName;var pm=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(Jn,{ref:n,className:J(`text-sm text-muted-foreground`,e),...t}));pm.displayName=Jn.displayName;var mm=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(Gp,{ref:n,className:J(`flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground`,e),...t}));mm.displayName=Gp.displayName;var hm=({children:e,contentProps:t,title:n=`Command Palette`,description:r,...i})=>{let{className:a,...o}=t??{};return(0,q.jsx)(am,{...i,children:(0,q.jsxs)(lm,{className:J(`overflow-hidden p-0 shadow-lg`,a),...o,children:[(0,q.jsx)(fm,{className:`sr-only`,children:n}),r?(0,q.jsx)(pm,{className:`sr-only`,children:r}):null,(0,q.jsx)(mm,{className:`[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5`,children:e})]})})},gm=K.forwardRef(({className:e,...t},n)=>(0,q.jsxs)(`div`,{className:`flex items-center border-b px-3`,"cmdk-input-wrapper":``,children:[(0,q.jsx)(ca,{className:`mr-2 h-4 w-4 shrink-0 opacity-50`}),(0,q.jsx)(Gp.Input,{ref:n,className:J(`flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50`,e),...t})]}));gm.displayName=Gp.Input.displayName;var _m=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(Gp.List,{ref:n,className:J(`max-h-[300px] overflow-y-auto overflow-x-hidden`,e),...t}));_m.displayName=Gp.List.displayName;var vm=K.forwardRef((e,t)=>(0,q.jsx)(Gp.Empty,{ref:t,className:`py-6 text-center text-sm`,...e}));vm.displayName=Gp.Empty.displayName;var ym=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(Gp.Group,{ref:n,className:J(`overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground`,e),...t}));ym.displayName=Gp.Group.displayName;var bm=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(Gp.Separator,{ref:n,className:J(`-mx-1 h-px bg-border`,e),...t}));bm.displayName=Gp.Separator.displayName;var xm=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(Gp.Item,{ref:n,className:J(`relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0`,e),...t}));xm.displayName=Gp.Item.displayName;var Sm=En,Cm=en,wm=wn,Tm=K.forwardRef(({className:e,inset:t,children:n,...r},i)=>(0,q.jsxs)(Kt,{ref:i,className:J(`flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground`,t&&`pl-8`,e),...r,children:[n,(0,q.jsx)(hi,{className:`ml-auto h-4 w-4`})]}));Tm.displayName=Kt.displayName;var Em=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(On,{ref:n,className:J(`z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-context-menu-content-transform-origin)`,e),...t}));Em.displayName=On.displayName;var Dm=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(ni,{children:(0,q.jsx)(Wt,{ref:n,className:J(`z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-context-menu-content-transform-origin)`,e),...t})}));Dm.displayName=Wt.displayName;var Om=K.forwardRef(({className:e,inset:t,...n},r)=>(0,q.jsx)(Xt,{ref:r,className:J(`relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,t&&`pl-8`,e),...n}));Om.displayName=Xt.displayName;var km=K.forwardRef(({className:e,children:t,checked:n,...r},i)=>(0,q.jsxs)(fn,{ref:i,className:J(`relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,e),checked:n,...r,children:[(0,q.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,q.jsx)(nn,{children:(0,q.jsx)(fi,{className:`h-4 w-4`})})}),t]}));km.displayName=fn.displayName;var Am=K.forwardRef(({className:e,children:t,...n},r)=>(0,q.jsxs)(Pt,{ref:r,className:J(`relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,e),...n,children:[(0,q.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,q.jsx)(nn,{children:(0,q.jsx)(Ti,{className:`h-2 w-2 fill-current`})})}),t]}));Am.displayName=Pt.displayName;var jm=K.forwardRef(({className:e,inset:t,...n},r)=>(0,q.jsx)(gn,{ref:r,className:J(`px-2 py-1.5 text-sm font-semibold text-foreground`,t&&`pl-8`,e),...n}));jm.displayName=gn.displayName;var Mm=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(Jt,{ref:n,className:J(`-mx-1 my-1 h-px bg-border`,e),...t}));Mm.displayName=Jt.displayName;var Nm=({className:e,...t})=>(0,q.jsx)(`span`,{className:J(`ml-auto text-xs tracking-widest text-muted-foreground`,e),...t});Nm.displayName=`ContextMenuShortcut`;function Pm(e){if(!e||typeof document>`u`)return;let t=document.head||document.getElementsByTagName(`head`)[0],n=document.createElement(`style`);n.type=`text/css`,t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}var Fm=K.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:`bottom`,shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),Im=()=>{let e=K.useContext(Fm);if(!e)throw Error(`useDrawerContext must be used within a Drawer.Root`);return e};Pm(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
3
- [data-state=closed]
4
- ){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);function Lm(){let e=navigator.userAgent;return typeof window<`u`&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))}function Rm(){return Um(/^Mac/)}function zm(){return Um(/^iPhone/)}function Bm(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function Vm(){return Um(/^iPad/)||Rm()&&navigator.maxTouchPoints>1}function Hm(){return zm()||Vm()}function Um(e){return typeof window<`u`&&window.navigator!=null?e.test(window.navigator.platform):void 0}var Wm=24,Gm=typeof window<`u`?K.useLayoutEffect:K.useEffect;function Km(...e){return(...t)=>{for(let n of e)typeof n==`function`&&n(...t)}}var qm=typeof document<`u`&&window.visualViewport;function Jm(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function Ym(e){for(Jm(e)&&(e=e.parentElement);e&&!Jm(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}var Xm=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]),Zm=0,Qm;function $m(e={}){let{isDisabled:t}=e;Gm(()=>{if(!t)return Zm++,Zm===1&&Hm()&&(Qm=eh()),()=>{Zm--,Zm===0&&Qm?.()}},[t])}function eh(){let e,t=0,n=n=>{e=Ym(n.target),(e!==document.documentElement||e!==document.body)&&(t=n.changedTouches[0].pageY)},r=n=>{if(!e||e===document.documentElement||e===document.body){n.preventDefault();return}let r=n.changedTouches[0].pageY,i=e.scrollTop,a=e.scrollHeight-e.clientHeight;a!==0&&((i<=0&&r>t||i>=a&&r<t)&&n.preventDefault(),t=r)},i=e=>{let t=e.target;ih(t)&&t!==document.activeElement&&(e.preventDefault(),t.style.transform=`translateY(-2000px)`,t.focus(),requestAnimationFrame(()=>{t.style.transform=``}))},a=e=>{let t=e.target;ih(t)&&(t.style.transform=`translateY(-2000px)`,requestAnimationFrame(()=>{t.style.transform=``,qm&&(qm.height<window.innerHeight?requestAnimationFrame(()=>{rh(t)}):qm.addEventListener(`resize`,()=>rh(t),{once:!0}))}))},o=()=>{window.scrollTo(0,0)},s=window.pageXOffset,c=window.pageYOffset,l=Km(th(document.documentElement,`paddingRight`,`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let u=Km(nh(document,`touchstart`,n,{passive:!1,capture:!0}),nh(document,`touchmove`,r,{passive:!1,capture:!0}),nh(document,`touchend`,i,{passive:!1,capture:!0}),nh(document,`focus`,a,!0),nh(window,`scroll`,o));return()=>{l(),u(),window.scrollTo(s,c)}}function th(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function nh(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function rh(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=Ym(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let n=t.getBoundingClientRect().top,r=e.getBoundingClientRect().top;e.getBoundingClientRect().bottom>t.getBoundingClientRect().bottom+Wm&&(t.scrollTop+=r-n)}e=t.parentElement}}function ih(e){return e instanceof HTMLInputElement&&!Xm.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function ah(e,t){typeof e==`function`?e(t):e!=null&&(e.current=t)}function oh(...e){return t=>e.forEach(e=>ah(e,t))}function sh(...e){return K.useCallback(oh(...e),e)}var ch=new WeakMap;function lh(e,t,n=!1){if(!e||!(e instanceof HTMLElement))return;let r={};Object.entries(t).forEach(([t,n])=>{if(t.startsWith(`--`)){e.style.setProperty(t,n);return}r[t]=e.style[t],e.style[t]=n}),!n&&ch.set(e,r)}function uh(e,t){if(!e||!(e instanceof HTMLElement))return;let n=ch.get(e);n&&(e.style[t]=n[t])}var dh=e=>{switch(e){case`top`:case`bottom`:return!0;case`left`:case`right`:return!1;default:return e}};function fh(e,t){if(!e)return null;let n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform,i=r.match(/^matrix3d\((.+)\)$/);return i?parseFloat(i[1].split(`, `)[dh(t)?13:12]):(i=r.match(/^matrix\((.+)\)$/),i?parseFloat(i[1].split(`, `)[dh(t)?5:4]):null)}function ph(e){return 8*(Math.log(e+1)-2)}function mh(e,t){if(!e)return()=>{};let n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}var hh={DURATION:.5,EASE:[.32,.72,0,1]},gh=.4,_h=.25,vh=100,yh=8,bh=16,xh=26,Sh=`vaul-dragging`;function Ch(e){let t=K.useRef(e);return K.useEffect(()=>{t.current=e}),K.useMemo(()=>(...e)=>t.current==null?void 0:t.current.call(t,...e),[])}function wh({defaultProp:e,onChange:t}){let n=K.useState(e),[r]=n,i=K.useRef(r),a=Ch(t);return K.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}function Th({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=wh({defaultProp:t,onChange:n}),a=e!==void 0,o=a?e:r,s=Ch(n);return[o,K.useCallback(t=>{if(a){let n=typeof t==`function`?t(e):t;n!==e&&s(n)}else i(t)},[a,e,i,s])]}function Eh({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:i,fadeFromIndex:a,onSnapPointChange:o,direction:s=`bottom`,container:c,snapToSequentialPoint:l}){let[u,d]=Th({prop:e,defaultProp:n?.[0],onChange:t}),[f,p]=K.useState(typeof window<`u`?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);K.useEffect(()=>{function e(){p({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]);let m=K.useMemo(()=>u===n?.[n.length-1]||null,[n,u]),h=K.useMemo(()=>n?.findIndex(e=>e===u)??null,[n,u]),g=n&&n.length>0&&(a||a===0)&&!Number.isNaN(a)&&n[a]===u||!n,_=K.useMemo(()=>{let e=c?{width:c.getBoundingClientRect().width,height:c.getBoundingClientRect().height}:typeof window<`u`?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};return n?.map(t=>{let n=typeof t==`string`,r=0;if(n&&(r=parseInt(t,10)),dh(s)){let i=n?r:f?t*e.height:0;return f?s===`bottom`?e.height-i:-e.height+i:i}let i=n?r:f?t*e.width:0;return f?s===`right`?e.width-i:-e.width+i:i})??[]},[n,f,c]),v=K.useMemo(()=>h===null?null:_?.[h],[_,h]),y=K.useCallback(e=>{let t=_?.findIndex(t=>t===e)??null;o(t),lh(r.current,{transition:`transform ${hh.DURATION}s cubic-bezier(${hh.EASE.join(`,`)})`,transform:dh(s)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`}),_&&t!==_.length-1&&a!==void 0&&t!==a&&t<a?lh(i.current,{transition:`opacity ${hh.DURATION}s cubic-bezier(${hh.EASE.join(`,`)})`,opacity:`0`}):lh(i.current,{transition:`opacity ${hh.DURATION}s cubic-bezier(${hh.EASE.join(`,`)})`,opacity:`1`}),d(n?.[Math.max(t,0)])},[r.current,n,_,a,i,d]);K.useEffect(()=>{if(u||e){let t=n?.findIndex(t=>t===e||t===u)??-1;_&&t!==-1&&typeof _[t]==`number`&&y(_[t])}},[u,e,n,_,y]);function b({draggedDistance:e,closeDrawer:t,velocity:r,dismissible:o}){if(a===void 0)return;let c=s===`bottom`||s===`right`?(v??0)-e:(v??0)+e,u=h===a-1,d=h===0,f=e>0;if(u&&lh(i.current,{transition:`opacity ${hh.DURATION}s cubic-bezier(${hh.EASE.join(`,`)})`}),!l&&r>2&&!f){o?t():y(_[0]);return}if(!l&&r>2&&f&&_&&n){y(_[n.length-1]);return}let p=_?.reduce((e,t)=>typeof e!=`number`||typeof t!=`number`?e:Math.abs(t-c)<Math.abs(e-c)?t:e),g=dh(s)?window.innerHeight:window.innerWidth;if(r>gh&&Math.abs(e)<g*.4){let e=f?1:-1;if(e>0&&m&&n){y(_[n.length-1]);return}if(d&&e<0&&o&&t(),h===null)return;y(_[h+e]);return}y(p)}function x({draggedDistance:e}){if(v===null)return;let t=s===`bottom`||s===`right`?v-e:v+e;(s===`bottom`||s===`right`)&&t<_[_.length-1]||(s===`top`||s===`left`)&&t>_[_.length-1]||lh(r.current,{transform:dh(s)?`translate3d(0, ${t}px, 0)`:`translate3d(${t}px, 0, 0)`})}function S(e,t){if(!n||typeof h!=`number`||!_||a===void 0)return null;let r=h===a-1;if(h>=a&&t)return 0;if(r&&!t)return 1;if(!g&&!r)return null;let i=r?h+1:h-1,o=r?_[i]-_[i-1]:_[i+1]-_[i],s=e/Math.abs(o);return r?1-s:s}return{isLastSnapPoint:m,activeSnapPoint:u,shouldFade:g,getPercentageDragged:S,setActiveSnapPoint:d,activeSnapPointIndex:h,onRelease:b,onDrag:x,snapPointsOffset:_}}function Dh(){let{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:i}=Im(),a=K.useRef(null),o=(0,K.useMemo)(()=>document.body.style.backgroundColor,[]);function s(){return(window.innerWidth-xh)/window.innerWidth}K.useEffect(()=>{if(t&&n){a.current&&clearTimeout(a.current);let t=document.querySelector(`[data-vaul-drawer-wrapper]`)||document.querySelector(`[vaul-drawer-wrapper]`);if(!t)return;r&&!i&&mh(document.body,{background:`black`}),mh(t,{transformOrigin:dh(e)?`top`:`left`,transitionProperty:`transform, border-radius`,transitionDuration:`${hh.DURATION}s`,transitionTimingFunction:`cubic-bezier(${hh.EASE.join(`,`)})`});let n=mh(t,{borderRadius:`${yh}px`,overflow:`hidden`,...dh(e)?{transform:`scale(${s()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${s()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{n(),a.current=window.setTimeout(()=>{o?document.body.style.background=o:document.body.style.removeProperty(`background`)},hh.DURATION*1e3)}}},[t,n,o])}var Oh=null;function kh({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:i,noBodyStyles:a}){let[o,s]=K.useState(()=>typeof window<`u`?window.location.href:``),c=K.useRef(0),l=K.useCallback(()=>{if(Bm()&&Oh===null&&e&&!a){Oh={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:`unset`};let{scrollX:e,innerHeight:t}=window;document.body.style.setProperty(`position`,`fixed`,`important`),Object.assign(document.body.style,{top:`${-c.current}px`,left:`${-e}px`,right:`0px`,height:`auto`}),window.setTimeout(()=>window.requestAnimationFrame(()=>{let e=t-window.innerHeight;e&&c.current>=t&&(document.body.style.top=`${-(c.current+e)}px`)}),300)}},[e]),u=K.useCallback(()=>{if(Bm()&&Oh!==null&&!a){let e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);Object.assign(document.body.style,Oh),window.requestAnimationFrame(()=>{if(i&&o!==window.location.href){s(window.location.href);return}window.scrollTo(t,e)}),Oh=null}},[o]);return K.useEffect(()=>{function e(){c.current=window.scrollY}return e(),window.addEventListener(`scroll`,e),()=>{window.removeEventListener(`scroll`,e)}},[]),K.useEffect(()=>{if(t)return()=>{typeof document>`u`||document.querySelector(`[data-vaul-drawer]`)||u()}},[t,u]),K.useEffect(()=>{!n&&r&&(e?(!window.matchMedia(`(display-mode: standalone)`).matches&&l(),t||window.setTimeout(()=>{u()},500)):u())},[e,r,o,t,n,l,u]),{restorePositionSetting:u}}function Ah({open:e,onOpenChange:t,children:n,onDrag:r,onRelease:i,snapPoints:a,shouldScaleBackground:o=!1,setBackgroundColorOnScale:s=!0,closeThreshold:c=_h,scrollLockTimeout:l=vh,dismissible:u=!0,handleOnly:d=!1,fadeFromIndex:f=a&&a.length-1,activeSnapPoint:p,setActiveSnapPoint:m,fixed:h,modal:g=!0,onClose:_,nested:v,noBodyStyles:y=!1,direction:b=`bottom`,defaultOpen:x=!1,disablePreventScroll:S=!0,snapToSequentialPoint:C=!1,preventScrollRestoration:w=!1,repositionInputs:T=!0,onAnimationEnd:E,container:D,autoFocus:O=!1}){let[k=!1,A]=Th({defaultProp:x,prop:e,onChange:e=>{t?.(e),!e&&!v&&me(),setTimeout(()=>{E?.(e)},hh.DURATION*1e3),e&&!g&&typeof window<`u`&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents=`auto`}),e||(document.body.style.pointerEvents=`auto`)}}),[j,M]=K.useState(!1),[N,P]=K.useState(!1),[F,I]=K.useState(!1),L=K.useRef(null),ee=K.useRef(null),R=K.useRef(null),te=K.useRef(null),z=K.useRef(null),B=K.useRef(!1),ne=K.useRef(null),re=K.useRef(0),V=K.useRef(!1),ie=K.useRef(!x),ae=K.useRef(0),H=K.useRef(null),oe=K.useRef(H.current?.getBoundingClientRect().height||0),U=K.useRef(H.current?.getBoundingClientRect().width||0),se=K.useRef(0),{activeSnapPoint:W,activeSnapPointIndex:G,setActiveSnapPoint:ce,onRelease:le,snapPointsOffset:ue,onDrag:de,shouldFade:fe,getPercentageDragged:pe}=Eh({snapPoints:a,activeSnapPointProp:p,setActiveSnapPointProp:m,drawerRef:H,fadeFromIndex:f,overlayRef:L,onSnapPointChange:K.useCallback(e=>{a&&e===ue.length-1&&(ee.current=new Date)},[]),direction:b,container:D,snapToSequentialPoint:C});$m({isDisabled:!k||N||!g||F||!j||!T||!S});let{restorePositionSetting:me}=kh({isOpen:k,modal:g,nested:v??!1,hasBeenOpened:j,preventScrollRestoration:w,noBodyStyles:y});function he(){return(window.innerWidth-xh)/window.innerWidth}function ge(e){(u||a)&&(!H.current||H.current.contains(e.target))&&(oe.current=H.current?.getBoundingClientRect().height||0,U.current=H.current?.getBoundingClientRect().width||0,P(!0),R.current=new Date,Hm()&&window.addEventListener(`touchend`,()=>B.current=!1,{once:!0}),e.target.setPointerCapture(e.pointerId),re.current=dh(b)?e.pageY:e.pageX)}function _e(e,t){let n=e,r=window.getSelection()?.toString(),i=H.current?fh(H.current,b):null,a=new Date;if(n.tagName===`SELECT`||n.hasAttribute(`data-vaul-no-drag`)||n.closest(`[data-vaul-no-drag]`))return!1;if(b===`right`||b===`left`)return!0;if(ee.current&&a.getTime()-ee.current.getTime()<500)return!1;if(i!==null&&(b===`bottom`?i>0:i<0))return!0;if(r&&r.length>0)return!1;if(z.current&&a.getTime()-z.current.getTime()<l&&i===0||t)return z.current=a,!1;for(;n;){if(n.scrollHeight>n.clientHeight){if(n.scrollTop!==0)return z.current=new Date,!1;if(n.getAttribute(`role`)===`dialog`)return!0}n=n.parentNode}return!0}function ve(e){if(H.current&&N){let t=b===`bottom`||b===`right`?1:-1,n=(re.current-(dh(b)?e.pageY:e.pageX))*t,i=n>0,s=a&&!u&&!i;if(s&&G===0)return;let c=Math.abs(n),l=document.querySelector(`[data-vaul-drawer-wrapper]`),d=c/(b===`bottom`||b===`top`?oe.current:U.current),p=pe(c,i);if(p!==null&&(d=p),s&&d>=1||!B.current&&!_e(e.target,i))return;if(H.current.classList.add(Sh),B.current=!0,lh(H.current,{transition:`none`}),lh(L.current,{transition:`none`}),a&&de({draggedDistance:n}),i&&!a){let e=ph(n),r=Math.min(e*-1,0)*t;lh(H.current,{transform:dh(b)?`translate3d(0, ${r}px, 0)`:`translate3d(${r}px, 0, 0)`});return}let m=1-d;if((fe||f&&G===f-1)&&(r?.(e,d),lh(L.current,{opacity:`${m}`,transition:`none`},!0)),l&&L.current&&o){let e=Math.min(he()+d*(1-he()),1),t=8-d*8,n=Math.max(0,14-d*14);lh(l,{borderRadius:`${t}px`,transform:dh(b)?`scale(${e}) translate3d(0, ${n}px, 0)`:`scale(${e}) translate3d(${n}px, 0, 0)`,transition:`none`},!0)}if(!a){let e=c*t;lh(H.current,{transform:dh(b)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}}}K.useEffect(()=>{window.requestAnimationFrame(()=>{ie.current=!0})},[]),K.useEffect(()=>{var e;function t(){if(!H.current||!T)return;let e=document.activeElement;if(ih(e)||V.current){let e=window.visualViewport?.height||0,t=window.innerHeight,n=t-e,r=H.current.getBoundingClientRect().height||0,i=r>t*.8;se.current||=r;let o=H.current.getBoundingClientRect().top;if(Math.abs(ae.current-n)>60&&(V.current=!V.current),a&&a.length>0&&ue&&G){let e=ue[G]||0;n+=e}if(ae.current=n,r>e||V.current){let t=H.current.getBoundingClientRect().height,r=t;t>e&&(r=e-(i?o:xh)),h?H.current.style.height=`${t-Math.max(n,0)}px`:H.current.style.height=`${Math.max(r,e-o)}px`}else Lm()||(H.current.style.height=`${se.current}px`);a&&a.length>0&&!V.current?H.current.style.bottom=`0px`:H.current.style.bottom=`${Math.max(n,0)}px`}}return(e=window.visualViewport)==null||e.addEventListener(`resize`,t),()=>window.visualViewport?.removeEventListener(`resize`,t)},[G,a,ue]);function ye(e){xe(),_?.(),e||A(!1),setTimeout(()=>{a&&ce(a[0])},hh.DURATION*1e3)}function be(){if(!H.current)return;let e=document.querySelector(`[data-vaul-drawer-wrapper]`),t=fh(H.current,b);lh(H.current,{transform:`translate3d(0, 0, 0)`,transition:`transform ${hh.DURATION}s cubic-bezier(${hh.EASE.join(`,`)})`}),lh(L.current,{transition:`opacity ${hh.DURATION}s cubic-bezier(${hh.EASE.join(`,`)})`,opacity:`1`}),o&&t&&t>0&&k&&lh(e,{borderRadius:`${yh}px`,overflow:`hidden`,...dh(b)?{transform:`scale(${he()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:`top`}:{transform:`scale(${he()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:`left`},transitionProperty:`transform, border-radius`,transitionDuration:`${hh.DURATION}s`,transitionTimingFunction:`cubic-bezier(${hh.EASE.join(`,`)})`},!0)}function xe(){N&&H.current&&(H.current.classList.remove(Sh),B.current=!1,P(!1),te.current=new Date)}function Se(e){if(!N||!H.current)return;H.current.classList.remove(Sh),B.current=!1,P(!1),te.current=new Date;let t=fh(H.current,b);if(!e||!_e(e.target,!1)||!t||Number.isNaN(t)||R.current===null)return;let n=te.current.getTime()-R.current.getTime(),r=re.current-(dh(b)?e.pageY:e.pageX),o=Math.abs(r)/n;if(o>.05&&(I(!0),setTimeout(()=>{I(!1)},200)),a){le({draggedDistance:r*(b===`bottom`||b===`right`?1:-1),closeDrawer:ye,velocity:o,dismissible:u}),i?.(e,!0);return}if(b===`bottom`||b===`right`?r>0:r<0){be(),i?.(e,!0);return}if(o>gh){ye(),i?.(e,!1);return}let s=Math.min(H.current.getBoundingClientRect().height??0,window.innerHeight),l=Math.min(H.current.getBoundingClientRect().width??0,window.innerWidth);if(Math.abs(t)>=(b===`left`||b===`right`?l:s)*c){ye(),i?.(e,!1);return}i?.(e,!0),be()}K.useEffect(()=>(k&&(lh(document.documentElement,{scrollBehavior:`auto`}),ee.current=new Date),()=>{uh(document.documentElement,`scrollBehavior`)}),[k]);function Ce(e){let t=e?(window.innerWidth-bh)/window.innerWidth:1,n=e?-16:0;ne.current&&window.clearTimeout(ne.current),lh(H.current,{transition:`transform ${hh.DURATION}s cubic-bezier(${hh.EASE.join(`,`)})`,transform:dh(b)?`scale(${t}) translate3d(0, ${n}px, 0)`:`scale(${t}) translate3d(${n}px, 0, 0)`}),!e&&H.current&&(ne.current=setTimeout(()=>{let e=fh(H.current,b);lh(H.current,{transition:`none`,transform:dh(b)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})},500))}function we(e,t){if(t<0)return;let n=(window.innerWidth-bh)/window.innerWidth,r=n+t*(1-n),i=-16+t*bh;lh(H.current,{transform:dh(b)?`scale(${r}) translate3d(0, ${i}px, 0)`:`scale(${r}) translate3d(${i}px, 0, 0)`,transition:`none`})}function Te(e,t){let n=dh(b)?window.innerHeight:window.innerWidth,r=t?(n-bh)/n:1,i=t?-16:0;t&&lh(H.current,{transition:`transform ${hh.DURATION}s cubic-bezier(${hh.EASE.join(`,`)})`,transform:dh(b)?`scale(${r}) translate3d(0, ${i}px, 0)`:`scale(${r}) translate3d(${i}px, 0, 0)`})}return K.useEffect(()=>{g||window.requestAnimationFrame(()=>{document.body.style.pointerEvents=`auto`})},[g]),K.createElement(Gn,{defaultOpen:x,onOpenChange:e=>{(u||e)&&(e?M(!0):ye(!0),A(e))},open:k},K.createElement(Fm.Provider,{value:{activeSnapPoint:W,snapPoints:a,setActiveSnapPoint:ce,drawerRef:H,overlayRef:L,onOpenChange:t,onPress:ge,onRelease:Se,onDrag:ve,dismissible:u,shouldAnimate:ie,handleOnly:d,isOpen:k,isDragging:N,shouldFade:fe,closeDrawer:ye,onNestedDrag:we,onNestedOpenChange:Ce,onNestedRelease:Te,keyboardIsOpen:V,modal:g,snapPointsOffset:ue,activeSnapPointIndex:G,direction:b,shouldScaleBackground:o,setBackgroundColorOnScale:s,noBodyStyles:y,container:D,autoFocus:O}},n))}var jh=K.forwardRef(function({...e},t){let{overlayRef:n,snapPoints:r,onRelease:i,shouldFade:a,isOpen:o,modal:s,shouldAnimate:c}=Im(),l=sh(t,n),u=r&&r.length>0;if(!s)return null;let d=K.useCallback(e=>i(e),[i]);return K.createElement($n,{onMouseUp:d,ref:l,"data-vaul-overlay":``,"data-vaul-snap-points":o&&u?`true`:`false`,"data-vaul-snap-points-overlay":o&&a?`true`:`false`,"data-vaul-animate":c?.current?`true`:`false`,...e})});jh.displayName=`Drawer.Overlay`;var Mh=K.forwardRef(function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...r},i){let{drawerRef:a,onPress:o,onRelease:s,onDrag:c,keyboardIsOpen:l,snapPointsOffset:u,activeSnapPointIndex:d,modal:f,isOpen:p,direction:m,snapPoints:h,container:g,handleOnly:_,shouldAnimate:v,autoFocus:y}=Im(),[b,x]=K.useState(!1),S=sh(i,a),C=K.useRef(null),w=K.useRef(null),T=K.useRef(!1),E=h&&h.length>0;Dh();let D=(e,t,n=0)=>{if(T.current)return!0;let r=Math.abs(e.y),i=Math.abs(e.x),a=i>r,o=[`bottom`,`right`].includes(t)?1:-1;if(t===`left`||t===`right`){if(!(e.x*o<0)&&i>=0&&i<=n)return a}else if(!(e.y*o<0)&&r>=0&&r<=n)return!a;return T.current=!0,!0};K.useEffect(()=>{E&&window.requestAnimationFrame(()=>{x(!0)})},[]);function O(e){C.current=null,T.current=!1,s(e)}return K.createElement(Vr,{"data-vaul-drawer-direction":m,"data-vaul-drawer":``,"data-vaul-delayed-snap-points":b?`true`:`false`,"data-vaul-snap-points":p&&E?`true`:`false`,"data-vaul-custom-container":g?`true`:`false`,"data-vaul-animate":v?.current?`true`:`false`,...r,ref:S,style:u&&u.length>0?{"--snap-point-height":`${u[d??0]}px`,...t}:t,onPointerDown:e=>{_||(r.onPointerDown==null||r.onPointerDown.call(r,e),C.current={x:e.pageX,y:e.pageY},o(e))},onOpenAutoFocus:e=>{n?.(e),y||e.preventDefault()},onPointerDownOutside:t=>{if(e?.(t),!f||t.defaultPrevented){t.preventDefault();return}l.current&&=!1},onFocusOutside:e=>{if(!f){e.preventDefault();return}},onPointerMove:e=>{if(w.current=e,_||(r.onPointerMove==null||r.onPointerMove.call(r,e),!C.current))return;let t=e.pageY-C.current.y,n=e.pageX-C.current.x,i=e.pointerType===`touch`?10:2;D({x:n,y:t},m,i)?c(e):(Math.abs(n)>i||Math.abs(t)>i)&&(C.current=null)},onPointerUp:e=>{r.onPointerUp==null||r.onPointerUp.call(r,e),C.current=null,T.current=!1,s(e)},onPointerOut:e=>{r.onPointerOut==null||r.onPointerOut.call(r,e),O(w.current)},onContextMenu:e=>{r.onContextMenu==null||r.onContextMenu.call(r,e),w.current&&O(w.current)}})});Mh.displayName=`Drawer.Content`;var Nh=250,Ph=120,Fh=K.forwardRef(function({preventCycle:e=!1,children:t,...n},r){let{closeDrawer:i,isDragging:a,snapPoints:o,activeSnapPoint:s,setActiveSnapPoint:c,dismissible:l,handleOnly:u,isOpen:d,onPress:f,onDrag:p}=Im(),m=K.useRef(null),h=K.useRef(!1);function g(){if(h.current){y();return}window.setTimeout(()=>{_()},Ph)}function _(){if(a||e||h.current){y();return}if(y(),!o||o.length===0){l||i();return}if(s===o[o.length-1]&&l){i();return}let t=o.findIndex(e=>e===s);if(t===-1)return;let n=o[t+1];c(n)}function v(){m.current=window.setTimeout(()=>{h.current=!0},Nh)}function y(){m.current&&window.clearTimeout(m.current),h.current=!1}return K.createElement(`div`,{onClick:g,onPointerCancel:y,onPointerDown:e=>{u&&f(e),v()},onPointerMove:e=>{u&&p(e)},ref:r,"data-vaul-drawer-visible":d?`true`:`false`,"data-vaul-handle":``,"aria-hidden":`true`,...n},K.createElement(`span`,{"data-vaul-handle-hitarea":``,"aria-hidden":`true`},t))});Fh.displayName=`Drawer.Handle`;function Ih({onDrag:e,onOpenChange:t,open:n,...r}){let{onNestedDrag:i,onNestedOpenChange:a,onNestedRelease:o}=Im();if(!i)throw Error(`Drawer.NestedRoot must be placed in another drawer`);return K.createElement(Ah,{nested:!0,open:n,onClose:()=>{a(!1)},onDrag:(t,n)=>{i(t,n),e?.(t,n)},onOpenChange:e=>{e&&a(e),t?.(e)},onRelease:o,...r})}function Lh(e){let t=Im(),{container:n=t.container,...r}=e;return K.createElement(Dr,{container:n,...r})}var Rh={Root:Ah,NestedRoot:Ih,Content:Mh,Overlay:jh,Trigger:ar,Portal:Lh,Handle:Fh,Close:hr,Title:vr,Description:Jn},zh=({shouldScaleBackground:e=!0,...t})=>(0,q.jsx)(Rh.Root,{shouldScaleBackground:e,...t});zh.displayName=`Drawer`;var Bh=Rh.Trigger,Vh=Rh.Portal,Hh=Rh.Close,Uh=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(Rh.Overlay,{ref:n,className:J(`fixed inset-0 z-50 bg-black/80`,e),...t}));Uh.displayName=Rh.Overlay.displayName;var Wh=K.forwardRef(({className:e,children:t,...n},r)=>(0,q.jsxs)(Vh,{children:[(0,q.jsx)(Uh,{}),(0,q.jsxs)(Rh.Content,{ref:r,className:J(`fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background`,e),...n,children:[(0,q.jsx)(`div`,{className:`mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted`}),t]})]}));Wh.displayName=`DrawerContent`;var Gh=({className:e,...t})=>(0,q.jsx)(`div`,{className:J(`grid gap-1.5 p-4 text-center sm:text-left`,e),...t});Gh.displayName=`DrawerHeader`;var Kh=({className:e,...t})=>(0,q.jsx)(`div`,{className:J(`mt-auto flex flex-col gap-2 p-4`,e),...t});Kh.displayName=`DrawerFooter`;var qh=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(Rh.Title,{ref:n,className:J(`text-lg font-semibold leading-none tracking-tight`,e),...t}));qh.displayName=Rh.Title.displayName;var Jh=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(Rh.Description,{ref:n,className:J(`text-sm text-muted-foreground`,e),...t}));Jh.displayName=Rh.Description.displayName;var Yh=un,Xh=sn,Zh=yn,Qh=Mt,$h=K.forwardRef(({className:e,inset:t,children:n,...r},i)=>(0,q.jsxs)(an,{ref:i,className:J(`flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0`,t&&`pl-8`,e),...r,children:[n,(0,q.jsx)(hi,{className:`ml-auto`})]}));$h.displayName=an.displayName;var eg=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(dr,{ref:n,className:J(`z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-dropdown-menu-content-transform-origin)`,e),...t}));eg.displayName=dr.displayName;var tg=K.forwardRef(({className:e,sideOffset:t=4,...n},r)=>(0,q.jsx)(Ht,{children:(0,q.jsx)(Zr,{ref:r,sideOffset:t,className:J(`z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-dropdown-menu-content-transform-origin)`,e),...n})}));tg.displayName=Zr.displayName;var ng=K.forwardRef(({className:e,inset:t,...n},r)=>(0,q.jsx)(Lt,{ref:r,className:J(`relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0`,t&&`pl-8`,e),...n}));ng.displayName=Lt.displayName;var rg=K.forwardRef(({className:e,children:t,checked:n,...r},i)=>(0,q.jsxs)(Un,{ref:i,className:J(`relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,e),checked:n,...r,children:[(0,q.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,q.jsx)(Jr,{children:(0,q.jsx)(fi,{className:`h-4 w-4`})})}),t]}));rg.displayName=Un.displayName;var ig=K.forwardRef(({className:e,children:t,...n},r)=>(0,q.jsxs)(Bt,{ref:r,className:J(`relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,e),...n,children:[(0,q.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,q.jsx)(Jr,{children:(0,q.jsx)(Ti,{className:`h-2 w-2 fill-current`})})}),t]}));ig.displayName=Bt.displayName;var ag=K.forwardRef(({className:e,inset:t,...n},r)=>(0,q.jsx)(Sn,{ref:r,className:J(`px-2 py-1.5 text-sm font-semibold`,t&&`pl-8`,e),...n}));ag.displayName=Sn.displayName;var og=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(pr,{ref:n,className:J(`-mx-1 my-1 h-px bg-muted`,e),...t}));og.displayName=pr.displayName;var sg=e=>e.type===`checkbox`,cg=e=>e.type===`file`,lg=e=>e instanceof Date,ug=e=>e==null,dg=e=>typeof e==`object`,fg=e=>!ug(e)&&!Array.isArray(e)&&dg(e)&&!lg(e),pg=e=>fg(e)&&e.target?sg(e.target)?e.target.checked:cg(e.target)?e.target.files:e.target.value:e,mg=(e,t)=>t.split(`.`).some((t,n,r)=>!isNaN(Number(t))&&e.has(r.slice(0,n).join(`.`))),hg=e=>{let t=e.constructor&&e.constructor.prototype;return fg(t)&&t.hasOwnProperty(`isPrototypeOf`)},gg=typeof window<`u`&&window.HTMLElement!==void 0&&typeof document<`u`;function _g(e){if(e instanceof Date)return new Date(e);let t=typeof FileList<`u`&&e instanceof FileList;if(gg&&(e instanceof Blob||t))return e;let n=Array.isArray(e);if(!n&&!(fg(e)&&hg(e)))return e;let r=n?[]:Object.create(Object.getPrototypeOf(e));for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=_g(e[t]));return r}var vg={BLUR:`blur`,FOCUS_OUT:`focusout`,CHANGE:`change`,SUBMIT:`submit`,TRIGGER:`trigger`,VALID:`valid`},yg={onBlur:`onBlur`,onChange:`onChange`,onSubmit:`onSubmit`,onTouched:`onTouched`,all:`all`},bg={max:`max`,min:`min`,maxLength:`maxLength`,minLength:`minLength`,pattern:`pattern`,required:`required`,validate:`validate`},xg=`root`,Sg=[`__proto__`,`constructor`,`prototype`],Cg=/^\w*$/,wg=e=>Cg.test(e),Tg=e=>e===void 0,Eg=/[.[\]'"]/,Dg=e=>e.split(Eg).filter(Boolean),Q=(e,t,n)=>{if(!t||!fg(e))return n;let r=wg(t)?[t]:Dg(t);if(r.some(e=>Sg.includes(e)))return n;let i=r.reduce((e,t)=>ug(e)?void 0:e[t],e);return Tg(i)||i===e?Tg(e[t])?n:e[t]:i},Og=e=>typeof e==`boolean`,kg=e=>typeof e==`function`,Ag=(e,t,n)=>{let r=-1,i=wg(t)?[t]:Dg(t),a=i.length,o=a-1;for(;++r<a;){let t=i[r],a=n;if(r!==o){let n=e[t];a=fg(n)||Array.isArray(n)?n:isNaN(+i[r+1])?{}:[]}if(Sg.includes(t))return;e[t]=a,e=e[t]}},jg=K.createContext(null);jg.displayName=`HookFormControlContext`;var Mg=()=>K.useContext(jg),Ng=(e,t,n,r=!0)=>{let i={};for(let a in e)Object.defineProperty(i,a,{get:()=>{let i=a;return t._proxyFormState[i]!==yg.all&&(t._proxyFormState[i]=!r||yg.all),n&&(n[i]=!0),e[i]}});return i},Pg=gg?K.useLayoutEffect:K.useEffect,Fg=e=>ug(e)||!dg(e),Ig=(e,t)=>t.length===0&&!Array.isArray(e)&&!hg(e);function Lg(e,t,n=new WeakMap){if(e===t)return!0;if(Fg(e)||Fg(t))return Object.is(e,t);if(lg(e)&&lg(t))return Object.is(e.getTime(),t.getTime());let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(Ig(e,r)||Ig(t,i))return Object.is(e,t);if(!r.length&&Array.isArray(e)!==Array.isArray(t))return!1;let a=n.get(e);if(a&&a.has(t))return!0;if(a)a.add(t);else{let r=new WeakSet;r.add(t),n.set(e,r)}for(let i of r){let r=e[i];if(!(i in t))return!1;if(i!==`ref`){let e=t[i];if(lg(r)&&lg(e)||(fg(r)||Array.isArray(r))&&(fg(e)||Array.isArray(e))?!Lg(r,e,n):!Object.is(r,e))return!1}}return!0}function Rg(){let e=K.useRef(!1),t=K.useRef(void 0);return{resyncIfNeeded:K.useCallback((n,r,i)=>{if(n&&e.current){let e=r();Lg(t.current,e)||i(e)}e.current=!0},[]),snapshot:K.useCallback((e,n)=>{e&&(t.current=_g(n()))},[])}}function zg(e){let t=Mg(),{control:n=t,disabled:r,name:i,exact:a}=e||{},[o,s]=K.useState(()=>({...n._formState,defaultValues:n._defaultValues})),c=K.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),{resyncIfNeeded:l,snapshot:u}=Rg();return Pg(()=>{let e=()=>({...n._formState,defaultValues:n._defaultValues});l(!r,e,s);let t=n._subscribe({name:i,formState:c.current,exact:a,callback:e=>{!r&&s({...n._formState,...e,defaultValues:n._defaultValues})}});return()=>{t(),u(!r,e)}},[i,r,a,l,u]),K.useEffect(()=>{c.current.isValid&&n._setValid(!0)},[n]),K.useMemo(()=>Ng(o,n,c.current,!1),[o,n])}var Bg=e=>typeof e==`string`,Vg=(e,t,n,r,i)=>Bg(e)?(r&&t.watch.add(e),Q(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),Q(n,e))):(r&&(t.watchAll=!0),n);function Hg(e){let t=Mg(),{control:n=t,name:r,defaultValue:i,disabled:a,exact:o,compute:s}=e||{},c=K.useRef(i),l=K.useRef(s),u=K.useRef(void 0),d=K.useRef(n),f=K.useRef(r);l.current=s;let[p,m]=K.useState(()=>{let e=n._getWatch(r,c.current);return l.current?l.current(e):e}),h=K.useCallback(e=>{let t=Vg(r,n._names,e||n._formValues,!1,c.current);return l.current?l.current(t):t},[n._formValues,n._names,r]),g=K.useCallback(e=>{if(!a){let t=Vg(r,n._names,e||n._formValues,!1,c.current);if(l.current){let e=l.current(t);Lg(e,u.current)||(m(e),u.current=e)}else m(t)}},[n._formValues,n._names,a,r]),{resyncIfNeeded:_,snapshot:v}=Rg(),y=K.useRef(g);y.current=g;let b=K.useRef(h);b.current=h,Pg(()=>{d.current!==n||!Lg(f.current,r)?(d.current=n,f.current=r,y.current()):_(!a,()=>b.current(),e=>{m(e),u.current=e});let e=n._subscribe({name:r,formState:{values:!0},exact:o,callback:e=>{y.current(e.values)}});return()=>{e(),v(!a,()=>b.current())}},[n,o,r,a,_,v]),K.useEffect(()=>n._removeUnmounted());let x=d.current!==n,S=f.current,C=K.useMemo(()=>{if(a)return null;let e=!x&&!Lg(S,r);return x||e?h():null},[a,x,r,S,h]);return C===null?p:C}function Ug(e){let t=Mg(),{name:n,disabled:r,control:i=t,shouldUnregister:a,defaultValue:o,exact:s=!0}=e,c=mg(i._names.array,n),l=Hg({control:i,name:n,defaultValue:K.useMemo(()=>Q(i._formValues,n,Q(i._defaultValues,n,o)),[i,n,o]),exact:s}),u=zg({control:i,name:n,exact:s}),d=K.useRef(e),f=K.useRef(null),p=K.useRef(i.register(n,{...e.rules,value:l,...Og(e.disabled)?{disabled:e.disabled}:{}}));d.current=e;let m=K.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Q(u.errors,n)},isDirty:{enumerable:!0,get:()=>!!Q(u.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Q(u.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Q(u.validatingFields,n)},error:{enumerable:!0,get:()=>Q(u.errors,n)}}),[u,n]),h=K.useCallback(e=>{let t=pg(e);return Q(i._fields,n)||(p.current=i.register(n,{...d.current.rules,value:t})),p.current.onChange({target:{value:pg(e),name:n},type:vg.CHANGE})},[n,i]),g=K.useCallback(()=>p.current.onBlur({target:{value:Q(i._formValues,n),name:n},type:vg.BLUR}),[n,i._formValues]),_=K.useCallback(e=>{e&&(f.current={focus:()=>kg(e.focus)&&e.focus(),select:()=>kg(e.select)&&e.select(),setCustomValidity:t=>kg(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>kg(e.reportValidity)&&e.reportValidity()});let t=Q(i._fields,n);t&&t._f&&e&&(t._f.ref=f.current)},[i._fields,n]),v=K.useMemo(()=>({name:n,value:l,...Og(r)||u.disabled?{disabled:u.disabled||r}:{},onChange:h,onBlur:g,ref:_}),[n,r,u.disabled,h,g,_,l]);return K.useEffect(()=>{let e=i._options.shouldUnregister||a;p.current=i.register(n,{...d.current.rules,...Og(d.current.disabled)?{disabled:d.current.disabled}:{}});let t=(e,t)=>{let n=Q(i._fields,e);n&&n._f&&(n._f.mount=t)};if(t(n,!0),e){let e=_g(Q(a?i._defaultValues:i._options.values||i._defaultValues,n,Q(i._options.defaultValues,n,d.current.defaultValue)));Ag(i._defaultValues,n,e),Tg(Q(i._formValues,n))&&Ag(i._formValues,n,e)}if(!c&&i.register(n),f.current){let e=Q(i._fields,n);e&&e._f&&(e._f.ref=f.current)}return()=>{(c?e&&!i._state.action:e)?i.unregister(n):t(n,!1)}},[n,i,c,a]),K.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),K.useMemo(()=>({field:v,formState:u,fieldState:m}),[v,u,m])}var Wg=e=>e.render(Ug(e)),Gg=e=>({isOnSubmit:!e||e===yg.onSubmit,isOnBlur:e===yg.onBlur,isOnChange:e===yg.onChange,isOnAll:e===yg.all,isOnTouch:e===yg.onTouched}),Kg=(e,t,n)=>{if(n)return!1;if(t.watchAll||t.watch.has(e))return!0;for(let n of t.watch)if(e.startsWith(n)&&e.charAt(n.length)===`.`)return!0;return!1},qg=(e,t,n,r)=>{for(let i of n||Object.keys(e)){if(i===`_f`)continue;let a=n?Q(e,i):e[i];if(a){let{_f:e}=a;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!r||e.ref&&t(e.ref,e.name)&&!r)return!0;if(qg(a,t))break}else if((fg(a)||Array.isArray(a))&&qg(a,t))break}}},Jg=(e,t,n)=>{let r=Q(e,n),i=Array.isArray(r)?r:[];return Ag(i,xg,t[n]),Ag(e,n,i),e},Yg=e=>fg(e)&&!Object.keys(e).length,Xg=e=>{if(!gg)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Zg=e=>e.type===`radio`,Qg=e=>e instanceof RegExp,$g=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},e_={value:!1,isValid:!1},t_={value:!0,isValid:!0},n_=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Tg(e[0].attributes.value)?Tg(e[0].value)||e[0].value===``?t_:{value:e[0].value,isValid:!0}:t_:e_}return e_},r_={isValid:!1,value:null},i_=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,r_):r_;function a_(e,t,n=`validate`){if(Bg(e)||Array.isArray(e)&&e.every(Bg)||Og(e)&&!e)return{type:n,message:Bg(e)?e:``,ref:t}}var o_=e=>fg(e)&&!Qg(e)?e:{value:e,message:``},s_=async(e,t,n,r,i,a)=>{let{ref:o,refs:s,required:c,maxLength:l,minLength:u,min:d,max:f,pattern:p,validate:m,name:h,valueAsNumber:g,mount:_}=e._f,v=Q(n,h);if(!_||t.has(h))return{};let y=s?s[0]:o,b=e=>{if(i&&y.reportValidity){let t=Og(e)?``:e||``;s?s.forEach(e=>e.setCustomValidity(t)):y.setCustomValidity(t),y.reportValidity()}},x={},S=Zg(o),C=sg(o),w=S||C,T=(g||cg(o))&&Tg(o.value)&&Tg(v)||Xg(o)&&o.value===``||v===``||Array.isArray(v)&&!v.length,E=$g.bind(null,h,r,x),D=(e,t,n,r=bg.maxLength,i=bg.minLength)=>{let a=e?t:n;x[h]={type:e?r:i,message:a,ref:o,...E(e?r:i,a)}};if(a?!Array.isArray(v)||!v.length:c&&(!w&&(T||ug(v))||Og(v)&&!v||C&&!n_(s).isValid||S&&!i_(s).isValid)){let{value:e,message:t}=Bg(c)?{value:!!c,message:c}:o_(c);if(e&&(x[h]={type:bg.required,message:t,ref:y,...E(bg.required,t)},!r))return b(t),x}if(!T&&(!ug(d)||!ug(f))){let e,t,n=o_(f),i=o_(d);if(!ug(v)&&!lg(v)&&!isNaN(v)){let r=o.valueAsNumber||v&&+v;ug(n.value)||(e=r>n.value),ug(i.value)||(t=r<i.value)}else{let r=o.valueAsDate||new Date(v),a=e=>new Date(new Date().toDateString()+` `+e),s=o.type==`time`,c=o.type==`week`;Bg(n.value)&&v&&(e=s?a(v)>a(n.value):c?v>n.value:r>new Date(n.value)),Bg(i.value)&&v&&(t=s?a(v)<a(i.value):c?v<i.value:r<new Date(i.value))}if((e||t)&&(D(!!e,n.message,i.message,bg.max,bg.min),!r))return b(x[h].message),x}if((l||u)&&!T&&(Bg(v)||a&&Array.isArray(v))){let e=o_(l),t=o_(u),n=!ug(e.value)&&v.length>+e.value,i=!ug(t.value)&&v.length<+t.value;if((n||i)&&(D(n,e.message,t.message),!r))return b(x[h].message),x}if(p&&!T&&Bg(v)){let{value:e,message:t}=o_(p);if(Qg(e)&&!v.match(e)&&(x[h]={type:bg.pattern,message:t,ref:o,...E(bg.pattern,t)},!r))return b(t),x}if(m){if(kg(m)){let e=a_(await m(v,n),y);if(e&&(x[h]={...e,...E(bg.validate,e.message)},!r))return b(e.message),x}else if(fg(m)){let e={};for(let t in m){if(!Yg(e)&&!r)break;let i=a_(await m[t](v,n),y,t);i&&(e={...i,...E(t,i.message)},b(i.message),r&&(x[h]=e))}if(!Yg(e)&&(x[h]={ref:y,...e},!r))return x}}return b(!0),x},c_=e=>Array.isArray(e)?e:[e],l_=e=>Array.isArray(e)?e.filter(Boolean):[];function u_(e,t){let n=t.length-1,r=0;for(;r<n;){if(ug(e)){e=void 0;break}e=e[t[r]],r++}return e}function d_(e){for(let t in e)if(e.hasOwnProperty(t)&&!Tg(e[t]))return!1;return!0}function f_(e,t){if(Bg(t)&&Object.prototype.hasOwnProperty.call(e,t))return delete e[t],e;let n=Array.isArray(t)?t:wg(t)?[t]:Dg(t);if(n.some(e=>Sg.includes(String(e))))return e;let r=n.length===1?e:u_(e,n),i=n.length-1,a=n[i];return r&&delete r[a],i!==0&&(fg(r)&&Yg(r)||Array.isArray(r)&&d_(r))&&f_(e,n.slice(0,-1)),e}var p_=e=>{let t={};for(let n of Object.keys(e))if(dg(e[n])&&e[n]!==null&&!lg(e[n])){let r=p_(e[n]);for(let e of Object.keys(r))t[`${n}.${e}`]=r[e]}else t[n]=e[n];return t},m_=K.createContext(null);m_.displayName=`HookFormContext`;var h_=()=>K.useContext(m_),g_=({children:e,watch:t,getValues:n,getFieldState:r,setError:i,clearErrors:a,setValue:o,setValues:s,trigger:c,formState:l,resetField:u,reset:d,resetDefaultValues:f,handleSubmit:p,unregister:m,control:h,register:g,setFocus:_,subscribe:v})=>{let y=K.useMemo(()=>({watch:t,getValues:n,getFieldState:r,setError:i,clearErrors:a,setValue:o,setValues:s,trigger:c,formState:l,resetField:u,reset:d,resetDefaultValues:f,handleSubmit:p,unregister:m,control:h,register:g,setFocus:_,subscribe:v}),[a,h,l,r,n,p,g,d,f,u,i,_,o,s,v,c,m,t]);return K.createElement(m_.Provider,{value:y},K.createElement(jg.Provider,{value:y.control},e))},__=()=>{let e=[];return{get observers(){return e},next:t=>{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}};function v_(e,t){let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],a=t[r];if(i&&fg(i)&&a){let e=v_(i,a);fg(e)&&(n[r]=e)}else e[r]&&(n[r]=a)}return n}var y_=e=>e.type===`select-multiple`,b_=e=>Zg(e)||sg(e),x_=e=>Xg(e)&&e.isConnected;function S_(e){return Array.isArray(e)||fg(e)}function C_(e,t,n=``,r=[]){for(let i in e){let a=n?`${n}.${i}`:i,o=e[i];S_(o)&&S_(Q(t,a))?C_(o,t,a,r):r.push(a)}return r}var w_=e=>{for(let t in e)if(kg(e[t]))return!0;return!1};function T_(e){return Array.isArray(e)||fg(e)&&!w_(e)}function E_(e){return!!(e&&`_f`in e)}function D_(e){return Array.isArray(e)?!e.some(e=>!Tg(e)):!Object.keys(e).length}function O_(e,t){Array.isArray(e)?e[t]=void 0:delete e[t]}function k_(e,t={},n){for(let r in e){let i=e[r],a=n&&n[r];T_(i)&&(!Array.isArray(i)||!E_(a))?(t[r]=Array.isArray(i)?[]:{},k_(i,t[r],a),D_(t[r])&&O_(t,r)):Tg(i)||(t[r]=!0)}return t}function A_(e,t,n,r){n||=k_(t,{},r);for(let i in e){let a=e[i],o=r&&r[i];T_(a)&&(!Array.isArray(a)||!E_(o))?(Tg(t)||Fg(n[i])?n[i]=k_(a,Array.isArray(a)?[]:{},o):A_(a,ug(t)?{}:t[i],n[i],o),D_(n[i])&&O_(n,i)):Lg(a,t[i])?O_(n,i):n[i]=!0}return n}var j_=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Tg(e)?e:t?e===``?NaN:e&&+e:n&&Bg(e)?new Date(e):r?r(e):e;function M_(e){let t=e.ref;return cg(t)?t.files:Zg(t)?i_(e.refs).value:y_(t)?[...t.selectedOptions].map(({value:e})=>e):sg(t)?n_(e.refs).value:j_(t.value,e)}var N_=(e,t,n,r)=>{let i={};for(let n of e){let e=Q(t,n);e&&Ag(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},P_=e=>Tg(e)?e:Qg(e)?e.source:fg(e)?Qg(e.value)?e.value.source:e.value:e,F_=`AsyncFunction`,I_=e=>{if(!e||!e.validate)return!1;if(kg(e.validate))return e.validate.constructor.name===F_;if(fg(e.validate)){for(let t in e.validate)if(e.validate[t].constructor.name===F_)return!0}return!1},L_=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function R_(e,t,n){let r=Q(e,n);if(r||wg(n))return{error:r,name:n};let i=n.split(`.`);for(;i.length;){let r=i.join(`.`),a=Q(t,r),o=Q(e,r);if(a&&!Array.isArray(a)&&n!==r)return{name:n};if(o&&o.type)return{name:r,error:o};if(o&&o.root&&o.root.type)return{name:`${r}.root`,error:o.root};i.pop()}return{name:n}}var z_=(e,t,n,r)=>{n(e);let i=Object.keys(e).filter(e=>e!==`name`);return!i.length||r&&i.length>=Object.keys(t).length||i.find(e=>t[e]===(!r||yg.all))},B_=(e,t,n)=>!e||!t||e===t||c_(e).some(e=>e&&(n?e===t||e.startsWith(t+`.`):e.startsWith(t)||t.startsWith(e))),V_=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:!(n?r.isOnChange:i.isOnChange)||e,H_=(e,t)=>{let n=Q(e,t);!l_(n).length&&!(n!=null&&n.root)&&f_(e,t)},U_={mode:yg.onSubmit,reValidateMode:yg.onChange,shouldFocusError:!0},W_=`form`,G_=(e,t)=>{for(let n in e)n in t||delete e[n];Object.assign(e,t)},K_={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function q_(e={}){let t={...U_,...e},n={..._g(K_),isLoading:kg(t.defaultValues),errors:t.errors||{},disabled:t.disabled||!1},r={},i=(fg(t.defaultValues)||fg(t.values))&&_g(t.defaultValues||t.values)||{},a=t.shouldUnregister?{}:_g(i),o={action:!1,actionArrayLengths:new Map,mount:!1,watch:!1,keepIsValid:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},c={},l={},u=0,d=Gg(t.mode),f=Gg(t.reValidateMode),p={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},m={...p},h={...m},g={array:__(),state:__()},_=0,v=t.criteriaMode===yg.all,y=(e,t)=>n=>{clearTimeout(l[e]),l[e]=setTimeout(t,n)},b=async e=>{if(!o.keepIsValid&&!t.disabled&&(m.isValid||h.isValid||e)){let e=++_,i;t.resolver?(i=Yg((await j()).errors),e===_&&x()):i=await P({fields:r,onlyCheckValid:!0,eventType:vg.VALID}),e===_&&i!==n.isValid&&g.state.next({isValid:i})}},x=(e,r)=>{!t.disabled&&(m.isValidating||m.validatingFields||h.isValidating||h.validatingFields)&&((e||Array.from(s.mount)).forEach(e=>{e&&(r?Ag(n.validatingFields,e,r):f_(n.validatingFields,e))}),g.state.next({validatingFields:n.validatingFields,isValidating:!Yg(n.validatingFields)}))},S=()=>{n.dirtyFields=A_(i,a,void 0,r)},C=(e,i=[],s,c,l=!0,u=!0)=>{if(c&&s&&!t.disabled){if(o.action=!0,!o.actionArrayLengths.has(e)){let t=Q(r,e);o.actionArrayLengths.set(e,Array.isArray(t)?t.length:0)}if(u&&Array.isArray(Q(r,e))){let t=s(Q(r,e),c.argA,c.argB);l&&Ag(r,e,t)}if(u&&Array.isArray(Q(n.errors,e))){let t=Q(n.errors,e),r=t.root,i=s(t,c.argA,c.argB)||t;r&&(i.root=r),l&&Ag(n.errors,e,i),H_(n.errors,e)}if((m.touchedFields||h.touchedFields)&&u&&Array.isArray(Q(n.touchedFields,e))){let t=s(Q(n.touchedFields,e),c.argA,c.argB);l&&Ag(n.touchedFields,e,t)}(m.dirtyFields||h.dirtyFields)&&S(),g.state.next({name:e,isDirty:I(e,i),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Ag(a,e,i)},w=(e,t)=>{Ag(n.errors,e,t),n.errors={...n.errors},g.state.next({errors:n.errors})},T=e=>{n.errors=e,g.state.next({errors:n.errors,isValid:!1})},E=e=>{let t=wg(e)?[e]:Dg(e),n=a,r=i;for(let e=0;e<t.length-1;e++){let i=t[e];if(n=ug(n)?n:n[i],r=ug(r)?r:r[i],n===null&&r!==null)return!0}return!1},D=e=>{if(!o.actionArrayLengths.size)return!1;let t=wg(e)?[e]:Dg(e),n=a,r=``,i=-1,s=0;for(let e=0;e<t.length;e++){if(ug(n))return!1;let a=t[e];if(r=r?`${r}.${a}`:a,Array.isArray(n)&&+a>=n.length)return i===-1?!1:e!==i||+a<s;o.actionArrayLengths.has(r)&&(i=e+1,s=o.actionArrayLengths.get(r)),n=n[a]}return!1},O=(t,c,l,u)=>{let d=Q(r,t);if(d){if(E(t)||D(t))return;let r=Tg(Q(a,t)),f=Q(a,t,Tg(l)?Q(i,t):l);Tg(f)||u&&u.defaultChecked||c?Ag(a,t,c?f:M_(d._f)):R(t,f),o.mount&&!o.action&&(b(),r&&n.isDirty&&(m.isDirty||h.isDirty)&&(I()||(n.isDirty=!1,g.state.next({...n}))),e.shouldUnregister&&r&&!Tg(Q(a,t))&&Kg(t,s)&&(o.watch=!0))}},k=(e,o,s,c,l)=>{let u=!1,d=!1,f={name:e};if(!t.disabled||c===!0){if(!s||c){let t=Lg(Q(i,e),o);(m.isDirty||h.isDirty)&&(d=n.isDirty,n.isDirty=f.isDirty=!t||I(),u=d!==f.isDirty),d=!!Q(n.dirtyFields,e),t===n.isDirty?t?f_(n.dirtyFields,e):Ag(n.dirtyFields,e,!0):G_(n.dirtyFields,A_(i,a,void 0,r)),f.dirtyFields=n.dirtyFields,u||=(m.dirtyFields||h.dirtyFields)&&d!==!t}if(s){let t=Q(n.touchedFields,e);t||(Ag(n.touchedFields,e,s),f.touchedFields=n.touchedFields,u||=(m.touchedFields||h.touchedFields)&&t!==s)}u&&l&&g.state.next(f)}return u?f:{}},A=(e,r,i,a)=>{let o=Q(n.errors,e),s=(m.isValid||h.isValid)&&Og(r)&&n.isValid!==r;if(t.delayError&&i?(c[e]=y(e,()=>w(e,i)),c[e](t.delayError)):(clearTimeout(l[e]),delete c[e],i?Ag(n.errors,e,i):f_(n.errors,e),n.errors={...n.errors}),(i?!Lg(o,i):o)||!Yg(a)||s){let t={...a,...s&&Og(r)?{isValid:r}:{},errors:n.errors,name:e};n={...n,...t},g.state.next(t)}},j=async e=>(x(e,!0),await t.resolver(a,t.context,N_(e||s.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),M=async e=>{let{errors:t}=await j(e);if(x(e),e){for(let r of e){let e=Q(t,r);e?s.array.has(r)&&fg(e)&&!Object.keys(e).some(e=>!Number.isNaN(Number(e)))?Jg(n.errors,{[r]:e},r):Ag(n.errors,r,e):f_(n.errors,r)}n.errors={...n.errors}}else n.errors=t;return t},N=async({name:t,eventType:r})=>{if(e.validate){let i=await e.validate({formValues:a,formState:n,name:t,eventType:r});if(fg(i))for(let e in i){let t=i[e];t&&U(`${W_}.${e}`,{message:Bg(t.message)?t.message:``,type:t.type||bg.validate})}else Bg(i)||!i?U(W_,{message:i||``,type:bg.validate}):oe(W_);return i}return!0},P=async({fields:r,onlyCheckValid:i,name:o,eventType:c,context:l={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(l.runRootValidation=!0,!await N({name:o,eventType:c})&&(l.valid=!1,i)))return l.valid;for(let o in r){let u=r[o];if(u){let{_f:r,...d}=u;if(r){let o=s.array.has(r.name),c=u._f&&I_(u._f),d=m.validatingFields||m.isValidating||h.validatingFields||h.isValidating;c&&d&&x([r.name],!0);let f=await s_(u,s.disabled,a,v,t.shouldUseNativeValidation&&!i,o);if(c&&d&&x([r.name]),f[r.name]&&(l.valid=!1,i)||(!i&&(Q(f,r.name)?o?Jg(n.errors,f,r.name):Ag(n.errors,r.name,f[r.name]):f_(n.errors,r.name)),e.shouldUseNativeValidation&&f[r.name]))break}!Yg(d)&&await P({context:l,onlyCheckValid:i,fields:d,name:o,eventType:c})}}return l.valid},F=()=>{for(let e of s.unMount){let t=Q(r,e);t&&(t._f.refs?t._f.refs.every(e=>!x_(e)):!x_(t._f.ref))&&ce(e)}s.unMount=new Set},I=(e,t)=>(e&&t&&Ag(a,e,t),!Lg(o.mount?a:i,i)),L=(e,t,n)=>Vg(e,s,{...o.mount?a:Tg(t)||Bg(e)?i:t},n,t),ee=e=>l_(Q(o.mount?a:i,e,t.shouldUnregister?Q(i,e,[]):[])),R=(e,t,n={},i=!1,o=!1,s=!1)=>{let c=Q(r,e),l=t;if(c){let n=c._f;n&&(!n.disabled&&Ag(a,e,j_(t,n)),l=Xg(n.ref)&&ug(t)?``:t,y_(n.ref)?[...n.ref.options].forEach(e=>e.selected=l.includes(e.value)):n.refs?sg(n.ref)?n.refs.forEach(e=>{(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(l)?!!l.find(t=>t===e.value):l===e.value||!!l)}):n.refs.forEach(e=>e.checked=e.value===l):cg(n.ref)?n.ref.value=``:(n.ref.value=l,!n.ref.type&&!o&&!s&&g.state.next({name:e,values:i?a:_g(a)})))}(n.shouldDirty||n.shouldTouch)&&k(e,l,n.shouldTouch,n.shouldDirty,!o),n.shouldValidate&&ie(e,{delayError:n.delayError})},te=(e,t,n,i=!1,o=!1,c=!1)=>{s.array.has(e)&&g.array.next({name:e,values:i?a:_g(a)});for(let a in t){if(!t.hasOwnProperty(a))return;let l=t[a],u=e+`.`+a,d=Q(r,u);(s.array.has(e)||fg(l)||d&&!d._f)&&!lg(l)?te(u,l,n,i,o,c):R(u,l,n,i,o,c)}},z=(e,t,i,c,l=!1)=>{let u=Q(r,e),d=s.array.has(e),f=c?t:_g(t),p=Lg(Q(a,e),f);if(p||Ag(a,e,f),d)g.array.next({name:e,values:c?a:_g(a)}),(m.isDirty||m.dirtyFields||h.isDirty||h.dirtyFields)&&i.shouldDirty&&(S(),l||g.state.next({name:e,dirtyFields:n.dirtyFields,isDirty:I(e,f)}));else{let t=Array.isArray(f)&&!f.length||Yg(f),n=!p&&!l;!u||u._f||ug(f)||t?R(e,f,i,c,l,n):te(e,f,i,c,l,n)}if(!p&&!l){let t=Kg(e,s),r=c?a:_g(a);g.state.next({...t&&n,name:o.mount||t?e:void 0,values:r})}},B=(e,t,n={})=>z(e,t,n,!1),ne=(e,t={})=>{let r=kg(e)?e(a):e;if(!Lg(a,r)){a={...a,...r};let e=p_(r);for(let n of s.mount)n in e&&z(n,e[n],t,!0,!0);g.state.next({...n,name:void 0,type:void 0,...u?{values:a}:{}}),t.shouldValidate&&b()}},re=async i=>{o.mount=!0;let l=i.target,p=l.name,_=!0,y=Q(r,p),S=e=>{_=Number.isNaN(e)||lg(e)&&isNaN(e.getTime())||Lg(e,Q(a,p,e))};if(y){let o,C,w=l.type?M_(y._f):pg(i),T=i.type===vg.BLUR||i.type===vg.FOCUS_OUT,E=!L_(y._f)&&!e.validate&&!t.resolver&&!Q(n.errors,p)&&!y._f.deps,D=E||V_(T,Q(n.touchedFields,p),n.isSubmitted,f,d),O=Kg(p,s,T);if(Ag(a,p,w),T){if(!l||!l.readOnly){y._f.onBlur&&y._f.onBlur(i);let e=c[p];e&&e(0)}}else y._f.onChange&&y._f.onChange(i);let M=k(p,w,T),F=!Yg(M)||O;if(!T&&g.state.next({name:p,type:i.type,...u?{values:_g(a)}:{}}),D)return(!E||!n.isValid)&&(m.isValid||h.isValid)&&(t.mode===`onBlur`?T&&b():T||b()),F&&g.state.next({name:p,...O?{}:M});if(!t.resolver&&e.validate&&await N({name:p,eventType:i.type}),!T&&O&&g.state.next({...n}),t.resolver){let{errors:e}=await j([p]);if(x([p]),S(w),!_){!Yg(M)&&g.state.next(M);return}let t=R_(n.errors,r,p),i=R_(e,r,t.name||p);o=i.error,p=i.name,C=Yg(e)}else x([p],!0),o=(await s_(y,s.disabled,a,v,t.shouldUseNativeValidation))[p],x([p]),S(w),_&&(o?C=!1:(m.isValid||h.isValid)&&(C=await P({fields:r,onlyCheckValid:!0,name:p,eventType:i.type})));_&&(y._f.deps&&(!Array.isArray(y._f.deps)||y._f.deps.length>0)&&ie(y._f.deps),A(p,C,o,M))}},V=(e,t)=>{if(Q(n.errors,t)&&e.focus)return e.focus(),1},ie=async(e,i={})=>{let a,o,u=c_(e);if(t.resolver){let t=await M(Tg(e)?e:u);a=Yg(t),o=e?!u.some(e=>Q(t,e)):a}else e?(o=(await Promise.all(u.map(async e=>{let t=Q(r,e);return await P({fields:t&&t._f?{[e]:t}:t,eventType:vg.TRIGGER})}))).every(Boolean),(o||n.isValid)&&b()):o=a=await P({fields:r,name:e,eventType:vg.TRIGGER});if(i.delayError&&t.delayError&&Bg(e)){let r=Q(n.errors,e);r?(f_(n.errors,e),c[e]=y(e,()=>w(e,r)),c[e](t.delayError)):(clearTimeout(l[e]),delete c[e])}return g.state.next({...!Bg(e)||(m.isValid||h.isValid)&&a!==n.isValid?{}:{name:e},...t.resolver||!e?{isValid:a}:{},errors:n.errors}),i.shouldFocus&&!o&&qg(r,V,e?u:s.mount),o},ae=(e,t)=>{let r={...o.mount?a:i};return t&&(r=v_(t.dirtyFields?n.dirtyFields:n.touchedFields,r)),Tg(e)?r:Bg(e)?Q(r,e):e.map(e=>Q(r,e))},H=(e,t)=>({invalid:!!Q((t||n).errors,e),isDirty:!!Q((t||n).dirtyFields,e),error:Q((t||n).errors,e),isValidating:!!Q(n.validatingFields,e),isTouched:!!Q((t||n).touchedFields,e)}),oe=e=>{let t=e?c_(e):void 0;t?.forEach(e=>f_(n.errors,e)),t?t.forEach(e=>{g.state.next({name:e,errors:n.errors})}):(n.errors={},g.state.next({errors:n.errors}))},U=(e,t,i)=>{let a=(Q(r,e,{_f:{}})._f||{}).ref,{ref:o,message:s,type:c,...l}=Q(n.errors,e)||{};Ag(n.errors,e,{...l,...t,ref:a}),g.state.next({name:e,errors:n.errors,isValid:!1}),i&&i.shouldFocus&&a&&a.focus&&a.focus()},se=(e,t)=>{if(kg(e)){u++;let{unsubscribe:n}=g.state.subscribe({next:n=>`values`in n&&e(n.values||L(void 0,t),n)}),r=!1;return{unsubscribe:()=>{r||(r=!0,u--,n())}}}return L(e,t,!0)},W=e=>{let t=!!e.formState?.values;t&&u++;let{unsubscribe:r}=g.state.subscribe({next:t=>{if(B_(e.name,t.name,e.exact)&&z_(t,e.formState||m,ve,e.reRenderRoot)){let r={...a};e.callback({values:r,...n,...t,defaultValues:i})}}});if(!t)return r;let o=!1;return()=>{o||(o=!0,u--,r())}},G=e=>(o.mount=!0,h={...h,...e.formState},W({...e,formState:{...p,...e.formState}})),ce=(e,o={})=>{for(let c of e?c_(e):s.mount)s.mount.delete(c),s.array.delete(c),o.keepValue||(f_(r,c),f_(a,c)),!o.keepError&&f_(n.errors,c),!o.keepDirty&&f_(n.dirtyFields,c),!o.keepTouched&&f_(n.touchedFields,c),!o.keepIsValidating&&f_(n.validatingFields,c),!t.shouldUnregister&&!o.keepDefaultValue&&f_(i,c);g.state.next({values:_g(a)}),g.state.next({...n,...o.keepDirty?{isDirty:I()}:{}}),!o.keepIsValid&&b()},le=({disabled:e,name:t})=>{if(Og(e)&&o.mount||e||s.disabled.has(t)){let n=s.disabled.has(t)!==!!e;e?s.disabled.add(t):s.disabled.delete(t),n&&o.mount&&!o.action&&b()}},ue=(e,n={})=>{let a=Q(r,e),c=Og(n.disabled)||Og(t.disabled),l=!s.registerName.has(e)&&a&&a._f&&!a._f.mount;return Ag(r,e,{...a||{},_f:{...a&&a._f?a._f:{ref:{name:e}},name:e,mount:!0,...n}}),s.mount.add(e),a&&!l?le({disabled:Og(n.disabled)?n.disabled:t.disabled,name:e}):O(e,!0,n.value),{...c?{disabled:n.disabled||t.disabled}:{},...t.progressive?{required:!!n.required,min:P_(n.min),max:P_(n.max),minLength:P_(n.minLength),maxLength:P_(n.maxLength),pattern:P_(n.pattern)}:{},name:e,onChange:re,onBlur:re,ref:c=>{if(c){s.registerName.add(e),ue(e,n),s.registerName.delete(e),a=Q(r,e);let t=Tg(c.value)&&c.querySelectorAll&&c.querySelectorAll(`input,select,textarea`)[0]||c,o=b_(t),l=a._f.refs||[];if(o?l.find(e=>e===t):t===a._f.ref)return;let u={...a._f};o?(u.refs=[...l.filter(x_),t,...Array.isArray(Q(i,e))?[{}]:[]],u.ref={type:t.type,name:e}):(u.ref=t,delete u.refs),Ag(r,e,{_f:u}),O(e,!1,void 0,t)}else a=Q(r,e,{}),a._f&&(a._f.mount=!1),(t.shouldUnregister||n.shouldUnregister)&&!(mg(s.array,e)&&o.action)&&s.unMount.add(e)}}},de=()=>t.shouldFocusError&&!t.shouldUseNativeValidation&&qg(r,V,s.mount),fe=e=>{Og(e)&&(g.state.next({disabled:e}),qg(r,(t,n)=>{let i=Q(r,n);i&&(t.disabled=i._f.disabled||e,Array.isArray(i._f.refs)&&i._f.refs.forEach(t=>{t.disabled=i._f.disabled||e}))},0,!1))},pe=(e,i)=>async o=>{let c,l;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let u=_g(a);if(g.state.next({isSubmitting:!0}),t.resolver){let{errors:e,values:t}=await j();x(),n.errors=e,u=_g(t)}else await P({fields:r,eventType:vg.SUBMIT});if(s.disabled.size)for(let e of s.disabled)f_(u,e);if(f_(n.errors,xg),Yg(n.errors)){g.state.next({errors:{}});try{c=await e(u,o)}catch(e){l=e}}else i&&await i({...n.errors},o),de(),setTimeout(de);if(g.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Yg(n.errors)&&!l,submitCount:n.submitCount+1,errors:n.errors}),l)throw l;return c},me=(e,t={})=>{Q(r,e)&&(Tg(t.defaultValue)?B(e,_g(Q(i,e))):(B(e,t.defaultValue),Ag(i,e,_g(t.defaultValue))),t.keepTouched||f_(n.touchedFields,e),t.keepDirty||(f_(n.dirtyFields,e),n.isDirty=t.defaultValue?I(e,_g(Q(i,e))):I()),t.keepError||(f_(n.errors,e),m.isValid&&b()),g.state.next({...n}))},he=(e,c={})=>{let l=e?_g(e):i,u=_g(l),d=Yg(e),f=u,p=r;if(c.keepDefaultValues||(i=l),!c.keepValues){if(c.keepDirtyValues){let e=new Set([...s.mount,...C_(A_(i,a,void 0,p),n.dirtyFields)]);for(let t of Array.from(e)){let e=Q(n.dirtyFields,t),r=Q(a,t),i=Q(f,t);e&&!Tg(r)?Ag(f,t,r):!e&&!Tg(i)&&B(t,i)}}else{if(gg&&Tg(e))for(let e of s.mount){let t=Q(r,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(Xg(e)){let t=e.closest(`form`);if(t){t.reset();break}}}}if(c.keepFieldsRef)for(let e of s.mount)B(e,Q(f,e));else r={}}if(t.shouldUnregister){if(a=c.keepDefaultValues?_g(i):{},c.keepFieldsRef)for(let e of s.mount)Ag(a,e,Q(f,e))}else a=_g(f);g.array.next({values:{...f}}),g.state.next({name:void 0,type:void 0,values:{...f}})}s={mount:c.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:``},o.mount=!m.isValid||!!c.keepIsValid||!!c.keepDirtyValues||!t.shouldUnregister&&!Yg(f),o.watch=!!t.shouldUnregister,o.keepIsValid=!!c.keepIsValid,o.action=!1,o.actionArrayLengths.clear(),c.keepErrors||(n.errors={}),g.state.next({submitCount:c.keepSubmitCount?n.submitCount:0,isDirty:d?!1:c.keepDirty?n.isDirty:c.keepValues?I():!(!c.keepDefaultValues||Lg(e,i)),isSubmitted:c.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:d?{}:c.keepDirtyValues?c.keepDefaultValues&&a?A_(i,a,void 0,p):n.dirtyFields:c.keepDefaultValues&&e?A_(i,e,void 0,p):c.keepDirty?n.dirtyFields:{},touchedFields:c.keepTouched?n.touchedFields:{},errors:c.keepErrors?n.errors:{},isSubmitSuccessful:c.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},ge=(e,n)=>he(kg(e)?e(a):e,{...t.resetOptions,...n}),_e=(e,t={})=>{let n=Q(r,e),i=n&&n._f;if(i){let e=i.refs?i.refs[0]:i.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&kg(e.select)&&e.select()})}},ve=e=>{let{name:t,type:r,values:i,...a}=e;n={...n,...a}};g.state.subscribe({next:ve});let ye={control:{register:ue,unregister:ce,getFieldState:H,handleSubmit:pe,setError:U,_subscribe:W,_runSchema:j,_updateIsValidating:x,_focusError:de,_getWatch:L,_getDirty:I,_setValid:b,_setFieldArray:C,_setDisabledField:le,_setErrors:T,_getFieldArray:ee,_reset:he,_resetDefaultValues:()=>kg(t.defaultValues)&&t.defaultValues().then(e=>{ge(e,t.resetOptions),g.state.next({isLoading:!1})}),_removeUnmounted:F,_disableForm:fe,_subjects:g,_proxyFormState:m,get _fields(){return r},get _formValues(){return a},get _state(){return o},set _state(e){o=e},get _defaultValues(){return i},get _names(){return s},set _names(e){s=e},get _formState(){return n},get _options(){return t},set _options(e){t={...t,...e},d=Gg(t.mode),f=Gg(t.reValidateMode)}},subscribe:G,trigger:ie,register:ue,handleSubmit:pe,watch:se,setValue:B,setValues:ne,getValues:ae,reset:ge,resetField:me,resetDefaultValues:(e,t={})=>{if(i=_g(e),!t.keepDirty){let e=A_(i,a,void 0,r);n.dirtyFields=e,n.isDirty=!Yg(e)}t.keepIsValid||b(),g.state.next({...n,defaultValues:i})},clearErrors:oe,unregister:ce,setError:U,setFocus:_e,getFieldState:H};return{...ye,formControl:ye}}function J_(e={}){let t=K.useRef(void 0),n=K.useRef(void 0),r=K.useRef(e.formControl),[i,a]=K.useState(()=>({..._g(K_),isLoading:kg(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:kg(e.defaultValues)?void 0:e.defaultValues}));if(!t.current||e.formControl&&r.current!==e.formControl){if(r.current=e.formControl,e.formControl)t.current={...e.formControl,formState:i},e.defaultValues&&!kg(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{let{formControl:n,...r}=q_(e);t.current={...r,formState:i}}}let o=t.current.control;o._options=e;let{resyncIfNeeded:s,snapshot:c}=Rg();return Pg(()=>{let e=()=>({...o._formState,defaultValues:o._defaultValues});s(!0,e,a);let t=o._subscribe({formState:o._proxyFormState,callback:()=>a({...o._formState,defaultValues:o._defaultValues}),reRenderRoot:!0});return a(e=>({...e,isReady:!0})),o._formState.isReady=!0,()=>{t(),c(!0,e)}},[o,s,c]),K.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),K.useEffect(()=>{e.mode&&(o._options.mode=e.mode),e.reValidateMode&&(o._options.reValidateMode=e.reValidateMode)},[o,e.mode,e.reValidateMode]),K.useEffect(()=>{e.errors&&(o._setErrors(e.errors),o._focusError())},[o,e.errors]),K.useEffect(()=>{e.shouldUnregister&&o._subjects.state.next({values:o._getWatch()})},[o,e.shouldUnregister]),K.useEffect(()=>{if(o._proxyFormState.isDirty){let e=o._getDirty();e!==i.isDirty&&o._subjects.state.next({isDirty:e})}},[o,i.isDirty]),K.useEffect(()=>{e.values&&!Lg(e.values,n.current)?(o._reset(e.values,{keepFieldsRef:!0,...o._options.resetOptions}),o._options.resetOptions?.keepIsValid||o._setValid(),n.current=e.values,a(e=>({...e}))):o._resetDefaultValues()},[o,e.values]),K.useEffect(()=>{o._state.mount||(o._setValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=K.useMemo(()=>Ng(i,o),[o,i]),t.current}var Y_=Tt(`text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70`),X_=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(ei,{ref:n,className:J(Y_(),e),...t}));X_.displayName=ei.displayName;var Z_=g_,Q_=K.createContext(null),$_=({...e})=>(0,q.jsx)(Q_.Provider,{value:{name:e.name},children:(0,q.jsx)(Wg,{...e})}),ev=()=>{let e=K.useContext(Q_),t=K.useContext(tv),{getFieldState:n,formState:r}=h_();if(!e)throw Error(`useFormField should be used within <FormField>`);if(!t)throw Error(`useFormField should be used within <FormItem>`);let i=n(e.name,r),{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...i}},tv=K.createContext(null),nv=K.forwardRef(({className:e,...t},n)=>{let r=K.useId();return(0,q.jsx)(tv.Provider,{value:{id:r},children:(0,q.jsx)(`div`,{ref:n,className:J(`space-y-2`,e),...t})})});nv.displayName=`FormItem`;var rv=K.forwardRef(({className:e,...t},n)=>{let{error:r,formItemId:i}=ev();return(0,q.jsx)(X_,{ref:n,className:J(r&&`text-destructive`,e),htmlFor:i,...t})});rv.displayName=`FormLabel`;var iv=K.forwardRef(({...e},t)=>{let{error:n,formItemId:r,formDescriptionId:i,formMessageId:a}=ev();return(0,q.jsx)(zt,{ref:t,id:r,"aria-describedby":n?`${i} ${a}`:`${i}`,"aria-invalid":!!n,...e})});iv.displayName=`FormControl`;var av=K.forwardRef(({className:e,...t},n)=>{let{formDescriptionId:r}=ev();return(0,q.jsx)(`p`,{ref:n,id:r,className:J(`text-sm text-muted-foreground`,e),...t})});av.displayName=`FormDescription`;var ov=K.forwardRef(({className:e,children:t,...n},r)=>{let{error:i,formMessageId:a}=ev(),o=i?String(i?.message??``):t;return o?(0,q.jsx)(`p`,{ref:r,id:a,className:J(`text-sm font-medium text-destructive`,e),...n,children:o}):null});ov.displayName=`FormMessage`;var sv=Ln,cv=Gr,lv=K.forwardRef(({className:e,align:t=`center`,sideOffset:n=4,...r},i)=>(0,q.jsx)(rr,{ref:i,align:t,sideOffset:n,className:J(`z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-hover-card-content-transform-origin)`,e),...r}));lv.displayName=rr.displayName;var uv=Object.defineProperty,dv=Object.defineProperties,fv=Object.getOwnPropertyDescriptors,pv=Object.getOwnPropertySymbols,mv=Object.prototype.hasOwnProperty,hv=Object.prototype.propertyIsEnumerable,gv=(e,t,n)=>t in e?uv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_v=(e,t)=>{for(var n in t||={})mv.call(t,n)&&gv(e,n,t[n]);if(pv)for(var n of pv(t))hv.call(t,n)&&gv(e,n,t[n]);return e},vv=(e,t)=>dv(e,fv(t)),yv=(e,t)=>{var n={};for(var r in e)mv.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&pv)for(var r of pv(e))t.indexOf(r)<0&&hv.call(e,r)&&(n[r]=e[r]);return n};function bv(e){return[setTimeout(e,0),setTimeout(e,10),setTimeout(e,50)]}function xv(e){let t=K.useRef();return K.useEffect(()=>{t.current=e}),t.current}var Sv=18,Cv=40,wv=`${Cv}px`,Tv=[`[data-lastpass-icon-root]`,`com-1password-button`,`[data-dashlanecreated]`,`[style$="2147483647 !important;"]`].join(`,`);function Ev({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r}){let[i,a]=K.useState(!1),[o,s]=K.useState(!1),[c,l]=K.useState(!1),u=K.useMemo(()=>n!==`none`&&(n===`increase-width`||n===`experimental-no-flickering`)&&i&&o,[i,o,n]),d=K.useCallback(()=>{let r=e.current,i=t.current;if(!r||!i||c||n===`none`)return;let o=r,s=o.getBoundingClientRect().left+o.offsetWidth,u=o.getBoundingClientRect().top+o.offsetHeight/2,d=s-Sv,f=u;document.querySelectorAll(Tv).length===0&&document.elementFromPoint(d,f)===r||(a(!0),l(!0))},[e,t,c,n]);return K.useEffect(()=>{let t=e.current;if(!t||n===`none`)return;function r(){let e=window.innerWidth-t.getBoundingClientRect().right;s(e>=Cv)}r();let i=setInterval(r,1e3);return()=>{clearInterval(i)}},[e,n]),K.useEffect(()=>{let e=r||document.activeElement===t.current;if(n===`none`||!e)return;let i=setTimeout(d,0),a=setTimeout(d,2e3),o=setTimeout(d,5e3),s=setTimeout(()=>{l(!0)},6e3);return()=>{clearTimeout(i),clearTimeout(a),clearTimeout(o),clearTimeout(s)}},[t,r,n,d]),{hasPWMBadge:i,willPushPWMBadge:u,PWM_BADGE_SPACE_WIDTH:wv}}var Dv=K.createContext({}),Ov=K.forwardRef((e,t)=>{var n=e,{value:r,onChange:i,maxLength:a,textAlign:o=`left`,pattern:s,placeholder:c,inputMode:l=`numeric`,onComplete:u,pushPasswordManagerStrategy:d=`increase-width`,pasteTransformer:f,containerClassName:p,noScriptCSSFallback:m=Av,render:h,children:g}=n,_=yv(n,[`value`,`onChange`,`maxLength`,`textAlign`,`pattern`,`placeholder`,`inputMode`,`onComplete`,`pushPasswordManagerStrategy`,`pasteTransformer`,`containerClassName`,`noScriptCSSFallback`,`render`,`children`]),v;let[y,b]=K.useState(typeof _.defaultValue==`string`?_.defaultValue:``),x=r??y,S=xv(x),C=K.useCallback(e=>{i?.(e),b(e)},[i]),w=K.useMemo(()=>s?typeof s==`string`?new RegExp(s):s:null,[s]),T=K.useRef(null),E=K.useRef(null),D=K.useRef({value:x,onChange:C,isIOS:typeof window<`u`&&((v=window==null?void 0:window.CSS)?.supports)?.call(v,`-webkit-touch-callout`,`none`)}),O=K.useRef({prev:[T.current?.selectionStart,T.current?.selectionEnd,T.current?.selectionDirection]});K.useImperativeHandle(t,()=>T.current,[]),K.useEffect(()=>{let e=T.current,t=E.current;if(!e||!t)return;D.current.value!==e.value&&D.current.onChange(e.value),O.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection];function n(){if(document.activeElement!==e){P(null),I(null);return}let t=e.selectionStart,n=e.selectionEnd,r=e.selectionDirection,i=e.maxLength,a=e.value,o=O.current.prev,s=-1,c=-1,l;if(a.length!==0&&t!==null&&n!==null){let e=t===n,r=t===a.length&&a.length<i;if(e&&!r){let e=t;if(e===0)s=0,c=1,l=`forward`;else if(e===i)s=e-1,c=e,l=`backward`;else if(i>1&&a.length>1){let t=0;if(o[0]!==null&&o[1]!==null){l=e<o[1]?`backward`:`forward`;let n=o[0]===o[1]&&o[0]<i;l===`backward`&&!n&&(t=-1)}s=t+e,c=t+e+1}}s!==-1&&c!==-1&&s!==c&&T.current.setSelectionRange(s,c,l)}let u=s===-1?t:s,d=c===-1?n:c,f=l??r;P(u),I(d),O.current.prev=[u,d,f]}if(document.addEventListener(`selectionchange`,n,{capture:!0}),n(),document.activeElement===e&&M(!0),!document.getElementById(`input-otp-style`)){let e=document.createElement(`style`);if(e.id=`input-otp-style`,document.head.appendChild(e),e.sheet){let t=`background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;`;kv(e.sheet,`[data-input-otp]::selection { background: transparent !important; color: transparent !important; }`),kv(e.sheet,`[data-input-otp]:autofill { ${t} }`),kv(e.sheet,`[data-input-otp]:-webkit-autofill { ${t} }`),kv(e.sheet,`@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }`),kv(e.sheet,`[data-input-otp] + * { pointer-events: all !important; }`)}}let r=()=>{t&&t.style.setProperty(`--root-height`,`${e.clientHeight}px`)};r();let i=new ResizeObserver(r);return i.observe(e),()=>{document.removeEventListener(`selectionchange`,n,{capture:!0}),i.disconnect()}},[]);let[k,A]=K.useState(!1),[j,M]=K.useState(!1),[N,P]=K.useState(null),[F,I]=K.useState(null);K.useEffect(()=>{bv(()=>{var e;(e=T.current)==null||e.dispatchEvent(new Event(`input`));let t=T.current?.selectionStart,n=T.current?.selectionEnd,r=T.current?.selectionDirection;t!==null&&n!==null&&(P(t),I(n),O.current.prev=[t,n,r])})},[x,j]),K.useEffect(()=>{S!==void 0&&x!==S&&S.length<a&&x.length===a&&u?.(x)},[a,u,S,x]);let L=Ev({containerRef:E,inputRef:T,pushPasswordManagerStrategy:d,isFocused:j}),ee=K.useCallback(e=>{let t=e.currentTarget.value.slice(0,a);if(t.length>0&&w&&!w.test(t)){e.preventDefault();return}typeof S==`string`&&t.length<S.length&&document.dispatchEvent(new Event(`selectionchange`)),C(t)},[a,C,S,w]),R=K.useCallback(()=>{var e;if(T.current){let t=Math.min(T.current.value.length,a-1),n=T.current.value.length;(e=T.current)==null||e.setSelectionRange(t,n),P(t),I(n)}M(!0)},[a]),te=K.useCallback(e=>{let t=T.current;if(!f&&(!D.current.isIOS||!e.clipboardData||!t))return;let n=e.clipboardData.getData(`text/plain`),r=f?f(n):n;e.preventDefault();let i=T.current?.selectionStart,o=T.current?.selectionEnd,s=(i===o?x.slice(0,i)+r+x.slice(i):x.slice(0,i)+r+x.slice(o)).slice(0,a);if(s.length>0&&w&&!w.test(s))return;t.value=s,C(s);let c=Math.min(s.length,a-1),l=s.length;t.setSelectionRange(c,l),P(c),I(l)},[a,C,w,x]),z=K.useMemo(()=>({position:`relative`,cursor:_.disabled?`default`:`text`,userSelect:`none`,WebkitUserSelect:`none`,pointerEvents:`none`}),[_.disabled]),B=K.useMemo(()=>({position:`absolute`,inset:0,width:L.willPushPWMBadge?`calc(100% + ${L.PWM_BADGE_SPACE_WIDTH})`:`100%`,clipPath:L.willPushPWMBadge?`inset(0 ${L.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:`100%`,display:`flex`,textAlign:o,opacity:`1`,color:`transparent`,pointerEvents:`all`,background:`transparent`,caretColor:`transparent`,border:`0 solid transparent`,outline:`0 solid transparent`,boxShadow:`none`,lineHeight:`1`,letterSpacing:`-.5em`,fontSize:`var(--root-height)`,fontFamily:`monospace`,fontVariantNumeric:`tabular-nums`}),[L.PWM_BADGE_SPACE_WIDTH,L.willPushPWMBadge,o]),ne=K.useMemo(()=>K.createElement(`input`,vv(_v({autoComplete:_.autoComplete||`one-time-code`},_),{"data-input-otp":!0,"data-input-otp-placeholder-shown":x.length===0||void 0,"data-input-otp-mss":N,"data-input-otp-mse":F,inputMode:l,pattern:w?.source,"aria-placeholder":c,style:B,maxLength:a,value:x,ref:T,onPaste:e=>{var t;te(e),(t=_.onPaste)==null||t.call(_,e)},onChange:ee,onMouseOver:e=>{var t;A(!0),(t=_.onMouseOver)==null||t.call(_,e)},onMouseLeave:e=>{var t;A(!1),(t=_.onMouseLeave)==null||t.call(_,e)},onFocus:e=>{var t;R(),(t=_.onFocus)==null||t.call(_,e)},onBlur:e=>{var t;M(!1),(t=_.onBlur)==null||t.call(_,e)}})),[ee,R,te,l,B,a,F,N,_,w?.source,x]),re=K.useMemo(()=>({slots:Array.from({length:a}).map((e,t)=>{let n=j&&N!==null&&F!==null&&(N===F&&t===N||t>=N&&t<F),r=x[t]===void 0?null:x[t];return{char:r,placeholderChar:x[0]===void 0?c?.[t]??null:null,isActive:n,hasFakeCaret:n&&r===null}}),isFocused:j,isHovering:!_.disabled&&k}),[j,k,a,F,N,_.disabled,x]),V=K.useMemo(()=>h?h(re):K.createElement(Dv.Provider,{value:re},g),[g,re,h]);return K.createElement(K.Fragment,null,m!==null&&K.createElement(`noscript`,null,K.createElement(`style`,null,m)),K.createElement(`div`,{ref:E,"data-input-otp-container":!0,style:z,className:p},V,K.createElement(`div`,{style:{position:`absolute`,inset:0,pointerEvents:`none`}},ne)))});Ov.displayName=`Input`;function kv(e,t){try{e.insertRule(t)}catch{console.error(`input-otp could not insert CSS rule:`,t)}}var Av=`
5
- [data-input-otp] {
6
- --nojs-bg: white !important;
7
- --nojs-fg: black !important;
8
-
9
- background-color: var(--nojs-bg) !important;
10
- color: var(--nojs-fg) !important;
11
- caret-color: var(--nojs-fg) !important;
12
- letter-spacing: .25em !important;
13
- text-align: center !important;
14
- border: 1px solid var(--nojs-fg) !important;
15
- border-radius: 4px !important;
16
- width: 100% !important;
17
- }
18
- @media (prefers-color-scheme: dark) {
19
- [data-input-otp] {
20
- --nojs-bg: black !important;
21
- --nojs-fg: white !important;
22
- }
23
- }`,jv=K.forwardRef(({className:e,containerClassName:t,...n},r)=>(0,q.jsx)(Ov,{ref:r,containerClassName:J(`flex items-center gap-2 has-[:disabled]:opacity-50`,t),className:J(`disabled:cursor-not-allowed`,e),...n}));jv.displayName=`InputOTP`;var Mv=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`div`,{ref:n,className:J(`flex items-center`,e),...t}));Mv.displayName=`InputOTPGroup`;var Nv=K.forwardRef(({index:e,className:t,...n},r)=>{let{char:i,hasFakeCaret:a,isActive:o}=K.useContext(Dv).slots[e];return(0,q.jsxs)(`div`,{ref:r,className:J(`relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md`,o&&`z-10 ring-2 ring-ring ring-offset-background`,t),...n,children:[i,a&&(0,q.jsx)(`div`,{className:`pointer-events-none absolute inset-0 flex items-center justify-center`,children:(0,q.jsx)(`div`,{className:`h-4 w-px animate-caret-blink bg-foreground duration-1000`})})]})});Nv.displayName=`InputOTPSlot`;var Pv=K.forwardRef(({...e},t)=>(0,q.jsx)(`div`,{ref:t,role:`separator`,...e,children:(0,q.jsx)(Ai,{})}));Pv.displayName=`InputOTPSeparator`;var Fv=K.forwardRef(({className:e,type:t,...n},r)=>(0,q.jsx)(`input`,{type:t,className:J(`flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm`,e),ref:r,...n}));Fv.displayName=`Input`;function Iv({...e}){return(0,q.jsx)(Ir,{...e})}function Lv({...e}){return(0,q.jsx)(er,{"data-slot":`menubar-sub`,...e})}var Rv=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(Hr,{ref:n,className:J(`flex h-10 items-center space-x-1 rounded-md border bg-background p-1`,e),...t}));Rv.displayName=Hr.displayName;var zv=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(or,{ref:n,className:J(`flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground`,e),...t}));zv.displayName=or.displayName;var Bv=K.forwardRef(({className:e,inset:t,children:n,...r},i)=>(0,q.jsxs)(yr,{ref:i,className:J(`flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground`,t&&`pl-8`,e),...r,children:[n,(0,q.jsx)(hi,{className:`ml-auto h-4 w-4`})]}));Bv.displayName=yr.displayName;var Vv=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(Or,{ref:n,className:J(`z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-menubar-content-transform-origin)`,e),...t}));Vv.displayName=Or.displayName;var Hv=K.forwardRef(({className:e,align:t=`start`,alignOffset:n=-4,sideOffset:r=8,...i},a)=>(0,q.jsx)(Kn,{children:(0,q.jsx)(Nr,{ref:a,align:t,alignOffset:n,sideOffset:r,className:J(`z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-menubar-content-transform-origin)`,e),...i})}));Hv.displayName=Nr.displayName;var Uv=K.forwardRef(({className:e,inset:t,...n},r)=>(0,q.jsx)(lr,{ref:r,className:J(`relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,t&&`pl-8`,e),...n}));Uv.displayName=lr.displayName;var Wv=K.forwardRef(({className:e,children:t,checked:n,...r},i)=>(0,q.jsxs)(Sr,{ref:i,className:J(`relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,e),checked:n,...r,children:[(0,q.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,q.jsx)(Bn,{children:(0,q.jsx)(fi,{className:`h-4 w-4`})})}),t]}));Wv.displayName=Sr.displayName;var Gv=K.forwardRef(({className:e,children:t,...n},r)=>(0,q.jsxs)(gr,{ref:r,className:J(`relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,e),...n,children:[(0,q.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,q.jsx)(Bn,{children:(0,q.jsx)(Ti,{className:`h-2 w-2 fill-current`})})}),t]}));Gv.displayName=gr.displayName;var Kv=K.forwardRef(({className:e,inset:t,...n},r)=>(0,q.jsx)(Tr,{ref:r,className:J(`px-2 py-1.5 text-sm font-semibold`,t&&`pl-8`,e),...n}));Kv.displayName=Tr.displayName;var qv=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(Yn,{ref:n,className:J(`-mx-1 my-1 h-px bg-muted`,e),...t}));qv.displayName=Yn.displayName;var Jv=({className:e,...t})=>(0,q.jsx)(`span`,{className:J(`ml-auto text-xs tracking-widest text-muted-foreground`,e),...t});Jv.displayname=`MenubarShortcut`;var Yv=K.forwardRef(({className:e,children:t,...n},r)=>(0,q.jsxs)(kt,{ref:r,className:J(`relative z-10 flex max-w-max flex-1 items-center justify-center`,e),...n,children:[t,(0,q.jsx)(ny,{})]}));Yv.displayName=kt.displayName;var Xv=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(pn,{ref:n,className:J(`group flex flex-1 list-none items-center justify-center space-x-1`,e),...t}));Xv.displayName=pn.displayName;var Zv=kn,Qv=Tt(`group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent`),$v=K.forwardRef(({className:e,children:t,...n},r)=>(0,q.jsxs)(Zn,{ref:r,className:J(Qv(),`group`,e),...n,children:[t,` `,(0,q.jsx)(pi,{className:`relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180`,"aria-hidden":`true`})]}));$v.displayName=Zn.displayName;var ey=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(Zt,{ref:n,className:J(`left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto `,e),...t}));ey.displayName=Zt.displayName;var ty=Nn,ny=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`div`,{className:J(`absolute left-0 top-full flex justify-center`),children:(0,q.jsx)(zr,{className:J(`origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]`,e),ref:n,...t})}));ny.displayName=zr.displayName;var ry=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(jn,{ref:n,className:J(`top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in`,e),...t,children:(0,q.jsx)(`div`,{className:`relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md`})}));ry.displayName=jn.displayName;var iy=({className:e,...t})=>(0,q.jsx)(`nav`,{role:`navigation`,"aria-label":`pagination`,className:J(`mx-auto flex w-full justify-center`,e),...t});iy.displayName=`Pagination`;var ay=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`ul`,{ref:n,className:J(`flex flex-row items-center gap-1`,e),...t}));ay.displayName=`PaginationContent`;var oy=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`li`,{ref:n,className:J(``,e),...t}));oy.displayName=`PaginationItem`;var sy=({className:e,isActive:t,size:n=`icon`,...r})=>(0,q.jsx)(`a`,{"aria-current":t?`page`:void 0,className:J(Go({variant:t?`outline`:`ghost`,size:n}),e),...r});sy.displayName=`PaginationLink`;var cy=({className:e,...t})=>(0,q.jsxs)(sy,{"aria-label":`Go to previous page`,size:`default`,className:J(`gap-1 pl-2.5`,e),...t,children:[(0,q.jsx)(mi,{className:`h-4 w-4`}),(0,q.jsx)(`span`,{children:`Previous`})]});cy.displayName=`PaginationPrevious`;var ly=({className:e,...t})=>(0,q.jsxs)(sy,{"aria-label":`Go to next page`,size:`default`,className:J(`gap-1 pr-2.5`,e),...t,children:[(0,q.jsx)(`span`,{children:`Next`}),(0,q.jsx)(hi,{className:`h-4 w-4`})]});ly.displayName=`PaginationNext`;var uy=({className:e,...t})=>(0,q.jsxs)(`span`,{"aria-hidden":!0,className:J(`flex h-9 w-9 items-center justify-center`,e),...t,children:[(0,q.jsx)(Mi,{className:`h-4 w-4`}),(0,q.jsx)(`span`,{className:`sr-only`,children:`More pages`})]});uy.displayName=`PaginationEllipsis`;var dy=$t,fy=kr,py=K.forwardRef(({className:e,align:t=`center`,sideOffset:n=4,...r},i)=>(0,q.jsx)(Gt,{children:(0,q.jsx)(Dn,{ref:i,align:t,sideOffset:n,className:J(`z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-popover-content-transform-origin)`,e),...r})}));py.displayName=Dn.displayName;var my=K.forwardRef(({className:e,value:t,...n},r)=>(0,q.jsx)(qt,{ref:r,className:J(`relative h-4 w-full overflow-hidden rounded-full bg-secondary`,e),...n,children:(0,q.jsx)(Tn,{className:`h-full w-full flex-1 bg-primary transition-all`,style:{transform:`translateX(-${100-(t||0)}%)`}})}));my.displayName=qt.displayName;var hy=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(hn,{className:J(`grid gap-2`,e),...t,ref:n}));hy.displayName=hn.displayName;var gy=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(Nt,{ref:n,className:J(`aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50`,e),...t,children:(0,q.jsx)(ti,{className:`flex items-center justify-center`,children:(0,q.jsx)(Ti,{className:`h-2.5 w-2.5 fill-current text-current`})})}));gy.displayName=Nt.displayName;var _y=K.forwardRef(({className:e,children:t,...n},r)=>(0,q.jsxs)(dn,{ref:r,className:J(`relative overflow-hidden`,e),...n,children:[(0,q.jsx)(tn,{className:`h-full w-full rounded-[inherit]`,children:t}),(0,q.jsx)(vy,{}),(0,q.jsx)(on,{})]}));_y.displayName=dn.displayName;var vy=K.forwardRef(({className:e,orientation:t=`vertical`,...n},r)=>(0,q.jsx)(Ut,{ref:r,orientation:t,className:J(`flex touch-none select-none transition-colors`,t===`vertical`&&`h-full w-2.5 border-l border-l-transparent p-[1px]`,t===`horizontal`&&`h-2.5 flex-col border-t border-t-transparent p-[1px]`,e),...n,children:(0,q.jsx)(Yt,{className:`relative flex-1 rounded-full bg-border`})}));vy.displayName=Ut.displayName;var yy=({onValueChange:e,...t})=>{let n=K.useCallback(t=>{t!==``&&e?.(t)},[e]);return(0,q.jsx)(Qr,{...t,onValueChange:n})};yy.displayName=Qr.displayName;var by=ur,xy=K.forwardRef(({className:e,children:t,...n},r)=>(0,q.jsxs)(jt,{ref:r,className:J(`flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1`,e),...n,children:[t,(0,q.jsx)(Yr,{asChild:!0,children:(0,q.jsx)(pi,{className:`h-4 w-4 opacity-50`})})]}));xy.displayName=jt.displayName;var Sy=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(cn,{ref:n,className:J(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,q.jsx)(gi,{className:`h-4 w-4`})}));Sy.displayName=cn.displayName;var Cy=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(Rt,{ref:n,className:J(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,q.jsx)(pi,{className:`h-4 w-4`})}));Cy.displayName=Rt.displayName;var wy=K.forwardRef(({className:e,children:t,position:n=`popper`,...r},i)=>(0,q.jsx)(Vt,{children:(0,q.jsxs)(Vn,{ref:i,className:J(`relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-select-content-transform-origin)`,n===`popper`&&`data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1`,e),position:n,...r,children:[(0,q.jsx)(Sy,{}),(0,q.jsx)(rn,{className:J(`p-1`,n===`popper`&&`h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]`),children:t}),(0,q.jsx)(Cy,{})]})}));wy.displayName=Vn.displayName;var Ty=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(bn,{ref:n,className:J(`py-1.5 pl-8 pr-2 text-sm font-semibold`,e),...t}));Ty.displayName=bn.displayName;var Ey=K.forwardRef(({className:e,children:t,...n},r)=>(0,q.jsxs)(_n,{ref:r,className:J(`relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,e),...n,children:[(0,q.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,q.jsx)(Ft,{children:(0,q.jsx)(fi,{className:`h-4 w-4`})})}),(0,q.jsx)(Kr,{children:t})]}));Ey.displayName=_n.displayName;var Dy=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(fr,{ref:n,className:J(`-mx-1 my-1 h-px bg-muted`,e),...t}));Dy.displayName=fr.displayName;var Oy=K.forwardRef(({className:e,orientation:t=`horizontal`,decorative:n=!0,...r},i)=>(0,q.jsx)(Ur,{ref:i,decorative:n,orientation:t,className:J(`shrink-0 bg-border`,t===`horizontal`?`h-[1px] w-full`:`h-full w-[1px]`,e),...r}));Oy.displayName=Ur.displayName;var ky=Gn,Ay=ar,jy=hr,My=Dr,Ny=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)($n,{className:J(`fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,e),...t,ref:n}));Ny.displayName=$n.displayName;var Py=Tt(`fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500`,{variants:{side:{top:`inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top`,bottom:`inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom`,left:`inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm`,right:`inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm`}},defaultVariants:{side:`right`}}),Fy=K.forwardRef(({side:e=`right`,className:t,children:n,hideOverlay:r,...i},a)=>(0,q.jsxs)(My,{children:[!r&&(0,q.jsx)(Ny,{}),(0,q.jsxs)(Vr,{ref:a,className:J(Py({side:e}),t),...i,children:[n,(0,q.jsxs)(hr,{className:`absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary`,children:[(0,q.jsx)(wa,{className:`h-4 w-4`}),(0,q.jsx)(im,{})]})]})]}));Fy.displayName=Vr.displayName;var Iy=({className:e,...t})=>(0,q.jsx)(`div`,{className:J(`flex flex-col space-y-2 text-center sm:text-left`,e),...t});Iy.displayName=`SheetHeader`;var Ly=({className:e,...t})=>(0,q.jsx)(`div`,{className:J(`flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2`,e),...t});Ly.displayName=`SheetFooter`;var Ry=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(vr,{ref:n,className:J(`text-lg font-semibold text-foreground`,e),...t}));Ry.displayName=vr.displayName;var zy=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(Jn,{ref:n,className:J(`text-sm text-muted-foreground`,e),...t}));zy.displayName=Jn.displayName;var By=768;function Vy(){let[e,t]=K.useState(void 0);return K.useEffect(()=>{let e=window.matchMedia(`(max-width: 767px)`),n=()=>{t(window.innerWidth<By)};return e.addEventListener(`change`,n),t(window.innerWidth<By),()=>e.removeEventListener(`change`,n)},[]),!!e}function Hy(e){if(typeof document>`u`)return;let t=document.cookie;if(t)for(let n of t.split(`;`)){let t=n.indexOf(`=`);if(t===-1||n.slice(0,t).trim()!==e)continue;let r=n.slice(t+1).trim();return r===`true`||r!==`false`&&void 0}}function Uy({className:e,...t}){return(0,q.jsx)(`div`,{className:J(`animate-pulse rounded-md bg-muted`,e),...t})}var Wy=ir,Gy=tr,Ky=Fn,qy=K.forwardRef(({className:e,sideOffset:t=4,...n},r)=>(0,q.jsx)(_r,{ref:r,sideOffset:t,className:J(`z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-tooltip-content-transform-origin)`,e),...n}));qy.displayName=_r.displayName;var Jy=`sidebar_state`,Yy=604800,Xy=`16rem`,Zy=`18rem`,Qy=`3rem`,$y=`b`,eb=K.createContext(null);function tb(){let e=K.useContext(eb);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}var nb=K.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:i,children:a,...o},s)=>{let c=Vy(),[l,u]=K.useState(!1),[d,f]=K.useState(()=>Hy(Jy)??e),p=t??d,m=K.useCallback(e=>{let t=typeof e==`function`?e(p):e;n?n(t):f(t),document.cookie=`${Jy}=${t}; path=/; max-age=${Yy}`},[n,p]),h=K.useCallback(()=>c?u(e=>!e):m(e=>!e),[c,m,u]);K.useEffect(()=>{let e=e=>{e.key===$y&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),h())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[h]);let g=p?`expanded`:`collapsed`,_=K.useMemo(()=>({state:g,open:p,setOpen:m,isMobile:c,openMobile:l,setOpenMobile:u,toggleSidebar:h}),[g,p,m,c,l,u,h]);return(0,q.jsx)(eb.Provider,{value:_,children:(0,q.jsx)(Wy,{delayDuration:0,children:(0,q.jsx)(`div`,{style:{"--sidebar-width":Xy,"--sidebar-width-icon":Qy,...i},className:J(`group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar`,r),ref:s,...o,children:a})})})});nb.displayName=`SidebarProvider`;var rb=K.forwardRef(({side:e=`left`,variant:t=`sidebar`,collapsible:n=`offcanvas`,className:r,children:i,...a},o)=>{let{isMobile:s,state:c,openMobile:l,setOpenMobile:u}=tb();return n===`none`?(0,q.jsx)(`div`,{className:J(`flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground`,r),ref:o,...a,children:i}):s?(0,q.jsx)(ky,{open:l,onOpenChange:u,...a,children:(0,q.jsxs)(Fy,{"data-sidebar":`sidebar`,"data-mobile":`true`,className:`w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden data-[state=open]:duration-300 data-[state=open]:ease-out`,style:{"--sidebar-width":Zy},side:e,children:[(0,q.jsxs)(Iy,{className:`sr-only`,children:[(0,q.jsx)(Ry,{children:`Sidebar`}),(0,q.jsx)(zy,{children:`Displays the mobile sidebar.`})]}),(0,q.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:i})]})}):(0,q.jsxs)(`div`,{ref:o,className:`group peer hidden text-sidebar-foreground md:block`,"data-state":c,"data-collapsible":n,"data-variant":t,"data-side":e,children:[(0,q.jsx)(`div`,{className:J(`relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,t===`floating`||t===`inset`?`group-data-[state=collapsed]:group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_1rem)]`:`group-data-[state=collapsed]:group-data-[collapsible=icon]:w-(--sidebar-width-icon)`)}),(0,q.jsx)(`div`,{className:J(`fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex`,e===`left`?`left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]`:`right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]`,t===`floating`||t===`inset`?`p-2 group-data-[state=collapsed]:group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_1rem_+_2px)]`:`group-data-[state=collapsed]:group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,r),...a,children:(0,q.jsx)(`div`,{"data-sidebar":`sidebar`,className:`flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow`,children:i})})]})});rb.displayName=`Sidebar`;var ib=K.forwardRef(({className:e,onClick:t,...n},r)=>{let{toggleSidebar:i}=tb();return(0,q.jsxs)(X,{ref:r,"data-sidebar":`trigger`,variant:`ghost`,size:`icon`,className:J(`h-7 w-7`,e),onClick:e=>{t?.(e),i()},...n,children:[(0,q.jsx)(Qi,{}),(0,q.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})});ib.displayName=`SidebarTrigger`;var ab=K.forwardRef(({className:e,...t},n)=>{let{toggleSidebar:r}=tb();return(0,q.jsx)(`button`,{ref:n,"data-sidebar":`rail`,"aria-label":`Toggle Sidebar`,tabIndex:-1,onClick:r,title:`Toggle Sidebar`,className:J(`absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex`,`[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize`,`[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize`,`group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar`,`[[data-side=left][data-collapsible=offcanvas]_&]:-right-2`,`[[data-side=right][data-collapsible=offcanvas]_&]:-left-2`,e),...t})});ab.displayName=`SidebarRail`;var ob=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`main`,{ref:n,className:J(`relative flex w-full flex-1 flex-col bg-background`,`md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow`,e),...t}));ob.displayName=`SidebarInset`;var sb=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(Fv,{ref:n,"data-sidebar":`input`,className:J(`h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring`,e),...t}));sb.displayName=`SidebarInput`;var cb=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`div`,{ref:n,"data-sidebar":`header`,className:J(`flex flex-col gap-2 p-2`,e),...t}));cb.displayName=`SidebarHeader`;var lb=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`div`,{ref:n,"data-sidebar":`footer`,className:J(`flex flex-col gap-2 p-2`,e),...t}));lb.displayName=`SidebarFooter`;var ub=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(Oy,{ref:n,"data-sidebar":`separator`,className:J(`mx-2 w-auto bg-sidebar-border`,e),...t}));ub.displayName=`SidebarSeparator`;var db=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`div`,{ref:n,"data-sidebar":`content`,className:J(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[state=collapsed]:group-data-[collapsible=icon]:overflow-hidden`,e),...t}));db.displayName=`SidebarContent`;var fb=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`div`,{ref:n,"data-sidebar":`group`,className:J(`relative flex w-full min-w-0 flex-col p-2`,e),...t}));fb.displayName=`SidebarGroup`;var pb=K.forwardRef(({className:e,asChild:t=!1,...n},r)=>(0,q.jsx)(t?zt:`div`,{ref:r,"data-sidebar":`group-label`,className:J(`flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,`group-data-[state=collapsed]:group-data-[collapsible=icon]:-mt-8 group-data-[state=collapsed]:group-data-[collapsible=icon]:opacity-0`,e),...n}));pb.displayName=`SidebarGroupLabel`;var mb=K.forwardRef(({className:e,asChild:t=!1,...n},r)=>(0,q.jsx)(t?zt:`button`,{ref:r,"data-sidebar":`group-action`,className:J(`absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,`after:absolute after:-inset-2 after:md:hidden`,`group-data-[state=collapsed]:group-data-[collapsible=icon]:hidden`,e),...n}));mb.displayName=`SidebarGroupAction`;var hb=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`div`,{ref:n,"data-sidebar":`group-content`,className:J(`w-full text-sm`,e),...t}));hb.displayName=`SidebarGroupContent`;var gb=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`ul`,{ref:n,"data-sidebar":`menu`,className:J(`flex w-full min-w-0 flex-col gap-1`,e),...t}));gb.displayName=`SidebarMenu`;var _b=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`li`,{ref:n,"data-sidebar":`menu-item`,className:J(`group/menu-item relative`,e),...t}));_b.displayName=`SidebarMenuItem`;var vb=Tt(`peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding,color,background-color] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground sidebar-menu-button-icon-mode [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0`,{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-8 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm sidebar-menu-button-icon-mode-lg`}},defaultVariants:{variant:`default`,size:`default`}}),yb=K.forwardRef(({asChild:e=!1,isActive:t=!1,variant:n=`default`,size:r=`default`,tooltip:i,className:a,...o},s)=>{let c=e?zt:`button`,{isMobile:l,state:u}=tb(),d=(0,q.jsx)(c,{ref:s,"data-sidebar":`menu-button`,"data-size":r,"data-active":t,className:J(vb({variant:n,size:r}),a),...o});return i?(typeof i==`string`&&(i={children:i}),(0,q.jsxs)(Gy,{children:[(0,q.jsx)(Ky,{asChild:!0,children:d}),(0,q.jsx)(qy,{side:`right`,align:`center`,hidden:u!==`collapsed`||l,...i})]})):d});yb.displayName=`SidebarMenuButton`;var bb=K.forwardRef(({className:e,asChild:t=!1,showOnHover:n=!1,...r},i)=>(0,q.jsx)(t?zt:`button`,{ref:i,"data-sidebar":`menu-action`,className:J(`absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0`,`after:absolute after:-inset-2 after:md:hidden`,`peer-data-[size=sm]/menu-button:top-1`,`peer-data-[size=default]/menu-button:top-1.5`,`peer-data-[size=lg]/menu-button:top-2.5`,`group-data-[state=collapsed]:group-data-[collapsible=icon]:hidden`,n&&`group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0`,e),...r}));bb.displayName=`SidebarMenuAction`;var xb=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`div`,{ref:n,"data-sidebar":`menu-badge`,className:J(`pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground`,`peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground`,`peer-data-[size=sm]/menu-button:top-1`,`peer-data-[size=default]/menu-button:top-1.5`,`peer-data-[size=lg]/menu-button:top-2.5`,`group-data-[state=collapsed]:group-data-[collapsible=icon]:hidden`,e),...t}));xb.displayName=`SidebarMenuBadge`;var Sb=K.forwardRef(({className:e,showIcon:t=!1,...n},r)=>{let i=K.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,q.jsxs)(`div`,{ref:r,"data-sidebar":`menu-skeleton`,className:J(`flex h-8 items-center gap-2 rounded-md px-2`,e),...n,children:[t&&(0,q.jsx)(Uy,{className:`size-4 rounded-md`,"data-sidebar":`menu-skeleton-icon`}),(0,q.jsx)(Uy,{className:`h-4 max-w-(--skeleton-width) flex-1`,"data-sidebar":`menu-skeleton-text`,style:{"--skeleton-width":i}})]})});Sb.displayName=`SidebarMenuSkeleton`;var Cb=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`ul`,{ref:n,"data-sidebar":`menu-sub`,className:J(`mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5`,`group-data-[state=collapsed]:group-data-[collapsible=icon]:hidden`,e),...t}));Cb.displayName=`SidebarMenuSub`;var wb=K.forwardRef(({...e},t)=>(0,q.jsx)(`li`,{ref:t,...e}));wb.displayName=`SidebarMenuSubItem`;var Tb=K.forwardRef(({asChild:e=!1,size:t=`md`,isActive:n,className:r,...i},a)=>(0,q.jsx)(e?zt:`a`,{ref:a,"data-sidebar":`menu-sub-button`,"data-size":t,"data-active":n,className:J(`flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring transition-colors hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground`,`data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground`,t===`sm`&&`text-xs`,t===`md`&&`text-sm`,`group-data-[state=collapsed]:group-data-[collapsible=icon]:hidden`,r),...i}));Tb.displayName=`SidebarMenuSubButton`;function Eb(e){let{thumbProps:t,...n}=e;return{root:n,thumb:{"aria-label":e[`aria-label`],...t??{}}}}var Db=K.forwardRef(({className:e,...t},n)=>(0,q.jsxs)(Br,{ref:n,className:J(`relative flex w-full touch-none select-none items-center`,e),...Eb(t).root,children:[(0,q.jsx)(Er,{className:`relative h-2 w-full grow overflow-hidden rounded-full bg-secondary`,children:(0,q.jsx)(qn,{className:`absolute h-full bg-primary`})}),(0,q.jsx)(Qn,{className:`block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50`,...Eb(t).thumb})]}));Db.displayName=Br.displayName;var Ob=(e,t,n,r,i,a,o,s)=>{let c=document.documentElement,l=[`light`,`dark`];function u(t){(Array.isArray(e)?e:[e]).forEach(e=>{let n=e===`class`,r=n&&a?i.map(e=>a[e]||e):i;n?(c.classList.remove(...r),c.classList.add(a&&a[t]?a[t]:t)):c.setAttribute(e,t)}),d(t)}function d(e){s&&l.includes(e)&&(c.style.colorScheme=e)}function f(){return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}if(r)u(r);else try{let e=localStorage.getItem(t)||n;u(o&&e===`system`?f():e)}catch{}},kb=K.createContext(void 0),Ab={setTheme:e=>{},themes:[]},jb=()=>K.useContext(kb)??Ab;K.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:a,value:o,themes:s,nonce:c,scriptProps:l})=>{let u=JSON.stringify([n,t,a,e,s,o,r,i]).slice(1,-1);return K.createElement(`script`,{...l,suppressHydrationWarning:!0,nonce:typeof window>`u`?c:``,dangerouslySetInnerHTML:{__html:`(${Ob.toString()})(${u})`}})});var Mb=({...e})=>{let{theme:t=`system`}=jb();return(0,q.jsx)(Et,{theme:t,className:`toaster group`,icons:{success:(0,q.jsx)(xi,{className:`h-4 w-4`}),info:(0,q.jsx)(Gi,{className:`h-4 w-4`}),warning:(0,q.jsx)(ba,{className:`h-4 w-4`}),error:(0,q.jsx)(Zi,{className:`h-4 w-4`}),loading:(0,q.jsx)(qi,{className:`h-4 w-4 animate-spin`})},toastOptions:{classNames:{toast:`group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg`,description:`group-[.toast]:text-muted-foreground`,actionButton:`group-[.toast]:bg-primary group-[.toast]:text-primary-foreground`,cancelButton:`group-[.toast]:bg-muted group-[.toast]:text-muted-foreground`}},...e})},Nb=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(Wn,{className:J(`peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input`,e),...t,ref:n,children:(0,q.jsx)(mr,{className:J(`pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0`)})}));Nb.displayName=Wn.displayName;var Pb=K.forwardRef(({className:e,containerClassName:t,...n},r)=>(0,q.jsx)(`div`,{className:J(`relative w-full overflow-auto`,t),children:(0,q.jsx)(`table`,{ref:r,className:J(`w-full caption-bottom text-sm`,e),...n})}));Pb.displayName=`Table`;var Fb=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`thead`,{ref:n,className:J(`[&_tr]:border-b`,e),...t}));Fb.displayName=`TableHeader`;var Ib=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`tbody`,{ref:n,className:J(`[&_tr:last-child]:border-0`,e),...t}));Ib.displayName=`TableBody`;var Lb=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`tfoot`,{ref:n,className:J(`border-t bg-muted/50 font-medium [&>tr]:last:border-b-0`,e),...t}));Lb.displayName=`TableFooter`;var Rb=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`tr`,{ref:n,className:J(`border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted`,e),...t}));Rb.displayName=`TableRow`;var zb=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`th`,{ref:n,className:J(`h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0`,e),...t}));zb.displayName=`TableHead`;var Bb=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`td`,{ref:n,className:J(`p-4 align-middle [&:has([role=checkbox])]:pr-0`,e),...t}));Bb.displayName=`TableCell`;var Vb=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`caption`,{ref:n,className:J(`mt-4 text-sm text-muted-foreground`,e),...t}));Vb.displayName=`TableCaption`;var Hb=Cr,Ub=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(Rn,{ref:n,className:J(`inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground`,e),...t}));Ub.displayName=Rn.displayName;var Wb=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(Pr,{ref:n,className:J(`inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm`,e),...t}));Wb.displayName=Pr.displayName;var Gb=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(sr,{ref:n,className:J(`mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2`,e),...t}));Gb.displayName=sr.displayName;var Kb=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`textarea`,{className:J(`flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm`,e),ref:n,...t}));Kb.displayName=`Textarea`;var qb=Tt(`inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 gap-2`,{variants:{variant:{default:`bg-transparent`,outline:`border border-input bg-transparent hover:bg-accent hover:text-accent-foreground`},size:{default:`h-10 px-3 min-w-10`,sm:`h-9 px-2.5 min-w-9`,lg:`h-11 px-5 min-w-11`}},defaultVariants:{variant:`default`,size:`default`}}),Jb=K.forwardRef(({className:e,variant:t,size:n,...r},i)=>(0,q.jsx)(jr,{ref:i,className:J(qb({variant:t,size:n,className:e})),...r}));Jb.displayName=jr.displayName;var Yb=K.createContext({size:`default`,variant:`default`}),Xb=K.forwardRef(({className:e,variant:t,size:n,children:r,...i},a)=>(0,q.jsx)(Lr,{ref:a,className:J(`flex items-center justify-center gap-1`,e),...i,children:(0,q.jsx)(Yb.Provider,{value:{variant:t,size:n},children:r})}));Xb.displayName=Lr.displayName;var Zb=K.forwardRef(({className:e,children:t,variant:n,size:r,...i},a)=>{let o=K.useContext(Yb);return(0,q.jsx)(br,{ref:a,className:J(qb({variant:o.variant||n,size:o.size||r}),e),...i,children:t})});Zb.displayName=br.displayName;var Qb=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`h1`,{ref:n,className:J(`scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl`,e),...t}));Qb.displayName=`TypographyH1`;var $b=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`h2`,{ref:n,className:J(`scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight first:mt-0`,e),...t}));$b.displayName=`TypographyH2`;var ex=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`h3`,{ref:n,className:J(`scroll-m-20 text-2xl font-semibold tracking-tight`,e),...t}));ex.displayName=`TypographyH3`;var tx=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`h4`,{ref:n,className:J(`scroll-m-20 text-xl font-semibold tracking-tight`,e),...t}));tx.displayName=`TypographyH4`;var nx=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`p`,{ref:n,className:J(`leading-7 [&:not(:first-child)]:mt-6`,e),...t}));nx.displayName=`TypographyP`;var rx=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`blockquote`,{ref:n,className:J(`mt-6 border-l-2 pl-6 italic`,e),...t}));rx.displayName=`TypographyBlockquote`;var ix=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`ul`,{ref:n,className:J(`my-6 ml-6 list-disc [&>li]:mt-2`,e),...t}));ix.displayName=`TypographyList`;var ax=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`code`,{ref:n,className:J(`relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold`,e),...t}));ax.displayName=`TypographyInlineCode`;var ox=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`p`,{ref:n,className:J(`text-xl text-muted-foreground`,e),...t}));ox.displayName=`TypographyLead`;var sx=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`div`,{ref:n,className:J(`text-lg font-semibold`,e),...t}));sx.displayName=`TypographyLarge`;var cx=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`small`,{ref:n,className:J(`text-sm font-medium leading-none`,e),...t}));cx.displayName=`TypographySmall`;var lx=K.forwardRef(({className:e,...t},n)=>(0,q.jsx)(`p`,{ref:n,className:J(`text-sm text-muted-foreground`,e),...t}));lx.displayName=`TypographyMuted`;var ux=(0,K.forwardRef)(({schema:e,className:t,...n},r)=>{let{"data-obj-id":i,"data-obj-type":a,style:o,...s}=n;return(0,q.jsx)(Oy,{ref:r,orientation:e.orientation,className:t,...s,"data-obj-id":i,"data-obj-type":a,style:o})});U.register(`separator`,ux,{namespace:`ui`,label:`Separator`,inputs:[{name:`orientation`,type:`enum`,enum:[`horizontal`,`vertical`]},{name:`className`,type:`string`}],defaultProps:{orientation:`horizontal`,className:`my-2 sm:my-4`}}),U.register(`image`,({schema:e,className:t,...n})=>{let{"data-obj-id":r,"data-obj-type":i,style:a,...o}=n;return(0,q.jsx)(`img`,{src:e.src,alt:e.alt||``,className:t,...o,"data-obj-id":r,"data-obj-type":i,style:a})},{namespace:`ui`,label:`Image`,icon:`image`,category:`basic`,inputs:[{name:`src`,type:`string`},{name:`alt`,type:`string`},{name:`className`,type:`string`}],defaultProps:{className:`max-w-full h-auto`}});var dx={"a-arrow-down":()=>n(()=>import(`./vendor-icon-a-arrow-down-CSVd88vX.js`).then(e=>e.t),[],import.meta.url),"a-arrow-up":()=>n(()=>import(`./vendor-icon-a-arrow-up-Dzbym1vH.js`).then(e=>e.t),[],import.meta.url),"a-large-small":()=>n(()=>import(`./vendor-icon-a-large-small-C2KLN_9B.js`).then(e=>e.t),[],import.meta.url),accessibility:()=>n(()=>import(`./vendor-icon-accessibility-DXrCv__v.js`).then(e=>e.t),[],import.meta.url),activity:()=>n(()=>import(`./vendor-icon-activity-CkniytwY.js`).then(e=>e.n),[],import.meta.url),ad:()=>n(()=>import(`./vendor-icon-ad-Bvi6qDbj.js`).then(e=>e.t),[],import.meta.url),"air-vent":()=>n(()=>import(`./vendor-icon-air-vent-D6qCAZVI.js`).then(e=>e.t),[],import.meta.url),airplay:()=>n(()=>import(`./vendor-icon-airplay-By0cjhKN.js`).then(e=>e.t),[],import.meta.url),"alarm-clock-check":()=>n(()=>import(`./vendor-icon-alarm-clock-check-CzJUQjEm.js`).then(e=>e.t),[],import.meta.url),"alarm-check":()=>n(()=>import(`./vendor-icon-alarm-clock-check-CzJUQjEm.js`).then(e=>e.t),[],import.meta.url),"alarm-clock-minus":()=>n(()=>import(`./vendor-icon-alarm-clock-minus-BDj_BoGA.js`).then(e=>e.t),[],import.meta.url),"alarm-minus":()=>n(()=>import(`./vendor-icon-alarm-clock-minus-BDj_BoGA.js`).then(e=>e.t),[],import.meta.url),"alarm-clock-off":()=>n(()=>import(`./vendor-icon-alarm-clock-off-CxC1dtED.js`).then(e=>e.t),[],import.meta.url),"alarm-clock-plus":()=>n(()=>import(`./vendor-icon-alarm-clock-plus-BxAHFuJR.js`).then(e=>e.t),[],import.meta.url),"alarm-plus":()=>n(()=>import(`./vendor-icon-alarm-clock-plus-BxAHFuJR.js`).then(e=>e.t),[],import.meta.url),"alarm-clock":()=>n(()=>import(`./vendor-icon-alarm-clock-Cydb_k9Y.js`).then(e=>e.n),[],import.meta.url),"alarm-smoke":()=>n(()=>import(`./vendor-icon-alarm-smoke-BfJvBlsE.js`).then(e=>e.t),[],import.meta.url),album:()=>n(()=>import(`./vendor-icon-album-BXPhTYjc.js`).then(e=>e.t),[],import.meta.url),"align-center-horizontal":()=>n(()=>import(`./vendor-icon-align-center-horizontal-DQwgZog7.js`).then(e=>e.t),[],import.meta.url),"align-center-vertical":()=>n(()=>import(`./vendor-icon-align-center-vertical-CwkZEzKG.js`).then(e=>e.t),[],import.meta.url),"align-end-horizontal":()=>n(()=>import(`./vendor-icon-align-end-horizontal-B7b_V5hp.js`).then(e=>e.t),[],import.meta.url),"align-end-vertical":()=>n(()=>import(`./vendor-icon-align-end-vertical-D0ZKZaxV.js`).then(e=>e.t),[],import.meta.url),"align-horizontal-distribute-center":()=>n(()=>import(`./vendor-icon-align-horizontal-distribute-center-Ba60FjVw.js`).then(e=>e.t),[],import.meta.url),"align-horizontal-distribute-end":()=>n(()=>import(`./vendor-icon-align-horizontal-distribute-end-CLCfeQDO.js`).then(e=>e.t),[],import.meta.url),"align-horizontal-distribute-start":()=>n(()=>import(`./vendor-icon-align-horizontal-distribute-start-XnHJ3UyS.js`).then(e=>e.t),[],import.meta.url),"align-horizontal-justify-center":()=>n(()=>import(`./vendor-icon-align-horizontal-justify-center-DBF2uXsg.js`).then(e=>e.t),[],import.meta.url),"align-horizontal-justify-end":()=>n(()=>import(`./vendor-icon-align-horizontal-justify-end-D63gjxIp.js`).then(e=>e.t),[],import.meta.url),"align-horizontal-justify-start":()=>n(()=>import(`./vendor-icon-align-horizontal-justify-start-fljl0z-V.js`).then(e=>e.t),[],import.meta.url),"align-horizontal-space-around":()=>n(()=>import(`./vendor-icon-align-horizontal-space-around-D_1F8nNH.js`).then(e=>e.t),[],import.meta.url),"align-horizontal-space-between":()=>n(()=>import(`./vendor-icon-align-horizontal-space-between-C1w6qL3i.js`).then(e=>e.t),[],import.meta.url),"align-start-horizontal":()=>n(()=>import(`./vendor-icon-align-start-horizontal-C8zb_3rD.js`).then(e=>e.t),[],import.meta.url),"align-start-vertical":()=>n(()=>import(`./vendor-icon-align-start-vertical-Dm1vNAd7.js`).then(e=>e.t),[],import.meta.url),"align-vertical-distribute-center":()=>n(()=>import(`./vendor-icon-align-vertical-distribute-center-DniaaJtA.js`).then(e=>e.t),[],import.meta.url),"align-vertical-distribute-end":()=>n(()=>import(`./vendor-icon-align-vertical-distribute-end-C23f5f0d.js`).then(e=>e.t),[],import.meta.url),"align-vertical-distribute-start":()=>n(()=>import(`./vendor-icon-align-vertical-distribute-start-7ocILOY8.js`).then(e=>e.t),[],import.meta.url),"align-vertical-justify-center":()=>n(()=>import(`./vendor-icon-align-vertical-justify-center-BYI7e6dF.js`).then(e=>e.t),[],import.meta.url),"align-vertical-justify-end":()=>n(()=>import(`./vendor-icon-align-vertical-justify-end-DCoO6_N4.js`).then(e=>e.t),[],import.meta.url),"align-vertical-justify-start":()=>n(()=>import(`./vendor-icon-align-vertical-justify-start-D_iPWbb2.js`).then(e=>e.t),[],import.meta.url),"align-vertical-space-around":()=>n(()=>import(`./vendor-icon-align-vertical-space-around-Cf1Vo11H.js`).then(e=>e.t),[],import.meta.url),"align-vertical-space-between":()=>n(()=>import(`./vendor-icon-align-vertical-space-between-Dq2fb4rH.js`).then(e=>e.t),[],import.meta.url),ambulance:()=>n(()=>import(`./vendor-icon-ambulance-PDFR2CDr.js`).then(e=>e.t),[],import.meta.url),ampersand:()=>n(()=>import(`./vendor-icon-ampersand-CCNouEpk.js`).then(e=>e.t),[],import.meta.url),ampersands:()=>n(()=>import(`./vendor-icon-ampersands-p-2_y7hT.js`).then(e=>e.t),[],import.meta.url),amphora:()=>n(()=>import(`./vendor-icon-amphora-CTOtmIrZ.js`).then(e=>e.t),[],import.meta.url),anchor:()=>n(()=>import(`./vendor-icon-anchor-C-y-QH5n.js`).then(e=>e.t),[],import.meta.url),angle:()=>n(()=>import(`./vendor-icon-angle-Rkfr6vr0.js`).then(e=>e.t),[],import.meta.url),antenna:()=>n(()=>import(`./vendor-icon-antenna-BGZM6ojw.js`).then(e=>e.t),[],import.meta.url),anvil:()=>n(()=>import(`./vendor-icon-anvil-BkMsGSmP.js`).then(e=>e.t),[],import.meta.url),aperture:()=>n(()=>import(`./vendor-icon-aperture-nsSOIDj_.js`).then(e=>e.t),[],import.meta.url),"app-window-mac":()=>n(()=>import(`./vendor-icon-app-window-mac-DQIqBtnf.js`).then(e=>e.t),[],import.meta.url),"app-window":()=>n(()=>import(`./vendor-icon-app-window-Ba5lrpTr.js`).then(e=>e.n),[],import.meta.url),apple:()=>n(()=>import(`./vendor-icon-apple-zdQ-XHOP.js`).then(e=>e.t),[],import.meta.url),"archive-restore":()=>n(()=>import(`./vendor-icon-archive-restore-C738ASyc.js`).then(e=>e.t),[],import.meta.url),"archive-x":()=>n(()=>import(`./vendor-icon-archive-x-D7sp7o8x.js`).then(e=>e.t),[],import.meta.url),archive:()=>n(()=>import(`./vendor-icon-archive-C7XW5GSw.js`).then(e=>e.n),[],import.meta.url),armchair:()=>n(()=>import(`./vendor-icon-armchair-DPPf96un.js`).then(e=>e.t),[],import.meta.url),"arrow-big-down-dash":()=>n(()=>import(`./vendor-icon-arrow-big-down-dash-DKHOJtAz.js`).then(e=>e.t),[],import.meta.url),"arrow-big-down":()=>n(()=>import(`./vendor-icon-arrow-big-down-D-HkW5z9.js`).then(e=>e.t),[],import.meta.url),"arrow-big-left-dash":()=>n(()=>import(`./vendor-icon-arrow-big-left-dash-BPu_eVf2.js`).then(e=>e.t),[],import.meta.url),"arrow-big-left":()=>n(()=>import(`./vendor-icon-arrow-big-left-pM2a_zOn.js`).then(e=>e.t),[],import.meta.url),"arrow-big-right-dash":()=>n(()=>import(`./vendor-icon-arrow-big-right-dash-B0aika3p.js`).then(e=>e.t),[],import.meta.url),"arrow-big-right":()=>n(()=>import(`./vendor-icon-arrow-big-right-CnAlbd8e.js`).then(e=>e.t),[],import.meta.url),"arrow-big-up-dash":()=>n(()=>import(`./vendor-icon-arrow-big-up-dash-DQDYtotV.js`).then(e=>e.t),[],import.meta.url),"arrow-big-up":()=>n(()=>import(`./vendor-icon-arrow-big-up-DPiRaM2R.js`).then(e=>e.t),[],import.meta.url),"arrow-down-0-1":()=>n(()=>import(`./vendor-icon-arrow-down-0-1-uwLpfQGq.js`).then(e=>e.t),[],import.meta.url),"arrow-down-01":()=>n(()=>import(`./vendor-icon-arrow-down-0-1-uwLpfQGq.js`).then(e=>e.t),[],import.meta.url),"arrow-down-1-0":()=>n(()=>import(`./vendor-icon-arrow-down-1-0-BN3-DxvY.js`).then(e=>e.t),[],import.meta.url),"arrow-down-10":()=>n(()=>import(`./vendor-icon-arrow-down-1-0-BN3-DxvY.js`).then(e=>e.t),[],import.meta.url),"arrow-down-a-z":()=>n(()=>import(`./vendor-icon-arrow-down-a-z-BDjkJGVV.js`).then(e=>e.t),[],import.meta.url),"arrow-down-az":()=>n(()=>import(`./vendor-icon-arrow-down-a-z-BDjkJGVV.js`).then(e=>e.t),[],import.meta.url),"arrow-down-from-line":()=>n(()=>import(`./vendor-icon-arrow-down-from-line-BtOsORbf.js`).then(e=>e.t),[],import.meta.url),"arrow-down-left":()=>n(()=>import(`./vendor-icon-arrow-down-left-CldmUOxl.js`).then(e=>e.t),[],import.meta.url),"arrow-down-narrow-wide":()=>n(()=>import(`./vendor-icon-arrow-down-narrow-wide-XI62QPkg.js`).then(e=>e.t),[],import.meta.url),"arrow-down-right":()=>n(()=>import(`./vendor-icon-arrow-down-right-DSfl6U0_.js`).then(e=>e.t),[],import.meta.url),"arrow-down-to-dot":()=>n(()=>import(`./vendor-icon-arrow-down-to-dot-Da17DhdL.js`).then(e=>e.t),[],import.meta.url),"arrow-down-to-line":()=>n(()=>import(`./vendor-icon-arrow-down-to-line-Bgn91X6g.js`).then(e=>e.t),[],import.meta.url),"arrow-down-up":()=>n(()=>import(`./vendor-icon-arrow-down-up-Chs6FwME.js`).then(e=>e.t),[],import.meta.url),"arrow-down-wide-narrow":()=>n(()=>import(`./vendor-icon-arrow-down-wide-narrow-C8ldNCfE.js`).then(e=>e.t),[],import.meta.url),"sort-desc":()=>n(()=>import(`./vendor-icon-arrow-down-wide-narrow-C8ldNCfE.js`).then(e=>e.t),[],import.meta.url),"arrow-down-z-a":()=>n(()=>import(`./vendor-icon-arrow-down-z-a-BV_ez9QK.js`).then(e=>e.t),[],import.meta.url),"arrow-down-za":()=>n(()=>import(`./vendor-icon-arrow-down-z-a-BV_ez9QK.js`).then(e=>e.t),[],import.meta.url),"arrow-down":()=>n(()=>import(`./vendor-icon-arrow-down-Bo-fuW7k.js`).then(e=>e.n),[],import.meta.url),"arrow-left-from-line":()=>n(()=>import(`./vendor-icon-arrow-left-from-line-CAshzUIs.js`).then(e=>e.t),[],import.meta.url),"arrow-left-right":()=>n(()=>import(`./vendor-icon-arrow-left-right-BE_Z6rCp.js`).then(e=>e.t),[],import.meta.url),"arrow-left-to-line":()=>n(()=>import(`./vendor-icon-arrow-left-to-line-B1gqegIi.js`).then(e=>e.t),[],import.meta.url),"arrow-left":()=>n(()=>import(`./vendor-icon-arrow-left-DmGEbpkA.js`).then(e=>e.n),[],import.meta.url),"arrow-right-from-line":()=>n(()=>import(`./vendor-icon-arrow-right-from-line-COmP-lJ1.js`).then(e=>e.t),[],import.meta.url),"arrow-right-left":()=>n(()=>import(`./vendor-icon-arrow-right-left-BH_jvt4r.js`).then(e=>e.n),[],import.meta.url),"arrow-right-to-line":()=>n(()=>import(`./vendor-icon-arrow-right-to-line-D6Z-EPre.js`).then(e=>e.t),[],import.meta.url),"arrow-right":()=>n(()=>import(`./vendor-icon-arrow-right-RqsZZ458.js`).then(e=>e.n),[],import.meta.url),"arrow-up-0-1":()=>n(()=>import(`./vendor-icon-arrow-up-0-1-D-toUoPO.js`).then(e=>e.t),[],import.meta.url),"arrow-up-01":()=>n(()=>import(`./vendor-icon-arrow-up-0-1-D-toUoPO.js`).then(e=>e.t),[],import.meta.url),"arrow-up-1-0":()=>n(()=>import(`./vendor-icon-arrow-up-1-0-BJNUE0VQ.js`).then(e=>e.t),[],import.meta.url),"arrow-up-10":()=>n(()=>import(`./vendor-icon-arrow-up-1-0-BJNUE0VQ.js`).then(e=>e.t),[],import.meta.url),"arrow-up-a-z":()=>n(()=>import(`./vendor-icon-arrow-up-a-z-BPudqRmf.js`).then(e=>e.t),[],import.meta.url),"arrow-up-az":()=>n(()=>import(`./vendor-icon-arrow-up-a-z-BPudqRmf.js`).then(e=>e.t),[],import.meta.url),"arrow-up-down":()=>n(()=>import(`./vendor-icon-arrow-up-down-DdDqplfV.js`).then(e=>e.n),[],import.meta.url),"arrow-up-from-dot":()=>n(()=>import(`./vendor-icon-arrow-up-from-dot-CQVi9pRx.js`).then(e=>e.t),[],import.meta.url),"arrow-up-from-line":()=>n(()=>import(`./vendor-icon-arrow-up-from-line-CeClpT0G.js`).then(e=>e.t),[],import.meta.url),"arrow-up-left":()=>n(()=>import(`./vendor-icon-arrow-up-left-kQAE3HV6.js`).then(e=>e.t),[],import.meta.url),"arrow-up-narrow-wide":()=>n(()=>import(`./vendor-icon-arrow-up-narrow-wide-zAJYzYQl.js`).then(e=>e.t),[],import.meta.url),"sort-asc":()=>n(()=>import(`./vendor-icon-arrow-up-narrow-wide-zAJYzYQl.js`).then(e=>e.t),[],import.meta.url),"arrow-up-right":()=>n(()=>import(`./vendor-icon-arrow-up-right-BQsRTUUI.js`).then(e=>e.n),[],import.meta.url),"arrow-up-to-line":()=>n(()=>import(`./vendor-icon-arrow-up-to-line-BrbUVRP8.js`).then(e=>e.t),[],import.meta.url),"arrow-up-wide-narrow":()=>n(()=>import(`./vendor-icon-arrow-up-wide-narrow-BWTeiPB1.js`).then(e=>e.t),[],import.meta.url),"arrow-up-z-a":()=>n(()=>import(`./vendor-icon-arrow-up-z-a-CuRvCzhi.js`).then(e=>e.t),[],import.meta.url),"arrow-up-za":()=>n(()=>import(`./vendor-icon-arrow-up-z-a-CuRvCzhi.js`).then(e=>e.t),[],import.meta.url),"arrow-up":()=>n(()=>import(`./vendor-icon-arrow-up-CzdjEQwQ.js`).then(e=>e.n),[],import.meta.url),"arrows-up-from-line":()=>n(()=>import(`./vendor-icon-arrows-up-from-line-I9OX-RP_.js`).then(e=>e.t),[],import.meta.url),asterisk:()=>n(()=>import(`./vendor-icon-asterisk-Dgld450r.js`).then(e=>e.n),[],import.meta.url),astroid:()=>n(()=>import(`./vendor-icon-astroid-kbU9IdiV.js`).then(e=>e.t),[],import.meta.url),"at-sign":()=>n(()=>import(`./vendor-icon-at-sign-B71HJHhC.js`).then(e=>e.n),[],import.meta.url),atom:()=>n(()=>import(`./vendor-icon-atom-Bv6LEahj.js`).then(e=>e.n),[],import.meta.url),"audio-lines-off":()=>n(()=>import(`./vendor-icon-audio-lines-off-CtznrxFf.js`).then(e=>e.t),[],import.meta.url),"audio-lines-x":()=>n(()=>import(`./vendor-icon-audio-lines-x-H2WXv-ih.js`).then(e=>e.t),[],import.meta.url),"audio-lines":()=>n(()=>import(`./vendor-icon-audio-lines-DBz-Kk-d.js`).then(e=>e.t),[],import.meta.url),"audio-waveform":()=>n(()=>import(`./vendor-icon-audio-waveform-B-pc4d3q.js`).then(e=>e.t),[],import.meta.url),award:()=>n(()=>import(`./vendor-icon-award-BaaHWMkt.js`).then(e=>e.t),[],import.meta.url),axe:()=>n(()=>import(`./vendor-icon-axe-D7y3hnv4.js`).then(e=>e.t),[],import.meta.url),"axis-3d":()=>n(()=>import(`./vendor-icon-axis-3d-D6jHyKck.js`).then(e=>e.t),[],import.meta.url),"axis-3-d":()=>n(()=>import(`./vendor-icon-axis-3d-D6jHyKck.js`).then(e=>e.t),[],import.meta.url),baby:()=>n(()=>import(`./vendor-icon-baby-QyGFK5w8.js`).then(e=>e.t),[],import.meta.url),backpack:()=>n(()=>import(`./vendor-icon-backpack-DHbarGXB.js`).then(e=>e.t),[],import.meta.url),"badge-alert":()=>n(()=>import(`./vendor-icon-badge-alert-C-Q_Wj9J.js`).then(e=>e.t),[],import.meta.url),"badge-cent":()=>n(()=>import(`./vendor-icon-badge-cent-BSl4DEYH.js`).then(e=>e.t),[],import.meta.url),"badge-check":()=>n(()=>import(`./vendor-icon-badge-check-SLEl_RQq.js`).then(e=>e.n),[],import.meta.url),verified:()=>n(()=>import(`./vendor-icon-badge-check-SLEl_RQq.js`).then(e=>e.n),[],import.meta.url),"badge-dollar-sign":()=>n(()=>import(`./vendor-icon-badge-dollar-sign-BEZ6bfso.js`).then(e=>e.t),[],import.meta.url),"badge-euro":()=>n(()=>import(`./vendor-icon-badge-euro-Ci6yPneg.js`).then(e=>e.t),[],import.meta.url),"badge-indian-rupee":()=>n(()=>import(`./vendor-icon-badge-indian-rupee-J3L91CrF.js`).then(e=>e.t),[],import.meta.url),"badge-info":()=>n(()=>import(`./vendor-icon-badge-info-Dv3EPQw0.js`).then(e=>e.t),[],import.meta.url),"badge-japanese-yen":()=>n(()=>import(`./vendor-icon-badge-japanese-yen-3uGr9BF_.js`).then(e=>e.t),[],import.meta.url),"badge-minus":()=>n(()=>import(`./vendor-icon-badge-minus-B1hiFi9N.js`).then(e=>e.t),[],import.meta.url),"badge-percent":()=>n(()=>import(`./vendor-icon-badge-percent--o_SY_uo.js`).then(e=>e.t),[],import.meta.url),"badge-plus":()=>n(()=>import(`./vendor-icon-badge-plus-CDLeijpk.js`).then(e=>e.t),[],import.meta.url),"badge-pound-sterling":()=>n(()=>import(`./vendor-icon-badge-pound-sterling-0Oop2EgJ.js`).then(e=>e.t),[],import.meta.url),"badge-question-mark":()=>n(()=>import(`./vendor-icon-badge-question-mark-BjauG_w0.js`).then(e=>e.t),[],import.meta.url),"badge-help":()=>n(()=>import(`./vendor-icon-badge-question-mark-BjauG_w0.js`).then(e=>e.t),[],import.meta.url),"badge-russian-ruble":()=>n(()=>import(`./vendor-icon-badge-russian-ruble-DDhiVLjf.js`).then(e=>e.t),[],import.meta.url),"badge-swiss-franc":()=>n(()=>import(`./vendor-icon-badge-swiss-franc-BJwLyf6C.js`).then(e=>e.t),[],import.meta.url),"badge-turkish-lira":()=>n(()=>import(`./vendor-icon-badge-turkish-lira-DaU7Kic3.js`).then(e=>e.t),[],import.meta.url),"badge-x":()=>n(()=>import(`./vendor-icon-badge-x-C2_jz6_4.js`).then(e=>e.t),[],import.meta.url),badge:()=>n(()=>import(`./vendor-icon-badge-Cro5BcRV.js`).then(e=>e.t),[],import.meta.url),"baggage-claim":()=>n(()=>import(`./vendor-icon-baggage-claim-G2bv6RGF.js`).then(e=>e.t),[],import.meta.url),balloon:()=>n(()=>import(`./vendor-icon-balloon-DKtObZVG.js`).then(e=>e.t),[],import.meta.url),ban:()=>n(()=>import(`./vendor-icon-ban-BptIEC14.js`).then(e=>e.n),[],import.meta.url),banana:()=>n(()=>import(`./vendor-icon-banana-CC9tuIXu.js`).then(e=>e.t),[],import.meta.url),bandage:()=>n(()=>import(`./vendor-icon-bandage-BHjfH_RC.js`).then(e=>e.t),[],import.meta.url),"banknote-arrow-down":()=>n(()=>import(`./vendor-icon-banknote-arrow-down-BMAcW800.js`).then(e=>e.t),[],import.meta.url),"banknote-arrow-up":()=>n(()=>import(`./vendor-icon-banknote-arrow-up-HI3Jmux2.js`).then(e=>e.t),[],import.meta.url),"banknote-check":()=>n(()=>import(`./vendor-icon-banknote-check-BQA8T8c3.js`).then(e=>e.t),[],import.meta.url),"banknote-x":()=>n(()=>import(`./vendor-icon-banknote-x-D0u-axaP.js`).then(e=>e.t),[],import.meta.url),banknote:()=>n(()=>import(`./vendor-icon-banknote-CsykSAMM.js`).then(e=>e.t),[],import.meta.url),barcode:()=>n(()=>import(`./vendor-icon-barcode-CuOwThA_.js`).then(e=>e.t),[],import.meta.url),barrel:()=>n(()=>import(`./vendor-icon-barrel-Bda7dV26.js`).then(e=>e.t),[],import.meta.url),baseline:()=>n(()=>import(`./vendor-icon-baseline-y40zI06C.js`).then(e=>e.t),[],import.meta.url),bath:()=>n(()=>import(`./vendor-icon-bath-CdqaiL8l.js`).then(e=>e.t),[],import.meta.url),"battery-charging":()=>n(()=>import(`./vendor-icon-battery-charging-DjUfnz4N.js`).then(e=>e.t),[],import.meta.url),"battery-full":()=>n(()=>import(`./vendor-icon-battery-full-036_Zbw5.js`).then(e=>e.t),[],import.meta.url),"battery-low":()=>n(()=>import(`./vendor-icon-battery-low-BF_Q_e-W.js`).then(e=>e.t),[],import.meta.url),"battery-medium":()=>n(()=>import(`./vendor-icon-battery-medium-pRYiWzMo.js`).then(e=>e.t),[],import.meta.url),"battery-plus":()=>n(()=>import(`./vendor-icon-battery-plus-ChBKYf8k.js`).then(e=>e.t),[],import.meta.url),"battery-warning":()=>n(()=>import(`./vendor-icon-battery-warning-BDGO1Yqy.js`).then(e=>e.t),[],import.meta.url),battery:()=>n(()=>import(`./vendor-icon-battery-BJwCobyk.js`).then(e=>e.t),[],import.meta.url),beaker:()=>n(()=>import(`./vendor-icon-beaker-D25F8k-4.js`).then(e=>e.t),[],import.meta.url),"bean-off":()=>n(()=>import(`./vendor-icon-bean-off-DxN0WJm0.js`).then(e=>e.t),[],import.meta.url),bean:()=>n(()=>import(`./vendor-icon-bean-DuTu_R-z.js`).then(e=>e.t),[],import.meta.url),"bed-double":()=>n(()=>import(`./vendor-icon-bed-double-Bsz1VTxy.js`).then(e=>e.t),[],import.meta.url),"bed-single":()=>n(()=>import(`./vendor-icon-bed-single-Rkjxmuc1.js`).then(e=>e.t),[],import.meta.url),bed:()=>n(()=>import(`./vendor-icon-bed-QmEeEJQW.js`).then(e=>e.t),[],import.meta.url),"beef-off":()=>n(()=>import(`./vendor-icon-beef-off-CQXbz845.js`).then(e=>e.t),[],import.meta.url),beef:()=>n(()=>import(`./vendor-icon-beef-BFq4vah2.js`).then(e=>e.t),[],import.meta.url),"beer-off":()=>n(()=>import(`./vendor-icon-beer-off-Bu1IQ0e6.js`).then(e=>e.t),[],import.meta.url),beer:()=>n(()=>import(`./vendor-icon-beer-DVuo37NI.js`).then(e=>e.t),[],import.meta.url),"bell-check":()=>n(()=>import(`./vendor-icon-bell-check-BCmUcW1B.js`).then(e=>e.t),[],import.meta.url),"bell-dot":()=>n(()=>import(`./vendor-icon-bell-dot-DTmWUM4L.js`).then(e=>e.t),[],import.meta.url),"bell-electric":()=>n(()=>import(`./vendor-icon-bell-electric-AQBrrADs.js`).then(e=>e.t),[],import.meta.url),"bell-minus":()=>n(()=>import(`./vendor-icon-bell-minus-CNGJDnyj.js`).then(e=>e.t),[],import.meta.url),"bell-off":()=>n(()=>import(`./vendor-icon-bell-off-BnernHBj.js`).then(e=>e.n),[],import.meta.url),"bell-plus":()=>n(()=>import(`./vendor-icon-bell-plus-QtSDdIK5.js`).then(e=>e.t),[],import.meta.url),"bell-ring":()=>n(()=>import(`./vendor-icon-bell-ring-LBHChJlF.js`).then(e=>e.t),[],import.meta.url),bell:()=>n(()=>import(`./vendor-icon-bell-6t8He8Wt.js`).then(e=>e.n),[],import.meta.url),"between-horizontal-end":()=>n(()=>import(`./vendor-icon-between-horizontal-end-C46KRk7b.js`).then(e=>e.t),[],import.meta.url),"between-horizonal-end":()=>n(()=>import(`./vendor-icon-between-horizontal-end-C46KRk7b.js`).then(e=>e.t),[],import.meta.url),"between-horizontal-start":()=>n(()=>import(`./vendor-icon-between-horizontal-start-CD0UYbDc.js`).then(e=>e.t),[],import.meta.url),"between-horizonal-start":()=>n(()=>import(`./vendor-icon-between-horizontal-start-CD0UYbDc.js`).then(e=>e.t),[],import.meta.url),"between-vertical-end":()=>n(()=>import(`./vendor-icon-between-vertical-end-DwkpWlec.js`).then(e=>e.t),[],import.meta.url),"between-vertical-start":()=>n(()=>import(`./vendor-icon-between-vertical-start-D3PGeCko.js`).then(e=>e.t),[],import.meta.url),"biceps-flexed":()=>n(()=>import(`./vendor-icon-biceps-flexed-B8-COhUj.js`).then(e=>e.t),[],import.meta.url),bike:()=>n(()=>import(`./vendor-icon-bike-06CgSklf.js`).then(e=>e.t),[],import.meta.url),binary:()=>n(()=>import(`./vendor-icon-binary-tuvA2-Dc.js`).then(e=>e.t),[],import.meta.url),binoculars:()=>n(()=>import(`./vendor-icon-binoculars-ss__0nkp.js`).then(e=>e.t),[],import.meta.url),biohazard:()=>n(()=>import(`./vendor-icon-biohazard-CtBuFyuH.js`).then(e=>e.t),[],import.meta.url),bird:()=>n(()=>import(`./vendor-icon-bird-9UiqSPbG.js`).then(e=>e.t),[],import.meta.url),birdhouse:()=>n(()=>import(`./vendor-icon-birdhouse-C2kEPqfy.js`).then(e=>e.t),[],import.meta.url),bitcoin:()=>n(()=>import(`./vendor-icon-bitcoin-DYJJXzOh.js`).then(e=>e.t),[],import.meta.url),blend:()=>n(()=>import(`./vendor-icon-blend-CoAzWdVG.js`).then(e=>e.t),[],import.meta.url),blender:()=>n(()=>import(`./vendor-icon-blender-DBEryCkO.js`).then(e=>e.t),[],import.meta.url),blinds:()=>n(()=>import(`./vendor-icon-blinds-Czbu-HpR.js`).then(e=>e.t),[],import.meta.url),blocks:()=>n(()=>import(`./vendor-icon-blocks-DDFFB7pl.js`).then(e=>e.t),[],import.meta.url),"bluetooth-connected":()=>n(()=>import(`./vendor-icon-bluetooth-connected-XEgpgnaw.js`).then(e=>e.t),[],import.meta.url),"bluetooth-off":()=>n(()=>import(`./vendor-icon-bluetooth-off-LoBmADbk.js`).then(e=>e.t),[],import.meta.url),"bluetooth-searching":()=>n(()=>import(`./vendor-icon-bluetooth-searching-BzSmg39N.js`).then(e=>e.t),[],import.meta.url),bluetooth:()=>n(()=>import(`./vendor-icon-bluetooth-D1C9AxKB.js`).then(e=>e.t),[],import.meta.url),bold:()=>n(()=>import(`./vendor-icon-bold-C_J_IVlW.js`).then(e=>e.n),[],import.meta.url),bolt:()=>n(()=>import(`./vendor-icon-bolt-BW--mzh1.js`).then(e=>e.t),[],import.meta.url),bomb:()=>n(()=>import(`./vendor-icon-bomb-CjcDEoal.js`).then(e=>e.t),[],import.meta.url),"bone-fracture":()=>n(()=>import(`./vendor-icon-bone-fracture-DzESZaJV.js`).then(e=>e.t),[],import.meta.url),bone:()=>n(()=>import(`./vendor-icon-bone-B5F-HwTH.js`).then(e=>e.t),[],import.meta.url),"book-a":()=>n(()=>import(`./vendor-icon-book-a-DiAf8JxP.js`).then(e=>e.t),[],import.meta.url),"book-alert":()=>n(()=>import(`./vendor-icon-book-alert-CpGaFXsa.js`).then(e=>e.t),[],import.meta.url),"book-audio":()=>n(()=>import(`./vendor-icon-book-audio-BqxyHkWA.js`).then(e=>e.t),[],import.meta.url),"book-check":()=>n(()=>import(`./vendor-icon-book-check-ChiLxFBp.js`).then(e=>e.t),[],import.meta.url),"book-copy":()=>n(()=>import(`./vendor-icon-book-copy-D_ASUAtd.js`).then(e=>e.t),[],import.meta.url),"book-dashed":()=>n(()=>import(`./vendor-icon-book-dashed-D0v0pLdy.js`).then(e=>e.t),[],import.meta.url),"book-template":()=>n(()=>import(`./vendor-icon-book-dashed-D0v0pLdy.js`).then(e=>e.t),[],import.meta.url),"book-down":()=>n(()=>import(`./vendor-icon-book-down-p0Fv89YA.js`).then(e=>e.t),[],import.meta.url),"book-headphones":()=>n(()=>import(`./vendor-icon-book-headphones-DnzT6_cu.js`).then(e=>e.t),[],import.meta.url),"book-heart":()=>n(()=>import(`./vendor-icon-book-heart-BsqQ1V1D.js`).then(e=>e.t),[],import.meta.url),"book-image":()=>n(()=>import(`./vendor-icon-book-image-DMatMJY5.js`).then(e=>e.t),[],import.meta.url),"book-key":()=>n(()=>import(`./vendor-icon-book-key-CT1PIzVh.js`).then(e=>e.t),[],import.meta.url),"book-lock":()=>n(()=>import(`./vendor-icon-book-lock-D3Q3Xbe3.js`).then(e=>e.t),[],import.meta.url),"book-marked":()=>n(()=>import(`./vendor-icon-book-marked-BNQoIJ5i.js`).then(e=>e.t),[],import.meta.url),"book-minus":()=>n(()=>import(`./vendor-icon-book-minus-B3CG5DkP.js`).then(e=>e.t),[],import.meta.url),"book-open-check":()=>n(()=>import(`./vendor-icon-book-open-check-CoTaJ4ok.js`).then(e=>e.t),[],import.meta.url),"book-open-text":()=>n(()=>import(`./vendor-icon-book-open-text-yu2Qa-1R.js`).then(e=>e.t),[],import.meta.url),"book-open":()=>n(()=>import(`./vendor-icon-book-open-DKPXYwQK.js`).then(e=>e.n),[],import.meta.url),"book-plus":()=>n(()=>import(`./vendor-icon-book-plus-DXT6kg70.js`).then(e=>e.t),[],import.meta.url),"book-search":()=>n(()=>import(`./vendor-icon-book-search-DfnEtOIE.js`).then(e=>e.t),[],import.meta.url),"book-text":()=>n(()=>import(`./vendor-icon-book-text-D1py1RmB.js`).then(e=>e.t),[],import.meta.url),"book-type":()=>n(()=>import(`./vendor-icon-book-type-D7_m9oiL.js`).then(e=>e.t),[],import.meta.url),"book-up-2":()=>n(()=>import(`./vendor-icon-book-up-2-CucaCe7u.js`).then(e=>e.t),[],import.meta.url),"book-up":()=>n(()=>import(`./vendor-icon-book-up-BV7a7ngI.js`).then(e=>e.t),[],import.meta.url),"book-user":()=>n(()=>import(`./vendor-icon-book-user-DoxmdFc4.js`).then(e=>e.t),[],import.meta.url),"book-x":()=>n(()=>import(`./vendor-icon-book-x-7V3lU49G.js`).then(e=>e.t),[],import.meta.url),book:()=>n(()=>import(`./vendor-icon-book-G3BEklPT.js`).then(e=>e.n),[],import.meta.url),"bookmark-check":()=>n(()=>import(`./vendor-icon-bookmark-check-n9vN44sa.js`).then(e=>e.t),[],import.meta.url),"bookmark-minus":()=>n(()=>import(`./vendor-icon-bookmark-minus-CcNE09vn.js`).then(e=>e.t),[],import.meta.url),"bookmark-off":()=>n(()=>import(`./vendor-icon-bookmark-off-BiLNUcV6.js`).then(e=>e.t),[],import.meta.url),"bookmark-plus":()=>n(()=>import(`./vendor-icon-bookmark-plus-CLBY6oDV.js`).then(e=>e.t),[],import.meta.url),"bookmark-x":()=>n(()=>import(`./vendor-icon-bookmark-x-DmSzlxgy.js`).then(e=>e.t),[],import.meta.url),bookmark:()=>n(()=>import(`./vendor-icon-bookmark-9tzlP1OZ.js`).then(e=>e.t),[],import.meta.url),"boom-box":()=>n(()=>import(`./vendor-icon-boom-box-DJU8sNXh.js`).then(e=>e.t),[],import.meta.url),"bot-message-square":()=>n(()=>import(`./vendor-icon-bot-message-square-BTTznj-l.js`).then(e=>e.t),[],import.meta.url),"bot-off":()=>n(()=>import(`./vendor-icon-bot-off-BF5xpohy.js`).then(e=>e.t),[],import.meta.url),bot:()=>n(()=>import(`./vendor-icon-bot-B9KkwkON.js`).then(e=>e.n),[],import.meta.url),"bottle-wine":()=>n(()=>import(`./vendor-icon-bottle-wine-CeBRdakJ.js`).then(e=>e.t),[],import.meta.url),"bow-arrow":()=>n(()=>import(`./vendor-icon-bow-arrow-Cu-EExiR.js`).then(e=>e.t),[],import.meta.url),box:()=>n(()=>import(`./vendor-icon-box-YdZpEqfe.js`).then(e=>e.n),[],import.meta.url),boxes:()=>n(()=>import(`./vendor-icon-boxes-D-Ov3dJw.js`).then(e=>e.n),[],import.meta.url),braces:()=>n(()=>import(`./vendor-icon-braces-DpucUCEz.js`).then(e=>e.n),[],import.meta.url),"curly-braces":()=>n(()=>import(`./vendor-icon-braces-DpucUCEz.js`).then(e=>e.n),[],import.meta.url),brackets:()=>n(()=>import(`./vendor-icon-brackets-C_PedW23.js`).then(e=>e.t),[],import.meta.url),"brain-circuit":()=>n(()=>import(`./vendor-icon-brain-circuit-t2dx4jHG.js`).then(e=>e.n),[],import.meta.url),"brain-cog":()=>n(()=>import(`./vendor-icon-brain-cog-Bj2y6IBp.js`).then(e=>e.t),[],import.meta.url),brain:()=>n(()=>import(`./vendor-icon-brain-D9Ga2nI6.js`).then(e=>e.n),[],import.meta.url),"brick-wall-fire":()=>n(()=>import(`./vendor-icon-brick-wall-fire-C1l8up5n.js`).then(e=>e.t),[],import.meta.url),"brick-wall-shield":()=>n(()=>import(`./vendor-icon-brick-wall-shield-CeU0YVYf.js`).then(e=>e.t),[],import.meta.url),"brick-wall":()=>n(()=>import(`./vendor-icon-brick-wall-C0SJRgHV.js`).then(e=>e.t),[],import.meta.url),bridge:()=>n(()=>import(`./vendor-icon-bridge-BQ5qDCsY.js`).then(e=>e.t),[],import.meta.url),"briefcase-business":()=>n(()=>import(`./vendor-icon-briefcase-business-C7iMpxPs.js`).then(e=>e.t),[],import.meta.url),"briefcase-conveyor-belt":()=>n(()=>import(`./vendor-icon-briefcase-conveyor-belt-CCJA0ZQY.js`).then(e=>e.t),[],import.meta.url),"briefcase-medical":()=>n(()=>import(`./vendor-icon-briefcase-medical-BxY_Aif8.js`).then(e=>e.t),[],import.meta.url),briefcase:()=>n(()=>import(`./vendor-icon-briefcase-BkRvVC3c.js`).then(e=>e.t),[],import.meta.url),"bring-to-front":()=>n(()=>import(`./vendor-icon-bring-to-front-SRfTDlDn.js`).then(e=>e.t),[],import.meta.url),broccoli:()=>n(()=>import(`./vendor-icon-broccoli-DHKlF3PK.js`).then(e=>e.t),[],import.meta.url),"broom-sparkles":()=>n(()=>import(`./vendor-icon-broom-sparkles-CkMG14HT.js`).then(e=>e.t),[],import.meta.url),broom:()=>n(()=>import(`./vendor-icon-broom-CmtZStJ9.js`).then(e=>e.t),[],import.meta.url),"brush-cleaning":()=>n(()=>import(`./vendor-icon-brush-cleaning-CD9LkJMV.js`).then(e=>e.t),[],import.meta.url),brush:()=>n(()=>import(`./vendor-icon-brush-D-caiKce.js`).then(e=>e.t),[],import.meta.url),bubbles:()=>n(()=>import(`./vendor-icon-bubbles-COmA0gsa.js`).then(e=>e.t),[],import.meta.url),"bug-off":()=>n(()=>import(`./vendor-icon-bug-off-BLjYgwrT.js`).then(e=>e.t),[],import.meta.url),"bug-play":()=>n(()=>import(`./vendor-icon-bug-play-UTr3p70h.js`).then(e=>e.t),[],import.meta.url),bug:()=>n(()=>import(`./vendor-icon-bug-BdoY1KRy.js`).then(e=>e.n),[],import.meta.url),"building-2":()=>n(()=>import(`./vendor-icon-building-2-GgGvlXZt.js`).then(e=>e.n),[],import.meta.url),building:()=>n(()=>import(`./vendor-icon-building-C5WMMTbE.js`).then(e=>e.t),[],import.meta.url),"bus-front":()=>n(()=>import(`./vendor-icon-bus-front-BIBVcQpX.js`).then(e=>e.t),[],import.meta.url),bus:()=>n(()=>import(`./vendor-icon-bus-B6l1w4-y.js`).then(e=>e.t),[],import.meta.url),"cable-car":()=>n(()=>import(`./vendor-icon-cable-car-BmSa7ZPQ.js`).then(e=>e.t),[],import.meta.url),cable:()=>n(()=>import(`./vendor-icon-cable-BTsoRl2K.js`).then(e=>e.t),[],import.meta.url),"cake-slice":()=>n(()=>import(`./vendor-icon-cake-slice-DFRfgijj.js`).then(e=>e.t),[],import.meta.url),cake:()=>n(()=>import(`./vendor-icon-cake-CtiWX5vx.js`).then(e=>e.t),[],import.meta.url),calculator:()=>n(()=>import(`./vendor-icon-calculator-C1-liU2H.js`).then(e=>e.n),[],import.meta.url),"calendar-1":()=>n(()=>import(`./vendor-icon-calendar-1-DmPfjXmy.js`).then(e=>e.t),[],import.meta.url),"calendar-arrow-down":()=>n(()=>import(`./vendor-icon-calendar-arrow-down-BOXGSx3j.js`).then(e=>e.t),[],import.meta.url),"calendar-arrow-up":()=>n(()=>import(`./vendor-icon-calendar-arrow-up-DsdilVDc.js`).then(e=>e.t),[],import.meta.url),"calendar-check-2":()=>n(()=>import(`./vendor-icon-calendar-check-2-DiFs1OnK.js`).then(e=>e.t),[],import.meta.url),"calendar-check":()=>n(()=>import(`./vendor-icon-calendar-check-CiHh2RPp.js`).then(e=>e.t),[],import.meta.url),"calendar-clock":()=>n(()=>import(`./vendor-icon-calendar-clock-CgCpvnMA.js`).then(e=>e.t),[],import.meta.url),"calendar-cog":()=>n(()=>import(`./vendor-icon-calendar-cog-C5crTy9l.js`).then(e=>e.t),[],import.meta.url),"calendar-days":()=>n(()=>import(`./vendor-icon-calendar-days-DHD6H2oB.js`).then(e=>e.t),[],import.meta.url),"calendar-fold":()=>n(()=>import(`./vendor-icon-calendar-fold-DirYIddk.js`).then(e=>e.t),[],import.meta.url),"calendar-heart":()=>n(()=>import(`./vendor-icon-calendar-heart-B7cGypLC.js`).then(e=>e.t),[],import.meta.url),"calendar-minus-2":()=>n(()=>import(`./vendor-icon-calendar-minus-2-DqRaqHZb.js`).then(e=>e.t),[],import.meta.url),"calendar-minus":()=>n(()=>import(`./vendor-icon-calendar-minus-DmVGhPlf.js`).then(e=>e.t),[],import.meta.url),"calendar-off":()=>n(()=>import(`./vendor-icon-calendar-off-B2tr6Ggz.js`).then(e=>e.t),[],import.meta.url),"calendar-plus-2":()=>n(()=>import(`./vendor-icon-calendar-plus-2-DFVHgZmr.js`).then(e=>e.t),[],import.meta.url),"calendar-plus":()=>n(()=>import(`./vendor-icon-calendar-plus-RZOJ_Q8G.js`).then(e=>e.t),[],import.meta.url),"calendar-range":()=>n(()=>import(`./vendor-icon-calendar-range-uuodFrO1.js`).then(e=>e.t),[],import.meta.url),"calendar-search":()=>n(()=>import(`./vendor-icon-calendar-search-DmDW-09w.js`).then(e=>e.t),[],import.meta.url),"calendar-sync":()=>n(()=>import(`./vendor-icon-calendar-sync-Ccwp9IC-.js`).then(e=>e.t),[],import.meta.url),"calendar-x-2":()=>n(()=>import(`./vendor-icon-calendar-x-2-BMiAZtDu.js`).then(e=>e.t),[],import.meta.url),"calendar-x":()=>n(()=>import(`./vendor-icon-calendar-x-BRs6ZzOy.js`).then(e=>e.t),[],import.meta.url),calendar:()=>n(()=>import(`./vendor-icon-calendar-BsoUBIef.js`).then(e=>e.n),[],import.meta.url),calendars:()=>n(()=>import(`./vendor-icon-calendars-DH3Ae5lV.js`).then(e=>e.t),[],import.meta.url),"camera-off":()=>n(()=>import(`./vendor-icon-camera-off-Dh2d3eZQ.js`).then(e=>e.t),[],import.meta.url),camera:()=>n(()=>import(`./vendor-icon-camera-Cidjovli.js`).then(e=>e.n),[],import.meta.url),"can-soda":()=>n(()=>import(`./vendor-icon-can-soda-DJsJ06zr.js`).then(e=>e.t),[],import.meta.url),can:()=>n(()=>import(`./vendor-icon-can-nWD6n1_s.js`).then(e=>e.t),[],import.meta.url),"candy-cane":()=>n(()=>import(`./vendor-icon-candy-cane-CH8_to4F.js`).then(e=>e.t),[],import.meta.url),"candy-off":()=>n(()=>import(`./vendor-icon-candy-off-BAx8DgYk.js`).then(e=>e.t),[],import.meta.url),candy:()=>n(()=>import(`./vendor-icon-candy-BbiGKwA2.js`).then(e=>e.t),[],import.meta.url),"cannabis-off":()=>n(()=>import(`./vendor-icon-cannabis-off-mofSEkdz.js`).then(e=>e.t),[],import.meta.url),cannabis:()=>n(()=>import(`./vendor-icon-cannabis-BZ5ZqpSr.js`).then(e=>e.t),[],import.meta.url),"captions-off":()=>n(()=>import(`./vendor-icon-captions-off-DtVtfm_F.js`).then(e=>e.t),[],import.meta.url),captions:()=>n(()=>import(`./vendor-icon-captions-B0EQdnsE.js`).then(e=>e.t),[],import.meta.url),subtitles:()=>n(()=>import(`./vendor-icon-captions-B0EQdnsE.js`).then(e=>e.t),[],import.meta.url),"car-battery":()=>n(()=>import(`./vendor-icon-car-battery-CZOp79jy.js`).then(e=>e.t),[],import.meta.url),"car-front":()=>n(()=>import(`./vendor-icon-car-front-D_LfNBLs.js`).then(e=>e.t),[],import.meta.url),"car-taxi-front":()=>n(()=>import(`./vendor-icon-car-taxi-front-DIKgXQLr.js`).then(e=>e.t),[],import.meta.url),car:()=>n(()=>import(`./vendor-icon-car-CDr9m6-k.js`).then(e=>e.t),[],import.meta.url),caravan:()=>n(()=>import(`./vendor-icon-caravan-CboeFH5W.js`).then(e=>e.t),[],import.meta.url),"card-sim":()=>n(()=>import(`./vendor-icon-card-sim-HWjf94NM.js`).then(e=>e.t),[],import.meta.url),carrot:()=>n(()=>import(`./vendor-icon-carrot-DO6KgJDl.js`).then(e=>e.t),[],import.meta.url),"carton-off":()=>n(()=>import(`./vendor-icon-carton-off-HXcu-33_.js`).then(e=>e.t),[],import.meta.url),carton:()=>n(()=>import(`./vendor-icon-carton-CdXRWH2t.js`).then(e=>e.t),[],import.meta.url),"case-lower":()=>n(()=>import(`./vendor-icon-case-lower-B2PpQMkf.js`).then(e=>e.t),[],import.meta.url),"case-sensitive":()=>n(()=>import(`./vendor-icon-case-sensitive-CUsvI9ZN.js`).then(e=>e.t),[],import.meta.url),"case-upper":()=>n(()=>import(`./vendor-icon-case-upper-CSE6wmNy.js`).then(e=>e.t),[],import.meta.url),"cassette-tape":()=>n(()=>import(`./vendor-icon-cassette-tape-D9QACA8q.js`).then(e=>e.t),[],import.meta.url),cast:()=>n(()=>import(`./vendor-icon-cast-Ye0R_8bZ.js`).then(e=>e.t),[],import.meta.url),castle:()=>n(()=>import(`./vendor-icon-castle-BPNEZWtL.js`).then(e=>e.t),[],import.meta.url),cat:()=>n(()=>import(`./vendor-icon-cat-B-TLuDKQ.js`).then(e=>e.t),[],import.meta.url),"cctv-off":()=>n(()=>import(`./vendor-icon-cctv-off-DVtUy7YT.js`).then(e=>e.t),[],import.meta.url),cctv:()=>n(()=>import(`./vendor-icon-cctv-BBQX97-p.js`).then(e=>e.t),[],import.meta.url),"chart-area":()=>n(()=>import(`./vendor-icon-chart-area-D8lW2P2T.js`).then(e=>e.n),[],import.meta.url),"area-chart":()=>n(()=>import(`./vendor-icon-chart-area-D8lW2P2T.js`).then(e=>e.n),[],import.meta.url),"chart-bar-big":()=>n(()=>import(`./vendor-icon-chart-bar-big-C1BROALJ.js`).then(e=>e.t),[],import.meta.url),"bar-chart-horizontal-big":()=>n(()=>import(`./vendor-icon-chart-bar-big-C1BROALJ.js`).then(e=>e.t),[],import.meta.url),"chart-bar-decreasing":()=>n(()=>import(`./vendor-icon-chart-bar-decreasing-DhBn4VQ3.js`).then(e=>e.t),[],import.meta.url),"chart-bar-increasing":()=>n(()=>import(`./vendor-icon-chart-bar-increasing-XLOGZmL7.js`).then(e=>e.t),[],import.meta.url),"chart-bar-stacked":()=>n(()=>import(`./vendor-icon-chart-bar-stacked-C14j40p5.js`).then(e=>e.t),[],import.meta.url),"chart-bar":()=>n(()=>import(`./vendor-icon-chart-bar-DR-Bn0fN.js`).then(e=>e.t),[],import.meta.url),"bar-chart-horizontal":()=>n(()=>import(`./vendor-icon-chart-bar-DR-Bn0fN.js`).then(e=>e.t),[],import.meta.url),"chart-candlestick":()=>n(()=>import(`./vendor-icon-chart-candlestick-DoRh6pnH.js`).then(e=>e.t),[],import.meta.url),"candlestick-chart":()=>n(()=>import(`./vendor-icon-chart-candlestick-DoRh6pnH.js`).then(e=>e.t),[],import.meta.url),"chart-column-big":()=>n(()=>import(`./vendor-icon-chart-column-big-gci0ytwY.js`).then(e=>e.t),[],import.meta.url),"bar-chart-big":()=>n(()=>import(`./vendor-icon-chart-column-big-gci0ytwY.js`).then(e=>e.t),[],import.meta.url),"chart-column-decreasing":()=>n(()=>import(`./vendor-icon-chart-column-decreasing-Bdvnj1ZU.js`).then(e=>e.t),[],import.meta.url),"chart-column-increasing":()=>n(()=>import(`./vendor-icon-chart-column-increasing-CU6JOULg.js`).then(e=>e.t),[],import.meta.url),"bar-chart-4":()=>n(()=>import(`./vendor-icon-chart-column-increasing-CU6JOULg.js`).then(e=>e.t),[],import.meta.url),"chart-column-stacked":()=>n(()=>import(`./vendor-icon-chart-column-stacked-DEVTGv4_.js`).then(e=>e.t),[],import.meta.url),"chart-column":()=>n(()=>import(`./vendor-icon-chart-column-DicJIApF.js`).then(e=>e.n),[],import.meta.url),"bar-chart-3":()=>n(()=>import(`./vendor-icon-chart-column-DicJIApF.js`).then(e=>e.n),[],import.meta.url),"chart-gantt":()=>n(()=>import(`./vendor-icon-chart-gantt-DT-shh3t.js`).then(e=>e.n),[],import.meta.url),"chart-line":()=>n(()=>import(`./vendor-icon-chart-line-DOxarYni.js`).then(e=>e.n),[],import.meta.url),"line-chart":()=>n(()=>import(`./vendor-icon-chart-line-DOxarYni.js`).then(e=>e.n),[],import.meta.url),"chart-network":()=>n(()=>import(`./vendor-icon-chart-network-d9lPTueq.js`).then(e=>e.t),[],import.meta.url),"chart-no-axes-column-decreasing":()=>n(()=>import(`./vendor-icon-chart-no-axes-column-decreasing-wIdUOWSv.js`).then(e=>e.t),[],import.meta.url),"chart-no-axes-column-increasing":()=>n(()=>import(`./vendor-icon-chart-no-axes-column-increasing-B83_C-Nw.js`).then(e=>e.n),[],import.meta.url),"bar-chart":()=>n(()=>import(`./vendor-icon-chart-no-axes-column-increasing-B83_C-Nw.js`).then(e=>e.n),[],import.meta.url),"chart-no-axes-column":()=>n(()=>import(`./vendor-icon-chart-no-axes-column-BfpSKd1L.js`).then(e=>e.n),[],import.meta.url),"bar-chart-2":()=>n(()=>import(`./vendor-icon-chart-no-axes-column-BfpSKd1L.js`).then(e=>e.n),[],import.meta.url),"chart-no-axes-combined":()=>n(()=>import(`./vendor-icon-chart-no-axes-combined-V2nqI3Rn.js`).then(e=>e.t),[],import.meta.url),"chart-no-axes-gantt":()=>n(()=>import(`./vendor-icon-chart-no-axes-gantt-_tk8gYAt.js`).then(e=>e.n),[],import.meta.url),"gantt-chart":()=>n(()=>import(`./vendor-icon-chart-no-axes-gantt-_tk8gYAt.js`).then(e=>e.n),[],import.meta.url),"chart-pie":()=>n(()=>import(`./vendor-icon-chart-pie-OmZxepOF.js`).then(e=>e.n),[],import.meta.url),"pie-chart":()=>n(()=>import(`./vendor-icon-chart-pie-OmZxepOF.js`).then(e=>e.n),[],import.meta.url),"chart-scatter":()=>n(()=>import(`./vendor-icon-chart-scatter-Dw4KAem0.js`).then(e=>e.n),[],import.meta.url),"scatter-chart":()=>n(()=>import(`./vendor-icon-chart-scatter-Dw4KAem0.js`).then(e=>e.n),[],import.meta.url),"chart-spline":()=>n(()=>import(`./vendor-icon-chart-spline-CAm3IDKf.js`).then(e=>e.t),[],import.meta.url),"check-check":()=>n(()=>import(`./vendor-icon-check-check-lFjYh3sO.js`).then(e=>e.n),[],import.meta.url),"check-line":()=>n(()=>import(`./vendor-icon-check-line-DdDJFZbK.js`).then(e=>e.t),[],import.meta.url),check:()=>n(()=>import(`./vendor-icon-check-vpu9Zukp.js`).then(e=>e.n),[],import.meta.url),"chef-hat":()=>n(()=>import(`./vendor-icon-chef-hat-Bjj7Kzho.js`).then(e=>e.t),[],import.meta.url),cherry:()=>n(()=>import(`./vendor-icon-cherry-DKJInkBy.js`).then(e=>e.t),[],import.meta.url),"chess-bishop":()=>n(()=>import(`./vendor-icon-chess-bishop-CVoCncRu.js`).then(e=>e.t),[],import.meta.url),"chess-king":()=>n(()=>import(`./vendor-icon-chess-king-ej12aRVV.js`).then(e=>e.t),[],import.meta.url),"chess-knight":()=>n(()=>import(`./vendor-icon-chess-knight-HOLNu-G7.js`).then(e=>e.t),[],import.meta.url),"chess-pawn":()=>n(()=>import(`./vendor-icon-chess-pawn-lfRBs2lA.js`).then(e=>e.t),[],import.meta.url),"chess-queen":()=>n(()=>import(`./vendor-icon-chess-queen-_tGAbwN-.js`).then(e=>e.t),[],import.meta.url),"chess-rook":()=>n(()=>import(`./vendor-icon-chess-rook-DXvtVyio.js`).then(e=>e.t),[],import.meta.url),"chevron-down":()=>n(()=>import(`./vendor-icon-chevron-down-BEf_jTEE.js`).then(e=>e.n),[],import.meta.url),"chevron-first":()=>n(()=>import(`./vendor-icon-chevron-first-fl-h3kl7.js`).then(e=>e.t),[],import.meta.url),"chevron-last":()=>n(()=>import(`./vendor-icon-chevron-last-BBppZQ8K.js`).then(e=>e.t),[],import.meta.url),"chevron-left":()=>n(()=>import(`./vendor-icon-chevron-left-KnDcuFH1.js`).then(e=>e.n),[],import.meta.url),"chevron-right":()=>n(()=>import(`./vendor-icon-chevron-right-DbnKwHYQ.js`).then(e=>e.n),[],import.meta.url),"chevron-up":()=>n(()=>import(`./vendor-icon-chevron-up-C-6o_0je.js`).then(e=>e.n),[],import.meta.url),"chevrons-down-up":()=>n(()=>import(`./vendor-icon-chevrons-down-up-BnOaG_Oo.js`).then(e=>e.n),[],import.meta.url),"chevrons-down":()=>n(()=>import(`./vendor-icon-chevrons-down-DXZuvtdX.js`).then(e=>e.t),[],import.meta.url),"chevrons-left-right-ellipsis":()=>n(()=>import(`./vendor-icon-chevrons-left-right-ellipsis-D3yn3dJM.js`).then(e=>e.t),[],import.meta.url),"chevrons-left-right":()=>n(()=>import(`./vendor-icon-chevrons-left-right-Br95NUdC.js`).then(e=>e.t),[],import.meta.url),"chevrons-left":()=>n(()=>import(`./vendor-icon-chevrons-left-gvlDgS8M.js`).then(e=>e.n),[],import.meta.url),"chevrons-right-left":()=>n(()=>import(`./vendor-icon-chevrons-right-left-Dh1GIIqr.js`).then(e=>e.t),[],import.meta.url),"chevrons-right":()=>n(()=>import(`./vendor-icon-chevrons-right-lic1nOWF.js`).then(e=>e.n),[],import.meta.url),"chevrons-up-down":()=>n(()=>import(`./vendor-icon-chevrons-up-down-CbDukqtA.js`).then(e=>e.n),[],import.meta.url),"chevrons-up":()=>n(()=>import(`./vendor-icon-chevrons-up-B500un_w.js`).then(e=>e.t),[],import.meta.url),church:()=>n(()=>import(`./vendor-icon-church-DPXHSIWM.js`).then(e=>e.t),[],import.meta.url),"cigarette-off":()=>n(()=>import(`./vendor-icon-cigarette-off-ChKB_v2Y.js`).then(e=>e.t),[],import.meta.url),cigarette:()=>n(()=>import(`./vendor-icon-cigarette-DC_E7GPa.js`).then(e=>e.t),[],import.meta.url),"circle-alert":()=>n(()=>import(`./vendor-icon-circle-alert-D1XTr_X9.js`).then(e=>e.n),[],import.meta.url),"alert-circle":()=>n(()=>import(`./vendor-icon-circle-alert-D1XTr_X9.js`).then(e=>e.n),[],import.meta.url),"circle-arrow-down":()=>n(()=>import(`./vendor-icon-circle-arrow-down-BcF6cBFy.js`).then(e=>e.t),[],import.meta.url),"arrow-down-circle":()=>n(()=>import(`./vendor-icon-circle-arrow-down-BcF6cBFy.js`).then(e=>e.t),[],import.meta.url),"circle-arrow-left":()=>n(()=>import(`./vendor-icon-circle-arrow-left-DUObsOAM.js`).then(e=>e.t),[],import.meta.url),"arrow-left-circle":()=>n(()=>import(`./vendor-icon-circle-arrow-left-DUObsOAM.js`).then(e=>e.t),[],import.meta.url),"circle-arrow-out-down-left":()=>n(()=>import(`./vendor-icon-circle-arrow-out-down-left-YTa0z0J9.js`).then(e=>e.t),[],import.meta.url),"arrow-down-left-from-circle":()=>n(()=>import(`./vendor-icon-circle-arrow-out-down-left-YTa0z0J9.js`).then(e=>e.t),[],import.meta.url),"circle-arrow-out-down-right":()=>n(()=>import(`./vendor-icon-circle-arrow-out-down-right-BWV4x792.js`).then(e=>e.t),[],import.meta.url),"arrow-down-right-from-circle":()=>n(()=>import(`./vendor-icon-circle-arrow-out-down-right-BWV4x792.js`).then(e=>e.t),[],import.meta.url),"circle-arrow-out-up-left":()=>n(()=>import(`./vendor-icon-circle-arrow-out-up-left-BcxA2wnj.js`).then(e=>e.t),[],import.meta.url),"arrow-up-left-from-circle":()=>n(()=>import(`./vendor-icon-circle-arrow-out-up-left-BcxA2wnj.js`).then(e=>e.t),[],import.meta.url),"circle-arrow-out-up-right":()=>n(()=>import(`./vendor-icon-circle-arrow-out-up-right-BCHfEfUm.js`).then(e=>e.t),[],import.meta.url),"arrow-up-right-from-circle":()=>n(()=>import(`./vendor-icon-circle-arrow-out-up-right-BCHfEfUm.js`).then(e=>e.t),[],import.meta.url),"circle-arrow-right":()=>n(()=>import(`./vendor-icon-circle-arrow-right-DKIftb5e.js`).then(e=>e.t),[],import.meta.url),"arrow-right-circle":()=>n(()=>import(`./vendor-icon-circle-arrow-right-DKIftb5e.js`).then(e=>e.t),[],import.meta.url),"circle-arrow-up":()=>n(()=>import(`./vendor-icon-circle-arrow-up-bx9jlxK3.js`).then(e=>e.n),[],import.meta.url),"arrow-up-circle":()=>n(()=>import(`./vendor-icon-circle-arrow-up-bx9jlxK3.js`).then(e=>e.n),[],import.meta.url),"circle-check-big":()=>n(()=>import(`./vendor-icon-circle-check-big-MHBAycKk.js`).then(e=>e.n),[],import.meta.url),"check-circle":()=>n(()=>import(`./vendor-icon-circle-check-big-MHBAycKk.js`).then(e=>e.n),[],import.meta.url),"circle-check":()=>n(()=>import(`./vendor-icon-circle-check-Bq3OcFQN.js`).then(e=>e.n),[],import.meta.url),"check-circle-2":()=>n(()=>import(`./vendor-icon-circle-check-Bq3OcFQN.js`).then(e=>e.n),[],import.meta.url),"circle-chevron-down":()=>n(()=>import(`./vendor-icon-circle-chevron-down-DWo9n_gt.js`).then(e=>e.t),[],import.meta.url),"chevron-down-circle":()=>n(()=>import(`./vendor-icon-circle-chevron-down-DWo9n_gt.js`).then(e=>e.t),[],import.meta.url),"circle-chevron-left":()=>n(()=>import(`./vendor-icon-circle-chevron-left-3hHhZyJ0.js`).then(e=>e.t),[],import.meta.url),"chevron-left-circle":()=>n(()=>import(`./vendor-icon-circle-chevron-left-3hHhZyJ0.js`).then(e=>e.t),[],import.meta.url),"circle-chevron-right":()=>n(()=>import(`./vendor-icon-circle-chevron-right-BAwfCq_r.js`).then(e=>e.t),[],import.meta.url),"chevron-right-circle":()=>n(()=>import(`./vendor-icon-circle-chevron-right-BAwfCq_r.js`).then(e=>e.t),[],import.meta.url),"circle-chevron-up":()=>n(()=>import(`./vendor-icon-circle-chevron-up-vsL0ZP3K.js`).then(e=>e.t),[],import.meta.url),"chevron-up-circle":()=>n(()=>import(`./vendor-icon-circle-chevron-up-vsL0ZP3K.js`).then(e=>e.t),[],import.meta.url),"circle-dashed-check":()=>n(()=>import(`./vendor-icon-circle-dashed-check-DqI1Tewo.js`).then(e=>e.t),[],import.meta.url),"circle-dashed":()=>n(()=>import(`./vendor-icon-circle-dashed-CpJjWKYx.js`).then(e=>e.t),[],import.meta.url),"circle-divide":()=>n(()=>import(`./vendor-icon-circle-divide-BYuiUtxg.js`).then(e=>e.t),[],import.meta.url),"divide-circle":()=>n(()=>import(`./vendor-icon-circle-divide-BYuiUtxg.js`).then(e=>e.t),[],import.meta.url),"circle-dollar-sign":()=>n(()=>import(`./vendor-icon-circle-dollar-sign-CUcCaqIg.js`).then(e=>e.t),[],import.meta.url),"circle-dot-dashed":()=>n(()=>import(`./vendor-icon-circle-dot-dashed-pnf5xr7p.js`).then(e=>e.t),[],import.meta.url),"circle-dot":()=>n(()=>import(`./vendor-icon-circle-dot-vUSXdUmv.js`).then(e=>e.n),[],import.meta.url),"circle-ellipsis":()=>n(()=>import(`./vendor-icon-circle-ellipsis-ddE32vZF.js`).then(e=>e.t),[],import.meta.url),"circle-equal":()=>n(()=>import(`./vendor-icon-circle-equal-SjbiiFsI.js`).then(e=>e.t),[],import.meta.url),"circle-euro":()=>n(()=>import(`./vendor-icon-circle-euro-D4uc8rgT.js`).then(e=>e.t),[],import.meta.url),"circle-fading-arrow-up":()=>n(()=>import(`./vendor-icon-circle-fading-arrow-up-CQwkjxrK.js`).then(e=>e.t),[],import.meta.url),"circle-fading-plus":()=>n(()=>import(`./vendor-icon-circle-fading-plus-DldpGy9i.js`).then(e=>e.t),[],import.meta.url),"circle-gauge":()=>n(()=>import(`./vendor-icon-circle-gauge-BCOgie8A.js`).then(e=>e.t),[],import.meta.url),"gauge-circle":()=>n(()=>import(`./vendor-icon-circle-gauge-BCOgie8A.js`).then(e=>e.t),[],import.meta.url),"circle-minus":()=>n(()=>import(`./vendor-icon-circle-minus-Bf4t0VOM.js`).then(e=>e.t),[],import.meta.url),"minus-circle":()=>n(()=>import(`./vendor-icon-circle-minus-Bf4t0VOM.js`).then(e=>e.t),[],import.meta.url),"circle-off":()=>n(()=>import(`./vendor-icon-circle-off-Br8A-Mh_.js`).then(e=>e.t),[],import.meta.url),"circle-parking-off":()=>n(()=>import(`./vendor-icon-circle-parking-off-RDmHWmCX.js`).then(e=>e.t),[],import.meta.url),"parking-circle-off":()=>n(()=>import(`./vendor-icon-circle-parking-off-RDmHWmCX.js`).then(e=>e.t),[],import.meta.url),"circle-parking":()=>n(()=>import(`./vendor-icon-circle-parking-ptm5Sgks.js`).then(e=>e.t),[],import.meta.url),"parking-circle":()=>n(()=>import(`./vendor-icon-circle-parking-ptm5Sgks.js`).then(e=>e.t),[],import.meta.url),"circle-pause":()=>n(()=>import(`./vendor-icon-circle-pause-BtwoIgat.js`).then(e=>e.n),[],import.meta.url),"pause-circle":()=>n(()=>import(`./vendor-icon-circle-pause-BtwoIgat.js`).then(e=>e.n),[],import.meta.url),"circle-percent":()=>n(()=>import(`./vendor-icon-circle-percent-BH3GtAu7.js`).then(e=>e.t),[],import.meta.url),"percent-circle":()=>n(()=>import(`./vendor-icon-circle-percent-BH3GtAu7.js`).then(e=>e.t),[],import.meta.url),"circle-pile":()=>n(()=>import(`./vendor-icon-circle-pile-9Q9dXPL_.js`).then(e=>e.t),[],import.meta.url),"circle-play":()=>n(()=>import(`./vendor-icon-circle-play-BTJWb_ac.js`).then(e=>e.n),[],import.meta.url),"play-circle":()=>n(()=>import(`./vendor-icon-circle-play-BTJWb_ac.js`).then(e=>e.n),[],import.meta.url),"circle-plus":()=>n(()=>import(`./vendor-icon-circle-plus-4gej-PPk.js`).then(e=>e.n),[],import.meta.url),"plus-circle":()=>n(()=>import(`./vendor-icon-circle-plus-4gej-PPk.js`).then(e=>e.n),[],import.meta.url),"circle-pound-sterling":()=>n(()=>import(`./vendor-icon-circle-pound-sterling-BMO2kDoM.js`).then(e=>e.t),[],import.meta.url),"circle-power":()=>n(()=>import(`./vendor-icon-circle-power-B5Wb0XkB.js`).then(e=>e.t),[],import.meta.url),"power-circle":()=>n(()=>import(`./vendor-icon-circle-power-B5Wb0XkB.js`).then(e=>e.t),[],import.meta.url),"circle-question-mark":()=>n(()=>import(`./vendor-icon-circle-question-mark-LshNGnQH.js`).then(e=>e.n),[],import.meta.url),"help-circle":()=>n(()=>import(`./vendor-icon-circle-question-mark-LshNGnQH.js`).then(e=>e.n),[],import.meta.url),"circle-help":()=>n(()=>import(`./vendor-icon-circle-question-mark-LshNGnQH.js`).then(e=>e.n),[],import.meta.url),"circle-slash-2":()=>n(()=>import(`./vendor-icon-circle-slash-2-BPYudTvv.js`).then(e=>e.t),[],import.meta.url),"circle-slashed":()=>n(()=>import(`./vendor-icon-circle-slash-2-BPYudTvv.js`).then(e=>e.t),[],import.meta.url),"circle-slash":()=>n(()=>import(`./vendor-icon-circle-slash-Cfaa-djL.js`).then(e=>e.n),[],import.meta.url),"circle-small":()=>n(()=>import(`./vendor-icon-circle-small-BciM9m-d.js`).then(e=>e.t),[],import.meta.url),"circle-star":()=>n(()=>import(`./vendor-icon-circle-star-CEEJoUG1.js`).then(e=>e.t),[],import.meta.url),"circle-stop":()=>n(()=>import(`./vendor-icon-circle-stop-DLu8C6yn.js`).then(e=>e.n),[],import.meta.url),"stop-circle":()=>n(()=>import(`./vendor-icon-circle-stop-DLu8C6yn.js`).then(e=>e.n),[],import.meta.url),"circle-user-round":()=>n(()=>import(`./vendor-icon-circle-user-round-MqasSdqn.js`).then(e=>e.t),[],import.meta.url),"user-circle-2":()=>n(()=>import(`./vendor-icon-circle-user-round-MqasSdqn.js`).then(e=>e.t),[],import.meta.url),"circle-user":()=>n(()=>import(`./vendor-icon-circle-user-vHkQU5Hv.js`).then(e=>e.n),[],import.meta.url),"user-circle":()=>n(()=>import(`./vendor-icon-circle-user-vHkQU5Hv.js`).then(e=>e.n),[],import.meta.url),"circle-x":()=>n(()=>import(`./vendor-icon-circle-x-Nkh1Yr7N.js`).then(e=>e.n),[],import.meta.url),"x-circle":()=>n(()=>import(`./vendor-icon-circle-x-Nkh1Yr7N.js`).then(e=>e.n),[],import.meta.url),circle:()=>n(()=>import(`./vendor-icon-circle-5-gUQbxi.js`).then(e=>e.n),[],import.meta.url),"circuit-board":()=>n(()=>import(`./vendor-icon-circuit-board-CBMIfftB.js`).then(e=>e.t),[],import.meta.url),citrus:()=>n(()=>import(`./vendor-icon-citrus-DS5Spltx.js`).then(e=>e.t),[],import.meta.url),clapperboard:()=>n(()=>import(`./vendor-icon-clapperboard-Bc9k6hN0.js`).then(e=>e.t),[],import.meta.url),"clipboard-check":()=>n(()=>import(`./vendor-icon-clipboard-check-ZBSenrhQ.js`).then(e=>e.t),[],import.meta.url),"clipboard-clock":()=>n(()=>import(`./vendor-icon-clipboard-clock-C0nFp-lM.js`).then(e=>e.t),[],import.meta.url),"clipboard-copy":()=>n(()=>import(`./vendor-icon-clipboard-copy-C00VrmV1.js`).then(e=>e.t),[],import.meta.url),"clipboard-list":()=>n(()=>import(`./vendor-icon-clipboard-list-Cj86xStJ.js`).then(e=>e.n),[],import.meta.url),"clipboard-minus":()=>n(()=>import(`./vendor-icon-clipboard-minus-_0GPnDHI.js`).then(e=>e.t),[],import.meta.url),"clipboard-paste":()=>n(()=>import(`./vendor-icon-clipboard-paste-DxLRapVV.js`).then(e=>e.n),[],import.meta.url),"clipboard-pen-line":()=>n(()=>import(`./vendor-icon-clipboard-pen-line-D1-KOwfB.js`).then(e=>e.t),[],import.meta.url),"clipboard-signature":()=>n(()=>import(`./vendor-icon-clipboard-pen-line-D1-KOwfB.js`).then(e=>e.t),[],import.meta.url),"clipboard-pen":()=>n(()=>import(`./vendor-icon-clipboard-pen-Cb5v_S0j.js`).then(e=>e.t),[],import.meta.url),"clipboard-edit":()=>n(()=>import(`./vendor-icon-clipboard-pen-Cb5v_S0j.js`).then(e=>e.t),[],import.meta.url),"clipboard-plus":()=>n(()=>import(`./vendor-icon-clipboard-plus-JG874MDS.js`).then(e=>e.t),[],import.meta.url),"clipboard-type":()=>n(()=>import(`./vendor-icon-clipboard-type-DPMV-AC1.js`).then(e=>e.t),[],import.meta.url),"clipboard-x":()=>n(()=>import(`./vendor-icon-clipboard-x-CYLNjP85.js`).then(e=>e.t),[],import.meta.url),clipboard:()=>n(()=>import(`./vendor-icon-clipboard-UqhWHclG.js`).then(e=>e.n),[],import.meta.url),"clock-1":()=>n(()=>import(`./vendor-icon-clock-1-wQLCvjxp.js`).then(e=>e.t),[],import.meta.url),"clock-10":()=>n(()=>import(`./vendor-icon-clock-10-u3jLPchj.js`).then(e=>e.t),[],import.meta.url),"clock-11":()=>n(()=>import(`./vendor-icon-clock-11-CqTpAnEo.js`).then(e=>e.t),[],import.meta.url),"clock-12":()=>n(()=>import(`./vendor-icon-clock-12-Bz8pKGK9.js`).then(e=>e.t),[],import.meta.url),"clock-2":()=>n(()=>import(`./vendor-icon-clock-2-D2NEBG7y.js`).then(e=>e.t),[],import.meta.url),"clock-3":()=>n(()=>import(`./vendor-icon-clock-3-C_TL7RSQ.js`).then(e=>e.n),[],import.meta.url),"clock-4":()=>n(()=>import(`./vendor-icon-clock-4-ax4lokUB.js`).then(e=>e.t),[],import.meta.url),"clock-5":()=>n(()=>import(`./vendor-icon-clock-5-C_nGONGw.js`).then(e=>e.t),[],import.meta.url),"clock-6":()=>n(()=>import(`./vendor-icon-clock-6-B8J_MEe6.js`).then(e=>e.t),[],import.meta.url),"clock-7":()=>n(()=>import(`./vendor-icon-clock-7-CCUVCPLV.js`).then(e=>e.t),[],import.meta.url),"clock-8":()=>n(()=>import(`./vendor-icon-clock-8-DZ6nMn_p.js`).then(e=>e.t),[],import.meta.url),"clock-9":()=>n(()=>import(`./vendor-icon-clock-9-DA-mpP4t.js`).then(e=>e.t),[],import.meta.url),"clock-alert":()=>n(()=>import(`./vendor-icon-clock-alert-BnkgypF0.js`).then(e=>e.t),[],import.meta.url),"clock-arrow-down":()=>n(()=>import(`./vendor-icon-clock-arrow-down-BAYYtL2S.js`).then(e=>e.t),[],import.meta.url),"clock-arrow-left":()=>n(()=>import(`./vendor-icon-clock-arrow-left-DYpKhWlX.js`).then(e=>e.t),[],import.meta.url),"clock-arrow-right":()=>n(()=>import(`./vendor-icon-clock-arrow-right-B_2kcXGA.js`).then(e=>e.t),[],import.meta.url),"clock-arrow-up":()=>n(()=>import(`./vendor-icon-clock-arrow-up-DcDIH5TZ.js`).then(e=>e.t),[],import.meta.url),"clock-check":()=>n(()=>import(`./vendor-icon-clock-check-DiRp5lZb.js`).then(e=>e.t),[],import.meta.url),"clock-fading":()=>n(()=>import(`./vendor-icon-clock-fading-DC8_HqpD.js`).then(e=>e.t),[],import.meta.url),"clock-plus":()=>n(()=>import(`./vendor-icon-clock-plus-BQ-CoI8f.js`).then(e=>e.t),[],import.meta.url),clock:()=>n(()=>import(`./vendor-icon-clock-CTLnah0r.js`).then(e=>e.n),[],import.meta.url),"closed-caption":()=>n(()=>import(`./vendor-icon-closed-caption-o2FxlcZI.js`).then(e=>e.t),[],import.meta.url),"cloud-alert":()=>n(()=>import(`./vendor-icon-cloud-alert-kp1UXyN2.js`).then(e=>e.t),[],import.meta.url),"cloud-backup":()=>n(()=>import(`./vendor-icon-cloud-backup-g1in6fpR.js`).then(e=>e.t),[],import.meta.url),"cloud-check":()=>n(()=>import(`./vendor-icon-cloud-check-pdFx0H0p.js`).then(e=>e.t),[],import.meta.url),"cloud-cog":()=>n(()=>import(`./vendor-icon-cloud-cog-DFYVko08.js`).then(e=>e.t),[],import.meta.url),"cloud-download":()=>n(()=>import(`./vendor-icon-cloud-download-VMn09CMl.js`).then(e=>e.t),[],import.meta.url),"download-cloud":()=>n(()=>import(`./vendor-icon-cloud-download-VMn09CMl.js`).then(e=>e.t),[],import.meta.url),"cloud-drizzle":()=>n(()=>import(`./vendor-icon-cloud-drizzle-DY_sORLt.js`).then(e=>e.t),[],import.meta.url),"cloud-fog":()=>n(()=>import(`./vendor-icon-cloud-fog-Cl13QkAF.js`).then(e=>e.t),[],import.meta.url),"cloud-hail":()=>n(()=>import(`./vendor-icon-cloud-hail-BOoeYz11.js`).then(e=>e.t),[],import.meta.url),"cloud-lightning":()=>n(()=>import(`./vendor-icon-cloud-lightning-CAVqn1vh.js`).then(e=>e.t),[],import.meta.url),"cloud-moon-rain":()=>n(()=>import(`./vendor-icon-cloud-moon-rain-CQIdFPNX.js`).then(e=>e.t),[],import.meta.url),"cloud-moon":()=>n(()=>import(`./vendor-icon-cloud-moon-DZmm4WZZ.js`).then(e=>e.t),[],import.meta.url),"cloud-off":()=>n(()=>import(`./vendor-icon-cloud-off-BcxbO-CE.js`).then(e=>e.n),[],import.meta.url),"cloud-rain-wind":()=>n(()=>import(`./vendor-icon-cloud-rain-wind-CkFz7oQt.js`).then(e=>e.t),[],import.meta.url),"cloud-rain":()=>n(()=>import(`./vendor-icon-cloud-rain-DU8YGGbs.js`).then(e=>e.t),[],import.meta.url),"cloud-snow":()=>n(()=>import(`./vendor-icon-cloud-snow-D-umKNDJ.js`).then(e=>e.t),[],import.meta.url),"cloud-sun-rain":()=>n(()=>import(`./vendor-icon-cloud-sun-rain-Bjitp9PK.js`).then(e=>e.t),[],import.meta.url),"cloud-sun":()=>n(()=>import(`./vendor-icon-cloud-sun-CPGZB59E.js`).then(e=>e.t),[],import.meta.url),"cloud-sync":()=>n(()=>import(`./vendor-icon-cloud-sync-UDZ8QcHM.js`).then(e=>e.t),[],import.meta.url),"cloud-upload":()=>n(()=>import(`./vendor-icon-cloud-upload-Bg3lE2SH.js`).then(e=>e.n),[],import.meta.url),"upload-cloud":()=>n(()=>import(`./vendor-icon-cloud-upload-Bg3lE2SH.js`).then(e=>e.n),[],import.meta.url),cloud:()=>n(()=>import(`./vendor-icon-cloud-eTQppJmM.js`).then(e=>e.n),[],import.meta.url),cloudy:()=>n(()=>import(`./vendor-icon-cloudy-DVqu0Fl7.js`).then(e=>e.t),[],import.meta.url),clover:()=>n(()=>import(`./vendor-icon-clover-rh6c3N8R.js`).then(e=>e.t),[],import.meta.url),club:()=>n(()=>import(`./vendor-icon-club-CJ02FtZx.js`).then(e=>e.t),[],import.meta.url),"code-xml":()=>n(()=>import(`./vendor-icon-code-xml-C9EWHSC8.js`).then(e=>e.n),[],import.meta.url),"code-2":()=>n(()=>import(`./vendor-icon-code-xml-C9EWHSC8.js`).then(e=>e.n),[],import.meta.url),code:()=>n(()=>import(`./vendor-icon-code-C7LFGCxG.js`).then(e=>e.n),[],import.meta.url),coffee:()=>n(()=>import(`./vendor-icon-coffee-CiKe3s3K.js`).then(e=>e.t),[],import.meta.url),cog:()=>n(()=>import(`./vendor-icon-cog-VRkN62C4.js`).then(e=>e.t),[],import.meta.url),coins:()=>n(()=>import(`./vendor-icon-coins-BkX5h4_h.js`).then(e=>e.t),[],import.meta.url),"columns-2":()=>n(()=>import(`./vendor-icon-columns-2-BB630elY.js`).then(e=>e.t),[],import.meta.url),columns:()=>n(()=>import(`./vendor-icon-columns-2-BB630elY.js`).then(e=>e.t),[],import.meta.url),"columns-3-cog":()=>n(()=>import(`./vendor-icon-columns-3-cog-BIIThIT-.js`).then(e=>e.t),[],import.meta.url),"columns-settings":()=>n(()=>import(`./vendor-icon-columns-3-cog-BIIThIT-.js`).then(e=>e.t),[],import.meta.url),"table-config":()=>n(()=>import(`./vendor-icon-columns-3-cog-BIIThIT-.js`).then(e=>e.t),[],import.meta.url),"columns-3":()=>n(()=>import(`./vendor-icon-columns-3-DsEBPpuZ.js`).then(e=>e.n),[],import.meta.url),"panels-left-right":()=>n(()=>import(`./vendor-icon-columns-3-DsEBPpuZ.js`).then(e=>e.n),[],import.meta.url),"columns-4":()=>n(()=>import(`./vendor-icon-columns-4-DKBMvZ7r.js`).then(e=>e.t),[],import.meta.url),combine:()=>n(()=>import(`./vendor-icon-combine-ieUfKrXn.js`).then(e=>e.t),[],import.meta.url),command:()=>n(()=>import(`./vendor-icon-command-Dvh-PB5m.js`).then(e=>e.t),[],import.meta.url),compass:()=>n(()=>import(`./vendor-icon-compass-CXq7Xl5b.js`).then(e=>e.n),[],import.meta.url),component:()=>n(()=>import(`./vendor-icon-component-DSsoX6Ql.js`).then(e=>e.t),[],import.meta.url),computer:()=>n(()=>import(`./vendor-icon-computer-CzVn1e9M.js`).then(e=>e.t),[],import.meta.url),"concierge-bell":()=>n(()=>import(`./vendor-icon-concierge-bell-cZjSW1jd.js`).then(e=>e.t),[],import.meta.url),cone:()=>n(()=>import(`./vendor-icon-cone-BZmDohEQ.js`).then(e=>e.t),[],import.meta.url),construction:()=>n(()=>import(`./vendor-icon-construction-cfhOrbta.js`).then(e=>e.t),[],import.meta.url),"contact-round":()=>n(()=>import(`./vendor-icon-contact-round-CR8_Jbtg.js`).then(e=>e.t),[],import.meta.url),"contact-2":()=>n(()=>import(`./vendor-icon-contact-round-CR8_Jbtg.js`).then(e=>e.t),[],import.meta.url),contact:()=>n(()=>import(`./vendor-icon-contact-z49Jz1WX.js`).then(e=>e.t),[],import.meta.url),container:()=>n(()=>import(`./vendor-icon-container-DNUckaI6.js`).then(e=>e.t),[],import.meta.url),contrast:()=>n(()=>import(`./vendor-icon-contrast-jLqna9pt.js`).then(e=>e.t),[],import.meta.url),cookie:()=>n(()=>import(`./vendor-icon-cookie-BmPYj06L.js`).then(e=>e.t),[],import.meta.url),"cooking-pot":()=>n(()=>import(`./vendor-icon-cooking-pot-HDvOc5QQ.js`).then(e=>e.t),[],import.meta.url),"copy-check":()=>n(()=>import(`./vendor-icon-copy-check-Ck2mtM__.js`).then(e=>e.t),[],import.meta.url),"copy-minus":()=>n(()=>import(`./vendor-icon-copy-minus-Dspucuij.js`).then(e=>e.t),[],import.meta.url),"copy-plus":()=>n(()=>import(`./vendor-icon-copy-plus-CkLyDgxX.js`).then(e=>e.t),[],import.meta.url),"copy-slash":()=>n(()=>import(`./vendor-icon-copy-slash-CjS9mZWE.js`).then(e=>e.t),[],import.meta.url),"copy-x":()=>n(()=>import(`./vendor-icon-copy-x-bkx9_5-D.js`).then(e=>e.t),[],import.meta.url),copy:()=>n(()=>import(`./vendor-icon-copy-B5M-KdZo.js`).then(e=>e.n),[],import.meta.url),copyleft:()=>n(()=>import(`./vendor-icon-copyleft-DQhu5Swd.js`).then(e=>e.t),[],import.meta.url),copyright:()=>n(()=>import(`./vendor-icon-copyright-B74SGJOt.js`).then(e=>e.t),[],import.meta.url),"corner-down-left":()=>n(()=>import(`./vendor-icon-corner-down-left-C5QMlunU.js`).then(e=>e.n),[],import.meta.url),"corner-down-right":()=>n(()=>import(`./vendor-icon-corner-down-right-BKSX1nUw.js`).then(e=>e.t),[],import.meta.url),"corner-left-down":()=>n(()=>import(`./vendor-icon-corner-left-down-BnKVTfHa.js`).then(e=>e.t),[],import.meta.url),"corner-left-up":()=>n(()=>import(`./vendor-icon-corner-left-up-ChnpTDOf.js`).then(e=>e.t),[],import.meta.url),"corner-right-down":()=>n(()=>import(`./vendor-icon-corner-right-down-CiWohuvC.js`).then(e=>e.t),[],import.meta.url),"corner-right-up":()=>n(()=>import(`./vendor-icon-corner-right-up-UF-sW6uM.js`).then(e=>e.t),[],import.meta.url),"corner-up-left":()=>n(()=>import(`./vendor-icon-corner-up-left-Bdjvv6H0.js`).then(e=>e.t),[],import.meta.url),"corner-up-right":()=>n(()=>import(`./vendor-icon-corner-up-right-DqX3HrVg.js`).then(e=>e.t),[],import.meta.url),cpu:()=>n(()=>import(`./vendor-icon-cpu-DxYeDPbk.js`).then(e=>e.t),[],import.meta.url),"creative-commons":()=>n(()=>import(`./vendor-icon-creative-commons-7-VACx0O.js`).then(e=>e.t),[],import.meta.url),"credit-card-check":()=>n(()=>import(`./vendor-icon-credit-card-check-kpKjdwfp.js`).then(e=>e.t),[],import.meta.url),"credit-card-minus":()=>n(()=>import(`./vendor-icon-credit-card-minus-DaCVo03q.js`).then(e=>e.t),[],import.meta.url),"credit-card-plus":()=>n(()=>import(`./vendor-icon-credit-card-plus-BOEWQ4P1.js`).then(e=>e.t),[],import.meta.url),"credit-card-reader":()=>n(()=>import(`./vendor-icon-credit-card-reader-C93mFfqX.js`).then(e=>e.t),[],import.meta.url),"credit-card-x":()=>n(()=>import(`./vendor-icon-credit-card-x-M-8Vg2sw.js`).then(e=>e.t),[],import.meta.url),"credit-card":()=>n(()=>import(`./vendor-icon-credit-card-DSq_6PBE.js`).then(e=>e.t),[],import.meta.url),croissant:()=>n(()=>import(`./vendor-icon-croissant-CCO7aV4E.js`).then(e=>e.t),[],import.meta.url),crop:()=>n(()=>import(`./vendor-icon-crop-DjMq__1_.js`).then(e=>e.n),[],import.meta.url),cross:()=>n(()=>import(`./vendor-icon-cross-CJ0b5AQ0.js`).then(e=>e.t),[],import.meta.url),crosshair:()=>n(()=>import(`./vendor-icon-crosshair-B_kbYa88.js`).then(e=>e.n),[],import.meta.url),crown:()=>n(()=>import(`./vendor-icon-crown-bjNSN4qS.js`).then(e=>e.t),[],import.meta.url),cuboid:()=>n(()=>import(`./vendor-icon-cuboid-CjcOBCxm.js`).then(e=>e.t),[],import.meta.url),"cup-soda":()=>n(()=>import(`./vendor-icon-cup-soda-CjCQTLjL.js`).then(e=>e.t),[],import.meta.url),currency:()=>n(()=>import(`./vendor-icon-currency-BlSOpJE4.js`).then(e=>e.t),[],import.meta.url),cylinder:()=>n(()=>import(`./vendor-icon-cylinder-DLCZ_vXu.js`).then(e=>e.t),[],import.meta.url),dam:()=>n(()=>import(`./vendor-icon-dam-DRpD-uLr.js`).then(e=>e.t),[],import.meta.url),"database-arrow-down":()=>n(()=>import(`./vendor-icon-database-arrow-down-fswRPAp8.js`).then(e=>e.t),[],import.meta.url),"database-arrow-up":()=>n(()=>import(`./vendor-icon-database-arrow-up-BkzSXRlR.js`).then(e=>e.t),[],import.meta.url),"database-backup":()=>n(()=>import(`./vendor-icon-database-backup-CQWaeCiL.js`).then(e=>e.t),[],import.meta.url),"database-check":()=>n(()=>import(`./vendor-icon-database-check-0nkn6jIO.js`).then(e=>e.t),[],import.meta.url),"database-minus":()=>n(()=>import(`./vendor-icon-database-minus-b7FjOPyU.js`).then(e=>e.t),[],import.meta.url),"database-plus":()=>n(()=>import(`./vendor-icon-database-plus-D2xNoJ_K.js`).then(e=>e.t),[],import.meta.url),"database-search":()=>n(()=>import(`./vendor-icon-database-search-eM1aUiMd.js`).then(e=>e.t),[],import.meta.url),"database-x":()=>n(()=>import(`./vendor-icon-database-x-BaoZgvEX.js`).then(e=>e.t),[],import.meta.url),"database-zap":()=>n(()=>import(`./vendor-icon-database-zap-7MfjG9vP.js`).then(e=>e.n),[],import.meta.url),database:()=>n(()=>import(`./vendor-icon-database-C8JGjSkn.js`).then(e=>e.n),[],import.meta.url),"decimals-arrow-left":()=>n(()=>import(`./vendor-icon-decimals-arrow-left-sYcRv89g.js`).then(e=>e.t),[],import.meta.url),"decimals-arrow-right":()=>n(()=>import(`./vendor-icon-decimals-arrow-right-CBavQNKG.js`).then(e=>e.t),[],import.meta.url),delete:()=>n(()=>import(`./vendor-icon-delete-BYn7Of7R.js`).then(e=>e.t),[],import.meta.url),dessert:()=>n(()=>import(`./vendor-icon-dessert-CUa8W5H9.js`).then(e=>e.t),[],import.meta.url),diameter:()=>n(()=>import(`./vendor-icon-diameter-BUGRdaIT.js`).then(e=>e.t),[],import.meta.url),"diamond-minus":()=>n(()=>import(`./vendor-icon-diamond-minus-BDRh3J6G.js`).then(e=>e.t),[],import.meta.url),"diamond-percent":()=>n(()=>import(`./vendor-icon-diamond-percent-ekt_smur.js`).then(e=>e.t),[],import.meta.url),"percent-diamond":()=>n(()=>import(`./vendor-icon-diamond-percent-ekt_smur.js`).then(e=>e.t),[],import.meta.url),"diamond-plus":()=>n(()=>import(`./vendor-icon-diamond-plus-BQX9L2yZ.js`).then(e=>e.t),[],import.meta.url),diamond:()=>n(()=>import(`./vendor-icon-diamond-L7C1CJFo.js`).then(e=>e.n),[],import.meta.url),"dice-1":()=>n(()=>import(`./vendor-icon-dice-1-B5_V9N_D.js`).then(e=>e.t),[],import.meta.url),"dice-2":()=>n(()=>import(`./vendor-icon-dice-2-DKAuNmOX.js`).then(e=>e.t),[],import.meta.url),"dice-3":()=>n(()=>import(`./vendor-icon-dice-3-i2dMGanQ.js`).then(e=>e.t),[],import.meta.url),"dice-4":()=>n(()=>import(`./vendor-icon-dice-4-Z1q1nxP1.js`).then(e=>e.t),[],import.meta.url),"dice-5":()=>n(()=>import(`./vendor-icon-dice-5-C_WXPPax.js`).then(e=>e.t),[],import.meta.url),"dice-6":()=>n(()=>import(`./vendor-icon-dice-6-B-Qrpu7e.js`).then(e=>e.t),[],import.meta.url),dices:()=>n(()=>import(`./vendor-icon-dices-KJZJXZev.js`).then(e=>e.t),[],import.meta.url),diff:()=>n(()=>import(`./vendor-icon-diff-D_j-E0Tq.js`).then(e=>e.t),[],import.meta.url),"disc-2":()=>n(()=>import(`./vendor-icon-disc-2-Ng13qmpT.js`).then(e=>e.t),[],import.meta.url),"disc-3":()=>n(()=>import(`./vendor-icon-disc-3-xYyPsZUP.js`).then(e=>e.t),[],import.meta.url),"disc-album":()=>n(()=>import(`./vendor-icon-disc-album-BpGqZaQp.js`).then(e=>e.t),[],import.meta.url),disc:()=>n(()=>import(`./vendor-icon-disc-B_6xhz3z.js`).then(e=>e.t),[],import.meta.url),divide:()=>n(()=>import(`./vendor-icon-divide-Dt4cAo-9.js`).then(e=>e.t),[],import.meta.url),"dna-off":()=>n(()=>import(`./vendor-icon-dna-off-CRg-5oZm.js`).then(e=>e.t),[],import.meta.url),dna:()=>n(()=>import(`./vendor-icon-dna-DfLiApE0.js`).then(e=>e.t),[],import.meta.url),dock:()=>n(()=>import(`./vendor-icon-dock-D4MQlkMc.js`).then(e=>e.t),[],import.meta.url),dog:()=>n(()=>import(`./vendor-icon-dog-hE71G2nP.js`).then(e=>e.t),[],import.meta.url),"dollar-sign":()=>n(()=>import(`./vendor-icon-dollar-sign-CEDc3nlc.js`).then(e=>e.n),[],import.meta.url),dome:()=>n(()=>import(`./vendor-icon-dome-BjJzRHqJ.js`).then(e=>e.t),[],import.meta.url),donut:()=>n(()=>import(`./vendor-icon-donut-NivfVjRq.js`).then(e=>e.n),[],import.meta.url),"door-closed-locked":()=>n(()=>import(`./vendor-icon-door-closed-locked-DmNpKfi-.js`).then(e=>e.t),[],import.meta.url),"door-closed":()=>n(()=>import(`./vendor-icon-door-closed-BkFaY9Qv.js`).then(e=>e.t),[],import.meta.url),"door-open":()=>n(()=>import(`./vendor-icon-door-open-CzOlusit.js`).then(e=>e.t),[],import.meta.url),"door-stairwell":()=>n(()=>import(`./vendor-icon-door-stairwell-F3pAgQvu.js`).then(e=>e.t),[],import.meta.url),dot:()=>n(()=>import(`./vendor-icon-dot-CuUcuxvm.js`).then(e=>e.n),[],import.meta.url),download:()=>n(()=>import(`./vendor-icon-download-C3csYSaD.js`).then(e=>e.n),[],import.meta.url),"drafting-compass":()=>n(()=>import(`./vendor-icon-drafting-compass-i8FAdvP-.js`).then(e=>e.t),[],import.meta.url),drama:()=>n(()=>import(`./vendor-icon-drama-CjuKmSF6.js`).then(e=>e.t),[],import.meta.url),drill:()=>n(()=>import(`./vendor-icon-drill-t1DqSz7J.js`).then(e=>e.t),[],import.meta.url),drone:()=>n(()=>import(`./vendor-icon-drone-D_GoBeG8.js`).then(e=>e.t),[],import.meta.url),"droplet-off":()=>n(()=>import(`./vendor-icon-droplet-off-B3S-eMyE.js`).then(e=>e.t),[],import.meta.url),droplet:()=>n(()=>import(`./vendor-icon-droplet-DaROYeYc.js`).then(e=>e.t),[],import.meta.url),droplets:()=>n(()=>import(`./vendor-icon-droplets-CQmz68NM.js`).then(e=>e.t),[],import.meta.url),drum:()=>n(()=>import(`./vendor-icon-drum-BaQSbim9.js`).then(e=>e.t),[],import.meta.url),drumstick:()=>n(()=>import(`./vendor-icon-drumstick-n0-bF_fb.js`).then(e=>e.t),[],import.meta.url),dumbbell:()=>n(()=>import(`./vendor-icon-dumbbell-BdGHwFCb.js`).then(e=>e.t),[],import.meta.url),"ear-off":()=>n(()=>import(`./vendor-icon-ear-off-CL5nfJPq.js`).then(e=>e.t),[],import.meta.url),ear:()=>n(()=>import(`./vendor-icon-ear-xH02gjF-.js`).then(e=>e.t),[],import.meta.url),"earth-lock":()=>n(()=>import(`./vendor-icon-earth-lock-gWRxUFQ6.js`).then(e=>e.t),[],import.meta.url),earth:()=>n(()=>import(`./vendor-icon-earth-KgMAAeNO.js`).then(e=>e.n),[],import.meta.url),"globe-2":()=>n(()=>import(`./vendor-icon-earth-KgMAAeNO.js`).then(e=>e.n),[],import.meta.url),eclipse:()=>n(()=>import(`./vendor-icon-eclipse-BonjBpIz.js`).then(e=>e.t),[],import.meta.url),"egg-fried":()=>n(()=>import(`./vendor-icon-egg-fried-DHvbt0N1.js`).then(e=>e.t),[],import.meta.url),"egg-off":()=>n(()=>import(`./vendor-icon-egg-off-D_uINXLz.js`).then(e=>e.t),[],import.meta.url),egg:()=>n(()=>import(`./vendor-icon-egg-Z1D0Q37B.js`).then(e=>e.t),[],import.meta.url),eject:()=>n(()=>import(`./vendor-icon-eject-8yU13-Us.js`).then(e=>e.t),[],import.meta.url),ellipse:()=>n(()=>import(`./vendor-icon-ellipse-BnjX_91F.js`).then(e=>e.t),[],import.meta.url),"ellipsis-vertical":()=>n(()=>import(`./vendor-icon-ellipsis-vertical-DwMP57JC.js`).then(e=>e.n),[],import.meta.url),"more-vertical":()=>n(()=>import(`./vendor-icon-ellipsis-vertical-DwMP57JC.js`).then(e=>e.n),[],import.meta.url),ellipsis:()=>n(()=>import(`./vendor-icon-ellipsis-BjiiCS3N.js`).then(e=>e.n),[],import.meta.url),"more-horizontal":()=>n(()=>import(`./vendor-icon-ellipsis-BjiiCS3N.js`).then(e=>e.n),[],import.meta.url),engine:()=>n(()=>import(`./vendor-icon-engine-Cosa9bMD.js`).then(e=>e.t),[],import.meta.url),"equal-approximately-not":()=>n(()=>import(`./vendor-icon-equal-approximately-not-CLeYcz74.js`).then(e=>e.t),[],import.meta.url),"equal-approximately":()=>n(()=>import(`./vendor-icon-equal-approximately-DLalBae2.js`).then(e=>e.t),[],import.meta.url),"equal-not":()=>n(()=>import(`./vendor-icon-equal-not-CiRcEwUf.js`).then(e=>e.t),[],import.meta.url),equal:()=>n(()=>import(`./vendor-icon-equal-CT1-TVlm.js`).then(e=>e.t),[],import.meta.url),eraser:()=>n(()=>import(`./vendor-icon-eraser-CoRaZSKu.js`).then(e=>e.n),[],import.meta.url),"ethernet-port":()=>n(()=>import(`./vendor-icon-ethernet-port-po1cOgAT.js`).then(e=>e.t),[],import.meta.url),euro:()=>n(()=>import(`./vendor-icon-euro-CMhifVDU.js`).then(e=>e.t),[],import.meta.url),"ev-charger":()=>n(()=>import(`./vendor-icon-ev-charger-lnOKtQYk.js`).then(e=>e.t),[],import.meta.url),expand:()=>n(()=>import(`./vendor-icon-expand-BdQX33eS.js`).then(e=>e.t),[],import.meta.url),"external-link":()=>n(()=>import(`./vendor-icon-external-link-SBKz5x6R.js`).then(e=>e.n),[],import.meta.url),"eye-closed":()=>n(()=>import(`./vendor-icon-eye-closed-DaMhFyAb.js`).then(e=>e.t),[],import.meta.url),"eye-dashed":()=>n(()=>import(`./vendor-icon-eye-dashed-BPxrVqpF.js`).then(e=>e.t),[],import.meta.url),"eye-off":()=>n(()=>import(`./vendor-icon-eye-off-Dy3GIcvl.js`).then(e=>e.n),[],import.meta.url),eye:()=>n(()=>import(`./vendor-icon-eye-C3HaEGOo.js`).then(e=>e.n),[],import.meta.url),"face-angry":()=>n(()=>import(`./vendor-icon-face-angry-CKP5udTe.js`).then(e=>e.t),[],import.meta.url),angry:()=>n(()=>import(`./vendor-icon-face-angry-CKP5udTe.js`).then(e=>e.t),[],import.meta.url),"face-expressionless":()=>n(()=>import(`./vendor-icon-face-expressionless-CYEecQWw.js`).then(e=>e.t),[],import.meta.url),annoyed:()=>n(()=>import(`./vendor-icon-face-expressionless-CYEecQWw.js`).then(e=>e.t),[],import.meta.url),"face-grinning":()=>n(()=>import(`./vendor-icon-face-grinning-C9XV5OmS.js`).then(e=>e.t),[],import.meta.url),laugh:()=>n(()=>import(`./vendor-icon-face-grinning-C9XV5OmS.js`).then(e=>e.t),[],import.meta.url),"face-neutral":()=>n(()=>import(`./vendor-icon-face-neutral-B34NGM74.js`).then(e=>e.t),[],import.meta.url),meh:()=>n(()=>import(`./vendor-icon-face-neutral-B34NGM74.js`).then(e=>e.t),[],import.meta.url),"face-slightly-frowning":()=>n(()=>import(`./vendor-icon-face-slightly-frowning-CUK0Gy2O.js`).then(e=>e.t),[],import.meta.url),frown:()=>n(()=>import(`./vendor-icon-face-slightly-frowning-CUK0Gy2O.js`).then(e=>e.t),[],import.meta.url),"face-slightly-smiling-plus":()=>n(()=>import(`./vendor-icon-face-slightly-smiling-plus-BYluVacK.js`).then(e=>e.n),[],import.meta.url),"smile-plus":()=>n(()=>import(`./vendor-icon-face-slightly-smiling-plus-BYluVacK.js`).then(e=>e.n),[],import.meta.url),"face-slightly-smiling":()=>n(()=>import(`./vendor-icon-face-slightly-smiling-rKStuYEe.js`).then(e=>e.t),[],import.meta.url),smile:()=>n(()=>import(`./vendor-icon-face-slightly-smiling-rKStuYEe.js`).then(e=>e.t),[],import.meta.url),factory:()=>n(()=>import(`./vendor-icon-factory-Cn5kRmUB.js`).then(e=>e.t),[],import.meta.url),fan:()=>n(()=>import(`./vendor-icon-fan-Db_yJ76W.js`).then(e=>e.t),[],import.meta.url),"fast-forward":()=>n(()=>import(`./vendor-icon-fast-forward-JmR_XrD3.js`).then(e=>e.t),[],import.meta.url),feather:()=>n(()=>import(`./vendor-icon-feather-D2v-Ky5a.js`).then(e=>e.t),[],import.meta.url),fence:()=>n(()=>import(`./vendor-icon-fence-GXffKh9a.js`).then(e=>e.t),[],import.meta.url),"ferris-wheel":()=>n(()=>import(`./vendor-icon-ferris-wheel-TH-nSNkF.js`).then(e=>e.t),[],import.meta.url),"file-archive":()=>n(()=>import(`./vendor-icon-file-archive-ruJEbEgu.js`).then(e=>e.n),[],import.meta.url),"file-axis-3d":()=>n(()=>import(`./vendor-icon-file-axis-3d-DgQKrRTS.js`).then(e=>e.t),[],import.meta.url),"file-axis-3-d":()=>n(()=>import(`./vendor-icon-file-axis-3d-DgQKrRTS.js`).then(e=>e.t),[],import.meta.url),"file-badge":()=>n(()=>import(`./vendor-icon-file-badge-BssA5wIH.js`).then(e=>e.t),[],import.meta.url),"file-badge-2":()=>n(()=>import(`./vendor-icon-file-badge-BssA5wIH.js`).then(e=>e.t),[],import.meta.url),"file-box":()=>n(()=>import(`./vendor-icon-file-box-ZyQW59b4.js`).then(e=>e.t),[],import.meta.url),"file-braces-corner":()=>n(()=>import(`./vendor-icon-file-braces-corner-B_iqzwzj.js`).then(e=>e.t),[],import.meta.url),"file-json-2":()=>n(()=>import(`./vendor-icon-file-braces-corner-B_iqzwzj.js`).then(e=>e.t),[],import.meta.url),"file-braces":()=>n(()=>import(`./vendor-icon-file-braces-D8irpr63.js`).then(e=>e.n),[],import.meta.url),"file-json":()=>n(()=>import(`./vendor-icon-file-braces-D8irpr63.js`).then(e=>e.n),[],import.meta.url),"file-chart-column-increasing":()=>n(()=>import(`./vendor-icon-file-chart-column-increasing-C7XOl2ut.js`).then(e=>e.t),[],import.meta.url),"file-bar-chart":()=>n(()=>import(`./vendor-icon-file-chart-column-increasing-C7XOl2ut.js`).then(e=>e.t),[],import.meta.url),"file-chart-column":()=>n(()=>import(`./vendor-icon-file-chart-column-Sf5m0AYr.js`).then(e=>e.t),[],import.meta.url),"file-bar-chart-2":()=>n(()=>import(`./vendor-icon-file-chart-column-Sf5m0AYr.js`).then(e=>e.t),[],import.meta.url),"file-chart-line":()=>n(()=>import(`./vendor-icon-file-chart-line-OpqrN4ro.js`).then(e=>e.t),[],import.meta.url),"file-line-chart":()=>n(()=>import(`./vendor-icon-file-chart-line-OpqrN4ro.js`).then(e=>e.t),[],import.meta.url),"file-chart-pie":()=>n(()=>import(`./vendor-icon-file-chart-pie-G2MKv3b6.js`).then(e=>e.t),[],import.meta.url),"file-pie-chart":()=>n(()=>import(`./vendor-icon-file-chart-pie-G2MKv3b6.js`).then(e=>e.t),[],import.meta.url),"file-check-corner":()=>n(()=>import(`./vendor-icon-file-check-corner-BBgZPWY5.js`).then(e=>e.t),[],import.meta.url),"file-check-2":()=>n(()=>import(`./vendor-icon-file-check-corner-BBgZPWY5.js`).then(e=>e.t),[],import.meta.url),"file-check":()=>n(()=>import(`./vendor-icon-file-check-Xg48aByl.js`).then(e=>e.t),[],import.meta.url),"file-clock":()=>n(()=>import(`./vendor-icon-file-clock-nGlMhDhr.js`).then(e=>e.t),[],import.meta.url),"file-code-corner":()=>n(()=>import(`./vendor-icon-file-code-corner-CdiQRG_f.js`).then(e=>e.n),[],import.meta.url),"file-code-2":()=>n(()=>import(`./vendor-icon-file-code-corner-CdiQRG_f.js`).then(e=>e.n),[],import.meta.url),"file-code":()=>n(()=>import(`./vendor-icon-file-code-vuY9KruG.js`).then(e=>e.t),[],import.meta.url),"file-cog":()=>n(()=>import(`./vendor-icon-file-cog-DwFB0EHZ.js`).then(e=>e.t),[],import.meta.url),"file-cog-2":()=>n(()=>import(`./vendor-icon-file-cog-DwFB0EHZ.js`).then(e=>e.t),[],import.meta.url),"file-diff":()=>n(()=>import(`./vendor-icon-file-diff-D6NZQl2s.js`).then(e=>e.t),[],import.meta.url),"file-digit":()=>n(()=>import(`./vendor-icon-file-digit-h5pX1gM6.js`).then(e=>e.t),[],import.meta.url),"file-down":()=>n(()=>import(`./vendor-icon-file-down-4-LKF_us.js`).then(e=>e.n),[],import.meta.url),"file-exclamation-point":()=>n(()=>import(`./vendor-icon-file-exclamation-point-DUuyt0Jh.js`).then(e=>e.t),[],import.meta.url),"file-warning":()=>n(()=>import(`./vendor-icon-file-exclamation-point-DUuyt0Jh.js`).then(e=>e.t),[],import.meta.url),"file-headphone":()=>n(()=>import(`./vendor-icon-file-headphone-DVolCObE.js`).then(e=>e.t),[],import.meta.url),"file-audio":()=>n(()=>import(`./vendor-icon-file-headphone-DVolCObE.js`).then(e=>e.t),[],import.meta.url),"file-audio-2":()=>n(()=>import(`./vendor-icon-file-headphone-DVolCObE.js`).then(e=>e.t),[],import.meta.url),"file-heart":()=>n(()=>import(`./vendor-icon-file-heart-nDNzCS5P.js`).then(e=>e.t),[],import.meta.url),"file-image":()=>n(()=>import(`./vendor-icon-file-image-CpBZDsp-.js`).then(e=>e.t),[],import.meta.url),"file-input":()=>n(()=>import(`./vendor-icon-file-input-BJCTr7Bw.js`).then(e=>e.t),[],import.meta.url),"file-key":()=>n(()=>import(`./vendor-icon-file-key-DLNZX9As.js`).then(e=>e.t),[],import.meta.url),"file-key-2":()=>n(()=>import(`./vendor-icon-file-key-DLNZX9As.js`).then(e=>e.t),[],import.meta.url),"file-lock":()=>n(()=>import(`./vendor-icon-file-lock-DmAU7Su7.js`).then(e=>e.t),[],import.meta.url),"file-lock-2":()=>n(()=>import(`./vendor-icon-file-lock-DmAU7Su7.js`).then(e=>e.t),[],import.meta.url),"file-minus-corner":()=>n(()=>import(`./vendor-icon-file-minus-corner-TaEtqlrQ.js`).then(e=>e.t),[],import.meta.url),"file-minus-2":()=>n(()=>import(`./vendor-icon-file-minus-corner-TaEtqlrQ.js`).then(e=>e.t),[],import.meta.url),"file-minus":()=>n(()=>import(`./vendor-icon-file-minus-BKypXhm2.js`).then(e=>e.t),[],import.meta.url),"file-music":()=>n(()=>import(`./vendor-icon-file-music-D-sI5mh2.js`).then(e=>e.t),[],import.meta.url),"file-output":()=>n(()=>import(`./vendor-icon-file-output-VXOuNwFE.js`).then(e=>e.t),[],import.meta.url),"file-pen-line":()=>n(()=>import(`./vendor-icon-file-pen-line-DzkbwoOS.js`).then(e=>e.t),[],import.meta.url),"file-signature":()=>n(()=>import(`./vendor-icon-file-pen-line-DzkbwoOS.js`).then(e=>e.t),[],import.meta.url),"file-pen":()=>n(()=>import(`./vendor-icon-file-pen-l-DSznsL.js`).then(e=>e.n),[],import.meta.url),"file-edit":()=>n(()=>import(`./vendor-icon-file-pen-l-DSznsL.js`).then(e=>e.n),[],import.meta.url),"file-play":()=>n(()=>import(`./vendor-icon-file-play-fg45gKil.js`).then(e=>e.t),[],import.meta.url),"file-video":()=>n(()=>import(`./vendor-icon-file-play-fg45gKil.js`).then(e=>e.t),[],import.meta.url),"file-plus-corner":()=>n(()=>import(`./vendor-icon-file-plus-corner-qwq-iw5D.js`).then(e=>e.n),[],import.meta.url),"file-plus-2":()=>n(()=>import(`./vendor-icon-file-plus-corner-qwq-iw5D.js`).then(e=>e.n),[],import.meta.url),"file-plus":()=>n(()=>import(`./vendor-icon-file-plus-DMAKv9CD.js`).then(e=>e.n),[],import.meta.url),"file-question-mark":()=>n(()=>import(`./vendor-icon-file-question-mark-CDRVvH3W.js`).then(e=>e.n),[],import.meta.url),"file-question":()=>n(()=>import(`./vendor-icon-file-question-mark-CDRVvH3W.js`).then(e=>e.n),[],import.meta.url),"file-scan":()=>n(()=>import(`./vendor-icon-file-scan-BR_60__y.js`).then(e=>e.t),[],import.meta.url),"file-search-corner":()=>n(()=>import(`./vendor-icon-file-search-corner-B5c60l1m.js`).then(e=>e.t),[],import.meta.url),"file-search-2":()=>n(()=>import(`./vendor-icon-file-search-corner-B5c60l1m.js`).then(e=>e.t),[],import.meta.url),"file-search":()=>n(()=>import(`./vendor-icon-file-search-G3ut07Ux.js`).then(e=>e.n),[],import.meta.url),"file-signal":()=>n(()=>import(`./vendor-icon-file-signal-C7zYMUXi.js`).then(e=>e.t),[],import.meta.url),"file-volume-2":()=>n(()=>import(`./vendor-icon-file-signal-C7zYMUXi.js`).then(e=>e.t),[],import.meta.url),"file-sliders":()=>n(()=>import(`./vendor-icon-file-sliders-BEjYSM81.js`).then(e=>e.t),[],import.meta.url),"file-spreadsheet":()=>n(()=>import(`./vendor-icon-file-spreadsheet-LZ3f9xT3.js`).then(e=>e.n),[],import.meta.url),"file-stack":()=>n(()=>import(`./vendor-icon-file-stack-qfkpOfUZ.js`).then(e=>e.t),[],import.meta.url),"file-symlink":()=>n(()=>import(`./vendor-icon-file-symlink-BoZA_6a2.js`).then(e=>e.t),[],import.meta.url),"file-terminal":()=>n(()=>import(`./vendor-icon-file-terminal-CPKaLLdF.js`).then(e=>e.t),[],import.meta.url),"file-text":()=>n(()=>import(`./vendor-icon-file-text-7BKAVNof.js`).then(e=>e.n),[],import.meta.url),"file-type-corner":()=>n(()=>import(`./vendor-icon-file-type-corner-CFi5BqQg.js`).then(e=>e.t),[],import.meta.url),"file-type-2":()=>n(()=>import(`./vendor-icon-file-type-corner-CFi5BqQg.js`).then(e=>e.t),[],import.meta.url),"file-type":()=>n(()=>import(`./vendor-icon-file-type-Mp2lmApC.js`).then(e=>e.t),[],import.meta.url),"file-up":()=>n(()=>import(`./vendor-icon-file-up-CeHsRg2x.js`).then(e=>e.n),[],import.meta.url),"file-user":()=>n(()=>import(`./vendor-icon-file-user-CSYZBoLo.js`).then(e=>e.t),[],import.meta.url),"file-video-camera":()=>n(()=>import(`./vendor-icon-file-video-camera-BVnstdMZ.js`).then(e=>e.t),[],import.meta.url),"file-video-2":()=>n(()=>import(`./vendor-icon-file-video-camera-BVnstdMZ.js`).then(e=>e.t),[],import.meta.url),"file-volume":()=>n(()=>import(`./vendor-icon-file-volume-BMqxT6pN.js`).then(e=>e.t),[],import.meta.url),"file-x-corner":()=>n(()=>import(`./vendor-icon-file-x-corner-OO4M4iho.js`).then(e=>e.t),[],import.meta.url),"file-x-2":()=>n(()=>import(`./vendor-icon-file-x-corner-OO4M4iho.js`).then(e=>e.t),[],import.meta.url),"file-x":()=>n(()=>import(`./vendor-icon-file-x-BcqWCCDH.js`).then(e=>e.n),[],import.meta.url),file:()=>n(()=>import(`./vendor-icon-file-CTChzdTZ.js`).then(e=>e.n),[],import.meta.url),files:()=>n(()=>import(`./vendor-icon-files-CLgYJivw.js`).then(e=>e.t),[],import.meta.url),film:()=>n(()=>import(`./vendor-icon-film-DYqdgfHw.js`).then(e=>e.t),[],import.meta.url),"fingerprint-pattern":()=>n(()=>import(`./vendor-icon-fingerprint-pattern-Cryf654h.js`).then(e=>e.t),[],import.meta.url),fingerprint:()=>n(()=>import(`./vendor-icon-fingerprint-pattern-Cryf654h.js`).then(e=>e.t),[],import.meta.url),"fire-extinguisher":()=>n(()=>import(`./vendor-icon-fire-extinguisher-BBcFvsoc.js`).then(e=>e.t),[],import.meta.url),"fish-off":()=>n(()=>import(`./vendor-icon-fish-off-Cq-b9ck0.js`).then(e=>e.t),[],import.meta.url),"fish-symbol":()=>n(()=>import(`./vendor-icon-fish-symbol-C-nEiwC-.js`).then(e=>e.t),[],import.meta.url),fish:()=>n(()=>import(`./vendor-icon-fish-CUc77VHQ.js`).then(e=>e.t),[],import.meta.url),"fishing-hook":()=>n(()=>import(`./vendor-icon-fishing-hook-DkIV3IGj.js`).then(e=>e.t),[],import.meta.url),"fishing-rod":()=>n(()=>import(`./vendor-icon-fishing-rod-wfAcUerA.js`).then(e=>e.t),[],import.meta.url),"flag-off":()=>n(()=>import(`./vendor-icon-flag-off-CyHdBO4-.js`).then(e=>e.t),[],import.meta.url),"flag-triangle-left":()=>n(()=>import(`./vendor-icon-flag-triangle-left-BGTcR8AY.js`).then(e=>e.t),[],import.meta.url),"flag-triangle-right":()=>n(()=>import(`./vendor-icon-flag-triangle-right-DAxcufcv.js`).then(e=>e.t),[],import.meta.url),flag:()=>n(()=>import(`./vendor-icon-flag-QWvMhB7L.js`).then(e=>e.n),[],import.meta.url),"flame-kindling":()=>n(()=>import(`./vendor-icon-flame-kindling-BmZ_qm6Z.js`).then(e=>e.t),[],import.meta.url),flame:()=>n(()=>import(`./vendor-icon-flame-CX1xLt3H.js`).then(e=>e.t),[],import.meta.url),"flashlight-off":()=>n(()=>import(`./vendor-icon-flashlight-off-CM9-b1lS.js`).then(e=>e.t),[],import.meta.url),flashlight:()=>n(()=>import(`./vendor-icon-flashlight-CQ4B2_n_.js`).then(e=>e.t),[],import.meta.url),"flask-conical-off":()=>n(()=>import(`./vendor-icon-flask-conical-off-B8qmbyf2.js`).then(e=>e.t),[],import.meta.url),"flask-conical":()=>n(()=>import(`./vendor-icon-flask-conical-CaTZd1FS.js`).then(e=>e.n),[],import.meta.url),"flask-round":()=>n(()=>import(`./vendor-icon-flask-round-Bk6QA39H.js`).then(e=>e.t),[],import.meta.url),"flip-horizontal-2":()=>n(()=>import(`./vendor-icon-flip-horizontal-2-BcPjK20a.js`).then(e=>e.t),[],import.meta.url),"flip-vertical-2":()=>n(()=>import(`./vendor-icon-flip-vertical-2-D0bG1Gtt.js`).then(e=>e.t),[],import.meta.url),"flower-2":()=>n(()=>import(`./vendor-icon-flower-2-DSF5OSNs.js`).then(e=>e.t),[],import.meta.url),flower:()=>n(()=>import(`./vendor-icon-flower-DbGOLOY3.js`).then(e=>e.t),[],import.meta.url),focus:()=>n(()=>import(`./vendor-icon-focus-C-KwciPC.js`).then(e=>e.t),[],import.meta.url),"fold-horizontal":()=>n(()=>import(`./vendor-icon-fold-horizontal-Cd6Y7Lgq.js`).then(e=>e.t),[],import.meta.url),"fold-vertical":()=>n(()=>import(`./vendor-icon-fold-vertical-tKYxfGbI.js`).then(e=>e.t),[],import.meta.url),"folder-archive":()=>n(()=>import(`./vendor-icon-folder-archive-C9Z8enWJ.js`).then(e=>e.t),[],import.meta.url),"folder-bookmark":()=>n(()=>import(`./vendor-icon-folder-bookmark-rPTDUSFo.js`).then(e=>e.t),[],import.meta.url),"folder-check":()=>n(()=>import(`./vendor-icon-folder-check-CaqfKbZc.js`).then(e=>e.t),[],import.meta.url),"folder-clock":()=>n(()=>import(`./vendor-icon-folder-clock-P74cibui.js`).then(e=>e.t),[],import.meta.url),"folder-closed":()=>n(()=>import(`./vendor-icon-folder-closed-CTaZY4sf.js`).then(e=>e.t),[],import.meta.url),"folder-code":()=>n(()=>import(`./vendor-icon-folder-code-CbQWA3tQ.js`).then(e=>e.t),[],import.meta.url),"folder-cog":()=>n(()=>import(`./vendor-icon-folder-cog-IpWTsyO0.js`).then(e=>e.t),[],import.meta.url),"folder-cog-2":()=>n(()=>import(`./vendor-icon-folder-cog-IpWTsyO0.js`).then(e=>e.t),[],import.meta.url),"folder-dot":()=>n(()=>import(`./vendor-icon-folder-dot-f6ik-7Dt.js`).then(e=>e.t),[],import.meta.url),"folder-down":()=>n(()=>import(`./vendor-icon-folder-down-DQE3Iouz.js`).then(e=>e.t),[],import.meta.url),"folder-git-2":()=>n(()=>import(`./vendor-icon-folder-git-2-CarfHt_Q.js`).then(e=>e.t),[],import.meta.url),"folder-git":()=>n(()=>import(`./vendor-icon-folder-git-CNliyQya.js`).then(e=>e.t),[],import.meta.url),"folder-heart":()=>n(()=>import(`./vendor-icon-folder-heart-Bw8pgSib.js`).then(e=>e.t),[],import.meta.url),"folder-input":()=>n(()=>import(`./vendor-icon-folder-input-CeRcsOb0.js`).then(e=>e.n),[],import.meta.url),"folder-kanban":()=>n(()=>import(`./vendor-icon-folder-kanban-CJweaaKK.js`).then(e=>e.t),[],import.meta.url),"folder-key":()=>n(()=>import(`./vendor-icon-folder-key-B-yf95b4.js`).then(e=>e.t),[],import.meta.url),"folder-lock":()=>n(()=>import(`./vendor-icon-folder-lock-DJ-u25uZ.js`).then(e=>e.t),[],import.meta.url),"folder-minus":()=>n(()=>import(`./vendor-icon-folder-minus-C1wE9V2R.js`).then(e=>e.t),[],import.meta.url),"folder-open-dot":()=>n(()=>import(`./vendor-icon-folder-open-dot-CbyVbMAV.js`).then(e=>e.t),[],import.meta.url),"folder-open":()=>n(()=>import(`./vendor-icon-folder-open-mGjBJ_Tq.js`).then(e=>e.n),[],import.meta.url),"folder-output":()=>n(()=>import(`./vendor-icon-folder-output-BEHBk3G0.js`).then(e=>e.t),[],import.meta.url),"folder-pen":()=>n(()=>import(`./vendor-icon-folder-pen-qV79nlMO.js`).then(e=>e.t),[],import.meta.url),"folder-edit":()=>n(()=>import(`./vendor-icon-folder-pen-qV79nlMO.js`).then(e=>e.t),[],import.meta.url),"folder-plus":()=>n(()=>import(`./vendor-icon-folder-plus-DX3Wm6yc.js`).then(e=>e.n),[],import.meta.url),"folder-root":()=>n(()=>import(`./vendor-icon-folder-root-CvrJREap.js`).then(e=>e.t),[],import.meta.url),"folder-search-2":()=>n(()=>import(`./vendor-icon-folder-search-2-tnBq8oDi.js`).then(e=>e.t),[],import.meta.url),"folder-search":()=>n(()=>import(`./vendor-icon-folder-search-DI0V2doy.js`).then(e=>e.t),[],import.meta.url),"folder-symlink":()=>n(()=>import(`./vendor-icon-folder-symlink-DOmsXA1i.js`).then(e=>e.t),[],import.meta.url),"folder-sync":()=>n(()=>import(`./vendor-icon-folder-sync-CvLX_ztd.js`).then(e=>e.t),[],import.meta.url),"folder-tree":()=>n(()=>import(`./vendor-icon-folder-tree-BQ1wv9bt.js`).then(e=>e.n),[],import.meta.url),"folder-up":()=>n(()=>import(`./vendor-icon-folder-up-BeUWC9cC.js`).then(e=>e.t),[],import.meta.url),"folder-x":()=>n(()=>import(`./vendor-icon-folder-x-BgiwKxtx.js`).then(e=>e.t),[],import.meta.url),folder:()=>n(()=>import(`./vendor-icon-folder-GbhohOfU.js`).then(e=>e.n),[],import.meta.url),folders:()=>n(()=>import(`./vendor-icon-folders-CbV1Socn.js`).then(e=>e.n),[],import.meta.url),footprints:()=>n(()=>import(`./vendor-icon-footprints-COJ-KZQL.js`).then(e=>e.t),[],import.meta.url),forklift:()=>n(()=>import(`./vendor-icon-forklift-BTAAtB6U.js`).then(e=>e.t),[],import.meta.url),form:()=>n(()=>import(`./vendor-icon-form-Bfb7QK0P.js`).then(e=>e.t),[],import.meta.url),forward:()=>n(()=>import(`./vendor-icon-forward-L5fGiBOb.js`).then(e=>e.t),[],import.meta.url),frame:()=>n(()=>import(`./vendor-icon-frame-aWiMxcP_.js`).then(e=>e.t),[],import.meta.url),fuel:()=>n(()=>import(`./vendor-icon-fuel-zt0fjC5P.js`).then(e=>e.t),[],import.meta.url),fullscreen:()=>n(()=>import(`./vendor-icon-fullscreen-S91MVpSO.js`).then(e=>e.t),[],import.meta.url),"funnel-plus":()=>n(()=>import(`./vendor-icon-funnel-plus-BnXAeoHJ.js`).then(e=>e.t),[],import.meta.url),"funnel-x":()=>n(()=>import(`./vendor-icon-funnel-x-ChTcAyC7.js`).then(e=>e.t),[],import.meta.url),"filter-x":()=>n(()=>import(`./vendor-icon-funnel-x-ChTcAyC7.js`).then(e=>e.t),[],import.meta.url),funnel:()=>n(()=>import(`./vendor-icon-funnel-CtmEg9FH.js`).then(e=>e.n),[],import.meta.url),filter:()=>n(()=>import(`./vendor-icon-funnel-CtmEg9FH.js`).then(e=>e.n),[],import.meta.url),galaxy:()=>n(()=>import(`./vendor-icon-galaxy-COULUBTi.js`).then(e=>e.t),[],import.meta.url),"gallery-horizontal-end":()=>n(()=>import(`./vendor-icon-gallery-horizontal-end-BjRgRef2.js`).then(e=>e.t),[],import.meta.url),"gallery-horizontal":()=>n(()=>import(`./vendor-icon-gallery-horizontal-B0CmkNPy.js`).then(e=>e.t),[],import.meta.url),"gallery-thumbnails":()=>n(()=>import(`./vendor-icon-gallery-thumbnails-B9FlUiBP.js`).then(e=>e.t),[],import.meta.url),"gallery-vertical-end":()=>n(()=>import(`./vendor-icon-gallery-vertical-end-Wb7In404.js`).then(e=>e.t),[],import.meta.url),"gallery-vertical":()=>n(()=>import(`./vendor-icon-gallery-vertical-DU8_rrNB.js`).then(e=>e.t),[],import.meta.url),"gamepad-2":()=>n(()=>import(`./vendor-icon-gamepad-2-CxSgVEhB.js`).then(e=>e.t),[],import.meta.url),"gamepad-directional":()=>n(()=>import(`./vendor-icon-gamepad-directional-B-hvPESK.js`).then(e=>e.t),[],import.meta.url),gamepad:()=>n(()=>import(`./vendor-icon-gamepad-D97yfepG.js`).then(e=>e.t),[],import.meta.url),"gap-horizontal":()=>n(()=>import(`./vendor-icon-gap-horizontal-C0x9WPiZ.js`).then(e=>e.t),[],import.meta.url),"gap-vertical":()=>n(()=>import(`./vendor-icon-gap-vertical-CGecTpUu.js`).then(e=>e.t),[],import.meta.url),gauge:()=>n(()=>import(`./vendor-icon-gauge-CIVyyDJV.js`).then(e=>e.n),[],import.meta.url),gavel:()=>n(()=>import(`./vendor-icon-gavel-BC5XRpfc.js`).then(e=>e.t),[],import.meta.url),gem:()=>n(()=>import(`./vendor-icon-gem-BzGl5xb5.js`).then(e=>e.t),[],import.meta.url),"georgian-lari":()=>n(()=>import(`./vendor-icon-georgian-lari-Dl9H4vRx.js`).then(e=>e.t),[],import.meta.url),"germ-off":()=>n(()=>import(`./vendor-icon-germ-off-CG6W5ahD.js`).then(e=>e.t),[],import.meta.url),germ:()=>n(()=>import(`./vendor-icon-germ-CUxK_yY4.js`).then(e=>e.t),[],import.meta.url),ghost:()=>n(()=>import(`./vendor-icon-ghost-Bzhn2uYS.js`).then(e=>e.t),[],import.meta.url),gift:()=>n(()=>import(`./vendor-icon-gift-yFOJ2wk2.js`).then(e=>e.t),[],import.meta.url),"git-branch-minus":()=>n(()=>import(`./vendor-icon-git-branch-minus-6k5M8cKY.js`).then(e=>e.t),[],import.meta.url),"git-branch-plus":()=>n(()=>import(`./vendor-icon-git-branch-plus-CUjOD28I.js`).then(e=>e.t),[],import.meta.url),"git-branch":()=>n(()=>import(`./vendor-icon-git-branch-CpQpJlYB.js`).then(e=>e.n),[],import.meta.url),"git-commit-horizontal":()=>n(()=>import(`./vendor-icon-git-commit-horizontal-D5QlQfHX.js`).then(e=>e.t),[],import.meta.url),"git-commit":()=>n(()=>import(`./vendor-icon-git-commit-horizontal-D5QlQfHX.js`).then(e=>e.t),[],import.meta.url),"git-commit-vertical":()=>n(()=>import(`./vendor-icon-git-commit-vertical-DJZ_bIGG.js`).then(e=>e.t),[],import.meta.url),"git-compare-arrows":()=>n(()=>import(`./vendor-icon-git-compare-arrows-BAqrva2j.js`).then(e=>e.n),[],import.meta.url),"git-compare":()=>n(()=>import(`./vendor-icon-git-compare-DZvYH-Cc.js`).then(e=>e.t),[],import.meta.url),"git-fork":()=>n(()=>import(`./vendor-icon-git-fork-DEQeROkn.js`).then(e=>e.n),[],import.meta.url),"git-graph":()=>n(()=>import(`./vendor-icon-git-graph-BmltR-60.js`).then(e=>e.t),[],import.meta.url),"git-merge-conflict":()=>n(()=>import(`./vendor-icon-git-merge-conflict-BKtC1tqP.js`).then(e=>e.t),[],import.meta.url),"git-merge":()=>n(()=>import(`./vendor-icon-git-merge-2q_9eKti.js`).then(e=>e.t),[],import.meta.url),"git-pull-request-arrow":()=>n(()=>import(`./vendor-icon-git-pull-request-arrow-_2syUfRC.js`).then(e=>e.t),[],import.meta.url),"git-pull-request-closed":()=>n(()=>import(`./vendor-icon-git-pull-request-closed-DPWx6mHk.js`).then(e=>e.t),[],import.meta.url),"git-pull-request-create-arrow":()=>n(()=>import(`./vendor-icon-git-pull-request-create-arrow-BvKcKnrM.js`).then(e=>e.t),[],import.meta.url),"git-pull-request-create":()=>n(()=>import(`./vendor-icon-git-pull-request-create-DVoK_mR6.js`).then(e=>e.t),[],import.meta.url),"git-pull-request-draft":()=>n(()=>import(`./vendor-icon-git-pull-request-draft-Cs64XIl0.js`).then(e=>e.t),[],import.meta.url),"git-pull-request":()=>n(()=>import(`./vendor-icon-git-pull-request-NZ2UCQ_L.js`).then(e=>e.t),[],import.meta.url),"glass-water":()=>n(()=>import(`./vendor-icon-glass-water-BhEwvZu3.js`).then(e=>e.t),[],import.meta.url),glasses:()=>n(()=>import(`./vendor-icon-glasses-BebmLZr0.js`).then(e=>e.t),[],import.meta.url),"globe-check":()=>n(()=>import(`./vendor-icon-globe-check-CuPgSQBA.js`).then(e=>e.t),[],import.meta.url),"globe-lock":()=>n(()=>import(`./vendor-icon-globe-lock-DjZd1YE3.js`).then(e=>e.t),[],import.meta.url),"globe-off":()=>n(()=>import(`./vendor-icon-globe-off-D_rmX9Yt.js`).then(e=>e.t),[],import.meta.url),"globe-x":()=>n(()=>import(`./vendor-icon-globe-x-CgURLx5c.js`).then(e=>e.t),[],import.meta.url),globe:()=>n(()=>import(`./vendor-icon-globe-BaOanPH5.js`).then(e=>e.n),[],import.meta.url),goal:()=>n(()=>import(`./vendor-icon-goal-LbLKUmqN.js`).then(e=>e.t),[],import.meta.url),gpu:()=>n(()=>import(`./vendor-icon-gpu-B2fxorFh.js`).then(e=>e.t),[],import.meta.url),"graduation-cap":()=>n(()=>import(`./vendor-icon-graduation-cap-BEm56ocd.js`).then(e=>e.t),[],import.meta.url),grape:()=>n(()=>import(`./vendor-icon-grape-BaHjsuPB.js`).then(e=>e.t),[],import.meta.url),"grid-2x2-check":()=>n(()=>import(`./vendor-icon-grid-2x2-check-s65FYNOY.js`).then(e=>e.t),[],import.meta.url),"grid-2-x-2-check":()=>n(()=>import(`./vendor-icon-grid-2x2-check-s65FYNOY.js`).then(e=>e.t),[],import.meta.url),"grid-2x2-plus":()=>n(()=>import(`./vendor-icon-grid-2x2-plus-GrSc6B2V.js`).then(e=>e.t),[],import.meta.url),"grid-2-x-2-plus":()=>n(()=>import(`./vendor-icon-grid-2x2-plus-GrSc6B2V.js`).then(e=>e.t),[],import.meta.url),"grid-2x2-x":()=>n(()=>import(`./vendor-icon-grid-2x2-x-BOxOZ95f.js`).then(e=>e.t),[],import.meta.url),"grid-2-x-2-x":()=>n(()=>import(`./vendor-icon-grid-2x2-x-BOxOZ95f.js`).then(e=>e.t),[],import.meta.url),"grid-2x2":()=>n(()=>import(`./vendor-icon-grid-2x2-rK8mJWne.js`).then(e=>e.t),[],import.meta.url),"grid-2-x-2":()=>n(()=>import(`./vendor-icon-grid-2x2-rK8mJWne.js`).then(e=>e.t),[],import.meta.url),"grid-3x2":()=>n(()=>import(`./vendor-icon-grid-3x2-NNhtQ7Fd.js`).then(e=>e.t),[],import.meta.url),"grid-3x3":()=>n(()=>import(`./vendor-icon-grid-3x3-Dyc1xp4z.js`).then(e=>e.n),[],import.meta.url),grid:()=>n(()=>import(`./vendor-icon-grid-3x3-Dyc1xp4z.js`).then(e=>e.n),[],import.meta.url),"grid-3-x-3":()=>n(()=>import(`./vendor-icon-grid-3x3-Dyc1xp4z.js`).then(e=>e.n),[],import.meta.url),"grip-horizontal":()=>n(()=>import(`./vendor-icon-grip-horizontal-CvDQskmU.js`).then(e=>e.t),[],import.meta.url),"grip-vertical":()=>n(()=>import(`./vendor-icon-grip-vertical-B01-ovq0.js`).then(e=>e.n),[],import.meta.url),grip:()=>n(()=>import(`./vendor-icon-grip-CaFxiKCq.js`).then(e=>e.t),[],import.meta.url),group:()=>n(()=>import(`./vendor-icon-group-Dq8ETKd5.js`).then(e=>e.n),[],import.meta.url),guitar:()=>n(()=>import(`./vendor-icon-guitar-C7WUUwDZ.js`).then(e=>e.t),[],import.meta.url),ham:()=>n(()=>import(`./vendor-icon-ham-FP9376_9.js`).then(e=>e.t),[],import.meta.url),hamburger:()=>n(()=>import(`./vendor-icon-hamburger-XffqM-gj.js`).then(e=>e.t),[],import.meta.url),hammer:()=>n(()=>import(`./vendor-icon-hammer-Dt0J1nzU.js`).then(e=>e.n),[],import.meta.url),"hand-coins":()=>n(()=>import(`./vendor-icon-hand-coins-CB-Qw8cK.js`).then(e=>e.t),[],import.meta.url),"hand-fist":()=>n(()=>import(`./vendor-icon-hand-fist-rRtMpjwV.js`).then(e=>e.t),[],import.meta.url),"hand-grab":()=>n(()=>import(`./vendor-icon-hand-grab-DnUt6HJ_.js`).then(e=>e.t),[],import.meta.url),grab:()=>n(()=>import(`./vendor-icon-hand-grab-DnUt6HJ_.js`).then(e=>e.t),[],import.meta.url),"hand-heart":()=>n(()=>import(`./vendor-icon-hand-heart-DMfv8UKr.js`).then(e=>e.t),[],import.meta.url),"hand-helping":()=>n(()=>import(`./vendor-icon-hand-helping-C9h01-2o.js`).then(e=>e.t),[],import.meta.url),"helping-hand":()=>n(()=>import(`./vendor-icon-hand-helping-C9h01-2o.js`).then(e=>e.t),[],import.meta.url),"hand-metal":()=>n(()=>import(`./vendor-icon-hand-metal-BF1ZKGy8.js`).then(e=>e.t),[],import.meta.url),"hand-platter":()=>n(()=>import(`./vendor-icon-hand-platter-mLBHV-va.js`).then(e=>e.t),[],import.meta.url),hand:()=>n(()=>import(`./vendor-icon-hand-BfojjVYv.js`).then(e=>e.t),[],import.meta.url),handbag:()=>n(()=>import(`./vendor-icon-handbag-E68LcO-T.js`).then(e=>e.t),[],import.meta.url),handshake:()=>n(()=>import(`./vendor-icon-handshake-mkz5_JoS.js`).then(e=>e.t),[],import.meta.url),"hard-drive-download":()=>n(()=>import(`./vendor-icon-hard-drive-download-B3gzGBJr.js`).then(e=>e.t),[],import.meta.url),"hard-drive-upload":()=>n(()=>import(`./vendor-icon-hard-drive-upload-DzLkv4JG.js`).then(e=>e.t),[],import.meta.url),"hard-drive":()=>n(()=>import(`./vendor-icon-hard-drive-DhSx4UAI.js`).then(e=>e.n),[],import.meta.url),"hard-hat":()=>n(()=>import(`./vendor-icon-hard-hat-D2pt63LF.js`).then(e=>e.t),[],import.meta.url),hash:()=>n(()=>import(`./vendor-icon-hash-Lkwzb5Ny.js`).then(e=>e.n),[],import.meta.url),"hat-glasses":()=>n(()=>import(`./vendor-icon-hat-glasses-Ccd8Nldc.js`).then(e=>e.t),[],import.meta.url),haze:()=>n(()=>import(`./vendor-icon-haze-zLjrn3x9.js`).then(e=>e.t),[],import.meta.url),hd:()=>n(()=>import(`./vendor-icon-hd-DoDgyWiG.js`).then(e=>e.t),[],import.meta.url),"hdmi-port":()=>n(()=>import(`./vendor-icon-hdmi-port-CPE9e5Fj.js`).then(e=>e.t),[],import.meta.url),"heading-1":()=>n(()=>import(`./vendor-icon-heading-1-BKNYzuT_.js`).then(e=>e.t),[],import.meta.url),"heading-2":()=>n(()=>import(`./vendor-icon-heading-2-D5gdzVy2.js`).then(e=>e.t),[],import.meta.url),"heading-3":()=>n(()=>import(`./vendor-icon-heading-3-BS-l81Gc.js`).then(e=>e.t),[],import.meta.url),"heading-4":()=>n(()=>import(`./vendor-icon-heading-4-BaONe84r.js`).then(e=>e.t),[],import.meta.url),"heading-5":()=>n(()=>import(`./vendor-icon-heading-5-BOWM6Wy9.js`).then(e=>e.t),[],import.meta.url),"heading-6":()=>n(()=>import(`./vendor-icon-heading-6-CZLzSuuF.js`).then(e=>e.t),[],import.meta.url),heading:()=>n(()=>import(`./vendor-icon-heading-YjNwxstt.js`).then(e=>e.t),[],import.meta.url),"headphone-off":()=>n(()=>import(`./vendor-icon-headphone-off-BcFP11_4.js`).then(e=>e.t),[],import.meta.url),headphones:()=>n(()=>import(`./vendor-icon-headphones-CGQFJEI7.js`).then(e=>e.t),[],import.meta.url),headset:()=>n(()=>import(`./vendor-icon-headset-DRBEAS4B.js`).then(e=>e.t),[],import.meta.url),"heart-crack":()=>n(()=>import(`./vendor-icon-heart-crack-CH_Zbky9.js`).then(e=>e.t),[],import.meta.url),"heart-handshake":()=>n(()=>import(`./vendor-icon-heart-handshake-rnMK5ckv.js`).then(e=>e.t),[],import.meta.url),"heart-minus":()=>n(()=>import(`./vendor-icon-heart-minus-Bh2qwoUx.js`).then(e=>e.t),[],import.meta.url),"heart-off":()=>n(()=>import(`./vendor-icon-heart-off-CGlfF1F6.js`).then(e=>e.t),[],import.meta.url),"heart-plus":()=>n(()=>import(`./vendor-icon-heart-plus-BQRAFLaU.js`).then(e=>e.t),[],import.meta.url),"heart-pulse":()=>n(()=>import(`./vendor-icon-heart-pulse-BTvbI3tt.js`).then(e=>e.t),[],import.meta.url),"heart-x":()=>n(()=>import(`./vendor-icon-heart-x-qGuI1TJk.js`).then(e=>e.t),[],import.meta.url),heart:()=>n(()=>import(`./vendor-icon-heart-B1RWRYi1.js`).then(e=>e.t),[],import.meta.url),heater:()=>n(()=>import(`./vendor-icon-heater-HneKYKJI.js`).then(e=>e.t),[],import.meta.url),helicopter:()=>n(()=>import(`./vendor-icon-helicopter-9uhJ0XK5.js`).then(e=>e.t),[],import.meta.url),hexagon:()=>n(()=>import(`./vendor-icon-hexagon-BS11HC15.js`).then(e=>e.t),[],import.meta.url),highlighter:()=>n(()=>import(`./vendor-icon-highlighter-CD_s3f_P.js`).then(e=>e.t),[],import.meta.url),"hop-off":()=>n(()=>import(`./vendor-icon-hop-off-atcjKGkL.js`).then(e=>e.t),[],import.meta.url),hop:()=>n(()=>import(`./vendor-icon-hop-DBN4Oegd.js`).then(e=>e.t),[],import.meta.url),hospital:()=>n(()=>import(`./vendor-icon-hospital-D1vCHbOv.js`).then(e=>e.t),[],import.meta.url),hotel:()=>n(()=>import(`./vendor-icon-hotel-BOOp45CN.js`).then(e=>e.t),[],import.meta.url),hourglass:()=>n(()=>import(`./vendor-icon-hourglass-B2VxgTp9.js`).then(e=>e.n),[],import.meta.url),"house-heart":()=>n(()=>import(`./vendor-icon-house-heart-CzqERry-.js`).then(e=>e.t),[],import.meta.url),"house-plug":()=>n(()=>import(`./vendor-icon-house-plug-BQa-ca4v.js`).then(e=>e.t),[],import.meta.url),"house-plus":()=>n(()=>import(`./vendor-icon-house-plus-8Dd8WlSc.js`).then(e=>e.t),[],import.meta.url),"house-wifi":()=>n(()=>import(`./vendor-icon-house-wifi-C_g659i3.js`).then(e=>e.t),[],import.meta.url),house:()=>n(()=>import(`./vendor-icon-house-DKkSNU01.js`).then(e=>e.n),[],import.meta.url),home:()=>n(()=>import(`./vendor-icon-house-DKkSNU01.js`).then(e=>e.n),[],import.meta.url),"ice-cream-bowl":()=>n(()=>import(`./vendor-icon-ice-cream-bowl-DSYN73Li.js`).then(e=>e.t),[],import.meta.url),"ice-cream-2":()=>n(()=>import(`./vendor-icon-ice-cream-bowl-DSYN73Li.js`).then(e=>e.t),[],import.meta.url),"ice-cream-cone":()=>n(()=>import(`./vendor-icon-ice-cream-cone-CHrr9gIo.js`).then(e=>e.t),[],import.meta.url),"ice-cream":()=>n(()=>import(`./vendor-icon-ice-cream-cone-CHrr9gIo.js`).then(e=>e.t),[],import.meta.url),"id-card-lanyard":()=>n(()=>import(`./vendor-icon-id-card-lanyard-C3yG_Tlz.js`).then(e=>e.t),[],import.meta.url),"id-card":()=>n(()=>import(`./vendor-icon-id-card-BKo7mYb2.js`).then(e=>e.t),[],import.meta.url),"image-down":()=>n(()=>import(`./vendor-icon-image-down-CPvMWr4k.js`).then(e=>e.t),[],import.meta.url),"image-minus":()=>n(()=>import(`./vendor-icon-image-minus-C7ippqza.js`).then(e=>e.t),[],import.meta.url),"image-off":()=>n(()=>import(`./vendor-icon-image-off-Bxd-uesM.js`).then(e=>e.t),[],import.meta.url),"image-play":()=>n(()=>import(`./vendor-icon-image-play-iG1dcyRR.js`).then(e=>e.t),[],import.meta.url),"image-plus":()=>n(()=>import(`./vendor-icon-image-plus-Dy1Djb0J.js`).then(e=>e.t),[],import.meta.url),"image-up":()=>n(()=>import(`./vendor-icon-image-up-CSOuhT_R.js`).then(e=>e.t),[],import.meta.url),"image-upscale":()=>n(()=>import(`./vendor-icon-image-upscale-jQ-yvKui.js`).then(e=>e.t),[],import.meta.url),image:()=>n(()=>import(`./vendor-icon-image-D2YAsa8l.js`).then(e=>e.n),[],import.meta.url),images:()=>n(()=>import(`./vendor-icon-images-qaVnL5yL.js`).then(e=>e.n),[],import.meta.url),import:()=>n(()=>import(`./vendor-icon-import-Chnx4JBF.js`).then(e=>e.t),[],import.meta.url),inbox:()=>n(()=>import(`./vendor-icon-inbox-ByVQ4l4S.js`).then(e=>e.n),[],import.meta.url),"indian-rupee":()=>n(()=>import(`./vendor-icon-indian-rupee-DMQuDHbb.js`).then(e=>e.t),[],import.meta.url),infinity:()=>n(()=>import(`./vendor-icon-infinity-BKdcR7qg.js`).then(e=>e.t),[],import.meta.url),info:()=>n(()=>import(`./vendor-icon-info-DBwRTfSE.js`).then(e=>e.n),[],import.meta.url),"inspection-panel":()=>n(()=>import(`./vendor-icon-inspection-panel-GR_sXYTh.js`).then(e=>e.t),[],import.meta.url),italic:()=>n(()=>import(`./vendor-icon-italic-Dt0-MsYM.js`).then(e=>e.n),[],import.meta.url),"iteration-ccw":()=>n(()=>import(`./vendor-icon-iteration-ccw-S525B89r.js`).then(e=>e.n),[],import.meta.url),"iteration-cw":()=>n(()=>import(`./vendor-icon-iteration-cw-Sy7z8JTd.js`).then(e=>e.t),[],import.meta.url),"japanese-yen":()=>n(()=>import(`./vendor-icon-japanese-yen-BrUUA7A0.js`).then(e=>e.t),[],import.meta.url),joystick:()=>n(()=>import(`./vendor-icon-joystick-DlHpj1_T.js`).then(e=>e.t),[],import.meta.url),kanban:()=>n(()=>import(`./vendor-icon-kanban-Vs-E3QFM.js`).then(e=>e.t),[],import.meta.url),kayak:()=>n(()=>import(`./vendor-icon-kayak-DMvvGyFk.js`).then(e=>e.t),[],import.meta.url),"key-round":()=>n(()=>import(`./vendor-icon-key-round-hQwGYgPA.js`).then(e=>e.n),[],import.meta.url),"key-square":()=>n(()=>import(`./vendor-icon-key-square-BoPuIyFe.js`).then(e=>e.t),[],import.meta.url),key:()=>n(()=>import(`./vendor-icon-key-cIm4VBHQ.js`).then(e=>e.t),[],import.meta.url),"keyboard-music":()=>n(()=>import(`./vendor-icon-keyboard-music-CjiZJyXw.js`).then(e=>e.t),[],import.meta.url),"keyboard-off":()=>n(()=>import(`./vendor-icon-keyboard-off-hr6UFzKE.js`).then(e=>e.t),[],import.meta.url),keyboard:()=>n(()=>import(`./vendor-icon-keyboard-D_x9_32f.js`).then(e=>e.n),[],import.meta.url),"lamp-ceiling":()=>n(()=>import(`./vendor-icon-lamp-ceiling-DhTQiauo.js`).then(e=>e.t),[],import.meta.url),"lamp-desk":()=>n(()=>import(`./vendor-icon-lamp-desk-Jm9QJbL7.js`).then(e=>e.t),[],import.meta.url),"lamp-floor":()=>n(()=>import(`./vendor-icon-lamp-floor-CwOCcivt.js`).then(e=>e.t),[],import.meta.url),"lamp-wall-down":()=>n(()=>import(`./vendor-icon-lamp-wall-down-BUk5LOYe.js`).then(e=>e.t),[],import.meta.url),"lamp-wall-up":()=>n(()=>import(`./vendor-icon-lamp-wall-up-CDkWDd8L.js`).then(e=>e.t),[],import.meta.url),lamp:()=>n(()=>import(`./vendor-icon-lamp-syJnCLul.js`).then(e=>e.t),[],import.meta.url),"land-plot":()=>n(()=>import(`./vendor-icon-land-plot-C7ijQzjx.js`).then(e=>e.t),[],import.meta.url),landmark:()=>n(()=>import(`./vendor-icon-landmark-C1BmflQ4.js`).then(e=>e.t),[],import.meta.url),languages:()=>n(()=>import(`./vendor-icon-languages-CI3j7ujw.js`).then(e=>e.n),[],import.meta.url),"laptop-minimal-check":()=>n(()=>import(`./vendor-icon-laptop-minimal-check-kKAThWtP.js`).then(e=>e.t),[],import.meta.url),"laptop-minimal":()=>n(()=>import(`./vendor-icon-laptop-minimal-CTxatV5V.js`).then(e=>e.t),[],import.meta.url),"laptop-2":()=>n(()=>import(`./vendor-icon-laptop-minimal-CTxatV5V.js`).then(e=>e.t),[],import.meta.url),laptop:()=>n(()=>import(`./vendor-icon-laptop-mPnbkFWF.js`).then(e=>e.t),[],import.meta.url),"lasso-select":()=>n(()=>import(`./vendor-icon-lasso-select-punpILyM.js`).then(e=>e.t),[],import.meta.url),lasso:()=>n(()=>import(`./vendor-icon-lasso-DO5y3kMi.js`).then(e=>e.t),[],import.meta.url),"layer-arrow-down":()=>n(()=>import(`./vendor-icon-layer-arrow-down-tcwId5i6.js`).then(e=>e.t),[],import.meta.url),"layer-arrow-up":()=>n(()=>import(`./vendor-icon-layer-arrow-up-CPdmH8aa.js`).then(e=>e.t),[],import.meta.url),"layers-2":()=>n(()=>import(`./vendor-icon-layers-2-BzHWFtSl.js`).then(e=>e.t),[],import.meta.url),"layers-arrow-down":()=>n(()=>import(`./vendor-icon-layers-arrow-down-hMJV9aYF.js`).then(e=>e.t),[],import.meta.url),"layers-arrow-up":()=>n(()=>import(`./vendor-icon-layers-arrow-up-D_KoWJOL.js`).then(e=>e.t),[],import.meta.url),"layers-minus":()=>n(()=>import(`./vendor-icon-layers-minus-CMg3wWwY.js`).then(e=>e.t),[],import.meta.url),"layers-plus":()=>n(()=>import(`./vendor-icon-layers-plus-DMGCmQNe.js`).then(e=>e.t),[],import.meta.url),layers:()=>n(()=>import(`./vendor-icon-layers-DXBEefR1.js`).then(e=>e.n),[],import.meta.url),"layers-3":()=>n(()=>import(`./vendor-icon-layers-DXBEefR1.js`).then(e=>e.n),[],import.meta.url),"layout-dashboard":()=>n(()=>import(`./vendor-icon-layout-dashboard-wba2hvZp.js`).then(e=>e.n),[],import.meta.url),"layout-freeform":()=>n(()=>import(`./vendor-icon-layout-freeform-B9uFlp1E.js`).then(e=>e.t),[],import.meta.url),"layout-grid":()=>n(()=>import(`./vendor-icon-layout-grid-B3quJ1GF.js`).then(e=>e.n),[],import.meta.url),"layout-list":()=>n(()=>import(`./vendor-icon-layout-list-BmmAxLnX.js`).then(e=>e.t),[],import.meta.url),"layout-panel-left":()=>n(()=>import(`./vendor-icon-layout-panel-left-Dpy8KpEt.js`).then(e=>e.t),[],import.meta.url),"layout-panel-top":()=>n(()=>import(`./vendor-icon-layout-panel-top-C44SLICo.js`).then(e=>e.t),[],import.meta.url),"layout-template":()=>n(()=>import(`./vendor-icon-layout-template-BSsyv3fX.js`).then(e=>e.n),[],import.meta.url),leaf:()=>n(()=>import(`./vendor-icon-leaf-CAnsHaBo.js`).then(e=>e.t),[],import.meta.url),"leafy-green":()=>n(()=>import(`./vendor-icon-leafy-green-B7_c0hPE.js`).then(e=>e.t),[],import.meta.url),lectern:()=>n(()=>import(`./vendor-icon-lectern-Bl1JBN5H.js`).then(e=>e.t),[],import.meta.url),"lens-concave":()=>n(()=>import(`./vendor-icon-lens-concave-BkxJLdnP.js`).then(e=>e.t),[],import.meta.url),"lens-convex":()=>n(()=>import(`./vendor-icon-lens-convex-D_PtrE1Z.js`).then(e=>e.t),[],import.meta.url),"library-big":()=>n(()=>import(`./vendor-icon-library-big-naPExCw1.js`).then(e=>e.t),[],import.meta.url),library:()=>n(()=>import(`./vendor-icon-library-Cx4i-Jga.js`).then(e=>e.t),[],import.meta.url),"life-buoy":()=>n(()=>import(`./vendor-icon-life-buoy-BzRL4szD.js`).then(e=>e.t),[],import.meta.url),ligature:()=>n(()=>import(`./vendor-icon-ligature-DMqrLpvc.js`).then(e=>e.t),[],import.meta.url),"lightbulb-off":()=>n(()=>import(`./vendor-icon-lightbulb-off-DoeOMJHm.js`).then(e=>e.t),[],import.meta.url),lightbulb:()=>n(()=>import(`./vendor-icon-lightbulb-CHyAqvMV.js`).then(e=>e.t),[],import.meta.url),lighthouse:()=>n(()=>import(`./vendor-icon-lighthouse-CilvHrWQ.js`).then(e=>e.t),[],import.meta.url),"line-dot-right-horizontal":()=>n(()=>import(`./vendor-icon-line-dot-right-horizontal-WSNzsQ5U.js`).then(e=>e.t),[],import.meta.url),"line-squiggle":()=>n(()=>import(`./vendor-icon-line-squiggle-CpAO5-cr.js`).then(e=>e.t),[],import.meta.url),"line-style":()=>n(()=>import(`./vendor-icon-line-style-Crtyz2ZK.js`).then(e=>e.t),[],import.meta.url),"link-2-off":()=>n(()=>import(`./vendor-icon-link-2-off-Donc5rrk.js`).then(e=>e.n),[],import.meta.url),"link-2":()=>n(()=>import(`./vendor-icon-link-2-EAo0juhN.js`).then(e=>e.n),[],import.meta.url),link:()=>n(()=>import(`./vendor-icon-link-RPcdxfUF.js`).then(e=>e.n),[],import.meta.url),"list-check":()=>n(()=>import(`./vendor-icon-list-check-RhRKASbA.js`).then(e=>e.t),[],import.meta.url),"list-checks":()=>n(()=>import(`./vendor-icon-list-checks-Df4Wgu_H.js`).then(e=>e.n),[],import.meta.url),"list-chevrons-down-up":()=>n(()=>import(`./vendor-icon-list-chevrons-down-up-CTuxHd21.js`).then(e=>e.t),[],import.meta.url),"list-chevrons-up-down":()=>n(()=>import(`./vendor-icon-list-chevrons-up-down-BQG24Zb7.js`).then(e=>e.t),[],import.meta.url),"list-clock":()=>n(()=>import(`./vendor-icon-list-clock-CMTjjzz_.js`).then(e=>e.t),[],import.meta.url),"list-collapse":()=>n(()=>import(`./vendor-icon-list-collapse-Ddb6lkbW.js`).then(e=>e.t),[],import.meta.url),"list-end":()=>n(()=>import(`./vendor-icon-list-end-D4X2yMWR.js`).then(e=>e.t),[],import.meta.url),"list-filter-plus":()=>n(()=>import(`./vendor-icon-list-filter-plus-Cxf_ME1z.js`).then(e=>e.t),[],import.meta.url),"list-filter":()=>n(()=>import(`./vendor-icon-list-filter-C15EN_7M.js`).then(e=>e.n),[],import.meta.url),"list-indent-decrease":()=>n(()=>import(`./vendor-icon-list-indent-decrease-eBnEpMCT.js`).then(e=>e.t),[],import.meta.url),outdent:()=>n(()=>import(`./vendor-icon-list-indent-decrease-eBnEpMCT.js`).then(e=>e.t),[],import.meta.url),"indent-decrease":()=>n(()=>import(`./vendor-icon-list-indent-decrease-eBnEpMCT.js`).then(e=>e.t),[],import.meta.url),"list-indent-increase":()=>n(()=>import(`./vendor-icon-list-indent-increase-CGYD4Umw.js`).then(e=>e.t),[],import.meta.url),indent:()=>n(()=>import(`./vendor-icon-list-indent-increase-CGYD4Umw.js`).then(e=>e.t),[],import.meta.url),"indent-increase":()=>n(()=>import(`./vendor-icon-list-indent-increase-CGYD4Umw.js`).then(e=>e.t),[],import.meta.url),"list-minus":()=>n(()=>import(`./vendor-icon-list-minus-DUI8p7RC.js`).then(e=>e.t),[],import.meta.url),"list-music":()=>n(()=>import(`./vendor-icon-list-music-HhctM0cM.js`).then(e=>e.t),[],import.meta.url),"list-ordered":()=>n(()=>import(`./vendor-icon-list-ordered-DaaRBYov.js`).then(e=>e.n),[],import.meta.url),"list-plus":()=>n(()=>import(`./vendor-icon-list-plus-BQJqh7AR.js`).then(e=>e.t),[],import.meta.url),"list-restart":()=>n(()=>import(`./vendor-icon-list-restart-BtYNUuER.js`).then(e=>e.t),[],import.meta.url),"list-sort-ascending":()=>n(()=>import(`./vendor-icon-list-sort-ascending-BUhazTdJ.js`).then(e=>e.t),[],import.meta.url),"list-sort-descending":()=>n(()=>import(`./vendor-icon-list-sort-descending-BbhYjAOF.js`).then(e=>e.t),[],import.meta.url),"list-start":()=>n(()=>import(`./vendor-icon-list-start-DTi3oAoI.js`).then(e=>e.t),[],import.meta.url),"list-todo":()=>n(()=>import(`./vendor-icon-list-todo-CmVjq0sa.js`).then(e=>e.t),[],import.meta.url),"list-tree":()=>n(()=>import(`./vendor-icon-list-tree-Br55vyL9.js`).then(e=>e.n),[],import.meta.url),"list-video":()=>n(()=>import(`./vendor-icon-list-video-Djss-5N8.js`).then(e=>e.t),[],import.meta.url),"list-x":()=>n(()=>import(`./vendor-icon-list-x-CKmusMMi.js`).then(e=>e.t),[],import.meta.url),list:()=>n(()=>import(`./vendor-icon-list-TLz-7vfa.js`).then(e=>e.n),[],import.meta.url),"loader-circle":()=>n(()=>import(`./vendor-icon-loader-circle-D3PsuVaD.js`).then(e=>e.n),[],import.meta.url),"loader-2":()=>n(()=>import(`./vendor-icon-loader-circle-D3PsuVaD.js`).then(e=>e.n),[],import.meta.url),"loader-pinwheel":()=>n(()=>import(`./vendor-icon-loader-pinwheel-X6cAA45F.js`).then(e=>e.t),[],import.meta.url),loader:()=>n(()=>import(`./vendor-icon-loader-Hoj5OlrQ.js`).then(e=>e.t),[],import.meta.url),"locate-fixed":()=>n(()=>import(`./vendor-icon-locate-fixed-QIGs9D4X.js`).then(e=>e.t),[],import.meta.url),"locate-off":()=>n(()=>import(`./vendor-icon-locate-off-gGSzdfL7.js`).then(e=>e.t),[],import.meta.url),locate:()=>n(()=>import(`./vendor-icon-locate-D8XftzRl.js`).then(e=>e.t),[],import.meta.url),"lock-keyhole-open":()=>n(()=>import(`./vendor-icon-lock-keyhole-open-BaWm6bif.js`).then(e=>e.t),[],import.meta.url),"unlock-keyhole":()=>n(()=>import(`./vendor-icon-lock-keyhole-open-BaWm6bif.js`).then(e=>e.t),[],import.meta.url),"lock-keyhole":()=>n(()=>import(`./vendor-icon-lock-keyhole-Xd1LXFEY.js`).then(e=>e.t),[],import.meta.url),"lock-open":()=>n(()=>import(`./vendor-icon-lock-open-DQyMEeYD.js`).then(e=>e.t),[],import.meta.url),unlock:()=>n(()=>import(`./vendor-icon-lock-open-DQyMEeYD.js`).then(e=>e.t),[],import.meta.url),lock:()=>n(()=>import(`./vendor-icon-lock-B_psRnly.js`).then(e=>e.n),[],import.meta.url),"log-in":()=>n(()=>import(`./vendor-icon-log-in-BnimMBi0.js`).then(e=>e.t),[],import.meta.url),"log-out":()=>n(()=>import(`./vendor-icon-log-out-CecmgsZQ.js`).then(e=>e.n),[],import.meta.url),logs:()=>n(()=>import(`./vendor-icon-logs-CqSSzAoM.js`).then(e=>e.t),[],import.meta.url),lollipop:()=>n(()=>import(`./vendor-icon-lollipop-D-np84mo.js`).then(e=>e.t),[],import.meta.url),luggage:()=>n(()=>import(`./vendor-icon-luggage-BKu9geJn.js`).then(e=>e.t),[],import.meta.url),magnet:()=>n(()=>import(`./vendor-icon-magnet-CDkgKCZV.js`).then(e=>e.t),[],import.meta.url),"mail-badge":()=>n(()=>import(`./vendor-icon-mail-badge-DSUIJqzS.js`).then(e=>e.t),[],import.meta.url),"mail-check":()=>n(()=>import(`./vendor-icon-mail-check-D2N7yV1m.js`).then(e=>e.n),[],import.meta.url),"mail-clock":()=>n(()=>import(`./vendor-icon-mail-clock-DljmAaOk.js`).then(e=>e.t),[],import.meta.url),"mail-minus":()=>n(()=>import(`./vendor-icon-mail-minus-D5JLuZBJ.js`).then(e=>e.t),[],import.meta.url),"mail-open":()=>n(()=>import(`./vendor-icon-mail-open-jXeDfffF.js`).then(e=>e.t),[],import.meta.url),"mail-pen":()=>n(()=>import(`./vendor-icon-mail-pen-D_ZZDmkN.js`).then(e=>e.t),[],import.meta.url),"mail-plus":()=>n(()=>import(`./vendor-icon-mail-plus-DrubbwHR.js`).then(e=>e.t),[],import.meta.url),"mail-question-mark":()=>n(()=>import(`./vendor-icon-mail-question-mark-C4WxAxyl.js`).then(e=>e.t),[],import.meta.url),"mail-question":()=>n(()=>import(`./vendor-icon-mail-question-mark-C4WxAxyl.js`).then(e=>e.t),[],import.meta.url),"mail-search":()=>n(()=>import(`./vendor-icon-mail-search-DxP5Wopv.js`).then(e=>e.t),[],import.meta.url),"mail-warning":()=>n(()=>import(`./vendor-icon-mail-warning-CHCD9km4.js`).then(e=>e.t),[],import.meta.url),"mail-x":()=>n(()=>import(`./vendor-icon-mail-x-DSkjnVZa.js`).then(e=>e.t),[],import.meta.url),mail:()=>n(()=>import(`./vendor-icon-mail-BfkRvgNr.js`).then(e=>e.n),[],import.meta.url),mailbox:()=>n(()=>import(`./vendor-icon-mailbox-B6yzO_OZ.js`).then(e=>e.t),[],import.meta.url),mails:()=>n(()=>import(`./vendor-icon-mails-BRN0437b.js`).then(e=>e.t),[],import.meta.url),"map-minus":()=>n(()=>import(`./vendor-icon-map-minus-DvAvrBjs.js`).then(e=>e.t),[],import.meta.url),"map-pin-check-inside":()=>n(()=>import(`./vendor-icon-map-pin-check-inside-CJjnxdKG.js`).then(e=>e.t),[],import.meta.url),"map-pin-check":()=>n(()=>import(`./vendor-icon-map-pin-check-BERi9wqo.js`).then(e=>e.t),[],import.meta.url),"map-pin-house":()=>n(()=>import(`./vendor-icon-map-pin-house-BBDhGEmB.js`).then(e=>e.t),[],import.meta.url),"map-pin-minus-inside":()=>n(()=>import(`./vendor-icon-map-pin-minus-inside-DBE1YqL5.js`).then(e=>e.t),[],import.meta.url),"map-pin-minus":()=>n(()=>import(`./vendor-icon-map-pin-minus-4OYiH960.js`).then(e=>e.t),[],import.meta.url),"map-pin-off":()=>n(()=>import(`./vendor-icon-map-pin-off-DBlUjvV1.js`).then(e=>e.t),[],import.meta.url),"map-pin-pen":()=>n(()=>import(`./vendor-icon-map-pin-pen-O36JvK-e.js`).then(e=>e.t),[],import.meta.url),"location-edit":()=>n(()=>import(`./vendor-icon-map-pin-pen-O36JvK-e.js`).then(e=>e.t),[],import.meta.url),"map-pin-plus-inside":()=>n(()=>import(`./vendor-icon-map-pin-plus-inside-kf9fjxJm.js`).then(e=>e.t),[],import.meta.url),"map-pin-plus":()=>n(()=>import(`./vendor-icon-map-pin-plus-CWFZg3Ed.js`).then(e=>e.t),[],import.meta.url),"map-pin-search":()=>n(()=>import(`./vendor-icon-map-pin-search--83yQJeg.js`).then(e=>e.t),[],import.meta.url),"map-pin-x-inside":()=>n(()=>import(`./vendor-icon-map-pin-x-inside-BB3DDOMq.js`).then(e=>e.t),[],import.meta.url),"map-pin-x":()=>n(()=>import(`./vendor-icon-map-pin-x-CkZVlC69.js`).then(e=>e.t),[],import.meta.url),"map-pin":()=>n(()=>import(`./vendor-icon-map-pin-BS-hHv53.js`).then(e=>e.n),[],import.meta.url),"map-pinned":()=>n(()=>import(`./vendor-icon-map-pinned-CP3vm-Yw.js`).then(e=>e.t),[],import.meta.url),"map-plus":()=>n(()=>import(`./vendor-icon-map-plus-DBeY9yuQ.js`).then(e=>e.t),[],import.meta.url),map:()=>n(()=>import(`./vendor-icon-map-DsFP3Vmp.js`).then(e=>e.n),[],import.meta.url),"mars-stroke":()=>n(()=>import(`./vendor-icon-mars-stroke-COWMSPpP.js`).then(e=>e.t),[],import.meta.url),mars:()=>n(()=>import(`./vendor-icon-mars-C10IAxoo.js`).then(e=>e.t),[],import.meta.url),martini:()=>n(()=>import(`./vendor-icon-martini-D7VUd2xE.js`).then(e=>e.t),[],import.meta.url),"maximize-2":()=>n(()=>import(`./vendor-icon-maximize-2-C215UtMO.js`).then(e=>e.n),[],import.meta.url),maximize:()=>n(()=>import(`./vendor-icon-maximize-CEefDpCl.js`).then(e=>e.t),[],import.meta.url),medal:()=>n(()=>import(`./vendor-icon-medal-ClX04Y3x.js`).then(e=>e.t),[],import.meta.url),"megaphone-off":()=>n(()=>import(`./vendor-icon-megaphone-off-USmSuubo.js`).then(e=>e.t),[],import.meta.url),megaphone:()=>n(()=>import(`./vendor-icon-megaphone-oiQp-agZ.js`).then(e=>e.t),[],import.meta.url),"memory-stick":()=>n(()=>import(`./vendor-icon-memory-stick-CsgFM5We.js`).then(e=>e.t),[],import.meta.url),menu:()=>n(()=>import(`./vendor-icon-menu-9YHQR0RT.js`).then(e=>e.n),[],import.meta.url),merge:()=>n(()=>import(`./vendor-icon-merge-ejBrerUl.js`).then(e=>e.t),[],import.meta.url),"message-circle-check":()=>n(()=>import(`./vendor-icon-message-circle-check-erox6gHH.js`).then(e=>e.t),[],import.meta.url),"message-circle-code":()=>n(()=>import(`./vendor-icon-message-circle-code-B0CR1qOC.js`).then(e=>e.t),[],import.meta.url),"message-circle-dashed-check":()=>n(()=>import(`./vendor-icon-message-circle-dashed-check-BL3fCmQx.js`).then(e=>e.t),[],import.meta.url),"message-circle-dashed":()=>n(()=>import(`./vendor-icon-message-circle-dashed-Bob3U6zP.js`).then(e=>e.t),[],import.meta.url),"message-circle-heart":()=>n(()=>import(`./vendor-icon-message-circle-heart-BhGPsm9C.js`).then(e=>e.t),[],import.meta.url),"message-circle-more":()=>n(()=>import(`./vendor-icon-message-circle-more-DlaIGWuN.js`).then(e=>e.t),[],import.meta.url),"message-circle-off":()=>n(()=>import(`./vendor-icon-message-circle-off-Dob1qahY.js`).then(e=>e.t),[],import.meta.url),"message-circle-plus":()=>n(()=>import(`./vendor-icon-message-circle-plus-eMEAonMo.js`).then(e=>e.t),[],import.meta.url),"message-circle-question-mark":()=>n(()=>import(`./vendor-icon-message-circle-question-mark-CiRDGKJD.js`).then(e=>e.t),[],import.meta.url),"message-circle-question":()=>n(()=>import(`./vendor-icon-message-circle-question-mark-CiRDGKJD.js`).then(e=>e.t),[],import.meta.url),"message-circle-reply":()=>n(()=>import(`./vendor-icon-message-circle-reply-Bj_AxRhy.js`).then(e=>e.t),[],import.meta.url),"message-circle-warning":()=>n(()=>import(`./vendor-icon-message-circle-warning-CMi9yd9U.js`).then(e=>e.t),[],import.meta.url),"message-circle-x":()=>n(()=>import(`./vendor-icon-message-circle-x-B8ncx1dv.js`).then(e=>e.t),[],import.meta.url),"message-circle":()=>n(()=>import(`./vendor-icon-message-circle-BqNTtTOp.js`).then(e=>e.n),[],import.meta.url),"message-square-check":()=>n(()=>import(`./vendor-icon-message-square-check-CZsCRLtV.js`).then(e=>e.t),[],import.meta.url),"message-square-code":()=>n(()=>import(`./vendor-icon-message-square-code-DRLlUspd.js`).then(e=>e.t),[],import.meta.url),"message-square-dashed":()=>n(()=>import(`./vendor-icon-message-square-dashed-BAmzfQ-W.js`).then(e=>e.t),[],import.meta.url),"message-square-diff":()=>n(()=>import(`./vendor-icon-message-square-diff-BJRb8qGq.js`).then(e=>e.t),[],import.meta.url),"message-square-dot":()=>n(()=>import(`./vendor-icon-message-square-dot-DshJICIf.js`).then(e=>e.t),[],import.meta.url),"message-square-heart":()=>n(()=>import(`./vendor-icon-message-square-heart-D_9Mh7mV.js`).then(e=>e.t),[],import.meta.url),"message-square-lock":()=>n(()=>import(`./vendor-icon-message-square-lock-dv5MT96X.js`).then(e=>e.t),[],import.meta.url),"message-square-more":()=>n(()=>import(`./vendor-icon-message-square-more-Dqer0SCN.js`).then(e=>e.t),[],import.meta.url),"message-square-off":()=>n(()=>import(`./vendor-icon-message-square-off-B1-8JEaT.js`).then(e=>e.t),[],import.meta.url),"message-square-plus":()=>n(()=>import(`./vendor-icon-message-square-plus-CNUxjc-o.js`).then(e=>e.t),[],import.meta.url),"message-square-quote":()=>n(()=>import(`./vendor-icon-message-square-quote-BCp_13jR.js`).then(e=>e.t),[],import.meta.url),"message-square-reply":()=>n(()=>import(`./vendor-icon-message-square-reply-n4FWYBMB.js`).then(e=>e.t),[],import.meta.url),"message-square-share":()=>n(()=>import(`./vendor-icon-message-square-share-BziALXeu.js`).then(e=>e.t),[],import.meta.url),"message-square-text":()=>n(()=>import(`./vendor-icon-message-square-text-DuNOT3Hq.js`).then(e=>e.n),[],import.meta.url),"message-square-warning":()=>n(()=>import(`./vendor-icon-message-square-warning-DfsNkQym.js`).then(e=>e.t),[],import.meta.url),"message-square-x":()=>n(()=>import(`./vendor-icon-message-square-x-381VLpV2.js`).then(e=>e.t),[],import.meta.url),"message-square":()=>n(()=>import(`./vendor-icon-message-square-BObk9Jes.js`).then(e=>e.n),[],import.meta.url),"messages-square":()=>n(()=>import(`./vendor-icon-messages-square-C3r_dZCQ.js`).then(e=>e.n),[],import.meta.url),metronome:()=>n(()=>import(`./vendor-icon-metronome-oNrOClGZ.js`).then(e=>e.t),[],import.meta.url),"mic-audio-lines":()=>n(()=>import(`./vendor-icon-mic-audio-lines-Cst29H8p.js`).then(e=>e.t),[],import.meta.url),"mic-off":()=>n(()=>import(`./vendor-icon-mic-off-COWrMJ7A.js`).then(e=>e.t),[],import.meta.url),"mic-signal":()=>n(()=>import(`./vendor-icon-mic-signal-DKapzQ_J.js`).then(e=>e.t),[],import.meta.url),podcast:()=>n(()=>import(`./vendor-icon-mic-signal-DKapzQ_J.js`).then(e=>e.t),[],import.meta.url),"mic-vocal":()=>n(()=>import(`./vendor-icon-mic-vocal-DanzUYPk.js`).then(e=>e.t),[],import.meta.url),"mic-2":()=>n(()=>import(`./vendor-icon-mic-vocal-DanzUYPk.js`).then(e=>e.t),[],import.meta.url),mic:()=>n(()=>import(`./vendor-icon-mic-Bd34LzoW.js`).then(e=>e.t),[],import.meta.url),microchip:()=>n(()=>import(`./vendor-icon-microchip-DE4NGt1c.js`).then(e=>e.t),[],import.meta.url),microscope:()=>n(()=>import(`./vendor-icon-microscope-BT8bCBl3.js`).then(e=>e.t),[],import.meta.url),microwave:()=>n(()=>import(`./vendor-icon-microwave-yjSq4Dav.js`).then(e=>e.t),[],import.meta.url),"midi-port":()=>n(()=>import(`./vendor-icon-midi-port-ClbV1kfN.js`).then(e=>e.t),[],import.meta.url),milestone:()=>n(()=>import(`./vendor-icon-milestone-BH8N-3VN.js`).then(e=>e.t),[],import.meta.url),"milk-off":()=>n(()=>import(`./vendor-icon-milk-off-CQEg28-m.js`).then(e=>e.t),[],import.meta.url),milk:()=>n(()=>import(`./vendor-icon-milk-CDxFz02f.js`).then(e=>e.t),[],import.meta.url),"minimize-2":()=>n(()=>import(`./vendor-icon-minimize-2-CTEy4oVG.js`).then(e=>e.n),[],import.meta.url),minimize:()=>n(()=>import(`./vendor-icon-minimize-CIL1Ve1V.js`).then(e=>e.t),[],import.meta.url),minus:()=>n(()=>import(`./vendor-icon-minus-CMTDFpmk.js`).then(e=>e.n),[],import.meta.url),"mirror-rectangular":()=>n(()=>import(`./vendor-icon-mirror-rectangular-RynSDFaw.js`).then(e=>e.t),[],import.meta.url),"mirror-round":()=>n(()=>import(`./vendor-icon-mirror-round-BTL1jQZH.js`).then(e=>e.t),[],import.meta.url),"monitor-check":()=>n(()=>import(`./vendor-icon-monitor-check-De3qLqYG.js`).then(e=>e.t),[],import.meta.url),"monitor-cloud":()=>n(()=>import(`./vendor-icon-monitor-cloud-5pwrk1XM.js`).then(e=>e.t),[],import.meta.url),"monitor-cog":()=>n(()=>import(`./vendor-icon-monitor-cog-Mblozju8.js`).then(e=>e.t),[],import.meta.url),"monitor-dot":()=>n(()=>import(`./vendor-icon-monitor-dot-B_BuJJ1x.js`).then(e=>e.t),[],import.meta.url),"monitor-down":()=>n(()=>import(`./vendor-icon-monitor-down-Ds1YG152.js`).then(e=>e.t),[],import.meta.url),"monitor-off":()=>n(()=>import(`./vendor-icon-monitor-off-DEyTdFq3.js`).then(e=>e.t),[],import.meta.url),"monitor-pause":()=>n(()=>import(`./vendor-icon-monitor-pause-BHr7zMB8.js`).then(e=>e.t),[],import.meta.url),"monitor-play":()=>n(()=>import(`./vendor-icon-monitor-play-o0DEetpc.js`).then(e=>e.t),[],import.meta.url),"monitor-smartphone":()=>n(()=>import(`./vendor-icon-monitor-smartphone-CM4rljlr.js`).then(e=>e.n),[],import.meta.url),"monitor-speaker":()=>n(()=>import(`./vendor-icon-monitor-speaker-VVyJMxV_.js`).then(e=>e.t),[],import.meta.url),"monitor-stop":()=>n(()=>import(`./vendor-icon-monitor-stop-pJna2meB.js`).then(e=>e.t),[],import.meta.url),"monitor-up":()=>n(()=>import(`./vendor-icon-monitor-up-CoUXyQQy.js`).then(e=>e.t),[],import.meta.url),"monitor-x":()=>n(()=>import(`./vendor-icon-monitor-x-C-k783Es.js`).then(e=>e.t),[],import.meta.url),monitor:()=>n(()=>import(`./vendor-icon-monitor-C4Tawzob.js`).then(e=>e.n),[],import.meta.url),"moon-star":()=>n(()=>import(`./vendor-icon-moon-star-BsBEOlxB.js`).then(e=>e.t),[],import.meta.url),moon:()=>n(()=>import(`./vendor-icon-moon-C1ZitaV0.js`).then(e=>e.n),[],import.meta.url),"mop-sparkles":()=>n(()=>import(`./vendor-icon-mop-sparkles-Cxz-D60f.js`).then(e=>e.t),[],import.meta.url),mop:()=>n(()=>import(`./vendor-icon-mop-COJU9v7W.js`).then(e=>e.t),[],import.meta.url),mosque:()=>n(()=>import(`./vendor-icon-mosque-CguZt-3K.js`).then(e=>e.t),[],import.meta.url),motorbike:()=>n(()=>import(`./vendor-icon-motorbike-B0sRXhdi.js`).then(e=>e.t),[],import.meta.url),"mountain-snow":()=>n(()=>import(`./vendor-icon-mountain-snow-C-KsiP_h.js`).then(e=>e.t),[],import.meta.url),mountain:()=>n(()=>import(`./vendor-icon-mountain-B3HDRSH_.js`).then(e=>e.t),[],import.meta.url),"mouse-left":()=>n(()=>import(`./vendor-icon-mouse-left-DMOn1Ekl.js`).then(e=>e.t),[],import.meta.url),"mouse-off":()=>n(()=>import(`./vendor-icon-mouse-off-DfNTUVxF.js`).then(e=>e.t),[],import.meta.url),"mouse-pointer-2-off":()=>n(()=>import(`./vendor-icon-mouse-pointer-2-off-adB4DTJT.js`).then(e=>e.t),[],import.meta.url),"mouse-pointer-2":()=>n(()=>import(`./vendor-icon-mouse-pointer-2-BK7MBFPs.js`).then(e=>e.n),[],import.meta.url),"mouse-pointer-ban":()=>n(()=>import(`./vendor-icon-mouse-pointer-ban-ekV6CXG5.js`).then(e=>e.t),[],import.meta.url),"mouse-pointer-click":()=>n(()=>import(`./vendor-icon-mouse-pointer-click-WdN96Sza.js`).then(e=>e.n),[],import.meta.url),"mouse-pointer":()=>n(()=>import(`./vendor-icon-mouse-pointer-gxVJZX9_.js`).then(e=>e.t),[],import.meta.url),"mouse-right":()=>n(()=>import(`./vendor-icon-mouse-right-CRszdOou.js`).then(e=>e.t),[],import.meta.url),mouse:()=>n(()=>import(`./vendor-icon-mouse-BgKVOKoP.js`).then(e=>e.t),[],import.meta.url),"move-3d":()=>n(()=>import(`./vendor-icon-move-3d-BwykkpTp.js`).then(e=>e.t),[],import.meta.url),"move-3-d":()=>n(()=>import(`./vendor-icon-move-3d-BwykkpTp.js`).then(e=>e.t),[],import.meta.url),"move-diagonal-2":()=>n(()=>import(`./vendor-icon-move-diagonal-2-BBZDizVs.js`).then(e=>e.t),[],import.meta.url),"move-diagonal":()=>n(()=>import(`./vendor-icon-move-diagonal-Dte3vBxJ.js`).then(e=>e.t),[],import.meta.url),"move-down-left":()=>n(()=>import(`./vendor-icon-move-down-left-Cd-yawEn.js`).then(e=>e.t),[],import.meta.url),"move-down-right":()=>n(()=>import(`./vendor-icon-move-down-right-my2-83hW.js`).then(e=>e.t),[],import.meta.url),"move-down":()=>n(()=>import(`./vendor-icon-move-down-0l6ecs6x.js`).then(e=>e.t),[],import.meta.url),"move-horizontal":()=>n(()=>import(`./vendor-icon-move-horizontal-CzZSYS0m.js`).then(e=>e.t),[],import.meta.url),"move-left":()=>n(()=>import(`./vendor-icon-move-left-CT7Xxi9h.js`).then(e=>e.t),[],import.meta.url),"move-right":()=>n(()=>import(`./vendor-icon-move-right-cG-Vxv-d.js`).then(e=>e.t),[],import.meta.url),"move-up-left":()=>n(()=>import(`./vendor-icon-move-up-left-BFQAn-uo.js`).then(e=>e.t),[],import.meta.url),"move-up-right":()=>n(()=>import(`./vendor-icon-move-up-right-Cfjdn8SQ.js`).then(e=>e.t),[],import.meta.url),"move-up":()=>n(()=>import(`./vendor-icon-move-up-DiEUzlJd.js`).then(e=>e.t),[],import.meta.url),"move-vertical":()=>n(()=>import(`./vendor-icon-move-vertical-MUjaeYJw.js`).then(e=>e.t),[],import.meta.url),move:()=>n(()=>import(`./vendor-icon-move-yrUjjzQ_.js`).then(e=>e.t),[],import.meta.url),"music-2":()=>n(()=>import(`./vendor-icon-music-2-sPSfBQ8c.js`).then(e=>e.t),[],import.meta.url),"music-3":()=>n(()=>import(`./vendor-icon-music-3-BRIkDtBa.js`).then(e=>e.t),[],import.meta.url),"music-4":()=>n(()=>import(`./vendor-icon-music-4-BQA5g9ce.js`).then(e=>e.t),[],import.meta.url),music:()=>n(()=>import(`./vendor-icon-music-BgjL4llt.js`).then(e=>e.n),[],import.meta.url),"navigation-2-off":()=>n(()=>import(`./vendor-icon-navigation-2-off-7Ue6UAj7.js`).then(e=>e.t),[],import.meta.url),"navigation-2":()=>n(()=>import(`./vendor-icon-navigation-2-D_F_cIIV.js`).then(e=>e.t),[],import.meta.url),"navigation-off":()=>n(()=>import(`./vendor-icon-navigation-off-DF1qSCvQ.js`).then(e=>e.t),[],import.meta.url),navigation:()=>n(()=>import(`./vendor-icon-navigation-phWZOG8x.js`).then(e=>e.t),[],import.meta.url),network:()=>n(()=>import(`./vendor-icon-network-6ADGC5P5.js`).then(e=>e.n),[],import.meta.url),newspaper:()=>n(()=>import(`./vendor-icon-newspaper-COkxr4VH.js`).then(e=>e.t),[],import.meta.url),nfc:()=>n(()=>import(`./vendor-icon-nfc-BngL30fu.js`).then(e=>e.t),[],import.meta.url),"non-binary":()=>n(()=>import(`./vendor-icon-non-binary-S6NgMoCx.js`).then(e=>e.t),[],import.meta.url),"notebook-pen":()=>n(()=>import(`./vendor-icon-notebook-pen-Ciwk64pp.js`).then(e=>e.t),[],import.meta.url),"notebook-tabs":()=>n(()=>import(`./vendor-icon-notebook-tabs-BtU2Dlc5.js`).then(e=>e.t),[],import.meta.url),"notebook-text":()=>n(()=>import(`./vendor-icon-notebook-text-K1ZxwSFI.js`).then(e=>e.t),[],import.meta.url),notebook:()=>n(()=>import(`./vendor-icon-notebook-CpvLnkP6.js`).then(e=>e.t),[],import.meta.url),"notepad-text-dashed":()=>n(()=>import(`./vendor-icon-notepad-text-dashed-D14lJLlt.js`).then(e=>e.t),[],import.meta.url),"notepad-text":()=>n(()=>import(`./vendor-icon-notepad-text-B9eYnEPb.js`).then(e=>e.t),[],import.meta.url),"nut-off":()=>n(()=>import(`./vendor-icon-nut-off-BJR8FgPu.js`).then(e=>e.t),[],import.meta.url),nut:()=>n(()=>import(`./vendor-icon-nut-BQvsaOCc.js`).then(e=>e.t),[],import.meta.url),"octagon-alert":()=>n(()=>import(`./vendor-icon-octagon-alert-BR7dr-I_.js`).then(e=>e.t),[],import.meta.url),"alert-octagon":()=>n(()=>import(`./vendor-icon-octagon-alert-BR7dr-I_.js`).then(e=>e.t),[],import.meta.url),"octagon-minus":()=>n(()=>import(`./vendor-icon-octagon-minus-CFlRviUN.js`).then(e=>e.t),[],import.meta.url),"octagon-pause":()=>n(()=>import(`./vendor-icon-octagon-pause-bzkHaxqS.js`).then(e=>e.t),[],import.meta.url),"pause-octagon":()=>n(()=>import(`./vendor-icon-octagon-pause-bzkHaxqS.js`).then(e=>e.t),[],import.meta.url),"octagon-x":()=>n(()=>import(`./vendor-icon-octagon-x-DJaJymPi.js`).then(e=>e.n),[],import.meta.url),"x-octagon":()=>n(()=>import(`./vendor-icon-octagon-x-DJaJymPi.js`).then(e=>e.n),[],import.meta.url),octagon:()=>n(()=>import(`./vendor-icon-octagon-CSUTnmT3.js`).then(e=>e.t),[],import.meta.url),omega:()=>n(()=>import(`./vendor-icon-omega-CFH269oa.js`).then(e=>e.t),[],import.meta.url),option:()=>n(()=>import(`./vendor-icon-option-D-caK764.js`).then(e=>e.t),[],import.meta.url),orbit:()=>n(()=>import(`./vendor-icon-orbit-GWGHiydC.js`).then(e=>e.t),[],import.meta.url),origami:()=>n(()=>import(`./vendor-icon-origami-BJqzoQv0.js`).then(e=>e.t),[],import.meta.url),"package-2":()=>n(()=>import(`./vendor-icon-package-2-DpCfv9_e.js`).then(e=>e.t),[],import.meta.url),"package-check":()=>n(()=>import(`./vendor-icon-package-check-ContVzzn.js`).then(e=>e.t),[],import.meta.url),"package-minus":()=>n(()=>import(`./vendor-icon-package-minus-BszigX2e.js`).then(e=>e.t),[],import.meta.url),"package-open":()=>n(()=>import(`./vendor-icon-package-open-D7O9qUER.js`).then(e=>e.n),[],import.meta.url),"package-plus":()=>n(()=>import(`./vendor-icon-package-plus-Go44QkuY.js`).then(e=>e.t),[],import.meta.url),"package-search":()=>n(()=>import(`./vendor-icon-package-search-DfthZm42.js`).then(e=>e.t),[],import.meta.url),"package-x":()=>n(()=>import(`./vendor-icon-package-x-BeUygarX.js`).then(e=>e.t),[],import.meta.url),package:()=>n(()=>import(`./vendor-icon-package-B6zAlWd3.js`).then(e=>e.n),[],import.meta.url),"paint-bucket":()=>n(()=>import(`./vendor-icon-paint-bucket-YH0XClSL.js`).then(e=>e.t),[],import.meta.url),"paint-roller":()=>n(()=>import(`./vendor-icon-paint-roller-nscLLt8J.js`).then(e=>e.t),[],import.meta.url),"paintbrush-vertical":()=>n(()=>import(`./vendor-icon-paintbrush-vertical-DOMYVEKf.js`).then(e=>e.t),[],import.meta.url),"paintbrush-2":()=>n(()=>import(`./vendor-icon-paintbrush-vertical-DOMYVEKf.js`).then(e=>e.t),[],import.meta.url),paintbrush:()=>n(()=>import(`./vendor-icon-paintbrush-BDpkFJjT.js`).then(e=>e.n),[],import.meta.url),palette:()=>n(()=>import(`./vendor-icon-palette-CazWMHVl.js`).then(e=>e.n),[],import.meta.url),panda:()=>n(()=>import(`./vendor-icon-panda-BhneLPC3.js`).then(e=>e.t),[],import.meta.url),"panel-bottom-close":()=>n(()=>import(`./vendor-icon-panel-bottom-close-C1VOVP5k.js`).then(e=>e.t),[],import.meta.url),"panel-bottom-dashed":()=>n(()=>import(`./vendor-icon-panel-bottom-dashed-CWZ3dVuN.js`).then(e=>e.t),[],import.meta.url),"panel-bottom-inactive":()=>n(()=>import(`./vendor-icon-panel-bottom-dashed-CWZ3dVuN.js`).then(e=>e.t),[],import.meta.url),"panel-bottom-open":()=>n(()=>import(`./vendor-icon-panel-bottom-open-BFVN_fKe.js`).then(e=>e.t),[],import.meta.url),"panel-bottom":()=>n(()=>import(`./vendor-icon-panel-bottom-DmyC876M.js`).then(e=>e.n),[],import.meta.url),"panel-left-close":()=>n(()=>import(`./vendor-icon-panel-left-close-CrofkR7D.js`).then(e=>e.n),[],import.meta.url),"sidebar-close":()=>n(()=>import(`./vendor-icon-panel-left-close-CrofkR7D.js`).then(e=>e.n),[],import.meta.url),"panel-left-dashed":()=>n(()=>import(`./vendor-icon-panel-left-dashed-DQ9eD0dm.js`).then(e=>e.t),[],import.meta.url),"panel-left-inactive":()=>n(()=>import(`./vendor-icon-panel-left-dashed-DQ9eD0dm.js`).then(e=>e.t),[],import.meta.url),"panel-left-open":()=>n(()=>import(`./vendor-icon-panel-left-open-DXRZV0DR.js`).then(e=>e.n),[],import.meta.url),"sidebar-open":()=>n(()=>import(`./vendor-icon-panel-left-open-DXRZV0DR.js`).then(e=>e.n),[],import.meta.url),"panel-left-right-dashed":()=>n(()=>import(`./vendor-icon-panel-left-right-dashed-OQ1cxyd-.js`).then(e=>e.t),[],import.meta.url),"panel-left":()=>n(()=>import(`./vendor-icon-panel-left-Cml87N0K.js`).then(e=>e.n),[],import.meta.url),sidebar:()=>n(()=>import(`./vendor-icon-panel-left-Cml87N0K.js`).then(e=>e.n),[],import.meta.url),"panel-right-close":()=>n(()=>import(`./vendor-icon-panel-right-close-B1IgPiA5.js`).then(e=>e.n),[],import.meta.url),"panel-right-dashed":()=>n(()=>import(`./vendor-icon-panel-right-dashed-PTsSnKwF.js`).then(e=>e.t),[],import.meta.url),"panel-right-inactive":()=>n(()=>import(`./vendor-icon-panel-right-dashed-PTsSnKwF.js`).then(e=>e.t),[],import.meta.url),"panel-right-open":()=>n(()=>import(`./vendor-icon-panel-right-open-DRcsA0VE.js`).then(e=>e.n),[],import.meta.url),"panel-right":()=>n(()=>import(`./vendor-icon-panel-right-CzpSEi8j.js`).then(e=>e.n),[],import.meta.url),"panel-top-bottom-dashed":()=>n(()=>import(`./vendor-icon-panel-top-bottom-dashed-DcVTjVDW.js`).then(e=>e.t),[],import.meta.url),"panel-top-close":()=>n(()=>import(`./vendor-icon-panel-top-close-DS_JdG4Q.js`).then(e=>e.t),[],import.meta.url),"panel-top-dashed":()=>n(()=>import(`./vendor-icon-panel-top-dashed-D4KSg7ea.js`).then(e=>e.t),[],import.meta.url),"panel-top-inactive":()=>n(()=>import(`./vendor-icon-panel-top-dashed-D4KSg7ea.js`).then(e=>e.t),[],import.meta.url),"panel-top-open":()=>n(()=>import(`./vendor-icon-panel-top-open-CLC3_5vv.js`).then(e=>e.t),[],import.meta.url),"panel-top":()=>n(()=>import(`./vendor-icon-panel-top-BRy5u3nR.js`).then(e=>e.n),[],import.meta.url),"panels-left-bottom":()=>n(()=>import(`./vendor-icon-panels-left-bottom-CJa4lUVA.js`).then(e=>e.t),[],import.meta.url),"panels-right-bottom":()=>n(()=>import(`./vendor-icon-panels-right-bottom-qjYETuSN.js`).then(e=>e.t),[],import.meta.url),"panels-top-left":()=>n(()=>import(`./vendor-icon-panels-top-left-BR5oKE-H.js`).then(e=>e.n),[],import.meta.url),layout:()=>n(()=>import(`./vendor-icon-panels-top-left-BR5oKE-H.js`).then(e=>e.n),[],import.meta.url),"paper-bag":()=>n(()=>import(`./vendor-icon-paper-bag-B5UkJNJa.js`).then(e=>e.t),[],import.meta.url),paperclip:()=>n(()=>import(`./vendor-icon-paperclip-zxZDBuvr.js`).then(e=>e.n),[],import.meta.url),parasol:()=>n(()=>import(`./vendor-icon-parasol-Ch7k2R20.js`).then(e=>e.t),[],import.meta.url),parentheses:()=>n(()=>import(`./vendor-icon-parentheses-KLpncni2.js`).then(e=>e.t),[],import.meta.url),"parking-meter":()=>n(()=>import(`./vendor-icon-parking-meter-P20w1C4k.js`).then(e=>e.t),[],import.meta.url),"party-popper":()=>n(()=>import(`./vendor-icon-party-popper-CnWvsouG.js`).then(e=>e.t),[],import.meta.url),pause:()=>n(()=>import(`./vendor-icon-pause-BY0iVW1w.js`).then(e=>e.t),[],import.meta.url),"paw-print":()=>n(()=>import(`./vendor-icon-paw-print-CjzqkWXB.js`).then(e=>e.t),[],import.meta.url),"pc-case":()=>n(()=>import(`./vendor-icon-pc-case-BdOpvo-D.js`).then(e=>e.t),[],import.meta.url),"pen-line":()=>n(()=>import(`./vendor-icon-pen-line-DkmKO8hB.js`).then(e=>e.n),[],import.meta.url),"edit-3":()=>n(()=>import(`./vendor-icon-pen-line-DkmKO8hB.js`).then(e=>e.n),[],import.meta.url),"pen-off":()=>n(()=>import(`./vendor-icon-pen-off-SxLrEIAV.js`).then(e=>e.t),[],import.meta.url),"pen-tool":()=>n(()=>import(`./vendor-icon-pen-tool-DHbojDwg.js`).then(e=>e.t),[],import.meta.url),pen:()=>n(()=>import(`./vendor-icon-pen-BlwC8DBT.js`).then(e=>e.t),[],import.meta.url),"edit-2":()=>n(()=>import(`./vendor-icon-pen-BlwC8DBT.js`).then(e=>e.t),[],import.meta.url),"pencil-line":()=>n(()=>import(`./vendor-icon-pencil-line-cpOuCQWz.js`).then(e=>e.t),[],import.meta.url),"pencil-off":()=>n(()=>import(`./vendor-icon-pencil-off-3Sxylx1I.js`).then(e=>e.t),[],import.meta.url),"pencil-ruler":()=>n(()=>import(`./vendor-icon-pencil-ruler-B4MAlAds.js`).then(e=>e.t),[],import.meta.url),"pencil-sparkles":()=>n(()=>import(`./vendor-icon-pencil-sparkles-BocAg6XO.js`).then(e=>e.t),[],import.meta.url),pencil:()=>n(()=>import(`./vendor-icon-pencil-CMubUBjW.js`).then(e=>e.n),[],import.meta.url),pentagon:()=>n(()=>import(`./vendor-icon-pentagon-Br0HPimq.js`).then(e=>e.t),[],import.meta.url),percent:()=>n(()=>import(`./vendor-icon-percent-aqm_PHEM.js`).then(e=>e.n),[],import.meta.url),"person-standing":()=>n(()=>import(`./vendor-icon-person-standing-D9UBkeYu.js`).then(e=>e.t),[],import.meta.url),phi:()=>n(()=>import(`./vendor-icon-phi-DKlPVoBN.js`).then(e=>e.t),[],import.meta.url),"philippine-peso":()=>n(()=>import(`./vendor-icon-philippine-peso-CBOsoxAX.js`).then(e=>e.t),[],import.meta.url),"phone-call":()=>n(()=>import(`./vendor-icon-phone-call-DMu0APL2.js`).then(e=>e.t),[],import.meta.url),"phone-forwarded":()=>n(()=>import(`./vendor-icon-phone-forwarded-DmxZvdUr.js`).then(e=>e.t),[],import.meta.url),"phone-incoming":()=>n(()=>import(`./vendor-icon-phone-incoming-DUom682F.js`).then(e=>e.t),[],import.meta.url),"phone-missed":()=>n(()=>import(`./vendor-icon-phone-missed-B0MqQXw4.js`).then(e=>e.t),[],import.meta.url),"phone-off":()=>n(()=>import(`./vendor-icon-phone-off-ByVnP5B6.js`).then(e=>e.t),[],import.meta.url),"phone-outgoing":()=>n(()=>import(`./vendor-icon-phone-outgoing-swCcAox0.js`).then(e=>e.t),[],import.meta.url),phone:()=>n(()=>import(`./vendor-icon-phone-H1S8HSi1.js`).then(e=>e.n),[],import.meta.url),pi:()=>n(()=>import(`./vendor-icon-pi-CQGC8NW3.js`).then(e=>e.t),[],import.meta.url),piano:()=>n(()=>import(`./vendor-icon-piano-ISwKhVEs.js`).then(e=>e.t),[],import.meta.url),pickaxe:()=>n(()=>import(`./vendor-icon-pickaxe-CMdWCvhM.js`).then(e=>e.t),[],import.meta.url),"picture-in-picture-2":()=>n(()=>import(`./vendor-icon-picture-in-picture-2-DmXM5Gri.js`).then(e=>e.t),[],import.meta.url),"picture-in-picture":()=>n(()=>import(`./vendor-icon-picture-in-picture-Z0T_MAyK.js`).then(e=>e.t),[],import.meta.url),"piggy-bank":()=>n(()=>import(`./vendor-icon-piggy-bank-wUYb7cdi.js`).then(e=>e.t),[],import.meta.url),"pilcrow-left":()=>n(()=>import(`./vendor-icon-pilcrow-left-C8Rytg2f.js`).then(e=>e.t),[],import.meta.url),"pilcrow-right":()=>n(()=>import(`./vendor-icon-pilcrow-right-C5hLO8DT.js`).then(e=>e.t),[],import.meta.url),pilcrow:()=>n(()=>import(`./vendor-icon-pilcrow-CZMSgsZW.js`).then(e=>e.t),[],import.meta.url),"pill-bottle":()=>n(()=>import(`./vendor-icon-pill-bottle-Z02L_wB8.js`).then(e=>e.t),[],import.meta.url),pill:()=>n(()=>import(`./vendor-icon-pill-DrptoSz8.js`).then(e=>e.t),[],import.meta.url),"pin-off":()=>n(()=>import(`./vendor-icon-pin-off-C5gX5GZ0.js`).then(e=>e.n),[],import.meta.url),pin:()=>n(()=>import(`./vendor-icon-pin-BWwVcO2t.js`).then(e=>e.n),[],import.meta.url),pipette:()=>n(()=>import(`./vendor-icon-pipette-TKwCWet-.js`).then(e=>e.t),[],import.meta.url),pizza:()=>n(()=>import(`./vendor-icon-pizza-CkLZXwOP.js`).then(e=>e.t),[],import.meta.url),"plane-landing":()=>n(()=>import(`./vendor-icon-plane-landing-BXNqxdI8.js`).then(e=>e.t),[],import.meta.url),"plane-takeoff":()=>n(()=>import(`./vendor-icon-plane-takeoff-CH-lnGzb.js`).then(e=>e.t),[],import.meta.url),plane:()=>n(()=>import(`./vendor-icon-plane-DkLXOEYm.js`).then(e=>e.t),[],import.meta.url),"play-off":()=>n(()=>import(`./vendor-icon-play-off-JQ-eHWvB.js`).then(e=>e.t),[],import.meta.url),play:()=>n(()=>import(`./vendor-icon-play-BfFoh-7G.js`).then(e=>e.n),[],import.meta.url),"playing-card":()=>n(()=>import(`./vendor-icon-playing-card-BM7vSq9u.js`).then(e=>e.t),[],import.meta.url),"playing-cards-fan":()=>n(()=>import(`./vendor-icon-playing-cards-fan-htSYRlKY.js`).then(e=>e.t),[],import.meta.url),"playing-cards":()=>n(()=>import(`./vendor-icon-playing-cards-adAWOMqF.js`).then(e=>e.t),[],import.meta.url),"plug-2":()=>n(()=>import(`./vendor-icon-plug-2-DsxLQckc.js`).then(e=>e.t),[],import.meta.url),"plug-zap":()=>n(()=>import(`./vendor-icon-plug-zap-D_pioVHV.js`).then(e=>e.t),[],import.meta.url),"plug-zap-2":()=>n(()=>import(`./vendor-icon-plug-zap-D_pioVHV.js`).then(e=>e.t),[],import.meta.url),plug:()=>n(()=>import(`./vendor-icon-plug-CL1O_4J3.js`).then(e=>e.n),[],import.meta.url),plus:()=>n(()=>import(`./vendor-icon-plus-BlfcDDsa.js`).then(e=>e.n),[],import.meta.url),"pocket-knife":()=>n(()=>import(`./vendor-icon-pocket-knife-CK2R2YP7.js`).then(e=>e.t),[],import.meta.url),podium:()=>n(()=>import(`./vendor-icon-podium-DVAK0s14.js`).then(e=>e.t),[],import.meta.url),"pointer-off":()=>n(()=>import(`./vendor-icon-pointer-off-CxhPhAtC.js`).then(e=>e.t),[],import.meta.url),pointer:()=>n(()=>import(`./vendor-icon-pointer-BH8uufy7.js`).then(e=>e.t),[],import.meta.url),popcorn:()=>n(()=>import(`./vendor-icon-popcorn-CcF5nHvF.js`).then(e=>e.t),[],import.meta.url),popsicle:()=>n(()=>import(`./vendor-icon-popsicle-D9qDEYYC.js`).then(e=>e.t),[],import.meta.url),"pound-sterling":()=>n(()=>import(`./vendor-icon-pound-sterling-AmEtL9FO.js`).then(e=>e.t),[],import.meta.url),"power-off":()=>n(()=>import(`./vendor-icon-power-off-4BJhC7rc.js`).then(e=>e.n),[],import.meta.url),power:()=>n(()=>import(`./vendor-icon-power-CySrWbJV.js`).then(e=>e.n),[],import.meta.url),presentation:()=>n(()=>import(`./vendor-icon-presentation-DHS80egl.js`).then(e=>e.t),[],import.meta.url),"printer-check":()=>n(()=>import(`./vendor-icon-printer-check-DwuA6ed8.js`).then(e=>e.t),[],import.meta.url),"printer-x":()=>n(()=>import(`./vendor-icon-printer-x-JRCJIjVu.js`).then(e=>e.t),[],import.meta.url),printer:()=>n(()=>import(`./vendor-icon-printer-VcYhF59P.js`).then(e=>e.n),[],import.meta.url),projector:()=>n(()=>import(`./vendor-icon-projector-Dt3VfiOX.js`).then(e=>e.t),[],import.meta.url),proportions:()=>n(()=>import(`./vendor-icon-proportions-CR48_r34.js`).then(e=>e.t),[],import.meta.url),puzzle:()=>n(()=>import(`./vendor-icon-puzzle-D0_dPnVP.js`).then(e=>e.n),[],import.meta.url),pyramid:()=>n(()=>import(`./vendor-icon-pyramid-zyFgYTIf.js`).then(e=>e.t),[],import.meta.url),"qr-code":()=>n(()=>import(`./vendor-icon-qr-code-mzDrPZIo.js`).then(e=>e.n),[],import.meta.url),quote:()=>n(()=>import(`./vendor-icon-quote-BBQ8HU8N.js`).then(e=>e.t),[],import.meta.url),rabbit:()=>n(()=>import(`./vendor-icon-rabbit-Bh2729Jl.js`).then(e=>e.t),[],import.meta.url),radar:()=>n(()=>import(`./vendor-icon-radar-DOQ1jDaY.js`).then(e=>e.t),[],import.meta.url),radiation:()=>n(()=>import(`./vendor-icon-radiation-BjxMvFZ7.js`).then(e=>e.t),[],import.meta.url),radical:()=>n(()=>import(`./vendor-icon-radical-CnRQuN4I.js`).then(e=>e.t),[],import.meta.url),"radio-off":()=>n(()=>import(`./vendor-icon-radio-off-DKv9TwzZ.js`).then(e=>e.t),[],import.meta.url),"radio-receiver":()=>n(()=>import(`./vendor-icon-radio-receiver-Brtz1zUM.js`).then(e=>e.t),[],import.meta.url),"radio-tower":()=>n(()=>import(`./vendor-icon-radio-tower-Dn5Rny_-.js`).then(e=>e.t),[],import.meta.url),radio:()=>n(()=>import(`./vendor-icon-radio-RU9TWcHh.js`).then(e=>e.t),[],import.meta.url),radius:()=>n(()=>import(`./vendor-icon-radius-Be1bfaqx.js`).then(e=>e.t),[],import.meta.url),rainbow:()=>n(()=>import(`./vendor-icon-rainbow-BXep1DLc.js`).then(e=>e.t),[],import.meta.url),rat:()=>n(()=>import(`./vendor-icon-rat-CFkP0VkD.js`).then(e=>e.t),[],import.meta.url),ratio:()=>n(()=>import(`./vendor-icon-ratio-B9No49cS.js`).then(e=>e.t),[],import.meta.url),"receipt-cent":()=>n(()=>import(`./vendor-icon-receipt-cent-B_QvWjYu.js`).then(e=>e.t),[],import.meta.url),"receipt-euro":()=>n(()=>import(`./vendor-icon-receipt-euro-BdOOS4br.js`).then(e=>e.t),[],import.meta.url),"receipt-indian-rupee":()=>n(()=>import(`./vendor-icon-receipt-indian-rupee-DhCxb32i.js`).then(e=>e.t),[],import.meta.url),"receipt-japanese-yen":()=>n(()=>import(`./vendor-icon-receipt-japanese-yen-BMeGFCkQ.js`).then(e=>e.t),[],import.meta.url),"receipt-pound-sterling":()=>n(()=>import(`./vendor-icon-receipt-pound-sterling-Cewfebkb.js`).then(e=>e.t),[],import.meta.url),"receipt-russian-ruble":()=>n(()=>import(`./vendor-icon-receipt-russian-ruble-nDzsu6oS.js`).then(e=>e.t),[],import.meta.url),"receipt-swiss-franc":()=>n(()=>import(`./vendor-icon-receipt-swiss-franc-BCT83Ukf.js`).then(e=>e.t),[],import.meta.url),"receipt-text":()=>n(()=>import(`./vendor-icon-receipt-text-B0_uzTMk.js`).then(e=>e.t),[],import.meta.url),"receipt-turkish-lira":()=>n(()=>import(`./vendor-icon-receipt-turkish-lira-CZnMI0Br.js`).then(e=>e.t),[],import.meta.url),receipt:()=>n(()=>import(`./vendor-icon-receipt-BVMBeeU2.js`).then(e=>e.t),[],import.meta.url),"rectangle-circle":()=>n(()=>import(`./vendor-icon-rectangle-circle-BN1o6yw9.js`).then(e=>e.t),[],import.meta.url),"rectangle-ellipsis":()=>n(()=>import(`./vendor-icon-rectangle-ellipsis-CAvWLjnI.js`).then(e=>e.n),[],import.meta.url),"form-input":()=>n(()=>import(`./vendor-icon-rectangle-ellipsis-CAvWLjnI.js`).then(e=>e.n),[],import.meta.url),"rectangle-goggles":()=>n(()=>import(`./vendor-icon-rectangle-goggles-DWT9om1d.js`).then(e=>e.t),[],import.meta.url),"rectangle-horizontal":()=>n(()=>import(`./vendor-icon-rectangle-horizontal-BcilcVto.js`).then(e=>e.t),[],import.meta.url),"rectangle-vertical":()=>n(()=>import(`./vendor-icon-rectangle-vertical-CMZK60nx.js`).then(e=>e.t),[],import.meta.url),recycle:()=>n(()=>import(`./vendor-icon-recycle-_RyrnHbB.js`).then(e=>e.t),[],import.meta.url),"redo-2":()=>n(()=>import(`./vendor-icon-redo-2-BJ-uEK0D.js`).then(e=>e.n),[],import.meta.url),"redo-dot":()=>n(()=>import(`./vendor-icon-redo-dot-Dv_nZ0SN.js`).then(e=>e.t),[],import.meta.url),redo:()=>n(()=>import(`./vendor-icon-redo-C4kK9unm.js`).then(e=>e.t),[],import.meta.url),"refresh-ccw-dot":()=>n(()=>import(`./vendor-icon-refresh-ccw-dot-qTcNxRWh.js`).then(e=>e.t),[],import.meta.url),"refresh-ccw":()=>n(()=>import(`./vendor-icon-refresh-ccw-QRCaXN-I.js`).then(e=>e.n),[],import.meta.url),"refresh-cw-off":()=>n(()=>import(`./vendor-icon-refresh-cw-off-Dm8rMGEI.js`).then(e=>e.t),[],import.meta.url),"refresh-cw":()=>n(()=>import(`./vendor-icon-refresh-cw-BGjSPEfJ.js`).then(e=>e.n),[],import.meta.url),refrigerator:()=>n(()=>import(`./vendor-icon-refrigerator-LtHCa7Li.js`).then(e=>e.t),[],import.meta.url),regex:()=>n(()=>import(`./vendor-icon-regex-B4Eime8Q.js`).then(e=>e.n),[],import.meta.url),"remove-formatting":()=>n(()=>import(`./vendor-icon-remove-formatting-crht3sYK.js`).then(e=>e.t),[],import.meta.url),"repeat-1":()=>n(()=>import(`./vendor-icon-repeat-1-BDZxn7Hv.js`).then(e=>e.t),[],import.meta.url),"repeat-2":()=>n(()=>import(`./vendor-icon-repeat-2-CmdCGeQ0.js`).then(e=>e.n),[],import.meta.url),"repeat-off":()=>n(()=>import(`./vendor-icon-repeat-off-BhxruLSc.js`).then(e=>e.t),[],import.meta.url),repeat:()=>n(()=>import(`./vendor-icon-repeat-_fqynyPW.js`).then(e=>e.n),[],import.meta.url),"replace-all":()=>n(()=>import(`./vendor-icon-replace-all-DJH9sLnv.js`).then(e=>e.t),[],import.meta.url),replace:()=>n(()=>import(`./vendor-icon-replace-q9SRAbqb.js`).then(e=>e.t),[],import.meta.url),"reply-all":()=>n(()=>import(`./vendor-icon-reply-all-BjwKVRMk.js`).then(e=>e.t),[],import.meta.url),reply:()=>n(()=>import(`./vendor-icon-reply-BrhXy6zj.js`).then(e=>e.t),[],import.meta.url),rewind:()=>n(()=>import(`./vendor-icon-rewind-B3gG_oCT.js`).then(e=>e.t),[],import.meta.url),ribbon:()=>n(()=>import(`./vendor-icon-ribbon-SZrpRwMU.js`).then(e=>e.t),[],import.meta.url),road:()=>n(()=>import(`./vendor-icon-road-CbrR5DBf.js`).then(e=>e.t),[],import.meta.url),"robot-arm":()=>n(()=>import(`./vendor-icon-robot-arm-DmEf1mm4.js`).then(e=>e.t),[],import.meta.url),"robot-vacuum":()=>n(()=>import(`./vendor-icon-robot-vacuum-DutJTVDo.js`).then(e=>e.t),[],import.meta.url),rocket:()=>n(()=>import(`./vendor-icon-rocket-9sBBTCrW.js`).then(e=>e.n),[],import.meta.url),"rocking-chair":()=>n(()=>import(`./vendor-icon-rocking-chair-CtEtjnwz.js`).then(e=>e.t),[],import.meta.url),"roller-coaster":()=>n(()=>import(`./vendor-icon-roller-coaster-rUwPSg8o.js`).then(e=>e.t),[],import.meta.url),rose:()=>n(()=>import(`./vendor-icon-rose-CjwWp3Hv.js`).then(e=>e.t),[],import.meta.url),"rotate-3d":()=>n(()=>import(`./vendor-icon-rotate-3d-DjGEMp1N.js`).then(e=>e.t),[],import.meta.url),"rotate-3-d":()=>n(()=>import(`./vendor-icon-rotate-3d-DjGEMp1N.js`).then(e=>e.t),[],import.meta.url),"rotate-ccw-clock":()=>n(()=>import(`./vendor-icon-rotate-ccw-clock-DyTX5-aX.js`).then(e=>e.n),[],import.meta.url),history:()=>n(()=>import(`./vendor-icon-rotate-ccw-clock-DyTX5-aX.js`).then(e=>e.n),[],import.meta.url),"rotate-ccw-key":()=>n(()=>import(`./vendor-icon-rotate-ccw-key-Dq3kS3s9.js`).then(e=>e.t),[],import.meta.url),"rotate-ccw-square":()=>n(()=>import(`./vendor-icon-rotate-ccw-square-sPSk6mzJ.js`).then(e=>e.t),[],import.meta.url),"rotate-ccw":()=>n(()=>import(`./vendor-icon-rotate-ccw-lr5YKsxC.js`).then(e=>e.n),[],import.meta.url),"rotate-cw-fading-clock":()=>n(()=>import(`./vendor-icon-rotate-cw-fading-clock-D1rhoohz.js`).then(e=>e.t),[],import.meta.url),"rotate-cw-square":()=>n(()=>import(`./vendor-icon-rotate-cw-square-OPi4k7gj.js`).then(e=>e.t),[],import.meta.url),"rotate-cw":()=>n(()=>import(`./vendor-icon-rotate-cw-piooiFbz.js`).then(e=>e.n),[],import.meta.url),"route-off":()=>n(()=>import(`./vendor-icon-route-off-DU_y-4Fz.js`).then(e=>e.t),[],import.meta.url),route:()=>n(()=>import(`./vendor-icon-route-Bl3XNEzE.js`).then(e=>e.t),[],import.meta.url),router:()=>n(()=>import(`./vendor-icon-router-DMFg5lvc.js`).then(e=>e.t),[],import.meta.url),"rows-2":()=>n(()=>import(`./vendor-icon-rows-2-CyEMxks5.js`).then(e=>e.n),[],import.meta.url),rows:()=>n(()=>import(`./vendor-icon-rows-2-CyEMxks5.js`).then(e=>e.n),[],import.meta.url),"rows-3":()=>n(()=>import(`./vendor-icon-rows-3-Bl0iGPg_.js`).then(e=>e.n),[],import.meta.url),"panels-top-bottom":()=>n(()=>import(`./vendor-icon-rows-3-Bl0iGPg_.js`).then(e=>e.n),[],import.meta.url),"rows-4":()=>n(()=>import(`./vendor-icon-rows-4-DVXDgm1n.js`).then(e=>e.n),[],import.meta.url),rss:()=>n(()=>import(`./vendor-icon-rss-DMcOCR8i.js`).then(e=>e.t),[],import.meta.url),"ruler-dimension-line":()=>n(()=>import(`./vendor-icon-ruler-dimension-line-Bmfm9NOB.js`).then(e=>e.t),[],import.meta.url),ruler:()=>n(()=>import(`./vendor-icon-ruler-BU6FpIMV.js`).then(e=>e.t),[],import.meta.url),"russian-ruble":()=>n(()=>import(`./vendor-icon-russian-ruble-DZifUW_7.js`).then(e=>e.t),[],import.meta.url),sailboat:()=>n(()=>import(`./vendor-icon-sailboat-Cy5I1zNO.js`).then(e=>e.t),[],import.meta.url),salad:()=>n(()=>import(`./vendor-icon-salad-CfkT6s4l.js`).then(e=>e.t),[],import.meta.url),sandwich:()=>n(()=>import(`./vendor-icon-sandwich-BzopKWTd.js`).then(e=>e.t),[],import.meta.url),"satellite-dish":()=>n(()=>import(`./vendor-icon-satellite-dish-s5m1atwf.js`).then(e=>e.t),[],import.meta.url),satellite:()=>n(()=>import(`./vendor-icon-satellite-CgpyjoEz.js`).then(e=>e.t),[],import.meta.url),"saudi-riyal":()=>n(()=>import(`./vendor-icon-saudi-riyal-ovV0LkBY.js`).then(e=>e.t),[],import.meta.url),"save-all":()=>n(()=>import(`./vendor-icon-save-all-DcKtxZH2.js`).then(e=>e.t),[],import.meta.url),"save-check":()=>n(()=>import(`./vendor-icon-save-check-DI2QVHSA.js`).then(e=>e.t),[],import.meta.url),"save-off":()=>n(()=>import(`./vendor-icon-save-off-ChMSokZP.js`).then(e=>e.t),[],import.meta.url),"save-pen":()=>n(()=>import(`./vendor-icon-save-pen-2cdYvRL2.js`).then(e=>e.t),[],import.meta.url),"save-plus":()=>n(()=>import(`./vendor-icon-save-plus-Dy1bGCk3.js`).then(e=>e.t),[],import.meta.url),save:()=>n(()=>import(`./vendor-icon-save-CuavGNuU.js`).then(e=>e.n),[],import.meta.url),"scale-3d":()=>n(()=>import(`./vendor-icon-scale-3d-CFT3A7WE.js`).then(e=>e.t),[],import.meta.url),"scale-3-d":()=>n(()=>import(`./vendor-icon-scale-3d-CFT3A7WE.js`).then(e=>e.t),[],import.meta.url),scale:()=>n(()=>import(`./vendor-icon-scale-S6jSJGwO.js`).then(e=>e.t),[],import.meta.url),scaling:()=>n(()=>import(`./vendor-icon-scaling-Dw4mLpAO.js`).then(e=>e.t),[],import.meta.url),"scan-barcode":()=>n(()=>import(`./vendor-icon-scan-barcode-D7FWnJOd.js`).then(e=>e.t),[],import.meta.url),"scan-box":()=>n(()=>import(`./vendor-icon-scan-box-Rxd5L9Tw.js`).then(e=>e.t),[],import.meta.url),"scan-eye":()=>n(()=>import(`./vendor-icon-scan-eye-1IDwwl2J.js`).then(e=>e.t),[],import.meta.url),"scan-face":()=>n(()=>import(`./vendor-icon-scan-face-CXjo6RQ9.js`).then(e=>e.t),[],import.meta.url),"scan-heart":()=>n(()=>import(`./vendor-icon-scan-heart-nSABRU2K.js`).then(e=>e.t),[],import.meta.url),"scan-line":()=>n(()=>import(`./vendor-icon-scan-line-D5poMxdE.js`).then(e=>e.t),[],import.meta.url),"scan-qr-code":()=>n(()=>import(`./vendor-icon-scan-qr-code-Br8t36ty.js`).then(e=>e.t),[],import.meta.url),"scan-search":()=>n(()=>import(`./vendor-icon-scan-search-D6-IMBB_.js`).then(e=>e.t),[],import.meta.url),"scan-square":()=>n(()=>import(`./vendor-icon-scan-square-CTxuiqLs.js`).then(e=>e.t),[],import.meta.url),"scan-text":()=>n(()=>import(`./vendor-icon-scan-text-Di_0wcsb.js`).then(e=>e.t),[],import.meta.url),scan:()=>n(()=>import(`./vendor-icon-scan-AC841oHr.js`).then(e=>e.t),[],import.meta.url),school:()=>n(()=>import(`./vendor-icon-school-CkMpeoHA.js`).then(e=>e.t),[],import.meta.url),"scissors-line-dashed":()=>n(()=>import(`./vendor-icon-scissors-line-dashed-Brx51V-E.js`).then(e=>e.t),[],import.meta.url),scissors:()=>n(()=>import(`./vendor-icon-scissors-DjjHqQTl.js`).then(e=>e.t),[],import.meta.url),scooter:()=>n(()=>import(`./vendor-icon-scooter-CHPUJKYE.js`).then(e=>e.t),[],import.meta.url),"screen-share-off":()=>n(()=>import(`./vendor-icon-screen-share-off-pQVfZVao.js`).then(e=>e.t),[],import.meta.url),"screen-share":()=>n(()=>import(`./vendor-icon-screen-share-DxmLj5dM.js`).then(e=>e.t),[],import.meta.url),"scroll-text":()=>n(()=>import(`./vendor-icon-scroll-text-DENjQLzo.js`).then(e=>e.n),[],import.meta.url),scroll:()=>n(()=>import(`./vendor-icon-scroll-CxmcmKaE.js`).then(e=>e.t),[],import.meta.url),"search-alert":()=>n(()=>import(`./vendor-icon-search-alert-h1bn4nK7.js`).then(e=>e.t),[],import.meta.url),"search-check":()=>n(()=>import(`./vendor-icon-search-check-CmVKQqnJ.js`).then(e=>e.t),[],import.meta.url),"search-code":()=>n(()=>import(`./vendor-icon-search-code-Bd25ej7S.js`).then(e=>e.t),[],import.meta.url),"search-slash":()=>n(()=>import(`./vendor-icon-search-slash-DqtuK1-y.js`).then(e=>e.t),[],import.meta.url),"search-x":()=>n(()=>import(`./vendor-icon-search-x-C91E_2qt.js`).then(e=>e.t),[],import.meta.url),search:()=>n(()=>import(`./vendor-icon-search-B2Uqtp_W.js`).then(e=>e.n),[],import.meta.url),section:()=>n(()=>import(`./vendor-icon-section-CSb9_KIB.js`).then(e=>e.t),[],import.meta.url),"send-horizontal":()=>n(()=>import(`./vendor-icon-send-horizontal-Dd5fONR3.js`).then(e=>e.t),[],import.meta.url),"send-horizonal":()=>n(()=>import(`./vendor-icon-send-horizontal-Dd5fONR3.js`).then(e=>e.t),[],import.meta.url),"send-to-back":()=>n(()=>import(`./vendor-icon-send-to-back-BD3tCoTP.js`).then(e=>e.t),[],import.meta.url),send:()=>n(()=>import(`./vendor-icon-send-BlZYLCTK.js`).then(e=>e.n),[],import.meta.url),"separator-horizontal":()=>n(()=>import(`./vendor-icon-separator-horizontal-DkDADbgc.js`).then(e=>e.t),[],import.meta.url),"separator-vertical":()=>n(()=>import(`./vendor-icon-separator-vertical-C5hJWNWU.js`).then(e=>e.t),[],import.meta.url),"server-cog":()=>n(()=>import(`./vendor-icon-server-cog-C040Tyr3.js`).then(e=>e.t),[],import.meta.url),"server-crash":()=>n(()=>import(`./vendor-icon-server-crash-2sXNx3Ie.js`).then(e=>e.t),[],import.meta.url),"server-off":()=>n(()=>import(`./vendor-icon-server-off-YeT3MYCq.js`).then(e=>e.t),[],import.meta.url),"server-plus":()=>n(()=>import(`./vendor-icon-server-plus-DocmUe4m.js`).then(e=>e.t),[],import.meta.url),server:()=>n(()=>import(`./vendor-icon-server-U5_HCKRC.js`).then(e=>e.t),[],import.meta.url),"settings-2":()=>n(()=>import(`./vendor-icon-settings-2-BHIWdy1J.js`).then(e=>e.n),[],import.meta.url),settings:()=>n(()=>import(`./vendor-icon-settings-CYQ7xc_F.js`).then(e=>e.n),[],import.meta.url),shapes:()=>n(()=>import(`./vendor-icon-shapes-Cc1IYQXQ.js`).then(e=>e.t),[],import.meta.url),"share-2":()=>n(()=>import(`./vendor-icon-share-2-D3bdPyHy.js`).then(e=>e.n),[],import.meta.url),share:()=>n(()=>import(`./vendor-icon-share-BRBmZ9N1.js`).then(e=>e.t),[],import.meta.url),sheet:()=>n(()=>import(`./vendor-icon-sheet-COMZ5j5G.js`).then(e=>e.t),[],import.meta.url),shell:()=>n(()=>import(`./vendor-icon-shell-Cr0G2QYt.js`).then(e=>e.t),[],import.meta.url),"shelving-unit":()=>n(()=>import(`./vendor-icon-shelving-unit-NbGezYpP.js`).then(e=>e.t),[],import.meta.url),"shield-alert":()=>n(()=>import(`./vendor-icon-shield-alert-CJYtPI9w.js`).then(e=>e.n),[],import.meta.url),"shield-ban":()=>n(()=>import(`./vendor-icon-shield-ban-DT-0je00.js`).then(e=>e.t),[],import.meta.url),"shield-check":()=>n(()=>import(`./vendor-icon-shield-check-CdDzbial.js`).then(e=>e.n),[],import.meta.url),"shield-cog-corner":()=>n(()=>import(`./vendor-icon-shield-cog-corner-UkmnFyTR.js`).then(e=>e.t),[],import.meta.url),"shield-cog":()=>n(()=>import(`./vendor-icon-shield-cog-CFyZOZ-8.js`).then(e=>e.t),[],import.meta.url),"shield-ellipsis":()=>n(()=>import(`./vendor-icon-shield-ellipsis-gRp4I9LB.js`).then(e=>e.t),[],import.meta.url),"shield-half":()=>n(()=>import(`./vendor-icon-shield-half-TtqP9wL_.js`).then(e=>e.t),[],import.meta.url),"shield-keyhole":()=>n(()=>import(`./vendor-icon-shield-keyhole-B0nl14uK.js`).then(e=>e.t),[],import.meta.url),"shield-lock":()=>n(()=>import(`./vendor-icon-shield-lock-OzrY-vF_.js`).then(e=>e.t),[],import.meta.url),"shield-minus":()=>n(()=>import(`./vendor-icon-shield-minus-DQLTFExN.js`).then(e=>e.t),[],import.meta.url),"shield-off":()=>n(()=>import(`./vendor-icon-shield-off-DSQNn8og.js`).then(e=>e.n),[],import.meta.url),"shield-plus":()=>n(()=>import(`./vendor-icon-shield-plus-vuMdkT69.js`).then(e=>e.t),[],import.meta.url),"shield-question-mark":()=>n(()=>import(`./vendor-icon-shield-question-mark-CmNmL1kO.js`).then(e=>e.n),[],import.meta.url),"shield-question":()=>n(()=>import(`./vendor-icon-shield-question-mark-CmNmL1kO.js`).then(e=>e.n),[],import.meta.url),"shield-user":()=>n(()=>import(`./vendor-icon-shield-user-Cgt_xTjZ.js`).then(e=>e.t),[],import.meta.url),"shield-x":()=>n(()=>import(`./vendor-icon-shield-x-C3Af1iLQ.js`).then(e=>e.n),[],import.meta.url),"shield-close":()=>n(()=>import(`./vendor-icon-shield-x-C3Af1iLQ.js`).then(e=>e.n),[],import.meta.url),shield:()=>n(()=>import(`./vendor-icon-shield-DsNraEeY.js`).then(e=>e.n),[],import.meta.url),"ship-cargo":()=>n(()=>import(`./vendor-icon-ship-cargo-CVX1Cq1v.js`).then(e=>e.t),[],import.meta.url),"ship-wheel":()=>n(()=>import(`./vendor-icon-ship-wheel-J6uv8S5B.js`).then(e=>e.t),[],import.meta.url),ship:()=>n(()=>import(`./vendor-icon-ship-C-TI9yx1.js`).then(e=>e.t),[],import.meta.url),shirt:()=>n(()=>import(`./vendor-icon-shirt-COcHuSSs.js`).then(e=>e.t),[],import.meta.url),"shopping-bag":()=>n(()=>import(`./vendor-icon-shopping-bag-YfCkAAKC.js`).then(e=>e.t),[],import.meta.url),"shopping-basket":()=>n(()=>import(`./vendor-icon-shopping-basket-DDVZG4TY.js`).then(e=>e.t),[],import.meta.url),"shopping-cart-minus":()=>n(()=>import(`./vendor-icon-shopping-cart-minus-BqBEUTgx.js`).then(e=>e.t),[],import.meta.url),"shopping-cart-plus":()=>n(()=>import(`./vendor-icon-shopping-cart-plus-DdDJNpjr.js`).then(e=>e.t),[],import.meta.url),"shopping-cart":()=>n(()=>import(`./vendor-icon-shopping-cart-o_AZNrRL.js`).then(e=>e.t),[],import.meta.url),shovel:()=>n(()=>import(`./vendor-icon-shovel-qzLuWkJ-.js`).then(e=>e.t),[],import.meta.url),"shower-head":()=>n(()=>import(`./vendor-icon-shower-head-Bw07qeqz.js`).then(e=>e.t),[],import.meta.url),shredder:()=>n(()=>import(`./vendor-icon-shredder-Bzsuc0Qh.js`).then(e=>e.t),[],import.meta.url),"shrimp-off":()=>n(()=>import(`./vendor-icon-shrimp-off-CUiipHI0.js`).then(e=>e.t),[],import.meta.url),shrimp:()=>n(()=>import(`./vendor-icon-shrimp-DBeaQ4nj.js`).then(e=>e.t),[],import.meta.url),shrink:()=>n(()=>import(`./vendor-icon-shrink-BCOS_ufj.js`).then(e=>e.t),[],import.meta.url),shrub:()=>n(()=>import(`./vendor-icon-shrub-9IKNohdq.js`).then(e=>e.t),[],import.meta.url),shuffle:()=>n(()=>import(`./vendor-icon-shuffle-D1cmrGsU.js`).then(e=>e.t),[],import.meta.url),sigma:()=>n(()=>import(`./vendor-icon-sigma-DSt0XKnk.js`).then(e=>e.n),[],import.meta.url),"signal-high":()=>n(()=>import(`./vendor-icon-signal-high-t5McLCIZ.js`).then(e=>e.t),[],import.meta.url),"signal-low":()=>n(()=>import(`./vendor-icon-signal-low-C6p9cJma.js`).then(e=>e.t),[],import.meta.url),"signal-medium":()=>n(()=>import(`./vendor-icon-signal-medium-CFXvINoL.js`).then(e=>e.t),[],import.meta.url),"signal-zero":()=>n(()=>import(`./vendor-icon-signal-zero-Bh5ftHvh.js`).then(e=>e.t),[],import.meta.url),signal:()=>n(()=>import(`./vendor-icon-signal-DT5adZ-y.js`).then(e=>e.t),[],import.meta.url),signature:()=>n(()=>import(`./vendor-icon-signature-qwQBdThd.js`).then(e=>e.t),[],import.meta.url),"signpost-big":()=>n(()=>import(`./vendor-icon-signpost-big-DvZrtUOH.js`).then(e=>e.t),[],import.meta.url),signpost:()=>n(()=>import(`./vendor-icon-signpost-B0bPF3VG.js`).then(e=>e.t),[],import.meta.url),siren:()=>n(()=>import(`./vendor-icon-siren-D6sdXT2i.js`).then(e=>e.t),[],import.meta.url),"skip-back":()=>n(()=>import(`./vendor-icon-skip-back-v_AFAQSa.js`).then(e=>e.t),[],import.meta.url),"skip-forward":()=>n(()=>import(`./vendor-icon-skip-forward-CfRT1Tc0.js`).then(e=>e.n),[],import.meta.url),skull:()=>n(()=>import(`./vendor-icon-skull-DDo97W4i.js`).then(e=>e.t),[],import.meta.url),slash:()=>n(()=>import(`./vendor-icon-slash-D2tPlc-g.js`).then(e=>e.t),[],import.meta.url),slice:()=>n(()=>import(`./vendor-icon-slice-BZOwumm_.js`).then(e=>e.t),[],import.meta.url),"sliders-horizontal":()=>n(()=>import(`./vendor-icon-sliders-horizontal-BsnKXU0c.js`).then(e=>e.n),[],import.meta.url),"sliders-vertical":()=>n(()=>import(`./vendor-icon-sliders-vertical-900Xc6oa.js`).then(e=>e.t),[],import.meta.url),sliders:()=>n(()=>import(`./vendor-icon-sliders-vertical-900Xc6oa.js`).then(e=>e.t),[],import.meta.url),"smartphone-charging":()=>n(()=>import(`./vendor-icon-smartphone-charging-DvyGH26m.js`).then(e=>e.t),[],import.meta.url),"smartphone-nfc":()=>n(()=>import(`./vendor-icon-smartphone-nfc-9yUCoJah.js`).then(e=>e.t),[],import.meta.url),smartphone:()=>n(()=>import(`./vendor-icon-smartphone-C-chXM6h.js`).then(e=>e.t),[],import.meta.url),snail:()=>n(()=>import(`./vendor-icon-snail-CwkTtJBR.js`).then(e=>e.t),[],import.meta.url),snowflake:()=>n(()=>import(`./vendor-icon-snowflake-Ba1AZBq0.js`).then(e=>e.t),[],import.meta.url),"soap-dispenser-droplet":()=>n(()=>import(`./vendor-icon-soap-dispenser-droplet-B61plKAV.js`).then(e=>e.t),[],import.meta.url),sofa:()=>n(()=>import(`./vendor-icon-sofa-sY3f4Y6W.js`).then(e=>e.t),[],import.meta.url),"solar-panel":()=>n(()=>import(`./vendor-icon-solar-panel-tj8Sr_HQ.js`).then(e=>e.t),[],import.meta.url),soup:()=>n(()=>import(`./vendor-icon-soup-DArRy565.js`).then(e=>e.t),[],import.meta.url),space:()=>n(()=>import(`./vendor-icon-space-DlvyJr24.js`).then(e=>e.t),[],import.meta.url),spade:()=>n(()=>import(`./vendor-icon-spade-Db2kXvjA.js`).then(e=>e.t),[],import.meta.url),sparkle:()=>n(()=>import(`./vendor-icon-sparkle-B0fq48lC.js`).then(e=>e.t),[],import.meta.url),sparkles:()=>n(()=>import(`./vendor-icon-sparkles-RGpJ39Rc.js`).then(e=>e.n),[],import.meta.url),stars:()=>n(()=>import(`./vendor-icon-sparkles-RGpJ39Rc.js`).then(e=>e.n),[],import.meta.url),speaker:()=>n(()=>import(`./vendor-icon-speaker-Cd1FLEzT.js`).then(e=>e.t),[],import.meta.url),speech:()=>n(()=>import(`./vendor-icon-speech-CL6JxdYW.js`).then(e=>e.t),[],import.meta.url),"spell-check-2":()=>n(()=>import(`./vendor-icon-spell-check-2-UcXa0vaJ.js`).then(e=>e.t),[],import.meta.url),"spell-check":()=>n(()=>import(`./vendor-icon-spell-check-CHb29qb6.js`).then(e=>e.t),[],import.meta.url),"spline-pointer":()=>n(()=>import(`./vendor-icon-spline-pointer-CpH4EgY4.js`).then(e=>e.t),[],import.meta.url),spline:()=>n(()=>import(`./vendor-icon-spline-Y9jlI3ka.js`).then(e=>e.t),[],import.meta.url),split:()=>n(()=>import(`./vendor-icon-split-Ck5cLz2x.js`).then(e=>e.t),[],import.meta.url),spool:()=>n(()=>import(`./vendor-icon-spool-B7llaA5f.js`).then(e=>e.t),[],import.meta.url),"sport-shoe":()=>n(()=>import(`./vendor-icon-sport-shoe-Cyli06Ca.js`).then(e=>e.t),[],import.meta.url),spotlight:()=>n(()=>import(`./vendor-icon-spotlight-BpHVmFg5.js`).then(e=>e.t),[],import.meta.url),"spray-can":()=>n(()=>import(`./vendor-icon-spray-can-p3EVK3-E.js`).then(e=>e.t),[],import.meta.url),sprout:()=>n(()=>import(`./vendor-icon-sprout-DcQqO849.js`).then(e=>e.t),[],import.meta.url),"square-activity":()=>n(()=>import(`./vendor-icon-square-activity-DJSNJ1iP.js`).then(e=>e.t),[],import.meta.url),"activity-square":()=>n(()=>import(`./vendor-icon-square-activity-DJSNJ1iP.js`).then(e=>e.t),[],import.meta.url),"square-arrow-down-left":()=>n(()=>import(`./vendor-icon-square-arrow-down-left-CkpkK6Tt.js`).then(e=>e.t),[],import.meta.url),"arrow-down-left-square":()=>n(()=>import(`./vendor-icon-square-arrow-down-left-CkpkK6Tt.js`).then(e=>e.t),[],import.meta.url),"square-arrow-down-right":()=>n(()=>import(`./vendor-icon-square-arrow-down-right-BccyKlGk.js`).then(e=>e.t),[],import.meta.url),"arrow-down-right-square":()=>n(()=>import(`./vendor-icon-square-arrow-down-right-BccyKlGk.js`).then(e=>e.t),[],import.meta.url),"square-arrow-down":()=>n(()=>import(`./vendor-icon-square-arrow-down-CkuHWJg7.js`).then(e=>e.t),[],import.meta.url),"arrow-down-square":()=>n(()=>import(`./vendor-icon-square-arrow-down-CkuHWJg7.js`).then(e=>e.t),[],import.meta.url),"square-arrow-left":()=>n(()=>import(`./vendor-icon-square-arrow-left-BWLy3ctX.js`).then(e=>e.t),[],import.meta.url),"arrow-left-square":()=>n(()=>import(`./vendor-icon-square-arrow-left-BWLy3ctX.js`).then(e=>e.t),[],import.meta.url),"square-arrow-out-down-left":()=>n(()=>import(`./vendor-icon-square-arrow-out-down-left-BbS6D6of.js`).then(e=>e.t),[],import.meta.url),"arrow-down-left-from-square":()=>n(()=>import(`./vendor-icon-square-arrow-out-down-left-BbS6D6of.js`).then(e=>e.t),[],import.meta.url),"square-arrow-out-down-right":()=>n(()=>import(`./vendor-icon-square-arrow-out-down-right-D0xonOZl.js`).then(e=>e.t),[],import.meta.url),"arrow-down-right-from-square":()=>n(()=>import(`./vendor-icon-square-arrow-out-down-right-D0xonOZl.js`).then(e=>e.t),[],import.meta.url),"square-arrow-out-up-left":()=>n(()=>import(`./vendor-icon-square-arrow-out-up-left-Dux5Z3Yj.js`).then(e=>e.t),[],import.meta.url),"arrow-up-left-from-square":()=>n(()=>import(`./vendor-icon-square-arrow-out-up-left-Dux5Z3Yj.js`).then(e=>e.t),[],import.meta.url),"square-arrow-out-up-right":()=>n(()=>import(`./vendor-icon-square-arrow-out-up-right-DJdbSnTP.js`).then(e=>e.t),[],import.meta.url),"arrow-up-right-from-square":()=>n(()=>import(`./vendor-icon-square-arrow-out-up-right-DJdbSnTP.js`).then(e=>e.t),[],import.meta.url),"square-arrow-right-enter":()=>n(()=>import(`./vendor-icon-square-arrow-right-enter-a_uf7hes.js`).then(e=>e.t),[],import.meta.url),"square-arrow-right-exit":()=>n(()=>import(`./vendor-icon-square-arrow-right-exit-BNk48poJ.js`).then(e=>e.t),[],import.meta.url),"square-arrow-right":()=>n(()=>import(`./vendor-icon-square-arrow-right-VtWspFRn.js`).then(e=>e.t),[],import.meta.url),"arrow-right-square":()=>n(()=>import(`./vendor-icon-square-arrow-right-VtWspFRn.js`).then(e=>e.t),[],import.meta.url),"square-arrow-up-left":()=>n(()=>import(`./vendor-icon-square-arrow-up-left-BmX_2dZz.js`).then(e=>e.t),[],import.meta.url),"arrow-up-left-square":()=>n(()=>import(`./vendor-icon-square-arrow-up-left-BmX_2dZz.js`).then(e=>e.t),[],import.meta.url),"square-arrow-up-right":()=>n(()=>import(`./vendor-icon-square-arrow-up-right-BKwsOzfc.js`).then(e=>e.t),[],import.meta.url),"arrow-up-right-square":()=>n(()=>import(`./vendor-icon-square-arrow-up-right-BKwsOzfc.js`).then(e=>e.t),[],import.meta.url),"square-arrow-up":()=>n(()=>import(`./vendor-icon-square-arrow-up-CvT_EoS0.js`).then(e=>e.t),[],import.meta.url),"arrow-up-square":()=>n(()=>import(`./vendor-icon-square-arrow-up-CvT_EoS0.js`).then(e=>e.t),[],import.meta.url),"square-asterisk":()=>n(()=>import(`./vendor-icon-square-asterisk-DWk1xTjm.js`).then(e=>e.t),[],import.meta.url),"asterisk-square":()=>n(()=>import(`./vendor-icon-square-asterisk-DWk1xTjm.js`).then(e=>e.t),[],import.meta.url),"square-bottom-dashed-scissors":()=>n(()=>import(`./vendor-icon-square-bottom-dashed-scissors-5MmgRD_R.js`).then(e=>e.t),[],import.meta.url),"scissors-square-dashed-bottom":()=>n(()=>import(`./vendor-icon-square-bottom-dashed-scissors-5MmgRD_R.js`).then(e=>e.t),[],import.meta.url),"square-centerline-dashed-horizontal":()=>n(()=>import(`./vendor-icon-square-centerline-dashed-horizontal-Ch1HLIWy.js`).then(e=>e.t),[],import.meta.url),"flip-horizontal":()=>n(()=>import(`./vendor-icon-square-centerline-dashed-horizontal-Ch1HLIWy.js`).then(e=>e.t),[],import.meta.url),"square-centerline-dashed-vertical":()=>n(()=>import(`./vendor-icon-square-centerline-dashed-vertical-m2ZeXdZR.js`).then(e=>e.t),[],import.meta.url),"flip-vertical":()=>n(()=>import(`./vendor-icon-square-centerline-dashed-vertical-m2ZeXdZR.js`).then(e=>e.t),[],import.meta.url),"square-chart-gantt":()=>n(()=>import(`./vendor-icon-square-chart-gantt-D3I-7xgm.js`).then(e=>e.n),[],import.meta.url),"gantt-chart-square":()=>n(()=>import(`./vendor-icon-square-chart-gantt-D3I-7xgm.js`).then(e=>e.n),[],import.meta.url),"square-gantt-chart":()=>n(()=>import(`./vendor-icon-square-chart-gantt-D3I-7xgm.js`).then(e=>e.n),[],import.meta.url),"square-check-big":()=>n(()=>import(`./vendor-icon-square-check-big-B4UVzWzR.js`).then(e=>e.n),[],import.meta.url),"check-square":()=>n(()=>import(`./vendor-icon-square-check-big-B4UVzWzR.js`).then(e=>e.n),[],import.meta.url),"square-check":()=>n(()=>import(`./vendor-icon-square-check-B6XVLrBW.js`).then(e=>e.t),[],import.meta.url),"check-square-2":()=>n(()=>import(`./vendor-icon-square-check-B6XVLrBW.js`).then(e=>e.t),[],import.meta.url),"square-chevron-down":()=>n(()=>import(`./vendor-icon-square-chevron-down-DztLK5uO.js`).then(e=>e.t),[],import.meta.url),"chevron-down-square":()=>n(()=>import(`./vendor-icon-square-chevron-down-DztLK5uO.js`).then(e=>e.t),[],import.meta.url),"square-chevron-left":()=>n(()=>import(`./vendor-icon-square-chevron-left-BXDM80Tw.js`).then(e=>e.t),[],import.meta.url),"chevron-left-square":()=>n(()=>import(`./vendor-icon-square-chevron-left-BXDM80Tw.js`).then(e=>e.t),[],import.meta.url),"square-chevron-right":()=>n(()=>import(`./vendor-icon-square-chevron-right-DyChigYq.js`).then(e=>e.t),[],import.meta.url),"chevron-right-square":()=>n(()=>import(`./vendor-icon-square-chevron-right-DyChigYq.js`).then(e=>e.t),[],import.meta.url),"square-chevron-up":()=>n(()=>import(`./vendor-icon-square-chevron-up-DAU0742v.js`).then(e=>e.t),[],import.meta.url),"chevron-up-square":()=>n(()=>import(`./vendor-icon-square-chevron-up-DAU0742v.js`).then(e=>e.t),[],import.meta.url),"square-code":()=>n(()=>import(`./vendor-icon-square-code-Bl0LB1l4.js`).then(e=>e.t),[],import.meta.url),"code-square":()=>n(()=>import(`./vendor-icon-square-code-Bl0LB1l4.js`).then(e=>e.t),[],import.meta.url),"square-dashed-bottom-code":()=>n(()=>import(`./vendor-icon-square-dashed-bottom-code-k3hqao9B.js`).then(e=>e.t),[],import.meta.url),"square-dashed-bottom":()=>n(()=>import(`./vendor-icon-square-dashed-bottom-Cx6SgCWP.js`).then(e=>e.t),[],import.meta.url),"square-dashed-kanban":()=>n(()=>import(`./vendor-icon-square-dashed-kanban-BpMcqjDc.js`).then(e=>e.t),[],import.meta.url),"kanban-square-dashed":()=>n(()=>import(`./vendor-icon-square-dashed-kanban-BpMcqjDc.js`).then(e=>e.t),[],import.meta.url),"square-dashed-mouse-pointer":()=>n(()=>import(`./vendor-icon-square-dashed-mouse-pointer-B_9iNXZV.js`).then(e=>e.t),[],import.meta.url),"mouse-pointer-square-dashed":()=>n(()=>import(`./vendor-icon-square-dashed-mouse-pointer-B_9iNXZV.js`).then(e=>e.t),[],import.meta.url),"square-dashed-text":()=>n(()=>import(`./vendor-icon-square-dashed-text-DDlU9YBJ.js`).then(e=>e.t),[],import.meta.url),"text-selection":()=>n(()=>import(`./vendor-icon-square-dashed-text-DDlU9YBJ.js`).then(e=>e.t),[],import.meta.url),"text-select":()=>n(()=>import(`./vendor-icon-square-dashed-text-DDlU9YBJ.js`).then(e=>e.t),[],import.meta.url),"square-dashed-top-solid":()=>n(()=>import(`./vendor-icon-square-dashed-top-solid-CO93eXFE.js`).then(e=>e.t),[],import.meta.url),"square-dashed":()=>n(()=>import(`./vendor-icon-square-dashed-BUavjoUM.js`).then(e=>e.n),[],import.meta.url),"box-select":()=>n(()=>import(`./vendor-icon-square-dashed-BUavjoUM.js`).then(e=>e.n),[],import.meta.url),"square-dimensions":()=>n(()=>import(`./vendor-icon-square-dimensions-vwMyT9QA.js`).then(e=>e.t),[],import.meta.url),"square-divide":()=>n(()=>import(`./vendor-icon-square-divide-CecqVz47.js`).then(e=>e.t),[],import.meta.url),"divide-square":()=>n(()=>import(`./vendor-icon-square-divide-CecqVz47.js`).then(e=>e.t),[],import.meta.url),"square-dot":()=>n(()=>import(`./vendor-icon-square-dot-KBH2pIM4.js`).then(e=>e.t),[],import.meta.url),"dot-square":()=>n(()=>import(`./vendor-icon-square-dot-KBH2pIM4.js`).then(e=>e.t),[],import.meta.url),"square-equal":()=>n(()=>import(`./vendor-icon-square-equal-BK-SbqIX.js`).then(e=>e.t),[],import.meta.url),"equal-square":()=>n(()=>import(`./vendor-icon-square-equal-BK-SbqIX.js`).then(e=>e.t),[],import.meta.url),"square-exclamation-point":()=>n(()=>import(`./vendor-icon-square-exclamation-point-_QAGLHBj.js`).then(e=>e.t),[],import.meta.url),"square-function":()=>n(()=>import(`./vendor-icon-square-function-PwJso9rX.js`).then(e=>e.t),[],import.meta.url),"function-square":()=>n(()=>import(`./vendor-icon-square-function-PwJso9rX.js`).then(e=>e.t),[],import.meta.url),"square-kanban":()=>n(()=>import(`./vendor-icon-square-kanban-ZFRnbY0T.js`).then(e=>e.n),[],import.meta.url),"kanban-square":()=>n(()=>import(`./vendor-icon-square-kanban-ZFRnbY0T.js`).then(e=>e.n),[],import.meta.url),"square-library":()=>n(()=>import(`./vendor-icon-square-library-8eUE7qQN.js`).then(e=>e.t),[],import.meta.url),"library-square":()=>n(()=>import(`./vendor-icon-square-library-8eUE7qQN.js`).then(e=>e.t),[],import.meta.url),"square-m":()=>n(()=>import(`./vendor-icon-square-m-Bxmb6e9b.js`).then(e=>e.t),[],import.meta.url),"m-square":()=>n(()=>import(`./vendor-icon-square-m-Bxmb6e9b.js`).then(e=>e.t),[],import.meta.url),"square-menu":()=>n(()=>import(`./vendor-icon-square-menu-4CtPmkjs.js`).then(e=>e.t),[],import.meta.url),"menu-square":()=>n(()=>import(`./vendor-icon-square-menu-4CtPmkjs.js`).then(e=>e.t),[],import.meta.url),"square-minus":()=>n(()=>import(`./vendor-icon-square-minus-Ck6ArxOH.js`).then(e=>e.t),[],import.meta.url),"minus-square":()=>n(()=>import(`./vendor-icon-square-minus-Ck6ArxOH.js`).then(e=>e.t),[],import.meta.url),"square-mouse-pointer":()=>n(()=>import(`./vendor-icon-square-mouse-pointer-DDvQbLGG.js`).then(e=>e.t),[],import.meta.url),inspect:()=>n(()=>import(`./vendor-icon-square-mouse-pointer-DDvQbLGG.js`).then(e=>e.t),[],import.meta.url),"square-off":()=>n(()=>import(`./vendor-icon-square-off-CUoL6UtH.js`).then(e=>e.t),[],import.meta.url),"square-parking-off":()=>n(()=>import(`./vendor-icon-square-parking-off-CCdoklPx.js`).then(e=>e.t),[],import.meta.url),"parking-square-off":()=>n(()=>import(`./vendor-icon-square-parking-off-CCdoklPx.js`).then(e=>e.t),[],import.meta.url),"square-parking":()=>n(()=>import(`./vendor-icon-square-parking-CVXU9Vk4.js`).then(e=>e.t),[],import.meta.url),"parking-square":()=>n(()=>import(`./vendor-icon-square-parking-CVXU9Vk4.js`).then(e=>e.t),[],import.meta.url),"square-pause":()=>n(()=>import(`./vendor-icon-square-pause-D9TFrtrD.js`).then(e=>e.t),[],import.meta.url),"square-pen":()=>n(()=>import(`./vendor-icon-square-pen-CrYOuw6J.js`).then(e=>e.n),[],import.meta.url),"pen-box":()=>n(()=>import(`./vendor-icon-square-pen-CrYOuw6J.js`).then(e=>e.n),[],import.meta.url),edit:()=>n(()=>import(`./vendor-icon-square-pen-CrYOuw6J.js`).then(e=>e.n),[],import.meta.url),"pen-square":()=>n(()=>import(`./vendor-icon-square-pen-CrYOuw6J.js`).then(e=>e.n),[],import.meta.url),"square-percent":()=>n(()=>import(`./vendor-icon-square-percent-H275o3NV.js`).then(e=>e.t),[],import.meta.url),"percent-square":()=>n(()=>import(`./vendor-icon-square-percent-H275o3NV.js`).then(e=>e.t),[],import.meta.url),"square-pi":()=>n(()=>import(`./vendor-icon-square-pi-CH73LjnE.js`).then(e=>e.t),[],import.meta.url),"pi-square":()=>n(()=>import(`./vendor-icon-square-pi-CH73LjnE.js`).then(e=>e.t),[],import.meta.url),"square-pilcrow":()=>n(()=>import(`./vendor-icon-square-pilcrow-DIsW53m3.js`).then(e=>e.t),[],import.meta.url),"pilcrow-square":()=>n(()=>import(`./vendor-icon-square-pilcrow-DIsW53m3.js`).then(e=>e.t),[],import.meta.url),"square-play":()=>n(()=>import(`./vendor-icon-square-play-Dd0KE54U.js`).then(e=>e.t),[],import.meta.url),"play-square":()=>n(()=>import(`./vendor-icon-square-play-Dd0KE54U.js`).then(e=>e.t),[],import.meta.url),"square-plus":()=>n(()=>import(`./vendor-icon-square-plus-BP1FGpSB.js`).then(e=>e.t),[],import.meta.url),"plus-square":()=>n(()=>import(`./vendor-icon-square-plus-BP1FGpSB.js`).then(e=>e.t),[],import.meta.url),"square-power":()=>n(()=>import(`./vendor-icon-square-power-1qKbe-Sl.js`).then(e=>e.t),[],import.meta.url),"power-square":()=>n(()=>import(`./vendor-icon-square-power-1qKbe-Sl.js`).then(e=>e.t),[],import.meta.url),"square-radical":()=>n(()=>import(`./vendor-icon-square-radical-D-672Gs6.js`).then(e=>e.t),[],import.meta.url),"square-round-corner":()=>n(()=>import(`./vendor-icon-square-round-corner-BsXZKj26.js`).then(e=>e.t),[],import.meta.url),"square-scissors":()=>n(()=>import(`./vendor-icon-square-scissors-LWfP1zmX.js`).then(e=>e.t),[],import.meta.url),"scissors-square":()=>n(()=>import(`./vendor-icon-square-scissors-LWfP1zmX.js`).then(e=>e.t),[],import.meta.url),"square-sigma":()=>n(()=>import(`./vendor-icon-square-sigma-DvvIkoR_.js`).then(e=>e.t),[],import.meta.url),"sigma-square":()=>n(()=>import(`./vendor-icon-square-sigma-DvvIkoR_.js`).then(e=>e.t),[],import.meta.url),"square-slash":()=>n(()=>import(`./vendor-icon-square-slash-BvkT9P6G.js`).then(e=>e.t),[],import.meta.url),"slash-square":()=>n(()=>import(`./vendor-icon-square-slash-BvkT9P6G.js`).then(e=>e.t),[],import.meta.url),"square-split-horizontal":()=>n(()=>import(`./vendor-icon-square-split-horizontal-BJvw3kUJ.js`).then(e=>e.t),[],import.meta.url),"split-square-horizontal":()=>n(()=>import(`./vendor-icon-square-split-horizontal-BJvw3kUJ.js`).then(e=>e.t),[],import.meta.url),"square-split-vertical":()=>n(()=>import(`./vendor-icon-square-split-vertical-DQCylsbk.js`).then(e=>e.t),[],import.meta.url),"split-square-vertical":()=>n(()=>import(`./vendor-icon-square-split-vertical-DQCylsbk.js`).then(e=>e.t),[],import.meta.url),"square-square":()=>n(()=>import(`./vendor-icon-square-square-BBtda-9X.js`).then(e=>e.t),[],import.meta.url),"square-stack":()=>n(()=>import(`./vendor-icon-square-stack-CYj9_lF9.js`).then(e=>e.t),[],import.meta.url),"square-star":()=>n(()=>import(`./vendor-icon-square-star-FN20bevA.js`).then(e=>e.t),[],import.meta.url),"square-stop":()=>n(()=>import(`./vendor-icon-square-stop-sisEiTrh.js`).then(e=>e.t),[],import.meta.url),"square-terminal":()=>n(()=>import(`./vendor-icon-square-terminal-BEi_VDRg.js`).then(e=>e.t),[],import.meta.url),"terminal-square":()=>n(()=>import(`./vendor-icon-square-terminal-BEi_VDRg.js`).then(e=>e.t),[],import.meta.url),"square-text":()=>n(()=>import(`./vendor-icon-square-text-CN1VvVap.js`).then(e=>e.t),[],import.meta.url),"square-user-round":()=>n(()=>import(`./vendor-icon-square-user-round-D6vfCYyU.js`).then(e=>e.t),[],import.meta.url),"user-square-2":()=>n(()=>import(`./vendor-icon-square-user-round-D6vfCYyU.js`).then(e=>e.t),[],import.meta.url),"square-user":()=>n(()=>import(`./vendor-icon-square-user-DBeDZ1A9.js`).then(e=>e.t),[],import.meta.url),"user-square":()=>n(()=>import(`./vendor-icon-square-user-DBeDZ1A9.js`).then(e=>e.t),[],import.meta.url),"square-x":()=>n(()=>import(`./vendor-icon-square-x-Dslmxj9r.js`).then(e=>e.t),[],import.meta.url),"x-square":()=>n(()=>import(`./vendor-icon-square-x-Dslmxj9r.js`).then(e=>e.t),[],import.meta.url),square:()=>n(()=>import(`./vendor-icon-square-D32ztiBM.js`).then(e=>e.n),[],import.meta.url),"squares-exclude":()=>n(()=>import(`./vendor-icon-squares-exclude-BTtqpXGn.js`).then(e=>e.t),[],import.meta.url),"squares-intersect":()=>n(()=>import(`./vendor-icon-squares-intersect-CDBsmHMA.js`).then(e=>e.t),[],import.meta.url),"squares-subtract":()=>n(()=>import(`./vendor-icon-squares-subtract-nTwkyZwk.js`).then(e=>e.t),[],import.meta.url),"squares-unite":()=>n(()=>import(`./vendor-icon-squares-unite-BkPFoKcl.js`).then(e=>e.t),[],import.meta.url),"squircle-dashed":()=>n(()=>import(`./vendor-icon-squircle-dashed-B5i6mfW_.js`).then(e=>e.t),[],import.meta.url),squircle:()=>n(()=>import(`./vendor-icon-squircle-mbPgPYEg.js`).then(e=>e.t),[],import.meta.url),squirrel:()=>n(()=>import(`./vendor-icon-squirrel-BIWjXk6l.js`).then(e=>e.t),[],import.meta.url),stamp:()=>n(()=>import(`./vendor-icon-stamp-B4FwVzRL.js`).then(e=>e.n),[],import.meta.url),"star-check":()=>n(()=>import(`./vendor-icon-star-check-DrRNNNQp.js`).then(e=>e.t),[],import.meta.url),"star-half":()=>n(()=>import(`./vendor-icon-star-half-B0X_skcp.js`).then(e=>e.t),[],import.meta.url),"star-minus":()=>n(()=>import(`./vendor-icon-star-minus-CVRG_Sp9.js`).then(e=>e.t),[],import.meta.url),"star-off":()=>n(()=>import(`./vendor-icon-star-off-C_igmr5w.js`).then(e=>e.n),[],import.meta.url),"star-plus":()=>n(()=>import(`./vendor-icon-star-plus-lbOZtqVG.js`).then(e=>e.t),[],import.meta.url),"star-x":()=>n(()=>import(`./vendor-icon-star-x-2I3mepvG.js`).then(e=>e.t),[],import.meta.url),star:()=>n(()=>import(`./vendor-icon-star-DfusowFE.js`).then(e=>e.n),[],import.meta.url),"step-back":()=>n(()=>import(`./vendor-icon-step-back-BFBnfgWa.js`).then(e=>e.t),[],import.meta.url),"step-forward":()=>n(()=>import(`./vendor-icon-step-forward-5ECOEIqn.js`).then(e=>e.n),[],import.meta.url),stethoscope:()=>n(()=>import(`./vendor-icon-stethoscope-BeCVH6G7.js`).then(e=>e.t),[],import.meta.url),sticker:()=>n(()=>import(`./vendor-icon-sticker-HtKzriJA.js`).then(e=>e.t),[],import.meta.url),"sticky-note-check":()=>n(()=>import(`./vendor-icon-sticky-note-check-BXjMG_Sy.js`).then(e=>e.t),[],import.meta.url),"sticky-note-minus":()=>n(()=>import(`./vendor-icon-sticky-note-minus-D1P2mSJf.js`).then(e=>e.t),[],import.meta.url),"sticky-note-off":()=>n(()=>import(`./vendor-icon-sticky-note-off-B69aBmGz.js`).then(e=>e.t),[],import.meta.url),"sticky-note-plus":()=>n(()=>import(`./vendor-icon-sticky-note-plus-CPfW_T39.js`).then(e=>e.t),[],import.meta.url),"sticky-note-x":()=>n(()=>import(`./vendor-icon-sticky-note-x-tPaNZEHs.js`).then(e=>e.t),[],import.meta.url),"sticky-note":()=>n(()=>import(`./vendor-icon-sticky-note-Bp3ZFMbg.js`).then(e=>e.n),[],import.meta.url),"sticky-notes":()=>n(()=>import(`./vendor-icon-sticky-notes-B7A5yiad.js`).then(e=>e.t),[],import.meta.url),stone:()=>n(()=>import(`./vendor-icon-stone-BRcpFWZJ.js`).then(e=>e.t),[],import.meta.url),store:()=>n(()=>import(`./vendor-icon-store-CwiX9Ffi.js`).then(e=>e.n),[],import.meta.url),"stretch-horizontal":()=>n(()=>import(`./vendor-icon-stretch-horizontal-DSaazU-m.js`).then(e=>e.t),[],import.meta.url),"stretch-vertical":()=>n(()=>import(`./vendor-icon-stretch-vertical-VKu1E-cp.js`).then(e=>e.t),[],import.meta.url),strikethrough:()=>n(()=>import(`./vendor-icon-strikethrough-DSkqRDNa.js`).then(e=>e.t),[],import.meta.url),subscript:()=>n(()=>import(`./vendor-icon-subscript-j2LQ_Exi.js`).then(e=>e.t),[],import.meta.url),summary:()=>n(()=>import(`./vendor-icon-summary-DjTYmrsR.js`).then(e=>e.t),[],import.meta.url),"sun-dim":()=>n(()=>import(`./vendor-icon-sun-dim-DesyVW_t.js`).then(e=>e.t),[],import.meta.url),"sun-medium":()=>n(()=>import(`./vendor-icon-sun-medium-DMYZ31kA.js`).then(e=>e.t),[],import.meta.url),"sun-moon":()=>n(()=>import(`./vendor-icon-sun-moon-C6t8YeaN.js`).then(e=>e.t),[],import.meta.url),"sun-snow":()=>n(()=>import(`./vendor-icon-sun-snow-BZxdk0gM.js`).then(e=>e.t),[],import.meta.url),sun:()=>n(()=>import(`./vendor-icon-sun-D1JMEG8e.js`).then(e=>e.n),[],import.meta.url),sunrise:()=>n(()=>import(`./vendor-icon-sunrise-CTN_fem2.js`).then(e=>e.t),[],import.meta.url),sunset:()=>n(()=>import(`./vendor-icon-sunset-UMnigo1i.js`).then(e=>e.t),[],import.meta.url),superscript:()=>n(()=>import(`./vendor-icon-superscript-DJP2r3g_.js`).then(e=>e.t),[],import.meta.url),"swatch-book":()=>n(()=>import(`./vendor-icon-swatch-book-CZ283zeA.js`).then(e=>e.t),[],import.meta.url),"swiss-franc":()=>n(()=>import(`./vendor-icon-swiss-franc-BM6tzyWC.js`).then(e=>e.t),[],import.meta.url),"switch-camera":()=>n(()=>import(`./vendor-icon-switch-camera-CzkPAD4r.js`).then(e=>e.t),[],import.meta.url),sword:()=>n(()=>import(`./vendor-icon-sword-i-M5zvOd.js`).then(e=>e.t),[],import.meta.url),swords:()=>n(()=>import(`./vendor-icon-swords-DOVtuA1H.js`).then(e=>e.t),[],import.meta.url),syringe:()=>n(()=>import(`./vendor-icon-syringe-DuFXrmuA.js`).then(e=>e.t),[],import.meta.url),"table-2":()=>n(()=>import(`./vendor-icon-table-2-DMQ6UahM.js`).then(e=>e.n),[],import.meta.url),"table-cells-merge":()=>n(()=>import(`./vendor-icon-table-cells-merge-Du3Y9FCE.js`).then(e=>e.t),[],import.meta.url),"table-cells-split":()=>n(()=>import(`./vendor-icon-table-cells-split-rcO7Jf95.js`).then(e=>e.t),[],import.meta.url),"table-columns-split":()=>n(()=>import(`./vendor-icon-table-columns-split-BOUa_6Kl.js`).then(e=>e.t),[],import.meta.url),"table-of-contents":()=>n(()=>import(`./vendor-icon-table-of-contents-DeDi2cF8.js`).then(e=>e.t),[],import.meta.url),"table-properties":()=>n(()=>import(`./vendor-icon-table-properties-DiJhrFZ3.js`).then(e=>e.n),[],import.meta.url),"table-rows-split":()=>n(()=>import(`./vendor-icon-table-rows-split-DUJ2j0fk.js`).then(e=>e.t),[],import.meta.url),table:()=>n(()=>import(`./vendor-icon-table-CeQhi8NL.js`).then(e=>e.n),[],import.meta.url),"tablet-smartphone":()=>n(()=>import(`./vendor-icon-tablet-smartphone-DwPkVud-.js`).then(e=>e.t),[],import.meta.url),tablet:()=>n(()=>import(`./vendor-icon-tablet-Ct2eh5Zk.js`).then(e=>e.t),[],import.meta.url),tablets:()=>n(()=>import(`./vendor-icon-tablets--ESSnd4I.js`).then(e=>e.t),[],import.meta.url),"tag-plus":()=>n(()=>import(`./vendor-icon-tag-plus-B2NZfaoC.js`).then(e=>e.t),[],import.meta.url),"tag-x":()=>n(()=>import(`./vendor-icon-tag-x-BnyDXsT3.js`).then(e=>e.t),[],import.meta.url),tag:()=>n(()=>import(`./vendor-icon-tag-iKhUiq-2.js`).then(e=>e.n),[],import.meta.url),tags:()=>n(()=>import(`./vendor-icon-tags-BnAXOIrl.js`).then(e=>e.n),[],import.meta.url),"tally-1":()=>n(()=>import(`./vendor-icon-tally-1-DXQSDhAX.js`).then(e=>e.t),[],import.meta.url),"tally-2":()=>n(()=>import(`./vendor-icon-tally-2-BRBl5_02.js`).then(e=>e.t),[],import.meta.url),"tally-3":()=>n(()=>import(`./vendor-icon-tally-3-B4-2bPtf.js`).then(e=>e.t),[],import.meta.url),"tally-4":()=>n(()=>import(`./vendor-icon-tally-4-bTOAbxXl.js`).then(e=>e.t),[],import.meta.url),"tally-5":()=>n(()=>import(`./vendor-icon-tally-5-Dq8E0fF6.js`).then(e=>e.t),[],import.meta.url),tangent:()=>n(()=>import(`./vendor-icon-tangent-CvJ2Eyxx.js`).then(e=>e.t),[],import.meta.url),target:()=>n(()=>import(`./vendor-icon-target-B34b1nAJ.js`).then(e=>e.t),[],import.meta.url),telescope:()=>n(()=>import(`./vendor-icon-telescope-ATYtOdpL.js`).then(e=>e.t),[],import.meta.url),"tent-tree":()=>n(()=>import(`./vendor-icon-tent-tree-dGKiv0cL.js`).then(e=>e.t),[],import.meta.url),tent:()=>n(()=>import(`./vendor-icon-tent-DWJYFIO1.js`).then(e=>e.t),[],import.meta.url),terminal:()=>n(()=>import(`./vendor-icon-terminal-Cgjziqoo.js`).then(e=>e.n),[],import.meta.url),"test-tube-diagonal":()=>n(()=>import(`./vendor-icon-test-tube-diagonal-JU4IgQXf.js`).then(e=>e.t),[],import.meta.url),"test-tube-2":()=>n(()=>import(`./vendor-icon-test-tube-diagonal-JU4IgQXf.js`).then(e=>e.t),[],import.meta.url),"test-tube":()=>n(()=>import(`./vendor-icon-test-tube-DOUaSsH8.js`).then(e=>e.t),[],import.meta.url),"test-tubes":()=>n(()=>import(`./vendor-icon-test-tubes-B8SScyFQ.js`).then(e=>e.t),[],import.meta.url),"text-align-center":()=>n(()=>import(`./vendor-icon-text-align-center-CU7q2G9f.js`).then(e=>e.t),[],import.meta.url),"align-center":()=>n(()=>import(`./vendor-icon-text-align-center-CU7q2G9f.js`).then(e=>e.t),[],import.meta.url),"text-align-end":()=>n(()=>import(`./vendor-icon-text-align-end-C7NMaYAi.js`).then(e=>e.t),[],import.meta.url),"align-right":()=>n(()=>import(`./vendor-icon-text-align-end-C7NMaYAi.js`).then(e=>e.t),[],import.meta.url),"text-align-justify":()=>n(()=>import(`./vendor-icon-text-align-justify-BknwtpxF.js`).then(e=>e.n),[],import.meta.url),"align-justify":()=>n(()=>import(`./vendor-icon-text-align-justify-BknwtpxF.js`).then(e=>e.n),[],import.meta.url),"text-align-start":()=>n(()=>import(`./vendor-icon-text-align-start-ufegOpbM.js`).then(e=>e.n),[],import.meta.url),text:()=>n(()=>import(`./vendor-icon-text-align-start-ufegOpbM.js`).then(e=>e.n),[],import.meta.url),"align-left":()=>n(()=>import(`./vendor-icon-text-align-start-ufegOpbM.js`).then(e=>e.n),[],import.meta.url),"text-cursor-input":()=>n(()=>import(`./vendor-icon-text-cursor-input-CExDXdxO.js`).then(e=>e.t),[],import.meta.url),"text-cursor":()=>n(()=>import(`./vendor-icon-text-cursor-B-z5Hya4.js`).then(e=>e.t),[],import.meta.url),"text-initial":()=>n(()=>import(`./vendor-icon-text-initial-XSIgyBmI.js`).then(e=>e.t),[],import.meta.url),"letter-text":()=>n(()=>import(`./vendor-icon-text-initial-XSIgyBmI.js`).then(e=>e.t),[],import.meta.url),"text-quote":()=>n(()=>import(`./vendor-icon-text-quote-iByI3trK.js`).then(e=>e.t),[],import.meta.url),"text-search":()=>n(()=>import(`./vendor-icon-text-search-C8bYbTtG.js`).then(e=>e.t),[],import.meta.url),"text-wrap":()=>n(()=>import(`./vendor-icon-text-wrap-BU-iaYgC.js`).then(e=>e.t),[],import.meta.url),"wrap-text":()=>n(()=>import(`./vendor-icon-text-wrap-BU-iaYgC.js`).then(e=>e.t),[],import.meta.url),theater:()=>n(()=>import(`./vendor-icon-theater-gXqmGoDz.js`).then(e=>e.t),[],import.meta.url),"thermometer-snowflake":()=>n(()=>import(`./vendor-icon-thermometer-snowflake-DoUFFCGR.js`).then(e=>e.t),[],import.meta.url),"thermometer-sun":()=>n(()=>import(`./vendor-icon-thermometer-sun-CfRmXTxx.js`).then(e=>e.t),[],import.meta.url),thermometer:()=>n(()=>import(`./vendor-icon-thermometer-CYqUb5Ee.js`).then(e=>e.t),[],import.meta.url),"thumbs-down":()=>n(()=>import(`./vendor-icon-thumbs-down-CCBJZl3R.js`).then(e=>e.t),[],import.meta.url),"thumbs-up":()=>n(()=>import(`./vendor-icon-thumbs-up-CQrVfzo4.js`).then(e=>e.t),[],import.meta.url),"tic-tac-toe":()=>n(()=>import(`./vendor-icon-tic-tac-toe-Al39Tg2x.js`).then(e=>e.t),[],import.meta.url),"ticket-check":()=>n(()=>import(`./vendor-icon-ticket-check-DbIVvPM4.js`).then(e=>e.t),[],import.meta.url),"ticket-minus":()=>n(()=>import(`./vendor-icon-ticket-minus-bRMIRvuu.js`).then(e=>e.t),[],import.meta.url),"ticket-percent":()=>n(()=>import(`./vendor-icon-ticket-percent-DPG-kJfF.js`).then(e=>e.t),[],import.meta.url),"ticket-plus":()=>n(()=>import(`./vendor-icon-ticket-plus-xx3d7PdV.js`).then(e=>e.t),[],import.meta.url),"ticket-slash":()=>n(()=>import(`./vendor-icon-ticket-slash-DYzbXBoF.js`).then(e=>e.t),[],import.meta.url),"ticket-x":()=>n(()=>import(`./vendor-icon-ticket-x-USAf9VCw.js`).then(e=>e.t),[],import.meta.url),ticket:()=>n(()=>import(`./vendor-icon-ticket-BIfq5abP.js`).then(e=>e.t),[],import.meta.url),"tickets-plane":()=>n(()=>import(`./vendor-icon-tickets-plane-DORgn6zW.js`).then(e=>e.t),[],import.meta.url),tickets:()=>n(()=>import(`./vendor-icon-tickets-BoK1wYb1.js`).then(e=>e.t),[],import.meta.url),timeline:()=>n(()=>import(`./vendor-icon-timeline-J8JKeuHK.js`).then(e=>e.t),[],import.meta.url),"timer-off":()=>n(()=>import(`./vendor-icon-timer-off-C-SZTesk.js`).then(e=>e.t),[],import.meta.url),"timer-reset":()=>n(()=>import(`./vendor-icon-timer-reset-Wg02gBEl.js`).then(e=>e.n),[],import.meta.url),timer:()=>n(()=>import(`./vendor-icon-timer-DT4EckeV.js`).then(e=>e.n),[],import.meta.url),"toggle-left":()=>n(()=>import(`./vendor-icon-toggle-left-DJMejsN6.js`).then(e=>e.n),[],import.meta.url),"toggle-right":()=>n(()=>import(`./vendor-icon-toggle-right-55ersX99.js`).then(e=>e.n),[],import.meta.url),toilet:()=>n(()=>import(`./vendor-icon-toilet-B6hrMnKd.js`).then(e=>e.t),[],import.meta.url),"tool-case":()=>n(()=>import(`./vendor-icon-tool-case-CaorgwpR.js`).then(e=>e.t),[],import.meta.url),toolbox:()=>n(()=>import(`./vendor-icon-toolbox-DQHA5APc.js`).then(e=>e.t),[],import.meta.url),tornado:()=>n(()=>import(`./vendor-icon-tornado-CFHTkzl8.js`).then(e=>e.t),[],import.meta.url),torus:()=>n(()=>import(`./vendor-icon-torus-Bi0ANibw.js`).then(e=>e.t),[],import.meta.url),"touchpad-off":()=>n(()=>import(`./vendor-icon-touchpad-off-CjeyX8vY.js`).then(e=>e.t),[],import.meta.url),touchpad:()=>n(()=>import(`./vendor-icon-touchpad-B4R0fVP3.js`).then(e=>e.t),[],import.meta.url),"towel-rack":()=>n(()=>import(`./vendor-icon-towel-rack-DMBEjMNB.js`).then(e=>e.t),[],import.meta.url),"tower-control":()=>n(()=>import(`./vendor-icon-tower-control-i-txqgBO.js`).then(e=>e.t),[],import.meta.url),"toy-brick":()=>n(()=>import(`./vendor-icon-toy-brick-BGaEzAk7.js`).then(e=>e.t),[],import.meta.url),tractor:()=>n(()=>import(`./vendor-icon-tractor-DDju5hic.js`).then(e=>e.t),[],import.meta.url),"traffic-cone":()=>n(()=>import(`./vendor-icon-traffic-cone-ZEl2Sw1G.js`).then(e=>e.t),[],import.meta.url),trailer:()=>n(()=>import(`./vendor-icon-trailer-oQe04xQ7.js`).then(e=>e.t),[],import.meta.url),"train-front-tunnel":()=>n(()=>import(`./vendor-icon-train-front-tunnel-CM1-mn93.js`).then(e=>e.t),[],import.meta.url),"train-front":()=>n(()=>import(`./vendor-icon-train-front-BRgpFn3S.js`).then(e=>e.t),[],import.meta.url),"train-track":()=>n(()=>import(`./vendor-icon-train-track-Bi4wjnz6.js`).then(e=>e.t),[],import.meta.url),"tram-front":()=>n(()=>import(`./vendor-icon-tram-front-CCCYyHhr.js`).then(e=>e.t),[],import.meta.url),train:()=>n(()=>import(`./vendor-icon-tram-front-CCCYyHhr.js`).then(e=>e.t),[],import.meta.url),transgender:()=>n(()=>import(`./vendor-icon-transgender-BWTIDRfB.js`).then(e=>e.t),[],import.meta.url),"trash-off":()=>n(()=>import(`./vendor-icon-trash-off-DL_9Zef4.js`).then(e=>e.t),[],import.meta.url),trash:()=>n(()=>import(`./vendor-icon-trash-BLsWkwB9.js`).then(e=>e.n),[],import.meta.url),"trash-2":()=>n(()=>import(`./vendor-icon-trash-BLsWkwB9.js`).then(e=>e.n),[],import.meta.url),"tree-deciduous":()=>n(()=>import(`./vendor-icon-tree-deciduous-oTf4AqQB.js`).then(e=>e.t),[],import.meta.url),"tree-palm":()=>n(()=>import(`./vendor-icon-tree-palm-BgvPVwjX.js`).then(e=>e.t),[],import.meta.url),palmtree:()=>n(()=>import(`./vendor-icon-tree-palm-BgvPVwjX.js`).then(e=>e.t),[],import.meta.url),"tree-pine":()=>n(()=>import(`./vendor-icon-tree-pine-B-h1fbG2.js`).then(e=>e.t),[],import.meta.url),trees:()=>n(()=>import(`./vendor-icon-trees-D6lPAc6Q.js`).then(e=>e.t),[],import.meta.url),"trending-down":()=>n(()=>import(`./vendor-icon-trending-down-C8VFA2s8.js`).then(e=>e.n),[],import.meta.url),"trending-up-down":()=>n(()=>import(`./vendor-icon-trending-up-down-BkE2e_a1.js`).then(e=>e.t),[],import.meta.url),"trending-up":()=>n(()=>import(`./vendor-icon-trending-up-CBQiG1_M.js`).then(e=>e.n),[],import.meta.url),"triangle-alert":()=>n(()=>import(`./vendor-icon-triangle-alert-D5n0T3q_.js`).then(e=>e.n),[],import.meta.url),"alert-triangle":()=>n(()=>import(`./vendor-icon-triangle-alert-D5n0T3q_.js`).then(e=>e.n),[],import.meta.url),"triangle-dashed":()=>n(()=>import(`./vendor-icon-triangle-dashed-DrXR8sXX.js`).then(e=>e.t),[],import.meta.url),"triangle-right":()=>n(()=>import(`./vendor-icon-triangle-right-D2bO62J3.js`).then(e=>e.t),[],import.meta.url),triangle:()=>n(()=>import(`./vendor-icon-triangle-CvOt-kzA.js`).then(e=>e.t),[],import.meta.url),trophy:()=>n(()=>import(`./vendor-icon-trophy-Be_FzlZw.js`).then(e=>e.t),[],import.meta.url),"truck-electric":()=>n(()=>import(`./vendor-icon-truck-electric-BO7FECzv.js`).then(e=>e.t),[],import.meta.url),truck:()=>n(()=>import(`./vendor-icon-truck-CKBeYDeT.js`).then(e=>e.t),[],import.meta.url),"turkish-lira":()=>n(()=>import(`./vendor-icon-turkish-lira-B0VYRtit.js`).then(e=>e.t),[],import.meta.url),turntable:()=>n(()=>import(`./vendor-icon-turntable-DWDBxJlQ.js`).then(e=>e.t),[],import.meta.url),turtle:()=>n(()=>import(`./vendor-icon-turtle-BIghBTd6.js`).then(e=>e.t),[],import.meta.url),"tv-minimal-play":()=>n(()=>import(`./vendor-icon-tv-minimal-play-DxKEwzPg.js`).then(e=>e.t),[],import.meta.url),"tv-minimal":()=>n(()=>import(`./vendor-icon-tv-minimal-BHv8iFoL.js`).then(e=>e.t),[],import.meta.url),"tv-2":()=>n(()=>import(`./vendor-icon-tv-minimal-BHv8iFoL.js`).then(e=>e.t),[],import.meta.url),tv:()=>n(()=>import(`./vendor-icon-tv-B-Lq2pxe.js`).then(e=>e.t),[],import.meta.url),"type-outline":()=>n(()=>import(`./vendor-icon-type-outline-DKDRYc4u.js`).then(e=>e.t),[],import.meta.url),type:()=>n(()=>import(`./vendor-icon-type-DudTuHpS.js`).then(e=>e.n),[],import.meta.url),"umbrella-off":()=>n(()=>import(`./vendor-icon-umbrella-off-Cda7wAcE.js`).then(e=>e.t),[],import.meta.url),umbrella:()=>n(()=>import(`./vendor-icon-umbrella-5DMClU9N.js`).then(e=>e.t),[],import.meta.url),underline:()=>n(()=>import(`./vendor-icon-underline-BTpq-Tpa.js`).then(e=>e.t),[],import.meta.url),"undo-2":()=>n(()=>import(`./vendor-icon-undo-2-C9MbW2Vb.js`).then(e=>e.n),[],import.meta.url),"undo-dot":()=>n(()=>import(`./vendor-icon-undo-dot-B9L1SxqZ.js`).then(e=>e.t),[],import.meta.url),undo:()=>n(()=>import(`./vendor-icon-undo-BYbs5N8u.js`).then(e=>e.t),[],import.meta.url),"unfold-horizontal":()=>n(()=>import(`./vendor-icon-unfold-horizontal-CZ0ZJUCU.js`).then(e=>e.t),[],import.meta.url),"unfold-vertical":()=>n(()=>import(`./vendor-icon-unfold-vertical-YklPWvsg.js`).then(e=>e.t),[],import.meta.url),ungroup:()=>n(()=>import(`./vendor-icon-ungroup-DxMwEehp.js`).then(e=>e.t),[],import.meta.url),university:()=>n(()=>import(`./vendor-icon-university-DvJ487u0.js`).then(e=>e.t),[],import.meta.url),"school-2":()=>n(()=>import(`./vendor-icon-university-DvJ487u0.js`).then(e=>e.t),[],import.meta.url),"unlink-2":()=>n(()=>import(`./vendor-icon-unlink-2-Dmc8aH0u.js`).then(e=>e.t),[],import.meta.url),unlink:()=>n(()=>import(`./vendor-icon-unlink-D3-6uLHt.js`).then(e=>e.t),[],import.meta.url),unplug:()=>n(()=>import(`./vendor-icon-unplug-BgYklMNm.js`).then(e=>e.n),[],import.meta.url),upload:()=>n(()=>import(`./vendor-icon-upload-BZ3rElxe.js`).then(e=>e.n),[],import.meta.url),"usb-c-port":()=>n(()=>import(`./vendor-icon-usb-c-port-CBwJMlr4.js`).then(e=>e.t),[],import.meta.url),usb:()=>n(()=>import(`./vendor-icon-usb-ZegslMc5.js`).then(e=>e.t),[],import.meta.url),"user-check":()=>n(()=>import(`./vendor-icon-user-check-DDH3nUIb.js`).then(e=>e.n),[],import.meta.url),"user-cog":()=>n(()=>import(`./vendor-icon-user-cog-CxEO2E4A.js`).then(e=>e.n),[],import.meta.url),"user-group":()=>n(()=>import(`./vendor-icon-user-group-DX3V_vMr.js`).then(e=>e.t),[],import.meta.url),"user-key":()=>n(()=>import(`./vendor-icon-user-key-GyT_XMX_.js`).then(e=>e.t),[],import.meta.url),"user-lock":()=>n(()=>import(`./vendor-icon-user-lock-Duyge8TM.js`).then(e=>e.t),[],import.meta.url),"user-minus":()=>n(()=>import(`./vendor-icon-user-minus-BDwGdstz.js`).then(e=>e.n),[],import.meta.url),"user-pen":()=>n(()=>import(`./vendor-icon-user-pen-DYR9LtcO.js`).then(e=>e.t),[],import.meta.url),"user-plus":()=>n(()=>import(`./vendor-icon-user-plus-1ljXV3i6.js`).then(e=>e.t),[],import.meta.url),"user-round-arrow-left":()=>n(()=>import(`./vendor-icon-user-round-arrow-left-sKhUpTg2.js`).then(e=>e.t),[],import.meta.url),"user-round-check":()=>n(()=>import(`./vendor-icon-user-round-check-DbqVA-AY.js`).then(e=>e.t),[],import.meta.url),"user-check-2":()=>n(()=>import(`./vendor-icon-user-round-check-DbqVA-AY.js`).then(e=>e.t),[],import.meta.url),"user-round-cog":()=>n(()=>import(`./vendor-icon-user-round-cog-DAbuuaTt.js`).then(e=>e.t),[],import.meta.url),"user-cog-2":()=>n(()=>import(`./vendor-icon-user-round-cog-DAbuuaTt.js`).then(e=>e.t),[],import.meta.url),"user-round-group":()=>n(()=>import(`./vendor-icon-user-round-group-CMqm_tK4.js`).then(e=>e.t),[],import.meta.url),"user-round-key":()=>n(()=>import(`./vendor-icon-user-round-key-CYgGozSQ.js`).then(e=>e.t),[],import.meta.url),"user-round-minus":()=>n(()=>import(`./vendor-icon-user-round-minus-5AbZfrWr.js`).then(e=>e.t),[],import.meta.url),"user-minus-2":()=>n(()=>import(`./vendor-icon-user-round-minus-5AbZfrWr.js`).then(e=>e.t),[],import.meta.url),"user-round-pen":()=>n(()=>import(`./vendor-icon-user-round-pen-DBbQHkjX.js`).then(e=>e.t),[],import.meta.url),"user-round-plus":()=>n(()=>import(`./vendor-icon-user-round-plus-BCZa8zJ0.js`).then(e=>e.t),[],import.meta.url),"user-plus-2":()=>n(()=>import(`./vendor-icon-user-round-plus-BCZa8zJ0.js`).then(e=>e.t),[],import.meta.url),"user-round-search":()=>n(()=>import(`./vendor-icon-user-round-search-BjR--2J_.js`).then(e=>e.t),[],import.meta.url),"user-round-x":()=>n(()=>import(`./vendor-icon-user-round-x-Caz4D21A.js`).then(e=>e.t),[],import.meta.url),"user-x-2":()=>n(()=>import(`./vendor-icon-user-round-x-Caz4D21A.js`).then(e=>e.t),[],import.meta.url),"user-round":()=>n(()=>import(`./vendor-icon-user-round-CBtoSPwz.js`).then(e=>e.t),[],import.meta.url),"user-2":()=>n(()=>import(`./vendor-icon-user-round-CBtoSPwz.js`).then(e=>e.t),[],import.meta.url),"user-search":()=>n(()=>import(`./vendor-icon-user-search-CJAICQuu.js`).then(e=>e.t),[],import.meta.url),"user-shield":()=>n(()=>import(`./vendor-icon-user-shield-DW7FjVOL.js`).then(e=>e.t),[],import.meta.url),"user-star":()=>n(()=>import(`./vendor-icon-user-star-CHPHhv3l.js`).then(e=>e.t),[],import.meta.url),"user-x":()=>n(()=>import(`./vendor-icon-user-x-D6sNOjSU.js`).then(e=>e.t),[],import.meta.url),user:()=>n(()=>import(`./vendor-icon-user-IWwlLQut.js`).then(e=>e.n),[],import.meta.url),"users-round":()=>n(()=>import(`./vendor-icon-users-round-CZb-lgfe.js`).then(e=>e.t),[],import.meta.url),"users-2":()=>n(()=>import(`./vendor-icon-users-round-CZb-lgfe.js`).then(e=>e.t),[],import.meta.url),users:()=>n(()=>import(`./vendor-icon-users-Db5uTXC8.js`).then(e=>e.n),[],import.meta.url),"utensils-crossed":()=>n(()=>import(`./vendor-icon-utensils-crossed-CM6o1Sgg.js`).then(e=>e.t),[],import.meta.url),"fork-knife-crossed":()=>n(()=>import(`./vendor-icon-utensils-crossed-CM6o1Sgg.js`).then(e=>e.t),[],import.meta.url),utensils:()=>n(()=>import(`./vendor-icon-utensils-8ruA_58K.js`).then(e=>e.t),[],import.meta.url),"fork-knife":()=>n(()=>import(`./vendor-icon-utensils-8ruA_58K.js`).then(e=>e.t),[],import.meta.url),"utility-pole":()=>n(()=>import(`./vendor-icon-utility-pole-CkOEPuy4.js`).then(e=>e.t),[],import.meta.url),van:()=>n(()=>import(`./vendor-icon-van-mXdXGva9.js`).then(e=>e.t),[],import.meta.url),variable:()=>n(()=>import(`./vendor-icon-variable-BIgoZQoz.js`).then(e=>e.n),[],import.meta.url),vault:()=>n(()=>import(`./vendor-icon-vault-Cf1ZgQUf.js`).then(e=>e.t),[],import.meta.url),"vector-polygon":()=>n(()=>import(`./vendor-icon-vector-polygon-DKKEuki8.js`).then(e=>e.t),[],import.meta.url),"vector-square":()=>n(()=>import(`./vendor-icon-vector-square-CyXAxpcx.js`).then(e=>e.t),[],import.meta.url),vegan:()=>n(()=>import(`./vendor-icon-vegan-BIja3Abu.js`).then(e=>e.t),[],import.meta.url),"venetian-mask":()=>n(()=>import(`./vendor-icon-venetian-mask-yecUNHJF.js`).then(e=>e.t),[],import.meta.url),"venus-and-mars":()=>n(()=>import(`./vendor-icon-venus-and-mars-sVL3fOEP.js`).then(e=>e.t),[],import.meta.url),venus:()=>n(()=>import(`./vendor-icon-venus-DAZyqTJ_.js`).then(e=>e.t),[],import.meta.url),"vibrate-off":()=>n(()=>import(`./vendor-icon-vibrate-off-BXOZ5eJm.js`).then(e=>e.t),[],import.meta.url),vibrate:()=>n(()=>import(`./vendor-icon-vibrate-BNIHOgop.js`).then(e=>e.t),[],import.meta.url),"video-off":()=>n(()=>import(`./vendor-icon-video-off-BaahjxAn.js`).then(e=>e.t),[],import.meta.url),video:()=>n(()=>import(`./vendor-icon-video-CQRLIFJF.js`).then(e=>e.n),[],import.meta.url),videotape:()=>n(()=>import(`./vendor-icon-videotape-3dUoY8KF.js`).then(e=>e.t),[],import.meta.url),view:()=>n(()=>import(`./vendor-icon-view-Cw25K0P8.js`).then(e=>e.t),[],import.meta.url),"virus-off":()=>n(()=>import(`./vendor-icon-virus-off-CcNwr2qZ.js`).then(e=>e.t),[],import.meta.url),virus:()=>n(()=>import(`./vendor-icon-virus-1wlAHtFn.js`).then(e=>e.t),[],import.meta.url),voicemail:()=>n(()=>import(`./vendor-icon-voicemail-Ds4l7Yl7.js`).then(e=>e.t),[],import.meta.url),volleyball:()=>n(()=>import(`./vendor-icon-volleyball-BP5-FC1f.js`).then(e=>e.t),[],import.meta.url),"volume-1":()=>n(()=>import(`./vendor-icon-volume-1-D0w-9PG0.js`).then(e=>e.t),[],import.meta.url),"volume-2":()=>n(()=>import(`./vendor-icon-volume-2-BtfjmuRe.js`).then(e=>e.t),[],import.meta.url),"volume-off":()=>n(()=>import(`./vendor-icon-volume-off-vD0DJzAc.js`).then(e=>e.t),[],import.meta.url),"volume-x":()=>n(()=>import(`./vendor-icon-volume-x-UFJlPmUQ.js`).then(e=>e.t),[],import.meta.url),volume:()=>n(()=>import(`./vendor-icon-volume-CQrQBnNr.js`).then(e=>e.t),[],import.meta.url),vote:()=>n(()=>import(`./vendor-icon-vote-DTH9eYVI.js`).then(e=>e.t),[],import.meta.url),"wallet-cards":()=>n(()=>import(`./vendor-icon-wallet-cards-DnZV2ppM.js`).then(e=>e.t),[],import.meta.url),"wallet-minimal":()=>n(()=>import(`./vendor-icon-wallet-minimal-BWSDLJBg.js`).then(e=>e.t),[],import.meta.url),"wallet-2":()=>n(()=>import(`./vendor-icon-wallet-minimal-BWSDLJBg.js`).then(e=>e.t),[],import.meta.url),wallet:()=>n(()=>import(`./vendor-icon-wallet-Sng3F0Ed.js`).then(e=>e.t),[],import.meta.url),wallpaper:()=>n(()=>import(`./vendor-icon-wallpaper-CDH8u2lF.js`).then(e=>e.t),[],import.meta.url),"wand-sparkles":()=>n(()=>import(`./vendor-icon-wand-sparkles-DGBfehuR.js`).then(e=>e.n),[],import.meta.url),"wand-2":()=>n(()=>import(`./vendor-icon-wand-sparkles-DGBfehuR.js`).then(e=>e.n),[],import.meta.url),wand:()=>n(()=>import(`./vendor-icon-wand-Ckc-PUC4.js`).then(e=>e.t),[],import.meta.url),warehouse:()=>n(()=>import(`./vendor-icon-warehouse-DfrDcFKu.js`).then(e=>e.t),[],import.meta.url),"washing-machine":()=>n(()=>import(`./vendor-icon-washing-machine-ULNCtSeM.js`).then(e=>e.t),[],import.meta.url),watch:()=>n(()=>import(`./vendor-icon-watch-5hwKhM52.js`).then(e=>e.t),[],import.meta.url),"waves-arrow-down":()=>n(()=>import(`./vendor-icon-waves-arrow-down-DwW6MDxa.js`).then(e=>e.t),[],import.meta.url),"waves-arrow-up":()=>n(()=>import(`./vendor-icon-waves-arrow-up-DuwvvgkL.js`).then(e=>e.t),[],import.meta.url),"waves-horizontal":()=>n(()=>import(`./vendor-icon-waves-horizontal-DNl1SWWx.js`).then(e=>e.t),[],import.meta.url),waves:()=>n(()=>import(`./vendor-icon-waves-horizontal-DNl1SWWx.js`).then(e=>e.t),[],import.meta.url),"waves-ladder":()=>n(()=>import(`./vendor-icon-waves-ladder-Bkoi1nxT.js`).then(e=>e.t),[],import.meta.url),"waves-vertical":()=>n(()=>import(`./vendor-icon-waves-vertical-BJ7e5rqD.js`).then(e=>e.t),[],import.meta.url),waypoints:()=>n(()=>import(`./vendor-icon-waypoints-BZM6qFLh.js`).then(e=>e.t),[],import.meta.url),"webcam-off":()=>n(()=>import(`./vendor-icon-webcam-off-S3ORn4vP.js`).then(e=>e.t),[],import.meta.url),webcam:()=>n(()=>import(`./vendor-icon-webcam-BzfnQSvD.js`).then(e=>e.t),[],import.meta.url),"webhook-off":()=>n(()=>import(`./vendor-icon-webhook-off-CBl7ttOO.js`).then(e=>e.t),[],import.meta.url),webhook:()=>n(()=>import(`./vendor-icon-webhook-B43SyK1w.js`).then(e=>e.n),[],import.meta.url),"weight-tilde":()=>n(()=>import(`./vendor-icon-weight-tilde-DYvlrGcB.js`).then(e=>e.t),[],import.meta.url),weight:()=>n(()=>import(`./vendor-icon-weight-BpSSbRek.js`).then(e=>e.t),[],import.meta.url),"wheat-off":()=>n(()=>import(`./vendor-icon-wheat-off-CEToO2T-.js`).then(e=>e.t),[],import.meta.url),wheat:()=>n(()=>import(`./vendor-icon-wheat-DBLMopjf.js`).then(e=>e.t),[],import.meta.url),whistle:()=>n(()=>import(`./vendor-icon-whistle-fqK7zkwo.js`).then(e=>e.t),[],import.meta.url),"whole-word":()=>n(()=>import(`./vendor-icon-whole-word-CyN0Qegg.js`).then(e=>e.t),[],import.meta.url),"wifi-cog":()=>n(()=>import(`./vendor-icon-wifi-cog-Bsivqe5M.js`).then(e=>e.t),[],import.meta.url),"wifi-high":()=>n(()=>import(`./vendor-icon-wifi-high-DyLSzMwN.js`).then(e=>e.t),[],import.meta.url),"wifi-low":()=>n(()=>import(`./vendor-icon-wifi-low-DGLaLJvE.js`).then(e=>e.t),[],import.meta.url),"wifi-off":()=>n(()=>import(`./vendor-icon-wifi-off-BnMfEHbG.js`).then(e=>e.n),[],import.meta.url),"wifi-pen":()=>n(()=>import(`./vendor-icon-wifi-pen-BmjgxU41.js`).then(e=>e.t),[],import.meta.url),"wifi-sync":()=>n(()=>import(`./vendor-icon-wifi-sync-C-X_L1tr.js`).then(e=>e.t),[],import.meta.url),"wifi-zero":()=>n(()=>import(`./vendor-icon-wifi-zero-CONWYUX5.js`).then(e=>e.t),[],import.meta.url),wifi:()=>n(()=>import(`./vendor-icon-wifi-BG4MfGMg.js`).then(e=>e.t),[],import.meta.url),"wind-arrow-down":()=>n(()=>import(`./vendor-icon-wind-arrow-down-oXneUP8G.js`).then(e=>e.t),[],import.meta.url),wind:()=>n(()=>import(`./vendor-icon-wind-BpRT8LNj.js`).then(e=>e.t),[],import.meta.url),"wine-off":()=>n(()=>import(`./vendor-icon-wine-off-Bcg0i5Hj.js`).then(e=>e.t),[],import.meta.url),wine:()=>n(()=>import(`./vendor-icon-wine-DjzbxQbE.js`).then(e=>e.t),[],import.meta.url),workflow:()=>n(()=>import(`./vendor-icon-workflow-B9ASq0nN.js`).then(e=>e.n),[],import.meta.url),worm:()=>n(()=>import(`./vendor-icon-worm-uKBfgNA6.js`).then(e=>e.t),[],import.meta.url),"wrench-off":()=>n(()=>import(`./vendor-icon-wrench-off-CgW_teBy.js`).then(e=>e.t),[],import.meta.url),wrench:()=>n(()=>import(`./vendor-icon-wrench-BX7gnYSA.js`).then(e=>e.n),[],import.meta.url),"x-line-top":()=>n(()=>import(`./vendor-icon-x-line-top-CNDcKSwh.js`).then(e=>e.t),[],import.meta.url),x:()=>n(()=>import(`./vendor-icon-x-CcLtgRNL.js`).then(e=>e.n),[],import.meta.url),"zap-off":()=>n(()=>import(`./vendor-icon-zap-off-GiimEOkZ.js`).then(e=>e.n),[],import.meta.url),zap:()=>n(()=>import(`./vendor-icon-zap-3ulAPCbu.js`).then(e=>e.n),[],import.meta.url),"zodiac-aquarius":()=>n(()=>import(`./vendor-icon-zodiac-aquarius-BjxBo1MQ.js`).then(e=>e.t),[],import.meta.url),"zodiac-aries":()=>n(()=>import(`./vendor-icon-zodiac-aries-Bm5Ud-kH.js`).then(e=>e.t),[],import.meta.url),"zodiac-cancer":()=>n(()=>import(`./vendor-icon-zodiac-cancer-Dv4Z_meq.js`).then(e=>e.t),[],import.meta.url),"zodiac-capricorn":()=>n(()=>import(`./vendor-icon-zodiac-capricorn-D9qwsxxs.js`).then(e=>e.t),[],import.meta.url),"zodiac-gemini":()=>n(()=>import(`./vendor-icon-zodiac-gemini-BdleFI8U.js`).then(e=>e.t),[],import.meta.url),"zodiac-leo":()=>n(()=>import(`./vendor-icon-zodiac-leo-MYNoq836.js`).then(e=>e.t),[],import.meta.url),"zodiac-libra":()=>n(()=>import(`./vendor-icon-zodiac-libra-SSggqlft.js`).then(e=>e.t),[],import.meta.url),"zodiac-ophiuchus":()=>n(()=>import(`./vendor-icon-zodiac-ophiuchus-Bld6lcPy.js`).then(e=>e.t),[],import.meta.url),"zodiac-pisces":()=>n(()=>import(`./vendor-icon-zodiac-pisces-BpBV-psm.js`).then(e=>e.t),[],import.meta.url),"zodiac-sagittarius":()=>n(()=>import(`./vendor-icon-zodiac-sagittarius-DSm9L7c3.js`).then(e=>e.t),[],import.meta.url),"zodiac-scorpio":()=>n(()=>import(`./vendor-icon-zodiac-scorpio-BA1MKUUQ.js`).then(e=>e.t),[],import.meta.url),"zodiac-taurus":()=>n(()=>import(`./vendor-icon-zodiac-taurus-UtvriRd3.js`).then(e=>e.t),[],import.meta.url),"zodiac-virgo":()=>n(()=>import(`./vendor-icon-zodiac-virgo-2Jjk7Gzs.js`).then(e=>e.t),[],import.meta.url),"zoom-in":()=>n(()=>import(`./vendor-icon-zoom-in-ShI9ftXk.js`).then(e=>e.n),[],import.meta.url),"zoom-out":()=>n(()=>import(`./vendor-icon-zoom-out-IlqZRNIF.js`).then(e=>e.n),[],import.meta.url)},fx=Object.keys(dx);async function px(e){if(!(e in dx))throw Error(`[lucide-react]: Name in Lucide DynamicIcon not found`);let t=await dx[e]();if(t.__iconData!=null)return t.__iconData;throw Error(`[lucide-react]: Failed to resolve icon data for DynamicIcon`)}var mx=(0,K.forwardRef)(({name:e,fallback:t,...n},r)=>{let[i,a]=(0,K.useState)();return(0,K.useEffect)(()=>{px(e).then(a).catch(e=>{console.error(e)})},[e]),i==null?t==null?null:(0,K.createElement)(t):(0,K.createElement)(ri,{ref:r,...n,icon:i})}),hx=`AArrowDown:a-arrow-down,AArrowUp:a-arrow-up,ALargeSmall:a-large-small,Accessibility:accessibility,Activity:activity,Ad:ad,AirVent:air-vent,Airplay:airplay,AlarmClock:alarm-clock,AlarmClockCheck:alarm-clock-check,AlarmClockMinus:alarm-clock-minus,AlarmClockOff:alarm-clock-off,AlarmClockPlus:alarm-clock-plus,AlarmSmoke:alarm-smoke,Album:album,AlignCenterHorizontal:align-center-horizontal,AlignCenterVertical:align-center-vertical,AlignEndHorizontal:align-end-horizontal,AlignEndVertical:align-end-vertical,AlignHorizontalDistributeCenter:align-horizontal-distribute-center,AlignHorizontalDistributeEnd:align-horizontal-distribute-end,AlignHorizontalDistributeStart:align-horizontal-distribute-start,AlignHorizontalJustifyCenter:align-horizontal-justify-center,AlignHorizontalJustifyEnd:align-horizontal-justify-end,AlignHorizontalJustifyStart:align-horizontal-justify-start,AlignHorizontalSpaceAround:align-horizontal-space-around,AlignHorizontalSpaceBetween:align-horizontal-space-between,AlignStartHorizontal:align-start-horizontal,AlignStartVertical:align-start-vertical,AlignVerticalDistributeCenter:align-vertical-distribute-center,AlignVerticalDistributeEnd:align-vertical-distribute-end,AlignVerticalDistributeStart:align-vertical-distribute-start,AlignVerticalJustifyCenter:align-vertical-justify-center,AlignVerticalJustifyEnd:align-vertical-justify-end,AlignVerticalJustifyStart:align-vertical-justify-start,AlignVerticalSpaceAround:align-vertical-space-around,AlignVerticalSpaceBetween:align-vertical-space-between,Ambulance:ambulance,Ampersand:ampersand,Ampersands:ampersands,Amphora:amphora,Anchor:anchor,Angle:angle,Antenna:antenna,Anvil:anvil,Aperture:aperture,AppWindow:app-window,AppWindowMac:app-window-mac,Apple:apple,Archive:archive,ArchiveRestore:archive-restore,ArchiveX:archive-x,Armchair:armchair,ArrowBigDown:arrow-big-down,ArrowBigDownDash:arrow-big-down-dash,ArrowBigLeft:arrow-big-left,ArrowBigLeftDash:arrow-big-left-dash,ArrowBigRight:arrow-big-right,ArrowBigRightDash:arrow-big-right-dash,ArrowBigUp:arrow-big-up,ArrowBigUpDash:arrow-big-up-dash,ArrowDown:arrow-down,ArrowDown01:arrow-down-0-1,ArrowDown10:arrow-down-1-0,ArrowDownAZ:arrow-down-a-z,ArrowDownFromLine:arrow-down-from-line,ArrowDownLeft:arrow-down-left,ArrowDownNarrowWide:arrow-down-narrow-wide,ArrowDownRight:arrow-down-right,ArrowDownToDot:arrow-down-to-dot,ArrowDownToLine:arrow-down-to-line,ArrowDownUp:arrow-down-up,ArrowDownWideNarrow:arrow-down-wide-narrow,ArrowDownZA:arrow-down-z-a,ArrowLeft:arrow-left,ArrowLeftFromLine:arrow-left-from-line,ArrowLeftRight:arrow-left-right,ArrowLeftToLine:arrow-left-to-line,ArrowRight:arrow-right,ArrowRightFromLine:arrow-right-from-line,ArrowRightLeft:arrow-right-left,ArrowRightToLine:arrow-right-to-line,ArrowUp:arrow-up,ArrowUp01:arrow-up-0-1,ArrowUp10:arrow-up-1-0,ArrowUpAZ:arrow-up-a-z,ArrowUpDown:arrow-up-down,ArrowUpFromDot:arrow-up-from-dot,ArrowUpFromLine:arrow-up-from-line,ArrowUpLeft:arrow-up-left,ArrowUpNarrowWide:arrow-up-narrow-wide,ArrowUpRight:arrow-up-right,ArrowUpToLine:arrow-up-to-line,ArrowUpWideNarrow:arrow-up-wide-narrow,ArrowUpZA:arrow-up-z-a,ArrowsUpFromLine:arrows-up-from-line,Asterisk:asterisk,Astroid:astroid,AtSign:at-sign,Atom:atom,AudioLines:audio-lines,AudioLinesOff:audio-lines-off,AudioLinesX:audio-lines-x,AudioWaveform:audio-waveform,Award:award,Axe:axe,Axis3d:axis-3d,Baby:baby,Backpack:backpack,Badge:badge,BadgeAlert:badge-alert,BadgeCent:badge-cent,BadgeCheck:badge-check,BadgeDollarSign:badge-dollar-sign,BadgeEuro:badge-euro,BadgeIndianRupee:badge-indian-rupee,BadgeInfo:badge-info,BadgeJapaneseYen:badge-japanese-yen,BadgeMinus:badge-minus,BadgePercent:badge-percent,BadgePlus:badge-plus,BadgePoundSterling:badge-pound-sterling,BadgeQuestionMark:badge-question-mark,BadgeRussianRuble:badge-russian-ruble,BadgeSwissFranc:badge-swiss-franc,BadgeTurkishLira:badge-turkish-lira,BadgeX:badge-x,BaggageClaim:baggage-claim,Balloon:balloon,Ban:ban,Banana:banana,Bandage:bandage,Banknote:banknote,BanknoteArrowDown:banknote-arrow-down,BanknoteArrowUp:banknote-arrow-up,BanknoteCheck:banknote-check,BanknoteX:banknote-x,Barcode:barcode,Barrel:barrel,Baseline:baseline,Bath:bath,Battery:battery,BatteryCharging:battery-charging,BatteryFull:battery-full,BatteryLow:battery-low,BatteryMedium:battery-medium,BatteryPlus:battery-plus,BatteryWarning:battery-warning,Beaker:beaker,Bean:bean,BeanOff:bean-off,Bed:bed,BedDouble:bed-double,BedSingle:bed-single,Beef:beef,BeefOff:beef-off,Beer:beer,BeerOff:beer-off,Bell:bell,BellCheck:bell-check,BellDot:bell-dot,BellElectric:bell-electric,BellMinus:bell-minus,BellOff:bell-off,BellPlus:bell-plus,BellRing:bell-ring,BetweenHorizontalEnd:between-horizontal-end,BetweenHorizontalStart:between-horizontal-start,BetweenVerticalEnd:between-vertical-end,BetweenVerticalStart:between-vertical-start,BicepsFlexed:biceps-flexed,Bike:bike,Binary:binary,Binoculars:binoculars,Biohazard:biohazard,Bird:bird,Birdhouse:birdhouse,Bitcoin:bitcoin,Blend:blend,Blender:blender,Blinds:blinds,Blocks:blocks,Bluetooth:bluetooth,BluetoothConnected:bluetooth-connected,BluetoothOff:bluetooth-off,BluetoothSearching:bluetooth-searching,Bold:bold,Bolt:bolt,Bomb:bomb,Bone:bone,BoneFracture:bone-fracture,Book:book,BookA:book-a,BookAlert:book-alert,BookAudio:book-audio,BookCheck:book-check,BookCopy:book-copy,BookDashed:book-dashed,BookDown:book-down,BookHeadphones:book-headphones,BookHeart:book-heart,BookImage:book-image,BookKey:book-key,BookLock:book-lock,BookMarked:book-marked,BookMinus:book-minus,BookOpen:book-open,BookOpenCheck:book-open-check,BookOpenText:book-open-text,BookPlus:book-plus,BookSearch:book-search,BookText:book-text,BookType:book-type,BookUp:book-up,BookUp2:book-up-2,BookUser:book-user,BookX:book-x,Bookmark:bookmark,BookmarkCheck:bookmark-check,BookmarkMinus:bookmark-minus,BookmarkOff:bookmark-off,BookmarkPlus:bookmark-plus,BookmarkX:bookmark-x,BoomBox:boom-box,Bot:bot,BotMessageSquare:bot-message-square,BotOff:bot-off,BottleWine:bottle-wine,BowArrow:bow-arrow,Box:box,Boxes:boxes,Braces:braces,Brackets:brackets,Brain:brain,BrainCircuit:brain-circuit,BrainCog:brain-cog,BrickWall:brick-wall,BrickWallFire:brick-wall-fire,BrickWallShield:brick-wall-shield,Bridge:bridge,Briefcase:briefcase,BriefcaseBusiness:briefcase-business,BriefcaseConveyorBelt:briefcase-conveyor-belt,BriefcaseMedical:briefcase-medical,BringToFront:bring-to-front,Broccoli:broccoli,Broom:broom,BroomSparkles:broom-sparkles,Brush:brush,BrushCleaning:brush-cleaning,Bubbles:bubbles,Bug:bug,BugOff:bug-off,BugPlay:bug-play,Building:building,Building2:building-2,Bus:bus,BusFront:bus-front,Cable:cable,CableCar:cable-car,Cake:cake,CakeSlice:cake-slice,Calculator:calculator,Calendar:calendar,Calendar1:calendar-1,CalendarArrowDown:calendar-arrow-down,CalendarArrowUp:calendar-arrow-up,CalendarCheck:calendar-check,CalendarCheck2:calendar-check-2,CalendarClock:calendar-clock,CalendarCog:calendar-cog,CalendarDays:calendar-days,CalendarFold:calendar-fold,CalendarHeart:calendar-heart,CalendarMinus:calendar-minus,CalendarMinus2:calendar-minus-2,CalendarOff:calendar-off,CalendarPlus:calendar-plus,CalendarPlus2:calendar-plus-2,CalendarRange:calendar-range,CalendarSearch:calendar-search,CalendarSync:calendar-sync,CalendarX:calendar-x,CalendarX2:calendar-x-2,Calendars:calendars,Camera:camera,CameraOff:camera-off,Can:can,CanSoda:can-soda,Candy:candy,CandyCane:candy-cane,CandyOff:candy-off,Cannabis:cannabis,CannabisOff:cannabis-off,Captions:captions,CaptionsOff:captions-off,Car:car,CarBattery:car-battery,CarFront:car-front,CarTaxiFront:car-taxi-front,Caravan:caravan,CardSim:card-sim,Carrot:carrot,Carton:carton,CartonOff:carton-off,CaseLower:case-lower,CaseSensitive:case-sensitive,CaseUpper:case-upper,CassetteTape:cassette-tape,Cast:cast,Castle:castle,Cat:cat,Cctv:cctv,CctvOff:cctv-off,ChartArea:chart-area,ChartBar:chart-bar,ChartBarBig:chart-bar-big,ChartBarDecreasing:chart-bar-decreasing,ChartBarIncreasing:chart-bar-increasing,ChartBarStacked:chart-bar-stacked,ChartCandlestick:chart-candlestick,ChartColumn:chart-column,ChartColumnBig:chart-column-big,ChartColumnDecreasing:chart-column-decreasing,ChartColumnIncreasing:chart-column-increasing,ChartColumnStacked:chart-column-stacked,ChartGantt:chart-gantt,ChartLine:chart-line,ChartNetwork:chart-network,ChartNoAxesColumn:chart-no-axes-column,ChartNoAxesColumnDecreasing:chart-no-axes-column-decreasing,ChartNoAxesColumnIncreasing:chart-no-axes-column-increasing,ChartNoAxesCombined:chart-no-axes-combined,ChartNoAxesGantt:chart-no-axes-gantt,ChartPie:chart-pie,ChartScatter:chart-scatter,ChartSpline:chart-spline,Check:check,CheckCheck:check-check,CheckLine:check-line,ChefHat:chef-hat,Cherry:cherry,ChessBishop:chess-bishop,ChessKing:chess-king,ChessKnight:chess-knight,ChessPawn:chess-pawn,ChessQueen:chess-queen,ChessRook:chess-rook,ChevronDown:chevron-down,ChevronFirst:chevron-first,ChevronLast:chevron-last,ChevronLeft:chevron-left,ChevronRight:chevron-right,ChevronUp:chevron-up,ChevronsDown:chevrons-down,ChevronsDownUp:chevrons-down-up,ChevronsLeft:chevrons-left,ChevronsLeftRight:chevrons-left-right,ChevronsLeftRightEllipsis:chevrons-left-right-ellipsis,ChevronsRight:chevrons-right,ChevronsRightLeft:chevrons-right-left,ChevronsUp:chevrons-up,ChevronsUpDown:chevrons-up-down,Church:church,Cigarette:cigarette,CigaretteOff:cigarette-off,Circle:circle,CircleAlert:circle-alert,CircleArrowDown:circle-arrow-down,CircleArrowLeft:circle-arrow-left,CircleArrowOutDownLeft:circle-arrow-out-down-left,CircleArrowOutDownRight:circle-arrow-out-down-right,CircleArrowOutUpLeft:circle-arrow-out-up-left,CircleArrowOutUpRight:circle-arrow-out-up-right,CircleArrowRight:circle-arrow-right,CircleArrowUp:circle-arrow-up,CircleCheck:circle-check,CircleCheckBig:circle-check-big,CircleChevronDown:circle-chevron-down,CircleChevronLeft:circle-chevron-left,CircleChevronRight:circle-chevron-right,CircleChevronUp:circle-chevron-up,CircleDashed:circle-dashed,CircleDashedCheck:circle-dashed-check,CircleDivide:circle-divide,CircleDollarSign:circle-dollar-sign,CircleDot:circle-dot,CircleDotDashed:circle-dot-dashed,CircleEllipsis:circle-ellipsis,CircleEqual:circle-equal,CircleEuro:circle-euro,CircleFadingArrowUp:circle-fading-arrow-up,CircleFadingPlus:circle-fading-plus,CircleGauge:circle-gauge,CircleMinus:circle-minus,CircleOff:circle-off,CircleParking:circle-parking,CircleParkingOff:circle-parking-off,CirclePause:circle-pause,CirclePercent:circle-percent,CirclePile:circle-pile,CirclePlay:circle-play,CirclePlus:circle-plus,CirclePoundSterling:circle-pound-sterling,CirclePower:circle-power,CircleQuestionMark:circle-question-mark,CircleSlash:circle-slash,CircleSlash2:circle-slash-2,CircleSmall:circle-small,CircleStar:circle-star,CircleStop:circle-stop,CircleUser:circle-user,CircleUserRound:circle-user-round,CircleX:circle-x,CircuitBoard:circuit-board,Citrus:citrus,Clapperboard:clapperboard,Clipboard:clipboard,ClipboardCheck:clipboard-check,ClipboardClock:clipboard-clock,ClipboardCopy:clipboard-copy,ClipboardList:clipboard-list,ClipboardMinus:clipboard-minus,ClipboardPaste:clipboard-paste,ClipboardPen:clipboard-pen,ClipboardPenLine:clipboard-pen-line,ClipboardPlus:clipboard-plus,ClipboardType:clipboard-type,ClipboardX:clipboard-x,Clock:clock,Clock1:clock-1,Clock10:clock-10,Clock11:clock-11,Clock12:clock-12,Clock2:clock-2,Clock3:clock-3,Clock4:clock-4,Clock5:clock-5,Clock6:clock-6,Clock7:clock-7,Clock8:clock-8,Clock9:clock-9,ClockAlert:clock-alert,ClockArrowDown:clock-arrow-down,ClockArrowLeft:clock-arrow-left,ClockArrowRight:clock-arrow-right,ClockArrowUp:clock-arrow-up,ClockCheck:clock-check,ClockFading:clock-fading,ClockPlus:clock-plus,ClosedCaption:closed-caption,Cloud:cloud,CloudAlert:cloud-alert,CloudBackup:cloud-backup,CloudCheck:cloud-check,CloudCog:cloud-cog,CloudDownload:cloud-download,CloudDrizzle:cloud-drizzle,CloudFog:cloud-fog,CloudHail:cloud-hail,CloudLightning:cloud-lightning,CloudMoon:cloud-moon,CloudMoonRain:cloud-moon-rain,CloudOff:cloud-off,CloudRain:cloud-rain,CloudRainWind:cloud-rain-wind,CloudSnow:cloud-snow,CloudSun:cloud-sun,CloudSunRain:cloud-sun-rain,CloudSync:cloud-sync,CloudUpload:cloud-upload,Cloudy:cloudy,Clover:clover,Club:club,Code:code,CodeXml:code-xml,Coffee:coffee,Cog:cog,Coins:coins,Columns2:columns-2,Columns3:columns-3,Columns3Cog:columns-3-cog,Columns4:columns-4,Combine:combine,Command:command,Compass:compass,Component:component,Computer:computer,ConciergeBell:concierge-bell,Cone:cone,Construction:construction,Contact:contact,ContactRound:contact-round,Container:container,Contrast:contrast,Cookie:cookie,CookingPot:cooking-pot,Copy:copy,CopyCheck:copy-check,CopyMinus:copy-minus,CopyPlus:copy-plus,CopySlash:copy-slash,CopyX:copy-x,Copyleft:copyleft,Copyright:copyright,CornerDownLeft:corner-down-left,CornerDownRight:corner-down-right,CornerLeftDown:corner-left-down,CornerLeftUp:corner-left-up,CornerRightDown:corner-right-down,CornerRightUp:corner-right-up,CornerUpLeft:corner-up-left,CornerUpRight:corner-up-right,Cpu:cpu,CreativeCommons:creative-commons,CreditCard:credit-card,CreditCardCheck:credit-card-check,CreditCardMinus:credit-card-minus,CreditCardPlus:credit-card-plus,CreditCardReader:credit-card-reader,CreditCardX:credit-card-x,Croissant:croissant,Crop:crop,Cross:cross,Crosshair:crosshair,Crown:crown,Cuboid:cuboid,CupSoda:cup-soda,Currency:currency,Cylinder:cylinder,Dam:dam,Database:database,DatabaseArrowDown:database-arrow-down,DatabaseArrowUp:database-arrow-up,DatabaseBackup:database-backup,DatabaseCheck:database-check,DatabaseMinus:database-minus,DatabasePlus:database-plus,DatabaseSearch:database-search,DatabaseX:database-x,DatabaseZap:database-zap,DecimalsArrowLeft:decimals-arrow-left,DecimalsArrowRight:decimals-arrow-right,Delete:delete,Dessert:dessert,Diameter:diameter,Diamond:diamond,DiamondMinus:diamond-minus,DiamondPercent:diamond-percent,DiamondPlus:diamond-plus,Dice1:dice-1,Dice2:dice-2,Dice3:dice-3,Dice4:dice-4,Dice5:dice-5,Dice6:dice-6,Dices:dices,Diff:diff,Disc:disc,Disc2:disc-2,Disc3:disc-3,DiscAlbum:disc-album,Divide:divide,Dna:dna,DnaOff:dna-off,Dock:dock,Dog:dog,DollarSign:dollar-sign,Dome:dome,Donut:donut,DoorClosed:door-closed,DoorClosedLocked:door-closed-locked,DoorOpen:door-open,DoorStairwell:door-stairwell,Dot:dot,Download:download,DraftingCompass:drafting-compass,Drama:drama,Drill:drill,Drone:drone,Droplet:droplet,DropletOff:droplet-off,Droplets:droplets,Drum:drum,Drumstick:drumstick,Dumbbell:dumbbell,Ear:ear,EarOff:ear-off,Earth:earth,EarthLock:earth-lock,Eclipse:eclipse,Egg:egg,EggFried:egg-fried,EggOff:egg-off,Eject:eject,Ellipse:ellipse,Ellipsis:ellipsis,EllipsisVertical:ellipsis-vertical,Engine:engine,Equal:equal,EqualApproximately:equal-approximately,EqualApproximatelyNot:equal-approximately-not,EqualNot:equal-not,Eraser:eraser,EthernetPort:ethernet-port,Euro:euro,EvCharger:ev-charger,Expand:expand,ExternalLink:external-link,Eye:eye,EyeClosed:eye-closed,EyeDashed:eye-dashed,EyeOff:eye-off,FaceAngry:face-angry,FaceExpressionless:face-expressionless,FaceGrinning:face-grinning,FaceNeutral:face-neutral,FaceSlightlyFrowning:face-slightly-frowning,FaceSlightlySmiling:face-slightly-smiling,FaceSlightlySmilingPlus:face-slightly-smiling-plus,Factory:factory,Fan:fan,FastForward:fast-forward,Feather:feather,Fence:fence,FerrisWheel:ferris-wheel,File:file,FileArchive:file-archive,FileAxis3d:file-axis-3d,FileBadge:file-badge,FileBox:file-box,FileBraces:file-braces,FileBracesCorner:file-braces-corner,FileChartColumn:file-chart-column,FileChartColumnIncreasing:file-chart-column-increasing,FileChartLine:file-chart-line,FileChartPie:file-chart-pie,FileCheck:file-check,FileCheckCorner:file-check-corner,FileClock:file-clock,FileCode:file-code,FileCodeCorner:file-code-corner,FileCog:file-cog,FileDiff:file-diff,FileDigit:file-digit,FileDown:file-down,FileExclamationPoint:file-exclamation-point,FileHeadphone:file-headphone,FileHeart:file-heart,FileImage:file-image,FileInput:file-input,FileKey:file-key,FileLock:file-lock,FileMinus:file-minus,FileMinusCorner:file-minus-corner,FileMusic:file-music,FileOutput:file-output,FilePen:file-pen,FilePenLine:file-pen-line,FilePlay:file-play,FilePlus:file-plus,FilePlusCorner:file-plus-corner,FileQuestionMark:file-question-mark,FileScan:file-scan,FileSearch:file-search,FileSearchCorner:file-search-corner,FileSignal:file-signal,FileSliders:file-sliders,FileSpreadsheet:file-spreadsheet,FileStack:file-stack,FileSymlink:file-symlink,FileTerminal:file-terminal,FileText:file-text,FileType:file-type,FileTypeCorner:file-type-corner,FileUp:file-up,FileUser:file-user,FileVideoCamera:file-video-camera,FileVolume:file-volume,FileX:file-x,FileXCorner:file-x-corner,Files:files,Film:film,FingerprintPattern:fingerprint-pattern,FireExtinguisher:fire-extinguisher,Fish:fish,FishOff:fish-off,FishSymbol:fish-symbol,FishingHook:fishing-hook,FishingRod:fishing-rod,Flag:flag,FlagOff:flag-off,FlagTriangleLeft:flag-triangle-left,FlagTriangleRight:flag-triangle-right,Flame:flame,FlameKindling:flame-kindling,Flashlight:flashlight,FlashlightOff:flashlight-off,FlaskConical:flask-conical,FlaskConicalOff:flask-conical-off,FlaskRound:flask-round,FlipHorizontal2:flip-horizontal-2,FlipVertical2:flip-vertical-2,Flower:flower,Flower2:flower-2,Focus:focus,FoldHorizontal:fold-horizontal,FoldVertical:fold-vertical,Folder:folder,FolderArchive:folder-archive,FolderBookmark:folder-bookmark,FolderCheck:folder-check,FolderClock:folder-clock,FolderClosed:folder-closed,FolderCode:folder-code,FolderCog:folder-cog,FolderDot:folder-dot,FolderDown:folder-down,FolderGit:folder-git,FolderGit2:folder-git-2,FolderHeart:folder-heart,FolderInput:folder-input,FolderKanban:folder-kanban,FolderKey:folder-key,FolderLock:folder-lock,FolderMinus:folder-minus,FolderOpen:folder-open,FolderOpenDot:folder-open-dot,FolderOutput:folder-output,FolderPen:folder-pen,FolderPlus:folder-plus,FolderRoot:folder-root,FolderSearch:folder-search,FolderSearch2:folder-search-2,FolderSymlink:folder-symlink,FolderSync:folder-sync,FolderTree:folder-tree,FolderUp:folder-up,FolderX:folder-x,Folders:folders,Footprints:footprints,Forklift:forklift,Form:form,Forward:forward,Frame:frame,Fuel:fuel,Fullscreen:fullscreen,Funnel:funnel,FunnelPlus:funnel-plus,FunnelX:funnel-x,Galaxy:galaxy,GalleryHorizontal:gallery-horizontal,GalleryHorizontalEnd:gallery-horizontal-end,GalleryThumbnails:gallery-thumbnails,GalleryVertical:gallery-vertical,GalleryVerticalEnd:gallery-vertical-end,Gamepad:gamepad,Gamepad2:gamepad-2,GamepadDirectional:gamepad-directional,GapHorizontal:gap-horizontal,GapVertical:gap-vertical,Gauge:gauge,Gavel:gavel,Gem:gem,GeorgianLari:georgian-lari,Germ:germ,GermOff:germ-off,Ghost:ghost,Gift:gift,GitBranch:git-branch,GitBranchMinus:git-branch-minus,GitBranchPlus:git-branch-plus,GitCommitHorizontal:git-commit-horizontal,GitCommitVertical:git-commit-vertical,GitCompare:git-compare,GitCompareArrows:git-compare-arrows,GitFork:git-fork,GitGraph:git-graph,GitMerge:git-merge,GitMergeConflict:git-merge-conflict,GitPullRequest:git-pull-request,GitPullRequestArrow:git-pull-request-arrow,GitPullRequestClosed:git-pull-request-closed,GitPullRequestCreate:git-pull-request-create,GitPullRequestCreateArrow:git-pull-request-create-arrow,GitPullRequestDraft:git-pull-request-draft,GlassWater:glass-water,Glasses:glasses,Globe:globe,GlobeCheck:globe-check,GlobeLock:globe-lock,GlobeOff:globe-off,GlobeX:globe-x,Goal:goal,Gpu:gpu,GraduationCap:graduation-cap,Grape:grape,Grid2x2:grid-2x2,Grid2x2Check:grid-2x2-check,Grid2x2Plus:grid-2x2-plus,Grid2x2X:grid-2x2-x,Grid3x2:grid-3x2,Grid3x3:grid-3x3,Grip:grip,GripHorizontal:grip-horizontal,GripVertical:grip-vertical,Group:group,Guitar:guitar,Ham:ham,Hamburger:hamburger,Hammer:hammer,Hand:hand,HandCoins:hand-coins,HandFist:hand-fist,HandGrab:hand-grab,HandHeart:hand-heart,HandHelping:hand-helping,HandMetal:hand-metal,HandPlatter:hand-platter,Handbag:handbag,Handshake:handshake,HardDrive:hard-drive,HardDriveDownload:hard-drive-download,HardDriveUpload:hard-drive-upload,HardHat:hard-hat,Hash:hash,HatGlasses:hat-glasses,Haze:haze,Hd:hd,HdmiPort:hdmi-port,Heading:heading,Heading1:heading-1,Heading2:heading-2,Heading3:heading-3,Heading4:heading-4,Heading5:heading-5,Heading6:heading-6,HeadphoneOff:headphone-off,Headphones:headphones,Headset:headset,Heart:heart,HeartCrack:heart-crack,HeartHandshake:heart-handshake,HeartMinus:heart-minus,HeartOff:heart-off,HeartPlus:heart-plus,HeartPulse:heart-pulse,HeartX:heart-x,Heater:heater,Helicopter:helicopter,Hexagon:hexagon,Highlighter:highlighter,Hop:hop,HopOff:hop-off,Hospital:hospital,Hotel:hotel,Hourglass:hourglass,House:house,HouseHeart:house-heart,HousePlug:house-plug,HousePlus:house-plus,HouseWifi:house-wifi,IceCreamBowl:ice-cream-bowl,IceCreamCone:ice-cream-cone,IdCard:id-card,IdCardLanyard:id-card-lanyard,Image:image,ImageDown:image-down,ImageMinus:image-minus,ImageOff:image-off,ImagePlay:image-play,ImagePlus:image-plus,ImageUp:image-up,ImageUpscale:image-upscale,Images:images,Import:import,Inbox:inbox,IndianRupee:indian-rupee,Infinity:infinity,Info:info,InspectionPanel:inspection-panel,Italic:italic,IterationCcw:iteration-ccw,IterationCw:iteration-cw,JapaneseYen:japanese-yen,Joystick:joystick,Kanban:kanban,Kayak:kayak,Key:key,KeyRound:key-round,KeySquare:key-square,Keyboard:keyboard,KeyboardMusic:keyboard-music,KeyboardOff:keyboard-off,Lamp:lamp,LampCeiling:lamp-ceiling,LampDesk:lamp-desk,LampFloor:lamp-floor,LampWallDown:lamp-wall-down,LampWallUp:lamp-wall-up,LandPlot:land-plot,Landmark:landmark,Languages:languages,Laptop:laptop,LaptopMinimal:laptop-minimal,LaptopMinimalCheck:laptop-minimal-check,Lasso:lasso,LassoSelect:lasso-select,LayerArrowDown:layer-arrow-down,LayerArrowUp:layer-arrow-up,Layers:layers,Layers2:layers-2,LayersArrowDown:layers-arrow-down,LayersArrowUp:layers-arrow-up,LayersMinus:layers-minus,LayersPlus:layers-plus,LayoutDashboard:layout-dashboard,LayoutFreeform:layout-freeform,LayoutGrid:layout-grid,LayoutList:layout-list,LayoutPanelLeft:layout-panel-left,LayoutPanelTop:layout-panel-top,LayoutTemplate:layout-template,Leaf:leaf,LeafyGreen:leafy-green,Lectern:lectern,LensConcave:lens-concave,LensConvex:lens-convex,Library:library,LibraryBig:library-big,LifeBuoy:life-buoy,Ligature:ligature,Lightbulb:lightbulb,LightbulbOff:lightbulb-off,Lighthouse:lighthouse,LineDotRightHorizontal:line-dot-right-horizontal,LineSquiggle:line-squiggle,LineStyle:line-style,Link:link,Link2:link-2,Link2Off:link-2-off,List:list,ListCheck:list-check,ListChecks:list-checks,ListChevronsDownUp:list-chevrons-down-up,ListChevronsUpDown:list-chevrons-up-down,ListClock:list-clock,ListCollapse:list-collapse,ListEnd:list-end,ListFilter:list-filter,ListFilterPlus:list-filter-plus,ListIndentDecrease:list-indent-decrease,ListIndentIncrease:list-indent-increase,ListMinus:list-minus,ListMusic:list-music,ListOrdered:list-ordered,ListPlus:list-plus,ListRestart:list-restart,ListSortAscending:list-sort-ascending,ListSortDescending:list-sort-descending,ListStart:list-start,ListTodo:list-todo,ListTree:list-tree,ListVideo:list-video,ListX:list-x,Loader:loader,LoaderCircle:loader-circle,LoaderPinwheel:loader-pinwheel,Locate:locate,LocateFixed:locate-fixed,LocateOff:locate-off,Lock:lock,LockKeyhole:lock-keyhole,LockKeyholeOpen:lock-keyhole-open,LockOpen:lock-open,LogIn:log-in,LogOut:log-out,Logs:logs,Lollipop:lollipop,Luggage:luggage,Magnet:magnet,Mail:mail,MailBadge:mail-badge,MailCheck:mail-check,MailClock:mail-clock,MailMinus:mail-minus,MailOpen:mail-open,MailPen:mail-pen,MailPlus:mail-plus,MailQuestionMark:mail-question-mark,MailSearch:mail-search,MailWarning:mail-warning,MailX:mail-x,Mailbox:mailbox,Mails:mails,Map:map,MapMinus:map-minus,MapPin:map-pin,MapPinCheck:map-pin-check,MapPinCheckInside:map-pin-check-inside,MapPinHouse:map-pin-house,MapPinMinus:map-pin-minus,MapPinMinusInside:map-pin-minus-inside,MapPinOff:map-pin-off,MapPinPen:map-pin-pen,MapPinPlus:map-pin-plus,MapPinPlusInside:map-pin-plus-inside,MapPinSearch:map-pin-search,MapPinX:map-pin-x,MapPinXInside:map-pin-x-inside,MapPinned:map-pinned,MapPlus:map-plus,Mars:mars,MarsStroke:mars-stroke,Martini:martini,Maximize:maximize,Maximize2:maximize-2,Medal:medal,Megaphone:megaphone,MegaphoneOff:megaphone-off,MemoryStick:memory-stick,Menu:menu,Merge:merge,MessageCircle:message-circle,MessageCircleCheck:message-circle-check,MessageCircleCode:message-circle-code,MessageCircleDashed:message-circle-dashed,MessageCircleDashedCheck:message-circle-dashed-check,MessageCircleHeart:message-circle-heart,MessageCircleMore:message-circle-more,MessageCircleOff:message-circle-off,MessageCirclePlus:message-circle-plus,MessageCircleQuestionMark:message-circle-question-mark,MessageCircleReply:message-circle-reply,MessageCircleWarning:message-circle-warning,MessageCircleX:message-circle-x,MessageSquare:message-square,MessageSquareCheck:message-square-check,MessageSquareCode:message-square-code,MessageSquareDashed:message-square-dashed,MessageSquareDiff:message-square-diff,MessageSquareDot:message-square-dot,MessageSquareHeart:message-square-heart,MessageSquareLock:message-square-lock,MessageSquareMore:message-square-more,MessageSquareOff:message-square-off,MessageSquarePlus:message-square-plus,MessageSquareQuote:message-square-quote,MessageSquareReply:message-square-reply,MessageSquareShare:message-square-share,MessageSquareText:message-square-text,MessageSquareWarning:message-square-warning,MessageSquareX:message-square-x,MessagesSquare:messages-square,Metronome:metronome,Mic:mic,MicAudioLines:mic-audio-lines,MicOff:mic-off,MicSignal:mic-signal,MicVocal:mic-vocal,Microchip:microchip,Microscope:microscope,Microwave:microwave,MidiPort:midi-port,Milestone:milestone,Milk:milk,MilkOff:milk-off,Minimize:minimize,Minimize2:minimize-2,Minus:minus,MirrorRectangular:mirror-rectangular,MirrorRound:mirror-round,Monitor:monitor,MonitorCheck:monitor-check,MonitorCloud:monitor-cloud,MonitorCog:monitor-cog,MonitorDot:monitor-dot,MonitorDown:monitor-down,MonitorOff:monitor-off,MonitorPause:monitor-pause,MonitorPlay:monitor-play,MonitorSmartphone:monitor-smartphone,MonitorSpeaker:monitor-speaker,MonitorStop:monitor-stop,MonitorUp:monitor-up,MonitorX:monitor-x,Moon:moon,MoonStar:moon-star,Mop:mop,MopSparkles:mop-sparkles,Mosque:mosque,Motorbike:motorbike,Mountain:mountain,MountainSnow:mountain-snow,Mouse:mouse,MouseLeft:mouse-left,MouseOff:mouse-off,MousePointer:mouse-pointer,MousePointer2:mouse-pointer-2,MousePointer2Off:mouse-pointer-2-off,MousePointerBan:mouse-pointer-ban,MousePointerClick:mouse-pointer-click,MouseRight:mouse-right,Move:move,Move3d:move-3d,MoveDiagonal:move-diagonal,MoveDiagonal2:move-diagonal-2,MoveDown:move-down,MoveDownLeft:move-down-left,MoveDownRight:move-down-right,MoveHorizontal:move-horizontal,MoveLeft:move-left,MoveRight:move-right,MoveUp:move-up,MoveUpLeft:move-up-left,MoveUpRight:move-up-right,MoveVertical:move-vertical,Music:music,Music2:music-2,Music3:music-3,Music4:music-4,Navigation:navigation,Navigation2:navigation-2,Navigation2Off:navigation-2-off,NavigationOff:navigation-off,Network:network,Newspaper:newspaper,Nfc:nfc,NonBinary:non-binary,Notebook:notebook,NotebookPen:notebook-pen,NotebookTabs:notebook-tabs,NotebookText:notebook-text,NotepadText:notepad-text,NotepadTextDashed:notepad-text-dashed,Nut:nut,NutOff:nut-off,Octagon:octagon,OctagonAlert:octagon-alert,OctagonMinus:octagon-minus,OctagonPause:octagon-pause,OctagonX:octagon-x,Omega:omega,Option:option,Orbit:orbit,Origami:origami,Package:package,Package2:package-2,PackageCheck:package-check,PackageMinus:package-minus,PackageOpen:package-open,PackagePlus:package-plus,PackageSearch:package-search,PackageX:package-x,PaintBucket:paint-bucket,PaintRoller:paint-roller,Paintbrush:paintbrush,PaintbrushVertical:paintbrush-vertical,Palette:palette,Panda:panda,PanelBottom:panel-bottom,PanelBottomClose:panel-bottom-close,PanelBottomDashed:panel-bottom-dashed,PanelBottomOpen:panel-bottom-open,PanelLeft:panel-left,PanelLeftClose:panel-left-close,PanelLeftDashed:panel-left-dashed,PanelLeftOpen:panel-left-open,PanelLeftRightDashed:panel-left-right-dashed,PanelRight:panel-right,PanelRightClose:panel-right-close,PanelRightDashed:panel-right-dashed,PanelRightOpen:panel-right-open,PanelTop:panel-top,PanelTopBottomDashed:panel-top-bottom-dashed,PanelTopClose:panel-top-close,PanelTopDashed:panel-top-dashed,PanelTopOpen:panel-top-open,PanelsLeftBottom:panels-left-bottom,PanelsRightBottom:panels-right-bottom,PanelsTopLeft:panels-top-left,PaperBag:paper-bag,Paperclip:paperclip,Parasol:parasol,Parentheses:parentheses,ParkingMeter:parking-meter,PartyPopper:party-popper,Pause:pause,PawPrint:paw-print,PcCase:pc-case,Pen:pen,PenLine:pen-line,PenOff:pen-off,PenTool:pen-tool,Pencil:pencil,PencilLine:pencil-line,PencilOff:pencil-off,PencilRuler:pencil-ruler,PencilSparkles:pencil-sparkles,Pentagon:pentagon,Percent:percent,PersonStanding:person-standing,Phi:phi,PhilippinePeso:philippine-peso,Phone:phone,PhoneCall:phone-call,PhoneForwarded:phone-forwarded,PhoneIncoming:phone-incoming,PhoneMissed:phone-missed,PhoneOff:phone-off,PhoneOutgoing:phone-outgoing,Pi:pi,Piano:piano,Pickaxe:pickaxe,PictureInPicture:picture-in-picture,PictureInPicture2:picture-in-picture-2,PiggyBank:piggy-bank,Pilcrow:pilcrow,PilcrowLeft:pilcrow-left,PilcrowRight:pilcrow-right,Pill:pill,PillBottle:pill-bottle,Pin:pin,PinOff:pin-off,Pipette:pipette,Pizza:pizza,Plane:plane,PlaneLanding:plane-landing,PlaneTakeoff:plane-takeoff,Play:play,PlayOff:play-off,PlayingCard:playing-card,PlayingCards:playing-cards,PlayingCardsFan:playing-cards-fan,Plug:plug,Plug2:plug-2,PlugZap:plug-zap,Plus:plus,PocketKnife:pocket-knife,Podium:podium,Pointer:pointer,PointerOff:pointer-off,Popcorn:popcorn,Popsicle:popsicle,PoundSterling:pound-sterling,Power:power,PowerOff:power-off,Presentation:presentation,Printer:printer,PrinterCheck:printer-check,PrinterX:printer-x,Projector:projector,Proportions:proportions,Puzzle:puzzle,Pyramid:pyramid,QrCode:qr-code,Quote:quote,Rabbit:rabbit,Radar:radar,Radiation:radiation,Radical:radical,Radio:radio,RadioOff:radio-off,RadioReceiver:radio-receiver,RadioTower:radio-tower,Radius:radius,Rainbow:rainbow,Rat:rat,Ratio:ratio,Receipt:receipt,ReceiptCent:receipt-cent,ReceiptEuro:receipt-euro,ReceiptIndianRupee:receipt-indian-rupee,ReceiptJapaneseYen:receipt-japanese-yen,ReceiptPoundSterling:receipt-pound-sterling,ReceiptRussianRuble:receipt-russian-ruble,ReceiptSwissFranc:receipt-swiss-franc,ReceiptText:receipt-text,ReceiptTurkishLira:receipt-turkish-lira,RectangleCircle:rectangle-circle,RectangleEllipsis:rectangle-ellipsis,RectangleGoggles:rectangle-goggles,RectangleHorizontal:rectangle-horizontal,RectangleVertical:rectangle-vertical,Recycle:recycle,Redo:redo,Redo2:redo-2,RedoDot:redo-dot,RefreshCcw:refresh-ccw,RefreshCcwDot:refresh-ccw-dot,RefreshCw:refresh-cw,RefreshCwOff:refresh-cw-off,Refrigerator:refrigerator,Regex:regex,RemoveFormatting:remove-formatting,Repeat:repeat,Repeat1:repeat-1,Repeat2:repeat-2,RepeatOff:repeat-off,Replace:replace,ReplaceAll:replace-all,Reply:reply,ReplyAll:reply-all,Rewind:rewind,Ribbon:ribbon,Road:road,RobotArm:robot-arm,RobotVacuum:robot-vacuum,Rocket:rocket,RockingChair:rocking-chair,RollerCoaster:roller-coaster,Rose:rose,Rotate3d:rotate-3d,RotateCcw:rotate-ccw,RotateCcwClock:rotate-ccw-clock,RotateCcwKey:rotate-ccw-key,RotateCcwSquare:rotate-ccw-square,RotateCw:rotate-cw,RotateCwFadingClock:rotate-cw-fading-clock,RotateCwSquare:rotate-cw-square,Route:route,RouteOff:route-off,Router:router,Rows2:rows-2,Rows3:rows-3,Rows4:rows-4,Rss:rss,Ruler:ruler,RulerDimensionLine:ruler-dimension-line,RussianRuble:russian-ruble,Sailboat:sailboat,Salad:salad,Sandwich:sandwich,Satellite:satellite,SatelliteDish:satellite-dish,SaudiRiyal:saudi-riyal,Save:save,SaveAll:save-all,SaveCheck:save-check,SaveOff:save-off,SavePen:save-pen,SavePlus:save-plus,Scale:scale,Scale3d:scale-3d,Scaling:scaling,Scan:scan,ScanBarcode:scan-barcode,ScanBox:scan-box,ScanEye:scan-eye,ScanFace:scan-face,ScanHeart:scan-heart,ScanLine:scan-line,ScanQrCode:scan-qr-code,ScanSearch:scan-search,ScanSquare:scan-square,ScanText:scan-text,School:school,Scissors:scissors,ScissorsLineDashed:scissors-line-dashed,Scooter:scooter,ScreenShare:screen-share,ScreenShareOff:screen-share-off,Scroll:scroll,ScrollText:scroll-text,Search:search,SearchAlert:search-alert,SearchCheck:search-check,SearchCode:search-code,SearchSlash:search-slash,SearchX:search-x,Section:section,Send:send,SendHorizontal:send-horizontal,SendToBack:send-to-back,SeparatorHorizontal:separator-horizontal,SeparatorVertical:separator-vertical,Server:server,ServerCog:server-cog,ServerCrash:server-crash,ServerOff:server-off,ServerPlus:server-plus,Settings:settings,Settings2:settings-2,Shapes:shapes,Share:share,Share2:share-2,Sheet:sheet,Shell:shell,ShelvingUnit:shelving-unit,Shield:shield,ShieldAlert:shield-alert,ShieldBan:shield-ban,ShieldCheck:shield-check,ShieldCog:shield-cog,ShieldCogCorner:shield-cog-corner,ShieldEllipsis:shield-ellipsis,ShieldHalf:shield-half,ShieldKeyhole:shield-keyhole,ShieldLock:shield-lock,ShieldMinus:shield-minus,ShieldOff:shield-off,ShieldPlus:shield-plus,ShieldQuestionMark:shield-question-mark,ShieldUser:shield-user,ShieldX:shield-x,Ship:ship,ShipCargo:ship-cargo,ShipWheel:ship-wheel,Shirt:shirt,ShoppingBag:shopping-bag,ShoppingBasket:shopping-basket,ShoppingCart:shopping-cart,ShoppingCartMinus:shopping-cart-minus,ShoppingCartPlus:shopping-cart-plus,Shovel:shovel,ShowerHead:shower-head,Shredder:shredder,Shrimp:shrimp,ShrimpOff:shrimp-off,Shrink:shrink,Shrub:shrub,Shuffle:shuffle,Sigma:sigma,Signal:signal,SignalHigh:signal-high,SignalLow:signal-low,SignalMedium:signal-medium,SignalZero:signal-zero,Signature:signature,Signpost:signpost,SignpostBig:signpost-big,Siren:siren,SkipBack:skip-back,SkipForward:skip-forward,Skull:skull,Slash:slash,Slice:slice,SlidersHorizontal:sliders-horizontal,SlidersVertical:sliders-vertical,Smartphone:smartphone,SmartphoneCharging:smartphone-charging,SmartphoneNfc:smartphone-nfc,Snail:snail,Snowflake:snowflake,SoapDispenserDroplet:soap-dispenser-droplet,Sofa:sofa,SolarPanel:solar-panel,Soup:soup,Space:space,Spade:spade,Sparkle:sparkle,Sparkles:sparkles,Speaker:speaker,Speech:speech,SpellCheck:spell-check,SpellCheck2:spell-check-2,Spline:spline,SplinePointer:spline-pointer,Split:split,Spool:spool,SportShoe:sport-shoe,Spotlight:spotlight,SprayCan:spray-can,Sprout:sprout,Square:square,SquareActivity:square-activity,SquareArrowDown:square-arrow-down,SquareArrowDownLeft:square-arrow-down-left,SquareArrowDownRight:square-arrow-down-right,SquareArrowLeft:square-arrow-left,SquareArrowOutDownLeft:square-arrow-out-down-left,SquareArrowOutDownRight:square-arrow-out-down-right,SquareArrowOutUpLeft:square-arrow-out-up-left,SquareArrowOutUpRight:square-arrow-out-up-right,SquareArrowRight:square-arrow-right,SquareArrowRightEnter:square-arrow-right-enter,SquareArrowRightExit:square-arrow-right-exit,SquareArrowUp:square-arrow-up,SquareArrowUpLeft:square-arrow-up-left,SquareArrowUpRight:square-arrow-up-right,SquareAsterisk:square-asterisk,SquareBottomDashedScissors:square-bottom-dashed-scissors,SquareCenterlineDashedHorizontal:square-centerline-dashed-horizontal,SquareCenterlineDashedVertical:square-centerline-dashed-vertical,SquareChartGantt:square-chart-gantt,SquareCheck:square-check,SquareCheckBig:square-check-big,SquareChevronDown:square-chevron-down,SquareChevronLeft:square-chevron-left,SquareChevronRight:square-chevron-right,SquareChevronUp:square-chevron-up,SquareCode:square-code,SquareDashed:square-dashed,SquareDashedBottom:square-dashed-bottom,SquareDashedBottomCode:square-dashed-bottom-code,SquareDashedKanban:square-dashed-kanban,SquareDashedMousePointer:square-dashed-mouse-pointer,SquareDashedText:square-dashed-text,SquareDashedTopSolid:square-dashed-top-solid,SquareDimensions:square-dimensions,SquareDivide:square-divide,SquareDot:square-dot,SquareEqual:square-equal,SquareExclamationPoint:square-exclamation-point,SquareFunction:square-function,SquareKanban:square-kanban,SquareLibrary:square-library,SquareM:square-m,SquareMenu:square-menu,SquareMinus:square-minus,SquareMousePointer:square-mouse-pointer,SquareOff:square-off,SquareParking:square-parking,SquareParkingOff:square-parking-off,SquarePause:square-pause,SquarePen:square-pen,SquarePercent:square-percent,SquarePi:square-pi,SquarePilcrow:square-pilcrow,SquarePlay:square-play,SquarePlus:square-plus,SquarePower:square-power,SquareRadical:square-radical,SquareRoundCorner:square-round-corner,SquareScissors:square-scissors,SquareSigma:square-sigma,SquareSlash:square-slash,SquareSplitHorizontal:square-split-horizontal,SquareSplitVertical:square-split-vertical,SquareSquare:square-square,SquareStack:square-stack,SquareStar:square-star,SquareStop:square-stop,SquareTerminal:square-terminal,SquareText:square-text,SquareUser:square-user,SquareUserRound:square-user-round,SquareX:square-x,SquaresExclude:squares-exclude,SquaresIntersect:squares-intersect,SquaresSubtract:squares-subtract,SquaresUnite:squares-unite,Squircle:squircle,SquircleDashed:squircle-dashed,Squirrel:squirrel,Stamp:stamp,Star:star,StarCheck:star-check,StarHalf:star-half,StarMinus:star-minus,StarOff:star-off,StarPlus:star-plus,StarX:star-x,StepBack:step-back,StepForward:step-forward,Stethoscope:stethoscope,Sticker:sticker,StickyNote:sticky-note,StickyNoteCheck:sticky-note-check,StickyNoteMinus:sticky-note-minus,StickyNoteOff:sticky-note-off,StickyNotePlus:sticky-note-plus,StickyNoteX:sticky-note-x,StickyNotes:sticky-notes,Stone:stone,Store:store,StretchHorizontal:stretch-horizontal,StretchVertical:stretch-vertical,Strikethrough:strikethrough,Subscript:subscript,Summary:summary,Sun:sun,SunDim:sun-dim,SunMedium:sun-medium,SunMoon:sun-moon,SunSnow:sun-snow,Sunrise:sunrise,Sunset:sunset,Superscript:superscript,SwatchBook:swatch-book,SwissFranc:swiss-franc,SwitchCamera:switch-camera,Sword:sword,Swords:swords,Syringe:syringe,Table:table,Table2:table-2,TableCellsMerge:table-cells-merge,TableCellsSplit:table-cells-split,TableColumnsSplit:table-columns-split,TableOfContents:table-of-contents,TableProperties:table-properties,TableRowsSplit:table-rows-split,Tablet:tablet,TabletSmartphone:tablet-smartphone,Tablets:tablets,Tag:tag,TagPlus:tag-plus,TagX:tag-x,Tags:tags,Tally1:tally-1,Tally2:tally-2,Tally3:tally-3,Tally4:tally-4,Tally5:tally-5,Tangent:tangent,Target:target,Telescope:telescope,Tent:tent,TentTree:tent-tree,Terminal:terminal,TestTube:test-tube,TestTubeDiagonal:test-tube-diagonal,TestTubes:test-tubes,TextAlignCenter:text-align-center,TextAlignEnd:text-align-end,TextAlignJustify:text-align-justify,TextAlignStart:text-align-start,TextCursor:text-cursor,TextCursorInput:text-cursor-input,TextInitial:text-initial,TextQuote:text-quote,TextSearch:text-search,TextWrap:text-wrap,Theater:theater,Thermometer:thermometer,ThermometerSnowflake:thermometer-snowflake,ThermometerSun:thermometer-sun,ThumbsDown:thumbs-down,ThumbsUp:thumbs-up,TicTacToe:tic-tac-toe,Ticket:ticket,TicketCheck:ticket-check,TicketMinus:ticket-minus,TicketPercent:ticket-percent,TicketPlus:ticket-plus,TicketSlash:ticket-slash,TicketX:ticket-x,Tickets:tickets,TicketsPlane:tickets-plane,Timeline:timeline,Timer:timer,TimerOff:timer-off,TimerReset:timer-reset,ToggleLeft:toggle-left,ToggleRight:toggle-right,Toilet:toilet,ToolCase:tool-case,Toolbox:toolbox,Tornado:tornado,Torus:torus,Touchpad:touchpad,TouchpadOff:touchpad-off,TowelRack:towel-rack,TowerControl:tower-control,ToyBrick:toy-brick,Tractor:tractor,TrafficCone:traffic-cone,Trailer:trailer,TrainFront:train-front,TrainFrontTunnel:train-front-tunnel,TrainTrack:train-track,TramFront:tram-front,Transgender:transgender,Trash:trash,TrashOff:trash-off,TreeDeciduous:tree-deciduous,TreePalm:tree-palm,TreePine:tree-pine,Trees:trees,TrendingDown:trending-down,TrendingUp:trending-up,TrendingUpDown:trending-up-down,Triangle:triangle,TriangleAlert:triangle-alert,TriangleDashed:triangle-dashed,TriangleRight:triangle-right,Trophy:trophy,Truck:truck,TruckElectric:truck-electric,TurkishLira:turkish-lira,Turntable:turntable,Turtle:turtle,Tv:tv,TvMinimal:tv-minimal,TvMinimalPlay:tv-minimal-play,Type:type,TypeOutline:type-outline,Umbrella:umbrella,UmbrellaOff:umbrella-off,Underline:underline,Undo:undo,Undo2:undo-2,UndoDot:undo-dot,UnfoldHorizontal:unfold-horizontal,UnfoldVertical:unfold-vertical,Ungroup:ungroup,University:university,Unlink:unlink,Unlink2:unlink-2,Unplug:unplug,Upload:upload,Usb:usb,UsbCPort:usb-c-port,User:user,UserCheck:user-check,UserCog:user-cog,UserGroup:user-group,UserKey:user-key,UserLock:user-lock,UserMinus:user-minus,UserPen:user-pen,UserPlus:user-plus,UserRound:user-round,UserRoundArrowLeft:user-round-arrow-left,UserRoundCheck:user-round-check,UserRoundCog:user-round-cog,UserRoundGroup:user-round-group,UserRoundKey:user-round-key,UserRoundMinus:user-round-minus,UserRoundPen:user-round-pen,UserRoundPlus:user-round-plus,UserRoundSearch:user-round-search,UserRoundX:user-round-x,UserSearch:user-search,UserShield:user-shield,UserStar:user-star,UserX:user-x,Users:users,UsersRound:users-round,Utensils:utensils,UtensilsCrossed:utensils-crossed,UtilityPole:utility-pole,Van:van,Variable:variable,Vault:vault,VectorPolygon:vector-polygon,VectorSquare:vector-square,Vegan:vegan,VenetianMask:venetian-mask,Venus:venus,VenusAndMars:venus-and-mars,Vibrate:vibrate,VibrateOff:vibrate-off,Video:video,VideoOff:video-off,Videotape:videotape,View:view,Virus:virus,VirusOff:virus-off,Voicemail:voicemail,Volleyball:volleyball,Volume:volume,Volume1:volume-1,Volume2:volume-2,VolumeOff:volume-off,VolumeX:volume-x,Vote:vote,Wallet:wallet,WalletCards:wallet-cards,WalletMinimal:wallet-minimal,Wallpaper:wallpaper,Wand:wand,WandSparkles:wand-sparkles,Warehouse:warehouse,WashingMachine:washing-machine,Watch:watch,WavesArrowDown:waves-arrow-down,WavesArrowUp:waves-arrow-up,WavesHorizontal:waves-horizontal,WavesLadder:waves-ladder,WavesVertical:waves-vertical,Waypoints:waypoints,Webcam:webcam,WebcamOff:webcam-off,Webhook:webhook,WebhookOff:webhook-off,Weight:weight,WeightTilde:weight-tilde,Wheat:wheat,WheatOff:wheat-off,Whistle:whistle,WholeWord:whole-word,Wifi:wifi,WifiCog:wifi-cog,WifiHigh:wifi-high,WifiLow:wifi-low,WifiOff:wifi-off,WifiPen:wifi-pen,WifiSync:wifi-sync,WifiZero:wifi-zero,Wind:wind,WindArrowDown:wind-arrow-down,Wine:wine,WineOff:wine-off,Workflow:workflow,Worm:worm,Wrench:wrench,WrenchOff:wrench-off,X:x,XLineTop:x-line-top,Zap:zap,ZapOff:zap-off,ZodiacAquarius:zodiac-aquarius,ZodiacAries:zodiac-aries,ZodiacCancer:zodiac-cancer,ZodiacCapricorn:zodiac-capricorn,ZodiacGemini:zodiac-gemini,ZodiacLeo:zodiac-leo,ZodiacLibra:zodiac-libra,ZodiacOphiuchus:zodiac-ophiuchus,ZodiacPisces:zodiac-pisces,ZodiacSagittarius:zodiac-sagittarius,ZodiacScorpio:zodiac-scorpio,ZodiacTaurus:zodiac-taurus,ZodiacVirgo:zodiac-virgo,ZoomIn:zoom-in,ZoomOut:zoom-out`,gx={Home:`House`};function _x(e){return e.split(/[-_\s]+/).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(``)}var vx=null;function yx(e){if(vx===null){let e=new Map;for(let t of hx.split(`,`)){let n=t.indexOf(`:`);e.set(t.slice(0,n),t.slice(n+1))}vx=e}return vx.get(e)}function bx(e,t,n){return[`lucide-${e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase()}`,`lucide-${t}`,n].filter((e,t,n)=>!!e&&String(e).trim()!==``&&n.indexOf(e)===t).join(` `).trim()}var xx=[],Sx=new Map,Cx=new Map;function wx(e,t){let n=Cx.get(e);if(n)return n;let r=K.forwardRef(({className:n,...r},i)=>{let[a,o]=K.useState(()=>Sx.get(t));return K.useEffect(()=>{if(a!==void 0)return;let e=!0,n=dx[t];if(n)return n().then(n=>{let r=n.__iconData?.node??n.__iconNode;r&&(Sx.set(t,r),e&&o(r))}).catch(()=>{}),()=>{e=!1}},[a]),K.createElement(ri,{...r,ref:i,iconNode:a??xx,className:bx(e,t,n)})});r.displayName=e;let i=r;return Cx.set(e,i),i}function Tx(e){let t=_x(e);return{pascal:t,key:gx[t]||t}}function Ex(e){if(!e)return null;let t=Tx(e).key,n=yx(t);return n===void 0?null:wx(t,n)}var Dx=(0,K.forwardRef)(({schema:e,className:t,...n},r)=>{let{"data-obj-id":i,"data-obj-type":a,style:o,...s}=n,c=e.size?{width:e.size,height:e.size}:void 0,l=J(e.color,e.className,t),u=typeof e.icon==`string`?e.icon:``,d=typeof e.name==`string`&&e.name.length>0?e.name:``,{pascal:f,key:p}=Tx(u),m=u?Ex(u):void 0;return m?(0,q.jsx)(m,{ref:r,className:l,style:{...c,...o},...M(s),"data-obj-id":i,"data-obj-type":a}):(console.warn(`ui:icon: no lucide glyph resolves for ${u?`"${u}"`:`an absent icon name`}${u?` (lookup: "${f}"${p===f?``:` -> "${p}"`})`:``}. Rendering a visible placeholder instead of nothing (objectui#5631).`+(!u&&d?` This node names its glyph with the SDUI identity key \`name\` ("${d}"), which is no longer read as a glyph name. Rename it: \`icon: "${d}"\`. Stored metadata converts in bulk with \`migrateIconNodeKeys\` from \`@object-ui/types\`.`:``)),(0,q.jsx)(pa,{ref:r,role:`img`,"aria-label":u?`Unresolved icon: ${u}`:d?`Unresolved icon: \`name\` is no longer the icon key, rename it to \`icon\` (${d})`:`Unresolved icon`,className:l,style:{...c,...o},...M(s),"data-obj-id":i,"data-obj-type":a,"data-objectui-icon-unresolved":u||`(none)`,...!u&&d?{"data-objectui-icon-legacy-name-key":d}:{}}))});Dx.displayName=`IconRenderer`,U.register(`icon`,Dx,{namespace:`ui`,label:`Icon`,icon:`face-slightly-smiling`,category:`basic`,inputs:[{name:`icon`,type:`string`},{name:`size`,type:`number`},{name:`color`,type:`string`},{name:`className`,type:`string`}]}),U.register(`html`,({schema:e,className:t,...n})=>{let{"data-obj-id":r,"data-obj-type":i,style:a,...o}=n;return(0,q.jsx)(`div`,{className:J(`prose prose-sm max-w-none dark:prose-invert`,t),dangerouslySetInnerHTML:{__html:e.html},...o,"data-obj-id":r,"data-obj-type":i,style:a})},{namespace:`ui`,label:`HTML Content`,inputs:[{name:`html`,type:`string`,description:`Raw HTML content`}]});var Ox=new Set([`img`,`hr`,`br`]),kx=`h1.h2.h3.h4.h5.h6.p.a.blockquote.pre.code.strong.em.b.i.u.small.mark.sub.sup.del.ins.abbr.ul.ol.li.dl.dt.dd.figure.figcaption.img.hr.br.time.address.cite.q`.split(`.`),Ax={a:[{name:`href`,type:`string`},{name:`target`,type:`string`},{name:`rel`,type:`string`},{name:`title`,type:`string`}],img:[{name:`src`,type:`string`},{name:`alt`,type:`string`},{name:`width`,type:`number`},{name:`height`,type:`number`},{name:`title`,type:`string`}],time:[{name:`dateTime`,type:`string`}],abbr:[{name:`title`,type:`string`}],q:[{name:`cite`,type:`string`}],blockquote:[{name:`cite`,type:`string`}]};function jx(e){if(typeof e!=`string`)return;let t=e.trim();if(!/^(javascript|data|vbscript):/i.test(t))return t}function Mx(e){if(typeof e!=`string`||e.trim().length===0)return null;let t=e.trim();if(/^[a-z][a-z0-9+.-]*:/i.test(t)||t.startsWith(`//`)||t.startsWith(`#`))return null;try{let e=new URL(t,`https://internal.invalid/`);return e.pathname+e.search+e.hash}catch{return null}}for(let e of kx){let t=Ox.has(e),n=(0,K.forwardRef)(({schema:n,className:r,...i},a)=>{let{"data-obj-id":o,"data-obj-type":s,style:c,dangerouslySetInnerHTML:l,children:u,...d}=i,f={};for(let[e,t]of Object.entries(d))/^on[A-Z]/.test(e)||(f[e]=t);e===`a`&&`href`in f&&(f.href=jx(f.href));let p=(0,K.useContext)(Ge),m;if(e===`a`&&p){let e=Mx(f.href),t=typeof f.target==`string`?f.target:``;e&&(!t||t===`_self`)&&(m=t=>{t.defaultPrevented||t.button!==0||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||(t.preventDefault(),p.runner.execute({type:`url`,target:e,toast:{showOnSuccess:!1}}).then(e=>{e?.success&&e.redirect&&window.location.assign(e.redirect)}))})}return(0,K.createElement)(e,{ref:a,className:r,...f,...m?{onClick:m}:{},"data-obj-id":o,"data-obj-type":s,style:c},t?void 0:Y(n?.children))});n.displayName=`Html${e.charAt(0).toUpperCase()}${e.slice(1)}`,U.register(e,n,{namespace:`ui`,label:e.toUpperCase(),category:`basic`,inputs:[{name:`className`,type:`string`},...Ax[e]??[],...t?[]:[{name:`children`,type:`slot`}]]})}U.register(`button-group`,({schema:e,...t})=>{let{"data-obj-id":n,"data-obj-type":r,style:i,...a}=t;return(0,q.jsx)(`div`,{className:J(`flex flex-wrap sm:inline-flex rounded-md shadow-sm`,e.className),role:`group`,...a,"data-obj-id":n,"data-obj-type":r,style:i,children:e.buttons?.map((t,n)=>(0,q.jsx)(X,{variant:t.variant||e.variant,size:t.size||e.size,disabled:t.disabled,className:J(`rounded-none`,n===0&&`rounded-l-md`,n===(e.buttons?.length||0)-1&&`rounded-r-md`,n>0&&`-ml-px`,t.className),children:t.label},n))})},{namespace:`ui`,label:`Button Group`,inputs:[{name:`variant`,type:`enum`,enum:[`default`,`destructive`,`outline`,`secondary`,`ghost`,`link`]},{name:`size`,type:`enum`,enum:[`default`,`sm`,`lg`,`icon`]},{name:`className`,type:`string`}],defaultProps:{variant:`default`,size:`default`,buttons:[{label:`Left`},{label:`Middle`},{label:`Right`}]}}),U.register(`pagination`,({schema:e,...t})=>{let{"data-obj-id":n,"data-obj-type":r,style:i,onPageChange:a,...o}=t,s=e.currentPage||e.page||1,c=e.totalPages||1,l=(e,t)=>{t.preventDefault(),e!==s&&(e<1||e>c||a&&a(e))},u=()=>c<=7?Array.from({length:c},(e,t)=>t+1):s<=3?[1,2,3,4,5,-1,c]:s>=c-2?[1,-1,c-4,c-3,c-2,c-1,c]:[1,-1,s-1,s,s+1,-1,c];return(0,q.jsx)(iy,{className:e.className,...o,"data-obj-id":n,"data-obj-type":r,style:i,children:(0,q.jsxs)(ay,{children:[(0,q.jsx)(oy,{children:(0,q.jsx)(cy,{href:`#`,onClick:e=>l(s-1,e),className:s<=1?`pointer-events-none opacity-50`:`cursor-pointer`,"aria-disabled":s<=1})}),u().map((e,t)=>(0,q.jsx)(oy,{children:e===-1?(0,q.jsx)(uy,{}):(0,q.jsx)(sy,{href:`#`,isActive:e===s,onClick:t=>l(e,t),className:`cursor-pointer`,children:e})},t)),(0,q.jsx)(oy,{children:(0,q.jsx)(ly,{href:`#`,onClick:e=>l(s+1,e),className:s>=c?`pointer-events-none opacity-50`:`cursor-pointer`,"aria-disabled":s>=c})})]})})},{namespace:`ui`,label:`Pagination`,inputs:[{name:`currentPage`,type:`number`},{name:`totalPages`,type:`number`},{name:`className`,type:`string`}],defaultProps:{currentPage:1,totalPages:10}}),U.register(`navigation-menu`,({schema:e,...t})=>{let{"data-obj-id":n,"data-obj-type":r,style:i,...a}=t;return(0,q.jsx)(Yv,{className:e.className,...a,"data-obj-id":n,"data-obj-type":r,style:i,children:(0,q.jsx)(Xv,{children:e.items?.map((e,t)=>(0,q.jsx)(Zv,{children:e.children?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)($v,{children:e.label}),(0,q.jsx)(ey,{children:(0,q.jsx)(`ul`,{className:`grid w-full gap-3 p-4 sm:w-[400px] md:w-[500px] md:grid-cols-2 lg:w-[600px]`,children:e.children.map((e,t)=>(0,q.jsx)(`li`,{children:(0,q.jsx)(ty,{asChild:!0,children:(0,q.jsxs)(`a`,{className:J(`block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground`),href:e.href,children:[(0,q.jsx)(`div`,{className:`text-sm font-medium leading-none`,children:e.label}),e.description&&(0,q.jsx)(`p`,{className:`line-clamp-2 text-sm leading-snug text-muted-foreground`,children:e.description})]})})},t))})})]}):(0,q.jsx)(ty,{href:e.href,children:e.label})},t))})})},{namespace:`ui`,label:`Navigation Menu`,inputs:[{name:`className`,type:`string`}],defaultProps:{items:[{label:`Home`,href:`/`},{label:`About`,href:`/about`}]}});function Nx(e){return e.includes(`-`)?e.toLowerCase():e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).replace(/([A-Z]+)([A-Z][a-z])/g,`$1-$2`).replace(/(?<![0-9])([A-Za-z])([0-9])/g,`$1-$2`).toLowerCase()}var Px=new Set(fx);function Fx(e){return Px.has(e)}function Ix(e){return!!e&&Fx(Nx(e))}var Lx=new Map;function Rx(e){if(!e)return ki;let t=Lx.get(e);if(t)return t;let n=Nx(e);if(!Fx(n))return Lx.set(e,ki),ki;let r=e=>K.createElement(mx,{name:n,fallback:ki,...e});return r.displayName=`LucideIcon(${e})`,Lx.set(e,r),r}var zx=({name:e,...t})=>{if(!e)return K.createElement(ki,t);let n=Nx(e);return Fx(n)?K.createElement(mx,{name:n,fallback:ki,...t}):K.createElement(ki,t)};function Bx(e){let t=he(e?.props)?e.props:{},n=he(e?.properties)?e.properties:{};return{...t,...n}}function Vx(e){let t=e.properties;return he(t)&&he(t.params)?t.params:void 0}function Hx(e,t){let n=Vx(e),r=e.params;return he(r),n}function Ux(e,t){let n=e.properties;return he(n)?{...e,properties:t(n)}:e}function Wx(e,t){if(Vx(e))return Vx(Ux(e,t))}function Gx(e,t,n){let r=e.params;if(!(r==null||Array.isArray(r))){if(t===`api`)return r;he(r)}}function Kx(e){if(!e||typeof e!=`object`)return{};let t={};for(let[n,r]of Object.entries(e))r!=null&&(t[n.startsWith(`aria-`)||n===`role`?n:`aria-${n}`]=String(r));return t}var qx={left:`text-left`,center:`text-center`,right:`text-right`},Jx={heading:`text-2xl font-semibold tracking-tight`,subheading:`text-lg font-medium text-foreground`,body:`text-sm text-foreground`,caption:`text-xs text-muted-foreground`};function Yx({schema:e}){let t=Bx(e),{language:n}=Ct(),r=t.variant??`body`,i=t.align??`left`;return(0,q.jsx)(r===`heading`?`h2`:r===`subheading`?`h3`:`p`,{className:J(Jx[r]??Jx.body,qx[i],e?.className),...Kx(t.aria),children:bt(t.content,n)})}U.register(`text`,Yx,{namespace:`element`,skipFallback:!0,label:`Text`,category:`content`,inputs:[{name:`content`,type:[`string`,`object`],required:!0,description:`Accepts an inline translation map ({ en, "zh-CN", … })`},{name:`variant`,type:`enum`,enum:[`heading`,`subheading`,`body`,`caption`]},{name:`align`,type:`enum`,enum:[`left`,`center`,`right`]}]});function Xx({schema:e}){return(0,q.jsx)(Oy,{className:J(`my-4`,e?.className)})}U.register(`divider`,Xx,{namespace:`element`,skipFallback:!0,label:`Divider`,category:`content`});var Zx={cover:`object-cover`,contain:`object-contain`,fill:`object-fill`};function Qx({schema:e}){let t=Bx(e),n=t.fit??`cover`;return t.src?(0,q.jsx)(`img`,{src:t.src,alt:t.alt??``,className:J(`w-full rounded-md`,Zx[n]??Zx.cover,e?.className),style:t.height?{height:t.height}:void 0,...Kx(t.aria)}):(0,q.jsx)(`div`,{className:J(`flex items-center justify-center rounded-md border border-dashed bg-muted/30 text-xs text-muted-foreground`,e?.className),style:{height:t.height??120},children:`no image source`})}U.register(`image`,Qx,{namespace:`element`,skipFallback:!0,label:`Image`,category:`content`});var $x={primary:`default`,secondary:`secondary`,danger:`destructive`,ghost:`ghost`,link:`link`},eS={small:`sm`,medium:`default`,large:`lg`};function tS({schema:e}){let t=Bx(e),n=$x[t.variant??`primary`]??`default`,r=eS[t.size??`medium`]??`default`,{language:i}=Ct(),a=bt(t.label,i),o=t.iconPosition??`left`,s=t.icon?(0,q.jsx)(zx,{name:t.icon,className:`h-4 w-4`}):null,{execute:c}=Le(),[l,u]=K.useState(!1),d=t.action,f=K.useCallback(async()=>{if(d&&!l){u(!0);try{let e=Array.isArray(d.params)?{actionParams:d.params}:{params:Gx(d,d.actionType||d.type,`element:button`)};await c({type:d.actionType||d.type,name:d.name,label:d.label,description:d.description,target:d.target,openIn:d.openIn,endpoint:d.endpoint,method:d.method,navigate:d.navigate,to:d.to,opensInNewTab:d.opensInNewTab,bodyExtra:d.bodyExtra,confirmText:d.confirmText,successMessage:d.successMessage,errorMessage:d.errorMessage,refreshAfter:d.refreshAfter,...e})}finally{u(!1)}}},[d,c,l]);return(0,q.jsxs)(X,{type:`button`,variant:n,size:r,disabled:t.disabled||l,className:J(e?.className),onClick:d?f:void 0,...Kx(t.aria),children:[o===`left`&&s,a,o===`right`&&s]})}U.register(`button`,tS,{namespace:`element`,skipFallback:!0,label:`Button`,category:`action`,inputs:[{name:`label`,type:[`string`,`object`],required:!0,description:`Accepts an inline translation map ({ en, "zh-CN", … })`},{name:`action`,type:`object`,description:`Inline ActionDef executed on click (url / navigation / api / script / modal / flow); omitted → renders inert`},{name:`variant`,type:`enum`,enum:[`primary`,`secondary`,`danger`,`ghost`,`link`]},{name:`size`,type:`enum`,enum:[`small`,`medium`,`large`]},{name:`icon`,type:`string`,description:`Lucide icon name`},{name:`iconPosition`,type:`enum`,enum:[`left`,`right`]},{name:`disabled`,type:`boolean`}]});var nS={number:{},currency:{currency:`USD`},percent:{style:`percent`,maximumFractionDigits:1}};function rS(e,t,n,r,i,a){if(e==null||Number.isNaN(e))return`—`;let o=nS[t??`number`]??nS.number;t===`currency`&&(o=i?{...nS.currency,currency:i}:nS.number);let s=ut(e,{...o,locale:a});return`${n??``}${s}${r??``}`}function iS({schema:e}){let t=Bx(e),n=T(),{currency:r}=vt(),i=St(),[a,o]=K.useState(null),[s,c]=K.useState(!0),[l,u]=K.useState(null),d=De(),f=tt(t.filter,d),p=K.useMemo(()=>f?JSON.stringify(f):``,[f]),m=Oe(n&&t.aggregate?t.object:void 0);return K.useEffect(()=>{let e=!1;if(!n||!t.object||!t.aggregate){c(!1);return}return c(!0),u(null),(async()=>{try{if(typeof n.aggregate==`function`){let r=await n.aggregate(t.object,{field:t.field,function:t.aggregate,groupBy:`_all`,filter:f}),i=Array.isArray(r)?r[0]:r,a=t.aggregate===`count`?`count`:`${t.field??``}_${t.aggregate}`,s=i?.[a]??i?.[t.field??``]??i?.value??(typeof i==`number`?i:null);e||o(typeof s==`number`?s:s==null?null:Number(s))}else if(typeof n.find==`function`){let r=await n.find(t.object,f?{$filter:f}:void 0),i=r?.data??(Array.isArray(r)?r:[]),a=null;if(t.aggregate===`count`)a=i.length;else if(t.field){let e=i.map(e=>Number(e?.[t.field])).filter(e=>!Number.isNaN(e));e.length&&(t.aggregate===`sum`?a=e.reduce((e,t)=>e+t,0):t.aggregate===`avg`?a=e.reduce((e,t)=>e+t,0)/e.length:t.aggregate===`min`?a=Math.min(...e):t.aggregate===`max`&&(a=Math.max(...e)))}e||o(a)}}catch(t){e||u(t?.message??`aggregate failed`)}finally{e||c(!1)}})(),()=>{e=!0}},[n,t.object,t.field,t.aggregate,p,m]),(0,q.jsxs)(`div`,{className:J(`flex flex-col gap-1`,e?.className),...Kx(t.aria),children:[(0,q.jsx)(`div`,{className:`text-3xl font-semibold tracking-tight tabular-nums`,children:s?`…`:rS(a,t.format,t.prefix,t.suffix,r,i)}),l&&(0,q.jsx)(`div`,{className:`text-xs text-destructive`,children:l})]})}U.register(`number`,iS,{namespace:`element`,skipFallback:!0,label:`Number`,category:`content`,inputs:[{name:`object`,type:`string`,required:!0,description:`Object the aggregate runs over`},{name:`aggregate`,type:`enum`,enum:[`count`,`sum`,`avg`,`min`,`max`],required:!0},{name:`field`,type:`string`,description:`Measure field (required for every aggregate except count)`},{name:`filter`,type:`array`},{name:`format`,type:`enum`,enum:[`number`,`currency`,`percent`]},{name:`prefix`,type:`string`},{name:`suffix`,type:`string`}]});function aS(e,t){if(!e||!t)return;let n=e.fields;if(n)return Array.isArray(n)?n.find(e=>e?.name===t):n[t]}function oS({hint:e,icon:t,title:n,subtitle:r,children:i}){return(0,q.jsxs)(`div`,{className:`rounded-lg border bg-card text-card-foreground shadow-sm overflow-hidden`,children:[(0,q.jsxs)(`div`,{className:`flex items-start gap-2.5 border-b bg-muted/40 px-3.5 py-2.5`,children:[(0,q.jsx)(t,{className:`mt-0.5 h-4 w-4 shrink-0 text-muted-foreground`}),(0,q.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,q.jsxs)(`div`,{className:`flex flex-wrap items-baseline gap-x-2`,children:[(0,q.jsx)(`span`,{className:`text-sm font-semibold leading-tight`,children:n}),(0,q.jsx)(`span`,{className:`font-mono text-[10px] uppercase tracking-wider text-muted-foreground`,children:e})]}),r&&(0,q.jsx)(`div`,{className:`mt-0.5 text-xs text-muted-foreground`,children:r})]})]}),(0,q.jsx)(`div`,{className:`p-3.5`,children:i})]})}function sS({tone:e=`muted`,children:t}){return(0,q.jsxs)(`div`,{className:J(`flex items-center gap-2 rounded-md border border-dashed px-3 py-2.5 text-xs`,e===`warn`?`border-amber-300 bg-amber-50 text-amber-800 dark:border-amber-900 dark:bg-amber-950/30 dark:text-amber-300`:`bg-muted/30 text-muted-foreground`),children:[e===`warn`&&(0,q.jsx)(ba,{className:`h-3.5 w-3.5 shrink-0`}),t]})}function cS({object:e,name:t}){let{item:n,loading:r,error:i}=Ye(`object`,e??null),a=K.useMemo(()=>{let e=n?.validations??n?.validationRules??[];if(Array.isArray(e))return e.find(e=>e?.type===`state_machine`&&(!t||e?.name===t))},[n,t]);if(!e)return(0,q.jsxs)(sS,{tone:`warn`,children:[`Missing `,(0,q.jsx)(`code`,{className:`font-mono`,children:`object`}),` for the state machine.`]});if(r)return(0,q.jsxs)(sS,{children:[`Loading `,(0,q.jsx)(`code`,{className:`font-mono`,children:e}),`…`]});if(i)return(0,q.jsxs)(sS,{tone:`warn`,children:[`Failed to load object `,(0,q.jsx)(`code`,{className:`font-mono`,children:e}),`: `,i.message]});if(!n)return(0,q.jsxs)(sS,{tone:`warn`,children:[`Object `,(0,q.jsx)(`code`,{className:`font-mono`,children:e}),` not found.`]});if(!a)return(0,q.jsxs)(sS,{tone:`warn`,children:[`No state machine`,t?` named “${t}”`:``,` on `,(0,q.jsx)(`code`,{className:`font-mono`,children:e}),`.`]});let o=a.transitions&&typeof a.transitions==`object`&&!Array.isArray(a.transitions)?a.transitions:{},s=aS(n,a.field),c=Array.isArray(s?.options)?s.options:[],l=new Map(c.map(e=>[e.value,e])),u=e=>l.get(e)?.label??e,d=e=>l.get(e)?.color,f=c.find(e=>e.default)?.value,p=new Set;f&&p.add(f);for(let e of c)p.add(e.value);for(let[e,t]of Object.entries(o)){p.add(e);for(let e of t)p.add(e)}let m=[...p],h=({value:e})=>{let t=d(e);return(0,q.jsxs)(`span`,{className:`inline-flex items-center gap-1 rounded-full border bg-background px-2 py-0.5 text-xs font-medium`,children:[(0,q.jsx)(`span`,{className:`h-2 w-2 rounded-full`,style:{backgroundColor:t??`var(--muted-foreground)`}}),u(e)]})};return(0,q.jsx)(oS,{hint:`state machine`,icon:Ca,title:a.label??a.name??`State machine`,subtitle:(0,q.jsxs)(q.Fragment,{children:[`Lifecycle of `,(0,q.jsx)(`code`,{className:`font-mono`,children:e}),a.field?(0,q.jsxs)(q.Fragment,{children:[` · field `,(0,q.jsx)(`code`,{className:`font-mono`,children:a.field})]}):null]}),children:(0,q.jsx)(`ol`,{className:`space-y-1.5`,children:m.map(e=>{let t=o[e]??[],n=e===f,r=t.length===0;return(0,q.jsxs)(`li`,{className:`flex flex-wrap items-center gap-x-2 gap-y-1.5 rounded-md border bg-muted/20 px-2.5 py-2`,children:[(0,q.jsx)(h,{value:e}),n&&(0,q.jsxs)(`span`,{className:`inline-flex items-center gap-1 rounded bg-emerald-100 px-1.5 py-0.5 text-[10px] font-medium uppercase tracking-wide text-emerald-700 dark:bg-emerald-950/50 dark:text-emerald-400`,children:[(0,q.jsx)(Si,{className:`h-3 w-3`}),` initial`]}),r?(0,q.jsxs)(`span`,{className:`inline-flex items-center gap-1 rounded bg-muted px-1.5 py-0.5 text-[10px] font-medium uppercase tracking-wide text-muted-foreground`,children:[(0,q.jsx)(Ri,{className:`h-3 w-3`}),` final`]}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(oi,{className:`h-3.5 w-3.5 text-muted-foreground`}),(0,q.jsx)(`span`,{className:`flex flex-wrap gap-1.5`,children:t.map(e=>(0,q.jsx)(h,{value:e},e))})]})]},e)})})})}var lS=new Set([`script`,`http_request`,`connector_action`,`assignment`,`get_record`,`create_record`,`update_record`,`delete_record`,`boundary_event`]);function uS({name:e,detail:t}){let{item:n,loading:r,error:i}=Ye(`flow`,e??null);if(!e)return(0,q.jsxs)(sS,{tone:`warn`,children:[`Missing `,(0,q.jsx)(`code`,{className:`font-mono`,children:`name`}),` for the flow.`]});if(r)return(0,q.jsxs)(sS,{children:[`Loading flow `,(0,q.jsx)(`code`,{className:`font-mono`,children:e}),`…`]});if(i)return(0,q.jsxs)(sS,{tone:`warn`,children:[`Failed to load flow `,(0,q.jsx)(`code`,{className:`font-mono`,children:e}),`: `,i.message]});if(!n)return(0,q.jsxs)(sS,{tone:`warn`,children:[`Flow `,(0,q.jsx)(`code`,{className:`font-mono`,children:e}),` not found.`]});let a=Array.isArray(n.nodes)?n.nodes:[],o=(t??`business`)===`business`,s=o?a.filter(e=>!lS.has(e?.type)):a,c=a.length-s.length;return(0,q.jsxs)(oS,{hint:`flow`,icon:Vi,title:n.label??n.name??e,subtitle:n.description??(0,q.jsxs)(q.Fragment,{children:[`Process with `,a.length,` step`,a.length===1?``:`s`]}),children:[s.length===0?(0,q.jsx)(sS,{children:`No steps to show.`}):(0,q.jsx)(`ol`,{className:`space-y-1.5`,children:s.map((e,t)=>(0,q.jsxs)(`li`,{className:`flex items-center gap-2.5 rounded-md border bg-muted/20 px-2.5 py-2`,children:[(0,q.jsx)(`span`,{className:`flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-primary/10 text-[11px] font-semibold text-primary`,children:t+1}),(0,q.jsx)(`span`,{className:`text-sm`,children:e?.label??e?.id??`(step)`}),e?.type&&(0,q.jsx)(`span`,{className:`ml-auto rounded border bg-background px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground`,children:e.type})]},e?.id??t))}),o&&c>0&&(0,q.jsxs)(`div`,{className:`mt-2 text-[11px] text-muted-foreground`,children:[c,` technical step`,c===1?``:`s`,` hidden · set `,(0,q.jsx)(`code`,{className:`font-mono`,children:`detail: technical`}),` to show all`]})]})}var dS=[{key:`allowCreate`,label:`C`},{key:`allowRead`,label:`R`},{key:`allowEdit`,label:`U`},{key:`allowDelete`,label:`D`}];function fS({name:e}){let{item:t,loading:n,error:r}=Ye(`permission`,e??null);if(!e)return(0,q.jsxs)(sS,{tone:`warn`,children:[`Missing `,(0,q.jsx)(`code`,{className:`font-mono`,children:`name`}),` for the permission set.`]});if(n)return(0,q.jsxs)(sS,{children:[`Loading permission set `,(0,q.jsx)(`code`,{className:`font-mono`,children:e}),`…`]});if(r)return(0,q.jsxs)(sS,{tone:`warn`,children:[`Failed to load permission `,(0,q.jsx)(`code`,{className:`font-mono`,children:e}),`: `,r.message]});if(!t)return(0,q.jsxs)(sS,{tone:`warn`,children:[`Permission set `,(0,q.jsx)(`code`,{className:`font-mono`,children:e}),` not found.`]});let i=t.objects&&typeof t.objects==`object`?t.objects:{},a=Object.entries(i);return(0,q.jsx)(oS,{hint:`permission`,icon:ua,title:t.label??t.name??e,subtitle:(0,q.jsxs)(q.Fragment,{children:[`Object access · `,a.length,` object`,a.length===1?``:`s`]}),children:a.length===0?(0,q.jsx)(sS,{children:`No object permissions declared.`}):(0,q.jsxs)(`table`,{className:`w-full border-separate border-spacing-0 text-xs`,children:[(0,q.jsx)(`thead`,{children:(0,q.jsxs)(`tr`,{className:`text-muted-foreground`,children:[(0,q.jsx)(`th`,{className:`border-b px-2 py-1.5 text-left font-medium`,children:`Object`}),dS.map(e=>(0,q.jsx)(`th`,{className:`border-b px-2 py-1.5 text-center font-mono font-medium`,title:e.key,children:e.label},e.key))]})}),(0,q.jsx)(`tbody`,{children:a.map(([e,t])=>(0,q.jsxs)(`tr`,{children:[(0,q.jsx)(`td`,{className:`border-b px-2 py-1.5 font-mono`,children:e}),dS.map(e=>(0,q.jsx)(`td`,{className:`border-b px-2 py-1.5 text-center`,children:t?.[e.key]?(0,q.jsx)(fi,{className:`mx-auto h-3.5 w-3.5 text-emerald-600 dark:text-emerald-400`}):(0,q.jsx)(Xi,{className:`mx-auto h-3.5 w-3.5 text-muted-foreground/40`})},e.key))]},e))})]})})}function pS({schema:e}){let t=Bx(e);switch(t.type){case`state_machine`:return(0,q.jsx)(cS,{...t});case`flow`:return(0,q.jsx)(uS,{...t});case`permission`:return(0,q.jsx)(fS,{...t});default:return(0,q.jsxs)(sS,{tone:`warn`,children:[`Unknown metadata view type`,t.type?` “${t.type}”`:``,`. Expected`,` `,(0,q.jsx)(`code`,{className:`font-mono`,children:`state_machine`}),`, `,(0,q.jsx)(`code`,{className:`font-mono`,children:`flow`}),`, or`,` `,(0,q.jsx)(`code`,{className:`font-mono`,children:`permission`}),`.`]})}}U.register(`metadata_viewer`,pS,{namespace:`element`,skipFallback:!0,label:`Metadata Viewer`,category:`content`});function mS(e){return e==null||e===``?`—`:typeof e==`object`?JSON.stringify(e):String(e)}function hS({schema:e}){let t=Bx(e),n=Array.isArray(t.items)?t.items:[],r=t.columns===2?`sm:grid-cols-2`:`grid-cols-1`;return n.length===0?(0,q.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No details`}):(0,q.jsx)(`dl`,{className:J(`grid gap-x-6 gap-y-3`,r,e?.className,t.className),"data-testid":`definition-list`,children:n.map((e,n)=>(0,q.jsxs)(`div`,{className:J(t.inline?`flex items-baseline justify-between gap-3`:`flex flex-col gap-0.5`),children:[(0,q.jsx)(`dt`,{className:`text-xs font-medium uppercase tracking-wide text-muted-foreground`,children:e.term}),(0,q.jsx)(`dd`,{className:`text-sm text-foreground`,children:mS(e.description)})]},n))})}U.register(`definition-list`,hS,{namespace:`element`,skipFallback:!0,label:`Definition List`,category:`content`,inputs:[{name:`items`,type:`array`,required:!0,description:`Term/description pairs [{ term, description }]`},{name:`columns`,type:`enum`,enum:[`1`,`2`]},{name:`inline`,type:`boolean`,description:`Term and description on one baseline-aligned row`}]});function gS({schema:e}){let t=Bx(e),n=T(),[r,i]=K.useState([]),[a,o]=K.useState(!0),[s,c]=K.useState(null),l=De(),u=tt(t.filter,l),d=K.useMemo(()=>u?JSON.stringify(u):``,[u]),f=K.useMemo(()=>t.sort?JSON.stringify(t.sort):``,[t.sort]),p=K.useMemo(()=>(t.fields??[]).map(e=>typeof e==`string`?{field:e}:e),[t.fields]),m=Oe(n&&typeof n.find==`function`?t.object:void 0);return K.useEffect(()=>{let e=!1;if(!n||!t.object||typeof n.find!=`function`){o(!1);return}return o(!0),c(null),(async()=>{try{let r={};u&&(r.$filter=u),t.sort&&(r.$orderby=t.sort),t.limit&&(r.$top=t.limit);let a=await n.find(t.object,r),o=a?.data??(Array.isArray(a)?a:[]);e||i(o)}catch(t){e||c(t?.message??`Failed to load`)}finally{e||o(!1)}})(),()=>{e=!0}},[n,t.object,d,f,t.limit,m]),a?(0,q.jsx)(`p`,{className:`py-2 text-sm text-muted-foreground`,children:`Loading…`}):s?(0,q.jsx)(`p`,{className:`py-2 text-sm text-destructive`,children:s}):r.length===0?(0,q.jsx)(`p`,{className:`py-2 text-sm text-muted-foreground`,children:t.emptyText??`No records`}):(0,q.jsx)(`ul`,{className:J(t.divided!==!1&&`divide-y divide-border`,e?.className,t.className),"data-testid":`repeater`,children:r.map((e,n)=>(0,q.jsxs)(`li`,{className:`flex items-baseline gap-3 py-2`,children:[t.titleField&&(0,q.jsx)(`span`,{className:`text-sm font-medium text-foreground`,children:mS(e[t.titleField])}),p.map(t=>(0,q.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:mS(e[t.field])},t.field))]},e?.id??n))})}U.register(`repeater`,gS,{namespace:`element`,skipFallback:!0,label:`Repeater`,category:`content`,inputs:[{name:`object`,type:`string`,required:!0,description:`Object whose records the list repeats over`},{name:`titleField`,type:`string`},{name:`fields`,type:`array`,description:`Columns per row — bare names or { field, label? }`},{name:`filter`,type:`array`},{name:`sort`,type:`array`},{name:`limit`,type:`number`},{name:`emptyText`,type:`string`},{name:`divided`,type:`boolean`,description:`Separator between rows`}]});function _S(e){if(e==null)return``;if(typeof e==`string`)return e;if(typeof e==`number`||typeof e==`boolean`)return String(e);if(typeof e==`object`){let t=e;return String(t.label??t.name??t.title??t.en??``)}return String(e)}function vS({schema:e}){let t=Bx(e),n=T(),r=Re(e,n),i=r.composed,a=r.status===`loading`||r.status===`missing`?void 0:i?.object??t.object,o=De(),s=tt(i?.filter??t.filter,o),c=i?.sort??t.sort,l=i?.limit??t.limit??50,u=t.labelField??`name`,d=t.valueField??`id`,f=be(e?.id),{language:p}=Ct(),[m,h]=K.useState([]),[g,_]=K.useState(!0),[v,y]=K.useState(null),b=K.useMemo(()=>s?JSON.stringify(s):``,[s]),x=K.useMemo(()=>c?JSON.stringify(c):``,[c]),S=Oe(n&&typeof n.find==`function`?a:void 0),C=K.useRef(null);K.useEffect(()=>{let e=!1;if(!n||!a||typeof n.find!=`function`){_(!1);return}let t=JSON.stringify([a,b,x,l]),r=C.current;return(r===null||r.adapter!==n||r.signature!==t)&&(_(!0),y(null)),(async()=>{try{let r={};s&&(r.$filter=s),c&&(r.$orderby=c),l&&(r.$top=l);let i=await n.find(a,r),o=i?.data??(Array.isArray(i)?i:[]);e||(h(o),y(null),C.current={adapter:n,signature:t})}catch(t){e||y(t?.message??`Failed to load`)}finally{e||_(!1)}})(),()=>{e=!0}},[n,a,b,x,l,S]);let w=f?.value,E=f?String(w??``):void 0,D=K.useCallback(e=>{f?.setValue(e)},[f]),O=bt(t.label,p),k=bt(t.placeholder??`Select a record…`,p),A=bt(t.emptyText??`No records`,p);return r.status===`missing`?(0,q.jsx)(xe,{testId:`record-picker`,title:`This record picker’s data source could not be resolved`,message:r.error}):r.status===`loading`?(0,q.jsx)($e,{testId:`record-picker`}):(0,q.jsxs)(`div`,{className:J(`space-y-1.5`,e?.className),"data-testid":`record-picker`,"data-picker-id":e?.id,children:[O&&(0,q.jsx)(X_,{htmlFor:e?.id,className:`text-sm font-medium text-foreground`,children:O}),(0,q.jsxs)(yy,{value:E,onValueChange:D,disabled:g||!!v||!a,children:[(0,q.jsx)(xy,{id:e?.id,className:`w-full max-w-xs`,"data-testid":`record-picker-trigger`,children:(0,q.jsx)(by,{placeholder:g?`Loading…`:v?`Failed to load`:k})}),(0,q.jsx)(wy,{children:m.map((e,t)=>{let n=e?.[d],r=String(n??t);return(0,q.jsx)(Ey,{value:r,children:_S(e?.[u])||r},r)})})]}),!g&&!v&&m.length===0&&(0,q.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:A})]})}U.register(`record_picker`,ce(vS),{namespace:`element`,skipFallback:!0,label:`Record Picker`,category:`input`,inputs:[{name:`object`,type:`string`},{name:`filter`,type:`array`,description:'Filter rules narrowing which records the picker offers, as a ViewFilterRule ARRAY — `[{ field: "status", operator: "equals", value: "open" }, …]`, the one filter orthography this map\'s array-declared `filter` doors share. It becomes the `$filter` of the picker\'s own query, so it decides which records exist for the user, not merely how they are shown. PRECEDENCE: a node-level `dataSource` binding wins outright. The renderer reads `dataSource.filter ?? filter`, so when the binding — or the saved view its `view` names, which AND-combine with each other because the spec calls the binding\'s filter *additional* — supplies a filter, THIS key is dropped entirely rather than merged into it; it applies only when the node carries no `dataSource`, or that `dataSource` and its view both leave `filter` unset. MEMBERS ARE RULE OBJECTS: the MongoDB-style record form (`{ status: "open" }`, `{ $and: [ … ] }`) was retired by objectstack#14406 and the spec now refuses it by kind, and a bare tuple (`["a", "=", 1]`) is refused as a member because each entry must be an object.'},{name:`labelField`,type:`string`},{name:`valueField`,type:`string`},{name:`placeholder`,type:[`string`,`object`],description:'Prompt shown in the closed control while no record is selected (renderer default "Select a record…"). Display-only — it never reaches the query. Accepts either a plain string or an inline per-locale map (`{ en: "Owner", "zh-CN": "负责人" }`), the `I18nLabel` union rc.6 widened this key to; the renderer resolves the map against the active language at the read site, falling back through base language, a region-qualified sibling, `default`, then `en`. It is REPLACED while the picker is busy: "Loading…" while it reads a new set of options and "Failed to load" after an error both win over this key (a re-read of the same options after a data change keeps them on screen and shows no "Loading…"). An authored empty string stays empty; the default applies only when the key is absent.'},{name:`label`,type:[`string`,`object`],description:'Caption rendered above the picker, in a `<label>` element — tied to the control by `htmlFor` when the node carries an `id`, so clicking it focuses the picker and the text becomes the combobox’s accessible name (objectui#5771). Display-only — it never reaches the query, and it is OMITTED entirely when the key is absent or resolves to an empty string. Accepts either a plain string or an inline per-locale map (`{ en: "Owner", "zh-CN": "负责人" }`), the `I18nLabel` union rc.6 widened this key to; the renderer resolves the map against the active language at the read site, with the same fallback chain as `placeholder`. Distinct from `labelField`, which names the RECORD field each offered row is titled by.'},{name:`sort`,type:`array`,of:`object`,description:'Row order, as an array of `{ field, order }` entries — `[{ field: "name", order: "asc" }]`. It becomes the `$orderby` of the picker\'s own query, so it decides the order records are offered in. `order` is `asc` or `desc`; the terse string form (`"name asc"`) is not accepted by the contract. PRECEDENCE: identical to `filter` above and for the same reason — the renderer reads `dataSource.sort ?? sort`, so a node-level `dataSource` binding (or the saved view its `view` names) REPLACES this key outright rather than merging with it; it applies only when the node carries no `dataSource`, or that `dataSource` and its view both leave `sort` unset.'},{name:`limit`,type:`number`,description:"Maximum number of records the picker offers, as a whole number. It becomes the `$top` of the picker's own query, so it bounds what the user can choose from rather than how the list is displayed — a record outside the limit cannot be picked at all, and the control gives no sign that more exist. PRECEDENCE, first source that supplies a cap wins: (1) `dataSource.limit`; (2) the row cap of the saved view that `dataSource.view` names; (3) THIS key; (4) 50. A cap in (1) or (2) counts only when it is a positive integer — one the contract refuses (`0`, a negative, a non-integer) is treated as NOT AUTHORED and falls through to the next source exactly as an absent one does (objectui#10016), so a refused `dataSource.limit` does not win. DEFAULT: the 50 in (4) is applied by the renderer — the trailing `?? 50` where the picker resolves its `limit` — not by the schema."},{name:`emptyText`,type:[`string`,`object`],description:'Text shown in place of the row list when the query returns no records (renderer default "No records", `record-picker.tsx:213`). Unlike `filter` / `sort` / `limit` this is display-only — it never reaches the query, and a node-level `dataSource` binding does not override it. Accepts either a plain string or an inline per-locale map (`{ en: "None", "zh-CN": "无记录" }`) — the `I18nLabel` union rc.6 widened this key to — and the renderer resolves the map against the active language at the read site, falling back through base language, `default`, then `en`. An authored empty string stays empty; the "No records" default applies only when the key is absent.'}]});var yS=[`text`,`email`,`number`,`tel`,`url`,`password`];function bS({schema:e}){let t=Bx(e),n=yS.includes(t.inputType)?t.inputType:`text`,{language:r}=Ct(),i=be(e?.id),a=K.useRef(!1);K.useEffect(()=>{a.current||(a.current=!0,i&&t.defaultValue!==void 0&&(i.value==null||i.value===``)&&i.setValue(t.defaultValue))},[]);let o=i?.value,s=i?o==null?``:String(o):void 0,c=K.useCallback(e=>{if(!i)return;let t=e.target.value;i.setValue(n===`number`?t===``?``:Number(t):t)},[i,n]),l=bt(t.label,r),u=bt(t.placeholder,r),d=bt(t.description,r),f=K.useId(),p=d?`${f}-description`:void 0;return(0,q.jsxs)(`div`,{className:J(`grid w-full max-w-sm items-center gap-1.5`,e?.className),"data-testid":`text-input`,"data-input-id":e?.id,children:[l&&(0,q.jsxs)(X_,{htmlFor:e?.id,children:[l,t.required&&(0,q.jsx)(`span`,{className:`ml-0.5 text-destructive`,"data-required-marker":`true`,"aria-hidden":`true`,children:`*`})]}),(0,q.jsx)(Fv,{id:e?.id,type:n,placeholder:u||void 0,value:s,defaultValue:s===void 0?t.defaultValue:void 0,required:t.required,disabled:t.disabled,"aria-describedby":p,onChange:c}),d&&(0,q.jsx)(`p`,{id:p,className:`text-sm text-muted-foreground`,children:d})]})}U.register(`text_input`,bS,{namespace:`element`,skipFallback:!0,label:`Text Input`,category:`input`,inputs:[{name:`label`,type:[`string`,`object`],description:'Caption rendered ABOVE the input, in a `<label>` element — tied to the field by `htmlFor` when the node carries an `id`, so clicking it focuses the input. Display-only, and OMITTED entirely when the key is absent or resolves to an empty string; because the `required` asterisk is drawn on this element, a required input with no label shows no asterisk at all. Accepts either a plain string or an inline per-locale map (`{ en: "Owner", "zh-CN": "负责人" }`) — the `I18nLabel` union the contract admits on this key — and the renderer resolves the map against the active language at the read site, falling back through base language, a region-qualified sibling, `default`, then `en`, and finally to any remaining entry.'},{name:`placeholder`,type:[`string`,`object`],description:'Prompt shown INSIDE the field while it is empty, as the native input\'s `placeholder` attribute — it disappears as the user types and never becomes the input\'s value, so it is never what a bound page variable receives. Display-only, with no renderer default: an absent key means no placeholder, and an authored empty string (or a map no locale limb resolves) drops the attribute altogether rather than setting an empty one. Accepts either a plain string or an inline per-locale map (`{ en: "Owner", "zh-CN": "负责人" }`), resolved against the active language with the same fallback chain as `label`.'},{name:`inputType`,type:`enum`,enum:[`text`,`email`,`number`,`tel`,`url`,`password`]},{name:`defaultValue`,type:[`string`,`number`],description:"Initial value (string or number). With a page variable bound to this input — a variable whose `source` is this component id — it is pushed into that variable ONCE on mount, and only while the variable is still empty, so `page.<var>` and the submit body carry it before the user types; a variable that declares its own defaultValue wins. With no bound variable it becomes the native input's uncontrolled initial value and nothing else reads it."},{name:`required`,type:`boolean`},{name:`disabled`,type:`boolean`},{name:`description`,type:[`string`,`object`],description:'Helper text rendered BELOW the input, in its own `<p>` — a different destination from `label` (above, in a `<label>`) and `placeholder` (inside the field), reached by the same read path. Display-only, and OMITTED entirely when the key is absent or resolves to an empty string. Accepts either a plain string or an inline per-locale map (`{ en: "Owner", "zh-CN": "负责人" }`), resolved against the active language with the same fallback chain as `label`. The paragraph IS tied to the field with `aria-describedby`, so the resolved text is the input’s accessible DESCRIPTION and assistive tech announces it with the field rather than leaving it as unreachable decoration. That association does not depend on the node carrying an `id` (`label`’s `htmlFor` does): the id `aria-describedby` needs sits on the paragraph, which the renderer mints per instance, and it is emitted only when a paragraph is actually rendered — an absent or empty `description` leaves the input with no `aria-describedby` at all. Prefer `label` anyway for an instruction a user MUST NOT miss: a description is announced after the field’s name, and screen readers gate description text behind verbosity settings a user can turn down (NVDA’s “Report object descriptions”, VoiceOver hint verbosity), so it is the half of the announcement most likely to go unheard — the same advice as before, now resting on announcement order and verbosity rather than on the text being unwired.'}]});function xS(e){return e==null?void 0:String(e)}function SS(e,t){let n=e?.find(e=>String(e.value)===t);return n?n.value:t}var CS=new Set([`required`,`minLength`,`maxLength`,`min`,`max`,`pattern`,`validate`]);function wS(e,t){let n=getComputedStyle(e);return t*parseFloat(n.fontSize)}function TS(e,t){let n=getComputedStyle(e.ownerDocument.documentElement);return t*parseFloat(n.fontSize)}function ES(e){return e/100*window.innerHeight}function DS(e){return e/100*window.innerWidth}function OS(e){switch(typeof e){case`number`:return[e,`px`];case`string`:{let t=parseFloat(e);return e.endsWith(`%`)?[t,`%`]:e.endsWith(`px`)?[t,`px`]:e.endsWith(`rem`)?[t,`rem`]:e.endsWith(`em`)?[t,`em`]:e.endsWith(`vh`)?[t,`vh`]:e.endsWith(`vw`)?[t,`vw`]:[t,`%`]}}}function kS({groupSize:e,panelElement:t,styleProp:n}){let r,[i,a]=OS(n);switch(a){case`%`:r=i/100*e;break;case`px`:r=i;break;case`rem`:r=TS(t,i);break;case`em`:r=wS(t,i);break;case`vh`:r=ES(i);break;case`vw`:r=DS(i)}return r}function AS(e){return parseFloat(e.toFixed(3))}function jS({group:e}){let{orientation:t,panels:n}=e;return n.reduce((e,n)=>(e+=t===`horizontal`?n.element.offsetWidth:n.element.offsetHeight,e),0)}function MS(e){let{panels:t}=e,n=jS({group:e});return n===0?t.map(e=>({groupResizeBehavior:e.panelConstraints.groupResizeBehavior,collapsedSize:0,collapsible:e.panelConstraints.collapsible===!0,defaultSize:void 0,disabled:e.panelConstraints.disabled,minSize:0,maxSize:100,panelId:e.id})):t.map(e=>{let{element:t,panelConstraints:r}=e,i=0;r.collapsedSize!==void 0&&(i=AS(kS({groupSize:n,panelElement:t,styleProp:r.collapsedSize})/n*100));let a;r.defaultSize!==void 0&&(a=AS(kS({groupSize:n,panelElement:t,styleProp:r.defaultSize})/n*100));let o=0;r.minSize!==void 0&&(o=AS(kS({groupSize:n,panelElement:t,styleProp:r.minSize})/n*100));let s=100;return r.maxSize!==void 0&&(s=AS(kS({groupSize:n,panelElement:t,styleProp:r.maxSize})/n*100)),{groupResizeBehavior:r.groupResizeBehavior,collapsedSize:i,collapsible:r.collapsible===!0,defaultSize:a,disabled:r.disabled,minSize:o,maxSize:s,panelId:e.id}})}function NS(e,t=`Assertion error`){if(!e)throw Error(t)}function PS(e,t){return Array.from(t).sort(e===`horizontal`?FS:IS)}function FS(e,t){let n=e.element.offsetLeft-t.element.offsetLeft;return n===0?e.element.offsetWidth-t.element.offsetWidth:n}function IS(e,t){let n=e.element.offsetTop-t.element.offsetTop;return n===0?e.element.offsetHeight-t.element.offsetHeight:n}function LS(e){return typeof e==`object`&&!!e&&`nodeType`in e&&e.nodeType===Node.ELEMENT_NODE}function RS(e,t){return{x:e.x>=t.left&&e.x<=t.right?0:Math.min(Math.abs(e.x-t.left),Math.abs(e.x-t.right)),y:e.y>=t.top&&e.y<=t.bottom?0:Math.min(Math.abs(e.y-t.top),Math.abs(e.y-t.bottom))}}function zS({orientation:e,rects:t,targetRect:n}){let r={x:n.x+n.width/2,y:n.y+n.height/2},i,a=Number.MAX_VALUE;for(let n of t){let{x:t,y:o}=RS(r,n),s=e===`horizontal`?t:o;s<a&&(a=s,i=n)}return NS(i,`No rect found`),i}var BS;function VS(){return BS===void 0&&(BS=typeof matchMedia==`function`&&!!matchMedia(`(pointer:coarse)`).matches),BS}function HS(e){let{element:t,orientation:n,panels:r,separators:i}=e,a=PS(n,Array.from(t.children).filter(LS).map(e=>({element:e}))).map(({element:e})=>e),o=[],s=!1,c=!1,l=-1,u=-1,d=0,f,p=[];{let e=-1;for(let t of a)t.hasAttribute(`data-panel`)&&(e++,t.hasAttribute(`data-disabled`)||(d++,l===-1&&(l=e),u=e))}if(d>1){let t=-1;for(let d of a)if(d.hasAttribute(`data-panel`)){t++;let i=r.find(e=>e.element===d);if(i){if(f){let r=f.element.getBoundingClientRect(),a=d.getBoundingClientRect(),m;if(c){let e=n===`horizontal`?new DOMRect(r.right,r.top,0,r.height):new DOMRect(r.left,r.bottom,r.width,0),t=n===`horizontal`?new DOMRect(a.left,a.top,0,a.height):new DOMRect(a.left,a.top,a.width,0);switch(p.length){case 0:m=[e,t];break;case 1:{let i=p[0];m=[i,zS({orientation:n,rects:[r,a],targetRect:i.element.getBoundingClientRect()})===r?t:e];break}default:m=p}}else m=p.length?p:[n===`horizontal`?new DOMRect(r.right,a.top,a.left-r.right,a.height):new DOMRect(a.left,r.bottom,a.width,a.top-r.bottom)];for(let n of m){let r=`width`in n?n:n.element.getBoundingClientRect(),a=VS()?e.resizeTargetMinimumSize.coarse:e.resizeTargetMinimumSize.fine;if(r.width<a){let e=a-r.width;r=new DOMRect(r.x-e/2,r.y,r.width+e,r.height)}if(r.height<a){let e=a-r.height;r=new DOMRect(r.x,r.y-e/2,r.width,r.height+e)}!s&&!(t<=l||t>u)&&o.push({group:e,groupSize:jS({group:e}),panels:[f,i],separator:`width`in n?void 0:n,rect:r}),s=!1}}c=!1,f=i,p=[]}}else if(d.hasAttribute(`data-separator`)){d.ariaDisabled!==null&&(s=!0);let e=i.find(e=>e.element===d);e?p.push(e):(f=void 0,p=[])}else c=!0}return o}var US=class{#e={};addListener(e,t){let n=this.#e[e];return n===void 0?this.#e[e]=[t]:n.includes(t)||n.push(t),()=>{this.removeListener(e,t)}}emit(e,t){let n=this.#e[e];if(n!==void 0){if(n.length===1)n[0].call(null,t);else{let e=!1,r=null,i=Array.from(n);for(let n=0;n<i.length;n++){let a=i[n];try{a.call(null,t)}catch(t){r===null&&(e=!0,r=t)}}if(e)throw r}}}removeAllListeners(){this.#e={}}removeListener(e,t){let n=this.#e[e];if(n!==void 0){let e=n.indexOf(t);e>=0&&n.splice(e,1)}}},WS={cursorFlags:0,state:`inactive`},GS=new US;function KS(){return WS}function qS(e){return GS.addListener(`change`,e)}function JS(e){let t=WS,n={...WS};n.cursorFlags=e,WS=n,GS.emit(`change`,{prev:t,next:n})}function YS(e){let t=WS;WS=e,GS.emit(`change`,{prev:t,next:e})}var XS=e=>e,ZS=()=>{},QS=1,$S=2,eC=4,tC=8,nC=3,rC=12,iC;function aC(){return iC===void 0&&(iC=!1,typeof window<`u`&&(window.navigator.userAgent.includes(`Chrome`)||window.navigator.userAgent.includes(`Firefox`))&&(iC=!0)),iC}function oC({cursorFlags:e,groups:t,state:n}){let r=0,i=0;switch(n){case`active`:case`hover`:t.forEach(e=>{if(!e.mutableState.disableCursor)switch(e.orientation){case`horizontal`:r++;break;case`vertical`:i++}})}if(r!==0||i!==0){if(n===`active`&&e&&aC()){let t=(e&QS)!==0,n=(e&$S)!==0,r=(e&eC)!==0,i=(e&tC)!==0;if(t)return r?`se-resize`:i?`ne-resize`:`e-resize`;if(n)return r?`sw-resize`:i?`nw-resize`:`w-resize`;if(r)return`s-resize`;if(i)return`n-resize`}return aC()?r>0&&i>0?`move`:r>0?`ew-resize`:`ns-resize`:r>0&&i>0?`grab`:r>0?`col-resize`:`row-resize`}}var sC=new WeakMap;function cC(e){if(e.defaultView===null||e.defaultView===void 0)return;let{prevStyle:t,styleSheet:n}=sC.get(e)??{};n===void 0&&(n=new e.defaultView.CSSStyleSheet,e.adoptedStyleSheets&&(Object.isExtensible(e.adoptedStyleSheets)?e.adoptedStyleSheets.push(n):e.adoptedStyleSheets=[...e.adoptedStyleSheets,n]));let r=KS();switch(r.state){case`active`:case`hover`:{let e=oC({cursorFlags:r.cursorFlags,groups:r.hitRegions.map(e=>e.group),state:r.state}),i=`*, *:hover {cursor: ${e} !important; }`;if(t===i)return;t=i,e?n.cssRules.length===0?n.insertRule(i):n.replaceSync(i):n.cssRules.length===1&&n.deleteRule(0);break}case`inactive`:t=void 0,n.cssRules.length===1&&n.deleteRule(0)}sC.set(e,{prevStyle:t,styleSheet:n})}var lC=new Map,uC=new US;function dC(e){lC=new Map(lC),lC.delete(e)}function fC(e,t){for(let[t]of lC)if(t.id===e)return t}function pC(e,t){for(let[t,n]of lC)if(t.id===e)return n;if(t)throw Error(`Could not find data for Group with id ${e}`)}function mC(){return lC}function hC(e,t){return uC.addListener(`groupChange`,n=>{n.group.id===e&&t(n)})}function gC(e,t,n){let r=lC.get(e);lC=new Map(lC),lC.set(e,t),uC.emit(`groupChange`,{group:e,isUserInteraction:n?.isUserInteraction===!0,prev:r,next:t})}function _C(e){let t=KS(),n=!1;return t.state===`active`&&(YS({cursorFlags:0,state:`inactive`}),t.hitRegions.length>0&&(cC(e),n=!0,t.hitRegions.forEach(e=>{let t=pC(e.group.id,!0);gC(e.group,t,{isUserInteraction:!0})}))),n}function vC(e){e.defaultPrevented||_C(e.currentTarget)}function yC(e,t,n){let r,i={x:1/0,y:1/0};for(let a of t){let t=RS(n,a.rect);switch(e){case`horizontal`:t.x<=i.x&&(r=a,i=t);break;case`vertical`:t.y<=i.y&&(r=a,i=t)}}return r?{distance:i,hitRegion:r}:void 0}function bC(e){return typeof e==`object`&&!!e&&`nodeType`in e&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}function xC(e,t){if(e===t)throw Error(`Cannot compare node with itself`);let n={a:DC(e),b:DC(t)},r;for(;n.a.at(-1)===n.b.at(-1);)r=n.a.pop(),n.b.pop();NS(r,`Stacking order can only be calculated for elements with a common ancestor`);let i={a:EC(TC(n.a)),b:EC(TC(n.b))};if(i.a===i.b){let e=r.childNodes,t={a:n.a.at(-1),b:n.b.at(-1)},i=e.length;for(;i--;){let n=e[i];if(n===t.a)return 1;if(n===t.b)return-1}}return Math.sign(i.a-i.b)}var SC=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function CC(e){let t=getComputedStyle(OC(e)??e).display;return t===`flex`||t===`inline-flex`}function wC(e){let t=getComputedStyle(e);return!!(t.position===`fixed`||t.zIndex!==`auto`&&(t.position!==`static`||CC(e))||+t.opacity<1||`transform`in t&&t.transform!==`none`||`webkitTransform`in t&&t.webkitTransform!==`none`||`mixBlendMode`in t&&t.mixBlendMode!==`normal`||`filter`in t&&t.filter!==`none`||`webkitFilter`in t&&t.webkitFilter!==`none`||`isolation`in t&&t.isolation===`isolate`||SC.test(t.willChange)||t.webkitOverflowScrolling===`touch`)}function TC(e){let t=e.length;for(;t--;){let n=e[t];if(NS(n,`Missing node`),wC(n))return n}return null}function EC(e){return e&&Number(getComputedStyle(e).zIndex)||0}function DC(e){let t=[];for(;e;)t.push(e),e=OC(e);return t}function OC(e){let{parentNode:t}=e;return bC(t)?t.host:t}function kC(e,t){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function AC({groupElement:e,hitRegion:t,pointerEventTarget:n}){if(!LS(n)||n.contains(e)||e.contains(n))return!0;if(xC(n,e)>0){let r=n;for(;r;){if(r.contains(e))return!0;if(kC(r.getBoundingClientRect(),t))return!1;r=r.parentElement}}return!0}function jC(e,t){let n=[];return t.forEach((t,r)=>{if(r.disabled)return;let i=HS(r),a=yC(r.orientation,i,{x:e.clientX,y:e.clientY});a&&a.distance.x<=0&&a.distance.y<=0&&AC({groupElement:r.element,hitRegion:a.hitRegion.rect,pointerEventTarget:e.target})&&n.push(a.hitRegion)}),n}function MC(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function NC(e,t,n=0){return Math.abs(AS(e)-AS(t))<=n}function PC(e,t){return NC(e,t)?0:e>t?1:-1}function FC({overrideDisabledPanels:e,panelConstraints:t,prevSize:n,size:r}){let{collapsedSize:i=0,collapsible:a,disabled:o,maxSize:s=100,minSize:c=0}=t;if(o&&!e)return n;if(PC(r,c)<0){if(a){let e=(i+c)/2;r=PC(r,e)<0?i:c}else r=c}return r=Math.min(s,r),r=AS(r),r}function IC({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:r,prevLayout:i,trigger:a}){if(NC(e,0))return t;let o=a===`imperative-api`,s=Object.values(t),c=Object.values(i),l=[...s],[u,d]=r;NS(u!=null,`Invalid first pivot index`),NS(d!=null,`Invalid second pivot index`);let f=0;switch(a){case`keyboard`:{let t=e<0?d:u,r=n[t];NS(r,`Panel constraints not found for index ${t}`);let{collapsedSize:i=0,collapsible:a,minSize:o=0}=r;if(a){let n=s[t];if(NS(n!=null,`Previous layout not found for panel index ${t}`),NC(n,i)){let t=o-n;PC(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}{let t=e<0?u:d,r=n[t];NS(r,`No panel constraints found for index ${t}`);let{collapsedSize:i=0,collapsible:a,minSize:o=0}=r;if(a){let n=s[t];if(NS(n!=null,`Previous layout not found for panel index ${t}`),NC(n,o)){let t=n-i;PC(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}break;default:{let t=e<0?d:u,r=n[t];NS(r,`Panel constraints not found for index ${t}`);let i=s[t],{collapsible:a,collapsedSize:o,minSize:c}=r;if(a&&PC(i,c)<0){if(e>0){let t=c-o,n=t/2;PC(i+e,c)<0&&(e=PC(e,n)<=0?0:t)}else{let t=c-o,n=100-t/2;PC(i-e,c)<0&&(e=PC(100+e,n)>0?0:-t)}}break}}{let t=e<0?1:-1,r=e<0?d:u,i=0;for(;;){let e=s[r];NS(e!=null,`Previous layout not found for panel index ${r}`);let a=FC({overrideDisabledPanels:o,panelConstraints:n[r],prevSize:e,size:100})-e;if(i+=a,r+=t,r<0||r>=n.length)break}let a=Math.min(Math.abs(e),Math.abs(i));e=e<0?0-a:a}{let t=e<0?u:d;for(;t>=0&&t<n.length;){let r=Math.abs(e)-Math.abs(f),i=s[t];NS(i!=null,`Previous layout not found for panel index ${t}`);let a=i-r,c=FC({overrideDisabledPanels:o,panelConstraints:n[t],prevSize:i,size:a});if(!NC(i,c)&&(f+=i-c,l[t]=c,f.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?t--:t++}}if(MC(c,l))return i;{let t=e<0?d:u,r=s[t];NS(r!=null,`Previous layout not found for panel index ${t}`);let i=r+f,a=FC({overrideDisabledPanels:o,panelConstraints:n[t],prevSize:r,size:i});if(l[t]=a,!NC(a,i)){let t=i-a,r=e<0?d:u;for(;r>=0&&r<n.length;){let i=l[r];NS(i!=null,`Previous layout not found for panel index ${r}`);let a=i+t,s=FC({overrideDisabledPanels:o,panelConstraints:n[r],prevSize:i,size:a});if(NC(i,s)||(t-=s-i,l[r]=s),NC(t,0))break;e>0?r--:r++}}}if(!NC(Object.values(l).reduce((e,t)=>t+e,0),100,.1))return i;let p=Object.keys(i);return l.reduce((e,t,n)=>(e[p[n]]=t,e),{})}function LC(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(t[n]===void 0||PC(e[n],t[n])!==0)return!1;return!0}function RC({layout:e,panelConstraints:t}){let n=Object.values(e),r=[...n],i=r.reduce((e,t)=>e+t,0);if(r.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${r.map(e=>`${e}%`).join(`, `)}`);if(!NC(i,100)&&r.length>0)for(let e=0;e<t.length;e++){let t=r[e];NS(t!=null,`No layout data found for index ${e}`);let n=100/i*t;r[e]=n}let a=0;for(let e=0;e<t.length;e++){let i=n[e];NS(i!=null,`No layout data found for index ${e}`);let o=r[e];NS(o!=null,`No layout data found for index ${e}`);let s=FC({overrideDisabledPanels:!0,panelConstraints:t[e],prevSize:i,size:o});o!=s&&(a+=o-s,r[e]=s)}if(!NC(a,0))for(let e=0;e<t.length;e++){let n=r[e];NS(n!=null,`No layout data found for index ${e}`);let i=n+a,o=FC({overrideDisabledPanels:!0,panelConstraints:t[e],prevSize:n,size:i});if(n!==o&&(a-=o-n,r[e]=o,NC(a,0)))break}let o=Object.keys(e);return r.reduce((e,t,n)=>(e[o[n]]=t,e),{})}function zC({groupId:e,panelId:t}){let n=()=>{let t=mC();for(let[n,{defaultLayoutDeferred:r,derivedPanelConstraints:i,layout:a,groupSize:o,separatorToPanels:s}]of t)if(n.id===e)return{defaultLayoutDeferred:r,derivedPanelConstraints:i,group:n,groupSize:o,layout:a,separatorToPanels:s};throw Error(`Group ${e} not found`)},r=()=>{let e=n().derivedPanelConstraints.find(e=>e.panelId===t);if(e!==void 0)return e;throw Error(`Panel constraints not found for Panel ${t}`)},i=()=>{let e=n().group.panels.find(e=>e.id===t);if(e!==void 0)return e;throw Error(`Layout not found for Panel ${t}`)},a=()=>{let e=n().layout[t];if(e!==void 0)return e;throw Error(`Layout not found for Panel ${t}`)},o=({nextSize:e,panels:n,prevLayout:r,derivedPanelConstraints:i})=>{let o=a(),s=n.findIndex(e=>e.id===t),c=s===0,l=s===n.length-1;if(l&&e<o&&(c||n.slice(0,s).every((e,t)=>{let n=i[t];return n?.collapsible&&NC(n.collapsedSize,r[n.panelId])}))){let e=n.slice(0,s).reduce((e,t)=>e+r[t.id],0);return{...r,[t]:AS(100-e)}}return IC({delta:l?o-e:e-o,initialLayout:r,panelConstraints:i,pivotIndices:l?[s-1,s]:[s,s+1],prevLayout:r,trigger:`imperative-api`})},s=e=>{if(e===a())return;let{defaultLayoutDeferred:t,derivedPanelConstraints:r,group:i,groupSize:s,layout:c,separatorToPanels:l}=n(),u=RC({layout:o({nextSize:e,panels:i.panels,prevLayout:c,derivedPanelConstraints:r}),panelConstraints:r});LC(c,u)||gC(i,{defaultLayoutDeferred:t,derivedPanelConstraints:r,groupSize:s,layout:u,separatorToPanels:l})};return{collapse:()=>{let{collapsible:e,collapsedSize:t}=r(),{mutableValues:n}=i(),o=a();e&&o!==t&&(n.expandToSize=o,s(t))},expand:()=>{let{collapsible:e,collapsedSize:t,minSize:n}=r(),{mutableValues:o}=i(),c=a();if(e&&c===t){let e=o.expandToSize??n;e===0&&(e=1),s(e)}},getSize:()=>{let{group:e}=n(),t=a(),{element:r}=i();return{asPercentage:t,inPixels:e.orientation===`horizontal`?r.offsetWidth:r.offsetHeight}},isCollapsed:()=>{let{collapsible:e,collapsedSize:t}=r(),n=a();return e&&NC(t,n)},resize:e=>{let{group:t}=n(),{element:r}=i(),a=jS({group:t}),o=AS(kS({groupSize:a,panelElement:r,styleProp:e})/a*100);s(o)}}}function BC(e){e.defaultPrevented||jC(e,mC()).forEach(t=>{if(t.separator&&!t.separator.disableDoubleClick){let n=t.panels.find(e=>e.panelConstraints.defaultSize!==void 0);if(n){let r=n.panelConstraints.defaultSize,i=zC({groupId:t.group.id,panelId:n.id});i&&r!==void 0&&(i.resize(r),e.preventDefault())}}})}function VC(e){let t=mC();for(let[n]of t)if(n.separators.some(t=>t.element===e))return n;throw Error(`Could not find parent Group for separator element`)}function HC({groupId:e}){let t=()=>{let t=mC();for(let[n,r]of t)if(n.id===e)return{group:n,...r};throw Error(`Could not find Group with id "${e}"`)};return{getLayout(){let{defaultLayoutDeferred:e,layout:n}=t();return e?{}:n},setLayout(e){let{defaultLayoutDeferred:n,derivedPanelConstraints:r,group:i,groupSize:a,layout:o,separatorToPanels:s}=t(),c=RC({layout:e,panelConstraints:r});return n?o:(LC(o,c)||gC(i,{defaultLayoutDeferred:n,derivedPanelConstraints:r,groupSize:a,layout:c,separatorToPanels:s}),c)}}}function UC(e,t){let n=VC(e),r=pC(n.id,!0),i=n.separators.find(t=>t.element===e);NS(i,`Matching separator not found`);let a=r.separatorToPanels.get(i);NS(a,`Matching panels not found`);let o=a.map(e=>n.panels.indexOf(e)),s=HC({groupId:n.id}).getLayout(),c=RC({layout:IC({delta:t,initialLayout:s,panelConstraints:r.derivedPanelConstraints,pivotIndices:o,prevLayout:s,trigger:`keyboard`}),panelConstraints:r.derivedPanelConstraints});LC(s,c)||gC(n,{defaultLayoutDeferred:r.defaultLayoutDeferred,derivedPanelConstraints:r.derivedPanelConstraints,groupSize:r.groupSize,layout:c,separatorToPanels:r.separatorToPanels},{isUserInteraction:!0})}function WC(e){if(e.defaultPrevented)return;let t=e.currentTarget,n=VC(t);if(!n.disabled)switch(e.key){case`ArrowDown`:e.preventDefault(),n.orientation===`vertical`&&UC(t,5);break;case`ArrowLeft`:e.preventDefault(),n.orientation===`horizontal`&&UC(t,-5);break;case`ArrowRight`:e.preventDefault(),n.orientation===`horizontal`&&UC(t,5);break;case`ArrowUp`:e.preventDefault(),n.orientation===`vertical`&&UC(t,-5);break;case`End`:e.preventDefault(),UC(t,100);break;case`Enter`:{e.preventDefault();let n=VC(t),{derivedPanelConstraints:r,layout:i,separatorToPanels:a}=pC(n.id,!0),o=n.separators.find(e=>e.element===t);NS(o,`Matching separator not found`);let s=a.get(o);NS(s,`Matching panels not found`);let c=s[0],l=r.find(e=>e.panelId===c.id);if(NS(l,`Panel metadata not found`),l.collapsible){let e=i[c.id];UC(t,(l.collapsedSize===e?n.mutableState.expandedPanelSizes[c.id]??l.minSize:l.collapsedSize)-e)}break}case`F6`:{e.preventDefault();let n=VC(t).separators.map(e=>e.element),r=Array.from(n).findIndex(t=>t===e.currentTarget);NS(r!==null,`Index not found`),n[e.shiftKey?r>0?r-1:n.length-1:r+1<n.length?r+1:0].focus({preventScroll:!0});break}case`Home`:e.preventDefault(),UC(t,-100)}}function GC(e){if(e.defaultPrevented||e.pointerType===`mouse`&&e.button>0)return;let t=mC(),n=jC(e,t),r=new Map,i=!1;n.forEach(e=>{e.separator&&(i||(i=!0,e.separator.element.focus({focusVisible:!1,preventScroll:!0})));let n=t.get(e.group);n&&r.set(e.group,n.layout)}),YS({cursorFlags:0,hitRegions:n,initialLayoutMap:r,pointerDownAtPoint:{x:e.clientX,y:e.clientY},state:`active`}),n.length&&e.preventDefault()}function KC({document:e,event:t,hitRegions:n,initialLayoutMap:r,mountedGroups:i,pointerDownAtPoint:a,prevCursorFlags:o}){let s=0;n.forEach(e=>{let{group:n,groupSize:o}=e,{orientation:c,panels:l}=n,{disableCursor:u}=n.mutableState,d=0;d=a?c===`horizontal`?(t.clientX-a.x)/o*100:(t.clientY-a.y)/o*100:c===`horizontal`?t.clientX<0?-100:100:t.clientY<0?-100:100;let f=r.get(n),p=i.get(n);if(!f||!p)return;let{defaultLayoutDeferred:m,derivedPanelConstraints:h,groupSize:g,layout:_,separatorToPanels:v}=p;if(h&&_&&v){let t=IC({delta:d,initialLayout:f,panelConstraints:h,pivotIndices:e.panels.map(e=>l.indexOf(e)),prevLayout:_,trigger:`mouse-or-touch`});if(LC(t,_)){if(d!==0&&!u)switch(c){case`horizontal`:s|=d<0?QS:$S;break;case`vertical`:s|=d<0?eC:tC}}else gC(e.group,{defaultLayoutDeferred:m,derivedPanelConstraints:h,groupSize:g,layout:t,separatorToPanels:v})}});let c=0;t.movementX===0?c|=o&nC:c|=s&nC,t.movementY===0?c|=o&rC:c|=s&rC,JS(c),cC(e)}function qC(e){let t=mC(),n=KS();n.state===`active`&&KC({document:e.currentTarget,event:e,hitRegions:n.hitRegions,initialLayoutMap:n.initialLayoutMap,mountedGroups:t,prevCursorFlags:n.cursorFlags})}function JC(e){if(e.defaultPrevented)return;let t=KS(),n=mC();switch(t.state){case`active`:if(e.buttons===0){YS({cursorFlags:0,state:`inactive`}),t.hitRegions.forEach(e=>{let t=pC(e.group.id,!0);gC(e.group,t,{isUserInteraction:!0})});return}for(let n of t.hitRegions)if(n.separator){let{element:t}=n.separator;t.hasPointerCapture?.(e.pointerId)||t.setPointerCapture?.(e.pointerId)}KC({document:e.currentTarget,event:e,hitRegions:t.hitRegions,initialLayoutMap:t.initialLayoutMap,mountedGroups:n,pointerDownAtPoint:t.pointerDownAtPoint,prevCursorFlags:t.cursorFlags});break;default:{let r=jC(e,n);r.length===0?t.state!==`inactive`&&YS({cursorFlags:0,state:`inactive`}):YS({cursorFlags:0,hitRegions:r,state:`hover`}),cC(e.currentTarget);break}}}function YC(e){if(e.relatedTarget instanceof HTMLIFrameElement)switch(KS().state){case`hover`:YS({cursorFlags:0,state:`inactive`})}}function XC(e){e.defaultPrevented||e.pointerType===`mouse`&&e.button>0||_C(e.currentTarget)&&e.preventDefault()}function ZC(e){let t=0,n=0,r={};for(let i of e)if(i.defaultSize!==void 0){t++;let e=AS(i.defaultSize);n+=e,r[i.panelId]=e}else r[i.panelId]=void 0;let i=e.length-t;if(i!==0){let t=AS((100-n)/i);for(let n of e)n.defaultSize===void 0&&(r[n.panelId]=t)}return r}function QC(e,t,n){if(!n[0])return;let r=e.panels.find(e=>e.element===t);if(!r||!r.onResize)return;let i=jS({group:e}),a=e.orientation===`horizontal`?r.element.offsetWidth:r.element.offsetHeight,o=r.mutableValues.prevSize,s={asPercentage:AS(a/i*100),inPixels:a};r.mutableValues.prevSize=s,r.onResize(s,r.id,o)}function $C(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function ew({group:e,nextGroupSize:t,prevGroupSize:n,prevLayout:r}){if(n<=0||t<=0||n===t)return r;let i=0,a=0,o=!1,s=new Map,c=[];for(let l of e.panels){let e=r[l.id]??0;switch(l.panelConstraints.groupResizeBehavior){case`preserve-pixel-size`:{o=!0;let r=AS(e/100*n/t*100);s.set(l.id,r),i+=r;break}default:c.push(l.id),a+=e}}if(!o||c.length===0)return r;let l=100-i,u={...r};if(s.forEach((e,t)=>{u[t]=e}),a>0)for(let e of c)u[e]=AS((r[e]??0)/a*l);else{let e=AS(l/c.length);for(let t of c)u[t]=e}return u}function tw(e,t){let n=e.map(e=>e.id),r=Object.keys(t);if(n.length!==r.length)return!1;for(let e of n)if(!r.includes(e))return!1;return!0}var nw=new Map;function rw(e){let t=!0;NS(e.element.ownerDocument.defaultView,`Cannot register an unmounted Group`);let n=e.element.ownerDocument.defaultView.ResizeObserver,r=new Set,i=new Set,a=new n(n=>{for(let r of n){let{borderBoxSize:n,target:i}=r;if(i===e.element){if(t){let t=jS({group:e});if(t===0)return;let n=pC(e.id);if(!n)return;let r=MS(e),i=n.defaultLayoutDeferred?ZC(r):n.layout,a=RC({layout:ew({group:e,nextGroupSize:t,prevGroupSize:n.groupSize,prevLayout:i}),panelConstraints:r});if(!n.defaultLayoutDeferred&&LC(n.layout,a)&&$C(n.derivedPanelConstraints,r)&&n.groupSize===t)return;gC(e,{defaultLayoutDeferred:!1,derivedPanelConstraints:r,groupSize:t,layout:a,separatorToPanels:n.separatorToPanels})}}else QC(e,i,n)}});a.observe(e.element),e.panels.forEach(e=>{NS(!r.has(e.id),`Panel ids must be unique; id "${e.id}" was used more than once`),r.add(e.id),e.onResize&&a.observe(e.element)});let o=jS({group:e}),s=MS(e),c=e.panels.map(({id:e})=>e).join(`,`),l=e.mutableState.defaultLayout;l&&(tw(e.panels,l)||(l=void 0));let u=RC({layout:e.mutableState.layouts[c]??l??ZC(s),panelConstraints:s}),d=e.element.ownerDocument;nw.set(d,(nw.get(d)??0)+1);let f=new Map;return HS(e).forEach(e=>{e.separator&&f.set(e.separator,e.panels)}),gC(e,{defaultLayoutDeferred:o===0,derivedPanelConstraints:s,groupSize:o,layout:u,separatorToPanels:f}),e.separators.forEach(e=>{NS(!i.has(e.id),`Separator ids must be unique; id "${e.id}" was used more than once`),i.add(e.id),e.element.addEventListener(`keydown`,WC)}),nw.get(d)===1&&(d.addEventListener(`contextmenu`,vC,!0),d.addEventListener(`dblclick`,BC,!0),d.addEventListener(`pointerdown`,GC,!0),d.addEventListener(`pointerleave`,qC),d.addEventListener(`pointermove`,JC),d.addEventListener(`pointerout`,YC),d.addEventListener(`pointerup`,XC,!0)),function(){t=!1,nw.set(d,Math.max(0,(nw.get(d)??0)-1)),dC(e),e.separators.forEach(e=>{e.element.removeEventListener(`keydown`,WC)}),nw.get(d)||(d.removeEventListener(`contextmenu`,vC,!0),d.removeEventListener(`dblclick`,BC,!0),d.removeEventListener(`pointerdown`,GC,!0),d.removeEventListener(`pointerleave`,qC),d.removeEventListener(`pointermove`,JC),d.removeEventListener(`pointerout`,YC),d.removeEventListener(`pointerup`,XC,!0)),a.disconnect()}}function iw(){let[e,t]=(0,K.useState)({});return[e,(0,K.useCallback)(()=>t({}),[])]}function aw(e){let t=(0,K.useId)();return`${e??t}`}var ow=typeof window<`u`?K.useLayoutEffect:K.useEffect;function sw(e){let t=(0,K.useRef)(e);return ow(()=>{t.current=e},[e]),(0,K.useCallback)((...e)=>t.current?.(...e),[t])}function cw(...e){return sw(t=>{e.forEach(e=>{if(e)switch(typeof e){case`function`:e(t);break;case`object`:e.current=t}})})}function lw(e){let t=(0,K.useRef)({...e});return ow(()=>{for(let n in e)t.current[n]=e[n]},[e]),t.current}var uw=(0,K.createContext)(null);function dw(e,t){let n=(0,K.useRef)({getLayout:()=>({}),setLayout:XS});(0,K.useImperativeHandle)(t,()=>n.current,[]),ow(()=>{Object.assign(n.current,HC({groupId:e}))})}function fw({children:e,className:t,defaultLayout:n,disableCursor:r,disabled:i,elementRef:a,groupRef:o,id:s,onLayoutChange:c,onLayoutChanged:l,orientation:u=`horizontal`,resizeTargetMinimumSize:d={coarse:20,fine:10},style:f,...p}){let m=(0,K.useRef)({onLayoutChange:{},onLayoutChanged:{}}),h=sw(e=>{LC(m.current.onLayoutChange,e)||(m.current.onLayoutChange=e,c?.(e))}),g=sw((e,t)=>{LC(m.current.onLayoutChanged,e)||(m.current.onLayoutChanged=e,l?.(e,{isUserInteraction:t}))}),_=aw(s),v=(0,K.useRef)(null),[y,b]=iw(),x=(0,K.useRef)({lastExpandedPanelSizes:{},layouts:{},panels:[],resizeTargetMinimumSize:d,separators:[]}),S=cw(v,a);dw(_,o);let C=sw((e,t)=>{let r=KS(),i=fC(e),a=pC(e);if(a){let e=!1;return r.state===`active`&&(e=r.hitRegions.some(e=>e.group===i)),{flexGrow:a.layout[t]??1,pointerEvents:e?`none`:void 0}}if(n?.[t])return{flexGrow:n?.[t]}}),w=lw({defaultLayout:n,disableCursor:r}),T=(0,K.useMemo)(()=>({get disableCursor(){return!!w.disableCursor},getPanelStyles:C,id:_,orientation:u,registerPanel:e=>{let t=x.current;return t.panels=PS(u,[...t.panels,e]),b(),()=>{t.panels=t.panels.filter(t=>t!==e),b()}},registerSeparator:e=>{let t=x.current;return t.separators=PS(u,[...t.separators,e]),b(),()=>{t.separators=t.separators.filter(t=>t!==e),b()}},updatePanelProps:(e,{disabled:t})=>{let n=x.current.panels.find(t=>t.id===e);n&&(n.panelConstraints.disabled=t);let r=fC(_),i=pC(_);r&&i&&gC(r,{...i,derivedPanelConstraints:MS(r)})},updateSeparatorProps:(e,{disabled:t,disableDoubleClick:n})=>{let r=x.current.separators.find(t=>t.id===e);r&&(r.disabled=t,r.disableDoubleClick=n)}}),[C,_,b,u,w]),E=(0,K.useRef)(null);return ow(()=>{let e=v.current;if(e===null)return;let t=x.current,n;if(w.defaultLayout!==void 0&&Object.keys(w.defaultLayout).length===t.panels.length){n={};for(let e of t.panels){let t=w.defaultLayout[e.id];t!==void 0&&(n[e.id]=t)}}let r={disabled:!!i,element:e,id:_,mutableState:{defaultLayout:n,disableCursor:!!w.disableCursor,expandedPanelSizes:x.current.lastExpandedPanelSizes,layouts:x.current.layouts},orientation:u,panels:t.panels,resizeTargetMinimumSize:t.resizeTargetMinimumSize,separators:t.separators};E.current=r;let a=rw(r),{defaultLayoutDeferred:o,derivedPanelConstraints:s,layout:c}=pC(r.id,!0);!o&&s.length>0&&(h(c),g(c,!1));let l=hC(_,e=>{let{defaultLayoutDeferred:t,derivedPanelConstraints:n,layout:i}=e.next;if(t||n.length===0)return;let a=r.panels.map(({id:e})=>e).join(`,`);r.mutableState.layouts[a]=i,n.forEach(t=>{if(t.collapsible){let{layout:n}=e.prev??{};if(n){let e=NC(t.collapsedSize,i[t.panelId]),a=NC(t.collapsedSize,n[t.panelId]);e&&!a&&(r.mutableState.expandedPanelSizes[t.panelId]=n[t.panelId])}}});let o=KS().state!==`active`;h(i),o&&g(i,e.isUserInteraction)});return()=>{E.current=null,a(),l()}},[i,_,g,h,u,y,w]),(0,K.useEffect)(()=>{let e=E.current;e&&(e.mutableState.defaultLayout=n,e.mutableState.disableCursor=!!r)}),(0,q.jsx)(uw.Provider,{value:T,children:(0,q.jsx)(`div`,{...p,className:t,"data-group":!0,"data-testid":_,id:_,ref:S,style:{height:`100%`,width:`100%`,overflow:`hidden`,...f,display:`flex`,flexDirection:u===`horizontal`?`row`:`column`,flexWrap:`nowrap`,touchAction:u===`horizontal`?`pan-y`:`pan-x`},children:e})})}fw.displayName=`Group`;function pw(){let e=(0,K.useContext)(uw);return NS(e,`Group Context not found; did you render a Panel or Separator outside of a Group?`),e}function mw(e,t){let{id:n}=pw(),r=(0,K.useRef)({collapse:ZS,expand:ZS,getSize:()=>({asPercentage:0,inPixels:0}),isCollapsed:()=>!1,resize:ZS});(0,K.useImperativeHandle)(t,()=>r.current,[]),ow(()=>{Object.assign(r.current,zC({groupId:n,panelId:e}))})}function hw({children:e,className:t,collapsedSize:n=`0%`,collapsible:r=!1,defaultSize:i,disabled:a,elementRef:o,groupResizeBehavior:s=`preserve-relative-size`,id:c,maxSize:l=`100%`,minSize:u=`0%`,onResize:d,panelRef:f,style:p,...m}){let h=!!c,g=aw(c),_=lw({disabled:a}),v=(0,K.useRef)(null),y=cw(v,o),{getPanelStyles:b,id:x,orientation:S,registerPanel:C,updatePanelProps:w}=pw(),T=d!==null,E=sw((e,t,n)=>{d?.(e,c,n)});ow(()=>{let e=v.current;if(e!==null){let t={element:e,id:g,idIsStable:h,mutableValues:{expandToSize:void 0,prevSize:void 0},onResize:T?E:void 0,panelConstraints:{groupResizeBehavior:s,collapsedSize:n,collapsible:r,defaultSize:i,disabled:_.disabled,maxSize:l,minSize:u}};return C(t)}},[s,n,r,i,T,g,h,l,u,E,C,_]),(0,K.useEffect)(()=>{w(g,{disabled:a})},[a,g,w]),mw(g,f);let D=()=>{let e=b(x,g);if(e)return JSON.stringify(e)},O=(0,K.useSyncExternalStore)(e=>hC(x,e),D,D),k;return k=O?JSON.parse(O):i===void 0?{flexGrow:1}:{flexGrow:void 0,flexShrink:void 0,flexBasis:i},(0,q.jsx)(`div`,{...m,"data-disabled":a||void 0,"data-panel":!0,"data-testid":g,id:g,ref:y,style:{...gw,display:`flex`,flexBasis:0,flexShrink:1,overflow:`visible`,...k},children:(0,q.jsx)(`div`,{className:t,style:{maxHeight:`100%`,maxWidth:`100%`,flexGrow:1,overflow:`auto`,...p,touchAction:S===`horizontal`?`pan-y`:`pan-x`},children:e})})}hw.displayName=`Panel`;var gw={minHeight:0,maxHeight:`100%`,height:`auto`,minWidth:0,maxWidth:`100%`,width:`auto`,border:`none`,borderWidth:0,padding:0,margin:0};function _w({layout:e,panelConstraints:t,panelId:n,panelIndex:r}){let i,a,o=e[n],s=t.find(e=>e.panelId===n);if(s){let c=s.maxSize,l=s.collapsible?s.collapsedSize:s.minSize,u=[r,r+1];a=RC({layout:IC({delta:l-o,initialLayout:e,panelConstraints:t,pivotIndices:u,prevLayout:e}),panelConstraints:t})[n],i=RC({layout:IC({delta:c-o,initialLayout:e,panelConstraints:t,pivotIndices:u,prevLayout:e}),panelConstraints:t})[n]}return{valueControls:n,valueMax:i,valueMin:a,valueNow:o}}function vw({children:e,className:t,disabled:n,disableDoubleClick:r,elementRef:i,id:a,style:o,...s}){let c=aw(a),l=lw({disabled:n,disableDoubleClick:r}),[u,d]=(0,K.useState)({}),[f,p]=(0,K.useState)(`inactive`),[m,h]=(0,K.useState)(!1),g=(0,K.useRef)(null),_=cw(g,i),{disableCursor:v,id:y,orientation:b,registerSeparator:x,updateSeparatorProps:S}=pw(),C=b===`horizontal`?`vertical`:`horizontal`;ow(()=>{let e=g.current;if(e!==null){let t={disabled:l.disabled,disableDoubleClick:l.disableDoubleClick,element:e,id:c},n=x(t),r=qS(e=>{p(e.next.state!==`inactive`&&e.next.hitRegions.some(e=>e.separator===t)?e.next.state:`inactive`)}),i=hC(y,e=>{let{derivedPanelConstraints:n,layout:r,separatorToPanels:i}=e.next,a=i.get(t);if(a){let e=a[0],t=a.indexOf(e);d(_w({layout:r,panelConstraints:n,panelId:e.id,panelIndex:t}))}});return()=>{r(),i(),n()}}},[y,c,x,l]),(0,K.useEffect)(()=>{S(c,{disabled:n,disableDoubleClick:r})},[n,r,c,S]);let w;n&&!v&&(w=`not-allowed`);let T;if(n)T=`disabled`;else switch(f){case`active`:T=`active`;break;default:T=m?`focus`:f}return(0,q.jsx)(`div`,{...s,"aria-controls":u.valueControls,"aria-disabled":n||void 0,"aria-orientation":C,"aria-valuemax":u.valueMax,"aria-valuemin":u.valueMin,"aria-valuenow":u.valueNow,children:e,className:t,"data-separator":T,"data-testid":c,id:c,onBlur:()=>h(!1),onFocus:()=>h(!0),ref:_,role:`separator`,style:{flexBasis:`auto`,cursor:w,...o,flexGrow:0,flexShrink:0,touchAction:`none`},tabIndex:n?void 0:0})}vw.displayName=`Separator`;var yw=({className:e,...t})=>(0,q.jsx)(fw,{className:J(`flex h-full w-full`,e),...t}),bw=hw,xw=({withHandle:e,className:t,...n})=>(0,q.jsx)(vw,{className:J(`relative flex w-px items-center justify-center bg-border`,`after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2`,`focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1`,`aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full`,`aria-[orientation=horizontal]:after:left-0 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full`,`aria-[orientation=horizontal]:after:-translate-y-1/2 aria-[orientation=horizontal]:after:translate-x-0`,`[&[aria-orientation=horizontal]>div]:rotate-90`,t),...n,children:e&&(0,q.jsx)(`div`,{className:`z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border`,children:(0,q.jsx)(Hi,{className:`h-2.5 w-2.5`})})}),Sw=_t({"common.cancel":`Cancel`,"form.fullscreen.title":`Edit text`,"form.fullscreen.description":`Edit the full text value, then save or cancel your changes.`,"form.fullscreen.done":`Done`,"form.fullscreen.toggle":`Edit {{label}} fullscreen`,"form.fullscreen.textFallback":`text`},`common.cancel`);function Cw({value:e,onCommit:t,label:n,testIdPrefix:r,readOnly:i=!1,disabled:a=!1,error:o,children:s,footer:c}){let{t:l}=Sw(),[u,d]=(0,K.useState)(!1),[f,p]=(0,K.useState)(e??``),m=(0,K.useId)(),h=`${m}-fullscreen-title`,g=`${m}-fullscreen-error`,_={"aria-labelledby":h,"aria-invalid":!!o,...o?{"aria-errormessage":g}:null};return i?null:(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`button`,{type:`button`,onClick:()=>{a||i||(p(e??``),d(!0))},disabled:a,className:J(`absolute top-1.5 right-1.5 inline-flex items-center justify-center size-7 rounded-md bg-background/80 text-muted-foreground hover:text-foreground hover:bg-background border shadow-sm transition-colors`,`disabled:opacity-50 disabled:pointer-events-none`),"aria-label":l(`form.fullscreen.toggle`,{label:n??l(`form.fullscreen.textFallback`)}),"data-testid":`${r}-fullscreen-toggle`,children:(0,q.jsx)(Yi,{className:`size-3.5`})}),(0,q.jsx)(am,{open:u,onOpenChange:d,children:(0,q.jsxs)(lm,{className:`sm:max-w-3xl h-[100dvh] sm:h-[80vh] max-h-[100dvh] sm:max-h-[80vh] flex flex-col p-0 gap-0`,"data-testid":`${r}-fullscreen-dialog`,children:[(0,q.jsxs)(um,{className:`p-4 border-b`,children:[(0,q.jsx)(fm,{className:`text-base`,children:(0,q.jsx)(`span`,{id:h,children:n??l(`form.fullscreen.title`)})}),(0,q.jsx)(pm,{className:`sr-only`,children:l(`form.fullscreen.description`)}),o?(0,q.jsx)(`p`,{id:g,className:`text-sm font-medium text-destructive`,"data-testid":`${r}-fullscreen-error`,children:o}):null]}),(0,q.jsx)(`div`,{className:`flex-1 min-h-0 p-4`,children:s(f,p,a,_)}),(0,q.jsxs)(dm,{className:`p-3 border-t flex-row justify-between sm:justify-end gap-2`,children:[c?.(f),(0,q.jsxs)(`div`,{className:`flex gap-2 ml-auto`,children:[(0,q.jsxs)(X,{type:`button`,variant:`ghost`,onClick:()=>d(!1),children:[(0,q.jsx)(wa,{className:`size-4 mr-1`}),` `,l(`common.cancel`)]}),(0,q.jsxs)(X,{type:`button`,onClick:()=>{!a&&!i&&t(f),d(!1)},disabled:a,"data-testid":`${r}-fullscreen-save`,children:[(0,q.jsx)(fi,{className:`size-4 mr-1`}),` `,l(`form.fullscreen.done`)]})]})]})]})})]})}var ww=1e3,Tw=.1,Ew=20;function Dw(e){return Math.max(Math.ceil(e*Tw),Ew)}var Ow=_t({"fields.textarea.characterCount":`Character count: {{count}} of {{max}}`,"fields.textarea.charactersRemaining":`Characters remaining: {{count}}`},`fields.textarea.characterCount`);function kw({length:e,maxLength:t,descriptionId:n,announceNearLimit:r,className:i,testId:a}){let{t:o}=Ow(),s=o(`fields.textarea.characterCount`,{count:e,max:t}),c=r&&t-e<=Dw(t)?o(`fields.textarea.charactersRemaining`,{count:Math.max(t-e,0)}):``,[l,u]=(0,K.useState)(``);return(0,K.useEffect)(()=>{if(!c)return;let e=setTimeout(()=>u(c),ww);return()=>clearTimeout(e)},[c]),(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`div`,{className:i,"aria-hidden":`true`,"data-testid":a,children:[e,`/`,t]}),(0,q.jsx)(`span`,{id:n,className:`sr-only`,children:s}),r&&(0,q.jsx)(`span`,{className:`sr-only`,"aria-live":`polite`,"aria-atomic":`true`,children:l===c?c:``})]})}function Aw({label:e,description:t,collapsible:n,collapsed:r,onToggle:i,className:a}){return!e&&!t?null:(0,q.jsxs)(`div`,{className:J(`col-span-full pt-4 pb-1 border-b border-border`,n&&`cursor-pointer select-none`,a),onClick:n?i:void 0,role:n?`button`:void 0,"aria-expanded":n?!r:void 0,children:[e&&(0,q.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[n&&(r?(0,q.jsx)(hi,{className:`h-3.5 w-3.5 text-muted-foreground`}):(0,q.jsx)(pi,{className:`h-3.5 w-3.5 text-muted-foreground`})),(0,q.jsx)(`span`,{className:`text-sm font-semibold text-foreground`,children:e})]}),t&&(0,q.jsx)(`p`,{className:`mt-0.5 text-sm text-muted-foreground`,children:t})]})}function jw(e){let t=new Map;for(let n of e)n?.name&&!t.has(n.name)&&t.set(n.name,n);return t}function Mw(e,t){let n=new Set;for(let t of e)for(let e of t.fields)n.add(e.name);return t.filter(e=>e?.name&&!n.has(e.name))}var Nw=e=>typeof e==`number`&&Number.isFinite(e)?String(e):void 0,Pw=[`sm`,`md`,`lg`,`xl`,`2xl`,`3xl`,`4xl`,`5xl`,`6xl`,`7xl`],Fw={"@sm:2":`@sm:col-span-2`,"@sm:3":`@sm:col-span-3`,"@sm:4":`@sm:col-span-4`,"@md:2":`@md:col-span-2`,"@md:3":`@md:col-span-3`,"@md:4":`@md:col-span-4`,"@lg:2":`@lg:col-span-2`,"@lg:3":`@lg:col-span-3`,"@lg:4":`@lg:col-span-4`,"@xl:2":`@xl:col-span-2`,"@xl:3":`@xl:col-span-3`,"@xl:4":`@xl:col-span-4`,"@2xl:2":`@2xl:col-span-2`,"@2xl:3":`@2xl:col-span-3`,"@2xl:4":`@2xl:col-span-4`,"@3xl:2":`@3xl:col-span-2`,"@3xl:3":`@3xl:col-span-3`,"@3xl:4":`@3xl:col-span-4`,"@4xl:2":`@4xl:col-span-2`,"@4xl:3":`@4xl:col-span-3`,"@4xl:4":`@4xl:col-span-4`,"@5xl:2":`@5xl:col-span-2`,"@5xl:3":`@5xl:col-span-3`,"@5xl:4":`@5xl:col-span-4`,"@6xl:2":`@6xl:col-span-2`,"@6xl:3":`@6xl:col-span-3`,"@6xl:4":`@6xl:col-span-4`,"@7xl:2":`@7xl:col-span-2`,"@7xl:3":`@7xl:col-span-3`,"@7xl:4":`@7xl:col-span-4`,"sm:2":`sm:col-span-2`,"sm:3":`sm:col-span-3`,"sm:4":`sm:col-span-4`,"md:2":`md:col-span-2`,"md:3":`md:col-span-3`,"md:4":`md:col-span-4`,"lg:2":`lg:col-span-2`,"lg:3":`lg:col-span-3`,"lg:4":`lg:col-span-4`,"xl:2":`xl:col-span-2`,"xl:3":`xl:col-span-3`,"xl:4":`xl:col-span-4`,"2xl:2":`2xl:col-span-2`,"2xl:3":`2xl:col-span-3`,"2xl:4":`2xl:col-span-4`,"3xl:2":`3xl:col-span-2`,"3xl:3":`3xl:col-span-3`,"3xl:4":`3xl:col-span-4`,"4xl:2":`4xl:col-span-2`,"4xl:3":`4xl:col-span-3`,"4xl:4":`4xl:col-span-4`,"5xl:2":`5xl:col-span-2`,"5xl:3":`5xl:col-span-3`,"5xl:4":`5xl:col-span-4`,"6xl:2":`6xl:col-span-2`,"6xl:3":`6xl:col-span-3`,"6xl:4":`6xl:col-span-4`,"7xl:2":`7xl:col-span-2`,"7xl:3":`7xl:col-span-3`,"7xl:4":`7xl:col-span-4`},Iw={2:`col-span-2`,3:`col-span-3`,4:`col-span-4`};function Lw(e,t){let n=Array.from(e.matchAll(/(@)?(sm|md|lg|xl|2xl|3xl|4xl|5xl|6xl|7xl):grid-cols-(\d+)/g)).map(e=>({at:e[1]||``,bp:e[2],cols:Number(e[3])})).sort((e,t)=>Pw.indexOf(e.bp)-Pw.indexOf(t.bp));if(!n.length)return Iw[Math.min(Math.max(t,2),4)];let r=[],i=1;for(let e of n){let n=Math.min(e.cols,t);if(n<=i)continue;let a=Fw[`${e.at}${e.bp}:${n}`];a&&(r.push(a),i=n)}return r.join(` `)}var Rw=_t({"common.selectOption":`Select an option`,"common.submit":`Submit`,"common.cancel":`Cancel`,"form.fullscreen.title":`Edit text`,"form.fullscreen.description":`Edit the full text value, then save or cancel your changes.`,"form.fullscreen.done":`Done`,"form.fullscreen.toggle":`Edit {{label}} fullscreen`,"form.fullscreen.textFallback":`text`,"fields.options.selectFirst":`Select {{fields}} first`,"fields.options.empty":`No options available`,"validation.required":`{{field}} is required`,"validation.minLength":`{{field}} must be at least {{min}} characters`,"validation.maxLength":`{{field}} must be at most {{max}} characters`,"validation.min":`{{field}} must be at least {{min}}`,"validation.max":`{{field}} must be at most {{max}}`,"validation.pattern":`{{field}} format is invalid`,"validation.email":`Please enter a valid email address`,"validation.url":`Please enter a valid URL`,"validation.formInvalid":`Please check the highlighted fields: {{fields}}`,"validation.formInvalidJoiner":`, `,"errors.forbidden":`Access denied.`,"form.noPermissionToSave":`You don't have permission to save this record.`,"form.submitFailed":`Could not save. Please try again.`,"form.clearedOnHide":`Cleared — no longer applicable given the current values: {{fields}}`},`common.selectOption`),zw=e=>e==null||e===``||Array.isArray(e)&&e.length===0,Bw=(e,t)=>{if(zw(e)&&zw(t))return!0;try{return JSON.stringify(e)===JSON.stringify(t)}catch{return e===t}},Vw=(e,t)=>Object.prototype.hasOwnProperty.call(e??{},t),Hw=(e,t)=>{let n=new Set([...Object.keys(e??{}),...Object.keys(t??{})]);for(let r of n)if(!Bw(e?.[r],t?.[r]))return!0;return!1},Uw=new Set([`checkbox`,`switch`,`boolean`,`toggle`,`field:boolean`,`field:switch`,`field:checkbox`]),Ww=e=>e?.widget||e?.field?.widget||e?.type,Gw=new Set([`input`,`textarea`,`checkbox`,`switch`,`select`]),Kw=new Set([`object-ref`,`filter-condition`,`recipient-picker`]);function qw(e){return y.has(e)||Kw.has(e)}function Jw(e){let{dataSource:t,inputType:n,options:r,field:i,schema:a,showActions:o,fieldContainerClass:s,mobileStickyActions:c,mobile_fullscreen:l,dependentValues:u,dependsOn:d,dependsOnLabels:f,emptyHint:p,label:m,error:h,...g}=e;return g}function Yw(e){if(e==null)return`null`;let t=typeof e;return t===`string`?JSON.stringify(e):t===`number`||t===`boolean`?String(e):Array.isArray(e)?`[${e.map(Yw).join(`, `)}]`:JSON.stringify(String(e))}function Xw(e){if(!e||!e.field)return null;let t=`record[${JSON.stringify(e.field)}]`,n=[];return e.equals!==void 0&&n.push(`${t} == ${Yw(e.equals)}`),e.notEquals!==void 0&&n.push(`${t} != ${Yw(e.notEquals)}`),Array.isArray(e.in)&&n.push(`${t} in ${Yw(e.in)}`),n.length>0?n.join(` && `):null}function Zw(e){return e.startsWith(`field:`)?e.slice(6):e}function Qw(e){if(Gw.has(e))return`control`;let t=U.getMeta(Zw(e),`field`)?.labelling;return t===`group`||t===`display`?t:`control`}function $w(e){return Gw.has(e)?!1:e.includes(`:`)?e.startsWith(`field:`)&&!!U.get(e):!!U.get(`field:${e}`)}function eT(e,t){return!Gw.has(e)||e!==`select`?!1:!t||t.length===0}var tT=K.forwardRef(function({labelId:e,children:t,id:n,"aria-describedby":r,"aria-invalid":i},a){return(0,q.jsx)(`div`,{ref:a,id:n,role:`group`,"aria-labelledby":n?`${e} ${n}`:e,"aria-describedby":r,"data-slot":`readonly-field-group`,children:t})});tT.displayName=`ReadonlyFieldGroup`;function nT(e,t){return e?(0,q.jsx)(tT,{labelId:e,children:t}):t}function rT(e,t){let{dataSource:n,inputType:r,showActions:i,fieldContainerClass:a,mobileStickyActions:o,mobile_fullscreen:s,dependentValues:c,dependsOnLabels:l,emptyHint:u,label:d,schema:f,...p}=t,m=Zw(e);return{...p,...qw(m)?{dataSource:n,dependentValues:c,dependsOnLabels:l}:{},...Ae.has(m)?{dependentValues:c,emptyHint:u}:{}}}function iT({value:e,onChange:t,placeholder:n,className:r,label:i,readOnly:a,disabled:o,error:s,maxLength:c,...l}){let u=a===!0||o===!0,d=e=>{u||t?.(e)},f=K.useId(),p=`${f}-charcount`,m=`${f}-fullscreen-charcount`,h=[l[`aria-describedby`],c?p:void 0].filter(Boolean).join(` `)||void 0;return(0,q.jsxs)(`div`,{className:`relative`,children:[(0,q.jsx)(Kb,{placeholder:n,className:J(!a&&`pr-10`,r),value:e??``,onChange:e=>d(e.target.value),...l,maxLength:c,"aria-describedby":h,readOnly:a,disabled:o}),c?(0,q.jsx)(kw,{length:(e??``).length,maxLength:c,descriptionId:p,announceNearLimit:!0,className:`absolute bottom-2 right-2 text-xs text-gray-400`,testId:`form-textarea-character-count`}):null,(0,q.jsx)(Cw,{value:e??``,onCommit:d,label:i,testIdPrefix:`form-textarea`,readOnly:a,disabled:o,error:s,footer:e=>c?(0,q.jsx)(kw,{length:e.length,maxLength:c,descriptionId:m,announceNearLimit:!1,className:`text-xs text-muted-foreground self-center`,testId:`form-textarea-fullscreen-character-count`}):null,children:(e,t,r,i)=>(0,q.jsx)(Kb,{autoFocus:!0,value:e,onChange:e=>t(e.target.value),placeholder:n,className:`h-full min-h-full resize-none text-base`,disabled:r,maxLength:c,"data-testid":`form-textarea-fullscreen-input`,...i,"aria-describedby":c?m:void 0})})]})}function aT({value:e,placeholder:t,className:n,readOnly:r,maxLength:i,...a}){let o=`${K.useId()}-charcount`,s=[a[`aria-describedby`],i?o:void 0].filter(Boolean).join(` `)||void 0,c=(0,q.jsx)(Kb,{placeholder:t,className:n,...a,maxLength:i,"aria-describedby":s,readOnly:r,value:e??``});return i?(0,q.jsxs)(`div`,{className:`relative`,children:[c,(0,q.jsx)(kw,{length:(e??``).length,maxLength:i,descriptionId:o,announceNearLimit:!0,className:`absolute bottom-2 right-2 text-xs text-gray-400`,testId:`form-textarea-character-count`})]}):c}U.register(`form`,({schema:e,className:t,onAction:n,disabled:r,...i})=>{let{t:a}=Rw(),o=K.useId(),{defaultValues:s={},previousValues:c,fields:l=[],submitLabel:u,cancelLabel:d,showCancel:f=!1,showSubmit:p=!0,layout:m=`vertical`,columns:h=1,onSubmit:g,onChange:_,onDirtyChange:v,onCancel:y,resetOnSubmit:b=!1,validationMode:C=`onSubmit`}=e,w=r===!0,T=K.useMemo(()=>l.filter(e=>e&&typeof e.field==`string`&&typeof e.name!=`string`),[l]),E=K.useMemo(()=>T.length===0?l:l.filter(e=>!T.includes(e)),[l,T]);K.useEffect(()=>{for(let e of T)console.error(`[object-ui] form field { field: '${e.field}' } was NOT rendered: \`field\` is the spec form-view vocabulary (a reference to an object field), and a standalone form has no object schema to resolve it against. Rename the key to \`name\` (the form data path) — or use an object-bound form (objectName + sections), whose section fields accept the spec shape.`);for(let e of l)e&&typeof e.field==`string`&&typeof e.name==`string`&&console.warn(`[object-ui] form field '${e.name}' mixes vocabularies: it also carries { field: '${e.field}' } (spec form-view key), which this standalone renderer ignores. Drop one of the two.`)},[l,T]),K.useEffect(()=>{for(let e of l){let t=e?.validation;typeof t==`object`&&t&&Object.keys(t).filter(e=>!CS.has(e)).length!==0&&String(e?.name)}},[l]);let O=K.useMemo(()=>{let e={...s},t=!1;for(let n of E)typeof n?.name==`string`&&(Vw(e,n.name)||Uw.has(Ww(n))&&(e[n.name]=!1,t=!0));return t?e:s},[s,E]),k=J_({defaultValues:O,mode:C,shouldFocusError:!1}),A=K.useRef(null),[j,M]=K.useState(!1),[N,P]=K.useState(null),F=`form-outcome:${K.useId()}`,[I,L]=K.useState(void 0),[ee,R]=K.useState([]),te=k.watch(),z=K.useMemo(()=>{if(!c||typeof c!=`object`)return;let e={};for(let t of E)t?.name&&(e[t.name]=null);for(let t of Object.keys(c))c[t]!==void 0&&(e[t]=c[t]);return e},[E,c]),B=z===void 0,re=ne(),V=K.useMemo(()=>{let e={};for(let t of E)t?.name&&(e[t.name]=null);if(z)for(let t of Object.keys(z))e[t]=z[t];for(let t of Object.keys(te))te[t]!==void 0&&(e[t]=te[t]);return e},[E,z,JSON.stringify(te)]),ie=K.useMemo(()=>{let e=new Set;if(!z)return e;for(let t of E){let n=t?.name;n&&S({visibleWhen:t.visibleWhen,readonlyWhen:t.readonlyWhen,requiredWhen:t.requiredWhen},V,{required:!!t.required,readonly:t.readonly===!0,serverOwnedValue:W(t,B)},z,re,`field '${n}'`).readonly&&e.add(n)}return e},[E,V,z,B,re]),ae=K.useMemo(()=>{let e=new Set;for(let t of E){let n=t?.name;if(!n)continue;let r=t.visibleWhen,i=t.visibleOn;if(r!=null||i!=null){if(r!=null&&!S({visibleWhen:r,readonlyWhen:t.readonlyWhen,requiredWhen:t.requiredWhen},V,{required:!!t.required,readonly:t.readonly===!0,serverOwnedValue:W(t,B)},z,re,`field '${n}'`).visible){e.add(n);continue}i!=null&&!H(i,V,!0,z,re,{context:`visibleOn of field '${n}'`})&&e.add(n)}}return e},[E,V,z,B,re]),oe=K.useMemo(()=>{let e=new Set;for(let t of E){let n=t;if(n?.type!==`section-divider`)continue;let r=n.fields;if(!Array.isArray(r)||r.length===0)continue;let i=n.name,a=!!n.hidden;if(!a){let e=Xw(n.condition);e&&!H(e,V,!0,void 0,void 0,{context:`condition of field '${i}'`})&&(a=!0)}if(a||S({visibleWhen:n.visibleWhen,readonlyWhen:n.readonlyWhen,requiredWhen:n.requiredWhen},V,{required:!!n.required,readonly:n.readonly===!0,serverOwnedValue:W(n,B)},z,re,`field '${i}'`).visible||(a=!0),!a&&n.visibleOn!=null&&(H(n.visibleOn,V,!0,z,re,{context:`visibleOn of field '${i}'`})||(a=!0)),a)for(let t of r)typeof t==`string`&&e.add(t)}return e},[E,V,z,B,re]),U=K.useMemo(()=>{let t=e.fieldTabs;if(e.children||!Array.isArray(t))return null;let n=t.filter(e=>e&&typeof e.key==`string`);return n.length>1?n:null},[e.fieldTabs,e.children]),se=K.useMemo(()=>{let e=new Set;for(let t of U??[]){let n=t.visibleWhen;n!=null&&(H(n,V,!0,z,re,{context:`visibleWhen of fieldTab '${t.key}'`})||e.add(t.key))}return e},[U,V,z,re]),G=K.useMemo(()=>{let e=new Set;if(!U||se.size===0)return e;for(let t of U)if(se.has(t.key))for(let n of t.fields??[])typeof n==`string`&&e.add(n);for(let t of U)if(!se.has(t.key))for(let n of t.fields??[])e.delete(n);return e},[U,se]);K.useEffect(()=>{let e=k.formState.errors;if(e&&Object.keys(e).length!==0)for(let t of E){let n=t?.name;if(!n||!e[n])continue;let r=S({visibleWhen:t.visibleWhen,readonlyWhen:t.readonlyWhen,requiredWhen:t.requiredWhen},V,{required:!!t.required,readonly:t.readonly===!0,serverOwnedValue:W(t,B)},z,re,`field '${n}'`),i=t.visibleOn==null||H(t.visibleOn,V,!0,z,re,{context:`visibleOn of field '${n}'`}),a=e[n]?.type;(!r.visible||!i||oe.has(n)||G.has(n)||!r.required&&a===`required`)&&k.clearErrors(n)}},[V,re,oe,G]);let ce=K.useContext(x)?.dataSource??null,le=K.useMemo(()=>{let e={};for(let t of E)t?.name&&(e[t.name]=t.label||t.name);return e},[E]),ue=K.useMemo(()=>{let e=new Map;for(let t of U??[])for(let n of t.fields??[])e.has(n)||e.set(n,t.key);return e},[U]),de=K.useMemo(()=>{if(!U?.length)return;let t=U.map(e=>e.key).filter(e=>!se.has(e));if(t.length)return I&&t.includes(I)?I:e.defaultFieldTab&&t.includes(e.defaultFieldTab)?e.defaultFieldTab:t[0]},[U,se,I,e.defaultFieldTab]),fe=K.useMemo(()=>{if(!U)return null;let e=jw(E);return U.map(t=>({key:t.key,label:t.label||t.key,description:t.description,containerClass:t.containerClass,fields:(t.fields??[]).map(t=>e.get(t)).filter(e=>!!e)}))},[U,E]),pe=K.useMemo(()=>fe?Mw(fe,E):[],[fe,E]),he=K.useMemo(()=>fe?se.size===0?fe:fe.filter(e=>!se.has(e.key)):null,[fe,se]),_e=K.useMemo(()=>{let t=e.fieldPanes;if(e.children||U||!Array.isArray(t))return null;let n=t.filter(e=>e&&typeof e.key==`string`);return n.length>1?n:null},[e.fieldPanes,e.children,U]),ve=K.useMemo(()=>{if(!_e)return null;let e=jw(E);return _e.map(t=>({key:t.key,defaultSize:Nw(t.defaultSize),minSize:Nw(t.minSize)??`20`,containerClass:t.containerClass,fields:(t.fields??[]).map(t=>e.get(t)).filter(e=>!!e)}))},[_e,E]),ye=K.useMemo(()=>ve?Mw(ve,E):[],[ve,E]),be=K.useMemo(()=>{let e=new Set;if(!U)return e;for(let t of ee){let n=ue.get(t);n&&e.add(n)}return e},[U,ue,ee]);K.useEffect(()=>{for(let e of E){let t=e?.name;if(!t)continue;let n=e.widget||e.type;if(typeof n!=`string`||!Ae.has(Zw(n)))continue;let r=e.options;if(!r||r.length===0)continue;let i=e.dependsOn;if(!r.some(e=>e?.visibleWhen!=null)&&!i)continue;let a=k.getValues(t);if(a==null||a===``)continue;let{options:o,gated:s}=dt(r,V,i,re);s||me(a,o)||k.setValue(t,Array.isArray(a)?[]:null,{shouldValidate:!1,shouldDirty:!0})}},[V,re]);let xe=K.useRef(void 0),Se=K.useRef(void 0);K.useEffect(()=>{let e=xe.current;if(xe.current=ae,!e)return;let t=Se.current,n=t!==void 0&&!Hw(t.values,k.getValues());n||(Se.current=void 0);let r=[];for(let t of ae){if(e.has(t))continue;let n=k.getValues(t);n!=null&&n!==``&&(k.setValue(t,Array.isArray(n)?[]:null,{shouldValidate:!1,shouldDirty:!0}),(Array.isArray(n)?n.length===0:n===!1&&Uw.has(Ww(E.find(e=>e?.name===t))))||r.push(t))}if(r.length===0)return;let i=n&&t?[...t.names,...r]:r;Se.current={names:i,values:{...k.getValues()}},Ot.warning(a(`form.clearedOnHide`,{fields:i.map(e=>le[e]||e).join(a(`validation.formInvalidJoiner`))}),{id:F})},[ae]);let Ce=K.useRef(void 0),we=K.useRef(O??{}),Te=K.useRef(!1);K.useLayoutEffect(()=>{let e;try{e=JSON.stringify(O??{})}catch{e=String(Date.now())}if(Ce.current===e)return;Ce.current=e;let t=O??{},n=we.current,r=Object.entries(k.getValues()).filter(([e,r])=>!Vw(t,e)&&!Vw(n,e)&&!Bw(n[e],r));we.current=t,Te.current=!0;try{k.reset(O);for(let[e,t]of r)k.setValue(e,t,{shouldValidate:!1,shouldDirty:!0})}finally{Te.current=!1}R([]),v?.(r.length>0)},[O]),K.useLayoutEffect(()=>{if(n){let e=k.watch(e=>{Te.current||n({type:`form_change`,data:e,formData:e})});return()=>e.unsubscribe()}},[k,n]),K.useLayoutEffect(()=>{let e=k.watch(e=>{v?.(Hw(we.current,e))});return()=>e.unsubscribe()},[k,v]),K.useLayoutEffect(()=>{if(_){let e=k.watch(e=>{Te.current||_(e)});return()=>e.unsubscribe()}},[k,_]);let Ee=e=>{let t=A.current??document,n=typeof CSS<`u`&&typeof CSS.escape==`function`?CSS.escape(e):e.replace(/["\\]/g,`\\$&`),r=t.querySelector(`[data-field="${n}"]`);r&&(r.scrollIntoView?.({behavior:`smooth`,block:`center`}),r.querySelector(`input:not([type="hidden"]), select, textarea, button, [tabindex]:not([tabindex="-1"]), [contenteditable="true"]`)?.focus?.({preventScroll:!0}))},De=e=>{if(e.length===0)return;R(e);let t=e.map(e=>le[e]||e),n=t.slice(0,3).join(a(`validation.formInvalidJoiner`))+(t.length>3?`…`:``);Ot.error(a(`validation.formInvalid`,{fields:n}),{id:F});let r=new Set(e),i=E.map(e=>e?.name).find(e=>!!e&&r.has(e))??e[0],o=ue.get(i);if(!(o&&se.has(o))){if(o&&o!==de){L(o),typeof requestAnimationFrame==`function`?requestAnimationFrame(()=>Ee(i)):setTimeout(()=>Ee(i),0);return}Ee(i)}},Oe=k.handleSubmit(async e=>{M(!0),P(null),Ot.dismiss(F),R([]);let t=e;if(e&&(e.nativeEvent||typeof e.preventDefault==`function`||typeof e.stopPropagation==`function`||e.target||e.bubbles))t=k.getValues();else if(!t||Object.keys(t).length===0){let e=k.getValues();e&&Object.keys(e).length>0&&(t=e)}if(ie.size>0&&t&&typeof t==`object`){let e={};for(let n of Object.keys(t))ie.has(n)||(e[n]=t[n]);t=e}try{if(n){let e=await n({type:`form_submit`,data:t,formData:t});if(e?.error){P(e.error),Ot.error(e.error,{id:F});return}}g&&typeof g==`function`&&await g(t),b&&k.reset()}catch(e){let t=ge(e);if(t){let n=t.filter(e=>E.some(t=>t?.name===e.field));for(let t of n)k.setError(t.field,{type:`server`,message:t.message||Ke(e)||a(`form.submitFailed`)});if(n.length>0&&n.length===t.length){De(n.map(e=>e.field));return}}let n=Fe(e)??(Xe(e)?a(`form.noPermissionToSave`):Ke(e)??a(`form.submitFailed`));Xe(e)&&typeof console<`u`&&console.warn(`[form] write denied:`,e),P(n),Ot.error(n,{id:F})}finally{M(!1)}},e=>{De(Object.keys(e||{}))}),ke=()=>{k.reset(),y&&typeof y==`function`&&y(),n&&n({type:`form_cancel`,data:k.getValues()})},je=h>1?J(`grid gap-4`,h===1?``:h===2?`md:grid-cols-2`:h===3?`md:grid-cols-2 lg:grid-cols-3`:`md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4`):`space-y-4`,Me=e.fieldContainerClass||je,Ne=e.fieldTabsPosition||`top`,Pe=Ne===`left`||Ne===`right`,Ie=K.useRef(void 0),Le=Ie.current??=new Map,Re=t=>{let{name:n,label:r,description:i,type:s=`input`,required:c=!1,disabled:l=!1,validation:u={},condition:d,colSpan:f,hidden:p,widget:m,visibleOn:h,readonly:g,visibleWhen:_,readonlyWhen:v,requiredWhen:y,...b}=t;if(p||oe.has(n))return null;let x=Xw(d);if(x&&!H(x,V,!0,void 0,void 0,{context:`condition of field '${n}'`}))return null;let C=S({visibleWhen:_,readonlyWhen:v,requiredWhen:y},V,{required:c,readonly:g===!0,serverOwnedValue:W(t,B)},z,re,`field '${n}'`);if(!C.visible||h!=null&&!H(h,V,!0,z,re,{context:`visibleOn of field '${n}'`}))return null;let T=C.required,E=C.readonly;if(s===`section-divider`){let e=b;return(0,q.jsx)(Aw,{label:r,description:i,collapsible:e.collapsible,collapsed:e.collapsed,onToggle:e.onToggle,className:e.className},n)}let O={...u};delete O.required,T?Le.set(n,typeof u.required==`string`?u.required:a(`validation.required`,{field:r||n})):Le.delete(n);let A=O.validate;O.validate={...typeof A==`function`?{validate:A}:A??{},required:e=>{let t=Le.get(n);return t===void 0||!D(e)||t}};let M=(e,t)=>e&&typeof e==`object`&&e.message==null&&typeof e.messageKey==`string`?{...e,message:a(e.messageKey,{field:r||n,...t?.(e)})}:e;O.minLength&&=M(O.minLength,e=>({min:e.value})),O.maxLength&&=M(O.maxLength,e=>({max:e.value})),O.min&&=M(O.min,e=>({min:e.value})),O.max&&=M(O.max,e=>({max:e.value})),O.pattern&&=M(O.pattern);let N=t.id??n,P=m||b.field?.widget||s,F=Ae.has(Zw(P)),I=b.options,L=F?dt(I,V,t.dependsOn,re):null,ee=L?.gated??!1,R=L?.dependsOnFields??[],te=L?L.options:I,ne=ee?a(`fields.options.selectFirst`,{fields:R.map(e=>le[e]||e).join(a(`validation.formInvalidJoiner`))}):void 0,ie=e.fieldContainerClass||je,ae=e=>Lw(ie,e),U=f&&f>1?f===2?ae(2):f===3?ae(3):f>=4?ae(4):``:``,se=`field:${e.objectName?`${e.objectName}.`:``}${n}`,G=Qw(P),ue=G===`group`,de=(E===!0||G===`display`)&&!!r&&!ue&&$w(P),fe=r&&(ue||de)?`${o}${String(n).replace(/\s+/g,`_`)}-group-label`:void 0,pe=ue?fe:void 0,me=F?te:b.options,he=eT(P,me);return(0,q.jsx)($_,{control:k.control,name:n,rules:O,render:({field:e,fieldState:o})=>(0,q.jsxs)(nv,{className:U||void 0,"data-testid":se,"data-field":n,children:[r&&(0,q.jsxs)(rv,{className:`text-xs font-normal text-muted-foreground`,...fe?{id:fe,htmlFor:void 0}:null,...he?{htmlFor:void 0}:null,children:[r,T&&(0,q.jsx)(`span`,{className:`text-destructive ml-1`,"data-required-marker":`true`,"aria-hidden":`true`,children:`*`})]}),(0,q.jsx)(iv,{children:nT(de?fe:void 0,hT(P,{...b,field:t.field||t,...e,inputType:b.inputType,label:r,options:me,placeholder:b.placeholder??(P===`select`?a(`common.selectOption`):void 0),disabled:w||l||j||ee,readonly:E,emptyHint:ne,dataSource:ce,dependentValues:V,dependsOnLabels:le,error:o.error?.message,"aria-required":T||void 0,...pe?{"aria-labelledby":pe}:null}))}),i&&(0,q.jsx)(av,{children:i}),(0,q.jsx)(ov,{})]})},N)},{"data-obj-id":ze,"data-obj-type":Be,style:Ve,onSubmit:He,onChange:Ue,submitLabel:We,cancelLabel:Ge,showSubmit:qe,showCancel:Je,resetOnSubmit:Ye,defaultValues:Ze,inputType:Qe,dataSource:$e,showActions:et,fieldContainerClass:tt,mobileStickyActions:nt,objectName:rt,previousValues:it,onDirtyChange:at,onCancel:ot,fields:st,layout:ct,columns:lt,validationMode:ut,fieldTabs:ft,defaultFieldTab:pt,fieldTabsPosition:mt,fieldPanes:ht,fieldPanesOrientation:gt,fieldPanesResizable:_t,...vt}=i;return(0,q.jsx)(Z_,{...k,children:(0,q.jsxs)(`form`,{ref:A,onSubmit:Oe,className:t,...vt,"data-obj-id":ze,"data-obj-type":Be,style:Ve,children:[N&&(0,q.jsxs)(is,{variant:`destructive`,className:`mb-4`,children:[(0,q.jsx)(bi,{className:`h-4 w-4`}),(0,q.jsx)(os,{children:N})]}),T.length>0&&(0,q.jsxs)(is,{variant:`destructive`,className:`mb-4`,"data-testid":`form-spec-vocabulary-error`,children:[(0,q.jsx)(bi,{className:`h-4 w-4`}),(0,q.jsx)(os,{children:`Not rendered — spec form-view vocabulary ({ field: … }) in a standalone form: `+T.map(e=>e.field).join(`, `)+`. Use { name: … }, or an object-bound form with sections.`})]}),e.children?(0,q.jsx)(`div`,{className:e.fieldContainerClass||`space-y-4`,children:Y(e.children)}):fe&&he?(0,q.jsxs)(q.Fragment,{children:[pe.length>0&&(0,q.jsx)(`div`,{className:J(Me,`mb-4`),children:pe.map(Re)}),he.length>0&&(0,q.jsxs)(Hb,{value:de,onValueChange:L,orientation:Pe?`vertical`:`horizontal`,className:J(`flex w-full`,Pe?`gap-4`:`flex-col`),children:[(0,q.jsx)(Ub,{className:J(`self-start`,Pe?J(`h-auto flex-col`,Ne===`right`&&`order-last`):Ne===`bottom`?`order-last mt-4`:`mb-4`),children:he.map(e=>(0,q.jsxs)(Wb,{value:e.key,"data-testid":`form-tab:${e.key}`,"data-error":be.has(e.key)||void 0,className:J(Pe&&`w-full justify-start`,be.has(e.key)&&`text-destructive data-[state=active]:text-destructive`),children:[e.label,be.has(e.key)&&(0,q.jsx)(`span`,{"aria-hidden":`true`,className:`ml-1.5 size-1.5 rounded-full bg-destructive`})]},e.key))}),(0,q.jsx)(`div`,{className:`min-w-0 flex-1`,children:he.map(e=>(0,q.jsxs)(Gb,{value:e.key,forceMount:!0,className:`mt-0 data-[state=inactive]:hidden`,"data-testid":`form-tab-panel:${e.key}`,children:[e.description&&(0,q.jsx)(`p`,{className:`mb-3 text-sm text-muted-foreground`,children:e.description}),(0,q.jsx)(`div`,{className:e.containerClass||Me,children:e.fields.map(Re)})]},e.key))})]})]}):ve?(0,q.jsxs)(q.Fragment,{children:[ye.length>0&&(0,q.jsx)(`div`,{className:J(Me,`mb-4`),children:ye.map(Re)}),(0,q.jsx)(yw,{orientation:e.fieldPanesOrientation===`vertical`?`vertical`:`horizontal`,className:`min-h-[300px] rounded-lg border`,children:ve.map((t,n)=>(0,q.jsxs)(K.Fragment,{children:[n>0&&(0,q.jsx)(xw,{withHandle:e.fieldPanesResizable!==!1,disabled:e.fieldPanesResizable===!1}),(0,q.jsx)(bw,{defaultSize:t.defaultSize,minSize:t.minSize,children:(0,q.jsx)(`div`,{className:J(`@container p-4`,t.containerClass||Me),"data-testid":`form-pane:${t.key}`,children:t.fields.map(Re)})})]},t.key))})]}):(0,q.jsx)(`div`,{className:Me,children:E.map(Re)}),e.showActions!==!1&&(0,q.jsxs)(`div`,{className:J(`flex flex-col sm:flex-row gap-2 ${m===`horizontal`?`sm:justify-end`:`sm:justify-start`} mt-6`,e.mobileStickyActions&&`sticky bottom-0 z-10 -mx-4 px-4 py-3 bg-background/95 supports-[backdrop-filter]:bg-background/80 backdrop-blur border-t md:static md:mx-0 md:px-0 md:py-0 md:bg-transparent md:border-0 md:backdrop-blur-none`),"data-testid":e.mobileStickyActions?`form-mobile-sticky-actions`:void 0,children:[f&&(0,q.jsx)(X,{type:`button`,variant:`outline`,onClick:ke,disabled:j||w,className:`w-full sm:w-auto`,children:d??a(`common.cancel`)}),p&&(0,q.jsxs)(X,{type:`submit`,disabled:j||w,className:`w-full sm:w-auto`,children:[j&&(0,q.jsx)(qi,{className:`mr-2 h-4 w-4 animate-spin`}),u??a(`common.submit`)]})]})]})})},{namespace:`ui`,label:`Form`,inputs:[{name:`fields`,type:`array`,description:`Array of field configurations with name, label, type, validation, etc.`},{name:`defaultValues`,type:`object`,description:`Object with default values for form fields`},{name:`submitLabel`,type:`string`},{name:`cancelLabel`,type:`string`},{name:`showCancel`,type:`boolean`},{name:`layout`,type:`enum`,enum:[`vertical`,`horizontal`]},{name:`columns`,type:`number`,description:`For multi-column layouts (1-4)`},{name:`validationMode`,type:`enum`,enum:[`onSubmit`,`onBlur`,`onChange`,`onTouched`,`all`]},{name:`resetOnSubmit`,type:`boolean`},{name:`disabled`,type:`boolean`},{name:`className`,type:`string`},{name:`fieldContainerClass`,type:`string`},{name:`children`,type:`slot`,description:`Authored form body, rendered in place of the generated field list`}],defaultProps:{submitLabel:`Submit`,cancelLabel:`Cancel`,showCancel:!1,layout:`vertical`,columns:1,validationMode:`onSubmit`,resetOnSubmit:!1,disabled:!1,fields:[{name:`name`,label:`Name`,type:`input`,required:!0,placeholder:`Enter your name`},{name:`email`,label:`Email`,type:`input`,inputType:`email`,required:!0,placeholder:`Enter your email`}]}});var oT=new Set([`date`,`datetime-local`,`time`,`month`,`week`]),sT={email:`email`,password:`password`,secret:`password`,"ui:password":`password`},cT=new Set([`password`,`secret`]),lT=new Set;function uT(e,t){let n=`${e}::${t}`;lT.has(n)||(lT.add(n),console.error(`[object-ui] form field '${t}': widget '${e}' is NOT registered, so this form has no widget for a SECRET value. The field renders a refusal instead of an input — the default input branch would render it as \`type="text"\` and put the secret on screen in clear text (objectui#5322). Register the field widgets — \`registerAllFields()\` from \`@object-ui/fields\` — so '${e}' resolves. In a hand-authored standalone form, write the built-in spelling \`{ type: 'password' }\` instead, which renders the native masked input on this branch.`))}function dT({widgetType:e,fieldName:t,className:n,...r}){return K.useEffect(()=>{uT(e,t)},[e,t]),(0,q.jsx)(`div`,{role:`alert`,"data-testid":`field-missing-secret-widget`,"data-missing-field-widget":e,className:J(`rounded-md border border-destructive/50 bg-destructive/10 px-3 py-2 text-sm text-destructive`,n),...r,children:`This field was not rendered: its widget \`${e}\` is not registered. Register the field widgets (\`registerAllFields()\` from \`@object-ui/fields\`). A secret is never rendered in a plain text box.`})}function fT(e){if(e&&oT.has(e))return e=>{let t=e.currentTarget;if(!(t.disabled||t.readOnly))try{t.showPicker?.()}catch{}}}function pT({emptyHint:e,className:t,...n}){let{t:r}=Rw();return(0,q.jsx)(`div`,{className:J(`text-sm text-muted-foreground`,t),...n,children:e||r(`fields.options.empty`)})}var mT=K.forwardRef(function({options:e,placeholder:t,value:n,onValueChange:r,disabled:i,name:a,className:o,...s},c){return(0,q.jsxs)(yy,{name:a,value:xS(n),onValueChange:t=>r?.(SS(e,t)),disabled:i,children:[(0,q.jsx)(xy,{ref:c,...s,className:J(`min-h-[44px] sm:min-h-0`,o),children:(0,q.jsx)(by,{placeholder:t})}),(0,q.jsx)(wy,{children:e.map(e=>(0,q.jsx)(Ey,{value:String(e.value),children:e.label},String(e.value)))})]})});function hT(e,t){let n=!Gw.has(e)&&!e.includes(`:`)?U.get(`field:${e}`):void 0,r=Gw.has(e)?void 0:n||(e.startsWith(`field:`)?U.get(e):void 0);if(r)return(0,q.jsx)(r,{...rT(e,t)});let{inputType:i,options:a=[],placeholder:o,readonly:s,emptyHint:c,...l}=t,u=Jw(l),d=s&&`bg-muted/40 cursor-default focus-visible:ring-0`;switch(e){case`input`:{let{max_length:e,...t}=u,n=l.maxLength??l.max_length;if(i===`file`){let{value:e,...n}=t;return(0,q.jsx)(Fv,{type:`file`,placeholder:o,className:`min-h-[44px] sm:min-h-0`,...n})}return(0,q.jsx)(Fv,{type:i||`text`,placeholder:o,className:J(`min-h-[44px] sm:min-h-0`,d),...t,maxLength:n,onClick:e=>{fT(i)?.(e),t.onClick?.(e)},readOnly:s,value:t.value??``})}case`textarea`:{let{mobile_fullscreen:e,label:t,error:n}=l,{max_length:r,...i}=l,a=l.maxLength??l.max_length,c=Jw(i);return e?(0,q.jsx)(iT,{placeholder:o,label:t,error:n,className:J(`min-h-[44px] sm:min-h-0`,d),...c,maxLength:a,readOnly:s,value:c.value??``}):(0,q.jsx)(aT,{placeholder:o,className:J(`min-h-[44px] sm:min-h-0`,d),...c,maxLength:a,readOnly:s,value:c.value??``})}case`checkbox`:{let{value:e,onChange:t,disabled:n,...r}=u;return(0,q.jsx)(ip,{checked:e,onCheckedChange:t,disabled:n||s,className:`min-h-[44px] min-w-[44px] sm:min-h-0 sm:min-w-0`,...r})}case`switch`:{let{value:e,onChange:t,disabled:n,...r}=u;return(0,q.jsx)(Nb,{checked:e,onCheckedChange:t,disabled:n||s,className:`min-h-[44px] min-w-[44px] sm:min-h-0 sm:min-w-0`,...r})}case`select`:{let{value:e,onChange:t,disabled:n,...r}=u;return!a||a.length===0?(0,q.jsx)(pT,{emptyHint:c}):(0,q.jsx)(mT,{...r,options:a,placeholder:o,value:e,onValueChange:t,disabled:n||s})}default:{let t=Zw(e);if(e.startsWith(`field:`)&&cT.has(t))return(0,q.jsx)(dT,{widgetType:e,fieldName:String(l.name??``)});let{max_length:n,...r}=u,a=l.maxLength??l.max_length;return(0,q.jsx)(Fv,{type:i||sT[t]||`text`,placeholder:o,className:J(d),...r,maxLength:a,onClick:e=>{fT(i)?.(e),r.onClick?.(e)},readOnly:s})}}}var gT=[...C,`name`,`disabled`];function _T(e){return k(e,gT)}var vT=(0,K.forwardRef)(({schema:e,disabled:t,...n},r)=>{let{"data-obj-id":i,"data-obj-type":a,style:o,...s}=n,c=Ex(e.icon),l=e.loading||n.loading,u=t||l;return(0,q.jsxs)(X,{ref:r,type:e.buttonType||`button`,variant:e.variant,size:e.size,className:e.className,disabled:u,..._T(s),"data-obj-id":i,"data-obj-type":a,style:o,children:[l&&(0,q.jsx)(qi,{className:`mr-2 h-4 w-4 animate-spin`}),!l&&c&&e.iconPosition!==`right`&&(0,q.jsx)(c,{className:`mr-2 h-4 w-4`}),e.label||Y(e.children),!l&&c&&e.iconPosition===`right`&&(0,q.jsx)(c,{className:`ml-2 h-4 w-4`})]})});vT.displayName=`ButtonRenderer`,U.register(`button`,vT,{namespace:`ui`,label:`Button`,inputs:[{name:`label`,type:`string`},{name:`variant`,type:`enum`,enum:[`default`,`secondary`,`destructive`,`outline`,`ghost`,`link`]},{name:`size`,type:`enum`,enum:[`default`,`sm`,`lg`,`icon`]},{name:`className`,type:`string`},{name:`children`,type:`slot`,description:"Rich label content, rendered when `label` is not set"}],defaultProps:{label:`Button`,variant:`default`,size:`default`}}),U.register(`label`,({schema:e,className:t,...n})=>{let{"data-obj-id":r,"data-obj-type":i,style:a,...o}=n;return(0,q.jsx)(X_,{className:t,...o,"data-obj-id":r,"data-obj-type":i,style:a,children:e.text||e.label||e.content})},{namespace:`ui`,label:`Label`,inputs:[{name:`text`,type:`string`,required:!0},{name:`className`,type:`string`}],defaultProps:{text:`Label Text`}});var yT=({schema:e,className:t,onChange:n,value:r,disabled:i,...a})=>{let o=e=>{n&&n(e.target.value)},{"data-obj-id":s,"data-obj-type":c,style:l,...u}=a;return(0,q.jsxs)(`div`,{className:J(`grid w-full items-center gap-1.5`,e.wrapperClass),"data-obj-id":s,"data-obj-type":c,style:l,children:[e.label&&(0,q.jsxs)(X_,{htmlFor:e.id,className:J(e.required&&`text-destructive`),children:[e.label,e.required&&(0,q.jsx)(`span`,{className:`ml-0.5 text-destructive`,"data-required-marker":`true`,"aria-hidden":`true`,children:`*`})]}),(0,q.jsx)(Fv,{type:e.inputType||`text`,id:e.id,name:e.name,placeholder:e.placeholder,className:t,required:e.required,disabled:i,readOnly:e.readOnly,value:r??e.value??``,defaultValue:r===void 0?e.defaultValue:void 0,onChange:o,min:e.min,max:e.max,step:e.step,maxLength:e.maxLength,pattern:e.pattern,..._T(u)}),e.description&&(0,q.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:e.description}),e.error&&(0,q.jsx)(`p`,{className:`text-sm font-medium text-destructive`,children:e.error})]})};U.register(`input`,yT,{namespace:`ui`,label:`Input Field`,inputs:[{name:`label`,type:`string`},{name:`name`,type:`string`},{name:`placeholder`,type:`string`},{name:`inputType`,type:`enum`,enum:[`text`,`email`,`password`,`number`,`tel`,`url`,`date`,`time`,`datetime-local`]},{name:`required`,type:`boolean`},{name:`disabled`,type:`boolean`},{name:`description`,type:`string`}],defaultProps:{inputType:`text`}}),U.register(`email`,e=>(0,q.jsx)(yT,{...e,schema:{...e.schema,inputType:`email`}}),{namespace:`ui`,label:`Email Input`,icon:`mail`,inputs:[{name:`label`,type:`string`},{name:`name`,type:`string`},{name:`placeholder`,type:`string`},{name:`required`,type:`boolean`},{name:`disabled`,type:`boolean`},{name:`description`,type:`string`}]}),U.register(`password`,e=>(0,q.jsx)(yT,{...e,schema:{...e.schema,inputType:`password`}}),{namespace:`ui`,label:`Password Input`,icon:`lock`,inputs:[{name:`label`,type:`string`},{name:`name`,type:`string`},{name:`placeholder`,type:`string`},{name:`required`,type:`boolean`},{name:`disabled`,type:`boolean`},{name:`description`,type:`string`}]}),U.register(`textarea`,({schema:e,className:t,onChange:n,value:r,disabled:i,...a})=>{let o=e=>{n&&n(e.target.value)},{"data-obj-id":s,"data-obj-type":c,style:l,...u}=a;return(0,q.jsxs)(`div`,{className:J(`grid w-full gap-1.5`,e.wrapperClass),"data-obj-id":s,"data-obj-type":c,style:l,children:[e.label&&(0,q.jsxs)(X_,{htmlFor:e.id,className:J(e.required&&`text-destructive`),children:[e.label,e.required&&(0,q.jsx)(`span`,{className:`ml-0.5 text-destructive`,"data-required-marker":`true`,"aria-hidden":`true`,children:`*`})]}),(0,q.jsx)(Kb,{id:e.id,name:e.name,placeholder:e.placeholder,className:t,disabled:i,readOnly:e.readOnly,required:e.required,rows:e.rows,value:r??e.value??``,defaultValue:r===void 0?e.defaultValue:void 0,onChange:o,..._T(u)})]})},{namespace:`ui`,label:`Textarea`,inputs:[{name:`label`,type:`string`},{name:`placeholder`,type:`string`},{name:`rows`,type:`number`},{name:`required`,type:`boolean`},{name:`disabled`,type:`boolean`},{name:`id`,type:`string`,required:!0}],defaultProps:{label:`Textarea label`,placeholder:`Enter text here...`,rows:3,id:`textarea-field`}}),U.register(`checkbox`,({schema:e,className:t,onChange:n,value:r,disabled:i,...a})=>{let{"data-obj-id":o,"data-obj-type":s,style:c,...l}=a;return(0,q.jsxs)(`div`,{className:J(`flex items-center space-x-2`,e.wrapperClass),"data-obj-id":o,"data-obj-type":s,style:c,children:[(0,q.jsx)(ip,{id:e.id,className:t,checked:r??e.checked??!1,defaultChecked:r===void 0?e.defaultChecked:void 0,onCheckedChange:e=>{n&&n(e)},disabled:i,required:e.required,name:e.name,..._T(l)}),(0,q.jsxs)(X_,{htmlFor:e.id,className:J(`text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70`,e.required&&`text-destructive`),children:[e.label,e.required&&(0,q.jsx)(`span`,{className:`ml-0.5 text-destructive`,"data-required-marker":`true`,"aria-hidden":`true`,children:`*`})]})]})},{namespace:`ui`,label:`Checkbox`,inputs:[{name:`label`,type:`string`,required:!0},{name:`id`,type:`string`,required:!0},{name:`checked`,type:`boolean`},{name:`required`,type:`boolean`},{name:`disabled`,type:`boolean`}],defaultProps:{label:`Checkbox label`,id:`checkbox-field`}}),U.register(`switch`,({schema:e,className:t,...n})=>{let{"data-obj-id":r,"data-obj-type":i,style:a,...o}=n;return(0,q.jsxs)(`div`,{className:`flex items-center space-x-2 ${e.wrapperClass||``}`,"data-obj-id":r,"data-obj-type":i,style:a,children:[(0,q.jsx)(Nb,{id:e.id,className:t,..._T(o)}),(0,q.jsx)(X_,{htmlFor:e.id,children:e.label})]})},{namespace:`ui`,label:`Switch`,inputs:[{name:`label`,type:`string`,required:!0},{name:`id`,type:`string`,required:!0},{name:`checked`,type:`boolean`}],defaultProps:{label:`Switch label`,id:`switch-field`}}),U.register(`select`,({schema:e,className:t,onChange:n,value:r,disabled:i,...a})=>{let{"data-obj-id":o,"data-obj-type":s,style:c,...l}=a;return(0,q.jsxs)(`div`,{className:J(`grid w-full items-center gap-1.5`,e.wrapperClass),"data-obj-id":o,"data-obj-type":s,style:c,children:[e.label&&(0,q.jsxs)(X_,{htmlFor:e.id,className:J(e.required&&`text-destructive`),children:[e.label,e.required&&(0,q.jsx)(`span`,{className:`ml-0.5 text-destructive`,"data-required-marker":`true`,"aria-hidden":`true`,children:`*`})]}),(0,q.jsxs)(yy,{defaultValue:r===void 0?xS(e.defaultValue):void 0,value:xS(r??e.value),onValueChange:t=>{n&&n(SS(e.options,t))},disabled:i,required:e.required,name:e.name,...l,children:[(0,q.jsx)(xy,{id:e.id,className:t,children:(0,q.jsx)(by,{placeholder:e.placeholder})}),(0,q.jsx)(wy,{children:e.options?.map(e=>(0,q.jsx)(Ey,{value:String(e.value),disabled:e.disabled,children:e.label},String(e.value)))})]})]})},{namespace:`ui`,label:`Select`,inputs:[{name:`label`,type:`string`},{name:`placeholder`,type:`string`},{name:`defaultValue`,type:`string`},{name:`required`,type:`boolean`},{name:`disabled`,type:`boolean`},{name:`options`,type:`array`,description:`Array of {label, value} objects`}],defaultProps:{label:`Select an option`,placeholder:`Choose...`,options:[{label:`Option 1`,value:`option1`},{label:`Option 2`,value:`option2`},{label:`Option 3`,value:`option3`}]}});var bT=`vertical`,xT={horizontal:`flex flex-row flex-wrap items-center gap-4`,vertical:void 0};U.register(`radio-group`,({schema:e,className:t,...n})=>{let{"data-obj-id":r,"data-obj-type":i,style:a,...o}=n,s=e.orientation??bT;return(0,q.jsx)(hy,{defaultValue:xS(e.defaultValue),orientation:s,className:J(xT[s],t),..._T(o),"data-obj-id":r,"data-obj-type":i,style:a,children:e.options?.map(t=>(0,q.jsxs)(`div`,{className:`flex items-center space-x-2`,children:[(0,q.jsx)(gy,{value:String(t.value),id:`${e.id}-${String(t.value)}`}),(0,q.jsx)(X_,{htmlFor:`${e.id}-${String(t.value)}`,children:t.label})]},String(t.value)))})},{namespace:`ui`,label:`Radio Group`,inputs:[{name:`defaultValue`,type:`string`},{name:`id`,type:`string`,required:!0},{name:`options`,type:`array`,description:`Array of {label, value} objects`},{name:`orientation`,type:`enum`,enum:[`horizontal`,`vertical`]},{name:`className`,type:`string`}],defaultProps:{id:`radio-group`,options:[{label:`Option 1`,value:`option1`},{label:`Option 2`,value:`option2`},{label:`Option 3`,value:`option3`}]}}),U.register(`slider`,({schema:e,className:t,...n})=>{let{"data-obj-id":r,"data-obj-type":i,style:a,...o}=n,s=Array.isArray(e.defaultValue)?e.defaultValue:e.defaultValue===void 0?void 0:[e.defaultValue];return(0,q.jsx)(Db,{defaultValue:s,max:e.max,min:e.min,step:e.step,className:t,..._T(o),"data-obj-id":r,"data-obj-type":i,style:a})},{namespace:`ui`,label:`Slider`,inputs:[{name:`defaultValue`,type:`array`},{name:`max`,type:`number`},{name:`min`,type:`number`},{name:`step`,type:`number`},{name:`className`,type:`string`}],defaultProps:{defaultValue:[50],max:100,min:0,step:1,className:`w-full`}}),U.register(`toggle`,({schema:e,...t})=>{let{style:n,...r}=t;return(0,q.jsx)(Jb,{variant:e.variant,size:e.size,pressed:e.pressed,"aria-label":it(e.ariaLabel),..._T(r),style:n,children:e.label||Y(e.children)})},{namespace:`ui`,label:`Toggle`,inputs:[{name:`label`,type:`string`},{name:`pressed`,type:`boolean`},{name:`variant`,type:`enum`,enum:[`default`,`outline`]},{name:`size`,type:`enum`,enum:[`default`,`sm`,`lg`]},{name:`ariaLabel`,type:`string`},{name:`children`,type:`slot`,description:"Rich label content, rendered when `label` is not set"}],defaultProps:{label:`Toggle`,variant:`default`,size:`default`}}),U.register(`input-otp`,({schema:e,className:t,onChange:n,value:r,...i})=>{let{style:a,...o}=i,s=e.maxLength||6,c=Array.from({length:s});return(0,q.jsx)(jv,{maxLength:s,className:t,value:r??e.value,onChange:e=>{n&&n(e)},..._T(o),style:a,children:(0,q.jsx)(Mv,{children:c.map((e,t)=>(0,q.jsx)(Nv,{index:t},t))})})},{namespace:`ui`,label:`Input OTP`,inputs:[{name:`maxLength`,type:`number`},{name:`className`,type:`string`}],defaultProps:{maxLength:6}});function ST(e){return typeof e==`string`?nt(e):e instanceof Date?e:void 0}function CT(e,t){if(t!=null){if(e===`multiple`)return Array.isArray(t)?t.map(ST).filter(e=>e!==void 0):void 0;if(e===`range`){if(typeof t!=`object`||Array.isArray(t)||t instanceof Date)return;let{from:e,to:n}=t;return{from:ST(e),to:ST(n)}}return ST(t)}}function wT(e){let t=e=>e instanceof Date&&!Number.isNaN(e.getTime());if(Array.isArray(e))return e.find(t);let n=e instanceof Date?e:e?.from;return t(n)?n:void 0}U.register(`calendar`,({schema:e,className:t,...n})=>{let r=e.mode||`single`,i=CT(r,e.value||e.defaultValue);return(0,q.jsx)(Ld,{mode:r,selected:i,defaultMonth:wT(i),className:t,...n})},{namespace:`ui`,skipFallback:!0,label:`Calendar`,inputs:[{name:`mode`,type:`enum`,enum:[`single`,`multiple`,`range`]},{name:`className`,type:`string`}],defaultProps:{mode:`single`,className:`rounded-md border`}});function TT(e){return typeof e==`string`&&pe(e)?nt(e):e}U.register(`date-picker`,({schema:e,className:t,value:n,onChange:r,...i})=>{let a=Id(),o=TT(n),s=o,c=e=>{r&&r(e)},{"data-obj-id":l,"data-obj-type":u,style:d,...f}=i;return(0,q.jsxs)(`div`,{className:`grid w-full max-w-sm items-center gap-1.5 ${e.wrapperClass||``}`,"data-obj-id":l,"data-obj-type":u,style:d,children:[e.label&&(0,q.jsx)(X_,{htmlFor:e.id,children:e.label}),(0,q.jsxs)(dy,{children:[(0,q.jsx)(fy,{asChild:!0,children:(0,q.jsxs)(X,{id:e.id,variant:`outline`,className:J(`w-full justify-start text-left font-normal`,!n&&`text-muted-foreground`,t),..._T(f),children:[(0,q.jsx)(ui,{className:`mr-2 h-4 w-4`}),o?rl(o,e.format||`PPP`,{locale:a}):(0,q.jsx)(`span`,{children:e.placeholder||`Pick a date`})]})}),(0,q.jsx)(py,{className:`w-auto p-0`,children:(0,q.jsx)(Ld,{mode:`single`,defaultMonth:s,selected:s,onSelect:c,autoFocus:!0})})]})]})},{namespace:`ui`,label:`Date Picker`,inputs:[{name:`label`,type:`string`},{name:`placeholder`,type:`string`},{name:`format`,type:`string`,description:`date-fns format string (e.g., "PPP", "yyyy-MM-dd")`},{name:`id`,type:`string`,required:!0}],defaultProps:{label:`Date`,placeholder:`Pick a date`,format:`PPP`,id:`date-picker-field`}}),U.register(`file-upload`,({schema:e,className:t,value:n,onChange:r,...i})=>{let[a,o]=(0,K.useState)(n||[]),[s,c]=(0,K.useState)(!1),[l,u]=(0,K.useState)(0),d=(0,K.useRef)(null);(0,K.useEffect)(()=>{if(s){let e=setInterval(()=>{u(t=>t>=100?(clearInterval(e),c(!1),0):t+5)},50);return()=>clearInterval(e)}},[s]);let f=t=>{let n=Array.from(t.target.files||[]);if(n.length>0){c(!0),u(0);let t=e.multiple?[...a,...n]:n;setTimeout(()=>{o(t),r&&r(t)},1e3)}},p=e=>{let t=a.filter((t,n)=>n!==e);o(t),r&&r(t)},m=()=>{d.current?.click()},{"data-obj-id":h,"data-obj-type":g,style:_,...v}=i;return(0,q.jsxs)(`div`,{className:`grid w-full max-w-sm items-center gap-2 ${e.wrapperClass||``}`,"data-obj-id":h,"data-obj-type":g,style:_,children:[e.label&&(0,q.jsx)(X_,{htmlFor:e.id,children:e.label}),(0,q.jsxs)(`div`,{className:J(`relative flex flex-col gap-3 group/upload`,t),children:[(0,q.jsx)(`input`,{ref:d,type:`file`,id:e.id,className:`hidden`,accept:e.accept,multiple:e.multiple,onChange:f,..._T(v)}),(0,q.jsxs)(`div`,{onClick:m,className:J(`relative overflow-hidden cursor-pointer rounded-lg border-2 border-dashed transition-all duration-300 min-h-[120px] flex flex-col items-center justify-center p-4 sm:p-6 gap-3`,s?`border-cyan-400 bg-cyan-950/30`:`border-slate-700 bg-slate-900/50 hover:bg-slate-900 hover:border-cyan-500/50 hover:shadow-[0_0_20px_-5px_rgba(6,182,212,0.3)]`),children:[(0,q.jsx)(`div`,{className:`absolute inset-0 bg-[url('https://grainy-gradients.vercel.app/noise.svg')] opacity-5 pointer-events-none`}),(0,q.jsx)(`div`,{className:`absolute inset-0 bg-[linear-gradient(to_right,#80808012_1px,transparent_1px),linear-gradient(to_bottom,#80808012_1px,transparent_1px)] bg-[size:14px_24px] pointer-events-none`}),(0,q.jsx)(`div`,{className:J(`relative z-10 p-3 rounded-full bg-slate-800 border border-slate-700 transition-all duration-500`,s?`scale-110 shadow-[0_0_30px_cyan] border-cyan-400 animate-bounce`:`group-hover/upload:scale-110 group-hover/upload:shadow-lg group-hover/upload:border-cyan-500`),children:s?(0,q.jsx)(ia,{className:`w-8 h-8 text-cyan-300 animate-pulse`}):(0,q.jsx)(Sa,{className:`w-6 h-6 text-slate-400 group-hover/upload:text-cyan-400`})}),(0,q.jsx)(`div`,{className:`relative z-10 text-center`,children:(0,q.jsx)(`p`,{className:J(`text-xs font-mono uppercase tracking-widest transition-colors`,s?`text-cyan-300`:`text-slate-500 group-hover/upload:text-cyan-200`),children:s?`INITIATING LAUNCH SEQUENCE...`:e.buttonText||`DROP PAYLOAD OR CLICK TO UPLOAD`})}),s&&(0,q.jsx)(`div`,{className:`absolute bottom-0 left-0 h-1 bg-cyan-500 shadow-[0_0_10px_cyan] transition-all duration-75 ease-out`,style:{width:`${l}%`}})]}),a.length>0&&(0,q.jsx)(`div`,{className:`flex flex-col gap-2 mt-1 perspective-1000`,children:a.map((e,t)=>(0,q.jsxs)(`div`,{className:`relative group/file overflow-hidden flex items-center justify-between p-3 border border-border bg-card/80 rounded-sm text-sm transition-all hover:border-primary/30 hover:shadow-lg hover:shadow-primary/10 animate-in slide-in-from-bottom-2 fade-in`,children:[(0,q.jsx)(`div`,{className:`absolute left-0 top-0 bottom-0 w-[2px] bg-primary/50 group-hover/file:bg-primary group-hover/file:shadow-[0_0_8px_hsl(var(--primary))]`}),(0,q.jsxs)(`div`,{className:`flex items-center gap-3 z-10`,children:[(0,q.jsx)(xi,{className:`w-4 h-4 text-emerald-500 rounded-full`}),(0,q.jsx)(`span`,{className:`truncate max-w-[150px] sm:max-w-[200px] md:max-w-[300px] text-muted-foreground group-hover/file:text-foreground font-mono text-xs transition-colors`,children:e.name})]}),(0,q.jsx)(X,{type:`button`,variant:`ghost`,size:`sm`,className:`h-6 w-6 p-0 hover:bg-destructive/10 hover:text-destructive`,onClick:()=>p(t),children:(0,q.jsx)(wa,{className:`h-3 w-3`})}),(0,q.jsx)(`div`,{className:`absolute inset-0 bg-gradient-to-r from-transparent via-primary/5 to-transparent -translate-x-full group-hover/file:animate-[shimmer_1s_infinite] pointer-events-none`})]},t))})]})]})},{namespace:`ui`,label:`File Upload`,inputs:[{name:`label`,type:`string`},{name:`buttonText`,type:`string`},{name:`accept`,type:`string`,description:`MIME types (e.g., "image/*,application/pdf")`},{name:`multiple`,type:`boolean`},{name:`id`,type:`string`,required:!0}],defaultProps:{label:`Upload files`,buttonText:`Choose files`,multiple:!0,id:`file-upload-field`}});var ET=Tt(`flex w-fit items-stretch [&>*]:focus-visible:z-10 [&>*]:focus-visible:relative [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md has-[>[data-slot=button-group]]:gap-2`,{variants:{orientation:{horizontal:`[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none`,vertical:`flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none`}},defaultVariants:{orientation:`horizontal`}});function DT({className:e,orientation:t,...n}){return(0,q.jsx)(`div`,{role:`group`,"data-slot":`button-group`,"data-orientation":t,className:J(ET({orientation:t}),e),...n})}function OT({options:e,value:t,onValueChange:n,placeholder:r=`Select option...`,searchPlaceholder:i=`Search...`,emptyText:a=`No option found.`,className:o,disabled:s,...c}){let[l,u]=K.useState(!1);return(0,q.jsxs)(dy,{open:l,onOpenChange:u,children:[(0,q.jsx)(fy,{asChild:!0,children:(0,q.jsxs)(X,{type:`button`,...c,variant:`outline`,role:`combobox`,"aria-expanded":l,className:J(`w-[200px] min-w-0 justify-between`,o),disabled:s,children:[(0,q.jsx)(`span`,{className:`truncate`,children:t?e.find(e=>e.value===t)?.label:r}),(0,q.jsx)(yi,{className:`ml-2 h-4 w-4 shrink-0 opacity-50`})]})}),(0,q.jsx)(py,{className:`w-[var(--radix-popover-trigger-width)] min-w-[200px] p-0`,children:(0,q.jsxs)(mm,{children:[(0,q.jsx)(gm,{placeholder:i}),(0,q.jsxs)(_m,{children:[(0,q.jsx)(vm,{children:a}),(0,q.jsx)(ym,{children:e.map(e=>(0,q.jsxs)(xm,{value:e.value,disabled:e.disabled,onSelect:e=>{n?.(e===t?``:e),u(!1)},children:[(0,q.jsx)(fi,{className:J(`mr-2 h-4 w-4`,t===e.value?`opacity-100`:`opacity-0`)}),e.label]},e.value))})]})]})})]})}function kT({label:e,value:t,onClick:n,children:r,className:i}){return(0,q.jsxs)(n?`button`:`div`,{className:J(`flex items-center justify-between py-1.5 min-h-[32px] w-full text-left`,n&&`cursor-pointer hover:bg-accent/50 rounded-sm -mx-1 px-1`,i),onClick:n,type:n?`button`:void 0,children:[(0,q.jsx)(`span`,{className:`text-xs text-muted-foreground shrink-0 max-w-[45%] truncate`,title:e,children:e}),r||(0,q.jsx)(`span`,{className:`text-xs text-foreground truncate ml-4 text-right max-w-[55%]`,title:t,children:t})]})}var AT=[{value:`equals`,label:`Equals`},{value:`not_equals`,label:`Does not equal`},{value:`contains`,label:`Contains`},{value:`icontains`,label:`Contains (ignore case)`},{value:`not_contains`,label:`Does not contain`},{value:`is_empty`,label:`Is empty`},{value:`is_not_empty`,label:`Is not empty`},{value:`greater_than`,label:`Greater than`},{value:`less_than`,label:`Less than`},{value:`greater_than_or_equal`,label:`Greater than or equal`},{value:`less_than_or_equal`,label:`Less than or equal`},{value:`before`,label:`Before`},{value:`after`,label:`After`},{value:`between`,label:`Between`},{value:`in`,label:`In`},{value:`not_in`,label:`Not in`},{value:`starts_with`,label:`Starts with`},{value:`ends_with`,label:`Ends with`},{value:`is_null`,label:`Is null`},{value:`is_not_null`,label:`Is not null`},{value:`exists`,label:`Is set`},{value:`notExists`,label:`Is not set`}],jT=new Set([`exists`,`notExists`]),MT=AT.map(e=>e.value),NT=new Set(MT);function PT(e){return NT.has(e)}var FT=new Map([[`containsCaseInsensitive`,`icontains`]]);function IT(e){let t=FT.get(e);if(t!==void 0)return t;let n=a(e);return typeof n==`string`?n:e}function LT(e){let t=!1,n=e.conditions.map(e=>{if(!e||typeof e.operator!=`string`)return e;let n=IT(e.operator);return n===e.operator||!PT(n)?e:(t=!0,{...e,operator:n})});return t?{...e,conditions:n}:e}var RT=new Set([`is_empty`,`is_not_empty`,`is_null`,`is_not_null`,`exists`,`notExists`]),zT=new Set(f),BT=new Set(u);function VT(e){let t=IT(e);return zT.has(t)?`list`:BT.has(t)?`pair`:`scalar`}function HT(e,t){switch(VT(t)){case`list`:return Array.isArray(e)?e:yE(e);case`pair`:{let[t=``,n=``]=yE(e);return t===``&&n===``?[]:[t,n]}default:return Array.isArray(e)?e[0]??``:e}}function UT(e,t){let n=IT(e);return t.some(e=>IT(e.value)===n)?e:t[0]?.value??e}function WT(e,t){let n=IT(e);return t.find(e=>IT(e.value)===n)?.value??e}function GT(e){let t=e||`text`;return fE.includes(t)?`number`:t===`boolean`?`boolean`:t===`date`?`date`:t===`datetime`?`datetime`:t===`time`?`time`:`text`}var KT={text:`text`,number:`number`,date:`date`,datetime:`datetime-local`,time:`time`,boolean:`text`},qT=/^(\d{4}-\d{2}-\d{2})T(\d{2}):(\d{2})(?::(\d{2})(?:\.\d{1,3})?)?$/,JT=/^(\d{2}):(\d{2})(?::(\d{2}))?$/;function YT(e,t,n){return Number(e)<=23&&Number(t)<=59&&(n===void 0||Number(n)<=59)}function XT(e,t){if(e===``)return``;switch(t){case`text`:return typeof e==`string`?e:String(e);case`number`:{if(typeof e==`number`)return Number.isFinite(e)?e:void 0;if(typeof e==`boolean`)return;let t=e.trim();if(t===``)return``;let n=Number(t);return Number.isFinite(n)?n:void 0}case`boolean`:{if(typeof e==`boolean`)return e;if(typeof e==`number`)return;let t=e.trim().toLowerCase();return t===`true`||t!==`false`&&void 0}case`date`:{if(typeof e!=`string`)return;let t=e.trim(),n=qT.exec(t);return n?pe(n[1])&&YT(n[2],n[3],n[4])?n[1]:void 0:pe(t)?t:void 0}case`datetime`:{if(typeof e!=`string`)return;let t=e.trim(),n=qT.exec(t);return n&&pe(n[1])&&YT(n[2],n[3],n[4])?t:void 0}case`time`:{if(typeof e!=`string`)return;let t=e.trim(),n=JT.exec(t);return n&&YT(n[1],n[2],n[3])?t:void 0}}}function ZT(e,t,n){let r=GT(t);switch(VT(n)){case`list`:{let t=[];for(let n of yE(e)){let e=XT(n,r);e!==void 0&&e!==``&&t.push(e)}return t}case`pair`:{let[t=``,n=``]=yE(e),i=XT(t,r)??``,a=XT(n,r)??``;return i===``&&a===``?[]:[i,a]}default:return XT(Array.isArray(e)?e[0]??``:e,r)??``}}function QT(e){return(e?.options??[]).map(e=>String(e.value))}function $T(e){let t=e?.options;return Array.isArray(t)&&t.length>0}function eE(e,t){if(!e?.options)return!1;let n=e.type||``;switch(VT(t)){case`list`:return!0;case`pair`:return!1;default:return mE.includes(n)||hE.includes(n)}}function tE(e,t,n){if(!$T(t)||!eE(t,n))return e;let r=new Set(QT(t));if(VT(n)===`list`)return yE(e).filter(e=>r.has(String(e)));let i=Array.isArray(e)?e[0]??``:e;return _E(i)?``:r.has(String(i))?i:``}function nE(e,t){if(VT(e)===`pair`){let e=yE(t??``);return e.length===2&&!_E(e[0])&&!_E(e[1])}return!(t==null||t===``||Array.isArray(t)&&t.length===0)}function rE(e){let[t=``,n=``]=yE(e);return[t,n]}var iE=_t({"filterBuilder.where":`Where`,"filterBuilder.and":`AND`,"filterBuilder.or":`OR`,"filterBuilder.clearAll":`Clear all`,"filterBuilder.selectField":`Select field`,"filterBuilder.operator":`Operator`,"filterBuilder.selectValue":`Select value`,"filterBuilder.value":`Value`,"filterBuilder.addFilter":`Add filter`,"filterBuilder.removeCondition":`Remove condition`,"filterBuilder.trueLabel":`True`,"filterBuilder.falseLabel":`False`,"filterBuilder.noResults":`No results`,"filterBuilder.searchField":`Search {{label}}…`,"filterBuilder.enterId":`Enter {{label}} id`,"filterBuilder.addValue":`Type a value, press Enter`,"filterBuilder.removeValue":`Remove {{value}}`,"filterBuilder.rangeStart":`From`,"filterBuilder.rangeEnd":`To`,"filterBuilder.operators.equals":`Equals`,"filterBuilder.operators.not_equals":`Does not equal`,"filterBuilder.operators.contains":`Contains`,"filterBuilder.operators.icontains":`Contains (ignore case)`,"filterBuilder.operators.not_contains":`Does not contain`,"filterBuilder.operators.is_empty":`Is empty`,"filterBuilder.operators.is_not_empty":`Is not empty`,"filterBuilder.operators.greater_than":`Greater than`,"filterBuilder.operators.less_than":`Less than`,"filterBuilder.operators.greater_than_or_equal":`Greater than or equal`,"filterBuilder.operators.less_than_or_equal":`Less than or equal`,"filterBuilder.operators.before":`Before`,"filterBuilder.operators.after":`After`,"filterBuilder.operators.between":`Between`,"filterBuilder.operators.in":`In`,"filterBuilder.operators.not_in":`Not in`,"filterBuilder.operators.starts_with":`Starts with`,"filterBuilder.operators.ends_with":`Ends with`,"filterBuilder.operators.is_null":`Is null`,"filterBuilder.operators.is_not_null":`Is not null`,"filterBuilder.operators.exists":`Is set`,"filterBuilder.operators.notExists":`Is not set`,"validation.required":`{{field}} is required`},`filterBuilder.where`),aE=[`is_null`,`is_not_null`,`exists`,`notExists`],oE=[`equals`,`not_equals`,`contains`,`icontains`,`not_contains`,`starts_with`,`ends_with`,`is_empty`,`is_not_empty`,...aE],sE=[`equals`,`not_equals`,`greater_than`,`less_than`,`greater_than_or_equal`,`less_than_or_equal`,`is_empty`,`is_not_empty`,...aE],cE=[`equals`,`not_equals`],lE=[`equals`,`not_equals`,`before`,`after`,`between`,`is_empty`,`is_not_empty`,...aE],uE=[`equals`,`not_equals`,`in`,`not_in`,`is_empty`,`is_not_empty`,...aE],dE=[`equals`,`not_equals`,`in`,`not_in`,`is_empty`,`is_not_empty`,...aE],fE=[`number`,`currency`,`percent`,`rating`],pE=[`date`,`datetime`,`time`],mE=[`select`,`status`],hE=[`lookup`,`master_detail`,`user`];function gE(e,t=[]){let n=e||`text`,r=ct(n);r&&ie(n);let i=r?oE:fE.includes(n)?sE:n===`boolean`?cE:pE.includes(n)?lE:mE.includes(n)?uE:hE.includes(n)?dE:oE,a=new Set(t);return AT.filter(e=>i.includes(e.value)&&(!jT.has(e.value)||a.has(e.value)))}function _E(e){return e==null||e===``}function vE(e){return _E(e)?``:String(e)}function yE(e){return Array.isArray(e)?e:_E(e)?[]:[e]}function bE(e){return!!e&&typeof e==`object`&&Array.isArray(e.conditions)&&(e.logic===`and`||e.logic===`or`)}var xE={id:`root`,logic:`and`,conditions:[]};function SE({fields:e=[],value:t,onChange:n,className:r,showClearAll:i=!0,extraOperators:a}){let{t:o}=iE(),[s,c]=K.useState(bE(t)?LT(t):xE);K.useEffect(()=>{if(!bE(t))return;let e=LT(t);JSON.stringify(e)!==JSON.stringify(s)&&c(e)},[t]);let l=e=>{c(e),n?.(e)},u=()=>{let t={id:crypto.randomUUID(),field:e[0]?.value||``,operator:`equals`,value:``};l({...s,conditions:[...s.conditions,t]})},d=e=>{l({...s,conditions:s.conditions.filter(t=>t.id!==e)})},f=()=>{l({...s,conditions:[]})},p=(e,t)=>{l({...s,conditions:s.conditions.map(n=>n.id===e?{...n,...t}:n)})},m=(e,t)=>{l({...s,conditions:s.conditions.map(n=>n.id===e?{...n,operator:t,value:HT(n.value,t)}:n)})},h=()=>{l({...s,logic:s.logic===`and`?`or`:`and`})},g=t=>gE(e.find(e=>e.value===t)?.type,a),_=(t,n)=>{let r=g(n),i=e.find(e=>e.value===n),a=i?.type;l({...s,conditions:s.conditions.map(e=>{if(e.id!==t)return e;let o=UT(e.operator,r),s=PT(o)?o:e.operator,c=ZT(s===e.operator?e.value:HT(e.value,s),a,s);return{...e,field:n,operator:s,value:tE(c,i,s)}})})},v=e=>!RT.has(IT(e)),y=t=>KT[GT(e.find(e=>e.value===t)?.type)],b=t=>{let n=e.find(e=>e.value===t.field),r=VT(t.operator),i=r===`list`,a=ct(n?.type);if(a&&ie(n.type),!a&&hE.includes(n?.type||``)&&!$T(n)&&(n?.referenceTo||n?.type===`user`))return(0,q.jsx)(wE,{field:n,value:t.value,multiple:i,onChange:e=>p(t.id,{value:e})});if(n?.options&&i){let e=yE(t.value),r=QT(n),i=[...new Set(e.map(String).filter(e=>!r.includes(e)))];return(0,q.jsxs)(`div`,{className:`max-h-40 overflow-y-auto space-y-0.5 border rounded-md p-2`,children:[i.map(n=>(0,q.jsxs)(`label`,{className:`flex items-center gap-2 text-sm py-1 px-1.5 rounded cursor-pointer bg-primary/5 text-primary`,"data-testid":`filter-value-outside-options-${t.field}`,children:[(0,q.jsx)(ip,{checked:!0,onCheckedChange:()=>p(t.id,{value:e.filter(e=>String(e)!==n)})}),(0,q.jsx)(`span`,{className:`truncate`,children:n})]},`outside-${n}`)),n.options.map(n=>{let r=e.map(String).includes(String(n.value));return(0,q.jsxs)(`label`,{className:J(`flex items-center gap-2 text-sm py-1 px-1.5 rounded cursor-pointer`,r?`bg-primary/5 text-primary`:`hover:bg-muted`),children:[(0,q.jsx)(ip,{checked:r,onCheckedChange:r=>{let i=r?[...e,n.value]:e.filter(e=>String(e)!==String(n.value));p(t.id,{value:i})}}),(0,q.jsx)(`span`,{className:`truncate`,children:n.label})]},n.value)})]})}if(i)return(0,q.jsx)(CE,{values:yE(t.value),inputType:y(t.field),numeric:fE.includes(n?.type||``),testId:`filter-multi-value-${t.field}`,onChange:e=>p(t.id,{value:e})});if(r===`pair`){let e=rE(t.value),r=y(t.field),i=fE.includes(n?.type||``),a=_E(e[0])===_E(e[1])?null:+!_E(e[0]),s=`filter-range-incomplete-${t.id}`,c=o(a===0?`filterBuilder.rangeStart`:`filterBuilder.rangeEnd`),l=e=>a===e||void 0,u=(n,r)=>{let a=[e[0],e[1]];a[n]=i?XT(r,`number`)??``:r,p(t.id,{value:a[0]===``&&a[1]===``?[]:a})};return(0,q.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,q.jsxs)(`div`,{className:`flex items-center gap-1.5`,"data-testid":`filter-range-${t.field}`,children:[(0,q.jsx)(Fv,{type:r,className:J(`h-9 text-sm`,a===0&&`border-destructive`),placeholder:o(`filterBuilder.rangeStart`),"aria-label":o(`filterBuilder.rangeStart`),"aria-invalid":l(0),"aria-describedby":a===0?s:void 0,value:vE(e[0]),onChange:e=>u(0,e.target.value)}),(0,q.jsx)(`span`,{className:`text-xs text-muted-foreground shrink-0`,children:`-`}),(0,q.jsx)(Fv,{type:r,className:J(`h-9 text-sm`,a===1&&`border-destructive`),placeholder:o(`filterBuilder.rangeEnd`),"aria-label":o(`filterBuilder.rangeEnd`),"aria-invalid":l(1),"aria-describedby":a===1?s:void 0,value:vE(e[1]),onChange:e=>u(1,e.target.value)})]}),a!==null&&(0,q.jsx)(`p`,{id:s,className:`text-xs text-destructive`,children:o(`validation.required`,{field:c})})]})}if(n?.options&&(mE.includes(n.type||``)||hE.includes(n.type||``))){let e=vE(t.value),r=e!==``&&!QT(n).includes(e);return(0,q.jsxs)(yy,{value:e,onValueChange:e=>p(t.id,{value:e}),children:[(0,q.jsx)(xy,{className:`h-9 text-sm`,children:(0,q.jsx)(by,{placeholder:o(`filterBuilder.selectValue`)})}),(0,q.jsxs)(wy,{children:[r&&(0,q.jsx)(Ey,{value:e,"data-testid":`filter-value-outside-options-${t.field}`,children:e}),n.options.map(e=>(0,q.jsx)(Ey,{value:e.value,children:e.label},e.value))]})]})}if(n?.type===`boolean`)return(0,q.jsxs)(yy,{value:vE(t.value),onValueChange:e=>p(t.id,{value:e===`true`}),children:[(0,q.jsx)(xy,{className:`h-9 text-sm`,children:(0,q.jsx)(by,{placeholder:o(`filterBuilder.selectValue`)})}),(0,q.jsxs)(wy,{children:[(0,q.jsx)(Ey,{value:`true`,children:o(`filterBuilder.trueLabel`)}),(0,q.jsx)(Ey,{value:`false`,children:o(`filterBuilder.falseLabel`)})]})]});let s=y(t.field),c=()=>_E(t.value)?``:s===`date`&&typeof t.value==`string`?t.value.split(`T`)[0]:vE(t.value),l=e=>{let r=e;fE.includes(n?.type||``)?r=XT(e,`number`)??``:pE.includes(n?.type||``)&&(r=e),p(t.id,{value:r})};return(0,q.jsx)(Fv,{type:s,className:`h-9 text-sm`,placeholder:o(`filterBuilder.value`),value:c(),onChange:e=>l(e.target.value)})};return(0,q.jsxs)(`div`,{className:J(`space-y-3`,r),children:[(0,q.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,q.jsx)(`span`,{className:`text-sm font-medium`,children:o(`filterBuilder.where`)}),s.conditions.length>1&&(0,q.jsx)(X,{type:`button`,variant:`outline`,size:`sm`,onClick:h,className:`h-7 text-xs`,children:s.logic===`or`?o(`filterBuilder.or`):o(`filterBuilder.and`)})]}),i&&s.conditions.length>0&&(0,q.jsxs)(X,{type:`button`,variant:`ghost`,size:`sm`,onClick:f,className:`h-7 text-xs text-muted-foreground hover:text-destructive`,children:[(0,q.jsx)(_a,{className:`h-3 w-3 mr-1`}),o(`filterBuilder.clearAll`)]})]}),(0,q.jsx)(`div`,{className:`space-y-2`,children:s.conditions.map(t=>(0,q.jsxs)(`div`,{className:`flex items-start gap-2`,children:[(0,q.jsxs)(`div`,{className:`flex-1 grid grid-cols-12 gap-2`,children:[(0,q.jsx)(`div`,{className:`col-span-4`,children:(0,q.jsxs)(yy,{value:t.field,onValueChange:e=>_(t.id,e),children:[(0,q.jsx)(xy,{className:`h-9 text-sm`,children:(0,q.jsx)(by,{placeholder:o(`filterBuilder.selectField`)})}),(0,q.jsx)(wy,{children:e.map(e=>(0,q.jsx)(Ey,{value:e.value,children:e.label},e.value))})]})}),(0,q.jsx)(`div`,{className:`col-span-4`,children:(0,q.jsxs)(yy,{value:WT(t.operator,g(t.field)),onValueChange:e=>{PT(e)&&m(t.id,e)},children:[(0,q.jsx)(xy,{className:`h-9 text-sm`,children:(0,q.jsx)(by,{placeholder:o(`filterBuilder.operator`)})}),(0,q.jsx)(wy,{children:g(t.field).map(e=>(0,q.jsx)(Ey,{value:e.value,children:o(`filterBuilder.operators.${e.value}`)},e.value))})]})}),v(t.operator)&&(0,q.jsx)(`div`,{className:`col-span-4`,children:b(t)})]}),(0,q.jsxs)(X,{type:`button`,variant:`ghost`,size:`icon`,className:`h-9 w-9 shrink-0`,onClick:()=>d(t.id),children:[(0,q.jsx)(wa,{className:`h-4 w-4`}),(0,q.jsx)(`span`,{className:`sr-only`,children:o(`filterBuilder.removeCondition`)})]})]},t.id))}),(0,q.jsxs)(X,{type:`button`,variant:`outline`,size:`sm`,onClick:u,className:`h-8`,disabled:e.length===0,children:[(0,q.jsx)(ea,{className:`h-3 w-3`}),o(`filterBuilder.addFilter`)]})]})}SE.displayName=`FilterBuilder`;function CE({values:e,inputType:t,numeric:n,testId:r,onChange:i}){let{t:a}=iE(),[o,s]=K.useState(``),c=t=>{let r=t.trim();if(r===``)return;let a=n?XT(r,`number`):r;a!==void 0&&a!==``&&(s(``),!e.some(e=>String(e)===String(a))&&i([...e,a]))},l=t=>{i(e.filter((e,n)=>n!==t))};return(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-1.5 rounded-md border border-input bg-background p-1.5`,"data-testid":r,children:[e.map((e,t)=>(0,q.jsxs)(fs,{variant:`secondary`,className:`gap-1`,children:[(0,q.jsx)(`span`,{className:`truncate max-w-[12ch]`,children:String(e)}),(0,q.jsx)(`button`,{type:`button`,onClick:()=>l(t),className:`ml-0.5 rounded-full text-muted-foreground hover:text-foreground`,"aria-label":a(`filterBuilder.removeValue`,{value:String(e)}),children:(0,q.jsx)(wa,{className:`h-3 w-3`})})]},`${String(e)}-${t}`)),(0,q.jsx)(Fv,{type:t,value:o,onChange:e=>s(e.target.value),onKeyDown:t=>{t.key===`Enter`||t.key===`,`?(t.preventDefault(),c(o)):t.key===`Backspace`&&o===``&&e.length>0&&l(e.length-1)},onBlur:()=>c(o),placeholder:e.length===0?a(`filterBuilder.addValue`):``,"aria-label":a(`filterBuilder.addValue`),className:`h-7 flex-1 border-0 bg-transparent p-0 px-1 shadow-none focus-visible:ring-0 min-w-[6ch] text-sm`})]})}CE.displayName=`MultiValueInput`;function wE({field:e,value:t,multiple:n,onChange:r}){let{t:i}=iE(),a=K.useContext(x)?.dataSource??null,o=e.referenceTo||(e.type===`user`?`users`:void 0),s=e.displayField||`name`,c=e.idField||`id`,[l,u]=K.useState(!1),[d,f]=K.useState(``),[p,m]=K.useState([]),[h,g]=K.useState(!1),[_,v]=K.useState(null),[y,b]=K.useState({}),S=K.useRef(null),C=K.useMemo(()=>n?yE(t).map(e=>String(e)):_E(t)?[]:[String(t)],[t,n]),w=a!=null&&typeof a.find==`function`&&!!o,T=K.useCallback(e=>{let t=e?.[c]??e?.id??e?._id,n=e?.[s]??e?.label??e?.name??String(t);return{value:t,label:String(n)}},[s,c]),E=K.useCallback(async e=>{if(w){g(!0),v(null);try{let t={$top:50};e&&e.trim()&&(t.$search=e.trim());let n=await a.find(o,t),r=(n?.data??n??[]).map(T);m(r),r.length>0&&b(e=>{let t={...e};for(let e of r)t[String(e.value)]=e.label;return t})}catch(e){v(e instanceof Error?e.message:String(e)),m([])}finally{g(!1)}}},[a,o,w,T]);K.useEffect(()=>{if(!w||C.length===0)return;let e=C.filter(e=>!(e in y));if(e.length===0)return;let t=!1;return(async()=>{try{let n=await a.find(o,{$top:e.length,$filter:{[c]:{$in:e}}}),r=n?.data??n??[];if(t)return;b(e=>{let t={...e};for(let e of r){let n=T(e);t[String(n.value)]=n.label}return t})}catch{}})(),()=>{t=!0}},[C,w,a,o,c,T,y]),K.useEffect(()=>{l&&w&&p.length===0&&E()},[l]);let D=e=>{f(e),w&&(S.current&&clearTimeout(S.current),S.current=setTimeout(()=>E(e||void 0),300))},O=e=>{if(n){let n=yE(t);r(n.map(String).includes(String(e))?n.filter(t=>String(t)!==String(e)):[...n,e])}else r(e),u(!1)};return w?(0,q.jsxs)(dy,{open:l,onOpenChange:u,children:[(0,q.jsx)(fy,{asChild:!0,children:(0,q.jsxs)(`button`,{type:`button`,className:J(`inline-flex h-9 w-full items-center justify-between gap-2 rounded-md border border-input bg-background px-3 text-sm`,`hover:bg-accent hover:text-accent-foreground`,`focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-1`),"data-testid":`lookup-picker-${e.value}`,children:[C.length===0?(0,q.jsx)(`span`,{className:`text-muted-foreground truncate`,children:i(`filterBuilder.searchField`,{label:e.label})}):n?(0,q.jsx)(`span`,{className:`truncate`,children:C.length===1?y[C[0]]||C[0]:`${C.length} selected`}):(0,q.jsx)(`span`,{className:`truncate`,children:y[C[0]]||C[0]}),(0,q.jsxs)(`span`,{className:`flex items-center gap-1 shrink-0`,children:[C.length>0&&(0,q.jsx)(wa,{className:`h-3.5 w-3.5 opacity-60 hover:opacity-100`,onClick:e=>{e.stopPropagation(),r(n?[]:``)}}),(0,q.jsx)(pi,{className:`h-3.5 w-3.5 opacity-60`})]})]})}),(0,q.jsxs)(py,{align:`start`,className:`w-72 p-0`,children:[(0,q.jsxs)(`div`,{className:`flex items-center border-b px-3`,children:[(0,q.jsx)(ca,{className:`h-4 w-4 text-muted-foreground shrink-0`}),(0,q.jsx)(`input`,{autoFocus:!0,value:d,onChange:e=>D(e.target.value),placeholder:i(`filterBuilder.searchField`,{label:e.label}),className:`flex h-9 w-full bg-transparent px-2 py-1 text-sm outline-none placeholder:text-muted-foreground`,"data-testid":`lookup-search-${e.value}`}),h&&(0,q.jsx)(qi,{className:`h-3.5 w-3.5 animate-spin text-muted-foreground`})]}),(0,q.jsxs)(`div`,{className:`max-h-64 overflow-y-auto p-1`,"data-testid":`lookup-options-${e.value}`,children:[_&&(0,q.jsx)(`div`,{className:`px-3 py-2 text-xs text-destructive`,children:_}),!_&&!h&&p.length===0&&(0,q.jsx)(`div`,{className:`px-3 py-4 text-center text-xs text-muted-foreground`,children:i(`filterBuilder.noResults`)}),p.map(e=>{let t=C.includes(String(e.value));return(0,q.jsxs)(`label`,{className:J(`flex items-center gap-2 px-2 py-1.5 rounded text-sm cursor-pointer`,t?`bg-primary/5 text-primary`:`hover:bg-muted`),children:[n?(0,q.jsx)(ip,{checked:t,onCheckedChange:()=>O(e.value)}):(0,q.jsx)(`input`,{type:`radio`,checked:t,onChange:()=>O(e.value),className:`rounded-full border-input`}),(0,q.jsx)(`span`,{className:`truncate flex-1`,children:e.label})]},String(e.value))})]})]})]}):n?(0,q.jsx)(CE,{values:yE(t),inputType:`text`,numeric:!1,testId:`lookup-ids-${e.value}`,onChange:r}):(0,q.jsx)(Fv,{className:`h-9 text-sm`,placeholder:i(`filterBuilder.enterId`,{label:e.label}),value:C[0]??``,onChange:e=>r(e.target.value)})}var TE=_t({"sortBuilder.sortBy":`Sort by`,"sortBuilder.thenBy":`Then by`,"sortBuilder.selectField":`Select field`,"sortBuilder.ascending":`A → Z`,"sortBuilder.descending":`Z → A`,"sortBuilder.addSort":`Add sort`,"sortBuilder.removeSort":`Remove sort`},`sortBuilder.sortBy`);function EE({fields:e=[],value:t=[],onChange:n,className:r}){let{t:i}=TE(),a=K.useCallback(e=>(e||[]).map((e,t)=>({id:e?.id??(typeof crypto<`u`&&crypto.randomUUID?crypto.randomUUID():`sort-${t}-${e?.field??``}`),field:e?.field??``,order:e?.order??e?.sortOrder??`asc`})),[]),[o,s]=K.useState(()=>a(t));K.useEffect(()=>{let e=a(t),n=e=>e.map(({id:e,...t})=>t);JSON.stringify(n(e))!==JSON.stringify(n(o))&&s(e)},[t,o,a]);let c=e=>{s(e),n?.(e)},l=()=>{let t={id:crypto.randomUUID(),field:e[0]?.value||``,order:`asc`};c([...o,t])},u=(e,t)=>{c(o.map(n=>n.id===e?{...n,...t}:n))},d=e=>{c(o.filter(t=>t.id!==e))};return(0,q.jsxs)(`div`,{className:J(`space-y-3`,r),children:[(0,q.jsx)(`div`,{className:`space-y-2`,children:o.map((t,n)=>(0,q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,q.jsx)(`span`,{className:`text-sm font-medium w-16 text-muted-foreground`,children:i(n===0?`sortBuilder.sortBy`:`sortBuilder.thenBy`)}),(0,q.jsx)(`div`,{className:`flex-1`,children:(0,q.jsxs)(yy,{value:t.field,onValueChange:e=>u(t.id,{field:e}),children:[(0,q.jsx)(xy,{className:`h-9`,children:(0,q.jsx)(by,{placeholder:i(`sortBuilder.selectField`)})}),(0,q.jsx)(wy,{children:e.map(e=>(0,q.jsx)(Ey,{value:e.value,children:e.label},e.value))})]})}),(0,q.jsx)(`div`,{className:`w-28`,children:(0,q.jsxs)(yy,{value:t.order,onValueChange:e=>u(t.id,{order:e}),children:[(0,q.jsx)(xy,{className:`h-9`,children:(0,q.jsx)(by,{})}),(0,q.jsxs)(wy,{children:[(0,q.jsx)(Ey,{value:`asc`,children:i(`sortBuilder.ascending`)}),(0,q.jsx)(Ey,{value:`desc`,children:i(`sortBuilder.descending`)})]})]})}),(0,q.jsx)(X,{variant:`ghost`,size:`icon`,className:`h-9 w-9 shrink-0`,onClick:()=>d(t.id),children:(0,q.jsx)(wa,{className:`h-4 w-4`})})]},t.id))}),(0,q.jsxs)(X,{variant:`outline`,size:`sm`,onClick:l,className:`h-8`,disabled:e.length===0,children:[(0,q.jsx)(ea,{className:`h-3 w-3 mr-2`}),i(`sortBuilder.addSort`)]})]})}function DE({field:e,value:t,onChange:n,draft:r,objectDef:i}){if(e.visibleWhen&&!e.visibleWhen(r))return null;let a=e.disabled||(e.disabledWhen?e.disabledWhen(r):!1),o=t??e.defaultValue,s=null;switch(e.type){case`input`:s=(0,q.jsx)(kT,{label:e.label,children:(0,q.jsx)(Fv,{"data-testid":`config-field-${e.key}`,className:`h-7 w-32 text-xs`,value:o??``,placeholder:e.placeholder,disabled:a,onChange:e=>n(e.target.value)})});break;case`textarea`:s=(0,q.jsx)(kT,{label:e.label,className:`flex-col items-stretch gap-1`,children:(0,q.jsx)(Kb,{"data-testid":`config-field-${e.key}`,className:`min-h-[60px] w-full text-xs`,value:o??``,placeholder:e.placeholder,disabled:a,rows:3,onChange:e=>n(e.target.value)})});break;case`switch`:s=(0,q.jsx)(kT,{label:e.label,children:(0,q.jsx)(Nb,{"data-testid":`config-field-${e.key}`,checked:!!o,disabled:a,onCheckedChange:e=>n(e),className:`scale-75`})});break;case`checkbox`:s=(0,q.jsx)(kT,{label:e.label,children:(0,q.jsx)(ip,{"data-testid":`config-field-${e.key}`,checked:!!o,disabled:a,onCheckedChange:e=>n(e)})});break;case`select`:s=(0,q.jsx)(kT,{label:e.label,children:(0,q.jsxs)(yy,{value:String(o??``),onValueChange:e=>n(e),disabled:a,children:[(0,q.jsx)(xy,{"data-testid":`config-field-${e.key}`,className:`h-7 w-32 text-xs`,children:(0,q.jsx)(by,{placeholder:e.placeholder??`Select…`})}),(0,q.jsx)(wy,{children:(e.options??[]).map(e=>(0,q.jsx)(Ey,{value:e.value,children:e.label},e.value))})]})});break;case`slider`:s=(0,q.jsx)(kT,{label:e.label,children:(0,q.jsxs)(`div`,{className:`flex items-center gap-2 w-32`,children:[(0,q.jsx)(Db,{"data-testid":`config-field-${e.key}`,value:[Number(o??e.min??0)],min:e.min??0,max:e.max??100,step:e.step??1,disabled:a,onValueChange:e=>n(e[0]),"aria-label":e.label}),(0,q.jsx)(`span`,{className:`text-xs text-muted-foreground w-6 text-right`,children:o??e.min??0})]})});break;case`color`:s=(0,q.jsx)(kT,{label:e.label,children:(0,q.jsx)(`input`,{"data-testid":`config-field-${e.key}`,type:`color`,className:`h-7 w-10 rounded border cursor-pointer`,value:o??`#000000`,disabled:a,onChange:e=>n(e.target.value)})});break;case`icon-group`:s=(0,q.jsx)(kT,{label:e.label,children:(0,q.jsx)(`div`,{className:`flex items-center gap-0.5`,"data-testid":`config-field-${e.key}`,children:(e.options??[]).map(e=>(0,q.jsx)(X,{type:`button`,size:`sm`,variant:o===e.value?`default`:`ghost`,className:J(`h-7 w-7 p-0`,o===e.value&&`ring-1 ring-primary`),disabled:a,onClick:()=>n(e.value),title:e.label,children:e.icon??(0,q.jsx)(`span`,{className:`text-[10px]`,children:e.label.charAt(0)})},e.value))})});break;case`field-picker`:s=(0,q.jsx)(kT,{label:e.label,value:o??e.placeholder??`Select field…`,onClick:a?void 0:()=>{}});break;case`filter`:s=(0,q.jsxs)(`div`,{"data-testid":`config-field-${e.key}`,children:[(0,q.jsx)(kT,{label:e.label}),(0,q.jsx)(SE,{fields:e.fields,value:o,onChange:n,className:`px-1 pb-2`})]});break;case`sort`:s=(0,q.jsxs)(`div`,{"data-testid":`config-field-${e.key}`,children:[(0,q.jsx)(kT,{label:e.label}),(0,q.jsx)(EE,{fields:e.fields,value:o,onChange:n,className:`px-1 pb-2`})]});break;case`custom`:e.render&&(s=(0,q.jsx)(q.Fragment,{children:e.render(o,n,r)}));break;case`summary`:s=(0,q.jsx)(kT,{label:e.label,onClick:e.onSummaryClick,children:(0,q.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,q.jsx)(`span`,{className:`text-xs text-foreground truncate max-w-[120px]`,"data-testid":`config-field-${e.key}-text`,children:e.summaryText??o??``}),e.onSummaryClick&&(0,q.jsx)(la,{className:`h-3.5 w-3.5 text-muted-foreground shrink-0`,"aria-hidden":`true`,"data-testid":`config-field-${e.key}-gear`})]})})}return s?e.helpText?(0,q.jsxs)(`div`,{children:[s,(0,q.jsx)(`p`,{className:`text-[10px] text-muted-foreground mt-0.5 mb-1`,children:e.helpText})]}):(0,q.jsx)(q.Fragment,{children:s}):null}function OE({title:e,icon:t,collapsible:n,collapsed:r,onToggle:i,testId:a,className:o}){let s=(0,q.jsxs)(`h3`,{className:`text-xs font-semibold text-foreground uppercase tracking-wider flex items-center gap-1.5`,children:[t&&(0,q.jsx)(`span`,{className:`text-muted-foreground shrink-0`,"aria-hidden":`true`,children:t}),e]});return n?(0,q.jsxs)(`button`,{"data-testid":a,className:J(`flex items-center justify-between pt-4 pb-1.5 first:pt-0 w-full text-left`,o),onClick:i,type:`button`,"aria-expanded":!r,children:[s,r?(0,q.jsx)(hi,{className:`h-3 w-3 text-muted-foreground`}):(0,q.jsx)(pi,{className:`h-3 w-3 text-muted-foreground`})]}):(0,q.jsx)(`div`,{className:J(`pt-4 pb-1.5 first:pt-0`,o),"data-testid":a,children:s})}var kE=_t({"common.save":`Save`,"common.discard":`Discard`},`common.save`);function AE({open:e,onClose:t,schema:n,draft:r,isDirty:i,onFieldChange:a,onSave:o,onDiscard:s,headerExtra:c,objectDef:l,className:u,style:d,saveLabel:f,discardLabel:p,panelRef:m,role:h,ariaLabel:g,tabIndex:_,testId:v,closeTitle:y,footerTestId:b,saveTestId:x,discardTestId:S,expandedSections:C,onUndo:w,onRedo:T,canUndo:E,canRedo:D,undoLabel:O=`Undo`,redoLabel:k=`Redo`}){let[A,j]=(0,K.useState)({}),{t:M}=kE();if(!e)return null;let N=(e,t)=>{j(n=>({...n,[e]:!(n[e]??t??!1)}))},P=(e,t)=>C&&C.includes(e)?!1:A[e]??t??!1;return(0,q.jsxs)(`div`,{ref:m,"data-testid":v??`config-panel`,role:h,"aria-label":g,tabIndex:_,style:d,className:J(`absolute inset-y-0 right-0 w-full sm:w-[var(--config-panel-width,280px)] sm:relative border-l bg-background flex flex-col shrink-0 z-20`,u),children:[(0,q.jsxs)(`div`,{className:`px-4 py-3 border-b flex items-center justify-between shrink-0`,children:[(0,q.jsx)(`nav`,{"aria-label":`breadcrumb`,children:(0,q.jsx)(`ol`,{className:`flex items-center gap-1 text-xs text-muted-foreground`,children:n.breadcrumb.map((e,t)=>(0,q.jsxs)(K.Fragment,{children:[t>0&&(0,q.jsx)(hi,{className:`h-3 w-3`}),(0,q.jsx)(`li`,{className:J(t===n.breadcrumb.length-1&&`text-foreground font-medium`),children:e})]},t))})}),(0,q.jsxs)(`div`,{className:`flex items-center gap-1`,children:[w&&(0,q.jsx)(X,{size:`sm`,variant:`ghost`,onClick:w,disabled:!E,className:`h-7 w-7 p-0`,"data-testid":`config-panel-undo`,title:O,children:(0,q.jsx)(xa,{className:`h-3.5 w-3.5`})}),T&&(0,q.jsx)(X,{size:`sm`,variant:`ghost`,onClick:T,disabled:!D,className:`h-7 w-7 p-0`,"data-testid":`config-panel-redo`,title:k,children:(0,q.jsx)(na,{className:`h-3.5 w-3.5`})}),c,(0,q.jsx)(X,{size:`sm`,variant:`ghost`,onClick:t,className:`h-7 w-7 p-0`,"data-testid":`config-panel-close`,title:y,children:(0,q.jsx)(wa,{className:`h-3.5 w-3.5`})})]})]}),(0,q.jsx)(`div`,{className:`flex-1 overflow-auto px-4 pb-4`,children:n.sections.map((e,t)=>{if(e.visibleWhen&&!e.visibleWhen(r))return null;let n=P(e.key,e.defaultCollapsed);return(0,q.jsxs)(`div`,{"data-testid":`config-section-${e.key}`,children:[t>0&&(0,q.jsx)(Oy,{className:`my-3`}),(0,q.jsx)(OE,{title:e.title,icon:e.icon,collapsible:e.collapsible,collapsed:n,onToggle:()=>N(e.key,e.defaultCollapsed),testId:`section-header-${e.key}`}),e.hint&&(0,q.jsx)(`p`,{className:`text-[10px] text-muted-foreground mb-1`,children:e.hint}),!n&&(0,q.jsxs)(`div`,{className:`space-y-1`,children:[e.fields.map(e=>(0,q.jsx)(DE,{field:e,value:r[e.key],onChange:t=>a(e.key,t),draft:r,objectDef:l},e.key)),e.subsections?.map(e=>{if(e.visibleWhen&&!e.visibleWhen(r))return null;let t=P(e.key,e.defaultCollapsed);return(0,q.jsxs)(`div`,{"data-testid":`config-subsection-${e.key}`,className:`ml-1`,role:`group`,"aria-label":e.title,children:[(0,q.jsx)(OE,{title:e.title,icon:e.icon,collapsible:e.collapsible,collapsed:t,onToggle:()=>N(e.key,e.defaultCollapsed),testId:`section-header-${e.key}`,className:`pt-2 pb-1`}),!t&&(0,q.jsx)(`div`,{className:`space-y-1`,children:e.fields.map(e=>(0,q.jsx)(DE,{field:e,value:r[e.key],onChange:t=>a(e.key,t),draft:r,objectDef:l},e.key))})]},e.key)})]})]},e.key)})}),i&&(0,q.jsxs)(`div`,{className:`px-4 py-2 border-t flex gap-2 shrink-0`,"data-testid":b??`config-panel-footer`,children:[(0,q.jsxs)(X,{size:`sm`,onClick:o,"data-testid":x??`config-panel-save`,children:[(0,q.jsx)(sa,{className:`h-3.5 w-3.5 mr-1`}),f??M(`common.save`)]}),(0,q.jsxs)(X,{size:`sm`,variant:`ghost`,onClick:s,"data-testid":S??`config-panel-discard`,children:[(0,q.jsx)(aa,{className:`h-3.5 w-3.5 mr-1`}),p??M(`common.discard`)]})]})]})}function jE(){let{t:e}=Ct(),t=e(`detail.noValue`);return!t||t===`detail.noValue`?`No value`:t}function ME({className:e,...t}){return(0,q.jsx)(`div`,{"data-slot":`empty`,className:J(`flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-lg p-(--empty-padding) [--empty-padding:--spacing(6)] md:[--empty-padding:--spacing(12)] text-center text-balance`,e),...t})}function NE({className:e,...t}){return(0,q.jsx)(`div`,{"data-slot":`empty-header`,className:J(`flex max-w-sm flex-col items-center gap-2 text-center`,e),...t})}var PE=Tt(`flex shrink-0 items-center justify-center mb-2 [&_svg]:pointer-events-none [&_svg]:shrink-0`,{variants:{variant:{default:`bg-transparent`,icon:`bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6`}},defaultVariants:{variant:`default`}});function FE({className:e,variant:t=`default`,...n}){return(0,q.jsx)(`div`,{"data-slot":`empty-icon`,"data-variant":t,className:J(PE({variant:t,className:e})),...n})}function IE({className:e,...t}){return(0,q.jsx)(`div`,{"data-slot":`empty-title`,className:J(`text-lg font-medium tracking-tight`,e),...t})}function LE({className:e,...t}){return(0,q.jsx)(`div`,{"data-slot":`empty-description`,className:J(`text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4`,e),...t})}function $({className:e,glyph:t=`—`,...n}){let r=jE();return(0,q.jsx)(`span`,{"data-slot":`empty-value`,"aria-label":r,className:J(`select-none text-muted-foreground/50 no-underline pointer-events-none`,e),...n,children:t})}var RE=Tt(`space-y-2`),zE=K.forwardRef(({className:e,label:t,description:n,error:r,required:i,htmlFor:a,children:o,...s},c)=>{let l=K.useId(),u=a||l,d=`${u}-description`,f=`${u}-error`;return(0,q.jsxs)(`div`,{ref:c,className:J(RE(),e),...s,children:[t&&(0,q.jsxs)(X_,{htmlFor:u,className:J(r&&`text-destructive`),children:[t,i&&(0,q.jsx)(`span`,{className:`ml-0.5 text-destructive`,"data-required-marker":`true`,"aria-hidden":`true`,children:`*`})]}),(0,q.jsx)(zt,{id:u,"aria-describedby":[n&&d,r&&f].filter(Boolean).join(` `)||void 0,"aria-invalid":!!r,"aria-required":i||void 0,children:o}),n&&!r&&(0,q.jsx)(`p`,{id:d,className:`text-[0.8rem] text-muted-foreground`,children:n}),r&&(0,q.jsx)(`p`,{id:f,className:`text-[0.8rem] font-medium text-destructive`,children:r})]})});zE.displayName=`FieldContainer`;var BE=K.forwardRef(({className:e,startContent:t,endContent:n,children:r,...i},a)=>(0,q.jsxs)(`div`,{ref:a,className:J(`flex w-full items-center rounded-md border border-input bg-transparent ring-offset-background focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2`,`has-[[data-invalid]]:border-destructive`,e),...i,children:[t&&(0,q.jsx)(`div`,{className:`flex items-center px-3 text-muted-foreground bg-muted/50 border-r h-full self-stretch rounded-l-md`,children:t}),(0,q.jsx)(`div`,{className:`flex-1 relative [&_input]:border-0 [&_input]:shadow-none [&_input]:focus-visible:ring-0 [&_input]:bg-transparent`,children:r}),n&&(0,q.jsx)(`div`,{className:`flex items-center px-3 text-muted-foreground bg-muted/50 border-l h-full self-stretch rounded-r-md`,children:n})]}));BE.displayName=`InputGroup`,Tt(`group/item flex items-center border border-transparent text-sm rounded-md transition-colors [a]:hover:bg-accent/50 [a]:transition-colors duration-100 flex-wrap outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]`,{variants:{variant:{default:`bg-transparent`,outline:`border-border`,muted:`bg-muted/50`},size:{default:`p-4 gap-4 `,sm:`py-3 px-4 gap-2.5`}},defaultVariants:{variant:`default`,size:`default`}}),Tt(`flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none group-has-[[data-slot=item-description]]/item:translate-y-0.5`,{variants:{variant:{default:`bg-transparent`,icon:`size-8 border rounded-sm bg-muted [&_svg:not([class*='size-'])]:size-4`,image:`size-10 rounded-sm overflow-hidden [&_img]:size-full [&_img]:object-cover`}},defaultVariants:{variant:`default`}});function VE({className:e,...t}){return(0,q.jsx)(`kbd`,{"data-slot":`kbd`,className:J(`bg-muted text-muted-foreground pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-sm px-1 font-sans text-xs font-medium select-none`,`[&_svg:not([class*='size-'])]:size-3`,`[[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-background dark:[[data-slot=tooltip-content]_&]:bg-background/10`,e),...t})}var HE=K.forwardRef(({className:e,children:t,...n},r)=>(0,q.jsx)(`select`,{className:J(`flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50`,e),ref:r,...n,children:t}));HE.displayName=`NativeSelect`;var UE=`[data-radix-popper-content-wrapper],[data-radix-select-content],[data-radix-select-viewport]`;function WE(e){return!!e?.closest?.(UE)}function GE(e){let t=K.useRef(!1);return K.useEffect(()=>{let e=e=>{let n=e.target;t.current=!!document.querySelector(UE)||!!n?.closest?.(`[role="dialog"]`)};return document.addEventListener(`pointerdown`,e,!0),()=>document.removeEventListener(`pointerdown`,e,!0)},[]),K.useCallback(n=>{let r=n.detail?.originalEvent,i=r?.target??null;if(WE(i)||i?.closest?.(`[role="dialog"]`)){n.preventDefault();return}if(r?.type===`pointerdown`&&t.current){n.preventDefault();return}e?.(n)},[e])}var KE=K.forwardRef(({className:e,children:t,onInteractOutside:n,...r},i)=>{let a=GE(n);return(0,q.jsxs)(sm,{children:[(0,q.jsx)(cm,{}),(0,q.jsxs)(Vr,{ref:i,onInteractOutside:a,className:J(`fixed inset-0 z-50 w-full bg-background p-4 shadow-lg duration-200`,`h-[100dvh]`,`sm:inset-auto sm:left-[50%] sm:top-[50%] sm:translate-x-[-50%] sm:translate-y-[-50%]`,`sm:max-w-lg sm:h-auto sm:max-h-[90vh] sm:rounded-lg sm:border sm:p-6`,`data-[state=open]:animate-in data-[state=closed]:animate-out`,`data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,`data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95`,`data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%]`,`data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]`,e),...r,children:[t,(0,q.jsxs)(hr,{className:J(`absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity`,`hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2`,`disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground`,`min-h-[44px] min-w-[44px] sm:min-h-0 sm:min-w-0 flex items-center justify-center`),children:[(0,q.jsx)(wa,{className:`h-5 w-5 sm:h-4 sm:w-4`}),(0,q.jsx)(im,{})]})]})]})});KE.displayName=`MobileDialogContent`;var qE=_t({"common.close":`Close`,"common.closePanel":`Close panel`,"common.resizeDrawer":`Resize drawer`,"detail.openAsFullPage":`Open as full page`,"detail.recordDetail":`Record Detail`,"detail.recordDetailOverlay":`Record detail overlay for {{title}}.`},`common.close`);function JE(e){return`drawer-width:${e}`}function YE(e){return`objectui.drawerWidth.${e}`}function XE(){let e=K.useRef(null),t=K.useCallback(t=>{let n=t?.target;n&&typeof n.getBoundingClientRect==`function`&&(e.current=n)},[]);return{anchorRef:e,captureAnchor:t,anchorCaptureProps:K.useMemo(()=>({onClickCapture:t}),[t])}}function ZE(e){if(e!=null)return typeof e==`number`?`${e}px`:e}function QE(e){let t=ZE(e);return t?{"--ov-w":t}:{}}var $E=360,eD=.95;function tD(e,t){let[n,r]=K.useState(null),i=K.useRef(!1);return K.useEffect(()=>{if(!(!e||typeof window>`u`))try{let n=window.localStorage.getItem(`ov:${e}`);if(n){let e=Number(n);Number.isFinite(e)&&e>=$E&&r(e);return}if(!t)return;let i=window.localStorage.getItem(t);if(!i)return;let a=parseInt(i,10);if(!Number.isFinite(a)||a<$E)return;r(a),window.localStorage.setItem(`ov:${e}`,String(a)),window.localStorage.removeItem(t)}catch{}},[e,t]),{width:n,handleMouseDown:K.useCallback(t=>{if(!e||typeof window>`u`)return;t.preventDefault(),i.current=!0;let n=Math.floor(window.innerWidth*eD);document.body.style.cursor=`col-resize`,document.body.style.userSelect=`none`;let a=e=>{if(!i.current)return;let t=Math.min(n,Math.max($E,window.innerWidth-e.clientX));r(t)},o=()=>{i.current=!1,document.body.style.cursor=``,document.body.style.userSelect=``,window.removeEventListener(`mousemove`,a),window.removeEventListener(`mouseup`,o),r(t=>{if(t!=null)try{window.localStorage.setItem(`ov:${e}`,String(t))}catch{}return t})};window.addEventListener(`mousemove`,a),window.addEventListener(`mouseup`,o)},[e]),handleDoubleClick:K.useCallback(()=>{if(!(!e||typeof window>`u`)){r(null);try{window.localStorage.removeItem(`ov:${e}`)}catch{}}},[e]),enabled:!!e}}var nD=({isOpen:e,selectedRecord:t,mode:n,close:r,setIsOpen:i,width:a,view:o,title:s,description:c,className:l,children:u,renderView:d,mainContent:f,popoverTrigger:p,popoverAnchorRef:m,onExpand:h,expandLabel:g,storageKey:_,legacyStorageKey:v})=>{let y=QE(a),{t:b}=qE(),x=s||b(`detail.recordDetail`),S=g??b(`detail.openAsFullPage`),C=b(`detail.recordDetailOverlay`,{title:x}),w=tD(n===`drawer`?_:void 0,n===`drawer`?v:void 0),T=GE();if(n===`page`||n===`new_window`||n===`none`||!t)return null;let E=ZE(a)??`42rem`,D=w.width==null?{"--ov-w":`max(${E}, min(60vw, 880px))`}:{"--ov-w":`${w.width}px`},O=e=>d&&o?d(e,o):u(e);if(n===`drawer`)return(0,q.jsx)(ky,{open:e,onOpenChange:i,children:(0,q.jsxs)(Fy,{side:`right`,onInteractOutside:T,onOpenAutoFocus:e=>e.preventDefault(),className:J(`w-screen max-w-none sm:w-full sm:max-w-[var(--ov-w,42rem)] p-0 flex flex-col gap-0 overflow-hidden`,`[&>button:last-of-type]:hidden`,l),style:D,children:[w.enabled&&(0,q.jsx)(`div`,{role:`separator`,"aria-orientation":`vertical`,"aria-label":b(`common.resizeDrawer`),onMouseDown:w.handleMouseDown,onDoubleClick:w.handleDoubleClick,className:`hidden sm:block absolute left-0 top-0 bottom-0 z-30 w-1 cursor-col-resize touch-none bg-transparent hover:bg-primary/40 active:bg-primary/60 transition-colors`}),(0,q.jsxs)(Iy,{className:`shrink-0 flex-row items-center justify-between gap-2 space-y-0 px-4 py-2 border-b bg-muted/30`,children:[(0,q.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,q.jsx)(Ry,{className:`truncate text-xs font-medium tracking-wide text-muted-foreground`,children:x}),c?(0,q.jsx)(zy,{className:`truncate text-xs`,children:c}):(0,q.jsx)(zy,{className:`sr-only`,children:C})]}),(0,q.jsxs)(`div`,{className:`flex shrink-0 items-center gap-0.5`,children:[h&&(0,q.jsx)(`button`,{type:`button`,onClick:h,"aria-label":S,title:S,className:`inline-flex h-7 w-7 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus:outline-none focus-visible:ring-2 focus-visible:ring-ring`,children:(0,q.jsx)(Yi,{className:`h-3.5 w-3.5`})}),(0,q.jsx)(jy,{asChild:!0,children:(0,q.jsx)(`button`,{type:`button`,"aria-label":b(`common.close`),title:b(`common.close`),className:`inline-flex h-7 w-7 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus:outline-none focus-visible:ring-2 focus-visible:ring-ring`,children:(0,q.jsx)(wa,{className:`h-3.5 w-3.5`})})})]})]}),(0,q.jsx)(`div`,{className:`flex-1 min-h-0 overflow-y-auto`,children:O(t)})]})});if(n===`modal`)return(0,q.jsx)(am,{open:e,onOpenChange:i,children:(0,q.jsxs)(lm,{onInteractOutside:T,className:J(`w-[calc(100vw-1rem)] max-w-none sm:max-w-[var(--ov-w,42rem)] max-h-[90vh] overflow-y-auto`,l),style:y,children:[h&&(0,q.jsx)(`button`,{type:`button`,onClick:h,"aria-label":S,title:S,className:`absolute right-12 top-4 z-10 inline-flex h-7 w-7 items-center justify-center rounded-md text-muted-foreground hover:bg-accent hover:text-accent-foreground transition-colors`,children:(0,q.jsx)(Yi,{className:`h-4 w-4`})}),(0,q.jsxs)(um,{children:[(0,q.jsx)(fm,{children:x}),c?(0,q.jsx)(pm,{children:c}):(0,q.jsx)(pm,{className:`sr-only`,children:C})]}),(0,q.jsx)(`div`,{className:`mt-4`,children:O(t)})]})});if(n===`split`){if(!e||!f)return null;let n=a&&typeof a==`number`?Math.min(70,Math.max(20,a/1200*100)):40,i=100-n;return(0,q.jsxs)(yw,{orientation:`horizontal`,className:J(`h-full`,l),children:[(0,q.jsx)(bw,{defaultSize:i,minSize:30,children:f}),(0,q.jsx)(xw,{withHandle:!0}),(0,q.jsx)(bw,{defaultSize:n,minSize:20,children:(0,q.jsxs)(`div`,{className:`h-full overflow-y-auto p-4`,children:[(0,q.jsxs)(`div`,{className:`flex items-center justify-between mb-4`,children:[(0,q.jsx)(`h3`,{className:`text-lg font-semibold`,children:x}),(0,q.jsx)(`button`,{type:`button`,onClick:r,className:`rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2`,"aria-label":b(`common.closePanel`),children:(0,q.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,q.jsx)(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),(0,q.jsx)(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})]})})]}),c&&(0,q.jsx)(`p`,{className:`text-sm text-muted-foreground mb-4`,children:c}),O(t)]})})]})}return n===`popover`?!p&&!m?e?(0,q.jsx)(am,{open:e,onOpenChange:i,children:(0,q.jsxs)(lm,{className:J(`w-96 max-h-[80vh] overflow-y-auto p-4`,l),style:y,children:[(0,q.jsxs)(um,{children:[(0,q.jsx)(fm,{className:`text-sm`,children:x}),c?(0,q.jsx)(pm,{className:`text-xs`,children:c}):(0,q.jsx)(pm,{className:`sr-only`,children:C})]}),(0,q.jsx)(`div`,{className:`mt-2`,children:O(t)})]})}):null:(0,q.jsxs)(dy,{open:e,onOpenChange:i,children:[p?(0,q.jsx)(fy,{asChild:!0,children:p}):(0,q.jsx)(Cn,{virtualRef:m}),(0,q.jsx)(py,{className:J(`w-96 max-h-[400px] overflow-y-auto p-4`,l),style:y,children:(0,q.jsxs)(`div`,{className:`space-y-2`,children:[(0,q.jsx)(`h4`,{className:`text-sm font-semibold`,children:x}),c&&(0,q.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:c}),O(t)]})})]}):null};nD.displayName=`NavigationOverlay`;function rD({className:e,...t}){return(0,q.jsx)(`div`,{role:`status`,"aria-label":`Loading`,className:J(`flex items-center justify-center`,e),...t,children:(0,q.jsx)(qi,{className:`animate-spin text-muted-foreground w-full h-full min-w-4 min-h-4`})})}var iD={addGroup:`Add group field`,collapseTitle:`Collapsed by default`,removeTitle:`Remove`,ascendingTitle:`Ascending`,descendingTitle:`Descending`};function aD({value:e,onChange:t,fieldOptions:n,maxLevels:r=3,className:i,labels:a}){let o={...iD,...a||{}},s=e?.fields??[],c=new Set(s.map(e=>e.field)),l=e=>{t(e.length?{fields:e}:void 0)};return(0,q.jsxs)(`div`,{"data-testid":`grouping-editor`,className:J(`flex flex-col gap-1.5 w-full`,i),children:[s.map((e,t)=>(0,q.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,q.jsx)(`select`,{"data-testid":`grouping-field-${t}`,className:`text-xs h-7 rounded-md border border-input bg-background px-2 text-foreground flex-1 min-w-0`,value:e.field,onChange:n=>{let r=[...s];r[t]={...e,field:n.target.value},l(r)},children:n.filter(t=>t.value===e.field||!c.has(t.value)).map(e=>(0,q.jsx)(`option`,{value:e.value,children:e.label},e.value))}),(0,q.jsx)(`button`,{type:`button`,title:e.order===`asc`?o.ascendingTitle:o.descendingTitle,"data-testid":`grouping-order-${t}`,className:`flex h-7 w-7 items-center justify-center rounded-md border border-input bg-background text-foreground hover:bg-muted`,onClick:()=>{let n=[...s];n[t]={...e,order:e.order===`asc`?`desc`:`asc`},l(n)},children:e.order===`asc`?(0,q.jsx)(ci,{className:`h-3 w-3`}):(0,q.jsx)(ii,{className:`h-3 w-3`})}),(0,q.jsx)(`label`,{title:o.collapseTitle,className:`flex items-center text-xs text-muted-foreground`,children:(0,q.jsx)(`input`,{type:`checkbox`,"data-testid":`grouping-collapsed-${t}`,className:`h-3 w-3`,checked:e.collapsed,onChange:n=>{let r=[...s];r[t]={...e,collapsed:n.target.checked},l(r)}})}),(0,q.jsx)(`button`,{type:`button`,title:o.removeTitle,"data-testid":`grouping-remove-${t}`,className:`flex h-7 w-7 items-center justify-center rounded-md border border-input bg-background text-muted-foreground hover:bg-muted hover:text-destructive`,onClick:()=>{let e=s.filter((e,n)=>n!==t);l(e)},children:(0,q.jsx)(wa,{className:`h-3 w-3`})})]},t)),s.length<r&&(()=>{let e=n.filter(e=>!c.has(e.value));return e.length===0?null:(0,q.jsxs)(`button`,{type:`button`,"data-testid":`grouping-add`,className:`flex h-7 items-center gap-1 self-start rounded-md border border-dashed border-input bg-background px-2 text-xs text-muted-foreground hover:bg-muted hover:text-foreground`,onClick:()=>{let t=[...s,{field:e[0].value,order:`asc`,collapsed:!1}];l(t)},children:[(0,q.jsx)(ea,{className:`h-3 w-3`}),o.addGroup]})})()]})}function oD({rows:e=5,columns:t=4,className:n,...r}){return(0,q.jsxs)(`div`,{"data-slot":`grid-skeleton`,className:J(`w-full space-y-2`,n),...r,children:[(0,q.jsx)(`div`,{className:`flex gap-4 px-4 py-2`,children:Array.from({length:t}).map((e,t)=>(0,q.jsx)(Uy,{className:`h-4 flex-1 rounded`},t))}),Array.from({length:e}).map((e,n)=>(0,q.jsx)(`div`,{className:`flex gap-4 rounded-md border px-4 py-3`,children:Array.from({length:t}).map((e,t)=>(0,q.jsx)(Uy,{className:J(`h-4 flex-1 rounded`,t===0&&`max-w-[40%]`)},t))},n))]})}function sD({className:e,...t}){return(0,q.jsxs)(`div`,{"data-slot":`chart-skeleton`,className:J(`w-full space-y-4`,e),...t,children:[(0,q.jsx)(Uy,{className:`h-5 w-40 rounded`}),(0,q.jsx)(`div`,{className:`flex h-48 items-end gap-2 rounded-md border p-4`,children:[`h-2/5`,`h-3/5`,`h-1/3`,`h-4/5`,`h-1/2`,`h-3/4`,`h-2/5`].map((e,t)=>(0,q.jsx)(Uy,{className:J(`flex-1 rounded-t`,e)},t))}),(0,q.jsxs)(`div`,{className:`flex gap-4`,children:[(0,q.jsx)(Uy,{className:`h-3 w-16 rounded`}),(0,q.jsx)(Uy,{className:`h-3 w-16 rounded`}),(0,q.jsx)(Uy,{className:`h-3 w-16 rounded`})]})]})}var cD=({title:e,icon:t,objectLabel:n,resourceId:r,showStar:i=!0,showCopyId:a=!0,isFavorite:o,onToggleFavorite:s,className:c,inlineExtras:l})=>{let{t:u}=Ct(),[d,f]=K.useState(!1),[p,m]=K.useState(!1),h=o??d,g=K.useCallback(()=>{let e=!h;s&&s(e),o===void 0&&f(e)},[h,o,s]),_=K.useCallback(()=>{if(r)try{typeof navigator<`u`&&navigator.clipboard&&navigator.clipboard.writeText(r),m(!0),setTimeout(()=>m(!1),1500)}catch{}},[r]),v=u(h?`detail.removeFromFavorites`:`detail.addToFavorites`),y=u(p?`detail.copied`:`detail.copyRecordId`);return(0,q.jsx)(Wy,{children:(0,q.jsx)(`div`,{className:J(`flex flex-col min-w-0`,c),children:(0,q.jsxs)(`div`,{className:`flex items-baseline gap-2 flex-wrap`,children:[t&&(0,q.jsx)(`span`,{className:`text-muted-foreground shrink-0 self-center`,"aria-hidden":!0,children:t}),(0,q.jsx)(`h1`,{className:`text-xl sm:text-2xl font-bold truncate`,children:e}),n&&(0,q.jsx)(`span`,{className:`text-xs font-medium tracking-wide text-muted-foreground/70 shrink-0`,children:n}),a&&r&&(0,q.jsxs)(Gy,{children:[(0,q.jsx)(Ky,{asChild:!0,children:(0,q.jsx)(X,{variant:`ghost`,size:`icon`,className:`h-5 w-5 shrink-0 text-muted-foreground/50 hover:text-foreground`,onClick:_,"aria-label":y,children:p?(0,q.jsx)(fi,{className:`h-3 w-3 text-green-600`}):(0,q.jsx)(Ei,{className:`h-3 w-3`})})}),(0,q.jsx)(qy,{children:y})]}),i&&(0,q.jsxs)(Gy,{children:[(0,q.jsx)(Ky,{asChild:!0,children:(0,q.jsx)(X,{variant:`ghost`,size:`icon`,className:`h-6 w-6 shrink-0`,onClick:g,"aria-label":v,"aria-pressed":h,children:(0,q.jsx)(ha,{className:J(`h-4 w-4`,h?`fill-yellow-400 text-yellow-400`:`text-muted-foreground`)})})}),(0,q.jsx)(qy,{children:v})]}),l]})})})},lD=!1;function uD(){if(lD||typeof document>`u`)return;let e=`objui-refresh-indicator-kf`;if(document.getElementById(e)){lD=!0;return}let t=document.createElement(`style`);t.id=e,t.textContent=`
24
- @keyframes objui-refresh-bar {
25
- 0% { transform: translateX(-100%); }
26
- 100% { transform: translateX(400%); }
27
- }
28
- `,document.head.appendChild(t),lD=!0}var dD=({active:e,ariaLabel:t,className:n,...r})=>(K.useEffect(()=>{e&&uD()},[e]),e?(0,q.jsx)(`div`,{className:J(`pointer-events-none absolute inset-x-0 top-0 z-20 h-0.5 overflow-hidden`,n),role:`progressbar`,"aria-busy":`true`,"aria-label":t,"data-testid":`refresh-indicator`,...r,children:(0,q.jsx)(`div`,{className:`h-full w-1/4 rounded-full bg-primary/70`,style:{animation:`objui-refresh-bar 1.1s ease-in-out infinite`}})}):null);dD.displayName=`RefreshIndicator`;function fD({className:e,icon:t,illustration:n,showIcon:r=!0,iconWrapperClassName:i,title:a=`No data`,description:o,action:s,children:c,...l}){let u=r&&(t!=null||!n);return(0,q.jsxs)(`div`,{role:`status`,"data-slot":`data-empty-state`,className:J(`flex flex-col items-center justify-center gap-3 p-6 text-center`,e),...l,children:[n&&(0,q.jsx)(`div`,{"data-slot":`data-empty-state-illustration`,className:`motion-safe:animate-in motion-safe:fade-in-0 motion-safe:zoom-in-95 motion-safe:duration-300 [&_svg]:max-h-40 [&_svg]:w-auto`,"aria-hidden":!0,children:n}),u&&(0,q.jsx)(`div`,{"data-slot":`data-empty-state-icon`,className:J(i??`flex size-10 items-center justify-center rounded-lg bg-muted`),children:t??(0,q.jsx)(Wi,{className:`size-5 text-muted-foreground`})}),a&&(0,q.jsx)(`h3`,{className:`text-sm font-medium`,children:a}),o&&(0,q.jsx)(`p`,{className:`max-w-sm text-sm text-muted-foreground`,children:o}),s,c]})}function pD({className:e,icon:t,showIcon:n=!0,iconWrapperClassName:r,title:i=`Something went wrong`,message:a,onRetry:o,retryLabel:s=`Retry`,children:c,...l}){return(0,q.jsxs)(`div`,{role:`alert`,"data-slot":`data-error-state`,className:J(`flex flex-col items-center justify-center gap-3 p-6 text-center`,e),...l,children:[n&&(0,q.jsx)(`div`,{"data-slot":`data-error-state-icon`,className:J(r??`flex size-10 items-center justify-center rounded-lg bg-destructive/10`),children:t??(0,q.jsx)(bi,{className:`size-5 text-destructive`})}),i&&(0,q.jsx)(`h3`,{className:`text-sm font-medium`,children:i}),a&&(0,q.jsx)(`p`,{className:`max-w-sm text-sm text-muted-foreground`,children:a}),o&&(0,q.jsx)(X,{variant:`outline`,size:`sm`,onClick:o,children:s}),c]})}U.register(`combobox`,({schema:e,disabled:t,...n})=>{let{"data-obj-id":r,"data-obj-type":i,style:a,...o}=n,s=K.useId(),c=e.description?`${s}-description`:void 0,l=[o[`aria-describedby`],c].filter(Boolean).join(` `)||void 0,u=(0,q.jsx)(OT,{options:e.options||[],placeholder:e.placeholder,value:e.value,disabled:t,className:e.className,..._T(o),"aria-describedby":l,"data-obj-id":r,"data-obj-type":i,style:a});return c?(0,q.jsxs)(`div`,{className:`grid gap-1.5`,children:[u,(0,q.jsx)(`p`,{id:c,className:`text-sm text-muted-foreground`,children:e.description})]}):u},{namespace:`ui`,label:`Combobox`,inputs:[{name:`placeholder`,type:`string`},{name:`value`,type:`string`},{name:`disabled`,type:`boolean`},{name:`className`,type:`string`},{name:`name`,type:`string`},{name:`description`,type:`string`}],defaultProps:{placeholder:`Select option...`,options:[]}}),U.register(`command`,({schema:e,...t})=>{let{"data-obj-id":n,"data-obj-type":r,style:i,...a}=t;return(0,q.jsxs)(mm,{className:e.className,...a,"data-obj-id":n,"data-obj-type":r,style:i,children:[(0,q.jsx)(gm,{placeholder:e.placeholder||`Type a command or search...`}),(0,q.jsxs)(_m,{children:[(0,q.jsx)(vm,{children:e.emptyText||`No results found.`}),e.groups?.map((e,t)=>(0,q.jsx)(ym,{heading:e.heading,children:e.items?.map((e,t)=>{let n=Ex(e.icon);return(0,q.jsxs)(xm,{value:e.value,children:[n&&(0,q.jsx)(n,{className:`h-4 w-4`}),e.label]},t)})},t))]})]})},{namespace:`ui`,label:`Command`,inputs:[{name:`placeholder`,type:`string`},{name:`emptyText`,type:`string`},{name:`className`,type:`string`}],defaultProps:{placeholder:`Type a command or search...`,emptyText:`No results found.`,groups:[]}});var mD=(0,K.forwardRef)(({schema:e,className:t,...n},r)=>{let{style:i,...a}=n;return(0,q.jsx)(`div`,{ref:r,...M(a),className:t,style:i,children:Y(e.children)})});mD.displayName=`BoxRenderer`,U.register(`box`,mD,{namespace:`ui`,label:`Box`,category:`layout`,isContainer:!0,inputs:[{name:`className`,type:`string`},{name:`children`,type:`slot`}]});var hD=(0,K.forwardRef)(({schema:e,className:t,...n},r)=>{let{"data-obj-id":i,"data-obj-type":a,style:o,...s}=n,c=e.clickable||!!n.onClick,l=e.hoverable||c,u=Y(e.header);return(0,q.jsxs)(zd,{ref:r,className:J(t,l&&`transition-colors hover:bg-muted/50`,c&&`cursor-pointer active:bg-muted`),...s,"data-obj-id":i,"data-obj-type":a,style:o,children:[(e.title||e.description||u!==null)&&(0,q.jsxs)(Bd,{children:[e.title&&(0,q.jsx)(Vd,{children:e.title}),e.description&&(0,q.jsx)(Hd,{children:e.description}),u]}),Ia(e.children,e=>(0,q.jsx)(Ud,{children:Y(e)})),Ia(e.footer,e=>(0,q.jsx)(Wd,{className:`flex justify-between`,children:Y(e)}))]})});U.register(`card`,hD,{namespace:`ui`,label:`Card`,inputs:[{name:`title`,type:`string`},{name:`description`,type:`string`},{name:`className`,type:`string`},{name:`children`,type:`slot`}],defaultProps:{title:`Card Title`,description:`Card description goes here`,className:`w-full`},isContainer:!0,resizable:!0,resizeConstraints:{width:!0,height:!0,minWidth:200,minHeight:100}}),U.register(`tabs`,({schema:e,className:t,onChange:n,value:r,...i})=>{let{"data-obj-id":a,"data-obj-type":o,style:s,...c}=i,l=e=>{n&&n(e)},u=e.orientation===`vertical`;return(0,q.jsxs)(Hb,{defaultValue:r===void 0?e.defaultValue:void 0,value:r??e.value,onValueChange:l,orientation:e.orientation||`horizontal`,className:J(t,u&&`flex gap-2`),...c,"data-obj-id":a,"data-obj-type":o,style:s,children:[(0,q.jsx)(Ub,{className:J(u&&`flex-col h-auto items-stretch bg-muted/50 p-1`),children:e.items?.map(e=>(0,q.jsx)(Wb,{value:e.value,disabled:e.disabled,className:J(u&&`justify-start`),children:e.label},e.value))}),e.items?.map(e=>(0,q.jsx)(Gb,{value:e.value,className:J(`mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2`,u&&`mt-0 flex-1`),children:Y(e.content)},e.value))]})},{namespace:`ui`,label:`Tabs`,inputs:[{name:`defaultValue`,type:`string`,required:!0},{name:`className`,type:`string`},{name:`items`,type:`array`}],defaultProps:{defaultValue:`tab1`,items:[{label:`Tab 1`,value:`tab1`,content:[{type:`text`,content:`Content for Tab 1`}]},{label:`Tab 2`,value:`tab2`,content:[{type:`text`,content:`Content for Tab 2`}]},{label:`Tab 3`,value:`tab3`,content:[{type:`text`,content:`Content for Tab 3`}]}],className:`w-full`}});var gD={1:`grid-cols-1`,2:`grid-cols-2`,3:`grid-cols-3`,4:`grid-cols-4`,5:`grid-cols-5`,6:`grid-cols-6`,7:`grid-cols-7`,8:`grid-cols-8`,9:`grid-cols-9`,10:`grid-cols-10`,11:`grid-cols-11`,12:`grid-cols-12`},_D={1:`sm:grid-cols-1`,2:`sm:grid-cols-2`,3:`sm:grid-cols-3`,4:`sm:grid-cols-4`,5:`sm:grid-cols-5`,6:`sm:grid-cols-6`,7:`sm:grid-cols-7`,8:`sm:grid-cols-8`,9:`sm:grid-cols-9`,10:`sm:grid-cols-10`,11:`sm:grid-cols-11`,12:`sm:grid-cols-12`},vD={1:`md:grid-cols-1`,2:`md:grid-cols-2`,3:`md:grid-cols-3`,4:`md:grid-cols-4`,5:`md:grid-cols-5`,6:`md:grid-cols-6`,7:`md:grid-cols-7`,8:`md:grid-cols-8`,9:`md:grid-cols-9`,10:`md:grid-cols-10`,11:`md:grid-cols-11`,12:`md:grid-cols-12`},yD={1:`lg:grid-cols-1`,2:`lg:grid-cols-2`,3:`lg:grid-cols-3`,4:`lg:grid-cols-4`,5:`lg:grid-cols-5`,6:`lg:grid-cols-6`,7:`lg:grid-cols-7`,8:`lg:grid-cols-8`,9:`lg:grid-cols-9`,10:`lg:grid-cols-10`,11:`lg:grid-cols-11`,12:`lg:grid-cols-12`},bD={1:`xl:grid-cols-1`,2:`xl:grid-cols-2`,3:`xl:grid-cols-3`,4:`xl:grid-cols-4`,5:`xl:grid-cols-5`,6:`xl:grid-cols-6`,7:`xl:grid-cols-7`,8:`xl:grid-cols-8`,9:`xl:grid-cols-9`,10:`xl:grid-cols-10`,11:`xl:grid-cols-11`,12:`xl:grid-cols-12`},xD={1:`2xl:grid-cols-1`,2:`2xl:grid-cols-2`,3:`2xl:grid-cols-3`,4:`2xl:grid-cols-4`,5:`2xl:grid-cols-5`,6:`2xl:grid-cols-6`,7:`2xl:grid-cols-7`,8:`2xl:grid-cols-8`,9:`2xl:grid-cols-9`,10:`2xl:grid-cols-10`,11:`2xl:grid-cols-11`,12:`2xl:grid-cols-12`},SD={0:`gap-0`,1:`gap-1`,2:`gap-2`,3:`gap-3`,4:`gap-4`,5:`gap-5`,6:`gap-6`,8:`gap-8`,10:`gap-10`,12:`gap-12`};U.register(`grid`,({schema:e,className:t,...n})=>{let r=2,i,a,o,s,c;typeof e.columns==`number`?r=e.columns:typeof e.columns==`object`&&e.columns!==null&&(r=e.columns.xs??1,i=e.columns.sm,a=e.columns.md,o=e.columns.lg,s=e.columns.xl,c=e.columns[`2xl`]),e.smColumns&&(i=e.smColumns),e.mdColumns&&(a=e.mdColumns),e.lgColumns&&(o=e.lgColumns),e.xlColumns&&(s=e.xlColumns),typeof e.columns==`number`&&r>1&&i===void 0&&a===void 0&&o===void 0&&s===void 0&&(a=r,i=Math.min(2,r),r=1);let l=e.gap??4,u=J(`grid`,gD[r]||`grid-cols-2`,i&&_D[i],a&&vD[a],o&&yD[o],s&&bD[s],c&&xD[c],SD[l]||`gap-[${l*.25}rem]`,t),{style:d,...f}=n;return(0,q.jsx)(`div`,{...M(f),className:u,style:d,children:Y(e.children)})},{namespace:`ui`,label:`Grid Layout`,inputs:[{name:`columns`,type:`number`,description:`Number of columns on mobile devices`},{name:`smColumns`,type:`number`,description:`Columns at sm breakpoint (>640px)`},{name:`mdColumns`,type:`number`,description:`Columns at md breakpoint (>768px)`},{name:`lgColumns`,type:`number`,description:`Columns at lg breakpoint (>1024px)`},{name:`xlColumns`,type:`number`,description:`Columns at xl breakpoint (>1280px)`},{name:`gap`,type:`number`,description:`Gap between items (0-12)`},{name:`className`,type:`string`},{name:`children`,type:`slot`}],defaultProps:{columns:1,mdColumns:2,lgColumns:4,gap:4,children:[{type:`card`,title:`Card 1`,description:`First card`},{type:`card`,title:`Card 2`,description:`Second card`},{type:`card`,title:`Card 3`,description:`Third card`},{type:`card`,title:`Card 4`,description:`Fourth card`}]},isContainer:!0,resizable:!0,resizeConstraints:{width:!0,height:!0,minWidth:200,minHeight:100}}),U.register(`flex`,({schema:e,className:t,...n})=>{let r=e.direction||`row`,i=e.justify||`start`,a=e.align||`start`,o=e.gap??2,s=e.wrap||!1,c=J(`flex`,r===`row`&&`flex-row`,r===`col`&&`flex-col`,r===`row-reverse`&&`flex-row-reverse`,r===`col-reverse`&&`flex-col-reverse`,i===`start`&&`justify-start`,i===`end`&&`justify-end`,i===`center`&&`justify-center`,i===`between`&&`justify-between`,i===`around`&&`justify-around`,i===`evenly`&&`justify-evenly`,a===`start`&&`items-start`,a===`end`&&`items-end`,a===`center`&&`items-center`,a===`baseline`&&`items-baseline`,a===`stretch`&&`items-stretch`,o===0&&`gap-0`,o===1&&`gap-1`,o===2&&`gap-1.5 sm:gap-2`,o===3&&`gap-2 sm:gap-3`,o===4&&`gap-2 sm:gap-3 md:gap-4`,o===5&&`gap-3 sm:gap-4 md:gap-5`,o===6&&`gap-3 sm:gap-4 md:gap-6`,o===7&&`gap-4 sm:gap-5 md:gap-7`,o===8&&`gap-4 sm:gap-6 md:gap-8`,s&&`flex-wrap`,t),{style:l,...u}=n;return(0,q.jsx)(`div`,{...M(u),className:c,style:l,children:Y(e.children)})},{namespace:`ui`,label:`Flex Layout`,inputs:[{name:`direction`,type:`enum`,enum:[`row`,`col`,`row-reverse`,`col-reverse`]},{name:`justify`,type:`enum`,enum:[`start`,`end`,`center`,`between`,`around`,`evenly`]},{name:`align`,type:`enum`,enum:[`start`,`end`,`center`,`baseline`,`stretch`]},{name:`gap`,type:`number`,description:`Gap between items (0-8)`},{name:`wrap`,type:`boolean`,description:`Allow flex items to wrap`},{name:`className`,type:`string`},{name:`children`,type:`slot`}],defaultProps:{direction:`row`,justify:`start`,align:`start`,gap:2,wrap:!1,children:[{type:`button`,label:`Button 1`},{type:`button`,label:`Button 2`},{type:`button`,label:`Button 3`}]},isContainer:!0});var CD=(0,K.forwardRef)(({schema:e,className:t,...n},r)=>{let i=e.direction||`col`,a=e.justify||`start`,o=e.align||`stretch`,s=e.gap??2,c=e.wrap||!1,l=J(`flex`,i===`row`&&`flex-row`,i===`col`&&`flex-col`,i===`row-reverse`&&`flex-row-reverse`,i===`col-reverse`&&`flex-col-reverse`,a===`start`&&`justify-start`,a===`end`&&`justify-end`,a===`center`&&`justify-center`,a===`between`&&`justify-between`,a===`around`&&`justify-around`,a===`evenly`&&`justify-evenly`,o===`start`&&`items-start`,o===`end`&&`items-end`,o===`center`&&`items-center`,o===`baseline`&&`items-baseline`,o===`stretch`&&`items-stretch`,s===0&&`gap-0`,s===1&&`gap-1`,s===2&&`gap-1.5 sm:gap-2`,s===3&&`gap-2 sm:gap-3`,s===4&&`gap-2 sm:gap-3 md:gap-4`,s===5&&`gap-3 sm:gap-4 md:gap-5`,s===6&&`gap-3 sm:gap-4 md:gap-6`,s===8&&`gap-4 sm:gap-6 md:gap-8`,s===10&&`gap-5 sm:gap-7 md:gap-10`,c&&`flex-wrap`,t),{style:u,...d}=n;return(0,q.jsx)(`div`,{ref:r,...M(d),className:l,style:u,children:Y(e.children)})});U.register(`stack`,CD,{namespace:`ui`,label:`Stack`,inputs:[{name:`direction`,type:`enum`,enum:[`col`,`row`,`col-reverse`,`row-reverse`]},{name:`gap`,type:`number`},{name:`align`,type:`enum`,enum:[`start`,`end`,`center`,`stretch`,`baseline`]},{name:`justify`,type:`enum`,enum:[`start`,`end`,`center`,`between`,`around`,`evenly`]},{name:`className`,type:`string`},{name:`children`,type:`slot`}],defaultProps:{direction:`col`,gap:2,align:`stretch`,children:[]},isContainer:!0,resizable:!0,resizeConstraints:{width:!0,height:!0,minWidth:100,minHeight:50}});var wD=(0,K.forwardRef)(({schema:e,className:t,...n},r)=>{let i=e.maxWidth??`xl`,a=e.padding??4,o=e.centered!==!1,s=J(`w-full`,i===!1&&`max-w-none`,i===`sm`&&`max-w-sm`,i===`md`&&`max-w-md`,i===`lg`&&`max-w-lg`,i===`xl`&&`max-w-xl`,i===`2xl`&&`max-w-2xl`,i===`3xl`&&`max-w-3xl`,i===`4xl`&&`max-w-4xl`,i===`5xl`&&`max-w-5xl`,i===`6xl`&&`max-w-6xl`,i===`7xl`&&`max-w-7xl`,i===`full`&&`max-w-full`,i===`screen`&&`max-w-screen-2xl`,o&&`mx-auto`,a===0&&`p-0`,a===1&&`p-0.5 sm:p-1`,a===2&&`p-1 sm:p-2`,a===3&&`p-2 sm:p-3`,a===4&&`p-2 sm:p-3 md:p-4`,a===5&&`p-3 sm:p-4 md:p-5`,a===6&&`p-3 sm:p-4 md:p-6`,a===7&&`p-4 sm:p-5 md:p-7`,a===8&&`p-4 sm:p-6 md:p-8`,a===10&&`p-5 sm:p-7 md:p-10`,a===12&&`p-6 sm:p-8 md:p-12`,a===16&&`p-8 sm:p-10 md:p-16`,t),{style:c,...l}=n;return(0,q.jsx)(`div`,{ref:r,...M(l),className:s,style:c,children:Y(e.children)})});U.register(`container`,wD,{namespace:`ui`,label:`Container`,inputs:[{name:`maxWidth`,type:`enum`,enum:[{label:`None (cancel max-width)`,value:!1},{label:`sm`,value:`sm`},{label:`md`,value:`md`},{label:`lg`,value:`lg`},{label:`xl`,value:`xl`},{label:`2xl`,value:`2xl`},{label:`3xl`,value:`3xl`},{label:`4xl`,value:`4xl`},{label:`5xl`,value:`5xl`},{label:`6xl`,value:`6xl`},{label:`7xl`,value:`7xl`},{label:`full`,value:`full`},{label:`screen`,value:`screen`}]},{name:`padding`,type:`number`,description:`Padding value (0, 1-8, 10, 12, 16)`},{name:`centered`,type:`boolean`},{name:`className`,type:`string`},{name:`children`,type:`slot`}],defaultProps:{maxWidth:`xl`,padding:4,centered:!0,children:[{type:`text`,content:`Container content goes here`}]},isContainer:!0,resizable:!0,resizeConstraints:{width:!0,height:!0,minWidth:200,minHeight:100}});function TD(e){return e.split(/[-_:]/).filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(``)}function ED(e){let t={},n=new Set;for(let r of U.getPublicConfigs()){let i=r.type;if(!i||r.isContainer||r.tier===`html`)continue;let a=TD(i);if(n.has(a))continue;n.add(a);let o=({children:t,...n})=>{let r=typeof n.type==`string`&&n.type!==i?n.type:void 0;return K.createElement(Pe,{schema:{dataSource:e,...n,...r?{specType:r}:{},type:i}})};o.displayName=a,t[a]=o}let r=({type:t,children:n,...r})=>K.createElement(Pe,{schema:{type:t,dataSource:e,...r}});return r.displayName=`Block`,t.Block=r,t}function DD(){return(0,q.jsxs)(`div`,{className:`m-4 rounded-md border border-amber-400/40 bg-amber-50 p-4 text-sm text-amber-900 dark:bg-amber-950/30 dark:text-amber-200`,children:[(0,q.jsx)(`div`,{className:`font-semibold`,children:`React pages are disabled on this deployment`}),(0,q.jsxs)(`p`,{className:`mt-1 leading-relaxed`,children:[(0,q.jsx)(`code`,{children:`kind:'react'`}),` pages execute author JavaScript directly in the application. This deployment has turned the capability off (`,(0,q.jsx)(`code`,{children:`OS_PAGE_REACT=off`}),` / `,(0,q.jsx)(`code`,{children:`disableCapability('react-pages')`}),`). It is ON by default; re-enable it if your page authors are trusted.`]})]})}var OD=({schema:e})=>{let t=typeof e?.source==`string`?e.source:``,r=T(),i=Ze(we),[a,o]=K.useState(null),[s,c]=K.useState(null);K.useEffect(()=>{if(!i)return;let e=!0;return n(()=>import(`./src-CBSLqxtF.js`).then(t=>e&&o(t)),[],import.meta.url).catch(t=>e&&c(t)),()=>{e=!1}},[i]);let l=K.useMemo(()=>({...ED(r),useAdapter:T,data:e?.data??e?.variables??{},variables:e?.variables??{},page:e??{}}),[e,r]);if(!i)return(0,q.jsx)(DD,{});if(s)return(0,q.jsxs)(`div`,{className:`m-4 rounded-md border border-destructive/40 bg-destructive/10 p-4 text-sm text-destructive`,children:[(0,q.jsx)(`div`,{className:`font-semibold`,children:`Failed to load the react runtime`}),(0,q.jsx)(`pre`,{className:`mt-1 whitespace-pre-wrap`,children:String(s)})]});if(!t.trim())return(0,q.jsxs)(`div`,{className:`m-4 rounded-md border border-destructive/40 bg-destructive/10 p-4 text-sm text-destructive`,children:[`A `,(0,q.jsx)(`code`,{children:`kind:'react'`}),` page requires a non-empty `,(0,q.jsx)(`code`,{children:`source`}),`.`]});if(!a)return(0,q.jsx)(`div`,{className:`m-4 text-sm text-muted-foreground`,children:`Loading react runtime…`});let{ReactRunner:u}=a;return(0,q.jsx)(te,{dataSource:r,children:(0,q.jsx)(u,{code:t,scope:l,fallback:e=>(0,q.jsxs)(`div`,{className:`m-4 rounded-md border border-destructive/40 bg-destructive/10 p-4 text-sm text-destructive`,children:[(0,q.jsx)(`div`,{className:`font-semibold`,children:`React page error`}),(0,q.jsx)(`pre`,{className:`mt-1 whitespace-pre-wrap`,children:String(e)})]})})})};function kD(e){switch(e){case`small`:return`w-64`;case`medium`:return`w-80`;case`large`:return`w-96`;case`full`:return`w-full`;default:return e||`w-full`}}function AD(e){switch(e){case`small`:return`w-full md:w-64`;case`medium`:return`w-full md:w-80`;case`large`:return`w-full md:w-96`;default:return`w-full`}}function jD(e){switch(e){case`utility`:return`max-w-4xl`;case`home`:return`max-w-screen-2xl`;case`app`:return`max-w-screen-xl`;default:return`max-w-7xl`}}function MD(e,t){return e?.find(e=>e.name?.toLowerCase()===t.toLowerCase())}function ND(e,t){if(!e)return[];let n=new Set(t.map(e=>e.toLowerCase()));return e.filter(e=>!n.has(e.name?.toLowerCase()??``))}var PD=`page:header`;function FD(e){return e==null?``:typeof e==`string`?e.replace(/\{[a-zA-Z0-9_.]+\}/g,``).replace(/\s+/g,` `).trim():typeof e==`object`?Object.values(e).map(e=>FD(e)).find(e=>e!==``)??``:String(e)}function ID(e){return e?.type===PD&&FD(e?.title??e?.properties?.title)!==``}function LD(e,t=0){return t>6?!1:(Array.isArray(e)?e:e?[e]:[]).some(e=>!!e&&typeof e==`object`&&(ID(e)||LD(e.components,t+1)||LD(e.children,t+1)))}function RD(e){return LD((e.regions??[]).flatMap(e=>e?.components??[]))||LD(e.children)}var zD=({region:e,className:t})=>{let n=e.components||[];return n.length===0?null:(0,q.jsx)(`div`,{className:J(`space-y-4`,e.className,t),"data-region":e.name,children:n.map((t,n)=>(0,q.jsx)(Pe,{schema:Je(t)},t?.id||`${e.name}-${n}`))})},BD=({regions:e,pageType:t,className:n})=>{let r=MD(e,`header`),i=MD(e,`sidebar`),a=MD(e,`main`),o=MD(e,`aside`),s=MD(e,`footer`),c=ND(e,[`header`,`sidebar`,`main`,`aside`,`footer`]);return r||i||a||o||s?(0,q.jsxs)(`div`,{className:J(`flex flex-col gap-6`,n),"data-page-layout":t,children:[r&&(0,q.jsx)(zD,{region:r,className:J(kD(r.width))}),(0,q.jsxs)(`div`,{className:`flex flex-col md:flex-row flex-1 gap-6`,children:[i&&(0,q.jsx)(`aside`,{className:J(`md:shrink-0`,AD(i.width||`small`)),children:(0,q.jsx)(zD,{region:i})}),(0,q.jsxs)(`div`,{className:`flex-1 min-w-0 space-y-6`,children:[a&&(0,q.jsx)(zD,{region:a}),c.map((e,t)=>(0,q.jsx)(zD,{region:e},e.name||`extra-${t}`))]}),o&&(0,q.jsx)(`aside`,{className:J(`md:shrink-0`,AD(o.width||`small`),o.className),children:(0,q.jsx)(zD,{region:o})})]}),s&&(0,q.jsx)(zD,{region:s,className:J(kD(s.width))})]}):(0,q.jsx)(`div`,{className:J(`space-y-6`,n),"data-page-layout":t,children:e.map((e,t)=>(0,q.jsx)(zD,{region:e},e.name||t))})},VD=({schema:e})=>{let t=e.children,n=Array.isArray(t)?t:t?[t]:[];return n.length===0?null:(0,q.jsx)(`div`,{className:`space-y-6`,children:n.map((e,t)=>(0,q.jsx)(Pe,{schema:e},e?.id||t))})},HD=({schema:e})=>e.regions&&e.regions.length>0?(0,q.jsx)(BD,{regions:e.regions,pageType:e.pageType}):(0,q.jsx)(VD,{schema:e}),UD={default:HD,"full-width":HD,"header-sidebar-main":({schema:e})=>{let t=e.regions||[];if(t.length===0)return(0,q.jsx)(VD,{schema:e});let n=MD(t,`header`),r=MD(t,`sidebar`),i=MD(t,`main`),a=ND(t,[`header`,`sidebar`,`main`]);return(0,q.jsxs)(`div`,{className:`flex flex-col gap-6`,"data-template":`header-sidebar-main`,children:[n&&(0,q.jsx)(zD,{region:n}),(0,q.jsxs)(`div`,{className:`flex flex-col md:flex-row flex-1 gap-6`,children:[r&&(0,q.jsx)(`aside`,{className:J(`md:shrink-0`,AD(r.width||`medium`)),children:(0,q.jsx)(zD,{region:r})}),(0,q.jsxs)(`div`,{className:`flex-1 min-w-0 space-y-6`,children:[i&&(0,q.jsx)(zD,{region:i}),a.map((e,t)=>(0,q.jsx)(zD,{region:e},e.name||`extra-${t}`))]})]})]})},"three-column":({schema:e})=>{let t=e.regions||[];if(t.length===0)return(0,q.jsx)(VD,{schema:e});let n=MD(t,`header`),r=MD(t,`sidebar`),i=MD(t,`main`),a=MD(t,`aside`),o=MD(t,`footer`),s=ND(t,[`header`,`sidebar`,`main`,`aside`,`footer`]);return(0,q.jsxs)(`div`,{className:`flex flex-col gap-6`,"data-template":`three-column`,children:[n&&(0,q.jsx)(zD,{region:n}),(0,q.jsxs)(`div`,{className:`flex flex-col md:flex-row flex-1 gap-6`,children:[r&&(0,q.jsx)(`aside`,{className:J(`md:shrink-0`,AD(r.width||`small`)),children:(0,q.jsx)(zD,{region:r})}),(0,q.jsxs)(`div`,{className:`flex-1 min-w-0 space-y-6`,children:[i&&(0,q.jsx)(zD,{region:i}),s.map((e,t)=>(0,q.jsx)(zD,{region:e},e.name||`extra-${t}`))]}),a&&(0,q.jsx)(`aside`,{className:J(`md:shrink-0`,AD(a.width||`small`),a.className),children:(0,q.jsx)(zD,{region:a})})]}),o&&(0,q.jsx)(zD,{region:o})]})},dashboard:({schema:e})=>{let t=e.regions||[];if(t.length===0)return(0,q.jsx)(VD,{schema:e});let n=MD(t,`header`),r=MD(t,`footer`),i=ND(t,[`header`,`footer`]);return(0,q.jsxs)(`div`,{className:`flex flex-col gap-6`,"data-template":`dashboard`,children:[n&&(0,q.jsx)(zD,{region:n}),(0,q.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-6`,children:i.map((e,t)=>(0,q.jsx)(zD,{region:e},e.name||`region-${t}`))}),r&&(0,q.jsx)(zD,{region:r})]})}};function WD(e){return e.template&&UD[e.template]||null}var GD=({schema:e})=>e.regions&&e.regions.length>0?(0,q.jsx)(BD,{regions:e.regions,pageType:`record`}):(0,q.jsx)(VD,{schema:e}),KD=({schema:e})=>e.regions&&e.regions.length>0?(0,q.jsx)(BD,{regions:e.regions,pageType:`home`}):(0,q.jsx)(VD,{schema:e}),qD=({schema:e})=>e.regions&&e.regions.length>0?(0,q.jsx)(BD,{regions:e.regions,pageType:`app`}):(0,q.jsx)(VD,{schema:e}),JD=({schema:e})=>e.regions&&e.regions.length>0?(0,q.jsx)(BD,{regions:e.regions,pageType:`utility`}):(0,q.jsx)(VD,{schema:e}),YD=-1,XD=null;function ZD(){let e=U.getVersion();return(XD===null||YD!==e)&&(XD=zo(U.getKnownTypes().filter(e=>!U.deprecationFor(e,`html`)).map(e=>{let t=U.getMeta(e);return{type:e,namespace:t?.namespace,isContainer:t?.isContainer,inputs:t?.inputs}})),YD=e),XD}function QD(e){if(e.code!==`forbidden-tag`||!e.tag)return e;let t=U.deprecationFor(e.tag,`html`);if(!t)return e;let n=`${e.message}: it is deprecated on kind:'html' pages`;return{...e,message:t.replacement?`${n}. Instead, ${t.replacement}`:n}}var $D=({schema:e,className:t,...n})=>{let r=e.pageType||`record`,[i,a]=K.useReducer(e=>e+1,0);K.useEffect(()=>U.subscribe(a),[]);let o=e.title??e.label,{"data-obj-id":s,"data-obj-type":c,style:l}=n,u=M(n),d=(0,K.useMemo)(()=>{let t=e.kind;if(t===`react`)return(0,q.jsx)(OD,{schema:e});if(t===`html`||t===`jsx`){let{tree:t,diagnostics:n}=Ro(e.source??``,ZD()),r=n.filter(e=>e.severity===`error`).map(QD);return r.length?(0,q.jsxs)(`div`,{className:`m-4 rounded-md border border-destructive/40 bg-destructive/10 p-4 text-sm text-destructive`,children:[(0,q.jsxs)(`div`,{className:`font-semibold`,children:[`HTML page failed to compile (`,r.length,`)`]}),(0,q.jsx)(`ul`,{className:`mt-1 list-disc space-y-0.5 pl-5`,children:r.slice(0,8).map((e,t)=>(0,q.jsx)(`li`,{children:e.message},t))})]}):t?(0,q.jsx)(Pe,{schema:t}):null}let n=WD(e);if(n)return(0,q.jsx)(n,{schema:e});switch(r){case`home`:return(0,q.jsx)(KD,{schema:e});case`app`:return(0,q.jsx)(qD,{schema:e});case`utility`:return(0,q.jsx)(JD,{schema:e});default:return(0,q.jsx)(GD,{schema:e})}},[e,r,i]),f=(e.regions??[]).some(e=>e.name?.toLowerCase()===`main`&&e.width===`full`),p=f?`max-w-none`:jD(r),m=K.useMemo(()=>r===`record`||RD(e),[e,r]),h=!!o&&!m,g=!!e.description&&r!==`record`,_=(0,q.jsx)(`div`,{className:J(`min-h-full w-full bg-background p-3 md:p-4 lg:p-6`,t),"data-page-type":r,"data-obj-id":s,"data-obj-type":c,style:l,...u,children:(0,q.jsxs)(`div`,{className:J(f?`space-y-6`:`mx-auto space-y-6`,p),children:[(h||g)&&(0,q.jsxs)(`div`,{className:`space-y-2`,children:[h&&(0,q.jsx)(`h1`,{className:`text-3xl font-bold tracking-tight text-foreground`,children:o}),g&&(0,q.jsx)(`p`,{className:`text-muted-foreground`,children:e.description})]}),d]})});return e.variables&&e.variables.length>0?(0,q.jsxs)(ft,{definitions:e.variables,children:[(0,q.jsx)(F,{}),_]}):_},eO={namespace:`ui`,label:`Page`,icon:`panels-top-left`,category:`layout`,inputs:[{name:`title`,type:`string`},{name:`description`,type:`string`},{name:`pageType`,type:`string`},{name:`object`,type:`string`},{name:`template`,type:`string`},{name:`regions`,type:`array`,itemType:`object`},{name:`variables`,type:`array`,itemType:`object`},{name:`children`,type:`array`,itemType:`component`}]};U.register(`page`,$D,eO),U.register(`app`,$D,{...eO,label:`App Page`}),U.register(`utility`,$D,{...eO,label:`Utility Page`}),U.register(`home`,$D,{...eO,label:`Home Page`}),U.register(`record`,$D,{...eO,label:`Record Page`});var tO=new Map,nO=new Map,rO=new Set,iO=0;function aO(e,t,n,r){return`${e}::${r===void 0?t??``:`${t??``}#${JSON.stringify(r)}`}::${n??``}`}function oO(){iO+=1;for(let e of rO)e()}function sO(e,t,n,r){return tO.get(aO(e,t,n,r))}function cO(e,t,n,r,i){let a=aO(e,t,n,i);tO.get(a)!==r&&(tO.set(a,r),oO())}async function lO(e,t,n,r,i,a){let o=aO(t,n,r,i),s=tO.get(o);if(s!==void 0)return s;let c=nO.get(o);if(c)return c;let l=(async()=>{let s={};if(n){if(!r)return 0;s=ue(n,r,a)}let c=i===void 0?s:le(s,i)??s;try{let a=await e(t,{$filter:c,$top:1,$count:!0}),o=typeof a?.total==`number`?a.total:Array.isArray(a?.data)?a.data.length:Array.isArray(a)?a.length:0,s=typeof o==`number`?o:0;return cO(t,n,r,s,i),s}catch{return 0}finally{nO.delete(o)}})();return nO.set(o,l),l}function uO(e,t){let n=!1,r=`${e}::`;for(let e of tO.keys())e.startsWith(r)&&(t===void 0||e.endsWith(`::${t}`))&&(tO.delete(e),n=!0);n&&oO()}function dO(){tO.size!==0&&(tO.clear(),oO())}function fO(e){return rO.add(e),()=>{rO.delete(e)}}function pO(){return iO}function mO(){return(0,K.useSyncExternalStore)(fO,pO,pO)}var hO={get:sO,set:cO,fetch:lO,invalidate:uO,invalidateAll:dO,_reset:()=>{tO.clear(),nO.clear(),oO()}};Me(e=>{e.objectName===`*`?hO.invalidateAll():hO.invalidate(e.objectName)});var gO=[{name:`children`,type:`slot`,description:`Child components rendered inside this container, in order`}],_O=650,vO=_t({"common.itemCount":`{{count}} items`,"common.itemCountOne":`{{count}} item`},`common.itemCount`),yO=e=>{let{"data-obj-id":t,"data-obj-type":n,style:r,...i}=e||{};return{designer:{"data-obj-id":t,"data-obj-type":n,style:r},rest:i}},bO=e=>e==null?``:typeof e==`string`?e:typeof e==`object`?e.default||e.value||``:String(e),xO={"zh-CN":{Details:`详情`,Related:`相关`,Activity:`活动`,History:`历史`,Notes:`备注`,Files:`文件`,Tasks:`任务`,"Open Tasks":`待办任务`,"Closed Tasks":`已完成任务`,Events:`日程`,Attachments:`附件`,Chatter:`讨论`,Discussion:`讨论`,Comments:`评论`,Overview:`概览`,Summary:`摘要`,Quotes:`报价单`,Products:`产品`,Contacts:`联系人`,Accounts:`客户`,Leads:`线索`,Opportunities:`商机`,Cases:`服务案例`,Campaigns:`营销活动`,Approvals:`审批`,Documents:`文档`,Emails:`邮件`,Calls:`通话`,Meetings:`会议`},"zh-TW":{Details:`詳情`,Related:`相關`,Activity:`活動`,History:`歷史`,Notes:`備註`,Files:`檔案`,Tasks:`任務`,"Open Tasks":`待辦任務`,"Closed Tasks":`已完成任務`,Events:`行程`,Attachments:`附件`,Chatter:`討論`,Discussion:`討論`,Comments:`評論`,Overview:`概覽`,Summary:`摘要`,Quotes:`報價單`,Products:`產品`,Contacts:`聯絡人`,Accounts:`客戶`,Leads:`線索`,Opportunities:`商機`,Cases:`服務案例`,Campaigns:`行銷活動`,Approvals:`審批`,Documents:`文件`,Emails:`郵件`,Calls:`通話`,Meetings:`會議`}},SO={Details:`detail.details`,Related:`detail.related`,Activity:`detail.activity`,History:`detail.history`,Attachments:`detail.attachments`,Approvals:`detail.approvalsPanelTitle`,Discussion:`detail.discussion`,Comments:`detail.comments`},CO=(e,t,n)=>{if(!e)return e;let r=xO[t],i=t.split(`-`)[0]===`zh`?xO[`zh-CN`]:void 0,a=r||i,o=e=>{let t=a?.[e];if(t!==void 0)return t;let r=SO[e];if(r===void 0)return;let i=n(r,e);return i===e?void 0:i},s=o(e);if(s!==void 0)return s;let c=/\s*(?:&|and|和)\s*/i;if(c.test(e)){let n=e.split(c).map(e=>e.trim()).map(o);if(n.every(e=>e!==void 0)){let e=t.startsWith(`zh`)?`与`:` & `;return n.join(e)}}return e},wO=(e,t,n,r,i)=>{if(!e?.fields||!t||!n)return;let a=(Array.isArray(e.fields)?e.fields.find(e=>e?.name===r):e.fields[r])?.options;if(!Array.isArray(a))return;let o=a.find(e=>String(e?.value??e)===i);return t(n,r,i,o?.label?String(o.label):i)},TO=(e,t,n,r)=>{if(!e||typeof e!=`object`)return e;let i=e,a;for(let e of Object.keys(i)){let o=i[e];if(o==null||typeof o==`object`)continue;let s=wO(t,n,r,e,String(o));s!==void 0&&(a||={...i},a[e]=s)}return a??i},EO=(e,t,n,r,i)=>!e||typeof e!=`string`?e||``:(e.includes(`{`)?e.replace(/\{([a-zA-Z0-9_.]+)\}/g,(e,a)=>{let o=a.split(`.`).reduce((e,t)=>e==null?e:e[t],t);if(o==null||typeof o==`object`)return``;let s=String(o);if(!a.includes(`.`)){let e=wO(n,r,i,a,s);if(e!==void 0)return e}return s}):e).replace(/\s+/g,` `).trim(),DO=e=>{let t=typeof e==`number`?e:Number(e);return Number.isFinite(t)?t>=1e4?`${Math.round(t/1e3)}k`:t>=1e3?`${(t/1e3).toFixed(1).replace(/\.0$/,``)}k`:String(t):String(e)},OO=(e,t=[])=>{if(!e)return t;let n=Array.isArray(e)?e:[e];for(let e of n){if(!e||typeof e!=`object`)continue;if(e.type===`record:related_list`||e.type===`record_related_list`){t.push(e);continue}let n=[e.children,e.properties?.children,e.properties?.items,e.body,e.items];for(let e of n)e&&OO(e,t)}return t},kO=e=>{if(!e)return!1;let t=Array.isArray(e)?e:[e];for(let e of t){if(!e||typeof e!=`object`)continue;if(e.type===`record:attachments`)return!0;let t=[e.children,e.properties?.children,e.properties?.items,e.body,e.items];for(let e of t)if(e&&kO(e))return!0}return!1};U.register(`tabs`,({schema:e,className:t,...n})=>{let{designer:r}=yO(n),{t:i,language:a}=vO(),o=gt(),s=e?.items||[],c=e?.properties?.type||e?.tabStyle||`line`,l=(e?.position||`top`)===`left`,u=oe(),d=u?.data?.id,f=u?.dataSource,p=ne(),{variables:m}=lt(),h=u?.data,g=s.map(t=>t?.visibleWhen===void 0||t?.visibleWhen===null||new st({...h&&typeof h==`object`?h:{},...p,current_user:p?.user,record:h,data:h,page:m}).evaluateCondition(t.visibleWhen,{onFault:n=>je(`page:tabs`,e?.id,`visibleWhen`,t.visibleWhen,n,`page-component`)})),_=g.join(`,`),v=K.useMemo(()=>s.filter((e,t)=>g[t]),[s,_]),y=mO(),b=u?.objectName,x=K.useMemo(()=>{let e=new Map;return v.forEach((t,n)=>{if(t.count!==void 0&&t.count!==null&&t.count!==``)return;let r=OO(t.children),i=[];for(let e of r){let t=e?.properties?.objectName||e?.objectName;if(!t)continue;let n=e?.properties?.relationshipField||e?.relationshipField,r=e?.properties?.filter??e?.filter;i.push({objectName:t,relationshipField:n,...r==null?{}:{filter:r}})}b&&kO(t.children)&&i.push({objectName:`sys_attachment`,relationshipField:`attachments:${b}`,attachments:!0}),i.length>0&&e.set(n,i)}),e},[v,b]),S=K.useMemo(()=>JSON.stringify(Array.from(x.entries())),[x]);K.useEffect(()=>{if(!f||typeof f.find!=`function`||x.size===0)return;let e=!1;return(async()=>{let t=new Map;if(typeof f.getObjectSchema==`function`){let e=new Set;for(let t of x.values())for(let n of t)n.attachments||e.add(n.objectName);await Promise.all(Array.from(e).map(async e=>{try{t.set(e,(await f.getObjectSchema(e))?.fields)}catch{}}))}if(!e)for(let n of x.values())for(let r of n){let n=r.attachments?(e,t)=>f.find(e,{...t,$filter:{parent_object:b,parent_id:d}}):(e,t)=>f.find(e,t);if(hO.fetch(n,r.objectName,r.relationshipField,d,r.filter,r.attachments?void 0:t.get(r.objectName)).catch(()=>0),e)return}})(),()=>{e=!0}},[f,S,d,y]);let C=e=>{let t=x.get(e);if(!t||t.length===0)return;let n=0,r=!1;for(let e of t){let t=hO.get(e.objectName,e.relationshipField,d,e.filter);t!==void 0&&(n+=t,r=!0)}return r?n:void 0},w=v.map((e,t)=>({...e,value:typeof e.value==`string`&&e.value!==``?e.value:`tab-${t}`,labelStr:CO(bt(e.label,a),a,o),count:e.count!==void 0&&e.count!==null&&e.count!==``?e.count:C(t)})),T=e?.defaultTab,E=(T&&w.some(e=>e.value===T)?T:void 0)??w[0]?.value,D=e?.onTabChange,[O,k]=K.useState(E),A=(O&&w.some(e=>e.value===O)?O:void 0)??w[0]?.value??``,j=J(l&&`flex-col h-auto items-stretch p-1`,c===`card`&&`bg-transparent gap-1`,c===`pill`&&`bg-muted rounded-full p-1 gap-1`,c===`line`&&!l&&`h-auto rounded-none bg-transparent p-0 gap-4 border-b border-border w-full justify-start`,!l&&`sticky top-0 z-20 bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60`),M=()=>J(l&&`justify-start`,c===`card`&&`data-[state=active]:bg-background data-[state=active]:border data-[state=active]:shadow-sm rounded-md`,c===`pill`&&`rounded-full data-[state=active]:bg-background`,c===`line`&&!l&&`rounded-none border-b-2 border-transparent bg-transparent px-1 pb-2.5 -mb-px shadow-none data-[state=active]:border-primary data-[state=active]:bg-transparent data-[state=active]:shadow-none data-[state=active]:text-foreground`);return(0,q.jsxs)(Hb,{value:A,onValueChange:e=>{k(e),D?.(e)},orientation:l?`vertical`:`horizontal`,className:J(t,l&&`flex gap-4 w-full`),...r,children:[(w.length>1||e?.alwaysShowStrip===!0||e?.properties?.alwaysShowStrip===!0)&&(0,q.jsx)(Ub,{className:j,children:w.map(e=>(0,q.jsxs)(Wb,{value:e.value,className:M(),children:[e.icon&&(0,q.jsx)(zx,{name:e.icon,className:`mr-1.5 h-3.5 w-3.5 shrink-0 opacity-70`,"aria-hidden":!0}),(0,q.jsx)(`span`,{children:e.labelStr}),e.count!==void 0&&e.count!==null&&e.count!==``&&Number(e.count)>0&&(0,q.jsx)(`span`,{className:`ml-1.5 inline-flex h-4 min-w-[1rem] items-center justify-center rounded-full bg-muted px-1 text-[10px] font-medium leading-none text-muted-foreground`,"aria-label":i(Number(e.count)===1?`common.itemCountOne`:`common.itemCount`,{count:DO(e.count)}),children:DO(e.count)})]},e.value))}),w.map(e=>(0,q.jsx)(Gb,{value:e.value,className:J(w.length>1?`mt-3`:`mt-0`,l&&`mt-0 flex-1`),children:Y(e.children)},e.value))]})},{namespace:`page`,skipFallback:!0,label:`Page Tabs`,category:`layout`,isContainer:!0,inputs:[{name:`items`,type:`array`,of:`object`,required:!0,description:`Tab definitions [{ label, value?, icon?, count?, visibleWhen?, children }] — value is the stable ?tab= URL token, count auto-derives from record:related_list descendants when omitted`},{name:`tabStyle`,type:`enum`,enum:[`line`,`card`,`pill`]},{name:`position`,type:`enum`,enum:[`top`,`left`]},{name:`alwaysShowStrip`,type:`boolean`,description:`Keep the tab strip visible when only one tab survives. Default false: a lone pill is clutter rather than an affordance, so a one-tab strip is hidden and its panel renders bare. Count the tabs AFTER each item visibleWhen predicate has been evaluated — a page authored with four tabs of which three are conditional reaches this rule whenever the other three are false.`}]}),U.register(`card`,({schema:e,className:t,...n})=>{let{designer:r}=yO(n),{language:i}=Ct(),a=bt(e?.title,i),o=e?.bordered!==!1,s=e?.body??e?.children,c=e?.footer;return(0,q.jsxs)(zd,{className:J(t,!o&&`border-0 shadow-none bg-transparent`),...r,children:[a&&(0,q.jsx)(Bd,{children:(0,q.jsx)(Vd,{children:a})}),Ia(s,e=>(0,q.jsx)(Ud,{children:Y(e)})),Ia(c,e=>(0,q.jsx)(Wd,{className:`flex justify-between`,children:Y(e)}))]})},{namespace:`page`,skipFallback:!0,label:`Page Card`,category:`layout`,isContainer:!0,inputs:[{name:`title`,type:[`string`,`object`],description:`Accepts an inline translation map ({ en, "zh-CN", … })`},{name:`bordered`,type:`boolean`},{name:`children`,type:`slot`,description:`Card content components, in order (the card body slot)`},{name:`footer`,type:`slot`}]}),U.register(`accordion`,({schema:e,className:t,...n})=>{let{designer:r}=yO(n),{language:i}=Ct(),a=gt(),o=e?.items||[],s=!!e?.allowMultiple,c=(e?.variant??e?.properties?.variant??`flush`)===`flush`?`border-b last:border-b-0`:void 0,l=o.map((e,t)=>({...e,value:`panel-${t}`,labelStr:CO(bt(e.label,i),i,a)})),u=l.filter(e=>e.collapsed===!1).map(e=>e.value),d=l.map(e=>(0,q.jsxs)(Ho,{value:e.value,className:c,children:[(0,q.jsx)(Uo,{className:`text-sm font-semibold tracking-tight hover:no-underline`,children:(0,q.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[e.icon&&(0,q.jsx)(zx,{name:e.icon,className:`h-3.5 w-3.5 shrink-0 opacity-70`,"aria-hidden":!0}),(0,q.jsx)(`span`,{children:e.labelStr})]})}),(0,q.jsx)(Wo,{children:Y(e.children)})]},e.value));return s?(0,q.jsx)(Vo,{type:`multiple`,defaultValue:u,className:t,...r,children:d}):(0,q.jsx)(Vo,{type:`single`,collapsible:!0,defaultValue:u[0],className:t,...r,children:d})},{namespace:`page`,skipFallback:!0,label:`Page Accordion`,category:`layout`,isContainer:!0,inputs:[{name:`items`,type:`array`,of:`object`,required:!0,description:`Panel definitions [{ label, icon?, collapsed?, children }] — collapsed: false opens a panel by default`},{name:`allowMultiple`,type:`boolean`},{name:`variant`,type:`enum`,enum:[`flush`,`card`]}]}),U.register(`section`,({schema:e,className:t,...n})=>{let{designer:r}=yO(n);return(0,q.jsx)(`section`,{className:J(`space-y-4`,t),...r,children:Y(e?.children||e?.body)})},{namespace:`page`,skipFallback:!0,label:`Page Section`,category:`layout`,isContainer:!0,inputs:gO});var AO=new Set;function jO(e,t,n){if(!n||typeof n!=`object`||Object.keys(n).length===0)return;let r=/\brecord\.([A-Za-z_][A-Za-z0-9_]*)/g,i=[];for(let e=r.exec(t);e;e=r.exec(t))!(e[1]in n)&&!i.includes(e[1])&&i.push(e[1]);if(i.length===0)return;let a=`missing::${String(e)}::${t}`;AO.has(a)||(AO.add(a),console.warn(`[page:header] action "${String(e)}" predicate references record field(s) not present in the record payload: ${i.join(`, `)}. Predicate: ${t}. This page bound a record payload that does not carry those key(s) — a projected or partial read ($select, an embedded card, a custom page passing a projected record) will not include them — so the predicate fails closed and the action stays hidden.`))}var MO=new Set;function NO(e,t,n,r){let i=`${t??``}::${e}::${n}`;if(MO.has(i))return;MO.add(i);let a=n===`no-object`?"this header is not bound to an object (no RecordContext `objectName`), so ids cannot be resolved at all":n===`no-metadata`?`no metadata could be read for object "${String(t)}" (no MetadataProvider in scope, or the object does not exist)`:`object "${String(t)}" declares no action by that name. Declared: ${r.length>0?r.join(`, `):`(none)`}`;console.warn(`[page:header] action id "${e}" did not resolve — ${a}. Nothing is rendered for it. \`PageHeaderProps.actions\` is a list of ACTION IDS (@objectstack/spec: \`z.array(z.string())\`, "Action IDs to show in header"), resolved against the object's own \`actions\` metadata the same way \`record:quick_actions\` resolves them.`)}var PO=new Set;function FO(e,t){let n=`${e??``}::${t.index}::${t.message}`;PO.has(n)||(PO.add(n),console.error(`[page:header] actions refused at index ${t.index} — ${t.message}. None of the authored actions is rendered. \`PageHeaderProps.actions\` is a list of ACTION IDS (@objectstack/spec: \`z.array(z.string())\`); an inline action object is a transition tolerance that must not share an array with ids.`))}U.register(`header`,({schema:e,className:t,...n})=>{let{designer:r}=yO(n),i=oe(),a=!!E()?.editing,o=ne(),{execute:s}=Le(),c=at(),l=Vy(),{objectLabel:u}=ht(),d=ae(),{fieldOptionLabel:f}=xt(),{language:p}=Ct(),m=gt(),h=i?.refresh,[g,_]=K.useState(!1),v=K.useRef(void 0);K.useEffect(()=>()=>clearTimeout(v.current),[]);let y=K.useCallback(()=>{h&&(h(),_(!0),clearTimeout(v.current),v.current=setTimeout(()=>_(!1),_O))},[h]),x=e?.title??e?.properties?.title,S=e?.subtitle??e?.properties?.subtitle,C=i?.objectSchema,w=i?.objectName||C?.name,T=EO(bt(x,p),i?.data,C,f,w),D=EO(bt(S,p),i?.data,C,f,w),O=(e?.breadcrumb??e?.properties?.breadcrumb)!==!1,k=e?.recordChrome===!1||e?.properties?.recordChrome===!1,M=e?.showStar!==!1&&e?.properties?.showStar!==!1,P=e?.showCopyId!==!1&&e?.properties?.showCopyId!==!1,F=e?.actions??e?.properties?.actions,I=i?.headerSystemActions,ee=K.useMemo(()=>Array.isArray(F)?F:[],[F]),R=K.useMemo(()=>de(ee,void 0),[ee]),te=R.kind===`ids`&&R.ids.length>0&&!!w,{item:z,loading:re}=Ye(`object`,te?w:null),V=K.useMemo(()=>{let e=Array.isArray(z?.actions)?z.actions:[],t=de(ee,e);if(t.kind===`refused`)return FO(w,t),[];if(t.kind===`ids`&&(!te||!re)){let n=Array.from(new Set(e.map(e=>typeof e?.name==`string`?e.name:``).filter(e=>e!==``)));for(let{id:e}of t.unresolved)NO(e,w,w?z?`not-found`:`no-metadata`:`no-object`,n)}return t.actions},[ee,z,re,te,w]),ie=C?.fields,H=K.useMemo(()=>{let e=o?.user,t=b(i?.data,ie);return{...o&&typeof o==`object`?o:{},user:e,os:o?.os??{user:e},ctx:{user:e,record:t,data:t,app:o?.app,features:o?.features}}},[o,i?.data,ie]),U=K.useCallback((e,t)=>ye(e,i?.data??{},{fallback:!1,scope:H,fields:ie,warnOnError:!0,label:t}),[i?.data,H,ie]),se=K.useMemo(()=>{let e=i?.data,t=t=>{if(!c(t?.requiredPermissions))return!1;let n=t?.visible;if(n!=null){if(typeof n==`boolean`){if(!n)return!1}else{let r=typeof n==`string`?n:n&&typeof n==`object`&&typeof n.source==`string`?n.source:null;if(r&&(jO(t?.name,r,e),!U(n,`page:header action "${String(t?.name)}" visible`)))return!1}}let r=t?.hidden;if(r!=null){if(typeof r==`boolean`){if(r)return!1}else{let n=typeof r==`string`?r:r&&typeof r==`object`&&typeof r.source==`string`?r.source:null;if(n&&(jO(t?.name,n,e),U(r,`page:header action "${String(t?.name)}" hidden`)))return!1}}return!0},n=e=>j(e,`record_header`)||j(e,`record_more`),r=V.filter(e=>n(e)&&t(e)),a=Array.isArray(I)?I.filter(t):[],o=new Set,s=[];for(let e of[...r,...a]){let t=e?.name||e?.id||``;t&&o.has(t)||(t&&o.add(t),s.push(e))}return s.some(e=>e?.order!==void 0||e?.variant===`primary`)?[...s].sort((e,t)=>{let n=(e?.order??0)-(t?.order??0);return n===0?(e?.variant===`primary`?0:1)-(t?.variant===`primary`?0:1):n}):s},[V,I,i?.data,U]),W=K.useMemo(()=>se.map((e,t)=>d(i?.objectName,e,{fallbackLabel:typeof e?.id==`string`&&e.id||`Action ${t+1}`})),[se,d,i?.objectName]),G=i?.data,ce=K.useCallback(e=>{let{params:t,...n}=e??{},r=Array.isArray(t)?void 0:Gx({...n,params:t},n.type||n.actionType,`page:header`);if(!G||typeof G!=`object`){s(t!=null&&!Array.isArray(t)&&r===void 0?n:e);return}let i={...n};Array.isArray(t)?(!i.actionParams&&t.length>0&&(i.actionParams=t),i.params={_rowRecord:G}):i.params={...r||{},_rowRecord:G},s(i)},[G,s]),le=()=>{if(W.length===0)return null;let t=e=>e?.label??``,n=e=>typeof e==`number`&&Number.isSafeInteger(e)&&e>0?e:void 0,r=l?n(e?.mobileMaxVisible??e?.properties?.mobileMaxVisible)??1:n(e?.maxVisible??e?.properties?.maxVisible)??3,i=e=>Array.isArray(e?.locations)&&e.locations.length>0&&e.locations.includes(`record_more`)&&!e.locations.includes(`record_header`),o=W.filter(i),s=W.filter(e=>!i(e)&&e?.component===`action:menu`),c=W.filter(e=>!i(e)&&e?.component!==`action:menu`),u=c.slice(0,r),d=[...c.slice(r),...s,...o],f=d.length>0,p=(e,t)=>e==null?!1:typeof e==`boolean`?e:(typeof e==`string`?e:e&&typeof e==`object`&&typeof e.source==`string`&&e.source)?U(e,`page:header action "${String(t)}" disabled`):!1,h=e=>a&&e?.disableDuringInlineEdit===!0||p(e?.disabled,e?.name??e?.id);return(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 shrink-0`,role:`toolbar`,"aria-label":m(`detail.pageHeaderActions`,`Page header actions`),children:[u.map((e,n)=>{let r=t(e),i=e.variant===`primary`?`default`:e.variant||`default`,a=e.size||`sm`,o=h(e),s=typeof e.icon==`string`?e.icon:null;return(0,q.jsxs)(X,{variant:i,size:a,disabled:o,className:`gap-2`,onClick:()=>{if(typeof e.onClick==`function`){e.onClick();return}ce(e)},children:[s&&(0,q.jsx)(zx,{name:s,className:`h-4 w-4`}),(0,q.jsx)(`span`,{children:r})]},e.name||e.id||`header-action-${n}`)}),f&&(0,q.jsxs)(Yh,{children:[(0,q.jsx)(Xh,{asChild:!0,children:(0,q.jsx)(X,{variant:`outline`,size:`sm`,className:`gap-1 px-2`,"aria-label":m(`detail.moreActions`,`More actions`),children:(0,q.jsx)(Mi,{className:`h-4 w-4`})})}),(0,q.jsx)(tg,{align:`end`,className:`w-44`,children:d.map((e,n)=>{let r=t(e),i=h(e),a=typeof e.icon==`string`?e.icon:null,o=e.variant===`destructive`||e.name===`sys_delete`;return(0,q.jsxs)(ng,{disabled:i,onSelect:t=>{if(t.preventDefault(),typeof e.onClick==`function`){e.onClick();return}ce(e)},className:J(`gap-2`,o&&`text-destructive focus:text-destructive focus:bg-destructive/10`),children:[a&&(0,q.jsx)(zx,{name:a,className:`h-4 w-4`}),(0,q.jsx)(`span`,{children:r})]},e.name||e.id||`overflow-action-${n}`)})})]})]})},ue=()=>{if(!h)return null;let e=m(`common.refresh`,`Refresh`);return(0,q.jsx)(Wy,{children:(0,q.jsxs)(Gy,{children:[(0,q.jsx)(Ky,{asChild:!0,children:(0,q.jsx)(X,{variant:`outline`,size:`sm`,className:`gap-1 px-2`,onClick:y,"aria-label":e,"data-page-refresh":!0,children:(0,q.jsx)(ra,{className:J(`h-4 w-4`,g&&`animate-spin`)})})}),(0,q.jsx)(qy,{children:e})]})})},fe=e=>{let t=le()??e,n=ue();return n?(0,q.jsxs)(`div`,{className:`flex items-center gap-2 shrink-0`,children:[t,n]}):t};if(i?.data&&i?.objectSchema&&!k){let e=i.data,n=i.objectSchema,a=i.objectName||n?.name,o=bO(n?.label)||n?.name||i.objectName||``,s=a?u({name:a,label:o}):o||void 0,c=L(n?.titleFormat,TO(e,n,f,a)),l=e?.id??e?._id,d=e=>e===`Untitled`||l!=null&&e===`Record #${l}`,p=(()=>{let t=B(n,e,{deriveFromRecordKeys:!1});return d(t)?``:t})(),m=(()=>{if(p||N(n))return``;let t=B(n,e);return d(t)?``:t})(),h=(s&&e?.id?`${s} ${String(e.id).slice(0,8)}`:``)||s||``,g=(()=>{let t=A(e,Be(n));return t&&!d(t)?t:``})(),_=T||g||c||p||m,v=(typeof _==`string`?_.trim()?_:``:A({value:_},`value`)??``)||h;return(0,q.jsxs)(`header`,{className:J(`flex flex-col sm:flex-row sm:flex-wrap items-start sm:items-center justify-between gap-3 sm:gap-4 pb-4 border-b`,t),...r,children:[(0,q.jsxs)(`div`,{className:`flex flex-col min-w-0 sm:min-w-48 flex-1`,children:[O&&(0,q.jsx)(`div`,{className:`text-xs text-muted-foreground mb-1`,"data-page-breadcrumb-slot":!0}),(0,q.jsx)(cD,{title:v,objectLabel:s,resourceId:e?.id?String(e.id):void 0,showStar:M,showCopyId:P,isFavorite:i?.isFavorite,onToggleFavorite:i?.onToggleFavorite?()=>i.onToggleFavorite():void 0}),D&&(0,q.jsx)(`p`,{className:`text-sm text-muted-foreground mt-1`,children:D})]}),fe((0,q.jsx)(`div`,{"data-page-actions-slot":!0,className:`shrink-0`}))]})}return(0,q.jsxs)(`header`,{className:J(`flex flex-col gap-2 pb-4 border-b`,t),...r,children:[O&&(0,q.jsx)(`div`,{className:`text-xs text-muted-foreground`,"data-page-breadcrumb-slot":!0}),(0,q.jsxs)(`div`,{className:`flex items-center justify-between gap-4`,children:[(0,q.jsxs)(`div`,{className:`flex flex-col`,children:[T&&(0,q.jsx)(`h1`,{className:`text-2xl font-semibold tracking-tight`,children:T}),D&&(0,q.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:D})]}),fe((0,q.jsx)(`div`,{"data-page-actions-slot":!0}))]})]})},{namespace:`page`,skipFallback:!0,label:`Page Header`,category:`layout`,inputs:[{name:`title`,type:[`string`,`object`],description:`Supports {field} interpolation and inline translation maps; falls back to the record title`},{name:`subtitle`,type:[`string`,`object`],description:`Same interpolation as Title`},{name:`actions`,type:`array`,of:`string`,description:`Action IDS — the names of actions declared on the object's own metadata — rendered in the header before any host-injected system actions. An id whose action declares neither record_header nor record_more in its locations renders nowhere.`},{name:`breadcrumb`,type:`boolean`},{name:`recordChrome`,type:`boolean`,description:`Set false for the bare h1 header on non-record pages`},{name:`showStar`,type:`boolean`},{name:`showCopyId`,type:`boolean`},{name:`maxVisible`,type:`number`,description:`How many header actions render as inline buttons on desktop before the rest fold into the overflow menu. A positive integer — the contract rejects 0 and fractional values. Two kinds of action are routed to the overflow menu regardless of this budget and never occupy an inline slot: an action whose locations declare record_more without record_header, and any action with component action:menu.`},{name:`mobileMaxVisible`,type:`number`,description:`The same inline-button budget on mobile viewports, where horizontal room is scarce. A positive integer, defaulting to 1; the desktop half is Max Inline Actions, and the overflow routing rules stated there apply unchanged.`}]}),U.register(`footer`,({schema:e,className:t,...n})=>{let{designer:r}=yO(n);return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(Oy,{className:`my-4`}),(0,q.jsx)(`footer`,{className:J(`flex items-center justify-between text-sm text-muted-foreground`,t),...r,children:Y(e?.children||e?.body)})]})},{namespace:`page`,skipFallback:!0,label:`Page Footer`,category:`layout`,isContainer:!0,inputs:gO}),U.register(`sidebar`,({schema:e,className:t,...n})=>{let{designer:r}=yO(n);return(0,q.jsx)(`aside`,{className:J(`flex flex-col gap-4 w-full md:w-80 shrink-0`,t),...r,children:Y(e?.children||e?.body)})},{namespace:`page`,skipFallback:!0,label:`Page Sidebar`,category:`layout`,isContainer:!0,inputs:gO}),[`aside`,`main`,`header`,`nav`,`footer`,`section`,`article`].forEach(e=>{let t=(0,K.forwardRef)(({schema:t,className:n,...r},i)=>{let{"data-obj-id":a,"data-obj-type":o,style:s,...c}=r;return(0,q.jsx)(e,{ref:i,className:n,...c,"data-obj-id":a,"data-obj-type":o,style:s,children:Y(t.children)})});t.displayName=`Semantic${e.charAt(0).toUpperCase()+e.slice(1)}`,U.register(e,t,{namespace:`ui`,label:e.charAt(0).toUpperCase()+e.slice(1),category:`layout`,isContainer:!0,inputs:[{name:`className`,type:`string`},{name:`children`,type:`slot`}]})}),U.register(`aspect-ratio`,({schema:e,...t})=>{let{"data-obj-id":n,"data-obj-type":r,style:i,...a}=t;return(0,q.jsx)(ss,{ratio:e.ratio||16/9,className:e.className,...a,"data-obj-id":n,"data-obj-type":r,style:i,children:e.image?(0,q.jsx)(`img`,{src:e.image,alt:e.alt||``,loading:`lazy`,className:`rounded-md object-cover w-full h-full`}):Y(e.children)})},{namespace:`ui`,label:`Aspect Ratio`,isContainer:!0,inputs:[{name:`ratio`,type:`number`},{name:`image`,type:`string`},{name:`alt`,type:`string`},{name:`className`,type:`string`},{name:`children`,type:`slot`,description:"Content rendered inside the ratio box when no `image` is set"}],defaultProps:{ratio:16/9}});var IO={name:`children`,type:`slot`};U.register(`sidebar-provider`,({schema:e,...t})=>(0,q.jsx)(nb,{...t,children:Y(e.children)}),{namespace:`ui`,label:`Sidebar Provider`,inputs:[{name:`defaultOpen`,type:`boolean`},IO],defaultProps:{defaultOpen:!0}}),U.register(`sidebar`,({schema:e,...t})=>(0,q.jsx)(rb,{...t,children:Y(e.children)}),{namespace:`ui`,label:`Sidebar`,inputs:[{name:`collapsible`,type:`enum`,enum:[`offcanvas`,`icon`,`none`]},{name:`side`,type:`enum`,enum:[`left`,`right`]},{name:`variant`,type:`enum`,enum:[`sidebar`,`floating`,`inset`]},IO],defaultProps:{collapsible:`icon`,side:`left`,variant:`sidebar`}}),U.register(`sidebar-header`,({schema:e,...t})=>(0,q.jsx)(cb,{...t,children:Y(e.children)}),{namespace:`ui`,label:`Sidebar Header`,inputs:[IO]}),U.register(`sidebar-content`,({schema:e,...t})=>(0,q.jsx)(db,{...t,children:Y(e.children)}),{namespace:`ui`,label:`Sidebar Content`,inputs:[IO]}),U.register(`sidebar-group`,({schema:e,...t})=>{let n=St();return(0,q.jsxs)(fb,{...t,children:[e.label&&(0,q.jsx)(pb,{children:o(e.label,n)}),(0,q.jsx)(hb,{children:Y(e.children)})]})},{namespace:`ui`,label:`Sidebar Group`,inputs:[{name:`label`,type:`string`},IO],defaultProps:{label:`Menu`}}),U.register(`sidebar-menu`,({schema:e,...t})=>(0,q.jsx)(gb,{...t,children:Y(e.children)}),{namespace:`ui`,label:`Sidebar Menu`,inputs:[IO]}),U.register(`sidebar-menu-item`,({schema:e,...t})=>(0,q.jsx)(_b,{...t,children:Y(e.children)}),{namespace:`ui`,label:`Sidebar Menu Item`,inputs:[IO]}),U.register(`sidebar-menu-button`,({schema:e,...t})=>{let{style:n,...r}=t;return(0,q.jsx)(yb,{isActive:e.active,..._T(r),style:n,children:Y(e.children)})},{namespace:`ui`,label:`Sidebar Menu Button`,inputs:[{name:`active`,type:`boolean`},{name:`size`,type:`enum`,enum:[`default`,`sm`,`lg`]},{name:`tooltip`,type:`string`},IO],defaultProps:{size:`default`}}),U.register(`sidebar-footer`,({schema:e,...t})=>(0,q.jsx)(lb,{...t,children:Y(e.children)}),{namespace:`ui`,label:`Sidebar Footer`,inputs:[IO]}),U.register(`sidebar-inset`,({schema:e,...t})=>(0,q.jsx)(ob,{...t,children:Y(e.children)}),{namespace:`ui`,label:`Sidebar Inset`,inputs:[IO]}),U.register(`sidebar-trigger`,({className:e,...t})=>{let{style:n,...r}=t;return(0,q.jsx)(ib,{className:e,..._T(r),style:n})},{namespace:`ui`,label:`Sidebar Trigger`,inputs:[{name:`className`,type:`string`}]});var LO=`flex h-14 sm:h-16 shrink-0 items-center gap-2 border-b px-3 sm:px-4`;function RO({crumb:e,isLast:t}){let n=it(e.label)??``;return e.siblings&&e.siblings.length>0?(0,q.jsxs)(Yh,{children:[(0,q.jsxs)(Xh,{className:`flex items-center gap-1`,children:[t?(0,q.jsx)(`span`,{className:`font-semibold`,children:n}):(0,q.jsx)(`span`,{children:n}),(0,q.jsx)(pi,{className:`h-3 w-3`})]}),(0,q.jsx)(tg,{align:`start`,children:e.siblings.map((e,t)=>(0,q.jsx)(ng,{asChild:!0,children:(0,q.jsx)(`a`,{href:e.href,children:e.label})},t))})]}):t?(0,q.jsx)(_s,{children:n}):(0,q.jsx)(gs,{href:e.href||`#`,children:n})}U.register(`header-bar`,({schema:e,className:t,style:n,...r})=>(0,q.jsxs)(`header`,{...M(r),className:J(LO,e.className),style:n,children:[(0,q.jsx)(ib,{}),(0,q.jsx)(Oy,{orientation:`vertical`,className:`mr-2 h-4`}),(0,q.jsx)(ps,{children:(0,q.jsx)(ms,{children:e.crumbs?.map((t,n)=>{let r=Ex(t.icon);return(0,q.jsxs)(K.Fragment,{children:[(0,q.jsxs)(hs,{children:[r&&(0,q.jsx)(r,{className:`h-4 w-4`}),(0,q.jsx)(RO,{crumb:t,isLast:n===e.crumbs.length-1})]}),n<e.crumbs.length-1&&(0,q.jsx)(vs,{})]},n)})})}),(0,q.jsxs)(`div`,{className:`ml-auto flex items-center gap-2`,children:[e.search?.enabled&&(0,q.jsxs)(`div`,{className:`relative`,children:[(0,q.jsx)(ca,{className:`absolute left-2.5 top-2.5 h-4 w-4 text-muted-foreground`}),(0,q.jsx)(Fv,{type:`search`,placeholder:e.search.placeholder,className:`pl-8 w-[200px] lg:w-[300px]`}),e.search.shortcut&&(0,q.jsx)(`kbd`,{className:`pointer-events-none absolute right-2 top-2 hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[10px] font-medium opacity-100 sm:flex`,children:e.search.shortcut})]}),e.actions?.map((e,t)=>(0,q.jsx)(Pe,{schema:Je(e)},t)),e.rightContent?(0,q.jsx)(Pe,{schema:Je(e.rightContent)}):null]})]}),{namespace:`ui`,label:`Header Bar`,inputs:[{name:`crumbs`,type:`array`},{name:`search`,type:`object`},{name:`actions`,type:`array`},{name:`rightContent`,type:`object`}],defaultProps:{crumbs:[{label:`Home`,href:`#`},{label:`Current Page`}]}}),U.register(`badge`,({schema:e,...t})=>{let{"data-obj-id":n,"data-obj-type":r,style:i,...a}=t;return(0,q.jsx)(fs,{variant:e.variant,className:e.className,...a,"data-obj-id":n,"data-obj-type":r,style:i,children:e.label||Y(e.children)})},{namespace:`ui`,label:`Badge`,inputs:[{name:`label`,type:`string`},{name:`variant`,type:`enum`,enum:[`default`,`secondary`,`destructive`,`outline`]},{name:`className`,type:`string`},{name:`children`,type:`slot`,description:"Rich label content, rendered when `label` is not set"}],defaultProps:{label:`Badge`,variant:`default`}}),U.register(`avatar`,({schema:e,className:t,...n})=>(0,q.jsxs)(cs,{className:t,...n,children:[(0,q.jsx)(ls,{src:e.src,alt:e.alt}),(0,q.jsx)(us,{children:e.fallback})]}),{namespace:`ui`,label:`Avatar`,inputs:[{name:`src`,type:`string`},{name:`alt`,type:`string`},{name:`fallback`,type:`string`},{name:`className`,type:`string`}],defaultProps:{fallback:`CN`,alt:`Avatar`}}),U.register(`alert`,({schema:e,className:t,...n})=>(0,q.jsxs)(is,{variant:e.variant,className:t,...n,children:[(0,q.jsx)(as,{children:e.title}),(0,q.jsx)(os,{children:e.description||Y(e.children)})]}),{namespace:`ui`,label:`Alert`,inputs:[{name:`title`,type:`string`,required:!0},{name:`description`,type:`string`},{name:`variant`,type:`enum`,enum:[`default`,`destructive`]},{name:`className`,type:`string`},{name:`children`,type:`slot`,description:"Rich description content, rendered when `description` is not set"}],defaultProps:{title:`Alert Title`,description:`This is an alert message.`,variant:`default`}}),U.register(`list`,({schema:e,className:t,...n})=>{let r=He(e.bind),i=Array.isArray(r)?r:Array.isArray(e.items)?e.items:[],a=e.ordered?`ol`:`ul`,o=e.ordered?`list-decimal`:`list-disc`;return(0,q.jsxs)(`div`,{className:J(`space-y-2`,e.wrapperClass),children:[e.title&&(0,q.jsx)(`h3`,{className:`text-lg font-semibold tracking-tight`,children:e.title}),(0,q.jsx)(a,{className:J(`ml-6 [&>li]:mt-2`,o,t),...n,children:i.map((e,t)=>(0,q.jsx)(`li`,{className:J(typeof e==`object`&&e.className),children:typeof e==`string`?e:Y(e.content)},t))})]})},{namespace:`ui`,label:`List`,inputs:[{name:`title`,type:`string`},{name:`ordered`,type:`boolean`},{name:`items`,type:`array`,description:`Array of strings or objects with content`},{name:`className`,type:`string`}],defaultProps:{ordered:!1,items:[`First item`,`Second item`,`Third item`],className:`text-sm`}});var zO=({node:e,onNodeClick:t})=>{let[n,r]=(0,K.useState)(!1),i=e.children&&e.children.length>0;return(0,q.jsxs)(`div`,{className:`relative`,children:[(0,q.jsxs)(`div`,{className:J(`group flex items-center py-1.5 px-2 rounded-sm cursor-pointer transition-colors`,`hover:bg-accent hover:text-accent-foreground`,n&&i&&`bg-accent/50`),onClick:()=>{t&&t(e)},children:[i?(0,q.jsx)(`button`,{type:`button`,onClick:e=>{e.stopPropagation(),r(!n)},className:`mr-2 p-0.5 h-5 w-5 flex items-center justify-center rounded-sm hover:bg-muted text-muted-foreground transition-colors`,children:n?(0,q.jsx)(pi,{className:`h-4 w-4`}):(0,q.jsx)(hi,{className:`h-4 w-4`})}):(0,q.jsx)(`span`,{className:`mr-2 w-5 flex justify-center`,children:(0,q.jsx)(`div`,{className:`w-1 h-1 rounded-full bg-muted-foreground/50`})}),e.icon===`folder`||i?n?(0,q.jsx)(zi,{className:`h-4 w-4 mr-2 text-primary`}):(0,q.jsx)(Bi,{className:`h-4 w-4 mr-2 text-muted-foreground group-hover:text-primary transition-colors`}):(0,q.jsx)(Li,{className:`h-4 w-4 mr-2 text-muted-foreground group-hover:text-primary transition-colors`}),(0,q.jsx)(`span`,{className:J(`text-sm transition-colors`,n?`font-medium text-foreground`:`text-muted-foreground group-hover:text-foreground`),children:e.label})]}),i&&n&&(0,q.jsx)(`div`,{className:`relative ml-[11px] pl-3 border-l border-border animate-in slide-in-from-left-2 fade-in duration-200`,children:e.children.map(e=>(0,q.jsx)(zO,{node:e,onNodeClick:t},e.id))})]})};U.register(`tree-view`,({schema:e,className:t,...n})=>{let r=t=>{e.onNodeClick&&e.onNodeClick(t)},i=He(e.bind)||e.nodes||[],a=Array.isArray(i)?i:[];return(0,q.jsxs)(`div`,{className:J(`relative border rounded-lg p-3 bg-card text-card-foreground`,t),...n,children:[e.title&&(0,q.jsx)(`div`,{className:`flex items-center gap-2 mb-3 pb-2 border-b`,children:(0,q.jsx)(`h3`,{className:`text-sm font-semibold`,children:e.title})}),(0,q.jsx)(`div`,{className:`space-y-1`,children:a.map(e=>(0,q.jsx)(zO,{node:e,onNodeClick:r},e.id))})]})},{namespace:`ui`,label:`Tree View`,inputs:[{name:`title`,type:`string`},{name:`nodes`,type:`array`,description:`Array of { id, label, icon, children, data }`},{name:`className`,type:`string`}],defaultProps:{title:`File Explorer`,nodes:[{id:`1`,label:`Documents`,icon:`folder`,children:[{id:`1-1`,label:`Resume.pdf`,icon:`file`},{id:`1-2`,label:`Cover Letter.docx`,icon:`file`}]},{id:`2`,label:`Photos`,icon:`folder`,children:[{id:`2-1`,label:`Vacation`,icon:`folder`,children:[{id:`2-1-1`,label:`Beach.jpg`,icon:`file`}]},{id:`2-2`,label:`Family.jpg`,icon:`file`}]},{id:`3`,label:`README.md`,icon:`file`}]}});var BO=e=>e?Rx(e):null;U.register(`statistic`,({schema:e})=>{let t=e.icon?BO(e.icon):null;return(0,q.jsxs)(`div`,{className:J(`group relative flex flex-col p-4 sm:p-5 md:p-6 rounded-xl border bg-card text-card-foreground shadow-sm`,e.className),children:[(0,q.jsxs)(`div`,{className:`flex items-center justify-between mb-2`,children:[e.label&&(0,q.jsx)(`p`,{className:`text-sm font-medium text-muted-foreground`,children:e.label}),t&&(0,q.jsx)(t,{className:`h-4 w-4 text-muted-foreground`})]}),(0,q.jsx)(`div`,{className:`flex items-baseline gap-2`,children:(0,q.jsx)(`h3`,{className:`text-2xl font-bold tracking-tight`,children:e.value})}),(e.trend||e.description)&&(0,q.jsxs)(`div`,{className:`mt-1 flex items-center text-xs text-muted-foreground`,children:[e.trend===`up`&&(0,q.jsx)(ya,{className:`mr-1 h-3 w-3 text-emerald-500`}),e.trend===`down`&&(0,q.jsx)(va,{className:`mr-1 h-3 w-3 text-rose-500`}),e.trend===`neutral`&&(0,q.jsx)(Xi,{className:`mr-1 h-3 w-3`}),(0,q.jsx)(`span`,{className:J(e.trend===`up`&&`text-emerald-500 font-medium`,e.trend===`down`&&`text-rose-500 font-medium`),children:e.description})]})]})},{namespace:`ui`,label:`Statistic`,category:`data-display`,icon:`Activity`,inputs:[{name:`label`,type:`string`},{name:`value`,type:`string`},{name:`description`,type:`string`},{name:`trend`,type:`enum`,enum:[{label:`Up`,value:`up`},{label:`Down`,value:`down`},{label:`Neutral`,value:`neutral`}]}],defaultProps:{label:`Total Revenue`,value:`$45,231.89`,trend:`up`,description:`+20.1% from last month`}});var VO=`/`;function HO(e,t){let n=e.map(e=>({kind:`item`,item:e}));if(typeof t!=`number`||!Number.isFinite(t))return n;let r=Math.floor(t);if(r<1||e.length<=r)return n;let i=Math.min(1,r-1),a=r-i;return[...e.slice(0,i).map(e=>({kind:`item`,item:e})),{kind:`ellipsis`},...e.slice(e.length-a).map(e=>({kind:`item`,item:e}))]}U.register(`breadcrumb`,({schema:e,...t})=>{let{"data-obj-id":n,"data-obj-type":r,style:i,...a}=t,o=e.separator??VO,s=HO(e.items??[],e.maxItems);return(0,q.jsx)(ps,{className:e.className,...a,"data-obj-id":n,"data-obj-type":r,style:i,children:(0,q.jsx)(ms,{children:s.map((e,t)=>{let n=t===s.length-1,r=!n&&(0,q.jsx)(vs,{children:o});if(e.kind===`ellipsis`)return(0,q.jsxs)(`div`,{className:`flex items-center`,children:[(0,q.jsx)(hs,{children:(0,q.jsx)(ys,{})}),r]},t);let i=e.item,a=Ex(i.icon);return(0,q.jsxs)(`div`,{className:`flex items-center`,children:[(0,q.jsxs)(hs,{children:[a&&(0,q.jsx)(a,{className:`h-4 w-4`}),n?(0,q.jsx)(_s,{children:it(i.label)??``}):(0,q.jsx)(gs,{href:i.href,children:it(i.label)??``})]}),r]},t)})})})},{namespace:`ui`,label:`Breadcrumb`,inputs:[{name:`className`,type:`string`},{name:`separator`,type:`string`},{name:`maxItems`,type:`number`}],defaultProps:{items:[{label:`Home`,href:`/`},{label:`Products`,href:`/products`},{label:`Product`}]}}),U.register(`kbd`,({schema:e,...t})=>{let{"data-obj-id":n,"data-obj-type":r,style:i,...a}=t,o=Array.isArray(e.keys)?e.keys:[e.keys||e.label||`K`];return(0,q.jsx)(`div`,{className:J(`inline-flex flex-wrap gap-1`,e.className),children:o.map((e,t)=>(0,q.jsx)(`kbd`,{className:`pointer-events-none inline-flex h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[10px] font-medium text-muted-foreground opacity-100`,...a,...t===0?{"data-obj-id":n,"data-obj-type":r,style:i}:{},children:e},t))})},{namespace:`ui`,label:`Keyboard Key`,inputs:[{name:`label`,type:`string`},{name:`className`,type:`string`}],defaultProps:{label:`K`}}),U.register(`progress`,({schema:e,className:t,...n})=>(0,q.jsx)(my,{value:e.value,className:t,...n}),{namespace:`ui`,label:`Progress`,inputs:[{name:`value`,type:`number`},{name:`className`,type:`string`}],defaultProps:{value:50,className:`w-full`}}),U.register(`skeleton`,({schema:e,className:t,...n})=>(0,q.jsx)(Uy,{className:t,...n,style:{width:e.width,height:e.height}}),{namespace:`ui`,label:`Skeleton`,inputs:[{name:`width`,type:`string`},{name:`height`,type:`string`},{name:`className`,type:`string`}],defaultProps:{width:`100%`,height:`20px`,className:`rounded-md`}});var UO={top_left:`top-left`,top_center:`top-center`,top_right:`top-right`,bottom_left:`bottom-left`,bottom_center:`bottom-center`,bottom_right:`bottom-right`,"top-left":`top-left`,"top-center":`top-center`,"top-right":`top-right`,"bottom-left":`bottom-left`,"bottom-center":`bottom-center`,"bottom-right":`bottom-right`};U.register(`toaster`,({schema:e})=>{let t=e?.position?UO[e.position]:void 0,n=typeof e?.limit==`number`&&e.limit>0?e.limit:void 0;return(0,q.jsx)(Mb,{...t?{position:t}:{},...n?{visibleToasts:n}:{}})},{namespace:`ui`,label:`Toaster`,inputs:[{name:`position`,type:`enum`,enum:[`top-left`,`top-center`,`top-right`,`bottom-left`,`bottom-center`,`bottom-right`]},{name:`limit`,type:`number`}],defaultProps:{}}),U.register(`loading`,({schema:e,className:t,...n})=>{let r=e.size||`md`,i=e.fullscreen||!1,a=(0,q.jsxs)(`div`,{className:J(`flex flex-col items-center justify-center gap-2`,t),children:[(0,q.jsx)(rD,{className:J(r===`sm`&&`h-4 w-4`,r===`md`&&`h-8 w-8`,r===`lg`&&`h-12 w-12`,r===`xl`&&`h-16 w-16`)}),e.text&&(0,q.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:e.text})]});return i?(0,q.jsx)(`div`,{className:`fixed inset-0 z-50 flex items-center justify-center bg-background/80 backdrop-blur-sm`,...n,children:a}):(0,q.jsx)(`div`,{className:`flex items-center justify-center p-8`,...n,children:a})},{namespace:`ui`,label:`Loading`,inputs:[{name:`text`,type:`string`},{name:`size`,type:`enum`,enum:[`sm`,`md`,`lg`,`xl`]},{name:`fullscreen`,type:`boolean`},{name:`className`,type:`string`}],defaultProps:{text:`Loading...`,size:`md`,fullscreen:!1}}),U.register(`toast`,({schema:e})=>(0,q.jsx)(X,{onClick:()=>{(e.variant===`success`?Ot.success:e.variant===`error`?Ot.error:e.variant===`warning`?Ot.warning:e.variant===`info`?Ot.info:Ot)(e.title||`Notification`,{description:e.description,duration:e.duration})},variant:e.buttonVariant,className:e.className,children:e.buttonLabel||`Show Toast`}),{namespace:`ui`,label:`Toast`,inputs:[{name:`title`,type:`string`},{name:`description`,type:`string`},{name:`variant`,type:`enum`,enum:[`default`,`success`,`warning`,`error`,`info`]},{name:`duration`,type:`number`},{name:`buttonLabel`,type:`string`},{name:`buttonVariant`,type:`enum`,enum:[`default`,`secondary`,`destructive`,`outline`,`ghost`,`link`],description:"Variant for the trigger button this node renders. Exactly the six keys of the Button variant group: `cva` contributes no variant class for any other value, so an out-of-set value renders a button with no background and no text colour, while an empty string silently renders the default look."},{name:`className`,type:`string`}],defaultProps:{title:`Notification`,buttonLabel:`Show Toast`,variant:`default`,duration:5e3}}),U.register(`spinner`,({schema:e,className:t,...n})=>{let{"data-obj-id":r,"data-obj-type":i,style:a,...o}=n;return(0,q.jsx)(qi,{className:J(`animate-spin`,{sm:`h-4 w-4`,md:`h-6 w-6`,lg:`h-8 w-8`,xl:`h-12 w-12`}[e.size||`md`],e.className,t),...M(o),"data-obj-id":r,"data-obj-type":i,style:a})},{namespace:`ui`,label:`Spinner`,inputs:[{name:`size`,type:`enum`,enum:[`sm`,`md`,`lg`,`xl`]},{name:`className`,type:`string`}],defaultProps:{size:`md`}}),U.register(`empty`,({schema:e,...t})=>{let{"data-obj-id":n,"data-obj-type":r,style:i,action:a,icon:o,...s}=t,c=e.action==null?void 0:(0,q.jsx)(Pe,{schema:Je(e.action)});return(0,q.jsx)(fD,{title:e.title||`No data`,description:e.description,className:e.className,action:c,...s,"data-obj-id":n,"data-obj-type":r,style:i})},{namespace:`ui`,label:`Empty`,inputs:[{name:`title`,type:`string`},{name:`description`,type:`string`},{name:`action`,type:`slot`,description:`Call-to-action node rendered below the description, e.g. a button`},{name:`className`,type:`string`}],defaultProps:{title:`No data`}}),U.register(`sonner`,({schema:e,...t})=>{let{style:n,...r}=t;return(0,q.jsx)(X,{onClick:()=>{(e.variant===`success`?Ot.success:e.variant===`error`?Ot.error:e.variant===`warning`?Ot.warning:e.variant===`info`?Ot.info:Ot)(e.message||e.title||`Notification`,{description:e.description})},variant:e.buttonVariant,className:e.className,..._T(r),style:n,children:e.buttonLabel||`Show Toast`})},{namespace:`ui`,label:`Sonner Toast`,inputs:[{name:`message`,type:`string`},{name:`description`,type:`string`},{name:`variant`,type:`enum`,enum:[`default`,`success`,`error`,`warning`,`info`]},{name:`buttonLabel`,type:`string`},{name:`buttonVariant`,type:`enum`,enum:[`default`,`secondary`,`destructive`,`outline`,`ghost`,`link`],description:"Variant for the trigger button this node renders. Exactly the six keys of the Button variant group: `cva` contributes no variant class for any other value, so an out-of-set value renders a button with no background and no text colour, while an empty string silently renders the default look."},{name:`className`,type:`string`}],defaultProps:{message:`Notification`,buttonLabel:`Show Toast`,variant:`default`}}),U.register(`dialog`,({schema:e,className:t,...n})=>(0,q.jsxs)(am,{modal:e.modal,defaultOpen:e.defaultOpen,...n,children:[La(om,e.trigger),(0,q.jsxs)(lm,{className:t,children:[(0,q.jsxs)(um,{children:[e.title&&(0,q.jsx)(fm,{children:e.title}),e.description&&(0,q.jsx)(pm,{children:e.description})]}),Y(e.content),Ia(e.footer,e=>(0,q.jsx)(dm,{children:Y(e)}))]})]}),{namespace:`ui`,label:`Dialog`,inputs:[{name:`title`,type:`string`},{name:`description`,type:`string`},{name:`modal`,type:`boolean`},{name:`defaultOpen`,type:`boolean`},{name:`trigger`,type:`slot`,description:`Element that opens the dialog`},{name:`content`,type:`slot`,description:`Main content of the dialog`},{name:`footer`,type:`slot`},{name:`className`,type:`string`}],defaultProps:{title:`Dialog Title`,description:`Dialog description goes here`,modal:!0,trigger:[{type:`button`,label:`Open Dialog`}],content:[{type:`text`,content:`Dialog content goes here`}]}}),U.register(`sheet`,({schema:e,className:t,...n})=>(0,q.jsxs)(ky,{modal:e.modal,defaultOpen:e.defaultOpen,...n,children:[La(Ay,e.trigger),(0,q.jsxs)(Fy,{side:e.side||`right`,className:t,children:[(0,q.jsxs)(Iy,{children:[e.title&&(0,q.jsx)(Ry,{children:e.title}),e.description&&(0,q.jsx)(zy,{children:e.description})]}),Y(e.content),Ia(e.footer,e=>(0,q.jsx)(Ly,{children:Y(e)}))]})]}),{namespace:`ui`,label:`Sheet`,inputs:[{name:`title`,type:`string`},{name:`description`,type:`string`},{name:`side`,type:`enum`,enum:[`top`,`right`,`bottom`,`left`]},{name:`modal`,type:`boolean`},{name:`defaultOpen`,type:`boolean`},{name:`trigger`,type:`slot`},{name:`content`,type:`slot`},{name:`footer`,type:`slot`},{name:`className`,type:`string`}],defaultProps:{title:`Sheet Title`,description:`Sheet description`,side:`right`,modal:!0,trigger:[{type:`button`,label:`Open Sheet`}],content:[{type:`text`,content:`Sheet content goes here`}]}}),U.register(`popover`,({schema:e,className:t,...n})=>(0,q.jsxs)(dy,{modal:e.modal,defaultOpen:e.defaultOpen,...n,children:[La(fy,e.trigger),(0,q.jsx)(py,{align:e.align,side:e.side,className:t,children:Y(e.content)})]}),{namespace:`ui`,label:`Popover`,inputs:[{name:`modal`,type:`boolean`},{name:`defaultOpen`,type:`boolean`},{name:`align`,type:`enum`,enum:[`start`,`center`,`end`]},{name:`side`,type:`enum`,enum:[`top`,`right`,`bottom`,`left`]},{name:`trigger`,type:`slot`},{name:`content`,type:`slot`},{name:`className`,type:`string`}],defaultProps:{trigger:[{type:`button`,label:`Open Popover`,variant:`outline`}],content:[{type:`text`,content:`Popover content goes here`}],align:`center`,side:`bottom`}}),U.register(`tooltip`,({schema:e,className:t,...n})=>(0,q.jsx)(Wy,{delayDuration:e.delayDuration,children:(0,q.jsxs)(Gy,{...n,children:[La(Ky,e.trigger),(0,q.jsx)(qy,{side:e.side,align:e.align,className:t,children:e.content||Y(e.children)})]})}),{namespace:`ui`,label:`Tooltip`,inputs:[{name:`delayDuration`,type:`number`},{name:`side`,type:`enum`,enum:[`top`,`right`,`bottom`,`left`]},{name:`align`,type:`enum`,enum:[`start`,`center`,`end`]},{name:`trigger`,type:`slot`},{name:`content`,type:`string`},{name:`children`,type:`slot`},{name:`className`,type:`string`}],defaultProps:{trigger:[{type:`button`,label:`Hover me`,variant:`outline`}],content:`Tooltip content`,delayDuration:700,side:`top`}}),U.register(`alert-dialog`,({schema:e,className:t,...n})=>(0,q.jsxs)(Ko,{defaultOpen:e.defaultOpen,...n,children:[La(qo,e.trigger),(0,q.jsxs)(Xo,{className:t,children:[(0,q.jsxs)(Zo,{children:[e.title&&(0,q.jsx)($o,{children:e.title}),e.description&&(0,q.jsx)(es,{children:e.description})]}),Y(e.content),(0,q.jsxs)(Qo,{children:[e.cancelText&&(0,q.jsx)(ns,{children:e.cancelText}),e.actionText&&(0,q.jsx)(ts,{className:e.actionVariant?Go({variant:e.actionVariant}):void 0,onClick:e.onAction,children:e.actionText})]})]})]}),{namespace:`ui`,label:`Alert Dialog`,inputs:[{name:`title`,type:`string`},{name:`description`,type:`string`},{name:`cancelText`,type:`string`},{name:`actionText`,type:`string`},{name:`actionVariant`,type:`enum`,enum:[`default`,`destructive`]},{name:`defaultOpen`,type:`boolean`},{name:`trigger`,type:`slot`},{name:`content`,type:`slot`},{name:`className`,type:`string`}],defaultProps:{title:`Are you sure?`,description:`This action cannot be undone.`,cancelText:`Cancel`,actionText:`Continue`,trigger:[{type:`button`,label:`Open Alert`,variant:`destructive`}]}}),U.register(`drawer`,({schema:e,className:t,...n})=>(0,q.jsxs)(zh,{shouldScaleBackground:e.shouldScaleBackground,defaultOpen:e.defaultOpen,...n,children:[La(Bh,e.trigger),(0,q.jsxs)(Wh,{className:t,children:[(0,q.jsxs)(Gh,{children:[e.title&&(0,q.jsx)(qh,{children:e.title}),e.description&&(0,q.jsx)(Jh,{children:e.description})]}),Y(e.content),Ia(e.footer,t=>(0,q.jsxs)(Kh,{children:[Y(t),e.showClose&&(0,q.jsx)(Hh,{asChild:!0,children:(0,q.jsx)(`button`,{type:`button`,children:`Close`})})]}))]})]}),{namespace:`ui`,label:`Drawer`,inputs:[{name:`title`,type:`string`},{name:`description`,type:`string`},{name:`shouldScaleBackground`,type:`boolean`},{name:`defaultOpen`,type:`boolean`},{name:`showClose`,type:`boolean`},{name:`trigger`,type:`slot`},{name:`content`,type:`slot`},{name:`footer`,type:`slot`},{name:`className`,type:`string`}],defaultProps:{title:`Drawer Title`,description:`Drawer description`,trigger:[{type:`button`,label:`Open Drawer`}],content:[{type:`text`,content:`Drawer content goes here`}]}}),U.register(`hover-card`,({schema:e,className:t,...n})=>(0,q.jsxs)(sv,{openDelay:e.openDelay,closeDelay:e.closeDelay,...n,children:[La(cv,e.trigger),(0,q.jsx)(lv,{align:e.align,side:e.side,className:t,children:Y(e.content)})]}),{namespace:`ui`,label:`Hover Card`,inputs:[{name:`openDelay`,type:`number`},{name:`closeDelay`,type:`number`},{name:`side`,type:`enum`,enum:[`top`,`right`,`bottom`,`left`]},{name:`align`,type:`enum`,enum:[`start`,`center`,`end`]},{name:`trigger`,type:`slot`},{name:`content`,type:`slot`},{name:`className`,type:`string`}],defaultProps:{trigger:[{type:`button`,label:`Hover me`,variant:`link`}],content:[{type:`text`,content:`Hover card content appears on hover`}],side:`top`}});var WO=e=>e?e.map((e,t)=>{if(e.separator)return(0,q.jsx)(og,{},t);let n=Ex(e.icon);return e.children?(0,q.jsxs)(Qh,{children:[(0,q.jsxs)($h,{children:[n&&(0,q.jsx)(n,{className:`mr-2 h-4 w-4`}),e.label]}),(0,q.jsx)(eg,{children:WO(e.children)})]},t):(0,q.jsxs)(ng,{disabled:e.disabled,onSelect:()=>e.onClick?.(),children:[n&&(0,q.jsx)(n,{className:`mr-2 h-4 w-4`}),e.label,e.shortcut&&(0,q.jsx)(`span`,{className:`ml-auto text-xs tracking-widest opacity-60`,children:e.shortcut})]},t)}):null;U.register(`dropdown-menu`,({schema:e,className:t,...n})=>{let r=St();return(0,q.jsxs)(Yh,{modal:e.modal,defaultOpen:e.defaultOpen,...n,children:[La(Xh,e.trigger),(0,q.jsxs)(tg,{align:e.align,side:e.side,className:t,children:[e.label&&(0,q.jsx)(ag,{children:o(e.label,r)}),e.label&&(0,q.jsx)(og,{}),WO(e.items)]})]})},{namespace:`ui`,label:`Dropdown Menu`,inputs:[{name:`label`,type:`string`},{name:`side`,type:`enum`,enum:[`top`,`right`,`bottom`,`left`]},{name:`align`,type:`enum`,enum:[`start`,`center`,`end`]},{name:`trigger`,type:`slot`},{name:`items`,type:`array`,description:"Recursive structure: a command item { label, icon, shortcut, disabled, onClick, children: [] } or a divider { separator: true }. `icon` is a kebab-case Lucide icon name resolved against lucide's runtime `icons` record; an unknown or retired spelling renders no glyph."},{name:`className`,type:`string`}],defaultProps:{trigger:[{type:`button`,label:`Menu`,variant:`outline`}],items:[{label:`Item 1`},{label:`Item 2`},{separator:!0},{label:`Item 3`}],align:`start`,side:`bottom`}});var GO=e=>e?e.map((e,t)=>{if(e.separator)return(0,q.jsx)(Mm,{},t);let n=Ex(e.icon);return e.children?(0,q.jsxs)(wm,{children:[(0,q.jsxs)(Tm,{children:[n&&(0,q.jsx)(n,{className:`mr-2 h-4 w-4`}),e.label]}),(0,q.jsx)(Em,{children:GO(e.children)})]},t):(0,q.jsxs)(Om,{disabled:e.disabled,onSelect:()=>e.onClick?.(),children:[n&&(0,q.jsx)(n,{className:`mr-2 h-4 w-4`}),e.label,e.shortcut&&(0,q.jsx)(Nm,{children:e.shortcut})]},t)}):null;U.register(`context-menu`,({schema:e,className:t,...n})=>{let r=e.triggerClassName||t||e.className||`h-[120px] w-full sm:h-[150px] sm:w-[300px] border border-dashed text-sm flex items-center justify-center`,i=e.contentClassName;return(0,q.jsxs)(Sm,{modal:e.modal,...n,children:[(0,q.jsx)(Cm,{asChild:!0,children:(0,q.jsx)(`div`,{className:r,children:Y(e.trigger||{type:`text`,content:`Right click here`})})}),(0,q.jsx)(Dm,{className:i,children:GO(e.items)})]})},{namespace:`ui`,label:`Context Menu`,inputs:[{name:`trigger`,type:`slot`},{name:`triggerClassName`,type:`string`},{name:`items`,type:`array`,description:"Recursive structure: a command item { label, icon, shortcut, disabled, onClick, children } or a divider { separator: true }. `icon` is a kebab-case Lucide icon name resolved against lucide's runtime `icons` record; an unknown or retired spelling renders no glyph."},{name:`className`,type:`string`}],defaultProps:{items:[{label:`Action 1`},{label:`Action 2`},{separator:!0},{label:`Action 3`}],trigger:[{type:`text`,content:`Right click here`}]}});var KO=e=>e?.map((e,t)=>{if(e.separator)return(0,q.jsx)(qv,{},t);let n=Ex(e.icon);return e.children?(0,q.jsxs)(Lv,{children:[(0,q.jsxs)(Bv,{children:[n&&(0,q.jsx)(n,{className:`mr-2 h-4 w-4`}),e.label]}),(0,q.jsx)(Vv,{children:KO(e.children)})]},t):(0,q.jsxs)(Uv,{disabled:e.disabled,onSelect:()=>e.onClick?.(),children:[n&&(0,q.jsx)(n,{className:`mr-2 h-4 w-4`}),e.label,e.shortcut&&(0,q.jsx)(Jv,{children:e.shortcut})]},t)});U.register(`menubar`,({schema:e,...t})=>{let{"data-obj-id":n,"data-obj-type":r,style:i,...a}=t;return(0,q.jsx)(Rv,{className:e.className,...a,"data-obj-id":n,"data-obj-type":r,style:i,children:e.menus?.map((e,t)=>(0,q.jsxs)(Iv,{children:[(0,q.jsx)(zv,{children:e.label}),(0,q.jsx)(Hv,{children:KO(e.items)})]},t))})},{namespace:`ui`,label:`Menubar`,inputs:[{name:`className`,type:`string`}],defaultProps:{menus:[{label:`File`,items:[{label:`New`},{label:`Open`},{separator:!0},{label:`Exit`}]}]}}),U.register(`accordion`,({schema:e,className:t,...n})=>(0,q.jsx)(Vo,{type:e.accordionType||`single`,collapsible:e.collapsible,className:t,...n,children:e.items?.map((e,t)=>(0,q.jsxs)(Ho,{value:e.value||`item-${t}`,disabled:e.disabled,children:[(0,q.jsx)(Uo,{children:e.title}),(0,q.jsx)(Wo,{children:Y(e.content)})]},e.value||t))}),{namespace:`ui`,label:`Accordion`,inputs:[{name:`accordionType`,type:`enum`,enum:[`single`,`multiple`]},{name:`collapsible`,type:`boolean`},{name:`items`,type:`array`,description:`Array of { trigger, content, value }`},{name:`className`,type:`string`}],defaultProps:{accordionType:`single`,collapsible:!0,items:[{label:`Item 1`,value:`item-1`,content:[{type:`text`,content:`Content for item 1`}]},{label:`Item 2`,value:`item-2`,content:[{type:`text`,content:`Content for item 2`}]},{label:`Item 3`,value:`item-3`,content:[{type:`text`,content:`Content for item 3`}]}],className:`w-full`}}),U.register(`collapsible`,({schema:e,className:t,disabled:n,open:r,...i})=>{let a=Y(e.trigger);return(0,q.jsxs)(ap,{defaultOpen:e.defaultOpen,disabled:n,className:t,...i,children:[(0,q.jsx)(op,{asChild:(0,K.isValidElement)(a),children:a}),(0,q.jsx)(sp,{children:Y(e.content)})]})},{namespace:`ui`,label:`Collapsible`,inputs:[{name:`defaultOpen`,type:`boolean`},{name:`disabled`,type:`boolean`},{name:`trigger`,type:`slot`},{name:`content`,type:`slot`},{name:`className`,type:`string`}],defaultProps:{trigger:[{type:`button`,label:`Toggle`,variant:`outline`}],content:[{type:`text`,content:`Collapsible content goes here`}],className:`w-full`}}),U.register(`toggle-group`,({schema:e,...t})=>{let{"data-obj-id":n,"data-obj-type":r,style:i,type:a,...o}=t;return(0,q.jsx)(Xb,{type:e.selectionType||`single`,variant:e.variant,size:e.size,value:e.value,className:e.className,...o,"data-obj-id":n,"data-obj-type":r,style:i,children:e.items?.map((e,t)=>(0,q.jsx)(Zb,{value:e.value,"aria-label":e.label,disabled:e.disabled,children:e.label},t))})},{namespace:`ui`,label:`Toggle Group`,inputs:[{name:`selectionType`,type:`enum`,enum:[`single`,`multiple`]},{name:`variant`,type:`enum`,enum:[`default`,`outline`]},{name:`size`,type:`enum`,enum:[`default`,`sm`,`lg`]},{name:`className`,type:`string`}],defaultProps:{selectionType:`single`,variant:`default`,size:`default`,items:[{value:`bold`,label:`Bold`},{value:`italic`,label:`Italic`},{value:`underline`,label:`Underline`}]}}),U.register(`carousel`,({schema:e,className:t,...n})=>(0,q.jsxs)($f,{opts:e.opts,orientation:e.orientation||`horizontal`,className:t,...n,children:[(0,q.jsx)(ep,{children:e.items?.map((t,n)=>(0,q.jsx)(tp,{className:e.itemClassName,children:Y(t)},n))}),e.showArrows&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(np,{}),(0,q.jsx)(rp,{})]})]}),{namespace:`ui`,label:`Carousel`,inputs:[{name:`orientation`,type:`enum`,enum:[`horizontal`,`vertical`]},{name:`showArrows`,type:`boolean`},{name:`items`,type:`array`,description:`Array of content schemas`},{name:`itemClassName`,type:`string`},{name:`className`,type:`string`}],defaultProps:{orientation:`horizontal`,showArrows:!0,items:[[{type:`div`,className:`p-4 sm:p-6 md:p-8 border rounded bg-slate-50`,children:[{type:`text`,content:`Slide 1`}]}],[{type:`div`,className:`p-4 sm:p-6 md:p-8 border rounded bg-slate-50`,children:[{type:`text`,content:`Slide 2`}]}],[{type:`div`,className:`p-4 sm:p-6 md:p-8 border rounded bg-slate-50`,children:[{type:`text`,content:`Slide 3`}]}]],className:`w-full max-w-xs`}}),U.register(`filter-builder`,({schema:e,className:t,onChange:n,...r})=>{let i=St();return(0,q.jsxs)(`div`,{className:e.wrapperClass||``,children:[e.label&&(0,q.jsx)(`label`,{className:`text-sm font-medium mb-2 block`,children:o(e.label,i)}),(0,q.jsx)(SE,{fields:e.fields||[],value:e.value||r.value,onChange:t=>{n&&n({target:{name:e.name,value:t}})},className:t,...r})]})},{namespace:`ui`,label:`Filter Builder`,inputs:[{name:`label`,type:`string`},{name:`name`,type:`string`,required:!0},{name:`fields`,type:`array`,description:`Array of { value: string, label: string, type?: string } objects`,required:!0},{name:`value`,type:`object`,description:`FilterGroup object with conditions`}],defaultProps:{label:`Filters`,name:`filters`,fields:[{value:`name`,label:`Name`,type:`text`},{value:`email`,label:`Email`,type:`text`},{value:`age`,label:`Age`,type:`number`},{value:`status`,label:`Status`,type:`text`}],value:{id:`root`,logic:`and`,conditions:[]}}}),U.register(`scroll-area`,({schema:e,className:t,...n})=>{let{"data-obj-id":r,"data-obj-type":i,style:a,...o}=n,s=e.orientation||`vertical`;return(0,q.jsxs)(_y,{className:t,style:{height:e.height,width:e.width,...a},...o,"data-obj-id":r,"data-obj-type":i,children:[Y(e.children),(s===`horizontal`||s===`both`)&&(0,q.jsx)(vy,{orientation:`horizontal`}),(s===`vertical`||s===`both`)&&(0,q.jsx)(vy,{orientation:`vertical`})]})},{namespace:`ui`,label:`Scroll Area`,inputs:[{name:`height`,type:`string`},{name:`width`,type:`string`},{name:`orientation`,type:`enum`,enum:[`vertical`,`horizontal`,`both`]},{name:`className`,type:`string`},{name:`children`,type:`slot`}],defaultProps:{height:`200px`,width:`100%`,orientation:`vertical`,children:[{type:`div`,className:`p-4`,children:[{type:`text`,content:`Scrollable content goes here. Add more content to see scrolling behavior.`}]}],className:`rounded-md border`}}),U.register(`resizable`,({schema:e,className:t,...n})=>{let r=Array.isArray(e.panels)?e.panels:[];return(0,q.jsx)(yw,{orientation:e.direction||`horizontal`,className:t,...n,style:{minHeight:e.minHeight||`200px`},children:r.map((t,n)=>(0,q.jsxs)(K.Fragment,{children:[(0,q.jsx)(bw,{defaultSize:t.defaultSize,minSize:t.minSize,maxSize:t.maxSize,children:Y(t.content)}),n<r.length-1&&(0,q.jsx)(xw,{withHandle:e.withHandle})]},n))})},{namespace:`ui`,label:`Resizable Panel Group`,inputs:[{name:`direction`,type:`enum`,enum:[`horizontal`,`vertical`]},{name:`minHeight`,type:`string`},{name:`withHandle`,type:`boolean`},{name:`panels`,type:`array`,description:`Array of { defaultSize, minSize, maxSize, content }`},{name:`className`,type:`string`}],defaultProps:{direction:`horizontal`,minHeight:`200px`,withHandle:!0,panels:[{defaultSize:50,content:[{type:`div`,className:`p-4`,children:[{type:`text`,content:`Panel 1`}]}]},{defaultSize:50,content:[{type:`div`,className:`p-4`,children:[{type:`text`,content:`Panel 2`}]}]}],className:`rounded-lg border`}}),U.register(`table`,({schema:e,className:t,...n})=>(0,q.jsxs)(Pb,{className:t,...n,children:[e.caption&&(0,q.jsx)(Vb,{children:e.caption}),(0,q.jsx)(Fb,{children:(0,q.jsx)(Rb,{children:e.columns?.map((e,t)=>(0,q.jsx)(zb,{className:e.className,style:{width:e.width},children:e.header},t))})}),(0,q.jsx)(Ib,{children:e.data?.map((t,n)=>(0,q.jsx)(Rb,{children:e.columns?.map((e,n)=>(0,q.jsx)(Bb,{className:e.cellClassName,children:t[e.accessorKey]},n))},n))}),Ia(e.footer,t=>(0,q.jsx)(Lb,{children:(0,q.jsx)(Rb,{children:(0,q.jsx)(Bb,{colSpan:e.columns?.length,children:Y(t)})})}))]}),{namespace:`ui`,label:`Table`,inputs:[{name:`caption`,type:`string`},{name:`footer`,type:`string`},{name:`columns`,type:`array`,description:`Array of { header, accessorKey, className, cellClassName, width }`},{name:`data`,type:`array`,description:`Array of objects`},{name:`className`,type:`string`}],defaultProps:{caption:`Table Caption`,columns:[{header:`Column 1`,accessorKey:`col1`},{header:`Column 2`,accessorKey:`col2`},{header:`Column 3`,accessorKey:`col3`}],data:[{col1:`Row 1, Col 1`,col2:`Row 1, Col 2`,col3:`Row 1, Col 3`},{col1:`Row 2, Col 1`,col2:`Row 2, Col 2`,col3:`Row 2, Col 3`},{col1:`Row 3, Col 1`,col2:`Row 3, Col 2`,col3:`Row 3, Col 3`}]}});var qO=K.createContext(null);function JO({value:e,children:t}){return(0,q.jsx)(qO.Provider,{value:e,children:t})}function YO(){return K.useContext(qO)}var XO=`[ObjectUI] DataTable bind:`,ZO=`data`;function QO(e){return typeof e==`string`?`'${e}'`:String(e)}function $O({blockType:e,id:t,caption:n}){let r=typeof e==`string`&&e.length>0?e:`data-table`,i=[];return typeof t==`string`&&t.length>0&&i.push(`id: '${t}'`),typeof n==`string`&&n.length>0&&i.push(`caption: '${n}'`),i.length>0?`${r} (${i.join(`, `)})`:r}function ek(e){return e!==void 0}function tk(e,t,n){if(!ek(e))return null;let r=Array.isArray(t)?t.length:0,i=r===0?`This node has no inline rows, so the table renders its header over an empty body`:`The ${r} ${r===1?`row`:`rows`} on screen ${r===1?`comes`:`come`} from \`${ZO}\`; the \`bind\` contributes nothing`;return`${XO} ${$O(n)} — \`bind: ${QO(e)}\` is ignored: data-table does not read \`bind\`; it reads its rows from the inline \`${ZO}\` array on the node. ${i}.\n Put the rows in \`${ZO}\`, or author a component that does read \`bind\` (\`list\`, \`tree-view\`, or an \`object-*\` widget — they call \`useDataScope\`). (objectui#6575)`}var nk=`[ObjectUI] DataTable data:`,rk=/\$\{[\s\S]*?\}/;function ik(e,t=80){return e.length<=t?e:`${e.slice(0,t)}…`}function ak(e){return e===null?"`null`":Array.isArray(e)?`an array`:typeof e==`string`?`the string ${QO(ik(e))}`:typeof e==`number`||typeof e==`boolean`||typeof e==`bigint`?`the ${typeof e} \`${String(e)}\``:typeof e==`object`?`an object`:`a ${typeof e}`}function ok(e){return e!==void 0&&!Array.isArray(e)}function sk(e,t){if(!ok(e))return null;let n=$O(t),r=` Resolve the rows in the host and put the array on the node as \`${ZO}\`. (objectui#6665)`;return typeof e==`string`&&rk.test(e)?`${nk} ${n} — \`${ZO}: ${QO(ik(e))}\` was never evaluated: a \`\${...}\` expression written into \`${ZO}\` at node level is read as a literal string, so \`${ZO}\` is a string rather than an array and the table renders its header over an empty body.\n${r}`:`${nk} ${n} — \`${ZO}\` was authored as ${ak(e)}, and data-table takes its rows only from an array: every non-array value is dropped to zero rows, so the table renders its header over an empty body.\n${r}`}var ck=new Set([`number`,`currency`,`percent`]);function lk(e){if(e==null)return``;if(Array.isArray(e))return e.map(e=>typeof e==`object`&&e?lk(e):String(e)).filter(Boolean).join(`, `);if(typeof e==`object`){let t=e;return String(t.name??t.label??t.externalId??t.id??t._id??``)}return String(e)}var uk=_t({"table.rowsPerPage":`Rows per page`,"table.pageInfo":`Page {{current}} of {{total}}`,"table.totalRecords":`{{count}} total`,"table.noResults":`No results found`,"table.noResultsHint":`Try adjusting your filters or search query.`,"table.sortAsc":`Sort ascending`,"table.sortDesc":`Sort descending`,"table.hideColumn":`Hide column`,"table.cancelAll":`Cancel All`,"table.saveAll":`Save All ({{count}})`,"table.exportCSV":`Export CSV`,"table.addRecord":`Add record`,"table.open":`Open`,"table.search":`Search…`,"table.modified":`{{count}} row modified`,"table.saveFailed":`Save failed`,"table.selected":`{{count}} selected`,"table.edit":`Edit`,"table.delete":`Delete`,"common.actions":`Actions`,"fields.date.impossibleDay":`The stored value "{{value}}" is not a real date. Pick a date to replace it.`,"fields.dateTime.impossibleDay":`The stored value "{{value}}" is not a real date. Pick a date and time to replace it.`},`table.rowsPerPage`);function dk(e){if(e&&typeof e==`object`){let t=e,n=t.details&&(t.details.message??t.details.error);if(typeof n==`string`&&n.trim())return n.trim();if(typeof t.message==`string`&&t.message.trim())return t.message.trim()}return typeof e==`string`&&e.trim()?e.trim():`Unknown error`}function fk(e,t,n,r){return typeof e==`boolean`?e:e==null||e===``?!1:ye(e,t??{},{fallback:!1,scope:n,warnOnError:!0,label:r})}function pk(e,t,n,r){let i=e?.visibleWhen;return i==null||fk(i,n,r,`builtin:${t}:visibleWhen`)}function mk(e,t,n){let r=e?.visible;return r==null||r===``||fk(r,t,n,e?.name??`row-action`)}function hk(e){let{row:t,scope:n}=e,r=!!e.onRowEdit&&pk(e.editPredicates,`edit`,t,n),i=!!e.onRowDelete&&pk(e.deletePredicates,`delete`,t,n),a=e.customActions.filter(e=>mk(e,t,n));return{edit:r,remove:i,custom:a,count:+!!r+ +!!i+a.length}}var gk=({action:e,row:t,onActionDef:n})=>{let r=ne(),i=(0,K.useMemo)(()=>mk(e,t,r),[e,t,r]),a=w(e.disabled,t,{fallback:!1,warnOnError:!0,label:`${e.name}:disabled`});if(!i)return null;let o=Ex(e.icon);return(0,q.jsxs)(ng,{disabled:a,onClick:()=>{a||n?.(e,t)},"data-testid":`row-action-${e.name}`,className:J(e.variant===`danger`&&`text-destructive focus:text-destructive`),children:[o&&(0,q.jsx)(o,{className:`mr-2 h-4 w-4`}),e.label||e.name]})},_k=({name:e,predicates:t,row:n,icon:r,label:i,className:a,onSelect:o})=>{let s=ne(),c=(0,K.useMemo)(()=>pk(t,e,n,s),[t,e,n,s]),l=w(t?.disabledWhen,n,{fallback:!1,warnOnError:!0,label:`builtin:${e}:disabledWhen`});if(!c)return null;let u=t?.disabledWhen!=null&&l;return(0,q.jsxs)(ng,{disabled:u,onClick:()=>{u||o(n)},"data-testid":`row-action-builtin-${e}`,className:a,children:[r,i]})},vk=({schema:e,row:t,t:n})=>{let r=ne(),i=at(),a=(0,K.useMemo)(()=>Array.isArray(e.rowActionDefs)&&e.onRowActionDef?e.rowActionDefs.filter(e=>i(e.requiredPermissions)):[],[e.rowActionDefs,e.onRowActionDef,i]),o=(0,K.useMemo)(()=>hk({onRowEdit:e.onRowEdit,onRowDelete:e.onRowDelete,editPredicates:e.rowEditPredicates,deletePredicates:e.rowDeletePredicates,customActions:a,row:t,scope:r}),[e.onRowEdit,e.onRowDelete,e.rowEditPredicates,e.rowDeletePredicates,a,t,r]);return o.count===0?null:(0,q.jsxs)(Yh,{children:[(0,q.jsx)(Xh,{asChild:!0,children:(0,q.jsx)(X,{variant:`ghost`,size:`icon`,className:`h-8 w-8`,onClick:e=>e.stopPropagation(),"aria-label":`Row actions`,children:(0,q.jsx)(Mi,{className:`h-4 w-4`})})}),(0,q.jsxs)(tg,{align:`end`,onClick:e=>e.stopPropagation(),children:[o.edit&&(0,q.jsx)(_k,{name:`edit`,predicates:e.rowEditPredicates,row:t,icon:(0,q.jsx)(ma,{className:`mr-2 h-4 w-4`}),label:n(`table.edit`),onSelect:t=>e.onRowEdit?.(t)}),o.custom.length>0&&o.edit&&(0,q.jsx)(og,{}),o.custom.map(n=>(0,q.jsx)(gk,{action:n,row:t,onActionDef:e.onRowActionDef},n.name)),o.remove&&(o.edit||o.custom.length>0)&&(0,q.jsx)(og,{}),o.remove&&(0,q.jsx)(_k,{name:`delete`,predicates:e.rowDeletePredicates,row:t,icon:(0,q.jsx)(_a,{className:`mr-2 h-4 w-4`}),label:n(`table.delete`),className:`text-destructive focus:text-destructive`,onSelect:t=>e.onRowDelete?.(t)})]})]})};function yk(e){return e===`single`?`single`:e===`none`||!e?`none`:`multiple`}var bk=Object.freeze([]),xk=Object.freeze([]);function Sk(e,t){return e===t||e.length===t.length&&e.every((e,n)=>{let r=t[n];if(e===r)return!0;if(!e||!r||typeof e!=`object`||typeof r!=`object`)return!1;let i=e,a=r,o=Object.keys(i);return o.length===Object.keys(a).length&&o.every(e=>Object.is(i[e],a[e]))})}function Ck(e,t){let n=e.find(e=>e?.accessorKey===t);return!n||n.masked===!0}U.register(`data-table`,({schema:e})=>{let{caption:t,columns:n=bk,data:r=xk,pagination:i=!0,pageSize:a=10,pageSizeOptions:o,manualPagination:s=!1,rowCount:c,page:l,onPageChange:u,onPageSizeChange:d,manualSorting:f=!1,sort:p,onSortChange:m,searchable:h=!0,manualSearch:_=!1,search:v,onSearchChange:y,selectable:b=!1,showSelectionCount:x=!0,selectionResetKey:S,sortable:C=!0,exportable:w=!1,rowActions:T=!1,resizableColumns:E=!0,reorderableColumns:D=!0,editable:O=!1,singleClickEdit:k=!1,selectionStyle:A=`always`,rowClassName:j,rowStyle:M,className:N,cellClassName:P,frozenColumns:F=0,showRowNumbers:I=!1,showAddRow:L=!1,borderless:ee=!1,disableInnerScroll:R=!1,bind:te}=e,z=yk(b),B=z!==`none`,ne=YO(),re=!!ne?.onAddColumn,V=!!ne?.onEditColumn,ie=D||!!ne?.onReorderFields,{t:ae}=uk(),H=K.useId(),oe=St(),U=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?(?:Z|[+-]\d{2}:?\d{2})?)?$/,se=K.useCallback(e=>{if(typeof e!=`string`||e.length<8||!U.test(e))return e;let t=Date.parse(e);if(Number.isNaN(t))return e;let n=e.includes(`T`);try{return n?We(e,{locale:oe}):qe(e,void 0,{locale:oe})}catch{return e}},[oe]),W=Array.isArray(r)?r:xk,G=e.type,ce=e.id;(0,K.useEffect)(()=>{let e=tk(te,W,{blockType:G,id:ce,caption:t});e&&console.warn(e)},[te,W,G,ce,t]);let le=sk(r,{blockType:G,id:ce,caption:t});(0,K.useEffect)(()=>{le&&console.warn(le)},[le]);let ue=(0,K.useMemo)(()=>n.map(e=>({...e,accessorKey:e.accessorKey})),[n]),de=(0,K.useMemo)(()=>{let e={},t=n.map(e=>({header:e.header,accessorKey:e.accessorKey,width:e.width,fitContent:e.fitContent,masked:e.masked===!0}));for(let n of t){if(n.width||n.fitContent)continue;let t=(n.header||``).length,r=n.masked?[]:W.slice(0,50);for(let e of r){let r=e[n.accessorKey],i=r==null?0:String(r).length;i>t&&(t=i)}e[n.accessorKey]=Math.min(400,Math.max(80,t*8+48))}return e},[n,W]),[fe,pe]=(0,K.useState)(``),[me,he]=(0,K.useState)(null),[ge,_e]=(0,K.useState)(null),[ve,ye]=(0,K.useState)(new Set),[be,xe]=(0,K.useState)(1),[Se,we]=(0,K.useState)(a),[Te,De]=(0,K.useState)(ue),[Oe,ke]=(0,K.useState)({}),Ae=(0,K.useRef)(null),[je,Me]=(0,K.useState)(null),Ne=F>0?+!!B+ +!!I+Math.min(F,Te.length):0;(0,K.useLayoutEffect)(()=>{let e=Ae.current;if(Ne===0||!e){Me(null);return}let t=()=>{let t=Array.from(e.children).slice(0,Ne),n=0,r=t.map(e=>{let t=n;return n+=e.getBoundingClientRect().width,t});Me(e=>e&&e.length===r.length&&e.every((e,t)=>Math.abs(e-r[t])<.5)?e:r)};if(t(),typeof ResizeObserver>`u`)return;let n=new ResizeObserver(t);return Array.from(e.children).slice(0,Ne).forEach(e=>n.observe(e)),()=>n.disconnect()},[Ne,Te]);let[Fe,Ie]=(0,K.useState)(null),[Le,Re]=(0,K.useState)(null),[ze,Be]=(0,K.useState)(null),He=(0,K.useRef)(null),[Ge,Ke]=(0,K.useState)(``),[Ye,Xe]=(0,K.useState)(new Map),Ze=(0,K.useMemo)(()=>{let e=new WeakMap;return{of(t,n){let r=Ye.get(n);if(!r||typeof t!=`object`||!t)return t;let i=e.get(t);if(i!==void 0)return i;let a={...t,...r};return e.set(t,a),a}}},[Ye]),[Qe,$e]=(0,K.useState)(!1),[tt,nt]=(0,K.useState)(null),[rt,it]=(0,K.useState)(new Set),[at,ot]=(0,K.useState)(null),st=(0,K.useRef)(null),ct=(0,K.useRef)(0),lt=(0,K.useRef)(0),ut=(0,K.useRef)(null),dt=(0,K.useRef)(null),ft=(0,K.useRef)(!1),pt=(0,K.useRef)(null),mt=(0,K.useRef)(null);(0,K.useEffect)(()=>{De(e=>Sk(e,ue)?e:ue)},[ue]),(0,K.useEffect)(()=>{S!==void 0&&ye(new Set)},[S]);let ht=(0,K.useMemo)(()=>{if(_||!fe)return W;let e=Te.filter(e=>!Ck(n,e.accessorKey));return W.filter(t=>e.some(e=>t[e.accessorKey]?.toString().toLowerCase().includes(fe.toLowerCase())))},[W,fe,Te,n,_]),gt=(0,K.useMemo)(()=>{if(f||!me||!ge||Ck(n,me))return ht;let e=ht.map(e=>({row:e,key:g(e[me])}));return e.sort((e,t)=>{let n=Ve(e.key,t.key);return ge===`asc`?n:-n}),e.map(e=>e.row)},[ht,me,ge,f,n]),_t=s?Math.max(1,l??1):be,vt=s?Math.max(1,Math.ceil((c??gt.length)/Se)):Math.ceil(gt.length/Se),yt=i&&!s?gt.slice((be-1)*Se,be*Se):gt,bt=e=>{let t=Math.min(vt,Math.max(1,e));s?u?.(t):xe(t)},xt=e=>{we(e),s?(d?.(e),u?.(1)):xe(1)},Ct=K.useMemo(()=>{let e=o&&o.length>0?o:[5,10,20,50,100];return Array.from(new Set([...e,Se])).filter(e=>Number.isFinite(e)&&e>0).sort((e,t)=>e-t)},[o,Se]),wt=(e,t)=>e.id===void 0?`row-${t}`:e.id,Tt=f?p??[]:me&&ge?[{field:me,order:ge}]:[],Et=C&&(!f||!!m),Dt=e=>Et&&e.sortable!==!1&&!Ck(n,e.accessorKey),Ot=_?v??``:fe,kt=h&&(!_||!!y),At=e=>{if(_){y?.(e);return}pe(e),xe(1)},jt=(e,t)=>{if(!Ck(n,e)){if(f){m?.([{field:e,order:t}]);return}he(e),_e(t)}},Mt=e=>{if(Et&&!Ck(n,e)){if(f){let t=Tt.find(t=>t.field===e);jt(e,t?.order===`asc`?`desc`:`asc`);return}me===e?ge===`asc`?_e(`desc`):ge===`desc`&&(_e(null),he(null)):(he(e),_e(`asc`))}},Nt=(e,t)=>{e.preventDefault(),ot({x:e.clientX,y:e.clientY,columnKey:t})},Pt=at?Te.find(e=>e.accessorKey===at.columnKey):void 0,Ft=e=>{De(t=>t.filter(t=>t.accessorKey!==e)),ot(null)};(0,K.useEffect)(()=>{if(!at)return;let e=()=>ot(null);return document.addEventListener(`click`,e),()=>document.removeEventListener(`click`,e)},[at]);let It=t=>{let n=new Set;if(t&&yt.forEach((e,t)=>{let r=(_t-1)*Se+t,i=wt(e,r);n.add(i)}),ye(n),e.onSelectionChange){let t=gt.filter((e,t)=>{let r=wt(e,t);return n.has(r)});e.onSelectionChange(t)}},Lt=(t,n)=>{let r=new Set(z===`single`?[]:ve);if(n?r.add(t):r.delete(t),ye(r),e.onSelectionChange){let t=gt.filter((e,t)=>{let n=wt(e,t);return r.has(n)});e.onSelectionChange(t)}},Rt=()=>{let e=Te.filter(e=>!e.masked),t=[e.map(e=>e.header).join(`,`),...gt.map(t=>e.map(e=>JSON.stringify(t[e.accessorKey]||``)).join(`,`))].join(`
29
- `),n=new Blob([t],{type:`text/csv`}),r=window.URL.createObjectURL(n),i=document.createElement(`a`);i.href=r,i.download=`table-export.csv`,i.click(),window.URL.revokeObjectURL(r)},zt=e=>{let t=Tt.findIndex(t=>t.field===e);if(t===-1)return(0,q.jsx)(yi,{className:`h-3 w-3 ml-0.5 opacity-0 group-hover:opacity-50 transition-opacity`});let n=Tt[t].order===`asc`?gi:pi;return(0,q.jsxs)(`span`,{className:`inline-flex items-center shrink-0`,children:[(0,q.jsx)(n,{className:`h-3 w-3 ml-0.5 text-primary`}),Tt.length>1&&(0,q.jsx)(`span`,{className:`text-[10px] font-medium text-primary tabular-nums leading-none`,children:t+1})]})},Bt=(e,t)=>{if(!E)return;e.preventDefault(),e.stopPropagation(),st.current=t,ct.current=e.clientX,ut.current=null;let n=e.target.closest(`th`);n&&(lt.current=n.offsetWidth),document.addEventListener(`mousemove`,Vt),document.addEventListener(`mouseup`,Ht)},Vt=e=>{if(!st.current)return;let t=e.clientX-ct.current,n=Math.max(50,lt.current+t);ke(e=>({...e,[st.current]:n})),ut.current=n},Ht=()=>{let t=st.current,n=ut.current;st.current=null,ut.current=null,document.removeEventListener(`mousemove`,Vt),document.removeEventListener(`mouseup`,Ht),t&&n!=null&&e.onColumnResize?.(t,n)},Ut=(e,t)=>{ie&&(Ie(t),e.dataTransfer.effectAllowed=`move`)},Wt=(e,t)=>{ie&&(e.preventDefault(),e.dataTransfer.dropEffect=`move`,Re(t))},Gt=(t,n)=>{if(!ie||Fe===null)return;if(t.preventDefault(),Fe===n){Ie(null),Re(null);return}let r=[...Te],[i]=r.splice(Fe,1);r.splice(n,0,i),De(r),Ie(null),Re(null),e.onColumnsReorder&&e.onColumnsReorder(r),ne?.onReorderFields?.(r.map(e=>e.accessorKey))},Kt=()=>{Ie(null),Re(null)},qt=(e,t)=>{if(!O)return;let n=He.current;if(n?.rowIndex===e&&n?.columnKey===t)return;let r=Te.find(e=>e.accessorKey===t);if(r?.editable===!1||r?.masked)return;He.current={rowIndex:e,columnKey:t},Be({rowIndex:e,columnKey:t});let i=Ye.get(e),a=yt[e][t],o=i?.[t]??a??``;Ke(o),mt.current=i&&t in i?{had:!0,value:i[t]}:{had:!1,value:void 0}},Jt=(t=!1,n)=>{if(!ze||!t&&ze===null)return;let{rowIndex:r,columnKey:i}=ze,a=(_t-1)*Se+r,o=gt[s?r:a],c=n===void 0?Ge:n,l=new Map(Ye),u=l.get(r)||{};u[i]=c,l.set(r,u),Xe(l),e.onCellChange&&e.onCellChange(a,i,c,o),mt.current=null,He.current=null,Be(null),Ke(``)},Yt=(0,K.useRef)(Jt);(0,K.useEffect)(()=>{Yt.current=Jt});let Xt=e=>{let t=He.current,n=mt.current;if(mt.current=null,e&&t&&n){let{rowIndex:e,columnKey:r}=t;Xe(t=>{let i=t.get(e);if(!(i&&r in i)&&!n.had)return t;let a=new Map(t),o={...i||{}};return n.had?o[r]=n.value:delete o[r],Object.keys(o).length>0?a.set(e,o):a.delete(e),a})}He.current=null,Be(null),Ke(``)},Zt=()=>{ft.current=!0,Xt(!0)},Qt=e=>{if(!ze)return;let{rowIndex:t,columnKey:n}=ze;Ke(e),Xe(r=>{let i=new Map(r),a={...i.get(t)||{}};return a[n]=e,i.set(t,a),i})},$t=()=>{if(ft.current){ft.current=!1;return}Jt(!0)},en=async t=>{let n=(_t-1)*Se+t,r=gt[s?t:n],i=Ye.get(t);if(i&&Object.keys(i).length!==0){$e(!0);try{e.onRowSave&&await e.onRowSave(n,i,r);let a=new Map(Ye);a.delete(t),Xe(a),ze?.rowIndex===t&&(He.current=null,Be(null),Ke(``)),it(e=>{if(!e.has(t))return e;let n=new Set(e);return n.delete(t),n.size===0&&nt(null),n})}catch(e){console.error(`Failed to save row:`,e),nt(dk(e)),it(e=>new Set(e).add(t))}finally{$e(!1)}}},tn=e=>{let t=new Map(Ye);t.delete(e),Xe(t),it(t=>{if(!t.has(e))return t;let n=new Set(t);return n.delete(e),n.size===0&&nt(null),n})},nn=async()=>{if(Ye.size!==0){$e(!0);try{let t=Array.from(Ye.entries()).map(([e,t])=>{let n=(_t-1)*Se+e;return{rowIndex:n,changes:t,row:gt[s?e:n]}});e.onBatchSave&&await e.onBatchSave(t),Xe(new Map),He.current=null,Be(null),Ke(``),it(new Set),nt(null)}catch(e){console.error(`Failed to save batch:`,e),nt(dk(e)),it(new Set(Ye.keys()))}finally{$e(!1)}}},rn=()=>{Xe(new Map),it(new Set),nt(null)},an=(e,t,n)=>{if((e.ctrlKey||e.metaKey)&&e.key===`c`&&!ze){if(e.preventDefault(),Te.find(e=>e.accessorKey===n)?.masked)return;let r=(_t-1)*Se+t,i=gt[s?t:r];if(i){let e=i[n],t=e==null?``:String(e);navigator.clipboard.writeText(t).catch(()=>{})}return}O&&Te.find(e=>e.accessorKey===n)?.editable!==!1&&e.key===`Enter`&&!ze&&(e.preventDefault(),qt(t,n))},on=e=>{e.key===`Enter`?(e.preventDefault(),ft.current=!0,Jt(!0)):e.key===`Escape`&&(e.preventDefault(),Zt())};(0,K.useEffect)(()=>{ze&&dt.current&&(dt.current.focus(),dt.current.select())},[ze]),(0,K.useEffect)(()=>{if(!ze)return;let e=e=>{let t=pt.current;if(!t)return;let n=e.target;if(n&&!t.contains(n)){if(n instanceof Element){let e=n.closest(`[data-radix-popper-content-wrapper]`);if(e&&!e.contains(t))return;let r=n.closest(`[role="dialog"],[role="alertdialog"]`);if(r&&!r.contains(t))return}Yt.current(!0)}};return document.addEventListener(`pointerdown`,e,!0),()=>document.removeEventListener(`pointerdown`,e,!0)},[ze]),(0,K.useEffect)(()=>()=>{document.removeEventListener(`mousemove`,Vt),document.removeEventListener(`mouseup`,Ht)},[]);let sn=yt.length>0&&yt.every((e,t)=>{let n=(_t-1)*Se+t,r=wt(e,n);return ve.has(r)}),cn=yt.some((e,t)=>{let n=(_t-1)*Se+t,r=wt(e,n);return ve.has(r)})&&!sn,ln=Ye.size>0,un=kt||w||x&&B&&ve.size>0||ln;return(0,q.jsxs)(`div`,{className:`flex flex-col h-full gap-2 sm:gap-4 ${N||``}`,children:[un&&(0,q.jsxs)(`div`,{className:`flex flex-col sm:flex-row items-stretch sm:items-center justify-between gap-2 sm:gap-4 flex-none`,children:[(0,q.jsx)(`div`,{className:`flex items-center gap-2 flex-1`,children:kt&&(0,q.jsxs)(`div`,{className:`relative w-full sm:max-w-sm flex-1`,children:[(0,q.jsx)(ca,{className:`absolute left-2 top-1/2 transform -translate-y-1/2 h-4 w-4 text-muted-foreground`}),(0,q.jsx)(Fv,{placeholder:ae(`table.search`),value:Ot,onChange:e=>At(e.target.value),className:`pl-8`})]})}),(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[ln&&(0,q.jsxs)(q.Fragment,{children:[tt&&(0,q.jsxs)(`div`,{role:`alert`,className:`flex items-center gap-1.5 text-sm text-destructive max-w-[16rem] sm:max-w-sm`,children:[(0,q.jsx)(bi,{className:`h-4 w-4 flex-none`}),(0,q.jsxs)(`span`,{className:`truncate`,title:`${ae(`table.saveFailed`)}: ${tt}`,children:[ae(`table.saveFailed`),`: `,tt]})]}),(0,q.jsx)(`div`,{className:`text-sm text-muted-foreground`,children:ae(`table.modified`,{count:Ye.size})}),(0,q.jsxs)(X,{variant:`outline`,size:`sm`,onClick:rn,disabled:Qe,children:[(0,q.jsx)(wa,{className:`h-4 w-4 mr-2`}),ae(`table.cancelAll`)]}),(0,q.jsxs)(X,{variant:`default`,size:`sm`,onClick:nn,disabled:Qe,children:[(0,q.jsx)(sa,{className:`h-4 w-4 mr-2`}),ae(`table.saveAll`,{count:Ye.size})]})]}),w&&(0,q.jsxs)(X,{variant:`outline`,size:`sm`,onClick:Rt,disabled:gt.length===0,children:[(0,q.jsx)(ji,{className:`h-4 w-4 mr-2`}),ae(`table.exportCSV`)]}),x&&B&&ve.size>0&&(0,q.jsx)(`div`,{className:`text-sm text-muted-foreground`,children:ae(`table.selected`,{count:ve.size})})]})]}),(0,q.jsx)(`div`,{className:J(`relative bg-background`,R?`overflow-visible`:`flex-1 min-h-0 overflow-auto [-webkit-overflow-scrolling:touch]`,!ee&&`rounded-md border shadow-[inset_-8px_0_8px_-8px_rgba(0,0,0,0.08)]`),children:(0,q.jsxs)(Pb,{containerClassName:`overflow-visible`,children:[t&&(0,q.jsx)(Vb,{children:t}),(0,q.jsx)(Fb,{className:`sticky top-0 bg-background z-10`,children:(0,q.jsxs)(Rb,{ref:Ae,children:[B&&(0,q.jsx)(zb,{className:J(`w-10 bg-background px-3`,F>0&&`sticky left-0 z-20`),children:z===`multiple`&&(0,q.jsx)(ip,{checked:sn?!0:cn?`indeterminate`:!1,onCheckedChange:It})}),I&&(0,q.jsx)(zb,{className:J(`w-10 bg-background text-center px-3`,F>0&&`sticky z-20`),style:F>0?{left:je?.[+!!B]??(B?40:0)}:void 0,children:(0,q.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`#`})}),Te.map((e,t)=>{let n=e.fitContent===!0&&!Oe[e.accessorKey]&&!e.width,r=n?`1%`:Oe[e.accessorKey]||e.width||de[e.accessorKey],i=Fe===t,a=Le===t,o=F>0&&t<F,s=typeof e.className==`string`&&/\bsticky\b/.test(e.className)&&/\bright-0\b/.test(e.className),c=o?je?.[+!!B+ +!!I+t]??Te.slice(0,t).reduce((e,t,n)=>{if(n<F){let n=Oe[t.accessorKey]||t.width||de[t.accessorKey];return e+(typeof n==`number`?n:n&&parseInt(String(n),10)||150)}return e},(B?40:0)+(I?40:0)):void 0;return(0,q.jsx)(zb,{className:J(e.className,Dt(e)&&`cursor-pointer select-none`,i&&`opacity-50`,a&&`border-l-2 border-primary`,e.align===`right`&&`text-right`,e.align===`center`&&`text-center`,n&&`whitespace-nowrap`,`group bg-background`,!s&&`relative`,s&&`sticky right-0 z-20`,o&&`sticky z-20`,o&&t===F-1&&`border-r-2 border-border shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]`),style:{width:r,minWidth:r,...o&&{left:c}},draggable:ie,onDragStart:e=>Ut(e,t),onDragOver:e=>Wt(e,t),onDrop:e=>Gt(e,t),onDragEnd:Kt,onClick:()=>Dt(e)&&Mt(e.accessorKey),onContextMenu:t=>Nt(t,e.accessorKey),children:(0,q.jsxs)(`div`,{className:J(`flex items-center`,e.align===`right`?`justify-end`:`justify-between`),children:[(0,q.jsxs)(`div`,{className:`flex items-center gap-1`,children:[ie&&(0,q.jsx)(Hi,{className:`h-4 w-4 opacity-0 group-hover:opacity-50 cursor-grab active:cursor-grabbing shrink-0`}),e.headerIcon&&(0,q.jsx)(`span`,{className:`text-muted-foreground shrink-0`,children:e.headerIcon}),(0,q.jsx)(`span`,{className:`text-xs font-medium text-muted-foreground whitespace-nowrap truncate`,children:e.header}),Dt(e)&&zt(e.accessorKey),V&&(0,q.jsx)(`button`,{type:`button`,onClick:t=>{t.stopPropagation(),ne.onEditColumn(e.accessorKey)},title:ne.editColumnLabel??`Edit field`,"aria-label":ne.editColumnLabel??`Edit field`,"data-testid":`grid-edit-column-${e.accessorKey}`,className:`ml-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded text-muted-foreground/50 opacity-0 transition-opacity hover:bg-muted hover:text-foreground group-hover:opacity-100`,children:(0,q.jsx)(ma,{className:`h-3 w-3`})})]}),E&&e.resizable!==!1&&(0,q.jsx)(`div`,{className:`absolute right-0 top-0 h-full w-1 cursor-col-resize hover:bg-primary opacity-0 hover:opacity-100 transition-opacity`,onMouseDown:t=>Bt(t,e.accessorKey),onClick:e=>e.stopPropagation()})]})},e.accessorKey)}),T&&(0,q.jsx)(zb,{className:`w-24 text-right bg-background`,children:ae(`common.actions`)}),re&&(0,q.jsx)(zb,{className:`w-10 bg-background px-1 text-center`,children:(0,q.jsx)(`button`,{type:`button`,onClick:ne.onAddColumn,title:ne.addColumnLabel??`Add field`,"aria-label":ne.addColumnLabel??`Add field`,"data-testid":`grid-add-column`,className:`inline-flex h-6 w-6 items-center justify-center rounded text-muted-foreground transition-colors hover:bg-muted hover:text-foreground`,children:(0,q.jsx)(ea,{className:`h-4 w-4`})})})]})}),(0,q.jsx)(Ib,{children:yt.length===0?(0,q.jsx)(Rb,{className:`hover:bg-transparent`,children:(0,q.jsx)(Bb,{colSpan:Te.length+ +!!B+ +!!I+ +!!T+ +!!re,className:`h-48 text-center text-muted-foreground border-0`,children:(0,q.jsxs)(`div`,{className:`flex flex-col items-center justify-center gap-3`,children:[(0,q.jsx)(ca,{className:`h-8 w-8 text-muted-foreground/50`}),(0,q.jsxs)(`div`,{className:`space-y-1`,children:[(0,q.jsx)(`p`,{children:ae(`table.noResults`)}),(0,q.jsx)(`p`,{className:`text-xs text-muted-foreground/50`,children:ae(`table.noResultsHint`)})]}),e.emptyAction?(0,q.jsx)(Pe,{schema:Je(e.emptyAction)}):null]})})}):(0,q.jsxs)(q.Fragment,{children:[yt.map((t,n)=>{let r=(_t-1)*Se+n,i=wt(t,r),a=ve.has(i),o=Ye.has(n),s=Ye.get(n)||{};return(0,q.jsxs)(Rb,{"data-state":a?`selected`:void 0,className:J(`bg-background border-b border-border/60 group/row transition-colors`,`hover:bg-muted/40`,`data-[state=selected]:bg-primary/5 data-[state=selected]:hover:bg-primary/10`,`focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-inset`,e.onRowClick&&`cursor-pointer`,o&&!rt.has(n)&&`bg-amber-50 dark:bg-amber-950/20`,rt.has(n)&&`bg-destructive/10 dark:bg-destructive/15 ring-1 ring-inset ring-destructive/40`,j&&j(t,n)),style:M?M(t,n):void 0,onClick:n=>{if(e.onRowClick&&!n.defaultPrevented){let r=n.target;if(r.closest(`button`)||r.closest(`a`)||r.closest(`input, select, textarea, label`)||r.closest(`[role="checkbox"]`)||r.closest(`[role="menu"]`)||r.closest(`[role="menuitem"]`)||r.closest(`[role="menuitemcheckbox"]`)||r.closest(`[role="menuitemradio"]`)||r.closest(`[role="dialog"]`)||r.closest(`[role="alertdialog"]`)||r.closest(`[role="listbox"]`)||r.closest(`[role="option"]`)||r.closest(`[role="tab"]`)||r.closest(`[data-radix-popper-content-wrapper]`))return;e.onRowClick(t,n)}},children:[B&&(0,q.jsx)(Bb,{className:J(P,`px-3`,F>0&&`sticky left-0 z-10 bg-background`,A===`hover`&&`relative`),children:A===`hover`?(0,q.jsx)(`div`,{className:J(`transition-opacity`,a?`opacity-100`:`opacity-0 group-hover/row:opacity-100`),children:(0,q.jsx)(ip,{checked:a,onCheckedChange:e=>Lt(i,e)})}):(0,q.jsx)(ip,{checked:a,onCheckedChange:e=>Lt(i,e)})}),I&&(0,q.jsxs)(Bb,{className:J(`text-center w-10 relative`,P,F>0&&`sticky z-10 bg-background`),style:F>0?{left:je?.[+!!B]??(B?40:0)}:void 0,children:[(0,q.jsx)(`span`,{className:J(`text-xs text-muted-foreground tabular-nums select-none`,!B&&e.onRowClick&&`group-hover/row:invisible`),children:r+1}),!B&&e.onRowClick&&(0,q.jsxs)(`button`,{type:`button`,className:`absolute inset-0 hidden group-hover/row:flex items-center justify-center gap-0.5 text-xs font-medium text-primary hover:text-primary/80`,"data-testid":`row-expand-button`,onClick:n=>{n.stopPropagation(),e.onRowClick?.(t,n)},title:`Open record`,children:[(0,q.jsx)(`span`,{children:ae(`table.open`)}),(0,q.jsx)(hi,{className:`h-3 w-3`})]})]}),Te.map((r,i)=>{let a=r.fitContent===!0&&!Oe[r.accessorKey]&&!r.width,c=r.wrap===!0&&!a,l=a?`1%`:Oe[r.accessorKey]||r.width||de[r.accessorKey],u=t[r.accessorKey],d=s[r.accessorKey]!==void 0,f=d?s[r.accessorKey]:u,p=ze?.rowIndex===n&&ze?.columnKey===r.accessorKey,m=O&&r.editable!==!1&&!r.masked,h=F>0&&i<F,g=h?je?.[+!!B+ +!!I+i]??Te.slice(0,i).reduce((e,t,n)=>{if(n<F){let n=Oe[t.accessorKey]||t.width||de[t.accessorKey];return e+(typeof n==`number`?n:n&&parseInt(String(n),10)||150)}return e},(B?40:0)+(I?40:0)):void 0;return(0,q.jsx)(Bb,{className:J(r.cellClassName,r.align===`right`&&`text-right`,r.align===`center`&&`text-center`,a?`whitespace-nowrap`:`overflow-hidden`,m&&!p&&`cursor-text hover:bg-muted/50`,d&&`font-semibold text-amber-700 dark:text-amber-400`,h&&`sticky z-10 bg-background`,h&&i===F-1&&`border-r-2 border-border shadow-[2px_0_4px_-2px_rgba(0,0,0,0.1)]`),style:{width:l,minWidth:a?void 0:l,maxWidth:a?void 0:l,...h&&{left:g}},onDoubleClick:e=>{m&&!k&&(e.stopPropagation(),qt(n,r.accessorKey))},onClick:e=>{m&&k&&(e.stopPropagation(),qt(n,r.accessorKey))},onKeyDown:e=>an(e,n,r.accessorKey),tabIndex:0,children:p?(()=>{let i=r.type,a=e.renderCellEditor;if(typeof a==`function`){let e=a({column:r,row:t,pendingRow:o?Ze.of(t,n):t,value:Ge,stage:Qt,commit:e=>Jt(!0,e),cancel:Zt});if(e!=null)return(0,q.jsx)(`div`,{ref:e=>{pt.current=e},className:`w-full`,onKeyDown:e=>{e.currentTarget.contains(e.target)&&(e.key===`Enter`&&e.target.tagName===`INPUT`?(e.preventDefault(),Jt(!0)):e.key===`Escape`&&(e.preventDefault(),Xt(!0)))},children:e})}if(i===`date`||i===`datetime`){let e=i===`datetime`,t=et(Ge),n=(0,q.jsx)(Fv,{ref:dt,type:e?`datetime-local`:`date`,value:t?``:e?Ee(Ge):Ce(Ge),onChange:t=>Ke(e?Ue(t.target.value):t.target.value),onKeyDown:on,onBlur:$t,"aria-invalid":t||void 0,"aria-describedby":t?H:void 0,className:`h-8 px-2 py-1`});return t?(0,q.jsxs)(`div`,{className:`space-y-1`,children:[n,(0,q.jsx)(`p`,{id:H,className:`text-xs text-destructive`,"data-testid":e?`datetime-impossible-day`:`date-impossible-day`,children:ae(e?`fields.dateTime.impossibleDay`:`fields.date.impossibleDay`,{value:String(Ge)})})]}):n}return i&&ck.has(i)?(0,q.jsx)(Fv,{ref:dt,type:`number`,value:Ge??``,onChange:e=>Ke(e.target.value),onKeyDown:on,onBlur:$t,className:`h-8 px-2 py-1`}):typeof Ge==`object`&&Ge?(0,q.jsx)(Fv,{ref:dt,value:lk(Ge),readOnly:!0,onKeyDown:on,onBlur:Zt,className:`h-8 px-2 py-1 text-muted-foreground cursor-default`,title:lk(Ge)}):(0,q.jsx)(Fv,{ref:dt,value:Ge,onChange:e=>Ke(e.target.value),onKeyDown:on,onBlur:$t,className:`h-8 px-2 py-1`})})():(0,q.jsx)(`div`,{className:a?`w-full whitespace-nowrap`:c?`w-full whitespace-normal break-words`:`truncate w-full`,title:!a&&!r.masked&&f!=null&&typeof f!=`object`?String(f):void 0,children:typeof r.cell==`function`?r.cell(f,t):typeof f==`object`&&f?String(f):se(f)})},i)}),T&&(0,q.jsx)(Bb,{className:J(`text-right`,P),children:(0,q.jsx)(`div`,{className:`flex items-center justify-end gap-1`,children:o&&(e.onRowSave||e.onBatchSave)?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(X,{variant:`ghost`,size:`icon`,onClick:()=>tn(n),disabled:Qe,title:`Cancel changes`,children:(0,q.jsx)(wa,{className:`h-4 w-4`})}),(0,q.jsx)(X,{variant:`ghost`,size:`icon`,onClick:()=>en(n),disabled:Qe,title:`Save row`,children:(0,q.jsx)(sa,{className:`h-4 w-4 text-green-600`})})]}):(0,q.jsx)(vk,{schema:e,row:t,t:ae})})}),re&&(0,q.jsx)(Bb,{"aria-hidden":!0,className:`w-10`})]},i)}),L&&(0,q.jsx)(Rb,{className:`hover:bg-muted/30 cursor-pointer border-b border-border`,"data-testid":`add-record-row`,onClick:()=>e.onAddRecord?.(),children:(0,q.jsx)(Bb,{colSpan:Te.length+ +!!B+ +!!I+ +!!T+ +!!re,className:`h-9 px-3 py-1.5`,children:(0,q.jsxs)(`span`,{className:`flex items-center gap-1.5 text-muted-foreground text-sm hover:text-foreground transition-colors`,children:[(0,q.jsx)(ea,{className:`h-3.5 w-3.5`}),ae(`table.addRecord`)]})})})]})})]})}),i&&gt.length>0&&vt>1&&(0,q.jsxs)(`div`,{className:`flex flex-col sm:flex-row items-center justify-between gap-2 px-3 sm:px-4 py-2`,children:[(0,q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,q.jsxs)(`span`,{className:`text-xs sm:text-sm text-muted-foreground`,children:[ae(`table.rowsPerPage`),`:`]}),(0,q.jsxs)(yy,{value:Se.toString(),onValueChange:e=>xt(Number(e)),children:[(0,q.jsx)(xy,{className:`w-20`,children:(0,q.jsx)(by,{})}),(0,q.jsx)(wy,{children:Ct.map(e=>(0,q.jsx)(Ey,{value:e.toString(),children:e},e))})]})]}),(0,q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,q.jsx)(`span`,{className:`text-xs sm:text-sm text-muted-foreground`,children:ae(`table.pageInfo`,{current:_t,total:vt})}),(0,q.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,q.jsx)(X,{variant:`outline`,size:`icon`,onClick:()=>bt(1),disabled:_t===1,children:(0,q.jsx)(_i,{className:`h-4 w-4`})}),(0,q.jsx)(X,{variant:`outline`,size:`icon`,onClick:()=>bt(_t-1),disabled:_t===1,children:(0,q.jsx)(mi,{className:`h-4 w-4`})}),(0,q.jsx)(X,{variant:`outline`,size:`icon`,onClick:()=>bt(_t+1),disabled:_t===vt,children:(0,q.jsx)(hi,{className:`h-4 w-4`})}),(0,q.jsx)(X,{variant:`outline`,size:`icon`,onClick:()=>bt(vt),disabled:_t===vt,children:(0,q.jsx)(vi,{className:`h-4 w-4`})})]})]})]}),at&&(0,q.jsxs)(`div`,{className:`fixed z-50 min-w-[160px] rounded-md border bg-popover p-1 shadow-md`,style:{left:at.x,top:at.y},"data-testid":`column-context-menu`,onClick:e=>e.stopPropagation(),children:[Pt&&Dt(Pt)&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`button`,{type:`button`,className:`flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-sm hover:bg-accent hover:text-accent-foreground cursor-pointer`,onClick:()=>{jt(at.columnKey,`asc`),ot(null)},children:[(0,q.jsx)(gi,{className:`h-3.5 w-3.5`}),ae(`table.sortAsc`)]}),(0,q.jsxs)(`button`,{type:`button`,className:`flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-sm hover:bg-accent hover:text-accent-foreground cursor-pointer`,onClick:()=>{jt(at.columnKey,`desc`),ot(null)},children:[(0,q.jsx)(pi,{className:`h-3.5 w-3.5`}),ae(`table.sortDesc`)]}),(0,q.jsx)(`div`,{className:`my-1 h-px bg-border`})]}),(0,q.jsxs)(`button`,{type:`button`,className:`flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-sm hover:bg-accent hover:text-accent-foreground cursor-pointer`,onClick:()=>Ft(at.columnKey),children:[(0,q.jsx)(wa,{className:`h-3.5 w-3.5`}),ae(`table.hideColumn`)]})]})]})},{namespace:`ui`,label:`Data Table`,icon:`table`,inputs:[{name:`caption`,type:`string`},{name:`columns`,type:`array`,description:`Array of { header, accessorKey, className, width, sortable, filterable, resizable }`,required:!0},{name:`data`,type:`array`,description:`Array of data objects`,required:!0},{name:`pagination`,type:`boolean`},{name:`pageSize`,type:`number`},{name:`searchable`,type:`boolean`},{name:`selectable`,type:`boolean`},{name:`sortable`,type:`boolean`},{name:`exportable`,type:`boolean`},{name:`rowActions`,type:`boolean`},{name:`resizableColumns`,type:`boolean`},{name:`reorderableColumns`,type:`boolean`},{name:`className`,type:`string`}],defaultProps:{caption:`Enterprise Data Table`,pagination:!0,pageSize:10,searchable:!0,selectable:!0,sortable:!0,exportable:!0,rowActions:!0,resizableColumns:!0,reorderableColumns:!0,columns:[{header:`ID`,accessorKey:`id`,width:`80px`},{header:`Name`,accessorKey:`name`},{header:`Email`,accessorKey:`email`},{header:`Status`,accessorKey:`status`},{header:`Role`,accessorKey:`role`}],data:[{id:1,name:`John Doe`,email:`john@example.com`,status:`Active`,role:`Admin`},{id:2,name:`Jane Smith`,email:`jane@example.com`,status:`Active`,role:`User`},{id:3,name:`Bob Johnson`,email:`bob@example.com`,status:`Inactive`,role:`User`},{id:4,name:`Alice Williams`,email:`alice@example.com`,status:`Active`,role:`Manager`},{id:5,name:`Charlie Brown`,email:`charlie@example.com`,status:`Active`,role:`User`},{id:6,name:`Diana Prince`,email:`diana@example.com`,status:`Active`,role:`Admin`},{id:7,name:`Ethan Hunt`,email:`ethan@example.com`,status:`Inactive`,role:`User`},{id:8,name:`Fiona Gallagher`,email:`fiona@example.com`,status:`Active`,role:`User`},{id:9,name:`George Wilson`,email:`george@example.com`,status:`Active`,role:`Manager`},{id:10,name:`Hannah Montana`,email:`hannah@example.com`,status:`Active`,role:`User`},{id:11,name:`Ivan Drago`,email:`ivan@example.com`,status:`Inactive`,role:`User`},{id:12,name:`Julia Roberts`,email:`julia@example.com`,status:`Active`,role:`Admin`}]}});function wk(e){return e?.autoTrigger===!0}function Tk(e){return`auto-trigger-refused:${e.name??e.label??``}`}function Ek(e,t){Ot.warning(t,{id:Tk(e)})}function Dk(e,t,n){let{t:r}=Ct(),i=(0,K.useRef)(!1),a=(0,K.useRef)(!1),o=wk(e),s=V(e.visible)&&!t;(0,K.useEffect)(()=>{if(o&&!i.current){if(s){a.current||(a.current=!0,Ek(e,r(`actions.notAvailableHere`,{defaultValue:`"{{action}}" is not available on the current page.`,action:e.label||e.name||``})));return}i.current=!0,n()}},[o,s,n,r,e])}var Ok=(0,K.forwardRef)(({schema:e,className:t,context:n,...r},i)=>{let{"data-obj-id":a,"data-obj-type":o,style:s,data:c,disabled:l,...u}=r,{execute:d}=Le(),[f,p]=(0,K.useState)(!1),m=ee(c),h=I(pt(e.visible),m,{throwOnError:!0,label:`action "${e.name??e.label??`action:button`}" (visible)`}),g=I(pt(e.disabled),m),_=I(pt(e.enabled),m),v=Ex(e.icon),y=e.variant===`primary`?`default`:e.variant||`default`,b=e.size===`md`?`default`:e.size||`default`,x=(0,K.useCallback)(async()=>{if(!f){p(!0);try{if(typeof e.onClick==`function`){await e.onClick();return}let t=Hx(e,`action:button`),r=Array.isArray(e.params)?{actionParams:e.params,params:t}:{params:t},i={type:e.actionType,name:e.name,label:e.label,description:e.description,target:e.target,openIn:e.openIn,endpoint:e.endpoint,method:e.method,...r,bodyExtra:e.bodyExtra,bodyShape:e.bodyShape,operation:e.operation,patch:e.patch,confirmText:e.confirmText,successMessage:e.successMessage,errorMessage:e.errorMessage,refreshAfter:e.refreshAfter,undoable:e.undoable,recordIdField:e.recordIdField,locations:e.locations,toast:e.toast,resultDialog:e.resultDialog,onSuccess:e.onSuccess,objectName:e.objectName};await d({...i,...n})}finally{p(!1)}}},[e,d,f,n]);return Dk(e,h,x),V(e.visible)&&!h?null:(0,q.jsxs)(X,{ref:i,type:`button`,variant:y,size:b,className:J(e.className,t),disabled:l||(V(e.disabled)?g:V(e.enabled)?!_:!1)||f,onClick:x,..._T(u),"data-obj-id":a,"data-obj-type":o,style:s,children:[f&&(0,q.jsx)(qi,{className:`mr-2 h-4 w-4 animate-spin`}),!f&&v&&(0,q.jsx)(v,{className:J(`h-4 w-4`,e.label&&`mr-2`)}),e.label]})});Ok.displayName=`ActionButtonRenderer`,U.register(`button`,Ok,{namespace:`action`,skipFallback:!0,label:`Action Button`,inputs:[{name:`name`,type:`string`},{name:`label`,type:`string`},{name:`icon`,type:`string`},{name:`actionType`,type:`enum`,enum:[`script`,`url`,`modal`,`flow`,`api`]},{name:`target`,type:`string`},{name:`variant`,type:`enum`,enum:[`default`,`primary`,`secondary`,`destructive`,`outline`,`ghost`]},{name:`size`,type:`enum`,enum:[`sm`,`md`,`lg`]},{name:`className`,type:`string`}],defaultProps:{label:`Action`,actionType:`script`,variant:`default`,size:`md`}});var kk=(0,K.forwardRef)(({schema:e,className:t,context:n,...r},i)=>{let{"data-obj-id":a,"data-obj-type":o,style:s,data:c,disabled:l,...u}=r,{execute:d}=Le(),[f,p]=(0,K.useState)(!1),m=ee(c),h=I(pt(e.visible),m),g=I(pt(e.disabled),m),_=I(pt(e.enabled),m),v=Ex(e.icon),y=e.variant===`primary`?`default`:e.variant||`ghost`,b=(0,K.useCallback)(async()=>{if(!f){p(!0);try{if(typeof e.onClick==`function`){await e.onClick();return}let t=Hx(e,`action:icon`),r=Array.isArray(e.params)?{actionParams:e.params,params:t}:{params:t},i={type:e.actionType,name:e.name,label:e.label,description:e.description,target:e.target,openIn:e.openIn,endpoint:e.endpoint,method:e.method,...r,bodyExtra:e.bodyExtra,bodyShape:e.bodyShape,operation:e.operation,patch:e.patch,confirmText:e.confirmText,successMessage:e.successMessage,errorMessage:e.errorMessage,refreshAfter:e.refreshAfter,locations:e.locations,toast:e.toast,resultDialog:e.resultDialog,onSuccess:e.onSuccess,objectName:e.objectName};await d({...i,...n})}finally{p(!1)}}},[e,d,f,n]);if(Dk(e,h,b),V(e.visible)&&!h)return null;let x=(0,q.jsx)(X,{ref:i,type:`button`,variant:y,size:`icon`,className:J(`h-8 w-8`,e.className,t),disabled:l||(V(e.disabled)?g:V(e.enabled)?!_:!1)||f,onClick:b,"aria-label":e.label||e.name,..._T(u),"data-obj-id":a,"data-obj-type":o,style:s,children:f?(0,q.jsx)(qi,{className:`h-4 w-4 animate-spin`}):v?(0,q.jsx)(v,{className:`h-4 w-4`}):(0,q.jsx)(`span`,{className:`text-xs`,children:e.label?.charAt(0)||`?`})});return e.label||e.description?(0,q.jsx)(Wy,{delayDuration:300,children:(0,q.jsxs)(Gy,{children:[(0,q.jsx)(Ky,{asChild:!0,children:x}),(0,q.jsx)(qy,{children:(0,q.jsx)(`p`,{children:e.label||e.description})})]})}):x});kk.displayName=`ActionIconRenderer`,U.register(`icon`,kk,{namespace:`action`,skipFallback:!0,label:`Action Icon`,inputs:[{name:`name`,type:`string`},{name:`label`,type:`string`},{name:`icon`,type:`string`},{name:`actionType`,type:`enum`,enum:[`script`,`url`,`modal`,`flow`,`api`]},{name:`target`,type:`string`},{name:`variant`,type:`enum`,enum:[`default`,`secondary`,`destructive`,`outline`,`ghost`]},{name:`className`,type:`string`}],defaultProps:{icon:`play`,actionType:`script`,variant:`ghost`}});function Ak(){let{t:e}=Ct(),t=e(`detail.moreActions`);return!t||t===`detail.moreActions`?`More actions`:t}function jk(e,t){let n=ee(t);return{recordData:n,isVisible:I(pt(e.visible),n,{throwOnError:!0,label:`action "${e.name??e.label??`action:menu item`}" (visible)`})}}var Mk=({action:e,onExecute:t,record:n})=>{let{recordData:r,isVisible:i}=jk(e,n),a=I(pt(e.disabled),r),o=I(pt(e.enabled),r),s=(0,K.useMemo)(()=>{let t=Ex(e.icon);return t?(0,q.jsx)(t,{className:`mr-2 h-4 w-4`}):null},[e.icon]);return V(e.visible)&&!i?null:(0,q.jsxs)(ng,{disabled:V(e.disabled)?a:V(e.enabled)?!o:!1,onSelect:n=>{n.preventDefault(),t(e)},className:J(e.variant===`destructive`&&`text-destructive focus:text-destructive`,e.className),children:[s,(0,q.jsx)(`span`,{children:e.label||e.name})]})};Mk.displayName=`ActionMenuItem`;var Nk=({action:e,onExecute:t,record:n})=>{let{isVisible:r}=jk(e,n);return Dk(e,r,(0,K.useCallback)(()=>t(e),[e,t])),null};Nk.displayName=`ActionAutoTrigger`;var Pk=(0,K.forwardRef)(({schema:e,className:t,...n},r)=>{let{"data-obj-id":i,"data-obj-type":a,style:o,data:s,...c}=n,{execute:l}=Le(),u=v(),[d,f]=(0,K.useState)(!1),p=Ak(),m=ee(s),h=I(pt(e.visible),m,{throwOnError:!0,label:`action:menu "${e.label??e.icon??`menu`}" (visible)`}),g=Ex(e.icon)||Mi,_=e.variant||`ghost`,y=e.size||`icon`,b=(0,K.useCallback)(async e=>{f(!0);try{if(typeof e.onClick==`function`){await e.onClick();return}let t=Wx(e,u),n=Array.isArray(e.params)?void 0:Gx(e,e.type,`action:menu`),r=Array.isArray(e.params)?{actionParams:e.params,params:t}:{params:t===void 0?n:t};await l({type:e.type,name:e.name,label:e.label,description:e.description,target:e.target,openIn:e.openIn,endpoint:e.endpoint,method:e.method,...r,bodyExtra:e.bodyExtra,bodyShape:e.bodyShape,operation:e.operation,patch:e.patch,confirmText:e.confirmText,successMessage:e.successMessage,errorMessage:e.errorMessage,refreshAfter:e.refreshAfter,locations:e.locations,toast:e.toast,resultDialog:e.resultDialog,onSuccess:e.onSuccess,objectName:e.objectName})}finally{f(!1)}},[l,u]);if(e.visible&&!h)return null;let x=e.actions||[];return x.length===0?null:(0,q.jsxs)(q.Fragment,{children:[x.map((e,t)=>(0,q.jsx)(Nk,{action:e,onExecute:b,record:s},`auto-trigger:${e.name||t}`)),(0,q.jsxs)(Yh,{children:[(0,q.jsx)(Xh,{asChild:!0,children:(0,q.jsx)(X,{ref:r,type:`button`,variant:_,size:y,className:J(y===`icon`&&`h-8 w-8`,e.className,t),disabled:d,"aria-label":e.label||p,...c,"data-obj-id":i,"data-obj-type":a,style:o,children:d?(0,q.jsx)(qi,{className:`h-4 w-4 animate-spin`}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(g,{className:J(`h-4 w-4`,e.label&&`mr-2`)}),e.label&&(0,q.jsx)(`span`,{children:e.label})]})})}),(0,q.jsx)(tg,{align:`end`,children:x.map((e,t)=>{let n=e.tags?.includes(`separator-before`)&&t>0;return(0,q.jsxs)(K.Fragment,{children:[n&&(0,q.jsx)(og,{}),(0,q.jsx)(Mk,{action:e,onExecute:b,record:s})]},e.name||t)})})]})]})});Pk.displayName=`ActionMenuRenderer`,U.register(`menu`,Pk,{namespace:`action`,skipFallback:!0,label:`Action Menu`,inputs:[{name:`label`,type:`string`},{name:`icon`,type:`string`},{name:`actions`,type:`object`},{name:`variant`,type:`enum`,enum:[`default`,`secondary`,`outline`,`ghost`]},{name:`className`,type:`string`}],defaultProps:{variant:`ghost`,actions:[]}});var Fk=({action:e,variant:t,size:n,onExecute:r,record:i})=>{let[a,o]=(0,K.useState)(!1),s=ee(i),c=I(pt(e.visible),s),l=I(pt(e.disabled),s),u=I(pt(e.enabled),s),d=Ex(e.icon),f=e.variant===`primary`?`default`:e.variant||t||`outline`,p=e.size===`md`?`default`:e.size||n||`sm`,m=(0,K.useCallback)(async()=>{if(!a){o(!0);try{await r(e)}finally{o(!1)}}},[e,r,a]);return V(e.visible)&&!c?null:(0,q.jsxs)(X,{type:`button`,variant:f,size:p,className:e.className,disabled:(V(e.disabled)?l:V(e.enabled)?!u:!1)||a,onClick:m,children:[a&&(0,q.jsx)(qi,{className:`mr-2 h-4 w-4 animate-spin`}),!a&&d&&(0,q.jsx)(d,{className:J(`h-4 w-4`,e.label&&`mr-2`)}),e.label]})};Fk.displayName=`InlineActionButton`;var Ik=({action:e,index:t,onSelect:n,record:r})=>{let i=ee(r),a=I(pt(e.visible),i),o=I(pt(e.disabled),i),s=I(pt(e.enabled),i);if(V(e.visible)&&!a)return null;let c=Ex(e.icon),l=V(e.disabled)?o:V(e.enabled)?!s:!1,u=e.tags?.includes(`separator-before`)&&t>0;return(0,q.jsxs)(q.Fragment,{children:[u&&(0,q.jsx)(og,{}),(0,q.jsxs)(ng,{disabled:l,onSelect:async t=>{t.preventDefault(),!l&&await n(e)},className:J(e.variant===`destructive`&&`text-destructive focus:text-destructive`,e.className),children:[c&&(0,q.jsx)(c,{className:`mr-2 h-4 w-4`}),(0,q.jsx)(`span`,{children:e.label||e.name})]})]})};Ik.displayName=`DropdownActionItem`;var Lk=(0,K.forwardRef)(({schema:e,className:t,...n},r)=>{let{"data-obj-id":i,"data-obj-type":a,style:o,data:s,...c}=n,{execute:l}=Le(),u=v(),[d,f]=(0,K.useState)(!1),p=ee(s),m=I(pt(e.visible),p),h=(e.actions||[]).filter(t=>j(t,e.location)),g=(0,K.useCallback)(async e=>{if(typeof e.onClick==`function`){await e.onClick();return}let t=Wx(e,u),n=Array.isArray(e.params)?void 0:Gx(e,e.type,`action:group`),r=Array.isArray(e.params)?{actionParams:e.params,params:t}:{params:t===void 0?n:t};await l({type:e.type,name:e.name,label:e.label,description:e.description,target:e.target,openIn:e.openIn,endpoint:e.endpoint,method:e.method,...r,bodyExtra:e.bodyExtra,bodyShape:e.bodyShape,operation:e.operation,patch:e.patch,confirmText:e.confirmText,successMessage:e.successMessage,errorMessage:e.errorMessage,refreshAfter:e.refreshAfter,locations:e.locations,toast:e.toast,resultDialog:e.resultDialog,onSuccess:e.onSuccess,objectName:e.objectName})},[l,u]),_=(0,K.useCallback)(async e=>{f(!0);try{await g(e)}finally{f(!1)}},[g]);if(e.visible&&!m||h.length===0)return null;if((e.display||`inline`)===`dropdown`){let n=Ex(e.icon);return(0,q.jsxs)(Yh,{children:[(0,q.jsx)(Xh,{asChild:!0,children:(0,q.jsxs)(X,{type:`button`,variant:e.variant||`outline`,size:e.size===`md`?`default`:e.size||`default`,className:J(e.className,t),disabled:d,"data-obj-id":i,"data-obj-type":a,style:o,children:[d&&(0,q.jsx)(qi,{className:`mr-2 h-4 w-4 animate-spin`}),!d&&n&&(0,q.jsx)(n,{className:`mr-2 h-4 w-4`}),e.label||`Actions`,(0,q.jsx)(pi,{className:`ml-2 h-3 w-3 opacity-50`})]})}),(0,q.jsx)(tg,{align:`end`,children:h.map((e,t)=>(0,q.jsx)(Ik,{action:e,index:t,onSelect:_,record:s},e.name||t))})]})}return(0,q.jsx)(`div`,{ref:r,className:J(`flex items-center gap-2`,e.className,t),...c,"data-obj-id":i,"data-obj-type":a,style:o,children:h.map(t=>(0,q.jsx)(Fk,{action:t,variant:e.variant,size:e.size,onExecute:g,record:s},t.name))})});Lk.displayName=`ActionGroupRenderer`,U.register(`group`,Lk,{namespace:`action`,skipFallback:!0,label:`Action Group`,inputs:[{name:`name`,type:`string`},{name:`label`,type:`string`},{name:`icon`,type:`string`},{name:`actions`,type:`object`},{name:`display`,type:`enum`,enum:[`inline`,`dropdown`]},{name:`variant`,type:`enum`,enum:[`default`,`secondary`,`outline`,`ghost`]},{name:`size`,type:`enum`,enum:[`sm`,`md`,`lg`]},{name:`className`,type:`string`}],defaultProps:{display:`inline`,variant:`outline`,size:`sm`,actions:[]}});function Rk(){let{t:e}=Ct(),t=e(`common.actions`);return!t||t===`common.actions`?`Actions`:t}var zk=(0,K.forwardRef)(({schema:e,className:t,...n},r)=>{let i=Rk(),{"data-obj-id":a,"data-obj-type":o,style:s,data:c,actions:l,systemActions:u,location:d,maxVisible:f,mobileMaxVisible:p,direction:m,gap:h,variant:g,size:_,visible:y,...b}=n,x=I(pt(e.visible),void 0,{throwOnError:!0,label:`action:bar${e.location?` (${e.location})`:``} (visible)`}),S=Vy(),C=at(),w=v(),T=(0,K.useMemo)(()=>{let t=(e.actions||[]).filter(e=>C(e?.requiredPermissions)).filter(t=>j(t,e.location)),n=new Set,r=t.filter(e=>!e.name||!n.has(e.name)&&(n.add(e.name),!0));return r.some(e=>e.order!==void 0||e.variant===`primary`)?[...r].sort((e,t)=>{let n=(e.order??0)-(t.order??0);return n===0?(e.variant===`primary`?0:1)-(t.variant===`primary`?0:1):n}):r},[e.actions,e.location,C]),E=(0,K.useMemo)(()=>{let t=e.systemActions||[],n=new Set;return t.filter(e=>C(e?.requiredPermissions)?!e.name||!n.has(e.name)&&(n.add(e.name),!0):!1)},[e.systemActions,C]),D=S?e.mobileMaxVisible??1:e.maxVisible??3,{inlineActions:O,overflowActions:k}=(0,K.useMemo)(()=>{let e=T.filter(e=>e.component===`action:menu`),t=T.filter(e=>e.component!==`action:menu`);return{inlineActions:t.slice(0,D),overflowActions:[...t.slice(D),...e]}},[T,D]),A=(0,K.useMemo)(()=>{let e=[];for(let t of O){if(t.component!==`action:group`){e.push(t);continue}let n=e[e.length-1];Array.isArray(n)?n.push(t):e.push([t])}return e},[O]),M=(0,K.useMemo)(()=>{if(E.length===0)return k;if(k.length===0)return E;let[e,...t]=E,n={...e,tags:[...e.tags||[],`separator-before`]};return[...k,n,...t]},[k,E]);if(e.visible&&!x||T.length===0&&E.length===0)return null;let N=e.direction||`horizontal`,P=e.gap||`gap-2`,F=M.length>0?U.get(`action:menu`):null,L=F?(0,q.jsx)(F,{schema:{type:`action:menu`,actions:M,variant:e.variant||`ghost`,size:e.size||`sm`},data:c}):null,ee=(t,n)=>{let r=U.get(n);return r?(0,q.jsx)(r,{schema:{...Ux(t,w),type:n,actionType:t.type,variant:t.variant||e.variant,size:t.size||e.size},data:c},t.name):null};return(0,q.jsxs)(`div`,{ref:r,className:J(`flex items-center`,N===`vertical`?`flex-col items-stretch`:`flex-row flex-wrap`,P,e.className,t),role:`toolbar`,"aria-label":i,...b,"data-obj-id":a,"data-obj-type":o,style:s,children:[A.map((e,t)=>Array.isArray(e)?(0,q.jsx)(DT,{orientation:N===`vertical`?`vertical`:`horizontal`,className:`empty:hidden`,children:e.map(e=>ee(e,`action:button`))},`group:${e[0].name??t}`):ee(e,e.component||`action:button`)),M.length>0&&L]})});zk.displayName=`ActionBarRenderer`,U.register(`bar`,zk,{namespace:`action`,skipFallback:!0,label:`Action Bar`,inputs:[{name:`actions`,type:`object`},{name:`systemActions`,type:`object`},{name:`location`,type:`enum`,enum:[...c]},{name:`maxVisible`,type:`number`},{name:`direction`,type:`enum`,enum:[`horizontal`,`vertical`]},{name:`variant`,type:`enum`,enum:[`default`,`secondary`,`outline`,`ghost`]},{name:`size`,type:`enum`,enum:[`sm`,`md`,`lg`]},{name:`className`,type:`string`}],defaultProps:{maxVisible:3,direction:`horizontal`,variant:`outline`,size:`sm`,actions:[]}});var Bk=({schema:e,className:t})=>{let n=e.type,r=n.startsWith(`view:`),i=n.startsWith(`widget:`),a=n.startsWith(`field:`);return(0,q.jsxs)(`div`,{className:J(`flex flex-col items-center justify-center p-6 border-2 border-dashed rounded-lg bg-muted/30 transition-colors hover:bg-muted/50`,r&&`border-blue-300 bg-blue-50/50 min-h-[200px]`,i&&`border-purple-300 bg-purple-50/50 min-h-[150px]`,a&&`border-yellow-300 bg-yellow-50/50 p-2 min-h-[40px] flex-row gap-2 justify-start`,t),children:[(0,q.jsxs)(`div`,{className:J(`flex items-center gap-2 text-muted-foreground`,a&&`text-sm`),children:[a?(0,q.jsx)(li,{className:`h-4 w-4`}):(0,q.jsx)(Ii,{className:`h-8 w-8 mb-2 opacity-50`}),(0,q.jsxs)(`div`,{className:`flex flex-col items-center text-center`,children:[(0,q.jsx)(`span`,{className:`font-mono font-medium text-foreground`,children:n}),!a&&(0,q.jsx)(`span`,{className:`text-xs`,children:`Component Placeholder`})]})]}),e.props&&!a&&(0,q.jsxs)(`div`,{className:`mt-4 w-full text-xs text-muted-foreground bg-background/50 p-2 rounded overflow-hidden`,children:[(0,q.jsx)(`div`,{className:`opacity-70`,children:`Properties:`}),(0,q.jsx)(`pre`,{className:`mt-1 truncate`,children:JSON.stringify(e.props,null,0)})]})]})},Vk=`view:grid.view:kanban.view:map.view:calendar.view:gantt.view:timeline.view:gallery.view:simple.view:wizard.view:tabbed.view:drawer.view:modal.view:split.field:text.field:textarea.field:password.field:email.field:url.field:phone.field:markdown.field:html.field:code.field:number.field:currency.field:percent.field:slider.field:boolean.field:checkboxes.field:select.field:multiselect.field:radio.field:date.field:datetime.field:time.field:duration.field:lookup.field:master_detail.field:tree.field:image.field:file.field:video.field:audio.field:avatar.field:color.field:rating.field:signature.field:qrcode.field:progress.field:json.field:address.field:location.page:header.page-header.page:footer.page:tabs.page:accordion.page:card.page:sidebar.record:details.record:highlights.record:related_list.record:activity.record:chatter.record:path.app:launcher.nav:menu.nav:breadcrumb.global:search.global:notifications.widget:metric.widget:bar.widget:line.widget:pie.widget:funnel.widget:radar.widget:scatter.widget:heatmap.widget:pivot.widget:table.widget:text.widget:image.ai:input.ai:suggestion.ai:feedback`.split(`.`),Hk=[`nav:menu`,`nav:breadcrumb`,`global:search`,`ai:suggestion`];function Uk(e){U.get(e)||U.register(e,Bk,{namespace:`protocol-placeholder`})}function Wk(){Vk.forEach(Uk)}Hk.forEach(Uk);var Gk={info:{Icon:Gi,tone:`border-border bg-muted/50 text-foreground`,iconTone:`text-muted-foreground`},success:{Icon:xi,tone:`border-emerald-300/70 bg-emerald-50 text-emerald-900 dark:border-emerald-700/60 dark:bg-emerald-950/40 dark:text-emerald-200`,iconTone:`text-emerald-600 dark:text-emerald-400`},warning:{Icon:ba,tone:`border-amber-300/70 bg-amber-50 text-amber-900 dark:border-amber-700/60 dark:bg-amber-950/40 dark:text-amber-200`,iconTone:`text-amber-600 dark:text-amber-400`},error:{Icon:wi,tone:`border-destructive/50 bg-destructive/10 text-destructive dark:text-destructive-foreground`,iconTone:`text-destructive`}};function Kk(e){return Gk[e??`info`]??Gk.info}function qk(e){return Ix(e.icon)?Rx(e.icon):Kk(e.severity).Icon}var Jk={primary:`default`,secondary:`secondary`,link:`link`};function Yk(e){return Jk[e??`primary`]??Jk.primary}var Xk={top_left:`top-4 left-4`,top_center:`top-4 left-1/2 -translate-x-1/2`,top_right:`top-4 right-4`,bottom_left:`bottom-4 left-4`,bottom_center:`bottom-4 left-1/2 -translate-x-1/2`,bottom_right:`bottom-4 right-4`,"top-left":`top-4 left-4`,"top-center":`top-4 left-1/2 -translate-x-1/2`,"top-right":`top-4 right-4`,"bottom-left":`bottom-4 left-4`,"bottom-center":`bottom-4 left-1/2 -translate-x-1/2`,"bottom-right":`bottom-4 right-4`};function Zk({className:e}){let t=Te(`banner`),{dismiss:n,config:r}=m();if(t.length===0)return null;let i=Qe(t,r);return(0,q.jsx)(`div`,{className:J(`flex w-full flex-col`,e),"data-notification-surface":`banner`,children:i.map(e=>{let{tone:t}=Kk(e.severity),r=qk(e);return(0,q.jsxs)(`div`,{role:`status`,"data-severity":e.severity,className:J(`flex w-full items-center gap-3 border-b px-4 py-2.5 text-sm`,t),children:[(0,q.jsx)(r,{className:`h-4 w-4 shrink-0`,"aria-hidden":`true`}),(0,q.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-wrap items-baseline gap-x-2 gap-y-0.5`,children:[(0,q.jsx)(`span`,{className:`font-medium`,children:e.title}),e.message?(0,q.jsx)(`span`,{className:`min-w-0 opacity-90`,children:e.message}):null]}),e.actions?.map(e=>(0,q.jsx)(X,{size:`sm`,variant:Yk(e.variant),className:`h-7 shrink-0`,onClick:e.onClick,children:e.label},e.label)),e.dismissible===!1?null:(0,q.jsx)(X,{size:`icon`,variant:`ghost`,className:`h-7 w-7 shrink-0`,"aria-label":`Dismiss ${e.title}`,onClick:()=>n(e.id),children:(0,q.jsx)(wa,{className:`h-4 w-4`,"aria-hidden":`true`})})]},e.id)})})}Zk.displayName=`NotificationBanners`;function Qk({className:e}){let t=Te(`snackbar`),{dismiss:n,config:r,pauseAutoDismiss:i,resumeAutoDismiss:a}=m(),o=t[0];if(!o)return null;let{iconTone:s}=Kk(o.severity),c=qk(o),l=o.actions?.[0],u=fe(o,r),d=u?Xk[u]:`bottom-4 left-1/2 -translate-x-1/2`,f=u?.startsWith(`top`)?`motion-safe:slide-in-from-top-4`:`motion-safe:slide-in-from-bottom-4`;return(0,q.jsxs)(`div`,{className:J(`fixed z-50 flex w-[min(28rem,calc(100vw-2rem))]`,d,`items-center gap-3 rounded-md border bg-popover px-4 py-3 text-sm text-popover-foreground shadow-lg`,`motion-safe:animate-in motion-safe:fade-in`,f,e),role:`status`,"aria-live":`polite`,"data-notification-surface":`snackbar`,"data-severity":o.severity,"data-position":u,onPointerEnter:r.pauseOnHover?()=>i(o.id):void 0,onPointerLeave:r.pauseOnHover?()=>a(o.id):void 0,children:[(0,q.jsx)(c,{className:J(`h-4 w-4 shrink-0`,s),"aria-hidden":`true`}),(0,q.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,q.jsx)(`div`,{className:`truncate font-medium`,children:o.title}),o.message?(0,q.jsx)(`div`,{className:`truncate text-xs text-muted-foreground`,children:o.message}):null]}),l?(0,q.jsx)(X,{size:`sm`,variant:Yk(l.variant),className:`h-7 shrink-0 font-semibold uppercase tracking-wide`,onClick:()=>{l.onClick(),n(o.id)},children:l.label}):null,o.dismissible===!1?null:(0,q.jsx)(X,{size:`icon`,variant:`ghost`,className:`h-7 w-7 shrink-0`,"aria-label":`Dismiss ${o.title}`,onClick:()=>n(o.id),children:(0,q.jsx)(wa,{className:`h-4 w-4`,"aria-hidden":`true`})})]})}Qk.displayName=`NotificationSnackbar`;var $k={default:void 0,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80`,link:`bg-transparent text-primary underline-offset-4 hover:bg-transparent hover:underline`};function eA({className:e,acknowledgeLabel:t=`OK`}){let n=Te(`alert`),{dismiss:r}=m(),i=n[n.length-1];if(!i)return null;let{iconTone:a}=Kk(i.severity),o=qk(i),s=()=>r(i.id),c=i.dismissible===!1;return(0,q.jsx)(Ko,{open:!0,onOpenChange:e=>{!e&&!c&&s()},children:(0,q.jsxs)(Xo,{className:e,"data-notification-surface":`alert`,"data-severity":i.severity,onEscapeKeyDown:e=>{c&&e.preventDefault()},children:[(0,q.jsxs)(Zo,{children:[(0,q.jsxs)($o,{className:`flex items-center gap-2`,children:[(0,q.jsx)(o,{className:J(`h-5 w-5 shrink-0`,a),"aria-hidden":`true`}),i.title]}),i.message?(0,q.jsx)(es,{children:i.message}):null]}),(0,q.jsxs)(Qo,{children:[i.actions?.map(e=>(0,q.jsx)(ts,{className:J($k[Yk(e.variant)]),onClick:()=>{e.onClick(),s()},children:e.label},e.label)),(0,q.jsx)(ts,{className:J(i.actions?.length?$k.secondary:void 0),onClick:s,children:t})]})]})})}eA.displayName=`NotificationAlerts`;function tA(e,t){let n=t?.maxHistory??50,[r,i]=(0,K.useState)({...e}),[a,o]=(0,K.useState)(t?.mode===`create`),s=(0,K.useRef)([]),c=(0,K.useRef)([]),[,l]=(0,K.useState)(0);(0,K.useEffect)(()=>{i({...e}),o(t?.mode===`create`),s.current=[],c.current=[]},[e]);let u=(0,K.useCallback)((e,r)=>{i(t=>(s.current=[...s.current.slice(-(n-1)),t],c.current=[],{...t,[e]:r})),o(!0),l(e=>e+1),t?.onUpdate?.(e,r)},[t?.onUpdate,n]),d=(0,K.useCallback)(()=>{s.current.length!==0&&(i(e=>{let t=[...s.current],n=t.pop();return s.current=t,c.current=[e,...c.current],n}),l(e=>e+1))},[]),f=(0,K.useCallback)(()=>{c.current.length!==0&&(i(e=>{let t=[...c.current],n=t.shift();return c.current=t,s.current=[...s.current,e],n}),l(e=>e+1))},[]);return{draft:r,isDirty:a,updateField:u,discard:(0,K.useCallback)(()=>{i({...e}),o(!1),s.current=[],c.current=[],l(e=>e+1)},[e]),setDraft:i,undo:d,redo:f,canUndo:s.current.length>0,canRedo:c.current.length>0}}function nA(e){let[t,n]=K.useState({width:0,height:0});return K.useEffect(()=>{let t=e.current;if(!t||typeof ResizeObserver>`u`)return;let r=t.getBoundingClientRect();n(e=>e.width===r.width&&e.height===r.height?e:{width:r.width,height:r.height});let i=new ResizeObserver(e=>{let t=e[0];if(!t)return;let r,i=t.borderBoxSize?.[0];r=i?{width:i.inlineSize,height:i.blockSize}:{width:t.contentRect.width,height:t.contentRect.height},n(e=>e.width===r.width&&e.height===r.height?e:r)});return i.observe(t),()=>i.disconnect()},[e]),t}var rA={permission:`view`,audience:`link_only`,expiresInDays:7,password:``,label:``},iA=[{label:`1 day`,value:1},{label:`7 days`,value:7},{label:`30 days`,value:30},{label:`90 days`,value:90},{label:`Never`,value:null}],aA=[{value:`link_only`,label:`Anyone with the link`,help:`No sign-in required`},{value:`signed_in`,label:`Signed-in users`,help:`Must be logged in to view`}];function oA(e,t){return`${(e??(typeof window<`u`?`${window.location.origin}/s`:`/s`)).replace(/\/+$/,``)}/${t}`}async function sA(e){try{if(typeof navigator<`u`&&navigator.clipboard?.writeText)return await navigator.clipboard.writeText(e),!0}catch{}if(typeof document<`u`){let t=document.createElement(`textarea`);t.value=e,t.setAttribute(`readonly`,``),t.style.position=`absolute`,t.style.left=`-9999px`,document.body.appendChild(t),t.select();try{return document.execCommand(`copy`),document.body.removeChild(t),!0}catch{document.body.removeChild(t)}}return!1}function cA({open:e,onOpenChange:t,objectName:n,recordId:r,recordLabel:i,apiBase:a,publicBaseUrl:o,fetchHeaders:s}){let[c,l]=(0,K.useState)([]),[u,d]=(0,K.useState)(!1),[f,p]=(0,K.useState)(!1),[m,h]=(0,K.useState)(null),[g,_]=(0,K.useState)(rA),[v,y]=(0,K.useState)(null),b=(0,K.useCallback)(async()=>{let e={"Content-Type":`application/json`};if(!s)return e;let t=await s();return{...e,...t}},[s]),x=(0,K.useMemo)(()=>`${a.replace(/\/+$/,``)}/v1/share-links?object=${encodeURIComponent(n)}&recordId=${encodeURIComponent(r)}`,[a,n,r]),S=(0,K.useCallback)(async()=>{d(!0),h(null);try{let e=await b(),t=await fetch(x,{headers:e,credentials:`include`});if(!t.ok)throw Error(`HTTP ${t.status}`);let n=await t.json();l(n.links??n.data??[])}catch(e){h(e?.message??`Failed to load share links`)}finally{d(!1)}},[x,b]);(0,K.useEffect)(()=>{e&&(S(),_(rA))},[e,S]);let C=(0,K.useCallback)(async()=>{p(!0),h(null);try{let e=g.expiresInDays==null?void 0:new Date(Date.now()+g.expiresInDays*24*60*60*1e3).toISOString(),t=await b(),i=await fetch(`${a.replace(/\/+$/,``)}/v1/share-links`,{method:`POST`,headers:t,credentials:`include`,body:JSON.stringify({object:n,recordId:r,permission:g.permission,audience:g.audience,expiresAt:e,password:g.password.trim()||void 0,label:g.label.trim()||void 0})});if(!i.ok){let e=await i.json().catch(()=>({}));throw Error(e?.error?.message||`HTTP ${i.status}`)}let s=await i.json(),c=s.link??s.data;if(!c)throw Error(`Share link create response missing link payload`);l(e=>[c,...e]),await sA(oA(o,c.token))&&(y(c.id),setTimeout(()=>y(null),1500)),_(rA)}catch(e){h(e?.message??`Failed to create share link`)}finally{p(!1)}},[a,b,n,r,g,o]),w=(0,K.useCallback)(async e=>{try{let t=await b(),n=await fetch(`${a.replace(/\/+$/,``)}/v1/share-links/${encodeURIComponent(e.id)}`,{method:`DELETE`,headers:t,credentials:`include`});if(!n.ok&&n.status!==204)throw Error(`HTTP ${n.status}`);l(t=>t.map(t=>t.id===e.id?{...t,revoked_at:new Date().toISOString()}:t))}catch(e){h(e?.message??`Failed to revoke link`)}},[a,b]),T=(0,K.useCallback)(async e=>{await sA(oA(o,e.token))&&(y(e.id),setTimeout(()=>y(null),1500))},[o]),E=c.filter(e=>!e.revoked_at),D=c.filter(e=>e.revoked_at);return(0,q.jsx)(am,{open:e,onOpenChange:t,children:(0,q.jsxs)(lm,{className:`max-w-xl`,"data-testid":`share-dialog`,children:[(0,q.jsxs)(um,{children:[(0,q.jsxs)(fm,{className:`flex items-center gap-2`,children:[(0,q.jsx)(Ki,{className:`h-4 w-4`}),`Share `,i??`this record`]}),(0,q.jsx)(pm,{children:`Generate a link anyone (or selected people) can use to open this record. Links can be revoked at any time.`})]}),m&&(0,q.jsx)(`div`,{className:`rounded-md border border-destructive/40 bg-destructive/10 px-3 py-2 text-xs text-destructive`,"data-testid":`share-dialog-error`,children:m}),(0,q.jsxs)(`section`,{className:`space-y-3 rounded-lg border bg-muted/30 p-3`,children:[(0,q.jsxs)(`div`,{className:`grid gap-3 sm:grid-cols-2`,children:[(0,q.jsxs)(`div`,{className:`space-y-1`,children:[(0,q.jsx)(X_,{className:`text-xs`,children:`Who can access`}),(0,q.jsxs)(yy,{value:g.audience,onValueChange:e=>_(t=>({...t,audience:e})),children:[(0,q.jsx)(xy,{className:`h-8 text-xs`,"data-testid":`share-audience`,children:(0,q.jsx)(by,{})}),(0,q.jsx)(wy,{children:aA.map(e=>(0,q.jsx)(Ey,{value:e.value,className:`text-xs`,children:(0,q.jsxs)(`div`,{className:`flex flex-col`,children:[(0,q.jsx)(`span`,{children:e.label}),(0,q.jsx)(`span`,{className:`text-[10px] text-muted-foreground`,children:e.help})]})},e.value))})]})]}),(0,q.jsxs)(`div`,{className:`space-y-1`,children:[(0,q.jsx)(X_,{className:`text-xs`,children:`Expires in`}),(0,q.jsxs)(yy,{value:g.expiresInDays==null?`never`:String(g.expiresInDays),onValueChange:e=>_(t=>({...t,expiresInDays:e===`never`?null:Number(e)})),children:[(0,q.jsx)(xy,{className:`h-8 text-xs`,"data-testid":`share-expiry`,children:(0,q.jsx)(by,{})}),(0,q.jsx)(wy,{children:iA.map(e=>(0,q.jsx)(Ey,{value:e.value==null?`never`:String(e.value),className:`text-xs`,children:e.label},String(e.value)))})]})]}),(0,q.jsxs)(`div`,{className:`space-y-1 sm:col-span-2`,children:[(0,q.jsx)(X_,{className:`text-xs`,children:`Password (optional)`}),(0,q.jsx)(Fv,{type:`password`,value:g.password,onChange:e=>_(t=>({...t,password:e.target.value})),placeholder:`Require a password to open`,className:`h-8 text-xs`,"data-testid":`share-password`})]}),(0,q.jsxs)(`div`,{className:`space-y-1 sm:col-span-2`,children:[(0,q.jsx)(X_,{className:`text-xs`,children:`Label (only you see this)`}),(0,q.jsx)(Fv,{value:g.label,onChange:e=>_(t=>({...t,label:e.target.value})),placeholder:`e.g. Sent to design review`,className:`h-8 text-xs`,"data-testid":`share-label`})]})]}),(0,q.jsx)(`div`,{className:`flex justify-end`,children:(0,q.jsxs)(X,{size:`sm`,onClick:C,disabled:f,"data-testid":`share-create`,children:[f?(0,q.jsx)(qi,{className:`mr-1 h-3 w-3 animate-spin`}):(0,q.jsx)(Ki,{className:`mr-1 h-3 w-3`}),`Create link`]})})]}),(0,q.jsxs)(`section`,{className:`space-y-2`,children:[(0,q.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,q.jsxs)(`h4`,{className:`text-xs font-medium text-muted-foreground`,children:[`Existing links`,E.length?` (${E.length})`:``]}),u&&(0,q.jsx)(qi,{className:`h-3 w-3 animate-spin text-muted-foreground`})]}),!u&&E.length===0&&D.length===0&&(0,q.jsx)(`p`,{className:`rounded-md border border-dashed px-3 py-4 text-center text-xs text-muted-foreground`,children:`No share links yet. Create one above.`}),(0,q.jsxs)(`ul`,{className:`space-y-2`,children:[E.map(e=>(0,q.jsx)(lA,{link:e,copied:v===e.id,onCopy:()=>T(e),onRevoke:()=>w(e),publicBaseUrl:o},e.id)),D.length>0&&(0,q.jsx)(`li`,{className:`pt-2 text-[10px] uppercase tracking-wide text-muted-foreground`,children:`Revoked`}),D.map(e=>(0,q.jsx)(lA,{link:e,copied:!1,onCopy:()=>T(e),onRevoke:()=>w(e),publicBaseUrl:o,disabled:!0},e.id))]})]}),(0,q.jsx)(dm,{children:(0,q.jsx)(X,{variant:`ghost`,size:`sm`,onClick:()=>t(!1),children:`Done`})})]})})}function lA({link:e,copied:t,onCopy:n,onRevoke:r,publicBaseUrl:i,disabled:a}){let o=oA(i,e.token);return(0,q.jsxs)(`li`,{className:J(`flex items-center gap-2 rounded-md border bg-card px-2 py-2 text-xs`,a&&`opacity-60`),"data-testid":`share-link-row`,children:[(0,q.jsx)(fs,{variant:`secondary`,className:`text-[10px] capitalize`,children:e.audience.replace(`_`,` `)}),(0,q.jsx)(fs,{variant:`outline`,className:`text-[10px] capitalize`,children:e.permission}),(0,q.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,q.jsx)(`div`,{className:`truncate font-mono text-[11px]`,title:o,children:o}),e.label&&(0,q.jsx)(`div`,{className:`truncate text-[10px] text-muted-foreground`,children:e.label})]}),!a&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(X,{size:`sm`,variant:`ghost`,className:`h-7 px-2 text-xs`,onClick:n,"data-testid":`share-link-copy`,children:[(0,q.jsx)(Ei,{className:`mr-1 h-3 w-3`}),t?`Copied!`:`Copy`]}),(0,q.jsx)(X,{size:`sm`,variant:`ghost`,className:`h-7 px-2 text-xs text-destructive hover:text-destructive`,onClick:r,"data-testid":`share-link-revoke`,title:`Revoke`,children:(0,q.jsx)(_a,{className:`h-3 w-3`})})]}),a&&(0,q.jsxs)(`span`,{className:`flex items-center gap-1 text-[10px] text-muted-foreground`,children:[(0,q.jsx)(da,{className:`h-3 w-3`}),`revoked`]})]})}var uA=(0,K.createContext)(null);uA.displayName=`PermissionContext`;function dA(){let e=new WeakMap;return function(t,n){let r=e;for(let e=0;e<t.length-1;e++){let n=r.get(t[e]);n===void 0&&(n=new WeakMap,r.set(t[e],n)),r=n}let i=t[t.length-1],a=r.get(i);return a===void 0&&(a={value:n()},r.set(i,a)),a.value}}var fA=`/api/v1/auth/me/permissions`,pA=dA(),mA=dA(),hA=dA(),gA=dA(),_A=dA(),vA={data:`unloaded`},yA={isLoaded:!0},bA={isLoaded:!1},xA=()=>void 0;async function SA({endpoint:e,fetcher:t,maxRetries:n,retryBaseDelayMs:r},{setData:i,setError:a,setLoading:o},s){let c=()=>!s?.cancelled;o(!0),a(null);let l=t??fetch,u=Math.max(0,n)+1;for(let t=0;t<u;t++)try{let t=await l(e,{credentials:`include`,headers:{Accept:`application/json`}});if(!t.ok)throw new mt(t.status,O(t),`Permissions endpoint returned ${t.status}`);let n=await t.json();if(!c())return;i(n),o(!1);return}catch(e){let n=e instanceof Error?e:Error(String(e));if(!G(n)||t===u-1){if(!c())return;a(n),o(!1);return}let i=n instanceof mt?n.retryAfterMs:void 0;if(await se(_(t,r,i)),!c())return}}function CA({endpoint:e=fA,fetcher:t,initialPermissions:n,loadingFallback:r=null,errorFallback:i,maxRetries:a=3,retryBaseDelayMs:o=500,children:s}){let[c,l]=(0,K.useState)(n??null),[u,d]=(0,K.useState)(null),[f,p]=(0,K.useState)(!n);(0,K.useEffect)(()=>{if(n)return;let r={cancelled:!1};return SA({endpoint:e,fetcher:t,maxRetries:a,retryBaseDelayMs:o},{setData:l,setError:d,setLoading:p},r),()=>{r.cancelled=!0}},[e,t,a,o,n]);let m=(0,K.useCallback)(()=>{SA({endpoint:e,fetcher:t,maxRetries:a,retryBaseDelayMs:o},{setData:l,setError:d,setLoading:p})},[e,t,a,o]),h=c??vA,g=mA([h],()=>(e,t,n)=>{if(!c)return!1;let r=(e??``).toLowerCase(),i=`${r}.${t}`,a=c.fields?.[i]??c.fields?.[`${e}.${t}`];if(a)return n===`read`?a.readable!==!1:a.editable!==!1;let o=c.objects?.[r]??c.objects?.[e]??c.objects?.[`*`];return o?n===`read`?o.allowRead!==!1:o.allowEdit!==!1:c.authenticated!==!0}),_=pA([h],()=>(e,t)=>{if(!c)return{allowed:!1,reason:`permissions-loading`};let n=c.objects?.[e]??c.objects?.[`*`],r={read:`allowRead`,view:`allowRead`,create:`allowCreate`,update:`allowEdit`,edit:`allowEdit`,delete:`allowDelete`,import:`allowCreate`,export:`allowRead`}[t]??`allowRead`,i=n?n[r]!==!1:c.authenticated!==!0;return{allowed:i,reason:i?void 0:`denied-by-permission-set`}}),v=hA([h],()=>e=>{if(!c)return[];let t=`${e}.`,n=[];for(let[e,r]of Object.entries(c.fields??{})){if(!e.startsWith(t))continue;let i=e.slice(t.length);n.push({field:i,read:r.readable!==!1,write:r.editable!==!1})}return n}),y=gA([h],()=>e=>{if(!c)return;let t=(e??``).toLowerCase(),n=(c.objects?.[t]??c.objects?.[e])?.apiOperations;return Array.isArray(n)?n:void 0}),b=!f&&!u&&c!==null,x=_A([h,b?yA:bA],()=>({check:_,checkField:g,getFieldPermissions:v,getRowFilter:xA,getObjectApiOperations:y,roles:c?.roles??[],userId:c?.userId??null,systemPermissions:c?.systemPermissions,hasCapabilities:e=>{let t=c?.systemPermissions;if(!Array.isArray(t))return!0;let n=new Set(t);return e.every(e=>n.has(e))},isLoaded:b}));return f&&!c?(0,q.jsx)(q.Fragment,{children:r}):u&&!c?i?(0,q.jsx)(q.Fragment,{children:i(u,m)}):(0,q.jsx)(q.Fragment,{children:r}):(0,q.jsx)(uA.Provider,{value:x,children:s})}var wA=Object.freeze([]),TA=Object.freeze({check:()=>({allowed:!0}),checkField:()=>!0,getFieldPermissions:()=>[],getRowFilter:()=>void 0,getObjectApiOperations:()=>void 0,roles:wA,userId:null,systemPermissions:void 0,hasCapabilities:()=>!0,isLoaded:!1,can:()=>!0,cannot:()=>!1}),EA=new WeakMap;function DA(e){let t=EA.get(e);if(t)return t;let n={...e,can:(t,n)=>e.check(t,n).allowed,cannot:(t,n)=>!e.check(t,n).allowed};return EA.set(e,n),n}function OA(){let e=(0,K.useContext)(uA);return e?DA(e):TA}function kA(e){let{checkField:t,getFieldPermissions:n}=OA(),r=(0,K.useMemo)(()=>n(e),[n,e]);return(0,K.useMemo)(()=>({permissions:r,canRead:n=>t(e,n,`read`),canWrite:n=>t(e,n,`write`),readableFields:n=>n.filter(n=>t(e,n,`read`)),writableFields:n=>n.filter(n=>t(e,n,`write`))}),[r,t,e])}function AA(e){let t=({schema:t,field:n,...r})=>(0,q.jsx)(e,{...r,field:n??t});return t.displayName=`FieldCarrier(${e.displayName||e.name||`Component`})`,t}function jA(e){return e.postalCode??e.zipCode}function MA(e){return e==null?``:String(e).trim()}var NA=new Set([`zh`,`ja`,`ko`]);function PA(e){return(e||``).split(/[-_]/)[0].toLowerCase()}function FA(e,t){let n=MA(e.street),r=MA(e.city),i=MA(e.state),a=MA(jA(e)),o=MA(e.country);return NA.has(PA(t))?[o,[a,i].filter(Boolean).join(` `),r,n].filter(Boolean).join(`, `):[n,r,[i,a].filter(Boolean).join(` `),o].filter(Boolean).join(`, `)}var IA=new Set;function LA(e){return RA(e,`percent field`,`objectui#9808`)}function RA(e,t,n){if(!(Number.isInteger(e)&&e>100))return e;let r=`${t}|${e}`;return IA.has(r)||(IA.add(r),console.warn(`[ObjectUI] ${t}: a declared \`scale\` of ${e} is above the 100-digit fraction width this platform can render; rendering at 100 instead (${n}).`)),100}function zA({images:e,index:t,open:n,onOpenChange:r,onIndexChange:i}){let{t:a}=Ct(),o=e.length,s=e[t],c=K.useCallback(e=>{if(o<=1)return;let n=(t+e+o)%o;i?.(n)},[o,t,i]),l=K.useCallback(e=>{e.key===`ArrowRight`?(e.preventDefault(),c(1)):e.key===`ArrowLeft`&&(e.preventDefault(),c(-1))},[c]);return s?(0,q.jsx)(am,{open:n,onOpenChange:r,children:(0,q.jsxs)(lm,{className:`max-w-[92vw] sm:max-w-4xl p-0 bg-transparent border-0 shadow-none`,onKeyDown:l,children:[(0,q.jsx)(fm,{className:`sr-only`,children:s.name||a(`fields.image.preview`)}),(0,q.jsxs)(`div`,{className:`relative flex items-center justify-center`,children:[(0,q.jsx)(`img`,{src:s.url,alt:s.name||a(`fields.image.imageAlt`,{index:t+1}),className:`max-h-[85vh] max-w-full rounded-md object-contain`}),o>1&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`button`,{type:`button`,onClick:()=>c(-1),"aria-label":a(`fields.image.previous`),className:`absolute left-2 top-1/2 -translate-y-1/2 flex size-9 items-center justify-center rounded-full bg-black/50 text-white hover:bg-black/70 transition-colors`,children:(0,q.jsx)(mi,{className:`size-5`})}),(0,q.jsx)(`button`,{type:`button`,onClick:()=>c(1),"aria-label":a(`fields.image.next`),className:`absolute right-2 top-1/2 -translate-y-1/2 flex size-9 items-center justify-center rounded-full bg-black/50 text-white hover:bg-black/70 transition-colors`,children:(0,q.jsx)(hi,{className:`size-5`})}),(0,q.jsx)(`div`,{className:`absolute bottom-2 left-1/2 -translate-x-1/2 rounded-full bg-black/50 px-2.5 py-1 text-xs font-medium text-white`,children:a(`fields.image.counter`,{current:t+1,total:o})})]})]})]})}):null}function BA(e){if(l(e))return e;if(e&&typeof e==`object`){let t=e,n=t.file_id??t.id;if(typeof n==`string`&&n)return n}}var VA=`/api/v1/storage`;function HA(e){return`${VA}/files/${encodeURIComponent(e)}`}function UA(e){if(/^data:/i.test(e))return;let t=(e.split(/[?#]/)[0]??e).split(`/`).filter(Boolean).pop();if(!t)return e;try{return decodeURIComponent(t)}catch(e){if(e instanceof URIError)return t;throw e}}function WA(e,t=`File`){if(e==null)return{name:t,raw:e};if(typeof e==`string`)return l(e)?{id:e,name:t,url:HA(e),raw:e}:{url:e,name:UA(e)??t,raw:e};if(typeof e==`object`){let n=e,r=e=>typeof e==`string`&&e?e:void 0,i=BA(n),a=r(n.url)??(i?HA(i):void 0);return{id:i,name:r(n.name)??r(n.original_name)??(r(n.url)?UA(r(n.url)):void 0)??t,url:a,size:typeof n.size==`number`?n.size:void 0,mimeType:r(n.mimeType)??r(n.mime_type),raw:e}}return{name:t,raw:e}}function GA(e,t=`File`){return e==null?[]:(Array.isArray(e)?e:[e]).filter(e=>e!=null).map(e=>WA(e,t))}function KA(e){return(e.mimeType??``).startsWith(`image/`)}var qA=class extends Error{code=`UPLOAD_INCOMPLETE`;fileName;constructor(e){super(`upload of "${e}" did not complete: the upload adapter returned no sys_file id (meta.fileId), so nothing was submitted`),this.name=`UploadIncompleteError`,this.fileName=e}};function JA(e,t){let n=e.meta?.fileId;if(l(n))return n;throw new qA(t??e.name)}function YA(e,t){return{id:l(e.meta?.fileId)?e.meta.fileId:void 0,name:e.name||t||`File`,url:e.url,size:e.size,mimeType:e.mimeType,raw:e}}function XA(e,t){return Object.keys(t).length===0?e:e.map(e=>{let n=e.id?t[e.id]:void 0;return n?e.raw&&typeof e.raw==`object`&&typeof e.raw.url==`string`&&e.raw.url?e:{...n,raw:e.raw}:e})}function ZA({view:e,fallback:t,className:n,icon:r=!0}){let i=e.url?.trim();if(!i)return(0,q.jsx)(q.Fragment,{children:t});let a=e.name;return(0,q.jsxs)(`a`,{href:i,target:`_blank`,rel:`noopener noreferrer`,title:a,onClick:e=>e.stopPropagation(),"data-slot":`file-download-link`,className:J(`inline-flex min-w-0 max-w-full items-center gap-1 align-middle text-blue-600 hover:text-blue-800 hover:underline`,n),children:[r&&(0,q.jsx)(Li,{className:`size-3 shrink-0`,"aria-hidden":`true`}),(0,q.jsx)(`span`,{className:`truncate`,children:a})]})}function QA(e){if(e==null||typeof e==`number`||typeof e==`boolean`||typeof e==`string`)return e;if(e instanceof Date)return e.toISOString();if(Array.isArray(e))return e.map(e=>{if(typeof e==`object`&&e){let t=e;return String(t.name||t.label||t.externalId||t.id||t._id||`[Object]`)}return String(e)}).join(`, `);if(typeof e==`object`){let t=e;return`$numberDecimal`in t?Number(t.$numberDecimal):`$oid`in t?String(t.$oid):`$date`in t?String(t.$date):String(t.name||t.label||t.externalId||t.id||t._id||`[Object]`)}return String(e)}var $A=2,ej=new Map;function tj(e){let t=ej.get(e);if(t!==void 0)return t;let n=$A;try{n=new Intl.NumberFormat(void 0,{style:`currency`,currency:e}).resolvedOptions().maximumFractionDigits??$A}catch{}return ej.set(e,n),n}var nj=new Map;function rj(e,t){let n=`${t}|${e}`,r=nj.get(n);if(r!==void 0)return r;let i=e;try{i=new Intl.NumberFormat(t,{style:`currency`,currency:e}).formatToParts(0).find(e=>e.type===`currency`)?.value??e}catch{}return nj.set(n,i),i}var ij=K.lazy(()=>n(()=>Promise.resolve().then(()=>WL),void 0,import.meta.url));function aj(e){let t=QA(e);if(t!=null&&t!==``)return String(t)}function oj({value:e}){let t=aj(e);return t===void 0?(0,q.jsx)($,{}):(0,q.jsx)(K.Suspense,{fallback:(0,q.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:t.slice(0,80)}),children:(0,q.jsx)(ij,{value:t})})}function sj(e){return e.replace(/<\s*(script|style|iframe|object|embed)[^>]*>[\s\S]*?<\s*\/\s*\1\s*>/gi,``).replace(/\son\w+\s*=\s*("[^"]*"|'[^']*'|[^\s>]+)/gi,``).replace(/(href|src)\s*=\s*("javascript:[^"]*"|'javascript:[^']*')/gi,`$1="#"`)}function cj({value:e}){let t=aj(e);return t===void 0?(0,q.jsx)($,{}):(0,q.jsx)(`div`,{className:`prose prose-sm max-w-none dark:prose-invert break-words`,dangerouslySetInnerHTML:{__html:sj(t)}})}var lj={markdown:oj,html:cj,richtext:cj},uj=Object.keys(lj);function dj(e){let t=fj(e);if(t)return t===oj?`markdown`:`html`}function fj(e){return lj[e]}var pj;function mj(e){pj=e}function hj(){return pj}var gj={select:`field:multiselect`},_j=`field:`;function vj(e,t){return t?.multiple&&gj[e]?gj[e]:{text:`field:text`,textarea:`field:textarea`,markdown:`field:markdown`,html:`field:html`,richtext:`field:richtext`,secret:`field:password`,number:`field:number`,currency:`field:currency`,percent:`field:percent`,slider:`field:slider`,progress:`field:slider`,rating:`field:rating`,date:`field:date`,datetime:`field:datetime`,time:`field:time`,boolean:`field:boolean`,toggle:`field:boolean`,select:`field:select`,multiselect:`field:multiselect`,radio:`field:radio`,checkboxes:`field:checkboxes`,tags:`field:tags`,lookup:`field:lookup`,master_detail:`field:master_detail`,tree:`field:lookup`,user:`field:user`,email:`field:email`,phone:`field:phone`,url:`field:url`,file:`field:file`,image:`field:image`,avatar:`field:avatar`,video:`field:file`,audio:`field:file`,signature:`field:signature`,password:`field:password`,location:`field:location`,geolocation:`field:geolocation`,address:`field:address`,color:`field:color`,code:`field:code`,json:`field:code`,qrcode:`field:qrcode`,vector:`field:vector`,object:`field:object`,composite:`field:object`,record:`field:object`,repeater:`field:grid`,formula:`field:formula`,summary:`field:summary`,autonumber:`field:auto_number`,auto_number:`field:auto_number`}[e]||(ie(e)?`${_j}${e}`:`field:text`)}var yj=[`id`,`name`,`autoFocus`,`tabIndex`,`onBlur`,`onFocus`,`onClick`,`className`,`disabled`];function bj(e){return k(e,yj)}var xj=[`error`,`onUploadingChange`,`dataSource`,`dependentValues`,`dependsOn`,`dependsOnLabels`,`emptyHint`,`onSelectRecord`,`onCreateNew`];function Sj(e){let t=new Set(xj),n={};for(let r of Object.keys(e))t.has(r)&&(n[r]=e[r]);return n}var Cj=t({TextField:()=>wj});function wj({value:e,onChange:t,field:n,readonly:r,error:i,...a}){let o=n;if(r)return(0,q.jsx)(`span`,{className:`text-sm`,children:e||(0,q.jsx)($,{})});let s=o?.rows,c=bj(a),l=o?.maxLength;return s&&s>1?(0,q.jsx)(Kb,{...c,value:e||``,onChange:e=>t(e.target.value),placeholder:o?.placeholder,maxLength:l,disabled:r||c.disabled,"aria-invalid":!!i}):(0,q.jsx)(Fv,{...c,type:o?.type===`password`?`password`:`text`,value:e||``,onChange:e=>t(e.target.value),placeholder:o?.placeholder,maxLength:l,disabled:r||c.disabled,"aria-invalid":!!i})}function Tj(e){return(0,q.jsx)(Cw,{...e})}var Ej=t({TextAreaField:()=>Dj});function Dj({value:e,onChange:t,field:n,readonly:r,error:i,...a}){let o=n,s=n.maxLength??o?.max_length,c=(0,K.useId)(),l=`${c}-charcount`,u=`${c}-fullscreen-charcount`;if(r)return(0,q.jsx)(`div`,{className:`text-sm whitespace-pre-wrap`,children:e||(0,q.jsx)($,{})});let d=o?.rows||4,f=!!o?.mobile_fullscreen,p=bj(a),m=!!p.disabled,h=[p[`aria-describedby`],s?l:void 0].filter(Boolean).join(` `)||void 0;return(0,q.jsxs)(`div`,{className:`relative`,children:[(0,q.jsx)(Kb,{...p,value:e||``,onChange:e=>t(e.target.value),placeholder:o?.placeholder,disabled:r||m,rows:d,maxLength:s,"aria-invalid":!!i,"aria-describedby":h,className:p.className}),s&&(0,q.jsx)(kw,{length:(e||``).length,maxLength:s,descriptionId:l,announceNearLimit:!0,className:`absolute bottom-2 right-2 text-xs text-gray-400`,testId:`textarea-character-count`}),f&&(0,q.jsx)(Tj,{value:e??``,onCommit:t,label:o?.label,testIdPrefix:`textarea`,disabled:m,error:i,footer:e=>s?(0,q.jsx)(kw,{length:e.length,maxLength:s,descriptionId:u,announceNearLimit:!1,className:`text-xs text-muted-foreground self-center`,testId:`textarea-fullscreen-character-count`}):null,children:(e,t,n,r)=>(0,q.jsx)(Kb,{autoFocus:!0,value:e,onChange:e=>t(e.target.value),disabled:n,maxLength:s,placeholder:o?.placeholder,...r,"aria-describedby":s?u:void 0,className:`h-full min-h-full resize-none text-base`,"data-testid":`textarea-fullscreen-input`})})]})}var Oj=_t({"common.selectOption":`Select an option`,"common.select":`Select…`,"common.loading":`Loading…`,"common.noResults":`No results found`,"common.cancel":`Cancel`,"common.confirm":`Confirm`,"table.selected":`{{count}} selected`,"table.search":`Search…`,"lookup.loading":`Loading…`,"lookup.noOptions":`No options found`,"lookup.noRecords":`No records found`,"lookup.recentlyUsed":`Recently used`,"lookup.allResults":`All results`,"lookup.createNew":`Create new`,"lookup.createNamed":`Create new "{{name}}"`,"lookup.showingResults":`Showing {{shown}} of {{total}} results`,"lookup.showAllResults":`Show all results ({{count}})`,"lookup.selectedBadge":`Selected`,"lookup.browseAll":`Browse all records`,"lookup.remove":`Remove {{label}}`,"lookup.selectFirst":`Select {{fields}} first`,"lookup.selectRecord":`Select record`,"lookup.recordCount":`{{count}} records`,"lookup.recordCountOne":`1 record`,"lookup.pageOf":`Page {{current}} of {{total}}`,"lookup.filters":`Filters`,"lookup.clear":`Clear`,"lookup.yes":`Yes`,"lookup.filterPlaceholder":`Filter {{label}}`,"lookup.prevPage":`Previous page`,"lookup.nextPage":`Next page`,"lookup.jumpToPage":`Jump to page`,"lookup.retry":`Retry`,"fields.options.empty":`No options available`,"fields.options.selectFirst":`Select {{fields}} first`,"validation.formInvalidJoiner":`, `,"fields.objectRef.loading":`Loading objects…`,"fields.objectRef.placeholder":`Select an object`,"fields.objectRef.search":`Search objects…`,"fields.objectRef.empty":`No objects found`,"fields.recipient.selectTypeFirst":`Select a recipient type first.`,"fields.recipient.loading":`Loading…`,"fields.recipient.search":`Search…`,"fields.recipient.empty":`No matches`,"fields.recipient.select":`Select a recipient`,"fields.recipient.selectUser":`Select a user`,"fields.recipient.selectTeam":`Select a team`,"fields.recipient.selectBusinessUnit":`Select a business unit`,"fields.recipient.selectPosition":`Select a position`,"fields.recipient.selectUnitAndSubordinates":`Select a business unit`,"fields.recipient.selectField":`Select a user field`,"fields.recipient.noUserFields":`No user fields on this object`,"fields.recipient.fieldNotUserTyped":`{{name}} — not a user field`,"fields.filterCondition.selectObjectFirst":`Select an object first.`,"fields.filterCondition.noCriteria":`No criteria — this rule shares nothing`,"fields.filterCondition.criteriaRequired":`Add at least one condition. A rule with no criteria would share every record, so it cannot be saved.`,"fields.filterCondition.invalidJson":`Invalid JSON — the rule will match no records until fixed.`,"fields.filterCondition.jsonOnly":`This criteria can only be edited as JSON`,"fields.filterCondition.editAsJson":`Edit as JSON`,"fields.filterCondition.useVisualBuilder":`Use visual builder`,"fields.object.invalidJson":`Invalid JSON`,"fields.location.refusedFormat":`Not saved: enter a latitude, longitude pair (example: 30.2741, 120.1551).`,"fields.location.refusedRange":`Not saved: {{detail}}`,"fields.location.latitude":`latitude`,"fields.location.longitude":`longitude`,"fields.location.refusedResidueOne":`Not saved: {{name}} "{{text}}" is not a number. Enter plain decimals (example: 30.2741, 120.1551).`,"fields.location.refusedResidue":`Not saved: {{name}} "{{text}}" and {{otherName}} "{{otherText}}" are not numbers. Enter plain decimals (example: 30.2741, 120.1551).`,"fields.number.badInput":`Not saved: the text in this box is not a number. Enter a plain decimal (example: {{example}}).`,"fields.date.impossibleDay":`The stored value "{{value}}" is not a real date. Pick a date to replace it.`,"fields.dateTime.impossibleDay":`The stored value "{{value}}" is not a real date. Pick a date and time to replace it.`,"fields.tags.placeholder":`Type and press Enter to add…`,"fields.address.street":`Street Address`,"fields.address.city":`City`,"fields.address.state":`State / Province`,"fields.address.postalCode":`ZIP / Postal Code`,"fields.address.country":`Country`,"capability.group.platform":`Platform`,"capability.group.org":`Organization`,"capability.group.other":`Other`,"capability.label.manage_users":`Manage Users`,"capability.label.manage_org_users":`Manage Organization Users`,"capability.label.manage_metadata":`Manage Metadata`,"capability.label.manage_org_presentation":`Manage Organization Presentation`,"capability.label.manage_platform_settings":`Manage Platform Settings`,"capability.label.setup_access":`Setup Access`,"capability.label.setup_write":`Write Settings`,"capability.label.studio_access":`Studio Access`,"capability.label.manage_sharing":`Manage Sharing`},`common.selectOption`);function kj(e,t){return e(`fields.number.badInput`,{example:t})}function Aj(e){let[t,n]=(0,K.useState)(null),{t:r}=Oj();return{refusal:t,readBadInput:(0,K.useCallback)(t=>{let i=t?.validity?.badInput===!0;return n(i?kj(r,e):null),i},[e,r])}}function jj({refusal:e}){return e?(0,q.jsx)(`p`,{className:`text-xs text-red-500`,children:e}):null}var Mj=`border-red-500 focus-visible:ring-red-500`,Nj=t({NumberField:()=>Pj});function Pj({value:e,onChange:t,field:n,readonly:r,error:i,...a}){let{refusal:o,readBadInput:s}=Aj(`1234`);if(r)return e==null?(0,q.jsx)($,{}):(0,q.jsx)(`span`,{className:`text-sm`,children:e});let c=n,l=c?.scale,u=typeof c?.step==`number`?c.step:typeof l==`number`?10**-l:`any`,d=bj(a),f=e=>{s(e.target),d.onBlur?.(e)};return(0,q.jsxs)(`div`,{className:`space-y-1`,children:[(0,q.jsx)(Fv,{...d,type:`number`,value:e??``,onChange:e=>{s(e.target);let n=e.target.value;t(n===``?null:Number(n))},onBlur:f,placeholder:c?.placeholder,disabled:r||d.disabled,className:J(o?Mj:``,d.className),min:typeof c?.min==`number`?c.min:void 0,max:typeof c?.max==`number`?c.max:void 0,step:u,"aria-invalid":!!i||!!o}),(0,q.jsx)(jj,{refusal:o})]})}var Fj=t({CurrencyField:()=>Lj});function Ij(e,t,n,r){if(t)try{return ut(e,{locale:r,currency:t,minimumFractionDigits:n,maximumFractionDigits:n})}catch{return`${t} ${e.toFixed(n)}`}try{return ut(e,{locale:r,minimumFractionDigits:n,maximumFractionDigits:n})}catch{return e.toFixed(n)}}function Lj({value:e,onChange:t,field:n,readonly:r,error:i,className:a,...o}){let s=n,{currency:c}=vt(),l=St(),u=yt(s,c),d=u?tj(u):2,{refusal:f,readBadInput:p}=Aj(`1234.56`);if(r)return e==null?(0,q.jsx)($,{}):(0,q.jsx)(`span`,{className:`text-sm font-medium tabular-nums`,children:Ij(Number(e),u,d,l)});let m=bj(o),h=e=>{p(e.target);let n=parseFloat(e.target.value);isNaN(n)||t(parseFloat(n.toFixed(d))),m.onBlur?.(e)},g=u?rj(u,l):``;return(0,q.jsxs)(`div`,{className:`space-y-1`,children:[(0,q.jsxs)(`div`,{className:`relative`,children:[g&&(0,q.jsx)(`span`,{className:`absolute left-3 top-1/2 -translate-y-1/2 text-sm text-gray-500`,children:g}),(0,q.jsx)(Fv,{...m,type:`number`,value:e??``,onChange:e=>{p(e.target),t(e.target.value===``?null:parseFloat(e.target.value))},onBlur:h,placeholder:s?.placeholder||`0.00`,disabled:r||o.disabled,className:J(g?`pl-8`:``,f?Mj:``,a),min:typeof s?.min==`number`?s.min:void 0,max:typeof s?.max==`number`?s.max:void 0,step:(10**-d).toFixed(d),"aria-invalid":!!i||!!f})]}),(0,q.jsx)(jj,{refusal:f})]})}var Rj=t({PercentField:()=>Bj}),zj=e=>{if(!Number.isFinite(e))return e;let[t,n]=String(e).split(`e`);return Number(`${t}e${n?Number(n)-2:-2}`)};function Bj({value:e,onChange:t,field:n,readonly:r,error:i,className:a,...o}){let s=n,c=s?.scale,l=LA(typeof c==`number`?c:2),{refusal:u,readBadInput:d}=Aj(`12.5`),f=typeof s?.max==`number`?s.max:void 0,p=f!=null&&f>1,m=e=>p?e:e*100,h=e=>p?e:zj(e),g=p?f:100;if(r)return e==null?(0,q.jsx)($,{}):(0,q.jsxs)(`span`,{className:`text-sm font-medium tabular-nums`,children:[m(e).toFixed(l),`%`]});let _=e==null?``:m(e),v=e==null?0:m(e),y=e=>{if(d(e.target),e.target.value===``){t(null);return}let n=parseFloat(e.target.value);t(isNaN(n)?null:h(n))},b=bj(o),x=e=>{d(e.target),b.onBlur?.(e)},S=e=>{if(r||o.disabled)return;if(!Array.isArray(e)||e.length===0){t(null);return}let n=e[0];t(typeof n==`number`?h(n):null)},C=10**-l;return(0,q.jsxs)(`div`,{className:`space-y-2`,children:[(0,q.jsxs)(`div`,{className:`relative`,children:[(0,q.jsx)(Fv,{...b,type:`number`,value:_,onChange:y,onBlur:x,placeholder:s?.placeholder||`0`,disabled:r||o.disabled,className:J(`pr-8`,u?Mj:``,a),step:(10**-l).toFixed(l),"aria-invalid":!!i||!!u}),(0,q.jsx)(`span`,{className:`absolute right-3 top-1/2 -translate-y-1/2 text-sm text-gray-500`,children:`%`})]}),(0,q.jsx)(jj,{refusal:u}),(0,q.jsx)(Db,{value:[v],onValueChange:S,min:0,max:g,step:C,disabled:r||o.disabled,className:`w-full`,"aria-label":`Percentage`,"data-testid":`percent-slider`})]})}function Vj(e,t){let{id:n,"aria-labelledby":r,"aria-describedby":i}=bj(e);return{id:n,"aria-labelledby":r,...t===`instead-of-the-inputs`?{"aria-describedby":i}:null,...r==null?null:{role:`group`}}}function Hj(e){let{id:t,"aria-describedby":n}=bj(e);return{id:t,"aria-describedby":n}}var Uj=t({SliderField:()=>Wj});function Wj({value:e,onChange:t,field:n,readonly:r,error:i,...a}){let o=n,s=o?.min??0,c=o?.max??100,l=o?.step??1;if(r)return(0,q.jsxs)(`div`,{...Vj(a,`instead-of-the-inputs`),className:`flex items-center gap-2`,children:[(0,q.jsx)(`span`,{className:`text-sm font-medium`,children:e??s}),(0,q.jsxs)(`span`,{className:`text-xs text-muted-foreground`,children:[`/ `,c]})]});let{name:u,disabled:d,className:f,...p}=bj(a);return(0,q.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,q.jsx)(Db,{name:u,value:[e??s],onValueChange:e=>t(e[0]),min:s,max:c,step:l,disabled:r||a.disabled,className:a.className,thumbProps:{...p,"aria-invalid":!!i}}),(0,q.jsx)(`span`,{className:`text-sm font-medium w-12 text-right`,children:e??s})]})}var Gj=t({RatingField:()=>Kj});function Kj({value:e,onChange:t,field:n,readonly:r,className:i,error:a,...o}){let s=n?.max??5,c=e??0,[l,u]=K.useState(null),d=l===null?c:l;if(r)return(0,q.jsxs)(`div`,{...Vj(o,`instead-of-the-inputs`),className:J(`flex items-center gap-1`,i),children:[Array.from({length:s},(e,t)=>(0,q.jsx)(ha,{className:`w-5 h-5 ${t<c?`fill-yellow-400 text-yellow-400`:`text-muted-foreground`}`},t)),(0,q.jsxs)(`span`,{className:`ml-2 text-sm text-muted-foreground`,children:[c,` / `,s]})]});let{"aria-invalid":f,name:p,...m}=bj(o),h=m[`aria-labelledby`]!=null;return(0,q.jsxs)(`div`,{...m,role:h?`group`:void 0,className:J(`flex items-center gap-1`,i),children:[Array.from({length:s},(e,n)=>(0,q.jsx)(`button`,{type:`button`,onClick:()=>t(n+1),onMouseEnter:()=>u(n+1),onMouseLeave:()=>u(null),className:`focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 rounded`,disabled:r||o.disabled,"aria-invalid":!!a,children:(0,q.jsx)(ha,{className:`w-5 h-5 transition-colors ${n<d?`fill-yellow-400 text-yellow-400 hover:fill-yellow-500 hover:text-yellow-500`:`text-muted-foreground hover:text-yellow-400`}`})},n)),(0,q.jsxs)(`span`,{className:`ml-2 text-sm text-muted-foreground`,children:[c,` / `,s]})]})}var qj=t({BooleanField:()=>Jj});function Jj({value:e,onChange:t,field:n,readonly:r,error:i,...a}){let o=n,s=o?.widget,c=(0,K.useId)(),l=a.id,u=l||o?.name||c,d=o?.label||`Checkbox`,f=!l;if(r)return typeof e==`boolean`?(0,q.jsx)(`span`,{className:`text-sm`,children:e?`Yes`:`No`}):(0,q.jsx)($,{});let p=bj(a);return s===`checkbox`?(0,q.jsxs)(`div`,{className:`flex items-center space-x-2`,children:[(0,q.jsx)(ip,{...p,id:u,checked:!!e,onCheckedChange:e=>t(!!e),disabled:r||p.disabled,"aria-invalid":!!i}),f&&(0,q.jsx)(X_,{htmlFor:u,className:`sr-only`,children:d})]}):(0,q.jsxs)(`div`,{className:`flex items-center space-x-2`,children:[(0,q.jsx)(Nb,{...p,id:u,checked:!!e,onCheckedChange:t,disabled:r||p.disabled,"aria-invalid":!!i}),f&&(0,q.jsx)(X_,{htmlFor:u,className:`sr-only`,children:d})]})}function Yj({emptyHint:e,gated:t,dependsOnFields:n,testId:r,className:i,hostGroupProps:a,hostControlProps:o}){let{t:s}=Oj(),c=e||(t?s(`fields.options.selectFirst`,{fields:n.join(s(`validation.formInvalidJoiner`))}):s(`fields.options.empty`)),l=J(`flex w-full items-center rounded-md border border-input bg-muted/30 px-3 py-2 text-sm text-muted-foreground`,i);return o?(0,q.jsx)(`output`,{...o,"data-testid":r,className:l,children:c}):(0,q.jsx)(`div`,{...a,"data-testid":r,className:l,children:c})}function Xj(e,t,n){let r=(0,K.useMemo)(()=>n??{},[n]),i=ne();return(0,K.useMemo)(()=>dt(e,r,t,i),[e,r,t,i])}var Zj=t({MultiSelectField:()=>Qj});function Qj({value:e,onChange:t,field:n,readonly:r,className:i,dependentValues:a,dependsOn:o,emptyHint:s,dataSource:c,error:l,...u}){let d=n,f=d?.options||[],p=Array.isArray(e)?e:e==null?[]:[e],m=u.name||d?.name||u.id||``,{options:h,gated:g,dependsOnFields:_}=Xj(f,n?.dependsOn??o,a);(0,K.useEffect)(()=>{if(r||f.length===0||g||p.length===0)return;let e=p.filter(e=>h.some(t=>t.value===e));e.length!==p.length&&t(e)},[h,g]);let v=Vj(u,`instead-of-the-inputs`);if(r)return p.length===0?(0,q.jsx)($,{...v}):(0,q.jsx)(`div`,{...v,className:`flex flex-wrap gap-1`,children:p.map(e=>{let t=f.find(t=>t.value===e);return(0,q.jsx)(fs,{variant:`outline`,children:t?rt(t):e},e)})});if(h.length===0)return(0,q.jsx)(Yj,{emptyHint:s,gated:g,dependsOnFields:_,testId:m?`multiselect-empty-${m}`:void 0,className:`min-h-9`,hostGroupProps:v});let y=e=>{t(p.includes(e)?p.filter(t=>t!==e):[...p,e])},{"aria-invalid":b,name:x,...S}=bj(u),C=S[`aria-labelledby`]!=null;return(0,q.jsx)(`div`,{...S,role:C?`group`:void 0,className:J(`flex flex-wrap gap-1.5`,i),"data-testid":m?`multiselect-${m}`:void 0,children:h.map(e=>{let t=String(e.value),n=p.includes(t);return(0,q.jsx)(`button`,{type:`button`,onClick:()=>y(t),disabled:u.disabled,"aria-pressed":n,"aria-invalid":!!l,"data-testid":`multiselect-option-${e.value}`,className:J(`rounded-full border px-3 py-1 text-sm transition-colors`,n?`border-primary bg-primary text-primary-foreground`:`border-input bg-background text-foreground hover:bg-accent`),children:rt(e)},t)})})}var $j=t({SelectField:()=>eM});function eM(e){return e.field?.multiple?(0,q.jsx)(Qj,{...e}):(0,q.jsx)(tM,{...e})}function tM({value:e,onChange:t,field:n,readonly:r,error:i,dependentValues:a,dependsOn:o,emptyHint:s,dataSource:c,...l}){let u=n,d=u?.options||[],{t:f}=Oj(),p=l.name||u?.name||l.id||``,{options:m,gated:h,dependsOnFields:g}=Xj(d,n?.dependsOn??o,a);if((0,K.useEffect)(()=>{r||d.length!==0&&(h||e!=null&&e!==``&&(me(e,m)||t?.(null)))},[m,h]),r){let t=d.find(t=>t.value===e),n=t?rt(t):e;return n?(0,q.jsx)(`span`,{className:`text-sm`,children:n}):(0,q.jsx)($,{})}if(m.length===0)return(0,q.jsx)(Yj,{emptyHint:s,gated:h,dependsOnFields:g,testId:p?`select-empty-${p}`:void 0,className:`h-9`,hostControlProps:Hj(l)});let{name:_,disabled:v,...y}=bj(l);return(0,q.jsxs)(yy,{name:_,value:e===null?``:e,onValueChange:t,disabled:r||l.disabled,children:[(0,q.jsx)(xy,{...y,"data-testid":p?`select-trigger-${p}`:void 0,"aria-invalid":!!i,children:(0,q.jsx)(by,{placeholder:u?.placeholder||f(`common.selectOption`)})}),(0,q.jsx)(wy,{position:`popper`,children:m.map(e=>(0,q.jsx)(Ey,{value:e.value,"data-testid":`select-option-${e.value}`,children:rt(e)},e.value))})]})}var nM=t({RadioField:()=>rM});function rM({value:e,onChange:t,field:n,readonly:r,className:i,dependentValues:a,dependsOn:o,emptyHint:s,dataSource:c,error:l,...u}){let d=n,f=d?.options||[],p=(0,K.useId)(),m=u.name||d?.name||u.id||``,{options:h,gated:g,dependsOnFields:_}=Xj(f,n?.dependsOn??o,a);(0,K.useEffect)(()=>{r||f.length!==0&&(g||e!=null&&e!==``&&(me(e,h)||t?.(null)))},[h,g]);let v=Vj(u,`instead-of-the-inputs`);if(r){if(e==null||e===``)return(0,q.jsx)($,{...v});let t=f.find(t=>t.value===e);return(0,q.jsx)(`span`,{...v,className:`text-sm`,children:t?rt(t):String(e)})}return h.length===0?(0,q.jsx)(Yj,{emptyHint:s,gated:g,dependsOnFields:_,testId:m?`radio-empty-${m}`:void 0,className:`min-h-9`,hostGroupProps:v}):(0,q.jsx)(hy,{...bj(u),value:e??``,onValueChange:t,disabled:u.disabled,className:i,"aria-invalid":!!l,children:h.map(e=>{let t=String(e.value),n=`${p}-${t}`;return(0,q.jsxs)(`div`,{className:`flex items-center space-x-2`,children:[(0,q.jsx)(gy,{value:t,id:n,"data-testid":`radio-option-${t}`}),(0,q.jsx)(X_,{htmlFor:n,className:`font-normal`,children:rt(e)})]},t)})})}var iM=t({CheckboxesField:()=>aM});function aM({value:e,onChange:t,field:n,readonly:r,className:i,dependentValues:a,dependsOn:o,emptyHint:s,dataSource:c,error:l,...u}){let d=n,f=d?.options||[],p=Array.isArray(e)?e:e==null?[]:[e],m=(0,K.useId)(),h=u.name||d?.name||u.id||``,{options:g,gated:_,dependsOnFields:v}=Xj(f,n?.dependsOn??o,a);(0,K.useEffect)(()=>{if(r||f.length===0||_||p.length===0)return;let e=p.filter(e=>g.some(t=>t.value===e));e.length!==p.length&&t(e)},[g,_]);let y=Vj(u,`instead-of-the-inputs`);if(r)return p.length===0?(0,q.jsx)($,{...y}):(0,q.jsx)(`div`,{...y,className:`flex flex-wrap gap-1`,children:p.map(e=>{let t=f.find(t=>t.value===e);return(0,q.jsx)(fs,{variant:`outline`,children:t?rt(t):e},e)})});if(g.length===0)return(0,q.jsx)(Yj,{emptyHint:s,gated:_,dependsOnFields:v,testId:h?`checkboxes-empty-${h}`:void 0,className:`min-h-9`,hostGroupProps:y});let b=(e,n)=>{t(n?[...p.filter(t=>t!==e),e]:p.filter(t=>t!==e))},{"aria-invalid":x,name:S,...C}=bj(u),w=C[`aria-labelledby`]!=null;return(0,q.jsx)(`div`,{...C,role:w?`group`:void 0,className:i,"data-testid":h?`checkboxes-${h}`:void 0,children:g.map(e=>{let t=String(e.value),n=`${m}-${t}`;return(0,q.jsxs)(`div`,{className:`flex items-center space-x-2 py-0.5`,children:[(0,q.jsx)(ip,{id:n,checked:p.includes(t),onCheckedChange:e=>b(t,!!e),disabled:u.disabled,"aria-invalid":!!l,"data-testid":`checkboxes-option-${t}`}),(0,q.jsx)(X_,{htmlFor:n,className:`font-normal`,children:rt(e)})]},t)})})}var oM=t({TagsField:()=>sM});function sM({value:e,onChange:t,field:n,readonly:r,className:i,error:a,...o}){let s=Array.isArray(e)?e:e==null?[]:[e],[c,l]=K.useState(``),{t:u}=Oj();if(r)return s.length===0?(0,q.jsx)($,{}):(0,q.jsx)(`div`,{className:`flex flex-wrap gap-1`,children:s.map(e=>(0,q.jsx)(fs,{variant:`secondary`,children:e},e))});let d=e=>{let n=e.trim();n&&!s.includes(n)&&(t([...s,n]),l(``))},f=e=>t(s.filter(t=>t!==e)),p=bj(o),m=e=>{d(c),p.onBlur?.(e)},h=e=>{e.key===`Enter`||e.key===`,`?(e.preventDefault(),d(c)):e.key===`Backspace`&&c===``&&s.length>0&&f(s[s.length-1])};return(0,q.jsxs)(`div`,{className:J(`flex flex-wrap items-center gap-1.5 rounded-md border border-input bg-background p-1.5`,i),children:[s.map(e=>(0,q.jsxs)(fs,{variant:`secondary`,className:`gap-1`,children:[e,(0,q.jsx)(`button`,{type:`button`,onClick:()=>f(e),className:`ml-0.5 rounded-full text-muted-foreground hover:text-foreground`,"aria-label":`Remove ${e}`,children:`×`})]},e)),(0,q.jsx)(Fv,{...p,value:c,onChange:e=>l(e.target.value),onKeyDown:h,onBlur:m,disabled:o.disabled,placeholder:s.length===0?n?.placeholder||u(`fields.tags.placeholder`):``,className:`h-7 flex-1 border-0 bg-transparent p-0 px-1 shadow-none focus-visible:ring-0 min-w-[8ch]`,"aria-invalid":!!a})]})}function cM(e){if(!(e.disabled||e.readOnly))try{e.showPicker?.()}catch{}}var lM=t({DateField:()=>uM});function uM({value:e,onChange:t,field:n,readonly:r,error:i,...a}){let o=St(),{t:s}=Oj(),c=K.useId();if(r)return!e||isNaN(nt(e).getTime())?(0,q.jsx)($,{}):(0,q.jsx)(`span`,{className:`text-sm`,children:qe(e,void 0,{locale:o})});let l=bj(a),u=et(e),d=u?[l[`aria-describedby`],c].filter(Boolean).join(` `):l[`aria-describedby`],f=(0,q.jsx)(Fv,{...l,type:`date`,value:u?``:Ce(e),onChange:e=>t(e.target.value),onClick:e=>{cM(e.currentTarget),l.onClick?.(e)},disabled:r||l.disabled,"aria-invalid":!!i||u,"aria-describedby":d});return u?(0,q.jsxs)(`div`,{className:`space-y-1`,children:[f,(0,q.jsx)(`p`,{id:c,className:`text-xs text-destructive`,"data-testid":`date-impossible-day`,children:s(`fields.date.impossibleDay`,{value:String(e)})})]}):f}var dM=t({DateTimeField:()=>fM});function fM({value:e,onChange:t,field:n,readonly:r,error:i,...a}){let o=St(),{t:s}=Oj(),c=K.useId();if(r)return e?(0,q.jsx)(`span`,{className:`text-sm`,children:We(e,{locale:o})}):(0,q.jsx)($,{});let l=bj(a),u=et(e),d=u?[l[`aria-describedby`],c].filter(Boolean).join(` `):l[`aria-describedby`],f=(0,q.jsx)(Fv,{...l,type:`datetime-local`,value:Ee(e),onChange:e=>t(Ue(e.target.value)),onClick:e=>{cM(e.currentTarget),l.onClick?.(e)},disabled:r||l.disabled,"aria-invalid":!!i||u,"aria-describedby":d});return u?(0,q.jsxs)(`div`,{className:`space-y-1`,children:[f,(0,q.jsx)(`p`,{id:c,className:`text-xs text-destructive`,"data-testid":`datetime-impossible-day`,children:s(`fields.dateTime.impossibleDay`,{value:String(e)})})]}):f}var pM=t({TimeField:()=>mM});function mM({value:e,onChange:t,field:n,readonly:r,error:i,...a}){if(r)return(0,q.jsx)(`span`,{className:`text-sm`,children:e||(0,q.jsx)($,{})});let o=bj(a);return(0,q.jsx)(Fv,{...o,type:`time`,value:e||``,onChange:e=>t(e.target.value),onClick:e=>{cM(e.currentTarget),o.onClick?.(e)},disabled:r||o.disabled,"aria-invalid":!!i})}var hM=t({EmailField:()=>gM});function gM({value:e,onChange:t,field:n,readonly:r,error:i,...a}){let o=n;if(r)return e?(0,q.jsx)(`a`,{href:`mailto:${e}`,className:`text-sm text-blue-600 hover:text-blue-800 hover:underline`,children:e}):(0,q.jsx)($,{});let s=bj(a);return(0,q.jsx)(Fv,{...s,type:`email`,value:e||``,onChange:e=>t(e.target.value),placeholder:o?.placeholder||`email@example.com`,disabled:r||s.disabled,"aria-invalid":!!i})}var _M=t({PhoneField:()=>vM});function vM({value:e,onChange:t,field:n,readonly:r,error:i,...a}){let o=n;if(r)return e?(0,q.jsx)(`a`,{href:`tel:${e}`,className:`text-sm text-blue-600 hover:text-blue-800 hover:underline`,children:e}):(0,q.jsx)($,{});let s=bj(a);return(0,q.jsx)(Fv,{...s,type:`tel`,value:e||``,onChange:e=>t(e.target.value),placeholder:o?.placeholder||`(555) 123-4567`,disabled:r||s.disabled,"aria-invalid":!!i})}var yM=t({UrlField:()=>bM});function bM({value:e,onChange:t,field:n,readonly:r,error:i,...a}){let o=n;if(r)return e?e.startsWith(`http://`)||e.startsWith(`https://`)?(0,q.jsx)(`a`,{href:e,target:`_blank`,rel:`noopener noreferrer`,className:`text-sm text-blue-600 hover:text-blue-800 hover:underline`,children:e}):(0,q.jsx)(`span`,{className:`text-sm`,children:e}):(0,q.jsx)($,{});let s=bj(a);return(0,q.jsx)(Fv,{...s,type:`url`,value:e||``,onChange:e=>t(e.target.value),placeholder:o?.placeholder||`https://example.com`,disabled:r||s.disabled,"aria-invalid":!!i})}function xM(e){return e==null?!1:Array.isArray(e)?e.length>0:typeof e==`object`&&Object.keys(e).length>0}function SM(e){let{dataSource:t,objectName:n,enabled:r=!0,pageSize:i=50,paginate:a=!1,filter:o,expand:s,searchFields:c,debounceMs:l=300}=e,[u,d]=(0,K.useState)([]),[f,p]=(0,K.useState)(!1),[m,h]=(0,K.useState)(null),[g,_]=(0,K.useState)(0),[v,y]=(0,K.useState)(1),[b,x]=(0,K.useState)(``),[S,C]=(0,K.useState)(null),w=(0,K.useRef)(null),T=(0,K.useRef)(0),E=(0,K.useCallback)(()=>{w.current&&=(clearTimeout(w.current),null)},[]),D=(0,K.useMemo)(()=>xM(o)?JSON.stringify(o):``,[o]),O=(0,K.useMemo)(()=>s?.length?s.join(`,`):``,[s]),k=(0,K.useMemo)(()=>c?.length?c.join(`,`):``,[c]),A=!!r&&!!t&&typeof t.find==`function`&&!!n,j=(0,K.useCallback)(async(e,r,l)=>{if(!A||!t||!n)return;let u=++T.current,f=()=>T.current===u;p(!0),h(null);try{let u={$top:i};a&&(u.$skip=(r-1)*i),e&&e.trim()&&(u.$search=e.trim()),c&&c.length>0&&(u.$searchFields=c),l&&(u.$orderby={[l.field]:l.direction}),xM(o)&&(u.$filter=o),s&&s.length>0&&(u.$expand=s);let p=await t.find(n,u);if(!f())return;let m=p?.data??p??[];d(m),_(p?.total??m.length)}catch(e){if(!f())return;h(e instanceof Error?e.message:String(e)),d([])}finally{f()&&p(!1)}},[A,t,n,i,a,D,O,k]);(0,K.useEffect)(()=>{A&&j(b,v,S)},[A,v,S,j]);let M=(0,K.useCallback)(()=>{T.current+=1,E(),p(!1),d([]),h(null),x(``),y(1),C(null)},[E]);(0,K.useEffect)(()=>{A||M()},[A,M]),(0,K.useEffect)(()=>()=>E(),[j,v,S,E]);let N=(0,K.useCallback)(e=>{x(e),y(1),E(),w.current=setTimeout(()=>{j(e,1,S)},l)},[j,S,l,E]),P=(0,K.useCallback)(e=>{y(e)},[]),F=(0,K.useCallback)(e=>{C(t=>t&&t.field===e?{field:e,direction:t.direction===`asc`?`desc`:`asc`}:{field:e,direction:`asc`}),y(1)},[]),I=(0,K.useCallback)(e=>{C(e),y(1)},[]),L=(0,K.useCallback)(()=>{j(b,v,S)},[j,b,v,S]);return{records:u,loading:f,error:m,total:g,totalPages:Math.max(1,Math.ceil(g/Math.max(1,i))),page:v,search:b,sort:S,setPage:P,setSearch:N,toggleSort:F,setSort:I,reset:M,refetch:L}}function CM(e){return typeof e==`string`?{field:e}:e}function wM(e){return e.replace(/_/g,` `).replace(/([a-z])([A-Z])/g,`$1 $2`).replace(/\b\w/g,e=>e.toUpperCase())}function TM(e,t,n,r){let i=e?.options;if(!Array.isArray(i)||i.length===0)return;let a=i;return t?r(t,n,a):a}function EM(e,t,n,r){let i={};for(let a of e){let e=t?.[a.field],o=a.type??e?.type;if(!o)continue;let s=e?{...e,name:a.field,type:o}:{name:a.field,type:o},c=TM(e,n,a.field,r);c&&(s.options=c),i[a.field]=s}return i}function DM(e,t,n){let{descriptors:r,cellRenderer:i,objectSchema:a,titleField:o,displayField:s,displayLocale:c}=n;if(a&&t.field===s){let t=B(a,e,{titleField:o}),n=e?.id??e?._id;if(!(t===`Untitled`||n!=null&&t===`Record #${n}`))return t}let l=e?.[t.field],u=r[t.field];if(u&&i){let e=i(u.type);if(e)return(0,q.jsx)(e,{value:l,field:u})}return l==null?``:typeof l==`object`?l.$numberDecimal?String(Number(l.$numberDecimal)):l.$oid?String(l.$oid):l.$date?qe(l.$date,void 0,{locale:c}):l.name||l.label?String(l.name||l.label):JSON.stringify(l):typeof l==`boolean`?l?`Yes`:`No`:String(l)}var OM=10,kM=60,AM=5;function jM(e){let t={};for(let n of e)switch(n.operator){case`eq`:t[n.field]=n.value;break;case`ne`:t[n.field]={$ne:n.value};break;case`gt`:t[n.field]={$gt:n.value};break;case`lt`:t[n.field]={$lt:n.value};break;case`gte`:t[n.field]={$gte:n.value};break;case`lte`:t[n.field]={$lte:n.value};break;case`contains`:t[n.field]={$contains:n.value};break;case`in`:t[n.field]={$in:n.value};break;case`notIn`:t[n.field]={$nin:n.value}}return t}function MM(e){return e==null?void 0:String(e)}function NM(e,t){let n=e?.find(e=>String(e.value)===t);return n?n.value:t}function PM(e,t){let n={};for(let r of t){let t=e[r.field];t!=null&&t!==``&&(r.type===`boolean`?n[r.field]=!!t:r.type===`text`?n[r.field]={$contains:t}:n[r.field]=t)}return n}function FM({open:e,onOpenChange:t,title:n=`Select Record`,multiple:r=!1,dataSource:i,objectName:a,columns:o,displayField:s,objectSchema:c,idField:l=`id`,pageSize:u=OM,value:d,onSelect:f,onSelectRecords:p,lookupFilters:m,baseFilter:g,cellRenderer:_,fieldsMeta:v,filterColumns:y,renderFilterBar:x,renderGrid:S}){let C=s??`name`,{t:w}=Oj(),{translateOptions:T}=xt(),E=St(),[D,O]=(0,K.useState)(new Set),k=(0,K.useRef)(new Map),[A,j]=(0,K.useState)(-1),M=(0,K.useRef)(null),[N,P]=(0,K.useState)(!1),[F,I]=(0,K.useState)({}),[L,ee]=(0,K.useState)({}),R=(0,K.useRef)(null),[te,z]=(0,K.useState)(``),B=(0,K.useMemo)(()=>o&&o.length>0?o.map(CM):[{field:C,label:wM(C)}],[o,C]),ne=(0,K.useMemo)(()=>EM(B,v,a,T),[B,v,a,T]),V=OA(),ie=(0,K.useMemo)(()=>{let e=B.filter(e=>e.field!==l);if(e.length===0)return[];let t=ot(v,e);return V.isLoaded?t.filter(e=>V.checkField(a,e,`read`)):t},[v,B,l,V,a]),ae=(0,K.useMemo)(()=>{if(!V.isLoaded)return B;let e=B.filter(e=>e.field===l||V.checkField(a,e.field,`read`));return e.length>0?e:[{field:l,label:wM(l)}]},[B,V,a,l]),H=(0,K.useMemo)(()=>{if(y&&y.length>0)return y;if(m&&m.length>0)return m.map(e=>{let t=`text`;return typeof e.value==`boolean`?t=`boolean`:Array.isArray(e.value)?t=`select`:typeof e.value==`number`||e.operator===`gt`||e.operator===`lt`||e.operator===`gte`||e.operator===`lte`?t=`number`:(e.operator===`in`||e.operator===`notIn`)&&(t=`select`),{field:e.field,label:wM(e.field),type:t,...Array.isArray(e.value)?{options:e.value.map(e=>{if(typeof e==`object`&&e){let t=e;return{label:String(t.name||t.label||t.title||e),value:e}}return{label:String(e),value:e}})}:{}}})},[y,m]),oe=(0,K.useMemo)(()=>{if(H)return H.map(e=>{if(e.type!==`select`||e.options&&e.options.length>0)return e;let t=TM(v?.[e.field],a,e.field,T);return t?{...e,options:t}:e})},[H,v,a,T]),U=(0,K.useMemo)(()=>{let e=m?.length?jM(m):{},t=oe?.length?PM(F,oe):{},n=Array.isArray(g)?g:void 0,r=n?void 0:g,i={...e,...t,...r??{}},a=Object.keys(i).length>0?i:void 0;if(!n)return{ok:!0,node:a};let o=re(a);if(!o.ok)return o;let s=re(n);return s.ok?{ok:!0,node:le(o.node,s.node)}:s},[m,oe,F,g]),se=U.ok?void 0:U.refusal,W=SM({dataSource:i,objectName:a,enabled:e&&U.ok,pageSize:u,paginate:!0,filter:U.ok?U.node:void 0,expand:ie}),{records:G,loading:ce}=W,ue=se?se.message:W.error,de=W.total,fe=W.totalPages,pe=W.search,me=W.page,he=W.sort?.field??null,ge=W.sort?.direction??`asc`,_e=W.setPage,ve=W.toggleSort,ye=W.setSearch;(0,K.useEffect)(()=>{e||(j(-1),P(!1),I({}),ee({}),z(``),O(new Set(r&&Array.isArray(d)?d:[])),k.current.clear())},[e]),(0,K.useEffect)(()=>{e&&r&&O(new Set(Array.isArray(d)?d:[]))},[e,r,d]),(0,K.useEffect)(()=>{j(-1)},[G]);let be=(0,K.useCallback)(e=>e[l]??e.id??e._id,[l]),xe=(0,K.useCallback)(e=>{let t=be(e);return r?D.has(t):d===t},[r,d,D,be]),Se=(0,K.useCallback)(e=>{let n=be(e),i=b(e,v);r?O(e=>{let t=new Set(e);return t.has(n)?(t.delete(n),k.current.delete(n)):(t.add(n),k.current.set(n,i)),t}):(f(n),p?.([i]),t(!1))},[r,be,v,f,p,t]),Ce=(0,K.useCallback)(()=>{let e=Array.from(D);f(e);let n=e.map(e=>k.current.get(e)).filter(Boolean);p?.(n),t(!1)},[D,f,p,t]),we=(0,K.useCallback)(()=>{_e(Math.max(1,me-1))},[_e,me]),Te=(0,K.useCallback)(()=>{_e(Math.min(fe,me+1))},[_e,me,fe]),Ee=(0,K.useCallback)(e=>{if(e.key!==`Enter`)return;let t=parseInt(te,10);!isNaN(t)&&t>=1&&t<=fe&&_e(t),z(``)},[te,fe]),De=(0,K.useCallback)(e=>{G.length!==0&&(e.key===`ArrowDown`?(e.preventDefault(),j(e=>Math.min(e+1,G.length-1))):e.key===`ArrowUp`?(e.preventDefault(),j(e=>Math.max(e-1,0))):(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),A>=0&&A<G.length&&Se(G[A])))},[G,A,Se]);(0,K.useEffect)(()=>{if(A>=0&&M.current){let e=M.current.querySelector(`[data-row-index="${A}"]`);e&&typeof e.scrollIntoView==`function`&&e.scrollIntoView({block:`nearest`})}},[A]);let Oe=(0,K.useCallback)((e,t)=>DM(c&&t.field===C?h(b(e,v),V,a,[l]):e,t,{descriptors:ne,cellRenderer:_,objectSchema:c,titleField:s,displayField:C,displayLocale:E}),[_,c,s,C,v,ne,E,V,a,l]),ke=(0,K.useCallback)(e=>he===e?ge===`asc`?(0,q.jsx)(ci,{className:`ml-1 size-3`}):(0,q.jsx)(ii,{className:`ml-1 size-3`}):(0,q.jsx)(si,{className:`ml-1 size-3 opacity-40`}),[he,ge]),Ae=(0,K.useCallback)((e,t,n)=>{e.preventDefault(),e.stopPropagation(),R.current={field:t,startX:e.clientX,startWidth:n};let r=e=>{if(!R.current)return;let t=e.clientX-R.current.startX,n=Math.max(kM,R.current.startWidth+t);ee(e=>({...e,[R.current.field]:n}))},i=()=>{R.current=null,document.removeEventListener(`mousemove`,r),document.removeEventListener(`mouseup`,i)};document.addEventListener(`mousemove`,r),document.addEventListener(`mouseup`,i)},[]),je=(0,K.useCallback)((e,t)=>{I(n=>({...n,[e]:t})),_e(1)},[]),Me=(0,K.useCallback)(()=>{I({}),_e(1)},[]),Ne=(0,K.useMemo)(()=>Object.values(F).filter(e=>e!=null&&e!==``).length,[F]),Pe=(0,K.useCallback)(e=>{let t=F[e.field],n=e.label||wM(e.field);switch(e.type){case`select`:return(0,q.jsxs)(`div`,{className:`space-y-1`,children:[(0,q.jsx)(X_,{className:`text-xs text-muted-foreground`,children:n}),(0,q.jsxs)(yy,{value:MM(t)??``,onValueChange:t=>je(e.field,NM(e.options,t)),children:[(0,q.jsx)(xy,{className:`h-8 text-xs`,children:(0,q.jsx)(by,{placeholder:w(`lookup.filterPlaceholder`,{label:n})})}),(0,q.jsx)(wy,{children:e.options?.map(e=>(0,q.jsx)(Ey,{value:String(e.value),children:e.label},String(e.value)))})]})]});case`number`:return(0,q.jsxs)(`div`,{className:`space-y-1`,children:[(0,q.jsx)(X_,{className:`text-xs text-muted-foreground`,children:n}),(0,q.jsx)(Fv,{type:`number`,className:`h-8 text-xs`,value:t??``,placeholder:w(`lookup.filterPlaceholder`,{label:n}),onChange:t=>{let n=t.target.value;je(e.field,n===``?``:Number(n))}})]});case`date`:return(0,q.jsxs)(`div`,{className:`space-y-1`,children:[(0,q.jsx)(X_,{className:`text-xs text-muted-foreground`,children:n}),(0,q.jsx)(Fv,{type:`date`,className:`h-8 text-xs`,value:t??``,onChange:t=>je(e.field,t.target.value)})]});case`boolean`:return(0,q.jsxs)(`div`,{className:`space-y-1`,children:[(0,q.jsx)(X_,{className:`text-xs text-muted-foreground`,children:n}),(0,q.jsxs)(`div`,{className:`flex items-center gap-2 h-8`,children:[(0,q.jsx)(ip,{checked:!!t,onCheckedChange:t=>je(e.field,!!t)}),(0,q.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:w(`lookup.yes`)})]})]});default:return(0,q.jsxs)(`div`,{className:`space-y-1`,children:[(0,q.jsx)(X_,{className:`text-xs text-muted-foreground`,children:n}),(0,q.jsx)(Fv,{className:`h-8 text-xs`,value:t??``,placeholder:w(`lookup.filterPlaceholder`,{label:n}),onChange:t=>je(e.field,t.target.value)})]})}},[F,je]),Fe=(0,K.useCallback)((e,t)=>e?`bg-primary/5 hover:bg-primary/10`:t%2==1?`bg-muted/20 hover:bg-accent/30`:`hover:bg-accent/30`,[]);return(0,q.jsx)(am,{open:e,onOpenChange:t,children:(0,q.jsxs)(lm,{className:`w-[95vw] sm:max-w-3xl lg:max-w-5xl max-h-[85vh] sm:max-h-[80vh] flex flex-col gap-0`,"data-testid":`record-picker-dialog`,children:[(0,q.jsx)(um,{children:(0,q.jsxs)(fm,{children:[n,r&&(0,q.jsx)(`span`,{className:`sr-only`,children:` (multiple selection)`})]})}),(0,q.jsxs)(`div`,{className:`relative rounded-md border bg-muted/30 mb-3`,children:[(0,q.jsx)(ca,{className:`absolute left-3 top-1/2 -translate-y-1/2 size-4 text-muted-foreground`}),(0,q.jsx)(Fv,{placeholder:w(`table.search`),value:pe,onChange:e=>ye(e.target.value),className:`pl-9 border-0 bg-transparent shadow-none focus-visible:ring-0`,"data-testid":`record-picker-search`}),ce&&(0,q.jsx)(qi,{className:`absolute right-3 top-1/2 -translate-y-1/2 size-4 animate-spin text-muted-foreground`,"data-testid":`record-picker-loading-indicator`})]}),oe&&oe.length>0&&(0,q.jsx)(`div`,{className:`py-2`,children:x?(0,q.jsx)(`div`,{"data-testid":`record-picker-filter-bar`,children:x({filterColumns:oe,values:F,onChange:je,onClear:Me,activeCount:Ne})}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`div`,{className:`flex items-center gap-2`,"data-testid":`record-picker-filter-bar`,children:[(0,q.jsxs)(X,{type:`button`,variant:Ne>0?`secondary`:`outline`,size:`sm`,className:`gap-1.5 shrink-0`,onClick:()=>P(e=>!e),children:[(0,q.jsx)(fa,{className:`size-3.5`}),w(`lookup.filters`),Ne>0&&(0,q.jsx)(`span`,{className:`inline-flex h-5 min-w-[20px] items-center justify-center rounded-full bg-primary/10 px-1 text-xs font-medium text-primary`,children:Ne})]}),Ne>0&&(0,q.jsxs)(X,{type:`button`,variant:`ghost`,size:`sm`,className:`gap-1 text-xs`,onClick:Me,children:[(0,q.jsx)(wa,{className:`size-3`}),w(`lookup.clear`)]})]}),N&&(0,q.jsx)(`div`,{className:`mt-2 grid gap-3 sm:grid-cols-2 lg:grid-cols-3 border rounded-md p-3 bg-muted/30`,"data-testid":`record-picker-filter-panel`,children:oe.map(e=>(0,q.jsx)(`div`,{children:Pe(e)},e.field))})]})}),ue&&(0,q.jsxs)(`div`,{className:`flex flex-col items-center gap-2 py-4`,role:`alert`,children:[(0,q.jsx)(bi,{className:`size-5 text-destructive`}),(0,q.jsx)(`p`,{className:`text-sm text-destructive`,children:ue}),se?null:(0,q.jsx)(X,{variant:`outline`,size:`sm`,onClick:()=>W.refetch(),type:`button`,children:w(`lookup.retry`)})]}),S?(0,q.jsx)(`div`,{className:`flex-1 min-h-0`,"data-testid":`record-picker-grid-slot`,children:S({columns:ae,records:G,loading:ce,totalCount:de,currentPage:me,pageSize:u,sortField:he,sortDirection:ge,onSort:ve,onPageChange:_e,onRowClick:Se,isSelected:xe,multiple:r,idField:l,cellRenderer:_})}):(0,q.jsxs)(q.Fragment,{children:[ce&&G.length===0&&!ue&&(0,q.jsx)(`div`,{className:`flex-1 overflow-hidden min-h-0 border rounded-md`,role:`status`,"aria-live":`polite`,"data-testid":`record-picker-skeleton`,children:(0,q.jsxs)(Pb,{children:[(0,q.jsx)(Fb,{children:(0,q.jsxs)(Rb,{className:`bg-muted/40`,children:[r&&(0,q.jsx)(zb,{className:`w-10`}),ae.map(e=>(0,q.jsx)(zb,{children:(0,q.jsx)(Uy,{className:`h-4 w-20`})},e.field))]})}),(0,q.jsx)(Ib,{children:Array.from({length:AM},(e,t)=>(0,q.jsxs)(Rb,{children:[r&&(0,q.jsx)(Bb,{className:`w-10`,children:(0,q.jsx)(Uy,{className:`size-4 rounded`})}),ae.map(e=>(0,q.jsx)(Bb,{children:(0,q.jsx)(Uy,{className:`h-4 w-full`})},e.field))]},t))})]})}),!ce&&!ue&&G.length===0&&(0,q.jsx)(`div`,{className:`py-8 text-center`,children:(0,q.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:w(`lookup.noRecords`)})}),!ue&&G.length>0&&(0,q.jsxs)(`div`,{className:`relative flex-1 overflow-auto min-h-0 border rounded-md`,"aria-busy":ce||void 0,"data-state":ce?`loading`:`idle`,tabIndex:0,onKeyDown:De,role:`grid`,"aria-label":`Records`,children:[ce&&(0,q.jsx)(`div`,{className:`absolute inset-0 z-10 flex items-center justify-center bg-background/60`,"data-testid":`record-picker-loading-overlay`,children:(0,q.jsx)(qi,{className:`size-6 animate-spin text-muted-foreground`})}),(0,q.jsxs)(Pb,{style:Object.keys(L).length>0?{tableLayout:`fixed`}:void 0,children:[(0,q.jsx)(Fb,{className:`sticky top-0 z-[5] bg-muted/50 [&_tr]:border-b`,"data-testid":`record-picker-sticky-header`,children:(0,q.jsxs)(Rb,{children:[r&&(0,q.jsx)(zb,{className:`w-10`}),ae.map(e=>{let t=L[e.field],n=t?{width:`${t}px`,minWidth:`${t}px`}:e.width?{width:e.width}:void 0;return(0,q.jsxs)(zb,{style:n,className:`cursor-pointer select-none relative group text-xs font-semibold uppercase tracking-wider`,onClick:()=>ve(e.field),"aria-sort":he===e.field?ge===`asc`?`ascending`:`descending`:`none`,children:[(0,q.jsxs)(`span`,{className:`inline-flex items-center`,children:[e.label||wM(e.field),ke(e.field)]}),(0,q.jsx)(`span`,{role:`separator`,"aria-orientation":`vertical`,className:`absolute right-0 top-0 bottom-0 w-1 cursor-col-resize opacity-0 group-hover:opacity-100 bg-border hover:bg-primary/50 transition-opacity`,onMouseDown:t=>{let n=t.currentTarget.parentElement?.getBoundingClientRect();Ae(t,e.field,n?.width??100)},onClick:e=>e.stopPropagation(),"data-testid":`resize-handle-${e.field}`})]},e.field)})]})}),(0,q.jsx)(Ib,{ref:M,children:G.map((e,t)=>{let n=be(e),i=xe(e),a=t===A;return(0,q.jsxs)(Rb,{"data-row-index":t,className:J(`cursor-pointer transition-colors`,Fe(i,t),a&&`ring-2 ring-primary ring-inset`),onClick:()=>Se(e),"data-testid":`record-row-${n}`,"aria-selected":i,children:[r&&(0,q.jsx)(Bb,{className:`w-10`,children:i&&(0,q.jsx)(fi,{className:`size-4 text-primary`})}),ae.map(t=>(0,q.jsx)(Bb,{className:`py-2.5`,"data-lookup-cell":t.field,children:Oe(e,t)},t.field))]},n??t)})})]})]}),!ue&&de>0&&(0,q.jsxs)(`div`,{className:`flex items-center justify-between text-sm text-muted-foreground border-t pt-3 mt-2 px-1`,"data-testid":`record-picker-pagination`,children:[(0,q.jsxs)(`span`,{children:[de===1?w(`lookup.recordCountOne`):w(`lookup.recordCount`,{count:de}),fe>1&&` · ${w(`lookup.pageOf`,{current:me,total:fe})}`]}),fe>1&&(0,q.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,q.jsx)(X,{variant:`outline`,size:`icon`,className:`size-7`,onClick:we,disabled:me<=1,type:`button`,"aria-label":w(`lookup.prevPage`),children:(0,q.jsx)(mi,{className:`size-4`})}),(0,q.jsx)(Fv,{className:`h-7 w-12 text-center text-xs px-1`,placeholder:String(me),value:te,onChange:e=>z(e.target.value),onKeyDown:Ee,"aria-label":w(`lookup.jumpToPage`),"data-testid":`record-picker-page-jump`}),(0,q.jsx)(X,{variant:`outline`,size:`icon`,className:`size-7`,onClick:Te,disabled:me>=fe,type:`button`,"aria-label":w(`lookup.nextPage`),children:(0,q.jsx)(hi,{className:`size-4`})})]})]})]}),r&&(0,q.jsx)(dm,{children:(0,q.jsxs)(`div`,{className:`flex items-center gap-2 w-full justify-between`,children:[(0,q.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:w(`table.selected`,{count:D.size})}),(0,q.jsxs)(`div`,{className:`flex gap-2`,children:[(0,q.jsx)(X,{variant:`outline`,type:`button`,onClick:()=>t(!1),children:w(`common.cancel`)}),(0,q.jsx)(X,{type:`button`,onClick:Ce,children:w(`common.confirm`)})]})]})})]})})}function IM(e,t){if(e&&t)return t.includes(`.`)?t.split(`.`).reduce((e,t)=>e==null?e:e[t],e):e[t]}function LM(e=`name`){return[e,`name`,`username`,`label`]}function RM(e,t=`name`){if(e==null)return``;if(typeof e!=`object`)return String(e);let n=typeof t==`string`?LM(t):t;for(let t of n)if(e[t]!=null)return String(e[t]);return``}function zM(e){let t=(e||``).trim();if(!t)return`?`;let n=t.split(/\s+/).filter(Boolean);if(n.length>=2)return(n[0][0]+n[n.length-1][0]).toUpperCase();let r=n[0];return/[㐀-鿿]/.test(r)?r.length<=2?r:r.slice(-2):r.slice(0,2).toUpperCase()}function BM(e,t){return!e||!t||t.length===0?``:t.map(t=>IM(e,t)).filter(e=>e!=null&&e!==``).map(e=>String(e)).join(` · `)}function VM(e,t=`image`){let n=e&&t?IM(e,t):void 0;return n?String(n):void 0}function HM(e,t=`id`){return!e||typeof e!=`object`?e:e[t]??e.id??e._id}function UM(e,t){let n=e??``,r=(t??``).trim().toLowerCase();if(!r||!n)return[];let i=n.toLowerCase(),a=[],o=0;for(;;){let e=i.indexOf(r,o);if(e===-1)break;a.push([e,e+r.length]),o=e+r.length}return a}function WM({text:e,query:t}){let n=t?UM(e,t):[];if(n.length===0)return(0,q.jsx)(q.Fragment,{children:e});let r=[],i=0;return n.forEach(([t,n],a)=>{t>i&&r.push(e.slice(i,t)),r.push((0,q.jsx)(`mark`,{className:`rounded-[2px] bg-primary/20 px-px text-inherit`,children:e.slice(t,n)},a)),i=n}),i<e.length&&r.push(e.slice(i)),(0,q.jsx)(q.Fragment,{children:r})}function GM({record:e,displayField:t=`name`,nameFields:n,subtitleFields:r,avatarField:i=`image`,selected:a=!1,active:o=!1,highlightQuery:s,onSelect:c,className:l}){let u=RM(e,n??t),d=BM(e,r),f=VM(e,i),p=zM(u),m=(0,K.useRef)(null);return(0,K.useEffect)(()=>{o&&m.current?.scrollIntoView?.({block:`nearest`})},[o]),(0,q.jsxs)(`button`,{ref:m,type:`button`,tabIndex:-1,onClick:()=>c?.(e),"aria-pressed":a,"data-testid":`person-row`,"data-active":o||void 0,className:J(`flex w-full items-center gap-3 rounded-md px-2 py-1.5 text-left transition-colors`,`hover:bg-accent focus-visible:outline-none`,a&&`bg-accent`,o&&`bg-accent ring-1 ring-inset ring-ring`,l),children:[(0,q.jsxs)(cs,{className:`size-9 shrink-0`,children:[f&&(0,q.jsx)(ls,{src:f,alt:u}),(0,q.jsx)(us,{className:`text-xs`,children:p})]}),(0,q.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,q.jsx)(`div`,{className:`truncate text-sm font-medium`,children:u?(0,q.jsx)(WM,{text:u,query:s}):`—`}),d&&(0,q.jsx)(`div`,{className:`truncate text-xs text-muted-foreground`,children:(0,q.jsx)(WM,{text:d,query:s})})]}),a&&(0,q.jsx)(fi,{className:`size-4 shrink-0 text-primary`,"aria-hidden":!0})]})}function KM({records:e,onRemove:t,displayField:n=`name`,nameFields:r,avatarField:i=`image`,idField:a=`id`,label:o,onClear:s,clearLabel:c,emptyText:l,className:u}){let d=!!o||!!s&&e.length>0;return(0,q.jsxs)(`div`,{className:J(`flex flex-col gap-1.5`,u),"data-testid":`selection-tray`,children:[d&&(0,q.jsxs)(`div`,{className:`flex items-center justify-between`,children:[o&&(0,q.jsx)(`div`,{className:`text-xs font-medium text-muted-foreground`,children:o}),s&&e.length>0&&(0,q.jsx)(`button`,{type:`button`,onClick:s,className:`text-xs text-muted-foreground transition-colors hover:text-foreground`,"data-testid":`selection-clear`,children:c??`Clear all`})]}),e.length===0?(0,q.jsx)(`div`,{className:`text-xs text-muted-foreground`,children:l??``}):(0,q.jsx)(`div`,{className:`flex flex-wrap gap-1.5`,children:e.map(e=>{let o=HM(e,a),s=RM(e,r??n),c=VM(e,i),l=zM(s);return(0,q.jsxs)(`span`,{"data-testid":`selection-chip`,className:`inline-flex items-center gap-1.5 rounded-full border bg-background py-0.5 pl-0.5 pr-1.5 text-sm`,children:[(0,q.jsxs)(cs,{className:`size-6 shrink-0`,children:[c&&(0,q.jsx)(ls,{src:c,alt:s}),(0,q.jsx)(us,{className:`text-[10px]`,children:l})]}),(0,q.jsx)(`span`,{className:`max-w-[10rem] truncate`,children:s||`—`}),(0,q.jsx)(`button`,{type:`button`,onClick:()=>t(o),"aria-label":`Remove ${s}`,className:`rounded-full p-0.5 text-muted-foreground transition-colors hover:bg-accent hover:text-foreground`,children:(0,q.jsx)(wa,{className:`size-3.5`,"aria-hidden":!0})})]},String(o))})})]})}var qM=`objectui:lookup:recent:`,JM=5;function YM(){try{return typeof localStorage<`u`?localStorage:null}catch{return null}}function XM(e){let t=YM();if(!e||!t)return[];try{let n=t.getItem(qM+e);if(!n)return[];let r=JSON.parse(n);return Array.isArray(r)?r.slice(0,JM):[]}catch{return[]}}function ZM(e,t){let n=YM();if(e&&t!=null&&t!==``&&n)try{let r=[t,...XM(e).filter(e=>e!==t)].slice(0,JM);n.setItem(qM+e,JSON.stringify(r))}catch{}}var QM=25,$M=6;function eN({open:e,onOpenChange:t,title:n,multiple:r=!1,dataSource:i,objectName:a,displayField:o=`name`,idField:s=`id`,subtitleFields:c,avatarField:l=`image`,expand:u,searchFields:d,pageSize:f=QM,lookupFilters:p,baseFilter:m,value:h,onSelect:g,onSelectRecords:_,inline:v=!1,trigger:y}){let{t:b}=Oj(),x=Vy(),S=(0,K.useMemo)(()=>{let e={...p?.length?jM(p):{},...m??{}};return Object.keys(e).length>0?e:void 0},[p,m]),C=OA(),w=(0,K.useMemo)(()=>{let e;if(u&&u.length)e=u;else{let t=new Set;(c??[]).forEach(e=>{e.includes(`.`)&&t.add(e.split(`.`)[0])}),e=Array.from(t)}let t=e.filter(e=>!C.isLoaded||C.checkField(a,e,`read`));return t.length?t:void 0},[u,c,C,a]),T=(0,K.useMemo)(()=>c?.filter(e=>!C.isLoaded||C.checkField(a,e.split(`.`)[0],`read`)),[c,C,a]),E=(0,K.useMemo)(()=>!C.isLoaded||C.checkField(a,l.split(`.`)[0],`read`)?l:null,[l,C,a]),D=(0,K.useMemo)(()=>LM(o).filter(e=>!C.isLoaded||C.checkField(a,e.split(`.`)[0],`read`)),[o,C,a]),O=SM({dataSource:i,objectName:a,enabled:e,pageSize:f,filter:S,expand:w,searchFields:d}),k=(0,K.useMemo)(()=>e?XM(a):[],[e,a]),A=(0,K.useMemo)(()=>r?Array.isArray(h)?h:[]:h!=null&&h!==``?[h]:[],[r,h]),j=SM({dataSource:i,objectName:a,enabled:e&&A.length>0,pageSize:Math.max(1,A.length),filter:{[s]:{$in:A}},expand:w}),M=(0,K.useMemo)(()=>{let e={[s]:{$in:k}};if(!S)return{ok:!0,node:e};let t=re(S);return t.ok?{ok:!0,node:le(t.node,e)}:t},[S,s,k]),N=M.ok?void 0:M.refusal,P=SM({dataSource:i,objectName:a,enabled:e&&k.length>0&&M.ok,pageSize:Math.max(1,k.length),filter:M.ok?M.node:void 0,expand:w}),F=(0,K.useMemo)(()=>{let e=new Map;for(let t of j.records)e.set(String(HM(t,s)),t);return e},[j.records,s]),[I,L]=(0,K.useState)([]),ee=(0,K.useRef)(!1),R=(0,K.useRef)(!1);(0,K.useEffect)(()=>{e||(ee.current=!1,R.current=!1,L([]))},[e]),(0,K.useEffect)(()=>{if(!e||ee.current)return;if(A.length===0){ee.current=!0;return}if(j.loading){R.current=!0;return}if(!R.current)return;let t=A.map(e=>F.get(String(e))).filter(Boolean);L(t),ee.current=!0},[e,A,j.loading,F]);let te=(0,K.useMemo)(()=>new Set(I.map(e=>String(HM(e,s)))),[I,s]),z=(0,K.useCallback)((e,n)=>{g(r?e:e[0]??null),_?.(n),e.forEach(e=>ZM(a,e)),t(!1)},[r,a,g,_,t]),B=(0,K.useCallback)(e=>{g(e.map(e=>HM(e,s))),_?.(e)},[g,_,s]),ne=(0,K.useCallback)(e=>{let t=HM(e,s);if(!r){z([t],[e]);return}let n=String(t),i=I.some(e=>String(HM(e,s))===n),o=i?I.filter(e=>String(HM(e,s))!==n):[...I,e];L(o),v&&(i||ZM(a,t),B(o))},[r,s,z,I,v,a,B]),V=(0,K.useCallback)(e=>{let t=String(e),n=I.filter(e=>String(HM(e,s))!==t);L(n),v&&B(n)},[s,I,v,B]),ie=(0,K.useCallback)(()=>{z(I.map(e=>HM(e,s)),I)},[z,I,s]),ae=O.search.trim().length>0,H=(0,K.useMemo)(()=>{if(ae)return[];let e=new Map(P.records.map(e=>[String(HM(e,s)),e]));return k.map(t=>e.get(String(t))).filter(Boolean)},[ae,k,P.records,s]),oe=(0,K.useMemo)(()=>{if(ae)return O.records;let e=new Set(k.map(String));return O.records.filter(t=>!e.has(String(HM(t,s))))},[ae,O.records,k,s]),U=(0,K.useMemo)(()=>[...H,...oe],[H,oe]),[se,W]=(0,K.useState)(-1),G=(0,K.useMemo)(()=>O.records.map(e=>String(HM(e,s))).join(`\0`),[O.records,s]),ce=`${O.search}\u0000${G}`,[ue,de]=(0,K.useState)(ce);ue!==ce&&(de(ce),W(-1)),(0,K.useEffect)(()=>{W(e=>e>=U.length?U.length-1:e)},[U.length]);let fe=(0,K.useCallback)(e=>{e.key===`ArrowDown`?(e.preventDefault(),W(e=>U.length?Math.min(U.length-1,e+1):-1)):e.key===`ArrowUp`?(e.preventDefault(),W(e=>Math.max(0,e-1))):e.key===`Enter`?se>=0&&se<U.length&&(e.preventDefault(),ne(U[se])):e.key===`Backspace`&&O.search.length===0&&r&&I.length>0&&V(HM(I[I.length-1],s))},[U,se,ne,O.search,r,I,V,s]),pe=O.error??N?.message??null,me=O.loading&&!pe&&O.records.length===0&&H.length===0,he=O.loading&&!me,ge=!O.loading&&!pe&&oe.length===0&&H.length===0,_e=(e,t)=>{let n=HM(e,s);return(0,q.jsx)(GM,{record:e,displayField:o,nameFields:D,subtitleFields:T,avatarField:E,selected:te.has(String(n)),active:t===se,highlightQuery:O.search,onSelect:ne},String(n))},ve=n||b(`lookup.selectRecord`),ye=(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`div`,{className:`relative`,children:[(0,q.jsx)(ca,{className:`pointer-events-none absolute left-2.5 top-1/2 size-4 -translate-y-1/2 text-muted-foreground`,"aria-hidden":!0}),(0,q.jsx)(Fv,{autoFocus:!x,value:O.search,onChange:e=>O.setSearch(e.target.value),onKeyDown:fe,placeholder:b(`table.search`),className:`px-8`,role:`combobox`,"aria-expanded":!0,"aria-controls":`people-picker-list`,"data-testid":`people-picker-search`}),O.loading&&(0,q.jsx)(qi,{className:`pointer-events-none absolute right-2.5 top-1/2 size-4 -translate-y-1/2 animate-spin text-muted-foreground`,"aria-hidden":!0})]}),(0,q.jsx)(_y,{className:`min-h-0 flex-1`,"data-testid":`people-picker-list`,children:(0,q.jsx)(`div`,{id:`people-picker-list`,role:`listbox`,"aria-busy":O.loading,className:J(`flex flex-col gap-0.5 pr-2 transition-opacity`,he&&`opacity-70`),children:pe?(0,q.jsxs)(`div`,{className:`flex flex-col items-center gap-2 py-8 text-center text-sm text-muted-foreground`,"data-testid":`people-picker-error`,children:[(0,q.jsx)(bi,{className:`size-5 text-destructive`,"aria-hidden":!0}),(0,q.jsx)(`span`,{className:`max-w-xs`,children:pe}),O.error?(0,q.jsx)(X,{type:`button`,variant:`outline`,size:`sm`,onClick:O.refetch,children:b(`lookup.retry`)}):null]}):me?Array.from({length:$M}).map((e,t)=>(0,q.jsxs)(`div`,{className:`flex items-center gap-3 px-2 py-1.5`,children:[(0,q.jsx)(Uy,{className:`size-9 shrink-0 rounded-full`}),(0,q.jsxs)(`div`,{className:`flex-1 space-y-1.5`,children:[(0,q.jsx)(Uy,{className:`h-3 w-1/3`}),(0,q.jsx)(Uy,{className:`h-2.5 w-1/2`})]})]},t)):(0,q.jsxs)(q.Fragment,{children:[H.length>0&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`div`,{className:`px-2 py-1 text-xs font-medium text-muted-foreground`,children:b(`lookup.recentlyUsed`)}),H.map((e,t)=>_e(e,t)),oe.length>0&&(0,q.jsxs)(`div`,{className:`mt-1 flex items-center gap-1.5 px-2 py-1 text-xs font-medium text-muted-foreground`,children:[(0,q.jsx)(`span`,{children:b(`lookup.allResults`)}),(0,q.jsxs)(`span`,{className:`font-normal opacity-70`,children:[`· `,O.total]})]})]}),oe.map((e,t)=>_e(e,H.length+t)),ge&&(0,q.jsx)(`div`,{className:`py-8 text-center text-sm text-muted-foreground`,children:b(`lookup.noRecords`)})]})})}),r&&!v&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(KM,{records:I,onRemove:V,onClear:()=>L([]),clearLabel:b(`lookup.clear`),displayField:o,nameFields:D,avatarField:E,idField:s,label:b(`table.selected`,{count:I.length}),className:J(`border-t pt-3`)}),(0,q.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,q.jsx)(X,{type:`button`,variant:`outline`,onClick:()=>t(!1),children:b(`common.cancel`)}),(0,q.jsx)(X,{type:`button`,onClick:ie,children:b(`common.confirm`)})]})]})]});return v?x?(0,q.jsxs)(ky,{open:e,onOpenChange:t,children:[(0,q.jsx)(Ay,{asChild:!0,children:y}),(0,q.jsxs)(Fy,{side:`bottom`,className:`flex h-[85vh] flex-col gap-3`,"data-testid":`people-picker-sheet`,children:[(0,q.jsx)(Iy,{className:`text-left`,children:(0,q.jsx)(Ry,{children:ve})}),ye]})]}):(0,q.jsxs)(dy,{open:e,onOpenChange:t,children:[(0,q.jsx)(fy,{asChild:!0,children:y}),(0,q.jsx)(py,{align:`start`,className:`flex max-h-[min(28rem,60vh)] w-[var(--radix-popover-trigger-width)] min-w-72 flex-col gap-3 p-3`,"data-testid":`people-picker-inline`,children:ye})]}):x?(0,q.jsx)(ky,{open:e,onOpenChange:t,children:(0,q.jsxs)(Fy,{side:`bottom`,className:`flex h-[85vh] flex-col gap-3`,"data-testid":`people-picker-sheet`,children:[(0,q.jsx)(Iy,{className:`text-left`,children:(0,q.jsx)(Ry,{children:ve})}),ye]})}):(0,q.jsx)(am,{open:e,onOpenChange:t,children:(0,q.jsxs)(lm,{className:`flex max-h-[80vh] flex-col gap-3 sm:max-w-lg`,"data-testid":`people-picker-dialog`,children:[(0,q.jsx)(um,{children:(0,q.jsx)(fm,{children:ve})}),ye]})})}var tN=new Set([`json`,`object`,`grid`,`html`,`richtext`,`markdown`,`code`,`image`,`file`,`avatar`,`vector`,`location`,`geometry`,`textarea`,`secret`,`password`,`encrypted`]);function nN(e){let t=new Set,n=[];for(let r of e)t.has(r)||(t.add(r),n.push(r));return n}function rN(e,{displayField:t,max:n=4}){let r=e?.fields??{},i=e=>r[e]??{},a=e=>{let t=i(e);return{field:e,...t.label?{label:t.label}:{},...t.type?{type:t.type}:{}}};if(Object.keys(r).length===0)return[];let o=e=>!Array.isArray(e)||e.length===0?null:nN([t,...e.filter(e=>typeof e==`string`&&e.length>0).filter(e=>e!==t)]).slice(0,n).map(a);return o(e?.highlightFields)||o(e?.displayFields)||nN([t,...Object.keys(r).filter(e=>{if(e===t)return!1;let n=i(e);return!(Ie(e,n)||n.hidden||n.type&&tN.has(n.type))})]).slice(0,n).map(a)}var iN=t({LookupField:()=>gN}),aN=50,oN=x,sN=/^(sys_|cloud_|ai_)/,cN=new Set([`user`,`users`]);function lN(e){return!!e&&!sN.test(e)&&!cN.has(e)}var uN=`name`;function dN(e,t,n,r,i,a,o){let s=fN(e,n),c=h(e,a,o,[n]),l;if(i){let n=B(i,c,{titleField:t}),r=e?.id??e?._id;n===`Untitled`||r!=null&&n===`Record #${r}`||(l=n)}let u=l??c[t??uN]??c.label??c.name??c.full_name??c.title??c.subject??c.externalId??String(s),d=r?e[r]:void 0,f={value:s,label:String(u),description:d,...e};return c===e?f:{...f,label:String(u)}}function fN(e,t){return e[t]??e.id??e._id??e.externalId}function pN(e,t,n){let r=new Map(e.map(e=>[fN(e,n),e]));for(let e of t)r.set(fN(e,n),e);return Array.from(r.values())}function mN(e){if(typeof e!=`string`)return null;let t=e.trim();if(!t.startsWith(`{`)||!t.endsWith(`}`))return null;try{let e=JSON.parse(t);return e&&typeof e==`object`&&!Array.isArray(e)?e:null}catch{return null}}function hN(e){return{text:`text`,number:`number`,currency:`number`,percent:`number`,select:`select`,status:`select`,date:`date`,datetime:`date`,boolean:`boolean`}[e]}function gN({value:e,onChange:t,field:n,readonly:r,error:i,...a}){let[o,s]=(0,K.useState)(!1),{t:c}=Oj(),{translateOptions:l}=xt(),u=St(),d=K.useId(),[f,p]=(0,K.useState)(null),[m,g]=(0,K.useState)([]),[_,v]=(0,K.useState)([]),[y,x]=(0,K.useState)(()=>new Set),[S,C]=(0,K.useState)(-1),w=(0,K.useRef)(null),T=n,E=T?.field,D=E&&typeof E==`object`&&(`reference_to`in E||`reference`in E||`type`in E)?E:T,O=D?.options||[],k=D?.multiple||!1,A=D?.displayField||D?.reference_field||void 0,j=A||uN,M=D?.descriptionField,N=D?.idField||`id`,P=D?.reference_to||D?.reference,F=D?.allow_create??D?.allowCreate,I=F==null?lN(P):!!F,L=D?.lookup_columns??D?.lookupColumns,ee=D?.lookup_page_size??D?.lookupPageSize,R=D?.lookupFilters,te=D?.picker,z=D?.subtitle,B=D?.avatar_field??D?.avatarField??`image`,ne=D,re=(0,K.useMemo)(()=>{let e=ne?.dependsOn;return!e||!Array.isArray(e)?[]:e.map(e=>typeof e==`string`?{field:e,param:e}:{field:e.field,param:e.param??e.field})},[ne?.dependsOn]),V=a.dependsOnLabels,ie=(0,K.useMemo)(()=>re.map(e=>V?.[e.field]||e.field).join(c(`validation.formInvalidJoiner`)),[re,V,c]),ae=a.dependentValues,H=(0,K.useContext)(oN)?.dataSource??null,oe=a.dataSource??T?.dataSource??D?.dataSource??H,U=(0,K.useMemo)(()=>ae??{},[ae]),se=(0,K.useMemo)(()=>re.length!==0&&re.some(({field:e})=>{let t=U[e];return t==null||t===``||Array.isArray(t)&&t.length===0}),[re,U]),W=oe!=null&&typeof oe.find==`function`&&!!P,[G,ce]=(0,K.useState)(null);(0,K.useEffect)(()=>{if(!oe||!P)return;let e=oe.getObjectSchema;if(typeof e!=`function`)return;let t=!0;return Promise.resolve(e.call(oe,P)).then(e=>{t&&ce(e)}).catch(()=>{}),()=>{t=!1}},[oe,P]);let ue=(0,K.useMemo)(()=>{if(L&&L.length>0)return L;let e=rN(G,{displayField:j});return e.length>0?e:void 0},[L,G,j]),de=(0,K.useMemo)(()=>{if(M)return M;let e=ue?.find(e=>(typeof e==`string`?e:e.field)!==j);if(e)return typeof e==`string`?e:e.field},[M,ue,j]),fe=(0,K.useMemo)(()=>{let e=[],t=new Set([j]);M&&(e.push({field:M}),t.add(M));for(let n of ue??[]){let r=CM(n);t.has(r.field)||(t.add(r.field),e.push(r))}return e},[M,ue,j]),pe=(0,K.useMemo)(()=>EM(fe,G?.fields,P??``,l),[fe,G,P,l]),me=OA(),he=(0,K.useMemo)(()=>{if(fe.length===0)return[];let e=ot(G?.fields,fe);return!me.isLoaded||!P?e:e.filter(e=>me.checkField(P,e,`read`))},[G,fe,me,P]),ge=(0,K.useMemo)(()=>fe.filter(e=>!me.isLoaded||!P||e.field===N||me.checkField(P,e.field,`read`)),[fe,me,P,N]),ve=(0,K.useMemo)(()=>{if(!ue)return;let e=[];for(let t of ue)if(typeof t==`object`&&t.type){let n=hN(t.type);n&&e.push({field:t.field,label:t.label,type:n})}return e.length>0?e:void 0},[ue]),ye=a.onCreateNew??T?.onCreateNew,[be,xe]=(0,K.useState)(!1),Se=(0,K.useMemo)(()=>{let e={};for(let{field:t,param:n}of re){let r=U[t];r!=null&&r!==``&&(e[n]=typeof r==`number`?r:String(r))}return Object.keys(e).length>0?e:void 0},[re,U]),Ce=(0,K.useMemo)(()=>{let e={...R&&R.length>0?jM(R):{},...Se??{}};return Object.keys(e).length>0?e:void 0},[Se,R]),we=SM({dataSource:oe,objectName:P,enabled:o&&W&&!se,pageSize:aN,filter:Ce,expand:he}),Te=we.search,Ee=we.loading,De=we.total,Oe=we.error??f,ke=(0,K.useMemo)(()=>we.records.map(e=>dN(b(e,G?.fields),A,N,de,G,me,P)),[we.records,A,N,de,G,me,P]),Ae=W?ke:O,je=(0,K.useMemo)(()=>{if(W||!Te)return Ae;let e=Te.toLowerCase();return Ae.filter(t=>t.label.toLowerCase().includes(e)||t.description&&t.description.toLowerCase().includes(e))},[W,Ae,Te]);(0,K.useEffect)(()=>{C(-1)},[je.length]),(0,K.useEffect)(()=>{o||C(-1)},[o]);let Me=(0,K.useCallback)(e=>we.setSearch(e),[we.setSearch]);(0,K.useEffect)(()=>{if(!W||!oe||!P)return;let t=(k?Array.isArray(e)?e:[]:e!=null&&e!==``?[e]:[]).filter(e=>e!=null&&e!==``&&typeof e!=`object`&&!mN(e));if(!t.length)return;let n=t.filter(e=>!Fe(e));if(!n.length)return;let r=!1;return(async()=>{try{let e=[];if(n.length===1){let t=n[0];if(typeof oe.findOne==`function`&&N===`id`){let n=await oe.findOne(P,t);n&&e.push(n)}else{let n=await oe.find(P,{$filter:{[N]:t},$top:1}),r=n?.data??n??[];r[0]&&e.push(r[0])}}else{let t=[];for(let e=0;e<n.length;e+=aN)t.push(n.slice(e,e+aN));let r=await Promise.all(t.map(e=>oe.find(P,{$filter:{[N]:{$in:e}},$top:e.length})));for(let t of r){let n=t?.data??t??[];if(Array.isArray(n))for(let t of n)e.push(t)}}!r&&e.length&&v(t=>pN(t,e,N))}catch{}finally{r||x(e=>{let t=new Set(e);for(let e of n)t.add(String(e));return t})}})(),()=>{r=!0}},[e,W,P,N,k]);let[Ne,Pe]=(0,K.useMemo)(()=>{let e=e=>dN(e,A,N,de,G,me,P);return[m.map(e),_.map(e)]},[m,_,A,N,de,G,me,P]),Fe=(0,K.useCallback)(e=>O.find(t=>t.value===e)??ke.find(t=>t.value===e)??Ne.find(t=>t.value===e)??Pe.find(t=>t.value===e),[O,ke,Ne,Pe]),Ie=(0,K.useCallback)(e=>{let t=String(e);return O.find(e=>String(e.value)===t)??ke.find(e=>String(e.value)===t)??Ne.find(e=>String(e.value)===t)??Pe.find(e=>String(e.value)===t)},[O,ke,Ne,Pe]),Re=(0,K.useCallback)(e=>{let t=typeof e==`object`&&e?e:mN(e);return t?t[N]??t.id??t._id??t.externalId:e},[N]),ze=(0,K.useMemo)(()=>k?Array.isArray(e)?e.map(Re):[]:Re(e),[k,e,Re]),Be=(0,K.useCallback)(e=>{if(e==null||e===``)return;let t=typeof e==`object`?e:mN(e);return t?dN(t,A,N,de,G,me,P):Fe(e)??Ie(e)},[Fe,Ie,A,N,de,G,me,P]),Ve=(0,K.useMemo)(()=>W?(k?Array.isArray(e)?e:[]:e!=null&&e!==``?[e]:[]).some(e=>e!=null&&e!==``&&typeof e!=`object`&&!mN(e)&&!Fe(e)&&!Ie(e)&&!y.has(String(e))):!1,[W,k,e,Fe,Ie,y]),He=k?(Array.isArray(e)?e:[]).filter(e=>e!=null&&e!==``).length:+(e!=null&&e!==``),Ue=k?(Array.isArray(e)?e:[]).map(Be).filter(Boolean):e?[Be(e)].filter(Boolean):[],We=a.onSelectRecord,Ge=(0,K.useCallback)((n,r)=>{if(r&&n&&n.value!=null&&g(e=>pN(e,[r],N)),k){let r=(Array.isArray(e)?e:[]).map(Re);r.includes(n.value)?t(r.filter(e=>e!==n.value)):(P&&ZM(P,n.value),t([...r,n.value]))}else P&&ZM(P,n.value),We?We(n):t(n.value),s(!1)},[k,e,t,We,P,Re,N]),Ke=n=>{t(k?(Array.isArray(e)?e:[]).map(Re).filter(e=>e!==n):null)},qe=(0,K.useCallback)(e=>{P&&e.forEach(e=>ZM(P,fN(e,N))),g(e)},[N,P]),[Je,Ye]=(0,K.useState)([]),Xe=he.join(`,`);(0,K.useEffect)(()=>{if(!o||!W||!oe||!P||Te)return;if(se){Ye([]);return}let e=XM(P);if(!e.length){Ye([]);return}let t=!1;return(async()=>{try{let n={[N]:{$in:e}},r=await oe.find(P,{$filter:Ce?le(Ce,n):n,$top:e.length,...he.length>0?{$expand:he}:{}}),i=r?.data??r??[],a=new Map;if(Array.isArray(i))for(let e of i){let t=b(e,G?.fields),n=t?.[N]??t?.id??t?._id;n!=null&&a.set(String(n),e)}let o=e.map(e=>a.get(String(e))).filter(Boolean);t||Ye(o)}catch{t||Ye([])}})(),()=>{t=!0}},[o,W,P,Te,se,Ce,N,Xe]);let Ze=(0,K.useMemo)(()=>Je.map(e=>dN(b(e,G?.fields),A,N,de,G,me,P)),[Je,A,N,de,G,me,P]),Qe=(0,K.useMemo)(()=>{let e=new Map;for(let t of[...Je,...we.records]){let n=b(t,G?.fields),r=n?.[N]??n?.id??n?._id??n?.externalId;r!=null&&!e.has(String(r))&&e.set(String(r),t)}return e},[Je,we.records,G,N]),$e=(0,K.useCallback)(e=>{let t=Qe.get(String(e.value));Ge(e,t?b(t,G?.fields):void 0)},[Qe,G,Ge]),et=!Te&&W?Ze.length:0,tt=(0,K.useMemo)(()=>{if(Te||!W||Ze.length===0)return je;let e=new Set(Ze.map(e=>e.value));return[...Ze,...je.filter(t=>!e.has(t.value))]},[Te,W,Ze,je]);(0,K.useEffect)(()=>{C(-1)},[tt.length]);let[nt,rt]=(0,K.useState)(!1),{execute:it}=Le(),at=_e(),st=!!ye||I&&(at||W),ct=(0,K.useCallback)(async e=>{let t=(e||``).trim();if(ye){ye(t),s(!1);return}if(I&&P){if(p(null),at){s(!1),await new Promise(e=>setTimeout(e,0));let e=await it({type:`modal`,modal:{objectName:P,mode:`create`}});if(e?.success&&e.data){let t=dN(e.data,A,N,de,G,me,P);Ge(t,e.data);return}if(!(e?.success&&e.modal))return}if(oe&&t){rt(!0);try{let e=await oe.create(P,{[j]:t}),n=dN(e,A,N,de,G,me,P);Ge(n,e)}catch(e){p(e instanceof Error?e.message:String(e))}finally{rt(!1)}}}},[ye,I,P,at,it,oe,j,A,N,de,G,Ge,me]),lt=(0,K.useCallback)(e=>{let t=Qe.get(String(e.value)),n=t?{...e,...t}:e,r=ge.filter(e=>{let t=n[e.field];return t!=null&&t!==``});return r.length===0?null:r.map((e,t)=>(0,q.jsxs)(K.Fragment,{children:[t>0&&(0,q.jsx)(`span`,{"aria-hidden":`true`,className:`shrink-0 opacity-60`,children:`·`}),(0,q.jsxs)(`span`,{className:`flex min-w-0 items-center gap-1 truncate`,children:[(0,q.jsx)(`span`,{className:`shrink-0 opacity-70`,children:`${e.label||wM(e.field)}:`}),(0,q.jsx)(`span`,{className:`min-w-0 truncate`,"data-lookup-preview":e.field,children:DM(n,e,{descriptors:pe,cellRenderer:hj(),displayLocale:u})})]})]},e.field))},[Qe,ge,pe,u]),ut=(0,K.useCallback)(e=>{e.key===`ArrowDown`?(e.preventDefault(),C(e=>e<tt.length-1?e+1:e)):e.key===`ArrowUp`?(e.preventDefault(),C(e=>e>0?e-1:0)):e.key===`Enter`&&(e.preventDefault(),S>=0&&S<tt.length&&$e(tt[S]))},[tt,S,$e]);if((0,K.useEffect)(()=>{S>=0&&w.current&&w.current.querySelector(`[data-lookup-index="${S}"]`)?.scrollIntoView({block:`nearest`})},[S]),r)return Ue.length?k?(0,q.jsx)(`div`,{className:`flex flex-wrap gap-1`,children:Ue.map((e,t)=>(0,q.jsx)(fs,{variant:`outline`,children:e?.label||e?.[j]},t))}):(0,q.jsx)(`span`,{className:`text-sm`,children:Ue[0]?.label||Ue[0]?.[j]}):Ve?(0,q.jsxs)(`span`,{className:`inline-flex items-center gap-1.5 text-sm text-muted-foreground`,"data-testid":`lookup-hydrating`,children:[(0,q.jsx)(qi,{className:`size-3.5 animate-spin`}),k?c(`table.selected`,{count:He}):c(`lookup.loading`)]}):(0,q.jsx)($,{});let dt=!!a.compact,ft=Ue[0]?.label||Ue[0]?.[j],{name:pt,...mt}=bj(a),ht=(0,q.jsxs)(X,{...mt,variant:`outline`,className:J(`min-w-0 max-w-full flex-1 justify-start text-left font-normal`,dt&&`h-8 rounded-none border-0 bg-transparent px-2 shadow-none focus-visible:ring-1 focus-visible:ring-ring/60`),type:`button`,disabled:se||a.disabled,"data-testid":se?`lookup-trigger-gated`:a.name||T?.name?`lookup-trigger-${a.name||T.name}`:`lookup-trigger`,title:se?c(`lookup.selectFirst`,{fields:ie}):void 0,"aria-invalid":!!i,children:[Ve?(0,q.jsx)(qi,{className:J(`size-4 shrink-0 animate-spin text-muted-foreground`,dt?`mr-1.5`:`mr-2`),"data-testid":`lookup-hydrating`}):(0,q.jsx)(ca,{className:J(`size-4 shrink-0 text-muted-foreground`,dt?`mr-1.5`:`mr-2`)}),(0,q.jsx)(`span`,{className:J(`truncate`,dt&&Ue.length===0&&`text-muted-foreground`),children:se?c(`lookup.selectFirst`,{fields:ie}):Ve?k?c(`table.selected`,{count:He}):c(`lookup.loading`):dt&&!k&&Ue.length>0?ft:Ue.length===0?T?.placeholder||c(`common.select`):k?c(`table.selected`,{count:Ue.length}):c(`common.select`)})]}),gt=!a.disabled,_t=e=>{let t=h(e,me,P,[N]),n=t?.[B]||t?.image;return n?String(n):void 0};return(0,q.jsxs)(`div`,{className:dt?``:`space-y-2`,children:[Ue.length>0&&!dt&&(0,q.jsx)(`div`,{className:`flex flex-wrap gap-1`,children:Ue.map((e,t)=>{let n=e?.label||e?.[j];if(te===`search`){let r=_t(e);return(0,q.jsxs)(`span`,{"data-testid":`people-field-chip`,className:`inline-flex items-center gap-1.5 rounded-full border bg-background py-0.5 pl-0.5 pr-1.5 text-sm`,children:[(0,q.jsxs)(cs,{className:`size-6 shrink-0`,children:[r&&(0,q.jsx)(ls,{src:r,alt:String(n||``)}),(0,q.jsx)(us,{className:`text-[10px]`,children:zM(String(n||``))})]}),(0,q.jsx)(`span`,{className:`max-w-[10rem] truncate`,children:n}),gt&&(0,q.jsx)(`button`,{onClick:()=>Ke(e?.value),className:`rounded-full p-0.5 text-muted-foreground transition-colors hover:bg-accent hover:text-foreground`,type:`button`,"aria-label":c(`lookup.remove`,{label:n}),children:(0,q.jsx)(wa,{className:`size-3`})})]},t)}return(0,q.jsxs)(fs,{variant:`outline`,className:`gap-1`,children:[n,gt&&(0,q.jsx)(`button`,{onClick:()=>Ke(e?.value),className:`ml-1 hover:text-destructive`,type:`button`,"aria-label":c(`lookup.remove`,{label:n}),children:(0,q.jsx)(wa,{className:`size-3`})})]},t)})}),te===`search`&&W&&oe&&P?(0,q.jsx)(eN,{inline:!0,trigger:ht,open:be,onOpenChange:xe,title:T?.label||c(`common.select`),multiple:k,dataSource:oe,objectName:P,displayField:j,idField:N,subtitleFields:z,avatarField:B,pageSize:ee,value:ze,onSelect:t,onSelectRecords:qe,lookupFilters:R,baseFilter:Se}):(0,q.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,q.jsxs)(dy,{open:o,onOpenChange:e=>{se||s(e)},children:[(0,q.jsx)(fy,{asChild:!0,children:ht}),(0,q.jsxs)(py,{className:`w-[var(--radix-popover-trigger-width)] p-0`,align:`start`,children:[(0,q.jsx)(`div`,{className:`p-2`,children:(0,q.jsxs)(`div`,{className:`relative`,children:[(0,q.jsx)(ca,{className:`absolute left-3 top-1/2 -translate-y-1/2 size-4 text-muted-foreground`}),(0,q.jsx)(Fv,{placeholder:c(`table.search`),value:Te,onChange:e=>Me(e.target.value),onKeyDown:ut,className:`w-full pl-9 h-8 text-sm`,role:`combobox`,"aria-autocomplete":`list`,"aria-controls":d,"aria-expanded":o,"aria-activedescendant":S>=0?`${d}-opt-${S}`:void 0}),Ee&&(0,q.jsx)(qi,{className:`absolute right-3 top-1/2 -translate-y-1/2 size-4 animate-spin text-muted-foreground`,"data-testid":`lookup-loading`})]})}),Oe&&(0,q.jsxs)(`div`,{className:`flex flex-col items-center gap-2 py-4 px-2`,role:`alert`,children:[(0,q.jsx)(bi,{className:`size-5 text-destructive`}),(0,q.jsx)(`p`,{className:`text-sm text-destructive`,children:Oe}),(0,q.jsx)(X,{variant:`outline`,size:`sm`,onClick:()=>we.refetch(),type:`button`,children:c(`lookup.retry`)})]}),Ee&&je.length===0&&!Oe&&(0,q.jsxs)(`div`,{className:`flex flex-col items-center gap-2 py-6`,role:`status`,"aria-live":`polite`,children:[(0,q.jsx)(qi,{className:`size-6 animate-spin text-muted-foreground`}),(0,q.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:c(`lookup.loading`)})]}),!Oe&&!(Ee&&je.length===0)&&(0,q.jsx)(`div`,{ref:w,className:`max-h-64 overflow-y-auto px-1 pb-1`,role:`listbox`,id:d,children:tt.length===0?(0,q.jsxs)(`div`,{className:`py-4 text-center`,children:[(0,q.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:c(`lookup.noOptions`)}),st&&(0,q.jsxs)(X,{variant:`ghost`,size:`sm`,className:`mt-2 gap-1`,type:`button`,disabled:nt,onClick:()=>ct(Te),children:[nt?(0,q.jsx)(qi,{className:`size-4 animate-spin`}):(0,q.jsx)(ea,{className:`size-4`}),Te?c(`lookup.createNamed`,{name:Te}):c(`lookup.createNew`)]})]}):(0,q.jsxs)(q.Fragment,{children:[tt.map((t,n)=>{let r=k?(Array.isArray(e)?e:[]).map(Re).includes(t.value):Re(e)===t.value,i=n===S,a=et>0&&n===0,o=et>0&&n===et;return(0,q.jsxs)(K.Fragment,{children:[a&&(0,q.jsx)(`div`,{className:`px-3 pt-2 pb-1 text-[11px] font-medium uppercase tracking-wide text-muted-foreground`,children:c(`lookup.recentlyUsed`)}),o&&(0,q.jsx)(`div`,{className:`mt-1 border-t px-3 pt-2 pb-1 text-[11px] font-medium uppercase tracking-wide text-muted-foreground`,children:c(`lookup.allResults`)}),(0,q.jsxs)(`button`,{id:`${d}-opt-${n}`,"data-lookup-index":n,role:`option`,"aria-selected":r,title:String(t.label??``),onClick:()=>$e(t),className:`w-full text-left px-3 py-2 rounded-md text-sm hover:bg-accent flex items-center justify-between ${i?`bg-accent text-accent-foreground`:r?`bg-accent/50 text-accent-foreground`:``}`,type:`button`,children:[(0,q.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,q.jsx)(`span`,{className:`block truncate`,children:t.label}),(()=>{let e=lt(t);return e?(0,q.jsx)(`span`,{className:`flex min-w-0 items-center gap-1 overflow-hidden text-xs text-muted-foreground`,"data-testid":`lookup-option-preview`,children:e}):null})()]}),r&&(0,q.jsx)(fs,{variant:`default`,className:`ml-2 shrink-0`,children:c(`lookup.selectedBadge`)})]})]},t.value)}),W&&De>je.length&&(0,q.jsx)(`p`,{className:`text-xs text-muted-foreground text-center py-2`,children:c(`lookup.showingResults`,{shown:je.length,total:De})}),W&&De>je.length&&(0,q.jsxs)(`button`,{type:`button`,className:`w-full text-center px-3 py-2 rounded-md text-sm font-medium text-primary hover:bg-accent flex items-center justify-center gap-1.5`,onClick:()=>{s(!1),xe(!0)},"data-testid":`show-all-results`,children:[(0,q.jsx)(ga,{className:`size-3.5`}),c(`lookup.showAllResults`,{count:De})]}),st&&(0,q.jsxs)(`button`,{type:`button`,className:`w-full text-left px-3 py-2 rounded-md text-sm hover:bg-accent flex items-center gap-1.5 text-muted-foreground`,disabled:nt,onClick:()=>ct(Te),children:[nt?(0,q.jsx)(qi,{className:`size-3.5 animate-spin`}):(0,q.jsx)(ea,{className:`size-3.5`}),Te?c(`lookup.createNamed`,{name:Te}):c(`lookup.createNew`)]})]})})]})]}),W&&te!==`search`&&(0,q.jsx)(X,{variant:`outline`,size:`icon`,className:`shrink-0`,type:`button`,disabled:se||a.disabled,onClick:()=>xe(!0),"aria-label":c(`lookup.browseAll`),title:se?c(`lookup.selectFirst`,{fields:ie}):c(`lookup.browseAll`),"data-testid":`browse-all-records`,children:(0,q.jsx)(ga,{className:`size-4`})})]}),W&&oe&&P&&te!==`search`&&(0,q.jsx)(FM,{open:be,onOpenChange:xe,title:T?.label||c(`common.select`),multiple:k,dataSource:oe,objectName:P,columns:ue,displayField:A,objectSchema:G,idField:N,pageSize:ee,value:ze,onSelect:t,onSelectRecords:qe,lookupFilters:R,baseFilter:Se,cellRenderer:hj(),fieldsMeta:G?.fields,filterColumns:ve})]})}var _N=t({UserField:()=>yN});function vN(e){let t=Array.isArray(e)?e:[];return t.some(e=>e?.field===`banned`)?t:[...t,{field:`banned`,operator:`ne`,value:!0}]}function yN(e){let t=e.field,n=t?.field&&typeof t.field==`object`&&(`reference`in t.field||`reference_to`in t.field||`type`in t.field),r=n?t.field:t,i={...r||{},reference:r?.reference||r?.reference_to||`sys_user`,displayField:r?.displayField||r?.reference_field||`name`,picker:r?.picker??`search`,subtitle:r?.subtitle??[`primary_business_unit_id.name`,`email`],avatar_field:r?.avatar_field??r?.avatarField??`image`,lookupFilters:vN(r?.lookupFilters)},a=n?{...t,field:i}:i;return(0,q.jsx)(gN,{...e,field:a})}var bN=t({ColorField:()=>xN});function xN({value:e,onChange:t,field:n,readonly:r,error:i,...a}){let o=n;return r?(0,q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,q.jsx)(`div`,{className:`w-6 h-6 rounded border border-input`,style:{backgroundColor:e||`#000000`}}),(0,q.jsx)(`span`,{className:`text-sm`,children:e||(0,q.jsx)($,{})})]}):(0,q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,q.jsx)(`input`,{type:`color`,value:e||`#000000`,onChange:e=>t(e.target.value),disabled:r||a.disabled,className:`w-10 h-10 rounded border border-input cursor-pointer`,"aria-invalid":!!i}),(0,q.jsx)(Fv,{...bj(a),type:`text`,value:e||``,onChange:e=>t(e.target.value),placeholder:o?.placeholder||`#000000`,disabled:r||a.disabled,className:a.className,pattern:`^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$`,"aria-invalid":!!i})]})}var SN=t({AddressField:()=>CN});function CN({value:e,onChange:t,field:n,readonly:r,error:i,...a}){let o=e||{},{id:s,"aria-labelledby":c,...l}=bj(a),u=Vj(a,`instead-of-the-inputs`),d=Vj(a,`above-the-inputs`),f=(0,K.useId)(),p=e=>`${f}-${e}`,{t:m}=Oj(),h=St(),g=jA(o),_=(e,n)=>{let r={...o};delete r.zipCode,t({...r,...g?{postalCode:g}:null,[e]:n})};if(r){let e=FA(o,h);return e?(0,q.jsx)(`span`,{...u,className:`text-sm`,children:e}):(0,q.jsx)($,{...u})}return(0,q.jsxs)(`div`,{className:`space-y-3`,...d,children:[(0,q.jsxs)(`div`,{children:[(0,q.jsx)(X_,{htmlFor:p(`street`),className:`text-xs`,children:m(`fields.address.street`)}),(0,q.jsx)(Fv,{...l,id:p(`street`),type:`text`,value:o.street||``,onChange:e=>_(`street`,e.target.value),disabled:r||a.disabled,className:a.className,"aria-invalid":!!i})]}),(0,q.jsxs)(`div`,{className:`grid grid-cols-2 gap-3`,children:[(0,q.jsxs)(`div`,{children:[(0,q.jsx)(X_,{htmlFor:p(`city`),className:`text-xs`,children:m(`fields.address.city`)}),(0,q.jsx)(Fv,{id:p(`city`),type:`text`,value:o.city||``,onChange:e=>_(`city`,e.target.value),disabled:r||a.disabled,"aria-invalid":!!i})]}),(0,q.jsxs)(`div`,{children:[(0,q.jsx)(X_,{htmlFor:p(`state`),className:`text-xs`,children:m(`fields.address.state`)}),(0,q.jsx)(Fv,{id:p(`state`),type:`text`,value:o.state||``,onChange:e=>_(`state`,e.target.value),disabled:r||a.disabled,"aria-invalid":!!i})]})]}),(0,q.jsxs)(`div`,{className:`grid grid-cols-2 gap-3`,children:[(0,q.jsxs)(`div`,{children:[(0,q.jsx)(X_,{htmlFor:p(`postalCode`),className:`text-xs`,children:m(`fields.address.postalCode`)}),(0,q.jsx)(Fv,{id:p(`postalCode`),type:`text`,value:g||``,onChange:e=>_(`postalCode`,e.target.value),disabled:r||a.disabled,"aria-invalid":!!i})]}),(0,q.jsxs)(`div`,{children:[(0,q.jsx)(X_,{htmlFor:p(`country`),className:`text-xs`,children:m(`fields.address.country`)}),(0,q.jsx)(Fv,{id:p(`country`),type:`text`,value:o.country||``,onChange:e=>_(`country`,e.target.value),disabled:r||a.disabled,"aria-invalid":!!i})]})]})]})}var wN=t({LocationField:()=>zN});d();function TN(e){if(!e||typeof e!=`object`||Array.isArray(e))return!1;let{lat:t,lng:n}=e;return EN(t)&&EN(n)}function EN(e){return typeof e==`number`&&Number.isFinite(e)}function DN(e){return s.safeParse(e).success}function ON(e,t,n){let r={lat:e,lng:t};return TN(n)?(EN(n.altitude)&&(r.altitude=n.altitude),EN(n.accuracy)&&(r.accuracy=n.accuracy),r):r}function kN(e){return TN(e)?`${e.lat}, ${e.lng}`:``}var AN=/^[+-]?(?:Infinity|(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?)$/,jN=[`latitude`,`longitude`];function MN(e){if(!e.trim())return{kind:`cleared`};let t=e.split(`,`).map(e=>e.trim());if(t.length!==2)return{kind:`unparsable`};let n=parseFloat(t[0]),r=parseFloat(t[1]);if(isNaN(n)||isNaN(r))return{kind:`unparsable`};let i=jN.map((e,n)=>({label:e,text:t[n]})).filter(e=>!AN.test(e.text));return i.length>0?{kind:`residue`,residue:i}:{kind:`pair`,lat:n,lng:r}}function NN(e,t){let n=MN(e);return n.kind===`cleared`?!TN(t):n.kind===`pair`&&TN(t)&&t.lat===n.lat&&t.lng===n.lng}function PN(e){return e(`fields.location.refusedFormat`)}function FN(e,t){let n=s.safeParse(t);return n.success?``:e(`fields.location.refusedRange`,{detail:n.error.issues.map(e=>`${e.path.join(`.`)||`value`}: ${e.message}`).join(`; `)})}function IN(e,t){let[n,r]=t.map(t=>({name:LN(e,t.label),text:t.text}));return r?e(`fields.location.refusedResidue`,{name:n.name,text:n.text,otherName:r.name,otherText:r.text}):e(`fields.location.refusedResidueOne`,{name:n.name,text:n.text})}function LN(e,t){return e(t===`latitude`?`fields.location.latitude`:`fields.location.longitude`)}function RN(e){return jN.map(t=>LN(e,t)).join(`, `)}function zN({value:e,onChange:t,field:n,readonly:r,error:i,...a}){let o=n,[s,c]=(0,K.useState)(()=>kN(e)),[l,u]=(0,K.useState)(null),{t:d}=Oj(),f=(0,K.useRef)(e);if((0,K.useEffect)(()=>{Object.is(f.current,e)||(f.current=e,!l&&(NN(s,e)||c(kN(e))))},[e,s,l]),r)return(0,q.jsx)(`span`,{className:`text-sm`,children:kN(e)||(0,q.jsx)($,{})});let p=n=>{let r=n.target.value;c(r);let i=MN(r);if(i.kind===`cleared`){u(null),t(null);return}if(i.kind===`unparsable`){u(PN(d));return}if(i.kind===`residue`){u(IN(d,i.residue));return}let a=ON(i.lat,i.lng,e);if(DN(a)){u(null),t(a);return}u(FN(d,a))};return(0,q.jsxs)(`div`,{className:`space-y-1`,children:[(0,q.jsx)(Fv,{...bj(a),type:`text`,value:s,onChange:p,placeholder:o?.placeholder||RN(d),disabled:r||a.disabled,className:J(l?`border-red-500 focus-visible:ring-red-500`:``,a.className),"aria-invalid":!!i||!!l}),l&&(0,q.jsx)(`p`,{className:`text-xs text-red-500`,children:l})]})}var BN=t({GeolocationField:()=>UN}),VN=e=>typeof e==`number`&&!Number.isNaN(e),HN=e=>VN(e.latitude)&&VN(e.longitude);function UN({value:e,onChange:t,field:n,readonly:r,error:i,...a}){let[o,s]=K.useState(!1),c=Aj(`30.2741`),l=Aj(`120.1551`),u=e||{},{id:d,"aria-labelledby":f,...p}=bj(a),m=Vj(a,`instead-of-the-inputs`),h=Vj(a,`above-the-inputs`),g=(0,K.useId)(),_=e=>`${g}-${e}`,v=(e,n)=>{t({...u,[e]:n?Number(n):null})},y=e=>{c.readBadInput(e.target),p.onBlur?.(e)},b=()=>{if(!navigator.geolocation){console.error(`Geolocation is not supported by this browser`);return}s(!0),navigator.geolocation.getCurrentPosition(e=>{t({latitude:e.coords.latitude,longitude:e.coords.longitude,accuracy:e.coords.accuracy}),s(!1)},e=>{console.error(`Error getting location:`,e.message),s(!1)},{enableHighAccuracy:!0,timeout:5e3,maximumAge:0})},x=e=>HN(e)?`${e.latitude.toFixed(6)}, ${e.longitude.toFixed(6)}`:``,S=()=>{if(!HN(u))return;let e=`https://www.google.com/maps?q=${u.latitude},${u.longitude}`;window.open(e,`_blank`)};if(r){let e=x(u);return(0,q.jsxs)(`div`,{...m,className:`flex items-center gap-2`,children:[(0,q.jsx)(Ji,{className:`w-4 h-4 text-muted-foreground`}),e?(0,q.jsx)(`span`,{className:`text-sm`,children:e}):(0,q.jsx)($,{}),HN(u)&&(0,q.jsx)(X,{type:`button`,variant:`link`,size:`sm`,onClick:S,className:`p-0 h-auto`,children:`View on map`})]})}return(0,q.jsxs)(`div`,{className:`space-y-3`,...h,children:[(0,q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,q.jsxs)(X,{type:`button`,variant:`outline`,size:`sm`,onClick:b,disabled:r||o,children:[(0,q.jsx)(Oi,{className:`w-4 h-4 mr-2`}),o?`Getting location...`:`Use Current Location`]}),HN(u)&&(0,q.jsxs)(X,{type:`button`,variant:`link`,size:`sm`,onClick:S,children:[(0,q.jsx)(Ji,{className:`w-4 h-4 mr-2`}),`View on map`]})]}),(0,q.jsxs)(`div`,{className:`grid grid-cols-2 gap-3`,children:[(0,q.jsxs)(`div`,{children:[(0,q.jsx)(X_,{htmlFor:_(`latitude`),className:`text-xs`,children:`Latitude`}),(0,q.jsx)(Fv,{...p,id:_(`latitude`),type:`number`,value:u.latitude??``,onChange:e=>{c.readBadInput(e.target),v(`latitude`,e.target.value)},onBlur:y,placeholder:`37.7749`,disabled:r||a.disabled,step:`any`,className:J(c.refusal?Mj:``,a.className),"aria-invalid":!!i||!!c.refusal}),(0,q.jsx)(jj,{refusal:c.refusal})]}),(0,q.jsxs)(`div`,{children:[(0,q.jsx)(X_,{htmlFor:_(`longitude`),className:`text-xs`,children:`Longitude`}),(0,q.jsx)(Fv,{id:_(`longitude`),type:`number`,value:u.longitude??``,onChange:e=>{l.readBadInput(e.target),v(`longitude`,e.target.value)},onBlur:e=>l.readBadInput(e.target),placeholder:`-122.4194`,disabled:r||a.disabled,step:`any`,className:l.refusal?Mj:void 0,"aria-invalid":!!i||!!l.refusal}),(0,q.jsx)(jj,{refusal:l.refusal})]})]}),VN(u.accuracy)&&(0,q.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`Accuracy: ±`,u.accuracy.toFixed(0),`m`]})]})}var WN=t({CodeField:()=>GN});function GN({value:e,onChange:t,field:n,readonly:r,error:i,...a}){let o=n,s=o?.language??`javascript`;return r?(0,q.jsx)(`pre`,{className:J(`text-sm bg-muted p-2 rounded overflow-x-auto border`,a.className),children:(0,q.jsx)(`code`,{children:e||(0,q.jsx)($,{})})}):(0,q.jsx)(Kb,{...bj(a),value:e||``,onChange:e=>t(e.target.value),placeholder:o?.placeholder||`// Write ${s} code here...`,disabled:r||a.disabled,className:J(`font-mono text-sm`,a.className),rows:12,spellCheck:!1,"aria-invalid":!!i})}var KN=t({QRCodeField:()=>qN});function qN({value:e,onChange:t,field:n,readonly:r,error:i,...a}){let[o,s]=K.useState(!1),c=n,l=e=>`https://api.qrserver.com/v1/create-qr-code/?size=200x200&data=${encodeURIComponent(e)}`,u=()=>{e&&navigator.clipboard.writeText(e)};return r?(0,q.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,q.jsx)(`span`,{className:`text-sm flex-1 truncate`,children:e||(0,q.jsx)($,{})}),e&&(0,q.jsxs)(X,{type:`button`,variant:`outline`,size:`sm`,onClick:()=>s(!o),children:[(0,q.jsx)(ta,{className:`w-4 h-4 mr-2`}),o?`Hide`:`Show`,` QR`]})]}):(0,q.jsxs)(`div`,{className:`space-y-3`,children:[(0,q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,q.jsx)(Fv,{...bj(a),type:`text`,value:e||``,onChange:e=>t(e.target.value),placeholder:c?.placeholder||`Enter text for QR code`,disabled:r||a.disabled,className:a.className,"aria-invalid":!!i}),e&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(X,{type:`button`,variant:`outline`,size:`sm`,onClick:u,children:(0,q.jsx)(Ei,{className:`w-4 h-4`})}),(0,q.jsx)(X,{type:`button`,variant:`outline`,size:`sm`,onClick:()=>s(!o),children:(0,q.jsx)(ta,{className:`w-4 h-4`})})]})]}),o&&e&&(0,q.jsx)(`div`,{className:`border rounded p-4 bg-white flex justify-center`,children:(0,q.jsx)(`img`,{src:l(e),alt:`QR Code`,className:`w-48 h-48`})}),e&&(0,q.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`QR code contains: `,e.length,` characters`]})]})}var JN={text:wj,textarea:Dj,number:Pj,currency:Lj,percent:Bj,slider:Wj,progress:Wj,rating:Kj,boolean:Jj,toggle:Jj,select:eM,status:eM,multiselect:Qj,radio:rM,checkboxes:aM,tags:sM,date:uM,datetime:fM,time:mM,email:gM,phone:vM,url:bM,lookup:gN,master_detail:gN,user:yN,color:xN,address:CN,location:zN,geolocation:UN,code:GN,qrcode:qN},YN=new Set([`formula`,`summary`,`auto_number`,`file`,`image`,`avatar`,`signature`,`markdown`,`html`,`richtext`,`password`,`secret`,`object`,`grid`,`vector`,`object-ref`,`filter-condition`,`recipient-picker`]),XN=new Set([`boolean`,`toggle`,`select`,`status`,`radio`,`rating`]);function ZN(e){return e in JN||YN.has(e)?e:vj(e).replace(/^field:/,``)}function QN(e){return!e||ct(e)?!1:ZN(e)in JN}function $N(e){return e?ct(e)?!0:YN.has(ZN(e)):!1}var eP=new Set([`lookup`,`master_detail`,`user`]);function tP(e){let{field:t,value:n,onChange:r,readonly:i}=e;if(t?.type&&ct(t.type))return ie(t.type),null;let a=t?.type?ZN(t.type):void 0,o=a?JN[a]:void 0;if(!o)return null;let s=a&&eP.has(a)?{compact:!0}:{};return(0,q.jsx)(o,{...bj(e),...Sj(e),field:t,value:n,onChange:r,readonly:i,...s})}var nP=t({PasswordField:()=>rP});function rP({value:e,onChange:t,field:n,readonly:r,className:i,...a}){let[o,s]=(0,K.useState)(!1),c=n;if(r)return R(QA(e))?(0,q.jsx)($,{}):(0,q.jsx)(`span`,{className:`text-sm`,children:`••••••••`});let l=bj(a);return(0,q.jsxs)(`div`,{className:`relative`,children:[(0,q.jsx)(Fv,{...l,type:o?`text`:`password`,value:e||``,onChange:e=>t(e.target.value),placeholder:c?.placeholder,disabled:r||l.disabled,className:`pr-10 ${i||``}`}),(0,q.jsx)(X,{type:`button`,variant:`ghost`,size:`sm`,className:`absolute right-0 top-0 h-full px-3 py-2 hover:bg-transparent`,onClick:()=>s(!o),tabIndex:-1,children:o?(0,q.jsx)(Pi,{className:`size-4 text-gray-500`}):(0,q.jsx)(Fi,{className:`size-4 text-gray-500`})})]})}var iP=t({RichTextField:()=>sP});function aP({value:e,onChange:t,formatLabel:n,hint:r,placeholder:i,rows:a,disabled:o,error:s,className:c,fullHeight:l,autoFocus:u,textareaTestId:d,overlay:f,counter:p,maxLength:m,describedBy:h,domProps:g,editorAria:_}){return(0,q.jsxs)(`div`,{className:J(`space-y-2`,l&&`flex flex-col h-full`),children:[(0,q.jsxs)(`div`,{className:`flex items-center justify-between text-xs text-gray-500`,children:[(0,q.jsx)(`span`,{children:n}),(0,q.jsx)(`span`,{className:`italic`,children:r})]}),(0,q.jsxs)(`div`,{className:J(`relative`,l&&`flex-1 min-h-0`),children:[(0,q.jsx)(Kb,{autoFocus:u,"data-testid":d,...g,value:e||``,onChange:e=>t(e.target.value),placeholder:i,disabled:o,rows:l?void 0:a,maxLength:m,className:J(`font-mono`,l?`text-base h-full min-h-full resize-none`:`text-sm`,c),"aria-invalid":!!s,"aria-describedby":h,..._}),p,f]})]})}function oP(e){let t=e?.type,n=typeof t==`string`?t:``;return n.startsWith(`field:`)?n.slice(6):n}function sP({value:e,onChange:t,field:n,readonly:r,error:i,...a}){let{t:o}=Ct(),s=oP(n),c=dj(s),l=(0,K.useId)(),u=`${l}-charcount`,d=`${l}-fullscreen-charcount`;if(r){let t=fj(s);return t?(0,q.jsx)(t,{value:e,field:n}):(0,q.jsx)(`div`,{className:`text-sm whitespace-pre-wrap break-words`,children:e||(0,q.jsx)($,{})})}let f=n,p=f?.rows||8,m=n.maxLength??f?.max_length,h=c??``,g=!!f?.mobile_fullscreen,_=bj(a),v=!!_.disabled,y=[_[`aria-describedby`],m?u:void 0].filter(Boolean).join(` `)||void 0,b=o(`fields.richText.format`,{format:h,defaultValue:`Format: ${h}`}),x=o(`fields.richText.basicEditorHint`,{defaultValue:`Rich text editor (basic)`}),S=f?.placeholder||o(`fields.richText.placeholder`,{defaultValue:`Enter text…`});return(0,q.jsx)(aP,{value:e,onChange:t,formatLabel:b,hint:x,placeholder:S,rows:p,disabled:r||v,error:i,className:_.className,maxLength:m,describedBy:y,domProps:_,counter:m?(0,q.jsx)(kw,{length:(e||``).length,maxLength:m,descriptionId:u,announceNearLimit:!0,className:`absolute bottom-2 right-2 text-xs text-gray-400`,testId:`richtext-character-count`}):null,overlay:g&&(0,q.jsx)(Tj,{value:e??``,onCommit:t,label:f?.label,testIdPrefix:`richtext`,disabled:v,error:i,footer:e=>m?(0,q.jsx)(kw,{length:e.length,maxLength:m,descriptionId:d,announceNearLimit:!1,className:`text-xs text-muted-foreground self-center`,testId:`richtext-fullscreen-character-count`}):null,children:(e,t,n,r)=>(0,q.jsx)(aP,{value:e,onChange:t,formatLabel:b,hint:x,placeholder:S,disabled:n,autoFocus:!0,fullHeight:!0,maxLength:m,describedBy:m?d:void 0,textareaTestId:`richtext-fullscreen-input`,editorAria:r})})})}function cP(e){if(Array.isArray(e))return e.map(e=>String(e)).filter(Boolean);if(typeof e==`string`){let t=e.trim();if(!t)return[];try{let e=JSON.parse(t);return Array.isArray(e)?e.map(e=>String(e)).filter(Boolean):[String(e)].filter(Boolean)}catch{return t.split(`,`).map(e=>e.trim()).filter(Boolean)}}return[]}var lP=[`platform`,`org`,`other`],uP=new Set([`manage_users`,`manage_org_users`,`manage_metadata`,`manage_org_presentation`,`manage_platform_settings`,`setup_access`,`setup_write`,`studio_access`,`manage_sharing`]);function dP({value:e,onChange:t,readonly:n,className:r,...i}){let{t:a}=Oj(),o=K.useContext(x),s=i.dataSource??o?.dataSource??null,c=i.disabled,[l,u]=K.useState(null),d=K.useMemo(()=>cP(e),[e]);K.useEffect(()=>{if(!s||typeof s.find!=`function`)return;let e=!1;return(async()=>{try{let t=await s.find(`sys_capability`,{$filter:{active:!0},$top:500}),n=t?.data??t?.records??(Array.isArray(t)?t:[]);e||u(Array.isArray(n)?n:[])}catch{e||u([])}})(),()=>{e=!0}},[s]);let f=K.useCallback(e=>t(JSON.stringify(e)),[t]),p=K.useMemo(()=>{let e=new Map;for(let t of l??[])t?.name&&e.set(t.name,t);for(let t of d)e.has(t)||e.set(t,{name:t,label:t,scope:`other`});return e},[l,d]),m=e=>{let t=p.get(e)?.label||e,n=e.replace(/\./g,`_`);return uP.has(n)?a(`capability.label.${n}`,{defaultValue:t}):t},h=K.useMemo(()=>{let e=new Map;for(let t of p.values()){let n=lP.includes(t.scope)?t.scope:`other`,r=e.get(n)??[];r.push(t),e.set(n,r)}return lP.filter(t=>e.has(t)).map(t=>({scope:t,label:a(`capability.group.${t}`),items:(e.get(t)??[]).sort((e,t)=>(e.label||e.name).localeCompare(t.label||t.name))}))},[p,a]);if(n)return d.length===0?(0,q.jsx)($,{}):(0,q.jsx)(`div`,{className:`flex flex-wrap gap-1`,children:d.map(e=>(0,q.jsx)(fs,{variant:`outline`,title:p.get(e)?.description,children:m(e)},e))});let g=e=>{let t=d.includes(e)?d.filter(t=>t!==e):[...d,e];f(t)};return(0,q.jsxs)(`div`,{className:J(`flex flex-col gap-3`,r),children:[l===null&&h.length===0&&(0,q.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:`Loading capabilities…`}),h.map(e=>(0,q.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,q.jsx)(`div`,{className:`text-xs font-medium uppercase tracking-wide text-muted-foreground`,children:e.label}),(0,q.jsx)(`div`,{className:`flex flex-wrap gap-1.5`,children:e.items.map(e=>{let t=d.includes(e.name);return(0,q.jsx)(`button`,{type:`button`,onClick:()=>g(e.name),disabled:c,"aria-pressed":t,title:e.description||void 0,className:J(`rounded-full border px-3 py-1 text-sm transition-colors disabled:opacity-50`,t?`border-primary bg-primary text-primary-foreground`:`border-input bg-background text-foreground hover:bg-accent`),children:m(e.name)},e.name)})})]},e.scope))]})}var fP=t({ObjectRefField:()=>pP,default:()=>pP});function pP({value:e,onChange:t,readonly:n,className:r,error:i,...a}){let o=K.useContext(x),{t:s}=Oj(),c=a.dataSource??o?.dataSource??null,l=a.disabled,[u,d]=K.useState(null);K.useEffect(()=>{if(!c)return;let e=!1;return(async()=>{try{let t=[];if(typeof c.getObjects==`function`)t=await c.getObjects()??[];else if(typeof c.find==`function`){let e=await c.find(`sys_metadata`,{$filter:{type:`object`},$top:1e3});t=(e?.data??e?.records??(Array.isArray(e)?e:[])).map(e=>({name:String(e?.name??``),label:e?.label==null?void 0:String(e.label)})).filter(e=>e.name)}e||d(t)}catch{e||d([])}})(),()=>{e=!0}},[c]);let f=K.useMemo(()=>{let t=(u??[]).map(e=>({value:e.name,label:e.label?`${e.label} (${e.name})`:e.name}));return e&&!t.some(t=>t.value===e)&&t.unshift({value:e,label:e}),t.sort((e,t)=>e.label.localeCompare(t.label))},[u,e]);if(n){if(!e)return(0,q.jsx)($,{});let t=f.find(t=>t.value===e)?.label??e;return(0,q.jsx)(`span`,{className:r,children:t})}let{name:p,...m}=bj(a);return(0,q.jsx)(OT,{...m,options:f,value:e??``,onValueChange:e=>t(e),placeholder:s(u===null?`fields.objectRef.loading`:`fields.objectRef.placeholder`),searchPlaceholder:s(`fields.objectRef.search`),emptyText:s(u===null?`common.loading`:`fields.objectRef.empty`),disabled:l,className:J(`w-full`,r),"aria-invalid":!!i})}var mP=t({FILTER_CONDITION_EXTRA_OPERATORS:()=>gP,FilterConditionField:()=>FP,condToMongo:()=>DP,default:()=>FP,isMatchAllCriteria:()=>NP,kvToCondition:()=>jP}),hP={id:`root`,logic:`and`,conditions:[]},gP=[`exists`,`notExists`],_P=new Set([`object`,`vector`,`file`,`image`,`avatar`,`signature`,`richtext`,`html`,`markdown`,`location`,`grid`,`json`,`code`]);function vP(e){let t=e?.fields,n=Array.isArray(t)?t.map(e=>[e?.name,e]):t&&typeof t==`object`?Object.entries(t):[],r=[];for(let[e,t]of n){if(!e||!t||t.hidden)continue;let n=t.type;n&&_P.has(n)||r.push({value:e,label:t.label||e,type:n,options:Array.isArray(t.options)?t.options.map(e=>typeof e==`string`?{value:e,label:e}:{value:String(e?.value),label:String(e?.label??e?.value)}):void 0,referenceTo:t.reference})}return r}function yP(e,t){if(e==null)return e;if(t===`boolean`||t===`toggle`)return typeof e==`boolean`?e:e===`true`||e!==`false`&&e;if(t===`number`||t===`currency`||t===`percent`||t===`rating`||t===`slider`){let t=Number(e);return Number.isFinite(t)&&e!==``?t:e}return e}var bP=new Set([`contains`,`icontains`,`not_contains`,`starts_with`,`ends_with`]);function xP(e){return e==null||e===``}function SP(e){return Array.isArray(e)?e:typeof e==`string`?e.split(`,`).map(e=>e.trim()).filter(Boolean):e==null?[]:[e]}function CP(e){return{$or:[{[e]:{$in:[``]}},{[e]:{$null:!0}}]}}function wP(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function TP(e){if(!wP(e))return null;let t=Object.entries(e);if(t.length!==1||t[0][0].startsWith(`$`))return null;let[n,r]=t[0];if(!wP(r))return null;let i=Object.entries(r);return i.length===1?[n,i[0][0],i[0][1]]:null}function EP(e){if(!Array.isArray(e)||e.length!==2)return null;let t=TP(e[0]),n=TP(e[1]);if(!t||!n||t[0]!==n[0])return null;let[r,i,a]=t;return i===`$in`&&kP(a,[``])&&n[1]===`$null`&&n[2]===!0?r:null}function DP(e,t){let{field:n,operator:r,value:i}=e||{};if(!n||bP.has(r)&&xP(i))return null;let a=t(n),o=yP(i,a);switch(r){case`equals`:return{[n]:o};case`not_equals`:return{[n]:{$ne:o}};case`contains`:return{[n]:{$contains:i}};case`icontains`:return{[n]:{$icontains:i}};case`not_contains`:return{[n]:{$notContains:i}};case`starts_with`:return{[n]:{$startsWith:i}};case`ends_with`:return{[n]:{$endsWith:i}};case`is_empty`:return CP(n);case`is_not_empty`:return{[n]:{$nin:[``],$null:!1}};case`is_null`:return{[n]:{$null:!0}};case`is_not_null`:return{[n]:{$null:!1}};case`exists`:return{[n]:{$exists:!0}};case`notExists`:return{[n]:{$exists:!1}};case`greater_than`:case`after`:return{[n]:{$gt:o}};case`less_than`:case`before`:return{[n]:{$lt:o}};case`greater_than_or_equal`:return{[n]:{$gte:o}};case`less_than_or_equal`:return{[n]:{$lte:o}};case`between`:{let[e,t]=Array.isArray(i)?i:[void 0,void 0];return xP(e)||xP(t)?null:{[n]:{$gte:yP(e,a),$lte:yP(t,a)}}}case`in`:return{[n]:{$in:SP(i).map(e=>yP(e,a))}};case`not_in`:return{[n]:{$nin:SP(i).map(e=>yP(e,a))}};default:return{[n]:o}}}function OP(e,t){let n=(e?.conditions??[]).map(e=>DP(e,t)).filter(e=>!!e);if(n.length===0)return null;if(e.logic===`or`)return{$or:n};if(n.length===1)return n[0];let r=n.flatMap(e=>Object.keys(e));return new Set(r).size===r.length?Object.assign({},...n):{$and:n}}function kP(e,t){return Array.isArray(e)&&e.length===t.length&&e.every((e,n)=>e===t[n])}function AP(e){if(e==null||typeof e==`object`&&!Array.isArray(e)&&Object.keys(e).length===0)return``;try{return JSON.stringify(e)??``}catch{return`[unserialisable criteria]`}}function jP(e,t,n){if(e.startsWith(`$`)){let r=e===`$or`?EP(t):null;return r===null?null:{id:`c_${n}_${r}`,field:r,operator:`is_empty`,value:``}}let r=`c_${n}_${e}`;if(typeof t!=`object`||!t||Array.isArray(t))return{id:r,field:e,operator:`equals`,value:t};let i=Object.keys(t);if(i.length===1){let n=i[0],a=t[n];switch(n){case`$ne`:return{id:r,field:e,operator:`not_equals`,value:a};case`$contains`:return{id:r,field:e,operator:`contains`,value:a};case`$icontains`:return{id:r,field:e,operator:`icontains`,value:a};case`$notContains`:case`$ncontains`:return{id:r,field:e,operator:`not_contains`,value:a};case`$gt`:return{id:r,field:e,operator:`greater_than`,value:a};case`$lt`:return{id:r,field:e,operator:`less_than`,value:a};case`$gte`:return{id:r,field:e,operator:`greater_than_or_equal`,value:a};case`$lte`:return{id:r,field:e,operator:`less_than_or_equal`,value:a};case`$startsWith`:return{id:r,field:e,operator:`starts_with`,value:a};case`$endsWith`:return{id:r,field:e,operator:`ends_with`,value:a};case`$null`:return{id:r,field:e,operator:a===!1?`is_not_null`:`is_null`,value:``};case`$exists`:return{id:r,field:e,operator:a===!1?`notExists`:`exists`,value:``};case`$in`:return kP(a,[null,``])?{id:r,field:e,operator:`is_empty`,value:``}:{id:r,field:e,operator:`in`,value:a};case`$nin`:return kP(a,[null,``])?{id:r,field:e,operator:`is_not_empty`,value:``}:{id:r,field:e,operator:`not_in`,value:a};default:return null}}return i.length===2&&`$gte`in t&&`$lte`in t?{id:r,field:e,operator:`between`,value:[t.$gte,t.$lte]}:i.length===2&&`$nin`in t&&`$null`in t&&kP(t.$nin,[``])&&t.$null===!1?{id:r,field:e,operator:`is_not_empty`,value:``}:null}function MP(e){if(e==null)return{...hP,conditions:[]};if(typeof e!=`object`||Array.isArray(e))return null;let t=Object.entries(e);if(t.length===0)return{...hP,conditions:[]};if(t.length===1&&(e.$or||e.$and)&&!jP(t[0][0],t[0][1],0)){let t=e.$or?`or`:`and`,n=e.$or||e.$and;if(!Array.isArray(n))return null;let r=[];for(let e=0;e<n.length;e++){let t=n[e];if(!t||typeof t!=`object`||Object.keys(t).length!==1)return null;let i=Object.keys(t)[0],a=jP(i,t[i],e);if(!a)return null;r.push(a)}return{id:`root`,logic:t,conditions:r}}let n=[],r=0;for(let[e,i]of t){let t=jP(e,i,r++);if(!t)return null;n.push(t)}return{id:`root`,logic:`and`,conditions:n}}function NP(e){if(e==null)return!0;if(Array.isArray(e))return e.every(NP);if(typeof e!=`object`)return!0;let t=Object.entries(e);if(t.length===0)return!0;for(let[e,n]of t){if(e===`$and`){if(!Array.isArray(n)||n.every(NP))continue;return!1}if(e===`$or`){if(!Array.isArray(n)||n.length===0||n.some(NP))continue;return!1}return!1}return!0}function PP(e){if(e==null||e===``)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return``}}function FP({value:e,onChange:t,readonly:n,className:r,error:i,...a}){let o=K.useContext(x),{t:s}=Oj(),c=a.dataSource??o?.dataSource??null,l=a.dependentValues??{},u=String(l.object_name??``),[d,f]=K.useState(null);K.useEffect(()=>{if(f(null),!c||!u||typeof c.getObjectSchema!=`function`)return;let e=!1;return(async()=>{try{let t=await c.getObjectSchema(u);e||f(vP(t))}catch{e||f([])}})(),()=>{e=!0}},[c,u]);let p=K.useMemo(()=>PP(e),[e]),m=K.useMemo(()=>{if(!p.trim())return{mongo:{},ok:!0};try{return{mongo:JSON.parse(p),ok:!0}}catch{return{mongo:null,ok:!1}}},[p]),h=K.useMemo(()=>m.ok?MP(m.mongo):null,[m]),g=K.useMemo(()=>m.ok&&NP(m.mongo),[m]),_=m.ok&&h!==null,[v,y]=K.useState(!_);K.useEffect(()=>{_||y(!0)},[_]);let b=K.useMemo(()=>{let e=new Map((d??[]).map(e=>[e.value,e.type]));return t=>e.get(t)},[d]),[S,C]=K.useState(()=>h??hP),w=m.ok?AP(m.mongo):null,T=AP(OP(S,b));return K.useEffect(()=>{h!==null&&w!==null&&w!==T&&C(h)},[h,w,T]),u?n?p.trim()?(0,q.jsx)(`pre`,{className:J(`overflow-x-auto rounded bg-muted/40 p-2 text-xs`,r),children:p}):(0,q.jsx)(`span`,{className:J(`text-sm text-destructive`,r),children:s(`fields.filterCondition.noCriteria`)}):(0,q.jsxs)(`div`,{className:J(`flex flex-col gap-2`,r),children:[v?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`textarea`,{...bj(a),className:`min-h-[96px] w-full rounded border bg-background px-2 py-1 font-mono text-xs`,value:p,placeholder:`{ "type": "customer", "is_active": true }`,onChange:e=>t(e.target.value),"aria-invalid":!!i||!m.ok}),!m.ok&&(0,q.jsx)(`span`,{className:`text-xs text-destructive`,children:s(`fields.filterCondition.invalidJson`)})]}):(0,q.jsx)(SE,{fields:d??[],value:S,onChange:e=>{C(e);let n=OP(e,b);t(n==null?``:JSON.stringify(n))},extraOperators:gP}),g&&(0,q.jsx)(`span`,{className:`text-xs text-destructive`,children:s(`fields.filterCondition.criteriaRequired`)}),(0,q.jsx)(`button`,{type:`button`,className:`self-start text-xs text-muted-foreground underline-offset-2 hover:underline`,onClick:()=>y(e=>!e),disabled:!_&&!v,title:_?void 0:s(`fields.filterCondition.jsonOnly`),children:s(v?`fields.filterCondition.useVisualBuilder`:`fields.filterCondition.editAsJson`)})]}):(0,q.jsx)(`p`,{className:J(`text-sm text-muted-foreground`,r),children:s(`fields.filterCondition.selectObjectFirst`)})}var IP=t({RecipientPickerField:()=>VP,default:()=>VP,deriveUserFields:()=>BP,fieldHoldsUsers:()=>zP}),LP={user:{object:`sys_user`,storeField:`id`,labelFields:[`name`,`full_name`,`email`],placeholderKey:`fields.recipient.selectUser`},team:{object:`sys_team`,storeField:`id`,labelFields:[`name`,`label`],placeholderKey:`fields.recipient.selectTeam`},business_unit:{object:`sys_business_unit`,storeField:`id`,labelFields:[`name`,`label`],placeholderKey:`fields.recipient.selectBusinessUnit`},unit_and_subordinates:{object:`sys_business_unit`,storeField:`id`,labelFields:[`name`,`label`],placeholderKey:`fields.recipient.selectUnitAndSubordinates`},position:{object:`sys_position`,storeField:`name`,labelFields:[`label`,`name`],placeholderKey:`fields.recipient.selectPosition`}},RP=`field`;function zP(e){if(!e||typeof e!=`object`)return!1;let t=e;return t.type===`user`||(t.type===`lookup`||t.type===`master_detail`)&&t.reference===`sys_user`}function BP(e){let t=e?.fields,n=Array.isArray(t)?t.map(e=>[e?.name,e]):t&&typeof t==`object`?Object.entries(t):[],r=[];for(let[e,t]of n)e&&zP(t)&&r.push({name:String(e),label:t.label?String(t.label):String(e)});return r}function VP({value:e,onChange:t,readonly:n,className:r,error:i,...a}){let o=K.useContext(x),{t:s}=Oj(),c=a.dataSource??o?.dataSource??null,l=a.disabled,u=a.dependentValues??{},d=String(u.recipient_type??``),f=LP[d],p=String(u.object_name??``),m=d===RP&&!!c&&typeof c.getObjectSchema==`function`,[h,g]=K.useState(null),[_,v]=K.useState(null),y=K.useRef(``);K.useEffect(()=>{y.current&&d&&y.current!==d&&e&&t(``),y.current=d},[d]),K.useEffect(()=>{if(g(null),!c||!f||typeof c.find!=`function`)return;let e=!1;return(async()=>{try{let t=await c.find(f.object,{$top:500,$orderby:{name:`asc`}}),n=t?.data??t?.records??(Array.isArray(t)?t:[]);e||g(Array.isArray(n)?n:[])}catch{e||g([])}})(),()=>{e=!0}},[c,f?.object]),K.useEffect(()=>{if(v(null),!m||!p)return;let e=!1;return(async()=>{try{let t=await c.getObjectSchema(p);e||v(BP(t))}catch{e||v([])}})(),()=>{e=!0}},[c,p,m]);let b=e=>{for(let t of f?.labelFields??[`name`])if(e?.[t])return String(e[t]);return String(e?.id??``)},S=e=>String(e?.[f?.storeField??`id`]??``),C=K.useMemo(()=>{let t=(h??[]).map(e=>({value:S(e),label:b(e)})).filter(e=>e.value);return e&&!t.some(t=>t.value===e)&&t.unshift({value:e,label:e}),t},[h,e,f]),w=K.useMemo(()=>(_??[]).map(e=>({value:e.name,label:e.label})),[_]),{name:T,...E}=bj(a);if(!d)return(0,q.jsx)(`p`,{className:J(`text-sm text-muted-foreground`,r),children:s(`fields.recipient.selectTypeFirst`)});if(m){if(!p)return(0,q.jsx)(`p`,{className:J(`text-sm text-muted-foreground`,r),children:s(`fields.filterCondition.selectObjectFirst`)});let a=e&&!w.some(t=>t.value===e)?[{value:e,label:s(`fields.recipient.fieldNotUserTyped`,{name:e})},...w]:w;return n?e?(0,q.jsx)(`span`,{className:r,children:a.find(t=>t.value===e)?.label??e}):(0,q.jsx)($,{}):(0,q.jsx)(OT,{...E,options:a,value:e??``,onValueChange:e=>t(e),placeholder:s(_===null?`fields.recipient.loading`:`fields.recipient.selectField`),searchPlaceholder:s(`fields.recipient.search`),emptyText:s(_===null?`fields.recipient.loading`:`fields.recipient.noUserFields`),disabled:l,className:J(`w-full`,r),"aria-invalid":!!i})}return f?n?e?(0,q.jsx)(`span`,{className:r,children:C.find(t=>t.value===e)?.label??e}):(0,q.jsx)($,{}):(0,q.jsx)(OT,{...E,options:C,value:e??``,onValueChange:e=>t(e),placeholder:s(h===null?`fields.recipient.loading`:f.placeholderKey??`fields.recipient.select`),searchPlaceholder:s(`fields.recipient.search`),emptyText:s(h===null?`fields.recipient.loading`:`fields.recipient.empty`),disabled:l,className:J(`w-full`,r),"aria-invalid":!!i}):(0,q.jsx)(`input`,{...bj(a),className:J(`w-full rounded border bg-background px-2 py-1 text-sm`,r),value:e??``,disabled:l||n,onChange:e=>t(e.target.value),"aria-invalid":!!i})}var HP=K.createContext(null);function UP(){let[e,t]=K.useState([]),n=K.useContext(HP),r=K.useRef(n);r.current=n;let i=K.useId(),a=K.useMemo(()=>({report(e,n){t(t=>n===t.includes(e)?t:n?[...t,e]:t.filter(t=>t!==e))}}),[]),o=e.length>0;return K.useEffect(()=>{r.current?.report(i,o)},[o,i]),K.useEffect(()=>()=>{r.current?.report(i,!1)},[i]),{anyUploading:o,sink:a}}function WP({scope:e,children:t}){return(0,q.jsx)(HP.Provider,{value:e.sink,children:t})}function GP(e){let t=K.useContext(HP),n=K.useId(),r=K.useRef(t);r.current=t,K.useEffect(()=>{r.current?.report(n,e)},[e,n]),K.useEffect(()=>()=>{r.current?.report(n,!1)},[n])}var KP=0,qP=()=>{};function JP(){let e=K.useContext(HP),t=K.useRef(e);return t.current=e,K.useCallback(()=>{let e=t.current;if(!e)return qP;KP+=1;let n=`upload-hold:${KP}`;e.report(n,!0);let r=!1;return()=>{r||(r=!0,e.report(n,!1))}},[])}function YP(e,t){let n=(0,K.useRef)(t);n.current=t,(0,K.useEffect)(()=>{n.current?.(e)},[e]),GP(e)}var XP=1048576;function ZP(e,t,n){if(!n||t.size<=n)return null;let r=(n/XP).toFixed(1);return e(`fields.file.exceedsMaxSize`,{defaultValue:`"${t.name}" exceeds max size (${r} MB)`,name:t.name,max:r})}function QP(e,t,n){return n instanceof qA?e(`fields.file.uploadIncomplete`,{defaultValue:`Upload of "${t}" did not complete: no file id was returned, so nothing was saved`,name:t}):e(`fields.file.uploadFailed`,{defaultValue:`Failed to upload "${t}": ${n.message}`,name:t,error:n.message})}var $P=t({FileCell:()=>nF,FileField:()=>tF});function eF(e){let{files:t,multiple:n,maxSize:r,onChange:i,holdScope:a}=e,{upload:o}=Pa(),{t:s}=Ct(),[c,l]=(0,K.useState)([]),[u,d]=(0,K.useState)({}),[f,p]=(0,K.useState)(!1),[m,h]=(0,K.useState)({});return{processFiles:(0,K.useCallback)(async e=>{if(e.length===0)return;let c=[],u=e.filter(e=>{let t=ZP(s,e,r);return!t||(c.push(t),!1)});if(l(c),u.length===0)return;let f=a?.();p(!0);try{let e=(await Promise.all(u.map(async e=>{try{let t=await o(e,{onProgress:t=>d(n=>({...n,[e.name]:t}))}),n=JA(t,e.name);return{result:t,originalName:e.name,value:n}}catch(t){return c.push(QP(s,e.name,t)),l([...c]),null}}))).filter(Boolean);if(e.length===0)return;let r={};for(let{result:t,originalName:n}of e){let e=YA(t,n);e.id&&(r[e.id]=e)}Object.keys(r).length>0&&h(e=>({...e,...r}));let a=e.map(({value:e})=>e);i(n?[...t,...a]:a[0])}finally{f?.(),p(!1),d({})}},[t,n,i,r,o,s,a]),errors:c,uploading:f,uploadProgress:u,recent:m}}function tF({value:e,onChange:t,field:n,readonly:r,onUploadingChange:i,error:a,...o}){let{t:s}=Ct(),c=(0,K.useRef)(null),l=(0,K.useRef)(null),u=n,d=u?.multiple||!1,f=u?.accept?u.accept.join(`,`):void 0,p=u?.maxSize,m=u?.capture??null,h=!f||f.split(`,`).some(e=>e.trim().startsWith(`image/`)||e.trim()===`image/*`||e.trim().startsWith(`.jp`)||e.trim().startsWith(`.png`)||e.trim().startsWith(`.gif`)||e.trim().startsWith(`.webp`)),g=typeof navigator<`u`&&(navigator.maxTouchPoints>0||/Mobi|Android/i.test(navigator.userAgent)),_=m===!1?!1:m??(h&&g?`environment`:null),[v,y]=(0,K.useState)(!1),b=e?Array.isArray(e)?e:[e]:[],{processFiles:x,errors:S,uploading:C,uploadProgress:w,recent:T}=eF({files:b,multiple:d,maxSize:p,onChange:t,holdScope:JP()}),E=XA(GA(e,s(`fields.file.fileFallback`,{defaultValue:`File`})),T);YP(C,i);let D=(0,K.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),y(!0)},[]),O=(0,K.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),y(!1)},[]),k=(0,K.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),y(!1);let t=Array.from(e.dataTransfer.files);if(f){let e=f.split(`,`).map(e=>e.trim().toLowerCase()),n=t.filter(t=>{let n=t.name.split(`.`),r=n.length>1?`.`+n.pop()?.toLowerCase():``;return e.some(e=>e===t.type||r&&e===r||e.endsWith(`/*`)&&t.type.startsWith(e.replace(`/*`,`/`)))});x(n)}else x(t)},[f,x]);if(r){let t=Vj(o,`instead-of-the-inputs`);return e?(0,q.jsx)(`div`,{...t,className:`flex flex-wrap gap-2`,children:E.map((e,t)=>(0,q.jsx)(ZA,{view:e,className:`text-sm max-w-xs`,fallback:(0,q.jsx)(`span`,{className:`text-sm truncate max-w-xs`,children:e.name})},t))}):(0,q.jsx)($,{...t})}let A=e=>{x(Array.from(e.target.files||[]))},j=e=>{if(d){let n=b.filter((t,n)=>n!==e);t(n.length>0?n:null)}else t(null)},{name:M,...N}=bj(o);return(0,q.jsxs)(`div`,{className:o.className,children:[(0,q.jsx)(`input`,{ref:c,type:`file`,multiple:d,accept:f,onChange:A,className:`hidden`}),_&&(0,q.jsx)(`input`,{ref:l,type:`file`,accept:`image/*`,capture:_,onChange:A,className:`hidden`,"aria-label":s(`fields.file.cameraCapture`,{defaultValue:`Camera capture`}),"data-testid":`file-field-camera-input`}),(0,q.jsxs)(`div`,{className:`space-y-2`,children:[(0,q.jsxs)(`div`,{...N,onDragOver:D,onDragLeave:O,onDrop:k,onClick:()=>c.current?.click(),className:`
30
- flex flex-col items-center justify-center gap-2 p-6
31
- border-2 border-dashed rounded-lg cursor-pointer
32
- transition-colors duration-200
33
- ${v?`border-primary bg-primary/5 text-primary`:`border-muted-foreground/25 hover:border-primary/50 text-muted-foreground hover:text-foreground`}
34
- `,role:`button`,tabIndex:0,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),c.current?.click())},"aria-invalid":!!a,children:[(0,q.jsx)(Sa,{className:`size-8 ${v?`text-primary`:`text-muted-foreground`}`}),(0,q.jsxs)(`div`,{className:`text-center`,children:[(0,q.jsx)(`p`,{className:`text-sm font-medium`,children:v?s(`fields.file.dropFilesHere`,{defaultValue:`Drop files here`}):s(`fields.file.dragDropHere`,{defaultValue:`Drag & drop files here`})}),(0,q.jsx)(`p`,{className:`text-xs text-muted-foreground mt-1`,children:_?s(`fields.file.browseHintCamera`,{defaultValue:`or click to browse • use the camera button below`}):s(`fields.file.browseHint`,{defaultValue:`or click to browse`})})]})]}),_&&(0,q.jsxs)(X,{type:`button`,variant:`outline`,size:`sm`,className:`w-full`,onClick:e=>{e.stopPropagation(),l.current?.click()},"data-testid":`file-field-camera-button`,children:[(0,q.jsx)(di,{className:`size-4 mr-2`}),_===`user`?s(`fields.file.takeSelfie`,{defaultValue:`Take selfie`}):s(`fields.file.takePhoto`,{defaultValue:`Take photo`})]}),C&&(0,q.jsxs)(`div`,{className:`flex items-center gap-2 text-xs text-muted-foreground`,"data-testid":`file-field-uploading`,children:[(0,q.jsx)(qi,{className:`size-3 animate-spin`}),(0,q.jsx)(`span`,{children:(()=>{let e=Object.keys(w);if(e.length===0)return s(`fields.file.uploading`,{defaultValue:`Uploading…`});let t=Math.round(Object.values(w).reduce((e,t)=>e+t,0)/e.length*100);return s(`fields.file.uploadingPct`,{defaultValue:`Uploading… (${t}%)`,pct:t})})()})]}),S.length>0&&(0,q.jsx)(`div`,{className:`space-y-0.5`,children:S.map((e,t)=>(0,q.jsx)(`p`,{className:`text-xs text-destructive`,children:e},t))}),E.length>0&&(0,q.jsx)(`div`,{className:`space-y-1`,children:E.map((e,t)=>(0,q.jsxs)(`div`,{className:`flex items-center justify-between gap-2 p-2 bg-muted/50 rounded-md border`,children:[(0,q.jsxs)(`div`,{className:`flex items-center gap-2 flex-1 min-w-0`,children:[KA(e)&&e.url?(0,q.jsx)(`img`,{src:e.url,alt:e.name,className:`size-8 object-cover rounded shrink-0`}):KA(e)?(0,q.jsx)(Ui,{className:`size-4 text-muted-foreground shrink-0`}):(0,q.jsx)(Li,{className:`size-4 text-muted-foreground shrink-0`}),(0,q.jsx)(ZA,{view:e,className:`text-sm`,icon:!1,fallback:(0,q.jsx)(`span`,{className:`text-sm truncate`,children:e.name})}),e.size&&(0,q.jsxs)(`span`,{className:`text-xs text-muted-foreground`,children:[`(`,(e.size/1024).toFixed(1),` KB)`]})]}),(0,q.jsx)(X,{type:`button`,variant:`ghost`,size:`sm`,onClick:e=>{e.stopPropagation(),j(t)},className:`h-6 w-6 p-0`,children:(0,q.jsx)(wa,{className:`size-3`})})]},t))})]})]})}function nF({value:e,onChange:t,disabled:n,multiple:r,accept:i,maxSize:a,error:o,"aria-label":s,"data-cell":c}){let{t:l}=Ct(),u=(0,K.useRef)(null),d=e?Array.isArray(e)?e:[e]:[],{processFiles:f,errors:p,uploading:m,recent:h}=eF({files:d,multiple:!!r,maxSize:a,onChange:t}),g=XA(GA(e,l(`fields.file.fileFallback`,{defaultValue:`File`})),h),_=e=>{if(r){let n=d.filter((t,n)=>n!==e);t(n.length>0?n:null)}else t(null)},v=!n&&!m&&(r||d.length===0);return(0,q.jsxs)(`div`,{className:`flex min-h-8 flex-wrap items-center gap-1 px-1 py-0.5`,children:[(0,q.jsx)(`input`,{ref:u,type:`file`,multiple:r,accept:i,onChange:e=>{f(Array.from(e.target.files||[])),e.target.value=``},className:`hidden`}),g.map((e,t)=>(0,q.jsxs)(`span`,{className:`inline-flex max-w-40 items-center gap-1 rounded border bg-muted/50 px-1 py-0.5 text-xs`,title:e.name,"data-testid":`file-cell-chip`,children:[KA(e)&&e.url?(0,q.jsx)(`img`,{src:e.url,alt:e.name,className:`size-5 shrink-0 rounded object-cover`}):(0,q.jsx)(Li,{className:`size-3 shrink-0 text-muted-foreground`}),(0,q.jsx)(ZA,{view:e,icon:!1,fallback:(0,q.jsx)(`span`,{className:`truncate`,children:e.name})}),!n&&(0,q.jsx)(`button`,{type:`button`,className:`shrink-0 rounded p-0.5 text-muted-foreground hover:text-foreground`,"aria-label":l(`fields.file.remove`,{defaultValue:`Remove ${e.name}`,name:e.name}),onClick:()=>_(t),children:(0,q.jsx)(wa,{className:`size-3`})})]},t)),m&&(0,q.jsx)(`span`,{className:`inline-flex items-center gap-1 text-xs text-muted-foreground`,"data-testid":`file-cell-uploading`,children:(0,q.jsx)(qi,{className:`size-3.5 animate-spin`})}),v&&(0,q.jsxs)(X,{type:`button`,variant:`ghost`,size:`sm`,className:`h-7 gap-1 px-2 text-xs text-muted-foreground hover:text-foreground`,onClick:()=>u.current?.click(),"aria-label":s,"data-cell":c,disabled:n,"aria-invalid":!!o,children:[(0,q.jsx)(Sa,{className:`size-3.5`}),d.length===0&&l(`fields.file.upload`,{defaultValue:`Upload`})]}),p.length>0&&(0,q.jsx)(`span`,{className:`w-full truncate text-[11px] text-destructive`,title:p.join(`; `),children:p[0]})]})}var rF=t({ImageField:()=>aF}),iF=(0,K.lazy)(()=>n(()=>Promise.resolve().then(()=>oF).then(e=>({default:e.ImageCropperDialog})),void 0,import.meta.url));function aF({value:e,onChange:t,field:n,readonly:r,onUploadingChange:i,error:a,...o}){let s=(0,K.useRef)(null),c=n,l=c?.multiple||!1,u=c?.accept?c.accept.join(`,`):`image/*`,d=c?.maxSize,f=c?.crop!==!1,[p,m]=(0,K.useState)(null),[h,g]=(0,K.useState)(null),{upload:_}=Pa(),{t:v}=Ct(),[y,b]=(0,K.useState)(!1),[x,S]=(0,K.useState)([]),[C,w]=(0,K.useState)({});YP(y,i);let T=JP(),E=e?Array.isArray(e)?e:[e]:[],D=XA(GA(e,``),C),O=(0,K.useCallback)((e,t)=>{let n=YA(e,t);n.id&&w(e=>({...e,[n.id]:n}))},[]),k=(0,K.useCallback)(async(e,n)=>{if(!p)return;let r=ZP(v,{name:n,size:e.size},d);if(r){S([r]),m(null);return}S([]);let i=T();b(!0);try{let r=await _(e),i=JA(r,n);if(O(r,n),l){let e=[...E];e[p.index]=i,t(e)}else t(i)}catch(e){S([QP(v,n,e)])}finally{i(),b(!1),m(null)}},[p,E,l,t,_,O,d,v,T]),A=(0,K.useCallback)(e=>{let t=D[e];t?.url&&m({index:e,src:t.url,name:t.name||`image-${e}.png`})},[D]),j=D.filter(e=>e.url).map(e=>({url:e.url,name:e.name}));if(r)return!e||j.length===0?(0,q.jsx)($,{}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:j.map((e,t)=>(0,q.jsxs)(`button`,{type:`button`,onClick:()=>g(t),className:`group relative overflow-hidden rounded-md border border-border focus:outline-none focus:ring-2 focus:ring-ring`,"aria-label":v(`fields.image.enlarge`,{name:e.name||v(`fields.image.imageAlt`,{index:t+1})}),children:[(0,q.jsx)(`img`,{src:e.url,alt:e.name||v(`fields.image.imageAlt`,{index:t+1}),className:`size-20 object-cover transition-transform duration-150 group-hover:scale-105`}),(0,q.jsx)(`span`,{className:`pointer-events-none absolute inset-0 bg-black/0 transition-colors group-hover:bg-black/10`})]},t))}),h!==null&&(0,q.jsx)(zA,{images:j,index:h,open:!0,onOpenChange:e=>!e&&g(null),onIndexChange:g})]});let M=async e=>{let n=Array.from(e.target.files||[]);if(s.current&&(s.current.value=``),n.length===0)return;let r=[],i=n.filter(e=>{let t=ZP(v,e,d);return!t||(r.push(t),!1)});if(S(r),i.length===0)return;let a=[],o=T();b(!0);try{let e=await Promise.all(i.map(async e=>{try{let t=await _(e),n=JA(t,e.name);return O(t,e.name),n}catch(t){return a.push(QP(v,e.name,t)),null}}));a.length>0&&S([...r,...a]);let n=e.filter(e=>e!==null);if(n.length===0)return;t(l?[...E,...n]:n[0])}finally{o(),b(!1)}},N=e=>{if(l){let n=E.filter((t,n)=>n!==e);t(n.length>0?n:null)}else t(null)};return(0,q.jsxs)(`div`,{className:o.className,children:[(0,q.jsx)(`input`,{ref:s,type:`file`,multiple:l,accept:u,onChange:M,className:`hidden`}),(0,q.jsxs)(`div`,{className:`space-y-2`,children:[D.length>0&&(0,q.jsx)(`div`,{className:`grid grid-cols-4 gap-2`,children:D.map((e,t)=>(0,q.jsxs)(`div`,{className:`relative group`,children:[(0,q.jsx)(`img`,{src:e.url||``,alt:e.name||v(`fields.image.imageAlt`,{index:t+1}),className:`size-20 rounded-md object-cover border border-gray-200`}),(0,q.jsxs)(`div`,{className:`absolute top-1 right-1 flex gap-1 opacity-0 group-hover:opacity-100 transition-opacity`,children:[f&&(0,q.jsx)(X,{type:`button`,variant:`secondary`,size:`sm`,onClick:()=>A(t),className:`h-6 w-6 p-0`,"aria-label":v(`fields.image.crop`,{index:t+1}),"data-testid":`image-field-crop-${t}`,children:(0,q.jsx)(Di,{className:`size-3`})}),(0,q.jsx)(X,{type:`button`,variant:`destructive`,size:`sm`,onClick:()=>N(t),className:`h-6 w-6 p-0`,"aria-label":v(`fields.image.remove`,{index:t+1}),children:(0,q.jsx)(wa,{className:`size-3`})})]})]},t))}),(0,q.jsxs)(X,{...bj(o),type:`button`,variant:`outline`,onClick:()=>s.current?.click(),className:`w-full`,disabled:y,"data-testid":`image-field-upload-button`,"aria-invalid":!!a,children:[y?(0,q.jsx)(qi,{className:`size-4 mr-2 animate-spin`}):(0,q.jsx)(Ui,{className:`size-4 mr-2`}),y?v(`fields.image.uploading`):E.length>0?v(`fields.image.addMore`):v(`fields.image.upload`)]}),x.length>0&&(0,q.jsx)(`div`,{className:`space-y-0.5`,children:x.map((e,t)=>(0,q.jsx)(`p`,{className:`text-xs text-destructive`,children:e},t))})]}),f&&p&&(0,q.jsx)(K.Suspense,{fallback:null,children:(0,q.jsx)(iF,{open:!0,onOpenChange:e=>!e&&m(null),src:p.src,outputName:p.name,onConfirm:k})})]})}var oF=t({ImageCropperDialog:()=>sF}),sF=({open:e,onOpenChange:t,src:n,outputType:r=`image/png`,outputName:i=`cropped.png`,onConfirm:a})=>{let o=(0,K.useRef)(null),s=(0,K.useRef)(null),[c,l]=(0,K.useState)(0),[u,d]=(0,K.useState)({x:0,y:0,width:100,height:100}),[f,p]=(0,K.useState)(null),[m,h]=(0,K.useState)(!1);(0,K.useEffect)(()=>{if(!e||!n)return;h(!1);let t=new Image;t.crossOrigin=`anonymous`,t.onload=()=>{s.current=t;let e=t.naturalWidth*.8,n=t.naturalHeight*.8;d({x:(t.naturalWidth-e)/2,y:(t.naturalHeight-n)/2,width:e,height:n}),l(0),h(!0)},t.onerror=()=>h(!1),t.src=n},[e,n]),(0,K.useEffect)(()=>{if(!m||!s.current||!o.current)return;let e=s.current,t=o.current,n=t.getContext(`2d`);if(!n)return;let r=480/e.naturalWidth,i=e.naturalHeight*r;t.width=480,t.height=i,n.clearRect(0,0,480,i),n.save(),n.translate(240,i/2),n.rotate(c*Math.PI/180);let a=c%180==0?480:i,l=c%180==0?i:480;n.drawImage(e,-a/2,-l/2,a,l),n.restore();let d=u.x*r,f=u.y*r,p=u.width*r,h=u.height*r;n.fillStyle=`rgba(0,0,0,0.45)`,n.fillRect(0,0,480,f),n.fillRect(0,f+h,480,i-f-h),n.fillRect(0,f,d,h),n.fillRect(d+p,f,480-d-p,h),n.strokeStyle=`#3b82f6`,n.lineWidth=2,n.strokeRect(d,f,p,h)},[m,u,c]);let g=(0,K.useCallback)(e=>{if(!s.current||!o.current)return;let t=o.current.getBoundingClientRect(),n=s.current.naturalWidth/t.width;p({ox:(e.clientX-t.left)*n,oy:(e.clientY-t.top)*n,cx:u.x,cy:u.y}),e.target.setPointerCapture(e.pointerId)},[u]),_=(0,K.useCallback)(e=>{if(!f||!s.current||!o.current)return;let t=o.current.getBoundingClientRect(),n=s.current.naturalWidth/t.width,r=(e.clientX-t.left)*n-f.ox,i=(e.clientY-t.top)*n-f.oy,a=Math.max(0,Math.min(f.cx+r,s.current.naturalWidth-u.width)),c=Math.max(0,Math.min(f.cy+i,s.current.naturalHeight-u.height));d(e=>({...e,x:a,y:c}))},[f,u.width,u.height]),v=(0,K.useCallback)(()=>p(null),[]),y=(0,K.useCallback)(()=>l(e=>(e+90)%360),[]),b=(0,K.useCallback)(async()=>{if(!s.current)return;let e=s.current,n=document.createElement(`canvas`),o=u.width,l=u.height;n.width=c%180==0?o:l,n.height=c%180==0?l:o;let d=n.getContext(`2d`);if(!d)return;d.save(),d.translate(n.width/2,n.height/2),d.rotate(c*Math.PI/180),d.drawImage(e,u.x,u.y,o,l,-o/2,-l/2,o,l),d.restore();let f=await new Promise(e=>n.toBlob(e,r));f&&(a(f,i),t(!1))},[u,c,i,r,a,t]);return(0,q.jsx)(am,{open:e,onOpenChange:t,children:(0,q.jsxs)(lm,{className:`max-w-xl`,children:[(0,q.jsxs)(um,{children:[(0,q.jsx)(fm,{children:`Crop & rotate image`}),(0,q.jsx)(pm,{children:`Drag the highlighted box to reposition the crop. Use the rotate button to spin the image in 90° increments.`})]}),(0,q.jsxs)(`div`,{className:`flex flex-col items-center gap-3`,children:[m?(0,q.jsx)(`canvas`,{ref:o,"data-testid":`image-cropper-canvas`,role:`img`,"aria-label":`Image crop preview`,className:`border rounded-md cursor-move touch-none max-w-full`,onPointerDown:g,onPointerMove:_,onPointerUp:v,onPointerCancel:v}):(0,q.jsx)(`div`,{className:`flex h-[270px] w-full items-center justify-center text-sm text-muted-foreground`,children:`Loading image…`}),(0,q.jsxs)(`div`,{className:`flex w-full items-center justify-between text-xs text-muted-foreground`,children:[(0,q.jsxs)(`span`,{children:[`Crop: `,Math.round(u.width),` × `,Math.round(u.height),` px`]}),(0,q.jsxs)(`span`,{children:[`Rotation: `,c,`°`]})]})]}),(0,q.jsxs)(dm,{className:`flex justify-between sm:justify-between`,children:[(0,q.jsxs)(X,{type:`button`,variant:`outline`,onClick:y,"data-testid":`image-cropper-rotate`,children:[(0,q.jsx)(oa,{className:`size-4 mr-2`}),`Rotate 90°`]}),(0,q.jsxs)(`div`,{className:`flex gap-2`,children:[(0,q.jsx)(X,{type:`button`,variant:`ghost`,onClick:()=>t(!1),children:`Cancel`}),(0,q.jsxs)(X,{type:`button`,onClick:b,disabled:!m,"data-testid":`image-cropper-confirm`,children:[(0,q.jsx)(Di,{className:`size-4 mr-2`}),`Apply crop`]})]})]})]})})},cF=t({FormulaField:()=>lF});function lF({value:e,field:t,...n}){let r=St(),i=t?.return_type||`text`;if(e==null)return(0,q.jsx)($,{className:n.className});let a;if(i===`number`||i===`currency`)a=typeof e==`number`?e.toFixed(2):String(e);else if(i===`boolean`)a=e?`Yes`:`No`;else if(i===`date`){if(isNaN(nt(e).getTime()))return(0,q.jsx)($,{className:n.className});a=qe(e,void 0,{locale:r})}else a=String(e);return(0,q.jsx)(`span`,{className:`text-sm font-mono text-gray-700 ${n.className||``}`,children:a})}var uF=t({SummaryField:()=>dF});function dF({value:e,field:t,...n}){let r=t?.summary_type||`count`;if(e==null)return(0,q.jsx)($,{className:n.className});let i;return i=r===`count`?String(e):[`sum`,`avg`,`min`,`max`].includes(r)&&typeof e==`number`?e.toFixed(2):String(e),(0,q.jsx)(`span`,{className:`text-sm font-medium tabular-nums text-gray-700 ${n.className||``}`,children:i})}var fF=t({AutoNumberField:()=>pF});function pF({value:e,field:t,...n}){return e==null?(0,q.jsx)($,{className:n.className}):(0,q.jsx)(`span`,{className:`text-sm font-mono text-gray-700 ${n.className||``}`,children:String(e)})}var mF=t({ObjectField:()=>hF});function hF({value:e,onChange:t,field:n,readonly:r,error:i,...a}){let o=n,[s,c]=(0,K.useState)(()=>e==null?``:JSON.stringify(e,null,2)),[l,u]=(0,K.useState)(null),{t:d}=Oj();if((0,K.useEffect)(()=>{try{if(e==null){c(``);return}let t=s?JSON.parse(s):null;JSON.stringify(t)!==JSON.stringify(e)&&c(JSON.stringify(e,null,2))}catch{c(JSON.stringify(e,null,2))}},[e,s]),r)return e?(0,q.jsx)(`pre`,{className:J(`text-xs bg-gray-50 p-2 rounded border border-gray-200 overflow-auto max-h-40`,a.className),children:JSON.stringify(e,null,2)}):(0,q.jsx)($,{});let f=e=>{let n=e.target.value;if(c(n),u(null),!n.trim()){t(null);return}try{t(JSON.parse(n))}catch{u(d(`fields.object.invalidJson`))}};return(0,q.jsxs)(`div`,{className:`space-y-1`,children:[(0,q.jsx)(Kb,{...bj(a),value:s,onChange:f,placeholder:o?.placeholder||`{
35
- "key": "value"
36
- }`,disabled:r||a.disabled,className:J(`font-mono text-xs`,l?`border-red-500 focus-visible:ring-red-500`:``,a.className),rows:6,"aria-invalid":!!i||!!l}),l&&(0,q.jsx)(`p`,{className:`text-xs text-red-500`,children:l})]})}var gF=t({VectorField:()=>_F});function _F({value:e,field:t,...n}){let r=t?.dimensions||(Array.isArray(e)?e.length:0);if(!e||!Array.isArray(e))return(0,q.jsx)($,{});let i=e.slice(0,3).map(e=>{let t=Number(e);return isNaN(t)?`0`:t.toFixed(4)}).join(`, `);return(0,q.jsxs)(`div`,{className:`text-sm ${n.className||``}`,children:[(0,q.jsxs)(`span`,{className:`font-mono text-gray-700`,children:[`[`,i,`...]`]}),(0,q.jsxs)(`span`,{className:`text-gray-500 ml-2`,children:[`(`,r,`D)`]})]})}var vF=t({GridField:()=>RF,LineItemsField:()=>zF,computeRow:()=>AF,evalArith:()=>TF,lookupAutofillPatch:()=>EF,sumColumn:()=>LF}),yF=e=>e===`number`||e===`currency`,bF={text:160,select:132,lookup:168,number:104,currency:116,date:150,datetime:200,time:116,file:168},xF=e=>e.width??bF[e.type??`text`]??132;function SF(e){if(e.width)return{width:e.width,minWidth:e.width};if((e.type??`text`)===`text`)return{minWidth:180};let t=bF[e.type??`text`]??132;return{width:t,minWidth:t}}function CF(e){let t=[],n=0;for(;n<e.length;){let r=e[n];if(r===` `||r===` `||r===`
37
- `){n++;continue}if(r>=`0`&&r<=`9`||r===`.`){let r=n+1;for(;r<e.length&&(e[r]>=`0`&&e[r]<=`9`||e[r]===`.`);)r++;t.push({t:`num`,v:e.slice(n,r)}),n=r;continue}if(/[a-zA-Z_]/.test(r)){let r=n+1;for(;r<e.length&&/[a-zA-Z0-9_.]/.test(e[r]);)r++;t.push({t:`id`,v:e.slice(n,r)}),n=r;continue}if(r===`+`||r===`-`||r===`*`||r===`/`||r===`%`){t.push({t:`op`,v:r}),n++;continue}if(r===`(`){t.push({t:`lp`,v:r}),n++;continue}if(r===`)`){t.push({t:`rp`,v:r}),n++;continue}return null}return t}function wF(e,t){let n=e.startsWith(`record.`)?e.slice(7):e,r=t?.[n];if(r==null||r===``)return null;let i=Number(r);return Number.isFinite(i)?i:null}function TF(e,t){let n=CF(e);if(!n||n.length===0)return null;let r=0,i=!1,a=()=>n[r],o=()=>n[r++];function s(){let e=a();if(!e)return i=!0,NaN;if(e.t===`op`&&e.v===`-`)return o(),-s();if(e.t===`op`&&e.v===`+`)return o(),s();if(e.t===`num`)return o(),Number(e.v);if(e.t===`id`){o();let n=wF(e.v,t);return n===null?(i=!0,NaN):n}if(e.t===`lp`){o();let e=l(),t=o();return(!t||t.t!==`rp`)&&(i=!0),e}return i=!0,NaN}function c(){let e=s();for(;a()&&a().t===`op`&&(a().v===`*`||a().v===`/`||a().v===`%`);){let t=o().v,n=s();e=t===`*`?e*n:t===`/`?e/n:e%n}return e}function l(){let e=c();for(;a()&&a().t===`op`&&(a().v===`+`||a().v===`-`);){let t=o().v,n=c();e=t===`+`?e+n:e-n}return e}let u=l();return i||r!==n.length||!Number.isFinite(u)?null:u}function EF(e,t,n){let r={[t.name]:n?.value??n?.id??n?._id};if(t.autofill!==!1&&n&&typeof n==`object`)for(let i of e){if(i.name===t.name||i.computed||i.type===`lookup`)continue;let e=n[i.name];e!=null&&e!==``&&(r[i.name]=e)}return r}function DF(e){return yt(void 0,e)}function OF(e,t){return e.scale??(t?tj(t):void 0)}function kF(e,t){return e.type===`currency`?OF(e,DF(t)):e.scale}function AF(e,t,n){let r=e.filter(e=>e.computed&&e.expr);if(r.length===0)return t;let i={...t};for(let e of r){let t=TF(e.expr,i);if(t===null){i[e.name]=null;continue}let r=kF(e,n);i[e.name]=r==null?t:Number(t.toFixed(RA(r,`grid computed column`,`objectui#10071`)))}return i}var jF=e=>e===`date`||e===`datetime`||e===`time`;function MF(e,t,n){let r=String(t);if(e===`time`)return r;if(e===`date`){let e=Ce(t);if(!e)return r;let i=nt(e);return Number.isNaN(i.getTime())?r:qe(i,void 0,{locale:n})}if(Number.isNaN(nt(t instanceof Date?t:r).getTime()))return r;let i=t instanceof Date?t:new Date(r);return We(i,{style:`compact`,locale:n})}function NF(e,t,n){return e.prefix?e.prefix:t?rj(t,n):``}function PF(e,t,n,r){let i=OF(e,n),a=i===void 0?void 0:RA(i,`grid currency cell`,`objectui#10071`),o=a===void 0?{}:{minimumFractionDigits:a,maximumFractionDigits:a};if(e.prefix||!n)return`${NF(e,n,r)}${ut(t,{locale:r,...o})}`;try{return ut(t,{locale:r,currency:n,...o})}catch{return`${n} ${t.toFixed(a)}`}}function FF(e,t,n,r){if(t==null||t===``)return`—`;if(jF(e.type))return MF(e.type,t,n);if(e.type===`file`){let e=Array.isArray(t)?t:[t];if(e.length===0)return`—`;if(e.length>1)return`${e.length} files`;let n=e[0];return typeof n==`string`?n:n?.name||n?.original_name||`File`}if(e.type===`select`&&Array.isArray(e.options)){let n=e.options.find(e=>String(e.value)===String(t));return n?n.label:String(t)}if(yF(e.type)){let i=Number(t);if(Number.isFinite(i))return e.type===`currency`?PF(e,i,r,n):i.toLocaleString(n)}return Array.isArray(t)?t.join(`, `):String(t)}function IF(e,t){if(yF(e)){if(t===``||t==null)return null;let e=Number(t);return Number.isNaN(e)?t:e}return e===`datetime`?Ue(t):t}function LF(e,t){return Array.isArray(e)?e.reduce((e,n)=>{let r=Number(n?.[t]);return e+(Number.isFinite(r)?r:0)},0):0}function RF({value:e,onChange:t,field:n,readonly:r,disabled:i,className:a,error:o,onRowExpand:s,displayMode:c,onAdd:l,...u}){let d=n||{},f=d.columns||[],p=Array.isArray(e)?e:[],m=u.contextRecord,h=St(),{t:g}=Oj(),_=K.useId(),{currency:v}=vt(),y=DF(v),b=(0,K.useCallback)((e,t)=>{if(!e.readonlyWhen&&!e.requiredWhen)return{readonly:!1,required:!!e.required};let n=S({readonlyWhen:e.readonlyWhen,requiredWhen:e.requiredWhen},t||{},{required:!!e.required,readonly:!1},void 0,m?{parent:m}:void 0);return{readonly:n.readonly,required:n.required}},[m]),x=c===`list`&&!r,[C,w]=K.useState(()=>new Set),T=f.filter(e=>e.defaultHidden&&!e.required),E=f.filter(e=>!e.defaultHidden||e.required||C.has(e.name)),D=(0,K.useCallback)(e=>{w(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},[]),O=d.allow_add!==!1&&!r&&!i,k=d.allow_delete!==!1&&!r&&!i,A=d.allow_duplicate!==!1&&O,j=typeof s==`function`&&!r,M=d.show_line_numbers!==!1,N=d.min_rows??0,P=d.max_rows,F=d.total_field||d.amount_field||d.amountField,I=d.sort_field,L=d.reorderable!==!1&&!r&&!i,ee=(0,K.useCallback)(e=>{t?.(I?e.map((e,t)=>({...e,[I]:t})):e)},[t,I]),R=(0,K.useCallback)(()=>{let e={};for(let t of E)e[t.name]=null;return e},[E]),te=(0,K.useCallback)((e,t)=>{if(e>=p.length){if(P!=null&&p.length>=P)return;ee([...p,AF(E,{...R(),...t},v)]);return}ee(p.map((n,r)=>r===e?AF(E,{...n,...t},v):n))},[p,E,P,R,ee,v]),z=(0,K.useCallback)((e,t,n)=>te(e,{[t]:n}),[te]),B=(0,K.useCallback)((e,t,n)=>{te(e,EF(E,t,n))},[E,te]),ne=(0,K.useCallback)((e,t,n)=>z(e,t,n),[z]),re=(0,K.useCallback)((e,t,n)=>{z(e,t.name,IF(t.type,n))},[z]),V=(0,K.useCallback)(()=>{P!=null&&p.length>=P||ee([...p,R()])},[p,R,P,ee]),ie=(0,K.useRef)(null),ae=(0,K.useCallback)((e,t)=>{let n=ie.current?.querySelector(`[data-cell="${e}-${t}"]`);n&&(n.focus(),n instanceof HTMLInputElement&&n.select())},[]),H=(0,K.useCallback)((e,t,n)=>{e.key===`ArrowDown`||e.key===`Enter`?(e.preventDefault(),ae(t+1,n)):e.key===`ArrowUp`&&(e.preventDefault(),t>0&&ae(t-1,n))},[ae]),oe=(0,K.useCallback)(e=>{p.length<=N||ee(p.filter((t,n)=>n!==e))},[p,N,ee]),U=(0,K.useCallback)(e=>{if(P!=null&&p.length>=P)return;let t=p[e];if(!t)return;let{id:n,_id:r,recordId:i,...a}=t,o=[...p];o.splice(e+1,0,{...a}),ee(o)},[p,P,ee]),se=(0,K.useCallback)((e,t)=>{if(e===t||e<0||t<0||e>=p.length||t>=p.length)return;let n=[...p],[r]=n.splice(e,1);n.splice(t,0,r),ee(n)},[p,ee]),W=(0,K.useRef)(null),G=j||k||A,ce=(+!!j+ +!!A+ +!!k)*34+12,le=!!F,ue=le?LF(p,F):0,de=le?Math.max(0,E.findIndex(e=>e.name===F)):-1,fe=T.length>0?(0,q.jsxs)(dy,{children:[(0,q.jsx)(fy,{asChild:!0,children:(0,q.jsxs)(X,{type:`button`,variant:`ghost`,size:`sm`,className:`h-7 gap-1.5 text-xs text-muted-foreground`,"data-testid":`line-items-columns`,children:[(0,q.jsx)(fa,{className:`h-3.5 w-3.5`}),`Columns`,C.size>0&&(0,q.jsxs)(`span`,{className:`rounded-full bg-primary/10 px-1.5 text-[10px] font-medium text-primary`,children:[`+`,C.size]})]})}),(0,q.jsxs)(py,{align:`end`,className:`w-56 p-2`,children:[(0,q.jsx)(`div`,{className:`px-1 pb-1.5 text-xs font-medium text-muted-foreground`,children:`Optional columns`}),(0,q.jsx)(`div`,{className:`max-h-64 space-y-0.5 overflow-y-auto`,children:T.map(e=>{let t=`col-toggle-${e.name}`;return(0,q.jsxs)(X_,{htmlFor:t,className:`flex cursor-pointer items-center gap-2 rounded-md px-1.5 py-1.5 text-sm font-normal hover:bg-muted`,children:[(0,q.jsx)(ip,{id:t,checked:C.has(e.name),onCheckedChange:()=>D(e.name)}),(0,q.jsx)(`span`,{className:`truncate`,children:e.label||e.name})]},e.name)})})]})]}):null;if(r)return(0,q.jsxs)(`div`,{...Vj(u,`instead-of-the-inputs`),className:J(`space-y-2`,a),children:[fe&&(0,q.jsx)(`div`,{className:`flex justify-end`,children:fe}),(0,q.jsx)(`div`,{className:`border border-border rounded-lg overflow-x-auto`,"data-testid":`line-items-readonly`,children:(0,q.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,q.jsx)(`thead`,{className:`bg-muted border-b border-border`,children:(0,q.jsxs)(`tr`,{children:[M&&(0,q.jsx)(`th`,{className:`w-10 px-2 py-2 text-right text-xs font-medium text-muted-foreground`,children:`#`}),E.map(e=>(0,q.jsx)(`th`,{style:{minWidth:xF(e)},className:J(`px-3 py-2 text-xs font-medium text-muted-foreground whitespace-nowrap`,yF(e.type)?`text-right`:`text-left`),children:e.label||e.name},e.name))]})}),(0,q.jsx)(`tbody`,{className:`divide-y divide-border`,children:p.length===0?(0,q.jsx)(`tr`,{children:(0,q.jsx)(`td`,{colSpan:Math.max(E.length+ +!!M,1),className:`px-3 py-6 text-center text-muted-foreground`,children:`No items`})}):p.map((e,t)=>(0,q.jsxs)(`tr`,{children:[M&&(0,q.jsx)(`td`,{className:`px-2 py-2 text-right text-muted-foreground tabular-nums`,children:t+1}),E.map(t=>(0,q.jsx)(`td`,{className:J(`px-3 py-2 text-foreground`,yF(t.type)&&`text-right tabular-nums`),children:t.type===`lookup`&&e[t.name]!=null&&e[t.name]!==``?(0,q.jsx)(gN,{value:e[t.name],onChange:()=>{},readonly:!0,field:{reference:t.reference,displayField:t.displayField,idField:t.idField}}):t.type===`file`||jF(t.type)?FF(t,e[t.name],h,y):e[t.name]!=null&&e[t.name]!==``?String(e[t.name]):`—`},t.name))]},t))}),le&&(0,q.jsx)(`tfoot`,{className:`border-t border-border bg-muted/40`,children:(0,q.jsxs)(`tr`,{children:[(0,q.jsx)(`td`,{colSpan:Math.max(+!!M+de,1),className:`px-3 py-2 text-right text-xs font-medium text-muted-foreground`,children:`Total`}),(0,q.jsx)(`td`,{className:`px-3 py-2 text-right font-semibold text-foreground tabular-nums`,children:ue.toLocaleString(h)}),E.length-de-1>0&&(0,q.jsx)(`td`,{colSpan:E.length-de-1})]})})]})})]});let pe=!x&&O&&(P==null||p.length<P),me=pe?[...p,R()]:p,he=!!o&&p.length===0,ge=(e,t,n,r,a=!1)=>{let o=r?.[e.name],s=i||b(e,r).readonly;if(x)return e.type===`lookup`&&o!=null&&o!==``?(0,q.jsx)(gN,{value:o,onChange:()=>{},readonly:!0,field:{reference:e.reference,displayField:e.displayField,idField:e.idField}}):(0,q.jsx)(`span`,{className:J(`px-2 text-sm text-foreground`,yF(e.type)&&`tabular-nums`,(o==null||o===``)&&`text-muted-foreground`),children:FF(e,o,h,y)});if(e.computed)return(0,q.jsx)(`span`,{className:J(`block px-2 text-sm tabular-nums`,yF(e.type)?`text-right`:`text-left`,o==null||o===``?`text-muted-foreground`:`text-foreground`),title:`Computed`,"data-computed":e.name,children:FF(e,o,h,y)});if(e.type===`lookup`)return(0,q.jsx)(gN,{value:o,onChange:t=>ne(n,e.name,t),onSelectRecord:t=>B(n,e,t),compact:!0,field:{reference:e.reference,displayField:e.displayField,idField:e.idField,multiple:e.multiple,options:e.options,placeholder:`—`},disabled:s,error:a?`${e.label||e.name} is required`:void 0});if(e.type===`file`)return(0,q.jsx)(nF,{value:o,onChange:t=>ne(n,e.name,t),multiple:e.multiple,accept:Array.isArray(e.accept)&&e.accept.length>0?e.accept.join(`,`):void 0,disabled:s,"aria-label":e.label||e.name,"data-cell":`${n}-${t}`,error:a?`${e.label||e.name} is required`:void 0});if(e.type===`select`)return(0,q.jsxs)(yy,{value:o==null?``:String(o),onValueChange:t=>re(n,e,t),disabled:s,children:[(0,q.jsx)(xy,{className:`h-8 rounded-none border-0 bg-transparent px-2 shadow-none focus:ring-1 focus:ring-ring/60`,"aria-label":e.label||e.name,"aria-invalid":a||void 0,children:(0,q.jsx)(by,{placeholder:`—`})}),(0,q.jsx)(wy,{children:(e.options||[]).map(e=>(0,q.jsx)(Ey,{value:e.value,children:e.label},e.value))})]});let c=e.type===`currency`?NF(e,y,h):``,l=(e.type===`date`||e.type===`datetime`)&&et(o),u=l?`${_}-impossible-${n}-${t}`:void 0;return(0,q.jsxs)(`div`,{className:`relative`,children:[c&&(0,q.jsx)(`span`,{className:`pointer-events-none absolute left-2 top-1/2 -translate-y-1/2 text-xs text-muted-foreground`,children:c}),(0,q.jsx)(Fv,{"data-cell":`${n}-${t}`,"aria-invalid":a||l||void 0,"aria-describedby":u,onKeyDown:e=>H(e,n,t),className:J(`h-8 rounded-none border-0 bg-transparent px-2 shadow-none focus-visible:ring-1 focus-visible:ring-ring/60`,c&&`pl-6`,yF(e.type)&&`text-right tabular-nums`),type:e.type===`date`?`date`:e.type===`datetime`?`datetime-local`:e.type===`time`?`time`:yF(e.type)?`number`:`text`,step:yF(e.type)?e.step??`any`:void 0,"aria-label":e.label||e.name,value:e.type===`date`?l?``:Ce(o):e.type===`datetime`?Ee(o):o==null?``:String(o),onChange:t=>re(n,e,t.target.value),disabled:s}),l&&(0,q.jsx)(`p`,{id:u,className:`px-2 pb-1 text-xs text-destructive`,"data-testid":`line-items-impossible-day-${n}-${e.name}`,children:g(e.type===`date`?`fields.date.impossibleDay`:`fields.dateTime.impossibleDay`,{value:String(o)})})]})},{"aria-invalid":_e,name:ve,...ye}=bj(u),be=ye[`aria-labelledby`]!=null;return(0,q.jsxs)(`div`,{...ye,role:be?`group`:void 0,className:J(`space-y-2`,a),"data-testid":`line-items`,children:[fe&&(0,q.jsx)(`div`,{className:`flex justify-end`,children:fe}),(0,q.jsx)(`div`,{className:`border border-border rounded-lg overflow-x-auto`,children:(0,q.jsxs)(`table`,{ref:ie,className:`w-full text-sm`,children:[(0,q.jsx)(`thead`,{className:`bg-muted/60 border-b border-border`,children:(0,q.jsxs)(`tr`,{children:[M&&(0,q.jsx)(`th`,{className:J(`px-2 py-2 text-right text-xs font-medium text-muted-foreground`,L?`w-14`:`w-10`),children:`#`}),E.map(e=>(0,q.jsxs)(`th`,{className:J(`px-2 py-2 text-xs font-medium text-muted-foreground whitespace-nowrap`,yF(e.type)?`text-right`:`text-left`),style:SF(e),children:[e.label||e.name,e.required&&!e.computed&&(0,q.jsx)(`span`,{className:`text-destructive`,children:` *`})]},e.name)),G&&(0,q.jsx)(`th`,{style:{width:ce}})]})}),(0,q.jsx)(`tbody`,{className:`divide-y divide-border`,children:x&&p.length===0?(0,q.jsx)(`tr`,{children:(0,q.jsxs)(`td`,{colSpan:E.length+ +!!G+ +!!M,className:`px-3 py-6 text-center text-muted-foreground`,children:[`No items yet — click “`,d.add_label||`Add`,`” to begin.`]})}):me.map((e,t)=>{let n=pe&&t===p.length,r=L&&!n&&!x;return(0,q.jsxs)(`tr`,{className:J(`group`,!n&&`hover:bg-muted/30`),...L&&!n?{onDragOver:e=>{W.current!=null&&e.preventDefault()},onDrop:e=>{e.preventDefault(),W.current!=null&&(se(W.current,t),W.current=null)}}:{},children:[M&&(0,q.jsx)(`td`,{className:`px-1 py-1 text-right align-middle text-xs text-muted-foreground tabular-nums`,children:(0,q.jsxs)(`span`,{className:`inline-flex items-center justify-end gap-0.5`,children:[r&&(0,q.jsx)(`span`,{draggable:!0,onDragStart:()=>{W.current=t},onDragEnd:()=>{W.current=null},className:`cursor-grab text-muted-foreground/40 opacity-0 transition-opacity group-hover:opacity-100`,title:`Drag to reorder`,"aria-label":`Drag to reorder`,"data-testid":`line-items-drag-${t}`,children:(0,q.jsx)(Hi,{className:`h-3.5 w-3.5`})}),(0,q.jsx)(`span`,{className:J(n&&`opacity-30`),children:t+1})]})}),E.map((r,i)=>{let a=b(r,e).required,o=(!n||he)&&!x&&a&&!r.computed&&(e[r.name]==null||e[r.name]===``);return(0,q.jsx)(`td`,{title:o?`${r.label||r.name} is required`:void 0,"data-testid":o?`line-items-invalid-${t}-${r.name}`:void 0,className:J(`border-r border-border/40 px-1 py-0.5 align-middle last:border-r-0`,x&&`px-2 py-1.5`,o&&`bg-destructive/5 ring-1 ring-inset ring-destructive/50`),children:ge(r,i,t,e,o)},r.name)}),G&&(0,q.jsx)(`td`,{className:`px-1 py-0.5 align-middle whitespace-nowrap`,children:(0,q.jsxs)(`div`,{className:`flex items-center justify-center gap-0.5`,children:[!n&&j&&(0,q.jsx)(X,{type:`button`,variant:`ghost`,size:`icon`,className:`h-8 w-8 text-muted-foreground hover:text-foreground`,"aria-label":`Open row`,title:`Open full form`,"data-testid":`line-items-expand-${t}`,onClick:()=>s(t),children:(0,q.jsx)(Yi,{className:`h-3.5 w-3.5`})}),!n&&A&&(0,q.jsx)(X,{type:`button`,variant:`ghost`,size:`icon`,className:`h-8 w-8 text-muted-foreground hover:text-foreground`,"aria-label":`Duplicate row`,title:`Duplicate line`,"data-testid":`line-items-duplicate-${t}`,onClick:()=>U(t),disabled:i||P!=null&&p.length>=P,children:(0,q.jsx)(Ei,{className:`h-3.5 w-3.5`})}),!n&&k&&(0,q.jsx)(X,{type:`button`,variant:`ghost`,size:`icon`,className:`h-8 w-8 text-muted-foreground hover:text-destructive`,"aria-label":`Remove row`,"data-testid":`line-items-remove-${t}`,onClick:()=>oe(t),disabled:i||p.length<=N,children:(0,q.jsx)(_a,{className:`h-4 w-4`})})]})})]},t)})}),le&&(0,q.jsx)(`tfoot`,{className:`border-t border-border bg-muted/40`,children:(0,q.jsxs)(`tr`,{children:[(0,q.jsx)(`td`,{colSpan:Math.max(+!!M+de,1),className:`px-3 py-2 text-right text-xs font-medium text-muted-foreground`,children:`Total`}),(0,q.jsx)(`td`,{className:`px-3 py-2 text-right font-semibold text-foreground tabular-nums`,"data-testid":`line-items-total`,children:ue.toLocaleString(h)}),E.length-de-1+ +!!G>0&&(0,q.jsx)(`td`,{colSpan:E.length-de-1+ +!!G})]})})]})}),O&&(0,q.jsxs)(X,{type:`button`,variant:`outline`,size:`sm`,onClick:x&&l?l:V,disabled:P!=null&&p.length>=P,"data-testid":`line-items-add`,children:[(0,q.jsx)(ea,{className:`mr-1.5 h-4 w-4`}),d.add_label||`Add line`]})]})}var zF=RF,BF=t({AvatarField:()=>VF});function VF({value:e,onChange:t,field:n,readonly:r,onUploadingChange:i,error:a,...o}){let[s,c]=K.useState(!1),l=K.useRef(null),{upload:u}=Pa(),{t:d}=Ct(),[f,p]=K.useState(!1),[m,h]=K.useState(null),[g,_]=K.useState({});YP(f,i);let v=JP(),y=n,b=XA(GA(e,``),g)[0]?.url,x=async e=>{let n=e.target.files?.[0];if(l.current&&(l.current.value=``),!n)return;if(!n.type.startsWith(`image/`)){console.error(`Please select an image file`);return}if(n.size>5242880){console.error(`File size must be less than 5MB`);return}h(null);let r=v();p(!0);try{let e=await u(n),r=JA(e,n.name),i=YA(e,n.name);i.id&&_(e=>({...e,[i.id]:i})),t(r)}catch(e){h(QP(d,n.name,e))}finally{r(),p(!1)}},S=()=>{t(``)},C=()=>(y?.defaultName||y?.label||`User`).split(` `).map(e=>e[0]).join(``).toUpperCase().slice(0,2);return r?(0,q.jsxs)(cs,{className:`w-16 h-16`,children:[b&&(0,q.jsx)(ls,{src:b,alt:y?.label}),(0,q.jsx)(us,{children:C()})]}):(0,q.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,q.jsxs)(`div`,{className:`relative`,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:[(0,q.jsxs)(cs,{className:`w-16 h-16`,children:[b&&(0,q.jsx)(ls,{src:b,alt:y?.label}),(0,q.jsx)(us,{children:C()})]}),!r&&s&&e&&(0,q.jsx)(`button`,{type:`button`,onClick:S,className:`absolute -top-1 -right-1 bg-destructive text-destructive-foreground rounded-full p-1 hover:bg-destructive/90`,children:(0,q.jsx)(wa,{className:`w-3 h-3`})})]}),(0,q.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,q.jsx)(`input`,{ref:l,type:`file`,accept:`image/*`,onChange:x,className:`hidden`}),(0,q.jsx)(X,{...bj(o),type:`button`,variant:`outline`,size:`sm`,onClick:()=>l.current?.click(),disabled:r||o.disabled||f,"aria-invalid":!!a,children:f?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(qi,{className:`w-4 h-4 mr-2 animate-spin`}),d(`fields.image.uploading`,{defaultValue:`Uploading…`})]}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(Sa,{className:`w-4 h-4 mr-2`}),e?`Change`:`Upload`,` Avatar`]})}),(0,q.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`PNG, JPG up to 5MB`}),m&&(0,q.jsx)(`p`,{className:`text-xs text-destructive`,children:m})]})]})}var HF=t({SignatureField:()=>UF});function UF({value:e,onChange:t,readonly:n,...r}){let i=(0,K.useRef)(null),[a,o]=K.useState(!1),[s,c]=K.useState(!e);(0,K.useEffect)(()=>{if(e&&i.current){let t=i.current.getContext(`2d`);if(t){let n=new Image;n.onload=()=>{t.drawImage(n,0,0),c(!1)},n.src=e}}},[e]);let l=e=>{if(n)return;o(!0),c(!1);let t=i.current;if(!t)return;let r=t.getContext(`2d`);if(!r)return;let a=t.getBoundingClientRect(),s=`touches`in e?e.touches[0].clientX-a.left:e.clientX-a.left,l=`touches`in e?e.touches[0].clientY-a.top:e.clientY-a.top;r.beginPath(),r.moveTo(s,l)},u=e=>{if(!a||n)return;let t=i.current;if(!t)return;let r=t.getContext(`2d`);if(!r)return;let o=t.getBoundingClientRect(),s=`touches`in e?e.touches[0].clientX-o.left:e.clientX-o.left,c=`touches`in e?e.touches[0].clientY-o.top:e.clientY-o.top;r.lineTo(s,c),r.strokeStyle=`#000`,r.lineWidth=2,r.lineCap=`round`,r.lineJoin=`round`,r.stroke()},d=()=>{if(!a)return;o(!1);let e=i.current;e&&t(e.toDataURL(`image/png`))},f=()=>{let e=i.current;if(!e)return;let n=e.getContext(`2d`);n&&(n.clearRect(0,0,e.width,e.height),c(!0),t(``))},p=Vj(r,`instead-of-the-inputs`);return n&&e?(0,q.jsx)(`div`,{...p,className:`border rounded p-2 bg-white`,children:(0,q.jsx)(`img`,{src:e,alt:`Signature`,loading:`lazy`,className:`max-w-full h-auto`})}):n&&!e?(0,q.jsx)(`span`,{...p,className:`text-sm text-muted-foreground`,children:`No signature`}):(0,q.jsxs)(`div`,{...p,className:`space-y-2`,children:[(0,q.jsx)(`div`,{className:`border rounded bg-white`,children:(0,q.jsx)(`canvas`,{ref:i,width:400,height:200,className:`w-full touch-none cursor-crosshair`,onMouseDown:l,onMouseMove:u,onMouseUp:d,onMouseLeave:d,onTouchStart:l,onTouchMove:u,onTouchEnd:d})}),(0,q.jsxs)(`div`,{className:`flex justify-between items-center`,children:[(0,q.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:s?`Sign above`:`Signature captured`}),(0,q.jsxs)(X,{type:`button`,variant:`outline`,size:`sm`,onClick:f,disabled:n||s,children:[(0,q.jsx)(Ni,{className:`w-4 h-4 mr-2`}),`Clear`]})]})]})}d();var WF=new Map;function GF(e,t){if(!e||typeof e!=`object`)return;if(t){let n=e[t];if(typeof n==`string`&&n.trim())return n.trim();if(typeof n==`number`)return String(n)}for(let t of[`name`,`full_name`,`display_name`,`label`,`title`,`subject`,`username`]){let n=e[t];if(typeof n==`string`&&n.trim())return n.trim();if(typeof n==`number`)return String(n)}let n=e.first_name,r=e.last_name,i=[e.salutation,n,r].filter(e=>typeof e==`string`&&e.trim()).map(e=>e.trim()).join(` `);if(i)return i;let a=e.email;if(typeof a==`string`&&a.trim())return a.trim();let o=new Set([`id`,`_id`,`organization_id`,`created_by`,`updated_by`,`created_at`,`updated_at`,`tenant_id`]),s=[`_name`,`_title`,`_number`,`_code`,`_label`];for(let[t,n]of Object.entries(e))if(!o.has(t)&&!t.endsWith(`_id`)&&s.some(e=>t.endsWith(e))){if(typeof n==`string`&&n.trim())return n.trim();if(typeof n==`number`)return String(n)}}var KF=new Map;async function qF(e,t){let n=()=>{let e=KF.get(t);return e?.state===`ok`?e.schema:void 0},r=KF.get(t);if(r?.state===`pending`)return await r.promise,n();if(r)return n();let i=e?.getObjectSchema;if(typeof i!=`function`)return;let a=Promise.resolve().then(()=>i.call(e,t)).then(e=>{KF.set(t,{state:`ok`,schema:e})}).catch(()=>{KF.set(t,{state:`err`})});return KF.set(t,{state:`pending`,promise:a}),await a,n()}function JF(e){let t=K.useContext(x)?.dataSource,[,n]=K.useState(0),r=!!e&&!!t&&typeof t.getObjectSchema==`function`;if(K.useEffect(()=>{if(!r)return;let i=KF.get(e);if(i&&i.state!==`pending`)return;let a=!0;return qF(t,e).then(()=>{a&&n(e=>e+1)}),()=>{a=!1}},[r,e,t]),!r)return;let i=KF.get(e);return i?.state===`ok`?i.schema:void 0}function YF(e,t,n,r,i){if(!e||typeof e!=`object`)return;let a=h(e,r,i);if(t){let e=B(t,a,{titleField:n}),r=a.id??a._id;if(!(e===`Untitled`||r!=null&&e===`Record #${r}`)&&e)return e}return GF(a,n)}function XF(e,t,n,r){let i=K.useContext(x)?.dataSource,[,a]=K.useState(0),o=!!e&&!!i&&typeof i.find==`function`&&(typeof t==`string`||typeof t==`number`)&&t!==``,s=o?`${e}:${String(t)}:${n??``}`:``;if(K.useEffect(()=>{if(!o)return;let n=WF.get(s);if(n&&n.state!==`pending`&&n.promise==null||n?.state===`pending`)return;let r=(async()=>{try{let n;if(typeof i.findOne==`function`)n=await i.findOne(e,t);else{let r=await i.find(e,{$filter:{id:t},$top:1});n=ze(r)[0]}let r=await qF(i,e);WF.set(s,{state:`ok`,record:n,schema:r})}catch{WF.set(s,{state:`err`})}a(e=>e+1)})();WF.set(s,{state:`pending`,promise:r})},[s,o,e,t,i]),!o)return;let c=WF.get(s);return c?.state===`ok`?YF(c.record,c.schema,n,r,e):void 0}function ZF(){let{t:e}=Ct();return(t,n)=>{let r=e(t);return!r||r===t?n:r}}function QF(){let{t:e}=Ct();return e}function $F(e){return R(e)||typeof e==`string`&&e.trim()===``}function eI(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&!(e instanceof Date)}function tI(e,t,n){let r=Number.isFinite(e)&&e===Math.trunc(e)?0:t?tj(t):2;if(!t)return rI(e,r,n);try{return ut(e,{locale:n,currency:t,minimumFractionDigits:r,maximumFractionDigits:r})}catch{return`${t} ${e.toFixed(r)}`}}function nI(e,t,n){if(!t)try{return ut(e,{locale:n,notation:`compact`,maximumFractionDigits:1}).replace(/\.0(?=[KMBT])/,``)}catch{return String(e)}try{return ut(e,{locale:n,currency:t,notation:`compact`,maximumFractionDigits:1}).replace(/\.0(?=[KMBT])/,``)}catch{return`${t} ${e}`}}function rI(e,t=2,n){try{return ut(e,{locale:n,minimumFractionDigits:t,maximumFractionDigits:t})}catch{return e.toFixed(t)}}function iI(e,t,n){try{return ut(e,{locale:n,style:`percentPoints`,minimumFractionDigits:t,maximumFractionDigits:t})}catch{return`${e.toFixed(t)}%`}}function aI(e,t=0,n){return iI(Se(e),LA(t),n)}function oI({text:e,className:t}){return(0,q.jsx)(`span`,{className:J(`block max-w-full truncate`,t),title:e,children:e})}function sI({value:e}){let t=QA(e);return R(t)?(0,q.jsx)($,{}):(0,q.jsx)(oI,{text:String(t)})}function cI({value:e,field:t}){let n=St(),r=QA(e);if($F(r))return(0,q.jsx)($,{});let i=t,a=typeof i.scale==`number`?RA(i.scale,`number field`,`objectui#10071`):void 0,o=Number(r),s=isNaN(o)?String(r):ut(o,{locale:n,scale:a,minimumFractionDigits:a??0,maximumFractionDigits:a??20});return(0,q.jsx)(`span`,{className:`tabular-nums`,children:s})}function lI({value:e,field:t}){let{currency:n}=vt(),r=St(),i=QA(e);if($F(i))return(0,q.jsx)($,{});let a=yt(t,n),o=Number(i),s=isNaN(o)?String(i):tI(o,a,r);return(0,q.jsx)(`span`,{className:`tabular-nums font-medium whitespace-nowrap`,children:s})}function uI({value:e,field:t}){let n=St(),r=QA(e);if($F(r))return(0,q.jsx)($,{});let i=t.scale??0,a=Number(r);if(isNaN(a))return(0,q.jsx)(`span`,{className:`tabular-nums whitespace-nowrap`,children:String(r)});let o=Se(a),s=aI(a,i,n),c=Math.max(0,Math.min(100,o));return(0,q.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,q.jsx)(`div`,{className:`h-1.5 w-16 min-w-0 shrink rounded-full bg-muted ring-1 ring-inset ring-border/60 overflow-hidden`,role:`progressbar`,"aria-valuenow":c,"aria-valuemin":0,"aria-valuemax":100,children:(0,q.jsx)(`div`,{className:`h-full rounded-full bg-primary transition-all`,style:{width:`${c}%`}})}),(0,q.jsx)(`span`,{className:`shrink-0 tabular-nums whitespace-nowrap`,children:s})]})}var dI=new Set([`active`,`is_active`,`enabled`,`is_enabled`,`verified`,`is_verified`]);function fI({value:e,field:t}){if(typeof e!=`boolean`)return(0,q.jsx)(`span`,{className:`flex items-center justify-center`,children:(0,q.jsx)($,{})});let n=t?.name?.toLowerCase()||``;return n===`completed`||n===`is_completed`||n===`done`||n===`is_done`?(0,q.jsx)(`div`,{className:`flex items-center justify-center`,children:e?(0,q.jsx)(`div`,{className:`size-5 rounded-full bg-green-500 flex items-center justify-center`,role:`img`,"aria-label":`Completed`,"data-testid":`completion-indicator`,children:(0,q.jsx)(fi,{className:`size-3 text-white`})}):(0,q.jsx)(`div`,{className:`size-5 rounded-full border-2 border-muted-foreground/30`,role:`img`,"aria-label":`Not completed`,"data-testid":`completion-indicator`})}):dI.has(n)&&e===!1?(0,q.jsxs)(fs,{variant:`destructive`,className:`text-xs`,"data-testid":`boolean-warning-badge`,children:[t?.label||P(n),` — Off`]}):(0,q.jsx)(`div`,{className:`flex items-center justify-start`,children:(0,q.jsx)(ip,{checked:e,disabled:!0,className:`pointer-events-none`})})}var pI=/(^|_)(due|deadline|expires?|expiry|expiration|expected_close|target_close|sla|return_by|renewal|next_action)(_|$)/;function mI(e){if(e?.dueLike===!0)return!0;let t=e,n=String(t?.name||t?.accessorKey||t?.key||``).toLowerCase();return pI.test(n)}function hI(e,t){if(!t)return!1;let n=new Date;return n.setHours(0,0,0,0),e<n}function gI({value:e,field:t}){let n=St(),r=QF();if(!e)return(0,q.jsx)($,{});let i=QA(e);if($F(i))return(0,q.jsx)($,{});let a=i==null?null:nt(i);if(a===null||isNaN(a.getTime()))return(0,q.jsx)($,{});let o=new Date(i),s=t.format||`relative`,c=mI(t),l=qe(i,s,{dueLike:c,locale:n,t:r}),u=hI(a,c);return(0,q.jsx)(`span`,{className:`tabular-nums${u?` text-red-600`:``}`,title:o.toISOString(),children:l})}function _I({value:e,field:t}){let n=St(),r=QF();if(!e)return(0,q.jsx)($,{});let i=QA(e),a=i==null?null:nt(i);if(a===null||isNaN(a.getTime()))return(0,q.jsx)($,{});let o=new Date(i),s=t?.format||`compact`,c=s===`short`?`compact`:s,l=mI(t),u=`tabular-nums text-sm whitespace-nowrap${hI(o,l)?` text-red-600`:``}`;if(c===`relative`)return(0,q.jsx)(`span`,{className:u,children:ke(o,{dueLike:l,locale:n,t:r})});if(c===`compact`){let e=Ne(o,{locale:n});if(e)return(0,q.jsxs)(`span`,{className:u,children:[(0,q.jsx)(`span`,{children:e.date}),(0,q.jsx)(`span`,{className:`ml-2 text-muted-foreground`,children:e.time})]})}return(0,q.jsx)(`span`,{className:u,children:We(o,{style:c,locale:n,t:r})})}var vI={critical:`red`,urgent:`red`,high:`orange`,medium:`yellow`,normal:`blue`,low:`gray`,none:`gray`,paid:`green`,completed:`green`,done:`green`,active:`green`,approved:`green`,resolved:`green`,pending:`yellow`,waiting:`yellow`,on_hold:`yellow`,shipped:`blue`,in_progress:`blue`,open:`blue`,processing:`blue`,draft:`gray`,new:`gray`,inactive:`gray`,closed:`gray`,cancelled:`red`,canceled:`red`,rejected:`red`,failed:`red`,overdue:`red`,delivered:`purple`,archived:`indigo`,contacted:`blue`,qualified:`purple`,converted:`green`,won:`green`,lost:`red`,紧急:`red`,严重:`red`,高:`orange`,中:`yellow`,普通:`blue`,低:`gray`,无:`gray`,新建:`gray`,草稿:`gray`,待处理:`yellow`,待审核:`yellow`,待联系:`yellow`,挂起:`yellow`,进行中:`blue`,处理中:`blue`,已联系:`blue`,跟进中:`blue`,已发货:`blue`,打开:`blue`,已确认:`green`,已审核:`green`,已通过:`green`,已完成:`green`,已支付:`green`,已签收:`green`,已转化:`green`,成单:`green`,赢得:`green`,已签约:`green`,已交付:`purple`,已归档:`indigo`,已关闭:`gray`,已取消:`red`,已拒绝:`red`,失败:`red`,逾期:`red`,流失:`red`,丢失:`red`},yI={gray:`bg-gray-50 text-gray-700 border-gray-200 dark:bg-gray-800/50 dark:text-gray-200 dark:border-gray-700/60`,red:`bg-red-50 text-red-700 border-red-200 dark:bg-red-950/40 dark:text-red-300 dark:border-red-900/60`,orange:`bg-orange-50 text-orange-700 border-orange-200 dark:bg-orange-950/40 dark:text-orange-300 dark:border-orange-900/60`,yellow:`bg-yellow-50 text-yellow-800 border-yellow-200 dark:bg-yellow-950/40 dark:text-yellow-300 dark:border-yellow-900/60`,green:`bg-green-50 text-green-700 border-green-200 dark:bg-green-950/40 dark:text-green-300 dark:border-green-900/60`,blue:`bg-blue-50 text-blue-700 border-blue-200 dark:bg-blue-950/40 dark:text-blue-300 dark:border-blue-900/60`,indigo:`bg-indigo-50 text-indigo-700 border-indigo-200 dark:bg-indigo-950/40 dark:text-indigo-300 dark:border-indigo-900/60`,purple:`bg-purple-50 text-purple-700 border-purple-200 dark:bg-purple-950/40 dark:text-purple-300 dark:border-purple-900/60`,pink:`bg-pink-50 text-pink-700 border-pink-200 dark:bg-pink-950/40 dark:text-pink-300 dark:border-pink-900/60`},bI={gray:`bg-gray-400 dark:bg-gray-500`,red:`bg-red-500`,orange:`bg-orange-500`,yellow:`bg-yellow-500`,green:`bg-green-500`,blue:`bg-blue-500`,indigo:`bg-indigo-500`,purple:`bg-purple-500`,pink:`bg-pink-500`},xI=[`blue`,`green`,`purple`,`orange`,`pink`,`indigo`,`yellow`,`red`];function SI(e){let t=5381;for(let n=0;n<e.length;n++)t=(t<<5)+t^e.charCodeAt(n);return xI[Math.abs(t)%xI.length]}function CI(e){let t=/^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.exec(e.trim());if(!t)return;let n=t[1];n.length===3&&(n=n.split(``).map(e=>e+e).join(``));let r=parseInt(n.slice(0,2),16)/255,i=parseInt(n.slice(2,4),16)/255,a=parseInt(n.slice(4,6),16)/255,o=Math.max(r,i,a),s=Math.min(r,i,a),c=o-s,l=(o+s)/2;if((c===0?0:c/(1-Math.abs(2*l-1)))<.22)return`gray`;let u;return u=o===r?((i-a)/c%6+6)%6:o===i?(a-r)/c+2:(r-i)/c+4,u*=60,u>=345||u<15?`red`:u<30?`orange`:u<60?`yellow`:u<170?`green`:u<238?`blue`:u<250?`indigo`:u<295?`purple`:`pink`}function wI(e){if(e){if(yI[e])return e;if(e.charAt(0)===`#`)return CI(e)}}var TI=4.5,EI=1.9,DI={r:255,g:255,b:255},OI={r:10,g:10,b:10},kI=(e,t,n)=>Math.min(n,Math.max(t,e));function AI(e){let t=/^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.exec(e.trim());if(!t)return;let n=t[1];return n.length===3&&(n=n.split(``).map(e=>e+e).join(``)),{r:parseInt(n.slice(0,2),16),g:parseInt(n.slice(2,4),16),b:parseInt(n.slice(4,6),16)}}function jI({r:e,g:t,b:n}){let r=e/255,i=t/255,a=n/255,o=Math.max(r,i,a),s=Math.min(r,i,a),c=o-s,l=(o+s)/2,u=c===0?0:c/(1-Math.abs(2*l-1)),d=0;return c!==0&&(d=o===r?((i-a)/c%6+6)%6:o===i?(a-r)/c+2:(r-i)/c+4,d*=60),{h:d,s:u,l}}function MI(e,t,n){let r=(e%360+360)%360,i=(1-Math.abs(2*n-1))*t,a=i*(1-Math.abs(r/60%2-1)),o=n-i/2,s;return s=r<60?[i,a,0]:r<120?[a,i,0]:r<180?[0,i,a]:r<240?[0,a,i]:r<300?[a,0,i]:[i,0,a],{r:Math.round((s[0]+o)*255),g:Math.round((s[1]+o)*255),b:Math.round((s[2]+o)*255)}}var NI=({r:e,g:t,b:n})=>`#`+[e,t,n].map(e=>kI(Math.round(e),0,255).toString(16).padStart(2,`0`)).join(``);function PI({r:e,g:t,b:n}){let r=e=>{let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};return .2126*r(e)+.7152*r(t)+.0722*r(n)}function FI(e,t){let n=PI(e),r=PI(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function II(e,t,n,r,i){let a,o=1/0;for(let s=0;s<=100;s++){let c=s/100,l=MI(e,t,c);if(FI(l,r)<i)continue;let u=Math.abs(c-n);u<o&&(o=u,a=l)}if(a)return a;let s={r:0,g:0,b:0},c={r:255,g:255,b:255};return FI(s,r)>=FI(c,r)?s:c}function LI(e){let t=AI(e);if(!t)return;let{h:n,s:r,l:i}=jI(t),a=kI(r,.18,.92),o=.95-.32*(1-i),s=MI(n,a*(.55+.25*(1-i)),o),c=MI(n,a*.62,kI(o-.14,0,1)),l=II(n,a,i,s,TI),u=.1+.3*i,d=MI(n,a*.6,u),f=MI(n,a*.55,kI(u+.12,0,1)),p=II(n,a,i,d,TI);return{bg:NI(s),fg:NI(l),border:NI(c),bgDark:NI(d),fgDark:NI(p),borderDark:NI(f),dot:NI(II(n,a,i,DI,EI)),dotDark:NI(II(n,a,i,OI,EI))}}var RI=`bg-[color:var(--os-badge-bg)] text-[color:var(--os-badge-fg)] border-[color:var(--os-badge-border)] dark:bg-[color:var(--os-badge-bg-dark)] dark:text-[color:var(--os-badge-fg-dark)] dark:border-[color:var(--os-badge-border-dark)]`,zI=`bg-[color:var(--os-dot-bg)] dark:bg-[color:var(--os-dot-bg-dark)]`;function BI(e){if(!e||e.charAt(0)!==`#`)return;let t=LI(e);if(t)return{className:RI,style:{"--os-badge-bg":t.bg,"--os-badge-fg":t.fg,"--os-badge-border":t.border,"--os-badge-bg-dark":t.bgDark,"--os-badge-fg-dark":t.fgDark,"--os-badge-border-dark":t.borderDark}}}function VI(e){if(!e||e.charAt(0)!==`#`)return;let t=LI(e);if(t)return{className:zI,style:{"--os-dot-bg":t.dot,"--os-dot-bg-dark":t.dotDark}}}function HI(e,t){let n=wI(e);if(n&&yI[n])return yI[n];if(t==null||t===``)return`bg-muted text-muted-foreground border-border`;let r=String(t).toLowerCase().replace(/[\s-]/g,`_`),i=vI[r];return i&&yI[i]?yI[i]:yI[SI(r)]}function UI(e,t){let n=wI(e);if(n&&yI[n])return n;if(t==null||t===``)return;let r=String(t).toLowerCase().replace(/[\s-]/g,`_`);return vI[r]||SI(r)}var WI={gray:`#6b7280`,red:`#ef4444`,orange:`#f97316`,yellow:`#eab308`,green:`#22c55e`,blue:`#3b82f6`,indigo:`#6366f1`,purple:`#a855f7`,pink:`#ec4899`};function GI(e,t=`#3b82f6`){return e?WI[e]??t:t}function KI({value:e,field:t}){let n=t,r=n.options||[],i=n.appearance===`dot`?`dot`:`badge`;if(R(e))return(0,q.jsx)($,{});let a=e=>{let t=r.find(t=>t.value===e);if(t)return t;let n=String(e).toLowerCase();return r.find(e=>String(e.value).toLowerCase()===n)},o=(e,t)=>{let n=a(e),r=n?.label||(eI(e)?String(QA(e)):P(String(e)));if(i===`dot`){let i=VI(n?.color),a=wI(n?.color)||vI[String(e).toLowerCase().replace(/[\s-]/g,`_`)]||SI(String(e).toLowerCase().replace(/[\s-]/g,`_`)),o=i?i.className:bI[a]||bI.gray;return(0,q.jsxs)(`span`,{className:`inline-flex max-w-full items-center gap-1.5 text-sm`,title:r,children:[(0,q.jsx)(`span`,{className:J(`h-1.5 w-1.5 rounded-full shrink-0`,o),style:i?.style,"aria-hidden":`true`}),(0,q.jsx)(`span`,{className:`min-w-0 truncate`,children:r})]},t)}let o=BI(n?.color),s=o?o.className:HI(n?.color,e);return(0,q.jsx)(fs,{variant:`outline`,className:J(`max-w-full min-w-0`,s),style:o?.style,title:r,children:(0,q.jsx)(`span`,{className:`truncate`,children:r})},t)};return Array.isArray(e)?(0,q.jsx)(`div`,{className:J(`flex flex-wrap`,i===`dot`?`gap-x-3 gap-y-1`:`gap-1`),children:e.map((e,t)=>o(e,t))}):o(e)}function qI({value:e}){let t=ZF(),[n,r]=K.useState(!1);if(!e)return(0,q.jsx)($,{});let i=QA(e);if($F(i))return(0,q.jsx)($,{});let a=String(i);return eI(e)?(0,q.jsx)(oI,{text:a}):(0,q.jsxs)(`span`,{className:`inline-flex items-center gap-1 group/email`,children:[(0,q.jsx)(X,{variant:`link`,className:`p-0 h-auto font-normal text-blue-600 hover:text-blue-800`,asChild:!0,children:(0,q.jsx)(`a`,{href:`mailto:${a}`,onClick:e=>e.stopPropagation(),children:a})}),(0,q.jsx)(`button`,{type:`button`,className:`opacity-0 group-hover/email:opacity-100 transition-opacity p-0.5 rounded hover:bg-muted`,onClick:e=>{e.stopPropagation(),e.preventDefault(),navigator.clipboard.writeText(a).then(()=>{r(!0),setTimeout(()=>r(!1),2e3)}).catch(()=>{})},"aria-label":t(`detail.copyEmail`,`Copy email`),children:n?(0,q.jsx)(fi,{className:`h-3 w-3 text-green-600`}):(0,q.jsx)(Ei,{className:`h-3 w-3 text-muted-foreground`})})]})}function JI({value:e}){if(!e)return(0,q.jsx)($,{});let t=QA(e);if($F(t))return(0,q.jsx)($,{});let n=String(t);return eI(e)?(0,q.jsx)(oI,{text:n}):(0,q.jsx)(X,{variant:`link`,className:`p-0 h-auto font-normal text-blue-600 hover:text-blue-800`,asChild:!0,children:(0,q.jsx)(`a`,{href:n,target:`_blank`,rel:`noopener noreferrer`,onClick:e=>e.stopPropagation(),children:n})})}function YI({value:e}){let t=ZF(),[n,r]=K.useState(!1);if(!e)return(0,q.jsx)($,{});let i=QA(e);if($F(i))return(0,q.jsx)($,{});let a=String(i);return eI(e)?(0,q.jsx)(oI,{text:a}):(0,q.jsxs)(`span`,{className:`inline-flex items-center gap-1 group/phone`,children:[(0,q.jsxs)(`a`,{href:`tel:${a}`,className:`inline-flex items-center gap-1 text-blue-600 hover:text-blue-800`,onClick:e=>e.stopPropagation(),children:[(0,q.jsx)($i,{className:`h-3 w-3`}),a]}),(0,q.jsx)(`button`,{type:`button`,className:`opacity-0 group-hover/phone:opacity-100 transition-opacity p-0.5 rounded hover:bg-muted`,onClick:e=>{e.stopPropagation(),e.preventDefault(),navigator.clipboard.writeText(a).then(()=>{r(!0),setTimeout(()=>r(!1),2e3)}).catch(()=>{})},"aria-label":t(`detail.copyPhone`,`Copy phone number`),children:n?(0,q.jsx)(fi,{className:`h-3 w-3 text-green-600`}):(0,q.jsx)(Ei,{className:`h-3 w-3 text-muted-foreground`})})]})}function XI({value:e,field:t}){let n=QF();if(!e)return(0,q.jsx)($,{});t.multiple;let r=n?.(`fields.file.fileFallback`),i=!r||r===`fields.file.fileFallback`?`File`:r,a=(e,t)=>(0,q.jsx)(ZA,{view:e,className:`text-sm`,fallback:(0,q.jsx)(oI,{text:e.name,className:`text-sm`})},t),o=e=>{let t=n?.(`detail.fileCount`,{count:e});return!t||t===`detail.fileCount`?`${e} ${e===1?`file`:`files`}`:t};if(Array.isArray(e)){let t=GA(e,i);return t.length===0?(0,q.jsx)(`span`,{className:`text-sm text-gray-600`,children:o(t.length)}):(0,q.jsx)(`span`,{className:`flex min-w-0 max-w-full flex-wrap items-center gap-x-2 gap-y-0.5`,children:t.map((e,t)=>a(e,t))})}return eI(e)&&Object.keys(e).length===0?(0,q.jsx)($,{}):a(WA(e,i))}function ZI(e){return GA(e,``).filter(e=>e.url).map(e=>({url:e.url,name:e.name||void 0}))}function QI({value:e}){let{t}=Ct(),[n,r]=K.useState(null),i=K.useMemo(()=>ZI(e),[e]);if(!e||i.length===0)return(0,q.jsx)($,{});let a=(e,n)=>n||t(`fields.image.imageAlt`,{index:e+1}),o=e=>t=>{t.stopPropagation(),r(e)},s=i.length>1,c=n!==null&&(0,q.jsx)(zA,{images:i,index:n,open:!0,onOpenChange:e=>!e&&r(null),onIndexChange:r});return s?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`div`,{className:`flex -space-x-2`,children:[i.slice(0,3).map((e,t)=>(0,q.jsx)(`img`,{src:e.url,alt:a(t,e.name),onClick:o(t),className:`size-8 cursor-zoom-in rounded-md border-2 border-background object-cover transition-transform hover:scale-110 hover:z-10`},t)),i.length>3&&(0,q.jsxs)(`button`,{type:`button`,onClick:o(3),className:`size-8 rounded-md border-2 border-background bg-muted flex items-center justify-center text-xs font-medium text-muted-foreground hover:bg-muted/80`,children:[`+`,i.length-3]})]}),c]}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`img`,{src:i[0].url,alt:a(0,i[0].name),onClick:o(0),className:`size-10 cursor-zoom-in rounded-md object-cover transition-transform hover:scale-105`}),c]})}function $I(e){return ZI(e.value).length>0?(0,q.jsx)(QI,{...e}):(0,q.jsx)(sI,{...e})}function eL(e){if(e!=null&&e!==``){if(typeof e==`object`){let t=e.id??e._id;return typeof t==`number`||typeof t==`string`&&t!==``?t:void 0}if(typeof e==`string`||typeof e==`number`)return e}}function tL({objectName:e,recordId:t,className:n,children:r}){let i=z(),a=e&&t!=null&&t!==``&&i?.recordHref?i.recordHref(e,t):null;return a?(0,q.jsx)(`a`,{href:a,className:J(`text-primary underline-offset-4 hover:underline`,n),onClick:n=>{n.stopPropagation(),!(n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.button!==0)&&i?.openRecord&&(n.preventDefault(),i.openRecord(e,t))},children:r}):(0,q.jsx)(q.Fragment,{children:r})}var nL=3;function rL({value:e,field:t}){let n=t.reference_to||t.reference,r=t.displayField||t.reference_field||void 0,i=JF(n),a=OA(),o=(()=>{if(Array.isArray(e))return e.find(e=>e!=null&&(typeof e==`string`||typeof e==`number`)&&e!==``);if(e!=null&&e!==``&&(typeof e==`string`||typeof e==`number`)&&typeof e!=`object`)return e})(),s=XF(n,o,r,a);if(R(e))return(0,q.jsx)($,{});if(typeof e==`string`){let t=e.trim();if(t.startsWith(`{`)&&t.endsWith(`}`)){let e=``,o;try{let s=JSON.parse(t);s&&typeof s==`object`&&(e=YF(s,i,r,a,n)||String(s.externalId??s.id??s._id??``),o=eL(s))}catch{}if(e)return(0,q.jsx)(tL,{objectName:n,recordId:o,children:(0,q.jsx)(oI,{text:e})})}}if(!Array.isArray(e)&&typeof e==`object`){let t=e,o=YF(t,i,r,a,n)||String(t.id||t._id||``);if(o)return(0,q.jsx)(tL,{objectName:n,recordId:eL(t),children:(0,q.jsx)(oI,{text:o})})}let c=t.options||[],l=e=>{if(c.length>0){let t=c.find(t=>String(t.value)===String(e));if(t)return{text:t.label,unresolved:!1}}return e===o&&s?{text:s,unresolved:!1}:{text:String(e),unresolved:!0}};if(Array.isArray(e)){let t=e=>{if(typeof e==`object`&&e)return{label:YF(e,i,r,a,n)||String(e.id||e._id||`[Object]`),unresolved:!1};let t=l(e);return{label:t.text,unresolved:t.unresolved}},o=e.slice(0,nL),s=e.slice(nL);return(0,q.jsxs)(`div`,{className:`flex flex-wrap gap-1`,children:[o.map((e,r)=>{let{label:i,unresolved:a}=t(e);return(0,q.jsx)(tL,{objectName:n,recordId:eL(e),className:`text-inherit`,children:(0,q.jsx)(`span`,{className:J(`inline-flex items-center px-2 py-0.5 rounded text-xs font-medium`,a?`bg-muted/40 text-muted-foreground`:`bg-gray-50 text-gray-700 dark:bg-gray-800/50 dark:text-gray-200`),children:a?(0,q.jsx)(oL,{value:i}):i})},r)}),s.length>0&&(0,q.jsxs)(`span`,{className:`inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-muted/40 text-muted-foreground`,title:s.map(e=>t(e).label).join(`, `),children:[`+`,s.length]})]})}if(typeof e==`object`&&e){let t=YF(e,i,r,a,n)||String(e.id||e._id||`[Object]`);return(0,q.jsx)(tL,{objectName:n,recordId:eL(e),children:(0,q.jsx)(oI,{text:t})})}let{text:u,unresolved:d}=l(e);return(0,q.jsx)(tL,{objectName:n,recordId:eL(e),children:d?(0,q.jsx)(oL,{value:u}):(0,q.jsx)(oI,{text:u})})}function iL({value:e}){let t=QA(e);return R(t)?(0,q.jsx)($,{}):(0,q.jsx)(`span`,{className:`text-gray-700 font-mono text-sm`,children:String(t)})}function aL({value:e,className:t}){let n=QF(),r=String(e),i=n?.(`detail.unresolvedReference`,{value:r}),a=!i||i===`detail.unresolvedReference`?`Unresolved reference: ${r} was not resolved to a user`:i;return(0,q.jsx)(sL,{raw:r,hint:a,className:t})}function oL({value:e,className:t}){let n=QF(),r=String(e),i=n?.(`detail.unresolvedLookupReference`,{value:r}),a=!i||i===`detail.unresolvedLookupReference`?`Unresolved reference: ${r} was not resolved to a record on this screen`:i;return(0,q.jsx)(sL,{raw:r,hint:a,className:t})}function sL({raw:e,hint:t,className:n}){return(0,q.jsxs)(`span`,{"data-slot":`unresolved-reference`,className:J(`inline-flex min-w-0 max-w-full items-center gap-1 text-muted-foreground`,n),title:t,children:[(0,q.jsx)(Ci,{className:`size-3.5 shrink-0`,"aria-hidden":`true`}),(0,q.jsx)(`span`,{className:`truncate`,children:e})]})}function cL({value:e,field:t}){let n=OA(),r=t?.reference_to||t?.reference||`sys_user`;if(R(e)||!e)return(0,q.jsx)($,{});if(typeof e!=`object`)return(0,q.jsx)(aL,{value:e});if(Array.isArray(e))return(0,q.jsxs)(`div`,{className:`flex -space-x-2`,children:[e.slice(0,3).map((e,t)=>{if(typeof e!=`object`||!e)return(0,q.jsx)(aL,{value:e,className:`text-sm`},t);let i=h(e,n,r);if(eI(i)&&Object.keys(i).length===0)return(0,q.jsx)(oI,{text:String(QA(i)),className:`text-sm`},t);let a=i.name||i.username||`User`,o=a.split(` `).map(e=>e[0]).join(``).toUpperCase().slice(0,2);return(0,q.jsxs)(cs,{className:`size-8 border-2 border-white`,title:a,children:[i.image&&(0,q.jsx)(ls,{src:i.image,alt:a}),(0,q.jsx)(us,{className:`bg-blue-500 text-white text-xs`,children:o})]},t)}),e.length>3&&(0,q.jsx)(cs,{className:`size-8 border-2 border-white`,children:(0,q.jsxs)(us,{className:`bg-gray-200 text-gray-600 text-xs`,children:[`+`,e.length-3]})})]});let i=h(e,n,r);if(Object.keys(i).length===0)return(0,q.jsx)(oI,{text:String(QA(i))});let a=i.name||i.username||`User`,o=a.split(` `).map(e=>e[0]).join(``).toUpperCase().slice(0,2);return(0,q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,q.jsxs)(cs,{className:`size-8`,children:[i.image&&(0,q.jsx)(ls,{src:i.image,alt:a}),(0,q.jsx)(us,{className:`bg-blue-500 text-white text-xs`,children:o})]}),(0,q.jsx)(oI,{text:String(a)})]})}var lL=new Map;function uL(e,t){lL.set(e,t)}var dL={phone:`phone`,tel:`phone`,telephone:`phone`,email:`email`,url:`url`,uri:`url`,link:`url`,currency:`currency`,money:`currency`,percent:`percent`,percentage:`percent`},fL=new Set([`text`,`textarea`,`string`,`longtext`,``]);function pL(e){if(!e)return`text`;if(typeof e==`string`)return e;let t=(e.type||``).toLowerCase(),n=e.format,r=typeof n==`string`?n.toLowerCase():``;return r&&dL[r]&&fL.has(t)?dL[r]:e.type||`text`}function mL({value:e}){if(R(e)&&!Array.isArray(e))return(0,q.jsx)($,{});let t;if(typeof e==`object`)try{t=JSON.stringify(e)}catch{t=String(e)}else t=String(e);return(0,q.jsx)(oI,{text:t,className:`font-mono text-xs text-gray-600`})}function hL({value:e}){if(R(e))return(0,q.jsx)($,{});if(eI(e)){let t=QA(e);return $F(t)?(0,q.jsx)($,{}):(0,q.jsx)(oI,{text:String(t)})}let t=String(e);return $F(t)?(0,q.jsx)($,{}):(0,q.jsxs)(`span`,{className:`inline-flex items-center gap-1.5 text-sm`,children:[(0,q.jsx)(`span`,{className:`h-3.5 w-3.5 rounded border border-black/10 shrink-0`,style:{backgroundColor:t},"aria-hidden":`true`}),(0,q.jsx)(`span`,{className:`font-mono text-xs`,children:t})]})}function gL({value:e}){if(R(e)&&!Array.isArray(e))return(0,q.jsx)($,{});let t,n;if(typeof e==`object`&&!Array.isArray(e)){let r=e;t=typeof r.lat==`number`?r.lat:typeof r.latitude==`number`?r.latitude:void 0,n=typeof r.lng==`number`?r.lng:typeof r.lon==`number`?r.lon:typeof r.longitude==`number`?r.longitude:void 0}else if(Array.isArray(e)&&e.length===2)t=Number(e[0]),n=Number(e[1]);else if(typeof e==`string`){let r=e.split(`,`).map(e=>parseFloat(e.trim()));r.length===2&&!isNaN(r[0])&&!isNaN(r[1])&&([t,n]=r)}return typeof t==`number`&&typeof n==`number`&&!isNaN(t)&&!isNaN(n)?(0,q.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-sm tabular-nums`,children:[(0,q.jsx)(Ji,{className:`h-3.5 w-3.5 shrink-0 text-muted-foreground`,"aria-hidden":`true`}),t.toFixed(4),`, `,n.toFixed(4)]}):(0,q.jsx)(mL,{value:e,field:{}})}function _L({value:e}){let t=St();if(R(e)&&!Array.isArray(e))return(0,q.jsx)($,{});if(typeof e==`string`)return(0,q.jsx)(oI,{text:e,className:`text-sm`});if(typeof e==`object`&&!Array.isArray(e)){let n=FA(e,t);if(n)return(0,q.jsx)(oI,{text:n,className:`text-sm`});if(Object.keys(e).length===0)return(0,q.jsx)($,{})}return(0,q.jsx)(mL,{value:e,field:{}})}function vL({value:e}){let t=QF(),n=Array.isArray(e)?e.length:0;if(n===0)return(0,q.jsx)($,{});let r=t?.(`detail.repeaterItemCount`,{count:n}),i=!r||r===`detail.repeaterItemCount`?`${n} ${n===1?`item`:`items`}`:r;return(0,q.jsx)(`span`,{className:`text-gray-500 italic`,children:i})}function yL({value:e}){return R(QA(e))?(0,q.jsx)($,{}):(0,q.jsx)(`span`,{children:`••••••`})}var bL=new Set([`password`,`secret`]);function xL(e){if(!e)return!1;let t=wL(),n=lL.has(e)?lL.get(e):t[e];return n===yL?!0:bL.has(e)?!Object.values(t).some(e=>e===n):!1}function SL({value:e}){return R(e)?(0,q.jsx)($,{}):(0,q.jsx)(`span`,{className:`text-gray-500 italic`,children:`[Vector]`})}function CL({value:e}){return R(e)?(0,q.jsx)($,{}):(0,q.jsx)(`span`,{className:`text-gray-500 italic`,children:`[Grid]`})}function wL(){return{text:sI,textarea:sI,...lj,code:sI,qrcode:sI,number:cI,currency:lI,percent:uI,progress:uI,slider:cI,rating:cI,boolean:fI,toggle:fI,date:gI,datetime:_I,time:sI,select:KI,status:KI,multiselect:KI,radio:KI,checkboxes:KI,tags:KI,lookup:rL,master_detail:rL,tree:rL,email:qI,url:JI,phone:YI,file:XI,video:XI,audio:XI,image:QI,avatar:QI,signature:$I,formula:iL,summary:iL,auto_number:sI,user:cL,...Object.fromEntries([...bL].map(e=>[e,yL])),location:gL,geolocation:gL,address:_L,color:hL,json:mL,object:mL,composite:mL,record:mL,repeater:vL,vector:SL,grid:CL}}function TL(e){return lL.has(e)?lL.get(e):(ie(e),wL()[e]||sI)}uL(`lookup`,rL),uL(`master_detail`,rL),uL(`select`,KI),uL(`status`,KI),uL(`user`,cL),mj(TL);function EL(e){if(e<0||!Number.isFinite(e)||e===0)return`0 B`;let t=[`B`,`KB`,`MB`,`GB`,`TB`],n=e,r=0;for(;n>=1024&&r<t.length-1;)n/=1024,r++;return`${n.toFixed(+(r>0))} ${t[r]}`}var DL=new WeakMap;function OL(e){let t=DL.get(e);return t||(t=p(e,`stored`),DL.set(e,t)),t}function kL(e){return t=>{if(D(t))return!0;let n=OL(e).safeParse(t);return n.success?!0:`Invalid location: ${n.error.issues.map(e=>`${e.path.join(`.`)||`value`}: ${e.message}`).join(`; `)}`}}function AL(e){let t={};e.required&&(t.required=typeof e.required_message!=`string`||e.required_message);let n=e.minLength??e.min_length;n&&(t.minLength={value:n,message:typeof e.min_length_message==`string`?e.min_length_message:void 0,messageKey:`validation.minLength`});let r=e.maxLength??e.max_length;if(r&&(t.maxLength={value:r,message:typeof e.max_length_message==`string`?e.max_length_message:void 0,messageKey:`validation.maxLength`}),e.min!==void 0&&(t.min={value:e.min,message:typeof e.min_message==`string`?e.min_message:void 0,messageKey:`validation.min`}),e.max!==void 0&&(t.max={value:e.max,message:typeof e.max_message==`string`?e.max_message:void 0,messageKey:`validation.max`}),e.pattern&&(t.pattern={value:typeof e.pattern==`string`?new RegExp(e.pattern):e.pattern,message:typeof e.pattern_message==`string`?e.pattern_message:void 0,messageKey:`validation.pattern`}),e.type===`email`&&(t.pattern={value:/^[^\s@]+@[^\s@]+\.[^\s@]+$/,message:void 0,messageKey:`validation.email`}),e.type===`url`&&(t.pattern={value:/^https?:\/\/.+/,message:void 0,messageKey:`validation.url`}),e.validate&&(t.validate=e.validate),e.type===`location`){let n=t.validate;t.validate={...typeof n==`function`?{validate:n}:n??{},location:kL(e)}}return Object.keys(t).length>0?t:void 0}var jL={text:()=>n(()=>Promise.resolve().then(()=>Cj).then(e=>({default:e.TextField})),void 0,import.meta.url),textarea:()=>n(()=>Promise.resolve().then(()=>Ej).then(e=>({default:e.TextAreaField})),void 0,import.meta.url),number:()=>n(()=>Promise.resolve().then(()=>Nj).then(e=>({default:e.NumberField})),void 0,import.meta.url),boolean:()=>n(()=>Promise.resolve().then(()=>qj).then(e=>({default:e.BooleanField})),void 0,import.meta.url),select:()=>n(()=>Promise.resolve().then(()=>$j).then(e=>({default:e.SelectField})),void 0,import.meta.url),date:()=>n(()=>Promise.resolve().then(()=>lM).then(e=>({default:e.DateField})),void 0,import.meta.url),datetime:()=>n(()=>Promise.resolve().then(()=>dM).then(e=>({default:e.DateTimeField})),void 0,import.meta.url),time:()=>n(()=>Promise.resolve().then(()=>pM).then(e=>({default:e.TimeField})),void 0,import.meta.url),email:()=>n(()=>Promise.resolve().then(()=>hM).then(e=>({default:e.EmailField})),void 0,import.meta.url),phone:()=>n(()=>Promise.resolve().then(()=>_M).then(e=>({default:e.PhoneField})),void 0,import.meta.url),url:()=>n(()=>Promise.resolve().then(()=>yM).then(e=>({default:e.UrlField})),void 0,import.meta.url),multiselect:()=>n(()=>Promise.resolve().then(()=>Zj).then(e=>({default:e.MultiSelectField})),void 0,import.meta.url),radio:()=>n(()=>Promise.resolve().then(()=>nM).then(e=>({default:e.RadioField})),void 0,import.meta.url),checkboxes:()=>n(()=>Promise.resolve().then(()=>iM).then(e=>({default:e.CheckboxesField})),void 0,import.meta.url),tags:()=>n(()=>Promise.resolve().then(()=>oM).then(e=>({default:e.TagsField})),void 0,import.meta.url),currency:()=>n(()=>Promise.resolve().then(()=>Fj).then(e=>({default:e.CurrencyField})),void 0,import.meta.url),percent:()=>n(()=>Promise.resolve().then(()=>Rj).then(e=>({default:e.PercentField})),void 0,import.meta.url),password:()=>n(()=>Promise.resolve().then(()=>nP).then(e=>({default:e.PasswordField})),void 0,import.meta.url),markdown:()=>n(()=>Promise.resolve().then(()=>iP).then(e=>({default:e.RichTextField})),void 0,import.meta.url),html:()=>n(()=>Promise.resolve().then(()=>iP).then(e=>({default:e.RichTextField})),void 0,import.meta.url),richtext:()=>n(()=>Promise.resolve().then(()=>iP).then(e=>({default:e.RichTextField})),void 0,import.meta.url),lookup:()=>n(()=>Promise.resolve().then(()=>iN).then(e=>({default:e.LookupField})),void 0,import.meta.url),master_detail:()=>n(()=>Promise.resolve().then(()=>iN).then(e=>({default:e.LookupField})),void 0,import.meta.url),file:()=>n(()=>Promise.resolve().then(()=>$P).then(e=>({default:e.FileField})),void 0,import.meta.url),image:()=>n(()=>Promise.resolve().then(()=>rF).then(e=>({default:e.ImageField})),void 0,import.meta.url),location:()=>n(()=>Promise.resolve().then(()=>wN).then(e=>({default:e.LocationField})),void 0,import.meta.url),formula:()=>n(()=>Promise.resolve().then(()=>cF).then(e=>({default:e.FormulaField})),void 0,import.meta.url),summary:()=>n(()=>Promise.resolve().then(()=>uF).then(e=>({default:e.SummaryField})),void 0,import.meta.url),auto_number:()=>n(()=>Promise.resolve().then(()=>fF).then(e=>({default:e.AutoNumberField})),void 0,import.meta.url),user:()=>n(()=>Promise.resolve().then(()=>_N).then(e=>({default:e.UserField})),void 0,import.meta.url),object:()=>n(()=>Promise.resolve().then(()=>mF).then(e=>({default:e.ObjectField})),void 0,import.meta.url),vector:()=>n(()=>Promise.resolve().then(()=>gF).then(e=>({default:e.VectorField})),void 0,import.meta.url),grid:()=>n(()=>Promise.resolve().then(()=>vF).then(e=>({default:e.GridField})),void 0,import.meta.url),color:()=>n(()=>Promise.resolve().then(()=>bN).then(e=>({default:e.ColorField})),void 0,import.meta.url),slider:()=>n(()=>Promise.resolve().then(()=>Uj).then(e=>({default:e.SliderField})),void 0,import.meta.url),rating:()=>n(()=>Promise.resolve().then(()=>Gj).then(e=>({default:e.RatingField})),void 0,import.meta.url),code:()=>n(()=>Promise.resolve().then(()=>WN).then(e=>({default:e.CodeField})),void 0,import.meta.url),avatar:()=>n(()=>Promise.resolve().then(()=>BF).then(e=>({default:e.AvatarField})),void 0,import.meta.url),address:()=>n(()=>Promise.resolve().then(()=>SN).then(e=>({default:e.AddressField})),void 0,import.meta.url),geolocation:()=>n(()=>Promise.resolve().then(()=>BN).then(e=>({default:e.GeolocationField})),void 0,import.meta.url),signature:()=>n(()=>Promise.resolve().then(()=>HF).then(e=>({default:e.SignatureField})),void 0,import.meta.url),qrcode:()=>n(()=>Promise.resolve().then(()=>KN).then(e=>({default:e.QRCodeField})),void 0,import.meta.url),"object-ref":()=>n(()=>Promise.resolve().then(()=>fP).then(e=>({default:e.ObjectRefField})),void 0,import.meta.url),"filter-condition":()=>n(()=>Promise.resolve().then(()=>mP).then(e=>({default:e.FilterConditionField})),void 0,import.meta.url),"recipient-picker":()=>n(()=>Promise.resolve().then(()=>IP).then(e=>({default:e.RecipientPickerField})),void 0,import.meta.url)},ML=jL,NL=Object.freeze(Object.keys(jL));function PL(e){if(ML[e]||ve[e])return e;let t=vj(e).replace(/^field:/,``);return ML[t]?t:`text`}var FL=new Map;function IL(e){let t=PL(e);if(ve[t])return HL(t);let n=FL.get(t);return n||(n=K.lazy(ML[t]),FL.set(t,n)),n}var LL=new Set([`text`,`html`,`image`,`avatar`,`grid`,`textarea`,`select`,`email`,`password`,`slider`,`markdown`,`code`,`time`,`address`,`object-ref`,`filter-condition`,`recipient-picker`]),RL={text:`control`,textarea:`control`,number:`control`,boolean:`control`,select:`control`,date:`control`,datetime:`control`,time:`control`,email:`control`,phone:`control`,url:`control`,multiselect:`group`,radio:`group`,checkboxes:`group`,tags:`control`,currency:`control`,percent:`control`,password:`control`,markdown:`control`,html:`control`,richtext:`control`,lookup:`control`,master_detail:`control`,file:`group`,image:`control`,location:`control`,formula:`display`,summary:`display`,auto_number:`display`,user:`control`,object:`control`,vector:`display`,grid:`group`,color:`control`,slider:`group`,rating:`group`,code:`control`,avatar:`control`,address:`group`,geolocation:`group`,signature:`group`,qrcode:`control`,"object-ref":`control`,"filter-condition":`control`,"recipient-picker":`control`};function zL(e){let t=ML[e];if(!t){console.warn(`Unknown field type: ${e}`);return}let n=K.lazy(t),r=RL[e];U.register(e,AA(n),{namespace:`field`,skipFallback:LL.has(e),...r===`control`?null:{labelling:r}})}var BL=e=>{let t=e?.retiredFieldType??e?.field?.type??e?.schema?.type??e?.type??`unknown`,n=ve[t]??`[object-ui] Field type \`${t}\` was retired.`;return K.useEffect(()=>{ie(t)},[t]),(0,q.jsx)(`div`,{role:`alert`,"data-testid":`field-retired-tombstone`,"data-retired-field-type":t,className:`rounded-md border border-destructive/50 bg-destructive/10 px-3 py-2 text-sm text-destructive`,children:n})},VL=new Map;function HL(e){let t=VL.get(e);if(!t){let n=t=>(0,q.jsx)(BL,{...t,retiredFieldType:e});n.displayName=`RetiredFieldTombstone(${e})`,t=n,VL.set(e,t)}return t}function UL(){Object.keys(jL).forEach(e=>{zL(e)}),Object.keys(ve).forEach(e=>{U.register(e,HL(e),{namespace:`field`,skipFallback:!0})})}UL();var WL=t({default:()=>GL});function GL({value:e}){return(0,q.jsx)(`div`,{className:`prose prose-sm max-w-none dark:prose-invert break-words`,children:(0,q.jsx)(Ta,{remarkPlugins:[Da],rehypePlugins:[Ea],children:e})})}export{OA as $,tg as $n,Ys as $r,Wb as $t,tP as A,Fy as An,lm as Ar,AE as At,uM as B,_y as Bn,Ud as Br,bw as Bt,aF as C,Na as Ci,Gy as Cn,vm as Cr,VE as Ct,dP as D,Uy as Dn,_m as Dr,FE as Dt,UP as E,Ky as En,xm as Er,NE as Et,CN as F,yy as Fn,ap as Fr,nE as Ft,Pj as G,py as Gn,Oc as Gr,Nx as Gt,Jj as H,gy as Hn,Bd as Hr,zx as Ht,yN as I,wy as In,sp as Ir,gE as It,QA as J,sv as Jn,Cc as Jr,fx as Jt,vj as K,fy as Kn,Dc as Kr,Ex as Kt,gN as L,Ey as Ln,op as Lr,kT as Lt,$N as M,Iy as Mn,dm as Mr,SE as Mt,UN as N,Ry as Nn,um as Nr,wE as Nt,cP as O,Vy as On,bm as Or,IE as Ot,zN as P,Oy as Pn,fm as Pr,RT as Pt,kA as Q,Yh as Qn,_c as Qr,Ub as Qt,rN as R,xy as Rn,ip as Rr,OT as Rt,zF as S,Ia as Si,tb as Sn,hm as Sr,KE as St,WP as T,Pa as Ti,Wy as Tn,gm as Tr,LE as Tt,Bj as U,my as Un,Vd as Ur,Rx as Ut,eM as V,hy as Vn,Hd as Vr,yw as Vt,Lj as W,dy as Wn,Ld as Wr,Ix as Wt,GA as X,cv as Xn,xc as Xr,Hb as Xt,BA as Y,lv as Yn,Sc as Yr,Kb as Yt,AA as Z,X_ as Zn,vc as Zr,Gb as Zt,xL as _,qo as _i,gb as _n,wm as _r,rD as _t,AL as a,ls as ai,Rb as an,eg as ar,Qk as at,UF as b,J as bi,_b as bn,Cm as br,JE as bt,EL as c,as as ci,rb as cn,zh as cr,JO as ct,HI as d,ns as di,fb as dn,Gh as dr,fD as dt,Gs as ei,Pb as en,Zh as er,CA as et,BI as f,Xo as fi,hb as fn,qh as fr,pD as ft,GI as g,$o as gi,ob as gn,Mm as gr,aD as gt,UI as h,Zo as hi,sb as hn,Om as hr,oD as ht,BL as i,us as ii,Fb as in,Qh as ir,eA as it,QN as j,zy as jn,pm as jr,EE as jt,XN as k,ky as kn,am as kr,$ as kt,rI as l,Ko as li,db as ln,Wh as lr,UO as lt,IL as m,Qo as mi,cb as mn,Dm as mr,sD as mt,NL as n,fs as ni,Bb as nn,ag as nr,nA as nt,nI as o,is as oi,Nb as on,$h as or,Zk as ot,TL as p,es as pi,pb as pn,Sm as pr,dD as pt,uj as q,Fv as qn,wc as qr,mx as qt,yL as r,cs as ri,zb as rn,og as rr,tA as rt,tI as s,os as si,Db as sn,Xh as sr,Wk as st,RL as t,Bs as ti,Ib as tn,ng as tr,cA as tt,aI as u,ts as ui,lb as un,Jh as ur,hO as ut,pL as v,X as vi,bb as vn,Em as vr,nD as vt,tF as w,Aa as wi,qy as wn,ym as wr,ME as wt,VF as x,Y as xi,nb as xn,mm as xr,XE as xt,PL as y,Go as yi,yb as yn,Tm as yr,YE as yt,FM as z,by as zn,zd as zr,xw as zt};