@runeya/runeya 2.0.37 → 2.0.39
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/package.json +1 -1
- package/web/assets/AgentScalarChatInterface.vue-HiYdPZh0.js +13 -0
- package/web/assets/AgentTerminalPage-BV1OTr-r.js +1 -0
- package/web/assets/AiChatPage-Ct_f2ned.js +1 -0
- package/web/assets/AppLayout-BX_Buqtz.js +1 -0
- package/web/assets/AuditPage-Bc4NZud3.js +1 -0
- package/web/assets/CloudAccountPage-BqnCKZxn.js +1 -0
- package/web/assets/CloudAccountPage-kTdYEt2S.js +1 -0
- package/web/assets/CloudMessagingPage-CWcahAog.js +2 -0
- package/web/assets/DashboardPage-nhKxGmnu.js +1 -0
- package/web/assets/{EditorIcon-UXxtMTuH.js → EditorIcon-vSDu502Z.js} +2 -2
- package/web/assets/EnvironmentForm-8WEcxUYY.js +108 -0
- package/web/assets/EnvironmentFormPage-CpwzzSeB.js +1 -0
- package/web/assets/EnvironmentListPage-Dyq7x-l_.js +1 -0
- package/web/assets/EnvironmentSelector-BXe42bF9.js +1 -0
- package/web/assets/KanbanBoardPage-BvMPl2FW.css +1 -0
- package/web/assets/KanbanBoardPage-DHAWtkkJ.js +4 -0
- package/web/assets/KanbanListPage-CjQfqoXf.js +1 -0
- package/web/assets/LaunchProjectPage-Bfs_AIgu.js +1 -0
- package/web/assets/LaunchServicesPage-DYLGFHSm.js +1 -0
- package/web/assets/LogViewer-CEQDlzBl.js +3 -0
- package/web/assets/{ProcessControls-Co8bII_l.js → ProcessControls-RuqRu4r_.js} +1 -1
- package/web/assets/ProcessDetailPage-CnK8kLHx.js +1 -0
- package/web/assets/{ProcessMetrics-F2lzYBd0.js → ProcessMetrics-tNC5ggO0.js} +2 -2
- package/web/assets/ProjectDetailPage-Cd3-8PAI.js +1 -0
- package/web/assets/ProjectListPage-BGihYeDx.js +1 -0
- package/web/assets/RandomJobTestPage-BgjN2Lqt.js +2 -0
- package/web/assets/ScenarioEditorPage-nU_bK6Wm.js +14 -0
- package/web/assets/SendToChatDialog-DG6GidKi.js +1 -0
- package/web/assets/ServiceControlsBar-lvV0380I.js +1 -0
- package/web/assets/ServiceDetailPage-gG_F4CpK.js +2 -0
- package/web/assets/ServiceFormPage-5pLarqaj.js +1 -0
- package/web/assets/SettingsPage-DGtNwgNF.js +2062 -0
- package/web/assets/SetupPage-zLbZ7HFD.js +1 -0
- package/web/assets/UnlockPage-BNUgOO2j.js +1 -0
- package/web/assets/VariablesTable-Dh7ySbKc.js +1 -0
- package/web/assets/VersionBadge-Bcr43sQb.js +1 -0
- package/web/assets/WikiPage-DDx_jeaY.js +1 -0
- package/web/assets/WikiView-bePXeeW1.js +1 -0
- package/web/assets/add-scalar-classes-BZ33Hgh4.js +387 -0
- package/web/assets/auth-errors-BJV46AcQ.js +1 -0
- package/web/assets/{autocomplete-Cwxk2-mP.js → autocomplete-Mxh2ZegH.js} +4 -4
- package/web/assets/{basic-shape-diamond.svg-xCUU11Sa.js → basic-shape-diamond.svg-C_plmghk.js} +1 -1
- package/web/assets/{basic-shape-hexagon.svg-CNtsvsOX.js → basic-shape-hexagon.svg-A1qvevt_.js} +1 -1
- package/web/assets/{basic-shape-primary-circle-ellipse-round.svg-CzyAwbzv.js → basic-shape-primary-circle-ellipse-round.svg-Df8UWBuG.js} +1 -1
- package/web/assets/{basic-shape-primary-square-rectangle.svg-CNcms16E.js → basic-shape-primary-square-rectangle.svg-hAiISQ_N.js} +1 -1
- package/web/assets/{basic-shape-shield.svg-BmnTDii5.js → basic-shape-shield.svg-j04XHSeq.js} +1 -1
- package/web/assets/{browser-DZk2qE9M.js → browser-B4MIWpa7.js} +1 -1
- package/web/assets/{browser-C330RdhZ.js → browser-_K3D-Q-7.js} +1 -1
- package/web/assets/card-DGaeJPst.js +32 -0
- package/web/assets/{checkbox-B8MtvTjU.js → checkbox-C5uNb3Rm.js} +3 -3
- package/web/assets/{chip-Ec7S7_Pf.js → chip-DDjgi9qj.js} +2 -2
- package/web/assets/client-D9DmTFwP.js +24 -0
- package/web/assets/cloud-chat.store-BPUP_Hxk.js +1 -0
- package/web/assets/cloud-session-B1oqwDJc.js +1 -0
- package/web/assets/column-sUzyGFk3.js +763 -0
- package/web/assets/{computer-device-desktop-monitor.svg-MH9I-pcG.js → computer-device-desktop-monitor.svg-BBuhFhn-.js} +1 -1
- package/web/assets/{computer-device-desktop.svg-DNWFQu6c.js → computer-device-desktop.svg-LL5HezrB.js} +1 -1
- package/web/assets/{computer-device-laptop.svg-CAkz5woZ.js → computer-device-laptop.svg-C4xmfwdM.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-android-samsung-back.svg-VaK-HoWI.js → computer-device-mobile-phone-android-samsung-back.svg-B-uD42mr.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-android-samsung.svg-DkBRyknZ.js → computer-device-mobile-phone-android-samsung.svg-qPPbtnL9.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-iphone-x-back.svg-S7vHYrcX.js → computer-device-mobile-phone-iphone-x-back.svg-B1Xa9B8p.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-iphone-x.svg-y7yC61U4.js → computer-device-mobile-phone-iphone-x.svg-B9zWUZbf.js} +1 -1
- package/web/assets/{computer-device-mobile-tablet-touch.svg-BNyM4Ds9.js → computer-device-mobile-tablet-touch.svg-CriHRQuM.js} +1 -1
- package/web/assets/{computer-device-mobile-tablet.svg-BK4Wr9fz.js → computer-device-mobile-tablet.svg-BOKVzupN.js} +1 -1
- package/web/assets/{computer-device-network-ethernet-cat6.svg-B1AT96mg.js → computer-device-network-ethernet-cat6.svg-D0L6yx6b.js} +1 -1
- package/web/assets/{computer-device-network-lan-www.svg-D47np7s9.js → computer-device-network-lan-www.svg-n9m6VZVC.js} +1 -1
- package/web/assets/{computer-device-network-wifi-connection.svg-BvPE9vjC.js → computer-device-network-wifi-connection.svg-BqJzn-5W.js} +1 -1
- package/web/assets/{computer-device-network-wifi-router.svg-DwK8szPZ.js → computer-device-network-wifi-router.svg-DKcOeajJ.js} +1 -1
- package/web/assets/{cssMode-CUi5eqOs.js → cssMode-CLuhsa-I.js} +1 -1
- package/web/assets/{divider-DycIRq6M.js → divider-UPIM4dQl.js} +2 -2
- package/web/assets/{ecology-science-erlenmeyer-flask.svg-DTZn5yfL.js → ecology-science-erlenmeyer-flask.svg-DyL2i1-k.js} +1 -1
- package/web/assets/{fieldset-CjvmHyPo.js → fieldset-CIZfn4mb.js} +2 -2
- package/web/assets/{freemarker2-PR7qveeq.js → freemarker2-BQV9kA1Y.js} +1 -1
- package/web/assets/{handlebars-DgOrMWhS.js → handlebars-ib1US5Pw.js} +1 -1
- package/web/assets/{html-BffbNKjI.js → html-D-hYOiBO.js} +1 -1
- package/web/assets/{htmlMode-bpq0BIaV.js → htmlMode-WY_1KZ8Q.js} +1 -1
- package/web/assets/{image-flash-lightning.svg-Cop4yg7Q.js → image-flash-lightning.svg-wPJhlaEM.js} +1 -1
- package/web/assets/{image-picture-flower.svg-gb0tQA9K.js → image-picture-flower.svg-C15wjNsW.js} +1 -1
- package/web/assets/{index-CciUxCdN.js → index-CcDpHMIW.js} +299 -299
- package/web/assets/{index-CjOpVKok.css → index-D8bYR2Zc.css} +1 -1
- package/web/assets/{interface-alert-exclamation-diamond.svg-B9wwcHL7.js → interface-alert-exclamation-diamond.svg-C2MhzWE9.js} +1 -1
- package/web/assets/{interface-alert-exclamation-triangle-warning.svg-DdCJ9Ksp.js → interface-alert-exclamation-triangle-warning.svg-D8heEy48.js} +1 -1
- package/web/assets/{interface-alert-information-circle.svg-D81xNsxc.js → interface-alert-information-circle.svg-zrf3-9VP.js} +1 -1
- package/web/assets/{interface-award-crown.svg-DRa1s_kZ.js → interface-award-crown.svg-CT401HIW.js} +1 -1
- package/web/assets/{interface-bookmark.svg-DQ94XtQs.js → interface-bookmark-tag.svg-h5CZEHt8.js} +1 -1
- package/web/assets/{interface-bookmark-tag.svg-J-dbF3p-.js → interface-bookmark.svg-CqHV5l4k.js} +1 -1
- package/web/assets/{interface-calendar-date-one.svg-jbnWOg92.js → interface-calendar-date-one.svg-DUdLsM_8.js} +1 -1
- package/web/assets/{interface-content-book-open-pages.svg-CcKC7vGK.js → interface-content-book-open-pages.svg-DNR8SCd0.js} +1 -1
- package/web/assets/{interface-content-book-page.svg-DP2eseCY.js → interface-content-book-page.svg-Da9e-SX6.js} +1 -1
- package/web/assets/{interface-content-file.svg-Dst3LYQi.js → interface-content-file.svg-BZM7jMWF.js} +1 -1
- package/web/assets/{interface-content-folder.svg-BPwk7EMY.js → interface-content-folder.svg-BisjJGhi.js} +1 -1
- package/web/assets/interface-content-folder.svg-p32kmmD9.js +1 -0
- package/web/assets/{interface-copy-clipboard.svg-oLTA9HxP.js → interface-copy-clipboard.svg-AIcyJXPF.js} +1 -1
- package/web/assets/{interface-edit-attachment.svg-hHSyNC73.js → interface-edit-attachment.svg-XSvdzubS.js} +1 -1
- package/web/assets/{interface-edit-binocular.svg-NrOpa-YA.js → interface-edit-binocular.svg-CCB9rIw_.js} +1 -1
- package/web/assets/{interface-edit-magic-wand.svg-bNQhj47g.js → interface-edit-magic-wand.svg-Dd4afdpz.js} +1 -1
- package/web/assets/{interface-edit-tool-paint-roller.svg-BOELOd7I.js → interface-edit-tool-paint-roller.svg-DpO7rr7P.js} +1 -1
- package/web/assets/{interface-edit-tool-pencil.svg-BLUESUVP.js → interface-edit-tool-pencil.svg-DbKruCrP.js} +1 -1
- package/web/assets/{interface-favorite-award.svg-DqpswKCV.js → interface-favorite-award.svg-DNIpxtuy.js} +1 -1
- package/web/assets/{interface-favorite-flag.svg-B2UCnvBw.js → interface-favorite-flag.svg-CgGWpm8Y.js} +1 -1
- package/web/assets/{interface-favorite-heart.svg-mWLcqk95.js → interface-favorite-heart.svg-Bke1OXMv.js} +1 -1
- package/web/assets/{interface-favorite-star.svg-DengqRJ8.js → interface-favorite-star.svg-DgwsiTjP.js} +1 -1
- package/web/assets/{interface-favorite-stars-sparkles.svg-obs3qQ_C.js → interface-favorite-stars-sparkles.svg-dKGlP2sr.js} +1 -1
- package/web/assets/{interface-hierarchy-flowchart.svg-C-AthlOj.js → interface-hierarchy-flowchart.svg-Bved245R.js} +1 -1
- package/web/assets/{interface-home-house.svg-DaJ7a9SI.js → interface-home-house.svg-DJIEYhIa.js} +1 -1
- package/web/assets/{interface-hyperlink.svg-bWo7atPJ.js → interface-hyperlink.svg-BBh6NFX7.js} +1 -1
- package/web/assets/{interface-lighting-brightness.svg-BOb1q30D.js → interface-lighting-brightness.svg-NqCt5nK8.js} +1 -1
- package/web/assets/{interface-lock-closed.svg-DvJ-zQxQ.js → interface-lock-closed.svg-CclDxo01.js} +1 -1
- package/web/assets/{interface-lock-open-unlock.svg-BavcaTaM.js → interface-lock-open-unlock.svg-CYPJVug8.js} +1 -1
- package/web/assets/{interface-login-key.svg-D4NTGun4.js → interface-login-key.svg-DaW7pEY5.js} +1 -1
- package/web/assets/{interface-search.svg-DXuSt-Me.js → interface-search.svg-j89Vz_N5.js} +1 -1
- package/web/assets/{interface-setting-cog.svg-SQT77sYs.js → interface-setting-cog.svg-CY2WkccU.js} +1 -1
- package/web/assets/{interface-share-megaphone-bullhorn.svg-Cd6gQLc3.js → interface-share-megaphone-bullhorn.svg-C927tb6q.js} +1 -1
- package/web/assets/{interface-share-rocket.svg-BSZt1d2x.js → interface-share-rocket.svg-B3sZvIoQ.js} +1 -1
- package/web/assets/{interface-share-satellite.svg-CGZcSUG8.js → interface-share-satellite.svg-CQ8A4dXG.js} +1 -1
- package/web/assets/{interface-share-space-ship.svg-BpCou-ow.js → interface-share-space-ship.svg-BTGyj986.js} +1 -1
- package/web/assets/{interface-share.svg-BvGepvTw.js → interface-share.svg-BSQ8cEXV.js} +1 -1
- package/web/assets/{interface-signal-square.svg-B7TNQmwJ.js → interface-signal-square.svg-1h2-Znr2.js} +1 -1
- package/web/assets/{interface-time-clock-circle.svg-DH80TqI9.js → interface-time-clock-circle.svg-CgUcH4er.js} +1 -1
- package/web/assets/{interface-time-hour-glass.svg-3qr33GWl.js → interface-time-hour-glass.svg-Biz9ylcj.js} +1 -1
- package/web/assets/{interface-users-multiple.svg-DwNG_-F6.js → interface-users-multiple.svg-B2SNNyd6.js} +1 -1
- package/web/assets/{interface-weather-moon.svg-DEQWYqiQ.js → interface-weather-moon.svg-DFIwJsKU.js} +1 -1
- package/web/assets/{javascript-w_EWfyj8.js → javascript-w0UZtcmg.js} +1 -1
- package/web/assets/{jsonMode-D4r89tdd.js → jsonMode-CJUdXIyV.js} +1 -1
- package/web/assets/{liquid-YT-Gbpbn.js → liquid-CjedKIbd.js} +1 -1
- package/web/assets/{lspLanguageFeatures-DLts5YLT.js → lspLanguageFeatures-DGvsogF_.js} +3 -3
- package/web/assets/{mail-chat-bubble-square.svg-CgweF-ET.js → mail-chat-bubble-square.svg-D16l2agS.js} +1 -1
- package/web/assets/{mail-send-email-paper-airplane.svg-eZ7s6iSo.js → mail-send-email-paper-airplane.svg-Bz-my4zw.js} +1 -1
- package/web/assets/{mail-send-envelope.svg-PtumK2gN.js → mail-send-envelope.svg-Cgh2a1hO.js} +1 -1
- package/web/assets/{mdx-DYOkJQ2T.js → mdx-Y5OqFrRV.js} +1 -1
- package/web/assets/{message-C4ssuXMG.js → message-Bh-eAVAb.js} +2 -2
- package/web/assets/{minus-BrB-xJXx.js → minus-CxgjeEyu.js} +2 -2
- package/web/assets/modal-CIFHhhV7.js +1 -0
- package/web/assets/modal-ciXJUOol.js +5 -0
- package/web/assets/{money-cashier-receipt.svg-DOZM_LD5.js → money-cashier-receipt.svg-BP5bjawX.js} +1 -1
- package/web/assets/{money-currency-dollar-pay.svg-SbynpXQS.js → money-currency-dollar-pay.svg-vKtIhvs8.js} +1 -1
- package/web/assets/{money-graph-arrow-increase.svg-DazprYEx.js → money-graph-arrow-increase.svg-CaeoOB93.js} +1 -1
- package/web/assets/{money-graph-bar-chart-increase.svg-B4ZHvX63.js → money-graph-bar-chart-increase.svg-CjRjHwbF.js} +1 -1
- package/web/assets/multiselect-CsE4Xly1.js +251 -0
- package/web/assets/{nature-ecology-leaf.svg-jWCibRCX.js → nature-ecology-leaf.svg-umy4cUUw.js} +1 -1
- package/web/assets/{password-BV3bNVp-.js → password-Brra1Twl.js} +4 -4
- package/web/assets/{phone-telephone.svg-BD6_Stw0.js → phone-telephone.svg-DQ18gSw7.js} +1 -1
- package/web/assets/{plus-D9qYjWY-.js → plus-e_D9UcW9.js} +6 -6
- package/web/assets/process.store-BhNwQ2dn.js +1 -0
- package/web/assets/{programming-bug.svg-CatWhwdI.js → programming-bug.svg-BL4Hus_Q.js} +1 -1
- package/web/assets/{programming-cloud.svg-O8BRsvbT.js → programming-cloud.svg-DrTlrDBe.js} +1 -1
- package/web/assets/{programming-computer-database-server.svg-C1bKw4VS.js → programming-computer-database-server.svg-CnwbhD5W.js} +1 -1
- package/web/assets/{programming-computer-database.svg-B_Fknp_f.js → programming-computer-database.svg-GymDSTl9.js} +1 -1
- package/web/assets/{programming-module-four-layout.svg-C51SabdP.js → programming-module-four-layout.svg-DspyCTiu.js} +1 -1
- package/web/assets/{programming-module-three.svg-E0JA4zSn.js → programming-module-three.svg-BuYXTrWu.js} +1 -1
- package/web/assets/{programming-module.svg-C6iEdc9a.js → programming-module.svg-DIlRMVbW.js} +1 -1
- package/web/assets/{programming-script-code.svg-B5jm3asg.js → programming-script-code.svg-DPXJcL07.js} +1 -1
- package/web/assets/{python-D5cJC4LZ.js → python-3fAbpxqq.js} +1 -1
- package/web/assets/{radiobutton-CeRXnMmI.js → radiobutton-w7t3rGDJ.js} +2 -2
- package/web/assets/{razor-43yBMvFq.js → razor-GDM0jSNH.js} +1 -1
- package/web/assets/router-C6yOFC1g.js +1 -0
- package/web/assets/settings.store-D0eLKI4A.js +1 -0
- package/web/assets/{shopping-cart.svg-BN1at-RL.js → shopping-cart.svg-B1y-4w0M.js} +1 -1
- package/web/assets/{shopping-gift-present.svg-y0sDx7uX.js → shopping-gift-present.svg-DJ3mGWql.js} +1 -1
- package/web/assets/{shopping-shipping-box-parcel-package.svg-C0czgmky.js → shopping-shipping-box-parcel-package.svg-Bj3iHRT5.js} +1 -1
- package/web/assets/src-BotO3dQ7.js +1 -0
- package/web/assets/{src-1Ob0013X.js → src-wVYcxep_.js} +33 -33
- package/web/assets/{tabpanel-581X6amq.js → tabpanel-DOZdp_HS.js} +3 -3
- package/web/assets/{tag-new-circle.svg-Cll7ABEx.js → tag-new-circle.svg-Bb_ByVey.js} +1 -1
- package/web/assets/{travel-map-earth-globe.svg-C6J0sGc9.js → travel-map-earth-globe.svg-Mso-K6XY.js} +1 -1
- package/web/assets/trpc-BWtKBok1.js +1 -0
- package/web/assets/{tsMode-CXlw9duD.js → tsMode-BUHQk9ZI.js} +5 -5
- package/web/assets/{typescript-DjutVr6t.js → typescript-Quc5d9qP.js} +1 -1
- package/web/assets/useAiChatDrawer-CRJCTTTO.js +1 -0
- package/web/assets/useCloudOrg-CBr3kqWH.js +1 -0
- package/web/assets/useCloudOrg-Gz6ek71z.css +1 -0
- package/web/assets/{xml-BlQcYNl0.js → xml-CkYBw41O.js} +1 -1
- package/web/assets/{yaml-BMG2DkYL.js → yaml-CmSvkxzN.js} +1 -1
- package/web/index.html +2 -2
- package/web/assets/AgentScalarChatInterface.vue-BO93DDRD.js +0 -13
- package/web/assets/AgentTerminalPage-BwgEdwaW.js +0 -1
- package/web/assets/AiChatPage-DJcGI5TN.js +0 -1
- package/web/assets/AppLayout-BgmmG8o1.js +0 -1
- package/web/assets/AuditPage-B1w8iqPc.js +0 -1
- package/web/assets/CloudAccountPage-B9w3bbVh.js +0 -1
- package/web/assets/CloudAccountPage-SHpG51Bp.js +0 -1
- package/web/assets/CloudMessagingPage-B6ga19jo.js +0 -2
- package/web/assets/DashboardPage-8LUIYyIb.js +0 -1
- package/web/assets/EnvironmentForm-5UPW_537.js +0 -108
- package/web/assets/EnvironmentFormPage-CuJaxZmI.js +0 -1
- package/web/assets/EnvironmentListPage-beI0eWII.js +0 -1
- package/web/assets/EnvironmentSelector-CDZOdueF.js +0 -1
- package/web/assets/KanbanBoardPage-D4W5PBXq.js +0 -4
- package/web/assets/KanbanBoardPage-kpZiPs_o.css +0 -1
- package/web/assets/KanbanListPage-ChXyP3i3.js +0 -1
- package/web/assets/LaunchProjectPage-CGQrrI9i.js +0 -1
- package/web/assets/LaunchServicesPage-D0jGjtby.js +0 -1
- package/web/assets/LogViewer-bWKyHOnG.js +0 -3
- package/web/assets/ProcessDetailPage-di2Vl56Q.js +0 -1
- package/web/assets/ProjectDetailPage-BDBtgUlb.js +0 -1
- package/web/assets/ProjectListPage-DBcIclXM.js +0 -1
- package/web/assets/RandomJobTestPage-CUng06qc.js +0 -2
- package/web/assets/ScenarioEditorPage-bqK07Hbq.js +0 -14
- package/web/assets/SendToChatDialog-C9bsUhRU.js +0 -1
- package/web/assets/ServiceControlsBar-DOlr6ohl.js +0 -1
- package/web/assets/ServiceDetailPage-iKf8GWE6.js +0 -2
- package/web/assets/ServiceFormPage-CmpUv2nY.js +0 -1
- package/web/assets/SettingsPage-CTHzhCA7.js +0 -2062
- package/web/assets/SetupPage-DDZZVx2Y.js +0 -1
- package/web/assets/UnlockPage-BGQNlVGa.js +0 -1
- package/web/assets/VariablesTable-C8kdnHwh.js +0 -1
- package/web/assets/VersionBadge-BlaO8yhj.js +0 -1
- package/web/assets/WikiPage-NZ70Fg4t.js +0 -1
- package/web/assets/WikiView-B_H1-iVA.js +0 -1
- package/web/assets/add-scalar-classes-BlZh_Zwc.js +0 -387
- package/web/assets/auth-errors-BwSQmvNp.js +0 -1
- package/web/assets/card-BdN_XwXX.js +0 -32
- package/web/assets/client-De-e9wSa.js +0 -24
- package/web/assets/cloud-chat.store-DsWaquiH.js +0 -1
- package/web/assets/cloud-client-YZas5WmD.js +0 -1
- package/web/assets/column-DibFz9rt.js +0 -763
- package/web/assets/interface-content-folder.svg-nQTL5Ydl.js +0 -1
- package/web/assets/modal-C05pP-ye.js +0 -5
- package/web/assets/modal-CiyV1rS5.js +0 -1
- package/web/assets/multiselect-Ci17JVA9.js +0 -251
- package/web/assets/process.store-CmZhipX5.js +0 -1
- package/web/assets/router-DA5hXFac.js +0 -1
- package/web/assets/settings.store-BKmjMfLv.js +0 -1
- package/web/assets/src-Bf3aCzoB.js +0 -1
- package/web/assets/trpc-BLqVCiT-.js +0 -1
- package/web/assets/useAiChatDrawer-CSTuZi3T.js +0 -1
- package/web/assets/useCloudOrg-BpNVWhZZ.css +0 -1
- package/web/assets/useCloudOrg-Cv89QlXm.js +0 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import{Ei as e,Ii as t,Lr as n,Qr as r,Si as i,Ui as a,Ur as o,Wi as s,Xi as c,Xr as l,Yr as u,Zr as d,_a as f,ai as p,ca as m,ei as h,ki as g,mi as _,oa as v,pi as y,ri as ee,zi as b}from"./index-CcDpHMIW.js";import{$i as x,$r as S,Aa as C,Ai as w,Ba as T,Bi as E,Br as te,Ca as D,Ci as ne,D as O,Da as k,Di as re,Ei as ie,Fa as ae,Fi as A,Gi as oe,Gr as se,Hi as j,Hr as ce,Ii as M,Ji as le,Jn as ue,Jr as de,Ki as fe,Kr as pe,La as me,Li as he,Ma as ge,Mi as _e,Na as ve,Ni as N,Oa as ye,Oi as be,Pa as xe,Pi as P,Qi as F,Qr as Se,R as Ce,Ri as I,S as we,Sa as Te,Si as Ee,Ti as De,Ui as L,Ur as Oe,Vi as R,Vr as ke,Wi as z,Wr as Ae,Xi as je,Xr as Me,Yi as Ne,Yn as Pe,Yr as Fe,Zi as B,Zr as Ie,_ as Le,_a as Re,_i as ze,aa as Be,ai as Ve,ar as He,b as Ue,ba as We,bi as Ge,br as Ke,ca as qe,ci as Je,da as Ye,di as Xe,dt as Ze,ea as Qe,ei as $e,fa as et,fi as tt,ga as nt,gi as rt,ha as it,hi as at,ia as ot,ii as st,ja as ct,ji as V,jr as lt,ka as ut,ki as H,kt as dt,la as ft,li as pt,lt as mt,ma as ht,mi as gt,mt as _t,na as vt,ni as yt,oa as bt,oi as xt,or as U,pa as St,pi as Ct,qi as wt,qr as Tt,r as Et,ra as Dt,ri as Ot,sa as kt,si as At,ta as jt,ti as Mt,ua as Nt,ui as Pt,ut as Ft,va as It,vi as Lt,vr as Rt,wi as zt,x as Bt,xa as Vt,xi as Ht,ya as Ut,yi as Wt,yr as Gt,z as Kt,zi as W,zr as qt}from"./add-scalar-classes-BZ33Hgh4.js";import{n as Jt,t as Yt}from"./browser-B4MIWpa7.js";function Xt(e){switch(e.errorType){case G.ArrayContains:return`Expected array to contain at least one matching value`;case G.ArrayMaxContains:return`Expected array to contain no more than ${e.schema.maxContains} matching values`;case G.ArrayMinContains:return`Expected array to contain at least ${e.schema.minContains} matching values`;case G.ArrayMaxItems:return`Expected array length to be less or equal to ${e.schema.maxItems}`;case G.ArrayMinItems:return`Expected array length to be greater or equal to ${e.schema.minItems}`;case G.ArrayUniqueItems:return`Expected array elements to be unique`;case G.Array:return`Expected array`;case G.AsyncIterator:return`Expected AsyncIterator`;case G.BigIntExclusiveMaximum:return`Expected bigint to be less than ${e.schema.exclusiveMaximum}`;case G.BigIntExclusiveMinimum:return`Expected bigint to be greater than ${e.schema.exclusiveMinimum}`;case G.BigIntMaximum:return`Expected bigint to be less or equal to ${e.schema.maximum}`;case G.BigIntMinimum:return`Expected bigint to be greater or equal to ${e.schema.minimum}`;case G.BigIntMultipleOf:return`Expected bigint to be a multiple of ${e.schema.multipleOf}`;case G.BigInt:return`Expected bigint`;case G.Boolean:return`Expected boolean`;case G.DateExclusiveMinimumTimestamp:return`Expected Date timestamp to be greater than ${e.schema.exclusiveMinimumTimestamp}`;case G.DateExclusiveMaximumTimestamp:return`Expected Date timestamp to be less than ${e.schema.exclusiveMaximumTimestamp}`;case G.DateMinimumTimestamp:return`Expected Date timestamp to be greater or equal to ${e.schema.minimumTimestamp}`;case G.DateMaximumTimestamp:return`Expected Date timestamp to be less or equal to ${e.schema.maximumTimestamp}`;case G.DateMultipleOfTimestamp:return`Expected Date timestamp to be a multiple of ${e.schema.multipleOfTimestamp}`;case G.Date:return`Expected Date`;case G.Function:return`Expected function`;case G.IntegerExclusiveMaximum:return`Expected integer to be less than ${e.schema.exclusiveMaximum}`;case G.IntegerExclusiveMinimum:return`Expected integer to be greater than ${e.schema.exclusiveMinimum}`;case G.IntegerMaximum:return`Expected integer to be less or equal to ${e.schema.maximum}`;case G.IntegerMinimum:return`Expected integer to be greater or equal to ${e.schema.minimum}`;case G.IntegerMultipleOf:return`Expected integer to be a multiple of ${e.schema.multipleOf}`;case G.Integer:return`Expected integer`;case G.IntersectUnevaluatedProperties:return`Unexpected property`;case G.Intersect:return`Expected all values to match`;case G.Iterator:return`Expected Iterator`;case G.Literal:return`Expected ${typeof e.schema.const==`string`?`'${e.schema.const}'`:e.schema.const}`;case G.Never:return`Never`;case G.Not:return`Value should not match`;case G.Null:return`Expected null`;case G.NumberExclusiveMaximum:return`Expected number to be less than ${e.schema.exclusiveMaximum}`;case G.NumberExclusiveMinimum:return`Expected number to be greater than ${e.schema.exclusiveMinimum}`;case G.NumberMaximum:return`Expected number to be less or equal to ${e.schema.maximum}`;case G.NumberMinimum:return`Expected number to be greater or equal to ${e.schema.minimum}`;case G.NumberMultipleOf:return`Expected number to be a multiple of ${e.schema.multipleOf}`;case G.Number:return`Expected number`;case G.Object:return`Expected object`;case G.ObjectAdditionalProperties:return`Unexpected property`;case G.ObjectMaxProperties:return`Expected object to have no more than ${e.schema.maxProperties} properties`;case G.ObjectMinProperties:return`Expected object to have at least ${e.schema.minProperties} properties`;case G.ObjectRequiredProperty:return`Expected required property`;case G.Promise:return`Expected Promise`;case G.RegExp:return`Expected string to match regular expression`;case G.StringFormatUnknown:return`Unknown format '${e.schema.format}'`;case G.StringFormat:return`Expected string to match '${e.schema.format}' format`;case G.StringMaxLength:return`Expected string length less or equal to ${e.schema.maxLength}`;case G.StringMinLength:return`Expected string length greater or equal to ${e.schema.minLength}`;case G.StringPattern:return`Expected string to match '${e.schema.pattern}'`;case G.String:return`Expected string`;case G.Symbol:return`Expected symbol`;case G.TupleLength:return`Expected tuple to have ${e.schema.maxItems||0} elements`;case G.Tuple:return`Expected tuple`;case G.Uint8ArrayMaxByteLength:return`Expected byte length less or equal to ${e.schema.maxByteLength}`;case G.Uint8ArrayMinByteLength:return`Expected byte length greater or equal to ${e.schema.minByteLength}`;case G.Uint8Array:return`Expected Uint8Array`;case G.Undefined:return`Expected undefined`;case G.Union:return`Expected union value`;case G.Void:return`Expected void`;case G.Kind:return`Expected kind '${e.schema[bt]}'`;default:return`Unknown error type`}}var Zt=Xt;function Qt(){return Zt}var G;(function(e){e[e.ArrayContains=0]=`ArrayContains`,e[e.ArrayMaxContains=1]=`ArrayMaxContains`,e[e.ArrayMaxItems=2]=`ArrayMaxItems`,e[e.ArrayMinContains=3]=`ArrayMinContains`,e[e.ArrayMinItems=4]=`ArrayMinItems`,e[e.ArrayUniqueItems=5]=`ArrayUniqueItems`,e[e.Array=6]=`Array`,e[e.AsyncIterator=7]=`AsyncIterator`,e[e.BigIntExclusiveMaximum=8]=`BigIntExclusiveMaximum`,e[e.BigIntExclusiveMinimum=9]=`BigIntExclusiveMinimum`,e[e.BigIntMaximum=10]=`BigIntMaximum`,e[e.BigIntMinimum=11]=`BigIntMinimum`,e[e.BigIntMultipleOf=12]=`BigIntMultipleOf`,e[e.BigInt=13]=`BigInt`,e[e.Boolean=14]=`Boolean`,e[e.DateExclusiveMaximumTimestamp=15]=`DateExclusiveMaximumTimestamp`,e[e.DateExclusiveMinimumTimestamp=16]=`DateExclusiveMinimumTimestamp`,e[e.DateMaximumTimestamp=17]=`DateMaximumTimestamp`,e[e.DateMinimumTimestamp=18]=`DateMinimumTimestamp`,e[e.DateMultipleOfTimestamp=19]=`DateMultipleOfTimestamp`,e[e.Date=20]=`Date`,e[e.Function=21]=`Function`,e[e.IntegerExclusiveMaximum=22]=`IntegerExclusiveMaximum`,e[e.IntegerExclusiveMinimum=23]=`IntegerExclusiveMinimum`,e[e.IntegerMaximum=24]=`IntegerMaximum`,e[e.IntegerMinimum=25]=`IntegerMinimum`,e[e.IntegerMultipleOf=26]=`IntegerMultipleOf`,e[e.Integer=27]=`Integer`,e[e.IntersectUnevaluatedProperties=28]=`IntersectUnevaluatedProperties`,e[e.Intersect=29]=`Intersect`,e[e.Iterator=30]=`Iterator`,e[e.Kind=31]=`Kind`,e[e.Literal=32]=`Literal`,e[e.Never=33]=`Never`,e[e.Not=34]=`Not`,e[e.Null=35]=`Null`,e[e.NumberExclusiveMaximum=36]=`NumberExclusiveMaximum`,e[e.NumberExclusiveMinimum=37]=`NumberExclusiveMinimum`,e[e.NumberMaximum=38]=`NumberMaximum`,e[e.NumberMinimum=39]=`NumberMinimum`,e[e.NumberMultipleOf=40]=`NumberMultipleOf`,e[e.Number=41]=`Number`,e[e.ObjectAdditionalProperties=42]=`ObjectAdditionalProperties`,e[e.ObjectMaxProperties=43]=`ObjectMaxProperties`,e[e.ObjectMinProperties=44]=`ObjectMinProperties`,e[e.ObjectRequiredProperty=45]=`ObjectRequiredProperty`,e[e.Object=46]=`Object`,e[e.Promise=47]=`Promise`,e[e.RegExp=48]=`RegExp`,e[e.StringFormatUnknown=49]=`StringFormatUnknown`,e[e.StringFormat=50]=`StringFormat`,e[e.StringMaxLength=51]=`StringMaxLength`,e[e.StringMinLength=52]=`StringMinLength`,e[e.StringPattern=53]=`StringPattern`,e[e.String=54]=`String`,e[e.Symbol=55]=`Symbol`,e[e.TupleLength=56]=`TupleLength`,e[e.Tuple=57]=`Tuple`,e[e.Uint8ArrayMaxByteLength=58]=`Uint8ArrayMaxByteLength`,e[e.Uint8ArrayMinByteLength=59]=`Uint8ArrayMinByteLength`,e[e.Uint8Array=60]=`Uint8Array`,e[e.Undefined=61]=`Undefined`,e[e.Union=62]=`Union`,e[e.Void=63]=`Void`})(G||={});var $t=class extends kt{constructor(e){super(`Unknown type`),this.schema=e}};function en(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function K(e){return e!==void 0}var tn=class{constructor(e){this.iterator=e}[Symbol.iterator](){return this.iterator}First(){let e=this.iterator.next();return e.done?void 0:e.value}};function q(e,t,n,r,i=[]){return{type:e,schema:t,path:n,value:r,message:Qt()({errorType:e,path:n,schema:t,value:r,errors:i}),errors:i}}function*nn(e,t,n,r){}function*rn(e,t,n,r){}function*an(e,t,n,r){if(!ft(r))return yield q(G.Array,e,n,r);K(e.minItems)&&!(r.length>=e.minItems)&&(yield q(G.ArrayMinItems,e,n,r)),K(e.maxItems)&&!(r.length<=e.maxItems)&&(yield q(G.ArrayMaxItems,e,n,r));for(let i=0;i<r.length;i++)yield*J(e.items,t,`${n}/${i}`,r[i]);if(e.uniqueItems===!0&&!(function(){let e=new Set;for(let t of r){let n=je(t);if(e.has(n))return!1;e.add(n)}return!0})()&&(yield q(G.ArrayUniqueItems,e,n,r)),!(K(e.contains)||K(e.minContains)||K(e.maxContains)))return;let i=K(e.contains)?e.contains:jt(),a=r.reduce((e,r,a)=>J(i,t,`${n}${a}`,r).next().done===!0?e+1:e,0);a===0&&(yield q(G.ArrayContains,e,n,r)),It(e.minContains)&&a<e.minContains&&(yield q(G.ArrayMinContains,e,n,r)),It(e.maxContains)&&a>e.maxContains&&(yield q(G.ArrayMaxContains,e,n,r))}function*on(e,t,n,r){Nt(r)||(yield q(G.AsyncIterator,e,n,r))}function*sn(e,t,n,r){if(!Ye(r))return yield q(G.BigInt,e,n,r);K(e.exclusiveMaximum)&&!(r<e.exclusiveMaximum)&&(yield q(G.BigIntExclusiveMaximum,e,n,r)),K(e.exclusiveMinimum)&&!(r>e.exclusiveMinimum)&&(yield q(G.BigIntExclusiveMinimum,e,n,r)),K(e.maximum)&&!(r<=e.maximum)&&(yield q(G.BigIntMaximum,e,n,r)),K(e.minimum)&&!(r>=e.minimum)&&(yield q(G.BigIntMinimum,e,n,r)),K(e.multipleOf)&&r%e.multipleOf!==BigInt(0)&&(yield q(G.BigIntMultipleOf,e,n,r))}function*cn(e,t,n,r){et(r)||(yield q(G.Boolean,e,n,r))}function*ln(e,t,n,r){yield*J(e.returns,t,n,r.prototype)}function*un(e,t,n,r){if(!St(r))return yield q(G.Date,e,n,r);K(e.exclusiveMaximumTimestamp)&&!(r.getTime()<e.exclusiveMaximumTimestamp)&&(yield q(G.DateExclusiveMaximumTimestamp,e,n,r)),K(e.exclusiveMinimumTimestamp)&&!(r.getTime()>e.exclusiveMinimumTimestamp)&&(yield q(G.DateExclusiveMinimumTimestamp,e,n,r)),K(e.maximumTimestamp)&&!(r.getTime()<=e.maximumTimestamp)&&(yield q(G.DateMaximumTimestamp,e,n,r)),K(e.minimumTimestamp)&&!(r.getTime()>=e.minimumTimestamp)&&(yield q(G.DateMinimumTimestamp,e,n,r)),K(e.multipleOfTimestamp)&&r.getTime()%e.multipleOfTimestamp!==0&&(yield q(G.DateMultipleOfTimestamp,e,n,r))}function*dn(e,t,n,r){ht(r)||(yield q(G.Function,e,n,r))}function*fn(e,t,n,r){let i=globalThis.Object.values(e.$defs),a=e.$defs[e.$ref];yield*J(a,[...t,...i],n,r)}function*pn(e,t,n,r){if(!it(r))return yield q(G.Integer,e,n,r);K(e.exclusiveMaximum)&&!(r<e.exclusiveMaximum)&&(yield q(G.IntegerExclusiveMaximum,e,n,r)),K(e.exclusiveMinimum)&&!(r>e.exclusiveMinimum)&&(yield q(G.IntegerExclusiveMinimum,e,n,r)),K(e.maximum)&&!(r<=e.maximum)&&(yield q(G.IntegerMaximum,e,n,r)),K(e.minimum)&&!(r>=e.minimum)&&(yield q(G.IntegerMinimum,e,n,r)),K(e.multipleOf)&&r%e.multipleOf!==0&&(yield q(G.IntegerMultipleOf,e,n,r))}function*mn(e,t,n,r){let i=!1;for(let a of e.allOf)for(let e of J(a,t,n,r))i=!0,yield e;if(i)return yield q(G.Intersect,e,n,r);if(e.unevaluatedProperties===!1){let t=new RegExp(Qe(e));for(let i of Object.getOwnPropertyNames(r))t.test(i)||(yield q(G.IntersectUnevaluatedProperties,e,`${n}/${i}`,r))}if(typeof e.unevaluatedProperties==`object`){let i=new RegExp(Qe(e));for(let a of Object.getOwnPropertyNames(r))if(!i.test(a)){let i=J(e.unevaluatedProperties,t,`${n}/${a}`,r[a]).next();i.done||(yield i.value)}}}function*hn(e,t,n,r){nt(r)||(yield q(G.Iterator,e,n,r))}function*gn(e,t,n,r){r!==e.const&&(yield q(G.Literal,e,n,r))}function*_n(e,t,n,r){yield q(G.Never,e,n,r)}function*vn(e,t,n,r){J(e.not,t,n,r).next().done===!0&&(yield q(G.Not,e,n,r))}function*yn(e,t,n,r){Re(r)||(yield q(G.Null,e,n,r))}function*bn(e,t,n,r){if(!qe.IsNumberLike(r))return yield q(G.Number,e,n,r);K(e.exclusiveMaximum)&&!(r<e.exclusiveMaximum)&&(yield q(G.NumberExclusiveMaximum,e,n,r)),K(e.exclusiveMinimum)&&!(r>e.exclusiveMinimum)&&(yield q(G.NumberExclusiveMinimum,e,n,r)),K(e.maximum)&&!(r<=e.maximum)&&(yield q(G.NumberMaximum,e,n,r)),K(e.minimum)&&!(r>=e.minimum)&&(yield q(G.NumberMinimum,e,n,r)),K(e.multipleOf)&&r%e.multipleOf!==0&&(yield q(G.NumberMultipleOf,e,n,r))}function*xn(e,t,n,r){if(!qe.IsObjectLike(r))return yield q(G.Object,e,n,r);K(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)&&(yield q(G.ObjectMinProperties,e,n,r)),K(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)&&(yield q(G.ObjectMaxProperties,e,n,r));let i=Array.isArray(e.required)?e.required:[],a=Object.getOwnPropertyNames(e.properties),o=Object.getOwnPropertyNames(r);for(let t of i)o.includes(t)||(yield q(G.ObjectRequiredProperty,e.properties[t],`${n}/${en(t)}`,void 0));if(e.additionalProperties===!1)for(let t of o)a.includes(t)||(yield q(G.ObjectAdditionalProperties,e,`${n}/${en(t)}`,r[t]));if(typeof e.additionalProperties==`object`)for(let i of o)a.includes(i)||(yield*J(e.additionalProperties,t,`${n}/${en(i)}`,r[i]));for(let i of a){let a=e.properties[i];e.required&&e.required.includes(i)?(yield*J(a,t,`${n}/${en(i)}`,r[i]),x(e)&&!(i in r)&&(yield q(G.ObjectRequiredProperty,a,`${n}/${en(i)}`,void 0))):qe.IsExactOptionalProperty(r,i)&&(yield*J(a,t,`${n}/${en(i)}`,r[i]))}}function*Sn(e,t,n,r){Ut(r)||(yield q(G.Promise,e,n,r))}function*Cn(e,t,n,r){if(!qe.IsRecordLike(r))return yield q(G.Object,e,n,r);K(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)&&(yield q(G.ObjectMinProperties,e,n,r)),K(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)&&(yield q(G.ObjectMaxProperties,e,n,r));let[i,a]=Object.entries(e.patternProperties)[0],o=new RegExp(i);for(let[e,i]of Object.entries(r))o.test(e)&&(yield*J(a,t,`${n}/${en(e)}`,i));if(typeof e.additionalProperties==`object`)for(let[i,a]of Object.entries(r))o.test(i)||(yield*J(e.additionalProperties,t,`${n}/${en(i)}`,a));if(e.additionalProperties===!1){for(let[t,i]of Object.entries(r))if(!o.test(t))return yield q(G.ObjectAdditionalProperties,e,`${n}/${en(t)}`,i)}}function*wn(e,t,n,r){yield*J(B(e,t),t,n,r)}function*Tn(e,t,n,r){if(!We(r))return yield q(G.String,e,n,r);if(K(e.minLength)&&!(r.length>=e.minLength)&&(yield q(G.StringMinLength,e,n,r)),K(e.maxLength)&&!(r.length<=e.maxLength)&&(yield q(G.StringMaxLength,e,n,r)),!new RegExp(e.source,e.flags).test(r))return yield q(G.RegExp,e,n,r)}function*En(e,t,n,r){if(!We(r))return yield q(G.String,e,n,r);K(e.minLength)&&!(r.length>=e.minLength)&&(yield q(G.StringMinLength,e,n,r)),K(e.maxLength)&&!(r.length<=e.maxLength)&&(yield q(G.StringMaxLength,e,n,r)),We(e.pattern)&&(new RegExp(e.pattern).test(r)||(yield q(G.StringPattern,e,n,r))),We(e.format)&&(Be(e.format)?ot(e.format)(r)||(yield q(G.StringFormat,e,n,r)):yield q(G.StringFormatUnknown,e,n,r))}function*Dn(e,t,n,r){Vt(r)||(yield q(G.Symbol,e,n,r))}function*On(e,t,n,r){if(!We(r))return yield q(G.String,e,n,r);new RegExp(e.pattern).test(r)||(yield q(G.StringPattern,e,n,r))}function*kn(e,t,n,r){yield*J(B(e,t),t,n,r)}function*An(e,t,n,r){if(!ft(r))return yield q(G.Tuple,e,n,r);if(e.items===void 0&&r.length!==0||r.length!==e.maxItems)return yield q(G.TupleLength,e,n,r);if(e.items)for(let i=0;i<e.items.length;i++)yield*J(e.items[i],t,`${n}/${i}`,r[i])}function*jn(e,t,n,r){D(r)||(yield q(G.Undefined,e,n,r))}function*Mn(e,t,n,r){if(Ne(e,t,r))return;let i=e.anyOf.map(e=>new tn(J(e,t,n,r)));yield q(G.Union,e,n,r,i)}function*Nn(e,t,n,r){if(!Te(r))return yield q(G.Uint8Array,e,n,r);K(e.maxByteLength)&&!(r.length<=e.maxByteLength)&&(yield q(G.Uint8ArrayMaxByteLength,e,n,r)),K(e.minByteLength)&&!(r.length>=e.minByteLength)&&(yield q(G.Uint8ArrayMinByteLength,e,n,r))}function*Pn(e,t,n,r){}function*Fn(e,t,n,r){qe.IsVoidLike(r)||(yield q(G.Void,e,n,r))}function*In(e,t,n,r){vt(e[bt])(e,r)||(yield q(G.Kind,e,n,r))}function*J(e,t,n,r){let i=K(e.$id)?[...t,e]:t,a=e;switch(a[bt]){case`Any`:return yield*nn(a,i,n,r);case`Argument`:return yield*rn(a,i,n,r);case`Array`:return yield*an(a,i,n,r);case`AsyncIterator`:return yield*on(a,i,n,r);case`BigInt`:return yield*sn(a,i,n,r);case`Boolean`:return yield*cn(a,i,n,r);case`Constructor`:return yield*ln(a,i,n,r);case`Date`:return yield*un(a,i,n,r);case`Function`:return yield*dn(a,i,n,r);case`Import`:return yield*fn(a,i,n,r);case`Integer`:return yield*pn(a,i,n,r);case`Intersect`:return yield*mn(a,i,n,r);case`Iterator`:return yield*hn(a,i,n,r);case`Literal`:return yield*gn(a,i,n,r);case`Never`:return yield*_n(a,i,n,r);case`Not`:return yield*vn(a,i,n,r);case`Null`:return yield*yn(a,i,n,r);case`Number`:return yield*bn(a,i,n,r);case`Object`:return yield*xn(a,i,n,r);case`Promise`:return yield*Sn(a,i,n,r);case`Record`:return yield*Cn(a,i,n,r);case`Ref`:return yield*wn(a,i,n,r);case`RegExp`:return yield*Tn(a,i,n,r);case`String`:return yield*En(a,i,n,r);case`Symbol`:return yield*Dn(a,i,n,r);case`TemplateLiteral`:return yield*On(a,i,n,r);case`This`:return yield*kn(a,i,n,r);case`Tuple`:return yield*An(a,i,n,r);case`Undefined`:return yield*jn(a,i,n,r);case`Union`:return yield*Mn(a,i,n,r);case`Uint8Array`:return yield*Nn(a,i,n,r);case`Unknown`:return yield*Pn(a,i,n,r);case`Void`:return yield*Fn(a,i,n,r);default:if(!Dt(a[bt]))throw new $t(e);return yield*In(a,i,n,r)}}function Ln(...e){return new tn(e.length===3?J(e[0],e[1],``,e[2]):J(e[0],[],``,e[1]))}var Rn=(e,t)=>{let n=t.get(e);if(n)return n;let r=e.schema();return t.set(e,r),r},zn=e=>e.type===`optional`?zn(e.schema):e.type===`literal`?!0:e.type===`union`?e.schemas.length>0&&e.schemas.every(zn):!1,Bn=(e,t,n,r=new WeakMap)=>{if(fe(t)&&r.get(t)?.has(e))return 1;let i=fe(t);if(i){let n=r.get(t)??new Set;n.add(e),r.set(t,n)}try{if(e.type===`object`){if(!fe(t))return 0;let i=Object.keys(e.properties);return i.length===0?1:i.reduce((i,a)=>{if(!(a in t))return i;let o=e.properties[a],s=t[a],c=Bn(o,s,n,r);return zn(o)?i+(c>0?c*10:0):i+(c>0?c:1)},0)}return e.type===`array`?Array.isArray(t)?1:0:e.type===`record`?fe(t)?1:0:e.type===`optional`?t===void 0?1:Bn(e.schema,t,n,r):e.type===`union`?Math.max(...e.schemas.map(e=>Bn(e,t,n,r))):e.type===`intersection`?e.schemas.length===0?1:e.schemas.reduce((e,i)=>e+Bn(i,t,n,r),0):e.type===`lazy`?Bn(Rn(e,n),t,n,r):e.type===`evaluate`?Bn(e.schema,e.expression(t),n,r):oe(e,t)?1:0}finally{i&&r.get(t)?.delete(e)}},Vn=(e,t,n,r)=>{if(fe(e)||Array.isArray(e)){let i=r.get(e)||new Map;i.set(t,n),r.set(e,i)}},Hn=(e,t,n,r)=>{if((fe(t)||Array.isArray(t))&&n.get(t)?.has(e))return n.get(t)?.get(e);if(!e||e.type===`any`||e.type===`unknown`)return t;if(e.type===`function`)return typeof t==`function`?t:()=>void 0;if(e.type===`number`)return oe(e,t)?t:e.default??0;if(e.type===`string`)return oe(e,t)?t:e.default??``;if(e.type===`boolean`)return oe(e,t)?t:e.default??!1;if(e.type===`nullable`)return null;if(e.type===`notDefined`)return;if(e.type===`optional`)return t===void 0?void 0:Hn(e.schema,t,n,r);if(e.type===`array`){if(!Array.isArray(t))return[];let i=Array(t.length);Vn(t,e,i,n);for(let a=0;a<t.length;a++)i[a]=Hn(e.items,t[a],n,r);return i}if(e.type===`record`){if(!fe(t))return{};let i={};Vn(t,e,i,n);for(let a of Object.keys(t))i[a]=Hn(e.value,t[a],n,r);return i}if(e.type===`object`){let i=Object.keys(e.properties),a=fe(t)?t:null,o={};Vn(t,e,o,n);for(let t of i){let i=e.properties[t],s=a?.[t];i.type===`optional`&&s===void 0||(o[t]=Hn(i,s,n,r))}return o}if(e.type===`union`)return Hn(e.schemas.reduce((e,n)=>{let i=Bn(n,t,r);return i>e.score?{schema:n,score:i}:e},{schema:e.schemas[0],score:0}).schema,t,n,r);if(e.type===`intersection`)return e.schemas.reduce((e,i)=>Object.assign(e,Hn(i,t,n,r)),{});if(e.type===`literal`)return e.value;if(e.type===`lazy`)return Hn(Rn(e,r),t,n,r);if(e.type===`evaluate`)return Hn(e.schema,e.expression(t),n,r);let i=e;return console.warn(`Unknown schema type:`,i),t};const Un=(e,t,n=new WeakMap,r=new WeakMap)=>Hn(e,t,n,r);var Wn={key:0},Gn={key:1},Kn={key:2},qn={key:3},Jn={key:4},Yn={key:5},Xn=p({name:`ScalarIconArrowUp`,props:{label:{},weight:{}},setup(t){let{bind:n,weight:i}=ue(t);return(t,a)=>(e(),r(`svg`,_({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},f(n)),[g(t.$slots,`default`),f(i)===`bold`?(e(),r(`g`,Wn,[...a[0]||=[u(`path`,{d:`M208.49,120.49a12,12,0,0,1-17,0L140,69V216a12,12,0,0,1-24,0V69L64.49,120.49a12,12,0,0,1-17-17l72-72a12,12,0,0,1,17,0l72,72A12,12,0,0,1,208.49,120.49Z`},null,-1)]])):f(i)===`duotone`?(e(),r(`g`,Gn,[...a[1]||=[u(`path`,{d:`M200,112H56l72-72Z`,opacity:`0.2`},null,-1),u(`path`,{d:`M205.66,106.34l-72-72a8,8,0,0,0-11.32,0l-72,72A8,8,0,0,0,56,120h64v96a8,8,0,0,0,16,0V120h64a8,8,0,0,0,5.66-13.66ZM75.31,104,128,51.31,180.69,104Z`},null,-1)]])):f(i)===`fill`?(e(),r(`g`,Kn,[...a[2]||=[u(`path`,{d:`M207.39,115.06A8,8,0,0,1,200,120H136v96a8,8,0,0,1-16,0V120H56a8,8,0,0,1-5.66-13.66l72-72a8,8,0,0,1,11.32,0l72,72A8,8,0,0,1,207.39,115.06Z`},null,-1)]])):f(i)===`light`?(e(),r(`g`,qn,[...a[3]||=[u(`path`,{d:`M204.24,116.24a6,6,0,0,1-8.48,0L134,54.49V216a6,6,0,0,1-12,0V54.49L60.24,116.24a6,6,0,0,1-8.48-8.48l72-72a6,6,0,0,1,8.48,0l72,72A6,6,0,0,1,204.24,116.24Z`},null,-1)]])):f(i)===`regular`?(e(),r(`g`,Jn,[...a[4]||=[u(`path`,{d:`M205.66,117.66a8,8,0,0,1-11.32,0L136,59.31V216a8,8,0,0,1-16,0V59.31L61.66,117.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0l72,72A8,8,0,0,1,205.66,117.66Z`},null,-1)]])):f(i)===`thin`?(e(),r(`g`,Yn,[...a[5]||=[u(`path`,{d:`M202.83,114.83a4,4,0,0,1-5.66,0L132,49.66V216a4,4,0,0,1-8,0V49.66L58.83,114.83a4,4,0,0,1-5.66-5.66l72-72a4,4,0,0,1,5.66,0l72,72A4,4,0,0,1,202.83,114.83Z`},null,-1)]])):d(``,!0)],16))}}),Zn={key:0},Qn={key:1},$n={key:2},er={key:3},tr={key:4},nr={key:5},rr=p({name:`ScalarIconLockSimple`,props:{label:{},weight:{}},setup(t){let{bind:n,weight:i}=ue(t);return(t,a)=>(e(),r(`svg`,_({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},f(n)),[g(t.$slots,`default`),f(i)===`bold`?(e(),r(`g`,Zn,[...a[0]||=[u(`path`,{d:`M208,76H180V56A52,52,0,0,0,76,56V76H48A20,20,0,0,0,28,96V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V96A20,20,0,0,0,208,76ZM100,56a28,28,0,0,1,56,0V76H100ZM204,204H52V100H204Z`},null,-1)]])):f(i)===`duotone`?(e(),r(`g`,Qn,[...a[1]||=[u(`path`,{d:`M216,96V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8H208A8,8,0,0,1,216,96Z`,opacity:`0.2`},null,-1),u(`path`,{d:`M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Z`},null,-1)]])):f(i)===`fill`?(e(),r(`g`,$n,[...a[2]||=[u(`path`,{d:`M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96Z`},null,-1)]])):f(i)===`light`?(e(),r(`g`,er,[...a[3]||=[u(`path`,{d:`M208,82H174V56a46,46,0,0,0-92,0V82H48A14,14,0,0,0,34,96V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V96A14,14,0,0,0,208,82ZM94,56a34,34,0,0,1,68,0V82H94ZM210,208a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V96a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2Z`},null,-1)]])):f(i)===`regular`?(e(),r(`g`,tr,[...a[4]||=[u(`path`,{d:`M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Z`},null,-1)]])):f(i)===`thin`?(e(),r(`g`,nr,[...a[5]||=[u(`path`,{d:`M208,84H172V56a44,44,0,0,0-88,0V84H48A12,12,0,0,0,36,96V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V96A12,12,0,0,0,208,84ZM92,56a36,36,0,0,1,72,0V84H92ZM212,208a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V96a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Z`},null,-1)]])):d(``,!0)],16))}});const ir={SELECTED_CLIENT:`scalar-reference-selected-client-v2`,AUTH:`scalar-reference-auth`},ar=()=>typeof window>`u`?{getItem:()=>null,setItem:()=>null,removeItem:()=>null}:localStorage;var or={class:`flex items-center flex-1 relative`},sr={key:0,class:`select-none whitespace-nowrap text-transparent`},cr=[`aria-readonly`,`readonly`],lr={key:1,class:`absolute flex items-center inset-0 select-none overflow-hidden whitespace-nowrap`},ur={key:0,class:`text-c-2`},dr={class:`text-transparent`},fr={key:1,class:`text-c-2`},pr=p({inheritAttrs:!1,__name:`ScalarTextInput`,props:y({readonly:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:y([`click`],[`update:modelValue`]),setup(o,{emit:p}){let h=p,v=t(o,`modelValue`),y=m(),{stylingAttrsCx:ee,otherAttrs:b}=Pe();i(()=>{`autofocus`in b.value&&y.value?.focus()});function x(e){h(`click`,e),o.readonly?y.value?.select():y.value?.focus()}return(t,i)=>(e(),l(f(dt),_({is:`div`},f(ee)(`cursor-text text-c-1`,o.readonly?``:`focus-within:bg-b-1`),{onClick:x}),{default:a(()=>[u(`div`,or,[t.$slots.prefix?(e(),r(`div`,sr,[g(t.$slots,`prefix`)])):d(``,!0),s(u(`input`,_({ref_key:`input`,ref:y,"onUpdate:modelValue":i[0]||=e=>v.value=e,"aria-readonly":o.readonly||void 0,class:`z-1 min-w-0 flex-1 rounded-none border-none bg-transparent placeholder:font-[inherit] focus-within:outline-none`,readonly:o.readonly},f(b)),null,16,cr),[[n,v.value]]),t.$slots.prefix||t.$slots.suffix?(e(),r(`div`,lr,[t.$slots.prefix?(e(),r(`span`,ur,[g(t.$slots,`prefix`)])):d(``,!0),u(`span`,dr,c(v.value||t.$attrs.placeholder),1),t.$slots.suffix?(e(),r(`span`,fr,[g(t.$slots,`suffix`)])):d(``,!0)])):d(``,!0)]),g(t.$slots,`aside`)]),_:3},16))}}),mr=p({__name:`ScalarTextInputCopy`,props:y({duration:{default:1500},editable:{type:Boolean},immediate:{type:Boolean}},{modelValue:{},modelModifiers:{},copied:{type:Boolean,default:!1},copiedModifiers:{}}),emits:[`update:modelValue`,`update:copied`],setup(n){i(()=>{n.immediate&&r.value&&c(r.value)});let r=t(n,`modelValue`),s=t(n,`copied`),{copy:c,copied:u}=_t({legacy:!0,copiedDuring:n.duration});return b(u,e=>s.value=e),(t,i)=>(e(),l(pr,{modelValue:r.value,"onUpdate:modelValue":i[1]||=e=>r.value=e,readonly:!n.editable,onClick:i[2]||=e=>r.value&&f(c)(r.value)},{aside:a(()=>[ee(f(Ce),{class:`z-1`,copied:s.value||f(u),placement:`left`,onClick:i[0]||=o(e=>r.value&&f(c)(r.value),[`stop`])},h({backdrop:a(()=>[ee(f(Kt),{class:`bg-b-1.5`})]),_:2},[t.$slots.copy?{name:`copy`,fn:a(()=>[g(t.$slots,`copy`)]),key:`0`}:void 0,t.$slots.copied?{name:`copied`,fn:a(()=>[g(t.$slots,`copied`)]),key:`1`}:void 0]),1032,[`copied`])]),_:3},8,[`modelValue`,`readonly`]))}});W({name:j({typeComment:"Name of specification extension property. Has to start with `x-`."}),component:z({typeComment:`Vue component to render the specification extension`}),renderer:E(z({typeComment:`Custom renderer to render the specification extension`}))});var hr=W({component:z({typeComment:`Vue component to render in the view`}),renderer:E(z({typeComment:`Custom renderer to render the view component (e.g., ReactRenderer)`})),props:E(R(j(),H()),{typeComment:`Additional props to pass to the component`}),sidebar:E(W({show:V(),label:j()}),{typeComment:`Sidebar configuration. Set show: true to display in sidebar.`})});W({"content.start":E(w(hr),{typeComment:`Components to render before the Introduction/Info section`}),"content.end":E(w(hr),{typeComment:`Components to render at specific views in the API Reference`})}),W({onInit:E(N()),onConfigChange:E(N()),onDestroy:E(N())});const gr=N();var _r=W({dashboardUrl:j({default:`https://dashboard.scalar.com`}),registryUrl:j({default:`https://registry.scalar.com`}),proxyUrl:j({default:`https://proxy.scalar.com`}),apiBaseUrl:j({default:`https://api.scalar.com`})},{typeComment:`External service URLs used by Scalar packages`});const vr=W({title:E(j(),{typeComment:`The title of the OpenAPI document.`}),slug:E(j(),{typeComment:`The slug of the OpenAPI document used in the URL. If none is passed, the title will be used. If no title is used, it will just use the index.`}),authentication:E(H(),{typeComment:`Prefill authentication`}),baseServerURL:E(j(),{typeComment:`Base URL for the API server`}),hideClientButton:V({default:!1,typeComment:`Whether to hide the client button`}),proxyUrl:E(j(),{typeComment:`URL to a request proxy for the API client`}),oauth2RedirectUri:E(j(),{typeComment:`Default OAuth 2.0 redirect URI used to prefill auth flows in the API client.`}),searchHotKey:E(L([M(`a`),M(`b`),M(`c`),M(`d`),M(`e`),M(`f`),M(`g`),M(`h`),M(`i`),M(`j`),M(`k`),M(`l`),M(`m`),M(`n`),M(`o`),M(`p`),M(`q`),M(`r`),M(`s`),M(`t`),M(`u`),M(`v`),M(`w`),M(`x`),M(`y`),M(`z`)]),{typeComment:`Key used with CTRL/CMD to open the search modal (defaults to 'k' e.g. CMD+k)`}),servers:E(w(H()),{typeComment:`List of OpenAPI server objects`}),showSidebar:V({default:!0,typeComment:`Whether to show the sidebar`}),showDeveloperTools:L([M(`localhost`),M(`always`),M(`never`)],{typeComment:`Whether and when to show the developer tools.`}),showToolbar:L([M(`localhost`),M(`always`),M(`never`)],{typeComment:`@deprecated Use showDeveloperTools instead`}),operationTitleSource:L([M(`summary`),M(`path`)],{typeComment:`Whether to use the operation summary or the operation path for the sidebar and search`}),theme:L([M(`default`),M(`alternate`),M(`moon`),M(`purple`),M(`solarized`),M(`bluePlanet`),M(`deepSpace`),M(`saturn`),M(`kepler`),M(`elysiajs`),M(`fastify`),M(`mars`),M(`laserwave`),M(`none`)],{typeComment:`A string to use one of the color presets`}),_integration:E(L([M(`adonisjs`),M(`astro`),M(`docusaurus`),M(`dotnet`),M(`elysiajs`),M(`express`),M(`fastapi`),M(`fastify`),M(`go`),M(`hono`),M(`html`),M(`laravel`),M(`litestar`),M(`nestjs`),M(`nextjs`),M(`nitro`),M(`nuxt`),M(`platformatic`),M(`react`),M(`rust`),M(`svelte`),M(`vue`),he()]),{typeComment:`Integration type identifier`}),onRequestSent:E(N(),{typeComment:`onRequestSent is fired when a request is sent`}),persistAuth:V({default:!1,typeComment:`Whether to persist auth to local storage`}),telemetry:V({default:!0,typeComment:`Enables / disables telemetry`}),externalUrls:_r});var yr=L([j(),he(),R(j(),H()),N()]);const br=P([vr,W({default:V({default:!1}),url:E(j(),{typeComment:`URL to an OpenAPI/Swagger document`}),content:E(yr,{typeComment:`Directly embed the OpenAPI document. Can be a string, object, function returning an object, or null. It is recommended to pass a URL instead of content.`}),title:E(j(),{typeComment:"The title of the OpenAPI document. Used for the page title and the document name in the dropdown. With multiple `sources`, set this per source."}),slug:E(j(),{typeComment:"The slug of the OpenAPI document used in the URL. If none is passed, the title will be used. With multiple `sources`, set this per source."}),spec:E(W({url:E(j()),content:E(yr)}),{typeComment:"@deprecated Use `url` and `content` on the top level instead."}),agent:E(W({key:E(j()),disabled:E(V()),hideAddApi:E(V(),{typeComment:`When true, hide the control to add more APIs in the agent chat. Only preloaded/registry documents are shown; the public API list is not offered.`})}),{typeComment:`Agent Scalar configuration`})}),W({layout:L([M(`modern`),M(`classic`)],{typeComment:`The layout to use for the references`}),proxy:E(j(),{typeComment:`@deprecated Use proxyUrl instead`}),fetch:E(N(),{typeComment:"@deprecated Use `customFetch` instead."}),customFetch:E(N(),{typeComment:"Custom fetch function used both when loading the OpenAPI document and when sending requests from the API client. Can be used to add custom headers, attach credentials (for example `credentials: 'include'`), handle auth, etc."}),plugins:E(w(gr),{typeComment:`Plugins for the API reference`}),isEditable:V({default:!1,typeComment:`Allows the user to inject an editor for the spec`}),hideModels:V({default:!1,typeComment:`Whether to show models in the sidebar, search, and content.`}),modelsSectionLabel:E(L([M(`Models`),M(`Schemas`),j()]),{typeComment:"Label for the components.schemas section in the sidebar, content, and search. Use `Schemas` for OpenAPI terminology."}),localization:E(W({locale:E(j()),direction:E(L([M(`auto`),M(`ltr`),M(`rtl`)])),translations:E(R(j(),H()))}),{typeComment:`API Reference UI localization. Select a built-in locale, override labels, and control LTR/RTL rendering.`}),documentDownloadType:L([M(`both`),M(`yaml`),M(`json`),M(`direct`),M(`none`)],{typeComment:"Sets the file type of the document to download, set to `none` to hide the download button"}),hideDownloadButton:E(V(),{typeComment:"@deprecated Use `documentDownloadType: 'none'` instead"}),hideTestRequestButton:V({default:!1,typeComment:`Whether to show the "Test Request" button`}),hideSearch:V({default:!1,typeComment:`Whether to show the sidebar search bar`}),showOperationId:V({default:!1,typeComment:`Whether to show the operationId`}),darkMode:E(V(),{typeComment:`Whether dark mode is on or off initially (light mode)`}),forceDarkModeState:E(L([M(`dark`),M(`light`)]),{typeComment:`forceDarkModeState makes it always this state no matter what`}),hideDarkModeToggle:V({default:!1,typeComment:`Whether to show the dark mode toggle`}),metaData:E(H(),{typeComment:`If used, passed data will be added to the HTML header. @see https://unhead.unjs.io/usage/composables/use-seo-meta`}),favicon:E(j(),{typeComment:`Path to a favicon image`}),hiddenClients:E(L([R(j(),L([V(),w(j())])),w(j()),M(!0)]),{typeComment:"List of httpsnippet clients to hide from the clients menu. By default hides Unirest, pass `[]` to show all clients"}),defaultHttpClient:E(W({targetKey:j(),clientKey:j()}),{typeComment:`Determine the HTTP client that is selected by default`}),customCss:E(j(),{typeComment:`Custom CSS to be added to the page`}),onServerChange:E(N(),{typeComment:`onServerChange is fired on selected server change`}),onDocumentSelect:E(N(),{typeComment:`onDocumentSelect is fired when the config is selected`}),onLoaded:E(N(),{typeComment:`Callback fired when the reference is fully loaded`}),onBeforeRequest:E(N(),{typeComment:`Fired before the outbound request is built; callback receives a mutable request builder. Experimental API.`}),onRequestBuilt:E(N(),{typeComment:`Fired right before the outbound request is sent; callback receives the exact fetch Request that goes over the wire. Experimental API.`}),onShowMore:E(N(),{typeComment:`onShowMore is fired when the user clicks the "Show more" button on the references`}),onSidebarClick:E(N(),{typeComment:`onSidebarClick is fired when the user clicks on a sidebar item`}),pathRouting:E(W({basePath:j()}),{typeComment:`Route using paths instead of hashes, your server MUST support this. @experimental`}),mcp:E(W({name:E(j(),{typeComment:`Display name for the MCP server`}),url:E(j(),{typeComment:`URL of the MCP server`}),disabled:E(V(),{typeComment:`When true, disables the MCP integration`})}),{typeComment:`MCP (Model Context Protocol) configuration. When provided, enables MCP integration with the given name and url.`}),generateHeadingSlug:E(N(),{typeComment:`Customize the heading portion of the hash`}),generateModelSlug:E(N(),{typeComment:`Customize the model portion of the hash`}),generateTagSlug:E(N(),{typeComment:`Customize the tag portion of the hash`}),generateOperationSlug:E(N(),{typeComment:`Customize the operation portion of the hash`}),generateWebhookSlug:E(N(),{typeComment:`Customize the webhook portion of the hash`}),setPageTitle:E(N(),{typeComment:`Customize the browser tab title for the section currently in view`}),redirect:E(N(),{typeComment:`To handle redirects, pass a function that receives the current path/hash and passes that to history.replaceState`}),withDefaultFonts:V({default:!0,typeComment:`Whether to include default fonts`}),defaultOpenFirstTag:V({default:!0,typeComment:`Whether to expand the first tag in the sidebar when no specific URL target is present`}),defaultOpenAllTags:V({default:!1,typeComment:`Whether to expand all tags by default. Warning: this can cause performance issues on big documents`}),expandAllModelSections:V({default:!1,typeComment:`Whether to expand all models by default. Warning: this can cause performance issues on big documents`}),expandAllResponses:V({default:!1,typeComment:`Whether to expand all responses by default. Warning: this can cause performance issues on big documents`}),expandAllSchemaProperties:V({default:!1,typeComment:`Whether to expand all nested schema properties by default. The Show/Hide Child Attributes toggle remains available so nested sections can still be collapsed manually. Warning: this can cause performance issues on big documents`}),tagsSorter:E(L([M(`alpha`),N()]),{typeComment:`Function to sort tags`}),operationsSorter:E(L([M(`alpha`),M(`method`),N()]),{typeComment:`Function to sort operations`}),orderSchemaPropertiesBy:L([M(`alpha`),M(`preserve`)],{typeComment:`Order the schema properties by`}),orderRequiredPropertiesFirst:V({default:!0,typeComment:`Sort the schema properties by required ones first`})})]);var xr=`https://api.scalar.com/request-proxy`,Sr=`https://proxy.scalar.com`;const Cr=e=>{let t=Un(br,e);return t.hideDownloadButton&&(console.warn(`[DEPRECATED] You're using the deprecated 'hideDownloadButton' attribute. Use 'documentDownloadType: 'none'' instead.`),t.documentDownloadType=`none`),t.spec?.url&&(console.warn(`[DEPRECATED] You're using the deprecated 'spec.url' attribute. Remove the spec prefix and move the 'url' attribute to the top level.`),t.url=t.spec.url,delete t.spec),t.spec?.content&&(console.warn(`[DEPRECATED] You're using the deprecated 'spec.content' attribute. Remove the spec prefix and move the 'content' attribute to the top level.`),t.content=t.spec.content,delete t.spec),t.proxy&&(console.warn(`[DEPRECATED] You're using the deprecated 'proxy' attribute. Use 'proxyUrl' instead.`),t.proxyUrl||=t.proxy,delete t.proxy),t.fetch&&(console.warn(`[DEPRECATED] You're using the deprecated 'fetch' attribute. Use 'customFetch' instead.`),t.customFetch||=t.fetch,delete t.fetch),t.proxyUrl===xr&&(console.warn(`[DEPRECATED] Warning: configuration.proxyUrl points to our old proxy (${xr}).`),console.warn(`[DEPRECATED] We are overwriting the value and use the new proxy URL (${Sr}) instead.`),console.warn(`[DEPRECATED] Action Required: You should manually update your configuration to use the new URL (${Sr}). Read more: https://github.com/scalar/scalar`),t.proxyUrl=Sr),t.showToolbar&&t.showToolbar!==`localhost`&&(console.warn(`[DEPRECATED] You're using the deprecated 'showToolbar' attribute. Use 'showDeveloperTools' instead.`),t.showDeveloperTools=t.showToolbar,delete t.showToolbar),t.modelsSectionLabel??=me,t};W({cdn:j({default:`https://cdn.jsdelivr.net/npm/@scalar/api-reference`}),pageTitle:j({default:`Scalar API Reference`}),nonce:E(j())});const wr=(e,t)=>{let n=performance.now(),r=t(),i=performance.now(),a=Math.round(i-n);return console.info(`${e}: ${a} ms`),r},Tr=async(e,t)=>{let n=performance.now(),r=await t(),i=performance.now(),a=Math.round(i-n);return console.info(`${e}: ${a} ms`),r};function Er(e){try{let t=new URL(e);return t.protocol===`http:`||t.protocol===`https:`}catch{return!1}}function Dr(e){if(!/^\s*(\{)/.test(e.slice(0,500)))return!1;try{return T(JSON.parse(e))}catch{return!1}}function Or(e){return/^\s*(?:-\s*)?[\w\-]+\s*:\s*.+\n.*/.test(e)}function kr(e){return!Er(e)&&!Or(e)&&!Dr(e)}var Ar=()=>{var e=(()=>{var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,i=(t,n)=>{for(var r in n)e(t,r,{get:n[r],enumerable:!0})},a=(i,a,o,s)=>{if(a&&typeof a==`object`||typeof a==`function`)for(let c of n(a))!r.call(i,c)&&c!==o&&e(i,c,{get:()=>a[c],enumerable:!(s=t(a,c))||s.enumerable});return i},o=t=>a(e({},`__esModule`,{value:!0}),t),s={};i(s,{default:()=>je});var c=e=>Array.isArray(e),l=e=>typeof e==`function`,u=e=>e.length===0,d=e=>typeof e==`number`,f=e=>typeof e==`object`&&!!e,p=e=>e instanceof RegExp,m=e=>typeof e==`string`,h=e=>e===void 0,g=e=>{let t=new Map;return n=>{let r=t.get(n);if(r)return r;let i=e(n);return t.set(n,i),i}},_=(e,t,n={})=>{let r={cache:{},input:e,index:0,indexMax:0,options:n,output:[]};if(O(t)(r)&&r.index===e.length)return r.output;throw Error(`Failed to parse at index ${r.indexMax}`)},v=(e,t)=>c(e)?y(e,t):m(e)?b(e,t):ee(e,t),y=(e,t)=>{let n={};for(let t of e){if(t.length!==1)throw Error(`Invalid character: "${t}"`);let e=t.charCodeAt(0);n[e]=!0}return e=>{let r=e.index,i=e.input;for(;e.index<i.length&&i.charCodeAt(e.index)in n;)e.index+=1;let a=e.index;if(a>r){if(!h(t)&&!e.options.silent){let n=e.input.slice(r,a),o=l(t)?t(n,i,String(r)):t;h(o)||e.output.push(o)}e.indexMax=Math.max(e.indexMax,e.index)}return!0}},ee=(e,t)=>{let n=e.source,r=e.flags.replace(/y|$/,`y`),i=new RegExp(n,r);return D(e=>{i.lastIndex=e.index;let n=i.exec(e.input);if(n){if(!h(t)&&!e.options.silent){let r=l(t)?t(...n,e.input,String(e.index)):t;h(r)||e.output.push(r)}return e.index+=n[0].length,e.indexMax=Math.max(e.indexMax,e.index),!0}else return!1})},b=(e,t)=>n=>{if(n.input.startsWith(e,n.index)){if(!h(t)&&!n.options.silent){let r=l(t)?t(e,n.input,String(n.index)):t;h(r)||n.output.push(r)}return n.index+=e.length,n.indexMax=Math.max(n.indexMax,n.index),!0}else return!1},x=(e,t,n,r)=>{let i=O(e);return D(te(E(e=>{let r=0;for(;r<n;){let t=e.index;if(!i(e)||(r+=1,e.index===t))break}return r>=t})))},S=(e,t)=>x(e,0,1),C=(e,t)=>x(e,0,1/0),w=(e,t)=>{let n=e.map(O);return D(te(E(e=>{for(let t=0,r=n.length;t<r;t++)if(!n[t](e))return!1;return!0})))},T=(e,t)=>{let n=e.map(O);return D(te(e=>{for(let t=0,r=n.length;t<r;t++)if(n[t](e))return!0;return!1}))},E=(e,t=!1)=>{let n=O(e);return e=>{let r=e.index,i=e.output.length,a=n(e);return(!a||t)&&(e.index=r,e.output.length!==i&&(e.output.length=i)),a}},te=(e,t)=>O(e),D=(()=>{let e=0;return t=>{let n=O(t),r=e+=1;return e=>{var t;if(e.options.memoization===!1)return n(e);let i=e.index,a=(t=e.cache)[r]||(t[r]=new Map),o=a.get(i);if(o===!1)return!1;if(d(o))return e.index=o,!0;if(o)return e.index=o.index,o.output?.length&&e.output.push(...o.output),!0;{let t=e.output.length;if(n(e)){let n=e.index,r=e.output.length;if(r>t){let o=e.output.slice(t,r);a.set(i,{index:n,output:o})}else a.set(i,n);return!0}else return a.set(i,!1),!1}}}})(),ne=e=>{let t;return n=>(t||=O(e()),t(n))},O=g(e=>{if(l(e))return u(e)?ne(e):e;if(m(e)||p(e))return v(e);if(c(e))return w(e);if(f(e))return T(Object.values(e));throw Error(`Invalid rule`)}),k=`abcdefghijklmnopqrstuvwxyz`,re=e=>{let t=``;for(;e>0;)t=k[(e-1)%26]+t,e=Math.floor((e-1)/26);return t},ie=e=>{let t=0;for(let n=0,r=e.length;n<r;n++)t=t*26+k.indexOf(e[n])+1;return t},ae=(e,t)=>{if(t<e)return ae(t,e);let n=[];for(;e<=t;)n.push(e++);return n},A=(e,t,n)=>ae(e,t).map(e=>String(e).padStart(n,`0`)),oe=(e,t)=>ae(ie(e),ie(t)).map(re),se=e=>e,j=e=>ce(t=>_(t,e,{memoization:!1}).join(``)),ce=e=>{let t={};return n=>t[n]??(t[n]=e(n))},M=v(/^\*\*\/\*$/,`.*`),le=v(/^\*\*\/(\*)?([ a-zA-Z0-9._-]+)$/,(e,t,n)=>`.*${t?``:`(?:^|/)`}${n.replaceAll(`.`,`\\.`)}`),ue=v(/^\*\*\/(\*)?([ a-zA-Z0-9._-]*)\{([ a-zA-Z0-9._-]+(?:,[ a-zA-Z0-9._-]+)*)\}$/,(e,t,n,r)=>`.*${t?``:`(?:^|/)`}${n.replaceAll(`.`,`\\.`)}(?:${r.replaceAll(`,`,`|`).replaceAll(`.`,`\\.`)})`),de=v(/\\./,se),fe=v(/[$.*+?^(){}[\]\|]/,e=>`\\${e}`),pe=v(/./,se),me=T([v(/^(?:!!)*!(.*)$/,(e,t)=>`(?!^${Oe(t)}$).*?`),v(/^(!!)+/,``)]),he=T([v(/\/(\*\*\/)+/,`(?:/.+/|/)`),v(/^(\*\*\/)+/,`(?:^|.*/)`),v(/\/(\*\*)$/,`(?:/.*|$)`),v(/\*\*/,`.*`)]),ge=T([v(/\*\/(?!\*\*\/)/,`[^/]*/`),v(/\*/,`[^/]*`)]),_e=v(`?`,`[^/]`),ve=v(`[`,se),N=v(`]`,se),ye=v(/[!^]/,`^/`),be=v(/[a-z]-[a-z]|[0-9]-[0-9]/i,se),xe=T([de,v(/[$.*+?^(){}[\|]/,e=>`\\${e}`),be,v(/[^\]]/,se)]),P=w([ve,S(ye),C(xe),N]),F=v(`{`,`(?:`),Se=v(`}`,`)`),Ce=w([F,T([v(/(\d+)\.\.(\d+)/,(e,t,n)=>A(+t,+n,Math.min(t.length,n.length)).join(`|`)),v(/([a-z]+)\.\.([a-z]+)/,(e,t,n)=>oe(t,n).join(`|`)),v(/([A-Z]+)\.\.([A-Z]+)/,(e,t,n)=>oe(t.toLowerCase(),n.toLowerCase()).join(`|`).toUpperCase())]),Se]),I=v(`{`,`(?:`),we=v(`}`,`)`),Te=v(`,`,`|`),Ee=v(/[$.*+?^(){[\]\|]/,e=>`\\${e}`),De=v(/[^}]/,se),L=w([I,C(T([he,ge,_e,P,Ce,ne(()=>L),de,Ee,Te,De])),we]),Oe=j(C(T([M,le,ue,me,he,ge,_e,P,Ce,L,de,fe,pe]))),R=v(/\\./,se),ke=v(/./,se),z=j(C(T([R,v(/\*\*\*+/,`*`),v(/([^/{[(!])\*\*/,(e,t)=>`${t}*`),v(/(^|.)\*\*(?=[^*/)\]}])/,(e,t)=>`${t}*`),ke]))),Ae=(e,t)=>{let n=Array.isArray(e)?e:[e];if(!n.length)return!1;let r=n.map(Ae.compile),i=n.every(e=>/(\/(?:\*\*)?|\[\/\])$/.test(e)),a=t.replace(/[\\\/]+/g,`/`).replace(/\/$/,i?`/`:``);return r.some(e=>e.test(a))};Ae.compile=e=>RegExp(`^${Oe(z(e))}$`,`s`);var je=Ae;return o(s)})();return e.default||e},jr,Mr=(e,t)=>(jr||(jr=Ar(),Ar=null),jr(e,t)),Nr=/^[A-Za-z]:\//;function Pr(e=``){return e&&e.replace(/\\/g,`/`).replace(Nr,e=>e.toUpperCase())}var Fr=/^[/\\]{2}/,Ir=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,Lr=/^[A-Za-z]:$/,Rr=/^\/([A-Za-z]:)?$/,zr=/.(\.[^./]+|\.)$/,Br=/^[/\\]|^[a-zA-Z]:[/\\]/,Vr=function(e){if(e.length===0)return`.`;e=Pr(e);let t=e.match(Fr),n=Kr(e),r=e[e.length-1]===`/`;return e=Gr(e,!n),e.length===0?n?`/`:r?`./`:`.`:(r&&(e+=`/`),Lr.test(e)&&(e+=`/`),t?n?`//${e}`:`//./${e}`:n&&!Kr(e)?`/${e}`:e)},Hr=function(...e){let t=``;for(let n of e)if(n)if(t.length>0){let e=t[t.length-1]===`/`,r=n[0]===`/`;e&&r?t+=n.slice(1):t+=e||r?n:`/${n}`}else t+=n;return Vr(t)};function Ur(){return typeof process<`u`&&typeof process.cwd==`function`?process.cwd().replace(/\\/g,`/`):`/`}var Wr=function(...e){e=e.map(e=>Pr(e));let t=``,n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:Ur();!i||i.length===0||(t=`${i}/${t}`,n=Kr(i))}return t=Gr(t,!n),n&&!Kr(t)?`/${t}`:t.length>0?t:`.`};function Gr(e,t){let n=``,r=0,i=-1,a=0,o=null;for(let s=0;s<=e.length;++s){if(s<e.length)o=e[s];else if(o===`/`)break;else o=`/`;if(o===`/`){if(!(i===s-1||a===1))if(a===2){if(n.length<2||r!==2||n[n.length-1]!==`.`||n[n.length-2]!==`.`){if(n.length>2){let e=n.lastIndexOf(`/`);e===-1?(n=``,r=0):(n=n.slice(0,e),r=n.length-1-n.lastIndexOf(`/`)),i=s,a=0;continue}else if(n.length>0){n=``,r=0,i=s,a=0;continue}}t&&(n+=n.length>0?`/..`:`..`,r=2)}else n.length>0?n+=`/${e.slice(i+1,s)}`:n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===`.`&&a!==-1?++a:a=-1}return n}var Kr=function(e){return Ir.test(e)},qr=function(e){return Pr(e)},Jr=function(e){if(e===`..`)return``;let t=zr.exec(Pr(e));return t&&t[1]||``},Yr=function(e,t){let n=Wr(e).replace(Rr,`$1`).split(`/`),r=Wr(t).replace(Rr,`$1`).split(`/`);if(r[0][1]===`:`&&n[0][1]===`:`&&n[0]!==r[0])return r.join(`/`);let i=[...n];for(let e of i){if(r[0]!==e)break;n.shift(),r.shift()}return[...n.map(()=>`..`),...r].join(`/`)},Xr=function(e){let t=Pr(e).replace(/\/$/,``).split(`/`).slice(0,-1);return t.length===1&&Lr.test(t[0])&&(t[0]+=`/`),t.join(`/`)||(Kr(e)?`/`:`.`)},Zr=function(e){let t=e.ext?e.ext.startsWith(`.`)?e.ext:`.${e.ext}`:``,n=[e.root,e.dir,e.base??(e.name??``)+t].filter(Boolean);return Pr(e.root?Wr(...n):n.join(`/`))},Qr=function(e,t){let n=Pr(e).split(`/`),r=``;for(let e=n.length-1;e>=0;e--){let t=n[e];if(t){r=t;break}}return t&&r.endsWith(t)?r.slice(0,-t.length):r},$r={__proto__:null,basename:Qr,dirname:Xr,extname:Jr,format:Zr,isAbsolute:Kr,join:Hr,matchesGlob:(e,t)=>Mr(t,Vr(e)),normalize:Vr,normalizeString:Gr,parse:function(e){let t=Br.exec(e)?.[0]?.replace(/\\/g,`/`)||``,n=Qr(e),r=Jr(n);return{root:t,dir:Xr(e),base:n,ext:r,name:n.slice(0,n.length-r.length)}},relative:Yr,resolve:Wr,sep:`/`,toNamespacedPath:qr},ei=(()=>globalThis.process?.platform===`win32`?`;`:`:`)(),ti={posix:void 0,win32:void 0},ni=(e=ei)=>new Proxy($r,{get(t,n){return n===`delimiter`?e:n===`posix`?Y:n===`win32`?ri:ti[n]||$r[n]}}),Y=ni(`:`),ri=ni(`;`);const ii=(e,t)=>{if(Er(t))return t;if(Er(e)){let n=new URL(e);return n.pathname=Y.posix.resolve(`/`,Y.dirname(n.pathname),t),n.toString()}return Y.resolve(Y.dirname(e),t)};function ai(e){return decodeURI(e.replace(/~1/g,`/`).replace(/~0/g,`~`))}function oi(e){return e.split(`/`).slice(1).map(ai)}function si(e,t,n){if(t===``)throw Error(`Cannot set value at root ('') pointer`);let r=oi(t);r.forEach(e=>Ke(e));let i=e;for(let e=0;e<r.length;e++){let t=r[e],a=e===r.length-1,o=r[e+1],s=/^\d+$/.test(o??``);a?i[t]=n:((!(t in i)||typeof i[t]!=`object`)&&(i[t]=s?[]:{}),i=i[t])}}const ci=(e,t)=>{if(Er(e)&&Er(t)){let n=new URL(e),r=new URL(t);if(n.origin!==r.origin)return e;let i=Y.dirname(Y.posix.resolve(`/`,r.pathname)),a=Y.posix.resolve(`/`,n.pathname);return Y.posix.relative(i,a)}if(Er(t)){let n=new URL(t),r=Y.dirname(Y.posix.resolve(`/`,n.pathname));return n.pathname=Y.posix.relative(r,Y.posix.resolve(`/`,e)),n.toString()}if(Er(e))return e;let n=Y.dirname(Y.resolve(t)),r=Y.resolve(e);return Y.relative(n,r)};function li(e){let t=Le(e).substring(0,7);return t.match(/^\d+$/)?`a`+t.substring(1):t}async function ui(e,t,n,r,i=0){if(i>=100)throw`Can not generate unique compressed values`;let a=await e(r??t);return n[a]!==void 0&&n[a]!==t?ui(e,t,n,a,i+1):(n[a]=t,a)}const di=(e,t)=>{let n=Object.fromEntries(Object.entries(t).map(([e,t])=>[t,e]));return{generate:async r=>{let i=n[r];if(i)return i;let a=await ui(e,r,t),o=a.match(/^\d+$/)?`a${a}`:a;return n[r]=o,o}}};var fi=e=>T(e)&&`$ref`in e&&typeof e.$ref==`string`;function pi(e){return e.startsWith(`#`)}function mi(e,t){let n=t.find(t=>t.validate(e));return n?n.exec(e):Promise.resolve({ok:!1})}function hi(e,t){if(!pi(e))throw`Please provide an internal ref`;return`#/${t.map(Bt).join(`/`)}${e.substring(1)}`}function gi(e,t){if(Array.isArray(e)){e.forEach(e=>gi(e,t));return}if(T(e)&&(Object.values(e).forEach(e=>gi(e,t)),typeof e==`object`&&`$ref`in e&&typeof e.$ref==`string`)){let n=e.$ref;if(!pi(n))return;e.$ref=hi(n,t)}}const _i=(e,t,n,r,i,a=!1,o=new Set)=>{let s=ge(t,oi(n)).value;if(o.has(s))return;o.add(s),si(e,n,s);let c=n=>{if(!(!n||typeof n!=`object`)){`$ref`in n&&typeof n.$ref==`string`&&(n.$ref.startsWith(`#/${r}/${Bt(i)}`)||a)&&_i(e,t,n.$ref.substring(1),r,i,a,o);for(let e of Object.values(n))c(e)}};c(s)},vi={externalDocuments:`x-ext`,externalDocumentsMappings:`x-ext-urls`};async function yi(e,t){t.externalDocumentsKey=t.externalDocumentsKey??vi.externalDocuments,t.externalDocumentsMappingsKey=t.externalDocumentsMappingsKey??vi.externalDocumentsMappings;let n=t.cache??new Map,r=t.plugins.filter(e=>e.type===`loader`),i=t.plugins.filter(e=>e.type===`lifecycle`),a=await(async()=>{if(typeof e!=`string`)return e;let t=await mi(e,r);if(t.ok&&typeof t.data==`object`)return t.data;throw Error(`Failed to resolve input: Please provide a valid string value or pass a loader to process the input`)})(),o=t.root??a,s=xe(o),c=t.root!==void 0&&t.root!==a||t.depth!==void 0,l=t.visitedNodes??new Set,u=(()=>ve(o)||(t.origin?t.origin:typeof e==`string`&&(Er(e)||kr(e))?e:`/`))();o[t.externalDocumentsMappingsKey]===void 0&&(o[t.externalDocumentsMappingsKey]={});let{generate:d}=di(t.compress??li,o[t.externalDocumentsMappingsKey]),f=async(e,...n)=>{let r=t.hooks?.[e];r&&await r(...n);for(let t of i){let r=t[e];r&&await r(...n)}},p=async(e,i=u,a=!1,m=0,h=[],g=null)=>{if(t.depth!==void 0&&m>t.depth||!T(e)&&!Array.isArray(e)||l.has(e))return;l.add(e);let _={path:h,resolutionCache:n,parentNode:g,rootNode:o,loaders:r};await f(`onBeforeNodeProcess`,e,_);let v=ve(e);if(fi(e)){let l=e.$ref,h=`$global`in e&&typeof e.$global==`boolean`&&e.$global,g=ae(l,v??i,s);if(g!==void 0){if(c){let e=oi(`/${g}`),t=e.length>0?ge(o,e.slice(0,-1)).value:void 0,n=ge(o,e);await p(n.value,n.context,a,m+1,e,t)}await f(`onAfterNodeProcess`,e,_);return}let[y,ee=``]=l.split(`#`,2),b=ii(v??i,y),x=ci(b,u),S=await d(x),C=n.has(x);C||n.set(x,mi(b,r)),await f(`onResolveStart`,e);let w=await n.get(x);if(w.ok){C||(h||gi(w.data,[vi.externalDocuments,S]),await p(w.data,h?i:b,h,m+1,[t.externalDocumentsKey,S,o[t.externalDocumentsMappingsKey]]),si(o,`/${t.externalDocumentsMappingsKey}/${Bt(S)}`,x)),t.treeShake===!0?_i(o,{[t.externalDocumentsKey]:{[S]:w.data}},hi(`#${ee}`,[t.externalDocumentsKey,S]).substring(1),t.externalDocumentsKey,S):C||si(o,`/${t.externalDocumentsKey}/${S}`,w.data),e.$ref=hi(`#${ee}`,[t.externalDocumentsKey,S]),await f(`onResolveSuccess`,e),await f(`onAfterNodeProcess`,e,_);return}return await f(`onResolveError`,e),await f(`onAfterNodeProcess`,e,_),console.warn(`Failed to resolve external reference "${b}". The reference may be invalid, inaccessible, or missing a loader for this type of reference.`)}for(let n in e)n===t.externalDocumentsKey||n===t.externalDocumentsMappingsKey||await p(e[n],v??i,a,m+1,[...h,n],e);await f(`onAfterNodeProcess`,e,_)};return await p(a),!t.urlMap&&!c&&delete o[t.externalDocumentsMappingsKey],a}var bi=class{data;next;constructor(e){this.data=e,this.next=null}},xi=class{front;rear;size;constructor(){this.front=null,this.rear=null,this.size=0}enqueue(e){let t=new bi(e);this.isEmpty()||!this.rear?(this.front=t,this.rear=t):(this.rear.next=t,this.rear=t),this.size++}dequeue(){if(this.isEmpty()||!this.front)return null;let e=this.front;return this.front=this.front.next,this.front===null&&(this.rear=null),this.size--,e.data}peek(){return this.isEmpty()||!this.front?null:this.front.data}isEmpty(){return this.size===0}getSize(){return this.size}toString(){let e=this.front,t=[];for(;e;)t.push(e.data),e=e.next;return t.join(` -> `)}};function Si(e){let t=0,n=new xi,r=()=>{if(n.isEmpty()||t>=e)return;let r=n.dequeue();r&&r()};return async i=>{t>=e&&await new Promise(e=>n.enqueue(e)),t++;try{return await i()}finally{t--,r()}}}var Ci=e=>e.startsWith(``)?e.slice(1):e;function wi(e){if(e!==null){if(typeof e==`string`){let t=Ci(e);if(t.trim()===``)return;try{return JSON.parse(t)}catch{let e=/^[^:]+:/.test(t),n=t.slice(0,50).trimStart(),r=n.startsWith(`{`)||n.startsWith(`[`);return!e||r?void 0:Jt(t,{maxAliasCount:1e4,merge:!0})}}return e}}var Ti=e=>{try{return new URL(e).host}catch{return null}};async function Ei(e,t,n){try{let r=Ti(e),i=n?.headers?.find(e=>e.domains.find(e=>e===r)!==void 0)?.headers,a=n?.fetch??fetch,o=await t(()=>a(e,{headers:i}));if(o.ok){let e=await o.text();return{ok:!0,data:wi(e),raw:e}}let s=o.headers.get(`Content-Type`)??``;return[`text/html`,`application/xml`].includes(s)&&console.warn(`[WARN] We only support JSON/YAML formats, received ${s}`),console.warn(`[WARN] Fetch failed with status ${o.status} ${o.statusText} for URL: ${e}`),{ok:!1}}catch{return console.warn(`[WARN] Failed to parse JSON/YAML from URL: ${e}`),{ok:!1}}}function Di(e){let t=e?.limit?Si(e.limit):e=>e();return{type:`loader`,validate:Er,exec:n=>Ei(n,t,e)}}var Oi=class extends Error{constructor(e){super(e),this.name=`InvalidChangesDetectedError`}};const ki=(e,t)=>{let n=(e,t,r,i=0)=>{if(t[i]===void 0)throw new Oi(`Process aborted. Path ${t.join(`.`)} at depth ${i} is undefined, check diff object`);if(i>=t.length-1){r.type===`add`||r.type===`update`?e[t[i]]=r.changes:Array.isArray(e)?e.splice(Number.parseInt(t[i]),1):delete e[t[i]];return}if(e[t[i]]===void 0||typeof e[t[i]]!=`object`)throw new Oi(`Process aborted, check diff object`);n(e[t[i]],t,r,i+1)};for(let r of t)n(e,r.path,r);return e},Ai=(e,t)=>{let n=[],r=(e,t,i=[])=>{if(typeof e!=typeof t){if(e===void 0){n.push({path:i,changes:t,type:`add`});return}if(t===void 0){n.push({path:i,changes:e,type:`delete`});return}n.push({path:i,changes:t,type:`update`});return}if(typeof e==`object`&&typeof t==`object`&&e!==null&&t!==null){let n=new Set([...Object.keys(e),...Object.keys(t)]);for(let a of n)r(e[a],t[a],[...i,a]);return}e!==t&&n.push({path:i,changes:t,type:`update`})};return r(e,t),n};var ji=class{value;children;constructor(e,t){this.value=e,this.children=t}},Mi=class{root;constructor(){this.root=new ji(null,{})}addPath(e,t){let n=this.root;for(let t of e)n.children[t]||(n.children[t]=new ji(null,{})),n=n.children[t];n.value=t}findMatch(e,t){let n=this.root;for(let r of e){n.value!==null&&t(n.value);let e=n.children[r];if(!e)return;n=e}let r=e=>{for(let t of Object.keys(e?.children??{}))e&&Object.hasOwn(e.children,t)&&r(e?.children[t]);e?.value&&t(e.value)};r(n)}};const Ni=(e,t)=>{if(typeof e!=typeof t)return!0;if(typeof e==`object`&&typeof t==`object`&&e!==null&&t!==null){let n=new Set([...Object.keys(e),...Object.keys(t)]);for(let r of n)if(e[r]!==void 0&&t[r]!==void 0&&Ni(e[r],t[r]))return!0;return!1}return e!==t},Pi=(e,t)=>{for(let n in t)if(!(n in e))e[n]=t[n];else{let r=e[n],i=t[n];typeof r==`object`&&r&&typeof i==`object`&&i&&(e[n]=Pi(r,i))}return e},Fi=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<=e.length;++n)if(e[n]!==t[n])return!1;return!0},Ii=(e,t)=>{let n=new Mi;for(let[t,r]of e.entries())n.addPath(r.path,{index:t,changes:r});let r=new Set,i=new Set,a=new Map,o=new Map;for(let[e,s]of t.entries())n.findMatch(s.path,t=>{if(s.type===`delete`)if(t.changes.type===`delete`)t.changes.path.length>s.path.length?r.add(t.index):i.add(t.index);else{r.add(t.index),i.add(e);let n=o.get(e);n===void 0?o.set(e,[[t.changes],[s]]):n[0].push(t.changes)}if(s.type===`add`||s.type===`update`){if(Fi(s.path,t.changes.path)&&t.changes.type!==`delete`&&!Ni(s.changes,t.changes.changes)){r.add(t.index),typeof s.changes==`object`&&Pi(s.changes,t.changes.changes);return}r.add(t.index),i.add(e);let n=a.get(t.index);n===void 0?a.set(t.index,[[t.changes],[s]]):n[1].push(s)}});let s=[...a.values(),...o.values()];return{diffs:[...e.filter((e,t)=>!r.has(t)),...t.filter((e,t)=>!i.has(t))],conflicts:s}};function Li(e){if(!(typeof e!=`object`||!e)){if(Array.isArray(e)){for(let t of e)Li(t);return}if(e.xml&&typeof e.xml==`object`){if(e.xml.wrapped===!0&&e.xml.attribute===!0)throw Error(`Invalid XML configuration: wrapped and attribute cannot be true at the same time.`);e.xml.wrapped===!0&&(delete e.xml.wrapped,e.xml.nodeType=`element`),e.xml.attribute===!0&&(delete e.xml.attribute,e.xml.nodeType=`attribute`)}for(let t in e)Object.hasOwn(e,t)&&Li(e[t])}}function Ri(e){if(e[`x-tagGroups`]&&Array.isArray(e[`x-tagGroups`])){let t=e[`x-tagGroups`];e.tags||=[];let n=new Map;for(let e of t)for(let t of e.tags)n.set(t,e.name);if(Array.isArray(e.tags)){for(let t of e.tags)if(typeof t==`object`&&t&&`name`in t){let e=n.get(t.name);e&&(e.toLowerCase().includes(`nav`)||e.toLowerCase().includes(`navigation`)?t.kind=`nav`:e.toLowerCase().includes(`audience`)?t.kind=`audience`:e.toLowerCase().includes(`badge`)?t.kind=`badge`:t.kind=`nav`)}}delete e[`x-tagGroups`]}}function zi(e){let t=e;if(typeof t==`object`&&t&&typeof t.openapi==`string`&&t.openapi?.startsWith(`3.1`))t.openapi=`3.2.0`;else return t;return Ri(t),Li(t),t}function Bi(e,t,n=[]){let r={};for(let[i,a]of Object.entries(e)){let e=[...n,i];if(Array.isArray(a)){r[i]=a.map((n,r)=>typeof n==`object`&&!Array.isArray(n)&&n!==null?Bi(n,t,[...e,r.toString()]):n);continue}if(typeof a==`object`&&a){r[i]=Bi(a,t,e);continue}r[i]=a}return t(r,n)}var Vi=`application/json`;function Hi(e){let t=e[`x-example`],n=e[`x-examples`];return delete e[`x-example`],delete e[`x-examples`],{xExample:t,xExamples:n}}function Ui(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&Object.keys(e).length>0}function Wi(e){return Ui(e)&&Object.values(e).every(e=>typeof e==`object`&&!!e&&!Array.isArray(e))}function Gi(e){if(typeof e!=`object`||!e)return!0;let t=e;return!(t.allOf||t.oneOf||t.anyOf||t.items||t.$ref||`additionalProperties`in t||[`enum`,`const`,`not`,`format`,`multipleOf`,`maximum`,`exclusiveMaximum`,`minimum`,`exclusiveMinimum`,`maxLength`,`minLength`,`pattern`,`maxItems`,`minItems`,`uniqueItems`,`maxProperties`,`minProperties`,`required`].some(e=>e in t)||typeof t.properties==`object`&&t.properties!==null&&Object.keys(t.properties).length>0)}function Ki(e){let t=Object.keys(e);if(t.some(t=>{let n=e[t];return n?.example!==void 0||n?.examples!==void 0}))for(let n of t){let t=e[n];if(!t)continue;let r=t.example!==void 0||t.examples!==void 0;t.schema!==void 0&&!r&&Object.keys(t).length===1&&Gi(t.schema)&&delete e[n]}}var qi=new Set([`summary`,`description`,`value`,`externalValue`]);function Ji(e){if(typeof e!=`object`||!e)return!1;let t=e,n=`value`in t||`externalValue`in t,r=Object.keys(t).every(e=>qi.has(e));return n&&r}function Yi(e){return Ji(e)?e:{value:e}}var Xi=/^[a-zA-Z0-9*+.-]+\/[a-zA-Z0-9*+.+-]+$/;function Zi(e){return Xi.test(e)}function Qi(e){return Object.entries(e).reduce((e,[t,n])=>(e[t]={value:n},e),{})}var $i=e=>{switch(e){case`application`:return`clientCredentials`;case`accessCode`:return`authorizationCode`;case`implicit`:return`implicit`;case`password`:return`password`;default:return e}};function ea(e){let t=e;if(typeof t==`object`&&t&&typeof t.swagger==`string`&&t.swagger?.startsWith(`2.0`))t.openapi=`3.0.4`,delete t.swagger;else return t;if(t.host){let e=Array.isArray(t.schemes)&&t.schemes?.length?t.schemes:[`http`];t.servers=e.map(e=>({url:`${e}://${t.host}${t.basePath??``}`})),delete t.basePath,delete t.schemes,delete t.host}else t.basePath&&(t.servers=[{url:t.basePath}],delete t.basePath);if(t.definitions&&(t.components=Object.assign({},t.components,{schemas:t.definitions}),delete t.definitions,t=Bi(t,e=>(typeof e.$ref==`string`&&e.$ref.startsWith(`#/definitions/`)&&(e.$ref=e.$ref.replace(/^#\/definitions\//,`#/components/schemas/`)),e))),t=Bi(t,e=>(e.type===`file`&&(e.type=`string`,e.format=`binary`),e)),Object.hasOwn(t,`parameters`)){t=Bi(t,e=>{if(typeof e.$ref==`string`&&e.$ref.startsWith(`#/parameters/`)){let n=e.$ref.split(`/`)[2];if(!n)return e;let r=t.parameters&&typeof t.parameters==`object`&&n in t.parameters?t.parameters[n]:void 0;r&&typeof r==`object`&&`in`in r&&(r.in===`body`||r.in===`formData`)?e.$ref=e.$ref.replace(/^#\/parameters\//,`#/components/requestBodies/`):e.$ref=e.$ref.replace(/^#\/parameters\//,`#/components/parameters/`)}return e}),t.components??={};let e={},n={},r=t.parameters&&typeof t.parameters==`object`?t.parameters:{};for(let[i,a]of Object.entries(r))a&&typeof a==`object`&&(`$ref`in a?e[i]=ra(a):`in`in a&&(a.in===`body`?n[i]=la(a,t.consumes??[Vi]):a.in===`formData`?n[i]=ua([a],t.consumes):e[i]=ra(a)));Object.keys(e).length>0&&(t.components.parameters=e),Object.keys(n).length>0&&(t.components.requestBodies=n),delete t.parameters}if(Object.hasOwn(t,`responses`)&&typeof t.responses==`object`&&t.responses!==null){t=Bi(t,e=>(typeof e.$ref==`string`&&e.$ref.startsWith(`#/responses/`)&&(e.$ref=e.$ref.replace(/^#\/responses\//,`#/components/responses/`)),e)),t.components??={};let e={},n=t.responses;for(let[r,i]of Object.entries(n))if(i&&typeof i==`object`)if(`$ref`in i)e[r]=i;else{let n=i,a=t.produces??[Vi];if(n.schema){typeof n.content!=`object`&&(n.content={});for(let e of a)n.content[e]={schema:n.schema};delete n.schema}if(n.examples&&typeof n.examples==`object`){typeof n.content!=`object`&&(n.content={});let e=a[0]??Vi;for(let[t,r]of Object.entries(n.examples))if(Zi(t))typeof n.content[t]!=`object`&&(n.content[t]={}),n.content[t].example=r;else{typeof n.content[e]!=`object`&&(n.content[e]={});let i=n.content[e];typeof i.examples!=`object`&&(i.examples={}),i.examples[t]=Yi(r)}delete n.examples}n.content&&typeof n.content==`object`&&Ki(n.content),n.headers&&typeof n.headers==`object`&&(n.headers=Object.entries(n.headers).reduce((e,[t,n])=>n&&typeof n==`object`?{[t]:ia(n),...e}:e,{})),e[r]=n}Object.keys(e).length>0&&(t.components.responses=e),delete t.responses}if(typeof t.paths==`object`){for(let e in t.paths)if(Object.hasOwn(t.paths,e)){let n=t.paths&&typeof t.paths==`object`&&e in t.paths?t.paths[e]:void 0;if(!n||typeof n!=`object`)continue;let r;for(let e in n)if(e===`parameters`&&Object.hasOwn(n,e)){let e=da(n.parameters,t.consumes??[Vi]);n.parameters=e.parameters,r=e.requestBody}else if(Object.hasOwn(n,e)){let i=n[e];if(r&&(i.requestBody=r),i.parameters){let e=da(i.parameters,i.consumes??t.consumes??[Vi]);i.parameters=e.parameters,e.requestBody&&(i.requestBody=e.requestBody)}if(delete i.consumes,i.responses){for(let e in i.responses)if(Object.hasOwn(i.responses,e)){let n=i.responses[e];if(n.headers&&typeof n.headers==`object`&&(n.headers=Object.entries(n.headers).reduce((e,[t,n])=>n&&typeof n==`object`?{[t]:ia(n),...e}:e,{})),n.schema){let e=t.produces??i.produces??[Vi];typeof n.content!=`object`&&(n.content={});for(let t of e)n.content[t]={schema:n.schema};delete n.schema}if(n.examples&&typeof n.examples==`object`){typeof n.content!=`object`&&(n.content={});let e=(t.produces??i.produces??[Vi])[0]??Vi;for(let[t,r]of Object.entries(n.examples))if(Zi(t))typeof n.content[t]!=`object`&&(n.content[t]={}),n.content[t].example=r;else{typeof n.content[e]!=`object`&&(n.content[e]={});let i=n.content[e];typeof i.examples!=`object`&&(i.examples={}),i.examples[t]=Yi(r)}delete n.examples}n.content&&typeof n.content==`object`&&Ki(n.content)}}delete i.produces,i.parameters?.length===0&&delete i.parameters}}}if(t.securityDefinitions){(typeof t.components!=`object`||t.components===null)&&(t.components={}),t.components&&typeof t.components==`object`&&Object.assign(t.components,{securitySchemes:{}});for(let[e,n]of Object.entries(t.securityDefinitions))if(typeof n==`object`)if(`type`in n&&n.type===`oauth2`){let{flow:r,authorizationUrl:i,tokenUrl:a,scopes:o}=n;t.components&&typeof t.components==`object`&&`securitySchemes`in t.components&&t.components.securitySchemes&&Object.assign(t.components.securitySchemes,{[e]:{type:`oauth2`,flows:{[$i(r||`implicit`)]:Object.assign({},i&&{authorizationUrl:i},a&&{tokenUrl:a},o&&{scopes:o})}}})}else `type`in n&&n.type===`basic`?t.components&&typeof t.components==`object`&&`securitySchemes`in t.components&&t.components.securitySchemes&&Object.assign(t.components.securitySchemes,{[e]:{type:`http`,scheme:`basic`}}):t.components&&typeof t.components==`object`&&`securitySchemes`in t.components&&t.components.securitySchemes&&Object.assign(t.components.securitySchemes,{[e]:n});delete t.securityDefinitions}return delete t.consumes,delete t.produces,t}function ta(e){return[`type`,`format`,`default`,`items`,`maximum`,`exclusiveMaximum`,`minimum`,`exclusiveMinimum`,`maxLength`,`minLength`,`pattern`,`maxItems`,`minItems`,`uniqueItems`,`enum`,`multipleOf`].reduce((t,n)=>(Object.hasOwn(e,n)&&(t[n]=e[n],delete e[n]),t),{})}function na(e){if(e===`formData`)throw Error(`Encountered a formData parameter which should have been filtered out by the caller`);if(e===`body`)throw Error(`Encountered a body parameter which should have been filtered out by the caller`);return e}function ra(e){if(Object.hasOwn(e,`$ref`)&&typeof e.$ref==`string`)return{$ref:e.$ref};let t=ca(e),n=ta(e),{xExample:r,xExamples:i}=Hi(e);if(Ui(r)?e.examples=Qi(r):Ui(i)&&(e.examples=Object.entries(i).reduce((e,[t,n])=>(e[t]=Yi(n),e),{})),delete e.collectionFormat,delete e.default,!e.in)throw Error(`Parameter object must have an "in" property`);return{schema:n,...t,...e,in:na(e.in)}}function ia(e){if(Object.hasOwn(e,`$ref`)&&typeof e.$ref==`string`)return{$ref:e.$ref};let t=ta(e);return{...e,schema:t}}var aa={ssv:{style:`spaceDelimited`,explode:!1},pipes:{style:`pipeDelimited`,explode:!1},multi:{style:`form`,explode:!0},csv:{style:`form`,explode:!1},tsv:{}},oa={ssv:{},pipes:{},multi:{},csv:{style:`simple`,explode:!1},tsv:{}},sa={header:oa,query:aa,path:oa};function ca(e){if(e.type!==`array`||!(e.in===`query`||e.in===`path`||e.in===`header`))return{};let t=e.collectionFormat??`csv`;return e.in in sa&&t in sa[e.in]?sa[e.in][t]:{}}function la(e,t){let{xExample:n,xExamples:r}=Hi(e);delete e.name,delete e.in;let{schema:i,...a}=e,o={content:{},...a};if(o.content)for(let e of t){if(o.content[e]={schema:i},Ui(r)&&e in r){let t=r[e];Ui(t)&&Object.values(t).every(e=>Ji(e))?o.content[e].examples=t:Wi(t)?o.content[e].examples=Object.entries(t).reduce((e,[t,n])=>(e[t]=Yi(n),e),{}):o.content[e].examples={default:Yi(t)}}else Ui(r)&&!Object.keys(r).some(Zi)&&(o.content[e].examples=Object.entries(r).reduce((e,[t,n])=>(e[t]=Yi(n),e),{}));!o.content[e].examples&&Ui(n)&&e in n&&(o.content[e].example=n[e])}return o}function ua(e,t=[`multipart/form-data`]){let n={content:{}},r=t.filter(e=>e===`multipart/form-data`||e===`application/x-www-form-urlencoded`),i=r.length>0?r:[`multipart/form-data`];if(n.content)for(let t of i){n.content[t]={schema:{type:`object`,properties:{},required:[]}};let r=n.content?.[t];if(r?.schema&&typeof r.schema==`object`&&`properties`in r.schema)for(let t of e)t.name&&r.schema.properties&&(r.schema.properties[t.name]={type:t.type,description:t.description,...t.format?{format:t.format}:{}},t.required&&Array.isArray(r.schema.required)&&r.schema.required.push(t.name))}return n}function da(e,t){let n={parameters:e.filter(e=>!(e.in===`body`||e.in===`formData`)).map(e=>ra(e))},r=structuredClone(e.find(e=>e.in===`body`)??{});r&&Object.keys(r).length&&(n.requestBody=la(r,t));let i=e.filter(e=>e.in===`formData`);if(i.length>0){let e=ua(i,t);typeof n.requestBody==`object`?n.requestBody={...n.requestBody,content:{...n.requestBody.content,...e.content}}:n.requestBody=e,typeof n.requestBody!=`object`&&(n.requestBody={content:{}})}return n}var fa=new Set([`properties`,`items`,`allOf`,`anyOf`,`oneOf`,`not`,`additionalProperties`,`schema`]);function pa(e){return e?!!(e.some(e=>fa.has(e))||e.some(e=>e.endsWith(`Schema`))||e.length>=2&&e[0]===`components`&&e[1]===`schemas`):!1}function ma(e){let t=e;return t===null||typeof t.openapi!=`string`||!t.openapi.startsWith(`3.0`)?t:(t.openapi=`3.1.1`,t=Bi(t,ha),t)}var ha=(e,t)=>{e.type!==void 0&&e.nullable===!0&&(e.type=[e.type,`null`],delete e.nullable),e.exclusiveMinimum===!0?(e.exclusiveMinimum=e.minimum,delete e.minimum):e.exclusiveMinimum===!1&&delete e.exclusiveMinimum,e.exclusiveMaximum===!0?(e.exclusiveMaximum=e.maximum,delete e.maximum):e.exclusiveMaximum===!1&&delete e.exclusiveMaximum;let n=t?.some((e,n)=>e===`examples`&&n>0?t[n-1]!==`properties`:!1);if(e.example!==void 0&&!n&&(pa(t)?e.examples=[e.example]:e.examples={default:{value:e.example}},delete e.example),e.type===`object`&&e.properties!==void 0&&(t?.slice(0,-1))?.some((e,n)=>e===`content`&&t?.[n+1]===`multipart/form-data`)&&e.properties!==null)for(let t of Object.values(e.properties))typeof t==`object`&&t&&`type`in t&&`format`in t&&t.type===`string`&&t.format===`binary`&&(t.contentMediaType=`application/octet-stream`,delete t.format);if(t?.includes(`content`)&&t?.includes(`application/octet-stream`))return{};let{format:r,...i}=e;if(e.type===`string`){if(e.format===`binary`)return{...i,type:`string`,contentMediaType:`application/octet-stream`};if(e.format===`base64`)return{...i,type:`string`,contentEncoding:`base64`};if(e.format===`byte`){let e=(t?.slice(0,-1))?.find((e,n)=>t?.[n-1]===`content`);return{...i,type:`string`,contentEncoding:`base64`,contentMediaType:e}}}return e[`x-webhooks`]!==void 0&&(e.webhooks=e[`x-webhooks`],delete e[`x-webhooks`]),e};function ga(e,t){let n=ea(e);if(t===`3.0`)return n;let r=ma(n);return t===`3.1`?r:zi(r)}var _a="```";const va=(e,t)=>`${_a}${e}\n${t.trimEnd()}\n${_a}`,ya=(e,t)=>`@example\n${va(e,t)}`,ba=e=>`\`${e}\``,xa=(...e)=>e.join(`
|
|
2
|
+
|
|
3
|
+
`),X=(e,t)=>xa(e,ya(t.language,t.body)),Sa=W({"x-internal":E(V({typeComment:`When true, hides the entity from public documentation`}))},{typeName:`XInternal`,typeComment:X(`Marks an entity as internal (hidden from external consumers).`,{language:`yaml`,body:`x-internal: true`})}),Ca=W({"x-original-aas-version":E(j({typeComment:`Original AsyncAPI Specification version the document was loaded with.`}))},{typeName:`XOriginalAasVersion`,typeComment:X(`Original AsyncAPI Specification version of the source document before ingestion.`,{language:`yaml`,body:`x-original-aas-version: "3.0.0"`})});W({"x-original-oas-version":E(j({typeComment:`Original OpenAPI Specification version of the source document.`}))},{typeName:`XOriginalOasVersion`,typeComment:X(`Original OpenAPI Specification version of the source document before ingestion.`,{language:`yaml`,body:`x-original-oas-version: "3.1.0"`})});const wa=W({name:j({typeComment:`Variable name`}),value:L([W({description:E(j()),default:j()}),j()],{typeComment:`Variable value as a string, or an object with description and default`})},{typeName:`XScalarEnvVar`,typeComment:`An environment variable definition`}),Ta=W({description:E(j({typeComment:`Optional description for the environment`})),color:j({typeComment:`Color for the environment (for example a hex value)`}),variables:w(wa,{typeComment:`Variables available in this environment`})},{typeName:`XScalarEnvironment`,typeComment:`A named environment with variables and display color`});W({"x-scalar-environments":E(R(j(),Ta,{typeComment:`Environments keyed by name`}))},{typeName:`XScalarEnvironments`,typeComment:X(`Named environments with variables for the API client (base URLs, tokens, etc.).`,{language:`yaml`,body:`x-scalar-environments:
|
|
4
|
+
production:
|
|
5
|
+
color: "#00ff00"
|
|
6
|
+
variables:
|
|
7
|
+
- name: apiKey
|
|
8
|
+
value: prod-key`})}),W({"x-scalar-icon":E(j({typeComment:`Icon identifier or URL for the API description`}))},{typeName:`XScalarIcon`,typeComment:X(`A custom icon representing the API description in the Scalar UI.`,{language:`yaml`,body:`x-scalar-icon: rocket`})});const Ea=W({"x-scalar-ignore":E(V({typeComment:`When true, the entity is hidden or ignored in the UI`}))},{typeName:`XScalarIgnore`,typeComment:X(`Internal extension to mark an entity as ignored in the Scalar UI.`,{language:`yaml`,body:`x-scalar-ignore: true`})}),Da=W({"x-scalar-is-dirty":E(V({typeComment:`When true, the document has unsaved changes`}))},{typeName:`XScalarIsDirty`,typeComment:X(`Tracks whether the document has been modified since it was last saved.`,{language:`yaml`,body:`x-scalar-is-dirty: true`})});var Oa=W({name:j({typeComment:`The label to display for the link.`}),url:j({typeComment:`The URL the link points to.`})},{typeName:`XScalarLinkItem`,typeComment:`A named link to display alongside the API info`});W({"x-scalar-links":E(w(Oa,{typeComment:`Additional named links to display alongside the API info (e.g. privacy policy, imprint)`}))},{typeName:`XScalarLinks`,typeComment:X(`Additional named links to display alongside the API info, for example a privacy policy or an imprint. This is handy for the legal texts that some countries require on public websites.`,{language:`yaml`,body:`x-scalar-links:
|
|
9
|
+
- name: Privacy Policy
|
|
10
|
+
url: https://example.com/privacy
|
|
11
|
+
- name: Imprint
|
|
12
|
+
url: https://example.com/imprint`})});const ka=W({"x-scalar-navigation":E(H({typeComment:"Serialized client navigation tree (`TraversedDocument`) for this API description"}))},{typeName:`XScalarNavigation`,typeComment:"Client-side navigation tree persisted on the document. Matches `TraversedDocumentObjectRef` in strict OpenAPI schemas."}),Aa=W({"x-scalar-original-document-hash":j({typeComment:`Hash of the document as originally loaded from an external source`})},{typeName:`XScalarOriginalDocumentHash`,typeComment:X(`Tracks the original document hash when loading from an external source. Used to detect modifications since last save.`,{language:`yaml`,body:`x-scalar-original-document-hash: "abc123"`})}),ja=W({"x-scalar-original-source-url":E(j({typeComment:`Original document source URL when loaded from an external source`}))},{typeName:`XScalarOriginalSourceUrl`,typeComment:X(`Original document source URL when the API description was loaded from an external source.`,{language:`yaml`,body:`x-scalar-original-source-url: https://example.com/openapi.yaml`})});var Ma=W({namespace:j({typeComment:`The namespace under which this registry meta is scoped.`}),slug:j({typeComment:`A unique slug identifier for this registry meta within the namespace.`}),version:j({typeComment:`The version of the registry meta.`}),commitHash:E(j({typeComment:`Last known commit hash of this document. Is going to be used to track if the document has been modified since it was last saved.`})),conflictCheckedAgainstHash:E(j({typeComment:"Registry commit hash that the cached `hasConflict` flag was computed against. When the registry advertises a different hash later, the cached result is stale and the conflict check must be re-run."})),hasConflict:E(V({typeComment:"Cached outcome of the last conflict check, valid only while `conflictCheckedAgainstHash` matches the registry current hash for this version."}))},{typeName:`XScalarRegistryMetaInner`,typeComment:`Registry meta namespace and slug`});const Na=W({"x-scalar-registry-meta":E(Ma)},{typeName:`XScalarRegistryMeta`,typeComment:X(`Registry sync metadata for a document published to Scalar Registry.`,{language:`yaml`,body:`x-scalar-registry-meta:
|
|
13
|
+
namespace: acme
|
|
14
|
+
slug: public-api
|
|
15
|
+
version: "1.0.0"`})});var Pa=W({lang:j({typeComment:"Programming language or platform (for example `TypeScript`, `Java`, `Python`)"}),description:E(j({typeComment:`Installation instructions in Markdown (supports fenced code blocks)`})),source:E(j({typeComment:"@deprecated Use `description` instead. When set, it is appended to `description` as a fenced code block (or used on its own when there is no `description`)."}))},{typeName:`XScalarSdkInstallationItem`,typeComment:`One SDK installation instruction block`});W({"x-scalar-sdk-installation":E(w(Pa,{typeComment:`Installation instructions shown in the API reference`}))},{typeName:`XScalarSdkInstallation`,typeComment:X(`Scalar SDK installation instructions for the API description.`,{language:`yaml`,body:`x-scalar-sdk-installation:
|
|
16
|
+
- lang: TypeScript
|
|
17
|
+
description: Install our SDK from npm with \`npm install @scalar/sdk\``})});const Fa=W({"x-scalar-watch-mode":E(V({typeComment:`When true, the document is watched for external file changes`}))},{typeName:`XScalarWatchMode`,typeComment:X(`Whether the document is in watch mode (reloads when the source file changes).`,{language:`yaml`,body:`x-scalar-watch-mode: true`})}),Ia=W({"x-tags":E(w(j(),{typeComment:`Ordered list of tag names for this schema object`}))},{typeName:`XTags`,typeComment:X(`Custom tag ordering hints for schema objects in the sidebar.`,{language:`yaml`,body:`x-tags:
|
|
18
|
+
- users
|
|
19
|
+
- admin`})}),La=W({"x-scalar-selected-server":E(j({typeComment:"The currently selected server. For OpenAPI documents this is the server URL; for AsyncAPI documents this is the server name (key in `document.servers`)."}))},{typeName:`XScalarSelectedServer`,typeComment:X("The currently selected server for this API description. For OpenAPI documents the value is the server URL; for AsyncAPI documents the value is the server name (key in `document.servers`).",{language:`yaml`,body:`x-scalar-selected-server: https://api.example.com`})}),Ra=W({"x-additionalPropertiesName":E(j({typeComment:`Human-readable label for additional properties on this schema`}))},{typeName:`XAdditionalPropertiesName`,typeComment:X(`Display name for additional properties on a schema object.`,{language:`yaml`,body:`x-additionalPropertiesName: metadata`})});var za=L([R(j(),j()),w(j())]);const Ba=W({"x-enumDescriptions":E(za,{typeComment:`Map or list of descriptions keyed by enum value (camelCase spelling)`}),"x-enum-descriptions":E(za,{typeComment:`Map or list of descriptions keyed by enum value (kebab-case spelling)`})},{typeName:`XEnumDescriptions`,typeComment:X(`Descriptions for enum values. Keys must match enum values.`,{language:`yaml`,body:`x-enumDescriptions:
|
|
20
|
+
other: Other reason`})}),Va=W({"x-enum-varnames":E(w(j(),{typeComment:"Display names for enum values (same order as `enum`)"})),"x-enumNames":E(w(j(),{typeComment:`Alias for x-enum-varnames — display names for enum values`}))},{typeName:`XEnumVarNames`,typeComment:X(`Display names for enum values. Must match the order of the ${ba(`enum`)} array.`,{language:`yaml`,body:`enum: [moon, asteroid]
|
|
21
|
+
x-enum-varnames: [Moon, Asteroid]`})}),Ha=W({"x-examples":E(R(j(),H(),{typeComment:`Map of example name to example value`}))},{typeName:`XExamples`,typeComment:X(`Named examples attached to a schema. Keys are example names; values are the example payloads.`,{language:`yaml`,body:`x-examples:
|
|
22
|
+
user:
|
|
23
|
+
id: 1
|
|
24
|
+
name: Ada`})}),Ua=W({"x-variable":E(j({typeComment:`Variable name used for substitution in the API client`}))},{typeName:`XVariable`,typeComment:X(`References a variable for schema property substitution in the API client.`,{language:`yaml`,body:`x-variable: userId`})}),Wa=W({propertyName:j({typeComment:`REQUIRED. The name of the property in the payload that will hold the discriminating value. This property SHOULD be required in the payload schema, as the behavior when the property is absent is undefined.`}),mapping:E(R(j(),j(),{typeComment:`An object to hold mappings between payload values and schema names or URI references.`}))},{typeName:`DiscriminatorObject`}),Ga=W({url:j({typeComment:`REQUIRED. The URI for the target documentation. This MUST be in the form of a URI.`}),description:E(j({typeComment:`A description of the target documentation. CommonMark syntax MAY be used for rich text representation.`}))},{typeName:`ExternalDocumentationObject`}),Ka=W({$status:E(L([M(`loading`),M(`error`)]),{typeComment:`Indicates the current status of the reference resolution. Can be either 'loading' while fetching the reference or 'error' if the resolution failed.`}),$global:E(V({typeComment:`Indicates whether this reference should be resolved globally across all documents, rather than just within the current document context.`}))},{typeName:`ReferenceObjectExtensions`});var qa=W({$ref:j({typeComment:`REQUIRED. The reference identifier. This MUST be in the form of a URI.`}),summary:E(j({typeComment:`A short summary which by default SHOULD override that of the referenced component. If the referenced object-type does not allow a summary field, then this field has no effect.`})),description:E(j({typeComment:`A description which by default SHOULD override that of the referenced component. CommonMark syntax MAY be used for rich text representation. If the referenced object-type does not allow a description field, then this field has no effect.`}))},{typeName:`ReferenceObject`});const Z=e=>L([qa,e]),Ja=W({name:E(j({typeComment:`Replaces the name of the element/attribute used for the described schema property. When defined within items, it will affect the name of the individual XML elements within the list. When defined alongside type being "array" (outside the items), it will affect the wrapping element if and only if wrapped is true. If wrapped is false, it will be ignored.`})),namespace:E(j({typeComment:`The URI of the namespace definition. Value MUST be in the form of a non-relative URI.`})),prefix:E(j({typeComment:`The prefix to be used for the name.`})),attribute:E(V({typeComment:`Declares whether the property definition translates to an attribute instead of an element. Default value is false.`})),wrapped:E(V({typeComment:`MAY be used only for an array definition. Signifies whether the array is wrapped (for example, <books><book/><book/></books>) or unwrapped (<book/><book/>). Default value is false. The definition takes effect only when defined alongside type being "array" (outside the items).`}))},{typeName:`XMLObject`});var Ya=[Ea,Sa,Ua,Ha,Ba,Va,Ra,Ia],Xa=W({name:E(j({typeComment:`Schema name (extension).`})),title:E(j({typeComment:`A title for the schema.`})),description:E(j({typeComment:`A description of the schema.`})),default:E(H({typeComment:`Default value for the schema.`})),enum:E(w(H(),{typeComment:`Array of allowed values.`,typeName:`JsonSchemaEnum`})),const:E(H({typeComment:`Constant value that must match exactly.`})),contentMediaType:E(j({typeComment:`Media type for content validation.`})),contentEncoding:E(j({typeComment:`Content encoding.`})),contentSchema:E(Z(A(()=>Q))),deprecated:E(V({typeComment:`Whether the schema is deprecated.`})),discriminator:E(Wa),readOnly:E(V({typeComment:`Whether the schema is read-only.`})),writeOnly:E(V({typeComment:`Whether the schema is write-only.`})),xml:E(Ja),externalDocs:E(Ga),example:E(H({typeComment:`A free-form field to include an example of an instance for this schema. Deprecated in favor of the JSON Schema examples keyword.`})),examples:E(w(H(),{typeComment:`An array of examples of valid instances for this schema. This keyword follows the JSON Schema Draft 2020-12 specification.`,typeName:`SchemaExamplesArray`})),allOf:E(w(Z(A(()=>Q)),{typeName:`SchemaObjectAllOf`})),oneOf:E(w(Z(A(()=>Q)),{typeName:`SchemaObjectOneOf`})),anyOf:E(w(Z(A(()=>Q)),{typeName:`SchemaObjectAnyOf`})),not:E(Z(A(()=>Q)))}),Za=W({multipleOf:E(I({typeComment:`Number must be a multiple of this value.`})),maximum:E(I({typeComment:`Maximum value (inclusive).`})),exclusiveMaximum:E(I({typeComment:`Maximum value (exclusive).`})),minimum:E(I({typeComment:`Minimum value (inclusive).`})),exclusiveMinimum:E(I({typeComment:`Minimum value (exclusive).`}))}),Qa=P([W({type:L([M(`number`),M(`integer`)]),format:E(j({typeComment:`Different subtypes.`}))}),Za],{typeName:`NumberSchemaObject`}),$a=W({maxLength:E(I({typeComment:`Maximum string length.`})),minLength:E(I({typeComment:`Minimum string length.`})),pattern:E(j({typeComment:`Regular expression pattern.`}))}),eo=P([W({type:M(`string`),format:E(j({typeComment:`Different subtypes.`}))}),$a],{typeName:`StringSchemaObject`}),to=W({maxProperties:E(I({typeComment:`Maximum number of properties.`})),minProperties:E(I({typeComment:`Minimum number of properties.`})),properties:E(R(j(),Z(A(()=>Q)),{typeName:`SchemaObjectProperties`})),required:E(w(j(),{typeName:`SchemaObjectRequired`})),additionalProperties:E(L([Z(A(()=>Q)),W({}),V()],{typeName:`SchemaObjectAdditionalProperties`})),patternProperties:E(R(j(),Z(A(()=>Q)),{typeName:`SchemaObjectPatternProperties`})),propertyNames:E(Z(A(()=>Q)))}),no=P([W({type:M(`object`)}),to],{typeName:`ObjectSchemaObject`}),ro=W({maxItems:E(I({typeComment:`Maximum number of items in array.`})),minItems:E(I({typeComment:`Minimum number of items in array.`})),uniqueItems:E(V({typeComment:`Whether array items must be unique.`})),items:E(Z(A(()=>Q))),prefixItems:E(w(Z(A(()=>Q)),{typeComment:`Schema for tuple validation.`}))}),io=P([W({type:M(`array`)}),ro],{typeName:`ArraySchemaObject`}),ao=L([M(`null`),M(`boolean`),M(`string`),M(`number`),M(`integer`),M(`object`),M(`array`)],{typeName:`SchemaObjectMultiTypeKeywords`}),oo=W({type:L([M(`null`),M(`boolean`)],{typeName:`SchemaObjectOtherTypeKeyword`})}),so=P([W({type:w(ao,{typeName:`SchemaObjectMultiTypeKeywordArray`}),format:E(j({typeComment:`Different subtypes.`}))}),Za,$a,ro,to],{typeName:`MultiTypeSchemaObject`});const Q=P([Xa,...Ya,L([oo,Qa,eo,no,io,so,W({})])],{typeName:`SchemaObject`}),co=W({$ref:j({typeComment:`REQUIRED. The reference string.`})},{typeName:`AsyncApiReferenceObject`,typeComment:`JSON Reference for AsyncAPI components.`});var lo=e=>T(e)&&`$ref`in e?lo(e[`$ref-value`]):e;const uo=e=>P([co,W({"$ref-value":_e(lo,e)}),Ka]),$=e=>L([e,uo(e)]),fo=W({schemaFormat:E(j({typeComment:`Media type identifying the schema format. When omitted, defaults to the AsyncAPI JSON Schema vocabulary for the document version.`})),schema:z({typeComment:`REQUIRED. Schema definition in the format given by schemaFormat.`})},{typeName:`AsyncApiMultiFormatSchemaObject`});var po=L([M(!0),M(!1),Q],{typeName:`AsyncApiSchemaJsonShape`});const mo=$(po),ho=$(L([fo,po],{typeName:`AsyncApiMultiFormatSchemaOrSchemaObject`})),go=W({method:E(L([M(`GET`),M(`POST`)],{typeComment:`HTTP method used when establishing the WebSocket connection (typically GET).`})),query:E(mo,{typeComment:`Schema Object describing WebSocket handshake query parameters (type object with properties). May be a Reference Object.`}),headers:E(mo,{typeComment:`Schema Object describing HTTP headers sent during the WebSocket handshake (type object with properties). May be a Reference Object.`}),bindingVersion:E(j({typeComment:`Version of the WebSocket binding. When omitted, "latest" is assumed per the binding spec.`}))},{typeName:`AsyncApiWsBindingObject`,typeComment:`AsyncAPI WebSocket binding for handshake method, query, and headers.`});var _o=[`http`,`ws`,`kafka`,`anypointmq`,`amqp`,`amqp1`,`mqtt`,`mqtt5`,`nats`,`jms`,`sns`,`solace`,`sqs`,`stomp`,`redis`,`mercure`,`ibmmq`,`googlepubsub`,`pulsar`,`ros2`],vo=()=>E(z({typeComment:`Protocol-specific binding definition (see AsyncAPI protocol bindings).`})),yo=()=>{let e={};for(let t of _o)e[t]=t===`ws`?E(go):vo();return e},bo=(e,t)=>W(yo(),{typeName:e,typeComment:t});const xo=bo(`AsyncApiServerBindingsObject`,`Map describing protocol-specific definitions for a server (AsyncAPI 3.1.0).`),So=bo(`AsyncApiChannelBindingsObject`,`Map describing protocol-specific definitions for a channel (AsyncAPI 3.1.0).`),Co=bo(`AsyncApiOperationBindingsObject`,`Map describing protocol-specific definitions for an operation (AsyncAPI 3.1.0).`),wo=bo(`AsyncApiMessageBindingsObject`,`Map describing protocol-specific definitions for a message (AsyncAPI 3.1.0).`),To=$(W({description:E(j({typeComment:`A short description of the target documentation. CommonMark syntax MAY be used for rich text representation.`})),url:j({typeComment:`REQUIRED. The URL for the target documentation. This MUST be in the form of an absolute URL.`})},{typeName:`AsyncApiExternalDocumentationObject`})),Eo=$(W({description:E(j({typeComment:`An optional description of the identifier. CommonMark syntax MAY be used for rich text representation.`})),location:j({typeComment:`REQUIRED. A runtime expression that specifies the location of the correlation ID.`})},{typeName:`AsyncApiCorrelationIdObject`})),Do=W({headers:E(R(j(),z(),{typeComment:`Example headers; MUST validate against the Message Object headers field when present.`})),payload:E(z({typeComment:`Example payload; MUST validate against the Message Object payload field when present.`})),name:E(j({typeComment:`A machine-friendly name.`})),summary:E(j({typeComment:`A short summary of what the example is about.`}))},{typeName:`AsyncApiMessageExampleObject`}),Oo=$(W({name:j({typeComment:`REQUIRED. The name of the tag.`}),description:E(j({typeComment:`A short description for the tag. CommonMark syntax MAY be used for rich text representation.`})),externalDocs:E(To)},{typeName:`AsyncApiTagObject`})),ko=w(Oo,{typeName:`AsyncApiTagsObject`,typeComment:`A list of Tag Objects (entries MAY be Reference Objects).`}),Ao=$(W({headers:E(ho),correlationId:E(Eo),contentType:E(j({typeComment:`The content type to use when encoding/decoding a message payload (for example application/json).`})),name:E(j({typeComment:`A machine-friendly name for the message.`})),title:E(j({typeComment:`A human-friendly title for the message.`})),summary:E(j({typeComment:`A short summary of what the message is about.`})),description:E(j({typeComment:`A verbose explanation of the message. CommonMark syntax MAY be used for rich text representation.`})),tags:E(ko),externalDocs:E(To),bindings:E($(wo)),examples:E(w($(Do)))},{typeName:`AsyncApiMessageTraitObject`})),jo=A(()=>$(W({headers:E(ho),payload:E(ho),correlationId:E(Eo),contentType:E(j({typeComment:`The content type to use when encoding/decoding a message payload (for example application/json).`})),name:E(j({typeComment:`A machine-friendly name for the message.`})),title:E(j({typeComment:`A human-friendly title for the message.`})),summary:E(j({typeComment:`A short summary of what the message is about.`})),description:E(j({typeComment:`A verbose explanation of the message. CommonMark syntax MAY be used for rich text representation.`})),tags:E(ko),externalDocs:E(To),bindings:E($(wo)),examples:E(w($(Do))),traits:E(w(Ao))},{typeName:`AsyncApiMessageObject`}))),Mo=R(j(),jo,{typeName:`AsyncApiMessagesObject`,typeComment:`Map of messageId to Message Object or Reference Object.`}),No=$(W({enum:E(w(j(),{typeComment:`An enumeration of string values for substitution.`})),default:E(j({typeComment:`The default value to use for substitution, and to send, if an alternate value is not supplied.`})),description:E(j({typeComment:`An optional description for the parameter. CommonMark syntax MAY be used for rich text representation.`})),examples:E(w(j(),{typeComment:`Examples of the parameter value.`})),location:E(j({typeComment:`A runtime expression that specifies the location of the parameter value.`}))},{typeName:`AsyncApiParameterObject`})),Po=R(j(),No,{typeName:`AsyncApiParametersObject`,typeComment:`Map of parameter name to Parameter Object or Reference Object.`}),Fo=W({authorizationUrl:E(j({typeComment:`REQUIRED for implicit and authorizationCode flows. The authorization URL (absolute URL).`})),tokenUrl:E(j({typeComment:`REQUIRED for password, clientCredentials, and authorizationCode flows. The token URL (absolute URL).`})),refreshUrl:E(j({typeComment:`The URL to be used for obtaining refresh tokens. This MUST be in the form of an absolute URL.`})),availableScopes:E(R(j(),j(),{typeComment:`REQUIRED for OAuth2 flows. Map of scope name to a short description.`}))},{typeName:`AsyncApiOAuthFlowObject`}),Io=W({implicit:E($(Fo)),password:E($(Fo)),clientCredentials:E($(Fo)),authorizationCode:E($(Fo))},{typeName:`AsyncApiOAuthFlowsObject`}),Lo=$(W({type:L([M(`userPassword`),M(`apiKey`),M(`X509`),M(`symmetricEncryption`),M(`asymmetricEncryption`),M(`httpApiKey`),M(`http`),M(`oauth2`),M(`openIdConnect`),M(`plain`),M(`scramSha256`),M(`scramSha512`),M(`gssapi`)],{typeComment:`REQUIRED. Security scheme type: userPassword, apiKey, X509, symmetricEncryption, asymmetricEncryption, httpApiKey, http, oauth2, openIdConnect, plain, scramSha256, scramSha512, gssapi.`}),description:E(j({typeComment:`A short description for security scheme. CommonMark syntax MAY be used for rich text representation.`})),name:E(j({typeComment:`REQUIRED for httpApiKey. The name of the header, query or cookie parameter.`})),in:E(L([M(`user`),M(`password`),M(`query`),M(`header`),M(`cookie`)],{typeComment:`REQUIRED for apiKey and httpApiKey. Location of the API key: user, password, query, header, or cookie.`})),scheme:E(j({typeComment:`REQUIRED for http. The name of the HTTP Authorization scheme to be used in the Authorization header.`})),bearerFormat:E(j({typeComment:`A hint to the client to identify how the bearer token is formatted.`})),flows:E($(Io)),openIdConnectUrl:E(j({typeComment:`REQUIRED for openIdConnect. OpenId Connect URL to discover OAuth2 configuration values (absolute URL).`})),scopes:E(w(j(),{typeComment:`List of the needed scope names for oauth2 and openIdConnect.`}))},{typeName:`AsyncApiSecuritySchemeObject`})),Ro=$(W({enum:E(w(j(),{typeComment:`An enumeration of string values for substitution.`})),default:E(j({typeComment:`The default value to use for substitution, and to send, if an alternate value is not supplied.`})),description:E(j({typeComment:`An optional description for the server variable. CommonMark syntax MAY be used for rich text representation.`})),examples:E(w(j(),{typeComment:`Examples of the server variable.`}))},{typeName:`AsyncApiServerVariableObject`})),zo=$(W({host:j({typeComment:`REQUIRED. The server host name. It MAY include the port. Supports Server Variables in {braces}.`}),protocol:j({typeComment:`REQUIRED. The protocol this server supports for connection.`}),protocolVersion:E(j({typeComment:`The version of the protocol used for connection (for example 0-9-1 for AMQP).`})),pathname:E(j({typeComment:`The path to a resource in the host. Supports Server Variables in {braces}.`})),description:E(j({typeComment:`An optional string describing the server. CommonMark syntax MAY be used for rich text representation.`})),title:E(j({typeComment:`A human-friendly title for the server.`})),summary:E(j({typeComment:`A short summary of the server.`})),variables:E(R(j(),Ro,{typeComment:`Map between a variable name and its Server Variable Object or Reference Object.`})),security:E(w(Lo,{typeComment:`Alternative security schemes for this server; only one of the security scheme objects need to be satisfied.`})),tags:E(ko),externalDocs:E(To),bindings:E($(xo))},{typeName:`AsyncApiServerObject`})),Bo=R(j(),zo,{typeName:`AsyncApiServersObject`,typeComment:`Map of server name to Server Object or Reference Object.`}),Vo=A(()=>W({address:E(L([j(),he()],{typeComment:`Channel address or null when unknown.`})),messages:E(Mo),title:E(j({typeComment:`A human-friendly title for the channel.`})),summary:E(j({typeComment:`A short summary of the channel.`})),description:E(j({typeComment:`An optional description of this channel. CommonMark syntax MAY be used for rich text representation.`})),servers:E(w(uo(zo),{typeComment:`References to Server definitions where this channel is available (Reference Objects only in the raw document).`})),parameters:E(Po),tags:E(ko),externalDocs:E(To),bindings:E($(So))},{typeName:`AsyncApiChannelObject`})),Ho=R(j(),$(Vo),{typeName:`AsyncApiChannelsObject`,typeComment:`Map of channelId to Channel Object or Reference Object.`}),Uo=$(W({description:E(j({typeComment:`An optional description of the address. CommonMark syntax MAY be used for rich text representation.`})),location:j({typeComment:`REQUIRED. A runtime expression that specifies the location of the reply address.`})},{typeName:`AsyncApiOperationReplyAddressObject`})),Wo=A(()=>$(W({address:E(Uo),channel:E(uo(Vo)),messages:E(w(uo(jo),{typeComment:`List of $ref pointers to Message Objects used as reply payloads (Reference Objects only in the raw document).`}))},{typeName:`AsyncApiOperationReplyObject`}))),Go=$(W({title:E(j({typeComment:`A human-friendly title for the operation.`})),summary:E(j({typeComment:`A short summary of what the operation is about.`})),description:E(j({typeComment:`A verbose explanation of the operation. CommonMark syntax MAY be used for rich text representation.`})),security:E(w(Lo,{typeComment:`Security schemes for this operation. Only one of the security scheme objects MUST be satisfied.`})),tags:E(ko),externalDocs:E(To),bindings:E($(Co))},{typeName:`AsyncApiOperationTraitObject`})),Ko=A(()=>$(W({action:L([M(`send`),M(`receive`)],{typeComment:`REQUIRED. send when the application sends to the channel; receive when it receives from the channel.`}),channel:uo(Vo),title:E(j({typeComment:`A human-friendly title for the operation.`})),summary:E(j({typeComment:`A short summary of what the operation is about.`})),description:E(j({typeComment:`A verbose explanation of the operation. CommonMark syntax MAY be used for rich text representation.`})),security:E(w(Lo,{typeComment:`Security schemes for this operation. Only one of the security scheme objects MUST be satisfied.`})),tags:E(ko),externalDocs:E(To),bindings:E($(Co)),traits:E(w(Go)),messages:E(w(uo(jo),{typeComment:`Subset of channel messages as Reference Objects only. Omit to include all channel messages; use [] for none.`})),reply:E(Wo)},{typeName:`AsyncApiOperationObject`}))),qo=R(j(),Ko,{typeName:`AsyncApiOperationsObject`,typeComment:`Map of operationId to Operation Object or Reference Object.`}),Jo=A(()=>W({schemas:E(R(j(),ho,{typeComment:`Reusable Multi Format Schema, Schema Object, or Reference Object.`})),servers:E(R(j(),zo)),channels:E(Ho),operations:E(R(j(),Ko)),messages:E(R(j(),jo)),securitySchemes:E(R(j(),Lo)),serverVariables:E(R(j(),Ro)),parameters:E(R(j(),No)),correlationIds:E(R(j(),Eo)),replies:E(R(j(),Wo)),replyAddresses:E(R(j(),Uo)),externalDocs:E(R(j(),To)),tags:E(R(j(),Oo)),operationTraits:E(R(j(),Go)),messageTraits:E(R(j(),Ao)),serverBindings:E(R(j(),$(xo))),channelBindings:E(R(j(),$(So))),operationBindings:E(R(j(),$(Co))),messageBindings:E(R(j(),$(wo)))},{typeName:`AsyncApiComponentsObject`,typeComment:`Reusable objects. Definitions here have no effect unless referenced from outside components.`})),Yo=W({name:E(j({typeComment:`The identifying name of the contact person/organization.`})),url:E(j({typeComment:`The URL pointing to the contact information. This MUST be in the form of an absolute URL.`})),email:E(j({typeComment:`The email address of the contact person/organization.`}))},{typeName:`AsyncApiContactObject`}),Xo=$(W({name:j({typeComment:`REQUIRED. The license name used for the API.`}),url:E(j({typeComment:`A URL to the license used for the API. This MUST be in the form of an absolute URL.`}))},{typeName:`AsyncApiLicenseObject`})),Zo=W({title:j({typeComment:`REQUIRED. The title of the application.`}),version:j({typeComment:`REQUIRED. Provides the version of the application API (not to be confused with the AsyncAPI Specification version).`}),description:E(j({typeComment:`A short description of the application. CommonMark syntax MAY be used for rich text representation.`})),termsOfService:E(j({typeComment:`A URL to the Terms of Service for the API (absolute URL).`})),contact:E(Yo),license:E(Xo),tags:E(ko),externalDocs:E(To)},{typeName:`AsyncApiInfoObject`});var Qo=P([Ca,ka,ja,Aa,Da,Fa,Na,La],{typeName:`AsyncApiExtensions`,typeComment:`AsyncAPI document-level Scalar extensions shared with workspace tooling.`});const $o=P([W({asyncapi:j({typeComment:`REQUIRED. AsyncAPI Specification version (major.minor.patch). Patch MAY include a hyphen suffix.`}),id:E(j({typeComment:`Identifier of the application the AsyncAPI document is defining (URI, RFC3986).`})),info:Zo,servers:E(Bo),defaultContentType:E(j({typeComment:`Default content type when encoding/decoding a message payload (for example application/json).`})),channels:E(Ho),operations:E(qo),components:E($(Jo))},{typeName:`AsyncApiDocumentCore`,typeComment:`Root AsyncAPI 3.1.0 document combining resource listing and API declaration.`}),Qo],{typeName:`AsyncApiObject`,typeComment:`Root AsyncAPI 3.1.0 document including Scalar workspace extensions (AsyncApiExtensionsSchema).`});var es=F.Object({name:F.String(),value:F.String()}),ts=F.Object({url:F.String(),method:F.String(),httpVersion:F.String(),headers:F.Array(es),cookies:F.Array(es),headersSize:F.Number(),queryString:F.Array(es),bodySize:F.Number(),postData:F.Optional(F.Union([F.Object({mimeType:F.String(),text:F.String()}),F.Object({mimeType:F.String(),params:F.Array(F.Object({name:F.String(),value:F.Optional(F.String())}))})]))}),ns=F.Object({status:F.Number(),statusText:F.String(),headers:F.Array(es),cookies:F.Array(es),httpVersion:F.String(),redirectURL:F.String(),headersSize:F.Number(),bodySize:F.Number(),content:F.Object({size:F.Number(),mimeType:F.String(),encoding:F.Optional(F.String()),text:F.Optional(F.String())})}),rs=F.Object({time:F.Number(),timestamp:F.Number(),request:ts,response:ns,meta:F.Object({example:F.String()}),requestMetadata:F.Object({variables:F.Record(F.String(),F.String())})}),is=F.Record(F.String(),F.Record(F.String(),F.Array(rs)));const as=F.Record(F.String(),is);var os=5;const ss=({hooks:e})=>{let t=v({});return{getHistory:(e,n,r)=>t[e]?.[n]?.[r],addHistory:(n,r,i,a)=>{t[n]||={},t[n][r]||={},t[n][r][i]||=[],t[n][r][i].length>=os&&(t[n][r][i]=k(t[n][r][i].filter((e,t)=>t!==0),{depth:1})),t[n][r][i].push(a),e?.onHistoryChange?.(n)},clearOperationHistory:(n,r,i)=>{delete t[n]?.[r]?.[i],e?.onHistoryChange?.(n)},clearPathHistory:(n,r)=>{delete t[n]?.[r],e?.onHistoryChange?.(n)},clearDocumentHistory:n=>{delete t[n],e?.onHistoryChange?.(n)},load:n=>{let r=le(as,n);Ze(t,r),Object.keys(r).forEach(t=>{e?.onHistoryChange?.(t)})},export:()=>k(t)}},cs=e=>e.fetch?e.fetch:((t,n)=>fetch(lt(e.proxyUrl,t.toString()),n)),ls=(e,t)=>{if(e&&typeof e==`object`&&`$ref`in e&&typeof e.$ref==`string`&&e.$ref.startsWith(`#`)){let n=oi(e.$ref.slice(1));return ls(Et(t.rootNode,n),t)}return e},us=()=>({type:`lifecycle`,onResolveStart:e=>{e.$status=`loading`},onResolveError:e=>{e.$status=`error`},onResolveSuccess:e=>{delete e.$status}}),ds=()=>({type:`lifecycle`,onAfterNodeProcess:async(e,t)=>{let n=e.externalValue,r=t.resolutionCache;if(typeof n!=`string`)return;let i=t.loaders.find(e=>e.validate(n));if(!i)return;r.has(n)||r.set(n,i.exec(n));let a=await r.get(n);a?.ok&&(e.value=a.data)}}),fs=()=>({type:`lifecycle`,onBeforeNodeProcess:async(e,t)=>{let{path:n,resolutionCache:r,parentNode:i}=t,a=e.$ref;if(typeof a!=`string`||!i||!n.length)return;let o=t.loaders.find(e=>e.validate(a));if(o&&n[0]===`info`){r.has(a)||r.set(a,o.exec(a));let e=await r.get(a);e?.ok&&(i[n.at(-1)]=e.data)}}}),ps=()=>({type:`lifecycle`,onBeforeNodeProcess:(e,t)=>{let n=e.$ref,r=t.rootNode[`x-ext-urls`];typeof n!=`string`||typeof r!=`object`||!r||!Ft(n)||(e.$ref=r[n.split(`/`).at(-1)??``]??n)}}),ms=()=>({type:`lifecycle`,onAfterNodeProcess:(e,t)=>{let{path:n}=t;if(n.length===3&&n[0]===`components`&&n[1]===`securitySchemes`){let n=ls(e,t);typeof n==`object`&&n&&`scheme`in n&&typeof n.scheme==`string`&&n.scheme.toLowerCase()!==n.scheme&&(n.scheme=n.scheme.toLowerCase())}}}),hs=()=>({type:`lifecycle`,onBeforeNodeProcess:(e,t)=>{let{path:n}=t;if(typeof e.$ref==`string`&&!(n[0]===`components`&&n[1]===`schemas`)){let t=new Set([`$ref`,`summary`,`description`,`$status`]);Object.keys(e).forEach(n=>{t.has(n)||delete e[n]})}}}),gs=()=>({type:`lifecycle`,onBeforeNodeProcess:(e,t)=>{let{path:n}=t;if(n.length!==2||n[0]!==`paths`||typeof n[1]!=`string`)return;let r=n[1];for(let n of gt){let i=ls(e[n],t);if(!T(i))continue;let a=e=>{let n=ls(e,t);return T(n)&&`name`in n&&typeof n.name==`string`&&`in`in n&&typeof n.in==`string`},o=e=>{let n=ls(e,t);return a(n)&&n.in===`path`},s=(`parameters`in i&&Array.isArray(i.parameters)?i.parameters:[]).filter(a),c=new Set(s.map(e=>ls(e,t)).filter(o).map(e=>e.name)),l=(`parameters`in e&&Array.isArray(e.parameters)?e.parameters:[]).filter(e=>{let n=ls(e,t);if(!o(n))return!1;let r=!c.has(n.name);return r&&c.add(n.name),r}),u=O(r,r,[...s,...l],e=>ls(e,t));u.length>0&&(i.parameters=u)}}});var _s=[`__scalar_`,`$status`];const vs=()=>({type:`lifecycle`,onBeforeNodeProcess:e=>{if(T(e))for(let t of _s)t in e&&delete e[t]}}),ys=e=>{let t=W({name:E(j({typeComment:`The name of the contact.`})),url:E(j({typeComment:`The URI for the contact information. This MUST be in the form of a URI.`})),email:E(j({typeComment:`The email address of the contact person/organization. This MUST be in the form of an email address.`}))},{typeName:`ContactObject`}),n=W({name:E(j({typeComment:`REQUIRED. The license name used for the API.`})),identifier:E(j({typeComment:`An SPDX license expression for the API. The identifier field is mutually exclusive of the url field.`})),url:E(j({typeComment:`A URI for the license used for the API. This MUST be in the form of a URI. The url field is mutually exclusive of the identifier field.`}))},{typeName:`LicenseObject`}),r=P([W({title:j({typeComment:`REQUIRED. The title of the API.`}),version:j({typeComment:`REQUIRED. The version of the OpenAPI Document (which is distinct from the OpenAPI Specification version or the version of the API being described or the version of the OpenAPI Description).`}),summary:E(j({typeComment:`A short summary of the API.`})),description:E(j({typeComment:`A description of the API. CommonMark syntax MAY be used for rich text representation.`})),termsOfService:E(j({typeComment:`A URI for the Terms of Service for the API. This MUST be in the form of a URI.`})),contact:E(t),license:E(n)},{typeName:`InfoObject`}),Xe,tt]),i=W({enum:E(w(j(),{typeComment:`An enumeration of string values to be used if the substitution options are from a limited set. The array MUST NOT be empty.`})),default:E(j({typeComment:`The default value to use for substitution, which SHALL be sent if an alternate value is not supplied. If the enum is defined, the value MUST exist in the enum's values. Note that this behavior is different from the Schema Object's default keyword, which documents the receiver's behavior rather than inserting the value into the data.`})),description:E(j({typeComment:`An optional description for the server variable. CommonMark syntax MAY be used for rich text representation.`}))},{typeName:`ServerVariableObject`}),a=W({url:j({typeComment:`REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that the host location is relative to the location where the document containing the Server Object is being served. Variable substitutions will be made when a variable is named in {braces}.`}),description:E(j({typeComment:`An optional string describing the host designated by the URL. CommonMark syntax MAY be used for rich text representation.`})),variables:E(R(j(),i,{typeComment:`A map between a variable name and its value. The value is used for substitution in the server's URL template.`}))},{typeName:`ServerObject`}),o=W({url:j({typeComment:`REQUIRED. The URI for the target documentation. This MUST be in the form of a URI.`}),description:E(j({typeComment:`A description of the target documentation. CommonMark syntax MAY be used for rich text representation.`}))},{typeName:`ExternalDocumentationObject`}),s=P([W({name:j({typeComment:`REQUIRED. The name of the tag.`}),description:E(j({typeComment:`A description for the tag. CommonMark syntax MAY be used for rich text representation.`})),externalDocs:E(o)},{typeName:`TagObject`}),te,Ot,yt,ze]),c=R(j(),w(j()),{typeName:`SecurityRequirementObject`,typeComment:`Lists the required security schemes to execute this operation. An empty object ({}) indicates anonymous access is supported.`}),l=W({name:E(j({typeComment:`Replaces the name of the element/attribute used for the described schema property. When defined within items, it will affect the name of the individual XML elements within the list. When defined alongside type being "array" (outside the items), it will affect the wrapping element if and only if wrapped is true. If wrapped is false, it will be ignored.`})),namespace:E(j({typeComment:`The URI of the namespace definition. Value MUST be in the form of a non-relative URI.`})),prefix:E(j({typeComment:`The prefix to be used for the name.`})),attribute:E(V({typeComment:`Declares whether the property definition translates to an attribute instead of an element. Default value is false.`})),wrapped:E(V({typeComment:`MAY be used only for an array definition. Signifies whether the array is wrapped (for example, <books><book/><book/></books>) or unwrapped (<book/><book/>). Default value is false. The definition takes effect only when defined alongside type being "array" (outside the items).`}))},{typeName:`XMLObject`}),u=W({propertyName:j({typeComment:`REQUIRED. The name of the property in the payload that will hold the discriminating value. This property SHOULD be required in the payload schema, as the behavior when the property is absent is undefined.`}),mapping:E(R(j(),j(),{typeComment:`An object to hold mappings between payload values and schema names or URI references.`}))},{typeName:`DiscriminatorObject`}),d=[yt,Ot,ce,Ae,pe,se,Tt,Oe,de],f=W({name:E(j({typeComment:`Schema name (extension).`})),title:E(j({typeComment:`A title for the schema.`})),description:E(j({typeComment:`A description of the schema.`})),default:E(H({typeComment:`Default value for the schema.`})),enum:E(w(H(),{typeComment:`Array of allowed values.`,typeName:`JsonSchemaEnum`})),const:E(H({typeComment:`Constant value that must match exactly.`})),contentMediaType:E(j({typeComment:`Media type for content validation.`})),contentEncoding:E(j({typeComment:`Content encoding.`})),contentSchema:E(e(A(()=>D))),deprecated:E(V({typeComment:`Whether the schema is deprecated.`})),discriminator:E(u),readOnly:E(V({typeComment:`Whether the schema is read-only.`})),writeOnly:E(V({typeComment:`Whether the schema is write-only.`})),xml:E(l),externalDocs:E(o),example:E(H({typeComment:`A free-form field to include an example of an instance for this schema. Deprecated in favor of the JSON Schema examples keyword.`})),examples:E(w(H(),{typeComment:`An array of examples of valid instances for this schema. This keyword follows the JSON Schema Draft 2020-12 specification.`,typeName:`SchemaExamplesArray`})),allOf:E(w(e(A(()=>D)),{typeName:`SchemaObjectAllOf`})),oneOf:E(w(e(A(()=>D)),{typeName:`SchemaObjectOneOf`})),anyOf:E(w(e(A(()=>D)),{typeName:`SchemaObjectAnyOf`})),not:E(e(A(()=>D)))}),p=W({__scalar_:j({typeComment:`Internal marker for schema object disambiguation.`})}),m=W({multipleOf:E(I({typeComment:`Number must be a multiple of this value.`})),maximum:E(I({typeComment:`Maximum value (inclusive).`})),exclusiveMaximum:E(I({typeComment:`Maximum value (exclusive).`})),minimum:E(I({typeComment:`Minimum value (inclusive).`})),exclusiveMinimum:E(I({typeComment:`Minimum value (exclusive).`}))}),h=P([W({type:L([M(`number`),M(`integer`)]),format:E(j({typeComment:`Different subtypes.`}))}),m],{typeName:`NumberSchemaObject`}),g=W({maxLength:E(I({typeComment:`Maximum string length.`})),minLength:E(I({typeComment:`Minimum string length.`})),pattern:E(j({typeComment:`Regular expression pattern.`}))}),_=P([W({type:M(`string`),format:E(j({typeComment:`Different subtypes.`}))}),g],{typeName:`StringSchemaObject`}),v=W({maxProperties:E(I({typeComment:`Maximum number of properties.`})),minProperties:E(I({typeComment:`Minimum number of properties.`})),properties:E(R(j(),e(A(()=>D)),{typeName:`SchemaObjectProperties`})),required:E(w(j(),{typeName:`SchemaObjectRequired`})),additionalProperties:E(L([V(),e(A(()=>D))],{typeName:`SchemaObjectAdditionalProperties`})),patternProperties:E(R(j(),e(A(()=>D)),{typeName:`SchemaObjectPatternProperties`})),propertyNames:E(e(A(()=>D)))}),y=P([W({type:M(`object`)}),v],{typeName:`ObjectSchemaObject`}),ee=W({maxItems:E(I({typeComment:`Maximum number of items in array.`})),minItems:E(I({typeComment:`Minimum number of items in array.`})),uniqueItems:E(V({typeComment:`Whether array items must be unique.`})),items:E(e(A(()=>D))),prefixItems:E(w(e(A(()=>D)),{typeComment:`Schema for tuple validation.`}))}),b=P([W({type:M(`array`)}),ee],{typeName:`ArraySchemaObject`}),x=L([M(`null`),M(`boolean`),M(`string`),M(`number`),M(`integer`),M(`object`),M(`array`)],{typeName:`SchemaObjectMultiTypeKeywords`}),C=W({type:L([M(`null`),M(`boolean`)],{typeName:`SchemaObjectOtherTypeKeyword`})}),T=P([W({type:w(x,{typeName:`SchemaObjectMultiTypeKeywordArray`}),format:E(j({typeComment:`Different subtypes.`}))}),m,g,ee,v],{typeName:`MultiTypeSchemaObject`}),D=P([f,...d,L([p,C,h,_,y,b,T])],{typeName:`SchemaObject`}),O=W({description:E(j({typeComment:`A description for security scheme. CommonMark syntax MAY be used for rich text representation.`}))}),k=W({...O.properties,type:M(`apiKey`),name:j({typeComment:`REQUIRED. The name of the header, query or cookie parameter to be used.`}),in:L([M(`query`),M(`header`),M(`cookie`)],{typeComment:`REQUIRED. The location of the API key. Valid values are "query", "header", or "cookie".`})},{typeName:`ApiKeySecuritySchemeObject`}),ae=W({...O.properties,type:M(`http`),scheme:L([M(`basic`),M(`bearer`)],{typeName:`HttpSecuritySchemeScheme`,typeComment:`REQUIRED. The name of the HTTP Authentication scheme to be used in the Authorization header as defined in RFC7235.`}),bearerFormat:E(j({typeComment:`A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes.`}))},{typeName:`HttpSecuritySchemeObject`}),oe=[Je,pt,Ve,xt,At],le=W({refreshUrl:j({typeComment:`The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS.`}),scopes:R(j(),j(),{typeComment:`REQUIRED. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty.`,typeName:`OAuthFlowScopes`})},{typeName:`OAuthFlowBaseCore`}),ue=P([le,...oe,W({authorizationUrl:j({typeComment:`REQUIRED. The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS.`})},{typeName:`ImplicitOAuthFlowObject`})]),fe=P([le,...oe,W({tokenUrl:j({typeComment:`REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS.`})},{typeName:`PasswordOAuthFlowObject`}),Pt]),me=P([le,...oe,W({tokenUrl:j({typeComment:`REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS.`})},{typeName:`ClientCredentialsOAuthFlowObject`}),Pt]),he=P([le,...oe,W({authorizationUrl:j({typeComment:`REQUIRED. The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS.`}),tokenUrl:j({typeComment:`REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS.`})},{typeName:`AuthorizationCodeOAuthFlowObject`}),st,Pt]),ge=W({implicit:E(ue),password:E(fe),clientCredentials:E(me),authorizationCode:E(he)},{typeName:`OAuthFlowsObject`}),_e=L([k,ae,P([W({...O.properties,type:M(`oauth2`),flows:ge},{typeName:`OAuth2SecuritySchemeObject`}),ke]),W({...O.properties,type:M(`openIdConnect`),openIdConnectUrl:j({typeComment:`REQUIRED. Well-known URL to discover the [[OpenID-Connect-Discovery]] provider metadata.`})},{typeName:`OpenIdConnectSecuritySchemeObject`})],{typeName:`SecuritySchemeObject`}),ve=W({schemas:E(R(j(),e(D),{typeName:`ComponentsSchemas`})),responses:E(R(j(),e(A(()=>je)),{typeName:`ComponentsResponses`})),parameters:E(R(j(),e(A(()=>we)),{typeName:`ComponentsParameters`})),examples:E(R(j(),e(A(()=>N)),{typeName:`ComponentsExamples`})),requestBodies:E(R(j(),e(A(()=>Te)),{typeName:`ComponentsRequestBodies`})),headers:E(R(j(),e(A(()=>xe)),{typeName:`ComponentsHeaders`})),securitySchemes:E(R(j(),e(A(()=>_e)),{typeName:`ComponentsSecuritySchemes`})),links:E(R(j(),e(A(()=>z)),{typeName:`ComponentsLinks`})),callbacks:E(R(j(),e(A(()=>Pe)),{typeName:`ComponentsCallbacks`})),pathItems:E(R(j(),A(()=>Le),{typeName:`ComponentsPathItems`}))},{typeName:`ComponentsObject`}),N=P([W({summary:E(j({typeComment:`Short description for the example.`})),description:E(j({typeComment:`Long description for the example. CommonMark syntax MAY be used for rich text representation.`})),value:E(H({typeComment:`Embedded literal example. The value field and externalValue field are mutually exclusive.`})),externalValue:E(j({typeComment:`A URI that identifies the literal example. The value field and externalValue field are mutually exclusive.`}))},{typeName:`ExampleObject`}),Ct]),ye=W({description:E(j({typeComment:`A brief description of the header. This could contain examples of use. CommonMark syntax MAY be used for rich text representation.`})),required:E(V({typeComment:`Determines whether this header is mandatory. The default value is false.`})),deprecated:E(V({typeComment:`Specifies that the header is deprecated and SHOULD be transitioned out of usage. Default value is false.`}))},{typeName:`HeaderBase`}),xe=L([P([ye,W({style:E(j({typeComment:`Describes how the header value will be serialized. The default (and only legal value for headers) is "simple".`})),explode:E(V({typeComment:`When this is true, header values of type array or object generate a single header whose value is a comma-separated list of the array items or key-value pairs of the map, see Style Examples.`})),schema:E(e(A(()=>D))),example:E(H()),examples:E(R(j(),e(A(()=>N)),{typeName:`HeaderExamples`}))},{typeName:`HeaderObjectWithSchema`})]),P([ye,W({content:E(R(j(),A(()=>Ce),{typeName:`HeaderContent`}))},{typeName:`HeaderObjectWithContent`})])],{typeName:`HeaderObject`}),F=W({contentType:E(j({typeComment:`The Content-Type for encoding a specific property. The value is a comma-separated list, each element of which is either a specific media type (e.g. image/png) or a wildcard media type (e.g. image/*).`})),headers:E(R(j(),e(A(()=>xe)),{typeName:`EncodingHeaders`}))},{typeName:`EncodingObject`}),Ce=W({schema:E(e(A(()=>D))),example:E(H({typeComment:`Example of the media type.`})),examples:E(R(j(),e(A(()=>N)),{typeName:`MediaTypeExamples`})),encoding:E(R(j(),F,{typeComment:`A map between a property name and its encoding information. The key, being the property name, MUST exist in the schema as a property.`,typeName:`MediaTypeEncoding`}))},{typeName:`MediaTypeObject`}),we=L([P([W({name:j({typeComment:`REQUIRED. The name of the parameter. Parameter names are case sensitive. If in is "path", the name field MUST correspond to a template expression occurring within the path field in the Paths Object.`}),in:L([M(`query`),M(`header`),M(`path`),M(`cookie`)],{typeName:`ParameterLocation`,typeComment:`REQUIRED. The location of the parameter. Possible values are "query", "header", "path" or "cookie".`}),description:E(j({typeComment:`A brief description of the parameter. This could contain examples of use. CommonMark syntax MAY be used for rich text representation.`})),required:E(V({typeComment:`Determines whether this parameter is mandatory. If the parameter location is "path", this field is REQUIRED and its value MUST be true.`})),deprecated:E(V({typeComment:`Specifies that a parameter is deprecated and SHOULD be transitioned out of usage. Default value is false.`})),allowEmptyValue:E(V({typeComment:`If true, clients MAY pass a zero-length string value in place of parameters that would otherwise be omitted entirely. This field is valid only for query parameters.`})),allowReserved:E(V({typeComment:`When this is true, parameter values are serialized using reserved expansion, as defined by RFC6570. This field only applies to parameters with an in value of query. The default value is false.`})),style:E(j({typeComment:`Describes how the parameter value will be serialized (depending on the schema type).`})),explode:E(V({typeComment:`When this is true, parameter values of type array or object generate separate parameters for each array item or object property.`})),schema:E(e(A(()=>D))),example:E(H()),examples:E(R(j(),e(A(()=>N)),{typeName:`ParameterExamples`}))},{typeName:`ParameterObjectWithSchema`}),Me,Ot,yt]),P([W({name:j({typeComment:`REQUIRED. The name of the parameter. Parameter names are case sensitive. If in is "path", the name field MUST correspond to a template expression occurring within the path field in the Paths Object.`}),in:L([M(`query`),M(`header`),M(`path`),M(`cookie`)],{typeName:`ParameterLocation`,typeComment:`REQUIRED. The location of the parameter. Possible values are "query", "header", "path" or "cookie".`}),description:E(j({typeComment:`A brief description of the parameter. This could contain examples of use. CommonMark syntax MAY be used for rich text representation.`})),required:E(V({typeComment:`Determines whether this parameter is mandatory. If the parameter location is "path", this field is REQUIRED and its value MUST be true.`})),deprecated:E(V({typeComment:`Specifies that a parameter is deprecated and SHOULD be transitioned out of usage. Default value is false.`})),allowEmptyValue:E(V({typeComment:`If true, clients MAY pass a zero-length string value in place of parameters that would otherwise be omitted entirely. This field is valid only for query parameters.`})),allowReserved:E(V({typeComment:`When this is true, parameter values are serialized using reserved expansion, as defined by RFC6570. This field only applies to parameters with an in value of query. The default value is false.`})),content:E(R(j(),A(()=>Ce),{typeName:`ParameterContent`}))},{typeName:`ParameterObjectWithContent`}),Me,Ot,yt])],{typeName:`ParameterObject`}),Te=P([W({description:E(j({typeComment:`A brief description of the request body. This could contain examples of use. CommonMark syntax MAY be used for rich text representation.`})),content:R(j(),A(()=>Ce),{typeComment:`REQUIRED. The content of the request body. The key is a media type or media type range and the value describes it.`,typeName:`RequestBodyContent`}),required:E(V({typeComment:`Determines if the request body is required in the request. Defaults to false.`}))},{typeName:`RequestBodyObject`}),Fe]),z=W({operationRef:E(j({typeComment:`A URI reference to an OAS operation. This field is mutually exclusive of the operationId field, and MUST point to an Operation Object.`})),operationId:E(j({typeComment:`The name of an existing, resolvable OAS operation, as defined with a unique operationId. This field is mutually exclusive of the operationRef field.`})),parameters:E(R(j(),H(),{typeComment:`A map representing parameters to pass to an operation as specified with operationId or identified via operationRef.`,typeName:`LinkParameters`})),requestBody:E(H({typeComment:`A literal value or {expression} to use as a request body when calling the target operation.`})),description:E(j({typeComment:`A description of the link. CommonMark syntax MAY be used for rich text representation.`})),server:E(a)},{typeName:`LinkObject`}),je=W({description:j({typeComment:`REQUIRED. A description of the response. CommonMark syntax MAY be used for rich text representation.`}),headers:E(R(j(),e(A(()=>xe)),{typeName:`ResponseHeaders`})),content:E(R(j(),A(()=>Ce),{typeName:`ResponseContent`})),links:E(R(j(),e(A(()=>z)),{typeName:`ResponseLinks`}))},{typeName:`ResponseObject`}),Ne=R(j(),e(A(()=>je)),{typeName:`ResponsesObject`}),Pe=R(j(),e(A(()=>Le)),{typeName:`CallbackObject`}),B=P([W({tags:E(w(j(),{typeComment:`A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier.`,typeName:`OperationTags`})),summary:E(j({typeComment:`A short summary of what the operation does.`})),description:E(j({typeComment:`A verbose explanation of the operation behavior. CommonMark syntax MAY be used for rich text representation.`})),externalDocs:E(o),operationId:E(j({typeComment:`Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive.`})),parameters:E(w(e(A(()=>we)),{typeName:`OperationParameters`})),requestBody:E(e(A(()=>Te))),responses:E(A(()=>Ne)),deprecated:E(V({typeComment:`Declares this operation to be deprecated. Consumers SHOULD refrain from usage of the declared operation. Default value is false.`})),security:E(w(c,{typeName:`OperationSecurity`})),servers:E(w(a,{typeName:`OperationServers`})),callbacks:E(R(j(),e(A(()=>Pe)),{typeName:`OperationCallbacks`}))},{typeName:`OperationObject`}),Mt,Ot,yt,$e,Ie,Se,Ht,Ge,S,rt]),Le=W({$ref:E(j({typeComment:`Allows for a referenced definition of this path item. The value MUST be in the form of a URI, and the referenced structure MUST be in the form of a Path Item Object.`})),summary:E(j({typeComment:`An optional string summary, intended to apply to all operations in this path.`})),description:E(j({typeComment:`An optional string description, intended to apply to all operations in this path. CommonMark syntax MAY be used for rich text representation.`})),get:E(e(A(()=>B))),put:E(e(A(()=>B))),post:E(e(A(()=>B))),delete:E(e(A(()=>B))),patch:E(e(A(()=>B))),connect:E(e(A(()=>B))),options:E(e(A(()=>B))),head:E(e(A(()=>B))),trace:E(e(A(()=>B))),servers:E(w(a,{typeName:`PathItemServers`})),parameters:E(w(e(A(()=>we)),{typeName:`PathItemParameters`}))},{typeName:`PathItemObject`}),Re=W({"x-original-oas-version":E(j({typeComment:`Original OpenAPI Specification version of the source document.`})),[wt.document.navigation]:E(H({typeComment:`Client navigation tree (TraversedDocument) for this OpenAPI description. Matches TraversedDocumentObjectRef in strict schemas.`}))},{typeName:`OpenApiExtensionsPartial`});return P([W({openapi:j({typeComment:`REQUIRED. This string MUST be the version number of the OpenAPI Specification that the OpenAPI Document uses. The openapi field SHOULD be used by tooling to interpret the OpenAPI Document. This is not related to the API info.version string.`}),info:r,jsonSchemaDialect:E(j({typeComment:`The default value for the $schema keyword within Schema Objects contained within this OAS document. This MUST be in the form of a URI.`})),servers:E(w(a,{typeComment:`An array of Server Objects, which provide connectivity information to a target server. If the servers field is not provided, or is an empty array, the default value would be a Server Object with a url value of /.`,typeName:`OpenApiServers`})),paths:E(R(j(),Le,{typeComment:`The available paths and operations for the API.`,typeName:`PathsObject`})),webhooks:E(R(j(),Le,{typeComment:`The incoming webhooks that MAY be received as part of this API and that the API consumer MAY choose to implement.`,typeName:`WebhooksObject`})),components:E(ve),security:E(w(c,{typeComment:`A declaration of which security mechanisms can be used across the API. The list of values includes alternative Security Requirement Objects that can be used. Only one of the Security Requirement Objects need to be satisfied to authorize a request.`,typeName:`OpenApiSecurity`})),tags:E(w(s,{typeComment:`A list of tags used by the OpenAPI Description with additional metadata. The order of the tags can be used to reflect on their order by the parsing tools.`})),externalDocs:E(o)},{typeName:`OpenApiDocumentCore`}),Re,zt,at,be,rt,re,ze,Lt,De,ie,Wt,Ee,ne,Ge,Ht],{typeName:`OpenApiDocument`,typeComment:`Root OpenAPI 3.1 document including Scalar workspace extensions (OpenApiExtensionsSchema).`})};var bs=W({$status:E(L([M(`loading`),M(`error`)]),{typeComment:`Indicates the current status of the reference resolution. Can be either 'loading' while fetching the reference or 'error' if the resolution failed.`}),$global:E(V({typeComment:`Indicates whether this reference should be resolved globally across all documents, rather than just within the current document context.`}))},{typeName:`ReferenceObjectExtensions`}),xs=W({$ref:j({typeComment:`REQUIRED. The reference identifier. This MUST be in the form of a URI.`}),summary:E(j({typeComment:`A short summary which by default SHOULD override that of the referenced component. If the referenced object-type does not allow a summary field, then this field has no effect.`})),description:E(j({typeComment:`A description which by default SHOULD override that of the referenced component. CommonMark syntax MAY be used for rich text representation. If the referenced object-type does not allow a description field, then this field has no effect.`}))},{typeName:`ReferenceObject`}),Ss=e=>T(e)&&`$ref`in e?Ss(e[`$ref-value`]):e;const Cs=e=>L([e,P([xs,W({"$ref-value":_e(Ss,e)}),bs])]);function ws(e){if(`url`in e)return Di({fetch:e.fetch}).exec(e.url);if(`path`in e){let t=e.fileLoader;return t?t.exec(e.path):(console.error(`No loader provided for loading files`),Promise.resolve({ok:!1}))}return Promise.resolve({ok:!0,data:e.document,raw:JSON.stringify(e.document)})}var Ts=e=>{if(`url`in e)return e.url;if(`path`in e)return e.path},Es=ys(Cs),Ds=new Set([`x-scalar-is-dirty`,`x-scalar-registry-meta`]),Os=e=>{let t=U(e);for(let e of[`x-ext`,`x-ext-urls`,`x-scalar-navigation`,`x-scalar-is-dirty`,`x-original-oas-version`,`x-scalar-original-document-hash`,`x-scalar-original-source-url`,`x-scalar-registry-meta`])delete t[e];return t};const ks=e=>{let{verbose:t=!1}=e??{},n=(e,n)=>t?wr(e,n):n(),r=(e,n)=>t?Tr(e,n):n(),i={},a=t=>{e?.plugins?.forEach(e=>e.hooks?.onWorkspaceStateChanges?.(t))},o=v(ut({...e?.meta,documents:{},get activeDocument(){return o.documents[f()]}},{hooks:{onAfterChange(e){let t=e[0];if(t===`documents`){if(e.length<2){console.log(`[WARN]: Overriding entire documents object is not supported`);return}let t=e[1],n=o.documents[t]??{openapi:`3.1.0`,info:{title:``,version:``},"x-scalar-original-document-hash":``},r={type:`documents`,documentName:t,value:k(n),path:e.slice(2)};r.path.length>0&&!Ds.has(r.path[0])&&(n[`x-scalar-is-dirty`]=!0),a(r);return}if(t===`activeDocument`){let t=f(),n=o.documents[t]??{openapi:`3.1.0`,info:{title:``,version:``},"x-scalar-original-document-hash":``},r={type:`documents`,documentName:t,value:k(n),path:e.slice(2)};r.path.length>0&&!Ds.has(r.path[0])&&(n[`x-scalar-is-dirty`]=!0),a(r);return}let{activeDocument:n,documents:r,...i}=o;a({type:`meta`,value:k(i,{depth:1})})}}})),{originalDocuments:s,intermediateDocuments:c,overrides:l}=ut({originalDocuments:{},intermediateDocuments:{},overrides:{}},{hooks:{onAfterChange(e){let t=e[0];if(!t||e.length<2)return;let n=e[1];t===`originalDocuments`&&a({type:t,documentName:n,value:k(s[n]??{}),path:e.splice(2)}),t===`intermediateDocuments`&&a({type:t,documentName:n,value:k(c[n]??{}),path:e.splice(2)}),t===`overrides`&&a({type:t,documentName:n,value:k(l[n]??{})})}}}),u=ss({hooks:{onHistoryChange:e=>{a({type:`history`,documentName:e,value:u.export()[e]??{}})}}}),d=mt({hooks:{onAuthChange:e=>{a({type:`auth`,documentName:e,value:d.export()[e]??{secrets:{},selected:{document:{selectedIndex:0,selectedSchemes:[]},path:{}}}})}}});function f(){return o[wt.workspace.activeDocument]??Object.keys(o.documents)[0]??``}function p(e,t,n){let r=s[e];if(r)return t===`json`?n?JSON.stringify(r):JSON.stringify(r,null,2):Yt.stringify(r)}let m=async e=>{let t=o.documents[e],n=await b(e);return!t||!n?(console.warn(`Failed to save document, active document is missing`),!1):(s[e]=n,c[e]=U(n),t[`x-scalar-is-dirty`]=!1,!0)};async function h(t,a){let{name:u}=t,d=U(t.meta),f=n(`deepClone`,()=>U(t.document));n(`initialize`,()=>{t.initialize!==!1&&(s[u]=U(f),c[u]=U(f),l[u]=t.overrides??{},i[u]={fetch:t.fetch})});let p=[Di({fetch:i[u]?.fetch??e?.fetch})];if(e?.fileLoader&&p.push(e.fileLoader),Rt(f)){let e=C({...f,...d,"x-original-aas-version":f.asyncapi,"x-scalar-original-document-hash":t.documentHash,"x-scalar-original-source-url":t.documentSource});await r(`bundle`,async()=>await yi(ct(e),{treeShake:!1,plugins:p,urlMap:!0,origin:t.documentSource}));let i=n(`coerceValue`,()=>Un($o,U(ct(e))));if(n(`mergeObjects`,()=>He(e,i)),e[wt.document.navigation]===void 0){let t=we(u,e,a);e[wt.document.navigation]=t}o.documents[u]=ye(e,{overrides:k(l[u])});return}let m=C({...n(`upgrade`,()=>ga(U(f),`3.1`)),...d,"x-original-oas-version":s[u]?.openapi??s[u]?.swagger,"x-scalar-original-document-hash":t.documentHash,"x-scalar-original-source-url":t.documentSource},{showInternal:!0});if(m[wt.document.navigation]===void 0){await r(`bundle`,async()=>await yi(ct(m),{treeShake:!1,plugins:[...p,hs(),ds(),fs(),ms(),gs()],urlMap:!0,origin:t.documentSource}));let e=n(`coerceValue`,()=>Un(Es,U(m)));n(`mergeObjects`,()=>He(m,e))}if(!Ne(qt,m)){let e=Array.from(Ln(qt,m));console.warn(`document validation errors: `),console.warn(e.map(e=>({message:e.message,path:e.path,schema:e.schema,value:e.value})))}if(m[wt.document.navigation]===void 0){let e=Ue(u,m,a);m[wt.document.navigation]=e}o.documents[u]=ye(C(ct(m)),{overrides:k(l[u])})}async function g(t,n){let{name:i,meta:a}=t,s=cs({fetch:t.fetch??e?.fetch,proxyUrl:o[`x-scalar-active-proxy`]??void 0}),c=await r(`loadDocument`,async()=>await ws({...t,fetch:s,fileLoader:e?.fileLoader}));return await r(`addDocument`,async()=>c.ok?T(c.data)?(await h({...t,document:c.data,documentSource:Ts(t),documentHash:Le(c.raw)},n),!0):(console.error(`Failed to load document '${i}': response data is not a valid object`),o.documents[i]={...a,openapi:`3.1.0`,info:{title:`Document '${i}' could not be loaded`,version:`unknown`},"x-scalar-original-document-hash":`not-a-hash`},!1):(console.error(`Failed to fetch document '${i}': request was not successful`),o.documents[i]={...a,openapi:`3.1.0`,info:{title:`Document '${i}' could not be loaded`,version:`unknown`},"x-scalar-original-document-hash":`not-a-hash`},!1))}let _=e=>k(s[e],{depth:1})||null,y=e=>k(c[e],{depth:1})||null,ee=e=>!!c[e],b=async e=>{let t=k(o.documents[e],{depth:1});return t?Os(await yi(U(t),{plugins:[ps(),vs()],treeShake:!1,urlMap:!0})):null},x=e=>{let t=o.documents[e];if(!t)return console.error(`Document '${e}' does not exist in the workspace.`),!1;if(!Gt(t))return!1;let n=Ue(e,t);return t[wt.document.navigation]=n,!0},S=new Set;return{get workspace(){return o},get history(){return u},get auth(){return d},update(e,t){Ke(e),Object.assign(o,{[e]:t})},getEditableDocument:b,getOriginalDocument:_,getIntermediateDocument:y,updateDocument(e,t,n){let r=o.documents[e===`active`?f():e];return r?(Ke(t),Object.assign(r,{[t]:n}),!0):!1},async replaceDocument(e,t){let n=k(o.documents[e],{depth:1});if(!n)return console.error(`Document '${e}' does not exist in the workspace.`);await h({name:e,document:t,documentSource:n[`x-scalar-original-source-url`],documentHash:n[`x-scalar-original-document-hash`],meta:{"x-scalar-registry-meta":n[`x-scalar-registry-meta`],"x-scalar-is-dirty":!0,"x-scalar-navigation":void 0},initialize:!1})},resolve:e=>{let t=o.activeDocument,n=Et(t,e);return T(n)?yi(n,{root:t,treeShake:!1,plugins:[Di(),us(),ds()],urlMap:!0,visitedNodes:S}):(console.error(`Invalid path provided for resolution. Path: [${e.join(`, `)}]. Found value of type: ${typeof n}. Expected an object.`),Promise.resolve())},addDocument:g,deleteDocument:e=>{if(!o.documents[e])return;delete o.documents[e],delete s[e],delete c[e],delete l[e],delete i[e],u.clearDocumentHistory(e),d.clearDocumentAuth(e);let t=Object.keys(o.documents);o[`x-scalar-active-document`]===e&&(o[`x-scalar-active-document`]=t[0]??void 0),a({type:`deleteDocument`,documentName:e})},exportDocument:p,exportActiveDocument:(e,t)=>p(f(),e,t),buildSidebar:x,saveDocument:m,promoteIntermediateToOriginal:ee,async revertDocumentChanges(e){let t=k(o.documents[e],{depth:1}),n=k(s[e],{depth:1});!t||!n||(c[e]=U(n),await h({name:e,document:n,documentSource:t[`x-scalar-original-source-url`],documentHash:t[`x-scalar-original-document-hash`],initialize:!1,meta:{"x-scalar-registry-meta":t[`x-scalar-registry-meta`]}}))},commitDocument(e){console.warn(`Commit operation for document '${e}' is not implemented yet.`)},exportWorkspace(){let{activeDocument:e,documents:t,...n}=k(o);return{documents:{...Object.fromEntries(Object.entries(t).map(([e,t])=>[e,k(t)]))},meta:k(n)??{},originalDocuments:k(s),intermediateDocuments:k(c),overrides:k(l),history:u.export(),auth:d.export()}},loadWorkspace(e){Ze(o.documents,Object.fromEntries(Object.entries(e.documents).map(([t,n])=>[t,ye(C(n),{overrides:e.overrides[t]})]))),Ze(s,e.originalDocuments),Ze(c,e.intermediateDocuments),Ze(l,e.overrides),Ze(o,e.meta),u.load(e.history),d.load(e.auth)},importWorkspaceFromSpecification:e=>{let{documents:t,overrides:n,info:r,workspace:i,...a}=e;return Ze(o,a),Promise.all(Object.entries(t??{}).map(([e,t])=>g({url:t.$ref,name:e,overrides:n?.[e]})))},rebaseDocument:async t=>{let{name:n}=t,a=k(s[n],{depth:1}),u=k(o.documents[n],{depth:1}),d=await b(n);if(!a||!d||!u)return{ok:!1,type:`CORRUPTED_STATE`,message:`Cannot rebase document '${n}': missing original or active document state`};let f=await r(`loadDocument`,async()=>await ws({...t,fetch:t.fetch??e?.fetch,fileLoader:e?.fileLoader}));if(!f.ok||!T(f.data))return{ok:!1,type:`FETCH_FAILED`,message:`Failed to fetch document '${n}': request was not successful or returned invalid data`};let p=Le(f.raw);if(u[`x-scalar-original-document-hash`]===p)return{ok:!1,type:`NO_CHANGES_DETECTED`,message:`No changes detected for document '${n}': document hash matches the active document`};let m=f.data;l[n]=t.overrides??{},i[n]={fetch:t.fetch};let g=Ai(a,m);if(g.length===0)return{ok:!1,type:`NO_CHANGES_DETECTED`,message:`No changes detected for document '${n}' after fetching the latest version.`};let _=Ii(g,Ai(a,d));return{ok:!0,conflicts:_.conflicts,changes:_.diffs,applyChanges:async e=>{let r=(()=>{if(`resolvedConflicts`in e){let t=_.diffs.concat(e.resolvedConflicts);return ki(U(a),t)}return e.resolvedDocument})(),i=Ai(m,r).length>0;s[n]=r,c[n]=U(r);let o=Gt(u),l=o?u[`x-scalar-environments`]:void 0,d=o?u[`x-scalar-order`]:void 0,p=r.servers,g=u.servers,v=Array.isArray(p)&&p.length>0,y=Array.isArray(g)&&g.length>0,ee=!Rt(r)&&!v&&y?U(g):void 0;await h({...t,document:{...r,[wt.document.navigation]:void 0},documentSource:Ts(t),documentHash:Le(f.raw),initialize:!1,meta:{...t.meta,"x-scalar-registry-meta":u[`x-scalar-registry-meta`],"x-scalar-watch-mode":u[`x-scalar-watch-mode`],"x-scalar-selected-server":u[`x-scalar-selected-server`],...l===void 0?{}:{"x-scalar-environments":l},...d===void 0?{}:{"x-scalar-order":d},...ee===void 0?{}:{servers:ee},"x-scalar-is-dirty":i}})}}}}};export{Cr as a,ir as c,Xn as d,Un as f,br as i,ar as l,Di as n,mr as o,yi as r,pr as s,ks as t,rr as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Ar as e,At as t,Jr as n,Z as r,f as i,p as a,v as o,x as s,zi as c}from"./index-CcDpHMIW.js";import{t as l}from"./cloud-session-B1oqwDJc.js";import{i as u,r as d}from"./src-BotO3dQ7.js";import{t as f}from"./auth-errors-BJV46AcQ.js";const p=e(`cloud-chat`,()=>{let{user:e}=l(),p=n(()=>!!e.value),m=s(a,f());c(()=>e.value?.id,e=>{e&&m.refresh()},{immediate:!0});let h=r(),g=t(),_=n(()=>{let e=g.activeProjectId??h.projects[0]?.id;return e?h.getById(e)?.orgId??null:null}),v=o(a,n(()=>{let e=m.organizations.value;if(!e.length)return``;let t=_.value;return t&&e.some(e=>e.id===t)?t:e[0].id}),{streamUrl:i}),y=n(()=>Object.values(v.unread.value).reduce((e,t)=>e+t,0));d(a);let b=0,x=!1;c(y,e=>{x&&e>b&&u(),b=e,x=!0},{immediate:!0});function S(){v.unread.value={}}function C(e){v.unread.value[e]&&(v.unread.value={...v.unread.value,[e]:0})}return{connected:p,unreadCount:y,clearUnread:S,noteChannelRead:C}});export{p as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Jr as e,Vt as t,ca as n}from"./index-CcDpHMIW.js";var r=n(null),i=n(!1),a=n(!1);async function o(){i.value=!0;try{r.value=(await t.cloudAuth.session.query())?.user??null}catch{r.value=null}finally{i.value=!1,a.value=!0}}async function s(){let{url:e}=await t.cloudAuth.startLogin.mutate({returnTo:window.location.origin});window.location.href=e}async function c(){await t.cloudAuth.signOut.mutate(),r.value=null}function l(){return!a.value&&!i.value&&o(),{user:r,loading:i,isLinked:e(()=>r.value!==null),refresh:o,signIn:s,signOut:c}}export{l as t};
|