decocms 4.574.0 → 4.574.1

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 (389) hide show
  1. package/dist/client/assets/{AlertCircle-Co3RPbIZ.js → AlertCircle-JDirc_BX.js} +1 -1
  2. package/dist/client/assets/{AreaChart-BvS2pAoE.js → AreaChart-DpzgqwWZ.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-XBSBGQal.js → ArrowLeft-BENlvNHb.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-DLnkUu9S.js → ArrowUp-hVHjHInb.js} +1 -1
  5. package/dist/client/assets/{CartesianChart-DOb1QHVF.js → CartesianChart-ClHLbDW5.js} +1 -1
  6. package/dist/client/assets/{CategoricalChart-BkeCXQf9.js → CategoricalChart-oDBSn1QJ.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-kNwBDDVU.js → CheckCircle-BMxSQJ5-.js} +1 -1
  8. package/dist/client/assets/{ChevronSelectorVertical-Gg7YcxlH.js → ChevronSelectorVertical-DDGUPocS.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-D1T3kSyr.js → ChevronUp-DYc8wyky.js} +1 -1
  10. package/dist/client/assets/{CreditCard01-D65BAIaV.js → CreditCard01-EEU_sSyq.js} +1 -1
  11. package/dist/client/assets/{Globe04-D17A2x5l.js → Globe04-CdHKMOso.js} +1 -1
  12. package/dist/client/assets/{Key01-awxHKnoL.js → Key01-EDnnJ_Gd.js} +1 -1
  13. package/dist/client/assets/{LinkBroken01-loTkm0G5.js → LinkBroken01-DhH3TW3t.js} +1 -1
  14. package/dist/client/assets/{Minus-CYrsmoRb.js → Minus-XOOEmvqX.js} +1 -1
  15. package/dist/client/assets/{Monitor01-DalIAdj7.js → Monitor01-D3lVwo0x.js} +1 -1
  16. package/dist/client/assets/{Play-C6Weq-wk.js → Play-DQ3lppN9.js} +1 -1
  17. package/dist/client/assets/{Plus-D7X8Q2-q.js → Plus-BHZhJmPA.js} +1 -1
  18. package/dist/client/assets/{ReferenceLine-HGyXAqMo.js → ReferenceLine-ClCgVjRG.js} +1 -1
  19. package/dist/client/assets/{SearchMd-e6xPeRPD.js → SearchMd-MlMwcObI.js} +1 -1
  20. package/dist/client/assets/{ShoppingBag01-zloi0TDl.js → ShoppingBag01-sa0ohOEa.js} +1 -1
  21. package/dist/client/assets/{Sun-C1lyqton.js → Sun-pw3SuSDm.js} +1 -1
  22. package/dist/client/assets/{SwitchHorizontal01-elXb4-4d.js → SwitchHorizontal01-DovJE4RJ.js} +1 -1
  23. package/dist/client/assets/{Tool01-Bo2g-Ylw.js → Tool01-D5n93WAy.js} +1 -1
  24. package/dist/client/assets/{Tooltip-C2g-R1Ae.js → Tooltip-CO7rmQDW.js} +1 -1
  25. package/dist/client/assets/{Trash01-C-PU5Hm-.js → Trash01-C0pW3Nzn.js} +1 -1
  26. package/dist/client/assets/{Upload01-NPnXKs-J.js → Upload01-CEfXDErB.js} +1 -1
  27. package/dist/client/assets/{UserSquare-Qd-FKVqK.js → UserSquare-CUiDUhHX.js} +1 -1
  28. package/dist/client/assets/{Users01-CTNixqdX.js → Users01-pCKb7aTW.js} +1 -1
  29. package/dist/client/assets/{XClose-BuJ6u6eL.js → XClose-__KXghgf.js} +1 -1
  30. package/dist/client/assets/{Zap-pmN7zSOE.js → Zap-CyJKtBha.js} +1 -1
  31. package/dist/client/assets/{access-gate-Bj4L1Bay.js → access-gate-5u0FcWOM.js} +1 -1
  32. package/dist/client/assets/{add-connection-dialog-BL3Uj9Py.js → add-connection-dialog-10mnkwZu.js} +1 -1
  33. package/dist/client/assets/agent-app-DdBuGJK2.js +1 -0
  34. package/dist/client/assets/{agent-assets-CvnH7aBA.js → agent-assets-C3IeAW1B.js} +1 -1
  35. package/dist/client/assets/{agent-automation-Bea1eB6T.js → agent-automation-acvouPfy.js} +1 -1
  36. package/dist/client/assets/{agent-automations-R-Eaz2To.js → agent-automations-D0NXC_6r.js} +1 -1
  37. package/dist/client/assets/{agent-calendar-Cd8km6Ln.js → agent-calendar-BOtDL5wE.js} +1 -1
  38. package/dist/client/assets/{agent-capabilities-BGShibnD.js → agent-capabilities-DuBCD3m1.js} +1 -1
  39. package/dist/client/assets/{agent-connect-sources-BrM4y83H.js → agent-connect-sources-a50GCyKV.js} +1 -1
  40. package/dist/client/assets/agent-deck-OGgkBkIO.js +1 -0
  41. package/dist/client/assets/{agent-e2e-BuKHozb1.js → agent-e2e-BIYV3C1W.js} +1 -1
  42. package/dist/client/assets/agent-experiments-DcDMdMaW.js +1 -0
  43. package/dist/client/assets/{agent-file-wlYMcv_9.js → agent-file-BkEsRI8m.js} +1 -1
  44. package/dist/client/assets/{agent-hosting-BaITgwKU.js → agent-hosting-CaYpr3GJ.js} +1 -1
  45. package/dist/client/assets/{agent-icon-CTbTFMnU.js → agent-icon-Y_Y2D-pt.js} +1 -1
  46. package/dist/client/assets/agent-library--BMPxGd9.js +1 -0
  47. package/dist/client/assets/agent-library-file-_vX06T41.js +1 -0
  48. package/dist/client/assets/agent-overview-D74SB75d.js +1 -0
  49. package/dist/client/assets/{agent-releases-Dh0xH2nd.js → agent-releases-B3ihZIQn.js} +1 -1
  50. package/dist/client/assets/agent-settings-nSX8psll.js +1 -0
  51. package/dist/client/assets/{agent-site-editor-D_QBdAc9.js → agent-site-editor-CJvHfyNv.js} +1 -1
  52. package/dist/client/assets/agent-site-editor-code-hU9FQE4u.js +2 -0
  53. package/dist/client/assets/agent-site-editor-content-DTRDfZ6d.js +1 -0
  54. package/dist/client/assets/agent-site-editor-preview-zxTAZW7-.js +1 -0
  55. package/dist/client/assets/agent-view-BHr6uCB4.js +1 -0
  56. package/dist/client/assets/{agent-view-guard-CL3qLzE2.js → agent-view-guard-BbWQWaBo.js} +1 -1
  57. package/dist/client/assets/{ai-providers-CKuZmBiu.js → ai-providers-BWLZYJlr.js} +1 -1
  58. package/dist/client/assets/{alert-wYcDlQSf.js → alert-DmFTgsze.js} +1 -1
  59. package/dist/client/assets/{analytics-sections-BjzpdbBT.js → analytics-sections-aDtwBOme.js} +1 -1
  60. package/dist/client/assets/{api-keys-am7hNPgd.js → api-keys-CVVAX4Yr.js} +1 -1
  61. package/dist/client/assets/api-keys-DQZBigkX.js +1 -0
  62. package/dist/client/assets/{app-editor-D88RxUP1.js → app-editor-miZ_XprR.js} +1 -1
  63. package/dist/client/assets/{asset-utils-C5mv1eiH.js → asset-utils-C4NdP_pE.js} +1 -1
  64. package/dist/client/assets/{auth-CQxDIkM-.js → auth-Bh4_Y1Kc.js} +1 -1
  65. package/dist/client/assets/{auth-catchall-DX0dhfK_.js → auth-catchall-Be7BZYR0.js} +1 -1
  66. package/dist/client/assets/{auth-entry-Bkznmv5L.js → auth-entry-BVPXWLe3.js} +1 -1
  67. package/dist/client/assets/{auth-split-layout-BRZioxOZ.js → auth-split-layout-CtNY2lz5.js} +1 -1
  68. package/dist/client/assets/{authenticate-and-persist-oauth-o7XKLq_6.js → authenticate-and-persist-oauth-DppRl8su.js} +1 -1
  69. package/dist/client/assets/{automation-list-row-knBDKeRb.js → automation-list-row-C4OZs3iQ.js} +1 -1
  70. package/dist/client/assets/{automation-runs-CvC4BqLv.js → automation-runs-CnJ5cVfz.js} +1 -1
  71. package/dist/client/assets/{automations-Ajx2woko.js → automations-CTrZyCJH.js} +1 -1
  72. package/dist/client/assets/{autosend-B0POegpm.js → autosend-Dts_wRXC.js} +1 -1
  73. package/dist/client/assets/{badge-BpzeYR5Z.js → badge-CyMXYtjo.js} +1 -1
  74. package/dist/client/assets/{block-document-DIhkVhEf.js → block-document-CoEX88Lb.js} +1 -1
  75. package/dist/client/assets/{blocks-preview-workspace-context-BnkXYZX_.js → blocks-preview-workspace-context-DHMHrydZ.js} +1 -1
  76. package/dist/client/assets/{blocks-tab-states-BRjgrPty.js → blocks-tab-states-Dedoi43j.js} +1 -1
  77. package/dist/client/assets/{blog-schema-BdMdKJFM.js → blog-schema-DL7YysBi.js} +1 -1
  78. package/dist/client/assets/{buckets-C62arTZK.js → buckets-8Ipt1QPH.js} +1 -1
  79. package/dist/client/assets/{build-improve-prompt-doc-DNVGwsoG.js → build-improve-prompt-doc-CMFnJqyQ.js} +1 -1
  80. package/dist/client/assets/{calendar-SB5YBzj8.js → calendar-DJXEBE1i.js} +1 -1
  81. package/dist/client/assets/{capability-load-error-BkOUGX51.js → capability-load-error-CiSG_MLz.js} +1 -1
  82. package/dist/client/assets/{category-editor-CozNeVRI.js → category-editor-D2AAL1sO.js} +1 -1
  83. package/dist/client/assets/{chart-D-gatwT8.js → chart-Bbcth4C6.js} +1 -1
  84. package/dist/client/assets/{chat-context-PvP_Q1CV.js → chat-context-DrYmTpG0.js} +1 -1
  85. package/dist/client/assets/{chat-draft-C714j1Wd.js → chat-draft-B1q585AK.js} +1 -1
  86. package/dist/client/assets/{checkbox-Bk98t4UK.js → checkbox-U6ASBfOz.js} +1 -1
  87. package/dist/client/assets/{choose-editor-DmqmkbHo.js → choose-editor-CStvYPQI.js} +1 -1
  88. package/dist/client/assets/{cli-auth-success-D4NODEkN.js → cli-auth-success-CIlf0DYb.js} +1 -1
  89. package/dist/client/assets/{client-icons-WHlOXnmn.js → client-icons-BlkrzoAd.js} +1 -1
  90. package/dist/client/assets/{cms-settings-editor-kiB9O6al.js → cms-settings-editor-CvyPaB8P.js} +1 -1
  91. package/dist/client/assets/{cms-store-drafts-DEGbfccc.js → cms-store-drafts-BxSsz4kW.js} +1 -1
  92. package/dist/client/assets/{collapsible-C7N88_dp.js → collapsible-Cm_LlHdT.js} +1 -1
  93. package/dist/client/assets/{collection-detail-a6oC0bB8.js → collection-detail-XmdxNV-2.js} +1 -1
  94. package/dist/client/assets/{collection-display-button-Dl9vfdLR.js → collection-display-button-DSXrghYE.js} +1 -1
  95. package/dist/client/assets/{collection-search-Din8SB5Y.js → collection-search-CrfF1go0.js} +1 -1
  96. package/dist/client/assets/{collection-table-wrapper-BYDcFi4z.js → collection-table-wrapper-BDabkJu0.js} +1 -1
  97. package/dist/client/assets/{collection-tabs-BJDa_4_F.js → collection-tabs-CXJFRxjE.js} +1 -1
  98. package/dist/client/assets/{combobox-CVchGkTE.js → combobox-BnA_xOFh.js} +1 -1
  99. package/dist/client/assets/{command-DA2t4jTW.js → command-COt4WQ5b.js} +1 -1
  100. package/dist/client/assets/{companion-mcps-section-BKP3xr1j.js → companion-mcps-section-BX6NWvx_.js} +1 -1
  101. package/dist/client/assets/{config-B1mE6oOL.js → config-CZ7Pg3zP.js} +1 -1
  102. package/dist/client/assets/{connect-CAAYdS8d.js → connect-Bubb97Ox.js} +1 -1
  103. package/dist/client/assets/{connect-layout-DUesEwTl.js → connect-layout-Co9op_vf.js} +1 -1
  104. package/dist/client/assets/{connect-source-dialog-DQtWLoYH.js → connect-source-dialog-Cc0Mr5Dc.js} +1 -1
  105. package/dist/client/assets/{connection-giFDA0-u.js → connection-CwG18GXt.js} +1 -1
  106. package/dist/client/assets/{connection-card-CPhS4jEh.js → connection-card-71syl7a3.js} +1 -1
  107. package/dist/client/assets/{connection-detail-D0-sYPQS.js → connection-detail-CDwQfSDO.js} +1 -1
  108. package/dist/client/assets/{connection-form-helpers-CRMRmqMW.js → connection-form-helpers-Ds89P2qw.js} +1 -1
  109. package/dist/client/assets/{connection-slug-DTdYIX0A.js → connection-slug-rYoZb8Oi.js} +1 -1
  110. package/dist/client/assets/{connections-D-1tH9cf.js → connections-DRfQlA6E.js} +1 -1
  111. package/dist/client/assets/{content-tab-DH5bq_bz.js → content-tab-CsKhgP-1.js} +3 -3
  112. package/dist/client/assets/{context-DK_qXRQL.js → context-DC5XiDXT.js} +1 -1
  113. package/dist/client/assets/{context-menu-CsBFFEsr.js → context-menu-jXHTZA3P.js} +1 -1
  114. package/dist/client/assets/{context-shell-l0daBgQ1.js → context-shell-8kNAse1h.js} +3 -3
  115. package/dist/client/assets/{core.esm-tIHbtjKb.js → core.esm-cCmn5UHs.js} +1 -1
  116. package/dist/client/assets/{create-organization-dialog-Dy6I2vcX.js → create-organization-dialog-Du7hzcY_.js} +1 -1
  117. package/dist/client/assets/{device-hint-DslC2w9a.js → device-hint-4OpoSDFU.js} +1 -1
  118. package/dist/client/assets/{discover-DzzEIO43.js → discover-C_ji7DIb.js} +1 -1
  119. package/dist/client/assets/{domain-settings-Dq_m7HYl.js → domain-settings--b7nhlCg.js} +1 -1
  120. package/dist/client/assets/{drawer-BYGTIOoj.js → drawer-CtPWRLqi.js} +1 -1
  121. package/dist/client/assets/{editor-x1lgFdfy.js → editor-TKi-Jvto.js} +1 -1
  122. package/dist/client/assets/{editor-classes-LFKjNX_0.js → editor-classes-Bv3PWDJP.js} +1 -1
  123. package/dist/client/assets/{empty-state-CH3GYanB.js → empty-state-Cgh7_fO1.js} +1 -1
  124. package/dist/client/assets/{empty-state-CtwVPMDf.js → empty-state-DQ9zfSjj.js} +1 -1
  125. package/dist/client/assets/{experiments-tab-choice-DMVM7f3S.js → experiments-tab-choice-DuEE4yY0.js} +1 -1
  126. package/dist/client/assets/{extract-connection-data-hvaA6rrK.js → extract-connection-data-Cx40NvMQ.js} +1 -1
  127. package/dist/client/assets/{feature-gate-ru6FBLZU.js → feature-gate-C9ZxgBZe.js} +1 -1
  128. package/dist/client/assets/{feature-paywall-eifo7eqe.js → feature-paywall-DK0yyspA.js} +1 -1
  129. package/dist/client/assets/{file-explorer-Bgho9rLt.js → file-explorer-DdXpHyf2.js} +1 -1
  130. package/dist/client/assets/{file-preview-BzUEEwEK.js → file-preview-DrfMTr-z.js} +1 -1
  131. package/dist/client/assets/{file-share-button-CFBrVPAQ.js → file-share-button-Sja5jda2.js} +1 -1
  132. package/dist/client/assets/{file-type-icon-DM9o0Fkb.js → file-type-icon-CuR7GKVO.js} +1 -1
  133. package/dist/client/assets/{folder-icon-DSGoR_x6.js → folder-icon-clC9OBor.js} +1 -1
  134. package/dist/client/assets/{form-gd_hA5VT.js → form-DVHd2PmG.js} +1 -1
  135. package/dist/client/assets/{general-Cn8XvemK.js → general-5mCEumRT.js} +1 -1
  136. package/dist/client/assets/{github-icon-BVy-v7gH.js → github-icon-Tj2vKr0A.js} +1 -1
  137. package/dist/client/assets/{home-overview-DZBjDQoG.js → home-overview-3QBovB5F.js} +1 -1
  138. package/dist/client/assets/{home-C9onXt5U.js → home-qRxdFYCq.js} +1 -1
  139. package/dist/client/assets/{hosted-reconcile-DNkBVm-1.js → hosted-reconcile-DVhqOXEf.js} +1 -1
  140. package/dist/client/assets/{icon-button-Ze0c1pwp.js → icon-button-DVB6vEll.js} +1 -1
  141. package/dist/client/assets/{index-CnOVjrIG.js → index-BQvrkQ8K.js} +1 -1
  142. package/dist/client/assets/{index-DsbWutG1.js → index-BdxdoIZK.js} +1 -1
  143. package/dist/client/assets/{index-DEZ1imMJ.js → index-Bm1K3DQC.js} +3 -3
  144. package/dist/client/assets/{index-i75UpmlW.js → index-BomXABHH.js} +1 -1
  145. package/dist/client/assets/{index-DYgzDE_k.js → index-BswXowEw.js} +1 -1
  146. package/dist/client/assets/{index-CQQpem-0.js → index-C9UzjfpE.js} +1 -1
  147. package/dist/client/assets/{index-C3XZ4Hr3.js → index-CK23_6lH.js} +1 -1
  148. package/dist/client/assets/{index-D8y5KFA4.js → index-CT6x-ixs.js} +1 -1
  149. package/dist/client/assets/{index-Bbmo8mh-.js → index-CWJov9JR.js} +1 -1
  150. package/dist/client/assets/{index-Bgxp_wDH.js → index-CX5-w0f2.js} +1 -1
  151. package/dist/client/assets/{index-DkhsKOTp.js → index-CuXG6U4v.js} +1 -1
  152. package/dist/client/assets/{index-DB454549.js → index-CvZuGBnK.js} +1 -1
  153. package/dist/client/assets/{index-_l1iac4T.js → index-DU4OpQEQ.js} +1 -1
  154. package/dist/client/assets/{index-Kbjjvu85.js → index-DeidDxsb.js} +1 -1
  155. package/dist/client/assets/{index-B-T__H4R.js → index-aAdwJpKX.js} +1 -1
  156. package/dist/client/assets/{index-D5i1_B2b.js → index-mlqqyBRE.js} +1 -1
  157. package/dist/client/assets/{index-redirect-BbZ_bzp6.js → index-redirect-BUbGzHU7.js} +1 -1
  158. package/dist/client/assets/{infiniteQueryObserver-C0Gb02df.js → infiniteQueryObserver-BNCHN17F.js} +1 -1
  159. package/dist/client/assets/{infra-billing-BCVZN9OG.js → infra-billing-BfA1aIoB.js} +1 -1
  160. package/dist/client/assets/{input-CxHdmxHa.js → input-CYGCgpQ0.js} +1 -1
  161. package/dist/client/assets/{input-Dla4T1vA.js → input-FxN5JtJx.js} +3 -3
  162. package/dist/client/assets/{integration-icon-CFHOt7sY.js → integration-icon-DTmGScIa.js} +1 -1
  163. package/dist/client/assets/{jira-icon-_AEc9Yhw.js → jira-icon-LR0u-FDE.js} +1 -1
  164. package/dist/client/assets/{label-BEWDSeNl.js → label-BQN74rUh.js} +1 -1
  165. package/dist/client/assets/{layout--y8zVnrP.js → layout-CCsQB7LG.js} +1 -1
  166. package/dist/client/assets/{legacy-admin-welcome-dialog-B223MrIf.js → legacy-admin-welcome-dialog-DWIUyVc4.js} +1 -1
  167. package/dist/client/assets/{legacy-agents-deep-PO1FuZ04.js → legacy-agents-deep-DD97hkrm.js} +1 -1
  168. package/dist/client/assets/{legacy-main-redirect-CLP7AoCb.js → legacy-main-redirect-CxB3kSgS.js} +1 -1
  169. package/dist/client/assets/library-1cj6yrAd.js +1 -0
  170. package/dist/client/assets/{library-tab-CqMcp5u0.js → library-tab-D_ZcLCG5.js} +1 -1
  171. package/dist/client/assets/{login-BuRZE0OR.js → login-BMHrPCue.js} +1 -1
  172. package/dist/client/assets/{markdown-Db8a3LUX.js → markdown-BiwQrQ3v.js} +1 -1
  173. package/dist/client/assets/{mcp-app-renderer-C8G6NLBz.js → mcp-app-renderer-BoUlGL1W.js} +1 -1
  174. package/dist/client/assets/{mcp-oauth-CHmbtYyN.js → mcp-oauth-969YqM-_.js} +1 -1
  175. package/dist/client/assets/{mcp-oauth-BBT3ip6Z.js → mcp-oauth-CeW0VHOL.js} +1 -1
  176. package/dist/client/assets/{members-CF1S2ayK.js → members-DtkDG4lT.js} +1 -1
  177. package/dist/client/assets/{memory-Bk61fr1m.js → memory-WISgV3Bs.js} +1 -1
  178. package/dist/client/assets/{mock-board-CYJBKLD5.js → mock-board-EGy4fTE1.js} +3 -3
  179. package/dist/client/assets/{monaco-editor-DTwBEUg_.js → monaco-editor-P5VfXFj7.js} +1 -1
  180. package/dist/client/assets/{monitoring-Cqe9DCsk.js → monitoring-BX8fYoyN.js} +1 -1
  181. package/dist/client/assets/{monitoring-stats-row-GkTmJnnE.js → monitoring-stats-row-BKtm_vGS.js} +1 -1
  182. package/dist/client/assets/{multi-select-GRYee_BH.js → multi-select-C-ivHGUC.js} +1 -1
  183. package/dist/client/assets/{mustache-DtDLolVD.js → mustache-Dky3CPha.js} +1 -1
  184. package/dist/client/assets/{named-rule-view-BNwXQD8T.js → named-rule-view-DL0ULoIx.js} +1 -1
  185. package/dist/client/assets/{new-project-dialog-Dfe2Pik9.js → new-project-dialog-Bqd8DZyr.js} +1 -1
  186. package/dist/client/assets/{oauth-callback-ai-provider-C7LWQiJX.js → oauth-callback-ai-provider-BSjdlkmN.js} +1 -1
  187. package/dist/client/assets/{oauth-callback-C9LKZChW.js → oauth-callback-ldJD55b_.js} +1 -1
  188. package/dist/client/assets/{oauth-consent-Dm4zOEtc.js → oauth-consent-DIuym-vW.js} +1 -1
  189. package/dist/client/assets/{onboarding-xP-6CuuS.js → onboarding-UUqABCLm.js} +1 -1
  190. package/dist/client/assets/{openai-conversation-BH1GqT3q.js → openai-conversation-BqSCxp3u.js} +1 -1
  191. package/dist/client/assets/{optimistic-project-sidebar-views-BcV4r24I.js → optimistic-project-sidebar-views-DuRn9Y08.js} +1 -1
  192. package/dist/client/assets/{order-monitor-day-BrCrwZlv.js → order-monitor-day-CUJyEmQo.js} +1 -1
  193. package/dist/client/assets/{organization-choice-Bb3OozNa.js → organization-choice-DX6NhuKr.js} +1 -1
  194. package/dist/client/assets/{orgs-BwWx4Gpo.js → orgs-DNB5pAN5.js} +1 -1
  195. package/dist/client/assets/{own-accounts-section-CL57nUX5.js → own-accounts-section-DA3rnsqj.js} +1 -1
  196. package/dist/client/assets/{pair-D5JEvK2M.js → pair-CKUN8Ieo.js} +1 -1
  197. package/dist/client/assets/{parse-sections-Ca4qHQSq.js → parse-sections-B7udX6Q3.js} +3 -3
  198. package/dist/client/assets/{plan-q4Vm_z4g.js → plan-D2GzfM6v.js} +1 -1
  199. package/dist/client/assets/{plan-ladder-DdqVPKf9.js → plan-ladder-I5kD48rz.js} +1 -1
  200. package/dist/client/assets/{plan-usage-card-397aTXRB.js → plan-usage-card-C_GukaUZ.js} +1 -1
  201. package/dist/client/assets/{popover-DsvzKyw_.js → popover-Dh3TtwDo.js} +1 -1
  202. package/dist/client/assets/{post-calendar-CvHtHQHg.js → post-calendar-Ci2Ls6m8.js} +1 -1
  203. package/dist/client/assets/{post-editor-0bthmrQK.js → post-editor-DmPdxQfI.js} +1 -1
  204. package/dist/client/assets/{preview-content-Bs_qZ8yA.js → preview-content-D5dxxmRk.js} +1 -1
  205. package/dist/client/assets/{preview-dialog-Bn3JJkpc.js → preview-dialog-ChQFEC_i.js} +1 -1
  206. package/dist/client/assets/{preview-panel-CX3l3cru.js → preview-panel-6f4Q5Yyo.js} +1 -1
  207. package/dist/client/assets/{preview-tab-C506bsNP.js → preview-tab-DNewpfvP.js} +3 -3
  208. package/dist/client/assets/{product-picker-dialog-DRJETx9Q.js → product-picker-dialog-Bn32xknc.js} +1 -1
  209. package/dist/client/assets/{profile-BlRaDfot.js → profile-DQfBMC1r.js} +1 -1
  210. package/dist/client/assets/{project-app-view-CKUZlcwf.js → project-app-view-UUbUguKi.js} +1 -1
  211. package/dist/client/assets/{project-apps-B_xWF85u.js → project-apps-CUvGGhyU.js} +1 -1
  212. package/dist/client/assets/{project-icon-rrJh6PJx.js → project-icon-Cx2a7lKG.js} +1 -1
  213. package/dist/client/assets/{project-index-CoA3rtsT.js → project-index-FRlpuXZ4.js} +1 -1
  214. package/dist/client/assets/project-reports-Bx0n9tHU.js +1 -0
  215. package/dist/client/assets/project-tasks-CMCbN_AC.js +1 -0
  216. package/dist/client/assets/{projects-CM1tg94T.js → projects-DAB5tzLY.js} +1 -1
  217. package/dist/client/assets/{projects-empty-state-llpcLXG9.js → projects-empty-state-RwaHaNAD.js} +1 -1
  218. package/dist/client/assets/{prompts-B0OAMamK.js → prompts-0DQ3tgPf.js} +1 -1
  219. package/dist/client/assets/record-editor-43ke-tWv.js +1 -0
  220. package/dist/client/assets/{redirect-editor-CqeB0Mu0.js → redirect-editor-D_h26Q_F.js} +1 -1
  221. package/dist/client/assets/{reports-Rgui-AzR.js → reports-BEOlITGh.js} +1 -1
  222. package/dist/client/assets/reports-CP9Hb1Gh.js +1 -0
  223. package/dist/client/assets/{reports-onboarding-Bb3vI6W8.js → reports-onboarding-DHSkaogY.js} +1 -1
  224. package/dist/client/assets/{reports-tab-BaN84XaS.js → reports-tab-CftmyHYx.js} +2 -2
  225. package/dist/client/assets/repositories-BzfxqBWi.js +1 -0
  226. package/dist/client/assets/{repositories-OwZ7bC1j.js → repositories-D7rvENWr.js} +1 -1
  227. package/dist/client/assets/{repository-binding-C0msapZZ.js → repository-binding-BUEX4lc5.js} +1 -1
  228. package/dist/client/assets/{repository-picker-BYFeDBpn.js → repository-picker-mdt05v0y.js} +1 -1
  229. package/dist/client/assets/{require-capability-cQiPB2TO.js → require-capability-QLRMJQu8.js} +1 -1
  230. package/dist/client/assets/{required-auth-layout-DfUx9vzb.js → required-auth-layout-L5uobjCB.js} +1 -1
  231. package/dist/client/assets/{reset-password-CwNbLDfo.js → reset-password-Dkd3Ncw9.js} +1 -1
  232. package/dist/client/assets/{resizable-CHI5UJHW.js → resizable-DTll1yV_.js} +1 -1
  233. package/dist/client/assets/{resolve-tab-icon-BWeUUKzK.js → resolve-tab-icon-B2Zyymzr.js} +1 -1
  234. package/dist/client/assets/{review-settings-DUhDHWEg.js → review-settings-7WUisQRH.js} +1 -1
  235. package/dist/client/assets/{role-color-DlPdNUQM.js → role-color-B6vHBlZ3.js} +1 -1
  236. package/dist/client/assets/{roles-ChXNdo9W.js → roles-l4Fwhlxm.js} +1 -1
  237. package/dist/client/assets/route-CrtRl_aj.js +1 -0
  238. package/dist/client/assets/{route-8zXp8Zmg.js → route-DStyEO0f.js} +1 -1
  239. package/dist/client/assets/{route-DW6RzQLd.js → route-ItnObgTw.js} +1 -1
  240. package/dist/client/assets/{sandbox-lifecycle-context-WXIR2CMZ.js → sandbox-lifecycle-context-6658FNhj.js} +1 -1
  241. package/dist/client/assets/{schema-BFmIytlm.js → schema-BUMYDfBQ.js} +1 -1
  242. package/dist/client/assets/{schema-9jBUPMLq.js → schema-CyJEITX6.js} +1 -1
  243. package/dist/client/assets/{scroll-area-CQ_g6hBm.js → scroll-area-CXm8-cku.js} +1 -1
  244. package/dist/client/assets/{search-input-Co3g-t6C.js → search-input-CZ0rurdO.js} +1 -1
  245. package/dist/client/assets/{search-toggle-CO5TN956.js → search-toggle-BsrckUfs.js} +1 -1
  246. package/dist/client/assets/{secret-picker-VlsiGxPi.js → secret-picker-Befw6gF8.js} +1 -1
  247. package/dist/client/assets/{secrets-DJboETC0.js → secrets-DZjzVDff.js} +1 -1
  248. package/dist/client/assets/{section-array-field-CvmfLv3q.js → section-array-field-WCaR_SKZ.js} +1 -1
  249. package/dist/client/assets/{sections-C_Jmzzpn.js → sections-CN3XzQEo.js} +1 -1
  250. package/dist/client/assets/{sections-editor-D1U5_lZq.js → sections-editor-BnPN3p47.js} +1 -1
  251. package/dist/client/assets/{select-BJaUvbIR.js → select-Ce9OTxeg.js} +1 -1
  252. package/dist/client/assets/{select-model-CftP-ks_.js → select-model-rpugs4qN.js} +1 -1
  253. package/dist/client/assets/{seo-editor-B6UrHPko.js → seo-editor-334ImWU2.js} +1 -1
  254. package/dist/client/assets/{separator-BXKmXRi8.js → separator-25fGJM6A.js} +1 -1
  255. package/dist/client/assets/settings-tab-DCh5Ul7G.js +1 -0
  256. package/dist/client/assets/{sheet-D2hfPw7P.js → sheet-CX7jm_if.js} +1 -1
  257. package/dist/client/assets/{shell-layout-BLRNx2fV.js → shell-layout-DS0Ie03r.js} +1 -1
  258. package/dist/client/assets/{site-draft-actions-5nXph2SS.js → site-draft-actions-DZryCQJo.js} +1 -1
  259. package/dist/client/assets/{site-draft-view-3CfqUHrV.js → site-draft-view-DQTaKqUY.js} +1 -1
  260. package/dist/client/assets/site-editor-4zkxaogV.js +1 -0
  261. package/dist/client/assets/{site-editor-toast-Cgezu0A5.js → site-editor-toast-CRsx3bHf.js} +1 -1
  262. package/dist/client/assets/{skills-B_05tfLr.js → skills-I-Yj8qR2.js} +1 -1
  263. package/dist/client/assets/{slider-C6h9g0cI.js → slider-DAP3M4g0.js} +1 -1
  264. package/dist/client/assets/{sortable.esm-D2_ALuVf.js → sortable.esm-BWLtdg41.js} +1 -1
  265. package/dist/client/assets/{sso-CtTl7KnN.js → sso-CBSK2hBa.js} +1 -1
  266. package/dist/client/assets/{suggestion-C8VoNVDk.js → suggestion-D3mu_Xk3.js} +1 -1
  267. package/dist/client/assets/{super-agent-icon-B-73GF60.js → super-agent-icon-B-NqGats.js} +1 -1
  268. package/dist/client/assets/{switch-C53DVv3y.js → switch-5zR0_RyT.js} +1 -1
  269. package/dist/client/assets/{synced-repos-Cqz-evGv.js → synced-repos-CKVdc7QA.js} +1 -1
  270. package/dist/client/assets/{tab-icon-glyph-I3aa1qRZ.js → tab-icon-glyph-tV1b5yjJ.js} +1 -1
  271. package/dist/client/assets/{table-DjgVXWdP.js → table-CZbeUf_X.js} +1 -1
  272. package/dist/client/assets/{tabs-DtOFAaIp.js → tabs-D8DBFsJ6.js} +1 -1
  273. package/dist/client/assets/{task-board-D3wT6_aG.js → task-board-CmZ-3pYa.js} +1 -1
  274. package/dist/client/assets/{task-route-DngvTiyh.js → task-route-ohp4Cwjz.js} +1 -1
  275. package/dist/client/assets/{task-status-BfFZ6nf8.js → task-status-CwNwAqHk.js} +1 -1
  276. package/dist/client/assets/{taskboard-analytics-D-vAg9Px.js → taskboard-analytics-DGRgeO3t.js} +1 -1
  277. package/dist/client/assets/tasks-DqNpLYyB.js +1 -0
  278. package/dist/client/assets/{tasks-BHa2qCWg.js → tasks-DxAmGFRX.js} +1 -1
  279. package/dist/client/assets/{textarea-_jcGqOvl.js → textarea-BNrj1CIV.js} +1 -1
  280. package/dist/client/assets/{thread-analytics-DPDga_ap.js → thread-analytics-DsWQnd7G.js} +1 -1
  281. package/dist/client/assets/{thread-intent-DuI80508.js → thread-intent-C_sXnvWO.js} +1 -1
  282. package/dist/client/assets/{thread-route-B-uAlF3E.js → thread-route-C4AshLS2.js} +1 -1
  283. package/dist/client/assets/{thread-route-Ci8rIker.js → thread-route-oy9R75fs.js} +1 -1
  284. package/dist/client/assets/{thread-sheet-body-BiNfUUQ_.js → thread-sheet-body-tV8G2x4y.js} +1 -1
  285. package/dist/client/assets/{time-range-picker-F9SEOG2b.js → time-range-picker--yg_KuCO.js} +1 -1
  286. package/dist/client/assets/{toggle-group-C6oiEKlf.js → toggle-group-D4APjUwC.js} +1 -1
  287. package/dist/client/assets/{tool-namespace-DdU5nhii.js → tool-namespace-sf3dpjw4.js} +1 -1
  288. package/dist/client/assets/{tool-set-selector-2nfgy8us.js → tool-set-selector-CBkMfKhT.js} +1 -1
  289. package/dist/client/assets/{toolbar-icon-button-BmJKmAUK.js → toolbar-icon-button-kyI973z_.js} +1 -1
  290. package/dist/client/assets/{tooltip-Dam-ym8O.js → tooltip-D0Aro8zv.js} +1 -1
  291. package/dist/client/assets/{tooltipContext-PzKiic-J.js → tooltipContext-CI284Wq3.js} +1 -1
  292. package/dist/client/assets/{track-Dj7QHX2C.js → track-DFZVIiLp.js} +1 -1
  293. package/dist/client/assets/{types-gyofjZHf.js → types-1fP0kZ0m.js} +1 -1
  294. package/dist/client/assets/{url-slug-BMHzx0XY.js → url-slug-DTpv_sm0.js} +1 -1
  295. package/dist/client/assets/{usage-stats-C3KvQP9T.js → usage-stats-CXQ9FoWO.js} +1 -1
  296. package/dist/client/assets/{use-ai-providers-DwpUgHpj.js → use-ai-providers-BCXggb0b.js} +1 -1
  297. package/dist/client/assets/{use-apply-named-rule-BnEs0jP7.js → use-apply-named-rule-BLra67_a.js} +1 -1
  298. package/dist/client/assets/use-ask-in-chat-BGPRlKfS.js +1 -0
  299. package/dist/client/assets/{use-automations-CyrAu8XA.js → use-automations-DxfaOtys.js} +1 -1
  300. package/dist/client/assets/{use-autosave-TV-hF63e.js → use-autosave-DiZxq1F5.js} +1 -1
  301. package/dist/client/assets/use-blocks-v8-project-Al0tYlYk.js +1 -0
  302. package/dist/client/assets/{use-chat-layout-state-BG2-xqQp.js → use-chat-layout-state-DCbtnqWd.js} +1 -1
  303. package/dist/client/assets/{use-cms-publish-actions-CmQuU9AY.js → use-cms-publish-actions-DBCI1z7k.js} +1 -1
  304. package/dist/client/assets/{use-connect-companion-CowVgnp9.js → use-connect-companion--SDSQ7TK.js} +1 -1
  305. package/dist/client/assets/{use-connection-BozgIoMu.js → use-connection-D3dXxxHo.js} +1 -1
  306. package/dist/client/assets/{use-content-sync-BBbOIir0.js → use-content-sync-Bqyh9W67.js} +1 -1
  307. package/dist/client/assets/{use-copy-o0P-kroy.js → use-copy-fJBOhwQv.js} +1 -1
  308. package/dist/client/assets/{use-date-fns-locale-bKU2Q73X.js → use-date-fns-locale-UVVfd2fe.js} +1 -1
  309. package/dist/client/assets/{use-debounced-autosave-BmvZzlB_.js → use-debounced-autosave-CcJrNQv9.js} +1 -1
  310. package/dist/client/assets/{use-debounced-value-yZdJ1f2K.js → use-debounced-value-BsCdYGvU.js} +1 -1
  311. package/dist/client/assets/{use-deco-credits-Bjfx0bAt.js → use-deco-credits-Dw1Zq3DU.js} +1 -1
  312. package/dist/client/assets/{use-decopilot-events-C_C16-Ln.js → use-decopilot-events-DSC6YnSZ.js} +1 -1
  313. package/dist/client/assets/{use-delete-connection-B4rX1qgg.js → use-delete-connection-BtzLw5Mh.js} +1 -1
  314. package/dist/client/assets/{use-deployment-admin-CS9K9Ea9.js → use-deployment-admin-hI6GNxTJ.js} +1 -1
  315. package/dist/client/assets/{use-entitlements-DidlVdLU.js → use-entitlements-q4zqHldY.js} +1 -1
  316. package/dist/client/assets/{use-fast-preview-draft-url-KJzyk03O.js → use-fast-preview-draft-url-s7AmJx8I.js} +1 -1
  317. package/dist/client/assets/{use-file-configs-DhXDYO83.js → use-file-configs-DGBf9XU8.js} +1 -1
  318. package/dist/client/assets/{use-id-selection-BHXFVfAt.js → use-id-selection-CJeGPaiA.js} +1 -1
  319. package/dist/client/assets/{use-inbox-feed-CKkWXum7.js → use-inbox-feed-cS-t8Kt0.js} +1 -1
  320. package/dist/client/assets/{use-infinite-scroll-CED9GMTE.js → use-infinite-scroll-DbrSLbYQ.js} +1 -1
  321. package/dist/client/assets/{use-join-requests-DAuosANz.js → use-join-requests-l6ugTnm0.js} +1 -1
  322. package/dist/client/assets/{use-main-panel-tabs-DfOwinBC.js → use-main-panel-tabs-CO4jdgC_.js} +1 -1
  323. package/dist/client/assets/{use-mcp-auth-status-Dls0bLQE.js → use-mcp-auth-status-DNGtFPYZ.js} +1 -1
  324. package/dist/client/assets/{use-mcp-client-DJjkIlNp.js → use-mcp-client-WgWOA1hL.js} +1 -1
  325. package/dist/client/assets/{use-mcp-prompts-it9pO2QZ.js → use-mcp-prompts-bAmVEPg_.js} +1 -1
  326. package/dist/client/assets/{use-mcp-tools-wfurU0oX.js → use-mcp-tools-BIB4FISj.js} +1 -1
  327. package/dist/client/assets/{use-mobile-CJITN8uI.js → use-mobile-BDHJ5g4G.js} +1 -1
  328. package/dist/client/assets/{use-move-blocks-CC1C41-K.js → use-move-blocks-DfWxYCvW.js} +1 -1
  329. package/dist/client/assets/{use-navigate-to-agent-MlXDIBYX.js → use-navigate-to-agent-BJdqgQKH.js} +1 -1
  330. package/dist/client/assets/{use-org-fs-BH012Up0.js → use-org-fs-Du2G3PF4.js} +1 -1
  331. package/dist/client/assets/{use-org-repo-syncs-jV2kVf-q.js → use-org-repo-syncs-CUbaI7hL.js} +1 -1
  332. package/dist/client/assets/{use-org-sso-Bo72RJ5p.js → use-org-sso-BqLBrHG0.js} +1 -1
  333. package/dist/client/assets/{use-organization-settings-bWX185lw.js → use-organization-settings-CiRL-ND2.js} +1 -1
  334. package/dist/client/assets/{use-project-native-view-presence-DhhbOsoh.js → use-project-native-view-presence-CpBcMOzg.js} +1 -1
  335. package/dist/client/assets/{use-project-scope-pwqcjGo8.js → use-project-scope-BkidtyNv.js} +1 -1
  336. package/dist/client/assets/{use-recent-apps-Rr1jTj-T.js → use-recent-apps-BHprhf_5.js} +1 -1
  337. package/dist/client/assets/{use-reports-diagnostic-0n4ScjpC.js → use-reports-diagnostic-CLVn3MVk.js} +1 -1
  338. package/dist/client/assets/{use-sandbox-events-D1_GHzsF.js → use-sandbox-events-C1Ie1sWJ.js} +1 -1
  339. package/dist/client/assets/{use-secrets-Dim43C3b.js → use-secrets-blVuAHm2.js} +1 -1
  340. package/dist/client/assets/{use-section-preview-base-B6FS0lTt.js → use-section-preview-base-Fd7YfHr6.js} +1 -1
  341. package/dist/client/assets/{use-sidebar-collapsed-DcAIYhdp.js → use-sidebar-collapsed-SkR6IFg9.js} +1 -1
  342. package/dist/client/assets/{use-tags-6ljf50Kl.js → use-tags-y0sDD-Gd.js} +1 -1
  343. package/dist/client/assets/{use-task-board-analytics-5XuzJjLw.js → use-task-board-analytics--M1ga7ad.js} +1 -1
  344. package/dist/client/assets/{use-task-board-events-DnEp5edD.js → use-task-board-events-DFXBTSz0.js} +1 -1
  345. package/dist/client/assets/{use-task-board-item-prs-CycVEDhs.js → use-task-board-item-prs-CNVxgnEG.js} +1 -1
  346. package/dist/client/assets/{use-task-board-items-pvi4Vcv1.js → use-task-board-items-CNR2hq29.js} +1 -1
  347. package/dist/client/assets/{use-task-board-prompts-CE5ytMaB.js → use-task-board-prompts-CY0qH8TO.js} +1 -1
  348. package/dist/client/assets/{use-task-metadata-D4kXdUwO.js → use-task-metadata-BAgQZZyc.js} +1 -1
  349. package/dist/client/assets/{use-thread-outputs-BPYn8k3d.js → use-thread-outputs-C4WTlJbf.js} +1 -1
  350. package/dist/client/assets/{use-voice-input-BKZpbbiI.js → use-voice-input-CelDzfp5.js} +1 -1
  351. package/dist/client/assets/useInfiniteQuery-B7UWNEWx.js +1 -0
  352. package/dist/client/assets/{useQueries-B3iHMIbL.js → useQueries-BH3au6Bf.js} +1 -1
  353. package/dist/client/assets/useSuspenseInfiniteQuery-TfssA_Zz.js +1 -0
  354. package/dist/client/assets/{users-7Hqe-w13.js → users-Bnea6Y3M.js} +1 -1
  355. package/dist/client/assets/{utils-BbEfYi1l.js → utils-8mUwv_Ld.js} +1 -1
  356. package/dist/client/assets/{variant-calendar-vayISj1w.js → variant-calendar-BvpRFRX6.js} +1 -1
  357. package/dist/client/assets/{variant-matcher-override-ulDJ4YBu.js → variant-matcher-override-Bna1heSd.js} +1 -1
  358. package/dist/client/assets/{view-header-y27ISHbd.js → view-header-CYkLhMn3.js} +1 -1
  359. package/dist/client/assets/{virtual-mcp-vRvxAZ15.js → virtual-mcp-CfQIOHDY.js} +1 -1
  360. package/dist/client/assets/{watch-sse-pool-DhoYakYc.js → watch-sse-pool-ECs_hZYZ.js} +1 -1
  361. package/dist/client/index.html +1 -1
  362. package/dist/server/server.js +561 -561
  363. package/package.json +1 -1
  364. package/dist/client/assets/agent-app-C3J9IT10.js +0 -1
  365. package/dist/client/assets/agent-deck-DRKoTD-S.js +0 -1
  366. package/dist/client/assets/agent-experiments-CgtwbbvZ.js +0 -1
  367. package/dist/client/assets/agent-library-CC7Sh_px.js +0 -1
  368. package/dist/client/assets/agent-library-file-DB9_i_YI.js +0 -1
  369. package/dist/client/assets/agent-overview-BkJ7Az2Q.js +0 -1
  370. package/dist/client/assets/agent-settings-B8F88lFa.js +0 -1
  371. package/dist/client/assets/agent-site-editor-code-TQZ-nnUV.js +0 -2
  372. package/dist/client/assets/agent-site-editor-content-CAE4z8AF.js +0 -1
  373. package/dist/client/assets/agent-site-editor-preview-gLgYeQTA.js +0 -1
  374. package/dist/client/assets/agent-view-mJs78en_.js +0 -1
  375. package/dist/client/assets/api-keys-BtDMAyj2.js +0 -1
  376. package/dist/client/assets/library-Cx1S-GVi.js +0 -1
  377. package/dist/client/assets/project-reports-bT7h-_SM.js +0 -1
  378. package/dist/client/assets/project-tasks-CqL0-1p3.js +0 -1
  379. package/dist/client/assets/record-editor-fYL_geiT.js +0 -1
  380. package/dist/client/assets/reports-CtLMPNBD.js +0 -1
  381. package/dist/client/assets/repositories-DR2_ORl-.js +0 -1
  382. package/dist/client/assets/route-oGUs3Dt9.js +0 -1
  383. package/dist/client/assets/settings-tab-CHBeACws.js +0 -1
  384. package/dist/client/assets/site-editor-BqlLTFw0.js +0 -1
  385. package/dist/client/assets/tasks-adXvugV8.js +0 -1
  386. package/dist/client/assets/use-ask-in-chat-BIANNd7Z.js +0 -1
  387. package/dist/client/assets/use-blocks-v8-project-4PZwWSEO.js +0 -1
  388. package/dist/client/assets/useInfiniteQuery-CtNfxLxq.js +0 -1
  389. package/dist/client/assets/useSuspenseInfiniteQuery-OzDVxqdl.js +0 -1
@@ -1,4 +1,4 @@
1
- import{hO as Re,e8 as Hs,aG as L,b4 as _e,cW as Lt,e7 as Zi,ba as je,e5 as Or,ea as Ve,cX as nu,hP as pn,aF as ae,hQ as Xi,hR as Ks,hS as ru,ed as iu,hT as La,hU as su,hV as ou,hW as au,d$ as Ba,dF as lu,dT as cu,e4 as uu,e6 as Pr,f$ as du,c as we,j as h,P as fu,n as Gs,a5 as Qi,a as hu,b as nt,ak as mu,t as mr,dD as es,r as P,hX as qa,dE as pu,hY as gu,fI as yu,cv as Va,cw as ts,fS as bu,fT as xu,fU as vu,cx as Su,m as ns,C as wu,ge as ju,bx as Ou,I as Au,B as $r,h as rs,d as Eu,R as Cu,hv as _u}from"./index-DEZ1imMJ.js";import{E as za}from"./empty-state-CtwVPMDf.js";import{b as Iu,d as Tu,n as Nu,A as Wa,S as Fu,C as Pu,u as $u}from"./use-mcp-client-DJjkIlNp.js";import{b as Du}from"./use-mcp-tools-wfurU0oX.js";import{A as Ha,a as ku}from"./agent-icon-CTbTFMnU.js";import{i as Ru}from"./Key01-awxHKnoL.js";import{b as Mu,u as Uu,c as Lu}from"./use-connection-BozgIoMu.js";import{U as On,b as Zr,c as Ys}from"./auth-CQxDIkM-.js";import{e as Bu}from"./extract-connection-data-hvaA6rrK.js";import{s as qu}from"./Plus-D7X8Q2-q.js";import{S as Vu,b as zu,a as Wu,d as Hu,c as Ku}from"./select-BJaUvbIR.js";import{R as Js}from"./index-D5i1_B2b.js";import{R as Gu,I as Yu,a as Ju}from"./index-DB454549.js";import{a as Zu,T as Xu,R as Qu,b as ed}from"./index-B-T__H4R.js";import{_ as Bt}from"./index-DYgzDE_k.js";import{a as td,b as nd,P as rd}from"./popover-DsvzKyw_.js";import{a as id,T as sd,b as od,c as ad}from"./tooltip-Dam-ym8O.js";import{c as ld,a as cd}from"./repository-binding-C0msapZZ.js";import{i as ud}from"./SearchMd-e6xPeRPD.js";import{u as dd}from"./use-mobile-CJITN8uI.js";import{u as fd}from"./use-navigate-to-agent-MlXDIBYX.js";import{a as hd}from"./schema-BFmIytlm.js";var md=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 pn&&(t.number=i.int())}}},pd=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=Ve(n):typeof n=="number"?t.number=Ve(n):typeof n=="boolean"?t.boolean=Ve(n):n===null?t.null=Zi():Array.isArray(n)?t.array=void 0:typeof n=="object"&&(t.object=void 0)}},gd=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?Zi():!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 Ve(t[0]);if(e==="string")return nu(t);if(e==="number"){const[n,r,...i]=t;return Or([Ve(n),Ve(r),...i.map(s=>Ve(s))])}return e==="boolean"?Or([Ve(!0),Ve(!1)]):!1}},yd=class{apply(t,e){const n=e;if(n.type==="string"&&n.format==="binary"&&n.contentEncoding==="binary"){let r=au();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}}},bd=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=L())}},xd=class{apply(t,e){const n=e;if(n.minLength!==void 0&&t.string!==!1){const r=t.string||L();r instanceof Xi&&(t.string=r.refine(i=>Array.from(i).length>=n.minLength,{message:`String must be at least ${n.minLength} characters long`}))}}},vd=class{apply(t,e){const n=e;if(n.maxLength!==void 0&&t.string!==!1){const r=t.string||L();r instanceof Xi&&(t.string=r.refine(i=>Array.from(i).length<=n.maxLength,{message:`String must be at most ${n.maxLength} characters long`}))}}},Sd=class{apply(t,e){const n=e;if(n.pattern&&t.string!==!1){const r=t.string||L();if(r instanceof Xi){const i=new RegExp(n.pattern);t.string=r.regex(i)}}}},wd=class{apply(t,e){const n=e;if(n.minimum!==void 0&&t.number!==!1){const r=t.number||_e();r instanceof pn&&(t.number=r.min(n.minimum))}}},jd=class{apply(t,e){const n=e;if(n.maximum!==void 0&&t.number!==!1){const r=t.number||_e();r instanceof pn&&(t.number=r.max(n.maximum))}}},Od=class{apply(t,e){const n=e;if(n.exclusiveMinimum!==void 0&&t.number!==!1){const r=t.number||_e();r instanceof pn&&(typeof n.exclusiveMinimum=="number"?t.number=r.gt(n.exclusiveMinimum):t.number=!1)}}},Ad=class{apply(t,e){const n=e;if(n.exclusiveMaximum!==void 0&&t.number!==!1){const r=t.number||_e();r instanceof pn&&(typeof n.exclusiveMaximum=="number"?t.number=r.lt(n.exclusiveMaximum):t.number=!1)}}},Ed=class{apply(t,e){const n=e;if(n.multipleOf!==void 0&&t.number!==!1){const r=t.number||_e();r instanceof pn&&(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}`}))}}},Cd=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=je(Re()))}},_d=class{apply(t,e){const n=e;n.minItems!==void 0&&t.array!==!1&&(t.array=(t.array||je(Re())).min(n.minItems))}},Id=class{apply(t,e){const n=e;n.maxItems!==void 0&&t.array!==!1&&(t.array=(t.array||je(Re())).max(n.maxItems))}},Td=class{apply(t,e){const n=e;if(t.array!==!1)if(Array.isArray(n.items))t.array=t.array||je(Re());else if(n.items&&typeof n.items!="boolean"&&!n.prefixItems){const r=Ie(n.items);let i=je(r);if(t.array&&t.array instanceof ru){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||je(Re()):t.array=je(Re()).max(0):typeof n.items=="boolean"&&n.items===!0?t.array=t.array||je(Re()):n.prefixItems&&(t.array=t.array||je(Re()))}},Nd=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=Ks([]):i=Ks(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}},Fd=class{apply(t,e){const n=e;t.object!==!1&&(n.properties||n.required||n.additionalProperties!==void 0)&&(t.object=t.object||ae({}).passthrough())}},Pd=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=ae({}).passthrough())}},$d=class{apply(t,e){const n=e;if(n.maxProperties!==void 0&&t.object!==!1){const r=t.object||ae({}).passthrough();t.object=r.refine(i=>Object.keys(i).length<=n.maxProperties,{message:`Object must have at most ${n.maxProperties} properties`})}}},Dd=class{apply(t,e){const n=e;if(n.minProperties!==void 0&&t.object!==!1){const r=t.object||ae({}).passthrough();t.object=r.refine(i=>Object.keys(i).length>=n.minProperties,{message:`Object must have at least ${n.minProperties} properties`})}}};function Wn(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)=>Wn(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)&&Wn(t[i],e[i]))}return!1}function kd(){return t=>{if(!Array.isArray(t))return!0;const e=[];return t.every(n=>e.some(i=>Wn(n,i))?!1:(e.push(n),!0))}}function Ar(t,e){return t.safeParse(e).success}var Rd=class{apply(t,e){if(!e.not)return t;const n=Ie(e.not);return t.refine(r=>!Ar(n,r),{message:"Value must not match the 'not' schema"})}},Md=class{apply(t,e){return e.uniqueItems!==!0?t:t.refine(kd(),{message:"Array items must be unique"})}},Ud=class{apply(t,e){return!e.allOf||e.allOf.length===0?t:e.allOf.map(r=>Ie(r)).reduce((r,i)=>La(r,i),t)}},Ld=class{apply(t,e){if(!e.anyOf||e.anyOf.length===0)return t;const n=e.anyOf.length===1?Ie(e.anyOf[0]):Or([Ie(e.anyOf[0]),Ie(e.anyOf[1]),...e.anyOf.slice(2).map(r=>Ie(r))]);return La(t,n)}},Bd=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"})}},qd=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(!Ar(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(!Ar(o,s[a]))return!1}}return!0},{message:"Array does not match prefixItems schema"})}return t}},Vd=class{apply(t,e){const n=e;if(!n.properties&&!n.required&&n.additionalProperties!==!1)return t;if(t instanceof su||t instanceof ou){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?ae(r):ae(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"})}},zd=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=>Wn(r,i)),{message:"Value must match one of the enum values"})}},Wd=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=>Wn(r,n),{message:"Value must equal the const value"})}},Hd=class{apply(t,e){return e.description&&(t=t.describe(e.description)),t}},Kd=class{apply(t,e){var n;const r=e;return!((n=r.required)!=null&&n.includes("__proto__"))||e.type!==void 0?t:Re().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))}},Gd=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)Ar(i,u)&&l++;return!(l<s||o!==void 0&&l>o)},{message:"Array must contain required items matching the schema"})}},Yd=class{apply(t,e){const{default:n}=e;return n===void 0||!t.safeParse(n).success?t:t.default(n)}},Jd=[new pd,new gd,new md,new yd,new bd,new Cd,new Pd,new xd,new vd,new Sd,new wd,new jd,new Od,new Ad,new Ed,new Nd,new _d,new Id,new Td,new $d,new Dd,new Fd],Zd=[new Kd,new zd,new Wd,new Ud,new Ld,new Bd,new qd,new Vd,new Gd,new Rd,new Md,new Yd,new Hd];function Ie(t){if(typeof t=="boolean")return t?Re():Hs();const e={};for(const i of Jd)i.apply(e,t);const n=[];if(e.string!==!1&&n.push(e.string||L()),e.number!==!1&&n.push(e.number||_e()),e.boolean!==!1&&n.push(e.boolean||Lt()),e.null!==!1&&n.push(e.null||Zi()),e.array!==!1&&n.push(e.array||je(Re())),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=Hs():n.length===1?r=n[0]:Object.keys(t).some(s=>s!=="$schema"&&s!=="title"&&s!=="description")?r=Or(n):r=Re();for(const i of Zd)r=i.apply(r,t);return r}class Zs 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(Xs(this),n)}[Symbol.for("Deno.customInspect")](e,n){return e(Xs(this),n)}}function Xd(t){const e=globalThis.DOMException;return typeof e=="function"?new e(t,"SyntaxError"):new SyntaxError(t)}function Ci(t){return t instanceof Error?"errors"in t&&Array.isArray(t.errors)?t.errors.map(Ci).join(", "):"cause"in t&&t.cause instanceof Error?`${t}: ${Ci(t.cause)}`:t.message:`${t}`}function Xs(t){return{type:t.type,message:t.message,code:t.code,defaultPrevented:t.defaultPrevented,cancelable:t.cancelable,timeStamp:t.timeStamp}}var Ka=t=>{throw TypeError(t)},is=(t,e,n)=>e.has(t)||Ka("Cannot "+n),Z=(t,e,n)=>(is(t,e,"read from private field"),n?n.call(t):e.get(t)),ve=(t,e,n)=>e.has(t)?Ka("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),pe=(t,e,n,r)=>(is(t,e,"write to private field"),e.set(t,n),n),ot=(t,e,n)=>(is(t,e,"access private method"),n),Fe,Ft,Jt,pr,Er,kn,en,Rn,bt,Zt,sn,Xt,Tn,qe,_i,Ii,Ti,Qs,Ni,Fi,Nn,Pi,$i;class gr extends EventTarget{constructor(e,n){var r,i;super(),ve(this,qe),this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,ve(this,Fe),ve(this,Ft),ve(this,Jt),ve(this,pr),ve(this,Er),ve(this,kn),ve(this,en),ve(this,Rn,null),ve(this,bt),ve(this,Zt),ve(this,sn,null),ve(this,Xt,null),ve(this,Tn,null),ve(this,Ii,async s=>{var o;Z(this,Zt).reset();const{body:a,redirected:l,status:u,headers:c}=s;if(u===204){ot(this,qe,Nn).call(this,"Server sent HTTP 204, not reconnecting",204),this.close();return}if(l?pe(this,Jt,new URL(s.url)):pe(this,Jt,void 0),u!==200){ot(this,qe,Nn).call(this,`Non-200 status code (${u})`,u);return}if(!(c.get("content-type")||"").startsWith("text/event-stream")){ot(this,qe,Nn).call(this,'Invalid content type, expected "text/event-stream"',u);return}if(Z(this,Fe)===this.CLOSED)return;pe(this,Fe,this.OPEN);const d=new Event("open");if((o=Z(this,Tn))==null||o.call(this,d),this.dispatchEvent(d),typeof a!="object"||!a||!("getReader"in a)){ot(this,qe,Nn).call(this,"Invalid response body, expected a web ReadableStream",u),this.close();return}const m=new TextDecoder,y=a.getReader();let f=!0;do{const{done:p,value:b}=await y.read();b&&Z(this,Zt).feed(m.decode(b,{stream:!p})),p&&(f=!1,Z(this,Zt).reset(),ot(this,qe,Pi).call(this))}while(f)}),ve(this,Ti,s=>{pe(this,bt,void 0),!(s.name==="AbortError"||s.type==="aborted")&&ot(this,qe,Pi).call(this,Ci(s))}),ve(this,Ni,s=>{typeof s.id=="string"&&pe(this,Rn,s.id);const o=new MessageEvent(s.event||"message",{data:s.data,origin:Z(this,Jt)?Z(this,Jt).origin:Z(this,Ft).origin,lastEventId:s.id||""});Z(this,Xt)&&(!s.event||s.event==="message")&&Z(this,Xt).call(this,o),this.dispatchEvent(o)}),ve(this,Fi,s=>{pe(this,kn,s)}),ve(this,$i,()=>{pe(this,en,void 0),Z(this,Fe)===this.CONNECTING&&ot(this,qe,_i).call(this)});try{if(e instanceof URL)pe(this,Ft,e);else if(typeof e=="string")pe(this,Ft,new URL(e,Qd()));else throw new Error("Invalid URL")}catch{throw Xd("An invalid or illegal string was specified")}pe(this,Zt,Iu({onEvent:Z(this,Ni),onRetry:Z(this,Fi)})),pe(this,Fe,this.CONNECTING),pe(this,kn,3e3),pe(this,Er,(r=n?.fetch)!=null?r:globalThis.fetch),pe(this,pr,(i=n?.withCredentials)!=null?i:!1),ot(this,qe,_i).call(this)}get readyState(){return Z(this,Fe)}get url(){return Z(this,Ft).href}get withCredentials(){return Z(this,pr)}get onerror(){return Z(this,sn)}set onerror(e){pe(this,sn,e)}get onmessage(){return Z(this,Xt)}set onmessage(e){pe(this,Xt,e)}get onopen(){return Z(this,Tn)}set onopen(e){pe(this,Tn,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,en)&&clearTimeout(Z(this,en)),Z(this,Fe)!==this.CLOSED&&(Z(this,bt)&&Z(this,bt).abort(),pe(this,Fe,this.CLOSED),pe(this,bt,void 0))}}Fe=new WeakMap,Ft=new WeakMap,Jt=new WeakMap,pr=new WeakMap,Er=new WeakMap,kn=new WeakMap,en=new WeakMap,Rn=new WeakMap,bt=new WeakMap,Zt=new WeakMap,sn=new WeakMap,Xt=new WeakMap,Tn=new WeakMap,qe=new WeakSet,_i=function(){pe(this,Fe,this.CONNECTING),pe(this,bt,new AbortController),Z(this,Er)(Z(this,Ft),ot(this,qe,Qs).call(this)).then(Z(this,Ii)).catch(Z(this,Ti))},Ii=new WeakMap,Ti=new WeakMap,Qs=function(){var t;const e={mode:"cors",redirect:"follow",headers:{Accept:"text/event-stream",...Z(this,Rn)?{"Last-Event-ID":Z(this,Rn)}:void 0},cache:"no-store",signal:(t=Z(this,bt))==null?void 0:t.signal};return"window"in globalThis&&(e.credentials=this.withCredentials?"include":"same-origin"),e},Ni=new WeakMap,Fi=new WeakMap,Nn=function(t,e){var n;Z(this,Fe)!==this.CLOSED&&pe(this,Fe,this.CLOSED);const r=new Zs("error",{code:e,message:t});(n=Z(this,sn))==null||n.call(this,r),this.dispatchEvent(r)},Pi=function(t,e){var n;if(Z(this,Fe)===this.CLOSED)return;pe(this,Fe,this.CONNECTING);const r=new Zs("error",{code:e,message:t});(n=Z(this,sn))==null||n.call(this,r),this.dispatchEvent(r),pe(this,en,setTimeout(Z(this,$i),Z(this,kn)))},$i=new WeakMap,gr.CONNECTING=0,gr.OPEN=1,gr.CLOSED=2;function Qd(){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 ef extends Error{constructor(e,n,r){super(`SSE error: ${n}`),this.code=e,this.event=r}}class tf{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=Tu(n?.fetch,n?.requestInit)}async _authThenStart(){if(!this._authProvider)throw new On("No auth provider");let e;try{e=await Zr(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 On;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=Nu(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 gr(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}=Ys(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 ef(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=Ba.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 On("No auth provider");if(await Zr(this._authProvider,{serverUrl:this._url,authorizationCode:e,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new On("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}=Ys(i);if(this._resourceMetadataUrl=o,this._scope=a,await Zr(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new On;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 nf="mcp";class rf{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,nf),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=Ba.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()})}}function sf(){const t=new Wa({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0,code:{optimize:!1}});return lu(t),t}class of{#e=sf();#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=af(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 af(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 lf=new of;var eo;(function(t){t.Completable="McpCompletable"})(eo||(eo={}));class cf extends Fu{constructor(e,n){super(e,n)}send(e,n){const r=uf(e);return r?.type==="emit"?(this.onmessage?.(r.message),Promise.resolve()):r?.type==="suppress"?Promise.resolve():super.send(e,n)}}function uf(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 df extends Pu{constructor(e,n){super(e,{jsonSchemaValidator:lf,...n})}async listTools(e,n){return await this.request({method:"tools/list",params:e},cu,n)}}const ff=async(t,e,n)=>{const r=hf(t.connection,e,n);if(!r)throw new Error("Unknown MCP connection type");const i=new df({name:t?.name??"MCP Client",version:"1.0.0"});return await i.connect(r),{client:i}},hf=(t,e,n)=>{if(t.type==="Websocket")return new rf(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 tf(new URL(t.url),s)}return new cf(new URL(t.url),{requestInit:{headers:i,signal:e,credentials:"include"}})},to=t=>{try{return JSON.parse(t)}catch{return t}},mf=500,Pt=new Map;function pf(t,e){if(Pt.set(t,e),Pt.size>mf){const n=Pt.keys().next().value;n!==void 0&&Pt.delete(n)}}const no=(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 gf(t){const e=n=>"connection"in t?ff({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:m}=await e(d),{structuredContent:y,isError:f,content:p}=await m.callTool({name:String(u),arguments:l});if(f){const v=p?.[0]?.text,w=typeof v=="string"?to(v):null,A=w?.code&&typeof t?.getErrorByStatusCode=="function"?t.getErrorByStatusCode(w.code,w.message,w.traceId):null;throw A||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"?to(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 Pt.has(u)||pf(u,s()),await Pt.get(u)}catch(c){console.error("Failed to list tools",c),Pt.delete(u);return}}async function a(){return(await o()??[]).map(u=>no(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 no(u,i)},i}})}new Proxy({},{get(t,e){return e==="toJSON"?null:e==="forConnection"?n=>ro({connection:n}):e==="forClient"?n=>ro({client:n}):globalThis[e]}});function ro(t){return gf(t)}function yf(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 bf=ae({specversion:Ve("1.0").describe("CloudEvents specification version"),id:L().describe("Unique identifier for this event (UUID recommended)"),source:L().describe("Connection ID of the event publisher"),type:L().describe("Event type (e.g., 'order.created', 'user.signup')"),time:L().datetime().optional().describe("Timestamp of when the event occurred (ISO 8601)"),subject:L().optional().describe("Subject/resource identifier (e.g., order ID, user ID)"),datacontenttype:L().optional().default("application/json").describe("Content type of the data attribute"),dataschema:L().url().optional().describe("URI to the schema for the data attribute"),data:uu().optional().describe("Event payload (any JSON value)")});ae({events:je(bf).min(1).describe("Batch of CloudEvents to process")});const xf=ae({success:Lt().optional().describe("Whether this event was processed successfully"),error:L().optional().describe("Error message for this event"),retryAfter:_e().int().positive().optional().describe("Re-deliver this event after this many ms")});ae({success:Lt().optional().describe("Batch success - applies to events not in results"),error:L().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:Pr(L(),xf).optional().describe("Per-event results keyed by event ID")});const vf=ae({type:Ve("string"),enum:je(L()).optional(),description:L().optional()}),Sf=ae({type:L(),description:L(),paramsSchema:Pr(L(),vf)});ae({});ae({triggers:je(Sf)});ae({type:L(),params:Pr(L(),L()),enabled:Lt(),callbackUrl:du().optional(),callbackToken:L().min(1).optional()});ae({success:Lt()});ae({prefix:L().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:L().optional().describe("Token for pagination from previous response"),delimiter:L().optional().describe("Delimiter for grouping keys (typically '/'). When set, commonPrefixes returns folder paths.")});ae({objects:je(ae({key:L().describe("Object key/path"),size:_e().describe("Object size in bytes"),lastModified:L().describe("Last modified timestamp"),etag:L().describe("Entity tag for the object")})),nextContinuationToken:L().optional().describe("Token for fetching next page of results"),isTruncated:Lt().describe("Whether there are more results available"),commonPrefixes:je(L()).optional().describe("Folder paths when delimiter is used (e.g., ['photos/2024/', 'photos/2025/'])")});ae({key:L().describe("Object key/path to get metadata for")});ae({contentType:L().optional().describe("MIME type of the object"),contentLength:_e().describe("Size of the object in bytes"),lastModified:L().describe("Last modified timestamp"),etag:L().describe("Entity tag for the object"),metadata:Pr(L(),L()).optional().describe("Custom metadata key-value pairs")});ae({key:L().describe("Object key/path to generate URL for"),expiresIn:_e().optional().describe("URL expiration time in seconds (default: from state config or 3600)")});ae({url:L().describe("Presigned URL for downloading the object"),expiresIn:_e().describe("Expiration time in seconds that was used")});ae({key:L().describe("Object key/path for the upload"),expiresIn:_e().optional().describe("URL expiration time in seconds (default: from state config or 3600)"),contentType:L().optional().describe("MIME type for the object being uploaded")});ae({url:L().describe("Presigned URL for uploading the object"),expiresIn:_e().describe("Expiration time in seconds that was used")});ae({key:L().describe("Object key/path to delete")});ae({success:Lt().describe("Whether the deletion was successful"),key:L().describe("The key that was deleted")});ae({keys:je(L()).max(1e3).describe("Array of object keys/paths to delete (max 1000)")});ae({deleted:je(L()).describe("Array of successfully deleted keys"),errors:je(ae({key:L(),message:L()})).describe("Array of errors for failed deletions")});const wf={"@deco/llm":"LLMS","@deco/trigger":"TRIGGER","@deco/object-storage":"OBJECT_STORAGE","@deco/brand":"BRAND"};function jf(t){if(t)return wf[t]}function Uj(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 yf(i).isImplementedBy(r)}function Lj(t){const e=we.c(7),{children:n,leading:r}=t;let i;e[0]!==r?(i=r&&h.jsx(fu.Toolbar.Left.Portal,{fallback:r,children:r}),e[0]=r,e[1]=i):i=e[1];let s;e[2]!==n?(s=h.jsx(Gs.Content,{children:n}),e[2]=n,e[3]=s):s=e[3];let o;return e[4]!==i||e[5]!==s?(o=h.jsxs(Gs,{children:[i,s]}),e[4]=i,e[5]=s,e[6]=o):o=e[6],o}function Of(){const t=we.c(9),{org:e}=Qi(),{data:n}=hu.useSession(),r=Mu(),i=nt(),s=mu();let o;t[0]!==r.create||t[1]!==e||t[2]!==n||t[3]!==s||t[4]!==i?(o=async u=>{if(!e||!n?.user?.id){mr.error(i("details.mcpConfigurationForm.notAuthenticated"));return}const{item:c}=await s.call("COLLECTION_REGISTRY_APP_GET",{name:u});if(!c){mr.error(i("details.mcpConfigurationForm.registryItemNotFound",{bindingType:u}));return}const d=Bu(c,e.id,n.user.id),m=d.connection_type==="STDIO",y=!!d.connection_url,f=m&&d.connection_headers&&typeof d.connection_headers=="object"&&"command"in d.connection_headers;if(!y&&!f){mr.error(i("details.mcpConfigurationForm.registryItemNotConnectable"));return}return await r.create.mutateAsync(d),{id:d.id,connection:d}},t[0]=r.create,t[1]=e,t[2]=n,t[3]=s,t[4]=i,t[5]=o):o=t[5];const a=o;let l;return t[6]!==r.create.isPending||t[7]!==a?(l={installByBinding:a,isInstalling:r.create.isPending},t[6]=r.create.isPending,t[7]=a,t[8]=l):l=t[8],l}function V(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 Af(t){return t.additionalItems===!0&&console.warn("additionalItems=true is currently not supported"),V(t.additionalItems)}function io(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 at="__additional_property",tn="additionalProperties",Ot="allOf",Q="anyOf",Ne="const",Dt="default",ss="dependencies",Ef="enum",Ee="__errors",de="$id",os="if",an="items",Cf="_$junk_option_schema_id$_",yr="$name",W="oneOf",Di="patternProperties",se="properties",Xr="readonly",Ga="required",Cr="submitButtonOptions",ue="$ref",Mn="__rjsf_ref",Fn="$schema",Ya="root",Ja="_",_f=["discriminator","propertyName"],so="formContext",If="layoutGridLookupMap",as="__rjsf_additionalProperties",Za="__rjsf_rootSchema",Tf="ui:field",ls="ui:widget",vt="ui:options",ki="ui:globalOptions",Nf="ui:definitions",Ff="https://json-schema.org/draft/2019-09/schema",br="https://json-schema.org/draft/2020-12/schema";function M(t={},e={}){return t?Object.keys(t).filter(n=>n.startsWith("ui:")).reduce((n,r)=>{const i=t[r];return r===ls&&V(i)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),n):r===vt&&V(i)?{...n,...i}:{...n,[r.substring(3)]:i}},{...e}):{...e}}function Xa(t,e={},n){if(!(t.additionalProperties||t.patternProperties))return!1;const{expandable:r=!0}=M(e);return r===!1?r:t.maxProperties!==void 0&&n?Object.keys(n).length<t.maxProperties:!0}var Qa=typeof global=="object"&&global&&global.Object===Object&&global,Pf=typeof self=="object"&&self&&self.Object===Object&&self,rt=Qa||Pf||Function("return this")(),Me=rt.Symbol,el=Object.prototype,$f=el.hasOwnProperty,Df=el.toString,An=Me?Me.toStringTag:void 0;function kf(t){var e=$f.call(t,An),n=t[An];try{t[An]=void 0;var r=!0}catch{}var i=Df.call(t);return r&&(e?t[An]=n:delete t[An]),i}var Rf=Object.prototype,Mf=Rf.toString;function Uf(t){return Mf.call(t)}var Lf="[object Null]",Bf="[object Undefined]",oo=Me?Me.toStringTag:void 0;function ct(t){return t==null?t===void 0?Bf:Lf:oo&&oo in Object(t)?kf(t):Uf(t)}function tl(t,e){return function(n){return t(e(n))}}var Dr=tl(Object.getPrototypeOf,Object);function Ue(t){return t!=null&&typeof t=="object"}var qf="[object Object]",Vf=Function.prototype,zf=Object.prototype,nl=Vf.toString,Wf=zf.hasOwnProperty,Hf=nl.call(Object);function At(t){if(!Ue(t)||ct(t)!=qf)return!1;var e=Dr(t);if(e===null)return!0;var n=Wf.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&nl.call(n)==Hf}function Ri(t){const e={[Ee]:[],addError(n){this[Ee].push(n)}};if(Array.isArray(t))return t.reduce((n,r,i)=>({...n,[i]:Ri(r)}),e);if(At(t)){const n=t;return Object.keys(n).reduce((r,i)=>({...r,[i]:Ri(n[i])}),e)}return e}var Se=Array.isArray,Kf="[object Symbol]";function Qn(t){return typeof t=="symbol"||Ue(t)&&ct(t)==Kf}var Gf=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Yf=/^\w*$/;function cs(t,e){if(Se(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||Qn(t)?!0:Yf.test(t)||!Gf.test(t)||e!=null&&t in Object(e)}function te(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Jf="[object AsyncFunction]",Zf="[object Function]",Xf="[object GeneratorFunction]",Qf="[object Proxy]";function er(t){if(!te(t))return!1;var e=ct(t);return e==Zf||e==Xf||e==Jf||e==Qf}var Qr=rt["__core-js_shared__"],ao=(function(){var t=/[^.]+$/.exec(Qr&&Qr.keys&&Qr.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function eh(t){return!!ao&&ao in t}var th=Function.prototype,nh=th.toString;function qt(t){if(t!=null){try{return nh.call(t)}catch{}try{return t+""}catch{}}return""}var rh=/[\\^$.*+?()[\]{}|]/g,ih=/^\[object .+?Constructor\]$/,sh=Function.prototype,oh=Object.prototype,ah=sh.toString,lh=oh.hasOwnProperty,ch=RegExp("^"+ah.call(lh).replace(rh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function uh(t){if(!te(t)||eh(t))return!1;var e=er(t)?ch:ih;return e.test(qt(t))}function dh(t,e){return t?.[e]}function Vt(t,e){var n=dh(t,e);return uh(n)?n:void 0}var Hn=Vt(Object,"create");function fh(){this.__data__=Hn?Hn(null):{},this.size=0}function hh(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var mh="__lodash_hash_undefined__",ph=Object.prototype,gh=ph.hasOwnProperty;function yh(t){var e=this.__data__;if(Hn){var n=e[t];return n===mh?void 0:n}return gh.call(e,t)?e[t]:void 0}var bh=Object.prototype,xh=bh.hasOwnProperty;function vh(t){var e=this.__data__;return Hn?e[t]!==void 0:xh.call(e,t)}var Sh="__lodash_hash_undefined__";function wh(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Hn&&e===void 0?Sh:e,this}function kt(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])}}kt.prototype.clear=fh;kt.prototype.delete=hh;kt.prototype.get=yh;kt.prototype.has=vh;kt.prototype.set=wh;function jh(){this.__data__=[],this.size=0}function tr(t,e){return t===e||t!==t&&e!==e}function kr(t,e){for(var n=t.length;n--;)if(tr(t[n][0],e))return n;return-1}var Oh=Array.prototype,Ah=Oh.splice;function Eh(t){var e=this.__data__,n=kr(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():Ah.call(e,n,1),--this.size,!0}function Ch(t){var e=this.__data__,n=kr(e,t);return n<0?void 0:e[n][1]}function _h(t){return kr(this.__data__,t)>-1}function Ih(t,e){var n=this.__data__,r=kr(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,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=jh;ut.prototype.delete=Eh;ut.prototype.get=Ch;ut.prototype.has=_h;ut.prototype.set=Ih;var Kn=Vt(rt,"Map");function Th(){this.size=0,this.__data__={hash:new kt,map:new(Kn||ut),string:new kt}}function Nh(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Rr(t,e){var n=t.__data__;return Nh(e)?n[typeof e=="string"?"string":"hash"]:n.map}function Fh(t){var e=Rr(this,t).delete(t);return this.size-=e?1:0,e}function Ph(t){return Rr(this,t).get(t)}function $h(t){return Rr(this,t).has(t)}function Dh(t,e){var n=Rr(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function dt(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])}}dt.prototype.clear=Th;dt.prototype.delete=Fh;dt.prototype.get=Ph;dt.prototype.has=$h;dt.prototype.set=Dh;var kh="Expected a function";function us(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(kh);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(us.Cache||dt),n}us.Cache=dt;var Rh=500;function Mh(t){var e=us(t,function(r){return n.size===Rh&&n.clear(),r}),n=e.cache;return e}var Uh=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Lh=/\\(\\)?/g,rl=Mh(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(Uh,function(n,r,i,s){e.push(i?s.replace(Lh,"$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 lo=Me?Me.prototype:void 0,co=lo?lo.toString:void 0;function il(t){if(typeof t=="string")return t;if(Se(t))return gn(t,il)+"";if(Qn(t))return co?co.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function ds(t){return t==null?"":il(t)}function yn(t,e){return Se(t)?t:cs(t,e)?[t]:rl(ds(t))}function Et(t){if(typeof t=="string"||Qn(t))return t;var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function Mr(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:Mr(t,e);return r===void 0?n:r}const{getOwnPropertyNames:Bh,getOwnPropertySymbols:qh}=Object,{hasOwnProperty:Vh}=Object.prototype;function ei(t,e){return function(r,i,s){return t(r,i,s)&&e(r,i,s)}}function cr(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 uo(t){return Bh(t).concat(qh(t))}const zh=Object.hasOwn||((t,e)=>Vh.call(t,e)),Wh="__v",Hh="__o",Kh="_owner",{getOwnPropertyDescriptor:fo,keys:ho}=Object,zt=Object.is||function(e,n){return e===n?e!==0||1/e===1/n:e!==e&&n!==n};function Gh(t,e){return t===e}function Yh(t,e){return t.byteLength===e.byteLength&&_r(new Uint8Array(t),new Uint8Array(e))}function Jh(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 Zh(t,e){return t.byteLength===e.byteLength&&_r(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}function Xh(t,e){return zt(t.getTime(),e.getTime())}function Qh(t,e){return t.name===e.name&&t.message===e.message&&t.cause===e.cause&&t.stack===e.stack}function mo(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 m=o.value,y=a.value;if(n.equals(m[0],y[0],l,d,t,e,n)&&n.equals(m[1],y[1],m[0],y[0],t,e,n)){c=i[d]=!0;break}d++}if(!c)return!1;l++}return!0}function em(t,e,n){const r=ho(t);let i=r.length;if(ho(e).length!==i)return!1;for(;i-- >0;)if(!sl(t,e,n,r[i]))return!1;return!0}function En(t,e,n){const r=uo(t);let i=r.length;if(uo(e).length!==i)return!1;let s,o,a;for(;i-- >0;)if(s=r[i],!sl(t,e,n,s)||(o=fo(t,s),a=fo(e,s),(o||a)&&(!o||!a||o.configurable!==a.configurable||o.enumerable!==a.enumerable||o.writable!==a.writable)))return!1;return!0}function tm(t,e){return zt(t.valueOf(),e.valueOf())}function nm(t,e){return t.source===e.source&&t.flags===e.flags}function po(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 _r(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 rm(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 sl(t,e,n,r){return(r===Kh||r===Hh||r===Wh)&&(t.$$typeof||e.$$typeof)?!0:zh(e,r)&&n.equals(t[r],e[r],r,r,t,e,n)}const im=Object.prototype.toString;function sm(t){const e=cm(t),{areArraysEqual:n,areDatesEqual:r,areFunctionsEqual:i,areMapsEqual:s,areNumbersEqual:o,areObjectsEqual:a,areRegExpsEqual:l,areSetsEqual:u,getUnsupportedCustomComparator:c}=t;return function(m,y,f){if(m===y)return!0;if(m==null||y==null)return!1;const p=typeof m;if(p!==typeof y)return!1;if(p!=="object")return p==="number"||p==="bigint"?o(m,y,f):p==="function"?i(m,y,f):!1;const b=m.constructor;if(b!==y.constructor)return!1;if(b===Object)return a(m,y,f);if(b===Array)return n(m,y,f);if(b===Date)return r(m,y,f);if(b===RegExp)return l(m,y,f);if(b===Map)return s(m,y,f);if(b===Set)return u(m,y,f);if(b===Promise)return!1;if(Array.isArray(m))return n(m,y,f);const v=im.call(m),w=e[v];if(w)return w(m,y,f);const A=c&&c(m,y,f,v);return A?A(m,y,f):!1}}function om({circular:t,createCustomConfig:e,strict:n}){let r={areArrayBuffersEqual:Yh,areArraysEqual:n?En:Jh,areDataViewsEqual:Zh,areDatesEqual:Xh,areErrorsEqual:Qh,areFunctionsEqual:Gh,areMapsEqual:n?ei(mo,En):mo,areNumbersEqual:zt,areObjectsEqual:n?En:em,arePrimitiveWrappersEqual:tm,areRegExpsEqual:nm,areSetsEqual:n?ei(po,En):po,areTypedArraysEqual:n?ei(_r,En):_r,areUrlsEqual:rm,getUnsupportedCustomComparator:void 0};if(e&&(r=Object.assign({},r,e(r))),t){const i=cr(r.areArraysEqual),s=cr(r.areMapsEqual),o=cr(r.areObjectsEqual),a=cr(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:i,areMapsEqual:s,areObjectsEqual:o,areSetsEqual:a})}return r}function am(t){return function(e,n,r,i,s,o,a){return t(e,n,a)}}function lm({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 cm({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:m,areUrlsEqual:y}){return{"[object Arguments]":l,"[object Array]":e,"[object ArrayBuffer]":t,"[object AsyncGeneratorFunction]":s,"[object BigInt]":a,"[object BigInt64Array]":m,"[object BigUint64Array]":m,"[object Boolean]":u,"[object DataView]":n,"[object Date]":r,"[object Error]":i,"[object Float16Array]":m,"[object Float32Array]":m,"[object Float64Array]":m,"[object Function]":s,"[object GeneratorFunction]":s,"[object Int8Array]":m,"[object Int16Array]":m,"[object Int32Array]":m,"[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]":m,"[object Uint8ClampedArray]":m,"[object Uint16Array]":m,"[object Uint32Array]":m}}ft();ft({strict:!0});ft({circular:!0});ft({circular:!0,strict:!0});ft({createInternalComparator:()=>zt});ft({strict:!0,createInternalComparator:()=>zt});ft({circular:!0,createInternalComparator:()=>zt});ft({circular:!0,createInternalComparator:()=>zt,strict:!0});function ft(t={}){const{circular:e=!1,createInternalComparator:n,createState:r,strict:i=!1}=t,s=om(t),o=sm(s),a=n?n(o):am(o);return lm({circular:e,comparator:o,createState:r,equals:a,strict:i})}const ie=ft({circular:!0,createCustomConfig:()=>({areFunctionsEqual(t,e){return typeof e=="function"}})});var Cn={exports:{}},ti,go;function ol(){if(go)return ti;go=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="",S=0,j=0;for(j=0;j<g.length;j++)if(S=g[j].charCodeAt(0),S!==48){if(!(S>=48&&S<=57||S>=65&&S<=70||S>=97&&S<=102))return"";x+=g[j];break}for(j+=1;j<g.length;j++){if(S=g[j].charCodeAt(0),!(S>=48&&S<=57||S>=65&&S<=70||S>=97&&S<=102))return"";x+=g[j]}return x}const o=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function a(g){return g.length=0,!0}function l(g,x,S){if(g.length){const j=s(g);if(j!=="")x.push(j);else return S.error=!0,!1;g.length=0}return!0}function u(g){let x=0;const S={error:!1,address:"",zone:""},j=[],E=[];let C=!1,_=!1,I=l;for(let T=0;T<g.length;T++){const N=g[T];if(!(N==="["||N==="]"))if(N===":"){if(C===!0&&(_=!0),!I(E,j,S))break;if(++x>7){S.error=!0;break}T>0&&g[T-1]===":"&&(C=!0),j.push(":");continue}else if(N==="%"){if(!I(E,j,S))break;I=a}else{E.push(N);continue}}return E.length&&(I===a?S.zone=E.join(""):_?j.push(E.join("")):j.push(s(E))),S.address=j.join(""),S}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 S=x.address,j=x.address;return x.zone&&(S+="%"+x.zone,j+="%25"+x.zone),{host:S,isIPV6:!0,escapedHost:j}}}function d(g,x){let S=0;for(let j=0;j<g.length;j++)g[j]===x&&S++;return S}function m(g){let x=g;const S=[];let j=-1,E=0;for(;E=x.length;){if(E===1){if(x===".")break;if(x==="/"){S.push("/");break}else{S.push(x);break}}else if(E===2){if(x[0]==="."){if(x[1]===".")break;if(x[1]==="/"){x=x.slice(2);continue}}else if(x[0]==="/"&&(x[1]==="."||x[1]==="/")){S.push("/");break}}else if(E===3&&x==="/.."){S.length!==0&&S.pop(),S.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),S.length!==0&&S.pop();continue}}if((j=x.indexOf("/",1))===-1){S.push(x);break}else S.push(x.slice(0,j)),x=x.slice(j)}return S.join("")}const y={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},f=/[@/?#:]/g,p=/[@/?#]/g;function b(g,x){const S=x?p:f;return S.lastIndex=0,g.replace(S,j=>y[j])}function v(g,x=!1){if(g.indexOf("%")===-1)return g;let S="";for(let j=0;j<g.length;j++){if(g[j]==="%"&&j+2<g.length){const E=g.slice(j+1,j+3);if(n(E)){const C=E.toUpperCase(),_=String.fromCharCode(parseInt(C,16));x&&r(_)?S+=_:S+="%"+C,j+=2;continue}}S+=g[j]}return S}function w(g){let x="";for(let S=0;S<g.length;S++){if(g[S]==="%"&&S+2<g.length){const j=g.slice(S+1,S+3);if(n(j)){const E=j.toUpperCase(),C=String.fromCharCode(parseInt(E,16));C!=="."&&r(C)?x+=C:x+="%"+E,S+=2;continue}}i(g[S])?x+=g[S]:x+=escape(g[S])}return x}function A(g){let x="";for(let S=0;S<g.length;S++){if(g[S]==="%"&&S+2<g.length){const j=g.slice(S+1,S+3);if(n(j)){x+="%"+j.toUpperCase(),S+=2;continue}}x+=escape(g[S])}return x}function O(g){const x=[];if(g.userinfo!==void 0&&(x.push(g.userinfo),x.push("@")),g.host!==void 0){let S=unescape(g.host);if(!e(S)){const j=c(S);j.isIPV6===!0?S=`[${j.escapedHost}]`:S=b(S,!1)}x.push(S)}return(typeof g.port=="number"||typeof g.port=="string")&&(x.push(":"),x.push(String(g.port))),x.length?x.join(""):void 0}return ti={nonSimpleDomain:o,recomposeAuthority:O,reescapeHostDelimiters:b,normalizePercentEncoding:v,normalizePathEncoding:w,escapePreservingEscapes:A,removeDotSegments:m,isIPv4:e,isUUID:t,normalizeIPv6:c,stringArrayToHexStripped:s},ti}var ni,yo;function um(){if(yo)return ni;yo=1;const{isUUID:t}=ol(),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,S]=g.resourceName.split("?");g.path=x&&x!=="/"?x:void 0,g.query=S,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 S=g.path.match(e);if(S){const j=x.scheme||g.scheme||"urn";g.nid=S[1].toLowerCase(),g.nss=S[2];const E=`${j}:${x.nid||g.nid}`,C=O(E);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 S=x.scheme||g.scheme||"urn",j=g.nid.toLowerCase(),E=`${S}:${x.nid||j}`,C=O(E);C&&(g=C.serialize(g,x));const _=g,I=g.nss;return _.path=`${j||x.nid}:${I}`,x.skipEscape=!0,_}function d(g,x){const S=g;return S.uuid=S.nss,S.nss=void 0,!x.tolerant&&(!S.uuid||!t(S.uuid))&&(S.error=S.error||"UUID is not valid."),S}function m(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},A={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:m,skipNormalize:!0}};Object.setPrototypeOf(A,null);function O(g){return g&&(A[g]||A[g.toLowerCase()])||void 0}return ni={wsIsSecure:i,SCHEMES:A,isValidSchemeName:r,getSchemeHandler:O},ni}var bo;function dm(){if(bo)return Cn.exports;bo=1;const{normalizeIPv6:t,removeDotSegments:e,recomposeAuthority:n,normalizePercentEncoding:r,normalizePathEncoding:i,escapePreservingEscapes:s,reescapeHostDelimiters:o,isIPv4:a,nonSimpleDomain:l}=ol(),{SCHEMES:u,getSchemeHandler:c}=um();function d(j,E){return typeof j=="string"?j=O(j,E):typeof j=="object"&&(j=A(p(j,E),E)),j}function m(j,E,C){const _=C?Object.assign({scheme:"null"},C):{scheme:"null"},I=y(A(j,_),A(E,_),_,!0);return _.skipEscape=!0,p(I,_)}function y(j,E,C,_){const I={};return _||(j=A(p(j,C),C),E=A(p(E,C),C)),C=C||{},!C.tolerant&&E.scheme?(I.scheme=E.scheme,I.userinfo=E.userinfo,I.host=E.host,I.port=E.port,I.path=e(E.path||""),I.query=E.query):(E.userinfo!==void 0||E.host!==void 0||E.port!==void 0?(I.userinfo=E.userinfo,I.host=E.host,I.port=E.port,I.path=e(E.path||""),I.query=E.query):(E.path?(E.path[0]==="/"?I.path=e(E.path):((j.userinfo!==void 0||j.host!==void 0||j.port!==void 0)&&!j.path?I.path="/"+E.path:j.path?I.path=j.path.slice(0,j.path.lastIndexOf("/")+1)+E.path:I.path=E.path,I.path=e(I.path)),I.query=E.query):(I.path=j.path,E.query!==void 0?I.query=E.query:I.query=j.query),I.userinfo=j.userinfo,I.host=j.host,I.port=j.port),I.scheme=j.scheme),I.fragment=E.fragment,I}function f(j,E,C){const _=x(j,C),I=x(E,C);return _!==void 0&&I!==void 0&&_.toLowerCase()===I.toLowerCase()}function p(j,E){const C={host:j.host,scheme:j.scheme,userinfo:j.userinfo,port:j.port,path:j.path,query:j.query,nid:j.nid,nss:j.nss,uuid:j.uuid,fragment:j.fragment,reference:j.reference,resourceName:j.resourceName,secure:j.secure,error:""},_=Object.assign({},E),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 N=n(C);if(N!==void 0&&(_.reference!=="suffix"&&I.push("//"),I.push(N),C.path&&C.path[0]!=="/"&&I.push("/")),C.path!==void 0){let F=C.path;!_.absolutePath&&(!T||!T.absolutePath)&&(F=e(F)),N===void 0&&F[0]==="/"&&F[1]==="/"&&(F="/%2F"+F.slice(2)),I.push(F)}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(j,E){if(E[2]!==void 0&&j.path&&j.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof j.port=="number"&&(j.port<0||j.port>65535))return"URI port is malformed."}function w(j,E){const C=Object.assign({},E),_={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?j=C.scheme+":"+j:j="//"+j);const N=j.match(b);if(N){_.scheme=N[1],_.userinfo=N[3],_.host=N[4],_.port=parseInt(N[5],10),_.path=N[6]||"",_.query=N[7],_.fragment=N[8],isNaN(_.port)&&(_.port=N[5]);const F=v(_,N);if(F!==void 0&&(_.error=_.error||F,I=!0),_.host)if(a(_.host)===!1){const B=t(_.host);_.host=B.host.toLowerCase(),T=B.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)&&(j.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 A(j,E){return w(j,E).parsed}function O(j,E){return g(j,E).normalized}function g(j,E){const{parsed:C,malformedAuthorityOrPort:_}=w(j,E);return{normalized:_?j:p(C,E),malformedAuthorityOrPort:_}}function x(j,E){if(typeof j=="string"){const{normalized:C,malformedAuthorityOrPort:_}=g(j,E);return _?void 0:C}if(typeof j=="object")return p(j,E)}const S={SCHEMES:u,normalize:d,resolve:m,resolveComponent:y,equal:f,serialize:p,parse:A};return Cn.exports=S,Cn.exports.default=S,Cn.exports.fastUri=S,Cn.exports}var fm=dm();const fs=es(fm);var _n={},xo;function hm(){if(xo)return _n;xo=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 m,y,f=1,p=c.length;f<p;){if(c[f]==="constructor"||c[f]==="prototype"||c[f]==="__proto__")return u;if(m=r(c[f++]),y=p>f,typeof u[m]>"u"&&(Array.isArray(u)&&m==="-"&&(m=u.length),y&&(c[f]!==""&&c[f]<1/0||c[f]==="-"?u[m]=[]:u[m]={})),!y)break;u=u[m]}var b=u[m];return d===void 0?delete u[m]:u[m]=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 m=1;m<d;){if(u=u[r(c[m++])],d===m)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,m){return a(d,c,m)}}}return _n.get=o,_n.set=a,_n.compile=l,_n}var mm=hm();const ri=es(mm);var pm=Object.prototype;function Ur(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||pm;return t===n}var gm=tl(Object.keys,Object),ym=Object.prototype,bm=ym.hasOwnProperty;function al(t){if(!Ur(t))return gm(t);var e=[];for(var n in Object(t))bm.call(t,n)&&n!="constructor"&&e.push(n);return e}var Mi=Vt(rt,"DataView"),Ui=Vt(rt,"Promise"),on=Vt(rt,"Set"),Li=Vt(rt,"WeakMap"),vo="[object Map]",xm="[object Object]",So="[object Promise]",wo="[object Set]",jo="[object WeakMap]",Oo="[object DataView]",vm=qt(Mi),Sm=qt(Kn),wm=qt(Ui),jm=qt(on),Om=qt(Li),ke=ct;(Mi&&ke(new Mi(new ArrayBuffer(1)))!=Oo||Kn&&ke(new Kn)!=vo||Ui&&ke(Ui.resolve())!=So||on&&ke(new on)!=wo||Li&&ke(new Li)!=jo)&&(ke=function(t){var e=ct(t),n=e==xm?t.constructor:void 0,r=n?qt(n):"";if(r)switch(r){case vm:return Oo;case Sm:return vo;case wm:return So;case jm:return wo;case Om:return jo}return e});var Am="[object Arguments]";function Ao(t){return Ue(t)&&ct(t)==Am}var ll=Object.prototype,Em=ll.hasOwnProperty,Cm=ll.propertyIsEnumerable,ln=Ao((function(){return arguments})())?Ao:function(t){return Ue(t)&&Em.call(t,"callee")&&!Cm.call(t,"callee")},_m=9007199254740991;function hs(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=_m}function Wt(t){return t!=null&&hs(t.length)&&!er(t)}function Im(){return!1}var cl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Eo=cl&&typeof module=="object"&&module&&!module.nodeType&&module,Tm=Eo&&Eo.exports===cl,Co=Tm?rt.Buffer:void 0,Nm=Co?Co.isBuffer:void 0,Rt=Nm||Im,Fm="[object Arguments]",Pm="[object Array]",$m="[object Boolean]",Dm="[object Date]",km="[object Error]",Rm="[object Function]",Mm="[object Map]",Um="[object Number]",Lm="[object Object]",Bm="[object RegExp]",qm="[object Set]",Vm="[object String]",zm="[object WeakMap]",Wm="[object ArrayBuffer]",Hm="[object DataView]",Km="[object Float32Array]",Gm="[object Float64Array]",Ym="[object Int8Array]",Jm="[object Int16Array]",Zm="[object Int32Array]",Xm="[object Uint8Array]",Qm="[object Uint8ClampedArray]",ep="[object Uint16Array]",tp="[object Uint32Array]",me={};me[Km]=me[Gm]=me[Ym]=me[Jm]=me[Zm]=me[Xm]=me[Qm]=me[ep]=me[tp]=!0;me[Fm]=me[Pm]=me[Wm]=me[$m]=me[Hm]=me[Dm]=me[km]=me[Rm]=me[Mm]=me[Um]=me[Lm]=me[Bm]=me[qm]=me[Vm]=me[zm]=!1;function np(t){return Ue(t)&&hs(t.length)&&!!me[ct(t)]}function ms(t){return function(e){return t(e)}}var ul=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Un=ul&&typeof module=="object"&&module&&!module.nodeType&&module,rp=Un&&Un.exports===ul,ii=rp&&Qa.process,cn=(function(){try{var t=Un&&Un.require&&Un.require("util").types;return t||ii&&ii.binding&&ii.binding("util")}catch{}})(),_o=cn&&cn.isTypedArray,nr=_o?ms(_o):np,ip="[object Map]",sp="[object Set]",op=Object.prototype,ap=op.hasOwnProperty;function ge(t){if(t==null)return!0;if(Wt(t)&&(Se(t)||typeof t=="string"||typeof t.splice=="function"||Rt(t)||nr(t)||ln(t)))return!t.length;var e=ke(t);if(e==ip||e==sp)return!t.size;if(Ur(t))return!al(t).length;for(var n in t)if(ap.call(t,n))return!1;return!0}function lp(){this.__data__=new ut,this.size=0}function cp(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function up(t){return this.__data__.get(t)}function dp(t){return this.__data__.has(t)}var fp=200;function hp(t,e){var n=this.__data__;if(n instanceof ut){var r=n.__data__;if(!Kn||r.length<fp-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new dt(r)}return n.set(t,e),this.size=n.size,this}function We(t){var e=this.__data__=new ut(t);this.size=e.size}We.prototype.clear=lp;We.prototype.delete=cp;We.prototype.get=up;We.prototype.has=dp;We.prototype.set=hp;function ps(t,e){for(var n=-1,r=t==null?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t}var Ir=(function(){try{var t=Vt(Object,"defineProperty");return t({},"",{}),t}catch{}})();function gs(t,e,n){e=="__proto__"&&Ir?Ir(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var mp=Object.prototype,pp=mp.hasOwnProperty;function ys(t,e,n){var r=t[e];(!(pp.call(t,e)&&tr(r,n))||n===void 0&&!(e in t))&&gs(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?gs(n,a,l):ys(n,a,l)}return n}function dl(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var gp=9007199254740991,yp=/^(?:0|[1-9]\d*)$/;function Lr(t,e){var n=typeof t;return e=e??gp,!!e&&(n=="number"||n!="symbol"&&yp.test(t))&&t>-1&&t%1==0&&t<e}var bp=Object.prototype,xp=bp.hasOwnProperty;function fl(t,e){var n=Se(t),r=!n&&ln(t),i=!n&&!r&&Rt(t),s=!n&&!r&&!i&&nr(t),o=n||r||i||s,a=o?dl(t.length,String):[],l=a.length;for(var u in t)(e||xp.call(t,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Lr(u,l)))&&a.push(u);return a}function ze(t){return Wt(t)?fl(t):al(t)}function vp(t,e){return t&&bn(e,ze(e),t)}function Sp(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var wp=Object.prototype,jp=wp.hasOwnProperty;function Op(t){if(!te(t))return Sp(t);var e=Ur(t),n=[];for(var r in t)r=="constructor"&&(e||!jp.call(t,r))||n.push(r);return n}function rr(t){return Wt(t)?fl(t,!0):Op(t)}function Ap(t,e){return t&&bn(e,rr(e),t)}var hl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Io=hl&&typeof module=="object"&&module&&!module.nodeType&&module,Ep=Io&&Io.exports===hl,To=Ep?rt.Buffer:void 0,No=To?To.allocUnsafe:void 0;function ml(t,e){if(e)return t.slice();var n=t.length,r=No?No(n):new t.constructor(n);return t.copy(r),r}function bs(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}function Cp(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 pl(){return[]}var _p=Object.prototype,Ip=_p.propertyIsEnumerable,Fo=Object.getOwnPropertySymbols,xs=Fo?function(t){return t==null?[]:(t=Object(t),Cp(Fo(t),function(e){return Ip.call(t,e)}))}:pl;function Tp(t,e){return bn(t,xs(t),e)}function vs(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var Np=Object.getOwnPropertySymbols,gl=Np?function(t){for(var e=[];t;)vs(e,xs(t)),t=Dr(t);return e}:pl;function Fp(t,e){return bn(t,gl(t),e)}function yl(t,e,n){var r=e(t);return Se(t)?r:vs(r,n(t))}function Bi(t){return yl(t,ze,xs)}function Ss(t){return yl(t,rr,gl)}var Pp=Object.prototype,$p=Pp.hasOwnProperty;function Dp(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&$p.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var Tr=rt.Uint8Array;function ws(t){var e=new t.constructor(t.byteLength);return new Tr(e).set(new Tr(t)),e}function kp(t,e){var n=e?ws(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var Rp=/\w*$/;function Mp(t){var e=new t.constructor(t.source,Rp.exec(t));return e.lastIndex=t.lastIndex,e}var Po=Me?Me.prototype:void 0,$o=Po?Po.valueOf:void 0;function Up(t){return $o?Object($o.call(t)):{}}function bl(t,e){var n=e?ws(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var Lp="[object Boolean]",Bp="[object Date]",qp="[object Map]",Vp="[object Number]",zp="[object RegExp]",Wp="[object Set]",Hp="[object String]",Kp="[object Symbol]",Gp="[object ArrayBuffer]",Yp="[object DataView]",Jp="[object Float32Array]",Zp="[object Float64Array]",Xp="[object Int8Array]",Qp="[object Int16Array]",eg="[object Int32Array]",tg="[object Uint8Array]",ng="[object Uint8ClampedArray]",rg="[object Uint16Array]",ig="[object Uint32Array]";function sg(t,e,n){var r=t.constructor;switch(e){case Gp:return ws(t);case Lp:case Bp:return new r(+t);case Yp:return kp(t,n);case Jp:case Zp:case Xp:case Qp:case eg:case tg:case ng:case rg:case ig:return bl(t,n);case qp:return new r;case Vp:case Hp:return new r(t);case zp:return Mp(t);case Wp:return new r;case Kp:return Up(t)}}var Do=Object.create,xl=(function(){function t(){}return function(e){if(!te(e))return{};if(Do)return Do(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}})();function vl(t){return typeof t.constructor=="function"&&!Ur(t)?xl(Dr(t)):{}}var og="[object Map]";function ag(t){return Ue(t)&&ke(t)==og}var ko=cn&&cn.isMap,lg=ko?ms(ko):ag,cg="[object Set]";function ug(t){return Ue(t)&&ke(t)==cg}var Ro=cn&&cn.isSet,dg=Ro?ms(Ro):ug,fg=1,hg=2,mg=4,Sl="[object Arguments]",pg="[object Array]",gg="[object Boolean]",yg="[object Date]",bg="[object Error]",wl="[object Function]",xg="[object GeneratorFunction]",vg="[object Map]",Sg="[object Number]",jl="[object Object]",wg="[object RegExp]",jg="[object Set]",Og="[object String]",Ag="[object Symbol]",Eg="[object WeakMap]",Cg="[object ArrayBuffer]",_g="[object DataView]",Ig="[object Float32Array]",Tg="[object Float64Array]",Ng="[object Int8Array]",Fg="[object Int16Array]",Pg="[object Int32Array]",$g="[object Uint8Array]",Dg="[object Uint8ClampedArray]",kg="[object Uint16Array]",Rg="[object Uint32Array]",he={};he[Sl]=he[pg]=he[Cg]=he[_g]=he[gg]=he[yg]=he[Ig]=he[Tg]=he[Ng]=he[Fg]=he[Pg]=he[vg]=he[Sg]=he[jl]=he[wg]=he[jg]=he[Og]=he[Ag]=he[$g]=he[Dg]=he[kg]=he[Rg]=!0;he[bg]=he[wl]=he[Eg]=!1;function Ln(t,e,n,r,i,s){var o,a=e&fg,l=e&hg,u=e&mg;if(n&&(o=i?n(t,r,i,s):n(t)),o!==void 0)return o;if(!te(t))return t;var c=Se(t);if(c){if(o=Dp(t),!a)return bs(t,o)}else{var d=ke(t),m=d==wl||d==xg;if(Rt(t))return ml(t,a);if(d==jl||d==Sl||m&&!i){if(o=l||m?{}:vl(t),!a)return l?Fp(t,Ap(o,t)):Tp(t,vp(o,t))}else{if(!he[d])return i?t:{};o=sg(t,d,a)}}s||(s=new We);var y=s.get(t);if(y)return y;s.set(t,o),dg(t)?t.forEach(function(b){o.add(Ln(b,e,n,b,t,s))}):lg(t)&&t.forEach(function(b,v){o.set(v,Ln(b,e,n,v,t,s))});var f=u?l?Ss:Bi:l?rr:ze,p=c?void 0:f(t);return ps(p||t,function(b,v){p&&(v=b,b=t[v]),ys(o,v,Ln(b,e,n,v,t,s))}),o}function Ol(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}function Mg(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 Ug(t,e){return e.length<2?t:Mr(t,Mg(e,0,-1))}var Lg=Object.prototype,Bg=Lg.hasOwnProperty;function Al(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__"&&!Bg.call(t,"__proto__")||(i==="constructor"||i==="prototype")&&n<r-1)return!1}var s=Ug(t,e);return s==null||delete s[Et(Ol(e))]}function qg(t){return At(t)?void 0:t}var Mo=Me?Me.isConcatSpreadable:void 0;function Vg(t){return Se(t)||ln(t)||!!(Mo&&t&&t[Mo])}function ir(t,e,n,r,i){var s=-1,o=t.length;for(n||(n=Vg),i||(i=[]);++s<o;){var a=t[s];e>0&&n(a)?e>1?ir(a,e-1,n,r,i):vs(i,a):r||(i[i.length]=a)}return i}function qi(t){var e=t==null?0:t.length;return e?ir(t,1):[]}function zg(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 Uo=Math.max;function El(t,e,n){return e=Uo(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,s=Uo(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),zg(t,this,a)}}function Wg(t){return function(){return t}}function Br(t){return t}var Hg=Ir?function(t,e){return Ir(t,"toString",{configurable:!0,enumerable:!1,value:Wg(e),writable:!0})}:Br,Kg=800,Gg=16,Yg=Date.now;function Jg(t){var e=0,n=0;return function(){var r=Yg(),i=Gg-(r-n);if(n=r,i>0){if(++e>=Kg)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var Cl=Jg(Hg);function _l(t){return Cl(El(t,void 0,qi),t+"")}var Zg=1,Xg=2,Qg=4,un=_l(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,Ss(t),n),r&&(n=Ln(n,Zg|Xg|Qg,qg));for(var i=e.length;i--;)Al(n,e[i]);return n});function Nr(t,e){if(de in t&&fs.equal(t[de],e))return t;for(const n of Object.values(t))if(Array.isArray(n)){for(const r of n)if(te(r)){const i=Nr(r,e);if(i!==void 0)return i}}else if(te(n)){const r=Nr(n,e);if(r!==void 0)return r}}function Vi(t,e){const n=D(t,de,e);let r=t;ue in r&&(r={...r,[ue]:fs.resolve(n,r[ue])});for(const[i,s]of Object.entries(r))Array.isArray(s)?r={...r,[i]:s.map(o=>te(o)?Vi(o,n):o)}:te(s)&&(r={...r,[i]:Vi(s,n)});return r}function js(t,e){const n=e[t];return[un(e,[t]),n]}function Il(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=ri.get(e,l):e[Fn]===br&&(s=Nr(e,o.replace(/\/$/,"")),s!==void 0&&(s=ri.get(s,l)))}else if(e[Fn]===br){const l=o?fs.resolve(o,i):i,[u,...c]=l.replace(/#\/?$/,"").split("#");s=Nr(e,u.replace(/\/$/,"")),s!==void 0&&(o=s[de],ge(c)||(s=ri.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,...m]=n,y=[...m,i,d].join(" -> ");throw new Error(`Definition for ${d} contains a circular reference through ${y}`)}const[l,u]=js(ue,s),c=Il(u,e,[...n,i],o);return Object.keys(l).length>0?e[Fn]===Ff||e[Fn]===br?{[Ot]:[l,c]}:{...l,...c}:c}return s}function Gn(t,e={},n=D(e,[de])){return Il(t,e,[],n)}var ey=Object.prototype,ty=ey.hasOwnProperty;function ny(t,e){return t!=null&&ty.call(t,e)}function Tl(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&&hs(i)&&Lr(o,i)&&(Se(t)||ln(t)))}function X(t,e){return t!=null&&Tl(t,e,ny)}var ry="[object String]";function Ct(t){return typeof t=="string"||!Se(t)&&Ue(t)&&ct(t)==ry}function He(t){let e;const n=D(t,_f);return Ct(n)?e=n:n!==void 0&&console.warn(`Expecting discriminator to be a string, got "${typeof n}" instead`),e}var iy=1/0;function sy(t){var e=t==null?0:t.length;return e?ir(t,iy):[]}function zi(t,e,n){(n!==void 0&&!tr(t[e],n)||n===void 0&&!(e in t))&&gs(t,e,n)}function oy(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 Nl=oy();function Yn(t){return Ue(t)&&Wt(t)}function Wi(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function ay(t){return bn(t,rr(t))}function ly(t,e,n,r,i,s,o){var a=Wi(t,n),l=Wi(e,n),u=o.get(l);if(u){zi(t,n,u);return}var c=s?s(a,l,n+"",t,e,o):void 0,d=c===void 0;if(d){var m=Se(l),y=!m&&Rt(l),f=!m&&!y&&nr(l);c=l,m||y||f?Se(a)?c=a:Yn(a)?c=bs(a):y?(d=!1,c=ml(l,!0)):f?(d=!1,c=bl(l,!0)):c=[]:At(l)||ln(l)?(c=a,ln(a)?c=ay(a):(!te(a)||er(a))&&(c=vl(l))):d=!1}d&&(o.set(l,c),i(c,l,r,s,o),o.delete(l)),zi(t,n,c)}function Fl(t,e,n,r,i){t!==e&&Nl(e,function(s,o){if(i||(i=new We),te(s))ly(t,e,o,n,Fl,r,i);else{var a=r?r(Wi(t,o),s,o+"",t,e,i):void 0;a===void 0&&(a=s),zi(t,o,a)}},rr)}function qr(t,e){return Cl(El(t,e,Br),t+"")}function cy(t,e,n){if(!te(n))return!1;var r=typeof e;return(r=="number"?Wt(n)&&Lr(e,n.length):r=="string"&&e in n)?tr(n[e],t):!1}function uy(t){return qr(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&&cy(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 dy=uy(function(t,e,n){Fl(t,e,n)});function Os(t,e,n,r){if(!te(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=te(c)?c:Lr(e[i+1])?[]:{})}ys(a,l,u),a=a[l]}return t}function ce(t,e,n){return t==null?t:Os(t,e,n)}function Pl(t){return typeof t=="function"?t:Br}var fy=/\s/;function hy(t){for(var e=t.length;e--&&fy.test(t.charAt(e)););return e}var my=/^\s+/;function py(t){return t&&t.slice(0,hy(t)+1).replace(my,"")}var Lo=NaN,gy=/^[-+]0x[0-9a-f]+$/i,yy=/^0b[01]+$/i,by=/^0o[0-7]+$/i,xy=parseInt;function vy(t){if(typeof t=="number")return t;if(Qn(t))return Lo;if(te(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=te(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=py(t);var n=yy.test(t);return n||by.test(t)?xy(t.slice(2),n?2:8):gy.test(t)?Lo:+t}var Bo=1/0,Sy=17976931348623157e292;function wy(t){if(!t)return t===0?t:0;if(t=vy(t),t===Bo||t===-Bo){var e=t<0?-1:1;return e*Sy}return t===t?t:0}function $l(t){var e=wy(t),n=e%1;return e===e?n?e-n:e:0}var jy=9007199254740991,si=4294967295,Oy=Math.min;function Dl(t,e){if(t=$l(t),t<1||t>jy)return[];var n=si,r=Oy(t,si);e=Pl(e),t-=si;for(var i=dl(r,e);++n<t;)e(n);return i}function kl(t,e){return t&&Nl(t,e,ze)}var Ay="__lodash_hash_undefined__";function Ey(t){return this.__data__.set(t,Ay),this}function Cy(t){return this.__data__.has(t)}function Mt(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new dt;++e<n;)this.add(t[e])}Mt.prototype.add=Mt.prototype.push=Ey;Mt.prototype.has=Cy;function _y(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 Jn(t,e){return t.has(e)}var Iy=1,Ty=2;function Rl(t,e,n,r,i,s){var o=n&Iy,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,m=!0,y=n&Ty?new Mt: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;m=!1;break}if(y){if(!_y(e,function(v,w){if(!Jn(y,w)&&(f===v||i(f,v,n,r,s)))return y.push(w)})){m=!1;break}}else if(!(f===p||i(f,p,n,r,s))){m=!1;break}}return s.delete(t),s.delete(e),m}function Ny(t){var e=-1,n=Array(t.size);return t.forEach(function(r,i){n[++e]=[i,r]}),n}function As(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var Fy=1,Py=2,$y="[object Boolean]",Dy="[object Date]",ky="[object Error]",Ry="[object Map]",My="[object Number]",Uy="[object RegExp]",Ly="[object Set]",By="[object String]",qy="[object Symbol]",Vy="[object ArrayBuffer]",zy="[object DataView]",qo=Me?Me.prototype:void 0,oi=qo?qo.valueOf:void 0;function Wy(t,e,n,r,i,s,o){switch(n){case zy:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Vy:return!(t.byteLength!=e.byteLength||!s(new Tr(t),new Tr(e)));case $y:case Dy:case My:return tr(+t,+e);case ky:return t.name==e.name&&t.message==e.message;case Uy:case By:return t==e+"";case Ry:var a=Ny;case Ly:var l=r&Fy;if(a||(a=As),t.size!=e.size&&!l)return!1;var u=o.get(t);if(u)return u==e;r|=Py,o.set(t,e);var c=Rl(a(t),a(e),r,i,s,o);return o.delete(t),c;case qy:if(oi)return oi.call(t)==oi.call(e)}return!1}var Hy=1,Ky=Object.prototype,Gy=Ky.hasOwnProperty;function Yy(t,e,n,r,i,s){var o=n&Hy,a=Bi(t),l=a.length,u=Bi(e),c=u.length;if(l!=c&&!o)return!1;for(var d=l;d--;){var m=a[d];if(!(o?m in e:Gy.call(e,m)))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;){m=a[d];var v=t[m],w=e[m];if(r)var A=o?r(w,v,m,e,t,s):r(v,w,m,t,e,s);if(!(A===void 0?v===w||i(v,w,n,r,s):A)){p=!1;break}b||(b=m=="constructor")}if(p&&!b){var O=t.constructor,g=e.constructor;O!=g&&"constructor"in t&&"constructor"in e&&!(typeof O=="function"&&O instanceof O&&typeof g=="function"&&g instanceof g)&&(p=!1)}return s.delete(t),s.delete(e),p}var Jy=1,Vo="[object Arguments]",zo="[object Array]",ur="[object Object]",Zy=Object.prototype,Wo=Zy.hasOwnProperty;function Xy(t,e,n,r,i,s){var o=Se(t),a=Se(e),l=o?zo:ke(t),u=a?zo:ke(e);l=l==Vo?ur:l,u=u==Vo?ur:u;var c=l==ur,d=u==ur,m=l==u;if(m&&Rt(t)){if(!Rt(e))return!1;o=!0,c=!1}if(m&&!c)return s||(s=new We),o||nr(t)?Rl(t,e,n,r,i,s):Wy(t,e,l,n,r,i,s);if(!(n&Jy)){var y=c&&Wo.call(t,"__wrapped__"),f=d&&Wo.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 m?(s||(s=new We),Yy(t,e,n,r,i,s)):!1}function Vr(t,e,n,r,i){return t===e?!0:t==null||e==null||!Ue(t)&&!Ue(e)?t!==t&&e!==e:Xy(t,e,n,r,Vr,i)}var Qy=1,eb=2;function tb(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?Vr(u,l,Qy|eb,r,c):d))return!1}}return!0}function Ml(t){return t===t&&!te(t)}function nb(t){for(var e=ze(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,Ml(i)]}return e}function Ul(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}function rb(t){var e=nb(t);return e.length==1&&e[0][2]?Ul(e[0][0],e[0][1]):function(n){return n===t||tb(n,t,e)}}function ib(t,e){return t!=null&&e in Object(t)}function Ll(t,e){return t!=null&&Tl(t,e,ib)}var sb=1,ob=2;function ab(t,e){return cs(t)&&Ml(e)?Ul(Et(t),e):function(n){var r=D(n,t);return r===void 0&&r===e?Ll(n,t):Vr(e,r,sb|ob)}}function lb(t){return function(e){return e?.[t]}}function cb(t){return function(e){return Mr(e,t)}}function ub(t){return cs(t)?lb(Et(t)):cb(t)}function Es(t){return typeof t=="function"?t:t==null?Br:typeof t=="object"?Se(t)?ab(t[0],t[1]):rb(t):ub(t)}function db(t,e,n){var r=Se(t),i=r||Rt(t)||nr(t);if(e=Es(e),n==null){var s=t&&t.constructor;i?n=r?new s:[]:te(t)?n=er(s)?xl(Dr(t)):{}:n={}}return(i?ps:kl)(t,function(o,a,l){return e(n,o,a,l)}),n}function fb(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 hb(t){return t!==t}function mb(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}function Bl(t,e,n){return e===e?mb(t,e,n):fb(t,hb,n)}function Cs(t,e){var n=t==null?0:t.length;return!!n&&Bl(t,e,0)>-1}function xr(){}var pb=1/0,gb=on&&1/As(new on([,-0]))[1]==pb?function(t){return new on(t)}:xr,yb=200;function ql(t,e,n){var r=-1,i=Cs,s=t.length,o=!0,a=[],l=a;if(s>=yb){var u=gb(t);if(u)return As(u);o=!1,i=Jn,l=new Mt}else l=a;e:for(;++r<s;){var c=t[r],d=c;if(c=c!==0?c:0,o&&d===d){for(var m=l.length;m--;)if(l[m]===d)continue e;a.push(c)}else i(l,d,n)||(l!==a&&l.push(d),a.push(c))}return a}function Vl(t){return t&&t.length?ql(t):[]}function Zn(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 bb=qr(function(t){return ql(ir(t,1,Yn,!0))});function Le(t){let{type:e}=t;return!e&&t.const?Zn(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 lt(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&&V(o)?r[i]=lt(s,o):t&&e&&(Le(t)==="object"||Le(e)==="object")&&i===Ga&&Array.isArray(s)&&Array.isArray(o)?r[i]=bb(s,o):r[i]=o,r},n)}var xb="[object Number]";function zl(t){return typeof t=="number"||Ue(t)&&ct(t)==xb}function Wl(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 Fr(t,e,n,r,i){if(e===void 0)return 0;const s=Wl(e,n,i);if(zl(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 vb=Object.prototype;function Pn(t){for(const e in t)if(vb.hasOwnProperty.call(t,e))return!1;return!0}const Sb=["array","boolean","integer","null","number","object","string"];new Set(Sb);const wb=["$defs","definitions","properties","patternProperties","dependencies"];new Set(wb);const jb=["items","allOf","oneOf","anyOf"];new Set(jb);const Ob=["items","additionalItems","additionalProperties","propertyNames","contains","if","then","else","not"];new Set(Ob);function vr(t){return typeof t=="object"}function Ye(t){return vr(t)?Pn(t):t===!0}function nn(t,e){return t<e?-1:t>e?1:0}function ai(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 Ab(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 Ho(t){return t.length===0}function li(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 Hl(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 Eb(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 Cb(t,e){return n=>{if(t.has(n))return t.get(n);const r=e(n);return t.set(n,r),r}}const Ko=Cb,Kl=()=>0,_b=t=>t===void 0,Ib=t=>typeof t!="object",Go={boolean:0,number:1,string:2};function Tb(t,e){const n=typeof t,r=typeof e;return n===r?nn(t,e):Go[n]-Go[r]}function Nb(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 zr(t,e,n=Kl){return(r,i)=>t(r)?t(i)?n(r,i):-1:t(i)?1:e(r,i)}function Qt(t){return zr(_b,t)}function pt(t,e){return zr(n=>n===void 0||t(n),e)}function ci(t,e){return zr(Array.isArray,t,e)}const be=Qt(nn),ui=pt(t=>t===0,(t,e)=>t-e);function Fb({deduplicationCache:t=new WeakMap,sortedKeysCache:e=new WeakMap}={}){const n=Ko(e,p=>Object.keys(p).sort());function r(p){return(b,v)=>{const w=n(b),A=n(v),O=Math.min(w.length,A.length);for(let g=0;g<O;g++){const x=nn(w[g],A[g]);if(x!==0)return x}if(w.length!==A.length)return w.length-A.length;for(let g=0;g<O;g++){const x=w[g],S=p(b[x],v[x]);if(S!==0)return S}return 0}}function i(p){const b=li(p),v=Ko(t,Hl(p,{threshold:0}));return(w,A)=>b(v(w),v(A))}const s=i(nn);function o(p,b){if(vr(p)){if(vr(b)){const v=Object.keys(p),w=Object.keys(b),A=Nb(v,w),O=A.length;for(let g=0;g<O;g++){const x=A[g];if(p[x]===b[x])continue;const j=(f[x]??a)(p[x],b[x]);if(j!==0)return j}return 0}return b===!0&&Pn(p)?0:1}return vr(b)?p===!0&&Pn(b)?0:-1:nn(p,b)}const a=Qt(u),l=zr(Ib,ci(r(a),li(u)),Tb);function u(p,b){return p===null?-1:b===null?1:l(p,b)}const c=Qt(o),d=pt(Pn,r(c)),m=Qt(i(o)),y=pt(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:pt(p=>p===!1,Kl),minLength:ui,minItems:ui,minProperties:ui,required:pt(Ho,s),enum:pt(Ho,i(u)),type:Qt((p,b)=>{const v=Array.isArray(p),w=Array.isArray(b);return!v&&!w?nn(p,b):s(v?p:[p],w?b:[b])}),items:pt(p=>!Array.isArray(p)&&Ye(p),ci(o,li(o))),anyOf:m,allOf:m,oneOf:m,properties:d,patternProperties:d,additionalProperties:y,additionalItems:y,dependencies:pt(Pn,r(Qt(ci(o,s))))};return{compareSchemaValues:u,compareSchemaDefinitions:o}}function Yo(t){return t}const Gl=(t,e)=>t?Gl(e%t,t):e,Pb=(t,e)=>Math.abs(t*e)/Gl(t,e);function $b(t,e){return t===e?t:`^(?=.*(?:${t}))(?=.*(?:${e})).*$`}function di(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 fi(t,e){return t||e}function Jo(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 Db(t){const e=new Map;for(const n of t)for(const r of n[0])e.set(r,n[1]);return e}function Tt(t,e,n){n===void 0||Ye(n)?delete t[e]:t[e]=n}const kb=["properties","patternProperties","additionalProperties"];function Zo(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 Xo=[[],[]];function Qo(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 Rb=["items","additionalItems"],Mb=["if","then","else"];function ea(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 hi(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 Nt(t,e,n){return[t,e,n]}function Ub(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 Lb=[Nt("minimum","maximum",t=>t.maximum>=t.minimum),Nt("exclusiveMinimum","maximum",t=>t.maximum>t.exclusiveMinimum),Nt("minimum","exclusiveMaximum",t=>t.exclusiveMaximum>t.minimum),Nt("exclusiveMinimum","exclusiveMaximum",t=>t.exclusiveMaximum>t.exclusiveMinimum),Nt("minLength","maxLength",t=>t.maxLength>=t.minLength),Nt("minItems","maxItems",t=>t.maxItems>=t.minItems),Nt("minProperties","maxProperties",t=>t.maxProperties>=t.minProperties)];function Bb({mergePatterns:t=$b,isSubRegExp:e=Object.is,intersectJson:n=Ab,deduplicateJsonSchemaDef:r=Yo,defaultMerger:i=Yo,assigners:s=[],checks:o=Lb,mergers:a}={}){function l(O){const g=O.length;let x=O[0];for(let S=1;S<g;S++){const j=v(x,O[S]);if(j===!1)return!1;Ye(j)||(x=j)}return x}function u(O,g,x,S,j,E,C){if(O.length=0,x===!1)return!1;if(O.push(x),j!==void 0){if(j===!1)return!1;O.push(j)}if(Qo(O,g,E))return!1;const I=O.length<2;if(C===!1){if(I)return;if(Qo(O,g,S))return!1}else I&&C!==void 0&&O.push(C);return O.length===1?O[0]:l(O)}function c(O,g,x,S,j,E){const C=x.length;if(C>0&&j!==!1)if(E)Object.assign(O,g);else for(let _=0;_<C;_++){const I=x[_];S.has(I)||(O[I]=v(g[I],j))}return O}const d=(O,{properties:g={},patternProperties:x,additionalProperties:S=!0},{properties:j={},patternProperties:E,additionalProperties:C=!0})=>{const _=Ye(S),I=Ye(C);if(_&&I)return Tt(O,"properties",w(g,j)),Tt(O,"patternProperties",x&&E?w(x,E):x??E),delete O.additionalProperties,O;const T=v(S,C);Tt(O,"additionalProperties",T);const N={},F=Object.keys(g),$=F.length,[k,B]=x?Zo(x):Xo,[U,Y]=E?Zo(E):Xo,ne=[],fe=new Set,ye=I?void 0:C;for(let z=0;z<$;z++){const re=F[z];fe.add(re);const oe=u(ne,re,g[re],k,j[re],U,ye);oe!==void 0&&(N[re]=oe)}const R=Object.keys(j),le=R.length,ee=_?void 0:S;for(let z=0;z<le;z++){const re=R[z];if(fe.has(re))continue;const oe=u(ne,re,j[re],U,void 0,k,ee);oe!==void 0&&(N[re]=oe)}Tt(O,"properties",N);let H={};const K=new Set;return B.length>0&&Y.length>0&&di(B,Y,(z,re)=>{e(z,re)&&K.add(z),e(re,z)&&K.add(re),H[t(z,re)]=v(x[z],E[re])}),H=c(H,x,B,K,C,I),H=c(H,E,Y,K,S,_),Tt(O,"patternProperties",H),O},m=(O,{items:g=[],additionalItems:x},{items:S=[],additionalItems:j})=>{const E=Array.isArray(g),C=Array.isArray(S),_=[];if(O.items=_,E&&C){const[I,T,N]=g.length<S.length?[g.length,x,S]:[S.length,j,g];let F=0;for(;F<I;F++)_.push(v(g[F],S[F]));if(T===!1)O.additionalItems=!1;else{const $=T===void 0||Ye(T);for(;F<N.length;F++)_.push($?N[F]:v(N[F],T));Tt(O,"additionalItems",x!==void 0&&j!==void 0?v(x,j):x??j)}}else if(E||C){const[I,T,N]=E?[g,S,x]:[S,g,j];Tt(O,"additionalItems",N&&v(N,T));for(let F=0;F<I.length;F++)_.push(v(I[F],T))}else delete O.additionalItems,O.items=v(g,S);return O},y=(O,g,x)=>{ea(O,g);const S=ea({},x);return O.allOf===void 0?O.allOf=[S]:O.allOf=O.allOf.concat(S),O};function f(O,g){const x=[];if(di(O,g,(S,j)=>{try{x.push(v(S,j))}catch{}}),x.length===0)throw new Error(`No valid schema combinations could be produced for "${JSON.stringify(O)}" and "${JSON.stringify(g)}"; the merged result is empty`);return r(x)}const p=Db([[kb,d],[Rb,m],[Mb,y],...s]),b=Ub(o);function v(O,g){if(O===!1||g===!1)return!1;if(Ye(O))return Ye(g)?!0:g;if(Ye(g))return O;let x={...O};const S=new Set,j=new Set,E=Object.keys(g),C=E.length;for(let _=0;_<C;_++){const I=E[_],T=g[I];if(T===void 0)continue;const N=b.get(I);if(N!==void 0){const B=N.length;for(let U=0;U<B;U++){const Y=N[U];O[Y.oppositeKey]!==void 0&&j.add(Y.check)}}const F=O[I];if(F===void 0){x[I]=T;continue}const $=p.get(I);if($){S.add($);continue}const k=A[I]??i;x[I]=k(F,T)}for(const _ of S)x=_(x,O,g);for(const _ of j)_(x);return x}const w=Jo(v),A={$id:i,$ref:i,$schema:i,$comment:i,$defs:w,definitions:w,type:(O,g)=>{if(O===g)return O;const x=Array.isArray(O),S=Array.isArray(g);if(!x&&!S){const j=hi(O,g);if(j!==void 0)return j}else if(x||S){const j=new Set;if(x&&S)di(O,g,(C,_)=>{const I=hi(C,_);I!==void 0&&j.add(I)});else{const C=x?O:g,_=x?g:O,I=C.length;for(let T=0;T<I;T++){const N=hi(_,C[T]);N!==void 0&&j.add(N)}}const E=j.size;if(E===1)return j.values().next().value;if(E>1)return Array.from(j)}throw new Error(`It is not possible to create an intersection of the following incompatible types: ${O.toString()}, ${g.toString()}`)},default:i,description:i,title:i,const:i,format:i,contentEncoding:i,contentMediaType:i,not:(O,g)=>{const x=r([O,g]);return x.length===1?x[0]:{anyOf:x}},pattern:t,readOnly:fi,writeOnly:fi,enum:(O,g)=>{const x=n(O,g);if(x.length===0)throw new Error(`Intersection of the following enums is empty: "${JSON.stringify(O)}", "${JSON.stringify(g)}"`);return x},anyOf:f,oneOf:f,allOf:(O,g)=>r(O.concat(g)),propertyNames:v,contains:v,dependencies:Jo((O,g)=>Array.isArray(O)?Array.isArray(g)?ai(O,g):v(g,{required:O}):Array.isArray(g)?v(O,{required:g}):v(O,g)),examples:(O,g)=>{if(!Array.isArray(O)||!Array.isArray(g))throw new Error(`Value of the 'examples' field should be an array, but got "${JSON.stringify(O)}" and "${JSON.stringify(g)}"`);return ai(O,g)},multipleOf:(O,g)=>{let x=1;for(;!Number.isInteger(O)||!Number.isInteger(g);)x*=10,O*=10,g*=10;return Pb(O,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:fi,required:ai,...a};return{mergeSchemaDefinitions:v,mergeArrayOfSchemaDefinitions:l}}function qb(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 Vb(t){return e=>t(qb(e))}const{compareSchemaDefinitions:zb,compareSchemaValues:Wb}=Fb(),{mergeArrayOfSchemaDefinitions:Hb}=Bb({intersectJson:Eb(Wb),deduplicateJsonSchemaDef:Hl(zb)}),Yl=Vb(Hb);function Ce(t,e,n={},r,i,s=!1){return Ze(t,e,n,r,void 0,void 0,i,s)[0]}function Kb(t,e,n,r,i,s,o){const{if:a,then:l,else:u,...c}=e,d=t.isValid(a,s||{},n);let m=[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&&(m=y.map(f=>lt(c,f))),m.flatMap(f=>Ze(t,f,n,s,r,i,o))}function Jl(t){return t.reduce((n,r)=>r.length>1?r.flatMap(i=>Dl(n.length,s=>[...n[s]].concat(i))):(n.forEach(i=>i.push(r[0])),n),[[]])}function Zl(t,e){return Object.keys(t.patternProperties).filter(n=>RegExp(n).test(e)).reduce((n,r)=>(ce(n,[r],t.patternProperties[r]),n),{})}function Gb(t,e,n,r,i,s,o,a){const l=Xl(t,e,n,r,i,s,o,a);if(l.length>1||l[0]!==e)return l;if(ss in e)return ec(t,e,n,r,i,s,o).flatMap(c=>Ze(t,c,n,s,r,i,o));if(Ot in e&&Array.isArray(e[Ot])){const u=e.allOf.map(d=>Ze(t,d,n,s,r,i,o));return Jl(u).map(d=>({...e,allOf:d}))}return[e]}function Xl(t,e,n,r,i,s,o,a){const l=St(e,n,i,void 0,a);return l!==e?Ze(t,l,n,s,r,i,o,a):[e]}function St(t,e,n,r,i){if(!V(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={...Gn(a,e,o),...l,[Mn]:a},de in s&&(o=s[de])}if(se in s){const a=[],l=db(s[se],(u,c,d)=>{const m=[...n];u[d]=St(c,e,m,o,i),a.push(m)},{});dy(n,Vl(sy(a))),s={...s,[se]:l}}if(an in s&&!Array.isArray(s.items)&&typeof s.items!="boolean"&&(s={...s,items:St(s.items,e,n,o,i)}),i){let a,l;Q in t&&Array.isArray(t[Q])?(a=Q,l=s[Q]):W in t&&Array.isArray(t[W])&&(a=W,l=s[W]),a&&l&&(s={...s,[a]:l.map(u=>St(u,e,n,o,i))})}return ie(t,s)?t:s}function Yb(t,e,n,r,i){const s={...e,properties:{...e.properties}},o=r&&V(r)?r:{};return Object.keys(o).forEach(a=>{if(!(a in s.properties)){if(Di in s){const l=Zl(s,a);if(!ge(l)){s.properties[a]=Ce(t,{[Ot]:Object.values(l)},n,D(o,[a]),i),ce(s.properties,[a,at],!0);return}}if(tn 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}:Q in s.additionalProperties||W in s.additionalProperties?l={type:"object",...s.additionalProperties}:l={type:Zn(D(o,[a]))}:l={type:Zn(D(o,[a]))},s.properties[a]=l,ce(s.properties,[a,at],!0)}else s.properties[a]={type:"null"},ce(s.properties,[a,at],!0)}}),s}function Jb(t){return Yl(t)}function Ze(t,e,n,r,i=!1,s=[],o,a){return V(e)?Gb(t,e,n,i,s,r,o,a).flatMap(u=>{var c;let d=u;if(os in d)return Kb(t,d,n,i,s,r,o);if(Ot 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):Jb(d),y.length&&(d.allOf=y)}catch(y){console.warn(`could not merge subschemas in allOf:
1
+ import{hO as Re,e8 as Hs,aG as L,b4 as _e,cW as Lt,e7 as Zi,ba as je,e5 as Or,ea as Ve,cX as nu,hP as pn,aF as ae,hQ as Xi,hR as Ks,hS as ru,ed as iu,hT as La,hU as su,hV as ou,hW as au,d$ as Ba,dF as lu,dT as cu,e4 as uu,e6 as Pr,f$ as du,c as we,j as h,P as fu,n as Gs,a5 as Qi,a as hu,b as nt,ak as mu,t as mr,dD as es,r as P,hX as qa,dE as pu,hY as gu,fI as yu,cv as Va,cw as ts,fS as bu,fT as xu,fU as vu,cx as Su,m as ns,C as wu,ge as ju,bx as Ou,I as Au,B as $r,h as rs,d as Eu,R as Cu,hv as _u}from"./index-Bm1K3DQC.js";import{E as za}from"./empty-state-DQ9zfSjj.js";import{b as Iu,d as Tu,n as Nu,A as Wa,S as Fu,C as Pu,u as $u}from"./use-mcp-client-WgWOA1hL.js";import{b as Du}from"./use-mcp-tools-BIB4FISj.js";import{A as Ha,a as ku}from"./agent-icon-Y_Y2D-pt.js";import{i as Ru}from"./Key01-EDnnJ_Gd.js";import{b as Mu,u as Uu,c as Lu}from"./use-connection-D3dXxxHo.js";import{U as On,b as Zr,c as Ys}from"./auth-Bh4_Y1Kc.js";import{e as Bu}from"./extract-connection-data-Cx40NvMQ.js";import{s as qu}from"./Plus-BHZhJmPA.js";import{S as Vu,b as zu,a as Wu,d as Hu,c as Ku}from"./select-Ce9OTxeg.js";import{R as Js}from"./index-mlqqyBRE.js";import{R as Gu,I as Yu,a as Ju}from"./index-CvZuGBnK.js";import{a as Zu,T as Xu,R as Qu,b as ed}from"./index-aAdwJpKX.js";import{_ as Bt}from"./index-BswXowEw.js";import{a as td,b as nd,P as rd}from"./popover-Dh3TtwDo.js";import{a as id,T as sd,b as od,c as ad}from"./tooltip-D0Aro8zv.js";import{c as ld,a as cd}from"./repository-binding-BUEX4lc5.js";import{i as ud}from"./SearchMd-MlMwcObI.js";import{u as dd}from"./use-mobile-BDHJ5g4G.js";import{u as fd}from"./use-navigate-to-agent-BJdqgQKH.js";import{a as hd}from"./schema-BUMYDfBQ.js";var md=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 pn&&(t.number=i.int())}}},pd=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=Ve(n):typeof n=="number"?t.number=Ve(n):typeof n=="boolean"?t.boolean=Ve(n):n===null?t.null=Zi():Array.isArray(n)?t.array=void 0:typeof n=="object"&&(t.object=void 0)}},gd=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?Zi():!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 Ve(t[0]);if(e==="string")return nu(t);if(e==="number"){const[n,r,...i]=t;return Or([Ve(n),Ve(r),...i.map(s=>Ve(s))])}return e==="boolean"?Or([Ve(!0),Ve(!1)]):!1}},yd=class{apply(t,e){const n=e;if(n.type==="string"&&n.format==="binary"&&n.contentEncoding==="binary"){let r=au();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}}},bd=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=L())}},xd=class{apply(t,e){const n=e;if(n.minLength!==void 0&&t.string!==!1){const r=t.string||L();r instanceof Xi&&(t.string=r.refine(i=>Array.from(i).length>=n.minLength,{message:`String must be at least ${n.minLength} characters long`}))}}},vd=class{apply(t,e){const n=e;if(n.maxLength!==void 0&&t.string!==!1){const r=t.string||L();r instanceof Xi&&(t.string=r.refine(i=>Array.from(i).length<=n.maxLength,{message:`String must be at most ${n.maxLength} characters long`}))}}},Sd=class{apply(t,e){const n=e;if(n.pattern&&t.string!==!1){const r=t.string||L();if(r instanceof Xi){const i=new RegExp(n.pattern);t.string=r.regex(i)}}}},wd=class{apply(t,e){const n=e;if(n.minimum!==void 0&&t.number!==!1){const r=t.number||_e();r instanceof pn&&(t.number=r.min(n.minimum))}}},jd=class{apply(t,e){const n=e;if(n.maximum!==void 0&&t.number!==!1){const r=t.number||_e();r instanceof pn&&(t.number=r.max(n.maximum))}}},Od=class{apply(t,e){const n=e;if(n.exclusiveMinimum!==void 0&&t.number!==!1){const r=t.number||_e();r instanceof pn&&(typeof n.exclusiveMinimum=="number"?t.number=r.gt(n.exclusiveMinimum):t.number=!1)}}},Ad=class{apply(t,e){const n=e;if(n.exclusiveMaximum!==void 0&&t.number!==!1){const r=t.number||_e();r instanceof pn&&(typeof n.exclusiveMaximum=="number"?t.number=r.lt(n.exclusiveMaximum):t.number=!1)}}},Ed=class{apply(t,e){const n=e;if(n.multipleOf!==void 0&&t.number!==!1){const r=t.number||_e();r instanceof pn&&(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}`}))}}},Cd=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=je(Re()))}},_d=class{apply(t,e){const n=e;n.minItems!==void 0&&t.array!==!1&&(t.array=(t.array||je(Re())).min(n.minItems))}},Id=class{apply(t,e){const n=e;n.maxItems!==void 0&&t.array!==!1&&(t.array=(t.array||je(Re())).max(n.maxItems))}},Td=class{apply(t,e){const n=e;if(t.array!==!1)if(Array.isArray(n.items))t.array=t.array||je(Re());else if(n.items&&typeof n.items!="boolean"&&!n.prefixItems){const r=Ie(n.items);let i=je(r);if(t.array&&t.array instanceof ru){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||je(Re()):t.array=je(Re()).max(0):typeof n.items=="boolean"&&n.items===!0?t.array=t.array||je(Re()):n.prefixItems&&(t.array=t.array||je(Re()))}},Nd=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=Ks([]):i=Ks(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}},Fd=class{apply(t,e){const n=e;t.object!==!1&&(n.properties||n.required||n.additionalProperties!==void 0)&&(t.object=t.object||ae({}).passthrough())}},Pd=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=ae({}).passthrough())}},$d=class{apply(t,e){const n=e;if(n.maxProperties!==void 0&&t.object!==!1){const r=t.object||ae({}).passthrough();t.object=r.refine(i=>Object.keys(i).length<=n.maxProperties,{message:`Object must have at most ${n.maxProperties} properties`})}}},Dd=class{apply(t,e){const n=e;if(n.minProperties!==void 0&&t.object!==!1){const r=t.object||ae({}).passthrough();t.object=r.refine(i=>Object.keys(i).length>=n.minProperties,{message:`Object must have at least ${n.minProperties} properties`})}}};function Wn(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)=>Wn(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)&&Wn(t[i],e[i]))}return!1}function kd(){return t=>{if(!Array.isArray(t))return!0;const e=[];return t.every(n=>e.some(i=>Wn(n,i))?!1:(e.push(n),!0))}}function Ar(t,e){return t.safeParse(e).success}var Rd=class{apply(t,e){if(!e.not)return t;const n=Ie(e.not);return t.refine(r=>!Ar(n,r),{message:"Value must not match the 'not' schema"})}},Md=class{apply(t,e){return e.uniqueItems!==!0?t:t.refine(kd(),{message:"Array items must be unique"})}},Ud=class{apply(t,e){return!e.allOf||e.allOf.length===0?t:e.allOf.map(r=>Ie(r)).reduce((r,i)=>La(r,i),t)}},Ld=class{apply(t,e){if(!e.anyOf||e.anyOf.length===0)return t;const n=e.anyOf.length===1?Ie(e.anyOf[0]):Or([Ie(e.anyOf[0]),Ie(e.anyOf[1]),...e.anyOf.slice(2).map(r=>Ie(r))]);return La(t,n)}},Bd=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"})}},qd=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(!Ar(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(!Ar(o,s[a]))return!1}}return!0},{message:"Array does not match prefixItems schema"})}return t}},Vd=class{apply(t,e){const n=e;if(!n.properties&&!n.required&&n.additionalProperties!==!1)return t;if(t instanceof su||t instanceof ou){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?ae(r):ae(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"})}},zd=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=>Wn(r,i)),{message:"Value must match one of the enum values"})}},Wd=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=>Wn(r,n),{message:"Value must equal the const value"})}},Hd=class{apply(t,e){return e.description&&(t=t.describe(e.description)),t}},Kd=class{apply(t,e){var n;const r=e;return!((n=r.required)!=null&&n.includes("__proto__"))||e.type!==void 0?t:Re().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))}},Gd=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)Ar(i,u)&&l++;return!(l<s||o!==void 0&&l>o)},{message:"Array must contain required items matching the schema"})}},Yd=class{apply(t,e){const{default:n}=e;return n===void 0||!t.safeParse(n).success?t:t.default(n)}},Jd=[new pd,new gd,new md,new yd,new bd,new Cd,new Pd,new xd,new vd,new Sd,new wd,new jd,new Od,new Ad,new Ed,new Nd,new _d,new Id,new Td,new $d,new Dd,new Fd],Zd=[new Kd,new zd,new Wd,new Ud,new Ld,new Bd,new qd,new Vd,new Gd,new Rd,new Md,new Yd,new Hd];function Ie(t){if(typeof t=="boolean")return t?Re():Hs();const e={};for(const i of Jd)i.apply(e,t);const n=[];if(e.string!==!1&&n.push(e.string||L()),e.number!==!1&&n.push(e.number||_e()),e.boolean!==!1&&n.push(e.boolean||Lt()),e.null!==!1&&n.push(e.null||Zi()),e.array!==!1&&n.push(e.array||je(Re())),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=Hs():n.length===1?r=n[0]:Object.keys(t).some(s=>s!=="$schema"&&s!=="title"&&s!=="description")?r=Or(n):r=Re();for(const i of Zd)r=i.apply(r,t);return r}class Zs 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(Xs(this),n)}[Symbol.for("Deno.customInspect")](e,n){return e(Xs(this),n)}}function Xd(t){const e=globalThis.DOMException;return typeof e=="function"?new e(t,"SyntaxError"):new SyntaxError(t)}function Ci(t){return t instanceof Error?"errors"in t&&Array.isArray(t.errors)?t.errors.map(Ci).join(", "):"cause"in t&&t.cause instanceof Error?`${t}: ${Ci(t.cause)}`:t.message:`${t}`}function Xs(t){return{type:t.type,message:t.message,code:t.code,defaultPrevented:t.defaultPrevented,cancelable:t.cancelable,timeStamp:t.timeStamp}}var Ka=t=>{throw TypeError(t)},is=(t,e,n)=>e.has(t)||Ka("Cannot "+n),Z=(t,e,n)=>(is(t,e,"read from private field"),n?n.call(t):e.get(t)),ve=(t,e,n)=>e.has(t)?Ka("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),pe=(t,e,n,r)=>(is(t,e,"write to private field"),e.set(t,n),n),ot=(t,e,n)=>(is(t,e,"access private method"),n),Fe,Ft,Jt,pr,Er,kn,en,Rn,bt,Zt,sn,Xt,Tn,qe,_i,Ii,Ti,Qs,Ni,Fi,Nn,Pi,$i;class gr extends EventTarget{constructor(e,n){var r,i;super(),ve(this,qe),this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,ve(this,Fe),ve(this,Ft),ve(this,Jt),ve(this,pr),ve(this,Er),ve(this,kn),ve(this,en),ve(this,Rn,null),ve(this,bt),ve(this,Zt),ve(this,sn,null),ve(this,Xt,null),ve(this,Tn,null),ve(this,Ii,async s=>{var o;Z(this,Zt).reset();const{body:a,redirected:l,status:u,headers:c}=s;if(u===204){ot(this,qe,Nn).call(this,"Server sent HTTP 204, not reconnecting",204),this.close();return}if(l?pe(this,Jt,new URL(s.url)):pe(this,Jt,void 0),u!==200){ot(this,qe,Nn).call(this,`Non-200 status code (${u})`,u);return}if(!(c.get("content-type")||"").startsWith("text/event-stream")){ot(this,qe,Nn).call(this,'Invalid content type, expected "text/event-stream"',u);return}if(Z(this,Fe)===this.CLOSED)return;pe(this,Fe,this.OPEN);const d=new Event("open");if((o=Z(this,Tn))==null||o.call(this,d),this.dispatchEvent(d),typeof a!="object"||!a||!("getReader"in a)){ot(this,qe,Nn).call(this,"Invalid response body, expected a web ReadableStream",u),this.close();return}const m=new TextDecoder,y=a.getReader();let f=!0;do{const{done:p,value:b}=await y.read();b&&Z(this,Zt).feed(m.decode(b,{stream:!p})),p&&(f=!1,Z(this,Zt).reset(),ot(this,qe,Pi).call(this))}while(f)}),ve(this,Ti,s=>{pe(this,bt,void 0),!(s.name==="AbortError"||s.type==="aborted")&&ot(this,qe,Pi).call(this,Ci(s))}),ve(this,Ni,s=>{typeof s.id=="string"&&pe(this,Rn,s.id);const o=new MessageEvent(s.event||"message",{data:s.data,origin:Z(this,Jt)?Z(this,Jt).origin:Z(this,Ft).origin,lastEventId:s.id||""});Z(this,Xt)&&(!s.event||s.event==="message")&&Z(this,Xt).call(this,o),this.dispatchEvent(o)}),ve(this,Fi,s=>{pe(this,kn,s)}),ve(this,$i,()=>{pe(this,en,void 0),Z(this,Fe)===this.CONNECTING&&ot(this,qe,_i).call(this)});try{if(e instanceof URL)pe(this,Ft,e);else if(typeof e=="string")pe(this,Ft,new URL(e,Qd()));else throw new Error("Invalid URL")}catch{throw Xd("An invalid or illegal string was specified")}pe(this,Zt,Iu({onEvent:Z(this,Ni),onRetry:Z(this,Fi)})),pe(this,Fe,this.CONNECTING),pe(this,kn,3e3),pe(this,Er,(r=n?.fetch)!=null?r:globalThis.fetch),pe(this,pr,(i=n?.withCredentials)!=null?i:!1),ot(this,qe,_i).call(this)}get readyState(){return Z(this,Fe)}get url(){return Z(this,Ft).href}get withCredentials(){return Z(this,pr)}get onerror(){return Z(this,sn)}set onerror(e){pe(this,sn,e)}get onmessage(){return Z(this,Xt)}set onmessage(e){pe(this,Xt,e)}get onopen(){return Z(this,Tn)}set onopen(e){pe(this,Tn,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,en)&&clearTimeout(Z(this,en)),Z(this,Fe)!==this.CLOSED&&(Z(this,bt)&&Z(this,bt).abort(),pe(this,Fe,this.CLOSED),pe(this,bt,void 0))}}Fe=new WeakMap,Ft=new WeakMap,Jt=new WeakMap,pr=new WeakMap,Er=new WeakMap,kn=new WeakMap,en=new WeakMap,Rn=new WeakMap,bt=new WeakMap,Zt=new WeakMap,sn=new WeakMap,Xt=new WeakMap,Tn=new WeakMap,qe=new WeakSet,_i=function(){pe(this,Fe,this.CONNECTING),pe(this,bt,new AbortController),Z(this,Er)(Z(this,Ft),ot(this,qe,Qs).call(this)).then(Z(this,Ii)).catch(Z(this,Ti))},Ii=new WeakMap,Ti=new WeakMap,Qs=function(){var t;const e={mode:"cors",redirect:"follow",headers:{Accept:"text/event-stream",...Z(this,Rn)?{"Last-Event-ID":Z(this,Rn)}:void 0},cache:"no-store",signal:(t=Z(this,bt))==null?void 0:t.signal};return"window"in globalThis&&(e.credentials=this.withCredentials?"include":"same-origin"),e},Ni=new WeakMap,Fi=new WeakMap,Nn=function(t,e){var n;Z(this,Fe)!==this.CLOSED&&pe(this,Fe,this.CLOSED);const r=new Zs("error",{code:e,message:t});(n=Z(this,sn))==null||n.call(this,r),this.dispatchEvent(r)},Pi=function(t,e){var n;if(Z(this,Fe)===this.CLOSED)return;pe(this,Fe,this.CONNECTING);const r=new Zs("error",{code:e,message:t});(n=Z(this,sn))==null||n.call(this,r),this.dispatchEvent(r),pe(this,en,setTimeout(Z(this,$i),Z(this,kn)))},$i=new WeakMap,gr.CONNECTING=0,gr.OPEN=1,gr.CLOSED=2;function Qd(){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 ef extends Error{constructor(e,n,r){super(`SSE error: ${n}`),this.code=e,this.event=r}}class tf{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=Tu(n?.fetch,n?.requestInit)}async _authThenStart(){if(!this._authProvider)throw new On("No auth provider");let e;try{e=await Zr(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 On;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=Nu(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 gr(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}=Ys(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 ef(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=Ba.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 On("No auth provider");if(await Zr(this._authProvider,{serverUrl:this._url,authorizationCode:e,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new On("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}=Ys(i);if(this._resourceMetadataUrl=o,this._scope=a,await Zr(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new On;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 nf="mcp";class rf{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,nf),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=Ba.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()})}}function sf(){const t=new Wa({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0,code:{optimize:!1}});return lu(t),t}class of{#e=sf();#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=af(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 af(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 lf=new of;var eo;(function(t){t.Completable="McpCompletable"})(eo||(eo={}));class cf extends Fu{constructor(e,n){super(e,n)}send(e,n){const r=uf(e);return r?.type==="emit"?(this.onmessage?.(r.message),Promise.resolve()):r?.type==="suppress"?Promise.resolve():super.send(e,n)}}function uf(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 df extends Pu{constructor(e,n){super(e,{jsonSchemaValidator:lf,...n})}async listTools(e,n){return await this.request({method:"tools/list",params:e},cu,n)}}const ff=async(t,e,n)=>{const r=hf(t.connection,e,n);if(!r)throw new Error("Unknown MCP connection type");const i=new df({name:t?.name??"MCP Client",version:"1.0.0"});return await i.connect(r),{client:i}},hf=(t,e,n)=>{if(t.type==="Websocket")return new rf(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 tf(new URL(t.url),s)}return new cf(new URL(t.url),{requestInit:{headers:i,signal:e,credentials:"include"}})},to=t=>{try{return JSON.parse(t)}catch{return t}},mf=500,Pt=new Map;function pf(t,e){if(Pt.set(t,e),Pt.size>mf){const n=Pt.keys().next().value;n!==void 0&&Pt.delete(n)}}const no=(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 gf(t){const e=n=>"connection"in t?ff({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:m}=await e(d),{structuredContent:y,isError:f,content:p}=await m.callTool({name:String(u),arguments:l});if(f){const v=p?.[0]?.text,w=typeof v=="string"?to(v):null,A=w?.code&&typeof t?.getErrorByStatusCode=="function"?t.getErrorByStatusCode(w.code,w.message,w.traceId):null;throw A||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"?to(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 Pt.has(u)||pf(u,s()),await Pt.get(u)}catch(c){console.error("Failed to list tools",c),Pt.delete(u);return}}async function a(){return(await o()??[]).map(u=>no(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 no(u,i)},i}})}new Proxy({},{get(t,e){return e==="toJSON"?null:e==="forConnection"?n=>ro({connection:n}):e==="forClient"?n=>ro({client:n}):globalThis[e]}});function ro(t){return gf(t)}function yf(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 bf=ae({specversion:Ve("1.0").describe("CloudEvents specification version"),id:L().describe("Unique identifier for this event (UUID recommended)"),source:L().describe("Connection ID of the event publisher"),type:L().describe("Event type (e.g., 'order.created', 'user.signup')"),time:L().datetime().optional().describe("Timestamp of when the event occurred (ISO 8601)"),subject:L().optional().describe("Subject/resource identifier (e.g., order ID, user ID)"),datacontenttype:L().optional().default("application/json").describe("Content type of the data attribute"),dataschema:L().url().optional().describe("URI to the schema for the data attribute"),data:uu().optional().describe("Event payload (any JSON value)")});ae({events:je(bf).min(1).describe("Batch of CloudEvents to process")});const xf=ae({success:Lt().optional().describe("Whether this event was processed successfully"),error:L().optional().describe("Error message for this event"),retryAfter:_e().int().positive().optional().describe("Re-deliver this event after this many ms")});ae({success:Lt().optional().describe("Batch success - applies to events not in results"),error:L().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:Pr(L(),xf).optional().describe("Per-event results keyed by event ID")});const vf=ae({type:Ve("string"),enum:je(L()).optional(),description:L().optional()}),Sf=ae({type:L(),description:L(),paramsSchema:Pr(L(),vf)});ae({});ae({triggers:je(Sf)});ae({type:L(),params:Pr(L(),L()),enabled:Lt(),callbackUrl:du().optional(),callbackToken:L().min(1).optional()});ae({success:Lt()});ae({prefix:L().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:L().optional().describe("Token for pagination from previous response"),delimiter:L().optional().describe("Delimiter for grouping keys (typically '/'). When set, commonPrefixes returns folder paths.")});ae({objects:je(ae({key:L().describe("Object key/path"),size:_e().describe("Object size in bytes"),lastModified:L().describe("Last modified timestamp"),etag:L().describe("Entity tag for the object")})),nextContinuationToken:L().optional().describe("Token for fetching next page of results"),isTruncated:Lt().describe("Whether there are more results available"),commonPrefixes:je(L()).optional().describe("Folder paths when delimiter is used (e.g., ['photos/2024/', 'photos/2025/'])")});ae({key:L().describe("Object key/path to get metadata for")});ae({contentType:L().optional().describe("MIME type of the object"),contentLength:_e().describe("Size of the object in bytes"),lastModified:L().describe("Last modified timestamp"),etag:L().describe("Entity tag for the object"),metadata:Pr(L(),L()).optional().describe("Custom metadata key-value pairs")});ae({key:L().describe("Object key/path to generate URL for"),expiresIn:_e().optional().describe("URL expiration time in seconds (default: from state config or 3600)")});ae({url:L().describe("Presigned URL for downloading the object"),expiresIn:_e().describe("Expiration time in seconds that was used")});ae({key:L().describe("Object key/path for the upload"),expiresIn:_e().optional().describe("URL expiration time in seconds (default: from state config or 3600)"),contentType:L().optional().describe("MIME type for the object being uploaded")});ae({url:L().describe("Presigned URL for uploading the object"),expiresIn:_e().describe("Expiration time in seconds that was used")});ae({key:L().describe("Object key/path to delete")});ae({success:Lt().describe("Whether the deletion was successful"),key:L().describe("The key that was deleted")});ae({keys:je(L()).max(1e3).describe("Array of object keys/paths to delete (max 1000)")});ae({deleted:je(L()).describe("Array of successfully deleted keys"),errors:je(ae({key:L(),message:L()})).describe("Array of errors for failed deletions")});const wf={"@deco/llm":"LLMS","@deco/trigger":"TRIGGER","@deco/object-storage":"OBJECT_STORAGE","@deco/brand":"BRAND"};function jf(t){if(t)return wf[t]}function Uj(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 yf(i).isImplementedBy(r)}function Lj(t){const e=we.c(7),{children:n,leading:r}=t;let i;e[0]!==r?(i=r&&h.jsx(fu.Toolbar.Left.Portal,{fallback:r,children:r}),e[0]=r,e[1]=i):i=e[1];let s;e[2]!==n?(s=h.jsx(Gs.Content,{children:n}),e[2]=n,e[3]=s):s=e[3];let o;return e[4]!==i||e[5]!==s?(o=h.jsxs(Gs,{children:[i,s]}),e[4]=i,e[5]=s,e[6]=o):o=e[6],o}function Of(){const t=we.c(9),{org:e}=Qi(),{data:n}=hu.useSession(),r=Mu(),i=nt(),s=mu();let o;t[0]!==r.create||t[1]!==e||t[2]!==n||t[3]!==s||t[4]!==i?(o=async u=>{if(!e||!n?.user?.id){mr.error(i("details.mcpConfigurationForm.notAuthenticated"));return}const{item:c}=await s.call("COLLECTION_REGISTRY_APP_GET",{name:u});if(!c){mr.error(i("details.mcpConfigurationForm.registryItemNotFound",{bindingType:u}));return}const d=Bu(c,e.id,n.user.id),m=d.connection_type==="STDIO",y=!!d.connection_url,f=m&&d.connection_headers&&typeof d.connection_headers=="object"&&"command"in d.connection_headers;if(!y&&!f){mr.error(i("details.mcpConfigurationForm.registryItemNotConnectable"));return}return await r.create.mutateAsync(d),{id:d.id,connection:d}},t[0]=r.create,t[1]=e,t[2]=n,t[3]=s,t[4]=i,t[5]=o):o=t[5];const a=o;let l;return t[6]!==r.create.isPending||t[7]!==a?(l={installByBinding:a,isInstalling:r.create.isPending},t[6]=r.create.isPending,t[7]=a,t[8]=l):l=t[8],l}function V(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 Af(t){return t.additionalItems===!0&&console.warn("additionalItems=true is currently not supported"),V(t.additionalItems)}function io(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 at="__additional_property",tn="additionalProperties",Ot="allOf",Q="anyOf",Ne="const",Dt="default",ss="dependencies",Ef="enum",Ee="__errors",de="$id",os="if",an="items",Cf="_$junk_option_schema_id$_",yr="$name",W="oneOf",Di="patternProperties",se="properties",Xr="readonly",Ga="required",Cr="submitButtonOptions",ue="$ref",Mn="__rjsf_ref",Fn="$schema",Ya="root",Ja="_",_f=["discriminator","propertyName"],so="formContext",If="layoutGridLookupMap",as="__rjsf_additionalProperties",Za="__rjsf_rootSchema",Tf="ui:field",ls="ui:widget",vt="ui:options",ki="ui:globalOptions",Nf="ui:definitions",Ff="https://json-schema.org/draft/2019-09/schema",br="https://json-schema.org/draft/2020-12/schema";function M(t={},e={}){return t?Object.keys(t).filter(n=>n.startsWith("ui:")).reduce((n,r)=>{const i=t[r];return r===ls&&V(i)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),n):r===vt&&V(i)?{...n,...i}:{...n,[r.substring(3)]:i}},{...e}):{...e}}function Xa(t,e={},n){if(!(t.additionalProperties||t.patternProperties))return!1;const{expandable:r=!0}=M(e);return r===!1?r:t.maxProperties!==void 0&&n?Object.keys(n).length<t.maxProperties:!0}var Qa=typeof global=="object"&&global&&global.Object===Object&&global,Pf=typeof self=="object"&&self&&self.Object===Object&&self,rt=Qa||Pf||Function("return this")(),Me=rt.Symbol,el=Object.prototype,$f=el.hasOwnProperty,Df=el.toString,An=Me?Me.toStringTag:void 0;function kf(t){var e=$f.call(t,An),n=t[An];try{t[An]=void 0;var r=!0}catch{}var i=Df.call(t);return r&&(e?t[An]=n:delete t[An]),i}var Rf=Object.prototype,Mf=Rf.toString;function Uf(t){return Mf.call(t)}var Lf="[object Null]",Bf="[object Undefined]",oo=Me?Me.toStringTag:void 0;function ct(t){return t==null?t===void 0?Bf:Lf:oo&&oo in Object(t)?kf(t):Uf(t)}function tl(t,e){return function(n){return t(e(n))}}var Dr=tl(Object.getPrototypeOf,Object);function Ue(t){return t!=null&&typeof t=="object"}var qf="[object Object]",Vf=Function.prototype,zf=Object.prototype,nl=Vf.toString,Wf=zf.hasOwnProperty,Hf=nl.call(Object);function At(t){if(!Ue(t)||ct(t)!=qf)return!1;var e=Dr(t);if(e===null)return!0;var n=Wf.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&nl.call(n)==Hf}function Ri(t){const e={[Ee]:[],addError(n){this[Ee].push(n)}};if(Array.isArray(t))return t.reduce((n,r,i)=>({...n,[i]:Ri(r)}),e);if(At(t)){const n=t;return Object.keys(n).reduce((r,i)=>({...r,[i]:Ri(n[i])}),e)}return e}var Se=Array.isArray,Kf="[object Symbol]";function Qn(t){return typeof t=="symbol"||Ue(t)&&ct(t)==Kf}var Gf=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Yf=/^\w*$/;function cs(t,e){if(Se(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||Qn(t)?!0:Yf.test(t)||!Gf.test(t)||e!=null&&t in Object(e)}function te(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Jf="[object AsyncFunction]",Zf="[object Function]",Xf="[object GeneratorFunction]",Qf="[object Proxy]";function er(t){if(!te(t))return!1;var e=ct(t);return e==Zf||e==Xf||e==Jf||e==Qf}var Qr=rt["__core-js_shared__"],ao=(function(){var t=/[^.]+$/.exec(Qr&&Qr.keys&&Qr.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function eh(t){return!!ao&&ao in t}var th=Function.prototype,nh=th.toString;function qt(t){if(t!=null){try{return nh.call(t)}catch{}try{return t+""}catch{}}return""}var rh=/[\\^$.*+?()[\]{}|]/g,ih=/^\[object .+?Constructor\]$/,sh=Function.prototype,oh=Object.prototype,ah=sh.toString,lh=oh.hasOwnProperty,ch=RegExp("^"+ah.call(lh).replace(rh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function uh(t){if(!te(t)||eh(t))return!1;var e=er(t)?ch:ih;return e.test(qt(t))}function dh(t,e){return t?.[e]}function Vt(t,e){var n=dh(t,e);return uh(n)?n:void 0}var Hn=Vt(Object,"create");function fh(){this.__data__=Hn?Hn(null):{},this.size=0}function hh(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var mh="__lodash_hash_undefined__",ph=Object.prototype,gh=ph.hasOwnProperty;function yh(t){var e=this.__data__;if(Hn){var n=e[t];return n===mh?void 0:n}return gh.call(e,t)?e[t]:void 0}var bh=Object.prototype,xh=bh.hasOwnProperty;function vh(t){var e=this.__data__;return Hn?e[t]!==void 0:xh.call(e,t)}var Sh="__lodash_hash_undefined__";function wh(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Hn&&e===void 0?Sh:e,this}function kt(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])}}kt.prototype.clear=fh;kt.prototype.delete=hh;kt.prototype.get=yh;kt.prototype.has=vh;kt.prototype.set=wh;function jh(){this.__data__=[],this.size=0}function tr(t,e){return t===e||t!==t&&e!==e}function kr(t,e){for(var n=t.length;n--;)if(tr(t[n][0],e))return n;return-1}var Oh=Array.prototype,Ah=Oh.splice;function Eh(t){var e=this.__data__,n=kr(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():Ah.call(e,n,1),--this.size,!0}function Ch(t){var e=this.__data__,n=kr(e,t);return n<0?void 0:e[n][1]}function _h(t){return kr(this.__data__,t)>-1}function Ih(t,e){var n=this.__data__,r=kr(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,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=jh;ut.prototype.delete=Eh;ut.prototype.get=Ch;ut.prototype.has=_h;ut.prototype.set=Ih;var Kn=Vt(rt,"Map");function Th(){this.size=0,this.__data__={hash:new kt,map:new(Kn||ut),string:new kt}}function Nh(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Rr(t,e){var n=t.__data__;return Nh(e)?n[typeof e=="string"?"string":"hash"]:n.map}function Fh(t){var e=Rr(this,t).delete(t);return this.size-=e?1:0,e}function Ph(t){return Rr(this,t).get(t)}function $h(t){return Rr(this,t).has(t)}function Dh(t,e){var n=Rr(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function dt(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])}}dt.prototype.clear=Th;dt.prototype.delete=Fh;dt.prototype.get=Ph;dt.prototype.has=$h;dt.prototype.set=Dh;var kh="Expected a function";function us(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(kh);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(us.Cache||dt),n}us.Cache=dt;var Rh=500;function Mh(t){var e=us(t,function(r){return n.size===Rh&&n.clear(),r}),n=e.cache;return e}var Uh=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Lh=/\\(\\)?/g,rl=Mh(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(Uh,function(n,r,i,s){e.push(i?s.replace(Lh,"$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 lo=Me?Me.prototype:void 0,co=lo?lo.toString:void 0;function il(t){if(typeof t=="string")return t;if(Se(t))return gn(t,il)+"";if(Qn(t))return co?co.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function ds(t){return t==null?"":il(t)}function yn(t,e){return Se(t)?t:cs(t,e)?[t]:rl(ds(t))}function Et(t){if(typeof t=="string"||Qn(t))return t;var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function Mr(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:Mr(t,e);return r===void 0?n:r}const{getOwnPropertyNames:Bh,getOwnPropertySymbols:qh}=Object,{hasOwnProperty:Vh}=Object.prototype;function ei(t,e){return function(r,i,s){return t(r,i,s)&&e(r,i,s)}}function cr(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 uo(t){return Bh(t).concat(qh(t))}const zh=Object.hasOwn||((t,e)=>Vh.call(t,e)),Wh="__v",Hh="__o",Kh="_owner",{getOwnPropertyDescriptor:fo,keys:ho}=Object,zt=Object.is||function(e,n){return e===n?e!==0||1/e===1/n:e!==e&&n!==n};function Gh(t,e){return t===e}function Yh(t,e){return t.byteLength===e.byteLength&&_r(new Uint8Array(t),new Uint8Array(e))}function Jh(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 Zh(t,e){return t.byteLength===e.byteLength&&_r(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}function Xh(t,e){return zt(t.getTime(),e.getTime())}function Qh(t,e){return t.name===e.name&&t.message===e.message&&t.cause===e.cause&&t.stack===e.stack}function mo(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 m=o.value,y=a.value;if(n.equals(m[0],y[0],l,d,t,e,n)&&n.equals(m[1],y[1],m[0],y[0],t,e,n)){c=i[d]=!0;break}d++}if(!c)return!1;l++}return!0}function em(t,e,n){const r=ho(t);let i=r.length;if(ho(e).length!==i)return!1;for(;i-- >0;)if(!sl(t,e,n,r[i]))return!1;return!0}function En(t,e,n){const r=uo(t);let i=r.length;if(uo(e).length!==i)return!1;let s,o,a;for(;i-- >0;)if(s=r[i],!sl(t,e,n,s)||(o=fo(t,s),a=fo(e,s),(o||a)&&(!o||!a||o.configurable!==a.configurable||o.enumerable!==a.enumerable||o.writable!==a.writable)))return!1;return!0}function tm(t,e){return zt(t.valueOf(),e.valueOf())}function nm(t,e){return t.source===e.source&&t.flags===e.flags}function po(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 _r(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 rm(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 sl(t,e,n,r){return(r===Kh||r===Hh||r===Wh)&&(t.$$typeof||e.$$typeof)?!0:zh(e,r)&&n.equals(t[r],e[r],r,r,t,e,n)}const im=Object.prototype.toString;function sm(t){const e=cm(t),{areArraysEqual:n,areDatesEqual:r,areFunctionsEqual:i,areMapsEqual:s,areNumbersEqual:o,areObjectsEqual:a,areRegExpsEqual:l,areSetsEqual:u,getUnsupportedCustomComparator:c}=t;return function(m,y,f){if(m===y)return!0;if(m==null||y==null)return!1;const p=typeof m;if(p!==typeof y)return!1;if(p!=="object")return p==="number"||p==="bigint"?o(m,y,f):p==="function"?i(m,y,f):!1;const b=m.constructor;if(b!==y.constructor)return!1;if(b===Object)return a(m,y,f);if(b===Array)return n(m,y,f);if(b===Date)return r(m,y,f);if(b===RegExp)return l(m,y,f);if(b===Map)return s(m,y,f);if(b===Set)return u(m,y,f);if(b===Promise)return!1;if(Array.isArray(m))return n(m,y,f);const v=im.call(m),w=e[v];if(w)return w(m,y,f);const A=c&&c(m,y,f,v);return A?A(m,y,f):!1}}function om({circular:t,createCustomConfig:e,strict:n}){let r={areArrayBuffersEqual:Yh,areArraysEqual:n?En:Jh,areDataViewsEqual:Zh,areDatesEqual:Xh,areErrorsEqual:Qh,areFunctionsEqual:Gh,areMapsEqual:n?ei(mo,En):mo,areNumbersEqual:zt,areObjectsEqual:n?En:em,arePrimitiveWrappersEqual:tm,areRegExpsEqual:nm,areSetsEqual:n?ei(po,En):po,areTypedArraysEqual:n?ei(_r,En):_r,areUrlsEqual:rm,getUnsupportedCustomComparator:void 0};if(e&&(r=Object.assign({},r,e(r))),t){const i=cr(r.areArraysEqual),s=cr(r.areMapsEqual),o=cr(r.areObjectsEqual),a=cr(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:i,areMapsEqual:s,areObjectsEqual:o,areSetsEqual:a})}return r}function am(t){return function(e,n,r,i,s,o,a){return t(e,n,a)}}function lm({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 cm({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:m,areUrlsEqual:y}){return{"[object Arguments]":l,"[object Array]":e,"[object ArrayBuffer]":t,"[object AsyncGeneratorFunction]":s,"[object BigInt]":a,"[object BigInt64Array]":m,"[object BigUint64Array]":m,"[object Boolean]":u,"[object DataView]":n,"[object Date]":r,"[object Error]":i,"[object Float16Array]":m,"[object Float32Array]":m,"[object Float64Array]":m,"[object Function]":s,"[object GeneratorFunction]":s,"[object Int8Array]":m,"[object Int16Array]":m,"[object Int32Array]":m,"[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]":m,"[object Uint8ClampedArray]":m,"[object Uint16Array]":m,"[object Uint32Array]":m}}ft();ft({strict:!0});ft({circular:!0});ft({circular:!0,strict:!0});ft({createInternalComparator:()=>zt});ft({strict:!0,createInternalComparator:()=>zt});ft({circular:!0,createInternalComparator:()=>zt});ft({circular:!0,createInternalComparator:()=>zt,strict:!0});function ft(t={}){const{circular:e=!1,createInternalComparator:n,createState:r,strict:i=!1}=t,s=om(t),o=sm(s),a=n?n(o):am(o);return lm({circular:e,comparator:o,createState:r,equals:a,strict:i})}const ie=ft({circular:!0,createCustomConfig:()=>({areFunctionsEqual(t,e){return typeof e=="function"}})});var Cn={exports:{}},ti,go;function ol(){if(go)return ti;go=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="",S=0,j=0;for(j=0;j<g.length;j++)if(S=g[j].charCodeAt(0),S!==48){if(!(S>=48&&S<=57||S>=65&&S<=70||S>=97&&S<=102))return"";x+=g[j];break}for(j+=1;j<g.length;j++){if(S=g[j].charCodeAt(0),!(S>=48&&S<=57||S>=65&&S<=70||S>=97&&S<=102))return"";x+=g[j]}return x}const o=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function a(g){return g.length=0,!0}function l(g,x,S){if(g.length){const j=s(g);if(j!=="")x.push(j);else return S.error=!0,!1;g.length=0}return!0}function u(g){let x=0;const S={error:!1,address:"",zone:""},j=[],E=[];let C=!1,_=!1,I=l;for(let T=0;T<g.length;T++){const N=g[T];if(!(N==="["||N==="]"))if(N===":"){if(C===!0&&(_=!0),!I(E,j,S))break;if(++x>7){S.error=!0;break}T>0&&g[T-1]===":"&&(C=!0),j.push(":");continue}else if(N==="%"){if(!I(E,j,S))break;I=a}else{E.push(N);continue}}return E.length&&(I===a?S.zone=E.join(""):_?j.push(E.join("")):j.push(s(E))),S.address=j.join(""),S}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 S=x.address,j=x.address;return x.zone&&(S+="%"+x.zone,j+="%25"+x.zone),{host:S,isIPV6:!0,escapedHost:j}}}function d(g,x){let S=0;for(let j=0;j<g.length;j++)g[j]===x&&S++;return S}function m(g){let x=g;const S=[];let j=-1,E=0;for(;E=x.length;){if(E===1){if(x===".")break;if(x==="/"){S.push("/");break}else{S.push(x);break}}else if(E===2){if(x[0]==="."){if(x[1]===".")break;if(x[1]==="/"){x=x.slice(2);continue}}else if(x[0]==="/"&&(x[1]==="."||x[1]==="/")){S.push("/");break}}else if(E===3&&x==="/.."){S.length!==0&&S.pop(),S.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),S.length!==0&&S.pop();continue}}if((j=x.indexOf("/",1))===-1){S.push(x);break}else S.push(x.slice(0,j)),x=x.slice(j)}return S.join("")}const y={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},f=/[@/?#:]/g,p=/[@/?#]/g;function b(g,x){const S=x?p:f;return S.lastIndex=0,g.replace(S,j=>y[j])}function v(g,x=!1){if(g.indexOf("%")===-1)return g;let S="";for(let j=0;j<g.length;j++){if(g[j]==="%"&&j+2<g.length){const E=g.slice(j+1,j+3);if(n(E)){const C=E.toUpperCase(),_=String.fromCharCode(parseInt(C,16));x&&r(_)?S+=_:S+="%"+C,j+=2;continue}}S+=g[j]}return S}function w(g){let x="";for(let S=0;S<g.length;S++){if(g[S]==="%"&&S+2<g.length){const j=g.slice(S+1,S+3);if(n(j)){const E=j.toUpperCase(),C=String.fromCharCode(parseInt(E,16));C!=="."&&r(C)?x+=C:x+="%"+E,S+=2;continue}}i(g[S])?x+=g[S]:x+=escape(g[S])}return x}function A(g){let x="";for(let S=0;S<g.length;S++){if(g[S]==="%"&&S+2<g.length){const j=g.slice(S+1,S+3);if(n(j)){x+="%"+j.toUpperCase(),S+=2;continue}}x+=escape(g[S])}return x}function O(g){const x=[];if(g.userinfo!==void 0&&(x.push(g.userinfo),x.push("@")),g.host!==void 0){let S=unescape(g.host);if(!e(S)){const j=c(S);j.isIPV6===!0?S=`[${j.escapedHost}]`:S=b(S,!1)}x.push(S)}return(typeof g.port=="number"||typeof g.port=="string")&&(x.push(":"),x.push(String(g.port))),x.length?x.join(""):void 0}return ti={nonSimpleDomain:o,recomposeAuthority:O,reescapeHostDelimiters:b,normalizePercentEncoding:v,normalizePathEncoding:w,escapePreservingEscapes:A,removeDotSegments:m,isIPv4:e,isUUID:t,normalizeIPv6:c,stringArrayToHexStripped:s},ti}var ni,yo;function um(){if(yo)return ni;yo=1;const{isUUID:t}=ol(),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,S]=g.resourceName.split("?");g.path=x&&x!=="/"?x:void 0,g.query=S,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 S=g.path.match(e);if(S){const j=x.scheme||g.scheme||"urn";g.nid=S[1].toLowerCase(),g.nss=S[2];const E=`${j}:${x.nid||g.nid}`,C=O(E);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 S=x.scheme||g.scheme||"urn",j=g.nid.toLowerCase(),E=`${S}:${x.nid||j}`,C=O(E);C&&(g=C.serialize(g,x));const _=g,I=g.nss;return _.path=`${j||x.nid}:${I}`,x.skipEscape=!0,_}function d(g,x){const S=g;return S.uuid=S.nss,S.nss=void 0,!x.tolerant&&(!S.uuid||!t(S.uuid))&&(S.error=S.error||"UUID is not valid."),S}function m(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},A={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:m,skipNormalize:!0}};Object.setPrototypeOf(A,null);function O(g){return g&&(A[g]||A[g.toLowerCase()])||void 0}return ni={wsIsSecure:i,SCHEMES:A,isValidSchemeName:r,getSchemeHandler:O},ni}var bo;function dm(){if(bo)return Cn.exports;bo=1;const{normalizeIPv6:t,removeDotSegments:e,recomposeAuthority:n,normalizePercentEncoding:r,normalizePathEncoding:i,escapePreservingEscapes:s,reescapeHostDelimiters:o,isIPv4:a,nonSimpleDomain:l}=ol(),{SCHEMES:u,getSchemeHandler:c}=um();function d(j,E){return typeof j=="string"?j=O(j,E):typeof j=="object"&&(j=A(p(j,E),E)),j}function m(j,E,C){const _=C?Object.assign({scheme:"null"},C):{scheme:"null"},I=y(A(j,_),A(E,_),_,!0);return _.skipEscape=!0,p(I,_)}function y(j,E,C,_){const I={};return _||(j=A(p(j,C),C),E=A(p(E,C),C)),C=C||{},!C.tolerant&&E.scheme?(I.scheme=E.scheme,I.userinfo=E.userinfo,I.host=E.host,I.port=E.port,I.path=e(E.path||""),I.query=E.query):(E.userinfo!==void 0||E.host!==void 0||E.port!==void 0?(I.userinfo=E.userinfo,I.host=E.host,I.port=E.port,I.path=e(E.path||""),I.query=E.query):(E.path?(E.path[0]==="/"?I.path=e(E.path):((j.userinfo!==void 0||j.host!==void 0||j.port!==void 0)&&!j.path?I.path="/"+E.path:j.path?I.path=j.path.slice(0,j.path.lastIndexOf("/")+1)+E.path:I.path=E.path,I.path=e(I.path)),I.query=E.query):(I.path=j.path,E.query!==void 0?I.query=E.query:I.query=j.query),I.userinfo=j.userinfo,I.host=j.host,I.port=j.port),I.scheme=j.scheme),I.fragment=E.fragment,I}function f(j,E,C){const _=x(j,C),I=x(E,C);return _!==void 0&&I!==void 0&&_.toLowerCase()===I.toLowerCase()}function p(j,E){const C={host:j.host,scheme:j.scheme,userinfo:j.userinfo,port:j.port,path:j.path,query:j.query,nid:j.nid,nss:j.nss,uuid:j.uuid,fragment:j.fragment,reference:j.reference,resourceName:j.resourceName,secure:j.secure,error:""},_=Object.assign({},E),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 N=n(C);if(N!==void 0&&(_.reference!=="suffix"&&I.push("//"),I.push(N),C.path&&C.path[0]!=="/"&&I.push("/")),C.path!==void 0){let F=C.path;!_.absolutePath&&(!T||!T.absolutePath)&&(F=e(F)),N===void 0&&F[0]==="/"&&F[1]==="/"&&(F="/%2F"+F.slice(2)),I.push(F)}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(j,E){if(E[2]!==void 0&&j.path&&j.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof j.port=="number"&&(j.port<0||j.port>65535))return"URI port is malformed."}function w(j,E){const C=Object.assign({},E),_={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?j=C.scheme+":"+j:j="//"+j);const N=j.match(b);if(N){_.scheme=N[1],_.userinfo=N[3],_.host=N[4],_.port=parseInt(N[5],10),_.path=N[6]||"",_.query=N[7],_.fragment=N[8],isNaN(_.port)&&(_.port=N[5]);const F=v(_,N);if(F!==void 0&&(_.error=_.error||F,I=!0),_.host)if(a(_.host)===!1){const B=t(_.host);_.host=B.host.toLowerCase(),T=B.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)&&(j.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 A(j,E){return w(j,E).parsed}function O(j,E){return g(j,E).normalized}function g(j,E){const{parsed:C,malformedAuthorityOrPort:_}=w(j,E);return{normalized:_?j:p(C,E),malformedAuthorityOrPort:_}}function x(j,E){if(typeof j=="string"){const{normalized:C,malformedAuthorityOrPort:_}=g(j,E);return _?void 0:C}if(typeof j=="object")return p(j,E)}const S={SCHEMES:u,normalize:d,resolve:m,resolveComponent:y,equal:f,serialize:p,parse:A};return Cn.exports=S,Cn.exports.default=S,Cn.exports.fastUri=S,Cn.exports}var fm=dm();const fs=es(fm);var _n={},xo;function hm(){if(xo)return _n;xo=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 m,y,f=1,p=c.length;f<p;){if(c[f]==="constructor"||c[f]==="prototype"||c[f]==="__proto__")return u;if(m=r(c[f++]),y=p>f,typeof u[m]>"u"&&(Array.isArray(u)&&m==="-"&&(m=u.length),y&&(c[f]!==""&&c[f]<1/0||c[f]==="-"?u[m]=[]:u[m]={})),!y)break;u=u[m]}var b=u[m];return d===void 0?delete u[m]:u[m]=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 m=1;m<d;){if(u=u[r(c[m++])],d===m)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,m){return a(d,c,m)}}}return _n.get=o,_n.set=a,_n.compile=l,_n}var mm=hm();const ri=es(mm);var pm=Object.prototype;function Ur(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||pm;return t===n}var gm=tl(Object.keys,Object),ym=Object.prototype,bm=ym.hasOwnProperty;function al(t){if(!Ur(t))return gm(t);var e=[];for(var n in Object(t))bm.call(t,n)&&n!="constructor"&&e.push(n);return e}var Mi=Vt(rt,"DataView"),Ui=Vt(rt,"Promise"),on=Vt(rt,"Set"),Li=Vt(rt,"WeakMap"),vo="[object Map]",xm="[object Object]",So="[object Promise]",wo="[object Set]",jo="[object WeakMap]",Oo="[object DataView]",vm=qt(Mi),Sm=qt(Kn),wm=qt(Ui),jm=qt(on),Om=qt(Li),ke=ct;(Mi&&ke(new Mi(new ArrayBuffer(1)))!=Oo||Kn&&ke(new Kn)!=vo||Ui&&ke(Ui.resolve())!=So||on&&ke(new on)!=wo||Li&&ke(new Li)!=jo)&&(ke=function(t){var e=ct(t),n=e==xm?t.constructor:void 0,r=n?qt(n):"";if(r)switch(r){case vm:return Oo;case Sm:return vo;case wm:return So;case jm:return wo;case Om:return jo}return e});var Am="[object Arguments]";function Ao(t){return Ue(t)&&ct(t)==Am}var ll=Object.prototype,Em=ll.hasOwnProperty,Cm=ll.propertyIsEnumerable,ln=Ao((function(){return arguments})())?Ao:function(t){return Ue(t)&&Em.call(t,"callee")&&!Cm.call(t,"callee")},_m=9007199254740991;function hs(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=_m}function Wt(t){return t!=null&&hs(t.length)&&!er(t)}function Im(){return!1}var cl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Eo=cl&&typeof module=="object"&&module&&!module.nodeType&&module,Tm=Eo&&Eo.exports===cl,Co=Tm?rt.Buffer:void 0,Nm=Co?Co.isBuffer:void 0,Rt=Nm||Im,Fm="[object Arguments]",Pm="[object Array]",$m="[object Boolean]",Dm="[object Date]",km="[object Error]",Rm="[object Function]",Mm="[object Map]",Um="[object Number]",Lm="[object Object]",Bm="[object RegExp]",qm="[object Set]",Vm="[object String]",zm="[object WeakMap]",Wm="[object ArrayBuffer]",Hm="[object DataView]",Km="[object Float32Array]",Gm="[object Float64Array]",Ym="[object Int8Array]",Jm="[object Int16Array]",Zm="[object Int32Array]",Xm="[object Uint8Array]",Qm="[object Uint8ClampedArray]",ep="[object Uint16Array]",tp="[object Uint32Array]",me={};me[Km]=me[Gm]=me[Ym]=me[Jm]=me[Zm]=me[Xm]=me[Qm]=me[ep]=me[tp]=!0;me[Fm]=me[Pm]=me[Wm]=me[$m]=me[Hm]=me[Dm]=me[km]=me[Rm]=me[Mm]=me[Um]=me[Lm]=me[Bm]=me[qm]=me[Vm]=me[zm]=!1;function np(t){return Ue(t)&&hs(t.length)&&!!me[ct(t)]}function ms(t){return function(e){return t(e)}}var ul=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Un=ul&&typeof module=="object"&&module&&!module.nodeType&&module,rp=Un&&Un.exports===ul,ii=rp&&Qa.process,cn=(function(){try{var t=Un&&Un.require&&Un.require("util").types;return t||ii&&ii.binding&&ii.binding("util")}catch{}})(),_o=cn&&cn.isTypedArray,nr=_o?ms(_o):np,ip="[object Map]",sp="[object Set]",op=Object.prototype,ap=op.hasOwnProperty;function ge(t){if(t==null)return!0;if(Wt(t)&&(Se(t)||typeof t=="string"||typeof t.splice=="function"||Rt(t)||nr(t)||ln(t)))return!t.length;var e=ke(t);if(e==ip||e==sp)return!t.size;if(Ur(t))return!al(t).length;for(var n in t)if(ap.call(t,n))return!1;return!0}function lp(){this.__data__=new ut,this.size=0}function cp(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function up(t){return this.__data__.get(t)}function dp(t){return this.__data__.has(t)}var fp=200;function hp(t,e){var n=this.__data__;if(n instanceof ut){var r=n.__data__;if(!Kn||r.length<fp-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new dt(r)}return n.set(t,e),this.size=n.size,this}function We(t){var e=this.__data__=new ut(t);this.size=e.size}We.prototype.clear=lp;We.prototype.delete=cp;We.prototype.get=up;We.prototype.has=dp;We.prototype.set=hp;function ps(t,e){for(var n=-1,r=t==null?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t}var Ir=(function(){try{var t=Vt(Object,"defineProperty");return t({},"",{}),t}catch{}})();function gs(t,e,n){e=="__proto__"&&Ir?Ir(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var mp=Object.prototype,pp=mp.hasOwnProperty;function ys(t,e,n){var r=t[e];(!(pp.call(t,e)&&tr(r,n))||n===void 0&&!(e in t))&&gs(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?gs(n,a,l):ys(n,a,l)}return n}function dl(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var gp=9007199254740991,yp=/^(?:0|[1-9]\d*)$/;function Lr(t,e){var n=typeof t;return e=e??gp,!!e&&(n=="number"||n!="symbol"&&yp.test(t))&&t>-1&&t%1==0&&t<e}var bp=Object.prototype,xp=bp.hasOwnProperty;function fl(t,e){var n=Se(t),r=!n&&ln(t),i=!n&&!r&&Rt(t),s=!n&&!r&&!i&&nr(t),o=n||r||i||s,a=o?dl(t.length,String):[],l=a.length;for(var u in t)(e||xp.call(t,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Lr(u,l)))&&a.push(u);return a}function ze(t){return Wt(t)?fl(t):al(t)}function vp(t,e){return t&&bn(e,ze(e),t)}function Sp(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var wp=Object.prototype,jp=wp.hasOwnProperty;function Op(t){if(!te(t))return Sp(t);var e=Ur(t),n=[];for(var r in t)r=="constructor"&&(e||!jp.call(t,r))||n.push(r);return n}function rr(t){return Wt(t)?fl(t,!0):Op(t)}function Ap(t,e){return t&&bn(e,rr(e),t)}var hl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Io=hl&&typeof module=="object"&&module&&!module.nodeType&&module,Ep=Io&&Io.exports===hl,To=Ep?rt.Buffer:void 0,No=To?To.allocUnsafe:void 0;function ml(t,e){if(e)return t.slice();var n=t.length,r=No?No(n):new t.constructor(n);return t.copy(r),r}function bs(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}function Cp(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 pl(){return[]}var _p=Object.prototype,Ip=_p.propertyIsEnumerable,Fo=Object.getOwnPropertySymbols,xs=Fo?function(t){return t==null?[]:(t=Object(t),Cp(Fo(t),function(e){return Ip.call(t,e)}))}:pl;function Tp(t,e){return bn(t,xs(t),e)}function vs(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var Np=Object.getOwnPropertySymbols,gl=Np?function(t){for(var e=[];t;)vs(e,xs(t)),t=Dr(t);return e}:pl;function Fp(t,e){return bn(t,gl(t),e)}function yl(t,e,n){var r=e(t);return Se(t)?r:vs(r,n(t))}function Bi(t){return yl(t,ze,xs)}function Ss(t){return yl(t,rr,gl)}var Pp=Object.prototype,$p=Pp.hasOwnProperty;function Dp(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&$p.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var Tr=rt.Uint8Array;function ws(t){var e=new t.constructor(t.byteLength);return new Tr(e).set(new Tr(t)),e}function kp(t,e){var n=e?ws(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var Rp=/\w*$/;function Mp(t){var e=new t.constructor(t.source,Rp.exec(t));return e.lastIndex=t.lastIndex,e}var Po=Me?Me.prototype:void 0,$o=Po?Po.valueOf:void 0;function Up(t){return $o?Object($o.call(t)):{}}function bl(t,e){var n=e?ws(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var Lp="[object Boolean]",Bp="[object Date]",qp="[object Map]",Vp="[object Number]",zp="[object RegExp]",Wp="[object Set]",Hp="[object String]",Kp="[object Symbol]",Gp="[object ArrayBuffer]",Yp="[object DataView]",Jp="[object Float32Array]",Zp="[object Float64Array]",Xp="[object Int8Array]",Qp="[object Int16Array]",eg="[object Int32Array]",tg="[object Uint8Array]",ng="[object Uint8ClampedArray]",rg="[object Uint16Array]",ig="[object Uint32Array]";function sg(t,e,n){var r=t.constructor;switch(e){case Gp:return ws(t);case Lp:case Bp:return new r(+t);case Yp:return kp(t,n);case Jp:case Zp:case Xp:case Qp:case eg:case tg:case ng:case rg:case ig:return bl(t,n);case qp:return new r;case Vp:case Hp:return new r(t);case zp:return Mp(t);case Wp:return new r;case Kp:return Up(t)}}var Do=Object.create,xl=(function(){function t(){}return function(e){if(!te(e))return{};if(Do)return Do(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}})();function vl(t){return typeof t.constructor=="function"&&!Ur(t)?xl(Dr(t)):{}}var og="[object Map]";function ag(t){return Ue(t)&&ke(t)==og}var ko=cn&&cn.isMap,lg=ko?ms(ko):ag,cg="[object Set]";function ug(t){return Ue(t)&&ke(t)==cg}var Ro=cn&&cn.isSet,dg=Ro?ms(Ro):ug,fg=1,hg=2,mg=4,Sl="[object Arguments]",pg="[object Array]",gg="[object Boolean]",yg="[object Date]",bg="[object Error]",wl="[object Function]",xg="[object GeneratorFunction]",vg="[object Map]",Sg="[object Number]",jl="[object Object]",wg="[object RegExp]",jg="[object Set]",Og="[object String]",Ag="[object Symbol]",Eg="[object WeakMap]",Cg="[object ArrayBuffer]",_g="[object DataView]",Ig="[object Float32Array]",Tg="[object Float64Array]",Ng="[object Int8Array]",Fg="[object Int16Array]",Pg="[object Int32Array]",$g="[object Uint8Array]",Dg="[object Uint8ClampedArray]",kg="[object Uint16Array]",Rg="[object Uint32Array]",he={};he[Sl]=he[pg]=he[Cg]=he[_g]=he[gg]=he[yg]=he[Ig]=he[Tg]=he[Ng]=he[Fg]=he[Pg]=he[vg]=he[Sg]=he[jl]=he[wg]=he[jg]=he[Og]=he[Ag]=he[$g]=he[Dg]=he[kg]=he[Rg]=!0;he[bg]=he[wl]=he[Eg]=!1;function Ln(t,e,n,r,i,s){var o,a=e&fg,l=e&hg,u=e&mg;if(n&&(o=i?n(t,r,i,s):n(t)),o!==void 0)return o;if(!te(t))return t;var c=Se(t);if(c){if(o=Dp(t),!a)return bs(t,o)}else{var d=ke(t),m=d==wl||d==xg;if(Rt(t))return ml(t,a);if(d==jl||d==Sl||m&&!i){if(o=l||m?{}:vl(t),!a)return l?Fp(t,Ap(o,t)):Tp(t,vp(o,t))}else{if(!he[d])return i?t:{};o=sg(t,d,a)}}s||(s=new We);var y=s.get(t);if(y)return y;s.set(t,o),dg(t)?t.forEach(function(b){o.add(Ln(b,e,n,b,t,s))}):lg(t)&&t.forEach(function(b,v){o.set(v,Ln(b,e,n,v,t,s))});var f=u?l?Ss:Bi:l?rr:ze,p=c?void 0:f(t);return ps(p||t,function(b,v){p&&(v=b,b=t[v]),ys(o,v,Ln(b,e,n,v,t,s))}),o}function Ol(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}function Mg(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 Ug(t,e){return e.length<2?t:Mr(t,Mg(e,0,-1))}var Lg=Object.prototype,Bg=Lg.hasOwnProperty;function Al(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__"&&!Bg.call(t,"__proto__")||(i==="constructor"||i==="prototype")&&n<r-1)return!1}var s=Ug(t,e);return s==null||delete s[Et(Ol(e))]}function qg(t){return At(t)?void 0:t}var Mo=Me?Me.isConcatSpreadable:void 0;function Vg(t){return Se(t)||ln(t)||!!(Mo&&t&&t[Mo])}function ir(t,e,n,r,i){var s=-1,o=t.length;for(n||(n=Vg),i||(i=[]);++s<o;){var a=t[s];e>0&&n(a)?e>1?ir(a,e-1,n,r,i):vs(i,a):r||(i[i.length]=a)}return i}function qi(t){var e=t==null?0:t.length;return e?ir(t,1):[]}function zg(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 Uo=Math.max;function El(t,e,n){return e=Uo(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,s=Uo(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),zg(t,this,a)}}function Wg(t){return function(){return t}}function Br(t){return t}var Hg=Ir?function(t,e){return Ir(t,"toString",{configurable:!0,enumerable:!1,value:Wg(e),writable:!0})}:Br,Kg=800,Gg=16,Yg=Date.now;function Jg(t){var e=0,n=0;return function(){var r=Yg(),i=Gg-(r-n);if(n=r,i>0){if(++e>=Kg)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var Cl=Jg(Hg);function _l(t){return Cl(El(t,void 0,qi),t+"")}var Zg=1,Xg=2,Qg=4,un=_l(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,Ss(t),n),r&&(n=Ln(n,Zg|Xg|Qg,qg));for(var i=e.length;i--;)Al(n,e[i]);return n});function Nr(t,e){if(de in t&&fs.equal(t[de],e))return t;for(const n of Object.values(t))if(Array.isArray(n)){for(const r of n)if(te(r)){const i=Nr(r,e);if(i!==void 0)return i}}else if(te(n)){const r=Nr(n,e);if(r!==void 0)return r}}function Vi(t,e){const n=D(t,de,e);let r=t;ue in r&&(r={...r,[ue]:fs.resolve(n,r[ue])});for(const[i,s]of Object.entries(r))Array.isArray(s)?r={...r,[i]:s.map(o=>te(o)?Vi(o,n):o)}:te(s)&&(r={...r,[i]:Vi(s,n)});return r}function js(t,e){const n=e[t];return[un(e,[t]),n]}function Il(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=ri.get(e,l):e[Fn]===br&&(s=Nr(e,o.replace(/\/$/,"")),s!==void 0&&(s=ri.get(s,l)))}else if(e[Fn]===br){const l=o?fs.resolve(o,i):i,[u,...c]=l.replace(/#\/?$/,"").split("#");s=Nr(e,u.replace(/\/$/,"")),s!==void 0&&(o=s[de],ge(c)||(s=ri.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,...m]=n,y=[...m,i,d].join(" -> ");throw new Error(`Definition for ${d} contains a circular reference through ${y}`)}const[l,u]=js(ue,s),c=Il(u,e,[...n,i],o);return Object.keys(l).length>0?e[Fn]===Ff||e[Fn]===br?{[Ot]:[l,c]}:{...l,...c}:c}return s}function Gn(t,e={},n=D(e,[de])){return Il(t,e,[],n)}var ey=Object.prototype,ty=ey.hasOwnProperty;function ny(t,e){return t!=null&&ty.call(t,e)}function Tl(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&&hs(i)&&Lr(o,i)&&(Se(t)||ln(t)))}function X(t,e){return t!=null&&Tl(t,e,ny)}var ry="[object String]";function Ct(t){return typeof t=="string"||!Se(t)&&Ue(t)&&ct(t)==ry}function He(t){let e;const n=D(t,_f);return Ct(n)?e=n:n!==void 0&&console.warn(`Expecting discriminator to be a string, got "${typeof n}" instead`),e}var iy=1/0;function sy(t){var e=t==null?0:t.length;return e?ir(t,iy):[]}function zi(t,e,n){(n!==void 0&&!tr(t[e],n)||n===void 0&&!(e in t))&&gs(t,e,n)}function oy(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 Nl=oy();function Yn(t){return Ue(t)&&Wt(t)}function Wi(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function ay(t){return bn(t,rr(t))}function ly(t,e,n,r,i,s,o){var a=Wi(t,n),l=Wi(e,n),u=o.get(l);if(u){zi(t,n,u);return}var c=s?s(a,l,n+"",t,e,o):void 0,d=c===void 0;if(d){var m=Se(l),y=!m&&Rt(l),f=!m&&!y&&nr(l);c=l,m||y||f?Se(a)?c=a:Yn(a)?c=bs(a):y?(d=!1,c=ml(l,!0)):f?(d=!1,c=bl(l,!0)):c=[]:At(l)||ln(l)?(c=a,ln(a)?c=ay(a):(!te(a)||er(a))&&(c=vl(l))):d=!1}d&&(o.set(l,c),i(c,l,r,s,o),o.delete(l)),zi(t,n,c)}function Fl(t,e,n,r,i){t!==e&&Nl(e,function(s,o){if(i||(i=new We),te(s))ly(t,e,o,n,Fl,r,i);else{var a=r?r(Wi(t,o),s,o+"",t,e,i):void 0;a===void 0&&(a=s),zi(t,o,a)}},rr)}function qr(t,e){return Cl(El(t,e,Br),t+"")}function cy(t,e,n){if(!te(n))return!1;var r=typeof e;return(r=="number"?Wt(n)&&Lr(e,n.length):r=="string"&&e in n)?tr(n[e],t):!1}function uy(t){return qr(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&&cy(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 dy=uy(function(t,e,n){Fl(t,e,n)});function Os(t,e,n,r){if(!te(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=te(c)?c:Lr(e[i+1])?[]:{})}ys(a,l,u),a=a[l]}return t}function ce(t,e,n){return t==null?t:Os(t,e,n)}function Pl(t){return typeof t=="function"?t:Br}var fy=/\s/;function hy(t){for(var e=t.length;e--&&fy.test(t.charAt(e)););return e}var my=/^\s+/;function py(t){return t&&t.slice(0,hy(t)+1).replace(my,"")}var Lo=NaN,gy=/^[-+]0x[0-9a-f]+$/i,yy=/^0b[01]+$/i,by=/^0o[0-7]+$/i,xy=parseInt;function vy(t){if(typeof t=="number")return t;if(Qn(t))return Lo;if(te(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=te(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=py(t);var n=yy.test(t);return n||by.test(t)?xy(t.slice(2),n?2:8):gy.test(t)?Lo:+t}var Bo=1/0,Sy=17976931348623157e292;function wy(t){if(!t)return t===0?t:0;if(t=vy(t),t===Bo||t===-Bo){var e=t<0?-1:1;return e*Sy}return t===t?t:0}function $l(t){var e=wy(t),n=e%1;return e===e?n?e-n:e:0}var jy=9007199254740991,si=4294967295,Oy=Math.min;function Dl(t,e){if(t=$l(t),t<1||t>jy)return[];var n=si,r=Oy(t,si);e=Pl(e),t-=si;for(var i=dl(r,e);++n<t;)e(n);return i}function kl(t,e){return t&&Nl(t,e,ze)}var Ay="__lodash_hash_undefined__";function Ey(t){return this.__data__.set(t,Ay),this}function Cy(t){return this.__data__.has(t)}function Mt(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new dt;++e<n;)this.add(t[e])}Mt.prototype.add=Mt.prototype.push=Ey;Mt.prototype.has=Cy;function _y(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 Jn(t,e){return t.has(e)}var Iy=1,Ty=2;function Rl(t,e,n,r,i,s){var o=n&Iy,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,m=!0,y=n&Ty?new Mt: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;m=!1;break}if(y){if(!_y(e,function(v,w){if(!Jn(y,w)&&(f===v||i(f,v,n,r,s)))return y.push(w)})){m=!1;break}}else if(!(f===p||i(f,p,n,r,s))){m=!1;break}}return s.delete(t),s.delete(e),m}function Ny(t){var e=-1,n=Array(t.size);return t.forEach(function(r,i){n[++e]=[i,r]}),n}function As(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var Fy=1,Py=2,$y="[object Boolean]",Dy="[object Date]",ky="[object Error]",Ry="[object Map]",My="[object Number]",Uy="[object RegExp]",Ly="[object Set]",By="[object String]",qy="[object Symbol]",Vy="[object ArrayBuffer]",zy="[object DataView]",qo=Me?Me.prototype:void 0,oi=qo?qo.valueOf:void 0;function Wy(t,e,n,r,i,s,o){switch(n){case zy:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Vy:return!(t.byteLength!=e.byteLength||!s(new Tr(t),new Tr(e)));case $y:case Dy:case My:return tr(+t,+e);case ky:return t.name==e.name&&t.message==e.message;case Uy:case By:return t==e+"";case Ry:var a=Ny;case Ly:var l=r&Fy;if(a||(a=As),t.size!=e.size&&!l)return!1;var u=o.get(t);if(u)return u==e;r|=Py,o.set(t,e);var c=Rl(a(t),a(e),r,i,s,o);return o.delete(t),c;case qy:if(oi)return oi.call(t)==oi.call(e)}return!1}var Hy=1,Ky=Object.prototype,Gy=Ky.hasOwnProperty;function Yy(t,e,n,r,i,s){var o=n&Hy,a=Bi(t),l=a.length,u=Bi(e),c=u.length;if(l!=c&&!o)return!1;for(var d=l;d--;){var m=a[d];if(!(o?m in e:Gy.call(e,m)))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;){m=a[d];var v=t[m],w=e[m];if(r)var A=o?r(w,v,m,e,t,s):r(v,w,m,t,e,s);if(!(A===void 0?v===w||i(v,w,n,r,s):A)){p=!1;break}b||(b=m=="constructor")}if(p&&!b){var O=t.constructor,g=e.constructor;O!=g&&"constructor"in t&&"constructor"in e&&!(typeof O=="function"&&O instanceof O&&typeof g=="function"&&g instanceof g)&&(p=!1)}return s.delete(t),s.delete(e),p}var Jy=1,Vo="[object Arguments]",zo="[object Array]",ur="[object Object]",Zy=Object.prototype,Wo=Zy.hasOwnProperty;function Xy(t,e,n,r,i,s){var o=Se(t),a=Se(e),l=o?zo:ke(t),u=a?zo:ke(e);l=l==Vo?ur:l,u=u==Vo?ur:u;var c=l==ur,d=u==ur,m=l==u;if(m&&Rt(t)){if(!Rt(e))return!1;o=!0,c=!1}if(m&&!c)return s||(s=new We),o||nr(t)?Rl(t,e,n,r,i,s):Wy(t,e,l,n,r,i,s);if(!(n&Jy)){var y=c&&Wo.call(t,"__wrapped__"),f=d&&Wo.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 m?(s||(s=new We),Yy(t,e,n,r,i,s)):!1}function Vr(t,e,n,r,i){return t===e?!0:t==null||e==null||!Ue(t)&&!Ue(e)?t!==t&&e!==e:Xy(t,e,n,r,Vr,i)}var Qy=1,eb=2;function tb(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?Vr(u,l,Qy|eb,r,c):d))return!1}}return!0}function Ml(t){return t===t&&!te(t)}function nb(t){for(var e=ze(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,Ml(i)]}return e}function Ul(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}function rb(t){var e=nb(t);return e.length==1&&e[0][2]?Ul(e[0][0],e[0][1]):function(n){return n===t||tb(n,t,e)}}function ib(t,e){return t!=null&&e in Object(t)}function Ll(t,e){return t!=null&&Tl(t,e,ib)}var sb=1,ob=2;function ab(t,e){return cs(t)&&Ml(e)?Ul(Et(t),e):function(n){var r=D(n,t);return r===void 0&&r===e?Ll(n,t):Vr(e,r,sb|ob)}}function lb(t){return function(e){return e?.[t]}}function cb(t){return function(e){return Mr(e,t)}}function ub(t){return cs(t)?lb(Et(t)):cb(t)}function Es(t){return typeof t=="function"?t:t==null?Br:typeof t=="object"?Se(t)?ab(t[0],t[1]):rb(t):ub(t)}function db(t,e,n){var r=Se(t),i=r||Rt(t)||nr(t);if(e=Es(e),n==null){var s=t&&t.constructor;i?n=r?new s:[]:te(t)?n=er(s)?xl(Dr(t)):{}:n={}}return(i?ps:kl)(t,function(o,a,l){return e(n,o,a,l)}),n}function fb(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 hb(t){return t!==t}function mb(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}function Bl(t,e,n){return e===e?mb(t,e,n):fb(t,hb,n)}function Cs(t,e){var n=t==null?0:t.length;return!!n&&Bl(t,e,0)>-1}function xr(){}var pb=1/0,gb=on&&1/As(new on([,-0]))[1]==pb?function(t){return new on(t)}:xr,yb=200;function ql(t,e,n){var r=-1,i=Cs,s=t.length,o=!0,a=[],l=a;if(s>=yb){var u=gb(t);if(u)return As(u);o=!1,i=Jn,l=new Mt}else l=a;e:for(;++r<s;){var c=t[r],d=c;if(c=c!==0?c:0,o&&d===d){for(var m=l.length;m--;)if(l[m]===d)continue e;a.push(c)}else i(l,d,n)||(l!==a&&l.push(d),a.push(c))}return a}function Vl(t){return t&&t.length?ql(t):[]}function Zn(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 bb=qr(function(t){return ql(ir(t,1,Yn,!0))});function Le(t){let{type:e}=t;return!e&&t.const?Zn(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 lt(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&&V(o)?r[i]=lt(s,o):t&&e&&(Le(t)==="object"||Le(e)==="object")&&i===Ga&&Array.isArray(s)&&Array.isArray(o)?r[i]=bb(s,o):r[i]=o,r},n)}var xb="[object Number]";function zl(t){return typeof t=="number"||Ue(t)&&ct(t)==xb}function Wl(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 Fr(t,e,n,r,i){if(e===void 0)return 0;const s=Wl(e,n,i);if(zl(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 vb=Object.prototype;function Pn(t){for(const e in t)if(vb.hasOwnProperty.call(t,e))return!1;return!0}const Sb=["array","boolean","integer","null","number","object","string"];new Set(Sb);const wb=["$defs","definitions","properties","patternProperties","dependencies"];new Set(wb);const jb=["items","allOf","oneOf","anyOf"];new Set(jb);const Ob=["items","additionalItems","additionalProperties","propertyNames","contains","if","then","else","not"];new Set(Ob);function vr(t){return typeof t=="object"}function Ye(t){return vr(t)?Pn(t):t===!0}function nn(t,e){return t<e?-1:t>e?1:0}function ai(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 Ab(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 Ho(t){return t.length===0}function li(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 Hl(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 Eb(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 Cb(t,e){return n=>{if(t.has(n))return t.get(n);const r=e(n);return t.set(n,r),r}}const Ko=Cb,Kl=()=>0,_b=t=>t===void 0,Ib=t=>typeof t!="object",Go={boolean:0,number:1,string:2};function Tb(t,e){const n=typeof t,r=typeof e;return n===r?nn(t,e):Go[n]-Go[r]}function Nb(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 zr(t,e,n=Kl){return(r,i)=>t(r)?t(i)?n(r,i):-1:t(i)?1:e(r,i)}function Qt(t){return zr(_b,t)}function pt(t,e){return zr(n=>n===void 0||t(n),e)}function ci(t,e){return zr(Array.isArray,t,e)}const be=Qt(nn),ui=pt(t=>t===0,(t,e)=>t-e);function Fb({deduplicationCache:t=new WeakMap,sortedKeysCache:e=new WeakMap}={}){const n=Ko(e,p=>Object.keys(p).sort());function r(p){return(b,v)=>{const w=n(b),A=n(v),O=Math.min(w.length,A.length);for(let g=0;g<O;g++){const x=nn(w[g],A[g]);if(x!==0)return x}if(w.length!==A.length)return w.length-A.length;for(let g=0;g<O;g++){const x=w[g],S=p(b[x],v[x]);if(S!==0)return S}return 0}}function i(p){const b=li(p),v=Ko(t,Hl(p,{threshold:0}));return(w,A)=>b(v(w),v(A))}const s=i(nn);function o(p,b){if(vr(p)){if(vr(b)){const v=Object.keys(p),w=Object.keys(b),A=Nb(v,w),O=A.length;for(let g=0;g<O;g++){const x=A[g];if(p[x]===b[x])continue;const j=(f[x]??a)(p[x],b[x]);if(j!==0)return j}return 0}return b===!0&&Pn(p)?0:1}return vr(b)?p===!0&&Pn(b)?0:-1:nn(p,b)}const a=Qt(u),l=zr(Ib,ci(r(a),li(u)),Tb);function u(p,b){return p===null?-1:b===null?1:l(p,b)}const c=Qt(o),d=pt(Pn,r(c)),m=Qt(i(o)),y=pt(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:pt(p=>p===!1,Kl),minLength:ui,minItems:ui,minProperties:ui,required:pt(Ho,s),enum:pt(Ho,i(u)),type:Qt((p,b)=>{const v=Array.isArray(p),w=Array.isArray(b);return!v&&!w?nn(p,b):s(v?p:[p],w?b:[b])}),items:pt(p=>!Array.isArray(p)&&Ye(p),ci(o,li(o))),anyOf:m,allOf:m,oneOf:m,properties:d,patternProperties:d,additionalProperties:y,additionalItems:y,dependencies:pt(Pn,r(Qt(ci(o,s))))};return{compareSchemaValues:u,compareSchemaDefinitions:o}}function Yo(t){return t}const Gl=(t,e)=>t?Gl(e%t,t):e,Pb=(t,e)=>Math.abs(t*e)/Gl(t,e);function $b(t,e){return t===e?t:`^(?=.*(?:${t}))(?=.*(?:${e})).*$`}function di(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 fi(t,e){return t||e}function Jo(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 Db(t){const e=new Map;for(const n of t)for(const r of n[0])e.set(r,n[1]);return e}function Tt(t,e,n){n===void 0||Ye(n)?delete t[e]:t[e]=n}const kb=["properties","patternProperties","additionalProperties"];function Zo(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 Xo=[[],[]];function Qo(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 Rb=["items","additionalItems"],Mb=["if","then","else"];function ea(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 hi(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 Nt(t,e,n){return[t,e,n]}function Ub(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 Lb=[Nt("minimum","maximum",t=>t.maximum>=t.minimum),Nt("exclusiveMinimum","maximum",t=>t.maximum>t.exclusiveMinimum),Nt("minimum","exclusiveMaximum",t=>t.exclusiveMaximum>t.minimum),Nt("exclusiveMinimum","exclusiveMaximum",t=>t.exclusiveMaximum>t.exclusiveMinimum),Nt("minLength","maxLength",t=>t.maxLength>=t.minLength),Nt("minItems","maxItems",t=>t.maxItems>=t.minItems),Nt("minProperties","maxProperties",t=>t.maxProperties>=t.minProperties)];function Bb({mergePatterns:t=$b,isSubRegExp:e=Object.is,intersectJson:n=Ab,deduplicateJsonSchemaDef:r=Yo,defaultMerger:i=Yo,assigners:s=[],checks:o=Lb,mergers:a}={}){function l(O){const g=O.length;let x=O[0];for(let S=1;S<g;S++){const j=v(x,O[S]);if(j===!1)return!1;Ye(j)||(x=j)}return x}function u(O,g,x,S,j,E,C){if(O.length=0,x===!1)return!1;if(O.push(x),j!==void 0){if(j===!1)return!1;O.push(j)}if(Qo(O,g,E))return!1;const I=O.length<2;if(C===!1){if(I)return;if(Qo(O,g,S))return!1}else I&&C!==void 0&&O.push(C);return O.length===1?O[0]:l(O)}function c(O,g,x,S,j,E){const C=x.length;if(C>0&&j!==!1)if(E)Object.assign(O,g);else for(let _=0;_<C;_++){const I=x[_];S.has(I)||(O[I]=v(g[I],j))}return O}const d=(O,{properties:g={},patternProperties:x,additionalProperties:S=!0},{properties:j={},patternProperties:E,additionalProperties:C=!0})=>{const _=Ye(S),I=Ye(C);if(_&&I)return Tt(O,"properties",w(g,j)),Tt(O,"patternProperties",x&&E?w(x,E):x??E),delete O.additionalProperties,O;const T=v(S,C);Tt(O,"additionalProperties",T);const N={},F=Object.keys(g),$=F.length,[k,B]=x?Zo(x):Xo,[U,Y]=E?Zo(E):Xo,ne=[],fe=new Set,ye=I?void 0:C;for(let z=0;z<$;z++){const re=F[z];fe.add(re);const oe=u(ne,re,g[re],k,j[re],U,ye);oe!==void 0&&(N[re]=oe)}const R=Object.keys(j),le=R.length,ee=_?void 0:S;for(let z=0;z<le;z++){const re=R[z];if(fe.has(re))continue;const oe=u(ne,re,j[re],U,void 0,k,ee);oe!==void 0&&(N[re]=oe)}Tt(O,"properties",N);let H={};const K=new Set;return B.length>0&&Y.length>0&&di(B,Y,(z,re)=>{e(z,re)&&K.add(z),e(re,z)&&K.add(re),H[t(z,re)]=v(x[z],E[re])}),H=c(H,x,B,K,C,I),H=c(H,E,Y,K,S,_),Tt(O,"patternProperties",H),O},m=(O,{items:g=[],additionalItems:x},{items:S=[],additionalItems:j})=>{const E=Array.isArray(g),C=Array.isArray(S),_=[];if(O.items=_,E&&C){const[I,T,N]=g.length<S.length?[g.length,x,S]:[S.length,j,g];let F=0;for(;F<I;F++)_.push(v(g[F],S[F]));if(T===!1)O.additionalItems=!1;else{const $=T===void 0||Ye(T);for(;F<N.length;F++)_.push($?N[F]:v(N[F],T));Tt(O,"additionalItems",x!==void 0&&j!==void 0?v(x,j):x??j)}}else if(E||C){const[I,T,N]=E?[g,S,x]:[S,g,j];Tt(O,"additionalItems",N&&v(N,T));for(let F=0;F<I.length;F++)_.push(v(I[F],T))}else delete O.additionalItems,O.items=v(g,S);return O},y=(O,g,x)=>{ea(O,g);const S=ea({},x);return O.allOf===void 0?O.allOf=[S]:O.allOf=O.allOf.concat(S),O};function f(O,g){const x=[];if(di(O,g,(S,j)=>{try{x.push(v(S,j))}catch{}}),x.length===0)throw new Error(`No valid schema combinations could be produced for "${JSON.stringify(O)}" and "${JSON.stringify(g)}"; the merged result is empty`);return r(x)}const p=Db([[kb,d],[Rb,m],[Mb,y],...s]),b=Ub(o);function v(O,g){if(O===!1||g===!1)return!1;if(Ye(O))return Ye(g)?!0:g;if(Ye(g))return O;let x={...O};const S=new Set,j=new Set,E=Object.keys(g),C=E.length;for(let _=0;_<C;_++){const I=E[_],T=g[I];if(T===void 0)continue;const N=b.get(I);if(N!==void 0){const B=N.length;for(let U=0;U<B;U++){const Y=N[U];O[Y.oppositeKey]!==void 0&&j.add(Y.check)}}const F=O[I];if(F===void 0){x[I]=T;continue}const $=p.get(I);if($){S.add($);continue}const k=A[I]??i;x[I]=k(F,T)}for(const _ of S)x=_(x,O,g);for(const _ of j)_(x);return x}const w=Jo(v),A={$id:i,$ref:i,$schema:i,$comment:i,$defs:w,definitions:w,type:(O,g)=>{if(O===g)return O;const x=Array.isArray(O),S=Array.isArray(g);if(!x&&!S){const j=hi(O,g);if(j!==void 0)return j}else if(x||S){const j=new Set;if(x&&S)di(O,g,(C,_)=>{const I=hi(C,_);I!==void 0&&j.add(I)});else{const C=x?O:g,_=x?g:O,I=C.length;for(let T=0;T<I;T++){const N=hi(_,C[T]);N!==void 0&&j.add(N)}}const E=j.size;if(E===1)return j.values().next().value;if(E>1)return Array.from(j)}throw new Error(`It is not possible to create an intersection of the following incompatible types: ${O.toString()}, ${g.toString()}`)},default:i,description:i,title:i,const:i,format:i,contentEncoding:i,contentMediaType:i,not:(O,g)=>{const x=r([O,g]);return x.length===1?x[0]:{anyOf:x}},pattern:t,readOnly:fi,writeOnly:fi,enum:(O,g)=>{const x=n(O,g);if(x.length===0)throw new Error(`Intersection of the following enums is empty: "${JSON.stringify(O)}", "${JSON.stringify(g)}"`);return x},anyOf:f,oneOf:f,allOf:(O,g)=>r(O.concat(g)),propertyNames:v,contains:v,dependencies:Jo((O,g)=>Array.isArray(O)?Array.isArray(g)?ai(O,g):v(g,{required:O}):Array.isArray(g)?v(O,{required:g}):v(O,g)),examples:(O,g)=>{if(!Array.isArray(O)||!Array.isArray(g))throw new Error(`Value of the 'examples' field should be an array, but got "${JSON.stringify(O)}" and "${JSON.stringify(g)}"`);return ai(O,g)},multipleOf:(O,g)=>{let x=1;for(;!Number.isInteger(O)||!Number.isInteger(g);)x*=10,O*=10,g*=10;return Pb(O,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:fi,required:ai,...a};return{mergeSchemaDefinitions:v,mergeArrayOfSchemaDefinitions:l}}function qb(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 Vb(t){return e=>t(qb(e))}const{compareSchemaDefinitions:zb,compareSchemaValues:Wb}=Fb(),{mergeArrayOfSchemaDefinitions:Hb}=Bb({intersectJson:Eb(Wb),deduplicateJsonSchemaDef:Hl(zb)}),Yl=Vb(Hb);function Ce(t,e,n={},r,i,s=!1){return Ze(t,e,n,r,void 0,void 0,i,s)[0]}function Kb(t,e,n,r,i,s,o){const{if:a,then:l,else:u,...c}=e,d=t.isValid(a,s||{},n);let m=[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&&(m=y.map(f=>lt(c,f))),m.flatMap(f=>Ze(t,f,n,s,r,i,o))}function Jl(t){return t.reduce((n,r)=>r.length>1?r.flatMap(i=>Dl(n.length,s=>[...n[s]].concat(i))):(n.forEach(i=>i.push(r[0])),n),[[]])}function Zl(t,e){return Object.keys(t.patternProperties).filter(n=>RegExp(n).test(e)).reduce((n,r)=>(ce(n,[r],t.patternProperties[r]),n),{})}function Gb(t,e,n,r,i,s,o,a){const l=Xl(t,e,n,r,i,s,o,a);if(l.length>1||l[0]!==e)return l;if(ss in e)return ec(t,e,n,r,i,s,o).flatMap(c=>Ze(t,c,n,s,r,i,o));if(Ot in e&&Array.isArray(e[Ot])){const u=e.allOf.map(d=>Ze(t,d,n,s,r,i,o));return Jl(u).map(d=>({...e,allOf:d}))}return[e]}function Xl(t,e,n,r,i,s,o,a){const l=St(e,n,i,void 0,a);return l!==e?Ze(t,l,n,s,r,i,o,a):[e]}function St(t,e,n,r,i){if(!V(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={...Gn(a,e,o),...l,[Mn]:a},de in s&&(o=s[de])}if(se in s){const a=[],l=db(s[se],(u,c,d)=>{const m=[...n];u[d]=St(c,e,m,o,i),a.push(m)},{});dy(n,Vl(sy(a))),s={...s,[se]:l}}if(an in s&&!Array.isArray(s.items)&&typeof s.items!="boolean"&&(s={...s,items:St(s.items,e,n,o,i)}),i){let a,l;Q in t&&Array.isArray(t[Q])?(a=Q,l=s[Q]):W in t&&Array.isArray(t[W])&&(a=W,l=s[W]),a&&l&&(s={...s,[a]:l.map(u=>St(u,e,n,o,i))})}return ie(t,s)?t:s}function Yb(t,e,n,r,i){const s={...e,properties:{...e.properties}},o=r&&V(r)?r:{};return Object.keys(o).forEach(a=>{if(!(a in s.properties)){if(Di in s){const l=Zl(s,a);if(!ge(l)){s.properties[a]=Ce(t,{[Ot]:Object.values(l)},n,D(o,[a]),i),ce(s.properties,[a,at],!0);return}}if(tn 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}:Q in s.additionalProperties||W in s.additionalProperties?l={type:"object",...s.additionalProperties}:l={type:Zn(D(o,[a]))}:l={type:Zn(D(o,[a]))},s.properties[a]=l,ce(s.properties,[a,at],!0)}else s.properties[a]={type:"null"},ce(s.properties,[a,at],!0)}}),s}function Jb(t){return Yl(t)}function Ze(t,e,n,r,i=!1,s=[],o,a){return V(e)?Gb(t,e,n,i,s,r,o,a).flatMap(u=>{var c;let d=u;if(os in d)return Kb(t,d,n,i,s,r,o);if(Ot 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):Jb(d),y.length&&(d.allOf=y)}catch(y){console.warn(`could not merge subschemas in allOf:
2
2
  `,y);const{allOf:f,...p}=d;return p}}return se in d&&Di in d&&(d=Object.keys(d.properties).reduce((y,f)=>{const p=Zl(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}})),Di in d||tn in d&&d.additionalProperties!==!1?Yb(t,d,n,r,o):d}):[{}]}function Zb(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(m=>St(m,n,[]));const d=Fr(t,u,s,n,c);if(r){const m=Ql(s,!1,n);return Fr(t,u,m,n,c),s.map(y=>lt(l,y))}return[lt(l,s[d])]}return[e]}function Ql(t,e=!1,n){return t.map(r=>{if(!V(r))return r?{}:{not:{}};const i=e&&n?St(r,n,[]):r;return i.additionalProperties===!1?{...i,additionalProperties:!0}:i})}function ec(t,e,n,r,i,s,o){const{dependencies:a,...l}=e;return Zb(t,l,n,r,s).flatMap(c=>tc(t,a,c,n,r,i,s,o))}function tc(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]=js(u,e);return Array.isArray(d)?l[0]=Xb(n,d):V(d)&&(l=Qb(t,n,r,u,d,i,s,o,a)),l.flatMap(m=>tc(t,c,m,r,i,s,o,a))}return l}function Xb(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 Qb(t,e,n,r,i,s,o,a,l){return Ze(t,i,n,a,s,o,l).flatMap(c=>{const{oneOf:d,...m}=c,y=lt(e,m);if(d===void 0)return y;const f=d.map(b=>typeof b=="boolean"||!(ue in b)?[b]:Xl(t,b,n,s,o,a));return Jl(f).flatMap(b=>e0(t,y,n,r,b,s,o,a,l))})}function e0(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 m={type:"object",properties:{[r]:d}};return t.isValid(m,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,[m]=js(r,d.properties),y={...d,properties:m};return Ze(t,y,n,a,s,o,l).map(p=>lt(e,p))})}function $n(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,Dt],D(d,[se,l,Ne])),c))}}function nc(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),nc(t,e,s,l,i)}function Sr(t,e,n,r,i,s){const o=nc(t,e,n,r,s);return o===void 0?i:o}const ta={title:"!@#$_UNKNOWN_$#@!"};function t0(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=Sr(t,e,a,[se,y],{},s),X(a,W)?a=$n(t,e,a,u,W,D(i,y),s):X(a,Q)&&(a=$n(t,e,a,u,Q,D(i,y),s))}),X(a,W)?a=$n(t,e,a,u,W,i,s):X(a,Q)&&(a=$n(t,e,a,u,Q,i,s));let c=Sr(t,e,a,[se,l],ta,s);c===ta&&(c=void 0);const d=Sr(t,e,a,Ga,[],s);let m;return c&&Array.isArray(d)&&(m=d.includes(u)),{field:c,isRequired:m}}function n0(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 r0(t,e){return function(n,r){if(n==null)return n;if(!Wt(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 rc=r0(kl);function i0(t,e,n,r,i){return i(t,function(s,o,a){n=r?(r=!1,s):e(n,s,o,a)}),n}function s0(t,e,n){var r=Se(t)?n0:i0,i=arguments.length<3;return r(t,Es(e),n,i,rc)}const o0={type:"object",$id:Cf,properties:{__not_really_there__:{type:"number"}}};function Hi(t,e,n,r,i){let s=0;return n&&(te(n.properties)?s+=s0(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+Hi(t,e,c,u||{},i)}if((X(a,W)||X(a,Q))&&u){const c=X(a,W)?W:Q,d=He(a);return o+dn(t,e,u,D(a,c),-1,d,i)}if(a.type==="object"){const c=te(u)?1:0;return o+c+Hi(t,e,a,u,i)}if(a.type===Zn(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):Ct(n.type)&&n.type===Zn(r)&&(s+=1)),s}function dn(t,e,n,r,i=-1,s,o){const a=r.map(m=>St(m,e,[])),l=Wl(n,r,s);if(zl(l))return l;const u=a.reduce((m,y,f)=>(Fr(t,n,[o0,y],e,s)===1&&m.push(f),m),[]);if(u.length===1)return u[0];u.length||Dl(a.length,m=>u.push(m));const c=new Set,{bestIndex:d}=u.reduce((m,y)=>{const{bestScore:f}=m,p=a[y],b=Hi(t,e,p,n,o);return c.add(b),b>f?{bestIndex:y,bestScore:b}:m},{bestIndex:i,bestScore:0});return c.size===1&&i>=0?i:d}function ic(t){const e=t[Ne],n=Le(t);return V(e)&&Ct(e?.$data)&&n!=="object"&&n!=="array"}function sc(t){return Array.isArray(t.enum)&&t.enum.length===1||Ne in t}function _s(t){return Array.isArray(t.items)&&t.items.length>0&&t.items.every(e=>V(e))}function fn(t){return t==null}function Xn(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?Xn(s[c],e[c],n,r,i):u);return(n||i)&&l.length<a.length&&l.push(...a.slice(l.length)),l}if(V(e)){const s=Object.assign({},t);return Object.keys(e).reduce((o,a)=>{var l;const u=D(e,a),c=V(t)&&a in t,d=a in e,m=(l=D(t,a))!==null&&l!==void 0?l:{},y=c&&V(m)&&Object.values(m).some(b=>V(b)),f=c&&V(D(t,a)),p=d&&V(u);return f&&p&&!y?(o[a]={...D(t,a),...u},o):(o[a]=Xn(D(t,a),u,n,r,i&&(c||!d)),s)},s)}return r&&(t!==void 0&&fn(e)||typeof e=="number"&&Number.isNaN(e))||i&&!fn(e)?t:e}function Ut(t,e,n=!1){return Object.keys(e).reduce((r,i)=>{const s=t?t[i]:{},o=e[i];if(t&&i in t&&V(o))r[i]=Ut(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 a0(t){if(Ef 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 l0(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 hn(t,e){if(t.enum){let s,o;if(e){const{enumNames:l,enumOrder:u}=M(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=l0(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}=M(e);i=s}return n&&n.map((s,o)=>{const{title:a}=M(r?.[o]),l=s;let u,c=a;if(i){const d=D(l,[se,i],{});u=D(d,Dt,D(d,Ne)),c=c||d?.title||l.title||String(u)}else u=a0(l),c=c||l.title||String(u);return{schema:l,label:c,value:u}})}function Wr(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"&&sc(o)):!1}function Is(t,e,n,r){return!e.uniqueItems||!e.items||typeof e.items=="boolean"?!1:Wr(t,e.items,n,r)}const c0=["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 mi(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&&V(t.additionalItems)?t.additionalItems:{}}function oc(t,e){const{default:n,type:r}=t;return Array.isArray(r)&&r.includes("null")&&ge(e)&&n===null?null:e}function na(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||!V(n)||!ge(n))&&(t[e]=n);else if(u!=="skipDefaults"){const c=i===void 0?s.includes(e):i;V(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 wt(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:m}=n;let y=V(i)?i:{};const f=V(e)?e:{};let p=r,b=null,v=l,w=a;if(f[Ne]!==void 0&&l?.constAsDefaults!=="never"&&!ic(f))p=f[Ne];else if(V(p)&&V(f.default)&&!f[Q]&&!f[W]&&!f[ue])p=Ut(p,f.default);else if(Dt in f&&!f[Q]&&!f[W]&&!f[ue])p=f.default;else if(ue in f){const g=f[ue];a.includes(g)||(w=a.concat(g),b=Gn(g,s));const x=i===void 0||V(i)&&ge(i);b&&!p&&x&&(p=f.default),d&&b&&!V(i)&&(y=i)}else if(ss in f){const g={...ra(t,f,n,p),...y};[b]=ec(t,f,s,!1,[],g,u)}else if(_s(f))p=f.items.map((g,x)=>wt(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 S=He(f),{type:j="null"}=x;!Array.isArray(j)&&c0.includes(j)&&v?.constAsDefaults==="skipOneOf"&&(v={...v,constAsDefaults:"never"}),b=g[dn(t,s,i??f.default,g,0,S,u)],b=lt(x,b)}else if(Q in f){const{anyOf:g,...x}=f;if(g.length===0)return;const S=He(f);b=g[dn(t,s,i??f.default,g,0,S,u)],b=lt(x,b)}if(b)return wt(t,b,{rootSchema:s,includeUndefinedValues:o,_recurseList:w,experimental_defaultFormStateBehavior:v,experimental_customMergeAllOf:u,parentDefaults:p,rawFormData:i??y,required:c,shouldMergeDefaultsIntoFormData:d,initialDefaultsGenerated:m});p===void 0&&(p=f.default);const A=ra(t,f,n,p);let O=A??p;if(d){const{arrayMinItems:g={}}=l||{},{mergeExtraDefaults:x}=g,S=u0(t,f,s,i,l,u);(!V(i)||Ot in f)&&(O=Xn(O,S,x,!0))}return O}function u0(t,e,n,r,i,s){const o=!sc(e)&&Wr(t,e,n,s);let a=r;if(o){const u=hn(e);a=u?.some(d=>ie(d.value,r))?r:void 0}return e[Ne]&&i?.constAsDefaults==="always"&&(a=e.const),a}function d0(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 m=V(n)?n:{},y=e,p=o?.allOf==="populateDefaults"&&Ot in y||o?.emptyObjectFields!=="skipEmptyDefaults"&&os in y?Ce(t,y,r,m,a):y,b=p[Ne],v=Object.keys(p.properties||{}).reduce((w,A)=>{var O;const g=D(p,[se,A],{}),x=V(b)&&b[A]!==void 0,S=(V(g)&&Ne in g||x)&&o?.constAsDefaults!=="never"&&!ic(g),j=wt(t,g,{rootSchema:r,_recurseList:s,experimental_defaultFormStateBehavior:o,experimental_customMergeAllOf:a,includeUndefinedValues:i===!0,parentDefaults:D(d,[A]),rawFormData:D(m,[A]),required:(O=p.required)===null||O===void 0?void 0:O.includes(A),shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c});return na(w,A,j,i,l,p.required,o,S,g?.type==="null"),w},{});if(p.additionalProperties&&!c){const w=V(p.additionalProperties)?p.additionalProperties:{},A=new Set,O=[];Object.keys(m).filter(g=>!p.properties||!p.properties[g]).forEach(g=>{A.add(g),O.push(g)}),V(d)&&O.length===0&&Object.keys(d).filter(g=>!p.properties||!p.properties[g]).forEach(g=>A.add(g)),A.forEach(g=>{var x;const S=wt(t,w,{rootSchema:r,_recurseList:s,experimental_defaultFormStateBehavior:o,experimental_customMergeAllOf:a,includeUndefinedValues:i===!0,parentDefaults:D(d,[g]),rawFormData:D(m,[g]),required:(x=p.required)===null||x===void 0?void 0:x.includes(g),shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c});na(v,g,S,i,l,O)})}return oc(e,v)}}function f0(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 m,y;let f=d;const p=e,b=(m=s?.arrayMinItems)!==null&&m!==void 0?m:{},{populate:v,mergeExtraDefaults:w}=b,A=v==="never",O=v==="requiredOnly",g=v==="all"||!A&&!O,x=(y=b?.computeSkipPopulate)!==null&&y!==void 0?y:(()=>!1),j=s?.emptyObjectFields==="skipEmptyDefaults"?void 0:[];if(Array.isArray(f)&&(f=f.map((_,I)=>{const T=mi(p,mn.Fallback,I),N=Array.isArray(n)?n[I]:void 0;return wt(t,T,{rootSchema:r,_recurseList:i,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,parentDefaults:_,rawFormData:N,required:a,shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c})})),Array.isArray(n)){const _=mi(p);if(A)f=n;else{const I=n.map((N,F)=>wt(t,_,{rootSchema:r,_recurseList:i,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,rawFormData:N,parentDefaults:D(f,[F]),required:a,shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c}));f=Xn(f,I,(O&&a||g)&&w)}}if(A)return f??j;if(O&&!a)return f||void 0;let E;const C=Array.isArray(f)?f.length:0;if(!p.minItems||Is(t,p,r,o)||x(t,p,r)||p.minItems<=C)E=f||!a&&!l?f:j;else{const _=f||[],I=mi(p,mn.Invert),T=I.default,N=Array.from({length:p.minItems-C},()=>wt(t,I,{parentDefaults:T,rootSchema:r,_recurseList:i,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,required:a,shouldMergeDefaultsIntoFormData:u}));E=_.concat(N)}return oc(e,E)}function ra(t,e,n={},r){switch(Le(e)){case"object":return d0(t,e,n,r);case"array":return f0(t,e,n,r);default:return}}function ac(t,e,n,r,i=!1,s,o,a){if(!V(e))throw new Error(`Invalid schema: ${e}`);const l=Ce(t,e,r,n,o),u=wt(t,l,{rootSchema:r,includeUndefinedValues:i,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,rawFormData:n,shouldMergeDefaultsIntoFormData:!0,initialDefaultsGenerated:a,requiredAsRoot:!0});if(l.type!=="object"&&V(l.default))return{...u,...n};if(V(n)||Array.isArray(n)){const{mergeDefaultsIntoFormData:c}=s||{};return Xn(u,n,!0,c==="useDefaultIfFormDataUndefined",!0)}return u}function lc(t={}){return"widget"in M(t)&&M(t).widget!=="hidden"}function cc(t,e,n={},r,i){if(n[ls]==="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 h0(t,e,n={},r,i,s){const o=M(n,i),{label:a=!0}=o;let l=!!a;if(l){const u=Le(e),c=D(e,at,!1);u==="array"&&(l=c||Is(t,e,r,s)||cc(t,e,n,r,s)||lc(n)),u==="object"&&(l=c),u==="boolean"&&n&&!n[ls]&&(l=!1),n&&n[Tf]&&(l=!1)}return l}function uc(t,e,n){for(var r=-1,i=e.length,s={};++r<i;){var o=e[r],a=Mr(t,o);n(a,o)&&Os(s,yn(o,t),a)}return s}function m0(t,e){return uc(t,e,function(n,r){return Ll(t,r)})}var Ts=_l(function(t,e){return t==null?{}:m0(t,e)});function p0(t,e){if(e.length===0&&typeof t!="object")return t;const n=Ts(t,e);return Array.isArray(t)?Object.keys(n).map(r=>n[r]):n}function g0(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[as]&&u[yr]!==""?s.push(u[yr]):r(u,s,c)}else l===yr&&u!==""&&o.forEach(c=>{const d=D(e,c),m=a.length===1;(n(d,m)||Array.isArray(d)&&d.every(y=>n(y,m)))&&s.push(c)})}),s};return r(t)}function Bn(t){return fn(t)||t===""?!0:Array.isArray(t)?t.length===0:V(t)?Object.values(t).every(Bn):!1}function y0(t,e){return e?e(t):Yl(t)}function b0(t,e,n={},r,i){function s(f){return V(f)}function o(f){return V(f)}function a(f,p,b){var v;const{properties:w,additionalProperties:A,patternProperties:O,propertyNames:g}=f,x=new Set((v=f.required)!==null&&v!==void 0?v:[]);function S(E,C,_,I=!1){var T;const N=y(C,_,b[E]);if(!I&&V(N)){let F=o(C)?C:{};F.$ref!==void 0&&(F=Gn(F.$ref,n));const $=new Set((T=F.required)!==null&&T!==void 0?T:[]);if(Object.entries(N).every(([B,U])=>!$.has(B)&&Bn(U)))return}N!==void 0&&(b[E]=N)}if(w!==void 0)for(const[E,C]of Object.entries(w))S(E,C,p[E],x.has(E));let j;if(O!==void 0){j=[];const E=Object.entries(O).map(([_,I])=>[new RegExp(_),I]),C=new Set(Object.keys(w??{}));for(const[_,I]of Object.entries(p))if(!C.has(_)){const T=E.find(([N])=>N.test(_));T===void 0?j.push(_):S(_,T[1],I)}}if(A!==void 0&&A!==!1){const E=A;if(j!==void 0)for(const C of j)S(C,E,p[C]);else{const C=new Set(Object.keys(w??{}));for(const[_,I]of Object.entries(p))C.has(_)||S(_,E,I)}}if(g!==void 0)for(const[E,C]of Object.entries(p))b[E]=C;return b}function l(f,p,b){const{items:v,additionalItems:w}=f;if(v!==void 0)if(Array.isArray(v))for(let A=0;A<v.length;A+=1)b.push(y(v[A],p[A]));else for(let A=0;A<p.length;A+=1)b.push(y(v,p[A]));if(w)for(let A=b.length;A<p.length;A+=1)b.push(y(w,p[A]));return b}function u(f,p,b){const{if:v,then:w,else:A}=f;if(v===void 0)return b;const g=(o(v)?t.isValid(v,p,n):v)?w:A;return g===void 0?b:y(g,p,b)}function c(f,p,b,v){if(!Array.isArray(f)||Wr(t,p,n,i))return v;const w=Ql(f,!0,n),A=dn(t,n,b,w,0,He(p),i),O=f[A],g=V(O)?St(O,n,[]):w[A];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||V(p)&&Object.keys(p).length===0){let w=b;for(const A of v)w=y(A,p,w);return w}return c(v,f,p,b)}function m(f,p,b){const{dependencies:v}=f;if(v===void 0||!s(p))return b;let w=b;for(const[A,O]of Object.entries(v))A in p&&!Array.isArray(O)&&(w=y(O,p,w));return w}function y(f,p,b){if(p===void 0||f===!1)return;if(f===!0||ge(f))return p;let v=f;const{$ref:w,allOf:A}=v;if(w!==void 0)return y(Gn(w,n),p,b);A&&(v=y0(v,i));let O=d(v,p,c(v.oneOf,v,p,b));const g=Le(v);if(g==="object"){if(!s(p))return;O=a(v,p,s(O)?O:{})}else if(g==="array"){if(!Array.isArray(p))return;O=l(v,p,Array.isArray(O)?O:[])}else O===void 0&&(O=p);return m(v,p,u(v,p,O))}return y(e,r)}const De=Symbol("no Value");function dc(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 x0(t,e){const n=dc(t);if(!n||n.some(i=>ie(i,e)))return De;const r=D(t,Dt,De);return r!==De&&n.some(i=>ie(i,r))?r:n.length===1?n[0]:void 0}function Ki(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 m=D(r,[se,c],{}),y=D(n,[se,c],{});X(m,ue)&&(m=Ce(t,m,e,d,s)),X(y,ue)&&(y=Ce(t,y,e,d,s));const f=D(m,"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=Ki(t,e,y,m,d,s);(b!==void 0||p==="array")&&(u[c]=b)}else{const b=D(y,Dt,De),v=D(m,Dt,De);b!==De&&b!==d&&(v===d?a[c]=b:D(y,"readOnly")===!0&&(a[c]=void 0));const w=D(y,Ne,De),A=D(m,Ne,De);if(w!==De&&w!==d&&(a[c]=A===d?w:void 0),X(i,c)){const O=x0(y,d);O!==De&&(a[c]=O)}}}),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((m,y)=>{const f=Ki(t,e,l,a,y,s);return f!==void 0&&(d<0||m.length<d)&&m.push(f),m},[]);else{const m=dc(l),y=m?i.filter(f=>m.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 gt(t,e,n,r,i,s=[],o){if(ue in e||ss in e||Ot in e||os in e){const l=Ce(t,e,r,i,o);if(s.findIndex(c=>ie(c,l))===-1)return gt(t,l,n,r,i,s.concat(l),o)}let a={[yr]:n.replace(/^\./,"")};if(W in e||Q in e){const l=W in e?e.oneOf:e.anyOf,u=He(e),c=dn(t,r,i,l,0,u,o),d=l[c];a={...a,...gt(t,d,n,r,i,s,o)}}if(tn in e&&e[tn]!==!1){ce(a,as,!0);const l=te(e[tn])?e[tn]:{},u=D(e,se,{});for(const c of Object.keys(i??{}))c in u||(a[c]=gt(t,l,`${n}.${c}`,r,D(i,[c]),s,o))}if(an in e&&Array.isArray(i)){const{items:l,additionalItems:u}=e;Array.isArray(l)?i.forEach((c,d)=>{l[d]?a[d]=gt(t,l[d],`${n}.${d}`,r,c,s,o):u?a[d]=gt(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]=gt(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]=gt(t,u,`${n}.${l}`,r,D(i,[l]),s,o)}return a}function v0(t,e,n="",r,i,s){return gt(t,e,n,r,i,void 0,s)}class S0{constructor(e,n,r,i){n&&n[Fn]===br?this.rootSchema=Vi(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 t0(this.validator,this.rootSchema,e,n,r,this.experimental_customMergeAllOf)}findSelectedOptionInXxxOf(e,n,r,i){return $n(this.validator,this.rootSchema,e,n,r,i,this.experimental_customMergeAllOf)}getDefaultFormState(e,n,r=!1,i){return ac(this.validator,e,n,this.rootSchema,r,this.experimental_defaultFormStateBehavior,this.experimental_customMergeAllOf,i)}getDisplayLabel(e,n,r){return h0(this.validator,e,n,this.rootSchema,r,this.experimental_customMergeAllOf)}getClosestMatchingOption(e,n,r,i){return dn(this.validator,this.rootSchema,e,n,r,i,this.experimental_customMergeAllOf)}getFirstMatchingOption(e,n,r){return Fr(this.validator,e,n,this.rootSchema,r)}getFromSchema(e,n,r){return Sr(this.validator,this.rootSchema,e,n,r,this.experimental_customMergeAllOf)}isFilesArray(e,n){return cc(this.validator,e,n,this.rootSchema,this.experimental_customMergeAllOf)}isMultiSelect(e){return Is(this.validator,e,this.rootSchema,this.experimental_customMergeAllOf)}isSelect(e){return Wr(this.validator,e,this.rootSchema,this.experimental_customMergeAllOf)}omitExtraData(e,n){return b0(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 Ki(this.validator,this.rootSchema,e,n,r,this.experimental_customMergeAllOf)}toPathSchema(e,n,r){return v0(this.validator,e,n,this.rootSchema,r,this.experimental_customMergeAllOf)}}function w0(t,e,n={},r){return new S0(t,e,n,r)}function j0(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 yt(t,e){let n=String(t);for(;n.length<e;)n=`0${n}`;return n}function fc(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 fc(e,t).reverse();const a=[];for(let l=s;l<=o;l+=1)a.push({value:l,label:yt(l,2)});return a}function O0(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 A0(t,e){return O0(t,e)}function Hr(t,e=[],n){if(Array.isArray(t))return t.map(s=>Hr(s,e)).filter(s=>s!==void 0);const r=t===""||t===null?-1:Number(t),i=e[r];return i?i.value:n}function hc(t,e,n=[]){const r=Hr(t,n);return Array.isArray(e)?e.filter(i=>!ie(i,r)):ie(r,e)?void 0:e}function sr(t,e){return Array.isArray(e)?e.some(n=>ie(n,t)):ie(e,t)}function E0(t,e=[],n=!1){const r=e.map((i,s)=>sr(i.value,t)?String(s):void 0).filter(i=>typeof i<"u");return n?r:r[0]}function mc(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=E0(t,e,n);return typeof o>"u"?i:o}function pc(t,e,n=[]){const r=Hr(t,n);if(!fn(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 ia(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"?Hr(t,e,r):Array.isArray(t)?t.map(i=>ia(i,e,r)):ia(t,e,r)}function or(t,e,n="indexed"){return n!=="realValue"?String(e):fn(t)?"":String(typeof t=="object"?e:t)}var C0=1,_0=4;function Ns(t){return Ln(t,C0|_0)}function I0(t,e,n,r){return r=typeof r=="function"?r:void 0,t==null?t:Os(t,e,n,r)}class gc{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={},I0(this.errorSchema,e,r,Object)),r}resetAllErrors(e){return this.errorSchema=e?Ns(e):{},this}addErrors(e,n){const r=this.getOrCreateErrorBlock(n);let i=D(r,Ee);return Array.isArray(i)||(i=[],r[Ee]=i),Array.isArray(e)?ce(r,Ee,[...new Set([...i,...e])]):ce(r,Ee,[...new Set([...i,e])]),this}setErrors(e,n){const r=this.getOrCreateErrorBlock(n),i=Array.isArray(e)?[...new Set([...e])]:[e];return ce(r,Ee,i),this}clearErrors(e){const n=this.getOrCreateErrorBlock(e);return ce(n,Ee,[]),this}}var T0=200;function N0(t,e,n,r){var i=-1,s=Cs,o=!0,a=t.length,l=[],u=e.length;if(!a)return l;e.length>=T0&&(s=Jn,o=!1,e=new Mt(e));e:for(;++i<a;){var c=t[i],d=c;if(c=c!==0?c:0,o&&d===d){for(var m=u;m--;)if(e[m]===d)continue e;l.push(c)}else s(e,d,r)||l.push(c)}return l}var F0=qr(function(t,e){return Yn(t)?N0(t,ir(e,1,Yn,!0)):[]});function P0(t,e){if(t==null)return{};var n=gn(Ss(t),function(r){return[r]});return e=Es(e),uc(t,n,function(r,i){return e(r,i[0])})}function sa(t,e){const n=At(t),r=At(e);if(t===e||!n&&!r)return[];if(n&&!r)return ze(t);if(!n&&r)return ze(e);const i=ze(P0(t,(o,a)=>!ie(o,D(e,a)))),s=F0(ze(e),ze(t));return[...i,...s]}function $0(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},m={type:"year",range:n,value:o},y=[];switch(r){case"MDY":y.push(d,c,m);break;case"DMY":y.push(c,d,m);break;default:y.push(m,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 yc(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 bc(t,e,n={},r=!0){const i={type:e||"text",...yc(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 oa={props:{disabled:!1},submitText:"Submit",norender:!1};function xc(t={}){const e=M(t);if(e&&e[Cr]){const n=e[Cr];return{...oa,...n}}return oa}function q(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 D0=0;function vc(t){var e=++D0;return ds(t)+e}function Fs(){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,vc("test-id-")),t.get(n)}})}const pi={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 k0(t){let e=D(t,"MergedWidget");if(!e){const n=t.defaultProps&&t.defaultProps.options||{};e=({options:r,...i})=>h.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&&Js.isForwardRef(P.createElement(e))||Js.isMemo(e))return k0(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 pi))throw new Error(`No widget for type '${r}' in schema: ${JSON.stringify(t)}`);if(e in pi[r]){const i=n[pi[r][e]];return tt(t,i,n)}}throw new Error(`No widget '${e}' for type '${r}' in schema: ${JSON.stringify(t)}`)}function R0(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 M0(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 R0(M0(t))}function U0(t){return Xe(t)}function L0(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 Ht(t,e){return`${Ct(t)?t:t[de]}__${e}`}function Kt(t){return Ht(t,"description")}function Ps(t){return Ht(t,"error")}function Kr(t){return Ht(t,"examples")}function $s(t){return Ht(t,"help")}function Gr(t){return Ht(t,"title")}function Pe(t,e=!1){const n=e?` ${Kr(t)}`:"";return`${Ps(t)} ${Kt(t)} ${$s(t)}${n}`}function $t(t,e){return`${t}-${e}`}function Qe(t,e){return Ht(t,e)}function gi(t,e){return Ht(t,`optional${e}`)}function vn(t){return!fn(t)&&(!te(t)||Array.isArray(t)||!ge(t))}function B0(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,un(i,Mn))}return!1}function Sc(t,e,n){return e?n:t}function q0(t){return t?new Date(t).toJSON():void 0}function Ds(t,e,n){const r=[If];return X(t,so)&&r.unshift(so),D(t,[...r,e],n)}function V0(t,e){if(!Array.isArray(e))return t;const n=c=>c.reduce((d,m)=>(d[m]=!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 yi(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 rn(t,e,n,r){if(!V(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 m=r.map((y,f)=>{let p=c;Array.isArray(c)&&(p=c[f]||i.additionalItems||{});const b=rn(t,p,n,y);return b!==y&&(d=!0),b===void 0?{}:b});return d?m:r}const{properties:s,required:o=[]}=i;if(!V(r)||!s)return r;const a={},l=r;let u=!1;for(const c of Object.keys(l)){const d=l[c],m=s[c]||{},y=o.includes(c),f=V(d),p=Array.isArray(d);if((f||p)&&s[c]){const b=rn(t,m,n,d);(y||!Bn(b))&&(a[c]=b,u=!0)}else(y||!Bn(d)||!s[c])&&(a[c]=d,Bn(d)||(u=!0))}if(!(!u&&Object.keys(a).length===0))return a}function z0(t,e,n){var r,i;const s=(r=t[Mn])!==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=Ut(a,e):l=e||{},o){let u=t;if(s&&t[ue]&&!t[Mn])try{u=Gn(s,n.rootSchema)}catch(c){return console.warn(`could not resolve $ref in resolveUiSchema:
3
3
  `,c),l}for(const c of[W,Q]){const d=u[c];if(Array.isArray(d)&&d.length>0){const m=l[c],y=Array.isArray(m)?[...m]:[];let f=!1;for(let p=0;p<d.length;p++){const b=d[p],v=(i=b?.[Mn])!==null&&i!==void 0?i:b?.[ue];if(v&&v in o){const w=y[p]||{};y[p]=Ut(o[v],w),f=!0}}f&&(l[c]=y)}}}return l}function qn(t){if(t.const||t.enum&&t.enum.length===1&&t.enum[0]===!0)return!0;if(t.anyOf&&t.anyOf.length===1)return qn(t.anyOf[0]);if(t.oneOf&&t.oneOf.length===1)return qn(t.oneOf[0]);if(t.allOf){const e=n=>qn(n);return t.allOf.some(e)}return!1}function aa(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 wc(t,e,n,r="customDeep"){if(r==="always")return!0;if(r==="shallow"){const{props:o,state:a}=t;return!aa(o,e)||!aa(a,n)}const{props:i,state:s}=t;return!ie(i,e)||!ie(s,n)}function la(t){const e=Vl(t.map(n=>te(n)?Le(n):void 0).flat().filter(n=>n!==void 0));return e.length===1?e[0]:e}function ar(t,e,n,r){const{enableOptionalDataFieldForType:i=[]}=M(r,t.globalUiOptions);let s;return Q in e&&Array.isArray(e[Q])?s=la(e[Q]):W in e&&Array.isArray(e[W])?s=la(e[W]):s=Le(e),!B0(t,e)&&!n&&!!s&&!Array.isArray(s)&&!!i.find(o=>o===s)}function ca(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 ks(t,e=[]){if(!t)return[];let n=[];return Ee in t&&(n=n.concat(t[Ee].map(r=>{const i=`.${e.join(".")}`;return{property:i,message:r,stack:`${i} ${r}`}}))),Object.keys(t).reduce((r,i)=>{if(i!==Ee){const s=t[i];if(At(s))return r.concat(ks(s,[...e,i]))}return r},n)}function jc(t){return Se(t)?gn(t,Et):Qn(t)?[t]:bs(rl(ds(t)))}function W0(t){const e=new gc;return t.length&&t.forEach(n=>{const{property:r,message:i}=n,s=r==="."?[]:jc(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 Oc(t){return Object.keys(t).reduce((e,n)=>{if(n==="addError")return e;const r=t[n];return At(r)?{...e,[n]:Oc(r)}:{...e,[n]:r}},{})}function H0(t){return Object.values(t).every(e=>e!==-1)}function K0(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:m,onFocus:y}=t,f=`${o}_${n}`,{SelectWidget:p}=d.widgets,b=P.useCallback(v=>s(n,v),[s,n]);return h.jsx(p,{schema:{type:"integer"},id:f,name:a,className:e,options:{enumOptions:fc(r[0],r[1])},placeholder:n,value:i,disabled:l,readonly:u,autofocus:c,onChange:b,onBlur:m,onFocus:y,registry:d,label:"","aria-describedby":Pe(o)})}function G0(t){const{time:e=!1,disabled:n=!1,readonly:r=!1,options:i,onChange:s,value:o}=t,[a,l]=P.useState(yi(o,e));P.useEffect(()=>{l(yi(o,e))},[e,o]);const u=P.useCallback((y,f)=>{const p={...a,[y]:typeof f>"u"?-1:f};H0(p)?s(ca(p,e)):l(p)},[a,s,e]),c=P.useCallback(y=>{y.preventDefault(),!(n||r)&&s(void 0)},[n,r,s]),d=P.useCallback(y=>{if(y.preventDefault(),n||r)return;const f=yi(new Date().toJSON(),e);s(ca(f,e))},[n,r,e,s]);return{elements:P.useMemo(()=>$0(a,e,i.yearsRange,i.format),[a,e,i.yearsRange,i.format]),handleChange:u,handleClear:c,handleSetNow:d}}function Gt(t){const e=P.useRef(t);return ie(t,e.current)||(e.current=t),e.current}function Y0(t,e){return t.replace(";base64",`;name=${encodeURIComponent(e)};base64`)}function J0(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:Y0(a.target.result,e),name:e,size:n,type:r}):i({dataURL:null,name:e,size:n,type:r})},o.readAsDataURL(t)})}function Z0(t){return Promise.all(Array.from(t).map(J0))}function ua(t){return t.reduce((e,n)=>{if(!n)return e;try{const{blob:r,name:i}=j0(n);return[...e,{dataURL:n,name:i,size:r.size,type:r.type}]}catch{return e}},[])}function X0(t,e,n=!1){const r=P.useMemo(()=>n&&t?Array.isArray(t)?t:[t]:[],[t,n]),i=P.useMemo(()=>Array.isArray(t)?ua(t):ua([t||""]),[t]),s=P.useCallback(async a=>{const u=(await Z0(a)).map(c=>c.dataURL||null);e(n?r.concat(...u):u[0])},[r,n,e]),o=P.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 Q0(t){if(!t)return"";const e=new Date(t),n=yt(e.getFullYear(),4),r=yt(e.getMonth()+1,2),i=yt(e.getDate(),2),s=yt(e.getHours(),2),o=yt(e.getMinutes(),2),a=yt(e.getSeconds(),2),l=yt(e.getMilliseconds(),3);return`${n}-${r}-${i}T${s}:${o}:${a}.${l}`}function Dn(t,e,n=!1){if(!e)return t;const{errors:r,errorSchema:i}=t;let s=ks(e),o=e;return ge(i)||(o=Ut(i,e,n?"preventDuplicates":!0),s=[...r].concat(s)),{errorSchema:o,errors:s}}function ex(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]=Za+r:e[n]=Rs(r)}return t}function tx(t){return t.map(e=>Rs(e))}function Rs(t){return Array.isArray(t)?tx([...t]):te(t)?ex({...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 nx(t,e){var n=Se(t)?ps:rc;return n(t,Pl(e))}function rx(t,e){return t==null?!0:Al(t,e)}function Gi(){return vc("rjsf-array-item-")}function da(t){return Array.isArray(t)?t.map(e=>({key:Gi(),item:e})):[]}function Ac(t){return Array.isArray(t)?t.map(e=>e.item):[]}function ix(t){return Array.isArray(t.type)?!t.type.includes("null"):t.type!=="null"}function Ec(t,e,n,r){let{addable:i}=M(r,t.globalUiOptions);return i!==!1&&(e.maxItems!==void 0?i=n.length<e.maxItems:i=!0),i}function Cc(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 sx(t,e){const{schemaUtils:n,globalFormOptions:r}=t;let i=e.items;return r.useFallbackUiForUnsupportedType&&!i?i={}:_s(e)&&Af(e)&&(i=e.additionalItems),n.getDefaultFormState(i)}function ox(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:m,rawErrors:y,name:f,onSelectChange:p}=t,{widgets:b,schemaUtils:v,globalFormOptions:w,globalUiOptions:A}=m,O=v.retrieveSchema(e.items,i),g=r?.items??r,x=hn(O,g),{widget:S="select",title:j,...E}=M(r,A),C=tt(e,S,b),_=j??e.title??f,I=v.getDisplayLabel(e,r,A),T=Gt(Be("",w,n,!0));return h.jsx(C,{id:T[de],name:f,multiple:!0,onChange:p,onBlur:c,onFocus:d,options:{...E,enumOptions:x},schema:e,uiSchema:r,registry:m,value:i,disabled:s,readonly:o,required:l,label:_,hideLabel:!I,placeholder:u,autofocus:a,rawErrors:y,htmlName:T.name})}function ax(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:m=[],registry:y,rawErrors:f,name:p,onSelectChange:b}=t,{widgets:v,schemaUtils:w,globalFormOptions:A,globalUiOptions:O}=y,{widget:g,title:x,...S}=M(r,O),j=tt(e,g,v),E=x??e.title??p,C=w.getDisplayLabel(e,r,O),_=Gt(Be("",A,n,!0));return h.jsx(j,{id:_[de],name:p,multiple:!0,onChange:b,onBlur:c,onFocus:d,options:S,schema:e,uiSchema:r,registry:y,value:m,disabled:i,readonly:s,hideError:l,required:a,label:E,hideLabel:!C,placeholder:u,autofocus:o,rawErrors:f,htmlName:_.name})}function lx(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:m=[],rawErrors:y,onSelectChange:f}=t,{widgets:p,schemaUtils:b,globalFormOptions:v,globalUiOptions:w}=d,{widget:A="files",title:O,...g}=M(n,w),x=tt(e,A,p),S=O??e.title??i,j=b.getDisplayLabel(e,n,w),E=Gt(Be("",v,r,!0));return h.jsx(x,{options:g,id:E[de],name:i,multiple:!0,onChange:f,onBlur:u,onFocus:c,schema:e,uiSchema:n,value:m,disabled:s,readonly:o,required:l,registry:d,autofocus:a,rawErrors:y,label:S,hideLabel:!j,htmlName:E.name})}function _c(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:m,canMoveDown:y,itemSchema:f,itemData:p,itemUiSchema:b,itemFieldPathId:v,itemErrorSchema:w,autofocus:A,onBlur:O,onFocus:g,onChange:x,rawErrors:S,totalItems:j,title:E,handleAddItem:C,handleCopyItem:_,handleRemoveItem:I,handleReorderItems:T}=t,{schemaUtils:N,fields:{ArraySchemaField:F,SchemaField:$},globalUiOptions:k}=a,B=Gt(v),U=F||$,Y=q("ArrayFieldItemTemplate",a,l),ne=N.getDisplayLabel(f,b,k),{description:fe}=M(b),ye=!!fe||!!f.description,{orderable:R=!0,removable:le=!0,copyable:ee=!1}=l,H={moveUp:R&&m,moveDown:R&&y,copy:ee&&c,remove:le&&d,toolbar:!1};H.toolbar=Object.keys(H).some(xe=>H[xe]);const K=P.useCallback(xe=>{C(xe,n+1)},[C,n]),z=P.useCallback(xe=>{_(xe,n)},[_,n]),re=P.useCallback(xe=>{I(xe,n)},[I,n]),oe=P.useCallback(xe=>{T(xe,n,n-1)},[T,n]),Oe=P.useCallback(xe=>{T(xe,n,n+1)},[T,n]),Ae={children:h.jsx(U,{name:r,title:E,index:n,schema:f,uiSchema:b,formData:p,errorSchema:w,fieldPathId:B,required:ix(f),onChange:x,onBlur:O,onFocus:g,registry:a,disabled:i,readonly:o,hideError:s,autofocus:A,rawErrors:S}),buttonsProps:{fieldPathId:B,disabled:i,readonly:o,canAdd:c,hasCopy:H.copy,hasMoveUp:H.moveUp,hasMoveDown:H.moveDown,hasRemove:H.remove,index:n,totalItems:j,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:j,readonly:o,registry:a,schema:f,uiSchema:b,parentUiSchema:u,displayLabel:ne,hasDescription:ye};return h.jsx(Y,{...Ae})}function cx(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:m=!1,registry:y,onBlur:f,onFocus:p,rawErrors:b,onChange:v,keyedFormData:w,handleAddItem:A,handleCopyItem:O,handleRemoveItem:g,handleReorderItems:x}=t,S=e.title||a||o,{schemaUtils:j,fields:E,formContext:C,globalFormOptions:_,globalUiOptions:I}=y,{OptionalDataControlsField:T}=E,N=M(n,I),F=te(e.items)?e.items:{},$=j.retrieveSchema(F),k=Ac(w),B=ar(y,e,d,n),U=vn(s),Y=Ec(y,e,k,n)&&(!B||U),ne=U?w:[],fe=B?" rjsf-optional-array-field":"",ye=t.childFieldPathId??i,R=B?h.jsx(T,{...t,fieldPathId:ye}):void 0,le={canAdd:Y,items:ne.map((H,K)=>{const{key:z,item:re}=H,oe=re,Oe=j.retrieveSchema(F,oe),Ae=r?r[K]:void 0,xe=Be(K,_,ye),$e=Cc(n,re,K,C),ht={itemKey:z,index:K,name:o&&`${o}-${K}`,registry:y,uiOptions:N,parentUiSchema:n,hideError:m,readonly:u,disabled:l,required:d,title:S?`${S}-${K+1}`:void 0,canAdd:Y,canMoveUp:K>0,canMoveDown:K<k.length-1,itemSchema:Oe,itemFieldPathId:xe,itemErrorSchema:Ae,itemData:oe,itemUiSchema:$e,autofocus:c&&K===0,onBlur:f,onFocus:p,rawErrors:b,totalItems:w.length,handleAddItem:A,handleCopyItem:O,handleRemoveItem:g,handleReorderItems:x,onChange:v};return h.jsx(_c,{...ht},z)}),className:`rjsf-field rjsf-field-array rjsf-field-array-of-${$.type}${fe}`,disabled:l,fieldPathId:i,uiSchema:n,onAddClick:A,readonly:u,required:d,schema:e,title:S,formData:k,rawErrors:b,registry:y,optionalDataControl:R},ee=q("ArrayFieldTemplate",y,N);return h.jsx(ee,{...le})}function ux(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:m=!1,registry:y,onBlur:f,onFocus:p,rawErrors:b,keyedFormData:v,onChange:w,handleAddItem:A,handleCopyItem:O,handleRemoveItem:g,handleReorderItems:x}=t;let{formData:S=[]}=t;const j=e.title||a||o,{schemaUtils:E,fields:C,formContext:_,globalFormOptions:I,globalUiOptions:T}=y,N=M(n,T),{OptionalDataControlsField:F}=C,$=ar(y,e,d,n),k=vn(r),U=(te(e.items)?e.items:[]).map((K,z)=>E.retrieveSchema(K,S[z])),Y=te(e.additionalItems)?E.retrieveSchema(e.additionalItems,r):null,ne=t.childFieldPathId??s;S.length<U.length&&(S=S.concat(new Array(U.length-S.length)));const fe=k?v:[],ye=$?" rjsf-optional-array-field":"",R=$?h.jsx(F,{...t,fieldPathId:ne}):void 0,le=Ec(y,e,S,n)&&!!Y&&(!$||k),ee={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,Ae=z>=U.length,xe=(Ae&&te(e.additionalItems)?E.retrieveSchema(e.additionalItems,Oe):U[z])||{},$e=Be(z,I,ne);let ht;Ae?ht=n.additionalItems:Array.isArray(n.items)?ht=n.items[z]:ht=Cc(n,oe,z,_);const wn=i?i[z]:void 0,jn={index:z,itemKey:re,name:o&&`${o}-${z}`,registry:y,uiOptions:N,parentUiSchema:n,hideError:m,readonly:u,disabled:l,required:d,title:j?`${j}-${z+1}`:void 0,canAdd:le,canRemove:Ae,canMoveUp:z>=U.length+1,canMoveDown:Ae&&z<S.length-1,itemSchema:xe,itemData:Oe,itemUiSchema:ht,itemFieldPathId:$e,itemErrorSchema:wn,autofocus:c&&z===0,onBlur:f,onFocus:p,rawErrors:b,totalItems:v.length,onChange:w,handleAddItem:A,handleCopyItem:O,handleRemoveItem:g,handleReorderItems:x};return h.jsx(_c,{...jn},re)}),onAddClick:A,readonly:u,required:d,registry:y,schema:e,uiSchema:n,title:j,errorSchema:i,rawErrors:b,optionalDataControl:R},H=q("ArrayFieldTemplate",y,N);return h.jsx(H,{...ee})}function dx(t=[]){const e=P.useMemo(()=>Xe(t),[t]),[n,r]=P.useState(()=>({formDataHash:e,keyedFormData:da(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]})):da(a),s=e,r({formDataHash:s,keyedFormData:i})}const o=P.useCallback(a=>{const l=Ac(a),u=Xe(l);return r({formDataHash:u,keyedFormData:a}),l},[]);return{keyedFormData:i,updateKeyedFormData:o}}function fx(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:m}=dx(o),y=t.childFieldPathId??i,f=P.useCallback((x,S)=>{x&&x.preventDefault();let j;if(r){j={};for(const _ in r){const I=parseInt(_);S===void 0||I<S?ce(j,[I],r[_]):I>=S&&ce(j,[I+1],r[_])}}const E={key:Gi(),item:sx(s,e)},C=[...d];S!==void 0?C.splice(S,0,E):C.push(E),a(m(C),y.path,j)},[d,s,e,a,m,r,y]),p=P.useCallback((x,S)=>{x&&x.preventDefault();let j;if(r){j={};for(const _ in r){const I=parseInt(_);I<=S?ce(j,[I],r[_]):I>S&&ce(j,[I+1],r[_])}}const E={key:Gi(),item:Ns(d[S].item)},C=[...d];S!==void 0?C.splice(S+1,0,E):C.push(E),a(m(C),y.path,j)},[d,a,m,r,y]),b=P.useCallback((x,S)=>{x&&x.preventDefault();let j;if(r){j={};for(const C in r){const _=parseInt(C);_<S?ce(j,[_],r[C]):_>S&&ce(j,[_-1],r[C])}}const E=d.filter((C,_)=>_!==S);a(m(E),y.path,j)},[d,a,m,r,y]),v=P.useCallback((x,S,j)=>{x&&(x.preventDefault(),x.currentTarget.blur());let E;if(r){E={};for(const I in r){const T=parseInt(I);T==S?ce(E,[j],r[S]):T==j?ce(E,[S],r[j]):ce(E,[I],r[T])}}function C(){const I=d.slice();return I.splice(S,1),I.splice(j,0,d[S]),I}const _=C();a(m(_),y.path,E)},[d,a,m,r,y]),w=P.useCallback((x,S,j,E)=>{a(x===void 0?null:x,S,j,E)},[a]),A=P.useCallback(x=>{a(x,y.path,void 0,y?.[de])},[a,y]),O={...t,formData:o,fieldPathId:y,onSelectChange:A},g={...t,handleAddItem:f,handleCopyItem:p,handleRemoveItem:b,handleReorderItems:v,keyedFormData:d,onChange:w};if(!(an in e)){if(!l.useFallbackUiForUnsupportedType){const S=M(n),j=q("UnsupportedFieldTemplate",s,S);return h.jsx(j,{schema:e,fieldPathId:i,reason:c(G.MissingItems),registry:s})}const x={...e,[an]:{type:void 0}};O.schema=x,g.schema=x}return u.isMultiSelect(O.schema)?h.jsx(ox,{...O}):lc(n)?h.jsx(ax,{...O}):_s(O.schema)?h.jsx(ux,{...g}):u.isFilesArray(O.schema,n)?h.jsx(lx,{...O}):h.jsx(cx,{...g})}function hx(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:m,onChange:y,onFocus:f,onBlur:p,rawErrors:b}=t,{title:v}=e,{widgets:w,translateString:A,globalUiOptions:O}=o,{widget:g="checkbox",title:x,label:S=!0,enumNames:j,...E}=M(r,O),C=tt(e,g,w),_=A(G.YesLabel),I=A(G.NoLabel);let T;const N=x??v??m??n;if(Array.isArray(e.oneOf))T=hn({oneOf:e.oneOf.map($=>{if(te($))return{...$,title:$.title||($.const===!0?_:I)}}).filter($=>$)},r);else{const $=e.enum??[!0,!1];!j&&$.length===2&&$.every(k=>typeof k=="boolean")?T=[{value:$[0],label:$[0]?_:I},{value:$[1],label:$[1]?_:I}]:T=hn({enum:$},r)}const F=P.useCallback(($,k,B)=>y($,i.path,k,B),[y,i]);return h.jsx(C,{options:{...E,enumOptions:T},schema:e,uiSchema:r,id:i.$id,name:n,onChange:F,onFocus:f,onBlur:p,label:N,hideLabel:!S,value:s,required:a,disabled:l,readonly:u,hideError:c,registry:o,autofocus:d,rawErrors:b,htmlName:i.name})}function mx(t){return{type:"string",enum:["string","number","boolean","object","array"],default:"string",title:t}}function px(t){const e=typeof t;return e==="string"||e==="number"||e==="boolean"?e:e==="object"?Array.isArray(t)?"array":"object":"string"}function gx(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 yx(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:m,fieldPathId:y,onChange:f,errorSchema:p}=t,{translateString:b,fields:v,globalFormOptions:w}=m,[A,O]=P.useState(px(n)),g=M(o),x=Gt(Be("__internal_type_selector",w,y)),S=b(G.Type),j=P.useMemo(()=>mx(S),[S]),E=I=>{I!=null&&(O(I),f(gx(n,I),y.path,p,e))};if(!w.useFallbackUiForUnsupportedType){const{reason:I=b(G.UnknownFieldType,[String(i.type)])}=t,T=q("UnsupportedFieldTemplate",m,g);return h.jsx(T,{schema:i,fieldPathId:y,reason:I,registry:m})}const C=q("FallbackFieldTemplate",m,g),{SchemaField:_}=v;return h.jsx(C,{schema:i,registry:m,typeSelector:h.jsx(_,{fieldPathId:x,name:`${s}__fallback_type`,schema:j,formData:A,onChange:E,onBlur:c,onFocus:d,registry:m,hideLabel:!r,disabled:l,readonly:u,required:a},n?Xe(n):"__empty__"),schemaField:h.jsx(_,{...t,schema:{type:A,title:b(G.Value),...A==="object"&&{additionalProperties:!0}}})})}function bx(t,e){return gn(e,function(n){return t[n]})}function xx(t){return t==null?[]:bx(t,ze(t))}var vx=Math.max;function Sx(t,e,n,r){t=Wt(t)?t:xx(t),n=n?$l(n):0;var i=t.length;return n<0&&(n=vx(i+n,0)),Ct(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&Bl(t,e,n)>-1}var wx=Math.min;function jx(t,e,n){for(var r=Cs,i=t[0].length,s=t.length,o=s,a=Array(s),l=1/0,u=[];o--;){var c=t[o];l=wx(c.length,l),a[o]=i>=120&&c.length>=120?new Mt(o&&c):void 0}c=t[0];var d=-1,m=a[0];e:for(;++d<i&&u.length<l;){var y=c[d],f=y;if(y=y!==0?y:0,!(m?Jn(m,f):r(u,f))){for(o=s;--o;){var p=a[o];if(!(p?Jn(p,f):r(t[o],f)))continue e}m&&m.push(f),u.push(y)}}return u}function Ox(t){return Yn(t)?t:[]}var fa=qr(function(t){var e=gn(t,Ox);return e.length&&e[0]===t[0]?jx(e):[]});function wr(t,e){return Vr(t,e)}function Ic(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 Vn;(function(t){t.ALL="all",t.SOME="some",t.NONE="none"})(Vn||(Vn={}));const Ax=/^\$lookup=(.+)/,bi="layoutGrid";function ha(t,e){return t??e}function Ex(t){return/^\d+?$/.test(t)}const jt=Fs();function Cx(t,e,n,r,i){const s=D(n,[ki],{}),o=D(n,t),a={...D(o,[vt],{}),...e,...s},l={...o};ge(a)||ce(l,[vt],a),ge(s)||ce(l,[ki],s);let{readonly:u}=M(l);return(i===!0||Ic(u)&&r===!0)&&(u=!0,X(a,Xr)?ce(l,[vt,Xr],!0):ce(l,`ui:${Xr}`,!0)),{fieldUiSchema:l,uiReadonly:u}}function _x(t,e,n="$0m3tH1nG Un3xP3cT3d"){const r=qi([e]).sort(),i=qi([n]).sort();switch(t){case Vn.ALL:return wr(r,i);case Vn.SOME:return fa(r,i).length>0;case Vn.NONE:return fa(r,i).length===0;default:return!1}}function Yr(t,e,n){let r={},i=t[e];if(At(i)){const{children:s,className:o,...a}=i;if(i=s,o){const u=o.split(" ").map(c=>Ds(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 ma(t,e,n){let r;if(Ex(n)&&t&&t?.type==="array"&&X(t,an)){const i=Number(n),s=t[an];Array.isArray(s)?i>s.length?r=Ol(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 Ix(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),m=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,Q))){const v=X(d,W)?W:Q,w=s.findSelectedOptionInXxxOf(d,b,v,m);a=D(w,[se,b],{})}else{const v=ma(d,l,b);a=v.rawSchema??{},l=v.fieldPathId}m=D(m,b,{}),d=s.retrieveSchema(a,m),y=ha(d.readOnly,y)});let f,p=!1;if(ge(d)&&(d=void 0),d&&c){if(d&&(X(d,W)||X(d,Q))){const v=X(d,W)?W:Q;d=s.findSelectedOptionInXxxOf(d,c,v,m)}l=Be(c,o,l),p=d!==void 0&&Array.isArray(d.required)&&Sx(d.required,c);const b=ma(d,l,c);if(b.rawSchema?(d=b.rawSchema,l=b.fieldPathId):(d=D(d,[se,c]),d=d&&s.retrieveSchema(d)),y=ha(d?.readOnly,y),d&&(X(d,W)||X(d,Q))){const v=X(d,W)?W:Q,w=He(d);f={options:d[v],hasDiscriminator:!!w}}}return{schema:d,isRequired:p,isReadonly:y,optionsInfo:f,fieldPathId:l}}function Tx(t,e){let n=t;return Ct(n)&&(n=Ds(e,n)),er(n)?n:null}function Nx(t,e){let n,r=null,i={},s;if(Ct(e)||Ic(e))n=e??"";else{const{name:o="",render:a,...l}=e;n=o,i=l,ge(i)||nx(i,(u,c)=>{if(Ct(u)){const d=Ax.exec(u);if(Array.isArray(d)&&d.length>1){const m=d[1];i[c]=Ds(t,m,m)}}}),r=Tx(a,t),!o&&r&&(s=h.jsx(r,{...l,"data-testid":jt.uiComponent}))}return{name:n,UIComponent:r,uiProps:i,rendered:s}}function Jr(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=>P.createElement(Ms,{...n,key:`layoutGrid-${Xe(l)}`,schema:a,layoutGridSchema:l}))}function Fx(t){const{layoutGridSchema:e,...n}=t,{formData:r,registry:i}=n,{children:s,gridProps:o}=Yr(e,et.CONDITION,i),{operator:a,field:l="",value:u}=o,c=D(r,l,null);return _x(a,c,u)?h.jsx(Jr,{...n,childrenLayoutGridSchemaId:s}):null}function Px(t){const{layoutGridSchema:e,...n}=t,{registry:r,uiSchema:i}=n,{children:s,gridProps:o}=Yr(e,et.COLUMN,r),a=M(i),l=q("GridTemplate",r,a);return h.jsx(l,{column:!0,"data-testid":jt.col,...o,children:h.jsx(Jr,{...n,childrenLayoutGridSchemaId:s})})}function $x(t){const{layoutGridSchema:e,...n}=t,{registry:r,uiSchema:i}=n,{children:s,gridProps:o}=Yr(e,et.COLUMNS,r),a=M(i),l=q("GridTemplate",r,a);return s.map(u=>h.jsx(l,{column:!0,"data-testid":jt.col,...o,children:h.jsx(Jr,{...n,childrenLayoutGridSchemaId:[u]})},`column-${Xe(u)}`))}function Dx(t){const{layoutGridSchema:e,...n}=t,{registry:r,uiSchema:i}=n,{children:s,gridProps:o}=Yr(e,et.ROW,r),a=M(i),l=q("GridTemplate",r,a);return h.jsx(l,{...o,"data-testid":jt.row,children:h.jsx(Jr,{...n,childrenLayoutGridSchemaId:s})})}function kx(t){const{gridSchema:e,schema:n,uiSchema:r,errorSchema:i,fieldPathId:s,onBlur:o,onFocus:a,formData:l,readonly:u,registry:c,layoutGridSchema:d,...m}=t,{onChange:y}=m,{fields:f}=c,{SchemaField:p,LayoutMultiSchemaField:b}=f,v=Nx(c,e),{name:w,UIComponent:A,uiProps:O}=v,{schema:g,isRequired:x,isReadonly:S,optionsInfo:j,fieldPathId:E}=Ix(c,w,n,l,s),C=Gt(E);if(v.rendered)return v.rendered;if(g){const _=j?.hasDiscriminator?b:p,{fieldUiSchema:I,uiReadonly:T}=Cx(w,O,r,S,u);return h.jsx(_,{"data-testid":j?.hasDiscriminator?jt.layoutMultiSchemaField:jt.field,...m,name:w,required:x,readonly:T,schema:g,uiSchema:I,errorSchema:D(i,w),fieldPathId:C,formData:D(l,w),onChange:y,onBlur:o,onFocus:a,options:j?.options,registry:c})}return A?h.jsx(A,{"data-testid":jt.uiComponent,...m,name:w,required:x,formData:l,readOnly:!!S||u,errorSchema:i,uiSchema:r,schema:n,fieldPathId:s,onBlur:o,onFocus:a,registry:c,...O}):null}function Ms(t){const{uiSchema:e}=t;let{layoutGridSchema:n}=t;const r=M(e);if(!n&&bi in r&&te(r[bi])&&(n=r[bi]),te(n)){if(et.ROW in n)return h.jsx(Dx,{...t,layoutGridSchema:n});if(et.COLUMN in n)return h.jsx(Px,{...t,layoutGridSchema:n});if(et.COLUMNS in n)return h.jsx($x,{...t,layoutGridSchema:n});if(et.CONDITION in n)return h.jsx(Fx,{...t,layoutGridSchema:n})}return h.jsx(kx,{...t,gridSchema:n})}Ms.TEST_IDS=jt;function Rx(t){const{fieldPathId:e,title:n,schema:r,uiSchema:i,required:s,registry:o,name:a}=t,l=M(i,o.globalUiOptions),{title:u}=l,{title:c}=r,d=u||n||c||a;if(!d)return null;const m=q("TitleFieldTemplate",o,l);return h.jsx(m,{id:Gr(e),title:d,required:s,schema:r,uiSchema:i,registry:o})}function xi(t,e,n){const r="!@#!@$@#$!@$#";return t.map(({schema:s})=>s).find(s=>{const o=D(s,[se,e]);return D(o,Dt,D(o,Ne,r))===n})}function pa(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,Q)&&(o={...t,[Q]:s});const a=hn(o,r);if(!a)throw new Error(`No enumOptions were computed from the schema ${JSON.stringify(o)}`);return a}function Mx(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:m,autofocus:y,readonly:f,required:p,errorSchema:b,hideError:v=!1}=t,{widgets:w,schemaUtils:A,globalUiOptions:O}=c,[g,x]=P.useState(pa(m,l,A,d,i)),S=D(s,de),j=He(m),E=q("FieldErrorTemplate",c,l),C=q("FieldTemplate",c,l),_=Xe(m),I=Xe(l),T=d?Xe(d):"",N=i?Xe(i):"";P.useEffect(()=>{x(pa(m,l,A,d,i))},[_,I,A,T,N]);const{widget:F=j?"radio":"select",title:$="",placeholder:k="",optionsSchemaSelector:B=j,hideError:U,...Y}=M(d);if(!B)throw new Error("No selector field provided for the LayoutMultiSchemaField");const ne=D(i,B);let fe=D(g[0]?.schema,[se,B],{});const ye=xi(g,B,ne);fe=fe?.type?fe:{...fe,type:ye?.type||n};const R=tt(fe,F,w),le=U===void 0?v:!!U,ee=D(b,[Ee],[]),H=un(b,[Ee]),K=A.getDisplayLabel(m,d,O),z=Oe=>{const Ae=xi(g,B,Oe),xe=xi(g,B,ne);let $e=A.sanitizeDataForNewSchema(Ae,xe,i);$e&&Ae&&($e=A.getDefaultFormState(Ae,$e,"excludeObjectChildren")),$e&&ce($e,B,Oe),a($e,s.path,void 0,S)},re={enumOptions:g,...Y},oe=!le&&ee.length>0?h.jsx(E,{fieldPathId:s,schema:m,errors:ee,registry:c}):void 0;return h.jsx(C,{fieldPathId:s,id:S,schema:m,label:($||m.title)??"",disabled:r||Array.isArray(g)&&ge(g),uiSchema:d,required:p,readonly:!!f,registry:c,displayLabel:K,errors:oe,onChange:a,onKeyRename:xr,onKeyRenameBlur:xr,onRemoveProperty:xr,children:h.jsx(R,{id:S,name:e,schema:m,label:($||m.title)??"",disabled:r||Array.isArray(g)&&ge(g),uiSchema:d,autofocus:y,readonly:f,required:p,registry:c,multiple:!1,rawErrors:ee,hideError:le,hideLabel:!K,errorSchema:H,placeholder:k,onChange:z,onBlur:o,onFocus:u,value:ne,options:re,htmlName:s.name})})}class ga extends P.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 m=l.sanitizeDataForNewSchema(c,d,i);c&&(m=l.getDefaultFormState(c,m,"excludeObjectChildren")),this.setState({selectedOption:u},()=>{s(m,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:m,fields:y,translateString:f,globalUiOptions:p,schemaUtils:b}=u,{SchemaField:v}=y,w=q("MultiSchemaFieldTemplate",u,p),A=ar(u,c,l,d),O=vn(i),{selectedOption:g,retrievedOptions:x}=this.state,{widget:S="select",placeholder:j,autofocus:E,autocomplete:C,title:_=c.title,...I}=M(d,p),T=tt({type:"number"},S,m),N=D(r,Ee,[]),F=un(r,[Ee]),$=b.getDisplayLabel(c,d,p),k=g>=0&&x[g]||null;let B;if(k){const{required:ee}=c;B=ee?lt({required:ee},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}"`):Q in c&&d&&Q in d&&(Array.isArray(d[Q])?U=d[Q]:console.warn(`uiSchema.anyOf is not an array for "${_||e}"`));let Y=d;g>=0&&U.length>g&&(Y=U[g]);const ne=_?G.TitleOptionPrefix:G.OptionPrefix,fe=_?[_]:[],ye=x.map((ee,H)=>{const{title:K=ee.title}=M(U[H]);return{label:K||f(ne,fe.concat(String(H+1))),value:H}}),R=!A||O?h.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:N,errorSchema:F,value:g>=0?g:void 0,options:{enumOptions:ye,...I},registry:u,placeholder:j,autocomplete:C,autofocus:E,label:_??e,hideLabel:!$,readonly:a}):void 0,le=B&&B.type!=="null"&&h.jsx(v,{...this.props,schema:B,uiSchema:Y})||null;return h.jsx(w,{schema:c,registry:u,uiSchema:d,selector:R,optionSchemaField:le})}}const Ux=/\.([0-9]*0)*$/,Lx=/[0.]0*$/;function Bx(t){const{registry:e,onChange:n,formData:r,value:i}=t,[s,o]=P.useState(i),{StringField:a}=e.fields;let l=r;const u=P.useCallback((c,d,m,y)=>{o(c),`${c}`.charAt(0)==="."&&(c=`0${c}`);const f=typeof c=="string"&&c.match(Ux)?io(c.replace(Lx,"")):io(c);n(f,d,m,y)},[n]);if(typeof s=="string"&&typeof l=="number"){const c=new RegExp(`^(${String(l).replace(".","\\.")})?\\.?0*$`);s.match(c)&&(l=s)}return h.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 dr=["strong","em","del","mark"],ya=[["**",dr[0]],["__",dr[0]],["~~",dr[2]],["==",dr[3]],["*","em"],["_","em"]];function qx(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 Vx(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=ya[o][0];if(t.startsWith(a)&&t.length>=2*a.length){r=a,i=a.length,s=ya[o][1];break}}if(!r)return null;for(var l=i,u=!1,c=!1,d="",m=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!=="`"||m!==0){if(b==="["&&!u&&m===0){var v=qx(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
4
  `&&p===`