decocms 3.34.3 → 3.34.4
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-B5QG7wg7.js → AlertCircle-CzdD0HiL.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-Ce95HJs8.js → ArrowUpRight-BA7_QQtv.js} +1 -1
- package/dist/client/assets/{Check-CV74Rqqs.js → Check-DCL7RDuY.js} +1 -1
- package/dist/client/assets/{CheckCircle-BiLWpS6e.js → CheckCircle-Cx2a6H3v.js} +1 -1
- package/dist/client/assets/{ChevronDown-XKMoQgX6.js → ChevronDown-D-NGqiSH.js} +1 -1
- package/dist/client/assets/{ChevronLeft-rORK5a-Y.js → ChevronLeft-D0v1a1VK.js} +1 -1
- package/dist/client/assets/{ChevronRight-Betyx6_9.js → ChevronRight-OSZ9UQBS.js} +1 -1
- package/dist/client/assets/{ChevronUp-CGfhqWp1.js → ChevronUp-fyspqP-W.js} +1 -1
- package/dist/client/assets/{Container-Byi81M5N.js → Container-Tw3rOSi3.js} +1 -1
- package/dist/client/assets/{DotsVertical-CuchmOf0.js → DotsVertical-C4-w4Qkz.js} +1 -1
- package/dist/client/assets/{Eye-RSaOlPZv.js → Eye-BmvVeOF9.js} +1 -1
- package/dist/client/assets/{FilterLines-DuHSJmFt.js → FilterLines-DdCr16DJ.js} +1 -1
- package/dist/client/assets/{Globe01-Ds0ZgQYM.js → Globe01-DoJKg1_O.js} +1 -1
- package/dist/client/assets/{HardDrive-C0JdZ_DO.js → HardDrive-vKdqjrK9.js} +1 -1
- package/dist/client/assets/{Key01-CStdo5WX.js → Key01-K6tD8Vdh.js} +1 -1
- package/dist/client/assets/{LayoutLeft-BdQI12mG.js → LayoutLeft-takDYV-t.js} +1 -1
- package/dist/client/assets/{LinkExternal01-D7swM7zC.js → LinkExternal01-BCi_ShXX.js} +1 -1
- package/dist/client/assets/{Monitor01-CaSeRueL.js → Monitor01-DB396gYF.js} +1 -1
- package/dist/client/assets/{Palette-gIYgJ3Wn.js → Palette-COuqms6z.js} +1 -1
- package/dist/client/assets/{Play-1bLCgUWF.js → Play-CjvHnycm.js} +1 -1
- package/dist/client/assets/{Plus-wat9tYeJ.js → Plus-CcEwOgtq.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-D-1V89vv.js → RefreshCcw01-CCfli9l6.js} +1 -1
- package/dist/client/assets/{SearchMd-BoptgjAM.js → SearchMd-F8Lgigzr.js} +1 -1
- package/dist/client/assets/{Settings02-8XjUg3gM.js → Settings02-BIGqwL7C.js} +1 -1
- package/dist/client/assets/{Shield01-CjOnx-7R.js → Shield01-B9Q_1Xk7.js} +1 -1
- package/dist/client/assets/{Star01-Dsaeuwpa.js → Star01-Dq4t2HLY.js} +1 -1
- package/dist/client/assets/{Stars01-DDkk5qux.js → Stars01-CiNgchIp.js} +1 -1
- package/dist/client/assets/{Stars02-ChPYLNIJ.js → Stars02-CQVglhpL.js} +1 -1
- package/dist/client/assets/{Sun-BUoG5bs4.js → Sun-Cr2yuAzo.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-CkdIfbJ1.js → SwitchHorizontal01-bU2GcEKE.js} +1 -1
- package/dist/client/assets/{Tool01-Be5AVc1v.js → Tool01-eIrbwcPJ.js} +1 -1
- package/dist/client/assets/{Trash01-YuwiLEVo.js → Trash01-D44a84s5.js} +1 -1
- package/dist/client/assets/{Upload01-aGUy8jUM.js → Upload01-VXtvttgz.js} +1 -1
- package/dist/client/assets/{User01-CUMpCZVS.js → User01-DTzTYshF.js} +1 -1
- package/dist/client/assets/{Users01-BGw9h7dE.js → Users01-CUSYtOwa.js} +1 -1
- package/dist/client/assets/{Users03-Cf3_qQGc.js → Users03-D-uCbKBY.js} +1 -1
- package/dist/client/assets/{X-D1kqmcok.js → X-BerS9SvA.js} +1 -1
- package/dist/client/assets/{XCircle-Ds6l9Vuw.js → XCircle-DKQ_LGK7.js} +1 -1
- package/dist/client/assets/{XClose-CwNjmDWz.js → XClose-DLTON1f7.js} +1 -1
- package/dist/client/assets/{Zap-j2XVmCfk.js → Zap-312eTZCV.js} +1 -1
- package/dist/client/assets/{ZapSquare-DMmAEMvR.js → ZapSquare-Ds8_u3m3.js} +1 -1
- package/dist/client/assets/{ZoomOut-C6xbqN0H.js → ZoomOut-DJZYHdrq.js} +1 -1
- package/dist/client/assets/{access-gate-DfmEpXgP.js → access-gate-DDt7PCzj.js} +1 -1
- package/dist/client/assets/{accordion-B4RSATFh.js → accordion-C7tZu5zr.js} +1 -1
- package/dist/client/assets/add-section-modal-CXTw4rr2.js +1 -0
- package/dist/client/assets/{agent-capabilities-UHQXEFqt.js → agent-capabilities-DD75DzJc.js} +2 -2
- package/dist/client/assets/{agent-icon-BAU0Nn5Q.js → agent-icon-BbtDyEhK.js} +1 -1
- package/dist/client/assets/{agent-icons-CMqOumOa.js → agent-icons-DW_aJ48l.js} +2 -2
- package/dist/client/assets/agents-list-DKuLM9YR.js +1 -0
- package/dist/client/assets/ai-providers-szVBTcEx.js +1 -0
- package/dist/client/assets/{alert-CeTPCPF-.js → alert-Bo_PTvcZ.js} +1 -1
- package/dist/client/assets/{alert-dialog-nDI1xJhR.js → alert-dialog-B-uaEzoe.js} +1 -1
- package/dist/client/assets/app-editor-C91DwP-X.js +1 -0
- package/dist/client/assets/auth-D_7i1Nyj.js +1 -0
- package/dist/client/assets/{auth-catchall-BHc3WJmM.js → auth-catchall-D-qC5UN5.js} +1 -1
- package/dist/client/assets/{auth-split-layout-By3wB5zH.js → auth-split-layout-CLwX_trK.js} +1 -1
- package/dist/client/assets/{automation-list-row-C-im7Cyh.js → automation-list-row-CFcpTyMb.js} +1 -1
- package/dist/client/assets/{automation-runs-BYZ99hni.js → automation-runs-GuZPPaYO.js} +1 -1
- package/dist/client/assets/automations-DERQUV6U.js +1 -0
- package/dist/client/assets/{avatar-BZq-o3M_.js → avatar-CzRJu4-e.js} +1 -1
- package/dist/client/assets/{badge-DBQKr8ze.js → badge-BH87JKvD.js} +1 -1
- package/dist/client/assets/brand-context-DfIPHLDc.js +1 -0
- package/dist/client/assets/{buckets-BWDxlk4n.js → buckets-Bx69Uuhs.js} +1 -1
- package/dist/client/assets/{calendar-D0ZGZM9k.js → calendar-D1EOyTY7.js} +1 -1
- package/dist/client/assets/{capability-load-error-BqquNR5_.js → capability-load-error-Bg7D6wTq.js} +1 -1
- package/dist/client/assets/{card-_9LUJQRQ.js → card-vyZC9bmn.js} +1 -1
- package/dist/client/assets/{chat-context-BGBybCr0.js → chat-context-fcMg1upF.js} +6 -6
- package/dist/client/assets/{checkbox-BoVEsaTu.js → checkbox-D5U8M06N.js} +1 -1
- package/dist/client/assets/{cli-auth-success-BYlIpapz.js → cli-auth-success-Bf19uQP9.js} +1 -1
- package/dist/client/assets/collection-detail-CAOIohKi.js +1 -0
- package/dist/client/assets/{collection-display-button-C331HXzj.js → collection-display-button-B92ml-o1.js} +1 -1
- package/dist/client/assets/{collection-search-D2zd2w_6.js → collection-search-B-w-HeXx.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-D_JocMSh.js → collection-table-wrapper-C9pQRlzR.js} +1 -1
- package/dist/client/assets/{collection-tabs-Et7HpQI-.js → collection-tabs-Cf826YQE.js} +1 -1
- package/dist/client/assets/{collections-BEkDC2fV.js → collections-DHGMK7u4.js} +1 -1
- package/dist/client/assets/{command-DjRT1inC.js → command-CbVJYcLx.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-C7P5AZy7.js → connect-desktop-dialog-DeNV0iLp.js} +1 -1
- package/dist/client/assets/{connection-card-C6z8X3mv.js → connection-card-Cod1I3T4.js} +1 -1
- package/dist/client/assets/{connection-detail-DWcaSH3b.js → connection-detail-Byr9G74f.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-CJ-3PHD0.js → connection-form-helpers-D6w2eM0g.js} +1 -1
- package/dist/client/assets/{connections-plRLUbCm.js → connections-CrrJ4Vi1.js} +1 -1
- package/dist/client/assets/decopilot-sse-pool-CGrdlep9.js +1 -0
- package/dist/client/assets/{dialog-DilC5A4p.js → dialog-DhPYQxKL.js} +1 -1
- package/dist/client/assets/domain-settings-6SYR51ts.js +1 -0
- package/dist/client/assets/{drawer-PqoucHj8.js → drawer-Daco3mLi.js} +1 -1
- package/dist/client/assets/{dropdown-menu-CCeLALQe.js → dropdown-menu-DyHOWhHD.js} +1 -1
- package/dist/client/assets/dynamic-plugin-layout-BemEgHny.js +1 -0
- package/dist/client/assets/{empty-state-C0m3QPuD.js → empty-state-Bu9Ydz_D.js} +1 -1
- package/dist/client/assets/{empty-state-cuRG9xrS.js → empty-state-wKCfoaUn.js} +1 -1
- package/dist/client/assets/{extract-connection-data-zlBEIx4x.js → extract-connection-data-CXfLD91m.js} +1 -1
- package/dist/client/assets/features-D1v6KDMk.js +1 -0
- package/dist/client/assets/file-explorer-DClpTAL5.js +2 -0
- package/dist/client/assets/{file-type-icon-CBlaUM9a.js → file-type-icon-CJ-zSSSF.js} +1 -1
- package/dist/client/assets/{files-De7CB1eQ.js → files-CpnG1733.js} +1 -1
- package/dist/client/assets/{form-DcfAV72q.js → form-Bvy6rgyq.js} +1 -1
- package/dist/client/assets/general-D5o_SLmt.js +1 -0
- package/dist/client/assets/generate-id-ChTWQ_R9.js +1 -0
- package/dist/client/assets/{github-repo-picker-CIreZixy.js → github-repo-picker-71D4tYUy.js} +2 -2
- package/dist/client/assets/{header-tab-button-CNFRl9p4.js → header-tab-button-0n75_bDq.js} +3 -3
- package/dist/client/assets/{hover-card-Bizl54yc.js → hover-card-CWAzZxGp.js} +1 -1
- package/dist/client/assets/{image-field-Btc7vZ_B.js → image-field-93_1M6Cv.js} +1 -1
- package/dist/client/assets/{index-DxLTuX83.js → index-AYOhbOh-.js} +34 -34
- package/dist/client/assets/{index-EffHR3rD.js → index-BTwzTipj.js} +1 -1
- package/dist/client/assets/{index-NuAPKwye.js → index-BaTRbm9d.js} +1 -1
- package/dist/client/assets/{index-CoxAwU4M.js → index-C5isfxFM.js} +1 -1
- package/dist/client/assets/{index-Dr3ZvAAC.js → index-CAdWwovr.js} +2 -2
- package/dist/client/assets/{index-VW961Pbw.js → index-CJzhadxV.js} +1 -1
- package/dist/client/assets/index-CKlPSEz_.js +1 -0
- package/dist/client/assets/{index-B6U1MHPz.js → index-CZrxu3V-.js} +1 -1
- package/dist/client/assets/index-Chg_1h1Q.js +1 -0
- package/dist/client/assets/{index-KCjld4_L.js → index-CmQW0pRd.js} +3 -3
- package/dist/client/assets/{index-DOV0yCSN.js → index-CyFYd9U1.js} +1 -1
- package/dist/client/assets/{index-WAvrfxHO.js → index-D9m-XNQG.js} +1 -1
- package/dist/client/assets/{index-CeH9NvWc.js → index-GjxZu5D5.js} +13 -13
- package/dist/client/assets/{index-C_YL5c1Q.js → index-I0Hfa1ue.js} +1 -1
- package/dist/client/assets/{index-redirect-BoGD6xOD.js → index-redirect-BOWIqnKA.js} +1 -1
- package/dist/client/assets/{index-DM719JZt.js → index-vPgvQXD8.js} +1 -1
- package/dist/client/assets/{input-3FcnQKag.js → input-DErmZhFg.js} +1 -1
- package/dist/client/assets/{integration-icon-C2c_G7v_.js → integration-icon-s9jj_05B.js} +1 -1
- package/dist/client/assets/{label-Cv-qQXYd.js → label-Dr2eF6if.js} +1 -1
- package/dist/client/assets/{layout-2bgJD0NS.js → layout-B9jMdIeQ.js} +1 -1
- package/dist/client/assets/{login-DDLq_BK-.js → login-wWsXDjg2.js} +1 -1
- package/dist/client/assets/mcp-oauth-BOnYmqmQ.js +1 -0
- package/dist/client/assets/{members-BlttLAcq.js → members-BG-EYVVx.js} +2 -2
- package/dist/client/assets/{monaco-editor-BenQSBIk.js → monaco-editor-UIKiC3DB.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BcGGFk75.js → monitoring-stats-row-62KT747u.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BF79mlu4.js → oauth-callback-ai-provider-CySxin-u.js} +1 -1
- package/dist/client/assets/oauth-callback-ai4Tc2VZ.js +1 -0
- package/dist/client/assets/{onboarding-Dd72TDGl.js → onboarding-mGbMpy90.js} +1 -1
- package/dist/client/assets/{org-install-Bv_VZKPn.js → org-install-DZIuKflZ.js} +1 -1
- package/dist/client/assets/{org-layout-CTAm8_WK.js → org-layout-DTZl85nm.js} +1 -1
- package/dist/client/assets/org-plugin-layout-DMoqZL8g.js +1 -0
- package/dist/client/assets/{page-seo-form-B0n1eGFy.js → page-seo-form-Br2QpcIh.js} +1 -1
- package/dist/client/assets/page-seo-sheet-C7vZkIVX.js +1 -0
- package/dist/client/assets/{pair-DU07s2Yy.js → pair-BKA_cCJy.js} +6 -6
- package/dist/client/assets/{plugin-empty-state-CVzEQ5Cm.js → plugin-empty-state-BpXDhzPo.js} +1 -1
- package/dist/client/assets/{plugin-header-B7b_y-0E.js → plugin-header-DpAoB9Ca.js} +1 -1
- package/dist/client/assets/{plugin-layout-Bwwo9Dmw.js → plugin-layout-BoMcJfNN.js} +1 -1
- package/dist/client/assets/{popover-DpnBmU5u.js → popover-qA5W_aO0.js} +1 -1
- package/dist/client/assets/{post-editor-DOuE35_z.js → post-editor-B7EDLj8a.js} +2 -2
- package/dist/client/assets/{primitives-DCRAmGAV.js → primitives-BjZIjqQm.js} +1 -1
- package/dist/client/assets/profile-DefhUD1s.js +1 -0
- package/dist/client/assets/project-app-view-JCtxsXyA.js +1 -0
- package/dist/client/assets/record-editor-CYAiRWSG.js +1 -0
- package/dist/client/assets/registry-CGWdwDoa.js +2 -0
- package/dist/client/assets/{registry-layout-BMV-48W2.js → registry-layout-DVCtktv7.js} +4 -4
- package/dist/client/assets/{require-capability-BolUdzxs.js → require-capability-kzIBHw7I.js} +1 -1
- package/dist/client/assets/{required-auth-layout-Ce12SDHB.js → required-auth-layout--gAqPx1o.js} +1 -1
- package/dist/client/assets/{reset-password-BUAFUG-w.js → reset-password-zPPgPZZ-.js} +1 -1
- package/dist/client/assets/{resizable-CDtszfkc.js → resizable-C5LjJwjN.js} +1 -1
- package/dist/client/assets/roles-C-Aul5X9.js +1 -0
- package/dist/client/assets/save-referenced-block-Cqd_M5sH.js +1 -0
- package/dist/client/assets/{save-status-CrbNr3Yt.js → save-status-BV3DYgWl.js} +1 -1
- package/dist/client/assets/{schema-form-DF5JNe2x.js → schema-form-SJrGXRlU.js} +1 -1
- package/dist/client/assets/{scroll-area-DtVZtiV9.js → scroll-area-D-A0aCbX.js} +1 -1
- package/dist/client/assets/{search-input-B5QgW7DO.js → search-input-BGHqVG2v.js} +1 -1
- package/dist/client/assets/{secrets-vyIYAehl.js → secrets-DV4PS6bI.js} +1 -1
- package/dist/client/assets/{sections-editor-ChsSqsQp.js → sections-editor-Zi700_G9.js} +2 -2
- package/dist/client/assets/{select-C0Tyz9qJ.js → select-C-92em1q.js} +1 -1
- package/dist/client/assets/{select-model-qL2AwJh1.js → select-model-Dih5vchT.js} +1 -1
- package/dist/client/assets/seo-editor-D29FTKLv.js +1 -0
- package/dist/client/assets/settings-layout-NEtrChfG.js +1 -0
- package/dist/client/assets/{settings-section-BxOSnd7f.js → settings-section-CJGTSnIh.js} +1 -1
- package/dist/client/assets/{sheet-BZaR5cN8.js → sheet-BzobqfQ2.js} +1 -1
- package/dist/client/assets/{shell-controls-B_EeVM1l.js → shell-controls-P01RjHPJ.js} +1 -1
- package/dist/client/assets/{shell-layout-DSw-nDR6.js → shell-layout-C_RGI19w.js} +1 -1
- package/dist/client/assets/shell-route-loading-Vpy9ggBQ.js +1 -0
- package/dist/client/assets/{sidebar-DILd2AwV.js → sidebar-jPzKrErD.js} +1 -1
- package/dist/client/assets/{skeleton-Dvzf2GQP.js → skeleton-BkBCJzvx.js} +1 -1
- package/dist/client/assets/{sortable.esm-DhgyheK_.js → sortable.esm-BxJf-B3h.js} +2 -2
- package/dist/client/assets/{spinner-CIUpakvk.js → spinner-fzT44PtT.js} +1 -1
- package/dist/client/assets/{sso-BYueQDf4.js → sso-BjNFVlpu.js} +1 -1
- package/dist/client/assets/store-CqP-ICoJ.js +1 -0
- package/dist/client/assets/store-registry-DceSZztf.js +2 -0
- package/dist/client/assets/{studio-tools-qhNYzbg-.js → studio-tools-D1zmoCWz.js} +1 -1
- package/dist/client/assets/{switch-B2R8Oovd.js → switch-DTsn6qak.js} +1 -1
- package/dist/client/assets/{tab-id-BEXPtrYn.js → tab-id-CqhjPWfe.js} +1 -1
- package/dist/client/assets/{table-BHblf7Co.js → table-DHXpvgyf.js} +1 -1
- package/dist/client/assets/{tabs-BEFEoOMo.js → tabs-Bk42DpLr.js} +1 -1
- package/dist/client/assets/{task-status-17hQtONR.js → task-status-BJtFNCHO.js} +1 -1
- package/dist/client/assets/{textarea-CZOXZ6_T.js → textarea-6a4-y1Su.js} +1 -1
- package/dist/client/assets/{toggle-group-DzrJraBm.js → toggle-group-DMQKr8tB.js} +1 -1
- package/dist/client/assets/{toolbar-A-Rw_MZF.js → toolbar-nvslJ6se.js} +1 -1
- package/dist/client/assets/tools-list-BZ88ZOtB.js +1 -0
- package/dist/client/assets/{tooltip-D1D9JHhD.js → tooltip-B_bAE461.js} +1 -1
- package/dist/client/assets/{types-DsYUq_UX.js → types-yCFKjNKB.js} +3 -3
- package/dist/client/assets/{use-ai-providers-CIvGzfXg.js → use-ai-providers-B0XGed9T.js} +1 -1
- package/dist/client/assets/{use-automations-CP8543px.js → use-automations-BVmzaYqk.js} +1 -1
- package/dist/client/assets/{use-capability-DDDjfOOE.js → use-capability-BZHRv6lH.js} +1 -1
- package/dist/client/assets/{use-clock-tick-DufrTL6j.js → use-clock-tick-Cs4ksDbV.js} +1 -1
- package/dist/client/assets/use-collections-CpH8UnUb.js +1 -0
- package/dist/client/assets/{use-connection-DIX015NP.js → use-connection-Dr4v30Rg.js} +1 -1
- package/dist/client/assets/{use-copy-B_iKACkn.js → use-copy-DxwnRzEa.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BiFjwqV_.js → use-create-virtual-mcp-DkNKlR70.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CsGRGmM0.js → use-debounced-autosave-XMghK7cg.js} +1 -1
- package/dist/client/assets/use-delete-connection-BCuDZsFN.js +1 -0
- package/dist/client/assets/{use-file-configs-CzVPvQ04.js → use-file-configs-CdUbNW-T.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BmPWzVgW.js → use-infinite-scroll-BEtIsVE7.js} +1 -1
- package/dist/client/assets/{use-list-state-BxWtfKJF.js → use-list-state-DTPAi9kL.js} +1 -1
- package/dist/client/assets/use-mcp-client-CY4k0WSm.js +10 -0
- package/dist/client/assets/{use-mcp-prompts-B8H3Sb8-.js → use-mcp-prompts-D5BNmvrR.js} +1 -1
- package/dist/client/assets/use-mcp-tools-D_HyfNkD.js +1 -0
- package/dist/client/assets/{use-members-D33brPm2.js → use-members-BLQ0hZRF.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-BpOmxFKV.js → use-navigate-to-agent-C3bIAWTD.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-B3bhhuY4.js → use-org-auth-client-DVEzJXpD.js} +1 -1
- package/dist/client/assets/{use-org-sso-qcLKm5I7.js → use-org-sso-D4Tlhwcs.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DV7FcWv5.js → use-organization-roles-C-fo78Yw.js} +1 -1
- package/dist/client/assets/{use-organization-settings-mMiPWte8.js → use-organization-settings-B_Bobbu2.js} +1 -1
- package/dist/client/assets/use-registry-connections-SPQVCkw4.js +1 -0
- package/dist/client/assets/{use-secrets-CMyn_SAh.js → use-secrets-DMcF1I87.js} +1 -1
- package/dist/client/assets/use-status-sounds-BGGoA40W.js +1 -0
- package/dist/client/assets/{use-view-mode-CQiQ9BoV.js → use-view-mode-r7LIRuse.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-BHCygv1Q.js → use-virtual-mcp-XH9W6O_2.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BE7Sw7iZ.js +1 -0
- package/dist/client/assets/{useRouterState-CPOZ6kYF.js → useRouterState-DzqrXxOn.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery--BKwSeAU.js +1 -0
- package/dist/client/assets/{user-BHiBl7KY.js → user-CaBRgHEo.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-C4AuqTiF.js → view-mode-toggle-DjFtVOvp.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-BEICArze.js → watch-sse-pool-BayTAOpL.js} +1 -1
- package/dist/client/assets/workflow-DIJr05qP.js +1 -0
- package/dist/client/assets/workflow-detail-BlQLBQHt.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/add-section-modal-DGPmEqVH.js +0 -1
- package/dist/client/assets/agents-list-f6dvlBDo.js +0 -1
- package/dist/client/assets/ai-providers-CIni-0nv.js +0 -1
- package/dist/client/assets/app-editor-Dd3wbzna.js +0 -1
- package/dist/client/assets/automations-BKZFJOPp.js +0 -1
- package/dist/client/assets/brand-context-CpadUeMB.js +0 -1
- package/dist/client/assets/collection-detail-C5awVm7D.js +0 -1
- package/dist/client/assets/decopilot-sse-pool-Cu7Nizzp.js +0 -1
- package/dist/client/assets/domain-settings-BUYR_el1.js +0 -1
- package/dist/client/assets/dynamic-plugin-layout-b5WMDmEL.js +0 -1
- package/dist/client/assets/features-1PDTV_2R.js +0 -1
- package/dist/client/assets/file-explorer-CBKgCWMC.js +0 -2
- package/dist/client/assets/general-DCkCuFZl.js +0 -1
- package/dist/client/assets/generate-id-N17blLwS.js +0 -1
- package/dist/client/assets/index-4vxs0ZGV.js +0 -1
- package/dist/client/assets/index-CQQJ5UaG.js +0 -1
- package/dist/client/assets/oauth-callback-CdBo7Kde.js +0 -1
- package/dist/client/assets/org-plugin-layout-KpgdAlfM.js +0 -1
- package/dist/client/assets/page-seo-sheet-Bo7n8Dbw.js +0 -1
- package/dist/client/assets/profile-DvJYJ7rR.js +0 -1
- package/dist/client/assets/project-app-view-DQhfhWs_.js +0 -1
- package/dist/client/assets/record-editor-BYnzNxDd.js +0 -1
- package/dist/client/assets/registry-469wEK7T.js +0 -2
- package/dist/client/assets/roles-ChM1uml4.js +0 -1
- package/dist/client/assets/save-referenced-block-p44kfiVf.js +0 -1
- package/dist/client/assets/seo-editor-BdvXc5GQ.js +0 -1
- package/dist/client/assets/settings-layout-Cd7DSf19.js +0 -1
- package/dist/client/assets/shell-route-loading-DGAtAFWm.js +0 -1
- package/dist/client/assets/store-DRNbauSU.js +0 -1
- package/dist/client/assets/store-registry-Cj3hC5ms.js +0 -2
- package/dist/client/assets/tools-list-CmTd7_Mb.js +0 -1
- package/dist/client/assets/use-collections-CUoYyXrz.js +0 -1
- package/dist/client/assets/use-delete-connection-C2rrW8fa.js +0 -1
- package/dist/client/assets/use-mcp-client-B7YSHa6V.js +0 -10
- package/dist/client/assets/use-mcp-tools-Bb7rwoEF.js +0 -1
- package/dist/client/assets/use-registry-connections-BIDj-EVl.js +0 -1
- package/dist/client/assets/use-status-sounds-FktjeAga.js +0 -1
- package/dist/client/assets/useInfiniteQuery-Du3dTl6W.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BHnbmrEl.js +0 -1
- package/dist/client/assets/workflow-CqlkVMXi.js +0 -1
- package/dist/client/assets/workflow-detail-CqR4Jdyr.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c_ as tc,dW as Fe,bX as Os,W as oe,U as ge,aK as ti,cv as _i,aH as Ie,bV as mt,bp as Ve,aI as mr,dX as rn,T as _e,dY as Ii,dZ as ws,d_ as nc,ct as rc,d$ as ia,e0 as ic,e1 as sc,e2 as oc,da as fn,db as Cr,dc as xs,cj as sa,cb as ac,ba as ze,cu as lc,aJ as On,bC as Ti,e3 as cc,r as N,j as w,e4 as oa,cZ as uc}from"./index-DxLTuX83.js";import{A as aa,d as fc,e as dc,n as hc,f as pc,C as mc}from"./use-mcp-client-B7YSHa6V.js";import{B as Ci,c as Pi}from"./collections-BEkDC2fV.js";import{R as Es}from"./index-VW961Pbw.js";function yc(){const e=new aa({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0,code:{optimize:!1}});return tc(e),e}class gc{#e=yc();#t=new Map;#n=new WeakMap;getValidator(t){const n=this.#n.get(t);if(n)return n;const r=bc(t);let i=this.#t.get(r);i||(i=this.#e.compile(t),this.#t.set(r,i));const s=i,o=a=>s(a)?{valid:!0,data:a,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:this.#e.errorsText(s.errors)};return this.#n.set(t,o),o}}function bc(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 Sc=new gc;var vc=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||ge();i instanceof rn&&(e.number=i.int())}}},Oc=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=Ve(n):typeof n=="number"?e.number=Ve(n):typeof n=="boolean"?e.boolean=Ve(n):n===null?e.null=_i():Array.isArray(n)?e.array=void 0:typeof n=="object"&&(e.object=void 0)}},wc=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?_i():!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 Ve(e[0]);if(t==="string")return mr(e);if(t==="number"){const[n,r,...i]=e;return mt([Ve(n),Ve(r),...i.map(s=>Ve(s))])}return t==="boolean"?mt([Ve(!0),Ve(!1)]):!1}},xc=class{apply(e,t){const n=t;if(n.type==="string"&&n.format==="binary"&&n.contentEncoding==="binary"){let r=oc();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}}},Ec=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=oe())}},Ac=class{apply(e,t){const n=t;if(n.minLength!==void 0&&e.string!==!1){const r=e.string||oe();r instanceof Ii&&(e.string=r.refine(i=>Array.from(i).length>=n.minLength,{message:`String must be at least ${n.minLength} characters long`}))}}},_c=class{apply(e,t){const n=t;if(n.maxLength!==void 0&&e.string!==!1){const r=e.string||oe();r instanceof Ii&&(e.string=r.refine(i=>Array.from(i).length<=n.maxLength,{message:`String must be at most ${n.maxLength} characters long`}))}}},Ic=class{apply(e,t){const n=t;if(n.pattern&&e.string!==!1){const r=e.string||oe();if(r instanceof Ii){const i=new RegExp(n.pattern);e.string=r.regex(i)}}}},Tc=class{apply(e,t){const n=t;if(n.minimum!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(e.number=r.min(n.minimum))}}},Cc=class{apply(e,t){const n=t;if(n.maximum!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(e.number=r.max(n.maximum))}}},Pc=class{apply(e,t){const n=t;if(n.exclusiveMinimum!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(typeof n.exclusiveMinimum=="number"?e.number=r.gt(n.exclusiveMinimum):e.number=!1)}}},Fc=class{apply(e,t){const n=t;if(n.exclusiveMaximum!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(typeof n.exclusiveMaximum=="number"?e.number=r.lt(n.exclusiveMaximum):e.number=!1)}}},jc=class{apply(e,t){const n=t;if(n.multipleOf!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(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}`}))}}},$c=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=Ie(Fe()))}},Dc=class{apply(e,t){const n=t;n.minItems!==void 0&&e.array!==!1&&(e.array=(e.array||Ie(Fe())).min(n.minItems))}},Nc=class{apply(e,t){const n=t;n.maxItems!==void 0&&e.array!==!1&&(e.array=(e.array||Ie(Fe())).max(n.maxItems))}},Rc=class{apply(e,t){const n=t;if(e.array!==!1)if(Array.isArray(n.items))e.array=e.array||Ie(Fe());else if(n.items&&typeof n.items!="boolean"&&!n.prefixItems){const r=Ae(n.items);let i=Ie(r);if(e.array&&e.array instanceof nc){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||Ie(Fe()):e.array=Ie(Fe()).max(0):typeof n.items=="boolean"&&n.items===!0?e.array=e.array||Ie(Fe()):n.prefixItems&&(e.array=e.array||Ie(Fe()))}},Mc=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=>Ae(s));let i;r.length===0?i=ws([]):i=ws(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}},Uc=class{apply(e,t){const n=t;e.object!==!1&&(n.properties||n.required||n.additionalProperties!==void 0)&&(e.object=e.object||_e({}).passthrough())}},kc=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=_e({}).passthrough())}},Lc=class{apply(e,t){const n=t;if(n.maxProperties!==void 0&&e.object!==!1){const r=e.object||_e({}).passthrough();e.object=r.refine(i=>Object.keys(i).length<=n.maxProperties,{message:`Object must have at most ${n.maxProperties} properties`})}}},Bc=class{apply(e,t){const n=t;if(n.minProperties!==void 0&&e.object!==!1){const r=e.object||_e({}).passthrough();e.object=r.refine(i=>Object.keys(i).length>=n.minProperties,{message:`Object must have at least ${n.minProperties} properties`})}}};function Cn(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)=>Cn(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)&&Cn(e[i],t[i]))}return!1}function Wc(){return e=>{if(!Array.isArray(e))return!0;const t=[];return e.every(n=>t.some(i=>Cn(n,i))?!1:(t.push(n),!0))}}function cr(e,t){return e.safeParse(t).success}var Vc=class{apply(e,t){if(!t.not)return e;const n=Ae(t.not);return e.refine(r=>!cr(n,r),{message:"Value must not match the 'not' schema"})}},qc=class{apply(e,t){return t.uniqueItems!==!0?e:e.refine(Wc(),{message:"Array items must be unique"})}},Hc=class{apply(e,t){return!t.allOf||t.allOf.length===0?e:t.allOf.map(r=>Ae(r)).reduce((r,i)=>ia(r,i),e)}},Kc=class{apply(e,t){if(!t.anyOf||t.anyOf.length===0)return e;const n=t.anyOf.length===1?Ae(t.anyOf[0]):mt([Ae(t.anyOf[0]),Ae(t.anyOf[1]),...t.anyOf.slice(2).map(r=>Ae(r))]);return ia(e,n)}},Gc=class{apply(e,t){if(!t.oneOf||t.oneOf.length===0)return e;const n=t.oneOf.map(r=>Ae(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"})}},zc=class{apply(e,t){const n=t;if(n.prefixItems&&Array.isArray(n.prefixItems)){const i=n.prefixItems.map(s=>Ae(s));return e.refine(s=>{if(!Array.isArray(s))return!0;for(let o=0;o<Math.min(s.length,i.length);o++)if(!cr(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=Ae(n.items);for(let a=i.length;a<s.length;a++)if(!cr(o,s[a]))return!1}}return!0},{message:"Array does not match prefixItems schema"})}return e}},Yc=class{apply(e,t){const n=t;if(!n.properties&&!n.required&&n.additionalProperties!==!1)return e;if(e instanceof ic||e instanceof sc){const r={};if(n.properties)for(const[i,s]of Object.entries(n.properties))s!==void 0&&(r[i]=Ae(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?_e(r):_e(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&&!Ae(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"})}},Jc=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=>Cn(r,i)),{message:"Value must match one of the enum values"})}},Zc=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=>Cn(r,n),{message:"Value must equal the const value"})}},Xc=class{apply(e,t){return t.description&&(e=e.describe(t.description)),e}},Qc=class{apply(e,t){var n;const r=t;return!((n=r.required)!=null&&n.includes("__proto__"))||t.type!==void 0?e:Fe().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))}},eu=class{apply(e,t){var n;const r=t;if(r.contains===void 0)return e;const i=Ae(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)cr(i,c)&&l++;return!(l<s||o!==void 0&&l>o)},{message:"Array must contain required items matching the schema"})}},tu=class{apply(e,t){const{default:n}=t;return n===void 0||!e.safeParse(n).success?e:e.default(n)}},nu=[new Oc,new wc,new vc,new xc,new Ec,new $c,new kc,new Ac,new _c,new Ic,new Tc,new Cc,new Pc,new Fc,new jc,new Mc,new Dc,new Nc,new Rc,new Lc,new Bc,new Uc],ru=[new Qc,new Jc,new Zc,new Hc,new Kc,new Gc,new zc,new Yc,new eu,new Vc,new qc,new tu,new Xc];function Ae(e){if(typeof e=="boolean")return e?Fe():Os();const t={};for(const i of nu)i.apply(t,e);const n=[];if(t.string!==!1&&n.push(t.string||oe()),t.number!==!1&&n.push(t.number||ge()),t.boolean!==!1&&n.push(t.boolean||ti()),t.null!==!1&&n.push(t.null||_i()),t.array!==!1&&n.push(t.array||Ie(Fe())),t.tuple!==!1&&t.tuple!==void 0&&n.push(t.tuple),t.object!==!1)if(t.object)n.push(t.object);else{const i=rc(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=Os():n.length===1?r=n[0]:Object.keys(e).some(s=>s!=="$schema"&&s!=="title"&&s!=="description")?r=mt(n):r=Fe();for(const i of ru)r=i.apply(r,e);return r}class As 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(_s(this),n)}[Symbol.for("Deno.customInspect")](t,n){return t(_s(this),n)}}function iu(e){const t=globalThis.DOMException;return typeof t=="function"?new t(e,"SyntaxError"):new SyntaxError(e)}function ni(e){return e instanceof Error?"errors"in e&&Array.isArray(e.errors)?e.errors.map(ni).join(", "):"cause"in e&&e.cause instanceof Error?`${e}: ${ni(e.cause)}`:e.message:`${e}`}function _s(e){return{type:e.type,message:e.message,code:e.code,defaultPrevented:e.defaultPrevented,cancelable:e.cancelable,timeStamp:e.timeStamp}}var la=e=>{throw TypeError(e)},Fi=(e,t,n)=>t.has(e)||la("Cannot "+n),G=(e,t,n)=>(Fi(e,t,"read from private field"),n?n.call(e):t.get(e)),Se=(e,t,n)=>t.has(e)?la("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),he=(e,t,n,r)=>(Fi(e,t,"write to private field"),t.set(e,n),n),Qe=(e,t,n)=>(Fi(e,t,"access private method"),n),Te,Et,kt,Qn,ur,wn,Vt,xn,ct,Lt,Gt,Bt,mn,Re,ri,ii,si,Is,oi,ai,yn,li,ci;class er extends EventTarget{constructor(t,n){var r,i;super(),Se(this,Re),this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,Se(this,Te),Se(this,Et),Se(this,kt),Se(this,Qn),Se(this,ur),Se(this,wn),Se(this,Vt),Se(this,xn,null),Se(this,ct),Se(this,Lt),Se(this,Gt,null),Se(this,Bt,null),Se(this,mn,null),Se(this,ii,async s=>{var o;G(this,Lt).reset();const{body:a,redirected:l,status:c,headers:u}=s;if(c===204){Qe(this,Re,yn).call(this,"Server sent HTTP 204, not reconnecting",204),this.close();return}if(l?he(this,kt,new URL(s.url)):he(this,kt,void 0),c!==200){Qe(this,Re,yn).call(this,`Non-200 status code (${c})`,c);return}if(!(u.get("content-type")||"").startsWith("text/event-stream")){Qe(this,Re,yn).call(this,'Invalid content type, expected "text/event-stream"',c);return}if(G(this,Te)===this.CLOSED)return;he(this,Te,this.OPEN);const f=new Event("open");if((o=G(this,mn))==null||o.call(this,f),this.dispatchEvent(f),typeof a!="object"||!a||!("getReader"in a)){Qe(this,Re,yn).call(this,"Invalid response body, expected a web ReadableStream",c),this.close();return}const h=new TextDecoder,m=a.getReader();let d=!0;do{const{done:p,value:y}=await m.read();y&&G(this,Lt).feed(h.decode(y,{stream:!p})),p&&(d=!1,G(this,Lt).reset(),Qe(this,Re,li).call(this))}while(d)}),Se(this,si,s=>{he(this,ct,void 0),!(s.name==="AbortError"||s.type==="aborted")&&Qe(this,Re,li).call(this,ni(s))}),Se(this,oi,s=>{typeof s.id=="string"&&he(this,xn,s.id);const o=new MessageEvent(s.event||"message",{data:s.data,origin:G(this,kt)?G(this,kt).origin:G(this,Et).origin,lastEventId:s.id||""});G(this,Bt)&&(!s.event||s.event==="message")&&G(this,Bt).call(this,o),this.dispatchEvent(o)}),Se(this,ai,s=>{he(this,wn,s)}),Se(this,ci,()=>{he(this,Vt,void 0),G(this,Te)===this.CONNECTING&&Qe(this,Re,ri).call(this)});try{if(t instanceof URL)he(this,Et,t);else if(typeof t=="string")he(this,Et,new URL(t,su()));else throw new Error("Invalid URL")}catch{throw iu("An invalid or illegal string was specified")}he(this,Lt,fc({onEvent:G(this,oi),onRetry:G(this,ai)})),he(this,Te,this.CONNECTING),he(this,wn,3e3),he(this,ur,(r=n?.fetch)!=null?r:globalThis.fetch),he(this,Qn,(i=n?.withCredentials)!=null?i:!1),Qe(this,Re,ri).call(this)}get readyState(){return G(this,Te)}get url(){return G(this,Et).href}get withCredentials(){return G(this,Qn)}get onerror(){return G(this,Gt)}set onerror(t){he(this,Gt,t)}get onmessage(){return G(this,Bt)}set onmessage(t){he(this,Bt,t)}get onopen(){return G(this,mn)}set onopen(t){he(this,mn,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(){G(this,Vt)&&clearTimeout(G(this,Vt)),G(this,Te)!==this.CLOSED&&(G(this,ct)&&G(this,ct).abort(),he(this,Te,this.CLOSED),he(this,ct,void 0))}}Te=new WeakMap,Et=new WeakMap,kt=new WeakMap,Qn=new WeakMap,ur=new WeakMap,wn=new WeakMap,Vt=new WeakMap,xn=new WeakMap,ct=new WeakMap,Lt=new WeakMap,Gt=new WeakMap,Bt=new WeakMap,mn=new WeakMap,Re=new WeakSet,ri=function(){he(this,Te,this.CONNECTING),he(this,ct,new AbortController),G(this,ur)(G(this,Et),Qe(this,Re,Is).call(this)).then(G(this,ii)).catch(G(this,si))},ii=new WeakMap,si=new WeakMap,Is=function(){var e;const t={mode:"cors",redirect:"follow",headers:{Accept:"text/event-stream",...G(this,xn)?{"Last-Event-ID":G(this,xn)}:void 0},cache:"no-store",signal:(e=G(this,ct))==null?void 0:e.signal};return"window"in globalThis&&(t.credentials=this.withCredentials?"include":"same-origin"),t},oi=new WeakMap,ai=new WeakMap,yn=function(e,t){var n;G(this,Te)!==this.CLOSED&&he(this,Te,this.CLOSED);const r=new As("error",{code:t,message:e});(n=G(this,Gt))==null||n.call(this,r),this.dispatchEvent(r)},li=function(e,t){var n;if(G(this,Te)===this.CLOSED)return;he(this,Te,this.CONNECTING);const r=new As("error",{code:t,message:e});(n=G(this,Gt))==null||n.call(this,r),this.dispatchEvent(r),he(this,Vt,setTimeout(G(this,ci),G(this,wn)))},ci=new WeakMap,er.CONNECTING=0,er.OPEN=1,er.CLOSED=2;function su(){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 ou extends Error{constructor(t,n,r){super(`SSE error: ${n}`),this.code=t,this.event=r}}class au{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=dc(n?.fetch,n?.requestInit)}async _authThenStart(){if(!this._authProvider)throw new fn("No auth provider");let t;try{t=await Cr(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 fn;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=hc(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 er(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}=xs(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 ou(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=sa.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 fn("No auth provider");if(await Cr(this._authProvider,{serverUrl:this._url,authorizationCode:t,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new fn("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}=xs(i);if(this._resourceMetadataUrl=o,this._scope=a,await Cr(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new fn;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 lu="mcp";class cu{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,lu),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=sa.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 uu extends pc{constructor(t,n){super(t,n)}send(t,n){const r=fu(t);return r?.type==="emit"?(this.onmessage?.(r.message),Promise.resolve()):r?.type==="suppress"?Promise.resolve():super.send(t,n)}}function fu(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 du extends mc{constructor(t,n){super(t,{jsonSchemaValidator:Sc,...n})}async listTools(t,n){return await this.request({method:"tools/list",params:t},ac,n)}}const hu=async(e,t,n)=>{const r=pu(e.connection,t,n);if(!r)throw new Error("Unknown MCP connection type");const i=new du({name:e?.name??"MCP Client",version:"1.0.0"});return await i.connect(r),{client:i}},pu=(e,t,n)=>{if(e.type==="Websocket")return new cu(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 au(new URL(e.url),s)}return new uu(new URL(e.url),{requestInit:{headers:i,signal:t,credentials:"include"}})},Ts=e=>{try{return JSON.parse(e)}catch{return e}},zn=new Map,Cs=(e,t)=>({...e,id:e.name,inputSchema:e.inputSchema?Ae(e.inputSchema):void 0,outputSchema:e.outputSchema?Ae(e.outputSchema):void 0,execute:n=>t(n.context,e.name)});function mu(e){const t=n=>"connection"in e?hu({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?.(),f=u?{"x-trace-debug-id":u}:void 0,{client:h}=await t(f),{structuredContent:m,isError:d,content:p}=await h.callTool({name:String(c),arguments:l});if(d){const S=p?.[0]?.text,O=typeof S=="string"?Ts(S):null,E=O?.code&&typeof e?.getErrorByStatusCode=="function"?e.getErrorByStatusCode(O.code,O.message,O.traceId):null;throw E||new Error(`Tool ${String(c)} returned an error: ${JSON.stringify(m??p)}`)}if(m!==void 0)return m;const y=p?.[0]?.text;return typeof y=="string"?Ts(y):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 zn.has(c)||zn.set(c,s()),await zn.get(c)}catch(u){console.error("Failed to list tools",u),zn.delete(c);return}}async function a(){return(await o()??[]).map(c=>Cs(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 Cs(c,i)},i}})}new Proxy({},{get(e,t){return t==="toJSON"?null:t==="forConnection"?n=>yu({connection:n}):global[t]}});function yu(e){return mu(e)}const gu=_e({toolName:oe().describe("Name of the tool to invoke on that connection"),transformCode:oe().optional().describe("Pure TypeScript function for data transformation of the tool call result. Must be a TypeScript file that declares the Output interface and exports a default function: `interface Output { ... } export default async function(stepInput): Output { ... }`\n The stepInput will match with the tool call outputSchema. If transformCode is not provided, the tool call result will be used as the step output.\n Providing an transformCode is recommended because it both allows you to transform the data and validate it against a JSON Schema - tools are ephemeral and may return unexpected data.")}),bu=_e({code:oe().describe(`Pure TypeScript function for data transformation. Useful to merge data from multiple steps and transform it. Must be a TypeScript file that declares the Output interface and exports a default function: \`interface Output { ... } export default async function(stepInput): Output { ... }\`
|
|
1
|
+
import{da as tc,e2 as Fe,bU as Os,R as oe,Q as ge,aH as ti,cs as _i,aE as Ie,bS as mt,bm as Ve,aF as mr,e3 as rn,P as _e,e4 as Ii,e5 as ws,e6 as nc,cq as rc,e7 as ia,e8 as ic,e9 as sc,ea as oc,cg as sa,c8 as ac,b7 as ze,cr as lc,aG as On,bz as Ti,eb as cc,r as N,j as w,ec as oa,d9 as uc}from"./index-AYOhbOh-.js";import{A as aa,d as fc,e as dc,n as hc,f as pc,C as mc}from"./use-mcp-client-CY4k0WSm.js";import{U as fn,b as Cr,c as xs}from"./auth-D_7i1Nyj.js";import{B as Ci,c as Pi}from"./collections-DHGMK7u4.js";import{R as Es}from"./index-CJzhadxV.js";function yc(){const e=new aa({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0,code:{optimize:!1}});return tc(e),e}class gc{#e=yc();#t=new Map;#n=new WeakMap;getValidator(t){const n=this.#n.get(t);if(n)return n;const r=bc(t);let i=this.#t.get(r);i||(i=this.#e.compile(t),this.#t.set(r,i));const s=i,o=a=>s(a)?{valid:!0,data:a,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:this.#e.errorsText(s.errors)};return this.#n.set(t,o),o}}function bc(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 Sc=new gc;var vc=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||ge();i instanceof rn&&(e.number=i.int())}}},Oc=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=Ve(n):typeof n=="number"?e.number=Ve(n):typeof n=="boolean"?e.boolean=Ve(n):n===null?e.null=_i():Array.isArray(n)?e.array=void 0:typeof n=="object"&&(e.object=void 0)}},wc=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?_i():!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 Ve(e[0]);if(t==="string")return mr(e);if(t==="number"){const[n,r,...i]=e;return mt([Ve(n),Ve(r),...i.map(s=>Ve(s))])}return t==="boolean"?mt([Ve(!0),Ve(!1)]):!1}},xc=class{apply(e,t){const n=t;if(n.type==="string"&&n.format==="binary"&&n.contentEncoding==="binary"){let r=oc();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}}},Ec=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=oe())}},Ac=class{apply(e,t){const n=t;if(n.minLength!==void 0&&e.string!==!1){const r=e.string||oe();r instanceof Ii&&(e.string=r.refine(i=>Array.from(i).length>=n.minLength,{message:`String must be at least ${n.minLength} characters long`}))}}},_c=class{apply(e,t){const n=t;if(n.maxLength!==void 0&&e.string!==!1){const r=e.string||oe();r instanceof Ii&&(e.string=r.refine(i=>Array.from(i).length<=n.maxLength,{message:`String must be at most ${n.maxLength} characters long`}))}}},Ic=class{apply(e,t){const n=t;if(n.pattern&&e.string!==!1){const r=e.string||oe();if(r instanceof Ii){const i=new RegExp(n.pattern);e.string=r.regex(i)}}}},Tc=class{apply(e,t){const n=t;if(n.minimum!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(e.number=r.min(n.minimum))}}},Cc=class{apply(e,t){const n=t;if(n.maximum!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(e.number=r.max(n.maximum))}}},Pc=class{apply(e,t){const n=t;if(n.exclusiveMinimum!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(typeof n.exclusiveMinimum=="number"?e.number=r.gt(n.exclusiveMinimum):e.number=!1)}}},Fc=class{apply(e,t){const n=t;if(n.exclusiveMaximum!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(typeof n.exclusiveMaximum=="number"?e.number=r.lt(n.exclusiveMaximum):e.number=!1)}}},jc=class{apply(e,t){const n=t;if(n.multipleOf!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(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}`}))}}},$c=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=Ie(Fe()))}},Dc=class{apply(e,t){const n=t;n.minItems!==void 0&&e.array!==!1&&(e.array=(e.array||Ie(Fe())).min(n.minItems))}},Nc=class{apply(e,t){const n=t;n.maxItems!==void 0&&e.array!==!1&&(e.array=(e.array||Ie(Fe())).max(n.maxItems))}},Rc=class{apply(e,t){const n=t;if(e.array!==!1)if(Array.isArray(n.items))e.array=e.array||Ie(Fe());else if(n.items&&typeof n.items!="boolean"&&!n.prefixItems){const r=Ae(n.items);let i=Ie(r);if(e.array&&e.array instanceof nc){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||Ie(Fe()):e.array=Ie(Fe()).max(0):typeof n.items=="boolean"&&n.items===!0?e.array=e.array||Ie(Fe()):n.prefixItems&&(e.array=e.array||Ie(Fe()))}},Mc=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=>Ae(s));let i;r.length===0?i=ws([]):i=ws(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}},Uc=class{apply(e,t){const n=t;e.object!==!1&&(n.properties||n.required||n.additionalProperties!==void 0)&&(e.object=e.object||_e({}).passthrough())}},kc=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=_e({}).passthrough())}},Lc=class{apply(e,t){const n=t;if(n.maxProperties!==void 0&&e.object!==!1){const r=e.object||_e({}).passthrough();e.object=r.refine(i=>Object.keys(i).length<=n.maxProperties,{message:`Object must have at most ${n.maxProperties} properties`})}}},Bc=class{apply(e,t){const n=t;if(n.minProperties!==void 0&&e.object!==!1){const r=e.object||_e({}).passthrough();e.object=r.refine(i=>Object.keys(i).length>=n.minProperties,{message:`Object must have at least ${n.minProperties} properties`})}}};function Cn(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)=>Cn(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)&&Cn(e[i],t[i]))}return!1}function Wc(){return e=>{if(!Array.isArray(e))return!0;const t=[];return e.every(n=>t.some(i=>Cn(n,i))?!1:(t.push(n),!0))}}function cr(e,t){return e.safeParse(t).success}var Vc=class{apply(e,t){if(!t.not)return e;const n=Ae(t.not);return e.refine(r=>!cr(n,r),{message:"Value must not match the 'not' schema"})}},qc=class{apply(e,t){return t.uniqueItems!==!0?e:e.refine(Wc(),{message:"Array items must be unique"})}},Hc=class{apply(e,t){return!t.allOf||t.allOf.length===0?e:t.allOf.map(r=>Ae(r)).reduce((r,i)=>ia(r,i),e)}},Kc=class{apply(e,t){if(!t.anyOf||t.anyOf.length===0)return e;const n=t.anyOf.length===1?Ae(t.anyOf[0]):mt([Ae(t.anyOf[0]),Ae(t.anyOf[1]),...t.anyOf.slice(2).map(r=>Ae(r))]);return ia(e,n)}},Gc=class{apply(e,t){if(!t.oneOf||t.oneOf.length===0)return e;const n=t.oneOf.map(r=>Ae(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"})}},zc=class{apply(e,t){const n=t;if(n.prefixItems&&Array.isArray(n.prefixItems)){const i=n.prefixItems.map(s=>Ae(s));return e.refine(s=>{if(!Array.isArray(s))return!0;for(let o=0;o<Math.min(s.length,i.length);o++)if(!cr(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=Ae(n.items);for(let a=i.length;a<s.length;a++)if(!cr(o,s[a]))return!1}}return!0},{message:"Array does not match prefixItems schema"})}return e}},Yc=class{apply(e,t){const n=t;if(!n.properties&&!n.required&&n.additionalProperties!==!1)return e;if(e instanceof ic||e instanceof sc){const r={};if(n.properties)for(const[i,s]of Object.entries(n.properties))s!==void 0&&(r[i]=Ae(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?_e(r):_e(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&&!Ae(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"})}},Jc=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=>Cn(r,i)),{message:"Value must match one of the enum values"})}},Zc=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=>Cn(r,n),{message:"Value must equal the const value"})}},Xc=class{apply(e,t){return t.description&&(e=e.describe(t.description)),e}},Qc=class{apply(e,t){var n;const r=t;return!((n=r.required)!=null&&n.includes("__proto__"))||t.type!==void 0?e:Fe().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))}},eu=class{apply(e,t){var n;const r=t;if(r.contains===void 0)return e;const i=Ae(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)cr(i,c)&&l++;return!(l<s||o!==void 0&&l>o)},{message:"Array must contain required items matching the schema"})}},tu=class{apply(e,t){const{default:n}=t;return n===void 0||!e.safeParse(n).success?e:e.default(n)}},nu=[new Oc,new wc,new vc,new xc,new Ec,new $c,new kc,new Ac,new _c,new Ic,new Tc,new Cc,new Pc,new Fc,new jc,new Mc,new Dc,new Nc,new Rc,new Lc,new Bc,new Uc],ru=[new Qc,new Jc,new Zc,new Hc,new Kc,new Gc,new zc,new Yc,new eu,new Vc,new qc,new tu,new Xc];function Ae(e){if(typeof e=="boolean")return e?Fe():Os();const t={};for(const i of nu)i.apply(t,e);const n=[];if(t.string!==!1&&n.push(t.string||oe()),t.number!==!1&&n.push(t.number||ge()),t.boolean!==!1&&n.push(t.boolean||ti()),t.null!==!1&&n.push(t.null||_i()),t.array!==!1&&n.push(t.array||Ie(Fe())),t.tuple!==!1&&t.tuple!==void 0&&n.push(t.tuple),t.object!==!1)if(t.object)n.push(t.object);else{const i=rc(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=Os():n.length===1?r=n[0]:Object.keys(e).some(s=>s!=="$schema"&&s!=="title"&&s!=="description")?r=mt(n):r=Fe();for(const i of ru)r=i.apply(r,e);return r}class As 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(_s(this),n)}[Symbol.for("Deno.customInspect")](t,n){return t(_s(this),n)}}function iu(e){const t=globalThis.DOMException;return typeof t=="function"?new t(e,"SyntaxError"):new SyntaxError(e)}function ni(e){return e instanceof Error?"errors"in e&&Array.isArray(e.errors)?e.errors.map(ni).join(", "):"cause"in e&&e.cause instanceof Error?`${e}: ${ni(e.cause)}`:e.message:`${e}`}function _s(e){return{type:e.type,message:e.message,code:e.code,defaultPrevented:e.defaultPrevented,cancelable:e.cancelable,timeStamp:e.timeStamp}}var la=e=>{throw TypeError(e)},Fi=(e,t,n)=>t.has(e)||la("Cannot "+n),G=(e,t,n)=>(Fi(e,t,"read from private field"),n?n.call(e):t.get(e)),Se=(e,t,n)=>t.has(e)?la("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),he=(e,t,n,r)=>(Fi(e,t,"write to private field"),t.set(e,n),n),Qe=(e,t,n)=>(Fi(e,t,"access private method"),n),Te,Et,kt,Qn,ur,wn,Vt,xn,ct,Lt,Gt,Bt,mn,Re,ri,ii,si,Is,oi,ai,yn,li,ci;class er extends EventTarget{constructor(t,n){var r,i;super(),Se(this,Re),this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,Se(this,Te),Se(this,Et),Se(this,kt),Se(this,Qn),Se(this,ur),Se(this,wn),Se(this,Vt),Se(this,xn,null),Se(this,ct),Se(this,Lt),Se(this,Gt,null),Se(this,Bt,null),Se(this,mn,null),Se(this,ii,async s=>{var o;G(this,Lt).reset();const{body:a,redirected:l,status:c,headers:u}=s;if(c===204){Qe(this,Re,yn).call(this,"Server sent HTTP 204, not reconnecting",204),this.close();return}if(l?he(this,kt,new URL(s.url)):he(this,kt,void 0),c!==200){Qe(this,Re,yn).call(this,`Non-200 status code (${c})`,c);return}if(!(u.get("content-type")||"").startsWith("text/event-stream")){Qe(this,Re,yn).call(this,'Invalid content type, expected "text/event-stream"',c);return}if(G(this,Te)===this.CLOSED)return;he(this,Te,this.OPEN);const f=new Event("open");if((o=G(this,mn))==null||o.call(this,f),this.dispatchEvent(f),typeof a!="object"||!a||!("getReader"in a)){Qe(this,Re,yn).call(this,"Invalid response body, expected a web ReadableStream",c),this.close();return}const h=new TextDecoder,m=a.getReader();let d=!0;do{const{done:p,value:y}=await m.read();y&&G(this,Lt).feed(h.decode(y,{stream:!p})),p&&(d=!1,G(this,Lt).reset(),Qe(this,Re,li).call(this))}while(d)}),Se(this,si,s=>{he(this,ct,void 0),!(s.name==="AbortError"||s.type==="aborted")&&Qe(this,Re,li).call(this,ni(s))}),Se(this,oi,s=>{typeof s.id=="string"&&he(this,xn,s.id);const o=new MessageEvent(s.event||"message",{data:s.data,origin:G(this,kt)?G(this,kt).origin:G(this,Et).origin,lastEventId:s.id||""});G(this,Bt)&&(!s.event||s.event==="message")&&G(this,Bt).call(this,o),this.dispatchEvent(o)}),Se(this,ai,s=>{he(this,wn,s)}),Se(this,ci,()=>{he(this,Vt,void 0),G(this,Te)===this.CONNECTING&&Qe(this,Re,ri).call(this)});try{if(t instanceof URL)he(this,Et,t);else if(typeof t=="string")he(this,Et,new URL(t,su()));else throw new Error("Invalid URL")}catch{throw iu("An invalid or illegal string was specified")}he(this,Lt,fc({onEvent:G(this,oi),onRetry:G(this,ai)})),he(this,Te,this.CONNECTING),he(this,wn,3e3),he(this,ur,(r=n?.fetch)!=null?r:globalThis.fetch),he(this,Qn,(i=n?.withCredentials)!=null?i:!1),Qe(this,Re,ri).call(this)}get readyState(){return G(this,Te)}get url(){return G(this,Et).href}get withCredentials(){return G(this,Qn)}get onerror(){return G(this,Gt)}set onerror(t){he(this,Gt,t)}get onmessage(){return G(this,Bt)}set onmessage(t){he(this,Bt,t)}get onopen(){return G(this,mn)}set onopen(t){he(this,mn,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(){G(this,Vt)&&clearTimeout(G(this,Vt)),G(this,Te)!==this.CLOSED&&(G(this,ct)&&G(this,ct).abort(),he(this,Te,this.CLOSED),he(this,ct,void 0))}}Te=new WeakMap,Et=new WeakMap,kt=new WeakMap,Qn=new WeakMap,ur=new WeakMap,wn=new WeakMap,Vt=new WeakMap,xn=new WeakMap,ct=new WeakMap,Lt=new WeakMap,Gt=new WeakMap,Bt=new WeakMap,mn=new WeakMap,Re=new WeakSet,ri=function(){he(this,Te,this.CONNECTING),he(this,ct,new AbortController),G(this,ur)(G(this,Et),Qe(this,Re,Is).call(this)).then(G(this,ii)).catch(G(this,si))},ii=new WeakMap,si=new WeakMap,Is=function(){var e;const t={mode:"cors",redirect:"follow",headers:{Accept:"text/event-stream",...G(this,xn)?{"Last-Event-ID":G(this,xn)}:void 0},cache:"no-store",signal:(e=G(this,ct))==null?void 0:e.signal};return"window"in globalThis&&(t.credentials=this.withCredentials?"include":"same-origin"),t},oi=new WeakMap,ai=new WeakMap,yn=function(e,t){var n;G(this,Te)!==this.CLOSED&&he(this,Te,this.CLOSED);const r=new As("error",{code:t,message:e});(n=G(this,Gt))==null||n.call(this,r),this.dispatchEvent(r)},li=function(e,t){var n;if(G(this,Te)===this.CLOSED)return;he(this,Te,this.CONNECTING);const r=new As("error",{code:t,message:e});(n=G(this,Gt))==null||n.call(this,r),this.dispatchEvent(r),he(this,Vt,setTimeout(G(this,ci),G(this,wn)))},ci=new WeakMap,er.CONNECTING=0,er.OPEN=1,er.CLOSED=2;function su(){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 ou extends Error{constructor(t,n,r){super(`SSE error: ${n}`),this.code=t,this.event=r}}class au{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=dc(n?.fetch,n?.requestInit)}async _authThenStart(){if(!this._authProvider)throw new fn("No auth provider");let t;try{t=await Cr(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 fn;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=hc(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 er(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}=xs(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 ou(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=sa.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 fn("No auth provider");if(await Cr(this._authProvider,{serverUrl:this._url,authorizationCode:t,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new fn("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}=xs(i);if(this._resourceMetadataUrl=o,this._scope=a,await Cr(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new fn;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 lu="mcp";class cu{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,lu),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=sa.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 uu extends pc{constructor(t,n){super(t,n)}send(t,n){const r=fu(t);return r?.type==="emit"?(this.onmessage?.(r.message),Promise.resolve()):r?.type==="suppress"?Promise.resolve():super.send(t,n)}}function fu(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 du extends mc{constructor(t,n){super(t,{jsonSchemaValidator:Sc,...n})}async listTools(t,n){return await this.request({method:"tools/list",params:t},ac,n)}}const hu=async(e,t,n)=>{const r=pu(e.connection,t,n);if(!r)throw new Error("Unknown MCP connection type");const i=new du({name:e?.name??"MCP Client",version:"1.0.0"});return await i.connect(r),{client:i}},pu=(e,t,n)=>{if(e.type==="Websocket")return new cu(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 au(new URL(e.url),s)}return new uu(new URL(e.url),{requestInit:{headers:i,signal:t,credentials:"include"}})},Ts=e=>{try{return JSON.parse(e)}catch{return e}},zn=new Map,Cs=(e,t)=>({...e,id:e.name,inputSchema:e.inputSchema?Ae(e.inputSchema):void 0,outputSchema:e.outputSchema?Ae(e.outputSchema):void 0,execute:n=>t(n.context,e.name)});function mu(e){const t=n=>"connection"in e?hu({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?.(),f=u?{"x-trace-debug-id":u}:void 0,{client:h}=await t(f),{structuredContent:m,isError:d,content:p}=await h.callTool({name:String(c),arguments:l});if(d){const S=p?.[0]?.text,O=typeof S=="string"?Ts(S):null,E=O?.code&&typeof e?.getErrorByStatusCode=="function"?e.getErrorByStatusCode(O.code,O.message,O.traceId):null;throw E||new Error(`Tool ${String(c)} returned an error: ${JSON.stringify(m??p)}`)}if(m!==void 0)return m;const y=p?.[0]?.text;return typeof y=="string"?Ts(y):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 zn.has(c)||zn.set(c,s()),await zn.get(c)}catch(u){console.error("Failed to list tools",u),zn.delete(c);return}}async function a(){return(await o()??[]).map(c=>Cs(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 Cs(c,i)},i}})}new Proxy({},{get(e,t){return t==="toJSON"?null:t==="forConnection"?n=>yu({connection:n}):global[t]}});function yu(e){return mu(e)}const gu=_e({toolName:oe().describe("Name of the tool to invoke on that connection"),transformCode:oe().optional().describe("Pure TypeScript function for data transformation of the tool call result. Must be a TypeScript file that declares the Output interface and exports a default function: `interface Output { ... } export default async function(stepInput): Output { ... }`\n The stepInput will match with the tool call outputSchema. If transformCode is not provided, the tool call result will be used as the step output.\n Providing an transformCode is recommended because it both allows you to transform the data and validate it against a JSON Schema - tools are ephemeral and may return unexpected data.")}),bu=_e({code:oe().describe(`Pure TypeScript function for data transformation. Useful to merge data from multiple steps and transform it. Must be a TypeScript file that declares the Output interface and exports a default function: \`interface Output { ... } export default async function(stepInput): Output { ... }\`
|
|
2
2
|
The stepInput is the resolved value of the references in the input field. Example:
|
|
3
3
|
{
|
|
4
4
|
"input": {
|
|
@@ -7,7 +7,7 @@ import{c_ as tc,dW as Fe,bX as Os,W as oe,U as ge,aK as ti,cv as _i,aH as Ie,bV
|
|
|
7
7
|
},
|
|
8
8
|
"code": "export default function(stepInput): Output { return { result: \`\${stepInput.name} is \${stepInput.age} years old.\` } }"
|
|
9
9
|
}
|
|
10
|
-
`)});_e({signalName:oe().describe("Signal name to wait for (e.g., 'approval'). Execution pauses until SEND_SIGNAL is called with this name.")});const Su=mt([gu.describe("Call an external tool via MCP connection. "),bu.describe("Run pure TypeScript code for data transformation. Useful to merge data from multiple steps and transform it.")]),vu=_e({ref:oe().describe("@ref to resolve and evaluate, e.g. '@validate.shouldStop' or '@input.skipProcessing'"),eq:ze().optional().describe("Step bails if resolved value equals this"),neq:ze().optional().describe("Step bails if resolved value does NOT equal this"),gt:ge().optional().describe("Step bails if resolved value is greater than this"),lt:ge().optional().describe("Step bails if resolved value is less than this")}),Ou=_e({maxAttempts:ge().int().min(1).max(10).optional().describe("Max retry attempts on failure (default: 1, no retries)"),backoffMs:ge().int().min(100).max(6e4).optional().describe("Initial delay between retries in ms (doubles each attempt)"),timeoutMs:ge().int().min(100).max(864e5).optional().describe("Max execution time in ms before step fails (default: 30000). Upper bound 24h."),onError:mr(["fail","continue"]).optional().describe("What to do when this step fails: 'fail' aborts the workflow, 'continue' skips the error and proceeds")}),ji=lc(()=>_e({type:oe().optional(),properties:On(oe(),ze()).optional(),required:Ie(oe()).optional(),description:oe().optional(),additionalProperties:mt([ti(),On(oe(),ze())]).optional(),additionalItems:mt([ti(),On(oe(),ze())]).optional(),items:ji.optional()}).passthrough()),Ps=["input","item","index","ctx"],wu=_e({name:oe().min(1).refine(e=>!Ps.includes(e),{message:`Step name is reserved. Reserved names: ${Ps.join(", ")}`}).describe("Unique identifier for this step. Other steps reference its output as @name.field"),description:oe().optional().describe("What this step does"),action:Su,input:On(oe(),ze()).optional().describe("Data passed to the action. Use @ref for dynamic values: @input.field (workflow input), @stepName.field (previous step output), @item/@index (loop context), @ctx.execution_id (current execution ID). Example: { 'userId': '@input.user_id', 'data': '@fetch.result', 'executionId': '@ctx.execution_id' }"),outputSchema:ji.optional().describe("Optional JSON Schema describing the expected output of the step."),config:Ou.optional().describe("Retry and timeout settings"),forEach:_e({ref:oe().describe("@ ref to the step to iterate over"),concurrency:ge().optional().default(1).describe("max parallel iterations. default is 1 (sequential)")}).optional(),bail:mt([Ve(!0),vu]).optional().describe("Early return: if true, the workflow exits with this step's output on successful completion. If a condition object, the workflow exits only when the condition is met. Bail is ignored on step error.")}),xu=mr(["enqueued","running","success","error","failed","cancelled"]).default("enqueued"),ca=Ci.extend({virtual_mcp_id:oe().describe("ID of the virtual MCP (agent) that will be used to execute the workflow"),status:xu.describe("Current status of the workflow execution"),input:On(oe(),ze()).optional().describe("Input data for the workflow execution"),output:ze().optional().describe("Output data for the workflow execution"),completed_at_epoch_ms:ge().nullish().describe("Timestamp of when the workflow execution completed"),start_at_epoch_ms:ge().nullish().describe("Timestamp of when the workflow execution started or will start"),timeout_ms:ge().nullish().describe("Timeout in milliseconds for the workflow execution"),deadline_at_epoch_ms:ge().nullish().describe("Deadline for the workflow execution - when the workflow execution will be cancelled if it is not completed. This is read-only and is set by the workflow engine when an execution is created."),error:ze().nullish().describe("Error that occurred during the workflow execution"),completed_steps:_e({success:Ie(_e({name:oe(),completed_at_epoch_ms:ge()})).describe("Names of the steps that were completed successfully"),error:Ie(oe()).describe("Names of the steps that errored")}).optional().describe("Names of the steps that were completed and their status"),running_steps:Ie(oe()).optional().describe("Names of the steps that are currently running")}),Eu=mr(["signal","timer","message","output","step_started","step_completed","workflow_started","workflow_completed"]);Ci.extend({execution_id:oe(),type:Eu,name:oe().nullish(),payload:ze().optional(),visible_at:ge().nullish(),consumed_at:ge().nullish(),source_execution_id:oe().nullish()});const Au=Ci.extend({description:oe().optional().describe("Human-readable summary of what this workflow does"),input_schema:ji.optional().describe("Optional JSON Schema describing the expected input for this workflow."),steps:Ie(wu).describe("Ordered list of steps. Execution order is auto-determined by @ref dependencies: steps with no @ref dependencies run in parallel; steps referencing @stepName wait for that step to complete.")});Pi("workflow",Au);const _u={maxAttempts:1,timeoutMs:3e4},
|
|
10
|
+
`)});_e({signalName:oe().describe("Signal name to wait for (e.g., 'approval'). Execution pauses until SEND_SIGNAL is called with this name.")});const Su=mt([gu.describe("Call an external tool via MCP connection. "),bu.describe("Run pure TypeScript code for data transformation. Useful to merge data from multiple steps and transform it.")]),vu=_e({ref:oe().describe("@ref to resolve and evaluate, e.g. '@validate.shouldStop' or '@input.skipProcessing'"),eq:ze().optional().describe("Step bails if resolved value equals this"),neq:ze().optional().describe("Step bails if resolved value does NOT equal this"),gt:ge().optional().describe("Step bails if resolved value is greater than this"),lt:ge().optional().describe("Step bails if resolved value is less than this")}),Ou=_e({maxAttempts:ge().int().min(1).max(10).optional().describe("Max retry attempts on failure (default: 1, no retries)"),backoffMs:ge().int().min(100).max(6e4).optional().describe("Initial delay between retries in ms (doubles each attempt)"),timeoutMs:ge().int().min(100).max(864e5).optional().describe("Max execution time in ms before step fails (default: 30000). Upper bound 24h."),onError:mr(["fail","continue"]).optional().describe("What to do when this step fails: 'fail' aborts the workflow, 'continue' skips the error and proceeds")}),ji=lc(()=>_e({type:oe().optional(),properties:On(oe(),ze()).optional(),required:Ie(oe()).optional(),description:oe().optional(),additionalProperties:mt([ti(),On(oe(),ze())]).optional(),additionalItems:mt([ti(),On(oe(),ze())]).optional(),items:ji.optional()}).passthrough()),Ps=["input","item","index","ctx"],wu=_e({name:oe().min(1).refine(e=>!Ps.includes(e),{message:`Step name is reserved. Reserved names: ${Ps.join(", ")}`}).describe("Unique identifier for this step. Other steps reference its output as @name.field"),description:oe().optional().describe("What this step does"),action:Su,input:On(oe(),ze()).optional().describe("Data passed to the action. Use @ref for dynamic values: @input.field (workflow input), @stepName.field (previous step output), @item/@index (loop context), @ctx.execution_id (current execution ID). Example: { 'userId': '@input.user_id', 'data': '@fetch.result', 'executionId': '@ctx.execution_id' }"),outputSchema:ji.optional().describe("Optional JSON Schema describing the expected output of the step."),config:Ou.optional().describe("Retry and timeout settings"),forEach:_e({ref:oe().describe("@ ref to the step to iterate over"),concurrency:ge().optional().default(1).describe("max parallel iterations. default is 1 (sequential)")}).optional(),bail:mt([Ve(!0),vu]).optional().describe("Early return: if true, the workflow exits with this step's output on successful completion. If a condition object, the workflow exits only when the condition is met. Bail is ignored on step error.")}),xu=mr(["enqueued","running","success","error","failed","cancelled"]).default("enqueued"),ca=Ci.extend({virtual_mcp_id:oe().describe("ID of the virtual MCP (agent) that will be used to execute the workflow"),status:xu.describe("Current status of the workflow execution"),input:On(oe(),ze()).optional().describe("Input data for the workflow execution"),output:ze().optional().describe("Output data for the workflow execution"),completed_at_epoch_ms:ge().nullish().describe("Timestamp of when the workflow execution completed"),start_at_epoch_ms:ge().nullish().describe("Timestamp of when the workflow execution started or will start"),timeout_ms:ge().nullish().describe("Timeout in milliseconds for the workflow execution"),deadline_at_epoch_ms:ge().nullish().describe("Deadline for the workflow execution - when the workflow execution will be cancelled if it is not completed. This is read-only and is set by the workflow engine when an execution is created."),error:ze().nullish().describe("Error that occurred during the workflow execution"),completed_steps:_e({success:Ie(_e({name:oe(),completed_at_epoch_ms:ge()})).describe("Names of the steps that were completed successfully"),error:Ie(oe()).describe("Names of the steps that errored")}).optional().describe("Names of the steps that were completed and their status"),running_steps:Ie(oe()).optional().describe("Names of the steps that are currently running")}),Eu=mr(["signal","timer","message","output","step_started","step_completed","workflow_started","workflow_completed"]);Ci.extend({execution_id:oe(),type:Eu,name:oe().nullish(),payload:ze().optional(),visible_at:ge().nullish(),consumed_at:ge().nullish(),source_execution_id:oe().nullish()});const Au=Ci.extend({description:oe().optional().describe("Human-readable summary of what this workflow does"),input_schema:ji.optional().describe("Optional JSON Schema describing the expected input for this workflow."),steps:Ie(wu).describe("Ordered list of steps. Execution order is auto-determined by @ref dependencies: steps with no @ref dependencies run in parallel; steps referencing @stepName wait for that step to complete.")});Pi("workflow",Au);const _u={maxAttempts:1,timeoutMs:3e4},lv={name:"Initial Step",action:{code:`
|
|
11
11
|
interface Input {
|
|
12
12
|
example: string;
|
|
13
13
|
}
|
|
@@ -45,4 +45,4 @@ import{c_ as tc,dW as Fe,bX as Os,W as oe,U as ge,aK as ti,cv as _i,aH as Ie,bV
|
|
|
45
45
|
`))return null;let y="",S=0;for(;;){const E=d.indexOf(`
|
|
46
46
|
`,S),b=d.slice(S,E===-1?void 0:E+1),g=d[S];if((g===">"||g==="#"||g==="|"||g==="`"||g==="~"||g==="*"||g==="-"||g==="_"||g===" ")&&Xo(s,b)||(y+=b,E===-1||!b.trim()))break;S=E+1}const O=Tn(y);return O===""?null:[y,,O]}),u:3,i:I0},22:{t:["["],o:st(Xb),u:0,i:d=>(u[d[1]]={target:d[2],title:d[4]},{})},23:{t:["!["],o:Zn(Qb),u:0,i:d=>({alt:d[1]?Be(d[1]):void 0,ref:d[2]})},24:{t:d=>d[0]==="["&&!Le(d,"]("),o:st(e0),u:0,i:(d,p,y)=>({children:p(d[1],y),fallbackChildren:d[0],ref:d[2]})},25:{t:["|"],o:Xe(Ko),u:1,i:w0},27:{o:ut(function(d,p){let y;return Ai(d,":")&&(y=a0.exec(d)),y||u0.exec(d)}),u:4,i(d){const p=d[0];return{text:Le(p,"&")?p.replace(Hb,(y,S)=>t.namedCodesToUnicode[S]||y):p}}},34:{t:["*","_","~","="],o:ut(_b),u:2,i:(d,p,y)=>({children:p(d[2],y),tag:d[1]})},28:{t:["\\"],o:Zn(l0),u:1,i:d=>({text:d[1],type:"27"})}};t.disableParsingRawHTML===!0&&(delete f[11],delete f[13]);const h=(function(d){var p=Object.keys(d);function y(S,O){var E=[];if(O.prevCapture=O.prevCapture||"",S.trim())for(;S;)for(var b=0;b<p.length;){var g=p[b],v=d[g];if(!v.t||v0(S,O,v.t)){var x=v.o(S,O);if(x&&x[0]){S=S.substring(x[0].length);var A=v.i(x,y,O);O.prevCapture+=x[0],A.type||(A.type=g),E.push(A);break}b++}else b++}return O.prevCapture="",E}return p.sort(function(S,O){return d[S].u-d[O].u||(S<O?-1:1)}),function(S,O){return y((function(E){return E.replace(Ub,`
|
|
47
47
|
`).replace(Bb,"").replace(n0," ")})(S),O)}})(f),m=(function(d,p,y,S,O){function E(b){return Array.isArray(b)?b.map(g=>"text"in g?g.text:""):"text"in b?b.text:""}return function b(g,v={}){const x=(v.renderDepth||0)+1;if(x>2500)return E(g);v.renderDepth=x;try{if(Array.isArray(g)){const _=v.key,I=[];let P=!1;for(let T=0;T<g.length;T++){v.key=T;const C=b(g[T],v),D=zo(C);D&&P?I[I.length-1]+=C:C!==null&&I.push(C),P=D}return v.key=_,v.renderDepth=x-1,I}const A=(function(_,I,P){const T=()=>(function(C,D,j,$,k,K,L){switch(C.type){case"0":{const ee={key:j.key};return C.alert&&(ee.className="markdown-alert-"+K(C.alert.toLowerCase(),pn),C.children.unshift({attrs:{},children:[{type:"27",text:C.alert}],noInnerParse:!0,type:"11",tag:"header"})),$("blockquote",ee,D(C.children,j))}case"1":return $("br",{key:j.key});case"2":return $("hr",{key:j.key});case"3":return $("pre",{key:j.key},$("code",qe({},C.attrs,{className:C.lang?"lang-"+C.lang:""}),C.text));case"5":return $("code",{key:j.key},C.text);case"7":return $("a",{key:j.key,href:k(C.target,"a","href")},$("sup",{key:j.key},C.text));case"8":return $("input",{checked:C.completed,key:j.key,readOnly:!0,type:"checkbox"});case"9":return $("h"+C.level,{id:C.id,key:j.key},D(C.children,j));case"11":return $(C.tag,qe({key:j.key},C.attrs),C.text||(C.children?D(C.children,j):""));case"13":return $(C.tag,qe({},C.attrs,{key:j.key}));case"14":return $("img",{key:j.key,alt:C.alt||void 0,title:C.title||void 0,src:k(C.target,"img","src")});case"15":return $("a",{key:j.key,href:k(C.target,"a","href"),title:C.title},D(C.children,j));case"23":return L[C.ref]?$("img",{key:j.key,alt:C.alt,src:k(L[C.ref].target,"img","src"),title:L[C.ref].title}):null;case"24":return L[C.ref]?$("a",{key:j.key,href:k(L[C.ref].target,"a","href"),title:L[C.ref].title},D(C.children,j)):$("span",{key:j.key},C.fallbackChildren);case"25":{const ee=C;return $("table",{key:j.key},$("thead",null,$("tr",null,ee.header.map(function(re,ce){return $("th",{key:ce,style:Jo(ee,ce)},D(re,j))}))),$("tbody",null,ee.cells.map(function(re,ce){return $("tr",{key:ce},re.map(function(me,R){return $("td",{key:R,style:Jo(ee,R)},D(me,j))}))})))}case"27":return C.text;case"34":return $(C.tag,{key:j.key},D(C.children,j));case"20":case"30":return $(C.ordered?"ol":"ul",{key:j.key,start:C.type==="20"?C.start:void 0},C.items.map(function(ee,re){return $("li",{key:re},D(ee,j))}));case"19":return`
|
|
48
|
-
`;case"21":return $("p",{key:j.key},D(C.children,j));default:return null}})(_,I,P,p,y,S,O);return d?d(T,_,I,P):T()})(g,b,v);return v.renderDepth=x-1,A}catch(A){if(A instanceof RangeError&&A.message.includes("Maximum call stack"))return E(g);throw A}}})(t.renderRule,a,r,n,u);return l(e)}const Gn=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,Ib);return C0(t??"",qe({},n,{wrapperProps:qe({},n?.wrapperProps,r)}))},zl=Symbol("remove-this-key"),Qo=Symbol("reset");function P0(e,t){return Array.isArray(e.required)&&e.required.indexOf(t)!==-1}function F0(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(te.NewStringDefault)}}function j0(e){const{fieldPathId:t,schema:n,registry:r,uiSchema:i,errorSchema:s,formData:o,onChange:a,onBlur:l,onFocus:c,disabled:u,readonly:f,required:h,hideError:m,propertyName:d,handleKeyRename:p,handleRemoveProperty:y,addedByAdditionalProperties:S}=e,[O,E]=N.useState(!1),{globalFormOptions:b,fields:g}=r,{SchemaField:v}=g,x=Rt(Ne(d,b,t.path)),A=N.useCallback((T,C,D,j)=>{T===void 0&&S&&(T=""),a(T,C,D,j)},[a,S]),_=N.useCallback(T=>{d!==T&&E(!0),p(d,T)},[d,p]),I=N.useCallback(T=>{const{target:{value:C}}=T;_(C)},[_]),P=N.useCallback(()=>{y(d)},[d,y]);return w.jsx(v,{name:d,required:h,schema:n,uiSchema:i,errorSchema:s,fieldPathId:x,formData:o,wasPropertyKeyModified:O,onKeyRename:_,onKeyRenameBlur:I,onRemoveProperty:P,onChange:A,onBlur:l,onFocus:c,registry:r,disabled:u,readonly:f,hideError:m})}function $0(e){const{schema:t,uiSchema:n={},formData:r,errorSchema:i,fieldPathId:s,name:o,required:a=!1,disabled:l,readonly:c,hideError:u,onBlur:f,onFocus:h,onChange:m,registry:d,title:p}=e,{fields:y,schemaUtils:S,translateString:O,globalUiOptions:E}=d,{OptionalDataControlsField:b}=y,g=N.useRef(r);g.current=r;const v=S.retrieveSchema(t,r,!0),x=M(n,E),{properties:A={}}=v,_=e.childFieldPathId??s,I=N.useRef({previousKey:"",currentKey:void 0}),P=x.title??v.title??p??o,T=x.description??v.description,C=Kn(d,v,a,n),D=ln(r);let j=[];const $=N.useCallback((R,ie)=>{const{duplicateKeySuffixSeparator:J="-"}=M(n,E);let q=0,H=R;for(;z(ie,H);)H=`${R}${J}${++q}`;return H},[n,E]),k=N.useCallback(()=>{if(!(v.additionalProperties||v.patternProperties))return;const{translateString:R}=d,ie={...r},J=$("newKey",ie);if(v.patternProperties)se(ie,J,null);else{let q,H,U;if(Z(v.additionalProperties)){q=v.additionalProperties.type,H=v.additionalProperties.const,U=v.additionalProperties.default;let ne=v.additionalProperties;if(ae in ne){const{schemaUtils:we}=d;ne=we.retrieveSchema({[ae]:ne[ae]},r),q=ne.type,H=ne.const,U=ne.default}!q&&(Y in ne||B in ne)&&(q="object")}const X=H??U??F0(R,q);se(ie,J,X)}I.current.previousKey===J&&(I.current.currentKey=J,I.current.previousKey=$(J,ie)),m(ie,_.path)},[r,m,d,_,$,v]),K=N.useCallback((R,ie)=>{if(R!==ie){const J=g.current,q=$(ie,J),H={...J},U={[R]:q},X=Object.keys(H).map(we=>({[U[we]||we]:H[we]})),ne=Object.assign({},...X);g.current=ne,R!==I.current.currentKey&&(I.current.previousKey=R),I.current.currentKey=q,m(ne,_.path)}},[m,_,$]),L=N.useCallback(R=>{m(zl,[..._.path,R])},[m,_]),ee=N.useCallback(R=>I.current.currentKey===R?I.current.previousKey:R,[]);if(!C||D)try{const R=Object.keys(A);j=_g(R,x.order)}catch(R){return w.jsxs("div",{children:[w.jsx("p",{className:"rjsf-config-error",style:{color:"red"},children:w.jsx(Gn,{options:{disableParsingRawHTML:!0},children:O(te.InvalidObjectField,[o||"root",R.message])})}),w.jsx("pre",{children:JSON.stringify(v)})]})}const re=V("ObjectFieldTemplate",d,x),ce=C?w.jsx(b,{...e,fieldPathId:_,schema:v}):void 0,me={title:x.label===!1?"":P,description:x.label===!1?void 0:T,properties:j.map(R=>{const ie=z(v,[Q,R,ft]),J=ie?n.additionalProperties:n[R],q=M(J).widget==="hidden";return{content:w.jsx(j0,{propertyName:R,required:P0(v,R),schema:F(v,[Q,R],{}),uiSchema:J,errorSchema:F(i,[R]),fieldPathId:_,formData:F(r,[R]),handleKeyRename:K,handleRemoveProperty:L,addedByAdditionalProperties:ie,onChange:m,onBlur:f,onFocus:h,registry:d,disabled:l,readonly:c,hideError:u},ee(R)),name:R,readonly:c,disabled:l,required:a,hidden:q}}),readonly:c,disabled:l,required:a,fieldPathId:s,uiSchema:n,errorSchema:i,schema:v,formData:r,registry:d,optionalDataControl:ce,className:C?"rjsf-optional-object-field":void 0};return w.jsx(re,{...me,onAddProperty:k})}function D0(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:f,translateString:h}=c,m=M(n,u),d=V("OptionalDataControlsTemplate",c,m),p=ln(r);let y,S,O,E;if(i||s)y=Hr(l,"Msg"),S=p?void 0:h(te.OptionalObjectEmptyMsg);else{const b=p?te.OptionalObjectRemove:te.OptionalObjectAdd;S=h(b),p?(y=Hr(l,"Remove"),E=()=>o(void 0,l.path,a)):(y=Hr(l,"Add"),O=()=>{let g=f.getDefaultFormState(t,r,"excludeObjectChildren");g===void 0&&(g=ke(t)==="array"?[]:{}),o(g,l.path,a)})}return S&&w.jsx(d,{id:y,registry:c,schema:t,uiSchema:n,label:S,onAddClick:O,onRemoveClick:E})}const N0={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function R0(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=ke(e),o=Array.isArray(s)?s[0]:s||"",a=e.$id;let l=N0[o];return a&&a in i&&(l=a),!l&&(e.anyOf||e.oneOf)?()=>null:l in i?i[l]:i.FallbackField}function M0(e){const{schema:t,fieldPathId:n,uiSchema:r,formData:i,errorSchema:s,name:o,onChange:a,onKeyRename:l,onKeyRenameBlur:c,onRemoveProperty:u,required:f=!1,registry:h,wasPropertyKeyModified:m=!1}=e,{schemaUtils:d,globalFormOptions:p,globalUiOptions:y,fields:S}=h,{AnyOfField:O,OneOfField:E}=S,b=Ig(t,r,h),g=M(b,y),v=V("FieldTemplate",h,g),x=V("DescriptionFieldTemplate",h,g),A=V("FieldHelpTemplate",h,g),_=V("FieldErrorTemplate",h,g),I=d.retrieveSchema(t,i),P=n[le],T=N.useCallback((cn,un,Ot,ec)=>a(cn,un,Ot,ec||P),[P,a]),C=R0(I,g,h),D=!!(g.disabled??e.disabled),j=!!(g.readonly??(e.readonly||e.schema.readOnly||I.readOnly)),$=g.hideError,k=$===void 0?e.hideError:!!$,K=!!(g.autofocus??e.autofocus);if(Object.keys(I).length===0)return null;let L=d.getDisplayLabel(I,b,y);const ee=g.field&&g.fieldReplacesAnyOrOneOf===!0;let re,ce,me={fieldPathId:n};if((Y in I||B in I)&&!ee&&!d.isSelect(I)){I[Y]?(re=O,ce=I[Y].map(Ot=>d.retrieveSchema(Z(Ot)?Ot:{},i))):I[B]&&(re=E,ce=I[B].map(Ot=>d.retrieveSchema(Z(Ot)?Ot:{},i)));const cn=Kn(h,I,f,b),un=ln(i);L=L&&(!cn||un),me={childFieldPathId:n,fieldPathId:Ne("XxxOf",p,n)}}const{__errors:R,...ie}=s||{},J=Qt(b,["ui:classNames","classNames","ui:style"]);dt in J&&(J[dt]=Qt(J[dt],["classNames","style"]));const q=w.jsx(C,{...e,onChange:T,...me,schema:I,uiSchema:J,disabled:D,readonly:j,hideError:k,autofocus:K,errorSchema:ie,rawErrors:R}),H=n[le];let U;m?U=o:U=ft in I?o:g.title||e.schema.title||I.title||e.title||o;const X=g.description||e.schema.description||I.description||"",ne=g.help,we=g.widget==="hidden",xe=["rjsf-field",`rjsf-field-${ke(I)}`];!k&&R&&R.length>0&&xe.push("rjsf-field-error"),g.classNames&&xe.push(g.classNames);const be=w.jsx(A,{help:ne,fieldPathId:n,schema:I,uiSchema:b,hasErrors:!k&&R&&R.length>0,registry:h}),Ce=k||re&&!d.isSelect(I)?void 0:w.jsx(_,{errors:R,errorSchema:s,fieldPathId:n,schema:I,uiSchema:b,registry:h}),it={description:w.jsx(x,{id:Hn(H),description:X,schema:I,uiSchema:b,registry:h}),rawDescription:X,help:be,rawHelp:typeof ne=="string"?ne:void 0,errors:Ce,rawErrors:k?void 0:R,fieldPathId:n,id:H,label:U,hidden:we,onChange:a,onKeyRename:l,onKeyRenameBlur:c,onRemoveProperty:u,required:f,disabled:D,readonly:j,hideError:k,displayLabel:L,classNames:xe.join(" ").trim(),style:g.style,formData:i,schema:I,uiSchema:b,registry:h};return w.jsx(v,{...it,children:w.jsxs(w.Fragment,{children:[q,re&&w.jsx(re,{name:o,disabled:D,readonly:j,hideError:k,errorSchema:s,formData:i,fieldPathId:n,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:ce,registry:h,required:f,schema:I,uiSchema:b})]})})}class U0 extends N.Component{shouldComponentUpdate(t){const{registry:{globalFormOptions:n}}=this.props,{experimental_componentUpdateStrategy:r="customDeep"}=n;return jl(this,t,this.state,r)}render(){return w.jsx(M0,{...this.props})}}function k0(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:f,onFocus:h,registry:m,rawErrors:d,hideError:p,title:y}=e,{title:S,format:O}=t,{widgets:E,schemaUtils:b,globalUiOptions:g}=m,v=b.isSelect(t)?tn(t,r):void 0;let x=v?"select":"text";O&&wg(t,O,E)&&(x=O);const{widget:A=x,placeholder:_="",title:I,...P}=M(r),T=b.getDisplayLabel(t,r,g),C=I??y??S??n,D=Je(t,A,E),j=N.useCallback(($,k,K)=>u($,i.path,k,K),[u,i]);return w.jsx(D,{options:{...P,enumOptions:v},schema:t,uiSchema:r,id:i.$id,name:n,label:C,hideLabel:!T,hideError:p,value:s,onChange:j,onBlur:f,onFocus:h,required:o,disabled:a,readonly:l,autofocus:c,registry:m,placeholder:_,rawErrors:d,htmlName:i.name})}function L0(e){const{formData:t,onChange:n,fieldPathId:r}=e;return N.useEffect(()=>{t===void 0&&n(null,r.path)},[r,t,n]),null}function B0(){return{AnyOfField:No,ArrayField:Yg,BooleanField:Jg,FallbackField:eb,LayoutGridField:gs,LayoutHeaderField:vb,LayoutMultiSchemaField:Ob,NumberField:Eb,ObjectField:$0,OneOfField:No,OptionalDataControlsField:D0,SchemaField:U0,StringField:k0,NullField:L0}}function W0(e){const{fieldPathId:t,description:n,registry:r,schema:i,uiSchema:s}=e,o=M(s,r.globalUiOptions),{label:a=!0}=o;if(!n||!a)return null;const l=V("DescriptionFieldTemplate",r,o);return w.jsx(l,{id:Hn(t),description:n,schema:i,uiSchema:s,registry:r})}function V0(e){const{children:t,className:n,buttonsProps:r,displayLabel:i,hasDescription:s,hasToolbar:o,registry:a,uiSchema:l}=e,c=M(l),u=V("ArrayFieldItemButtonsTemplate",a,c),f={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"},h=s?31:9,m={display:"flex",alignItems:i?"center":"baseline"},d={display:"flex",justifyContent:"flex-end",marginTop:i?`${h}px`:0};return w.jsxs("div",{className:n,style:m,children:[w.jsx("div",{className:o?"col-xs-9 col-md-10 col-xl-11":"col-xs-12",children:t}),o&&w.jsx("div",{className:"col-xs-3 col-md-2 col-xl-1 array-item-toolbox",children:w.jsx("div",{className:"btn-group",style:d,children:w.jsx(u,{...r,style:f})})})]})}function q0(e){const{disabled:t,hasCopy:n,hasMoveDown:r,hasMoveUp:i,hasRemove:s,fieldPathId:o,onCopyItem:a,onRemoveItem:l,onMoveDownItem:c,onMoveUpItem:u,readonly:f,registry:h,uiSchema:m}=e,{CopyButton:d,MoveDownButton:p,MoveUpButton:y,RemoveButton:S}=h.templates.ButtonTemplates;return w.jsxs(w.Fragment,{children:[(i||r)&&w.jsx(y,{id:At(o,"moveUp"),className:"rjsf-array-item-move-up",disabled:t||f||!i,onClick:u,uiSchema:m,registry:h}),(i||r)&&w.jsx(p,{id:At(o,"moveDown"),className:"rjsf-array-item-move-down",disabled:t||f||!r,onClick:c,uiSchema:m,registry:h}),n&&w.jsx(d,{id:At(o,"copy"),className:"rjsf-array-item-copy",disabled:t||f,onClick:a,uiSchema:m,registry:h}),s&&w.jsx(S,{id:At(o,"remove"),className:"rjsf-array-item-remove",disabled:t||f,onClick:l,uiSchema:m,registry:h})]})}function H0(e){const{canAdd:t,className:n,disabled:r,fieldPathId:i,uiSchema:s,items:o,optionalDataControl:a,onAddClick:l,readonly:c,registry:u,required:f,schema:h,title:m}=e,d=M(s),p=V("ArrayFieldDescriptionTemplate",u,d),y=V("ArrayFieldTitleTemplate",u,d),S=!c&&!r,{ButtonTemplates:{AddButton:O}}=u.templates;return w.jsxs("fieldset",{className:n,id:i.$id,children:[w.jsx(y,{fieldPathId:i,title:d.title||m,required:f,schema:h,uiSchema:s,registry:u,optionalDataControl:S?a:void 0}),w.jsx(p,{fieldPathId:i,description:d.description||h.description,schema:h,uiSchema:s,registry:u}),S?void 0:a,w.jsx("div",{className:"row array-item-list",children:o}),t&&w.jsx(O,{id:At(i,"add"),className:"rjsf-array-item-add",onClick:l,disabled:r||c,uiSchema:s,registry:u})]})}function K0(e){const{fieldPathId:t,title:n,schema:r,uiSchema:i,required:s,registry:o,optionalDataControl:a}=e,l=M(i,o.globalUiOptions),{label:c=!0}=l;if(!n||!c)return null;const u=V("TitleFieldTemplate",o,l);return w.jsx(u,{id:hs(t),title:n,required:s,schema:r,uiSchema:i,registry:o,optionalDataControl:a})}function G0(e){const{id:t,schema:n}=e,{examples:r,default:i}=n;return Array.isArray(r)?w.jsx("datalist",{id:ds(t),children:r.concat(i!==void 0&&!r.map(String).includes(String(i))?[i]:[]).map(s=>w.jsx("option",{value:s},String(s)))},`datalist_${t}`):null}function z0(e){const{id:t,name:n,htmlName:r,value:i,readonly:s,disabled:o,autofocus:a,onBlur:l,onFocus:c,onChange:u,onChangeOverride:f,options:h,schema:m,uiSchema:d,registry:p,rawErrors:y,type:S,hideLabel:O,hideError:E,...b}=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={...b,...mg(m,S,h)};let x;v.type==="number"||v.type==="integer"?x=i||i===0?i:"":x=i??"";const A=N.useCallback(({target:{value:T}})=>u(T===""?h.emptyValue:T),[u,h]),_=N.useCallback(({target:T})=>l(t,T&&T.value),[l,t]),I=N.useCallback(({target:T})=>c(t,T&&T.value),[c,t]),P=N.useCallback(T=>{T.preventDefault(),T.stopPropagation(),u(h.emptyValue??"")},[u,h.emptyValue]);return w.jsxs(w.Fragment,{children:[w.jsx("input",{id:t,name:r||t,className:"form-control",readOnly:s,disabled:o,autoFocus:a,value:x,...v,list:m.examples?ds(t):void 0,onChange:f||A,onBlur:_,onFocus:I,"aria-describedby":Nt(t,!!m.examples)}),h.allowClearTextInputs&&!s&&!o&&x&&w.jsx(g,{registry:p,onClick:P}),w.jsx(G0,{id:t,schema:m})]})}function Y0({uiSchema:e}){const{submitText:t,norender:n,props:r={}}=yg(e);return n?null:w.jsx("div",{children:w.jsx("button",{type:"submit",...r,className:`btn btn-info ${r.className||""}`,children:t})})}function vt(e){const{iconType:t="default",icon:n,className:r,uiSchema:i,registry:s,...o}=e;return w.jsx("button",{type:"button",className:`btn btn-${t} ${r}`,...o,children:w.jsx("i",{className:`glyphicon glyphicon-${n}`})})}function J0(e){const{registry:{translateString:t}}=e;return w.jsx(vt,{title:t(te.CopyButton),...e,icon:"copy"})}function Z0(e){const{registry:{translateString:t}}=e;return w.jsx(vt,{title:t(te.MoveDownButton),...e,icon:"arrow-down"})}function X0(e){const{registry:{translateString:t}}=e;return w.jsx(vt,{title:t(te.MoveUpButton),...e,icon:"arrow-up"})}function Q0(e){const{registry:{translateString:t}}=e;return w.jsx(vt,{title:t(te.RemoveButton),...e,iconType:"danger",icon:"remove"})}function eS({id:e,className:t,onClick:n,disabled:r,registry:i,...s}){const{translateString:o}=i;return w.jsx(vt,{id:e,iconType:"default",icon:"remove",className:"btn-clear col-xs-12",title:o(te.ClearButton),onClick:n,disabled:r,registry:i,...s})}function tS({id:e,className:t,onClick:n,disabled:r,registry:i}){const{translateString:s}=i;return w.jsx("div",{className:"row",children:w.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:w.jsx(vt,{id:e,iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:s(te.AddButton),onClick:n,disabled:r,registry:i})})})}function nS(){return{SubmitButton:Y0,AddButton:tS,CopyButton:J0,MoveDownButton:Z0,MoveUpButton:X0,RemoveButton:Q0,ClearButton:eS}}const Yl=fs();function Jl({description:e,registry:t,uiSchema:n={}}){const{globalUiOptions:r}=t;return M(n,r).enableMarkdownInDescription&&typeof e=="string"?w.jsx(Gn,{options:{disableParsingRawHTML:!0},"data-testid":Yl.markdown,children:e}):e}Jl.TEST_IDS=Yl;function rS(e){const{id:t,description:n,registry:r,uiSchema:i}=e;return n?w.jsx("div",{id:t,className:"field-description",children:w.jsx(Jl,{description:n,registry:r,uiSchema:i})}):null}function iS({errors:e,registry:t}){const{translateString:n}=t;return w.jsxs("div",{className:"panel panel-danger errors",children:[w.jsx("div",{className:"panel-heading",children:w.jsx("h3",{className:"panel-title",children:n(te.ErrorsLabel)})}),w.jsx("ul",{className:"list-group",children:e.map((r,i)=>w.jsx("li",{className:"list-group-item text-danger",children:r.stack},i))})]})}function sS(e){const{schema:t,registry:n,typeSelector:r,schemaField:i}=e,s=V("MultiSchemaFieldTemplate",n);return w.jsx(s,{selector:r,optionSchemaField:i,schema:t,registry:n})}const oS="*";function Zl(e){const{label:t,required:n,id:r}=e;return t?w.jsxs("label",{className:"control-label",htmlFor:r,children:[t,n&&w.jsx("span",{className:"required",children:oS})]}):null}function aS(e){const{id:t,label:n,children:r,errors:i,help:s,description:o,hidden:a,required:l,displayLabel:c,registry:u,uiSchema:f}=e,h=M(f),m=V("WrapIfAdditionalTemplate",u,h);if(a)return w.jsx("div",{className:"hidden",children:r});const d=h.widget==="checkbox";return w.jsxs(m,{...e,children:[c&&!d&&w.jsx(Zl,{label:n,required:l,id:t}),c&&o?o:null,r,i,s]})}function lS(e){const{errors:t=[],fieldPathId:n}=e;if(t.length===0)return null;const r=Cl(n);return w.jsx("div",{children:w.jsx("ul",{id:r,className:"error-detail bs-callout bs-callout-info",children:t.filter(i=>!!i).map((i,s)=>w.jsx("li",{className:"text-danger",children:i},s))})})}const Xl=fs();function Ql({help:e,registry:t,uiSchema:n={}}){const{globalUiOptions:r}=t;return M(n,r).enableMarkdownInHelp&&typeof e=="string"?w.jsx(Gn,{options:{disableParsingRawHTML:!0},"data-testid":Xl.markdown,children:e}):e}Ql.TEST_IDS=Xl;function cS(e){const{fieldPathId:t,help:n,uiSchema:r,registry:i}=e;return n?w.jsx("div",{id:Pl(t),className:"help-block",children:w.jsx(Ql,{help:n,registry:i,uiSchema:r})}):null}function uS(e){const{children:t,column:n,className:r,...i}=e;return w.jsx("div",{className:r,...i,children:t})}function fS(e){const{selector:t,optionSchemaField:n}=e;return w.jsxs("div",{className:"panel panel-default panel-body",children:[w.jsx("div",{className:"form-group",children:t}),n]})}function dS(e){const{className:t,description:n,disabled:r,formData:i,fieldPathId:s,onAddProperty:o,optionalDataControl:a,properties:l,readonly:c,registry:u,required:f,schema:h,title:m,uiSchema:d}=e,p=M(d),y=V("TitleFieldTemplate",u,p),S=V("DescriptionFieldTemplate",u,p);if((h.oneOf||h.anyOf)&&!h.properties&&l.length===0)return null;const E=!c&&!r,{ButtonTemplates:{AddButton:b}}=u.templates;return w.jsxs("fieldset",{className:t,id:s.$id,children:[m&&w.jsx(y,{id:hs(s),title:m,required:f,schema:h,uiSchema:d,registry:u,optionalDataControl:E?a:void 0}),n&&w.jsx(S,{id:Hn(s),description:n,schema:h,uiSchema:d,registry:u}),E?void 0:a,l.map(g=>g.content),Nu(h,d,i)&&w.jsx(b,{id:At(s,"add"),className:"rjsf-object-property-expand",onClick:o,disabled:r||c,uiSchema:d,registry:u})]})}function hS(e){const{id:t,registry:n,label:r,onAddClick:i,onRemoveClick:s}=e;return i?w.jsx(vt,{id:t,registry:n,icon:"plus",className:"rjsf-add-optional-data btn-sm",onClick:i,title:r}):s?w.jsx(vt,{id:t,registry:n,icon:"remove",className:"rjsf-remove-optional-data btn-sm",onClick:s,title:r}):w.jsx("em",{id:t,children:r})}const pS="*";function mS(e){const{id:t,title:n,required:r,optionalDataControl:i}=e;return w.jsxs("legend",{id:t,children:[n,r&&w.jsx("span",{className:"required",children:pS}),i&&w.jsx("span",{className:"pull-right",style:{marginBottom:"2px"},children:i})]})}function yS(e){const{schema:t,fieldPathId:n,reason:r,registry:i}=e,{translateString:s}=i;let o=te.UnsupportedField;const a=[];return n&&n.$id&&(o=te.UnsupportedFieldWithId,a.push(n.$id)),r&&(o=o===te.UnsupportedField?te.UnsupportedFieldWithReason:te.UnsupportedFieldWithIdAndReason,a.push(r)),w.jsxs("div",{className:"unsupported-field",children:[w.jsx("p",{children:w.jsx(Gn,{options:{disableParsingRawHTML:!0},children:s(o,a)})}),t&&w.jsx("pre",{children:JSON.stringify(t,null,2)})]})}function gS(e){const{id:t,classNames:n,style:r,disabled:i,displayLabel:s,label:o,onKeyRenameBlur:a,onRemoveProperty:l,rawDescription:c,readonly:u,required:f,schema:h,hideError:m,rawErrors:d,children:p,uiSchema:y,registry:S}=e,{templates:O,translateString:E}=S,{RemoveButton:b}=O.ButtonTemplates,g=E(te.KeyLabel,[o]),v=ft in h,x=!!c,A=["form-group",n];!m&&d&&d.length>0&&A.push("has-error has-danger");const _=A.join(" ").trim();if(!v)return w.jsx("div",{className:_,style:r,children:p});const I=x?46:26;return w.jsx("div",{className:_,style:r,children:w.jsxs("div",{className:"row",children:[w.jsx("div",{className:"col-xs-5 form-additional",children:w.jsxs("div",{className:"form-group",children:[s&&w.jsx(Zl,{label:g,required:f,id:`${t}-key`}),s&&c&&w.jsx("div",{children:" "}),w.jsx("input",{className:"form-control",type:"text",id:`${t}-key`,onBlur:a,defaultValue:o},o)]})}),w.jsx("div",{className:"form-additional form-group col-xs-5",children:p}),w.jsx("div",{className:"col-xs-2",style:{marginTop:s?`${I}px`:void 0},children:w.jsx(b,{id:At(t,"remove"),className:"rjsf-object-property-remove btn-block",style:{border:"0"},disabled:i||u,onClick:l,uiSchema:y,registry:S})})]})})}function bS(){return{ArrayFieldDescriptionTemplate:W0,ArrayFieldItemTemplate:V0,ArrayFieldItemButtonsTemplate:q0,ArrayFieldTemplate:H0,ArrayFieldTitleTemplate:K0,ButtonTemplates:nS(),BaseInputTemplate:z0,DescriptionFieldTemplate:rS,ErrorListTemplate:iS,FallbackFieldTemplate:sS,FieldTemplate:aS,FieldErrorTemplate:lS,FieldHelpTemplate:cS,GridTemplate:uS,MultiSchemaFieldTemplate:fS,ObjectFieldTemplate:dS,OptionalDataControlsTemplate:hS,TitleFieldTemplate:mS,UnsupportedFieldTemplate:yS,WrapIfAdditionalTemplate:gS}}function SS(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:f,handleChange:h,handleClear:m,handleSetNow:d}=Fg(e);return w.jsxs("ul",{className:"list-inline",children:[f.map((p,y)=>w.jsx("li",{className:"list-inline-item",children:w.jsx(Pg,{rootId:s,name:o,select:h,...p,disabled:t,readonly:n,registry:a,onBlur:l,onFocus:c,autofocus:r&&y===0})},y)),(i.hideNowButton!=="undefined"?!i.hideNowButton:!0)&&w.jsx("li",{className:"list-inline-item",children:w.jsx("a",{href:"#",className:"btn btn-info btn-now",onClick:d,children:u(te.NowLabel)})}),(i.hideClearButton!=="undefined"?!i.hideClearButton:!0)&&w.jsx("li",{className:"list-inline-item",children:w.jsx("a",{href:"#",className:"btn btn-warning btn-clear",onClick:m,children:u(te.ClearLabel)})})]})}function vS({time:e=!0,...t}){const{AltDateWidget:n}=t.registry.widgets;return w.jsx(n,{time:e,...t})}function OS({schema:e,uiSchema:t,options:n,id:r,value:i,disabled:s,readonly:o,label:a,hideLabel:l,autofocus:c=!1,onBlur:u,onFocus:f,onChange:h,registry:m,htmlName:d}){const p=V("DescriptionFieldTemplate",m,n),y=ar(e),S=N.useCallback(x=>h(x.target.checked),[h]),O=N.useCallback(x=>u(r,x.target.checked),[u,r]),E=N.useCallback(x=>f(r,x.target.checked),[f,r]),v=M(t).widget==="checkbox"?void 0:n.description??e.description;return w.jsxs("div",{className:`checkbox ${s||o?"disabled":""}`,children:[!l&&v&&w.jsx(p,{id:Hn(r),description:v,schema:e,uiSchema:t,registry:m}),w.jsxs("label",{children:[w.jsx("input",{type:"checkbox",id:r,name:d||r,checked:typeof i>"u"?!1:i,required:y,disabled:s||o,autoFocus:c,onChange:S,onBlur:O,onFocus:E,"aria-describedby":Nt(r)}),Eg(w.jsx("span",{children:a}),l)]})]})}function wS({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:f,enumDisabled:h,emptyValue:m}=n,d=us(n),p=Array.isArray(r)?r:[r],y=N.useCallback(({target:O})=>a(e,_t(O&&O.value,f,d,m)),[a,e,f,m,d]),S=N.useCallback(({target:O})=>l(e,_t(O&&O.value,f,d,m)),[l,e,f,m,d]);return w.jsx("div",{className:"checkboxes",id:e,children:Array.isArray(f)&&f.map((O,E)=>{const b=as(O.value,p),g=Array.isArray(h)&&h.indexOf(O.value)!==-1,v=t||g||s?"disabled":"",x=_=>{_.target.checked?o(sg(E,p,f)):o(ig(E,p,f))},A=w.jsxs("span",{children:[w.jsx("input",{type:"checkbox",id:Fl(e,E),name:c||e,checked:b,value:ls(O.value,E,d),disabled:t||g||s,autoFocus:i&&E===0,onChange:x,onBlur:y,onFocus:S,"aria-describedby":Nt(e)}),w.jsx("span",{children:O.label})]});return u?w.jsx("label",{className:`checkbox-inline ${v}`,children:A},E):w.jsx("div",{className:`checkbox ${v}`,children:w.jsx("label",{children:A})},E)})})}function xS(e){const{disabled:t,readonly:n,options:r,registry:i}=e,s=V("BaseInputTemplate",i,r);return w.jsx(s,{type:"color",...e,disabled:t||n})}function ES(e){const{onChange:t,options:n,registry:r}=e,i=V("BaseInputTemplate",r,n),s=N.useCallback(o=>t(o||void 0),[t]);return w.jsx(i,{type:"date",...e,onChange:s})}function AS(e){const{onChange:t,value:n,options:r,registry:i}=e,s=V("BaseInputTemplate",i,r);return w.jsx(s,{type:"datetime-local",...e,value:Rg(n),onChange:o=>t(Ag(o))})}function _S(e){const{options:t,registry:n}=e,r=V("BaseInputTemplate",n,t);return w.jsx(r,{type:"email",...e})}function IS({fileInfo:e,registry:t}){const{translateString:n}=t,{dataURL:r,type:i,name:s}=e;return r?["image/jpeg","image/png"].includes(i)?w.jsx("img",{src:r,style:{maxWidth:"100%"},className:"file-preview"}):w.jsxs(w.Fragment,{children:[" ",w.jsx("a",{download:`preview-${s}`,href:r,className:"file-download",children:n(te.PreviewLabel)})]}):null}function TS({filesInfo:e,registry:t,preview:n,onRemove:r,options:i}){if(e.length===0)return null;const{translateString:s}=t,{RemoveButton:o}=V("ButtonTemplates",t,i);return w.jsx("ul",{className:"file-info",children:e.map((a,l)=>{const{name:c,size:u,type:f}=a,h=()=>r(l);return w.jsxs("li",{children:[w.jsx(Gn,{children:s(te.FilesInfo,[c,f,String(u)])}),n&&w.jsx(IS,{fileInfo:a,registry:t}),w.jsx(o,{onClick:h,registry:t})]},l)})})}function CS(e){const{disabled:t,readonly:n,required:r,multiple:i,onChange:s,value:o,options:a,registry:l}=e,{filesInfo:c,handleChange:u,handleRemove:f}=Ng(o,s,i),h=V("BaseInputTemplate",l,a),m=d=>{d.target.files&&u(d.target.files)};return w.jsxs("div",{children:[w.jsx(h,{...e,disabled:t||n,type:"file",required:o?!1:r,onChangeOverride:m,value:"",accept:a.accept?String(a.accept):void 0}),w.jsx(TS,{filesInfo:c,onRemove:f,registry:l,preview:a.filePreview,options:a})]})}function PS({id:e,value:t,htmlName:n}){return w.jsx("input",{type:"hidden",id:e,name:n||e,value:typeof t>"u"?"":t})}function FS(e){const{options:t,registry:n}=e,r=V("BaseInputTemplate",n,t);return w.jsx(r,{type:"password",...e})}function jS({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:f,enumDisabled:h,inline:m,emptyValue:d}=e,p=us(e),y=N.useCallback(({target:O})=>o(c,_t(O&&O.value,f,p,d)),[o,f,d,c,p]),S=N.useCallback(({target:O})=>a(c,_t(O&&O.value,f,p,d)),[a,f,d,c,p]);return w.jsx("div",{className:"field-radio-group",id:c,role:"radiogroup",children:Array.isArray(f)&&f.map((O,E)=>{const b=as(O.value,t),g=Array.isArray(h)&&h.indexOf(O.value)!==-1,v=r||g||i?"disabled":"",x=()=>l(O.value),A=w.jsxs("span",{children:[w.jsx("input",{type:"radio",id:Fl(c,E),checked:b,name:u||c,required:n,value:ls(O.value,E,p),disabled:r||g||i,autoFocus:s&&E===0,onChange:x,onBlur:y,onFocus:S,"aria-describedby":Nt(c)}),w.jsx("span",{children:O.label})]});return m?w.jsx("label",{className:`radio-inline ${v}`,children:A},E):w.jsx("div",{className:`radio ${v}`,children:w.jsx("label",{children:A})},E)})})}function $S(e){const{value:t,registry:{templates:{BaseInputTemplate:n}}}=e;return w.jsxs("div",{className:"field-range-wrapper",children:[w.jsx(n,{type:"range",...e}),w.jsx("span",{className:"range-view",children:t})]})}function DS({id:e,value:t,required:n,disabled:r,readonly:i,autofocus:s,onChange:o,onFocus:a,onBlur:l,schema:c,options:u,htmlName:f}){const{stars:h=5,shape:m="star"}=u,d=c.maximum?Math.min(c.maximum,5):Math.min(Math.max(h,1),5),p=c.minimum||0,y=N.useCallback(b=>{!r&&!i&&o(b)},[o,r,i]),S=N.useCallback(b=>{if(a){const g=Number(b.target.dataset.value);a(e,g)}},[a,e]),O=N.useCallback(b=>{if(l){const g=Number(b.target.dataset.value);l(e,g)}},[l,e]),E=b=>m==="heart"?b?"♥":"♡":b?"★":"☆";return w.jsx(w.Fragment,{children:w.jsxs("div",{className:"rating-widget",style:{display:"inline-flex",fontSize:"1.5rem",cursor:r||i?"default":"pointer"},children:[[...Array(d)].map((b,g)=>{const v=p+g,x=v<=t;return w.jsx("span",{onClick:()=>y(v),onFocus:S,onBlur:O,"data-value":v,tabIndex:r||i?-1:0,role:"radio","aria-checked":v===t,"aria-label":`${v} ${m==="heart"?"heart":"star"}${v===1?"":"s"}`,style:{color:x?"#FFD700":"#ccc",padding:"0 0.2rem",transition:"color 0.2s",userSelect:"none"},children:E(x)},g)}),w.jsx("input",{type:"hidden",id:e,name:f||e,value:t||"",required:n,disabled:r||i,"aria-hidden":"true"})]})})}function Xr(e,t){return t?Array.from(e.target.options).slice().filter(n=>n.selected).map(n=>n.value):e.target.value}function NS({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:f,placeholder:h,htmlName:m}){const{enumOptions:d,enumDisabled:p,emptyValue:y}=n,S=a?[]:"",O=us(n),E=N.useCallback(A=>{const _=Xr(A,a);return f(t,_t(_,d,O,y))},[f,t,a,d,y,O]),b=N.useCallback(A=>{const _=Xr(A,a);return u(t,_t(_,d,O,y))},[u,t,a,d,y,O]),g=N.useCallback(A=>{const _=Xr(A,a);return c(_t(_,d,O,y))},[c,a,d,y,O]),v=rg(r,d,a,O,S),x=!a&&e.default===void 0;return w.jsxs("select",{id:t,name:m||t,multiple:a,role:"combobox",className:"form-control",value:v,required:i,disabled:s||o,autoFocus:l,onBlur:b,onFocus:E,onChange:g,"aria-describedby":Nt(t),children:[x&&w.jsx("option",{value:"",children:h}),Array.isArray(d)&&d.map(({value:A,label:_},I)=>{const P=p&&p.indexOf(A)!==-1;return w.jsx("option",{value:ls(A,I,O),disabled:P,children:_},I)})]})}function RS({id:e,options:t={},placeholder:n,value:r,required:i,disabled:s,readonly:o,autofocus:a=!1,onChange:l,onBlur:c,onFocus:u,htmlName:f}){const h=N.useCallback(({target:{value:p}})=>l(p===""?t.emptyValue:p),[l,t.emptyValue]),m=N.useCallback(({target:p})=>c(e,p&&p.value),[c,e]),d=N.useCallback(({target:p})=>u(e,p&&p.value),[e,u]);return w.jsx("textarea",{id:e,name:f||e,className:"form-control",value:r||"",placeholder:n,required:i,disabled:s,readOnly:o,autoFocus:a,rows:t.rows,onBlur:m,onFocus:d,onChange:h,"aria-describedby":Nt(e)})}function MS(e){const{options:t,registry:n}=e,r=V("BaseInputTemplate",n,t);return w.jsx(r,{...e})}function US(e){const{onChange:t,options:n,registry:r}=e,i=V("BaseInputTemplate",r,n),s=N.useCallback(o=>t(o?`${o}:00`:void 0),[t]);return w.jsx(i,{type:"time",...e,onChange:s})}function kS(e){const{options:t,registry:n}=e,r=V("BaseInputTemplate",n,t);return w.jsx(r,{type:"url",...e})}function LS(e){const{options:t,registry:n}=e,r=V("BaseInputTemplate",n,t);return w.jsx(r,{type:"number",...e})}function BS(){return{AltDateWidget:SS,AltDateTimeWidget:vS,CheckboxWidget:OS,CheckboxesWidget:wS,ColorWidget:xS,DateWidget:ES,DateTimeWidget:AS,EmailWidget:_S,FileWidget:CS,HiddenWidget:PS,PasswordWidget:FS,RadioWidget:jS,RangeWidget:$S,RatingWidget:DS,SelectWidget:NS,TextWidget:MS,TextareaWidget:RS,TimeWidget:US,UpDownWidget:LS,URLWidget:kS}}function WS(){return{fields:B0(),templates:bS(),widgets:BS(),rootSchema:{},formContext:{},translateString:tg,globalFormOptions:{idPrefix:fa,idSeparator:da,useFallbackUiForUnsupportedType:!1}}}function Ut(e,t){return{...wl(e,["schema","uiSchema","fieldPathId","schemaUtils","formData","edit","errors","errorSchema"]),...t!==void 0&&{status:t}}}class lv extends N.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}=vn(r,t.extraErrors)),n.customErrors&&({errors:i,errorSchema:s}=vn({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&&!fe(this.state.formData,s)&&i(Ut(this.state)),this.formElement=N.createRef()}getSnapshotBeforeUpdate(t,n){if(!fe(this.props,t)){const r=Ao(this.props.formData,t.formData),i=Ao(this.props.formData,this.state.formData),s=!fe(t.schema,this.props.schema),o=r.length>0||!fe(t.formData,this.props.formData),a=i.length>0||!fe(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=!fe(l,n);return{nextState:l,shouldUpdate:c}}return{shouldUpdate:!1}}componentDidUpdate(t,n,r){if(r.shouldUpdate){const{nextState:i}=r,s=!fe(i.formData,this.props.formData),o=this._isProcessingUserChange;if(this._isProcessingUserChange=!1,o&&s)return;s&&!fe(i.formData,n.formData)&&this.props.onChange&&this.props.onChange(Ut(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)||{},f=t.formData===void 0&&this.props.formData===void 0,h=typeof n<"u",m="liveValidate"in t?t.liveValidate:this.props.liveValidate,d=h&&!t.noValidate&&m,p="experimental_defaultFormStateBehavior"in t?t.experimental_defaultFormStateBehavior:this.props.experimental_defaultFormStateBehavior,y="experimental_customMergeAllOf"in t?t.experimental_customMergeAllOf:this.props.experimental_customMergeAllOf;let S=a.schemaUtils;(!S||S.doesSchemaUtilsDiffer(c,l,p,y))&&(S=Xy(c,l,p,y));const O=S.getRootSchema();let E=n;n===Qo?E=void 0:n===void 0&&f&&(E=a.formData);const b=S.getDefaultFormState(O,E,!1,a.initialDefaultsGenerated),g=this.updateRetrievedSchema(r??S.retrieveSchema(O,b)),v=()=>t.noValidate||i?{errors:[],errorSchema:{}}:t.liveValidate?{errors:a.errors||[],errorSchema:a.errorSchema||{}}:{errors:a.schemaValidationErrors||[],errorSchema:a.schemaValidationErrorSchema||{}};let x,A,_=a.schemaValidationErrors,I=a.schemaValidationErrorSchema;if(d&&!o){const j=this.liveValidate(O,S,a.errorSchema,b,void 0,a.customErrors,r,r!==void 0);x=j.errors,A=j.errorSchema,_=j.schemaValidationErrors,I=j.schemaValidationErrorSchema}else{const j=v();if(x=j.errors,A=j.errorSchema,s.length>0&&!d){const k=s.reduce((K,L)=>(K[L]=void 0,K),{});A=I=Pt(j.errorSchema,k,"preventDuplicates")}const $=this.mergeErrors({errorSchema:A,errors:x},t.extraErrors,a.customErrors);x=$.errors,A=$.errorSchema}const P=this.getRegistry(t,O,S),T=fe(a.registry,P)?a.registry:P,C=a.fieldPathId&&a.fieldPathId?.[le]===T.globalFormOptions.idPrefix?a.fieldPathId:Ne("",T.globalFormOptions);return{schemaUtils:S,schema:O,uiSchema:u,fieldPathId:C,formData:b,edit:h,errors:x,errorSchema:A,schemaValidationErrors:_,schemaValidationErrorSchema:I,retrievedSchema:g,initialDefaultsGenerated:!0,registry:T}}shouldComponentUpdate(t,n){const{experimental_componentUpdateStrategy:r="customDeep"}=this.props;return jl(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=M(s),a=V("ErrorListTemplate",t,o);return n&&n.length?w.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=vn(t,n);i=o.errorSchema,s=o.errors}if(r){const o=vn({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 f=c.errorSchema;l&&(f=Pt(r,c.errorSchema,"preventDuplicates"));const h=u,m=f;return{...this.mergeErrors({errorSchema:f,errors:u},s,o),schemaValidationErrors:h,schemaValidationErrorSchema:m}}getUsedFormData=(t,n)=>El(t,n);getFieldNames=(t,n)=>Al(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=Ne("",r.globalFormOptions,i);this.onChange(n,i,void 0,s[le])};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:f}=this.props,{formData:h,schemaUtils:m,schema:d,fieldPathId:p,schemaValidationErrorSchema:y,errors:S}=this.state;let{customErrors:O,errorSchema:E}=this.state;const b=p.path[0]||"",g=!n||n.length===0||n.length===1&&n[0]===b;let v=this.state.retrievedSchema,x=g?t:cs(h);const A=W(x)&&Object.keys(x).length>0&&Object.values(x).every(D=>D===void 0),_=h==null,I=A&&_?void 0:x;if(W(x)||Array.isArray(x)){t===zl?Lg(x,n):g||se(x,n,t);const D=this.getStateFromProps(this.props,I,void 0,void 0,void 0,!0);x=D.formData,v=D.retrievedSchema}const P=!l&&(c===!0||c==="onChange");let T={formData:x,schema:d},C=x;if(o===!0&&(a===!0||a==="onChange")&&(C=this.omitExtraData(x),T={formData:C}),f&&(C=Kt(m.getValidator(),d,m.getRootSchema(),C),T={...T,formData:C}),i){const D=g?y:F(y,n);if(!pe(D))g?E=i:se(E,n,i);else if(O||(O=new Il),g){const j=F(i,Ee);j&&O.setErrors(j)}else se(O.ErrorSchema,n,i)}else O&&F(O.ErrorSchema,[...n,Ee])&&O.clearErrors(n);if(P&&this.pendingChanges.length===1){const D=this.liveValidate(d,m,E,C,s,O,v);T={formData:C,...D,customErrors:O}}else if(!l&&i){const D=this.mergeErrors({errorSchema:E,errors:S},s,O);T={formData:C,...D,customErrors:O}}this.setState(T,()=>{u&&u(Ut({...this.state,...T}),r),this.pendingChanges.shift(),this.processPendingChange()})}updateRetrievedSchema(t){return fe(t,this.state?.retrievedSchema)?this.state.retrievedSchema:t}reset=()=>{const{formData:t,initialFormData:n=Qo,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(Ut({...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:f,schema:h}=this.state;let m=u,d={formData:m};if(i===!0&&s==="onBlur"&&(m=this.omitExtraData(u),d={formData:m}),a&&(m=Kt(f.getValidator(),h,f.getRootSchema(),m),d={...d,formData:m}),o==="onBlur"){const{schema:y,schemaUtils:S,errorSchema:O,customErrors:E,retrievedSchema:b}=this.state,g=this.liveValidate(y,S,O,m,c,E,b);d={formData:m,...g,customErrors:E}}const p=Object.keys(d).filter(y=>!y.startsWith("schemaValidation")).some(y=>{const S=F(this.state,y),O=F(d,y);return!fe(S,O)});this.setState(d,()=>{l&&p&&l(Ut({...this.state,...d}),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=Kt(l.getValidator(),c,l.getRootSchema(),a)}if(i||this.validateFormWithFormData(a)){const l=r||{},c=r?ms(r):[];this.setState({formData:a,errors:c,errorSchema:l,schemaValidationErrors:[],schemaValidationErrorSchema:{}},()=>{s&&s(Ut({...this.state,formData:a},"submitted"),t)})}};getGlobalFormOptions(t){const{uiSchema:n={},experimental_componentUpdateStrategy:r,idSeparator:i=da,idPrefix:s=fa,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}=WS();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[fi],globalFormOptions:this.getGlobalFormOptions(t),uiSchemaDefinitions:s[$u]??{}}}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=$l(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=Kt(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:f,noHtml5Validate:h=!1,disabled:m,readonly:d,showErrorList:p="top",_internalFormWrapper:y}=this.props,{schema:S,uiSchema:O,formData:E,errorSchema:b,fieldPathId:g,registry:v}=this.state,{SchemaField:x}=v.fields,{SubmitButton:A}=v.templates.ButtonTemplates,_=y?i:void 0,I=y||i||"form";let{[fr]:P={}}=M(O);m&&(P={...P,props:{...P.props,disabled:!0}});const T={[dt]:{[fr]:P}};return w.jsxs(I,{className:r||"rjsf",id:n,name:s,method:o,target:a,action:l,autoComplete:c,encType:u,acceptCharset:f,noValidate:h,onSubmit:this.onSubmit,as:_,ref:this.formElement,children:[p==="top"&&this.renderErrors(v),w.jsx(x,{name:"",schema:S,uiSchema:O,errorSchema:b,fieldPathId:g,formData:E,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:v,disabled:m,readonly:d}),t||w.jsx(A,{uiSchema:T,registry:v}),p==="bottom"&&this.renderErrors(v)]})}}var Xn={exports:{}},Qr={},ea;function VS(){return ea||(ea=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(_,I){return{validate:_,compare:I}}e.fullFormats={date:t(s,o),time:t(l,c),"date-time":t(f,h),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:p,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:A,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:S,int32:{type:"number",validate:b},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,h),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function n(_){return _%4===0&&(_%100!==0||_%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(_){const I=r.exec(_);if(!I)return!1;const P=+I[1],T=+I[2],C=+I[3];return T>=1&&T<=12&&C>=1&&C<=(T===2&&n(P)?29:i[T])}function o(_,I){if(_&&I)return _>I?1:_<I?-1:0}const a=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function l(_,I){const P=a.exec(_);if(!P)return!1;const T=+P[1],C=+P[2],D=+P[3],j=P[5];return(T<=23&&C<=59&&D<=59||T===23&&C===59&&D===60)&&(!I||j!=="")}function c(_,I){if(!(_&&I))return;const P=a.exec(_),T=a.exec(I);if(P&&T)return _=P[1]+P[2]+P[3]+(P[4]||""),I=T[1]+T[2]+T[3]+(T[4]||""),_>I?1:_<I?-1:0}const u=/t|\s/i;function f(_){const I=_.split(u);return I.length===2&&s(I[0])&&l(I[1],!0)}function h(_,I){if(!(_&&I))return;const[P,T]=_.split(u),[C,D]=I.split(u),j=o(P,C);if(j!==void 0)return j||c(T,D)}const m=/\/|:/,d=/^(?:[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(_){return m.test(_)&&d.test(_)}const y=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function S(_){return y.lastIndex=0,y.test(_)}const O=-2147483648,E=2**31-1;function b(_){return Number.isInteger(_)&&_<=E&&_>=O}function g(_){return Number.isInteger(_)}function v(){return!0}const x=/[^\\]\\Z/;function A(_){if(x.test(_))return!1;try{return new RegExp(_),!0}catch{return!1}}})(Qr)),Qr}var ei={},ta;function qS(){return ta||(ta=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=uc(),n=oa(),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:f,it:h}=a,{opts:m,self:d}=h;if(!m.validateFormats)return;const p=new t.KeywordCxt(h,d.RULES.all.format.definition,"format");p.$data?y():S();function y(){const E=l.scopeValue("formats",{ref:d.formats,code:m.code.formats}),b=l.const("fmt",n._`${E}[${p.schemaCode}]`);a.fail$data(n.or(n._`typeof ${b} != "object"`,n._`${b} instanceof RegExp`,n._`typeof ${b}.compare != "function"`,O(b)))}function S(){const E=p.schema,b=d.formats[E];if(!b||b===!0)return;if(typeof b!="object"||b instanceof RegExp||typeof b.compare!="function")throw new Error(`"${f}": format "${E}" does not define "compare" function`);const g=l.scopeValue("formats",{key:E,ref:b,code:m.code.formats?n._`${m.code.formats}${n.getProperty(E)}`:void 0});a.fail$data(O(g))}function O(E){return n._`${E}.compare(${c}, ${u}) ${i[f].fail} 0`}},dependencies:["format"]};const o=a=>(a.addKeyword(e.formatLimitDefinition),a);e.default=o})(ei)),ei}var na;function HS(){return na||(na=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=VS(),r=qS(),i=oa(),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[f,h]=u.mode==="fast"?[n.fastFormats,o]:[n.fullFormats,s],m=u.formats||n.formatNames;return l(c,m,f,h),u.keywords&&r.default(c),c};a.get=(c,u="full")=>{const h=(u==="fast"?n.fastFormats:n.fullFormats)[c];if(!h)throw new Error(`Unknown format "${c}"`);return h};function l(c,u,f,h){var m,d;(m=(d=c.opts.code).formats)!==null&&m!==void 0||(d.formats=i._`require("ajv-formats/dist/formats").${h}`);for(const p of u)c.addFormat(p,f[p])}e.exports=t=a,Object.defineProperty(t,"__esModule",{value:!0}),t.default=a})(Xn,Xn.exports)),Xn.exports}var KS=HS();const ra=Ti(KS),GS={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0,discriminator:!1},zS=/^(#?([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*\)))$/,YS=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;function JS(e,t,n={},r,i=aa,s){let o=new i({...GS,...n});return r?ra(o,r):r!==!1&&ra(o),o.addFormat("data-url",YS),o.addFormat("color",zS),o.addKeyword(ft),o.addKeyword(Ni),Array.isArray(e)&&o.addMetaSchema(e),Z(t)&&Object.keys(t).forEach(a=>{o.addFormat(a,t[a])}),s&&(o=s(o)),o}function ZS(e,t="none"){return t==="all"?e:e.reduce((n,r)=>{const{message:i,schemaPath:s}=r,o=t!=="anyOf"?s?.indexOf(`/${Y}/`):void 0,a=t!=="oneOf"?s?.indexOf(`/${B}/`):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 f;return u.message===i&&((f=u.schemaPath)===null||f===void 0?void 0:f.startsWith(l))})||n.push(r),n},[])}function XS(e=[],t,n){const r=e.map(i=>{var s;const{instancePath:o,keyword:a,params:l,schemaPath:c,parentSchema:u,...f}=i;let{message:h=""}=f,m=o.replace(/\//g,"."),d=`${m} ${h}`.trim(),p="";const y=[...((s=l.deps)===null||s===void 0?void 0:s.split(", "))||[],l.missingProperty,l.property].filter(S=>S);if(y.length>0)y.forEach(S=>{const O=m?`${m}.${S}`:S;let E=M(F(t,`${O.replace(/^\./,"")}`)).title;if(E===void 0){const b=c.replace(/\/properties\//g,"/").split("/").slice(1,-1).concat([S]);E=M(F(t,b)).title}if(E)h=h.replace(`'${S}'`,`'${E}'`),p=E;else{const b=F(u,[Q,S,"title"]);b&&(h=h.replace(`'${S}'`,`'${b}'`),p=b)}}),d=h;else{const S=M(F(t,`${m.replace(/^\./,"")}`)).title;if(S)d=`'${S}' ${h}`.trim(),p=S;else{const O=u?.title;O&&(d=`'${O}' ${h}`.trim(),p=O)}}return"missingProperty"in l&&(m=m?`${m}.${l.missingProperty}`:l.missingProperty),{name:a,property:m,message:h,params:l,stack:d,schemaPath:c,title:p}});return ZS(r,n)}function QS(e,t,n,r,i,s,o,a){const{validationError:l}=t;let c=XS(t.errors,o,a);l&&(c=[...c,{stack:l.message}]),typeof s=="function"&&(c=s(c,o));let u=Tg(c);if(l&&(u={...u,$schema:{__errors:[l.message]}}),typeof i!="function")return{errors:c,errorSchema:u};const f=bl(e,r,n,r,!0),h=i(f,di(f),o,u),m=Dl(h);return vn({errors:c,errorSchema:u},m)}class ev{constructor(t,n){const{additionalMetaSchemas:r,customFormats:i,ajvOptionsOverrides:s,ajvFormatOptions:o,AjvClass:a,extenderFn:l,suppressDuplicateFiltering:c}=t;this.ajv=JS(r,i,s,o,a,l),this.localizer=n,this.suppressDuplicateFiltering=c}reset(){this.ajv.removeSchema()}rawValidation(t,n){var r,i;let s,o;try{t[le]&&(o=this.ajv.getSchema(t[le])),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 f;!((f=l.params)===null||f===void 0)&&f[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 f;!((f=l.params)===null||f===void 0)&&f[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 QS(this,o,t,n,r,i,s,this.suppressDuplicateFiltering)}handleSchemaUpdate(t){var n,r;const i=(n=t[le])!==null&&n!==void 0?n:ha;this.ajv.getSchema(i)===void 0?this.ajv.addSchema(t,i):fe(t,(r=this.ajv.getSchema(i))===null||r===void 0?void 0:r.schema)||(this.ajv.removeSchema(i),this.ajv.addSchema(t,i))}isValid(t,n,r){var i;try{this.handleSchemaUpdate(r);const s=ys(t),o=(i=s[le])!==null&&i!==void 0?i:Og(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 tv(e={},t){return new ev(e,t)}const cv=tv();export{ft as A,cv as B,av as D,lv as F,Jl as R,G0 as S,te as T,V as a,At as b,mg as c,Nt as d,ds as e,Cl as f,M as g,Ql as h,Pl as i,Hn as j,Nu as k,yg as l,Eg as m,us as n,as as o,sg as p,ig as q,Fl as r,ar as s,hs as t,_t as u,ls as v,pg as w,wl as x,$n as y,rg as z};
|
|
48
|
+
`;case"21":return $("p",{key:j.key},D(C.children,j));default:return null}})(_,I,P,p,y,S,O);return d?d(T,_,I,P):T()})(g,b,v);return v.renderDepth=x-1,A}catch(A){if(A instanceof RangeError&&A.message.includes("Maximum call stack"))return E(g);throw A}}})(t.renderRule,a,r,n,u);return l(e)}const Gn=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,Ib);return C0(t??"",qe({},n,{wrapperProps:qe({},n?.wrapperProps,r)}))},zl=Symbol("remove-this-key"),Qo=Symbol("reset");function P0(e,t){return Array.isArray(e.required)&&e.required.indexOf(t)!==-1}function F0(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(te.NewStringDefault)}}function j0(e){const{fieldPathId:t,schema:n,registry:r,uiSchema:i,errorSchema:s,formData:o,onChange:a,onBlur:l,onFocus:c,disabled:u,readonly:f,required:h,hideError:m,propertyName:d,handleKeyRename:p,handleRemoveProperty:y,addedByAdditionalProperties:S}=e,[O,E]=N.useState(!1),{globalFormOptions:b,fields:g}=r,{SchemaField:v}=g,x=Rt(Ne(d,b,t.path)),A=N.useCallback((T,C,D,j)=>{T===void 0&&S&&(T=""),a(T,C,D,j)},[a,S]),_=N.useCallback(T=>{d!==T&&E(!0),p(d,T)},[d,p]),I=N.useCallback(T=>{const{target:{value:C}}=T;_(C)},[_]),P=N.useCallback(()=>{y(d)},[d,y]);return w.jsx(v,{name:d,required:h,schema:n,uiSchema:i,errorSchema:s,fieldPathId:x,formData:o,wasPropertyKeyModified:O,onKeyRename:_,onKeyRenameBlur:I,onRemoveProperty:P,onChange:A,onBlur:l,onFocus:c,registry:r,disabled:u,readonly:f,hideError:m})}function $0(e){const{schema:t,uiSchema:n={},formData:r,errorSchema:i,fieldPathId:s,name:o,required:a=!1,disabled:l,readonly:c,hideError:u,onBlur:f,onFocus:h,onChange:m,registry:d,title:p}=e,{fields:y,schemaUtils:S,translateString:O,globalUiOptions:E}=d,{OptionalDataControlsField:b}=y,g=N.useRef(r);g.current=r;const v=S.retrieveSchema(t,r,!0),x=M(n,E),{properties:A={}}=v,_=e.childFieldPathId??s,I=N.useRef({previousKey:"",currentKey:void 0}),P=x.title??v.title??p??o,T=x.description??v.description,C=Kn(d,v,a,n),D=ln(r);let j=[];const $=N.useCallback((R,ie)=>{const{duplicateKeySuffixSeparator:J="-"}=M(n,E);let q=0,H=R;for(;z(ie,H);)H=`${R}${J}${++q}`;return H},[n,E]),k=N.useCallback(()=>{if(!(v.additionalProperties||v.patternProperties))return;const{translateString:R}=d,ie={...r},J=$("newKey",ie);if(v.patternProperties)se(ie,J,null);else{let q,H,U;if(Z(v.additionalProperties)){q=v.additionalProperties.type,H=v.additionalProperties.const,U=v.additionalProperties.default;let ne=v.additionalProperties;if(ae in ne){const{schemaUtils:we}=d;ne=we.retrieveSchema({[ae]:ne[ae]},r),q=ne.type,H=ne.const,U=ne.default}!q&&(Y in ne||B in ne)&&(q="object")}const X=H??U??F0(R,q);se(ie,J,X)}I.current.previousKey===J&&(I.current.currentKey=J,I.current.previousKey=$(J,ie)),m(ie,_.path)},[r,m,d,_,$,v]),K=N.useCallback((R,ie)=>{if(R!==ie){const J=g.current,q=$(ie,J),H={...J},U={[R]:q},X=Object.keys(H).map(we=>({[U[we]||we]:H[we]})),ne=Object.assign({},...X);g.current=ne,R!==I.current.currentKey&&(I.current.previousKey=R),I.current.currentKey=q,m(ne,_.path)}},[m,_,$]),L=N.useCallback(R=>{m(zl,[..._.path,R])},[m,_]),ee=N.useCallback(R=>I.current.currentKey===R?I.current.previousKey:R,[]);if(!C||D)try{const R=Object.keys(A);j=_g(R,x.order)}catch(R){return w.jsxs("div",{children:[w.jsx("p",{className:"rjsf-config-error",style:{color:"red"},children:w.jsx(Gn,{options:{disableParsingRawHTML:!0},children:O(te.InvalidObjectField,[o||"root",R.message])})}),w.jsx("pre",{children:JSON.stringify(v)})]})}const re=V("ObjectFieldTemplate",d,x),ce=C?w.jsx(b,{...e,fieldPathId:_,schema:v}):void 0,me={title:x.label===!1?"":P,description:x.label===!1?void 0:T,properties:j.map(R=>{const ie=z(v,[Q,R,ft]),J=ie?n.additionalProperties:n[R],q=M(J).widget==="hidden";return{content:w.jsx(j0,{propertyName:R,required:P0(v,R),schema:F(v,[Q,R],{}),uiSchema:J,errorSchema:F(i,[R]),fieldPathId:_,formData:F(r,[R]),handleKeyRename:K,handleRemoveProperty:L,addedByAdditionalProperties:ie,onChange:m,onBlur:f,onFocus:h,registry:d,disabled:l,readonly:c,hideError:u},ee(R)),name:R,readonly:c,disabled:l,required:a,hidden:q}}),readonly:c,disabled:l,required:a,fieldPathId:s,uiSchema:n,errorSchema:i,schema:v,formData:r,registry:d,optionalDataControl:ce,className:C?"rjsf-optional-object-field":void 0};return w.jsx(re,{...me,onAddProperty:k})}function D0(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:f,translateString:h}=c,m=M(n,u),d=V("OptionalDataControlsTemplate",c,m),p=ln(r);let y,S,O,E;if(i||s)y=Hr(l,"Msg"),S=p?void 0:h(te.OptionalObjectEmptyMsg);else{const b=p?te.OptionalObjectRemove:te.OptionalObjectAdd;S=h(b),p?(y=Hr(l,"Remove"),E=()=>o(void 0,l.path,a)):(y=Hr(l,"Add"),O=()=>{let g=f.getDefaultFormState(t,r,"excludeObjectChildren");g===void 0&&(g=ke(t)==="array"?[]:{}),o(g,l.path,a)})}return S&&w.jsx(d,{id:y,registry:c,schema:t,uiSchema:n,label:S,onAddClick:O,onRemoveClick:E})}const N0={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function R0(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=ke(e),o=Array.isArray(s)?s[0]:s||"",a=e.$id;let l=N0[o];return a&&a in i&&(l=a),!l&&(e.anyOf||e.oneOf)?()=>null:l in i?i[l]:i.FallbackField}function M0(e){const{schema:t,fieldPathId:n,uiSchema:r,formData:i,errorSchema:s,name:o,onChange:a,onKeyRename:l,onKeyRenameBlur:c,onRemoveProperty:u,required:f=!1,registry:h,wasPropertyKeyModified:m=!1}=e,{schemaUtils:d,globalFormOptions:p,globalUiOptions:y,fields:S}=h,{AnyOfField:O,OneOfField:E}=S,b=Ig(t,r,h),g=M(b,y),v=V("FieldTemplate",h,g),x=V("DescriptionFieldTemplate",h,g),A=V("FieldHelpTemplate",h,g),_=V("FieldErrorTemplate",h,g),I=d.retrieveSchema(t,i),P=n[le],T=N.useCallback((cn,un,Ot,ec)=>a(cn,un,Ot,ec||P),[P,a]),C=R0(I,g,h),D=!!(g.disabled??e.disabled),j=!!(g.readonly??(e.readonly||e.schema.readOnly||I.readOnly)),$=g.hideError,k=$===void 0?e.hideError:!!$,K=!!(g.autofocus??e.autofocus);if(Object.keys(I).length===0)return null;let L=d.getDisplayLabel(I,b,y);const ee=g.field&&g.fieldReplacesAnyOrOneOf===!0;let re,ce,me={fieldPathId:n};if((Y in I||B in I)&&!ee&&!d.isSelect(I)){I[Y]?(re=O,ce=I[Y].map(Ot=>d.retrieveSchema(Z(Ot)?Ot:{},i))):I[B]&&(re=E,ce=I[B].map(Ot=>d.retrieveSchema(Z(Ot)?Ot:{},i)));const cn=Kn(h,I,f,b),un=ln(i);L=L&&(!cn||un),me={childFieldPathId:n,fieldPathId:Ne("XxxOf",p,n)}}const{__errors:R,...ie}=s||{},J=Qt(b,["ui:classNames","classNames","ui:style"]);dt in J&&(J[dt]=Qt(J[dt],["classNames","style"]));const q=w.jsx(C,{...e,onChange:T,...me,schema:I,uiSchema:J,disabled:D,readonly:j,hideError:k,autofocus:K,errorSchema:ie,rawErrors:R}),H=n[le];let U;m?U=o:U=ft in I?o:g.title||e.schema.title||I.title||e.title||o;const X=g.description||e.schema.description||I.description||"",ne=g.help,we=g.widget==="hidden",xe=["rjsf-field",`rjsf-field-${ke(I)}`];!k&&R&&R.length>0&&xe.push("rjsf-field-error"),g.classNames&&xe.push(g.classNames);const be=w.jsx(A,{help:ne,fieldPathId:n,schema:I,uiSchema:b,hasErrors:!k&&R&&R.length>0,registry:h}),Ce=k||re&&!d.isSelect(I)?void 0:w.jsx(_,{errors:R,errorSchema:s,fieldPathId:n,schema:I,uiSchema:b,registry:h}),it={description:w.jsx(x,{id:Hn(H),description:X,schema:I,uiSchema:b,registry:h}),rawDescription:X,help:be,rawHelp:typeof ne=="string"?ne:void 0,errors:Ce,rawErrors:k?void 0:R,fieldPathId:n,id:H,label:U,hidden:we,onChange:a,onKeyRename:l,onKeyRenameBlur:c,onRemoveProperty:u,required:f,disabled:D,readonly:j,hideError:k,displayLabel:L,classNames:xe.join(" ").trim(),style:g.style,formData:i,schema:I,uiSchema:b,registry:h};return w.jsx(v,{...it,children:w.jsxs(w.Fragment,{children:[q,re&&w.jsx(re,{name:o,disabled:D,readonly:j,hideError:k,errorSchema:s,formData:i,fieldPathId:n,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:ce,registry:h,required:f,schema:I,uiSchema:b})]})})}class U0 extends N.Component{shouldComponentUpdate(t){const{registry:{globalFormOptions:n}}=this.props,{experimental_componentUpdateStrategy:r="customDeep"}=n;return jl(this,t,this.state,r)}render(){return w.jsx(M0,{...this.props})}}function k0(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:f,onFocus:h,registry:m,rawErrors:d,hideError:p,title:y}=e,{title:S,format:O}=t,{widgets:E,schemaUtils:b,globalUiOptions:g}=m,v=b.isSelect(t)?tn(t,r):void 0;let x=v?"select":"text";O&&wg(t,O,E)&&(x=O);const{widget:A=x,placeholder:_="",title:I,...P}=M(r),T=b.getDisplayLabel(t,r,g),C=I??y??S??n,D=Je(t,A,E),j=N.useCallback(($,k,K)=>u($,i.path,k,K),[u,i]);return w.jsx(D,{options:{...P,enumOptions:v},schema:t,uiSchema:r,id:i.$id,name:n,label:C,hideLabel:!T,hideError:p,value:s,onChange:j,onBlur:f,onFocus:h,required:o,disabled:a,readonly:l,autofocus:c,registry:m,placeholder:_,rawErrors:d,htmlName:i.name})}function L0(e){const{formData:t,onChange:n,fieldPathId:r}=e;return N.useEffect(()=>{t===void 0&&n(null,r.path)},[r,t,n]),null}function B0(){return{AnyOfField:No,ArrayField:Yg,BooleanField:Jg,FallbackField:eb,LayoutGridField:gs,LayoutHeaderField:vb,LayoutMultiSchemaField:Ob,NumberField:Eb,ObjectField:$0,OneOfField:No,OptionalDataControlsField:D0,SchemaField:U0,StringField:k0,NullField:L0}}function W0(e){const{fieldPathId:t,description:n,registry:r,schema:i,uiSchema:s}=e,o=M(s,r.globalUiOptions),{label:a=!0}=o;if(!n||!a)return null;const l=V("DescriptionFieldTemplate",r,o);return w.jsx(l,{id:Hn(t),description:n,schema:i,uiSchema:s,registry:r})}function V0(e){const{children:t,className:n,buttonsProps:r,displayLabel:i,hasDescription:s,hasToolbar:o,registry:a,uiSchema:l}=e,c=M(l),u=V("ArrayFieldItemButtonsTemplate",a,c),f={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"},h=s?31:9,m={display:"flex",alignItems:i?"center":"baseline"},d={display:"flex",justifyContent:"flex-end",marginTop:i?`${h}px`:0};return w.jsxs("div",{className:n,style:m,children:[w.jsx("div",{className:o?"col-xs-9 col-md-10 col-xl-11":"col-xs-12",children:t}),o&&w.jsx("div",{className:"col-xs-3 col-md-2 col-xl-1 array-item-toolbox",children:w.jsx("div",{className:"btn-group",style:d,children:w.jsx(u,{...r,style:f})})})]})}function q0(e){const{disabled:t,hasCopy:n,hasMoveDown:r,hasMoveUp:i,hasRemove:s,fieldPathId:o,onCopyItem:a,onRemoveItem:l,onMoveDownItem:c,onMoveUpItem:u,readonly:f,registry:h,uiSchema:m}=e,{CopyButton:d,MoveDownButton:p,MoveUpButton:y,RemoveButton:S}=h.templates.ButtonTemplates;return w.jsxs(w.Fragment,{children:[(i||r)&&w.jsx(y,{id:At(o,"moveUp"),className:"rjsf-array-item-move-up",disabled:t||f||!i,onClick:u,uiSchema:m,registry:h}),(i||r)&&w.jsx(p,{id:At(o,"moveDown"),className:"rjsf-array-item-move-down",disabled:t||f||!r,onClick:c,uiSchema:m,registry:h}),n&&w.jsx(d,{id:At(o,"copy"),className:"rjsf-array-item-copy",disabled:t||f,onClick:a,uiSchema:m,registry:h}),s&&w.jsx(S,{id:At(o,"remove"),className:"rjsf-array-item-remove",disabled:t||f,onClick:l,uiSchema:m,registry:h})]})}function H0(e){const{canAdd:t,className:n,disabled:r,fieldPathId:i,uiSchema:s,items:o,optionalDataControl:a,onAddClick:l,readonly:c,registry:u,required:f,schema:h,title:m}=e,d=M(s),p=V("ArrayFieldDescriptionTemplate",u,d),y=V("ArrayFieldTitleTemplate",u,d),S=!c&&!r,{ButtonTemplates:{AddButton:O}}=u.templates;return w.jsxs("fieldset",{className:n,id:i.$id,children:[w.jsx(y,{fieldPathId:i,title:d.title||m,required:f,schema:h,uiSchema:s,registry:u,optionalDataControl:S?a:void 0}),w.jsx(p,{fieldPathId:i,description:d.description||h.description,schema:h,uiSchema:s,registry:u}),S?void 0:a,w.jsx("div",{className:"row array-item-list",children:o}),t&&w.jsx(O,{id:At(i,"add"),className:"rjsf-array-item-add",onClick:l,disabled:r||c,uiSchema:s,registry:u})]})}function K0(e){const{fieldPathId:t,title:n,schema:r,uiSchema:i,required:s,registry:o,optionalDataControl:a}=e,l=M(i,o.globalUiOptions),{label:c=!0}=l;if(!n||!c)return null;const u=V("TitleFieldTemplate",o,l);return w.jsx(u,{id:hs(t),title:n,required:s,schema:r,uiSchema:i,registry:o,optionalDataControl:a})}function G0(e){const{id:t,schema:n}=e,{examples:r,default:i}=n;return Array.isArray(r)?w.jsx("datalist",{id:ds(t),children:r.concat(i!==void 0&&!r.map(String).includes(String(i))?[i]:[]).map(s=>w.jsx("option",{value:s},String(s)))},`datalist_${t}`):null}function z0(e){const{id:t,name:n,htmlName:r,value:i,readonly:s,disabled:o,autofocus:a,onBlur:l,onFocus:c,onChange:u,onChangeOverride:f,options:h,schema:m,uiSchema:d,registry:p,rawErrors:y,type:S,hideLabel:O,hideError:E,...b}=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={...b,...mg(m,S,h)};let x;v.type==="number"||v.type==="integer"?x=i||i===0?i:"":x=i??"";const A=N.useCallback(({target:{value:T}})=>u(T===""?h.emptyValue:T),[u,h]),_=N.useCallback(({target:T})=>l(t,T&&T.value),[l,t]),I=N.useCallback(({target:T})=>c(t,T&&T.value),[c,t]),P=N.useCallback(T=>{T.preventDefault(),T.stopPropagation(),u(h.emptyValue??"")},[u,h.emptyValue]);return w.jsxs(w.Fragment,{children:[w.jsx("input",{id:t,name:r||t,className:"form-control",readOnly:s,disabled:o,autoFocus:a,value:x,...v,list:m.examples?ds(t):void 0,onChange:f||A,onBlur:_,onFocus:I,"aria-describedby":Nt(t,!!m.examples)}),h.allowClearTextInputs&&!s&&!o&&x&&w.jsx(g,{registry:p,onClick:P}),w.jsx(G0,{id:t,schema:m})]})}function Y0({uiSchema:e}){const{submitText:t,norender:n,props:r={}}=yg(e);return n?null:w.jsx("div",{children:w.jsx("button",{type:"submit",...r,className:`btn btn-info ${r.className||""}`,children:t})})}function vt(e){const{iconType:t="default",icon:n,className:r,uiSchema:i,registry:s,...o}=e;return w.jsx("button",{type:"button",className:`btn btn-${t} ${r}`,...o,children:w.jsx("i",{className:`glyphicon glyphicon-${n}`})})}function J0(e){const{registry:{translateString:t}}=e;return w.jsx(vt,{title:t(te.CopyButton),...e,icon:"copy"})}function Z0(e){const{registry:{translateString:t}}=e;return w.jsx(vt,{title:t(te.MoveDownButton),...e,icon:"arrow-down"})}function X0(e){const{registry:{translateString:t}}=e;return w.jsx(vt,{title:t(te.MoveUpButton),...e,icon:"arrow-up"})}function Q0(e){const{registry:{translateString:t}}=e;return w.jsx(vt,{title:t(te.RemoveButton),...e,iconType:"danger",icon:"remove"})}function eS({id:e,className:t,onClick:n,disabled:r,registry:i,...s}){const{translateString:o}=i;return w.jsx(vt,{id:e,iconType:"default",icon:"remove",className:"btn-clear col-xs-12",title:o(te.ClearButton),onClick:n,disabled:r,registry:i,...s})}function tS({id:e,className:t,onClick:n,disabled:r,registry:i}){const{translateString:s}=i;return w.jsx("div",{className:"row",children:w.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:w.jsx(vt,{id:e,iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:s(te.AddButton),onClick:n,disabled:r,registry:i})})})}function nS(){return{SubmitButton:Y0,AddButton:tS,CopyButton:J0,MoveDownButton:Z0,MoveUpButton:X0,RemoveButton:Q0,ClearButton:eS}}const Yl=fs();function Jl({description:e,registry:t,uiSchema:n={}}){const{globalUiOptions:r}=t;return M(n,r).enableMarkdownInDescription&&typeof e=="string"?w.jsx(Gn,{options:{disableParsingRawHTML:!0},"data-testid":Yl.markdown,children:e}):e}Jl.TEST_IDS=Yl;function rS(e){const{id:t,description:n,registry:r,uiSchema:i}=e;return n?w.jsx("div",{id:t,className:"field-description",children:w.jsx(Jl,{description:n,registry:r,uiSchema:i})}):null}function iS({errors:e,registry:t}){const{translateString:n}=t;return w.jsxs("div",{className:"panel panel-danger errors",children:[w.jsx("div",{className:"panel-heading",children:w.jsx("h3",{className:"panel-title",children:n(te.ErrorsLabel)})}),w.jsx("ul",{className:"list-group",children:e.map((r,i)=>w.jsx("li",{className:"list-group-item text-danger",children:r.stack},i))})]})}function sS(e){const{schema:t,registry:n,typeSelector:r,schemaField:i}=e,s=V("MultiSchemaFieldTemplate",n);return w.jsx(s,{selector:r,optionSchemaField:i,schema:t,registry:n})}const oS="*";function Zl(e){const{label:t,required:n,id:r}=e;return t?w.jsxs("label",{className:"control-label",htmlFor:r,children:[t,n&&w.jsx("span",{className:"required",children:oS})]}):null}function aS(e){const{id:t,label:n,children:r,errors:i,help:s,description:o,hidden:a,required:l,displayLabel:c,registry:u,uiSchema:f}=e,h=M(f),m=V("WrapIfAdditionalTemplate",u,h);if(a)return w.jsx("div",{className:"hidden",children:r});const d=h.widget==="checkbox";return w.jsxs(m,{...e,children:[c&&!d&&w.jsx(Zl,{label:n,required:l,id:t}),c&&o?o:null,r,i,s]})}function lS(e){const{errors:t=[],fieldPathId:n}=e;if(t.length===0)return null;const r=Cl(n);return w.jsx("div",{children:w.jsx("ul",{id:r,className:"error-detail bs-callout bs-callout-info",children:t.filter(i=>!!i).map((i,s)=>w.jsx("li",{className:"text-danger",children:i},s))})})}const Xl=fs();function Ql({help:e,registry:t,uiSchema:n={}}){const{globalUiOptions:r}=t;return M(n,r).enableMarkdownInHelp&&typeof e=="string"?w.jsx(Gn,{options:{disableParsingRawHTML:!0},"data-testid":Xl.markdown,children:e}):e}Ql.TEST_IDS=Xl;function cS(e){const{fieldPathId:t,help:n,uiSchema:r,registry:i}=e;return n?w.jsx("div",{id:Pl(t),className:"help-block",children:w.jsx(Ql,{help:n,registry:i,uiSchema:r})}):null}function uS(e){const{children:t,column:n,className:r,...i}=e;return w.jsx("div",{className:r,...i,children:t})}function fS(e){const{selector:t,optionSchemaField:n}=e;return w.jsxs("div",{className:"panel panel-default panel-body",children:[w.jsx("div",{className:"form-group",children:t}),n]})}function dS(e){const{className:t,description:n,disabled:r,formData:i,fieldPathId:s,onAddProperty:o,optionalDataControl:a,properties:l,readonly:c,registry:u,required:f,schema:h,title:m,uiSchema:d}=e,p=M(d),y=V("TitleFieldTemplate",u,p),S=V("DescriptionFieldTemplate",u,p);if((h.oneOf||h.anyOf)&&!h.properties&&l.length===0)return null;const E=!c&&!r,{ButtonTemplates:{AddButton:b}}=u.templates;return w.jsxs("fieldset",{className:t,id:s.$id,children:[m&&w.jsx(y,{id:hs(s),title:m,required:f,schema:h,uiSchema:d,registry:u,optionalDataControl:E?a:void 0}),n&&w.jsx(S,{id:Hn(s),description:n,schema:h,uiSchema:d,registry:u}),E?void 0:a,l.map(g=>g.content),Nu(h,d,i)&&w.jsx(b,{id:At(s,"add"),className:"rjsf-object-property-expand",onClick:o,disabled:r||c,uiSchema:d,registry:u})]})}function hS(e){const{id:t,registry:n,label:r,onAddClick:i,onRemoveClick:s}=e;return i?w.jsx(vt,{id:t,registry:n,icon:"plus",className:"rjsf-add-optional-data btn-sm",onClick:i,title:r}):s?w.jsx(vt,{id:t,registry:n,icon:"remove",className:"rjsf-remove-optional-data btn-sm",onClick:s,title:r}):w.jsx("em",{id:t,children:r})}const pS="*";function mS(e){const{id:t,title:n,required:r,optionalDataControl:i}=e;return w.jsxs("legend",{id:t,children:[n,r&&w.jsx("span",{className:"required",children:pS}),i&&w.jsx("span",{className:"pull-right",style:{marginBottom:"2px"},children:i})]})}function yS(e){const{schema:t,fieldPathId:n,reason:r,registry:i}=e,{translateString:s}=i;let o=te.UnsupportedField;const a=[];return n&&n.$id&&(o=te.UnsupportedFieldWithId,a.push(n.$id)),r&&(o=o===te.UnsupportedField?te.UnsupportedFieldWithReason:te.UnsupportedFieldWithIdAndReason,a.push(r)),w.jsxs("div",{className:"unsupported-field",children:[w.jsx("p",{children:w.jsx(Gn,{options:{disableParsingRawHTML:!0},children:s(o,a)})}),t&&w.jsx("pre",{children:JSON.stringify(t,null,2)})]})}function gS(e){const{id:t,classNames:n,style:r,disabled:i,displayLabel:s,label:o,onKeyRenameBlur:a,onRemoveProperty:l,rawDescription:c,readonly:u,required:f,schema:h,hideError:m,rawErrors:d,children:p,uiSchema:y,registry:S}=e,{templates:O,translateString:E}=S,{RemoveButton:b}=O.ButtonTemplates,g=E(te.KeyLabel,[o]),v=ft in h,x=!!c,A=["form-group",n];!m&&d&&d.length>0&&A.push("has-error has-danger");const _=A.join(" ").trim();if(!v)return w.jsx("div",{className:_,style:r,children:p});const I=x?46:26;return w.jsx("div",{className:_,style:r,children:w.jsxs("div",{className:"row",children:[w.jsx("div",{className:"col-xs-5 form-additional",children:w.jsxs("div",{className:"form-group",children:[s&&w.jsx(Zl,{label:g,required:f,id:`${t}-key`}),s&&c&&w.jsx("div",{children:" "}),w.jsx("input",{className:"form-control",type:"text",id:`${t}-key`,onBlur:a,defaultValue:o},o)]})}),w.jsx("div",{className:"form-additional form-group col-xs-5",children:p}),w.jsx("div",{className:"col-xs-2",style:{marginTop:s?`${I}px`:void 0},children:w.jsx(b,{id:At(t,"remove"),className:"rjsf-object-property-remove btn-block",style:{border:"0"},disabled:i||u,onClick:l,uiSchema:y,registry:S})})]})})}function bS(){return{ArrayFieldDescriptionTemplate:W0,ArrayFieldItemTemplate:V0,ArrayFieldItemButtonsTemplate:q0,ArrayFieldTemplate:H0,ArrayFieldTitleTemplate:K0,ButtonTemplates:nS(),BaseInputTemplate:z0,DescriptionFieldTemplate:rS,ErrorListTemplate:iS,FallbackFieldTemplate:sS,FieldTemplate:aS,FieldErrorTemplate:lS,FieldHelpTemplate:cS,GridTemplate:uS,MultiSchemaFieldTemplate:fS,ObjectFieldTemplate:dS,OptionalDataControlsTemplate:hS,TitleFieldTemplate:mS,UnsupportedFieldTemplate:yS,WrapIfAdditionalTemplate:gS}}function SS(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:f,handleChange:h,handleClear:m,handleSetNow:d}=Fg(e);return w.jsxs("ul",{className:"list-inline",children:[f.map((p,y)=>w.jsx("li",{className:"list-inline-item",children:w.jsx(Pg,{rootId:s,name:o,select:h,...p,disabled:t,readonly:n,registry:a,onBlur:l,onFocus:c,autofocus:r&&y===0})},y)),(i.hideNowButton!=="undefined"?!i.hideNowButton:!0)&&w.jsx("li",{className:"list-inline-item",children:w.jsx("a",{href:"#",className:"btn btn-info btn-now",onClick:d,children:u(te.NowLabel)})}),(i.hideClearButton!=="undefined"?!i.hideClearButton:!0)&&w.jsx("li",{className:"list-inline-item",children:w.jsx("a",{href:"#",className:"btn btn-warning btn-clear",onClick:m,children:u(te.ClearLabel)})})]})}function vS({time:e=!0,...t}){const{AltDateWidget:n}=t.registry.widgets;return w.jsx(n,{time:e,...t})}function OS({schema:e,uiSchema:t,options:n,id:r,value:i,disabled:s,readonly:o,label:a,hideLabel:l,autofocus:c=!1,onBlur:u,onFocus:f,onChange:h,registry:m,htmlName:d}){const p=V("DescriptionFieldTemplate",m,n),y=ar(e),S=N.useCallback(x=>h(x.target.checked),[h]),O=N.useCallback(x=>u(r,x.target.checked),[u,r]),E=N.useCallback(x=>f(r,x.target.checked),[f,r]),v=M(t).widget==="checkbox"?void 0:n.description??e.description;return w.jsxs("div",{className:`checkbox ${s||o?"disabled":""}`,children:[!l&&v&&w.jsx(p,{id:Hn(r),description:v,schema:e,uiSchema:t,registry:m}),w.jsxs("label",{children:[w.jsx("input",{type:"checkbox",id:r,name:d||r,checked:typeof i>"u"?!1:i,required:y,disabled:s||o,autoFocus:c,onChange:S,onBlur:O,onFocus:E,"aria-describedby":Nt(r)}),Eg(w.jsx("span",{children:a}),l)]})]})}function wS({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:f,enumDisabled:h,emptyValue:m}=n,d=us(n),p=Array.isArray(r)?r:[r],y=N.useCallback(({target:O})=>a(e,_t(O&&O.value,f,d,m)),[a,e,f,m,d]),S=N.useCallback(({target:O})=>l(e,_t(O&&O.value,f,d,m)),[l,e,f,m,d]);return w.jsx("div",{className:"checkboxes",id:e,children:Array.isArray(f)&&f.map((O,E)=>{const b=as(O.value,p),g=Array.isArray(h)&&h.indexOf(O.value)!==-1,v=t||g||s?"disabled":"",x=_=>{_.target.checked?o(sg(E,p,f)):o(ig(E,p,f))},A=w.jsxs("span",{children:[w.jsx("input",{type:"checkbox",id:Fl(e,E),name:c||e,checked:b,value:ls(O.value,E,d),disabled:t||g||s,autoFocus:i&&E===0,onChange:x,onBlur:y,onFocus:S,"aria-describedby":Nt(e)}),w.jsx("span",{children:O.label})]});return u?w.jsx("label",{className:`checkbox-inline ${v}`,children:A},E):w.jsx("div",{className:`checkbox ${v}`,children:w.jsx("label",{children:A})},E)})})}function xS(e){const{disabled:t,readonly:n,options:r,registry:i}=e,s=V("BaseInputTemplate",i,r);return w.jsx(s,{type:"color",...e,disabled:t||n})}function ES(e){const{onChange:t,options:n,registry:r}=e,i=V("BaseInputTemplate",r,n),s=N.useCallback(o=>t(o||void 0),[t]);return w.jsx(i,{type:"date",...e,onChange:s})}function AS(e){const{onChange:t,value:n,options:r,registry:i}=e,s=V("BaseInputTemplate",i,r);return w.jsx(s,{type:"datetime-local",...e,value:Rg(n),onChange:o=>t(Ag(o))})}function _S(e){const{options:t,registry:n}=e,r=V("BaseInputTemplate",n,t);return w.jsx(r,{type:"email",...e})}function IS({fileInfo:e,registry:t}){const{translateString:n}=t,{dataURL:r,type:i,name:s}=e;return r?["image/jpeg","image/png"].includes(i)?w.jsx("img",{src:r,style:{maxWidth:"100%"},className:"file-preview"}):w.jsxs(w.Fragment,{children:[" ",w.jsx("a",{download:`preview-${s}`,href:r,className:"file-download",children:n(te.PreviewLabel)})]}):null}function TS({filesInfo:e,registry:t,preview:n,onRemove:r,options:i}){if(e.length===0)return null;const{translateString:s}=t,{RemoveButton:o}=V("ButtonTemplates",t,i);return w.jsx("ul",{className:"file-info",children:e.map((a,l)=>{const{name:c,size:u,type:f}=a,h=()=>r(l);return w.jsxs("li",{children:[w.jsx(Gn,{children:s(te.FilesInfo,[c,f,String(u)])}),n&&w.jsx(IS,{fileInfo:a,registry:t}),w.jsx(o,{onClick:h,registry:t})]},l)})})}function CS(e){const{disabled:t,readonly:n,required:r,multiple:i,onChange:s,value:o,options:a,registry:l}=e,{filesInfo:c,handleChange:u,handleRemove:f}=Ng(o,s,i),h=V("BaseInputTemplate",l,a),m=d=>{d.target.files&&u(d.target.files)};return w.jsxs("div",{children:[w.jsx(h,{...e,disabled:t||n,type:"file",required:o?!1:r,onChangeOverride:m,value:"",accept:a.accept?String(a.accept):void 0}),w.jsx(TS,{filesInfo:c,onRemove:f,registry:l,preview:a.filePreview,options:a})]})}function PS({id:e,value:t,htmlName:n}){return w.jsx("input",{type:"hidden",id:e,name:n||e,value:typeof t>"u"?"":t})}function FS(e){const{options:t,registry:n}=e,r=V("BaseInputTemplate",n,t);return w.jsx(r,{type:"password",...e})}function jS({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:f,enumDisabled:h,inline:m,emptyValue:d}=e,p=us(e),y=N.useCallback(({target:O})=>o(c,_t(O&&O.value,f,p,d)),[o,f,d,c,p]),S=N.useCallback(({target:O})=>a(c,_t(O&&O.value,f,p,d)),[a,f,d,c,p]);return w.jsx("div",{className:"field-radio-group",id:c,role:"radiogroup",children:Array.isArray(f)&&f.map((O,E)=>{const b=as(O.value,t),g=Array.isArray(h)&&h.indexOf(O.value)!==-1,v=r||g||i?"disabled":"",x=()=>l(O.value),A=w.jsxs("span",{children:[w.jsx("input",{type:"radio",id:Fl(c,E),checked:b,name:u||c,required:n,value:ls(O.value,E,p),disabled:r||g||i,autoFocus:s&&E===0,onChange:x,onBlur:y,onFocus:S,"aria-describedby":Nt(c)}),w.jsx("span",{children:O.label})]});return m?w.jsx("label",{className:`radio-inline ${v}`,children:A},E):w.jsx("div",{className:`radio ${v}`,children:w.jsx("label",{children:A})},E)})})}function $S(e){const{value:t,registry:{templates:{BaseInputTemplate:n}}}=e;return w.jsxs("div",{className:"field-range-wrapper",children:[w.jsx(n,{type:"range",...e}),w.jsx("span",{className:"range-view",children:t})]})}function DS({id:e,value:t,required:n,disabled:r,readonly:i,autofocus:s,onChange:o,onFocus:a,onBlur:l,schema:c,options:u,htmlName:f}){const{stars:h=5,shape:m="star"}=u,d=c.maximum?Math.min(c.maximum,5):Math.min(Math.max(h,1),5),p=c.minimum||0,y=N.useCallback(b=>{!r&&!i&&o(b)},[o,r,i]),S=N.useCallback(b=>{if(a){const g=Number(b.target.dataset.value);a(e,g)}},[a,e]),O=N.useCallback(b=>{if(l){const g=Number(b.target.dataset.value);l(e,g)}},[l,e]),E=b=>m==="heart"?b?"♥":"♡":b?"★":"☆";return w.jsx(w.Fragment,{children:w.jsxs("div",{className:"rating-widget",style:{display:"inline-flex",fontSize:"1.5rem",cursor:r||i?"default":"pointer"},children:[[...Array(d)].map((b,g)=>{const v=p+g,x=v<=t;return w.jsx("span",{onClick:()=>y(v),onFocus:S,onBlur:O,"data-value":v,tabIndex:r||i?-1:0,role:"radio","aria-checked":v===t,"aria-label":`${v} ${m==="heart"?"heart":"star"}${v===1?"":"s"}`,style:{color:x?"#FFD700":"#ccc",padding:"0 0.2rem",transition:"color 0.2s",userSelect:"none"},children:E(x)},g)}),w.jsx("input",{type:"hidden",id:e,name:f||e,value:t||"",required:n,disabled:r||i,"aria-hidden":"true"})]})})}function Xr(e,t){return t?Array.from(e.target.options).slice().filter(n=>n.selected).map(n=>n.value):e.target.value}function NS({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:f,placeholder:h,htmlName:m}){const{enumOptions:d,enumDisabled:p,emptyValue:y}=n,S=a?[]:"",O=us(n),E=N.useCallback(A=>{const _=Xr(A,a);return f(t,_t(_,d,O,y))},[f,t,a,d,y,O]),b=N.useCallback(A=>{const _=Xr(A,a);return u(t,_t(_,d,O,y))},[u,t,a,d,y,O]),g=N.useCallback(A=>{const _=Xr(A,a);return c(_t(_,d,O,y))},[c,a,d,y,O]),v=rg(r,d,a,O,S),x=!a&&e.default===void 0;return w.jsxs("select",{id:t,name:m||t,multiple:a,role:"combobox",className:"form-control",value:v,required:i,disabled:s||o,autoFocus:l,onBlur:b,onFocus:E,onChange:g,"aria-describedby":Nt(t),children:[x&&w.jsx("option",{value:"",children:h}),Array.isArray(d)&&d.map(({value:A,label:_},I)=>{const P=p&&p.indexOf(A)!==-1;return w.jsx("option",{value:ls(A,I,O),disabled:P,children:_},I)})]})}function RS({id:e,options:t={},placeholder:n,value:r,required:i,disabled:s,readonly:o,autofocus:a=!1,onChange:l,onBlur:c,onFocus:u,htmlName:f}){const h=N.useCallback(({target:{value:p}})=>l(p===""?t.emptyValue:p),[l,t.emptyValue]),m=N.useCallback(({target:p})=>c(e,p&&p.value),[c,e]),d=N.useCallback(({target:p})=>u(e,p&&p.value),[e,u]);return w.jsx("textarea",{id:e,name:f||e,className:"form-control",value:r||"",placeholder:n,required:i,disabled:s,readOnly:o,autoFocus:a,rows:t.rows,onBlur:m,onFocus:d,onChange:h,"aria-describedby":Nt(e)})}function MS(e){const{options:t,registry:n}=e,r=V("BaseInputTemplate",n,t);return w.jsx(r,{...e})}function US(e){const{onChange:t,options:n,registry:r}=e,i=V("BaseInputTemplate",r,n),s=N.useCallback(o=>t(o?`${o}:00`:void 0),[t]);return w.jsx(i,{type:"time",...e,onChange:s})}function kS(e){const{options:t,registry:n}=e,r=V("BaseInputTemplate",n,t);return w.jsx(r,{type:"url",...e})}function LS(e){const{options:t,registry:n}=e,r=V("BaseInputTemplate",n,t);return w.jsx(r,{type:"number",...e})}function BS(){return{AltDateWidget:SS,AltDateTimeWidget:vS,CheckboxWidget:OS,CheckboxesWidget:wS,ColorWidget:xS,DateWidget:ES,DateTimeWidget:AS,EmailWidget:_S,FileWidget:CS,HiddenWidget:PS,PasswordWidget:FS,RadioWidget:jS,RangeWidget:$S,RatingWidget:DS,SelectWidget:NS,TextWidget:MS,TextareaWidget:RS,TimeWidget:US,UpDownWidget:LS,URLWidget:kS}}function WS(){return{fields:B0(),templates:bS(),widgets:BS(),rootSchema:{},formContext:{},translateString:tg,globalFormOptions:{idPrefix:fa,idSeparator:da,useFallbackUiForUnsupportedType:!1}}}function Ut(e,t){return{...wl(e,["schema","uiSchema","fieldPathId","schemaUtils","formData","edit","errors","errorSchema"]),...t!==void 0&&{status:t}}}class cv extends N.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}=vn(r,t.extraErrors)),n.customErrors&&({errors:i,errorSchema:s}=vn({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&&!fe(this.state.formData,s)&&i(Ut(this.state)),this.formElement=N.createRef()}getSnapshotBeforeUpdate(t,n){if(!fe(this.props,t)){const r=Ao(this.props.formData,t.formData),i=Ao(this.props.formData,this.state.formData),s=!fe(t.schema,this.props.schema),o=r.length>0||!fe(t.formData,this.props.formData),a=i.length>0||!fe(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=!fe(l,n);return{nextState:l,shouldUpdate:c}}return{shouldUpdate:!1}}componentDidUpdate(t,n,r){if(r.shouldUpdate){const{nextState:i}=r,s=!fe(i.formData,this.props.formData),o=this._isProcessingUserChange;if(this._isProcessingUserChange=!1,o&&s)return;s&&!fe(i.formData,n.formData)&&this.props.onChange&&this.props.onChange(Ut(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)||{},f=t.formData===void 0&&this.props.formData===void 0,h=typeof n<"u",m="liveValidate"in t?t.liveValidate:this.props.liveValidate,d=h&&!t.noValidate&&m,p="experimental_defaultFormStateBehavior"in t?t.experimental_defaultFormStateBehavior:this.props.experimental_defaultFormStateBehavior,y="experimental_customMergeAllOf"in t?t.experimental_customMergeAllOf:this.props.experimental_customMergeAllOf;let S=a.schemaUtils;(!S||S.doesSchemaUtilsDiffer(c,l,p,y))&&(S=Xy(c,l,p,y));const O=S.getRootSchema();let E=n;n===Qo?E=void 0:n===void 0&&f&&(E=a.formData);const b=S.getDefaultFormState(O,E,!1,a.initialDefaultsGenerated),g=this.updateRetrievedSchema(r??S.retrieveSchema(O,b)),v=()=>t.noValidate||i?{errors:[],errorSchema:{}}:t.liveValidate?{errors:a.errors||[],errorSchema:a.errorSchema||{}}:{errors:a.schemaValidationErrors||[],errorSchema:a.schemaValidationErrorSchema||{}};let x,A,_=a.schemaValidationErrors,I=a.schemaValidationErrorSchema;if(d&&!o){const j=this.liveValidate(O,S,a.errorSchema,b,void 0,a.customErrors,r,r!==void 0);x=j.errors,A=j.errorSchema,_=j.schemaValidationErrors,I=j.schemaValidationErrorSchema}else{const j=v();if(x=j.errors,A=j.errorSchema,s.length>0&&!d){const k=s.reduce((K,L)=>(K[L]=void 0,K),{});A=I=Pt(j.errorSchema,k,"preventDuplicates")}const $=this.mergeErrors({errorSchema:A,errors:x},t.extraErrors,a.customErrors);x=$.errors,A=$.errorSchema}const P=this.getRegistry(t,O,S),T=fe(a.registry,P)?a.registry:P,C=a.fieldPathId&&a.fieldPathId?.[le]===T.globalFormOptions.idPrefix?a.fieldPathId:Ne("",T.globalFormOptions);return{schemaUtils:S,schema:O,uiSchema:u,fieldPathId:C,formData:b,edit:h,errors:x,errorSchema:A,schemaValidationErrors:_,schemaValidationErrorSchema:I,retrievedSchema:g,initialDefaultsGenerated:!0,registry:T}}shouldComponentUpdate(t,n){const{experimental_componentUpdateStrategy:r="customDeep"}=this.props;return jl(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=M(s),a=V("ErrorListTemplate",t,o);return n&&n.length?w.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=vn(t,n);i=o.errorSchema,s=o.errors}if(r){const o=vn({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 f=c.errorSchema;l&&(f=Pt(r,c.errorSchema,"preventDuplicates"));const h=u,m=f;return{...this.mergeErrors({errorSchema:f,errors:u},s,o),schemaValidationErrors:h,schemaValidationErrorSchema:m}}getUsedFormData=(t,n)=>El(t,n);getFieldNames=(t,n)=>Al(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=Ne("",r.globalFormOptions,i);this.onChange(n,i,void 0,s[le])};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:f}=this.props,{formData:h,schemaUtils:m,schema:d,fieldPathId:p,schemaValidationErrorSchema:y,errors:S}=this.state;let{customErrors:O,errorSchema:E}=this.state;const b=p.path[0]||"",g=!n||n.length===0||n.length===1&&n[0]===b;let v=this.state.retrievedSchema,x=g?t:cs(h);const A=W(x)&&Object.keys(x).length>0&&Object.values(x).every(D=>D===void 0),_=h==null,I=A&&_?void 0:x;if(W(x)||Array.isArray(x)){t===zl?Lg(x,n):g||se(x,n,t);const D=this.getStateFromProps(this.props,I,void 0,void 0,void 0,!0);x=D.formData,v=D.retrievedSchema}const P=!l&&(c===!0||c==="onChange");let T={formData:x,schema:d},C=x;if(o===!0&&(a===!0||a==="onChange")&&(C=this.omitExtraData(x),T={formData:C}),f&&(C=Kt(m.getValidator(),d,m.getRootSchema(),C),T={...T,formData:C}),i){const D=g?y:F(y,n);if(!pe(D))g?E=i:se(E,n,i);else if(O||(O=new Il),g){const j=F(i,Ee);j&&O.setErrors(j)}else se(O.ErrorSchema,n,i)}else O&&F(O.ErrorSchema,[...n,Ee])&&O.clearErrors(n);if(P&&this.pendingChanges.length===1){const D=this.liveValidate(d,m,E,C,s,O,v);T={formData:C,...D,customErrors:O}}else if(!l&&i){const D=this.mergeErrors({errorSchema:E,errors:S},s,O);T={formData:C,...D,customErrors:O}}this.setState(T,()=>{u&&u(Ut({...this.state,...T}),r),this.pendingChanges.shift(),this.processPendingChange()})}updateRetrievedSchema(t){return fe(t,this.state?.retrievedSchema)?this.state.retrievedSchema:t}reset=()=>{const{formData:t,initialFormData:n=Qo,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(Ut({...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:f,schema:h}=this.state;let m=u,d={formData:m};if(i===!0&&s==="onBlur"&&(m=this.omitExtraData(u),d={formData:m}),a&&(m=Kt(f.getValidator(),h,f.getRootSchema(),m),d={...d,formData:m}),o==="onBlur"){const{schema:y,schemaUtils:S,errorSchema:O,customErrors:E,retrievedSchema:b}=this.state,g=this.liveValidate(y,S,O,m,c,E,b);d={formData:m,...g,customErrors:E}}const p=Object.keys(d).filter(y=>!y.startsWith("schemaValidation")).some(y=>{const S=F(this.state,y),O=F(d,y);return!fe(S,O)});this.setState(d,()=>{l&&p&&l(Ut({...this.state,...d}),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=Kt(l.getValidator(),c,l.getRootSchema(),a)}if(i||this.validateFormWithFormData(a)){const l=r||{},c=r?ms(r):[];this.setState({formData:a,errors:c,errorSchema:l,schemaValidationErrors:[],schemaValidationErrorSchema:{}},()=>{s&&s(Ut({...this.state,formData:a},"submitted"),t)})}};getGlobalFormOptions(t){const{uiSchema:n={},experimental_componentUpdateStrategy:r,idSeparator:i=da,idPrefix:s=fa,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}=WS();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[fi],globalFormOptions:this.getGlobalFormOptions(t),uiSchemaDefinitions:s[$u]??{}}}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=$l(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=Kt(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:f,noHtml5Validate:h=!1,disabled:m,readonly:d,showErrorList:p="top",_internalFormWrapper:y}=this.props,{schema:S,uiSchema:O,formData:E,errorSchema:b,fieldPathId:g,registry:v}=this.state,{SchemaField:x}=v.fields,{SubmitButton:A}=v.templates.ButtonTemplates,_=y?i:void 0,I=y||i||"form";let{[fr]:P={}}=M(O);m&&(P={...P,props:{...P.props,disabled:!0}});const T={[dt]:{[fr]:P}};return w.jsxs(I,{className:r||"rjsf",id:n,name:s,method:o,target:a,action:l,autoComplete:c,encType:u,acceptCharset:f,noValidate:h,onSubmit:this.onSubmit,as:_,ref:this.formElement,children:[p==="top"&&this.renderErrors(v),w.jsx(x,{name:"",schema:S,uiSchema:O,errorSchema:b,fieldPathId:g,formData:E,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:v,disabled:m,readonly:d}),t||w.jsx(A,{uiSchema:T,registry:v}),p==="bottom"&&this.renderErrors(v)]})}}var Xn={exports:{}},Qr={},ea;function VS(){return ea||(ea=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(_,I){return{validate:_,compare:I}}e.fullFormats={date:t(s,o),time:t(l,c),"date-time":t(f,h),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:p,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:A,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:S,int32:{type:"number",validate:b},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,h),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function n(_){return _%4===0&&(_%100!==0||_%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(_){const I=r.exec(_);if(!I)return!1;const P=+I[1],T=+I[2],C=+I[3];return T>=1&&T<=12&&C>=1&&C<=(T===2&&n(P)?29:i[T])}function o(_,I){if(_&&I)return _>I?1:_<I?-1:0}const a=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function l(_,I){const P=a.exec(_);if(!P)return!1;const T=+P[1],C=+P[2],D=+P[3],j=P[5];return(T<=23&&C<=59&&D<=59||T===23&&C===59&&D===60)&&(!I||j!=="")}function c(_,I){if(!(_&&I))return;const P=a.exec(_),T=a.exec(I);if(P&&T)return _=P[1]+P[2]+P[3]+(P[4]||""),I=T[1]+T[2]+T[3]+(T[4]||""),_>I?1:_<I?-1:0}const u=/t|\s/i;function f(_){const I=_.split(u);return I.length===2&&s(I[0])&&l(I[1],!0)}function h(_,I){if(!(_&&I))return;const[P,T]=_.split(u),[C,D]=I.split(u),j=o(P,C);if(j!==void 0)return j||c(T,D)}const m=/\/|:/,d=/^(?:[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(_){return m.test(_)&&d.test(_)}const y=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function S(_){return y.lastIndex=0,y.test(_)}const O=-2147483648,E=2**31-1;function b(_){return Number.isInteger(_)&&_<=E&&_>=O}function g(_){return Number.isInteger(_)}function v(){return!0}const x=/[^\\]\\Z/;function A(_){if(x.test(_))return!1;try{return new RegExp(_),!0}catch{return!1}}})(Qr)),Qr}var ei={},ta;function qS(){return ta||(ta=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=uc(),n=oa(),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:f,it:h}=a,{opts:m,self:d}=h;if(!m.validateFormats)return;const p=new t.KeywordCxt(h,d.RULES.all.format.definition,"format");p.$data?y():S();function y(){const E=l.scopeValue("formats",{ref:d.formats,code:m.code.formats}),b=l.const("fmt",n._`${E}[${p.schemaCode}]`);a.fail$data(n.or(n._`typeof ${b} != "object"`,n._`${b} instanceof RegExp`,n._`typeof ${b}.compare != "function"`,O(b)))}function S(){const E=p.schema,b=d.formats[E];if(!b||b===!0)return;if(typeof b!="object"||b instanceof RegExp||typeof b.compare!="function")throw new Error(`"${f}": format "${E}" does not define "compare" function`);const g=l.scopeValue("formats",{key:E,ref:b,code:m.code.formats?n._`${m.code.formats}${n.getProperty(E)}`:void 0});a.fail$data(O(g))}function O(E){return n._`${E}.compare(${c}, ${u}) ${i[f].fail} 0`}},dependencies:["format"]};const o=a=>(a.addKeyword(e.formatLimitDefinition),a);e.default=o})(ei)),ei}var na;function HS(){return na||(na=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=VS(),r=qS(),i=oa(),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[f,h]=u.mode==="fast"?[n.fastFormats,o]:[n.fullFormats,s],m=u.formats||n.formatNames;return l(c,m,f,h),u.keywords&&r.default(c),c};a.get=(c,u="full")=>{const h=(u==="fast"?n.fastFormats:n.fullFormats)[c];if(!h)throw new Error(`Unknown format "${c}"`);return h};function l(c,u,f,h){var m,d;(m=(d=c.opts.code).formats)!==null&&m!==void 0||(d.formats=i._`require("ajv-formats/dist/formats").${h}`);for(const p of u)c.addFormat(p,f[p])}e.exports=t=a,Object.defineProperty(t,"__esModule",{value:!0}),t.default=a})(Xn,Xn.exports)),Xn.exports}var KS=HS();const ra=Ti(KS),GS={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0,discriminator:!1},zS=/^(#?([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*\)))$/,YS=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;function JS(e,t,n={},r,i=aa,s){let o=new i({...GS,...n});return r?ra(o,r):r!==!1&&ra(o),o.addFormat("data-url",YS),o.addFormat("color",zS),o.addKeyword(ft),o.addKeyword(Ni),Array.isArray(e)&&o.addMetaSchema(e),Z(t)&&Object.keys(t).forEach(a=>{o.addFormat(a,t[a])}),s&&(o=s(o)),o}function ZS(e,t="none"){return t==="all"?e:e.reduce((n,r)=>{const{message:i,schemaPath:s}=r,o=t!=="anyOf"?s?.indexOf(`/${Y}/`):void 0,a=t!=="oneOf"?s?.indexOf(`/${B}/`):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 f;return u.message===i&&((f=u.schemaPath)===null||f===void 0?void 0:f.startsWith(l))})||n.push(r),n},[])}function XS(e=[],t,n){const r=e.map(i=>{var s;const{instancePath:o,keyword:a,params:l,schemaPath:c,parentSchema:u,...f}=i;let{message:h=""}=f,m=o.replace(/\//g,"."),d=`${m} ${h}`.trim(),p="";const y=[...((s=l.deps)===null||s===void 0?void 0:s.split(", "))||[],l.missingProperty,l.property].filter(S=>S);if(y.length>0)y.forEach(S=>{const O=m?`${m}.${S}`:S;let E=M(F(t,`${O.replace(/^\./,"")}`)).title;if(E===void 0){const b=c.replace(/\/properties\//g,"/").split("/").slice(1,-1).concat([S]);E=M(F(t,b)).title}if(E)h=h.replace(`'${S}'`,`'${E}'`),p=E;else{const b=F(u,[Q,S,"title"]);b&&(h=h.replace(`'${S}'`,`'${b}'`),p=b)}}),d=h;else{const S=M(F(t,`${m.replace(/^\./,"")}`)).title;if(S)d=`'${S}' ${h}`.trim(),p=S;else{const O=u?.title;O&&(d=`'${O}' ${h}`.trim(),p=O)}}return"missingProperty"in l&&(m=m?`${m}.${l.missingProperty}`:l.missingProperty),{name:a,property:m,message:h,params:l,stack:d,schemaPath:c,title:p}});return ZS(r,n)}function QS(e,t,n,r,i,s,o,a){const{validationError:l}=t;let c=XS(t.errors,o,a);l&&(c=[...c,{stack:l.message}]),typeof s=="function"&&(c=s(c,o));let u=Tg(c);if(l&&(u={...u,$schema:{__errors:[l.message]}}),typeof i!="function")return{errors:c,errorSchema:u};const f=bl(e,r,n,r,!0),h=i(f,di(f),o,u),m=Dl(h);return vn({errors:c,errorSchema:u},m)}class ev{constructor(t,n){const{additionalMetaSchemas:r,customFormats:i,ajvOptionsOverrides:s,ajvFormatOptions:o,AjvClass:a,extenderFn:l,suppressDuplicateFiltering:c}=t;this.ajv=JS(r,i,s,o,a,l),this.localizer=n,this.suppressDuplicateFiltering=c}reset(){this.ajv.removeSchema()}rawValidation(t,n){var r,i;let s,o;try{t[le]&&(o=this.ajv.getSchema(t[le])),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 f;!((f=l.params)===null||f===void 0)&&f[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 f;!((f=l.params)===null||f===void 0)&&f[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 QS(this,o,t,n,r,i,s,this.suppressDuplicateFiltering)}handleSchemaUpdate(t){var n,r;const i=(n=t[le])!==null&&n!==void 0?n:ha;this.ajv.getSchema(i)===void 0?this.ajv.addSchema(t,i):fe(t,(r=this.ajv.getSchema(i))===null||r===void 0?void 0:r.schema)||(this.ajv.removeSchema(i),this.ajv.addSchema(t,i))}isValid(t,n,r){var i;try{this.handleSchemaUpdate(r);const s=ys(t),o=(i=s[le])!==null&&i!==void 0?i:Og(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 tv(e={},t){return new ev(e,t)}const uv=tv();export{ft as A,uv as B,lv as D,cv as F,Jl as R,G0 as S,te as T,V as a,At as b,mg as c,Nt as d,ds as e,Cl as f,M as g,Ql as h,Pl as i,Hn as j,Nu as k,yg as l,Eg as m,us as n,as as o,sg as p,ig as q,Fl as r,ar as s,hs as t,_t as u,ls as v,pg as w,wl as x,$n as y,rg as z};
|