decocms 4.91.18 → 4.92.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 (241) hide show
  1. package/dist/client/assets/{AlertCircle-CCfL1qKN.js → AlertCircle-BtNVN6lT.js} +1 -1
  2. package/dist/client/assets/{AreaChart-C-J00ov-.js → AreaChart-G7ca0KYF.js} +1 -1
  3. package/dist/client/assets/{ArrowUp-vXn8z885.js → ArrowUp-SfmKmvG1.js} +1 -1
  4. package/dist/client/assets/{ArrowUpRight-DAaWjFGI.js → ArrowUpRight-DPmhEMyl.js} +1 -1
  5. package/dist/client/assets/{CheckCircle-Dh0kDPRF.js → CheckCircle-Dqg_7udX.js} +1 -1
  6. package/dist/client/assets/{ChevronDown-DpQsva5t.js → ChevronDown-CtpYRw0N.js} +1 -1
  7. package/dist/client/assets/{ChevronRight-BNfsjOjs.js → ChevronRight-DQFD5vOs.js} +1 -1
  8. package/dist/client/assets/{ChevronUp-CWA4ZtkN.js → ChevronUp-Bu3KYaYp.js} +1 -1
  9. package/dist/client/assets/{Copy01-tZo8YOJb.js → Copy01-B4AQ9voq.js} +1 -1
  10. package/dist/client/assets/{DotsVertical-DFto1Mmd.js → DotsVertical-4fMK5hdE.js} +1 -1
  11. package/dist/client/assets/{Eye-DuOjDWxB.js → Eye-7UpR5EsV.js} +1 -1
  12. package/dist/client/assets/{FilterLines-CJgTbUDc.js → FilterLines-jo0eHglf.js} +1 -1
  13. package/dist/client/assets/{Globe01-CMrlL_OR.js → Globe01-BEuNOgWE.js} +1 -1
  14. package/dist/client/assets/{Globe04-BgoivJUe.js → Globe04-ezZLp1FH.js} +1 -1
  15. package/dist/client/assets/{HardDrive-CD9T2TUm.js → HardDrive-Bx0yMIUr.js} +1 -1
  16. package/dist/client/assets/{Image01-rd9dBk2i.js → Image01-BemfbeRy.js} +1 -1
  17. package/dist/client/assets/{Key01-CbVyJDS8.js → Key01-wlopeCn8.js} +1 -1
  18. package/dist/client/assets/{LayoutLeft-CljUQfjc.js → LayoutLeft-DgCOjEX2.js} +1 -1
  19. package/dist/client/assets/{LinkExternal01-cX6n6x_M.js → LinkExternal01-DjHN0DVc.js} +1 -1
  20. package/dist/client/assets/{Monitor01-BAHQeyaU.js → Monitor01-CvVGHJ2u.js} +1 -1
  21. package/dist/client/assets/{Package-DLIENmRh.js → Package-Dkg7P-qU.js} +1 -1
  22. package/dist/client/assets/{Palette-B2es_mjK.js → Palette-DnEGtR5r.js} +1 -1
  23. package/dist/client/assets/{Play-BHJ_cEUs.js → Play-pFWdRfmo.js} +1 -1
  24. package/dist/client/assets/{Plus-DWM1ZybX.js → Plus-BhgoGeba.js} +1 -1
  25. package/dist/client/assets/{SearchLg-DBpFZoGE.js → SearchLg-D7iDyCtR.js} +1 -1
  26. package/dist/client/assets/{SearchMd-DyLZ377v.js → SearchMd-DU7sZsGX.js} +1 -1
  27. package/dist/client/assets/{Settings02-fvX11akt.js → Settings02-Kn3GUgY3.js} +1 -1
  28. package/dist/client/assets/{Shield01-DgnheDyb.js → Shield01-BF7nZR91.js} +1 -1
  29. package/dist/client/assets/{Star01-DoA-w48J.js → Star01-UbWAuLRP.js} +1 -1
  30. package/dist/client/assets/{Stars01-DlYjW9GJ.js → Stars01-CKHcD24W.js} +1 -1
  31. package/dist/client/assets/{Stars02-DjmPVVIa.js → Stars02-ByALJtc-.js} +1 -1
  32. package/dist/client/assets/{Sun-CPcp6Isc.js → Sun-ERdj2Ruh.js} +1 -1
  33. package/dist/client/assets/{SwitchHorizontal01-hrk8zlPf.js → SwitchHorizontal01-B2hcs1rw.js} +1 -1
  34. package/dist/client/assets/{Tool01-BhZeiRPA.js → Tool01-DoTp9Ymb.js} +1 -1
  35. package/dist/client/assets/{Tool02-C5OrsBmj.js → Tool02-f6hCEEx5.js} +1 -1
  36. package/dist/client/assets/{Trash01-D3XHZ0xP.js → Trash01-Dgm4FHaX.js} +1 -1
  37. package/dist/client/assets/{TrendUp01-0C8I_keT.js → TrendUp01-DdLolkHU.js} +1 -1
  38. package/dist/client/assets/{Upload01-BbNhy3n2.js → Upload01-DPgiWRF2.js} +1 -1
  39. package/dist/client/assets/{User01-bpaOLQrp.js → User01-4oxhkWpc.js} +1 -1
  40. package/dist/client/assets/{Users01-BN7Vwr6C.js → Users01-CbDWoQDz.js} +1 -1
  41. package/dist/client/assets/{Users03-BxmmyyfT.js → Users03-DQDFsIZA.js} +1 -1
  42. package/dist/client/assets/{X-CEVqbIno.js → X-BJznV24Z.js} +1 -1
  43. package/dist/client/assets/{XCircle-CgWAsKSa.js → XCircle-Mn7Ozb-Q.js} +1 -1
  44. package/dist/client/assets/{XClose-Bk2Pp8uS.js → XClose-BYGQndp2.js} +1 -1
  45. package/dist/client/assets/{Zap-BU23dtwz.js → Zap-SMAt3bB0.js} +1 -1
  46. package/dist/client/assets/{ZapSquare-rP8lyE6J.js → ZapSquare-Chem9D1s.js} +1 -1
  47. package/dist/client/assets/{ZoomOut-DLbDID-p.js → ZoomOut-znim4joS.js} +1 -1
  48. package/dist/client/assets/{access-gate-DBGswZmw.js → access-gate-CXUaT8Bg.js} +1 -1
  49. package/dist/client/assets/{add-section-modal-CdDDuLVQ.js → add-section-modal-Bu0jJfTp.js} +1 -1
  50. package/dist/client/assets/agent-icon-CMi9hXve.js +1 -0
  51. package/dist/client/assets/{agents-list-DezVTOHq.js → agents-list-CxMjWnYV.js} +1 -1
  52. package/dist/client/assets/ai-providers-V_ToPNx9.js +1 -0
  53. package/dist/client/assets/{alert-DaJxTKKZ.js → alert-DCHONWz2.js} +1 -1
  54. package/dist/client/assets/{alert-dialog-ArMY_5nt.js → alert-dialog-9jx8jzEO.js} +2 -2
  55. package/dist/client/assets/{app-editor-EknVrDW2.js → app-editor-B5Y1RFnh.js} +1 -1
  56. package/dist/client/assets/{auth-catchall-DSEkcMic.js → auth-catchall-gpLRqkDV.js} +1 -1
  57. package/dist/client/assets/{auth-entry-B9PpytHk.js → auth-entry-ByL0Zb6R.js} +1 -1
  58. package/dist/client/assets/{auth-split-layout-DgCYaQvy.js → auth-split-layout-BoMjBMXD.js} +1 -1
  59. package/dist/client/assets/{auth-DLqJuRt0.js → auth-wA89jw5z.js} +1 -1
  60. package/dist/client/assets/{authenticate-and-persist-oauth-Cp907-h_.js → authenticate-and-persist-oauth-CO2Dkq5Q.js} +1 -1
  61. package/dist/client/assets/{automation-list-row-qh2kN81a.js → automation-list-row-CZVotwYb.js} +1 -1
  62. package/dist/client/assets/{automation-runs-9SLdHQ_E.js → automation-runs-oeg4SZH2.js} +2 -2
  63. package/dist/client/assets/{automations-Dx1_m7Pf.js → automations-kL1ULwau.js} +1 -1
  64. package/dist/client/assets/{autosend-Ni0dYJhU.js → autosend-DFAdUSMh.js} +1 -1
  65. package/dist/client/assets/{avatar-C5JBkW2x.js → avatar-D2faXu9B.js} +1 -1
  66. package/dist/client/assets/{badge-BhB-BVYy.js → badge-C22fJvJ9.js} +1 -1
  67. package/dist/client/assets/{block-document-DSHbFfDB.js → block-document-F7Fz2w43.js} +1 -1
  68. package/dist/client/assets/{brand-context-DDKJN8kv.js → brand-context-CwktNs2n.js} +1 -1
  69. package/dist/client/assets/{buckets-C1QOLFYT.js → buckets-BqmVHHty.js} +1 -1
  70. package/dist/client/assets/{bulk-category-panel-DI_zzkNQ.js → bulk-category-panel-DEnhQv4x.js} +1 -1
  71. package/dist/client/assets/{calendar-CCar9dBO.js → calendar-C55pfZGp.js} +1 -1
  72. package/dist/client/assets/{capability-load-error-C1cWqi7M.js → capability-load-error-D-GHd7kt.js} +1 -1
  73. package/dist/client/assets/{card-D2jYQT8p.js → card-BZY4DqkC.js} +1 -1
  74. package/dist/client/assets/{category-editor-BF9KR_eL.js → category-editor-DZf03BWu.js} +1 -1
  75. package/dist/client/assets/{chat-context-CP8unnj6.js → chat-context-8zti4wkh.js} +7 -7
  76. package/dist/client/assets/{checkbox-DIw1p7SC.js → checkbox-DvRekaoI.js} +1 -1
  77. package/dist/client/assets/{cli-auth-success-COotmhlP.js → cli-auth-success-BwJqzavM.js} +1 -1
  78. package/dist/client/assets/{collection-detail-BvX1Uze6.js → collection-detail-BCNd0Ifz.js} +1 -1
  79. package/dist/client/assets/{collection-display-button-DW2vVENU.js → collection-display-button-Su2JKz2G.js} +1 -1
  80. package/dist/client/assets/{collection-search-DS2VslSR.js → collection-search-B4ji9AjC.js} +1 -1
  81. package/dist/client/assets/{collection-table-wrapper-hsmIXE50.js → collection-table-wrapper-DhT1Pcxz.js} +1 -1
  82. package/dist/client/assets/{collection-tabs-DlRsGBoL.js → collection-tabs-DTWzD8v3.js} +1 -1
  83. package/dist/client/assets/{command-C029goy8.js → command-BeMVvNyF.js} +1 -1
  84. package/dist/client/assets/{commerce-onboarding-Bb6Gc2B4.js → commerce-onboarding-wd060R0w.js} +1 -1
  85. package/dist/client/assets/{companions-core-Cio3LQDG.js → companions-core-D6ZCzGBn.js} +1 -1
  86. package/dist/client/assets/{connect-desktop-dialog-cKK7cndw.js → connect-desktop-dialog-ekgjUng_.js} +1 -1
  87. package/dist/client/assets/{connection-card-DIxXFaHJ.js → connection-card-7Jlr5ou8.js} +1 -1
  88. package/dist/client/assets/{connection-detail-RYQwL6P8.js → connection-detail-CVc89tOZ.js} +1 -1
  89. package/dist/client/assets/{connection-form-helpers-BuKfe4q4.js → connection-form-helpers-BT4sViBb.js} +1 -1
  90. package/dist/client/assets/{connections-C0BH-FJx.js → connections-U8gRLumN.js} +1 -1
  91. package/dist/client/assets/{decopilot-sse-pool-DLMn8S52.js → decopilot-sse-pool-us-M5mS8.js} +1 -1
  92. package/dist/client/assets/{dialog-DzbtpRzm.js → dialog-B_MtszrV.js} +1 -1
  93. package/dist/client/assets/{domain-settings-DMjFeoSy.js → domain-settings-C_FTyjE2.js} +1 -1
  94. package/dist/client/assets/{drawer-pBG78ZEg.js → drawer-BsQ2VY2t.js} +1 -1
  95. package/dist/client/assets/{dropdown-menu-DjvpwBOQ.js → dropdown-menu-CCf9b-Ue.js} +1 -1
  96. package/dist/client/assets/{empty-state-CqshujR4.js → empty-state-uOmVY7AV.js} +1 -1
  97. package/dist/client/assets/{extract-connection-data-CN4FYZ-8.js → extract-connection-data-B1PMDhhA.js} +1 -1
  98. package/dist/client/assets/{file-explorer-C4lMWCSZ.js → file-explorer-Cq-sGwnZ.js} +2 -2
  99. package/dist/client/assets/{file-type-icon-DUh7JGJJ.js → file-type-icon-DLDSmTyC.js} +1 -1
  100. package/dist/client/assets/{files-Dp9vFQrW.js → files-CCiFVnRx.js} +1 -1
  101. package/dist/client/assets/{form-XLaiLeTF.js → form-CBH5rcB6.js} +1 -1
  102. package/dist/client/assets/{general-CRdRnPnh.js → general-DnViTnDI.js} +1 -1
  103. package/dist/client/assets/{github-repo-picker-DR0WZVuf.js → github-repo-picker-DWdab-4Y.js} +1 -1
  104. package/dist/client/assets/{hooks-PdgLMLG3.js → hooks-CQZHp8Dt.js} +1 -1
  105. package/dist/client/assets/{index-DD9SdiWt.js → index-B-kvMeNd.js} +1 -1
  106. package/dist/client/assets/{index-yihQLSU5.js → index-BfunopXO.js} +1 -1
  107. package/dist/client/assets/{index-D2VJNOMk.js → index-C1alCXBf.js} +1 -1
  108. package/dist/client/assets/index-CAK7n_FO.js +2 -0
  109. package/dist/client/assets/index-C_AuPrej.js +26 -0
  110. package/dist/client/assets/{index-CoOqTP5j.js → index-CmemNDJU.js} +1 -1
  111. package/dist/client/assets/index-CodlhltM.js +1 -0
  112. package/dist/client/assets/{index-XeUzDBJE.js → index-DWS4NoqH.js} +1 -1
  113. package/dist/client/assets/{index-BlOo0bH_.js → index-DWmvNX0u.js} +1 -1
  114. package/dist/client/assets/index-D_TDrkT8.js +519 -0
  115. package/dist/client/assets/{index-CQktGTXF.js → index-F-zmfSqw.js} +1 -1
  116. package/dist/client/assets/{index-B5h-IdV9.js → index-QeeIyPD-.js} +3 -3
  117. package/dist/client/assets/{index-2qh8Vkb7.js → index-d_66hXvz.js} +1 -1
  118. package/dist/client/assets/{index-DetOUvoD.js → index-hhU2F3WQ.js} +3 -3
  119. package/dist/client/assets/{index-redirect-CLKvvVrX.js → index-redirect-BRH-3ZCu.js} +1 -1
  120. package/dist/client/assets/{input-seNqBySl.js → input-ksjqlSwm.js} +1 -1
  121. package/dist/client/assets/{integration-icon-DC4d-8U_.js → integration-icon-nHJfLZDJ.js} +1 -1
  122. package/dist/client/assets/{invite-member-dialog-C3YJMl7v.js → invite-member-dialog-C6cxYu7U.js} +1 -1
  123. package/dist/client/assets/{label-CELgj-fe.js → label-B8xrTNKP.js} +1 -1
  124. package/dist/client/assets/{layout-CxfGyarO.js → layout-BJDwPfq0.js} +1 -1
  125. package/dist/client/assets/{login-B8SUC-xC.js → login-DlJSNcQs.js} +1 -1
  126. package/dist/client/assets/{mcp-oauth-308NJTFZ.js → mcp-oauth-C_zNkYXB.js} +1 -1
  127. package/dist/client/assets/{members-DrWhx3UV.js → members-BM7Uqu1Q.js} +1 -1
  128. package/dist/client/assets/{monaco-editor-CFpGykEV.js → monaco-editor-CAwKA7tN.js} +1 -1
  129. package/dist/client/assets/{monitoring-stats-row-DlHaDX7O.js → monitoring-stats-row-CC7F0Phb.js} +3 -3
  130. package/dist/client/assets/{multi-select-B1C99BMx.js → multi-select-5dvonfKB.js} +1 -1
  131. package/dist/client/assets/{oauth-callback-GIQLS4fJ.js → oauth-callback-8qeP_w61.js} +1 -1
  132. package/dist/client/assets/{oauth-callback-ai-provider-CaPz7dlz.js → oauth-callback-ai-provider-BmIt9KYD.js} +1 -1
  133. package/dist/client/assets/{onboarding-BL9BbrVi.js → onboarding-Cg0DtUJd.js} +1 -1
  134. package/dist/client/assets/{org-install-BF3Q6x2p.js → org-install-CTi6z1kk.js} +1 -1
  135. package/dist/client/assets/{org-layout-CWiy_gWT.js → org-layout-tdajFZ6u.js} +1 -1
  136. package/dist/client/assets/{organization-choice-b5r_0Ban.js → organization-choice-GMUL1NeO.js} +1 -1
  137. package/dist/client/assets/{orgs-Cuwe-Uvs.js → orgs-6ZiXdiJ2.js} +1 -1
  138. package/dist/client/assets/{page-seo-form-BmQsPuwl.js → page-seo-form-CGZUz0ph.js} +1 -1
  139. package/dist/client/assets/page-seo-sheet-DB06C8Zh.js +1 -0
  140. package/dist/client/assets/{popover-BmYhWp78.js → popover-3l0deoOx.js} +1 -1
  141. package/dist/client/assets/{post-editor-DqMmzyOr.js → post-editor-Cf2q6koS.js} +1 -1
  142. package/dist/client/assets/{primitives-BzEGyOn5.js → primitives-DGvfP5N2.js} +1 -1
  143. package/dist/client/assets/{profile-Bw15Jk6O.js → profile-BjX7gD7e.js} +1 -1
  144. package/dist/client/assets/project-app-view-CInCPGOf.js +1 -0
  145. package/dist/client/assets/record-editor-C1rBRosQ.js +1 -0
  146. package/dist/client/assets/redirect-editor-DH3saw4e.js +1 -0
  147. package/dist/client/assets/registry-BIMV2dS4.js +2 -0
  148. package/dist/client/assets/registry-layout-50Nc58LU.js +27 -0
  149. package/dist/client/assets/{reports-BEUb5Ylx.js → reports-CMuw_Eim.js} +1 -1
  150. package/dist/client/assets/{require-capability-DT9_wI2y.js → require-capability-BMCPfqFj.js} +1 -1
  151. package/dist/client/assets/{required-auth-layout-Dae_J1y7.js → required-auth-layout-BON6U2A_.js} +1 -1
  152. package/dist/client/assets/{reset-password-DcZj7kV5.js → reset-password-CuQp3WxW.js} +1 -1
  153. package/dist/client/assets/{roles-DoLNs-bZ.js → roles-flCogJRV.js} +1 -1
  154. package/dist/client/assets/{search-input-B0OE4vgL.js → search-input-UOEApV9M.js} +1 -1
  155. package/dist/client/assets/{secrets-Bax8DPsE.js → secrets-CUe-abV1.js} +1 -1
  156. package/dist/client/assets/{sections-editor-I_EzrRHe.js → sections-editor-BCCsHWJ1.js} +2 -2
  157. package/dist/client/assets/{select-BmakF1Tl.js → select-BK6Fwx47.js} +1 -1
  158. package/dist/client/assets/{select-model-CY4706sI.js → select-model-FeZ2YvBx.js} +1 -1
  159. package/dist/client/assets/{self-tool-result-DDv8702r.js → self-tool-result-BblMArR-.js} +1 -1
  160. package/dist/client/assets/{seo-editor-Dw9u_-tC.js → seo-editor-D48-7A97.js} +1 -1
  161. package/dist/client/assets/{settings-layout-h98_bPb6.js → settings-layout-DEiZmbv4.js} +1 -1
  162. package/dist/client/assets/{settings-section-tvXKlJMU.js → settings-section--wnksRdd.js} +1 -1
  163. package/dist/client/assets/{shell-controls-ChcFF1wS.js → shell-controls-6ZpSpxU3.js} +1 -1
  164. package/dist/client/assets/{shell-layout-BNhUr6Ou.js → shell-layout-CGSn6NPr.js} +1 -1
  165. package/dist/client/assets/{sidebar-C-88N1Mg.js → sidebar-BjCGlNJL.js} +1 -1
  166. package/dist/client/assets/{skeleton-acvDUQx5.js → skeleton-4wAys1SB.js} +1 -1
  167. package/dist/client/assets/sso-C8y4ysn5.js +1 -0
  168. package/dist/client/assets/{store-_8OffVle.js → store-EbX-J8BD.js} +1 -1
  169. package/dist/client/assets/store-registry-C4UWjh6m.js +2 -0
  170. package/dist/client/assets/{studio-tools-DjlB0eAK.js → studio-tools-Dz5m3DDC.js} +1 -1
  171. package/dist/client/assets/{switch-CKxDCu5s.js → switch-BGTwAogo.js} +1 -1
  172. package/dist/client/assets/{table-9Qz9K-53.js → table-FWVzL2nm.js} +1 -1
  173. package/dist/client/assets/{tabs-BrvOI9Ue.js → tabs-BovIXRni.js} +1 -1
  174. package/dist/client/assets/{textarea-CY46VjUw.js → textarea-B0BnrQRd.js} +1 -1
  175. package/dist/client/assets/{toggle-group-CIxbIRjF.js → toggle-group-DvzPCkJs.js} +1 -1
  176. package/dist/client/assets/{toolbar-Cur8-ScN.js → toolbar-Dde3UP0K.js} +1 -1
  177. package/dist/client/assets/{toolbar-icon-button-Df2Xqzpy.js → toolbar-icon-button-BGzii147.js} +1 -1
  178. package/dist/client/assets/{tooltip-B_-EFT9Z.js → tooltip-CfmdP-aL.js} +1 -1
  179. package/dist/client/assets/{use-ai-providers-Ditq-ddZ.js → use-ai-providers-UWnZZKKY.js} +1 -1
  180. package/dist/client/assets/{use-automations-CcxL91Ul.js → use-automations-URCauyn7.js} +1 -1
  181. package/dist/client/assets/{use-autosave-COC2hq6X.js → use-autosave-BjhwOY2t.js} +1 -1
  182. package/dist/client/assets/{use-capability-D43mUAjB.js → use-capability-B2RpFGXs.js} +1 -1
  183. package/dist/client/assets/{use-clock-tick-DG2FD5NL.js → use-clock-tick-CI9n9Iqh.js} +1 -1
  184. package/dist/client/assets/{use-collections-DdVDR82x.js → use-collections-CI5XorIY.js} +1 -1
  185. package/dist/client/assets/{use-connection-Bjv9Gq6l.js → use-connection-BlWYloF8.js} +1 -1
  186. package/dist/client/assets/{use-copy-2QAKR_KL.js → use-copy-CCSClSvL.js} +1 -1
  187. package/dist/client/assets/{use-create-virtual-mcp-ChVdlBTA.js → use-create-virtual-mcp-D97QNssr.js} +1 -1
  188. package/dist/client/assets/{use-debounced-autosave-TZXUF3mI.js → use-debounced-autosave-DbO1S1EK.js} +1 -1
  189. package/dist/client/assets/{use-debounced-value-69g0cHSY.js → use-debounced-value-DuzsGBjb.js} +1 -1
  190. package/dist/client/assets/{use-deco-credits-DtOIelJm.js → use-deco-credits-Bov6Ef1l.js} +1 -1
  191. package/dist/client/assets/{use-decopilot-events-CVQHtAzl.js → use-decopilot-events-CqSDZlRU.js} +1 -1
  192. package/dist/client/assets/{use-delete-connection-Dqrmvw62.js → use-delete-connection-B_AyED2-.js} +1 -1
  193. package/dist/client/assets/{use-deployment-admin-C3s9SnZ_.js → use-deployment-admin-CSBPrawc.js} +1 -1
  194. package/dist/client/assets/{use-file-configs-OPcutIH3.js → use-file-configs-BsBJamST.js} +1 -1
  195. package/dist/client/assets/{use-infinite-scroll-B9qYq4Ez.js → use-infinite-scroll-Cylb4hyl.js} +1 -1
  196. package/dist/client/assets/{use-join-requests-Bikmvfrt.js → use-join-requests-Cy4mJo9l.js} +1 -1
  197. package/dist/client/assets/{use-mcp-auth-status-DvxzxUWu.js → use-mcp-auth-status-D-mrOgSF.js} +1 -1
  198. package/dist/client/assets/{use-mcp-client-B5W5GVHP.js → use-mcp-client-DXFWWHbs.js} +3 -3
  199. package/dist/client/assets/{use-mcp-tools-DPZFx5IX.js → use-mcp-tools-ePfAnuof.js} +1 -1
  200. package/dist/client/assets/use-members-C1OZBryu.js +1 -0
  201. package/dist/client/assets/{use-mobile-DN3BWrDG.js → use-mobile-CEVETdVq.js} +1 -1
  202. package/dist/client/assets/{use-navigate-to-agent-C6OBFfLh.js → use-navigate-to-agent-CflMFlHw.js} +1 -1
  203. package/dist/client/assets/{use-org-auth-client-BIi1YKoo.js → use-org-auth-client-BFFpNQiA.js} +1 -1
  204. package/dist/client/assets/{use-org-sso-DwoXhtku.js → use-org-sso-QrZAqFtN.js} +1 -1
  205. package/dist/client/assets/{use-organization-roles-BmQsgYbm.js → use-organization-roles-CYJSylgX.js} +1 -1
  206. package/dist/client/assets/{use-organization-settings-BkKIoTyk.js → use-organization-settings-BpxUnud5.js} +1 -1
  207. package/dist/client/assets/{use-registry-app-DuuG0LKl.js → use-registry-app-CkuNrX2M.js} +1 -1
  208. package/dist/client/assets/{use-registry-connections-B_eVLJ9k.js → use-registry-connections-DWBXDDYI.js} +1 -1
  209. package/dist/client/assets/{use-secrets-B6rikSxQ.js → use-secrets-C8ssS7Ik.js} +1 -1
  210. package/dist/client/assets/{use-status-sounds-C_L2BT3w.js → use-status-sounds-2UIUBUS4.js} +1 -1
  211. package/dist/client/assets/use-t-BKpqHjpb.js +1 -0
  212. package/dist/client/assets/{use-view-mode-C-QHt2uA.js → use-view-mode-BEQ3VoIc.js} +1 -1
  213. package/dist/client/assets/{use-virtual-mcp-Db0RlvR3.js → use-virtual-mcp-D9jFTGjm.js} +1 -1
  214. package/dist/client/assets/useInfiniteQuery-DvViU0Gq.js +1 -0
  215. package/dist/client/assets/{useRouterState-qyO8kCMm.js → useRouterState-d9mo2HNv.js} +1 -1
  216. package/dist/client/assets/useSuspenseInfiniteQuery-COT_NVJE.js +1 -0
  217. package/dist/client/assets/{users-EXup2xZD.js → users-B6WaBMxE.js} +1 -1
  218. package/dist/client/assets/{variant-calendar-Cyj9si28.js → variant-calendar-D4S-Oofs.js} +1 -1
  219. package/dist/client/assets/{view-mode-toggle-DY_3FzuQ.js → view-mode-toggle-CQ-IPomp.js} +1 -1
  220. package/dist/client/index.html +1 -1
  221. package/dist/server/cli.js +500 -476
  222. package/dist/server/server.js +322 -322
  223. package/package.json +1 -1
  224. package/dist/client/assets/agent-icon-CBVfhc5J.js +0 -1
  225. package/dist/client/assets/ai-providers-BnMTPR_X.js +0 -1
  226. package/dist/client/assets/index-BbZVcusZ.js +0 -519
  227. package/dist/client/assets/index-CWPNQHBf.js +0 -26
  228. package/dist/client/assets/index-CwmAgars.js +0 -2
  229. package/dist/client/assets/index-DzWzKHqk.js +0 -1
  230. package/dist/client/assets/page-seo-sheet-H1zK7pzI.js +0 -1
  231. package/dist/client/assets/project-app-view-B_xShfwO.js +0 -1
  232. package/dist/client/assets/record-editor-mXAQrrV1.js +0 -1
  233. package/dist/client/assets/redirect-editor-DdjvqH6t.js +0 -1
  234. package/dist/client/assets/registry-B62-xNzf.js +0 -2
  235. package/dist/client/assets/registry-layout-CTzJL_br.js +0 -27
  236. package/dist/client/assets/sso-Csvr3i0V.js +0 -1
  237. package/dist/client/assets/store-registry-DLodXBCO.js +0 -2
  238. package/dist/client/assets/use-members-Zei4aDBh.js +0 -1
  239. package/dist/client/assets/use-t-Cplra4Bi.js +0 -1
  240. package/dist/client/assets/useInfiniteQuery-DYJj03lC.js +0 -1
  241. package/dist/client/assets/useSuspenseInfiniteQuery-B58_wc7n.js +0 -1
@@ -0,0 +1,26 @@
1
+ import{be as Au,bf as ke,bg as no,I as R,aW as _e,ag as Mt,bh as os,ad as Se,bi as Ir,bj as qe,ae as Cu,bk as hn,H as Q,bl as as,bm as ro,bn as _u,bo as Iu,bp as Ka,bq as Tu,br as Nu,bs as Pu,bt as Ga,bu as Fu,b3 as Ya,af as tr,bv as $u,c as je,r as N,l as Mr,j as m,at as Ja,C as ls,a as Du,t as xr,bw as cs,bx as Za,by as Ru,bz as ku,bA as Mu,bd as Xa,bB as us,bC as Uu,bD as Lu,bE as Bu,bF as Vu,aR as qu,aU as Xt,aO as nr,aS as pn,aP as zu,aT as Wu,bG as Hu,aQ as Ku,bH as Gu,B as Ur,i as ds,b as Yu,E as Ju,aI as Zu}from"./index-QeeIyPD-.js";import{P as En}from"./index-F-zmfSqw.js";import{E as Qa}from"./empty-state-uOmVY7AV.js";import{A as el,k as Xu,l as Qu,n as ed,o as td,p as nd,i as rd,u as id}from"./use-mcp-client-DXFWWHbs.js";import{c as sd}from"./use-mcp-tools-ePfAnuof.js";import{i as od}from"./ZoomOut-znim4joS.js";import{i as ad}from"./Key01-wlopeCn8.js";import{b as ld,u as cd,a as ud}from"./use-connection-BlWYloF8.js";import{U as An,a as ri,e as io}from"./auth-wA89jw5z.js";import{i as dd,c as fd,d as md,e as hd}from"./extract-connection-data-B1PMDhhA.js";import{u as pd}from"./use-registry-connections-DWBXDDYI.js";import{c as gd}from"./use-organization-settings-BpxUnud5.js";import{s as yd}from"./Plus-BhgoGeba.js";import{e as tl,S as bd,a as xd,b as vd,c as Sd,d as wd}from"./select-BK6Fwx47.js";import{R as so}from"./index-d_66hXvz.js";import{R as jd,I as Od,a as Ed}from"./index-DWS4NoqH.js";import{_ as Ut}from"./index-DWmvNX0u.js";import{A as nl}from"./agent-icon-CMi9hXve.js";import{I as Ad}from"./input-ksjqlSwm.js";import{P as Cd,a as _d,b as Id}from"./popover-3l0deoOx.js";import{a as Td,T as Nd,c as Pd,b as Fd}from"./tooltip-CfmdP-aL.js";import{u as $d}from"./use-virtual-mcp-D9jFTGjm.js";import{i as Dd}from"./ChevronUp-Bu3KYaYp.js";import{i as Rd}from"./SearchMd-DU7sZsGX.js";import{a as kd}from"./Users03-DQDFsIZA.js";import{u as Md}from"./use-mobile-CEVETdVq.js";import{u as Ud}from"./use-create-virtual-mcp-D97QNssr.js";function Ld(){const t=new el({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0,code:{optimize:!1}});return Au(t),t}class Bd{#e=Ld();#t=new Map;#n=new WeakMap;getValidator(e){const n=this.#n.get(e);if(n)return n;let r;const i=s=>{if(!r){const o=Vd(e);let a=this.#t.get(o);a||(a=this.#e.compile(e),this.#t.set(o,a)),r=a}return r(s)?{valid:!0,data:s,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:this.#e.errorsText(r.errors)}};return this.#n.set(e,i),i}}function Vd(t){return JSON.stringify(t,(e,n)=>n&&typeof n=="object"&&!Array.isArray(n)?Object.fromEntries(Object.keys(n).sort().map(r=>[r,n[r]])):n)}const qd=new Bd;var zd=class{apply(t,e){if(!e.type)return;const n=Array.isArray(e.type)?e.type:[e.type],r=new Set(n);if(r.has("string")||(t.string=!1),!r.has("number")&&!r.has("integer")&&(t.number=!1),r.has("boolean")||(t.boolean=!1),r.has("null")||(t.null=!1),r.has("array")||(t.array=!1),r.has("object")||(t.object=!1),r.has("integer")&&t.number!==!1){const i=t.number||_e();i instanceof hn&&(t.number=i.int())}}},Wd=class{apply(t,e){if(e.const===void 0)return;const n=e.const;t.string=!1,t.number=!1,t.boolean=!1,t.null=!1,t.array=!1,t.object=!1,typeof n=="string"?t.string=qe(n):typeof n=="number"?t.number=qe(n):typeof n=="boolean"?t.boolean=qe(n):n===null?t.null=os():Array.isArray(n)?t.array=void 0:typeof n=="object"&&(t.object=void 0)}},Hd=class{apply(t,e){if(!e.enum)return;if(e.enum.length===0){e.type||(t.string=!1,t.number=!1,t.boolean=!1,t.null=!1,t.array=!1,t.object=!1);return}const n={string:e.enum.filter(r=>typeof r=="string"),number:e.enum.filter(r=>typeof r=="number"),boolean:e.enum.filter(r=>typeof r=="boolean"),null:e.enum.filter(r=>r===null),array:e.enum.filter(r=>Array.isArray(r)),object:e.enum.filter(r=>typeof r=="object"&&r!==null&&!Array.isArray(r))};t.string=this.createTypeSchema(n.string,"string"),t.number=this.createTypeSchema(n.number,"number"),t.boolean=this.createTypeSchema(n.boolean,"boolean"),t.null=n.null.length>0?os():!1,t.array=n.array.length>0?void 0:!1,t.object=n.object.length>0?void 0:!1}createTypeSchema(t,e){if(t.length===0)return!1;if(t.length===1)return qe(t[0]);if(e==="string")return Cu(t);if(e==="number"){const[n,r,...i]=t;return Ir([qe(n),qe(r),...i.map(s=>qe(s))])}return e==="boolean"?Ir([qe(!0),qe(!1)]):!1}},Kd=class{apply(t,e){const n=e;if(n.type==="string"&&n.format==="binary"&&n.contentEncoding==="binary"){let r=Pu();n.minLength!==void 0&&(r=r.min(n.minLength)),n.maxLength!==void 0&&(r=r.max(n.maxLength)),n.contentMediaType!==void 0&&(r=r.mime(n.contentMediaType)),t.file=r,t.string=!1}}},Gd=class{apply(t,e){const n=e;e.type===void 0&&(n.minLength!==void 0||n.maxLength!==void 0||n.pattern!==void 0)&&t.string===void 0&&(t.string=R())}},Yd=class{apply(t,e){const n=e;if(n.minLength!==void 0&&t.string!==!1){const r=t.string||R();r instanceof as&&(t.string=r.refine(i=>Array.from(i).length>=n.minLength,{message:`String must be at least ${n.minLength} characters long`}))}}},Jd=class{apply(t,e){const n=e;if(n.maxLength!==void 0&&t.string!==!1){const r=t.string||R();r instanceof as&&(t.string=r.refine(i=>Array.from(i).length<=n.maxLength,{message:`String must be at most ${n.maxLength} characters long`}))}}},Zd=class{apply(t,e){const n=e;if(n.pattern&&t.string!==!1){const r=t.string||R();if(r instanceof as){const i=new RegExp(n.pattern);t.string=r.regex(i)}}}},Xd=class{apply(t,e){const n=e;if(n.minimum!==void 0&&t.number!==!1){const r=t.number||_e();r instanceof hn&&(t.number=r.min(n.minimum))}}},Qd=class{apply(t,e){const n=e;if(n.maximum!==void 0&&t.number!==!1){const r=t.number||_e();r instanceof hn&&(t.number=r.max(n.maximum))}}},ef=class{apply(t,e){const n=e;if(n.exclusiveMinimum!==void 0&&t.number!==!1){const r=t.number||_e();r instanceof hn&&(typeof n.exclusiveMinimum=="number"?t.number=r.gt(n.exclusiveMinimum):t.number=!1)}}},tf=class{apply(t,e){const n=e;if(n.exclusiveMaximum!==void 0&&t.number!==!1){const r=t.number||_e();r instanceof hn&&(typeof n.exclusiveMaximum=="number"?t.number=r.lt(n.exclusiveMaximum):t.number=!1)}}},nf=class{apply(t,e){const n=e;if(n.multipleOf!==void 0&&t.number!==!1){const r=t.number||_e();r instanceof hn&&(t.number=r.refine(i=>{if(n.multipleOf===0)return!1;const s=i/n.multipleOf,o=Math.round(s),a=Math.min(Math.abs(i)*Number.EPSILON*10,Math.abs(n.multipleOf)*Number.EPSILON*10);return Math.abs(s-o)<=a/Math.abs(n.multipleOf)},{message:`Must be a multiple of ${n.multipleOf}`}))}}},rf=class{apply(t,e){const n=e;e.type===void 0&&(n.minItems!==void 0||n.maxItems!==void 0||n.items!==void 0||n.prefixItems!==void 0)&&t.array===void 0&&(t.array=Se(ke()))}},sf=class{apply(t,e){const n=e;n.minItems!==void 0&&t.array!==!1&&(t.array=(t.array||Se(ke())).min(n.minItems))}},of=class{apply(t,e){const n=e;n.maxItems!==void 0&&t.array!==!1&&(t.array=(t.array||Se(ke())).max(n.maxItems))}},af=class{apply(t,e){const n=e;if(t.array!==!1)if(Array.isArray(n.items))t.array=t.array||Se(ke());else if(n.items&&typeof n.items!="boolean"&&!n.prefixItems){const r=Ie(n.items);let i=Se(r);if(t.array&&t.array instanceof _u){const s=t.array._def;s.checks&&s.checks.forEach(o=>{if(o._zod&&o._zod.def){const a=o._zod.def;a.check==="min_length"&&a.minimum!==void 0?i=i.min(a.minimum):a.check==="max_length"&&a.maximum!==void 0&&(i=i.max(a.maximum))}})}t.array=i}else typeof n.items=="boolean"&&n.items===!1?n.prefixItems?t.array=t.array||Se(ke()):t.array=Se(ke()).max(0):typeof n.items=="boolean"&&n.items===!0?t.array=t.array||Se(ke()):n.prefixItems&&(t.array=t.array||Se(ke()))}},lf=class{apply(t,e){if(e.type!=="array")return;const n=e;if(!Array.isArray(n.items)||t.array===!1)return;const r=n.items.map(s=>Ie(s));let i;r.length===0?i=ro([]):i=ro(r),n.minItems!==void 0&&n.minItems>r.length&&(i=!1),n.maxItems!==void 0&&n.maxItems<r.length&&(i=!1),t.tuple=i,t.array=!1}},cf=class{apply(t,e){const n=e;t.object!==!1&&(n.properties||n.required||n.additionalProperties!==void 0)&&(t.object=t.object||Q({}).passthrough())}},uf=class{apply(t,e){const n=e;e.type===void 0&&(n.maxProperties!==void 0||n.minProperties!==void 0)&&t.object===void 0&&(t.object=Q({}).passthrough())}},df=class{apply(t,e){const n=e;if(n.maxProperties!==void 0&&t.object!==!1){const r=t.object||Q({}).passthrough();t.object=r.refine(i=>Object.keys(i).length<=n.maxProperties,{message:`Object must have at most ${n.maxProperties} properties`})}}},ff=class{apply(t,e){const n=e;if(n.minProperties!==void 0&&t.object!==!1){const r=t.object||Q({}).passthrough();t.object=r.refine(i=>Object.keys(i).length>=n.minProperties,{message:`Object must have at least ${n.minProperties} properties`})}}};function Kn(t,e){if(t===e)return!0;if(t==null||e==null)return t===e;if(typeof t!=typeof e)return!1;if(Array.isArray(t)&&Array.isArray(e))return t.length!==e.length?!1:t.every((n,r)=>Kn(n,e[r]));if(typeof t=="object"&&typeof e=="object"){const n=Object.keys(t),r=Object.keys(e);return n.length!==r.length?!1:n.every(i=>r.includes(i)&&Kn(t[i],e[i]))}return!1}function mf(){return t=>{if(!Array.isArray(t))return!0;const e=[];return t.every(n=>e.some(i=>Kn(n,i))?!1:(e.push(n),!0))}}function Tr(t,e){return t.safeParse(e).success}var hf=class{apply(t,e){if(!e.not)return t;const n=Ie(e.not);return t.refine(r=>!Tr(n,r),{message:"Value must not match the 'not' schema"})}},pf=class{apply(t,e){return e.uniqueItems!==!0?t:t.refine(mf(),{message:"Array items must be unique"})}},gf=class{apply(t,e){return!e.allOf||e.allOf.length===0?t:e.allOf.map(r=>Ie(r)).reduce((r,i)=>Ka(r,i),t)}},yf=class{apply(t,e){if(!e.anyOf||e.anyOf.length===0)return t;const n=e.anyOf.length===1?Ie(e.anyOf[0]):Ir([Ie(e.anyOf[0]),Ie(e.anyOf[1]),...e.anyOf.slice(2).map(r=>Ie(r))]);return Ka(t,n)}},bf=class{apply(t,e){if(!e.oneOf||e.oneOf.length===0)return t;const n=e.oneOf.map(r=>Ie(r));return t.refine(r=>{let i=0;for(const s of n)if(s.safeParse(r).success&&(i++,i>1))return!1;return i===1},{message:"Value must match exactly one of the oneOf schemas"})}},xf=class{apply(t,e){const n=e;if(n.prefixItems&&Array.isArray(n.prefixItems)){const i=n.prefixItems.map(s=>Ie(s));return t.refine(s=>{if(!Array.isArray(s))return!0;for(let o=0;o<Math.min(s.length,i.length);o++)if(!Tr(i[o],s[o]))return!1;if(s.length>i.length){if(typeof n.items=="boolean"&&n.items===!1)return!1;if(n.items&&typeof n.items=="object"&&!Array.isArray(n.items)){const o=Ie(n.items);for(let a=i.length;a<s.length;a++)if(!Tr(o,s[a]))return!1}}return!0},{message:"Array does not match prefixItems schema"})}return t}},vf=class{apply(t,e){const n=e;if(!n.properties&&!n.required&&n.additionalProperties!==!1)return t;if(t instanceof Tu||t instanceof Nu){const r={};if(n.properties)for(const[i,s]of Object.entries(n.properties))s!==void 0&&(r[i]=Ie(s));if(n.required&&Array.isArray(n.required)){const i=new Set(n.required);for(const s of Object.keys(r))i.has(s)||(r[s]=r[s].optional())}else for(const i of Object.keys(r))r[i]=r[i].optional();return n.additionalProperties===!1?Q(r):Q(r).passthrough()}return t.refine(r=>{if(typeof r!="object"||r===null||Array.isArray(r))return!0;if(n.properties){for(const[i,s]of Object.entries(n.properties))if(s!==void 0&&Object.getOwnPropertyDescriptor(r,i)!==void 0&&!Ie(s).safeParse(r[i]).success)return!1}if(n.required&&Array.isArray(n.required)){for(const i of n.required)if(!(Object.getOwnPropertyDescriptor(r,i)!==void 0))return!1}if(n.additionalProperties===!1&&n.properties){const i=new Set(Object.keys(n.properties));for(const s in r)if(!i.has(s))return!1}return!0},{message:"Object constraints validation failed"})}},Sf=class{apply(t,e){if(!e.enum||e.enum.length===0)return t;const n=e.enum.filter(r=>Array.isArray(r)||typeof r=="object"&&r!==null);return n.length===0?t:t.refine(r=>typeof r!="object"||r===null?!0:n.some(i=>Kn(r,i)),{message:"Value must match one of the enum values"})}},wf=class{apply(t,e){if(e.const===void 0)return t;const n=e.const;return typeof n!="object"||n===null?t:t.refine(r=>Kn(r,n),{message:"Value must equal the const value"})}},jf=class{apply(t,e){return e.description&&(t=t.describe(e.description)),t}},Of=class{apply(t,e){var n;const r=e;return!((n=r.required)!=null&&n.includes("__proto__"))||e.type!==void 0?t:ke().refine(i=>this.validateRequired(i,r.required),{message:"Missing required properties"})}validateRequired(t,e){return typeof t!="object"||t===null||Array.isArray(t)?!0:e.every(n=>Object.prototype.hasOwnProperty.call(t,n))}},Ef=class{apply(t,e){var n;const r=e;if(r.contains===void 0)return t;const i=Ie(r.contains),s=(n=r.minContains)!=null?n:1,o=r.maxContains;return t.refine(a=>{if(!Array.isArray(a))return!0;let l=0;for(const u of a)Tr(i,u)&&l++;return!(l<s||o!==void 0&&l>o)},{message:"Array must contain required items matching the schema"})}},Af=class{apply(t,e){const{default:n}=e;return n===void 0||!t.safeParse(n).success?t:t.default(n)}},Cf=[new Wd,new Hd,new zd,new Kd,new Gd,new rf,new uf,new Yd,new Jd,new Zd,new Xd,new Qd,new ef,new tf,new nf,new lf,new sf,new of,new af,new df,new ff,new cf],_f=[new Of,new Sf,new wf,new gf,new yf,new bf,new xf,new vf,new Ef,new hf,new pf,new Af,new jf];function Ie(t){if(typeof t=="boolean")return t?ke():no();const e={};for(const i of Cf)i.apply(e,t);const n=[];if(e.string!==!1&&n.push(e.string||R()),e.number!==!1&&n.push(e.number||_e()),e.boolean!==!1&&n.push(e.boolean||Mt()),e.null!==!1&&n.push(e.null||os()),e.array!==!1&&n.push(e.array||Se(ke())),e.tuple!==!1&&e.tuple!==void 0&&n.push(e.tuple),e.object!==!1)if(e.object)n.push(e.object);else{const i=Iu(s=>typeof s=="object"&&s!==null&&!Array.isArray(s),"Must be an object, not an array");n.push(i)}e.file!==!1&&e.file!==void 0&&n.push(e.file);let r;n.length===0?r=no():n.length===1?r=n[0]:Object.keys(t).some(s=>s!=="$schema"&&s!=="title"&&s!=="description")?r=Ir(n):r=ke();for(const i of _f)r=i.apply(r,t);return r}class oo extends Event{constructor(e,n){var r,i;super(e),this.code=(r=n?.code)!=null?r:void 0,this.message=(i=n?.message)!=null?i:void 0}[Symbol.for("nodejs.util.inspect.custom")](e,n,r){return r(ao(this),n)}[Symbol.for("Deno.customInspect")](e,n){return e(ao(this),n)}}function If(t){const e=globalThis.DOMException;return typeof e=="function"?new e(t,"SyntaxError"):new SyntaxError(t)}function Fi(t){return t instanceof Error?"errors"in t&&Array.isArray(t.errors)?t.errors.map(Fi).join(", "):"cause"in t&&t.cause instanceof Error?`${t}: ${Fi(t.cause)}`:t.message:`${t}`}function ao(t){return{type:t.type,message:t.message,code:t.code,defaultPrevented:t.defaultPrevented,cancelable:t.cancelable,timeStamp:t.timeStamp}}var rl=t=>{throw TypeError(t)},fs=(t,e,n)=>e.has(t)||rl("Cannot "+n),Z=(t,e,n)=>(fs(t,e,"read from private field"),n?n.call(t):e.get(t)),ve=(t,e,n)=>e.has(t)?rl("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),pe=(t,e,n,r)=>(fs(t,e,"write to private field"),e.set(t,n),n),st=(t,e,n)=>(fs(t,e,"access private method"),n),Pe,Nt,Gt,vr,Nr,Mn,Qt,Un,yt,Yt,rn,Jt,Pn,Ve,$i,Di,Ri,lo,ki,Mi,Fn,Ui,Li;class Sr extends EventTarget{constructor(e,n){var r,i;super(),ve(this,Ve),this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,ve(this,Pe),ve(this,Nt),ve(this,Gt),ve(this,vr),ve(this,Nr),ve(this,Mn),ve(this,Qt),ve(this,Un,null),ve(this,yt),ve(this,Yt),ve(this,rn,null),ve(this,Jt,null),ve(this,Pn,null),ve(this,Di,async s=>{var o;Z(this,Yt).reset();const{body:a,redirected:l,status:u,headers:c}=s;if(u===204){st(this,Ve,Fn).call(this,"Server sent HTTP 204, not reconnecting",204),this.close();return}if(l?pe(this,Gt,new URL(s.url)):pe(this,Gt,void 0),u!==200){st(this,Ve,Fn).call(this,`Non-200 status code (${u})`,u);return}if(!(c.get("content-type")||"").startsWith("text/event-stream")){st(this,Ve,Fn).call(this,'Invalid content type, expected "text/event-stream"',u);return}if(Z(this,Pe)===this.CLOSED)return;pe(this,Pe,this.OPEN);const d=new Event("open");if((o=Z(this,Pn))==null||o.call(this,d),this.dispatchEvent(d),typeof a!="object"||!a||!("getReader"in a)){st(this,Ve,Fn).call(this,"Invalid response body, expected a web ReadableStream",u),this.close();return}const h=new TextDecoder,y=a.getReader();let f=!0;do{const{done:p,value:b}=await y.read();b&&Z(this,Yt).feed(h.decode(b,{stream:!p})),p&&(f=!1,Z(this,Yt).reset(),st(this,Ve,Ui).call(this))}while(f)}),ve(this,Ri,s=>{pe(this,yt,void 0),!(s.name==="AbortError"||s.type==="aborted")&&st(this,Ve,Ui).call(this,Fi(s))}),ve(this,ki,s=>{typeof s.id=="string"&&pe(this,Un,s.id);const o=new MessageEvent(s.event||"message",{data:s.data,origin:Z(this,Gt)?Z(this,Gt).origin:Z(this,Nt).origin,lastEventId:s.id||""});Z(this,Jt)&&(!s.event||s.event==="message")&&Z(this,Jt).call(this,o),this.dispatchEvent(o)}),ve(this,Mi,s=>{pe(this,Mn,s)}),ve(this,Li,()=>{pe(this,Qt,void 0),Z(this,Pe)===this.CONNECTING&&st(this,Ve,$i).call(this)});try{if(e instanceof URL)pe(this,Nt,e);else if(typeof e=="string")pe(this,Nt,new URL(e,Tf()));else throw new Error("Invalid URL")}catch{throw If("An invalid or illegal string was specified")}pe(this,Yt,Xu({onEvent:Z(this,ki),onRetry:Z(this,Mi)})),pe(this,Pe,this.CONNECTING),pe(this,Mn,3e3),pe(this,Nr,(r=n?.fetch)!=null?r:globalThis.fetch),pe(this,vr,(i=n?.withCredentials)!=null?i:!1),st(this,Ve,$i).call(this)}get readyState(){return Z(this,Pe)}get url(){return Z(this,Nt).href}get withCredentials(){return Z(this,vr)}get onerror(){return Z(this,rn)}set onerror(e){pe(this,rn,e)}get onmessage(){return Z(this,Jt)}set onmessage(e){pe(this,Jt,e)}get onopen(){return Z(this,Pn)}set onopen(e){pe(this,Pn,e)}addEventListener(e,n,r){const i=n;super.addEventListener(e,i,r)}removeEventListener(e,n,r){const i=n;super.removeEventListener(e,i,r)}close(){Z(this,Qt)&&clearTimeout(Z(this,Qt)),Z(this,Pe)!==this.CLOSED&&(Z(this,yt)&&Z(this,yt).abort(),pe(this,Pe,this.CLOSED),pe(this,yt,void 0))}}Pe=new WeakMap,Nt=new WeakMap,Gt=new WeakMap,vr=new WeakMap,Nr=new WeakMap,Mn=new WeakMap,Qt=new WeakMap,Un=new WeakMap,yt=new WeakMap,Yt=new WeakMap,rn=new WeakMap,Jt=new WeakMap,Pn=new WeakMap,Ve=new WeakSet,$i=function(){pe(this,Pe,this.CONNECTING),pe(this,yt,new AbortController),Z(this,Nr)(Z(this,Nt),st(this,Ve,lo).call(this)).then(Z(this,Di)).catch(Z(this,Ri))},Di=new WeakMap,Ri=new WeakMap,lo=function(){var t;const e={mode:"cors",redirect:"follow",headers:{Accept:"text/event-stream",...Z(this,Un)?{"Last-Event-ID":Z(this,Un)}:void 0},cache:"no-store",signal:(t=Z(this,yt))==null?void 0:t.signal};return"window"in globalThis&&(e.credentials=this.withCredentials?"include":"same-origin"),e},ki=new WeakMap,Mi=new WeakMap,Fn=function(t,e){var n;Z(this,Pe)!==this.CLOSED&&pe(this,Pe,this.CLOSED);const r=new oo("error",{code:e,message:t});(n=Z(this,rn))==null||n.call(this,r),this.dispatchEvent(r)},Ui=function(t,e){var n;if(Z(this,Pe)===this.CLOSED)return;pe(this,Pe,this.CONNECTING);const r=new oo("error",{code:e,message:t});(n=Z(this,rn))==null||n.call(this,r),this.dispatchEvent(r),pe(this,Qt,setTimeout(Z(this,Li),Z(this,Mn)))},Li=new WeakMap,Sr.CONNECTING=0,Sr.OPEN=1,Sr.CLOSED=2;function Tf(){const t="document"in globalThis?globalThis.document:void 0;return t&&typeof t=="object"&&"baseURI"in t&&typeof t.baseURI=="string"?t.baseURI:void 0}class Nf extends Error{constructor(e,n,r){super(`SSE error: ${n}`),this.code=e,this.event=r}}class Pf{constructor(e,n){this._url=e,this._resourceMetadataUrl=void 0,this._scope=void 0,this._eventSourceInit=n?.eventSourceInit,this._requestInit=n?.requestInit,this._authProvider=n?.authProvider,this._fetch=n?.fetch,this._fetchWithInit=Qu(n?.fetch,n?.requestInit)}async _authThenStart(){if(!this._authProvider)throw new An("No auth provider");let e;try{e=await ri(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})}catch(n){throw this.onerror?.(n),n}if(e!=="AUTHORIZED")throw new An;return await this._startOrAuth()}async _commonHeaders(){const e={};if(this._authProvider){const r=await this._authProvider.tokens();r&&(e.Authorization=`Bearer ${r.access_token}`)}this._protocolVersion&&(e["mcp-protocol-version"]=this._protocolVersion);const n=ed(this._requestInit?.headers);return new Headers({...e,...n})}_startOrAuth(){const e=this?._eventSourceInit?.fetch??this._fetch??fetch;return new Promise((n,r)=>{this._eventSource=new Sr(this._url.href,{...this._eventSourceInit,fetch:async(i,s)=>{const o=await this._commonHeaders();o.set("Accept","text/event-stream");const a=await e(i,{...s,headers:o});if(a.status===401&&a.headers.has("www-authenticate")){const{resourceMetadataUrl:l,scope:u}=io(a);this._resourceMetadataUrl=l,this._scope=u}return a}}),this._abortController=new AbortController,this._eventSource.onerror=i=>{if(i.code===401&&this._authProvider){this._authThenStart().then(n,r);return}const s=new Nf(i.code,i.message,i);r(s),this.onerror?.(s)},this._eventSource.onopen=()=>{},this._eventSource.addEventListener("endpoint",i=>{const s=i;try{if(this._endpoint=new URL(s.data,this._url),this._endpoint.origin!==this._url.origin)throw new Error(`Endpoint origin does not match connection origin: ${this._endpoint.origin}`)}catch(o){r(o),this.onerror?.(o),this.close();return}n()}),this._eventSource.onmessage=i=>{const s=i;let o;try{o=Ga.parse(JSON.parse(s.data))}catch(a){this.onerror?.(a);return}this.onmessage?.(o)}})}async start(){if(this._eventSource)throw new Error("SSEClientTransport already started! If using Client class, note that connect() calls start() automatically.");return await this._startOrAuth()}async finishAuth(e){if(!this._authProvider)throw new An("No auth provider");if(await ri(this._authProvider,{serverUrl:this._url,authorizationCode:e,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new An("Failed to authorize")}async close(){this._abortController?.abort(),this._eventSource?.close(),this.onclose?.()}async send(e){if(!this._endpoint)throw new Error("Not connected");try{const n=await this._commonHeaders();n.set("content-type","application/json");const r={...this._requestInit,method:"POST",headers:n,body:JSON.stringify(e),signal:this._abortController?.signal},i=await(this._fetch??fetch)(this._endpoint,r);if(!i.ok){const s=await i.text().catch(()=>null);if(i.status===401&&this._authProvider){const{resourceMetadataUrl:o,scope:a}=io(i);if(this._resourceMetadataUrl=o,this._scope=a,await ri(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new An;return this.send(e)}throw new Error(`Error POSTing to endpoint (HTTP ${i.status}): ${s}`)}await i.body?.cancel()}catch(n){throw this.onerror?.(n),n}}setProtocolVersion(e){this._protocolVersion=e}}const Ff="mcp";class $f{constructor(e){this._url=e}start(){if(this._socket)throw new Error("WebSocketClientTransport already started! If using Client class, note that connect() calls start() automatically.");return new Promise((e,n)=>{this._socket=new WebSocket(this._url,Ff),this._socket.onerror=r=>{const i="error"in r?r.error:new Error(`WebSocket error: ${JSON.stringify(r)}`);n(i),this.onerror?.(i)},this._socket.onopen=()=>{e()},this._socket.onclose=()=>{this.onclose?.()},this._socket.onmessage=r=>{let i;try{i=Ga.parse(JSON.parse(r.data))}catch(s){this.onerror?.(s);return}this.onmessage?.(i)}})}async close(){this._socket?.close()}send(e){return new Promise((n,r)=>{if(!this._socket){r(new Error("Not connected"));return}this._socket?.send(JSON.stringify(e)),n()})}}class Df extends td{constructor(e,n){super(e,n)}send(e,n){const r=Rf(e);return r?.type==="emit"?(this.onmessage?.(r.message),Promise.resolve()):r?.type==="suppress"?Promise.resolve():super.send(e,n)}}function Rf(t){const e=t;if(!e||typeof e!="object"||!("method"in e))return null;switch(e.method){case"initialize":{const n=e?.params?.protocolVersion;return n?{type:"emit",message:{result:{protocolVersion:n,capabilities:{tools:{}},serverInfo:{name:"deco-chat-server",version:"1.0.0"}},jsonrpc:e.jsonrpc??"2.0",id:e.id}}:null}case"notifications/roots/list_changed":case"notifications/initialized":case"notifications/cancelled":case"notifications/progress":return{type:"suppress"};default:return null}}class kf extends nd{constructor(e,n){super(e,{jsonSchemaValidator:qd,...n})}async listTools(e,n){return await this.request({method:"tools/list",params:e},Fu,n)}}const Mf=async(t,e,n)=>{const r=Uf(t.connection,e,n);if(!r)throw new Error("Unknown MCP connection type");const i=new kf({name:t?.name??"MCP Client",version:"1.0.0"});return await i.connect(r),{client:i}},Uf=(t,e,n)=>{if(t.type==="Websocket")return new $f(new URL(t.url));if(t.type!=="SSE"&&t.type!=="HTTP")return null;const i={...t.token?{authorization:`Bearer ${t.token}`}:{},...n??{},..."headers"in t?t.headers||{}:{}};if(t.type==="SSE"){const s={requestInit:{headers:i,signal:e}};return t.token&&(s.eventSourceInit={fetch:(o,a)=>fetch(o,{...a,headers:{...i,Accept:"text/event-stream"},signal:e})}),new Pf(new URL(t.url),s)}return new Df(new URL(t.url),{requestInit:{headers:i,signal:e,credentials:"include"}})},co=t=>{try{return JSON.parse(t)}catch{return t}},mr=new Map,uo=(t,e)=>({...t,id:t.name,inputSchema:t.inputSchema?Ie(t.inputSchema):void 0,outputSchema:t.outputSchema?Ie(t.outputSchema):void 0,execute:n=>e(n.context,t.name)});function Lf(t){const e=n=>"connection"in t?Mf({connection:t.connection},void 0,n):t.client;return new Proxy({},{get(n,r){if(r==="toJSON")return null;if(typeof r!="string")throw new Error("Name must be a string");if(r==="listTools")return a;async function i(l,u=r){const c=t?.debugId?.(),d=c?{"x-trace-debug-id":c}:void 0,{client:h}=await e(d),{structuredContent:y,isError:f,content:p}=await h.callTool({name:String(u),arguments:l});if(f){const v=p?.[0]?.text,S=typeof v=="string"?co(v):null,E=S?.code&&typeof t?.getErrorByStatusCode=="function"?t.getErrorByStatusCode(S.code,S.message,S.traceId):null;throw E||new Error(`Tool ${String(u)} returned an error: ${JSON.stringify(y??p)}`)}if(y!==void 0)return y;const b=p?.[0]?.text;return typeof b=="string"?co(b):void 0}async function s(){const{client:l}=await e(),{tools:u}=await l.listTools();return u}async function o(){if(!("connection"in t))return s();const l=t.connection,u=JSON.stringify(l);try{return mr.has(u)||mr.set(u,s()),await mr.get(u)}catch(c){console.error("Failed to list tools",c),mr.delete(u);return}}async function a(){return(await o()??[]).map(u=>uo(u,i))}return i.asTool=async()=>{const u=(await o()??[]).find(c=>c.name===r);if(!u)throw new Error(`Tool ${r} not found`);return uo(u,i)},i}})}new Proxy({},{get(t,e){return e==="toJSON"?null:e==="forConnection"?n=>Bf({connection:n}):global[e]}});function Bf(t){return Lf(t)}function Vf(t){return{isImplementedBy:e=>{for(const n of t){const r=typeof n.name=="string"?new RegExp(`^${n.name}$`):n.name,i=e.find(s=>r.test(s.name));if(!(!i&&n.opt)&&!i)return!1}return!0}}}const qf=Q({specversion:qe("1.0").describe("CloudEvents specification version"),id:R().describe("Unique identifier for this event (UUID recommended)"),source:R().describe("Connection ID of the event publisher"),type:R().describe("Event type (e.g., 'order.created', 'user.signup')"),time:R().datetime().optional().describe("Timestamp of when the event occurred (ISO 8601)"),subject:R().optional().describe("Subject/resource identifier (e.g., order ID, user ID)"),datacontenttype:R().optional().default("application/json").describe("Content type of the data attribute"),dataschema:R().url().optional().describe("URI to the schema for the data attribute"),data:Ya().optional().describe("Event payload (any JSON value)")});Q({events:Se(qf).min(1).describe("Batch of CloudEvents to process")});const zf=Q({success:Mt().optional().describe("Whether this event was processed successfully"),error:R().optional().describe("Error message for this event"),retryAfter:_e().int().positive().optional().describe("Re-deliver this event after this many ms")});Q({success:Mt().optional().describe("Batch success - applies to events not in results"),error:R().optional().describe("Batch error message - applies to events not in results"),processedCount:_e().int().min(0).optional().describe("Number of events successfully processed"),retryAfter:_e().int().positive().optional().describe("Batch retryAfter - applies to events not in results"),results:tr(R(),zf).optional().describe("Per-event results keyed by event ID")});const Wf=Q({type:qe("string"),enum:Se(R()).optional(),description:R().optional()}),Hf=Q({type:R(),description:R(),paramsSchema:tr(R(),Wf)});Q({});Q({triggers:Se(Hf)});Q({type:R(),params:tr(R(),R()),enabled:Mt(),callbackUrl:$u().optional(),callbackToken:R().min(1).optional()});Q({success:Mt()});Q({prefix:R().optional().describe("Filter objects by prefix (e.g., 'folder/' for folder contents)"),maxKeys:_e().optional().default(1e3).describe("Maximum number of keys to return (default: 1000)"),continuationToken:R().optional().describe("Token for pagination from previous response"),delimiter:R().optional().describe("Delimiter for grouping keys (typically '/'). When set, commonPrefixes returns folder paths.")});Q({objects:Se(Q({key:R().describe("Object key/path"),size:_e().describe("Object size in bytes"),lastModified:R().describe("Last modified timestamp"),etag:R().describe("Entity tag for the object")})),nextContinuationToken:R().optional().describe("Token for fetching next page of results"),isTruncated:Mt().describe("Whether there are more results available"),commonPrefixes:Se(R()).optional().describe("Folder paths when delimiter is used (e.g., ['photos/2024/', 'photos/2025/'])")});Q({key:R().describe("Object key/path to get metadata for")});Q({contentType:R().optional().describe("MIME type of the object"),contentLength:_e().describe("Size of the object in bytes"),lastModified:R().describe("Last modified timestamp"),etag:R().describe("Entity tag for the object"),metadata:tr(R(),R()).optional().describe("Custom metadata key-value pairs")});Q({key:R().describe("Object key/path to generate URL for"),expiresIn:_e().optional().describe("URL expiration time in seconds (default: from state config or 3600)")});Q({url:R().describe("Presigned URL for downloading the object"),expiresIn:_e().describe("Expiration time in seconds that was used")});Q({key:R().describe("Object key/path for the upload"),expiresIn:_e().optional().describe("URL expiration time in seconds (default: from state config or 3600)"),contentType:R().optional().describe("MIME type for the object being uploaded")});Q({url:R().describe("Presigned URL for uploading the object"),expiresIn:_e().describe("Expiration time in seconds that was used")});Q({key:R().describe("Object key/path to delete")});Q({success:Mt().describe("Whether the deletion was successful"),key:R().describe("The key that was deleted")});Q({keys:Se(R()).max(1e3).describe("Array of object keys/paths to delete (max 1000)")});Q({deleted:Se(R()).describe("Array of successfully deleted keys"),errors:Se(Q({key:R(),message:R()})).describe("Array of errors for failed deletions")});const Kf=Q({primary:R().optional().describe("Primary brand color (hex)"),secondary:R().optional().describe("Secondary brand color (hex)"),accent:R().optional().describe("Accent / highlight color (hex)"),background:R().optional().describe("Background color (hex)"),foreground:R().optional().describe("Foreground / text color (hex)")}),Gf=Q({heading:R().optional().describe("Font family for headings"),body:R().optional().describe("Font family for body text"),code:R().optional().describe("Font family for code / monospace")}),Yf=Q({logo:R().optional().describe("Logo URL"),favicon:R().optional().describe("Favicon URL"),ogImage:R().optional().describe("Open Graph image URL")}),Jf=Q({id:R(),name:R().describe("Brand / company name"),domain:R().optional().describe("Company domain (e.g. example.com)"),colors:Kf.optional().describe("Semantic color palette"),fonts:Gf.optional().describe("Font families by role"),assets:Yf.optional().describe("Visual identity assets"),overview:R().optional().describe("Company overview / description"),tagline:R().optional().describe("Brand tagline"),tone:R().optional().describe("Tone of voice description"),metadata:tr(R(),Ya()).optional().describe("Extra design tokens and metadata")});Q({id:R().optional().describe("Brand ID. Omit to get the default brand.")});Q({});Q({items:Se(Jf)});const Zf={"@deco/llm":"LLMS","@deco/trigger":"TRIGGER","@deco/object-storage":"OBJECT_STORAGE","@deco/brand":"BRAND"};function Xf(t){if(t)return Zf[t]}function UO(t,e){const n=t.tools;if(!n||n.length===0)return!1;const r=n.map(o=>({name:o.name,inputSchema:o.inputSchema})),i=e.map(o=>({name:o.name,inputSchema:o.inputSchema,opt:o.opt}));return Vf(i).isImplementedBy(r)}const ms=N.createContext(null);function LO(t){const e=je.c(3),{children:n}=t,r=N.useContext(ms);if(!r?.tabsEl)return null;let i;return e[0]!==n||e[1]!==r.tabsEl?(i=Ja.createPortal(n,r.tabsEl),e[0]=n,e[1]=r.tabsEl,e[2]=i):i=e[2],i}function Qf(t){const e=je.c(3),{children:n}=t,r=N.useContext(ms);if(!r?.actionsEl)return null;let i;return e[0]!==n||e[1]!==r.actionsEl?(i=Ja.createPortal(n,r.actionsEl),e[0]=n,e[1]=r.actionsEl,e[2]=i):i=e[2],i}const BO=Qf;function VO(t){const e=je.c(21),{children:n,breadcrumb:r,hideHeader:i}=t;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={leftEl:null,tabsEl:null,actionsEl:null},e[0]=s):s=e[0];const[o,a]=N.useState(s),l=N.useRef(null),u=N.useRef(null),c=N.useRef(null);let d;e[1]===Symbol.for("react.memo_cache_sentinel")?(d=C=>{l.current=C,C&&a(_=>_.leftEl===C?_:{..._,leftEl:C})},e[1]=d):d=e[1];const h=d;let y;e[2]===Symbol.for("react.memo_cache_sentinel")?(y=C=>{u.current=C,C&&a(_=>_.tabsEl===C?_:{..._,tabsEl:C})},e[2]=y):y=e[2];const f=y;let p;e[3]===Symbol.for("react.memo_cache_sentinel")?(p=C=>{c.current=C,C&&a(_=>_.actionsEl===C?_:{..._,actionsEl:C})},e[3]=p):p=e[3];const b=p,v=i&&"hidden";let S;e[4]!==v?(S=Mr(v),e[4]=v,e[5]=S):S=e[5];let E;e[6]===Symbol.for("react.memo_cache_sentinel")?(E=m.jsx("div",{ref:h,className:"flex items-center gap-2 min-w-0"}),e[6]=E):E=e[6];let j;e[7]!==r?(j=m.jsxs(En.Header.Left,{children:[r,E]}),e[7]=r,e[8]=j):j=e[8];let g;e[9]===Symbol.for("react.memo_cache_sentinel")?(g=m.jsxs(En.Header.Right,{children:[m.jsx("div",{ref:f,className:"flex items-center gap-2 overflow-x-auto min-w-0"}),m.jsx("div",{ref:b,className:"flex items-center gap-2 shrink-0"})]}),e[9]=g):g=e[9];let x;e[10]!==S||e[11]!==j?(x=m.jsxs(En.Header,{className:S,children:[j,g]}),e[10]=S,e[11]=j,e[12]=x):x=e[12];let w;e[13]!==n?(w=m.jsx(En.Content,{children:n}),e[13]=n,e[14]=w):w=e[14];let O;e[15]!==x||e[16]!==w?(O=m.jsxs(En,{children:[x,w]}),e[15]=x,e[16]=w,e[17]=O):O=e[17];let A;return e[18]!==o||e[19]!==O?(A=m.jsx(ms,{value:o,children:O}),e[18]=o,e[19]=O,e[20]=A):A=e[20],A}function em(t){return t.startsWith("@")?t:`@${t}`}function tm(){const{org:t}=ls(),{data:e}=Du.useSession(),n=ld(),r=pd(),i=gd(),s=r.filter(a=>i(a.id));return{installByBinding:async a=>{if(!t||!e?.user?.id){xr.error("Not authenticated");return}const l=em(a),c=(await Promise.all(s.map(async p=>{const b=dd(p.id,t.id);try{const v=await fd(p.id,t.id,t.slug,b,{where:{appName:l}});return md(v??[])[0]??null}catch{return null}}))).find(p=>p!==null);if(!c){xr.error(`MCP Server not found in registry: ${a}`);return}const d=hd(c,t.id,e.user.id),h=d.connection_type==="STDIO",y=!!d.connection_url,f=h&&d.connection_headers&&typeof d.connection_headers=="object"&&"command"in d.connection_headers;if(!y&&!f){xr.error("This MCP Server cannot be connected: no connection method available");return}return await n.create.mutateAsync(d),{id:d.id,connection:d}},isInstalling:n.create.isPending}}function q(t){return typeof t!="object"||t===null||typeof t.lastModified=="number"&&typeof File<"u"&&t instanceof File||typeof t.getMonth=="function"&&typeof Date<"u"&&t instanceof Date?!1:!Array.isArray(t)}function nm(t){return t.additionalItems===!0&&console.warn("additionalItems=true is currently not supported"),q(t.additionalItems)}function fo(t){if(t==="")return;if(t===null)return null;if(/\.$/.test(t)||/\.0$/.test(t)||/\.\d*0$/.test(t))return t;const e=Number(t);return typeof e=="number"&&!Number.isNaN(e)?e:t}const ot="__additional_property",en="additionalProperties",jt="allOf",ee="anyOf",Ne="const",Ft="default",hs="dependencies",rm="enum",Ae="__errors",de="$id",ps="if",on="items",im="_$junk_option_schema_id$_",wr="$name",W="oneOf",Bi="patternProperties",se="properties",ii="readonly",il="required",Pr="submitButtonOptions",ue="$ref",Ln="__rjsf_ref",$n="$schema",sl="root",ol="_",sm=["discriminator","propertyName"],mo="formContext",om="layoutGridLookupMap",gs="__rjsf_additionalProperties",al="__rjsf_rootSchema",am="ui:field",ys="ui:widget",xt="ui:options",Vi="ui:globalOptions",lm="ui:definitions",cm="https://json-schema.org/draft/2019-09/schema",jr="https://json-schema.org/draft/2020-12/schema";function B(t={},e={}){return t?Object.keys(t).filter(n=>n.startsWith("ui:")).reduce((n,r)=>{const i=t[r];return r===ys&&q(i)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),n):r===xt&&q(i)?{...n,...i}:{...n,[r.substring(3)]:i}},{...e}):{...e}}function ll(t,e={},n){if(!(t.additionalProperties||t.patternProperties))return!1;const{expandable:r=!0}=B(e);return r===!1?r:t.maxProperties!==void 0&&n?Object.keys(n).length<t.maxProperties:!0}var cl=typeof global=="object"&&global&&global.Object===Object&&global,um=typeof self=="object"&&self&&self.Object===Object&&self,nt=cl||um||Function("return this")(),Me=nt.Symbol,ul=Object.prototype,dm=ul.hasOwnProperty,fm=ul.toString,Cn=Me?Me.toStringTag:void 0;function mm(t){var e=dm.call(t,Cn),n=t[Cn];try{t[Cn]=void 0;var r=!0}catch{}var i=fm.call(t);return r&&(e?t[Cn]=n:delete t[Cn]),i}var hm=Object.prototype,pm=hm.toString;function gm(t){return pm.call(t)}var ym="[object Null]",bm="[object Undefined]",ho=Me?Me.toStringTag:void 0;function lt(t){return t==null?t===void 0?bm:ym:ho&&ho in Object(t)?mm(t):gm(t)}function dl(t,e){return function(n){return t(e(n))}}var Lr=dl(Object.getPrototypeOf,Object);function Ue(t){return t!=null&&typeof t=="object"}var xm="[object Object]",vm=Function.prototype,Sm=Object.prototype,fl=vm.toString,wm=Sm.hasOwnProperty,jm=fl.call(Object);function Ot(t){if(!Ue(t)||lt(t)!=xm)return!1;var e=Lr(t);if(e===null)return!0;var n=wm.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&fl.call(n)==jm}function qi(t){const e={[Ae]:[],addError(n){this[Ae].push(n)}};if(Array.isArray(t))return t.reduce((n,r,i)=>({...n,[i]:qi(r)}),e);if(Ot(t)){const n=t;return Object.keys(n).reduce((r,i)=>({...r,[i]:qi(n[i])}),e)}return e}var we=Array.isArray,Om="[object Symbol]";function rr(t){return typeof t=="symbol"||Ue(t)&&lt(t)==Om}var Em=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Am=/^\w*$/;function bs(t,e){if(we(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||rr(t)?!0:Am.test(t)||!Em.test(t)||e!=null&&t in Object(e)}function ne(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Cm="[object AsyncFunction]",_m="[object Function]",Im="[object GeneratorFunction]",Tm="[object Proxy]";function ir(t){if(!ne(t))return!1;var e=lt(t);return e==_m||e==Im||e==Cm||e==Tm}var si=nt["__core-js_shared__"],po=(function(){var t=/[^.]+$/.exec(si&&si.keys&&si.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function Nm(t){return!!po&&po in t}var Pm=Function.prototype,Fm=Pm.toString;function Lt(t){if(t!=null){try{return Fm.call(t)}catch{}try{return t+""}catch{}}return""}var $m=/[\\^$.*+?()[\]{}|]/g,Dm=/^\[object .+?Constructor\]$/,Rm=Function.prototype,km=Object.prototype,Mm=Rm.toString,Um=km.hasOwnProperty,Lm=RegExp("^"+Mm.call(Um).replace($m,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Bm(t){if(!ne(t)||Nm(t))return!1;var e=ir(t)?Lm:Dm;return e.test(Lt(t))}function Vm(t,e){return t?.[e]}function Bt(t,e){var n=Vm(t,e);return Bm(n)?n:void 0}var Gn=Bt(Object,"create");function qm(){this.__data__=Gn?Gn(null):{},this.size=0}function zm(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Wm="__lodash_hash_undefined__",Hm=Object.prototype,Km=Hm.hasOwnProperty;function Gm(t){var e=this.__data__;if(Gn){var n=e[t];return n===Wm?void 0:n}return Km.call(e,t)?e[t]:void 0}var Ym=Object.prototype,Jm=Ym.hasOwnProperty;function Zm(t){var e=this.__data__;return Gn?e[t]!==void 0:Jm.call(e,t)}var Xm="__lodash_hash_undefined__";function Qm(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Gn&&e===void 0?Xm:e,this}function $t(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}$t.prototype.clear=qm;$t.prototype.delete=zm;$t.prototype.get=Gm;$t.prototype.has=Zm;$t.prototype.set=Qm;function eh(){this.__data__=[],this.size=0}function sr(t,e){return t===e||t!==t&&e!==e}function Br(t,e){for(var n=t.length;n--;)if(sr(t[n][0],e))return n;return-1}var th=Array.prototype,nh=th.splice;function rh(t){var e=this.__data__,n=Br(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():nh.call(e,n,1),--this.size,!0}function ih(t){var e=this.__data__,n=Br(e,t);return n<0?void 0:e[n][1]}function sh(t){return Br(this.__data__,t)>-1}function oh(t,e){var n=this.__data__,r=Br(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function ct(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}ct.prototype.clear=eh;ct.prototype.delete=rh;ct.prototype.get=ih;ct.prototype.has=sh;ct.prototype.set=oh;var Yn=Bt(nt,"Map");function ah(){this.size=0,this.__data__={hash:new $t,map:new(Yn||ct),string:new $t}}function lh(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Vr(t,e){var n=t.__data__;return lh(e)?n[typeof e=="string"?"string":"hash"]:n.map}function ch(t){var e=Vr(this,t).delete(t);return this.size-=e?1:0,e}function uh(t){return Vr(this,t).get(t)}function dh(t){return Vr(this,t).has(t)}function fh(t,e){var n=Vr(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function ut(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}ut.prototype.clear=ah;ut.prototype.delete=ch;ut.prototype.get=uh;ut.prototype.has=dh;ut.prototype.set=fh;var mh="Expected a function";function xs(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(mh);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var o=t.apply(this,r);return n.cache=s.set(i,o)||s,o};return n.cache=new(xs.Cache||ut),n}xs.Cache=ut;var hh=500;function ph(t){var e=xs(t,function(r){return n.size===hh&&n.clear(),r}),n=e.cache;return e}var gh=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yh=/\\(\\)?/g,ml=ph(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(gh,function(n,r,i,s){e.push(i?s.replace(yh,"$1"):r||n)}),e});function gn(t,e){for(var n=-1,r=t==null?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}var go=Me?Me.prototype:void 0,yo=go?go.toString:void 0;function hl(t){if(typeof t=="string")return t;if(we(t))return gn(t,hl)+"";if(rr(t))return yo?yo.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function vs(t){return t==null?"":hl(t)}function yn(t,e){return we(t)?t:bs(t,e)?[t]:ml(vs(t))}function Et(t){if(typeof t=="string"||rr(t))return t;var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function qr(t,e){e=yn(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[Et(e[n++])];return n&&n==r?t:void 0}function D(t,e,n){var r=t==null?void 0:qr(t,e);return r===void 0?n:r}const{getOwnPropertyNames:bh,getOwnPropertySymbols:xh}=Object,{hasOwnProperty:vh}=Object.prototype;function oi(t,e){return function(r,i,s){return t(r,i,s)&&e(r,i,s)}}function hr(t){return function(n,r,i){if(!n||!r||typeof n!="object"||typeof r!="object")return t(n,r,i);const{cache:s}=i,o=s.get(n),a=s.get(r);if(o&&a)return o===r&&a===n;s.set(n,r),s.set(r,n);const l=t(n,r,i);return s.delete(n),s.delete(r),l}}function bo(t){return bh(t).concat(xh(t))}const Sh=Object.hasOwn||((t,e)=>vh.call(t,e)),wh="__v",jh="__o",Oh="_owner",{getOwnPropertyDescriptor:xo,keys:vo}=Object,Vt=Object.is||function(e,n){return e===n?e!==0||1/e===1/n:e!==e&&n!==n};function Eh(t,e){return t===e}function Ah(t,e){return t.byteLength===e.byteLength&&Fr(new Uint8Array(t),new Uint8Array(e))}function Ch(t,e,n){let r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(!n.equals(t[r],e[r],r,r,t,e,n))return!1;return!0}function _h(t,e){return t.byteLength===e.byteLength&&Fr(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}function Ih(t,e){return Vt(t.getTime(),e.getTime())}function Th(t,e){return t.name===e.name&&t.message===e.message&&t.cause===e.cause&&t.stack===e.stack}function So(t,e,n){const r=t.size;if(r!==e.size)return!1;if(!r)return!0;const i=new Array(r),s=t.entries();let o,a,l=0;for(;(o=s.next())&&!o.done;){const u=e.entries();let c=!1,d=0;for(;(a=u.next())&&!a.done;){if(i[d]){d++;continue}const h=o.value,y=a.value;if(n.equals(h[0],y[0],l,d,t,e,n)&&n.equals(h[1],y[1],h[0],y[0],t,e,n)){c=i[d]=!0;break}d++}if(!c)return!1;l++}return!0}function Nh(t,e,n){const r=vo(t);let i=r.length;if(vo(e).length!==i)return!1;for(;i-- >0;)if(!pl(t,e,n,r[i]))return!1;return!0}function _n(t,e,n){const r=bo(t);let i=r.length;if(bo(e).length!==i)return!1;let s,o,a;for(;i-- >0;)if(s=r[i],!pl(t,e,n,s)||(o=xo(t,s),a=xo(e,s),(o||a)&&(!o||!a||o.configurable!==a.configurable||o.enumerable!==a.enumerable||o.writable!==a.writable)))return!1;return!0}function Ph(t,e){return Vt(t.valueOf(),e.valueOf())}function Fh(t,e){return t.source===e.source&&t.flags===e.flags}function wo(t,e,n){const r=t.size;if(r!==e.size)return!1;if(!r)return!0;const i=new Array(r),s=t.values();let o,a;for(;(o=s.next())&&!o.done;){const l=e.values();let u=!1,c=0;for(;(a=l.next())&&!a.done;){if(!i[c]&&n.equals(o.value,a.value,o.value,a.value,t,e,n)){u=i[c]=!0;break}c++}if(!u)return!1}return!0}function Fr(t,e){let n=t.byteLength;if(e.byteLength!==n||t.byteOffset!==e.byteOffset)return!1;for(;n-- >0;)if(t[n]!==e[n])return!1;return!0}function $h(t,e){return t.hostname===e.hostname&&t.pathname===e.pathname&&t.protocol===e.protocol&&t.port===e.port&&t.hash===e.hash&&t.username===e.username&&t.password===e.password}function pl(t,e,n,r){return(r===Oh||r===jh||r===wh)&&(t.$$typeof||e.$$typeof)?!0:Sh(e,r)&&n.equals(t[r],e[r],r,r,t,e,n)}const Dh=Object.prototype.toString;function Rh(t){const e=Lh(t),{areArraysEqual:n,areDatesEqual:r,areFunctionsEqual:i,areMapsEqual:s,areNumbersEqual:o,areObjectsEqual:a,areRegExpsEqual:l,areSetsEqual:u,getUnsupportedCustomComparator:c}=t;return function(h,y,f){if(h===y)return!0;if(h==null||y==null)return!1;const p=typeof h;if(p!==typeof y)return!1;if(p!=="object")return p==="number"||p==="bigint"?o(h,y,f):p==="function"?i(h,y,f):!1;const b=h.constructor;if(b!==y.constructor)return!1;if(b===Object)return a(h,y,f);if(b===Array)return n(h,y,f);if(b===Date)return r(h,y,f);if(b===RegExp)return l(h,y,f);if(b===Map)return s(h,y,f);if(b===Set)return u(h,y,f);if(b===Promise)return!1;if(Array.isArray(h))return n(h,y,f);const v=Dh.call(h),S=e[v];if(S)return S(h,y,f);const E=c&&c(h,y,f,v);return E?E(h,y,f):!1}}function kh({circular:t,createCustomConfig:e,strict:n}){let r={areArrayBuffersEqual:Ah,areArraysEqual:n?_n:Ch,areDataViewsEqual:_h,areDatesEqual:Ih,areErrorsEqual:Th,areFunctionsEqual:Eh,areMapsEqual:n?oi(So,_n):So,areNumbersEqual:Vt,areObjectsEqual:n?_n:Nh,arePrimitiveWrappersEqual:Ph,areRegExpsEqual:Fh,areSetsEqual:n?oi(wo,_n):wo,areTypedArraysEqual:n?oi(Fr,_n):Fr,areUrlsEqual:$h,getUnsupportedCustomComparator:void 0};if(e&&(r=Object.assign({},r,e(r))),t){const i=hr(r.areArraysEqual),s=hr(r.areMapsEqual),o=hr(r.areObjectsEqual),a=hr(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:i,areMapsEqual:s,areObjectsEqual:o,areSetsEqual:a})}return r}function Mh(t){return function(e,n,r,i,s,o,a){return t(e,n,a)}}function Uh({circular:t,comparator:e,createState:n,equals:r,strict:i}){if(n)return function(a,l){const{cache:u=t?new WeakMap:void 0,meta:c}=n();return e(a,l,{cache:u,equals:r,meta:c,strict:i})};if(t)return function(a,l){return e(a,l,{cache:new WeakMap,equals:r,meta:void 0,strict:i})};const s={cache:void 0,equals:r,meta:void 0,strict:i};return function(a,l){return e(a,l,s)}}function Lh({areArrayBuffersEqual:t,areArraysEqual:e,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:i,areFunctionsEqual:s,areMapsEqual:o,areNumbersEqual:a,areObjectsEqual:l,arePrimitiveWrappersEqual:u,areRegExpsEqual:c,areSetsEqual:d,areTypedArraysEqual:h,areUrlsEqual:y}){return{"[object Arguments]":l,"[object Array]":e,"[object ArrayBuffer]":t,"[object AsyncGeneratorFunction]":s,"[object BigInt]":a,"[object BigInt64Array]":h,"[object BigUint64Array]":h,"[object Boolean]":u,"[object DataView]":n,"[object Date]":r,"[object Error]":i,"[object Float16Array]":h,"[object Float32Array]":h,"[object Float64Array]":h,"[object Function]":s,"[object GeneratorFunction]":s,"[object Int8Array]":h,"[object Int16Array]":h,"[object Int32Array]":h,"[object Map]":o,"[object Number]":u,"[object Object]":(f,p,b)=>typeof f.then!="function"&&typeof p.then!="function"&&l(f,p,b),"[object RegExp]":c,"[object Set]":d,"[object String]":u,"[object URL]":y,"[object Uint8Array]":h,"[object Uint8ClampedArray]":h,"[object Uint16Array]":h,"[object Uint32Array]":h}}dt();dt({strict:!0});dt({circular:!0});dt({circular:!0,strict:!0});dt({createInternalComparator:()=>Vt});dt({strict:!0,createInternalComparator:()=>Vt});dt({circular:!0,createInternalComparator:()=>Vt});dt({circular:!0,createInternalComparator:()=>Vt,strict:!0});function dt(t={}){const{circular:e=!1,createInternalComparator:n,createState:r,strict:i=!1}=t,s=kh(t),o=Rh(s),a=n?n(o):Mh(o);return Uh({circular:e,comparator:o,createState:r,equals:a,strict:i})}const ie=dt({circular:!0,createCustomConfig:()=>({areFunctionsEqual(t,e){return typeof e=="function"}})});var In={exports:{}},ai,jo;function gl(){if(jo)return ai;jo=1;const t=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),e=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),n=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),r=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),i=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function s(g){let x="",w=0,O=0;for(O=0;O<g.length;O++)if(w=g[O].charCodeAt(0),w!==48){if(!(w>=48&&w<=57||w>=65&&w<=70||w>=97&&w<=102))return"";x+=g[O];break}for(O+=1;O<g.length;O++){if(w=g[O].charCodeAt(0),!(w>=48&&w<=57||w>=65&&w<=70||w>=97&&w<=102))return"";x+=g[O]}return x}const o=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function a(g){return g.length=0,!0}function l(g,x,w){if(g.length){const O=s(g);if(O!=="")x.push(O);else return w.error=!0,!1;g.length=0}return!0}function u(g){let x=0;const w={error:!1,address:"",zone:""},O=[],A=[];let C=!1,_=!1,I=l;for(let T=0;T<g.length;T++){const F=g[T];if(!(F==="["||F==="]"))if(F===":"){if(C===!0&&(_=!0),!I(A,O,w))break;if(++x>7){w.error=!0;break}T>0&&g[T-1]===":"&&(C=!0),O.push(":");continue}else if(F==="%"){if(!I(A,O,w))break;I=a}else{A.push(F);continue}}return A.length&&(I===a?w.zone=A.join(""):_?O.push(A.join("")):O.push(s(A))),w.address=O.join(""),w}function c(g){if(d(g,":")<2)return{host:g,isIPV6:!1};const x=u(g);if(x.error)return{host:g,isIPV6:!1};{let w=x.address,O=x.address;return x.zone&&(w+="%"+x.zone,O+="%25"+x.zone),{host:w,isIPV6:!0,escapedHost:O}}}function d(g,x){let w=0;for(let O=0;O<g.length;O++)g[O]===x&&w++;return w}function h(g){let x=g;const w=[];let O=-1,A=0;for(;A=x.length;){if(A===1){if(x===".")break;if(x==="/"){w.push("/");break}else{w.push(x);break}}else if(A===2){if(x[0]==="."){if(x[1]===".")break;if(x[1]==="/"){x=x.slice(2);continue}}else if(x[0]==="/"&&(x[1]==="."||x[1]==="/")){w.push("/");break}}else if(A===3&&x==="/.."){w.length!==0&&w.pop(),w.push("/");break}if(x[0]==="."){if(x[1]==="."){if(x[2]==="/"){x=x.slice(3);continue}}else if(x[1]==="/"){x=x.slice(2);continue}}else if(x[0]==="/"&&x[1]==="."){if(x[2]==="/"){x=x.slice(2);continue}else if(x[2]==="."&&x[3]==="/"){x=x.slice(3),w.length!==0&&w.pop();continue}}if((O=x.indexOf("/",1))===-1){w.push(x);break}else w.push(x.slice(0,O)),x=x.slice(O)}return w.join("")}const y={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},f=/[@/?#:]/g,p=/[@/?#]/g;function b(g,x){const w=x?p:f;return w.lastIndex=0,g.replace(w,O=>y[O])}function v(g,x=!1){if(g.indexOf("%")===-1)return g;let w="";for(let O=0;O<g.length;O++){if(g[O]==="%"&&O+2<g.length){const A=g.slice(O+1,O+3);if(n(A)){const C=A.toUpperCase(),_=String.fromCharCode(parseInt(C,16));x&&r(_)?w+=_:w+="%"+C,O+=2;continue}}w+=g[O]}return w}function S(g){let x="";for(let w=0;w<g.length;w++){if(g[w]==="%"&&w+2<g.length){const O=g.slice(w+1,w+3);if(n(O)){const A=O.toUpperCase(),C=String.fromCharCode(parseInt(A,16));C!=="."&&r(C)?x+=C:x+="%"+A,w+=2;continue}}i(g[w])?x+=g[w]:x+=escape(g[w])}return x}function E(g){let x="";for(let w=0;w<g.length;w++){if(g[w]==="%"&&w+2<g.length){const O=g.slice(w+1,w+3);if(n(O)){x+="%"+O.toUpperCase(),w+=2;continue}}x+=escape(g[w])}return x}function j(g){const x=[];if(g.userinfo!==void 0&&(x.push(g.userinfo),x.push("@")),g.host!==void 0){let w=unescape(g.host);if(!e(w)){const O=c(w);O.isIPV6===!0?w=`[${O.escapedHost}]`:w=b(w,!1)}x.push(w)}return(typeof g.port=="number"||typeof g.port=="string")&&(x.push(":"),x.push(String(g.port))),x.length?x.join(""):void 0}return ai={nonSimpleDomain:o,recomposeAuthority:j,reescapeHostDelimiters:b,normalizePercentEncoding:v,normalizePathEncoding:S,escapePreservingEscapes:E,removeDotSegments:h,isIPv4:e,isUUID:t,normalizeIPv6:c,stringArrayToHexStripped:s},ai}var li,Oo;function Bh(){if(Oo)return li;Oo=1;const{isUUID:t}=gl(),e=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,n=["http","https","ws","wss","urn","urn:uuid"];function r(g){return n.indexOf(g)!==-1}function i(g){return g.secure===!0?!0:g.secure===!1?!1:g.scheme?g.scheme.length===3&&(g.scheme[0]==="w"||g.scheme[0]==="W")&&(g.scheme[1]==="s"||g.scheme[1]==="S")&&(g.scheme[2]==="s"||g.scheme[2]==="S"):!1}function s(g){return g.host||(g.error=g.error||"HTTP URIs must have a host."),g}function o(g){const x=String(g.scheme).toLowerCase()==="https";return(g.port===(x?443:80)||g.port==="")&&(g.port=void 0),g.path||(g.path="/"),g}function a(g){return g.secure=i(g),g.resourceName=(g.path||"/")+(g.query?"?"+g.query:""),g.path=void 0,g.query=void 0,g}function l(g){if((g.port===(i(g)?443:80)||g.port==="")&&(g.port=void 0),typeof g.secure=="boolean"&&(g.scheme=g.secure?"wss":"ws",g.secure=void 0),g.resourceName){const[x,w]=g.resourceName.split("?");g.path=x&&x!=="/"?x:void 0,g.query=w,g.resourceName=void 0}return g.fragment=void 0,g}function u(g,x){if(!g.path)return g.error="URN can not be parsed",g;const w=g.path.match(e);if(w){const O=x.scheme||g.scheme||"urn";g.nid=w[1].toLowerCase(),g.nss=w[2];const A=`${O}:${x.nid||g.nid}`,C=j(A);g.path=void 0,C&&(g=C.parse(g,x))}else g.error=g.error||"URN can not be parsed.";return g}function c(g,x){if(g.nid===void 0)throw new Error("URN without nid cannot be serialized");const w=x.scheme||g.scheme||"urn",O=g.nid.toLowerCase(),A=`${w}:${x.nid||O}`,C=j(A);C&&(g=C.serialize(g,x));const _=g,I=g.nss;return _.path=`${O||x.nid}:${I}`,x.skipEscape=!0,_}function d(g,x){const w=g;return w.uuid=w.nss,w.nss=void 0,!x.tolerant&&(!w.uuid||!t(w.uuid))&&(w.error=w.error||"UUID is not valid."),w}function h(g){const x=g;return x.nss=(g.uuid||"").toLowerCase(),x}const y={scheme:"http",domainHost:!0,parse:s,serialize:o},f={scheme:"https",domainHost:y.domainHost,parse:s,serialize:o},p={scheme:"ws",domainHost:!0,parse:a,serialize:l},b={scheme:"wss",domainHost:p.domainHost,parse:p.parse,serialize:p.serialize},E={http:y,https:f,ws:p,wss:b,urn:{scheme:"urn",parse:u,serialize:c,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:d,serialize:h,skipNormalize:!0}};Object.setPrototypeOf(E,null);function j(g){return g&&(E[g]||E[g.toLowerCase()])||void 0}return li={wsIsSecure:i,SCHEMES:E,isValidSchemeName:r,getSchemeHandler:j},li}var Eo;function Vh(){if(Eo)return In.exports;Eo=1;const{normalizeIPv6:t,removeDotSegments:e,recomposeAuthority:n,normalizePercentEncoding:r,normalizePathEncoding:i,escapePreservingEscapes:s,reescapeHostDelimiters:o,isIPv4:a,nonSimpleDomain:l}=gl(),{SCHEMES:u,getSchemeHandler:c}=Bh();function d(O,A){return typeof O=="string"?O=j(O,A):typeof O=="object"&&(O=E(p(O,A),A)),O}function h(O,A,C){const _=C?Object.assign({scheme:"null"},C):{scheme:"null"},I=y(E(O,_),E(A,_),_,!0);return _.skipEscape=!0,p(I,_)}function y(O,A,C,_){const I={};return _||(O=E(p(O,C),C),A=E(p(A,C),C)),C=C||{},!C.tolerant&&A.scheme?(I.scheme=A.scheme,I.userinfo=A.userinfo,I.host=A.host,I.port=A.port,I.path=e(A.path||""),I.query=A.query):(A.userinfo!==void 0||A.host!==void 0||A.port!==void 0?(I.userinfo=A.userinfo,I.host=A.host,I.port=A.port,I.path=e(A.path||""),I.query=A.query):(A.path?(A.path[0]==="/"?I.path=e(A.path):((O.userinfo!==void 0||O.host!==void 0||O.port!==void 0)&&!O.path?I.path="/"+A.path:O.path?I.path=O.path.slice(0,O.path.lastIndexOf("/")+1)+A.path:I.path=A.path,I.path=e(I.path)),I.query=A.query):(I.path=O.path,A.query!==void 0?I.query=A.query:I.query=O.query),I.userinfo=O.userinfo,I.host=O.host,I.port=O.port),I.scheme=O.scheme),I.fragment=A.fragment,I}function f(O,A,C){const _=x(O,C),I=x(A,C);return _!==void 0&&I!==void 0&&_.toLowerCase()===I.toLowerCase()}function p(O,A){const C={host:O.host,scheme:O.scheme,userinfo:O.userinfo,port:O.port,path:O.path,query:O.query,nid:O.nid,nss:O.nss,uuid:O.uuid,fragment:O.fragment,reference:O.reference,resourceName:O.resourceName,secure:O.secure,error:""},_=Object.assign({},A),I=[],T=c(_.scheme||C.scheme);T&&T.serialize&&T.serialize(C,_),C.path!==void 0&&(_.skipEscape?C.path=r(C.path):(C.path=s(C.path),C.scheme!==void 0&&(C.path=C.path.split("%3A").join(":")))),_.reference!=="suffix"&&C.scheme&&I.push(C.scheme,":");const F=n(C);if(F!==void 0&&(_.reference!=="suffix"&&I.push("//"),I.push(F),C.path&&C.path[0]!=="/"&&I.push("/")),C.path!==void 0){let P=C.path;!_.absolutePath&&(!T||!T.absolutePath)&&(P=e(P)),F===void 0&&P[0]==="/"&&P[1]==="/"&&(P="/%2F"+P.slice(2)),I.push(P)}return C.query!==void 0&&I.push("?",C.query),C.fragment!==void 0&&I.push("#",C.fragment),I.join("")}const b=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function v(O,A){if(A[2]!==void 0&&O.path&&O.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof O.port=="number"&&(O.port<0||O.port>65535))return"URI port is malformed."}function S(O,A){const C=Object.assign({},A),_={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let I=!1,T=!1;C.reference==="suffix"&&(C.scheme?O=C.scheme+":"+O:O="//"+O);const F=O.match(b);if(F){_.scheme=F[1],_.userinfo=F[3],_.host=F[4],_.port=parseInt(F[5],10),_.path=F[6]||"",_.query=F[7],_.fragment=F[8],isNaN(_.port)&&(_.port=F[5]);const P=v(_,F);if(P!==void 0&&(_.error=_.error||P,I=!0),_.host)if(a(_.host)===!1){const M=t(_.host);_.host=M.host.toLowerCase(),T=M.isIPV6}else T=!0;_.scheme===void 0&&_.userinfo===void 0&&_.host===void 0&&_.port===void 0&&_.query===void 0&&!_.path?_.reference="same-document":_.scheme===void 0?_.reference="relative":_.fragment===void 0?_.reference="absolute":_.reference="uri",C.reference&&C.reference!=="suffix"&&C.reference!==_.reference&&(_.error=_.error||"URI is not a "+C.reference+" reference.");const $=c(C.scheme||_.scheme);if(!C.unicodeSupport&&(!$||!$.unicodeSupport)&&_.host&&(C.domainHost||$&&$.domainHost)&&T===!1&&l(_.host))try{_.host=new URL("http://"+_.host).hostname}catch(k){_.error=_.error||"Host's domain name can not be converted to ASCII: "+k}if((!$||$&&!$.skipNormalize)&&(O.indexOf("%")!==-1&&(_.scheme!==void 0&&(_.scheme=unescape(_.scheme)),_.host!==void 0&&(_.host=o(unescape(_.host),T))),_.path&&(_.path=i(_.path)),_.fragment))try{_.fragment=encodeURI(decodeURIComponent(_.fragment))}catch{_.error=_.error||"URI malformed"}$&&$.parse&&$.parse(_,C)}else _.error=_.error||"URI can not be parsed.";return{parsed:_,malformedAuthorityOrPort:I}}function E(O,A){return S(O,A).parsed}function j(O,A){return g(O,A).normalized}function g(O,A){const{parsed:C,malformedAuthorityOrPort:_}=S(O,A);return{normalized:_?O:p(C,A),malformedAuthorityOrPort:_}}function x(O,A){if(typeof O=="string"){const{normalized:C,malformedAuthorityOrPort:_}=g(O,A);return _?void 0:C}if(typeof O=="object")return p(O,A)}const w={SCHEMES:u,normalize:d,resolve:h,resolveComponent:y,equal:f,serialize:p,parse:E};return In.exports=w,In.exports.default=w,In.exports.fastUri=w,In.exports}var qh=Vh();const Ss=cs(qh);var Tn={},Ao;function zh(){if(Ao)return Tn;Ao=1;var t=/~/,e=/~[01]/g;function n(u){switch(u){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+u)}function r(u){return t.test(u)?u.replace(e,n):u}function i(u,c,d){for(var h,y,f=1,p=c.length;f<p;){if(c[f]==="constructor"||c[f]==="prototype"||c[f]==="__proto__")return u;if(h=r(c[f++]),y=p>f,typeof u[h]>"u"&&(Array.isArray(u)&&h==="-"&&(h=u.length),y&&(c[f]!==""&&c[f]<1/0||c[f]==="-"?u[h]=[]:u[h]={})),!y)break;u=u[h]}var b=u[h];return d===void 0?delete u[h]:u[h]=d,b}function s(u){if(typeof u=="string"){if(u=u.split("/"),u[0]==="")return u;throw new Error("Invalid JSON pointer.")}else if(Array.isArray(u)){for(const c of u)if(typeof c!="string"&&typeof c!="number")throw new Error("Invalid JSON pointer. Must be of type string or number.");return u}throw new Error("Invalid JSON pointer.")}function o(u,c){if(typeof u!="object")throw new Error("Invalid input object.");c=s(c);var d=c.length;if(d===1)return u;for(var h=1;h<d;){if(u=u[r(c[h++])],d===h)return u;if(typeof u!="object"||u===null)return}}function a(u,c,d){if(typeof u!="object")throw new Error("Invalid input object.");if(c=s(c),c.length===0)throw new Error("Invalid JSON pointer for set.");return i(u,c,d)}function l(u){var c=s(u);return{get:function(d){return o(d,c)},set:function(d,h){return a(d,c,h)}}}return Tn.get=o,Tn.set=a,Tn.compile=l,Tn}var Wh=zh();const ci=cs(Wh);var Hh=Object.prototype;function zr(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||Hh;return t===n}var Kh=dl(Object.keys,Object),Gh=Object.prototype,Yh=Gh.hasOwnProperty;function yl(t){if(!zr(t))return Kh(t);var e=[];for(var n in Object(t))Yh.call(t,n)&&n!="constructor"&&e.push(n);return e}var zi=Bt(nt,"DataView"),Wi=Bt(nt,"Promise"),sn=Bt(nt,"Set"),Hi=Bt(nt,"WeakMap"),Co="[object Map]",Jh="[object Object]",_o="[object Promise]",Io="[object Set]",To="[object WeakMap]",No="[object DataView]",Zh=Lt(zi),Xh=Lt(Yn),Qh=Lt(Wi),ep=Lt(sn),tp=Lt(Hi),Re=lt;(zi&&Re(new zi(new ArrayBuffer(1)))!=No||Yn&&Re(new Yn)!=Co||Wi&&Re(Wi.resolve())!=_o||sn&&Re(new sn)!=Io||Hi&&Re(new Hi)!=To)&&(Re=function(t){var e=lt(t),n=e==Jh?t.constructor:void 0,r=n?Lt(n):"";if(r)switch(r){case Zh:return No;case Xh:return Co;case Qh:return _o;case ep:return Io;case tp:return To}return e});var np="[object Arguments]";function Po(t){return Ue(t)&&lt(t)==np}var bl=Object.prototype,rp=bl.hasOwnProperty,ip=bl.propertyIsEnumerable,an=Po((function(){return arguments})())?Po:function(t){return Ue(t)&&rp.call(t,"callee")&&!ip.call(t,"callee")},sp=9007199254740991;function ws(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=sp}function qt(t){return t!=null&&ws(t.length)&&!ir(t)}function op(){return!1}var xl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Fo=xl&&typeof module=="object"&&module&&!module.nodeType&&module,ap=Fo&&Fo.exports===xl,$o=ap?nt.Buffer:void 0,lp=$o?$o.isBuffer:void 0,Dt=lp||op,cp="[object Arguments]",up="[object Array]",dp="[object Boolean]",fp="[object Date]",mp="[object Error]",hp="[object Function]",pp="[object Map]",gp="[object Number]",yp="[object Object]",bp="[object RegExp]",xp="[object Set]",vp="[object String]",Sp="[object WeakMap]",wp="[object ArrayBuffer]",jp="[object DataView]",Op="[object Float32Array]",Ep="[object Float64Array]",Ap="[object Int8Array]",Cp="[object Int16Array]",_p="[object Int32Array]",Ip="[object Uint8Array]",Tp="[object Uint8ClampedArray]",Np="[object Uint16Array]",Pp="[object Uint32Array]",he={};he[Op]=he[Ep]=he[Ap]=he[Cp]=he[_p]=he[Ip]=he[Tp]=he[Np]=he[Pp]=!0;he[cp]=he[up]=he[wp]=he[dp]=he[jp]=he[fp]=he[mp]=he[hp]=he[pp]=he[gp]=he[yp]=he[bp]=he[xp]=he[vp]=he[Sp]=!1;function Fp(t){return Ue(t)&&ws(t.length)&&!!he[lt(t)]}function js(t){return function(e){return t(e)}}var vl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Bn=vl&&typeof module=="object"&&module&&!module.nodeType&&module,$p=Bn&&Bn.exports===vl,ui=$p&&cl.process,ln=(function(){try{var t=Bn&&Bn.require&&Bn.require("util").types;return t||ui&&ui.binding&&ui.binding("util")}catch{}})(),Do=ln&&ln.isTypedArray,or=Do?js(Do):Fp,Dp="[object Map]",Rp="[object Set]",kp=Object.prototype,Mp=kp.hasOwnProperty;function ge(t){if(t==null)return!0;if(qt(t)&&(we(t)||typeof t=="string"||typeof t.splice=="function"||Dt(t)||or(t)||an(t)))return!t.length;var e=Re(t);if(e==Dp||e==Rp)return!t.size;if(zr(t))return!yl(t).length;for(var n in t)if(Mp.call(t,n))return!1;return!0}function Up(){this.__data__=new ct,this.size=0}function Lp(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function Bp(t){return this.__data__.get(t)}function Vp(t){return this.__data__.has(t)}var qp=200;function zp(t,e){var n=this.__data__;if(n instanceof ct){var r=n.__data__;if(!Yn||r.length<qp-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new ut(r)}return n.set(t,e),this.size=n.size,this}function We(t){var e=this.__data__=new ct(t);this.size=e.size}We.prototype.clear=Up;We.prototype.delete=Lp;We.prototype.get=Bp;We.prototype.has=Vp;We.prototype.set=zp;function Os(t,e){for(var n=-1,r=t==null?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t}var $r=(function(){try{var t=Bt(Object,"defineProperty");return t({},"",{}),t}catch{}})();function Es(t,e,n){e=="__proto__"&&$r?$r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var Wp=Object.prototype,Hp=Wp.hasOwnProperty;function As(t,e,n){var r=t[e];(!(Hp.call(t,e)&&sr(r,n))||n===void 0&&!(e in t))&&Es(t,e,n)}function bn(t,e,n,r){var i=!n;n||(n={});for(var s=-1,o=e.length;++s<o;){var a=e[s],l=void 0;l===void 0&&(l=t[a]),i?Es(n,a,l):As(n,a,l)}return n}function Sl(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var Kp=9007199254740991,Gp=/^(?:0|[1-9]\d*)$/;function Wr(t,e){var n=typeof t;return e=e??Kp,!!e&&(n=="number"||n!="symbol"&&Gp.test(t))&&t>-1&&t%1==0&&t<e}var Yp=Object.prototype,Jp=Yp.hasOwnProperty;function wl(t,e){var n=we(t),r=!n&&an(t),i=!n&&!r&&Dt(t),s=!n&&!r&&!i&&or(t),o=n||r||i||s,a=o?Sl(t.length,String):[],l=a.length;for(var u in t)(e||Jp.call(t,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Wr(u,l)))&&a.push(u);return a}function ze(t){return qt(t)?wl(t):yl(t)}function Zp(t,e){return t&&bn(e,ze(e),t)}function Xp(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var Qp=Object.prototype,eg=Qp.hasOwnProperty;function tg(t){if(!ne(t))return Xp(t);var e=zr(t),n=[];for(var r in t)r=="constructor"&&(e||!eg.call(t,r))||n.push(r);return n}function ar(t){return qt(t)?wl(t,!0):tg(t)}function ng(t,e){return t&&bn(e,ar(e),t)}var jl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ro=jl&&typeof module=="object"&&module&&!module.nodeType&&module,rg=Ro&&Ro.exports===jl,ko=rg?nt.Buffer:void 0,Mo=ko?ko.allocUnsafe:void 0;function Ol(t,e){if(e)return t.slice();var n=t.length,r=Mo?Mo(n):new t.constructor(n);return t.copy(r),r}function Cs(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}function ig(t,e){for(var n=-1,r=t==null?0:t.length,i=0,s=[];++n<r;){var o=t[n];e(o,n,t)&&(s[i++]=o)}return s}function El(){return[]}var sg=Object.prototype,og=sg.propertyIsEnumerable,Uo=Object.getOwnPropertySymbols,_s=Uo?function(t){return t==null?[]:(t=Object(t),ig(Uo(t),function(e){return og.call(t,e)}))}:El;function ag(t,e){return bn(t,_s(t),e)}function Is(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var lg=Object.getOwnPropertySymbols,Al=lg?function(t){for(var e=[];t;)Is(e,_s(t)),t=Lr(t);return e}:El;function cg(t,e){return bn(t,Al(t),e)}function Cl(t,e,n){var r=e(t);return we(t)?r:Is(r,n(t))}function Ki(t){return Cl(t,ze,_s)}function Ts(t){return Cl(t,ar,Al)}var ug=Object.prototype,dg=ug.hasOwnProperty;function fg(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&dg.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var Dr=nt.Uint8Array;function Ns(t){var e=new t.constructor(t.byteLength);return new Dr(e).set(new Dr(t)),e}function mg(t,e){var n=e?Ns(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var hg=/\w*$/;function pg(t){var e=new t.constructor(t.source,hg.exec(t));return e.lastIndex=t.lastIndex,e}var Lo=Me?Me.prototype:void 0,Bo=Lo?Lo.valueOf:void 0;function gg(t){return Bo?Object(Bo.call(t)):{}}function _l(t,e){var n=e?Ns(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var yg="[object Boolean]",bg="[object Date]",xg="[object Map]",vg="[object Number]",Sg="[object RegExp]",wg="[object Set]",jg="[object String]",Og="[object Symbol]",Eg="[object ArrayBuffer]",Ag="[object DataView]",Cg="[object Float32Array]",_g="[object Float64Array]",Ig="[object Int8Array]",Tg="[object Int16Array]",Ng="[object Int32Array]",Pg="[object Uint8Array]",Fg="[object Uint8ClampedArray]",$g="[object Uint16Array]",Dg="[object Uint32Array]";function Rg(t,e,n){var r=t.constructor;switch(e){case Eg:return Ns(t);case yg:case bg:return new r(+t);case Ag:return mg(t,n);case Cg:case _g:case Ig:case Tg:case Ng:case Pg:case Fg:case $g:case Dg:return _l(t,n);case xg:return new r;case vg:case jg:return new r(t);case Sg:return pg(t);case wg:return new r;case Og:return gg(t)}}var Vo=Object.create,Il=(function(){function t(){}return function(e){if(!ne(e))return{};if(Vo)return Vo(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}})();function Tl(t){return typeof t.constructor=="function"&&!zr(t)?Il(Lr(t)):{}}var kg="[object Map]";function Mg(t){return Ue(t)&&Re(t)==kg}var qo=ln&&ln.isMap,Ug=qo?js(qo):Mg,Lg="[object Set]";function Bg(t){return Ue(t)&&Re(t)==Lg}var zo=ln&&ln.isSet,Vg=zo?js(zo):Bg,qg=1,zg=2,Wg=4,Nl="[object Arguments]",Hg="[object Array]",Kg="[object Boolean]",Gg="[object Date]",Yg="[object Error]",Pl="[object Function]",Jg="[object GeneratorFunction]",Zg="[object Map]",Xg="[object Number]",Fl="[object Object]",Qg="[object RegExp]",ey="[object Set]",ty="[object String]",ny="[object Symbol]",ry="[object WeakMap]",iy="[object ArrayBuffer]",sy="[object DataView]",oy="[object Float32Array]",ay="[object Float64Array]",ly="[object Int8Array]",cy="[object Int16Array]",uy="[object Int32Array]",dy="[object Uint8Array]",fy="[object Uint8ClampedArray]",my="[object Uint16Array]",hy="[object Uint32Array]",me={};me[Nl]=me[Hg]=me[iy]=me[sy]=me[Kg]=me[Gg]=me[oy]=me[ay]=me[ly]=me[cy]=me[uy]=me[Zg]=me[Xg]=me[Fl]=me[Qg]=me[ey]=me[ty]=me[ny]=me[dy]=me[fy]=me[my]=me[hy]=!0;me[Yg]=me[Pl]=me[ry]=!1;function Vn(t,e,n,r,i,s){var o,a=e&qg,l=e&zg,u=e&Wg;if(n&&(o=i?n(t,r,i,s):n(t)),o!==void 0)return o;if(!ne(t))return t;var c=we(t);if(c){if(o=fg(t),!a)return Cs(t,o)}else{var d=Re(t),h=d==Pl||d==Jg;if(Dt(t))return Ol(t,a);if(d==Fl||d==Nl||h&&!i){if(o=l||h?{}:Tl(t),!a)return l?cg(t,ng(o,t)):ag(t,Zp(o,t))}else{if(!me[d])return i?t:{};o=Rg(t,d,a)}}s||(s=new We);var y=s.get(t);if(y)return y;s.set(t,o),Vg(t)?t.forEach(function(b){o.add(Vn(b,e,n,b,t,s))}):Ug(t)&&t.forEach(function(b,v){o.set(v,Vn(b,e,n,v,t,s))});var f=u?l?Ts:Ki:l?ar:ze,p=c?void 0:f(t);return Os(p||t,function(b,v){p&&(v=b,b=t[v]),As(o,v,Vn(b,e,n,v,t,s))}),o}function $l(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}function py(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var s=Array(i);++r<i;)s[r]=t[r+e];return s}function gy(t,e){return e.length<2?t:qr(t,py(e,0,-1))}var yy=Object.prototype,by=yy.hasOwnProperty;function Dl(t,e){e=yn(e,t);var n=-1,r=e.length;if(!r)return!0;for(;++n<r;){var i=Et(e[n]);if(i==="__proto__"&&!by.call(t,"__proto__")||(i==="constructor"||i==="prototype")&&n<r-1)return!1}var s=gy(t,e);return s==null||delete s[Et($l(e))]}function xy(t){return Ot(t)?void 0:t}var Wo=Me?Me.isConcatSpreadable:void 0;function vy(t){return we(t)||an(t)||!!(Wo&&t&&t[Wo])}function lr(t,e,n,r,i){var s=-1,o=t.length;for(n||(n=vy),i||(i=[]);++s<o;){var a=t[s];e>0&&n(a)?e>1?lr(a,e-1,n,r,i):Is(i,a):r||(i[i.length]=a)}return i}function Gi(t){var e=t==null?0:t.length;return e?lr(t,1):[]}function Sy(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var Ho=Math.max;function Rl(t,e,n){return e=Ho(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,s=Ho(r.length-e,0),o=Array(s);++i<s;)o[i]=r[e+i];i=-1;for(var a=Array(e+1);++i<e;)a[i]=r[i];return a[e]=n(o),Sy(t,this,a)}}function wy(t){return function(){return t}}function Hr(t){return t}var jy=$r?function(t,e){return $r(t,"toString",{configurable:!0,enumerable:!1,value:wy(e),writable:!0})}:Hr,Oy=800,Ey=16,Ay=Date.now;function Cy(t){var e=0,n=0;return function(){var r=Ay(),i=Ey-(r-n);if(n=r,i>0){if(++e>=Oy)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var kl=Cy(jy);function Ml(t){return kl(Rl(t,void 0,Gi),t+"")}var _y=1,Iy=2,Ty=4,cn=Ml(function(t,e){var n={};if(t==null)return n;var r=!1;e=gn(e,function(s){return s=yn(s,t),r||(r=s.length>1),s}),bn(t,Ts(t),n),r&&(n=Vn(n,_y|Iy|Ty,xy));for(var i=e.length;i--;)Dl(n,e[i]);return n});function Rr(t,e){if(de in t&&Ss.equal(t[de],e))return t;for(const n of Object.values(t))if(Array.isArray(n)){for(const r of n)if(ne(r)){const i=Rr(r,e);if(i!==void 0)return i}}else if(ne(n)){const r=Rr(n,e);if(r!==void 0)return r}}function Yi(t,e){const n=D(t,de,e);let r=t;ue in r&&(r={...r,[ue]:Ss.resolve(n,r[ue])});for(const[i,s]of Object.entries(r))Array.isArray(s)?r={...r,[i]:s.map(o=>ne(o)?Yi(o,n):o)}:ne(s)&&(r={...r,[i]:Yi(s,n)});return r}function Ps(t,e){const n=e[t];return[cn(e,[t]),n]}function Ul(t,e={},n=[],r=D(e,[de])){const i=t||"";let s,o=r;if(i.startsWith("#")){const l=decodeURIComponent(i.substring(1));o===void 0||de in e&&e[de]===o?s=ci.get(e,l):e[$n]===jr&&(s=Rr(e,o.replace(/\/$/,"")),s!==void 0&&(s=ci.get(s,l)))}else if(e[$n]===jr){const l=o?Ss.resolve(o,i):i,[u,...c]=l.replace(/#\/?$/,"").split("#");s=Rr(e,u.replace(/\/$/,"")),s!==void 0&&(o=s[de],ge(c)||(s=ci.get(s,decodeURIComponent(c.join("#")))))}if(s===void 0)throw new Error(`Could not find a definition for ${t}.`);const a=s[ue];if(a){if(n.includes(a)){if(n.length===1)throw new Error(`Definition for ${t} is a circular reference`);const[d,...h]=n,y=[...h,i,d].join(" -> ");throw new Error(`Definition for ${d} contains a circular reference through ${y}`)}const[l,u]=Ps(ue,s),c=Ul(u,e,[...n,i],o);return Object.keys(l).length>0?e[$n]===cm||e[$n]===jr?{[jt]:[l,c]}:{...l,...c}:c}return s}function Jn(t,e={},n=D(e,[de])){return Ul(t,e,[],n)}var Ny=Object.prototype,Py=Ny.hasOwnProperty;function Fy(t,e){return t!=null&&Py.call(t,e)}function Ll(t,e,n){e=yn(e,t);for(var r=-1,i=e.length,s=!1;++r<i;){var o=Et(e[r]);if(!(s=t!=null&&n(t,o)))break;t=t[o]}return s||++r!=i?s:(i=t==null?0:t.length,!!i&&ws(i)&&Wr(o,i)&&(we(t)||an(t)))}function X(t,e){return t!=null&&Ll(t,e,Fy)}var $y="[object String]";function At(t){return typeof t=="string"||!we(t)&&Ue(t)&&lt(t)==$y}function He(t){let e;const n=D(t,sm);return At(n)?e=n:n!==void 0&&console.warn(`Expecting discriminator to be a string, got "${typeof n}" instead`),e}var Dy=1/0;function Ry(t){var e=t==null?0:t.length;return e?lr(t,Dy):[]}function Ji(t,e,n){(n!==void 0&&!sr(t[e],n)||n===void 0&&!(e in t))&&Es(t,e,n)}function ky(t){return function(e,n,r){for(var i=-1,s=Object(e),o=r(e),a=o.length;a--;){var l=o[++i];if(n(s[l],l,s)===!1)break}return e}}var Bl=ky();function Zn(t){return Ue(t)&&qt(t)}function Zi(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function My(t){return bn(t,ar(t))}function Uy(t,e,n,r,i,s,o){var a=Zi(t,n),l=Zi(e,n),u=o.get(l);if(u){Ji(t,n,u);return}var c=s?s(a,l,n+"",t,e,o):void 0,d=c===void 0;if(d){var h=we(l),y=!h&&Dt(l),f=!h&&!y&&or(l);c=l,h||y||f?we(a)?c=a:Zn(a)?c=Cs(a):y?(d=!1,c=Ol(l,!0)):f?(d=!1,c=_l(l,!0)):c=[]:Ot(l)||an(l)?(c=a,an(a)?c=My(a):(!ne(a)||ir(a))&&(c=Tl(l))):d=!1}d&&(o.set(l,c),i(c,l,r,s,o),o.delete(l)),Ji(t,n,c)}function Vl(t,e,n,r,i){t!==e&&Bl(e,function(s,o){if(i||(i=new We),ne(s))Uy(t,e,o,n,Vl,r,i);else{var a=r?r(Zi(t,o),s,o+"",t,e,i):void 0;a===void 0&&(a=s),Ji(t,o,a)}},ar)}function Kr(t,e){return kl(Rl(t,e,Hr),t+"")}function Ly(t,e,n){if(!ne(n))return!1;var r=typeof e;return(r=="number"?qt(n)&&Wr(e,n.length):r=="string"&&e in n)?sr(n[e],t):!1}function By(t){return Kr(function(e,n){var r=-1,i=n.length,s=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(s=t.length>3&&typeof s=="function"?(i--,s):void 0,o&&Ly(n[0],n[1],o)&&(s=i<3?void 0:s,i=1),e=Object(e);++r<i;){var a=n[r];a&&t(e,a,r,s)}return e})}var Vy=By(function(t,e,n){Vl(t,e,n)});function Fs(t,e,n,r){if(!ne(t))return t;e=yn(e,t);for(var i=-1,s=e.length,o=s-1,a=t;a!=null&&++i<s;){var l=Et(e[i]),u=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return t;if(i!=o){var c=a[l];u=r?r(c,l,a):void 0,u===void 0&&(u=ne(c)?c:Wr(e[i+1])?[]:{})}As(a,l,u),a=a[l]}return t}function ce(t,e,n){return t==null?t:Fs(t,e,n)}function ql(t){return typeof t=="function"?t:Hr}var qy=/\s/;function zy(t){for(var e=t.length;e--&&qy.test(t.charAt(e)););return e}var Wy=/^\s+/;function Hy(t){return t&&t.slice(0,zy(t)+1).replace(Wy,"")}var Ko=NaN,Ky=/^[-+]0x[0-9a-f]+$/i,Gy=/^0b[01]+$/i,Yy=/^0o[0-7]+$/i,Jy=parseInt;function Zy(t){if(typeof t=="number")return t;if(rr(t))return Ko;if(ne(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=ne(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Hy(t);var n=Gy.test(t);return n||Yy.test(t)?Jy(t.slice(2),n?2:8):Ky.test(t)?Ko:+t}var Go=1/0,Xy=17976931348623157e292;function Qy(t){if(!t)return t===0?t:0;if(t=Zy(t),t===Go||t===-Go){var e=t<0?-1:1;return e*Xy}return t===t?t:0}function zl(t){var e=Qy(t),n=e%1;return e===e?n?e-n:e:0}var eb=9007199254740991,di=4294967295,tb=Math.min;function Wl(t,e){if(t=zl(t),t<1||t>eb)return[];var n=di,r=tb(t,di);e=ql(e),t-=di;for(var i=Sl(r,e);++n<t;)e(n);return i}function Hl(t,e){return t&&Bl(t,e,ze)}var nb="__lodash_hash_undefined__";function rb(t){return this.__data__.set(t,nb),this}function ib(t){return this.__data__.has(t)}function Rt(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new ut;++e<n;)this.add(t[e])}Rt.prototype.add=Rt.prototype.push=rb;Rt.prototype.has=ib;function sb(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function Xn(t,e){return t.has(e)}var ob=1,ab=2;function Kl(t,e,n,r,i,s){var o=n&ob,a=t.length,l=e.length;if(a!=l&&!(o&&l>a))return!1;var u=s.get(t),c=s.get(e);if(u&&c)return u==e&&c==t;var d=-1,h=!0,y=n&ab?new Rt:void 0;for(s.set(t,e),s.set(e,t);++d<a;){var f=t[d],p=e[d];if(r)var b=o?r(p,f,d,e,t,s):r(f,p,d,t,e,s);if(b!==void 0){if(b)continue;h=!1;break}if(y){if(!sb(e,function(v,S){if(!Xn(y,S)&&(f===v||i(f,v,n,r,s)))return y.push(S)})){h=!1;break}}else if(!(f===p||i(f,p,n,r,s))){h=!1;break}}return s.delete(t),s.delete(e),h}function lb(t){var e=-1,n=Array(t.size);return t.forEach(function(r,i){n[++e]=[i,r]}),n}function $s(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var cb=1,ub=2,db="[object Boolean]",fb="[object Date]",mb="[object Error]",hb="[object Map]",pb="[object Number]",gb="[object RegExp]",yb="[object Set]",bb="[object String]",xb="[object Symbol]",vb="[object ArrayBuffer]",Sb="[object DataView]",Yo=Me?Me.prototype:void 0,fi=Yo?Yo.valueOf:void 0;function wb(t,e,n,r,i,s,o){switch(n){case Sb:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case vb:return!(t.byteLength!=e.byteLength||!s(new Dr(t),new Dr(e)));case db:case fb:case pb:return sr(+t,+e);case mb:return t.name==e.name&&t.message==e.message;case gb:case bb:return t==e+"";case hb:var a=lb;case yb:var l=r&cb;if(a||(a=$s),t.size!=e.size&&!l)return!1;var u=o.get(t);if(u)return u==e;r|=ub,o.set(t,e);var c=Kl(a(t),a(e),r,i,s,o);return o.delete(t),c;case xb:if(fi)return fi.call(t)==fi.call(e)}return!1}var jb=1,Ob=Object.prototype,Eb=Ob.hasOwnProperty;function Ab(t,e,n,r,i,s){var o=n&jb,a=Ki(t),l=a.length,u=Ki(e),c=u.length;if(l!=c&&!o)return!1;for(var d=l;d--;){var h=a[d];if(!(o?h in e:Eb.call(e,h)))return!1}var y=s.get(t),f=s.get(e);if(y&&f)return y==e&&f==t;var p=!0;s.set(t,e),s.set(e,t);for(var b=o;++d<l;){h=a[d];var v=t[h],S=e[h];if(r)var E=o?r(S,v,h,e,t,s):r(v,S,h,t,e,s);if(!(E===void 0?v===S||i(v,S,n,r,s):E)){p=!1;break}b||(b=h=="constructor")}if(p&&!b){var j=t.constructor,g=e.constructor;j!=g&&"constructor"in t&&"constructor"in e&&!(typeof j=="function"&&j instanceof j&&typeof g=="function"&&g instanceof g)&&(p=!1)}return s.delete(t),s.delete(e),p}var Cb=1,Jo="[object Arguments]",Zo="[object Array]",pr="[object Object]",_b=Object.prototype,Xo=_b.hasOwnProperty;function Ib(t,e,n,r,i,s){var o=we(t),a=we(e),l=o?Zo:Re(t),u=a?Zo:Re(e);l=l==Jo?pr:l,u=u==Jo?pr:u;var c=l==pr,d=u==pr,h=l==u;if(h&&Dt(t)){if(!Dt(e))return!1;o=!0,c=!1}if(h&&!c)return s||(s=new We),o||or(t)?Kl(t,e,n,r,i,s):wb(t,e,l,n,r,i,s);if(!(n&Cb)){var y=c&&Xo.call(t,"__wrapped__"),f=d&&Xo.call(e,"__wrapped__");if(y||f){var p=y?t.value():t,b=f?e.value():e;return s||(s=new We),i(p,b,n,r,s)}}return h?(s||(s=new We),Ab(t,e,n,r,i,s)):!1}function Gr(t,e,n,r,i){return t===e?!0:t==null||e==null||!Ue(t)&&!Ue(e)?t!==t&&e!==e:Ib(t,e,n,r,Gr,i)}var Tb=1,Nb=2;function Pb(t,e,n,r){var i=n.length,s=i;if(t==null)return!s;for(t=Object(t);i--;){var o=n[i];if(o[2]?o[1]!==t[o[0]]:!(o[0]in t))return!1}for(;++i<s;){o=n[i];var a=o[0],l=t[a],u=o[1];if(o[2]){if(l===void 0&&!(a in t))return!1}else{var c=new We,d;if(!(d===void 0?Gr(u,l,Tb|Nb,r,c):d))return!1}}return!0}function Gl(t){return t===t&&!ne(t)}function Fb(t){for(var e=ze(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,Gl(i)]}return e}function Yl(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}function $b(t){var e=Fb(t);return e.length==1&&e[0][2]?Yl(e[0][0],e[0][1]):function(n){return n===t||Pb(n,t,e)}}function Db(t,e){return t!=null&&e in Object(t)}function Jl(t,e){return t!=null&&Ll(t,e,Db)}var Rb=1,kb=2;function Mb(t,e){return bs(t)&&Gl(e)?Yl(Et(t),e):function(n){var r=D(n,t);return r===void 0&&r===e?Jl(n,t):Gr(e,r,Rb|kb)}}function Ub(t){return function(e){return e?.[t]}}function Lb(t){return function(e){return qr(e,t)}}function Bb(t){return bs(t)?Ub(Et(t)):Lb(t)}function Ds(t){return typeof t=="function"?t:t==null?Hr:typeof t=="object"?we(t)?Mb(t[0],t[1]):$b(t):Bb(t)}function Vb(t,e,n){var r=we(t),i=r||Dt(t)||or(t);if(e=Ds(e),n==null){var s=t&&t.constructor;i?n=r?new s:[]:ne(t)?n=ir(s)?Il(Lr(t)):{}:n={}}return(i?Os:Hl)(t,function(o,a,l){return e(n,o,a,l)}),n}function qb(t,e,n,r){for(var i=t.length,s=n+-1;++s<i;)if(e(t[s],s,t))return s;return-1}function zb(t){return t!==t}function Wb(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}function Zl(t,e,n){return e===e?Wb(t,e,n):qb(t,zb,n)}function Rs(t,e){var n=t==null?0:t.length;return!!n&&Zl(t,e,0)>-1}function Or(){}var Hb=1/0,Kb=sn&&1/$s(new sn([,-0]))[1]==Hb?function(t){return new sn(t)}:Or,Gb=200;function Xl(t,e,n){var r=-1,i=Rs,s=t.length,o=!0,a=[],l=a;if(s>=Gb){var u=Kb(t);if(u)return $s(u);o=!1,i=Xn,l=new Rt}else l=a;e:for(;++r<s;){var c=t[r],d=c;if(c=c!==0?c:0,o&&d===d){for(var h=l.length;h--;)if(l[h]===d)continue e;a.push(c)}else i(l,d,n)||(l!==a&&l.push(d),a.push(c))}return a}function Ql(t){return t&&t.length?Xl(t):[]}function Qn(t){return Array.isArray(t)?"array":typeof t=="string"?"string":t==null?"null":typeof t=="boolean"?"boolean":typeof t=="number"&&!Number.isNaN(t)?"number":typeof t=="object"?"object":"string"}var Yb=Kr(function(t){return Xl(lr(t,1,Zn,!0))});function Le(t){let{type:e}=t;return!e&&t.const?Qn(t.const):!e&&t.enum?"string":!e&&(t.properties||t.additionalProperties||t.patternProperties)?"object":(Array.isArray(e)&&(e.length===2&&e.includes("null")?e=e.find(n=>n!=="null"):e=e[0]),e)}function at(t,e){const n={...t};return Object.keys(e).reduce((r,i)=>{const s=t?t[i]:{},o=e[i];return t&&i in t&&q(o)?r[i]=at(s,o):t&&e&&(Le(t)==="object"||Le(e)==="object")&&i===il&&Array.isArray(s)&&Array.isArray(o)?r[i]=Yb(s,o):r[i]=o,r},n)}var Jb="[object Number]";function ec(t){return typeof t=="number"||Ue(t)&&lt(t)==Jb}function tc(t,e,n){var r;if(t&&n){const i=D(t,n);if(i===void 0)return;for(let s=0;s<e.length;s+=1){const o=e[s],a=D(o,[se,n],{});if(a.type!=="object"&&a.type!=="array"&&(a.const===i||!((r=a.enum)===null||r===void 0)&&r.includes(i)))return s}}}function kr(t,e,n,r,i){if(e===void 0)return 0;const s=tc(e,n,i);if(ec(s))return s;for(let o=0;o<n.length;o+=1){const a=n[o];if(i&&X(a,[se,i])){const l=D(e,i),u=D(a,[se,i],{});if(t.isValid(u,l,r))return o}else if(a[se]){const l={anyOf:Object.keys(a[se]).map(c=>({required:[c]}))};let u;if(a.anyOf){const{...c}=a;c.allOf?c.allOf=c.allOf.slice():c.allOf=[],c.allOf.push(l),u=c}else u={...a,...l};if(delete u.required,t.isValid(u,e,r))return o}else if(t.isValid(a,e,r))return o}return 0}const Zb=Object.prototype;function Dn(t){for(const e in t)if(Zb.hasOwnProperty.call(t,e))return!1;return!0}const Xb=["array","boolean","integer","null","number","object","string"];new Set(Xb);const Qb=["$defs","definitions","properties","patternProperties","dependencies"];new Set(Qb);const e0=["items","allOf","oneOf","anyOf"];new Set(e0);const t0=["items","additionalItems","additionalProperties","propertyNames","contains","if","then","else","not"];new Set(t0);function Er(t){return typeof t=="object"}function Ye(t){return Er(t)?Dn(t):t===!0}function tn(t,e){return t<e?-1:t>e?1:0}function mi(t,e){const n=t.length;if(n===0)return e;let r=e.length;if(r===0)return t;if(n<r){const s=t;t=e,e=s,r=n}const i=new Set(t);for(let s=0;s<r;s++)i.add(e[s]);return Array.from(i)}function n0(t,e){const n=[];if(t.length===0||e.length===0)return n;if(t.length>e.length){const i=t;t=e,e=i}const r=new Set(e);for(let i=0;i<t.length&&r.size>0;i++){const s=t[i];r.delete(s)&&n.push(s)}return n}function Qo(t){return t.length===0}function hi(t){return(e,n)=>{const r=e.length-n.length;if(r!==0)return r;for(let i=0;i<e.length;i++)if(e[i]!==n[i]){const s=t(e[i],n[i]);if(s!==0)return s}return 0}}function nc(t,{threshold:e=12}={}){return n=>{const r=n.length;if(r===0)return n;if(r<=e){const o=[];let a=0;e:for(let l=0;l<r;l++){const u=n[l];for(let c=0;c<a;c++)if(t(u,o[c])===0)continue e;a=o.push(u)}return o}const i=n.slice().sort(t);let s=0;for(let o=1;o<r;o++)t(i[s],i[o])!==0&&++s!==o&&(i[s]=i[o]);return i.length=s+1,i}}function r0(t){return(e,n)=>{const r=[];let i=e.length,s=n.length;if(i===0||s===0)return r;if(i>s){const c=e;e=n,n=c;const d=i;i=s,s=d}const o=[...e].sort(t),a=[...n].sort(t);let l=0,u=0;for(;l<i&&u<s;){const c=t(o[l],a[u]);c===0?((r.length===0||t(r[r.length-1],o[l])!==0)&&r.push(o[l]),l++,u++):c<0?l++:u++}return r}}function i0(t,e){return n=>{if(t.has(n))return t.get(n);const r=e(n);return t.set(n,r),r}}const ea=i0,rc=()=>0,s0=t=>t===void 0,o0=t=>typeof t!="object",ta={boolean:0,number:1,string:2};function a0(t,e){const n=typeof t,r=typeof e;return n===r?tn(t,e):ta[n]-ta[r]}function l0(t,e){const n=t.length;if(n===0)return e;const r=e.length;if(r===0)return t;if(r>n){const o=t;t=e,e=o}const i=new Set(t),s=e.length;for(let o=0;o<s;o++){const a=e[o];i.has(a)||t.push(a)}return t}function Yr(t,e,n=rc){return(r,i)=>t(r)?t(i)?n(r,i):-1:t(i)?1:e(r,i)}function Zt(t){return Yr(s0,t)}function ht(t,e){return Yr(n=>n===void 0||t(n),e)}function pi(t,e){return Yr(Array.isArray,t,e)}const be=Zt(tn),gi=ht(t=>t===0,(t,e)=>t-e);function c0({deduplicationCache:t=new WeakMap,sortedKeysCache:e=new WeakMap}={}){const n=ea(e,p=>Object.keys(p).sort());function r(p){return(b,v)=>{const S=n(b),E=n(v),j=Math.min(S.length,E.length);for(let g=0;g<j;g++){const x=tn(S[g],E[g]);if(x!==0)return x}if(S.length!==E.length)return S.length-E.length;for(let g=0;g<j;g++){const x=S[g],w=p(b[x],v[x]);if(w!==0)return w}return 0}}function i(p){const b=hi(p),v=ea(t,nc(p,{threshold:0}));return(S,E)=>b(v(S),v(E))}const s=i(tn);function o(p,b){if(Er(p)){if(Er(b)){const v=Object.keys(p),S=Object.keys(b),E=l0(v,S),j=E.length;for(let g=0;g<j;g++){const x=E[g];if(p[x]===b[x])continue;const O=(f[x]??a)(p[x],b[x]);if(O!==0)return O}return 0}return b===!0&&Dn(p)?0:1}return Er(b)?p===!0&&Dn(b)?0:-1:tn(p,b)}const a=Zt(u),l=Yr(o0,pi(r(a),hi(u)),a0);function u(p,b){return p===null?-1:b===null?1:l(p,b)}const c=Zt(o),d=ht(Dn,r(c)),h=Zt(i(o)),y=ht(Ye,o),f={$id:be,$comment:be,$defs:d,$ref:be,$schema:be,const:a,contains:c,contentEncoding:be,contentMediaType:be,default:a,definitions:d,description:be,else:c,examples:a,exclusiveMaximum:be,exclusiveMinimum:be,format:be,if:c,maximum:be,maxItems:be,maxLength:be,maxProperties:be,minimum:be,multipleOf:be,not:c,pattern:be,propertyNames:c,readOnly:be,then:c,title:be,writeOnly:be,uniqueItems:ht(p=>p===!1,rc),minLength:gi,minItems:gi,minProperties:gi,required:ht(Qo,s),enum:ht(Qo,i(u)),type:Zt((p,b)=>{const v=Array.isArray(p),S=Array.isArray(b);return!v&&!S?tn(p,b):s(v?p:[p],S?b:[b])}),items:ht(p=>!Array.isArray(p)&&Ye(p),pi(o,hi(o))),anyOf:h,allOf:h,oneOf:h,properties:d,patternProperties:d,additionalProperties:y,additionalItems:y,dependencies:ht(Dn,r(Zt(pi(o,s))))};return{compareSchemaValues:u,compareSchemaDefinitions:o}}function na(t){return t}const ic=(t,e)=>t?ic(e%t,t):e,u0=(t,e)=>Math.abs(t*e)/ic(t,e);function d0(t,e){return t===e?t:`^(?=.*(?:${t}))(?=.*(?:${e})).*$`}function yi(t,e,n){const r=t.length,i=e.length;if(r>0&&i>0)for(let s=0;s<r;s++){const o=t[s];for(let a=0;a<i;a++)n(o,e[a])}}function bi(t,e){return t||e}function ra(t){return(e,n)=>{const r={...e},i=Object.keys(n),s=i.length;for(let o=0;o<s;o++){const a=i[o];r[a]=e[a]===void 0?n[a]:t(e[a],n[a])}return r}}function f0(t){const e=new Map;for(const n of t)for(const r of n[0])e.set(r,n[1]);return e}function It(t,e,n){n===void 0||Ye(n)?delete t[e]:t[e]=n}const m0=["properties","patternProperties","additionalProperties"];function ia(t){const e=Object.keys(t),n=e.length,r=[];for(let i=0;i<n;i++){const s=e[i];r.push({regExp:new RegExp(s),schema:t[s]})}return[r,e]}const sa=[[],[]];function oa(t,e,n){const r=n.length;for(let i=0;i<r;i++){const s=n[i];if(!s.regExp.test(e))continue;const o=s.schema;if(o===!1)return!0;t.push(o)}return!1}const h0=["items","additionalItems"],p0=["if","then","else"];function aa(t,e){return e.if!==void 0&&(t.if=e.if),e.then!==void 0&&(t.then=e.then),e.else!==void 0&&(t.else=e.else),t}function xi(t,e){if(t===e)return t;switch(t){case"number":if(e==="integer")return"integer";case"integer":if(e==="number")return"integer";default:return}}function Tt(t,e,n){return[t,e,n]}function g0(t){const e=new Map;for(const[n,r,i]of t){const s=o=>{if(!i(o))throw new Error(`Schema keys '${n}' and '${r}' are conflicting (${n}: ${JSON.stringify(o[n])}, ${r}: ${JSON.stringify(o[r])})`)};for(const o of[[n,r],[r,n]]){let a=e.get(o[0]);a===void 0&&(a=[],e.set(o[0],a)),a.push({oppositeKey:o[1],check:s})}}return e}const y0=[Tt("minimum","maximum",t=>t.maximum>=t.minimum),Tt("exclusiveMinimum","maximum",t=>t.maximum>t.exclusiveMinimum),Tt("minimum","exclusiveMaximum",t=>t.exclusiveMaximum>t.minimum),Tt("exclusiveMinimum","exclusiveMaximum",t=>t.exclusiveMaximum>t.exclusiveMinimum),Tt("minLength","maxLength",t=>t.maxLength>=t.minLength),Tt("minItems","maxItems",t=>t.maxItems>=t.minItems),Tt("minProperties","maxProperties",t=>t.maxProperties>=t.minProperties)];function b0({mergePatterns:t=d0,isSubRegExp:e=Object.is,intersectJson:n=n0,deduplicateJsonSchemaDef:r=na,defaultMerger:i=na,assigners:s=[],checks:o=y0,mergers:a}={}){function l(j){const g=j.length;let x=j[0];for(let w=1;w<g;w++){const O=v(x,j[w]);if(O===!1)return!1;Ye(O)||(x=O)}return x}function u(j,g,x,w,O,A,C){if(j.length=0,x===!1)return!1;if(j.push(x),O!==void 0){if(O===!1)return!1;j.push(O)}if(oa(j,g,A))return!1;const I=j.length<2;if(C===!1){if(I)return;if(oa(j,g,w))return!1}else I&&C!==void 0&&j.push(C);return j.length===1?j[0]:l(j)}function c(j,g,x,w,O,A){const C=x.length;if(C>0&&O!==!1)if(A)Object.assign(j,g);else for(let _=0;_<C;_++){const I=x[_];w.has(I)||(j[I]=v(g[I],O))}return j}const d=(j,{properties:g={},patternProperties:x,additionalProperties:w=!0},{properties:O={},patternProperties:A,additionalProperties:C=!0})=>{const _=Ye(w),I=Ye(C);if(_&&I)return It(j,"properties",S(g,O)),It(j,"patternProperties",x&&A?S(x,A):x??A),delete j.additionalProperties,j;const T=v(w,C);It(j,"additionalProperties",T);const F={},P=Object.keys(g),$=P.length,[k,M]=x?ia(x):sa,[U,J]=A?ia(A):sa,ae=[],fe=new Set,ye=I?void 0:C;for(let z=0;z<$;z++){const re=P[z];fe.add(re);const oe=u(ae,re,g[re],k,O[re],U,ye);oe!==void 0&&(F[re]=oe)}const L=Object.keys(O),le=L.length,te=_?void 0:w;for(let z=0;z<le;z++){const re=L[z];if(fe.has(re))continue;const oe=u(ae,re,O[re],U,void 0,k,te);oe!==void 0&&(F[re]=oe)}It(j,"properties",F);let H={};const K=new Set;return M.length>0&&J.length>0&&yi(M,J,(z,re)=>{e(z,re)&&K.add(z),e(re,z)&&K.add(re),H[t(z,re)]=v(x[z],A[re])}),H=c(H,x,M,K,C,I),H=c(H,A,J,K,w,_),It(j,"patternProperties",H),j},h=(j,{items:g=[],additionalItems:x},{items:w=[],additionalItems:O})=>{const A=Array.isArray(g),C=Array.isArray(w),_=[];if(j.items=_,A&&C){const[I,T,F]=g.length<w.length?[g.length,x,w]:[w.length,O,g];let P=0;for(;P<I;P++)_.push(v(g[P],w[P]));if(T===!1)j.additionalItems=!1;else{const $=T===void 0||Ye(T);for(;P<F.length;P++)_.push($?F[P]:v(F[P],T));It(j,"additionalItems",x!==void 0&&O!==void 0?v(x,O):x??O)}}else if(A||C){const[I,T,F]=A?[g,w,x]:[w,g,O];It(j,"additionalItems",F&&v(F,T));for(let P=0;P<I.length;P++)_.push(v(I[P],T))}else delete j.additionalItems,j.items=v(g,w);return j},y=(j,g,x)=>{aa(j,g);const w=aa({},x);return j.allOf===void 0?j.allOf=[w]:j.allOf=j.allOf.concat(w),j};function f(j,g){const x=[];if(yi(j,g,(w,O)=>{try{x.push(v(w,O))}catch{}}),x.length===0)throw new Error(`No valid schema combinations could be produced for "${JSON.stringify(j)}" and "${JSON.stringify(g)}"; the merged result is empty`);return r(x)}const p=f0([[m0,d],[h0,h],[p0,y],...s]),b=g0(o);function v(j,g){if(j===!1||g===!1)return!1;if(Ye(j))return Ye(g)?!0:g;if(Ye(g))return j;let x={...j};const w=new Set,O=new Set,A=Object.keys(g),C=A.length;for(let _=0;_<C;_++){const I=A[_],T=g[I];if(T===void 0)continue;const F=b.get(I);if(F!==void 0){const M=F.length;for(let U=0;U<M;U++){const J=F[U];j[J.oppositeKey]!==void 0&&O.add(J.check)}}const P=j[I];if(P===void 0){x[I]=T;continue}const $=p.get(I);if($){w.add($);continue}const k=E[I]??i;x[I]=k(P,T)}for(const _ of w)x=_(x,j,g);for(const _ of O)_(x);return x}const S=ra(v),E={$id:i,$ref:i,$schema:i,$comment:i,$defs:S,definitions:S,type:(j,g)=>{if(j===g)return j;const x=Array.isArray(j),w=Array.isArray(g);if(!x&&!w){const O=xi(j,g);if(O!==void 0)return O}else if(x||w){const O=new Set;if(x&&w)yi(j,g,(C,_)=>{const I=xi(C,_);I!==void 0&&O.add(I)});else{const C=x?j:g,_=x?g:j,I=C.length;for(let T=0;T<I;T++){const F=xi(_,C[T]);F!==void 0&&O.add(F)}}const A=O.size;if(A===1)return O.values().next().value;if(A>1)return Array.from(O)}throw new Error(`It is not possible to create an intersection of the following incompatible types: ${j.toString()}, ${g.toString()}`)},default:i,description:i,title:i,const:i,format:i,contentEncoding:i,contentMediaType:i,not:(j,g)=>{const x=r([j,g]);return x.length===1?x[0]:{anyOf:x}},pattern:t,readOnly:bi,writeOnly:bi,enum:(j,g)=>{const x=n(j,g);if(x.length===0)throw new Error(`Intersection of the following enums is empty: "${JSON.stringify(j)}", "${JSON.stringify(g)}"`);return x},anyOf:f,oneOf:f,allOf:(j,g)=>r(j.concat(g)),propertyNames:v,contains:v,dependencies:ra((j,g)=>Array.isArray(j)?Array.isArray(g)?mi(j,g):v(g,{required:j}):Array.isArray(g)?v(j,{required:g}):v(j,g)),examples:(j,g)=>{if(!Array.isArray(j)||!Array.isArray(g))throw new Error(`Value of the 'examples' field should be an array, but got "${JSON.stringify(j)}" and "${JSON.stringify(g)}"`);return mi(j,g)},multipleOf:(j,g)=>{let x=1;for(;!Number.isInteger(j)||!Number.isInteger(g);)x*=10,j*=10,g*=10;return u0(j,g)/x},exclusiveMaximum:Math.min,maximum:Math.min,maxItems:Math.min,maxLength:Math.min,maxProperties:Math.min,exclusiveMinimum:Math.max,minimum:Math.max,minItems:Math.max,minLength:Math.max,minProperties:Math.max,uniqueItems:bi,required:mi,...a};return{mergeSchemaDefinitions:v,mergeArrayOfSchemaDefinitions:l}}function x0(t){const e=[],n=[t];for(;n.length>0;){const r=n.pop();if(typeof r=="boolean"||r.allOf===void 0){e.push(r);continue}const{allOf:i,...s}=r;e.push(s);for(let o=i.length-1;o>=0;o--)n.push(i[o])}return e}function v0(t){return e=>t(x0(e))}const{compareSchemaDefinitions:S0,compareSchemaValues:w0}=c0(),{mergeArrayOfSchemaDefinitions:j0}=b0({intersectJson:r0(w0),deduplicateJsonSchemaDef:nc(S0)}),sc=v0(j0);function Ce(t,e,n={},r,i,s=!1){return Ze(t,e,n,r,void 0,void 0,i,s)[0]}function O0(t,e,n,r,i,s,o){const{if:a,then:l,else:u,...c}=e,d=t.isValid(a,s||{},n);let h=[c],y=[];if(r)l&&typeof l!="boolean"&&(y=y.concat(Ze(t,l,n,s,r,i,o))),u&&typeof u!="boolean"&&(y=y.concat(Ze(t,u,n,s,r,i,o)));else{const f=d?l:u;f&&typeof f!="boolean"&&(y=y.concat(Ze(t,f,n,s,r,i,o)))}return y.length&&(h=y.map(f=>at(c,f))),h.flatMap(f=>Ze(t,f,n,s,r,i,o))}function oc(t){return t.reduce((n,r)=>r.length>1?r.flatMap(i=>Wl(n.length,s=>[...n[s]].concat(i))):(n.forEach(i=>i.push(r[0])),n),[[]])}function ac(t,e){return Object.keys(t.patternProperties).filter(n=>RegExp(n).test(e)).reduce((n,r)=>(ce(n,[r],t.patternProperties[r]),n),{})}function E0(t,e,n,r,i,s,o,a){const l=lc(t,e,n,r,i,s,o,a);if(l.length>1||l[0]!==e)return l;if(hs in e)return uc(t,e,n,r,i,s,o).flatMap(c=>Ze(t,c,n,s,r,i,o));if(jt in e&&Array.isArray(e[jt])){const u=e.allOf.map(d=>Ze(t,d,n,s,r,i,o));return oc(u).map(d=>({...e,allOf:d}))}return[e]}function lc(t,e,n,r,i,s,o,a){const l=vt(e,n,i,void 0,a);return l!==e?Ze(t,l,n,s,r,i,o,a):[e]}function vt(t,e,n,r,i){if(!q(t))return t;let s=t,o=r;if(ue in s){const{$ref:a,...l}=s;if(n.includes(a))return s;n.push(a),s={...Jn(a,e,o),...l,[Ln]:a},de in s&&(o=s[de])}if(se in s){const a=[],l=Vb(s[se],(u,c,d)=>{const h=[...n];u[d]=vt(c,e,h,o,i),a.push(h)},{});Vy(n,Ql(Ry(a))),s={...s,[se]:l}}if(on in s&&!Array.isArray(s.items)&&typeof s.items!="boolean"&&(s={...s,items:vt(s.items,e,n,o,i)}),i){let a,l;ee in t&&Array.isArray(t[ee])?(a=ee,l=s[ee]):W in t&&Array.isArray(t[W])&&(a=W,l=s[W]),a&&l&&(s={...s,[a]:l.map(u=>vt(u,e,n,o,i))})}return ie(t,s)?t:s}function A0(t,e,n,r,i){const s={...e,properties:{...e.properties}},o=r&&q(r)?r:{};return Object.keys(o).forEach(a=>{if(!(a in s.properties)){if(Bi in s){const l=ac(s,a);if(!ge(l)){s.properties[a]=Ce(t,{[jt]:Object.values(l)},n,D(o,[a]),i),ce(s.properties,[a,ot],!0);return}}if(en in s&&s.additionalProperties!==!1){let l;typeof s.additionalProperties!="boolean"?ue in s.additionalProperties?l=Ce(t,{[ue]:D(s.additionalProperties,[ue])},n,o,i):"type"in s.additionalProperties?l={...s.additionalProperties}:ee in s.additionalProperties||W in s.additionalProperties?l={type:"object",...s.additionalProperties}:l={type:Qn(D(o,[a]))}:l={type:Qn(D(o,[a]))},s.properties[a]=l,ce(s.properties,[a,ot],!0)}else s.properties[a]={type:"null"},ce(s.properties,[a,ot],!0)}}),s}function C0(t){return sc(t)}function Ze(t,e,n,r,i=!1,s=[],o,a){return q(e)?E0(t,e,n,i,s,r,o,a).flatMap(u=>{var c;let d=u;if(ps in d)return O0(t,d,n,i,s,r,o);if(jt in d){if(i){const{allOf:y,...f}=d;return[...y,f]}try{const y=[],f=[];(c=d.allOf)===null||c===void 0||c.forEach(p=>{typeof p=="object"&&p.contains?y.push(p):f.push(p)}),y.length&&(d={...d,allOf:f}),d=o?o(d):C0(d),y.length&&(d.allOf=y)}catch(y){console.warn(`could not merge subschemas in allOf:
2
+ `,y);const{allOf:f,...p}=d;return p}}return se in d&&Bi in d&&(d=Object.keys(d.properties).reduce((y,f)=>{const p=ac(y,f);return ge(p)||(y.properties[f]=Ce(t,{allOf:[y.properties[f],...Object.values(p)]},n,D(r,[f]),o)),y},{...d,properties:{...d.properties}})),Bi in d||en in d&&d.additionalProperties!==!1?A0(t,d,n,r,o):d}):[{}]}function _0(t,e,n,r,i){let s;const{oneOf:o,anyOf:a,...l}=e;if(Array.isArray(o)?s=o:Array.isArray(a)&&(s=a),s){const u=i===void 0&&r?{}:i,c=He(e);s=s.map(h=>vt(h,n,[]));const d=kr(t,u,s,n,c);if(r){const h=cc(s,!1,n);return kr(t,u,h,n,c),s.map(y=>at(l,y))}return[at(l,s[d])]}return[e]}function cc(t,e=!1,n){return t.map(r=>{if(!q(r))return r?{}:{not:{}};const i=e&&n?vt(r,n,[]):r;return i.additionalProperties===!1?{...i,additionalProperties:!0}:i})}function uc(t,e,n,r,i,s,o){const{dependencies:a,...l}=e;return _0(t,l,n,r,s).flatMap(c=>dc(t,a,c,n,r,i,s,o))}function dc(t,e,n,r,i,s,o,a){let l=[n];for(const u in e)if((i||D(o,[u])!==void 0)&&(!n.properties||u in n.properties)){const[c,d]=Ps(u,e);return Array.isArray(d)?l[0]=I0(n,d):q(d)&&(l=T0(t,n,r,u,d,i,s,o,a)),l.flatMap(h=>dc(t,c,h,r,i,s,o,a))}return l}function I0(t,e){if(!e)return t;const n=Array.isArray(t.required)?Array.from(new Set([...t.required,...e])):e;return{...t,required:n}}function T0(t,e,n,r,i,s,o,a,l){return Ze(t,i,n,a,s,o,l).flatMap(c=>{const{oneOf:d,...h}=c,y=at(e,h);if(d===void 0)return y;const f=d.map(b=>typeof b=="boolean"||!(ue in b)?[b]:lc(t,b,n,s,o,a));return oc(f).flatMap(b=>N0(t,y,n,r,b,s,o,a,l))})}function N0(t,e,n,r,i,s,o,a,l){const u=i.filter(c=>{if(typeof c=="boolean"||!c||!c.properties)return!1;const{[r]:d}=c.properties;if(d){const h={type:"object",properties:{[r]:d}};return t.isValid(h,a,n)||s}return!1});return!s&&u.length!==1?(console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),[e]):u.flatMap(c=>{const d=c,[h]=Ps(r,d.properties),y={...d,properties:h};return Ze(t,y,n,a,s,o,l).map(p=>at(e,p))})}function Rn(t,e,n,r,i,s={},o){if(Array.isArray(n[i])){const l=He(n)||r,u=n[i].map(d=>Ce(t,d,e,s,o)),c=D(s,l);if(c!==void 0)return u.find(d=>ie(D(d,[se,l,Ft],D(d,[se,l,Ne])),c))}}function fc(t,e,n,r,i){let s=n;if(X(n,ue)&&(s=Ce(t,n,e,void 0,i)),ge(r))return s;const o=Array.isArray(r)?[...r]:r.split("."),[a,...l]=o;if(a!==void 0&&a!==""&&X(s,a))return s=D(s,a),fc(t,e,s,l,i)}function Ar(t,e,n,r,i,s){const o=fc(t,e,n,r,s);return o===void 0?i:o}const la={title:"!@#$_UNKNOWN_$#@!"};function P0(t,e,n,r,i={},s){const o=Array.isArray(r)?[...r]:r.split(".");let a=n;const l=o.pop(),u=String(l);o.length&&o.forEach(y=>{a=Ar(t,e,a,[se,y],{},s),X(a,W)?a=Rn(t,e,a,u,W,D(i,y),s):X(a,ee)&&(a=Rn(t,e,a,u,ee,D(i,y),s))}),X(a,W)?a=Rn(t,e,a,u,W,i,s):X(a,ee)&&(a=Rn(t,e,a,u,ee,i,s));let c=Ar(t,e,a,[se,l],la,s);c===la&&(c=void 0);const d=Ar(t,e,a,il,[],s);let h;return c&&Array.isArray(d)&&(h=d.includes(u)),{field:c,isRequired:h}}function F0(t,e,n,r){var i=-1,s=t==null?0:t.length;for(r&&s&&(n=t[++i]);++i<s;)n=e(n,t[i],i,t);return n}function $0(t,e){return function(n,r){if(n==null)return n;if(!qt(n))return t(n,r);for(var i=n.length,s=-1,o=Object(n);++s<i&&r(o[s],s,o)!==!1;);return n}}var mc=$0(Hl);function D0(t,e,n,r,i){return i(t,function(s,o,a){n=r?(r=!1,s):e(n,s,o,a)}),n}function R0(t,e,n){var r=we(t)?F0:D0,i=arguments.length<3;return r(t,Ds(e),n,i,mc)}const k0={type:"object",$id:im,properties:{__not_really_there__:{type:"number"}}};function Xi(t,e,n,r,i){let s=0;return n&&(ne(n.properties)?s+=R0(n.properties,(o,a,l)=>{const u=D(r,l);if(typeof a=="boolean")return o;if(X(a,ue)){const c=Ce(t,a,e,u,i);return o+Xi(t,e,c,u||{},i)}if((X(a,W)||X(a,ee))&&u){const c=X(a,W)?W:ee,d=He(a);return o+un(t,e,u,D(a,c),-1,d,i)}if(a.type==="object"){const c=ne(u)?1:0;return o+c+Xi(t,e,a,u,i)}if(a.type===Qn(u)){let c=o+1;return a.default?c+=u===a.default?1:-1:a.const&&(c+=u===a.const?1:-1),c}return o},0):At(n.type)&&n.type===Qn(r)&&(s+=1)),s}function un(t,e,n,r,i=-1,s,o){const a=r.map(h=>vt(h,e,[])),l=tc(n,r,s);if(ec(l))return l;const u=a.reduce((h,y,f)=>(kr(t,n,[k0,y],e,s)===1&&h.push(f),h),[]);if(u.length===1)return u[0];u.length||Wl(a.length,h=>u.push(h));const c=new Set,{bestIndex:d}=u.reduce((h,y)=>{const{bestScore:f}=h,p=a[y],b=Xi(t,e,p,n,o);return c.add(b),b>f?{bestIndex:y,bestScore:b}:h},{bestIndex:i,bestScore:0});return c.size===1&&i>=0?i:d}function hc(t){const e=t[Ne],n=Le(t);return q(e)&&At(e?.$data)&&n!=="object"&&n!=="array"}function pc(t){return Array.isArray(t.enum)&&t.enum.length===1||Ne in t}function ks(t){return Array.isArray(t.items)&&t.items.length>0&&t.items.every(e=>q(e))}function dn(t){return t==null}function er(t,e,n=!1,r=!1,i=!1){if(Array.isArray(e)){const s=Array.isArray(t)?t:[],o=i?s:e,a=i?e:s,l=o.map((u,c)=>a[c]!==void 0?er(s[c],e[c],n,r,i):u);return(n||i)&&l.length<a.length&&l.push(...a.slice(l.length)),l}if(q(e)){const s=Object.assign({},t);return Object.keys(e).reduce((o,a)=>{var l;const u=D(e,a),c=q(t)&&a in t,d=a in e,h=(l=D(t,a))!==null&&l!==void 0?l:{},y=c&&q(h)&&Object.values(h).some(b=>q(b)),f=c&&q(D(t,a)),p=d&&q(u);return f&&p&&!y?(o[a]={...D(t,a),...u},o):(o[a]=er(D(t,a),u,n,r,i&&(c||!d)),s)},s)}return r&&(t!==void 0&&dn(e)||typeof e=="number"&&Number.isNaN(e))||i&&!dn(e)?t:e}function kt(t,e,n=!1){return Object.keys(e).reduce((r,i)=>{const s=t?t[i]:{},o=e[i];if(t&&i in t&&q(o))r[i]=kt(s,o,n);else if(n&&Array.isArray(s)&&Array.isArray(o)){let a=o;n==="preventDuplicates"&&(a=o.reduce((l,u)=>(s.includes(u)||l.push(u),l),[])),r[i]=s.concat(a)}else r[i]=o;return r},{...t})}function M0(t){if(rm in t&&Array.isArray(t.enum)&&t.enum.length===1)return t.enum[0];if(Ne in t)return t.const;throw new Error("schema cannot be inferred as a constant")}function U0(t,e){const n=new Map(t.map(s=>[String(s.value),s])),r=new Set(e.filter(s=>s!=="*").map(String)),i=t.filter(s=>!r.has(String(s.value)));return e.flatMap(s=>{if(s==="*")return i;const o=n.get(String(s));return o?[o]:[]})}function fn(t,e){if(t.enum){let s,o;if(e){const{enumNames:l,enumOrder:u}=B(e);s=l,o=u}let a=t.enum.map((l,u)=>({label:Array.isArray(s)?s[u]||String(l):s?.[String(l)]||String(l),value:l}));return o&&(a=U0(a,o)),a}let n,r;t.anyOf?(n=t.anyOf,r=e?.anyOf):t.oneOf&&(n=t.oneOf,r=e?.oneOf);let i=He(t);if(e){const{optionsSchemaSelector:s=i}=B(e);i=s}return n&&n.map((s,o)=>{const{title:a}=B(r?.[o]),l=s;let u,c=a;if(i){const d=D(l,[se,i],{});u=D(d,Ft,D(d,Ne)),c=c||d?.title||l.title||String(u)}else u=M0(l),c=c||l.title||String(u);return{schema:l,label:c,value:u}})}function Jr(t,e,n={},r){const i=Ce(t,e,n,void 0,r),s=i.oneOf||i.anyOf;return Array.isArray(i.enum)?!0:Array.isArray(s)?s.every(o=>typeof o!="boolean"&&pc(o)):!1}function Ms(t,e,n,r){return!e.uniqueItems||!e.items||typeof e.items=="boolean"?!1:Jr(t,e.items,n,r)}const L0=["string","number","integer","boolean","null"];var mn;(function(t){t[t.Ignore=0]="Ignore",t[t.Invert=1]="Invert",t[t.Fallback=2]="Fallback"})(mn||(mn={}));function vi(t,e=mn.Ignore,n=-1){if(n>=0){if(Array.isArray(t.items)&&n<t.items.length){const r=t.items[n];if(typeof r!="boolean")return r}}else if(t.items&&!Array.isArray(t.items)&&typeof t.items!="boolean")return t.items;return e!==mn.Ignore&&q(t.additionalItems)?t.additionalItems:{}}function gc(t,e){const{default:n,type:r}=t;return Array.isArray(r)&&r.includes("null")&&ge(e)&&n===null?null:e}function ca(t,e,n,r,i,s=[],o={},a=!1,l=!1){const{emptyObjectFields:u="populateAllDefaults"}=o;if(r===!0||a)t[e]=n;else if(r==="excludeObjectChildren")(l&&n!==void 0||!q(n)||!ge(n))&&(t[e]=n);else if(u!=="skipDefaults"){const c=i===void 0?s.includes(e):i;q(n)?u==="skipEmptyDefaults"?ge(n)||(t[e]=n):(!ge(n)||s.includes(e))&&(c||u!=="populateRequiredDefaults")&&(t[e]=n):n!==void 0&&(u==="populateAllDefaults"||u==="skipEmptyDefaults"||c&&s.includes(e))&&(t[e]=n)}}function St(t,e,n={}){const{parentDefaults:r,rawFormData:i,rootSchema:s={},includeUndefinedValues:o=!1,_recurseList:a=[],experimental_defaultFormStateBehavior:l=void 0,experimental_customMergeAllOf:u=void 0,required:c,shouldMergeDefaultsIntoFormData:d=!1,initialDefaultsGenerated:h}=n;let y=q(i)?i:{};const f=q(e)?e:{};let p=r,b=null,v=l,S=a;if(f[Ne]!==void 0&&l?.constAsDefaults!=="never"&&!hc(f))p=f[Ne];else if(q(p)&&q(f.default)&&!f[ee]&&!f[W]&&!f[ue])p=kt(p,f.default);else if(Ft in f&&!f[ee]&&!f[W]&&!f[ue])p=f.default;else if(ue in f){const g=f[ue];a.includes(g)||(S=a.concat(g),b=Jn(g,s));const x=i===void 0||q(i)&&ge(i);b&&!p&&x&&(p=f.default),d&&b&&!q(i)&&(y=i)}else if(hs in f){const g={...ua(t,f,n,p),...y};[b]=uc(t,f,s,!1,[],g,u)}else if(ks(f))p=f.items.map((g,x)=>St(t,g,{rootSchema:s,includeUndefinedValues:o,_recurseList:a,experimental_defaultFormStateBehavior:l,experimental_customMergeAllOf:u,parentDefaults:Array.isArray(r)?r[x]:void 0,rawFormData:y,required:c,shouldMergeDefaultsIntoFormData:d}));else if(W in f){const{oneOf:g,...x}=f;if(g.length===0)return;const w=He(f),{type:O="null"}=x;!Array.isArray(O)&&L0.includes(O)&&v?.constAsDefaults==="skipOneOf"&&(v={...v,constAsDefaults:"never"}),b=g[un(t,s,i??f.default,g,0,w,u)],b=at(x,b)}else if(ee in f){const{anyOf:g,...x}=f;if(g.length===0)return;const w=He(f);b=g[un(t,s,i??f.default,g,0,w,u)],b=at(x,b)}if(b)return St(t,b,{rootSchema:s,includeUndefinedValues:o,_recurseList:S,experimental_defaultFormStateBehavior:v,experimental_customMergeAllOf:u,parentDefaults:p,rawFormData:i??y,required:c,shouldMergeDefaultsIntoFormData:d,initialDefaultsGenerated:h});p===void 0&&(p=f.default);const E=ua(t,f,n,p);let j=E??p;if(d){const{arrayMinItems:g={}}=l||{},{mergeExtraDefaults:x}=g,w=B0(t,f,s,i,l,u);(!q(i)||jt in f)&&(j=er(j,w,x,!0))}return j}function B0(t,e,n,r,i,s){const o=!pc(e)&&Jr(t,e,n,s);let a=r;if(o){const u=fn(e);a=u?.some(d=>ie(d.value,r))?r:void 0}return e[Ne]&&i?.constAsDefaults==="always"&&(a=e.const),a}function V0(t,e,{rawFormData:n,rootSchema:r={},includeUndefinedValues:i=!1,_recurseList:s=[],experimental_defaultFormStateBehavior:o=void 0,experimental_customMergeAllOf:a=void 0,required:l,shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c}={},d){{const h=q(n)?n:{},y=e,p=o?.allOf==="populateDefaults"&&jt in y||o?.emptyObjectFields!=="skipEmptyDefaults"&&ps in y?Ce(t,y,r,h,a):y,b=p[Ne],v=Object.keys(p.properties||{}).reduce((S,E)=>{var j;const g=D(p,[se,E],{}),x=q(b)&&b[E]!==void 0,w=(q(g)&&Ne in g||x)&&o?.constAsDefaults!=="never"&&!hc(g),O=St(t,g,{rootSchema:r,_recurseList:s,experimental_defaultFormStateBehavior:o,experimental_customMergeAllOf:a,includeUndefinedValues:i===!0,parentDefaults:D(d,[E]),rawFormData:D(h,[E]),required:(j=p.required)===null||j===void 0?void 0:j.includes(E),shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c});return ca(S,E,O,i,l,p.required,o,w,g?.type==="null"),S},{});if(p.additionalProperties&&!c){const S=q(p.additionalProperties)?p.additionalProperties:{},E=new Set,j=[];Object.keys(h).filter(g=>!p.properties||!p.properties[g]).forEach(g=>{E.add(g),j.push(g)}),q(d)&&j.length===0&&Object.keys(d).filter(g=>!p.properties||!p.properties[g]).forEach(g=>E.add(g)),E.forEach(g=>{var x;const w=St(t,S,{rootSchema:r,_recurseList:s,experimental_defaultFormStateBehavior:o,experimental_customMergeAllOf:a,includeUndefinedValues:i===!0,parentDefaults:D(d,[g]),rawFormData:D(h,[g]),required:(x=p.required)===null||x===void 0?void 0:x.includes(g),shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c});ca(v,g,w,i,l,j)})}return gc(e,v)}}function q0(t,e,{rawFormData:n,rootSchema:r={},_recurseList:i=[],experimental_defaultFormStateBehavior:s=void 0,experimental_customMergeAllOf:o=void 0,required:a,requiredAsRoot:l=!1,shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c}={},d){var h,y;let f=d;const p=e,b=(h=s?.arrayMinItems)!==null&&h!==void 0?h:{},{populate:v,mergeExtraDefaults:S}=b,E=v==="never",j=v==="requiredOnly",g=v==="all"||!E&&!j,x=(y=b?.computeSkipPopulate)!==null&&y!==void 0?y:(()=>!1),O=s?.emptyObjectFields==="skipEmptyDefaults"?void 0:[];if(Array.isArray(f)&&(f=f.map((_,I)=>{const T=vi(p,mn.Fallback,I),F=Array.isArray(n)?n[I]:void 0;return St(t,T,{rootSchema:r,_recurseList:i,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,parentDefaults:_,rawFormData:F,required:a,shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c})})),Array.isArray(n)){const _=vi(p);if(E)f=n;else{const I=n.map((F,P)=>St(t,_,{rootSchema:r,_recurseList:i,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,rawFormData:F,parentDefaults:D(f,[P]),required:a,shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c}));f=er(f,I,(j&&a||g)&&S)}}if(E)return f??O;if(j&&!a)return f||void 0;let A;const C=Array.isArray(f)?f.length:0;if(!p.minItems||Ms(t,p,r,o)||x(t,p,r)||p.minItems<=C)A=f||!a&&!l?f:O;else{const _=f||[],I=vi(p,mn.Invert),T=I.default,F=Array.from({length:p.minItems-C},()=>St(t,I,{parentDefaults:T,rootSchema:r,_recurseList:i,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,required:a,shouldMergeDefaultsIntoFormData:u}));A=_.concat(F)}return gc(e,A)}function ua(t,e,n={},r){switch(Le(e)){case"object":return V0(t,e,n,r);case"array":return q0(t,e,n,r);default:return}}function yc(t,e,n,r,i=!1,s,o,a){if(!q(e))throw new Error(`Invalid schema: ${e}`);const l=Ce(t,e,r,n,o),u=St(t,l,{rootSchema:r,includeUndefinedValues:i,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,rawFormData:n,shouldMergeDefaultsIntoFormData:!0,initialDefaultsGenerated:a,requiredAsRoot:!0});if(l.type!=="object"&&q(l.default))return{...u,...n};if(q(n)||Array.isArray(n)){const{mergeDefaultsIntoFormData:c}=s||{};return er(u,n,!0,c==="useDefaultIfFormDataUndefined",!0)}return u}function bc(t={}){return"widget"in B(t)&&B(t).widget!=="hidden"}function xc(t,e,n={},r,i){if(n[ys]==="files")return!0;if(e.items){const s=Ce(t,e.items,r,void 0,i);return s.type==="string"&&s.format==="data-url"}return!1}function z0(t,e,n={},r,i,s){const o=B(n,i),{label:a=!0}=o;let l=!!a;if(l){const u=Le(e),c=D(e,ot,!1);u==="array"&&(l=c||Ms(t,e,r,s)||xc(t,e,n,r,s)||bc(n)),u==="object"&&(l=c),u==="boolean"&&n&&!n[ys]&&(l=!1),n&&n[am]&&(l=!1)}return l}function vc(t,e,n){for(var r=-1,i=e.length,s={};++r<i;){var o=e[r],a=qr(t,o);n(a,o)&&Fs(s,yn(o,t),a)}return s}function W0(t,e){return vc(t,e,function(n,r){return Jl(t,r)})}var Us=Ml(function(t,e){return t==null?{}:W0(t,e)});function H0(t,e){if(e.length===0&&typeof t!="object")return t;const n=Us(t,e);return Array.isArray(t)?Object.keys(n).map(r=>n[r]):n}function K0(t,e){const n=(i,s)=>typeof i!="object"||ge(i)||s&&!ge(i),r=(i,s=[],o=[[]])=>{const a=Object.keys(i);return a.forEach(l=>{const u=i[l];if(typeof u=="object"){const c=o.map(d=>[...d,l]);u[gs]&&u[wr]!==""?s.push(u[wr]):r(u,s,c)}else l===wr&&u!==""&&o.forEach(c=>{const d=D(e,c),h=a.length===1;(n(d,h)||Array.isArray(d)&&d.every(y=>n(y,h)))&&s.push(c)})}),s};return r(t)}function qn(t){return dn(t)||t===""?!0:Array.isArray(t)?t.length===0:q(t)?Object.values(t).every(qn):!1}function G0(t,e){return e?e(t):sc(t)}function Y0(t,e,n={},r,i){function s(f){return q(f)}function o(f){return q(f)}function a(f,p,b){var v;const{properties:S,additionalProperties:E,patternProperties:j,propertyNames:g}=f,x=new Set((v=f.required)!==null&&v!==void 0?v:[]);function w(A,C,_,I=!1){var T;const F=y(C,_,b[A]);if(!I&&q(F)){let P=o(C)?C:{};P.$ref!==void 0&&(P=Jn(P.$ref,n));const $=new Set((T=P.required)!==null&&T!==void 0?T:[]);if(Object.entries(F).every(([M,U])=>!$.has(M)&&qn(U)))return}F!==void 0&&(b[A]=F)}if(S!==void 0)for(const[A,C]of Object.entries(S))w(A,C,p[A],x.has(A));let O;if(j!==void 0){O=[];const A=Object.entries(j).map(([_,I])=>[new RegExp(_),I]),C=new Set(Object.keys(S??{}));for(const[_,I]of Object.entries(p))if(!C.has(_)){const T=A.find(([F])=>F.test(_));T===void 0?O.push(_):w(_,T[1],I)}}if(E!==void 0&&E!==!1){const A=E;if(O!==void 0)for(const C of O)w(C,A,p[C]);else{const C=new Set(Object.keys(S??{}));for(const[_,I]of Object.entries(p))C.has(_)||w(_,A,I)}}if(g!==void 0)for(const[A,C]of Object.entries(p))b[A]=C;return b}function l(f,p,b){const{items:v,additionalItems:S}=f;if(v!==void 0)if(Array.isArray(v))for(let E=0;E<v.length;E+=1)b.push(y(v[E],p[E]));else for(let E=0;E<p.length;E+=1)b.push(y(v,p[E]));if(S)for(let E=b.length;E<p.length;E+=1)b.push(y(S,p[E]));return b}function u(f,p,b){const{if:v,then:S,else:E}=f;if(v===void 0)return b;const g=(o(v)?t.isValid(v,p,n):v)?S:E;return g===void 0?b:y(g,p,b)}function c(f,p,b,v){if(!Array.isArray(f)||Jr(t,p,n,i))return v;const S=cc(f,!0,n),E=un(t,n,b,S,0,He(p),i),j=f[E],g=q(j)?vt(j,n,[]):S[E];return y(g,b,v)}function d(f,p,b){const{anyOf:v}=f;if(!Array.isArray(v))return b;if(p===void 0||Array.isArray(p)&&p.length===0||q(p)&&Object.keys(p).length===0){let S=b;for(const E of v)S=y(E,p,S);return S}return c(v,f,p,b)}function h(f,p,b){const{dependencies:v}=f;if(v===void 0||!s(p))return b;let S=b;for(const[E,j]of Object.entries(v))E in p&&!Array.isArray(j)&&(S=y(j,p,S));return S}function y(f,p,b){if(p===void 0||f===!1)return;if(f===!0||ge(f))return p;let v=f;const{$ref:S,allOf:E}=v;if(S!==void 0)return y(Jn(S,n),p,b);E&&(v=G0(v,i));let j=d(v,p,c(v.oneOf,v,p,b));const g=Le(v);if(g==="object"){if(!s(p))return;j=a(v,p,s(j)?j:{})}else if(g==="array"){if(!Array.isArray(p))return;j=l(v,p,Array.isArray(j)?j:[])}else j===void 0&&(j=p);return h(v,p,u(v,p,j))}return y(e,r)}const De=Symbol("no Value");function Sc(t){if(Array.isArray(t.enum))return t.enum;const e=t.oneOf||t.anyOf;if(!Array.isArray(e))return;const n=e.map(r=>Ne in r?r[Ne]:Array.isArray(r.enum)&&r.enum.length===1?r.enum[0]:De).filter(r=>r!==De);return n.length>0?n:void 0}function J0(t,e){const n=Sc(t);if(!n||n.some(i=>ie(i,e)))return De;const r=D(t,Ft,De);return r!==De&&n.some(i=>ie(i,r))?r:n.length===1?n[0]:void 0}function Qi(t,e,n,r,i={},s){let o;if(X(n,se)){const a={};if(X(r,se)){const c=D(r,se,{});Object.keys(c).forEach(d=>{X(i,d)&&(a[d]=void 0)})}const l=Object.keys(D(n,se,{})),u={};l.forEach(c=>{const d=D(i,c);let h=D(r,[se,c],{}),y=D(n,[se,c],{});X(h,ue)&&(h=Ce(t,h,e,d,s)),X(y,ue)&&(y=Ce(t,y,e,d,s));const f=D(h,"type"),p=D(y,"type");if(!f||f===p)if(X(a,c)&&delete a[c],p==="object"||p==="array"&&Array.isArray(d)){const b=Qi(t,e,y,h,d,s);(b!==void 0||p==="array")&&(u[c]=b)}else{const b=D(y,Ft,De),v=D(h,Ft,De);b!==De&&b!==d&&(v===d?a[c]=b:D(y,"readOnly")===!0&&(a[c]=void 0));const S=D(y,Ne,De),E=D(h,Ne,De);if(S!==De&&S!==d&&(a[c]=E===d?S:void 0),X(i,c)){const j=J0(y,d);j!==De&&(a[c]=j)}}}),o={...typeof i=="string"||Array.isArray(i)?void 0:i,...a,...u}}else if(D(r,"type")==="array"&&D(n,"type")==="array"&&Array.isArray(i)){let a=D(r,"items"),l=D(n,"items");if(typeof a=="object"&&typeof l=="object"&&!Array.isArray(a)&&!Array.isArray(l)){X(a,ue)&&(a=Ce(t,a,e,i,s)),X(l,ue)&&(l=Ce(t,l,e,i,s));const u=D(a,"type"),c=D(l,"type");if(!u||u===c){const d=D(n,"maxItems",-1);if(c==="object")o=i.reduce((h,y)=>{const f=Qi(t,e,l,a,y,s);return f!==void 0&&(d<0||h.length<d)&&h.push(f),h},[]);else{const h=Sc(l),y=h?i.filter(f=>h.some(p=>ie(p,f))):i;o=d>0&&y.length>d?y.slice(0,d):y}}}else typeof a=="boolean"&&typeof l=="boolean"&&a===l&&(o=i)}return o}function pt(t,e,n,r,i,s=[],o){if(ue in e||hs in e||jt in e||ps in e){const l=Ce(t,e,r,i,o);if(s.findIndex(c=>ie(c,l))===-1)return pt(t,l,n,r,i,s.concat(l),o)}let a={[wr]:n.replace(/^\./,"")};if(W in e||ee in e){const l=W in e?e.oneOf:e.anyOf,u=He(e),c=un(t,r,i,l,0,u,o),d=l[c];a={...a,...pt(t,d,n,r,i,s,o)}}if(en in e&&e[en]!==!1){ce(a,gs,!0);const l=ne(e[en])?e[en]:{},u=D(e,se,{});for(const c of Object.keys(i??{}))c in u||(a[c]=pt(t,l,`${n}.${c}`,r,D(i,[c]),s,o))}if(on in e&&Array.isArray(i)){const{items:l,additionalItems:u}=e;Array.isArray(l)?i.forEach((c,d)=>{l[d]?a[d]=pt(t,l[d],`${n}.${d}`,r,c,s,o):u?a[d]=pt(t,u,`${n}.${d}`,r,c,s,o):console.warn(`Unable to generate path schema for "${n}.${d}". No schema defined for it`)}):i.forEach((c,d)=>{a[d]=pt(t,l,`${n}.${d}`,r,c,s,o)})}else if(se in e)for(const l in e.properties){const u=D(e,[se,l],{});a[l]=pt(t,u,`${n}.${l}`,r,D(i,[l]),s,o)}return a}function Z0(t,e,n="",r,i,s){return pt(t,e,n,r,i,void 0,s)}class X0{constructor(e,n,r,i){n&&n[$n]===jr?this.rootSchema=Yi(n,D(n,de,"#")):this.rootSchema=n,this.validator=e,this.experimental_defaultFormStateBehavior=r,this.experimental_customMergeAllOf=i}getRootSchema(){return this.rootSchema}getValidator(){return this.validator}doesSchemaUtilsDiffer(e,n,r={},i){return!e||!n?!1:this.validator!==e||!ie(this.rootSchema,n)||!ie(this.experimental_defaultFormStateBehavior,r)||this.experimental_customMergeAllOf!==i}findFieldInSchema(e,n,r){return P0(this.validator,this.rootSchema,e,n,r,this.experimental_customMergeAllOf)}findSelectedOptionInXxxOf(e,n,r,i){return Rn(this.validator,this.rootSchema,e,n,r,i,this.experimental_customMergeAllOf)}getDefaultFormState(e,n,r=!1,i){return yc(this.validator,e,n,this.rootSchema,r,this.experimental_defaultFormStateBehavior,this.experimental_customMergeAllOf,i)}getDisplayLabel(e,n,r){return z0(this.validator,e,n,this.rootSchema,r,this.experimental_customMergeAllOf)}getClosestMatchingOption(e,n,r,i){return un(this.validator,this.rootSchema,e,n,r,i,this.experimental_customMergeAllOf)}getFirstMatchingOption(e,n,r){return kr(this.validator,e,n,this.rootSchema,r)}getFromSchema(e,n,r){return Ar(this.validator,this.rootSchema,e,n,r,this.experimental_customMergeAllOf)}isFilesArray(e,n){return xc(this.validator,e,n,this.rootSchema,this.experimental_customMergeAllOf)}isMultiSelect(e){return Ms(this.validator,e,this.rootSchema,this.experimental_customMergeAllOf)}isSelect(e){return Jr(this.validator,e,this.rootSchema,this.experimental_customMergeAllOf)}omitExtraData(e,n){return Y0(this.validator,e,this.rootSchema,n)}retrieveSchema(e,n,r){return Ce(this.validator,e,this.rootSchema,n,this.experimental_customMergeAllOf,r)}sanitizeDataForNewSchema(e,n,r){return Qi(this.validator,this.rootSchema,e,n,r,this.experimental_customMergeAllOf)}toPathSchema(e,n,r){return Z0(this.validator,e,n,this.rootSchema,r,this.experimental_customMergeAllOf)}}function Q0(t,e,n={},r){return new X0(t,e,n,r)}function ex(t){var e;if(!t.includes("data:"))throw new Error("File is invalid: URI must be a dataURI");const r=t.slice(5).split(";base64,");if(r.length!==2)throw new Error("File is invalid: dataURI must be base64");const[i,s]=r,[o,...a]=i.split(";"),l=o||"",u=decodeURI(((e=a.map(c=>c.split("=")).find(([c])=>c==="name"))===null||e===void 0?void 0:e[1])||"unknown");try{const c=atob(s),d=new Array(c.length);for(let y=0;y<c.length;y+=1)d[y]=c.charCodeAt(y);return{blob:new window.Blob([new Uint8Array(d)],{type:l}),name:u}}catch(c){throw new Error(`File is invalid: ${c.message}`)}}function gt(t,e){let n=String(t);for(;n.length<e;)n=`0${n}`;return n}function wc(t,e){const n=t<=0&&e<=0,r=t<0||e<0;if(!n&&r)throw new Error(`Both start (${t}) and stop (${e}) must both be <= 0 or > 0, got one of each`);const i=new Date().getFullYear(),s=n?i+t:t,o=n?i+e:e;if(s>o)return wc(e,t).reverse();const a=[];for(let l=s;l<=o;l+=1)a.push({value:l,label:gt(l,2)});return a}function tx(t,e){let n=t;if(Array.isArray(e)){const r=n.split(/(%\d)/);e.forEach((i,s)=>{const o=r.findIndex(a=>a===`%${s+1}`);o>=0&&(r[o]=i)}),n=r.join("")}return n}function nx(t,e){return tx(t,e)}function Zr(t,e=[],n){if(Array.isArray(t))return t.map(s=>Zr(s,e)).filter(s=>s!==void 0);const r=t===""||t===null?-1:Number(t),i=e[r];return i?i.value:n}function jc(t,e,n=[]){const r=Zr(t,n);return Array.isArray(e)?e.filter(i=>!ie(i,r)):ie(r,e)?void 0:e}function cr(t,e){return Array.isArray(e)?e.some(n=>ie(n,t)):ie(e,t)}function rx(t,e=[],n=!1){const r=e.map((i,s)=>cr(i.value,t)?String(s):void 0).filter(i=>typeof i<"u");return n?r:r[0]}function Oc(t,e,n,r="indexed",i){if(typeof t>"u"||n&&Array.isArray(t)&&t.length<1||!n&&t===i)return i;if(r==="realValue")return n?t.map(String):String(t);const o=rx(t,e,n);return typeof o>"u"?i:o}function Ec(t,e,n=[]){const r=Zr(t,n);if(!dn(r)){const i=n.findIndex(a=>r===a.value),s=n.map(({value:a})=>a);return e.slice(0,i).concat(r,e.slice(i)).sort((a,l)=>+(s.indexOf(a)>s.indexOf(l)))}return e}function da(t,e,n){if(t===""||!Array.isArray(e))return n;const r=e.find(s=>String(s.value)===t);if(r)return r.value;const i=Number(t);return!Number.isNaN(i)&&i>=0&&i<e.length?e[i].value:n}function Te(t,e,n="indexed",r){return n!=="realValue"?Zr(t,e,r):Array.isArray(t)?t.map(i=>da(i,e,r)):da(t,e,r)}function ur(t,e,n="indexed"){return n!=="realValue"?String(e):dn(t)?"":String(typeof t=="object"?e:t)}var ix=1,sx=4;function Ls(t){return Vn(t,ix|sx)}function ox(t,e,n,r){return r=typeof r=="function"?r:void 0,t==null?t:Fs(t,e,n,r)}class Ac{constructor(e){this.errorSchema={},this.resetAllErrors(e)}get ErrorSchema(){return this.errorSchema}getOrCreateErrorBlock(e){let r=Array.isArray(e)&&e.length>0||typeof e=="string"?D(this.errorSchema,e):this.errorSchema;return!r&&e&&(r={},ox(this.errorSchema,e,r,Object)),r}resetAllErrors(e){return this.errorSchema=e?Ls(e):{},this}addErrors(e,n){const r=this.getOrCreateErrorBlock(n);let i=D(r,Ae);return Array.isArray(i)||(i=[],r[Ae]=i),Array.isArray(e)?ce(r,Ae,[...new Set([...i,...e])]):ce(r,Ae,[...new Set([...i,e])]),this}setErrors(e,n){const r=this.getOrCreateErrorBlock(n),i=Array.isArray(e)?[...new Set([...e])]:[e];return ce(r,Ae,i),this}clearErrors(e){const n=this.getOrCreateErrorBlock(e);return ce(n,Ae,[]),this}}var ax=200;function lx(t,e,n,r){var i=-1,s=Rs,o=!0,a=t.length,l=[],u=e.length;if(!a)return l;e.length>=ax&&(s=Xn,o=!1,e=new Rt(e));e:for(;++i<a;){var c=t[i],d=c;if(c=c!==0?c:0,o&&d===d){for(var h=u;h--;)if(e[h]===d)continue e;l.push(c)}else s(e,d,r)||l.push(c)}return l}var cx=Kr(function(t,e){return Zn(t)?lx(t,lr(e,1,Zn,!0)):[]});function ux(t,e){if(t==null)return{};var n=gn(Ts(t),function(r){return[r]});return e=Ds(e),vc(t,n,function(r,i){return e(r,i[0])})}function fa(t,e){const n=Ot(t),r=Ot(e);if(t===e||!n&&!r)return[];if(n&&!r)return ze(t);if(!n&&r)return ze(e);const i=ze(ux(t,(o,a)=>!ie(o,D(e,a)))),s=cx(ze(e),ze(t));return[...i,...s]}function dx(t,e,n=[1900,new Date().getFullYear()+2],r="YMD"){const{day:i,month:s,year:o,hour:a,minute:l,second:u}=t,c={type:"day",range:[1,31],value:i},d={type:"month",range:[1,12],value:s},h={type:"year",range:n,value:o},y=[];switch(r){case"MDY":y.push(d,c,h);break;case"DMY":y.push(c,d,h);break;default:y.push(h,d,c)}return e&&y.push({type:"hour",range:[0,23],value:a},{type:"minute",range:[0,59],value:l},{type:"second",range:[0,59],value:u}),y}function Cc(t){const e={};return t.multipleOf&&(e.step=t.multipleOf),(t.minimum||t.minimum===0)&&(e.min=t.minimum),(t.maximum||t.maximum===0)&&(e.max=t.maximum),e}function _c(t,e,n={},r=!0){const i={type:e||"text",...Cc(t)};return n.inputType?i.type=n.inputType:e||(t.type==="number"?(i.type="number",r&&i.step===void 0&&(i.step="any")):t.type==="integer"&&(i.type="number",i.step===void 0&&(i.step=1))),["date","datetime-local","time","week","month"].includes(i.type)&&(t.formatMinimum!==void 0&&(i.min=t.formatMinimum),t.formatMaximum!==void 0&&(i.max=t.formatMaximum)),n.autocomplete&&(i.autoComplete=n.autocomplete),n.accept&&(i.accept=n.accept),i}function xn(t){var e;return(e=t?.optionValueFormat)!==null&&e!==void 0?e:"indexed"}const ma={props:{disabled:!1},submitText:"Submit",norender:!1};function Ic(t={}){const e=B(t);if(e&&e[Pr]){const n=e[Pr];return{...ma,...n}}return ma}function V(t,e,n={}){const{templates:r}=e;if(t==="ButtonTemplates")return r[t];if(Object.hasOwn(n,t)&&typeof n[t]=="string"&&Object.hasOwn(r,n[t])){const i=n[t];return r[i]}return n[t]||r[t]}var fx=0;function Tc(t){var e=++fx;return vs(t)+e}function Bs(){if(D(globalThis,"process.env.NODE_ENV")!=="test")return{};const t=new Map;return new Proxy({},{get(e,n){return t.has(n)||t.set(n,Tc("test-id-")),t.get(n)}})}const Si={boolean:{checkbox:"CheckboxWidget",radio:"RadioWidget",select:"SelectWidget",hidden:"HiddenWidget"},string:{text:"TextWidget",password:"PasswordWidget",email:"EmailWidget",hostname:"TextWidget",ipv4:"TextWidget",ipv6:"TextWidget",uri:"URLWidget","data-url":"FileWidget",radio:"RadioWidget",select:"SelectWidget",textarea:"TextareaWidget",hidden:"HiddenWidget",date:"DateWidget",datetime:"DateTimeWidget","date-time":"DateTimeWidget","alt-date":"AltDateWidget","alt-datetime":"AltDateTimeWidget",time:"TimeWidget",color:"ColorWidget",file:"FileWidget"},number:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},integer:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},array:{select:"SelectWidget",checkboxes:"CheckboxesWidget",files:"FileWidget",hidden:"HiddenWidget"}};function mx(t){let e=D(t,"MergedWidget");if(!e){const n=t.defaultProps&&t.defaultProps.options||{};e=({options:r,...i})=>m.jsx(t,{options:{...n,...r},...i}),ce(t,"MergedWidget",e)}return e}function tt(t,e,n={}){const r=Le(t);if(typeof e=="function"||e&&so.isForwardRef(N.createElement(e))||so.isMemo(e))return mx(e);if(typeof e!="string")throw new Error(`Unsupported widget definition: ${typeof e} in schema: ${JSON.stringify(t)}`);if(e in n){const i=n[e];return tt(t,i,n)}if(typeof r=="string"){if(!(r in Si))throw new Error(`No widget for type '${r}' in schema: ${JSON.stringify(t)}`);if(e in Si[r]){const i=n[Si[r][e]];return tt(t,i,n)}}throw new Error(`No widget '${e}' for type '${r}' in schema: ${JSON.stringify(t)}`)}function hx(t){let e=0;for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);e=(e<<5)-e+r,e&=e}return e.toString(16)}function px(t){const e=new Set;return JSON.stringify(t,(n,r)=>(e.add(n),r)),JSON.stringify(t,Array.from(e).sort())}function Xe(t){return hx(px(t))}function gx(t){return Xe(t)}function yx(t,e,n={}){try{return tt(t,e,n),!0}catch(r){const i=r;if(i.message&&(i.message.startsWith("No widget")||i.message.startsWith("Unsupported widget")))return!1;throw r}}function zt(t,e){return`${At(t)?t:t[de]}__${e}`}function Wt(t){return zt(t,"description")}function Vs(t){return zt(t,"error")}function Xr(t){return zt(t,"examples")}function qs(t){return zt(t,"help")}function Qr(t){return zt(t,"title")}function Fe(t,e=!1){const n=e?` ${Xr(t)}`:"";return`${Vs(t)} ${Wt(t)} ${qs(t)}${n}`}function Pt(t,e){return`${t}-${e}`}function Qe(t,e){return zt(t,e)}function wi(t,e){return zt(t,`optional${e}`)}function vn(t){return!dn(t)&&(!ne(t)||Array.isArray(t)||!ge(t))}function bx(t,e){const{rootSchema:n,schemaUtils:r}=t;if(ie(e,n))return!0;if(ue in n){const i=r.retrieveSchema(n);return ie(e,cn(i,Ln))}return!1}function Nc(t,e,n){return e?n:t}function xx(t){return t?new Date(t).toJSON():void 0}function zs(t,e,n){const r=[om];return X(t,mo)&&r.unshift(mo),D(t,[...r,e],n)}function vx(t,e){if(!Array.isArray(e))return t;const n=c=>c.reduce((d,h)=>(d[h]=!0,d),{}),r=c=>c.length>1?`properties '${c.join("', '")}'`:`property '${c[0]}'`,i=n(t),s=e.filter(c=>c==="*"||i[c]),o=n(s),a=t.filter(c=>!o[c]),l=s.indexOf("*");if(l===-1){if(a.length)throw new Error(`uiSchema order list does not contain ${r(a)}`);return s}if(l!==s.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");const u=[...s];return u.splice(l,1,...a),u}function ji(t,e=!0){if(!t)return{year:-1,month:-1,day:-1,hour:e?-1:0,minute:e?-1:0,second:e?-1:0};const n=new Date(t);if(Number.isNaN(n.getTime()))throw new Error(`Unable to parse date ${t}`);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:e?n.getUTCHours():0,minute:e?n.getUTCMinutes():0,second:e?n.getUTCSeconds():0}}function nn(t,e,n,r){if(!q(e))return r;const i=Ce(t,e,n,r);if(Array.isArray(r)){const c=i.items;if(!c)return r;let d=!1;const h=r.map((y,f)=>{let p=c;Array.isArray(c)&&(p=c[f]||i.additionalItems||{});const b=nn(t,p,n,y);return b!==y&&(d=!0),b===void 0?{}:b});return d?h:r}const{properties:s,required:o=[]}=i;if(!q(r)||!s)return r;const a={},l=r;let u=!1;for(const c of Object.keys(l)){const d=l[c],h=s[c]||{},y=o.includes(c),f=q(d),p=Array.isArray(d);if((f||p)&&s[c]){const b=nn(t,h,n,d);(y||!qn(b))&&(a[c]=b,u=!0)}else(y||!qn(d)||!s[c])&&(a[c]=d,qn(d)||(u=!0))}if(!(!u&&Object.keys(a).length===0))return a}function Sx(t,e,n){var r,i;const s=(r=t[Ln])!==null&&r!==void 0?r:t[ue],o=n.uiSchemaDefinitions,a=s&&o?o[s]:void 0;let l;if(a?!e||ge(e)?l={...a}:l=kt(a,e):l=e||{},o){let u=t;if(s&&t[ue]&&!t[Ln])try{u=Jn(s,n.rootSchema)}catch(c){return console.warn(`could not resolve $ref in resolveUiSchema:
3
+ `,c),l}for(const c of[W,ee]){const d=u[c];if(Array.isArray(d)&&d.length>0){const h=l[c],y=Array.isArray(h)?[...h]:[];let f=!1;for(let p=0;p<d.length;p++){const b=d[p],v=(i=b?.[Ln])!==null&&i!==void 0?i:b?.[ue];if(v&&v in o){const S=y[p]||{};y[p]=kt(o[v],S),f=!0}}f&&(l[c]=y)}}}return l}function zn(t){if(t.const||t.enum&&t.enum.length===1&&t.enum[0]===!0)return!0;if(t.anyOf&&t.anyOf.length===1)return zn(t.anyOf[0]);if(t.oneOf&&t.oneOf.length===1)return zn(t.oneOf[0]);if(t.allOf){const e=n=>zn(n);return t.allOf.some(e)}return!1}function ha(t,e){if(Object.is(t,e))return!0;if(t==null||e==null||typeof t!="object"||typeof e!="object")return!1;const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i+=1){const s=n[i];if(!Object.hasOwn(e,s)||!Object.is(t[s],e[s]))return!1}return!0}function Pc(t,e,n,r="customDeep"){if(r==="always")return!0;if(r==="shallow"){const{props:o,state:a}=t;return!ha(o,e)||!ha(a,n)}const{props:i,state:s}=t;return!ie(i,e)||!ie(s,n)}function pa(t){const e=Ql(t.map(n=>ne(n)?Le(n):void 0).flat().filter(n=>n!==void 0));return e.length===1?e[0]:e}function dr(t,e,n,r){const{enableOptionalDataFieldForType:i=[]}=B(r,t.globalUiOptions);let s;return ee in e&&Array.isArray(e[ee])?s=pa(e[ee]):W in e&&Array.isArray(e[W])?s=pa(e[W]):s=Le(e),!bx(t,e)&&!n&&!!s&&!Array.isArray(s)&&!!i.find(o=>o===s)}function ga(t,e=!0){const{year:n,month:r,day:i,hour:s=0,minute:o=0,second:a=0}=t,l=Date.UTC(n,r-1,i,s,o,a),u=new Date(l).toJSON();return e?u:u.slice(0,10)}function Ws(t,e=[]){if(!t)return[];let n=[];return Ae in t&&(n=n.concat(t[Ae].map(r=>{const i=`.${e.join(".")}`;return{property:i,message:r,stack:`${i} ${r}`}}))),Object.keys(t).reduce((r,i)=>{if(i!==Ae){const s=t[i];if(Ot(s))return r.concat(Ws(s,[...e,i]))}return r},n)}function Fc(t){return we(t)?gn(t,Et):rr(t)?[t]:Cs(ml(vs(t)))}function wx(t){const e=new Ac;return t.length&&t.forEach(n=>{const{property:r,message:i}=n,s=r==="."?[]:Fc(r);s.length>0&&s[0]===""&&s.splice(0,1),i&&e.addErrors(i,s)}),e.ErrorSchema}function Be(t,e,n,r){const i=Array.isArray(n)?n:n?.path,s=t===""?[]:[t],o=i?i.concat(...s):s,a=[e.idPrefix,...o].join(e.idSeparator);let l;return e.nameGenerator&&o.length>0&&(l=e.nameGenerator(o,e.idPrefix,r)),{path:o,[de]:a,...l!==void 0&&{name:l}}}function $c(t){return Object.keys(t).reduce((e,n)=>{if(n==="addError")return e;const r=t[n];return Ot(r)?{...e,[n]:$c(r)}:{...e,[n]:r}},{})}function jx(t){return Object.values(t).every(e=>e!==-1)}function Ox(t){const{className:e="form-control",type:n,range:r,value:i,select:s,rootId:o,name:a,disabled:l,readonly:u,autofocus:c,registry:d,onBlur:h,onFocus:y}=t,f=`${o}_${n}`,{SelectWidget:p}=d.widgets,b=N.useCallback(v=>s(n,v),[s,n]);return m.jsx(p,{schema:{type:"integer"},id:f,name:a,className:e,options:{enumOptions:wc(r[0],r[1])},placeholder:n,value:i,disabled:l,readonly:u,autofocus:c,onChange:b,onBlur:h,onFocus:y,registry:d,label:"","aria-describedby":Fe(o)})}function Ex(t){const{time:e=!1,disabled:n=!1,readonly:r=!1,options:i,onChange:s,value:o}=t,[a,l]=N.useState(ji(o,e));N.useEffect(()=>{l(ji(o,e))},[e,o]);const u=N.useCallback((y,f)=>{const p={...a,[y]:typeof f>"u"?-1:f};jx(p)?s(ga(p,e)):l(p)},[a,s,e]),c=N.useCallback(y=>{y.preventDefault(),!(n||r)&&s(void 0)},[n,r,s]),d=N.useCallback(y=>{if(y.preventDefault(),n||r)return;const f=ji(new Date().toJSON(),e);s(ga(f,e))},[n,r,e,s]);return{elements:N.useMemo(()=>dx(a,e,i.yearsRange,i.format),[a,e,i.yearsRange,i.format]),handleChange:u,handleClear:c,handleSetNow:d}}function Ht(t){const e=N.useRef(t);return ie(t,e.current)||(e.current=t),e.current}function Ax(t,e){return t.replace(";base64",`;name=${encodeURIComponent(e)};base64`)}function Cx(t){const{name:e,size:n,type:r}=t;return new Promise((i,s)=>{const o=new window.FileReader;o.onerror=s,o.onload=a=>{var l;typeof((l=a.target)===null||l===void 0?void 0:l.result)=="string"?i({dataURL:Ax(a.target.result,e),name:e,size:n,type:r}):i({dataURL:null,name:e,size:n,type:r})},o.readAsDataURL(t)})}function _x(t){return Promise.all(Array.from(t).map(Cx))}function ya(t){return t.reduce((e,n)=>{if(!n)return e;try{const{blob:r,name:i}=ex(n);return[...e,{dataURL:n,name:i,size:r.size,type:r.type}]}catch{return e}},[])}function Ix(t,e,n=!1){const r=N.useMemo(()=>n&&t?Array.isArray(t)?t:[t]:[],[t,n]),i=N.useMemo(()=>Array.isArray(t)?ya(t):ya([t||""]),[t]),s=N.useCallback(async a=>{const u=(await _x(a)).map(c=>c.dataURL||null);e(n?r.concat(...u):u[0])},[r,n,e]),o=N.useCallback(a=>{if(n){const l=r.filter((u,c)=>c!==a);e(l)}else e(void 0)},[r,n,e]);return{filesInfo:i,handleChange:s,handleRemove:o}}function Tx(t){if(!t)return"";const e=new Date(t),n=gt(e.getFullYear(),4),r=gt(e.getMonth()+1,2),i=gt(e.getDate(),2),s=gt(e.getHours(),2),o=gt(e.getMinutes(),2),a=gt(e.getSeconds(),2),l=gt(e.getMilliseconds(),3);return`${n}-${r}-${i}T${s}:${o}:${a}.${l}`}function kn(t,e,n=!1){if(!e)return t;const{errors:r,errorSchema:i}=t;let s=Ws(e),o=e;return ge(i)||(o=kt(i,e,n?"preventDuplicates":!0),s=[...r].concat(s)),{errorSchema:o,errors:s}}function Nx(t){const e=t;for(const n in e)if(Object.hasOwn(e,n)){const r=e[n];n===ue&&typeof r=="string"&&r.startsWith("#")?e[n]=al+r:e[n]=Hs(r)}return t}function Px(t){return t.map(e=>Hs(e))}function Hs(t){return Array.isArray(t)?Px([...t]):ne(t)?Nx({...t}):t}var G;(function(t){t.ArrayItemTitle="Item",t.MissingItems="Missing items definition",t.EmptyArray="No items yet. Use the button below to add some.",t.YesLabel="Yes",t.NoLabel="No",t.CloseLabel="Close",t.ErrorsLabel="Errors",t.NewStringDefault="New Value",t.AddButton="Add",t.AddItemButton="Add Item",t.CopyButton="Copy",t.MoveDownButton="Move down",t.MoveUpButton="Move up",t.RemoveButton="Remove",t.NowLabel="Now",t.ClearLabel="Clear",t.AriaDateLabel="Select a date",t.PreviewLabel="Preview",t.DecrementAriaLabel="Decrease value by 1",t.IncrementAriaLabel="Increase value by 1",t.OptionalObjectAdd="Add data for optional field",t.OptionalObjectRemove="Remove data for optional field",t.OptionalObjectEmptyMsg="No data for optional field",t.Type="Type",t.Value="Value",t.ClearButton="clear input",t.UnknownFieldType="Unknown field type %1",t.OptionPrefix="Option %1",t.TitleOptionPrefix="%1 option %2",t.KeyLabel="%1 Key",t.DeprecatedLabel="%1 (deprecated)",t.InvalidObjectField='Invalid "%1" object field configuration: _%2_.',t.UnsupportedField="Unsupported field schema.",t.UnsupportedFieldWithId="Unsupported field schema for field `%1`.",t.UnsupportedFieldWithReason="Unsupported field schema: _%1_.",t.UnsupportedFieldWithIdAndReason="Unsupported field schema for field `%1`: _%2_.",t.FilesInfo="**%1** (%2, %3 bytes)"})(G||(G={}));function Fx(t,e){var n=we(t)?Os:mc;return n(t,ql(e))}function $x(t,e){return t==null?!0:Dl(t,e)}function es(){return Tc("rjsf-array-item-")}function ba(t){return Array.isArray(t)?t.map(e=>({key:es(),item:e})):[]}function Dc(t){return Array.isArray(t)?t.map(e=>e.item):[]}function Dx(t){return Array.isArray(t.type)?!t.type.includes("null"):t.type!=="null"}function Rc(t,e,n,r){let{addable:i}=B(r,t.globalUiOptions);return i!==!1&&(e.maxItems!==void 0?i=n.length<e.maxItems:i=!0),i}function kc(t,e,n,r){if(typeof t.items=="function")try{return t.items(e,n,r)}catch(i){console.error(`Error executing dynamic uiSchema.items function for item at index ${n}:`,i);return}else return t.items}function Rx(t,e){const{schemaUtils:n,globalFormOptions:r}=t;let i=e.items;return r.useFallbackUiForUnsupportedType&&!i?i={}:ks(e)&&nm(e)&&(i=e.additionalItems),n.getDefaultFormState(i)}function kx(t){const{schema:e,fieldPathId:n,uiSchema:r,formData:i=[],disabled:s=!1,readonly:o=!1,autofocus:a=!1,required:l=!1,placeholder:u,onBlur:c,onFocus:d,registry:h,rawErrors:y,name:f,onSelectChange:p}=t,{widgets:b,schemaUtils:v,globalFormOptions:S,globalUiOptions:E}=h,j=v.retrieveSchema(e.items,i),g=r?.items??r,x=fn(j,g),{widget:w="select",title:O,...A}=B(r,E),C=tt(e,w,b),_=O??e.title??f,I=v.getDisplayLabel(e,r,E),T=Ht(Be("",S,n,!0));return m.jsx(C,{id:T[de],name:f,multiple:!0,onChange:p,onBlur:c,onFocus:d,options:{...A,enumOptions:x},schema:e,uiSchema:r,registry:h,value:i,disabled:s,readonly:o,required:l,label:_,hideLabel:!I,placeholder:u,autofocus:a,rawErrors:y,htmlName:T.name})}function Mx(t){const{schema:e,fieldPathId:n,uiSchema:r,disabled:i=!1,readonly:s=!1,autofocus:o=!1,required:a=!1,hideError:l,placeholder:u,onBlur:c,onFocus:d,formData:h=[],registry:y,rawErrors:f,name:p,onSelectChange:b}=t,{widgets:v,schemaUtils:S,globalFormOptions:E,globalUiOptions:j}=y,{widget:g,title:x,...w}=B(r,j),O=tt(e,g,v),A=x??e.title??p,C=S.getDisplayLabel(e,r,j),_=Ht(Be("",E,n,!0));return m.jsx(O,{id:_[de],name:p,multiple:!0,onChange:b,onBlur:c,onFocus:d,options:w,schema:e,uiSchema:r,registry:y,value:h,disabled:i,readonly:s,hideError:l,required:a,label:A,hideLabel:!C,placeholder:u,autofocus:o,rawErrors:f,htmlName:_.name})}function Ux(t){const{schema:e,uiSchema:n,fieldPathId:r,name:i,disabled:s=!1,readonly:o=!1,autofocus:a=!1,required:l=!1,onBlur:u,onFocus:c,registry:d,formData:h=[],rawErrors:y,onSelectChange:f}=t,{widgets:p,schemaUtils:b,globalFormOptions:v,globalUiOptions:S}=d,{widget:E="files",title:j,...g}=B(n,S),x=tt(e,E,p),w=j??e.title??i,O=b.getDisplayLabel(e,n,S),A=Ht(Be("",v,r,!0));return m.jsx(x,{options:g,id:A[de],name:i,multiple:!0,onChange:f,onBlur:u,onFocus:c,schema:e,uiSchema:n,value:h,disabled:s,readonly:o,required:l,registry:d,autofocus:a,rawErrors:y,label:w,hideLabel:!O,htmlName:A.name})}function Mc(t){const{itemKey:e,index:n,name:r,disabled:i,hideError:s,readonly:o,registry:a,uiOptions:l,parentUiSchema:u,canAdd:c,canRemove:d=!0,canMoveUp:h,canMoveDown:y,itemSchema:f,itemData:p,itemUiSchema:b,itemFieldPathId:v,itemErrorSchema:S,autofocus:E,onBlur:j,onFocus:g,onChange:x,rawErrors:w,totalItems:O,title:A,handleAddItem:C,handleCopyItem:_,handleRemoveItem:I,handleReorderItems:T}=t,{schemaUtils:F,fields:{ArraySchemaField:P,SchemaField:$},globalUiOptions:k}=a,M=Ht(v),U=P||$,J=V("ArrayFieldItemTemplate",a,l),ae=F.getDisplayLabel(f,b,k),{description:fe}=B(b),ye=!!fe||!!f.description,{orderable:L=!0,removable:le=!0,copyable:te=!1}=l,H={moveUp:L&&h,moveDown:L&&y,copy:te&&c,remove:le&&d,toolbar:!1};H.toolbar=Object.keys(H).some(xe=>H[xe]);const K=N.useCallback(xe=>{C(xe,n+1)},[C,n]),z=N.useCallback(xe=>{_(xe,n)},[_,n]),re=N.useCallback(xe=>{I(xe,n)},[I,n]),oe=N.useCallback(xe=>{T(xe,n,n-1)},[T,n]),Oe=N.useCallback(xe=>{T(xe,n,n+1)},[T,n]),Ee={children:m.jsx(U,{name:r,title:A,index:n,schema:f,uiSchema:b,formData:p,errorSchema:S,fieldPathId:M,required:Dx(f),onChange:x,onBlur:j,onFocus:g,registry:a,disabled:i,readonly:o,hideError:s,autofocus:E,rawErrors:w}),buttonsProps:{fieldPathId:M,disabled:i,readonly:o,canAdd:c,hasCopy:H.copy,hasMoveUp:H.moveUp,hasMoveDown:H.moveDown,hasRemove:H.remove,index:n,totalItems:O,onAddItem:K,onCopyItem:z,onRemoveItem:re,onMoveUpItem:oe,onMoveDownItem:Oe,registry:a,schema:f,uiSchema:b},itemKey:e,className:"rjsf-array-item",disabled:i,hasToolbar:H.toolbar,index:n,totalItems:O,readonly:o,registry:a,schema:f,uiSchema:b,parentUiSchema:u,displayLabel:ae,hasDescription:ye};return m.jsx(J,{...Ee})}function Lx(t){const{schema:e,uiSchema:n={},errorSchema:r,fieldPathId:i,formData:s,name:o,title:a,disabled:l=!1,readonly:u=!1,autofocus:c=!1,required:d=!1,hideError:h=!1,registry:y,onBlur:f,onFocus:p,rawErrors:b,onChange:v,keyedFormData:S,handleAddItem:E,handleCopyItem:j,handleRemoveItem:g,handleReorderItems:x}=t,w=e.title||a||o,{schemaUtils:O,fields:A,formContext:C,globalFormOptions:_,globalUiOptions:I}=y,{OptionalDataControlsField:T}=A,F=B(n,I),P=ne(e.items)?e.items:{},$=O.retrieveSchema(P),k=Dc(S),M=dr(y,e,d,n),U=vn(s),J=Rc(y,e,k,n)&&(!M||U),ae=U?S:[],fe=M?" rjsf-optional-array-field":"",ye=t.childFieldPathId??i,L=M?m.jsx(T,{...t,fieldPathId:ye}):void 0,le={canAdd:J,items:ae.map((H,K)=>{const{key:z,item:re}=H,oe=re,Oe=O.retrieveSchema(P,oe),Ee=r?r[K]:void 0,xe=Be(K,_,ye),$e=kc(n,re,K,C),ft={itemKey:z,index:K,name:o&&`${o}-${K}`,registry:y,uiOptions:F,parentUiSchema:n,hideError:h,readonly:u,disabled:l,required:d,title:w?`${w}-${K+1}`:void 0,canAdd:J,canMoveUp:K>0,canMoveDown:K<k.length-1,itemSchema:Oe,itemFieldPathId:xe,itemErrorSchema:Ee,itemData:oe,itemUiSchema:$e,autofocus:c&&K===0,onBlur:f,onFocus:p,rawErrors:b,totalItems:S.length,handleAddItem:E,handleCopyItem:j,handleRemoveItem:g,handleReorderItems:x,onChange:v};return m.jsx(Mc,{...ft},z)}),className:`rjsf-field rjsf-field-array rjsf-field-array-of-${$.type}${fe}`,disabled:l,fieldPathId:i,uiSchema:n,onAddClick:E,readonly:u,required:d,schema:e,title:w,formData:k,rawErrors:b,registry:y,optionalDataControl:L},te=V("ArrayFieldTemplate",y,F);return m.jsx(te,{...le})}function Bx(t){const{schema:e,uiSchema:n={},formData:r,errorSchema:i,fieldPathId:s,name:o,title:a,disabled:l=!1,readonly:u=!1,autofocus:c=!1,required:d=!1,hideError:h=!1,registry:y,onBlur:f,onFocus:p,rawErrors:b,keyedFormData:v,onChange:S,handleAddItem:E,handleCopyItem:j,handleRemoveItem:g,handleReorderItems:x}=t;let{formData:w=[]}=t;const O=e.title||a||o,{schemaUtils:A,fields:C,formContext:_,globalFormOptions:I,globalUiOptions:T}=y,F=B(n,T),{OptionalDataControlsField:P}=C,$=dr(y,e,d,n),k=vn(r),U=(ne(e.items)?e.items:[]).map((K,z)=>A.retrieveSchema(K,w[z])),J=ne(e.additionalItems)?A.retrieveSchema(e.additionalItems,r):null,ae=t.childFieldPathId??s;w.length<U.length&&(w=w.concat(new Array(U.length-w.length)));const fe=k?v:[],ye=$?" rjsf-optional-array-field":"",L=$?m.jsx(P,{...t,fieldPathId:ae}):void 0,le=Rc(y,e,w,n)&&!!J&&(!$||k),te={canAdd:le,className:`rjsf-field rjsf-field-array rjsf-field-array-fixed-items${ye}`,disabled:l,fieldPathId:s,formData:r,items:fe.map((K,z)=>{const{key:re,item:oe}=K,Oe=oe,Ee=z>=U.length,xe=(Ee&&ne(e.additionalItems)?A.retrieveSchema(e.additionalItems,Oe):U[z])||{},$e=Be(z,I,ae);let ft;Ee?ft=n.additionalItems:Array.isArray(n.items)?ft=n.items[z]:ft=kc(n,oe,z,_);const jn=i?i[z]:void 0,On={index:z,itemKey:re,name:o&&`${o}-${z}`,registry:y,uiOptions:F,parentUiSchema:n,hideError:h,readonly:u,disabled:l,required:d,title:O?`${O}-${z+1}`:void 0,canAdd:le,canRemove:Ee,canMoveUp:z>=U.length+1,canMoveDown:Ee&&z<w.length-1,itemSchema:xe,itemData:Oe,itemUiSchema:ft,itemFieldPathId:$e,itemErrorSchema:jn,autofocus:c&&z===0,onBlur:f,onFocus:p,rawErrors:b,totalItems:v.length,onChange:S,handleAddItem:E,handleCopyItem:j,handleRemoveItem:g,handleReorderItems:x};return m.jsx(Mc,{...On},re)}),onAddClick:E,readonly:u,required:d,registry:y,schema:e,uiSchema:n,title:O,errorSchema:i,rawErrors:b,optionalDataControl:L},H=V("ArrayFieldTemplate",y,F);return m.jsx(H,{...te})}function Vx(t=[]){const e=N.useMemo(()=>Xe(t),[t]),[n,r]=N.useState(()=>({formDataHash:e,keyedFormData:ba(t)}));let{keyedFormData:i,formDataHash:s}=n;if(e!==s){const a=Array.isArray(t)?t:[],l=i||[];i=a.length===l.length?l.map((u,c)=>({key:u.key,item:a[c]})):ba(a),s=e,r({formDataHash:s,keyedFormData:i})}const o=N.useCallback(a=>{const l=Dc(a),u=Xe(l);return r({formDataHash:u,keyedFormData:a}),l},[]);return{keyedFormData:i,updateKeyedFormData:o}}function qx(t){const{schema:e,uiSchema:n,errorSchema:r,fieldPathId:i,registry:s,formData:o,onChange:a}=t,{globalFormOptions:l,schemaUtils:u,translateString:c}=s,{keyedFormData:d,updateKeyedFormData:h}=Vx(o),y=t.childFieldPathId??i,f=N.useCallback((x,w)=>{x&&x.preventDefault();let O;if(r){O={};for(const _ in r){const I=parseInt(_);w===void 0||I<w?ce(O,[I],r[_]):I>=w&&ce(O,[I+1],r[_])}}const A={key:es(),item:Rx(s,e)},C=[...d];w!==void 0?C.splice(w,0,A):C.push(A),a(h(C),y.path,O)},[d,s,e,a,h,r,y]),p=N.useCallback((x,w)=>{x&&x.preventDefault();let O;if(r){O={};for(const _ in r){const I=parseInt(_);I<=w?ce(O,[I],r[_]):I>w&&ce(O,[I+1],r[_])}}const A={key:es(),item:Ls(d[w].item)},C=[...d];w!==void 0?C.splice(w+1,0,A):C.push(A),a(h(C),y.path,O)},[d,a,h,r,y]),b=N.useCallback((x,w)=>{x&&x.preventDefault();let O;if(r){O={};for(const C in r){const _=parseInt(C);_<w?ce(O,[_],r[C]):_>w&&ce(O,[_-1],r[C])}}const A=d.filter((C,_)=>_!==w);a(h(A),y.path,O)},[d,a,h,r,y]),v=N.useCallback((x,w,O)=>{x&&(x.preventDefault(),x.currentTarget.blur());let A;if(r){A={};for(const I in r){const T=parseInt(I);T==w?ce(A,[O],r[w]):T==O?ce(A,[w],r[O]):ce(A,[I],r[T])}}function C(){const I=d.slice();return I.splice(w,1),I.splice(O,0,d[w]),I}const _=C();a(h(_),y.path,A)},[d,a,h,r,y]),S=N.useCallback((x,w,O,A)=>{a(x===void 0?null:x,w,O,A)},[a]),E=N.useCallback(x=>{a(x,y.path,void 0,y?.[de])},[a,y]),j={...t,formData:o,fieldPathId:y,onSelectChange:E},g={...t,handleAddItem:f,handleCopyItem:p,handleRemoveItem:b,handleReorderItems:v,keyedFormData:d,onChange:S};if(!(on in e)){if(!l.useFallbackUiForUnsupportedType){const w=B(n),O=V("UnsupportedFieldTemplate",s,w);return m.jsx(O,{schema:e,fieldPathId:i,reason:c(G.MissingItems),registry:s})}const x={...e,[on]:{type:void 0}};j.schema=x,g.schema=x}return u.isMultiSelect(j.schema)?m.jsx(kx,{...j}):bc(n)?m.jsx(Mx,{...j}):ks(j.schema)?m.jsx(Bx,{...g}):u.isFilesArray(j.schema,n)?m.jsx(Ux,{...j}):m.jsx(Lx,{...g})}function zx(t){const{schema:e,name:n,uiSchema:r,fieldPathId:i,formData:s,registry:o,required:a,disabled:l,readonly:u,hideError:c,autofocus:d,title:h,onChange:y,onFocus:f,onBlur:p,rawErrors:b}=t,{title:v}=e,{widgets:S,translateString:E,globalUiOptions:j}=o,{widget:g="checkbox",title:x,label:w=!0,enumNames:O,...A}=B(r,j),C=tt(e,g,S),_=E(G.YesLabel),I=E(G.NoLabel);let T;const F=x??v??h??n;if(Array.isArray(e.oneOf))T=fn({oneOf:e.oneOf.map($=>{if(ne($))return{...$,title:$.title||($.const===!0?_:I)}}).filter($=>$)},r);else{const $=e.enum??[!0,!1];!O&&$.length===2&&$.every(k=>typeof k=="boolean")?T=[{value:$[0],label:$[0]?_:I},{value:$[1],label:$[1]?_:I}]:T=fn({enum:$},r)}const P=N.useCallback(($,k,M)=>y($,i.path,k,M),[y,i]);return m.jsx(C,{options:{...A,enumOptions:T},schema:e,uiSchema:r,id:i.$id,name:n,onChange:P,onFocus:f,onBlur:p,label:F,hideLabel:!w,value:s,required:a,disabled:l,readonly:u,hideError:c,registry:o,autofocus:d,rawErrors:b,htmlName:i.name})}function Wx(t){return{type:"string",enum:["string","number","boolean","object","array"],default:"string",title:t}}function Hx(t){const e=typeof t;return e==="string"||e==="number"||e==="boolean"?e:e==="object"?Array.isArray(t)?"array":"object":"string"}function Kx(t,e){switch(e){case"string":return String(t);case"number":{const n=Number(t);return isNaN(n)?0:n}case"boolean":return!!t;default:return t}}function Gx(t){const{id:e,formData:n,displayLabel:r=!0,schema:i,name:s,uiSchema:o,required:a,disabled:l=!1,readonly:u=!1,onBlur:c,onFocus:d,registry:h,fieldPathId:y,onChange:f,errorSchema:p}=t,{translateString:b,fields:v,globalFormOptions:S}=h,[E,j]=N.useState(Hx(n)),g=B(o),x=Ht(Be("__internal_type_selector",S,y)),w=b(G.Type),O=N.useMemo(()=>Wx(w),[w]),A=I=>{I!=null&&(j(I),f(Kx(n,I),y.path,p,e))};if(!S.useFallbackUiForUnsupportedType){const{reason:I=b(G.UnknownFieldType,[String(i.type)])}=t,T=V("UnsupportedFieldTemplate",h,g);return m.jsx(T,{schema:i,fieldPathId:y,reason:I,registry:h})}const C=V("FallbackFieldTemplate",h,g),{SchemaField:_}=v;return m.jsx(C,{schema:i,registry:h,typeSelector:m.jsx(_,{fieldPathId:x,name:`${s}__fallback_type`,schema:O,formData:E,onChange:A,onBlur:c,onFocus:d,registry:h,hideLabel:!r,disabled:l,readonly:u,required:a},n?Xe(n):"__empty__"),schemaField:m.jsx(_,{...t,schema:{type:E,title:b(G.Value),...E==="object"&&{additionalProperties:!0}}})})}function Yx(t,e){return gn(e,function(n){return t[n]})}function Jx(t){return t==null?[]:Yx(t,ze(t))}var Zx=Math.max;function Xx(t,e,n,r){t=qt(t)?t:Jx(t),n=n?zl(n):0;var i=t.length;return n<0&&(n=Zx(i+n,0)),At(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&Zl(t,e,n)>-1}var Qx=Math.min;function ev(t,e,n){for(var r=Rs,i=t[0].length,s=t.length,o=s,a=Array(s),l=1/0,u=[];o--;){var c=t[o];l=Qx(c.length,l),a[o]=i>=120&&c.length>=120?new Rt(o&&c):void 0}c=t[0];var d=-1,h=a[0];e:for(;++d<i&&u.length<l;){var y=c[d],f=y;if(y=y!==0?y:0,!(h?Xn(h,f):r(u,f))){for(o=s;--o;){var p=a[o];if(!(p?Xn(p,f):r(t[o],f)))continue e}h&&h.push(f),u.push(y)}}return u}function tv(t){return Zn(t)?t:[]}var xa=Kr(function(t){var e=gn(t,tv);return e.length&&e[0]===t[0]?ev(e):[]});function Cr(t,e){return Gr(t,e)}function Uc(t){return t===void 0}var et;(function(t){t.ROW="ui:row",t.COLUMN="ui:col",t.COLUMNS="ui:columns",t.CONDITION="ui:condition"})(et||(et={}));var Wn;(function(t){t.ALL="all",t.SOME="some",t.NONE="none"})(Wn||(Wn={}));const nv=/^\$lookup=(.+)/,Oi="layoutGrid";function va(t,e){return t??e}function rv(t){return/^\d+?$/.test(t)}const wt=Bs();function iv(t,e,n,r,i){const s=D(n,[Vi],{}),o=D(n,t),a={...D(o,[xt],{}),...e,...s},l={...o};ge(a)||ce(l,[xt],a),ge(s)||ce(l,[Vi],s);let{readonly:u}=B(l);return(i===!0||Uc(u)&&r===!0)&&(u=!0,X(a,ii)?ce(l,[xt,ii],!0):ce(l,`ui:${ii}`,!0)),{fieldUiSchema:l,uiReadonly:u}}function sv(t,e,n="$0m3tH1nG Un3xP3cT3d"){const r=Gi([e]).sort(),i=Gi([n]).sort();switch(t){case Wn.ALL:return Cr(r,i);case Wn.SOME:return xa(r,i).length>0;case Wn.NONE:return xa(r,i).length===0;default:return!1}}function ei(t,e,n){let r={},i=t[e];if(Ot(i)){const{children:s,className:o,...a}=i;if(i=s,o){const u=o.split(" ").map(c=>zs(n,c,c)).join(" ");r={...a,className:u}}else r=a}if(!Array.isArray(i))throw new TypeError(`Expected array for "${e}" in ${JSON.stringify(t)}`);return{children:i,gridProps:r}}function Sa(t,e,n){let r;if(rv(n)&&t&&t?.type==="array"&&X(t,on)){const i=Number(n),s=t[on];Array.isArray(s)?i>s.length?r=$l(s):r=s[i]:r=s,e={[de]:e[de],path:[...e.path.slice(0,e.path.length-1),i]}}return{rawSchema:r,fieldPathId:e}}function ov(t,e,n,r,i){const{schemaUtils:s,globalFormOptions:o}=t;let a=n,l=i;const u=e.split("."),c=u.pop();let d=s.retrieveSchema(a,r),h=r,y=d.readOnly;u.forEach(b=>{if(l=Be(b,o,l),X(d,se))a=D(d,[se,b],{});else if(d&&(X(d,W)||X(d,ee))){const v=X(d,W)?W:ee,S=s.findSelectedOptionInXxxOf(d,b,v,h);a=D(S,[se,b],{})}else{const v=Sa(d,l,b);a=v.rawSchema??{},l=v.fieldPathId}h=D(h,b,{}),d=s.retrieveSchema(a,h),y=va(d.readOnly,y)});let f,p=!1;if(ge(d)&&(d=void 0),d&&c){if(d&&(X(d,W)||X(d,ee))){const v=X(d,W)?W:ee;d=s.findSelectedOptionInXxxOf(d,c,v,h)}l=Be(c,o,l),p=d!==void 0&&Array.isArray(d.required)&&Xx(d.required,c);const b=Sa(d,l,c);if(b.rawSchema?(d=b.rawSchema,l=b.fieldPathId):(d=D(d,[se,c]),d=d&&s.retrieveSchema(d)),y=va(d?.readOnly,y),d&&(X(d,W)||X(d,ee))){const v=X(d,W)?W:ee,S=He(d);f={options:d[v],hasDiscriminator:!!S}}}return{schema:d,isRequired:p,isReadonly:y,optionsInfo:f,fieldPathId:l}}function av(t,e){let n=t;return At(n)&&(n=zs(e,n)),ir(n)?n:null}function lv(t,e){let n,r=null,i={},s;if(At(e)||Uc(e))n=e??"";else{const{name:o="",render:a,...l}=e;n=o,i=l,ge(i)||Fx(i,(u,c)=>{if(At(u)){const d=nv.exec(u);if(Array.isArray(d)&&d.length>1){const h=d[1];i[c]=zs(t,h,h)}}}),r=av(a,t),!o&&r&&(s=m.jsx(r,{...l,"data-testid":wt.uiComponent}))}return{name:n,UIComponent:r,uiProps:i,rendered:s}}function ti(t){const{childrenLayoutGridSchemaId:e,...n}=t,{registry:r,schema:i,formData:s}=n,{schemaUtils:o}=r,a=o.retrieveSchema(i,s);return e.map(l=>N.createElement(Ks,{...n,key:`layoutGrid-${Xe(l)}`,schema:a,layoutGridSchema:l}))}function cv(t){const{layoutGridSchema:e,...n}=t,{formData:r,registry:i}=n,{children:s,gridProps:o}=ei(e,et.CONDITION,i),{operator:a,field:l="",value:u}=o,c=D(r,l,null);return sv(a,c,u)?m.jsx(ti,{...n,childrenLayoutGridSchemaId:s}):null}function uv(t){const{layoutGridSchema:e,...n}=t,{registry:r,uiSchema:i}=n,{children:s,gridProps:o}=ei(e,et.COLUMN,r),a=B(i),l=V("GridTemplate",r,a);return m.jsx(l,{column:!0,"data-testid":wt.col,...o,children:m.jsx(ti,{...n,childrenLayoutGridSchemaId:s})})}function dv(t){const{layoutGridSchema:e,...n}=t,{registry:r,uiSchema:i}=n,{children:s,gridProps:o}=ei(e,et.COLUMNS,r),a=B(i),l=V("GridTemplate",r,a);return s.map(u=>m.jsx(l,{column:!0,"data-testid":wt.col,...o,children:m.jsx(ti,{...n,childrenLayoutGridSchemaId:[u]})},`column-${Xe(u)}`))}function fv(t){const{layoutGridSchema:e,...n}=t,{registry:r,uiSchema:i}=n,{children:s,gridProps:o}=ei(e,et.ROW,r),a=B(i),l=V("GridTemplate",r,a);return m.jsx(l,{...o,"data-testid":wt.row,children:m.jsx(ti,{...n,childrenLayoutGridSchemaId:s})})}function mv(t){const{gridSchema:e,schema:n,uiSchema:r,errorSchema:i,fieldPathId:s,onBlur:o,onFocus:a,formData:l,readonly:u,registry:c,layoutGridSchema:d,...h}=t,{onChange:y}=h,{fields:f}=c,{SchemaField:p,LayoutMultiSchemaField:b}=f,v=lv(c,e),{name:S,UIComponent:E,uiProps:j}=v,{schema:g,isRequired:x,isReadonly:w,optionsInfo:O,fieldPathId:A}=ov(c,S,n,l,s),C=Ht(A);if(v.rendered)return v.rendered;if(g){const _=O?.hasDiscriminator?b:p,{fieldUiSchema:I,uiReadonly:T}=iv(S,j,r,w,u);return m.jsx(_,{"data-testid":O?.hasDiscriminator?wt.layoutMultiSchemaField:wt.field,...h,name:S,required:x,readonly:T,schema:g,uiSchema:I,errorSchema:D(i,S),fieldPathId:C,formData:D(l,S),onChange:y,onBlur:o,onFocus:a,options:O?.options,registry:c})}return E?m.jsx(E,{"data-testid":wt.uiComponent,...h,name:S,required:x,formData:l,readOnly:!!w||u,errorSchema:i,uiSchema:r,schema:n,fieldPathId:s,onBlur:o,onFocus:a,registry:c,...j}):null}function Ks(t){const{uiSchema:e}=t;let{layoutGridSchema:n}=t;const r=B(e);if(!n&&Oi in r&&ne(r[Oi])&&(n=r[Oi]),ne(n)){if(et.ROW in n)return m.jsx(fv,{...t,layoutGridSchema:n});if(et.COLUMN in n)return m.jsx(uv,{...t,layoutGridSchema:n});if(et.COLUMNS in n)return m.jsx(dv,{...t,layoutGridSchema:n});if(et.CONDITION in n)return m.jsx(cv,{...t,layoutGridSchema:n})}return m.jsx(mv,{...t,gridSchema:n})}Ks.TEST_IDS=wt;function hv(t){const{fieldPathId:e,title:n,schema:r,uiSchema:i,required:s,registry:o,name:a}=t,l=B(i,o.globalUiOptions),{title:u}=l,{title:c}=r,d=u||n||c||a;if(!d)return null;const h=V("TitleFieldTemplate",o,l);return m.jsx(h,{id:Qr(e),title:d,required:s,schema:r,uiSchema:i,registry:o})}function Ei(t,e,n){const r="!@#!@$@#$!@$#";return t.map(({schema:s})=>s).find(s=>{const o=D(s,[se,e]);return D(o,Ft,D(o,Ne,r))===n})}function wa(t,e,n,r,i){const s=e.map(l=>n.retrieveSchema(l,i));let o=t;X(t,W)?o={...t,[W]:s}:X(t,ee)&&(o={...t,[ee]:s});const a=fn(o,r);if(!a)throw new Error(`No enumOptions were computed from the schema ${JSON.stringify(o)}`);return a}function pv(t){const{name:e,baseType:n,disabled:r=!1,formData:i,fieldPathId:s,onBlur:o,onChange:a,options:l,onFocus:u,registry:c,uiSchema:d,schema:h,autofocus:y,readonly:f,required:p,errorSchema:b,hideError:v=!1}=t,{widgets:S,schemaUtils:E,globalUiOptions:j}=c,[g,x]=N.useState(wa(h,l,E,d,i)),w=D(s,de),O=He(h),A=V("FieldErrorTemplate",c,l),C=V("FieldTemplate",c,l),_=Xe(h),I=Xe(l),T=d?Xe(d):"",F=i?Xe(i):"";N.useEffect(()=>{x(wa(h,l,E,d,i))},[_,I,E,T,F]);const{widget:P=O?"radio":"select",title:$="",placeholder:k="",optionsSchemaSelector:M=O,hideError:U,...J}=B(d);if(!M)throw new Error("No selector field provided for the LayoutMultiSchemaField");const ae=D(i,M);let fe=D(g[0]?.schema,[se,M],{});const ye=Ei(g,M,ae);fe=fe?.type?fe:{...fe,type:ye?.type||n};const L=tt(fe,P,S),le=U===void 0?v:!!U,te=D(b,[Ae],[]),H=cn(b,[Ae]),K=E.getDisplayLabel(h,d,j),z=Oe=>{const Ee=Ei(g,M,Oe),xe=Ei(g,M,ae);let $e=E.sanitizeDataForNewSchema(Ee,xe,i);$e&&Ee&&($e=E.getDefaultFormState(Ee,$e,"excludeObjectChildren")),$e&&ce($e,M,Oe),a($e,s.path,void 0,w)},re={enumOptions:g,...J},oe=!le&&te.length>0?m.jsx(A,{fieldPathId:s,schema:h,errors:te,registry:c}):void 0;return m.jsx(C,{fieldPathId:s,id:w,schema:h,label:($||h.title)??"",disabled:r||Array.isArray(g)&&ge(g),uiSchema:d,required:p,readonly:!!f,registry:c,displayLabel:K,errors:oe,onChange:a,onKeyRename:Or,onKeyRenameBlur:Or,onRemoveProperty:Or,children:m.jsx(L,{id:w,name:e,schema:h,label:($||h.title)??"",disabled:r||Array.isArray(g)&&ge(g),uiSchema:d,autofocus:y,readonly:f,required:p,registry:c,multiple:!1,rawErrors:te,hideError:le,hideLabel:!K,errorSchema:H,placeholder:k,onChange:z,onBlur:o,onFocus:u,value:ae,options:re,htmlName:s.name})})}class ja extends N.Component{constructor(e){super(e);const{formData:n,options:r,registry:{schemaUtils:i}}=this.props,s=r.map(o=>i.retrieveSchema(o,n));this.state={retrievedOptions:s,selectedOption:this.getMatchingOption(0,n,s)}}componentDidUpdate(e,n){const{formData:r,options:i,fieldPathId:s}=this.props,{selectedOption:o}=this.state;let a=this.state;if(!ie(e.options,i)){const{registry:{schemaUtils:l}}=this.props,u=i.map(c=>l.retrieveSchema(c,r));a={selectedOption:o,retrievedOptions:u}}if(!ie(r,e.formData)&&s.$id===e.fieldPathId.$id){const{retrievedOptions:l}=a,u=this.getMatchingOption(o,r,l);n&&u!==o&&(a={selectedOption:u,retrievedOptions:l})}a!==this.state&&this.setState(a)}getMatchingOption(e,n,r){const{schema:i,registry:{schemaUtils:s}}=this.props,o=He(i);return s.getClosestMatchingOption(n,r,e,o)}onOptionChange=e=>{const{selectedOption:n,retrievedOptions:r}=this.state,{formData:i,onChange:s,registry:o,fieldPathId:a}=this.props,{schemaUtils:l}=o,u=e!==void 0?parseInt(e,10):-1;if(u===n)return;const c=u>=0?r[u]:void 0,d=n>=0?r[n]:void 0;let h=l.sanitizeDataForNewSchema(c,d,i);c&&(h=l.getDefaultFormState(c,h,"excludeObjectChildren")),this.setState({selectedOption:u},()=>{s(h,a.path,void 0,this.getFieldId())})};getFieldId(){const{fieldPathId:e,schema:n}=this.props;return`${e.$id}${n.oneOf?"__oneof_select":"__anyof_select"}`}render(){const{name:e,disabled:n=!1,errorSchema:r={},formData:i,onBlur:s,onFocus:o,readonly:a,required:l=!1,registry:u,schema:c,uiSchema:d}=this.props,{widgets:h,fields:y,translateString:f,globalUiOptions:p,schemaUtils:b}=u,{SchemaField:v}=y,S=V("MultiSchemaFieldTemplate",u,p),E=dr(u,c,l,d),j=vn(i),{selectedOption:g,retrievedOptions:x}=this.state,{widget:w="select",placeholder:O,autofocus:A,autocomplete:C,title:_=c.title,...I}=B(d,p),T=tt({type:"number"},w,h),F=D(r,Ae,[]),P=cn(r,[Ae]),$=b.getDisplayLabel(c,d,p),k=g>=0&&x[g]||null;let M;if(k){const{required:te}=c;M=te?at({required:te},k):k}let U=[];W in c&&d&&W in d?Array.isArray(d[W])?U=d[W]:console.warn(`uiSchema.oneOf is not an array for "${_||e}"`):ee in c&&d&&ee in d&&(Array.isArray(d[ee])?U=d[ee]:console.warn(`uiSchema.anyOf is not an array for "${_||e}"`));let J=d;g>=0&&U.length>g&&(J=U[g]);const ae=_?G.TitleOptionPrefix:G.OptionPrefix,fe=_?[_]:[],ye=x.map((te,H)=>{const{title:K=te.title}=B(U[H]);return{label:K||f(ae,fe.concat(String(H+1))),value:H}}),L=!E||j?m.jsx(T,{id:this.getFieldId(),name:`${e}${c.oneOf?"__oneof_select":"__anyof_select"}`,schema:{type:"number",default:0},onChange:this.onOptionChange,onBlur:s,onFocus:o,disabled:n||ge(ye),multiple:!1,rawErrors:F,errorSchema:P,value:g>=0?g:void 0,options:{enumOptions:ye,...I},registry:u,placeholder:O,autocomplete:C,autofocus:A,label:_??e,hideLabel:!$,readonly:a}):void 0,le=M&&M.type!=="null"&&m.jsx(v,{...this.props,schema:M,uiSchema:J})||null;return m.jsx(S,{schema:c,registry:u,uiSchema:d,selector:L,optionSchemaField:le})}}const gv=/\.([0-9]*0)*$/,yv=/[0.]0*$/;function bv(t){const{registry:e,onChange:n,formData:r,value:i}=t,[s,o]=N.useState(i),{StringField:a}=e.fields;let l=r;const u=N.useCallback((c,d,h,y)=>{o(c),`${c}`.charAt(0)==="."&&(c=`0${c}`);const f=typeof c=="string"&&c.match(gv)?fo(c.replace(yv,"")):fo(c);n(f,d,h,y)},[n]);if(typeof s=="string"&&typeof l=="number"){const c=new RegExp(`^(${String(l).replace(".","\\.")})?\\.?0*$`);s.match(c)&&(l=s)}return m.jsx(a,{...t,formData:l,onChange:u})}function Je(){return Je=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Je.apply(null,arguments)}const gr=["strong","em","del","mark"],Oa=[["**",gr[0]],["__",gr[0]],["~~",gr[2]],["==",gr[3]],["*","em"],["_","em"]];function xv(t,e){for(var n=1,r=e+1;r<t.length&&n>0;)t[r]!=="\\"?(t[r]==="["&&n++,t[r]==="]"&&n--,r++):r+=2;if(n===0&&r<t.length&&(t[r]==="("||t[r]==="[")){var i=t[r]==="("?")":"]",s=1;for(r++;r<t.length&&s>0;)t[r]!=="\\"?(t[r]==="("&&i===")"&&s++,t[r]===i&&s--,r++):r+=2;if(s===0)return r}return-1}function vv(t,e){if(!e||!e.inline&&!e.simple)return null;var n=t[0];if(n!=="*"&&n!=="_"&&n!=="~"&&n!=="=")return null;for(var r="",i=0,s="",o=0;o<6;o++){var a=Oa[o][0];if(t.startsWith(a)&&t.length>=2*a.length){r=a,i=a.length,s=Oa[o][1];break}}if(!r)return null;for(var l=i,u=!1,c=!1,d="",h=0,y="",f=!1,p="";l<t.length;){var b=t[l];if(f)y+=b,f=!1,p=b,l++;else if(b!=="\\")if(b!=="`"||h!==0){if(b==="["&&!u&&h===0){var v=xv(t,l);if(v!==-1){y+=t.slice(l,v),l=v,p=t[v-1];continue}}if(c)y+=b,d?b===d&&(d=""):b==='"'||b==="'"?d=b:b===">"&&(c=!1),p=b,l++;else if(b!=="<"||u){if(b===`
4
+ `&&p===`
5
+ `&&!u&&h===0)return null;if(!u&&h===0){for(var S=0;l+S<t.length&&t[l+S]===r[0];)S++;if(S>=i&&(i!==1||r!=="*"&&r!=="_"||t[l-1]!==r&&t[l+1]!==r)){var E=[t.slice(0,l+S),s,y+t.slice(l+i,l+S)];return E.index=0,E.input=t,E}}y+=b,p=b,l++}else{var j=t[l+1],g=t.indexOf(">",l);if(g!==-1){var x=t.slice(l,g+1).endsWith("/>");j==="/"?h=Math.max(0,h-1):x||h++}c=!0,y+=b,p=b,l++}}else u=!u,y+=b,p=b,l++;else y+=b,f=!0,p=b,l++}return null}const Sv=["children","options"],Ea=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((t,e)=>(t[e.toLowerCase()]=e,t),{class:"className",for:"htmlFor"}),Aa={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},wv=["style","script","pre"],jv=["src","href","data","formAction","srcDoc","action"],Ov=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,Ev=/\n{2,}$/,Ca=/^(\s*>[\s\S]*?)(?=\n\n|$)/,Av=/^ *> ?/gm,Cv=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,_v=/^ {2,}\n/,Iv=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,_a=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,Ia=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,Tv=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,Nv=/^(?:\n *)*\n/,Pv=/\r\n?/g,Fv=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,$v=/^\[\^([^\]]+)]/,Dv=/\f/g,Rv=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,kv=/^\[(x|\s)\]/,Ta=/^(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Na=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Pa=/^([^\n]+)\n *(=|-)\2{2,} *\n/,Gs=/^<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>/i;function Mv(t){const e=Gs.exec(t);if(!e)return null;const n=e[1],r=n.toLowerCase(),i=r.length+1;let s=e[0].length;t[s]===`
6
+ `&&s++;const o=s;let a=s,l=1;const u=t.length;for(;l>0;){const d=t.indexOf("<",s);if(d===-1)return null;let h=-1,y=-1;if(t[d+1]==="/")y=d;else if(t[d+1]===r[0]||t[d+1]===n[0]){let f=!0;for(let p=0;p<r.length;p++){const b=t[d+1+p];if(b!==r[p]&&b!==n[p]){f=!1;break}}!f||t[d+i]!==" "&&t[d+i]!==">"||(h=d)}if(h!==-1||y!==-1)if(h!==-1&&(y===-1||h<y))s=h+i+1,l++;else{let f=y+2;for(;f<u;){const b=t[f];if(b!==" "&&b!==" "&&b!==`
7
+ `&&b!=="\r")break;f++}if(f+r.length>u)return null;let p=!0;for(let b=0;b<r.length;b++){const v=t[f+b];if(v!==r[b]&&v!==n[b]){p=!1;break}}if(!p){s=f;continue}for(f+=r.length;f<u;){const b=t[f];if(b!==" "&&b!==" "&&b!==`
8
+ `&&b!=="\r")break;f++}if(f>=u||t[f]!==">"){s=f;continue}a=y,s=f+1,l--}else s=d+1}let c=0;for(;s+c<u&&t[s+c]===`
9
+ `;)c++;return[t.slice(0,s+c),n,e[2],t.slice(o,a)]}const Uv=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Fa=/^<!--[\s\S]*?(?:-->)/,Lv=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,ts=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,Bv=/^\{.*\}$/,Vv=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,qv=/^<([^ >]+[:@\/][^ >]+)>/,zv=/-([a-z])?/gi,$a=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,Wv=/^[^\n]+(?: \n|\n{2,})/,Hv=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,Kv=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,Gv=/^\[([^\]]*)\] ?\[([^\]]*)\]/,Yv=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,Jv=/\t/g,Zv=/(^ *\||\| *$)/g,Xv=/^ *:-+: *$/,Qv=/^ *:-+ *$/,e1=/^ *-+: *$/,t1=/^(:[a-zA-Z0-9-_]+:)/,n1=/^\\([^0-9A-Za-z\s])/,r1=/\\([^0-9A-Za-z\s])/g,i1=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,s1=/^\n+/,o1=/^([ \t]*)/,a1=/(?:^|\n)( *)$/,Ys="(?:\\d+\\.)",Js="(?:[*+-])";function Lc(t){return"( *)("+(t===1?Ys:Js)+") +"}const Bc=Lc(1),Vc=Lc(2);function qc(t){return RegExp("^"+(t===1?Bc:Vc))}const l1=qc(1),c1=qc(2);function zc(t){return RegExp("^"+(t===1?Bc:Vc)+"[^\\n]*(?:\\n(?!\\1"+(t===1?Ys:Js)+" )[^\\n]*)*(\\n|$)","gm")}const u1=zc(1),d1=zc(2);function Wc(t){const e=t===1?Ys:Js;return RegExp("^( *)("+e+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+e+" (?!"+e+" ))\\n*|\\s*\\n*$)")}const Hc=Wc(1),Kc=Wc(2);function Da(t,e){const n=e===1,r=n?Hc:Kc,i=n?u1:d1,s=n?l1:c1;return{t:o=>s.test(o),o:bt(function(o,a){const l=a1.exec(a.prevCapture);return l&&(a.list||!a.inline&&!a.simple)?r.exec(o=l[1]+o):null}),u:1,i(o,a,l){const u=n?+o[2]:void 0,c=o[0].replace(Ev,`
10
+ `).match(i),d=s.exec(c[0]),h=RegExp("^ {1,"+(d?d[0].length:0)+"}","gm");let y=!1;return{items:c.map(function(f,p){const b=f.replace(h,"").replace(s,""),v=p===c.length-1,S=Ke(b,`
11
+
12
+ `)||v&&y;y=S;const E=l.inline,j=l.list;let g;l.list=!0,S?(l.inline=!1,g=Hn(b)+`
13
+
14
+ `):(l.inline=!0,g=Hn(b));const x=a(g,l);return l.inline=E,l.list=j,x}),ordered:n,start:u}}}}const f1=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),m1=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function Ra(t){return typeof t=="string"}function Hn(t){let e=t.length;for(;e>0&&t[e-1]<=" ";)e--;return t.slice(0,e)}function ns(t,e){return t.startsWith(e)}function Ke(t,e){return t.indexOf(e)!==-1}function h1(t,e,n){if(Array.isArray(n)){for(let r=0;r<n.length;r++)if(ns(t,n[r]))return!0;return!1}return n(t,e)}function Nn(t){return t.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function p1(t){return e1.test(t)?"right":Xv.test(t)?"center":Qv.test(t)?"left":null}function ka(t,e,n,r){const i=n.inTable;n.inTable=!0;let s=[[]],o="";function a(){if(!o)return;const l=s[s.length-1];l.push.apply(l,e(o,n)),o=""}return t.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((l,u,c)=>{l.trim()==="|"&&(a(),r)?u!==0&&u!==c.length-1&&s.push([]):o+=l}),a(),n.inTable=i,s}function g1(t,e,n){n.inline=!0;const r=t[2]?t[2].replace(Zv,"").split("|").map(p1):[],i=t[3]?(function(o,a,l){return o.trim().split(`
15
+ `).map(function(u){return ka(u,a,l,!0)})})(t[3],e,n):[],s=ka(t[1],e,n,!!i.length);return n.inline=!1,i.length?{align:r,cells:i,header:s,type:"25"}:{children:s,type:"21"}}function Ma(t,e){return t.align[e]==null?{}:{textAlign:t.align[e]}}function bt(t){return t.inline=1,t}function mt(t){return bt(function(e,n){return n.inline?t.exec(e):null})}function yr(t){return bt(function(e,n){return n.inline||n.simple?t.exec(e):null})}function it(t){return function(e,n){return n.inline||n.simple?null:t.exec(e)}}function Ua(t){return bt(function(e){return t.exec(e)})}const y1=/(javascript|vbscript|data(?!:image)):/i;function b1(t){try{const e=decodeURIComponent(t).replace(/[^A-Za-z0-9/:]/g,"");if(y1.test(e))return null}catch{return null}return t}function Ge(t){return t&&t.replace(r1,"$1")}function _r(t,e,n){const r=n.inline||!1,i=n.simple||!1;n.inline=!0,n.simple=!0;const s=t(e,n);return n.inline=r,n.simple=i,s}function x1(t,e,n){const r=n.inline||!1,i=n.simple||!1;n.inline=!1,n.simple=!0;const s=t(e,n);return n.inline=r,n.simple=i,s}function v1(t,e,n){const r=n.inline||!1;n.inline=!1;const i=t(e,n);return n.inline=r,i}const S1=(t,e,n)=>({children:_r(e,t[2],n)});function Ai(){return{}}function w1(...t){return t.filter(Boolean).join(" ")}function Ci(t,e,n){let r=t;const i=e.split(".");for(;i.length&&(r=r[i[0]],r!==void 0);)i.shift();return r||n}function _i(t,e,n,r){if(!e||!e.trim())return null;const i=e.match(Ov);return i?i.reduce(function(s,o){const a=o.indexOf("=");if(a!==-1){const l=(function(d){return d.indexOf("-")!==-1&&d.match(Lv)===null&&(d=d.replace(zv,function(h,y){return y.toUpperCase()})),d})(o.slice(0,a)).trim(),u=Ea[l]||l;if(u==="ref")return s;const c=s[u]=(function(d,h,y,f){return h==="style"?(function(p){const b=[];if(!p)return b;let v="",S=0,E="";for(let g=0;g<p.length;g++){const x=p[g];if(x==='"'||x==="'")E?x===E&&(E="",S--):(E=x,S++);else if(x==="("&&v.endsWith("url"))S++;else if(x===")"&&S>0)S--;else if(x===";"&&S===0){const w=v.indexOf(":");w>0&&b.push([v.slice(0,w).trim(),v.slice(w+1).trim()]),v="";continue}v+=x}const j=v.indexOf(":");return j>0&&b.push([v.slice(0,j).trim(),v.slice(j+1).trim()]),b})(y).reduce(function(p,[b,v]){return p[b.replace(/(-[a-z])/g,S=>S[1].toUpperCase())]=f(v,d,b),p},{}):jv.indexOf(h)!==-1?f(Ge(y),d,h):(y.match(Bv)&&(y=Ge(y.slice(1,y.length-1))),y==="true"||y!=="false"&&y)})(t,l,(function(d){const h=d[0];return(h==='"'||h==="'")&&d.length>=2&&d[d.length-1]===h?d.slice(1,-1):d})(o.slice(a+1).trim()),n);typeof c=="string"&&(Gs.test(c)||ts.test(c))&&(s[u]=r(c.trim()))}else o!=="style"&&(s[Ea[o]||o]=!0);return s},{}):null}function La(t,e){for(let n=0;n<t.length;n++)if(t[n].test(e))return!0;return!1}function j1(t="",e={}){e.overrides=e.overrides||{},e.namedCodesToUnicode=e.namedCodesToUnicode?Je({},Aa,e.namedCodesToUnicode):Aa;const n=e.slugify||Nn,r=e.sanitizer||b1,i=e.createElement||N.createElement,s=[Ca,_a,Ia,e.enforceAtxHeadings?Na:Ta,Pa,$a,Hc,Kc],o=[...s,Wv,Gs,Fa,ts];function a(f,p,...b){const v=Ci(e.overrides,f+".props",{});return i((function(S,E){const j=Ci(E,S);return j?typeof j=="function"||typeof j=="object"&&"render"in j?j:Ci(E,S+".component",S):S})(f,e.overrides),Je({},p,v,{className:w1(p?.className,v.className)||void 0}),...b)}function l(f){f=f.replace(Rv,"");let p=!1;e.forceInline?p=!0:e.forceBlock||(p=Yv.test(f)===!1);const b=h(p?f:Hn(f).replace(s1,"")+`
16
+
17
+ `,{inline:p});if(e.ast)return b;const v=y(b);for(;Ra(v[v.length-1])&&!v[v.length-1].trim();)v.pop();if(u.length&&v.push(a("footer",{key:"footer"},u.map(function(j){return a("div",{id:n(j.identifier,Nn),key:j.identifier},j.identifier,y(h(j.footnote,{inline:!0})))}))),e.wrapper===null)return v;const S=e.wrapper||(p?"span":"div");let E;if(v.length>1||e.forceWrapper)E=v;else{if(v.length===1)return E=v[0],typeof E=="string"?a("span",{key:"outer"},E):E;E=null}return i(S,Je({key:"outer"},e.wrapperProps),E)}const u=[],c={},d={0:{t:[">"],o:it(Ca),u:1,i(f,p,b){const[,v,S]=f[0].replace(Av,"").match(Cv);return{alert:v,children:p(S,b)}}},1:{t:[" "],o:mt(_v),u:1,i:Ai},2:{t:function(f,p){if(p.inline||p.simple)return!1;var b=f[0];return b==="-"||b==="*"||b==="_"},o:it(Iv),u:1,i:Ai},3:{t:[" "],o:it(Ia),u:0,i:f=>({lang:void 0,text:Ge(Hn(f[0].replace(/^ {4}/gm,"")))})},4:{t:["```","~~~"],o:it(_a),u:0,i:f=>({attrs:_i("code",f[3]||"",r,l),lang:f[2]||void 0,text:f[4],type:"3"})},5:{t:["`"],o:yr(Tv),u:3,i:f=>({text:Ge(f[2])})},6:{t:["[^"],o:it(Fv),u:0,i:f=>(u.push({footnote:f[2],identifier:f[1]}),{})},7:{t:["[^"],o:mt($v),u:1,i:f=>({target:"#"+n(f[1],Nn),text:f[1]})},8:{t:["[ ]","[x]"],o:mt(kv),u:1,i:f=>({completed:f[1].toLowerCase()==="x"})},9:{t:["#"],o:it(e.enforceAtxHeadings?Na:Ta),u:1,i:(f,p,b)=>({children:_r(p,f[2],b),id:n(f[2],Nn),level:f[1].length})},10:{t:f=>{const p=f.indexOf(`
18
+ `);return p>0&&p<f.length-1&&(f[p+1]==="="||f[p+1]==="-")},o:it(Pa),u:1,i:(f,p,b)=>({children:_r(p,f[1],b),level:f[2]==="="?1:2,type:"9"})},11:{t:["<"],o:bt(Mv),u:1,i(f,p,b){const[,v]=f[3].match(o1),S=RegExp("^"+v,"gm"),E=f[3].replace(S,""),j=La(o,E)?v1:_r,g=f[1].toLowerCase(),x=wv.indexOf(g)!==-1,w=(x?g:f[1]).trim(),O={attrs:_i(w,f[2],r,l),noInnerParse:x,tag:w};if(b.inAnchor=b.inAnchor||g==="a",x)O.text=f[3];else{const A=b.inHTML;b.inHTML=!0,O.children=j(p,E,b),b.inHTML=A}return b.inAnchor=!1,O}},13:{t:["<"],o:Ua(ts),u:1,i(f){const p=f[1].trim();return{attrs:_i(p,f[2]||"",r,l),tag:p}}},12:{t:["<!--"],o:Ua(Fa),u:1,i:()=>({})},14:{t:["!["],o:yr(m1),u:1,i:f=>({alt:Ge(f[1]),target:Ge(f[2]),title:Ge(f[3])})},15:{t:["["],o:mt(f1),u:3,i:(f,p,b)=>({children:x1(p,f[1],b),target:Ge(f[2]),title:Ge(f[3])})},16:{t:function(f,p){return!(!p.inline||p.inAnchor)&&f[0]==="<"&&(Ke(f,":")||Ke(f,"@")||Ke(f,"/"))},o:mt(qv),u:0,i(f){let p=f[1],b=!1;return Ke(p,"@")&&!Ke(p,"//")&&(b=!0,p=p.replace("mailto:","")),{children:[{text:p,type:"27"}],target:b?"mailto:"+p:p,type:"15"}}},17:{t:(f,p)=>!p.inAnchor&&!e.disableAutoLink&&ns(f,"http"),o:mt(Vv),u:0,i:f=>({children:[{text:f[1],type:"27"}],target:f[1],title:void 0,type:"15"})},20:Da(0,1),30:Da(0,2),19:{t:[`
19
+ `],o:it(Nv),u:3,i:Ai},21:{t:function(f,p){return!p.inline&&!p.simple},o:bt(function(f,p){if(p.inline||p.simple||p.inHTML&&!Ke(f,`
20
+
21
+ `)&&!Ke(p.prevCapture,`
22
+
23
+ `))return null;let b="",v=0;for(;;){const E=f.indexOf(`
24
+ `,v),j=f.slice(v,E===-1?void 0:E+1),g=f[v];if((g===">"||g==="#"||g==="|"||g==="`"||g==="~"||g==="*"||g==="-"||g==="_"||g===" ")&&La(s,j)||(b+=j,E===-1||!j.trim()))break;v=E+1}const S=Hn(b);return S===""?null:[b,,S]}),u:3,i:S1},22:{t:["["],o:mt(Hv),u:0,i:f=>(c[f[1]]={target:f[2],title:f[4]},{})},23:{t:["!["],o:yr(Kv),u:0,i:f=>({alt:f[1]?Ge(f[1]):void 0,ref:f[2]})},24:{t:f=>f[0]==="["&&!Ke(f,"]("),o:mt(Gv),u:0,i:(f,p,b)=>({children:p(f[1],b),fallbackChildren:f[0],ref:f[2]})},25:{t:["|"],o:it($a),u:1,i:g1},27:{o:bt(function(f,p){let b;return ns(f,":")&&(b=t1.exec(f)),b||i1.exec(f)}),u:4,i(f){const p=f[0];return{text:Ke(p,"&")?p.replace(Uv,(b,v)=>e.namedCodesToUnicode[v]||b):p}}},34:{t:["*","_","~","="],o:bt(vv),u:2,i:(f,p,b)=>({children:p(f[2],b),tag:f[1]})},28:{t:["\\"],o:yr(n1),u:1,i:f=>({text:f[1],type:"27"})}};e.disableParsingRawHTML===!0&&(delete d[11],delete d[13]);const h=(function(f){var p=Object.keys(f);function b(v,S){var E=[];if(S.prevCapture=S.prevCapture||"",v.trim())for(;v;)for(var j=0;j<p.length;){var g=p[j],x=f[g];if(!x.t||h1(v,S,x.t)){var w=x.o(v,S);if(w&&w[0]){v=v.substring(w[0].length);var O=x.i(w,b,S);S.prevCapture+=w[0],O.type||(O.type=g),E.push(O);break}j++}else j++}return S.prevCapture="",E}return p.sort(function(v,S){return f[v].u-f[S].u||(v<S?-1:1)}),function(v,S){return b((function(E){return E.replace(Pv,`
25
+ `).replace(Dv,"").replace(Jv," ")})(v),S)}})(d),y=(function(f,p,b,v,S){function E(j){return Array.isArray(j)?j.map(g=>"text"in g?g.text:""):"text"in j?j.text:""}return function j(g,x={}){const w=(x.renderDepth||0)+1;if(w>2500)return E(g);x.renderDepth=w;try{if(Array.isArray(g)){const A=x.key,C=[];let _=!1;for(let I=0;I<g.length;I++){x.key=I;const T=j(g[I],x),F=Ra(T);F&&_?C[C.length-1]+=T:T!==null&&C.push(T),_=F}return x.key=A,x.renderDepth=w-1,C}const O=(function(A,C,_){const I=()=>(function(T,F,P,$,k,M,U){switch(T.type){case"0":{const J={key:P.key};return T.alert&&(J.className="markdown-alert-"+M(T.alert.toLowerCase(),Nn),T.children.unshift({attrs:{},children:[{type:"27",text:T.alert}],noInnerParse:!0,type:"11",tag:"header"})),$("blockquote",J,F(T.children,P))}case"1":return $("br",{key:P.key});case"2":return $("hr",{key:P.key});case"3":return $("pre",{key:P.key},$("code",Je({},T.attrs,{className:T.lang?"lang-"+T.lang:""}),T.text));case"5":return $("code",{key:P.key},T.text);case"7":return $("a",{key:P.key,href:k(T.target,"a","href")},$("sup",{key:P.key},T.text));case"8":return $("input",{checked:T.completed,key:P.key,readOnly:!0,type:"checkbox"});case"9":return $("h"+T.level,{id:T.id,key:P.key},F(T.children,P));case"11":return $(T.tag,Je({key:P.key},T.attrs),T.text||(T.children?F(T.children,P):""));case"13":return $(T.tag,Je({},T.attrs,{key:P.key}));case"14":return $("img",{key:P.key,alt:T.alt||void 0,title:T.title||void 0,src:k(T.target,"img","src")});case"15":return $("a",{key:P.key,href:k(T.target,"a","href"),title:T.title},F(T.children,P));case"23":return U[T.ref]?$("img",{key:P.key,alt:T.alt,src:k(U[T.ref].target,"img","src"),title:U[T.ref].title}):null;case"24":return U[T.ref]?$("a",{key:P.key,href:k(U[T.ref].target,"a","href"),title:U[T.ref].title},F(T.children,P)):$("span",{key:P.key},T.fallbackChildren);case"25":{const J=T;return $("table",{key:P.key},$("thead",null,$("tr",null,J.header.map(function(ae,fe){return $("th",{key:fe,style:Ma(J,fe)},F(ae,P))}))),$("tbody",null,J.cells.map(function(ae,fe){return $("tr",{key:fe},ae.map(function(ye,L){return $("td",{key:L,style:Ma(J,L)},F(ye,P))}))})))}case"27":return T.text;case"34":return $(T.tag,{key:P.key},F(T.children,P));case"20":case"30":return $(T.ordered?"ol":"ul",{key:P.key,start:T.type==="20"?T.start:void 0},T.items.map(function(J,ae){return $("li",{key:ae},F(J,P))}));case"19":return`
26
+ `;case"21":return $("p",{key:P.key},F(T.children,P));default:return null}})(A,C,_,p,b,v,S);return f?f(I,A,C,_):I()})(g,j,x);return x.renderDepth=w-1,O}catch(O){if(O instanceof RangeError&&O.message.includes("Maximum call stack"))return E(g);throw O}}})(e.renderRule,a,r,n,c);return l(t)}const fr=t=>{let{children:e,options:n}=t,r=(function(i,s){if(i==null)return{};var o={};for(var a in i)if({}.hasOwnProperty.call(i,a)){if(s.indexOf(a)!==-1)continue;o[a]=i[a]}return o})(t,Sv);return j1(e??"",Je({},n,{wrapperProps:Je({},n?.wrapperProps,r)}))},Gc=Symbol("remove-this-key"),Ba=Symbol("reset");function O1(t,e){return Array.isArray(t.required)&&t.required.indexOf(e)!==-1}function E1(t,e){switch(e){case"array":return[];case"boolean":return!1;case"null":return null;case"number":return 0;case"object":return{};default:return t(G.NewStringDefault)}}function A1(t){const{fieldPathId:e,schema:n,registry:r,uiSchema:i,errorSchema:s,formData:o,onChange:a,onBlur:l,onFocus:u,disabled:c,readonly:d,required:h,hideError:y,propertyName:f,handleKeyRename:p,handleRemoveProperty:b,addedByAdditionalProperties:v}=t,[S,E]=N.useState(!1),{globalFormOptions:j,fields:g}=r,{SchemaField:x}=g,w=Ht(Be(f,j,e.path)),O=N.useCallback((I,T,F,P)=>{I===void 0&&v&&(I=""),a(I,T,F,P)},[a,v]),A=N.useCallback(I=>{f!==I&&E(!0),p(f,I)},[f,p]),C=N.useCallback(I=>{const{target:{value:T}}=I;A(T)},[A]),_=N.useCallback(()=>{b(f)},[f,b]);return m.jsx(x,{name:f,required:h,schema:n,uiSchema:i,errorSchema:s,fieldPathId:w,formData:o,wasPropertyKeyModified:S,onKeyRename:A,onKeyRenameBlur:C,onRemoveProperty:_,onChange:O,onBlur:l,onFocus:u,registry:r,disabled:c,readonly:d,hideError:y})}function C1(t){const{schema:e,uiSchema:n={},formData:r,errorSchema:i,fieldPathId:s,name:o,required:a=!1,disabled:l,readonly:u,hideError:c,onBlur:d,onFocus:h,onChange:y,registry:f,title:p}=t,{fields:b,schemaUtils:v,translateString:S,globalUiOptions:E}=f,{OptionalDataControlsField:j}=b,g=N.useRef(r);g.current=r;const x=v.retrieveSchema(e,r,!0),w=B(n,E),{properties:O={}}=x,A=t.childFieldPathId??s,C=N.useRef({previousKey:"",currentKey:void 0}),_=w.title??x.title??p??o,I=w.description??x.description,T=dr(f,x,a,n),F=vn(r);let P=[];const $=N.useCallback((L,le)=>{const{duplicateKeySuffixSeparator:te="-"}=B(n,E);let H=0,K=L;for(;X(le,K);)K=`${L}${te}${++H}`;return K},[n,E]),k=N.useCallback(()=>{if(!(x.additionalProperties||x.patternProperties))return;const{translateString:L}=f,le={...r},te=$("newKey",le);if(x.patternProperties)ce(le,te,null);else{let H,K,z;if(ne(x.additionalProperties)){H=x.additionalProperties.type,K=x.additionalProperties.const,z=x.additionalProperties.default;let oe=x.additionalProperties;if(ue in oe){const{schemaUtils:Oe}=f;oe=Oe.retrieveSchema({[ue]:oe[ue]},r),H=oe.type,K=oe.const,z=oe.default}!H&&(ee in oe||W in oe)&&(H="object")}const re=K??z??E1(L,H);ce(le,te,re)}C.current.previousKey===te&&(C.current.currentKey=te,C.current.previousKey=$(te,le)),y(le,A.path)},[r,y,f,A,$,x]),M=N.useCallback((L,le)=>{if(L!==le){const te=g.current,H=$(le,te),K={...te},z={[L]:H},re=Object.keys(K).map(Oe=>({[z[Oe]||Oe]:K[Oe]})),oe=Object.assign({},...re);g.current=oe,L!==C.current.currentKey&&(C.current.previousKey=L),C.current.currentKey=H,y(oe,A.path)}},[y,A,$]),U=N.useCallback(L=>{y(Gc,[...A.path,L])},[y,A]),J=N.useCallback(L=>C.current.currentKey===L?C.current.previousKey:L,[]);if(!T||F)try{const L=Object.keys(O);P=vx(L,w.order)}catch(L){return m.jsxs("div",{children:[m.jsx("p",{className:"rjsf-config-error",style:{color:"red"},children:m.jsx(fr,{options:{disableParsingRawHTML:!0},children:S(G.InvalidObjectField,[o||"root",L.message])})}),m.jsx("pre",{children:JSON.stringify(x)})]})}const ae=V("ObjectFieldTemplate",f,w),fe=T?m.jsx(j,{...t,fieldPathId:A,schema:x}):void 0,ye={title:w.label===!1?"":_,description:w.label===!1?void 0:I,properties:P.map(L=>{const le=X(x,[se,L,ot]),te=le?n.additionalProperties:n[L],H=B(te).widget==="hidden";return{content:m.jsx(A1,{propertyName:L,required:O1(x,L),schema:D(x,[se,L],{}),uiSchema:te,errorSchema:D(i,[L]),fieldPathId:A,formData:D(r,[L]),handleKeyRename:M,handleRemoveProperty:U,addedByAdditionalProperties:le,onChange:y,onBlur:d,onFocus:h,registry:f,disabled:l,readonly:u,hideError:c},J(L)),name:L,readonly:u,disabled:l,required:a,hidden:H}}),readonly:u,disabled:l,required:a,fieldPathId:s,uiSchema:n,errorSchema:i,schema:x,formData:r,registry:f,optionalDataControl:fe,className:T?"rjsf-optional-object-field":void 0};return m.jsx(ae,{...ye,onAddProperty:k})}function _1(t){const{schema:e,uiSchema:n={},formData:r,disabled:i=!1,readonly:s=!1,onChange:o,errorSchema:a,fieldPathId:l,registry:u}=t,{globalUiOptions:c={},schemaUtils:d,translateString:h}=u,y=B(n,c),f=V("OptionalDataControlsTemplate",u,y),p=vn(r);let b,v,S,E;if(i||s)b=wi(l,"Msg"),v=p?void 0:h(G.OptionalObjectEmptyMsg);else{const j=p?G.OptionalObjectRemove:G.OptionalObjectAdd;v=h(j),p?(b=wi(l,"Remove"),E=()=>o(void 0,l.path,a)):(b=wi(l,"Add"),S=()=>{let g=d.getDefaultFormState(e,r,"excludeObjectChildren");g===void 0&&(g=Le(e)==="array"?[]:{}),o(g,l.path,a)})}return v&&m.jsx(f,{id:b,registry:u,schema:e,uiSchema:n,label:v,onAddClick:S,onRemoveClick:E})}const I1={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function T1(t,e,n){const r=e.field,{fields:i}=n;if(typeof r=="function")return r;if(typeof r=="string"&&r in i)return i[r];const s=Le(t),o=Array.isArray(s)?s[0]:s||"",a=t.$id;let l=I1[o];return a&&a in i&&(l=a),!l&&(t.anyOf||t.oneOf)?()=>null:l in i?i[l]:i.FallbackField}function N1(t){const{schema:e,fieldPathId:n,uiSchema:r,formData:i,errorSchema:s,name:o,onChange:a,onKeyRename:l,onKeyRenameBlur:u,onRemoveProperty:c,required:d=!1,registry:h,wasPropertyKeyModified:y=!1}=t,{schemaUtils:f,globalFormOptions:p,globalUiOptions:b,fields:v}=h,{AnyOfField:S,OneOfField:E}=v,j=Sx(e,r,h),g=B(j,b),x=V("FieldTemplate",h,g),w=V("DescriptionFieldTemplate",h,g),O=V("FieldHelpTemplate",h,g),A=V("FieldErrorTemplate",h,g),C=f.retrieveSchema(e,i),_=n[de],I=N.useCallback((jn,On,_t,Eu)=>a(jn,On,_t,Eu||_),[_,a]),T=T1(C,g,h),F=!!(g.disabled??t.disabled),P=!!(g.readonly??(t.readonly||t.schema.readOnly||C.readOnly)),$=g.hideError,k=$===void 0?t.hideError:!!$,M=!!(g.autofocus??t.autofocus);if(Object.keys(C).length===0)return null;let U=f.getDisplayLabel(C,j,b);const J=g.field&&g.fieldReplacesAnyOrOneOf===!0;let ae,fe,ye={fieldPathId:n};if((ee in C||W in C)&&!J&&!f.isSelect(C)){C[ee]?(ae=S,fe=C[ee].map(_t=>f.retrieveSchema(ne(_t)?_t:{},i))):C[W]&&(ae=E,fe=C[W].map(_t=>f.retrieveSchema(ne(_t)?_t:{},i)));const jn=dr(h,C,d,j),On=vn(i);U=U&&(!jn||On),ye={childFieldPathId:n,fieldPathId:Be("XxxOf",p,n)}}const{__errors:L,...le}=s||{},te=cn(j,["ui:classNames","classNames","ui:style"]);xt in te&&(te[xt]=cn(te[xt],["classNames","style"]));const H=m.jsx(T,{...t,onChange:I,...ye,schema:C,uiSchema:te,disabled:F,readonly:P,hideError:k,autofocus:M,errorSchema:le,rawErrors:L}),K=n[de];let z;y?z=o:z=ot in C?o:g.title||t.schema.title||C.title||t.title||o;const re=g.description||t.schema.description||C.description||"",oe=g.help,Oe=g.widget==="hidden",Ee=["rjsf-field",`rjsf-field-${Le(C)}`];!k&&L&&L.length>0&&Ee.push("rjsf-field-error"),g.classNames&&Ee.push(g.classNames);const xe=m.jsx(O,{help:oe,fieldPathId:n,schema:C,uiSchema:j,hasErrors:!k&&L&&L.length>0,registry:h}),$e=k||ae&&!f.isSelect(C)?void 0:m.jsx(A,{errors:L,errorSchema:s,fieldPathId:n,schema:C,uiSchema:j,registry:h}),ft={description:m.jsx(w,{id:Wt(K),description:re,schema:C,uiSchema:j,registry:h}),rawDescription:re,help:xe,rawHelp:typeof oe=="string"?oe:void 0,errors:$e,rawErrors:k?void 0:L,fieldPathId:n,id:K,label:z,hidden:Oe,onChange:a,onKeyRename:l,onKeyRenameBlur:u,onRemoveProperty:c,required:d,disabled:F,readonly:P,hideError:k,displayLabel:U,classNames:Ee.join(" ").trim(),style:g.style,formData:i,schema:C,uiSchema:j,registry:h};return m.jsx(x,{...ft,children:m.jsxs(m.Fragment,{children:[H,ae&&m.jsx(ae,{name:o,disabled:F,readonly:P,hideError:k,errorSchema:s,formData:i,fieldPathId:n,onBlur:t.onBlur,onChange:t.onChange,onFocus:t.onFocus,options:fe,registry:h,required:d,schema:C,uiSchema:j})]})})}class P1 extends N.Component{shouldComponentUpdate(e){const{registry:{globalFormOptions:n}}=this.props,{experimental_componentUpdateStrategy:r="customDeep"}=n;return Pc(this,e,this.state,r)}render(){return m.jsx(N1,{...this.props})}}function F1(t){const{schema:e,name:n,uiSchema:r,fieldPathId:i,formData:s,required:o,disabled:a=!1,readonly:l=!1,autofocus:u=!1,onChange:c,onBlur:d,onFocus:h,registry:y,rawErrors:f,hideError:p,title:b}=t,{title:v,format:S}=e,{widgets:E,schemaUtils:j,globalUiOptions:g}=y,x=j.isSelect(e)?fn(e,r):void 0;let w=x?"select":"text";S&&yx(e,S,E)&&(w=S);const{widget:O=w,placeholder:A="",title:C,..._}=B(r),I=j.getDisplayLabel(e,r,g),T=C??b??v??n,F=tt(e,O,E),P=N.useCallback(($,k,M)=>c($,i.path,k,M),[c,i]);return m.jsx(F,{options:{..._,enumOptions:x},schema:e,uiSchema:r,id:i.$id,name:n,label:T,hideLabel:!I,hideError:p,value:s,onChange:P,onBlur:d,onFocus:h,required:o,disabled:a,readonly:l,autofocus:u,registry:y,placeholder:A,rawErrors:f,htmlName:i.name})}function $1(t){const{formData:e,onChange:n,fieldPathId:r}=t;return N.useEffect(()=>{e===void 0&&n(null,r.path)},[r,e,n]),null}function D1(){return{AnyOfField:ja,ArrayField:qx,BooleanField:zx,FallbackField:Gx,LayoutGridField:Ks,LayoutHeaderField:hv,LayoutMultiSchemaField:pv,NumberField:bv,ObjectField:C1,OneOfField:ja,OptionalDataControlsField:_1,SchemaField:P1,StringField:F1,NullField:$1}}function R1(t){const{fieldPathId:e,description:n,registry:r,schema:i,uiSchema:s}=t,o=B(s,r.globalUiOptions),{label:a=!0}=o;if(!n||!a)return null;const l=V("DescriptionFieldTemplate",r,o);return m.jsx(l,{id:Wt(e),description:n,schema:i,uiSchema:s,registry:r})}function k1(t){const{children:e,className:n,buttonsProps:r,displayLabel:i,hasDescription:s,hasToolbar:o,registry:a,uiSchema:l}=t,u=B(l),c=V("ArrayFieldItemButtonsTemplate",a,u),d={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"},h=s?31:9,y={display:"flex",alignItems:i?"center":"baseline"},f={display:"flex",justifyContent:"flex-end",marginTop:i?`${h}px`:0};return m.jsxs("div",{className:n,style:y,children:[m.jsx("div",{className:o?"col-xs-9 col-md-10 col-xl-11":"col-xs-12",children:e}),o&&m.jsx("div",{className:"col-xs-3 col-md-2 col-xl-1 array-item-toolbox",children:m.jsx("div",{className:"btn-group",style:f,children:m.jsx(c,{...r,style:d})})})]})}function M1(t){const{disabled:e,hasCopy:n,hasMoveDown:r,hasMoveUp:i,hasRemove:s,fieldPathId:o,onCopyItem:a,onRemoveItem:l,onMoveDownItem:u,onMoveUpItem:c,readonly:d,registry:h,uiSchema:y}=t,{CopyButton:f,MoveDownButton:p,MoveUpButton:b,RemoveButton:v}=h.templates.ButtonTemplates;return m.jsxs(m.Fragment,{children:[(i||r)&&m.jsx(b,{id:Qe(o,"moveUp"),className:"rjsf-array-item-move-up",disabled:e||d||!i,onClick:c,uiSchema:y,registry:h}),(i||r)&&m.jsx(p,{id:Qe(o,"moveDown"),className:"rjsf-array-item-move-down",disabled:e||d||!r,onClick:u,uiSchema:y,registry:h}),n&&m.jsx(f,{id:Qe(o,"copy"),className:"rjsf-array-item-copy",disabled:e||d,onClick:a,uiSchema:y,registry:h}),s&&m.jsx(v,{id:Qe(o,"remove"),className:"rjsf-array-item-remove",disabled:e||d,onClick:l,uiSchema:y,registry:h})]})}function U1(t){const{canAdd:e,className:n,disabled:r,fieldPathId:i,uiSchema:s,items:o,optionalDataControl:a,onAddClick:l,readonly:u,registry:c,required:d,schema:h,title:y}=t,f=B(s),p=V("ArrayFieldDescriptionTemplate",c,f),b=V("ArrayFieldTitleTemplate",c,f),v=!u&&!r,{ButtonTemplates:{AddButton:S}}=c.templates;return m.jsxs("fieldset",{className:n,id:i.$id,children:[m.jsx(b,{fieldPathId:i,title:f.title||y,required:d,schema:h,uiSchema:s,registry:c,optionalDataControl:v?a:void 0}),m.jsx(p,{fieldPathId:i,description:f.description||h.description,schema:h,uiSchema:s,registry:c}),v?void 0:a,m.jsx("div",{className:"row array-item-list",children:o}),e&&m.jsx(S,{id:Qe(i,"add"),className:"rjsf-array-item-add",onClick:l,disabled:r||u,uiSchema:s,registry:c})]})}function L1(t){const{fieldPathId:e,title:n,schema:r,uiSchema:i,required:s,registry:o,optionalDataControl:a}=t,l=B(i,o.globalUiOptions),{label:u=!0}=l;if(!n||!u)return null;const c=V("TitleFieldTemplate",o,l);return m.jsx(c,{id:Qr(e),title:n,required:s,schema:r,uiSchema:i,registry:o,optionalDataControl:a})}function Yc(t){const{id:e,schema:n}=t,{examples:r,default:i}=n;return Array.isArray(r)?m.jsx("datalist",{id:Xr(e),children:r.concat(i!==void 0&&!r.map(String).includes(String(i))?[i]:[]).map(s=>m.jsx("option",{value:s},String(s)))},`datalist_${e}`):null}function B1(t){const{id:e,name:n,htmlName:r,value:i,readonly:s,disabled:o,autofocus:a,onBlur:l,onFocus:u,onChange:c,onChangeOverride:d,options:h,schema:y,uiSchema:f,registry:p,rawErrors:b,type:v,hideLabel:S,hideError:E,...j}=t,{ClearButton:g}=p.templates.ButtonTemplates;if(!e)throw console.log("No id for",t),new Error(`no id for props ${JSON.stringify(t)}`);const x={...j,..._c(y,v,h)};let w;x.type==="number"||x.type==="integer"?w=i||i===0?i:"":w=i??"";const O=N.useCallback(({target:{value:I}})=>c(I===""?h.emptyValue:I),[c,h]),A=N.useCallback(({target:I})=>l(e,I&&I.value),[l,e]),C=N.useCallback(({target:I})=>u(e,I&&I.value),[u,e]),_=N.useCallback(I=>{I.preventDefault(),I.stopPropagation(),c(h.emptyValue??"")},[c,h.emptyValue]);return m.jsxs(m.Fragment,{children:[m.jsx("input",{id:e,name:r||e,className:"form-control",readOnly:s,disabled:o,autoFocus:a,value:w,...x,list:y.examples?Xr(e):void 0,onChange:d||O,onBlur:A,onFocus:C,"aria-describedby":Fe(e,!!y.examples)}),h.allowClearTextInputs&&!s&&!o&&w&&m.jsx(g,{registry:p,onClick:_}),m.jsx(Yc,{id:e,schema:y})]})}function V1({uiSchema:t}){const{submitText:e,norender:n,props:r={}}=Ic(t);return n?null:m.jsx("div",{children:m.jsx("button",{type:"submit",...r,className:`btn btn-info ${r.className||""}`,children:e})})}function Ct(t){const{iconType:e="default",icon:n,className:r,uiSchema:i,registry:s,...o}=t;return m.jsx("button",{type:"button",className:`btn btn-${e} ${r}`,...o,children:m.jsx("i",{className:`glyphicon glyphicon-${n}`})})}function q1(t){const{registry:{translateString:e}}=t;return m.jsx(Ct,{title:e(G.CopyButton),...t,icon:"copy"})}function z1(t){const{registry:{translateString:e}}=t;return m.jsx(Ct,{title:e(G.MoveDownButton),...t,icon:"arrow-down"})}function W1(t){const{registry:{translateString:e}}=t;return m.jsx(Ct,{title:e(G.MoveUpButton),...t,icon:"arrow-up"})}function H1(t){const{registry:{translateString:e}}=t;return m.jsx(Ct,{title:e(G.RemoveButton),...t,iconType:"danger",icon:"remove"})}function K1({id:t,className:e,onClick:n,disabled:r,registry:i,...s}){const{translateString:o}=i;return m.jsx(Ct,{id:t,iconType:"default",icon:"remove",className:"btn-clear col-xs-12",title:o(G.ClearButton),onClick:n,disabled:r,registry:i,...s})}function G1({id:t,className:e,onClick:n,disabled:r,registry:i}){const{translateString:s}=i;return m.jsx("div",{className:"row",children:m.jsx("p",{className:`col-xs-4 col-sm-2 col-lg-1 col-xs-offset-8 col-sm-offset-10 col-lg-offset-11 text-right ${e}`,children:m.jsx(Ct,{id:t,iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:s(G.AddButton),onClick:n,disabled:r,registry:i})})})}function Y1(){return{SubmitButton:V1,AddButton:G1,CopyButton:q1,MoveDownButton:z1,MoveUpButton:W1,RemoveButton:H1,ClearButton:K1}}const Jc=Bs();function Zs({description:t,registry:e,uiSchema:n={}}){const{globalUiOptions:r}=e;return B(n,r).enableMarkdownInDescription&&typeof t=="string"?m.jsx(fr,{options:{disableParsingRawHTML:!0},"data-testid":Jc.markdown,children:t}):t}Zs.TEST_IDS=Jc;function J1(t){const{id:e,description:n,registry:r,uiSchema:i}=t;return n?m.jsx("div",{id:e,className:"field-description",children:m.jsx(Zs,{description:n,registry:r,uiSchema:i})}):null}function Z1({errors:t,registry:e}){const{translateString:n}=e;return m.jsxs("div",{className:"panel panel-danger errors",children:[m.jsx("div",{className:"panel-heading",children:m.jsx("h3",{className:"panel-title",children:n(G.ErrorsLabel)})}),m.jsx("ul",{className:"list-group",children:t.map((r,i)=>m.jsx("li",{className:"list-group-item text-danger",children:r.stack},i))})]})}function X1(t){const{schema:e,registry:n,typeSelector:r,schemaField:i}=t,s=V("MultiSchemaFieldTemplate",n);return m.jsx(s,{selector:r,optionSchemaField:i,schema:e,registry:n})}const Q1="*";function Zc(t){const{label:e,required:n,id:r}=t;return e?m.jsxs("label",{className:"control-label",htmlFor:r,children:[e,n&&m.jsx("span",{className:"required",children:Q1})]}):null}function eS(t){const{id:e,label:n,children:r,errors:i,help:s,description:o,hidden:a,required:l,displayLabel:u,registry:c,uiSchema:d}=t,h=B(d),y=V("WrapIfAdditionalTemplate",c,h);if(a)return m.jsx("div",{className:"hidden",children:r});const f=h.widget==="checkbox";return m.jsxs(y,{...t,children:[u&&!f&&m.jsx(Zc,{label:n,required:l,id:e}),u&&o?o:null,r,i,s]})}function tS(t){const{errors:e=[],fieldPathId:n}=t;if(e.length===0)return null;const r=Vs(n);return m.jsx("div",{children:m.jsx("ul",{id:r,className:"error-detail bs-callout bs-callout-info",children:e.filter(i=>!!i).map((i,s)=>m.jsx("li",{className:"text-danger",children:i},s))})})}const Xc=Bs();function Xs({help:t,registry:e,uiSchema:n={}}){const{globalUiOptions:r}=e;return B(n,r).enableMarkdownInHelp&&typeof t=="string"?m.jsx(fr,{options:{disableParsingRawHTML:!0},"data-testid":Xc.markdown,children:t}):t}Xs.TEST_IDS=Xc;function nS(t){const{fieldPathId:e,help:n,uiSchema:r,registry:i}=t;return n?m.jsx("div",{id:qs(e),className:"help-block",children:m.jsx(Xs,{help:n,registry:i,uiSchema:r})}):null}function rS(t){const{children:e,column:n,className:r,...i}=t;return m.jsx("div",{className:r,...i,children:e})}function iS(t){const{selector:e,optionSchemaField:n}=t;return m.jsxs("div",{className:"panel panel-default panel-body",children:[m.jsx("div",{className:"form-group",children:e}),n]})}function sS(t){const{className:e,description:n,disabled:r,formData:i,fieldPathId:s,onAddProperty:o,optionalDataControl:a,properties:l,readonly:u,registry:c,required:d,schema:h,title:y,uiSchema:f}=t,p=B(f),b=V("TitleFieldTemplate",c,p),v=V("DescriptionFieldTemplate",c,p);if((h.oneOf||h.anyOf)&&!h.properties&&l.length===0)return null;const E=!u&&!r,{ButtonTemplates:{AddButton:j}}=c.templates;return m.jsxs("fieldset",{className:e,id:s.$id,children:[y&&m.jsx(b,{id:Qr(s),title:y,required:d,schema:h,uiSchema:f,registry:c,optionalDataControl:E?a:void 0}),n&&m.jsx(v,{id:Wt(s),description:n,schema:h,uiSchema:f,registry:c}),E?void 0:a,l.map(g=>g.content),ll(h,f,i)&&m.jsx(j,{id:Qe(s,"add"),className:"rjsf-object-property-expand",onClick:o,disabled:r||u,uiSchema:f,registry:c})]})}function oS(t){const{id:e,registry:n,label:r,onAddClick:i,onRemoveClick:s}=t;return i?m.jsx(Ct,{id:e,registry:n,icon:"plus",className:"rjsf-add-optional-data btn-sm",onClick:i,title:r}):s?m.jsx(Ct,{id:e,registry:n,icon:"remove",className:"rjsf-remove-optional-data btn-sm",onClick:s,title:r}):m.jsx("em",{id:e,children:r})}const aS="*";function lS(t){const{id:e,title:n,required:r,optionalDataControl:i}=t;return m.jsxs("legend",{id:e,children:[n,r&&m.jsx("span",{className:"required",children:aS}),i&&m.jsx("span",{className:"pull-right",style:{marginBottom:"2px"},children:i})]})}function cS(t){const{schema:e,fieldPathId:n,reason:r,registry:i}=t,{translateString:s}=i;let o=G.UnsupportedField;const a=[];return n&&n.$id&&(o=G.UnsupportedFieldWithId,a.push(n.$id)),r&&(o=o===G.UnsupportedField?G.UnsupportedFieldWithReason:G.UnsupportedFieldWithIdAndReason,a.push(r)),m.jsxs("div",{className:"unsupported-field",children:[m.jsx("p",{children:m.jsx(fr,{options:{disableParsingRawHTML:!0},children:s(o,a)})}),e&&m.jsx("pre",{children:JSON.stringify(e,null,2)})]})}function uS(t){const{id:e,classNames:n,style:r,disabled:i,displayLabel:s,label:o,onKeyRenameBlur:a,onRemoveProperty:l,rawDescription:u,readonly:c,required:d,schema:h,hideError:y,rawErrors:f,children:p,uiSchema:b,registry:v}=t,{templates:S,translateString:E}=v,{RemoveButton:j}=S.ButtonTemplates,g=E(G.KeyLabel,[o]),x=ot in h,w=!!u,O=["form-group",n];!y&&f&&f.length>0&&O.push("has-error has-danger");const A=O.join(" ").trim();if(!x)return m.jsx("div",{className:A,style:r,children:p});const C=w?46:26;return m.jsx("div",{className:A,style:r,children:m.jsxs("div",{className:"row",children:[m.jsx("div",{className:"col-xs-5 form-additional",children:m.jsxs("div",{className:"form-group",children:[s&&m.jsx(Zc,{label:g,required:d,id:`${e}-key`}),s&&u&&m.jsx("div",{children:" "}),m.jsx("input",{className:"form-control",type:"text",id:`${e}-key`,onBlur:a,defaultValue:o},o)]})}),m.jsx("div",{className:"form-additional form-group col-xs-5",children:p}),m.jsx("div",{className:"col-xs-2",style:{marginTop:s?`${C}px`:void 0},children:m.jsx(j,{id:Qe(e,"remove"),className:"rjsf-object-property-remove btn-block",style:{border:"0"},disabled:i||c,onClick:l,uiSchema:b,registry:v})})]})})}function dS(){return{ArrayFieldDescriptionTemplate:R1,ArrayFieldItemTemplate:k1,ArrayFieldItemButtonsTemplate:M1,ArrayFieldTemplate:U1,ArrayFieldTitleTemplate:L1,ButtonTemplates:Y1(),BaseInputTemplate:B1,DescriptionFieldTemplate:J1,ErrorListTemplate:Z1,FallbackFieldTemplate:X1,FieldTemplate:eS,FieldErrorTemplate:tS,FieldHelpTemplate:nS,GridTemplate:rS,MultiSchemaFieldTemplate:iS,ObjectFieldTemplate:sS,OptionalDataControlsTemplate:oS,TitleFieldTemplate:lS,UnsupportedFieldTemplate:cS,WrapIfAdditionalTemplate:uS}}function fS(t){const{disabled:e=!1,readonly:n=!1,autofocus:r=!1,options:i,id:s,name:o,registry:a,onBlur:l,onFocus:u}=t,{translateString:c}=a,{elements:d,handleChange:h,handleClear:y,handleSetNow:f}=Ex(t);return m.jsxs("ul",{className:"list-inline",children:[d.map((p,b)=>m.jsx("li",{className:"list-inline-item",children:m.jsx(Ox,{rootId:s,name:o,select:h,...p,disabled:e,readonly:n,registry:a,onBlur:l,onFocus:u,autofocus:r&&b===0})},b)),(i.hideNowButton!=="undefined"?!i.hideNowButton:!0)&&m.jsx("li",{className:"list-inline-item",children:m.jsx("a",{href:"#",className:"btn btn-info btn-now",onClick:f,children:c(G.NowLabel)})}),(i.hideClearButton!=="undefined"?!i.hideClearButton:!0)&&m.jsx("li",{className:"list-inline-item",children:m.jsx("a",{href:"#",className:"btn btn-warning btn-clear",onClick:y,children:c(G.ClearLabel)})})]})}function mS({time:t=!0,...e}){const{AltDateWidget:n}=e.registry.widgets;return m.jsx(n,{time:t,...e})}function hS({schema:t,uiSchema:e,options:n,id:r,value:i,disabled:s,readonly:o,label:a,hideLabel:l,autofocus:u=!1,onBlur:c,onFocus:d,onChange:h,registry:y,htmlName:f}){const p=V("DescriptionFieldTemplate",y,n),b=zn(t),v=N.useCallback(w=>h(w.target.checked),[h]),S=N.useCallback(w=>c(r,w.target.checked),[c,r]),E=N.useCallback(w=>d(r,w.target.checked),[d,r]),x=B(e).widget==="checkbox"?void 0:n.description??t.description;return m.jsxs("div",{className:`checkbox ${s||o?"disabled":""}`,children:[!l&&x&&m.jsx(p,{id:Wt(r),description:x,schema:t,uiSchema:e,registry:y}),m.jsxs("label",{children:[m.jsx("input",{type:"checkbox",id:r,name:f||r,checked:typeof i>"u"?!1:i,required:b,disabled:s||o,autoFocus:u,onChange:v,onBlur:S,onFocus:E,"aria-describedby":Fe(r)}),Nc(m.jsx("span",{children:a}),l)]})]})}function pS({id:t,disabled:e,options:n,value:r,autofocus:i=!1,readonly:s,onChange:o,onBlur:a,onFocus:l,htmlName:u}){const{inline:c=!1,enumOptions:d,enumDisabled:h,emptyValue:y}=n,f=xn(n),p=Array.isArray(r)?r:[r],b=N.useCallback(({target:S})=>a(t,Te(S&&S.value,d,f,y)),[a,t,d,y,f]),v=N.useCallback(({target:S})=>l(t,Te(S&&S.value,d,f,y)),[l,t,d,y,f]);return m.jsx("div",{className:"checkboxes",id:t,children:Array.isArray(d)&&d.map((S,E)=>{const j=cr(S.value,p),g=Array.isArray(h)&&h.indexOf(S.value)!==-1,x=e||g||s?"disabled":"",w=A=>{A.target.checked?o(Ec(E,p,d)):o(jc(E,p,d))},O=m.jsxs("span",{children:[m.jsx("input",{type:"checkbox",id:Pt(t,E),name:u||t,checked:j,value:ur(S.value,E,f),disabled:e||g||s,autoFocus:i&&E===0,onChange:w,onBlur:b,onFocus:v,"aria-describedby":Fe(t)}),m.jsx("span",{children:S.label})]});return c?m.jsx("label",{className:`checkbox-inline ${x}`,children:O},E):m.jsx("div",{className:`checkbox ${x}`,children:m.jsx("label",{children:O})},E)})})}function gS(t){const{disabled:e,readonly:n,options:r,registry:i}=t,s=V("BaseInputTemplate",i,r);return m.jsx(s,{type:"color",...t,disabled:e||n})}function yS(t){const{onChange:e,options:n,registry:r}=t,i=V("BaseInputTemplate",r,n),s=N.useCallback(o=>e(o||void 0),[e]);return m.jsx(i,{type:"date",...t,onChange:s})}function bS(t){const{onChange:e,value:n,options:r,registry:i}=t,s=V("BaseInputTemplate",i,r);return m.jsx(s,{type:"datetime-local",...t,value:Tx(n),onChange:o=>e(xx(o))})}function xS(t){const{options:e,registry:n}=t,r=V("BaseInputTemplate",n,e);return m.jsx(r,{type:"email",...t})}function vS({fileInfo:t,registry:e}){const{translateString:n}=e,{dataURL:r,type:i,name:s}=t;return r?["image/jpeg","image/png"].includes(i)?m.jsx("img",{src:r,style:{maxWidth:"100%"},className:"file-preview"}):m.jsxs(m.Fragment,{children:[" ",m.jsx("a",{download:`preview-${s}`,href:r,className:"file-download",children:n(G.PreviewLabel)})]}):null}function SS({filesInfo:t,registry:e,preview:n,onRemove:r,options:i}){if(t.length===0)return null;const{translateString:s}=e,{RemoveButton:o}=V("ButtonTemplates",e,i);return m.jsx("ul",{className:"file-info",children:t.map((a,l)=>{const{name:u,size:c,type:d}=a,h=()=>r(l);return m.jsxs("li",{children:[m.jsx(fr,{children:s(G.FilesInfo,[u,d,String(c)])}),n&&m.jsx(vS,{fileInfo:a,registry:e}),m.jsx(o,{onClick:h,registry:e})]},l)})})}function wS(t){const{disabled:e,readonly:n,required:r,multiple:i,onChange:s,value:o,options:a,registry:l}=t,{filesInfo:u,handleChange:c,handleRemove:d}=Ix(o,s,i),h=V("BaseInputTemplate",l,a),y=f=>{f.target.files&&c(f.target.files)};return m.jsxs("div",{children:[m.jsx(h,{...t,disabled:e||n,type:"file",required:o?!1:r,onChangeOverride:y,value:"",accept:a.accept?String(a.accept):void 0}),m.jsx(SS,{filesInfo:u,onRemove:d,registry:l,preview:a.filePreview,options:a})]})}function jS({id:t,value:e,htmlName:n}){return m.jsx("input",{type:"hidden",id:t,name:n||t,value:typeof e>"u"?"":e})}function OS(t){const{options:e,registry:n}=t,r=V("BaseInputTemplate",n,e);return m.jsx(r,{type:"password",...t})}function ES({options:t,value:e,required:n,disabled:r,readonly:i,autofocus:s=!1,onBlur:o,onFocus:a,onChange:l,id:u,htmlName:c}){const{enumOptions:d,enumDisabled:h,inline:y,emptyValue:f}=t,p=xn(t),b=N.useCallback(({target:S})=>o(u,Te(S&&S.value,d,p,f)),[o,d,f,u,p]),v=N.useCallback(({target:S})=>a(u,Te(S&&S.value,d,p,f)),[a,d,f,u,p]);return m.jsx("div",{className:"field-radio-group",id:u,role:"radiogroup",children:Array.isArray(d)&&d.map((S,E)=>{const j=cr(S.value,e),g=Array.isArray(h)&&h.indexOf(S.value)!==-1,x=r||g||i?"disabled":"",w=()=>l(S.value),O=m.jsxs("span",{children:[m.jsx("input",{type:"radio",id:Pt(u,E),checked:j,name:c||u,required:n,value:ur(S.value,E,p),disabled:r||g||i,autoFocus:s&&E===0,onChange:w,onBlur:b,onFocus:v,"aria-describedby":Fe(u)}),m.jsx("span",{children:S.label})]});return y?m.jsx("label",{className:`radio-inline ${x}`,children:O},E):m.jsx("div",{className:`radio ${x}`,children:m.jsx("label",{children:O})},E)})})}function AS(t){const{value:e,registry:{templates:{BaseInputTemplate:n}}}=t;return m.jsxs("div",{className:"field-range-wrapper",children:[m.jsx(n,{type:"range",...t}),m.jsx("span",{className:"range-view",children:e})]})}function CS({id:t,value:e,required:n,disabled:r,readonly:i,autofocus:s,onChange:o,onFocus:a,onBlur:l,schema:u,options:c,htmlName:d}){const{stars:h=5,shape:y="star"}=c,f=u.maximum?Math.min(u.maximum,5):Math.min(Math.max(h,1),5),p=u.minimum||0,b=N.useCallback(j=>{!r&&!i&&o(j)},[o,r,i]),v=N.useCallback(j=>{if(a){const g=Number(j.target.dataset.value);a(t,g)}},[a,t]),S=N.useCallback(j=>{if(l){const g=Number(j.target.dataset.value);l(t,g)}},[l,t]),E=j=>y==="heart"?j?"♥":"♡":j?"★":"☆";return m.jsx(m.Fragment,{children:m.jsxs("div",{className:"rating-widget",style:{display:"inline-flex",fontSize:"1.5rem",cursor:r||i?"default":"pointer"},children:[[...Array(f)].map((j,g)=>{const x=p+g,w=x<=e;return m.jsx("span",{onClick:()=>b(x),onFocus:v,onBlur:S,"data-value":x,tabIndex:r||i?-1:0,role:"radio","aria-checked":x===e,"aria-label":`${x} ${y==="heart"?"heart":"star"}${x===1?"":"s"}`,style:{color:w?"#FFD700":"#ccc",padding:"0 0.2rem",transition:"color 0.2s",userSelect:"none"},children:E(w)},g)}),m.jsx("input",{type:"hidden",id:t,name:d||t,value:e||"",required:n,disabled:r||i,"aria-hidden":"true"})]})})}function Ii(t,e){return e?Array.from(t.target.options).slice().filter(n=>n.selected).map(n=>n.value):t.target.value}function _S({schema:t,id:e,options:n,value:r,required:i,disabled:s,readonly:o,multiple:a=!1,autofocus:l=!1,onChange:u,onBlur:c,onFocus:d,placeholder:h,htmlName:y}){const{enumOptions:f,enumDisabled:p,emptyValue:b}=n,v=a?[]:"",S=xn(n),E=N.useCallback(O=>{const A=Ii(O,a);return d(e,Te(A,f,S,b))},[d,e,a,f,b,S]),j=N.useCallback(O=>{const A=Ii(O,a);return c(e,Te(A,f,S,b))},[c,e,a,f,b,S]),g=N.useCallback(O=>{const A=Ii(O,a);return u(Te(A,f,S,b))},[u,a,f,b,S]),x=Oc(r,f,a,S,v),w=!a&&t.default===void 0;return m.jsxs("select",{id:e,name:y||e,multiple:a,role:"combobox",className:"form-control",value:x,required:i,disabled:s||o,autoFocus:l,onBlur:j,onFocus:E,onChange:g,"aria-describedby":Fe(e),children:[w&&m.jsx("option",{value:"",children:h}),Array.isArray(f)&&f.map(({value:O,label:A},C)=>{const _=p&&p.indexOf(O)!==-1;return m.jsx("option",{value:ur(O,C,S),disabled:_,children:A},C)})]})}function IS({id:t,options:e={},placeholder:n,value:r,required:i,disabled:s,readonly:o,autofocus:a=!1,onChange:l,onBlur:u,onFocus:c,htmlName:d}){const h=N.useCallback(({target:{value:p}})=>l(p===""?e.emptyValue:p),[l,e.emptyValue]),y=N.useCallback(({target:p})=>u(t,p&&p.value),[u,t]),f=N.useCallback(({target:p})=>c(t,p&&p.value),[t,c]);return m.jsx("textarea",{id:t,name:d||t,className:"form-control",value:r||"",placeholder:n,required:i,disabled:s,readOnly:o,autoFocus:a,rows:e.rows,onBlur:y,onFocus:f,onChange:h,"aria-describedby":Fe(t)})}function TS(t){const{options:e,registry:n}=t,r=V("BaseInputTemplate",n,e);return m.jsx(r,{...t})}function NS(t){const{onChange:e,options:n,registry:r}=t,i=V("BaseInputTemplate",r,n),s=N.useCallback(o=>e(o?`${o}:00`:void 0),[e]);return m.jsx(i,{type:"time",...t,onChange:s})}function PS(t){const{options:e,registry:n}=t,r=V("BaseInputTemplate",n,e);return m.jsx(r,{type:"url",...t})}function FS(t){const{options:e,registry:n}=t,r=V("BaseInputTemplate",n,e);return m.jsx(r,{type:"number",...t})}function $S(){return{AltDateWidget:fS,AltDateTimeWidget:mS,CheckboxWidget:hS,CheckboxesWidget:pS,ColorWidget:gS,DateWidget:yS,DateTimeWidget:bS,EmailWidget:xS,FileWidget:wS,HiddenWidget:jS,PasswordWidget:OS,RadioWidget:ES,RangeWidget:AS,RatingWidget:CS,SelectWidget:_S,TextWidget:TS,TextareaWidget:IS,TimeWidget:NS,UpDownWidget:FS,URLWidget:PS}}function DS(){return{fields:D1(),templates:dS(),widgets:$S(),rootSchema:{},formContext:{},translateString:nx,globalFormOptions:{idPrefix:sl,idSeparator:ol,useFallbackUiForUnsupportedType:!1}}}function Kt(t,e){return{...Us(t,["schema","uiSchema","fieldPathId","schemaUtils","formData","edit","errors","errorSchema"]),...e!==void 0&&{status:e}}}let RS=class extends N.Component{formElement;pendingChanges=[];_isProcessingUserChange=!1;static getDerivedStateFromProps(e,n){if(e.extraErrors!==n._prevExtraErrors){const r={errors:n.schemaValidationErrors||[],errorSchema:n.schemaValidationErrorSchema||{}};let{errors:i,errorSchema:s}=r;return e.extraErrors&&({errors:i,errorSchema:s}=kn(r,e.extraErrors)),n.customErrors&&({errors:i,errorSchema:s}=kn({errors:i,errorSchema:s},n.customErrors.ErrorSchema,!0)),{_prevExtraErrors:e.extraErrors,errors:i,errorSchema:s}}return null}constructor(e){if(super(e),!e.validator)throw new Error("A validator is required for Form functionality to work");const{formData:n,initialFormData:r,onChange:i}=e,s=n??r;this.state={...this.getStateFromProps(e,s,void 0,void 0,void 0,!0),_prevExtraErrors:e.extraErrors},i&&!ie(this.state.formData,s)&&i(Kt(this.state)),this.formElement=N.createRef()}getSnapshotBeforeUpdate(e,n){if(!ie(this.props,e)){const r=fa(this.props.formData,e.formData),i=fa(this.props.formData,this.state.formData),s=!ie(e.schema,this.props.schema),o=r.length>0||!ie(e.formData,this.props.formData),a=i.length>0||!ie(this.state.formData,this.props.formData),l=this.getStateFromProps(this.props,this.props.formData,s||o?void 0:this.state.retrievedSchema,s,r,!a),u=!ie(l,n);return{nextState:l,shouldUpdate:u}}return{shouldUpdate:!1}}componentDidUpdate(e,n,r){if(r.shouldUpdate){const{nextState:i}=r,s=!ie(i.formData,this.props.formData),o=this._isProcessingUserChange;if(this._isProcessingUserChange=!1,o&&s)return;s&&!ie(i.formData,n.formData)&&this.props.onChange&&this.props.onChange(Kt(i)),this.setState(i)}}getStateFromProps(e,n,r,i=!1,s=[],o=!1){const a=this.state||{},l="schema"in e?e.schema:this.props.schema,u="validator"in e?e.validator:this.props.validator,c=("uiSchema"in e?e.uiSchema:this.props.uiSchema)||{},d=e.formData===void 0&&this.props.formData===void 0,h=typeof n<"u",y="liveValidate"in e?e.liveValidate:this.props.liveValidate,f=h&&!e.noValidate&&y,p="experimental_defaultFormStateBehavior"in e?e.experimental_defaultFormStateBehavior:this.props.experimental_defaultFormStateBehavior,b="experimental_customMergeAllOf"in e?e.experimental_customMergeAllOf:this.props.experimental_customMergeAllOf;let v=a.schemaUtils;(!v||v.doesSchemaUtilsDiffer(u,l,p,b))&&(v=Q0(u,l,p,b));const S=v.getRootSchema();let E=n;n===Ba?E=void 0:n===void 0&&d&&(E=a.formData);const j=v.getDefaultFormState(S,E,!1,a.initialDefaultsGenerated),g=this.updateRetrievedSchema(r??v.retrieveSchema(S,j)),x=()=>e.noValidate||i?{errors:[],errorSchema:{}}:e.liveValidate?{errors:a.errors||[],errorSchema:a.errorSchema||{}}:{errors:a.schemaValidationErrors||[],errorSchema:a.schemaValidationErrorSchema||{}};let w,O,A=a.schemaValidationErrors,C=a.schemaValidationErrorSchema;if(f&&!o){const P=this.liveValidate(S,v,a.errorSchema,j,void 0,a.customErrors,r,r!==void 0);w=P.errors,O=P.errorSchema,A=P.schemaValidationErrors,C=P.schemaValidationErrorSchema}else{const P=x();if(w=P.errors,O=P.errorSchema,s.length>0&&!f){const k=s.reduce((M,U)=>(M[U]=void 0,M),{});O=C=kt(P.errorSchema,k,"preventDuplicates")}const $=this.mergeErrors({errorSchema:O,errors:w},e.extraErrors,a.customErrors);w=$.errors,O=$.errorSchema}const _=this.getRegistry(e,S,v),I=ie(a.registry,_)?a.registry:_,T=a.fieldPathId&&a.fieldPathId?.[de]===I.globalFormOptions.idPrefix?a.fieldPathId:Be("",I.globalFormOptions);return{schemaUtils:v,schema:S,uiSchema:c,fieldPathId:T,formData:j,edit:h,errors:w,errorSchema:O,schemaValidationErrors:A,schemaValidationErrorSchema:C,retrievedSchema:g,initialDefaultsGenerated:!0,registry:I}}shouldComponentUpdate(e,n){const{experimental_componentUpdateStrategy:r="customDeep"}=this.props;return Pc(this,e,n,r)}validate(e,n=this.state.schema,r,i){const s=r||this.state.schemaUtils,{customValidate:o,transformErrors:a,uiSchema:l}=this.props,u=i??s.retrieveSchema(n,e);return s.getValidator().validateFormData(e,u,o,a,l)}renderErrors(e){const{errors:n,errorSchema:r,schema:i,uiSchema:s}=this.state,o=B(s),a=V("ErrorListTemplate",e,o);return n&&n.length?m.jsx(a,{errors:n,errorSchema:r||{},schema:i,uiSchema:s,registry:e}):null}mergeErrors(e,n,r){let i=e.errorSchema,s=e.errors;if(n){const o=kn(e,n);i=o.errorSchema,s=o.errors}if(r){const o=kn({errors:s,errorSchema:i},r.ErrorSchema,!0);i=o.errorSchema,s=o.errors}return{errors:s,errorSchema:i}}liveValidate(e,n,r,i,s,o,a,l=!1){const u=this.validate(i,e,n,a),c=u.errors;let d=u.errorSchema;l&&(d=kt(r,u.errorSchema,"preventDuplicates"));const h=c,y=d;return{...this.mergeErrors({errorSchema:d,errors:c},s,o),schemaValidationErrors:h,schemaValidationErrorSchema:y}}getUsedFormData=(e,n)=>H0(e,n);getFieldNames=(e,n)=>K0(e,n);omitExtraData=e=>{const{schema:n,schemaUtils:r}=this.state;return r.omitExtraData(n,e)};setFieldValue=(e,n)=>{const{registry:r}=this.state,i=Array.isArray(e)?e:e.split("."),s=Be("",r.globalFormOptions,i);this.onChange(n,i,void 0,s[de])};onChange=(e,n,r,i)=>{this.pendingChanges.push({newValue:e,path:n,newErrorSchema:r,id:i}),this.pendingChanges.length===1&&this.processPendingChange()};processPendingChange(){if(this.pendingChanges.length===0)return;this._isProcessingUserChange=!0;const{newValue:e,path:n,id:r}=this.pendingChanges[0],{newErrorSchema:i}=this.pendingChanges[0],{extraErrors:s,omitExtraData:o,liveOmit:a,noValidate:l,liveValidate:u,onChange:c,removeEmptyOptionalObjects:d}=this.props,{formData:h,schemaUtils:y,schema:f,fieldPathId:p,schemaValidationErrorSchema:b,errors:v}=this.state;let{customErrors:S,errorSchema:E}=this.state;const j=p.path[0]||"",g=!n||n.length===0||n.length===1&&n[0]===j;let x=this.state.retrievedSchema,w=g?e:Ls(h);const O=q(w)&&Object.keys(w).length>0&&Object.values(w).every(F=>F===void 0),A=h==null,C=O&&A?void 0:w;if(q(w)||Array.isArray(w)){e===Gc?$x(w,n):g||ce(w,n,e);const F=this.getStateFromProps(this.props,C,void 0,void 0,void 0,!0);w=F.formData,x=F.retrievedSchema}const _=!l&&(u===!0||u==="onChange");let I={formData:w,schema:f},T=w;if(o===!0&&(a===!0||a==="onChange")&&(T=this.omitExtraData(w),I={formData:T}),d&&(T=nn(y.getValidator(),f,y.getRootSchema(),T),I={...I,formData:T}),i){const F=g?b:D(b,n);if(!ge(F))g?E=i:ce(E,n,i);else if(S||(S=new Ac),g){const P=D(i,Ae);P&&S.setErrors(P)}else ce(S.ErrorSchema,n,i)}else S&&D(S.ErrorSchema,[...n,Ae])&&S.clearErrors(n);if(_&&this.pendingChanges.length===1){const F=this.liveValidate(f,y,E,T,s,S,x);I={formData:T,...F,customErrors:S}}else if(!l&&i){const F=this.mergeErrors({errorSchema:E,errors:v},s,S);I={formData:T,...F,customErrors:S}}this.setState(I,()=>{c&&c(Kt({...this.state,...I}),r),this.pendingChanges.shift(),this.processPendingChange()})}updateRetrievedSchema(e){return ie(e,this.state?.retrievedSchema)?this.state.retrievedSchema:e}reset=()=>{const{formData:e,initialFormData:n=Ba,onChange:r}=this.props,o={formData:this.getStateFromProps(this.props,e??n,void 0,void 0,void 0,!0).formData,errorSchema:{},errors:[],schemaValidationErrors:[],schemaValidationErrorSchema:{},initialDefaultsGenerated:!1,customErrors:void 0};this.setState(o,()=>r&&r(Kt({...this.state,...o})))};onBlur=(e,n)=>{const{onBlur:r,omitExtraData:i,liveOmit:s,liveValidate:o,removeEmptyOptionalObjects:a}=this.props;if(r&&r(e,n),i===!0&&s==="onBlur"||o==="onBlur"){const{onChange:l,extraErrors:u}=this.props,{formData:c,schemaUtils:d,schema:h}=this.state;let y=c,f={formData:y};if(i===!0&&s==="onBlur"&&(y=this.omitExtraData(c),f={formData:y}),a&&(y=nn(d.getValidator(),h,d.getRootSchema(),y),f={...f,formData:y}),o==="onBlur"){const{schema:b,schemaUtils:v,errorSchema:S,customErrors:E,retrievedSchema:j}=this.state,g=this.liveValidate(b,v,S,y,u,E,j);f={formData:y,...g,customErrors:E}}const p=Object.keys(f).filter(b=>!b.startsWith("schemaValidation")).some(b=>{const v=D(this.state,b),S=D(f,b);return!ie(v,S)});this.setState(f,()=>{l&&p&&l(Kt({...this.state,...f}),e)})}};onFocus=(e,n)=>{const{onFocus:r}=this.props;r&&r(e,n)};onSubmit=e=>{if(e.preventDefault(),e.target!==e.currentTarget)return;e.persist();const{omitExtraData:n,extraErrors:r,noValidate:i,onSubmit:s,removeEmptyOptionalObjects:o}=this.props;let{formData:a}=this.state;if(n===!0&&(a=this.omitExtraData(a)),o){const{schemaUtils:l,schema:u}=this.state;a=nn(l.getValidator(),u,l.getRootSchema(),a)}if(i||this.validateFormWithFormData(a)){const l=r||{},u=r?Ws(r):[];this.setState({formData:a,errors:u,errorSchema:l,schemaValidationErrors:[],schemaValidationErrorSchema:{}},()=>{s&&s(Kt({...this.state,formData:a},"submitted"),e)})}};getGlobalFormOptions(e){const{uiSchema:n={},experimental_componentUpdateStrategy:r,idSeparator:i=ol,idPrefix:s=sl,nameGenerator:o,useFallbackUiForUnsupportedType:a=!1}=e;return{idPrefix:n["ui:rootFieldId"]||s,idSeparator:i,useFallbackUiForUnsupportedType:a,...r!==void 0&&{experimental_componentUpdateStrategy:r},...o!==void 0&&{nameGenerator:o}}}getRegistry(e,n,r){const{translateString:i,uiSchema:s={}}=e,{fields:o,templates:a,widgets:l,formContext:u,translateString:c}=DS();return{fields:{...o,...e.fields},templates:{...a,...e.templates,ButtonTemplates:{...a.ButtonTemplates,...e.templates?.ButtonTemplates}},widgets:{...l,...e.widgets},rootSchema:n,formContext:e.formContext||u,schemaUtils:r,translateString:i||c,globalUiOptions:s[Vi],globalFormOptions:this.getGlobalFormOptions(e),uiSchemaDefinitions:s[lm]??{}}}submit=()=>{if(this.formElement.current){const e=new CustomEvent("submit",{cancelable:!0});e.preventDefault(),this.formElement.current.dispatchEvent(e),this.formElement.current.requestSubmit()}};focusOnError(e){const{idPrefix:n="root",idSeparator:r="_"}=this.props,{property:i}=e,s=Fc(i);s[0]===""?s[0]=n:s.unshift(n);const o=s.join(r);let a=this.formElement.current.elements[o];a||(a=this.formElement.current.querySelector(`input[id^="${o}"], button[id^="${o}"]`)),a&&a.length&&(a=a[0]),a&&a.focus()}validateFormWithFormData=e=>{const{extraErrors:n,extraErrorsBlockSubmit:r,focusOnFirstError:i,onError:s}=this.props,{errors:o}=this.state,a=this.validate(e),{errors:l,errorSchema:u}=n?this.mergeErrors(a,n):a,c=a.errors.length>0||n&&r;return c?(i&&(typeof i=="function"?i(l[0]):this.focusOnError(l[0])),this.setState({errors:l,errorSchema:u,schemaValidationErrors:a.errors,schemaValidationErrorSchema:a.errorSchema},()=>{s?s(l):console.error("Form validation failed",l)})):l.length>0?this.setState({errors:l,errorSchema:u,schemaValidationErrors:[],schemaValidationErrorSchema:{}}):o.length>0&&this.setState({errors:[],errorSchema:{},schemaValidationErrors:[],schemaValidationErrorSchema:{}}),!c};validateForm(){const{omitExtraData:e,removeEmptyOptionalObjects:n}=this.props;let{formData:r}=this.state;if(e===!0&&(r=this.omitExtraData(r)),n){const{schemaUtils:i,schema:s}=this.state;r=nn(i.getValidator(),s,i.getRootSchema(),r)}return this.validateFormWithFormData(r)}render(){const{children:e,id:n,className:r="",tagName:i,name:s,method:o,target:a,action:l,autoComplete:u,enctype:c,acceptCharset:d,noHtml5Validate:h=!1,disabled:y,readonly:f,showErrorList:p="top",_internalFormWrapper:b}=this.props,{schema:v,uiSchema:S,formData:E,errorSchema:j,fieldPathId:g,registry:x}=this.state,{SchemaField:w}=x.fields,{SubmitButton:O}=x.templates.ButtonTemplates,A=b?i:void 0,C=b||i||"form";let{[Pr]:_={}}=B(S);y&&(_={..._,props:{..._.props,disabled:!0}});const I={[xt]:{[Pr]:_}};return m.jsxs(C,{className:r||"rjsf",id:n,name:s,method:o,target:a,action:l,autoComplete:u,encType:c,acceptCharset:d,noValidate:h,onSubmit:this.onSubmit,as:A,ref:this.formElement,children:[p==="top"&&this.renderErrors(x),m.jsx(w,{name:"",schema:v,uiSchema:S,errorSchema:j,fieldPathId:g,formData:E,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:x,disabled:y,readonly:f}),e||m.jsx(O,{uiSchema:I,registry:x}),p==="bottom"&&this.renderErrors(x)]})}};function kS(t){return N.forwardRef(({fields:e,widgets:n,templates:r,...i},s)=>(e={...t?.fields,...e},n={...t?.widgets,...n},r={...t?.templates,...r,ButtonTemplates:{...t?.templates?.ButtonTemplates,...r?.ButtonTemplates}},m.jsx(RS,{...t,...i,fields:e,widgets:n,templates:r,ref:s})))}function MS(t,e="none"){return e==="all"?t:t.reduce((n,r)=>{const{message:i,schemaPath:s}=r,o=e!=="anyOf"?s?.indexOf(`/${ee}/`):void 0,a=e!=="oneOf"?s?.indexOf(`/${W}/`):void 0;let l;return o&&o>=0?l=s?.substring(0,o):a&&a>=0&&(l=s?.substring(0,a)),l&&n.find(c=>{var d;return c.message===i&&((d=c.schemaPath)===null||d===void 0?void 0:d.startsWith(l))})||n.push(r),n},[])}function US(t=[],e,n){const r=t.map(i=>{var s;const{instancePath:o,keyword:a,params:l,schemaPath:u,parentSchema:c,...d}=i;let{message:h=""}=d,y=o.replace(/\//g,"."),f=`${y} ${h}`.trim(),p="";const b=[...((s=l.deps)===null||s===void 0?void 0:s.split(", "))||[],l.missingProperty,l.property].filter(v=>v);if(b.length>0)b.forEach(v=>{const S=y?`${y}.${v}`:v;let E=B(D(e,S.replace(/^\./,""))).title;if(E===void 0){const j=u.replace(/\/properties\//g,"/").split("/").slice(1,-1).concat([v]);E=B(D(e,j)).title}if(E)h=h.replace(`'${v}'`,`'${E}'`),p=E;else{const j=D(c,[se,v,"title"]);j&&(h=h.replace(`'${v}'`,`'${j}'`),p=j)}}),f=h;else{const v=B(D(e,y.replace(/^\./,""))).title;if(v)f=`'${v}' ${h}`.trim(),p=v;else{const S=c?.title;S&&(f=`'${S}' ${h}`.trim(),p=S)}}return"missingProperty"in l&&(y=y?`${y}.${l.missingProperty}`:l.missingProperty),{name:a,property:y,message:h,params:l,stack:f,schemaPath:u,title:p}});return MS(r,n)}function LS(t,e,n,r,i,s,o,a){const{validationError:l}=e;let u=US(e.errors,o,a);l&&(u=[...u,{stack:l.message}]),typeof s=="function"&&(u=s(u,o));let c=wx(u);if(l&&(c={...c,$schema:{__errors:[l.message]}}),typeof i!="function")return{errors:u,errorSchema:c};const d=yc(t,r,n,r,!0),h=i(d,qi(d),o,c),y=$c(h);return kn({errors:u,errorSchema:c},y)}var br={exports:{}},Ti={},Va;function BS(){return Va||(Va=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatNames=t.fastFormats=t.fullFormats=void 0;function e(A,C){return{validate:A,compare:C}}t.fullFormats={date:e(s,o),time:e(l,u),"date-time":e(d,h),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:p,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:O,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:v,int32:{type:"number",validate:j},int64:{type:"number",validate:g},float:{type:"number",validate:x},double:{type:"number",validate:x},password:!0,binary:!0},t.fastFormats={...t.fullFormats,date:e(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,o),time:e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,u),"date-time":e(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,h),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},t.formatNames=Object.keys(t.fullFormats);function n(A){return A%4===0&&(A%100!==0||A%400===0)}const r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function s(A){const C=r.exec(A);if(!C)return!1;const _=+C[1],I=+C[2],T=+C[3];return I>=1&&I<=12&&T>=1&&T<=(I===2&&n(_)?29:i[I])}function o(A,C){if(A&&C)return A>C?1:A<C?-1:0}const a=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function l(A,C){const _=a.exec(A);if(!_)return!1;const I=+_[1],T=+_[2],F=+_[3],P=_[5];return(I<=23&&T<=59&&F<=59||I===23&&T===59&&F===60)&&(!C||P!=="")}function u(A,C){if(!(A&&C))return;const _=a.exec(A),I=a.exec(C);if(_&&I)return A=_[1]+_[2]+_[3]+(_[4]||""),C=I[1]+I[2]+I[3]+(I[4]||""),A>C?1:A<C?-1:0}const c=/t|\s/i;function d(A){const C=A.split(c);return C.length===2&&s(C[0])&&l(C[1],!0)}function h(A,C){if(!(A&&C))return;const[_,I]=A.split(c),[T,F]=C.split(c),P=o(_,T);if(P!==void 0)return P||u(I,F)}const y=/\/|:/,f=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function p(A){return y.test(A)&&f.test(A)}const b=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function v(A){return b.lastIndex=0,b.test(A)}const S=-2147483648,E=2**31-1;function j(A){return Number.isInteger(A)&&A<=E&&A>=S}function g(A){return Number.isInteger(A)}function x(){return!0}const w=/[^\\]\\Z/;function O(A){if(w.test(A))return!1;try{return new RegExp(A),!0}catch{return!1}}})(Ti)),Ti}var Ni={},qa;function VS(){return qa||(qa=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatLimitDefinition=void 0;const e=Ru(),n=Za(),r=n.operators,i={formatMaximum:{okStr:"<=",ok:r.LTE,fail:r.GT},formatMinimum:{okStr:">=",ok:r.GTE,fail:r.LT},formatExclusiveMaximum:{okStr:"<",ok:r.LT,fail:r.GTE},formatExclusiveMinimum:{okStr:">",ok:r.GT,fail:r.LTE}},s={message:({keyword:a,schemaCode:l})=>n.str`should be ${i[a].okStr} ${l}`,params:({keyword:a,schemaCode:l})=>n._`{comparison: ${i[a].okStr}, limit: ${l}}`};t.formatLimitDefinition={keyword:Object.keys(i),type:"string",schemaType:"string",$data:!0,error:s,code(a){const{gen:l,data:u,schemaCode:c,keyword:d,it:h}=a,{opts:y,self:f}=h;if(!y.validateFormats)return;const p=new e.KeywordCxt(h,f.RULES.all.format.definition,"format");p.$data?b():v();function b(){const E=l.scopeValue("formats",{ref:f.formats,code:y.code.formats}),j=l.const("fmt",n._`${E}[${p.schemaCode}]`);a.fail$data(n.or(n._`typeof ${j} != "object"`,n._`${j} instanceof RegExp`,n._`typeof ${j}.compare != "function"`,S(j)))}function v(){const E=p.schema,j=f.formats[E];if(!j||j===!0)return;if(typeof j!="object"||j instanceof RegExp||typeof j.compare!="function")throw new Error(`"${d}": format "${E}" does not define "compare" function`);const g=l.scopeValue("formats",{key:E,ref:j,code:y.code.formats?n._`${y.code.formats}${n.getProperty(E)}`:void 0});a.fail$data(S(g))}function S(E){return n._`${E}.compare(${u}, ${c}) ${i[d].fail} 0`}},dependencies:["format"]};const o=a=>(a.addKeyword(t.formatLimitDefinition),a);t.default=o})(Ni)),Ni}var za;function qS(){return za||(za=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});const n=BS(),r=VS(),i=Za(),s=new i.Name("fullFormats"),o=new i.Name("fastFormats"),a=(u,c={keywords:!0})=>{if(Array.isArray(c))return l(u,c,n.fullFormats,s),u;const[d,h]=c.mode==="fast"?[n.fastFormats,o]:[n.fullFormats,s],y=c.formats||n.formatNames;return l(u,y,d,h),c.keywords&&r.default(u),u};a.get=(u,c="full")=>{const h=(c==="fast"?n.fastFormats:n.fullFormats)[u];if(!h)throw new Error(`Unknown format "${u}"`);return h};function l(u,c,d,h){var y,f;(y=(f=u.opts.code).formats)!==null&&y!==void 0||(f.formats=i._`require("ajv-formats/dist/formats").${h}`);for(const p of c)u.addFormat(p,d[p])}t.exports=e=a,Object.defineProperty(e,"__esModule",{value:!0}),e.default=a})(br,br.exports)),br.exports}var zS=qS();const Wa=cs(zS),WS={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0,discriminator:!1},HS=/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,KS=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;function GS(t,e,n={},r,i=el,s){let o=new i({...WS,...n});return r?Wa(o,r):r!==!1&&Wa(o),o.addFormat("data-url",KS),o.addFormat("color",HS),o.addKeyword(ot),o.addKeyword(gs),Array.isArray(t)&&o.addMetaSchema(t),ne(e)&&Object.keys(e).forEach(a=>{o.addFormat(a,e[a])}),s&&(o=s(o)),o}class YS{constructor(e,n){this.hasRegisteredRootSchema=!1;const{additionalMetaSchemas:r,customFormats:i,ajvOptionsOverrides:s,ajvFormatOptions:o,AjvClass:a,extenderFn:l,suppressDuplicateFiltering:u}=e;this.ajv=GS(r,i,s,o,a,l),this.localizer=n,this.suppressDuplicateFiltering=u}reset(){this.ajv.removeSchema(),this.lastSeenRootSchema=void 0,this.hasRegisteredRootSchema=!1}rawValidation(e,n){var r,i;let s,o;try{e[de]&&(o=this.ajv.getSchema(e[de])),o===void 0&&(o=this.ajv.compile(e)),o(n)}catch(l){s=l}let a;return o&&(typeof this.localizer=="function"&&(((r=o.errors)!==null&&r!==void 0?r:[]).forEach(l=>{var u;["missingProperty","property"].forEach(c=>{var d;!((d=l.params)===null||d===void 0)&&d[c]&&(l.params[c]=`'${l.params[c]}'`)}),!((u=l.params)===null||u===void 0)&&u.deps&&(l.params.deps=l.params.deps.split(", ").map(c=>`'${c}'`).join(", "))}),this.localizer(o.errors),((i=o.errors)!==null&&i!==void 0?i:[]).forEach(l=>{var u;["missingProperty","property"].forEach(c=>{var d;!((d=l.params)===null||d===void 0)&&d[c]&&(l.params[c]=l.params[c].slice(1,-1))}),!((u=l.params)===null||u===void 0)&&u.deps&&(l.params.deps=l.params.deps.split(", ").map(c=>c.slice(1,-1)).join(", "))})),a=o.errors||void 0,o.errors=null),{errors:a,validationError:s}}validateFormData(e,n,r,i,s){const o=this.rawValidation(n,e);return LS(this,o,e,n,r,i,s,this.suppressDuplicateFiltering)}handleSchemaUpdate(e){var n,r;if(this.lastSeenRootSchema===e&&this.hasRegisteredRootSchema)return;const i=(n=e[de])!==null&&n!==void 0?n:al;this.ajv.getSchema(i)===void 0?this.ajv.addSchema(e,i):ie(e,(r=this.ajv.getSchema(i))===null||r===void 0?void 0:r.schema)||(this.ajv.removeSchema(i),this.ajv.addSchema(e,i)),this.lastSeenRootSchema=e,this.hasRegisteredRootSchema=!0}isValid(e,n,r){var i;try{this.handleSchemaUpdate(r);const s=Hs(e),o=(i=s[de])!==null&&i!==void 0?i:gx(s);let a;return a=this.ajv.getSchema(o),a===void 0&&(a=this.ajv.addSchema(s,o).getSchema(o)||this.ajv.compile(s)),a(n)}catch(s){return console.warn("Error encountered compiling schema:",s),!1}}}function JS(t={},e){return new YS(t,e)}const ZS=JS();const Qc=(...t)=>t.filter((e,n,r)=>!!e&&e.trim()!==""&&r.indexOf(e)===n).join(" ").trim();const XS=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const QS=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,n,r)=>r?r.toUpperCase():n.toLowerCase());const Ha=t=>{const e=QS(t);return e.charAt(0).toUpperCase()+e.slice(1)};var Pi={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const ew=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0;return!1},tw=N.createContext({}),nw=()=>N.useContext(tw),rw=N.forwardRef(({color:t,size:e,strokeWidth:n,absoluteStrokeWidth:r,className:i="",children:s,iconNode:o,...a},l)=>{const{size:u=24,strokeWidth:c=2,absoluteStrokeWidth:d=!1,color:h="currentColor",className:y=""}=nw()??{},f=r??d?Number(n??c)*24/Number(e??u):n??c;return N.createElement("svg",{ref:l,...Pi,width:e??u??Pi.width,height:e??u??Pi.height,stroke:t??h,strokeWidth:f,className:Qc("lucide",y,i),...!s&&!ew(a)&&{"aria-hidden":"true"},...a},[...o.map(([p,b])=>N.createElement(p,b)),...Array.isArray(s)?s:[s]])});const rt=(t,e)=>{const n=N.forwardRef(({className:r,...i},s)=>N.createElement(rw,{ref:s,iconNode:e,className:Qc(`lucide-${XS(Ha(t))}`,`lucide-${t}`,r),...i}));return n.displayName=Ha(t),n};const iw=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],sw=rt("check",iw);const ow=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],eu=rt("chevron-down",ow);const aw=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],lw=rt("chevron-up",aw);const cw=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],uw=rt("circle-alert",cw);const dw=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]],tu=rt("circle-plus",dw);const fw=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],mw=rt("circle",fw);const hw=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],pw=rt("copy",hw);const gw=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],yw=rt("search",gw);const bw=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],xw=rt("trash-2",bw);const vw=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],nu=rt("x",vw);function Y(...t){return ku(Mu(t))}const Sw=us("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",xs:"h-6 rounded-md gap-1 px-2 has-[>svg]:px-2",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function Qs({className:t,variant:e,size:n,asChild:r=!1,...i}){const s=r?Xa:"button";return m.jsx(s,{"data-slot":"button",className:Y(Sw({variant:e,size:n,className:t})),...i})}function ww({uiSchema:t,registry:e,className:n,...r}){const{translateString:i}=e;return m.jsx("div",{className:"p-0 m-0",children:m.jsxs(Qs,{...r,className:Y("w-fit gap-2",n),variant:"outline",type:"button",children:[m.jsx(tu,{size:16})," ",i(G.AddItemButton)]})})}function jw(t){const{children:e,buttonsProps:n,displayLabel:r,hasDescription:i,hasToolbar:s,uiSchema:o,registry:a}=t,l=B(o),u=V("ArrayFieldItemButtonsTemplate",a,l),c=i?-6:22;return m.jsx("div",{children:m.jsxs("div",{className:"mb-2 flex flex-row flex-wrap items-center",children:[m.jsx("div",{className:"grow shrink",children:e}),m.jsx("div",{className:"flex items-end justify-end p-0.5",children:s&&m.jsx("div",{className:"flex gap-2",style:{marginLeft:"5px",marginTop:r?`${c}px`:void 0},children:m.jsx(u,{...n})})})]})})}function Ow(t){const{canAdd:e,disabled:n,fieldPathId:r,uiSchema:i,items:s,optionalDataControl:o,onAddClick:a,readonly:l,registry:u,required:c,schema:d,title:h}=t,y=B(i),f=V("ArrayFieldDescriptionTemplate",u,y),p=V("ArrayFieldTitleTemplate",u,y),b=!l&&!n,{ButtonTemplates:{AddButton:v}}=u.templates;return m.jsx("div",{children:m.jsx("div",{className:"m-0 flex p-0",children:m.jsxs("div",{className:"m-0 w-full p-0",children:[m.jsx(p,{fieldPathId:r,title:y.title||h,schema:d,uiSchema:i,required:c,registry:u,optionalDataControl:b?o:void 0}),m.jsx(f,{fieldPathId:r,description:y.description||d.description,schema:d,uiSchema:i,registry:u}),m.jsxs("div",{className:"p-0 m-0 w-full mb-2",children:[b?void 0:o,s,e&&m.jsx("div",{className:"mt-2 flex justify-end",children:m.jsx(v,{id:Qe(r,"add"),className:"rjsf-array-item-add",onClick:a,disabled:n||l,uiSchema:i,registry:u})})]},`array-item-list-${r.$id}`)]})})})}function ru({className:t,type:e,...n}){return m.jsx("input",{type:e,"data-slot":"input",className:Y("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",t),...n})}function Ew({id:t,htmlName:e,placeholder:n,required:r,readonly:i,disabled:s,type:o,value:a,onChange:l,onChangeOverride:u,onBlur:c,onFocus:d,autofocus:h,options:y,schema:f,rawErrors:p=[],children:b,extraProps:v,className:S,registry:E}){const{ClearButton:j}=E.templates.ButtonTemplates,g={...v,..._c(f,o,y)},x=({target:{value:C}})=>l(C===""?y.emptyValue:C),w=({target:C})=>c(t,C&&C.value),O=({target:C})=>d(t,C&&C.value),A=N.useCallback(C=>{var _;C.preventDefault(),C.stopPropagation(),l((_=y.emptyValue)!==null&&_!==void 0?_:"")},[l,y.emptyValue]);return m.jsxs("div",{className:"p-0.5",children:[m.jsx(ru,{id:t,name:e||t,type:o,placeholder:n,autoFocus:h,required:r,disabled:s,readOnly:i,className:Y({"border-destructive focus-visible:ring-0":p.length>0},S),list:f.examples?Xr(t):void 0,...g,value:a||a===0?a:"",onChange:u||x,onBlur:w,onFocus:O,"aria-describedby":Fe(t,!!f.examples)}),y.allowClearTextInputs&&!i&&!s&&a&&m.jsx(j,{onClick:A,registry:E}),b,m.jsx(Yc,{id:t,schema:f})]})}function Aw({id:t,description:e,registry:n,uiSchema:r}){return e?m.jsx("div",{children:m.jsx("div",{id:t,className:"text-sm text-muted-foreground",children:m.jsx(Zs,{description:e,registry:n,uiSchema:r})})}):null}const Cw=us("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"}},defaultVariants:{variant:"default"}});function _w({className:t,variant:e,...n}){return m.jsx("div",{"data-slot":"alert",role:"alert",className:Y(Cw({variant:e}),t),...n})}function Iw({className:t,...e}){return m.jsx("div",{"data-slot":"alert-title",className:Y("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",t),...e})}function Tw({className:t,...e}){return m.jsx("div",{"data-slot":"alert-description",className:Y("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",t),...e})}function Nw({errors:t,registry:e}){const{translateString:n}=e;return m.jsxs(_w,{variant:"destructive",className:"mb-2",children:[m.jsx(uw,{className:"h-4 w-4"}),m.jsx(Iw,{children:n(G.ErrorsLabel)}),m.jsx(Tw,{className:"flex flex-col gap-1",children:t.map((r,i)=>m.jsxs("span",{children:["• ",r.stack]},i))})]})}function Pw(t){const{errors:e=[],fieldPathId:n}=t;if(e.length===0)return null;const r=Vs(n);return m.jsx("div",{className:"flex flex-col gap-1",id:r,children:e.map((i,s)=>m.jsx("span",{className:"text-xs font-medium text-destructive mb-1",children:i},s))})}function Fw(t){const{fieldPathId:e,help:n,uiSchema:r,registry:i,hasErrors:s}=t;return n?m.jsx("span",{className:Y("text-xs font-medium text-muted-foreground",{"text-destructive":s}),id:qs(e),children:m.jsx(Xs,{help:n,registry:i,uiSchema:r})}):null}function $w({id:t,children:e,displayLabel:n,rawErrors:r=[],errors:i,help:s,description:o,rawDescription:a,classNames:l,style:u,disabled:c,label:d,hidden:h,onKeyRename:y,onKeyRenameBlur:f,onRemoveProperty:p,readonly:b,required:v,schema:S,uiSchema:E,registry:j}){const g=B(E),x=V("WrapIfAdditionalTemplate",j,g);if(h)return m.jsx("div",{className:"hidden",children:e});const w=g.widget==="checkbox";return m.jsx(x,{classNames:l,style:u,disabled:c,id:t,label:d,displayLabel:n,onKeyRename:y,onKeyRenameBlur:f,onRemoveProperty:p,rawDescription:a,readonly:b,required:v,schema:S,uiSchema:E,registry:j,children:m.jsxs("div",{className:"flex flex-col gap-2",children:[n&&!w&&m.jsxs("label",{className:Y("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{" text-destructive":r.length>0}),htmlFor:t,children:[d,v?"*":null]}),e,n&&a&&!w&&m.jsx("span",{className:Y("text-xs font-medium text-muted-foreground",{" text-destructive":r.length>0}),children:o}),i,s]})})}function Dw(t){const{children:e,column:n,className:r,...i}=t;return m.jsx("div",{className:Y("grid gap-2",r),...i,children:e})}function Rw(t){const{icon:e,iconType:n,className:r,uiSchema:i,registry:s,...o}=t;return m.jsx(Qs,{size:"icon",variant:"outline",className:r,...o,type:"button",children:e})}const Sn=N.memo(Rw);function kw(t){const{registry:{translateString:e}}=t;return m.jsx(Sn,{title:e(G.CopyButton),...t,icon:m.jsx(pw,{className:"h-4 w-4"})})}const Mw=N.memo(kw);function Uw(t){const{registry:{translateString:e}}=t;return m.jsx(Sn,{title:e(G.MoveDownButton),...t,icon:m.jsx(eu,{className:"h-4 w-4"})})}const Lw=N.memo(Uw);function Bw(t){const{registry:{translateString:e}}=t;return m.jsx(Sn,{title:e(G.MoveUpButton),...t,icon:m.jsx(lw,{className:"h-4 w-4"})})}const Vw=N.memo(Bw);function qw(t){const{registry:{translateString:e}}=t;return m.jsx(Sn,{title:e(G.RemoveButton),...t,className:"border-destructive",icon:m.jsx(xw,{className:"h-4 w-4 stroke-destructive"})})}const iu=N.memo(qw);function zw(t){const{registry:{translateString:e}}=t;return m.jsx(Sn,{title:e(G.ClearButton),...t,icon:m.jsx(nu,{})})}const Ww=N.memo(zw);function Hw({selector:t,optionSchemaField:e}){return m.jsxs("div",{className:Y("p-4 border rounded-md bg-background shadow-sm"),children:[m.jsx("div",{className:Y("mb-4"),children:t}),e]})}function Kw({description:t,title:e,properties:n,required:r,uiSchema:i,fieldPathId:s,schema:o,formData:a,optionalDataControl:l,onAddProperty:u,disabled:c,readonly:d,registry:h}){const y=B(i),f=V("TitleFieldTemplate",h,y),p=V("DescriptionFieldTemplate",h,y),b=!d&&!c,{ButtonTemplates:{AddButton:v}}=h.templates;return m.jsxs(m.Fragment,{children:[e&&m.jsx(f,{id:Qr(s),title:e,required:r,schema:o,uiSchema:i,registry:h,optionalDataControl:b?l:void 0}),t&&m.jsx(p,{id:Wt(s),description:t,schema:o,uiSchema:i,registry:h}),m.jsxs("div",{className:"flex flex-col gap-2",children:[b?void 0:l,n.map(S=>m.jsx("div",{className:`${S.hidden?"hidden":""} flex`,children:m.jsx("div",{className:"w-full",children:S.content})},S.name)),ll(o,i,a)?m.jsx("div",{className:"mt-2 flex justify-end",children:m.jsx(v,{id:Qe(s,"add"),onClick:u,disabled:c||d,className:"rjsf-object-property-expand",uiSchema:i,registry:h})}):null]})]})}function Gw(t){const{id:e,registry:n,label:r,onAddClick:i,onRemoveClick:s}=t;return i?m.jsx(Sn,{id:e,registry:n,className:"rjsf-add-optional-data",onClick:i,title:r,icon:m.jsx(tu,{}),size:"xs"}):s?m.jsx(iu,{id:e,registry:n,className:"rjsf-remove-optional-data",onClick:s,title:r,size:"xs"}):m.jsx("em",{id:e,children:r})}function Yw(t){const{submitText:e,norender:n,props:r}=Ic(t.uiSchema);return n?null:m.jsx("div",{children:m.jsx(Qs,{type:"submit",...r,className:Y("my-2",r?.className),children:e})})}function su({className:t,orientation:e="horizontal",decorative:n=!0,...r}){return m.jsx(Uu,{"data-slot":"separator",decorative:n,orientation:e,className:Y("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",t),...r})}function Jw({id:t,title:e,uiSchema:n,optionalDataControl:r}){const i=B(n);let s=m.jsx("h5",{children:i.title||e});return r&&(s=m.jsxs("div",{className:"flex flex-row",children:[m.jsx("div",{className:"flex-grow",children:s}),m.jsx("div",{className:"flex",children:r})]})),m.jsxs("div",{id:t,className:"my-1 flex flex-col gap-0.5",children:[s,m.jsx(su,{dir:"horizontal",style:{height:"1px"},className:"my-1"})]})}function Zw({classNames:t,style:e,children:n,disabled:r,id:i,label:s,displayLabel:o,onRemoveProperty:a,onKeyRenameBlur:l,rawDescription:u,readonly:c,required:d,schema:h,uiSchema:y,registry:f}){const{templates:p,translateString:b}=f,{RemoveButton:v}=p.ButtonTemplates,S=b(G.KeyLabel,[s]);if(!(ot in h))return m.jsx("div",{className:t,style:e,children:n});const g=o?22+(u?-28:0):0,x=`${i}-key`;return m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:`grid grid-cols-12 col-span-12 items-center gap-2 ${t}`,style:e,children:[m.jsx("div",{className:"grid gap-2 col-span-5",children:m.jsxs("div",{className:"flex flex-col gap-2",children:[o&&m.jsx("label",{htmlFor:x,className:"text-sm font-medium text-muted-foreground leading-none",children:S}),m.jsx("div",{className:"pl-0.5",children:m.jsx(ru,{required:d,defaultValue:s,disabled:r||c,id:x,name:x,onBlur:c?void 0:l,type:"text",className:"w-full border shadow-sm"},s)}),!!u&&m.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:m.jsx("div",{className:"text-sm text-muted-foreground",children:" "})})]})}),m.jsx("div",{className:"grid gap-2 col-span-6 pr-0.5",children:n}),m.jsx("div",{className:"grid gap-2 col-span-1",style:{marginTop:`${g}px`},children:m.jsx(v,{id:Qe(i,"remove"),iconType:"block",className:"rjsf-object-property-remove w-full",disabled:r||c,onClick:a,uiSchema:y,registry:f})})]}),m.jsx(su,{dir:"horizontal",className:"mt-2"})]})}function Xw(){return{ArrayFieldItemTemplate:jw,ArrayFieldTemplate:Ow,BaseInputTemplate:Ew,ButtonTemplates:{AddButton:ww,CopyButton:Mw,MoveDownButton:Lw,MoveUpButton:Vw,RemoveButton:iu,SubmitButton:Yw,ClearButton:Ww},DescriptionFieldTemplate:Aw,ErrorListTemplate:Nw,FieldErrorTemplate:Pw,FieldHelpTemplate:Fw,FieldTemplate:$w,GridTemplate:Dw,MultiSchemaFieldTemplate:Hw,ObjectFieldTemplate:Kw,OptionalDataControlsTemplate:Gw,TitleFieldTemplate:Jw,WrapIfAdditionalTemplate:Zw}}function Qw(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var ej=["color"],tj=N.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=Qw(t,ej);return N.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:e}),N.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});function ou({className:t,...e}){return m.jsx(Lu,{"data-slot":"checkbox",className:Y("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",t),...e,children:m.jsx(Bu,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:m.jsx(tj,{className:"size-3.5"})})})}function eo({className:t,...e}){return m.jsx(Vu,{"data-slot":"label",className:Y("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",t),...e})}function nj({id:t,htmlName:e,disabled:n,options:r,value:i,autofocus:s,readonly:o,required:a,onChange:l,onBlur:u,onFocus:c,className:d}){const{enumOptions:h,enumDisabled:y,inline:f,emptyValue:p}=r,b=xn(r),v=Array.isArray(i)?i:[i],S=({target:j})=>u(t,Te(j&&j.value,h,b,p)),E=({target:j})=>c(t,Te(j&&j.value,h,b,p));return m.jsx("div",{className:Y({"flex flex-col gap-2":!f,"flex flex-row gap-4 flex-wrap":f}),children:Array.isArray(h)&&h.map((j,g)=>{const x=cr(j.value,v),w=Array.isArray(y)&&y.includes(j.value),O=Pt(t,g);return m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(ou,{id:O,name:e||t,required:a,disabled:n||w||o,onCheckedChange:A=>{l(A?Ec(g,v,h):jc(g,v,h))},className:d,checked:x,autoFocus:s&&g===0,onBlur:S,onFocus:E,"aria-describedby":Fe(t)}),m.jsx(eo,{className:"leading-tight",htmlFor:Pt(t,g),children:j.label})]},O)})})}function rj(t){const{id:e,htmlName:n,value:r,disabled:i,readonly:s,label:o,hideLabel:a,schema:l,autofocus:u,options:c,onChange:d,onBlur:h,onFocus:y,registry:f,uiSchema:p,className:b}=t,v=zn(l),S=V("DescriptionFieldTemplate",f,c),E=w=>d(w),j=()=>h(e,r),g=()=>y(e,r),x=c.description||l.description;return m.jsxs("div",{className:`relative ${i||s?"cursor-not-allowed opacity-50":""}`,"aria-describedby":Fe(e),children:[!a&&x&&m.jsx(S,{id:Wt(e),description:x,schema:l,uiSchema:p,registry:f}),m.jsxs("div",{className:"flex items-center gap-2 my-2",children:[m.jsx(ou,{id:e,name:n||e,checked:typeof r>"u"?!1:!!r,required:v,disabled:i||s,autoFocus:u,onCheckedChange:E,onBlur:j,onFocus:g,className:b}),m.jsx(eo,{className:"leading-tight",htmlFor:e,children:Nc(o,a||!o)})]})]})}function ij({className:t,...e}){return m.jsx(jd,{"data-slot":"radio-group",className:Y("grid gap-3",t),...e})}function sj({className:t,...e}){return m.jsx(Od,{"data-slot":"radio-group-item",className:Y("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",t),...e,children:m.jsx(Ed,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:m.jsx(mw,{className:"fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})})})}function oj({id:t,options:e,value:n,required:r,disabled:i,readonly:s,onChange:o,onBlur:a,onFocus:l,className:u}){const{enumOptions:c,enumDisabled:d,emptyValue:h}=e,y=xn(e),f=S=>o(Te(S,c,y,h)),p=({target:S})=>a(t,Te(S&&S.value,c,y,h)),b=({target:S})=>l(t,Te(S&&S.value,c,y,h)),v=!!(e&&e.inline);return m.jsx("div",{className:"mb-0",children:m.jsx(ij,{defaultValue:n?.toString(),required:r,disabled:i||s,onValueChange:S=>{f(S)},onBlur:p,onFocus:b,"aria-describedby":Fe(t),orientation:v?"horizontal":"vertical",className:Y("flex flex-wrap",{"flex-col":!v},u),children:Array.isArray(c)&&c.map((S,E)=>{const j=Array.isArray(d)&&d.includes(S.value),g=cr(S.value,n);return m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(sj,{checked:g,value:ur(S.value,E,y),id:Pt(t,E),disabled:j}),m.jsx(eo,{className:"leading-tight",htmlFor:Pt(t,E),children:S.label})]},Pt(t,E))})})})}var au=["PageUp","PageDown"],lu=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],cu={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},wn="Slider",[rs,aj,lj]=zu(wn),[uu]=Ku(wn,[lj]),[cj,ni]=uu(wn),du=N.forwardRef((t,e)=>{const{name:n,min:r=0,max:i=100,step:s=1,orientation:o="horizontal",disabled:a=!1,minStepsBetweenThumbs:l=0,defaultValue:u=[r],value:c,onValueChange:d=()=>{},onValueCommit:h=()=>{},inverted:y=!1,form:f,...p}=t,b=N.useRef(new Set),v=N.useRef(0),E=o==="horizontal"?uj:dj,[j=[],g]=qu({prop:c,defaultProp:u,onChange:_=>{[...b.current][v.current]?.focus(),d(_)}}),x=N.useRef(j);function w(_){const I=gj(j,_);C(_,I)}function O(_){C(_,v.current)}function A(){const _=x.current[v.current];j[v.current]!==_&&h(j)}function C(_,I,{commit:T}={commit:!1}){const F=vj(s),P=Sj(Math.round((_-r)/s)*s+r,F),$=tl(P,[r,i]);g((k=[])=>{const M=hj(k,$,I);if(xj(M,l*s)){v.current=M.indexOf($);const U=String(M)!==String(k);return U&&T&&h(M),U?M:k}else return k})}return m.jsx(cj,{scope:t.__scopeSlider,name:n,disabled:a,min:r,max:i,valueIndexToChangeRef:v,thumbs:b.current,values:j,orientation:o,form:f,children:m.jsx(rs.Provider,{scope:t.__scopeSlider,children:m.jsx(rs.Slot,{scope:t.__scopeSlider,children:m.jsx(E,{"aria-disabled":a,"data-disabled":a?"":void 0,...p,ref:e,onPointerDown:Xt(p.onPointerDown,()=>{a||(x.current=j)}),min:r,max:i,inverted:y,onSlideStart:a?void 0:w,onSlideMove:a?void 0:O,onSlideEnd:a?void 0:A,onHomeKeyDown:()=>!a&&C(r,0,{commit:!0}),onEndKeyDown:()=>!a&&C(i,j.length-1,{commit:!0}),onStepKeyDown:({event:_,direction:I})=>{if(!a){const P=au.includes(_.key)||_.shiftKey&&lu.includes(_.key)?10:1,$=v.current,k=j[$],M=s*P*I;C(k+M,$,{commit:!0})}}})})})})});du.displayName=wn;var[fu,mu]=uu(wn,{startEdge:"left",endEdge:"right",size:"width",direction:1}),uj=N.forwardRef((t,e)=>{const{min:n,max:r,dir:i,inverted:s,onSlideStart:o,onSlideMove:a,onSlideEnd:l,onStepKeyDown:u,...c}=t,[d,h]=N.useState(null),y=pn(e,E=>h(E)),f=N.useRef(void 0),p=Wu(i),b=p==="ltr",v=b&&!s||!b&&s;function S(E){const j=f.current||d.getBoundingClientRect(),g=[0,j.width],w=to(g,v?[n,r]:[r,n]);return f.current=j,w(E-j.left)}return m.jsx(fu,{scope:t.__scopeSlider,startEdge:v?"left":"right",endEdge:v?"right":"left",direction:v?1:-1,size:"width",children:m.jsx(hu,{dir:p,"data-orientation":"horizontal",...c,ref:y,style:{...c.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:E=>{const j=S(E.clientX);o?.(j)},onSlideMove:E=>{const j=S(E.clientX);a?.(j)},onSlideEnd:()=>{f.current=void 0,l?.()},onStepKeyDown:E=>{const g=cu[v?"from-left":"from-right"].includes(E.key);u?.({event:E,direction:g?-1:1})}})})}),dj=N.forwardRef((t,e)=>{const{min:n,max:r,inverted:i,onSlideStart:s,onSlideMove:o,onSlideEnd:a,onStepKeyDown:l,...u}=t,c=N.useRef(null),d=pn(e,c),h=N.useRef(void 0),y=!i;function f(p){const b=h.current||c.current.getBoundingClientRect(),v=[0,b.height],E=to(v,y?[r,n]:[n,r]);return h.current=b,E(p-b.top)}return m.jsx(fu,{scope:t.__scopeSlider,startEdge:y?"bottom":"top",endEdge:y?"top":"bottom",size:"height",direction:y?1:-1,children:m.jsx(hu,{"data-orientation":"vertical",...u,ref:d,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:p=>{const b=f(p.clientY);s?.(b)},onSlideMove:p=>{const b=f(p.clientY);o?.(b)},onSlideEnd:()=>{h.current=void 0,a?.()},onStepKeyDown:p=>{const v=cu[y?"from-bottom":"from-top"].includes(p.key);l?.({event:p,direction:v?-1:1})}})})}),hu=N.forwardRef((t,e)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:i,onSlideEnd:s,onHomeKeyDown:o,onEndKeyDown:a,onStepKeyDown:l,...u}=t,c=ni(wn,n);return m.jsx(nr.span,{...u,ref:e,onKeyDown:Xt(t.onKeyDown,d=>{d.key==="Home"?(o(d),d.preventDefault()):d.key==="End"?(a(d),d.preventDefault()):au.concat(lu).includes(d.key)&&(l(d),d.preventDefault())}),onPointerDown:Xt(t.onPointerDown,d=>{const h=d.target;h.setPointerCapture(d.pointerId),d.preventDefault(),c.thumbs.has(h)?h.focus():r(d)}),onPointerMove:Xt(t.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&i(d)}),onPointerUp:Xt(t.onPointerUp,d=>{const h=d.target;h.hasPointerCapture(d.pointerId)&&(h.releasePointerCapture(d.pointerId),s(d))})})}),pu="SliderTrack",gu=N.forwardRef((t,e)=>{const{__scopeSlider:n,...r}=t,i=ni(pu,n);return m.jsx(nr.span,{"data-disabled":i.disabled?"":void 0,"data-orientation":i.orientation,...r,ref:e})});gu.displayName=pu;var is="SliderRange",yu=N.forwardRef((t,e)=>{const{__scopeSlider:n,...r}=t,i=ni(is,n),s=mu(is,n),o=N.useRef(null),a=pn(e,o),l=i.values.length,u=i.values.map(h=>vu(h,i.min,i.max)),c=l>1?Math.min(...u):0,d=100-Math.max(...u);return m.jsx(nr.span,{"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,...r,ref:a,style:{...t.style,[s.startEdge]:c+"%",[s.endEdge]:d+"%"}})});yu.displayName=is;var ss="SliderThumb",bu=N.forwardRef((t,e)=>{const n=aj(t.__scopeSlider),[r,i]=N.useState(null),s=pn(e,a=>i(a)),o=N.useMemo(()=>r?n().findIndex(a=>a.ref.current===r):-1,[n,r]);return m.jsx(fj,{...t,ref:s,index:o})}),fj=N.forwardRef((t,e)=>{const{__scopeSlider:n,index:r,name:i,...s}=t,o=ni(ss,n),a=mu(ss,n),[l,u]=N.useState(null),c=pn(e,S=>u(S)),d=l?o.form||!!l.closest("form"):!0,h=Hu(l),y=o.values[r],f=y===void 0?0:vu(y,o.min,o.max),p=pj(r,o.values.length),b=h?.[a.size],v=b?yj(b,f,a.direction):0;return N.useEffect(()=>{if(l)return o.thumbs.add(l),()=>{o.thumbs.delete(l)}},[l,o.thumbs]),m.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${f}% + ${v}px)`},children:[m.jsx(rs.ItemSlot,{scope:t.__scopeSlider,children:m.jsx(nr.span,{role:"slider","aria-label":t["aria-label"]||p,"aria-valuemin":o.min,"aria-valuenow":y,"aria-valuemax":o.max,"aria-orientation":o.orientation,"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,tabIndex:o.disabled?void 0:0,...s,ref:c,style:y===void 0?{display:"none"}:t.style,onFocus:Xt(t.onFocus,()=>{o.valueIndexToChangeRef.current=r})})}),d&&m.jsx(xu,{name:i??(o.name?o.name+(o.values.length>1?"[]":""):void 0),form:o.form,value:y},r)]})});bu.displayName=ss;var mj="RadioBubbleInput",xu=N.forwardRef(({__scopeSlider:t,value:e,...n},r)=>{const i=N.useRef(null),s=pn(i,r),o=Gu(e);return N.useEffect(()=>{const a=i.current;if(!a)return;const l=window.HTMLInputElement.prototype,c=Object.getOwnPropertyDescriptor(l,"value").set;if(o!==e&&c){const d=new Event("input",{bubbles:!0});c.call(a,e),a.dispatchEvent(d)}},[o,e]),m.jsx(nr.input,{style:{display:"none"},...n,ref:s,defaultValue:e})});xu.displayName=mj;function hj(t=[],e,n){const r=[...t];return r[n]=e,r.sort((i,s)=>i-s)}function vu(t,e,n){const s=100/(n-e)*(t-e);return tl(s,[0,100])}function pj(t,e){return e>2?`Value ${t+1} of ${e}`:e===2?["Minimum","Maximum"][t]:void 0}function gj(t,e){if(t.length===1)return 0;const n=t.map(i=>Math.abs(i-e)),r=Math.min(...n);return n.indexOf(r)}function yj(t,e,n){const r=t/2,s=to([0,50],[0,r]);return(r-s(e)*n)*n}function bj(t){return t.slice(0,-1).map((e,n)=>t[n+1]-e)}function xj(t,e){if(e>0){const n=bj(t);return Math.min(...n)>=e}return!0}function to(t,e){return n=>{if(t[0]===t[1]||e[0]===e[1])return e[0];const r=(e[1]-e[0])/(t[1]-t[0]);return e[0]+r*(n-t[0])}}function vj(t){return(String(t).split(".")[1]||"").length}function Sj(t,e){const n=Math.pow(10,e);return Math.round(t*n)/n}var wj=du,jj=gu,Oj=yu,Ej=bu;function Aj({className:t,defaultValue:e,value:n,min:r=0,max:i=100,...s}){const o=N.useMemo(()=>Array.isArray(n)?n:Array.isArray(e)?e:[r,i],[n,e,r,i]);return m.jsxs(wj,{"data-slot":"slider",defaultValue:e,value:n,min:r,max:i,className:Y("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",t),...s,children:[m.jsx(jj,{"data-slot":"slider-track",className:Y("bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),children:m.jsx(Oj,{"data-slot":"slider-range",className:Y("bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")})}),Array.from({length:o.length},(a,l)=>m.jsx(Ej,{"data-slot":"slider-thumb",className:"border-primary bg-background ring-ring/50 block size-4 shrink-0 rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"},l))]})}const Cj=["name","min","max","step","orientation","disabled","defaultValue","value","onValueChange","className","dir","inverted","minStepsBetweenThumbs"];function _j({value:t,readonly:e,disabled:n,options:r,schema:i,onChange:s,label:o,id:a}){const l=d=>s(d[0]),u={...Cc(i)},c={id:a,...Us(r.props||{},Cj)};return m.jsxs(m.Fragment,{children:[m.jsx(Aj,{disabled:n||e,min:u.min,max:u.max,step:u.step,value:[t],onValueChange:l,...c,"aria-describedby":Fe(a)}),t]})}const Ij=us("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Tj({className:t,variant:e,asChild:n=!1,...r}){const i=n?Xa:"span";return m.jsx(i,{"data-slot":"badge",className:Y(Ij({variant:e}),t),...r})}const Su=N.forwardRef(({className:t,...e},n)=>m.jsx(Ut,{ref:n,"data-slot":"command",className:Y("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),...e})),Nj=N.forwardRef(({className:t,...e},n)=>m.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[m.jsx(yw,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),m.jsx(Ut.Input,{ref:n,className:Y("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",t),...e})]}));Nj.displayName=Ut.Input.displayName;function wu({className:t,...e}){return m.jsx(Ut.List,{"data-slot":"command-list",className:Y("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),...e})}function ju({className:t,...e}){return m.jsx(Ut.Group,{"data-slot":"command-group",className:Y("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),...e})}function Ou({className:t,...e}){return m.jsx(Ut.Item,{"data-slot":"command-item",className:Y("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...e})}function Pj({multiple:t,items:e=[],selected:n,onValueChange:r,autoFocus:i=!1,disabled:s=!1,ariaDescribedby:o,ariaPlaceholder:a,onFocus:l,onBlur:u,className:c,id:d}){const h=N.useRef(null),[y,f]=N.useState(!1),[p,b]=N.useState(""),v=N.useMemo(()=>e.filter(w=>n.some(O=>Cr(w.value,O))),[e,n]),S=N.useMemo(()=>e.filter(w=>!v.some(O=>Cr(O.value,w.value))),[e,v]),E=N.useCallback(w=>{if(s)return;const O=v.filter(A=>!Cr(A.value,w.value));r?.(O.map(A=>A.index))},[v,r,s]),j=N.useCallback(w=>{if(!(s||!h.current||h.current.value!==""))if(w.key==="Delete"||w.key==="Backspace"){const O=v.slice(0,-1);r?.(O.map(A=>A.index))}else w.key==="Escape"&&h.current.blur()},[v,r,s]),g=N.useCallback(w=>{if(s)return;b("");const O=t?[...v,w]:[w];r?.(O.map(A=>A.index))},[t,v,r,s]),x=N.useCallback(w=>{s||f(!0),l?.(w)},[s,l]);return m.jsxs(Su,{onKeyDown:j,className:Y("overflow-visible bg-transparent",c),autoFocus:i,"aria-disabled":s,onBlur:u,onFocus:x,"aria-describedby":o,"aria-placeholder":a,children:[m.jsx("div",{className:Y("group border border-input px-3 py-2 text-sm ring-offset-background rounded-md focus-within:ring-1 focus-within:ring-ring focus-within:ring-offset-1",s&&"opacity-50 cursor-not-allowed"),children:m.jsxs("div",{className:"flex gap-1 flex-wrap",children:[v.map(w=>m.jsxs(Tj,{variant:"secondary",children:[w.label,m.jsx("button",{type:"button",className:"rtl:mr-1 ltr:ml-1 ring-offset-background rounded-full outline-none focus:ring-1 focus:ring-ring focus:ring-offset-1",onKeyDown:O=>O.key==="Enter"&&!s&&E(w),onMouseDown:O=>{O.preventDefault(),O.stopPropagation()},onClick:()=>E(w),disabled:s,children:m.jsx(nu,{className:Y("h-3 w-3 text-muted-foreground hover:text-foreground",s&&"pointer-events-none")})})]},w.value)),m.jsx(Ut.Input,{ref:h,value:p,onValueChange:b,onBlur:()=>f(!1),onFocus:()=>!s&&f(!0),placeholder:"Select ...",className:"rtl:mr-2 ltr:ml-2 bg-transparent outline-none placeholder:text-muted-foreground flex-1",disabled:s,"aria-controls":`command-item-input-${d}`,"aria-labelledby":`command-item-input-${d}`,id:`command-item-input-${d}`})]})}),y&&!s&&S.length>0&&m.jsx("div",{className:"relative mt-2",children:m.jsx("div",{className:"absolute w-full z-10 top-0 rounded-md border bg-popover text-popover-foreground shadow-md outline-none animate-in",children:m.jsx(ju,{className:"h-full overflow-auto",children:m.jsx(wu,{children:S.map(w=>m.jsx(Ou,{disabled:w.disabled,onMouseDown:O=>{O.preventDefault(),O.stopPropagation()},"aria-controls":`${w.value}-command-item`,"aria-labelledby":`${w.value}-command-item`,id:`${w.value}-command-item`,onSelect:()=>g(w),className:"cursor-pointer",children:w.label},`${w.value}-command-item`))})})})})]})}function Fj({items:t,selected:e,onValueChange:n,autoFocus:r=!1,disabled:i=!1,required:s=!1,placeholder:o="Select...",ariaDescribedby:a,ariaPlaceholder:l,onFocus:u,onBlur:c,className:d}){const[h,y]=N.useState(!1),f=t?.find(S=>S.value===e),p=N.useRef(null),b=N.useRef(null);N.useEffect(()=>{h&&p.current&&requestAnimationFrame(()=>{var S;(S=p.current)===null||S===void 0||S.scrollIntoView({block:"nearest"})})},[h]);const v=S=>{b.current&&!b.current.contains(S.relatedTarget)&&y(!1),c?.(S)};return m.jsxs(Su,{ref:b,className:Y("overflow-visible bg-transparent",d),autoFocus:r,"aria-disabled":i,onBlur:v,onFocus:u,"aria-describedby":a,"aria-placeholder":l,children:[m.jsxs("div",{role:"button",tabIndex:i?-1:0,onClick:()=>!i&&y(!h),onKeyDown:S=>(S.key==="Enter"||S.key===" ")&&!i&&y(!h),className:Y("flex h-9 w-full items-center justify-between gap-2 whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50",!f&&s&&"border-red-500",i&&"opacity-50 cursor-not-allowed",d),children:[m.jsx("span",{className:Y("flex-1 line-clamp-1",!f&&"text-muted-foreground"),children:f?.label||o}),m.jsx(eu,{className:"h-4 w-4 opacity-50"})]}),m.jsx("div",{className:"relative",children:h&&t&&t.length>0?m.jsx("div",{style:{top:"0.5rem"},className:"absolute w-full z-10 rounded-md border bg-popover text-popover-foreground shadow-md outline-none",children:m.jsx(ju,{className:"h-full overflow-auto",children:m.jsx(wu,{children:t.map(S=>m.jsxs(Ou,{ref:S.value===e?p:void 0,onMouseDown:E=>{E.preventDefault(),E.stopPropagation()},onSelect:()=>{S.disabled||(n?.(S.value),y(!1))},className:Y("cursor-pointer relative flex items-center justify-between rounded-sm py-1.5 gap-2 rtl:flex-row-reverse",S.value===e&&"font-semibold",S.disabled&&"opacity-50 cursor-not-allowed"),children:[m.jsx("span",{children:S.label}),m.jsx("span",{className:"flex h-3.5 w-3.5 items-center justify-center",children:S.value===e&&m.jsx(sw,{className:"h-4 w-4"})})]},S.value))})})}):null})]})}function $j({id:t,options:e,required:n,disabled:r,readonly:i,value:s,multiple:o,autofocus:a,onChange:l,onBlur:u,onFocus:c,placeholder:d,rawErrors:h=[],className:y}){const{enumOptions:f,enumDisabled:p,emptyValue:b}=e,v=xn(e),S=()=>{c(t,Te(s,f,v,b))},E=()=>{u(t,Te(s,f,v,b))},j=f?.map(({value:x,label:w},O)=>({value:o?x:ur(x,O,v),label:w,index:O,disabled:Array.isArray(p)&&p.includes(x)})),g=Y({"border-destructive":h.length>0},y);return m.jsx("div",{className:"p-0.5",children:o?m.jsx(Pj,{id:t,autoFocus:a,disabled:r||i,multiple:!0,className:g,items:j,selected:s,onValueChange:x=>{l(Te(x.map(String),f,v,b))},onFocus:S,onBlur:E}):m.jsx(Fj,{items:j,selected:Oc(s,f,!1,v,""),onValueChange:x=>{l(Te(x,f,v,b))},autoFocus:a,disabled:r||i,required:n,placeholder:d,className:g,onFocus:S,onBlur:E,ariaDescribedby:Fe(t)})})}function Dj({className:t,...e}){return m.jsx("textarea",{"data-slot":"textarea",className:Y("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),...e})}function Rj({id:t,htmlName:e,placeholder:n,value:r,required:i,disabled:s,autofocus:o,readonly:a,onBlur:l,onFocus:u,onChange:c,options:d,className:h}){const y=({target:{value:b}})=>c(b===""?d.emptyValue:b),f=({target:b})=>l(t,b&&b.value),p=({target:b})=>u(t,b&&b.value);return m.jsx("div",{className:"flex p-0.5",children:m.jsx(Dj,{id:t,name:e||t,placeholder:n,disabled:s,readOnly:a,value:r??"",required:i,autoFocus:o,rows:d.rows||5,onChange:y,onBlur:f,onFocus:p,"aria-describedby":Fe(t),className:h})})}function kj(){return{CheckboxWidget:rj,CheckboxesWidget:nj,RadioWidget:oj,RangeWidget:_j,SelectWidget:$j,TextareaWidget:Rj}}function Mj(){return{templates:Xw(),widgets:kj()}}function Uj(){return kS(Mj())}const Lj=Uj();function Bj(t){const e=je.c(21),{virtualMcp:n,isSelected:r}=t,i=r&&"bg-accent";let s;e[0]!==i?(s=Mr("flex items-start gap-3 py-3 px-3 hover:bg-accent cursor-pointer rounded-xl transition-colors",i),e[0]=i,e[1]=s):s=e[1];let o;e[2]!==n.icon||e[3]!==n.title?(o=m.jsx(nl,{icon:n.icon,name:n.title,size:"sm"}),e[2]=n.icon,e[3]=n.title,e[4]=o):o=e[4];let a;e[5]!==n.title?(a=m.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:n.title}),e[5]=n.title,e[6]=a):a=e[6];let l;e[7]!==r?(l=r&&m.jsx(Dd,{size:16,className:"text-foreground shrink-0"}),e[7]=r,e[8]=l):l=e[8];let u;e[9]!==a||e[10]!==l?(u=m.jsxs("div",{className:"flex items-center justify-between",children:[a,l]}),e[9]=a,e[10]=l,e[11]=u):u=e[11];let c;e[12]!==n.description?(c=n.description&&m.jsx("p",{className:"text-xs text-muted-foreground line-clamp-1 leading-relaxed",children:n.description}),e[12]=n.description,e[13]=c):c=e[13];let d;e[14]!==u||e[15]!==c?(d=m.jsxs("div",{className:"flex flex-col flex-1 min-w-0 gap-0.5",children:[u,c]}),e[14]=u,e[15]=c,e[16]=d):d=e[16];let h;return e[17]!==s||e[18]!==o||e[19]!==d?(h=m.jsxs("div",{className:s,children:[o,d]}),e[17]=s,e[18]=o,e[19]=d,e[20]=h):h=e[20],h}function Vj(){const t=je.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=m.jsx("div",{className:"flex items-center justify-center py-12",children:m.jsx(ds,{size:20,className:"animate-spin text-muted-foreground"})}),t[0]=e):e=t[0],e}function qj(t){const e=je.c(33),{selectedVirtualMcpId:n,onVirtualMcpChange:r,searchInputRef:i}=t,s=$d(),[o,a]=N.useState(""),l=N.useRef(null),u=i??l;let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c={navigateOnCreate:!0},e[0]=c):c=e[0];const{createVirtualMCP:d,isCreating:h}=Ud(c);let y,f,p,b;if(e[1]!==d||e[2]!==u||e[3]!==h||e[4]!==r||e[5]!==o||e[6]!==n||e[7]!==s){let E;e:{const I=s.filter(zj);if(!o.trim()){E=I;break e}const T=o.toLowerCase();E=I.filter(F=>F.title.toLowerCase().includes(T)||F.description?.toLowerCase().includes(T))}const j=E;let g;e[12]!==r?(g=I=>{r(I),a("")},e[12]=r,e[13]=g):g=e[13];const x=g;p="flex flex-col max-h-[min(400px,60dvh)]";let w;e[14]===Symbol.for("react.memo_cache_sentinel")?(w=m.jsx(Rd,{size:16,className:"text-muted-foreground pointer-events-none shrink-0"}),e[14]=w):w=e[14];let O;e[15]===Symbol.for("react.memo_cache_sentinel")?(O=I=>a(I.target.value),e[15]=O):O=e[15];let A;e[16]!==u||e[17]!==o?(A=m.jsx(Ad,{ref:u,type:"text",placeholder:"Search for an agent...",value:o,onChange:O,className:"flex-1 h-8 text-sm border-0 focus-visible:ring-0 focus-visible:ring-offset-0 shadow-none p-0"}),e[16]=u,e[17]=o,e[18]=A):A=e[18];const C=h?"Creating...":"Create Agent";let _;e[19]!==d||e[20]!==h||e[21]!==C?(_=m.jsx(Ur,{onClick:d,variant:"outline",size:"sm",className:"h-8 px-3 rounded-lg text-sm font-medium shrink-0",disabled:h,children:C}),e[19]=d,e[20]=h,e[21]=C,e[22]=_):_=e[22],e[23]!==A||e[24]!==_?(b=m.jsx("div",{className:"border-b px-4 py-3 bg-background/95 backdrop-blur sticky top-0 z-10",children:m.jsxs("div",{className:"relative flex items-center gap-2",children:[w,A,_]})}),e[23]=A,e[24]=_,e[25]=b):b=e[25],y="overflow-y-auto p-1.5 flex-1 min-h-0 [touch-action:pan-y]",f=j.length>0?m.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-0.5",children:j.map(I=>m.jsx("div",{role:"button",tabIndex:0,onClick:()=>x(I.id),onKeyDown:T=>{(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),x(I.id))},className:"outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 rounded-xl",children:m.jsx(Bj,{virtualMcp:I,isSelected:I.id===n})},I.id))}):m.jsx("div",{className:"flex items-center justify-center py-8 text-sm text-muted-foreground",children:"No agents found"}),e[1]=d,e[2]=u,e[3]=h,e[4]=r,e[5]=o,e[6]=n,e[7]=s,e[8]=y,e[9]=f,e[10]=p,e[11]=b}else y=e[8],f=e[9],p=e[10],b=e[11];let v;e[26]!==y||e[27]!==f?(v=m.jsx("div",{className:y,children:f}),e[26]=y,e[27]=f,e[28]=v):v=e[28];let S;return e[29]!==p||e[30]!==b||e[31]!==v?(S=m.jsxs("div",{className:p,children:[b,v]}),e[29]=p,e[30]=b,e[31]=v,e[32]=S):S=e[32],S}function zj(t){return!t.id||!rd(t.id)}function Wj(t){const e=je.c(3);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=m.jsx(Vj,{}),e[0]=n):n=e[0];let r;return e[1]!==t?(r=m.jsx(N.Suspense,{fallback:n,children:m.jsx(qj,{...t})}),e[1]=t,e[2]=r):r=e[2],r}function Hj(t){const e=je.c(32),{selectedVirtualMcpId:n,selectedVirtualMcp:r,onVirtualMcpChange:i,className:s,placeholder:o,showTooltip:a,disabled:l}=t,u=o===void 0?"Select Agent":o,c=a===void 0?!0:a,d=l===void 0?!1:l,[h,y]=N.useState(!1),f=N.useRef(null);let p;e[0]!==i?(p=$=>{i($),y(!1)},e[0]=i,e[1]=p):p=e[1];const b=p,v=Md();let S;e[2]===Symbol.for("react.memo_cache_sentinel")?(S=$=>{y($)},e[2]=S):S=e[2];const E=S;let j,g;e[3]!==v||e[4]!==h?(j=()=>{h&&!v&&setTimeout(()=>{f.current?.focus()},0)},g=[h,v],e[3]=v,e[4]=h,e[5]=j,e[6]=g):(j=e[5],g=e[6]),N.useEffect(j,g);const x=d?!1:h,w=d?void 0:E,O=d?"cursor-not-allowed opacity-50":"cursor-pointer hover:text-muted-foreground";let A;e[7]!==s||e[8]!==O?(A=Mr("relative flex items-center justify-center size-8 rounded-lg text-muted-foreground/75 transition-colors shrink-0",O,s),e[7]=s,e[8]=O,e[9]=A):A=e[9];let C;e[10]!==r?(C=r?m.jsx(nl,{icon:r.icon,name:r.title,size:"sm",className:"absolute inset-0 size-full"}):m.jsxs(m.Fragment,{children:[m.jsxs("svg",{className:"absolute inset-0 size-full",fill:"none",children:[m.jsx("defs",{children:m.jsxs("linearGradient",{id:"agent-border-gradient",gradientUnits:"userSpaceOnUse",x1:"0",y1:"0",x2:"32",y2:"32",children:[m.jsx("animateTransform",{attributeName:"gradientTransform",type:"rotate",from:"0 16 16",to:"360 16 16",dur:"6s",repeatCount:"indefinite"}),m.jsx("stop",{offset:"0%",stopColor:"var(--chart-1)"}),m.jsx("stop",{offset:"100%",stopColor:"var(--chart-4)"})]})}),m.jsx("rect",{x:"0.5",y:"0.5",width:"31",height:"31",rx:"7.5",stroke:"url(#agent-border-gradient)",strokeWidth:"1",strokeDasharray:"3 3"})]}),m.jsx(kd,{size:16})]}),e[10]=r,e[11]=C):C=e[11];let _;e[12]!==d||e[13]!==u||e[14]!==A||e[15]!==C?(_=m.jsx(Nd,{asChild:!0,children:m.jsx(Cd,{asChild:!0,children:m.jsx("button",{type:"button",disabled:d,className:A,"aria-label":u,children:C})})}),e[12]=d,e[13]=u,e[14]=A,e[15]=C,e[16]=_):_=e[16];let I;e[17]!==h||e[18]!==r?.title||e[19]!==c?(I=c&&!h&&m.jsx(Td,{side:"top",className:"text-xs",children:r?.title??"Choose an agent to chat with"}),e[17]=h,e[18]=r?.title,e[19]=c,e[20]=I):I=e[20];let T;e[21]!==_||e[22]!==I?(T=m.jsx(Pd,{children:m.jsxs(Fd,{children:[_,I]})}),e[21]=_,e[22]=I,e[23]=T):T=e[23];let F;e[24]!==b||e[25]!==n?(F=m.jsx(_d,{className:"w-[min(550px,calc(100vw-2rem))] p-0 overflow-hidden",align:"start",side:"top",sideOffset:8,collisionPadding:16,children:m.jsx(Wj,{selectedVirtualMcpId:n,onVirtualMcpChange:b,searchInputRef:f})}),e[24]=b,e[25]=n,e[26]=F):F=e[26];let P;return e[27]!==T||e[28]!==F||e[29]!==x||e[30]!==w?(P=m.jsxs(Id,{open:x,onOpenChange:w,children:[T,F]}),e[27]=T,e[28]=F,e[29]=x,e[30]=w,e[31]=P):P=e[31],P}function Kj(t){const e=t.properties;if(!e)return!1;const n=e.__type,r=e.__binding;return!!(n?.const||r?.const)}function Gj(t){const e=t.properties;if(!e)return{};const n=e.__type,r=e.__binding;return{bindingType:n?.const,bindingSchema:r?.const}}function Yj(t){const e=je.c(10),{bindingSchema:n,bindingType:r,currentValue:i,onValueChange:s,placeholder:o,onAddNew:a,className:l}=t;let u;e[0]!==r?(u=Xf(r),e[0]=r,e[1]=u):u=e[1];const d=u??(typeof n=="string"?n:n??void 0);let h;return e[2]!==r||e[3]!==l||e[4]!==i||e[5]!==a||e[6]!==s||e[7]!==o||e[8]!==d?(h=m.jsx(Jj,{value:i,onValueChange:s,placeholder:o,binding:d,bindingType:r,onAddNew:a,className:l}),e[2]=r,e[3]=l,e[4]=i,e[5]=a,e[6]=s,e[7]=o,e[8]=d,e[9]=h):h=e[9],h}function Jj({value:t,onValueChange:e,placeholder:n="Select a connection...",binding:r,bindingType:i,onAddNew:s,className:o}){const[a,l]=N.useState(!1),{installByBinding:u,isInstalling:c}=tm(),d=a||c,h=r?void 0:i||void 0,y=cd(r?{binding:r}:h?{filters:[{column:"app_name",value:h}]}:{}),f=ud(t&&!y.some(S=>S.id===t)?t:void 0),p=f?[f,...y]:y,b=i?.startsWith("@"),v=async()=>{if(b&&i){l(!0);try{const S=await u(i);S&&e(S.id)}catch(S){const E=S instanceof Error?S.message:String(S);xr.error(`Failed to connect MCP: ${E}`)}finally{l(!1)}return}s?.()};return m.jsxs(bd,{value:t,onValueChange:e,children:[m.jsx(xd,{size:"sm",className:Mr("w-[200px]",o),children:m.jsx(vd,{placeholder:n})}),m.jsxs(Sd,{children:[p.length===0?m.jsx("div",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"No connections found"}):p.map(S=>m.jsx(wd,{value:S.id,children:m.jsxs("div",{className:"flex items-center gap-2",children:[S.icon?m.jsx("img",{src:S.icon,alt:S.title,className:"w-4 h-4 rounded"}):m.jsx("div",{className:"w-4 h-4 rounded bg-linear-to-br from-primary/20 to-primary/10 flex items-center justify-center text-xs font-semibold text-primary",children:S.title.slice(0,1).toUpperCase()}),m.jsx("span",{children:S.title})]})},S.id)),(s||b)&&m.jsx("div",{className:"border-t border-border",children:m.jsx(Ur,{onClick:S=>{S.preventDefault(),S.stopPropagation(),v()},disabled:d,variant:"ghost",className:"w-full justify-start gap-2 px-2 py-2 h-auto hover:bg-muted rounded-md text-sm disabled:opacity-50 disabled:cursor-not-allowed",type:"button",children:d?m.jsxs(m.Fragment,{children:[m.jsx(ds,{size:16,className:"animate-spin"}),m.jsx("span",{children:"Connecting..."})]}):m.jsxs(m.Fragment,{children:[m.jsx(yd,{size:16}),m.jsx("span",{children:"Custom Connection"})]})})})]})]})}function Zj(t){const e=je.c(49),{schema:n,formData:r,title:i,description:s,registry:o}=t,a=o.formContext,l=i||"",u=i||"";if(Kj(n)){const h=n;let y;e[0]!==h?(y=Gj(h),e[0]=h,e[1]=y):y=e[1];const{bindingType:f,bindingSchema:p}=y,v=(a?.formData?.[l]?.value??r?.value)||"";let S;e[2]!==f||e[3]!==l||e[4]!==a||e[5]!==r?(S=P=>{const $={...r,value:P??"",...f&&{__type:f}};a?.onFieldChange(l,$)},e[2]=f,e[3]=l,e[4]=a,e[5]=r,e[6]=S):S=e[6];const E=S,j=Qj;let g;e[7]!==u||e[8]!==l||e[9]!==i?(g=j(i||u||l),e[7]=u,e[8]=l,e[9]=i,e[10]=g):g=e[10];const x=g;if(f==="@deco/agent"){let P;e[11]!==x?(P=m.jsx("label",{className:"text-sm font-medium truncate block",children:x}),e[11]=x,e[12]=P):P=e[12];let $;e[13]!==s?($=s&&m.jsx("p",{className:"text-xs text-muted-foreground truncate",children:s}),e[13]=s,e[14]=$):$=e[14];let k;e[15]!==P||e[16]!==$?(k=m.jsxs("div",{className:"flex-1 min-w-0",children:[P,$]}),e[15]=P,e[16]=$,e[17]=k):k=e[17];const M=v||void 0;let U;e[18]!==E||e[19]!==M?(U=m.jsx(Hj,{selectedVirtualMcpId:M,onVirtualMcpChange:E,variant:"bordered",placeholder:"Select Agent",className:"w-[200px] shrink-0"}),e[18]=E,e[19]=M,e[20]=U):U=e[20];let J;return e[21]!==k||e[22]!==U?(J=m.jsxs("div",{className:"flex items-center gap-3 justify-between",children:[k,U]}),e[21]=k,e[22]=U,e[23]=J):J=e[23],J}let w;e[24]!==x?(w=m.jsx("label",{className:"text-sm font-medium truncate block",children:x}),e[24]=x,e[25]=w):w=e[25];let O;e[26]!==s?(O=s&&m.jsx("p",{className:"text-xs text-muted-foreground truncate",children:s}),e[26]=s,e[27]=O):O=e[27];let A;e[28]!==w||e[29]!==O?(A=m.jsxs("div",{className:"flex-1 min-w-0",children:[w,O]}),e[28]=w,e[29]=O,e[30]=A):A=e[30];let C;e[31]!==x?(C=x.toLowerCase(),e[31]=x,e[32]=C):C=e[32];const _=`Select ${C}...`;let I;e[33]!==a?(I=()=>a?.onAddNew(),e[33]=a,e[34]=I):I=e[34];let T;e[35]!==p||e[36]!==f||e[37]!==v||e[38]!==E||e[39]!==_||e[40]!==I?(T=m.jsx(Yj,{bindingSchema:p,bindingType:f,currentValue:v,onValueChange:E,placeholder:_,onAddNew:I,className:"w-[200px] shrink-0"}),e[35]=p,e[36]=f,e[37]=v,e[38]=E,e[39]=_,e[40]=I,e[41]=T):T=e[41];let F;return e[42]!==T||e[43]!==A?(F=m.jsxs("div",{className:"flex items-center gap-3 justify-between",children:[A,T]}),e[42]=T,e[43]=A,e[44]=F):F=e[44],F}let c;e[45]!==t.properties?(c=t.properties.map(Xj),e[45]=t.properties,e[46]=c):c=e[46];let d;return e[47]!==c?(d=m.jsx("div",{className:"flex flex-col gap-4",children:c}),e[47]=c,e[48]=d):d=e[48],d}function Xj(t){return t.content}function Qj(t){return t.toLowerCase().replace(/_/g," ").replace(/\b\w/g,eO)}function eO(t){return t.toUpperCase()}function tO(t){const e=je.c(13),{label:n,children:r,description:i,id:s,schema:o}=t;if(s.includes("__type")||s.includes("__binding"))return null;if(o.type==="object")return r;let a;e[0]!==s||e[1]!==n?(a=n&&m.jsx("label",{className:"text-sm font-medium truncate block",htmlFor:s,children:n}),e[0]=s,e[1]=n,e[2]=a):a=e[2];let l;e[3]!==i?(l=i&&m.jsx("div",{className:"text-xs text-muted-foreground truncate",children:i}),e[3]=i,e[4]=l):l=e[4];let u;e[5]!==a||e[6]!==l?(u=m.jsxs("div",{className:"flex-1 min-w-0",children:[a,l]}),e[5]=a,e[6]=l,e[7]=u):u=e[7];let c;e[8]!==r?(c=m.jsx("div",{className:"w-[200px] shrink-0",children:r}),e[8]=r,e[9]=c):c=e[9];let d;return e[10]!==u||e[11]!==c?(d=m.jsxs("div",{className:"flex items-center gap-3 justify-between",children:[u,c]}),e[10]=u,e[11]=c,e[12]=d):d=e[12],d}const nO={ObjectFieldTemplate:Zj,FieldTemplate:tO};function rO(t){const e=je.c(19),{formKey:n,formState:r,onFormStateChange:i,stateSchema:s}=t,{org:o}=ls(),a=Yu();let l;e[0]!==i?(l=S=>{S.formData&&i(S.formData)},e[0]=i,e[1]=l):l=e[1];const u=l;let c;e[2]!==r||e[3]!==i?(c=(S,E)=>{const j={...r,[S]:E};i(j)},e[2]=r,e[3]=i,e[4]=c):c=e[4];const d=c;let h;e[5]!==a||e[6]!==o?(h=()=>{a({to:"/$org/settings/connections",params:{org:o.slug},search:{action:"create"}})},e[5]=a,e[6]=o,e[7]=h):h=e[7];const y=h;let f;e[8]!==r||e[9]!==y||e[10]!==d?(f={onFieldChange:d,formData:r,onAddNew:y},e[8]=r,e[9]=y,e[10]=d,e[11]=f):f=e[11];const p=f;let b;e[12]===Symbol.for("react.memo_cache_sentinel")?(b=m.jsx(m.Fragment,{}),e[12]=b):b=e[12];let v;return e[13]!==p||e[14]!==n||e[15]!==r||e[16]!==u||e[17]!==s?(v=m.jsx("div",{className:"flex flex-col h-full overflow-auto",children:m.jsx(Lj,{schema:s,validator:ZS,formData:r,onChange:u,formContext:p,liveValidate:!1,showErrorList:!1,templates:nO,children:b},n)}),e[13]=p,e[14]=n,e[15]=r,e[16]=u,e[17]=s,e[18]=v):v=e[18],v}function iO(t){const e=je.c(14),{org:n}=ls();let r;e[0]!==t||e[1]!==n.id||e[2]!==n.slug?(r={connectionId:t,orgId:n.id,orgSlug:n.slug},e[0]=t,e[1]=n.id,e[2]=n.slug,e[3]=r):r=e[3];const i=id(r);let s;e[4]===Symbol.for("react.memo_cache_sentinel")?(s={},e[4]=s):s=e[4];let o;e[5]!==i?(o={client:i,toolName:"MCP_CONFIGURATION",toolArguments:s,select:sO},e[5]=i,e[6]=o):o=e[6];const{data:a}=sd(o);let l;e[7]!==a.stateSchema?(l=a.stateSchema??{type:"object",properties:{}},e[7]=a.stateSchema,e[8]=l):l=e[8];const u=l;let c;e[9]!==a.scopes?(c=a.scopes??[],e[9]=a.scopes,e[10]=c):c=e[10];const d=c;let h;return e[11]!==d||e[12]!==u?(h={stateSchema:u,scopes:d},e[11]=d,e[12]=u,e[13]=h):h=e[13],h}function sO(t){return t.structuredContent??t}function oO(t){const e=je.c(4),{onAuthenticate:n,buttonText:r}=t,i=r===void 0?"Authenticate":r;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=m.jsxs("div",{className:"flex flex-col gap-2",children:[m.jsx("h3",{className:"text-sm font-semibold",children:"Authentication Required"}),m.jsx("p",{className:"text-xs text-muted-foreground max-w-md text-center",children:"This connection requires OAuth authentication to access resources."})]}),e[0]=s):s=e[0];let o;return e[1]!==i||e[2]!==n?(o=m.jsx("div",{className:"flex-1 flex items-center justify-center",children:m.jsxs("div",{className:"flex flex-col items-center gap-4 max-w-md text-center",children:[s,m.jsx(Ur,{onClick:n,size:"default",children:i})]})}),e[1]=i,e[2]=n,e[3]=o):o=e[3],o}function aO(t){const e=je.c(7),{hasReadme:n,onViewReadme:r}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=m.jsx(ad,{size:36,className:"text-muted-foreground"}),e[0]=i):i=e[0];let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=m.jsxs("div",{className:"flex flex-col gap-2",children:[m.jsx("h3",{className:"text-sm font-semibold",children:"Manual Authentication Required"}),m.jsx("p",{className:"text-xs text-muted-foreground max-w-md text-center",children:"This server requires an API key or token that must be configured manually. Check the server's documentation for instructions on obtaining credentials."})]}),e[1]=s):s=e[1];let o;e[2]!==n||e[3]!==r?(o=n&&r&&m.jsxs(Ur,{onClick:r,variant:"outline",size:"lg",children:[m.jsx(od,{size:18,className:"mr-2"}),"View README"]}),e[2]=n,e[3]=r,e[4]=o):o=e[4];let a;return e[5]!==o?(a=m.jsx("div",{className:"flex-1 flex items-center justify-center",children:m.jsxs("div",{className:"flex flex-col items-center gap-4 max-w-md text-center",children:[i,s,o]})}),e[5]=o,e[6]=a):a=e[6],a}function lO(){const t=je.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=m.jsx("img",{src:"/empty-state-error.svg",alt:"",width:160,height:160,"aria-hidden":"true"}),t[0]=e):e=t[0];let n;return t[1]===Symbol.for("react.memo_cache_sentinel")?(n=m.jsx("div",{className:"flex-1 flex items-center justify-center",children:m.jsxs("div",{className:"flex flex-col items-center gap-4 max-w-md text-center",children:[e,m.jsxs("div",{className:"flex flex-col gap-2",children:[m.jsx("h3",{className:"text-lg font-semibold",children:"Server Error"}),m.jsx("p",{className:"text-sm text-muted-foreground max-w-md text-center",children:"The MCP server is currently experiencing issues. Please try again later or check the server's status."})]})]})}),t[1]=n):n=t[1],n}function cO(t){const e=je.c(12),{connection:n,form:r}=t,{stateSchema:i}=iO(n.id);let s;e[0]!==r.control?(s={control:r.control,name:"configuration_state"},e[0]=r.control,e[1]=s):s=e[1];const o=Zu(s);let a;e[2]!==r?(a=h=>{r.setValue("configuration_state",h,{shouldDirty:!0})},e[2]=r,e[3]=a):a=e[3];const l=a;if(!(i&&i.properties&&typeof i.properties=="object"&&Object.keys(i.properties).length>0)){let h;return e[4]===Symbol.for("react.memo_cache_sentinel")?(h=m.jsx("div",{className:"flex-1 flex items-center justify-center",children:m.jsx(Qa,{image:m.jsx("img",{src:"/empty-state-success-muted.svg",alt:"",width:220,height:200,"aria-hidden":"true"}),title:"This server is all set!",description:"No additional configuration is needed. Everything is ready to go."})}),e[4]=h):h=e[4],h}let c;e[5]!==o?(c=o??{},e[5]=o,e[6]=c):c=e[6];let d;return e[7]!==n.id||e[8]!==l||e[9]!==i||e[10]!==c?(d=m.jsx("div",{className:"flex-1 overflow-auto",children:m.jsx(rO,{formKey:n.id,stateSchema:i,formState:c,onFormStateChange:l})}),e[7]=n.id,e[8]=l,e[9]=i,e[10]=c,e[11]=d):d=e[11],d}function uO(t){const e=je.c(11),{connection:n,form:r,hasMcpBinding:i,isMCPAuthenticated:s,supportsOAuth:o,isServerError:a,onAuthenticate:l,onViewReadme:u}=t,d=!!n?.metadata?.repository?.url;if(!s){if(a){let p;return e[0]===Symbol.for("react.memo_cache_sentinel")?(p=m.jsx(lO,{}),e[0]=p):p=e[0],p}if(o){let p;return e[1]!==l?(p=m.jsx(oO,{onAuthenticate:l}),e[1]=l,e[2]=p):p=e[2],p}let f;return e[3]!==d||e[4]!==u?(f=m.jsx(aO,{hasReadme:d,onViewReadme:u}),e[3]=d,e[4]=u,e[5]=f):f=e[5],f}if(!i){let f;return e[6]===Symbol.for("react.memo_cache_sentinel")?(f=m.jsx("div",{className:"flex-1 flex items-center justify-center",children:m.jsx(Qa,{image:m.jsx("img",{src:"/empty-state-success-muted.svg",alt:"",width:220,height:200,"aria-hidden":"true"}),title:"This server is all set!",description:"No additional configuration is needed. Everything is ready to go."})}),e[6]=f):f=e[6],f}let h;e[7]===Symbol.for("react.memo_cache_sentinel")?(h=m.jsx("div",{className:"flex-1 flex items-center justify-center",children:m.jsx(ds,{size:32,className:"animate-spin text-muted-foreground"})}),e[7]=h):h=e[7];let y;return e[8]!==n||e[9]!==r?(y=m.jsx(Ju,{children:m.jsx(N.Suspense,{fallback:h,children:m.jsx(cO,{connection:n,form:r})})}),e[8]=n,e[9]=r,e[10]=y):y=e[10],y}function zO(t){const e=je.c(2);let n;return e[0]!==t?(n=m.jsx("div",{className:"flex-1 flex h-full",children:m.jsx(uO,{...t})}),e[0]=t,e[1]=n):n=e[1],n}export{aO as M,oO as O,zO as S,VO as V,BO as a,LO as b,UO as c};