decocms 3.89.2 → 3.90.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-flSoo6uw.js → AlertCircle-eL7jEjpx.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-BeOMO89N.js → ArrowUpRight-BtZv9HXz.js} +1 -1
- package/dist/client/assets/{CheckCircle-B9ekAAw-.js → CheckCircle-Ce4sW5Fr.js} +1 -1
- package/dist/client/assets/{ChevronDown-BWfuTI7r.js → ChevronDown-8-SpQ5a6.js} +1 -1
- package/dist/client/assets/{ChevronLeft-BNcg18cx.js → ChevronLeft-DQ6Y033o.js} +1 -1
- package/dist/client/assets/{ChevronRight-ChYOVgWd.js → ChevronRight-C7AnVgNL.js} +1 -1
- package/dist/client/assets/{ChevronUp-BhWz3ylT.js → ChevronUp-hzSQl57_.js} +1 -1
- package/dist/client/assets/{DotsVertical-C0YWb9xq.js → DotsVertical-CBCiPEnd.js} +1 -1
- package/dist/client/assets/{Eye-DWTUBTZ_.js → Eye-Du8USWUC.js} +1 -1
- package/dist/client/assets/{FilterLines-Djqj6uj_.js → FilterLines-D51fKry2.js} +1 -1
- package/dist/client/assets/{Globe01-BgRW2EiE.js → Globe01-ByUFNYZ1.js} +1 -1
- package/dist/client/assets/{Globe04-XITcP2mp.js → Globe04-BnUIZrLZ.js} +1 -1
- package/dist/client/assets/{HardDrive-DS3VxDtU.js → HardDrive-OrjxQFg1.js} +1 -1
- package/dist/client/assets/{Key01-DX7L8s0Z.js → Key01-CI_-yaVv.js} +1 -1
- package/dist/client/assets/{LayoutLeft-BqtFvEWV.js → LayoutLeft-DnqAFiqW.js} +1 -1
- package/dist/client/assets/{LinkExternal01-Cf-6A1_h.js → LinkExternal01-C9plWUCQ.js} +1 -1
- package/dist/client/assets/{Monitor01-CZ30bS8J.js → Monitor01-Cx6UPY56.js} +1 -1
- package/dist/client/assets/{Palette-Dy2dQgqx.js → Palette-DxYtHeiN.js} +1 -1
- package/dist/client/assets/{Play-DvFnuZIO.js → Play-Bpofg5MS.js} +1 -1
- package/dist/client/assets/{Plus-jFajoMCA.js → Plus-B6Bp27KE.js} +1 -1
- package/dist/client/assets/{SearchMd-uzKFlzQB.js → SearchMd-DY2IStnr.js} +1 -1
- package/dist/client/assets/{Settings02-47eDNk4K.js → Settings02-CzDpZT_t.js} +1 -1
- package/dist/client/assets/{Shield01-BgRa80OR.js → Shield01-ByoQOTwe.js} +1 -1
- package/dist/client/assets/{Star01-BrkbxV-A.js → Star01-COmcJPAd.js} +1 -1
- package/dist/client/assets/{Stars01-Daq_eW6a.js → Stars01-DjTb55Tj.js} +1 -1
- package/dist/client/assets/{Stars02-DlImJz_z.js → Stars02-B4L_1USv.js} +1 -1
- package/dist/client/assets/{Sun-9FxiCes3.js → Sun-BrBndJzL.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-CB5mOBIf.js → SwitchHorizontal01-COrtT0WP.js} +1 -1
- package/dist/client/assets/{Tool01-rx0lKYM8.js → Tool01-D9Z3ra2m.js} +1 -1
- package/dist/client/assets/{Trash01-DI7qV1ow.js → Trash01-S_d8yXYH.js} +1 -1
- package/dist/client/assets/{Upload01-Boqk1hvA.js → Upload01-BovBQGIq.js} +1 -1
- package/dist/client/assets/{User01-B3UbdHmL.js → User01-Dcns6QTI.js} +1 -1
- package/dist/client/assets/{Users01-BUyczaeV.js → Users01-Dua8TttV.js} +1 -1
- package/dist/client/assets/{Users03-gvBLUtvG.js → Users03-DTBaxDUb.js} +1 -1
- package/dist/client/assets/{X-B-cRV-7d.js → X-ClFhIPPx.js} +1 -1
- package/dist/client/assets/{XCircle-CkhBWURn.js → XCircle-ZlnM-le2.js} +1 -1
- package/dist/client/assets/{XClose-Doj89HqF.js → XClose-Cr1-H9ci.js} +1 -1
- package/dist/client/assets/{Zap-BCqTHl-x.js → Zap-TPho1Yix.js} +1 -1
- package/dist/client/assets/{ZapSquare-DdgE8vy-.js → ZapSquare-Brn6J5mG.js} +1 -1
- package/dist/client/assets/{ZoomOut-BdBjpsIq.js → ZoomOut-BkeollDv.js} +1 -1
- package/dist/client/assets/{access-gate-BXDE0rsJ.js → access-gate-FCkKFtCU.js} +1 -1
- package/dist/client/assets/{add-section-modal-7a6BUncs.js → add-section-modal-CP8OZAs0.js} +1 -1
- package/dist/client/assets/{agent-icon-C6bJxQ04.js → agent-icon-B6eCx9D1.js} +1 -1
- package/dist/client/assets/{agents-list-sjsqj6Ot.js → agents-list-CoW11iHc.js} +1 -1
- package/dist/client/assets/ai-providers-DZvST0-1.js +1 -0
- package/dist/client/assets/{alert-C81LnOX9.js → alert-DG7kpTTq.js} +1 -1
- package/dist/client/assets/{alert-dialog-HmiP05XU.js → alert-dialog-DCN5JdMo.js} +3 -3
- package/dist/client/assets/app-editor-Cslki56N.js +1 -0
- package/dist/client/assets/{auth-B9Q1UUsp.js → auth-B9FveTwh.js} +1 -1
- package/dist/client/assets/{auth-catchall-ClOrr_P8.js → auth-catchall-c1PPJXlb.js} +1 -1
- package/dist/client/assets/{auth-entry-B7DIloAw.js → auth-entry-_nOUFp_x.js} +1 -1
- package/dist/client/assets/{auth-split-layout-dWTaQKch.js → auth-split-layout-DqH6c0k8.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-xCkDryiA.js → authenticate-and-persist-oauth-DiMpH9Hf.js} +1 -1
- package/dist/client/assets/{automation-list-row-CLUMzxuG.js → automation-list-row-D6X7gs0k.js} +1 -1
- package/dist/client/assets/{automation-runs-DxPUfxy1.js → automation-runs-B9slN7zB.js} +1 -1
- package/dist/client/assets/automations-DgNLJXiB.js +1 -0
- package/dist/client/assets/{avatar-oAcdiJ9v.js → avatar-CMukQvh7.js} +1 -1
- package/dist/client/assets/{badge-CpKEkIGn.js → badge-BkyT3WoL.js} +1 -1
- package/dist/client/assets/{block-document-BVHsyU-9.js → block-document-DuE6VWLI.js} +1 -1
- package/dist/client/assets/{brand-context-CwjLKTtp.js → brand-context--ofWuplm.js} +1 -1
- package/dist/client/assets/buckets-YjT6-1gl.js +1 -0
- package/dist/client/assets/{capability-load-error-CG-hWPTN.js → capability-load-error-b3EGpgG0.js} +1 -1
- package/dist/client/assets/{card-BIwENur_.js → card-Bs3t5A2h.js} +1 -1
- package/dist/client/assets/category-editor-CEjlWNxU.js +1 -0
- package/dist/client/assets/{chat-context-DN0_9Gee.js → chat-context-DueHVvJY.js} +5 -5
- package/dist/client/assets/{checkbox-Bi39v4Qa.js → checkbox-LHoIUSFR.js} +1 -1
- package/dist/client/assets/{cli-auth-success-pdfiwdy1.js → cli-auth-success-ML14RiWT.js} +1 -1
- package/dist/client/assets/collection-detail-ibjdpE0q.js +1 -0
- package/dist/client/assets/{collection-display-button-Bzf7YHNy.js → collection-display-button-Drrg41_3.js} +1 -1
- package/dist/client/assets/{collection-search-DbQr2iji.js → collection-search-CgpTu-Mz.js} +1 -1
- package/dist/client/assets/{collection-tabs-D77_So6e.js → collection-tabs-C8hplLSb.js} +1 -1
- package/dist/client/assets/command-BQdrUZdP.js +1 -0
- package/dist/client/assets/commerce-onboarding-D1XLRejF.js +1 -0
- package/dist/client/assets/{connect-desktop-dialog-ByWaevjw.js → connect-desktop-dialog-XNmCdvVO.js} +1 -1
- package/dist/client/assets/{connection-card-DehsL0Sf.js → connection-card-DFgMcv0g.js} +1 -1
- package/dist/client/assets/connection-detail-D4rMC3p5.js +1 -0
- package/dist/client/assets/{connection-form-helpers-CASdXQaW.js → connection-form-helpers-BehaoK99.js} +1 -1
- package/dist/client/assets/connections-EApUiHUb.js +1 -0
- package/dist/client/assets/{context-menu-Bt-E5y3C.js → context-menu-BrlUfyhd.js} +1 -1
- package/dist/client/assets/{decopilot-BXlT8NLf.js → decopilot-2OorXRZy.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-CKTJhrtc.js → decopilot-sse-pool-BTlcRVcA.js} +1 -1
- package/dist/client/assets/{dialog-BLvz2lK8.js → dialog-DGm31nBN.js} +1 -1
- package/dist/client/assets/{domain-settings-ed9WclHg.js → domain-settings-CdtyE8KM.js} +1 -1
- package/dist/client/assets/{drawer-C4RJ4_GY.js → drawer-DdWdZjEE.js} +1 -1
- package/dist/client/assets/{dropdown-menu-CRyIPZil.js → dropdown-menu-BLOjaXD3.js} +1 -1
- package/dist/client/assets/{empty-state-CmZpGujH.js → empty-state-DVp61Buk.js} +1 -1
- package/dist/client/assets/{extract-connection-data-iACc8UZO.js → extract-connection-data-D_bB-ShD.js} +1 -1
- package/dist/client/assets/file-explorer-vaSlSqZW.js +2 -0
- package/dist/client/assets/{file-type-icon-Db262N7w.js → file-type-icon-BCa6hDuH.js} +1 -1
- package/dist/client/assets/{files-BwDocccC.js → files-DQb9-lnV.js} +1 -1
- package/dist/client/assets/{form-CPJbrMq5.js → form-B5xe8o6u.js} +1 -1
- package/dist/client/assets/general-ydE7PYML.js +1 -0
- package/dist/client/assets/{github-repo-picker-Db_ehY6e.js → github-repo-picker-8IaQB8YW.js} +1 -1
- package/dist/client/assets/{hooks-chgqRyLj.js → hooks-DpQFLCh_.js} +1 -1
- package/dist/client/assets/{import-from-deco-dialog-Nrpq_g30.js → import-from-deco-dialog-CRv9nGz3.js} +1 -1
- package/dist/client/assets/{index-D7a1JQHt.js → index-B6YHm6is.js} +2 -2
- package/dist/client/assets/index-BCPspZww.js +1 -0
- package/dist/client/assets/{index-DAmj773w.js → index-BOJe9uwl.js} +1 -1
- package/dist/client/assets/{index-K-17SMjl.js → index-BRdqVONz.js} +1 -1
- package/dist/client/assets/{index-RkQpccOp.js → index-BtAPhKbE.js} +1 -1
- package/dist/client/assets/{index-DFNABgCe.js → index-CRPVmS_G.js} +1 -1
- package/dist/client/assets/index-CS7neKAN.js +26 -0
- package/dist/client/assets/{index-BkSIY6JJ.js → index-CZQAHCWx.js} +4 -4
- package/dist/client/assets/index-CthwRpPw.js +1 -0
- package/dist/client/assets/{index-QdluHxPe.js → index-CuxqDMpm.js} +1 -1
- package/dist/client/assets/index-DRv0VWsh.js +1 -0
- package/dist/client/assets/{index-DC36sAC_.js → index-EMcMxAnt.js} +2 -2
- package/dist/client/assets/{index-1ECwD4fs.js → index-hv1cpMXB.js} +10 -10
- package/dist/client/assets/{index-redirect-DO0D1qdv.js → index-redirect-Q0F80k5-.js} +1 -1
- package/dist/client/assets/{index-4GXqE9fp.js → index-w238AwGD.js} +1 -1
- package/dist/client/assets/{input-jkT1z5r1.js → input-Bnf6c030.js} +1 -1
- package/dist/client/assets/{integration-icon-CZDEviNI.js → integration-icon-BZb9eAa5.js} +1 -1
- package/dist/client/assets/{label-CETsHBZ0.js → label-Di7vPCvs.js} +1 -1
- package/dist/client/assets/{login-eY2xl_Qt.js → login-2SyCeWam.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BIBzZgcE.js → mcp-oauth-CkPjLCsH.js} +1 -1
- package/dist/client/assets/{members-BAHTTEXJ.js → members-CjaCp3dg.js} +2 -2
- package/dist/client/assets/{monaco-editor-tVsx1Jkl.js → monaco-editor-DwYoS9zw.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CivwdnUP.js → monitoring-stats-row-DkqIQOcq.js} +1 -1
- package/dist/client/assets/{oauth-callback-BnrL3BsC.js → oauth-callback-CZp0JiJW.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-D3_UsvKg.js → oauth-callback-ai-provider-Dg09kVke.js} +1 -1
- package/dist/client/assets/{onboarding-Cde-ZfY9.js → onboarding-BbfRp_j7.js} +1 -1
- package/dist/client/assets/{org-install-Cri2HTyv.js → org-install-C35OKz52.js} +1 -1
- package/dist/client/assets/{org-layout-DH1oGgfN.js → org-layout-DZByPEyS.js} +1 -1
- package/dist/client/assets/{organization-choice-BZIXFBHd.js → organization-choice-D-8Jpbxq.js} +1 -1
- package/dist/client/assets/{page-seo-form-DCgyqE3q.js → page-seo-form-DpKXv5ZW.js} +1 -1
- package/dist/client/assets/page-seo-sheet-BNm6Mm2L.js +1 -0
- package/dist/client/assets/{popover-1pFpRX6s.js → popover-BLg2uxUj.js} +1 -1
- package/dist/client/assets/post-editor-DtfgS5ZG.js +1 -0
- package/dist/client/assets/{preview-dialog-DRmrGWbh.js → preview-dialog-DqH-_Rmc.js} +1 -1
- package/dist/client/assets/{primitives-C06Pn9p4.js → primitives-DXpcMQqJ.js} +1 -1
- package/dist/client/assets/profile-BoEvNBMC.js +1 -0
- package/dist/client/assets/project-app-view-DMQWiDoZ.js +1 -0
- package/dist/client/assets/record-editor-GeUn2Cfg.js +1 -0
- package/dist/client/assets/registry-BnG2g9Fw.js +2 -0
- package/dist/client/assets/{registry-layout-Dww7dssY.js → registry-layout-DkLgn4PF.js} +2 -2
- package/dist/client/assets/{require-capability-BC8YsasG.js → require-capability-ghUcEykT.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DjRtF3m8.js → required-auth-layout-SCPc1ODv.js} +1 -1
- package/dist/client/assets/{reset-password-DNWeSy4_.js → reset-password-ohLffP_O.js} +1 -1
- package/dist/client/assets/{roles-Cyz3Z1vr.js → roles-BjyevsY6.js} +1 -1
- package/dist/client/assets/{save-status-BsQDaUlP.js → save-status-COIKtaoc.js} +1 -1
- package/dist/client/assets/{scroll-area-D51A_KQ5.js → scroll-area-DFbOrGft.js} +1 -1
- package/dist/client/assets/{search-input-CEqRaXj6.js → search-input-Db1Wlp2M.js} +1 -1
- package/dist/client/assets/secrets-BORDpp9r.js +1 -0
- package/dist/client/assets/{sections-editor-331tz7B6.js → sections-editor-CsdioN2W.js} +2 -2
- package/dist/client/assets/select-Biv4m02a.js +1 -0
- package/dist/client/assets/{select-model-DJ7vH3M2.js → select-model-B6vWutyx.js} +1 -1
- package/dist/client/assets/seo-editor-CSTNL9M8.js +1 -0
- package/dist/client/assets/{settings-layout-CSyEHpma.js → settings-layout-5lmse1ub.js} +1 -1
- package/dist/client/assets/{settings-section-D6f1v8Lb.js → settings-section-CD_Cl2xg.js} +1 -1
- package/dist/client/assets/{sheet-CUfjkNRy.js → sheet-CLgUQ0k9.js} +1 -1
- package/dist/client/assets/{shell-controls-C6FYdYnB.js → shell-controls-DuKZWqgd.js} +1 -1
- package/dist/client/assets/{shell-layout-CR4YIb2n.js → shell-layout-fqgrNv9Y.js} +1 -1
- package/dist/client/assets/{shell-route-loading-fK7OWXny.js → shell-route-loading-B3Il8pQg.js} +1 -1
- package/dist/client/assets/{sidebar-C45GjVmp.js → sidebar-B6ogJK6o.js} +1 -1
- package/dist/client/assets/{skeleton-h95MLET_.js → skeleton-7DG8UULc.js} +1 -1
- package/dist/client/assets/{sortable.esm-CbeYFn14.js → sortable.esm-BBNRI0-0.js} +1 -1
- package/dist/client/assets/sso-50J9BcfO.js +1 -0
- package/dist/client/assets/{store-O5BcQA2t.js → store-D0nqcAbk.js} +1 -1
- package/dist/client/assets/store-registry-DZK1gxtR.js +2 -0
- package/dist/client/assets/{studio-tools-BgUSKeCY.js → studio-tools-DCyngkzJ.js} +1 -1
- package/dist/client/assets/{switch-Cf_WUos9.js → switch-DQj88pZv.js} +1 -1
- package/dist/client/assets/{table-tHeeUiY0.js → table-Du45gWno.js} +1 -1
- package/dist/client/assets/{tabs-CNnqe_sK.js → tabs--E0r9_Sj.js} +1 -1
- package/dist/client/assets/{task-status-DzLkYYrk.js → task-status-B_9F2gh5.js} +1 -1
- package/dist/client/assets/{textarea-BzYVaGJ0.js → textarea-BFNmWFvP.js} +1 -1
- package/dist/client/assets/{toggle-group-BE1kDwdz.js → toggle-group-KbM3MWcV.js} +1 -1
- package/dist/client/assets/{toolbar-D5FkjLVB.js → toolbar-BgwgtfBD.js} +1 -1
- package/dist/client/assets/{tooltip-CAEDbADy.js → tooltip-Dcp4xtTX.js} +1 -1
- package/dist/client/assets/{types-Dw2dcWcn.js → types-BhFW6kUE.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BcLob6tS.js → use-ai-providers-BMg8Dsli.js} +1 -1
- package/dist/client/assets/{use-automations-CfP4AmpB.js → use-automations-D4GU11Hn.js} +1 -1
- package/dist/client/assets/{use-capability-CbeJheXW.js → use-capability-CAL5M8kW.js} +1 -1
- package/dist/client/assets/{use-clock-tick-DHvuEFIJ.js → use-clock-tick-CG1lc4nO.js} +1 -1
- package/dist/client/assets/{use-collections-yHRKnSEt.js → use-collections-BYr7pEmZ.js} +1 -1
- package/dist/client/assets/use-connection-D9HsjWxg.js +1 -0
- package/dist/client/assets/{use-copy-DOTEBoID.js → use-copy-B6e0ArXF.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-C88JBuQM.js → use-create-virtual-mcp-UIYeNsla.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-BnfFXRc0.js → use-debounced-autosave-xepBeP7W.js} +1 -1
- package/dist/client/assets/{use-delete-connection-D1yU7B0G.js → use-delete-connection-BEeKZ9NT.js} +1 -1
- package/dist/client/assets/{use-file-configs-C8z3zSDD.js → use-file-configs-BmyLNtzY.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-V4l3DQJD.js → use-infinite-scroll-CJlKxIxa.js} +1 -1
- package/dist/client/assets/{use-join-requests-Duz0LeuZ.js → use-join-requests-Dh4DPnmF.js} +1 -1
- package/dist/client/assets/{use-mcp-client-DYpZuPPA.js → use-mcp-client-7EfqWxgd.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-BxOgLeZF.js → use-mcp-prompts-DIkRTD9t.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-xhV-ENX5.js → use-mcp-tools-W08KOK_v.js} +1 -1
- package/dist/client/assets/{use-members-CJKZdynB.js → use-members-DyLgAHg5.js} +1 -1
- package/dist/client/assets/{use-mobile-CPyq18pe.js → use-mobile-CeVjRMu3.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-Bhu6dr_a.js → use-navigate-to-agent-CfSjeQwH.js} +1 -1
- package/dist/client/assets/use-org-auth-client-CVfi2bFZ.js +1 -0
- package/dist/client/assets/{use-org-sso-DGBv3Hvc.js → use-org-sso-3_seOFru.js} +1 -1
- package/dist/client/assets/{use-organization-roles-1exN43Rd.js → use-organization-roles-BBD5Uy2k.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DFnXSR7Z.js → use-organization-settings-Bvieu16r.js} +1 -1
- package/dist/client/assets/{use-registry-connections-Czx1u2H6.js → use-registry-connections-DgPJKdCX.js} +1 -1
- package/dist/client/assets/{use-secrets-DqgJI3yC.js → use-secrets-Bpmq5HaY.js} +1 -1
- package/dist/client/assets/{use-status-sounds-DRhhwMt0.js → use-status-sounds-Dsmk_M7Y.js} +1 -1
- package/dist/client/assets/{use-view-mode-BB9Jcv_5.js → use-view-mode-DhQbMx-b.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-DnY7c9gE.js → use-virtual-mcp-CTBnE7sF.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-B8aLEC__.js +1 -0
- package/dist/client/assets/{useQueries-D96G2W1b.js → useQueries-DRRNcEOA.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BJo3aYmp.js +1 -0
- package/dist/client/assets/variant-calendar-D-QL2C_C.js +1 -0
- package/dist/client/assets/{view-mode-toggle-ncGR_sPB.js → view-mode-toggle-9We3fjVd.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/package.json +4 -5
- package/dist/client/assets/Form-Czxo_N56.js +0 -26
- package/dist/client/assets/ai-providers-6xIkfdtm.js +0 -1
- package/dist/client/assets/app-editor-k7Nl_uKp.js +0 -1
- package/dist/client/assets/automations-TTHh4EuE.js +0 -1
- package/dist/client/assets/buckets-CM0nkgpJ.js +0 -1
- package/dist/client/assets/category-editor-Bx9oTK3B.js +0 -1
- package/dist/client/assets/collection-detail-BcWtgoUr.js +0 -1
- package/dist/client/assets/command-DyJgh8wP.js +0 -1
- package/dist/client/assets/commerce-onboarding-CJHzpHob.js +0 -1
- package/dist/client/assets/connection-detail-CCaFPgvC.js +0 -1
- package/dist/client/assets/connections-DZYmLj7X.js +0 -1
- package/dist/client/assets/file-explorer-BveBp463.js +0 -2
- package/dist/client/assets/general-FW5Wth3b.js +0 -1
- package/dist/client/assets/index-BdQq_4o_.js +0 -1
- package/dist/client/assets/index-D5RW_4sI.js +0 -1
- package/dist/client/assets/index-DAWoaMpc.js +0 -1
- package/dist/client/assets/index-DoculpR5.js +0 -1
- package/dist/client/assets/index-UgEhsCuR.js +0 -1
- package/dist/client/assets/page-seo-sheet-o3dCAhA-.js +0 -1
- package/dist/client/assets/post-editor-CWr-_gb_.js +0 -1
- package/dist/client/assets/profile-62y90jm_.js +0 -1
- package/dist/client/assets/project-app-view-BeZFUwcQ.js +0 -1
- package/dist/client/assets/record-editor-BsdzrkRD.js +0 -1
- package/dist/client/assets/registry-DpNbpkzg.js +0 -2
- package/dist/client/assets/secrets-C6bKEzDN.js +0 -1
- package/dist/client/assets/select-Ct-_FhWe.js +0 -1
- package/dist/client/assets/seo-editor-Ad8X__jc.js +0 -1
- package/dist/client/assets/sso-DGooE6a8.js +0 -1
- package/dist/client/assets/store-registry-BPQHh-y5.js +0 -2
- package/dist/client/assets/tools-list-BKN97Z6h.js +0 -1
- package/dist/client/assets/use-connection-BPcAXa47.js +0 -1
- package/dist/client/assets/use-org-auth-client-Tiq6Yt9b.js +0 -1
- package/dist/client/assets/useInfiniteQuery-DlRMWoIP.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BjlxN-DZ.js +0 -1
- package/dist/client/assets/variant-calendar-BlIkgRxn.js +0 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import{bg as fd,bh as Be,bi as jo,s as $,ak as Ae,aF as gt,bj as Os,aC as me,bk as ar,bl as Ge,aD as Wt,bm as Cn,o as W,bn as Es,bo as Oo,bp as md,bq as hd,br as xl,bs as pd,bt as gd,bu as yd,bv as vl,bw as bd,b6 as ft,bx as xd,aE as ht,by as vd,c as Te,r as P,l as ei,j as h,aP as Sl,C as As,a as Sd,t as $r,bz as Cs,bA as wl,bB as wd,bC as jd,bf as jl,bD as _s,R as Od,bE as Ed,bF as Ad,bG as Cd,a2 as _d,V as fn,U as gr,Z as _n,ah as Id,ai as Td,bH as Pd,X as Nd,bI as kd,B as ti,i as Is,b as Fd,E as $d,aa as Rd}from"./index-CZQAHCWx.js";import{P as Mn}from"./index-BtAPhKbE.js";import{E as Ol}from"./empty-state-DVp61Buk.js";import{A as El,f as Dd,h as Md,n as Ud,j as Ld,k as Bd,i as zd,u as Vd}from"./use-mcp-client-7EfqWxgd.js";import{c as qd}from"./use-mcp-tools-W08KOK_v.js";import{c as Wd}from"./ZoomOut-BkeollDv.js";import{i as Hd}from"./Key01-CI_-yaVv.js";import{b as Gd,u as Kd,a as Yd}from"./use-connection-D9HsjWxg.js";import{U as Un,a as xi,e as Eo}from"./auth-B9FveTwh.js";import{i as Jd,c as Zd,d as Xd,e as Qd}from"./extract-connection-data-D_bB-ShD.js";import{u as ef}from"./use-registry-connections-DgPJKdCX.js";import{b as tf}from"./use-organization-settings-Bvieu16r.js";import{s as nf}from"./Plus-B6Bp27KE.js";import{e as Al,S as rf,a as sf,b as of,c as af,d as lf}from"./select-Biv4m02a.js";import{R as Ao}from"./index-CuxqDMpm.js";import{R as cf,I as uf,a as df}from"./index-CthwRpPw.js";import{_ as Zt}from"./index-BOJe9uwl.js";import{A as Cl}from"./agent-icon-B6eCx9D1.js";import{I as ff}from"./input-Bnf6c030.js";import{a as mf,b as hf,P as pf}from"./popover-BLg2uxUj.js";import{b as gf,a as yf,c as bf,T as xf}from"./tooltip-Dcp4xtTX.js";import{u as vf}from"./use-virtual-mcp-CTBnE7sF.js";import{i as Sf}from"./ChevronUp-hzSQl57_.js";import{i as wf}from"./SearchMd-DY2IStnr.js";import{a as jf}from"./Users03-DTBaxDUb.js";import{u as Of}from"./use-mobile-CeVjRMu3.js";import{u as Ef}from"./use-create-virtual-mcp-UIYeNsla.js";function Af(){const e=new El({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0,code:{optimize:!1}});return fd(e),e}class Cf{#e=Af();#t=new Map;#n=new WeakMap;getValidator(t){const n=this.#n.get(t);if(n)return n;let r;const i=s=>{if(!r){const o=_f(t);let a=this.#t.get(o);a||(a=this.#e.compile(t),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(t,i),i}}function _f(e){return JSON.stringify(e,(t,n)=>n&&typeof n=="object"&&!Array.isArray(n)?Object.fromEntries(Object.keys(n).sort().map(r=>[r,n[r]])):n)}const If=new Cf;var Tf=class{apply(e,t){if(!t.type)return;const n=Array.isArray(t.type)?t.type:[t.type],r=new Set(n);if(r.has("string")||(e.string=!1),!r.has("number")&&!r.has("integer")&&(e.number=!1),r.has("boolean")||(e.boolean=!1),r.has("null")||(e.null=!1),r.has("array")||(e.array=!1),r.has("object")||(e.object=!1),r.has("integer")&&e.number!==!1){const i=e.number||Ae();i instanceof Cn&&(e.number=i.int())}}},Pf=class{apply(e,t){if(t.const===void 0)return;const n=t.const;e.string=!1,e.number=!1,e.boolean=!1,e.null=!1,e.array=!1,e.object=!1,typeof n=="string"?e.string=Ge(n):typeof n=="number"?e.number=Ge(n):typeof n=="boolean"?e.boolean=Ge(n):n===null?e.null=Os():Array.isArray(n)?e.array=void 0:typeof n=="object"&&(e.object=void 0)}},Nf=class{apply(e,t){if(!t.enum)return;if(t.enum.length===0){t.type||(e.string=!1,e.number=!1,e.boolean=!1,e.null=!1,e.array=!1,e.object=!1);return}const n={string:t.enum.filter(r=>typeof r=="string"),number:t.enum.filter(r=>typeof r=="number"),boolean:t.enum.filter(r=>typeof r=="boolean"),null:t.enum.filter(r=>r===null),array:t.enum.filter(r=>Array.isArray(r)),object:t.enum.filter(r=>typeof r=="object"&&r!==null&&!Array.isArray(r))};e.string=this.createTypeSchema(n.string,"string"),e.number=this.createTypeSchema(n.number,"number"),e.boolean=this.createTypeSchema(n.boolean,"boolean"),e.null=n.null.length>0?Os():!1,e.array=n.array.length>0?void 0:!1,e.object=n.object.length>0?void 0:!1}createTypeSchema(e,t){if(e.length===0)return!1;if(e.length===1)return Ge(e[0]);if(t==="string")return Wt(e);if(t==="number"){const[n,r,...i]=e;return ar([Ge(n),Ge(r),...i.map(s=>Ge(s))])}return t==="boolean"?ar([Ge(!0),Ge(!1)]):!1}},kf=class{apply(e,t){const n=t;if(n.type==="string"&&n.format==="binary"&&n.contentEncoding==="binary"){let r=yd();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)),e.file=r,e.string=!1}}},Ff=class{apply(e,t){const n=t;t.type===void 0&&(n.minLength!==void 0||n.maxLength!==void 0||n.pattern!==void 0)&&e.string===void 0&&(e.string=$())}},$f=class{apply(e,t){const n=t;if(n.minLength!==void 0&&e.string!==!1){const r=e.string||$();r instanceof Es&&(e.string=r.refine(i=>Array.from(i).length>=n.minLength,{message:`String must be at least ${n.minLength} characters long`}))}}},Rf=class{apply(e,t){const n=t;if(n.maxLength!==void 0&&e.string!==!1){const r=e.string||$();r instanceof Es&&(e.string=r.refine(i=>Array.from(i).length<=n.maxLength,{message:`String must be at most ${n.maxLength} characters long`}))}}},Df=class{apply(e,t){const n=t;if(n.pattern&&e.string!==!1){const r=e.string||$();if(r instanceof Es){const i=new RegExp(n.pattern);e.string=r.regex(i)}}}},Mf=class{apply(e,t){const n=t;if(n.minimum!==void 0&&e.number!==!1){const r=e.number||Ae();r instanceof Cn&&(e.number=r.min(n.minimum))}}},Uf=class{apply(e,t){const n=t;if(n.maximum!==void 0&&e.number!==!1){const r=e.number||Ae();r instanceof Cn&&(e.number=r.max(n.maximum))}}},Lf=class{apply(e,t){const n=t;if(n.exclusiveMinimum!==void 0&&e.number!==!1){const r=e.number||Ae();r instanceof Cn&&(typeof n.exclusiveMinimum=="number"?e.number=r.gt(n.exclusiveMinimum):e.number=!1)}}},Bf=class{apply(e,t){const n=t;if(n.exclusiveMaximum!==void 0&&e.number!==!1){const r=e.number||Ae();r instanceof Cn&&(typeof n.exclusiveMaximum=="number"?e.number=r.lt(n.exclusiveMaximum):e.number=!1)}}},zf=class{apply(e,t){const n=t;if(n.multipleOf!==void 0&&e.number!==!1){const r=e.number||Ae();r instanceof Cn&&(e.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}`}))}}},Vf=class{apply(e,t){const n=t;t.type===void 0&&(n.minItems!==void 0||n.maxItems!==void 0||n.items!==void 0||n.prefixItems!==void 0)&&e.array===void 0&&(e.array=me(Be()))}},qf=class{apply(e,t){const n=t;n.minItems!==void 0&&e.array!==!1&&(e.array=(e.array||me(Be())).min(n.minItems))}},Wf=class{apply(e,t){const n=t;n.maxItems!==void 0&&e.array!==!1&&(e.array=(e.array||me(Be())).max(n.maxItems))}},Hf=class{apply(e,t){const n=t;if(e.array!==!1)if(Array.isArray(n.items))e.array=e.array||me(Be());else if(n.items&&typeof n.items!="boolean"&&!n.prefixItems){const r=ke(n.items);let i=me(r);if(e.array&&e.array instanceof md){const s=e.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))}})}e.array=i}else typeof n.items=="boolean"&&n.items===!1?n.prefixItems?e.array=e.array||me(Be()):e.array=me(Be()).max(0):typeof n.items=="boolean"&&n.items===!0?e.array=e.array||me(Be()):n.prefixItems&&(e.array=e.array||me(Be()))}},Gf=class{apply(e,t){if(t.type!=="array")return;const n=t;if(!Array.isArray(n.items)||e.array===!1)return;const r=n.items.map(s=>ke(s));let i;r.length===0?i=Oo([]):i=Oo(r),n.minItems!==void 0&&n.minItems>r.length&&(i=!1),n.maxItems!==void 0&&n.maxItems<r.length&&(i=!1),e.tuple=i,e.array=!1}},Kf=class{apply(e,t){const n=t;e.object!==!1&&(n.properties||n.required||n.additionalProperties!==void 0)&&(e.object=e.object||W({}).passthrough())}},Yf=class{apply(e,t){const n=t;t.type===void 0&&(n.maxProperties!==void 0||n.minProperties!==void 0)&&e.object===void 0&&(e.object=W({}).passthrough())}},Jf=class{apply(e,t){const n=t;if(n.maxProperties!==void 0&&e.object!==!1){const r=e.object||W({}).passthrough();e.object=r.refine(i=>Object.keys(i).length<=n.maxProperties,{message:`Object must have at most ${n.maxProperties} properties`})}}},Zf=class{apply(e,t){const n=t;if(n.minProperties!==void 0&&e.object!==!1){const r=e.object||W({}).passthrough();e.object=r.refine(i=>Object.keys(i).length>=n.minProperties,{message:`Object must have at least ${n.minProperties} properties`})}}};function lr(e,t){if(e===t)return!0;if(e==null||t==null)return e===t;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t))return e.length!==t.length?!1:e.every((n,r)=>lr(n,t[r]));if(typeof e=="object"&&typeof t=="object"){const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length?!1:n.every(i=>r.includes(i)&&lr(e[i],t[i]))}return!1}function Xf(){return e=>{if(!Array.isArray(e))return!0;const t=[];return e.every(n=>t.some(i=>lr(n,i))?!1:(t.push(n),!0))}}function Wr(e,t){return e.safeParse(t).success}var Qf=class{apply(e,t){if(!t.not)return e;const n=ke(t.not);return e.refine(r=>!Wr(n,r),{message:"Value must not match the 'not' schema"})}},em=class{apply(e,t){return t.uniqueItems!==!0?e:e.refine(Xf(),{message:"Array items must be unique"})}},tm=class{apply(e,t){return!t.allOf||t.allOf.length===0?e:t.allOf.map(r=>ke(r)).reduce((r,i)=>xl(r,i),e)}},nm=class{apply(e,t){if(!t.anyOf||t.anyOf.length===0)return e;const n=t.anyOf.length===1?ke(t.anyOf[0]):ar([ke(t.anyOf[0]),ke(t.anyOf[1]),...t.anyOf.slice(2).map(r=>ke(r))]);return xl(e,n)}},rm=class{apply(e,t){if(!t.oneOf||t.oneOf.length===0)return e;const n=t.oneOf.map(r=>ke(r));return e.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"})}},im=class{apply(e,t){const n=t;if(n.prefixItems&&Array.isArray(n.prefixItems)){const i=n.prefixItems.map(s=>ke(s));return e.refine(s=>{if(!Array.isArray(s))return!0;for(let o=0;o<Math.min(s.length,i.length);o++)if(!Wr(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=ke(n.items);for(let a=i.length;a<s.length;a++)if(!Wr(o,s[a]))return!1}}return!0},{message:"Array does not match prefixItems schema"})}return e}},sm=class{apply(e,t){const n=t;if(!n.properties&&!n.required&&n.additionalProperties!==!1)return e;if(e instanceof pd||e instanceof gd){const r={};if(n.properties)for(const[i,s]of Object.entries(n.properties))s!==void 0&&(r[i]=ke(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?W(r):W(r).passthrough()}return e.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&&!ke(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"})}},om=class{apply(e,t){if(!t.enum||t.enum.length===0)return e;const n=t.enum.filter(r=>Array.isArray(r)||typeof r=="object"&&r!==null);return n.length===0?e:e.refine(r=>typeof r!="object"||r===null?!0:n.some(i=>lr(r,i)),{message:"Value must match one of the enum values"})}},am=class{apply(e,t){if(t.const===void 0)return e;const n=t.const;return typeof n!="object"||n===null?e:e.refine(r=>lr(r,n),{message:"Value must equal the const value"})}},lm=class{apply(e,t){return t.description&&(e=e.describe(t.description)),e}},cm=class{apply(e,t){var n;const r=t;return!((n=r.required)!=null&&n.includes("__proto__"))||t.type!==void 0?e:Be().refine(i=>this.validateRequired(i,r.required),{message:"Missing required properties"})}validateRequired(e,t){return typeof e!="object"||e===null||Array.isArray(e)?!0:t.every(n=>Object.prototype.hasOwnProperty.call(e,n))}},um=class{apply(e,t){var n;const r=t;if(r.contains===void 0)return e;const i=ke(r.contains),s=(n=r.minContains)!=null?n:1,o=r.maxContains;return e.refine(a=>{if(!Array.isArray(a))return!0;let l=0;for(const c of a)Wr(i,c)&&l++;return!(l<s||o!==void 0&&l>o)},{message:"Array must contain required items matching the schema"})}},dm=class{apply(e,t){const{default:n}=t;return n===void 0||!e.safeParse(n).success?e:e.default(n)}},fm=[new Pf,new Nf,new Tf,new kf,new Ff,new Vf,new Yf,new $f,new Rf,new Df,new Mf,new Uf,new Lf,new Bf,new zf,new Gf,new qf,new Wf,new Hf,new Jf,new Zf,new Kf],mm=[new cm,new om,new am,new tm,new nm,new rm,new im,new sm,new um,new Qf,new em,new dm,new lm];function ke(e){if(typeof e=="boolean")return e?Be():jo();const t={};for(const i of fm)i.apply(t,e);const n=[];if(t.string!==!1&&n.push(t.string||$()),t.number!==!1&&n.push(t.number||Ae()),t.boolean!==!1&&n.push(t.boolean||gt()),t.null!==!1&&n.push(t.null||Os()),t.array!==!1&&n.push(t.array||me(Be())),t.tuple!==!1&&t.tuple!==void 0&&n.push(t.tuple),t.object!==!1)if(t.object)n.push(t.object);else{const i=hd(s=>typeof s=="object"&&s!==null&&!Array.isArray(s),"Must be an object, not an array");n.push(i)}t.file!==!1&&t.file!==void 0&&n.push(t.file);let r;n.length===0?r=jo():n.length===1?r=n[0]:Object.keys(e).some(s=>s!=="$schema"&&s!=="title"&&s!=="description")?r=ar(n):r=Be();for(const i of mm)r=i.apply(r,e);return r}class Co extends Event{constructor(t,n){var r,i;super(t),this.code=(r=n?.code)!=null?r:void 0,this.message=(i=n?.message)!=null?i:void 0}[Symbol.for("nodejs.util.inspect.custom")](t,n,r){return r(_o(this),n)}[Symbol.for("Deno.customInspect")](t,n){return t(_o(this),n)}}function hm(e){const t=globalThis.DOMException;return typeof t=="function"?new t(e,"SyntaxError"):new SyntaxError(e)}function Ji(e){return e instanceof Error?"errors"in e&&Array.isArray(e.errors)?e.errors.map(Ji).join(", "):"cause"in e&&e.cause instanceof Error?`${e}: ${Ji(e.cause)}`:e.message:`${e}`}function _o(e){return{type:e.type,message:e.message,code:e.code,defaultPrevented:e.defaultPrevented,cancelable:e.cancelable,timeStamp:e.timeStamp}}var _l=e=>{throw TypeError(e)},Ts=(e,t,n)=>t.has(e)||_l("Cannot "+n),re=(e,t,n)=>(Ts(e,t,"read from private field"),n?n.call(e):t.get(e)),Ce=(e,t,n)=>t.has(e)?_l("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ve=(e,t,n,r)=>(Ts(e,t,"write to private field"),t.set(e,n),n),dt=(e,t,n)=>(Ts(e,t,"access private method"),n),Re,Vt,ln,Rr,Hr,Xn,mn,Qn,Ct,cn,yn,un,Hn,He,Zi,Xi,Qi,Io,es,ts,Gn,ns,rs;class Dr extends EventTarget{constructor(t,n){var r,i;super(),Ce(this,He),this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,Ce(this,Re),Ce(this,Vt),Ce(this,ln),Ce(this,Rr),Ce(this,Hr),Ce(this,Xn),Ce(this,mn),Ce(this,Qn,null),Ce(this,Ct),Ce(this,cn),Ce(this,yn,null),Ce(this,un,null),Ce(this,Hn,null),Ce(this,Xi,async s=>{var o;re(this,cn).reset();const{body:a,redirected:l,status:c,headers:u}=s;if(c===204){dt(this,He,Gn).call(this,"Server sent HTTP 204, not reconnecting",204),this.close();return}if(l?ve(this,ln,new URL(s.url)):ve(this,ln,void 0),c!==200){dt(this,He,Gn).call(this,`Non-200 status code (${c})`,c);return}if(!(u.get("content-type")||"").startsWith("text/event-stream")){dt(this,He,Gn).call(this,'Invalid content type, expected "text/event-stream"',c);return}if(re(this,Re)===this.CLOSED)return;ve(this,Re,this.OPEN);const d=new Event("open");if((o=re(this,Hn))==null||o.call(this,d),this.dispatchEvent(d),typeof a!="object"||!a||!("getReader"in a)){dt(this,He,Gn).call(this,"Invalid response body, expected a web ReadableStream",c),this.close();return}const m=new TextDecoder,y=a.getReader();let f=!0;do{const{done:p,value:b}=await y.read();b&&re(this,cn).feed(m.decode(b,{stream:!p})),p&&(f=!1,re(this,cn).reset(),dt(this,He,ns).call(this))}while(f)}),Ce(this,Qi,s=>{ve(this,Ct,void 0),!(s.name==="AbortError"||s.type==="aborted")&&dt(this,He,ns).call(this,Ji(s))}),Ce(this,es,s=>{typeof s.id=="string"&&ve(this,Qn,s.id);const o=new MessageEvent(s.event||"message",{data:s.data,origin:re(this,ln)?re(this,ln).origin:re(this,Vt).origin,lastEventId:s.id||""});re(this,un)&&(!s.event||s.event==="message")&&re(this,un).call(this,o),this.dispatchEvent(o)}),Ce(this,ts,s=>{ve(this,Xn,s)}),Ce(this,rs,()=>{ve(this,mn,void 0),re(this,Re)===this.CONNECTING&&dt(this,He,Zi).call(this)});try{if(t instanceof URL)ve(this,Vt,t);else if(typeof t=="string")ve(this,Vt,new URL(t,pm()));else throw new Error("Invalid URL")}catch{throw hm("An invalid or illegal string was specified")}ve(this,cn,Dd({onEvent:re(this,es),onRetry:re(this,ts)})),ve(this,Re,this.CONNECTING),ve(this,Xn,3e3),ve(this,Hr,(r=n?.fetch)!=null?r:globalThis.fetch),ve(this,Rr,(i=n?.withCredentials)!=null?i:!1),dt(this,He,Zi).call(this)}get readyState(){return re(this,Re)}get url(){return re(this,Vt).href}get withCredentials(){return re(this,Rr)}get onerror(){return re(this,yn)}set onerror(t){ve(this,yn,t)}get onmessage(){return re(this,un)}set onmessage(t){ve(this,un,t)}get onopen(){return re(this,Hn)}set onopen(t){ve(this,Hn,t)}addEventListener(t,n,r){const i=n;super.addEventListener(t,i,r)}removeEventListener(t,n,r){const i=n;super.removeEventListener(t,i,r)}close(){re(this,mn)&&clearTimeout(re(this,mn)),re(this,Re)!==this.CLOSED&&(re(this,Ct)&&re(this,Ct).abort(),ve(this,Re,this.CLOSED),ve(this,Ct,void 0))}}Re=new WeakMap,Vt=new WeakMap,ln=new WeakMap,Rr=new WeakMap,Hr=new WeakMap,Xn=new WeakMap,mn=new WeakMap,Qn=new WeakMap,Ct=new WeakMap,cn=new WeakMap,yn=new WeakMap,un=new WeakMap,Hn=new WeakMap,He=new WeakSet,Zi=function(){ve(this,Re,this.CONNECTING),ve(this,Ct,new AbortController),re(this,Hr)(re(this,Vt),dt(this,He,Io).call(this)).then(re(this,Xi)).catch(re(this,Qi))},Xi=new WeakMap,Qi=new WeakMap,Io=function(){var e;const t={mode:"cors",redirect:"follow",headers:{Accept:"text/event-stream",...re(this,Qn)?{"Last-Event-ID":re(this,Qn)}:void 0},cache:"no-store",signal:(e=re(this,Ct))==null?void 0:e.signal};return"window"in globalThis&&(t.credentials=this.withCredentials?"include":"same-origin"),t},es=new WeakMap,ts=new WeakMap,Gn=function(e,t){var n;re(this,Re)!==this.CLOSED&&ve(this,Re,this.CLOSED);const r=new Co("error",{code:t,message:e});(n=re(this,yn))==null||n.call(this,r),this.dispatchEvent(r)},ns=function(e,t){var n;if(re(this,Re)===this.CLOSED)return;ve(this,Re,this.CONNECTING);const r=new Co("error",{code:t,message:e});(n=re(this,yn))==null||n.call(this,r),this.dispatchEvent(r),ve(this,mn,setTimeout(re(this,rs),re(this,Xn)))},rs=new WeakMap,Dr.CONNECTING=0,Dr.OPEN=1,Dr.CLOSED=2;function pm(){const e="document"in globalThis?globalThis.document:void 0;return e&&typeof e=="object"&&"baseURI"in e&&typeof e.baseURI=="string"?e.baseURI:void 0}class gm extends Error{constructor(t,n,r){super(`SSE error: ${n}`),this.code=t,this.event=r}}class ym{constructor(t,n){this._url=t,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=Md(n?.fetch,n?.requestInit)}async _authThenStart(){if(!this._authProvider)throw new Un("No auth provider");let t;try{t=await xi(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})}catch(n){throw this.onerror?.(n),n}if(t!=="AUTHORIZED")throw new Un;return await this._startOrAuth()}async _commonHeaders(){const t={};if(this._authProvider){const r=await this._authProvider.tokens();r&&(t.Authorization=`Bearer ${r.access_token}`)}this._protocolVersion&&(t["mcp-protocol-version"]=this._protocolVersion);const n=Ud(this._requestInit?.headers);return new Headers({...t,...n})}_startOrAuth(){const t=this?._eventSourceInit?.fetch??this._fetch??fetch;return new Promise((n,r)=>{this._eventSource=new Dr(this._url.href,{...this._eventSourceInit,fetch:async(i,s)=>{const o=await this._commonHeaders();o.set("Accept","text/event-stream");const a=await t(i,{...s,headers:o});if(a.status===401&&a.headers.has("www-authenticate")){const{resourceMetadataUrl:l,scope:c}=Eo(a);this._resourceMetadataUrl=l,this._scope=c}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 gm(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=vl.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(t){if(!this._authProvider)throw new Un("No auth provider");if(await xi(this._authProvider,{serverUrl:this._url,authorizationCode:t,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new Un("Failed to authorize")}async close(){this._abortController?.abort(),this._eventSource?.close(),this.onclose?.()}async send(t){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(t),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}=Eo(i);if(this._resourceMetadataUrl=o,this._scope=a,await xi(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new Un;return this.send(t)}throw new Error(`Error POSTing to endpoint (HTTP ${i.status}): ${s}`)}await i.body?.cancel()}catch(n){throw this.onerror?.(n),n}}setProtocolVersion(t){this._protocolVersion=t}}const bm="mcp";class xm{constructor(t){this._url=t}start(){if(this._socket)throw new Error("WebSocketClientTransport already started! If using Client class, note that connect() calls start() automatically.");return new Promise((t,n)=>{this._socket=new WebSocket(this._url,bm),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=()=>{t()},this._socket.onclose=()=>{this.onclose?.()},this._socket.onmessage=r=>{let i;try{i=vl.parse(JSON.parse(r.data))}catch(s){this.onerror?.(s);return}this.onmessage?.(i)}})}async close(){this._socket?.close()}send(t){return new Promise((n,r)=>{if(!this._socket){r(new Error("Not connected"));return}this._socket?.send(JSON.stringify(t)),n()})}}class vm extends Ld{constructor(t,n){super(t,n)}send(t,n){const r=Sm(t);return r?.type==="emit"?(this.onmessage?.(r.message),Promise.resolve()):r?.type==="suppress"?Promise.resolve():super.send(t,n)}}function Sm(e){const t=e;if(!t||typeof t!="object"||!("method"in t))return null;switch(t.method){case"initialize":{const n=t?.params?.protocolVersion;return n?{type:"emit",message:{result:{protocolVersion:n,capabilities:{tools:{}},serverInfo:{name:"deco-chat-server",version:"1.0.0"}},jsonrpc:t.jsonrpc??"2.0",id:t.id}}:null}case"notifications/roots/list_changed":case"notifications/initialized":case"notifications/cancelled":case"notifications/progress":return{type:"suppress"};default:return null}}class wm extends Bd{constructor(t,n){super(t,{jsonSchemaValidator:If,...n})}async listTools(t,n){return await this.request({method:"tools/list",params:t},bd,n)}}const jm=async(e,t,n)=>{const r=Om(e.connection,t,n);if(!r)throw new Error("Unknown MCP connection type");const i=new wm({name:e?.name??"MCP Client",version:"1.0.0"});return await i.connect(r),{client:i}},Om=(e,t,n)=>{if(e.type==="Websocket")return new xm(new URL(e.url));if(e.type!=="SSE"&&e.type!=="HTTP")return null;const i={...e.token?{authorization:`Bearer ${e.token}`}:{},...n??{},..."headers"in e?e.headers||{}:{}};if(e.type==="SSE"){const s={requestInit:{headers:i,signal:t}};return e.token&&(s.eventSourceInit={fetch:(o,a)=>fetch(o,{...a,headers:{...i,Accept:"text/event-stream"},signal:t})}),new ym(new URL(e.url),s)}return new vm(new URL(e.url),{requestInit:{headers:i,signal:t,credentials:"include"}})},To=e=>{try{return JSON.parse(e)}catch{return e}},Cr=new Map,Po=(e,t)=>({...e,id:e.name,inputSchema:e.inputSchema?ke(e.inputSchema):void 0,outputSchema:e.outputSchema?ke(e.outputSchema):void 0,execute:n=>t(n.context,e.name)});function Em(e){const t=n=>"connection"in e?jm({connection:e.connection},void 0,n):e.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,c=r){const u=e?.debugId?.(),d=u?{"x-trace-debug-id":u}:void 0,{client:m}=await t(d),{structuredContent:y,isError:f,content:p}=await m.callTool({name:String(c),arguments:l});if(f){const w=p?.[0]?.text,S=typeof w=="string"?To(w):null,E=S?.code&&typeof e?.getErrorByStatusCode=="function"?e.getErrorByStatusCode(S.code,S.message,S.traceId):null;throw E||new Error(`Tool ${String(c)} 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 t(),{tools:c}=await l.listTools();return c}async function o(){if(!("connection"in e))return s();const l=e.connection,c=JSON.stringify(l);try{return Cr.has(c)||Cr.set(c,s()),await Cr.get(c)}catch(u){console.error("Failed to list tools",u),Cr.delete(c);return}}async function a(){return(await o()??[]).map(c=>Po(c,i))}return i.asTool=async()=>{const c=(await o()??[]).find(u=>u.name===r);if(!c)throw new Error(`Tool ${r} not found`);return Po(c,i)},i}})}new Proxy({},{get(e,t){return t==="toJSON"?null:t==="forConnection"?n=>Am({connection:n}):global[t]}});function Am(e){return Em(e)}function Cm(e){return{isImplementedBy:t=>{for(const n of e){const r=typeof n.name=="string"?new RegExp(`^${n.name}$`):n.name,i=t.find(s=>r.test(s.name));if(!(!i&&n.opt)&&!i)return!1}return!0}}}const _m=W({id:$().describe("Unique identifier for the entity"),title:$().describe("Human-readable title for the entity"),description:$().nullish().describe("Description of the entity"),created_at:$().datetime(),updated_at:$().datetime(),created_by:$().optional(),updated_by:$().optional()}),Im=W({field:me($()),operator:Wt(["eq","gt","gte","lt","lte","in","like","contains"]),value:ft()}),Il=xd(()=>ar([Im,W({operator:Wt(["and","or","not"]),conditions:me(Il)})])),Tm=W({field:me($()),direction:Wt(["asc","desc"]),nulls:Wt(["first","last"]).optional()}),Pm=W({where:Il.optional().describe("Filter expression"),orderBy:me(Tm).optional().describe("Sort expressions"),limit:Ae().int().min(1).max(1e3).optional().describe("Maximum number of items to return"),offset:Ae().int().min(0).optional().describe("Number of items to skip")});function Nm(e){return W({items:me(e).describe("Array of collection items"),totalCount:Ae().int().min(0).optional().describe("Total number of matching items (if available)"),hasMore:gt().optional().describe("Whether there are more items available")})}const km=W({id:$().describe("ID of the entity to retrieve")});function Fm(e){return W({item:e.nullable().describe("The retrieved item, or null if not found")})}W({id:$().describe("ID of the entity to delete")});function $m(e,t,n){const r=e.toUpperCase();return[{name:`COLLECTION_${r}_LIST`,inputSchema:Pm,outputSchema:Nm(t)},{name:`COLLECTION_${r}_GET`,inputSchema:km,outputSchema:Fm(t)}]}const Rm=W({id:$(),name:$(),description:$().optional(),inputSchema:ht($(),ft()),outputSchema:ht($(),ft()).optional()}),Dm=_m.extend({_meta:W({"io.decocms":W({id:$(),verified:gt(),scopeName:$(),appName:$(),friendlyName:$().nullable().optional(),metadata:ht($(),ft()).nullable().optional(),publishedAt:$().datetime().optional(),updatedAt:$().datetime().optional(),tools:me(Rm).nullable().optional().describe("Available tools exposed by this app")}).optional()}).optional(),server:W({$schema:$().optional(),_meta:ht($(),ft()).optional(),name:$().describe("The server name (scope/app)"),title:$().optional().describe("User-friendly title"),description:$().optional().describe("Server description"),icons:me(W({src:$(),mimeType:$().optional(),sizes:me($()).optional(),theme:Wt(["light","dark"]).optional()})).optional(),remotes:me(W({type:Wt(["http","stdio","sse"]),url:$().optional(),headers:me(ft()).optional()})).optional(),packages:me(ft()).optional(),repository:W({url:$(),source:$().optional(),subfolder:$().optional()}).optional(),version:$().optional(),websiteUrl:$().optional()})});$m("registry_app",Dm);const Mm=W({specversion:Ge("1.0").describe("CloudEvents specification version"),id:$().describe("Unique identifier for this event (UUID recommended)"),source:$().describe("Connection ID of the event publisher"),type:$().describe("Event type (e.g., 'order.created', 'user.signup')"),time:$().datetime().optional().describe("Timestamp of when the event occurred (ISO 8601)"),subject:$().optional().describe("Subject/resource identifier (e.g., order ID, user ID)"),datacontenttype:$().optional().default("application/json").describe("Content type of the data attribute"),dataschema:$().url().optional().describe("URI to the schema for the data attribute"),data:ft().optional().describe("Event payload (any JSON value)")});W({events:me(Mm).min(1).describe("Batch of CloudEvents to process")});const Um=W({success:gt().optional().describe("Whether this event was processed successfully"),error:$().optional().describe("Error message for this event"),retryAfter:Ae().int().positive().optional().describe("Re-deliver this event after this many ms")});W({success:gt().optional().describe("Batch success - applies to events not in results"),error:$().optional().describe("Batch error message - applies to events not in results"),processedCount:Ae().int().min(0).optional().describe("Number of events successfully processed"),retryAfter:Ae().int().positive().optional().describe("Batch retryAfter - applies to events not in results"),results:ht($(),Um).optional().describe("Per-event results keyed by event ID")});const Lm=W({type:Ge("string"),enum:me($()).optional(),description:$().optional()}),Bm=W({type:$(),description:$(),paramsSchema:ht($(),Lm)});W({});W({triggers:me(Bm)});W({type:$(),params:ht($(),$()),enabled:gt(),callbackUrl:vd().optional(),callbackToken:$().min(1).optional()});W({success:gt()});W({prefix:$().optional().describe("Filter objects by prefix (e.g., 'folder/' for folder contents)"),maxKeys:Ae().optional().default(1e3).describe("Maximum number of keys to return (default: 1000)"),continuationToken:$().optional().describe("Token for pagination from previous response"),delimiter:$().optional().describe("Delimiter for grouping keys (typically '/'). When set, commonPrefixes returns folder paths.")});W({objects:me(W({key:$().describe("Object key/path"),size:Ae().describe("Object size in bytes"),lastModified:$().describe("Last modified timestamp"),etag:$().describe("Entity tag for the object")})),nextContinuationToken:$().optional().describe("Token for fetching next page of results"),isTruncated:gt().describe("Whether there are more results available"),commonPrefixes:me($()).optional().describe("Folder paths when delimiter is used (e.g., ['photos/2024/', 'photos/2025/'])")});W({key:$().describe("Object key/path to get metadata for")});W({contentType:$().optional().describe("MIME type of the object"),contentLength:Ae().describe("Size of the object in bytes"),lastModified:$().describe("Last modified timestamp"),etag:$().describe("Entity tag for the object"),metadata:ht($(),$()).optional().describe("Custom metadata key-value pairs")});W({key:$().describe("Object key/path to generate URL for"),expiresIn:Ae().optional().describe("URL expiration time in seconds (default: from state config or 3600)")});W({url:$().describe("Presigned URL for downloading the object"),expiresIn:Ae().describe("Expiration time in seconds that was used")});W({key:$().describe("Object key/path for the upload"),expiresIn:Ae().optional().describe("URL expiration time in seconds (default: from state config or 3600)"),contentType:$().optional().describe("MIME type for the object being uploaded")});W({url:$().describe("Presigned URL for uploading the object"),expiresIn:Ae().describe("Expiration time in seconds that was used")});W({key:$().describe("Object key/path to delete")});W({success:gt().describe("Whether the deletion was successful"),key:$().describe("The key that was deleted")});W({keys:me($()).max(1e3).describe("Array of object keys/paths to delete (max 1000)")});W({deleted:me($()).describe("Array of successfully deleted keys"),errors:me(W({key:$(),message:$()})).describe("Array of errors for failed deletions")});const zm=W({primary:$().optional().describe("Primary brand color (hex)"),secondary:$().optional().describe("Secondary brand color (hex)"),accent:$().optional().describe("Accent / highlight color (hex)"),background:$().optional().describe("Background color (hex)"),foreground:$().optional().describe("Foreground / text color (hex)")}),Vm=W({heading:$().optional().describe("Font family for headings"),body:$().optional().describe("Font family for body text"),code:$().optional().describe("Font family for code / monospace")}),qm=W({logo:$().optional().describe("Logo URL"),favicon:$().optional().describe("Favicon URL"),ogImage:$().optional().describe("Open Graph image URL")}),Wm=W({id:$(),name:$().describe("Brand / company name"),domain:$().optional().describe("Company domain (e.g. example.com)"),colors:zm.optional().describe("Semantic color palette"),fonts:Vm.optional().describe("Font families by role"),assets:qm.optional().describe("Visual identity assets"),overview:$().optional().describe("Company overview / description"),tagline:$().optional().describe("Brand tagline"),tone:$().optional().describe("Tone of voice description"),metadata:ht($(),ft()).optional().describe("Extra design tokens and metadata")});W({id:$().optional().describe("Brand ID. Omit to get the default brand.")});W({});W({items:me(Wm)});const Hm={"@deco/llm":"LLMS","@deco/trigger":"TRIGGER","@deco/object-storage":"OBJECT_STORAGE","@deco/brand":"BRAND"};function Gm(e){if(e)return Hm[e]}function EA(e,t){const n=e.tools;if(!n||n.length===0)return!1;const r=n.map(o=>({name:o.name,inputSchema:o.inputSchema})),i=t.map(o=>({name:o.name,inputSchema:o.inputSchema,opt:o.opt}));return Cm(i).isImplementedBy(r)}const Ps=P.createContext(null);function AA(e){const t=Te.c(3),{children:n}=e,r=P.useContext(Ps);if(!r?.tabsEl)return null;let i;return t[0]!==n||t[1]!==r.tabsEl?(i=Sl.createPortal(n,r.tabsEl),t[0]=n,t[1]=r.tabsEl,t[2]=i):i=t[2],i}function Km(e){const t=Te.c(3),{children:n}=e,r=P.useContext(Ps);if(!r?.actionsEl)return null;let i;return t[0]!==n||t[1]!==r.actionsEl?(i=Sl.createPortal(n,r.actionsEl),t[0]=n,t[1]=r.actionsEl,t[2]=i):i=t[2],i}const CA=Km;function _A(e){const t=Te.c(21),{children:n,breadcrumb:r,hideHeader:i}=e;let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={leftEl:null,tabsEl:null,actionsEl:null},t[0]=s):s=t[0];const[o,a]=P.useState(s),l=P.useRef(null),c=P.useRef(null),u=P.useRef(null);let d;t[1]===Symbol.for("react.memo_cache_sentinel")?(d=C=>{l.current=C,C&&a(_=>_.leftEl===C?_:{..._,leftEl:C})},t[1]=d):d=t[1];const m=d;let y;t[2]===Symbol.for("react.memo_cache_sentinel")?(y=C=>{c.current=C,C&&a(_=>_.tabsEl===C?_:{..._,tabsEl:C})},t[2]=y):y=t[2];const f=y;let p;t[3]===Symbol.for("react.memo_cache_sentinel")?(p=C=>{u.current=C,C&&a(_=>_.actionsEl===C?_:{..._,actionsEl:C})},t[3]=p):p=t[3];const b=p,w=i&&"hidden";let S;t[4]!==w?(S=ei(w),t[4]=w,t[5]=S):S=t[5];let E;t[6]===Symbol.for("react.memo_cache_sentinel")?(E=h.jsx("div",{ref:m,className:"flex items-center gap-2 min-w-0"}),t[6]=E):E=t[6];let O;t[7]!==r?(O=h.jsxs(Mn.Header.Left,{children:[r,E]}),t[7]=r,t[8]=O):O=t[8];let g;t[9]===Symbol.for("react.memo_cache_sentinel")?(g=h.jsxs(Mn.Header.Right,{children:[h.jsx("div",{ref:f,className:"flex items-center gap-2 overflow-x-auto min-w-0"}),h.jsx("div",{ref:b,className:"flex items-center gap-2 shrink-0"})]}),t[9]=g):g=t[9];let v;t[10]!==S||t[11]!==O?(v=h.jsxs(Mn.Header,{className:S,children:[O,g]}),t[10]=S,t[11]=O,t[12]=v):v=t[12];let j;t[13]!==n?(j=h.jsx(Mn.Content,{children:n}),t[13]=n,t[14]=j):j=t[14];let x;t[15]!==v||t[16]!==j?(x=h.jsxs(Mn,{children:[v,j]}),t[15]=v,t[16]=j,t[17]=x):x=t[17];let A;return t[18]!==o||t[19]!==x?(A=h.jsx(Ps,{value:o,children:x}),t[18]=o,t[19]=x,t[20]=A):A=t[20],A}function Ym(e){return e.startsWith("@")?e:`@${e}`}function Jm(){const{org:e}=As(),{data:t}=Sd.useSession(),n=Gd(),r=ef(),i=tf(),s=r.filter(a=>i(a.id));return{installByBinding:async a=>{if(!e||!t?.user?.id){$r.error("Not authenticated");return}const l=Ym(a),u=(await Promise.all(s.map(async p=>{const b=Jd(p.id,e.id);try{const w=await Zd(p.id,e.id,e.slug,b,{where:{appName:l}});return Xd(w??[])[0]??null}catch{return null}}))).find(p=>p!==null);if(!u){$r.error(`MCP Server not found in registry: ${a}`);return}const d=Qd(u,e.id,t.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){$r.error("This MCP Server cannot be connected: no connection method available");return}return await n.create.mutateAsync(d),{id:d.id,connection:d}},isInstalling:n.create.isPending}}function Y(e){return typeof e!="object"||e===null||typeof e.lastModified=="number"&&typeof File<"u"&&e instanceof File||typeof e.getMonth=="function"&&typeof Date<"u"&&e instanceof Date?!1:!Array.isArray(e)}function Zm(e){return e.additionalItems===!0&&console.warn("additionalItems=true is currently not supported"),Y(e.additionalItems)}function No(e){if(e==="")return;if(e===null)return null;if(/\.$/.test(e)||/\.0$/.test(e)||/\.\d*0$/.test(e))return e;const t=Number(e);return typeof t=="number"&&!Number.isNaN(t)?t:e}const mt="__additional_property",hn="additionalProperties",kt="allOf",ae="anyOf",$e="const",Ht="default",Ns="dependencies",Xm="enum",Pe="__errors",ge="$id",ks="if",xn="items",Qm="_$junk_option_schema_id$_",Mr="$name",Q="oneOf",is="patternProperties",ue="properties",vi="readonly",Tl="required",Gr="submitButtonOptions",pe="$ref",er="__rjsf_ref",Kn="$schema",Pl="root",Nl="_",eh=["discriminator","propertyName"],ko="formContext",th="layoutGridLookupMap",Fs="__rjsf_additionalProperties",kl="__rjsf_rootSchema",nh="ui:field",$s="ui:widget",It="ui:options",ss="ui:globalOptions",rh="ui:definitions",ih="https://json-schema.org/draft/2019-09/schema",Ur="https://json-schema.org/draft/2020-12/schema";function H(e={},t={}){return e?Object.keys(e).filter(n=>n.startsWith("ui:")).reduce((n,r)=>{const i=e[r];return r===$s&&Y(i)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),n):r===It&&Y(i)?{...n,...i}:{...n,[r.substring(3)]:i}},{...t}):{...t}}function Fl(e,t={},n){if(!(e.additionalProperties||e.patternProperties))return!1;const{expandable:r=!0}=H(t);return r===!1?r:e.maxProperties!==void 0&&n?Object.keys(n).length<e.maxProperties:!0}var $l=typeof global=="object"&&global&&global.Object===Object&&global,sh=typeof self=="object"&&self&&self.Object===Object&&self,at=$l||sh||Function("return this")(),ze=at.Symbol,Rl=Object.prototype,oh=Rl.hasOwnProperty,ah=Rl.toString,Ln=ze?ze.toStringTag:void 0;function lh(e){var t=oh.call(e,Ln),n=e[Ln];try{e[Ln]=void 0;var r=!0}catch{}var i=ah.call(e);return r&&(t?e[Ln]=n:delete e[Ln]),i}var ch=Object.prototype,uh=ch.toString;function dh(e){return uh.call(e)}var fh="[object Null]",mh="[object Undefined]",Fo=ze?ze.toStringTag:void 0;function yt(e){return e==null?e===void 0?mh:fh:Fo&&Fo in Object(e)?lh(e):dh(e)}function Dl(e,t){return function(n){return e(t(n))}}var ni=Dl(Object.getPrototypeOf,Object);function Ve(e){return e!=null&&typeof e=="object"}var hh="[object Object]",ph=Function.prototype,gh=Object.prototype,Ml=ph.toString,yh=gh.hasOwnProperty,bh=Ml.call(Object);function Ft(e){if(!Ve(e)||yt(e)!=hh)return!1;var t=ni(e);if(t===null)return!0;var n=yh.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Ml.call(n)==bh}function os(e){const t={[Pe]:[],addError(n){this[Pe].push(n)}};if(Array.isArray(e))return e.reduce((n,r,i)=>({...n,[i]:os(r)}),t);if(Ft(e)){const n=e;return Object.keys(n).reduce((r,i)=>({...r,[i]:os(n[i])}),t)}return t}var Ie=Array.isArray,xh="[object Symbol]";function yr(e){return typeof e=="symbol"||Ve(e)&&yt(e)==xh}var vh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Sh=/^\w*$/;function Rs(e,t){if(Ie(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||yr(e)?!0:Sh.test(e)||!vh.test(e)||t!=null&&e in Object(t)}function le(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var wh="[object AsyncFunction]",jh="[object Function]",Oh="[object GeneratorFunction]",Eh="[object Proxy]";function br(e){if(!le(e))return!1;var t=yt(e);return t==jh||t==Oh||t==wh||t==Eh}var Si=at["__core-js_shared__"],$o=(function(){var e=/[^.]+$/.exec(Si&&Si.keys&&Si.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function Ah(e){return!!$o&&$o in e}var Ch=Function.prototype,_h=Ch.toString;function Xt(e){if(e!=null){try{return _h.call(e)}catch{}try{return e+""}catch{}}return""}var Ih=/[\\^$.*+?()[\]{}|]/g,Th=/^\[object .+?Constructor\]$/,Ph=Function.prototype,Nh=Object.prototype,kh=Ph.toString,Fh=Nh.hasOwnProperty,$h=RegExp("^"+kh.call(Fh).replace(Ih,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Rh(e){if(!le(e)||Ah(e))return!1;var t=br(e)?$h:Th;return t.test(Xt(e))}function Dh(e,t){return e?.[t]}function Qt(e,t){var n=Dh(e,t);return Rh(n)?n:void 0}var cr=Qt(Object,"create");function Mh(){this.__data__=cr?cr(null):{},this.size=0}function Uh(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Lh="__lodash_hash_undefined__",Bh=Object.prototype,zh=Bh.hasOwnProperty;function Vh(e){var t=this.__data__;if(cr){var n=t[e];return n===Lh?void 0:n}return zh.call(t,e)?t[e]:void 0}var qh=Object.prototype,Wh=qh.hasOwnProperty;function Hh(e){var t=this.__data__;return cr?t[e]!==void 0:Wh.call(t,e)}var Gh="__lodash_hash_undefined__";function Kh(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=cr&&t===void 0?Gh:t,this}function Gt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Gt.prototype.clear=Mh;Gt.prototype.delete=Uh;Gt.prototype.get=Vh;Gt.prototype.has=Hh;Gt.prototype.set=Kh;function Yh(){this.__data__=[],this.size=0}function xr(e,t){return e===t||e!==e&&t!==t}function ri(e,t){for(var n=e.length;n--;)if(xr(e[n][0],t))return n;return-1}var Jh=Array.prototype,Zh=Jh.splice;function Xh(e){var t=this.__data__,n=ri(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Zh.call(t,n,1),--this.size,!0}function Qh(e){var t=this.__data__,n=ri(t,e);return n<0?void 0:t[n][1]}function ep(e){return ri(this.__data__,e)>-1}function tp(e,t){var n=this.__data__,r=ri(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function bt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}bt.prototype.clear=Yh;bt.prototype.delete=Xh;bt.prototype.get=Qh;bt.prototype.has=ep;bt.prototype.set=tp;var ur=Qt(at,"Map");function np(){this.size=0,this.__data__={hash:new Gt,map:new(ur||bt),string:new Gt}}function rp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ii(e,t){var n=e.__data__;return rp(t)?n[typeof t=="string"?"string":"hash"]:n.map}function ip(e){var t=ii(this,e).delete(e);return this.size-=t?1:0,t}function sp(e){return ii(this,e).get(e)}function op(e){return ii(this,e).has(e)}function ap(e,t){var n=ii(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function xt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}xt.prototype.clear=np;xt.prototype.delete=ip;xt.prototype.get=sp;xt.prototype.has=op;xt.prototype.set=ap;var lp="Expected a function";function Ds(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(lp);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var o=e.apply(this,r);return n.cache=s.set(i,o)||s,o};return n.cache=new(Ds.Cache||xt),n}Ds.Cache=xt;var cp=500;function up(e){var t=Ds(e,function(r){return n.size===cp&&n.clear(),r}),n=t.cache;return t}var dp=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,fp=/\\(\\)?/g,Ul=up(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(dp,function(n,r,i,s){t.push(i?s.replace(fp,"$1"):r||n)}),t});function In(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var Ro=ze?ze.prototype:void 0,Do=Ro?Ro.toString:void 0;function Ll(e){if(typeof e=="string")return e;if(Ie(e))return In(e,Ll)+"";if(yr(e))return Do?Do.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Ms(e){return e==null?"":Ll(e)}function Tn(e,t){return Ie(e)?e:Rs(e,t)?[e]:Ul(Ms(e))}function $t(e){if(typeof e=="string"||yr(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function si(e,t){t=Tn(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[$t(t[n++])];return n&&n==r?e:void 0}function R(e,t,n){var r=e==null?void 0:si(e,t);return r===void 0?n:r}const{getOwnPropertyNames:mp,getOwnPropertySymbols:hp}=Object,{hasOwnProperty:pp}=Object.prototype;function wi(e,t){return function(r,i,s){return e(r,i,s)&&t(r,i,s)}}function _r(e){return function(n,r,i){if(!n||!r||typeof n!="object"||typeof r!="object")return e(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=e(n,r,i);return s.delete(n),s.delete(r),l}}function Mo(e){return mp(e).concat(hp(e))}const gp=Object.hasOwn||((e,t)=>pp.call(e,t)),yp="__v",bp="__o",xp="_owner",{getOwnPropertyDescriptor:Uo,keys:Lo}=Object,en=Object.is||function(t,n){return t===n?t!==0||1/t===1/n:t!==t&&n!==n};function vp(e,t){return e===t}function Sp(e,t){return e.byteLength===t.byteLength&&Kr(new Uint8Array(e),new Uint8Array(t))}function wp(e,t,n){let r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function jp(e,t){return e.byteLength===t.byteLength&&Kr(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function Op(e,t){return en(e.getTime(),t.getTime())}function Ep(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Bo(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const i=new Array(r),s=e.entries();let o,a,l=0;for(;(o=s.next())&&!o.done;){const c=t.entries();let u=!1,d=0;for(;(a=c.next())&&!a.done;){if(i[d]){d++;continue}const m=o.value,y=a.value;if(n.equals(m[0],y[0],l,d,e,t,n)&&n.equals(m[1],y[1],m[0],y[0],e,t,n)){u=i[d]=!0;break}d++}if(!u)return!1;l++}return!0}function Ap(e,t,n){const r=Lo(e);let i=r.length;if(Lo(t).length!==i)return!1;for(;i-- >0;)if(!Bl(e,t,n,r[i]))return!1;return!0}function Bn(e,t,n){const r=Mo(e);let i=r.length;if(Mo(t).length!==i)return!1;let s,o,a;for(;i-- >0;)if(s=r[i],!Bl(e,t,n,s)||(o=Uo(e,s),a=Uo(t,s),(o||a)&&(!o||!a||o.configurable!==a.configurable||o.enumerable!==a.enumerable||o.writable!==a.writable)))return!1;return!0}function Cp(e,t){return en(e.valueOf(),t.valueOf())}function _p(e,t){return e.source===t.source&&e.flags===t.flags}function zo(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const i=new Array(r),s=e.values();let o,a;for(;(o=s.next())&&!o.done;){const l=t.values();let c=!1,u=0;for(;(a=l.next())&&!a.done;){if(!i[u]&&n.equals(o.value,a.value,o.value,a.value,e,t,n)){c=i[u]=!0;break}u++}if(!c)return!1}return!0}function Kr(e,t){let n=e.byteLength;if(t.byteLength!==n||e.byteOffset!==t.byteOffset)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function Ip(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function Bl(e,t,n,r){return(r===xp||r===bp||r===yp)&&(e.$$typeof||t.$$typeof)?!0:gp(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const Tp=Object.prototype.toString;function Pp(e){const t=$p(e),{areArraysEqual:n,areDatesEqual:r,areFunctionsEqual:i,areMapsEqual:s,areNumbersEqual:o,areObjectsEqual:a,areRegExpsEqual:l,areSetsEqual:c,getUnsupportedCustomComparator:u}=e;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 c(m,y,f);if(b===Promise)return!1;if(Array.isArray(m))return n(m,y,f);const w=Tp.call(m),S=t[w];if(S)return S(m,y,f);const E=u&&u(m,y,f,w);return E?E(m,y,f):!1}}function Np({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:Sp,areArraysEqual:n?Bn:wp,areDataViewsEqual:jp,areDatesEqual:Op,areErrorsEqual:Ep,areFunctionsEqual:vp,areMapsEqual:n?wi(Bo,Bn):Bo,areNumbersEqual:en,areObjectsEqual:n?Bn:Ap,arePrimitiveWrappersEqual:Cp,areRegExpsEqual:_p,areSetsEqual:n?wi(zo,Bn):zo,areTypedArraysEqual:n?wi(Kr,Bn):Kr,areUrlsEqual:Ip,getUnsupportedCustomComparator:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const i=_r(r.areArraysEqual),s=_r(r.areMapsEqual),o=_r(r.areObjectsEqual),a=_r(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:i,areMapsEqual:s,areObjectsEqual:o,areSetsEqual:a})}return r}function kp(e){return function(t,n,r,i,s,o,a){return e(t,n,a)}}function Fp({circular:e,comparator:t,createState:n,equals:r,strict:i}){if(n)return function(a,l){const{cache:c=e?new WeakMap:void 0,meta:u}=n();return t(a,l,{cache:c,equals:r,meta:u,strict:i})};if(e)return function(a,l){return t(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 t(a,l,s)}}function $p({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:i,areFunctionsEqual:s,areMapsEqual:o,areNumbersEqual:a,areObjectsEqual:l,arePrimitiveWrappersEqual:c,areRegExpsEqual:u,areSetsEqual:d,areTypedArraysEqual:m,areUrlsEqual:y}){return{"[object Arguments]":l,"[object Array]":t,"[object ArrayBuffer]":e,"[object AsyncGeneratorFunction]":s,"[object BigInt]":a,"[object BigInt64Array]":m,"[object BigUint64Array]":m,"[object Boolean]":c,"[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]":c,"[object Object]":(f,p,b)=>typeof f.then!="function"&&typeof p.then!="function"&&l(f,p,b),"[object RegExp]":u,"[object Set]":d,"[object String]":c,"[object URL]":y,"[object Uint8Array]":m,"[object Uint8ClampedArray]":m,"[object Uint16Array]":m,"[object Uint32Array]":m}}vt();vt({strict:!0});vt({circular:!0});vt({circular:!0,strict:!0});vt({createInternalComparator:()=>en});vt({strict:!0,createInternalComparator:()=>en});vt({circular:!0,createInternalComparator:()=>en});vt({circular:!0,createInternalComparator:()=>en,strict:!0});function vt(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:i=!1}=e,s=Np(e),o=Pp(s),a=n?n(o):kp(o);return Fp({circular:t,comparator:o,createState:r,equals:a,strict:i})}const ce=vt({circular:!0,createCustomConfig:()=>({areFunctionsEqual(e,t){return typeof t=="function"}})});var zn={exports:{}},ji,Vo;function zl(){if(Vo)return ji;Vo=1;const e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),t=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 v="",j=0,x=0;for(x=0;x<g.length;x++)if(j=g[x].charCodeAt(0),j!==48){if(!(j>=48&&j<=57||j>=65&&j<=70||j>=97&&j<=102))return"";v+=g[x];break}for(x+=1;x<g.length;x++){if(j=g[x].charCodeAt(0),!(j>=48&&j<=57||j>=65&&j<=70||j>=97&&j<=102))return"";v+=g[x]}return v}const o=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function a(g){return g.length=0,!0}function l(g,v,j){if(g.length){const x=s(g);if(x!=="")v.push(x);else return j.error=!0,!1;g.length=0}return!0}function c(g){let v=0;const j={error:!1,address:"",zone:""},x=[],A=[];let C=!1,_=!1,I=l;for(let T=0;T<g.length;T++){const k=g[T];if(!(k==="["||k==="]"))if(k===":"){if(C===!0&&(_=!0),!I(A,x,j))break;if(++v>7){j.error=!0;break}T>0&&g[T-1]===":"&&(C=!0),x.push(":");continue}else if(k==="%"){if(!I(A,x,j))break;I=a}else{A.push(k);continue}}return A.length&&(I===a?j.zone=A.join(""):_?x.push(A.join("")):x.push(s(A))),j.address=x.join(""),j}function u(g){if(d(g,":")<2)return{host:g,isIPV6:!1};const v=c(g);if(v.error)return{host:g,isIPV6:!1};{let j=v.address,x=v.address;return v.zone&&(j+="%"+v.zone,x+="%25"+v.zone),{host:j,isIPV6:!0,escapedHost:x}}}function d(g,v){let j=0;for(let x=0;x<g.length;x++)g[x]===v&&j++;return j}function m(g){let v=g;const j=[];let x=-1,A=0;for(;A=v.length;){if(A===1){if(v===".")break;if(v==="/"){j.push("/");break}else{j.push(v);break}}else if(A===2){if(v[0]==="."){if(v[1]===".")break;if(v[1]==="/"){v=v.slice(2);continue}}else if(v[0]==="/"&&(v[1]==="."||v[1]==="/")){j.push("/");break}}else if(A===3&&v==="/.."){j.length!==0&&j.pop(),j.push("/");break}if(v[0]==="."){if(v[1]==="."){if(v[2]==="/"){v=v.slice(3);continue}}else if(v[1]==="/"){v=v.slice(2);continue}}else if(v[0]==="/"&&v[1]==="."){if(v[2]==="/"){v=v.slice(2);continue}else if(v[2]==="."&&v[3]==="/"){v=v.slice(3),j.length!==0&&j.pop();continue}}if((x=v.indexOf("/",1))===-1){j.push(v);break}else j.push(v.slice(0,x)),v=v.slice(x)}return j.join("")}const y={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},f=/[@/?#:]/g,p=/[@/?#]/g;function b(g,v){const j=v?p:f;return j.lastIndex=0,g.replace(j,x=>y[x])}function w(g,v=!1){if(g.indexOf("%")===-1)return g;let j="";for(let x=0;x<g.length;x++){if(g[x]==="%"&&x+2<g.length){const A=g.slice(x+1,x+3);if(n(A)){const C=A.toUpperCase(),_=String.fromCharCode(parseInt(C,16));v&&r(_)?j+=_:j+="%"+C,x+=2;continue}}j+=g[x]}return j}function S(g){let v="";for(let j=0;j<g.length;j++){if(g[j]==="%"&&j+2<g.length){const x=g.slice(j+1,j+3);if(n(x)){const A=x.toUpperCase(),C=String.fromCharCode(parseInt(A,16));C!=="."&&r(C)?v+=C:v+="%"+A,j+=2;continue}}i(g[j])?v+=g[j]:v+=escape(g[j])}return v}function E(g){let v="";for(let j=0;j<g.length;j++){if(g[j]==="%"&&j+2<g.length){const x=g.slice(j+1,j+3);if(n(x)){v+="%"+x.toUpperCase(),j+=2;continue}}v+=escape(g[j])}return v}function O(g){const v=[];if(g.userinfo!==void 0&&(v.push(g.userinfo),v.push("@")),g.host!==void 0){let j=unescape(g.host);if(!t(j)){const x=u(j);x.isIPV6===!0?j=`[${x.escapedHost}]`:j=b(j,!1)}v.push(j)}return(typeof g.port=="number"||typeof g.port=="string")&&(v.push(":"),v.push(String(g.port))),v.length?v.join(""):void 0}return ji={nonSimpleDomain:o,recomposeAuthority:O,reescapeHostDelimiters:b,normalizePercentEncoding:w,normalizePathEncoding:S,escapePreservingEscapes:E,removeDotSegments:m,isIPv4:t,isUUID:e,normalizeIPv6:u,stringArrayToHexStripped:s},ji}var Oi,qo;function Rp(){if(qo)return Oi;qo=1;const{isUUID:e}=zl(),t=/([\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 v=String(g.scheme).toLowerCase()==="https";return(g.port===(v?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[v,j]=g.resourceName.split("?");g.path=v&&v!=="/"?v:void 0,g.query=j,g.resourceName=void 0}return g.fragment=void 0,g}function c(g,v){if(!g.path)return g.error="URN can not be parsed",g;const j=g.path.match(t);if(j){const x=v.scheme||g.scheme||"urn";g.nid=j[1].toLowerCase(),g.nss=j[2];const A=`${x}:${v.nid||g.nid}`,C=O(A);g.path=void 0,C&&(g=C.parse(g,v))}else g.error=g.error||"URN can not be parsed.";return g}function u(g,v){if(g.nid===void 0)throw new Error("URN without nid cannot be serialized");const j=v.scheme||g.scheme||"urn",x=g.nid.toLowerCase(),A=`${j}:${v.nid||x}`,C=O(A);C&&(g=C.serialize(g,v));const _=g,I=g.nss;return _.path=`${x||v.nid}:${I}`,v.skipEscape=!0,_}function d(g,v){const j=g;return j.uuid=j.nss,j.nss=void 0,!v.tolerant&&(!j.uuid||!e(j.uuid))&&(j.error=j.error||"UUID is not valid."),j}function m(g){const v=g;return v.nss=(g.uuid||"").toLowerCase(),v}const y={scheme:"http",domainHost:!0,parse:s,serialize:o},f={scheme:"https",domainHost:y.domainHost,parse:s,serialize:o},p={scheme:"ws",domainHost:!0,parse:a,serialize:l},b={scheme:"wss",domainHost:p.domainHost,parse:p.parse,serialize:p.serialize},E={http:y,https:f,ws:p,wss:b,urn:{scheme:"urn",parse:c,serialize:u,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:d,serialize:m,skipNormalize:!0}};Object.setPrototypeOf(E,null);function O(g){return g&&(E[g]||E[g.toLowerCase()])||void 0}return Oi={wsIsSecure:i,SCHEMES:E,isValidSchemeName:r,getSchemeHandler:O},Oi}var Wo;function Dp(){if(Wo)return zn.exports;Wo=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:n,normalizePercentEncoding:r,normalizePathEncoding:i,escapePreservingEscapes:s,reescapeHostDelimiters:o,isIPv4:a,nonSimpleDomain:l}=zl(),{SCHEMES:c,getSchemeHandler:u}=Rp();function d(x,A){return typeof x=="string"?x=O(x,A):typeof x=="object"&&(x=E(p(x,A),A)),x}function m(x,A,C){const _=C?Object.assign({scheme:"null"},C):{scheme:"null"},I=y(E(x,_),E(A,_),_,!0);return _.skipEscape=!0,p(I,_)}function y(x,A,C,_){const I={};return _||(x=E(p(x,C),C),A=E(p(A,C),C)),C=C||{},!C.tolerant&&A.scheme?(I.scheme=A.scheme,I.userinfo=A.userinfo,I.host=A.host,I.port=A.port,I.path=t(A.path||""),I.query=A.query):(A.userinfo!==void 0||A.host!==void 0||A.port!==void 0?(I.userinfo=A.userinfo,I.host=A.host,I.port=A.port,I.path=t(A.path||""),I.query=A.query):(A.path?(A.path[0]==="/"?I.path=t(A.path):((x.userinfo!==void 0||x.host!==void 0||x.port!==void 0)&&!x.path?I.path="/"+A.path:x.path?I.path=x.path.slice(0,x.path.lastIndexOf("/")+1)+A.path:I.path=A.path,I.path=t(I.path)),I.query=A.query):(I.path=x.path,A.query!==void 0?I.query=A.query:I.query=x.query),I.userinfo=x.userinfo,I.host=x.host,I.port=x.port),I.scheme=x.scheme),I.fragment=A.fragment,I}function f(x,A,C){const _=v(x,C),I=v(A,C);return _!==void 0&&I!==void 0&&_.toLowerCase()===I.toLowerCase()}function p(x,A){const C={host:x.host,scheme:x.scheme,userinfo:x.userinfo,port:x.port,path:x.path,query:x.query,nid:x.nid,nss:x.nss,uuid:x.uuid,fragment:x.fragment,reference:x.reference,resourceName:x.resourceName,secure:x.secure,error:""},_=Object.assign({},A),I=[],T=u(_.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 k=n(C);if(k!==void 0&&(_.reference!=="suffix"&&I.push("//"),I.push(k),C.path&&C.path[0]!=="/"&&I.push("/")),C.path!==void 0){let N=C.path;!_.absolutePath&&(!T||!T.absolutePath)&&(N=t(N)),k===void 0&&N[0]==="/"&&N[1]==="/"&&(N="/%2F"+N.slice(2)),I.push(N)}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 w(x,A){if(A[2]!==void 0&&x.path&&x.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof x.port=="number"&&(x.port<0||x.port>65535))return"URI port is malformed."}function S(x,A){const C=Object.assign({},A),_={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let I=!1,T=!1;C.reference==="suffix"&&(C.scheme?x=C.scheme+":"+x:x="//"+x);const k=x.match(b);if(k){_.scheme=k[1],_.userinfo=k[3],_.host=k[4],_.port=parseInt(k[5],10),_.path=k[6]||"",_.query=k[7],_.fragment=k[8],isNaN(_.port)&&(_.port=k[5]);const N=w(_,k);if(N!==void 0&&(_.error=_.error||N,I=!0),_.host)if(a(_.host)===!1){const z=e(_.host);_.host=z.host.toLowerCase(),T=z.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 F=u(C.scheme||_.scheme);if(!C.unicodeSupport&&(!F||!F.unicodeSupport)&&_.host&&(C.domainHost||F&&F.domainHost)&&T===!1&&l(_.host))try{_.host=new URL("http://"+_.host).hostname}catch(M){_.error=_.error||"Host's domain name can not be converted to ASCII: "+M}if((!F||F&&!F.skipNormalize)&&(x.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"}F&&F.parse&&F.parse(_,C)}else _.error=_.error||"URI can not be parsed.";return{parsed:_,malformedAuthorityOrPort:I}}function E(x,A){return S(x,A).parsed}function O(x,A){return g(x,A).normalized}function g(x,A){const{parsed:C,malformedAuthorityOrPort:_}=S(x,A);return{normalized:_?x:p(C,A),malformedAuthorityOrPort:_}}function v(x,A){if(typeof x=="string"){const{normalized:C,malformedAuthorityOrPort:_}=g(x,A);return _?void 0:C}if(typeof x=="object")return p(x,A)}const j={SCHEMES:c,normalize:d,resolve:m,resolveComponent:y,equal:f,serialize:p,parse:E};return zn.exports=j,zn.exports.default=j,zn.exports.fastUri=j,zn.exports}var Mp=Dp();const Us=Cs(Mp);var Vn={},Ho;function Up(){if(Ho)return Vn;Ho=1;var e=/~/,t=/~[01]/g;function n(c){switch(c){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+c)}function r(c){return e.test(c)?c.replace(t,n):c}function i(c,u,d){for(var m,y,f=1,p=u.length;f<p;){if(u[f]==="constructor"||u[f]==="prototype"||u[f]==="__proto__")return c;if(m=r(u[f++]),y=p>f,typeof c[m]>"u"&&(Array.isArray(c)&&m==="-"&&(m=c.length),y&&(u[f]!==""&&u[f]<1/0||u[f]==="-"?c[m]=[]:c[m]={})),!y)break;c=c[m]}var b=c[m];return d===void 0?delete c[m]:c[m]=d,b}function s(c){if(typeof c=="string"){if(c=c.split("/"),c[0]==="")return c;throw new Error("Invalid JSON pointer.")}else if(Array.isArray(c)){for(const u of c)if(typeof u!="string"&&typeof u!="number")throw new Error("Invalid JSON pointer. Must be of type string or number.");return c}throw new Error("Invalid JSON pointer.")}function o(c,u){if(typeof c!="object")throw new Error("Invalid input object.");u=s(u);var d=u.length;if(d===1)return c;for(var m=1;m<d;){if(c=c[r(u[m++])],d===m)return c;if(typeof c!="object"||c===null)return}}function a(c,u,d){if(typeof c!="object")throw new Error("Invalid input object.");if(u=s(u),u.length===0)throw new Error("Invalid JSON pointer for set.");return i(c,u,d)}function l(c){var u=s(c);return{get:function(d){return o(d,u)},set:function(d,m){return a(d,u,m)}}}return Vn.get=o,Vn.set=a,Vn.compile=l,Vn}var Lp=Up();const Ei=Cs(Lp);var Bp=Object.prototype;function oi(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Bp;return e===n}var zp=Dl(Object.keys,Object),Vp=Object.prototype,qp=Vp.hasOwnProperty;function Vl(e){if(!oi(e))return zp(e);var t=[];for(var n in Object(e))qp.call(e,n)&&n!="constructor"&&t.push(n);return t}var as=Qt(at,"DataView"),ls=Qt(at,"Promise"),bn=Qt(at,"Set"),cs=Qt(at,"WeakMap"),Go="[object Map]",Wp="[object Object]",Ko="[object Promise]",Yo="[object Set]",Jo="[object WeakMap]",Zo="[object DataView]",Hp=Xt(as),Gp=Xt(ur),Kp=Xt(ls),Yp=Xt(bn),Jp=Xt(cs),Le=yt;(as&&Le(new as(new ArrayBuffer(1)))!=Zo||ur&&Le(new ur)!=Go||ls&&Le(ls.resolve())!=Ko||bn&&Le(new bn)!=Yo||cs&&Le(new cs)!=Jo)&&(Le=function(e){var t=yt(e),n=t==Wp?e.constructor:void 0,r=n?Xt(n):"";if(r)switch(r){case Hp:return Zo;case Gp:return Go;case Kp:return Ko;case Yp:return Yo;case Jp:return Jo}return t});var Zp="[object Arguments]";function Xo(e){return Ve(e)&&yt(e)==Zp}var ql=Object.prototype,Xp=ql.hasOwnProperty,Qp=ql.propertyIsEnumerable,vn=Xo((function(){return arguments})())?Xo:function(e){return Ve(e)&&Xp.call(e,"callee")&&!Qp.call(e,"callee")},eg=9007199254740991;function Ls(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=eg}function tn(e){return e!=null&&Ls(e.length)&&!br(e)}function tg(){return!1}var Wl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Qo=Wl&&typeof module=="object"&&module&&!module.nodeType&&module,ng=Qo&&Qo.exports===Wl,ea=ng?at.Buffer:void 0,rg=ea?ea.isBuffer:void 0,Kt=rg||tg,ig="[object Arguments]",sg="[object Array]",og="[object Boolean]",ag="[object Date]",lg="[object Error]",cg="[object Function]",ug="[object Map]",dg="[object Number]",fg="[object Object]",mg="[object RegExp]",hg="[object Set]",pg="[object String]",gg="[object WeakMap]",yg="[object ArrayBuffer]",bg="[object DataView]",xg="[object Float32Array]",vg="[object Float64Array]",Sg="[object Int8Array]",wg="[object Int16Array]",jg="[object Int32Array]",Og="[object Uint8Array]",Eg="[object Uint8ClampedArray]",Ag="[object Uint16Array]",Cg="[object Uint32Array]",be={};be[xg]=be[vg]=be[Sg]=be[wg]=be[jg]=be[Og]=be[Eg]=be[Ag]=be[Cg]=!0;be[ig]=be[sg]=be[yg]=be[og]=be[bg]=be[ag]=be[lg]=be[cg]=be[ug]=be[dg]=be[fg]=be[mg]=be[hg]=be[pg]=be[gg]=!1;function _g(e){return Ve(e)&&Ls(e.length)&&!!be[yt(e)]}function Bs(e){return function(t){return e(t)}}var Hl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,tr=Hl&&typeof module=="object"&&module&&!module.nodeType&&module,Ig=tr&&tr.exports===Hl,Ai=Ig&&$l.process,Sn=(function(){try{var e=tr&&tr.require&&tr.require("util").types;return e||Ai&&Ai.binding&&Ai.binding("util")}catch{}})(),ta=Sn&&Sn.isTypedArray,vr=ta?Bs(ta):_g,Tg="[object Map]",Pg="[object Set]",Ng=Object.prototype,kg=Ng.hasOwnProperty;function we(e){if(e==null)return!0;if(tn(e)&&(Ie(e)||typeof e=="string"||typeof e.splice=="function"||Kt(e)||vr(e)||vn(e)))return!e.length;var t=Le(e);if(t==Tg||t==Pg)return!e.size;if(oi(e))return!Vl(e).length;for(var n in e)if(kg.call(e,n))return!1;return!0}function Fg(){this.__data__=new bt,this.size=0}function $g(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Rg(e){return this.__data__.get(e)}function Dg(e){return this.__data__.has(e)}var Mg=200;function Ug(e,t){var n=this.__data__;if(n instanceof bt){var r=n.__data__;if(!ur||r.length<Mg-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new xt(r)}return n.set(e,t),this.size=n.size,this}function Ye(e){var t=this.__data__=new bt(e);this.size=t.size}Ye.prototype.clear=Fg;Ye.prototype.delete=$g;Ye.prototype.get=Rg;Ye.prototype.has=Dg;Ye.prototype.set=Ug;function zs(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Yr=(function(){try{var e=Qt(Object,"defineProperty");return e({},"",{}),e}catch{}})();function Vs(e,t,n){t=="__proto__"&&Yr?Yr(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Lg=Object.prototype,Bg=Lg.hasOwnProperty;function qs(e,t,n){var r=e[t];(!(Bg.call(e,t)&&xr(r,n))||n===void 0&&!(t in e))&&Vs(e,t,n)}function Pn(e,t,n,r){var i=!n;n||(n={});for(var s=-1,o=t.length;++s<o;){var a=t[s],l=void 0;l===void 0&&(l=e[a]),i?Vs(n,a,l):qs(n,a,l)}return n}function Gl(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var zg=9007199254740991,Vg=/^(?:0|[1-9]\d*)$/;function ai(e,t){var n=typeof e;return t=t??zg,!!t&&(n=="number"||n!="symbol"&&Vg.test(e))&&e>-1&&e%1==0&&e<t}var qg=Object.prototype,Wg=qg.hasOwnProperty;function Kl(e,t){var n=Ie(e),r=!n&&vn(e),i=!n&&!r&&Kt(e),s=!n&&!r&&!i&&vr(e),o=n||r||i||s,a=o?Gl(e.length,String):[],l=a.length;for(var c in e)(t||Wg.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||ai(c,l)))&&a.push(c);return a}function Ke(e){return tn(e)?Kl(e):Vl(e)}function Hg(e,t){return e&&Pn(t,Ke(t),e)}function Gg(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Kg=Object.prototype,Yg=Kg.hasOwnProperty;function Jg(e){if(!le(e))return Gg(e);var t=oi(e),n=[];for(var r in e)r=="constructor"&&(t||!Yg.call(e,r))||n.push(r);return n}function Sr(e){return tn(e)?Kl(e,!0):Jg(e)}function Zg(e,t){return e&&Pn(t,Sr(t),e)}var Yl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,na=Yl&&typeof module=="object"&&module&&!module.nodeType&&module,Xg=na&&na.exports===Yl,ra=Xg?at.Buffer:void 0,ia=ra?ra.allocUnsafe:void 0;function Jl(e,t){if(t)return e.slice();var n=e.length,r=ia?ia(n):new e.constructor(n);return e.copy(r),r}function Ws(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function Qg(e,t){for(var n=-1,r=e==null?0:e.length,i=0,s=[];++n<r;){var o=e[n];t(o,n,e)&&(s[i++]=o)}return s}function Zl(){return[]}var ey=Object.prototype,ty=ey.propertyIsEnumerable,sa=Object.getOwnPropertySymbols,Hs=sa?function(e){return e==null?[]:(e=Object(e),Qg(sa(e),function(t){return ty.call(e,t)}))}:Zl;function ny(e,t){return Pn(e,Hs(e),t)}function Gs(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var ry=Object.getOwnPropertySymbols,Xl=ry?function(e){for(var t=[];e;)Gs(t,Hs(e)),e=ni(e);return t}:Zl;function iy(e,t){return Pn(e,Xl(e),t)}function Ql(e,t,n){var r=t(e);return Ie(e)?r:Gs(r,n(e))}function us(e){return Ql(e,Ke,Hs)}function Ks(e){return Ql(e,Sr,Xl)}var sy=Object.prototype,oy=sy.hasOwnProperty;function ay(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&oy.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Jr=at.Uint8Array;function Ys(e){var t=new e.constructor(e.byteLength);return new Jr(t).set(new Jr(e)),t}function ly(e,t){var n=t?Ys(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var cy=/\w*$/;function uy(e){var t=new e.constructor(e.source,cy.exec(e));return t.lastIndex=e.lastIndex,t}var oa=ze?ze.prototype:void 0,aa=oa?oa.valueOf:void 0;function dy(e){return aa?Object(aa.call(e)):{}}function ec(e,t){var n=t?Ys(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var fy="[object Boolean]",my="[object Date]",hy="[object Map]",py="[object Number]",gy="[object RegExp]",yy="[object Set]",by="[object String]",xy="[object Symbol]",vy="[object ArrayBuffer]",Sy="[object DataView]",wy="[object Float32Array]",jy="[object Float64Array]",Oy="[object Int8Array]",Ey="[object Int16Array]",Ay="[object Int32Array]",Cy="[object Uint8Array]",_y="[object Uint8ClampedArray]",Iy="[object Uint16Array]",Ty="[object Uint32Array]";function Py(e,t,n){var r=e.constructor;switch(t){case vy:return Ys(e);case fy:case my:return new r(+e);case Sy:return ly(e,n);case wy:case jy:case Oy:case Ey:case Ay:case Cy:case _y:case Iy:case Ty:return ec(e,n);case hy:return new r;case py:case by:return new r(e);case gy:return uy(e);case yy:return new r;case xy:return dy(e)}}var la=Object.create,tc=(function(){function e(){}return function(t){if(!le(t))return{};if(la)return la(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}})();function nc(e){return typeof e.constructor=="function"&&!oi(e)?tc(ni(e)):{}}var Ny="[object Map]";function ky(e){return Ve(e)&&Le(e)==Ny}var ca=Sn&&Sn.isMap,Fy=ca?Bs(ca):ky,$y="[object Set]";function Ry(e){return Ve(e)&&Le(e)==$y}var ua=Sn&&Sn.isSet,Dy=ua?Bs(ua):Ry,My=1,Uy=2,Ly=4,rc="[object Arguments]",By="[object Array]",zy="[object Boolean]",Vy="[object Date]",qy="[object Error]",ic="[object Function]",Wy="[object GeneratorFunction]",Hy="[object Map]",Gy="[object Number]",sc="[object Object]",Ky="[object RegExp]",Yy="[object Set]",Jy="[object String]",Zy="[object Symbol]",Xy="[object WeakMap]",Qy="[object ArrayBuffer]",eb="[object DataView]",tb="[object Float32Array]",nb="[object Float64Array]",rb="[object Int8Array]",ib="[object Int16Array]",sb="[object Int32Array]",ob="[object Uint8Array]",ab="[object Uint8ClampedArray]",lb="[object Uint16Array]",cb="[object Uint32Array]",ye={};ye[rc]=ye[By]=ye[Qy]=ye[eb]=ye[zy]=ye[Vy]=ye[tb]=ye[nb]=ye[rb]=ye[ib]=ye[sb]=ye[Hy]=ye[Gy]=ye[sc]=ye[Ky]=ye[Yy]=ye[Jy]=ye[Zy]=ye[ob]=ye[ab]=ye[lb]=ye[cb]=!0;ye[qy]=ye[ic]=ye[Xy]=!1;function nr(e,t,n,r,i,s){var o,a=t&My,l=t&Uy,c=t&Ly;if(n&&(o=i?n(e,r,i,s):n(e)),o!==void 0)return o;if(!le(e))return e;var u=Ie(e);if(u){if(o=ay(e),!a)return Ws(e,o)}else{var d=Le(e),m=d==ic||d==Wy;if(Kt(e))return Jl(e,a);if(d==sc||d==rc||m&&!i){if(o=l||m?{}:nc(e),!a)return l?iy(e,Zg(o,e)):ny(e,Hg(o,e))}else{if(!ye[d])return i?e:{};o=Py(e,d,a)}}s||(s=new Ye);var y=s.get(e);if(y)return y;s.set(e,o),Dy(e)?e.forEach(function(b){o.add(nr(b,t,n,b,e,s))}):Fy(e)&&e.forEach(function(b,w){o.set(w,nr(b,t,n,w,e,s))});var f=c?l?Ks:us:l?Sr:Ke,p=u?void 0:f(e);return zs(p||e,function(b,w){p&&(w=b,b=e[w]),qs(o,w,nr(b,t,n,w,e,s))}),o}function oc(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function ub(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var s=Array(i);++r<i;)s[r]=e[r+t];return s}function db(e,t){return t.length<2?e:si(e,ub(t,0,-1))}var fb=Object.prototype,mb=fb.hasOwnProperty;function ac(e,t){t=Tn(t,e);var n=-1,r=t.length;if(!r)return!0;for(;++n<r;){var i=$t(t[n]);if(i==="__proto__"&&!mb.call(e,"__proto__")||(i==="constructor"||i==="prototype")&&n<r-1)return!1}var s=db(e,t);return s==null||delete s[$t(oc(t))]}function hb(e){return Ft(e)?void 0:e}var da=ze?ze.isConcatSpreadable:void 0;function pb(e){return Ie(e)||vn(e)||!!(da&&e&&e[da])}function wr(e,t,n,r,i){var s=-1,o=e.length;for(n||(n=pb),i||(i=[]);++s<o;){var a=e[s];t>0&&n(a)?t>1?wr(a,t-1,n,r,i):Gs(i,a):r||(i[i.length]=a)}return i}function ds(e){var t=e==null?0:e.length;return t?wr(e,1):[]}function gb(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var fa=Math.max;function lc(e,t,n){return t=fa(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,s=fa(r.length-t,0),o=Array(s);++i<s;)o[i]=r[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=r[i];return a[t]=n(o),gb(e,this,a)}}function yb(e){return function(){return e}}function li(e){return e}var bb=Yr?function(e,t){return Yr(e,"toString",{configurable:!0,enumerable:!1,value:yb(t),writable:!0})}:li,xb=800,vb=16,Sb=Date.now;function wb(e){var t=0,n=0;return function(){var r=Sb(),i=vb-(r-n);if(n=r,i>0){if(++t>=xb)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var cc=wb(bb);function uc(e){return cc(lc(e,void 0,ds),e+"")}var jb=1,Ob=2,Eb=4,wn=uc(function(e,t){var n={};if(e==null)return n;var r=!1;t=In(t,function(s){return s=Tn(s,e),r||(r=s.length>1),s}),Pn(e,Ks(e),n),r&&(n=nr(n,jb|Ob|Eb,hb));for(var i=t.length;i--;)ac(n,t[i]);return n});function Zr(e,t){if(ge in e&&Us.equal(e[ge],t))return e;for(const n of Object.values(e))if(Array.isArray(n)){for(const r of n)if(le(r)){const i=Zr(r,t);if(i!==void 0)return i}}else if(le(n)){const r=Zr(n,t);if(r!==void 0)return r}}function fs(e,t){const n=R(e,ge,t);let r=e;pe in r&&(r={...r,[pe]:Us.resolve(n,r[pe])});for(const[i,s]of Object.entries(r))Array.isArray(s)?r={...r,[i]:s.map(o=>le(o)?fs(o,n):o)}:le(s)&&(r={...r,[i]:fs(s,n)});return r}function Js(e,t){const n=t[e];return[wn(t,[e]),n]}function dc(e,t={},n=[],r=R(t,[ge])){const i=e||"";let s,o=r;if(i.startsWith("#")){const l=decodeURIComponent(i.substring(1));o===void 0||ge in t&&t[ge]===o?s=Ei.get(t,l):t[Kn]===Ur&&(s=Zr(t,o.replace(/\/$/,"")),s!==void 0&&(s=Ei.get(s,l)))}else if(t[Kn]===Ur){const l=o?Us.resolve(o,i):i,[c,...u]=l.replace(/#\/?$/,"").split("#");s=Zr(t,c.replace(/\/$/,"")),s!==void 0&&(o=s[ge],we(u)||(s=Ei.get(s,decodeURIComponent(u.join("#")))))}if(s===void 0)throw new Error(`Could not find a definition for ${e}.`);const a=s[pe];if(a){if(n.includes(a)){if(n.length===1)throw new Error(`Definition for ${e} 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,c]=Js(pe,s),u=dc(c,t,[...n,i],o);return Object.keys(l).length>0?t[Kn]===ih||t[Kn]===Ur?{[kt]:[l,u]}:{...l,...u}:u}return s}function dr(e,t={},n=R(t,[ge])){return dc(e,t,[],n)}var Ab=Object.prototype,Cb=Ab.hasOwnProperty;function _b(e,t){return e!=null&&Cb.call(e,t)}function fc(e,t,n){t=Tn(t,e);for(var r=-1,i=t.length,s=!1;++r<i;){var o=$t(t[r]);if(!(s=e!=null&&n(e,o)))break;e=e[o]}return s||++r!=i?s:(i=e==null?0:e.length,!!i&&Ls(i)&&ai(o,i)&&(Ie(e)||vn(e)))}function ie(e,t){return e!=null&&fc(e,t,_b)}var Ib="[object String]";function Rt(e){return typeof e=="string"||!Ie(e)&&Ve(e)&&yt(e)==Ib}function Je(e){let t;const n=R(e,eh);return Rt(n)?t=n:n!==void 0&&console.warn(`Expecting discriminator to be a string, got "${typeof n}" instead`),t}var Tb=1/0;function Pb(e){var t=e==null?0:e.length;return t?wr(e,Tb):[]}function ms(e,t,n){(n!==void 0&&!xr(e[t],n)||n===void 0&&!(t in e))&&Vs(e,t,n)}function Nb(e){return function(t,n,r){for(var i=-1,s=Object(t),o=r(t),a=o.length;a--;){var l=o[++i];if(n(s[l],l,s)===!1)break}return t}}var mc=Nb();function fr(e){return Ve(e)&&tn(e)}function hs(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function kb(e){return Pn(e,Sr(e))}function Fb(e,t,n,r,i,s,o){var a=hs(e,n),l=hs(t,n),c=o.get(l);if(c){ms(e,n,c);return}var u=s?s(a,l,n+"",e,t,o):void 0,d=u===void 0;if(d){var m=Ie(l),y=!m&&Kt(l),f=!m&&!y&&vr(l);u=l,m||y||f?Ie(a)?u=a:fr(a)?u=Ws(a):y?(d=!1,u=Jl(l,!0)):f?(d=!1,u=ec(l,!0)):u=[]:Ft(l)||vn(l)?(u=a,vn(a)?u=kb(a):(!le(a)||br(a))&&(u=nc(l))):d=!1}d&&(o.set(l,u),i(u,l,r,s,o),o.delete(l)),ms(e,n,u)}function hc(e,t,n,r,i){e!==t&&mc(t,function(s,o){if(i||(i=new Ye),le(s))Fb(e,t,o,n,hc,r,i);else{var a=r?r(hs(e,o),s,o+"",e,t,i):void 0;a===void 0&&(a=s),ms(e,o,a)}},Sr)}function ci(e,t){return cc(lc(e,t,li),e+"")}function $b(e,t,n){if(!le(n))return!1;var r=typeof t;return(r=="number"?tn(n)&&ai(t,n.length):r=="string"&&t in n)?xr(n[t],e):!1}function Rb(e){return ci(function(t,n){var r=-1,i=n.length,s=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(s=e.length>3&&typeof s=="function"?(i--,s):void 0,o&&$b(n[0],n[1],o)&&(s=i<3?void 0:s,i=1),t=Object(t);++r<i;){var a=n[r];a&&e(t,a,r,s)}return t})}var Db=Rb(function(e,t,n){hc(e,t,n)});function Zs(e,t,n,r){if(!le(e))return e;t=Tn(t,e);for(var i=-1,s=t.length,o=s-1,a=e;a!=null&&++i<s;){var l=$t(t[i]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(i!=o){var u=a[l];c=r?r(u,l,a):void 0,c===void 0&&(c=le(u)?u:ai(t[i+1])?[]:{})}qs(a,l,c),a=a[l]}return e}function he(e,t,n){return e==null?e:Zs(e,t,n)}function pc(e){return typeof e=="function"?e:li}var Mb=/\s/;function Ub(e){for(var t=e.length;t--&&Mb.test(e.charAt(t)););return t}var Lb=/^\s+/;function Bb(e){return e&&e.slice(0,Ub(e)+1).replace(Lb,"")}var ma=NaN,zb=/^[-+]0x[0-9a-f]+$/i,Vb=/^0b[01]+$/i,qb=/^0o[0-7]+$/i,Wb=parseInt;function Hb(e){if(typeof e=="number")return e;if(yr(e))return ma;if(le(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=le(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Bb(e);var n=Vb.test(e);return n||qb.test(e)?Wb(e.slice(2),n?2:8):zb.test(e)?ma:+e}var ha=1/0,Gb=17976931348623157e292;function Kb(e){if(!e)return e===0?e:0;if(e=Hb(e),e===ha||e===-ha){var t=e<0?-1:1;return t*Gb}return e===e?e:0}function gc(e){var t=Kb(e),n=t%1;return t===t?n?t-n:t:0}var Yb=9007199254740991,Ci=4294967295,Jb=Math.min;function yc(e,t){if(e=gc(e),e<1||e>Yb)return[];var n=Ci,r=Jb(e,Ci);t=pc(t),e-=Ci;for(var i=Gl(r,t);++n<e;)t(n);return i}function bc(e,t){return e&&mc(e,t,Ke)}var Zb="__lodash_hash_undefined__";function Xb(e){return this.__data__.set(e,Zb),this}function Qb(e){return this.__data__.has(e)}function Yt(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new xt;++t<n;)this.add(e[t])}Yt.prototype.add=Yt.prototype.push=Xb;Yt.prototype.has=Qb;function ex(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function mr(e,t){return e.has(t)}var tx=1,nx=2;function xc(e,t,n,r,i,s){var o=n&tx,a=e.length,l=t.length;if(a!=l&&!(o&&l>a))return!1;var c=s.get(e),u=s.get(t);if(c&&u)return c==t&&u==e;var d=-1,m=!0,y=n&nx?new Yt:void 0;for(s.set(e,t),s.set(t,e);++d<a;){var f=e[d],p=t[d];if(r)var b=o?r(p,f,d,t,e,s):r(f,p,d,e,t,s);if(b!==void 0){if(b)continue;m=!1;break}if(y){if(!ex(t,function(w,S){if(!mr(y,S)&&(f===w||i(f,w,n,r,s)))return y.push(S)})){m=!1;break}}else if(!(f===p||i(f,p,n,r,s))){m=!1;break}}return s.delete(e),s.delete(t),m}function rx(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function Xs(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var ix=1,sx=2,ox="[object Boolean]",ax="[object Date]",lx="[object Error]",cx="[object Map]",ux="[object Number]",dx="[object RegExp]",fx="[object Set]",mx="[object String]",hx="[object Symbol]",px="[object ArrayBuffer]",gx="[object DataView]",pa=ze?ze.prototype:void 0,_i=pa?pa.valueOf:void 0;function yx(e,t,n,r,i,s,o){switch(n){case gx:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case px:return!(e.byteLength!=t.byteLength||!s(new Jr(e),new Jr(t)));case ox:case ax:case ux:return xr(+e,+t);case lx:return e.name==t.name&&e.message==t.message;case dx:case mx:return e==t+"";case cx:var a=rx;case fx:var l=r&ix;if(a||(a=Xs),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;r|=sx,o.set(e,t);var u=xc(a(e),a(t),r,i,s,o);return o.delete(e),u;case hx:if(_i)return _i.call(e)==_i.call(t)}return!1}var bx=1,xx=Object.prototype,vx=xx.hasOwnProperty;function Sx(e,t,n,r,i,s){var o=n&bx,a=us(e),l=a.length,c=us(t),u=c.length;if(l!=u&&!o)return!1;for(var d=l;d--;){var m=a[d];if(!(o?m in t:vx.call(t,m)))return!1}var y=s.get(e),f=s.get(t);if(y&&f)return y==t&&f==e;var p=!0;s.set(e,t),s.set(t,e);for(var b=o;++d<l;){m=a[d];var w=e[m],S=t[m];if(r)var E=o?r(S,w,m,t,e,s):r(w,S,m,e,t,s);if(!(E===void 0?w===S||i(w,S,n,r,s):E)){p=!1;break}b||(b=m=="constructor")}if(p&&!b){var O=e.constructor,g=t.constructor;O!=g&&"constructor"in e&&"constructor"in t&&!(typeof O=="function"&&O instanceof O&&typeof g=="function"&&g instanceof g)&&(p=!1)}return s.delete(e),s.delete(t),p}var wx=1,ga="[object Arguments]",ya="[object Array]",Ir="[object Object]",jx=Object.prototype,ba=jx.hasOwnProperty;function Ox(e,t,n,r,i,s){var o=Ie(e),a=Ie(t),l=o?ya:Le(e),c=a?ya:Le(t);l=l==ga?Ir:l,c=c==ga?Ir:c;var u=l==Ir,d=c==Ir,m=l==c;if(m&&Kt(e)){if(!Kt(t))return!1;o=!0,u=!1}if(m&&!u)return s||(s=new Ye),o||vr(e)?xc(e,t,n,r,i,s):yx(e,t,l,n,r,i,s);if(!(n&wx)){var y=u&&ba.call(e,"__wrapped__"),f=d&&ba.call(t,"__wrapped__");if(y||f){var p=y?e.value():e,b=f?t.value():t;return s||(s=new Ye),i(p,b,n,r,s)}}return m?(s||(s=new Ye),Sx(e,t,n,r,i,s)):!1}function ui(e,t,n,r,i){return e===t?!0:e==null||t==null||!Ve(e)&&!Ve(t)?e!==e&&t!==t:Ox(e,t,n,r,ui,i)}var Ex=1,Ax=2;function Cx(e,t,n,r){var i=n.length,s=i;if(e==null)return!s;for(e=Object(e);i--;){var o=n[i];if(o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++i<s;){o=n[i];var a=o[0],l=e[a],c=o[1];if(o[2]){if(l===void 0&&!(a in e))return!1}else{var u=new Ye,d;if(!(d===void 0?ui(c,l,Ex|Ax,r,u):d))return!1}}return!0}function vc(e){return e===e&&!le(e)}function _x(e){for(var t=Ke(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,vc(i)]}return t}function Sc(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function Ix(e){var t=_x(e);return t.length==1&&t[0][2]?Sc(t[0][0],t[0][1]):function(n){return n===e||Cx(n,e,t)}}function Tx(e,t){return e!=null&&t in Object(e)}function wc(e,t){return e!=null&&fc(e,t,Tx)}var Px=1,Nx=2;function kx(e,t){return Rs(e)&&vc(t)?Sc($t(e),t):function(n){var r=R(n,e);return r===void 0&&r===t?wc(n,e):ui(t,r,Px|Nx)}}function Fx(e){return function(t){return t?.[e]}}function $x(e){return function(t){return si(t,e)}}function Rx(e){return Rs(e)?Fx($t(e)):$x(e)}function Qs(e){return typeof e=="function"?e:e==null?li:typeof e=="object"?Ie(e)?kx(e[0],e[1]):Ix(e):Rx(e)}function Dx(e,t,n){var r=Ie(e),i=r||Kt(e)||vr(e);if(t=Qs(t),n==null){var s=e&&e.constructor;i?n=r?new s:[]:le(e)?n=br(s)?tc(ni(e)):{}:n={}}return(i?zs:bc)(e,function(o,a,l){return t(n,o,a,l)}),n}function Mx(e,t,n,r){for(var i=e.length,s=n+-1;++s<i;)if(t(e[s],s,e))return s;return-1}function Ux(e){return e!==e}function Lx(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function jc(e,t,n){return t===t?Lx(e,t,n):Mx(e,Ux,n)}function eo(e,t){var n=e==null?0:e.length;return!!n&&jc(e,t,0)>-1}function Lr(){}var Bx=1/0,zx=bn&&1/Xs(new bn([,-0]))[1]==Bx?function(e){return new bn(e)}:Lr,Vx=200;function Oc(e,t,n){var r=-1,i=eo,s=e.length,o=!0,a=[],l=a;if(s>=Vx){var c=zx(e);if(c)return Xs(c);o=!1,i=mr,l=new Yt}else l=a;e:for(;++r<s;){var u=e[r],d=u;if(u=u!==0?u:0,o&&d===d){for(var m=l.length;m--;)if(l[m]===d)continue e;a.push(u)}else i(l,d,n)||(l!==a&&l.push(d),a.push(u))}return a}function Ec(e){return e&&e.length?Oc(e):[]}function hr(e){return Array.isArray(e)?"array":typeof e=="string"?"string":e==null?"null":typeof e=="boolean"?"boolean":typeof e=="number"&&!Number.isNaN(e)?"number":typeof e=="object"?"object":"string"}var qx=ci(function(e){return Oc(wr(e,1,fr,!0))});function qe(e){let{type:t}=e;return!t&&e.const?hr(e.const):!t&&e.enum?"string":!t&&(e.properties||e.additionalProperties||e.patternProperties)?"object":(Array.isArray(t)&&(t.length===2&&t.includes("null")?t=t.find(n=>n!=="null"):t=t[0]),t)}function pt(e,t){const n={...e};return Object.keys(t).reduce((r,i)=>{const s=e?e[i]:{},o=t[i];return e&&i in e&&Y(o)?r[i]=pt(s,o):e&&t&&(qe(e)==="object"||qe(t)==="object")&&i===Tl&&Array.isArray(s)&&Array.isArray(o)?r[i]=qx(s,o):r[i]=o,r},n)}var Wx="[object Number]";function Ac(e){return typeof e=="number"||Ve(e)&&yt(e)==Wx}function Cc(e,t,n){var r;if(e&&n){const i=R(e,n);if(i===void 0)return;for(let s=0;s<t.length;s+=1){const o=t[s],a=R(o,[ue,n],{});if(a.type!=="object"&&a.type!=="array"&&(a.const===i||!((r=a.enum)===null||r===void 0)&&r.includes(i)))return s}}}function Xr(e,t,n,r,i){if(t===void 0)return 0;const s=Cc(t,n,i);if(Ac(s))return s;for(let o=0;o<n.length;o+=1){const a=n[o];if(i&&ie(a,[ue,i])){const l=R(t,i),c=R(a,[ue,i],{});if(e.isValid(c,l,r))return o}else if(a[ue]){const l={anyOf:Object.keys(a[ue]).map(u=>({required:[u]}))};let c;if(a.anyOf){const{...u}=a;u.allOf?u.allOf=u.allOf.slice():u.allOf=[],u.allOf.push(l),c=u}else c={...a,...l};if(delete c.required,e.isValid(c,t,r))return o}else if(e.isValid(a,t,r))return o}return 0}const Hx=Object.prototype;function Yn(e){for(const t in e)if(Hx.hasOwnProperty.call(e,t))return!1;return!0}const Gx=["array","boolean","integer","null","number","object","string"];new Set(Gx);const Kx=["$defs","definitions","properties","patternProperties","dependencies"];new Set(Kx);const Yx=["items","allOf","oneOf","anyOf"];new Set(Yx);const Jx=["items","additionalItems","additionalProperties","propertyNames","contains","if","then","else","not"];new Set(Jx);function Br(e){return typeof e=="object"}function et(e){return Br(e)?Yn(e):e===!0}function pn(e,t){return e<t?-1:e>t?1:0}function Ii(e,t){const n=e.length;if(n===0)return t;let r=t.length;if(r===0)return e;if(n<r){const s=e;e=t,t=s,r=n}const i=new Set(e);for(let s=0;s<r;s++)i.add(t[s]);return Array.from(i)}function Zx(e,t){const n=[];if(e.length===0||t.length===0)return n;if(e.length>t.length){const i=e;e=t,t=i}const r=new Set(t);for(let i=0;i<e.length&&r.size>0;i++){const s=e[i];r.delete(s)&&n.push(s)}return n}function xa(e){return e.length===0}function Ti(e){return(t,n)=>{const r=t.length-n.length;if(r!==0)return r;for(let i=0;i<t.length;i++)if(t[i]!==n[i]){const s=e(t[i],n[i]);if(s!==0)return s}return 0}}function _c(e,{threshold:t=12}={}){return n=>{const r=n.length;if(r===0)return n;if(r<=t){const o=[];let a=0;e:for(let l=0;l<r;l++){const c=n[l];for(let u=0;u<a;u++)if(e(c,o[u])===0)continue e;a=o.push(c)}return o}const i=n.slice().sort(e);let s=0;for(let o=1;o<r;o++)e(i[s],i[o])!==0&&++s!==o&&(i[s]=i[o]);return i.length=s+1,i}}function Xx(e){return(t,n)=>{const r=[];let i=t.length,s=n.length;if(i===0||s===0)return r;if(i>s){const u=t;t=n,n=u;const d=i;i=s,s=d}const o=[...t].sort(e),a=[...n].sort(e);let l=0,c=0;for(;l<i&&c<s;){const u=e(o[l],a[c]);u===0?((r.length===0||e(r[r.length-1],o[l])!==0)&&r.push(o[l]),l++,c++):u<0?l++:c++}return r}}function Qx(e,t){return n=>{if(e.has(n))return e.get(n);const r=t(n);return e.set(n,r),r}}const va=Qx,Ic=()=>0,e0=e=>e===void 0,t0=e=>typeof e!="object",Sa={boolean:0,number:1,string:2};function n0(e,t){const n=typeof e,r=typeof t;return n===r?pn(e,t):Sa[n]-Sa[r]}function r0(e,t){const n=e.length;if(n===0)return t;const r=t.length;if(r===0)return e;if(r>n){const o=e;e=t,t=o}const i=new Set(e),s=t.length;for(let o=0;o<s;o++){const a=t[o];i.has(a)||e.push(a)}return e}function di(e,t,n=Ic){return(r,i)=>e(r)?e(i)?n(r,i):-1:e(i)?1:t(r,i)}function dn(e){return di(e0,e)}function Ot(e,t){return di(n=>n===void 0||e(n),t)}function Pi(e,t){return di(Array.isArray,e,t)}const Ee=dn(pn),Ni=Ot(e=>e===0,(e,t)=>e-t);function i0({deduplicationCache:e=new WeakMap,sortedKeysCache:t=new WeakMap}={}){const n=va(t,p=>Object.keys(p).sort());function r(p){return(b,w)=>{const S=n(b),E=n(w),O=Math.min(S.length,E.length);for(let g=0;g<O;g++){const v=pn(S[g],E[g]);if(v!==0)return v}if(S.length!==E.length)return S.length-E.length;for(let g=0;g<O;g++){const v=S[g],j=p(b[v],w[v]);if(j!==0)return j}return 0}}function i(p){const b=Ti(p),w=va(e,_c(p,{threshold:0}));return(S,E)=>b(w(S),w(E))}const s=i(pn);function o(p,b){if(Br(p)){if(Br(b)){const w=Object.keys(p),S=Object.keys(b),E=r0(w,S),O=E.length;for(let g=0;g<O;g++){const v=E[g];if(p[v]===b[v])continue;const x=(f[v]??a)(p[v],b[v]);if(x!==0)return x}return 0}return b===!0&&Yn(p)?0:1}return Br(b)?p===!0&&Yn(b)?0:-1:pn(p,b)}const a=dn(c),l=di(t0,Pi(r(a),Ti(c)),n0);function c(p,b){return p===null?-1:b===null?1:l(p,b)}const u=dn(o),d=Ot(Yn,r(u)),m=dn(i(o)),y=Ot(et,o),f={$id:Ee,$comment:Ee,$defs:d,$ref:Ee,$schema:Ee,const:a,contains:u,contentEncoding:Ee,contentMediaType:Ee,default:a,definitions:d,description:Ee,else:u,examples:a,exclusiveMaximum:Ee,exclusiveMinimum:Ee,format:Ee,if:u,maximum:Ee,maxItems:Ee,maxLength:Ee,maxProperties:Ee,minimum:Ee,multipleOf:Ee,not:u,pattern:Ee,propertyNames:u,readOnly:Ee,then:u,title:Ee,writeOnly:Ee,uniqueItems:Ot(p=>p===!1,Ic),minLength:Ni,minItems:Ni,minProperties:Ni,required:Ot(xa,s),enum:Ot(xa,i(c)),type:dn((p,b)=>{const w=Array.isArray(p),S=Array.isArray(b);return!w&&!S?pn(p,b):s(w?p:[p],S?b:[b])}),items:Ot(p=>!Array.isArray(p)&&et(p),Pi(o,Ti(o))),anyOf:m,allOf:m,oneOf:m,properties:d,patternProperties:d,additionalProperties:y,additionalItems:y,dependencies:Ot(Yn,r(dn(Pi(o,s))))};return{compareSchemaValues:c,compareSchemaDefinitions:o}}function wa(e){return e}const Tc=(e,t)=>e?Tc(t%e,e):t,s0=(e,t)=>Math.abs(e*t)/Tc(e,t);function o0(e,t){return e===t?e:`^(?=.*(?:${e}))(?=.*(?:${t})).*$`}function ki(e,t,n){const r=e.length,i=t.length;if(r>0&&i>0)for(let s=0;s<r;s++){const o=e[s];for(let a=0;a<i;a++)n(o,t[a])}}function Fi(e,t){return e||t}function ja(e){return(t,n)=>{const r={...t},i=Object.keys(n),s=i.length;for(let o=0;o<s;o++){const a=i[o];r[a]=t[a]===void 0?n[a]:e(t[a],n[a])}return r}}function a0(e){const t=new Map;for(const n of e)for(const r of n[0])t.set(r,n[1]);return t}function Lt(e,t,n){n===void 0||et(n)?delete e[t]:e[t]=n}const l0=["properties","patternProperties","additionalProperties"];function Oa(e){const t=Object.keys(e),n=t.length,r=[];for(let i=0;i<n;i++){const s=t[i];r.push({regExp:new RegExp(s),schema:e[s]})}return[r,t]}const Ea=[[],[]];function Aa(e,t,n){const r=n.length;for(let i=0;i<r;i++){const s=n[i];if(!s.regExp.test(t))continue;const o=s.schema;if(o===!1)return!0;e.push(o)}return!1}const c0=["items","additionalItems"],u0=["if","then","else"];function Ca(e,t){return t.if!==void 0&&(e.if=t.if),t.then!==void 0&&(e.then=t.then),t.else!==void 0&&(e.else=t.else),e}function $i(e,t){if(e===t)return e;switch(e){case"number":if(t==="integer")return"integer";case"integer":if(t==="number")return"integer";default:return}}function Bt(e,t,n){return[e,t,n]}function d0(e){const t=new Map;for(const[n,r,i]of e){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=t.get(o[0]);a===void 0&&(a=[],t.set(o[0],a)),a.push({oppositeKey:o[1],check:s})}}return t}const f0=[Bt("minimum","maximum",e=>e.maximum>=e.minimum),Bt("exclusiveMinimum","maximum",e=>e.maximum>e.exclusiveMinimum),Bt("minimum","exclusiveMaximum",e=>e.exclusiveMaximum>e.minimum),Bt("exclusiveMinimum","exclusiveMaximum",e=>e.exclusiveMaximum>e.exclusiveMinimum),Bt("minLength","maxLength",e=>e.maxLength>=e.minLength),Bt("minItems","maxItems",e=>e.maxItems>=e.minItems),Bt("minProperties","maxProperties",e=>e.maxProperties>=e.minProperties)];function m0({mergePatterns:e=o0,isSubRegExp:t=Object.is,intersectJson:n=Zx,deduplicateJsonSchemaDef:r=wa,defaultMerger:i=wa,assigners:s=[],checks:o=f0,mergers:a}={}){function l(O){const g=O.length;let v=O[0];for(let j=1;j<g;j++){const x=w(v,O[j]);if(x===!1)return!1;et(x)||(v=x)}return v}function c(O,g,v,j,x,A,C){if(O.length=0,v===!1)return!1;if(O.push(v),x!==void 0){if(x===!1)return!1;O.push(x)}if(Aa(O,g,A))return!1;const I=O.length<2;if(C===!1){if(I)return;if(Aa(O,g,j))return!1}else I&&C!==void 0&&O.push(C);return O.length===1?O[0]:l(O)}function u(O,g,v,j,x,A){const C=v.length;if(C>0&&x!==!1)if(A)Object.assign(O,g);else for(let _=0;_<C;_++){const I=v[_];j.has(I)||(O[I]=w(g[I],x))}return O}const d=(O,{properties:g={},patternProperties:v,additionalProperties:j=!0},{properties:x={},patternProperties:A,additionalProperties:C=!0})=>{const _=et(j),I=et(C);if(_&&I)return Lt(O,"properties",S(g,x)),Lt(O,"patternProperties",v&&A?S(v,A):v??A),delete O.additionalProperties,O;const T=w(j,C);Lt(O,"additionalProperties",T);const k={},N=Object.keys(g),F=N.length,[M,z]=v?Oa(v):Ea,[V,D]=A?Oa(A):Ea,de=[],fe=new Set,Se=I?void 0:C;for(let B=0;B<F;B++){const se=N[B];fe.add(se);const oe=c(de,se,g[se],M,x[se],V,Se);oe!==void 0&&(k[se]=oe)}const q=Object.keys(x),J=q.length,G=_?void 0:j;for(let B=0;B<J;B++){const se=q[B];if(fe.has(se))continue;const oe=c(de,se,x[se],V,void 0,M,G);oe!==void 0&&(k[se]=oe)}Lt(O,"properties",k);let Z={};const X=new Set;return z.length>0&&D.length>0&&ki(z,D,(B,se)=>{t(B,se)&&X.add(B),t(se,B)&&X.add(se),Z[e(B,se)]=w(v[B],A[se])}),Z=u(Z,v,z,X,C,I),Z=u(Z,A,D,X,j,_),Lt(O,"patternProperties",Z),O},m=(O,{items:g=[],additionalItems:v},{items:j=[],additionalItems:x})=>{const A=Array.isArray(g),C=Array.isArray(j),_=[];if(O.items=_,A&&C){const[I,T,k]=g.length<j.length?[g.length,v,j]:[j.length,x,g];let N=0;for(;N<I;N++)_.push(w(g[N],j[N]));if(T===!1)O.additionalItems=!1;else{const F=T===void 0||et(T);for(;N<k.length;N++)_.push(F?k[N]:w(k[N],T));Lt(O,"additionalItems",v!==void 0&&x!==void 0?w(v,x):v??x)}}else if(A||C){const[I,T,k]=A?[g,j,v]:[j,g,x];Lt(O,"additionalItems",k&&w(k,T));for(let N=0;N<I.length;N++)_.push(w(I[N],T))}else delete O.additionalItems,O.items=w(g,j);return O},y=(O,g,v)=>{Ca(O,g);const j=Ca({},v);return O.allOf===void 0?O.allOf=[j]:O.allOf=O.allOf.concat(j),O};function f(O,g){const v=[];if(ki(O,g,(j,x)=>{try{v.push(w(j,x))}catch{}}),v.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(v)}const p=a0([[l0,d],[c0,m],[u0,y],...s]),b=d0(o);function w(O,g){if(O===!1||g===!1)return!1;if(et(O))return et(g)?!0:g;if(et(g))return O;let v={...O};const j=new Set,x=new Set,A=Object.keys(g),C=A.length;for(let _=0;_<C;_++){const I=A[_],T=g[I];if(T===void 0)continue;const k=b.get(I);if(k!==void 0){const z=k.length;for(let V=0;V<z;V++){const D=k[V];O[D.oppositeKey]!==void 0&&x.add(D.check)}}const N=O[I];if(N===void 0){v[I]=T;continue}const F=p.get(I);if(F){j.add(F);continue}const M=E[I]??i;v[I]=M(N,T)}for(const _ of j)v=_(v,O,g);for(const _ of x)_(v);return v}const S=ja(w),E={$id:i,$ref:i,$schema:i,$comment:i,$defs:S,definitions:S,type:(O,g)=>{if(O===g)return O;const v=Array.isArray(O),j=Array.isArray(g);if(!v&&!j){const x=$i(O,g);if(x!==void 0)return x}else if(v||j){const x=new Set;if(v&&j)ki(O,g,(C,_)=>{const I=$i(C,_);I!==void 0&&x.add(I)});else{const C=v?O:g,_=v?g:O,I=C.length;for(let T=0;T<I;T++){const k=$i(_,C[T]);k!==void 0&&x.add(k)}}const A=x.size;if(A===1)return x.values().next().value;if(A>1)return Array.from(x)}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 v=r([O,g]);return v.length===1?v[0]:{anyOf:v}},pattern:e,readOnly:Fi,writeOnly:Fi,enum:(O,g)=>{const v=n(O,g);if(v.length===0)throw new Error(`Intersection of the following enums is empty: "${JSON.stringify(O)}", "${JSON.stringify(g)}"`);return v},anyOf:f,oneOf:f,allOf:(O,g)=>r(O.concat(g)),propertyNames:w,contains:w,dependencies:ja((O,g)=>Array.isArray(O)?Array.isArray(g)?Ii(O,g):w(g,{required:O}):Array.isArray(g)?w(O,{required:g}):w(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 Ii(O,g)},multipleOf:(O,g)=>{let v=1;for(;!Number.isInteger(O)||!Number.isInteger(g);)v*=10,O*=10,g*=10;return s0(O,g)/v},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:Ii,...a};return{mergeSchemaDefinitions:w,mergeArrayOfSchemaDefinitions:l}}function h0(e){const t=[],n=[e];for(;n.length>0;){const r=n.pop();if(typeof r=="boolean"||r.allOf===void 0){t.push(r);continue}const{allOf:i,...s}=r;t.push(s);for(let o=i.length-1;o>=0;o--)n.push(i[o])}return t}function p0(e){return t=>e(h0(t))}const{compareSchemaDefinitions:g0,compareSchemaValues:y0}=i0(),{mergeArrayOfSchemaDefinitions:b0}=m0({intersectJson:Xx(y0),deduplicateJsonSchemaDef:_c(g0)}),Pc=p0(b0);function Ne(e,t,n={},r,i,s=!1){return nt(e,t,n,r,void 0,void 0,i,s)[0]}function x0(e,t,n,r,i,s,o){const{if:a,then:l,else:c,...u}=t,d=e.isValid(a,s||{},n);let m=[u],y=[];if(r)l&&typeof l!="boolean"&&(y=y.concat(nt(e,l,n,s,r,i,o))),c&&typeof c!="boolean"&&(y=y.concat(nt(e,c,n,s,r,i,o)));else{const f=d?l:c;f&&typeof f!="boolean"&&(y=y.concat(nt(e,f,n,s,r,i,o)))}return y.length&&(m=y.map(f=>pt(u,f))),m.flatMap(f=>nt(e,f,n,s,r,i,o))}function Nc(e){return e.reduce((n,r)=>r.length>1?r.flatMap(i=>yc(n.length,s=>[...n[s]].concat(i))):(n.forEach(i=>i.push(r[0])),n),[[]])}function kc(e,t){return Object.keys(e.patternProperties).filter(n=>RegExp(n).test(t)).reduce((n,r)=>(he(n,[r],e.patternProperties[r]),n),{})}function v0(e,t,n,r,i,s,o,a){const l=Fc(e,t,n,r,i,s,o,a);if(l.length>1||l[0]!==t)return l;if(Ns in t)return Rc(e,t,n,r,i,s,o).flatMap(u=>nt(e,u,n,s,r,i,o));if(kt in t&&Array.isArray(t[kt])){const c=t.allOf.map(d=>nt(e,d,n,s,r,i,o));return Nc(c).map(d=>({...t,allOf:d}))}return[t]}function Fc(e,t,n,r,i,s,o,a){const l=Tt(t,n,i,void 0,a);return l!==t?nt(e,l,n,s,r,i,o,a):[t]}function Tt(e,t,n,r,i){if(!Y(e))return e;let s=e,o=r;if(pe in s){const{$ref:a,...l}=s;if(n.includes(a))return s;n.push(a),s={...dr(a,t,o),...l,[er]:a},ge in s&&(o=s[ge])}if(ue in s){const a=[],l=Dx(s[ue],(c,u,d)=>{const m=[...n];c[d]=Tt(u,t,m,o,i),a.push(m)},{});Db(n,Ec(Pb(a))),s={...s,[ue]:l}}if(xn in s&&!Array.isArray(s.items)&&typeof s.items!="boolean"&&(s={...s,items:Tt(s.items,t,n,o,i)}),i){let a,l;ae in e&&Array.isArray(e[ae])?(a=ae,l=s[ae]):Q in e&&Array.isArray(e[Q])&&(a=Q,l=s[Q]),a&&l&&(s={...s,[a]:l.map(c=>Tt(c,t,n,o,i))})}return ce(e,s)?e:s}function S0(e,t,n,r,i){const s={...t,properties:{...t.properties}},o=r&&Y(r)?r:{};return Object.keys(o).forEach(a=>{if(!(a in s.properties)){if(is in s){const l=kc(s,a);if(!we(l)){s.properties[a]=Ne(e,{[kt]:Object.values(l)},n,R(o,[a]),i),he(s.properties,[a,mt],!0);return}}if(hn in s&&s.additionalProperties!==!1){let l;typeof s.additionalProperties!="boolean"?pe in s.additionalProperties?l=Ne(e,{[pe]:R(s.additionalProperties,[pe])},n,o,i):"type"in s.additionalProperties?l={...s.additionalProperties}:ae in s.additionalProperties||Q in s.additionalProperties?l={type:"object",...s.additionalProperties}:l={type:hr(R(o,[a]))}:l={type:hr(R(o,[a]))},s.properties[a]=l,he(s.properties,[a,mt],!0)}else s.properties[a]={type:"null"},he(s.properties,[a,mt],!0)}}),s}function w0(e){return Pc(e)}function nt(e,t,n,r,i=!1,s=[],o,a){return Y(t)?v0(e,t,n,i,s,r,o,a).flatMap(c=>{var u;let d=c;if(ks in d)return x0(e,d,n,i,s,r,o);if(kt in d){if(i){const{allOf:y,...f}=d;return[...y,f]}try{const y=[],f=[];(u=d.allOf)===null||u===void 0||u.forEach(p=>{typeof p=="object"&&p.contains?y.push(p):f.push(p)}),y.length&&(d={...d,allOf:f}),d=o?o(d):w0(d),y.length&&(d.allOf=y)}catch(y){console.warn(`could not merge subschemas in allOf:
|
|
2
|
+
`,y);const{allOf:f,...p}=d;return p}}return ue in d&&is in d&&(d=Object.keys(d.properties).reduce((y,f)=>{const p=kc(y,f);return we(p)||(y.properties[f]=Ne(e,{allOf:[y.properties[f],...Object.values(p)]},n,R(r,[f]),o)),y},{...d,properties:{...d.properties}})),is in d||hn in d&&d.additionalProperties!==!1?S0(e,d,n,r,o):d}):[{}]}function j0(e,t,n,r,i){let s;const{oneOf:o,anyOf:a,...l}=t;if(Array.isArray(o)?s=o:Array.isArray(a)&&(s=a),s){const c=i===void 0&&r?{}:i,u=Je(t);s=s.map(m=>Tt(m,n,[]));const d=Xr(e,c,s,n,u);if(r){const m=$c(s,!1,n);return Xr(e,c,m,n,u),s.map(y=>pt(l,y))}return[pt(l,s[d])]}return[t]}function $c(e,t=!1,n){return e.map(r=>{if(!Y(r))return r?{}:{not:{}};const i=t&&n?Tt(r,n,[]):r;return i.additionalProperties===!1?{...i,additionalProperties:!0}:i})}function Rc(e,t,n,r,i,s,o){const{dependencies:a,...l}=t;return j0(e,l,n,r,s).flatMap(u=>Dc(e,a,u,n,r,i,s,o))}function Dc(e,t,n,r,i,s,o,a){let l=[n];for(const c in t)if((i||R(o,[c])!==void 0)&&(!n.properties||c in n.properties)){const[u,d]=Js(c,t);return Array.isArray(d)?l[0]=O0(n,d):Y(d)&&(l=E0(e,n,r,c,d,i,s,o,a)),l.flatMap(m=>Dc(e,u,m,r,i,s,o,a))}return l}function O0(e,t){if(!t)return e;const n=Array.isArray(e.required)?Array.from(new Set([...e.required,...t])):t;return{...e,required:n}}function E0(e,t,n,r,i,s,o,a,l){return nt(e,i,n,a,s,o,l).flatMap(u=>{const{oneOf:d,...m}=u,y=pt(t,m);if(d===void 0)return y;const f=d.map(b=>typeof b=="boolean"||!(pe in b)?[b]:Fc(e,b,n,s,o,a));return Nc(f).flatMap(b=>A0(e,y,n,r,b,s,o,a,l))})}function A0(e,t,n,r,i,s,o,a,l){const c=i.filter(u=>{if(typeof u=="boolean"||!u||!u.properties)return!1;const{[r]:d}=u.properties;if(d){const m={type:"object",properties:{[r]:d}};return e.isValid(m,a,n)||s}return!1});return!s&&c.length!==1?(console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),[t]):c.flatMap(u=>{const d=u,[m]=Js(r,d.properties),y={...d,properties:m};return nt(e,y,n,a,s,o,l).map(p=>pt(t,p))})}function Jn(e,t,n,r,i,s={},o){if(Array.isArray(n[i])){const l=Je(n)||r,c=n[i].map(d=>Ne(e,d,t,s,o)),u=R(s,l);if(u!==void 0)return c.find(d=>ce(R(d,[ue,l,Ht],R(d,[ue,l,$e])),u))}}function Mc(e,t,n,r,i){let s=n;if(ie(n,pe)&&(s=Ne(e,n,t,void 0,i)),we(r))return s;const o=Array.isArray(r)?[...r]:r.split("."),[a,...l]=o;if(a!==void 0&&a!==""&&ie(s,a))return s=R(s,a),Mc(e,t,s,l,i)}function zr(e,t,n,r,i,s){const o=Mc(e,t,n,r,s);return o===void 0?i:o}const _a={title:"!@#$_UNKNOWN_$#@!"};function C0(e,t,n,r,i={},s){const o=Array.isArray(r)?[...r]:r.split(".");let a=n;const l=o.pop(),c=String(l);o.length&&o.forEach(y=>{a=zr(e,t,a,[ue,y],{},s),ie(a,Q)?a=Jn(e,t,a,c,Q,R(i,y),s):ie(a,ae)&&(a=Jn(e,t,a,c,ae,R(i,y),s))}),ie(a,Q)?a=Jn(e,t,a,c,Q,i,s):ie(a,ae)&&(a=Jn(e,t,a,c,ae,i,s));let u=zr(e,t,a,[ue,l],_a,s);u===_a&&(u=void 0);const d=zr(e,t,a,Tl,[],s);let m;return u&&Array.isArray(d)&&(m=d.includes(c)),{field:u,isRequired:m}}function _0(e,t,n,r){var i=-1,s=e==null?0:e.length;for(r&&s&&(n=e[++i]);++i<s;)n=t(n,e[i],i,e);return n}function I0(e,t){return function(n,r){if(n==null)return n;if(!tn(n))return e(n,r);for(var i=n.length,s=-1,o=Object(n);++s<i&&r(o[s],s,o)!==!1;);return n}}var Uc=I0(bc);function T0(e,t,n,r,i){return i(e,function(s,o,a){n=r?(r=!1,s):t(n,s,o,a)}),n}function P0(e,t,n){var r=Ie(e)?_0:T0,i=arguments.length<3;return r(e,Qs(t),n,i,Uc)}const N0={type:"object",$id:Qm,properties:{__not_really_there__:{type:"number"}}};function ps(e,t,n,r,i){let s=0;return n&&(le(n.properties)?s+=P0(n.properties,(o,a,l)=>{const c=R(r,l);if(typeof a=="boolean")return o;if(ie(a,pe)){const u=Ne(e,a,t,c,i);return o+ps(e,t,u,c||{},i)}if((ie(a,Q)||ie(a,ae))&&c){const u=ie(a,Q)?Q:ae,d=Je(a);return o+jn(e,t,c,R(a,u),-1,d,i)}if(a.type==="object"){const u=le(c)?1:0;return o+u+ps(e,t,a,c,i)}if(a.type===hr(c)){let u=o+1;return a.default?u+=c===a.default?1:-1:a.const&&(u+=c===a.const?1:-1),u}return o},0):Rt(n.type)&&n.type===hr(r)&&(s+=1)),s}function jn(e,t,n,r,i=-1,s,o){const a=r.map(m=>Tt(m,t,[])),l=Cc(n,r,s);if(Ac(l))return l;const c=a.reduce((m,y,f)=>(Xr(e,n,[N0,y],t,s)===1&&m.push(f),m),[]);if(c.length===1)return c[0];c.length||yc(a.length,m=>c.push(m));const u=new Set,{bestIndex:d}=c.reduce((m,y)=>{const{bestScore:f}=m,p=a[y],b=ps(e,t,p,n,o);return u.add(b),b>f?{bestIndex:y,bestScore:b}:m},{bestIndex:i,bestScore:0});return u.size===1&&i>=0?i:d}function Lc(e){const t=e[$e],n=qe(e);return Y(t)&&Rt(t?.$data)&&n!=="object"&&n!=="array"}function Bc(e){return Array.isArray(e.enum)&&e.enum.length===1||$e in e}function to(e){return Array.isArray(e.items)&&e.items.length>0&&e.items.every(t=>Y(t))}function On(e){return e==null}function pr(e,t,n=!1,r=!1,i=!1){if(Array.isArray(t)){const s=Array.isArray(e)?e:[],o=i?s:t,a=i?t:s,l=o.map((c,u)=>a[u]!==void 0?pr(s[u],t[u],n,r,i):c);return(n||i)&&l.length<a.length&&l.push(...a.slice(l.length)),l}if(Y(t)){const s=Object.assign({},e);return Object.keys(t).reduce((o,a)=>{var l;const c=R(t,a),u=Y(e)&&a in e,d=a in t,m=(l=R(e,a))!==null&&l!==void 0?l:{},y=u&&Y(m)&&Object.values(m).some(b=>Y(b)),f=u&&Y(R(e,a)),p=d&&Y(c);return f&&p&&!y?(o[a]={...R(e,a),...c},o):(o[a]=pr(R(e,a),c,n,r,i&&(u||!d)),s)},s)}return r&&(e!==void 0&&On(t)||typeof t=="number"&&Number.isNaN(t))||i&&!On(t)?e:t}function Jt(e,t,n=!1){return Object.keys(t).reduce((r,i)=>{const s=e?e[i]:{},o=t[i];if(e&&i in e&&Y(o))r[i]=Jt(s,o,n);else if(n&&Array.isArray(s)&&Array.isArray(o)){let a=o;n==="preventDuplicates"&&(a=o.reduce((l,c)=>(s.includes(c)||l.push(c),l),[])),r[i]=s.concat(a)}else r[i]=o;return r},{...e})}function k0(e){if(Xm in e&&Array.isArray(e.enum)&&e.enum.length===1)return e.enum[0];if($e in e)return e.const;throw new Error("schema cannot be inferred as a constant")}function F0(e,t){const n=new Map(e.map(s=>[String(s.value),s])),r=new Set(t.filter(s=>s!=="*").map(String)),i=e.filter(s=>!r.has(String(s.value)));return t.flatMap(s=>{if(s==="*")return i;const o=n.get(String(s));return o?[o]:[]})}function En(e,t){if(e.enum){let s,o;if(t){const{enumNames:l,enumOrder:c}=H(t);s=l,o=c}let a=e.enum.map((l,c)=>({label:Array.isArray(s)?s[c]||String(l):s?.[String(l)]||String(l),value:l}));return o&&(a=F0(a,o)),a}let n,r;e.anyOf?(n=e.anyOf,r=t?.anyOf):e.oneOf&&(n=e.oneOf,r=t?.oneOf);let i=Je(e);if(t){const{optionsSchemaSelector:s=i}=H(t);i=s}return n&&n.map((s,o)=>{const{title:a}=H(r?.[o]),l=s;let c,u=a;if(i){const d=R(l,[ue,i],{});c=R(d,Ht,R(d,$e)),u=u||d?.title||l.title||String(c)}else c=k0(l),u=u||l.title||String(c);return{schema:l,label:u,value:c}})}function fi(e,t,n={},r){const i=Ne(e,t,n,void 0,r),s=i.oneOf||i.anyOf;return Array.isArray(i.enum)?!0:Array.isArray(s)?s.every(o=>typeof o!="boolean"&&Bc(o)):!1}function no(e,t,n,r){return!t.uniqueItems||!t.items||typeof t.items=="boolean"?!1:fi(e,t.items,n,r)}const $0=["string","number","integer","boolean","null"];var An;(function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"})(An||(An={}));function Ri(e,t=An.Ignore,n=-1){if(n>=0){if(Array.isArray(e.items)&&n<e.items.length){const r=e.items[n];if(typeof r!="boolean")return r}}else if(e.items&&!Array.isArray(e.items)&&typeof e.items!="boolean")return e.items;return t!==An.Ignore&&Y(e.additionalItems)?e.additionalItems:{}}function zc(e,t){const{default:n,type:r}=e;return Array.isArray(r)&&r.includes("null")&&we(t)&&n===null?null:t}function Ia(e,t,n,r,i,s=[],o={},a=!1,l=!1){const{emptyObjectFields:c="populateAllDefaults"}=o;if(r===!0||a)e[t]=n;else if(r==="excludeObjectChildren")(l&&n!==void 0||!Y(n)||!we(n))&&(e[t]=n);else if(c!=="skipDefaults"){const u=i===void 0?s.includes(t):i;Y(n)?c==="skipEmptyDefaults"?we(n)||(e[t]=n):(!we(n)||s.includes(t))&&(u||c!=="populateRequiredDefaults")&&(e[t]=n):n!==void 0&&(c==="populateAllDefaults"||c==="skipEmptyDefaults"||u&&s.includes(t))&&(e[t]=n)}}function Pt(e,t,n={}){const{parentDefaults:r,rawFormData:i,rootSchema:s={},includeUndefinedValues:o=!1,_recurseList:a=[],experimental_defaultFormStateBehavior:l=void 0,experimental_customMergeAllOf:c=void 0,required:u,shouldMergeDefaultsIntoFormData:d=!1,initialDefaultsGenerated:m}=n;let y=Y(i)?i:{};const f=Y(t)?t:{};let p=r,b=null,w=l,S=a;if(f[$e]!==void 0&&l?.constAsDefaults!=="never"&&!Lc(f))p=f[$e];else if(Y(p)&&Y(f.default)&&!f[ae]&&!f[Q]&&!f[pe])p=Jt(p,f.default);else if(Ht in f&&!f[ae]&&!f[Q]&&!f[pe])p=f.default;else if(pe in f){const g=f[pe];a.includes(g)||(S=a.concat(g),b=dr(g,s));const v=i===void 0||Y(i)&&we(i);b&&!p&&v&&(p=f.default),d&&b&&!Y(i)&&(y=i)}else if(Ns in f){const g={...Ta(e,f,n,p),...y};[b]=Rc(e,f,s,!1,[],g,c)}else if(to(f))p=f.items.map((g,v)=>Pt(e,g,{rootSchema:s,includeUndefinedValues:o,_recurseList:a,experimental_defaultFormStateBehavior:l,experimental_customMergeAllOf:c,parentDefaults:Array.isArray(r)?r[v]:void 0,rawFormData:y,required:u,shouldMergeDefaultsIntoFormData:d}));else if(Q in f){const{oneOf:g,...v}=f;if(g.length===0)return;const j=Je(f),{type:x="null"}=v;!Array.isArray(x)&&$0.includes(x)&&w?.constAsDefaults==="skipOneOf"&&(w={...w,constAsDefaults:"never"}),b=g[jn(e,s,i??f.default,g,0,j,c)],b=pt(v,b)}else if(ae in f){const{anyOf:g,...v}=f;if(g.length===0)return;const j=Je(f);b=g[jn(e,s,i??f.default,g,0,j,c)],b=pt(v,b)}if(b)return Pt(e,b,{rootSchema:s,includeUndefinedValues:o,_recurseList:S,experimental_defaultFormStateBehavior:w,experimental_customMergeAllOf:c,parentDefaults:p,rawFormData:i??y,required:u,shouldMergeDefaultsIntoFormData:d,initialDefaultsGenerated:m});p===void 0&&(p=f.default);const E=Ta(e,f,n,p);let O=E??p;if(d){const{arrayMinItems:g={}}=l||{},{mergeExtraDefaults:v}=g,j=R0(e,f,s,i,l,c);(!Y(i)||kt in f)&&(O=pr(O,j,v,!0))}return O}function R0(e,t,n,r,i,s){const o=!Bc(t)&&fi(e,t,n,s);let a=r;if(o){const c=En(t);a=c?.some(d=>ce(d.value,r))?r:void 0}return t[$e]&&i?.constAsDefaults==="always"&&(a=t.const),a}function D0(e,t,{rawFormData:n,rootSchema:r={},includeUndefinedValues:i=!1,_recurseList:s=[],experimental_defaultFormStateBehavior:o=void 0,experimental_customMergeAllOf:a=void 0,required:l,shouldMergeDefaultsIntoFormData:c,initialDefaultsGenerated:u}={},d){{const m=Y(n)?n:{},y=t,p=o?.allOf==="populateDefaults"&&kt in y||o?.emptyObjectFields!=="skipEmptyDefaults"&&ks in y?Ne(e,y,r,m,a):y,b=p[$e],w=Object.keys(p.properties||{}).reduce((S,E)=>{var O;const g=R(p,[ue,E],{}),v=Y(b)&&b[E]!==void 0,j=(Y(g)&&$e in g||v)&&o?.constAsDefaults!=="never"&&!Lc(g),x=Pt(e,g,{rootSchema:r,_recurseList:s,experimental_defaultFormStateBehavior:o,experimental_customMergeAllOf:a,includeUndefinedValues:i===!0,parentDefaults:R(d,[E]),rawFormData:R(m,[E]),required:(O=p.required)===null||O===void 0?void 0:O.includes(E),shouldMergeDefaultsIntoFormData:c,initialDefaultsGenerated:u});return Ia(S,E,x,i,l,p.required,o,j,g?.type==="null"),S},{});if(p.additionalProperties&&!u){const S=Y(p.additionalProperties)?p.additionalProperties:{},E=new Set,O=[];Object.keys(m).filter(g=>!p.properties||!p.properties[g]).forEach(g=>{E.add(g),O.push(g)}),Y(d)&&O.length===0&&Object.keys(d).filter(g=>!p.properties||!p.properties[g]).forEach(g=>E.add(g)),E.forEach(g=>{var v;const j=Pt(e,S,{rootSchema:r,_recurseList:s,experimental_defaultFormStateBehavior:o,experimental_customMergeAllOf:a,includeUndefinedValues:i===!0,parentDefaults:R(d,[g]),rawFormData:R(m,[g]),required:(v=p.required)===null||v===void 0?void 0:v.includes(g),shouldMergeDefaultsIntoFormData:c,initialDefaultsGenerated:u});Ia(w,g,j,i,l,O)})}return zc(t,w)}}function M0(e,t,{rawFormData:n,rootSchema:r={},_recurseList:i=[],experimental_defaultFormStateBehavior:s=void 0,experimental_customMergeAllOf:o=void 0,required:a,requiredAsRoot:l=!1,shouldMergeDefaultsIntoFormData:c,initialDefaultsGenerated:u}={},d){var m,y;let f=d;const p=t,b=(m=s?.arrayMinItems)!==null&&m!==void 0?m:{},{populate:w,mergeExtraDefaults:S}=b,E=w==="never",O=w==="requiredOnly",g=w==="all"||!E&&!O,v=(y=b?.computeSkipPopulate)!==null&&y!==void 0?y:(()=>!1),x=s?.emptyObjectFields==="skipEmptyDefaults"?void 0:[];if(Array.isArray(f)&&(f=f.map((_,I)=>{const T=Ri(p,An.Fallback,I),k=Array.isArray(n)?n[I]:void 0;return Pt(e,T,{rootSchema:r,_recurseList:i,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,parentDefaults:_,rawFormData:k,required:a,shouldMergeDefaultsIntoFormData:c,initialDefaultsGenerated:u})})),Array.isArray(n)){const _=Ri(p);if(E)f=n;else{const I=n.map((k,N)=>Pt(e,_,{rootSchema:r,_recurseList:i,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,rawFormData:k,parentDefaults:R(f,[N]),required:a,shouldMergeDefaultsIntoFormData:c,initialDefaultsGenerated:u}));f=pr(f,I,(O&&a||g)&&S)}}if(E)return f??x;if(O&&!a)return f||void 0;let A;const C=Array.isArray(f)?f.length:0;if(!p.minItems||no(e,p,r,o)||v(e,p,r)||p.minItems<=C)A=f||!a&&!l?f:x;else{const _=f||[],I=Ri(p,An.Invert),T=I.default,k=Array.from({length:p.minItems-C},()=>Pt(e,I,{parentDefaults:T,rootSchema:r,_recurseList:i,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,required:a,shouldMergeDefaultsIntoFormData:c}));A=_.concat(k)}return zc(t,A)}function Ta(e,t,n={},r){switch(qe(t)){case"object":return D0(e,t,n,r);case"array":return M0(e,t,n,r);default:return}}function Vc(e,t,n,r,i=!1,s,o,a){if(!Y(t))throw new Error(`Invalid schema: ${t}`);const l=Ne(e,t,r,n,o),c=Pt(e,l,{rootSchema:r,includeUndefinedValues:i,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,rawFormData:n,shouldMergeDefaultsIntoFormData:!0,initialDefaultsGenerated:a,requiredAsRoot:!0});if(l.type!=="object"&&Y(l.default))return{...c,...n};if(Y(n)||Array.isArray(n)){const{mergeDefaultsIntoFormData:u}=s||{};return pr(c,n,!0,u==="useDefaultIfFormDataUndefined",!0)}return c}function qc(e={}){return"widget"in H(e)&&H(e).widget!=="hidden"}function Wc(e,t,n={},r,i){if(n[$s]==="files")return!0;if(t.items){const s=Ne(e,t.items,r,void 0,i);return s.type==="string"&&s.format==="data-url"}return!1}function U0(e,t,n={},r,i,s){const o=H(n,i),{label:a=!0}=o;let l=!!a;if(l){const c=qe(t),u=R(t,mt,!1);c==="array"&&(l=u||no(e,t,r,s)||Wc(e,t,n,r,s)||qc(n)),c==="object"&&(l=u),c==="boolean"&&n&&!n[$s]&&(l=!1),n&&n[nh]&&(l=!1)}return l}function Hc(e,t,n){for(var r=-1,i=t.length,s={};++r<i;){var o=t[r],a=si(e,o);n(a,o)&&Zs(s,Tn(o,e),a)}return s}function L0(e,t){return Hc(e,t,function(n,r){return wc(e,r)})}var ro=uc(function(e,t){return e==null?{}:L0(e,t)});function B0(e,t){if(t.length===0&&typeof e!="object")return e;const n=ro(e,t);return Array.isArray(e)?Object.keys(n).map(r=>n[r]):n}function z0(e,t){const n=(i,s)=>typeof i!="object"||we(i)||s&&!we(i),r=(i,s=[],o=[[]])=>{const a=Object.keys(i);return a.forEach(l=>{const c=i[l];if(typeof c=="object"){const u=o.map(d=>[...d,l]);c[Fs]&&c[Mr]!==""?s.push(c[Mr]):r(c,s,u)}else l===Mr&&c!==""&&o.forEach(u=>{const d=R(t,u),m=a.length===1;(n(d,m)||Array.isArray(d)&&d.every(y=>n(y,m)))&&s.push(u)})}),s};return r(e)}function rr(e){return On(e)||e===""?!0:Array.isArray(e)?e.length===0:Y(e)?Object.values(e).every(rr):!1}function V0(e,t){return t?t(e):Pc(e)}function q0(e,t,n={},r,i){function s(f){return Y(f)}function o(f){return Y(f)}function a(f,p,b){var w;const{properties:S,additionalProperties:E,patternProperties:O,propertyNames:g}=f,v=new Set((w=f.required)!==null&&w!==void 0?w:[]);function j(A,C,_,I=!1){var T;const k=y(C,_,b[A]);if(!I&&Y(k)){let N=o(C)?C:{};N.$ref!==void 0&&(N=dr(N.$ref,n));const F=new Set((T=N.required)!==null&&T!==void 0?T:[]);if(Object.entries(k).every(([z,V])=>!F.has(z)&&rr(V)))return}k!==void 0&&(b[A]=k)}if(S!==void 0)for(const[A,C]of Object.entries(S))j(A,C,p[A],v.has(A));let x;if(O!==void 0){x=[];const A=Object.entries(O).map(([_,I])=>[new RegExp(_),I]),C=new Set(Object.keys(S??{}));for(const[_,I]of Object.entries(p))if(!C.has(_)){const T=A.find(([k])=>k.test(_));T===void 0?x.push(_):j(_,T[1],I)}}if(E!==void 0&&E!==!1){const A=E;if(x!==void 0)for(const C of x)j(C,A,p[C]);else{const C=new Set(Object.keys(S??{}));for(const[_,I]of Object.entries(p))C.has(_)||j(_,A,I)}}if(g!==void 0)for(const[A,C]of Object.entries(p))b[A]=C;return b}function l(f,p,b){const{items:w,additionalItems:S}=f;if(w!==void 0)if(Array.isArray(w))for(let E=0;E<w.length;E+=1)b.push(y(w[E],p[E]));else for(let E=0;E<p.length;E+=1)b.push(y(w,p[E]));if(S)for(let E=b.length;E<p.length;E+=1)b.push(y(S,p[E]));return b}function c(f,p,b){const{if:w,then:S,else:E}=f;if(w===void 0)return b;const g=(o(w)?e.isValid(w,p,n):w)?S:E;return g===void 0?b:y(g,p,b)}function u(f,p,b,w){if(!Array.isArray(f)||fi(e,p,n,i))return w;const S=$c(f,!0,n),E=jn(e,n,b,S,0,Je(p),i),O=f[E],g=Y(O)?Tt(O,n,[]):S[E];return y(g,b,w)}function d(f,p,b){const{anyOf:w}=f;if(!Array.isArray(w))return b;if(p===void 0||Array.isArray(p)&&p.length===0||Y(p)&&Object.keys(p).length===0){let S=b;for(const E of w)S=y(E,p,S);return S}return u(w,f,p,b)}function m(f,p,b){const{dependencies:w}=f;if(w===void 0||!s(p))return b;let S=b;for(const[E,O]of Object.entries(w))E in p&&!Array.isArray(O)&&(S=y(O,p,S));return S}function y(f,p,b){if(p===void 0||f===!1)return;if(f===!0||we(f))return p;let w=f;const{$ref:S,allOf:E}=w;if(S!==void 0)return y(dr(S,n),p,b);E&&(w=V0(w,i));let O=d(w,p,u(w.oneOf,w,p,b));const g=qe(w);if(g==="object"){if(!s(p))return;O=a(w,p,s(O)?O:{})}else if(g==="array"){if(!Array.isArray(p))return;O=l(w,p,Array.isArray(O)?O:[])}else O===void 0&&(O=p);return m(w,p,c(w,p,O))}return y(t,r)}const Ue=Symbol("no Value");function Gc(e){if(Array.isArray(e.enum))return e.enum;const t=e.oneOf||e.anyOf;if(!Array.isArray(t))return;const n=t.map(r=>$e in r?r[$e]:Array.isArray(r.enum)&&r.enum.length===1?r.enum[0]:Ue).filter(r=>r!==Ue);return n.length>0?n:void 0}function W0(e,t){const n=Gc(e);if(!n||n.some(i=>ce(i,t)))return Ue;const r=R(e,Ht,Ue);return r!==Ue&&n.some(i=>ce(i,r))?r:n.length===1?n[0]:void 0}function gs(e,t,n,r,i={},s){let o;if(ie(n,ue)){const a={};if(ie(r,ue)){const u=R(r,ue,{});Object.keys(u).forEach(d=>{ie(i,d)&&(a[d]=void 0)})}const l=Object.keys(R(n,ue,{})),c={};l.forEach(u=>{const d=R(i,u);let m=R(r,[ue,u],{}),y=R(n,[ue,u],{});ie(m,pe)&&(m=Ne(e,m,t,d,s)),ie(y,pe)&&(y=Ne(e,y,t,d,s));const f=R(m,"type"),p=R(y,"type");if(!f||f===p)if(ie(a,u)&&delete a[u],p==="object"||p==="array"&&Array.isArray(d)){const b=gs(e,t,y,m,d,s);(b!==void 0||p==="array")&&(c[u]=b)}else{const b=R(y,Ht,Ue),w=R(m,Ht,Ue);b!==Ue&&b!==d&&(w===d?a[u]=b:R(y,"readOnly")===!0&&(a[u]=void 0));const S=R(y,$e,Ue),E=R(m,$e,Ue);if(S!==Ue&&S!==d&&(a[u]=E===d?S:void 0),ie(i,u)){const O=W0(y,d);O!==Ue&&(a[u]=O)}}}),o={...typeof i=="string"||Array.isArray(i)?void 0:i,...a,...c}}else if(R(r,"type")==="array"&&R(n,"type")==="array"&&Array.isArray(i)){let a=R(r,"items"),l=R(n,"items");if(typeof a=="object"&&typeof l=="object"&&!Array.isArray(a)&&!Array.isArray(l)){ie(a,pe)&&(a=Ne(e,a,t,i,s)),ie(l,pe)&&(l=Ne(e,l,t,i,s));const c=R(a,"type"),u=R(l,"type");if(!c||c===u){const d=R(n,"maxItems",-1);if(u==="object")o=i.reduce((m,y)=>{const f=gs(e,t,l,a,y,s);return f!==void 0&&(d<0||m.length<d)&&m.push(f),m},[]);else{const m=Gc(l),y=m?i.filter(f=>m.some(p=>ce(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 Et(e,t,n,r,i,s=[],o){if(pe in t||Ns in t||kt in t||ks in t){const l=Ne(e,t,r,i,o);if(s.findIndex(u=>ce(u,l))===-1)return Et(e,l,n,r,i,s.concat(l),o)}let a={[Mr]:n.replace(/^\./,"")};if(Q in t||ae in t){const l=Q in t?t.oneOf:t.anyOf,c=Je(t),u=jn(e,r,i,l,0,c,o),d=l[u];a={...a,...Et(e,d,n,r,i,s,o)}}if(hn in t&&t[hn]!==!1){he(a,Fs,!0);const l=le(t[hn])?t[hn]:{},c=R(t,ue,{});for(const u of Object.keys(i??{}))u in c||(a[u]=Et(e,l,`${n}.${u}`,r,R(i,[u]),s,o))}if(xn in t&&Array.isArray(i)){const{items:l,additionalItems:c}=t;Array.isArray(l)?i.forEach((u,d)=>{l[d]?a[d]=Et(e,l[d],`${n}.${d}`,r,u,s,o):c?a[d]=Et(e,c,`${n}.${d}`,r,u,s,o):console.warn(`Unable to generate path schema for "${n}.${d}". No schema defined for it`)}):i.forEach((u,d)=>{a[d]=Et(e,l,`${n}.${d}`,r,u,s,o)})}else if(ue in t)for(const l in t.properties){const c=R(t,[ue,l],{});a[l]=Et(e,c,`${n}.${l}`,r,R(i,[l]),s,o)}return a}function H0(e,t,n="",r,i,s){return Et(e,t,n,r,i,void 0,s)}class G0{constructor(t,n,r,i){n&&n[Kn]===Ur?this.rootSchema=fs(n,R(n,ge,"#")):this.rootSchema=n,this.validator=t,this.experimental_defaultFormStateBehavior=r,this.experimental_customMergeAllOf=i}getRootSchema(){return this.rootSchema}getValidator(){return this.validator}doesSchemaUtilsDiffer(t,n,r={},i){return!t||!n?!1:this.validator!==t||!ce(this.rootSchema,n)||!ce(this.experimental_defaultFormStateBehavior,r)||this.experimental_customMergeAllOf!==i}findFieldInSchema(t,n,r){return C0(this.validator,this.rootSchema,t,n,r,this.experimental_customMergeAllOf)}findSelectedOptionInXxxOf(t,n,r,i){return Jn(this.validator,this.rootSchema,t,n,r,i,this.experimental_customMergeAllOf)}getDefaultFormState(t,n,r=!1,i){return Vc(this.validator,t,n,this.rootSchema,r,this.experimental_defaultFormStateBehavior,this.experimental_customMergeAllOf,i)}getDisplayLabel(t,n,r){return U0(this.validator,t,n,this.rootSchema,r,this.experimental_customMergeAllOf)}getClosestMatchingOption(t,n,r,i){return jn(this.validator,this.rootSchema,t,n,r,i,this.experimental_customMergeAllOf)}getFirstMatchingOption(t,n,r){return Xr(this.validator,t,n,this.rootSchema,r)}getFromSchema(t,n,r){return zr(this.validator,this.rootSchema,t,n,r,this.experimental_customMergeAllOf)}isFilesArray(t,n){return Wc(this.validator,t,n,this.rootSchema,this.experimental_customMergeAllOf)}isMultiSelect(t){return no(this.validator,t,this.rootSchema,this.experimental_customMergeAllOf)}isSelect(t){return fi(this.validator,t,this.rootSchema,this.experimental_customMergeAllOf)}omitExtraData(t,n){return q0(this.validator,t,this.rootSchema,n)}retrieveSchema(t,n,r){return Ne(this.validator,t,this.rootSchema,n,this.experimental_customMergeAllOf,r)}sanitizeDataForNewSchema(t,n,r){return gs(this.validator,this.rootSchema,t,n,r,this.experimental_customMergeAllOf)}toPathSchema(t,n,r){return H0(this.validator,t,n,this.rootSchema,r,this.experimental_customMergeAllOf)}}function K0(e,t,n={},r){return new G0(e,t,n,r)}function Y0(e){var t;if(!e.includes("data:"))throw new Error("File is invalid: URI must be a dataURI");const r=e.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||"",c=decodeURI(((t=a.map(u=>u.split("=")).find(([u])=>u==="name"))===null||t===void 0?void 0:t[1])||"unknown");try{const u=atob(s),d=new Array(u.length);for(let y=0;y<u.length;y+=1)d[y]=u.charCodeAt(y);return{blob:new window.Blob([new Uint8Array(d)],{type:l}),name:c}}catch(u){throw new Error(`File is invalid: ${u.message}`)}}function At(e,t){let n=String(e);for(;n.length<t;)n=`0${n}`;return n}function Kc(e,t){const n=e<=0&&t<=0,r=e<0||t<0;if(!n&&r)throw new Error(`Both start (${e}) and stop (${t}) must both be <= 0 or > 0, got one of each`);const i=new Date().getFullYear(),s=n?i+e:e,o=n?i+t:t;if(s>o)return Kc(t,e).reverse();const a=[];for(let l=s;l<=o;l+=1)a.push({value:l,label:At(l,2)});return a}function J0(e,t){let n=e;if(Array.isArray(t)){const r=n.split(/(%\d)/);t.forEach((i,s)=>{const o=r.findIndex(a=>a===`%${s+1}`);o>=0&&(r[o]=i)}),n=r.join("")}return n}function Z0(e,t){return J0(e,t)}function mi(e,t=[],n){if(Array.isArray(e))return e.map(s=>mi(s,t)).filter(s=>s!==void 0);const r=e===""||e===null?-1:Number(e),i=t[r];return i?i.value:n}function Yc(e,t,n=[]){const r=mi(e,n);return Array.isArray(t)?t.filter(i=>!ce(i,r)):ce(r,t)?void 0:t}function jr(e,t){return Array.isArray(t)?t.some(n=>ce(n,e)):ce(t,e)}function X0(e,t=[],n=!1){const r=t.map((i,s)=>jr(i.value,e)?String(s):void 0).filter(i=>typeof i<"u");return n?r:r[0]}function Jc(e,t,n,r="indexed",i){if(typeof e>"u"||n&&Array.isArray(e)&&e.length<1||!n&&e===i)return i;if(r==="realValue")return n?e.map(String):String(e);const o=X0(e,t,n);return typeof o>"u"?i:o}function Zc(e,t,n=[]){const r=mi(e,n);if(!On(r)){const i=n.findIndex(a=>r===a.value),s=n.map(({value:a})=>a);return t.slice(0,i).concat(r,t.slice(i)).sort((a,l)=>+(s.indexOf(a)>s.indexOf(l)))}return t}function Pa(e,t,n){if(e===""||!Array.isArray(t))return n;const r=t.find(s=>String(s.value)===e);if(r)return r.value;const i=Number(e);return!Number.isNaN(i)&&i>=0&&i<t.length?t[i].value:n}function Fe(e,t,n="indexed",r){return n!=="realValue"?mi(e,t,r):Array.isArray(e)?e.map(i=>Pa(i,t,r)):Pa(e,t,r)}function Or(e,t,n="indexed"){return n!=="realValue"?String(t):On(e)?"":String(typeof e=="object"?t:e)}var Q0=1,ev=4;function io(e){return nr(e,Q0|ev)}function tv(e,t,n,r){return r=typeof r=="function"?r:void 0,e==null?e:Zs(e,t,n,r)}class Xc{constructor(t){this.errorSchema={},this.resetAllErrors(t)}get ErrorSchema(){return this.errorSchema}getOrCreateErrorBlock(t){let r=Array.isArray(t)&&t.length>0||typeof t=="string"?R(this.errorSchema,t):this.errorSchema;return!r&&t&&(r={},tv(this.errorSchema,t,r,Object)),r}resetAllErrors(t){return this.errorSchema=t?io(t):{},this}addErrors(t,n){const r=this.getOrCreateErrorBlock(n);let i=R(r,Pe);return Array.isArray(i)||(i=[],r[Pe]=i),Array.isArray(t)?he(r,Pe,[...new Set([...i,...t])]):he(r,Pe,[...new Set([...i,t])]),this}setErrors(t,n){const r=this.getOrCreateErrorBlock(n),i=Array.isArray(t)?[...new Set([...t])]:[t];return he(r,Pe,i),this}clearErrors(t){const n=this.getOrCreateErrorBlock(t);return he(n,Pe,[]),this}}var nv=200;function rv(e,t,n,r){var i=-1,s=eo,o=!0,a=e.length,l=[],c=t.length;if(!a)return l;t.length>=nv&&(s=mr,o=!1,t=new Yt(t));e:for(;++i<a;){var u=e[i],d=u;if(u=u!==0?u:0,o&&d===d){for(var m=c;m--;)if(t[m]===d)continue e;l.push(u)}else s(t,d,r)||l.push(u)}return l}var iv=ci(function(e,t){return fr(e)?rv(e,wr(t,1,fr,!0)):[]});function sv(e,t){if(e==null)return{};var n=In(Ks(e),function(r){return[r]});return t=Qs(t),Hc(e,n,function(r,i){return t(r,i[0])})}function Na(e,t){const n=Ft(e),r=Ft(t);if(e===t||!n&&!r)return[];if(n&&!r)return Ke(e);if(!n&&r)return Ke(t);const i=Ke(sv(e,(o,a)=>!ce(o,R(t,a)))),s=iv(Ke(t),Ke(e));return[...i,...s]}function ov(e,t,n=[1900,new Date().getFullYear()+2],r="YMD"){const{day:i,month:s,year:o,hour:a,minute:l,second:c}=e,u={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,u,m);break;case"DMY":y.push(u,d,m);break;default:y.push(m,d,u)}return t&&y.push({type:"hour",range:[0,23],value:a},{type:"minute",range:[0,59],value:l},{type:"second",range:[0,59],value:c}),y}function Qc(e){const t={};return e.multipleOf&&(t.step=e.multipleOf),(e.minimum||e.minimum===0)&&(t.min=e.minimum),(e.maximum||e.maximum===0)&&(t.max=e.maximum),t}function eu(e,t,n={},r=!0){const i={type:t||"text",...Qc(e)};return n.inputType?i.type=n.inputType:t||(e.type==="number"?(i.type="number",r&&i.step===void 0&&(i.step="any")):e.type==="integer"&&(i.type="number",i.step===void 0&&(i.step=1))),["date","datetime-local","time","week","month"].includes(i.type)&&(e.formatMinimum!==void 0&&(i.min=e.formatMinimum),e.formatMaximum!==void 0&&(i.max=e.formatMaximum)),n.autocomplete&&(i.autoComplete=n.autocomplete),n.accept&&(i.accept=n.accept),i}function Nn(e){var t;return(t=e?.optionValueFormat)!==null&&t!==void 0?t:"indexed"}const ka={props:{disabled:!1},submitText:"Submit",norender:!1};function tu(e={}){const t=H(e);if(t&&t[Gr]){const n=t[Gr];return{...ka,...n}}return ka}function K(e,t,n={}){const{templates:r}=t;if(e==="ButtonTemplates")return r[e];if(Object.hasOwn(n,e)&&typeof n[e]=="string"&&Object.hasOwn(r,n[e])){const i=n[e];return r[i]}return n[e]||r[e]}var av=0;function nu(e){var t=++av;return Ms(e)+t}function so(){if(R(globalThis,"process.env.NODE_ENV")!=="test")return{};const e=new Map;return new Proxy({},{get(t,n){return e.has(n)||e.set(n,nu("test-id-")),e.get(n)}})}const Di={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 lv(e){let t=R(e,"MergedWidget");if(!t){const n=e.defaultProps&&e.defaultProps.options||{};t=({options:r,...i})=>h.jsx(e,{options:{...n,...r},...i}),he(e,"MergedWidget",t)}return t}function ot(e,t,n={}){const r=qe(e);if(typeof t=="function"||t&&Ao.isForwardRef(P.createElement(t))||Ao.isMemo(t))return lv(t);if(typeof t!="string")throw new Error(`Unsupported widget definition: ${typeof t} in schema: ${JSON.stringify(e)}`);if(t in n){const i=n[t];return ot(e,i,n)}if(typeof r=="string"){if(!(r in Di))throw new Error(`No widget for type '${r}' in schema: ${JSON.stringify(e)}`);if(t in Di[r]){const i=n[Di[r][t]];return ot(e,i,n)}}throw new Error(`No widget '${t}' for type '${r}' in schema: ${JSON.stringify(e)}`)}function cv(e){let t=0;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t=(t<<5)-t+r,t&=t}return t.toString(16)}function uv(e){const t=new Set;return JSON.stringify(e,(n,r)=>(t.add(n),r)),JSON.stringify(e,Array.from(t).sort())}function rt(e){return cv(uv(e))}function dv(e){return rt(e)}function fv(e,t,n={}){try{return ot(e,t,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 nn(e,t){return`${Rt(e)?e:e[ge]}__${t}`}function rn(e){return nn(e,"description")}function oo(e){return nn(e,"error")}function hi(e){return nn(e,"examples")}function ao(e){return nn(e,"help")}function pi(e){return nn(e,"title")}function De(e,t=!1){const n=t?` ${hi(e)}`:"";return`${oo(e)} ${rn(e)} ${ao(e)}${n}`}function qt(e,t){return`${e}-${t}`}function it(e,t){return nn(e,t)}function Mi(e,t){return nn(e,`optional${t}`)}function kn(e){return!On(e)&&(!le(e)||Array.isArray(e)||!we(e))}function mv(e,t){const{rootSchema:n,schemaUtils:r}=e;if(ce(t,n))return!0;if(pe in n){const i=r.retrieveSchema(n);return ce(t,wn(i,er))}return!1}function ru(e,t,n){return t?n:e}function hv(e){return e?new Date(e).toJSON():void 0}function lo(e,t,n){const r=[th];return ie(e,ko)&&r.unshift(ko),R(e,[...r,t],n)}function pv(e,t){if(!Array.isArray(t))return e;const n=u=>u.reduce((d,m)=>(d[m]=!0,d),{}),r=u=>u.length>1?`properties '${u.join("', '")}'`:`property '${u[0]}'`,i=n(e),s=t.filter(u=>u==="*"||i[u]),o=n(s),a=e.filter(u=>!o[u]),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 c=[...s];return c.splice(l,1,...a),c}function Ui(e,t=!0){if(!e)return{year:-1,month:-1,day:-1,hour:t?-1:0,minute:t?-1:0,second:t?-1:0};const n=new Date(e);if(Number.isNaN(n.getTime()))throw new Error(`Unable to parse date ${e}`);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:t?n.getUTCHours():0,minute:t?n.getUTCMinutes():0,second:t?n.getUTCSeconds():0}}function gn(e,t,n,r){if(!Y(t))return r;const i=Ne(e,t,n,r);if(Array.isArray(r)){const u=i.items;if(!u)return r;let d=!1;const m=r.map((y,f)=>{let p=u;Array.isArray(u)&&(p=u[f]||i.additionalItems||{});const b=gn(e,p,n,y);return b!==y&&(d=!0),b===void 0?{}:b});return d?m:r}const{properties:s,required:o=[]}=i;if(!Y(r)||!s)return r;const a={},l=r;let c=!1;for(const u of Object.keys(l)){const d=l[u],m=s[u]||{},y=o.includes(u),f=Y(d),p=Array.isArray(d);if((f||p)&&s[u]){const b=gn(e,m,n,d);(y||!rr(b))&&(a[u]=b,c=!0)}else(y||!rr(d)||!s[u])&&(a[u]=d,rr(d)||(c=!0))}if(!(!c&&Object.keys(a).length===0))return a}function gv(e,t,n){var r,i;const s=(r=e[er])!==null&&r!==void 0?r:e[pe],o=n.uiSchemaDefinitions,a=s&&o?o[s]:void 0;let l;if(a?!t||we(t)?l={...a}:l=Jt(a,t):l=t||{},o){let c=e;if(s&&e[pe]&&!e[er])try{c=dr(s,n.rootSchema)}catch(u){return console.warn(`could not resolve $ref in resolveUiSchema:
|
|
3
|
+
`,u),l}for(const u of[Q,ae]){const d=c[u];if(Array.isArray(d)&&d.length>0){const m=l[u],y=Array.isArray(m)?[...m]:[];let f=!1;for(let p=0;p<d.length;p++){const b=d[p],w=(i=b?.[er])!==null&&i!==void 0?i:b?.[pe];if(w&&w in o){const S=y[p]||{};y[p]=Jt(o[w],S),f=!0}}f&&(l[u]=y)}}}return l}function ir(e){if(e.const||e.enum&&e.enum.length===1&&e.enum[0]===!0)return!0;if(e.anyOf&&e.anyOf.length===1)return ir(e.anyOf[0]);if(e.oneOf&&e.oneOf.length===1)return ir(e.oneOf[0]);if(e.allOf){const t=n=>ir(n);return e.allOf.some(t)}return!1}function Fa(e,t){if(Object.is(e,t))return!0;if(e==null||t==null||typeof e!="object"||typeof t!="object")return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i+=1){const s=n[i];if(!Object.hasOwn(t,s)||!Object.is(e[s],t[s]))return!1}return!0}function iu(e,t,n,r="customDeep"){if(r==="always")return!0;if(r==="shallow"){const{props:o,state:a}=e;return!Fa(o,t)||!Fa(a,n)}const{props:i,state:s}=e;return!ce(i,t)||!ce(s,n)}function $a(e){const t=Ec(e.map(n=>le(n)?qe(n):void 0).flat().filter(n=>n!==void 0));return t.length===1?t[0]:t}function Er(e,t,n,r){const{enableOptionalDataFieldForType:i=[]}=H(r,e.globalUiOptions);let s;return ae in t&&Array.isArray(t[ae])?s=$a(t[ae]):Q in t&&Array.isArray(t[Q])?s=$a(t[Q]):s=qe(t),!mv(e,t)&&!n&&!!s&&!Array.isArray(s)&&!!i.find(o=>o===s)}function Ra(e,t=!0){const{year:n,month:r,day:i,hour:s=0,minute:o=0,second:a=0}=e,l=Date.UTC(n,r-1,i,s,o,a),c=new Date(l).toJSON();return t?c:c.slice(0,10)}function co(e,t=[]){if(!e)return[];let n=[];return Pe in e&&(n=n.concat(e[Pe].map(r=>{const i=`.${t.join(".")}`;return{property:i,message:r,stack:`${i} ${r}`}}))),Object.keys(e).reduce((r,i)=>{if(i!==Pe){const s=e[i];if(Ft(s))return r.concat(co(s,[...t,i]))}return r},n)}function su(e){return Ie(e)?In(e,$t):yr(e)?[e]:Ws(Ul(Ms(e)))}function yv(e){const t=new Xc;return e.length&&e.forEach(n=>{const{property:r,message:i}=n,s=r==="."?[]:su(r);s.length>0&&s[0]===""&&s.splice(0,1),i&&t.addErrors(i,s)}),t.ErrorSchema}function We(e,t,n,r){const i=Array.isArray(n)?n:n?.path,s=e===""?[]:[e],o=i?i.concat(...s):s,a=[t.idPrefix,...o].join(t.idSeparator);let l;return t.nameGenerator&&o.length>0&&(l=t.nameGenerator(o,t.idPrefix,r)),{path:o,[ge]:a,...l!==void 0&&{name:l}}}function ou(e){return Object.keys(e).reduce((t,n)=>{if(n==="addError")return t;const r=e[n];return Ft(r)?{...t,[n]:ou(r)}:{...t,[n]:r}},{})}function bv(e){return Object.values(e).every(t=>t!==-1)}function xv(e){const{className:t="form-control",type:n,range:r,value:i,select:s,rootId:o,name:a,disabled:l,readonly:c,autofocus:u,registry:d,onBlur:m,onFocus:y}=e,f=`${o}_${n}`,{SelectWidget:p}=d.widgets,b=P.useCallback(w=>s(n,w),[s,n]);return h.jsx(p,{schema:{type:"integer"},id:f,name:a,className:t,options:{enumOptions:Kc(r[0],r[1])},placeholder:n,value:i,disabled:l,readonly:c,autofocus:u,onChange:b,onBlur:m,onFocus:y,registry:d,label:"","aria-describedby":De(o)})}function vv(e){const{time:t=!1,disabled:n=!1,readonly:r=!1,options:i,onChange:s,value:o}=e,[a,l]=P.useState(Ui(o,t));P.useEffect(()=>{l(Ui(o,t))},[t,o]);const c=P.useCallback((y,f)=>{const p={...a,[y]:typeof f>"u"?-1:f};bv(p)?s(Ra(p,t)):l(p)},[a,s,t]),u=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=Ui(new Date().toJSON(),t);s(Ra(f,t))},[n,r,t,s]);return{elements:P.useMemo(()=>ov(a,t,i.yearsRange,i.format),[a,t,i.yearsRange,i.format]),handleChange:c,handleClear:u,handleSetNow:d}}function sn(e){const t=P.useRef(e);return ce(e,t.current)||(t.current=e),t.current}function Sv(e,t){return e.replace(";base64",`;name=${encodeURIComponent(t)};base64`)}function wv(e){const{name:t,size:n,type:r}=e;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:Sv(a.target.result,t),name:t,size:n,type:r}):i({dataURL:null,name:t,size:n,type:r})},o.readAsDataURL(e)})}function jv(e){return Promise.all(Array.from(e).map(wv))}function Da(e){return e.reduce((t,n)=>{if(!n)return t;try{const{blob:r,name:i}=Y0(n);return[...t,{dataURL:n,name:i,size:r.size,type:r.type}]}catch{return t}},[])}function Ov(e,t,n=!1){const r=P.useMemo(()=>n&&e?Array.isArray(e)?e:[e]:[],[e,n]),i=P.useMemo(()=>Array.isArray(e)?Da(e):Da([e||""]),[e]),s=P.useCallback(async a=>{const c=(await jv(a)).map(u=>u.dataURL||null);t(n?r.concat(...c):c[0])},[r,n,t]),o=P.useCallback(a=>{if(n){const l=r.filter((c,u)=>u!==a);t(l)}else t(void 0)},[r,n,t]);return{filesInfo:i,handleChange:s,handleRemove:o}}function Ev(e){if(!e)return"";const t=new Date(e),n=At(t.getFullYear(),4),r=At(t.getMonth()+1,2),i=At(t.getDate(),2),s=At(t.getHours(),2),o=At(t.getMinutes(),2),a=At(t.getSeconds(),2),l=At(t.getMilliseconds(),3);return`${n}-${r}-${i}T${s}:${o}:${a}.${l}`}function Zn(e,t,n=!1){if(!t)return e;const{errors:r,errorSchema:i}=e;let s=co(t),o=t;return we(i)||(o=Jt(i,t,n?"preventDuplicates":!0),s=[...r].concat(s)),{errorSchema:o,errors:s}}function Av(e){const t=e;for(const n in t)if(Object.hasOwn(t,n)){const r=t[n];n===pe&&typeof r=="string"&&r.startsWith("#")?t[n]=kl+r:t[n]=uo(r)}return e}function Cv(e){return e.map(t=>uo(t))}function uo(e){return Array.isArray(e)?Cv([...e]):le(e)?Av({...e}):e}var ee;(function(e){e.ArrayItemTitle="Item",e.MissingItems="Missing items definition",e.EmptyArray="No items yet. Use the button below to add some.",e.YesLabel="Yes",e.NoLabel="No",e.CloseLabel="Close",e.ErrorsLabel="Errors",e.NewStringDefault="New Value",e.AddButton="Add",e.AddItemButton="Add Item",e.CopyButton="Copy",e.MoveDownButton="Move down",e.MoveUpButton="Move up",e.RemoveButton="Remove",e.NowLabel="Now",e.ClearLabel="Clear",e.AriaDateLabel="Select a date",e.PreviewLabel="Preview",e.DecrementAriaLabel="Decrease value by 1",e.IncrementAriaLabel="Increase value by 1",e.OptionalObjectAdd="Add data for optional field",e.OptionalObjectRemove="Remove data for optional field",e.OptionalObjectEmptyMsg="No data for optional field",e.Type="Type",e.Value="Value",e.ClearButton="clear input",e.UnknownFieldType="Unknown field type %1",e.OptionPrefix="Option %1",e.TitleOptionPrefix="%1 option %2",e.KeyLabel="%1 Key",e.DeprecatedLabel="%1 (deprecated)",e.InvalidObjectField='Invalid "%1" object field configuration: _%2_.',e.UnsupportedField="Unsupported field schema.",e.UnsupportedFieldWithId="Unsupported field schema for field `%1`.",e.UnsupportedFieldWithReason="Unsupported field schema: _%1_.",e.UnsupportedFieldWithIdAndReason="Unsupported field schema for field `%1`: _%2_.",e.FilesInfo="**%1** (%2, %3 bytes)"})(ee||(ee={}));function _v(e,t){var n=Ie(e)?zs:Uc;return n(e,pc(t))}function Iv(e,t){return e==null?!0:ac(e,t)}function ys(){return nu("rjsf-array-item-")}function Ma(e){return Array.isArray(e)?e.map(t=>({key:ys(),item:t})):[]}function au(e){return Array.isArray(e)?e.map(t=>t.item):[]}function Tv(e){return Array.isArray(e.type)?!e.type.includes("null"):e.type!=="null"}function lu(e,t,n,r){let{addable:i}=H(r,e.globalUiOptions);return i!==!1&&(t.maxItems!==void 0?i=n.length<t.maxItems:i=!0),i}function cu(e,t,n,r){if(typeof e.items=="function")try{return e.items(t,n,r)}catch(i){console.error(`Error executing dynamic uiSchema.items function for item at index ${n}:`,i);return}else return e.items}function Pv(e,t){const{schemaUtils:n,globalFormOptions:r}=e;let i=t.items;return r.useFallbackUiForUnsupportedType&&!i?i={}:to(t)&&Zm(t)&&(i=t.additionalItems),n.getDefaultFormState(i)}function Nv(e){const{schema:t,fieldPathId:n,uiSchema:r,formData:i=[],disabled:s=!1,readonly:o=!1,autofocus:a=!1,required:l=!1,placeholder:c,onBlur:u,onFocus:d,registry:m,rawErrors:y,name:f,onSelectChange:p}=e,{widgets:b,schemaUtils:w,globalFormOptions:S,globalUiOptions:E}=m,O=w.retrieveSchema(t.items,i),g=r?.items??r,v=En(O,g),{widget:j="select",title:x,...A}=H(r,E),C=ot(t,j,b),_=x??t.title??f,I=w.getDisplayLabel(t,r,E),T=sn(We("",S,n,!0));return h.jsx(C,{id:T[ge],name:f,multiple:!0,onChange:p,onBlur:u,onFocus:d,options:{...A,enumOptions:v},schema:t,uiSchema:r,registry:m,value:i,disabled:s,readonly:o,required:l,label:_,hideLabel:!I,placeholder:c,autofocus:a,rawErrors:y,htmlName:T.name})}function kv(e){const{schema:t,fieldPathId:n,uiSchema:r,disabled:i=!1,readonly:s=!1,autofocus:o=!1,required:a=!1,hideError:l,placeholder:c,onBlur:u,onFocus:d,formData:m=[],registry:y,rawErrors:f,name:p,onSelectChange:b}=e,{widgets:w,schemaUtils:S,globalFormOptions:E,globalUiOptions:O}=y,{widget:g,title:v,...j}=H(r,O),x=ot(t,g,w),A=v??t.title??p,C=S.getDisplayLabel(t,r,O),_=sn(We("",E,n,!0));return h.jsx(x,{id:_[ge],name:p,multiple:!0,onChange:b,onBlur:u,onFocus:d,options:j,schema:t,uiSchema:r,registry:y,value:m,disabled:i,readonly:s,hideError:l,required:a,label:A,hideLabel:!C,placeholder:c,autofocus:o,rawErrors:f,htmlName:_.name})}function Fv(e){const{schema:t,uiSchema:n,fieldPathId:r,name:i,disabled:s=!1,readonly:o=!1,autofocus:a=!1,required:l=!1,onBlur:c,onFocus:u,registry:d,formData:m=[],rawErrors:y,onSelectChange:f}=e,{widgets:p,schemaUtils:b,globalFormOptions:w,globalUiOptions:S}=d,{widget:E="files",title:O,...g}=H(n,S),v=ot(t,E,p),j=O??t.title??i,x=b.getDisplayLabel(t,n,S),A=sn(We("",w,r,!0));return h.jsx(v,{options:g,id:A[ge],name:i,multiple:!0,onChange:f,onBlur:c,onFocus:u,schema:t,uiSchema:n,value:m,disabled:s,readonly:o,required:l,registry:d,autofocus:a,rawErrors:y,label:j,hideLabel:!x,htmlName:A.name})}function uu(e){const{itemKey:t,index:n,name:r,disabled:i,hideError:s,readonly:o,registry:a,uiOptions:l,parentUiSchema:c,canAdd:u,canRemove:d=!0,canMoveUp:m,canMoveDown:y,itemSchema:f,itemData:p,itemUiSchema:b,itemFieldPathId:w,itemErrorSchema:S,autofocus:E,onBlur:O,onFocus:g,onChange:v,rawErrors:j,totalItems:x,title:A,handleAddItem:C,handleCopyItem:_,handleRemoveItem:I,handleReorderItems:T}=e,{schemaUtils:k,fields:{ArraySchemaField:N,SchemaField:F},globalUiOptions:M}=a,z=sn(w),V=N||F,D=K("ArrayFieldItemTemplate",a,l),de=k.getDisplayLabel(f,b,M),{description:fe}=H(b),Se=!!fe||!!f.description,{orderable:q=!0,removable:J=!0,copyable:G=!1}=l,Z={moveUp:q&&m,moveDown:q&&y,copy:G&&u,remove:J&&d,toolbar:!1};Z.toolbar=Object.keys(Z).some(xe=>Z[xe]);const X=P.useCallback(xe=>{C(xe,n+1)},[C,n]),B=P.useCallback(xe=>{_(xe,n)},[_,n]),se=P.useCallback(xe=>{I(xe,n)},[I,n]),oe=P.useCallback(xe=>{T(xe,n,n-1)},[T,n]),je=P.useCallback(xe=>{T(xe,n,n+1)},[T,n]),Oe={children:h.jsx(V,{name:r,title:A,index:n,schema:f,uiSchema:b,formData:p,errorSchema:S,fieldPathId:z,required:Tv(f),onChange:v,onBlur:O,onFocus:g,registry:a,disabled:i,readonly:o,hideError:s,autofocus:E,rawErrors:j}),buttonsProps:{fieldPathId:z,disabled:i,readonly:o,canAdd:u,hasCopy:Z.copy,hasMoveUp:Z.moveUp,hasMoveDown:Z.moveDown,hasRemove:Z.remove,index:n,totalItems:x,onAddItem:X,onCopyItem:B,onRemoveItem:se,onMoveUpItem:oe,onMoveDownItem:je,registry:a,schema:f,uiSchema:b},itemKey:t,className:"rjsf-array-item",disabled:i,hasToolbar:Z.toolbar,index:n,totalItems:x,readonly:o,registry:a,schema:f,uiSchema:b,parentUiSchema:c,displayLabel:de,hasDescription:Se};return h.jsx(D,{...Oe})}function $v(e){const{schema:t,uiSchema:n={},errorSchema:r,fieldPathId:i,formData:s,name:o,title:a,disabled:l=!1,readonly:c=!1,autofocus:u=!1,required:d=!1,hideError:m=!1,registry:y,onBlur:f,onFocus:p,rawErrors:b,onChange:w,keyedFormData:S,handleAddItem:E,handleCopyItem:O,handleRemoveItem:g,handleReorderItems:v}=e,j=t.title||a||o,{schemaUtils:x,fields:A,formContext:C,globalFormOptions:_,globalUiOptions:I}=y,{OptionalDataControlsField:T}=A,k=H(n,I),N=le(t.items)?t.items:{},F=x.retrieveSchema(N),M=au(S),z=Er(y,t,d,n),V=kn(s),D=lu(y,t,M,n)&&(!z||V),de=V?S:[],fe=z?" rjsf-optional-array-field":"",Se=e.childFieldPathId??i,q=z?h.jsx(T,{...e,fieldPathId:Se}):void 0,J={canAdd:D,items:de.map((Z,X)=>{const{key:B,item:se}=Z,oe=se,je=x.retrieveSchema(N,oe),Oe=r?r[X]:void 0,xe=We(X,_,Se),Me=cu(n,se,X,C),St={itemKey:B,index:X,name:o&&`${o}-${X}`,registry:y,uiOptions:k,parentUiSchema:n,hideError:m,readonly:c,disabled:l,required:d,title:j?`${j}-${X+1}`:void 0,canAdd:D,canMoveUp:X>0,canMoveDown:X<M.length-1,itemSchema:je,itemFieldPathId:xe,itemErrorSchema:Oe,itemData:oe,itemUiSchema:Me,autofocus:u&&X===0,onBlur:f,onFocus:p,rawErrors:b,totalItems:S.length,handleAddItem:E,handleCopyItem:O,handleRemoveItem:g,handleReorderItems:v,onChange:w};return h.jsx(uu,{...St},B)}),className:`rjsf-field rjsf-field-array rjsf-field-array-of-${F.type}${fe}`,disabled:l,fieldPathId:i,uiSchema:n,onAddClick:E,readonly:c,required:d,schema:t,title:j,formData:M,rawErrors:b,registry:y,optionalDataControl:q},G=K("ArrayFieldTemplate",y,k);return h.jsx(G,{...J})}function Rv(e){const{schema:t,uiSchema:n={},formData:r,errorSchema:i,fieldPathId:s,name:o,title:a,disabled:l=!1,readonly:c=!1,autofocus:u=!1,required:d=!1,hideError:m=!1,registry:y,onBlur:f,onFocus:p,rawErrors:b,keyedFormData:w,onChange:S,handleAddItem:E,handleCopyItem:O,handleRemoveItem:g,handleReorderItems:v}=e;let{formData:j=[]}=e;const x=t.title||a||o,{schemaUtils:A,fields:C,formContext:_,globalFormOptions:I,globalUiOptions:T}=y,k=H(n,T),{OptionalDataControlsField:N}=C,F=Er(y,t,d,n),M=kn(r),V=(le(t.items)?t.items:[]).map((X,B)=>A.retrieveSchema(X,j[B])),D=le(t.additionalItems)?A.retrieveSchema(t.additionalItems,r):null,de=e.childFieldPathId??s;j.length<V.length&&(j=j.concat(new Array(V.length-j.length)));const fe=M?w:[],Se=F?" rjsf-optional-array-field":"",q=F?h.jsx(N,{...e,fieldPathId:de}):void 0,J=lu(y,t,j,n)&&!!D&&(!F||M),G={canAdd:J,className:`rjsf-field rjsf-field-array rjsf-field-array-fixed-items${Se}`,disabled:l,fieldPathId:s,formData:r,items:fe.map((X,B)=>{const{key:se,item:oe}=X,je=oe,Oe=B>=V.length,xe=(Oe&&le(t.additionalItems)?A.retrieveSchema(t.additionalItems,je):V[B])||{},Me=We(B,I,de);let St;Oe?St=n.additionalItems:Array.isArray(n.items)?St=n.items[B]:St=cu(n,oe,B,_);const Rn=i?i[B]:void 0,Dn={index:B,itemKey:se,name:o&&`${o}-${B}`,registry:y,uiOptions:k,parentUiSchema:n,hideError:m,readonly:c,disabled:l,required:d,title:x?`${x}-${B+1}`:void 0,canAdd:J,canRemove:Oe,canMoveUp:B>=V.length+1,canMoveDown:Oe&&B<j.length-1,itemSchema:xe,itemData:je,itemUiSchema:St,itemFieldPathId:Me,itemErrorSchema:Rn,autofocus:u&&B===0,onBlur:f,onFocus:p,rawErrors:b,totalItems:w.length,onChange:S,handleAddItem:E,handleCopyItem:O,handleRemoveItem:g,handleReorderItems:v};return h.jsx(uu,{...Dn},se)}),onAddClick:E,readonly:c,required:d,registry:y,schema:t,uiSchema:n,title:x,errorSchema:i,rawErrors:b,optionalDataControl:q},Z=K("ArrayFieldTemplate",y,k);return h.jsx(Z,{...G})}function Dv(e=[]){const t=P.useMemo(()=>rt(e),[e]),[n,r]=P.useState(()=>({formDataHash:t,keyedFormData:Ma(e)}));let{keyedFormData:i,formDataHash:s}=n;if(t!==s){const a=Array.isArray(e)?e:[],l=i||[];i=a.length===l.length?l.map((c,u)=>({key:c.key,item:a[u]})):Ma(a),s=t,r({formDataHash:s,keyedFormData:i})}const o=P.useCallback(a=>{const l=au(a),c=rt(l);return r({formDataHash:c,keyedFormData:a}),l},[]);return{keyedFormData:i,updateKeyedFormData:o}}function Mv(e){const{schema:t,uiSchema:n,errorSchema:r,fieldPathId:i,registry:s,formData:o,onChange:a}=e,{globalFormOptions:l,schemaUtils:c,translateString:u}=s,{keyedFormData:d,updateKeyedFormData:m}=Dv(o),y=e.childFieldPathId??i,f=P.useCallback((v,j)=>{v&&v.preventDefault();let x;if(r){x={};for(const _ in r){const I=parseInt(_);j===void 0||I<j?he(x,[I],r[_]):I>=j&&he(x,[I+1],r[_])}}const A={key:ys(),item:Pv(s,t)},C=[...d];j!==void 0?C.splice(j,0,A):C.push(A),a(m(C),y.path,x)},[d,s,t,a,m,r,y]),p=P.useCallback((v,j)=>{v&&v.preventDefault();let x;if(r){x={};for(const _ in r){const I=parseInt(_);I<=j?he(x,[I],r[_]):I>j&&he(x,[I+1],r[_])}}const A={key:ys(),item:io(d[j].item)},C=[...d];j!==void 0?C.splice(j+1,0,A):C.push(A),a(m(C),y.path,x)},[d,a,m,r,y]),b=P.useCallback((v,j)=>{v&&v.preventDefault();let x;if(r){x={};for(const C in r){const _=parseInt(C);_<j?he(x,[_],r[C]):_>j&&he(x,[_-1],r[C])}}const A=d.filter((C,_)=>_!==j);a(m(A),y.path,x)},[d,a,m,r,y]),w=P.useCallback((v,j,x)=>{v&&(v.preventDefault(),v.currentTarget.blur());let A;if(r){A={};for(const I in r){const T=parseInt(I);T==j?he(A,[x],r[j]):T==x?he(A,[j],r[x]):he(A,[I],r[T])}}function C(){const I=d.slice();return I.splice(j,1),I.splice(x,0,d[j]),I}const _=C();a(m(_),y.path,A)},[d,a,m,r,y]),S=P.useCallback((v,j,x,A)=>{a(v===void 0?null:v,j,x,A)},[a]),E=P.useCallback(v=>{a(v,y.path,void 0,y?.[ge])},[a,y]),O={...e,formData:o,fieldPathId:y,onSelectChange:E},g={...e,handleAddItem:f,handleCopyItem:p,handleRemoveItem:b,handleReorderItems:w,keyedFormData:d,onChange:S};if(!(xn in t)){if(!l.useFallbackUiForUnsupportedType){const j=H(n),x=K("UnsupportedFieldTemplate",s,j);return h.jsx(x,{schema:t,fieldPathId:i,reason:u(ee.MissingItems),registry:s})}const v={...t,[xn]:{type:void 0}};O.schema=v,g.schema=v}return c.isMultiSelect(O.schema)?h.jsx(Nv,{...O}):qc(n)?h.jsx(kv,{...O}):to(O.schema)?h.jsx(Rv,{...g}):c.isFilesArray(O.schema,n)?h.jsx(Fv,{...O}):h.jsx($v,{...g})}function Uv(e){const{schema:t,name:n,uiSchema:r,fieldPathId:i,formData:s,registry:o,required:a,disabled:l,readonly:c,hideError:u,autofocus:d,title:m,onChange:y,onFocus:f,onBlur:p,rawErrors:b}=e,{title:w}=t,{widgets:S,translateString:E,globalUiOptions:O}=o,{widget:g="checkbox",title:v,label:j=!0,enumNames:x,...A}=H(r,O),C=ot(t,g,S),_=E(ee.YesLabel),I=E(ee.NoLabel);let T;const k=v??w??m??n;if(Array.isArray(t.oneOf))T=En({oneOf:t.oneOf.map(F=>{if(le(F))return{...F,title:F.title||(F.const===!0?_:I)}}).filter(F=>F)},r);else{const F=t.enum??[!0,!1];!x&&F.length===2&&F.every(M=>typeof M=="boolean")?T=[{value:F[0],label:F[0]?_:I},{value:F[1],label:F[1]?_:I}]:T=En({enum:F},r)}const N=P.useCallback((F,M,z)=>y(F,i.path,M,z),[y,i]);return h.jsx(C,{options:{...A,enumOptions:T},schema:t,uiSchema:r,id:i.$id,name:n,onChange:N,onFocus:f,onBlur:p,label:k,hideLabel:!j,value:s,required:a,disabled:l,readonly:c,hideError:u,registry:o,autofocus:d,rawErrors:b,htmlName:i.name})}function Lv(e){return{type:"string",enum:["string","number","boolean","object","array"],default:"string",title:e}}function Bv(e){const t=typeof e;return t==="string"||t==="number"||t==="boolean"?t:t==="object"?Array.isArray(e)?"array":"object":"string"}function zv(e,t){switch(t){case"string":return String(e);case"number":{const n=Number(e);return isNaN(n)?0:n}case"boolean":return!!e;default:return e}}function Vv(e){const{id:t,formData:n,displayLabel:r=!0,schema:i,name:s,uiSchema:o,required:a,disabled:l=!1,readonly:c=!1,onBlur:u,onFocus:d,registry:m,fieldPathId:y,onChange:f,errorSchema:p}=e,{translateString:b,fields:w,globalFormOptions:S}=m,[E,O]=P.useState(Bv(n)),g=H(o),v=sn(We("__internal_type_selector",S,y)),j=b(ee.Type),x=P.useMemo(()=>Lv(j),[j]),A=I=>{I!=null&&(O(I),f(zv(n,I),y.path,p,t))};if(!S.useFallbackUiForUnsupportedType){const{reason:I=b(ee.UnknownFieldType,[String(i.type)])}=e,T=K("UnsupportedFieldTemplate",m,g);return h.jsx(T,{schema:i,fieldPathId:y,reason:I,registry:m})}const C=K("FallbackFieldTemplate",m,g),{SchemaField:_}=w;return h.jsx(C,{schema:i,registry:m,typeSelector:h.jsx(_,{fieldPathId:v,name:`${s}__fallback_type`,schema:x,formData:E,onChange:A,onBlur:u,onFocus:d,registry:m,hideLabel:!r,disabled:l,readonly:c,required:a},n?rt(n):"__empty__"),schemaField:h.jsx(_,{...e,schema:{type:E,title:b(ee.Value),...E==="object"&&{additionalProperties:!0}}})})}function qv(e,t){return In(t,function(n){return e[n]})}function Wv(e){return e==null?[]:qv(e,Ke(e))}var Hv=Math.max;function Gv(e,t,n,r){e=tn(e)?e:Wv(e),n=n?gc(n):0;var i=e.length;return n<0&&(n=Hv(i+n,0)),Rt(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&jc(e,t,n)>-1}var Kv=Math.min;function Yv(e,t,n){for(var r=eo,i=e[0].length,s=e.length,o=s,a=Array(s),l=1/0,c=[];o--;){var u=e[o];l=Kv(u.length,l),a[o]=i>=120&&u.length>=120?new Yt(o&&u):void 0}u=e[0];var d=-1,m=a[0];e:for(;++d<i&&c.length<l;){var y=u[d],f=y;if(y=y!==0?y:0,!(m?mr(m,f):r(c,f))){for(o=s;--o;){var p=a[o];if(!(p?mr(p,f):r(e[o],f)))continue e}m&&m.push(f),c.push(y)}}return c}function Jv(e){return fr(e)?e:[]}var Ua=ci(function(e){var t=In(e,Jv);return t.length&&t[0]===e[0]?Yv(t):[]});function Vr(e,t){return ui(e,t)}function du(e){return e===void 0}var st;(function(e){e.ROW="ui:row",e.COLUMN="ui:col",e.COLUMNS="ui:columns",e.CONDITION="ui:condition"})(st||(st={}));var sr;(function(e){e.ALL="all",e.SOME="some",e.NONE="none"})(sr||(sr={}));const Zv=/^\$lookup=(.+)/,Li="layoutGrid";function La(e,t){return e??t}function Xv(e){return/^\d+?$/.test(e)}const Nt=so();function Qv(e,t,n,r,i){const s=R(n,[ss],{}),o=R(n,e),a={...R(o,[It],{}),...t,...s},l={...o};we(a)||he(l,[It],a),we(s)||he(l,[ss],s);let{readonly:c}=H(l);return(i===!0||du(c)&&r===!0)&&(c=!0,ie(a,vi)?he(l,[It,vi],!0):he(l,`ui:${vi}`,!0)),{fieldUiSchema:l,uiReadonly:c}}function e1(e,t,n="$0m3tH1nG Un3xP3cT3d"){const r=ds([t]).sort(),i=ds([n]).sort();switch(e){case sr.ALL:return Vr(r,i);case sr.SOME:return Ua(r,i).length>0;case sr.NONE:return Ua(r,i).length===0;default:return!1}}function gi(e,t,n){let r={},i=e[t];if(Ft(i)){const{children:s,className:o,...a}=i;if(i=s,o){const c=o.split(" ").map(u=>lo(n,u,u)).join(" ");r={...a,className:c}}else r=a}if(!Array.isArray(i))throw new TypeError(`Expected array for "${t}" in ${JSON.stringify(e)}`);return{children:i,gridProps:r}}function Ba(e,t,n){let r;if(Xv(n)&&e&&e?.type==="array"&&ie(e,xn)){const i=Number(n),s=e[xn];Array.isArray(s)?i>s.length?r=oc(s):r=s[i]:r=s,t={[ge]:t[ge],path:[...t.path.slice(0,t.path.length-1),i]}}return{rawSchema:r,fieldPathId:t}}function t1(e,t,n,r,i){const{schemaUtils:s,globalFormOptions:o}=e;let a=n,l=i;const c=t.split("."),u=c.pop();let d=s.retrieveSchema(a,r),m=r,y=d.readOnly;c.forEach(b=>{if(l=We(b,o,l),ie(d,ue))a=R(d,[ue,b],{});else if(d&&(ie(d,Q)||ie(d,ae))){const w=ie(d,Q)?Q:ae,S=s.findSelectedOptionInXxxOf(d,b,w,m);a=R(S,[ue,b],{})}else{const w=Ba(d,l,b);a=w.rawSchema??{},l=w.fieldPathId}m=R(m,b,{}),d=s.retrieveSchema(a,m),y=La(d.readOnly,y)});let f,p=!1;if(we(d)&&(d=void 0),d&&u){if(d&&(ie(d,Q)||ie(d,ae))){const w=ie(d,Q)?Q:ae;d=s.findSelectedOptionInXxxOf(d,u,w,m)}l=We(u,o,l),p=d!==void 0&&Array.isArray(d.required)&&Gv(d.required,u);const b=Ba(d,l,u);if(b.rawSchema?(d=b.rawSchema,l=b.fieldPathId):(d=R(d,[ue,u]),d=d&&s.retrieveSchema(d)),y=La(d?.readOnly,y),d&&(ie(d,Q)||ie(d,ae))){const w=ie(d,Q)?Q:ae,S=Je(d);f={options:d[w],hasDiscriminator:!!S}}}return{schema:d,isRequired:p,isReadonly:y,optionsInfo:f,fieldPathId:l}}function n1(e,t){let n=e;return Rt(n)&&(n=lo(t,n)),br(n)?n:null}function r1(e,t){let n,r=null,i={},s;if(Rt(t)||du(t))n=t??"";else{const{name:o="",render:a,...l}=t;n=o,i=l,we(i)||_v(i,(c,u)=>{if(Rt(c)){const d=Zv.exec(c);if(Array.isArray(d)&&d.length>1){const m=d[1];i[u]=lo(e,m,m)}}}),r=n1(a,e),!o&&r&&(s=h.jsx(r,{...l,"data-testid":Nt.uiComponent}))}return{name:n,UIComponent:r,uiProps:i,rendered:s}}function yi(e){const{childrenLayoutGridSchemaId:t,...n}=e,{registry:r,schema:i,formData:s}=n,{schemaUtils:o}=r,a=o.retrieveSchema(i,s);return t.map(l=>P.createElement(fo,{...n,key:`layoutGrid-${rt(l)}`,schema:a,layoutGridSchema:l}))}function i1(e){const{layoutGridSchema:t,...n}=e,{formData:r,registry:i}=n,{children:s,gridProps:o}=gi(t,st.CONDITION,i),{operator:a,field:l="",value:c}=o,u=R(r,l,null);return e1(a,u,c)?h.jsx(yi,{...n,childrenLayoutGridSchemaId:s}):null}function s1(e){const{layoutGridSchema:t,...n}=e,{registry:r,uiSchema:i}=n,{children:s,gridProps:o}=gi(t,st.COLUMN,r),a=H(i),l=K("GridTemplate",r,a);return h.jsx(l,{column:!0,"data-testid":Nt.col,...o,children:h.jsx(yi,{...n,childrenLayoutGridSchemaId:s})})}function o1(e){const{layoutGridSchema:t,...n}=e,{registry:r,uiSchema:i}=n,{children:s,gridProps:o}=gi(t,st.COLUMNS,r),a=H(i),l=K("GridTemplate",r,a);return s.map(c=>h.jsx(l,{column:!0,"data-testid":Nt.col,...o,children:h.jsx(yi,{...n,childrenLayoutGridSchemaId:[c]})},`column-${rt(c)}`))}function a1(e){const{layoutGridSchema:t,...n}=e,{registry:r,uiSchema:i}=n,{children:s,gridProps:o}=gi(t,st.ROW,r),a=H(i),l=K("GridTemplate",r,a);return h.jsx(l,{...o,"data-testid":Nt.row,children:h.jsx(yi,{...n,childrenLayoutGridSchemaId:s})})}function l1(e){const{gridSchema:t,schema:n,uiSchema:r,errorSchema:i,fieldPathId:s,onBlur:o,onFocus:a,formData:l,readonly:c,registry:u,layoutGridSchema:d,...m}=e,{onChange:y}=m,{fields:f}=u,{SchemaField:p,LayoutMultiSchemaField:b}=f,w=r1(u,t),{name:S,UIComponent:E,uiProps:O}=w,{schema:g,isRequired:v,isReadonly:j,optionsInfo:x,fieldPathId:A}=t1(u,S,n,l,s),C=sn(A);if(w.rendered)return w.rendered;if(g){const _=x?.hasDiscriminator?b:p,{fieldUiSchema:I,uiReadonly:T}=Qv(S,O,r,j,c);return h.jsx(_,{"data-testid":x?.hasDiscriminator?Nt.layoutMultiSchemaField:Nt.field,...m,name:S,required:v,readonly:T,schema:g,uiSchema:I,errorSchema:R(i,S),fieldPathId:C,formData:R(l,S),onChange:y,onBlur:o,onFocus:a,options:x?.options,registry:u})}return E?h.jsx(E,{"data-testid":Nt.uiComponent,...m,name:S,required:v,formData:l,readOnly:!!j||c,errorSchema:i,uiSchema:r,schema:n,fieldPathId:s,onBlur:o,onFocus:a,registry:u,...O}):null}function fo(e){const{uiSchema:t}=e;let{layoutGridSchema:n}=e;const r=H(t);if(!n&&Li in r&&le(r[Li])&&(n=r[Li]),le(n)){if(st.ROW in n)return h.jsx(a1,{...e,layoutGridSchema:n});if(st.COLUMN in n)return h.jsx(s1,{...e,layoutGridSchema:n});if(st.COLUMNS in n)return h.jsx(o1,{...e,layoutGridSchema:n});if(st.CONDITION in n)return h.jsx(i1,{...e,layoutGridSchema:n})}return h.jsx(l1,{...e,gridSchema:n})}fo.TEST_IDS=Nt;function c1(e){const{fieldPathId:t,title:n,schema:r,uiSchema:i,required:s,registry:o,name:a}=e,l=H(i,o.globalUiOptions),{title:c}=l,{title:u}=r,d=c||n||u||a;if(!d)return null;const m=K("TitleFieldTemplate",o,l);return h.jsx(m,{id:pi(t),title:d,required:s,schema:r,uiSchema:i,registry:o})}function Bi(e,t,n){const r="!@#!@$@#$!@$#";return e.map(({schema:s})=>s).find(s=>{const o=R(s,[ue,t]);return R(o,Ht,R(o,$e,r))===n})}function za(e,t,n,r,i){const s=t.map(l=>n.retrieveSchema(l,i));let o=e;ie(e,Q)?o={...e,[Q]:s}:ie(e,ae)&&(o={...e,[ae]:s});const a=En(o,r);if(!a)throw new Error(`No enumOptions were computed from the schema ${JSON.stringify(o)}`);return a}function u1(e){const{name:t,baseType:n,disabled:r=!1,formData:i,fieldPathId:s,onBlur:o,onChange:a,options:l,onFocus:c,registry:u,uiSchema:d,schema:m,autofocus:y,readonly:f,required:p,errorSchema:b,hideError:w=!1}=e,{widgets:S,schemaUtils:E,globalUiOptions:O}=u,[g,v]=P.useState(za(m,l,E,d,i)),j=R(s,ge),x=Je(m),A=K("FieldErrorTemplate",u,l),C=K("FieldTemplate",u,l),_=rt(m),I=rt(l),T=d?rt(d):"",k=i?rt(i):"";P.useEffect(()=>{v(za(m,l,E,d,i))},[_,I,E,T,k]);const{widget:N=x?"radio":"select",title:F="",placeholder:M="",optionsSchemaSelector:z=x,hideError:V,...D}=H(d);if(!z)throw new Error("No selector field provided for the LayoutMultiSchemaField");const de=R(i,z);let fe=R(g[0]?.schema,[ue,z],{});const Se=Bi(g,z,de);fe=fe?.type?fe:{...fe,type:Se?.type||n};const q=ot(fe,N,S),J=V===void 0?w:!!V,G=R(b,[Pe],[]),Z=wn(b,[Pe]),X=E.getDisplayLabel(m,d,O),B=je=>{const Oe=Bi(g,z,je),xe=Bi(g,z,de);let Me=E.sanitizeDataForNewSchema(Oe,xe,i);Me&&Oe&&(Me=E.getDefaultFormState(Oe,Me,"excludeObjectChildren")),Me&&he(Me,z,je),a(Me,s.path,void 0,j)},se={enumOptions:g,...D},oe=!J&&G.length>0?h.jsx(A,{fieldPathId:s,schema:m,errors:G,registry:u}):void 0;return h.jsx(C,{fieldPathId:s,id:j,schema:m,label:(F||m.title)??"",disabled:r||Array.isArray(g)&&we(g),uiSchema:d,required:p,readonly:!!f,registry:u,displayLabel:X,errors:oe,onChange:a,onKeyRename:Lr,onKeyRenameBlur:Lr,onRemoveProperty:Lr,children:h.jsx(q,{id:j,name:t,schema:m,label:(F||m.title)??"",disabled:r||Array.isArray(g)&&we(g),uiSchema:d,autofocus:y,readonly:f,required:p,registry:u,multiple:!1,rawErrors:G,hideError:J,hideLabel:!X,errorSchema:Z,placeholder:M,onChange:B,onBlur:o,onFocus:c,value:de,options:se,htmlName:s.name})})}class Va extends P.Component{constructor(t){super(t);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(t,n){const{formData:r,options:i,fieldPathId:s}=this.props,{selectedOption:o}=this.state;let a=this.state;if(!ce(t.options,i)){const{registry:{schemaUtils:l}}=this.props,c=i.map(u=>l.retrieveSchema(u,r));a={selectedOption:o,retrievedOptions:c}}if(!ce(r,t.formData)&&s.$id===t.fieldPathId.$id){const{retrievedOptions:l}=a,c=this.getMatchingOption(o,r,l);n&&c!==o&&(a={selectedOption:c,retrievedOptions:l})}a!==this.state&&this.setState(a)}getMatchingOption(t,n,r){const{schema:i,registry:{schemaUtils:s}}=this.props,o=Je(i);return s.getClosestMatchingOption(n,r,t,o)}onOptionChange=t=>{const{selectedOption:n,retrievedOptions:r}=this.state,{formData:i,onChange:s,registry:o,fieldPathId:a}=this.props,{schemaUtils:l}=o,c=t!==void 0?parseInt(t,10):-1;if(c===n)return;const u=c>=0?r[c]:void 0,d=n>=0?r[n]:void 0;let m=l.sanitizeDataForNewSchema(u,d,i);u&&(m=l.getDefaultFormState(u,m,"excludeObjectChildren")),this.setState({selectedOption:c},()=>{s(m,a.path,void 0,this.getFieldId())})};getFieldId(){const{fieldPathId:t,schema:n}=this.props;return`${t.$id}${n.oneOf?"__oneof_select":"__anyof_select"}`}render(){const{name:t,disabled:n=!1,errorSchema:r={},formData:i,onBlur:s,onFocus:o,readonly:a,required:l=!1,registry:c,schema:u,uiSchema:d}=this.props,{widgets:m,fields:y,translateString:f,globalUiOptions:p,schemaUtils:b}=c,{SchemaField:w}=y,S=K("MultiSchemaFieldTemplate",c,p),E=Er(c,u,l,d),O=kn(i),{selectedOption:g,retrievedOptions:v}=this.state,{widget:j="select",placeholder:x,autofocus:A,autocomplete:C,title:_=u.title,...I}=H(d,p),T=ot({type:"number"},j,m),k=R(r,Pe,[]),N=wn(r,[Pe]),F=b.getDisplayLabel(u,d,p),M=g>=0&&v[g]||null;let z;if(M){const{required:G}=u;z=G?pt({required:G},M):M}let V=[];Q in u&&d&&Q in d?Array.isArray(d[Q])?V=d[Q]:console.warn(`uiSchema.oneOf is not an array for "${_||t}"`):ae in u&&d&&ae in d&&(Array.isArray(d[ae])?V=d[ae]:console.warn(`uiSchema.anyOf is not an array for "${_||t}"`));let D=d;g>=0&&V.length>g&&(D=V[g]);const de=_?ee.TitleOptionPrefix:ee.OptionPrefix,fe=_?[_]:[],Se=v.map((G,Z)=>{const{title:X=G.title}=H(V[Z]);return{label:X||f(de,fe.concat(String(Z+1))),value:Z}}),q=!E||O?h.jsx(T,{id:this.getFieldId(),name:`${t}${u.oneOf?"__oneof_select":"__anyof_select"}`,schema:{type:"number",default:0},onChange:this.onOptionChange,onBlur:s,onFocus:o,disabled:n||we(Se),multiple:!1,rawErrors:k,errorSchema:N,value:g>=0?g:void 0,options:{enumOptions:Se,...I},registry:c,placeholder:x,autocomplete:C,autofocus:A,label:_??t,hideLabel:!F,readonly:a}):void 0,J=z&&z.type!=="null"&&h.jsx(w,{...this.props,schema:z,uiSchema:D})||null;return h.jsx(S,{schema:u,registry:c,uiSchema:d,selector:q,optionSchemaField:J})}}const d1=/\.([0-9]*0)*$/,f1=/[0.]0*$/;function m1(e){const{registry:t,onChange:n,formData:r,value:i}=e,[s,o]=P.useState(i),{StringField:a}=t.fields;let l=r;const c=P.useCallback((u,d,m,y)=>{o(u),`${u}`.charAt(0)==="."&&(u=`0${u}`);const f=typeof u=="string"&&u.match(d1)?No(u.replace(f1,"")):No(u);n(f,d,m,y)},[n]);if(typeof s=="string"&&typeof l=="number"){const u=new RegExp(`^(${String(l).replace(".","\\.")})?\\.?0*$`);s.match(u)&&(l=s)}return h.jsx(a,{...e,formData:l,onChange:c})}function tt(){return tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tt.apply(null,arguments)}const Tr=["strong","em","del","mark"],qa=[["**",Tr[0]],["__",Tr[0]],["~~",Tr[2]],["==",Tr[3]],["*","em"],["_","em"]];function h1(e,t){for(var n=1,r=t+1;r<e.length&&n>0;)e[r]!=="\\"?(e[r]==="["&&n++,e[r]==="]"&&n--,r++):r+=2;if(n===0&&r<e.length&&(e[r]==="("||e[r]==="[")){var i=e[r]==="("?")":"]",s=1;for(r++;r<e.length&&s>0;)e[r]!=="\\"?(e[r]==="("&&i===")"&&s++,e[r]===i&&s--,r++):r+=2;if(s===0)return r}return-1}function p1(e,t){if(!t||!t.inline&&!t.simple)return null;var n=e[0];if(n!=="*"&&n!=="_"&&n!=="~"&&n!=="=")return null;for(var r="",i=0,s="",o=0;o<6;o++){var a=qa[o][0];if(e.startsWith(a)&&e.length>=2*a.length){r=a,i=a.length,s=qa[o][1];break}}if(!r)return null;for(var l=i,c=!1,u=!1,d="",m=0,y="",f=!1,p="";l<e.length;){var b=e[l];if(f)y+=b,f=!1,p=b,l++;else if(b!=="\\")if(b!=="`"||m!==0){if(b==="["&&!c&&m===0){var w=h1(e,l);if(w!==-1){y+=e.slice(l,w),l=w,p=e[w-1];continue}}if(u)y+=b,d?b===d&&(d=""):b==='"'||b==="'"?d=b:b===">"&&(u=!1),p=b,l++;else if(b!=="<"||c){if(b===`
|
|
4
|
+
`&&p===`
|
|
5
|
+
`&&!c&&m===0)return null;if(!c&&m===0){for(var S=0;l+S<e.length&&e[l+S]===r[0];)S++;if(S>=i&&(i!==1||r!=="*"&&r!=="_"||e[l-1]!==r&&e[l+1]!==r)){var E=[e.slice(0,l+S),s,y+e.slice(l+i,l+S)];return E.index=0,E.input=e,E}}y+=b,p=b,l++}else{var O=e[l+1],g=e.indexOf(">",l);if(g!==-1){var v=e.slice(l,g+1).endsWith("/>");O==="/"?m=Math.max(0,m-1):v||m++}u=!0,y+=b,p=b,l++}}else c=!c,y+=b,p=b,l++;else y+=b,f=!0,p=b,l++}return null}const g1=["children","options"],Wa=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{class:"className",for:"htmlFor"}),Ha={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},y1=["style","script","pre"],b1=["src","href","data","formAction","srcDoc","action"],x1=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,v1=/\n{2,}$/,Ga=/^(\s*>[\s\S]*?)(?=\n\n|$)/,S1=/^ *> ?/gm,w1=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,j1=/^ {2,}\n/,O1=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,Ka=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,Ya=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,E1=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,A1=/^(?:\n *)*\n/,C1=/\r\n?/g,_1=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,I1=/^\[\^([^\]]+)]/,T1=/\f/g,P1=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,N1=/^\[(x|\s)\]/,Ja=/^(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Za=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Xa=/^([^\n]+)\n *(=|-)\2{2,} *\n/,mo=/^<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>/i;function k1(e){const t=mo.exec(e);if(!t)return null;const n=t[1],r=n.toLowerCase(),i=r.length+1;let s=t[0].length;e[s]===`
|
|
6
|
+
`&&s++;const o=s;let a=s,l=1;const c=e.length;for(;l>0;){const d=e.indexOf("<",s);if(d===-1)return null;let m=-1,y=-1;if(e[d+1]==="/")y=d;else if(e[d+1]===r[0]||e[d+1]===n[0]){let f=!0;for(let p=0;p<r.length;p++){const b=e[d+1+p];if(b!==r[p]&&b!==n[p]){f=!1;break}}!f||e[d+i]!==" "&&e[d+i]!==">"||(m=d)}if(m!==-1||y!==-1)if(m!==-1&&(y===-1||m<y))s=m+i+1,l++;else{let f=y+2;for(;f<c;){const b=e[f];if(b!==" "&&b!==" "&&b!==`
|
|
7
|
+
`&&b!=="\r")break;f++}if(f+r.length>c)return null;let p=!0;for(let b=0;b<r.length;b++){const w=e[f+b];if(w!==r[b]&&w!==n[b]){p=!1;break}}if(!p){s=f;continue}for(f+=r.length;f<c;){const b=e[f];if(b!==" "&&b!==" "&&b!==`
|
|
8
|
+
`&&b!=="\r")break;f++}if(f>=c||e[f]!==">"){s=f;continue}a=y,s=f+1,l--}else s=d+1}let u=0;for(;s+u<c&&e[s+u]===`
|
|
9
|
+
`;)u++;return[e.slice(0,s+u),n,t[2],e.slice(o,a)]}const F1=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Qa=/^<!--[\s\S]*?(?:-->)/,$1=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,bs=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,R1=/^\{.*\}$/,D1=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,M1=/^<([^ >]+[:@\/][^ >]+)>/,U1=/-([a-z])?/gi,el=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,L1=/^[^\n]+(?: \n|\n{2,})/,B1=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,z1=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,V1=/^\[([^\]]*)\] ?\[([^\]]*)\]/,q1=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,W1=/\t/g,H1=/(^ *\||\| *$)/g,G1=/^ *:-+: *$/,K1=/^ *:-+ *$/,Y1=/^ *-+: *$/,J1=/^(:[a-zA-Z0-9-_]+:)/,Z1=/^\\([^0-9A-Za-z\s])/,X1=/\\([^0-9A-Za-z\s])/g,Q1=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,eS=/^\n+/,tS=/^([ \t]*)/,nS=/(?:^|\n)( *)$/,ho="(?:\\d+\\.)",po="(?:[*+-])";function fu(e){return"( *)("+(e===1?ho:po)+") +"}const mu=fu(1),hu=fu(2);function pu(e){return RegExp("^"+(e===1?mu:hu))}const rS=pu(1),iS=pu(2);function gu(e){return RegExp("^"+(e===1?mu:hu)+"[^\\n]*(?:\\n(?!\\1"+(e===1?ho:po)+" )[^\\n]*)*(\\n|$)","gm")}const sS=gu(1),oS=gu(2);function yu(e){const t=e===1?ho:po;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const bu=yu(1),xu=yu(2);function tl(e,t){const n=t===1,r=n?bu:xu,i=n?sS:oS,s=n?rS:iS;return{t:o=>s.test(o),o:_t(function(o,a){const l=nS.exec(a.prevCapture);return l&&(a.list||!a.inline&&!a.simple)?r.exec(o=l[1]+o):null}),u:1,i(o,a,l){const c=n?+o[2]:void 0,u=o[0].replace(v1,`
|
|
10
|
+
`).match(i),d=s.exec(u[0]),m=RegExp("^ {1,"+(d?d[0].length:0)+"}","gm");let y=!1;return{items:u.map(function(f,p){const b=f.replace(m,"").replace(s,""),w=p===u.length-1,S=Xe(b,`
|
|
11
|
+
|
|
12
|
+
`)||w&&y;y=S;const E=l.inline,O=l.list;let g;l.list=!0,S?(l.inline=!1,g=or(b)+`
|
|
13
|
+
|
|
14
|
+
`):(l.inline=!0,g=or(b));const v=a(g,l);return l.inline=E,l.list=O,v}),ordered:n,start:c}}}}const aS=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),lS=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function nl(e){return typeof e=="string"}function or(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function xs(e,t){return e.startsWith(t)}function Xe(e,t){return e.indexOf(t)!==-1}function cS(e,t,n){if(Array.isArray(n)){for(let r=0;r<n.length;r++)if(xs(e,n[r]))return!0;return!1}return n(e,t)}function qn(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function uS(e){return Y1.test(e)?"right":G1.test(e)?"center":K1.test(e)?"left":null}function rl(e,t,n,r){const i=n.inTable;n.inTable=!0;let s=[[]],o="";function a(){if(!o)return;const l=s[s.length-1];l.push.apply(l,t(o,n)),o=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((l,c,u)=>{l.trim()==="|"&&(a(),r)?c!==0&&c!==u.length-1&&s.push([]):o+=l}),a(),n.inTable=i,s}function dS(e,t,n){n.inline=!0;const r=e[2]?e[2].replace(H1,"").split("|").map(uS):[],i=e[3]?(function(o,a,l){return o.trim().split(`
|
|
15
|
+
`).map(function(c){return rl(c,a,l,!0)})})(e[3],t,n):[],s=rl(e[1],t,n,!!i.length);return n.inline=!1,i.length?{align:r,cells:i,header:s,type:"25"}:{children:s,type:"21"}}function il(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function _t(e){return e.inline=1,e}function wt(e){return _t(function(t,n){return n.inline?e.exec(t):null})}function Pr(e){return _t(function(t,n){return n.inline||n.simple?e.exec(t):null})}function ct(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}function sl(e){return _t(function(t){return e.exec(t)})}const fS=/(javascript|vbscript|data(?!:image)):/i;function mS(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(fS.test(t))return null}catch{return null}return e}function Qe(e){return e&&e.replace(X1,"$1")}function qr(e,t,n){const r=n.inline||!1,i=n.simple||!1;n.inline=!0,n.simple=!0;const s=e(t,n);return n.inline=r,n.simple=i,s}function hS(e,t,n){const r=n.inline||!1,i=n.simple||!1;n.inline=!1,n.simple=!0;const s=e(t,n);return n.inline=r,n.simple=i,s}function pS(e,t,n){const r=n.inline||!1;n.inline=!1;const i=e(t,n);return n.inline=r,i}const gS=(e,t,n)=>({children:qr(t,e[2],n)});function zi(){return{}}function yS(...e){return e.filter(Boolean).join(" ")}function Vi(e,t,n){let r=e;const i=t.split(".");for(;i.length&&(r=r[i[0]],r!==void 0);)i.shift();return r||n}function qi(e,t,n,r){if(!t||!t.trim())return null;const i=t.match(x1);return i?i.reduce(function(s,o){const a=o.indexOf("=");if(a!==-1){const l=(function(d){return d.indexOf("-")!==-1&&d.match($1)===null&&(d=d.replace(U1,function(m,y){return y.toUpperCase()})),d})(o.slice(0,a)).trim(),c=Wa[l]||l;if(c==="ref")return s;const u=s[c]=(function(d,m,y,f){return m==="style"?(function(p){const b=[];if(!p)return b;let w="",S=0,E="";for(let g=0;g<p.length;g++){const v=p[g];if(v==='"'||v==="'")E?v===E&&(E="",S--):(E=v,S++);else if(v==="("&&w.endsWith("url"))S++;else if(v===")"&&S>0)S--;else if(v===";"&&S===0){const j=w.indexOf(":");j>0&&b.push([w.slice(0,j).trim(),w.slice(j+1).trim()]),w="";continue}w+=v}const O=w.indexOf(":");return O>0&&b.push([w.slice(0,O).trim(),w.slice(O+1).trim()]),b})(y).reduce(function(p,[b,w]){return p[b.replace(/(-[a-z])/g,S=>S[1].toUpperCase())]=f(w,d,b),p},{}):b1.indexOf(m)!==-1?f(Qe(y),d,m):(y.match(R1)&&(y=Qe(y.slice(1,y.length-1))),y==="true"||y!=="false"&&y)})(e,l,(function(d){const m=d[0];return(m==='"'||m==="'")&&d.length>=2&&d[d.length-1]===m?d.slice(1,-1):d})(o.slice(a+1).trim()),n);typeof u=="string"&&(mo.test(u)||bs.test(u))&&(s[c]=r(u.trim()))}else o!=="style"&&(s[Wa[o]||o]=!0);return s},{}):null}function ol(e,t){for(let n=0;n<e.length;n++)if(e[n].test(t))return!0;return!1}function bS(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?tt({},Ha,t.namedCodesToUnicode):Ha;const n=t.slugify||qn,r=t.sanitizer||mS,i=t.createElement||P.createElement,s=[Ga,Ka,Ya,t.enforceAtxHeadings?Za:Ja,Xa,el,bu,xu],o=[...s,L1,mo,Qa,bs];function a(f,p,...b){const w=Vi(t.overrides,f+".props",{});return i((function(S,E){const O=Vi(E,S);return O?typeof O=="function"||typeof O=="object"&&"render"in O?O:Vi(E,S+".component",S):S})(f,t.overrides),tt({},p,w,{className:yS(p?.className,w.className)||void 0}),...b)}function l(f){f=f.replace(P1,"");let p=!1;t.forceInline?p=!0:t.forceBlock||(p=q1.test(f)===!1);const b=m(p?f:or(f).replace(eS,"")+`
|
|
16
|
+
|
|
17
|
+
`,{inline:p});if(t.ast)return b;const w=y(b);for(;nl(w[w.length-1])&&!w[w.length-1].trim();)w.pop();if(c.length&&w.push(a("footer",{key:"footer"},c.map(function(O){return a("div",{id:n(O.identifier,qn),key:O.identifier},O.identifier,y(m(O.footnote,{inline:!0})))}))),t.wrapper===null)return w;const S=t.wrapper||(p?"span":"div");let E;if(w.length>1||t.forceWrapper)E=w;else{if(w.length===1)return E=w[0],typeof E=="string"?a("span",{key:"outer"},E):E;E=null}return i(S,tt({key:"outer"},t.wrapperProps),E)}const c=[],u={},d={0:{t:[">"],o:ct(Ga),u:1,i(f,p,b){const[,w,S]=f[0].replace(S1,"").match(w1);return{alert:w,children:p(S,b)}}},1:{t:[" "],o:wt(j1),u:1,i:zi},2:{t:function(f,p){if(p.inline||p.simple)return!1;var b=f[0];return b==="-"||b==="*"||b==="_"},o:ct(O1),u:1,i:zi},3:{t:[" "],o:ct(Ya),u:0,i:f=>({lang:void 0,text:Qe(or(f[0].replace(/^ {4}/gm,"")))})},4:{t:["```","~~~"],o:ct(Ka),u:0,i:f=>({attrs:qi("code",f[3]||"",r,l),lang:f[2]||void 0,text:f[4],type:"3"})},5:{t:["`"],o:Pr(E1),u:3,i:f=>({text:Qe(f[2])})},6:{t:["[^"],o:ct(_1),u:0,i:f=>(c.push({footnote:f[2],identifier:f[1]}),{})},7:{t:["[^"],o:wt(I1),u:1,i:f=>({target:"#"+n(f[1],qn),text:f[1]})},8:{t:["[ ]","[x]"],o:wt(N1),u:1,i:f=>({completed:f[1].toLowerCase()==="x"})},9:{t:["#"],o:ct(t.enforceAtxHeadings?Za:Ja),u:1,i:(f,p,b)=>({children:qr(p,f[2],b),id:n(f[2],qn),level:f[1].length})},10:{t:f=>{const p=f.indexOf(`
|
|
18
|
+
`);return p>0&&p<f.length-1&&(f[p+1]==="="||f[p+1]==="-")},o:ct(Xa),u:1,i:(f,p,b)=>({children:qr(p,f[1],b),level:f[2]==="="?1:2,type:"9"})},11:{t:["<"],o:_t(k1),u:1,i(f,p,b){const[,w]=f[3].match(tS),S=RegExp("^"+w,"gm"),E=f[3].replace(S,""),O=ol(o,E)?pS:qr,g=f[1].toLowerCase(),v=y1.indexOf(g)!==-1,j=(v?g:f[1]).trim(),x={attrs:qi(j,f[2],r,l),noInnerParse:v,tag:j};if(b.inAnchor=b.inAnchor||g==="a",v)x.text=f[3];else{const A=b.inHTML;b.inHTML=!0,x.children=O(p,E,b),b.inHTML=A}return b.inAnchor=!1,x}},13:{t:["<"],o:sl(bs),u:1,i(f){const p=f[1].trim();return{attrs:qi(p,f[2]||"",r,l),tag:p}}},12:{t:["<!--"],o:sl(Qa),u:1,i:()=>({})},14:{t:["!["],o:Pr(lS),u:1,i:f=>({alt:Qe(f[1]),target:Qe(f[2]),title:Qe(f[3])})},15:{t:["["],o:wt(aS),u:3,i:(f,p,b)=>({children:hS(p,f[1],b),target:Qe(f[2]),title:Qe(f[3])})},16:{t:function(f,p){return!(!p.inline||p.inAnchor)&&f[0]==="<"&&(Xe(f,":")||Xe(f,"@")||Xe(f,"/"))},o:wt(M1),u:0,i(f){let p=f[1],b=!1;return Xe(p,"@")&&!Xe(p,"//")&&(b=!0,p=p.replace("mailto:","")),{children:[{text:p,type:"27"}],target:b?"mailto:"+p:p,type:"15"}}},17:{t:(f,p)=>!p.inAnchor&&!t.disableAutoLink&&xs(f,"http"),o:wt(D1),u:0,i:f=>({children:[{text:f[1],type:"27"}],target:f[1],title:void 0,type:"15"})},20:tl(0,1),30:tl(0,2),19:{t:[`
|
|
19
|
+
`],o:ct(A1),u:3,i:zi},21:{t:function(f,p){return!p.inline&&!p.simple},o:_t(function(f,p){if(p.inline||p.simple||p.inHTML&&!Xe(f,`
|
|
20
|
+
|
|
21
|
+
`)&&!Xe(p.prevCapture,`
|
|
22
|
+
|
|
23
|
+
`))return null;let b="",w=0;for(;;){const E=f.indexOf(`
|
|
24
|
+
`,w),O=f.slice(w,E===-1?void 0:E+1),g=f[w];if((g===">"||g==="#"||g==="|"||g==="`"||g==="~"||g==="*"||g==="-"||g==="_"||g===" ")&&ol(s,O)||(b+=O,E===-1||!O.trim()))break;w=E+1}const S=or(b);return S===""?null:[b,,S]}),u:3,i:gS},22:{t:["["],o:wt(B1),u:0,i:f=>(u[f[1]]={target:f[2],title:f[4]},{})},23:{t:["!["],o:Pr(z1),u:0,i:f=>({alt:f[1]?Qe(f[1]):void 0,ref:f[2]})},24:{t:f=>f[0]==="["&&!Xe(f,"]("),o:wt(V1),u:0,i:(f,p,b)=>({children:p(f[1],b),fallbackChildren:f[0],ref:f[2]})},25:{t:["|"],o:ct(el),u:1,i:dS},27:{o:_t(function(f,p){let b;return xs(f,":")&&(b=J1.exec(f)),b||Q1.exec(f)}),u:4,i(f){const p=f[0];return{text:Xe(p,"&")?p.replace(F1,(b,w)=>t.namedCodesToUnicode[w]||b):p}}},34:{t:["*","_","~","="],o:_t(p1),u:2,i:(f,p,b)=>({children:p(f[2],b),tag:f[1]})},28:{t:["\\"],o:Pr(Z1),u:1,i:f=>({text:f[1],type:"27"})}};t.disableParsingRawHTML===!0&&(delete d[11],delete d[13]);const m=(function(f){var p=Object.keys(f);function b(w,S){var E=[];if(S.prevCapture=S.prevCapture||"",w.trim())for(;w;)for(var O=0;O<p.length;){var g=p[O],v=f[g];if(!v.t||cS(w,S,v.t)){var j=v.o(w,S);if(j&&j[0]){w=w.substring(j[0].length);var x=v.i(j,b,S);S.prevCapture+=j[0],x.type||(x.type=g),E.push(x);break}O++}else O++}return S.prevCapture="",E}return p.sort(function(w,S){return f[w].u-f[S].u||(w<S?-1:1)}),function(w,S){return b((function(E){return E.replace(C1,`
|
|
25
|
+
`).replace(T1,"").replace(W1," ")})(w),S)}})(d),y=(function(f,p,b,w,S){function E(O){return Array.isArray(O)?O.map(g=>"text"in g?g.text:""):"text"in O?O.text:""}return function O(g,v={}){const j=(v.renderDepth||0)+1;if(j>2500)return E(g);v.renderDepth=j;try{if(Array.isArray(g)){const A=v.key,C=[];let _=!1;for(let I=0;I<g.length;I++){v.key=I;const T=O(g[I],v),k=nl(T);k&&_?C[C.length-1]+=T:T!==null&&C.push(T),_=k}return v.key=A,v.renderDepth=j-1,C}const x=(function(A,C,_){const I=()=>(function(T,k,N,F,M,z,V){switch(T.type){case"0":{const D={key:N.key};return T.alert&&(D.className="markdown-alert-"+z(T.alert.toLowerCase(),qn),T.children.unshift({attrs:{},children:[{type:"27",text:T.alert}],noInnerParse:!0,type:"11",tag:"header"})),F("blockquote",D,k(T.children,N))}case"1":return F("br",{key:N.key});case"2":return F("hr",{key:N.key});case"3":return F("pre",{key:N.key},F("code",tt({},T.attrs,{className:T.lang?"lang-"+T.lang:""}),T.text));case"5":return F("code",{key:N.key},T.text);case"7":return F("a",{key:N.key,href:M(T.target,"a","href")},F("sup",{key:N.key},T.text));case"8":return F("input",{checked:T.completed,key:N.key,readOnly:!0,type:"checkbox"});case"9":return F("h"+T.level,{id:T.id,key:N.key},k(T.children,N));case"11":return F(T.tag,tt({key:N.key},T.attrs),T.text||(T.children?k(T.children,N):""));case"13":return F(T.tag,tt({},T.attrs,{key:N.key}));case"14":return F("img",{key:N.key,alt:T.alt||void 0,title:T.title||void 0,src:M(T.target,"img","src")});case"15":return F("a",{key:N.key,href:M(T.target,"a","href"),title:T.title},k(T.children,N));case"23":return V[T.ref]?F("img",{key:N.key,alt:T.alt,src:M(V[T.ref].target,"img","src"),title:V[T.ref].title}):null;case"24":return V[T.ref]?F("a",{key:N.key,href:M(V[T.ref].target,"a","href"),title:V[T.ref].title},k(T.children,N)):F("span",{key:N.key},T.fallbackChildren);case"25":{const D=T;return F("table",{key:N.key},F("thead",null,F("tr",null,D.header.map(function(de,fe){return F("th",{key:fe,style:il(D,fe)},k(de,N))}))),F("tbody",null,D.cells.map(function(de,fe){return F("tr",{key:fe},de.map(function(Se,q){return F("td",{key:q,style:il(D,q)},k(Se,N))}))})))}case"27":return T.text;case"34":return F(T.tag,{key:N.key},k(T.children,N));case"20":case"30":return F(T.ordered?"ol":"ul",{key:N.key,start:T.type==="20"?T.start:void 0},T.items.map(function(D,de){return F("li",{key:de},k(D,N))}));case"19":return`
|
|
26
|
+
`;case"21":return F("p",{key:N.key},k(T.children,N));default:return null}})(A,C,_,p,b,w,S);return f?f(I,A,C,_):I()})(g,O,v);return v.renderDepth=j-1,x}catch(x){if(x instanceof RangeError&&x.message.includes("Maximum call stack"))return E(g);throw x}}})(t.renderRule,a,r,n,u);return l(e)}const Ar=e=>{let{children:t,options:n}=e,r=(function(i,s){if(i==null)return{};var o={};for(var a in i)if({}.hasOwnProperty.call(i,a)){if(s.indexOf(a)!==-1)continue;o[a]=i[a]}return o})(e,g1);return bS(t??"",tt({},n,{wrapperProps:tt({},n?.wrapperProps,r)}))},vu=Symbol("remove-this-key"),al=Symbol("reset");function xS(e,t){return Array.isArray(e.required)&&e.required.indexOf(t)!==-1}function vS(e,t){switch(t){case"array":return[];case"boolean":return!1;case"null":return null;case"number":return 0;case"object":return{};default:return e(ee.NewStringDefault)}}function SS(e){const{fieldPathId:t,schema:n,registry:r,uiSchema:i,errorSchema:s,formData:o,onChange:a,onBlur:l,onFocus:c,disabled:u,readonly:d,required:m,hideError:y,propertyName:f,handleKeyRename:p,handleRemoveProperty:b,addedByAdditionalProperties:w}=e,[S,E]=P.useState(!1),{globalFormOptions:O,fields:g}=r,{SchemaField:v}=g,j=sn(We(f,O,t.path)),x=P.useCallback((I,T,k,N)=>{I===void 0&&w&&(I=""),a(I,T,k,N)},[a,w]),A=P.useCallback(I=>{f!==I&&E(!0),p(f,I)},[f,p]),C=P.useCallback(I=>{const{target:{value:T}}=I;A(T)},[A]),_=P.useCallback(()=>{b(f)},[f,b]);return h.jsx(v,{name:f,required:m,schema:n,uiSchema:i,errorSchema:s,fieldPathId:j,formData:o,wasPropertyKeyModified:S,onKeyRename:A,onKeyRenameBlur:C,onRemoveProperty:_,onChange:x,onBlur:l,onFocus:c,registry:r,disabled:u,readonly:d,hideError:y})}function wS(e){const{schema:t,uiSchema:n={},formData:r,errorSchema:i,fieldPathId:s,name:o,required:a=!1,disabled:l,readonly:c,hideError:u,onBlur:d,onFocus:m,onChange:y,registry:f,title:p}=e,{fields:b,schemaUtils:w,translateString:S,globalUiOptions:E}=f,{OptionalDataControlsField:O}=b,g=P.useRef(r);g.current=r;const v=w.retrieveSchema(t,r,!0),j=H(n,E),{properties:x={}}=v,A=e.childFieldPathId??s,C=P.useRef({previousKey:"",currentKey:void 0}),_=j.title??v.title??p??o,I=j.description??v.description,T=Er(f,v,a,n),k=kn(r);let N=[];const F=P.useCallback((q,J)=>{const{duplicateKeySuffixSeparator:G="-"}=H(n,E);let Z=0,X=q;for(;ie(J,X);)X=`${q}${G}${++Z}`;return X},[n,E]),M=P.useCallback(()=>{if(!(v.additionalProperties||v.patternProperties))return;const{translateString:q}=f,J={...r},G=F("newKey",J);if(v.patternProperties)he(J,G,null);else{let Z,X,B;if(le(v.additionalProperties)){Z=v.additionalProperties.type,X=v.additionalProperties.const,B=v.additionalProperties.default;let oe=v.additionalProperties;if(pe in oe){const{schemaUtils:je}=f;oe=je.retrieveSchema({[pe]:oe[pe]},r),Z=oe.type,X=oe.const,B=oe.default}!Z&&(ae in oe||Q in oe)&&(Z="object")}const se=X??B??vS(q,Z);he(J,G,se)}C.current.previousKey===G&&(C.current.currentKey=G,C.current.previousKey=F(G,J)),y(J,A.path)},[r,y,f,A,F,v]),z=P.useCallback((q,J)=>{if(q!==J){const G=g.current,Z=F(J,G),X={...G},B={[q]:Z},se=Object.keys(X).map(je=>({[B[je]||je]:X[je]})),oe=Object.assign({},...se);g.current=oe,q!==C.current.currentKey&&(C.current.previousKey=q),C.current.currentKey=Z,y(oe,A.path)}},[y,A,F]),V=P.useCallback(q=>{y(vu,[...A.path,q])},[y,A]),D=P.useCallback(q=>C.current.currentKey===q?C.current.previousKey:q,[]);if(!T||k)try{const q=Object.keys(x);N=pv(q,j.order)}catch(q){return h.jsxs("div",{children:[h.jsx("p",{className:"rjsf-config-error",style:{color:"red"},children:h.jsx(Ar,{options:{disableParsingRawHTML:!0},children:S(ee.InvalidObjectField,[o||"root",q.message])})}),h.jsx("pre",{children:JSON.stringify(v)})]})}const de=K("ObjectFieldTemplate",f,j),fe=T?h.jsx(O,{...e,fieldPathId:A,schema:v}):void 0,Se={title:j.label===!1?"":_,description:j.label===!1?void 0:I,properties:N.map(q=>{const J=ie(v,[ue,q,mt]),G=J?n.additionalProperties:n[q],Z=H(G).widget==="hidden";return{content:h.jsx(SS,{propertyName:q,required:xS(v,q),schema:R(v,[ue,q],{}),uiSchema:G,errorSchema:R(i,[q]),fieldPathId:A,formData:R(r,[q]),handleKeyRename:z,handleRemoveProperty:V,addedByAdditionalProperties:J,onChange:y,onBlur:d,onFocus:m,registry:f,disabled:l,readonly:c,hideError:u},D(q)),name:q,readonly:c,disabled:l,required:a,hidden:Z}}),readonly:c,disabled:l,required:a,fieldPathId:s,uiSchema:n,errorSchema:i,schema:v,formData:r,registry:f,optionalDataControl:fe,className:T?"rjsf-optional-object-field":void 0};return h.jsx(de,{...Se,onAddProperty:M})}function jS(e){const{schema:t,uiSchema:n={},formData:r,disabled:i=!1,readonly:s=!1,onChange:o,errorSchema:a,fieldPathId:l,registry:c}=e,{globalUiOptions:u={},schemaUtils:d,translateString:m}=c,y=H(n,u),f=K("OptionalDataControlsTemplate",c,y),p=kn(r);let b,w,S,E;if(i||s)b=Mi(l,"Msg"),w=p?void 0:m(ee.OptionalObjectEmptyMsg);else{const O=p?ee.OptionalObjectRemove:ee.OptionalObjectAdd;w=m(O),p?(b=Mi(l,"Remove"),E=()=>o(void 0,l.path,a)):(b=Mi(l,"Add"),S=()=>{let g=d.getDefaultFormState(t,r,"excludeObjectChildren");g===void 0&&(g=qe(t)==="array"?[]:{}),o(g,l.path,a)})}return w&&h.jsx(f,{id:b,registry:c,schema:t,uiSchema:n,label:w,onAddClick:S,onRemoveClick:E})}const OS={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function ES(e,t,n){const r=t.field,{fields:i}=n;if(typeof r=="function")return r;if(typeof r=="string"&&r in i)return i[r];const s=qe(e),o=Array.isArray(s)?s[0]:s||"",a=e.$id;let l=OS[o];return a&&a in i&&(l=a),!l&&(e.anyOf||e.oneOf)?()=>null:l in i?i[l]:i.FallbackField}function AS(e){const{schema:t,fieldPathId:n,uiSchema:r,formData:i,errorSchema:s,name:o,onChange:a,onKeyRename:l,onKeyRenameBlur:c,onRemoveProperty:u,required:d=!1,registry:m,wasPropertyKeyModified:y=!1}=e,{schemaUtils:f,globalFormOptions:p,globalUiOptions:b,fields:w}=m,{AnyOfField:S,OneOfField:E}=w,O=gv(t,r,m),g=H(O,b),v=K("FieldTemplate",m,g),j=K("DescriptionFieldTemplate",m,g),x=K("FieldHelpTemplate",m,g),A=K("FieldErrorTemplate",m,g),C=f.retrieveSchema(t,i),_=n[ge],I=P.useCallback((Rn,Dn,Ut,dd)=>a(Rn,Dn,Ut,dd||_),[_,a]),T=ES(C,g,m),k=!!(g.disabled??e.disabled),N=!!(g.readonly??(e.readonly||e.schema.readOnly||C.readOnly)),F=g.hideError,M=F===void 0?e.hideError:!!F,z=!!(g.autofocus??e.autofocus);if(Object.keys(C).length===0)return null;let V=f.getDisplayLabel(C,O,b);const D=g.field&&g.fieldReplacesAnyOrOneOf===!0;let de,fe,Se={fieldPathId:n};if((ae in C||Q in C)&&!D&&!f.isSelect(C)){C[ae]?(de=S,fe=C[ae].map(Ut=>f.retrieveSchema(le(Ut)?Ut:{},i))):C[Q]&&(de=E,fe=C[Q].map(Ut=>f.retrieveSchema(le(Ut)?Ut:{},i)));const Rn=Er(m,C,d,O),Dn=kn(i);V=V&&(!Rn||Dn),Se={childFieldPathId:n,fieldPathId:We("XxxOf",p,n)}}const{__errors:q,...J}=s||{},G=wn(O,["ui:classNames","classNames","ui:style"]);It in G&&(G[It]=wn(G[It],["classNames","style"]));const Z=h.jsx(T,{...e,onChange:I,...Se,schema:C,uiSchema:G,disabled:k,readonly:N,hideError:M,autofocus:z,errorSchema:J,rawErrors:q}),X=n[ge];let B;y?B=o:B=mt in C?o:g.title||e.schema.title||C.title||e.title||o;const se=g.description||e.schema.description||C.description||"",oe=g.help,je=g.widget==="hidden",Oe=["rjsf-field",`rjsf-field-${qe(C)}`];!M&&q&&q.length>0&&Oe.push("rjsf-field-error"),g.classNames&&Oe.push(g.classNames);const xe=h.jsx(x,{help:oe,fieldPathId:n,schema:C,uiSchema:O,hasErrors:!M&&q&&q.length>0,registry:m}),Me=M||de&&!f.isSelect(C)?void 0:h.jsx(A,{errors:q,errorSchema:s,fieldPathId:n,schema:C,uiSchema:O,registry:m}),St={description:h.jsx(j,{id:rn(X),description:se,schema:C,uiSchema:O,registry:m}),rawDescription:se,help:xe,rawHelp:typeof oe=="string"?oe:void 0,errors:Me,rawErrors:M?void 0:q,fieldPathId:n,id:X,label:B,hidden:je,onChange:a,onKeyRename:l,onKeyRenameBlur:c,onRemoveProperty:u,required:d,disabled:k,readonly:N,hideError:M,displayLabel:V,classNames:Oe.join(" ").trim(),style:g.style,formData:i,schema:C,uiSchema:O,registry:m};return h.jsx(v,{...St,children:h.jsxs(h.Fragment,{children:[Z,de&&h.jsx(de,{name:o,disabled:k,readonly:N,hideError:M,errorSchema:s,formData:i,fieldPathId:n,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:fe,registry:m,required:d,schema:C,uiSchema:O})]})})}class CS extends P.Component{shouldComponentUpdate(t){const{registry:{globalFormOptions:n}}=this.props,{experimental_componentUpdateStrategy:r="customDeep"}=n;return iu(this,t,this.state,r)}render(){return h.jsx(AS,{...this.props})}}function _S(e){const{schema:t,name:n,uiSchema:r,fieldPathId:i,formData:s,required:o,disabled:a=!1,readonly:l=!1,autofocus:c=!1,onChange:u,onBlur:d,onFocus:m,registry:y,rawErrors:f,hideError:p,title:b}=e,{title:w,format:S}=t,{widgets:E,schemaUtils:O,globalUiOptions:g}=y,v=O.isSelect(t)?En(t,r):void 0;let j=v?"select":"text";S&&fv(t,S,E)&&(j=S);const{widget:x=j,placeholder:A="",title:C,..._}=H(r),I=O.getDisplayLabel(t,r,g),T=C??b??w??n,k=ot(t,x,E),N=P.useCallback((F,M,z)=>u(F,i.path,M,z),[u,i]);return h.jsx(k,{options:{..._,enumOptions:v},schema:t,uiSchema:r,id:i.$id,name:n,label:T,hideLabel:!I,hideError:p,value:s,onChange:N,onBlur:d,onFocus:m,required:o,disabled:a,readonly:l,autofocus:c,registry:y,placeholder:A,rawErrors:f,htmlName:i.name})}function IS(e){const{formData:t,onChange:n,fieldPathId:r}=e;return P.useEffect(()=>{t===void 0&&n(null,r.path)},[r,t,n]),null}function TS(){return{AnyOfField:Va,ArrayField:Mv,BooleanField:Uv,FallbackField:Vv,LayoutGridField:fo,LayoutHeaderField:c1,LayoutMultiSchemaField:u1,NumberField:m1,ObjectField:wS,OneOfField:Va,OptionalDataControlsField:jS,SchemaField:CS,StringField:_S,NullField:IS}}function PS(e){const{fieldPathId:t,description:n,registry:r,schema:i,uiSchema:s}=e,o=H(s,r.globalUiOptions),{label:a=!0}=o;if(!n||!a)return null;const l=K("DescriptionFieldTemplate",r,o);return h.jsx(l,{id:rn(t),description:n,schema:i,uiSchema:s,registry:r})}function NS(e){const{children:t,className:n,buttonsProps:r,displayLabel:i,hasDescription:s,hasToolbar:o,registry:a,uiSchema:l}=e,c=H(l),u=K("ArrayFieldItemButtonsTemplate",a,c),d={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"},m=s?31:9,y={display:"flex",alignItems:i?"center":"baseline"},f={display:"flex",justifyContent:"flex-end",marginTop:i?`${m}px`:0};return h.jsxs("div",{className:n,style:y,children:[h.jsx("div",{className:o?"col-xs-9 col-md-10 col-xl-11":"col-xs-12",children:t}),o&&h.jsx("div",{className:"col-xs-3 col-md-2 col-xl-1 array-item-toolbox",children:h.jsx("div",{className:"btn-group",style:f,children:h.jsx(u,{...r,style:d})})})]})}function kS(e){const{disabled:t,hasCopy:n,hasMoveDown:r,hasMoveUp:i,hasRemove:s,fieldPathId:o,onCopyItem:a,onRemoveItem:l,onMoveDownItem:c,onMoveUpItem:u,readonly:d,registry:m,uiSchema:y}=e,{CopyButton:f,MoveDownButton:p,MoveUpButton:b,RemoveButton:w}=m.templates.ButtonTemplates;return h.jsxs(h.Fragment,{children:[(i||r)&&h.jsx(b,{id:it(o,"moveUp"),className:"rjsf-array-item-move-up",disabled:t||d||!i,onClick:u,uiSchema:y,registry:m}),(i||r)&&h.jsx(p,{id:it(o,"moveDown"),className:"rjsf-array-item-move-down",disabled:t||d||!r,onClick:c,uiSchema:y,registry:m}),n&&h.jsx(f,{id:it(o,"copy"),className:"rjsf-array-item-copy",disabled:t||d,onClick:a,uiSchema:y,registry:m}),s&&h.jsx(w,{id:it(o,"remove"),className:"rjsf-array-item-remove",disabled:t||d,onClick:l,uiSchema:y,registry:m})]})}function FS(e){const{canAdd:t,className:n,disabled:r,fieldPathId:i,uiSchema:s,items:o,optionalDataControl:a,onAddClick:l,readonly:c,registry:u,required:d,schema:m,title:y}=e,f=H(s),p=K("ArrayFieldDescriptionTemplate",u,f),b=K("ArrayFieldTitleTemplate",u,f),w=!c&&!r,{ButtonTemplates:{AddButton:S}}=u.templates;return h.jsxs("fieldset",{className:n,id:i.$id,children:[h.jsx(b,{fieldPathId:i,title:f.title||y,required:d,schema:m,uiSchema:s,registry:u,optionalDataControl:w?a:void 0}),h.jsx(p,{fieldPathId:i,description:f.description||m.description,schema:m,uiSchema:s,registry:u}),w?void 0:a,h.jsx("div",{className:"row array-item-list",children:o}),t&&h.jsx(S,{id:it(i,"add"),className:"rjsf-array-item-add",onClick:l,disabled:r||c,uiSchema:s,registry:u})]})}function $S(e){const{fieldPathId:t,title:n,schema:r,uiSchema:i,required:s,registry:o,optionalDataControl:a}=e,l=H(i,o.globalUiOptions),{label:c=!0}=l;if(!n||!c)return null;const u=K("TitleFieldTemplate",o,l);return h.jsx(u,{id:pi(t),title:n,required:s,schema:r,uiSchema:i,registry:o,optionalDataControl:a})}function Su(e){const{id:t,schema:n}=e,{examples:r,default:i}=n;return Array.isArray(r)?h.jsx("datalist",{id:hi(t),children:r.concat(i!==void 0&&!r.map(String).includes(String(i))?[i]:[]).map(s=>h.jsx("option",{value:s},String(s)))},`datalist_${t}`):null}function RS(e){const{id:t,name:n,htmlName:r,value:i,readonly:s,disabled:o,autofocus:a,onBlur:l,onFocus:c,onChange:u,onChangeOverride:d,options:m,schema:y,uiSchema:f,registry:p,rawErrors:b,type:w,hideLabel:S,hideError:E,...O}=e,{ClearButton:g}=p.templates.ButtonTemplates;if(!t)throw console.log("No id for",e),new Error(`no id for props ${JSON.stringify(e)}`);const v={...O,...eu(y,w,m)};let j;v.type==="number"||v.type==="integer"?j=i||i===0?i:"":j=i??"";const x=P.useCallback(({target:{value:I}})=>u(I===""?m.emptyValue:I),[u,m]),A=P.useCallback(({target:I})=>l(t,I&&I.value),[l,t]),C=P.useCallback(({target:I})=>c(t,I&&I.value),[c,t]),_=P.useCallback(I=>{I.preventDefault(),I.stopPropagation(),u(m.emptyValue??"")},[u,m.emptyValue]);return h.jsxs(h.Fragment,{children:[h.jsx("input",{id:t,name:r||t,className:"form-control",readOnly:s,disabled:o,autoFocus:a,value:j,...v,list:y.examples?hi(t):void 0,onChange:d||x,onBlur:A,onFocus:C,"aria-describedby":De(t,!!y.examples)}),m.allowClearTextInputs&&!s&&!o&&j&&h.jsx(g,{registry:p,onClick:_}),h.jsx(Su,{id:t,schema:y})]})}function DS({uiSchema:e}){const{submitText:t,norender:n,props:r={}}=tu(e);return n?null:h.jsx("div",{children:h.jsx("button",{type:"submit",...r,className:`btn btn-info ${r.className||""}`,children:t})})}function Dt(e){const{iconType:t="default",icon:n,className:r,uiSchema:i,registry:s,...o}=e;return h.jsx("button",{type:"button",className:`btn btn-${t} ${r}`,...o,children:h.jsx("i",{className:`glyphicon glyphicon-${n}`})})}function MS(e){const{registry:{translateString:t}}=e;return h.jsx(Dt,{title:t(ee.CopyButton),...e,icon:"copy"})}function US(e){const{registry:{translateString:t}}=e;return h.jsx(Dt,{title:t(ee.MoveDownButton),...e,icon:"arrow-down"})}function LS(e){const{registry:{translateString:t}}=e;return h.jsx(Dt,{title:t(ee.MoveUpButton),...e,icon:"arrow-up"})}function BS(e){const{registry:{translateString:t}}=e;return h.jsx(Dt,{title:t(ee.RemoveButton),...e,iconType:"danger",icon:"remove"})}function zS({id:e,className:t,onClick:n,disabled:r,registry:i,...s}){const{translateString:o}=i;return h.jsx(Dt,{id:e,iconType:"default",icon:"remove",className:"btn-clear col-xs-12",title:o(ee.ClearButton),onClick:n,disabled:r,registry:i,...s})}function VS({id:e,className:t,onClick:n,disabled:r,registry:i}){const{translateString:s}=i;return h.jsx("div",{className:"row",children:h.jsx("p",{className:`col-xs-4 col-sm-2 col-lg-1 col-xs-offset-8 col-sm-offset-10 col-lg-offset-11 text-right ${t}`,children:h.jsx(Dt,{id:e,iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:s(ee.AddButton),onClick:n,disabled:r,registry:i})})})}function qS(){return{SubmitButton:DS,AddButton:VS,CopyButton:MS,MoveDownButton:US,MoveUpButton:LS,RemoveButton:BS,ClearButton:zS}}const wu=so();function go({description:e,registry:t,uiSchema:n={}}){const{globalUiOptions:r}=t;return H(n,r).enableMarkdownInDescription&&typeof e=="string"?h.jsx(Ar,{options:{disableParsingRawHTML:!0},"data-testid":wu.markdown,children:e}):e}go.TEST_IDS=wu;function WS(e){const{id:t,description:n,registry:r,uiSchema:i}=e;return n?h.jsx("div",{id:t,className:"field-description",children:h.jsx(go,{description:n,registry:r,uiSchema:i})}):null}function HS({errors:e,registry:t}){const{translateString:n}=t;return h.jsxs("div",{className:"panel panel-danger errors",children:[h.jsx("div",{className:"panel-heading",children:h.jsx("h3",{className:"panel-title",children:n(ee.ErrorsLabel)})}),h.jsx("ul",{className:"list-group",children:e.map((r,i)=>h.jsx("li",{className:"list-group-item text-danger",children:r.stack},i))})]})}function GS(e){const{schema:t,registry:n,typeSelector:r,schemaField:i}=e,s=K("MultiSchemaFieldTemplate",n);return h.jsx(s,{selector:r,optionSchemaField:i,schema:t,registry:n})}const KS="*";function ju(e){const{label:t,required:n,id:r}=e;return t?h.jsxs("label",{className:"control-label",htmlFor:r,children:[t,n&&h.jsx("span",{className:"required",children:KS})]}):null}function YS(e){const{id:t,label:n,children:r,errors:i,help:s,description:o,hidden:a,required:l,displayLabel:c,registry:u,uiSchema:d}=e,m=H(d),y=K("WrapIfAdditionalTemplate",u,m);if(a)return h.jsx("div",{className:"hidden",children:r});const f=m.widget==="checkbox";return h.jsxs(y,{...e,children:[c&&!f&&h.jsx(ju,{label:n,required:l,id:t}),c&&o?o:null,r,i,s]})}function JS(e){const{errors:t=[],fieldPathId:n}=e;if(t.length===0)return null;const r=oo(n);return h.jsx("div",{children:h.jsx("ul",{id:r,className:"error-detail bs-callout bs-callout-info",children:t.filter(i=>!!i).map((i,s)=>h.jsx("li",{className:"text-danger",children:i},s))})})}const Ou=so();function yo({help:e,registry:t,uiSchema:n={}}){const{globalUiOptions:r}=t;return H(n,r).enableMarkdownInHelp&&typeof e=="string"?h.jsx(Ar,{options:{disableParsingRawHTML:!0},"data-testid":Ou.markdown,children:e}):e}yo.TEST_IDS=Ou;function ZS(e){const{fieldPathId:t,help:n,uiSchema:r,registry:i}=e;return n?h.jsx("div",{id:ao(t),className:"help-block",children:h.jsx(yo,{help:n,registry:i,uiSchema:r})}):null}function XS(e){const{children:t,column:n,className:r,...i}=e;return h.jsx("div",{className:r,...i,children:t})}function QS(e){const{selector:t,optionSchemaField:n}=e;return h.jsxs("div",{className:"panel panel-default panel-body",children:[h.jsx("div",{className:"form-group",children:t}),n]})}function ew(e){const{className:t,description:n,disabled:r,formData:i,fieldPathId:s,onAddProperty:o,optionalDataControl:a,properties:l,readonly:c,registry:u,required:d,schema:m,title:y,uiSchema:f}=e,p=H(f),b=K("TitleFieldTemplate",u,p),w=K("DescriptionFieldTemplate",u,p);if((m.oneOf||m.anyOf)&&!m.properties&&l.length===0)return null;const E=!c&&!r,{ButtonTemplates:{AddButton:O}}=u.templates;return h.jsxs("fieldset",{className:t,id:s.$id,children:[y&&h.jsx(b,{id:pi(s),title:y,required:d,schema:m,uiSchema:f,registry:u,optionalDataControl:E?a:void 0}),n&&h.jsx(w,{id:rn(s),description:n,schema:m,uiSchema:f,registry:u}),E?void 0:a,l.map(g=>g.content),Fl(m,f,i)&&h.jsx(O,{id:it(s,"add"),className:"rjsf-object-property-expand",onClick:o,disabled:r||c,uiSchema:f,registry:u})]})}function tw(e){const{id:t,registry:n,label:r,onAddClick:i,onRemoveClick:s}=e;return i?h.jsx(Dt,{id:t,registry:n,icon:"plus",className:"rjsf-add-optional-data btn-sm",onClick:i,title:r}):s?h.jsx(Dt,{id:t,registry:n,icon:"remove",className:"rjsf-remove-optional-data btn-sm",onClick:s,title:r}):h.jsx("em",{id:t,children:r})}const nw="*";function rw(e){const{id:t,title:n,required:r,optionalDataControl:i}=e;return h.jsxs("legend",{id:t,children:[n,r&&h.jsx("span",{className:"required",children:nw}),i&&h.jsx("span",{className:"pull-right",style:{marginBottom:"2px"},children:i})]})}function iw(e){const{schema:t,fieldPathId:n,reason:r,registry:i}=e,{translateString:s}=i;let o=ee.UnsupportedField;const a=[];return n&&n.$id&&(o=ee.UnsupportedFieldWithId,a.push(n.$id)),r&&(o=o===ee.UnsupportedField?ee.UnsupportedFieldWithReason:ee.UnsupportedFieldWithIdAndReason,a.push(r)),h.jsxs("div",{className:"unsupported-field",children:[h.jsx("p",{children:h.jsx(Ar,{options:{disableParsingRawHTML:!0},children:s(o,a)})}),t&&h.jsx("pre",{children:JSON.stringify(t,null,2)})]})}function sw(e){const{id:t,classNames:n,style:r,disabled:i,displayLabel:s,label:o,onKeyRenameBlur:a,onRemoveProperty:l,rawDescription:c,readonly:u,required:d,schema:m,hideError:y,rawErrors:f,children:p,uiSchema:b,registry:w}=e,{templates:S,translateString:E}=w,{RemoveButton:O}=S.ButtonTemplates,g=E(ee.KeyLabel,[o]),v=mt in m,j=!!c,x=["form-group",n];!y&&f&&f.length>0&&x.push("has-error has-danger");const A=x.join(" ").trim();if(!v)return h.jsx("div",{className:A,style:r,children:p});const C=j?46:26;return h.jsx("div",{className:A,style:r,children:h.jsxs("div",{className:"row",children:[h.jsx("div",{className:"col-xs-5 form-additional",children:h.jsxs("div",{className:"form-group",children:[s&&h.jsx(ju,{label:g,required:d,id:`${t}-key`}),s&&c&&h.jsx("div",{children:" "}),h.jsx("input",{className:"form-control",type:"text",id:`${t}-key`,onBlur:a,defaultValue:o},o)]})}),h.jsx("div",{className:"form-additional form-group col-xs-5",children:p}),h.jsx("div",{className:"col-xs-2",style:{marginTop:s?`${C}px`:void 0},children:h.jsx(O,{id:it(t,"remove"),className:"rjsf-object-property-remove btn-block",style:{border:"0"},disabled:i||u,onClick:l,uiSchema:b,registry:w})})]})})}function ow(){return{ArrayFieldDescriptionTemplate:PS,ArrayFieldItemTemplate:NS,ArrayFieldItemButtonsTemplate:kS,ArrayFieldTemplate:FS,ArrayFieldTitleTemplate:$S,ButtonTemplates:qS(),BaseInputTemplate:RS,DescriptionFieldTemplate:WS,ErrorListTemplate:HS,FallbackFieldTemplate:GS,FieldTemplate:YS,FieldErrorTemplate:JS,FieldHelpTemplate:ZS,GridTemplate:XS,MultiSchemaFieldTemplate:QS,ObjectFieldTemplate:ew,OptionalDataControlsTemplate:tw,TitleFieldTemplate:rw,UnsupportedFieldTemplate:iw,WrapIfAdditionalTemplate:sw}}function aw(e){const{disabled:t=!1,readonly:n=!1,autofocus:r=!1,options:i,id:s,name:o,registry:a,onBlur:l,onFocus:c}=e,{translateString:u}=a,{elements:d,handleChange:m,handleClear:y,handleSetNow:f}=vv(e);return h.jsxs("ul",{className:"list-inline",children:[d.map((p,b)=>h.jsx("li",{className:"list-inline-item",children:h.jsx(xv,{rootId:s,name:o,select:m,...p,disabled:t,readonly:n,registry:a,onBlur:l,onFocus:c,autofocus:r&&b===0})},b)),(i.hideNowButton!=="undefined"?!i.hideNowButton:!0)&&h.jsx("li",{className:"list-inline-item",children:h.jsx("a",{href:"#",className:"btn btn-info btn-now",onClick:f,children:u(ee.NowLabel)})}),(i.hideClearButton!=="undefined"?!i.hideClearButton:!0)&&h.jsx("li",{className:"list-inline-item",children:h.jsx("a",{href:"#",className:"btn btn-warning btn-clear",onClick:y,children:u(ee.ClearLabel)})})]})}function lw({time:e=!0,...t}){const{AltDateWidget:n}=t.registry.widgets;return h.jsx(n,{time:e,...t})}function cw({schema:e,uiSchema:t,options:n,id:r,value:i,disabled:s,readonly:o,label:a,hideLabel:l,autofocus:c=!1,onBlur:u,onFocus:d,onChange:m,registry:y,htmlName:f}){const p=K("DescriptionFieldTemplate",y,n),b=ir(e),w=P.useCallback(j=>m(j.target.checked),[m]),S=P.useCallback(j=>u(r,j.target.checked),[u,r]),E=P.useCallback(j=>d(r,j.target.checked),[d,r]),v=H(t).widget==="checkbox"?void 0:n.description??e.description;return h.jsxs("div",{className:`checkbox ${s||o?"disabled":""}`,children:[!l&&v&&h.jsx(p,{id:rn(r),description:v,schema:e,uiSchema:t,registry:y}),h.jsxs("label",{children:[h.jsx("input",{type:"checkbox",id:r,name:f||r,checked:typeof i>"u"?!1:i,required:b,disabled:s||o,autoFocus:c,onChange:w,onBlur:S,onFocus:E,"aria-describedby":De(r)}),ru(h.jsx("span",{children:a}),l)]})]})}function uw({id:e,disabled:t,options:n,value:r,autofocus:i=!1,readonly:s,onChange:o,onBlur:a,onFocus:l,htmlName:c}){const{inline:u=!1,enumOptions:d,enumDisabled:m,emptyValue:y}=n,f=Nn(n),p=Array.isArray(r)?r:[r],b=P.useCallback(({target:S})=>a(e,Fe(S&&S.value,d,f,y)),[a,e,d,y,f]),w=P.useCallback(({target:S})=>l(e,Fe(S&&S.value,d,f,y)),[l,e,d,y,f]);return h.jsx("div",{className:"checkboxes",id:e,children:Array.isArray(d)&&d.map((S,E)=>{const O=jr(S.value,p),g=Array.isArray(m)&&m.indexOf(S.value)!==-1,v=t||g||s?"disabled":"",j=A=>{A.target.checked?o(Zc(E,p,d)):o(Yc(E,p,d))},x=h.jsxs("span",{children:[h.jsx("input",{type:"checkbox",id:qt(e,E),name:c||e,checked:O,value:Or(S.value,E,f),disabled:t||g||s,autoFocus:i&&E===0,onChange:j,onBlur:b,onFocus:w,"aria-describedby":De(e)}),h.jsx("span",{children:S.label})]});return u?h.jsx("label",{className:`checkbox-inline ${v}`,children:x},E):h.jsx("div",{className:`checkbox ${v}`,children:h.jsx("label",{children:x})},E)})})}function dw(e){const{disabled:t,readonly:n,options:r,registry:i}=e,s=K("BaseInputTemplate",i,r);return h.jsx(s,{type:"color",...e,disabled:t||n})}function fw(e){const{onChange:t,options:n,registry:r}=e,i=K("BaseInputTemplate",r,n),s=P.useCallback(o=>t(o||void 0),[t]);return h.jsx(i,{type:"date",...e,onChange:s})}function mw(e){const{onChange:t,value:n,options:r,registry:i}=e,s=K("BaseInputTemplate",i,r);return h.jsx(s,{type:"datetime-local",...e,value:Ev(n),onChange:o=>t(hv(o))})}function hw(e){const{options:t,registry:n}=e,r=K("BaseInputTemplate",n,t);return h.jsx(r,{type:"email",...e})}function pw({fileInfo:e,registry:t}){const{translateString:n}=t,{dataURL:r,type:i,name:s}=e;return r?["image/jpeg","image/png"].includes(i)?h.jsx("img",{src:r,style:{maxWidth:"100%"},className:"file-preview"}):h.jsxs(h.Fragment,{children:[" ",h.jsx("a",{download:`preview-${s}`,href:r,className:"file-download",children:n(ee.PreviewLabel)})]}):null}function gw({filesInfo:e,registry:t,preview:n,onRemove:r,options:i}){if(e.length===0)return null;const{translateString:s}=t,{RemoveButton:o}=K("ButtonTemplates",t,i);return h.jsx("ul",{className:"file-info",children:e.map((a,l)=>{const{name:c,size:u,type:d}=a,m=()=>r(l);return h.jsxs("li",{children:[h.jsx(Ar,{children:s(ee.FilesInfo,[c,d,String(u)])}),n&&h.jsx(pw,{fileInfo:a,registry:t}),h.jsx(o,{onClick:m,registry:t})]},l)})})}function yw(e){const{disabled:t,readonly:n,required:r,multiple:i,onChange:s,value:o,options:a,registry:l}=e,{filesInfo:c,handleChange:u,handleRemove:d}=Ov(o,s,i),m=K("BaseInputTemplate",l,a),y=f=>{f.target.files&&u(f.target.files)};return h.jsxs("div",{children:[h.jsx(m,{...e,disabled:t||n,type:"file",required:o?!1:r,onChangeOverride:y,value:"",accept:a.accept?String(a.accept):void 0}),h.jsx(gw,{filesInfo:c,onRemove:d,registry:l,preview:a.filePreview,options:a})]})}function bw({id:e,value:t,htmlName:n}){return h.jsx("input",{type:"hidden",id:e,name:n||e,value:typeof t>"u"?"":t})}function xw(e){const{options:t,registry:n}=e,r=K("BaseInputTemplate",n,t);return h.jsx(r,{type:"password",...e})}function vw({options:e,value:t,required:n,disabled:r,readonly:i,autofocus:s=!1,onBlur:o,onFocus:a,onChange:l,id:c,htmlName:u}){const{enumOptions:d,enumDisabled:m,inline:y,emptyValue:f}=e,p=Nn(e),b=P.useCallback(({target:S})=>o(c,Fe(S&&S.value,d,p,f)),[o,d,f,c,p]),w=P.useCallback(({target:S})=>a(c,Fe(S&&S.value,d,p,f)),[a,d,f,c,p]);return h.jsx("div",{className:"field-radio-group",id:c,role:"radiogroup",children:Array.isArray(d)&&d.map((S,E)=>{const O=jr(S.value,t),g=Array.isArray(m)&&m.indexOf(S.value)!==-1,v=r||g||i?"disabled":"",j=()=>l(S.value),x=h.jsxs("span",{children:[h.jsx("input",{type:"radio",id:qt(c,E),checked:O,name:u||c,required:n,value:Or(S.value,E,p),disabled:r||g||i,autoFocus:s&&E===0,onChange:j,onBlur:b,onFocus:w,"aria-describedby":De(c)}),h.jsx("span",{children:S.label})]});return y?h.jsx("label",{className:`radio-inline ${v}`,children:x},E):h.jsx("div",{className:`radio ${v}`,children:h.jsx("label",{children:x})},E)})})}function Sw(e){const{value:t,registry:{templates:{BaseInputTemplate:n}}}=e;return h.jsxs("div",{className:"field-range-wrapper",children:[h.jsx(n,{type:"range",...e}),h.jsx("span",{className:"range-view",children:t})]})}function ww({id:e,value:t,required:n,disabled:r,readonly:i,autofocus:s,onChange:o,onFocus:a,onBlur:l,schema:c,options:u,htmlName:d}){const{stars:m=5,shape:y="star"}=u,f=c.maximum?Math.min(c.maximum,5):Math.min(Math.max(m,1),5),p=c.minimum||0,b=P.useCallback(O=>{!r&&!i&&o(O)},[o,r,i]),w=P.useCallback(O=>{if(a){const g=Number(O.target.dataset.value);a(e,g)}},[a,e]),S=P.useCallback(O=>{if(l){const g=Number(O.target.dataset.value);l(e,g)}},[l,e]),E=O=>y==="heart"?O?"♥":"♡":O?"★":"☆";return h.jsx(h.Fragment,{children:h.jsxs("div",{className:"rating-widget",style:{display:"inline-flex",fontSize:"1.5rem",cursor:r||i?"default":"pointer"},children:[[...Array(f)].map((O,g)=>{const v=p+g,j=v<=t;return h.jsx("span",{onClick:()=>b(v),onFocus:w,onBlur:S,"data-value":v,tabIndex:r||i?-1:0,role:"radio","aria-checked":v===t,"aria-label":`${v} ${y==="heart"?"heart":"star"}${v===1?"":"s"}`,style:{color:j?"#FFD700":"#ccc",padding:"0 0.2rem",transition:"color 0.2s",userSelect:"none"},children:E(j)},g)}),h.jsx("input",{type:"hidden",id:e,name:d||e,value:t||"",required:n,disabled:r||i,"aria-hidden":"true"})]})})}function Wi(e,t){return t?Array.from(e.target.options).slice().filter(n=>n.selected).map(n=>n.value):e.target.value}function jw({schema:e,id:t,options:n,value:r,required:i,disabled:s,readonly:o,multiple:a=!1,autofocus:l=!1,onChange:c,onBlur:u,onFocus:d,placeholder:m,htmlName:y}){const{enumOptions:f,enumDisabled:p,emptyValue:b}=n,w=a?[]:"",S=Nn(n),E=P.useCallback(x=>{const A=Wi(x,a);return d(t,Fe(A,f,S,b))},[d,t,a,f,b,S]),O=P.useCallback(x=>{const A=Wi(x,a);return u(t,Fe(A,f,S,b))},[u,t,a,f,b,S]),g=P.useCallback(x=>{const A=Wi(x,a);return c(Fe(A,f,S,b))},[c,a,f,b,S]),v=Jc(r,f,a,S,w),j=!a&&e.default===void 0;return h.jsxs("select",{id:t,name:y||t,multiple:a,role:"combobox",className:"form-control",value:v,required:i,disabled:s||o,autoFocus:l,onBlur:O,onFocus:E,onChange:g,"aria-describedby":De(t),children:[j&&h.jsx("option",{value:"",children:m}),Array.isArray(f)&&f.map(({value:x,label:A},C)=>{const _=p&&p.indexOf(x)!==-1;return h.jsx("option",{value:Or(x,C,S),disabled:_,children:A},C)})]})}function Ow({id:e,options:t={},placeholder:n,value:r,required:i,disabled:s,readonly:o,autofocus:a=!1,onChange:l,onBlur:c,onFocus:u,htmlName:d}){const m=P.useCallback(({target:{value:p}})=>l(p===""?t.emptyValue:p),[l,t.emptyValue]),y=P.useCallback(({target:p})=>c(e,p&&p.value),[c,e]),f=P.useCallback(({target:p})=>u(e,p&&p.value),[e,u]);return h.jsx("textarea",{id:e,name:d||e,className:"form-control",value:r||"",placeholder:n,required:i,disabled:s,readOnly:o,autoFocus:a,rows:t.rows,onBlur:y,onFocus:f,onChange:m,"aria-describedby":De(e)})}function Ew(e){const{options:t,registry:n}=e,r=K("BaseInputTemplate",n,t);return h.jsx(r,{...e})}function Aw(e){const{onChange:t,options:n,registry:r}=e,i=K("BaseInputTemplate",r,n),s=P.useCallback(o=>t(o?`${o}:00`:void 0),[t]);return h.jsx(i,{type:"time",...e,onChange:s})}function Cw(e){const{options:t,registry:n}=e,r=K("BaseInputTemplate",n,t);return h.jsx(r,{type:"url",...e})}function _w(e){const{options:t,registry:n}=e,r=K("BaseInputTemplate",n,t);return h.jsx(r,{type:"number",...e})}function Iw(){return{AltDateWidget:aw,AltDateTimeWidget:lw,CheckboxWidget:cw,CheckboxesWidget:uw,ColorWidget:dw,DateWidget:fw,DateTimeWidget:mw,EmailWidget:hw,FileWidget:yw,HiddenWidget:bw,PasswordWidget:xw,RadioWidget:vw,RangeWidget:Sw,RatingWidget:ww,SelectWidget:jw,TextWidget:Ew,TextareaWidget:Ow,TimeWidget:Aw,UpDownWidget:_w,URLWidget:Cw}}function Tw(){return{fields:TS(),templates:ow(),widgets:Iw(),rootSchema:{},formContext:{},translateString:Z0,globalFormOptions:{idPrefix:Pl,idSeparator:Nl,useFallbackUiForUnsupportedType:!1}}}function an(e,t){return{...ro(e,["schema","uiSchema","fieldPathId","schemaUtils","formData","edit","errors","errorSchema"]),...t!==void 0&&{status:t}}}let Pw=class extends P.Component{formElement;pendingChanges=[];_isProcessingUserChange=!1;static getDerivedStateFromProps(t,n){if(t.extraErrors!==n._prevExtraErrors){const r={errors:n.schemaValidationErrors||[],errorSchema:n.schemaValidationErrorSchema||{}};let{errors:i,errorSchema:s}=r;return t.extraErrors&&({errors:i,errorSchema:s}=Zn(r,t.extraErrors)),n.customErrors&&({errors:i,errorSchema:s}=Zn({errors:i,errorSchema:s},n.customErrors.ErrorSchema,!0)),{_prevExtraErrors:t.extraErrors,errors:i,errorSchema:s}}return null}constructor(t){if(super(t),!t.validator)throw new Error("A validator is required for Form functionality to work");const{formData:n,initialFormData:r,onChange:i}=t,s=n??r;this.state={...this.getStateFromProps(t,s,void 0,void 0,void 0,!0),_prevExtraErrors:t.extraErrors},i&&!ce(this.state.formData,s)&&i(an(this.state)),this.formElement=P.createRef()}getSnapshotBeforeUpdate(t,n){if(!ce(this.props,t)){const r=Na(this.props.formData,t.formData),i=Na(this.props.formData,this.state.formData),s=!ce(t.schema,this.props.schema),o=r.length>0||!ce(t.formData,this.props.formData),a=i.length>0||!ce(this.state.formData,this.props.formData),l=this.getStateFromProps(this.props,this.props.formData,s||o?void 0:this.state.retrievedSchema,s,r,!a),c=!ce(l,n);return{nextState:l,shouldUpdate:c}}return{shouldUpdate:!1}}componentDidUpdate(t,n,r){if(r.shouldUpdate){const{nextState:i}=r,s=!ce(i.formData,this.props.formData),o=this._isProcessingUserChange;if(this._isProcessingUserChange=!1,o&&s)return;s&&!ce(i.formData,n.formData)&&this.props.onChange&&this.props.onChange(an(i)),this.setState(i)}}getStateFromProps(t,n,r,i=!1,s=[],o=!1){const a=this.state||{},l="schema"in t?t.schema:this.props.schema,c="validator"in t?t.validator:this.props.validator,u=("uiSchema"in t?t.uiSchema:this.props.uiSchema)||{},d=t.formData===void 0&&this.props.formData===void 0,m=typeof n<"u",y="liveValidate"in t?t.liveValidate:this.props.liveValidate,f=m&&!t.noValidate&&y,p="experimental_defaultFormStateBehavior"in t?t.experimental_defaultFormStateBehavior:this.props.experimental_defaultFormStateBehavior,b="experimental_customMergeAllOf"in t?t.experimental_customMergeAllOf:this.props.experimental_customMergeAllOf;let w=a.schemaUtils;(!w||w.doesSchemaUtilsDiffer(c,l,p,b))&&(w=K0(c,l,p,b));const S=w.getRootSchema();let E=n;n===al?E=void 0:n===void 0&&d&&(E=a.formData);const O=w.getDefaultFormState(S,E,!1,a.initialDefaultsGenerated),g=this.updateRetrievedSchema(r??w.retrieveSchema(S,O)),v=()=>t.noValidate||i?{errors:[],errorSchema:{}}:t.liveValidate?{errors:a.errors||[],errorSchema:a.errorSchema||{}}:{errors:a.schemaValidationErrors||[],errorSchema:a.schemaValidationErrorSchema||{}};let j,x,A=a.schemaValidationErrors,C=a.schemaValidationErrorSchema;if(f&&!o){const N=this.liveValidate(S,w,a.errorSchema,O,void 0,a.customErrors,r,r!==void 0);j=N.errors,x=N.errorSchema,A=N.schemaValidationErrors,C=N.schemaValidationErrorSchema}else{const N=v();if(j=N.errors,x=N.errorSchema,s.length>0&&!f){const M=s.reduce((z,V)=>(z[V]=void 0,z),{});x=C=Jt(N.errorSchema,M,"preventDuplicates")}const F=this.mergeErrors({errorSchema:x,errors:j},t.extraErrors,a.customErrors);j=F.errors,x=F.errorSchema}const _=this.getRegistry(t,S,w),I=ce(a.registry,_)?a.registry:_,T=a.fieldPathId&&a.fieldPathId?.[ge]===I.globalFormOptions.idPrefix?a.fieldPathId:We("",I.globalFormOptions);return{schemaUtils:w,schema:S,uiSchema:u,fieldPathId:T,formData:O,edit:m,errors:j,errorSchema:x,schemaValidationErrors:A,schemaValidationErrorSchema:C,retrievedSchema:g,initialDefaultsGenerated:!0,registry:I}}shouldComponentUpdate(t,n){const{experimental_componentUpdateStrategy:r="customDeep"}=this.props;return iu(this,t,n,r)}validate(t,n=this.state.schema,r,i){const s=r||this.state.schemaUtils,{customValidate:o,transformErrors:a,uiSchema:l}=this.props,c=i??s.retrieveSchema(n,t);return s.getValidator().validateFormData(t,c,o,a,l)}renderErrors(t){const{errors:n,errorSchema:r,schema:i,uiSchema:s}=this.state,o=H(s),a=K("ErrorListTemplate",t,o);return n&&n.length?h.jsx(a,{errors:n,errorSchema:r||{},schema:i,uiSchema:s,registry:t}):null}mergeErrors(t,n,r){let i=t.errorSchema,s=t.errors;if(n){const o=Zn(t,n);i=o.errorSchema,s=o.errors}if(r){const o=Zn({errors:s,errorSchema:i},r.ErrorSchema,!0);i=o.errorSchema,s=o.errors}return{errors:s,errorSchema:i}}liveValidate(t,n,r,i,s,o,a,l=!1){const c=this.validate(i,t,n,a),u=c.errors;let d=c.errorSchema;l&&(d=Jt(r,c.errorSchema,"preventDuplicates"));const m=u,y=d;return{...this.mergeErrors({errorSchema:d,errors:u},s,o),schemaValidationErrors:m,schemaValidationErrorSchema:y}}getUsedFormData=(t,n)=>B0(t,n);getFieldNames=(t,n)=>z0(t,n);omitExtraData=t=>{const{schema:n,schemaUtils:r}=this.state;return r.omitExtraData(n,t)};setFieldValue=(t,n)=>{const{registry:r}=this.state,i=Array.isArray(t)?t:t.split("."),s=We("",r.globalFormOptions,i);this.onChange(n,i,void 0,s[ge])};onChange=(t,n,r,i)=>{this.pendingChanges.push({newValue:t,path:n,newErrorSchema:r,id:i}),this.pendingChanges.length===1&&this.processPendingChange()};processPendingChange(){if(this.pendingChanges.length===0)return;this._isProcessingUserChange=!0;const{newValue:t,path:n,id:r}=this.pendingChanges[0],{newErrorSchema:i}=this.pendingChanges[0],{extraErrors:s,omitExtraData:o,liveOmit:a,noValidate:l,liveValidate:c,onChange:u,removeEmptyOptionalObjects:d}=this.props,{formData:m,schemaUtils:y,schema:f,fieldPathId:p,schemaValidationErrorSchema:b,errors:w}=this.state;let{customErrors:S,errorSchema:E}=this.state;const O=p.path[0]||"",g=!n||n.length===0||n.length===1&&n[0]===O;let v=this.state.retrievedSchema,j=g?t:io(m);const x=Y(j)&&Object.keys(j).length>0&&Object.values(j).every(k=>k===void 0),A=m==null,C=x&&A?void 0:j;if(Y(j)||Array.isArray(j)){t===vu?Iv(j,n):g||he(j,n,t);const k=this.getStateFromProps(this.props,C,void 0,void 0,void 0,!0);j=k.formData,v=k.retrievedSchema}const _=!l&&(c===!0||c==="onChange");let I={formData:j,schema:f},T=j;if(o===!0&&(a===!0||a==="onChange")&&(T=this.omitExtraData(j),I={formData:T}),d&&(T=gn(y.getValidator(),f,y.getRootSchema(),T),I={...I,formData:T}),i){const k=g?b:R(b,n);if(!we(k))g?E=i:he(E,n,i);else if(S||(S=new Xc),g){const N=R(i,Pe);N&&S.setErrors(N)}else he(S.ErrorSchema,n,i)}else S&&R(S.ErrorSchema,[...n,Pe])&&S.clearErrors(n);if(_&&this.pendingChanges.length===1){const k=this.liveValidate(f,y,E,T,s,S,v);I={formData:T,...k,customErrors:S}}else if(!l&&i){const k=this.mergeErrors({errorSchema:E,errors:w},s,S);I={formData:T,...k,customErrors:S}}this.setState(I,()=>{u&&u(an({...this.state,...I}),r),this.pendingChanges.shift(),this.processPendingChange()})}updateRetrievedSchema(t){return ce(t,this.state?.retrievedSchema)?this.state.retrievedSchema:t}reset=()=>{const{formData:t,initialFormData:n=al,onChange:r}=this.props,o={formData:this.getStateFromProps(this.props,t??n,void 0,void 0,void 0,!0).formData,errorSchema:{},errors:[],schemaValidationErrors:[],schemaValidationErrorSchema:{},initialDefaultsGenerated:!1,customErrors:void 0};this.setState(o,()=>r&&r(an({...this.state,...o})))};onBlur=(t,n)=>{const{onBlur:r,omitExtraData:i,liveOmit:s,liveValidate:o,removeEmptyOptionalObjects:a}=this.props;if(r&&r(t,n),i===!0&&s==="onBlur"||o==="onBlur"){const{onChange:l,extraErrors:c}=this.props,{formData:u,schemaUtils:d,schema:m}=this.state;let y=u,f={formData:y};if(i===!0&&s==="onBlur"&&(y=this.omitExtraData(u),f={formData:y}),a&&(y=gn(d.getValidator(),m,d.getRootSchema(),y),f={...f,formData:y}),o==="onBlur"){const{schema:b,schemaUtils:w,errorSchema:S,customErrors:E,retrievedSchema:O}=this.state,g=this.liveValidate(b,w,S,y,c,E,O);f={formData:y,...g,customErrors:E}}const p=Object.keys(f).filter(b=>!b.startsWith("schemaValidation")).some(b=>{const w=R(this.state,b),S=R(f,b);return!ce(w,S)});this.setState(f,()=>{l&&p&&l(an({...this.state,...f}),t)})}};onFocus=(t,n)=>{const{onFocus:r}=this.props;r&&r(t,n)};onSubmit=t=>{if(t.preventDefault(),t.target!==t.currentTarget)return;t.persist();const{omitExtraData:n,extraErrors:r,noValidate:i,onSubmit:s,removeEmptyOptionalObjects:o}=this.props;let{formData:a}=this.state;if(n===!0&&(a=this.omitExtraData(a)),o){const{schemaUtils:l,schema:c}=this.state;a=gn(l.getValidator(),c,l.getRootSchema(),a)}if(i||this.validateFormWithFormData(a)){const l=r||{},c=r?co(r):[];this.setState({formData:a,errors:c,errorSchema:l,schemaValidationErrors:[],schemaValidationErrorSchema:{}},()=>{s&&s(an({...this.state,formData:a},"submitted"),t)})}};getGlobalFormOptions(t){const{uiSchema:n={},experimental_componentUpdateStrategy:r,idSeparator:i=Nl,idPrefix:s=Pl,nameGenerator:o,useFallbackUiForUnsupportedType:a=!1}=t;return{idPrefix:n["ui:rootFieldId"]||s,idSeparator:i,useFallbackUiForUnsupportedType:a,...r!==void 0&&{experimental_componentUpdateStrategy:r},...o!==void 0&&{nameGenerator:o}}}getRegistry(t,n,r){const{translateString:i,uiSchema:s={}}=t,{fields:o,templates:a,widgets:l,formContext:c,translateString:u}=Tw();return{fields:{...o,...t.fields},templates:{...a,...t.templates,ButtonTemplates:{...a.ButtonTemplates,...t.templates?.ButtonTemplates}},widgets:{...l,...t.widgets},rootSchema:n,formContext:t.formContext||c,schemaUtils:r,translateString:i||u,globalUiOptions:s[ss],globalFormOptions:this.getGlobalFormOptions(t),uiSchemaDefinitions:s[rh]??{}}}submit=()=>{if(this.formElement.current){const t=new CustomEvent("submit",{cancelable:!0});t.preventDefault(),this.formElement.current.dispatchEvent(t),this.formElement.current.requestSubmit()}};focusOnError(t){const{idPrefix:n="root",idSeparator:r="_"}=this.props,{property:i}=t,s=su(i);s[0]===""?s[0]=n:s.unshift(n);const o=s.join(r);let a=this.formElement.current.elements[o];a||(a=this.formElement.current.querySelector(`input[id^="${o}"], button[id^="${o}"]`)),a&&a.length&&(a=a[0]),a&&a.focus()}validateFormWithFormData=t=>{const{extraErrors:n,extraErrorsBlockSubmit:r,focusOnFirstError:i,onError:s}=this.props,{errors:o}=this.state,a=this.validate(t),{errors:l,errorSchema:c}=n?this.mergeErrors(a,n):a,u=a.errors.length>0||n&&r;return u?(i&&(typeof i=="function"?i(l[0]):this.focusOnError(l[0])),this.setState({errors:l,errorSchema:c,schemaValidationErrors:a.errors,schemaValidationErrorSchema:a.errorSchema},()=>{s?s(l):console.error("Form validation failed",l)})):l.length>0?this.setState({errors:l,errorSchema:c,schemaValidationErrors:[],schemaValidationErrorSchema:{}}):o.length>0&&this.setState({errors:[],errorSchema:{},schemaValidationErrors:[],schemaValidationErrorSchema:{}}),!u};validateForm(){const{omitExtraData:t,removeEmptyOptionalObjects:n}=this.props;let{formData:r}=this.state;if(t===!0&&(r=this.omitExtraData(r)),n){const{schemaUtils:i,schema:s}=this.state;r=gn(i.getValidator(),s,i.getRootSchema(),r)}return this.validateFormWithFormData(r)}render(){const{children:t,id:n,className:r="",tagName:i,name:s,method:o,target:a,action:l,autoComplete:c,enctype:u,acceptCharset:d,noHtml5Validate:m=!1,disabled:y,readonly:f,showErrorList:p="top",_internalFormWrapper:b}=this.props,{schema:w,uiSchema:S,formData:E,errorSchema:O,fieldPathId:g,registry:v}=this.state,{SchemaField:j}=v.fields,{SubmitButton:x}=v.templates.ButtonTemplates,A=b?i:void 0,C=b||i||"form";let{[Gr]:_={}}=H(S);y&&(_={..._,props:{..._.props,disabled:!0}});const I={[It]:{[Gr]:_}};return h.jsxs(C,{className:r||"rjsf",id:n,name:s,method:o,target:a,action:l,autoComplete:c,encType:u,acceptCharset:d,noValidate:m,onSubmit:this.onSubmit,as:A,ref:this.formElement,children:[p==="top"&&this.renderErrors(v),h.jsx(j,{name:"",schema:w,uiSchema:S,errorSchema:O,fieldPathId:g,formData:E,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:v,disabled:y,readonly:f}),t||h.jsx(x,{uiSchema:I,registry:v}),p==="bottom"&&this.renderErrors(v)]})}};function Nw(e){return P.forwardRef(({fields:t,widgets:n,templates:r,...i},s)=>(t={...e?.fields,...t},n={...e?.widgets,...n},r={...e?.templates,...r,ButtonTemplates:{...e?.templates?.ButtonTemplates,...r?.ButtonTemplates}},h.jsx(Pw,{...e,...i,fields:t,widgets:n,templates:r,ref:s})))}function kw(e,t="none"){return t==="all"?e:e.reduce((n,r)=>{const{message:i,schemaPath:s}=r,o=t!=="anyOf"?s?.indexOf(`/${ae}/`):void 0,a=t!=="oneOf"?s?.indexOf(`/${Q}/`):void 0;let l;return o&&o>=0?l=s?.substring(0,o):a&&a>=0&&(l=s?.substring(0,a)),l&&n.find(u=>{var d;return u.message===i&&((d=u.schemaPath)===null||d===void 0?void 0:d.startsWith(l))})||n.push(r),n},[])}function Fw(e=[],t,n){const r=e.map(i=>{var s;const{instancePath:o,keyword:a,params:l,schemaPath:c,parentSchema:u,...d}=i;let{message:m=""}=d,y=o.replace(/\//g,"."),f=`${y} ${m}`.trim(),p="";const b=[...((s=l.deps)===null||s===void 0?void 0:s.split(", "))||[],l.missingProperty,l.property].filter(w=>w);if(b.length>0)b.forEach(w=>{const S=y?`${y}.${w}`:w;let E=H(R(t,S.replace(/^\./,""))).title;if(E===void 0){const O=c.replace(/\/properties\//g,"/").split("/").slice(1,-1).concat([w]);E=H(R(t,O)).title}if(E)m=m.replace(`'${w}'`,`'${E}'`),p=E;else{const O=R(u,[ue,w,"title"]);O&&(m=m.replace(`'${w}'`,`'${O}'`),p=O)}}),f=m;else{const w=H(R(t,y.replace(/^\./,""))).title;if(w)f=`'${w}' ${m}`.trim(),p=w;else{const S=u?.title;S&&(f=`'${S}' ${m}`.trim(),p=S)}}return"missingProperty"in l&&(y=y?`${y}.${l.missingProperty}`:l.missingProperty),{name:a,property:y,message:m,params:l,stack:f,schemaPath:c,title:p}});return kw(r,n)}function $w(e,t,n,r,i,s,o,a){const{validationError:l}=t;let c=Fw(t.errors,o,a);l&&(c=[...c,{stack:l.message}]),typeof s=="function"&&(c=s(c,o));let u=yv(c);if(l&&(u={...u,$schema:{__errors:[l.message]}}),typeof i!="function")return{errors:c,errorSchema:u};const d=Vc(e,r,n,r,!0),m=i(d,os(d),o,u),y=ou(m);return Zn({errors:c,errorSchema:u},y)}var Nr={exports:{}},Hi={},ll;function Rw(){return ll||(ll=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(A,C){return{validate:A,compare:C}}e.fullFormats={date:t(s,o),time:t(l,c),"date-time":t(d,m),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:p,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:x,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:w,int32:{type:"number",validate:O},int64:{type:"number",validate:g},float:{type:"number",validate:v},double:{type:"number",validate:v},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,o),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,c),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,m),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function n(A){return A%4===0&&(A%100!==0||A%400===0)}const r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function s(A){const C=r.exec(A);if(!C)return!1;const _=+C[1],I=+C[2],T=+C[3];return I>=1&&I<=12&&T>=1&&T<=(I===2&&n(_)?29:i[I])}function o(A,C){if(A&&C)return A>C?1:A<C?-1:0}const a=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function l(A,C){const _=a.exec(A);if(!_)return!1;const I=+_[1],T=+_[2],k=+_[3],N=_[5];return(I<=23&&T<=59&&k<=59||I===23&&T===59&&k===60)&&(!C||N!=="")}function c(A,C){if(!(A&&C))return;const _=a.exec(A),I=a.exec(C);if(_&&I)return A=_[1]+_[2]+_[3]+(_[4]||""),C=I[1]+I[2]+I[3]+(I[4]||""),A>C?1:A<C?-1:0}const u=/t|\s/i;function d(A){const C=A.split(u);return C.length===2&&s(C[0])&&l(C[1],!0)}function m(A,C){if(!(A&&C))return;const[_,I]=A.split(u),[T,k]=C.split(u),N=o(_,T);if(N!==void 0)return N||c(I,k)}const y=/\/|:/,f=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function p(A){return y.test(A)&&f.test(A)}const b=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function w(A){return b.lastIndex=0,b.test(A)}const S=-2147483648,E=2**31-1;function O(A){return Number.isInteger(A)&&A<=E&&A>=S}function g(A){return Number.isInteger(A)}function v(){return!0}const j=/[^\\]\\Z/;function x(A){if(j.test(A))return!1;try{return new RegExp(A),!0}catch{return!1}}})(Hi)),Hi}var Gi={},cl;function Dw(){return cl||(cl=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=wd(),n=wl(),r=n.operators,i={formatMaximum:{okStr:"<=",ok:r.LTE,fail:r.GT},formatMinimum:{okStr:">=",ok:r.GTE,fail:r.LT},formatExclusiveMaximum:{okStr:"<",ok:r.LT,fail:r.GTE},formatExclusiveMinimum:{okStr:">",ok:r.GT,fail:r.LTE}},s={message:({keyword:a,schemaCode:l})=>n.str`should be ${i[a].okStr} ${l}`,params:({keyword:a,schemaCode:l})=>n._`{comparison: ${i[a].okStr}, limit: ${l}}`};e.formatLimitDefinition={keyword:Object.keys(i),type:"string",schemaType:"string",$data:!0,error:s,code(a){const{gen:l,data:c,schemaCode:u,keyword:d,it:m}=a,{opts:y,self:f}=m;if(!y.validateFormats)return;const p=new t.KeywordCxt(m,f.RULES.all.format.definition,"format");p.$data?b():w();function b(){const E=l.scopeValue("formats",{ref:f.formats,code:y.code.formats}),O=l.const("fmt",n._`${E}[${p.schemaCode}]`);a.fail$data(n.or(n._`typeof ${O} != "object"`,n._`${O} instanceof RegExp`,n._`typeof ${O}.compare != "function"`,S(O)))}function w(){const E=p.schema,O=f.formats[E];if(!O||O===!0)return;if(typeof O!="object"||O instanceof RegExp||typeof O.compare!="function")throw new Error(`"${d}": format "${E}" does not define "compare" function`);const g=l.scopeValue("formats",{key:E,ref:O,code:y.code.formats?n._`${y.code.formats}${n.getProperty(E)}`:void 0});a.fail$data(S(g))}function S(E){return n._`${E}.compare(${c}, ${u}) ${i[d].fail} 0`}},dependencies:["format"]};const o=a=>(a.addKeyword(e.formatLimitDefinition),a);e.default=o})(Gi)),Gi}var ul;function Mw(){return ul||(ul=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=Rw(),r=Dw(),i=wl(),s=new i.Name("fullFormats"),o=new i.Name("fastFormats"),a=(c,u={keywords:!0})=>{if(Array.isArray(u))return l(c,u,n.fullFormats,s),c;const[d,m]=u.mode==="fast"?[n.fastFormats,o]:[n.fullFormats,s],y=u.formats||n.formatNames;return l(c,y,d,m),u.keywords&&r.default(c),c};a.get=(c,u="full")=>{const m=(u==="fast"?n.fastFormats:n.fullFormats)[c];if(!m)throw new Error(`Unknown format "${c}"`);return m};function l(c,u,d,m){var y,f;(y=(f=c.opts.code).formats)!==null&&y!==void 0||(f.formats=i._`require("ajv-formats/dist/formats").${m}`);for(const p of u)c.addFormat(p,d[p])}e.exports=t=a,Object.defineProperty(t,"__esModule",{value:!0}),t.default=a})(Nr,Nr.exports)),Nr.exports}var Uw=Mw();const dl=Cs(Uw),Lw={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0,discriminator:!1},Bw=/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,zw=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;function Vw(e,t,n={},r,i=El,s){let o=new i({...Lw,...n});return r?dl(o,r):r!==!1&&dl(o),o.addFormat("data-url",zw),o.addFormat("color",Bw),o.addKeyword(mt),o.addKeyword(Fs),Array.isArray(e)&&o.addMetaSchema(e),le(t)&&Object.keys(t).forEach(a=>{o.addFormat(a,t[a])}),s&&(o=s(o)),o}class qw{constructor(t,n){this.hasRegisteredRootSchema=!1;const{additionalMetaSchemas:r,customFormats:i,ajvOptionsOverrides:s,ajvFormatOptions:o,AjvClass:a,extenderFn:l,suppressDuplicateFiltering:c}=t;this.ajv=Vw(r,i,s,o,a,l),this.localizer=n,this.suppressDuplicateFiltering=c}reset(){this.ajv.removeSchema(),this.lastSeenRootSchema=void 0,this.hasRegisteredRootSchema=!1}rawValidation(t,n){var r,i;let s,o;try{t[ge]&&(o=this.ajv.getSchema(t[ge])),o===void 0&&(o=this.ajv.compile(t)),o(n)}catch(l){s=l}let a;return o&&(typeof this.localizer=="function"&&(((r=o.errors)!==null&&r!==void 0?r:[]).forEach(l=>{var c;["missingProperty","property"].forEach(u=>{var d;!((d=l.params)===null||d===void 0)&&d[u]&&(l.params[u]=`'${l.params[u]}'`)}),!((c=l.params)===null||c===void 0)&&c.deps&&(l.params.deps=l.params.deps.split(", ").map(u=>`'${u}'`).join(", "))}),this.localizer(o.errors),((i=o.errors)!==null&&i!==void 0?i:[]).forEach(l=>{var c;["missingProperty","property"].forEach(u=>{var d;!((d=l.params)===null||d===void 0)&&d[u]&&(l.params[u]=l.params[u].slice(1,-1))}),!((c=l.params)===null||c===void 0)&&c.deps&&(l.params.deps=l.params.deps.split(", ").map(u=>u.slice(1,-1)).join(", "))})),a=o.errors||void 0,o.errors=null),{errors:a,validationError:s}}validateFormData(t,n,r,i,s){const o=this.rawValidation(n,t);return $w(this,o,t,n,r,i,s,this.suppressDuplicateFiltering)}handleSchemaUpdate(t){var n,r;if(this.lastSeenRootSchema===t&&this.hasRegisteredRootSchema)return;const i=(n=t[ge])!==null&&n!==void 0?n:kl;this.ajv.getSchema(i)===void 0?this.ajv.addSchema(t,i):ce(t,(r=this.ajv.getSchema(i))===null||r===void 0?void 0:r.schema)||(this.ajv.removeSchema(i),this.ajv.addSchema(t,i)),this.lastSeenRootSchema=t,this.hasRegisteredRootSchema=!0}isValid(t,n,r){var i;try{this.handleSchemaUpdate(r);const s=uo(t),o=(i=s[ge])!==null&&i!==void 0?i:dv(s);let a;return a=this.ajv.getSchema(o),a===void 0&&(a=this.ajv.addSchema(s,o).getSchema(o)||this.ajv.compile(s)),a(n)}catch(s){return console.warn("Error encountered compiling schema:",s),!1}}}function Ww(e={},t){return new qw(e,t)}const Hw=Ww();const Eu=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();const Gw=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Kw=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());const fl=e=>{const t=Kw(e);return t.charAt(0).toUpperCase()+t.slice(1)};var Ki={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Yw=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},Jw=P.createContext({}),Zw=()=>P.useContext(Jw),Xw=P.forwardRef(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i="",children:s,iconNode:o,...a},l)=>{const{size:c=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:m="currentColor",className:y=""}=Zw()??{},f=r??d?Number(n??u)*24/Number(t??c):n??u;return P.createElement("svg",{ref:l,...Ki,width:t??c??Ki.width,height:t??c??Ki.height,stroke:e??m,strokeWidth:f,className:Eu("lucide",y,i),...!s&&!Yw(a)&&{"aria-hidden":"true"},...a},[...o.map(([p,b])=>P.createElement(p,b)),...Array.isArray(s)?s:[s]])});const lt=(e,t)=>{const n=P.forwardRef(({className:r,...i},s)=>P.createElement(Xw,{ref:s,iconNode:t,className:Eu(`lucide-${Gw(fl(e))}`,`lucide-${e}`,r),...i}));return n.displayName=fl(e),n};const Qw=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ej=lt("check",Qw);const tj=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Au=lt("chevron-down",tj);const nj=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],rj=lt("chevron-up",nj);const ij=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],sj=lt("circle-alert",ij);const oj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]],Cu=lt("circle-plus",oj);const aj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],lj=lt("circle",aj);const cj=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],uj=lt("copy",cj);const dj=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],fj=lt("search",dj);const mj=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],hj=lt("trash-2",mj);const pj=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],_u=lt("x",pj),gj=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},yj=(e,t)=>({classGroupId:e,validator:t}),Iu=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Qr="-",ml=[],bj="arbitrary..",xj=e=>{const t=Sj(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return vj(o);const a=o.split(Qr),l=a[0]===""&&a.length>1?1:0;return Tu(a,l,t)},getConflictingClassGroupIds:(o,a)=>{if(a){const l=r[o],c=n[o];return l?c?gj(c,l):l:c||ml}return n[o]||ml}}},Tu=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],s=n.nextPart.get(i);if(s){const c=Tu(e,t+1,s);if(c)return c}const o=n.validators;if(o===null)return;const a=t===0?e.join(Qr):e.slice(t).join(Qr),l=o.length;for(let c=0;c<l;c++){const u=o[c];if(u.validator(a))return u.classGroupId}},vj=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?bj+r:void 0})(),Sj=e=>{const{theme:t,classGroups:n}=e;return wj(n,t)},wj=(e,t)=>{const n=Iu();for(const r in e){const i=e[r];bo(i,n,r,t)}return n},bo=(e,t,n,r)=>{const i=e.length;for(let s=0;s<i;s++){const o=e[s];jj(o,t,n,r)}},jj=(e,t,n,r)=>{if(typeof e=="string"){Oj(e,t,n);return}if(typeof e=="function"){Ej(e,t,n,r);return}Aj(e,t,n,r)},Oj=(e,t,n)=>{const r=e===""?t:Pu(t,e);r.classGroupId=n},Ej=(e,t,n,r)=>{if(Cj(e)){bo(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(yj(n,e))},Aj=(e,t,n,r)=>{const i=Object.entries(e),s=i.length;for(let o=0;o<s;o++){const[a,l]=i[o];bo(l,Pu(t,a),n,r)}},Pu=(e,t)=>{let n=e;const r=t.split(Qr),i=r.length;for(let s=0;s<i;s++){const o=r[s];let a=n.nextPart.get(o);a||(a=Iu(),n.nextPart.set(o,a)),n=a}return n},Cj=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,_j=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(s,o)=>{n[s]=o,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(s){let o=n[s];if(o!==void 0)return o;if((o=r[s])!==void 0)return i(s,o),o},set(s,o){s in n?n[s]=o:i(s,o)}}},vs="!",hl=":",Ij=[],pl=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Tj=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const s=[];let o=0,a=0,l=0,c;const u=i.length;for(let p=0;p<u;p++){const b=i[p];if(o===0&&a===0){if(b===hl){s.push(i.slice(l,p)),l=p+1;continue}if(b==="/"){c=p;continue}}b==="["?o++:b==="]"?o--:b==="("?a++:b===")"&&a--}const d=s.length===0?i:i.slice(l);let m=d,y=!1;d.endsWith(vs)?(m=d.slice(0,-1),y=!0):d.startsWith(vs)&&(m=d.slice(1),y=!0);const f=c&&c>l?c-l:void 0;return pl(s,y,m,f)};if(t){const i=t+hl,s=r;r=o=>o.startsWith(i)?s(o.slice(i.length)):pl(Ij,!1,o,void 0,!0)}if(n){const i=r;r=s=>n({className:s,parseClassName:i})}return r},Pj=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let s=0;s<n.length;s++){const o=n[s],a=o[0]==="[",l=t.has(o);a||l?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(o)):i.push(o)}return i.length>0&&(i.sort(),r.push(...i)),r}},Nj=e=>({cache:_j(e.cacheSize),parseClassName:Tj(e),sortModifiers:Pj(e),postfixLookupClassGroupIds:kj(e),...xj(e)}),kj=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let r=0;r<n.length;r++)t[n[r]]=!0;return t},Fj=/\s+/,$j=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:s,postfixLookupClassGroupIds:o}=t,a=[],l=e.trim().split(Fj);let c="";for(let u=l.length-1;u>=0;u-=1){const d=l[u],{isExternal:m,modifiers:y,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:b}=n(d);if(m){c=d+(c.length>0?" "+c:c);continue}let w=!!b,S;if(w){const j=p.substring(0,b);S=r(j);const x=S&&o[S]?r(p):void 0;x&&x!==S&&(S=x,w=!1)}else S=r(p);if(!S){if(!w){c=d+(c.length>0?" "+c:c);continue}if(S=r(p),!S){c=d+(c.length>0?" "+c:c);continue}w=!1}const E=y.length===0?"":y.length===1?y[0]:s(y).join(":"),O=f?E+vs:E,g=O+S;if(a.indexOf(g)>-1)continue;a.push(g);const v=i(S,w);for(let j=0;j<v.length;++j){const x=v[j];a.push(O+x)}c=d+(c.length>0?" "+c:c)}return c},Rj=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=Nu(n))&&(i&&(i+=" "),i+=r);return i},Nu=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Nu(e[r]))&&(n&&(n+=" "),n+=t);return n},Dj=(e,...t)=>{let n,r,i,s;const o=l=>{const c=t.reduce((u,d)=>d(u),e());return n=Nj(c),r=n.cache.get,i=n.cache.set,s=a,a(l)},a=l=>{const c=r(l);if(c)return c;const u=$j(l,n);return i(l,u),u};return s=o,(...l)=>s(Rj(...l))},Mj=[],_e=e=>{const t=n=>n[e]||Mj;return t.isThemeGetter=!0,t},ku=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Fu=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Uj=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Lj=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Bj=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,zj=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Vj=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,qj=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,jt=e=>Uj.test(e),te=e=>!!e&&!Number.isNaN(Number(e)),Ze=e=>!!e&&Number.isInteger(Number(e)),Yi=e=>e.endsWith("%")&&te(e.slice(0,-1)),ut=e=>Lj.test(e),$u=()=>!0,Wj=e=>Bj.test(e)&&!zj.test(e),xo=()=>!1,Hj=e=>Vj.test(e),Gj=e=>qj.test(e),Kj=e=>!U(e)&&!L(e),Yj=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Jj=e=>Mt(e,Mu,xo),U=e=>ku.test(e),zt=e=>Mt(e,Uu,Wj),gl=e=>Mt(e,iO,te),Zj=e=>Mt(e,Bu,$u),Xj=e=>Mt(e,Lu,xo),yl=e=>Mt(e,Ru,xo),Qj=e=>Mt(e,Du,Gj),kr=e=>Mt(e,zu,Hj),L=e=>Fu.test(e),Wn=e=>on(e,Uu),eO=e=>on(e,Lu),bl=e=>on(e,Ru),tO=e=>on(e,Mu),nO=e=>on(e,Du),Fr=e=>on(e,zu,!0),rO=e=>on(e,Bu,!0),Mt=(e,t,n)=>{const r=ku.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},on=(e,t,n=!1)=>{const r=Fu.exec(e);return r?r[1]?t(r[1]):n:!1},Ru=e=>e==="position"||e==="percentage",Du=e=>e==="image"||e==="url",Mu=e=>e==="length"||e==="size"||e==="bg-size",Uu=e=>e==="length",iO=e=>e==="number",Lu=e=>e==="family-name",Bu=e=>e==="number"||e==="weight",zu=e=>e==="shadow",sO=()=>{const e=_e("color"),t=_e("font"),n=_e("text"),r=_e("font-weight"),i=_e("tracking"),s=_e("leading"),o=_e("breakpoint"),a=_e("container"),l=_e("spacing"),c=_e("radius"),u=_e("shadow"),d=_e("inset-shadow"),m=_e("text-shadow"),y=_e("drop-shadow"),f=_e("blur"),p=_e("perspective"),b=_e("aspect"),w=_e("ease"),S=_e("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],g=()=>[...O(),L,U],v=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto","contain","none"],x=()=>[L,U,l],A=()=>[jt,"full","auto",...x()],C=()=>[Ze,"none","subgrid",L,U],_=()=>["auto",{span:["full",Ze,L,U]},Ze,L,U],I=()=>[Ze,"auto",L,U],T=()=>["auto","min","max","fr",L,U],k=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],N=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...x()],M=()=>[jt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],z=()=>[jt,"screen","full","dvw","lvw","svw","min","max","fit",...x()],V=()=>[jt,"screen","full","lh","dvh","lvh","svh","min","max","fit",...x()],D=()=>[e,L,U],de=()=>[...O(),bl,yl,{position:[L,U]}],fe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Se=()=>["auto","cover","contain",tO,Jj,{size:[L,U]}],q=()=>[Yi,Wn,zt],J=()=>["","none","full",c,L,U],G=()=>["",te,Wn,zt],Z=()=>["solid","dashed","dotted","double"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],B=()=>[te,Yi,bl,yl],se=()=>["","none",f,L,U],oe=()=>["none",te,L,U],je=()=>["none",te,L,U],Oe=()=>[te,L,U],xe=()=>[jt,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ut],breakpoint:[ut],color:[$u],container:[ut],"drop-shadow":[ut],ease:["in","out","in-out"],font:[Kj],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ut],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ut],shadow:[ut],spacing:["px",te],text:[ut],"text-shadow":[ut],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",jt,U,L,b]}],container:["container"],"container-type":[{"@container":["","normal","size",L,U]}],"container-named":[Yj],columns:[{columns:[te,U,L,a]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:g()}],overflow:[{overflow:v()}],"overflow-x":[{"overflow-x":v()}],"overflow-y":[{"overflow-y":v()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:A()}],"inset-x":[{"inset-x":A()}],"inset-y":[{"inset-y":A()}],start:[{"inset-s":A(),start:A()}],end:[{"inset-e":A(),end:A()}],"inset-bs":[{"inset-bs":A()}],"inset-be":[{"inset-be":A()}],top:[{top:A()}],right:[{right:A()}],bottom:[{bottom:A()}],left:[{left:A()}],visibility:["visible","invisible","collapse"],z:[{z:[Ze,"auto",L,U]}],basis:[{basis:[jt,"full","auto",a,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[te,jt,"auto","initial","none",U]}],grow:[{grow:["",te,L,U]}],shrink:[{shrink:["",te,L,U]}],order:[{order:[Ze,"first","last","none",L,U]}],"grid-cols":[{"grid-cols":C()}],"col-start-end":[{col:_()}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":C()}],"row-start-end":[{row:_()}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":T()}],"auto-rows":[{"auto-rows":T()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:[...k(),"normal"]}],"justify-items":[{"justify-items":[...N(),"normal"]}],"justify-self":[{"justify-self":["auto",...N()]}],"align-content":[{content:["normal",...k()]}],"align-items":[{items:[...N(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...N(),{baseline:["","last"]}]}],"place-content":[{"place-content":k()}],"place-items":[{"place-items":[...N(),"baseline"]}],"place-self":[{"place-self":["auto",...N()]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pbs:[{pbs:x()}],pbe:[{pbe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:F()}],mx:[{mx:F()}],my:[{my:F()}],ms:[{ms:F()}],me:[{me:F()}],mbs:[{mbs:F()}],mbe:[{mbe:F()}],mt:[{mt:F()}],mr:[{mr:F()}],mb:[{mb:F()}],ml:[{ml:F()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:M()}],"inline-size":[{inline:["auto",...z()]}],"min-inline-size":[{"min-inline":["auto",...z()]}],"max-inline-size":[{"max-inline":["none",...z()]}],"block-size":[{block:["auto",...V()]}],"min-block-size":[{"min-block":["auto",...V()]}],"max-block-size":[{"max-block":["none",...V()]}],w:[{w:[a,"screen",...M()]}],"min-w":[{"min-w":[a,"screen","none",...M()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...M()]}],h:[{h:["screen","lh",...M()]}],"min-h":[{"min-h":["screen","lh","none",...M()]}],"max-h":[{"max-h":["screen","lh",...M()]}],"font-size":[{text:["base",n,Wn,zt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,rO,Zj]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Yi,U]}],"font-family":[{font:[eO,Xj,t]}],"font-features":[{"font-features":[U]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,L,U]}],"line-clamp":[{"line-clamp":[te,"none",L,gl]}],leading:[{leading:[s,...x()]}],"list-image":[{"list-image":["none",L,U]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",L,U]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:D()}],"text-color":[{text:D()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Z(),"wavy"]}],"text-decoration-thickness":[{decoration:[te,"from-font","auto",L,zt]}],"text-decoration-color":[{decoration:D()}],"underline-offset":[{"underline-offset":[te,"auto",L,U]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"tab-size":[{tab:[Ze,L,U]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",L,U]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",L,U]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:de()}],"bg-repeat":[{bg:fe()}],"bg-size":[{bg:Se()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ze,L,U],radial:["",L,U],conic:[Ze,L,U]},nO,Qj]}],"bg-color":[{bg:D()}],"gradient-from-pos":[{from:q()}],"gradient-via-pos":[{via:q()}],"gradient-to-pos":[{to:q()}],"gradient-from":[{from:D()}],"gradient-via":[{via:D()}],"gradient-to":[{to:D()}],rounded:[{rounded:J()}],"rounded-s":[{"rounded-s":J()}],"rounded-e":[{"rounded-e":J()}],"rounded-t":[{"rounded-t":J()}],"rounded-r":[{"rounded-r":J()}],"rounded-b":[{"rounded-b":J()}],"rounded-l":[{"rounded-l":J()}],"rounded-ss":[{"rounded-ss":J()}],"rounded-se":[{"rounded-se":J()}],"rounded-ee":[{"rounded-ee":J()}],"rounded-es":[{"rounded-es":J()}],"rounded-tl":[{"rounded-tl":J()}],"rounded-tr":[{"rounded-tr":J()}],"rounded-br":[{"rounded-br":J()}],"rounded-bl":[{"rounded-bl":J()}],"border-w":[{border:G()}],"border-w-x":[{"border-x":G()}],"border-w-y":[{"border-y":G()}],"border-w-s":[{"border-s":G()}],"border-w-e":[{"border-e":G()}],"border-w-bs":[{"border-bs":G()}],"border-w-be":[{"border-be":G()}],"border-w-t":[{"border-t":G()}],"border-w-r":[{"border-r":G()}],"border-w-b":[{"border-b":G()}],"border-w-l":[{"border-l":G()}],"divide-x":[{"divide-x":G()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":G()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Z(),"hidden","none"]}],"divide-style":[{divide:[...Z(),"hidden","none"]}],"border-color":[{border:D()}],"border-color-x":[{"border-x":D()}],"border-color-y":[{"border-y":D()}],"border-color-s":[{"border-s":D()}],"border-color-e":[{"border-e":D()}],"border-color-bs":[{"border-bs":D()}],"border-color-be":[{"border-be":D()}],"border-color-t":[{"border-t":D()}],"border-color-r":[{"border-r":D()}],"border-color-b":[{"border-b":D()}],"border-color-l":[{"border-l":D()}],"divide-color":[{divide:D()}],"outline-style":[{outline:[...Z(),"none","hidden"]}],"outline-offset":[{"outline-offset":[te,L,U]}],"outline-w":[{outline:["",te,Wn,zt]}],"outline-color":[{outline:D()}],shadow:[{shadow:["","none",u,Fr,kr]}],"shadow-color":[{shadow:D()}],"inset-shadow":[{"inset-shadow":["none",d,Fr,kr]}],"inset-shadow-color":[{"inset-shadow":D()}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:D()}],"ring-offset-w":[{"ring-offset":[te,zt]}],"ring-offset-color":[{"ring-offset":D()}],"inset-ring-w":[{"inset-ring":G()}],"inset-ring-color":[{"inset-ring":D()}],"text-shadow":[{"text-shadow":["none",m,Fr,kr]}],"text-shadow-color":[{"text-shadow":D()}],opacity:[{opacity:[te,L,U]}],"mix-blend":[{"mix-blend":[...X(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":X()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[te]}],"mask-image-linear-from-pos":[{"mask-linear-from":B()}],"mask-image-linear-to-pos":[{"mask-linear-to":B()}],"mask-image-linear-from-color":[{"mask-linear-from":D()}],"mask-image-linear-to-color":[{"mask-linear-to":D()}],"mask-image-t-from-pos":[{"mask-t-from":B()}],"mask-image-t-to-pos":[{"mask-t-to":B()}],"mask-image-t-from-color":[{"mask-t-from":D()}],"mask-image-t-to-color":[{"mask-t-to":D()}],"mask-image-r-from-pos":[{"mask-r-from":B()}],"mask-image-r-to-pos":[{"mask-r-to":B()}],"mask-image-r-from-color":[{"mask-r-from":D()}],"mask-image-r-to-color":[{"mask-r-to":D()}],"mask-image-b-from-pos":[{"mask-b-from":B()}],"mask-image-b-to-pos":[{"mask-b-to":B()}],"mask-image-b-from-color":[{"mask-b-from":D()}],"mask-image-b-to-color":[{"mask-b-to":D()}],"mask-image-l-from-pos":[{"mask-l-from":B()}],"mask-image-l-to-pos":[{"mask-l-to":B()}],"mask-image-l-from-color":[{"mask-l-from":D()}],"mask-image-l-to-color":[{"mask-l-to":D()}],"mask-image-x-from-pos":[{"mask-x-from":B()}],"mask-image-x-to-pos":[{"mask-x-to":B()}],"mask-image-x-from-color":[{"mask-x-from":D()}],"mask-image-x-to-color":[{"mask-x-to":D()}],"mask-image-y-from-pos":[{"mask-y-from":B()}],"mask-image-y-to-pos":[{"mask-y-to":B()}],"mask-image-y-from-color":[{"mask-y-from":D()}],"mask-image-y-to-color":[{"mask-y-to":D()}],"mask-image-radial":[{"mask-radial":[L,U]}],"mask-image-radial-from-pos":[{"mask-radial-from":B()}],"mask-image-radial-to-pos":[{"mask-radial-to":B()}],"mask-image-radial-from-color":[{"mask-radial-from":D()}],"mask-image-radial-to-color":[{"mask-radial-to":D()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":O()}],"mask-image-conic-pos":[{"mask-conic":[te]}],"mask-image-conic-from-pos":[{"mask-conic-from":B()}],"mask-image-conic-to-pos":[{"mask-conic-to":B()}],"mask-image-conic-from-color":[{"mask-conic-from":D()}],"mask-image-conic-to-color":[{"mask-conic-to":D()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:de()}],"mask-repeat":[{mask:fe()}],"mask-size":[{mask:Se()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",L,U]}],filter:[{filter:["","none",L,U]}],blur:[{blur:se()}],brightness:[{brightness:[te,L,U]}],contrast:[{contrast:[te,L,U]}],"drop-shadow":[{"drop-shadow":["","none",y,Fr,kr]}],"drop-shadow-color":[{"drop-shadow":D()}],grayscale:[{grayscale:["",te,L,U]}],"hue-rotate":[{"hue-rotate":[te,L,U]}],invert:[{invert:["",te,L,U]}],saturate:[{saturate:[te,L,U]}],sepia:[{sepia:["",te,L,U]}],"backdrop-filter":[{"backdrop-filter":["","none",L,U]}],"backdrop-blur":[{"backdrop-blur":se()}],"backdrop-brightness":[{"backdrop-brightness":[te,L,U]}],"backdrop-contrast":[{"backdrop-contrast":[te,L,U]}],"backdrop-grayscale":[{"backdrop-grayscale":["",te,L,U]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[te,L,U]}],"backdrop-invert":[{"backdrop-invert":["",te,L,U]}],"backdrop-opacity":[{"backdrop-opacity":[te,L,U]}],"backdrop-saturate":[{"backdrop-saturate":[te,L,U]}],"backdrop-sepia":[{"backdrop-sepia":["",te,L,U]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",L,U]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[te,"initial",L,U]}],ease:[{ease:["linear","initial",w,L,U]}],delay:[{delay:[te,L,U]}],animate:[{animate:["none",S,L,U]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[p,L,U]}],"perspective-origin":[{"perspective-origin":g()}],rotate:[{rotate:oe()}],"rotate-x":[{"rotate-x":oe()}],"rotate-y":[{"rotate-y":oe()}],"rotate-z":[{"rotate-z":oe()}],scale:[{scale:je()}],"scale-x":[{"scale-x":je()}],"scale-y":[{"scale-y":je()}],"scale-z":[{"scale-z":je()}],"scale-3d":["scale-3d"],skew:[{skew:Oe()}],"skew-x":[{"skew-x":Oe()}],"skew-y":[{"skew-y":Oe()}],transform:[{transform:[L,U,"","none","gpu","cpu"]}],"transform-origin":[{origin:g()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:xe()}],"translate-x":[{"translate-x":xe()}],"translate-y":[{"translate-y":xe()}],"translate-z":[{"translate-z":xe()}],"translate-none":["translate-none"],zoom:[{zoom:[Ze,L,U]}],accent:[{accent:D()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:D()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",L,U]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":D()}],"scrollbar-track-color":[{"scrollbar-track":D()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mbs":[{"scroll-mbs":x()}],"scroll-mbe":[{"scroll-mbe":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pbs":[{"scroll-pbs":x()}],"scroll-pbe":[{"scroll-pbe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",L,U]}],fill:[{fill:["none",...D()]}],"stroke-w":[{stroke:[te,Wn,zt,gl]}],stroke:[{stroke:["none",...D()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},oO=Dj(sO);function ne(...e){return oO(jd(e))}const aO=_s("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",xs:"h-6 rounded-md gap-1 px-2 has-[>svg]:px-2",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function vo({className:e,variant:t,size:n,asChild:r=!1,...i}){const s=r?jl:"button";return h.jsx(s,{"data-slot":"button",className:ne(aO({variant:t,size:n,className:e})),...i})}function lO({uiSchema:e,registry:t,className:n,...r}){const{translateString:i}=t;return h.jsx("div",{className:"p-0 m-0",children:h.jsxs(vo,{...r,className:ne("w-fit gap-2",n),variant:"outline",type:"button",children:[h.jsx(Cu,{size:16})," ",i(ee.AddItemButton)]})})}function cO(e){const{children:t,buttonsProps:n,displayLabel:r,hasDescription:i,hasToolbar:s,uiSchema:o,registry:a}=e,l=H(o),c=K("ArrayFieldItemButtonsTemplate",a,l),u=i?-6:22;return h.jsx("div",{children:h.jsxs("div",{className:"mb-2 flex flex-row flex-wrap items-center",children:[h.jsx("div",{className:"grow shrink",children:t}),h.jsx("div",{className:"flex items-end justify-end p-0.5",children:s&&h.jsx("div",{className:"flex gap-2",style:{marginLeft:"5px",marginTop:r?`${u}px`:void 0},children:h.jsx(c,{...n})})})]})})}function uO(e){const{canAdd:t,disabled:n,fieldPathId:r,uiSchema:i,items:s,optionalDataControl:o,onAddClick:a,readonly:l,registry:c,required:u,schema:d,title:m}=e,y=H(i),f=K("ArrayFieldDescriptionTemplate",c,y),p=K("ArrayFieldTitleTemplate",c,y),b=!l&&!n,{ButtonTemplates:{AddButton:w}}=c.templates;return h.jsx("div",{children:h.jsx("div",{className:"m-0 flex p-0",children:h.jsxs("div",{className:"m-0 w-full p-0",children:[h.jsx(p,{fieldPathId:r,title:y.title||m,schema:d,uiSchema:i,required:u,registry:c,optionalDataControl:b?o:void 0}),h.jsx(f,{fieldPathId:r,description:y.description||d.description,schema:d,uiSchema:i,registry:c}),h.jsxs("div",{className:"p-0 m-0 w-full mb-2",children:[b?void 0:o,s,t&&h.jsx("div",{className:"mt-2 flex justify-end",children:h.jsx(w,{id:it(r,"add"),className:"rjsf-array-item-add",onClick:a,disabled:n||l,uiSchema:i,registry:c})})]},`array-item-list-${r.$id}`)]})})})}function Vu({className:e,type:t,...n}){return h.jsx("input",{type:t,"data-slot":"input",className:ne("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...n})}function dO({id:e,htmlName:t,placeholder:n,required:r,readonly:i,disabled:s,type:o,value:a,onChange:l,onChangeOverride:c,onBlur:u,onFocus:d,autofocus:m,options:y,schema:f,rawErrors:p=[],children:b,extraProps:w,className:S,registry:E}){const{ClearButton:O}=E.templates.ButtonTemplates,g={...w,...eu(f,o,y)},v=({target:{value:C}})=>l(C===""?y.emptyValue:C),j=({target:C})=>u(e,C&&C.value),x=({target:C})=>d(e,C&&C.value),A=P.useCallback(C=>{var _;C.preventDefault(),C.stopPropagation(),l((_=y.emptyValue)!==null&&_!==void 0?_:"")},[l,y.emptyValue]);return h.jsxs("div",{className:"p-0.5",children:[h.jsx(Vu,{id:e,name:t||e,type:o,placeholder:n,autoFocus:m,required:r,disabled:s,readOnly:i,className:ne({"border-destructive focus-visible:ring-0":p.length>0},S),list:f.examples?hi(e):void 0,...g,value:a||a===0?a:"",onChange:c||v,onBlur:j,onFocus:x,"aria-describedby":De(e,!!f.examples)}),y.allowClearTextInputs&&!i&&!s&&a&&h.jsx(O,{onClick:A,registry:E}),b,h.jsx(Su,{id:e,schema:f})]})}function fO({id:e,description:t,registry:n,uiSchema:r}){return t?h.jsx("div",{children:h.jsx("div",{id:e,className:"text-sm text-muted-foreground",children:h.jsx(go,{description:t,registry:n,uiSchema:r})})}):null}const mO=_s("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"}},defaultVariants:{variant:"default"}});function hO({className:e,variant:t,...n}){return h.jsx("div",{"data-slot":"alert",role:"alert",className:ne(mO({variant:t}),e),...n})}function pO({className:e,...t}){return h.jsx("div",{"data-slot":"alert-title",className:ne("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",e),...t})}function gO({className:e,...t}){return h.jsx("div",{"data-slot":"alert-description",className:ne("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",e),...t})}function yO({errors:e,registry:t}){const{translateString:n}=t;return h.jsxs(hO,{variant:"destructive",className:"mb-2",children:[h.jsx(sj,{className:"h-4 w-4"}),h.jsx(pO,{children:n(ee.ErrorsLabel)}),h.jsx(gO,{className:"flex flex-col gap-1",children:e.map((r,i)=>h.jsxs("span",{children:["• ",r.stack]},i))})]})}function bO(e){const{errors:t=[],fieldPathId:n}=e;if(t.length===0)return null;const r=oo(n);return h.jsx("div",{className:"flex flex-col gap-1",id:r,children:t.map((i,s)=>h.jsx("span",{className:"text-xs font-medium text-destructive mb-1",children:i},s))})}function xO(e){const{fieldPathId:t,help:n,uiSchema:r,registry:i,hasErrors:s}=e;return n?h.jsx("span",{className:ne("text-xs font-medium text-muted-foreground",{"text-destructive":s}),id:ao(t),children:h.jsx(yo,{help:n,registry:i,uiSchema:r})}):null}function vO({id:e,children:t,displayLabel:n,rawErrors:r=[],errors:i,help:s,description:o,rawDescription:a,classNames:l,style:c,disabled:u,label:d,hidden:m,onKeyRename:y,onKeyRenameBlur:f,onRemoveProperty:p,readonly:b,required:w,schema:S,uiSchema:E,registry:O}){const g=H(E),v=K("WrapIfAdditionalTemplate",O,g);if(m)return h.jsx("div",{className:"hidden",children:t});const j=g.widget==="checkbox";return h.jsx(v,{classNames:l,style:c,disabled:u,id:e,label:d,displayLabel:n,onKeyRename:y,onKeyRenameBlur:f,onRemoveProperty:p,rawDescription:a,readonly:b,required:w,schema:S,uiSchema:E,registry:O,children:h.jsxs("div",{className:"flex flex-col gap-2",children:[n&&!j&&h.jsxs("label",{className:ne("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{" text-destructive":r.length>0}),htmlFor:e,children:[d,w?"*":null]}),t,n&&a&&!j&&h.jsx("span",{className:ne("text-xs font-medium text-muted-foreground",{" text-destructive":r.length>0}),children:o}),i,s]})})}function SO(e){const{children:t,column:n,className:r,...i}=e;return h.jsx("div",{className:ne("grid gap-2",r),...i,children:t})}function wO(e){const{icon:t,iconType:n,className:r,uiSchema:i,registry:s,...o}=e;return h.jsx(vo,{size:"icon",variant:"outline",className:r,...o,type:"button",children:t})}const Fn=P.memo(wO);function jO(e){const{registry:{translateString:t}}=e;return h.jsx(Fn,{title:t(ee.CopyButton),...e,icon:h.jsx(uj,{className:"h-4 w-4"})})}const OO=P.memo(jO);function EO(e){const{registry:{translateString:t}}=e;return h.jsx(Fn,{title:t(ee.MoveDownButton),...e,icon:h.jsx(Au,{className:"h-4 w-4"})})}const AO=P.memo(EO);function CO(e){const{registry:{translateString:t}}=e;return h.jsx(Fn,{title:t(ee.MoveUpButton),...e,icon:h.jsx(rj,{className:"h-4 w-4"})})}const _O=P.memo(CO);function IO(e){const{registry:{translateString:t}}=e;return h.jsx(Fn,{title:t(ee.RemoveButton),...e,className:"border-destructive",icon:h.jsx(hj,{className:"h-4 w-4 stroke-destructive"})})}const qu=P.memo(IO);function TO(e){const{registry:{translateString:t}}=e;return h.jsx(Fn,{title:t(ee.ClearButton),...e,icon:h.jsx(_u,{})})}const PO=P.memo(TO);function NO({selector:e,optionSchemaField:t}){return h.jsxs("div",{className:ne("p-4 border rounded-md bg-background shadow-sm"),children:[h.jsx("div",{className:ne("mb-4"),children:e}),t]})}function kO({description:e,title:t,properties:n,required:r,uiSchema:i,fieldPathId:s,schema:o,formData:a,optionalDataControl:l,onAddProperty:c,disabled:u,readonly:d,registry:m}){const y=H(i),f=K("TitleFieldTemplate",m,y),p=K("DescriptionFieldTemplate",m,y),b=!d&&!u,{ButtonTemplates:{AddButton:w}}=m.templates;return h.jsxs(h.Fragment,{children:[t&&h.jsx(f,{id:pi(s),title:t,required:r,schema:o,uiSchema:i,registry:m,optionalDataControl:b?l:void 0}),e&&h.jsx(p,{id:rn(s),description:e,schema:o,uiSchema:i,registry:m}),h.jsxs("div",{className:"flex flex-col gap-2",children:[b?void 0:l,n.map(S=>h.jsx("div",{className:`${S.hidden?"hidden":""} flex`,children:h.jsx("div",{className:"w-full",children:S.content})},S.name)),Fl(o,i,a)?h.jsx("div",{className:"mt-2 flex justify-end",children:h.jsx(w,{id:it(s,"add"),onClick:c,disabled:u||d,className:"rjsf-object-property-expand",uiSchema:i,registry:m})}):null]})]})}function FO(e){const{id:t,registry:n,label:r,onAddClick:i,onRemoveClick:s}=e;return i?h.jsx(Fn,{id:t,registry:n,className:"rjsf-add-optional-data",onClick:i,title:r,icon:h.jsx(Cu,{}),size:"xs"}):s?h.jsx(qu,{id:t,registry:n,className:"rjsf-remove-optional-data",onClick:s,title:r,size:"xs"}):h.jsx("em",{id:t,children:r})}function $O(e){const{submitText:t,norender:n,props:r}=tu(e.uiSchema);return n?null:h.jsx("div",{children:h.jsx(vo,{type:"submit",...r,className:ne("my-2",r?.className),children:t})})}function Wu({className:e,orientation:t="horizontal",decorative:n=!0,...r}){return h.jsx(Od,{"data-slot":"separator",decorative:n,orientation:t,className:ne("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...r})}function RO({id:e,title:t,uiSchema:n,optionalDataControl:r}){const i=H(n);let s=h.jsx("h5",{children:i.title||t});return r&&(s=h.jsxs("div",{className:"flex flex-row",children:[h.jsx("div",{className:"flex-grow",children:s}),h.jsx("div",{className:"flex",children:r})]})),h.jsxs("div",{id:e,className:"my-1 flex flex-col gap-0.5",children:[s,h.jsx(Wu,{dir:"horizontal",style:{height:"1px"},className:"my-1"})]})}function DO({classNames:e,style:t,children:n,disabled:r,id:i,label:s,displayLabel:o,onRemoveProperty:a,onKeyRenameBlur:l,rawDescription:c,readonly:u,required:d,schema:m,uiSchema:y,registry:f}){const{templates:p,translateString:b}=f,{RemoveButton:w}=p.ButtonTemplates,S=b(ee.KeyLabel,[s]);if(!(mt in m))return h.jsx("div",{className:e,style:t,children:n});const g=o?22+(c?-28:0):0,v=`${i}-key`;return h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:`grid grid-cols-12 col-span-12 items-center gap-2 ${e}`,style:t,children:[h.jsx("div",{className:"grid gap-2 col-span-5",children:h.jsxs("div",{className:"flex flex-col gap-2",children:[o&&h.jsx("label",{htmlFor:v,className:"text-sm font-medium text-muted-foreground leading-none",children:S}),h.jsx("div",{className:"pl-0.5",children:h.jsx(Vu,{required:d,defaultValue:s,disabled:r||u,id:v,name:v,onBlur:u?void 0:l,type:"text",className:"w-full border shadow-sm"},s)}),!!c&&h.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:h.jsx("div",{className:"text-sm text-muted-foreground",children:" "})})]})}),h.jsx("div",{className:"grid gap-2 col-span-6 pr-0.5",children:n}),h.jsx("div",{className:"grid gap-2 col-span-1",style:{marginTop:`${g}px`},children:h.jsx(w,{id:it(i,"remove"),iconType:"block",className:"rjsf-object-property-remove w-full",disabled:r||u,onClick:a,uiSchema:y,registry:f})})]}),h.jsx(Wu,{dir:"horizontal",className:"mt-2"})]})}function MO(){return{ArrayFieldItemTemplate:cO,ArrayFieldTemplate:uO,BaseInputTemplate:dO,ButtonTemplates:{AddButton:lO,CopyButton:OO,MoveDownButton:AO,MoveUpButton:_O,RemoveButton:qu,SubmitButton:$O,ClearButton:PO},DescriptionFieldTemplate:fO,ErrorListTemplate:yO,FieldErrorTemplate:bO,FieldHelpTemplate:xO,FieldTemplate:vO,GridTemplate:SO,MultiSchemaFieldTemplate:NO,ObjectFieldTemplate:kO,OptionalDataControlsTemplate:FO,TitleFieldTemplate:RO,WrapIfAdditionalTemplate:DO}}function UO(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var LO=["color"],BO=P.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=UO(e,LO);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),P.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});function Hu({className:e,...t}){return h.jsx(Ed,{"data-slot":"checkbox",className:ne("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:h.jsx(Ad,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:h.jsx(BO,{className:"size-3.5"})})})}function So({className:e,...t}){return h.jsx(Cd,{"data-slot":"label",className:ne("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}function zO({id:e,htmlName:t,disabled:n,options:r,value:i,autofocus:s,readonly:o,required:a,onChange:l,onBlur:c,onFocus:u,className:d}){const{enumOptions:m,enumDisabled:y,inline:f,emptyValue:p}=r,b=Nn(r),w=Array.isArray(i)?i:[i],S=({target:O})=>c(e,Fe(O&&O.value,m,b,p)),E=({target:O})=>u(e,Fe(O&&O.value,m,b,p));return h.jsx("div",{className:ne({"flex flex-col gap-2":!f,"flex flex-row gap-4 flex-wrap":f}),children:Array.isArray(m)&&m.map((O,g)=>{const v=jr(O.value,w),j=Array.isArray(y)&&y.includes(O.value),x=qt(e,g);return h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(Hu,{id:x,name:t||e,required:a,disabled:n||j||o,onCheckedChange:A=>{l(A?Zc(g,w,m):Yc(g,w,m))},className:d,checked:v,autoFocus:s&&g===0,onBlur:S,onFocus:E,"aria-describedby":De(e)}),h.jsx(So,{className:"leading-tight",htmlFor:qt(e,g),children:O.label})]},x)})})}function VO(e){const{id:t,htmlName:n,value:r,disabled:i,readonly:s,label:o,hideLabel:a,schema:l,autofocus:c,options:u,onChange:d,onBlur:m,onFocus:y,registry:f,uiSchema:p,className:b}=e,w=ir(l),S=K("DescriptionFieldTemplate",f,u),E=j=>d(j),O=()=>m(t,r),g=()=>y(t,r),v=u.description||l.description;return h.jsxs("div",{className:`relative ${i||s?"cursor-not-allowed opacity-50":""}`,"aria-describedby":De(t),children:[!a&&v&&h.jsx(S,{id:rn(t),description:v,schema:l,uiSchema:p,registry:f}),h.jsxs("div",{className:"flex items-center gap-2 my-2",children:[h.jsx(Hu,{id:t,name:n||t,checked:typeof r>"u"?!1:!!r,required:w,disabled:i||s,autoFocus:c,onCheckedChange:E,onBlur:O,onFocus:g,className:b}),h.jsx(So,{className:"leading-tight",htmlFor:t,children:ru(o,a||!o)})]})]})}function qO({className:e,...t}){return h.jsx(cf,{"data-slot":"radio-group",className:ne("grid gap-3",e),...t})}function WO({className:e,...t}){return h.jsx(uf,{"data-slot":"radio-group-item",className:ne("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:h.jsx(df,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:h.jsx(lj,{className:"fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})})})}function HO({id:e,options:t,value:n,required:r,disabled:i,readonly:s,onChange:o,onBlur:a,onFocus:l,className:c}){const{enumOptions:u,enumDisabled:d,emptyValue:m}=t,y=Nn(t),f=S=>o(Fe(S,u,y,m)),p=({target:S})=>a(e,Fe(S&&S.value,u,y,m)),b=({target:S})=>l(e,Fe(S&&S.value,u,y,m)),w=!!(t&&t.inline);return h.jsx("div",{className:"mb-0",children:h.jsx(qO,{defaultValue:n?.toString(),required:r,disabled:i||s,onValueChange:S=>{f(S)},onBlur:p,onFocus:b,"aria-describedby":De(e),orientation:w?"horizontal":"vertical",className:ne("flex flex-wrap",{"flex-col":!w},c),children:Array.isArray(u)&&u.map((S,E)=>{const O=Array.isArray(d)&&d.includes(S.value),g=jr(S.value,n);return h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(WO,{checked:g,value:Or(S.value,E,y),id:qt(e,E),disabled:O}),h.jsx(So,{className:"leading-tight",htmlFor:qt(e,E),children:S.label})]},qt(e,E))})})})}var Gu=["PageUp","PageDown"],Ku=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Yu={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},$n="Slider",[Ss,GO,KO]=Id($n),[Ju]=Nd($n,[KO]),[YO,bi]=Ju($n),Zu=P.forwardRef((e,t)=>{const{name:n,min:r=0,max:i=100,step:s=1,orientation:o="horizontal",disabled:a=!1,minStepsBetweenThumbs:l=0,defaultValue:c=[r],value:u,onValueChange:d=()=>{},onValueCommit:m=()=>{},inverted:y=!1,form:f,...p}=e,b=P.useRef(new Set),w=P.useRef(0),E=o==="horizontal"?JO:ZO,[O=[],g]=_d({prop:u,defaultProp:c,onChange:_=>{[...b.current][w.current]?.focus(),d(_)}}),v=P.useRef(O);function j(_){const I=nE(O,_);C(_,I)}function x(_){C(_,w.current)}function A(){const _=v.current[w.current];O[w.current]!==_&&m(O)}function C(_,I,{commit:T}={commit:!1}){const k=oE(s),N=aE(Math.round((_-r)/s)*s+r,k),F=Al(N,[r,i]);g((M=[])=>{const z=eE(M,F,I);if(sE(z,l*s)){w.current=z.indexOf(F);const V=String(z)!==String(M);return V&&T&&m(z),V?z:M}else return M})}return h.jsx(YO,{scope:e.__scopeSlider,name:n,disabled:a,min:r,max:i,valueIndexToChangeRef:w,thumbs:b.current,values:O,orientation:o,form:f,children:h.jsx(Ss.Provider,{scope:e.__scopeSlider,children:h.jsx(Ss.Slot,{scope:e.__scopeSlider,children:h.jsx(E,{"aria-disabled":a,"data-disabled":a?"":void 0,...p,ref:t,onPointerDown:fn(p.onPointerDown,()=>{a||(v.current=O)}),min:r,max:i,inverted:y,onSlideStart:a?void 0:j,onSlideMove:a?void 0:x,onSlideEnd:a?void 0:A,onHomeKeyDown:()=>!a&&C(r,0,{commit:!0}),onEndKeyDown:()=>!a&&C(i,O.length-1,{commit:!0}),onStepKeyDown:({event:_,direction:I})=>{if(!a){const N=Gu.includes(_.key)||_.shiftKey&&Ku.includes(_.key)?10:1,F=w.current,M=O[F],z=s*N*I;C(M+z,F,{commit:!0})}}})})})})});Zu.displayName=$n;var[Xu,Qu]=Ju($n,{startEdge:"left",endEdge:"right",size:"width",direction:1}),JO=P.forwardRef((e,t)=>{const{min:n,max:r,dir:i,inverted:s,onSlideStart:o,onSlideMove:a,onSlideEnd:l,onStepKeyDown:c,...u}=e,[d,m]=P.useState(null),y=_n(t,E=>m(E)),f=P.useRef(void 0),p=Td(i),b=p==="ltr",w=b&&!s||!b&&s;function S(E){const O=f.current||d.getBoundingClientRect(),g=[0,O.width],j=wo(g,w?[n,r]:[r,n]);return f.current=O,j(E-O.left)}return h.jsx(Xu,{scope:e.__scopeSlider,startEdge:w?"left":"right",endEdge:w?"right":"left",direction:w?1:-1,size:"width",children:h.jsx(ed,{dir:p,"data-orientation":"horizontal",...u,ref:y,style:{...u.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:E=>{const O=S(E.clientX);o?.(O)},onSlideMove:E=>{const O=S(E.clientX);a?.(O)},onSlideEnd:()=>{f.current=void 0,l?.()},onStepKeyDown:E=>{const g=Yu[w?"from-left":"from-right"].includes(E.key);c?.({event:E,direction:g?-1:1})}})})}),ZO=P.forwardRef((e,t)=>{const{min:n,max:r,inverted:i,onSlideStart:s,onSlideMove:o,onSlideEnd:a,onStepKeyDown:l,...c}=e,u=P.useRef(null),d=_n(t,u),m=P.useRef(void 0),y=!i;function f(p){const b=m.current||u.current.getBoundingClientRect(),w=[0,b.height],E=wo(w,y?[r,n]:[n,r]);return m.current=b,E(p-b.top)}return h.jsx(Xu,{scope:e.__scopeSlider,startEdge:y?"bottom":"top",endEdge:y?"top":"bottom",size:"height",direction:y?1:-1,children:h.jsx(ed,{"data-orientation":"vertical",...c,ref:d,style:{...c.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:p=>{const b=f(p.clientY);s?.(b)},onSlideMove:p=>{const b=f(p.clientY);o?.(b)},onSlideEnd:()=>{m.current=void 0,a?.()},onStepKeyDown:p=>{const w=Yu[y?"from-bottom":"from-top"].includes(p.key);l?.({event:p,direction:w?-1:1})}})})}),ed=P.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:i,onSlideEnd:s,onHomeKeyDown:o,onEndKeyDown:a,onStepKeyDown:l,...c}=e,u=bi($n,n);return h.jsx(gr.span,{...c,ref:t,onKeyDown:fn(e.onKeyDown,d=>{d.key==="Home"?(o(d),d.preventDefault()):d.key==="End"?(a(d),d.preventDefault()):Gu.concat(Ku).includes(d.key)&&(l(d),d.preventDefault())}),onPointerDown:fn(e.onPointerDown,d=>{const m=d.target;m.setPointerCapture(d.pointerId),d.preventDefault(),u.thumbs.has(m)?m.focus():r(d)}),onPointerMove:fn(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&i(d)}),onPointerUp:fn(e.onPointerUp,d=>{const m=d.target;m.hasPointerCapture(d.pointerId)&&(m.releasePointerCapture(d.pointerId),s(d))})})}),td="SliderTrack",nd=P.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,i=bi(td,n);return h.jsx(gr.span,{"data-disabled":i.disabled?"":void 0,"data-orientation":i.orientation,...r,ref:t})});nd.displayName=td;var ws="SliderRange",rd=P.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,i=bi(ws,n),s=Qu(ws,n),o=P.useRef(null),a=_n(t,o),l=i.values.length,c=i.values.map(m=>od(m,i.min,i.max)),u=l>1?Math.min(...c):0,d=100-Math.max(...c);return h.jsx(gr.span,{"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,...r,ref:a,style:{...e.style,[s.startEdge]:u+"%",[s.endEdge]:d+"%"}})});rd.displayName=ws;var js="SliderThumb",id=P.forwardRef((e,t)=>{const n=GO(e.__scopeSlider),[r,i]=P.useState(null),s=_n(t,a=>i(a)),o=P.useMemo(()=>r?n().findIndex(a=>a.ref.current===r):-1,[n,r]);return h.jsx(XO,{...e,ref:s,index:o})}),XO=P.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:i,...s}=e,o=bi(js,n),a=Qu(js,n),[l,c]=P.useState(null),u=_n(t,S=>c(S)),d=l?o.form||!!l.closest("form"):!0,m=Pd(l),y=o.values[r],f=y===void 0?0:od(y,o.min,o.max),p=tE(r,o.values.length),b=m?.[a.size],w=b?rE(b,f,a.direction):0;return P.useEffect(()=>{if(l)return o.thumbs.add(l),()=>{o.thumbs.delete(l)}},[l,o.thumbs]),h.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${f}% + ${w}px)`},children:[h.jsx(Ss.ItemSlot,{scope:e.__scopeSlider,children:h.jsx(gr.span,{role:"slider","aria-label":e["aria-label"]||p,"aria-valuemin":o.min,"aria-valuenow":y,"aria-valuemax":o.max,"aria-orientation":o.orientation,"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,tabIndex:o.disabled?void 0:0,...s,ref:u,style:y===void 0?{display:"none"}:e.style,onFocus:fn(e.onFocus,()=>{o.valueIndexToChangeRef.current=r})})}),d&&h.jsx(sd,{name:i??(o.name?o.name+(o.values.length>1?"[]":""):void 0),form:o.form,value:y},r)]})});id.displayName=js;var QO="RadioBubbleInput",sd=P.forwardRef(({__scopeSlider:e,value:t,...n},r)=>{const i=P.useRef(null),s=_n(i,r),o=kd(t);return P.useEffect(()=>{const a=i.current;if(!a)return;const l=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(l,"value").set;if(o!==t&&u){const d=new Event("input",{bubbles:!0});u.call(a,t),a.dispatchEvent(d)}},[o,t]),h.jsx(gr.input,{style:{display:"none"},...n,ref:s,defaultValue:t})});sd.displayName=QO;function eE(e=[],t,n){const r=[...e];return r[n]=t,r.sort((i,s)=>i-s)}function od(e,t,n){const s=100/(n-t)*(e-t);return Al(s,[0,100])}function tE(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function nE(e,t){if(e.length===1)return 0;const n=e.map(i=>Math.abs(i-t)),r=Math.min(...n);return n.indexOf(r)}function rE(e,t,n){const r=e/2,s=wo([0,50],[0,r]);return(r-s(t)*n)*n}function iE(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function sE(e,t){if(t>0){const n=iE(e);return Math.min(...n)>=t}return!0}function wo(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function oE(e){return(String(e).split(".")[1]||"").length}function aE(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var lE=Zu,cE=nd,uE=rd,dE=id;function fE({className:e,defaultValue:t,value:n,min:r=0,max:i=100,...s}){const o=P.useMemo(()=>Array.isArray(n)?n:Array.isArray(t)?t:[r,i],[n,t,r,i]);return h.jsxs(lE,{"data-slot":"slider",defaultValue:t,value:n,min:r,max:i,className:ne("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",e),...s,children:[h.jsx(cE,{"data-slot":"slider-track",className:ne("bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),children:h.jsx(uE,{"data-slot":"slider-range",className:ne("bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")})}),Array.from({length:o.length},(a,l)=>h.jsx(dE,{"data-slot":"slider-thumb",className:"border-primary bg-background ring-ring/50 block size-4 shrink-0 rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"},l))]})}const mE=["name","min","max","step","orientation","disabled","defaultValue","value","onValueChange","className","dir","inverted","minStepsBetweenThumbs"];function hE({value:e,readonly:t,disabled:n,options:r,schema:i,onChange:s,label:o,id:a}){const l=d=>s(d[0]),c={...Qc(i)},u={id:a,...ro(r.props||{},mE)};return h.jsxs(h.Fragment,{children:[h.jsx(fE,{disabled:n||t,min:c.min,max:c.max,step:c.step,value:[e],onValueChange:l,...u,"aria-describedby":De(a)}),e]})}const pE=_s("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function gE({className:e,variant:t,asChild:n=!1,...r}){const i=n?jl:"span";return h.jsx(i,{"data-slot":"badge",className:ne(pE({variant:t}),e),...r})}const ad=P.forwardRef(({className:e,...t},n)=>h.jsx(Zt,{ref:n,"data-slot":"command",className:ne("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})),yE=P.forwardRef(({className:e,...t},n)=>h.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[h.jsx(fj,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),h.jsx(Zt.Input,{ref:n,className:ne("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));yE.displayName=Zt.Input.displayName;function ld({className:e,...t}){return h.jsx(Zt.List,{"data-slot":"command-list",className:ne("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}function cd({className:e,...t}){return h.jsx(Zt.Group,{"data-slot":"command-group",className:ne("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...t})}function ud({className:e,...t}){return h.jsx(Zt.Item,{"data-slot":"command-item",className:ne("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function bE({multiple:e,items:t=[],selected:n,onValueChange:r,autoFocus:i=!1,disabled:s=!1,ariaDescribedby:o,ariaPlaceholder:a,onFocus:l,onBlur:c,className:u,id:d}){const m=P.useRef(null),[y,f]=P.useState(!1),[p,b]=P.useState(""),w=P.useMemo(()=>t.filter(j=>n.some(x=>Vr(j.value,x))),[t,n]),S=P.useMemo(()=>t.filter(j=>!w.some(x=>Vr(x.value,j.value))),[t,w]),E=P.useCallback(j=>{if(s)return;const x=w.filter(A=>!Vr(A.value,j.value));r?.(x.map(A=>A.index))},[w,r,s]),O=P.useCallback(j=>{if(!(s||!m.current||m.current.value!==""))if(j.key==="Delete"||j.key==="Backspace"){const x=w.slice(0,-1);r?.(x.map(A=>A.index))}else j.key==="Escape"&&m.current.blur()},[w,r,s]),g=P.useCallback(j=>{if(s)return;b("");const x=e?[...w,j]:[j];r?.(x.map(A=>A.index))},[e,w,r,s]),v=P.useCallback(j=>{s||f(!0),l?.(j)},[s,l]);return h.jsxs(ad,{onKeyDown:O,className:ne("overflow-visible bg-transparent",u),autoFocus:i,"aria-disabled":s,onBlur:c,onFocus:v,"aria-describedby":o,"aria-placeholder":a,children:[h.jsx("div",{className:ne("group border border-input px-3 py-2 text-sm ring-offset-background rounded-md focus-within:ring-1 focus-within:ring-ring focus-within:ring-offset-1",s&&"opacity-50 cursor-not-allowed"),children:h.jsxs("div",{className:"flex gap-1 flex-wrap",children:[w.map(j=>h.jsxs(gE,{variant:"secondary",children:[j.label,h.jsx("button",{type:"button",className:"rtl:mr-1 ltr:ml-1 ring-offset-background rounded-full outline-none focus:ring-1 focus:ring-ring focus:ring-offset-1",onKeyDown:x=>x.key==="Enter"&&!s&&E(j),onMouseDown:x=>{x.preventDefault(),x.stopPropagation()},onClick:()=>E(j),disabled:s,children:h.jsx(_u,{className:ne("h-3 w-3 text-muted-foreground hover:text-foreground",s&&"pointer-events-none")})})]},j.value)),h.jsx(Zt.Input,{ref:m,value:p,onValueChange:b,onBlur:()=>f(!1),onFocus:()=>!s&&f(!0),placeholder:"Select ...",className:"rtl:mr-2 ltr:ml-2 bg-transparent outline-none placeholder:text-muted-foreground flex-1",disabled:s,"aria-controls":`command-item-input-${d}`,"aria-labelledby":`command-item-input-${d}`,id:`command-item-input-${d}`})]})}),y&&!s&&S.length>0&&h.jsx("div",{className:"relative mt-2",children:h.jsx("div",{className:"absolute w-full z-10 top-0 rounded-md border bg-popover text-popover-foreground shadow-md outline-none animate-in",children:h.jsx(cd,{className:"h-full overflow-auto",children:h.jsx(ld,{children:S.map(j=>h.jsx(ud,{disabled:j.disabled,onMouseDown:x=>{x.preventDefault(),x.stopPropagation()},"aria-controls":`${j.value}-command-item`,"aria-labelledby":`${j.value}-command-item`,id:`${j.value}-command-item`,onSelect:()=>g(j),className:"cursor-pointer",children:j.label},`${j.value}-command-item`))})})})})]})}function xE({items:e,selected:t,onValueChange:n,autoFocus:r=!1,disabled:i=!1,required:s=!1,placeholder:o="Select...",ariaDescribedby:a,ariaPlaceholder:l,onFocus:c,onBlur:u,className:d}){const[m,y]=P.useState(!1),f=e?.find(S=>S.value===t),p=P.useRef(null),b=P.useRef(null);P.useEffect(()=>{m&&p.current&&requestAnimationFrame(()=>{var S;(S=p.current)===null||S===void 0||S.scrollIntoView({block:"nearest"})})},[m]);const w=S=>{b.current&&!b.current.contains(S.relatedTarget)&&y(!1),u?.(S)};return h.jsxs(ad,{ref:b,className:ne("overflow-visible bg-transparent",d),autoFocus:r,"aria-disabled":i,onBlur:w,onFocus:c,"aria-describedby":a,"aria-placeholder":l,children:[h.jsxs("div",{role:"button",tabIndex:i?-1:0,onClick:()=>!i&&y(!m),onKeyDown:S=>(S.key==="Enter"||S.key===" ")&&!i&&y(!m),className:ne("flex h-9 w-full items-center justify-between gap-2 whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50",!f&&s&&"border-red-500",i&&"opacity-50 cursor-not-allowed",d),children:[h.jsx("span",{className:ne("flex-1 line-clamp-1",!f&&"text-muted-foreground"),children:f?.label||o}),h.jsx(Au,{className:"h-4 w-4 opacity-50"})]}),h.jsx("div",{className:"relative",children:m&&e&&e.length>0?h.jsx("div",{style:{top:"0.5rem"},className:"absolute w-full z-10 rounded-md border bg-popover text-popover-foreground shadow-md outline-none",children:h.jsx(cd,{className:"h-full overflow-auto",children:h.jsx(ld,{children:e.map(S=>h.jsxs(ud,{ref:S.value===t?p:void 0,onMouseDown:E=>{E.preventDefault(),E.stopPropagation()},onSelect:()=>{S.disabled||(n?.(S.value),y(!1))},className:ne("cursor-pointer relative flex items-center justify-between rounded-sm py-1.5 gap-2 rtl:flex-row-reverse",S.value===t&&"font-semibold",S.disabled&&"opacity-50 cursor-not-allowed"),children:[h.jsx("span",{children:S.label}),h.jsx("span",{className:"flex h-3.5 w-3.5 items-center justify-center",children:S.value===t&&h.jsx(ej,{className:"h-4 w-4"})})]},S.value))})})}):null})]})}function vE({id:e,options:t,required:n,disabled:r,readonly:i,value:s,multiple:o,autofocus:a,onChange:l,onBlur:c,onFocus:u,placeholder:d,rawErrors:m=[],className:y}){const{enumOptions:f,enumDisabled:p,emptyValue:b}=t,w=Nn(t),S=()=>{u(e,Fe(s,f,w,b))},E=()=>{c(e,Fe(s,f,w,b))},O=f?.map(({value:v,label:j},x)=>({value:o?v:Or(v,x,w),label:j,index:x,disabled:Array.isArray(p)&&p.includes(v)})),g=ne({"border-destructive":m.length>0},y);return h.jsx("div",{className:"p-0.5",children:o?h.jsx(bE,{id:e,autoFocus:a,disabled:r||i,multiple:!0,className:g,items:O,selected:s,onValueChange:v=>{l(Fe(v.map(String),f,w,b))},onFocus:S,onBlur:E}):h.jsx(xE,{items:O,selected:Jc(s,f,!1,w,""),onValueChange:v=>{l(Fe(v,f,w,b))},autoFocus:a,disabled:r||i,required:n,placeholder:d,className:g,onFocus:S,onBlur:E,ariaDescribedby:De(e)})})}function SE({className:e,...t}){return h.jsx("textarea",{"data-slot":"textarea",className:ne("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),...t})}function wE({id:e,htmlName:t,placeholder:n,value:r,required:i,disabled:s,autofocus:o,readonly:a,onBlur:l,onFocus:c,onChange:u,options:d,className:m}){const y=({target:{value:b}})=>u(b===""?d.emptyValue:b),f=({target:b})=>l(e,b&&b.value),p=({target:b})=>c(e,b&&b.value);return h.jsx("div",{className:"flex p-0.5",children:h.jsx(SE,{id:e,name:t||e,placeholder:n,disabled:s,readOnly:a,value:r??"",required:i,autoFocus:o,rows:d.rows||5,onChange:y,onBlur:f,onFocus:p,"aria-describedby":De(e),className:m})})}function jE(){return{CheckboxWidget:VO,CheckboxesWidget:zO,RadioWidget:HO,RangeWidget:hE,SelectWidget:vE,TextareaWidget:wE}}function OE(){return{templates:MO(),widgets:jE()}}function EE(){return Nw(OE())}const AE=EE();function CE(e){const t=Te.c(21),{virtualMcp:n,isSelected:r}=e,i=r&&"bg-accent";let s;t[0]!==i?(s=ei("flex items-start gap-3 py-3 px-3 hover:bg-accent cursor-pointer rounded-xl transition-colors",i),t[0]=i,t[1]=s):s=t[1];let o;t[2]!==n.icon||t[3]!==n.title?(o=h.jsx(Cl,{icon:n.icon,name:n.title,size:"sm"}),t[2]=n.icon,t[3]=n.title,t[4]=o):o=t[4];let a;t[5]!==n.title?(a=h.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:n.title}),t[5]=n.title,t[6]=a):a=t[6];let l;t[7]!==r?(l=r&&h.jsx(Sf,{size:16,className:"text-foreground shrink-0"}),t[7]=r,t[8]=l):l=t[8];let c;t[9]!==a||t[10]!==l?(c=h.jsxs("div",{className:"flex items-center justify-between",children:[a,l]}),t[9]=a,t[10]=l,t[11]=c):c=t[11];let u;t[12]!==n.description?(u=n.description&&h.jsx("p",{className:"text-xs text-muted-foreground line-clamp-1 leading-relaxed",children:n.description}),t[12]=n.description,t[13]=u):u=t[13];let d;t[14]!==c||t[15]!==u?(d=h.jsxs("div",{className:"flex flex-col flex-1 min-w-0 gap-0.5",children:[c,u]}),t[14]=c,t[15]=u,t[16]=d):d=t[16];let m;return t[17]!==s||t[18]!==o||t[19]!==d?(m=h.jsxs("div",{className:s,children:[o,d]}),t[17]=s,t[18]=o,t[19]=d,t[20]=m):m=t[20],m}function _E(){const e=Te.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=h.jsx("div",{className:"flex items-center justify-center py-12",children:h.jsx(Is,{size:20,className:"animate-spin text-muted-foreground"})}),e[0]=t):t=e[0],t}function IE(e){const t=Te.c(33),{selectedVirtualMcpId:n,onVirtualMcpChange:r,searchInputRef:i}=e,s=vf(),[o,a]=P.useState(""),l=P.useRef(null),c=i??l;let u;t[0]===Symbol.for("react.memo_cache_sentinel")?(u={navigateOnCreate:!0},t[0]=u):u=t[0];const{createVirtualMCP:d,isCreating:m}=Ef(u);let y,f,p,b;if(t[1]!==d||t[2]!==c||t[3]!==m||t[4]!==r||t[5]!==o||t[6]!==n||t[7]!==s){let E;e:{const I=s.filter(TE);if(!o.trim()){E=I;break e}const T=o.toLowerCase();E=I.filter(k=>k.title.toLowerCase().includes(T)||k.description?.toLowerCase().includes(T))}const O=E;let g;t[12]!==r?(g=I=>{r(I),a("")},t[12]=r,t[13]=g):g=t[13];const v=g;p="flex flex-col max-h-[min(400px,60dvh)]";let j;t[14]===Symbol.for("react.memo_cache_sentinel")?(j=h.jsx(wf,{size:16,className:"text-muted-foreground pointer-events-none shrink-0"}),t[14]=j):j=t[14];let x;t[15]===Symbol.for("react.memo_cache_sentinel")?(x=I=>a(I.target.value),t[15]=x):x=t[15];let A;t[16]!==c||t[17]!==o?(A=h.jsx(ff,{ref:c,type:"text",placeholder:"Search for an agent...",value:o,onChange:x,className:"flex-1 h-8 text-sm border-0 focus-visible:ring-0 focus-visible:ring-offset-0 shadow-none p-0"}),t[16]=c,t[17]=o,t[18]=A):A=t[18];const C=m?"Creating...":"Create Agent";let _;t[19]!==d||t[20]!==m||t[21]!==C?(_=h.jsx(ti,{onClick:d,variant:"outline",size:"sm",className:"h-8 px-3 rounded-lg text-sm font-medium shrink-0",disabled:m,children:C}),t[19]=d,t[20]=m,t[21]=C,t[22]=_):_=t[22],t[23]!==A||t[24]!==_?(b=h.jsx("div",{className:"border-b px-4 py-3 bg-background/95 backdrop-blur sticky top-0 z-10",children:h.jsxs("div",{className:"relative flex items-center gap-2",children:[j,A,_]})}),t[23]=A,t[24]=_,t[25]=b):b=t[25],y="overflow-y-auto p-1.5 flex-1 min-h-0 [touch-action:pan-y]",f=O.length>0?h.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-0.5",children:O.map(I=>h.jsx("div",{role:"button",tabIndex:0,onClick:()=>v(I.id),onKeyDown:T=>{(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),v(I.id))},className:"outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 rounded-xl",children:h.jsx(CE,{virtualMcp:I,isSelected:I.id===n})},I.id))}):h.jsx("div",{className:"flex items-center justify-center py-8 text-sm text-muted-foreground",children:"No agents found"}),t[1]=d,t[2]=c,t[3]=m,t[4]=r,t[5]=o,t[6]=n,t[7]=s,t[8]=y,t[9]=f,t[10]=p,t[11]=b}else y=t[8],f=t[9],p=t[10],b=t[11];let w;t[26]!==y||t[27]!==f?(w=h.jsx("div",{className:y,children:f}),t[26]=y,t[27]=f,t[28]=w):w=t[28];let S;return t[29]!==p||t[30]!==b||t[31]!==w?(S=h.jsxs("div",{className:p,children:[b,w]}),t[29]=p,t[30]=b,t[31]=w,t[32]=S):S=t[32],S}function TE(e){return!e.id||!zd(e.id)}function PE(e){const t=Te.c(3);let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=h.jsx(_E,{}),t[0]=n):n=t[0];let r;return t[1]!==e?(r=h.jsx(P.Suspense,{fallback:n,children:h.jsx(IE,{...e})}),t[1]=e,t[2]=r):r=t[2],r}function NE(e){const t=Te.c(32),{selectedVirtualMcpId:n,selectedVirtualMcp:r,onVirtualMcpChange:i,className:s,placeholder:o,showTooltip:a,disabled:l}=e,c=o===void 0?"Select Agent":o,u=a===void 0?!0:a,d=l===void 0?!1:l,[m,y]=P.useState(!1),f=P.useRef(null);let p;t[0]!==i?(p=F=>{i(F),y(!1)},t[0]=i,t[1]=p):p=t[1];const b=p,w=Of();let S;t[2]===Symbol.for("react.memo_cache_sentinel")?(S=F=>{y(F)},t[2]=S):S=t[2];const E=S;let O,g;t[3]!==w||t[4]!==m?(O=()=>{m&&!w&&setTimeout(()=>{f.current?.focus()},0)},g=[m,w],t[3]=w,t[4]=m,t[5]=O,t[6]=g):(O=t[5],g=t[6]),P.useEffect(O,g);const v=d?!1:m,j=d?void 0:E,x=d?"cursor-not-allowed opacity-50":"cursor-pointer hover:text-muted-foreground";let A;t[7]!==s||t[8]!==x?(A=ei("relative flex items-center justify-center size-8 rounded-lg text-muted-foreground/75 transition-colors shrink-0",x,s),t[7]=s,t[8]=x,t[9]=A):A=t[9];let C;t[10]!==r?(C=r?h.jsx(Cl,{icon:r.icon,name:r.title,size:"sm",className:"absolute inset-0 size-full"}):h.jsxs(h.Fragment,{children:[h.jsxs("svg",{className:"absolute inset-0 size-full",fill:"none",children:[h.jsx("defs",{children:h.jsxs("linearGradient",{id:"agent-border-gradient",gradientUnits:"userSpaceOnUse",x1:"0",y1:"0",x2:"32",y2:"32",children:[h.jsx("animateTransform",{attributeName:"gradientTransform",type:"rotate",from:"0 16 16",to:"360 16 16",dur:"6s",repeatCount:"indefinite"}),h.jsx("stop",{offset:"0%",stopColor:"var(--chart-1)"}),h.jsx("stop",{offset:"100%",stopColor:"var(--chart-4)"})]})}),h.jsx("rect",{x:"0.5",y:"0.5",width:"31",height:"31",rx:"7.5",stroke:"url(#agent-border-gradient)",strokeWidth:"1",strokeDasharray:"3 3"})]}),h.jsx(jf,{size:16})]}),t[10]=r,t[11]=C):C=t[11];let _;t[12]!==d||t[13]!==c||t[14]!==A||t[15]!==C?(_=h.jsx(yf,{asChild:!0,children:h.jsx(mf,{asChild:!0,children:h.jsx("button",{type:"button",disabled:d,className:A,"aria-label":c,children:C})})}),t[12]=d,t[13]=c,t[14]=A,t[15]=C,t[16]=_):_=t[16];let I;t[17]!==m||t[18]!==r?.title||t[19]!==u?(I=u&&!m&&h.jsx(gf,{side:"top",className:"text-xs",children:r?.title??"Choose an agent to chat with"}),t[17]=m,t[18]=r?.title,t[19]=u,t[20]=I):I=t[20];let T;t[21]!==_||t[22]!==I?(T=h.jsx(bf,{children:h.jsxs(xf,{children:[_,I]})}),t[21]=_,t[22]=I,t[23]=T):T=t[23];let k;t[24]!==b||t[25]!==n?(k=h.jsx(hf,{className:"w-[min(550px,calc(100vw-2rem))] p-0 overflow-hidden",align:"start",side:"top",sideOffset:8,collisionPadding:16,children:h.jsx(PE,{selectedVirtualMcpId:n,onVirtualMcpChange:b,searchInputRef:f})}),t[24]=b,t[25]=n,t[26]=k):k=t[26];let N;return t[27]!==T||t[28]!==k||t[29]!==v||t[30]!==j?(N=h.jsxs(pf,{open:v,onOpenChange:j,children:[T,k]}),t[27]=T,t[28]=k,t[29]=v,t[30]=j,t[31]=N):N=t[31],N}function kE(e){const t=e.properties;if(!t)return!1;const n=t.__type,r=t.__binding;return!!(n?.const||r?.const)}function FE(e){const t=e.properties;if(!t)return{};const n=t.__type,r=t.__binding;return{bindingType:n?.const,bindingSchema:r?.const}}function $E(e){const t=Te.c(10),{bindingSchema:n,bindingType:r,currentValue:i,onValueChange:s,placeholder:o,onAddNew:a,className:l}=e;let c;t[0]!==r?(c=Gm(r),t[0]=r,t[1]=c):c=t[1];const d=c??(typeof n=="string"?n:n??void 0);let m;return t[2]!==r||t[3]!==l||t[4]!==i||t[5]!==a||t[6]!==s||t[7]!==o||t[8]!==d?(m=h.jsx(RE,{value:i,onValueChange:s,placeholder:o,binding:d,bindingType:r,onAddNew:a,className:l}),t[2]=r,t[3]=l,t[4]=i,t[5]=a,t[6]=s,t[7]=o,t[8]=d,t[9]=m):m=t[9],m}function RE({value:e,onValueChange:t,placeholder:n="Select a connection...",binding:r,bindingType:i,onAddNew:s,className:o}){const[a,l]=P.useState(!1),{installByBinding:c,isInstalling:u}=Jm(),d=a||u,m=r?void 0:i||void 0,y=Kd(r?{binding:r}:m?{filters:[{column:"app_name",value:m}]}:{}),f=Yd(e&&!y.some(S=>S.id===e)?e:void 0),p=f?[f,...y]:y,b=i?.startsWith("@"),w=async()=>{if(b&&i){l(!0);try{const S=await c(i);S&&t(S.id)}catch(S){const E=S instanceof Error?S.message:String(S);$r.error(`Failed to connect MCP: ${E}`)}finally{l(!1)}return}s?.()};return h.jsxs(rf,{value:e,onValueChange:t,children:[h.jsx(sf,{size:"sm",className:ei("w-[200px]",o),children:h.jsx(of,{placeholder:n})}),h.jsxs(af,{children:[p.length===0?h.jsx("div",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"No connections found"}):p.map(S=>h.jsx(lf,{value:S.id,children:h.jsxs("div",{className:"flex items-center gap-2",children:[S.icon?h.jsx("img",{src:S.icon,alt:S.title,className:"w-4 h-4 rounded"}):h.jsx("div",{className:"w-4 h-4 rounded bg-linear-to-br from-primary/20 to-primary/10 flex items-center justify-center text-xs font-semibold text-primary",children:S.title.slice(0,1).toUpperCase()}),h.jsx("span",{children:S.title})]})},S.id)),(s||b)&&h.jsx("div",{className:"border-t border-border",children:h.jsx(ti,{onClick:S=>{S.preventDefault(),S.stopPropagation(),w()},disabled:d,variant:"ghost",className:"w-full justify-start gap-2 px-2 py-2 h-auto hover:bg-muted rounded-md text-sm disabled:opacity-50 disabled:cursor-not-allowed",type:"button",children:d?h.jsxs(h.Fragment,{children:[h.jsx(Is,{size:16,className:"animate-spin"}),h.jsx("span",{children:"Connecting..."})]}):h.jsxs(h.Fragment,{children:[h.jsx(nf,{size:16}),h.jsx("span",{children:"Custom Connection"})]})})})]})]})}function DE(e){const t=Te.c(49),{schema:n,formData:r,title:i,description:s,registry:o}=e,a=o.formContext,l=i||"",c=i||"";if(kE(n)){const m=n;let y;t[0]!==m?(y=FE(m),t[0]=m,t[1]=y):y=t[1];const{bindingType:f,bindingSchema:p}=y,w=(a?.formData?.[l]?.value??r?.value)||"";let S;t[2]!==f||t[3]!==l||t[4]!==a||t[5]!==r?(S=N=>{const F={...r,value:N??"",...f&&{__type:f}};a?.onFieldChange(l,F)},t[2]=f,t[3]=l,t[4]=a,t[5]=r,t[6]=S):S=t[6];const E=S,O=UE;let g;t[7]!==c||t[8]!==l||t[9]!==i?(g=O(i||c||l),t[7]=c,t[8]=l,t[9]=i,t[10]=g):g=t[10];const v=g;if(f==="@deco/agent"){let N;t[11]!==v?(N=h.jsx("label",{className:"text-sm font-medium truncate block",children:v}),t[11]=v,t[12]=N):N=t[12];let F;t[13]!==s?(F=s&&h.jsx("p",{className:"text-xs text-muted-foreground truncate",children:s}),t[13]=s,t[14]=F):F=t[14];let M;t[15]!==N||t[16]!==F?(M=h.jsxs("div",{className:"flex-1 min-w-0",children:[N,F]}),t[15]=N,t[16]=F,t[17]=M):M=t[17];const z=w||void 0;let V;t[18]!==E||t[19]!==z?(V=h.jsx(NE,{selectedVirtualMcpId:z,onVirtualMcpChange:E,variant:"bordered",placeholder:"Select Agent",className:"w-[200px] shrink-0"}),t[18]=E,t[19]=z,t[20]=V):V=t[20];let D;return t[21]!==M||t[22]!==V?(D=h.jsxs("div",{className:"flex items-center gap-3 justify-between",children:[M,V]}),t[21]=M,t[22]=V,t[23]=D):D=t[23],D}let j;t[24]!==v?(j=h.jsx("label",{className:"text-sm font-medium truncate block",children:v}),t[24]=v,t[25]=j):j=t[25];let x;t[26]!==s?(x=s&&h.jsx("p",{className:"text-xs text-muted-foreground truncate",children:s}),t[26]=s,t[27]=x):x=t[27];let A;t[28]!==j||t[29]!==x?(A=h.jsxs("div",{className:"flex-1 min-w-0",children:[j,x]}),t[28]=j,t[29]=x,t[30]=A):A=t[30];let C;t[31]!==v?(C=v.toLowerCase(),t[31]=v,t[32]=C):C=t[32];const _=`Select ${C}...`;let I;t[33]!==a?(I=()=>a?.onAddNew(),t[33]=a,t[34]=I):I=t[34];let T;t[35]!==p||t[36]!==f||t[37]!==w||t[38]!==E||t[39]!==_||t[40]!==I?(T=h.jsx($E,{bindingSchema:p,bindingType:f,currentValue:w,onValueChange:E,placeholder:_,onAddNew:I,className:"w-[200px] shrink-0"}),t[35]=p,t[36]=f,t[37]=w,t[38]=E,t[39]=_,t[40]=I,t[41]=T):T=t[41];let k;return t[42]!==T||t[43]!==A?(k=h.jsxs("div",{className:"flex items-center gap-3 justify-between",children:[A,T]}),t[42]=T,t[43]=A,t[44]=k):k=t[44],k}let u;t[45]!==e.properties?(u=e.properties.map(ME),t[45]=e.properties,t[46]=u):u=t[46];let d;return t[47]!==u?(d=h.jsx("div",{className:"flex flex-col gap-4",children:u}),t[47]=u,t[48]=d):d=t[48],d}function ME(e){return e.content}function UE(e){return e.toLowerCase().replace(/_/g," ").replace(/\b\w/g,LE)}function LE(e){return e.toUpperCase()}function BE(e){const t=Te.c(13),{label:n,children:r,description:i,id:s,schema:o}=e;if(s.includes("__type")||s.includes("__binding"))return null;if(o.type==="object")return r;let a;t[0]!==s||t[1]!==n?(a=n&&h.jsx("label",{className:"text-sm font-medium truncate block",htmlFor:s,children:n}),t[0]=s,t[1]=n,t[2]=a):a=t[2];let l;t[3]!==i?(l=i&&h.jsx("div",{className:"text-xs text-muted-foreground truncate",children:i}),t[3]=i,t[4]=l):l=t[4];let c;t[5]!==a||t[6]!==l?(c=h.jsxs("div",{className:"flex-1 min-w-0",children:[a,l]}),t[5]=a,t[6]=l,t[7]=c):c=t[7];let u;t[8]!==r?(u=h.jsx("div",{className:"w-[200px] shrink-0",children:r}),t[8]=r,t[9]=u):u=t[9];let d;return t[10]!==c||t[11]!==u?(d=h.jsxs("div",{className:"flex items-center gap-3 justify-between",children:[c,u]}),t[10]=c,t[11]=u,t[12]=d):d=t[12],d}const zE={ObjectFieldTemplate:DE,FieldTemplate:BE};function VE(e){const t=Te.c(19),{formKey:n,formState:r,onFormStateChange:i,stateSchema:s}=e,{org:o}=As(),a=Fd();let l;t[0]!==i?(l=S=>{S.formData&&i(S.formData)},t[0]=i,t[1]=l):l=t[1];const c=l;let u;t[2]!==r||t[3]!==i?(u=(S,E)=>{const O={...r,[S]:E};i(O)},t[2]=r,t[3]=i,t[4]=u):u=t[4];const d=u;let m;t[5]!==a||t[6]!==o?(m=()=>{a({to:"/$org/settings/connections",params:{org:o.slug},search:{action:"create"}})},t[5]=a,t[6]=o,t[7]=m):m=t[7];const y=m;let f;t[8]!==r||t[9]!==y||t[10]!==d?(f={onFieldChange:d,formData:r,onAddNew:y},t[8]=r,t[9]=y,t[10]=d,t[11]=f):f=t[11];const p=f;let b;t[12]===Symbol.for("react.memo_cache_sentinel")?(b=h.jsx(h.Fragment,{}),t[12]=b):b=t[12];let w;return t[13]!==p||t[14]!==n||t[15]!==r||t[16]!==c||t[17]!==s?(w=h.jsx("div",{className:"flex flex-col h-full overflow-auto",children:h.jsx(AE,{schema:s,validator:Hw,formData:r,onChange:c,formContext:p,liveValidate:!1,showErrorList:!1,templates:zE,children:b},n)}),t[13]=p,t[14]=n,t[15]=r,t[16]=c,t[17]=s,t[18]=w):w=t[18],w}function qE(e){const t=Te.c(14),{org:n}=As();let r;t[0]!==e||t[1]!==n.id||t[2]!==n.slug?(r={connectionId:e,orgId:n.id,orgSlug:n.slug},t[0]=e,t[1]=n.id,t[2]=n.slug,t[3]=r):r=t[3];const i=Vd(r);let s;t[4]===Symbol.for("react.memo_cache_sentinel")?(s={},t[4]=s):s=t[4];let o;t[5]!==i?(o={client:i,toolName:"MCP_CONFIGURATION",toolArguments:s,select:WE},t[5]=i,t[6]=o):o=t[6];const{data:a}=qd(o);let l;t[7]!==a.stateSchema?(l=a.stateSchema??{type:"object",properties:{}},t[7]=a.stateSchema,t[8]=l):l=t[8];const c=l;let u;t[9]!==a.scopes?(u=a.scopes??[],t[9]=a.scopes,t[10]=u):u=t[10];const d=u;let m;return t[11]!==d||t[12]!==c?(m={stateSchema:c,scopes:d},t[11]=d,t[12]=c,t[13]=m):m=t[13],m}function WE(e){return e.structuredContent??e}function HE(e){const t=Te.c(4),{onAuthenticate:n,buttonText:r}=e,i=r===void 0?"Authenticate":r;let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=h.jsxs("div",{className:"flex flex-col gap-2",children:[h.jsx("h3",{className:"text-sm font-semibold",children:"Authentication Required"}),h.jsx("p",{className:"text-xs text-muted-foreground max-w-md text-center",children:"This connection requires OAuth authentication to access resources."})]}),t[0]=s):s=t[0];let o;return t[1]!==i||t[2]!==n?(o=h.jsx("div",{className:"flex-1 flex items-center justify-center",children:h.jsxs("div",{className:"flex flex-col items-center gap-4 max-w-md text-center",children:[s,h.jsx(ti,{onClick:n,size:"default",children:i})]})}),t[1]=i,t[2]=n,t[3]=o):o=t[3],o}function GE(e){const t=Te.c(7),{hasReadme:n,onViewReadme:r}=e;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=h.jsx(Hd,{size:36,className:"text-muted-foreground"}),t[0]=i):i=t[0];let s;t[1]===Symbol.for("react.memo_cache_sentinel")?(s=h.jsxs("div",{className:"flex flex-col gap-2",children:[h.jsx("h3",{className:"text-sm font-semibold",children:"Manual Authentication Required"}),h.jsx("p",{className:"text-xs text-muted-foreground max-w-md text-center",children:"This server requires an API key or token that must be configured manually. Check the server's documentation for instructions on obtaining credentials."})]}),t[1]=s):s=t[1];let o;t[2]!==n||t[3]!==r?(o=n&&r&&h.jsxs(ti,{onClick:r,variant:"outline",size:"lg",children:[h.jsx(Wd,{size:18,className:"mr-2"}),"View README"]}),t[2]=n,t[3]=r,t[4]=o):o=t[4];let a;return t[5]!==o?(a=h.jsx("div",{className:"flex-1 flex items-center justify-center",children:h.jsxs("div",{className:"flex flex-col items-center gap-4 max-w-md text-center",children:[i,s,o]})}),t[5]=o,t[6]=a):a=t[6],a}function KE(){const e=Te.c(2);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=h.jsx("img",{src:"/empty-state-error.svg",alt:"",width:160,height:160,"aria-hidden":"true"}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for("react.memo_cache_sentinel")?(n=h.jsx("div",{className:"flex-1 flex items-center justify-center",children:h.jsxs("div",{className:"flex flex-col items-center gap-4 max-w-md text-center",children:[t,h.jsxs("div",{className:"flex flex-col gap-2",children:[h.jsx("h3",{className:"text-lg font-semibold",children:"Server Error"}),h.jsx("p",{className:"text-sm text-muted-foreground max-w-md text-center",children:"The MCP server is currently experiencing issues. Please try again later or check the server's status."})]})]})}),e[1]=n):n=e[1],n}function YE(e){const t=Te.c(12),{connection:n,form:r}=e,{stateSchema:i}=qE(n.id);let s;t[0]!==r.control?(s={control:r.control,name:"configuration_state"},t[0]=r.control,t[1]=s):s=t[1];const o=Rd(s);let a;t[2]!==r?(a=m=>{r.setValue("configuration_state",m,{shouldDirty:!0})},t[2]=r,t[3]=a):a=t[3];const l=a;if(!(i&&i.properties&&typeof i.properties=="object"&&Object.keys(i.properties).length>0)){let m;return t[4]===Symbol.for("react.memo_cache_sentinel")?(m=h.jsx("div",{className:"flex-1 flex items-center justify-center",children:h.jsx(Ol,{image:h.jsx("img",{src:"/empty-state-success-muted.svg",alt:"",width:220,height:200,"aria-hidden":"true"}),title:"This server is all set!",description:"No additional configuration is needed. Everything is ready to go."})}),t[4]=m):m=t[4],m}let u;t[5]!==o?(u=o??{},t[5]=o,t[6]=u):u=t[6];let d;return t[7]!==n.id||t[8]!==l||t[9]!==i||t[10]!==u?(d=h.jsx("div",{className:"flex-1 overflow-auto",children:h.jsx(VE,{formKey:n.id,stateSchema:i,formState:u,onFormStateChange:l})}),t[7]=n.id,t[8]=l,t[9]=i,t[10]=u,t[11]=d):d=t[11],d}function JE(e){const t=Te.c(11),{connection:n,form:r,hasMcpBinding:i,isMCPAuthenticated:s,supportsOAuth:o,isServerError:a,onAuthenticate:l,onViewReadme:c}=e,d=!!n?.metadata?.repository?.url;if(!s){if(a){let p;return t[0]===Symbol.for("react.memo_cache_sentinel")?(p=h.jsx(KE,{}),t[0]=p):p=t[0],p}if(o){let p;return t[1]!==l?(p=h.jsx(HE,{onAuthenticate:l}),t[1]=l,t[2]=p):p=t[2],p}let f;return t[3]!==d||t[4]!==c?(f=h.jsx(GE,{hasReadme:d,onViewReadme:c}),t[3]=d,t[4]=c,t[5]=f):f=t[5],f}if(!i){let f;return t[6]===Symbol.for("react.memo_cache_sentinel")?(f=h.jsx("div",{className:"flex-1 flex items-center justify-center",children:h.jsx(Ol,{image:h.jsx("img",{src:"/empty-state-success-muted.svg",alt:"",width:220,height:200,"aria-hidden":"true"}),title:"This server is all set!",description:"No additional configuration is needed. Everything is ready to go."})}),t[6]=f):f=t[6],f}let m;t[7]===Symbol.for("react.memo_cache_sentinel")?(m=h.jsx("div",{className:"flex-1 flex items-center justify-center",children:h.jsx(Is,{size:32,className:"animate-spin text-muted-foreground"})}),t[7]=m):m=t[7];let y;return t[8]!==n||t[9]!==r?(y=h.jsx($d,{children:h.jsx(P.Suspense,{fallback:m,children:h.jsx(YE,{connection:n,form:r})})}),t[8]=n,t[9]=r,t[10]=y):y=t[10],y}function TA(e){const t=Te.c(2);let n;return t[0]!==e?(n=h.jsx("div",{className:"flex-1 flex h-full",children:h.jsx(JE,{...e})}),t[0]=e,t[1]=n):n=t[1],n}export{GE as M,HE as O,TA as S,_A as V,CA as a,AA as b,EA as c};
|